@univerjs-pro/collaboration-client 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +28 -28
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x5c8e6d=_0x2b59;(function(_0x470ec3,_0x58dd97){const _0x2fbe30=_0x2b59,_0x3bca27=_0x470ec3();while(!![]){try{const _0x1b7d17=parseInt(_0x2fbe30(0xfc))/0x1*(-parseInt(_0x2fbe30(0xfd))/0x2)+-parseInt(_0x2fbe30(0xc3))/0x3+-parseInt(_0x2fbe30(0x402))/0x4*(-parseInt(_0x2fbe30(0x283))/0x5)+parseInt(_0x2fbe30(0x134))/0x6*(-parseInt(_0x2fbe30(0x1a3))/0x7)+-parseInt(_0x2fbe30(0x1d8))/0x8*(-parseInt(_0x2fbe30(0x1e8))/0x9)+parseInt(_0x2fbe30(0x1f7))/0xa+parseInt(_0x2fbe30(0x6e))/0xb;if(_0x1b7d17===_0x58dd97)break;else _0x3bca27['push'](_0x3bca27['shift']());}catch(_0x1dd70f){_0x3bca27['push'](_0x3bca27['shift']());}}}(_0x2388,0x3a1a6));var jt=Object[_0x5c8e6d(0x3a5)],$t=(_0x4dcc25,_0x18fb80,_0x415177)=>_0x18fb80 in _0x4dcc25?jt(_0x4dcc25,_0x18fb80,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x415177}):_0x4dcc25[_0x18fb80]=_0x415177,d=(_0x96db94,_0x21fd35,_0x2be2fa)=>($t(_0x96db94,typeof _0x21fd35!=_0x5c8e6d(0x406)?_0x21fd35+'':_0x21fd35,_0x2be2fa),_0x2be2fa);Object['defineProperty'](exports,Symbol[_0x5c8e6d(0x267)],{'value':'Module'});function _0x2388(){const _0x2833fa=['_updateCollabCursors','black','executeCommand','mergeOverrideWithDependencies','saveOfflineData','univer-pro.collaboration-client-socket-service','state','LocalCacheService','_socketMessageSubscription','getActiveSheet','APPLY_REJECT','create','_sessions','path','override','\x0aCurrent:\x20','registerBeforeClose','VIEW_MAIN','clipPath','_assignedColors','editing\x20status\x20changed\x20to','conflict','_selfUnitIDs','_scheduleSaving','roomMembers$','split','params','CollaborationSessionService','_refRangeService','doc.mutation.rich-text-editing','_getSendChangesetTimeout','Unknown\x20user','ITransformService','getUnitId','unknown','deserializeRangeWithSheet','InsertRangeMoveRightCommandId','_change$','propertyIsEnumerable','lineTo','assign','dispose','on-line-single','SessionStatus','image/jpeg','NEW_CHANGESETS','INTERNAL_ERROR','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','_sendingTimer','_shapes','/unit/','_renderManagerService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','/object','DesktopCollaborationStatusDisplayController','_onUserJoin','getOwnPropertyDescriptor','_entityInit$','[UniverCollaborationClientPlugin]','@wendellhu/redi','encodeURIComponent','[CollaborationUndoRedoService]','_HTTPService','localeService','CollaborationSession','_updateLocalCache','@univerjs/design','pushState','transformSelections','IRenderManagerService','stringify','forEach','debug','session.connection-failed','_scene','_loadDoc','USERS_ENTER','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','@univerjs/docs','findNodePositionByCharIndex','subUnitId','icon','_scheduleHeartbeat','message$','selections','current','_drawAnchor','_drawRange','idSuffix','_socketService','set','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','CollaborationController','_sheetTransformSelectionsService','_toggleOffline','url','href','disposeUnit','selection','@univerjs/sheets','\x20-\x20','...','ThemeService','enableLocalCache','RichTextEditingMutation','_beforeCloseService','defineProperty','_revisionService','setInterval','updateCursorEvent','open$','updatePermissionPoint','arc','json','getCollabEntity','COLLAB_WEB_SOCKET_URL_KEY','M0\x200H16V16H0z','_roomMembers','IUniverInstanceService','setCurrentUser','_retryCount','collab-text-range-','resourceIDs','[SyncedState]:\x20received\x20rejection.','registerComponent','batchAllowed','ISnapshotServerService','getValue','onlineStatusTitle','OTHER_CLIENTS_EDITING','getFocusedUnit','YUUMI_URL_COL_OUT_OF_RANGE','reverse','_handler','MessageType','_startSheetCollabCursor','_cursor','_transformIMECache','UNIVER_DOC','getOwnPropertySymbols','svg','_scheduleReconnection','toDisposable','_onRefRangeChange','SelectionManagerService','getParam','_color','getUnitOnRev','eventID','_scheduleClearOtherTimer','image/png','/universer-api/file/{fileID}/sign-url','#fff','_initStatusListener','use','APPLY_REVISION_CONFILICT','PERMISSION_DENIED','loadOfflineData','_fetchMissChangesets','useObservable','fillText','getUnitType','COMPRESS_MUTATION_SEND','JSONX','[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.','Error','1em','routeKey','storage','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','getCoordByCell','_removeClearOtherTimer','complete','_type','OnLifecycle','Subject','_showConflictNotification','BuiltInUIPart','handleInsertRangeMoveDown','CommandType','collaboration.single-unit.warning','cursorInfo','result','_executeRemoteChangeset','_onRemoteACK','sessionStatus$','LIVESHARE_NEW_HOST','resolve','_configService','LICENSE_IMPORT_SIZE_EXCEEDED','onPointerLeaveObserver','addImageSourceCache','transformMutationsWithChangeset','handleDeleteRangeMoveLeft','IConfigService','collabStatus.conflict','PENDING','_range','image/bmp','200128RxyrCI','_anchorDot','addObject','LocaleService','symbol','tag','_unitId','_setupBeforeClosingHandler','RegularPolygon','Disposable','_docStateChangeManagerService','ImageSourceType','RemoveRowCommandId','onPointerMoveObserver','changesets','urlChange$','#FFF','rxjs/operators','colorChannel1','_collaborationTimeoutTimer','sessionStatus','DataLoaderController','transformStack\x20failed!','_name','TOO_MANY_REQUESTS','_exhaustSavingTask','FAIL','handleInsertRow','_joinRoom','_getMergeRange','InsertRangeMoveDownCommandId','LICENSE_DISTRO_REJECTED','putCollaborators','CHANGESET_REJ','createInstance','SetSelectionsOperation','image/gif','USERS_LEAVE','_docSkeleton','_onJoinRoomEvent','incrementRevForDocument','Shape','UNKNOWN_CMD','currentColor','_imageSourceCache','4794218wVovEL','startRow','url(#off-line-single_clip0_910_343)','restore','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','registerRefRange','UNIVER_SLIDE','_getScale','@univerjs/core','OffLineSingle','top','_hover','length','color','_rescheduleHeartbeatEvent','LICENSE_EXPORT_SIZE_EXCEEDED','_collaborationController','offline','createIdentifier','/role','PSEUDO_FETCH_MISSING_RESULT','_clearCollaborationTimeoutTimer','infoRsp','_getDocObject','TEXT_RANGE_LAYER_INDEX','LifecycleStages','clearTimeout','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_init','SYNCED','_createInitialStateImpl','status$','SNAPSHOT_URL_KEY','fillRule','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_replaceFileID','_onRemoteRejected','catch','_transitionLocked','data','CollaborationStatusDisplay','/universer-api/oidc/authpage','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','then','_urlService','baseRev','cmd','getUnitStatus$','searchParams','collabStatus.notCollab','docStateChange$','createElement','onRemoteRej','/universer-api/snapshot','send','transformChangesets','ERROR_EXCEED_SIZE','onRemoteChangeset','auth.needGotoLoginAlert','_substituteRedoStack','purple300','getConfig','_acknowledgedAwaitingChangeset','cursorInfo$','UNDEFINED','Plugin','whenReady','AWAITING_WITH_PENDING','_document','COMPLETION_FINISHED','getOffsetConfig','asObservable','getSelections','_http','[PendingState]:\x20received\x20rejection.','session.will-retry','conflict.content','SheetSkeletonManagerService','toString','serializeCombRequest','_handleHeartbeatEvent','univer-pro.collaboration-client.single-active-unit-service','get','@univerjs-pro/collaboration','conflict.title','1328562OyRCkN','onload','saveChangeset','_config','OFFLINE','Rect','_localStorageService','createCollaborator','_docTransformSelectionsService','_colorIndex','_substituteUndoStack','CollaborationEvent','_onCursorDelete','ILocalStorageService','_onLocalMutation','objectType','_onCombEvent','setActiveRange','InsertColCommandId','memberID','RevisionService','saveSheetBlock','pluginName','MoveRangeCommandId','_transformService','mutations','collab-text-anchor-','textEncoder','_getAPIPrefix','src','permission.content','save\x20fail\x20reason\x20is\x20','UNIVER_COLLABORATION_CLIENT_PLUGIN','UUID','_waitForHeartbeatResponse','joinRsp','_removeCollabCursors','map','parseChangesetToProtocol','confirm','[CollaborationState]:\x20apply\x20error!','displayName','ranges','image/jpg','close$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_onCursorUpdate','_onRemoteChangeset','_saveTaskMap','_online','_onConnectionOpen','SNAPSHOT_SERVER_URL_KEY','_entities','RETRY_CONNECTING_INTERVAL','WebURLService','_lockTransition','setWaitCount','9763JNoHSY','78bGrZLO','_createHandler','startColumn','_docSkeletonManagerService','onMissingChangesets','_collabCursorState$','setTimeout','_socketReady','push','AWAITING','attrs','isTransformMutationFailure','_colorAssignService','_collabCursorController','_onFetchMissResult','connection\x20error','onSendChangeset','univer-online-status-title','userID','combineLatest','_startDocCollabCursor','size','roomInfos','session.collaboration-timeout','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','xlink:href','_disabled','getMember','_unitID','ImageUploadStatusType','drawWith','_localCacheService','HEARTBEAT','handleDeleteRangeMoveUp','getRenderById','_scheduleTimestamp','_tryEnsureSocket','_createSocket','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[CollaborationSessionService]','prototype','_handleJoinEvent','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','collabCursorState$','_timeoutTimer','IRemoteInstanceService','CollaborationSocketService','reduce','UserManagerService','?size=','_ensureSubject','INVALID_ARGUMENT','_hovered','enableSingleActiveInstanceLock','_permissionService','42fCjelm','collabStatus.syncing','_getAPIPrefixPath','DisposableCollection','@univerjs/engine-render','entries','from','IPermissionService','/universer-api/comb','getItem','NOT_FOUND','/fetchmissing?from=','getCurrent','FileId','_applyRemoteChangeset','ERROR_IMAGE_TYPE','blue400','joinEvent','\x20to\x20','onMouseMove','lodash/debounce','pipe','_id','\x20in\x20_schedule.','_getCtorByUniverType','_snapshotService','_docSyncEditingCollabCursorService','ILogService','takeUntil','onTransformSelections','LOGIN_URL_KEY','_decreaseWaiting','collaborationUniverTypes','HTTPService','_status$','getCurrentUnitForType','evenodd','UNIVER_UNKNOWN','updateOfflineData','revision','_httpService','concat','init','HEADER_MENU','_handleHover','filter','RefRangeService','getResourcesRequest','loadSheet','univer-online-status','_getLoginPath','sheets','m1Prime','slice','\x0aAfter:\x20','getViewport','target','rev','string','UNRECOGNIZED','_unlockTransition','LIVESHARE_TERMINATE','_getSnapshotAPIPrefix','SnapshotService','status','toRgbString','toggleOffline','_themeService','resend','online','_unitStatus','IURLService','div','CONNECTOR_DATA_TOO_LARGE','_getRedoStack','RETRY_CONNECTING_MAX_COUNT','transform','onlineStatus','url(#on-line-single_clip0_910_349)','_sessionStatus$','UNIVER_SHEET','_sendHeartbeat','sheetID','LocalUndoRedoService','@univerjs/drawing','Inject','BehaviorSubject','@univerjs/ui','_pendingMutations','workbook','Univer','UNAUTHENTICATED','@wendellhu/redi/react-bindings','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','DependentOn','_retryConnectingTimer','_updateSubUnitFromURLParams','remove','_session','jiqing500','RxDisposable','_socket$','save','error$','@univerjs/engine-formula','getTime','onMissedChangesetFetched','_onMessage','_heartbeatTimer','off-line-single','unitId','254429LvGHzo','all','SetTextSelectionsOperation','on-line-single_clip0_910_349','/new_changes','csAckEvent','enableOfflineEditing','_sendHeartbeatTimer','roomMembers','code','createSocket','objectID','getDocObject','setUndoRedoMutationParamsCache','generateRandomId','_collaborationPaused','_hideTimer','/universer-api/snapshot/','focused$','onStarting','InsertRowCommandId','listRoles','getCurrentUser','_singleActiveUnitService','defIds','_disableEditing','JOINING','_checkMissing','onTransformIME','[CollaborationSession]','appendMutation','syncEditingCollabCursor','react','_cursorInfo$','SUCCUSS','/universer-api/stream/file/upload','FETCH_MISSING','AuthzIoHttpService','updateMember','min','defs','endRow','onSyncEditingCollabCursor','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_onRecvEvent','_cachedData','_handleLeaveEvent','dispose$','DocSkeletonManagerService','setParam','_getSignURL','function','isTransformMutationsWithChangesetFailure','8JTxVCq','setShapeProps','UniverIcon','encode','/universer-api/authz','LICENSE_MAX_UNITS_EXCEEDED','session','_localeService','VIEWPORT_KEY','_getCurrentRevision','c1Prime','[DataLoaderController]','_incrementRevisionNumber','_onUserLeave','originalMeta','indexOf','3858093lenTpr','INotificationService','_transformRemoteChangesetByIMECache','mapTo','ICommandService','event$','_univerInstanceService','collaMsg','handleIRemoveCol','mapDocumentTypeToUniverType','POST','addEventListener','post','text','UNKNOWN_CODE','1012910kFGZWn','debounceTime','merge','[CollaborationSessionService]:\x20socket\x20error','collaboration-client.offline-data-not-saved','_getSaveTimeout','AUTHZ_URL_KEY','_getAnchorBounding','MUTATION','PERMISSION_REJ','FETCH_MISS','snapshot','APPLY_NON_SEQUENTIAL_REVISION','IMessageService','unshift','registerHTTPInterceptor','_transformPreviousActiveRange','/-/object/list','fetching\x20missing\x20changesets\x20from\x20','column','IContextService','HEARTBEAT_TIMEOUT','COLLAB_SUBMIT_CHANGESET_URL','getCurrentRevForDocument','getTypeOfUnitDisposed$','onlyLocal','next','Injector','file','COLORS','_syncEditingCollabCursorService','getUndoRedoMutationParamsCache','objectActions','isArray','onTransformRemoteChangesetByIMECache','_injector','_loadSheet','getSheetBySheetId','collabStatus.synced','@univerjs/rpc','socket\x20open.','children','handleInsertRangeMoveRight','_clearScheduledTask','height','IMEInputManagerService','trim','_setupSubUnitSync','_unitOnClients','HELLO','_updateState','Warning','fetchMissingChangesets','getRangePointData','contains','actions','transformUndoRedo','collabStatus.offline','_uiPartsService','CollaborationStatus','CHANGESET_REVISION_CONFILICT','rxjs','delete','_transformUndoredo','subscribe','_lastPointer','/rev/','getInterceptPoints','removeMember','?url=','LOCAL_CACHE_INTERVAL','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','translate(.97)','range','transformIMECache','_schedule','getRelativeCoord','values','loadDoc','SUBMIT_CHANGESET','EffectRefRangId','none','getActiveRange','_collabSessionService','UniverCollaborationClientPlugin','_transformStack','beginPath','CompressMutationService','_send','MSG_FOR_ERROR','Workbook','_draw','call','pending','labelPosition','_removeRoom','gold400','getImageSourceCache','max','subunit','_labelPosition','_isPermissionRej','deepClone','_onConnectionFailed','HEARTBEAT_INTERVAL','TextSelectionManagerService','_textBubble','_getUploadFileURL','fill','fetchThroughInterceptors','awaiting','onRemoteAck','toStringTag','Tools','_compressMutationService','take','LEAVE','getScrollXYByRelativeCoords','switchMap','[OfflineState]:\x20received\x20changeset.','_clearUndo','_exhaustRemoteChangesetQueue','_eventUnsubscribe','onCommandExecuted','some','key','_updateLocalCursor','interceptor','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','/object/','[PendingState]:\x20received\x20acknowledgement.','unitID','_transformUndoRedoStack','collaborators','includes','type','not_collab','@univerjs/network','fetch_missing','setItem','35RQRgeN','DEFAULT_FILE_NAME','forwardRef','closePath','_cursors','CONFLICT','allowed','handleIRemoveRow','round','univerjs-icon\x20univerjs-icon-','getColor','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','toggleOnline','objects','transformMutation','_roomMembers$','[OfflineState]:\x20received\x20acknowledgement.','_toggleOnline','IUndoRedoService','csRejEvent','SetWorksheetActivateCommand','_sheetSkeletonManagerService','leaveEvent','DocStateChangeManagerService','runRefRangeMutations','textRanges','Error\x20on\x20receiving\x20event','serializeTextRange','_initStatusComponent','unit','IImageIoService','_syncEditingCollabCursor','isPermissionRej','getRoom','_event$','Rectangle','ERROR_IMAGE','hide','synced','_clearOtherTimers','_transformSelections','SNAPSHOT_INVALID_SNAPSHOT','APPLY_PERMISSION_DENIED','_userManagerService','ThresholdInterceptorFactory','row','m2Prime','unsubscribe','disableLocalCache','_replayCachedMutations','/resources','YUUMI_UNABLE_LOAD_URL','/collaborator','_queuedRemoteChangesets','HEARTBEAT_TIMEOUT_KEY','_members','_clearTimeoutTimer','_awaitingChangeset','_socket','LIVESHARE_FETCH_OPERATIONS','error','shareReplay','IDLE','COMPRESS_MUTATION_APPLY','CHANGESET_ACK','red300','disposeWithMe','FromArray','unload','UniverInstanceType','IHTTPImplementation','b64DecodeUnicode','_saveCache','/-/object/-/batch_allowed','UPDATE_CURSOR','enableAuthServer','replaceState','_waitCount','ICollaborationSocketService','NOT_COLLAB','Starting','clsx','parse','currentSkeleton$','assignAColorForMemberID','useDependency','_state$','measureText','fillStyle','getAncestorScale','_startCollaboration','isEditing','sequenceExecute','/block/','_logService','RECV','delay','transformByState','_state','_clearRedo','WebSocketService','onPointerEnterObserver','_notificationService','_commandService','put','updateCollaborator','apply','Steady','getSheetBlock','getSheetId','ONLINE','history','clear','className','[CollaborationEntity]','_getUndoStack','Vector2','_submitChangeset','failed\x20to\x20apply\x20missed\x20changesets!','getCellPositionByOffset','_docTransformIMECacheService','getTypeOfUnitAdded$','rgba(255,\x20255,\x20255,\x200.01)','session.room-full','getMemberID','sheetId','JOIN','show','add','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','isTransformChangesetsSuccess','_onConflict','makeDirty','SEND_CHANGESET_TIMEOUT','off-line-single_clip0_910_343','replace','liveShareOperation','c2Prime','pauseCollaboration','isTransformMutationsWithChangesetSuccess','submit\x20changeset\x20error!','IUIPartsService','_getSheetObject','_render','skeleton','transformRemoteChangeset','has','replaceTextRanges','width','getImage','requireSession','_updateStatus','setAlpha','parseProtocolChangeset','Optional','_scheduleCollaborationTimeoutTimer','addObjects','_initModules','INGEST','onStateChange','ALREADY_EXISTS','_messageService','_clearHeartbeatTimer','_anchor','awaitingChangeset','liveShareNewHost','/allowed','reject','unit-cache-','flatMap','_handleEvent','bottom','getCollabCursors$','_memberService','LIVESHARE_OPERATION','_updateURLWithCurrentState','@univerjs/sheets-ui','isActive','_ws','[FetchMissState]','uni.network.url-service','currentTheme$','body','name'];_0x2388=function(){return _0x2833fa;};return _0x2388();}const a=require(_0x5c8e6d(0x76)),E=require(_0x5c8e6d(0x39e)),oe=require(_0x5c8e6d(0x37d)),N=require(_0x5c8e6d(0x18b)),u=require(_0x5c8e6d(0xc1)),h=require(_0x5c8e6d(0x376)),g=require(_0x5c8e6d(0x234)),T=require(_0x5c8e6d(0x413)),M=require(_0x5c8e6d(0x389)),P=require(_0x5c8e6d(0x280)),A=require(_0x5c8e6d(0x188)),Ye=require(_0x5c8e6d(0x19c)),He=require(_0x5c8e6d(0x148)),R=require(_0x5c8e6d(0x138)),ee=require(_0x5c8e6d(0x333)),at=require(_0x5c8e6d(0x190)),L=require(_0x5c8e6d(0x1c3)),Ht=require(_0x5c8e6d(0x2d4)),xt=require(_0x5c8e6d(0x21e)),ct=_0x5c8e6d(0xf6),kt=_0x5c8e6d(0xa3),lt=_0x5c8e6d(0x8e),ht=_0x5c8e6d(0x308),Bt=0x7d0,_t='COLLAB_WEB_SOCKET_URL',Ft='ws://127.0.0.1:8000/universer-api/comb/connect',ut=_0x5c8e6d(0x25f),Vt=0x7530,xe=_0x5c8e6d(0x20c),dt=0x2710,Wt=_0x5c8e6d(0xf8),Gt=0x4e20,Yt=_0x5c8e6d(0x17f),Kt=0x3,St=_0x5c8e6d(0x23d),Xt=0x3e8,vt=_0x5c8e6d(0x20d),qt=_0x5c8e6d(0x13c),gt='LOGIN_URL_KEY',Jt=_0x5c8e6d(0x97);var ft=(_0x558576=>(_0x558576[_0x558576['UNDEFINED']=0x0]=_0x5c8e6d(0xae),_0x558576[_0x558576['OK']=0x1]='OK',_0x558576[_0x558576[_0x5c8e6d(0x369)]=0x2]=_0x5c8e6d(0x369),_0x558576[_0x558576[_0x5c8e6d(0x3d7)]=0x3]='PERMISSION_DENIED',_0x558576[_0x558576[_0x5c8e6d(0x13e)]=0x4]='NOT_FOUND',_0x558576[_0x558576[_0x5c8e6d(0x18f)]=0x5]=_0x5c8e6d(0x18f),_0x558576[_0x558576[_0x5c8e6d(0x323)]=0x6]=_0x5c8e6d(0x323),_0x558576[_0x558576[_0x5c8e6d(0x130)]=0x7]=_0x5c8e6d(0x130),_0x558576[_0x558576[_0x5c8e6d(0x41a)]=0x8]=_0x5c8e6d(0x41a),_0x558576[_0x558576[_0x5c8e6d(0xb3)]=0x9]=_0x5c8e6d(0xb3),_0x558576[_0x558576[_0x5c8e6d(0x233)]=0x1389]=_0x5c8e6d(0x233),_0x558576[_0x558576[_0x5c8e6d(0x2ac)]=0x1771]=_0x5c8e6d(0x2ac),_0x558576[_0x558576[_0x5c8e6d(0x345)]=0x1b59]=_0x5c8e6d(0x345),_0x558576[_0x558576[_0x5c8e6d(0x203)]=0x1b5a]=_0x5c8e6d(0x203),_0x558576[_0x558576[_0x5c8e6d(0x3d6)]=0x1b5b]=_0x5c8e6d(0x3d6),_0x558576[_0x558576[_0x5c8e6d(0x2ad)]=0x1b5c]=_0x5c8e6d(0x2ad),_0x558576[_0x558576[_0x5c8e6d(0x17d)]=0x1f41]=_0x5c8e6d(0x17d),_0x558576[_0x558576[_0x5c8e6d(0x1dd)]=0x2329]=_0x5c8e6d(0x1dd),_0x558576[_0x558576[_0x5c8e6d(0x277)]=0x232a]=_0x5c8e6d(0x277),_0x558576[_0x558576[_0x5c8e6d(0x3f8)]=0x232b]=_0x5c8e6d(0x3f8),_0x558576[_0x558576[_0x5c8e6d(0x7d)]=0x232c]=_0x5c8e6d(0x7d),_0x558576[_0x558576[_0x5c8e6d(0x421)]=0x232d]=_0x5c8e6d(0x421),_0x558576[_0x558576[_0x5c8e6d(0x2b6)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x558576[_0x558576[_0x5c8e6d(0x3be)]=0x2712]=_0x5c8e6d(0x3be),_0x558576[_0x558576['UNRECOGNIZED']=-0x1]=_0x5c8e6d(0x16f),_0x558576))(ft||{}),j=(_0x36dd70=>(_0x36dd70[_0x36dd70[_0x5c8e6d(0x159)]=0x0]=_0x5c8e6d(0x159),_0x36dd70[_0x36dd70[_0x5c8e6d(0x3c5)]=0x1]=_0x5c8e6d(0x3c5),_0x36dd70[_0x36dd70[_0x5c8e6d(0x184)]=0x2]=_0x5c8e6d(0x184),_0x36dd70[_0x36dd70[_0x5c8e6d(0x74)]=0x3]=_0x5c8e6d(0x74),_0x36dd70[_0x36dd70['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x36dd70))(j||{}),b=(_0x3a8359=>(_0x3a8359[_0x3a8359[_0x5c8e6d(0x6b)]=0x0]=_0x5c8e6d(0x6b),_0x3a8359[_0x3a8359[_0x5c8e6d(0x228)]=0x1]=_0x5c8e6d(0x228),_0x3a8359[_0x3a8359['JOIN']=0x2]=_0x5c8e6d(0x301),_0x3a8359[_0x3a8359[_0x5c8e6d(0x26b)]=0x3]=_0x5c8e6d(0x26b),_0x3a8359[_0x3a8359['INGEST']=0x4]='INGEST',_0x3a8359[_0x3a8359[_0x5c8e6d(0x11d)]=0x5]=_0x5c8e6d(0x11d),_0x3a8359[_0x3a8359[_0x5c8e6d(0x2e2)]=0x6]=_0x5c8e6d(0x2e2),_0x3a8359[_0x3a8359[_0x5c8e6d(0x16f)]=-0x1]=_0x5c8e6d(0x16f),_0x3a8359))(b||{}),ke=(_0x1e6f36=>(_0x1e6f36[_0x1e6f36[_0x5c8e6d(0x1f6)]=0x0]=_0x5c8e6d(0x1f6),_0x1e6f36[_0x1e6f36['OK']=0x1]='OK',_0x1e6f36[_0x1e6f36[_0x5c8e6d(0x41c)]=0x2]=_0x5c8e6d(0x41c),_0x1e6f36[_0x1e6f36[_0x5c8e6d(0x16f)]=-0x1]=_0x5c8e6d(0x16f),_0x1e6f36))(ke||{}),zt=Object[_0x5c8e6d(0x3a5)],Zt=Object[_0x5c8e6d(0x373)],Qt=(_0x1e899b,_0x48eea2,_0x157c39,_0xb73bef)=>{const _0x39427f=_0x5c8e6d;for(var _0x3bf9ea=_0xb73bef>0x1?void 0x0:_0xb73bef?Zt(_0x48eea2,_0x157c39):_0x48eea2,_0x3836c1=_0x1e899b[_0x39427f(0x7a)]-0x1,_0x39b1f8;_0x3836c1>=0x0;_0x3836c1--)(_0x39b1f8=_0x1e899b[_0x3836c1])&&(_0x3bf9ea=(_0xb73bef?_0x39b1f8(_0x48eea2,_0x157c39,_0x3bf9ea):_0x39b1f8(_0x3bf9ea))||_0x3bf9ea);return _0xb73bef&&_0x3bf9ea&&zt(_0x48eea2,_0x157c39,_0x3bf9ea),_0x3bf9ea;},Ke=(_0x361a1c,_0x5816cd)=>(_0x342986,_0x56d9e6)=>_0x5816cd(_0x342986,_0x56d9e6,_0x361a1c);let G=class extends a[_0x5c8e6d(0x40b)]{constructor(_0xb5180b,_0x5f504d){const _0x549834=_0x5c8e6d;super(),d(this,_0x549834(0x3b0),new Map()),(this[_0x549834(0x1ee)]=_0xb5180b,this[_0x549834(0x2ae)]=_0x5f504d,this[_0x549834(0x2c5)](a[_0x549834(0x3c9)](g[_0x549834(0x1f9)](this[_0x549834(0x1ee)][_0x549834(0x20f)](a[_0x549834(0x2c8)][_0x549834(0x184)])[_0x549834(0x149)](T[_0x549834(0xe8)](_0x402fb6=>_0x402fb6[_0x549834(0x35c)]())),this[_0x549834(0x1ee)]['getTypeOfUnitDisposed$'](a[_0x549834(0x2c8)][_0x549834(0x3c5)])[_0x549834(0x149)](T[_0x549834(0xe8)](_0x41c302=>_0x41c302[_0x549834(0x35c)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x549834(0x2c8)][_0x549834(0x74)])[_0x549834(0x149)](T[_0x549834(0xe8)](_0x3d58a0=>_0x3d58a0[_0x549834(0x35c)]())))[_0x549834(0x237)](_0x424c78=>this[_0x549834(0x256)](_0x424c78)))));}[_0x5c8e6d(0x3b2)](_0x134367){const _0x23a0a8=_0x5c8e6d;this['_userManagerService'][_0x23a0a8(0x3b2)](_0x134367);}[_0x5c8e6d(0x1b9)](){const _0xa7f881=_0x5c8e6d;return this[_0xa7f881(0x2ae)][_0xa7f881(0x1b9)]();}[_0x5c8e6d(0x1c9)](_0x2edadf,_0x2854dc){const _0x69ace9=_0x5c8e6d;let _0x46a19e=this[_0x69ace9(0x3b0)][_0x69ace9(0xc0)](_0x2edadf);_0x46a19e||(_0x46a19e=new es(),this[_0x69ace9(0x3b0)][_0x69ace9(0x395)](_0x2edadf,_0x46a19e)),_0x46a19e[_0x69ace9(0x1c9)](_0x2854dc);}['removeMember'](_0x59e7ec,_0x3366f3){const _0xb57d46=_0x5c8e6d,_0x532fdc=this['_roomMembers'][_0xb57d46(0xc0)](_0x59e7ec);_0x532fdc&&_0x532fdc[_0xb57d46(0x23b)](_0x3366f3);}[_0x5c8e6d(0x2a4)](_0x1f4d8f){const _0x4aefcd=_0x5c8e6d;return this[_0x4aefcd(0x3b0)][_0x4aefcd(0xc0)](_0x1f4d8f);}[_0x5c8e6d(0x118)](_0x27f368,_0x652bb4){const _0x1b1cd1=_0x5c8e6d,_0x13ce00=this[_0x1b1cd1(0x3b0)][_0x1b1cd1(0xc0)](_0x27f368);if(_0x13ce00)return _0x13ce00[_0x1b1cd1(0x118)](_0x652bb4);}[_0x5c8e6d(0x256)](_0x4d5e6f){const _0x5be48d=_0x5c8e6d,_0x363acc=this[_0x5be48d(0x3b0)][_0x5be48d(0xc0)](_0x4d5e6f);_0x363acc&&(_0x363acc['dispose'](),this[_0x5be48d(0x3b0)][_0x5be48d(0x235)](_0x4d5e6f));}[_0x5c8e6d(0x364)](){const _0x264876=_0x5c8e6d;this[_0x264876(0x3b0)][_0x264876(0x382)](_0x3613ac=>_0x3613ac['dispose']()),this['_roomMembers']['clear']();}};G=Qt([Ke(0x0,a[_0x5c8e6d(0x3b1)]),Ke(0x1,h['Inject'](a[_0x5c8e6d(0x12d)]))],G);class es extends a[_0x5c8e6d(0x40b)]{constructor(){super(...arguments),d(this,'_members',new Map());}[_0x5c8e6d(0x364)](){const _0x1c1cdb=_0x5c8e6d;this[_0x1c1cdb(0x2ba)]['clear']();}['updateMember'](_0x4ad291){const _0x176f0e=_0x5c8e6d;this['_members']['set'](_0x4ad291[_0x176f0e(0xd6)],_0x4ad291);}[_0x5c8e6d(0x23b)](_0x2ba149){const _0x3af12b=_0x5c8e6d;this[_0x3af12b(0x2ba)][_0x3af12b(0x235)](_0x2ba149);}[_0x5c8e6d(0x118)](_0x50d4e4){const _0x6dbc39=_0x5c8e6d;return this[_0x6dbc39(0x2ba)][_0x6dbc39(0xc0)](_0x50d4e4);}}function mt(_0x3fcbfc){const _0xee773c=_0x5c8e6d;var _0x15454f,_0x2b62a7,_0x4c9aee,_0x5f2d13;const _0x12b3b6=_0x3fcbfc[_0xee773c(0x95)],_0x4341d5=JSON[_0xee773c(0x2d5)](_0x12b3b6);switch(_0x4341d5['cmd']){case b[_0xee773c(0x11d)]:case b[_0xee773c(0x228)]:{const _0x40837c=_0x4341d5[_0xee773c(0x84)];return{..._0x4341d5,'data':_0x40837c,'cmd':_0x4341d5[_0xee773c(0x9c)]};}case b[_0xee773c(0x301)]:{const _0x14bf77=_0x4341d5[_0xee773c(0xe6)];return{..._0x4341d5,'data':_0x14bf77,'cmd':_0x4341d5[_0xee773c(0x9c)]};}case b[_0xee773c(0x2e2)]:{const _0x43fbc8=_0x4341d5[_0xee773c(0x1ef)];switch(_0x43fbc8[_0xee773c(0x3cf)]){case u['CollaborationEvent'][_0xee773c(0x200)]:return{..._0x4341d5,'data':{..._0x43fbc8,'data':(_0x15454f=_0x43fbc8['permissionRejEvent'])==null?void 0x0:_0x15454f['cs']},'cmd':_0x4341d5[_0xee773c(0x9c)]};case u['CollaborationEvent']['CHANGESET_ACK']:return{..._0x4341d5,'data':{..._0x43fbc8,'data':(_0x2b62a7=_0x43fbc8[_0xee773c(0x1a8)])==null?void 0x0:_0x2b62a7['cs']},'cmd':_0x4341d5[_0xee773c(0x9c)]};case u[_0xee773c(0xce)][_0xee773c(0x368)]:return{..._0x4341d5,'data':{..._0x43fbc8,'data':(_0x4c9aee=_0x43fbc8['newCsEvent'])==null?void 0x0:_0x4c9aee['cs']},'cmd':_0x4341d5['cmd']};case u[_0xee773c(0xce)][_0xee773c(0x423)]:return{..._0x4341d5,'data':{..._0x43fbc8,'data':(_0x5f2d13=_0x43fbc8[_0xee773c(0x296)])==null?void 0x0:_0x5f2d13['cs']},'cmd':_0x4341d5[_0xee773c(0x9c)]};case u[_0xee773c(0xce)]['UPDATE_CURSOR']:return{..._0x4341d5,'data':{..._0x43fbc8,'data':_0x43fbc8[_0xee773c(0x3a8)]},'cmd':_0x4341d5[_0xee773c(0x9c)]};case u['CollaborationEvent'][_0xee773c(0x387)]:return{..._0x4341d5,'data':{..._0x43fbc8,'data':_0x43fbc8[_0xee773c(0x145)]},'cmd':_0x4341d5['cmd']};case u[_0xee773c(0xce)][_0xee773c(0x427)]:return{..._0x4341d5,'data':{..._0x43fbc8,'data':_0x43fbc8[_0xee773c(0x299)]},'cmd':_0x4341d5['cmd']};case u[_0xee773c(0xce)][_0xee773c(0x3f5)]:return{..._0x4341d5,'data':{..._0x43fbc8,'data':_0x43fbc8[_0xee773c(0x328)]},'cmd':_0x4341d5[_0xee773c(0x9c)]};case u['CollaborationEvent'][_0xee773c(0x2be)]:case u['CollaborationEvent']['LIVESHARE_OPERATION']:return{..._0x4341d5,'data':{..._0x43fbc8,'data':_0x43fbc8[_0xee773c(0x30b)]},'cmd':_0x4341d5[_0xee773c(0x9c)]};case u[_0xee773c(0xce)][_0xee773c(0x171)]:return{..._0x4341d5,'data':{..._0x43fbc8,'data':_0x43fbc8[_0xee773c(0x328)]},'cmd':_0x4341d5['cmd']};case u[_0xee773c(0xce)][_0xee773c(0x250)]:return{..._0x4341d5,'data':_0x43fbc8,'cmd':_0x4341d5[_0xee773c(0x9c)]};default:return _0x4341d5;}}default:return _0x4341d5;}}function It(_0x57e7a5){const _0x5608f4=_0x5c8e6d;switch(_0x57e7a5[_0x5608f4(0x9c)]){case b['HEARTBEAT']:case b[_0x5608f4(0x228)]:return JSON[_0x5608f4(0x381)]({'cmd':_0x57e7a5[_0x5608f4(0x9c)],'routeKey':_0x57e7a5['routeKey']});case b[_0x5608f4(0x321)]:{let _0x5696dc;switch(_0x57e7a5[_0x5608f4(0x95)][_0x5608f4(0x3cf)]){case u['CollaborationEvent'][_0x5608f4(0x2cd)]:{_0x5696dc={'eventID':u[_0x5608f4(0xce)][_0x5608f4(0x2cd)],'updateCursorEvent':_0x57e7a5['data'][_0x5608f4(0x95)]};break;}case u['CollaborationEvent'][_0x5608f4(0x427)]:{_0x5696dc={'eventID':u['CollaborationEvent'][_0x5608f4(0x427)],'leaveEvent':_0x57e7a5[_0x5608f4(0x95)][_0x5608f4(0x95)]};break;}case u[_0x5608f4(0xce)][_0x5608f4(0x387)]:{_0x5696dc={'eventID':u['CollaborationEvent'][_0x5608f4(0x387)],'joinEvent':_0x57e7a5[_0x5608f4(0x95)][_0x5608f4(0x95)]};break;}case u[_0x5608f4(0xce)]['LIVESHARE_NEW_HOST']:{_0x5696dc={'eventID':u[_0x5608f4(0xce)][_0x5608f4(0x3f5)],'liveShareNewHost':_0x57e7a5[_0x5608f4(0x95)][_0x5608f4(0x95)]};break;}case u[_0x5608f4(0xce)][_0x5608f4(0x331)]:{_0x5696dc={'eventID':u[_0x5608f4(0xce)][_0x5608f4(0x331)],'liveShareOperation':_0x57e7a5[_0x5608f4(0x95)][_0x5608f4(0x95)]};break;}case u[_0x5608f4(0xce)][_0x5608f4(0x171)]:{_0x5696dc={'eventID':u[_0x5608f4(0xce)][_0x5608f4(0x171)],'liveShareTerminate':_0x57e7a5['data'][_0x5608f4(0x95)]};break;}case u['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:{_0x5696dc={'eventID':u[_0x5608f4(0xce)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x57e7a5[_0x5608f4(0x95)]['data']};break;}case u['CollaborationEvent'][_0x5608f4(0x2be)]:{_0x5696dc={'eventID':u['CollaborationEvent'][_0x5608f4(0x2be)]};break;}default:_0x5696dc={'eventID':_0x57e7a5[_0x5608f4(0x95)][_0x5608f4(0x3cf)]};}return JSON['stringify']({'cmd':_0x57e7a5['cmd'],'routeKey':_0x57e7a5[_0x5608f4(0x3e2)],'collaMsg':_0x5696dc});}case b[_0x5608f4(0x301)]:return JSON[_0x5608f4(0x381)]({'cmd':_0x57e7a5[_0x5608f4(0x9c)],'routeKey':_0x57e7a5[_0x5608f4(0x3e2)],'joinReq':_0x57e7a5[_0x5608f4(0x95)]});case b['LEAVE']:return JSON[_0x5608f4(0x381)]({'cmd':_0x57e7a5['cmd'],'routeKey':_0x57e7a5[_0x5608f4(0x3e2)],'leaveReq':_0x57e7a5[_0x5608f4(0x95)]});default:throw new Error(_0x5608f4(0x191));}}var ts=Object[_0x5c8e6d(0x3a5)],ss=Object[_0x5c8e6d(0x373)],is=(_0x546049,_0x419738,_0x36748d,_0xb161f5)=>{const _0x1ee668=_0x5c8e6d;for(var _0x15e1d8=_0xb161f5>0x1?void 0x0:_0xb161f5?ss(_0x419738,_0x36748d):_0x419738,_0x2857d7=_0x546049[_0x1ee668(0x7a)]-0x1,_0x160f50;_0x2857d7>=0x0;_0x2857d7--)(_0x160f50=_0x546049[_0x2857d7])&&(_0x15e1d8=(_0xb161f5?_0x160f50(_0x419738,_0x36748d,_0x15e1d8):_0x160f50(_0x15e1d8))||_0x15e1d8);return _0xb161f5&&_0x15e1d8&&ts(_0x419738,_0x36748d,_0x15e1d8),_0x15e1d8;},te=(_0x37ba4b,_0x5110a3)=>(_0x21647f,_0x10fa7e)=>_0x5110a3(_0x21647f,_0x10fa7e,_0x37ba4b);const Be=h[_0x5c8e6d(0x80)](_0x5c8e6d(0x340));function ns(_0x45ed0e,_0x4a211c,_0xac0794){const _0xd4d47b=_0x5c8e6d;return _0x45ed0e+'/'+_0x4a211c+_0xd4d47b(0x36d)+_0xac0794+_0xd4d47b(0x1a7);}exports[_0x5c8e6d(0x12b)]=class{constructor(_0x5cc62f,_0x4b21b5,_0x10b2d4,_0x5de0a0,_0x179f10){const _0x38568a=_0x5c8e6d;this[_0x38568a(0xb7)]=_0x5cc62f,this[_0x38568a(0x335)]=_0x4b21b5,this[_0x38568a(0x3f7)]=_0x10b2d4,this[_0x38568a(0x2e1)]=_0x5de0a0,this['_snapshotServerService']=_0x179f10;}[_0x5c8e6d(0x1ad)](_0xc1344c){const _0xf31c69=_0x5c8e6d,_0x459330=this[_0xf31c69(0x335)]['createSocket'](_0xc1344c);if(!_0x459330)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x4eb277=new a[(_0xf31c69(0x137))](),_0x2cd043=new g[(_0xf31c69(0x3ea))]();_0x4eb277[_0xf31c69(0x303)](a[_0xf31c69(0x3c9)](_0x459330['close$'][_0xf31c69(0x237)](_0x1be96a=>_0x2cd043['next'](_0x1be96a)))),_0x4eb277['add'](a[_0xf31c69(0x3c9)](()=>_0x2cd043['complete']()));const _0x2fe585=new g['Subject']();_0x4eb277[_0xf31c69(0x303)](a[_0xf31c69(0x3c9)](_0x459330[_0xf31c69(0x19b)]['subscribe'](_0xe6c2d5=>_0x2fe585[_0xf31c69(0x211)](_0xe6c2d5)))),_0x4eb277['add'](a[_0xf31c69(0x3c9)](()=>_0x2fe585[_0xf31c69(0x3e7)]()));const _0x2ad448=new g['Subject']();_0x4eb277['add'](a[_0xf31c69(0x3c9)](_0x459330['message$']['subscribe'](_0x19e4bc=>{const _0x527ae3=_0xf31c69,_0x73c24d=mt(_0x19e4bc);_0x2ad448[_0x527ae3(0x211)](_0x73c24d);}))),_0x4eb277[_0xf31c69(0x303)](a['toDisposable'](()=>_0x2ad448[_0xf31c69(0x3e7)]()));const _0x9a7dae=()=>{const _0x515b9a=_0xf31c69;_0x2fe585[_0x515b9a(0x211)](new Event('connection\x20error')),_0x2cd043['next'](new CloseEvent(_0x515b9a(0x10c))),_0xfb4109['close']();},_0xfb4109={'memberID':'','close$':_0x2cd043['asObservable'](),'error$':_0x2fe585[_0xf31c69(0xb5)](),'open$':_0x459330[_0xf31c69(0x3a9)],'message$':_0x2ad448[_0xf31c69(0xb5)](),'send':_0x3d05f0=>{const _0x36d301=_0xf31c69;if(_0x3d05f0[_0x36d301(0x9c)]===b[_0x36d301(0x321)]){if(_0x3d05f0[_0x36d301(0x95)][_0x36d301(0x3cf)]===u[_0x36d301(0xce)][_0x36d301(0x246)]){this[_0x36d301(0x2f8)](_0xfb4109,_0x3d05f0[_0x36d301(0x95)])[_0x36d301(0x93)](_0x2f3969=>{const _0x3f146d=_0x36d301;this[_0x3f146d(0x2e1)][_0x3f146d(0x2bf)](_0x2f3969),_0x9a7dae();});return;}if(_0x3d05f0[_0x36d301(0x95)][_0x36d301(0x3cf)]===u[_0x36d301(0xce)][_0x36d301(0x1c7)]){const _0xe5521a=_0x3d05f0[_0x36d301(0x95)];this['_fetchMissChangesets'](_0xe5521a)[_0x36d301(0x99)](_0xe63dd1=>{const _0xe7b412=_0x36d301;_0x2ad448['next']({'cmd':b[_0xe7b412(0x2e2)],'code':ke['OK'],'routeKey':_0xe5521a[_0xe7b412(0x95)][_0xe7b412(0x27a)],'routeType':'','data':{'eventID':u[_0xe7b412(0xce)][_0xe7b412(0x82)],'data':{'changesets':_0xe63dd1}}});})[_0x36d301(0x93)](_0xaff735=>{const _0x42f652=_0x36d301;this[_0x42f652(0x2e1)][_0x42f652(0x2bf)](_0xaff735),_0x9a7dae();});return;}}_0x459330[_0x36d301(0xa4)](It(_0x3d05f0));},'close':()=>{const _0x41ed4b=_0xf31c69;_0x459330['close'](),_0x4eb277[_0x41ed4b(0x364)]();}};return _0xfb4109;}async['_submitChangeset'](_0x186924,_0x4968de){const _0x3d1d6c=_0x5c8e6d;var _0x317eb1;const {unitType:_0xd326eb,unitID:_0x31a173,changeset:_0x39ba7f}=_0x4968de[_0x3d1d6c(0x95)],_0x2b8db0={'unitID':_0x31a173,'memberID':_0x186924['memberID'],'type':_0xd326eb,'changeset':u[_0x3d1d6c(0xe9)](_0x39ba7f)},_0x4d89c5=ns((_0x317eb1=this[_0x3d1d6c(0x3f7)][_0x3d1d6c(0xab)](vt))!=null?_0x317eb1:qt,_0xd326eb,_0x31a173);try{await this[_0x3d1d6c(0xb7)][_0x3d1d6c(0x1f4)](_0x4d89c5,{'body':_0x2b8db0});}catch(_0x3da956){throw this[_0x3d1d6c(0x2e1)][_0x3d1d6c(0x2bf)](_0x3d1d6c(0x1c0),_0x3d1d6c(0x30f)),_0x3da956;}}async[_0x5c8e6d(0x3d9)](_0x7239fb){const _0x88e324=_0x5c8e6d,{unitID:_0x44e978,from:_0x22026a,to:_0x6af81a,unitType:_0xd4b3e}=_0x7239fb['data'];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x44e978,'type':_0xd4b3e,'from':_0x22026a,'to':_0x6af81a}))[_0x88e324(0x410)];}},exports[_0x5c8e6d(0x12b)]=is([te(0x0,h[_0x5c8e6d(0x189)](P[_0x5c8e6d(0x155)])),te(0x1,h[_0x5c8e6d(0x189)](P[_0x5c8e6d(0x2e7)])),te(0x2,a[_0x5c8e6d(0x3fd)]),te(0x3,a[_0x5c8e6d(0x14f)]),te(0x4,a[_0x5c8e6d(0x3b9)])],exports[_0x5c8e6d(0x12b)]);var rs=Object[_0x5c8e6d(0x3a5)],os=Object['getOwnPropertyDescriptor'],pt=(_0x584c3f,_0x290b3b,_0x443515,_0x2e25c8)=>{const _0x3160b6=_0x5c8e6d;for(var _0xbe79eb=_0x2e25c8>0x1?void 0x0:_0x2e25c8?os(_0x290b3b,_0x443515):_0x290b3b,_0x16ea4e=_0x584c3f[_0x3160b6(0x7a)]-0x1,_0x766981;_0x16ea4e>=0x0;_0x16ea4e--)(_0x766981=_0x584c3f[_0x16ea4e])&&(_0xbe79eb=(_0x2e25c8?_0x766981(_0x290b3b,_0x443515,_0xbe79eb):_0x766981(_0xbe79eb))||_0xbe79eb);return _0x2e25c8&&_0xbe79eb&&rs(_0x290b3b,_0x443515,_0xbe79eb),_0xbe79eb;},U=(_0x33f1b0,_0x1bb8be)=>(_0x28fe69,_0x43b16b)=>_0x1bb8be(_0x28fe69,_0x43b16b,_0x33f1b0),W=(_0x5b3a4a=>(_0x5b3a4a[_0x5b3a4a['IDLE']=0x0]=_0x5c8e6d(0x2c1),_0x5b3a4a[_0x5b3a4a['JOINING']=0x1]=_0x5c8e6d(0x1bd),_0x5b3a4a[_0x5b3a4a[_0x5c8e6d(0xc7)]=0x2]='OFFLINE',_0x5b3a4a[_0x5b3a4a[_0x5c8e6d(0x2f1)]=0x3]='ONLINE',_0x5b3a4a))(W||{});exports[_0x5c8e6d(0x37b)]=class extends a[_0x5c8e6d(0x198)]{constructor(_0x342be8,_0x9952d5,_0x685275,_0x18fa71,_0x157dd6,_0x37fdaf,_0x2d09e1,_0x5727de){const _0x1ed960=_0x5c8e6d;super(),d(this,_0x1ed960(0x183),new g[(_0x1ed960(0x18a))](0x0)),d(this,_0x1ed960(0x3f4),this['_sessionStatus$'][_0x1ed960(0xb5)]()),d(this,_0x1ed960(0x2a5),new g['Subject']()),d(this,_0x1ed960(0x1ed),this['_event$'][_0x1ed960(0xb5)]()),d(this,_0x1ed960(0x2bd)),d(this,'_socketMessageSubscription'),d(this,_0x1ed960(0x415)),(this[_0x1ed960(0x119)]=_0x342be8,this[_0x1ed960(0x2e1)]=_0x685275,this[_0x1ed960(0x3a4)]=_0x18fa71,this[_0x1ed960(0x324)]=_0x157dd6,this[_0x1ed960(0x3f7)]=_0x37fdaf,this['_localeService']=_0x2d09e1,this[_0x1ed960(0x330)]=_0x5727de,_0x9952d5[_0x1ed960(0x149)](T[_0x1ed960(0x150)](this[_0x1ed960(0x1d2)]))[_0x1ed960(0x237)](_0x155d05=>{const _0x136f48=_0x1ed960;var _0x5008e7;typeof _0x155d05>'u'||(this['_socket']=_0x155d05,_0x155d05?(this[_0x136f48(0x41e)](_0x155d05),this[_0x136f48(0x343)]=this[_0x136f48(0x2bd)]['message$'][_0x136f48(0x237)](_0x552215=>{const _0x4a605b=_0x136f48;_0x552215[_0x4a605b(0x3e2)]===this['_unitID']&&this[_0x4a605b(0xd3)](_0x552215);})):(this[_0x136f48(0x183)][_0x136f48(0x211)](0x2),(_0x5008e7=this['_socketMessageSubscription'])==null||_0x5008e7[_0x136f48(0x2b2)](),this['_socketMessageSubscription']=null));}),this[_0x1ed960(0x2c5)](this[_0x1ed960(0x3a4)]['registerOnClose'](()=>{const _0x27a45d=_0x1ed960;var _0x51e4e3;(_0x51e4e3=this[_0x27a45d(0x2bd)])==null||_0x51e4e3[_0x27a45d(0xa4)]({'cmd':b[_0x27a45d(0x26b)],'data':{'roomID':this[_0x27a45d(0x119)]}});})));}get[_0x5c8e6d(0x416)](){const _0x432727=_0x5c8e6d;return this['_sessionStatus$'][_0x432727(0x3ba)]();}[_0x5c8e6d(0x2ff)](){const _0x1321a8=_0x5c8e6d;var _0x4b7039,_0xd554ae;return(_0xd554ae=(_0x4b7039=this['_socket'])==null?void 0x0:_0x4b7039[_0x1321a8(0xd6)])!=null?_0xd554ae:null;}['dispose'](){const _0x3c634d=_0x5c8e6d;super[_0x3c634d(0x364)](),this[_0x3c634d(0x1d2)][_0x3c634d(0x211)](),this['dispose$'][_0x3c634d(0x3e7)]();}[_0x5c8e6d(0xd3)](_0x13694f){const _0x46ae44=_0x5c8e6d;_0x13694f[_0x46ae44(0x9c)]===b[_0x46ae44(0x301)]?this[_0x46ae44(0x429)](_0x13694f):_0x13694f[_0x46ae44(0x9c)]===b[_0x46ae44(0x2e2)]&&this[_0x46ae44(0x1cf)](_0x13694f);}['_joinRoom'](_0x1a0169){const _0x5384b4=_0x5c8e6d;this[_0x5384b4(0x183)][_0x5384b4(0x211)](0x1),_0x1a0169[_0x5384b4(0xa4)]({'cmd':b[_0x5384b4(0x301)],'routeKey':this[_0x5384b4(0x119)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5384b4(0x119)]}]}});}[_0x5c8e6d(0x429)](_0x19845b){const _0x7d299d=_0x5c8e6d;var _0xc3a4b6;if(_0x19845b['code']===ke[_0x7d299d(0x41c)]){this[_0x7d299d(0x324)]['show']({'type':oe[_0x7d299d(0x3c1)][_0x7d299d(0x22a)],'content':this[_0x7d299d(0x1df)]['t'](_0x7d299d(0x2fe))}),this[_0x7d299d(0x183)][_0x7d299d(0x211)](0x2);return;}this['_sessionStatus$'][_0x7d299d(0x211)](0x3);const _0x213191=(_0xc3a4b6=_0x19845b[_0x7d299d(0x95)][_0x7d299d(0x113)][this[_0x7d299d(0x119)]])==null?void 0x0:_0xc3a4b6['members'];_0x213191&&_0x213191[_0x7d299d(0x382)](_0x3ed5cd=>this[_0x7d299d(0x330)][_0x7d299d(0x1c9)](this[_0x7d299d(0x119)],_0x3ed5cd));}[_0x5c8e6d(0x1cf)](_0x5a0cf1){const _0x509ee0=_0x5c8e6d;try{const _0x9b5742=_0x5a0cf1['data'];switch(_0x9b5742[_0x509ee0(0x3cf)]){case u[_0x509ee0(0xce)][_0x509ee0(0x387)]:this[_0x509ee0(0x372)](_0x9b5742),this[_0x509ee0(0x2a5)]['next'](_0x9b5742);break;case u[_0x509ee0(0xce)]['USERS_LEAVE']:this[_0x509ee0(0x1e5)](_0x9b5742),this['_event$'][_0x509ee0(0x211)](_0x9b5742);break;case u[_0x509ee0(0xce)][_0x509ee0(0x2c3)]:this[_0x509ee0(0x83)](),this['_event$']['next'](_0x9b5742);break;case u[_0x509ee0(0xce)][_0x509ee0(0x250)]:this[_0x509ee0(0x2e1)]['error'](_0x509ee0(0xe2)+JSON['stringify'](_0x9b5742)),this[_0x509ee0(0x2a5)][_0x509ee0(0x211)](_0x9b5742);break;default:this['_event$'][_0x509ee0(0x211)](_0x9b5742);}}catch(_0x2dbd15){this[_0x509ee0(0x2e1)][_0x509ee0(0x2bf)](_0x2dbd15,_0x5a0cf1);}}[_0x5c8e6d(0x372)](_0x33fa4c){const _0x453517=_0x5c8e6d;this[_0x453517(0x330)][_0x453517(0x1c9)](this['_unitID'],_0x33fa4c[_0x453517(0x95)]);}[_0x5c8e6d(0x1e5)](_0x5765f5){const _0x316760=_0x5c8e6d;this[_0x316760(0x330)][_0x316760(0x23b)](this[_0x316760(0x119)],_0x5765f5['data'][_0x316760(0xd6)]);}async[_0x5c8e6d(0xa4)](_0x55520f,_0x44d667){const _0x3fc517=_0x5c8e6d;if(this[_0x3fc517(0x416)]!==0x3||!this[_0x3fc517(0x2bd)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x55520f['eventID']===u[_0x3fc517(0xce)][_0x3fc517(0x368)]&&this[_0x3fc517(0x31e)](),this[_0x3fc517(0x2bd)][_0x3fc517(0xa4)]({'cmd':b[_0x3fc517(0x321)],'routeKey':_0x44d667,'routeType':'','data':_0x55520f});}catch(_0x4c270a){this[_0x3fc517(0x2e1)]['error'](_0x4c270a);}}[_0x5c8e6d(0x31e)](){const _0x4cf2ee=_0x5c8e6d;var _0x4c4fac;this[_0x4cf2ee(0x415)]=window['setTimeout'](()=>{const _0x6cd389=_0x4cf2ee;this[_0x6cd389(0x415)]=null,this[_0x6cd389(0x324)][_0x6cd389(0x302)]({'type':oe[_0x6cd389(0x3c1)][_0x6cd389(0x3e0)],'content':this['_localeService']['t'](_0x6cd389(0x114))});},(_0x4c4fac=this[_0x4cf2ee(0x3f7)]['getConfig'](xe))!=null?_0x4c4fac:dt);}['_clearCollaborationTimeoutTimer'](){const _0x4909ae=_0x5c8e6d;this[_0x4909ae(0x415)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x4909ae(0x415)]=null);}},exports[_0x5c8e6d(0x37b)]=pt([U(0x2,a[_0x5c8e6d(0x14f)]),U(0x3,N['IBeforeCloseService']),U(0x4,N[_0x5c8e6d(0x204)]),U(0x5,a[_0x5c8e6d(0x3fd)]),U(0x6,h['Inject'](a[_0x5c8e6d(0x405)])),U(0x7,h[_0x5c8e6d(0x189)](G))],exports[_0x5c8e6d(0x37b)]),exports['CollaborationSessionService']=class extends a['Disposable']{constructor(_0x56e6fa,_0x2776b1,_0x21c47d,_0x2c224c,_0x132687,_0x1ad25a){const _0x233667=_0x5c8e6d;super(),d(this,_0x233667(0x199),new g[(_0x233667(0x18a))](void 0x0)),d(this,_0x233667(0x347),new Map()),d(this,_0x233667(0x156),new g[(_0x233667(0x18a))](0x0)),d(this,_0x233667(0x8d),this['_status$']['asObservable']()),d(this,_0x233667(0x104),!0x1),d(this,'_sendHeartbeatTimer'),d(this,_0x233667(0x129)),d(this,'_retryConnectingTimer'),d(this,'_retryCount',0x0),(this['_injector']=_0x56e6fa,this[_0x233667(0x1df)]=_0x2776b1,this[_0x233667(0x324)]=_0x21c47d,this[_0x233667(0x2e1)]=_0x2c224c,this['_configService']=_0x132687,this[_0x233667(0x394)]=_0x1ad25a);}get[_0x5c8e6d(0x2bd)](){const _0x132df4=_0x5c8e6d;return this['_socket$'][_0x132df4(0x3ba)]();}[_0x5c8e6d(0x364)](){const _0x47efd4=_0x5c8e6d;super[_0x47efd4(0x364)](),this[_0x47efd4(0x347)][_0x47efd4(0x382)](_0x5083ef=>_0x5083ef[_0x47efd4(0x364)]()),this[_0x47efd4(0x347)][_0x47efd4(0x2f3)](),this[_0x47efd4(0x156)][_0x47efd4(0x3e7)]();}async[_0x5c8e6d(0x319)](_0x2e4ee2){const _0x3442c7=_0x5c8e6d;if(this[_0x3442c7(0x347)][_0x3442c7(0x315)](_0x2e4ee2))return this[_0x3442c7(0x347)][_0x3442c7(0xc0)](_0x2e4ee2);this[_0x3442c7(0x121)]();const _0x23c976=this[_0x3442c7(0x21a)]['createInstance'](exports[_0x3442c7(0x37b)],_0x2e4ee2,this[_0x3442c7(0x199)][_0x3442c7(0xb5)]());return this['_sessions']['set'](_0x2e4ee2,_0x23c976),_0x23c976;}[_0x5c8e6d(0x122)](){const _0x893958=_0x5c8e6d;var _0x5931fd;const _0x41cbde=(_0x5931fd=this[_0x893958(0x3f7)][_0x893958(0xab)](_t))!=null?_0x5931fd:Ft;return this[_0x893958(0x394)][_0x893958(0x1ad)](_0x41cbde);}['_tryEnsureSocket'](){const _0x470123=_0x5c8e6d;try{const _0x381e30=this['_createSocket']();if(_0x381e30){const _0x3abb62=_0x381e30[_0x470123(0xa4)];_0x381e30[_0x470123(0xa4)]=_0x422080=>(this[_0x470123(0x7c)](),_0x3abb62[_0x470123(0x2ed)](_0x381e30,[_0x422080])),_0x381e30[_0x470123(0x38e)][_0x470123(0x237)](_0x2bbd57=>this[_0x470123(0x19f)](_0x381e30,_0x2bbd57)),_0x381e30[_0x470123(0x19b)][_0x470123(0x149)](T[_0x470123(0x26a)](0x1))[_0x470123(0x237)](_0x3bc65f=>this[_0x470123(0x2e1)][_0x470123(0x2bf)](_0x470123(0x1fa),_0x3bc65f)),_0x381e30[_0x470123(0x3a9)][_0x470123(0x149)](T[_0x470123(0x26a)](0x1))['subscribe'](()=>{this['_onConnectionOpen'](_0x381e30);}),_0x381e30[_0x470123(0xef)][_0x470123(0x149)](T[_0x470123(0x26a)](0x1))[_0x470123(0x237)](_0x2ca5fc=>{const _0x5d84b1=_0x470123;this[_0x5d84b1(0x2e1)][_0x5d84b1(0x383)](_0x5d84b1(0x124),'socket\x20close',_0x2ca5fc),this['_onConnectionFailed']();});}}catch(_0x45749d){this['_logService'][_0x470123(0x2bf)](_0x45749d),this[_0x470123(0x25e)]();}}[_0x5c8e6d(0xf5)](_0x5ed131){const _0x53fea6=_0x5c8e6d;this[_0x53fea6(0x2e1)][_0x53fea6(0x383)](_0x53fea6(0x124),_0x53fea6(0x21f)),_0x5ed131['send']({'cmd':b['HELLO']}),this[_0x53fea6(0x7c)]();}['_onConnectionFailed'](){const _0x43b234=_0x5c8e6d;var _0x4f34e6;this[_0x43b234(0x156)][_0x43b234(0x211)](0x2),this['_socket$'][_0x43b234(0x211)](null),this[_0x43b234(0x2bb)](),this[_0x43b234(0x325)](),this[_0x43b234(0x104)]=!0x1,this[_0x43b234(0x3b3)]<((_0x4f34e6=this[_0x43b234(0x3f7)][_0x43b234(0xab)](Yt))!=null?_0x4f34e6:Kt)?(this['_scheduleReconnection'](this[_0x43b234(0x3b3)]),this[_0x43b234(0x3b3)]+=0x1):this[_0x43b234(0x324)]['show']({'type':oe['MessageType'][_0x43b234(0x3e0)],'content':this[_0x43b234(0x1df)]['t'](_0x43b234(0x384))});}[_0x5c8e6d(0x3c8)](_0x38746d){const _0x4198be=_0x5c8e6d;var _0x2ae93c;const _0x78df6d=((_0x2ae93c=this['_configService'][_0x4198be(0xab)](Wt))!=null?_0x2ae93c:Gt)*0x2**_0x38746d;this['_messageService'][_0x4198be(0x302)]({'type':oe['MessageType']['Warning'],'content':this[_0x4198be(0x1df)]['t'](_0x4198be(0xb9))}),this[_0x4198be(0x193)]=setTimeout(()=>{const _0x161cf7=_0x4198be;this[_0x161cf7(0x121)](),clearTimeout(this[_0x161cf7(0x193)]),this[_0x161cf7(0x193)]=null;},_0x78df6d);}['_rescheduleHeartbeatEvent'](){const _0x5a6da1=_0x5c8e6d;var _0x350d73;this[_0x5a6da1(0x325)](),this[_0x5a6da1(0x1aa)]=setTimeout(()=>this[_0x5a6da1(0x185)](),(_0x350d73=this[_0x5a6da1(0x3f7)][_0x5a6da1(0xab)](ut))!=null?_0x350d73:Vt);}['_sendHeartbeat'](){const _0x342c5f=_0x5c8e6d;this[_0x342c5f(0x2bd)][_0x342c5f(0xa4)]({'cmd':b[_0x342c5f(0x11d)]}),this[_0x342c5f(0xe5)]();}[_0x5c8e6d(0xe5)](){const _0x27bc4a=_0x5c8e6d;var _0x8cb8f9;this[_0x27bc4a(0x129)]=setTimeout(()=>this[_0x27bc4a(0x25e)](),(_0x8cb8f9=this[_0x27bc4a(0x3f7)][_0x27bc4a(0xab)](xe))!=null?_0x8cb8f9:dt);}['_onMessage'](_0x3d0791,_0x461935){const _0x1a6500=_0x5c8e6d,{cmd:_0x359acf}=_0x461935;_0x359acf===b[_0x1a6500(0x228)]&&!this[_0x1a6500(0x104)]&&(_0x3d0791[_0x1a6500(0xd6)]=_0x461935[_0x1a6500(0x95)][_0x1a6500(0xd6)],this[_0x1a6500(0x199)][_0x1a6500(0x211)](_0x3d0791),this[_0x1a6500(0x156)]['next'](0x3),this[_0x1a6500(0x104)]=!0x0),_0x359acf===b[_0x1a6500(0x11d)]&&this['_clearTimeoutTimer'](),this[_0x1a6500(0x7c)]();}[_0x5c8e6d(0x325)](){const _0x558f55=_0x5c8e6d;this[_0x558f55(0x1aa)]!=null&&(clearTimeout(this[_0x558f55(0x1aa)]),this[_0x558f55(0x1aa)]=null);}['_clearTimeoutTimer'](){const _0x23c634=_0x5c8e6d;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x23c634(0x129)]),this[_0x23c634(0x129)]=null);}},exports[_0x5c8e6d(0x356)]=pt([U(0x0,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),U(0x1,h[_0x5c8e6d(0x189)](a['LocaleService'])),U(0x2,N['IMessageService']),U(0x3,a[_0x5c8e6d(0x14f)]),U(0x4,a[_0x5c8e6d(0x3fd)]),U(0x5,Be)],exports[_0x5c8e6d(0x356)]);var as=Object[_0x5c8e6d(0x3a5)],cs=Object['getOwnPropertyDescriptor'],ls=(_0x4676c3,_0x2557fb,_0x492499,_0x545e28)=>{const _0x5270d9=_0x5c8e6d;for(var _0x483d19=_0x545e28>0x1?void 0x0:_0x545e28?cs(_0x2557fb,_0x492499):_0x2557fb,_0x2bd8e6=_0x4676c3[_0x5270d9(0x7a)]-0x1,_0x25cbae;_0x2bd8e6>=0x0;_0x2bd8e6--)(_0x25cbae=_0x4676c3[_0x2bd8e6])&&(_0x483d19=(_0x545e28?_0x25cbae(_0x2557fb,_0x492499,_0x483d19):_0x25cbae(_0x483d19))||_0x483d19);return _0x545e28&&_0x483d19&&as(_0x2557fb,_0x492499,_0x483d19),_0x483d19;},se=(_0x1513a1,_0x4ef938)=>(_0x476049,_0x14a756)=>_0x4ef938(_0x476049,_0x14a756,_0x1513a1);exports[_0x5c8e6d(0x342)]=class extends a['Disposable']{constructor(_0x4c0972,_0x399467,_0x623b8f,_0xeeb021,_0x599082){const _0x38d9f5=_0x5c8e6d;super(),d(this,_0x38d9f5(0x1d0),new Map()),d(this,_0x38d9f5(0xf3),new Map()),d(this,_0x38d9f5(0x117),!0x1),(this[_0x38d9f5(0x3f7)]=_0x4c0972,this[_0x38d9f5(0xc9)]=_0x399467,this[_0x38d9f5(0x3a4)]=_0x623b8f,this['_localeService']=_0xeeb021,this[_0x38d9f5(0x3a6)]=_0x599082,this[_0x38d9f5(0x409)]());}[_0x5c8e6d(0x2b3)](){this['_disabled']=!0x0;}[_0x5c8e6d(0x3a2)](){const _0x508a73=_0x5c8e6d;this[_0x508a73(0x117)]=!0x1;}[_0x5c8e6d(0x364)](){const _0x24d6a9=_0x5c8e6d;this[_0x24d6a9(0x41b)]()[_0x24d6a9(0x99)](()=>super['dispose']());}async[_0x5c8e6d(0x3d8)](_0x21192a){const _0x46e8e4=_0x5c8e6d;return this[_0x46e8e4(0x117)]?null:this[_0x46e8e4(0xc9)][_0x46e8e4(0x13d)](Xe(_0x21192a));}async[_0x5c8e6d(0x33f)](_0x4c73cc,_0x28cecc){const _0x4924d4=_0x5c8e6d;return!!this['_localStorageService'][_0x4924d4(0x282)](_0x4c73cc,_0x28cecc);}['updateOfflineData'](_0x383117,_0x304901,_0x7b1c6,_0x5dde55){const _0x116464=_0x5c8e6d,_0x4a793b=this[_0x116464(0x3a6)]['getCurrentRevForDocument'](_0x383117);this[_0x116464(0x1d0)][_0x116464(0x395)](_0x383117,{'unitID':_0x383117,'type':_0x304901,'awaitingChangeset':_0x7b1c6,'mutations':_0x5dde55,'rev':_0x4a793b}),this['_saveTaskMap'][_0x116464(0x315)](_0x383117)||this[_0x116464(0x352)](_0x383117);}[_0x5c8e6d(0x352)](_0x28ac0f){const _0x5cf231=_0x5c8e6d,_0x3df4d4=this[_0x5cf231(0x1fc)]();_0x3df4d4===0x0?this[_0x5cf231(0x2cb)](_0x28ac0f):this['_saveTaskMap'][_0x5cf231(0x395)](_0x28ac0f,setTimeout(()=>this[_0x5cf231(0x2cb)](_0x28ac0f),_0x3df4d4));}[_0x5c8e6d(0x1fc)](){const _0x2f74c7=_0x5c8e6d;var _0x5daf1b;return(_0x5daf1b=this['_configService'][_0x2f74c7(0xab)](St))!=null?_0x5daf1b:Xt;}[_0x5c8e6d(0x2cb)](_0x5f3386){const _0x1c2438=_0x5c8e6d,_0x5a03fd=this[_0x1c2438(0xf3)][_0x1c2438(0xc0)](_0x5f3386);return _0x5a03fd!==void 0x0&&window[_0x1c2438(0x88)](_0x5a03fd),this['_localStorageService'][_0x1c2438(0x282)](Xe(_0x5f3386),this[_0x1c2438(0x1d0)][_0x1c2438(0xc0)](_0x5f3386))[_0x1c2438(0x99)](()=>this[_0x1c2438(0xf3)][_0x1c2438(0x235)](_0x5f3386));}async['_exhaustSavingTask'](){const _0x3bbfe7=_0x5c8e6d,_0x4dcabe=[];this[_0x3bbfe7(0xf3)][_0x3bbfe7(0x382)]((_0x4bf37e,_0x3385b4)=>{const _0x16e1d2=_0x3bbfe7;window[_0x16e1d2(0x88)](_0x4bf37e),_0x4dcabe[_0x16e1d2(0x105)](this[_0x16e1d2(0x2cb)](_0x3385b4)[_0x16e1d2(0x99)](()=>{const _0x4f157d=_0x16e1d2;this[_0x4f157d(0xf3)][_0x4f157d(0x235)](_0x3385b4);}));}),await Promise[_0x3bbfe7(0x1a4)](_0x4dcabe);}[_0x5c8e6d(0x409)](){const _0xad4d4d=_0x5c8e6d;this[_0xad4d4d(0x2c5)](this[_0xad4d4d(0x3a4)][_0xad4d4d(0x34b)](()=>{const _0x3227dc=_0xad4d4d;if(this[_0x3227dc(0xf3)][_0x3227dc(0x112)])return this['_localeService']['t'](_0x3227dc(0x1fb));}));}},exports['LocalCacheService']=ls([se(0x0,a['IConfigService']),se(0x1,a[_0x5c8e6d(0xd0)]),se(0x2,N['IBeforeCloseService']),se(0x3,h['Inject'](a[_0x5c8e6d(0x405)])),se(0x4,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0xd7)]))],exports[_0x5c8e6d(0x342)]);function Xe(_0x1beeee){const _0x21176a=_0x5c8e6d;return _0x21176a(0x32b)+_0x1beeee;}const pe=h['createIdentifier'](_0x5c8e6d(0xbf));var Et=(_0x3d7620=>(_0x3d7620[_0x3d7620['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x3d7620[_0x3d7620[_0x5c8e6d(0x3bc)]=0x1]=_0x5c8e6d(0x3bc),_0x3d7620))(Et||{});const qe=0x7530,Je='ACTIVE_UNIT_EVENT_CHANNEL';class hs extends a[_0x5c8e6d(0x40b)]{constructor(){const _0x275590=_0x5c8e6d;super(),d(this,'_id',a[_0x275590(0x268)][_0x275590(0x1b1)]()),d(this,_0x275590(0x351),new Set()),d(this,_0x275590(0x227),new Map()),d(this,_0x275590(0x1a0),null),d(this,'_clearOtherTimers',new Map()),d(this,'_unitStatus',new Map()),this['_init']();}[_0x5c8e6d(0x364)](){const _0x2a1a52=_0x5c8e6d;super[_0x2a1a52(0x364)](),this[_0x2a1a52(0x2aa)][_0x2a1a52(0x382)]((_0x25afa7,_0x3b37ad)=>this[_0x2a1a52(0x3e6)](_0x3b37ad)),this[_0x2a1a52(0x1a0)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0x471acd){const _0x4b34c2=_0x5c8e6d;return this[_0x4b34c2(0x12f)](_0x471acd)[_0x4b34c2(0x149)](g['distinctUntilChanged']());}['editingUnit'](_0x1d7d19){const _0x4aaf15=_0x5c8e6d;this[_0x4aaf15(0x351)][_0x4aaf15(0x112)]===0x0&&this[_0x4aaf15(0x38d)](),this['_selfUnitIDs']['add'](_0x1d7d19),this[_0x4aaf15(0x24f)]({'type':0x0,'memberID':this[_0x4aaf15(0x14a)],'unitIDs':[_0x1d7d19],'isForwarded':!0x1});}[_0x5c8e6d(0x39c)](_0x1a8e35){const _0x2ef961=_0x5c8e6d;this[_0x2ef961(0x351)][_0x2ef961(0x235)](_0x1a8e35),this['_selfUnitIDs'][_0x2ef961(0x112)]===0x0&&this[_0x2ef961(0x1a0)]&&window['clearInterval'](this[_0x2ef961(0x1a0)]);}[_0x5c8e6d(0x8a)](){const _0x38fe25=_0x5c8e6d;this[_0x38fe25(0x2c5)](a[_0x38fe25(0x3c9)](g['fromEvent'](window,_0x38fe25(0x3e3))['subscribe'](_0x3200e9=>{const _0x379ca8=_0x38fe25;if(_0x3200e9[_0x379ca8(0x274)]!==Je||!_0x3200e9['newValue'])return;const _0x38e685=JSON[_0x379ca8(0x2d5)](_0x3200e9['newValue']);this[_0x379ca8(0x32d)](_0x38e685);}))),window[_0x38fe25(0x1f3)](_0x38fe25(0x2c7),()=>this['_send']({'type':0x1,'memberID':this[_0x38fe25(0x14a)],'unitIDs':Array['from'](this[_0x38fe25(0x351)])}));}['_handleEvent'](_0x9f7909){const _0x28482a=_0x5c8e6d;switch(_0x9f7909[_0x28482a(0x27e)]){case 0x0:this[_0x28482a(0x126)](_0x9f7909);break;case 0x1:this[_0x28482a(0x1d1)](_0x9f7909);break;case 0x2:this[_0x28482a(0xbe)](_0x9f7909);break;}}[_0x5c8e6d(0x126)](_0x444b56){const _0x43c7eb=_0x5c8e6d,{unitIDs:_0x3ba8fa,memberID:_0x1eb381,isForwarded:_0x46df42}=_0x444b56;_0x3ba8fa[_0x43c7eb(0x382)](_0x78094b=>{const _0x757e26=_0x43c7eb;if(!_0x46df42&&this[_0x757e26(0x227)]['has'](_0x78094b)&&this[_0x757e26(0x12f)](_0x78094b)['next'](0x1),!this[_0x757e26(0x227)][_0x757e26(0x315)](_0x78094b)||!this[_0x757e26(0x227)][_0x757e26(0xc0)](_0x78094b)[_0x757e26(0x315)](_0x1eb381)){const _0x41bed4=this[_0x757e26(0x227)][_0x757e26(0xc0)](_0x78094b)||new Set();_0x41bed4[_0x757e26(0x303)](_0x1eb381),this[_0x757e26(0x227)][_0x757e26(0x395)](_0x78094b,_0x41bed4),this[_0x757e26(0x3d0)](_0x1eb381);}}),_0x46df42||this[_0x43c7eb(0x24f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x43c7eb(0x351)]],'isForwarded':!0x0});}[_0x5c8e6d(0x3d0)](_0x49abf0){const _0x133495=_0x5c8e6d;this[_0x133495(0x3e6)](_0x49abf0);const _0x124950=window[_0x133495(0x103)](()=>{const _0x29da2d=_0x133495;this[_0x29da2d(0x227)][_0x29da2d(0x382)](_0x1f659e=>{_0x1f659e['delete'](_0x49abf0);});},qe*0x2);this[_0x133495(0x2aa)]['set'](_0x49abf0,_0x124950);}[_0x5c8e6d(0x3e6)](_0x590ba1){const _0x325e3b=_0x5c8e6d;if(this[_0x325e3b(0x2aa)]['has'](_0x590ba1)){const _0x1ef475=this[_0x325e3b(0x2aa)][_0x325e3b(0xc0)](_0x590ba1);_0x1ef475&&window[_0x325e3b(0x88)](_0x1ef475),this[_0x325e3b(0x2aa)]['set'](_0x590ba1,null);}}[_0x5c8e6d(0x1d1)](_0x894aad){const _0x182004=_0x5c8e6d,{memberID:_0x484c72,unitIDs:_0x405b0b}=_0x894aad;_0x405b0b[_0x182004(0x382)](_0x53b6d8=>{const _0x3946bc=_0x182004;var _0x4ec6cf;const _0x21787b=this[_0x3946bc(0x227)][_0x3946bc(0xc0)](_0x53b6d8);_0x21787b&&(_0x21787b[_0x3946bc(0x235)](_0x484c72),(_0x4ec6cf=this['_ensureSubject'](_0x53b6d8))==null||_0x4ec6cf[_0x3946bc(0x211)](_0x21787b[_0x3946bc(0x112)]===0x0?0x0:0x1));}),this[_0x182004(0x3e6)](_0x484c72);}[_0x5c8e6d(0xbe)](_0x967f42){const _0x3954d7=_0x5c8e6d;this['_scheduleClearOtherTimer'](_0x967f42[_0x3954d7(0xd6)]);}[_0x5c8e6d(0x24f)](_0x2f11c0){const _0x1082ac=_0x5c8e6d;localStorage[_0x1082ac(0x282)](Je,JSON['stringify'](_0x2f11c0));}[_0x5c8e6d(0x38d)](){const _0x31545b=_0x5c8e6d;this['_heartbeatTimer']=window[_0x31545b(0x3a7)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},qe);}['_ensureSubject'](_0x4d3cf7){const _0x4a36c0=_0x5c8e6d;return this[_0x4a36c0(0x17a)][_0x4a36c0(0x315)](_0x4d3cf7)||this['_unitStatus'][_0x4a36c0(0x395)](_0x4d3cf7,new g['BehaviorSubject'](0x0)),this['_unitStatus'][_0x4a36c0(0xc0)](_0x4d3cf7);}}var _s=Object[_0x5c8e6d(0x3a5)],us=Object[_0x5c8e6d(0x373)],ds=(_0x48e040,_0x47f0c2,_0x15a33a,_0x282c18)=>{const _0xf274e=_0x5c8e6d;for(var _0x31f931=_0x282c18>0x1?void 0x0:_0x282c18?us(_0x47f0c2,_0x15a33a):_0x47f0c2,_0x114e9a=_0x48e040[_0xf274e(0x7a)]-0x1,_0x2bad71;_0x114e9a>=0x0;_0x114e9a--)(_0x2bad71=_0x48e040[_0x114e9a])&&(_0x31f931=(_0x282c18?_0x2bad71(_0x47f0c2,_0x15a33a,_0x31f931):_0x2bad71(_0x31f931))||_0x31f931);return _0x282c18&&_0x31f931&&_s(_0x47f0c2,_0x15a33a,_0x31f931),_0x31f931;},ze=(_0x5eb9b3,_0x408973)=>(_0x26b256,_0x14b8ca)=>_0x408973(_0x26b256,_0x14b8ca,_0x5eb9b3);let ve=class{constructor(_0x15eb8d,_0x2e829a){const _0x292b55=_0x5c8e6d;this[_0x292b55(0x21a)]=_0x15eb8d,this[_0x292b55(0xdb)]=_0x2e829a;}[_0x5c8e6d(0x241)](_0x172b5c){const _0x163ad9=_0x5c8e6d;this[_0x163ad9(0x27b)](_0x172b5c),this[_0x163ad9(0x207)](_0x172b5c);}[_0x5c8e6d(0x314)](_0x4fafad){const _0x1f4a5c=_0x5c8e6d,_0x2e6490=this['_injector'][_0x1f4a5c(0xc0)](M[_0x1f4a5c(0x224)]),{redoCache:_0x401573}=_0x2e6490['getUndoRedoMutationParamsCache']();if(_0x401573[_0x1f4a5c(0x7a)]===0x0)return _0x4fafad;let _0x3228f9=a[_0x1f4a5c(0x268)][_0x1f4a5c(0x25d)](_0x4fafad[_0x1f4a5c(0xdc)][0x0]);for(let _0x152805=0x0;_0x152805<_0x401573[_0x1f4a5c(0x7a)];_0x152805++){const _0xe076e8={'id':'doc.mutation.rich-text-editing','params':{..._0x401573[_0x152805]}},_0x45d1f6=this[_0x1f4a5c(0xdb)][_0x1f4a5c(0x291)](_0x3228f9,_0xe076e8,!0x1);if(u[_0x1f4a5c(0x108)](_0x45d1f6))throw _0x45d1f6[_0x1f4a5c(0x2bf)];_0x3228f9=_0x45d1f6[_0x1f4a5c(0x168)];}return{...a[_0x1f4a5c(0x268)][_0x1f4a5c(0x25d)](_0x4fafad),'mutations':[_0x3228f9]};}['_transformUndoRedoStack'](_0x45924d){const _0x2a6a3f=_0x5c8e6d,_0x1bd527=this['_injector']['get'](M['IMEInputManagerService']),{undoCache:_0x4e8c24,redoCache:_0x3b6628}=_0x1bd527[_0x2a6a3f(0x216)]();if(_0x4e8c24[_0x2a6a3f(0x7a)]===0x0||_0x3b6628['length']===0x0)return;const _0x492576=[],_0x177764=[];let _0x2671f7=a[_0x2a6a3f(0x268)][_0x2a6a3f(0x25d)](_0x45924d[_0x2a6a3f(0xdc)][0x0]),_0x4d7eca=a[_0x2a6a3f(0x268)][_0x2a6a3f(0x25d)](_0x45924d['mutations'][0x0]);for(let _0x2240a2=_0x4e8c24[_0x2a6a3f(0x7a)]-0x1;_0x2240a2>=0x0;_0x2240a2--){const _0x31b8e9={'id':'doc.mutation.rich-text-editing','params':{..._0x4e8c24[_0x2240a2]}},_0x2d2013={'id':_0x2a6a3f(0x358),'params':{..._0x3b6628[_0x2240a2]}},_0xfa9ec8=this[_0x2a6a3f(0xdb)][_0x2a6a3f(0x291)](_0x2671f7,_0x31b8e9,!0x1),_0x1a732d=this[_0x2a6a3f(0xdb)][_0x2a6a3f(0x291)](_0x4d7eca,_0x2d2013,!0x1);if(u[_0x2a6a3f(0x108)](_0xfa9ec8))throw _0xfa9ec8[_0x2a6a3f(0x2bf)];if(u[_0x2a6a3f(0x108)](_0x1a732d))throw _0x1a732d[_0x2a6a3f(0x2bf)];_0x492576[_0x2a6a3f(0x205)](_0xfa9ec8[_0x2a6a3f(0x2b1)]['params']),_0x177764[_0x2a6a3f(0x205)](_0x1a732d[_0x2a6a3f(0x2b1)][_0x2a6a3f(0x355)]),_0x2671f7=_0xfa9ec8['m1Prime'],_0x4d7eca=_0x1a732d[_0x2a6a3f(0x168)];}_0x1bd527[_0x2a6a3f(0x1b0)]({'undoCache':_0x492576,'redoCache':_0x177764});}['_transformPreviousActiveRange'](_0x3a04a3){const _0x5a1368=_0x5c8e6d,_0x30ff13=this[_0x5a1368(0x21a)]['get'](M[_0x5a1368(0x224)]),_0x24bfaf=_0x30ff13[_0x5a1368(0x249)]();if(_0x24bfaf==null)return;const _0x54f9cd=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3a04a3[_0x5a1368(0x27a)],'actions':null,'textRanges':[_0x24bfaf]}}],_0x181fd9=this[_0x5a1368(0xdb)][_0x5a1368(0x3fb)](_0x3a04a3,_0x54f9cd);if(!u[_0x5a1368(0x30e)](_0x181fd9))throw _0x181fd9[_0x5a1368(0x2bf)];const _0x558b6f=_0x181fd9[_0x5a1368(0x2b1)][0x0][_0x5a1368(0x355)][_0x5a1368(0x29c)];Array[_0x5a1368(0x218)](_0x558b6f)&&_0x558b6f[_0x5a1368(0x7a)]&&_0x30ff13[_0x5a1368(0xd4)](_0x558b6f[0x0]);}};ve=ds([ze(0x0,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),ze(0x1,u['ITransformService'])],ve);var Ss=Object['defineProperty'],vs=Object[_0x5c8e6d(0x373)],gs=(_0x504530,_0x4f127f,_0x503e70,_0x2914fa)=>{const _0x26e774=_0x5c8e6d;for(var _0xee179c=_0x2914fa>0x1?void 0x0:_0x2914fa?vs(_0x4f127f,_0x503e70):_0x4f127f,_0x5c2f8c=_0x504530[_0x26e774(0x7a)]-0x1,_0x7bdb6a;_0x5c2f8c>=0x0;_0x5c2f8c--)(_0x7bdb6a=_0x504530[_0x5c2f8c])&&(_0xee179c=(_0x2914fa?_0x7bdb6a(_0x4f127f,_0x503e70,_0xee179c):_0x7bdb6a(_0xee179c))||_0xee179c);return _0x2914fa&&_0xee179c&&Ss(_0x4f127f,_0x503e70,_0xee179c),_0xee179c;},Ze=(_0x203ac4,_0x58f3d7)=>(_0x20f6a2,_0x1bdb52)=>_0x58f3d7(_0x20f6a2,_0x1bdb52,_0x203ac4);let ge=class{constructor(_0x4b3e58,_0x33e0ba){const _0x58c28e=_0x5c8e6d;this[_0x58c28e(0x21a)]=_0x4b3e58,this[_0x58c28e(0xdb)]=_0x33e0ba;}[_0x5c8e6d(0x37f)](_0x741214){const _0x505224=_0x5c8e6d;var _0x526561;const _0x284a5e=this['_injector']['get'](M[_0x505224(0x260)]),_0x1120ee=(_0x526561=_0x284a5e[_0x505224(0xb6)]())!=null?_0x526561:[],_0x5e6c37=_0x1120ee==null?void 0x0:_0x1120ee[_0x505224(0xe8)](M[_0x505224(0x29e)]);if(_0x5e6c37[_0x505224(0x7a)]===0x0)return;const _0x2a1ab8=[{'id':_0x505224(0x358),'params':{'unitId':_0x741214['unitID'],'actions':null,'textRanges':_0x5e6c37}}],_0x17dceb=this[_0x505224(0xdb)][_0x505224(0x3fb)](_0x741214,_0x2a1ab8);if(!u[_0x505224(0x30e)](_0x17dceb))throw _0x17dceb['error'];const _0x439228=_0x17dceb['m2Prime'][0x0][_0x505224(0x355)][_0x505224(0x29c)];Array[_0x505224(0x218)](_0x439228)&&_0x439228[_0x505224(0x7a)]&&_0x284a5e[_0x505224(0x316)](_0x439228,!0x1);}};ge=gs([Ze(0x0,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),Ze(0x1,u[_0x5c8e6d(0x35b)])],ge);function Ct(_0xece85a){let _0x1970a5='';for(const _0xf23d94 of _0xece85a){const {startOffset:_0x133fbe,endOffset:_0x3706ae,isActive:_0x130773}=_0xf23d94;_0x1970a5['length']&&(_0x1970a5+=','),_0x1970a5+=_0x133fbe+':'+_0x3706ae+':'+(_0x130773?'1':'0');}return _0x1970a5;}function fs(_0x4d002b){const _0x43e27b=_0x5c8e6d,_0x467786=_0x4d002b[_0x43e27b(0x354)](','),_0x4204e1=[];for(const _0x4a0e9c of _0x467786){const [_0x5e66bf,_0x4696e0,_0x15f22e]=_0x4a0e9c[_0x43e27b(0x354)](':');_0x4204e1[_0x43e27b(0x105)]({'startOffset':Number(_0x5e66bf),'endOffset':Number(_0x4696e0),'collapsed':_0x5e66bf===_0x4696e0,'isActive':_0x15f22e==='1'});}return _0x4204e1[_0x43e27b(0x273)](_0x450152=>_0x450152[_0x43e27b(0x334)])||(_0x4204e1[0x0][_0x43e27b(0x334)]=!0x0),_0x4204e1;}class Fe extends a['RxDisposable']{constructor(){const _0xf181f=_0x5c8e6d;super(...arguments),d(this,_0xf181f(0x102),new g[(_0xf181f(0x18a))](null)),d(this,'collabCursorState$',this[_0xf181f(0x102)][_0xf181f(0xb5)]());}['syncEditingCollabCursor'](_0x2acb58){const _0x5b73e5=_0x5c8e6d,{unitID:_0x3fe432,memberID:_0x211c52,textRanges:_0x3af37b}=_0x2acb58,_0x4641fd=Ct(_0x3af37b),_0x3ac39c={'unitID':_0x3fe432,'memberID':_0x211c52,'selection':_0x4641fd};this[_0x5b73e5(0x102)]['next'](_0x3ac39c);}}var ms=Object[_0x5c8e6d(0x3a5)],Is=Object['getOwnPropertyDescriptor'],ps=(_0x5484c8,_0x1d52da,_0x438809,_0x21686c)=>{const _0x4b0b54=_0x5c8e6d;for(var _0x2d6ccc=_0x21686c>0x1?void 0x0:_0x21686c?Is(_0x1d52da,_0x438809):_0x1d52da,_0x5d775d=_0x5484c8[_0x4b0b54(0x7a)]-0x1,_0x56f231;_0x5d775d>=0x0;_0x5d775d--)(_0x56f231=_0x5484c8[_0x5d775d])&&(_0x2d6ccc=(_0x21686c?_0x56f231(_0x1d52da,_0x438809,_0x2d6ccc):_0x56f231(_0x2d6ccc))||_0x2d6ccc);return _0x21686c&&_0x2d6ccc&&ms(_0x1d52da,_0x438809,_0x2d6ccc),_0x2d6ccc;},Qe=(_0x38e551,_0x34909c)=>(_0x35cadf,_0x529f79)=>_0x34909c(_0x35cadf,_0x529f79,_0x38e551);let fe=class{constructor(_0xca5ae3,_0x5ad819){const _0x59d070=_0x5c8e6d;this[_0x59d070(0x21a)]=_0xca5ae3,this['_transformService']=_0x5ad819;}['transformSelections'](_0x19d4f4){const _0x31f38c=_0x5c8e6d;var _0x5a8c8,_0x4a7161,_0x292849,_0x1d459b;const _0x134cd9=this[_0x31f38c(0x21a)][_0x31f38c(0xc0)](E[_0x31f38c(0x3cb)]),{pluginName:_0x25550c,unitId:_0x54eb0d,sheetId:_0xe5f897}=_0x134cd9[_0x31f38c(0x140)]()||{},_0x1b4f4b=(_0x5a8c8=_0x134cd9[_0x31f38c(0xb6)]())!=null?_0x5a8c8:[];if(_0x1b4f4b[_0x31f38c(0x7a)]===0x0||!_0x25550c||!_0x54eb0d||!_0xe5f897)return;const _0x560288=[{'id':E[_0x31f38c(0x425)]['id'],'params':{'unitId':_0x54eb0d,'subUnitId':_0xe5f897,'pluginName':_0x25550c,'selections':a['Tools'][_0x31f38c(0x25d)](_0x1b4f4b)}}],_0x3542c1=this[_0x31f38c(0xdb)][_0x31f38c(0x3fb)](_0x19d4f4,_0x560288);if(!u['isTransformMutationsWithChangesetSuccess'](_0x3542c1))throw _0x3542c1[_0x31f38c(0x2bf)];const _0xf29174=(_0x1d459b=(_0x292849=(_0x4a7161=_0x3542c1[_0x31f38c(0x2b1)][0x0])==null?void 0x0:_0x4a7161[_0x31f38c(0x355)])==null?void 0x0:_0x292849[_0x31f38c(0x38f)])!=null?_0x1d459b:_0x1b4f4b;Array['isArray'](_0xf29174)&&_0xf29174[_0x31f38c(0x7a)]&&this[_0x31f38c(0x21a)][_0x31f38c(0xc0)](a[_0x31f38c(0x1ec)])['executeCommand'](E[_0x31f38c(0x425)]['id'],{'unitId':_0x54eb0d,'subUnitId':_0xe5f897,'pluginName':_0x25550c,'selections':_0xf29174});}};fe=ps([Qe(0x0,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),Qe(0x1,u['ITransformService'])],fe);const Es=new Set([E['InsertSheetMutation']['id']]);function Cs(_0x2a1322,_0x1521df,_0x50694f,_0x204642,_0xe3221f){const _0x543f0a=_0x5c8e6d;var _0x46f9eb,_0x8bdcf,_0xab7798,_0x8cc827;const _0x20e738=[];for(const _0x3b761a of _0x2a1322)if(Es['has'](_0x3b761a['id'])){if(_0x20e738[_0x543f0a(0x7a)]>0x0)break;_0x20e738[_0x543f0a(0x105)](_0x3b761a);break;}else _0x20e738['push'](_0x3b761a);const _0x5f3bb0=(_0x8bdcf=(_0x46f9eb=_0xe3221f[_0x543f0a(0x1b9)]())==null?void 0x0:_0x46f9eb[_0x543f0a(0x10f)])!=null?_0x8bdcf:'unknown',_0xfb9372=(_0x8cc827=(_0xab7798=_0xe3221f[_0x543f0a(0x1b9)]())==null?void 0x0:_0xab7798[_0x543f0a(0xd6)])!=null?_0x8cc827:_0x543f0a(0x35d);return{'changeset':{'unitID':_0x1521df,'type':u['mapDocumentTypeToUniverType'](_0x50694f[_0x543f0a(0x3dc)](_0x1521df)),'baseRev':_0x204642[_0x543f0a(0x20e)](_0x1521df),'revision':0x0,'userID':_0x5f3bb0,'memberID':_0xfb9372,'mutations':_0x20e738},'pendingMutations':_0x2a1322[_0x543f0a(0x169)](_0x20e738['length'])};}function bs(_0x28cede,_0x585554,_0x3d7f34,_0x4a1fe3,_0x52b36c){const _0x5203fc=_0x5c8e6d;var _0x1a9001,_0x132243,_0xb9dba5,_0x1369d4;const _0x4dcc1a=[_0x28cede[_0x5203fc(0x12c)]((_0x39470c,_0x4b9359)=>{const _0x12b2b4=_0x5203fc;var _0x518aa1;const {id:_0x37f90e}=_0x39470c,{id:_0x30db2d,type:_0x4bfc87}=_0x4b9359,_0x3c2e83=(_0x518aa1=_0x39470c[_0x12b2b4(0x355)])!=null?_0x518aa1:{'actions':null},_0xd9b392=_0x4b9359[_0x12b2b4(0x355)];if(_0x37f90e&&_0x37f90e!==_0x30db2d)throw new Error(_0x12b2b4(0x304)+_0x37f90e+_0x12b2b4(0x39f)+_0x30db2d+'.');return{..._0x39470c,'id':_0x30db2d,'type':_0x4bfc87,'params':{'unitId':_0xd9b392[_0x12b2b4(0x1a2)],'textRanges':_0xd9b392[_0x12b2b4(0x29c)],'actions':a[_0x12b2b4(0x3de)]['compose'](_0x3c2e83[_0x12b2b4(0x22e)],_0xd9b392[_0x12b2b4(0x22e)])}};},{})],_0x96c2e4=(_0x132243=(_0x1a9001=_0x52b36c[_0x5203fc(0x1b9)]())==null?void 0x0:_0x1a9001[_0x5203fc(0x10f)])!=null?_0x132243:_0x5203fc(0x35d),_0x5d57f0=(_0x1369d4=(_0xb9dba5=_0x52b36c[_0x5203fc(0x1b9)]())==null?void 0x0:_0xb9dba5['memberID'])!=null?_0x1369d4:_0x5203fc(0x35d);return{'changeset':{'unitID':_0x585554,'type':u[_0x5203fc(0x1f1)](_0x3d7f34['getUnitType'](_0x585554)),'baseRev':_0x4a1fe3[_0x5203fc(0x20e)](_0x585554),'revision':0x0,'userID':_0x96c2e4,'memberID':_0x5d57f0,'mutations':_0x4dcc1a},'pendingMutations':[]};}var Ts=Object[_0x5c8e6d(0x3a5)],Rs=Object[_0x5c8e6d(0x373)],K=(_0x263c34,_0x185c5f,_0x63d35,_0xd414a5)=>{const _0x471286=_0x5c8e6d;for(var _0x3bb302=_0xd414a5>0x1?void 0x0:_0xd414a5?Rs(_0x185c5f,_0x63d35):_0x185c5f,_0x20908d=_0x263c34[_0x471286(0x7a)]-0x1,_0xedb486;_0x20908d>=0x0;_0x20908d--)(_0xedb486=_0x263c34[_0x20908d])&&(_0x3bb302=(_0xd414a5?_0xedb486(_0x185c5f,_0x63d35,_0x3bb302):_0xedb486(_0x3bb302))||_0x3bb302);return _0xd414a5&&_0x3bb302&&Ts(_0x185c5f,_0x63d35,_0x3bb302),_0x3bb302;},f=(_0x34e7d7,_0x44a4f7)=>(_0x4fe718,_0x50e172)=>_0x44a4f7(_0x4fe718,_0x50e172,_0x34e7d7),w=(_0x22c9fc=>(_0x22c9fc[_0x5c8e6d(0x2d2)]=_0x5c8e6d(0x27f),_0x22c9fc['SYNCED']=_0x5c8e6d(0x2a9),_0x22c9fc[_0x5c8e6d(0x3ff)]=_0x5c8e6d(0x254),_0x22c9fc[_0x5c8e6d(0x106)]='awaiting',_0x22c9fc[_0x5c8e6d(0xb1)]='awaiting_with_pending',_0x22c9fc[_0x5c8e6d(0x201)]=_0x5c8e6d(0x281),_0x22c9fc[_0x5c8e6d(0x288)]='conflict',_0x22c9fc['OFFLINE']=_0x5c8e6d(0x7f),_0x22c9fc))(w||{});class X{constructor(_0x1b7563,_0x30b469,_0x1e8293,_0x462732,_0x22051e,_0x215e39,_0x119b63,_0x523979,_0x2d46f6){const _0x4a2b13=_0x5c8e6d;d(this,'_awaitingChangeset',null),d(this,_0x4a2b13(0x18c),[]),(this[_0x4a2b13(0x27a)]=_0x1b7563,this[_0x4a2b13(0x27e)]=_0x30b469,this[_0x4a2b13(0x3c0)]=_0x22051e,this[_0x4a2b13(0x2ea)]=_0x215e39,this['_undoRedoService']=_0x119b63,this[_0x4a2b13(0x3a6)]=_0x523979,this[_0x4a2b13(0x11c)]=_0x2d46f6,this['_awaitingChangeset']=_0x1e8293,this[_0x4a2b13(0x18c)]=_0x462732);}['_checkMissing'](_0x15a25f){const _0x2b33e1=_0x5c8e6d,_0x45efc5=this['_revisionService'][_0x2b33e1(0x20e)](this['unitID']);return _0x15a25f[_0x2b33e1(0x15b)]>_0x45efc5+0x1?(this['_handler'][_0x2b33e1(0x101)]({'from':_0x45efc5,'to':_0x15a25f[_0x2b33e1(0x15b)]-0x1}),!0x0):!0x1;}[_0x5c8e6d(0x236)](_0x42a5d5){const _0x100e8e=_0x5c8e6d;this['_undoRedoService'][_0x100e8e(0x22f)](this[_0x100e8e(0x27a)],_0x42a5d5);}[_0x5c8e6d(0x2ab)](_0x458be5){const _0x475149=_0x5c8e6d;var _0x3f5167,_0x2ee2b0;(_0x2ee2b0=(_0x3f5167=this[_0x475149(0x3c0)])['onTransformSelections'])==null||_0x2ee2b0[_0x475149(0x253)](_0x3f5167,_0x458be5);}[_0x5c8e6d(0x3c4)](_0x48aeae){const _0x4cdc22=_0x5c8e6d;var _0x250d13,_0x5ed69d;return(_0x5ed69d=(_0x250d13=this[_0x4cdc22(0x3c0)])[_0x4cdc22(0x1bf)])==null?void 0x0:_0x5ed69d[_0x4cdc22(0x253)](_0x250d13,_0x48aeae);}[_0x5c8e6d(0x1ea)](_0xec82b5){const _0x67a5d2=_0x5c8e6d;var _0x3c2612,_0x749b0d,_0x28c289;return(_0x28c289=(_0x749b0d=(_0x3c2612=this[_0x67a5d2(0x3c0)])[_0x67a5d2(0x219)])==null?void 0x0:_0x749b0d[_0x67a5d2(0x253)](_0x3c2612,_0xec82b5))!=null?_0x28c289:_0xec82b5;}[_0x5c8e6d(0x2a2)](_0x539661){const _0x14fc72=_0x5c8e6d;var _0x11d93a,_0x298915;if(this[_0x14fc72(0x27e)]===j[_0x14fc72(0x3c5)]){const {unitID:_0x1cb2b3,mutations:_0x2e956c,memberID:_0xac79b6}=_0x539661,_0x1afcfa=_0x2e956c[0x0][_0x14fc72(0x355)][_0x14fc72(0x29c)];Array[_0x14fc72(0x218)](_0x1afcfa)&&_0x1afcfa[_0x14fc72(0x7a)]>0x0&&((_0x298915=(_0x11d93a=this[_0x14fc72(0x3c0)])[_0x14fc72(0x1cd)])==null||_0x298915[_0x14fc72(0x253)](_0x11d93a,{'unitID':_0x1cb2b3,'memberID':_0xac79b6,'textRanges':_0x1afcfa}));}}[_0x5c8e6d(0x37c)](){const _0x3d6a7f=_0x5c8e6d;this[_0x3d6a7f(0x11c)][_0x3d6a7f(0x15a)](this['unitID'],this[_0x3d6a7f(0x27e)],this[_0x3d6a7f(0x2bc)],this['_pendingMutations']);}[_0x5c8e6d(0x1e1)](){const _0xdd9fd=_0x5c8e6d;return this[_0xdd9fd(0x3a6)][_0xdd9fd(0x20e)](this['unitID']);}['_incrementRevisionNumber'](){const _0x2cb5bd=_0x5c8e6d;this['_revisionService'][_0x2cb5bd(0x69)](this[_0x2cb5bd(0x27a)]);}['_executeRemoteChangeset'](_0x1e7170){const _0x1db4da=_0x5c8e6d;var _0x51b43f;const _0x58f8e4=this[_0x1db4da(0x1ea)](_0x1e7170),_0x398a92=a[_0x1db4da(0x2df)](_0x58f8e4[_0x1db4da(0xdc)],this['_commandService'],{'fromCollab':!0x0});if(!_0x398a92[_0x1db4da(0x3f1)])throw _0x398a92[_0x1db4da(0x2bf)]instanceof Error?_0x398a92[_0x1db4da(0x2bf)]:new Error((_0x51b43f=_0x398a92[_0x1db4da(0x2bf)])!=null?_0x51b43f:_0x1db4da(0xeb));this[_0x1db4da(0x3c4)](_0x58f8e4),this[_0x1db4da(0x236)](_0x1e7170),this[_0x1db4da(0x2ab)](_0x58f8e4),this['_syncEditingCollabCursor'](_0x58f8e4),this[_0x1db4da(0x1e4)]();}}let ae=class extends X{constructor(_0x2b15bb,_0x7bd99d,_0x5b1271,_0x4630ac,_0x83be60,_0x5f2fdc,_0x368331,_0x58cf79,_0x2e6f79){const _0x1f6add=_0x5c8e6d;super(_0x2b15bb,_0x7bd99d,null,[],_0x5b1271,_0x58cf79,_0x368331,_0x4630ac,_0x83be60),d(this,'status',_0x1f6add(0x2a9)),(this['_injector']=_0x5f2fdc,this[_0x1f6add(0x2e1)]=_0x2e6f79);}[_0x5c8e6d(0x1c1)](_0x2fa9a0){const _0xb8d584=_0x5c8e6d,_0x4df8a9=this['_injector'][_0xb8d584(0x424)]($,this[_0xb8d584(0x27a)],this[_0xb8d584(0x27e)],[_0x2fa9a0],this[_0xb8d584(0x3c0)]);return _0x4df8a9[_0xb8d584(0x242)](),_0x4df8a9['_updateLocalCache'](),_0x4df8a9;}[_0x5c8e6d(0xa7)](_0x324d24){const _0x1a580b=_0x5c8e6d;if(this[_0x1a580b(0x1be)](_0x324d24))return this[_0x1a580b(0x21a)][_0x1a580b(0x424)](x,this[_0x1a580b(0x27a)],this[_0x1a580b(0x27e)],null,[],null,[_0x324d24],this[_0x1a580b(0x3c0)]);try{return this[_0x1a580b(0x3f2)](_0x324d24),this;}catch(_0x354d85){return this[_0x1a580b(0x2e1)][_0x1a580b(0x2bf)](_0x1a580b(0x396),_0x354d85),this;}}[_0x5c8e6d(0x266)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x5c8e6d(0xa2)](){const _0x309475=_0x5c8e6d;throw new Error(_0x309475(0x3b6));}['toggleOffline'](){const _0x2e194b=_0x5c8e6d;return this[_0x2e194b(0x21a)][_0x2e194b(0x424)](B,this['unitID'],this['type'],null,[],this[_0x2e194b(0x3c0)]);}['toggleOnline'](){return this;}['resend'](){const _0x244244=_0x5c8e6d;throw new Error(_0x244244(0x36f));}};ae=K([f(0x3,h['Inject'](u[_0x5c8e6d(0xd7)])),f(0x4,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x342)])),f(0x5,h['Inject'](h[_0x5c8e6d(0x212)])),f(0x6,a[_0x5c8e6d(0x295)]),f(0x7,a[_0x5c8e6d(0x1ec)]),f(0x8,a[_0x5c8e6d(0x14f)])],ae);let $=class extends X{constructor(_0xa7beab,_0x4c50d7,_0x2e0bf4,_0x5e8c29,_0x589f5a,_0x38b6a6,_0x338b0c,_0x50789f,_0x272c2d,_0x5e245d,_0x18c74c,_0x3564a1,_0x44fb38,_0x10dba4){const _0x3231a1=_0x5c8e6d;super(_0xa7beab,_0x4c50d7,null,_0x2e0bf4,_0x5e8c29,_0x5e245d,_0x10dba4,_0x38b6a6,_0x338b0c),d(this,_0x3231a1(0x174),_0x3231a1(0x254)),d(this,_0x3231a1(0x120),null),d(this,_0x3231a1(0x36b),null),(this[_0x3231a1(0x21a)]=_0x589f5a,this[_0x3231a1(0x330)]=_0x50789f,this[_0x3231a1(0x2e1)]=_0x272c2d,this[_0x3231a1(0x3f7)]=_0x18c74c,this[_0x3231a1(0xdb)]=_0x3564a1,this['_univerInstanceService']=_0x44fb38);}['appendMutation'](_0x11191b){const _0x3b0578=_0x5c8e6d;return this['_pendingMutations'][_0x3b0578(0x105)](_0x11191b),this[_0x3b0578(0x37c)](),this;}['onRemoteChangeset'](_0x29cbdd){const _0x264e76=_0x5c8e6d;if(this[_0x264e76(0x1be)](_0x29cbdd))return this['_clearScheduledTask'](),this['_injector'][_0x264e76(0x424)](x,this[_0x264e76(0x27a)],this[_0x264e76(0x27e)],null,this['_pendingMutations'],null,[_0x29cbdd],this['_handler']);try{const _0x54ff61=this['_transformService'][_0x264e76(0x3fb)](_0x29cbdd,this[_0x264e76(0x18c)]);if(u[_0x264e76(0x30e)](_0x54ff61)){const {c1Prime:_0x40a4b7,m2Prime:_0x39471d}=_0x54ff61;this[_0x264e76(0x3f2)](_0x40a4b7);const _0xe77947=this[_0x264e76(0x21a)]['createInstance']($,this[_0x264e76(0x27a)],this[_0x264e76(0x27e)],_0x39471d,this[_0x264e76(0x3c0)]);return this[_0x264e76(0x222)](),_0xe77947[_0x264e76(0x242)](this[_0x264e76(0x120)]?Math['max'](0x0,new Date()[_0x264e76(0x19d)]()-this[_0x264e76(0x120)]):this[_0x264e76(0x359)]()),_0xe77947;}throw _0x54ff61[_0x264e76(0x2bf)];}catch(_0x5b74e0){return this[_0x264e76(0x2e1)][_0x264e76(0x2bf)](_0x5b74e0),this[_0x264e76(0x306)](!0x1);}}[_0x5c8e6d(0x266)](){const _0x3b431f=_0x5c8e6d;throw new Error(_0x3b431f(0x279));}['onRemoteRej'](){const _0x3a168f=_0x5c8e6d;throw new Error(_0x3a168f(0xb8));}[_0x5c8e6d(0x176)](){const _0x1edb92=_0x5c8e6d;return this[_0x1edb92(0x222)](),this[_0x1edb92(0x21a)]['createInstance'](B,this['unitID'],this[_0x1edb92(0x27e)],null,this['_pendingMutations'],this[_0x1edb92(0x3c0)]);}[_0x5c8e6d(0x28f)](){return this;}['_schedule'](_0x13a7d8){const _0x3c3c8a=_0x5c8e6d;_0x13a7d8=_0x13a7d8!=null?_0x13a7d8:this[_0x3c3c8a(0x359)](),this['_scheduleTimestamp']=new Date()['getTime'](),this['_sendingTimer']=setTimeout(()=>{const _0x4264f4=_0x3c3c8a;this['_clearScheduledTask']();let _0x1b02a4=null;switch(this[_0x4264f4(0x27e)]){case j[_0x4264f4(0x184)]:{_0x1b02a4=Cs(this['_pendingMutations'],this[_0x4264f4(0x27a)],this['_univerInstanceService'],this['_revisionService'],this[_0x4264f4(0x330)]);break;}case j[_0x4264f4(0x3c5)]:{_0x1b02a4=bs(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x4264f4(0x330)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x4264f4(0x27e)]+_0x4264f4(0x14b));}const {changeset:_0xe5a4ce,pendingMutations:_0x746280}=_0x1b02a4;this[_0x4264f4(0x3c0)]['onSendChangeset'](_0xe5a4ce);const _0x4745cc=_0x746280[_0x4264f4(0x7a)]?this[_0x4264f4(0x21a)][_0x4264f4(0x424)](H,this[_0x4264f4(0x27a)],this[_0x4264f4(0x27e)],_0xe5a4ce,_0x746280,this[_0x4264f4(0x3c0)]):this['_injector'][_0x4264f4(0x424)](k,this[_0x4264f4(0x27a)],this[_0x4264f4(0x27e)],_0xe5a4ce,this[_0x4264f4(0x3c0)]);_0x4745cc[_0x4264f4(0x37c)](),this[_0x4264f4(0x3c0)][_0x4264f4(0x322)](this,_0x4745cc);},_0x13a7d8);}[_0x5c8e6d(0x359)](){const _0xcb903a=_0x5c8e6d;var _0x3a01bc;return(_0x3a01bc=this[_0xcb903a(0x3f7)][_0xcb903a(0xab)](ht))!=null?_0x3a01bc:Bt;}[_0x5c8e6d(0x178)](){const _0xad72f5=_0x5c8e6d;throw new Error(_0xad72f5(0x72));}[_0x5c8e6d(0x222)](){const _0x1843a6=_0x5c8e6d;this['_sendingTimer']!=null&&(clearTimeout(this[_0x1843a6(0x36b)]),this['_sendingTimer']=null);}[_0x5c8e6d(0x306)](_0x35e545){const _0x4cd0a3=_0x5c8e6d;return this[_0x4cd0a3(0x222)](),this[_0x4cd0a3(0x21a)][_0x4cd0a3(0x424)](Y,this['unitID'],this[_0x4cd0a3(0x27e)],null,this[_0x4cd0a3(0x18c)],this[_0x4cd0a3(0x3c0)],_0x35e545);}};$=K([f(0x4,h[_0x5c8e6d(0x189)](h['Injector'])),f(0x5,h['Inject'](u[_0x5c8e6d(0xd7)])),f(0x6,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x342)])),f(0x7,h[_0x5c8e6d(0x189)](G)),f(0x8,a[_0x5c8e6d(0x14f)]),f(0x9,a[_0x5c8e6d(0x1ec)]),f(0xa,a[_0x5c8e6d(0x3fd)]),f(0xb,u['ITransformService']),f(0xc,a[_0x5c8e6d(0x3b1)]),f(0xd,a['IUndoRedoService'])],$);let k=class extends X{constructor(_0x4cb6c2,_0x122308,_0x477c36,_0x572c98,_0x545a28,_0x1e3be3,_0xae8bfa,_0x4c2f65,_0x1286ae,_0x254afe,_0x55f034){const _0x224332=_0x5c8e6d;super(_0x4cb6c2,_0x122308,_0x477c36,[],_0x572c98,_0x4c2f65,_0x55f034,_0x1e3be3,_0xae8bfa),d(this,_0x224332(0x174),_0x224332(0x265)),(this[_0x224332(0x21a)]=_0x545a28,this['_logService']=_0x1286ae,this[_0x224332(0xdb)]=_0x254afe);}[_0x5c8e6d(0x1c1)](_0x17f9b9){const _0x53e0c5=_0x5c8e6d,_0x4115dd=this[_0x53e0c5(0x21a)][_0x53e0c5(0x424)](H,this[_0x53e0c5(0x27a)],this[_0x53e0c5(0x27e)],this[_0x53e0c5(0x2bc)],[_0x17f9b9],this[_0x53e0c5(0x3c0)]);return _0x4115dd[_0x53e0c5(0x37c)](),_0x4115dd;}['onRemoteChangeset'](_0x328a8d){const _0x308a70=_0x5c8e6d;if(this[_0x308a70(0x1be)](_0x328a8d))return this[_0x308a70(0x21a)][_0x308a70(0x424)](x,this[_0x308a70(0x27a)],this[_0x308a70(0x27e)],this['_awaitingChangeset'],[],null,[_0x328a8d],this[_0x308a70(0x3c0)]);try{const _0x1dcd2e=this['_transformService'][_0x308a70(0xa5)]([_0x328a8d],[this['_awaitingChangeset']],!0x1);if(u[_0x308a70(0x305)](_0x1dcd2e)){const {c1Prime:_0x571d3b,c2Prime:_0x234ce5}=_0x1dcd2e;this['_executeRemoteChangeset'](_0x571d3b[0x0]),_0x234ce5[0x0]['baseRev']=this[_0x308a70(0x1e1)]();const _0x407d8f=this[_0x308a70(0x21a)][_0x308a70(0x424)](k,this['unitID'],this[_0x308a70(0x27e)],_0x234ce5[0x0],this[_0x308a70(0x3c0)]);return _0x407d8f[_0x308a70(0x37c)](),_0x407d8f;}return this[_0x308a70(0x306)](!0x1);}catch(_0x4262dc){return this[_0x308a70(0x2e1)]['error'](_0x4262dc),this['_onConflict'](!0x1);}}[_0x5c8e6d(0x266)](_0x2b8c87){const _0x1370ef=_0x5c8e6d,_0x5ebe27=this[_0x1370ef(0x3a6)][_0x1370ef(0x20e)](this[_0x1370ef(0x27a)]);if(_0x2b8c87[_0x1370ef(0x15b)]<_0x5ebe27-0x1)return this;if(this[_0x1370ef(0x1be)](_0x2b8c87))return this[_0x1370ef(0x21a)][_0x1370ef(0x424)](x,this[_0x1370ef(0x27a)],this[_0x1370ef(0x27e)],null,[],this[_0x1370ef(0x2bc)],[],this[_0x1370ef(0x3c0)]);this[_0x1370ef(0x1e4)]();const _0x27fa54=this[_0x1370ef(0x21a)][_0x1370ef(0x424)](ae,this['unitID'],this[_0x1370ef(0x27e)],this['_handler']);return _0x27fa54[_0x1370ef(0x37c)](),_0x27fa54;}[_0x5c8e6d(0xa2)](_0x522948){const _0x43dd3a=_0x5c8e6d;return this[_0x43dd3a(0x306)](!!(_0x522948!=null&&_0x522948[_0x43dd3a(0x2a3)]));}['toggleOffline'](){const _0x158626=_0x5c8e6d;return this[_0x158626(0x21a)][_0x158626(0x424)](B,this[_0x158626(0x27a)],this[_0x158626(0x27e)],this[_0x158626(0x2bc)],[],this[_0x158626(0x3c0)]);}['toggleOnline'](){return this;}[_0x5c8e6d(0x178)](){const _0x39deef=_0x5c8e6d;this[_0x39deef(0x3c0)][_0x39deef(0x10d)](this['_awaitingChangeset']);}['_onConflict'](_0x1703dd){const _0x551863=_0x5c8e6d;return this['_injector'][_0x551863(0x424)](Y,this[_0x551863(0x27a)],this[_0x551863(0x27e)],this['_awaitingChangeset'],[],this['_handler'],_0x1703dd);}};k=K([f(0x4,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),f(0x5,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0xd7)])),f(0x6,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x342)])),f(0x7,a[_0x5c8e6d(0x1ec)]),f(0x8,a[_0x5c8e6d(0x14f)]),f(0x9,u[_0x5c8e6d(0x35b)]),f(0xa,a[_0x5c8e6d(0x295)])],k);let H=class extends X{constructor(_0x3579d2,_0x15b6ac,_0x1fede5,_0x36cb9a,_0x52aea7,_0x375940,_0x259fa0,_0x55951e,_0x3dfc29,_0x353fec,_0x156550,_0x255d87){const _0x27d505=_0x5c8e6d;super(_0x3579d2,_0x15b6ac,_0x1fede5,_0x36cb9a,_0x52aea7,_0x3dfc29,_0x255d87,_0x259fa0,_0x55951e),d(this,_0x27d505(0x174),'awaiting_with_pending'),(this[_0x27d505(0x21a)]=_0x375940,this[_0x27d505(0x2e1)]=_0x353fec,this[_0x27d505(0xdb)]=_0x156550);}[_0x5c8e6d(0x1c1)](_0x217b9a){const _0x2dc2cd=_0x5c8e6d;return this['_pendingMutations'][_0x2dc2cd(0x105)](_0x217b9a),this;}[_0x5c8e6d(0xa7)](_0x834f8d){const _0x1a12bb=_0x5c8e6d;if(this[_0x1a12bb(0x1be)](_0x834f8d))return this[_0x1a12bb(0x21a)][_0x1a12bb(0x424)](x,this[_0x1a12bb(0x27a)],this[_0x1a12bb(0x27e)],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x834f8d],this[_0x1a12bb(0x3c0)]);try{const _0x25c414=this[_0x1a12bb(0xdb)][_0x1a12bb(0xa5)]([_0x834f8d],[this['_awaitingChangeset']],!0x1);if(u[_0x1a12bb(0x305)](_0x25c414)){const {c1Prime:_0x47160d,c2Prime:_0x25a4cc}=_0x25c414,_0x111ccf=this[_0x1a12bb(0xdb)][_0x1a12bb(0x3fb)](_0x47160d[0x0],this[_0x1a12bb(0x18c)]);if(u[_0x1a12bb(0x30e)](_0x111ccf)){const {c1Prime:_0x219550,m2Prime:_0x3fe9b9}=_0x111ccf;return this[_0x1a12bb(0x3f2)](_0x219550),_0x25a4cc[0x0][_0x1a12bb(0x9b)]=this['_getCurrentRevision'](),this[_0x1a12bb(0x21a)][_0x1a12bb(0x424)](H,this['unitID'],this[_0x1a12bb(0x27e)],_0x25a4cc[0x0],_0x3fe9b9,this[_0x1a12bb(0x3c0)]);}throw _0x111ccf[_0x1a12bb(0x2bf)];}throw _0x25c414[_0x1a12bb(0x2bf)];}catch(_0xae8054){return this[_0x1a12bb(0x2e1)][_0x1a12bb(0x2bf)](_0xae8054),this[_0x1a12bb(0x306)](!0x1);}}['onRemoteAck'](_0x20fd33){const _0x541c9c=_0x5c8e6d;if(this['_checkMissing'](_0x20fd33))return this[_0x541c9c(0x21a)][_0x541c9c(0x424)](x,this[_0x541c9c(0x27a)],this['type'],null,this[_0x541c9c(0x18c)],this[_0x541c9c(0x2bc)],[],this[_0x541c9c(0x3c0)]);this[_0x541c9c(0x1e4)]();const _0x56fdf2=this[_0x541c9c(0x21a)][_0x541c9c(0x424)]($,this['unitID'],this['type'],this[_0x541c9c(0x18c)],this[_0x541c9c(0x3c0)]);return _0x56fdf2[_0x541c9c(0x242)](),_0x56fdf2[_0x541c9c(0x37c)](),_0x56fdf2;}[_0x5c8e6d(0xa2)](_0x35be6e){const _0x3189e3=_0x5c8e6d;return this[_0x3189e3(0x306)](!!(_0x35be6e!=null&&_0x35be6e[_0x3189e3(0x2a3)]));}[_0x5c8e6d(0x176)](){const _0x208f1a=_0x5c8e6d;return this['_injector']['createInstance'](B,this[_0x208f1a(0x27a)],this[_0x208f1a(0x27e)],this['_awaitingChangeset'],this[_0x208f1a(0x18c)],this[_0x208f1a(0x3c0)]);}[_0x5c8e6d(0x28f)](){return this;}[_0x5c8e6d(0x178)](){const _0x4a3ce4=_0x5c8e6d;this['_handler'][_0x4a3ce4(0x10d)](this[_0x4a3ce4(0x2bc)]);}['_onConflict'](_0x3e6220){const _0x2c9ad6=_0x5c8e6d;return this[_0x2c9ad6(0x21a)][_0x2c9ad6(0x424)](Y,this[_0x2c9ad6(0x27a)],this['type'],null,this['_pendingMutations'],this[_0x2c9ad6(0x3c0)],_0x3e6220);}};H=K([f(0x5,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),f(0x6,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0xd7)])),f(0x7,h[_0x5c8e6d(0x189)](exports['LocalCacheService'])),f(0x8,a[_0x5c8e6d(0x1ec)]),f(0x9,a[_0x5c8e6d(0x14f)]),f(0xa,u[_0x5c8e6d(0x35b)]),f(0xb,a['IUndoRedoService'])],H);let Y=class extends X{constructor(_0x5aac0c,_0x50bbcd,_0x1ef9c6,_0x99abc3,_0x39b937,_0x2a23aa=!0x1,_0x699986,_0x3ebb9b,_0x4440e4,_0xdaa7d0,_0xc6687d,_0x2b6497,_0x2a0674){const _0x138d82=_0x5c8e6d;super(_0x5aac0c,_0x50bbcd,_0x1ef9c6,_0x99abc3,_0x39b937,_0x3ebb9b,_0x4440e4,_0xc6687d,_0xdaa7d0),d(this,_0x138d82(0x174),_0x138d82(0x350)),(this[_0x138d82(0x25c)]=_0x2a23aa,this[_0x138d82(0x133)]=_0x699986,this[_0x138d82(0x1df)]=_0x2b6497,this[_0x138d82(0x2e9)]=_0x2a0674,this[_0x138d82(0x3eb)](),this['_clearLocalCache'](),this[_0x138d82(0x1bc)]());}[_0x5c8e6d(0x1c1)](){return this;}['onRemoteChangeset'](){return this;}[_0x5c8e6d(0x266)](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x5c8e6d(0x178)](){const _0x56fb32=_0x5c8e6d;throw new Error(_0x56fb32(0x23e));}['_clearLocalCache'](){const _0x1d7a6f=_0x5c8e6d;this[_0x1d7a6f(0x11c)][_0x1d7a6f(0x15a)](this['unitID'],this[_0x1d7a6f(0x27e)],null,[]);}[_0x5c8e6d(0x3eb)](){const _0x5b6ffe=_0x5c8e6d;this[_0x5b6ffe(0x25c)]?this[_0x5b6ffe(0x2e9)][_0x5b6ffe(0x302)]({'title':this[_0x5b6ffe(0x1df)]['t']('permission.title'),'content':this['_localeService']['t'](_0x5b6ffe(0xe1)),'type':_0x5b6ffe(0x2bf),'duration':0x0}):this[_0x5b6ffe(0x2e9)][_0x5b6ffe(0x302)]({'title':this[_0x5b6ffe(0x1df)]['t'](_0x5b6ffe(0xc2)),'content':this[_0x5b6ffe(0x1df)]['t'](_0x5b6ffe(0xba)),'type':_0x5b6ffe(0x2bf),'duration':0x0});}[_0x5c8e6d(0x1bc)](){this['_permissionService']['updatePermissionPoint'](new E['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};Y=K([f(0x6,h[_0x5c8e6d(0x189)](a[_0x5c8e6d(0x13b)])),f(0x7,a[_0x5c8e6d(0x1ec)]),f(0x8,a['IUndoRedoService']),f(0x9,h['Inject'](exports['LocalCacheService'])),f(0xa,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0xd7)])),f(0xb,h[_0x5c8e6d(0x189)](a[_0x5c8e6d(0x405)])),f(0xc,N[_0x5c8e6d(0x1e9)])],Y);let B=class extends X{constructor(_0x4c8897,_0xb40be6,_0x200233,_0x594e63,_0x3a8424,_0x24dc30,_0x1657ca,_0x31f5f3,_0x3d4a05,_0x47beb5){const _0x464e4a=_0x5c8e6d;super(_0x4c8897,_0xb40be6,_0x200233,_0x594e63,_0x3a8424,_0x3d4a05,_0x47beb5,_0x1657ca,_0x31f5f3),d(this,_0x464e4a(0x174),_0x464e4a(0x7f)),this['_injector']=_0x24dc30;}[_0x5c8e6d(0x1c1)](_0x5089d1){const _0x31b908=_0x5c8e6d;return this[_0x31b908(0x18c)]['push'](_0x5089d1),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x2eedf4){const _0x2a2658=_0x5c8e6d;throw new Error(_0x2a2658(0x26e));}['onRemoteAck'](){const _0x1c6c4a=_0x5c8e6d;throw new Error(_0x1c6c4a(0x293));}[_0x5c8e6d(0xa2)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['toggleOffline'](){return this;}[_0x5c8e6d(0x28f)](){const _0x3fc302=_0x5c8e6d,{_injector:_0x564244,_pendingMutations:_0x11960d,_awaitingChangeset:_0x2a5f60,unitID:_0x2252e9,_handler:_0x3903df,type:_0x1f6302}=this,_0x3bb86a=bt(_0x564244,_0x2252e9,_0x1f6302,_0x2a5f60,_0x11960d,_0x3903df);return _0x3bb86a instanceof $?_0x3bb86a[_0x3fc302(0x242)]():(_0x3bb86a instanceof H||_0x3bb86a instanceof k)&&_0x3bb86a[_0x3fc302(0x178)](),_0x3bb86a;}[_0x5c8e6d(0x178)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};B=K([f(0x5,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),f(0x6,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0xd7)])),f(0x7,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x342)])),f(0x8,a[_0x5c8e6d(0x1ec)]),f(0x9,a[_0x5c8e6d(0x295)])],B);let x=class extends X{constructor(_0x824ae3,_0x477af5,_0x152e7c,_0x2a1b45,_0x23aabd,_0x4c6939,_0x259e5e,_0xc3e658,_0x42c410,_0x1dd99a,_0x2e0376,_0x220aea,_0x10acdd,_0x3ca94b){const _0xf9f416=_0x5c8e6d;super(_0x824ae3,_0x477af5,_0x152e7c,_0x2a1b45,_0x259e5e,_0x220aea,_0x10acdd,_0x42c410,_0x1dd99a),d(this,_0xf9f416(0x174),_0xf9f416(0x281)),(this[_0xf9f416(0xac)]=_0x23aabd,this[_0xf9f416(0x2b8)]=_0x4c6939,this[_0xf9f416(0x21a)]=_0xc3e658,this[_0xf9f416(0x2e1)]=_0x2e0376,this[_0xf9f416(0xdb)]=_0x3ca94b);}['onMissedChangesetFetched'](_0x410dac){const _0x11b650=_0x5c8e6d;try{const _0x45964f=[..._0x410dac,...this[_0x11b650(0x2b8)]],_0x38349e=[this[_0x11b650(0x2bc)]||this['_acknowledgedAwaitingChangeset']][_0x11b650(0x161)](_0x309288=>!!_0x309288);let _0xde1df1,_0x15230b;if(_0x38349e['length']){const _0x533fbd=this[_0x11b650(0xdb)][_0x11b650(0xa5)](_0x45964f,_0x38349e,!0x1);if(!u[_0x11b650(0x305)](_0x533fbd))throw _0x533fbd['error'];_0xde1df1=_0x533fbd[_0x11b650(0x1e2)],_0x15230b=_0x533fbd[_0x11b650(0x30c)];}else _0xde1df1=_0x45964f,_0x15230b=[];let _0x456444=this[_0x11b650(0x18c)];_0xde1df1[_0x11b650(0x382)](_0x448580=>{const _0x2df390=_0x11b650;let _0x4dc4e3;if(_0x456444['length']){const _0x1fb39c=this[_0x2df390(0xdb)][_0x2df390(0x3fb)](_0x448580,_0x456444);if(!u['isTransformMutationsWithChangesetSuccess'](_0x1fb39c))throw _0x1fb39c[_0x2df390(0x2bf)];_0x4dc4e3=_0x1fb39c['c1Prime'],_0x456444=_0x1fb39c['m2Prime'];}else _0x4dc4e3=_0x448580;this['_executeRemoteChangeset'](_0x4dc4e3);}),this[_0x11b650(0xac)]&&this['_incrementRevisionNumber'](),this[_0x11b650(0x2bc)]&&_0x15230b[_0x11b650(0x7a)]&&(_0x15230b[0x0]['baseRev']=this['_getCurrentRevision']());let _0x4d0b45;if(this[_0x11b650(0x2bc)]&&_0x456444[_0x11b650(0x7a)]!==0x0)_0x4d0b45=this[_0x11b650(0x21a)][_0x11b650(0x424)](H,this[_0x11b650(0x27a)],this[_0x11b650(0x27e)],_0x15230b[0x0],_0x456444,this[_0x11b650(0x3c0)]);else{if(this['_awaitingChangeset']&&_0x456444[_0x11b650(0x7a)]===0x0)_0x15230b[0x0][_0x11b650(0x9b)]=this[_0x11b650(0x1e1)](),_0x4d0b45=this[_0x11b650(0x21a)]['createInstance'](k,this[_0x11b650(0x27a)],this[_0x11b650(0x27e)],_0x15230b[0x0],this[_0x11b650(0x3c0)]);else{if(_0x456444['length']!==0x0){const _0x4ee03c=this['_injector']['createInstance']($,this['unitID'],this[_0x11b650(0x27e)],_0x456444,this['_handler']);_0x4ee03c[_0x11b650(0x242)](),_0x4d0b45=_0x4ee03c;}else _0x4d0b45=this[_0x11b650(0x21a)][_0x11b650(0x424)](ae,this['unitID'],this[_0x11b650(0x27e)],this[_0x11b650(0x3c0)]);}}return _0x4d0b45[_0x11b650(0x37c)](),_0x4d0b45;}catch(_0x100146){return this[_0x11b650(0x2e1)][_0x11b650(0x2bf)](_0x11b650(0x336),_0x11b650(0x2f9),_0x100146),this[_0x11b650(0x21a)][_0x11b650(0x424)](Y,this[_0x11b650(0x27a)],this[_0x11b650(0x27e)],this[_0x11b650(0x2bc)],this[_0x11b650(0x18c)],this[_0x11b650(0x3c0)],!0x1);}}['resend'](){const _0x4de334=_0x5c8e6d;throw new Error(_0x4de334(0x115));}[_0x5c8e6d(0x1c1)](_0x25a852){const _0xbacd76=_0x5c8e6d;return this[_0xbacd76(0x18c)][_0xbacd76(0x105)](_0x25a852),this;}[_0x5c8e6d(0xa7)](_0x111c3a){const _0x3d09c3=_0x5c8e6d;return this[_0x3d09c3(0x2b8)][_0x3d09c3(0x105)](_0x111c3a),this;}[_0x5c8e6d(0x266)](_0x2bf85b){const _0xb02056=_0x5c8e6d;if(this[_0xb02056(0x2bc)])return this[_0xb02056(0xac)]=this['_awaitingChangeset'],this[_0xb02056(0x2bc)]=null,this;throw new Error(_0xb02056(0x1ce));}['onRemoteRej'](_0xf5e76b){const _0x183b79=_0x5c8e6d;return this[_0x183b79(0x306)](!!(_0xf5e76b!=null&&_0xf5e76b[_0x183b79(0x2a3)]));}[_0x5c8e6d(0x176)](){const _0x39c262=_0x5c8e6d;return this[_0x39c262(0x21a)][_0x39c262(0x424)](B,this[_0x39c262(0x27a)],this[_0x39c262(0x27e)],this[_0x39c262(0x2bc)],this[_0x39c262(0x18c)],this[_0x39c262(0x3c0)]);}[_0x5c8e6d(0x28f)](){return this;}[_0x5c8e6d(0x306)](_0x1a3ba5){const _0x122801=_0x5c8e6d;return this[_0x122801(0x21a)][_0x122801(0x424)](Y,this[_0x122801(0x27a)],this[_0x122801(0x27e)],this[_0x122801(0x2bc)],this[_0x122801(0x18c)],this[_0x122801(0x3c0)],_0x1a3ba5);}};x=K([f(0x7,h[_0x5c8e6d(0x189)](h['Injector'])),f(0x8,h[_0x5c8e6d(0x189)](u['RevisionService'])),f(0x9,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x342)])),f(0xa,a[_0x5c8e6d(0x14f)]),f(0xb,a['ICommandService']),f(0xc,a[_0x5c8e6d(0x295)]),f(0xd,u[_0x5c8e6d(0x35b)])],x);function bt(_0x1d93e7,_0x2c3ada,_0x5b58c3,_0x220751,_0x5efdc3,_0x262b88){const _0x467b2d=_0x5c8e6d;return _0x220751&&_0x5efdc3['length']?_0x1d93e7[_0x467b2d(0x424)](H,_0x2c3ada,_0x5b58c3,_0x220751,_0x5efdc3,_0x262b88):_0x220751?_0x1d93e7['createInstance'](k,_0x2c3ada,_0x5b58c3,_0x220751,_0x262b88):_0x5efdc3[_0x467b2d(0x7a)]?_0x1d93e7[_0x467b2d(0x424)]($,_0x2c3ada,_0x5b58c3,_0x5efdc3,_0x262b88):_0x1d93e7[_0x467b2d(0x424)](ae,_0x2c3ada,_0x5b58c3,_0x262b88);}var Os=Object[_0x5c8e6d(0x3a5)],Ds=Object[_0x5c8e6d(0x373)],Ee=(_0x6468ee,_0x52251a,_0x5e14ee,_0x1483bf)=>{for(var _0x59c0e6=_0x1483bf>0x1?void 0x0:_0x1483bf?Ds(_0x52251a,_0x5e14ee):_0x52251a,_0x3b2945=_0x6468ee['length']-0x1,_0x45cddf;_0x3b2945>=0x0;_0x3b2945--)(_0x45cddf=_0x6468ee[_0x3b2945])&&(_0x59c0e6=(_0x1483bf?_0x45cddf(_0x52251a,_0x5e14ee,_0x59c0e6):_0x45cddf(_0x59c0e6))||_0x59c0e6);return _0x1483bf&&_0x59c0e6&&Os(_0x52251a,_0x5e14ee,_0x59c0e6),_0x59c0e6;},I=(_0x46fc48,_0x5f3dbc)=>(_0x31b0b1,_0x536345)=>_0x5f3dbc(_0x31b0b1,_0x536345,_0x46fc48);exports[_0x5c8e6d(0x397)]=class extends a[_0x5c8e6d(0x198)]{constructor(_0x2beb76,_0x47222d,_0x2ad261){const _0x5e062c=_0x5c8e6d;super(),d(this,_0x5e062c(0xf7),new Map()),d(this,_0x5e062c(0x374),new g[(_0x5e062c(0x3ea))]()),(this[_0x5e062c(0x21a)]=_0x2beb76,this[_0x5e062c(0x24a)]=_0x47222d,this[_0x5e062c(0x1ee)]=_0x2ad261,this[_0x5e062c(0x8a)]());}[_0x5c8e6d(0x364)](){const _0x107a88=_0x5c8e6d;super[_0x107a88(0x364)](),this['_entities'][_0x107a88(0x382)](_0x5743dc=>_0x5743dc[_0x107a88(0x364)]()),this['_entities'][_0x107a88(0x2f3)]();}['getCollabEntity'](_0x54be33){const _0x462662=_0x5c8e6d;var _0x226ab7;return(_0x226ab7=this[_0x462662(0xf7)]['get'](_0x54be33))!=null?_0x226ab7:null;}['getCollabEntity$'](_0x366819){const _0x49765f=_0x5c8e6d,_0xf8ff8b=this[_0x49765f(0x3ad)](_0x366819);return _0xf8ff8b?g['of'](_0xf8ff8b):this['_entityInit$'][_0x49765f(0x149)](T[_0x49765f(0x161)](_0x3f7f00=>_0x3f7f00[_0x49765f(0x27a)]===_0x366819));}[_0x5c8e6d(0x8a)](){const _0x21ef86=_0x5c8e6d;this[_0x21ef86(0x1ee)][_0x21ef86(0x2fc)](a[_0x21ef86(0x2c8)][_0x21ef86(0x184)])[_0x21ef86(0x149)](g[_0x21ef86(0x150)](this[_0x21ef86(0x1d2)]),T[_0x21ef86(0x2e3)](0x10))['subscribe'](async _0x32fa24=>{const _0x5437f4=_0x21ef86,_0x966dd6=_0x32fa24[_0x5437f4(0x35c)](),_0x3afcad=await this[_0x5437f4(0x2dd)](_0x966dd6,j['UNIVER_SHEET']);this['_entities']['set'](_0x966dd6,_0x3afcad);}),this[_0x21ef86(0x1ee)]['getTypeOfUnitAdded$'](a[_0x21ef86(0x2c8)][_0x21ef86(0x3c5)])[_0x21ef86(0x149)](g[_0x21ef86(0x150)](this['dispose$']),T['delay'](0x10))[_0x21ef86(0x149)](T[_0x21ef86(0x161)](_0x19965c=>!_0x19965c['getUnitId']()['startsWith']('__')))[_0x21ef86(0x237)](async _0x4f6330=>{const _0x8715e8=_0x21ef86,_0x32d33b=_0x4f6330[_0x8715e8(0x35c)](),_0x197ce3=await this['_startCollaboration'](_0x32d33b,j[_0x8715e8(0x3c5)]);this['_entities'][_0x8715e8(0x395)](_0x32d33b,_0x197ce3);}),g[_0x21ef86(0x1f9)](this[_0x21ef86(0x1ee)]['getTypeOfUnitDisposed$'](a[_0x21ef86(0x2c8)][_0x21ef86(0x184)]),this['_univerInstanceService'][_0x21ef86(0x20f)](a[_0x21ef86(0x2c8)]['UNIVER_DOC']))[_0x21ef86(0x149)](g['takeUntil'](this['dispose$']))[_0x21ef86(0x237)](_0x10c46f=>{const _0x56781a=_0x21ef86,_0x2d9e05=_0x10c46f['getUnitId'](),_0xc291dc=this[_0x56781a(0xf7)][_0x56781a(0xc0)](_0x2d9e05);_0xc291dc&&(_0xc291dc[_0x56781a(0x364)](),this[_0x56781a(0xf7)][_0x56781a(0x235)](_0x2d9e05));});}async[_0x5c8e6d(0x2dd)](_0x3fe331,_0x4d621b){const _0x4da590=_0x5c8e6d,_0x10c687=await this[_0x4da590(0x24a)][_0x4da590(0x319)](_0x3fe331),_0x22a5a9=this['_injector'][_0x4da590(0x424)](this['_getCtorByUniverType'](_0x4d621b),_0x3fe331,_0x4d621b,_0x10c687);return await _0x22a5a9['init'](),this[_0x4da590(0x374)][_0x4da590(0x211)](_0x22a5a9),_0x22a5a9;}[_0x5c8e6d(0x14c)](_0x46f469){const _0xc01e57=_0x5c8e6d;switch(_0x46f469){case j[_0xc01e57(0x3c5)]:return Ue;case j['UNIVER_SHEET']:return ye;default:throw new Error(_0xc01e57(0x90)+_0x46f469);}}},exports[_0x5c8e6d(0x397)]=Ee([a[_0x5c8e6d(0x3e9)](a[_0x5c8e6d(0x87)][_0x5c8e6d(0x2d3)],exports[_0x5c8e6d(0x397)]),I(0x0,h['Inject'](h[_0x5c8e6d(0x212)])),I(0x1,h[_0x5c8e6d(0x189)](exports['CollaborationSessionService'])),I(0x2,a[_0x5c8e6d(0x3b1)])],exports[_0x5c8e6d(0x397)]);let me=class extends a['RxDisposable']{constructor(_0x25eddf,_0x5036c9,_0x3f167a,_0x5c2f20,_0x217f61,_0x186c9b,_0xb214cc,_0x1b2a29,_0x2d33a8,_0x42638e,_0x41c2ea,_0x3f9134,_0x540357){const _0x1b4b51=_0x5c8e6d;super(),d(this,'_state$',new g[(_0x1b4b51(0x18a))](null)),d(this,'state$',this[_0x1b4b51(0x2d9)]['asObservable']()),d(this,_0x1b4b51(0x2e5)),d(this,_0x1b4b51(0x1b2),!0x1),d(this,_0x1b4b51(0x8d),this['state$'][_0x1b4b51(0x149)](T[_0x1b4b51(0xe8)](_0x4c3a79=>_0x4c3a79?_0x4c3a79['status']:w[_0x1b4b51(0xc7)]),T['shareReplay'](0x1))),d(this,_0x1b4b51(0x94),!0x1),d(this,'_remoteChangesetQueue',[]),(this['unitID']=_0x25eddf,this[_0x1b4b51(0x3e8)]=_0x5036c9,this[_0x1b4b51(0x196)]=_0x3f167a,this[_0x1b4b51(0x21a)]=_0x5c2f20,this[_0x1b4b51(0x11c)]=_0x217f61,this[_0x1b4b51(0x269)]=_0x186c9b,this[_0x1b4b51(0x1df)]=_0xb214cc,this['_revisionService']=_0x1b2a29,this[_0x1b4b51(0x2e1)]=_0x2d33a8,this[_0x1b4b51(0x2ea)]=_0x42638e,this['_messageService']=_0x41c2ea,this[_0x1b4b51(0x133)]=_0x3f9134,this[_0x1b4b51(0x1ba)]=_0x540357);}get[_0x5c8e6d(0x341)](){return this['_state'];}async[_0x5c8e6d(0x15e)](){const _0x51604d=_0x5c8e6d;if(this[_0x51604d(0x341)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x5c8e6d(0x30d)](){const _0x273897=_0x5c8e6d;return this[_0x273897(0x1b2)]=!0x0,a[_0x273897(0x3c9)](()=>{const _0x41b93d=_0x273897;this[_0x41b93d(0x1b2)]=!0x1,this[_0x41b93d(0x270)]();});}[_0x5c8e6d(0x229)](_0x25829d){const _0x1c1f4d=_0x5c8e6d;this['_state']=_0x25829d,this[_0x1c1f4d(0x2d9)][_0x1c1f4d(0x211)](_0x25829d);}async[_0x5c8e6d(0x8a)](){const _0x10ea12=_0x5c8e6d;var _0x321264;return this['_updateState'](await this['_createInitialState']()),this[_0x10ea12(0x1ba)]&&((_0x321264=this[_0x10ea12(0x1ba)])==null||_0x321264['editingUnit'](this[_0x10ea12(0x27a)]),this[_0x10ea12(0x2c5)](a[_0x10ea12(0x3c9)](this[_0x10ea12(0x1ba)][_0x10ea12(0x9d)](this['unitID'])[_0x10ea12(0x237)](_0x6b06e5=>{const _0x553501=_0x10ea12;this['_logService'][_0x553501(0x383)]('[CollaborationEntity]',_0x553501(0x34f),_0x6b06e5),_0x6b06e5===Et[_0x553501(0x3bc)]?(this[_0x553501(0x324)][_0x553501(0x302)]({'content':this[_0x553501(0x1df)]['t'](_0x553501(0x3ef)),'type':oe['MessageType']['Warning']}),this[_0x553501(0x133)][_0x553501(0x3aa)](new E['WorkbookEditablePermission'](this[_0x553501(0x27a)])['id'],!0x1)):this[_0x553501(0x133)][_0x553501(0x3aa)](new E['WorkbookEditablePermission'](this[_0x553501(0x27a)])['id'],!0x0);})))),this['disposeWithMe'](a[_0x10ea12(0x3c9)](this['_session']['sessionStatus$'][_0x10ea12(0x237)](_0x17822b=>{const _0x35cc99=_0x10ea12;_0x17822b===W[_0x35cc99(0x2f1)]?this[_0x35cc99(0x294)]():_0x17822b===W['OFFLINE']&&this[_0x35cc99(0x399)]();}))),this['disposeWithMe'](a['toDisposable'](this['_session'][_0x10ea12(0x1ed)][_0x10ea12(0x237)](_0x208011=>{const _0x1819ac=_0x10ea12;try{switch(_0x208011[_0x1819ac(0x3cf)]){case u[_0x1819ac(0xce)][_0x1819ac(0x368)]:{this[_0x1819ac(0xf2)](u['parseProtocolChangeset'](_0x208011[_0x1819ac(0x95)]));break;}case u['CollaborationEvent']['CHANGESET_ACK']:{this[_0x1819ac(0x3f3)](_0x208011[_0x1819ac(0x95)]);break;}case u[_0x1819ac(0xce)][_0x1819ac(0x423)]:{this['_onRemoteRejected']();break;}case u[_0x1819ac(0xce)][_0x1819ac(0x82)]:{this[_0x1819ac(0x10b)](_0x208011[_0x1819ac(0x95)][_0x1819ac(0x410)][_0x1819ac(0xe8)](_0x28fa42=>u[_0x1819ac(0x31c)](_0x28fa42)));break;}case u[_0x1819ac(0xce)]['PERMISSION_REJ']:this[_0x1819ac(0x92)]({'isPermissionRej':!0x0});}}catch(_0x3c0f37){throw console[_0x1819ac(0x2bf)](_0x1819ac(0x29d),_0x3c0f37),_0x3c0f37;}}))),this['_state'];}[_0x5c8e6d(0x170)](){this['_transitionLocked']=!0x1;}[_0x5c8e6d(0xfa)](){const _0x3d4125=_0x5c8e6d;if(this['_transitionLocked'])throw new Error(_0x3d4125(0x3df));this[_0x3d4125(0x94)]=!0x0;}['_onLocalMutation'](_0x5b9b67){const _0x3ae1a9=_0x5c8e6d;this[_0x3ae1a9(0xfa)](),this[_0x3ae1a9(0x229)](this[_0x3ae1a9(0x2e5)][_0x3ae1a9(0x1c1)](_0x5b9b67)),this[_0x3ae1a9(0x170)]();}[_0x5c8e6d(0xf2)](_0x1eeb65){const _0xa8fd7e=_0x5c8e6d;if(!(_0x1eeb65[_0xa8fd7e(0x15b)]<=this['_revisionService']['getCurrentRevForDocument'](this[_0xa8fd7e(0x27a)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x1eeb65);return;}this[_0xa8fd7e(0x142)](_0x1eeb65);}}[_0x5c8e6d(0x270)](){const _0x1f234d=_0x5c8e6d;this['_remoteChangesetQueue']['forEach'](_0x58e170=>this[_0x1f234d(0x142)](_0x58e170)),this['_remoteChangesetQueue']=[];}[_0x5c8e6d(0x142)](_0x3802f8){const _0x3abdfd=_0x5c8e6d,_0x45dcd4=this[_0x3abdfd(0x269)][_0x3abdfd(0x276)][_0x3abdfd(0x264)](this[_0x3abdfd(0x269)][_0x3abdfd(0x276)][_0x3abdfd(0x23a)]()[_0x3abdfd(0x2c2)])(_0x3802f8[_0x3abdfd(0xdc)],null)||_0x3802f8[_0x3abdfd(0xdc)],_0x29abdd={..._0x3802f8,'mutations':_0x45dcd4};this[_0x3abdfd(0xfa)](),this[_0x3abdfd(0x229)](this[_0x3abdfd(0x2e5)][_0x3abdfd(0xa7)](_0x29abdd)),this[_0x3abdfd(0x170)]();}[_0x5c8e6d(0x3f3)](_0x5e88c4){const _0x5bf1f5=_0x5c8e6d;this[_0x5bf1f5(0xfa)](),this[_0x5bf1f5(0x229)](this['_state'][_0x5bf1f5(0x266)](_0x5e88c4)),this[_0x5bf1f5(0x170)]();}['_onRemoteRejected'](_0x2316db){const _0x4a0b58=_0x5c8e6d;this['_lockTransition'](),this[_0x4a0b58(0x229)](this['_state']['onRemoteRej'](_0x2316db)),this[_0x4a0b58(0x170)]();}[_0x5c8e6d(0x10b)](_0x26c5e9){const _0x2056ee=_0x5c8e6d;if(!(this['_state']instanceof x))throw new TypeError(_0x2056ee(0x127));const _0x54dd1e=_0x26c5e9[_0x2056ee(0xe8)](_0x2588a3=>{const _0x1d32f0=_0x2056ee,_0x1a056e=this['_compressMutationService']['interceptor'][_0x1d32f0(0x264)](this[_0x1d32f0(0x269)]['interceptor'][_0x1d32f0(0x23a)]()[_0x1d32f0(0x2c2)])(_0x2588a3[_0x1d32f0(0xdc)],null)||_0x2588a3[_0x1d32f0(0xdc)];return{..._0x2588a3,'mutations':_0x1a056e};});this[_0x2056ee(0xfa)](),this[_0x2056ee(0x229)](this['_state'][_0x2056ee(0x19e)](_0x54dd1e)),this[_0x2056ee(0x170)]();}['_toggleOffline'](){const _0x1110ca=_0x5c8e6d;this['_lockTransition'](),this[_0x1110ca(0x229)](this[_0x1110ca(0x2e5)][_0x1110ca(0x176)]()),this[_0x1110ca(0x170)]();}[_0x5c8e6d(0x294)](){const _0x4f7563=_0x5c8e6d;this['_lockTransition'](),this[_0x4f7563(0x229)](this[_0x4f7563(0x2e5)]['toggleOnline']()),this['_unlockTransition']();}async['_createInitialState'](){return new Promise(_0x5d1ecb=>{const _0x1089e2=_0x2b59;this['_session']['sessionStatus$'][_0x1089e2(0x149)](T[_0x1089e2(0x26a)](0x1))[_0x1089e2(0x237)](async _0x3e7878=>{const _0x3b07ea=_0x1089e2;_0x5d1ecb(await this['_createInitialStateImpl'](_0x3e7878===W[_0x3b07ea(0x2f1)]));});});}[_0x5c8e6d(0xfe)](){const _0x5bec9b=_0x5c8e6d,_0x30b4a5=this[_0x5bec9b(0x27a)];return{'onStateChange':(_0x54f383,_0x4e40f2)=>{const _0x2ff9de=_0x5bec9b;if(_0x54f383!==this['_state'])throw new Error(_0x2ff9de(0x388)+_0x54f383[_0x2ff9de(0x174)]+_0x2ff9de(0x16a)+_0x4e40f2[_0x2ff9de(0x174)]+_0x2ff9de(0x34a)+this[_0x2ff9de(0x2e5)][_0x2ff9de(0x174)]);this[_0x2ff9de(0x229)](_0x4e40f2);},'onSendChangeset':_0x1f6294=>{const _0xabfe76=_0x5bec9b,_0x43e557={'eventID':u[_0xabfe76(0xce)][_0xabfe76(0x246)],'data':{'unitID':_0x1f6294['unitID'],'unitType':this[_0xabfe76(0x3e8)],'changeset':_0x1f6294,'memberID':this[_0xabfe76(0x196)]['getMemberID']()}};this[_0xabfe76(0x196)][_0xabfe76(0xa4)](_0x43e557,this[_0xabfe76(0x27a)]);},'onMissingChangesets':({from:_0x2b121e,to:_0x4fc7af})=>{const _0x17224e=_0x5bec9b;this[_0x17224e(0x2e1)][_0x17224e(0x383)](_0x17224e(0x2f5),_0x17224e(0x209)+_0x2b121e+_0x17224e(0x146)+_0x4fc7af);const _0x1f40d9={'eventID':u[_0x17224e(0xce)][_0x17224e(0x1c7)],'data':{'unitID':_0x30b4a5,'unitType':this[_0x17224e(0x3e8)],'from':_0x2b121e,'to':_0x4fc7af}};this['_session'][_0x17224e(0xa4)](_0x1f40d9,this[_0x17224e(0x27a)]);}};}async[_0x5c8e6d(0x8c)](_0xd38e0b){const _0x3f2805=_0x5c8e6d;var _0x5269d4,_0x161f67;const _0x5931e3=await this[_0x3f2805(0x11c)]['loadOfflineData'](this[_0x3f2805(0x27a)]),_0x270869=(_0x5269d4=_0x5931e3==null?void 0x0:_0x5931e3[_0x3f2805(0xdc)])!=null?_0x5269d4:[],_0x1cc59d=(_0x161f67=_0x5931e3==null?void 0x0:_0x5931e3[_0x3f2805(0x327)])!=null?_0x161f67:null,_0xfbf909=this['unitID'];try{this['_replayCachedMutations'](_0x1cc59d,_0x270869);}catch(_0x59a2d8){this[_0x3f2805(0x2e1)][_0x3f2805(0x2bf)](_0x59a2d8);}const _0x5850e4=this[_0x3f2805(0xfe)]();if(_0xd38e0b){const _0x1c9ebe=bt(this['_injector'],_0xfbf909,this[_0x3f2805(0x3e8)],_0x1cc59d,_0x270869,_0x5850e4);return _0x1c9ebe instanceof $?_0x1c9ebe[_0x3f2805(0x242)]():(_0x1c9ebe instanceof H||_0x1c9ebe instanceof k)&&_0x1c9ebe['resend'](),_0x1c9ebe;}return this[_0x3f2805(0x21a)][_0x3f2805(0x424)](B,_0xfbf909,this[_0x3f2805(0x3e8)],_0x1cc59d,_0x270869,_0x5850e4);}[_0x5c8e6d(0x2b4)](_0x4bbd72,_0x42638d){const _0x5bf1e3=_0x5c8e6d;var _0x2a3c08,_0x54101a;const _0x2b24fa=this[_0x5bf1e3(0x269)][_0x5bf1e3(0x276)][_0x5bf1e3(0x264)](this[_0x5bf1e3(0x269)][_0x5bf1e3(0x276)]['getInterceptPoints']()[_0x5bf1e3(0x2c2)]);(_0x2a3c08=_0x2b24fa((_0x4bbd72==null?void 0x0:_0x4bbd72['mutations'])||[],null))==null||_0x2a3c08[_0x5bf1e3(0x382)](_0x58b7c5=>this[_0x5bf1e3(0x2ea)][_0x5bf1e3(0x33d)](_0x58b7c5['id'],_0x58b7c5['params'])),(_0x54101a=_0x2b24fa(_0x42638d||[],null))==null||_0x54101a['forEach'](_0x5b8afb=>this[_0x5bf1e3(0x2ea)][_0x5bf1e3(0x33d)](_0x5b8afb['id'],_0x5b8afb[_0x5bf1e3(0x355)]));}};me=Ee([I(0x3,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),I(0x4,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x342)])),I(0x5,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0x24e)])),I(0x6,h['Inject'](a[_0x5c8e6d(0x405)])),I(0x7,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0xd7)])),I(0x8,a[_0x5c8e6d(0x14f)]),I(0x9,a['ICommandService']),I(0xa,N[_0x5c8e6d(0x204)]),I(0xb,a[_0x5c8e6d(0x13b)]),I(0xc,h[_0x5c8e6d(0x31d)](pe))],me);let Ue=class extends me{constructor(_0x5485e4,_0x1bcdcd,_0x5f4d09,_0x5e43f2,_0x546e01,_0x4c52a4,_0x3ca2a8,_0x36bcec,_0x284ec5,_0x13ae50,_0x4dd075,_0x14ab78,_0x27124f,_0x553207,_0x2bcef6,_0x2ca9bb,_0xe044cb){const _0x35fc6e=_0x5c8e6d;super(_0x5485e4,_0x1bcdcd,_0x5f4d09,_0x5e43f2,_0x546e01,_0x4c52a4,_0x3ca2a8,_0x36bcec,_0x27124f,_0x553207,_0x2bcef6,_0x2ca9bb,_0xe044cb),this[_0x35fc6e(0x27a)]=_0x5485e4,this[_0x35fc6e(0x27e)]=_0x1bcdcd,this[_0x35fc6e(0x1de)]=_0x5f4d09,this[_0x35fc6e(0x40c)]=_0x284ec5,this[_0x35fc6e(0x2fb)]=_0x13ae50,this[_0x35fc6e(0xcb)]=_0x4dd075,this[_0x35fc6e(0x14e)]=_0x14ab78;}[_0x5c8e6d(0xfe)](){const _0x4479e8=_0x5c8e6d,_0xb71a4a=super[_0x4479e8(0xfe)]();return _0xb71a4a['onTransformIME']=_0x2d03cd=>this[_0x4479e8(0x2fb)][_0x4479e8(0x241)](_0x2d03cd),_0xb71a4a[_0x4479e8(0x151)]=_0x19659c=>this[_0x4479e8(0xcb)][_0x4479e8(0x37f)](_0x19659c),_0xb71a4a['onSyncEditingCollabCursor']=_0x57e7de=>this[_0x4479e8(0x14e)][_0x4479e8(0x1c2)](_0x57e7de),_0xb71a4a['onTransformRemoteChangesetByIMECache']=_0x298d5f=>this[_0x4479e8(0x2fb)][_0x4479e8(0x314)](_0x298d5f),_0xb71a4a;}async[_0x5c8e6d(0x8a)](){const _0x26ba23=_0x5c8e6d,_0x3fd149=await super[_0x26ba23(0x8a)]();return this[_0x26ba23(0x40c)][_0x26ba23(0xa0)][_0x26ba23(0x149)](g[_0x26ba23(0x150)](this[_0x26ba23(0x1d2)]))[_0x26ba23(0x237)](_0x1b8176=>{const _0xdbc874=_0x26ba23;if(_0x1b8176==null)return;const {unitId:_0x4301c4,redoState:_0x18a2ff,commandId:_0x199841}=_0x1b8176;if(_0x4301c4!==this['unitID'])return;const _0x494a67={'id':_0x199841,'type':a[_0xdbc874(0x3ee)][_0xdbc874(0x1ff)],'params':{'unitId':_0x4301c4,'actions':_0x18a2ff[_0xdbc874(0x22e)],'textRanges':null}};this[_0xdbc874(0xd1)](_0x494a67);}),_0x3fd149;}};Ue=Ee([I(0x3,h[_0x5c8e6d(0x189)](h['Injector'])),I(0x4,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x342)])),I(0x5,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0x24e)])),I(0x6,h[_0x5c8e6d(0x189)](a[_0x5c8e6d(0x405)])),I(0x7,h['Inject'](u['RevisionService'])),I(0x8,h[_0x5c8e6d(0x189)](M[_0x5c8e6d(0x29a)])),I(0x9,h['Inject'](ve)),I(0xa,h[_0x5c8e6d(0x189)](ge)),I(0xb,h[_0x5c8e6d(0x189)](Fe)),I(0xc,a[_0x5c8e6d(0x14f)]),I(0xd,a[_0x5c8e6d(0x1ec)]),I(0xe,N[_0x5c8e6d(0x204)]),I(0xf,a[_0x5c8e6d(0x13b)]),I(0x10,h[_0x5c8e6d(0x31d)](pe))],Ue);let ye=class extends me{constructor(_0x275f95,_0x515eaf,_0x4b4e2d,_0x15c79a,_0x25de8c,_0x588cd6,_0x5b0daa,_0x1d68da,_0x2fd9af,_0x3340c9,_0x3d8d2a,_0x423ccc,_0x214881,_0x35da6d){const _0x3fe5ab=_0x5c8e6d;super(_0x275f95,_0x515eaf,_0x4b4e2d,_0x15c79a,_0x25de8c,_0x588cd6,_0x5b0daa,_0x1d68da,_0x3340c9,_0x3d8d2a,_0x423ccc,_0x214881,_0x35da6d),this['unitID']=_0x275f95,this['type']=_0x515eaf,this[_0x3fe5ab(0x1de)]=_0x4b4e2d,this[_0x3fe5ab(0x398)]=_0x2fd9af;}[_0x5c8e6d(0xfe)](){const _0xda4651=_0x5c8e6d,_0x45e33a=super['_createHandler']();return _0x45e33a[_0xda4651(0x151)]=_0x53db08=>this[_0xda4651(0x398)][_0xda4651(0x37f)](_0x53db08),_0x45e33a;}async['_init'](){const _0x19cfa7=_0x5c8e6d,_0x350fc3=await super[_0x19cfa7(0x8a)]();return this[_0x19cfa7(0x2c5)](this['_commandService'][_0x19cfa7(0x272)]((_0x152233,_0x514b16)=>{const _0x45c5be=_0x19cfa7;if(_0x152233[_0x45c5be(0x27e)]!==a[_0x45c5be(0x3ee)][_0x45c5be(0x1ff)]||_0x514b16!=null&&_0x514b16['fromCollab']||_0x514b16!=null&&_0x514b16[_0x45c5be(0x210)])return;const _0x1dca3f=_0x152233[_0x45c5be(0x355)];if((_0x1dca3f==null?void 0x0:_0x1dca3f[_0x45c5be(0x1a2)])!==this[_0x45c5be(0x27a)])return;const _0x303265=_0x152233,_0x2aab63=this[_0x45c5be(0x269)][_0x45c5be(0x276)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x45c5be(0x276)]['getInterceptPoints']()[_0x45c5be(0x3dd)])([_0x303265],null)||[_0x303265];this[_0x45c5be(0xd1)](_0x2aab63[0x0]);})),_0x350fc3;}};ye=Ee([I(0x3,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),I(0x4,h['Inject'](exports[_0x5c8e6d(0x342)])),I(0x5,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0x24e)])),I(0x6,h[_0x5c8e6d(0x189)](a[_0x5c8e6d(0x405)])),I(0x7,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0xd7)])),I(0x8,h[_0x5c8e6d(0x189)](fe)),I(0x9,a[_0x5c8e6d(0x14f)]),I(0xa,a['ICommandService']),I(0xb,N['IMessageService']),I(0xc,a[_0x5c8e6d(0x13b)]),I(0xd,h[_0x5c8e6d(0x31d)](pe))],ye);const et=[_0x5c8e6d(0xaa),_0x5c8e6d(0x197),'verdancy600',_0x5c8e6d(0x2c4),_0x5c8e6d(0x144),_0x5c8e6d(0x257)];class Ve extends a[_0x5c8e6d(0x40b)]{constructor(){const _0x29892e=_0x5c8e6d;super(...arguments),d(this,_0x29892e(0x34e),new Map()),d(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x2b3a09){const _0x179a53=_0x5c8e6d;if(this[_0x179a53(0x34e)]['has'](_0x2b3a09))return this['_assignedColors'][_0x179a53(0xc0)](_0x2b3a09);const _0xe3da88=et[this[_0x179a53(0xcc)]];return this[_0x179a53(0xcc)]=(this[_0x179a53(0xcc)]+0x1)%et['length'],this[_0x179a53(0x34e)][_0x179a53(0x395)](_0x2b3a09,_0xe3da88),_0xe3da88;}}var ws=Object[_0x5c8e6d(0x3a5)],Ls=Object[_0x5c8e6d(0x373)],Ps=(_0x17a2c1,_0x12126c,_0x5c2537,_0x2d9506)=>{const _0x8e7155=_0x5c8e6d;for(var _0x2fbc89=_0x2d9506>0x1?void 0x0:_0x2d9506?Ls(_0x12126c,_0x5c2537):_0x12126c,_0x5dc6f3=_0x17a2c1[_0x8e7155(0x7a)]-0x1,_0x37ed9d;_0x5dc6f3>=0x0;_0x5dc6f3--)(_0x37ed9d=_0x17a2c1[_0x5dc6f3])&&(_0x2fbc89=(_0x2d9506?_0x37ed9d(_0x12126c,_0x5c2537,_0x2fbc89):_0x37ed9d(_0x2fbc89))||_0x2fbc89);return _0x2d9506&&_0x2fbc89&&ws(_0x12126c,_0x5c2537,_0x2fbc89),_0x2fbc89;},q=(_0x17acf4,_0x4b8cda)=>(_0x25d0bf,_0x25ec45)=>_0x4b8cda(_0x25d0bf,_0x25ec45,_0x17acf4);const Us=0x12c,ys=0x64,Ms=()=>{let _0x246715=[],_0x3920a7=!0x1;return _0x50b2cf=>{_0x246715['push'](_0x50b2cf),_0x3920a7||(_0x3920a7=!0x0,setTimeout(()=>{_0x246715['forEach'](_0x36c2a3=>_0x36c2a3()),_0x246715=[],_0x3920a7=!0x1;}));};};let Me=class extends a[_0x5c8e6d(0x198)]{constructor(_0x2e6da5,_0x583936,_0x2c321d,_0x57dc23,_0x5b75c7,_0x1a8cc9,_0x41f01b,_0x1b6c35){const _0x29e7b0=_0x5c8e6d;super(),d(this,_0x29e7b0(0xf4),!0x1),d(this,_0x29e7b0(0x8a),!0x1),d(this,_0x29e7b0(0x1c4),new g[(_0x29e7b0(0x18a))](new Map())),d(this,_0x29e7b0(0xad),this['_cursorInfo$'][_0x29e7b0(0xb5)]()),d(this,_0x29e7b0(0x292),new g[(_0x29e7b0(0x18a))]([])),d(this,_0x29e7b0(0x353),this[_0x29e7b0(0x292)][_0x29e7b0(0x149)](g[_0x29e7b0(0x1f8)](Us))),d(this,_0x29e7b0(0x275),He((_0x6e91df,_0x3fc142)=>{const _0x1b1fe1=_0x29e7b0,_0xb5dcf6={'eventID':u['CollaborationEvent'][_0x1b1fe1(0x2cd)],'data':{'unitID':this[_0x1b1fe1(0x27a)],'memberID':this[_0x1b1fe1(0x196)][_0x1b1fe1(0x2ff)](),'selection':Ye['serializeRangeWithSheet'](_0x6e91df,_0x3fc142[_0x1b1fe1(0x240)])}};this[_0x1b1fe1(0x196)]['send'](_0xb5dcf6,this[_0x1b1fe1(0x27a)]);},ys)),(this[_0x29e7b0(0x27a)]=_0x2e6da5,this['_session']=_0x583936,this[_0x29e7b0(0x21a)]=_0x2c321d,this['_colorAssignService']=_0x57dc23,this[_0x29e7b0(0x330)]=_0x5b75c7,this[_0x29e7b0(0x1ee)]=_0x1a8cc9,this['_commandService']=_0x41f01b,this[_0x29e7b0(0x357)]=_0x1b6c35);}get[_0x5c8e6d(0x3f0)](){const _0x5a1d3e=_0x5c8e6d;return this[_0x5a1d3e(0x1c4)][_0x5a1d3e(0x3ba)]();}get[_0x5c8e6d(0x1ab)](){const _0x3962ab=_0x5c8e6d;return this[_0x3962ab(0x292)][_0x3962ab(0x3ba)]();}[_0x5c8e6d(0x364)](){const _0x1d35a1=_0x5c8e6d;super[_0x1d35a1(0x364)](),this[_0x1d35a1(0x1c4)][_0x1d35a1(0x211)](new Map()),this[_0x1d35a1(0x1c4)][_0x1d35a1(0x3e7)](),this[_0x1d35a1(0x292)][_0x1d35a1(0x211)]([]),this[_0x1d35a1(0x292)][_0x1d35a1(0x3e7)]();}[_0x5c8e6d(0x15e)](){const _0x3f9aa8=_0x5c8e6d;this[_0x3f9aa8(0x8a)]||(this[_0x3f9aa8(0x8a)]=!0x0,this[_0x3f9aa8(0x196)]['sessionStatus$'][_0x3f9aa8(0x149)](g['takeUntil'](this[_0x3f9aa8(0x1d2)]))[_0x3f9aa8(0x237)](_0x5631ff=>{const _0xf81876=_0x3f9aa8;_0x5631ff===W[_0xf81876(0x2f1)]?this[_0xf81876(0x294)]():this[_0xf81876(0x399)]();}),this[_0x3f9aa8(0x196)][_0x3f9aa8(0x1ed)]['pipe'](g[_0x3f9aa8(0x150)](this['dispose$']))[_0x3f9aa8(0x237)](_0x3ddaf7=>{const _0x5e08d3=_0x3f9aa8,_0x2054fa=_0x3ddaf7[_0x5e08d3(0x3cf)];_0x2054fa===u[_0x5e08d3(0xce)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x3ddaf7),_0x2054fa===u[_0x5e08d3(0xce)]['USERS_LEAVE']&&this[_0x5e08d3(0xcf)](_0x3ddaf7);}),this[_0x3f9aa8(0x3ca)](),this[_0x3f9aa8(0x2c5)](this[_0x3f9aa8(0x2ea)][_0x3f9aa8(0x272)](_0x361d29=>{const _0x21e727=_0x3f9aa8;if(this[_0x21e727(0xf4)]&&_0x361d29['id']===E[_0x21e727(0x425)]['id']&&_0x361d29[_0x21e727(0x355)]['unitId']===this[_0x21e727(0x27a)]){const _0x2ca54c=_0x361d29[_0x21e727(0x355)];this[_0x21e727(0x275)](_0x2ca54c[_0x21e727(0x38b)],_0x2ca54c[_0x21e727(0x38f)][0x0]);}})));}['_onCursorUpdate'](_0x1118c3){const _0x46172a=_0x5c8e6d;var _0x40d445,_0x48d044;const {memberID:_0xed3831,selection:_0x43d2a1}=_0x1118c3['data'],{sheetName:_0x4f80a8,range:_0x13c20a}=Ye[_0x46172a(0x35e)](_0x43d2a1),_0x9bbd85={'name':(_0x48d044=(_0x40d445=this[_0x46172a(0x330)][_0x46172a(0x118)](this[_0x46172a(0x27a)],_0xed3831))==null?void 0x0:_0x40d445[_0x46172a(0x33a)])!=null?_0x48d044:_0x46172a(0x35a),'range':this['_getMergeRange'](_0x4f80a8,_0x13c20a),'sheetID':_0x4f80a8,'color':this['_colorAssignService'][_0x46172a(0x2d7)](_0xed3831),'selection':_0x43d2a1},_0x38eb96=this[_0x46172a(0x3f0)];_0x38eb96[_0x46172a(0x395)](_0xed3831,_0x9bbd85),this[_0x46172a(0x1c4)][_0x46172a(0x211)](_0x38eb96);}[_0x5c8e6d(0xcf)](_0x3c8326){const _0x18e747=_0x5c8e6d,{memberID:_0x1aa3c6}=_0x3c8326[_0x18e747(0x95)],_0x45feaf=this[_0x18e747(0x3f0)];_0x45feaf[_0x18e747(0x235)](_0x1aa3c6),this[_0x18e747(0x1c4)][_0x18e747(0x211)](_0x45feaf);}[_0x5c8e6d(0x41f)](_0x40a110,_0x560ff2){const _0xc6e0fa=_0x5c8e6d;var _0x149e6a,_0x5d1cc5;const _0x3f6582=(_0x5d1cc5=(_0x149e6a=this[_0xc6e0fa(0x1ee)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x149e6a['getSheetBySheetId'](_0x40a110))==null?void 0x0:_0x5d1cc5['getMergeData']();return(_0x3f6582==null?void 0x0:_0x3f6582['find'](_0x586f0b=>a[_0xc6e0fa(0x2a6)][_0xc6e0fa(0x22d)](_0x586f0b,_0x560ff2)))||_0x560ff2;}[_0x5c8e6d(0x3ca)](){const _0x55501f=_0x5c8e6d,_0x51007f=new a[(_0x55501f(0x137))](),_0x2b4a55=Ms(),_0x250930=()=>{const _0x55aadb=_0x55501f;_0x51007f[_0x55aadb(0x364)]();const _0x3e3a0e=(_0x387869,_0xc07425,_0x22d4ae,_0x1b7001)=>{const _0x5e65f2=_0x55aadb;let _0x4bc775=[];switch(_0x387869['id']){case E[_0x5e65f2(0x247)]['DeleteRangeMoveLeftCommandId']:{_0x4bc775=E[_0x5e65f2(0x3fc)](_0x387869,_0x1b7001);break;}case E[_0x5e65f2(0x247)]['DeleteRangeMoveUpCommandId']:{_0x4bc775=E[_0x5e65f2(0x11e)](_0x387869,_0x1b7001);break;}case E[_0x5e65f2(0x247)][_0x5e65f2(0xd5)]:{_0x4bc775=E['handleInsertCol'](_0x387869,_0x1b7001);break;}case E[_0x5e65f2(0x247)][_0x5e65f2(0x420)]:{_0x4bc775=E[_0x5e65f2(0x3ed)](_0x387869,_0x1b7001);break;}case E[_0x5e65f2(0x247)][_0x5e65f2(0x35f)]:{_0x4bc775=E[_0x5e65f2(0x221)](_0x387869,_0x1b7001);break;}case E[_0x5e65f2(0x247)][_0x5e65f2(0x1b7)]:{_0x4bc775=E[_0x5e65f2(0x41d)](_0x387869,_0x1b7001);break;}case E[_0x5e65f2(0x247)][_0x5e65f2(0xda)]:{_0x4bc775=E['handleMoveRange'](_0x387869,_0x1b7001);break;}case E[_0x5e65f2(0x247)]['RemoveColCommandId']:{_0x4bc775=E[_0x5e65f2(0x1f0)](_0x387869,_0x1b7001);break;}case E[_0x5e65f2(0x247)][_0x5e65f2(0x40e)]:{_0x4bc775=E[_0x5e65f2(0x28a)](_0x387869,_0x1b7001);break;}}const _0xee4763=E[_0x5e65f2(0x29b)](_0x4bc775,_0x1b7001),_0xf0532c=this[_0x5e65f2(0x3f0)]['get'](_0xc07425);if(_0xf0532c&&_0xee4763){const _0x10ad2c={..._0xf0532c,'range':_0xee4763};this[_0x5e65f2(0x3f0)][_0x5e65f2(0x395)](_0xc07425,_0x10ad2c),_0x2b4a55(()=>{const _0x407822=_0x5e65f2,_0xcaacdc=this['_refRangeService'][_0x407822(0x73)](_0xee4763,_0x2fbf6f=>(_0xcaacdc['dispose'](),_0x3e3a0e(_0x2fbf6f,_0xc07425,_0x22d4ae,_0xee4763)));_0x51007f[_0x407822(0x303)](_0xcaacdc);});}return{'redos':[],'undos':[]};};this[_0x55aadb(0x3f0)]['forEach']((_0x398f20,_0x4bcaf7)=>{const _0x28bda9=_0x55aadb,{range:_0x1f179c,sheetID:_0x4956cc}=_0x398f20,_0x4671bb=this[_0x28bda9(0x357)][_0x28bda9(0x73)](_0x1f179c,_0x5e7c43=>(_0x4671bb[_0x28bda9(0x364)](),_0x3e3a0e(_0x5e7c43,_0x4bcaf7,_0x4956cc,_0x1f179c)));_0x51007f['add'](_0x4671bb);});};this[_0x55501f(0x2c5)](a['toDisposable'](this[_0x55501f(0x1c4)][_0x55501f(0x237)](()=>{_0x250930();})));}[_0x5c8e6d(0x294)](){const _0x2446aa=_0x5c8e6d;var _0x1c2021,_0x241dc9;if(this[_0x2446aa(0xf4)]=!0x0,((_0x1c2021=this[_0x2446aa(0x1ee)]['getFocusedUnit']())==null?void 0x0:_0x1c2021[_0x2446aa(0x35c)]())!==this[_0x2446aa(0x27a)])return;const _0x182c78=(_0x241dc9=this[_0x2446aa(0x21a)][_0x2446aa(0xc0)](E[_0x2446aa(0x3cb)])[_0x2446aa(0xb6)]())==null?void 0x0:_0x241dc9[0x0];_0x182c78&&this[_0x2446aa(0x275)](this['_univerInstanceService'][_0x2446aa(0x157)](a[_0x2446aa(0x2c8)][_0x2446aa(0x184)])[_0x2446aa(0x344)]()['getSheetId'](),_0x182c78);}[_0x5c8e6d(0x399)](){const _0x2c2b34=_0x5c8e6d;this[_0x2c2b34(0xf4)]=!0x1;}};Me=Ps([q(0x2,h[_0x5c8e6d(0x189)](h['Injector'])),q(0x3,h['Inject'](Ve)),q(0x4,h[_0x5c8e6d(0x189)](G)),q(0x5,a[_0x5c8e6d(0x3b1)]),q(0x6,a[_0x5c8e6d(0x1ec)]),q(0x7,h[_0x5c8e6d(0x189)](E[_0x5c8e6d(0x162)]))],Me);var Ns=Object['defineProperty'],As=Object[_0x5c8e6d(0x373)],js=(_0x4cca3e,_0x393d60,_0x493173,_0x189e70)=>{const _0x28cb79=_0x5c8e6d;for(var _0x4c74ee=_0x189e70>0x1?void 0x0:_0x189e70?As(_0x393d60,_0x493173):_0x393d60,_0x399f0a=_0x4cca3e[_0x28cb79(0x7a)]-0x1,_0x5c9ba6;_0x399f0a>=0x0;_0x399f0a--)(_0x5c9ba6=_0x4cca3e[_0x399f0a])&&(_0x4c74ee=(_0x189e70?_0x5c9ba6(_0x393d60,_0x493173,_0x4c74ee):_0x5c9ba6(_0x4c74ee))||_0x4c74ee);return _0x189e70&&_0x4c74ee&&Ns(_0x393d60,_0x493173,_0x4c74ee),_0x4c74ee;},V=(_0x3a698e,_0x1ff812)=>(_0x40cb78,_0x422240)=>_0x1ff812(_0x40cb78,_0x422240,_0x3a698e);const $s=0x12c,Hs=0x64;let Ne=class extends a['RxDisposable']{constructor(_0x219fc4,_0x3f8372,_0x49c1e2,_0x4790c6,_0x505dc1,_0x3bab94,_0x2f6508,_0x52488a,_0x3b58a0){const _0x54e17c=_0x5c8e6d;super(),d(this,_0x54e17c(0xf4),!0x1),d(this,_0x54e17c(0x8a),!0x1),d(this,_0x54e17c(0x1c4),new g[(_0x54e17c(0x18a))](new Map())),d(this,_0x54e17c(0xad),this['_cursorInfo$'][_0x54e17c(0xb5)]()),d(this,_0x54e17c(0x292),new g['BehaviorSubject']([])),d(this,'roomMembers$',this['_roomMembers$'][_0x54e17c(0x149)](g['debounceTime']($s))),d(this,'_updateLocalCursor',He(_0x3704b5=>{const _0x55bb52=_0x54e17c,_0x4c022e={'eventID':u['CollaborationEvent'][_0x55bb52(0x2cd)],'data':{'unitID':this[_0x55bb52(0x27a)],'memberID':this['_session'][_0x55bb52(0x2ff)](),'selection':Ct(_0x3704b5)}};this[_0x55bb52(0x196)][_0x55bb52(0xa4)](_0x4c022e,this[_0x55bb52(0x27a)]);},Hs)),(this[_0x54e17c(0x27a)]=_0x219fc4,this['_session']=_0x3f8372,this[_0x54e17c(0x21a)]=_0x49c1e2,this[_0x54e17c(0x109)]=_0x4790c6,this[_0x54e17c(0x330)]=_0x505dc1,this[_0x54e17c(0x215)]=_0x3bab94,this[_0x54e17c(0xdb)]=_0x2f6508,this[_0x54e17c(0x1ee)]=_0x52488a,this[_0x54e17c(0x2ea)]=_0x3b58a0);}get[_0x5c8e6d(0x3f0)](){return this['_cursorInfo$']['getValue']();}get[_0x5c8e6d(0x1ab)](){const _0xe4ce10=_0x5c8e6d;return this[_0xe4ce10(0x292)][_0xe4ce10(0x3ba)]();}['dispose'](){const _0x439ac7=_0x5c8e6d;super[_0x439ac7(0x364)](),this[_0x439ac7(0x1c4)][_0x439ac7(0x211)](new Map()),this[_0x439ac7(0x1c4)]['complete'](),this[_0x439ac7(0x292)][_0x439ac7(0x211)]([]),this['_roomMembers$']['complete']();}[_0x5c8e6d(0x15e)](){const _0x1a58f9=_0x5c8e6d;this['_init']||(this[_0x1a58f9(0x8a)]=!0x0,this[_0x1a58f9(0x196)]['sessionStatus$']['pipe'](g['takeUntil'](this[_0x1a58f9(0x1d2)]))[_0x1a58f9(0x237)](_0x407a98=>{const _0xa97803=_0x1a58f9;_0x407a98===W['ONLINE']?this['_toggleOnline']():this[_0xa97803(0x399)]();}),this[_0x1a58f9(0x196)][_0x1a58f9(0x1ed)]['pipe'](g[_0x1a58f9(0x150)](this[_0x1a58f9(0x1d2)]))[_0x1a58f9(0x237)](_0x2ca9b6=>{const _0x59b582=_0x1a58f9,_0x483544=_0x2ca9b6['eventID'];_0x483544===u[_0x59b582(0xce)][_0x59b582(0x2cd)]&&this[_0x59b582(0xf1)](_0x2ca9b6),_0x483544===u['CollaborationEvent']['USERS_LEAVE']&&this[_0x59b582(0xcf)](_0x2ca9b6);}),this[_0x1a58f9(0x2c5)](this['_commandService'][_0x1a58f9(0x272)](_0x4954d1=>{const _0x3ed719=_0x1a58f9,_0x22e324=_0x4954d1[_0x3ed719(0x355)];_0x22e324!=null&&this[_0x3ed719(0xf4)]&&_0x4954d1['id']===M[_0x3ed719(0x1a5)]['id']&&_0x22e324[_0x3ed719(0x1a2)]===this['unitID']&&_0x22e324[_0x3ed719(0x2de)]===!0x1&&this[_0x3ed719(0x275)](_0x22e324[_0x3ed719(0xed)]);})),this[_0x1a58f9(0x215)][_0x1a58f9(0x128)]['pipe'](g[_0x1a58f9(0x150)](this[_0x1a58f9(0x1d2)]))[_0x1a58f9(0x237)](_0x41b6b0=>{const _0x54e1ce=_0x1a58f9;if((_0x41b6b0==null?void 0x0:_0x41b6b0['unitID'])!==this[_0x54e1ce(0x27a)])return;const _0x52ca45={'eventID':u[_0x54e1ce(0xce)]['UPDATE_CURSOR'],'data':_0x41b6b0};this['_onCursorUpdate'](_0x52ca45);}),this[_0x1a58f9(0x2c5)](this[_0x1a58f9(0x2ea)][_0x1a58f9(0x272)](_0x306881=>{const _0x571821=_0x1a58f9;if(_0x306881[_0x571821(0x355)]==null)return;const _0x587a9a=_0x306881[_0x571821(0x355)];if(_0x306881['id']!==M[_0x571821(0x3a3)]['id']||_0x587a9a[_0x571821(0x1a2)]!==this['unitID'])return;const _0x385424={'id':_0x571821(0x358),'params':_0x587a9a},_0x115bba=this['cursorInfo'];for(const [_0x42ba74,_0x350a87]of _0x115bba){const _0x2d6842={'id':_0x571821(0x358),'params':{'unitId':this[_0x571821(0x27a)],'actions':null,'textRanges':_0x350a87['ranges']}},_0x3956c2=this[_0x571821(0xdb)][_0x571821(0x291)](_0x385424,_0x2d6842,!0x1);if(u['isTransformMutationFailure'](_0x3956c2))throw _0x3956c2[_0x571821(0x2bf)];_0x115bba[_0x571821(0x395)](_0x42ba74,{..._0x350a87,'ranges':_0x3956c2['m2Prime']['params'][_0x571821(0x29c)]});}queueMicrotask(()=>{const _0x979e6a=_0x571821;this[_0x979e6a(0x1c4)]['next'](_0x115bba);});})));}[_0x5c8e6d(0xf1)](_0x29fc07){const _0x11ad48=_0x5c8e6d;var _0x47a076,_0x519178;const {memberID:_0x5885d4,selection:_0x41ced4}=_0x29fc07['data'],_0x3f227a=fs(_0x41ced4),_0x15c605=(_0x519178=(_0x47a076=this[_0x11ad48(0x330)][_0x11ad48(0x118)](this['unitID'],_0x5885d4))==null?void 0x0:_0x47a076[_0x11ad48(0x33a)])!=null?_0x519178:_0x11ad48(0x35a),_0x2a8205={'color':this['_colorAssignService'][_0x11ad48(0x2d7)](_0x5885d4),'name':_0x15c605,'ranges':_0x3f227a},_0x1f5993=this[_0x11ad48(0x3f0)];_0x1f5993[_0x11ad48(0x395)](_0x5885d4,_0x2a8205),this[_0x11ad48(0x1c4)][_0x11ad48(0x211)](_0x1f5993);}[_0x5c8e6d(0xcf)](_0x56e7d4){const _0x52c5ce=_0x5c8e6d,{memberID:_0x864ae2}=_0x56e7d4['data'],_0x5c3480=this[_0x52c5ce(0x3f0)];_0x5c3480[_0x52c5ce(0x235)](_0x864ae2),this[_0x52c5ce(0x1c4)][_0x52c5ce(0x211)](_0x5c3480);}['_toggleOnline'](){const _0x501e6a=_0x5c8e6d;var _0x5c1e4e;if(this[_0x501e6a(0xf4)]=!0x0,((_0x5c1e4e=this[_0x501e6a(0x1ee)][_0x501e6a(0x3bd)]())==null?void 0x0:_0x5c1e4e[_0x501e6a(0x35c)]())!==this[_0x501e6a(0x27a)])return;const _0x23d57a=this[_0x501e6a(0x21a)][_0x501e6a(0xc0)](M[_0x501e6a(0x260)])[_0x501e6a(0xb6)](),_0x2f80d7=_0x23d57a==null?void 0x0:_0x23d57a['map'](M[_0x501e6a(0x29e)]);Array[_0x501e6a(0x218)](_0x2f80d7)&&_0x2f80d7[_0x501e6a(0x7a)]>0x0&&this[_0x501e6a(0x275)](_0x2f80d7);}[_0x5c8e6d(0x399)](){const _0x10bf6d=_0x5c8e6d;this[_0x10bf6d(0xf4)]=!0x1;}};Ne=js([V(0x2,h[_0x5c8e6d(0x189)](h['Injector'])),V(0x3,h[_0x5c8e6d(0x189)](Ve)),V(0x4,h[_0x5c8e6d(0x189)](G)),V(0x5,h[_0x5c8e6d(0x189)](Fe)),V(0x6,u['ITransformService']),V(0x7,a[_0x5c8e6d(0x3b1)]),V(0x8,a['ICommandService'])],Ne);var xs=Object[_0x5c8e6d(0x3a5)],ks=Object[_0x5c8e6d(0x373)],Bs=(_0x537de1,_0x244390,_0x6c78ba,_0x3c5d90)=>{const _0xd60b24=_0x5c8e6d;for(var _0xded0c4=_0x3c5d90>0x1?void 0x0:_0x3c5d90?ks(_0x244390,_0x6c78ba):_0x244390,_0x58ce98=_0x537de1[_0xd60b24(0x7a)]-0x1,_0x3dd7ac;_0x58ce98>=0x0;_0x58ce98--)(_0x3dd7ac=_0x537de1[_0x58ce98])&&(_0xded0c4=(_0x3c5d90?_0x3dd7ac(_0x244390,_0x6c78ba,_0xded0c4):_0x3dd7ac(_0xded0c4))||_0xded0c4);return _0x3c5d90&&_0xded0c4&&xs(_0x244390,_0x6c78ba,_0xded0c4),_0xded0c4;},Oe=(_0x54ab07,_0x36350f)=>(_0x2f30ff,_0x1fb7fa)=>_0x36350f(_0x2f30ff,_0x1fb7fa,_0x54ab07);let z=class extends a[_0x5c8e6d(0x198)]{constructor(_0xbac650,_0x56444d,_0x36c666){const _0x4b95af=_0x5c8e6d;super(),d(this,'_entities',new Map()),d(this,_0x4b95af(0x374),new g[(_0x4b95af(0x3ea))]()),(this[_0x4b95af(0x1ee)]=_0xbac650,this[_0x4b95af(0x21a)]=_0x56444d,this[_0x4b95af(0x24a)]=_0x36c666,this[_0x4b95af(0x8a)]());}[_0x5c8e6d(0x364)](){const _0x5d031d=_0x5c8e6d;super['dispose'](),this[_0x5d031d(0x374)]['complete'](),this[_0x5d031d(0xf7)][_0x5d031d(0x382)](_0x3f6113=>_0x3f6113[_0x5d031d(0x364)]());}[_0x5c8e6d(0x32f)](_0x5462c1){const _0x525987=_0x5c8e6d;return this[_0x525987(0xf7)][_0x525987(0x315)](_0x5462c1)?this['_entities'][_0x525987(0xc0)](_0x5462c1)[_0x525987(0xad)]:this['_entityInit$'][_0x525987(0x149)](g[_0x525987(0x161)](_0x1c86e2=>_0x1c86e2['unitID']===_0x5462c1),g[_0x525987(0x26d)](_0x30b1d2=>_0x30b1d2[_0x525987(0xad)]));}[_0x5c8e6d(0x8a)](){const _0x2df7ac=_0x5c8e6d;this[_0x2df7ac(0x1ee)][_0x2df7ac(0x2fc)](a[_0x2df7ac(0x2c8)][_0x2df7ac(0x184)])[_0x2df7ac(0x149)](g[_0x2df7ac(0x150)](this[_0x2df7ac(0x1d2)]))[_0x2df7ac(0x237)](async _0x3ec46=>{const _0x35abe9=_0x2df7ac,_0x5c1def=_0x3ec46[_0x35abe9(0x35c)](),_0x4c03d0=await this['_startSheetCollabCursor'](_0x5c1def);this[_0x35abe9(0x374)]['next'](_0x4c03d0),this[_0x35abe9(0xf7)][_0x35abe9(0x395)](_0x5c1def,_0x4c03d0);}),this[_0x2df7ac(0x1ee)][_0x2df7ac(0x2fc)](a[_0x2df7ac(0x2c8)][_0x2df7ac(0x3c5)])[_0x2df7ac(0x149)](g[_0x2df7ac(0x150)](this[_0x2df7ac(0x1d2)]))['pipe'](g['filter'](_0x276c57=>!_0x276c57['getUnitId']()['startsWith']('__')))['subscribe'](async _0xd67062=>{const _0x37fedb=_0x2df7ac,_0x364bc6=_0xd67062['getUnitId'](),_0x215074=await this['_startDocCollabCursor'](_0x364bc6);this[_0x37fedb(0x374)]['next'](_0x215074),this['_entities']['set'](_0x364bc6,_0x215074);}),g[_0x2df7ac(0x1f9)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x2df7ac(0x2c8)][_0x2df7ac(0x3c5)]),this['_univerInstanceService'][_0x2df7ac(0x20f)](a['UniverInstanceType'][_0x2df7ac(0x184)]))[_0x2df7ac(0x149)](g[_0x2df7ac(0x150)](this[_0x2df7ac(0x1d2)]))['subscribe'](_0x3ad2da=>{const _0x51a0d1=_0x2df7ac,_0x3a08ab=_0x3ad2da[_0x51a0d1(0x35c)](),_0x2c172d=this['_entities'][_0x51a0d1(0xc0)](_0x3a08ab);_0x2c172d&&(_0x2c172d[_0x51a0d1(0x364)](),this['_entities'][_0x51a0d1(0x235)](_0x3a08ab));});}async[_0x5c8e6d(0x3c2)](_0xf1b07a){const _0x2af8eb=_0x5c8e6d,_0x1d790c=await this[_0x2af8eb(0x24a)][_0x2af8eb(0x319)](_0xf1b07a),_0x4fefdb=this['_injector'][_0x2af8eb(0x424)](Me,_0xf1b07a,_0x1d790c);return _0x4fefdb[_0x2af8eb(0x15e)](),_0x4fefdb;}async[_0x5c8e6d(0x111)](_0x454e73){const _0x29277a=_0x5c8e6d,_0x32e9fc=await this[_0x29277a(0x24a)]['requireSession'](_0x454e73),_0x1c5e45=this[_0x29277a(0x21a)][_0x29277a(0x424)](Ne,_0x454e73,_0x32e9fc);return _0x1c5e45[_0x29277a(0x15e)](),_0x1c5e45;}};z=Bs([a[_0x5c8e6d(0x3e9)](a[_0x5c8e6d(0x87)][_0x5c8e6d(0x2d3)],z),Oe(0x0,a[_0x5c8e6d(0x3b1)]),Oe(0x1,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),Oe(0x2,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x356)]))],z);const ce=0x14,tt=0xc8,De=0x4,Fs=0x5;function Vs(_0x5be224,_0x5a245a){const _0x3b7de2=_0x5c8e6d;let {radius:_0x22ae58,width:_0x13e49f,height:_0x528a82}=_0x5a245a;_0x22ae58=_0x22ae58!=null?_0x22ae58:0x0,_0x13e49f=_0x13e49f!=null?_0x13e49f:0x1e,_0x528a82=_0x528a82!=null?_0x528a82:0x1e;let _0x44830e=0x0,_0x3b4c28=0x0,_0x3bb545=0x0;_0x44830e=_0x3b4c28=_0x3bb545=Math[_0x3b7de2(0x1ca)](_0x22ae58,_0x13e49f/0x2,_0x528a82/0x2),_0x5be224[_0x3b7de2(0x24d)](),_0x5be224['moveTo'](_0x44830e,0x0),_0x5be224[_0x3b7de2(0x362)](_0x13e49f-_0x3b4c28,0x0),_0x5be224['arc'](_0x13e49f-_0x3b4c28,_0x3b4c28,_0x3b4c28,Math['PI']*0x3/0x2,0x0,!0x1),_0x5be224[_0x3b7de2(0x362)](_0x13e49f,_0x528a82-_0x3bb545),_0x5be224[_0x3b7de2(0x3ab)](_0x13e49f-_0x3bb545,_0x528a82-_0x3bb545,_0x3bb545,0x0,Math['PI']/0x2,!0x1),_0x5be224[_0x3b7de2(0x362)](0x0,_0x528a82),_0x5be224[_0x3b7de2(0x362)](0x0,_0x44830e),_0x5be224['arc'](_0x44830e,_0x44830e,_0x44830e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5be224[_0x3b7de2(0x286)](),_0x5a245a[_0x3b7de2(0x263)]&&(_0x5be224[_0x3b7de2(0x19a)](),_0x5be224[_0x3b7de2(0x2db)]=_0x5a245a[_0x3b7de2(0x263)],_0x5a245a[_0x3b7de2(0x8f)]==='evenodd'?_0x5be224[_0x3b7de2(0x263)](_0x3b7de2(0x158)):_0x5be224[_0x3b7de2(0x263)](),_0x5be224[_0x3b7de2(0x71)]());}class Ce extends R[_0x5c8e6d(0x6a)]{constructor(_0x36a9fc,_0x2a7fde){const _0x56ffb6=_0x5c8e6d;super(_0x36a9fc,_0x2a7fde),d(this,_0x56ffb6(0x7b)),d(this,_0x56ffb6(0x1f5)),(this[_0x56ffb6(0x7b)]=_0x2a7fde==null?void 0x0:_0x2a7fde[_0x56ffb6(0x7b)],this[_0x56ffb6(0x1f5)]=_0x2a7fde==null?void 0x0:_0x2a7fde[_0x56ffb6(0x1f5)]);}static[_0x5c8e6d(0x11b)](_0x34f520,_0x5ee899){const _0x3418e7=_0x5c8e6d,{text:_0x1535ff,color:_0x221463}=_0x5ee899;_0x34f520['save'](),_0x34f520['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1b3f5a=_0x34f520[_0x3418e7(0x2da)](_0x1535ff)[_0x3418e7(0x317)],_0x57808e=Math[_0x3418e7(0x1ca)](_0x1b3f5a+0x2*De,tt);Vs(_0x34f520,{'height':ce,'radius':0x4,'width':_0x57808e,'fill':_0x221463,'evented':!0x1}),_0x34f520[_0x3418e7(0x2db)]=_0x3418e7(0x412);const _0x536556=De,_0x1f963e=ce-Fs,_0xeacd6e=tt-0x2*De;if(_0x1b3f5a>_0xeacd6e){let _0x389198='',_0x5c3e33=0x0;for(const _0x2871e7 of _0x1535ff){const _0x4371bc=_0x34f520[_0x3418e7(0x2da)](_0x2871e7)[_0x3418e7(0x317)];if(_0x5c3e33+_0x4371bc<=_0xeacd6e-_0x34f520['measureText'](_0x3418e7(0x3a0))[_0x3418e7(0x317)])_0x389198+=_0x2871e7,_0x5c3e33+=_0x4371bc;else{_0x389198+=_0x3418e7(0x3a0);break;}}_0x34f520[_0x3418e7(0x3db)](_0x389198,_0x536556,_0x1f963e);}else _0x34f520[_0x3418e7(0x3db)](_0x1535ff,_0x536556,_0x1f963e);_0x34f520[_0x3418e7(0x71)]();}[_0x5c8e6d(0x252)](_0x2b15a2){const _0x1455af=_0x5c8e6d;Ce[_0x1455af(0x11b)](_0x2b15a2,this);}}const Ws=0x1,Gs=1.5;class Ys extends R['Shape']{constructor(_0x284f2f,_0x1ef2f4){const _0x4226ed=_0x5c8e6d;super(_0x284f2f,_0x1ef2f4),d(this,_0x4226ed(0x3cd)),d(this,_0x4226ed(0x131),!0x1),d(this,_0x4226ed(0x400)),d(this,_0x4226ed(0x419),''),d(this,_0x4226ed(0x25b),'top'),(_0x1ef2f4&&this[_0x4226ed(0x1d9)](_0x1ef2f4),this[_0x4226ed(0x2e8)]['add'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeaveObserver']['add'](()=>this[_0x4226ed(0x1d9)]({'hovered':!0x1})));}[_0x5c8e6d(0x1d9)](_0x53a723){const _0x5c8ca9=_0x5c8e6d;var _0xdab719,_0x5e01d6,_0x94edc7,_0x213036,_0x4293e2;this[_0x5c8ca9(0x3cd)]=(_0xdab719=_0x53a723[_0x5c8ca9(0x7b)])!=null?_0xdab719:this[_0x5c8ca9(0x3cd)],this['_hovered']=(_0x5e01d6=_0x53a723['hovered'])!=null?_0x5e01d6:this['_hovered'],this[_0x5c8ca9(0x400)]=(_0x94edc7=_0x53a723[_0x5c8ca9(0x240)])!=null?_0x94edc7:this[_0x5c8ca9(0x400)],this[_0x5c8ca9(0x419)]=(_0x213036=_0x53a723[_0x5c8ca9(0x33a)])!=null?_0x213036:this['_name'],this[_0x5c8ca9(0x25b)]=(_0x4293e2=_0x53a723[_0x5c8ca9(0x255)])!=null?_0x4293e2:this[_0x5c8ca9(0x25b)],this[_0x5c8ca9(0x2e4)]({'width':_0x53a723[_0x5c8ca9(0x317)],'height':_0x53a723[_0x5c8ca9(0x223)]});}['onMouseMove'](_0x14b8e7){const _0x19ec09=_0x5c8e6d,{row:_0x174656,column:_0x412cc7}=_0x14b8e7;if(_0x174656>=this['_range'][_0x19ec09(0x6f)]&&_0x174656<=this[_0x19ec09(0x400)][_0x19ec09(0x1cc)]&&_0x412cc7>=this[_0x19ec09(0x400)][_0x19ec09(0xff)]&&_0x412cc7<=this[_0x19ec09(0x400)]['endColumn']){this[_0x19ec09(0x1d9)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x13b790){return!0x1;}[_0x5c8e6d(0x252)](_0x5f3f4f){const _0x129b0d=_0x5c8e6d;R[_0x129b0d(0xc8)]['drawWith'](_0x5f3f4f,{'width':this[_0x129b0d(0x317)],'height':this[_0x129b0d(0x223)],'strokeWidth':Gs,'stroke':this[_0x129b0d(0x3cd)],'evented':!0x1}),this['_hovered']&&(_0x5f3f4f[_0x129b0d(0x19a)](),_0x5f3f4f[_0x129b0d(0x180)](0x1,0x0,0x0,0x1,this[_0x129b0d(0x317)],this[_0x129b0d(0x25b)]===_0x129b0d(0x32e)?0x0:-ce),Ce[_0x129b0d(0x11b)](_0x5f3f4f,{'text':this[_0x129b0d(0x419)],'color':this[_0x129b0d(0x3cd)]}),_0x5f3f4f[_0x129b0d(0x71)]());}}var Ks=Object[_0x5c8e6d(0x3a5)],Xs=Object[_0x5c8e6d(0x373)],qs=(_0x2420a5,_0x2345d0,_0x2f2b2a,_0x1fb7ee)=>{const _0x472089=_0x5c8e6d;for(var _0x54ccdf=_0x1fb7ee>0x1?void 0x0:_0x1fb7ee?Xs(_0x2345d0,_0x2f2b2a):_0x2345d0,_0x10b900=_0x2420a5[_0x472089(0x7a)]-0x1,_0x483a09;_0x10b900>=0x0;_0x10b900--)(_0x483a09=_0x2420a5[_0x10b900])&&(_0x54ccdf=(_0x1fb7ee?_0x483a09(_0x2345d0,_0x2f2b2a,_0x54ccdf):_0x483a09(_0x54ccdf))||_0x54ccdf);return _0x1fb7ee&&_0x54ccdf&&Ks(_0x2345d0,_0x2f2b2a,_0x54ccdf),_0x54ccdf;},le=(_0x23282e,_0x14419f)=>(_0x259ae3,_0x464714)=>_0x14419f(_0x259ae3,_0x464714,_0x23282e);let ue=class extends a[_0x5c8e6d(0x198)]{constructor(_0x36fd62,_0x44d7ad,_0x3f77e7,_0x3441a8){const _0x83c171=_0x5c8e6d;super(),d(this,'_cursors',new Set()),d(this,'_lastPointer',null),(this['_collabCursorController']=_0x36fd62,this['_univerInstanceService']=_0x44d7ad,this['_renderManagerService']=_0x3f77e7,this['_themeService']=_0x3441a8,this[_0x83c171(0x8a)]());}get[_0x5c8e6d(0x298)](){const _0x109678=_0x5c8e6d;return this[_0x109678(0x36e)][_0x109678(0x11f)](this['_univerInstanceService']['getCurrentUnitForType'](a[_0x109678(0x2c8)]['UNIVER_SHEET'])[_0x109678(0x35c)]())['with'](ee[_0x109678(0xbb)]);}get[_0x5c8e6d(0x408)](){const _0x40eccb=_0x5c8e6d;return this[_0x40eccb(0x1ee)][_0x40eccb(0x157)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x40eccb(0x35c)]();}['_init'](){const _0x4b5eeb=_0x5c8e6d;this[_0x4b5eeb(0x298)][_0x4b5eeb(0x2d6)][_0x4b5eeb(0x149)](T[_0x4b5eeb(0x150)](this[_0x4b5eeb(0x1d2)]),T['switchMap'](_0x358a98=>{const _0x1c4ce5=_0x4b5eeb;if(_0x358a98){const _0x32a168=_0x358a98[_0x1c4ce5(0x300)];return g[_0x1c4ce5(0x110)](this[_0x1c4ce5(0x10a)][_0x1c4ce5(0x32f)](this[_0x1c4ce5(0x408)]),this[_0x1c4ce5(0x177)][_0x1c4ce5(0x338)])['pipe'](T['map'](([_0x59e492,_0x574fb0])=>{const _0x4e0e9d=_0x1c4ce5,_0x14a9f3=new Map();return _0x59e492[_0x4e0e9d(0x382)]((_0x11082e,_0x35f26e)=>{const _0xb45b94=_0x4e0e9d;if(_0x11082e[_0xb45b94(0x186)]===_0x32a168){const _0xf34e52={..._0x11082e};_0xf34e52[_0xb45b94(0x7b)]=_0x574fb0[_0x11082e[_0xb45b94(0x7b)]],_0x14a9f3[_0xb45b94(0x395)](_0x35f26e,_0xf34e52);}}),{'skeleton':_0x358a98,'cursors':_0x14a9f3};}));}return g['of']({'skeleton':null,'cursors':new Map()});}))[_0x4b5eeb(0x237)](({skeleton:_0x11bcb1,cursors:_0x2c2775})=>{const _0x433ae3=_0x4b5eeb;this['_removeCollabCursors'](),_0x11bcb1&&this[_0x433ae3(0x33b)](_0x11bcb1,_0x2c2775);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x4b5eeb(0x237)](_0x3bf2c6=>{const _0x38482f=_0x4b5eeb;if(_0x3bf2c6==null)return;const {skeleton:_0x103cd4}=_0x3bf2c6,_0xd7e4b1=this[_0x38482f(0x36e)]['getRenderById'](this[_0x38482f(0x408)]),{scene:_0x2e6b3e}=_0xd7e4b1;_0x2e6b3e[_0x38482f(0x40f)][_0x38482f(0x303)](He(_0x3d3f34=>{const _0x33cee6=_0x38482f;var _0x4777a5,_0x14b7a8;const {offsetX:_0x3f02a2,offsetY:_0x1ecad0}=_0x3d3f34,{x:_0x5f3e34,y:_0x14ba37}=_0x2e6b3e[_0x33cee6(0x243)](R[_0x33cee6(0x2f7)][_0x33cee6(0x2c6)]([_0x3f02a2,_0x1ecad0])),{scaleX:_0x53a66f,scaleY:_0x27fd5d}=_0x2e6b3e[_0x33cee6(0x2dc)](),_0x4350bc=_0x2e6b3e[_0x33cee6(0x16b)](ee[_0x33cee6(0x1e0)][_0x33cee6(0x34c)]),_0x265099=_0x2e6b3e[_0x33cee6(0x26c)](R[_0x33cee6(0x2f7)][_0x33cee6(0x2c6)]([_0x5f3e34,_0x14ba37]),_0x4350bc),_0x49e364=_0x103cd4[_0x33cee6(0x2fa)](_0x3f02a2,_0x1ecad0,_0x53a66f,_0x27fd5d,_0x265099);((_0x4777a5=this[_0x33cee6(0x238)])==null?void 0x0:_0x4777a5[_0x33cee6(0x20a)])===_0x49e364[_0x33cee6(0x20a)]&&((_0x14b7a8=this[_0x33cee6(0x238)])==null?void 0x0:_0x14b7a8[_0x33cee6(0x2b0)])===_0x49e364[_0x33cee6(0x2b0)]||this[_0x33cee6(0x287)][_0x33cee6(0x382)](_0x4b3066=>{const _0x4b734b=_0x33cee6;_0x4b3066[_0x4b734b(0x147)](_0x49e364);});},0x64));});}['_updateCollabCursors'](_0x29b3c3,_0xaeff1a){const _0x5bdd1f=_0x5c8e6d;var _0x307744;const _0x5bdb07=(_0x307744=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x307744[_0x5bdd1f(0x313)];if(!_0x5bdb07)return;const _0x52d6ac=this[_0x5bdd1f(0x311)]();if(!_0x52d6ac)return;this['_cursors']['forEach'](_0x1eb39b=>{const _0x247e20=_0x5bdd1f;_0x1eb39b[_0x247e20(0x307)]();});const {scene:_0x4c8af3}=_0x52d6ac,_0x43e2ed=Js(Array[_0x5bdd1f(0x13a)](_0xaeff1a[_0x5bdd1f(0x244)]()))['map'](_0x505b6d=>{const _0x4d53e8=_0x5bdd1f,{color:_0xbe6eb,range:_0x486ecf,name:_0x325306,selection:_0x1c1860,sheetID:_0x2da35a}=_0x505b6d,{startColumn:_0x12c4ab,startRow:_0x4e9ea1,endColumn:_0x59b925,endRow:_0x2186fb}=_0x486ecf,_0x9579cf=ee[_0x4d53e8(0x3e5)](_0x4e9ea1,_0x12c4ab,_0x4c8af3,_0x5bdb07),_0x5e3388=ee[_0x4d53e8(0x3e5)](_0x2186fb,_0x59b925,_0x4c8af3,_0x5bdb07),{columnHeaderHeightAndMarginTop:_0x2cf109}=_0x5bdb07,{startX:_0x3d73a6,startY:_0x117247}=_0x9579cf,{endX:_0x5535d5,endY:_0x179537}=_0x5e3388,_0x52981b=_0x5535d5-_0x3d73a6,_0x3fd5e8=_0x179537-_0x117247,_0x3e2aba={'labelPosition':_0x117247-_0x2cf109>=ce?_0x4d53e8(0x78):'bottom','sheetID':_0x2da35a,'range':_0x486ecf,'color':_0xbe6eb,'name':_0x325306,'selection':_0x1c1860,'left':_0x3d73a6,'top':_0x117247,'width':_0x52981b,'height':_0x3fd5e8,'evented':!0x1};return new Ys(_0x325306,_0x3e2aba);});_0x4c8af3[_0x5bdd1f(0x31f)](_0x43e2ed,Ws),this[_0x5bdd1f(0x287)]=new Set(_0x43e2ed);}['_removeCollabCursors'](){const _0x261979=_0x5c8e6d;var _0x22d57;(_0x22d57=this[_0x261979(0x287)])==null||_0x22d57['forEach'](_0x47fb63=>_0x47fb63[_0x261979(0x364)]());}[_0x5c8e6d(0x311)](){const _0x149d3d=_0x5c8e6d;return ee['getSheetObject'](this[_0x149d3d(0x1ee)],this['_renderManagerService']);}};ue=qs([a[_0x5c8e6d(0x3e9)](a['LifecycleStages']['Steady'],ue),le(0x0,h[_0x5c8e6d(0x189)](z)),le(0x1,a[_0x5c8e6d(0x3b1)]),le(0x2,R[_0x5c8e6d(0x380)]),le(0x3,h[_0x5c8e6d(0x189)](a[_0x5c8e6d(0x3a1)]))],ue);function Js(_0x52dc12){const _0x1431c0=_0x5c8e6d,_0xadea9a=new Map();return _0x52dc12[_0x1431c0(0x382)](_0x5ec2f1=>{const _0x48dad5=_0x1431c0;if(_0xadea9a[_0x48dad5(0x315)](_0x5ec2f1['selection'])){const _0x5b61cb=_0xadea9a['get'](_0x5ec2f1[_0x48dad5(0x39d)]);_0x5b61cb[_0x48dad5(0x33a)]+=',\x20'+_0x5ec2f1[_0x48dad5(0x33a)];}else _0xadea9a['set'](_0x5ec2f1[_0x48dad5(0x39d)],_0x5ec2f1);}),Array['from'](_0xadea9a['values']());}var y=function(){const _0x248a00=_0x5c8e6d;return y=Object[_0x248a00(0x363)]||function(_0x48fa58){const _0xaec859=_0x248a00;for(var _0x1b440f,_0x240345=0x1,_0x562aef=arguments[_0xaec859(0x7a)];_0x240345<_0x562aef;_0x240345++){_0x1b440f=arguments[_0x240345];for(var _0x5d37b8 in _0x1b440f)Object[_0xaec859(0x125)]['hasOwnProperty'][_0xaec859(0x253)](_0x1b440f,_0x5d37b8)&&(_0x48fa58[_0x5d37b8]=_0x1b440f[_0x5d37b8]);}return _0x48fa58;},y[_0x248a00(0x2ed)](this,arguments);},zs=function(_0x25925f,_0x9b634c){const _0x256c6e=_0x5c8e6d;var _0x52fae0={};for(var _0x2d2aa0 in _0x25925f)Object[_0x256c6e(0x125)]['hasOwnProperty'][_0x256c6e(0x253)](_0x25925f,_0x2d2aa0)&&_0x9b634c[_0x256c6e(0x1e7)](_0x2d2aa0)<0x0&&(_0x52fae0[_0x2d2aa0]=_0x25925f[_0x2d2aa0]);if(_0x25925f!=null&&typeof Object['getOwnPropertySymbols']==_0x256c6e(0x1d6)){for(var _0x406bc1=0x0,_0x2d2aa0=Object[_0x256c6e(0x3c6)](_0x25925f);_0x406bc1<_0x2d2aa0[_0x256c6e(0x7a)];_0x406bc1++)_0x9b634c[_0x256c6e(0x1e7)](_0x2d2aa0[_0x406bc1])<0x0&&Object[_0x256c6e(0x125)][_0x256c6e(0x361)][_0x256c6e(0x253)](_0x25925f,_0x2d2aa0[_0x406bc1])&&(_0x52fae0[_0x2d2aa0[_0x406bc1]]=_0x25925f[_0x2d2aa0[_0x406bc1]]);}return _0x52fae0;},We=L[_0x5c8e6d(0x285)](function(_0x4b1396,_0x443915){const _0x24ca4c=_0x5c8e6d;var _0x4d059a=_0x4b1396[_0x24ca4c(0x38c)],_0xdffa4=_0x4b1396['id'],_0x4c3ced=_0x4b1396[_0x24ca4c(0x2f4)],_0x2719a5=_0x4b1396['extend'],_0x356938=zs(_0x4b1396,[_0x24ca4c(0x38c),'id',_0x24ca4c(0x2f4),'extend']),_0x4977a1=_0x24ca4c(0x28c)[_0x24ca4c(0x15d)](_0xdffa4,'\x20')[_0x24ca4c(0x15d)](_0x4c3ced||'')[_0x24ca4c(0x225)](),_0x48f316=L['useRef']('_'[_0x24ca4c(0x15d)](ei()));return Tt(_0x4d059a,''[_0x24ca4c(0x15d)](_0xdffa4),{'defIds':_0x4d059a[_0x24ca4c(0x1bb)],'idSuffix':_0x48f316[_0x24ca4c(0x390)]},y({'ref':_0x443915,'className':_0x4977a1},_0x356938),_0x2719a5);});function Tt(_0x1fac19,_0xeab285,_0x1c51a8,_0x1cdd96,_0x4d9cdf){const _0x37dbe7=_0x5c8e6d;return L[_0x37dbe7(0xa1)](_0x1fac19[_0x37dbe7(0x407)],y(y({'key':_0xeab285},Zs(_0x1fac19,_0x1c51a8,_0x4d9cdf)),_0x1cdd96),(Qs(_0x1fac19,_0x1c51a8)['children']||[])[_0x37dbe7(0xe8)](function(_0x39152c,_0x5e844c){const _0x4af631=_0x37dbe7;return Tt(_0x39152c,''[_0x4af631(0x15d)](_0xeab285,'-')[_0x4af631(0x15d)](_0x1fac19[_0x4af631(0x407)],'-')[_0x4af631(0x15d)](_0x5e844c),_0x1c51a8,void 0x0,_0x4d9cdf);}));}function Zs(_0x5c95a0,_0x5806ae,_0x310914){const _0xf0e613=_0x5c8e6d;var _0x3c5217=y({},_0x5c95a0[_0xf0e613(0x107)]);_0x310914!=null&&_0x310914[_0xf0e613(0x414)]&&_0x3c5217[_0xf0e613(0x263)]===_0xf0e613(0x414)&&(_0x3c5217[_0xf0e613(0x263)]=_0x310914[_0xf0e613(0x414)]);var _0x257c5d=_0x5806ae[_0xf0e613(0x1bb)];return!_0x257c5d||_0x257c5d[_0xf0e613(0x7a)]===0x0||(_0x5c95a0[_0xf0e613(0x407)]===_0xf0e613(0x3d5)&&_0x3c5217[_0xf0e613(0x116)]&&(_0x3c5217[_0xf0e613(0x116)]=_0x3c5217[_0xf0e613(0x116)]+_0x5806ae[_0xf0e613(0x393)]),Object[_0xf0e613(0x139)](_0x3c5217)['forEach'](function(_0x179ea2){const _0x3bed7a=_0xf0e613;var _0x386e31=_0x179ea2[0x0],_0x216abd=_0x179ea2[0x1];typeof _0x216abd=='string'&&(_0x3c5217[_0x386e31]=_0x216abd['replace'](/url\(#(.*)\)/,'url(#$1'[_0x3bed7a(0x15d)](_0x5806ae[_0x3bed7a(0x393)],')')));})),_0x3c5217;}function Qs(_0x52ed5f,_0x5c97f6){const _0xe3bee4=_0x5c8e6d;var _0x3b62fc,_0x36b873=_0x5c97f6[_0xe3bee4(0x1bb)];return!_0x36b873||_0x36b873[_0xe3bee4(0x7a)]===0x0?_0x52ed5f:_0x52ed5f[_0xe3bee4(0x407)]===_0xe3bee4(0x1cb)&&(!((_0x3b62fc=_0x52ed5f[_0xe3bee4(0x220)])===null||_0x3b62fc===void 0x0)&&_0x3b62fc['length'])?y(y({},_0x52ed5f),{'children':_0x52ed5f[_0xe3bee4(0x220)]['map'](function(_0x308fb9){const _0x10b424=_0xe3bee4;return typeof _0x308fb9[_0x10b424(0x107)]['id']==_0x10b424(0x16e)&&_0x36b873&&_0x36b873[_0x10b424(0x1e7)](_0x308fb9[_0x10b424(0x107)]['id'])>-0x1?y(y({},_0x308fb9),{'attrs':y(y({},_0x308fb9[_0x10b424(0x107)]),{'id':_0x308fb9[_0x10b424(0x107)]['id']+_0x5c97f6[_0x10b424(0x393)]})}):_0x308fb9;})}):_0x52ed5f;}function ei(){const _0x1db36f=_0x5c8e6d;return Math['random']()[_0x1db36f(0xbc)](0x24)['substring'](0x2,0x8);}We[_0x5c8e6d(0xec)]=_0x5c8e6d(0x1da);var ti={'tag':_0x5c8e6d(0x3c7),'attrs':{'fill':_0x5c8e6d(0x248),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x5c8e6d(0x3e1)},'children':[{'tag':'g','attrs':{'clipPath':_0x5c8e6d(0x70)},'children':[{'tag':'path','attrs':{'stroke':_0x5c8e6d(0x6c),'d':_0x5c8e6d(0x3e4),'strokeLinecap':_0x5c8e6d(0x28b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5c8e6d(0x1cb),'attrs':{},'children':[{'tag':_0x5c8e6d(0x34d),'attrs':{'id':_0x5c8e6d(0x309)},'children':[{'tag':_0x5c8e6d(0x348),'attrs':{'fill':'#fff','d':_0x5c8e6d(0x3af)}}]}]}],'defIds':[_0x5c8e6d(0x309)]},Rt=L['forwardRef'](function(_0x21b015,_0xff8415){const _0x5a557c=_0x5c8e6d;return L[_0x5a557c(0xa1)](We,Object[_0x5a557c(0x363)]({},_0x21b015,{'id':_0x5a557c(0x1a1),'ref':_0xff8415,'icon':ti}));});Rt[_0x5c8e6d(0xec)]=_0x5c8e6d(0x77);var si={'tag':_0x5c8e6d(0x3c7),'attrs':{'fill':_0x5c8e6d(0x248),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x5c8e6d(0x3e1)},'children':[{'tag':'g','attrs':{'clipPath':_0x5c8e6d(0x182)},'children':[{'tag':_0x5c8e6d(0x348),'attrs':{'stroke':_0x5c8e6d(0x6c),'d':_0x5c8e6d(0x36a),'strokeLinecap':_0x5c8e6d(0x28b),'strokeLinejoin':_0x5c8e6d(0x28b),'strokeWidth':1.2}}]},{'tag':_0x5c8e6d(0x1cb),'attrs':{},'children':[{'tag':_0x5c8e6d(0x34d),'attrs':{'id':_0x5c8e6d(0x1a6)},'children':[{'tag':_0x5c8e6d(0x348),'attrs':{'fill':_0x5c8e6d(0x3d3),'d':_0x5c8e6d(0x3af),'transform':_0x5c8e6d(0x23f)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ot=L[_0x5c8e6d(0x285)](function(_0xe2e3f,_0x1b68fa){const _0x2edb31=_0x5c8e6d;return L['createElement'](We,Object[_0x2edb31(0x363)]({},_0xe2e3f,{'id':_0x2edb31(0x365),'ref':_0x1b68fa,'icon':si}));});Ot['displayName']='OnLineSingle';const ii='univer-online-status-icon',ni=_0x5c8e6d(0x10e),ri=_0x5c8e6d(0x165),oi='univer-online',ai='univer-offline',ie={'onlineStatusIcon':ii,'onlineStatusTitle':ni,'onlineStatus':ri,'online':oi,'offline':ai};function ci(_0x5aed7f){const _0x5e1edf=_0x5c8e6d;switch(_0x5aed7f){case w['OFFLINE']:return _0x5e1edf(0x230);case w[_0x5e1edf(0x288)]:return _0x5e1edf(0x3fe);case w[_0x5e1edf(0x201)]:return'collabStatus.fetchMiss';case w[_0x5e1edf(0x2d2)]:return _0x5e1edf(0x9f);case w[_0x5e1edf(0x3ff)]:case w[_0x5e1edf(0x106)]:case w['AWAITING_WITH_PENDING']:return _0x5e1edf(0x135);case w[_0x5e1edf(0x8b)]:return _0x5e1edf(0x21d);}}function Dt(_0x4c3a22){const _0x58ba03=_0x5c8e6d,{status$:_0x3ee0c3}=_0x4c3a22,_0x185ab7=N[_0x58ba03(0x3da)](_0x3ee0c3,w[_0x58ba03(0x2d2)]),_0xf5522a=at[_0x58ba03(0x2d8)](a['LocaleService']),_0x3008ba=_0x185ab7!==w['OFFLINE'],_0x476b42=_0xf5522a['t'](ci(_0x185ab7)),_0x5416ec=Ht(ie[_0x58ba03(0x181)],{[ie[_0x58ba03(0x179)]]:_0x3008ba,[ie[_0x58ba03(0x7f)]]:!_0x3008ba}),_0x56a4a2=_0x3008ba?L[_0x58ba03(0xa1)](Ot,null):L['createElement'](Rt,null);return L[_0x58ba03(0xa1)](_0x58ba03(0x17c),{'className':_0x5416ec},L[_0x58ba03(0xa1)](_0x58ba03(0x17c),{'className':ie['onlineStatusIcon']},_0x56a4a2),L[_0x58ba03(0xa1)]('div',{'className':ie[_0x58ba03(0x3bb)]},_0x476b42));}var li=Object[_0x5c8e6d(0x3a5)],hi=Object[_0x5c8e6d(0x373)],_i=(_0x25138e,_0x411234,_0x39caa2,_0x205155)=>{for(var _0x4a987e=_0x205155>0x1?void 0x0:_0x205155?hi(_0x411234,_0x39caa2):_0x411234,_0x1bcaea=_0x25138e['length']-0x1,_0xab2d88;_0x1bcaea>=0x0;_0x1bcaea--)(_0xab2d88=_0x25138e[_0x1bcaea])&&(_0x4a987e=(_0x205155?_0xab2d88(_0x411234,_0x39caa2,_0x4a987e):_0xab2d88(_0x4a987e))||_0x4a987e);return _0x205155&&_0x4a987e&&li(_0x411234,_0x39caa2,_0x4a987e),_0x4a987e;},he=(_0x59d9e1,_0x229aa1)=>(_0x50654a,_0x4dcc28)=>_0x229aa1(_0x50654a,_0x4dcc28,_0x59d9e1);exports[_0x5c8e6d(0x371)]=class extends a[_0x5c8e6d(0x40b)]{constructor(_0x206da7,_0x456424,_0x476aed,_0x6fd3e0){const _0x5b08fb=_0x5c8e6d;super(),d(this,'_status$',new g[(_0x5b08fb(0x18a))](w[_0x5b08fb(0x2d2)])),(this[_0x5b08fb(0x1ee)]=_0x206da7,this['_uiPartsService']=_0x456424,this[_0x5b08fb(0x21a)]=_0x476aed,this[_0x5b08fb(0x7e)]=_0x6fd3e0,this[_0x5b08fb(0x29f)](),this[_0x5b08fb(0x3d4)]());}[_0x5c8e6d(0x29f)](){const _0x3699ca=_0x5c8e6d;this['disposeWithMe'](this[_0x3699ca(0x231)][_0x3699ca(0x3b7)](N[_0x3699ca(0x3ec)][_0x3699ca(0x15f)],()=>at['connectInjector'](ui({'status$':this['_status$'][_0x3699ca(0xb5)]()}),this['_injector'])));}[_0x5c8e6d(0x3d4)](){const _0x3dcab0=_0x5c8e6d;this['disposeWithMe'](a[_0x3dcab0(0x3c9)](this[_0x3dcab0(0x1ee)][_0x3dcab0(0x1b5)][_0x3dcab0(0x149)](g[_0x3dcab0(0x26d)](()=>{const _0x1d4a57=_0x3dcab0,_0x452539=this['_univerInstanceService'][_0x1d4a57(0x3bd)]();return _0x452539?this[_0x1d4a57(0x7e)]['getCollabEntity$'](_0x452539['getUnitId']()):g['of'](null);}),g[_0x3dcab0(0x26d)](_0x4a8ef9=>_0x4a8ef9?_0x4a8ef9['status$']:g['of'](w[_0x3dcab0(0x2d2)])))[_0x3dcab0(0x237)](_0x298bd3=>{const _0x49e134=_0x3dcab0;this[_0x49e134(0x156)][_0x49e134(0x211)](_0x298bd3);})));}},exports['DesktopCollaborationStatusDisplayController']=_i([a[_0x5c8e6d(0x3e9)](a[_0x5c8e6d(0x87)][_0x5c8e6d(0x2d3)],exports[_0x5c8e6d(0x371)]),he(0x0,a[_0x5c8e6d(0x3b1)]),he(0x1,N[_0x5c8e6d(0x310)]),he(0x2,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),he(0x3,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x397)]))],exports['DesktopCollaborationStatusDisplayController']);function ui(_0x3a53b0){const {status$:_0x107225}=_0x3a53b0;return function(){const _0xf090b9=_0x2b59;return L[_0xf090b9(0xa1)](Dt,{'status$':_0x107225});};}const Ge=h['createIdentifier'](_0x5c8e6d(0x337));var di=Object[_0x5c8e6d(0x3a5)],Si=Object[_0x5c8e6d(0x373)],vi=(_0x368ad3,_0x3e63c5,_0x24d2e7,_0x151f93)=>{const _0x1aa06f=_0x5c8e6d;for(var _0x251982=_0x151f93>0x1?void 0x0:_0x151f93?Si(_0x3e63c5,_0x24d2e7):_0x3e63c5,_0x735667=_0x368ad3[_0x1aa06f(0x7a)]-0x1,_0x3393f3;_0x735667>=0x0;_0x735667--)(_0x3393f3=_0x368ad3[_0x735667])&&(_0x251982=(_0x151f93?_0x3393f3(_0x3e63c5,_0x24d2e7,_0x251982):_0x3393f3(_0x251982))||_0x251982);return _0x151f93&&_0x251982&&di(_0x3e63c5,_0x24d2e7,_0x251982),_0x251982;},J=(_0x175b3b,_0x6ca3af)=>(_0x46b9f9,_0x2d7155)=>_0x6ca3af(_0x46b9f9,_0x2d7155,_0x175b3b);exports[_0x5c8e6d(0x417)]=class extends a[_0x5c8e6d(0x198)]{constructor(_0x25ea53,_0x4abdbe,_0x42641f,_0x40c8b5,_0x1e78f1,_0x274aaf){const _0x4fae79=_0x5c8e6d;super(),this[_0x4fae79(0x9a)]=_0x25ea53,this[_0x4fae79(0x2e1)]=_0x4abdbe,this[_0x4fae79(0x2ea)]=_0x42641f,this[_0x4fae79(0x11c)]=_0x40c8b5,this[_0x4fae79(0x14d)]=_0x1e78f1,_0x274aaf?_0x274aaf==null||_0x274aaf[_0x4fae79(0xb0)]()['then'](()=>this[_0x4fae79(0x8a)]()):(this[_0x4fae79(0x2e1)][_0x4fae79(0x383)]('[DataLoaderController]',_0x4fae79(0x98)),this[_0x4fae79(0x8a)]());}async[_0x5c8e6d(0x8a)](){const _0x3b7a7a=_0x5c8e6d,_0x47093f=this[_0x3b7a7a(0x9a)][_0x3b7a7a(0x3cc)](_0x3b7a7a(0x2a0)),_0x312159=this['_urlService'][_0x3b7a7a(0x3cc)]('type');if(!_0x47093f||!_0x312159){this[_0x3b7a7a(0x2e1)][_0x3b7a7a(0x383)](_0x3b7a7a(0x1e3),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x312159)){case j[_0x3b7a7a(0x184)]:{const _0x2ad963=await this[_0x3b7a7a(0x21b)](_0x47093f);this[_0x3b7a7a(0x226)](_0x2ad963);break;}case j['UNIVER_DOC']:{await this['_loadDoc'](_0x47093f);break;}default:{this[_0x3b7a7a(0x2e1)][_0x3b7a7a(0x2bf)](_0x3b7a7a(0x1e3),_0x3b7a7a(0x123));break;}}}async[_0x5c8e6d(0x226)](_0xc0ea2c){const _0x3d4d7c=_0x5c8e6d;await this[_0x3d4d7c(0x194)](_0xc0ea2c),_0xc0ea2c['activeSheet$'][_0x3d4d7c(0x149)](g[_0x3d4d7c(0x150)](this[_0x3d4d7c(0x1d2)]))[_0x3d4d7c(0x237)](_0x553054=>{const _0x4afc17=_0x3d4d7c;_0x553054&&this[_0x4afc17(0x332)](_0x553054);}),this[_0x3d4d7c(0x9a)][_0x3d4d7c(0x411)][_0x3d4d7c(0x149)](g['takeUntil'](this[_0x3d4d7c(0x1d2)]))[_0x3d4d7c(0x237)](()=>this['_updateSubUnitFromURLParams'](_0xc0ea2c));}[_0x5c8e6d(0x332)](_0x175bde,_0x1446ed=!0x1){const _0x291b97=_0x5c8e6d,_0x54e7eb=this[_0x291b97(0x9a)]['getParam'](_0x291b97(0x25a));_0x175bde['getSheetId']()!==_0x54e7eb&&this[_0x291b97(0x9a)][_0x291b97(0x1d4)](_0x291b97(0x25a),_0x175bde[_0x291b97(0x2f0)](),_0x1446ed);}async['_updateSubUnitFromURLParams'](_0xe0b88a){const _0x4362f5=_0x5c8e6d,_0x48077f=this[_0x4362f5(0x9a)][_0x4362f5(0x3cc)]('subunit');if(!_0x48077f||!_0xe0b88a[_0x4362f5(0x21c)](_0x48077f)){this[_0x4362f5(0x332)](_0xe0b88a[_0x4362f5(0x344)](),!0x0);return;}_0xe0b88a[_0x4362f5(0x344)]()['getSheetId']()!==_0x48077f&&await this['_commandService'][_0x4362f5(0x33d)](E[_0x4362f5(0x297)]['id'],{'unitId':_0xe0b88a['getUnitId'](),'subUnitId':_0x48077f});}async['_loadSheet'](_0xcd2427){const _0x3d0300=_0x5c8e6d;let _0x176f24=0x0;const _0x9e4cd4=await this[_0x3d0300(0x11c)][_0x3d0300(0x3d8)](_0xcd2427);return _0x9e4cd4&&(_0x9e4cd4['awaitingChangeset']||_0x9e4cd4[_0x3d0300(0xdc)]['length']!==0x0)&&(_0x176f24=_0x9e4cd4[_0x3d0300(0x16d)]),_0x176f24===0x0&&this[_0x3d0300(0x2e1)]['debug'](_0x3d0300(0x1e3),_0x3d0300(0x28e)),this[_0x3d0300(0x14d)][_0x3d0300(0x164)](_0xcd2427,_0x176f24);}async[_0x5c8e6d(0x386)](_0xb0b4d4){const _0x3db5f6=_0x5c8e6d;let _0x3cef05=0x0;const _0x46aed9=await this['_localCacheService']['loadOfflineData'](_0xb0b4d4);return _0x46aed9&&(_0x46aed9[_0x3db5f6(0x327)]||_0x46aed9[_0x3db5f6(0xdc)][_0x3db5f6(0x7a)]!==0x0)&&(_0x3cef05=_0x46aed9['rev']),_0x3cef05===0x0&&this[_0x3db5f6(0x2e1)][_0x3db5f6(0x383)](_0x3db5f6(0x1e3),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x3db5f6(0x14d)][_0x3db5f6(0x245)](_0xb0b4d4,_0x3cef05);}},exports[_0x5c8e6d(0x417)]=vi([a[_0x5c8e6d(0x3e9)](a['LifecycleStages'][_0x5c8e6d(0x2d3)],exports['DataLoaderController']),J(0x0,Ge),J(0x1,a[_0x5c8e6d(0x14f)]),J(0x2,a[_0x5c8e6d(0x1ec)]),J(0x3,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x342)])),J(0x4,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0x173)])),J(0x5,h['Optional'](xt[_0x5c8e6d(0x12a)]))],exports[_0x5c8e6d(0x417)]);var gi=Object['defineProperty'],fi=Object[_0x5c8e6d(0x373)],mi=(_0x3bd7ba,_0x1f3ae1,_0x56ef2b,_0x578755)=>{const _0x1db989=_0x5c8e6d;for(var _0x4009e1=_0x578755>0x1?void 0x0:_0x578755?fi(_0x1f3ae1,_0x56ef2b):_0x1f3ae1,_0x351d29=_0x3bd7ba[_0x1db989(0x7a)]-0x1,_0x50dfe9;_0x351d29>=0x0;_0x351d29--)(_0x50dfe9=_0x3bd7ba[_0x351d29])&&(_0x4009e1=(_0x578755?_0x50dfe9(_0x1f3ae1,_0x56ef2b,_0x4009e1):_0x50dfe9(_0x4009e1))||_0x4009e1);return _0x578755&&_0x4009e1&&gi(_0x1f3ae1,_0x56ef2b,_0x4009e1),_0x4009e1;},st=(_0x54e137,_0xffc0b2)=>(_0x23d74c,_0x10c0db)=>_0xffc0b2(_0x23d74c,_0x10c0db,_0x54e137);const Ii=_0x5c8e6d(0x284),pi=_0x5c8e6d(0x18e);let de=class extends a[_0x5c8e6d(0x40b)]{constructor(_0x14cc5c,_0x5a78af){const _0x51351f=_0x5c8e6d;super(),this[_0x51351f(0x1ee)]=_0x14cc5c,this['_configService']=_0x5a78af,this['_init']();}[_0x5c8e6d(0x8a)](){const _0x3ec495=_0x5c8e6d;this['disposeWithMe'](a['toDisposable'](this['_univerInstanceService']['focused$'][_0x3ec495(0x237)](()=>{const _0x571ee1=_0x3ec495;var _0x4603d9;const _0x3e283a=this[_0x571ee1(0x1ee)][_0x571ee1(0x3bd)]();let _0x5e8917=(_0x4603d9=this[_0x571ee1(0x3f7)]['getConfig'](Ii))!=null?_0x4603d9:pi;_0x3e283a instanceof a[_0x571ee1(0x251)]&&(_0x5e8917=_0x3e283a[_0x571ee1(0x33a)]),document['title']=_0x5e8917;})));}};de=mi([a[_0x5c8e6d(0x3e9)](a[_0x5c8e6d(0x87)]['Ready'],de),st(0x0,a[_0x5c8e6d(0x3b1)]),st(0x1,a[_0x5c8e6d(0x3fd)])],de);var Ei=Object[_0x5c8e6d(0x3a5)],Ci=Object[_0x5c8e6d(0x373)],bi=(_0x43664e,_0x5695bc,_0x5d3804,_0x10a11f)=>{for(var _0x1a4911=_0x10a11f>0x1?void 0x0:_0x10a11f?Ci(_0x5695bc,_0x5d3804):_0x5695bc,_0x5eb806=_0x43664e['length']-0x1,_0x2bc32c;_0x5eb806>=0x0;_0x5eb806--)(_0x2bc32c=_0x43664e[_0x5eb806])&&(_0x1a4911=(_0x10a11f?_0x2bc32c(_0x5695bc,_0x5d3804,_0x1a4911):_0x2bc32c(_0x1a4911))||_0x1a4911);return _0x10a11f&&_0x1a4911&&Ei(_0x5695bc,_0x5d3804,_0x1a4911),_0x1a4911;},it=(_0x402eb8,_0x1a4a5d)=>(_0x50cf3f,_0x37120e)=>_0x1a4a5d(_0x50cf3f,_0x37120e,_0x402eb8);let Ae=class{constructor(_0x549f2b,_0x10beb5){const _0x3cdd8c=_0x5c8e6d;this[_0x3cdd8c(0x3f7)]=_0x549f2b,this['_httpService']=_0x10beb5;}async[_0x5c8e6d(0x3ce)](_0x538910,_0x557eab){const _0xd419b5=_0x5c8e6d;var _0x4bebee;const {unitID:_0x2a341e,type:_0x5eb5fb,revision:_0x26fe35=0x0}=_0x557eab,_0x282fb3=this[_0xd419b5(0x172)]()+'/'+_0x5eb5fb+'/unit/'+_0x2a341e+_0xd419b5(0x239)+(_0x26fe35===0x1?0x0:_0x26fe35),_0x103009=(await this[_0xd419b5(0x15c)]['get'](_0x282fb3))[_0xd419b5(0x339)],_0x178e96=(_0x4bebee=_0x103009[_0xd419b5(0x202)])==null?void 0x0:_0x4bebee[_0xd419b5(0x18d)];if(_0x178e96){const _0x1ac577=_0x178e96==null?void 0x0:_0x178e96[_0xd419b5(0x1e6)],_0x3ab50f=a[_0xd419b5(0xde)][_0xd419b5(0x1db)](a['b64DecodeUnicode'](_0x1ac577));_0x178e96[_0xd419b5(0x1e6)]=_0x3ab50f,Object[_0xd419b5(0x139)](_0x178e96[_0xd419b5(0x167)])[_0xd419b5(0x382)](([,_0x188a2f])=>{const _0x554273=_0xd419b5,_0x186e00=_0x188a2f[_0x554273(0x1e6)],_0x2023cc=a['textEncoder'][_0x554273(0x1db)](a[_0x554273(0x2ca)](_0x186e00));_0x188a2f[_0x554273(0x1e6)]=_0x2023cc;});}return _0x103009;}async[_0x5c8e6d(0x2ef)](_0x26970b,_0x705ef){const _0x18a4b4=_0x5c8e6d,{unitID:_0x11597c,type:_0x219aa7,blockID:_0x3f2994}=_0x705ef,_0x1e9bd3=this['_getAPIPrefix']()+'/'+_0x219aa7+'/unit/'+_0x11597c+_0x18a4b4(0x2e0)+_0x3f2994;return(await this['_httpService']['get'](_0x1e9bd3))[_0x18a4b4(0x339)];}async[_0x5c8e6d(0x22b)](_0x3d2766,_0x4f605b){const _0x286c26=_0x5c8e6d,{unitID:_0x1a284d,type:_0x2ae41a,from:_0x557bee,to:_0x3e4621}=_0x4f605b,_0x5ea56f=this['_getAPIPrefix']()+'/'+_0x2ae41a+'/unit/'+_0x1a284d+_0x286c26(0x13f)+_0x557bee+'&to='+_0x3e4621;return(await this[_0x286c26(0x15c)][_0x286c26(0xc0)](_0x5ea56f))[_0x286c26(0x339)];}[_0x5c8e6d(0x172)](){const _0x5dda7c=_0x5c8e6d;var _0x33202c;return(_0x33202c=this['_configService'][_0x5dda7c(0xab)](lt))!=null?_0x33202c:this[_0x5dda7c(0xdf)]();}[_0x5c8e6d(0xdf)](){const _0x442fe1=_0x5c8e6d;var _0x4dfac1;return(_0x4dfac1=this[_0x442fe1(0x3f7)][_0x442fe1(0xab)](ct))!=null?_0x4dfac1:kt;}async[_0x5c8e6d(0x163)](_0x520f32,_0x13c0a1){const _0xad50ab=_0x5c8e6d,_0xd31121=_0xad50ab(0x1b4)+_0x13c0a1[_0xad50ab(0x27e)]+'/unit/'+_0x13c0a1['unitID']+_0xad50ab(0x2b5);return(await this[_0xad50ab(0x15c)][_0xad50ab(0xc0)](_0xd31121,{'params':{'resourceId':JSON[_0xad50ab(0x381)](_0x13c0a1[_0xad50ab(0x3b5)])}}))[_0xad50ab(0x339)];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x5c8e6d(0xd8)](){const _0x1a3fde=_0x5c8e6d;throw new Error(_0x1a3fde(0x89));}[_0x5c8e6d(0xc5)](){const _0x462bb0=_0x5c8e6d;throw new Error(_0x462bb0(0x89));}};Ae=bi([it(0x0,a[_0x5c8e6d(0x3fd)]),it(0x1,h[_0x5c8e6d(0x189)](P[_0x5c8e6d(0x155)]))],Ae);var Ti=Object[_0x5c8e6d(0x3a5)],Ri=Object[_0x5c8e6d(0x373)],Oi=(_0x213b1e,_0x3f5f9d,_0x34d8fe,_0x33d193)=>{const _0x56e518=_0x5c8e6d;for(var _0x26a42f=_0x33d193>0x1?void 0x0:_0x33d193?Ri(_0x3f5f9d,_0x34d8fe):_0x3f5f9d,_0x3e145c=_0x213b1e[_0x56e518(0x7a)]-0x1,_0x467362;_0x3e145c>=0x0;_0x3e145c--)(_0x467362=_0x213b1e[_0x3e145c])&&(_0x26a42f=(_0x33d193?_0x467362(_0x3f5f9d,_0x34d8fe,_0x26a42f):_0x467362(_0x26a42f))||_0x26a42f);return _0x33d193&&_0x26a42f&&Ti(_0x3f5f9d,_0x34d8fe,_0x26a42f),_0x26a42f;},ne=(_0x21ffbd,_0x3c68a5)=>(_0x1d2685,_0x1f606f)=>_0x3c68a5(_0x1d2685,_0x1f606f,_0x21ffbd);let je=class extends a[_0x5c8e6d(0x187)]{constructor(_0x12fafa,_0x23000a,_0x4cfdfc,_0x3012e9,_0x421579){const _0x60b131=_0x5c8e6d;super(_0x12fafa,_0x23000a,_0x4cfdfc),this[_0x60b131(0xdb)]=_0x3012e9,this['_logService']=_0x421579;}[_0x5c8e6d(0x22f)](_0x9b8b51,_0x15e3d1){const _0x5ee4ac=_0x5c8e6d,_0x48acc9=this['_getUndoStack'](_0x9b8b51);if(_0x48acc9)try{const _0x488de4=this['_transformStack'](_0x48acc9,_0x15e3d1);this[_0x5ee4ac(0xcd)](_0x9b8b51,_0x488de4);}catch(_0x4c2a3b){this['_logService'][_0x5ee4ac(0x2bf)](_0x5ee4ac(0x378),_0x4c2a3b),this[_0x5ee4ac(0x26f)](_0x9b8b51);}const _0x2fa464=this[_0x5ee4ac(0x17e)](_0x9b8b51);if(_0x2fa464)try{const _0x2850e0=this[_0x5ee4ac(0x24c)](_0x2fa464,_0x15e3d1);this[_0x5ee4ac(0xa9)](_0x9b8b51,_0x2850e0);}catch(_0x15e2be){this['_logService'][_0x5ee4ac(0x2bf)](_0x15e2be),this[_0x5ee4ac(0x2e6)](_0x9b8b51);}}[_0x5c8e6d(0x26f)](_0x2cde38){const _0x2c78d3=_0x5c8e6d,_0x4b17d4=this[_0x2c78d3(0x2f6)](_0x2cde38);_0x4b17d4&&(_0x4b17d4[_0x2c78d3(0x7a)]=0x0,this[_0x2c78d3(0x31a)]());}[_0x5c8e6d(0x2e6)](_0x521bcf){const _0x2e396b=_0x5c8e6d,_0x4cec93=this[_0x2e396b(0x17e)](_0x521bcf);_0x4cec93&&(_0x4cec93['length']=0x0,this[_0x2e396b(0x31a)]());}[_0x5c8e6d(0xcd)](_0x263e0f,_0x53e1f7){const _0x3ab7ff=_0x5c8e6d;this['_undoStacks'][_0x3ab7ff(0x395)](_0x263e0f,_0x53e1f7),this[_0x3ab7ff(0x31a)]();}['_substituteRedoStack'](_0x314aa0,_0x34e20f){const _0x26fc27=_0x5c8e6d;this['_redoStacks'][_0x26fc27(0x395)](_0x314aa0,_0x34e20f),this[_0x26fc27(0x31a)]();}[_0x5c8e6d(0x24c)](_0x1196d0,_0x2fe99d){const _0x10258f=_0x5c8e6d,_0x5d36fa=[];let _0x4a005f=_0x2fe99d,_0x54a440=_0x2fe99d;for(let _0x103cd7=_0x1196d0[_0x10258f(0x7a)]-0x1;_0x103cd7>=0x0;_0x103cd7--){const {unitID:_0x30e585,undoMutations:_0x28aa7f,redoMutations:_0x43287d}=_0x1196d0[_0x103cd7],_0x287de8=this[_0x10258f(0xdb)]['transformMutationsWithChangeset'](_0x4a005f,_0x28aa7f),_0x58f107=this[_0x10258f(0xdb)][_0x10258f(0x3fb)](_0x54a440,_0x43287d);if(u['isTransformMutationsWithChangesetFailure'](_0x287de8)||u[_0x10258f(0x1d7)](_0x58f107)){this[_0x10258f(0x2e1)][_0x10258f(0x2bf)]('[CollaborationUndoRedoService]',_0x10258f(0x418),_0x287de8,_0x58f107);break;}_0x4a005f=_0x287de8[_0x10258f(0x1e2)],_0x54a440=_0x58f107[_0x10258f(0x1e2)],_0x5d36fa['push']({'unitID':_0x30e585,'undoMutations':_0x287de8[_0x10258f(0x2b1)],'redoMutations':_0x58f107['m2Prime']});}return _0x5d36fa[_0x10258f(0x3bf)]();}};je=Oi([ne(0x0,a[_0x5c8e6d(0x3b1)]),ne(0x1,a[_0x5c8e6d(0x1ec)]),ne(0x2,a[_0x5c8e6d(0x20b)]),ne(0x3,u[_0x5c8e6d(0x35b)]),ne(0x4,a[_0x5c8e6d(0x14f)])],je);class wt extends a[_0x5c8e6d(0x198)]{constructor(){const _0x4affdd=_0x5c8e6d;super(),d(this,'urlChange$'),this[_0x4affdd(0x411)]=g['fromEvent'](window,'popstate')[_0x4affdd(0x149)](g[_0x4affdd(0x150)](this['dispose$']),g[_0x4affdd(0x2c0)](0x1),g[_0x4affdd(0x1eb)](void 0x0));}['setParam'](_0xded84a,_0x18e288,_0x13435c=!0x1){const _0x360e88=_0x5c8e6d,_0x4467af=new URL(window['location']['href']);_0x4467af[_0x360e88(0x9e)][_0x360e88(0x395)](_0xded84a,_0x18e288),_0x13435c?window[_0x360e88(0x2f2)]['replaceState']('','',_0x4467af[_0x360e88(0xbc)]()):window[_0x360e88(0x2f2)][_0x360e88(0x37e)]('','',_0x4467af[_0x360e88(0xbc)]());}['removeParam'](_0x476678,_0x12bb25=!0x1){const _0x36aca3=_0x5c8e6d,_0x90f13e=new URL(window['location'][_0x36aca3(0x39b)]);_0x90f13e[_0x36aca3(0x9e)][_0x36aca3(0x235)](_0x476678),_0x12bb25?window['history'][_0x36aca3(0x2cf)]('','',_0x90f13e[_0x36aca3(0xbc)]()):window['history']['pushState']('','',_0x90f13e[_0x36aca3(0xbc)]());}[_0x5c8e6d(0x3cc)](_0x364097){const _0x84e813=_0x5c8e6d;var _0x4af565;return(_0x4af565=new URL(window['location']['href'])[_0x84e813(0x9e)][_0x84e813(0xc0)](_0x364097))!=null?_0x4af565:void 0x0;}}const we=_0x5c8e6d(0xdd),Di=_0x5c8e6d(0x3b4),_e=0x6,wi=1.5,Le=0x4,Li=1.5,Pi=_0x5c8e6d(0x2fd);class Ui{constructor(_0x4454ca,_0x50c3f5,_0x20db6f,_0x282e6f){const _0x58707f=_0x5c8e6d;d(this,'_shapes',[]),d(this,'_anchor',null),d(this,'_textBubble',null),d(this,_0x58707f(0x403),null),d(this,_0x58707f(0x1b3),null),d(this,_0x58707f(0x271),null),(this[_0x58707f(0x3c3)]=_0x4454ca,this[_0x58707f(0x385)]=_0x50c3f5,this[_0x58707f(0x428)]=_0x20db6f,this[_0x58707f(0xb2)]=_0x282e6f,this[_0x58707f(0x312)]());}set[_0x5c8e6d(0x79)](_0x30238b){const _0x575e23=_0x5c8e6d;_0x30238b?(this[_0x575e23(0x403)]&&this[_0x575e23(0x403)][_0x575e23(0x2a8)](),this['_textBubble']&&this['_textBubble'][_0x575e23(0x302)]()):(this[_0x575e23(0x403)]&&this[_0x575e23(0x403)][_0x575e23(0x302)](),this[_0x575e23(0x261)]&&this['_textBubble'][_0x575e23(0x2a8)]());}['dispose'](){const _0x2f1a41=_0x5c8e6d;for(const _0x30b05f of this['_shapes'])_0x30b05f['dispose']();this['_textBubble']&&this[_0x2f1a41(0x261)][_0x2f1a41(0x364)](),this[_0x2f1a41(0x403)]&&this[_0x2f1a41(0x403)][_0x2f1a41(0x364)](),this[_0x2f1a41(0x326)]&&this[_0x2f1a41(0x326)]['dispose'](),this[_0x2f1a41(0x271)]&&this[_0x2f1a41(0x271)]();}[_0x5c8e6d(0x312)](){const _0x447bad=_0x5c8e6d,{_docSkeleton:_0x373638,_document:_0x2cd8a3}=this,{color:_0x3ded57,name:_0x221ec4,ranges:_0x410d48}=this[_0x447bad(0x3c3)],_0x45415d=_0x2cd8a3[_0x447bad(0xb4)](),{docsLeft:_0x2b6ad7,docsTop:_0xcac270}=_0x45415d,_0x583f51=new R['NodePositionConvertToCursor'](_0x45415d,_0x373638);for(const {startOffset:_0x570822,endOffset:_0x198a54,collapsed:_0x152b2d,isActive:_0x6ba107}of _0x410d48){const _0x5dc506=_0x373638[_0x447bad(0x38a)](_0x570822),_0x576992=_0x373638[_0x447bad(0x38a)](_0x198a54);if(_0x6ba107){const {contentBoxPointGroup:_0x5a75ab}=_0x583f51['getRangePointData'](_0x576992,_0x576992);if(_0x5a75ab['length']===0x0)continue;this[_0x447bad(0x391)](_0x3ded57,_0x5a75ab,_0x2b6ad7,_0xcac270,_0x221ec4),this[_0x447bad(0x271)]=this[_0x447bad(0x160)]();}if(!_0x152b2d){const {contentBoxPointGroup:_0x3fdd0b}=_0x583f51[_0x447bad(0x22c)](_0x5dc506,_0x576992);if(_0x3fdd0b['length']===0x0)continue;this[_0x447bad(0x392)](_0x3ded57,_0x3fdd0b,_0x2b6ad7,_0xcac270);}}}[_0x5c8e6d(0x391)](_0x541232,_0x4abdc2,_0x46f381,_0x953f00,_0x161479){const _0x412df4=_0x5c8e6d,_0x845cc3=this[_0x412df4(0x1fe)](_0x4abdc2),{left:_0x47126c,top:_0x2cb581,height:_0x2e9ecc}=_0x845cc3,_0x10af96=this[_0x412df4(0x75)](),_0x40ae82=Li/_0x10af96,_0x455e14=new R[(_0x412df4(0xc8))](we+a[_0x412df4(0x268)]['generateRandomId'](_e),{'left':_0x47126c+_0x46f381-_0x40ae82,'top':_0x2cb581+_0x953f00,'height':_0x2e9ecc,'width':wi,'fill':_0x541232||R[_0x412df4(0x28d)](a[_0x412df4(0x214)]['black'],0x0),'strokeWidth':_0x40ae82,'stroke':Pi,'evented':!0x0});this[_0x412df4(0x326)]=_0x455e14,this[_0x412df4(0x385)]['addObject'](_0x455e14,R[_0x412df4(0x86)]);const _0x594d60=new R['Rect'](we+a['Tools'][_0x412df4(0x1b1)](_e),{'left':_0x47126c+_0x46f381-_0x40ae82,'top':_0x2cb581+_0x953f00-Le/0x2,'height':Le,'width':Le,'fill':_0x541232||R['getColor'](a[_0x412df4(0x214)][_0x412df4(0x33c)],0x0),'strokeWidth':0x0,'stroke':_0x541232||R[_0x412df4(0x28d)](a['COLORS']['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x594d60,this[_0x412df4(0x385)][_0x412df4(0x404)](_0x594d60,R['TEXT_RANGE_LAYER_INDEX']);const _0x581364=new Ce(we+a[_0x412df4(0x268)][_0x412df4(0x1b1)](_e),{'left':_0x47126c+_0x46f381-_0x40ae82,'top':_0x2cb581+_0x953f00-ce,'text':_0x161479,'color':_0x541232});this['_textBubble']=_0x581364,this[_0x412df4(0x385)][_0x412df4(0x404)](_0x581364,R[_0x412df4(0x86)]),this[_0x412df4(0x79)]=!0x1;}['_handleHover'](){const _0x1e8dfe=_0x5c8e6d,_0xe4c49a=this[_0x1e8dfe(0x326)][_0x1e8dfe(0x2e8)][_0x1e8dfe(0x303)](()=>{const _0x286ac5=_0x1e8dfe;this[_0x286ac5(0x79)]=!0x0;}),_0x4e971c=this[_0x1e8dfe(0x326)][_0x1e8dfe(0x3f9)][_0x1e8dfe(0x303)](()=>{const _0x2c13b0=_0x1e8dfe;this[_0x2c13b0(0x1b3)]&&clearTimeout(this[_0x2c13b0(0x1b3)]),this[_0x2c13b0(0x1b3)]=setTimeout(()=>{const _0x3f25e4=_0x2c13b0;this[_0x3f25e4(0x79)]=!0x1;},0x7d0);});return()=>{const _0x2224ce=_0x1e8dfe;var _0x1cc674,_0x1dfd49;(_0x1cc674=this['_anchor'])==null||_0x1cc674[_0x2224ce(0x2e8)][_0x2224ce(0x195)](_0xe4c49a),(_0x1dfd49=this[_0x2224ce(0x326)])==null||_0x1dfd49[_0x2224ce(0x3f9)]['remove'](_0x4e971c);};}[_0x5c8e6d(0x392)](_0x31df61,_0x498587,_0x5c4e29,_0x20fbb5){const _0x2ab977=_0x5c8e6d,_0x550683=new a['ColorKit'](_0x31df61)[_0x2ab977(0x31b)](0.2)[_0x2ab977(0x175)](),_0xf0c8ce=new R[(_0x2ab977(0x40a))](Di+a[_0x2ab977(0x268)][_0x2ab977(0x1b1)](_e),{'pointsGroup':_0x498587,'fill':_0x550683||R[_0x2ab977(0x28d)](a['COLORS'][_0x2ab977(0x33c)],0.2),'left':_0x5c4e29,'top':_0x20fbb5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2ab977(0x36c)][_0x2ab977(0x105)](_0xf0c8ce),this[_0x2ab977(0x385)][_0x2ab977(0x404)](_0xf0c8ce,R[_0x2ab977(0x86)]);}[_0x5c8e6d(0x1fe)](_0x2cddab){const _0x1c788e=_0x2cddab[0x0],_0x4cca72=_0x1c788e[0x0],_0x3309af=_0x1c788e[0x2],{x:_0x5ab680,y:_0x1c690f}=_0x4cca72,{x:_0x3ba419,y:_0x2782d9}=_0x3309af;return{'left':_0x5ab680,'top':_0x1c690f,'width':_0x3ba419-_0x5ab680,'height':_0x2782d9-_0x1c690f};}['_getScale'](){const _0x2914ff=_0x5c8e6d,{scaleX:_0x1315ad,scaleY:_0x2b6cd6}=this[_0x2914ff(0x385)][_0x2914ff(0x2dc)]();return Math[_0x2914ff(0x259)](_0x1315ad,_0x2b6cd6);}}var yi=Object[_0x5c8e6d(0x3a5)],Mi=Object['getOwnPropertyDescriptor'],Ni=(_0x1c01ee,_0x3396f9,_0x51c983,_0xeff6c0)=>{const _0x373fb8=_0x5c8e6d;for(var _0x511705=_0xeff6c0>0x1?void 0x0:_0xeff6c0?Mi(_0x3396f9,_0x51c983):_0x3396f9,_0x46dde9=_0x1c01ee[_0x373fb8(0x7a)]-0x1,_0x389e12;_0x46dde9>=0x0;_0x46dde9--)(_0x389e12=_0x1c01ee[_0x46dde9])&&(_0x511705=(_0xeff6c0?_0x389e12(_0x3396f9,_0x51c983,_0x511705):_0x389e12(_0x511705))||_0x511705);return _0xeff6c0&&_0x511705&&yi(_0x3396f9,_0x51c983,_0x511705),_0x511705;},re=(_0x43ca2b,_0x59b113)=>(_0x47564d,_0x2f24ce)=>_0x59b113(_0x47564d,_0x2f24ce,_0x43ca2b);let Se=class extends a[_0x5c8e6d(0x198)]{constructor(_0x532dfd,_0x326063,_0x4a0c13,_0x50e3ca,_0x103e95){const _0x8dfc5=_0x5c8e6d;super(),d(this,_0x8dfc5(0x287),[]),(this[_0x8dfc5(0x10a)]=_0x532dfd,this[_0x8dfc5(0x1ee)]=_0x326063,this['_renderManagerService']=_0x4a0c13,this[_0x8dfc5(0x100)]=_0x50e3ca,this[_0x8dfc5(0x177)]=_0x103e95,this[_0x8dfc5(0x8a)]());}[_0x5c8e6d(0x8a)](){const _0x1a84e0=_0x5c8e6d;this[_0x1a84e0(0x100)]['currentSkeleton$'][_0x1a84e0(0x149)](T[_0x1a84e0(0x150)](this[_0x1a84e0(0x1d2)]),T[_0x1a84e0(0x26d)](_0x3b523f=>{const _0x6b0464=_0x1a84e0;if(_0x3b523f){const {unitId:_0x552d09}=_0x3b523f;return g[_0x6b0464(0x110)](this[_0x6b0464(0x10a)][_0x6b0464(0x32f)](_0x552d09),this[_0x6b0464(0x177)][_0x6b0464(0x338)])[_0x6b0464(0x149)](T['map'](([_0x27c911,_0x5859fd])=>({'skeleton':_0x3b523f,'cursors':[..._0x27c911['values']()][_0x6b0464(0x32c)](_0x3e84e5=>({..._0x3e84e5,'color':_0x5859fd[_0x3e84e5[_0x6b0464(0x7b)]]}))})));}return g['of']({'skeleton':null,'cursors':[]});}))[_0x1a84e0(0x237)](({skeleton:_0x1d73f8,cursors:_0x55283e})=>{const _0x59627c=_0x1a84e0;this[_0x59627c(0xe7)](),_0x1d73f8&&this[_0x59627c(0x33b)](_0x1d73f8[_0x59627c(0x313)],_0x55283e);});}[_0x5c8e6d(0x33b)](_0x18746e,_0x20b9aa){const _0x24393e=_0x5c8e6d,_0xb07ed=this[_0x24393e(0x85)]();if(_0xb07ed==null)return;const {scene:_0x2e8516,document:_0x1bc813}=_0xb07ed,_0x1f59fa=_0x20b9aa[_0x24393e(0xe8)](_0x12d8ef=>new Ui(_0x12d8ef,_0x2e8516,_0x18746e,_0x1bc813));this['_cursors']=_0x1f59fa;}[_0x5c8e6d(0xe7)](){const _0xf8d8a9=_0x5c8e6d;this[_0xf8d8a9(0x287)][_0xf8d8a9(0x382)](_0x186766=>_0x186766[_0xf8d8a9(0x364)]()),this[_0xf8d8a9(0x287)]=[];}['_getDocObject'](){const _0x45adc0=_0x5c8e6d;return M[_0x45adc0(0x1af)](this[_0x45adc0(0x1ee)],this[_0x45adc0(0x36e)]);}};Se=Ni([a[_0x5c8e6d(0x3e9)](a['LifecycleStages'][_0x5c8e6d(0x2ee)],Se),re(0x0,h[_0x5c8e6d(0x189)](z)),re(0x1,a[_0x5c8e6d(0x3b1)]),re(0x2,R[_0x5c8e6d(0x380)]),re(0x3,h[_0x5c8e6d(0x189)](M[_0x5c8e6d(0x1d3)])),re(0x4,h[_0x5c8e6d(0x189)](a[_0x5c8e6d(0x3a1)]))],Se);var Ai=Object[_0x5c8e6d(0x3a5)],ji=Object[_0x5c8e6d(0x373)],$i=(_0x425ce2,_0x5deec3,_0x33ed8f,_0x34408a)=>{const _0x23d453=_0x5c8e6d;for(var _0x4e0c0e=_0x34408a>0x1?void 0x0:_0x34408a?ji(_0x5deec3,_0x33ed8f):_0x5deec3,_0x4938bc=_0x425ce2[_0x23d453(0x7a)]-0x1,_0x137a71;_0x4938bc>=0x0;_0x4938bc--)(_0x137a71=_0x425ce2[_0x4938bc])&&(_0x4e0c0e=(_0x34408a?_0x137a71(_0x5deec3,_0x33ed8f,_0x4e0c0e):_0x137a71(_0x4e0c0e))||_0x4e0c0e);return _0x34408a&&_0x4e0c0e&&Ai(_0x5deec3,_0x33ed8f,_0x4e0c0e),_0x4e0c0e;},Pe=(_0x21e9e8,_0x5ac623)=>(_0x336d8c,_0x169818)=>_0x5ac623(_0x336d8c,_0x169818,_0x21e9e8);let Ie=class{constructor(_0x44c903,_0x233641,_0x28afc6){const _0xd6a2fb=_0x5c8e6d;this[_0xd6a2fb(0x3f7)]=_0x44c903,this[_0xd6a2fb(0x15c)]=_0x233641,this[_0xd6a2fb(0x37a)]=_0x28afc6,this[_0xd6a2fb(0x15e)]();}['init'](){const _0x49ec33=_0x5c8e6d;this[_0x49ec33(0x15c)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x505b2e,_0x486690)=>_0x486690(_0x505b2e)[_0x49ec33(0x149)](g['concatMap'](async _0x22de3f=>{const _0x2c14d8=_0x49ec33,_0x5b229e=_0x22de3f;if(_0x5b229e[_0x2c14d8(0x174)]===0x191&&window[_0x2c14d8(0xea)](this['localeService']['t'](_0x2c14d8(0xa8)))){const _0x96c189=window[_0x2c14d8(0x377)](window['location'][_0x2c14d8(0x39b)]);window['location'][_0x2c14d8(0x39b)]=this['_getLoginPath']()+_0x2c14d8(0x23c)+_0x96c189;}return _0x5b229e;}))});}[_0x5c8e6d(0x166)](){var _0x192444;return(_0x192444=this['_configService']['getConfig'](gt))!=null?_0x192444:Jt;}};Ie=$i([Pe(0x0,a[_0x5c8e6d(0x3fd)]),Pe(0x1,h[_0x5c8e6d(0x189)](P['HTTPService'])),Pe(0x2,h[_0x5c8e6d(0x189)](a[_0x5c8e6d(0x405)]))],Ie);var Hi=Object[_0x5c8e6d(0x3a5)],xi=Object['getOwnPropertyDescriptor'],ki=(_0x559fff,_0x525f17,_0x502094,_0x38c332)=>{const _0x579701=_0x5c8e6d;for(var _0x3684d2=_0x38c332>0x1?void 0x0:_0x38c332?xi(_0x525f17,_0x502094):_0x525f17,_0x312810=_0x559fff[_0x579701(0x7a)]-0x1,_0x1c71d4;_0x312810>=0x0;_0x312810--)(_0x1c71d4=_0x559fff[_0x312810])&&(_0x3684d2=(_0x38c332?_0x1c71d4(_0x525f17,_0x502094,_0x3684d2):_0x1c71d4(_0x3684d2))||_0x3684d2);return _0x38c332&&_0x3684d2&&Hi(_0x525f17,_0x502094,_0x3684d2),_0x3684d2;},nt=(_0xe66838,_0x2eca04)=>(_0x2fab7d,_0x115227)=>_0x2eca04(_0x2fab7d,_0x115227,_0xe66838);const Lt=_0x5c8e6d(0x1fd),Bi=_0x5c8e6d(0x1dc);function _0x2b59(_0x2dcee6,_0x5da407){const _0x23881c=_0x2388();return _0x2b59=function(_0x2b5978,_0x50d88c){_0x2b5978=_0x2b5978-0x69;let _0xe4db95=_0x23881c[_0x2b5978];return _0xe4db95;},_0x2b59(_0x2dcee6,_0x5da407);}exports[_0x5c8e6d(0x1c8)]=class{constructor(_0x262284,_0x175f1e){const _0x1d1038=_0x5c8e6d;this[_0x1d1038(0x379)]=_0x262284,this[_0x1d1038(0x3f7)]=_0x175f1e;}['_getAPIPrefixPath'](){const _0x40eaff=_0x5c8e6d;var _0x15dab7;return(_0x15dab7=this[_0x40eaff(0x3f7)][_0x40eaff(0xab)](Lt))!=null?_0x15dab7:Bi;}async[_0x5c8e6d(0x346)](_0x38ef02){const _0x21ae6e=_0x5c8e6d,_0x1fbe87=this[_0x21ae6e(0x136)]()+'/'+_0x38ef02[_0x21ae6e(0xd2)]+_0x21ae6e(0x370);return(await this['_HTTPService'][_0x21ae6e(0x1f4)](_0x1fbe87,{'body':_0x38ef02}))[_0x21ae6e(0x339)][_0x21ae6e(0x1ae)]||'';}async['list'](_0x28e671){const _0x2e2cb1=_0x5c8e6d,_0x4c7d0e=this[_0x2e2cb1(0x136)]()+_0x2e2cb1(0x208);return(await this[_0x2e2cb1(0x379)][_0x2e2cb1(0x1f4)](_0x4c7d0e,{'body':_0x28e671}))['body'][_0x2e2cb1(0x290)];}async['update'](_0x6f8196){const _0x228846=_0x5c8e6d,_0x4d9349=this[_0x228846(0x136)]()+'/'+_0x6f8196['objectType']+_0x228846(0x278)+_0x6f8196[_0x228846(0x1ae)];await this[_0x228846(0x379)][_0x228846(0x2eb)](_0x4d9349,{'body':_0x6f8196});}async[_0x5c8e6d(0x289)](_0x307d3f){const _0x5c963a=_0x5c8e6d,_0x3971f9=this[_0x5c963a(0x136)]()+'/'+_0x307d3f[_0x5c963a(0xd2)]+_0x5c963a(0x278)+_0x307d3f[_0x5c963a(0x1ae)]+_0x5c963a(0x329);return(await this[_0x5c963a(0x379)][_0x5c963a(0x1f4)](_0x3971f9,{'body':_0x307d3f}))[_0x5c963a(0x339)][_0x5c963a(0x22e)];}async[_0x5c8e6d(0x3b8)](_0x13b75d){const _0x5e7bfb=_0x5c8e6d,_0x37f806=this[_0x5e7bfb(0x136)]()+_0x5e7bfb(0x2cc);return(await this[_0x5e7bfb(0x379)]['post'](_0x37f806,{'body':{'requests':_0x13b75d}}))['body'][_0x5e7bfb(0x217)];}async[_0x5c8e6d(0x1b8)](_0x279bb6){const _0x405e81=_0x5c8e6d,_0x3ec2f4=this[_0x405e81(0x136)]()+'/'+_0x279bb6[_0x405e81(0xd2)]+_0x405e81(0x81),_0x26643a=await this[_0x405e81(0x379)][_0x405e81(0x1f4)](_0x3ec2f4,{'body':_0x279bb6});return{'roles':_0x26643a['body']['roles'],'actions':_0x26643a[_0x405e81(0x339)][_0x405e81(0x22e)]};}async['deleteCollaborator'](_0x577e38){const _0xb1a442=_0x5c8e6d,_0x575bf0=this[_0xb1a442(0x136)]()+_0xb1a442(0x2b7);await this[_0xb1a442(0x379)][_0xb1a442(0x235)](_0x575bf0,{'params':{'collaboratorID':_0x577e38['collaboratorID'],'objectID':_0x577e38[_0xb1a442(0x1ae)],'unitID':_0x577e38[_0xb1a442(0x27a)]}});}async[_0x5c8e6d(0x2ec)](_0x3fc68d){const _0x49d031=_0x5c8e6d,_0x1d2716=this[_0x49d031(0x136)]()+'/collaborator';await this['_HTTPService']['patch'](_0x1d2716,{'body':_0x3fc68d});}async[_0x5c8e6d(0xca)](_0x1cf7cd){const _0x43e1e3=_0x5c8e6d,_0x47ddd0=this[_0x43e1e3(0x136)]()+_0x43e1e3(0x2b7);await this[_0x43e1e3(0x379)][_0x43e1e3(0x1f4)](_0x47ddd0,{'body':_0x1cf7cd});}async['listCollaborators'](_0x22e29d){const _0x1d0000=_0x5c8e6d,_0x16f474=this[_0x1d0000(0x136)]()+_0x1d0000(0x2b7);return(await this['_HTTPService']['get'](_0x16f474,{'params':{'objectID':_0x22e29d[_0x1d0000(0x1ae)],'unitID':_0x22e29d[_0x1d0000(0x27a)]}}))[_0x1d0000(0x339)][_0x1d0000(0x27c)];}async[_0x5c8e6d(0x422)](_0x14f0db){const _0x5b3140=_0x5c8e6d,_0x2d890c=this[_0x5b3140(0x136)]()+'/collaborator';await this[_0x5b3140(0x379)][_0x5b3140(0x2eb)](_0x2d890c,{'body':_0x14f0db});}},exports[_0x5c8e6d(0x1c8)]=ki([nt(0x0,h[_0x5c8e6d(0x189)](P[_0x5c8e6d(0x155)])),nt(0x1,h['Inject'](a[_0x5c8e6d(0x3fd)]))],exports['AuthzIoHttpService']);var Fi=Object['defineProperty'],Vi=Object[_0x5c8e6d(0x373)],Wi=(_0x1f81cb,_0x26d52e,_0x5e0c64,_0x19f665)=>{const _0x4e0eeb=_0x5c8e6d;for(var _0x232b77=_0x19f665>0x1?void 0x0:_0x19f665?Vi(_0x26d52e,_0x5e0c64):_0x26d52e,_0x46e9c6=_0x1f81cb[_0x4e0eeb(0x7a)]-0x1,_0x1b2014;_0x46e9c6>=0x0;_0x46e9c6--)(_0x1b2014=_0x1f81cb[_0x46e9c6])&&(_0x232b77=(_0x19f665?_0x1b2014(_0x26d52e,_0x5e0c64,_0x232b77):_0x1b2014(_0x232b77))||_0x232b77);return _0x19f665&&_0x232b77&&Fi(_0x26d52e,_0x5e0c64,_0x232b77),_0x232b77;},rt=(_0x29c4ea,_0x3cfe86)=>(_0x2c18d4,_0x56ed54)=>_0x3cfe86(_0x2c18d4,_0x56ed54,_0x29c4ea);const Gi=[_0x5c8e6d(0x3d1),_0x5c8e6d(0x367),_0x5c8e6d(0xee),_0x5c8e6d(0x426),_0x5c8e6d(0x401)],Yi=0x5*0x400*0x400,Ki='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',Xi=_0x5c8e6d(0x1c6),qi='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Ji=_0x5c8e6d(0x3d2);let $e=class{constructor(_0xcd3ed5,_0x391675){const _0x250c99=_0x5c8e6d;d(this,_0x250c99(0x2d0),0x0),d(this,_0x250c99(0x360),new g['Subject']()),d(this,'change$',this[_0x250c99(0x360)]),d(this,_0x250c99(0x6d),new Map()),(this[_0x250c99(0x15c)]=_0xcd3ed5,this['_configService']=_0x391675);}[_0x5c8e6d(0xfb)](_0x31a4a3){const _0x34035c=_0x5c8e6d;this[_0x34035c(0x2d0)]=_0x31a4a3,this[_0x34035c(0x360)][_0x34035c(0x211)](_0x31a4a3);}[_0x5c8e6d(0x258)](_0x31da1b,_0x4fd773){const _0x3d86dd=_0x5c8e6d;if(_0x4fd773===A[_0x3d86dd(0x40d)]['BASE64']){const _0x4f6028=new Image();return _0x4f6028[_0x3d86dd(0xe0)]=_0x31da1b,_0x4f6028;}return this[_0x3d86dd(0x6d)][_0x3d86dd(0xc0)](_0x31da1b);}[_0x5c8e6d(0x3fa)](_0x30249a,_0x2aba7a,_0x147ef8){const _0x10aa45=_0x5c8e6d;_0x2aba7a===A[_0x10aa45(0x40d)]['BASE64']||_0x147ef8==null||this[_0x10aa45(0x6d)][_0x10aa45(0x395)](_0x30249a,_0x147ef8);}async[_0x5c8e6d(0x318)](_0x501df8){const _0x18a230=_0x5c8e6d;try{const _0x215642=this[_0x18a230(0x91)](this[_0x18a230(0x1d5)](),''+_0x501df8),_0x348c79=(await this[_0x18a230(0x15c)][_0x18a230(0xc0)](_0x215642))[_0x18a230(0x339)];return _0x348c79[_0x18a230(0x2bf)]&&_0x348c79[_0x18a230(0x2bf)][_0x18a230(0x1ac)]===ft['OK']?Promise[_0x18a230(0x3f6)](_0x348c79[_0x18a230(0x39a)]):Promise[_0x18a230(0x32a)](_0x348c79[_0x18a230(0x2bf)]);}catch(_0x55b95e){return Promise['reject'](_0x55b95e);}}async['saveImage'](_0x3b5788){const _0x1aafc0=_0x5c8e6d;let _0x4dfa05='';if(!Gi[_0x1aafc0(0x27d)](_0x3b5788['type']))return this[_0x1aafc0(0x153)](),Promise[_0x1aafc0(0x32a)](new Error(A['ImageUploadStatusType'][_0x1aafc0(0x143)]));if(_0x3b5788['size']>Yi)return this['_decreaseWaiting'](),Promise['reject'](new Error(A[_0x1aafc0(0x11a)][_0x1aafc0(0xa6)]));try{const _0x354ef1=new FormData();_0x354ef1['append'](_0x1aafc0(0x213),_0x3b5788);const _0x138e60=this[_0x1aafc0(0x262)]()+_0x1aafc0(0x12e)+_0x3b5788[_0x1aafc0(0x112)][_0x1aafc0(0xbc)](),_0x5a4d6b=await(await fetch(_0x138e60,{'method':_0x1aafc0(0x1f2),'body':_0x354ef1}))[_0x1aafc0(0x3ac)]();if(typeof _0x5a4d6b[_0x1aafc0(0x141)]!=_0x1aafc0(0x16e))return this[_0x1aafc0(0x153)](),Promise['reject'](new Error(A[_0x1aafc0(0x11a)][_0x1aafc0(0x2a7)]));_0x4dfa05=_0x5a4d6b[_0x1aafc0(0x141)];}catch{return this[_0x1aafc0(0x153)](),Promise[_0x1aafc0(0x32a)](new Error(A['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0x40e681,_0x5274e1)=>{const _0x3a5968=_0x1aafc0,_0x2febfd=new FileReader();_0x2febfd['readAsDataURL'](_0x3b5788),_0x2febfd[_0x3a5968(0xc4)]=_0x96c422=>{const _0x21665c=_0x3a5968;var _0x535f83;const _0x4e532c=(_0x535f83=_0x96c422[_0x21665c(0x16c)])==null?void 0x0:_0x535f83['result'];if(_0x4e532c==null){this[_0x21665c(0x153)](),_0x5274e1(new Error(A[_0x21665c(0x11a)][_0x21665c(0x2a7)]));return;}const _0x480a9f=a[_0x21665c(0x268)]['generateRandomId'](0x6);_0x40e681({'imageId':_0x480a9f,'imageSourceType':A[_0x21665c(0x40d)][_0x21665c(0xe4)],'source':_0x4dfa05,'base64Cache':_0x4e532c,'status':A['ImageUploadStatusType'][_0x21665c(0x1c5)]}),this[_0x21665c(0x153)]();};});}[_0x5c8e6d(0x262)](){const _0x3e5560=_0x5c8e6d;var _0x4fe3bb;return(_0x4fe3bb=this[_0x3e5560(0x3f7)][_0x3e5560(0xab)](Ki))!=null?_0x4fe3bb:Xi;}[_0x5c8e6d(0x1d5)](){const _0x483633=_0x5c8e6d;var _0x45d58c;return(_0x45d58c=this[_0x483633(0x3f7)]['getConfig'](qi))!=null?_0x45d58c:Ji;}[_0x5c8e6d(0x91)](_0x557bb7,_0x32f376){const _0x123b3d=_0x5c8e6d;return _0x557bb7[_0x123b3d(0x30a)]('{fileID}',_0x32f376);}[_0x5c8e6d(0x153)](){const _0x43bdca=_0x5c8e6d;this[_0x43bdca(0x2d0)]-=0x1,this[_0x43bdca(0x360)][_0x43bdca(0x211)](this['_waitCount']);}};$e=Wi([rt(0x0,h[_0x5c8e6d(0x189)](P['HTTPService'])),rt(0x1,a['IConfigService'])],$e);var Pt=Object[_0x5c8e6d(0x3a5)],zi=Object[_0x5c8e6d(0x373)],Zi=(_0x500df9,_0x39ba9a,_0x35a5b3)=>_0x39ba9a in _0x500df9?Pt(_0x500df9,_0x39ba9a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35a5b3}):_0x500df9[_0x39ba9a]=_0x35a5b3,Qi=(_0x255519,_0x11b62a,_0x2db04b,_0x20a939)=>{const _0x152db6=_0x5c8e6d;for(var _0x399799=_0x20a939>0x1?void 0x0:_0x20a939?zi(_0x11b62a,_0x2db04b):_0x11b62a,_0x46a371=_0x255519[_0x152db6(0x7a)]-0x1,_0x5d52fd;_0x46a371>=0x0;_0x46a371--)(_0x5d52fd=_0x255519[_0x46a371])&&(_0x399799=(_0x20a939?_0x5d52fd(_0x11b62a,_0x2db04b,_0x399799):_0x5d52fd(_0x399799))||_0x399799);return _0x20a939&&_0x399799&&Pt(_0x11b62a,_0x2db04b,_0x399799),_0x399799;},ot=(_0x296180,_0x1c7e2d)=>(_0x9d28cb,_0x949e4b)=>_0x1c7e2d(_0x9d28cb,_0x949e4b,_0x296180),en=(_0x368b9f,_0x554696,_0x42b127)=>(Zi(_0x368b9f,_0x554696+'',_0x42b127),_0x42b127);const tn=_0x5c8e6d(0xe3);exports[_0x5c8e6d(0x24b)]=class extends a[_0x5c8e6d(0xaf)]{constructor(_0x1eceb1,_0x11c1b4,_0x3fc42b){const _0x46f7be=_0x5c8e6d;super(),this[_0x46f7be(0xc6)]=_0x1eceb1,this[_0x46f7be(0x2e1)]=_0x11c1b4,this['_injector']=_0x3fc42b;}[_0x5c8e6d(0x1b6)](_0x5e5e0b){const _0x6d9bcc=_0x5c8e6d;var _0x82b8ae,_0x848d12,_0x131006,_0x4d1cb6,_0x527178;_0x5e5e0b[_0x6d9bcc(0x315)](a[_0x6d9bcc(0x295)])&&this[_0x6d9bcc(0x2e1)][_0x6d9bcc(0x2bf)](_0x6d9bcc(0x375),_0x6d9bcc(0xf0));let _0x2a9f6f=[[a[_0x6d9bcc(0x295)],{'useClass':je}],[exports[_0x6d9bcc(0x356)]],[Ve],[P[_0x6d9bcc(0x155)]],[Ge,{'useClass':wt}],[G],[exports[_0x6d9bcc(0x342)]],[P['WebSocketService']],[fe],[ge],[ve],[Fe],[Ie],[Be,{'useClass':(_0x848d12=(_0x82b8ae=this['_config'])==null?void 0x0:_0x82b8ae['socketService'])!=null?_0x848d12:exports[_0x6d9bcc(0x12b)]}],[P[_0x6d9bcc(0x2c9)],{'useClass':P['XHRHTTPImplementation']}],[a[_0x6d9bcc(0x3b9)],{'useClass':Ae}],[a['IAuthzIoService'],{'useClass':exports[_0x6d9bcc(0x1c8)]}],[A[_0x6d9bcc(0x2a1)],{'useClass':$e}],[exports[_0x6d9bcc(0x397)]],[exports[_0x6d9bcc(0x417)]],[exports[_0x6d9bcc(0x371)]],[de],[z]];(_0x131006=this[_0x6d9bcc(0xc6)])!=null&&_0x131006[_0x6d9bcc(0x132)]&&_0x2a9f6f['push']([pe,{'useClass':hs}]),((_0x4d1cb6=this[_0x6d9bcc(0xc6)])==null?void 0x0:_0x4d1cb6['collaborationUniverTypes'])==null||this[_0x6d9bcc(0xc6)][_0x6d9bcc(0x154)]['includes'](a['UniverInstanceType'][_0x6d9bcc(0x184)])?_0x2a9f6f[_0x6d9bcc(0x105)]([ue]):this[_0x6d9bcc(0xc6)][_0x6d9bcc(0x154)][_0x6d9bcc(0x27d)](a[_0x6d9bcc(0x2c8)][_0x6d9bcc(0x3c5)])&&_0x2a9f6f[_0x6d9bcc(0x105)]([Se]),_0x2a9f6f=a[_0x6d9bcc(0x33e)](_0x2a9f6f,(_0x527178=this[_0x6d9bcc(0xc6)])==null?void 0x0:_0x527178[_0x6d9bcc(0x349)]),_0x2a9f6f['forEach'](_0x23cf01=>_0x5e5e0b['add'](_0x23cf01)),_0x5e5e0b[_0x6d9bcc(0xc0)](P['HTTPService'])[_0x6d9bcc(0x206)]({'priority':0x14,'interceptor':P[_0x6d9bcc(0x2af)]({'maxParallel':0x6})}),this[_0x6d9bcc(0x320)]();}[_0x5c8e6d(0x320)](){const _0xc0cd16=_0x5c8e6d;var _0x3cc29c,_0x45fe68;(_0x3cc29c=this[_0xc0cd16(0xc6)])!=null&&_0x3cc29c[_0xc0cd16(0x1a9)]||this['_injector'][_0xc0cd16(0xc0)](exports[_0xc0cd16(0x342)])[_0xc0cd16(0x2b3)](),(_0x45fe68=this['_config'])!=null&&_0x45fe68[_0xc0cd16(0x2ce)]&&this['_injector'][_0xc0cd16(0xc0)](Ie);}},en(exports[_0x5c8e6d(0x24b)],_0x5c8e6d(0xd9),tn),exports[_0x5c8e6d(0x24b)]=Qi([a[_0x5c8e6d(0x192)](u['UniverCollaborationPlugin']),ot(0x1,a[_0x5c8e6d(0x14f)]),ot(0x2,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)]))],exports[_0x5c8e6d(0x24b)]),exports[_0x5c8e6d(0x1fd)]=Lt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=vt,exports[_0x5c8e6d(0x3ae)]=_t,exports[_0x5c8e6d(0x232)]=w,exports[_0x5c8e6d(0x96)]=Dt,exports['HEARTBEAT_INTERVAL_KEY']=ut,exports[_0x5c8e6d(0x2b9)]=xe,exports[_0x5c8e6d(0x2d1)]=Be,exports[_0x5c8e6d(0x17b)]=Ge,exports['LOCAL_CACHE_INTERVAL_KEY']=St,exports[_0x5c8e6d(0x152)]=gt,exports['SEND_CHANGESET_TIMEOUT_KEY']=ht,exports[_0x5c8e6d(0xf6)]=ct,exports['SNAPSHOT_URL_KEY']=lt,exports[_0x5c8e6d(0x366)]=W,exports[_0x5c8e6d(0xf9)]=wt,exports['deserializeToCombResponse']=mt,exports[_0x5c8e6d(0xbd)]=It;
|
1
|
+
'use strict';const _0x53b42f=_0xe052;(function(_0x4a885b,_0x11f14b){const _0x236a0c=_0xe052,_0x3d3719=_0x4a885b();while(!![]){try{const _0x12a5e2=-parseInt(_0x236a0c(0x3d9))/0x1+-parseInt(_0x236a0c(0x1df))/0x2+-parseInt(_0x236a0c(0x40e))/0x3*(-parseInt(_0x236a0c(0x488))/0x4)+-parseInt(_0x236a0c(0x3a0))/0x5*(parseInt(_0x236a0c(0x43f))/0x6)+-parseInt(_0x236a0c(0x2e1))/0x7+parseInt(_0x236a0c(0x31b))/0x8*(-parseInt(_0x236a0c(0x401))/0x9)+parseInt(_0x236a0c(0x2ea))/0xa*(parseInt(_0x236a0c(0x27f))/0xb);if(_0x12a5e2===_0x11f14b)break;else _0x3d3719['push'](_0x3d3719['shift']());}catch(_0x3d86eb){_0x3d3719['push'](_0x3d3719['shift']());}}}(_0x3fcd,0xe9117));var jt=Object[_0x53b42f(0x38a)],$t=(_0x1319dc,_0xba3a36,_0x1350f5)=>_0xba3a36 in _0x1319dc?jt(_0x1319dc,_0xba3a36,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1350f5}):_0x1319dc[_0xba3a36]=_0x1350f5,d=(_0x1f7e5b,_0x8e78f6,_0xeefd7)=>$t(_0x1f7e5b,typeof _0x8e78f6!=_0x53b42f(0x205)?_0x8e78f6+'':_0x8e78f6,_0xeefd7);Object['defineProperty'](exports,Symbol[_0x53b42f(0x325)],{'value':'Module'});const a=require(_0x53b42f(0x1dc)),E=require(_0x53b42f(0x23b)),oe=require('@univerjs/design'),N=require(_0x53b42f(0x2fd)),u=require('@univerjs-pro/collaboration'),h=require(_0x53b42f(0x225)),g=require('rxjs'),T=require('rxjs/operators'),M=require(_0x53b42f(0x302)),P=require(_0x53b42f(0x4cb)),A=require('@univerjs/drawing'),Ye=require(_0x53b42f(0x466)),He=require('lodash/debounce'),R=require(_0x53b42f(0x256)),ee=require('@univerjs/sheets-ui'),at=require(_0x53b42f(0x3e3)),L=require('react'),Ht=require('clsx'),xt=require('@univerjs/rpc'),ct='SNAPSHOT_SERVER_URL_KEY',kt=_0x53b42f(0x2ca),lt=_0x53b42f(0x44c),ht='SEND_CHANGESET_TIMEOUT',Bt=0x7d0,_t=_0x53b42f(0x4dd),Ft=_0x53b42f(0x312),ut=_0x53b42f(0x467),Vt=0x7530,xe=_0x53b42f(0x1f1),dt=0x2710,Wt='RETRY_CONNECTING_INTERVAL',Gt=0x4e20,Yt=_0x53b42f(0x1ef),Kt=0x3,St='LOCAL_CACHE_INTERVAL',Xt=0x3e8,vt=_0x53b42f(0x316),qt=_0x53b42f(0x2c4),gt=_0x53b42f(0x465),zt=_0x53b42f(0x244);var ft=(_0x2594fe=>(_0x2594fe[_0x2594fe[_0x53b42f(0x2fb)]=0x0]=_0x53b42f(0x2fb),_0x2594fe[_0x2594fe['OK']=0x1]='OK',_0x2594fe[_0x2594fe['INTERNAL_ERROR']=0x2]=_0x53b42f(0x3b2),_0x2594fe[_0x2594fe[_0x53b42f(0x257)]=0x3]=_0x53b42f(0x257),_0x2594fe[_0x2594fe[_0x53b42f(0x3d5)]=0x4]=_0x53b42f(0x3d5),_0x2594fe[_0x2594fe[_0x53b42f(0x167)]=0x5]=_0x53b42f(0x167),_0x2594fe[_0x2594fe['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x2594fe[_0x2594fe[_0x53b42f(0x408)]=0x7]=_0x53b42f(0x408),_0x2594fe[_0x2594fe[_0x53b42f(0x367)]=0x8]='TOO_MANY_REQUESTS',_0x2594fe[_0x2594fe[_0x53b42f(0x218)]=0x9]=_0x53b42f(0x218),_0x2594fe[_0x2594fe[_0x53b42f(0x40f)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2594fe[_0x2594fe[_0x53b42f(0x42d)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2594fe[_0x2594fe[_0x53b42f(0x3da)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2594fe[_0x2594fe[_0x53b42f(0x2b0)]=0x1b59]='APPLY_REJECT',_0x2594fe[_0x2594fe[_0x53b42f(0x46e)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2594fe[_0x2594fe[_0x53b42f(0x229)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2594fe[_0x2594fe[_0x53b42f(0x2db)]=0x1b5c]=_0x53b42f(0x2db),_0x2594fe[_0x2594fe[_0x53b42f(0x40d)]=0x1f41]=_0x53b42f(0x40d),_0x2594fe[_0x2594fe[_0x53b42f(0x180)]=0x2329]=_0x53b42f(0x180),_0x2594fe[_0x2594fe[_0x53b42f(0x22d)]=0x232a]=_0x53b42f(0x22d),_0x2594fe[_0x2594fe[_0x53b42f(0x43c)]=0x232b]=_0x53b42f(0x43c),_0x2594fe[_0x2594fe[_0x53b42f(0x277)]=0x232c]=_0x53b42f(0x277),_0x2594fe[_0x2594fe[_0x53b42f(0x3df)]=0x232d]=_0x53b42f(0x3df),_0x2594fe[_0x2594fe[_0x53b42f(0x40c)]=0x2711]=_0x53b42f(0x40c),_0x2594fe[_0x2594fe[_0x53b42f(0x291)]=0x2712]=_0x53b42f(0x291),_0x2594fe[_0x2594fe[_0x53b42f(0x406)]=-0x1]=_0x53b42f(0x406),_0x2594fe))(ft||{}),j=(_0x515b1e=>(_0x515b1e[_0x515b1e[_0x53b42f(0x41a)]=0x0]=_0x53b42f(0x41a),_0x515b1e[_0x515b1e[_0x53b42f(0x220)]=0x1]=_0x53b42f(0x220),_0x515b1e[_0x515b1e[_0x53b42f(0x164)]=0x2]=_0x53b42f(0x164),_0x515b1e[_0x515b1e[_0x53b42f(0x26a)]=0x3]=_0x53b42f(0x26a),_0x515b1e[_0x515b1e['UNRECOGNIZED']=-0x1]=_0x53b42f(0x406),_0x515b1e))(j||{}),b=(_0x5cad4d=>(_0x5cad4d[_0x5cad4d[_0x53b42f(0x445)]=0x0]=_0x53b42f(0x445),_0x5cad4d[_0x5cad4d['HELLO']=0x1]='HELLO',_0x5cad4d[_0x5cad4d[_0x53b42f(0x442)]=0x2]=_0x53b42f(0x442),_0x5cad4d[_0x5cad4d['LEAVE']=0x3]=_0x53b42f(0x4e4),_0x5cad4d[_0x5cad4d[_0x53b42f(0x292)]=0x4]='INGEST',_0x5cad4d[_0x5cad4d[_0x53b42f(0x33f)]=0x5]=_0x53b42f(0x33f),_0x5cad4d[_0x5cad4d[_0x53b42f(0x4c4)]=0x6]=_0x53b42f(0x4c4),_0x5cad4d[_0x5cad4d[_0x53b42f(0x406)]=-0x1]=_0x53b42f(0x406),_0x5cad4d))(b||{}),ke=(_0x371321=>(_0x371321[_0x371321['UNKNOWN_CODE']=0x0]=_0x53b42f(0x294),_0x371321[_0x371321['OK']=0x1]='OK',_0x371321[_0x371321[_0x53b42f(0x202)]=0x2]='FAIL',_0x371321[_0x371321[_0x53b42f(0x406)]=-0x1]=_0x53b42f(0x406),_0x371321))(ke||{}),Jt=Object['defineProperty'],Zt=Object[_0x53b42f(0x2a8)],Qt=(_0x5f01c8,_0x35267b,_0x178ddb,_0x135042)=>{for(var _0x2422d1=_0x135042>0x1?void 0x0:_0x135042?Zt(_0x35267b,_0x178ddb):_0x35267b,_0x3196ca=_0x5f01c8['length']-0x1,_0x10d192;_0x3196ca>=0x0;_0x3196ca--)(_0x10d192=_0x5f01c8[_0x3196ca])&&(_0x2422d1=(_0x135042?_0x10d192(_0x35267b,_0x178ddb,_0x2422d1):_0x10d192(_0x2422d1))||_0x2422d1);return _0x135042&&_0x2422d1&&Jt(_0x35267b,_0x178ddb,_0x2422d1),_0x2422d1;},Ke=(_0x4fe674,_0x23e6fd)=>(_0x5e4c6d,_0x4ed765)=>_0x23e6fd(_0x5e4c6d,_0x4ed765,_0x4fe674);let G=class extends a[_0x53b42f(0x18e)]{constructor(_0x8a4e95,_0x15096e){const _0x4266a5=_0x53b42f;super(),d(this,_0x4266a5(0x272),new Map()),(this[_0x4266a5(0x49a)]=_0x8a4e95,this[_0x4266a5(0x3d7)]=_0x15096e,this[_0x4266a5(0x1e9)](a[_0x4266a5(0x1bb)](g[_0x4266a5(0x221)](this[_0x4266a5(0x49a)][_0x4266a5(0x160)](a[_0x4266a5(0x142)][_0x4266a5(0x164)])['pipe'](T[_0x4266a5(0x1af)](_0x27f9fb=>_0x27f9fb[_0x4266a5(0x1f9)]())),this[_0x4266a5(0x49a)]['getTypeOfUnitDisposed$'](a[_0x4266a5(0x142)][_0x4266a5(0x220)])[_0x4266a5(0x454)](T['map'](_0x3344f1=>_0x3344f1['getUnitId']())),this[_0x4266a5(0x49a)][_0x4266a5(0x160)](a[_0x4266a5(0x142)][_0x4266a5(0x26a)])['pipe'](T[_0x4266a5(0x1af)](_0x5f2c5d=>_0x5f2c5d[_0x4266a5(0x1f9)]())))['subscribe'](_0x2f0f91=>this[_0x4266a5(0x2f2)](_0x2f0f91)))));}['setCurrentUser'](_0x212415){const _0x32cd33=_0x53b42f;this[_0x32cd33(0x3d7)][_0x32cd33(0x273)](_0x212415);}['getCurrentUser'](){const _0x295326=_0x53b42f;return this[_0x295326(0x3d7)][_0x295326(0x341)]();}[_0x53b42f(0x4ad)](_0xf0f929,_0x5dff7e){const _0x3b5401=_0x53b42f;let _0x486fc5=this[_0x3b5401(0x272)][_0x3b5401(0x3d4)](_0xf0f929);_0x486fc5||(_0x486fc5=new es(),this[_0x3b5401(0x272)][_0x3b5401(0x2e0)](_0xf0f929,_0x486fc5)),_0x486fc5[_0x3b5401(0x4ad)](_0x5dff7e);}[_0x53b42f(0x3bf)](_0x2f36df,_0x445df6){const _0x1ac2b2=_0x53b42f,_0x3507ab=this['_roomMembers'][_0x1ac2b2(0x3d4)](_0x2f36df);_0x3507ab&&_0x3507ab['removeMember'](_0x445df6);}[_0x53b42f(0x440)](_0x560b23){const _0x1ac643=_0x53b42f;return this[_0x1ac643(0x272)][_0x1ac643(0x3d4)](_0x560b23);}['getMember'](_0x5562ab,_0x4d2266){const _0x939393=_0x53b42f,_0x4abf5c=this[_0x939393(0x272)][_0x939393(0x3d4)](_0x5562ab);if(_0x4abf5c)return _0x4abf5c[_0x939393(0x4b5)](_0x4d2266);}[_0x53b42f(0x2f2)](_0x447eab){const _0x2ffba7=_0x53b42f,_0x30b25f=this[_0x2ffba7(0x272)][_0x2ffba7(0x3d4)](_0x447eab);_0x30b25f&&(_0x30b25f[_0x2ffba7(0x4df)](),this[_0x2ffba7(0x272)][_0x2ffba7(0x35b)](_0x447eab));}[_0x53b42f(0x4df)](){const _0x8ceeee=_0x53b42f;this[_0x8ceeee(0x272)]['forEach'](_0x25b729=>_0x25b729[_0x8ceeee(0x4df)]()),this[_0x8ceeee(0x272)]['clear']();}};G=Qt([Ke(0x0,a[_0x53b42f(0x390)]),Ke(0x1,h[_0x53b42f(0x295)](a[_0x53b42f(0x2a0)]))],G);class es extends a[_0x53b42f(0x18e)]{constructor(){const _0x19e656=_0x53b42f;super(...arguments),d(this,_0x19e656(0x237),new Map());}[_0x53b42f(0x4df)](){const _0x194bed=_0x53b42f;this[_0x194bed(0x237)][_0x194bed(0x4de)]();}[_0x53b42f(0x4ad)](_0x5fa5d5){const _0xdf3657=_0x53b42f;this[_0xdf3657(0x237)]['set'](_0x5fa5d5[_0xdf3657(0x328)],_0x5fa5d5);}['removeMember'](_0x2406d7){const _0xdbe1d2=_0x53b42f;this[_0xdbe1d2(0x237)]['delete'](_0x2406d7);}[_0x53b42f(0x4b5)](_0xdeb4b){const _0x2fdef1=_0x53b42f;return this[_0x2fdef1(0x237)][_0x2fdef1(0x3d4)](_0xdeb4b);}}function mt(_0xffffa){const _0x265587=_0x53b42f;var _0x5501c6,_0x2fc012,_0x12c7d8,_0x4a8043;const _0x4fdafa=_0xffffa[_0x265587(0x169)],_0xbbbe93=JSON[_0x265587(0x4b2)](_0x4fdafa);switch(_0xbbbe93['cmd']){case b[_0x265587(0x33f)]:case b['HELLO']:{const _0x5f1534=_0xbbbe93[_0x265587(0x35d)];return{..._0xbbbe93,'data':_0x5f1534,'cmd':_0xbbbe93[_0x265587(0x242)]};}case b[_0x265587(0x442)]:{const _0x7e11d1=_0xbbbe93[_0x265587(0x1ed)];return{..._0xbbbe93,'data':_0x7e11d1,'cmd':_0xbbbe93[_0x265587(0x242)]};}case b['RECV']:{const _0x1fb352=_0xbbbe93[_0x265587(0x307)];switch(_0x1fb352['eventID']){case u['CollaborationEvent'][_0x265587(0x4ce)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':(_0x5501c6=_0x1fb352[_0x265587(0x4d1)])==null?void 0x0:_0x5501c6['cs']},'cmd':_0xbbbe93['cmd']};case u[_0x265587(0x3fe)]['CHANGESET_ACK']:return{..._0xbbbe93,'data':{..._0x1fb352,'data':(_0x2fc012=_0x1fb352[_0x265587(0x385)])==null?void 0x0:_0x2fc012['cs']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x463)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':(_0x12c7d8=_0x1fb352[_0x265587(0x327)])==null?void 0x0:_0x12c7d8['cs']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x2d1)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':(_0x4a8043=_0x1fb352[_0x265587(0x32f)])==null?void 0x0:_0x4a8043['cs']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x4e1)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352['updateCursorEvent']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u['CollaborationEvent'][_0x265587(0x3cb)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352[_0x265587(0x3e9)]},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x177)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352['leaveEvent']},'cmd':_0xbbbe93['cmd']};case u['CollaborationEvent'][_0x265587(0x450)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352['liveShareNewHost']},'cmd':_0xbbbe93['cmd']};case u[_0x265587(0x3fe)]['LIVESHARE_FETCH_OPERATIONS']:case u[_0x265587(0x3fe)][_0x265587(0x329)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352['liveShareOperation']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x1ce)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352[_0x265587(0x285)]},'cmd':_0xbbbe93[_0x265587(0x242)]};case u['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0xbbbe93,'data':_0x1fb352,'cmd':_0xbbbe93[_0x265587(0x242)]};default:return _0xbbbe93;}}default:return _0xbbbe93;}}function It(_0x12f1c6){const _0x301769=_0x53b42f;switch(_0x12f1c6['cmd']){case b[_0x301769(0x33f)]:case b['HELLO']:return JSON[_0x301769(0x339)]({'cmd':_0x12f1c6[_0x301769(0x242)],'routeKey':_0x12f1c6[_0x301769(0x31e)]});case b[_0x301769(0x292)]:{let _0x3aa62f;switch(_0x12f1c6[_0x301769(0x169)][_0x301769(0x428)]){case u['CollaborationEvent'][_0x301769(0x4e1)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x4e1)],'updateCursorEvent':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u['CollaborationEvent'][_0x301769(0x177)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x177)],'leaveEvent':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)]['USERS_ENTER']:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x3cb)],'joinEvent':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)][_0x301769(0x450)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x450)],'liveShareNewHost':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u['CollaborationEvent'][_0x301769(0x329)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x329)],'liveShareOperation':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)][_0x301769(0x1ce)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x12f1c6['data'][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)][_0x301769(0x27b)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x27b)],'liveShareRequestHost':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)][_0x301769(0x499)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x499)]};break;}default:_0x3aa62f={'eventID':_0x12f1c6['data'][_0x301769(0x428)]};}return JSON[_0x301769(0x339)]({'cmd':_0x12f1c6[_0x301769(0x242)],'routeKey':_0x12f1c6[_0x301769(0x31e)],'collaMsg':_0x3aa62f});}case b[_0x301769(0x442)]:return JSON[_0x301769(0x339)]({'cmd':_0x12f1c6[_0x301769(0x242)],'routeKey':_0x12f1c6[_0x301769(0x31e)],'joinReq':_0x12f1c6[_0x301769(0x169)]});case b['LEAVE']:return JSON['stringify']({'cmd':_0x12f1c6[_0x301769(0x242)],'routeKey':_0x12f1c6['routeKey'],'leaveReq':_0x12f1c6['data']});default:throw new Error(_0x301769(0x4e0));}}var ts=Object[_0x53b42f(0x38a)],ss=Object[_0x53b42f(0x2a8)],is=(_0x35e54c,_0x5d9009,_0x3702d7,_0x23840f)=>{const _0x115fc1=_0x53b42f;for(var _0x24ecb1=_0x23840f>0x1?void 0x0:_0x23840f?ss(_0x5d9009,_0x3702d7):_0x5d9009,_0x11eed9=_0x35e54c[_0x115fc1(0x419)]-0x1,_0x5226b3;_0x11eed9>=0x0;_0x11eed9--)(_0x5226b3=_0x35e54c[_0x11eed9])&&(_0x24ecb1=(_0x23840f?_0x5226b3(_0x5d9009,_0x3702d7,_0x24ecb1):_0x5226b3(_0x24ecb1))||_0x24ecb1);return _0x23840f&&_0x24ecb1&&ts(_0x5d9009,_0x3702d7,_0x24ecb1),_0x24ecb1;},te=(_0x18a0a0,_0x32ff1e)=>(_0x2632a8,_0x4aeedc)=>_0x32ff1e(_0x2632a8,_0x4aeedc,_0x18a0a0);const Be=h['createIdentifier'](_0x53b42f(0x3f9));function ns(_0x2f74f1,_0x1b4a14,_0x29db64){const _0x3dd3e6=_0x53b42f;return _0x2f74f1+'/'+_0x1b4a14+_0x3dd3e6(0x254)+_0x29db64+_0x3dd3e6(0x208);}exports[_0x53b42f(0x236)]=class{constructor(_0x2825e5,_0x215126,_0x21fee6,_0x55b26a,_0x12a2fe){const _0x261a61=_0x53b42f;this[_0x261a61(0x280)]=_0x2825e5,this[_0x261a61(0x3f2)]=_0x215126,this[_0x261a61(0x2a6)]=_0x21fee6,this[_0x261a61(0x42f)]=_0x55b26a,this[_0x261a61(0x3e0)]=_0x12a2fe;}[_0x53b42f(0x39f)](_0x58e1d4){const _0x43d24d=_0x53b42f,_0x489313=this[_0x43d24d(0x3f2)][_0x43d24d(0x39f)](_0x58e1d4);if(!_0x489313)throw new Error(_0x43d24d(0x1d4));const _0x330e71=new a[(_0x43d24d(0x4a8))](),_0x2b4ab1=new g[(_0x43d24d(0x298))]();_0x330e71[_0x43d24d(0x1e5)](a[_0x43d24d(0x1bb)](_0x489313[_0x43d24d(0x24c)][_0x43d24d(0x492)](_0xa11b65=>_0x2b4ab1['next'](_0xa11b65)))),_0x330e71[_0x43d24d(0x1e5)](a[_0x43d24d(0x1bb)](()=>_0x2b4ab1[_0x43d24d(0x146)]()));const _0x23d5c9=new g[(_0x43d24d(0x298))]();_0x330e71['add'](a['toDisposable'](_0x489313[_0x43d24d(0x3ed)][_0x43d24d(0x492)](_0x350584=>_0x23d5c9[_0x43d24d(0x414)](_0x350584)))),_0x330e71['add'](a[_0x43d24d(0x1bb)](()=>_0x23d5c9[_0x43d24d(0x146)]()));const _0xd40ff9=new g['Subject']();_0x330e71[_0x43d24d(0x1e5)](a[_0x43d24d(0x1bb)](_0x489313[_0x43d24d(0x42e)][_0x43d24d(0x492)](_0x107d7a=>{const _0x40ae9a=_0x43d24d,_0xb39a1d=mt(_0x107d7a);_0xd40ff9[_0x40ae9a(0x414)](_0xb39a1d);}))),_0x330e71[_0x43d24d(0x1e5)](a['toDisposable'](()=>_0xd40ff9[_0x43d24d(0x146)]()));const _0x3ff207=()=>{const _0x67b5a3=_0x43d24d;_0x23d5c9[_0x67b5a3(0x414)](new Event(_0x67b5a3(0x13e))),_0x2b4ab1['next'](new CloseEvent(_0x67b5a3(0x13e))),_0x149c53[_0x67b5a3(0x2ab)]();},_0x149c53={'memberID':'','close$':_0x2b4ab1['asObservable'](),'error$':_0x23d5c9['asObservable'](),'open$':_0x489313[_0x43d24d(0x13f)],'message$':_0xd40ff9[_0x43d24d(0x1d6)](),'send':_0xa45afc=>{const _0x7701af=_0x43d24d;if(_0xa45afc['cmd']===b[_0x7701af(0x292)]){if(_0xa45afc[_0x7701af(0x169)][_0x7701af(0x428)]===u['CollaborationEvent'][_0x7701af(0x315)]){this[_0x7701af(0x269)](_0x149c53,_0xa45afc['data'])[_0x7701af(0x18d)](_0x103ccb=>{const _0x26ecf7=_0x7701af;this[_0x26ecf7(0x42f)][_0x26ecf7(0x150)](_0x103ccb),_0x3ff207();});return;}if(_0xa45afc[_0x7701af(0x169)][_0x7701af(0x428)]===u[_0x7701af(0x3fe)][_0x7701af(0x2c9)]){const _0x27ed59=_0xa45afc['data'];this[_0x7701af(0x281)](_0x27ed59)[_0x7701af(0x3ab)](_0x52caaa=>{const _0x547df1=_0x7701af;_0xd40ff9[_0x547df1(0x414)]({'cmd':b['RECV'],'code':ke['OK'],'routeKey':_0x27ed59['data'][_0x547df1(0x348)],'routeType':'','data':{'eventID':u[_0x547df1(0x3fe)][_0x547df1(0x2ee)],'data':{'changesets':_0x52caaa}}});})[_0x7701af(0x18d)](_0x48fc3a=>{this['_logService']['error'](_0x48fc3a),_0x3ff207();});return;}}_0x489313[_0x7701af(0x279)](It(_0xa45afc));},'close':()=>{const _0x418716=_0x43d24d;_0x489313['close'](),_0x330e71[_0x418716(0x4df)]();}};return _0x149c53;}async[_0x53b42f(0x269)](_0x34b632,_0x4891e2){const _0x54510f=_0x53b42f;var _0x569b46;const {unitType:_0xcb2cbb,unitID:_0x4768dd,changeset:_0x184f90}=_0x4891e2['data'],_0x2ded46={'unitID':_0x4768dd,'memberID':_0x34b632[_0x54510f(0x328)],'type':_0xcb2cbb,'changeset':u[_0x54510f(0x308)](_0x184f90)},_0x3f6bdd=ns((_0x569b46=this[_0x54510f(0x2a6)][_0x54510f(0x1d8)](vt))!=null?_0x569b46:qt,_0xcb2cbb,_0x4768dd);try{await this[_0x54510f(0x280)]['post'](_0x3f6bdd,{'body':_0x2ded46});}catch(_0x2ac425){throw this[_0x54510f(0x42f)][_0x54510f(0x150)](_0x54510f(0x29b),_0x54510f(0x275)),_0x2ac425;}}async[_0x53b42f(0x281)](_0x32e552){const _0x97773c=_0x53b42f,{unitID:_0x3ba00f,from:_0x5ad2e4,to:_0x465023,unitType:_0x3208b8}=_0x32e552[_0x97773c(0x169)];return(await this[_0x97773c(0x3e0)][_0x97773c(0x25e)]({'metadata':void 0x0},{'unitID':_0x3ba00f,'type':_0x3208b8,'from':_0x5ad2e4,'to':_0x465023}))[_0x97773c(0x3d8)];}},exports[_0x53b42f(0x236)]=is([te(0x0,h['Inject'](P[_0x53b42f(0x452)])),te(0x1,h[_0x53b42f(0x295)](P[_0x53b42f(0x1c0)])),te(0x2,a['IConfigService']),te(0x3,a[_0x53b42f(0x4c8)]),te(0x4,a[_0x53b42f(0x174)])],exports[_0x53b42f(0x236)]);var rs=Object[_0x53b42f(0x38a)],os=Object[_0x53b42f(0x2a8)],pt=(_0x16b98d,_0x24b8f0,_0x5d2a79,_0x4322d4)=>{const _0x32082d=_0x53b42f;for(var _0x124a06=_0x4322d4>0x1?void 0x0:_0x4322d4?os(_0x24b8f0,_0x5d2a79):_0x24b8f0,_0x1f5b39=_0x16b98d[_0x32082d(0x419)]-0x1,_0x14de47;_0x1f5b39>=0x0;_0x1f5b39--)(_0x14de47=_0x16b98d[_0x1f5b39])&&(_0x124a06=(_0x4322d4?_0x14de47(_0x24b8f0,_0x5d2a79,_0x124a06):_0x14de47(_0x124a06))||_0x124a06);return _0x4322d4&&_0x124a06&&rs(_0x24b8f0,_0x5d2a79,_0x124a06),_0x124a06;},U=(_0x38ce21,_0x507022)=>(_0xe48096,_0x4b2ee5)=>_0x507022(_0xe48096,_0x4b2ee5,_0x38ce21),W=(_0x4e8c97=>(_0x4e8c97[_0x4e8c97[_0x53b42f(0x49f)]=0x0]=_0x53b42f(0x49f),_0x4e8c97[_0x4e8c97[_0x53b42f(0x2cc)]=0x1]=_0x53b42f(0x2cc),_0x4e8c97[_0x4e8c97[_0x53b42f(0x1b4)]=0x2]=_0x53b42f(0x1b4),_0x4e8c97[_0x4e8c97[_0x53b42f(0x4c3)]=0x3]=_0x53b42f(0x4c3),_0x4e8c97))(W||{});exports['CollaborationSession']=class extends a[_0x53b42f(0x3a5)]{constructor(_0x4c26ec,_0x420a62,_0x516747,_0x5c5c0c,_0x2468ed,_0x38c96e,_0xb94b2f,_0x35a6b9){const _0x324ceb=_0x53b42f;super(),d(this,'_sessionStatus$',new g[(_0x324ceb(0x28a))](0x0)),d(this,_0x324ceb(0x222),this[_0x324ceb(0x4bc)][_0x324ceb(0x1d6)]()),d(this,'_event$',new g[(_0x324ceb(0x298))]()),d(this,_0x324ceb(0x255),this[_0x324ceb(0x3b0)]['asObservable']()),d(this,'_socket'),d(this,_0x324ceb(0x1d5)),d(this,_0x324ceb(0x3b3)),(this[_0x324ceb(0x39d)]=_0x4c26ec,this['_logService']=_0x516747,this['_beforeCloseService']=_0x5c5c0c,this[_0x324ceb(0x23f)]=_0x2468ed,this['_configService']=_0x38c96e,this[_0x324ceb(0x2bd)]=_0xb94b2f,this[_0x324ceb(0x4ae)]=_0x35a6b9,_0x420a62[_0x324ceb(0x454)](T[_0x324ceb(0x436)](this[_0x324ceb(0x35f)]))['subscribe'](_0x6aa2ef=>{const _0x590c52=_0x324ceb;var _0x4233f7;typeof _0x6aa2ef>'u'||(this[_0x590c52(0x187)]=_0x6aa2ef,_0x6aa2ef?(this[_0x590c52(0x20e)](_0x6aa2ef),this[_0x590c52(0x1d5)]=this['_socket'][_0x590c52(0x42e)][_0x590c52(0x492)](_0x14f877=>{const _0x224cd4=_0x590c52;_0x14f877[_0x224cd4(0x31e)]===this[_0x224cd4(0x39d)]&&this['_onCombEvent'](_0x14f877);})):(this[_0x590c52(0x4bc)]['next'](0x2),(_0x4233f7=this[_0x590c52(0x1d5)])==null||_0x4233f7['unsubscribe'](),this[_0x590c52(0x1d5)]=null));}),this[_0x324ceb(0x1e9)](this[_0x324ceb(0x26f)][_0x324ceb(0x30e)](()=>{const _0x214367=_0x324ceb;var _0xc3cc20;(_0xc3cc20=this[_0x214367(0x187)])==null||_0xc3cc20[_0x214367(0x279)]({'cmd':b[_0x214367(0x4e4)],'data':{'roomID':this[_0x214367(0x39d)]}});})));}get['sessionStatus'](){const _0x57f242=_0x53b42f;return this[_0x57f242(0x4bc)][_0x57f242(0x47e)]();}['getMemberID'](){const _0x134189=_0x53b42f;var _0x4a92b5,_0x27d8b4;return(_0x27d8b4=(_0x4a92b5=this[_0x134189(0x187)])==null?void 0x0:_0x4a92b5['memberID'])!=null?_0x27d8b4:null;}[_0x53b42f(0x4df)](){const _0x39e611=_0x53b42f;super[_0x39e611(0x4df)](),this[_0x39e611(0x35f)]['next'](),this[_0x39e611(0x35f)][_0x39e611(0x146)]();}[_0x53b42f(0x31c)](_0x2af6f6){const _0x2d253b=_0x53b42f;_0x2af6f6[_0x2d253b(0x242)]===b[_0x2d253b(0x442)]?this[_0x2d253b(0x4d0)](_0x2af6f6):_0x2af6f6[_0x2d253b(0x242)]===b[_0x2d253b(0x4c4)]&&this[_0x2d253b(0x30b)](_0x2af6f6);}[_0x53b42f(0x20e)](_0x23e432){const _0x588659=_0x53b42f;this[_0x588659(0x4bc)][_0x588659(0x414)](0x1),_0x23e432['send']({'cmd':b[_0x588659(0x442)],'routeKey':this[_0x588659(0x39d)],'routeType':'','data':{'rooms':[{'roomID':this[_0x588659(0x39d)]}]}});}[_0x53b42f(0x4d0)](_0x59c460){const _0xf908b0=_0x53b42f;var _0x913316;if(_0x59c460[_0xf908b0(0x486)]===ke['FAIL']){this[_0xf908b0(0x23f)][_0xf908b0(0x138)]({'type':oe[_0xf908b0(0x3c9)][_0xf908b0(0x376)],'content':this[_0xf908b0(0x2bd)]['t']('session.room-full')}),this[_0xf908b0(0x4bc)][_0xf908b0(0x414)](0x2);return;}this[_0xf908b0(0x4bc)][_0xf908b0(0x414)](0x3);const _0x24be44=(_0x913316=_0x59c460[_0xf908b0(0x169)][_0xf908b0(0x268)][this[_0xf908b0(0x39d)]])==null?void 0x0:_0x913316['members'];_0x24be44&&_0x24be44[_0xf908b0(0x421)](_0x2d89cd=>this['_memberService'][_0xf908b0(0x4ad)](this[_0xf908b0(0x39d)],_0x2d89cd));}[_0x53b42f(0x30b)](_0x2ae5ea){const _0x42e6d8=_0x53b42f;try{const _0x650119=_0x2ae5ea[_0x42e6d8(0x169)];switch(_0x650119[_0x42e6d8(0x428)]){case u[_0x42e6d8(0x3fe)][_0x42e6d8(0x3cb)]:this[_0x42e6d8(0x154)](_0x650119),this[_0x42e6d8(0x3b0)][_0x42e6d8(0x414)](_0x650119);break;case u[_0x42e6d8(0x3fe)][_0x42e6d8(0x177)]:this[_0x42e6d8(0x173)](_0x650119),this['_event$'][_0x42e6d8(0x414)](_0x650119);break;case u[_0x42e6d8(0x3fe)][_0x42e6d8(0x45a)]:this['_clearCollaborationTimeoutTimer'](),this[_0x42e6d8(0x3b0)][_0x42e6d8(0x414)](_0x650119);break;case u[_0x42e6d8(0x3fe)][_0x42e6d8(0x190)]:this['_logService'][_0x42e6d8(0x150)](_0x42e6d8(0x4cd)+JSON[_0x42e6d8(0x339)](_0x650119)),this[_0x42e6d8(0x3b0)][_0x42e6d8(0x414)](_0x650119);break;default:this[_0x42e6d8(0x3b0)][_0x42e6d8(0x414)](_0x650119);}}catch(_0x60c2ff){this[_0x42e6d8(0x42f)][_0x42e6d8(0x150)](_0x60c2ff,_0x2ae5ea);}}['_onUserJoin'](_0x3ebc9f){const _0x3a91a7=_0x53b42f;this[_0x3a91a7(0x4ae)]['updateMember'](this[_0x3a91a7(0x39d)],_0x3ebc9f[_0x3a91a7(0x169)]);}[_0x53b42f(0x173)](_0x471a4c){const _0x3d7e20=_0x53b42f;this[_0x3d7e20(0x4ae)]['removeMember'](this[_0x3d7e20(0x39d)],_0x471a4c['data'][_0x3d7e20(0x328)]);}async[_0x53b42f(0x279)](_0x37a3f3,_0x49689d){const _0xce3d39=_0x53b42f;if(this[_0xce3d39(0x201)]!==0x3||!this['_socket'])throw new Error(_0xce3d39(0x1a6));try{_0x37a3f3[_0xce3d39(0x428)]===u['CollaborationEvent'][_0xce3d39(0x463)]&&this[_0xce3d39(0x290)](),this[_0xce3d39(0x187)]['send']({'cmd':b[_0xce3d39(0x292)],'routeKey':_0x49689d,'routeType':'','data':_0x37a3f3});}catch(_0x351f53){this[_0xce3d39(0x42f)][_0xce3d39(0x150)](_0x351f53);}}[_0x53b42f(0x290)](){const _0x54c7eb=_0x53b42f;var _0x1f3b82;this['_collaborationTimeoutTimer']=window[_0x54c7eb(0x373)](()=>{const _0x31c295=_0x54c7eb;this[_0x31c295(0x3b3)]=null,this['_messageService']['show']({'type':oe[_0x31c295(0x3c9)][_0x31c295(0x23a)],'content':this[_0x31c295(0x2bd)]['t'](_0x31c295(0x342))});},(_0x1f3b82=this[_0x54c7eb(0x2a6)][_0x54c7eb(0x1d8)](xe))!=null?_0x1f3b82:dt);}[_0x53b42f(0x3d1)](){const _0x210069=_0x53b42f;this[_0x210069(0x3b3)]&&(clearTimeout(this[_0x210069(0x3b3)]),this[_0x210069(0x3b3)]=null);}},exports[_0x53b42f(0x4b9)]=pt([U(0x2,a[_0x53b42f(0x4c8)]),U(0x3,N[_0x53b42f(0x34d)]),U(0x4,N[_0x53b42f(0x288)]),U(0x5,a[_0x53b42f(0x4a2)]),U(0x6,h['Inject'](a['LocaleService'])),U(0x7,h[_0x53b42f(0x295)](G))],exports[_0x53b42f(0x4b9)]),exports['CollaborationSessionService']=class extends a[_0x53b42f(0x18e)]{constructor(_0x4eaa85,_0x345e4d,_0x5aee16,_0x3860c6,_0x67cf99,_0x1b598b){const _0x40f657=_0x53b42f;super(),d(this,_0x40f657(0x42b),new g[(_0x40f657(0x28a))](void 0x0)),d(this,_0x40f657(0x1aa),new Map()),d(this,_0x40f657(0x41b),new g[(_0x40f657(0x28a))](0x0)),d(this,_0x40f657(0x183),this['_status$'][_0x40f657(0x1d6)]()),d(this,_0x40f657(0x2bf),!0x1),d(this,_0x40f657(0x241)),d(this,'_timeoutTimer'),d(this,_0x40f657(0x1f2)),d(this,'_retryCount',0x0),(this['_injector']=_0x4eaa85,this[_0x40f657(0x2bd)]=_0x345e4d,this['_messageService']=_0x5aee16,this['_logService']=_0x3860c6,this[_0x40f657(0x2a6)]=_0x67cf99,this[_0x40f657(0x1db)]=_0x1b598b);}get[_0x53b42f(0x187)](){const _0x4338bb=_0x53b42f;return this['_socket$'][_0x4338bb(0x47e)]();}[_0x53b42f(0x4df)](){const _0x37715f=_0x53b42f;super[_0x37715f(0x4df)](),this[_0x37715f(0x1aa)][_0x37715f(0x421)](_0x30fdad=>_0x30fdad[_0x37715f(0x4df)]()),this[_0x37715f(0x1aa)]['clear'](),this[_0x37715f(0x41b)][_0x37715f(0x146)]();}async['requireSession'](_0x1c1ef6){const _0x159203=_0x53b42f;if(this['_sessions'][_0x159203(0x378)](_0x1c1ef6))return this['_sessions'][_0x159203(0x3d4)](_0x1c1ef6);this['_tryEnsureSocket']();const _0x37ed7a=this[_0x159203(0x45d)]['createInstance'](exports[_0x159203(0x4b9)],_0x1c1ef6,this[_0x159203(0x42b)]['asObservable']());return this[_0x159203(0x1aa)]['set'](_0x1c1ef6,_0x37ed7a),_0x37ed7a;}[_0x53b42f(0x1ad)](){const _0x26316e=_0x53b42f;var _0x4174a3;const _0x524ede=(_0x4174a3=this[_0x26316e(0x2a6)]['getConfig'](_t))!=null?_0x4174a3:Ft;return this[_0x26316e(0x1db)][_0x26316e(0x39f)](_0x524ede);}[_0x53b42f(0x2df)](){const _0x56f251=_0x53b42f;try{const _0xae709b=this[_0x56f251(0x1ad)]();if(_0xae709b){const _0xd8b9a=_0xae709b['send'];_0xae709b['send']=_0x14d170=>(this[_0x56f251(0x29f)](),_0xd8b9a['apply'](_0xae709b,[_0x14d170])),_0xae709b['message$']['subscribe'](_0x48aa80=>this['_onMessage'](_0xae709b,_0x48aa80)),_0xae709b[_0x56f251(0x3ed)][_0x56f251(0x454)](T[_0x56f251(0x460)](0x1))[_0x56f251(0x492)](_0x3946c8=>this['_logService'][_0x56f251(0x150)](_0x56f251(0x4da),_0x3946c8)),_0xae709b['open$']['pipe'](T[_0x56f251(0x460)](0x1))[_0x56f251(0x492)](()=>{const _0x32f0ab=_0x56f251;this[_0x32f0ab(0x29a)](_0xae709b);}),_0xae709b[_0x56f251(0x24c)][_0x56f251(0x454)](T[_0x56f251(0x460)](0x1))[_0x56f251(0x492)](_0x2c5281=>{const _0x495f3a=_0x56f251;this['_logService'][_0x495f3a(0x240)]('[CollaborationSessionService]',_0x495f3a(0x45b),_0x2c5281),this[_0x495f3a(0x19c)]();});}}catch(_0x11ecfb){this['_logService']['error'](_0x11ecfb),this[_0x56f251(0x19c)]();}}['_onConnectionOpen'](_0x111f14){const _0x3e28c6=_0x53b42f;this[_0x3e28c6(0x42f)][_0x3e28c6(0x240)](_0x3e28c6(0x422),_0x3e28c6(0x267)),_0x111f14['send']({'cmd':b[_0x3e28c6(0x3e6)]}),this[_0x3e28c6(0x29f)]();}['_onConnectionFailed'](){const _0x243a63=_0x53b42f;var _0xbc81c7;this['_status$'][_0x243a63(0x414)](0x2),this[_0x243a63(0x42b)][_0x243a63(0x414)](null),this[_0x243a63(0x2a2)](),this[_0x243a63(0x2be)](),this['_socketReady']=!0x1,this[_0x243a63(0x196)]<((_0xbc81c7=this[_0x243a63(0x2a6)][_0x243a63(0x1d8)](Yt))!=null?_0xbc81c7:Kt)?(this[_0x243a63(0x2f7)](this[_0x243a63(0x196)]),this[_0x243a63(0x196)]+=0x1):this[_0x243a63(0x23f)][_0x243a63(0x138)]({'type':oe['MessageType'][_0x243a63(0x23a)],'content':this[_0x243a63(0x2bd)]['t'](_0x243a63(0x21f))});}[_0x53b42f(0x2f7)](_0x1e9a1f){const _0x221ef2=_0x53b42f;var _0x1bc02f;const _0x4d03ce=((_0x1bc02f=this[_0x221ef2(0x2a6)][_0x221ef2(0x1d8)](Wt))!=null?_0x1bc02f:Gt)*0x2**_0x1e9a1f;this['_messageService']['show']({'type':oe['MessageType'][_0x221ef2(0x376)],'content':this[_0x221ef2(0x2bd)]['t'](_0x221ef2(0x304))}),this[_0x221ef2(0x1f2)]=setTimeout(()=>{const _0x55ec59=_0x221ef2;this[_0x55ec59(0x2df)](),clearTimeout(this[_0x55ec59(0x1f2)]),this[_0x55ec59(0x1f2)]=null;},_0x4d03ce);}[_0x53b42f(0x29f)](){const _0x309368=_0x53b42f;var _0x387ffb;this[_0x309368(0x2be)](),this[_0x309368(0x241)]=setTimeout(()=>this[_0x309368(0x172)](),(_0x387ffb=this[_0x309368(0x2a6)]['getConfig'](ut))!=null?_0x387ffb:Vt);}[_0x53b42f(0x172)](){const _0x89c9d8=_0x53b42f;this[_0x89c9d8(0x187)]['send']({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x53b42f(0x479)](){const _0x15f63d=_0x53b42f;var _0x5dc0be;this[_0x15f63d(0x1cc)]=setTimeout(()=>this[_0x15f63d(0x19c)](),(_0x5dc0be=this[_0x15f63d(0x2a6)]['getConfig'](xe))!=null?_0x5dc0be:dt);}[_0x53b42f(0x409)](_0x3029cb,_0x495dc4){const _0x26c3ed=_0x53b42f,{cmd:_0xd249be}=_0x495dc4;_0xd249be===b['HELLO']&&!this[_0x26c3ed(0x2bf)]&&(_0x3029cb[_0x26c3ed(0x328)]=_0x495dc4[_0x26c3ed(0x169)][_0x26c3ed(0x328)],this[_0x26c3ed(0x42b)][_0x26c3ed(0x414)](_0x3029cb),this[_0x26c3ed(0x41b)][_0x26c3ed(0x414)](0x3),this['_socketReady']=!0x0),_0xd249be===b[_0x26c3ed(0x33f)]&&this[_0x26c3ed(0x2a2)](),this[_0x26c3ed(0x29f)]();}[_0x53b42f(0x2be)](){const _0x20988d=_0x53b42f;this[_0x20988d(0x241)]!=null&&(clearTimeout(this[_0x20988d(0x241)]),this[_0x20988d(0x241)]=null);}[_0x53b42f(0x2a2)](){const _0x2ae5bb=_0x53b42f;this[_0x2ae5bb(0x1cc)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x2ae5bb(0x1cc)]=null);}},exports[_0x53b42f(0x14a)]=pt([U(0x0,h['Inject'](h[_0x53b42f(0x1ac)])),U(0x1,h[_0x53b42f(0x295)](a['LocaleService'])),U(0x2,N[_0x53b42f(0x288)]),U(0x3,a['ILogService']),U(0x4,a[_0x53b42f(0x4a2)]),U(0x5,Be)],exports['CollaborationSessionService']);var as=Object[_0x53b42f(0x38a)],cs=Object[_0x53b42f(0x2a8)],ls=(_0x575b20,_0x488042,_0x442f28,_0x19d784)=>{const _0x3ec1f4=_0x53b42f;for(var _0x404fa5=_0x19d784>0x1?void 0x0:_0x19d784?cs(_0x488042,_0x442f28):_0x488042,_0x437f06=_0x575b20[_0x3ec1f4(0x419)]-0x1,_0x539356;_0x437f06>=0x0;_0x437f06--)(_0x539356=_0x575b20[_0x437f06])&&(_0x404fa5=(_0x19d784?_0x539356(_0x488042,_0x442f28,_0x404fa5):_0x539356(_0x404fa5))||_0x404fa5);return _0x19d784&&_0x404fa5&&as(_0x488042,_0x442f28,_0x404fa5),_0x404fa5;},se=(_0x1b44da,_0x205f11)=>(_0x38f552,_0x5013ae)=>_0x205f11(_0x38f552,_0x5013ae,_0x1b44da);exports[_0x53b42f(0x4b3)]=class extends a[_0x53b42f(0x18e)]{constructor(_0x503b9,_0x132aba,_0x3e43cc,_0x3b592a,_0x4b5970){const _0x2278ac=_0x53b42f;super(),d(this,_0x2278ac(0x305),new Map()),d(this,_0x2278ac(0x3ef),new Map()),d(this,_0x2278ac(0x2e4),!0x1),(this[_0x2278ac(0x2a6)]=_0x503b9,this['_localStorageService']=_0x132aba,this[_0x2278ac(0x26f)]=_0x3e43cc,this['_localeService']=_0x3b592a,this[_0x2278ac(0x311)]=_0x4b5970,this['_setupBeforeClosingHandler']());}[_0x53b42f(0x3be)](){const _0x2a9cea=_0x53b42f;this[_0x2a9cea(0x2e4)]=!0x0;}[_0x53b42f(0x3bc)](){const _0x551b6d=_0x53b42f;this[_0x551b6d(0x2e4)]=!0x1;}['dispose'](){const _0x37cd8a=_0x53b42f;this['_exhaustSavingTask']()[_0x37cd8a(0x3ab)](()=>super['dispose']());}async['loadOfflineData'](_0x33a6f9){const _0x5ae105=_0x53b42f;return this[_0x5ae105(0x2e4)]?null:this['_localStorageService'][_0x5ae105(0x49e)](Xe(_0x33a6f9));}async[_0x53b42f(0x345)](_0x561d58,_0x3e86fe){const _0x24fbaa=_0x53b42f;return!!this[_0x24fbaa(0x15b)][_0x24fbaa(0x441)](_0x561d58,_0x3e86fe);}[_0x53b42f(0x319)](_0x3fa2da,_0x44d9d1,_0x4b0843,_0x21b8b3){const _0x2c7b74=_0x53b42f,_0xc90134=this[_0x2c7b74(0x311)][_0x2c7b74(0x2af)](_0x3fa2da);this['_cachedData']['set'](_0x3fa2da,{'unitID':_0x3fa2da,'type':_0x44d9d1,'awaitingChangeset':_0x4b0843,'mutations':_0x21b8b3,'rev':_0xc90134}),this[_0x2c7b74(0x3ef)][_0x2c7b74(0x378)](_0x3fa2da)||this[_0x2c7b74(0x22c)](_0x3fa2da);}['_scheduleSaving'](_0x5c4c65){const _0x3ea760=_0x53b42f,_0x496d1e=this[_0x3ea760(0x2d7)]();_0x496d1e===0x0?this[_0x3ea760(0x27e)](_0x5c4c65):this[_0x3ea760(0x3ef)][_0x3ea760(0x2e0)](_0x5c4c65,setTimeout(()=>this[_0x3ea760(0x27e)](_0x5c4c65),_0x496d1e));}[_0x53b42f(0x2d7)](){const _0x3fa9ed=_0x53b42f;var _0x4a4c25;return(_0x4a4c25=this[_0x3fa9ed(0x2a6)][_0x3fa9ed(0x1d8)](St))!=null?_0x4a4c25:Xt;}['_saveCache'](_0x2f70de){const _0x322c45=_0x53b42f,_0x349ad3=this[_0x322c45(0x3ef)][_0x322c45(0x3d4)](_0x2f70de);return _0x349ad3!==void 0x0&&window[_0x322c45(0x4c0)](_0x349ad3),this[_0x322c45(0x15b)][_0x322c45(0x441)](Xe(_0x2f70de),this[_0x322c45(0x305)][_0x322c45(0x3d4)](_0x2f70de))[_0x322c45(0x3ab)](()=>this[_0x322c45(0x3ef)]['delete'](_0x2f70de));}async['_exhaustSavingTask'](){const _0x1dc040=_0x53b42f,_0x23f10e=[];this[_0x1dc040(0x3ef)]['forEach']((_0x201814,_0x2566cc)=>{const _0x2a9168=_0x1dc040;window[_0x2a9168(0x4c0)](_0x201814),_0x23f10e[_0x2a9168(0x1d7)](this[_0x2a9168(0x27e)](_0x2566cc)[_0x2a9168(0x3ab)](()=>{const _0x4bd562=_0x2a9168;this[_0x4bd562(0x3ef)][_0x4bd562(0x35b)](_0x2566cc);}));}),await Promise['all'](_0x23f10e);}[_0x53b42f(0x3e5)](){const _0x9159f6=_0x53b42f;this[_0x9159f6(0x1e9)](this[_0x9159f6(0x26f)][_0x9159f6(0x36b)](()=>{const _0xab856c=_0x9159f6;if(this['_saveTaskMap'][_0xab856c(0x22a)])return this['_localeService']['t'](_0xab856c(0x36c));}));}},exports['LocalCacheService']=ls([se(0x0,a['IConfigService']),se(0x1,a[_0x53b42f(0x2d8)]),se(0x2,N[_0x53b42f(0x34d)]),se(0x3,h['Inject'](a[_0x53b42f(0x1ba)])),se(0x4,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)]))],exports[_0x53b42f(0x4b3)]);function Xe(_0x34beaf){return'unit-cache-'+_0x34beaf;}const pe=h[_0x53b42f(0x195)](_0x53b42f(0x352));var Et=(_0x15c32c=>(_0x15c32c[_0x15c32c[_0x53b42f(0x2eb)]=0x0]=_0x53b42f(0x2eb),_0x15c32c[_0x15c32c[_0x53b42f(0x34a)]=0x1]=_0x53b42f(0x34a),_0x15c32c))(Et||{});const qe=0x7530,ze=_0x53b42f(0x284);class hs extends a[_0x53b42f(0x18e)]{constructor(){const _0x585a7b=_0x53b42f;super(),d(this,_0x585a7b(0x313),a[_0x585a7b(0x3a8)][_0x585a7b(0x1f7)]()),d(this,_0x585a7b(0x431),new Set()),d(this,_0x585a7b(0x4d5),new Map()),d(this,_0x585a7b(0x1fc),null),d(this,_0x585a7b(0x387),new Map()),d(this,_0x585a7b(0x47d),new Map()),this[_0x585a7b(0x243)]();}[_0x53b42f(0x4df)](){const _0x234639=_0x53b42f;super[_0x234639(0x4df)](),this[_0x234639(0x387)][_0x234639(0x421)]((_0x43ff4b,_0x2db898)=>this[_0x234639(0x480)](_0x2db898)),this['_heartbeatTimer']&&window[_0x234639(0x4be)](this['_heartbeatTimer']);}[_0x53b42f(0x37c)](_0x3c573a){const _0x54af6b=_0x53b42f;return this[_0x54af6b(0x451)](_0x3c573a)[_0x54af6b(0x454)](g[_0x54af6b(0x4dc)]());}['editingUnit'](_0x3b2339){const _0x281bce=_0x53b42f;this[_0x281bce(0x431)][_0x281bce(0x22a)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x281bce(0x1e5)](_0x3b2339),this[_0x281bce(0x1f8)]({'type':0x0,'memberID':this[_0x281bce(0x313)],'unitIDs':[_0x3b2339],'isForwarded':!0x1});}[_0x53b42f(0x33c)](_0x595e67){const _0x447920=_0x53b42f;this['_selfUnitIDs'][_0x447920(0x35b)](_0x595e67),this['_selfUnitIDs'][_0x447920(0x22a)]===0x0&&this[_0x447920(0x1fc)]&&window[_0x447920(0x4be)](this[_0x447920(0x1fc)]);}['_init'](){const _0x4fdb16=_0x53b42f;this['disposeWithMe'](a[_0x4fdb16(0x1bb)](g[_0x4fdb16(0x474)](window,_0x4fdb16(0x2a4))[_0x4fdb16(0x492)](_0x49ad76=>{const _0x4d00a4=_0x4fdb16;if(_0x49ad76[_0x4d00a4(0x4bd)]!==ze||!_0x49ad76[_0x4d00a4(0x163)])return;const _0x34a3df=JSON[_0x4d00a4(0x4b2)](_0x49ad76[_0x4d00a4(0x163)]);this[_0x4d00a4(0x3db)](_0x34a3df);}))),window[_0x4fdb16(0x158)](_0x4fdb16(0x2e6),()=>this[_0x4fdb16(0x1f8)]({'type':0x1,'memberID':this[_0x4fdb16(0x313)],'unitIDs':Array['from'](this[_0x4fdb16(0x431)])}));}[_0x53b42f(0x3db)](_0x2a3264){const _0x5bc7ed=_0x53b42f;switch(_0x2a3264[_0x5bc7ed(0x20c)]){case 0x0:this['_handleJoinEvent'](_0x2a3264);break;case 0x1:this[_0x5bc7ed(0x2f9)](_0x2a3264);break;case 0x2:this[_0x5bc7ed(0x191)](_0x2a3264);break;}}['_handleJoinEvent'](_0x3d660b){const _0x348965=_0x53b42f,{unitIDs:_0x412fe5,memberID:_0x1fac15,isForwarded:_0x4a713b}=_0x3d660b;_0x412fe5[_0x348965(0x421)](_0x41742b=>{const _0x3567bb=_0x348965;if(!_0x4a713b&&this[_0x3567bb(0x4d5)][_0x3567bb(0x378)](_0x41742b)&&this[_0x3567bb(0x451)](_0x41742b)[_0x3567bb(0x414)](0x1),!this[_0x3567bb(0x4d5)][_0x3567bb(0x378)](_0x41742b)||!this[_0x3567bb(0x4d5)][_0x3567bb(0x3d4)](_0x41742b)[_0x3567bb(0x378)](_0x1fac15)){const _0x4b9eb2=this['_unitOnClients']['get'](_0x41742b)||new Set();_0x4b9eb2[_0x3567bb(0x1e5)](_0x1fac15),this[_0x3567bb(0x4d5)][_0x3567bb(0x2e0)](_0x41742b,_0x4b9eb2),this[_0x3567bb(0x1cf)](_0x1fac15);}}),_0x4a713b||this[_0x348965(0x1f8)]({'type':0x0,'memberID':this[_0x348965(0x313)],'unitIDs':[...this[_0x348965(0x431)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4825d9){const _0x4fa61d=_0x53b42f;this[_0x4fa61d(0x480)](_0x4825d9);const _0xd4c7ee=window[_0x4fa61d(0x373)](()=>{const _0x32cfe9=_0x4fa61d;this['_unitOnClients'][_0x32cfe9(0x421)](_0x45ec9d=>{const _0x349afe=_0x32cfe9;_0x45ec9d[_0x349afe(0x35b)](_0x4825d9);});},qe*0x2);this[_0x4fa61d(0x387)]['set'](_0x4825d9,_0xd4c7ee);}['_removeClearOtherTimer'](_0x4e8123){const _0x4b4807=_0x53b42f;if(this[_0x4b4807(0x387)][_0x4b4807(0x378)](_0x4e8123)){const _0x13100b=this['_clearOtherTimers']['get'](_0x4e8123);_0x13100b&&window[_0x4b4807(0x4c0)](_0x13100b),this[_0x4b4807(0x387)][_0x4b4807(0x2e0)](_0x4e8123,null);}}['_handleLeaveEvent'](_0x433abd){const _0x32cbba=_0x53b42f,{memberID:_0x36b353,unitIDs:_0x45dbf9}=_0x433abd;_0x45dbf9[_0x32cbba(0x421)](_0x3bae8a=>{const _0x274b91=_0x32cbba;var _0x1936f0;const _0xb0c4a6=this[_0x274b91(0x4d5)]['get'](_0x3bae8a);_0xb0c4a6&&(_0xb0c4a6[_0x274b91(0x35b)](_0x36b353),(_0x1936f0=this[_0x274b91(0x451)](_0x3bae8a))==null||_0x1936f0[_0x274b91(0x414)](_0xb0c4a6['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x36b353);}['_handleHeartbeatEvent'](_0x21216d){const _0xfff94c=_0x53b42f;this[_0xfff94c(0x1cf)](_0x21216d['memberID']);}[_0x53b42f(0x1f8)](_0x2da05f){const _0xc4494d=_0x53b42f;localStorage[_0xc4494d(0x441)](ze,JSON[_0xc4494d(0x339)](_0x2da05f));}[_0x53b42f(0x2b4)](){const _0x14c59f=_0x53b42f;this[_0x14c59f(0x1fc)]=window[_0x14c59f(0x143)](()=>{const _0x20ec31=_0x14c59f;this[_0x20ec31(0x1f8)]({'type':0x2,'memberID':this[_0x20ec31(0x313)]});},qe);}[_0x53b42f(0x451)](_0x40f349){const _0x5393ed=_0x53b42f;return this[_0x5393ed(0x47d)]['has'](_0x40f349)||this['_unitStatus']['set'](_0x40f349,new g[(_0x5393ed(0x28a))](0x0)),this[_0x5393ed(0x47d)]['get'](_0x40f349);}}var _s=Object[_0x53b42f(0x38a)],us=Object[_0x53b42f(0x2a8)],ds=(_0x1f025d,_0x444462,_0x4c03e6,_0xf3b913)=>{const _0x4c90bd=_0x53b42f;for(var _0x3823ea=_0xf3b913>0x1?void 0x0:_0xf3b913?us(_0x444462,_0x4c03e6):_0x444462,_0x2bccea=_0x1f025d[_0x4c90bd(0x419)]-0x1,_0x4b6eab;_0x2bccea>=0x0;_0x2bccea--)(_0x4b6eab=_0x1f025d[_0x2bccea])&&(_0x3823ea=(_0xf3b913?_0x4b6eab(_0x444462,_0x4c03e6,_0x3823ea):_0x4b6eab(_0x3823ea))||_0x3823ea);return _0xf3b913&&_0x3823ea&&_s(_0x444462,_0x4c03e6,_0x3823ea),_0x3823ea;},Je=(_0x5a9006,_0x535fa6)=>(_0x2028c9,_0xdf2bec)=>_0x535fa6(_0x2028c9,_0xdf2bec,_0x5a9006);let ve=class{constructor(_0x209a44,_0x37b7e3){const _0x1fbbb9=_0x53b42f;this[_0x1fbbb9(0x45d)]=_0x209a44,this[_0x1fbbb9(0x2f1)]=_0x37b7e3;}[_0x53b42f(0x3ec)](_0x832f5e){const _0x5d8e9a=_0x53b42f;this[_0x5d8e9a(0x2b1)](_0x832f5e),this[_0x5d8e9a(0x1fa)](_0x832f5e);}[_0x53b42f(0x168)](_0x270f03){const _0xdc3ba6=_0x53b42f,_0x478781=this[_0xdc3ba6(0x45d)][_0xdc3ba6(0x3d4)](M[_0xdc3ba6(0x3fb)]),{redoCache:_0x10052f}=_0x478781[_0xdc3ba6(0x2a1)]();if(_0x10052f[_0xdc3ba6(0x419)]===0x0)return _0x270f03;let _0x19d9f8=a[_0xdc3ba6(0x3a8)][_0xdc3ba6(0x2dc)](_0x270f03['mutations'][0x0]);for(let _0x23d4bf=0x0;_0x23d4bf<_0x10052f['length'];_0x23d4bf++){const _0x32afa4={'id':_0xdc3ba6(0x1a1),'params':{..._0x10052f[_0x23d4bf]}},_0x5ce73c=this[_0xdc3ba6(0x2f1)][_0xdc3ba6(0x412)](_0x19d9f8,_0x32afa4,!0x1);if(u[_0xdc3ba6(0x231)](_0x5ce73c))throw _0x5ce73c[_0xdc3ba6(0x150)];_0x19d9f8=_0x5ce73c[_0xdc3ba6(0x24f)];}return{...a[_0xdc3ba6(0x3a8)][_0xdc3ba6(0x2dc)](_0x270f03),'mutations':[_0x19d9f8]};}['_transformUndoRedoStack'](_0x7689cb){const _0x4d35b2=_0x53b42f,_0x288ca5=this[_0x4d35b2(0x45d)][_0x4d35b2(0x3d4)](M[_0x4d35b2(0x3fb)]),{undoCache:_0xa76a11,redoCache:_0x312624}=_0x288ca5[_0x4d35b2(0x2a1)]();if(_0xa76a11[_0x4d35b2(0x419)]===0x0||_0x312624['length']===0x0)return;const _0x3b8d9f=[],_0x2543d3=[];let _0x3a4b87=a['Tools'][_0x4d35b2(0x2dc)](_0x7689cb['mutations'][0x0]),_0x6ec935=a[_0x4d35b2(0x3a8)][_0x4d35b2(0x2dc)](_0x7689cb['mutations'][0x0]);for(let _0x4361cc=_0xa76a11[_0x4d35b2(0x419)]-0x1;_0x4361cc>=0x0;_0x4361cc--){const _0x109fc9={'id':_0x4d35b2(0x1a1),'params':{..._0xa76a11[_0x4361cc]}},_0x2324db={'id':_0x4d35b2(0x1a1),'params':{..._0x312624[_0x4361cc]}},_0x365503=this[_0x4d35b2(0x2f1)][_0x4d35b2(0x412)](_0x3a4b87,_0x109fc9,!0x1),_0xa1278=this[_0x4d35b2(0x2f1)][_0x4d35b2(0x412)](_0x6ec935,_0x2324db,!0x1);if(u[_0x4d35b2(0x231)](_0x365503))throw _0x365503[_0x4d35b2(0x150)];if(u[_0x4d35b2(0x231)](_0xa1278))throw _0xa1278['error'];_0x3b8d9f[_0x4d35b2(0x3ca)](_0x365503[_0x4d35b2(0x2c7)]['params']),_0x2543d3[_0x4d35b2(0x3ca)](_0xa1278[_0x4d35b2(0x2c7)][_0x4d35b2(0x17b)]),_0x3a4b87=_0x365503['m1Prime'],_0x6ec935=_0xa1278[_0x4d35b2(0x24f)];}_0x288ca5[_0x4d35b2(0x293)]({'undoCache':_0x3b8d9f,'redoCache':_0x2543d3});}[_0x53b42f(0x1fa)](_0x2ac7a5){const _0x41722a=_0x53b42f,_0x6b46df=this[_0x41722a(0x45d)]['get'](M['IMEInputManagerService']),_0x1f2156=_0x6b46df['getActiveRange']();if(_0x1f2156==null)return;const _0x3f2b15=[{'id':_0x41722a(0x1a1),'params':{'unitId':_0x2ac7a5[_0x41722a(0x348)],'actions':null,'textRanges':[_0x1f2156]}}],_0x74530f=this[_0x41722a(0x2f1)][_0x41722a(0x33b)](_0x2ac7a5,_0x3f2b15);if(!u[_0x41722a(0x40a)](_0x74530f))throw _0x74530f['error'];const _0x45749c=_0x74530f['m2Prime'][0x0]['params'][_0x41722a(0x461)];Array[_0x41722a(0x4af)](_0x45749c)&&_0x45749c[_0x41722a(0x419)]&&_0x6b46df['setActiveRange'](_0x45749c[0x0]);}};function _0x3fcd(){const _0x6a7245=['_docSyncEditingCollabCursorService','Optional','forEach','[CollaborationSessionService]','toString','removeParam','SheetSkeletonManagerService','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','[OfflineState]:\x20received\x20acknowledgement.','eventID','?url=','JSONX','_socket$','SetWorksheetActivateCommand','SNAPSHOT_INVALID_SNAPSHOT','message$','_logService','SEND_CHANGESET_TIMEOUT_KEY','_selfUnitIDs','handleIRemoveRow','init','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_toggleOffline','takeUntil','onRemoteChangeset','transformSelections','[FetchMissState]','fillStyle','onlyLocal','LICENSE_IMPORT_SIZE_EXCEEDED','url(#off-line-single_clip0_910_343)','onCommandExecuted','858810rRjLbv','getRoom','setItem','JOIN','_colorIndex','saveImage','UNKNOWN_CMD','_clearScheduledTask','off-line-single_clip0_910_343','SelectionManagerService','_initStatusListener','\x20-\x20','blue400','SNAPSHOT_URL_KEY','_entityInit$','string','_collabSessionService','LIVESHARE_NEW_HOST','_ensureSubject','HTTPService','serializeTextRange','pipe','_startSheetCollabCursor','deleteCollaborator','className','_acknowledgedAwaitingChangeset','handleDeleteRangeMoveUp','CHANGESET_ACK','socket\x20close','_lockTransition','_injector','interceptor','/universer-api/snapshot/','take','textRanges','name','NEW_CHANGESETS','_transformSelections','LOGIN_URL_KEY','@univerjs/engine-formula','HEARTBEAT_INTERVAL','popstate','loadDoc','AUTHZ_URL_KEY','_transformStack','contains','hovered','APPLY_NON_SEQUENTIAL_REVISION','_sheetSkeletonManagerService','onStarting','Rectangle','extend','bottom','fromEvent','getSheetBySheetId','IURLService','createInstance','range','_waitForHeartbeatResponse','result','_docTransformIMECacheService','_startCollaboration','_unitStatus','getValue','_drawAnchor','_removeClearOtherTimer','_config','editingUnit','getRelativeCoord','_imageSourceCache','BASE64','code','_uiPartsService','584petbQw','_onRemoteRejected','_themeService','ImageUploadStatusType','IUIPartsService','_cursor','_textBubble','state$','path','_collabCursorController','subscribe','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','on-line-single_clip0_910_349','collabCursorState$','_syncEditingCollabCursorService','resend','_getUndoStack','LIVESHARE_FETCH_OPERATIONS','_univerInstanceService','onlineStatusTitle','evenodd','remove','getItem','IDLE','flatMap','IUndoRedoService','IConfigService','patch','xlink:href','IRenderManagerService','_loadSheet','confirm','DisposableCollection','onSendChangeset','_checkMissing','getOwnPropertySymbols','gold400','updateMember','_memberService','isArray','pending','image/jpg','parse','LocalCacheService','listCollaborators','getMember','getTypeOfUnitAdded$','_onCursorUpdate','#fff','CollaborationSession','onMissingChangesets','Vector2','_sessionStatus$','key','clearInterval','_docSkeleton','clearTimeout','editing\x20status\x20changed\x20to','InsertColCommandId','ONLINE','RECV','Univer','RevisionService','DEFAULT_FILE_NAME','ILogService','RemoveColCommandId','_getLoginPath','@univerjs/network','body','save\x20fail\x20reason\x20is\x20','PERMISSION_REJ','_remoteChangesetQueue','_onJoinRoomEvent','permissionRejEvent','resolve','VIEW_MAIN','shareReplay','_unitOnClients','transformUndoRedo','values','ERROR_IMAGE_TYPE','getCollabCursors$','[CollaborationSessionService]:\x20socket\x20error','AWAITING','distinctUntilChanged','COLLAB_WEB_SOCKET_URL','clear','dispose','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','UPDATE_CURSOR','fillRule','startColumn','LEAVE','_online','_hover','c1Prime','href','parseProtocolChangeset','prototype','updateCollaborator','1em','show','collaboration.single-unit.warning','[CollaborationState]:\x20apply\x20error!','OnLifecycle','encodeURIComponent','awaiting','connection\x20error','open$','session','_updateState','UniverInstanceType','setInterval','_transitionLocked','row','complete','handleIRemoveCol','height','_clearRedo','CollaborationSessionService','getColor','DependentOn','CollaborationStatusDisplay','_disableEditing','_document','error','getDocObject','_httpService','replace','_onUserJoin','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformIME','Starting','addEventListener','skeleton','concatMap','_localStorageService','_schedule','transformByState','UniverCollaborationClientPlugin','c2Prime','getTypeOfUnitDisposed$','fetch_missing','[SyncedState]:\x20received\x20acknowledgement.','newValue','UNIVER_SHEET','combineLatest','enableAuthServer','UNAUTHENTICATED','transformRemoteChangeset','data','RefRangeService','_assignedColors','handleInsertRow','_draw','_handler','_clearLocalCache','_onLocalMutation','getCurrentUnitForType','_sendHeartbeat','_onUserLeave','ISnapshotServerService','fillText','addImageSourceCache','USERS_LEAVE','switchMap','_refRangeService','some','params','_getAnchorBounding','_createHandler','registerComponent','Unknown\x20user','LICENSE_MAX_UNITS_EXCEEDED','[CollaborationUndoRedoService]','_updateStatus','status$','Rect','hasOwnProperty','url(#on-line-single_clip0_910_349)','_socket','_commandService','collabStatus.conflict','json','DeleteRangeMoveUpCommandId','deserializeToCombResponse','catch','Disposable','getCoordByCell','MSG_FOR_ERROR','_handleHeartbeatEvent','round','collaborators','pushState','createIdentifier','_retryCount','IRemoteInstanceService','_renderManagerService','cursorInfo$','awaiting_with_pending','fromCollab','_onConnectionFailed','on-line-single','startsWith','_onConflict','endRow','doc.mutation.rich-text-editing','_collaborationController','closePath','NOT_COLLAB','offline','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_substituteUndoStack','_colorAssignService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_sessions','defs','Injector','_createSocket','_getUploadFileURL','map','_onRefRangeChange','getMemberID','_substituteRedoStack','file','OFFLINE','/object/','baseRev','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','univerjs-icon\x20univerjs-icon-','getSheetId','LocaleService','toDisposable','_labelPosition','getUnitOnRev','Ready','reject','WebSocketService','create','focused$','defIds','_initModules','ICommandService','saveSheetBlock','collabStatus.synced','originalMeta','collab-text-range-','awaitingChangeset','getCollabEntity','_timeoutTimer','onTransformSelections','LIVESHARE_TERMINATE','_scheduleClearOtherTimer','_getCtorByUniverType','_hovered','_onRemoteChangeset','MUTATION','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_socketMessageSubscription','asObservable','push','getConfig','toggleOffline','_lastPointer','_socketService','@univerjs/core','TEXT_RANGE_LAYER_INDEX','TextSelectionManagerService','1444044RqPlVv','_toggleOnline','override','Shape','\x20to\x20','NodePositionConvertToCursor','add','getAncestorScale','_urlService','ThemeService','disposeWithMe','_unitId','EXCHANGE_SIGN_URL_SERVER_URL_KEY','split','joinRsp','executeCommand','RETRY_CONNECTING_MAX_COUNT','roomMembers$','HEARTBEAT_TIMEOUT','_retryConnectingTimer','encode','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','onlineStatus','/role','generateRandomId','_send','getUnitId','_transformPreviousActiveRange','lineTo','_heartbeatTimer','text','resourceIDs','_getAPIPrefixPath','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','sessionStatus','FAIL','_change$','attrs','symbol','onPointerEnterObserver','/-/object/list','/new_changes','_pendingMutations','delay','history','type','failed\x20to\x20apply\x20missed\x20changesets!','_joinRoom','red300','_cursorInfo$','_hideTimer','_createInitialStateImpl','_onCursorDelete','_permissionService','_clearUndo','POST','_applyRemoteChangeset','COMPLETION_FINISHED','ERROR_EXCEED_SIZE','unitId','mutations','socketService','_getCurrentRevision','_sheetTransformSelectionsService','session.connection-failed','UNIVER_DOC','merge','sessionStatus$','location','purple300','@wendellhu/redi','IAuthzIoService','putCollaborators','debounceTime','APPLY_REVISION_CONFILICT','size','onMouseMove','_scheduleSaving','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_roomMembers$','_scene','DesktopCollaborationStatusDisplayController','isTransformMutationFailure','MoveRangeCommandId','transformChangesets','allowed','0\x200\x2016\x2016','CollaborationSocketService','_members','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','_getSheetObject','Error','@univerjs/sheets','icon','with','_exhaustRemoteChangesetQueue','_messageService','debug','_sendHeartbeatTimer','cmd','_init','/universer-api/oidc/authpage','includes','_handleHover','WorkbookEditablePermission','COMPRESS_MUTATION_APPLY','ensureActiveSheet','COLLAB_WEB_SOCKET_URL_KEY','collabStatus.offline','close$','_showConflictNotification','_getSendChangesetTimeout','m1Prime','FileId','auth.needGotoLoginAlert','selections','enableOfflineEditing','/unit/','event$','@univerjs/engine-render','PERMISSION_DENIED','isActive','unit','ITransformService','tag','getImageSourceCache','displayName','fetchMissingChangesets','b64DecodeUnicode','_getAPIPrefix','ICollaborationSocketService','online','SetSelectionsOperation','clipPath','DataLoaderController','state','socket\x20open.','roomInfos','_submitChangeset','UNIVER_SLIDE','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','subunit','_anchorDot','_updateURLWithCurrentState','_beforeCloseService','width','getTime','_roomMembers','setCurrentUser','[OfflineState]:\x20received\x20changeset.','submit\x20changeset\x20error!','title','LICENSE_EXPORT_SIZE_EXCEEDED','_collabCursorState$','send','_color','LIVESHARE_REQUEST_HOST','random','selection','_saveCache','31086209xTUkgH','_http','_fetchMissChangesets','DeleteRangeMoveLeftCommandId','trim','ACTIVE_UNIT_EVENT_CHANNEL','liveShareNewHost','put','InsertRangeMoveRightCommandId','IMessageService','mapDocumentTypeToUniverType','BehaviorSubject','onRemoteAck','_getSnapshotAPIPrefix','Error\x20on\x20receiving\x20event','_drawRange','_executeRemoteChangeset','_scheduleCollaborationTimeoutTimer','YUUMI_URL_COL_OUT_OF_RANGE','INGEST','setUndoRedoMutationParamsCache','UNKNOWN_CODE','Inject','createCollaborator','getSheetObject','Subject','_decreaseWaiting','_onConnectionOpen','[CollaborationSession]','_getScale','ranges','getCurrent','_rescheduleHeartbeatEvent','UserManagerService','getUndoRedoMutationParamsCache','_clearTimeoutTimer','entries','storage','EffectRefRangId','_configService','status','getOwnPropertyDescriptor','assign','_undoRedoService','close','HEARTBEAT_TIMEOUT_KEY','_eventUnsubscribe','_docStateChangeManagerService','getCurrentRevForDocument','APPLY_REJECT','_transformUndoRedoStack','CompressMutationService','append','_scheduleHeartbeat','replaceState','handleDeleteRangeMoveLeft','div','CommandType','_name','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_notificationService','roles','_localeService','_clearHeartbeatTimer','_socketReady','_startDocCollabCursor','actions','updatePermissionPoint','getMergeData','/universer-api/comb','from','sequenceExecute','m2Prime','[PendingState]:\x20received\x20acknowledgement.','FETCH_MISSING','/universer-api/snapshot','syncEditingCollabCursor','JOINING','substring','serializeRangeWithSheet','restore','useObservable','CHANGESET_REJ','handleInsertRangeMoveDown','/allowed','objectType','_compressMutationService','onload','_getSaveTimeout','ILocalStorageService','UUID','BuiltInUIPart','APPLY_PERMISSION_DENIED','deepClone','InsertSheetMutation','_getMergeRange','_tryEnsureSocket','set','4794727yiSNnS','LifecycleStages','COLORS','_disabled','drawWith','unload','createElement','_scheduleTimestamp','/resources','10FyWKuL','NO_OTHER_CLIENTS_EDITING','LocalUndoRedoService','appendMutation','PSEUDO_FETCH_MISSING_RESULT','urlChange$','filter','_transformService','_removeRoom','_anchor','color','getViewport','SetTextSelectionsOperation','_scheduleReconnection','InsertRowCommandId','_handleLeaveEvent','_type','UNDEFINED','registerRefRange','@univerjs/ui','pluginName','whenReady','change$','CollaborationController','@univerjs/docs','indexOf','session.will-retry','_cachedData','revision','collaMsg','parseChangesetToProtocol','objectID','DocStateChangeManagerService','_onRecvEvent','post','_waitCount','registerOnClose','RichTextEditingMutation','[DataLoaderController]','_revisionService','ws://127.0.0.1:8000/universer-api/comb/connect','_id','_onFetchMissResult','SUBMIT_CHANGESET','COLLAB_SUBMIT_CHANGESET_URL','concat','_docSkeletonManagerService','updateOfflineData','_isPermissionRej','90216QWPhRo','_onCombEvent','setAlpha','routeKey','onTransformRemoteChangesetByIMECache','HEADER_MENU','ERROR_IMAGE','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','univer-online','userID','toStringTag','currentSkeleton$','newCsEvent','memberID','LIVESHARE_OPERATION','HEARTBEAT_INTERVAL_KEY','svg','currentColor','SYNCED','_awaitingChangeset','csRejEvent','toRgbString','_updateLocalCache','setWaitCount','getRangePointData','forwardRef','/fetchmissing?from=','ImageSourceType','_syncEditingCollabCursor','onlineStatusIcon','stringify','PENDING','transformMutationsWithChangeset','disposeUnit','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_localCacheService','HEARTBEAT','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getCurrentUser','session.collaboration-timeout','idSuffix','handleInsertCol','saveOfflineData','_singleActiveUnitService','fill','unitID','COMPRESS_MUTATION_SEND','OTHER_CLIENTS_EDITING','_getRedoStack','[SyncedState]:\x20received\x20rejection.','IBeforeCloseService','roomMembers','localeService','searchParams','docStateChange$','univer-pro.collaboration-client.single-active-unit-service','Steady','endColumn','fetchThroughInterceptors','CONFLICT','/-/object/-/batch_allowed','getParam','getUniverSheetInstance','arc','delete','reverse','infoRsp','replaceTextRanges','dispose$','batchAllowed','makeDirty','AuthzIoHttpService','readAsDataURL','setParam','UniverCollaborationPlugin','labelPosition','TOO_MANY_REQUESTS','isEditing','getSelections','_queuedRemoteChangesets','registerBeforeClose','collaboration-client.offline-data-not-saved','_getDocObject','_transformIMECache','INotificationService','mergeOverrideWithDependencies','/block/','_entities','setTimeout','isTransformChangesetsSuccess','M0\x200H16V16H0z','Warning','handleMoveRange','has','_state','subUnitId','cursorInfo','getUnitStatus$','UNIVER_COLLABORATION_CLIENT_PLUGIN','IPermissionService','sheetId','_removeCollabCursors','none','/collaborator','deserializeRangeWithSheet','_docTransformSelectionsService','csAckEvent','requireSession','_clearOtherTimers','_render','_transformUndoredo','defineProperty','black','Workbook','WebURLService','permission.content','objects','IUniverInstanceService','toggleOnline','_loadDoc','setShapeProps','measureText','isPermissionRej','image/bmp','getCollabEntity$','_updateCollabCursors','InsertRangeMoveDownCommandId','not_collab','ColorKit','collabStatus.syncing','_unitID','getImage','createSocket','15etyqai','incrementRevForDocument','collaborationUniverTypes','_range','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','RxDisposable','_cursors','unknown','Tools','IHTTPImplementation','_collaborationPaused','then','?size=','image/png','url(#$1','univer-online-status-title','_event$','_onRemoteACK','INTERNAL_ERROR','_collaborationTimeoutTimer','UniverIcon','onPointerLeaveObserver','currentTheme$','_unlockTransition','SnapshotService','getInterceptPoints','enableSingleActiveInstanceLock','_state$','enableLocalCache','[UniverCollaborationClientPlugin]','disableLocalCache','removeMember','ThresholdInterceptorFactory','findNodePositionByCharIndex','_setupSubUnitSync','RegularPolygon','FromArray','getRenderById','colorChannel1','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','_incrementRevisionNumber','MessageType','unshift','USERS_ENTER','_sendingTimer','OffLineSingle','registerHTTPInterceptor','_snapshotService','_updateLocalCursor','_clearCollaborationTimeoutTimer','saveChangeset','_replaceFileID','get','NOT_FOUND','min','_userManagerService','changesets','521295JTaTAF','SNAPSHOT_HAS_BEEN_REMOVED','_handleEvent','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_initStatusComponent','onRemoteRej','LICENSE_DISTRO_REJECTED','_snapshotServerService','#FFF','conflict','@wendellhu/redi/react-bindings','addObject','_setupBeforeClosingHandler','HELLO','\x20in\x20_schedule.','_session','joinEvent','loadOfflineData','synced','transformIMECache','error$','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','_saveTaskMap','univer-offline','getOffsetConfig','_ws','DocSkeletonManagerService','call','top','/universer-api/authz','onMissedChangesetFetched','listRoles','univer-pro.collaboration-client-socket-service','getResourcesRequest','IMEInputManagerService','conflict.content','\x0aAfter:\x20','CollaborationEvent','FETCH_MISS','_HTTPService','567fxzGlv','_getSignURL','current','transform','[OfflineState]:\x20received\x20rejection.','UNRECOGNIZED','useRef','INVALID_ARGUMENT','_onMessage','isTransformMutationsWithChangesetSuccess','use','YUUMI_UNABLE_LOAD_URL','CONNECTOR_DATA_TOO_LARGE','24591vQlwvx','CHANGESET_REVISION_CONFILICT','assignAColorForMemberID','rev','transformMutation','_redoStacks','next','_updateSubUnitFromURLParams','children','onSyncEditingCollabCursor','[PendingState]:\x20unhandled\x20univer\x20type:\x20','length','UNIVER_UNKNOWN','_status$','...','_shapes','getFocusedUnit'];_0x3fcd=function(){return _0x6a7245;};return _0x3fcd();}ve=ds([Je(0x0,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),Je(0x1,u[_0x53b42f(0x25a)])],ve);var Ss=Object[_0x53b42f(0x38a)],vs=Object['getOwnPropertyDescriptor'],gs=(_0x523822,_0x2bf1da,_0x360861,_0x3e9b77)=>{const _0x326dcf=_0x53b42f;for(var _0x356d6f=_0x3e9b77>0x1?void 0x0:_0x3e9b77?vs(_0x2bf1da,_0x360861):_0x2bf1da,_0x1bea3a=_0x523822[_0x326dcf(0x419)]-0x1,_0x4f1a9c;_0x1bea3a>=0x0;_0x1bea3a--)(_0x4f1a9c=_0x523822[_0x1bea3a])&&(_0x356d6f=(_0x3e9b77?_0x4f1a9c(_0x2bf1da,_0x360861,_0x356d6f):_0x4f1a9c(_0x356d6f))||_0x356d6f);return _0x3e9b77&&_0x356d6f&&Ss(_0x2bf1da,_0x360861,_0x356d6f),_0x356d6f;},Ze=(_0x3fcdbd,_0x882490)=>(_0x5e73d9,_0x3fd4fa)=>_0x882490(_0x5e73d9,_0x3fd4fa,_0x3fcdbd);let ge=class{constructor(_0x445023,_0x32289c){const _0x23e425=_0x53b42f;this['_injector']=_0x445023,this[_0x23e425(0x2f1)]=_0x32289c;}[_0x53b42f(0x438)](_0x542c12){const _0x55c6aa=_0x53b42f;var _0x444159;const _0x33b767=this[_0x55c6aa(0x45d)][_0x55c6aa(0x3d4)](M[_0x55c6aa(0x1de)]),_0x4bedc0=(_0x444159=_0x33b767['getSelections']())!=null?_0x444159:[],_0x37c97c=_0x4bedc0==null?void 0x0:_0x4bedc0['map'](M[_0x55c6aa(0x453)]);if(_0x37c97c[_0x55c6aa(0x419)]===0x0)return;const _0xfcba4b=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x542c12['unitID'],'actions':null,'textRanges':_0x37c97c}}],_0x4f4217=this['_transformService'][_0x55c6aa(0x33b)](_0x542c12,_0xfcba4b);if(!u[_0x55c6aa(0x40a)](_0x4f4217))throw _0x4f4217[_0x55c6aa(0x150)];const _0x5ce101=_0x4f4217[_0x55c6aa(0x2c7)][0x0][_0x55c6aa(0x17b)][_0x55c6aa(0x461)];Array[_0x55c6aa(0x4af)](_0x5ce101)&&_0x5ce101['length']&&_0x33b767[_0x55c6aa(0x35e)](_0x5ce101,!0x1);}};ge=gs([Ze(0x0,h['Inject'](h[_0x53b42f(0x1ac)])),Ze(0x1,u[_0x53b42f(0x25a)])],ge);function Ct(_0x54461e){const _0x4baa48=_0x53b42f;let _0x3c16ae='';for(const _0xdd0ea5 of _0x54461e){const {startOffset:_0x2e0c6f,endOffset:_0x20aff8,isActive:_0x49e981}=_0xdd0ea5;_0x3c16ae[_0x4baa48(0x419)]&&(_0x3c16ae+=','),_0x3c16ae+=_0x2e0c6f+':'+_0x20aff8+':'+(_0x49e981?'1':'0');}return _0x3c16ae;}function fs(_0x264340){const _0x46eb40=_0x53b42f,_0x5bb6a5=_0x264340[_0x46eb40(0x1ec)](','),_0x5839df=[];for(const _0x435927 of _0x5bb6a5){const [_0x3e4853,_0x11e4a9,_0x42c988]=_0x435927[_0x46eb40(0x1ec)](':');_0x5839df['push']({'startOffset':Number(_0x3e4853),'endOffset':Number(_0x11e4a9),'collapsed':_0x3e4853===_0x11e4a9,'isActive':_0x42c988==='1'});}return _0x5839df[_0x46eb40(0x17a)](_0x550b72=>_0x550b72[_0x46eb40(0x258)])||(_0x5839df[0x0][_0x46eb40(0x258)]=!0x0),_0x5839df;}class Fe extends a[_0x53b42f(0x3a5)]{constructor(){const _0x48c98b=_0x53b42f;super(...arguments),d(this,'_collabCursorState$',new g[(_0x48c98b(0x28a))](null)),d(this,_0x48c98b(0x495),this[_0x48c98b(0x278)]['asObservable']());}[_0x53b42f(0x2cb)](_0x250672){const _0xedc93f=_0x53b42f,{unitID:_0xab8646,memberID:_0x1c32ef,textRanges:_0x1dbd1d}=_0x250672,_0x1d49e1=Ct(_0x1dbd1d),_0x188747={'unitID':_0xab8646,'memberID':_0x1c32ef,'selection':_0x1d49e1};this[_0xedc93f(0x278)][_0xedc93f(0x414)](_0x188747);}}var ms=Object['defineProperty'],Is=Object[_0x53b42f(0x2a8)],ps=(_0x3ab337,_0x2ba9fd,_0x46ec3f,_0x3b77e4)=>{const _0x6bed23=_0x53b42f;for(var _0x3bc1da=_0x3b77e4>0x1?void 0x0:_0x3b77e4?Is(_0x2ba9fd,_0x46ec3f):_0x2ba9fd,_0x5f4c2b=_0x3ab337[_0x6bed23(0x419)]-0x1,_0x2ee611;_0x5f4c2b>=0x0;_0x5f4c2b--)(_0x2ee611=_0x3ab337[_0x5f4c2b])&&(_0x3bc1da=(_0x3b77e4?_0x2ee611(_0x2ba9fd,_0x46ec3f,_0x3bc1da):_0x2ee611(_0x3bc1da))||_0x3bc1da);return _0x3b77e4&&_0x3bc1da&&ms(_0x2ba9fd,_0x46ec3f,_0x3bc1da),_0x3bc1da;},Qe=(_0x5debe8,_0xf0f884)=>(_0x561c07,_0x4dc907)=>_0xf0f884(_0x561c07,_0x4dc907,_0x5debe8);let fe=class{constructor(_0x123cea,_0x4daf07){this['_injector']=_0x123cea,this['_transformService']=_0x4daf07;}[_0x53b42f(0x438)](_0x12788b){const _0x163f60=_0x53b42f;var _0xfd02fb,_0x327b98,_0x31cff9,_0x33e0df;const _0x370196=this[_0x163f60(0x45d)][_0x163f60(0x3d4)](E[_0x163f60(0x448)]),{pluginName:_0x4e3ac1,unitId:_0x4cd636,sheetId:_0x1450be}=_0x370196[_0x163f60(0x29e)]()||{},_0x357d5e=(_0xfd02fb=_0x370196[_0x163f60(0x369)]())!=null?_0xfd02fb:[];if(_0x357d5e[_0x163f60(0x419)]===0x0||!_0x4e3ac1||!_0x4cd636||!_0x1450be)return;const _0x3e022d=[{'id':E[_0x163f60(0x263)]['id'],'params':{'unitId':_0x4cd636,'subUnitId':_0x1450be,'pluginName':_0x4e3ac1,'selections':a[_0x163f60(0x3a8)][_0x163f60(0x2dc)](_0x357d5e)}}],_0x2ce003=this[_0x163f60(0x2f1)][_0x163f60(0x33b)](_0x12788b,_0x3e022d);if(!u[_0x163f60(0x40a)](_0x2ce003))throw _0x2ce003['error'];const _0x4cb893=(_0x33e0df=(_0x31cff9=(_0x327b98=_0x2ce003[_0x163f60(0x2c7)][0x0])==null?void 0x0:_0x327b98['params'])==null?void 0x0:_0x31cff9[_0x163f60(0x252)])!=null?_0x33e0df:_0x357d5e;Array[_0x163f60(0x4af)](_0x4cb893)&&_0x4cb893[_0x163f60(0x419)]&&this['_injector'][_0x163f60(0x3d4)](a[_0x163f60(0x1c5)])[_0x163f60(0x1ee)](E['SetSelectionsOperation']['id'],{'unitId':_0x4cd636,'subUnitId':_0x1450be,'pluginName':_0x4e3ac1,'selections':_0x4cb893});}};fe=ps([Qe(0x0,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),Qe(0x1,u['ITransformService'])],fe);const Es=new Set([E[_0x53b42f(0x2dd)]['id']]);function Cs(_0x502356,_0x5f5128,_0x230671,_0x58a82c,_0x2f11c5){const _0x1d1114=_0x53b42f;var _0x1c6444,_0x2f0124,_0xcb04b8,_0x138087;const _0x43b751=[];for(const _0x564805 of _0x502356)if(Es['has'](_0x564805['id'])){if(_0x43b751[_0x1d1114(0x419)]>0x0)break;_0x43b751[_0x1d1114(0x1d7)](_0x564805);break;}else _0x43b751[_0x1d1114(0x1d7)](_0x564805);const _0x330b23=(_0x2f0124=(_0x1c6444=_0x2f11c5['getCurrentUser']())==null?void 0x0:_0x1c6444['userID'])!=null?_0x2f0124:_0x1d1114(0x3a7),_0x21b2ca=(_0x138087=(_0xcb04b8=_0x2f11c5[_0x1d1114(0x341)]())==null?void 0x0:_0xcb04b8[_0x1d1114(0x328)])!=null?_0x138087:_0x1d1114(0x3a7);return{'changeset':{'unitID':_0x5f5128,'type':u[_0x1d1114(0x289)](_0x230671['getUnitType'](_0x5f5128)),'baseRev':_0x58a82c[_0x1d1114(0x2af)](_0x5f5128),'revision':0x0,'userID':_0x330b23,'memberID':_0x21b2ca,'mutations':_0x43b751},'pendingMutations':_0x502356['slice'](_0x43b751['length'])};}function bs(_0x393bd9,_0x12f8f3,_0x5e2c90,_0x3051ed,_0x47d05a){const _0x97b1dd=_0x53b42f;var _0x5c26f3,_0x10a747,_0x23c089,_0x2445f1;const _0x35b2b6=[_0x393bd9['reduce']((_0x451d86,_0x2b7ef3)=>{const _0x3ff3a1=_0xe052;var _0x188d22;const {id:_0x49cc4d}=_0x451d86,{id:_0x4d63aa,type:_0x48cd9c}=_0x2b7ef3,_0x2ed3f6=(_0x188d22=_0x451d86['params'])!=null?_0x188d22:{'actions':null},_0x470a6a=_0x2b7ef3[_0x3ff3a1(0x17b)];if(_0x49cc4d&&_0x49cc4d!==_0x4d63aa)throw new Error(_0x3ff3a1(0x3dc)+_0x49cc4d+_0x3ff3a1(0x44a)+_0x4d63aa+'.');return{..._0x451d86,'id':_0x4d63aa,'type':_0x48cd9c,'params':{'unitId':_0x470a6a[_0x3ff3a1(0x21a)],'textRanges':_0x470a6a[_0x3ff3a1(0x461)],'actions':a[_0x3ff3a1(0x42a)]['compose'](_0x2ed3f6[_0x3ff3a1(0x2c1)],_0x470a6a['actions'])}};},{})],_0x343bdf=(_0x10a747=(_0x5c26f3=_0x47d05a[_0x97b1dd(0x341)]())==null?void 0x0:_0x5c26f3[_0x97b1dd(0x324)])!=null?_0x10a747:_0x97b1dd(0x3a7),_0xd98b74=(_0x2445f1=(_0x23c089=_0x47d05a[_0x97b1dd(0x341)]())==null?void 0x0:_0x23c089[_0x97b1dd(0x328)])!=null?_0x2445f1:_0x97b1dd(0x3a7);return{'changeset':{'unitID':_0x12f8f3,'type':u[_0x97b1dd(0x289)](_0x5e2c90['getUnitType'](_0x12f8f3)),'baseRev':_0x3051ed[_0x97b1dd(0x2af)](_0x12f8f3),'revision':0x0,'userID':_0x343bdf,'memberID':_0xd98b74,'mutations':_0x35b2b6},'pendingMutations':[]};}var Ts=Object[_0x53b42f(0x38a)],Rs=Object[_0x53b42f(0x2a8)],K=(_0x528795,_0x18e0c0,_0x3299f2,_0x290ccf)=>{const _0x1fc56a=_0x53b42f;for(var _0x2c4a26=_0x290ccf>0x1?void 0x0:_0x290ccf?Rs(_0x18e0c0,_0x3299f2):_0x18e0c0,_0x312116=_0x528795[_0x1fc56a(0x419)]-0x1,_0x4c494d;_0x312116>=0x0;_0x312116--)(_0x4c494d=_0x528795[_0x312116])&&(_0x2c4a26=(_0x290ccf?_0x4c494d(_0x18e0c0,_0x3299f2,_0x2c4a26):_0x4c494d(_0x2c4a26))||_0x2c4a26);return _0x290ccf&&_0x2c4a26&&Ts(_0x18e0c0,_0x3299f2,_0x2c4a26),_0x2c4a26;},f=(_0x10d30e,_0x1e2802)=>(_0x42b771,_0x11a0d2)=>_0x1e2802(_0x42b771,_0x11a0d2,_0x10d30e),w=(_0xe8caec=>(_0xe8caec[_0x53b42f(0x1a4)]=_0x53b42f(0x39a),_0xe8caec['SYNCED']=_0x53b42f(0x3eb),_0xe8caec[_0x53b42f(0x33a)]=_0x53b42f(0x4b0),_0xe8caec[_0x53b42f(0x4db)]=_0x53b42f(0x13d),_0xe8caec['AWAITING_WITH_PENDING']='awaiting_with_pending',_0xe8caec[_0x53b42f(0x3ff)]=_0x53b42f(0x161),_0xe8caec[_0x53b42f(0x356)]=_0x53b42f(0x3e2),_0xe8caec['OFFLINE']=_0x53b42f(0x1a5),_0xe8caec))(w||{});class X{constructor(_0x524ad8,_0x1c25ad,_0x5ca59a,_0x34df4a,_0x4ba316,_0x1dd843,_0x1144d7,_0x31e7df,_0x36e5f0){const _0x2a1971=_0x53b42f;d(this,_0x2a1971(0x32e),null),d(this,_0x2a1971(0x209),[]),(this[_0x2a1971(0x348)]=_0x524ad8,this[_0x2a1971(0x20c)]=_0x1c25ad,this['_handler']=_0x4ba316,this['_commandService']=_0x1dd843,this['_undoRedoService']=_0x1144d7,this[_0x2a1971(0x311)]=_0x31e7df,this[_0x2a1971(0x33e)]=_0x36e5f0,this['_awaitingChangeset']=_0x5ca59a,this[_0x2a1971(0x209)]=_0x34df4a);}['_checkMissing'](_0x187cf3){const _0x1a7fc7=_0x53b42f,_0x4995c8=this[_0x1a7fc7(0x311)][_0x1a7fc7(0x2af)](this[_0x1a7fc7(0x348)]);return _0x187cf3[_0x1a7fc7(0x306)]>_0x4995c8+0x1?(this[_0x1a7fc7(0x16e)][_0x1a7fc7(0x4ba)]({'from':_0x4995c8,'to':_0x187cf3[_0x1a7fc7(0x306)]-0x1}),!0x0):!0x1;}[_0x53b42f(0x389)](_0x11cef1){const _0x5510a7=_0x53b42f;this[_0x5510a7(0x2aa)]['transformUndoRedo'](this[_0x5510a7(0x348)],_0x11cef1);}[_0x53b42f(0x464)](_0x48b65b){const _0x3c168b=_0x53b42f;var _0x16f92d,_0x3fe3aa;(_0x3fe3aa=(_0x16f92d=this[_0x3c168b(0x16e)])[_0x3c168b(0x1cd)])==null||_0x3fe3aa['call'](_0x16f92d,_0x48b65b);}['_transformIMECache'](_0x3e3a29){const _0x2f94c7=_0x53b42f;var _0x5cc576,_0x4dd0a0;return(_0x4dd0a0=(_0x5cc576=this['_handler'])[_0x2f94c7(0x156)])==null?void 0x0:_0x4dd0a0[_0x2f94c7(0x3f4)](_0x5cc576,_0x3e3a29);}['_transformRemoteChangesetByIMECache'](_0x27a3ff){const _0x15cd8e=_0x53b42f;var _0x32f776,_0x421de8,_0x1f63f7;return(_0x1f63f7=(_0x421de8=(_0x32f776=this[_0x15cd8e(0x16e)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x421de8[_0x15cd8e(0x3f4)](_0x32f776,_0x27a3ff))!=null?_0x1f63f7:_0x27a3ff;}['_syncEditingCollabCursor'](_0x54ddfd){const _0x4adbce=_0x53b42f;var _0x211f8f,_0x1f9550;if(this['type']===j[_0x4adbce(0x220)]){const {unitID:_0x5b8851,mutations:_0x45f150,memberID:_0x340d70}=_0x54ddfd,_0xdcbece=_0x45f150[0x0][_0x4adbce(0x17b)][_0x4adbce(0x461)];Array['isArray'](_0xdcbece)&&_0xdcbece[_0x4adbce(0x419)]>0x0&&((_0x1f9550=(_0x211f8f=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x1f9550[_0x4adbce(0x3f4)](_0x211f8f,{'unitID':_0x5b8851,'memberID':_0x340d70,'textRanges':_0xdcbece}));}}[_0x53b42f(0x331)](){const _0x43a9ce=_0x53b42f;this['_localCacheService']['updateOfflineData'](this['unitID'],this[_0x43a9ce(0x20c)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x53b42f(0x21d)](){const _0x450251=_0x53b42f;return this['_revisionService']['getCurrentRevForDocument'](this[_0x450251(0x348)]);}['_incrementRevisionNumber'](){const _0x3abb1b=_0x53b42f;this[_0x3abb1b(0x311)][_0x3abb1b(0x3a1)](this[_0x3abb1b(0x348)]);}[_0x53b42f(0x28f)](_0x5e6932){const _0x25a2bb=_0x53b42f;var _0x1d4e94;const _0x2dc490=this['_transformRemoteChangesetByIMECache'](_0x5e6932),_0x4d1ec4=a[_0x25a2bb(0x2c6)](_0x2dc490[_0x25a2bb(0x21b)],this[_0x25a2bb(0x188)],{'fromCollab':!0x0});if(!_0x4d1ec4[_0x25a2bb(0x47a)])throw _0x4d1ec4[_0x25a2bb(0x150)]instanceof Error?_0x4d1ec4[_0x25a2bb(0x150)]:new Error((_0x1d4e94=_0x4d1ec4[_0x25a2bb(0x150)])!=null?_0x1d4e94:_0x25a2bb(0x13a));this[_0x25a2bb(0x36e)](_0x2dc490),this[_0x25a2bb(0x389)](_0x5e6932),this['_transformSelections'](_0x2dc490),this[_0x25a2bb(0x337)](_0x2dc490),this[_0x25a2bb(0x3c8)]();}}let ae=class extends X{constructor(_0x1fd683,_0x2a470e,_0x558353,_0x3349fa,_0x2cbc90,_0xe4e464,_0xd4e5f1,_0x127678,_0x2c12c1){const _0x156893=_0x53b42f;super(_0x1fd683,_0x2a470e,null,[],_0x558353,_0x127678,_0xd4e5f1,_0x3349fa,_0x2cbc90),d(this,_0x156893(0x2a7),_0x156893(0x3eb)),(this['_injector']=_0xe4e464,this['_logService']=_0x2c12c1);}['appendMutation'](_0x302040){const _0x4eb304=_0x53b42f,_0x140ad6=this['_injector'][_0x4eb304(0x477)]($,this[_0x4eb304(0x348)],this[_0x4eb304(0x20c)],[_0x302040],this[_0x4eb304(0x16e)]);return _0x140ad6[_0x4eb304(0x15c)](),_0x140ad6[_0x4eb304(0x331)](),_0x140ad6;}[_0x53b42f(0x437)](_0x53e2f4){const _0x4662e5=_0x53b42f;if(this['_checkMissing'](_0x53e2f4))return this[_0x4662e5(0x45d)][_0x4662e5(0x477)](x,this[_0x4662e5(0x348)],this[_0x4662e5(0x20c)],null,[],null,[_0x53e2f4],this['_handler']);try{return this[_0x4662e5(0x28f)](_0x53e2f4),this;}catch(_0x5e0b78){return this['_logService'][_0x4662e5(0x150)](_0x4662e5(0x3c7),_0x5e0b78),this;}}[_0x53b42f(0x28b)](){const _0x10e4e3=_0x53b42f;throw new Error(_0x10e4e3(0x162));}['onRemoteRej'](){const _0x1dea72=_0x53b42f;throw new Error(_0x1dea72(0x34c));}['toggleOffline'](){const _0x289b84=_0x53b42f;return this[_0x289b84(0x45d)][_0x289b84(0x477)](B,this[_0x289b84(0x348)],this[_0x289b84(0x20c)],null,[],this[_0x289b84(0x16e)]);}['toggleOnline'](){return this;}[_0x53b42f(0x497)](){const _0x312324=_0x53b42f;throw new Error(_0x312324(0x155));}};ae=K([f(0x3,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0x4,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0x5,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),f(0x6,a[_0x53b42f(0x4a1)]),f(0x7,a[_0x53b42f(0x1c5)]),f(0x8,a[_0x53b42f(0x4c8)])],ae);let $=class extends X{constructor(_0x379ef5,_0x1d3372,_0x367dce,_0x386293,_0x18aa94,_0x4ecc78,_0x31f8d4,_0x44b566,_0x356b76,_0x300f30,_0x2df54f,_0x195f19,_0x1059a7,_0x248b06){const _0x3ce29a=_0x53b42f;super(_0x379ef5,_0x1d3372,null,_0x367dce,_0x386293,_0x300f30,_0x248b06,_0x4ecc78,_0x31f8d4),d(this,_0x3ce29a(0x2a7),_0x3ce29a(0x4b0)),d(this,_0x3ce29a(0x2e8),null),d(this,_0x3ce29a(0x3cc),null),(this[_0x3ce29a(0x45d)]=_0x18aa94,this[_0x3ce29a(0x4ae)]=_0x44b566,this['_logService']=_0x356b76,this[_0x3ce29a(0x2a6)]=_0x2df54f,this[_0x3ce29a(0x2f1)]=_0x195f19,this[_0x3ce29a(0x49a)]=_0x1059a7);}[_0x53b42f(0x2ed)](_0x597df3){const _0x561c79=_0x53b42f;return this['_pendingMutations'][_0x561c79(0x1d7)](_0x597df3),this[_0x561c79(0x331)](),this;}[_0x53b42f(0x437)](_0xfc8e04){const _0x419394=_0x53b42f;if(this[_0x419394(0x4aa)](_0xfc8e04))return this[_0x419394(0x446)](),this['_injector'][_0x419394(0x477)](x,this[_0x419394(0x348)],this[_0x419394(0x20c)],null,this[_0x419394(0x209)],null,[_0xfc8e04],this['_handler']);try{const _0x309cdd=this[_0x419394(0x2f1)][_0x419394(0x33b)](_0xfc8e04,this[_0x419394(0x209)]);if(u['isTransformMutationsWithChangesetSuccess'](_0x309cdd)){const {c1Prime:_0x29ca1b,m2Prime:_0x489db4}=_0x309cdd;this['_executeRemoteChangeset'](_0x29ca1b);const _0x524538=this['_injector'][_0x419394(0x477)]($,this[_0x419394(0x348)],this[_0x419394(0x20c)],_0x489db4,this[_0x419394(0x16e)]);return this[_0x419394(0x446)](),_0x524538[_0x419394(0x15c)](this[_0x419394(0x2e8)]?Math['max'](0x0,new Date()[_0x419394(0x271)]()-this['_scheduleTimestamp']):this[_0x419394(0x24e)]()),_0x524538;}throw _0x309cdd['error'];}catch(_0x3573e6){return this['_logService'][_0x419394(0x150)](_0x3573e6),this[_0x419394(0x19f)](!0x1);}}[_0x53b42f(0x28b)](){const _0x48e932=_0x53b42f;throw new Error(_0x48e932(0x2c8));}[_0x53b42f(0x3de)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x53b42f(0x1d9)](){const _0x55db67=_0x53b42f;return this[_0x55db67(0x446)](),this['_injector']['createInstance'](B,this[_0x55db67(0x348)],this[_0x55db67(0x20c)],null,this['_pendingMutations'],this['_handler']);}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x15c)](_0x5bfdf8){const _0x315ead=_0x53b42f;_0x5bfdf8=_0x5bfdf8!=null?_0x5bfdf8:this[_0x315ead(0x24e)](),this[_0x315ead(0x2e8)]=new Date()[_0x315ead(0x271)](),this[_0x315ead(0x3cc)]=setTimeout(()=>{const _0x1ac6c2=_0x315ead;this[_0x1ac6c2(0x446)]();let _0x362e5d=null;switch(this[_0x1ac6c2(0x20c)]){case j[_0x1ac6c2(0x164)]:{_0x362e5d=Cs(this[_0x1ac6c2(0x209)],this[_0x1ac6c2(0x348)],this['_univerInstanceService'],this[_0x1ac6c2(0x311)],this[_0x1ac6c2(0x4ae)]);break;}case j['UNIVER_DOC']:{_0x362e5d=bs(this['_pendingMutations'],this[_0x1ac6c2(0x348)],this[_0x1ac6c2(0x49a)],this[_0x1ac6c2(0x311)],this[_0x1ac6c2(0x4ae)]);break;}default:throw new Error(_0x1ac6c2(0x418)+this[_0x1ac6c2(0x20c)]+_0x1ac6c2(0x3e7));}const {changeset:_0xf86de3,pendingMutations:_0x28ebea}=_0x362e5d;this[_0x1ac6c2(0x16e)][_0x1ac6c2(0x4a9)](_0xf86de3);const _0x4179ef=_0x28ebea[_0x1ac6c2(0x419)]?this[_0x1ac6c2(0x45d)][_0x1ac6c2(0x477)](H,this[_0x1ac6c2(0x348)],this[_0x1ac6c2(0x20c)],_0xf86de3,_0x28ebea,this['_handler']):this[_0x1ac6c2(0x45d)]['createInstance'](k,this[_0x1ac6c2(0x348)],this[_0x1ac6c2(0x20c)],_0xf86de3,this[_0x1ac6c2(0x16e)]);_0x4179ef['_updateLocalCache'](),this[_0x1ac6c2(0x16e)]['onStateChange'](this,_0x4179ef);},_0x5bfdf8);}[_0x53b42f(0x24e)](){const _0x23cfbf=_0x53b42f;var _0x4792de;return(_0x4792de=this[_0x23cfbf(0x2a6)][_0x23cfbf(0x1d8)](ht))!=null?_0x4792de:Bt;}[_0x53b42f(0x497)](){const _0x27882c=_0x53b42f;throw new Error(_0x27882c(0x200));}['_clearScheduledTask'](){const _0x36cbb4=_0x53b42f;this[_0x36cbb4(0x3cc)]!=null&&(clearTimeout(this[_0x36cbb4(0x3cc)]),this[_0x36cbb4(0x3cc)]=null);}['_onConflict'](_0x179301){const _0x926f5e=_0x53b42f;return this[_0x926f5e(0x446)](),this[_0x926f5e(0x45d)]['createInstance'](Y,this[_0x926f5e(0x348)],this['type'],null,this[_0x926f5e(0x209)],this[_0x926f5e(0x16e)],_0x179301);}};$=K([f(0x4,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),f(0x5,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0x6,h['Inject'](exports[_0x53b42f(0x4b3)])),f(0x7,h['Inject'](G)),f(0x8,a['ILogService']),f(0x9,a[_0x53b42f(0x1c5)]),f(0xa,a[_0x53b42f(0x4a2)]),f(0xb,u['ITransformService']),f(0xc,a['IUniverInstanceService']),f(0xd,a[_0x53b42f(0x4a1)])],$);let k=class extends X{constructor(_0x24e315,_0x56b974,_0x1f4623,_0x1f74cb,_0x3d8fda,_0x3a076e,_0x130b3f,_0x367b76,_0x2d1284,_0x4fa49d,_0x25da9b){const _0x8dabb0=_0x53b42f;super(_0x24e315,_0x56b974,_0x1f4623,[],_0x1f74cb,_0x367b76,_0x25da9b,_0x3a076e,_0x130b3f),d(this,_0x8dabb0(0x2a7),_0x8dabb0(0x13d)),(this['_injector']=_0x3d8fda,this['_logService']=_0x2d1284,this['_transformService']=_0x4fa49d);}['appendMutation'](_0x84b4fa){const _0xe07a3a=_0x53b42f,_0x427b55=this[_0xe07a3a(0x45d)][_0xe07a3a(0x477)](H,this['unitID'],this[_0xe07a3a(0x20c)],this['_awaitingChangeset'],[_0x84b4fa],this[_0xe07a3a(0x16e)]);return _0x427b55[_0xe07a3a(0x331)](),_0x427b55;}[_0x53b42f(0x437)](_0x2a7869){const _0x244e4f=_0x53b42f;if(this['_checkMissing'](_0x2a7869))return this[_0x244e4f(0x45d)][_0x244e4f(0x477)](x,this[_0x244e4f(0x348)],this[_0x244e4f(0x20c)],this[_0x244e4f(0x32e)],[],null,[_0x2a7869],this[_0x244e4f(0x16e)]);try{const _0x1a5d3d=this[_0x244e4f(0x2f1)][_0x244e4f(0x233)]([_0x2a7869],[this['_awaitingChangeset']],!0x1);if(u['isTransformChangesetsSuccess'](_0x1a5d3d)){const {c1Prime:_0x9b8da4,c2Prime:_0x1df567}=_0x1a5d3d;this[_0x244e4f(0x28f)](_0x9b8da4[0x0]),_0x1df567[0x0][_0x244e4f(0x1b6)]=this['_getCurrentRevision']();const _0x468869=this[_0x244e4f(0x45d)][_0x244e4f(0x477)](k,this['unitID'],this['type'],_0x1df567[0x0],this[_0x244e4f(0x16e)]);return _0x468869[_0x244e4f(0x331)](),_0x468869;}return this[_0x244e4f(0x19f)](!0x1);}catch(_0x159c0e){return this['_logService'][_0x244e4f(0x150)](_0x159c0e),this['_onConflict'](!0x1);}}[_0x53b42f(0x28b)](_0x471d2a){const _0xe378c7=_0x53b42f,_0x220e41=this[_0xe378c7(0x311)]['getCurrentRevForDocument'](this['unitID']);if(_0x471d2a[_0xe378c7(0x306)]<_0x220e41-0x1)return this;if(this[_0xe378c7(0x4aa)](_0x471d2a))return this[_0xe378c7(0x45d)][_0xe378c7(0x477)](x,this['unitID'],this[_0xe378c7(0x20c)],null,[],this[_0xe378c7(0x32e)],[],this[_0xe378c7(0x16e)]);this[_0xe378c7(0x3c8)]();const _0x43564f=this[_0xe378c7(0x45d)][_0xe378c7(0x477)](ae,this['unitID'],this['type'],this['_handler']);return _0x43564f[_0xe378c7(0x331)](),_0x43564f;}[_0x53b42f(0x3de)](_0x58e325){const _0x23fcdd=_0x53b42f;return this[_0x23fcdd(0x19f)](!!(_0x58e325!=null&&_0x58e325[_0x23fcdd(0x395)]));}[_0x53b42f(0x1d9)](){const _0x4381a7=_0x53b42f;return this[_0x4381a7(0x45d)][_0x4381a7(0x477)](B,this[_0x4381a7(0x348)],this[_0x4381a7(0x20c)],this['_awaitingChangeset'],[],this[_0x4381a7(0x16e)]);}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x497)](){const _0x54413b=_0x53b42f;this[_0x54413b(0x16e)][_0x54413b(0x4a9)](this[_0x54413b(0x32e)]);}['_onConflict'](_0x1a5b70){const _0x11d6a4=_0x53b42f;return this[_0x11d6a4(0x45d)][_0x11d6a4(0x477)](Y,this[_0x11d6a4(0x348)],this[_0x11d6a4(0x20c)],this[_0x11d6a4(0x32e)],[],this['_handler'],_0x1a5b70);}};k=K([f(0x4,h[_0x53b42f(0x295)](h['Injector'])),f(0x5,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0x6,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0x7,a[_0x53b42f(0x1c5)]),f(0x8,a['ILogService']),f(0x9,u[_0x53b42f(0x25a)]),f(0xa,a[_0x53b42f(0x4a1)])],k);let H=class extends X{constructor(_0x506b6e,_0x358c81,_0x3541a5,_0x557706,_0x54c1fe,_0x1b3851,_0x5ac0f2,_0x53e890,_0x34ec27,_0xf69445,_0x594f49,_0x24c4cc){const _0x325c10=_0x53b42f;super(_0x506b6e,_0x358c81,_0x3541a5,_0x557706,_0x54c1fe,_0x34ec27,_0x24c4cc,_0x5ac0f2,_0x53e890),d(this,_0x325c10(0x2a7),_0x325c10(0x19a)),(this[_0x325c10(0x45d)]=_0x1b3851,this[_0x325c10(0x42f)]=_0xf69445,this[_0x325c10(0x2f1)]=_0x594f49);}['appendMutation'](_0x50f44a){const _0x20f255=_0x53b42f;return this[_0x20f255(0x209)][_0x20f255(0x1d7)](_0x50f44a),this;}[_0x53b42f(0x437)](_0x386f67){const _0x450ffc=_0x53b42f;if(this['_checkMissing'](_0x386f67))return this['_injector'][_0x450ffc(0x477)](x,this[_0x450ffc(0x348)],this[_0x450ffc(0x20c)],this[_0x450ffc(0x32e)],this[_0x450ffc(0x209)],null,[_0x386f67],this[_0x450ffc(0x16e)]);try{const _0x1ae8e4=this[_0x450ffc(0x2f1)]['transformChangesets']([_0x386f67],[this['_awaitingChangeset']],!0x1);if(u[_0x450ffc(0x374)](_0x1ae8e4)){const {c1Prime:_0x46c3e6,c2Prime:_0x3d5646}=_0x1ae8e4,_0x1b69f0=this['_transformService']['transformMutationsWithChangeset'](_0x46c3e6[0x0],this['_pendingMutations']);if(u[_0x450ffc(0x40a)](_0x1b69f0)){const {c1Prime:_0x2b9a2b,m2Prime:_0x59cd04}=_0x1b69f0;return this['_executeRemoteChangeset'](_0x2b9a2b),_0x3d5646[0x0][_0x450ffc(0x1b6)]=this[_0x450ffc(0x21d)](),this[_0x450ffc(0x45d)][_0x450ffc(0x477)](H,this[_0x450ffc(0x348)],this[_0x450ffc(0x20c)],_0x3d5646[0x0],_0x59cd04,this[_0x450ffc(0x16e)]);}throw _0x1b69f0[_0x450ffc(0x150)];}throw _0x1ae8e4[_0x450ffc(0x150)];}catch(_0x41ac6e){return this['_logService'][_0x450ffc(0x150)](_0x41ac6e),this[_0x450ffc(0x19f)](!0x1);}}['onRemoteAck'](_0x310b5c){const _0x304578=_0x53b42f;if(this[_0x304578(0x4aa)](_0x310b5c))return this[_0x304578(0x45d)]['createInstance'](x,this[_0x304578(0x348)],this[_0x304578(0x20c)],null,this[_0x304578(0x209)],this[_0x304578(0x32e)],[],this[_0x304578(0x16e)]);this[_0x304578(0x3c8)]();const _0x5eff15=this[_0x304578(0x45d)][_0x304578(0x477)]($,this[_0x304578(0x348)],this[_0x304578(0x20c)],this[_0x304578(0x209)],this['_handler']);return _0x5eff15[_0x304578(0x15c)](),_0x5eff15[_0x304578(0x331)](),_0x5eff15;}[_0x53b42f(0x3de)](_0x45a1cb){const _0x57fa6b=_0x53b42f;return this[_0x57fa6b(0x19f)](!!(_0x45a1cb!=null&&_0x45a1cb['isPermissionRej']));}[_0x53b42f(0x1d9)](){const _0x19cdf7=_0x53b42f;return this[_0x19cdf7(0x45d)]['createInstance'](B,this[_0x19cdf7(0x348)],this[_0x19cdf7(0x20c)],this[_0x19cdf7(0x32e)],this[_0x19cdf7(0x209)],this[_0x19cdf7(0x16e)]);}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x497)](){const _0x13ddb9=_0x53b42f;this[_0x13ddb9(0x16e)][_0x13ddb9(0x4a9)](this[_0x13ddb9(0x32e)]);}[_0x53b42f(0x19f)](_0x1755d9){const _0xe38c14=_0x53b42f;return this[_0xe38c14(0x45d)][_0xe38c14(0x477)](Y,this[_0xe38c14(0x348)],this[_0xe38c14(0x20c)],null,this[_0xe38c14(0x209)],this[_0xe38c14(0x16e)],_0x1755d9);}};H=K([f(0x5,h['Inject'](h[_0x53b42f(0x1ac)])),f(0x6,h['Inject'](u['RevisionService'])),f(0x7,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0x8,a[_0x53b42f(0x1c5)]),f(0x9,a[_0x53b42f(0x4c8)]),f(0xa,u['ITransformService']),f(0xb,a[_0x53b42f(0x4a1)])],H);let Y=class extends X{constructor(_0x549ed2,_0x5e696a,_0x25308e,_0x128156,_0x4a09b3,_0x18704d=!0x1,_0x53377d,_0x39edde,_0x26e0d8,_0x44dc50,_0x25f7cb,_0x394d46,_0x548a22){const _0x17d25c=_0x53b42f;super(_0x549ed2,_0x5e696a,_0x25308e,_0x128156,_0x4a09b3,_0x39edde,_0x26e0d8,_0x25f7cb,_0x44dc50),d(this,_0x17d25c(0x2a7),_0x17d25c(0x3e2)),(this[_0x17d25c(0x31a)]=_0x18704d,this[_0x17d25c(0x214)]=_0x53377d,this[_0x17d25c(0x2bd)]=_0x394d46,this[_0x17d25c(0x2bb)]=_0x548a22,this[_0x17d25c(0x24d)](),this['_clearLocalCache'](),this[_0x17d25c(0x14e)]());}[_0x53b42f(0x2ed)](){return this;}[_0x53b42f(0x437)](){return this;}[_0x53b42f(0x28b)](){return this;}[_0x53b42f(0x3de)](){return this;}[_0x53b42f(0x1d9)](){return this;}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x497)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x53b42f(0x16f)](){const _0x9f25f6=_0x53b42f;this[_0x9f25f6(0x33e)][_0x9f25f6(0x319)](this['unitID'],this[_0x9f25f6(0x20c)],null,[]);}[_0x53b42f(0x24d)](){const _0x52c199=_0x53b42f;this[_0x52c199(0x31a)]?this['_notificationService'][_0x52c199(0x138)]({'title':this[_0x52c199(0x2bd)]['t']('permission.title'),'content':this[_0x52c199(0x2bd)]['t'](_0x52c199(0x38e)),'type':_0x52c199(0x150),'duration':0x0}):this['_notificationService'][_0x52c199(0x138)]({'title':this['_localeService']['t']('conflict.title'),'content':this[_0x52c199(0x2bd)]['t'](_0x52c199(0x3fc)),'type':'error','duration':0x0});}['_disableEditing'](){const _0x39e5e4=_0x53b42f;this['_permissionService'][_0x39e5e4(0x2c2)](new E['WorkbookEditablePermission'](this[_0x39e5e4(0x348)])['id'],!0x1);}};Y=K([f(0x6,h[_0x53b42f(0x295)](a[_0x53b42f(0x37e)])),f(0x7,a[_0x53b42f(0x1c5)]),f(0x8,a[_0x53b42f(0x4a1)]),f(0x9,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0xa,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0xb,h[_0x53b42f(0x295)](a[_0x53b42f(0x1ba)])),f(0xc,N[_0x53b42f(0x36f)])],Y);let B=class extends X{constructor(_0x3ae6da,_0x261139,_0x489e26,_0x21feff,_0x28f62b,_0x566cdc,_0x353d8e,_0x274487,_0x108abd,_0x14b896){const _0x50360f=_0x53b42f;super(_0x3ae6da,_0x261139,_0x489e26,_0x21feff,_0x28f62b,_0x108abd,_0x14b896,_0x353d8e,_0x274487),d(this,'status',_0x50360f(0x1a5)),this[_0x50360f(0x45d)]=_0x566cdc;}[_0x53b42f(0x2ed)](_0x5dfe46){const _0x2b5618=_0x53b42f;return this[_0x2b5618(0x209)][_0x2b5618(0x1d7)](_0x5dfe46),this[_0x2b5618(0x331)](),this;}['onRemoteChangeset'](_0x3ab07a){const _0x36b7f9=_0x53b42f;throw new Error(_0x36b7f9(0x274));}['onRemoteAck'](){const _0x54b3cb=_0x53b42f;throw new Error(_0x54b3cb(0x427));}[_0x53b42f(0x3de)](){const _0xe875ff=_0x53b42f;throw new Error(_0xe875ff(0x405));}[_0x53b42f(0x1d9)](){return this;}[_0x53b42f(0x391)](){const _0x53a12b=_0x53b42f,{_injector:_0x4f455c,_pendingMutations:_0x6e3971,_awaitingChangeset:_0xaf74d6,unitID:_0x5c5b47,_handler:_0x194f78,type:_0x549adf}=this,_0x27edff=bt(_0x4f455c,_0x5c5b47,_0x549adf,_0xaf74d6,_0x6e3971,_0x194f78);return _0x27edff instanceof $?_0x27edff[_0x53a12b(0x15c)]():(_0x27edff instanceof H||_0x27edff instanceof k)&&_0x27edff['resend'](),_0x27edff;}['resend'](){const _0x1ba837=_0x53b42f;throw new Error(_0x1ba837(0x33d));}};B=K([f(0x5,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),f(0x6,h[_0x53b42f(0x295)](u['RevisionService'])),f(0x7,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0x8,a[_0x53b42f(0x1c5)]),f(0x9,a['IUndoRedoService'])],B);let x=class extends X{constructor(_0x5dc55b,_0x35850d,_0x430a51,_0x5c6234,_0x85e21,_0x3801ad,_0x1bb670,_0x5d8127,_0x18c9a3,_0xb2aaba,_0x24e03a,_0x11c02f,_0xffab4f,_0x589641){const _0x15bd38=_0x53b42f;super(_0x5dc55b,_0x35850d,_0x430a51,_0x5c6234,_0x1bb670,_0x11c02f,_0xffab4f,_0x18c9a3,_0xb2aaba),d(this,_0x15bd38(0x2a7),'fetch_missing'),(this[_0x15bd38(0x458)]=_0x85e21,this['_queuedRemoteChangesets']=_0x3801ad,this[_0x15bd38(0x45d)]=_0x5d8127,this[_0x15bd38(0x42f)]=_0x24e03a,this[_0x15bd38(0x2f1)]=_0x589641);}[_0x53b42f(0x3f7)](_0x257f06){const _0x60850=_0x53b42f;try{const _0x5afdfc=[..._0x257f06,...this[_0x60850(0x36a)]],_0x139383=[this[_0x60850(0x32e)]||this[_0x60850(0x458)]]['filter'](_0x6a5945=>!!_0x6a5945);let _0x52bb38,_0x61941d;if(_0x139383[_0x60850(0x419)]){const _0xe9651f=this['_transformService'][_0x60850(0x233)](_0x5afdfc,_0x139383,!0x1);if(!u[_0x60850(0x374)](_0xe9651f))throw _0xe9651f[_0x60850(0x150)];_0x52bb38=_0xe9651f['c1Prime'],_0x61941d=_0xe9651f[_0x60850(0x15f)];}else _0x52bb38=_0x5afdfc,_0x61941d=[];let _0x31c17f=this[_0x60850(0x209)];_0x52bb38[_0x60850(0x421)](_0x4622d5=>{const _0x2580b7=_0x60850;let _0x47f15f;if(_0x31c17f[_0x2580b7(0x419)]){const _0x25df3c=this[_0x2580b7(0x2f1)][_0x2580b7(0x33b)](_0x4622d5,_0x31c17f);if(!u[_0x2580b7(0x40a)](_0x25df3c))throw _0x25df3c['error'];_0x47f15f=_0x25df3c[_0x2580b7(0x132)],_0x31c17f=_0x25df3c['m2Prime'];}else _0x47f15f=_0x4622d5;this[_0x2580b7(0x28f)](_0x47f15f);}),this['_acknowledgedAwaitingChangeset']&&this[_0x60850(0x3c8)](),this[_0x60850(0x32e)]&&_0x61941d[_0x60850(0x419)]&&(_0x61941d[0x0]['baseRev']=this[_0x60850(0x21d)]());let _0x221b76;if(this['_awaitingChangeset']&&_0x31c17f[_0x60850(0x419)]!==0x0)_0x221b76=this['_injector'][_0x60850(0x477)](H,this[_0x60850(0x348)],this[_0x60850(0x20c)],_0x61941d[0x0],_0x31c17f,this['_handler']);else{if(this[_0x60850(0x32e)]&&_0x31c17f['length']===0x0)_0x61941d[0x0][_0x60850(0x1b6)]=this[_0x60850(0x21d)](),_0x221b76=this[_0x60850(0x45d)][_0x60850(0x477)](k,this[_0x60850(0x348)],this['type'],_0x61941d[0x0],this['_handler']);else{if(_0x31c17f[_0x60850(0x419)]!==0x0){const _0x4cde74=this[_0x60850(0x45d)][_0x60850(0x477)]($,this['unitID'],this['type'],_0x31c17f,this[_0x60850(0x16e)]);_0x4cde74[_0x60850(0x15c)](),_0x221b76=_0x4cde74;}else _0x221b76=this[_0x60850(0x45d)][_0x60850(0x477)](ae,this[_0x60850(0x348)],this['type'],this[_0x60850(0x16e)]);}}return _0x221b76[_0x60850(0x331)](),_0x221b76;}catch(_0x30708d){return this[_0x60850(0x42f)][_0x60850(0x150)](_0x60850(0x439),_0x60850(0x20d),_0x30708d),this[_0x60850(0x45d)][_0x60850(0x477)](Y,this[_0x60850(0x348)],this[_0x60850(0x20c)],this[_0x60850(0x32e)],this[_0x60850(0x209)],this['_handler'],!0x1);}}[_0x53b42f(0x497)](){const _0x243b69=_0x53b42f;throw new Error(_0x243b69(0x1a9));}[_0x53b42f(0x2ed)](_0x1e03c6){const _0x498dc5=_0x53b42f;return this[_0x498dc5(0x209)][_0x498dc5(0x1d7)](_0x1e03c6),this;}[_0x53b42f(0x437)](_0x2f867b){const _0x2c7a41=_0x53b42f;return this['_queuedRemoteChangesets'][_0x2c7a41(0x1d7)](_0x2f867b),this;}[_0x53b42f(0x28b)](_0x19225f){const _0x51273e=_0x53b42f;if(this[_0x51273e(0x32e)])return this[_0x51273e(0x458)]=this[_0x51273e(0x32e)],this[_0x51273e(0x32e)]=null,this;throw new Error(_0x51273e(0x493));}[_0x53b42f(0x3de)](_0x172024){const _0x57aae8=_0x53b42f;return this[_0x57aae8(0x19f)](!!(_0x172024!=null&&_0x172024[_0x57aae8(0x395)]));}[_0x53b42f(0x1d9)](){const _0x187cde=_0x53b42f;return this[_0x187cde(0x45d)][_0x187cde(0x477)](B,this[_0x187cde(0x348)],this[_0x187cde(0x20c)],this[_0x187cde(0x32e)],this['_pendingMutations'],this[_0x187cde(0x16e)]);}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x19f)](_0x135d4f){const _0x155fa6=_0x53b42f;return this[_0x155fa6(0x45d)][_0x155fa6(0x477)](Y,this[_0x155fa6(0x348)],this[_0x155fa6(0x20c)],this[_0x155fa6(0x32e)],this[_0x155fa6(0x209)],this[_0x155fa6(0x16e)],_0x135d4f);}};x=K([f(0x7,h['Inject'](h[_0x53b42f(0x1ac)])),f(0x8,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0x9,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0xa,a[_0x53b42f(0x4c8)]),f(0xb,a[_0x53b42f(0x1c5)]),f(0xc,a['IUndoRedoService']),f(0xd,u['ITransformService'])],x);function bt(_0x2bbd74,_0x1ff0c6,_0x6a0732,_0x5ee26a,_0x242142,_0x3185d6){const _0x4396d2=_0x53b42f;return _0x5ee26a&&_0x242142[_0x4396d2(0x419)]?_0x2bbd74['createInstance'](H,_0x1ff0c6,_0x6a0732,_0x5ee26a,_0x242142,_0x3185d6):_0x5ee26a?_0x2bbd74['createInstance'](k,_0x1ff0c6,_0x6a0732,_0x5ee26a,_0x3185d6):_0x242142[_0x4396d2(0x419)]?_0x2bbd74[_0x4396d2(0x477)]($,_0x1ff0c6,_0x6a0732,_0x242142,_0x3185d6):_0x2bbd74[_0x4396d2(0x477)](ae,_0x1ff0c6,_0x6a0732,_0x3185d6);}var Os=Object['defineProperty'],Ds=Object['getOwnPropertyDescriptor'],Ee=(_0x17a36b,_0x98889e,_0x388dbb,_0x280c12)=>{const _0x36ad25=_0x53b42f;for(var _0x498e79=_0x280c12>0x1?void 0x0:_0x280c12?Ds(_0x98889e,_0x388dbb):_0x98889e,_0x46fe99=_0x17a36b[_0x36ad25(0x419)]-0x1,_0x3a6922;_0x46fe99>=0x0;_0x46fe99--)(_0x3a6922=_0x17a36b[_0x46fe99])&&(_0x498e79=(_0x280c12?_0x3a6922(_0x98889e,_0x388dbb,_0x498e79):_0x3a6922(_0x498e79))||_0x498e79);return _0x280c12&&_0x498e79&&Os(_0x98889e,_0x388dbb,_0x498e79),_0x498e79;},I=(_0x35fb10,_0x108bba)=>(_0x1447ab,_0x56b8bd)=>_0x108bba(_0x1447ab,_0x56b8bd,_0x35fb10);exports[_0x53b42f(0x301)]=class extends a[_0x53b42f(0x3a5)]{constructor(_0x3c628f,_0x2fc539,_0x32a2e7){const _0x5ca534=_0x53b42f;super(),d(this,_0x5ca534(0x372),new Map()),d(this,'_entityInit$',new g['Subject']()),(this['_injector']=_0x3c628f,this[_0x5ca534(0x44f)]=_0x2fc539,this[_0x5ca534(0x49a)]=_0x32a2e7,this['_init']());}[_0x53b42f(0x4df)](){const _0x3c6a05=_0x53b42f;super[_0x3c6a05(0x4df)](),this[_0x3c6a05(0x372)][_0x3c6a05(0x421)](_0x2b2d2e=>_0x2b2d2e[_0x3c6a05(0x4df)]()),this['_entities'][_0x3c6a05(0x4de)]();}[_0x53b42f(0x1cb)](_0x114565){const _0x246466=_0x53b42f;var _0x35e70b;return(_0x35e70b=this['_entities'][_0x246466(0x3d4)](_0x114565))!=null?_0x35e70b:null;}[_0x53b42f(0x397)](_0x27150a){const _0x49e314=_0x53b42f,_0x43dbf5=this['getCollabEntity'](_0x27150a);return _0x43dbf5?g['of'](_0x43dbf5):this[_0x49e314(0x44d)]['pipe'](T[_0x49e314(0x2f0)](_0x49d478=>_0x49d478['unitID']===_0x27150a));}[_0x53b42f(0x243)](){const _0x8b8849=_0x53b42f;this[_0x8b8849(0x49a)][_0x8b8849(0x4b6)](a['UniverInstanceType'][_0x8b8849(0x164)])[_0x8b8849(0x454)](g[_0x8b8849(0x436)](this[_0x8b8849(0x35f)]),T['delay'](0x10))[_0x8b8849(0x492)](async _0x530004=>{const _0x23559e=_0x8b8849,_0xfda19d=_0x530004[_0x23559e(0x1f9)](),_0x5ba5e0=await this[_0x23559e(0x47c)](_0xfda19d,j['UNIVER_SHEET']);this[_0x23559e(0x372)]['set'](_0xfda19d,_0x5ba5e0);}),this[_0x8b8849(0x49a)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x8b8849(0x220)])[_0x8b8849(0x454)](g[_0x8b8849(0x436)](this[_0x8b8849(0x35f)]),T[_0x8b8849(0x20a)](0x10))['pipe'](T[_0x8b8849(0x2f0)](_0x5bb6de=>!_0x5bb6de[_0x8b8849(0x1f9)]()[_0x8b8849(0x19e)]('__')))[_0x8b8849(0x492)](async _0x330d97=>{const _0x2d4560=_0x8b8849,_0x318e15=_0x330d97[_0x2d4560(0x1f9)](),_0x1caeb8=await this[_0x2d4560(0x47c)](_0x318e15,j[_0x2d4560(0x220)]);this[_0x2d4560(0x372)][_0x2d4560(0x2e0)](_0x318e15,_0x1caeb8);}),g[_0x8b8849(0x221)](this[_0x8b8849(0x49a)][_0x8b8849(0x160)](a[_0x8b8849(0x142)][_0x8b8849(0x164)]),this[_0x8b8849(0x49a)][_0x8b8849(0x160)](a[_0x8b8849(0x142)][_0x8b8849(0x220)]))[_0x8b8849(0x454)](g[_0x8b8849(0x436)](this[_0x8b8849(0x35f)]))[_0x8b8849(0x492)](_0x3d80ad=>{const _0x369f7b=_0x8b8849,_0x24fc12=_0x3d80ad['getUnitId'](),_0x23e387=this[_0x369f7b(0x372)][_0x369f7b(0x3d4)](_0x24fc12);_0x23e387&&(_0x23e387[_0x369f7b(0x4df)](),this[_0x369f7b(0x372)][_0x369f7b(0x35b)](_0x24fc12));});}async[_0x53b42f(0x47c)](_0x59c064,_0x1136ff){const _0x308638=_0x53b42f,_0x8de595=await this['_collabSessionService'][_0x308638(0x386)](_0x59c064),_0x8f926f=this[_0x308638(0x45d)][_0x308638(0x477)](this[_0x308638(0x1d0)](_0x1136ff),_0x59c064,_0x1136ff,_0x8de595);return await _0x8f926f[_0x308638(0x433)](),this[_0x308638(0x44d)]['next'](_0x8f926f),_0x8f926f;}[_0x53b42f(0x1d0)](_0x329ba8){const _0x68a1a7=_0x53b42f;switch(_0x329ba8){case j[_0x68a1a7(0x220)]:return Ue;case j['UNIVER_SHEET']:return ye;default:throw new Error(_0x68a1a7(0x1f4)+_0x329ba8);}}},exports[_0x53b42f(0x301)]=Ee([a[_0x53b42f(0x13b)](a[_0x53b42f(0x2e2)][_0x53b42f(0x157)],exports[_0x53b42f(0x301)]),I(0x0,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),I(0x1,h['Inject'](exports[_0x53b42f(0x14a)])),I(0x2,a[_0x53b42f(0x390)])],exports[_0x53b42f(0x301)]);let me=class extends a[_0x53b42f(0x3a5)]{constructor(_0xc89388,_0x574aab,_0x4cd9a8,_0x3268b8,_0x7f74c0,_0xf40171,_0x2cf67f,_0xa83f96,_0x5d76b3,_0x293bad,_0x50eac3,_0x5b87bb,_0x50f5e9){const _0x2f0702=_0x53b42f;super(),d(this,'_state$',new g[(_0x2f0702(0x28a))](null)),d(this,_0x2f0702(0x48f),this[_0x2f0702(0x3bb)]['asObservable']()),d(this,_0x2f0702(0x379)),d(this,_0x2f0702(0x3aa),!0x1),d(this,_0x2f0702(0x183),this[_0x2f0702(0x48f)][_0x2f0702(0x454)](T['map'](_0x3a4c87=>_0x3a4c87?_0x3a4c87['status']:w[_0x2f0702(0x1b4)]),T['shareReplay'](0x1))),d(this,'_transitionLocked',!0x1),d(this,_0x2f0702(0x4cf),[]),(this[_0x2f0702(0x348)]=_0xc89388,this['_type']=_0x574aab,this[_0x2f0702(0x3e8)]=_0x4cd9a8,this[_0x2f0702(0x45d)]=_0x3268b8,this[_0x2f0702(0x33e)]=_0x7f74c0,this['_compressMutationService']=_0xf40171,this[_0x2f0702(0x2bd)]=_0x2cf67f,this['_revisionService']=_0xa83f96,this[_0x2f0702(0x42f)]=_0x5d76b3,this[_0x2f0702(0x188)]=_0x293bad,this[_0x2f0702(0x23f)]=_0x50eac3,this[_0x2f0702(0x214)]=_0x5b87bb,this['_singleActiveUnitService']=_0x50f5e9);}get[_0x53b42f(0x266)](){const _0x240381=_0x53b42f;return this[_0x240381(0x379)];}async[_0x53b42f(0x433)](){const _0x4285e4=_0x53b42f;if(this[_0x4285e4(0x266)])throw new Error(_0x4285e4(0x340));await this[_0x4285e4(0x243)]();}['pauseCollaboration'](){const _0x319d1c=_0x53b42f;return this[_0x319d1c(0x3aa)]=!0x0,a[_0x319d1c(0x1bb)](()=>{const _0x254400=_0x319d1c;this[_0x254400(0x3aa)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x37a214){const _0x327180=_0x53b42f;this[_0x327180(0x379)]=_0x37a214,this[_0x327180(0x3bb)][_0x327180(0x414)](_0x37a214);}async['_init'](){const _0x44f72d=_0x53b42f;var _0x3e2cf2;return this[_0x44f72d(0x141)](await this['_createInitialState']()),this[_0x44f72d(0x346)]&&((_0x3e2cf2=this[_0x44f72d(0x346)])==null||_0x3e2cf2[_0x44f72d(0x482)](this[_0x44f72d(0x348)]),this[_0x44f72d(0x1e9)](a[_0x44f72d(0x1bb)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x44f72d(0x348)])[_0x44f72d(0x492)](_0x2ea3b9=>{const _0x408e0e=_0x44f72d;this[_0x408e0e(0x42f)][_0x408e0e(0x240)]('[CollaborationEntity]',_0x408e0e(0x4c1),_0x2ea3b9),_0x2ea3b9===Et[_0x408e0e(0x34a)]?(this[_0x408e0e(0x23f)][_0x408e0e(0x138)]({'content':this[_0x408e0e(0x2bd)]['t'](_0x408e0e(0x139)),'type':oe[_0x408e0e(0x3c9)][_0x408e0e(0x376)]}),this[_0x408e0e(0x214)][_0x408e0e(0x2c2)](new E[(_0x408e0e(0x247))](this[_0x408e0e(0x348)])['id'],!0x1)):this[_0x408e0e(0x214)][_0x408e0e(0x2c2)](new E['WorkbookEditablePermission'](this[_0x408e0e(0x348)])['id'],!0x0);})))),this[_0x44f72d(0x1e9)](a[_0x44f72d(0x1bb)](this['_session'][_0x44f72d(0x222)][_0x44f72d(0x492)](_0x35438d=>{const _0x3924b9=_0x44f72d;_0x35438d===W[_0x3924b9(0x4c3)]?this[_0x3924b9(0x1e0)]():_0x35438d===W[_0x3924b9(0x1b4)]&&this[_0x3924b9(0x435)]();}))),this[_0x44f72d(0x1e9)](a[_0x44f72d(0x1bb)](this[_0x44f72d(0x3e8)][_0x44f72d(0x255)][_0x44f72d(0x492)](_0x3bf767=>{const _0x3a7121=_0x44f72d;try{switch(_0x3bf767[_0x3a7121(0x428)]){case u[_0x3a7121(0x3fe)][_0x3a7121(0x463)]:{this[_0x3a7121(0x1d2)](u[_0x3a7121(0x134)](_0x3bf767[_0x3a7121(0x169)]));break;}case u[_0x3a7121(0x3fe)][_0x3a7121(0x45a)]:{this[_0x3a7121(0x3b1)](_0x3bf767[_0x3a7121(0x169)]);break;}case u[_0x3a7121(0x3fe)]['CHANGESET_REJ']:{this[_0x3a7121(0x489)]();break;}case u['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x3a7121(0x314)](_0x3bf767[_0x3a7121(0x169)][_0x3a7121(0x3d8)][_0x3a7121(0x1af)](_0x50e9f6=>u[_0x3a7121(0x134)](_0x50e9f6)));break;}case u['CollaborationEvent']['PERMISSION_REJ']:this[_0x3a7121(0x489)]({'isPermissionRej':!0x0});}}catch(_0x17beba){throw console[_0x3a7121(0x150)](_0x3a7121(0x28d),_0x17beba),_0x17beba;}}))),this[_0x44f72d(0x379)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x53b42f(0x45c)](){const _0x5803f6=_0x53b42f;if(this[_0x5803f6(0x144)])throw new Error(_0x5803f6(0x3ee));this[_0x5803f6(0x144)]=!0x0;}['_onLocalMutation'](_0xc2f1df){const _0x5d0537=_0x53b42f;this[_0x5d0537(0x45c)](),this['_updateState'](this['_state'][_0x5d0537(0x2ed)](_0xc2f1df)),this[_0x5d0537(0x3b7)]();}[_0x53b42f(0x1d2)](_0x44ba8d){const _0x1aaaac=_0x53b42f;if(!(_0x44ba8d[_0x1aaaac(0x306)]<=this[_0x1aaaac(0x311)][_0x1aaaac(0x2af)](this[_0x1aaaac(0x348)]))){if(this[_0x1aaaac(0x3aa)]){this[_0x1aaaac(0x4cf)][_0x1aaaac(0x1d7)](_0x44ba8d);return;}this[_0x1aaaac(0x217)](_0x44ba8d);}}[_0x53b42f(0x23e)](){const _0x3b9d06=_0x53b42f;this['_remoteChangesetQueue'][_0x3b9d06(0x421)](_0x44e988=>this[_0x3b9d06(0x217)](_0x44e988)),this[_0x3b9d06(0x4cf)]=[];}[_0x53b42f(0x217)](_0x1be7a8){const _0x126faa=_0x53b42f,_0x46b3ec=this['_compressMutationService'][_0x126faa(0x45e)][_0x126faa(0x355)](this[_0x126faa(0x2d5)][_0x126faa(0x45e)][_0x126faa(0x3b9)]()[_0x126faa(0x248)])(_0x1be7a8[_0x126faa(0x21b)],null)||_0x1be7a8['mutations'],_0x37d790={..._0x1be7a8,'mutations':_0x46b3ec};this['_lockTransition'](),this['_updateState'](this['_state'][_0x126faa(0x437)](_0x37d790)),this['_unlockTransition']();}['_onRemoteACK'](_0xf5f13c){const _0x5fdd64=_0x53b42f;this[_0x5fdd64(0x45c)](),this[_0x5fdd64(0x141)](this[_0x5fdd64(0x379)]['onRemoteAck'](_0xf5f13c)),this['_unlockTransition']();}['_onRemoteRejected'](_0x5135b5){const _0x551ec9=_0x53b42f;this['_lockTransition'](),this[_0x551ec9(0x141)](this['_state'][_0x551ec9(0x3de)](_0x5135b5)),this[_0x551ec9(0x3b7)]();}['_onFetchMissResult'](_0x1e757b){const _0x2d912e=_0x53b42f;if(!(this[_0x2d912e(0x379)]instanceof x))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x208178=_0x1e757b[_0x2d912e(0x1af)](_0x10266e=>{const _0x4c888d=_0x2d912e,_0x48710f=this[_0x4c888d(0x2d5)]['interceptor']['fetchThroughInterceptors'](this[_0x4c888d(0x2d5)][_0x4c888d(0x45e)][_0x4c888d(0x3b9)]()[_0x4c888d(0x248)])(_0x10266e['mutations'],null)||_0x10266e[_0x4c888d(0x21b)];return{..._0x10266e,'mutations':_0x48710f};});this[_0x2d912e(0x45c)](),this['_updateState'](this[_0x2d912e(0x379)]['onMissedChangesetFetched'](_0x208178)),this['_unlockTransition']();}[_0x53b42f(0x435)](){const _0x237269=_0x53b42f;this[_0x237269(0x45c)](),this[_0x237269(0x141)](this[_0x237269(0x379)][_0x237269(0x1d9)]()),this['_unlockTransition']();}[_0x53b42f(0x1e0)](){const _0x1d6327=_0x53b42f;this[_0x1d6327(0x45c)](),this[_0x1d6327(0x141)](this[_0x1d6327(0x379)]['toggleOnline']()),this['_unlockTransition']();}async['_createInitialState'](){return new Promise(_0x3d5f57=>{const _0xf129cf=_0xe052;this['_session']['sessionStatus$'][_0xf129cf(0x454)](T['take'](0x1))[_0xf129cf(0x492)](async _0x342e49=>{_0x3d5f57(await this['_createInitialStateImpl'](_0x342e49===W['ONLINE']));});});}['_createHandler'](){const _0x9ea427=_0x53b42f,_0x31722e=this[_0x9ea427(0x348)];return{'onStateChange':(_0x198bcf,_0x259feb)=>{const _0x4337e7=_0x9ea427;if(_0x198bcf!==this[_0x4337e7(0x379)])throw new Error(_0x4337e7(0x2ba)+_0x198bcf['status']+_0x4337e7(0x3fd)+_0x259feb[_0x4337e7(0x2a7)]+'\x0aCurrent:\x20'+this[_0x4337e7(0x379)][_0x4337e7(0x2a7)]);this['_updateState'](_0x259feb);},'onSendChangeset':_0x382907=>{const _0x407f92=_0x9ea427,_0xd4ffab={'eventID':u['CollaborationEvent'][_0x407f92(0x315)],'data':{'unitID':_0x382907['unitID'],'unitType':this[_0x407f92(0x2fa)],'changeset':_0x382907,'memberID':this[_0x407f92(0x3e8)][_0x407f92(0x1b1)]()}};this[_0x407f92(0x3e8)][_0x407f92(0x279)](_0xd4ffab,this['unitID']);},'onMissingChangesets':({from:_0xd7f2e6,to:_0x541a6d})=>{const _0x45a022=_0x9ea427;this[_0x45a022(0x42f)]['debug']('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0xd7f2e6+_0x45a022(0x1e3)+_0x541a6d);const _0x4fe19f={'eventID':u[_0x45a022(0x3fe)][_0x45a022(0x2c9)],'data':{'unitID':_0x31722e,'unitType':this['_type'],'from':_0xd7f2e6,'to':_0x541a6d}};this[_0x45a022(0x3e8)][_0x45a022(0x279)](_0x4fe19f,this['unitID']);}};}async[_0x53b42f(0x212)](_0x22df77){const _0x35b7f7=_0x53b42f;var _0x292f3b,_0xa9eb41;const _0x4a72cb=await this[_0x35b7f7(0x33e)][_0x35b7f7(0x3ea)](this[_0x35b7f7(0x348)]),_0x3a6422=(_0x292f3b=_0x4a72cb==null?void 0x0:_0x4a72cb[_0x35b7f7(0x21b)])!=null?_0x292f3b:[],_0x397dfe=(_0xa9eb41=_0x4a72cb==null?void 0x0:_0x4a72cb['awaitingChangeset'])!=null?_0xa9eb41:null,_0x53a027=this['unitID'];try{this['_replayCachedMutations'](_0x397dfe,_0x3a6422);}catch(_0x3c62f2){this['_logService'][_0x35b7f7(0x150)](_0x3c62f2);}const _0x297c5f=this['_createHandler']();if(_0x22df77){const _0x10f22e=bt(this[_0x35b7f7(0x45d)],_0x53a027,this[_0x35b7f7(0x2fa)],_0x397dfe,_0x3a6422,_0x297c5f);return _0x10f22e instanceof $?_0x10f22e[_0x35b7f7(0x15c)]():(_0x10f22e instanceof H||_0x10f22e instanceof k)&&_0x10f22e[_0x35b7f7(0x497)](),_0x10f22e;}return this[_0x35b7f7(0x45d)][_0x35b7f7(0x477)](B,_0x53a027,this[_0x35b7f7(0x2fa)],_0x397dfe,_0x3a6422,_0x297c5f);}['_replayCachedMutations'](_0x30a387,_0x13add7){const _0x3f3339=_0x53b42f;var _0x553a7e,_0x5535ef;const _0x2603dc=this[_0x3f3339(0x2d5)][_0x3f3339(0x45e)][_0x3f3339(0x355)](this['_compressMutationService'][_0x3f3339(0x45e)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x553a7e=_0x2603dc((_0x30a387==null?void 0x0:_0x30a387[_0x3f3339(0x21b)])||[],null))==null||_0x553a7e[_0x3f3339(0x421)](_0x51d8de=>this['_commandService'][_0x3f3339(0x1ee)](_0x51d8de['id'],_0x51d8de['params'])),(_0x5535ef=_0x2603dc(_0x13add7||[],null))==null||_0x5535ef[_0x3f3339(0x421)](_0x472e47=>this[_0x3f3339(0x188)][_0x3f3339(0x1ee)](_0x472e47['id'],_0x472e47[_0x3f3339(0x17b)]));}};me=Ee([I(0x3,h[_0x53b42f(0x295)](h['Injector'])),I(0x4,h['Inject'](exports[_0x53b42f(0x4b3)])),I(0x5,h[_0x53b42f(0x295)](u[_0x53b42f(0x2b2)])),I(0x6,h[_0x53b42f(0x295)](a[_0x53b42f(0x1ba)])),I(0x7,h[_0x53b42f(0x295)](u['RevisionService'])),I(0x8,a[_0x53b42f(0x4c8)]),I(0x9,a['ICommandService']),I(0xa,N[_0x53b42f(0x288)]),I(0xb,a[_0x53b42f(0x37e)]),I(0xc,h[_0x53b42f(0x420)](pe))],me);let Ue=class extends me{constructor(_0x1c9596,_0x5c741f,_0x1d06c9,_0x9261f9,_0x137d91,_0x1fa4dd,_0x38dbb3,_0x12f52a,_0x543a69,_0x51bf8a,_0x3dba87,_0x3c4c95,_0x7c18d7,_0x4b71ad,_0x15c8f3,_0x5cbe71,_0x2ed583){const _0x53d4b4=_0x53b42f;super(_0x1c9596,_0x5c741f,_0x1d06c9,_0x9261f9,_0x137d91,_0x1fa4dd,_0x38dbb3,_0x12f52a,_0x7c18d7,_0x4b71ad,_0x15c8f3,_0x5cbe71,_0x2ed583),this[_0x53d4b4(0x348)]=_0x1c9596,this[_0x53d4b4(0x20c)]=_0x5c741f,this[_0x53d4b4(0x140)]=_0x1d06c9,this[_0x53d4b4(0x2ae)]=_0x543a69,this[_0x53d4b4(0x47b)]=_0x51bf8a,this[_0x53d4b4(0x384)]=_0x3dba87,this[_0x53d4b4(0x41f)]=_0x3c4c95;}[_0x53b42f(0x17d)](){const _0x31bfbb=_0x53b42f,_0x81de06=super[_0x31bfbb(0x17d)]();return _0x81de06['onTransformIME']=_0x12dca2=>this[_0x31bfbb(0x47b)][_0x31bfbb(0x3ec)](_0x12dca2),_0x81de06[_0x31bfbb(0x1cd)]=_0x133f09=>this[_0x31bfbb(0x384)][_0x31bfbb(0x438)](_0x133f09),_0x81de06[_0x31bfbb(0x417)]=_0x49771c=>this[_0x31bfbb(0x41f)][_0x31bfbb(0x2cb)](_0x49771c),_0x81de06[_0x31bfbb(0x31f)]=_0x379143=>this[_0x31bfbb(0x47b)][_0x31bfbb(0x168)](_0x379143),_0x81de06;}async[_0x53b42f(0x243)](){const _0x550cf1=_0x53b42f,_0x42114a=await super['_init']();return this[_0x550cf1(0x2ae)][_0x550cf1(0x351)]['pipe'](g[_0x550cf1(0x436)](this['dispose$']))[_0x550cf1(0x492)](_0x1b4b30=>{const _0x579482=_0x550cf1;if(_0x1b4b30==null)return;const {unitId:_0x1f20cd,redoState:_0x3667c3,commandId:_0x498c1b}=_0x1b4b30;if(_0x1f20cd!==this[_0x579482(0x348)])return;const _0xf55923={'id':_0x498c1b,'type':a['CommandType'][_0x579482(0x1d3)],'params':{'unitId':_0x1f20cd,'actions':_0x3667c3[_0x579482(0x2c1)],'textRanges':null}};this[_0x579482(0x170)](_0xf55923);}),_0x42114a;}};Ue=Ee([I(0x3,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),I(0x4,h['Inject'](exports[_0x53b42f(0x4b3)])),I(0x5,h[_0x53b42f(0x295)](u[_0x53b42f(0x2b2)])),I(0x6,h[_0x53b42f(0x295)](a[_0x53b42f(0x1ba)])),I(0x7,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),I(0x8,h[_0x53b42f(0x295)](M[_0x53b42f(0x30a)])),I(0x9,h[_0x53b42f(0x295)](ve)),I(0xa,h['Inject'](ge)),I(0xb,h[_0x53b42f(0x295)](Fe)),I(0xc,a[_0x53b42f(0x4c8)]),I(0xd,a[_0x53b42f(0x1c5)]),I(0xe,N[_0x53b42f(0x288)]),I(0xf,a['IPermissionService']),I(0x10,h[_0x53b42f(0x420)](pe))],Ue);let ye=class extends me{constructor(_0x45f799,_0x3bdacc,_0x446359,_0x10eedc,_0x2bdcb1,_0xe0a6c2,_0x33bc32,_0xb17beb,_0x5bee76,_0xcb1c90,_0x56d450,_0x1d3694,_0x262bd8,_0x4360e0){const _0x205814=_0x53b42f;super(_0x45f799,_0x3bdacc,_0x446359,_0x10eedc,_0x2bdcb1,_0xe0a6c2,_0x33bc32,_0xb17beb,_0xcb1c90,_0x56d450,_0x1d3694,_0x262bd8,_0x4360e0),this[_0x205814(0x348)]=_0x45f799,this['type']=_0x3bdacc,this['session']=_0x446359,this[_0x205814(0x21e)]=_0x5bee76;}['_createHandler'](){const _0x7d4342=_0x53b42f,_0x2a4e99=super['_createHandler']();return _0x2a4e99['onTransformSelections']=_0xc550af=>this[_0x7d4342(0x21e)][_0x7d4342(0x438)](_0xc550af),_0x2a4e99;}async[_0x53b42f(0x243)](){const _0x39a605=_0x53b42f,_0x277a2b=await super['_init']();return this[_0x39a605(0x1e9)](this[_0x39a605(0x188)]['onCommandExecuted']((_0x5955da,_0xdb43ec)=>{const _0x4d1370=_0x39a605;if(_0x5955da[_0x4d1370(0x20c)]!==a[_0x4d1370(0x2b8)][_0x4d1370(0x1d3)]||_0xdb43ec!=null&&_0xdb43ec[_0x4d1370(0x19b)]||_0xdb43ec!=null&&_0xdb43ec[_0x4d1370(0x43b)])return;const _0x4b196a=_0x5955da[_0x4d1370(0x17b)];if((_0x4b196a==null?void 0x0:_0x4b196a[_0x4d1370(0x21a)])!==this[_0x4d1370(0x348)])return;const _0x5a7a7a=_0x5955da,_0x352fb0=this[_0x4d1370(0x2d5)][_0x4d1370(0x45e)]['fetchThroughInterceptors'](this[_0x4d1370(0x2d5)][_0x4d1370(0x45e)][_0x4d1370(0x3b9)]()[_0x4d1370(0x349)])([_0x5a7a7a],null)||[_0x5a7a7a];this[_0x4d1370(0x170)](_0x352fb0[0x0]);})),_0x277a2b;}};ye=Ee([I(0x3,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),I(0x4,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),I(0x5,h[_0x53b42f(0x295)](u['CompressMutationService'])),I(0x6,h['Inject'](a[_0x53b42f(0x1ba)])),I(0x7,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),I(0x8,h[_0x53b42f(0x295)](fe)),I(0x9,a['ILogService']),I(0xa,a[_0x53b42f(0x1c5)]),I(0xb,N[_0x53b42f(0x288)]),I(0xc,a[_0x53b42f(0x37e)]),I(0xd,h[_0x53b42f(0x420)](pe))],ye);const et=[_0x53b42f(0x224),'jiqing500','verdancy600',_0x53b42f(0x20f),_0x53b42f(0x44b),_0x53b42f(0x4ac)];class Ve extends a[_0x53b42f(0x18e)]{constructor(){const _0x2bda24=_0x53b42f;super(...arguments),d(this,_0x2bda24(0x16b),new Map()),d(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0xddd9ab){const _0x1e21da=_0x53b42f;if(this[_0x1e21da(0x16b)][_0x1e21da(0x378)](_0xddd9ab))return this['_assignedColors'][_0x1e21da(0x3d4)](_0xddd9ab);const _0x2f056a=et[this['_colorIndex']];return this[_0x1e21da(0x443)]=(this[_0x1e21da(0x443)]+0x1)%et[_0x1e21da(0x419)],this['_assignedColors'][_0x1e21da(0x2e0)](_0xddd9ab,_0x2f056a),_0x2f056a;}}var ws=Object[_0x53b42f(0x38a)],Ls=Object[_0x53b42f(0x2a8)],Ps=(_0x366b2a,_0x4ea6bd,_0x4124a5,_0x3fe4d1)=>{const _0x4be10b=_0x53b42f;for(var _0x5b648b=_0x3fe4d1>0x1?void 0x0:_0x3fe4d1?Ls(_0x4ea6bd,_0x4124a5):_0x4ea6bd,_0x396d48=_0x366b2a[_0x4be10b(0x419)]-0x1,_0xa368b4;_0x396d48>=0x0;_0x396d48--)(_0xa368b4=_0x366b2a[_0x396d48])&&(_0x5b648b=(_0x3fe4d1?_0xa368b4(_0x4ea6bd,_0x4124a5,_0x5b648b):_0xa368b4(_0x5b648b))||_0x5b648b);return _0x3fe4d1&&_0x5b648b&&ws(_0x4ea6bd,_0x4124a5,_0x5b648b),_0x5b648b;},q=(_0x32ad99,_0x38ef02)=>(_0x211579,_0x1dd727)=>_0x38ef02(_0x211579,_0x1dd727,_0x32ad99);function _0xe052(_0x99e822,_0x2a01ec){const _0x3fcd71=_0x3fcd();return _0xe052=function(_0xe052ad,_0x7319f3){_0xe052ad=_0xe052ad-0x131;let _0x5befef=_0x3fcd71[_0xe052ad];return _0x5befef;},_0xe052(_0x99e822,_0x2a01ec);}const Us=0x12c,ys=0x64,Ms=()=>{let _0x1fa06b=[],_0x2ff4ba=!0x1;return _0x1afa47=>{_0x1fa06b['push'](_0x1afa47),_0x2ff4ba||(_0x2ff4ba=!0x0,setTimeout(()=>{_0x1fa06b['forEach'](_0x15a0f4=>_0x15a0f4()),_0x1fa06b=[],_0x2ff4ba=!0x1;}));};};let Me=class extends a[_0x53b42f(0x3a5)]{constructor(_0x2510e6,_0x5730aa,_0x207a14,_0x2ef029,_0xa2ca54,_0x1af9cd,_0x1aff88,_0x278355){const _0x39eca4=_0x53b42f;super(),d(this,_0x39eca4(0x4e5),!0x1),d(this,_0x39eca4(0x243),!0x1),d(this,_0x39eca4(0x210),new g[(_0x39eca4(0x28a))](new Map())),d(this,_0x39eca4(0x199),this[_0x39eca4(0x210)][_0x39eca4(0x1d6)]()),d(this,_0x39eca4(0x22e),new g[(_0x39eca4(0x28a))]([])),d(this,_0x39eca4(0x1f0),this[_0x39eca4(0x22e)][_0x39eca4(0x454)](g[_0x39eca4(0x228)](Us))),d(this,'_updateLocalCursor',He((_0x258fbe,_0x1153c7)=>{const _0x4f3255=_0x39eca4,_0x2facae={'eventID':u[_0x4f3255(0x3fe)][_0x4f3255(0x4e1)],'data':{'unitID':this[_0x4f3255(0x348)],'memberID':this[_0x4f3255(0x3e8)][_0x4f3255(0x1b1)](),'selection':Ye[_0x4f3255(0x2ce)](_0x258fbe,_0x1153c7[_0x4f3255(0x478)])}};this[_0x4f3255(0x3e8)][_0x4f3255(0x279)](_0x2facae,this[_0x4f3255(0x348)]);},ys)),(this[_0x39eca4(0x348)]=_0x2510e6,this['_session']=_0x5730aa,this['_injector']=_0x207a14,this['_colorAssignService']=_0x2ef029,this['_memberService']=_0xa2ca54,this[_0x39eca4(0x49a)]=_0x1af9cd,this[_0x39eca4(0x188)]=_0x1aff88,this[_0x39eca4(0x179)]=_0x278355);}get[_0x53b42f(0x37b)](){const _0x9d66a4=_0x53b42f;return this[_0x9d66a4(0x210)][_0x9d66a4(0x47e)]();}get[_0x53b42f(0x34e)](){const _0x119a60=_0x53b42f;return this[_0x119a60(0x22e)][_0x119a60(0x47e)]();}[_0x53b42f(0x4df)](){const _0x2b3395=_0x53b42f;super[_0x2b3395(0x4df)](),this[_0x2b3395(0x210)]['next'](new Map()),this[_0x2b3395(0x210)][_0x2b3395(0x146)](),this[_0x2b3395(0x22e)][_0x2b3395(0x414)]([]),this['_roomMembers$']['complete']();}[_0x53b42f(0x433)](){const _0x1d7f32=_0x53b42f;this[_0x1d7f32(0x243)]||(this[_0x1d7f32(0x243)]=!0x0,this[_0x1d7f32(0x3e8)]['sessionStatus$'][_0x1d7f32(0x454)](g[_0x1d7f32(0x436)](this[_0x1d7f32(0x35f)]))['subscribe'](_0x1180bc=>{const _0x24fe50=_0x1d7f32;_0x1180bc===W[_0x24fe50(0x4c3)]?this[_0x24fe50(0x1e0)]():this[_0x24fe50(0x435)]();}),this['_session'][_0x1d7f32(0x255)][_0x1d7f32(0x454)](g[_0x1d7f32(0x436)](this[_0x1d7f32(0x35f)]))[_0x1d7f32(0x492)](_0x3eaf5c=>{const _0x2cc510=_0x1d7f32,_0x2d834c=_0x3eaf5c[_0x2cc510(0x428)];_0x2d834c===u[_0x2cc510(0x3fe)][_0x2cc510(0x4e1)]&&this[_0x2cc510(0x4b7)](_0x3eaf5c),_0x2d834c===u[_0x2cc510(0x3fe)][_0x2cc510(0x177)]&&this[_0x2cc510(0x213)](_0x3eaf5c);}),this[_0x1d7f32(0x1b0)](),this[_0x1d7f32(0x1e9)](this[_0x1d7f32(0x188)][_0x1d7f32(0x43e)](_0x3356ce=>{const _0x2c4235=_0x1d7f32;if(this[_0x2c4235(0x4e5)]&&_0x3356ce['id']===E[_0x2c4235(0x263)]['id']&&_0x3356ce['params']['unitId']===this[_0x2c4235(0x348)]){const _0x141e0c=_0x3356ce['params'];this['_updateLocalCursor'](_0x141e0c[_0x2c4235(0x37a)],_0x141e0c[_0x2c4235(0x252)][0x0]);}})));}[_0x53b42f(0x4b7)](_0x272c8b){const _0x16d2a7=_0x53b42f;var _0x2441ef,_0x5c689a;const {memberID:_0x1a0b5e,selection:_0x5b23d6}=_0x272c8b[_0x16d2a7(0x169)],{sheetName:_0x2df720,range:_0x155d1f}=Ye[_0x16d2a7(0x383)](_0x5b23d6),_0x3194ec={'name':(_0x5c689a=(_0x2441ef=this[_0x16d2a7(0x4ae)][_0x16d2a7(0x4b5)](this['unitID'],_0x1a0b5e))==null?void 0x0:_0x2441ef[_0x16d2a7(0x462)])!=null?_0x5c689a:_0x16d2a7(0x17f),'range':this[_0x16d2a7(0x2de)](_0x2df720,_0x155d1f),'sheetID':_0x2df720,'color':this[_0x16d2a7(0x1a8)]['assignAColorForMemberID'](_0x1a0b5e),'selection':_0x5b23d6},_0x47bd81=this[_0x16d2a7(0x37b)];_0x47bd81['set'](_0x1a0b5e,_0x3194ec),this['_cursorInfo$'][_0x16d2a7(0x414)](_0x47bd81);}['_onCursorDelete'](_0x24a2a1){const _0x1b4bf6=_0x53b42f,{memberID:_0x148b93}=_0x24a2a1[_0x1b4bf6(0x169)],_0x523150=this[_0x1b4bf6(0x37b)];_0x523150[_0x1b4bf6(0x35b)](_0x148b93),this[_0x1b4bf6(0x210)]['next'](_0x523150);}[_0x53b42f(0x2de)](_0x4fa6cb,_0x898b21){const _0x30653f=_0x53b42f;var _0x31d2e1,_0x29fa90;const _0x193861=(_0x29fa90=(_0x31d2e1=this[_0x30653f(0x49a)][_0x30653f(0x359)](this[_0x30653f(0x348)]))==null?void 0x0:_0x31d2e1[_0x30653f(0x475)](_0x4fa6cb))==null?void 0x0:_0x29fa90[_0x30653f(0x2c3)]();return(_0x193861==null?void 0x0:_0x193861['find'](_0x38fdb2=>a[_0x30653f(0x471)][_0x30653f(0x46c)](_0x38fdb2,_0x898b21)))||_0x898b21;}[_0x53b42f(0x1b0)](){const _0x88344d=_0x53b42f,_0x1a2397=new a[(_0x88344d(0x4a8))](),_0x28af22=Ms(),_0x51071a=()=>{const _0x1c1e94=_0x88344d;_0x1a2397[_0x1c1e94(0x4df)]();const _0x44bcb3=(_0xf9b00e,_0x47f5ac,_0xd0ae07,_0x3ff46a)=>{const _0x25c346=_0x1c1e94;let _0x551f77=[];switch(_0xf9b00e['id']){case E[_0x25c346(0x2a5)][_0x25c346(0x282)]:{_0x551f77=E[_0x25c346(0x2b6)](_0xf9b00e,_0x3ff46a);break;}case E['EffectRefRangId'][_0x25c346(0x18b)]:{_0x551f77=E[_0x25c346(0x459)](_0xf9b00e,_0x3ff46a);break;}case E['EffectRefRangId'][_0x25c346(0x4c2)]:{_0x551f77=E[_0x25c346(0x344)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)][_0x25c346(0x399)]:{_0x551f77=E[_0x25c346(0x2d2)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)][_0x25c346(0x287)]:{_0x551f77=E['handleInsertRangeMoveRight'](_0xf9b00e,_0x3ff46a);break;}case E['EffectRefRangId'][_0x25c346(0x2f8)]:{_0x551f77=E[_0x25c346(0x16c)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)][_0x25c346(0x232)]:{_0x551f77=E[_0x25c346(0x377)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)][_0x25c346(0x4c9)]:{_0x551f77=E[_0x25c346(0x147)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)]['RemoveRowCommandId']:{_0x551f77=E[_0x25c346(0x432)](_0xf9b00e,_0x3ff46a);break;}}const _0x5b7999=E['runRefRangeMutations'](_0x551f77,_0x3ff46a),_0x18ba8e=this[_0x25c346(0x37b)][_0x25c346(0x3d4)](_0x47f5ac);if(_0x18ba8e&&_0x5b7999){const _0x356af6={..._0x18ba8e,'range':_0x5b7999};this[_0x25c346(0x37b)][_0x25c346(0x2e0)](_0x47f5ac,_0x356af6),_0x28af22(()=>{const _0x28d0ad=_0x25c346,_0x12a5d8=this[_0x28d0ad(0x179)]['registerRefRange'](_0x5b7999,_0xd3a816=>(_0x12a5d8['dispose'](),_0x44bcb3(_0xd3a816,_0x47f5ac,_0xd0ae07,_0x5b7999)));_0x1a2397[_0x28d0ad(0x1e5)](_0x12a5d8);});}return{'redos':[],'undos':[]};};this[_0x1c1e94(0x37b)][_0x1c1e94(0x421)]((_0x2190ec,_0x77411c)=>{const _0x34045b=_0x1c1e94,{range:_0x1b5942,sheetID:_0x4a609f}=_0x2190ec,_0x54153=this[_0x34045b(0x179)][_0x34045b(0x2fc)](_0x1b5942,_0x176d22=>(_0x54153[_0x34045b(0x4df)](),_0x44bcb3(_0x176d22,_0x77411c,_0x4a609f,_0x1b5942)));_0x1a2397[_0x34045b(0x1e5)](_0x54153);});};this[_0x88344d(0x1e9)](a[_0x88344d(0x1bb)](this['_cursorInfo$'][_0x88344d(0x492)](()=>{_0x51071a();})));}[_0x53b42f(0x1e0)](){const _0x1e5bd1=_0x53b42f;var _0x476aee,_0x422403;if(this[_0x1e5bd1(0x4e5)]=!0x0,((_0x476aee=this['_univerInstanceService'][_0x1e5bd1(0x41e)]())==null?void 0x0:_0x476aee[_0x1e5bd1(0x1f9)]())!==this['unitID'])return;const _0x1fa637=(_0x422403=this[_0x1e5bd1(0x45d)]['get'](E[_0x1e5bd1(0x448)])[_0x1e5bd1(0x369)]())==null?void 0x0:_0x422403[0x0],_0x462fa6=this[_0x1e5bd1(0x49a)][_0x1e5bd1(0x171)](a[_0x1e5bd1(0x142)][_0x1e5bd1(0x164)])['getActiveSheet']();_0x1fa637&&_0x462fa6&&this['_updateLocalCursor'](_0x462fa6['getSheetId'](),_0x1fa637);}[_0x53b42f(0x435)](){const _0x3f9623=_0x53b42f;this[_0x3f9623(0x4e5)]=!0x1;}};Me=Ps([q(0x2,h[_0x53b42f(0x295)](h['Injector'])),q(0x3,h[_0x53b42f(0x295)](Ve)),q(0x4,h['Inject'](G)),q(0x5,a[_0x53b42f(0x390)]),q(0x6,a[_0x53b42f(0x1c5)]),q(0x7,h[_0x53b42f(0x295)](E[_0x53b42f(0x16a)]))],Me);var Ns=Object[_0x53b42f(0x38a)],As=Object[_0x53b42f(0x2a8)],js=(_0x361f6c,_0x328796,_0x3cd9b8,_0x4150eb)=>{const _0x1bfa5f=_0x53b42f;for(var _0x4f1179=_0x4150eb>0x1?void 0x0:_0x4150eb?As(_0x328796,_0x3cd9b8):_0x328796,_0xcb57ae=_0x361f6c[_0x1bfa5f(0x419)]-0x1,_0x2595e6;_0xcb57ae>=0x0;_0xcb57ae--)(_0x2595e6=_0x361f6c[_0xcb57ae])&&(_0x4f1179=(_0x4150eb?_0x2595e6(_0x328796,_0x3cd9b8,_0x4f1179):_0x2595e6(_0x4f1179))||_0x4f1179);return _0x4150eb&&_0x4f1179&&Ns(_0x328796,_0x3cd9b8,_0x4f1179),_0x4f1179;},V=(_0x29d5bb,_0x13b3d6)=>(_0x58c7e6,_0x34565a)=>_0x13b3d6(_0x58c7e6,_0x34565a,_0x29d5bb);const $s=0x12c,Hs=0x64;let Ne=class extends a[_0x53b42f(0x3a5)]{constructor(_0x13dbb9,_0x3790ff,_0x4f0694,_0x2b8760,_0x186c42,_0xd7f7ea,_0x220261,_0x3b9c60,_0x44847a){const _0xa6d173=_0x53b42f;super(),d(this,_0xa6d173(0x4e5),!0x1),d(this,_0xa6d173(0x243),!0x1),d(this,_0xa6d173(0x210),new g[(_0xa6d173(0x28a))](new Map())),d(this,'cursorInfo$',this[_0xa6d173(0x210)][_0xa6d173(0x1d6)]()),d(this,_0xa6d173(0x22e),new g[(_0xa6d173(0x28a))]([])),d(this,_0xa6d173(0x1f0),this[_0xa6d173(0x22e)][_0xa6d173(0x454)](g[_0xa6d173(0x228)]($s))),d(this,_0xa6d173(0x3d0),He(_0x318bbb=>{const _0x5b7d4c=_0xa6d173,_0x172b84={'eventID':u[_0x5b7d4c(0x3fe)][_0x5b7d4c(0x4e1)],'data':{'unitID':this[_0x5b7d4c(0x348)],'memberID':this['_session'][_0x5b7d4c(0x1b1)](),'selection':Ct(_0x318bbb)}};this['_session'][_0x5b7d4c(0x279)](_0x172b84,this[_0x5b7d4c(0x348)]);},Hs)),(this['unitID']=_0x13dbb9,this['_session']=_0x3790ff,this[_0xa6d173(0x45d)]=_0x4f0694,this['_colorAssignService']=_0x2b8760,this['_memberService']=_0x186c42,this['_syncEditingCollabCursorService']=_0xd7f7ea,this[_0xa6d173(0x2f1)]=_0x220261,this[_0xa6d173(0x49a)]=_0x3b9c60,this[_0xa6d173(0x188)]=_0x44847a);}get[_0x53b42f(0x37b)](){const _0x195b73=_0x53b42f;return this[_0x195b73(0x210)][_0x195b73(0x47e)]();}get['roomMembers'](){const _0x41f8d6=_0x53b42f;return this[_0x41f8d6(0x22e)][_0x41f8d6(0x47e)]();}['dispose'](){const _0x2b37f1=_0x53b42f;super[_0x2b37f1(0x4df)](),this['_cursorInfo$'][_0x2b37f1(0x414)](new Map()),this[_0x2b37f1(0x210)][_0x2b37f1(0x146)](),this['_roomMembers$'][_0x2b37f1(0x414)]([]),this[_0x2b37f1(0x22e)][_0x2b37f1(0x146)]();}[_0x53b42f(0x433)](){const _0x35fc6e=_0x53b42f;this[_0x35fc6e(0x243)]||(this[_0x35fc6e(0x243)]=!0x0,this[_0x35fc6e(0x3e8)]['sessionStatus$']['pipe'](g[_0x35fc6e(0x436)](this[_0x35fc6e(0x35f)]))[_0x35fc6e(0x492)](_0x1dfb80=>{const _0x42313b=_0x35fc6e;_0x1dfb80===W['ONLINE']?this[_0x42313b(0x1e0)]():this[_0x42313b(0x435)]();}),this[_0x35fc6e(0x3e8)][_0x35fc6e(0x255)]['pipe'](g[_0x35fc6e(0x436)](this[_0x35fc6e(0x35f)]))['subscribe'](_0x460765=>{const _0x4ce3e9=_0x35fc6e,_0x311399=_0x460765[_0x4ce3e9(0x428)];_0x311399===u[_0x4ce3e9(0x3fe)][_0x4ce3e9(0x4e1)]&&this[_0x4ce3e9(0x4b7)](_0x460765),_0x311399===u[_0x4ce3e9(0x3fe)][_0x4ce3e9(0x177)]&&this[_0x4ce3e9(0x213)](_0x460765);}),this[_0x35fc6e(0x1e9)](this['_commandService'][_0x35fc6e(0x43e)](_0x424113=>{const _0x184f97=_0x35fc6e,_0x413e97=_0x424113[_0x184f97(0x17b)];_0x413e97!=null&&this['_online']&&_0x424113['id']===M[_0x184f97(0x2f6)]['id']&&_0x413e97[_0x184f97(0x21a)]===this[_0x184f97(0x348)]&&_0x413e97[_0x184f97(0x368)]===!0x1&&this['_updateLocalCursor'](_0x413e97[_0x184f97(0x29d)]);})),this[_0x35fc6e(0x496)][_0x35fc6e(0x495)]['pipe'](g[_0x35fc6e(0x436)](this[_0x35fc6e(0x35f)]))[_0x35fc6e(0x492)](_0x43ba6d=>{const _0x3fceea=_0x35fc6e;if((_0x43ba6d==null?void 0x0:_0x43ba6d[_0x3fceea(0x348)])!==this[_0x3fceea(0x348)])return;const _0x504a78={'eventID':u[_0x3fceea(0x3fe)][_0x3fceea(0x4e1)],'data':_0x43ba6d};this['_onCursorUpdate'](_0x504a78);}),this[_0x35fc6e(0x1e9)](this[_0x35fc6e(0x188)][_0x35fc6e(0x43e)](_0x3d5029=>{const _0x3e67ad=_0x35fc6e;if(_0x3d5029[_0x3e67ad(0x17b)]==null)return;const _0x36488a=_0x3d5029['params'];if(_0x3d5029['id']!==M[_0x3e67ad(0x30f)]['id']||_0x36488a['unitId']!==this[_0x3e67ad(0x348)])return;const _0x40b55d={'id':'doc.mutation.rich-text-editing','params':_0x36488a},_0x2ecf70=this[_0x3e67ad(0x37b)];for(const [_0x35ad7b,_0x35d1a9]of _0x2ecf70){const _0xf50551={'id':_0x3e67ad(0x1a1),'params':{'unitId':this[_0x3e67ad(0x348)],'actions':null,'textRanges':_0x35d1a9[_0x3e67ad(0x29d)]}},_0x2705b0=this[_0x3e67ad(0x2f1)][_0x3e67ad(0x412)](_0x40b55d,_0xf50551,!0x1);if(u[_0x3e67ad(0x231)](_0x2705b0))throw _0x2705b0['error'];_0x2ecf70[_0x3e67ad(0x2e0)](_0x35ad7b,{..._0x35d1a9,'ranges':_0x2705b0[_0x3e67ad(0x2c7)][_0x3e67ad(0x17b)][_0x3e67ad(0x461)]});}queueMicrotask(()=>{const _0x1cdcf5=_0x3e67ad;this[_0x1cdcf5(0x210)][_0x1cdcf5(0x414)](_0x2ecf70);});})));}[_0x53b42f(0x4b7)](_0x429c70){const _0x1fa056=_0x53b42f;var _0x4c8f31,_0x358530;const {memberID:_0x1e22d7,selection:_0x3d8893}=_0x429c70['data'],_0x14672f=fs(_0x3d8893),_0x5c3e57=(_0x358530=(_0x4c8f31=this[_0x1fa056(0x4ae)][_0x1fa056(0x4b5)](this[_0x1fa056(0x348)],_0x1e22d7))==null?void 0x0:_0x4c8f31[_0x1fa056(0x462)])!=null?_0x358530:'Unknown\x20user',_0x348fb9={'color':this['_colorAssignService'][_0x1fa056(0x410)](_0x1e22d7),'name':_0x5c3e57,'ranges':_0x14672f},_0x29759b=this[_0x1fa056(0x37b)];_0x29759b[_0x1fa056(0x2e0)](_0x1e22d7,_0x348fb9),this[_0x1fa056(0x210)]['next'](_0x29759b);}[_0x53b42f(0x213)](_0x2bb035){const _0x506aec=_0x53b42f,{memberID:_0x3b26e5}=_0x2bb035[_0x506aec(0x169)],_0x5b971f=this[_0x506aec(0x37b)];_0x5b971f[_0x506aec(0x35b)](_0x3b26e5),this[_0x506aec(0x210)]['next'](_0x5b971f);}[_0x53b42f(0x1e0)](){const _0x3a9467=_0x53b42f;var _0x38280f;if(this[_0x3a9467(0x4e5)]=!0x0,((_0x38280f=this[_0x3a9467(0x49a)]['getFocusedUnit']())==null?void 0x0:_0x38280f['getUnitId']())!==this[_0x3a9467(0x348)])return;const _0xd91035=this[_0x3a9467(0x45d)][_0x3a9467(0x3d4)](M[_0x3a9467(0x1de)])[_0x3a9467(0x369)](),_0xc21f15=_0xd91035==null?void 0x0:_0xd91035['map'](M[_0x3a9467(0x453)]);Array[_0x3a9467(0x4af)](_0xc21f15)&&_0xc21f15[_0x3a9467(0x419)]>0x0&&this[_0x3a9467(0x3d0)](_0xc21f15);}[_0x53b42f(0x435)](){const _0x27a77d=_0x53b42f;this[_0x27a77d(0x4e5)]=!0x1;}};Ne=js([V(0x2,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),V(0x3,h['Inject'](Ve)),V(0x4,h['Inject'](G)),V(0x5,h[_0x53b42f(0x295)](Fe)),V(0x6,u[_0x53b42f(0x25a)]),V(0x7,a[_0x53b42f(0x390)]),V(0x8,a[_0x53b42f(0x1c5)])],Ne);var xs=Object[_0x53b42f(0x38a)],ks=Object[_0x53b42f(0x2a8)],Bs=(_0x3fff50,_0x38b43b,_0x2d6049,_0x41771a)=>{const _0x4e5781=_0x53b42f;for(var _0x3346af=_0x41771a>0x1?void 0x0:_0x41771a?ks(_0x38b43b,_0x2d6049):_0x38b43b,_0x1cfaf1=_0x3fff50[_0x4e5781(0x419)]-0x1,_0x44e95e;_0x1cfaf1>=0x0;_0x1cfaf1--)(_0x44e95e=_0x3fff50[_0x1cfaf1])&&(_0x3346af=(_0x41771a?_0x44e95e(_0x38b43b,_0x2d6049,_0x3346af):_0x44e95e(_0x3346af))||_0x3346af);return _0x41771a&&_0x3346af&&xs(_0x38b43b,_0x2d6049,_0x3346af),_0x3346af;},Oe=(_0x43d041,_0x5c8043)=>(_0x4a7c65,_0x186e94)=>_0x5c8043(_0x4a7c65,_0x186e94,_0x43d041);let J=class extends a[_0x53b42f(0x3a5)]{constructor(_0x3ff22c,_0x413195,_0x2299c8){const _0x5fc640=_0x53b42f;super(),d(this,'_entities',new Map()),d(this,_0x5fc640(0x44d),new g[(_0x5fc640(0x298))]()),(this[_0x5fc640(0x49a)]=_0x3ff22c,this['_injector']=_0x413195,this[_0x5fc640(0x44f)]=_0x2299c8,this[_0x5fc640(0x243)]());}[_0x53b42f(0x4df)](){const _0x4eed34=_0x53b42f;super[_0x4eed34(0x4df)](),this[_0x4eed34(0x44d)][_0x4eed34(0x146)](),this['_entities'][_0x4eed34(0x421)](_0x3f1532=>_0x3f1532[_0x4eed34(0x4df)]());}[_0x53b42f(0x4d9)](_0x5e82a9){const _0x209fb3=_0x53b42f;return this['_entities']['has'](_0x5e82a9)?this['_entities']['get'](_0x5e82a9)[_0x209fb3(0x199)]:this['_entityInit$'][_0x209fb3(0x454)](g['filter'](_0x3aecf8=>_0x3aecf8[_0x209fb3(0x348)]===_0x5e82a9),g[_0x209fb3(0x178)](_0x7606e0=>_0x7606e0[_0x209fb3(0x199)]));}[_0x53b42f(0x243)](){const _0x5644c8=_0x53b42f;this[_0x5644c8(0x49a)][_0x5644c8(0x4b6)](a[_0x5644c8(0x142)]['UNIVER_SHEET'])[_0x5644c8(0x454)](g[_0x5644c8(0x436)](this[_0x5644c8(0x35f)]))['subscribe'](async _0x43b221=>{const _0x3ffd01=_0x5644c8,_0xd13fea=_0x43b221[_0x3ffd01(0x1f9)](),_0x14a7be=await this[_0x3ffd01(0x455)](_0xd13fea);this['_entityInit$'][_0x3ffd01(0x414)](_0x14a7be),this[_0x3ffd01(0x372)][_0x3ffd01(0x2e0)](_0xd13fea,_0x14a7be);}),this[_0x5644c8(0x49a)][_0x5644c8(0x4b6)](a['UniverInstanceType'][_0x5644c8(0x220)])[_0x5644c8(0x454)](g[_0x5644c8(0x436)](this[_0x5644c8(0x35f)]))[_0x5644c8(0x454)](g[_0x5644c8(0x2f0)](_0x359267=>!_0x359267[_0x5644c8(0x1f9)]()[_0x5644c8(0x19e)]('__')))[_0x5644c8(0x492)](async _0x2d26bd=>{const _0xd245c1=_0x5644c8,_0x10de9b=_0x2d26bd['getUnitId'](),_0x254599=await this[_0xd245c1(0x2c0)](_0x10de9b);this[_0xd245c1(0x44d)]['next'](_0x254599),this[_0xd245c1(0x372)]['set'](_0x10de9b,_0x254599);}),g[_0x5644c8(0x221)](this[_0x5644c8(0x49a)][_0x5644c8(0x160)](a[_0x5644c8(0x142)][_0x5644c8(0x220)]),this[_0x5644c8(0x49a)][_0x5644c8(0x160)](a['UniverInstanceType'][_0x5644c8(0x164)]))[_0x5644c8(0x454)](g[_0x5644c8(0x436)](this[_0x5644c8(0x35f)]))['subscribe'](_0x4e7649=>{const _0x169f25=_0x5644c8,_0x5ed61f=_0x4e7649[_0x169f25(0x1f9)](),_0x3f1864=this[_0x169f25(0x372)][_0x169f25(0x3d4)](_0x5ed61f);_0x3f1864&&(_0x3f1864[_0x169f25(0x4df)](),this[_0x169f25(0x372)][_0x169f25(0x35b)](_0x5ed61f));});}async['_startSheetCollabCursor'](_0x13f508){const _0x3eb0b3=_0x53b42f,_0x533739=await this['_collabSessionService'][_0x3eb0b3(0x386)](_0x13f508),_0x1e0d7c=this[_0x3eb0b3(0x45d)][_0x3eb0b3(0x477)](Me,_0x13f508,_0x533739);return _0x1e0d7c[_0x3eb0b3(0x433)](),_0x1e0d7c;}async[_0x53b42f(0x2c0)](_0x5afe23){const _0x1b9a8b=_0x53b42f,_0xb850bc=await this[_0x1b9a8b(0x44f)]['requireSession'](_0x5afe23),_0xe4c2cc=this[_0x1b9a8b(0x45d)][_0x1b9a8b(0x477)](Ne,_0x5afe23,_0xb850bc);return _0xe4c2cc[_0x1b9a8b(0x433)](),_0xe4c2cc;}};J=Bs([a['OnLifecycle'](a[_0x53b42f(0x2e2)][_0x53b42f(0x157)],J),Oe(0x0,a[_0x53b42f(0x390)]),Oe(0x1,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),Oe(0x2,h[_0x53b42f(0x295)](exports[_0x53b42f(0x14a)]))],J);const ce=0x14,tt=0xc8,De=0x4,Fs=0x5;function Vs(_0x46a14a,_0x3839d7){const _0x265611=_0x53b42f;let {radius:_0x231f12,width:_0x572795,height:_0x3b7a39}=_0x3839d7;_0x231f12=_0x231f12!=null?_0x231f12:0x0,_0x572795=_0x572795!=null?_0x572795:0x1e,_0x3b7a39=_0x3b7a39!=null?_0x3b7a39:0x1e;let _0x221b10=0x0,_0x3a0c05=0x0,_0x4f5225=0x0;_0x221b10=_0x3a0c05=_0x4f5225=Math['min'](_0x231f12,_0x572795/0x2,_0x3b7a39/0x2),_0x46a14a['beginPath'](),_0x46a14a['moveTo'](_0x221b10,0x0),_0x46a14a['lineTo'](_0x572795-_0x3a0c05,0x0),_0x46a14a['arc'](_0x572795-_0x3a0c05,_0x3a0c05,_0x3a0c05,Math['PI']*0x3/0x2,0x0,!0x1),_0x46a14a['lineTo'](_0x572795,_0x3b7a39-_0x4f5225),_0x46a14a[_0x265611(0x35a)](_0x572795-_0x4f5225,_0x3b7a39-_0x4f5225,_0x4f5225,0x0,Math['PI']/0x2,!0x1),_0x46a14a[_0x265611(0x1fb)](0x0,_0x3b7a39),_0x46a14a[_0x265611(0x1fb)](0x0,_0x221b10),_0x46a14a[_0x265611(0x35a)](_0x221b10,_0x221b10,_0x221b10,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x46a14a[_0x265611(0x1a3)](),_0x3839d7[_0x265611(0x347)]&&(_0x46a14a['save'](),_0x46a14a['fillStyle']=_0x3839d7['fill'],_0x3839d7[_0x265611(0x4e2)]===_0x265611(0x49c)?_0x46a14a[_0x265611(0x347)](_0x265611(0x49c)):_0x46a14a[_0x265611(0x347)](),_0x46a14a[_0x265611(0x2cf)]());}class Ce extends R[_0x53b42f(0x1e2)]{constructor(_0x593c10,_0x529977){const _0x2d215d=_0x53b42f;super(_0x593c10,_0x529977),d(this,_0x2d215d(0x2f4)),d(this,_0x2d215d(0x1fd)),(this[_0x2d215d(0x2f4)]=_0x529977==null?void 0x0:_0x529977['color'],this[_0x2d215d(0x1fd)]=_0x529977==null?void 0x0:_0x529977['text']);}static[_0x53b42f(0x2e5)](_0x950eb6,_0x35a959){const _0x232ac4=_0x53b42f,{text:_0x1fc990,color:_0x29c153}=_0x35a959;_0x950eb6['save'](),_0x950eb6['font']=_0x232ac4(0x26b);const _0x183a52=_0x950eb6[_0x232ac4(0x394)](_0x1fc990)[_0x232ac4(0x270)],_0x345898=Math[_0x232ac4(0x3d6)](_0x183a52+0x2*De,tt);Vs(_0x950eb6,{'height':ce,'radius':0x4,'width':_0x345898,'fill':_0x29c153,'evented':!0x1}),_0x950eb6[_0x232ac4(0x43a)]=_0x232ac4(0x3e1);const _0x1f763f=De,_0x1c3626=ce-Fs,_0x4ec894=tt-0x2*De;if(_0x183a52>_0x4ec894){let _0x51fa75='',_0x1a30b2=0x0;for(const _0x363ba7 of _0x1fc990){const _0x265d09=_0x950eb6['measureText'](_0x363ba7)[_0x232ac4(0x270)];if(_0x1a30b2+_0x265d09<=_0x4ec894-_0x950eb6['measureText'](_0x232ac4(0x41c))[_0x232ac4(0x270)])_0x51fa75+=_0x363ba7,_0x1a30b2+=_0x265d09;else{_0x51fa75+=_0x232ac4(0x41c);break;}}_0x950eb6[_0x232ac4(0x175)](_0x51fa75,_0x1f763f,_0x1c3626);}else _0x950eb6[_0x232ac4(0x175)](_0x1fc990,_0x1f763f,_0x1c3626);_0x950eb6[_0x232ac4(0x2cf)]();}[_0x53b42f(0x16d)](_0x1e102c){Ce['drawWith'](_0x1e102c,this);}}const Ws=0x1,Gs=1.5;class Ys extends R[_0x53b42f(0x1e2)]{constructor(_0x37d48f,_0x11a8c1){const _0x1616ce=_0x53b42f;super(_0x37d48f,_0x11a8c1),d(this,_0x1616ce(0x27a)),d(this,_0x1616ce(0x1d1),!0x1),d(this,'_range'),d(this,_0x1616ce(0x2b9),''),d(this,_0x1616ce(0x1bc),_0x1616ce(0x3f5)),(_0x11a8c1&&this['setShapeProps'](_0x11a8c1),this[_0x1616ce(0x206)][_0x1616ce(0x1e5)](()=>this[_0x1616ce(0x393)]({'hovered':!0x0})),this[_0x1616ce(0x3b5)][_0x1616ce(0x1e5)](()=>this[_0x1616ce(0x393)]({'hovered':!0x1})));}[_0x53b42f(0x393)](_0x245249){const _0x551d8e=_0x53b42f;var _0xbf02c9,_0x2613b9,_0x11f465,_0x5951ed,_0x113eca;this[_0x551d8e(0x27a)]=(_0xbf02c9=_0x245249[_0x551d8e(0x2f4)])!=null?_0xbf02c9:this[_0x551d8e(0x27a)],this[_0x551d8e(0x1d1)]=(_0x2613b9=_0x245249[_0x551d8e(0x46d)])!=null?_0x2613b9:this[_0x551d8e(0x1d1)],this[_0x551d8e(0x3a3)]=(_0x11f465=_0x245249['range'])!=null?_0x11f465:this[_0x551d8e(0x3a3)],this['_name']=(_0x5951ed=_0x245249[_0x551d8e(0x462)])!=null?_0x5951ed:this[_0x551d8e(0x2b9)],this[_0x551d8e(0x1bc)]=(_0x113eca=_0x245249[_0x551d8e(0x366)])!=null?_0x113eca:this['_labelPosition'],this[_0x551d8e(0x15d)]({'width':_0x245249[_0x551d8e(0x270)],'height':_0x245249[_0x551d8e(0x148)]});}['onMouseMove'](_0x4fd0f6){const _0x58e526=_0x53b42f,{row:_0x37857d,column:_0x52776c}=_0x4fd0f6;if(_0x37857d>=this[_0x58e526(0x3a3)]['startRow']&&_0x37857d<=this[_0x58e526(0x3a3)][_0x58e526(0x1a0)]&&_0x52776c>=this[_0x58e526(0x3a3)][_0x58e526(0x4e3)]&&_0x52776c<=this[_0x58e526(0x3a3)][_0x58e526(0x354)]){this[_0x58e526(0x393)]({'hovered':!0x0});return;}this[_0x58e526(0x393)]({'hovered':!0x1});}['triggerDblclick'](_0x2d8cf2){return!0x1;}[_0x53b42f(0x16d)](_0x1682c2){const _0x123143=_0x53b42f;R[_0x123143(0x184)][_0x123143(0x2e5)](_0x1682c2,{'width':this[_0x123143(0x270)],'height':this[_0x123143(0x148)],'strokeWidth':Gs,'stroke':this['_color'],'evented':!0x1}),this[_0x123143(0x1d1)]&&(_0x1682c2['save'](),_0x1682c2[_0x123143(0x404)](0x1,0x0,0x0,0x1,this[_0x123143(0x270)],this['_labelPosition']===_0x123143(0x473)?0x0:-ce),Ce[_0x123143(0x2e5)](_0x1682c2,{'text':this[_0x123143(0x2b9)],'color':this['_color']}),_0x1682c2[_0x123143(0x2cf)]());}}var Ks=Object[_0x53b42f(0x38a)],Xs=Object[_0x53b42f(0x2a8)],qs=(_0x29b75c,_0x5b685f,_0xaa602b,_0x402353)=>{const _0x4d2173=_0x53b42f;for(var _0x14acad=_0x402353>0x1?void 0x0:_0x402353?Xs(_0x5b685f,_0xaa602b):_0x5b685f,_0x1d834a=_0x29b75c[_0x4d2173(0x419)]-0x1,_0x3f121f;_0x1d834a>=0x0;_0x1d834a--)(_0x3f121f=_0x29b75c[_0x1d834a])&&(_0x14acad=(_0x402353?_0x3f121f(_0x5b685f,_0xaa602b,_0x14acad):_0x3f121f(_0x14acad))||_0x14acad);return _0x402353&&_0x14acad&&Ks(_0x5b685f,_0xaa602b,_0x14acad),_0x14acad;},le=(_0x38104d,_0x4e6261)=>(_0x4c8c26,_0x2e7449)=>_0x4e6261(_0x4c8c26,_0x2e7449,_0x38104d);const zs=0x1389;let ue=class extends a[_0x53b42f(0x3a5)]{constructor(_0x21893e,_0x50c9a4,_0x2304f4,_0x213b0c){const _0x238d2c=_0x53b42f;super(),d(this,_0x238d2c(0x3a6),new Set()),d(this,'_lastPointer',null),(this[_0x238d2c(0x491)]=_0x21893e,this[_0x238d2c(0x49a)]=_0x50c9a4,this[_0x238d2c(0x198)]=_0x2304f4,this[_0x238d2c(0x48a)]=_0x213b0c,this['_init']());}get[_0x53b42f(0x46f)](){const _0x47bab9=_0x53b42f;return this[_0x47bab9(0x198)][_0x47bab9(0x3c5)](this['_univerInstanceService'][_0x47bab9(0x171)](a['UniverInstanceType'][_0x47bab9(0x164)])['getUnitId']())[_0x47bab9(0x23d)](ee[_0x47bab9(0x425)]);}get['_unitId'](){const _0x42d389=_0x53b42f;return this['_univerInstanceService']['getCurrentUnitForType'](a[_0x42d389(0x142)][_0x42d389(0x164)])[_0x42d389(0x1f9)]();}['_init'](){const _0x5f1029=_0x53b42f;this[_0x5f1029(0x46f)][_0x5f1029(0x326)][_0x5f1029(0x454)](T['takeUntil'](this[_0x5f1029(0x35f)]),T[_0x5f1029(0x178)](_0x1ab439=>{const _0x49cf32=_0x5f1029;if(_0x1ab439){const _0xf27e6=_0x1ab439[_0x49cf32(0x37f)];return g[_0x49cf32(0x165)](this[_0x49cf32(0x491)][_0x49cf32(0x4d9)](this['_unitId']),this[_0x49cf32(0x48a)][_0x49cf32(0x3b6)])[_0x49cf32(0x454)](T[_0x49cf32(0x1af)](([_0x55c411,_0x4bd4e8])=>{const _0x2d24fb=new Map();return _0x55c411['forEach']((_0x2c52e1,_0x491f66)=>{const _0x50ba11=_0xe052;if(_0x2c52e1['sheetID']===_0xf27e6){const _0x5e6374={..._0x2c52e1};_0x5e6374[_0x50ba11(0x2f4)]=_0x4bd4e8[_0x2c52e1[_0x50ba11(0x2f4)]],_0x2d24fb[_0x50ba11(0x2e0)](_0x491f66,_0x5e6374);}}),{'skeleton':_0x1ab439,'cursors':_0x2d24fb};}));}return g['of']({'skeleton':null,'cursors':new Map()});}))[_0x5f1029(0x492)](({skeleton:_0x4a35c6,cursors:_0x58f3f2})=>{const _0x1e0f56=_0x5f1029;this['_removeCollabCursors'](),_0x4a35c6&&this[_0x1e0f56(0x398)](_0x4a35c6,_0x58f3f2);}),this[_0x5f1029(0x46f)][_0x5f1029(0x326)]['subscribe'](_0x53d16e=>{const _0x1628a4=_0x5f1029;if(_0x53d16e==null)return;const {skeleton:_0x6e0d80}=_0x53d16e,_0x8aa9b8=this[_0x1628a4(0x198)][_0x1628a4(0x3c5)](this[_0x1628a4(0x1ea)]),{scene:_0xcabd36}=_0x8aa9b8;_0xcabd36['onPointerMoveObserver'][_0x1628a4(0x1e5)](He(_0xf6491=>{const _0x5b2f1a=_0x1628a4;var _0x1055e2,_0x3d5906;const {offsetX:_0x1bb417,offsetY:_0x59793e}=_0xf6491,{x:_0x16497b,y:_0x5a3cc7}=_0xcabd36[_0x5b2f1a(0x483)](R[_0x5b2f1a(0x4bb)]['FromArray']([_0x1bb417,_0x59793e])),{scaleX:_0x50d44c,scaleY:_0x29f600}=_0xcabd36[_0x5b2f1a(0x1e6)](),_0x439467=_0xcabd36[_0x5b2f1a(0x2f5)](ee['VIEWPORT_KEY'][_0x5b2f1a(0x4d3)]),_0x1e6c46=_0xcabd36['getScrollXYByRelativeCoords'](R[_0x5b2f1a(0x4bb)][_0x5b2f1a(0x3c4)]([_0x16497b,_0x5a3cc7]),_0x439467),_0xcf5404=_0x6e0d80['getCellPositionByOffset'](_0x1bb417,_0x59793e,_0x50d44c,_0x29f600,_0x1e6c46);((_0x1055e2=this[_0x5b2f1a(0x1da)])==null?void 0x0:_0x1055e2['column'])===_0xcf5404['column']&&((_0x3d5906=this[_0x5b2f1a(0x1da)])==null?void 0x0:_0x3d5906['row'])===_0xcf5404[_0x5b2f1a(0x145)]||this['_cursors'][_0x5b2f1a(0x421)](_0x5ea2e9=>{const _0x3a01cd=_0x5b2f1a;_0x5ea2e9[_0x3a01cd(0x22b)](_0xcf5404);});},0x64));});}[_0x53b42f(0x398)](_0x2e1cfe,_0xe0a945){const _0x36e516=_0x53b42f;var _0x40f768;const _0x4cdef1=(_0x40f768=this[_0x36e516(0x46f)]['getCurrent']())==null?void 0x0:_0x40f768[_0x36e516(0x159)];if(!_0x4cdef1)return;const _0x30dc43=this[_0x36e516(0x239)]();if(!_0x30dc43)return;this[_0x36e516(0x3a6)][_0x36e516(0x421)](_0x2a931a=>{const _0x54d90f=_0x36e516;_0x2a931a[_0x54d90f(0x361)]();});const {scene:_0x5460d7}=_0x30dc43,_0x38b998=Js(Array[_0x36e516(0x2c5)](_0xe0a945[_0x36e516(0x4d7)]()))[_0x36e516(0x1af)](_0x294a9f=>{const _0x9f26bc=_0x36e516,{color:_0x1784ed,range:_0x5c4420,name:_0x7e6bee,selection:_0x16007d,sheetID:_0x26f74a}=_0x294a9f,{startColumn:_0x30f066,startRow:_0x57629a,endColumn:_0x132ea7,endRow:_0x3faf2b}=_0x5c4420,_0x176fda=ee[_0x9f26bc(0x18f)](_0x57629a,_0x30f066,_0x5460d7,_0x4cdef1),_0x27c817=ee[_0x9f26bc(0x18f)](_0x3faf2b,_0x132ea7,_0x5460d7,_0x4cdef1),{columnHeaderHeightAndMarginTop:_0xbe28e2}=_0x4cdef1,{startX:_0x1efcaf,startY:_0x415d37}=_0x176fda,{endX:_0x3c159b,endY:_0x2282e2}=_0x27c817,_0xf406d0=_0x3c159b-_0x1efcaf,_0x436225=_0x2282e2-_0x415d37,_0x4d9851={'labelPosition':_0x415d37-_0xbe28e2>=ce?'top':_0x9f26bc(0x473),'sheetID':_0x26f74a,'range':_0x5c4420,'color':_0x1784ed,'name':_0x7e6bee,'selection':_0x16007d,'left':_0x1efcaf,'top':_0x415d37,'width':_0xf406d0,'height':_0x436225,'evented':!0x1,'zIndex':zs};return new Ys(_0x7e6bee,_0x4d9851);});_0x5460d7['addObjects'](_0x38b998,Ws),this[_0x36e516(0x3a6)]=new Set(_0x38b998);}[_0x53b42f(0x380)](){const _0x5be823=_0x53b42f;var _0x2e0874;(_0x2e0874=this['_cursors'])==null||_0x2e0874['forEach'](_0x4a85f0=>_0x4a85f0[_0x5be823(0x4df)]());}[_0x53b42f(0x239)](){const _0x32b756=_0x53b42f;return ee[_0x32b756(0x297)](this[_0x32b756(0x49a)],this[_0x32b756(0x198)]);}};ue=qs([a[_0x53b42f(0x13b)](a[_0x53b42f(0x2e2)][_0x53b42f(0x353)],ue),le(0x0,h['Inject'](J)),le(0x1,a[_0x53b42f(0x390)]),le(0x2,R[_0x53b42f(0x4a5)]),le(0x3,h[_0x53b42f(0x295)](a[_0x53b42f(0x1e8)]))],ue);function Js(_0x1d6a69){const _0x383f1f=_0x53b42f,_0x3883e3=new Map();return _0x1d6a69[_0x383f1f(0x421)](_0x163cbb=>{const _0x2fdb14=_0x383f1f;if(_0x3883e3[_0x2fdb14(0x378)](_0x163cbb['selection'])){const _0xf6c95e=_0x3883e3['get'](_0x163cbb[_0x2fdb14(0x27d)]);_0xf6c95e['name']+=',\x20'+_0x163cbb[_0x2fdb14(0x462)];}else _0x3883e3[_0x2fdb14(0x2e0)](_0x163cbb['selection'],_0x163cbb);}),Array[_0x383f1f(0x2c5)](_0x3883e3['values']());}var y=function(){const _0x380813=_0x53b42f;return y=Object[_0x380813(0x2a9)]||function(_0x1b1f7e){const _0x30a885=_0x380813;for(var _0x49504a,_0x759790=0x1,_0x35a5fa=arguments[_0x30a885(0x419)];_0x759790<_0x35a5fa;_0x759790++){_0x49504a=arguments[_0x759790];for(var _0x220f6b in _0x49504a)Object['prototype']['hasOwnProperty'][_0x30a885(0x3f4)](_0x49504a,_0x220f6b)&&(_0x1b1f7e[_0x220f6b]=_0x49504a[_0x220f6b]);}return _0x1b1f7e;},y['apply'](this,arguments);},Zs=function(_0x5ce90c,_0x1cc590){const _0xc6c34e=_0x53b42f;var _0x36d50b={};for(var _0x411d1a in _0x5ce90c)Object[_0xc6c34e(0x135)][_0xc6c34e(0x185)][_0xc6c34e(0x3f4)](_0x5ce90c,_0x411d1a)&&_0x1cc590[_0xc6c34e(0x303)](_0x411d1a)<0x0&&(_0x36d50b[_0x411d1a]=_0x5ce90c[_0x411d1a]);if(_0x5ce90c!=null&&typeof Object[_0xc6c34e(0x4ab)]=='function'){for(var _0x1893f6=0x0,_0x411d1a=Object[_0xc6c34e(0x4ab)](_0x5ce90c);_0x1893f6<_0x411d1a[_0xc6c34e(0x419)];_0x1893f6++)_0x1cc590['indexOf'](_0x411d1a[_0x1893f6])<0x0&&Object[_0xc6c34e(0x135)]['propertyIsEnumerable'][_0xc6c34e(0x3f4)](_0x5ce90c,_0x411d1a[_0x1893f6])&&(_0x36d50b[_0x411d1a[_0x1893f6]]=_0x5ce90c[_0x411d1a[_0x1893f6]]);}return _0x36d50b;},We=L['forwardRef'](function(_0x1c27b1,_0x3b9d17){const _0x2ce2b5=_0x53b42f;var _0x24af22=_0x1c27b1[_0x2ce2b5(0x23c)],_0x45400b=_0x1c27b1['id'],_0x42e6c0=_0x1c27b1['className'],_0x47d4c1=_0x1c27b1[_0x2ce2b5(0x472)],_0x515a02=Zs(_0x1c27b1,[_0x2ce2b5(0x23c),'id',_0x2ce2b5(0x457),_0x2ce2b5(0x472)]),_0x4106b3=_0x2ce2b5(0x1b8)['concat'](_0x45400b,'\x20')[_0x2ce2b5(0x317)](_0x42e6c0||'')[_0x2ce2b5(0x283)](),_0x107328=L[_0x2ce2b5(0x407)]('_'[_0x2ce2b5(0x317)](ti()));return Tt(_0x24af22,''['concat'](_0x45400b),{'defIds':_0x24af22['defIds'],'idSuffix':_0x107328[_0x2ce2b5(0x403)]},y({'ref':_0x3b9d17,'className':_0x4106b3},_0x515a02),_0x47d4c1);});function Tt(_0x3970bd,_0x472a11,_0x1a197b,_0x1583f9,_0x3c02c0){const _0x1e3582=_0x53b42f;return L['createElement'](_0x3970bd['tag'],y(y({'key':_0x472a11},Qs(_0x3970bd,_0x1a197b,_0x3c02c0)),_0x1583f9),(ei(_0x3970bd,_0x1a197b)[_0x1e3582(0x416)]||[])[_0x1e3582(0x1af)](function(_0x1c8b01,_0x1c6e45){const _0x4de65c=_0x1e3582;return Tt(_0x1c8b01,''['concat'](_0x472a11,'-')[_0x4de65c(0x317)](_0x3970bd[_0x4de65c(0x25b)],'-')[_0x4de65c(0x317)](_0x1c6e45),_0x1a197b,void 0x0,_0x3c02c0);}));}function Qs(_0x1b928d,_0x37f701,_0x37cd35){const _0x5d7b60=_0x53b42f;var _0x552c77=y({},_0x1b928d[_0x5d7b60(0x204)]);_0x37cd35!=null&&_0x37cd35[_0x5d7b60(0x3c6)]&&_0x552c77[_0x5d7b60(0x347)]===_0x5d7b60(0x3c6)&&(_0x552c77[_0x5d7b60(0x347)]=_0x37cd35[_0x5d7b60(0x3c6)]);var _0x3d860b=_0x37f701[_0x5d7b60(0x1c3)];return!_0x3d860b||_0x3d860b[_0x5d7b60(0x419)]===0x0||(_0x1b928d[_0x5d7b60(0x25b)]===_0x5d7b60(0x40b)&&_0x552c77[_0x5d7b60(0x4a4)]&&(_0x552c77[_0x5d7b60(0x4a4)]=_0x552c77[_0x5d7b60(0x4a4)]+_0x37f701[_0x5d7b60(0x343)]),Object['entries'](_0x552c77)['forEach'](function(_0x127800){const _0x2271d3=_0x5d7b60;var _0x504460=_0x127800[0x0],_0x16e39d=_0x127800[0x1];typeof _0x16e39d=='string'&&(_0x552c77[_0x504460]=_0x16e39d[_0x2271d3(0x153)](/url\(#(.*)\)/,_0x2271d3(0x3ae)[_0x2271d3(0x317)](_0x37f701[_0x2271d3(0x343)],')')));})),_0x552c77;}function ei(_0x30d538,_0x4e4c2c){const _0x5b3b0f=_0x53b42f;var _0x40713f,_0x6756bb=_0x4e4c2c[_0x5b3b0f(0x1c3)];return!_0x6756bb||_0x6756bb[_0x5b3b0f(0x419)]===0x0?_0x30d538:_0x30d538[_0x5b3b0f(0x25b)]===_0x5b3b0f(0x1ab)&&(!((_0x40713f=_0x30d538[_0x5b3b0f(0x416)])===null||_0x40713f===void 0x0)&&_0x40713f['length'])?y(y({},_0x30d538),{'children':_0x30d538[_0x5b3b0f(0x416)][_0x5b3b0f(0x1af)](function(_0x24bbc0){const _0x2251f9=_0x5b3b0f;return typeof _0x24bbc0[_0x2251f9(0x204)]['id']==_0x2251f9(0x44e)&&_0x6756bb&&_0x6756bb[_0x2251f9(0x303)](_0x24bbc0['attrs']['id'])>-0x1?y(y({},_0x24bbc0),{'attrs':y(y({},_0x24bbc0[_0x2251f9(0x204)]),{'id':_0x24bbc0[_0x2251f9(0x204)]['id']+_0x4e4c2c[_0x2251f9(0x343)]})}):_0x24bbc0;})}):_0x30d538;}function ti(){const _0x27577a=_0x53b42f;return Math[_0x27577a(0x27c)]()[_0x27577a(0x423)](0x24)[_0x27577a(0x2cd)](0x2,0x8);}We[_0x53b42f(0x25d)]=_0x53b42f(0x3b4);var si={'tag':'svg','attrs':{'fill':_0x53b42f(0x381),'viewBox':_0x53b42f(0x235),'width':_0x53b42f(0x137),'height':_0x53b42f(0x137)},'children':[{'tag':'g','attrs':{'clipPath':_0x53b42f(0x43d)},'children':[{'tag':_0x53b42f(0x490),'attrs':{'stroke':_0x53b42f(0x32c),'d':_0x53b42f(0x238),'strokeLinecap':_0x53b42f(0x192),'strokeLinejoin':_0x53b42f(0x192),'strokeWidth':1.2}}]},{'tag':_0x53b42f(0x1ab),'attrs':{},'children':[{'tag':_0x53b42f(0x264),'attrs':{'id':_0x53b42f(0x447)},'children':[{'tag':_0x53b42f(0x490),'attrs':{'fill':_0x53b42f(0x4b8),'d':_0x53b42f(0x375)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Rt=L['forwardRef'](function(_0xbe4ead,_0x45c64c){const _0x1451ed=_0x53b42f;return L['createElement'](We,Object[_0x1451ed(0x2a9)]({},_0xbe4ead,{'id':'off-line-single','ref':_0x45c64c,'icon':si}));});Rt[_0x53b42f(0x25d)]=_0x53b42f(0x3cd);var ii={'tag':_0x53b42f(0x32b),'attrs':{'fill':_0x53b42f(0x381),'viewBox':'0\x200\x2017\x2016','width':_0x53b42f(0x137),'height':_0x53b42f(0x137)},'children':[{'tag':'g','attrs':{'clipPath':_0x53b42f(0x186)},'children':[{'tag':_0x53b42f(0x490),'attrs':{'stroke':_0x53b42f(0x32c),'d':_0x53b42f(0x1b7),'strokeLinecap':'round','strokeLinejoin':_0x53b42f(0x192),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x53b42f(0x264),'attrs':{'id':_0x53b42f(0x494)},'children':[{'tag':_0x53b42f(0x490),'attrs':{'fill':_0x53b42f(0x4b8),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x53b42f(0x494)]},Ot=L[_0x53b42f(0x334)](function(_0x2eeac2,_0x45dc5c){const _0xe9176e=_0x53b42f;return L[_0xe9176e(0x2e7)](We,Object[_0xe9176e(0x2a9)]({},_0x2eeac2,{'id':_0xe9176e(0x19d),'ref':_0x45dc5c,'icon':ii}));});Ot[_0x53b42f(0x25d)]='OnLineSingle';const ni='univer-online-status-icon',ri=_0x53b42f(0x3af),oi='univer-online-status',ai=_0x53b42f(0x323),ci=_0x53b42f(0x3f0),ie={'onlineStatusIcon':ni,'onlineStatusTitle':ri,'onlineStatus':oi,'online':ai,'offline':ci};function li(_0xaa946d){const _0x419617=_0x53b42f;switch(_0xaa946d){case w[_0x419617(0x1b4)]:return _0x419617(0x24b);case w[_0x419617(0x356)]:return _0x419617(0x189);case w['FETCH_MISS']:return'collabStatus.fetchMiss';case w['NOT_COLLAB']:return'collabStatus.notCollab';case w[_0x419617(0x33a)]:case w[_0x419617(0x4db)]:case w['AWAITING_WITH_PENDING']:return _0x419617(0x39c);case w[_0x419617(0x32d)]:return _0x419617(0x1c7);}}function Dt(_0x145fca){const _0x51bb32=_0x53b42f,{status$:_0x2cb16d}=_0x145fca,_0xbc0d36=N[_0x51bb32(0x2d0)](_0x2cb16d,w[_0x51bb32(0x1a4)]),_0x22f8a9=at['useDependency'](a['LocaleService']),_0x4753ea=_0xbc0d36!==w[_0x51bb32(0x1b4)],_0x479cf0=_0x22f8a9['t'](li(_0xbc0d36)),_0x4bb8b7=Ht(ie[_0x51bb32(0x1f5)],{[ie[_0x51bb32(0x262)]]:_0x4753ea,[ie[_0x51bb32(0x1a5)]]:!_0x4753ea}),_0x45be07=_0x4753ea?L[_0x51bb32(0x2e7)](Ot,null):L[_0x51bb32(0x2e7)](Rt,null);return L[_0x51bb32(0x2e7)](_0x51bb32(0x2b7),{'className':_0x4bb8b7},L['createElement'](_0x51bb32(0x2b7),{'className':ie[_0x51bb32(0x338)]},_0x45be07),L['createElement'](_0x51bb32(0x2b7),{'className':ie[_0x51bb32(0x49b)]},_0x479cf0));}var hi=Object[_0x53b42f(0x38a)],_i=Object[_0x53b42f(0x2a8)],ui=(_0x28a3ed,_0x4ac7ca,_0x238d3f,_0x38baea)=>{const _0x560af4=_0x53b42f;for(var _0x457e92=_0x38baea>0x1?void 0x0:_0x38baea?_i(_0x4ac7ca,_0x238d3f):_0x4ac7ca,_0x39cc5d=_0x28a3ed[_0x560af4(0x419)]-0x1,_0x14ffbf;_0x39cc5d>=0x0;_0x39cc5d--)(_0x14ffbf=_0x28a3ed[_0x39cc5d])&&(_0x457e92=(_0x38baea?_0x14ffbf(_0x4ac7ca,_0x238d3f,_0x457e92):_0x14ffbf(_0x457e92))||_0x457e92);return _0x38baea&&_0x457e92&&hi(_0x4ac7ca,_0x238d3f,_0x457e92),_0x457e92;},he=(_0x4e734b,_0x1fe480)=>(_0x2d1b46,_0x6508d5)=>_0x1fe480(_0x2d1b46,_0x6508d5,_0x4e734b);exports[_0x53b42f(0x230)]=class extends a['Disposable']{constructor(_0x489ff8,_0x3ca318,_0x4df3dc,_0xdf94f){const _0x47170b=_0x53b42f;super(),d(this,_0x47170b(0x41b),new g[(_0x47170b(0x28a))](w[_0x47170b(0x1a4)])),(this[_0x47170b(0x49a)]=_0x489ff8,this[_0x47170b(0x487)]=_0x3ca318,this[_0x47170b(0x45d)]=_0x4df3dc,this[_0x47170b(0x1a2)]=_0xdf94f,this[_0x47170b(0x3dd)](),this[_0x47170b(0x449)]());}[_0x53b42f(0x3dd)](){const _0x45d1d6=_0x53b42f;this['disposeWithMe'](this[_0x45d1d6(0x487)][_0x45d1d6(0x17e)](N[_0x45d1d6(0x2da)][_0x45d1d6(0x320)],()=>at['connectInjector'](di({'status$':this[_0x45d1d6(0x41b)][_0x45d1d6(0x1d6)]()}),this[_0x45d1d6(0x45d)])));}[_0x53b42f(0x449)](){const _0x57e870=_0x53b42f;this[_0x57e870(0x1e9)](a[_0x57e870(0x1bb)](this[_0x57e870(0x49a)][_0x57e870(0x1c2)][_0x57e870(0x454)](g[_0x57e870(0x178)](()=>{const _0x52b2e3=_0x57e870,_0x5d3b53=this[_0x52b2e3(0x49a)][_0x52b2e3(0x41e)]();return _0x5d3b53?this[_0x52b2e3(0x1a2)][_0x52b2e3(0x397)](_0x5d3b53[_0x52b2e3(0x1f9)]()):g['of'](null);}),g['switchMap'](_0x13d145=>_0x13d145?_0x13d145[_0x57e870(0x183)]:g['of'](w[_0x57e870(0x1a4)])))[_0x57e870(0x492)](_0x4c50a7=>{const _0xc2f31f=_0x57e870;this[_0xc2f31f(0x41b)][_0xc2f31f(0x414)](_0x4c50a7);})));}},exports[_0x53b42f(0x230)]=ui([a[_0x53b42f(0x13b)](a[_0x53b42f(0x2e2)][_0x53b42f(0x157)],exports[_0x53b42f(0x230)]),he(0x0,a[_0x53b42f(0x390)]),he(0x1,N[_0x53b42f(0x48c)]),he(0x2,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),he(0x3,h['Inject'](exports[_0x53b42f(0x301)]))],exports[_0x53b42f(0x230)]);function di(_0x4713a6){const {status$:_0x29ad8c}=_0x4713a6;return function(){const _0x2c3b42=_0xe052;return L[_0x2c3b42(0x2e7)](Dt,{'status$':_0x29ad8c});};}const Ge=h[_0x53b42f(0x195)]('uni.network.url-service');var Si=Object[_0x53b42f(0x38a)],vi=Object['getOwnPropertyDescriptor'],gi=(_0x1deb36,_0x22d677,_0x474311,_0x29af28)=>{for(var _0x106fa9=_0x29af28>0x1?void 0x0:_0x29af28?vi(_0x22d677,_0x474311):_0x22d677,_0xd7b5fd=_0x1deb36['length']-0x1,_0x522114;_0xd7b5fd>=0x0;_0xd7b5fd--)(_0x522114=_0x1deb36[_0xd7b5fd])&&(_0x106fa9=(_0x29af28?_0x522114(_0x22d677,_0x474311,_0x106fa9):_0x522114(_0x106fa9))||_0x106fa9);return _0x29af28&&_0x106fa9&&Si(_0x22d677,_0x474311,_0x106fa9),_0x106fa9;},z=(_0x125698,_0x599f7c)=>(_0x48aeae,_0x29a301)=>_0x599f7c(_0x48aeae,_0x29a301,_0x125698);exports[_0x53b42f(0x265)]=class extends a['RxDisposable']{constructor(_0x587e2c,_0x1e74f8,_0x37e147,_0x4fc447,_0xe39c7a,_0x5e7746){const _0x2d20db=_0x53b42f;super(),this[_0x2d20db(0x1e7)]=_0x587e2c,this[_0x2d20db(0x42f)]=_0x1e74f8,this[_0x2d20db(0x188)]=_0x37e147,this['_localCacheService']=_0x4fc447,this['_snapshotService']=_0xe39c7a,_0x5e7746?_0x5e7746==null||_0x5e7746[_0x2d20db(0x2ff)]()[_0x2d20db(0x3ab)](()=>this['_init']()):(this[_0x2d20db(0x42f)]['debug'](_0x2d20db(0x310),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2d20db(0x243)]());}async[_0x53b42f(0x243)](){const _0x3b3bf2=_0x53b42f,_0x81570d=this[_0x3b3bf2(0x1e7)][_0x3b3bf2(0x358)](_0x3b3bf2(0x259)),_0x463100=this[_0x3b3bf2(0x1e7)]['getParam'](_0x3b3bf2(0x20c));if(!_0x81570d||!_0x463100){this[_0x3b3bf2(0x42f)]['debug']('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x463100)){case j[_0x3b3bf2(0x164)]:{const _0x118609=await this[_0x3b3bf2(0x4a6)](_0x81570d);this[_0x3b3bf2(0x3c2)](_0x118609);break;}case j[_0x3b3bf2(0x220)]:{await this['_loadDoc'](_0x81570d);break;}default:{this[_0x3b3bf2(0x42f)][_0x3b3bf2(0x150)]('[DataLoaderController]','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x53b42f(0x3c2)](_0x2fa6b4){const _0x2beb03=_0x53b42f;await this['_updateSubUnitFromURLParams'](_0x2fa6b4),_0x2fa6b4['activeSheet$']['pipe'](g[_0x2beb03(0x436)](this['dispose$']))[_0x2beb03(0x492)](_0x58072f=>{const _0x1ebbbc=_0x2beb03;_0x58072f&&this[_0x1ebbbc(0x26e)](_0x58072f);}),this[_0x2beb03(0x1e7)]['urlChange$'][_0x2beb03(0x454)](g[_0x2beb03(0x436)](this['dispose$']))[_0x2beb03(0x492)](()=>this[_0x2beb03(0x415)](_0x2fa6b4));}[_0x53b42f(0x26e)](_0xbf12d,_0x41116d=!0x1){const _0x58acd1=_0x53b42f,_0x5b0d96=this[_0x58acd1(0x1e7)]['getParam'](_0x58acd1(0x26c));_0xbf12d['getSheetId']()!==_0x5b0d96&&this[_0x58acd1(0x1e7)][_0x58acd1(0x364)](_0x58acd1(0x26c),_0xbf12d['getSheetId'](),_0x41116d);}async[_0x53b42f(0x415)](_0xbc7345){const _0x267cb0=_0x53b42f;var _0x2ef8e0;const _0x2554bb=this['_urlService'][_0x267cb0(0x358)](_0x267cb0(0x26c));if(!_0x2554bb||!_0xbc7345[_0x267cb0(0x475)](_0x2554bb)){this['_updateURLWithCurrentState'](_0xbc7345[_0x267cb0(0x249)](),!0x0);return;}((_0x2ef8e0=_0xbc7345['getActiveSheet']())==null?void 0x0:_0x2ef8e0[_0x267cb0(0x1b9)]())!==_0x2554bb&&await this[_0x267cb0(0x188)][_0x267cb0(0x1ee)](E[_0x267cb0(0x42c)]['id'],{'unitId':_0xbc7345['getUnitId'](),'subUnitId':_0x2554bb});}async[_0x53b42f(0x4a6)](_0x3742d4){const _0x2d0a7c=_0x53b42f;let _0xab8d2b=0x0;const _0x364180=await this[_0x2d0a7c(0x33e)][_0x2d0a7c(0x3ea)](_0x3742d4);return _0x364180&&(_0x364180[_0x2d0a7c(0x1ca)]||_0x364180['mutations']['length']!==0x0)&&(_0xab8d2b=_0x364180[_0x2d0a7c(0x411)]),_0xab8d2b===0x0&&this[_0x2d0a7c(0x42f)][_0x2d0a7c(0x240)](_0x2d0a7c(0x310),_0x2d0a7c(0x434)),this[_0x2d0a7c(0x3cf)]['loadSheet'](_0x3742d4,_0xab8d2b);}async[_0x53b42f(0x392)](_0x1ed36f){const _0x30099c=_0x53b42f;let _0x194dc5=0x0;const _0x23c49d=await this[_0x30099c(0x33e)]['loadOfflineData'](_0x1ed36f);return _0x23c49d&&(_0x23c49d[_0x30099c(0x1ca)]||_0x23c49d[_0x30099c(0x21b)]['length']!==0x0)&&(_0x194dc5=_0x23c49d['rev']),_0x194dc5===0x0&&this[_0x30099c(0x42f)]['debug'](_0x30099c(0x310),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x30099c(0x3cf)][_0x30099c(0x469)](_0x1ed36f,_0x194dc5);}},exports['DataLoaderController']=gi([a[_0x53b42f(0x13b)](a[_0x53b42f(0x2e2)]['Starting'],exports[_0x53b42f(0x265)]),z(0x0,Ge),z(0x1,a[_0x53b42f(0x4c8)]),z(0x2,a[_0x53b42f(0x1c5)]),z(0x3,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),z(0x4,h[_0x53b42f(0x295)](u[_0x53b42f(0x3b8)])),z(0x5,h[_0x53b42f(0x420)](xt[_0x53b42f(0x197)]))],exports[_0x53b42f(0x265)]);var fi=Object[_0x53b42f(0x38a)],mi=Object[_0x53b42f(0x2a8)],Ii=(_0x388630,_0xe80370,_0x2cf1a1,_0x5f1bfa)=>{const _0x407cb2=_0x53b42f;for(var _0x371b32=_0x5f1bfa>0x1?void 0x0:_0x5f1bfa?mi(_0xe80370,_0x2cf1a1):_0xe80370,_0x4525df=_0x388630[_0x407cb2(0x419)]-0x1,_0x18b30e;_0x4525df>=0x0;_0x4525df--)(_0x18b30e=_0x388630[_0x4525df])&&(_0x371b32=(_0x5f1bfa?_0x18b30e(_0xe80370,_0x2cf1a1,_0x371b32):_0x18b30e(_0x371b32))||_0x371b32);return _0x5f1bfa&&_0x371b32&&fi(_0xe80370,_0x2cf1a1,_0x371b32),_0x371b32;},st=(_0x4b3704,_0x540ffa)=>(_0x437071,_0x50c99f)=>_0x540ffa(_0x437071,_0x50c99f,_0x4b3704);const pi=_0x53b42f(0x4c7),Ei=_0x53b42f(0x4c5);let de=class extends a['Disposable']{constructor(_0x4ef975,_0x32d44e){const _0x4ecad0=_0x53b42f;super(),this[_0x4ecad0(0x49a)]=_0x4ef975,this[_0x4ecad0(0x2a6)]=_0x32d44e,this[_0x4ecad0(0x243)]();}[_0x53b42f(0x243)](){const _0x3af2f1=_0x53b42f;this[_0x3af2f1(0x1e9)](a[_0x3af2f1(0x1bb)](this[_0x3af2f1(0x49a)][_0x3af2f1(0x1c2)][_0x3af2f1(0x492)](()=>{const _0x4407ad=_0x3af2f1;var _0x3162c7;const _0x25c175=this['_univerInstanceService'][_0x4407ad(0x41e)]();let _0x395cb2=(_0x3162c7=this[_0x4407ad(0x2a6)][_0x4407ad(0x1d8)](pi))!=null?_0x3162c7:Ei;_0x25c175 instanceof a[_0x4407ad(0x38c)]&&(_0x395cb2=_0x25c175[_0x4407ad(0x462)]),document[_0x4407ad(0x276)]=_0x395cb2;})));}};de=Ii([a['OnLifecycle'](a[_0x53b42f(0x2e2)][_0x53b42f(0x1be)],de),st(0x0,a[_0x53b42f(0x390)]),st(0x1,a[_0x53b42f(0x4a2)])],de);var Ci=Object[_0x53b42f(0x38a)],bi=Object[_0x53b42f(0x2a8)],Ti=(_0x50ed97,_0x177420,_0x369d8e,_0x46c274)=>{for(var _0x1cd843=_0x46c274>0x1?void 0x0:_0x46c274?bi(_0x177420,_0x369d8e):_0x177420,_0x23b1a6=_0x50ed97['length']-0x1,_0x263a70;_0x23b1a6>=0x0;_0x23b1a6--)(_0x263a70=_0x50ed97[_0x23b1a6])&&(_0x1cd843=(_0x46c274?_0x263a70(_0x177420,_0x369d8e,_0x1cd843):_0x263a70(_0x1cd843))||_0x1cd843);return _0x46c274&&_0x1cd843&&Ci(_0x177420,_0x369d8e,_0x1cd843),_0x1cd843;},it=(_0x20338e,_0x165c84)=>(_0x5e2cc0,_0xb8ce71)=>_0x165c84(_0x5e2cc0,_0xb8ce71,_0x20338e);let Ae=class{constructor(_0x5dd6a0,_0x1dbcc0){const _0x24c823=_0x53b42f;this['_configService']=_0x5dd6a0,this[_0x24c823(0x152)]=_0x1dbcc0;}async[_0x53b42f(0x1bd)](_0x745595,_0x123dfc){const _0x16d18d=_0x53b42f;var _0x42bd5f;const {unitID:_0x357bac,type:_0x3a229d,revision:_0x2c4b62=0x0}=_0x123dfc,_0x3b55ff=this[_0x16d18d(0x28c)]()+'/'+_0x3a229d+_0x16d18d(0x254)+_0x357bac+'/rev/'+(_0x2c4b62===0x1?0x0:_0x2c4b62),_0x2e4088=(await this[_0x16d18d(0x152)][_0x16d18d(0x3d4)](_0x3b55ff))['body'],_0x1c1e01=(_0x42bd5f=_0x2e4088['snapshot'])==null?void 0x0:_0x42bd5f['workbook'];if(_0x1c1e01){const _0x309967=_0x1c1e01==null?void 0x0:_0x1c1e01[_0x16d18d(0x1c8)],_0xf9078d=a['textEncoder'][_0x16d18d(0x1f3)](a[_0x16d18d(0x25f)](_0x309967));_0x1c1e01['originalMeta']=_0xf9078d,Object[_0x16d18d(0x2a3)](_0x1c1e01['sheets'])[_0x16d18d(0x421)](([,_0x61eae2])=>{const _0x4bffb9=_0x16d18d,_0x216b9b=_0x61eae2[_0x4bffb9(0x1c8)],_0x3646fe=a['textEncoder']['encode'](a[_0x4bffb9(0x25f)](_0x216b9b));_0x61eae2[_0x4bffb9(0x1c8)]=_0x3646fe;});}return _0x2e4088;}async['getSheetBlock'](_0x219d65,_0x56ade0){const _0x2c5b24=_0x53b42f,{unitID:_0x20c053,type:_0x5e3b8f,blockID:_0x2a3c62}=_0x56ade0,_0x312c0c=this[_0x2c5b24(0x260)]()+'/'+_0x5e3b8f+'/unit/'+_0x20c053+_0x2c5b24(0x371)+_0x2a3c62;return(await this[_0x2c5b24(0x152)][_0x2c5b24(0x3d4)](_0x312c0c))[_0x2c5b24(0x4cc)];}async[_0x53b42f(0x25e)](_0x1108b1,_0x3e38d5){const _0x5cdd9a=_0x53b42f,{unitID:_0xe95d56,type:_0x45af4f,from:_0x56b4a0,to:_0x3af6c1}=_0x3e38d5,_0x4c742d=this[_0x5cdd9a(0x260)]()+'/'+_0x45af4f+'/unit/'+_0xe95d56+_0x5cdd9a(0x335)+_0x56b4a0+'&to='+_0x3af6c1;return(await this['_httpService']['get'](_0x4c742d))[_0x5cdd9a(0x4cc)];}[_0x53b42f(0x28c)](){const _0x3b3a92=_0x53b42f;var _0x1acaea;return(_0x1acaea=this[_0x3b3a92(0x2a6)][_0x3b3a92(0x1d8)](lt))!=null?_0x1acaea:this['_getAPIPrefix']();}[_0x53b42f(0x260)](){const _0x39775d=_0x53b42f;var _0x3a04b6;return(_0x3a04b6=this[_0x39775d(0x2a6)][_0x39775d(0x1d8)](ct))!=null?_0x3a04b6:kt;}async[_0x53b42f(0x3fa)](_0x301bca,_0x3e23bb){const _0x3f9514=_0x53b42f,_0x45e1d1=_0x3f9514(0x45f)+_0x3e23bb['type']+'/unit/'+_0x3e23bb[_0x3f9514(0x348)]+_0x3f9514(0x2e9);return(await this[_0x3f9514(0x152)][_0x3f9514(0x3d4)](_0x45e1d1,{'params':{'resourceId':JSON[_0x3f9514(0x339)](_0x3e23bb[_0x3f9514(0x1fe)])}}))[_0x3f9514(0x4cc)];}['saveSnapshot'](){const _0x7c87a0=_0x53b42f;throw new Error(_0x7c87a0(0x322));}[_0x53b42f(0x1c6)](){const _0xd211d=_0x53b42f;throw new Error(_0xd211d(0x322));}[_0x53b42f(0x3d2)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Ae=Ti([it(0x0,a[_0x53b42f(0x4a2)]),it(0x1,h[_0x53b42f(0x295)](P[_0x53b42f(0x452)]))],Ae);var Ri=Object[_0x53b42f(0x38a)],Oi=Object[_0x53b42f(0x2a8)],Di=(_0x3f7870,_0x529c0e,_0x3a1985,_0x132cf8)=>{const _0x14f8ee=_0x53b42f;for(var _0x27ae7f=_0x132cf8>0x1?void 0x0:_0x132cf8?Oi(_0x529c0e,_0x3a1985):_0x529c0e,_0x36e6f5=_0x3f7870[_0x14f8ee(0x419)]-0x1,_0x373f8c;_0x36e6f5>=0x0;_0x36e6f5--)(_0x373f8c=_0x3f7870[_0x36e6f5])&&(_0x27ae7f=(_0x132cf8?_0x373f8c(_0x529c0e,_0x3a1985,_0x27ae7f):_0x373f8c(_0x27ae7f))||_0x27ae7f);return _0x132cf8&&_0x27ae7f&&Ri(_0x529c0e,_0x3a1985,_0x27ae7f),_0x27ae7f;},ne=(_0x2ae2bd,_0x1ad325)=>(_0x1ef006,_0x12578d)=>_0x1ad325(_0x1ef006,_0x12578d,_0x2ae2bd);let je=class extends a[_0x53b42f(0x2ec)]{constructor(_0x4324e3,_0x2e0513,_0x3f47fd,_0x44ddda,_0x383225){const _0x526298=_0x53b42f;super(_0x4324e3,_0x2e0513,_0x3f47fd),this[_0x526298(0x2f1)]=_0x44ddda,this[_0x526298(0x42f)]=_0x383225;}[_0x53b42f(0x4d6)](_0x39deeb,_0x537616){const _0x11b7e1=_0x53b42f,_0x3e9db5=this['_getUndoStack'](_0x39deeb);if(_0x3e9db5)try{const _0x22436a=this[_0x11b7e1(0x46b)](_0x3e9db5,_0x537616);this['_substituteUndoStack'](_0x39deeb,_0x22436a);}catch(_0x1be636){this[_0x11b7e1(0x42f)][_0x11b7e1(0x150)](_0x11b7e1(0x181),_0x1be636),this[_0x11b7e1(0x215)](_0x39deeb);}const _0x310291=this['_getRedoStack'](_0x39deeb);if(_0x310291)try{const _0x221a6c=this[_0x11b7e1(0x46b)](_0x310291,_0x537616);this['_substituteRedoStack'](_0x39deeb,_0x221a6c);}catch(_0x1a3bfd){this['_logService'][_0x11b7e1(0x150)](_0x1a3bfd),this[_0x11b7e1(0x149)](_0x39deeb);}}[_0x53b42f(0x215)](_0x2a2d15){const _0x2accda=_0x53b42f,_0x1238d3=this[_0x2accda(0x498)](_0x2a2d15);_0x1238d3&&(_0x1238d3['length']=0x0,this['_updateStatus']());}[_0x53b42f(0x149)](_0x1229bc){const _0x39f5f6=_0x53b42f,_0x37b21c=this[_0x39f5f6(0x34b)](_0x1229bc);_0x37b21c&&(_0x37b21c[_0x39f5f6(0x419)]=0x0,this['_updateStatus']());}[_0x53b42f(0x1a7)](_0x5c883a,_0x5de486){const _0xb2266=_0x53b42f;this['_undoStacks'][_0xb2266(0x2e0)](_0x5c883a,_0x5de486),this[_0xb2266(0x182)]();}[_0x53b42f(0x1b2)](_0x5ce64a,_0x422adf){const _0x3d56f8=_0x53b42f;this[_0x3d56f8(0x413)]['set'](_0x5ce64a,_0x422adf),this[_0x3d56f8(0x182)]();}['_transformStack'](_0x5c2061,_0x46f1e9){const _0x354fdb=_0x53b42f,_0x1fbfc7=[];let _0x1c4695=_0x46f1e9,_0x2f52d8=_0x46f1e9;for(let _0x3df48b=_0x5c2061[_0x354fdb(0x419)]-0x1;_0x3df48b>=0x0;_0x3df48b--){const {unitID:_0x1e74bc,undoMutations:_0x27028f,redoMutations:_0x156ef7}=_0x5c2061[_0x3df48b],_0x2f4fa3=this[_0x354fdb(0x2f1)][_0x354fdb(0x33b)](_0x1c4695,_0x27028f),_0x25af32=this[_0x354fdb(0x2f1)]['transformMutationsWithChangeset'](_0x2f52d8,_0x156ef7);if(u['isTransformMutationsWithChangesetFailure'](_0x2f4fa3)||u['isTransformMutationsWithChangesetFailure'](_0x25af32)){this[_0x354fdb(0x42f)][_0x354fdb(0x150)](_0x354fdb(0x181),'transformStack\x20failed!',_0x2f4fa3,_0x25af32);break;}_0x1c4695=_0x2f4fa3[_0x354fdb(0x132)],_0x2f52d8=_0x25af32[_0x354fdb(0x132)],_0x1fbfc7[_0x354fdb(0x1d7)]({'unitID':_0x1e74bc,'undoMutations':_0x2f4fa3[_0x354fdb(0x2c7)],'redoMutations':_0x25af32[_0x354fdb(0x2c7)]});}return _0x1fbfc7[_0x354fdb(0x35c)]();}};je=Di([ne(0x0,a[_0x53b42f(0x390)]),ne(0x1,a[_0x53b42f(0x1c5)]),ne(0x2,a['IContextService']),ne(0x3,u['ITransformService']),ne(0x4,a[_0x53b42f(0x4c8)])],je);class wt extends a[_0x53b42f(0x3a5)]{constructor(){const _0x1b4d5f=_0x53b42f;super(),d(this,_0x1b4d5f(0x2ef)),this['urlChange$']=g['fromEvent'](window,_0x1b4d5f(0x468))[_0x1b4d5f(0x454)](g[_0x1b4d5f(0x436)](this[_0x1b4d5f(0x35f)]),g[_0x1b4d5f(0x4d4)](0x1),g['mapTo'](void 0x0));}[_0x53b42f(0x364)](_0x2817f3,_0x486195,_0x46ebac=!0x1){const _0x10601b=_0x53b42f,_0x1ce138=new URL(window[_0x10601b(0x223)]['href']);_0x1ce138[_0x10601b(0x350)][_0x10601b(0x2e0)](_0x2817f3,_0x486195),_0x46ebac?window['history']['replaceState']('','',_0x1ce138[_0x10601b(0x423)]()):window[_0x10601b(0x20b)][_0x10601b(0x194)]('','',_0x1ce138[_0x10601b(0x423)]());}[_0x53b42f(0x424)](_0xe3dbf4,_0x27587a=!0x1){const _0x51926d=_0x53b42f,_0x27b561=new URL(window[_0x51926d(0x223)][_0x51926d(0x133)]);_0x27b561['searchParams'][_0x51926d(0x35b)](_0xe3dbf4),_0x27587a?window[_0x51926d(0x20b)][_0x51926d(0x2b5)]('','',_0x27b561[_0x51926d(0x423)]()):window[_0x51926d(0x20b)]['pushState']('','',_0x27b561[_0x51926d(0x423)]());}[_0x53b42f(0x358)](_0x255294){const _0x58e3f0=_0x53b42f;var _0x1d7a66;return(_0x1d7a66=new URL(window['location'][_0x58e3f0(0x133)])[_0x58e3f0(0x350)][_0x58e3f0(0x3d4)](_0x255294))!=null?_0x1d7a66:void 0x0;}}const we='collab-text-anchor-',wi=_0x53b42f(0x1c9),_e=0x6,Li=1.5,Le=0x4,Pi=1.5,Ui='rgba(255,\x20255,\x20255,\x200.01)';class yi{constructor(_0x7ff9cc,_0x2a2f20,_0x2165be,_0x518036){const _0x289522=_0x53b42f;d(this,_0x289522(0x41d),[]),d(this,_0x289522(0x2f3),null),d(this,'_textBubble',null),d(this,'_anchorDot',null),d(this,_0x289522(0x211),null),d(this,'_eventUnsubscribe',null),(this[_0x289522(0x48d)]=_0x7ff9cc,this['_scene']=_0x2a2f20,this[_0x289522(0x4bf)]=_0x2165be,this[_0x289522(0x14f)]=_0x518036,this[_0x289522(0x388)]());}set[_0x53b42f(0x131)](_0x4f164d){const _0x56026f=_0x53b42f;_0x4f164d?(this[_0x56026f(0x26d)]&&this['_anchorDot']['hide'](),this[_0x56026f(0x48e)]&&this[_0x56026f(0x48e)]['show']()):(this[_0x56026f(0x26d)]&&this['_anchorDot'][_0x56026f(0x138)](),this[_0x56026f(0x48e)]&&this[_0x56026f(0x48e)]['hide']());}[_0x53b42f(0x4df)](){const _0x10563c=_0x53b42f;for(const _0x55e2a9 of this['_shapes'])_0x55e2a9[_0x10563c(0x4df)]();this[_0x10563c(0x48e)]&&this[_0x10563c(0x48e)][_0x10563c(0x4df)](),this[_0x10563c(0x26d)]&&this[_0x10563c(0x26d)][_0x10563c(0x4df)](),this[_0x10563c(0x2f3)]&&this['_anchor'][_0x10563c(0x4df)](),this[_0x10563c(0x2ad)]&&this[_0x10563c(0x2ad)]();}[_0x53b42f(0x388)](){const _0x177379=_0x53b42f,{_docSkeleton:_0x3ae482,_document:_0x6b75b7}=this,{color:_0x1f8ded,name:_0x22e44c,ranges:_0x1a6054}=this[_0x177379(0x48d)],_0x271f22=_0x6b75b7[_0x177379(0x3f1)](),{docsLeft:_0x4f8e24,docsTop:_0x127b8f}=_0x271f22,_0x3cd0ed=new R[(_0x177379(0x1e4))](_0x271f22,_0x3ae482);for(const {startOffset:_0x4cb43f,endOffset:_0x735e1b,collapsed:_0x1c1c24,isActive:_0x56187e}of _0x1a6054){const _0x35cb50=_0x3ae482[_0x177379(0x3c1)](_0x4cb43f),_0x2d5ca8=_0x3ae482[_0x177379(0x3c1)](_0x735e1b);if(_0x56187e){const {contentBoxPointGroup:_0x45b5c6}=_0x3cd0ed[_0x177379(0x333)](_0x2d5ca8,_0x2d5ca8);if(_0x45b5c6[_0x177379(0x419)]===0x0)continue;this['_drawAnchor'](_0x1f8ded,_0x45b5c6,_0x4f8e24,_0x127b8f,_0x22e44c),this[_0x177379(0x2ad)]=this[_0x177379(0x246)]();}if(!_0x1c1c24){const {contentBoxPointGroup:_0x9aedd5}=_0x3cd0ed[_0x177379(0x333)](_0x35cb50,_0x2d5ca8);if(_0x9aedd5[_0x177379(0x419)]===0x0)continue;this[_0x177379(0x28e)](_0x1f8ded,_0x9aedd5,_0x4f8e24,_0x127b8f);}}}[_0x53b42f(0x47f)](_0x29e384,_0x56ed1d,_0x185e9e,_0x1ff77b,_0x33fa35){const _0xd7c1f2=_0x53b42f,_0x5801ca=this['_getAnchorBounding'](_0x56ed1d),{left:_0x1b44c6,top:_0x1020e5,height:_0x1f8a73}=_0x5801ca,_0x3a1386=this[_0xd7c1f2(0x29c)](),_0x4872bc=Pi/_0x3a1386,_0x110b01=new R[(_0xd7c1f2(0x184))](we+a[_0xd7c1f2(0x3a8)]['generateRandomId'](_e),{'left':_0x1b44c6+_0x185e9e-_0x4872bc,'top':_0x1020e5+_0x1ff77b,'height':_0x1f8a73,'width':Li,'fill':_0x29e384||R[_0xd7c1f2(0x14b)](a[_0xd7c1f2(0x2e3)][_0xd7c1f2(0x38b)],0x0),'strokeWidth':_0x4872bc,'stroke':Ui,'evented':!0x0});this[_0xd7c1f2(0x2f3)]=_0x110b01,this['_scene'][_0xd7c1f2(0x3e4)](_0x110b01,R[_0xd7c1f2(0x1dd)]);const _0x540212=new R[(_0xd7c1f2(0x184))](we+a[_0xd7c1f2(0x3a8)][_0xd7c1f2(0x1f7)](_e),{'left':_0x1b44c6+_0x185e9e-_0x4872bc,'top':_0x1020e5+_0x1ff77b-Le/0x2,'height':Le,'width':Le,'fill':_0x29e384||R[_0xd7c1f2(0x14b)](a[_0xd7c1f2(0x2e3)][_0xd7c1f2(0x38b)],0x0),'strokeWidth':0x0,'stroke':_0x29e384||R['getColor'](a['COLORS'][_0xd7c1f2(0x38b)],0x0),'evented':!0x1});this[_0xd7c1f2(0x26d)]=_0x540212,this[_0xd7c1f2(0x22f)]['addObject'](_0x540212,R[_0xd7c1f2(0x1dd)]);const _0x5a301a=new Ce(we+a['Tools'][_0xd7c1f2(0x1f7)](_e),{'left':_0x1b44c6+_0x185e9e-_0x4872bc,'top':_0x1020e5+_0x1ff77b-ce,'text':_0x33fa35,'color':_0x29e384});this[_0xd7c1f2(0x48e)]=_0x5a301a,this[_0xd7c1f2(0x22f)][_0xd7c1f2(0x3e4)](_0x5a301a,R[_0xd7c1f2(0x1dd)]),this[_0xd7c1f2(0x131)]=!0x1;}['_handleHover'](){const _0x32b744=_0x53b42f,_0x4b95a1=this['_anchor'][_0x32b744(0x206)][_0x32b744(0x1e5)](()=>{this['_hover']=!0x0;}),_0x4fa9f7=this['_anchor'][_0x32b744(0x3b5)][_0x32b744(0x1e5)](()=>{const _0x48447f=_0x32b744;this[_0x48447f(0x211)]&&clearTimeout(this[_0x48447f(0x211)]),this[_0x48447f(0x211)]=setTimeout(()=>{const _0x34d0ef=_0x48447f;this[_0x34d0ef(0x131)]=!0x1;},0x7d0);});return()=>{const _0x39debc=_0x32b744;var _0x53e803,_0x209275;(_0x53e803=this[_0x39debc(0x2f3)])==null||_0x53e803[_0x39debc(0x206)][_0x39debc(0x49d)](_0x4b95a1),(_0x209275=this[_0x39debc(0x2f3)])==null||_0x209275['onPointerLeaveObserver'][_0x39debc(0x49d)](_0x4fa9f7);};}[_0x53b42f(0x28e)](_0x206ce6,_0x56b60b,_0x53ca35,_0x2a92ec){const _0x2fa714=_0x53b42f,_0x5ed647=new a[(_0x2fa714(0x39b))](_0x206ce6)[_0x2fa714(0x31d)](0.2)[_0x2fa714(0x330)](),_0x1f04bd=new R[(_0x2fa714(0x3c3))](wi+a['Tools'][_0x2fa714(0x1f7)](_e),{'pointsGroup':_0x56b60b,'fill':_0x5ed647||R['getColor'](a[_0x2fa714(0x2e3)][_0x2fa714(0x38b)],0.2),'left':_0x53ca35,'top':_0x2a92ec,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2fa714(0x41d)][_0x2fa714(0x1d7)](_0x1f04bd),this[_0x2fa714(0x22f)][_0x2fa714(0x3e4)](_0x1f04bd,R[_0x2fa714(0x1dd)]);}[_0x53b42f(0x17c)](_0x834347){const _0x5b0c0e=_0x834347[0x0],_0x50562d=_0x5b0c0e[0x0],_0x446760=_0x5b0c0e[0x2],{x:_0x293172,y:_0x327bab}=_0x50562d,{x:_0x26a5fb,y:_0x18bc27}=_0x446760;return{'left':_0x293172,'top':_0x327bab,'width':_0x26a5fb-_0x293172,'height':_0x18bc27-_0x327bab};}['_getScale'](){const {scaleX:_0x655d9,scaleY:_0xc5d0c8}=this['_scene']['getAncestorScale']();return Math['max'](_0x655d9,_0xc5d0c8);}}var Mi=Object[_0x53b42f(0x38a)],Ni=Object[_0x53b42f(0x2a8)],Ai=(_0x524988,_0x449bff,_0x51712b,_0x14f769)=>{const _0x1d50ec=_0x53b42f;for(var _0x6a5deb=_0x14f769>0x1?void 0x0:_0x14f769?Ni(_0x449bff,_0x51712b):_0x449bff,_0x16e242=_0x524988[_0x1d50ec(0x419)]-0x1,_0xed1be1;_0x16e242>=0x0;_0x16e242--)(_0xed1be1=_0x524988[_0x16e242])&&(_0x6a5deb=(_0x14f769?_0xed1be1(_0x449bff,_0x51712b,_0x6a5deb):_0xed1be1(_0x6a5deb))||_0x6a5deb);return _0x14f769&&_0x6a5deb&&Mi(_0x449bff,_0x51712b,_0x6a5deb),_0x6a5deb;},re=(_0x41d96f,_0x9c925d)=>(_0x5b6480,_0x2ef75f)=>_0x9c925d(_0x5b6480,_0x2ef75f,_0x41d96f);let Se=class extends a[_0x53b42f(0x3a5)]{constructor(_0x4d858c,_0x1b244d,_0x1f4ceb,_0x42d1c0,_0x464ca5){const _0x5e7aec=_0x53b42f;super(),d(this,_0x5e7aec(0x3a6),[]),(this[_0x5e7aec(0x491)]=_0x4d858c,this['_univerInstanceService']=_0x1b244d,this[_0x5e7aec(0x198)]=_0x1f4ceb,this[_0x5e7aec(0x318)]=_0x42d1c0,this[_0x5e7aec(0x48a)]=_0x464ca5,this[_0x5e7aec(0x243)]());}[_0x53b42f(0x243)](){const _0x30503c=_0x53b42f;this[_0x30503c(0x318)][_0x30503c(0x326)]['pipe'](T['takeUntil'](this[_0x30503c(0x35f)]),T['switchMap'](_0x3fd307=>{const _0x266e8b=_0x30503c;if(_0x3fd307){const {unitId:_0x16cba6}=_0x3fd307;return g[_0x266e8b(0x165)](this[_0x266e8b(0x491)][_0x266e8b(0x4d9)](_0x16cba6),this[_0x266e8b(0x48a)][_0x266e8b(0x3b6)])[_0x266e8b(0x454)](T[_0x266e8b(0x1af)](([_0x51e2de,_0x4fc914])=>({'skeleton':_0x3fd307,'cursors':[..._0x51e2de[_0x266e8b(0x4d7)]()][_0x266e8b(0x4a0)](_0x15c2e2=>({..._0x15c2e2,'color':_0x4fc914[_0x15c2e2[_0x266e8b(0x2f4)]]}))})));}return g['of']({'skeleton':null,'cursors':[]});}))[_0x30503c(0x492)](({skeleton:_0x2f7ec9,cursors:_0x3664b3})=>{const _0x4af0bb=_0x30503c;this[_0x4af0bb(0x380)](),_0x2f7ec9&&this['_updateCollabCursors'](_0x2f7ec9[_0x4af0bb(0x159)],_0x3664b3);});}['_updateCollabCursors'](_0x5e2031,_0x90dd6b){const _0x2c28c7=_0x53b42f,_0x49f10b=this[_0x2c28c7(0x36d)]();if(_0x49f10b==null)return;const {scene:_0x8e3dba,document:_0x4c4595}=_0x49f10b,_0x2d39dd=_0x90dd6b[_0x2c28c7(0x1af)](_0x2cbeb7=>new yi(_0x2cbeb7,_0x8e3dba,_0x5e2031,_0x4c4595));this[_0x2c28c7(0x3a6)]=_0x2d39dd;}[_0x53b42f(0x380)](){const _0x458aef=_0x53b42f;this[_0x458aef(0x3a6)][_0x458aef(0x421)](_0x2b4f6a=>_0x2b4f6a[_0x458aef(0x4df)]()),this['_cursors']=[];}[_0x53b42f(0x36d)](){const _0x36ef01=_0x53b42f;return M[_0x36ef01(0x151)](this[_0x36ef01(0x49a)],this[_0x36ef01(0x198)]);}};Se=Ai([a['OnLifecycle'](a[_0x53b42f(0x2e2)]['Steady'],Se),re(0x0,h[_0x53b42f(0x295)](J)),re(0x1,a[_0x53b42f(0x390)]),re(0x2,R['IRenderManagerService']),re(0x3,h[_0x53b42f(0x295)](M[_0x53b42f(0x3f3)])),re(0x4,h[_0x53b42f(0x295)](a[_0x53b42f(0x1e8)]))],Se);var ji=Object[_0x53b42f(0x38a)],$i=Object[_0x53b42f(0x2a8)],Hi=(_0x5f5144,_0x3f4589,_0x26ee4f,_0x2b4662)=>{const _0x38d6ba=_0x53b42f;for(var _0x45435c=_0x2b4662>0x1?void 0x0:_0x2b4662?$i(_0x3f4589,_0x26ee4f):_0x3f4589,_0x8d726a=_0x5f5144[_0x38d6ba(0x419)]-0x1,_0x19785b;_0x8d726a>=0x0;_0x8d726a--)(_0x19785b=_0x5f5144[_0x8d726a])&&(_0x45435c=(_0x2b4662?_0x19785b(_0x3f4589,_0x26ee4f,_0x45435c):_0x19785b(_0x45435c))||_0x45435c);return _0x2b4662&&_0x45435c&&ji(_0x3f4589,_0x26ee4f,_0x45435c),_0x45435c;},Pe=(_0x124949,_0x156cd5)=>(_0x5da489,_0x2f9696)=>_0x156cd5(_0x5da489,_0x2f9696,_0x124949);let Ie=class{constructor(_0x2f53f2,_0x2f38af,_0x2ea6d5){const _0x533c6d=_0x53b42f;this[_0x533c6d(0x2a6)]=_0x2f53f2,this[_0x533c6d(0x152)]=_0x2f38af,this[_0x533c6d(0x34f)]=_0x2ea6d5,this[_0x533c6d(0x433)]();}[_0x53b42f(0x433)](){const _0x2b1985=_0x53b42f;this[_0x2b1985(0x152)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x3a21b7,_0x5275e9)=>_0x5275e9(_0x3a21b7)['pipe'](g[_0x2b1985(0x15a)](async _0x2bef6c=>{const _0x50eab2=_0x2b1985,_0x47e7ae=_0x2bef6c;if(_0x47e7ae[_0x50eab2(0x2a7)]===0x191&&window[_0x50eab2(0x4a7)](this[_0x50eab2(0x34f)]['t'](_0x50eab2(0x251)))){const _0xb0ebc4=window[_0x50eab2(0x13c)](window[_0x50eab2(0x223)][_0x50eab2(0x133)]);window[_0x50eab2(0x223)][_0x50eab2(0x133)]=this[_0x50eab2(0x4ca)]()+_0x50eab2(0x429)+_0xb0ebc4;}return _0x47e7ae;}))});}['_getLoginPath'](){const _0x4be8bf=_0x53b42f;var _0x4fb305;return(_0x4fb305=this[_0x4be8bf(0x2a6)][_0x4be8bf(0x1d8)](gt))!=null?_0x4fb305:zt;}};Ie=Hi([Pe(0x0,a[_0x53b42f(0x4a2)]),Pe(0x1,h[_0x53b42f(0x295)](P['HTTPService'])),Pe(0x2,h[_0x53b42f(0x295)](a['LocaleService']))],Ie);var xi=Object[_0x53b42f(0x38a)],ki=Object['getOwnPropertyDescriptor'],Bi=(_0x4bb00d,_0x4dc1ee,_0x484f5a,_0x30950b)=>{const _0x339a29=_0x53b42f;for(var _0x37085f=_0x30950b>0x1?void 0x0:_0x30950b?ki(_0x4dc1ee,_0x484f5a):_0x4dc1ee,_0x57f849=_0x4bb00d[_0x339a29(0x419)]-0x1,_0x480324;_0x57f849>=0x0;_0x57f849--)(_0x480324=_0x4bb00d[_0x57f849])&&(_0x37085f=(_0x30950b?_0x480324(_0x4dc1ee,_0x484f5a,_0x37085f):_0x480324(_0x37085f))||_0x37085f);return _0x30950b&&_0x37085f&&xi(_0x4dc1ee,_0x484f5a,_0x37085f),_0x37085f;},nt=(_0x44abb4,_0x5c947e)=>(_0x12a511,_0x3bebd1)=>_0x5c947e(_0x12a511,_0x3bebd1,_0x44abb4);const Lt='AUTHZ_URL_KEY',Fi=_0x53b42f(0x3f6);exports[_0x53b42f(0x362)]=class{constructor(_0x44c60b,_0x5ea682){const _0x10bfb8=_0x53b42f;this[_0x10bfb8(0x400)]=_0x44c60b,this[_0x10bfb8(0x2a6)]=_0x5ea682;}[_0x53b42f(0x1ff)](){const _0x1e7e73=_0x53b42f;var _0x1e6c1c;return(_0x1e6c1c=this[_0x1e7e73(0x2a6)][_0x1e7e73(0x1d8)](Lt))!=null?_0x1e6c1c:Fi;}async[_0x53b42f(0x1c1)](_0x2f0240){const _0x2ac3ca=_0x53b42f,_0x155100=this[_0x2ac3ca(0x1ff)]()+'/'+_0x2f0240[_0x2ac3ca(0x2d4)]+'/object';return(await this[_0x2ac3ca(0x400)][_0x2ac3ca(0x30c)](_0x155100,{'body':_0x2f0240}))['body'][_0x2ac3ca(0x309)]||'';}async['list'](_0x3b7180){const _0x332ee4=_0x53b42f,_0x2d31dd=this[_0x332ee4(0x1ff)]()+_0x332ee4(0x207);return(await this['_HTTPService'][_0x332ee4(0x30c)](_0x2d31dd,{'body':_0x3b7180}))['body'][_0x332ee4(0x38f)];}async['update'](_0x5e0c16){const _0x27b3d3=_0x53b42f,_0x21ca0d=this[_0x27b3d3(0x1ff)]()+'/'+_0x5e0c16[_0x27b3d3(0x2d4)]+_0x27b3d3(0x1b5)+_0x5e0c16[_0x27b3d3(0x309)];await this[_0x27b3d3(0x400)][_0x27b3d3(0x286)](_0x21ca0d,{'body':_0x5e0c16});}async[_0x53b42f(0x234)](_0x576a37){const _0x23108f=_0x53b42f,_0x300b2f=this[_0x23108f(0x1ff)]()+'/'+_0x576a37[_0x23108f(0x2d4)]+_0x23108f(0x1b5)+_0x576a37[_0x23108f(0x309)]+_0x23108f(0x2d3);return(await this[_0x23108f(0x400)][_0x23108f(0x30c)](_0x300b2f,{'body':_0x576a37}))[_0x23108f(0x4cc)]['actions'];}async[_0x53b42f(0x360)](_0x258574){const _0x5e2bf5=_0x53b42f,_0x3f598c=this[_0x5e2bf5(0x1ff)]()+_0x5e2bf5(0x357);return(await this[_0x5e2bf5(0x400)]['post'](_0x3f598c,{'body':{'requests':_0x258574}}))['body']['objectActions'];}async[_0x53b42f(0x3f8)](_0x43e0cf){const _0x556958=_0x53b42f,_0x20c563=this[_0x556958(0x1ff)]()+'/'+_0x43e0cf['objectType']+_0x556958(0x1f6),_0x423096=await this['_HTTPService'][_0x556958(0x30c)](_0x20c563,{'body':_0x43e0cf});return{'roles':_0x423096[_0x556958(0x4cc)][_0x556958(0x2bc)],'actions':_0x423096[_0x556958(0x4cc)][_0x556958(0x2c1)]};}async[_0x53b42f(0x456)](_0x12a81e){const _0x58da4e=_0x53b42f,_0x3100ca=this[_0x58da4e(0x1ff)]()+_0x58da4e(0x382);await this['_HTTPService']['delete'](_0x3100ca,{'params':{'collaboratorID':_0x12a81e['collaboratorID'],'objectID':_0x12a81e[_0x58da4e(0x309)],'unitID':_0x12a81e[_0x58da4e(0x348)]}});}async[_0x53b42f(0x136)](_0x352583){const _0x1ea35b=_0x53b42f,_0x575b47=this[_0x1ea35b(0x1ff)]()+_0x1ea35b(0x382);await this[_0x1ea35b(0x400)][_0x1ea35b(0x4a3)](_0x575b47,{'body':_0x352583});}async[_0x53b42f(0x296)](_0x100e59){const _0x35eaf5=_0x53b42f,_0x1db08f=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x35eaf5(0x400)][_0x35eaf5(0x30c)](_0x1db08f,{'body':_0x100e59});}async[_0x53b42f(0x4b4)](_0x388e95){const _0x871435=_0x53b42f,_0x57e935=this[_0x871435(0x1ff)]()+'/collaborator';return(await this[_0x871435(0x400)][_0x871435(0x3d4)](_0x57e935,{'params':{'objectID':_0x388e95[_0x871435(0x309)],'unitID':_0x388e95[_0x871435(0x348)]}}))['body'][_0x871435(0x193)];}async[_0x53b42f(0x227)](_0x345fec){const _0x22acc7=_0x53b42f,_0x2ced63=this[_0x22acc7(0x1ff)]()+_0x22acc7(0x382);await this['_HTTPService'][_0x22acc7(0x286)](_0x2ced63,{'body':_0x345fec});}},exports[_0x53b42f(0x362)]=Bi([nt(0x0,h[_0x53b42f(0x295)](P['HTTPService'])),nt(0x1,h[_0x53b42f(0x295)](a[_0x53b42f(0x4a2)]))],exports[_0x53b42f(0x362)]);var Vi=Object['defineProperty'],Wi=Object['getOwnPropertyDescriptor'],Gi=(_0x4574fe,_0x4b5218,_0xe4878,_0x43c45c)=>{const _0x2f5b88=_0x53b42f;for(var _0x15ae7e=_0x43c45c>0x1?void 0x0:_0x43c45c?Wi(_0x4b5218,_0xe4878):_0x4b5218,_0x912ab5=_0x4574fe[_0x2f5b88(0x419)]-0x1,_0x22ec58;_0x912ab5>=0x0;_0x912ab5--)(_0x22ec58=_0x4574fe[_0x912ab5])&&(_0x15ae7e=(_0x43c45c?_0x22ec58(_0x4b5218,_0xe4878,_0x15ae7e):_0x22ec58(_0x15ae7e))||_0x15ae7e);return _0x43c45c&&_0x15ae7e&&Vi(_0x4b5218,_0xe4878,_0x15ae7e),_0x15ae7e;},rt=(_0x38f0a3,_0x5b8a39)=>(_0x1b008d,_0x2badb4)=>_0x5b8a39(_0x1b008d,_0x2badb4,_0x38f0a3);const Yi=[_0x53b42f(0x3ad),'image/jpeg',_0x53b42f(0x4b1),'image/gif',_0x53b42f(0x396)],Ki=0x5*0x400*0x400,Xi=_0x53b42f(0x426),qi='/universer-api/stream/file/upload',zi=_0x53b42f(0x1eb),Ji='/universer-api/file/{fileID}/sign-url';let $e=class{constructor(_0x5456e9,_0x276fb0){const _0x20207e=_0x53b42f;d(this,_0x20207e(0x30d),0x0),d(this,'_change$',new g[(_0x20207e(0x298))]()),d(this,_0x20207e(0x300),this[_0x20207e(0x203)]),d(this,_0x20207e(0x484),new Map()),(this['_httpService']=_0x5456e9,this['_configService']=_0x276fb0);}[_0x53b42f(0x332)](_0x3cad8d){const _0x4e5cc8=_0x53b42f;this[_0x4e5cc8(0x30d)]=_0x3cad8d,this['_change$'][_0x4e5cc8(0x414)](_0x3cad8d);}[_0x53b42f(0x25c)](_0x5eb06f,_0x42e398){const _0x56bac9=_0x53b42f;if(_0x42e398===A[_0x56bac9(0x336)][_0x56bac9(0x485)]){const _0x5334ec=new Image();return _0x5334ec['src']=_0x5eb06f,_0x5334ec;}return this['_imageSourceCache'][_0x56bac9(0x3d4)](_0x5eb06f);}[_0x53b42f(0x176)](_0x47995f,_0x204a0d,_0x5bc6b1){const _0x1b61ea=_0x53b42f;_0x204a0d===A[_0x1b61ea(0x336)][_0x1b61ea(0x485)]||_0x5bc6b1==null||this[_0x1b61ea(0x484)][_0x1b61ea(0x2e0)](_0x47995f,_0x5bc6b1);}async[_0x53b42f(0x39e)](_0x5329d9){const _0xcac383=_0x53b42f;try{const _0x418842=this['_replaceFileID'](this[_0xcac383(0x402)](),''+_0x5329d9),_0x30aaf0=(await this[_0xcac383(0x152)][_0xcac383(0x3d4)](_0x418842))[_0xcac383(0x4cc)];return _0x30aaf0[_0xcac383(0x150)]&&_0x30aaf0[_0xcac383(0x150)]['code']===ft['OK']?Promise[_0xcac383(0x4d2)](_0x30aaf0['url']):Promise[_0xcac383(0x1bf)](_0x30aaf0['error']);}catch(_0x1d6510){return Promise[_0xcac383(0x1bf)](_0x1d6510);}}async[_0x53b42f(0x444)](_0x53ccf2){const _0x57f71c=_0x53b42f;let _0x785b2f='';if(!Yi[_0x57f71c(0x245)](_0x53ccf2['type']))return this['_decreaseWaiting'](),Promise[_0x57f71c(0x1bf)](new Error(A['ImageUploadStatusType'][_0x57f71c(0x4d8)]));if(_0x53ccf2[_0x57f71c(0x22a)]>Ki)return this[_0x57f71c(0x299)](),Promise[_0x57f71c(0x1bf)](new Error(A[_0x57f71c(0x48b)][_0x57f71c(0x219)]));try{const _0x38b7e4=new FormData();_0x38b7e4[_0x57f71c(0x2b3)](_0x57f71c(0x1b3),_0x53ccf2);const _0x2d5c69=this[_0x57f71c(0x1ae)]()+_0x57f71c(0x3ac)+_0x53ccf2['size'][_0x57f71c(0x423)](),_0x393225=await(await fetch(_0x2d5c69,{'method':_0x57f71c(0x216),'body':_0x38b7e4}))[_0x57f71c(0x18a)]();if(typeof _0x393225[_0x57f71c(0x250)]!='string')return this[_0x57f71c(0x299)](),Promise[_0x57f71c(0x1bf)](new Error(A[_0x57f71c(0x48b)]['ERROR_IMAGE']));_0x785b2f=_0x393225[_0x57f71c(0x250)];}catch{return this[_0x57f71c(0x299)](),Promise[_0x57f71c(0x1bf)](new Error(A[_0x57f71c(0x48b)][_0x57f71c(0x321)]));}return new Promise((_0x289b0c,_0x25fceb)=>{const _0x4bc48c=_0x57f71c,_0x4374b1=new FileReader();_0x4374b1[_0x4bc48c(0x363)](_0x53ccf2),_0x4374b1[_0x4bc48c(0x2d6)]=_0x14c12c=>{const _0x287f92=_0x4bc48c;var _0x5bd074;const _0x3e907c=(_0x5bd074=_0x14c12c['target'])==null?void 0x0:_0x5bd074[_0x287f92(0x47a)];if(_0x3e907c==null){this[_0x287f92(0x299)](),_0x25fceb(new Error(A[_0x287f92(0x48b)][_0x287f92(0x321)]));return;}const _0x52f36f=a[_0x287f92(0x3a8)][_0x287f92(0x1f7)](0x6);_0x289b0c({'imageId':_0x52f36f,'imageSourceType':A[_0x287f92(0x336)][_0x287f92(0x2d9)],'source':_0x785b2f,'base64Cache':_0x3e907c,'status':A[_0x287f92(0x48b)]['SUCCUSS']}),this[_0x287f92(0x299)]();};});}[_0x53b42f(0x1ae)](){const _0x2f4f39=_0x53b42f;var _0x574443;return(_0x574443=this['_configService'][_0x2f4f39(0x1d8)](Xi))!=null?_0x574443:qi;}['_getSignURL'](){const _0x42841c=_0x53b42f;var _0x86096b;return(_0x86096b=this[_0x42841c(0x2a6)]['getConfig'](zi))!=null?_0x86096b:Ji;}[_0x53b42f(0x3d3)](_0x304ac1,_0x3d6591){const _0x448c09=_0x53b42f;return _0x304ac1[_0x448c09(0x153)]('{fileID}',_0x3d6591);}[_0x53b42f(0x299)](){const _0x383a9a=_0x53b42f;this[_0x383a9a(0x30d)]-=0x1,this['_change$'][_0x383a9a(0x414)](this[_0x383a9a(0x30d)]);}};$e=Gi([rt(0x0,h['Inject'](P[_0x53b42f(0x452)])),rt(0x1,a['IConfigService'])],$e);var Pt=Object[_0x53b42f(0x38a)],Zi=Object[_0x53b42f(0x2a8)],Qi=(_0x2df94c,_0xbcda71,_0x570200)=>_0xbcda71 in _0x2df94c?Pt(_0x2df94c,_0xbcda71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x570200}):_0x2df94c[_0xbcda71]=_0x570200,en=(_0x1d77d4,_0x87cfd8,_0x529906,_0x5051fa)=>{for(var _0x28451f=_0x5051fa>0x1?void 0x0:_0x5051fa?Zi(_0x87cfd8,_0x529906):_0x87cfd8,_0x99e65b=_0x1d77d4['length']-0x1,_0x14518a;_0x99e65b>=0x0;_0x99e65b--)(_0x14518a=_0x1d77d4[_0x99e65b])&&(_0x28451f=(_0x5051fa?_0x14518a(_0x87cfd8,_0x529906,_0x28451f):_0x14518a(_0x28451f))||_0x28451f);return _0x5051fa&&_0x28451f&&Pt(_0x87cfd8,_0x529906,_0x28451f),_0x28451f;},ot=(_0x58d1a6,_0xb09d95)=>(_0x89e34,_0x45f6fd)=>_0xb09d95(_0x89e34,_0x45f6fd,_0x58d1a6),tn=(_0x453ef0,_0x2c3841,_0x23b17f)=>Qi(_0x453ef0,_0x2c3841+'',_0x23b17f);const sn=_0x53b42f(0x37d);exports[_0x53b42f(0x15e)]=class extends a['Plugin']{constructor(_0x1d6878,_0x24f969,_0x4eb417){const _0x137c33=_0x53b42f;super(),this[_0x137c33(0x481)]=_0x1d6878,this[_0x137c33(0x42f)]=_0x24f969,this[_0x137c33(0x45d)]=_0x4eb417;}[_0x53b42f(0x470)](_0xa32c4b){const _0x1da3ad=_0x53b42f;var _0x26f4c7,_0x24e516,_0x11fc1a,_0x45d55e,_0x374786;_0xa32c4b[_0x1da3ad(0x378)](a[_0x1da3ad(0x4a1)])&&this[_0x1da3ad(0x42f)]['error'](_0x1da3ad(0x3bd),_0x1da3ad(0x3a4));let _0x439a21=[[a[_0x1da3ad(0x4a1)],{'useClass':je}],[exports[_0x1da3ad(0x14a)]],[Ve],[P[_0x1da3ad(0x452)]],[Ge,{'useClass':wt}],[G],[exports[_0x1da3ad(0x4b3)]],[P['WebSocketService']],[fe],[ge],[ve],[Fe],[Ie],[Be,{'useClass':(_0x24e516=(_0x26f4c7=this[_0x1da3ad(0x481)])==null?void 0x0:_0x26f4c7[_0x1da3ad(0x21c)])!=null?_0x24e516:exports[_0x1da3ad(0x236)]}],[P[_0x1da3ad(0x3a9)],{'useClass':P['XHRHTTPImplementation']}],[a[_0x1da3ad(0x174)],{'useClass':Ae}],[a[_0x1da3ad(0x226)],{'useClass':exports[_0x1da3ad(0x362)]}],[A['IImageIoService'],{'useClass':$e}],[exports[_0x1da3ad(0x301)]],[exports[_0x1da3ad(0x265)]],[exports['DesktopCollaborationStatusDisplayController']],[de],[J]];(_0x11fc1a=this['_config'])!=null&&_0x11fc1a[_0x1da3ad(0x3ba)]&&_0x439a21['push']([pe,{'useClass':hs}]),((_0x45d55e=this[_0x1da3ad(0x481)])==null?void 0x0:_0x45d55e[_0x1da3ad(0x3a2)])==null||this['_config']['collaborationUniverTypes'][_0x1da3ad(0x245)](a[_0x1da3ad(0x142)]['UNIVER_SHEET'])?_0x439a21['push']([ue]):this[_0x1da3ad(0x481)][_0x1da3ad(0x3a2)]['includes'](a['UniverInstanceType']['UNIVER_DOC'])&&_0x439a21['push']([Se]),_0x439a21=a[_0x1da3ad(0x370)](_0x439a21,(_0x374786=this[_0x1da3ad(0x481)])==null?void 0x0:_0x374786[_0x1da3ad(0x1e1)]),_0x439a21[_0x1da3ad(0x421)](_0x5de78b=>_0xa32c4b[_0x1da3ad(0x1e5)](_0x5de78b)),_0xa32c4b[_0x1da3ad(0x3d4)](P[_0x1da3ad(0x452)])[_0x1da3ad(0x3ce)]({'priority':0x14,'interceptor':P[_0x1da3ad(0x3c0)]({'maxParallel':0x6})}),this[_0x1da3ad(0x1c4)]();}[_0x53b42f(0x1c4)](){const _0x4e69ab=_0x53b42f;var _0x1e96ae,_0x4d5579;(_0x1e96ae=this[_0x4e69ab(0x481)])!=null&&_0x1e96ae[_0x4e69ab(0x253)]||this[_0x4e69ab(0x45d)][_0x4e69ab(0x3d4)](exports[_0x4e69ab(0x4b3)])[_0x4e69ab(0x3be)](),(_0x4d5579=this[_0x4e69ab(0x481)])!=null&&_0x4d5579[_0x4e69ab(0x166)]&&this[_0x4e69ab(0x45d)][_0x4e69ab(0x3d4)](Ie);}},tn(exports[_0x53b42f(0x15e)],_0x53b42f(0x2fe),sn),exports[_0x53b42f(0x15e)]=en([a[_0x53b42f(0x14c)](u[_0x53b42f(0x365)]),ot(0x1,a[_0x53b42f(0x4c8)]),ot(0x2,h[_0x53b42f(0x295)](h['Injector']))],exports[_0x53b42f(0x15e)]),exports[_0x53b42f(0x46a)]=Lt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=vt,exports[_0x53b42f(0x24a)]=_t,exports['CollaborationStatus']=w,exports[_0x53b42f(0x14d)]=Dt,exports[_0x53b42f(0x32a)]=ut,exports[_0x53b42f(0x2ac)]=xe,exports[_0x53b42f(0x261)]=Be,exports[_0x53b42f(0x476)]=Ge,exports['LOCAL_CACHE_INTERVAL_KEY']=St,exports[_0x53b42f(0x465)]=gt,exports[_0x53b42f(0x430)]=ht,exports['SNAPSHOT_SERVER_URL_KEY']=ct,exports[_0x53b42f(0x44c)]=lt,exports['SessionStatus']=W,exports[_0x53b42f(0x38d)]=wt,exports[_0x53b42f(0x18c)]=mt,exports['serializeCombRequest']=It;
|