@univerjs-pro/collaboration-client 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/locale/en-US.json +2 -1
- package/lib/locale/ru-RU.json +2 -1
- package/lib/locale/vi-VN.json +33 -0
- package/lib/locale/zh-CN.json +2 -1
- package/lib/locale/zh-TW.json +33 -0
- package/lib/types/locale/vi-VN.d.ts +4 -0
- package/lib/types/locale/zh-CN.d.ts +1 -0
- package/lib/types/locale/zh-TW.d.ts +4 -0
- package/lib/types/services/permission/permission.service.d.ts +14 -0
- package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +4 -0
- package/lib/umd/index.js +1 -1
- package/package.json +27 -27
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x29c6a6=_0x34fd;(function(_0x396b14,_0x50ab69){const _0x2af0c2=_0x34fd,_0x203107=_0x396b14();while(!![]){try{const _0x79b079=parseInt(_0x2af0c2(0x3f8))/0x1*(-parseInt(_0x2af0c2(0x22d))/0x2)+-parseInt(_0x2af0c2(0x1d7))/0x3+parseInt(_0x2af0c2(0x3ba))/0x4*(parseInt(_0x2af0c2(0x45d))/0x5)+parseInt(_0x2af0c2(0x3aa))/0x6*(parseInt(_0x2af0c2(0x263))/0x7)+parseInt(_0x2af0c2(0x3f5))/0x8+-parseInt(_0x2af0c2(0x360))/0x9+-parseInt(_0x2af0c2(0x31c))/0xa*(-parseInt(_0x2af0c2(0x444))/0xb);if(_0x79b079===_0x50ab69)break;else _0x203107['push'](_0x203107['shift']());}catch(_0x36c57a){_0x203107['push'](_0x203107['shift']());}}}(_0x438e,0xbdcb9));var xs=Object['defineProperty'],Fs=(_0x524972,_0x471264,_0x4a1fc7)=>_0x471264 in _0x524972?xs(_0x524972,_0x471264,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a1fc7}):_0x524972[_0x471264]=_0x4a1fc7,l=(_0x14b81d,_0x2c47a7,_0x3244bd)=>Fs(_0x14b81d,typeof _0x2c47a7!='symbol'?_0x2c47a7+'':_0x2c47a7,_0x3244bd);import{Disposable as _0xc93720,toDisposable as _0x359428,UniverInstanceType as _0x17600d,UserManagerService as _0x24fbbe,IUniverInstanceService as _0x33e391,DisposableCollection as _0x3543bd,IConfigService as _0x575c32,ILogService as _0x2125ae,ISnapshotServerService as _0x2e217d,RxDisposable as _0x39fd47,LocaleService as _0x2f64f,ILocalStorageService as _0x3325f8,Tools as _0x1394f4,ICommandService as _0x594d06,JSONX as _0x4686a0,IPermissionService as _0x478858,IUndoRedoService as _0x58b491,sequenceExecute as _0x4025ef,OnLifecycle as _0x2d1123,LifecycleStages as _0xb39fe5,CommandType as _0x4dcc25,Rectangle as _0x35b9e8,ThemeService as _0x474371,Workbook as _0x9198e0,textEncoder as _0x395f16,b64DecodeUnicode as _0x44581b,LocalUndoRedoService as _0x59e73e,IContextService as _0x2d2798,COLORS as _0x82bf70,ColorKit as _0x323ad1,Plugin as _0x353e3b,IAuthzIoService as _0x2f8250,mergeOverrideWithDependencies as _0x55370c,DependentOn as _0x578ae7}from'@univerjs/core';import{SelectionManagerService as _0x543329,SetSelectionsOperation as _0x57025f,InsertSheetMutation as _0x2ae46a,WorkbookEditablePermission as _0x390ee3,RefRangeService as _0x5e51b6,EffectRefRangId as _0x2d6399,handleIRemoveRow as _0x508fe0,handleIRemoveCol as _0x5357dc,handleMoveRange as _0x49f706,handleInsertRow as _0x5152e3,handleInsertRangeMoveRight as _0x3c5fe4,handleInsertRangeMoveDown as _0x5d05d0,handleInsertCol as _0x180534,handleDeleteRangeMoveUp as _0x5b7d4a,handleDeleteRangeMoveLeft as _0x23fee4,runRefRangeMutations as _0x1f0979,SetWorksheetActivateCommand as _0x3b91fc}from'@univerjs/sheets';import{MessageType as _0x15c0da}from'@univerjs/design';import{IBeforeCloseService as _0x3ef89e,IMessageService as _0x367db8,INotificationService as _0x4ee021,useObservable as _0x2b20e3,BuiltInUIPart as _0x1f5713,IUIPartsService as _0x38bd02}from'@univerjs/ui';import{CollaborationEvent as _0x5911b8,parseChangesetToProtocol as _0x12ffd7,RevisionService as _0x353354,isTransformMutationFailure as _0x42961a,isTransformMutationsWithChangesetSuccess as _0x589ac1,ITransformService as _0xd13d4c,mapDocumentTypeToUniverType as _0x385526,isTransformChangesetsSuccess as _0x389cf2,CompressMutationService as _0x969bae,parseProtocolChangeset as _0x8de20b,SnapshotService as _0x17638f,isTransformMutationsWithChangesetFailure as _0x4703e4,UniverCollaborationPlugin as _0x8aafa7}from'@univerjs-pro/collaboration';function _0x438e(){const _0x471b9e=['docStateChange$','dispose$','patch','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','Unknown\x20user','socketService','_onCursorUpdate','onMissingChangesets','UNIVER_COLLABORATION_CLIENT_PLUGIN','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','_event$','collabCursorState$','[CollaborationUndoRedoService]','onCommentUpdate','setShapeProps','conflict','interceptor','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_tryEnsureSocket','findNodePositionByCharIndex','_initStatusComponent','_status$','updateCollaborator','slice','_updateLocalCursor','transform','getCellPositionByOffset','transformByState','_clearOtherTimers','ERROR_IMAGE','_localeService','_getUndoStack','appendMutation','string','error','tag','_startDocCollabCursor','pushState','allowed','7160535lMPuUw','assignAColorForMemberID','get','debug','_joinRoom','mutations','_waitCount','_transformService','submit\x20changeset\x20error!','_transformRemoteChangesetByIMECache','_undoRedoService','collaMsg','searchParams','transformIMECache','getActiveSheet','isActive','whenReady','activeSheet$','hovered','_document','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_socket','stringify','_removeCollabCursors','dispose','not_collab','_getMergeRange','RECV','INTERNAL_ERROR','parse','getViewport','MoveRangeCommandId','[OfflineState]:\x20received\x20rejection.','change$','changesets','DeleteRangeMoveUpCommandId','append','none','_disableEditing','_redoStacks','HEARTBEAT_INTERVAL','sheetId','_saveTaskMap','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_send','getUnitId','_getRedoStack','LICENSE_MAX_UNITS_EXCEEDED','UNKNOWN_CODE','_clearTimeoutTimer','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','collaboratorID','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','url','_sendHeartbeat','synced','_anchorDot','FETCH_MISS','FETCH_MISSING','black','propertyIsEnumerable','OTHER_CLIENTS_EDITING','getImageSourceCache','_submitChangeset','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','RETRY_CONNECTING_INTERVAL','onMouseMove','_scheduleClearOtherTimer','reject','event$','LICENSE_DISTRO_REJECTED','path','_session','hasOwnProperty','180eWCxye','registerHTTPInterceptor','COLLAB_SUBMIT_CHANGESET_URL','getUnitStatus$','measureText','next','M0\x200H16V16H0z','_onConnectionFailed','editing\x20status\x20changed\x20to','CONNECTOR_DATA_TOO_LARGE','UNIVER_SHEET','_scheduleTimestamp','getRelativeCoord','_docSyncEditingCollabCursorService','roomInfos','updateMember','1170284YUZZaj','_imageSourceCache','random','loadOfflineData','?size=','_toggleOnline','pending','filter','enableOfflineEditing','createCollaborator','AWAITING_WITH_PENDING','_drawRange','clear','params','fetch_missing','liveShareNewHost','CHANGESET_REJ','[CollaborationSessionService]','getImage','_handleEvent','baseRev','_onRecvEvent','currentSkeleton$','image/bmp','_members','_renderManagerService','getMergeData','getValue','_cachedData','_commandService','_syncEditingCollabCursor','_transformUndoRedoStack','InsertRangeMoveRightCommandId','setCurrentUser','_substituteUndoStack','evenodd','registerComponent','_change$','_retryCount','saveSnapshot','history','_colorIndex','lineTo','_selfUnitIDs','/universer-api/authz','[PendingState]:\x20received\x20acknowledgement.','_startCollaboration','startColumn','status','LIVESHARE_FETCH_OPERATIONS','_createSocket','awaiting_with_pending','_socketReady','reduce','data','_config','UNIVER_DOC','defineProperty','className','3009992lmFRDv','pauseCollaboration','ALREADY_EXISTS','308jCecvV','encode','close','_lockTransition','override','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','onlineStatusTitle','_removeRoom','jiqing500','fetchMissingChangesets','_updateURLWithCurrentState','awaiting','result','top','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_isPermissionRej','HEADER_MENU','_collaborationController','/new_changes','[DataLoaderController]','json','userID','objects','transformMutation','_onRefRangeChange','_incrementRevisionNumber','_color','...','MUTATION','off-line-single_clip0_910_343','_getCurrentRevision','subunit','INVALID_ARGUMENT','?url=','_getDocObject','image/gif','row','onCommandExecuted','generateRandomId','labelPosition','_substituteRedoStack','_syncEditingCollabCursorService','flatMap','getUnitOnRev','_userManagerService','error$','_messageService','addEventListener','CONFLICT','/object','arc','UNIVER_UNKNOWN','transformRemoteChangeset','_clearCollaborationTimeoutTimer','getSheetBySheetId','UNRECOGNIZED','AUTHZ_URL_KEY','length','/rev/','getCurrentRevForDocument','onRemoteChangeset','c2Prime','univer-online','children','state','_handleHeartbeatEvent','createInstance','\x20-\x20','_checkMissing','_rescheduleHeartbeatEvent','CHANGESET_ACK','_handleHover','_loadSheet','IDLE','/-/object/-/batch_allowed','leaveEvent','11OCgDLD','blue400','addObject','registerBeforeClose','LOGIN_URL_KEY','_docStateChangeManagerService','sheetID','COMPLETION_FINISHED','unit-cache-','PERMISSION_REJ','_themeService','syncEditingCollabCursor','c1Prime','LIVESHARE_OPERATION','getOffsetConfig','verdancy600','entries','unsubscribe','updatePermissionPoint','delete','unitId','_initModules','_updateStatus','_anchor','_updateCollabCursors','25flMyEK','image/jpg','message$','subscribe','newCsEvent','_assignedColors','getCurrent','doc.mutation.rich-text-editing','fetchThroughInterceptors','_cursors','_queuedRemoteChangesets','INGEST','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','clearTimeout','getRoom','endColumn','function','Error','has','getScrollXYByRelativeCoords','restore','NEW_CHANGESETS','collab-text-anchor-','joinEvent','_remoteChangesetQueue','UUID','univer-pro.collaboration-client-socket-service','_notificationService','_collaborationTimeoutTimer','show','name','onStarting','_singleActiveUnitService','open$','sheets','_commentUpdate$','getRenderById','_removeClearOtherTimer','NOT_COLLAB','_permissionService','NO_OTHER_CLIENTS_EDITING','uni.network.url-service','commentUpdate$','_online','resend','newValue','univer-pro.collaboration-client.single-active-unit-service','getMemberID','_refRangeService','getOwnPropertyDescriptor','onRemoteRej','ONLINE','fetching\x20missing\x20changesets\x20from\x20','_getSaveTimeout','_roomMembers','column','univer-online-status','_state$','add','conflict.title','collab-text-range-','_getSendChangesetTimeout','_univerInstanceService','USERS_LEAVE','saveImage','beginPath','getRangePointData','bottom','LIVESHARE_NEW_HOST','size','from','_cursor','batchAllowed','setInterval','/collaborator','_colorAssignService','_clearHeartbeatTimer','_sheetTransformSelectionsService','url(#$1','YUUMI_URL_COL_OUT_OF_RANGE','getSheetBlock','displayName','subscribeEvent','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_onRemoteChangeset','_scene','removeParam','/fetchmissing?from=','OFFLINE','_onCursorDelete','_getLoginPath','getCurrentUser','enableSingleActiveInstanceLock','HEARTBEAT','getItem','Starting','_setupBeforeClosingHandler','onTransformSelections','body','[OfflineState]:\x20received\x20acknowledgement.','/universer-api/snapshot','_getAnchorBounding','_docSkeletonManagerService','#fff','onSendChangeset','AWAITING','LIVESHARE_REQUEST_HOST','status$','unload','APPLY_PERMISSION_DENIED','univerjs-icon\x20univerjs-icon-','_saveCache','split','_onUserLeave','TOO_MANY_REQUESTS','originalMeta','getTypeOfUnitDisposed$','translate(.97)','[CollaborationEntity]','_applyRemoteChangeset','currentColor','OffLineSingle','/unit/','COLLAB_WEB_SOCKET_URL','_entities','_roomMembers$','asObservable','pipe','getUniverSheetInstance','clearInterval','\x20to\x20','_localStorageService','_compressMutationService','SUBMIT_CHANGESET','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_textBubble','rev','requireSession','_onConflict','incrementRevForDocument','onSyncEditingCollabCursor','_pendingMutations','JOIN','getCurrentUnitForType','cursorInfo$','HEARTBEAT_TIMEOUT','call','cmd','HELLO','session.collaboration-timeout','getDataModel','univer-online-status-title','_snapshotService','COMPRESS_MUTATION_APPLY','putCollaborators','_scheduleCollaborationTimeoutTimer','_updateLocalCache','isPermissionRej','_awaitingChangeset','_socketMessageSubscription','fromCollab','permission.content','on-line-single_clip0_910_349','_handler','unitID','_onMessage','onlineStatus','sessionStatus$','_clearLocalCache','_shapes','Ready','_transitionLocked','LICENSE_IMPORT_SIZE_EXCEEDED','toString','\x0aCurrent:\x20','_heartbeatTimer','session.room-full','2500425WpmCRC','_collaborationPaused','getUnitType','RETRY_CONNECTING_MAX_COUNT','idSuffix','updateOfflineData','readAsDataURL','selections','saveOfflineData','_createInitialStateImpl','_showConflictNotification','urlChange$','contains','_updateSubUnitFromURLParams','collabStatus.synced','setParam','key','skeleton','on-line-single','DEFAULT_FILE_NAME','_decreaseWaiting','_localCacheService','getCollabCursors$','href','_handleJoinEvent','substring','APPLY_REJECT','&to=','PENDING','_toggleOffline','find','concat','getTypeOfUnitAdded$','_labelPosition','map','xlink:href','disposeWithMe','drawWith','_socket$','enableAuthServer','csRejEvent','_onRemoteACK','assign','editingUnit','_exhaustSavingTask','[OfflineState]:\x20received\x20changeset.','_waitForHeartbeatResponse','_id','transformChangesets','_httpService','JOINING','COMMENT_UPDATE','_initStatusListener','EXCHANGE_SIGN_URL_SERVER_URL_KEY','UniverIcon','_scheduleReconnection','deepClone','/object/','_configService','_range','VIEW_MAIN','_logService','objectID','transformMutationsWithChangeset','_getSnapshotAPIPrefix','_ws','UNDEFINED','_replaceFileID','includes','isArray','transformSelections','fillText','text','loadSheet','unknown','Steady','_http','textRanges','_hideTimer','onload','routeKey','getInterceptPoints','permission.title','executeCommand','_transformSelections','InsertColCommandId','8516yRLYOS','clipPath','SEND_CHANGESET_TIMEOUT','_revisionService','_socketService','SNAPSHOT_INVALID_SNAPSHOT','online','_draw','cursorInfo','type','updateCursorEvent','InsertRowCommandId','_getCtorByUniverType','code','permissionRejEvent','_memberService','socket\x20close','init','members','_beforeCloseService','color','toggleOffline','post','getAncestorScale','workbook','_sessions','addImageSourceCache','_loadDoc','getMember','auth.needGotoLoginAlert','deleteCollaborator','_getSignURL','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getResourcesRequest','onStateChange','values','indexOf','_HTTPService','colorChannel1','_onRemoteRejected','_handleLeaveEvent','onMissedChangesetFetched','createSocket','COMPRESS_MUTATION_SEND','_eventUnsubscribe','m1Prime','_render','_scheduleSaving','collabStatus.offline','getActiveRange','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','setTimeout','list','collaboration.single-unit.warning','198828kNaOZo','memberID','defs','_collabSessionService','onTransformRemoteChangesetByIMECache','APPLY_NON_SEQUENTIAL_REVISION','NOT_FOUND','font','getTime','_docTransformIMECacheService','replaceState','_name','_init','_entityInit$','SNAPSHOT_HAS_BEEN_REMOVED','_executeRemoteChangeset','closePath','_startSheetCollabCursor','_sendingTimer','collabStatus.notCollab','_getSheetObject','ranges','ERROR_IMAGE_TYPE','session','_onCombEvent','actions','unit','confirm','RemoveRowCommandId','univer-online-status-icon','disableLocalCache','disposeUnit','_sheetSkeletonManagerService','roomMembers','_setupSubUnitSync','failed\x20to\x20apply\x20missed\x20changesets!','url(#on-line-single_clip0_910_349)','addObjects','_hovered','max','_scheduleHeartbeat','setActiveRange','sessionStatus','localeService','RemoveColCommandId','put','_ensureSubject','compose','send','with','Error\x20on\x20receiving\x20event','MSG_FOR_ERROR','m2Prime','_uiPartsService','_commentService','moveTo','getConfig','_onLocalMutation','unshift','[CollaborationSession]','LIVESHARE_TERMINATE','_getAPIPrefix','icon','_state','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','{fileID}','/universer-api/stream/file/upload','/-/object/list','setUndoRedoMutationParamsCache','save','_snapshotServerService','UPDATE_CURSOR','prototype','liveShareOperation','onPointerEnter$','enableLocalCache','BASE64','registerRefRange','toggleOnline','extend','_acknowledgedAwaitingChangeset','_sendHeartbeatTimer','height','popstate','catch','min','listRoles','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getSheetId','setItem','encodeURIComponent','_timeoutTimer','_collabCursorController','hide','DeleteRangeMoveLeftCommandId','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','off-line-single','svg','_retryConnectingTimer','gold400','_hover','round','_getAPIPrefixPath','FromArray','[CollaborationState]:\x20apply\x20error!','attrs','FileId','[SyncedState]:\x20received\x20acknowledgement.','ERROR_EXCEED_SIZE','[PendingState]:\x20received\x20rejection.','setWaitCount','selection','roles','getParam','fill','removeMember','fillStyle','_fetchMissChangesets','_cursorInfo$','isEditing','connection\x20error','_onUserJoin','div','offline','_lastPointer','saveChangeset','getFocusedUnit','_undoStacks','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_getScale','0\x200\x2017\x2016','awaitingChangeset','_urlService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','all','joinRsp','/universer-api/oidc/authpage','collaborationUniverTypes','complete','_onJoinRoomEvent','CHANGESET_REVISION_CONFILICT','_disabled','getOwnPropertySymbols','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_createHandler','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getCollabEntity$','USERS_ENTER','push','createElement','_updateState','eventID','_clearRedo','_unitOnClients','_exhaustRemoteChangesetQueue','objectType','LICENSE_EXPORT_SIZE_EXCEEDED','FAIL','file','_transformUndoredo','_schedule','collabStatus.conflict','getSelections','image/jpeg','range','_transformPreviousActiveRange','UNKNOWN_CMD','_onFetchMissResult','roomMembers$','_onConnectionOpen','SYNCED','_drawAnchor','width','_unlockTransition','PSEUDO_FETCH_MISSING_RESULT','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_getUploadFileURL','UNIVER_SLIDE','current','_replayCachedMutations','_clearUndo','[PendingState]:\x20unhandled\x20univer\x20type:\x20','1em','defIds','forEach','10267310bPkzGe','onRemoteAck','_type','_injector','set','_collabCursorState$','csAckEvent','_transformStack','getCollabEntity','_unitId','create','then','\x20in\x20_schedule.','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','LEAVE','SNAPSHOT_URL_KEY','Warning','\x0aAfter:\x20','replace','revision','_unitID','onPointerLeave$','UNAUTHENTICATED','location','_clearScheduledTask','_sessionStatus$','_createInitialState','focused$','triggerDblclick'];_0x438e=function(){return _0x471b9e;};return _0x438e();}import{Inject as _0x558bc4,createIdentifier as _0x451f50,Injector as _0x4ead3f,Optional as _0x2cbf69}from'@wendellhu/redi';import{merge as _0x2e2fc7,Subject as _0x2ef673,BehaviorSubject as _0x2ae6a5,distinctUntilChanged as _0x362e05,fromEvent as _0x68731a,of as _0x41c67f,takeUntil as _0x26437e,debounceTime as _0x3c2ea7,filter as _0x4b51e3,switchMap as _0x3931dc,combineLatest as _0x45bbb6,shareReplay as _0x133b83,mapTo as _0x4225bf,concatMap as _0x3efc49}from'rxjs';import{map as _0x6aec6c,takeUntil as _0x380119,take as _0x1c0ea1,filter as _0x7426b5,delay as _0x4f7269,shareReplay as _0x4f7c12,switchMap as _0x5e300c}from'rxjs/operators';import{IMEInputManagerService as _0x25857e,TextSelectionManagerService as _0x4c35a6,serializeTextRange as _0x547357,DocStateChangeManagerService as _0x2a623e,SetTextSelectionsOperation as _0x3476b3,RichTextEditingMutation as _0x4f4c8f,getDocObject as _0xfcb5c7,DocSkeletonManagerService as _0x5e1842}from'@univerjs/docs';import{HTTPService as _0x180bd0,WebSocketService as _0x1ee783,IHTTPImplementation as _0xb8d666,XHRHTTPImplementation as _0x3c390c,ThresholdInterceptorFactory as _0x19e0db}from'@univerjs/network';import{ImageSourceType as _0x23f70d,ImageUploadStatusType as _0x2808dd,IImageIoService as _0x2325f4}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x511cc9,serializeRangeWithSheet as _0x2a0dc7}from'@univerjs/engine-formula';import _0x284565 from'lodash/debounce';import{Shape as _0x169d33,Rect as _0x274a4d,Vector2 as _0x27c809,IRenderManagerService as _0x3bdd8b,NodePositionConvertToCursor as _0x473a03,getColor as _0x960864,TEXT_RANGE_LAYER_INDEX as _0x3d5abd,RegularPolygon as _0xba4fd4}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x53c5c9,VIEWPORT_KEY as _0x594710,getCoordByCell as _0x53d697,getSheetObject as _0x2b1a41}from'@univerjs/sheets-ui';import{useDependency as _0x4e0bd3,connectInjector as _0x5254e3}from'@wendellhu/redi/react-bindings';import _0x103fdd,{forwardRef as _0x45e47d,useRef as _0x49f40c,createElement as _0x1b0b54}from'react';import _0x3c1621 from'clsx';import{IRemoteInstanceService as _0x4b3972}from'@univerjs/rpc';const Gi='SNAPSHOT_SERVER_URL_KEY',Yi=_0x29c6a6(0x4c1),Ki=_0x29c6a6(0x32b),Xi=_0x29c6a6(0x22f),Ji=0x7d0,zi=_0x29c6a6(0x4d8),Zi='ws://127.0.0.1:8000/universer-api/comb/connect',qi=_0x29c6a6(0x388),Qi=0x7530,Is=_0x29c6a6(0x4ee),Es=0x2710,en=_0x29c6a6(0x3a1),tn=0x4e20,sn=_0x29c6a6(0x1da),nn=0x3,rn='LOCAL_CACHE_INTERVAL',on=0x3e8,an=_0x29c6a6(0x3ac),cn='/universer-api/comb',hn=_0x29c6a6(0x448),ln=_0x29c6a6(0x2eb);var Cs=(_0x522787=>(_0x522787[_0x522787[_0x29c6a6(0x219)]=0x0]=_0x29c6a6(0x219),_0x522787[_0x522787['OK']=0x1]='OK',_0x522787[_0x522787[_0x29c6a6(0x37c)]=0x2]=_0x29c6a6(0x37c),_0x522787[_0x522787['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x522787[_0x522787[_0x29c6a6(0x269)]=0x4]='NOT_FOUND',_0x522787[_0x522787['UNAUTHENTICATED']=0x5]=_0x29c6a6(0x332),_0x522787[_0x522787[_0x29c6a6(0x3f7)]=0x6]=_0x29c6a6(0x3f7),_0x522787[_0x522787[_0x29c6a6(0x418)]=0x7]='INVALID_ARGUMENT',_0x522787[_0x522787[_0x29c6a6(0x4cf)]=0x8]='TOO_MANY_REQUESTS',_0x522787[_0x522787[_0x29c6a6(0x44b)]=0x9]='COMPLETION_FINISHED',_0x522787[_0x522787[_0x29c6a6(0x2ef)]=0x1389]=_0x29c6a6(0x2ef),_0x522787[_0x522787[_0x29c6a6(0x232)]=0x1771]=_0x29c6a6(0x232),_0x522787[_0x522787[_0x29c6a6(0x271)]=0x1772]=_0x29c6a6(0x271),_0x522787[_0x522787[_0x29c6a6(0x1f1)]=0x1b59]='APPLY_REJECT',_0x522787[_0x522787[_0x29c6a6(0x268)]=0x1b5a]=_0x29c6a6(0x268),_0x522787[_0x522787['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x522787[_0x522787[_0x29c6a6(0x4ca)]=0x1b5c]=_0x29c6a6(0x4ca),_0x522787[_0x522787['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x29c6a6(0x3b3),_0x522787[_0x522787[_0x29c6a6(0x38f)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x522787[_0x522787[_0x29c6a6(0x2e3)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x522787[_0x522787[_0x29c6a6(0x1d2)]=0x232b]=_0x29c6a6(0x1d2),_0x522787[_0x522787[_0x29c6a6(0x2ff)]=0x232c]=_0x29c6a6(0x2ff),_0x522787[_0x522787[_0x29c6a6(0x3a6)]=0x232d]=_0x29c6a6(0x3a6),_0x522787[_0x522787['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x522787[_0x522787[_0x29c6a6(0x4ac)]=0x2712]=_0x29c6a6(0x4ac),_0x522787[_0x522787[_0x29c6a6(0x42f)]=-0x1]=_0x29c6a6(0x42f),_0x522787))(Cs||{}),H=(_0x30793d=>(_0x30793d[_0x30793d[_0x29c6a6(0x42b)]=0x0]='UNIVER_UNKNOWN',_0x30793d[_0x30793d[_0x29c6a6(0x3f2)]=0x1]=_0x29c6a6(0x3f2),_0x30793d[_0x30793d['UNIVER_SHEET']=0x2]=_0x29c6a6(0x3b4),_0x30793d[_0x30793d[_0x29c6a6(0x314)]=0x3]=_0x29c6a6(0x314),_0x30793d[_0x30793d[_0x29c6a6(0x42f)]=-0x1]='UNRECOGNIZED',_0x30793d))(H||{}),I=(_0x12b4d2=>(_0x12b4d2[_0x12b4d2['UNKNOWN_CMD']=0x0]=_0x29c6a6(0x309),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x1ba)]=0x1]=_0x29c6a6(0x1ba),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x4eb)]=0x2]=_0x29c6a6(0x4eb),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x32a)]=0x3]=_0x29c6a6(0x32a),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x468)]=0x4]=_0x29c6a6(0x468),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x4ba)]=0x5]=_0x29c6a6(0x4ba),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x37b)]=0x6]=_0x29c6a6(0x37b),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x42f)]=-0x1]=_0x29c6a6(0x42f),_0x12b4d2))(I||{}),Nt=(_0xfc2511=>(_0xfc2511[_0xfc2511['UNKNOWN_CODE']=0x0]=_0x29c6a6(0x390),_0xfc2511[_0xfc2511['OK']=0x1]='OK',_0xfc2511[_0xfc2511[_0x29c6a6(0x300)]=0x2]=_0x29c6a6(0x300),_0xfc2511[_0xfc2511[_0x29c6a6(0x42f)]=-0x1]='UNRECOGNIZED',_0xfc2511))(Nt||{}),_n=Object[_0x29c6a6(0x3f3)],un=Object[_0x29c6a6(0x48e)],dn=(_0x212a8d,_0x3fee49,_0x3e6cca,_0x3bf492)=>{const _0x1e2bff=_0x29c6a6;for(var _0x48fdcd=_0x3bf492>0x1?void 0x0:_0x3bf492?un(_0x3fee49,_0x3e6cca):_0x3fee49,_0x321233=_0x212a8d[_0x1e2bff(0x431)]-0x1,_0x5085b9;_0x321233>=0x0;_0x321233--)(_0x5085b9=_0x212a8d[_0x321233])&&(_0x48fdcd=(_0x3bf492?_0x5085b9(_0x3fee49,_0x3e6cca,_0x48fdcd):_0x5085b9(_0x48fdcd))||_0x48fdcd);return _0x3bf492&&_0x48fdcd&&_n(_0x3fee49,_0x3e6cca,_0x48fdcd),_0x48fdcd;},Wt=(_0x8a1025,_0x53ef44)=>(_0x27983f,_0x276b45)=>_0x53ef44(_0x27983f,_0x276b45,_0x8a1025);let ee=class extends _0xc93720{constructor(_0x4d0f96,_0x14cd35){const _0x2f6708=_0x29c6a6;super(),l(this,'_roomMembers',new Map()),(this['_univerInstanceService']=_0x4d0f96,this[_0x2f6708(0x424)]=_0x14cd35,this['disposeWithMe'](_0x359428(_0x2e2fc7(this['_univerInstanceService'][_0x2f6708(0x4d1)](_0x17600d[_0x2f6708(0x3b4)])[_0x2f6708(0x4dc)](_0x6aec6c(_0x2bb1dc=>_0x2bb1dc[_0x2f6708(0x38d)]())),this[_0x2f6708(0x49b)][_0x2f6708(0x4d1)](_0x17600d[_0x2f6708(0x3f2)])[_0x2f6708(0x4dc)](_0x6aec6c(_0x2bdce6=>_0x2bdce6[_0x2f6708(0x38d)]())),this['_univerInstanceService'][_0x2f6708(0x4d1)](_0x17600d['UNIVER_SLIDE'])[_0x2f6708(0x4dc)](_0x6aec6c(_0x49490f=>_0x49490f[_0x2f6708(0x38d)]())))[_0x2f6708(0x460)](_0x1ddf17=>this[_0x2f6708(0x3ff)](_0x1ddf17)))));}[_0x29c6a6(0x3db)](_0x1998c1){const _0x24a225=_0x29c6a6;this[_0x24a225(0x424)][_0x24a225(0x3db)](_0x1998c1);}[_0x29c6a6(0x4b8)](){const _0x3c76fc=_0x29c6a6;return this[_0x3c76fc(0x424)][_0x3c76fc(0x4b8)]();}[_0x29c6a6(0x3b9)](_0x4bf027,_0x138b04){const _0x1dc938=_0x29c6a6;let _0x4fb6a7=this[_0x1dc938(0x493)]['get'](_0x4bf027);_0x4fb6a7||(_0x4fb6a7=new fn(),this[_0x1dc938(0x493)]['set'](_0x4bf027,_0x4fb6a7)),_0x4fb6a7['updateMember'](_0x138b04);}['removeMember'](_0x19a15e,_0x46f601){const _0x33d335=_0x29c6a6,_0x3a48d7=this[_0x33d335(0x493)][_0x33d335(0x362)](_0x19a15e);_0x3a48d7&&_0x3a48d7[_0x33d335(0x2d6)](_0x46f601);}[_0x29c6a6(0x46b)](_0x500603){const _0x3cdc83=_0x29c6a6;return this[_0x3cdc83(0x493)][_0x3cdc83(0x362)](_0x500603);}[_0x29c6a6(0x249)](_0x38cf7b,_0x588f50){const _0x6adf0d=_0x29c6a6,_0x3226d7=this[_0x6adf0d(0x493)][_0x6adf0d(0x362)](_0x38cf7b);if(_0x3226d7)return _0x3226d7[_0x6adf0d(0x249)](_0x588f50);}['_removeRoom'](_0x2cc273){const _0x329ce2=_0x29c6a6,_0x359ef5=this[_0x329ce2(0x493)][_0x329ce2(0x362)](_0x2cc273);_0x359ef5&&(_0x359ef5['dispose'](),this[_0x329ce2(0x493)][_0x329ce2(0x457)](_0x2cc273));}['dispose'](){const _0x540606=_0x29c6a6;this[_0x540606(0x493)][_0x540606(0x31b)](_0x3e36d9=>_0x3e36d9[_0x540606(0x378)]()),this[_0x540606(0x493)][_0x540606(0x3c6)]();}};ee=dn([Wt(0x0,_0x33e391),Wt(0x1,_0x558bc4(_0x24fbbe))],ee);class fn extends _0xc93720{constructor(){const _0x15295e=_0x29c6a6;super(...arguments),l(this,_0x15295e(0x3d2),new Map());}[_0x29c6a6(0x378)](){const _0x10ffa6=_0x29c6a6;this[_0x10ffa6(0x3d2)][_0x10ffa6(0x3c6)]();}[_0x29c6a6(0x3b9)](_0x35fac7){const _0x2af3a8=_0x29c6a6;this['_members'][_0x2af3a8(0x320)](_0x35fac7[_0x2af3a8(0x264)],_0x35fac7);}[_0x29c6a6(0x2d6)](_0x480c77){const _0x5ebe18=_0x29c6a6;this[_0x5ebe18(0x3d2)][_0x5ebe18(0x457)](_0x480c77);}[_0x29c6a6(0x249)](_0xfeb500){const _0x328c40=_0x29c6a6;return this[_0x328c40(0x3d2)][_0x328c40(0x362)](_0xfeb500);}}function gn(_0x373106){const _0x586f87=_0x29c6a6;var _0x2498fc,_0x4a78b0,_0x4008a6,_0x5437ca;const _0x30bd5a=_0x373106[_0x586f87(0x3f0)],_0x34b29a=JSON[_0x586f87(0x37d)](_0x30bd5a);switch(_0x34b29a['cmd']){case I[_0x586f87(0x4ba)]:case I['HELLO']:{const _0x4deb55=_0x34b29a['infoRsp'];return{..._0x34b29a,'data':_0x4deb55,'cmd':_0x34b29a[_0x586f87(0x1b9)]};}case I[_0x586f87(0x4eb)]:{const _0x286fd7=_0x34b29a[_0x586f87(0x2ea)];return{..._0x34b29a,'data':_0x286fd7,'cmd':_0x34b29a[_0x586f87(0x1b9)]};}case I[_0x586f87(0x37b)]:{const _0x58531e=_0x34b29a[_0x586f87(0x36b)];switch(_0x58531e[_0x586f87(0x2fa)]){case _0x5911b8[_0x586f87(0x44d)]:return{..._0x34b29a,'data':{..._0x58531e,'data':(_0x2498fc=_0x58531e[_0x586f87(0x23b)])==null?void 0x0:_0x2498fc['cs']},'cmd':_0x34b29a['cmd']};case _0x5911b8[_0x586f87(0x43e)]:return{..._0x34b29a,'data':{..._0x58531e,'data':(_0x4a78b0=_0x58531e[_0x586f87(0x322)])==null?void 0x0:_0x4a78b0['cs']},'cmd':_0x34b29a['cmd']};case _0x5911b8['NEW_CHANGESETS']:return{..._0x34b29a,'data':{..._0x58531e,'data':(_0x4008a6=_0x58531e[_0x586f87(0x461)])==null?void 0x0:_0x4008a6['cs']},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8['CHANGESET_REJ']:return{..._0x34b29a,'data':{..._0x58531e,'data':(_0x5437ca=_0x58531e[_0x586f87(0x1ff)])==null?void 0x0:_0x5437ca['cs']},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x2aa)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x237)]},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x2f6)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x474)]},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x49c)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x443)]},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8['LIVESHARE_NEW_HOST']:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x3c9)]},'cmd':_0x34b29a['cmd']};case _0x5911b8[_0x586f87(0x3eb)]:case _0x5911b8[_0x586f87(0x451)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x2ac)]},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x29f)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x3c9)]},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x296)]:return{..._0x34b29a,'data':_0x58531e,'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x20a)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e['commentUpdateEvent']},'cmd':_0x34b29a[_0x586f87(0x1b9)]};default:return _0x34b29a;}}default:return _0x34b29a;}}function mn(_0x3faf8e){const _0x47937c=_0x29c6a6;switch(_0x3faf8e[_0x47937c(0x1b9)]){case I['HEARTBEAT']:case I[_0x47937c(0x1ba)]:return JSON['stringify']({'cmd':_0x3faf8e['cmd'],'routeKey':_0x3faf8e[_0x47937c(0x227)]});case I[_0x47937c(0x468)]:{let _0x25e249;switch(_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x2fa)]){case _0x5911b8[_0x47937c(0x2aa)]:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x2aa)],'updateCursorEvent':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8[_0x47937c(0x49c)]:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x49c)],'leaveEvent':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8[_0x47937c(0x2f6)]:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x2f6)],'joinEvent':_0x3faf8e['data']['data']};break;}case _0x5911b8['LIVESHARE_NEW_HOST']:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x4a1)],'liveShareNewHost':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8['LIVESHARE_OPERATION']:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x451)],'liveShareOperation':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8[_0x47937c(0x29f)]:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x29f)],'liveShareTerminate':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8[_0x47937c(0x4c7)]:{_0x25e249={'eventID':_0x5911b8['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8[_0x47937c(0x3eb)]:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x3eb)]};break;}default:_0x25e249={'eventID':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x2fa)]};}return JSON[_0x47937c(0x376)]({'cmd':_0x3faf8e['cmd'],'routeKey':_0x3faf8e[_0x47937c(0x227)],'collaMsg':_0x25e249});}case I[_0x47937c(0x4eb)]:return JSON['stringify']({'cmd':_0x3faf8e[_0x47937c(0x1b9)],'routeKey':_0x3faf8e[_0x47937c(0x227)],'joinReq':_0x3faf8e['data']});case I[_0x47937c(0x32a)]:return JSON['stringify']({'cmd':_0x3faf8e[_0x47937c(0x1b9)],'routeKey':_0x3faf8e['routeKey'],'leaveReq':_0x3faf8e[_0x47937c(0x3f0)]});default:throw new Error(_0x47937c(0x4b0));}}var Sn=Object[_0x29c6a6(0x3f3)],vn=Object['getOwnPropertyDescriptor'],pn=(_0xace02d,_0x4e305e,_0x22fb74,_0x8849fa)=>{const _0x44ea25=_0x29c6a6;for(var _0x38549e=_0x8849fa>0x1?void 0x0:_0x8849fa?vn(_0x4e305e,_0x22fb74):_0x4e305e,_0x37bb79=_0xace02d[_0x44ea25(0x431)]-0x1,_0x264c61;_0x37bb79>=0x0;_0x37bb79--)(_0x264c61=_0xace02d[_0x37bb79])&&(_0x38549e=(_0x8849fa?_0x264c61(_0x4e305e,_0x22fb74,_0x38549e):_0x264c61(_0x38549e))||_0x38549e);return _0x8849fa&&_0x38549e&&Sn(_0x4e305e,_0x22fb74,_0x38549e),_0x38549e;},me=(_0x457103,_0x1d5617)=>(_0xe000a3,_0x2d65b6)=>_0x1d5617(_0xe000a3,_0x2d65b6,_0x457103);const bs=_0x451f50(_0x29c6a6(0x477));function In(_0x357977,_0x48e74f,_0x59725c){const _0x48de=_0x29c6a6;return _0x357977+'/'+_0x48e74f+_0x48de(0x4d7)+_0x59725c+_0x48de(0x40a);}let _t=class{constructor(_0x359a23,_0x494236,_0x2556b4,_0x5967ef,_0x1eb8d8){const _0x6804f6=_0x29c6a6;this[_0x6804f6(0x223)]=_0x359a23,this[_0x6804f6(0x218)]=_0x494236,this[_0x6804f6(0x211)]=_0x2556b4,this[_0x6804f6(0x214)]=_0x5967ef,this[_0x6804f6(0x2a9)]=_0x1eb8d8;}[_0x29c6a6(0x257)](_0x3282f3){const _0x1fedd4=_0x29c6a6,_0x26090e=this[_0x1fedd4(0x218)][_0x1fedd4(0x257)](_0x3282f3);if(!_0x26090e)throw new Error(_0x1fedd4(0x3fd));const _0x5d5924=new _0x3543bd(),_0x1fad41=new _0x2ef673();_0x5d5924[_0x1fedd4(0x497)](_0x359428(_0x26090e['close$']['subscribe'](_0x27a99d=>_0x1fad41['next'](_0x27a99d)))),_0x5d5924[_0x1fedd4(0x497)](_0x359428(()=>_0x1fad41[_0x1fedd4(0x2ed)]()));const _0x5c7d1b=new _0x2ef673();_0x5d5924[_0x1fedd4(0x497)](_0x359428(_0x26090e[_0x1fedd4(0x425)][_0x1fedd4(0x460)](_0x19bd38=>_0x5c7d1b[_0x1fedd4(0x3af)](_0x19bd38)))),_0x5d5924['add'](_0x359428(()=>_0x5c7d1b[_0x1fedd4(0x2ed)]()));const _0x8203ce=new _0x2ef673();_0x5d5924['add'](_0x359428(_0x26090e[_0x1fedd4(0x45f)]['subscribe'](_0x47972c=>{const _0x5c1d24=_0x1fedd4,_0xbbd18b=gn(_0x47972c);_0x8203ce[_0x5c1d24(0x3af)](_0xbbd18b);}))),_0x5d5924['add'](_0x359428(()=>_0x8203ce[_0x1fedd4(0x2ed)]()));const _0x3ac2ee=()=>{const _0x2adc63=_0x1fedd4;_0x5c7d1b[_0x2adc63(0x3af)](new Event(_0x2adc63(0x2db))),_0x1fad41[_0x2adc63(0x3af)](new CloseEvent(_0x2adc63(0x2db))),_0x5e49b1['close']();},_0x5e49b1={'memberID':'','close$':_0x1fad41[_0x1fedd4(0x4db)](),'error$':_0x5c7d1b[_0x1fedd4(0x4db)](),'open$':_0x26090e[_0x1fedd4(0x47e)],'message$':_0x8203ce[_0x1fedd4(0x4db)](),'send':_0x78f310=>{const _0x463830=_0x1fedd4;if(_0x78f310[_0x463830(0x1b9)]===I[_0x463830(0x468)]){if(_0x78f310[_0x463830(0x3f0)][_0x463830(0x2fa)]===_0x5911b8[_0x463830(0x4e2)]){this[_0x463830(0x39f)](_0x5e49b1,_0x78f310[_0x463830(0x3f0)])[_0x463830(0x2b7)](_0x323e23=>{const _0x5676a7=_0x463830;this[_0x5676a7(0x214)][_0x5676a7(0x35b)](_0x323e23),_0x3ac2ee();});return;}if(_0x78f310[_0x463830(0x3f0)][_0x463830(0x2fa)]===_0x5911b8['FETCH_MISSING']){const _0x559d95=_0x78f310[_0x463830(0x3f0)];this[_0x463830(0x2d8)](_0x559d95)[_0x463830(0x327)](_0x32c304=>{const _0x1b6ebc=_0x463830;_0x8203ce['next']({'cmd':I[_0x1b6ebc(0x37b)],'code':Nt['OK'],'routeKey':_0x559d95[_0x1b6ebc(0x3f0)][_0x1b6ebc(0x1ca)],'routeType':'','data':{'eventID':_0x5911b8[_0x1b6ebc(0x311)],'data':{'changesets':_0x32c304}}});})[_0x463830(0x2b7)](_0x48dfa4=>{const _0x399ea2=_0x463830;this[_0x399ea2(0x214)][_0x399ea2(0x35b)](_0x48dfa4),_0x3ac2ee();});return;}}_0x26090e[_0x463830(0x293)](mn(_0x78f310));},'close':()=>{const _0x1cd768=_0x1fedd4;_0x26090e[_0x1cd768(0x3fa)](),_0x5d5924[_0x1cd768(0x378)]();}};return _0x5e49b1;}async['_submitChangeset'](_0x1ebc9c,_0x2fc687){const _0x40270e=_0x29c6a6;var _0x2a3354;const {unitType:_0x1919cb,unitID:_0x142139,changeset:_0x6d91c3}=_0x2fc687[_0x40270e(0x3f0)],_0x2f9124={'unitID':_0x142139,'memberID':_0x1ebc9c[_0x40270e(0x264)],'type':_0x1919cb,'changeset':_0x12ffd7(_0x6d91c3)},_0x5106e8=In((_0x2a3354=this[_0x40270e(0x211)]['getConfig'](an))!=null?_0x2a3354:cn,_0x1919cb,_0x142139);try{await this['_http'][_0x40270e(0x243)](_0x5106e8,{'body':_0x2f9124});}catch(_0x267b27){throw this[_0x40270e(0x214)][_0x40270e(0x35b)](_0x40270e(0x29e),_0x40270e(0x368)),_0x267b27;}}async[_0x29c6a6(0x2d8)](_0x4e5276){const _0x1b6801=_0x29c6a6,{unitID:_0x202818,from:_0xb0342d,to:_0x5972be,unitType:_0x54e48b}=_0x4e5276[_0x1b6801(0x3f0)];return(await this[_0x1b6801(0x2a9)][_0x1b6801(0x401)]({'metadata':void 0x0},{'unitID':_0x202818,'type':_0x54e48b,'from':_0xb0342d,'to':_0x5972be}))['changesets'];}};_t=pn([me(0x0,_0x558bc4(_0x180bd0)),me(0x1,_0x558bc4(_0x1ee783)),me(0x2,_0x575c32),me(0x3,_0x2125ae),me(0x4,_0x2e217d)],_t);class Rs{constructor(){const _0x59faac=_0x29c6a6;l(this,_0x59faac(0x480),new _0x2ef673()),l(this,_0x59faac(0x487),this['_commentUpdate$'][_0x59faac(0x4db)]());}[_0x29c6a6(0x346)](_0x5a95d0){const _0x40e3ba=_0x29c6a6;this['_commentUpdate$'][_0x40e3ba(0x3af)](_0x5a95d0);}}var En=Object['defineProperty'],Cn=Object[_0x29c6a6(0x48e)],Ts=(_0x38ce78,_0x231985,_0x5d096c,_0x5bb2a1)=>{const _0x5c124f=_0x29c6a6;for(var _0x34f8f6=_0x5bb2a1>0x1?void 0x0:_0x5bb2a1?Cn(_0x231985,_0x5d096c):_0x231985,_0x57f271=_0x38ce78[_0x5c124f(0x431)]-0x1,_0x158a60;_0x57f271>=0x0;_0x57f271--)(_0x158a60=_0x38ce78[_0x57f271])&&(_0x34f8f6=(_0x5bb2a1?_0x158a60(_0x231985,_0x5d096c,_0x34f8f6):_0x158a60(_0x34f8f6))||_0x34f8f6);return _0x5bb2a1&&_0x34f8f6&&En(_0x231985,_0x5d096c,_0x34f8f6),_0x34f8f6;},M=(_0x1a1bf6,_0xbe3ce6)=>(_0x100cff,_0x4115bb)=>_0xbe3ce6(_0x100cff,_0x4115bb,_0x1a1bf6),_e=(_0xc7e068=>(_0xc7e068[_0xc7e068[_0x29c6a6(0x441)]=0x0]=_0x29c6a6(0x441),_0xc7e068[_0xc7e068[_0x29c6a6(0x209)]=0x1]=_0x29c6a6(0x209),_0xc7e068[_0xc7e068[_0x29c6a6(0x4b5)]=0x2]=_0x29c6a6(0x4b5),_0xc7e068[_0xc7e068[_0x29c6a6(0x490)]=0x3]=_0x29c6a6(0x490),_0xc7e068))(_e||{});let ut=class extends _0x39fd47{constructor(_0x4f5029,_0x2788c8,_0x2dce1c,_0x124853,_0xce39c9,_0x4e8c24,_0x369871,_0x186963,_0x10b24e){const _0x272c9b=_0x29c6a6;super(),l(this,_0x272c9b(0x335),new _0x2ae6a5(0x0)),l(this,_0x272c9b(0x1cd),this[_0x272c9b(0x335)][_0x272c9b(0x4db)]()),l(this,'_event$',new _0x2ef673()),l(this,_0x272c9b(0x3a5),this[_0x272c9b(0x343)][_0x272c9b(0x4db)]()),l(this,_0x272c9b(0x375)),l(this,'_socketMessageSubscription'),l(this,_0x272c9b(0x479)),(this[_0x272c9b(0x330)]=_0x4f5029,this[_0x272c9b(0x214)]=_0x2dce1c,this[_0x272c9b(0x240)]=_0x124853,this[_0x272c9b(0x426)]=_0xce39c9,this['_configService']=_0x4e8c24,this[_0x272c9b(0x357)]=_0x369871,this[_0x272c9b(0x23c)]=_0x186963,this[_0x272c9b(0x299)]=_0x10b24e,_0x2788c8['pipe'](_0x380119(this[_0x272c9b(0x33a)]))[_0x272c9b(0x460)](_0x21b01a=>{const _0x2911ed=_0x272c9b;var _0x4e385b;typeof _0x21b01a>'u'||(this[_0x2911ed(0x375)]=_0x21b01a,_0x21b01a?(this['_joinRoom'](_0x21b01a),this['_socketMessageSubscription']=this[_0x2911ed(0x375)][_0x2911ed(0x45f)]['subscribe'](_0x430d40=>{const _0x54929d=_0x2911ed;_0x430d40['routeKey']===this[_0x54929d(0x330)]&&this[_0x54929d(0x27b)](_0x430d40);})):(this['_sessionStatus$']['next'](0x2),(_0x4e385b=this[_0x2911ed(0x1c5)])==null||_0x4e385b[_0x2911ed(0x455)](),this[_0x2911ed(0x1c5)]=null));}),this[_0x272c9b(0x1fb)](this['_beforeCloseService']['registerOnClose'](()=>{const _0x33e5ea=_0x272c9b;var _0x155ab4;(_0x155ab4=this[_0x33e5ea(0x375)])==null||_0x155ab4[_0x33e5ea(0x293)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x33e5ea(0x330)]}});})));}get[_0x29c6a6(0x28d)](){const _0x1f100c=_0x29c6a6;return this[_0x1f100c(0x335)][_0x1f100c(0x3d5)]();}[_0x29c6a6(0x48c)](){const _0x52fc22=_0x29c6a6;var _0x3ab918,_0x585dfd;return(_0x585dfd=(_0x3ab918=this[_0x52fc22(0x375)])==null?void 0x0:_0x3ab918[_0x52fc22(0x264)])!=null?_0x585dfd:null;}[_0x29c6a6(0x378)](){const _0x4b9490=_0x29c6a6;super['dispose'](),this[_0x4b9490(0x33a)][_0x4b9490(0x3af)](),this[_0x4b9490(0x33a)]['complete']();}[_0x29c6a6(0x27b)](_0x550df4){const _0x5e6226=_0x29c6a6;_0x550df4['cmd']===I[_0x5e6226(0x4eb)]?this['_onJoinRoomEvent'](_0x550df4):_0x550df4[_0x5e6226(0x1b9)]===I[_0x5e6226(0x37b)]&&this['_onRecvEvent'](_0x550df4);}[_0x29c6a6(0x364)](_0x76c5d){const _0x1c173c=_0x29c6a6;this[_0x1c173c(0x335)][_0x1c173c(0x3af)](0x1),_0x76c5d[_0x1c173c(0x293)]({'cmd':I[_0x1c173c(0x4eb)],'routeKey':this[_0x1c173c(0x330)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x29c6a6(0x2ee)](_0x5d6a45){const _0x34eda4=_0x29c6a6;var _0x163a40;if(_0x5d6a45[_0x34eda4(0x23a)]===Nt[_0x34eda4(0x300)]){this[_0x34eda4(0x426)][_0x34eda4(0x47a)]({'type':_0x15c0da[_0x34eda4(0x32c)],'content':this[_0x34eda4(0x357)]['t'](_0x34eda4(0x1d6))}),this[_0x34eda4(0x335)][_0x34eda4(0x3af)](0x2);return;}this[_0x34eda4(0x335)]['next'](0x3);const _0x5f4439=(_0x163a40=_0x5d6a45[_0x34eda4(0x3f0)][_0x34eda4(0x3b8)][this[_0x34eda4(0x330)]])==null?void 0x0:_0x163a40[_0x34eda4(0x23f)];_0x5f4439&&_0x5f4439[_0x34eda4(0x31b)](_0x34ce30=>this['_memberService'][_0x34eda4(0x3b9)](this[_0x34eda4(0x330)],_0x34ce30));}[_0x29c6a6(0x3cf)](_0x119cf2){const _0x43aa28=_0x29c6a6;try{const _0x13f753=_0x119cf2[_0x43aa28(0x3f0)];switch(_0x13f753[_0x43aa28(0x2fa)]){case _0x5911b8['USERS_ENTER']:this[_0x43aa28(0x2dc)](_0x13f753),this['_event$'][_0x43aa28(0x3af)](_0x13f753);break;case _0x5911b8['USERS_LEAVE']:this[_0x43aa28(0x4ce)](_0x13f753),this[_0x43aa28(0x343)]['next'](_0x13f753);break;case _0x5911b8[_0x43aa28(0x43e)]:this[_0x43aa28(0x42d)](),this[_0x43aa28(0x343)][_0x43aa28(0x3af)](_0x13f753);break;case _0x5911b8['MSG_FOR_ERROR']:this[_0x43aa28(0x214)]['error']('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x13f753)),this[_0x43aa28(0x343)]['next'](_0x13f753);break;case _0x5911b8['COMMENT_UPDATE']:this[_0x43aa28(0x299)][_0x43aa28(0x346)](_0x13f753['data']),this[_0x43aa28(0x343)][_0x43aa28(0x3af)](_0x13f753);break;default:this[_0x43aa28(0x343)][_0x43aa28(0x3af)](_0x13f753);}}catch(_0x119c6e){this[_0x43aa28(0x214)][_0x43aa28(0x35b)](_0x119c6e,_0x119cf2);}}[_0x29c6a6(0x2dc)](_0x45aaa3){const _0x3b1889=_0x29c6a6;this[_0x3b1889(0x23c)]['updateMember'](this['_unitID'],_0x45aaa3[_0x3b1889(0x3f0)]);}[_0x29c6a6(0x4ce)](_0x54299c){const _0x46d04c=_0x29c6a6;this['_memberService'][_0x46d04c(0x2d6)](this['_unitID'],_0x54299c[_0x46d04c(0x3f0)][_0x46d04c(0x264)]);}async[_0x29c6a6(0x293)](_0x55b88b,_0x6b511a){const _0x17009d=_0x29c6a6;if(this[_0x17009d(0x28d)]!==0x3||!this[_0x17009d(0x375)])throw new Error(_0x17009d(0x329));try{_0x55b88b[_0x17009d(0x2fa)]===_0x5911b8[_0x17009d(0x472)]&&this[_0x17009d(0x1c1)](),this['_socket']['send']({'cmd':I[_0x17009d(0x468)],'routeKey':_0x6b511a,'routeType':'','data':_0x55b88b});}catch(_0x4acced){this[_0x17009d(0x214)][_0x17009d(0x35b)](_0x4acced);}}['_scheduleCollaborationTimeoutTimer'](){const _0x436c8e=_0x29c6a6;var _0x1635d9;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x229e96=_0x34fd;this[_0x229e96(0x479)]=null,this[_0x229e96(0x426)][_0x229e96(0x47a)]({'type':_0x15c0da[_0x229e96(0x46e)],'content':this['_localeService']['t'](_0x229e96(0x1bb))});},(_0x1635d9=this[_0x436c8e(0x211)][_0x436c8e(0x29b)](Is))!=null?_0x1635d9:Es);}['_clearCollaborationTimeoutTimer'](){const _0xd40d2=_0x29c6a6;this[_0xd40d2(0x479)]&&(clearTimeout(this[_0xd40d2(0x479)]),this[_0xd40d2(0x479)]=null);}};ut=Ts([M(0x2,_0x2125ae),M(0x3,_0x3ef89e),M(0x4,_0x367db8),M(0x5,_0x575c32),M(0x6,_0x558bc4(_0x2f64f)),M(0x7,_0x558bc4(ee)),M(0x8,_0x558bc4(Rs))],ut);let Re=class extends _0xc93720{constructor(_0x505143,_0x30a5dc,_0x4d686d,_0x5bd893,_0x45c023,_0x13b42c){const _0x40d3f9=_0x29c6a6;super(),l(this,'_socket$',new _0x2ae6a5(void 0x0)),l(this,_0x40d3f9(0x246),new Map()),l(this,_0x40d3f9(0x34e),new _0x2ae6a5(0x0)),l(this,_0x40d3f9(0x4c8),this[_0x40d3f9(0x34e)][_0x40d3f9(0x4db)]()),l(this,'_socketReady',!0x1),l(this,_0x40d3f9(0x2b4)),l(this,_0x40d3f9(0x2be)),l(this,_0x40d3f9(0x2c5)),l(this,_0x40d3f9(0x3e0),0x0),(this[_0x40d3f9(0x31f)]=_0x505143,this[_0x40d3f9(0x357)]=_0x30a5dc,this[_0x40d3f9(0x426)]=_0x4d686d,this[_0x40d3f9(0x214)]=_0x5bd893,this['_configService']=_0x45c023,this[_0x40d3f9(0x231)]=_0x13b42c);}get[_0x29c6a6(0x375)](){const _0x197ef6=_0x29c6a6;return this[_0x197ef6(0x1fd)]['getValue']();}['dispose'](){const _0x49a1ef=_0x29c6a6;super[_0x49a1ef(0x378)](),this[_0x49a1ef(0x246)]['forEach'](_0x18a20e=>_0x18a20e['dispose']()),this[_0x49a1ef(0x246)]['clear'](),this[_0x49a1ef(0x34e)]['complete']();}async[_0x29c6a6(0x4e6)](_0x21d680){const _0x56a588=_0x29c6a6;if(this[_0x56a588(0x246)]['has'](_0x21d680))return this['_sessions'][_0x56a588(0x362)](_0x21d680);this[_0x56a588(0x34b)]();const _0x320419=this[_0x56a588(0x31f)][_0x56a588(0x43a)](ut,_0x21d680,this['_socket$']['asObservable']());return this[_0x56a588(0x246)]['set'](_0x21d680,_0x320419),_0x320419;}['_createSocket'](){const _0x5c5c38=_0x29c6a6;var _0x3a7d05;const _0x495465=(_0x3a7d05=this[_0x5c5c38(0x211)][_0x5c5c38(0x29b)](zi))!=null?_0x3a7d05:Zi;return this['_socketService'][_0x5c5c38(0x257)](_0x495465);}[_0x29c6a6(0x34b)](){const _0x331c0b=_0x29c6a6;try{const _0x29979a=this[_0x331c0b(0x3ec)]();if(_0x29979a){const _0x3376d8=_0x29979a[_0x331c0b(0x293)];_0x29979a[_0x331c0b(0x293)]=_0x348c18=>(this[_0x331c0b(0x43d)](),_0x3376d8['apply'](_0x29979a,[_0x348c18])),_0x29979a[_0x331c0b(0x45f)][_0x331c0b(0x460)](_0x550919=>this[_0x331c0b(0x1cb)](_0x29979a,_0x550919)),_0x29979a[_0x331c0b(0x425)][_0x331c0b(0x4dc)](_0x1c0ea1(0x1))[_0x331c0b(0x460)](_0x4da20e=>this['_logService']['error']('[CollaborationSessionService]:\x20socket\x20error',_0x4da20e)),_0x29979a[_0x331c0b(0x47e)][_0x331c0b(0x4dc)](_0x1c0ea1(0x1))[_0x331c0b(0x460)](()=>{const _0x4f4374=_0x331c0b;this[_0x4f4374(0x30c)](_0x29979a);}),_0x29979a['close$'][_0x331c0b(0x4dc)](_0x1c0ea1(0x1))[_0x331c0b(0x460)](_0x16f3e4=>{const _0x73d18=_0x331c0b;this[_0x73d18(0x214)][_0x73d18(0x363)](_0x73d18(0x3cb),_0x73d18(0x23d),_0x16f3e4),this[_0x73d18(0x3b1)]();});}}catch(_0x4ae036){this['_logService'][_0x331c0b(0x35b)](_0x4ae036),this[_0x331c0b(0x3b1)]();}}[_0x29c6a6(0x30c)](_0x39585d){const _0x1149a6=_0x29c6a6;this['_logService']['debug'](_0x1149a6(0x3cb),'socket\x20open.'),_0x39585d['send']({'cmd':I[_0x1149a6(0x1ba)]}),this[_0x1149a6(0x43d)]();}['_onConnectionFailed'](){const _0x70522e=_0x29c6a6;var _0x5786a0;this['_status$'][_0x70522e(0x3af)](0x2),this[_0x70522e(0x1fd)][_0x70522e(0x3af)](null),this[_0x70522e(0x391)](),this[_0x70522e(0x4a9)](),this[_0x70522e(0x3ee)]=!0x1,this[_0x70522e(0x3e0)]<((_0x5786a0=this['_configService']['getConfig'](sn))!=null?_0x5786a0:nn)?(this[_0x70522e(0x20e)](this[_0x70522e(0x3e0)]),this[_0x70522e(0x3e0)]+=0x1):this['_messageService'][_0x70522e(0x47a)]({'type':_0x15c0da[_0x70522e(0x46e)],'content':this[_0x70522e(0x357)]['t']('session.connection-failed')});}['_scheduleReconnection'](_0x333a8d){const _0x41358b=_0x29c6a6;var _0xd20660;const _0x4ff06e=((_0xd20660=this[_0x41358b(0x211)][_0x41358b(0x29b)](en))!=null?_0xd20660:tn)*0x2**_0x333a8d;this[_0x41358b(0x426)][_0x41358b(0x47a)]({'type':_0x15c0da['Warning'],'content':this[_0x41358b(0x357)]['t']('session.will-retry')}),this[_0x41358b(0x2c5)]=setTimeout(()=>{const _0x5735cf=_0x41358b;this[_0x5735cf(0x34b)](),clearTimeout(this[_0x5735cf(0x2c5)]),this[_0x5735cf(0x2c5)]=null;},_0x4ff06e);}[_0x29c6a6(0x43d)](){const _0x546b5e=_0x29c6a6;var _0x5b4760;this[_0x546b5e(0x4a9)](),this[_0x546b5e(0x2b4)]=setTimeout(()=>this[_0x546b5e(0x396)](),(_0x5b4760=this['_configService'][_0x546b5e(0x29b)](qi))!=null?_0x5b4760:Qi);}[_0x29c6a6(0x396)](){const _0x12d91d=_0x29c6a6;this[_0x12d91d(0x375)][_0x12d91d(0x293)]({'cmd':I['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x29c6a6(0x205)](){const _0x27af85=_0x29c6a6;var _0x58a183;this['_timeoutTimer']=setTimeout(()=>this[_0x27af85(0x3b1)](),(_0x58a183=this['_configService'][_0x27af85(0x29b)](Is))!=null?_0x58a183:Es);}[_0x29c6a6(0x1cb)](_0x265cb7,_0x15f6b1){const _0x1243ca=_0x29c6a6,{cmd:_0x15de3b}=_0x15f6b1;_0x15de3b===I[_0x1243ca(0x1ba)]&&!this[_0x1243ca(0x3ee)]&&(_0x265cb7[_0x1243ca(0x264)]=_0x15f6b1[_0x1243ca(0x3f0)][_0x1243ca(0x264)],this['_socket$']['next'](_0x265cb7),this['_status$'][_0x1243ca(0x3af)](0x3),this[_0x1243ca(0x3ee)]=!0x0),_0x15de3b===I[_0x1243ca(0x4ba)]&&this[_0x1243ca(0x391)](),this[_0x1243ca(0x43d)]();}['_clearHeartbeatTimer'](){const _0x46d6c3=_0x29c6a6;this[_0x46d6c3(0x2b4)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x46d6c3(0x2b4)]=null);}['_clearTimeoutTimer'](){const _0x49c3b7=_0x29c6a6;this[_0x49c3b7(0x2be)]!=null&&(clearTimeout(this[_0x49c3b7(0x2be)]),this['_timeoutTimer']=null);}};Re=Ts([M(0x0,_0x558bc4(_0x4ead3f)),M(0x1,_0x558bc4(_0x2f64f)),M(0x2,_0x367db8),M(0x3,_0x2125ae),M(0x4,_0x575c32),M(0x5,bs)],Re);var bn=Object['defineProperty'],Rn=Object[_0x29c6a6(0x48e)],Tn=(_0xde32f9,_0x37169c,_0x25de7e,_0x26e3be)=>{for(var _0x24833f=_0x26e3be>0x1?void 0x0:_0x26e3be?Rn(_0x37169c,_0x25de7e):_0x37169c,_0x272366=_0xde32f9['length']-0x1,_0x2f5cc6;_0x272366>=0x0;_0x272366--)(_0x2f5cc6=_0xde32f9[_0x272366])&&(_0x24833f=(_0x26e3be?_0x2f5cc6(_0x37169c,_0x25de7e,_0x24833f):_0x2f5cc6(_0x24833f))||_0x24833f);return _0x26e3be&&_0x24833f&&bn(_0x37169c,_0x25de7e,_0x24833f),_0x24833f;},Se=(_0x3ca309,_0x32abf7)=>(_0x227d12,_0x8c6cde)=>_0x32abf7(_0x227d12,_0x8c6cde,_0x3ca309);let D=class extends _0xc93720{constructor(_0x2cae78,_0xff86db,_0x1bfe63,_0x22cd9b,_0x1d7fa5){const _0x31d902=_0x29c6a6;super(),l(this,_0x31d902(0x3d6),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x31d902(0x2f0),!0x1),(this[_0x31d902(0x211)]=_0x2cae78,this[_0x31d902(0x4e0)]=_0xff86db,this['_beforeCloseService']=_0x1bfe63,this[_0x31d902(0x357)]=_0x22cd9b,this[_0x31d902(0x230)]=_0x1d7fa5,this['_setupBeforeClosingHandler']());}[_0x29c6a6(0x281)](){const _0x2c60fe=_0x29c6a6;this[_0x2c60fe(0x2f0)]=!0x0;}[_0x29c6a6(0x2ae)](){const _0x465854=_0x29c6a6;this[_0x465854(0x2f0)]=!0x1;}[_0x29c6a6(0x378)](){const _0x2d4b38=_0x29c6a6;this[_0x2d4b38(0x203)]()[_0x2d4b38(0x327)](()=>super['dispose']());}async[_0x29c6a6(0x3bd)](_0x3018fe){const _0x1b4303=_0x29c6a6;return this['_disabled']?null:this[_0x1b4303(0x4e0)][_0x1b4303(0x4bb)](Gt(_0x3018fe));}async[_0x29c6a6(0x1df)](_0x4a80f2,_0x2328e6){const _0x4ef453=_0x29c6a6;return!!this[_0x4ef453(0x4e0)][_0x4ef453(0x2bc)](_0x4a80f2,_0x2328e6);}[_0x29c6a6(0x1dc)](_0x4c14b5,_0x1165e,_0x4ee65b,_0x2d4e01){const _0x4beb11=_0x29c6a6,_0xf6a338=this['_revisionService'][_0x4beb11(0x433)](_0x4c14b5);this[_0x4beb11(0x3d6)]['set'](_0x4c14b5,{'unitID':_0x4c14b5,'type':_0x1165e,'awaitingChangeset':_0x4ee65b,'mutations':_0x2d4e01,'rev':_0xf6a338}),this['_saveTaskMap'][_0x4beb11(0x46f)](_0x4c14b5)||this[_0x4beb11(0x25c)](_0x4c14b5);}[_0x29c6a6(0x25c)](_0x2cfcd0){const _0x33180d=_0x29c6a6,_0x53550c=this['_getSaveTimeout']();_0x53550c===0x0?this[_0x33180d(0x4cc)](_0x2cfcd0):this['_saveTaskMap'][_0x33180d(0x320)](_0x2cfcd0,setTimeout(()=>this[_0x33180d(0x4cc)](_0x2cfcd0),_0x53550c));}[_0x29c6a6(0x492)](){var _0x318158;return(_0x318158=this['_configService']['getConfig'](rn))!=null?_0x318158:on;}[_0x29c6a6(0x4cc)](_0x895e19){const _0x1fa25b=_0x29c6a6,_0x20960e=this[_0x1fa25b(0x38a)][_0x1fa25b(0x362)](_0x895e19);return _0x20960e!==void 0x0&&window['clearTimeout'](_0x20960e),this[_0x1fa25b(0x4e0)][_0x1fa25b(0x2bc)](Gt(_0x895e19),this['_cachedData']['get'](_0x895e19))[_0x1fa25b(0x327)](()=>this['_saveTaskMap'][_0x1fa25b(0x457)](_0x895e19));}async['_exhaustSavingTask'](){const _0x112f8d=_0x29c6a6,_0x4d0835=[];this[_0x112f8d(0x38a)][_0x112f8d(0x31b)]((_0xe39df2,_0x4626ab)=>{const _0x743344=_0x112f8d;window[_0x743344(0x46a)](_0xe39df2),_0x4d0835[_0x743344(0x2f7)](this[_0x743344(0x4cc)](_0x4626ab)[_0x743344(0x327)](()=>{this['_saveTaskMap']['delete'](_0x4626ab);}));}),await Promise[_0x112f8d(0x2e9)](_0x4d0835);}[_0x29c6a6(0x4bd)](){const _0x55a30c=_0x29c6a6;this['disposeWithMe'](this[_0x55a30c(0x240)][_0x55a30c(0x447)](()=>{const _0x5ded20=_0x55a30c;if(this[_0x5ded20(0x38a)]['size'])return this[_0x5ded20(0x357)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Tn([Se(0x0,_0x575c32),Se(0x1,_0x3325f8),Se(0x2,_0x3ef89e),Se(0x3,_0x558bc4(_0x2f64f)),Se(0x4,_0x558bc4(_0x353354))],D);function Gt(_0x3ba5c0){const _0x429152=_0x29c6a6;return _0x429152(0x44c)+_0x3ba5c0;}const Xe=_0x451f50(_0x29c6a6(0x48b));var Os=(_0x1edc51=>(_0x1edc51[_0x1edc51[_0x29c6a6(0x485)]=0x0]=_0x29c6a6(0x485),_0x1edc51[_0x1edc51[_0x29c6a6(0x39d)]=0x1]='OTHER_CLIENTS_EDITING',_0x1edc51))(Os||{});const Yt=0x7530,Kt='ACTIVE_UNIT_EVENT_CHANNEL';class On extends _0xc93720{constructor(){const _0x5b63ab=_0x29c6a6;super(),l(this,'_id',_0x1394f4['generateRandomId']()),l(this,'_selfUnitIDs',new Set()),l(this,_0x5b63ab(0x2fc),new Map()),l(this,_0x5b63ab(0x1d5),null),l(this,_0x5b63ab(0x355),new Map()),l(this,'_unitStatus',new Map()),this['_init']();}[_0x29c6a6(0x378)](){const _0x28f118=_0x29c6a6;super['dispose'](),this[_0x28f118(0x355)]['forEach']((_0x39dc2f,_0x2074a8)=>this[_0x28f118(0x482)](_0x2074a8)),this[_0x28f118(0x1d5)]&&window[_0x28f118(0x4de)](this[_0x28f118(0x1d5)]);}[_0x29c6a6(0x3ad)](_0x3a4f82){return this['_ensureSubject'](_0x3a4f82)['pipe'](_0x362e05());}[_0x29c6a6(0x202)](_0x4d364c){const _0x389a36=_0x29c6a6;this[_0x389a36(0x3e5)][_0x389a36(0x4a2)]===0x0&&this[_0x389a36(0x28b)](),this['_selfUnitIDs'][_0x389a36(0x497)](_0x4d364c),this[_0x389a36(0x38c)]({'type':0x0,'memberID':this[_0x389a36(0x206)],'unitIDs':[_0x4d364c],'isForwarded':!0x1});}[_0x29c6a6(0x282)](_0x1dff89){const _0x439d8a=_0x29c6a6;this[_0x439d8a(0x3e5)][_0x439d8a(0x457)](_0x1dff89),this['_selfUnitIDs'][_0x439d8a(0x4a2)]===0x0&&this[_0x439d8a(0x1d5)]&&window[_0x439d8a(0x4de)](this[_0x439d8a(0x1d5)]);}['_init'](){const _0x223237=_0x29c6a6;this[_0x223237(0x1fb)](_0x359428(_0x68731a(window,'storage')[_0x223237(0x460)](_0x3a0e06=>{const _0x19150d=_0x223237;if(_0x3a0e06[_0x19150d(0x1e7)]!==Kt||!_0x3a0e06[_0x19150d(0x48a)])return;const _0x104968=JSON[_0x19150d(0x37d)](_0x3a0e06[_0x19150d(0x48a)]);this[_0x19150d(0x3cd)](_0x104968);}))),window[_0x223237(0x427)](_0x223237(0x4c9),()=>this[_0x223237(0x38c)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x223237(0x4a3)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x58ba45){const _0x4c6d81=_0x29c6a6;switch(_0x58ba45[_0x4c6d81(0x236)]){case 0x0:this[_0x4c6d81(0x1ef)](_0x58ba45);break;case 0x1:this[_0x4c6d81(0x255)](_0x58ba45);break;case 0x2:this[_0x4c6d81(0x439)](_0x58ba45);break;}}[_0x29c6a6(0x1ef)](_0x5bcc30){const _0x2b49c7=_0x29c6a6,{unitIDs:_0x3c31fa,memberID:_0x15d3f6,isForwarded:_0x20b059}=_0x5bcc30;_0x3c31fa[_0x2b49c7(0x31b)](_0x191b94=>{const _0x44ff66=_0x2b49c7;if(!_0x20b059&&this[_0x44ff66(0x2fc)][_0x44ff66(0x46f)](_0x191b94)&&this[_0x44ff66(0x291)](_0x191b94)[_0x44ff66(0x3af)](0x1),!this[_0x44ff66(0x2fc)][_0x44ff66(0x46f)](_0x191b94)||!this[_0x44ff66(0x2fc)][_0x44ff66(0x362)](_0x191b94)['has'](_0x15d3f6)){const _0x4c2bd1=this['_unitOnClients'][_0x44ff66(0x362)](_0x191b94)||new Set();_0x4c2bd1[_0x44ff66(0x497)](_0x15d3f6),this[_0x44ff66(0x2fc)]['set'](_0x191b94,_0x4c2bd1),this['_scheduleClearOtherTimer'](_0x15d3f6);}}),_0x20b059||this[_0x2b49c7(0x38c)]({'type':0x0,'memberID':this[_0x2b49c7(0x206)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x29c6a6(0x3a3)](_0x2ba1a0){const _0x3593f7=_0x29c6a6;this[_0x3593f7(0x482)](_0x2ba1a0);const _0x496755=window[_0x3593f7(0x260)](()=>{const _0x3f44b0=_0x3593f7;this[_0x3f44b0(0x2fc)][_0x3f44b0(0x31b)](_0x14aa99=>{_0x14aa99['delete'](_0x2ba1a0);});},Yt*0x2);this[_0x3593f7(0x355)][_0x3593f7(0x320)](_0x2ba1a0,_0x496755);}[_0x29c6a6(0x482)](_0xf57aa4){const _0x5e5167=_0x29c6a6;if(this['_clearOtherTimers'][_0x5e5167(0x46f)](_0xf57aa4)){const _0x16b59c=this[_0x5e5167(0x355)][_0x5e5167(0x362)](_0xf57aa4);_0x16b59c&&window['clearTimeout'](_0x16b59c),this[_0x5e5167(0x355)][_0x5e5167(0x320)](_0xf57aa4,null);}}[_0x29c6a6(0x255)](_0xadbe38){const _0x5b833=_0x29c6a6,{memberID:_0x1e5f3e,unitIDs:_0x47c199}=_0xadbe38;_0x47c199[_0x5b833(0x31b)](_0x3e255a=>{const _0x1f4ff8=_0x5b833;var _0xc33baa;const _0x315761=this['_unitOnClients']['get'](_0x3e255a);_0x315761&&(_0x315761[_0x1f4ff8(0x457)](_0x1e5f3e),(_0xc33baa=this['_ensureSubject'](_0x3e255a))==null||_0xc33baa[_0x1f4ff8(0x3af)](_0x315761['size']===0x0?0x0:0x1));}),this[_0x5b833(0x482)](_0x1e5f3e);}['_handleHeartbeatEvent'](_0x320226){const _0x3b8521=_0x29c6a6;this[_0x3b8521(0x3a3)](_0x320226['memberID']);}[_0x29c6a6(0x38c)](_0x501c19){const _0x2bb8b8=_0x29c6a6;localStorage[_0x2bb8b8(0x2bc)](Kt,JSON[_0x2bb8b8(0x376)](_0x501c19));}[_0x29c6a6(0x28b)](){const _0x36cb6b=_0x29c6a6;this[_0x36cb6b(0x1d5)]=window[_0x36cb6b(0x4a6)](()=>{const _0x27f364=_0x36cb6b;this[_0x27f364(0x38c)]({'type':0x2,'memberID':this['_id']});},Yt);}[_0x29c6a6(0x291)](_0x23b830){const _0x2721aa=_0x29c6a6;return this['_unitStatus'][_0x2721aa(0x46f)](_0x23b830)||this['_unitStatus'][_0x2721aa(0x320)](_0x23b830,new _0x2ae6a5(0x0)),this['_unitStatus']['get'](_0x23b830);}}var Dn=Object[_0x29c6a6(0x3f3)],wn=Object['getOwnPropertyDescriptor'],Pn=(_0x2ae2e2,_0x48b57d,_0x50dd3d,_0x3eeaaf)=>{for(var _0x659811=_0x3eeaaf>0x1?void 0x0:_0x3eeaaf?wn(_0x48b57d,_0x50dd3d):_0x48b57d,_0x428494=_0x2ae2e2['length']-0x1,_0x56fb36;_0x428494>=0x0;_0x428494--)(_0x56fb36=_0x2ae2e2[_0x428494])&&(_0x659811=(_0x3eeaaf?_0x56fb36(_0x48b57d,_0x50dd3d,_0x659811):_0x56fb36(_0x659811))||_0x659811);return _0x3eeaaf&&_0x659811&&Dn(_0x48b57d,_0x50dd3d,_0x659811),_0x659811;},Xt=(_0x3f2038,_0x26e9c9)=>(_0x1b5035,_0x9bebe5)=>_0x26e9c9(_0x1b5035,_0x9bebe5,_0x3f2038);let Be=class{constructor(_0x31ef4f,_0x4ca7f6){const _0xca0c24=_0x29c6a6;this['_injector']=_0x31ef4f,this[_0xca0c24(0x367)]=_0x4ca7f6;}['transformIMECache'](_0x4baaf8){const _0x57c9d2=_0x29c6a6;this[_0x57c9d2(0x3d9)](_0x4baaf8),this[_0x57c9d2(0x308)](_0x4baaf8);}[_0x29c6a6(0x42c)](_0x24f4ae){const _0x2c9a06=_0x29c6a6,_0x1405c6=this['_injector'][_0x2c9a06(0x362)](_0x25857e),{redoCache:_0x33b751}=_0x1405c6['getUndoRedoMutationParamsCache']();if(_0x33b751[_0x2c9a06(0x431)]===0x0)return _0x24f4ae;let _0x2e234c=_0x1394f4['deepClone'](_0x24f4ae[_0x2c9a06(0x365)][0x0]);for(let _0x2483c6=0x0;_0x2483c6<_0x33b751[_0x2c9a06(0x431)];_0x2483c6++){const _0xa55d88={'id':'doc.mutation.rich-text-editing','params':{..._0x33b751[_0x2483c6]}},_0x152726=this[_0x2c9a06(0x367)][_0x2c9a06(0x40f)](_0x2e234c,_0xa55d88,!0x1);if(_0x42961a(_0x152726))throw _0x152726[_0x2c9a06(0x35b)];_0x2e234c=_0x152726[_0x2c9a06(0x25a)];}return{..._0x1394f4[_0x2c9a06(0x20f)](_0x24f4ae),'mutations':[_0x2e234c]};}[_0x29c6a6(0x3d9)](_0x1e68b2){const _0x44d975=_0x29c6a6,_0x3ee7a8=this['_injector'][_0x44d975(0x362)](_0x25857e),{undoCache:_0x343db4,redoCache:_0x4e8933}=_0x3ee7a8['getUndoRedoMutationParamsCache']();if(_0x343db4['length']===0x0||_0x4e8933[_0x44d975(0x431)]===0x0)return;const _0x18663a=[],_0x5d205a=[];let _0x718252=_0x1394f4[_0x44d975(0x20f)](_0x1e68b2[_0x44d975(0x365)][0x0]),_0x59b089=_0x1394f4[_0x44d975(0x20f)](_0x1e68b2[_0x44d975(0x365)][0x0]);for(let _0x106fcc=_0x343db4[_0x44d975(0x431)]-0x1;_0x106fcc>=0x0;_0x106fcc--){const _0x235cbb={'id':_0x44d975(0x464),'params':{..._0x343db4[_0x106fcc]}},_0x5f5bb0={'id':_0x44d975(0x464),'params':{..._0x4e8933[_0x106fcc]}},_0x1b8ff0=this[_0x44d975(0x367)][_0x44d975(0x40f)](_0x718252,_0x235cbb,!0x1),_0x2c1b28=this['_transformService'][_0x44d975(0x40f)](_0x59b089,_0x5f5bb0,!0x1);if(_0x42961a(_0x1b8ff0))throw _0x1b8ff0['error'];if(_0x42961a(_0x2c1b28))throw _0x2c1b28[_0x44d975(0x35b)];_0x18663a[_0x44d975(0x29d)](_0x1b8ff0[_0x44d975(0x297)]['params']),_0x5d205a[_0x44d975(0x29d)](_0x2c1b28[_0x44d975(0x297)][_0x44d975(0x3c7)]),_0x718252=_0x1b8ff0[_0x44d975(0x25a)],_0x59b089=_0x2c1b28['m1Prime'];}_0x3ee7a8[_0x44d975(0x2a7)]({'undoCache':_0x18663a,'redoCache':_0x5d205a});}['_transformPreviousActiveRange'](_0x3f33d1){const _0x54f89b=_0x29c6a6,_0x27eba4=this[_0x54f89b(0x31f)][_0x54f89b(0x362)](_0x25857e),_0x1f1bf4=_0x27eba4[_0x54f89b(0x25e)]();if(_0x1f1bf4==null)return;const _0x35f4c2=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3f33d1['unitID'],'actions':null,'textRanges':[_0x1f1bf4]}}],_0x303629=this[_0x54f89b(0x367)][_0x54f89b(0x216)](_0x3f33d1,_0x35f4c2);if(!_0x589ac1(_0x303629))throw _0x303629['error'];const _0x2a2e46=_0x303629[_0x54f89b(0x297)][0x0][_0x54f89b(0x3c7)][_0x54f89b(0x224)];Array[_0x54f89b(0x21c)](_0x2a2e46)&&_0x2a2e46['length']&&_0x27eba4[_0x54f89b(0x28c)](_0x2a2e46[0x0]);}};Be=Pn([Xt(0x0,_0x558bc4(_0x4ead3f)),Xt(0x1,_0xd13d4c)],Be);var Nn=Object['defineProperty'],Mn=Object['getOwnPropertyDescriptor'],An=(_0x274405,_0x1b559d,_0x3829b2,_0x105aac)=>{for(var _0x39a62b=_0x105aac>0x1?void 0x0:_0x105aac?Mn(_0x1b559d,_0x3829b2):_0x1b559d,_0x41197e=_0x274405['length']-0x1,_0x198276;_0x41197e>=0x0;_0x41197e--)(_0x198276=_0x274405[_0x41197e])&&(_0x39a62b=(_0x105aac?_0x198276(_0x1b559d,_0x3829b2,_0x39a62b):_0x198276(_0x39a62b))||_0x39a62b);return _0x105aac&&_0x39a62b&&Nn(_0x1b559d,_0x3829b2,_0x39a62b),_0x39a62b;},Jt=(_0x2bbb78,_0x1a27f3)=>(_0x3e1e16,_0x2d55ed)=>_0x1a27f3(_0x3e1e16,_0x2d55ed,_0x2bbb78);let ke=class{constructor(_0xfe915c,_0x268c5f){const _0x1efec8=_0x29c6a6;this['_injector']=_0xfe915c,this[_0x1efec8(0x367)]=_0x268c5f;}[_0x29c6a6(0x21d)](_0x3b9fa5){const _0xebbe31=_0x29c6a6;var _0x19fbf7;const _0x4b4162=this[_0xebbe31(0x31f)][_0xebbe31(0x362)](_0x4c35a6),_0x250394=(_0x19fbf7=_0x4b4162[_0xebbe31(0x305)]())!=null?_0x19fbf7:[],_0x2e1775=_0x250394==null?void 0x0:_0x250394[_0xebbe31(0x1f9)](_0x547357);if(_0x2e1775['length']===0x0)return;const _0x174eaf=[{'id':_0xebbe31(0x464),'params':{'unitId':_0x3b9fa5[_0xebbe31(0x1ca)],'actions':null,'textRanges':_0x2e1775}}],_0x1c8b00=this[_0xebbe31(0x367)][_0xebbe31(0x216)](_0x3b9fa5,_0x174eaf);if(!_0x589ac1(_0x1c8b00))throw _0x1c8b00[_0xebbe31(0x35b)];const _0x4c6d1e=_0x1c8b00[_0xebbe31(0x297)][0x0]['params'][_0xebbe31(0x224)];Array[_0xebbe31(0x21c)](_0x4c6d1e)&&_0x4c6d1e[_0xebbe31(0x431)]&&_0x4b4162['replaceTextRanges'](_0x4c6d1e,!0x1);}};ke=An([Jt(0x0,_0x558bc4(_0x4ead3f)),Jt(0x1,_0xd13d4c)],ke);function Ds(_0x3380b2){const _0x3787ac=_0x29c6a6;let _0x2d2cc3='';for(const _0x2863ef of _0x3380b2){const {startOffset:_0x24ca00,endOffset:_0x46335a,isActive:_0x4d1615}=_0x2863ef;_0x2d2cc3[_0x3787ac(0x431)]&&(_0x2d2cc3+=','),_0x2d2cc3+=_0x24ca00+':'+_0x46335a+':'+(_0x4d1615?'1':'0');}return _0x2d2cc3;}function yn(_0x374296){const _0xbf307e=_0x29c6a6,_0x3bc9b5=_0x374296[_0xbf307e(0x4cd)](','),_0x244a3a=[];for(const _0x4c17a0 of _0x3bc9b5){const [_0x41f9ba,_0x464976,_0x3aa64d]=_0x4c17a0[_0xbf307e(0x4cd)](':');_0x244a3a[_0xbf307e(0x2f7)]({'startOffset':Number(_0x41f9ba),'endOffset':Number(_0x464976),'collapsed':_0x41f9ba===_0x464976,'isActive':_0x3aa64d==='1'});}return _0x244a3a['some'](_0x21a71a=>_0x21a71a[_0xbf307e(0x36f)])||(_0x244a3a[0x0][_0xbf307e(0x36f)]=!0x0),_0x244a3a;}class Mt extends _0x39fd47{constructor(){const _0x28baa3=_0x29c6a6;super(...arguments),l(this,_0x28baa3(0x321),new _0x2ae6a5(null)),l(this,_0x28baa3(0x344),this[_0x28baa3(0x321)][_0x28baa3(0x4db)]());}[_0x29c6a6(0x44f)](_0x18263a){const _0x3585c0=_0x29c6a6,{unitID:_0x1ae5ca,memberID:_0xea2e96,textRanges:_0x5eebbc}=_0x18263a,_0x5afb86=Ds(_0x5eebbc),_0x554b1e={'unitID':_0x1ae5ca,'memberID':_0xea2e96,'selection':_0x5afb86};this['_collabCursorState$'][_0x3585c0(0x3af)](_0x554b1e);}}var Un=Object['defineProperty'],Ln=Object[_0x29c6a6(0x48e)],$n=(_0x3497cc,_0x467d26,_0x2639e4,_0x4e9632)=>{const _0x1e56c5=_0x29c6a6;for(var _0x1333ca=_0x4e9632>0x1?void 0x0:_0x4e9632?Ln(_0x467d26,_0x2639e4):_0x467d26,_0x23e62e=_0x3497cc[_0x1e56c5(0x431)]-0x1,_0x177b0b;_0x23e62e>=0x0;_0x23e62e--)(_0x177b0b=_0x3497cc[_0x23e62e])&&(_0x1333ca=(_0x4e9632?_0x177b0b(_0x467d26,_0x2639e4,_0x1333ca):_0x177b0b(_0x1333ca))||_0x1333ca);return _0x4e9632&&_0x1333ca&&Un(_0x467d26,_0x2639e4,_0x1333ca),_0x1333ca;},zt=(_0x42740d,_0x37a491)=>(_0x4ab9fa,_0x1bfa39)=>_0x37a491(_0x4ab9fa,_0x1bfa39,_0x42740d);let Ve=class{constructor(_0xd80573,_0x272f32){const _0x4f38e3=_0x29c6a6;this[_0x4f38e3(0x31f)]=_0xd80573,this[_0x4f38e3(0x367)]=_0x272f32;}['transformSelections'](_0x48e163){const _0x32abf0=_0x29c6a6;var _0xbeb9e5,_0x6f9081,_0x5b5396,_0x41d2b1;const _0x510ced=this['_injector'][_0x32abf0(0x362)](_0x543329),{pluginName:_0x5292b7,unitId:_0x3595b1,sheetId:_0x55e3dc}=_0x510ced[_0x32abf0(0x463)]()||{},_0x204eb5=(_0xbeb9e5=_0x510ced[_0x32abf0(0x305)]())!=null?_0xbeb9e5:[];if(_0x204eb5[_0x32abf0(0x431)]===0x0||!_0x5292b7||!_0x3595b1||!_0x55e3dc)return;const _0x4150c1=[{'id':_0x57025f['id'],'params':{'unitId':_0x3595b1,'subUnitId':_0x55e3dc,'pluginName':_0x5292b7,'selections':_0x1394f4[_0x32abf0(0x20f)](_0x204eb5)}}],_0x1059d9=this[_0x32abf0(0x367)][_0x32abf0(0x216)](_0x48e163,_0x4150c1);if(!_0x589ac1(_0x1059d9))throw _0x1059d9[_0x32abf0(0x35b)];const _0x2eeec0=(_0x41d2b1=(_0x5b5396=(_0x6f9081=_0x1059d9[_0x32abf0(0x297)][0x0])==null?void 0x0:_0x6f9081[_0x32abf0(0x3c7)])==null?void 0x0:_0x5b5396['selections'])!=null?_0x41d2b1:_0x204eb5;Array[_0x32abf0(0x21c)](_0x2eeec0)&&_0x2eeec0[_0x32abf0(0x431)]&&this['_injector'][_0x32abf0(0x362)](_0x594d06)[_0x32abf0(0x22a)](_0x57025f['id'],{'unitId':_0x3595b1,'subUnitId':_0x55e3dc,'pluginName':_0x5292b7,'selections':_0x2eeec0});}};Ve=$n([zt(0x0,_0x558bc4(_0x4ead3f)),zt(0x1,_0xd13d4c)],Ve);const jn=new Set([_0x2ae46a['id']]);function Hn(_0x1c49ed,_0x54b000,_0x548f7d,_0x18c3ea,_0x5bf92f){const _0x389d3e=_0x29c6a6;var _0x333557,_0x362ef4,_0x46378b,_0x5663c7;const _0x453b6f=[];for(const _0x448970 of _0x1c49ed)if(jn[_0x389d3e(0x46f)](_0x448970['id'])){if(_0x453b6f[_0x389d3e(0x431)]>0x0)break;_0x453b6f[_0x389d3e(0x2f7)](_0x448970);break;}else _0x453b6f[_0x389d3e(0x2f7)](_0x448970);const _0xfa13f6=(_0x362ef4=(_0x333557=_0x5bf92f[_0x389d3e(0x4b8)]())==null?void 0x0:_0x333557['userID'])!=null?_0x362ef4:_0x389d3e(0x221),_0x1c7bf8=(_0x5663c7=(_0x46378b=_0x5bf92f['getCurrentUser']())==null?void 0x0:_0x46378b[_0x389d3e(0x264)])!=null?_0x5663c7:_0x389d3e(0x221);return{'changeset':{'unitID':_0x54b000,'type':_0x385526(_0x548f7d[_0x389d3e(0x1d9)](_0x54b000)),'baseRev':_0x18c3ea[_0x389d3e(0x433)](_0x54b000),'revision':0x0,'userID':_0xfa13f6,'memberID':_0x1c7bf8,'mutations':_0x453b6f},'pendingMutations':_0x1c49ed[_0x389d3e(0x350)](_0x453b6f[_0x389d3e(0x431)])};}function xn(_0x4cd8f9,_0x5db503,_0x169570,_0x96556c,_0xb8c34c){const _0x2085b0=_0x29c6a6;var _0x50d9e9,_0x38cf1a,_0x4a63fd,_0x533f8e;const _0x4e7804=[_0x4cd8f9[_0x2085b0(0x3ef)]((_0x200141,_0x49ada3)=>{const _0x23e700=_0x2085b0;var _0x43e569;const {id:_0x3d06a1}=_0x200141,{id:_0x2f65ba,type:_0x5bab5e}=_0x49ada3,_0x126fc8=(_0x43e569=_0x200141[_0x23e700(0x3c7)])!=null?_0x43e569:{'actions':null},_0x1ab739=_0x49ada3[_0x23e700(0x3c7)];if(_0x3d06a1&&_0x3d06a1!==_0x2f65ba)throw new Error(_0x23e700(0x33c)+_0x3d06a1+_0x23e700(0x43b)+_0x2f65ba+'.');return{..._0x200141,'id':_0x2f65ba,'type':_0x5bab5e,'params':{'unitId':_0x1ab739[_0x23e700(0x458)],'textRanges':_0x1ab739[_0x23e700(0x224)],'actions':_0x4686a0[_0x23e700(0x292)](_0x126fc8[_0x23e700(0x27c)],_0x1ab739[_0x23e700(0x27c)])}};},{})],_0x43bed7=(_0x38cf1a=(_0x50d9e9=_0xb8c34c[_0x2085b0(0x4b8)]())==null?void 0x0:_0x50d9e9[_0x2085b0(0x40d)])!=null?_0x38cf1a:'unknown',_0xee99d=(_0x533f8e=(_0x4a63fd=_0xb8c34c[_0x2085b0(0x4b8)]())==null?void 0x0:_0x4a63fd[_0x2085b0(0x264)])!=null?_0x533f8e:_0x2085b0(0x221);return{'changeset':{'unitID':_0x5db503,'type':_0x385526(_0x169570[_0x2085b0(0x1d9)](_0x5db503)),'baseRev':_0x96556c['getCurrentRevForDocument'](_0x5db503),'revision':0x0,'userID':_0x43bed7,'memberID':_0xee99d,'mutations':_0x4e7804},'pendingMutations':[]};}var Fn=Object[_0x29c6a6(0x3f3)],Bn=Object['getOwnPropertyDescriptor'],ne=(_0x739fbb,_0x166da5,_0x207347,_0x337fb6)=>{for(var _0x4b3fcf=_0x337fb6>0x1?void 0x0:_0x337fb6?Bn(_0x166da5,_0x207347):_0x166da5,_0x2fe473=_0x739fbb['length']-0x1,_0x16caca;_0x2fe473>=0x0;_0x2fe473--)(_0x16caca=_0x739fbb[_0x2fe473])&&(_0x4b3fcf=(_0x337fb6?_0x16caca(_0x166da5,_0x207347,_0x4b3fcf):_0x16caca(_0x4b3fcf))||_0x4b3fcf);return _0x337fb6&&_0x4b3fcf&&Fn(_0x166da5,_0x207347,_0x4b3fcf),_0x4b3fcf;},g=(_0x40a697,_0x4f85e5)=>(_0x392c6b,_0x1cd4ab)=>_0x4f85e5(_0x392c6b,_0x1cd4ab,_0x40a697),P=(_0x36b39d=>(_0x36b39d[_0x29c6a6(0x483)]=_0x29c6a6(0x379),_0x36b39d[_0x29c6a6(0x30d)]=_0x29c6a6(0x397),_0x36b39d[_0x29c6a6(0x1f3)]='pending',_0x36b39d[_0x29c6a6(0x4c6)]=_0x29c6a6(0x403),_0x36b39d[_0x29c6a6(0x3c4)]=_0x29c6a6(0x3ed),_0x36b39d[_0x29c6a6(0x399)]=_0x29c6a6(0x3c8),_0x36b39d['CONFLICT']=_0x29c6a6(0x348),_0x36b39d[_0x29c6a6(0x4b5)]=_0x29c6a6(0x2de),_0x36b39d))(P||{});class re{constructor(_0x306641,_0x58b846,_0x5adbaf,_0x886183,_0xc67bb9,_0x3f0381,_0x42d22e,_0x2949d2,_0xc4b34b){const _0x33c4b0=_0x29c6a6;l(this,_0x33c4b0(0x1c4),null),l(this,_0x33c4b0(0x4ea),[]),(this[_0x33c4b0(0x1ca)]=_0x306641,this[_0x33c4b0(0x236)]=_0x58b846,this[_0x33c4b0(0x1c9)]=_0xc67bb9,this[_0x33c4b0(0x3d7)]=_0x3f0381,this['_undoRedoService']=_0x42d22e,this[_0x33c4b0(0x230)]=_0x2949d2,this[_0x33c4b0(0x1ec)]=_0xc4b34b,this['_awaitingChangeset']=_0x5adbaf,this[_0x33c4b0(0x4ea)]=_0x886183);}[_0x29c6a6(0x43c)](_0x42b810){const _0x173f85=_0x29c6a6,_0x24bee0=this['_revisionService']['getCurrentRevForDocument'](this[_0x173f85(0x1ca)]);return _0x42b810[_0x173f85(0x32f)]>_0x24bee0+0x1?(this[_0x173f85(0x1c9)][_0x173f85(0x340)]({'from':_0x24bee0,'to':_0x42b810['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x25a31a){const _0x4c7559=_0x29c6a6;this[_0x4c7559(0x36a)]['transformUndoRedo'](this[_0x4c7559(0x1ca)],_0x25a31a);}[_0x29c6a6(0x22b)](_0x2e4fcc){const _0x41eb18=_0x29c6a6;var _0x4aaf09,_0x3fbc71;(_0x3fbc71=(_0x4aaf09=this[_0x41eb18(0x1c9)])['onTransformSelections'])==null||_0x3fbc71['call'](_0x4aaf09,_0x2e4fcc);}['_transformIMECache'](_0x17941e){const _0x40c08d=_0x29c6a6;var _0x462b5f,_0x4f9895;return(_0x4f9895=(_0x462b5f=this[_0x40c08d(0x1c9)])['onTransformIME'])==null?void 0x0:_0x4f9895[_0x40c08d(0x4ef)](_0x462b5f,_0x17941e);}[_0x29c6a6(0x369)](_0x5c8486){const _0x4d1823=_0x29c6a6;var _0x2011e1,_0xab0560,_0x1e8be3;return(_0x1e8be3=(_0xab0560=(_0x2011e1=this[_0x4d1823(0x1c9)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0xab0560[_0x4d1823(0x4ef)](_0x2011e1,_0x5c8486))!=null?_0x1e8be3:_0x5c8486;}[_0x29c6a6(0x3d8)](_0x42516b){const _0x5a1300=_0x29c6a6;var _0x2cb1b8,_0x2000c7;if(this[_0x5a1300(0x236)]===H[_0x5a1300(0x3f2)]){const {unitID:_0x2bb5d4,mutations:_0x29f589,memberID:_0x3b0f15}=_0x42516b,_0x1dd4cd=_0x29f589[0x0][_0x5a1300(0x3c7)][_0x5a1300(0x224)];Array[_0x5a1300(0x21c)](_0x1dd4cd)&&_0x1dd4cd[_0x5a1300(0x431)]>0x0&&((_0x2000c7=(_0x2cb1b8=this['_handler'])[_0x5a1300(0x4e9)])==null||_0x2000c7['call'](_0x2cb1b8,{'unitID':_0x2bb5d4,'memberID':_0x3b0f15,'textRanges':_0x1dd4cd}));}}[_0x29c6a6(0x1c2)](){const _0x309915=_0x29c6a6;this[_0x309915(0x1ec)][_0x309915(0x1dc)](this[_0x309915(0x1ca)],this[_0x309915(0x236)],this[_0x309915(0x1c4)],this['_pendingMutations']);}[_0x29c6a6(0x416)](){return this['_revisionService']['getCurrentRevForDocument'](this['unitID']);}[_0x29c6a6(0x411)](){const _0xf875c9=_0x29c6a6;this[_0xf875c9(0x230)][_0xf875c9(0x4e8)](this[_0xf875c9(0x1ca)]);}[_0x29c6a6(0x272)](_0x25b6a6){const _0x5e5be0=_0x29c6a6;var _0x1fd849;const _0x4ee119=this[_0x5e5be0(0x369)](_0x25b6a6),_0x525ac4=_0x4025ef(_0x4ee119[_0x5e5be0(0x365)],this[_0x5e5be0(0x3d7)],{'fromCollab':!0x0});if(!_0x525ac4[_0x5e5be0(0x404)])throw _0x525ac4[_0x5e5be0(0x35b)]instanceof Error?_0x525ac4['error']:new Error((_0x1fd849=_0x525ac4['error'])!=null?_0x1fd849:_0x5e5be0(0x2cb));this['_transformIMECache'](_0x4ee119),this[_0x5e5be0(0x302)](_0x25b6a6),this[_0x5e5be0(0x22b)](_0x4ee119),this['_syncEditingCollabCursor'](_0x4ee119),this[_0x5e5be0(0x411)]();}}let Te=class extends re{constructor(_0x4c146f,_0x25a1b2,_0xba29bc,_0x99b4f,_0x677706,_0x4b1f9b,_0x353fb1,_0xc86c8f,_0x1de3b2){const _0x16e599=_0x29c6a6;super(_0x4c146f,_0x25a1b2,null,[],_0xba29bc,_0xc86c8f,_0x353fb1,_0x99b4f,_0x677706),l(this,_0x16e599(0x3ea),_0x16e599(0x397)),(this['_injector']=_0x4b1f9b,this[_0x16e599(0x214)]=_0x1de3b2);}['appendMutation'](_0x483b92){const _0x4e8631=_0x29c6a6,_0x21f47d=this[_0x4e8631(0x31f)]['createInstance'](k,this['unitID'],this[_0x4e8631(0x236)],[_0x483b92],this[_0x4e8631(0x1c9)]);return _0x21f47d[_0x4e8631(0x303)](),_0x21f47d[_0x4e8631(0x1c2)](),_0x21f47d;}[_0x29c6a6(0x434)](_0x5599c4){const _0x2dadee=_0x29c6a6;if(this['_checkMissing'](_0x5599c4))return this[_0x2dadee(0x31f)]['createInstance'](W,this[_0x2dadee(0x1ca)],this[_0x2dadee(0x236)],null,[],null,[_0x5599c4],this[_0x2dadee(0x1c9)]);try{return this[_0x2dadee(0x272)](_0x5599c4),this;}catch(_0x1316b5){return this[_0x2dadee(0x214)][_0x2dadee(0x35b)](_0x2dadee(0x469),_0x1316b5),this;}}['onRemoteAck'](){const _0x3a20a7=_0x29c6a6;throw new Error(_0x3a20a7(0x2ce));}[_0x29c6a6(0x48f)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x4a9601=_0x29c6a6;return this['_injector'][_0x4a9601(0x43a)](J,this[_0x4a9601(0x1ca)],this['type'],null,[],this[_0x4a9601(0x1c9)]);}[_0x29c6a6(0x2b1)](){return this;}['resend'](){const _0x16c17e=_0x29c6a6;throw new Error(_0x16c17e(0x38b));}};Te=ne([g(0x3,_0x558bc4(_0x353354)),g(0x4,_0x558bc4(D)),g(0x5,_0x558bc4(_0x4ead3f)),g(0x6,_0x58b491),g(0x7,_0x594d06),g(0x8,_0x2125ae)],Te);let k=class extends re{constructor(_0x5dc6ac,_0x3a7dce,_0x1b868a,_0x5a10d6,_0x59d095,_0x1a522b,_0x4d9326,_0x2f59cc,_0x382430,_0x1d5138,_0x366eb9,_0x5559da,_0x123970,_0x235c32){const _0x1afd47=_0x29c6a6;super(_0x5dc6ac,_0x3a7dce,null,_0x1b868a,_0x5a10d6,_0x1d5138,_0x235c32,_0x1a522b,_0x4d9326),l(this,'status',_0x1afd47(0x3c0)),l(this,'_scheduleTimestamp',null),l(this,_0x1afd47(0x275),null),(this[_0x1afd47(0x31f)]=_0x59d095,this[_0x1afd47(0x23c)]=_0x2f59cc,this[_0x1afd47(0x214)]=_0x382430,this['_configService']=_0x366eb9,this[_0x1afd47(0x367)]=_0x5559da,this[_0x1afd47(0x49b)]=_0x123970);}[_0x29c6a6(0x359)](_0x32c863){const _0x42b4d9=_0x29c6a6;return this[_0x42b4d9(0x4ea)]['push'](_0x32c863),this[_0x42b4d9(0x1c2)](),this;}[_0x29c6a6(0x434)](_0x38da4a){const _0x42dc13=_0x29c6a6;if(this['_checkMissing'](_0x38da4a))return this[_0x42dc13(0x334)](),this[_0x42dc13(0x31f)]['createInstance'](W,this[_0x42dc13(0x1ca)],this['type'],null,this[_0x42dc13(0x4ea)],null,[_0x38da4a],this[_0x42dc13(0x1c9)]);try{const _0x5a8618=this[_0x42dc13(0x367)]['transformMutationsWithChangeset'](_0x38da4a,this[_0x42dc13(0x4ea)]);if(_0x589ac1(_0x5a8618)){const {c1Prime:_0x55d434,m2Prime:_0x482db1}=_0x5a8618;this[_0x42dc13(0x272)](_0x55d434);const _0x315969=this[_0x42dc13(0x31f)][_0x42dc13(0x43a)](k,this[_0x42dc13(0x1ca)],this[_0x42dc13(0x236)],_0x482db1,this[_0x42dc13(0x1c9)]);return this[_0x42dc13(0x334)](),_0x315969[_0x42dc13(0x303)](this[_0x42dc13(0x3b5)]?Math[_0x42dc13(0x28a)](0x0,new Date()[_0x42dc13(0x26b)]()-this['_scheduleTimestamp']):this[_0x42dc13(0x49a)]()),_0x315969;}throw _0x5a8618[_0x42dc13(0x35b)];}catch(_0x424022){return this[_0x42dc13(0x214)][_0x42dc13(0x35b)](_0x424022),this['_onConflict'](!0x1);}}[_0x29c6a6(0x31d)](){const _0x405c7e=_0x29c6a6;throw new Error(_0x405c7e(0x3e7));}[_0x29c6a6(0x48f)](){const _0x33b3dc=_0x29c6a6;throw new Error(_0x33b3dc(0x2d0));}['toggleOffline'](){const _0x59742f=_0x29c6a6;return this[_0x59742f(0x334)](),this[_0x59742f(0x31f)]['createInstance'](J,this[_0x59742f(0x1ca)],this[_0x59742f(0x236)],null,this['_pendingMutations'],this[_0x59742f(0x1c9)]);}[_0x29c6a6(0x2b1)](){return this;}['_schedule'](_0x395d48){const _0x5a1ebe=_0x29c6a6;_0x395d48=_0x395d48!=null?_0x395d48:this[_0x5a1ebe(0x49a)](),this[_0x5a1ebe(0x3b5)]=new Date()['getTime'](),this[_0x5a1ebe(0x275)]=setTimeout(()=>{const _0x4c3996=_0x5a1ebe;this[_0x4c3996(0x334)]();let _0x220011=null;switch(this[_0x4c3996(0x236)]){case H[_0x4c3996(0x3b4)]:{_0x220011=Hn(this['_pendingMutations'],this['unitID'],this[_0x4c3996(0x49b)],this[_0x4c3996(0x230)],this[_0x4c3996(0x23c)]);break;}case H[_0x4c3996(0x3f2)]:{_0x220011=xn(this[_0x4c3996(0x4ea)],this[_0x4c3996(0x1ca)],this[_0x4c3996(0x49b)],this[_0x4c3996(0x230)],this[_0x4c3996(0x23c)]);break;}default:throw new Error(_0x4c3996(0x318)+this[_0x4c3996(0x236)]+_0x4c3996(0x328));}const {changeset:_0x16ca96,pendingMutations:_0x395c93}=_0x220011;this['_handler'][_0x4c3996(0x4c5)](_0x16ca96);const _0x418c62=_0x395c93['length']?this['_injector']['createInstance'](V,this[_0x4c3996(0x1ca)],this['type'],_0x16ca96,_0x395c93,this[_0x4c3996(0x1c9)]):this['_injector'][_0x4c3996(0x43a)](X,this[_0x4c3996(0x1ca)],this[_0x4c3996(0x236)],_0x16ca96,this['_handler']);_0x418c62[_0x4c3996(0x1c2)](),this['_handler'][_0x4c3996(0x24f)](this,_0x418c62);},_0x395d48);}[_0x29c6a6(0x49a)](){const _0x585716=_0x29c6a6;var _0x2f7834;return(_0x2f7834=this[_0x585716(0x211)][_0x585716(0x29b)](Xi))!=null?_0x2f7834:Ji;}[_0x29c6a6(0x489)](){const _0x39f679=_0x29c6a6;throw new Error(_0x39f679(0x34a));}[_0x29c6a6(0x334)](){const _0x5d9bcc=_0x29c6a6;this[_0x5d9bcc(0x275)]!=null&&(clearTimeout(this[_0x5d9bcc(0x275)]),this[_0x5d9bcc(0x275)]=null);}[_0x29c6a6(0x4e7)](_0x46d99a){const _0x128a6f=_0x29c6a6;return this['_clearScheduledTask'](),this[_0x128a6f(0x31f)][_0x128a6f(0x43a)](te,this[_0x128a6f(0x1ca)],this['type'],null,this['_pendingMutations'],this[_0x128a6f(0x1c9)],_0x46d99a);}};k=ne([g(0x4,_0x558bc4(_0x4ead3f)),g(0x5,_0x558bc4(_0x353354)),g(0x6,_0x558bc4(D)),g(0x7,_0x558bc4(ee)),g(0x8,_0x2125ae),g(0x9,_0x594d06),g(0xa,_0x575c32),g(0xb,_0xd13d4c),g(0xc,_0x33e391),g(0xd,_0x58b491)],k);let X=class extends re{constructor(_0x53c522,_0x1dc396,_0x5082d2,_0x443801,_0x4c0fda,_0x5b1c03,_0xc6779b,_0x16857e,_0x32e07e,_0x4b4aac,_0x12b832){const _0x2d148a=_0x29c6a6;super(_0x53c522,_0x1dc396,_0x5082d2,[],_0x443801,_0x16857e,_0x12b832,_0x5b1c03,_0xc6779b),l(this,_0x2d148a(0x3ea),'awaiting'),(this[_0x2d148a(0x31f)]=_0x4c0fda,this[_0x2d148a(0x214)]=_0x32e07e,this[_0x2d148a(0x367)]=_0x4b4aac);}[_0x29c6a6(0x359)](_0x281b0e){const _0x1950d3=_0x29c6a6,_0x1399f0=this['_injector'][_0x1950d3(0x43a)](V,this[_0x1950d3(0x1ca)],this[_0x1950d3(0x236)],this['_awaitingChangeset'],[_0x281b0e],this[_0x1950d3(0x1c9)]);return _0x1399f0[_0x1950d3(0x1c2)](),_0x1399f0;}[_0x29c6a6(0x434)](_0x3bee9a){const _0x57e6d2=_0x29c6a6;if(this['_checkMissing'](_0x3bee9a))return this[_0x57e6d2(0x31f)][_0x57e6d2(0x43a)](W,this[_0x57e6d2(0x1ca)],this[_0x57e6d2(0x236)],this['_awaitingChangeset'],[],null,[_0x3bee9a],this[_0x57e6d2(0x1c9)]);try{const _0x2eadbe=this[_0x57e6d2(0x367)][_0x57e6d2(0x207)]([_0x3bee9a],[this[_0x57e6d2(0x1c4)]],!0x1);if(_0x389cf2(_0x2eadbe)){const {c1Prime:_0x2418ba,c2Prime:_0x29264d}=_0x2eadbe;this[_0x57e6d2(0x272)](_0x2418ba[0x0]),_0x29264d[0x0][_0x57e6d2(0x3ce)]=this[_0x57e6d2(0x416)]();const _0x230a31=this[_0x57e6d2(0x31f)]['createInstance'](X,this[_0x57e6d2(0x1ca)],this[_0x57e6d2(0x236)],_0x29264d[0x0],this[_0x57e6d2(0x1c9)]);return _0x230a31['_updateLocalCache'](),_0x230a31;}return this[_0x57e6d2(0x4e7)](!0x1);}catch(_0x567527){return this[_0x57e6d2(0x214)][_0x57e6d2(0x35b)](_0x567527),this[_0x57e6d2(0x4e7)](!0x1);}}[_0x29c6a6(0x31d)](_0x5cd8ef){const _0x20401b=_0x29c6a6,_0x5cb439=this['_revisionService'][_0x20401b(0x433)](this[_0x20401b(0x1ca)]);if(_0x5cd8ef['revision']<_0x5cb439-0x1)return this;if(this[_0x20401b(0x43c)](_0x5cd8ef))return this[_0x20401b(0x31f)][_0x20401b(0x43a)](W,this['unitID'],this['type'],null,[],this[_0x20401b(0x1c4)],[],this[_0x20401b(0x1c9)]);this[_0x20401b(0x411)]();const _0x448b4e=this['_injector'][_0x20401b(0x43a)](Te,this['unitID'],this['type'],this[_0x20401b(0x1c9)]);return _0x448b4e['_updateLocalCache'](),_0x448b4e;}[_0x29c6a6(0x48f)](_0x2ed657){const _0x319fee=_0x29c6a6;return this[_0x319fee(0x4e7)](!!(_0x2ed657!=null&&_0x2ed657[_0x319fee(0x1c3)]));}[_0x29c6a6(0x242)](){const _0x1ca569=_0x29c6a6;return this[_0x1ca569(0x31f)][_0x1ca569(0x43a)](J,this['unitID'],this['type'],this[_0x1ca569(0x1c4)],[],this['_handler']);}[_0x29c6a6(0x2b1)](){return this;}[_0x29c6a6(0x489)](){const _0x2b822d=_0x29c6a6;this[_0x2b822d(0x1c9)][_0x2b822d(0x4c5)](this[_0x2b822d(0x1c4)]);}['_onConflict'](_0x2cff33){const _0x39593d=_0x29c6a6;return this[_0x39593d(0x31f)][_0x39593d(0x43a)](te,this[_0x39593d(0x1ca)],this[_0x39593d(0x236)],this[_0x39593d(0x1c4)],[],this[_0x39593d(0x1c9)],_0x2cff33);}};X=ne([g(0x4,_0x558bc4(_0x4ead3f)),g(0x5,_0x558bc4(_0x353354)),g(0x6,_0x558bc4(D)),g(0x7,_0x594d06),g(0x8,_0x2125ae),g(0x9,_0xd13d4c),g(0xa,_0x58b491)],X);let V=class extends re{constructor(_0x223038,_0x3801f5,_0x161916,_0x1b26e0,_0x284689,_0x488fd9,_0x59dedd,_0x388d66,_0x3cd293,_0x229b12,_0x381f50,_0x49af50){const _0x89ccb=_0x29c6a6;super(_0x223038,_0x3801f5,_0x161916,_0x1b26e0,_0x284689,_0x3cd293,_0x49af50,_0x59dedd,_0x388d66),l(this,'status',_0x89ccb(0x3ed)),(this[_0x89ccb(0x31f)]=_0x488fd9,this[_0x89ccb(0x214)]=_0x229b12,this['_transformService']=_0x381f50);}[_0x29c6a6(0x359)](_0xd5ea89){const _0x1ba9aa=_0x29c6a6;return this[_0x1ba9aa(0x4ea)][_0x1ba9aa(0x2f7)](_0xd5ea89),this;}[_0x29c6a6(0x434)](_0x23961d){const _0x6b68bd=_0x29c6a6;if(this[_0x6b68bd(0x43c)](_0x23961d))return this[_0x6b68bd(0x31f)][_0x6b68bd(0x43a)](W,this[_0x6b68bd(0x1ca)],this[_0x6b68bd(0x236)],this[_0x6b68bd(0x1c4)],this['_pendingMutations'],null,[_0x23961d],this['_handler']);try{const _0x466108=this[_0x6b68bd(0x367)][_0x6b68bd(0x207)]([_0x23961d],[this[_0x6b68bd(0x1c4)]],!0x1);if(_0x389cf2(_0x466108)){const {c1Prime:_0x165d1e,c2Prime:_0x30c1c2}=_0x466108,_0xbbd47c=this[_0x6b68bd(0x367)][_0x6b68bd(0x216)](_0x165d1e[0x0],this[_0x6b68bd(0x4ea)]);if(_0x589ac1(_0xbbd47c)){const {c1Prime:_0x35b778,m2Prime:_0x5bdc16}=_0xbbd47c;return this[_0x6b68bd(0x272)](_0x35b778),_0x30c1c2[0x0][_0x6b68bd(0x3ce)]=this[_0x6b68bd(0x416)](),this['_injector'][_0x6b68bd(0x43a)](V,this[_0x6b68bd(0x1ca)],this[_0x6b68bd(0x236)],_0x30c1c2[0x0],_0x5bdc16,this[_0x6b68bd(0x1c9)]);}throw _0xbbd47c['error'];}throw _0x466108[_0x6b68bd(0x35b)];}catch(_0x465134){return this['_logService'][_0x6b68bd(0x35b)](_0x465134),this['_onConflict'](!0x1);}}[_0x29c6a6(0x31d)](_0x36bb5a){const _0xadee6a=_0x29c6a6;if(this[_0xadee6a(0x43c)](_0x36bb5a))return this[_0xadee6a(0x31f)][_0xadee6a(0x43a)](W,this['unitID'],this[_0xadee6a(0x236)],null,this[_0xadee6a(0x4ea)],this['_awaitingChangeset'],[],this[_0xadee6a(0x1c9)]);this['_incrementRevisionNumber']();const _0x822f6f=this[_0xadee6a(0x31f)][_0xadee6a(0x43a)](k,this[_0xadee6a(0x1ca)],this[_0xadee6a(0x236)],this[_0xadee6a(0x4ea)],this[_0xadee6a(0x1c9)]);return _0x822f6f['_schedule'](),_0x822f6f[_0xadee6a(0x1c2)](),_0x822f6f;}[_0x29c6a6(0x48f)](_0x4d8be0){const _0x34af63=_0x29c6a6;return this[_0x34af63(0x4e7)](!!(_0x4d8be0!=null&&_0x4d8be0[_0x34af63(0x1c3)]));}['toggleOffline'](){const _0xa4273f=_0x29c6a6;return this[_0xa4273f(0x31f)][_0xa4273f(0x43a)](J,this['unitID'],this['type'],this[_0xa4273f(0x1c4)],this[_0xa4273f(0x4ea)],this[_0xa4273f(0x1c9)]);}['toggleOnline'](){return this;}['resend'](){const _0xb47786=_0x29c6a6;this[_0xb47786(0x1c9)][_0xb47786(0x4c5)](this[_0xb47786(0x1c4)]);}['_onConflict'](_0x1b1bc1){const _0xb13db1=_0x29c6a6;return this[_0xb13db1(0x31f)][_0xb13db1(0x43a)](te,this[_0xb13db1(0x1ca)],this[_0xb13db1(0x236)],null,this[_0xb13db1(0x4ea)],this['_handler'],_0x1b1bc1);}};V=ne([g(0x5,_0x558bc4(_0x4ead3f)),g(0x6,_0x558bc4(_0x353354)),g(0x7,_0x558bc4(D)),g(0x8,_0x594d06),g(0x9,_0x2125ae),g(0xa,_0xd13d4c),g(0xb,_0x58b491)],V);let te=class extends re{constructor(_0x5209ad,_0x59786a,_0x2508e9,_0x3986b8,_0x4daba2,_0x236ac2=!0x1,_0x5d7d01,_0x33b678,_0x7b3d83,_0x5cc978,_0x4017f6,_0x56e5a6,_0x1dd204){const _0x57a554=_0x29c6a6;super(_0x5209ad,_0x59786a,_0x2508e9,_0x3986b8,_0x4daba2,_0x33b678,_0x7b3d83,_0x4017f6,_0x5cc978),l(this,_0x57a554(0x3ea),_0x57a554(0x348)),(this[_0x57a554(0x407)]=_0x236ac2,this[_0x57a554(0x484)]=_0x5d7d01,this[_0x57a554(0x357)]=_0x56e5a6,this['_notificationService']=_0x1dd204,this[_0x57a554(0x1e1)](),this[_0x57a554(0x1ce)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x29c6a6(0x434)](){return this;}[_0x29c6a6(0x31d)](){return this;}[_0x29c6a6(0x48f)](){return this;}[_0x29c6a6(0x242)](){return this;}['toggleOnline'](){return this;}[_0x29c6a6(0x489)](){const _0x47aeb2=_0x29c6a6;throw new Error(_0x47aeb2(0x406));}[_0x29c6a6(0x1ce)](){const _0x52d1cf=_0x29c6a6;this[_0x52d1cf(0x1ec)][_0x52d1cf(0x1dc)](this[_0x52d1cf(0x1ca)],this[_0x52d1cf(0x236)],null,[]);}[_0x29c6a6(0x1e1)](){const _0x153354=_0x29c6a6;this[_0x153354(0x407)]?this[_0x153354(0x478)][_0x153354(0x47a)]({'title':this[_0x153354(0x357)]['t'](_0x153354(0x229)),'content':this['_localeService']['t'](_0x153354(0x1c7)),'type':_0x153354(0x35b),'duration':0x0}):this['_notificationService']['show']({'title':this[_0x153354(0x357)]['t'](_0x153354(0x498)),'content':this[_0x153354(0x357)]['t']('conflict.content'),'type':'error','duration':0x0});}[_0x29c6a6(0x386)](){const _0x5ebb5b=_0x29c6a6;this[_0x5ebb5b(0x484)][_0x5ebb5b(0x456)](new _0x390ee3(this[_0x5ebb5b(0x1ca)])['id'],!0x1);}};te=ne([g(0x6,_0x558bc4(_0x478858)),g(0x7,_0x594d06),g(0x8,_0x58b491),g(0x9,_0x558bc4(D)),g(0xa,_0x558bc4(_0x353354)),g(0xb,_0x558bc4(_0x2f64f)),g(0xc,_0x4ee021)],te);let J=class extends re{constructor(_0x4162f3,_0x41f2c0,_0x194f1e,_0x2b7cb5,_0x4dc18c,_0x5e267e,_0x1ebdb1,_0x2a0b5b,_0x127a00,_0x5b549f){const _0x4db6af=_0x29c6a6;super(_0x4162f3,_0x41f2c0,_0x194f1e,_0x2b7cb5,_0x4dc18c,_0x127a00,_0x5b549f,_0x1ebdb1,_0x2a0b5b),l(this,_0x4db6af(0x3ea),_0x4db6af(0x2de)),this[_0x4db6af(0x31f)]=_0x5e267e;}[_0x29c6a6(0x359)](_0x4fa905){const _0x47a0e2=_0x29c6a6;return this[_0x47a0e2(0x4ea)][_0x47a0e2(0x2f7)](_0x4fa905),this[_0x47a0e2(0x1c2)](),this;}['onRemoteChangeset'](_0xc8c005){const _0x3e0f85=_0x29c6a6;throw new Error(_0x3e0f85(0x204));}['onRemoteAck'](){const _0x40c869=_0x29c6a6;throw new Error(_0x40c869(0x4c0));}[_0x29c6a6(0x48f)](){const _0xdb5ba4=_0x29c6a6;throw new Error(_0xdb5ba4(0x380));}[_0x29c6a6(0x242)](){return this;}['toggleOnline'](){const _0x20bf75=_0x29c6a6,{_injector:_0x1ca030,_pendingMutations:_0x357d33,_awaitingChangeset:_0x278548,unitID:_0x1b6e05,_handler:_0x36215f,type:_0x3db083}=this,_0x369f22=ws(_0x1ca030,_0x1b6e05,_0x3db083,_0x278548,_0x357d33,_0x36215f);return _0x369f22 instanceof k?_0x369f22[_0x20bf75(0x303)]():(_0x369f22 instanceof V||_0x369f22 instanceof X)&&_0x369f22['resend'](),_0x369f22;}[_0x29c6a6(0x489)](){const _0x40c408=_0x29c6a6;throw new Error(_0x40c408(0x25f));}};J=ne([g(0x5,_0x558bc4(_0x4ead3f)),g(0x6,_0x558bc4(_0x353354)),g(0x7,_0x558bc4(D)),g(0x8,_0x594d06),g(0x9,_0x58b491)],J);let W=class extends re{constructor(_0x533a7c,_0x5d804d,_0x1f75b3,_0x4ec7fc,_0x373c77,_0x14a33c,_0x2bd512,_0x5ea9fe,_0x350ff6,_0x20c6ef,_0x17d3d7,_0x39dfba,_0x33e23f,_0x5d2de6){const _0x1b33c9=_0x29c6a6;super(_0x533a7c,_0x5d804d,_0x1f75b3,_0x4ec7fc,_0x2bd512,_0x39dfba,_0x33e23f,_0x350ff6,_0x20c6ef),l(this,_0x1b33c9(0x3ea),_0x1b33c9(0x3c8)),(this['_acknowledgedAwaitingChangeset']=_0x373c77,this[_0x1b33c9(0x467)]=_0x14a33c,this[_0x1b33c9(0x31f)]=_0x5ea9fe,this[_0x1b33c9(0x214)]=_0x17d3d7,this['_transformService']=_0x5d2de6);}['onMissedChangesetFetched'](_0x31b5eb){const _0x461e4a=_0x29c6a6;try{const _0x11a4ca=[..._0x31b5eb,...this[_0x461e4a(0x467)]],_0x1e0118=[this[_0x461e4a(0x1c4)]||this['_acknowledgedAwaitingChangeset']][_0x461e4a(0x3c1)](_0x415e88=>!!_0x415e88);let _0x270044,_0xf52ac6;if(_0x1e0118['length']){const _0x3ab604=this['_transformService'][_0x461e4a(0x207)](_0x11a4ca,_0x1e0118,!0x1);if(!_0x389cf2(_0x3ab604))throw _0x3ab604[_0x461e4a(0x35b)];_0x270044=_0x3ab604[_0x461e4a(0x450)],_0xf52ac6=_0x3ab604[_0x461e4a(0x435)];}else _0x270044=_0x11a4ca,_0xf52ac6=[];let _0xf9ad8f=this['_pendingMutations'];_0x270044['forEach'](_0x36d4d9=>{const _0x37ad59=_0x461e4a;let _0x474d21;if(_0xf9ad8f[_0x37ad59(0x431)]){const _0x16f0f4=this[_0x37ad59(0x367)][_0x37ad59(0x216)](_0x36d4d9,_0xf9ad8f);if(!_0x589ac1(_0x16f0f4))throw _0x16f0f4[_0x37ad59(0x35b)];_0x474d21=_0x16f0f4[_0x37ad59(0x450)],_0xf9ad8f=_0x16f0f4['m2Prime'];}else _0x474d21=_0x36d4d9;this['_executeRemoteChangeset'](_0x474d21);}),this[_0x461e4a(0x2b3)]&&this[_0x461e4a(0x411)](),this[_0x461e4a(0x1c4)]&&_0xf52ac6[_0x461e4a(0x431)]&&(_0xf52ac6[0x0][_0x461e4a(0x3ce)]=this['_getCurrentRevision']());let _0x21b7b6;if(this['_awaitingChangeset']&&_0xf9ad8f[_0x461e4a(0x431)]!==0x0)_0x21b7b6=this[_0x461e4a(0x31f)][_0x461e4a(0x43a)](V,this[_0x461e4a(0x1ca)],this['type'],_0xf52ac6[0x0],_0xf9ad8f,this['_handler']);else{if(this[_0x461e4a(0x1c4)]&&_0xf9ad8f[_0x461e4a(0x431)]===0x0)_0xf52ac6[0x0][_0x461e4a(0x3ce)]=this[_0x461e4a(0x416)](),_0x21b7b6=this[_0x461e4a(0x31f)][_0x461e4a(0x43a)](X,this['unitID'],this[_0x461e4a(0x236)],_0xf52ac6[0x0],this['_handler']);else{if(_0xf9ad8f[_0x461e4a(0x431)]!==0x0){const _0x3a7568=this[_0x461e4a(0x31f)][_0x461e4a(0x43a)](k,this[_0x461e4a(0x1ca)],this[_0x461e4a(0x236)],_0xf9ad8f,this['_handler']);_0x3a7568[_0x461e4a(0x303)](),_0x21b7b6=_0x3a7568;}else _0x21b7b6=this[_0x461e4a(0x31f)][_0x461e4a(0x43a)](Te,this[_0x461e4a(0x1ca)],this['type'],this[_0x461e4a(0x1c9)]);}}return _0x21b7b6[_0x461e4a(0x1c2)](),_0x21b7b6;}catch(_0xc33cc){return this[_0x461e4a(0x214)][_0x461e4a(0x35b)]('[FetchMissState]',_0x461e4a(0x286),_0xc33cc),this[_0x461e4a(0x31f)][_0x461e4a(0x43a)](te,this[_0x461e4a(0x1ca)],this[_0x461e4a(0x236)],this['_awaitingChangeset'],this[_0x461e4a(0x4ea)],this['_handler'],!0x1);}}[_0x29c6a6(0x489)](){const _0x50b32e=_0x29c6a6;throw new Error(_0x50b32e(0x2f2));}[_0x29c6a6(0x359)](_0x535a34){const _0x469c34=_0x29c6a6;return this[_0x469c34(0x4ea)][_0x469c34(0x2f7)](_0x535a34),this;}[_0x29c6a6(0x434)](_0x5bc74d){const _0x45f2d1=_0x29c6a6;return this[_0x45f2d1(0x467)][_0x45f2d1(0x2f7)](_0x5bc74d),this;}['onRemoteAck'](_0x4669c5){const _0x2aaf3c=_0x29c6a6;if(this[_0x2aaf3c(0x1c4)])return this[_0x2aaf3c(0x2b3)]=this[_0x2aaf3c(0x1c4)],this[_0x2aaf3c(0x1c4)]=null,this;throw new Error(_0x2aaf3c(0x394));}['onRemoteRej'](_0x50985b){const _0x5800fc=_0x29c6a6;return this[_0x5800fc(0x4e7)](!!(_0x50985b!=null&&_0x50985b[_0x5800fc(0x1c3)]));}['toggleOffline'](){const _0x4bf71d=_0x29c6a6;return this[_0x4bf71d(0x31f)][_0x4bf71d(0x43a)](J,this[_0x4bf71d(0x1ca)],this[_0x4bf71d(0x236)],this[_0x4bf71d(0x1c4)],this[_0x4bf71d(0x4ea)],this[_0x4bf71d(0x1c9)]);}['toggleOnline'](){return this;}[_0x29c6a6(0x4e7)](_0x47fa14){const _0xdc2ff0=_0x29c6a6;return this[_0xdc2ff0(0x31f)][_0xdc2ff0(0x43a)](te,this['unitID'],this[_0xdc2ff0(0x236)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],_0x47fa14);}};W=ne([g(0x7,_0x558bc4(_0x4ead3f)),g(0x8,_0x558bc4(_0x353354)),g(0x9,_0x558bc4(D)),g(0xa,_0x2125ae),g(0xb,_0x594d06),g(0xc,_0x58b491),g(0xd,_0xd13d4c)],W);function ws(_0x37dbc9,_0x12ebc4,_0x43efeb,_0x567d93,_0x20503d,_0x1e93f6){const _0x10be5f=_0x29c6a6;return _0x567d93&&_0x20503d['length']?_0x37dbc9['createInstance'](V,_0x12ebc4,_0x43efeb,_0x567d93,_0x20503d,_0x1e93f6):_0x567d93?_0x37dbc9[_0x10be5f(0x43a)](X,_0x12ebc4,_0x43efeb,_0x567d93,_0x1e93f6):_0x20503d[_0x10be5f(0x431)]?_0x37dbc9['createInstance'](k,_0x12ebc4,_0x43efeb,_0x20503d,_0x1e93f6):_0x37dbc9[_0x10be5f(0x43a)](Te,_0x12ebc4,_0x43efeb,_0x1e93f6);}var kn=Object['defineProperty'],Vn=Object[_0x29c6a6(0x48e)],Je=(_0x459bc4,_0x5f1d6c,_0x5d5c9b,_0x38c6ef)=>{const _0x4778be=_0x29c6a6;for(var _0x3b857f=_0x38c6ef>0x1?void 0x0:_0x38c6ef?Vn(_0x5f1d6c,_0x5d5c9b):_0x5f1d6c,_0x1b1d79=_0x459bc4[_0x4778be(0x431)]-0x1,_0x44476a;_0x1b1d79>=0x0;_0x1b1d79--)(_0x44476a=_0x459bc4[_0x1b1d79])&&(_0x3b857f=(_0x38c6ef?_0x44476a(_0x5f1d6c,_0x5d5c9b,_0x3b857f):_0x44476a(_0x3b857f))||_0x3b857f);return _0x38c6ef&&_0x3b857f&&kn(_0x5f1d6c,_0x5d5c9b,_0x3b857f),_0x3b857f;},S=(_0x439f7c,_0x45451a)=>(_0x1d74c2,_0x2191d5)=>_0x45451a(_0x1d74c2,_0x2191d5,_0x439f7c);let Ee=class extends _0x39fd47{constructor(_0x219cb6,_0x3f88ed,_0x4e3ef4){const _0x555684=_0x29c6a6;super(),l(this,_0x555684(0x4d9),new Map()),l(this,_0x555684(0x270),new _0x2ef673()),(this[_0x555684(0x31f)]=_0x219cb6,this[_0x555684(0x266)]=_0x3f88ed,this[_0x555684(0x49b)]=_0x4e3ef4,this[_0x555684(0x26f)]());}[_0x29c6a6(0x378)](){const _0x1e8d1f=_0x29c6a6;super[_0x1e8d1f(0x378)](),this[_0x1e8d1f(0x4d9)][_0x1e8d1f(0x31b)](_0x25e09b=>_0x25e09b[_0x1e8d1f(0x378)]()),this[_0x1e8d1f(0x4d9)][_0x1e8d1f(0x3c6)]();}[_0x29c6a6(0x324)](_0x15c28a){const _0x586796=_0x29c6a6;var _0x160f11;return(_0x160f11=this['_entities'][_0x586796(0x362)](_0x15c28a))!=null?_0x160f11:null;}[_0x29c6a6(0x2f5)](_0x2e357e){const _0x4a64d7=_0x29c6a6,_0x220c3b=this[_0x4a64d7(0x324)](_0x2e357e);return _0x220c3b?_0x41c67f(_0x220c3b):this[_0x4a64d7(0x270)][_0x4a64d7(0x4dc)](_0x7426b5(_0x4a9dcb=>_0x4a9dcb[_0x4a64d7(0x1ca)]===_0x2e357e));}[_0x29c6a6(0x26f)](){const _0x29909e=_0x29c6a6;this[_0x29909e(0x49b)]['getTypeOfUnitAdded$'](_0x17600d['UNIVER_SHEET'])[_0x29909e(0x4dc)](_0x26437e(this['dispose$']),_0x4f7269(0x10))['subscribe'](async _0x6c39b0=>{const _0x8cb4=_0x29909e,_0x2ca33e=_0x6c39b0[_0x8cb4(0x38d)](),_0x17afe8=await this['_startCollaboration'](_0x2ca33e,H['UNIVER_SHEET']);this['_entities'][_0x8cb4(0x320)](_0x2ca33e,_0x17afe8);}),this['_univerInstanceService'][_0x29909e(0x1f7)](_0x17600d[_0x29909e(0x3f2)])[_0x29909e(0x4dc)](_0x26437e(this['dispose$']),_0x4f7269(0x10))[_0x29909e(0x4dc)](_0x7426b5(_0x58b25c=>!_0x58b25c[_0x29909e(0x38d)]()['startsWith']('__')))[_0x29909e(0x460)](async _0x537890=>{const _0x566ad6=_0x29909e,_0x5cf853=_0x537890[_0x566ad6(0x38d)](),_0x3aa4ba=await this['_startCollaboration'](_0x5cf853,H['UNIVER_DOC']);this['_entities'][_0x566ad6(0x320)](_0x5cf853,_0x3aa4ba);}),_0x2e2fc7(this[_0x29909e(0x49b)][_0x29909e(0x4d1)](_0x17600d[_0x29909e(0x3b4)]),this[_0x29909e(0x49b)]['getTypeOfUnitDisposed$'](_0x17600d['UNIVER_DOC']))[_0x29909e(0x4dc)](_0x26437e(this[_0x29909e(0x33a)]))[_0x29909e(0x460)](_0x42e834=>{const _0x3f17df=_0x29909e,_0x41c792=_0x42e834[_0x3f17df(0x38d)](),_0x494f6c=this[_0x3f17df(0x4d9)][_0x3f17df(0x362)](_0x41c792);_0x494f6c&&(_0x494f6c[_0x3f17df(0x378)](),this[_0x3f17df(0x4d9)][_0x3f17df(0x457)](_0x41c792));});}async[_0x29c6a6(0x3e8)](_0x563740,_0x481a94){const _0x9d0f1e=_0x29c6a6,_0x3f3995=await this[_0x9d0f1e(0x266)][_0x9d0f1e(0x4e6)](_0x563740),_0x4ae11f=this['_injector']['createInstance'](this[_0x9d0f1e(0x239)](_0x481a94),_0x563740,_0x481a94,_0x3f3995);return await _0x4ae11f['init'](),this['_entityInit$'][_0x9d0f1e(0x3af)](_0x4ae11f),_0x4ae11f;}['_getCtorByUniverType'](_0x5551fb){const _0x281394=_0x29c6a6;switch(_0x5551fb){case H['UNIVER_DOC']:return dt;case H['UNIVER_SHEET']:return ft;default:throw new Error(_0x281394(0x2ba)+_0x5551fb);}}};Ee=Je([_0x2d1123(_0xb39fe5[_0x29c6a6(0x4bc)],Ee),S(0x0,_0x558bc4(_0x4ead3f)),S(0x1,_0x558bc4(Re)),S(0x2,_0x33e391)],Ee);let We=class extends _0x39fd47{constructor(_0x4ada28,_0x10f6bd,_0x429d61,_0x5b38e7,_0x23c7d2,_0x2f0160,_0x32c6e0,_0x492bd5,_0x4acae7,_0x410a81,_0x2320df,_0x95188d,_0x389cc3){const _0x1e85ad=_0x29c6a6;super(),l(this,'_state$',new _0x2ae6a5(null)),l(this,'state$',this[_0x1e85ad(0x496)]['asObservable']()),l(this,_0x1e85ad(0x2a2)),l(this,_0x1e85ad(0x1d8),!0x1),l(this,'status$',this['state$'][_0x1e85ad(0x4dc)](_0x6aec6c(_0x2940e1=>_0x2940e1?_0x2940e1[_0x1e85ad(0x3ea)]:P[_0x1e85ad(0x4b5)]),_0x4f7c12(0x1))),l(this,_0x1e85ad(0x1d1),!0x1),l(this,_0x1e85ad(0x475),[]),(this[_0x1e85ad(0x1ca)]=_0x4ada28,this['_type']=_0x10f6bd,this[_0x1e85ad(0x3a8)]=_0x429d61,this[_0x1e85ad(0x31f)]=_0x5b38e7,this[_0x1e85ad(0x1ec)]=_0x23c7d2,this[_0x1e85ad(0x4e1)]=_0x2f0160,this[_0x1e85ad(0x357)]=_0x32c6e0,this[_0x1e85ad(0x230)]=_0x492bd5,this[_0x1e85ad(0x214)]=_0x4acae7,this[_0x1e85ad(0x3d7)]=_0x410a81,this[_0x1e85ad(0x426)]=_0x2320df,this[_0x1e85ad(0x484)]=_0x95188d,this[_0x1e85ad(0x47d)]=_0x389cc3);}get[_0x29c6a6(0x438)](){const _0x4b4543=_0x29c6a6;return this[_0x4b4543(0x2a2)];}async[_0x29c6a6(0x23e)](){const _0x2f907e=_0x29c6a6;if(this[_0x2f907e(0x438)])throw new Error(_0x2f907e(0x24d));await this[_0x2f907e(0x26f)]();}[_0x29c6a6(0x3f6)](){const _0x58f373=_0x29c6a6;return this[_0x58f373(0x1d8)]=!0x0,_0x359428(()=>{const _0x14037d=_0x58f373;this[_0x14037d(0x1d8)]=!0x1,this[_0x14037d(0x2fd)]();});}[_0x29c6a6(0x2f9)](_0x244387){const _0x27eeb0=_0x29c6a6;this['_state']=_0x244387,this['_state$'][_0x27eeb0(0x3af)](_0x244387);}async[_0x29c6a6(0x26f)](){const _0x4adac9=_0x29c6a6;var _0x5b0d8a;return this[_0x4adac9(0x2f9)](await this[_0x4adac9(0x336)]()),this[_0x4adac9(0x47d)]&&((_0x5b0d8a=this[_0x4adac9(0x47d)])==null||_0x5b0d8a[_0x4adac9(0x202)](this[_0x4adac9(0x1ca)]),this['disposeWithMe'](_0x359428(this[_0x4adac9(0x47d)][_0x4adac9(0x3ad)](this['unitID'])[_0x4adac9(0x460)](_0x465626=>{const _0x26565f=_0x4adac9;this[_0x26565f(0x214)]['debug']('[CollaborationEntity]',_0x26565f(0x3b2),_0x465626),_0x465626===Os[_0x26565f(0x39d)]?(this['_messageService']['show']({'content':this['_localeService']['t'](_0x26565f(0x262)),'type':_0x15c0da[_0x26565f(0x32c)]}),this[_0x26565f(0x484)][_0x26565f(0x456)](new _0x390ee3(this[_0x26565f(0x1ca)])['id'],!0x1)):this[_0x26565f(0x484)]['updatePermissionPoint'](new _0x390ee3(this['unitID'])['id'],!0x0);})))),this['disposeWithMe'](_0x359428(this[_0x4adac9(0x3a8)][_0x4adac9(0x1cd)]['subscribe'](_0x22b9b7=>{const _0x1ea5ce=_0x4adac9;_0x22b9b7===_e[_0x1ea5ce(0x490)]?this['_toggleOnline']():_0x22b9b7===_e[_0x1ea5ce(0x4b5)]&&this[_0x1ea5ce(0x1f4)]();}))),this[_0x4adac9(0x1fb)](_0x359428(this[_0x4adac9(0x3a8)]['event$']['subscribe'](_0x1d8b0f=>{const _0x4e1de5=_0x4adac9;try{switch(_0x1d8b0f[_0x4e1de5(0x2fa)]){case _0x5911b8[_0x4e1de5(0x472)]:{this['_onRemoteChangeset'](_0x8de20b(_0x1d8b0f[_0x4e1de5(0x3f0)]));break;}case _0x5911b8['CHANGESET_ACK']:{this['_onRemoteACK'](_0x1d8b0f[_0x4e1de5(0x3f0)]);break;}case _0x5911b8[_0x4e1de5(0x3ca)]:{this['_onRemoteRejected']();break;}case _0x5911b8[_0x4e1de5(0x311)]:{this[_0x4e1de5(0x30a)](_0x1d8b0f[_0x4e1de5(0x3f0)][_0x4e1de5(0x382)][_0x4e1de5(0x1f9)](_0x45cf82=>_0x8de20b(_0x45cf82)));break;}case _0x5911b8[_0x4e1de5(0x44d)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x3baddb){throw console[_0x4e1de5(0x35b)](_0x4e1de5(0x295),_0x3baddb),_0x3baddb;}}))),this[_0x4adac9(0x2a2)];}[_0x29c6a6(0x310)](){const _0x57c183=_0x29c6a6;this[_0x57c183(0x1d1)]=!0x1;}[_0x29c6a6(0x3fb)](){const _0x1d111d=_0x29c6a6;if(this[_0x1d111d(0x1d1)])throw new Error(_0x1d111d(0x2c2));this[_0x1d111d(0x1d1)]=!0x0;}[_0x29c6a6(0x29c)](_0xcf725a){const _0x28f35d=_0x29c6a6;this[_0x28f35d(0x3fb)](),this[_0x28f35d(0x2f9)](this[_0x28f35d(0x2a2)][_0x28f35d(0x359)](_0xcf725a)),this['_unlockTransition']();}[_0x29c6a6(0x4b1)](_0x4d4beb){const _0x4d1a73=_0x29c6a6;if(!(_0x4d4beb[_0x4d1a73(0x32f)]<=this[_0x4d1a73(0x230)][_0x4d1a73(0x433)](this['unitID']))){if(this['_collaborationPaused']){this[_0x4d1a73(0x475)][_0x4d1a73(0x2f7)](_0x4d4beb);return;}this[_0x4d1a73(0x4d4)](_0x4d4beb);}}[_0x29c6a6(0x2fd)](){const _0x4b9ebd=_0x29c6a6;this[_0x4b9ebd(0x475)][_0x4b9ebd(0x31b)](_0x4d1b24=>this['_applyRemoteChangeset'](_0x4d1b24)),this[_0x4b9ebd(0x475)]=[];}[_0x29c6a6(0x4d4)](_0x3fcf2){const _0x3094d5=_0x29c6a6,_0x2c39d6=this[_0x3094d5(0x4e1)]['interceptor'][_0x3094d5(0x465)](this['_compressMutationService'][_0x3094d5(0x349)][_0x3094d5(0x228)]()[_0x3094d5(0x1bf)])(_0x3fcf2[_0x3094d5(0x365)],null)||_0x3fcf2[_0x3094d5(0x365)],_0x3baf0b={..._0x3fcf2,'mutations':_0x2c39d6};this['_lockTransition'](),this[_0x3094d5(0x2f9)](this[_0x3094d5(0x2a2)]['onRemoteChangeset'](_0x3baf0b)),this['_unlockTransition']();}[_0x29c6a6(0x200)](_0x1dc52c){const _0x3d7157=_0x29c6a6;this[_0x3d7157(0x3fb)](),this[_0x3d7157(0x2f9)](this[_0x3d7157(0x2a2)][_0x3d7157(0x31d)](_0x1dc52c)),this['_unlockTransition']();}[_0x29c6a6(0x254)](_0x1f4bb7){const _0x51efcc=_0x29c6a6;this[_0x51efcc(0x3fb)](),this[_0x51efcc(0x2f9)](this[_0x51efcc(0x2a2)][_0x51efcc(0x48f)](_0x1f4bb7)),this[_0x51efcc(0x310)]();}[_0x29c6a6(0x30a)](_0x2f8469){const _0x381b4b=_0x29c6a6;if(!(this[_0x381b4b(0x2a2)]instanceof W))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x4372c4=_0x2f8469[_0x381b4b(0x1f9)](_0x34abcd=>{const _0x30f331=_0x381b4b,_0xd6d416=this[_0x30f331(0x4e1)][_0x30f331(0x349)][_0x30f331(0x465)](this[_0x30f331(0x4e1)][_0x30f331(0x349)][_0x30f331(0x228)]()[_0x30f331(0x1bf)])(_0x34abcd['mutations'],null)||_0x34abcd[_0x30f331(0x365)];return{..._0x34abcd,'mutations':_0xd6d416};});this['_lockTransition'](),this[_0x381b4b(0x2f9)](this['_state'][_0x381b4b(0x256)](_0x4372c4)),this['_unlockTransition']();}[_0x29c6a6(0x1f4)](){const _0x5e5599=_0x29c6a6;this[_0x5e5599(0x3fb)](),this[_0x5e5599(0x2f9)](this['_state']['toggleOffline']()),this[_0x5e5599(0x310)]();}[_0x29c6a6(0x3bf)](){const _0x3cb878=_0x29c6a6;this[_0x3cb878(0x3fb)](),this['_updateState'](this[_0x3cb878(0x2a2)][_0x3cb878(0x2b1)]()),this[_0x3cb878(0x310)]();}async[_0x29c6a6(0x336)](){return new Promise(_0x3e8b67=>{const _0x52d190=_0x34fd;this[_0x52d190(0x3a8)][_0x52d190(0x1cd)][_0x52d190(0x4dc)](_0x1c0ea1(0x1))[_0x52d190(0x460)](async _0x18deef=>{const _0x80fa39=_0x52d190;_0x3e8b67(await this[_0x80fa39(0x1e0)](_0x18deef===_e[_0x80fa39(0x490)]));});});}[_0x29c6a6(0x2f3)](){const _0x3aff72=_0x29c6a6,_0x213d1d=this[_0x3aff72(0x1ca)];return{'onStateChange':(_0x599649,_0xf26d9b)=>{const _0x196c33=_0x3aff72;if(_0x599649!==this[_0x196c33(0x2a2)])throw new Error(_0x196c33(0x312)+_0x599649['status']+_0x196c33(0x32d)+_0xf26d9b[_0x196c33(0x3ea)]+_0x196c33(0x1d4)+this[_0x196c33(0x2a2)][_0x196c33(0x3ea)]);this[_0x196c33(0x2f9)](_0xf26d9b);},'onSendChangeset':_0x40e753=>{const _0x5b6579=_0x3aff72,_0x9918fb={'eventID':_0x5911b8[_0x5b6579(0x4e2)],'data':{'unitID':_0x40e753[_0x5b6579(0x1ca)],'unitType':this[_0x5b6579(0x31e)],'changeset':_0x40e753,'memberID':this[_0x5b6579(0x3a8)][_0x5b6579(0x48c)]()}};this[_0x5b6579(0x3a8)][_0x5b6579(0x293)](_0x9918fb,this['unitID']);},'onMissingChangesets':({from:_0x1f9d5,to:_0x259971})=>{const _0x53c291=_0x3aff72;this['_logService'][_0x53c291(0x363)](_0x53c291(0x4d3),_0x53c291(0x491)+_0x1f9d5+_0x53c291(0x4df)+_0x259971);const _0xa9ce22={'eventID':_0x5911b8[_0x53c291(0x39a)],'data':{'unitID':_0x213d1d,'unitType':this[_0x53c291(0x31e)],'from':_0x1f9d5,'to':_0x259971}};this[_0x53c291(0x3a8)][_0x53c291(0x293)](_0xa9ce22,this[_0x53c291(0x1ca)]);}};}async['_createInitialStateImpl'](_0xa85c53){const _0x2927de=_0x29c6a6;var _0x3210d2,_0x203875;const _0x2fe129=await this[_0x2927de(0x1ec)][_0x2927de(0x3bd)](this[_0x2927de(0x1ca)]),_0xa140a9=(_0x3210d2=_0x2fe129==null?void 0x0:_0x2fe129[_0x2927de(0x365)])!=null?_0x3210d2:[],_0x3a7d1a=(_0x203875=_0x2fe129==null?void 0x0:_0x2fe129[_0x2927de(0x2e6)])!=null?_0x203875:null,_0x3f5d8b=this[_0x2927de(0x1ca)];try{this['_replayCachedMutations'](_0x3a7d1a,_0xa140a9);}catch(_0x480d10){this[_0x2927de(0x214)][_0x2927de(0x35b)](_0x480d10);}const _0x3c2e3b=this[_0x2927de(0x2f3)]();if(_0xa85c53){const _0x15f7e7=ws(this['_injector'],_0x3f5d8b,this[_0x2927de(0x31e)],_0x3a7d1a,_0xa140a9,_0x3c2e3b);return _0x15f7e7 instanceof k?_0x15f7e7[_0x2927de(0x303)]():(_0x15f7e7 instanceof V||_0x15f7e7 instanceof X)&&_0x15f7e7['resend'](),_0x15f7e7;}return this[_0x2927de(0x31f)][_0x2927de(0x43a)](J,_0x3f5d8b,this[_0x2927de(0x31e)],_0x3a7d1a,_0xa140a9,_0x3c2e3b);}[_0x29c6a6(0x316)](_0x228848,_0x1e1aea){const _0x3193ed=_0x29c6a6;var _0x165705,_0x73edbf;const _0xc30f=this[_0x3193ed(0x4e1)]['interceptor'][_0x3193ed(0x465)](this[_0x3193ed(0x4e1)][_0x3193ed(0x349)][_0x3193ed(0x228)]()[_0x3193ed(0x1bf)]);(_0x165705=_0xc30f((_0x228848==null?void 0x0:_0x228848[_0x3193ed(0x365)])||[],null))==null||_0x165705[_0x3193ed(0x31b)](_0x49adc9=>this[_0x3193ed(0x3d7)][_0x3193ed(0x22a)](_0x49adc9['id'],_0x49adc9[_0x3193ed(0x3c7)])),(_0x73edbf=_0xc30f(_0x1e1aea||[],null))==null||_0x73edbf[_0x3193ed(0x31b)](_0x5f08b3=>this[_0x3193ed(0x3d7)][_0x3193ed(0x22a)](_0x5f08b3['id'],_0x5f08b3[_0x3193ed(0x3c7)]));}};We=Je([S(0x3,_0x558bc4(_0x4ead3f)),S(0x4,_0x558bc4(D)),S(0x5,_0x558bc4(_0x969bae)),S(0x6,_0x558bc4(_0x2f64f)),S(0x7,_0x558bc4(_0x353354)),S(0x8,_0x2125ae),S(0x9,_0x594d06),S(0xa,_0x367db8),S(0xb,_0x478858),S(0xc,_0x2cbf69(Xe))],We);let dt=class extends We{constructor(_0x8f27fb,_0x41521e,_0x2e47a8,_0x1eb470,_0x5dd54e,_0x3573a4,_0x1f3c4c,_0x8eb3e,_0x369d76,_0x368515,_0x437b59,_0x35021b,_0x30f3ea,_0x1ce386,_0x4fcda2,_0xe5bcbf,_0x3fd351){const _0x5349ea=_0x29c6a6;super(_0x8f27fb,_0x41521e,_0x2e47a8,_0x1eb470,_0x5dd54e,_0x3573a4,_0x1f3c4c,_0x8eb3e,_0x30f3ea,_0x1ce386,_0x4fcda2,_0xe5bcbf,_0x3fd351),this[_0x5349ea(0x1ca)]=_0x8f27fb,this[_0x5349ea(0x236)]=_0x41521e,this[_0x5349ea(0x27a)]=_0x2e47a8,this['_docStateChangeManagerService']=_0x369d76,this[_0x5349ea(0x26c)]=_0x368515,this['_docTransformSelectionsService']=_0x437b59,this[_0x5349ea(0x3b7)]=_0x35021b;}[_0x29c6a6(0x2f3)](){const _0x569abb=_0x29c6a6,_0x1e9c13=super['_createHandler']();return _0x1e9c13['onTransformIME']=_0x136068=>this[_0x569abb(0x26c)][_0x569abb(0x36d)](_0x136068),_0x1e9c13[_0x569abb(0x4be)]=_0x2a1b0b=>this['_docTransformSelectionsService'][_0x569abb(0x21d)](_0x2a1b0b),_0x1e9c13[_0x569abb(0x4e9)]=_0xae979=>this['_docSyncEditingCollabCursorService'][_0x569abb(0x44f)](_0xae979),_0x1e9c13[_0x569abb(0x267)]=_0x2e14f3=>this[_0x569abb(0x26c)][_0x569abb(0x42c)](_0x2e14f3),_0x1e9c13;}async[_0x29c6a6(0x26f)](){const _0x5a5c9d=_0x29c6a6,_0x32c4ff=await super['_init']();return this[_0x5a5c9d(0x449)][_0x5a5c9d(0x339)][_0x5a5c9d(0x4dc)](_0x26437e(this[_0x5a5c9d(0x33a)]))[_0x5a5c9d(0x460)](_0x4ec351=>{const _0x3d4e5d=_0x5a5c9d;if(_0x4ec351==null)return;const {unitId:_0x53924f,redoState:_0x9dd56f,commandId:_0x197857}=_0x4ec351;if(_0x53924f!==this[_0x3d4e5d(0x1ca)])return;const _0xfc2020={'id':_0x197857,'type':_0x4dcc25['MUTATION'],'params':{'unitId':_0x53924f,'actions':_0x9dd56f[_0x3d4e5d(0x27c)],'textRanges':null}};this[_0x3d4e5d(0x29c)](_0xfc2020);}),_0x32c4ff;}};dt=Je([S(0x3,_0x558bc4(_0x4ead3f)),S(0x4,_0x558bc4(D)),S(0x5,_0x558bc4(_0x969bae)),S(0x6,_0x558bc4(_0x2f64f)),S(0x7,_0x558bc4(_0x353354)),S(0x8,_0x558bc4(_0x2a623e)),S(0x9,_0x558bc4(Be)),S(0xa,_0x558bc4(ke)),S(0xb,_0x558bc4(Mt)),S(0xc,_0x2125ae),S(0xd,_0x594d06),S(0xe,_0x367db8),S(0xf,_0x478858),S(0x10,_0x2cbf69(Xe))],dt);let ft=class extends We{constructor(_0x5543ad,_0x12509e,_0x3863cc,_0x27c4aa,_0x38e6a1,_0x3c4ae4,_0x1c36da,_0x4707a4,_0x1274d6,_0x5d31e4,_0x18fc3e,_0x15b6ff,_0x230ecc,_0x1a0dd0){const _0x117143=_0x29c6a6;super(_0x5543ad,_0x12509e,_0x3863cc,_0x27c4aa,_0x38e6a1,_0x3c4ae4,_0x1c36da,_0x4707a4,_0x5d31e4,_0x18fc3e,_0x15b6ff,_0x230ecc,_0x1a0dd0),this['unitID']=_0x5543ad,this[_0x117143(0x236)]=_0x12509e,this['session']=_0x3863cc,this[_0x117143(0x4aa)]=_0x1274d6;}['_createHandler'](){const _0x456c09=_0x29c6a6,_0x572c8a=super[_0x456c09(0x2f3)]();return _0x572c8a['onTransformSelections']=_0x161b93=>this[_0x456c09(0x4aa)][_0x456c09(0x21d)](_0x161b93),_0x572c8a;}async[_0x29c6a6(0x26f)](){const _0x2a6561=_0x29c6a6,_0x52c3cb=await super[_0x2a6561(0x26f)]();return this[_0x2a6561(0x1fb)](this['_commandService'][_0x2a6561(0x41d)]((_0x19d790,_0xeb4de2)=>{const _0x4ac3a3=_0x2a6561;if(_0x19d790[_0x4ac3a3(0x236)]!==_0x4dcc25[_0x4ac3a3(0x414)]||_0xeb4de2!=null&&_0xeb4de2[_0x4ac3a3(0x1c6)]||_0xeb4de2!=null&&_0xeb4de2['onlyLocal'])return;const _0x32dd4c=_0x19d790['params'];if((_0x32dd4c==null?void 0x0:_0x32dd4c[_0x4ac3a3(0x458)])!==this['unitID'])return;const _0x41aa6d=_0x19d790,_0x20855f=this[_0x4ac3a3(0x4e1)][_0x4ac3a3(0x349)][_0x4ac3a3(0x465)](this[_0x4ac3a3(0x4e1)][_0x4ac3a3(0x349)][_0x4ac3a3(0x228)]()[_0x4ac3a3(0x258)])([_0x41aa6d],null)||[_0x41aa6d];this[_0x4ac3a3(0x29c)](_0x20855f[0x0]);})),_0x52c3cb;}};ft=Je([S(0x3,_0x558bc4(_0x4ead3f)),S(0x4,_0x558bc4(D)),S(0x5,_0x558bc4(_0x969bae)),S(0x6,_0x558bc4(_0x2f64f)),S(0x7,_0x558bc4(_0x353354)),S(0x8,_0x558bc4(Ve)),S(0x9,_0x2125ae),S(0xa,_0x594d06),S(0xb,_0x367db8),S(0xc,_0x478858),S(0xd,_0x2cbf69(Xe))],ft);const Zt=['purple300',_0x29c6a6(0x400),_0x29c6a6(0x453),'red300',_0x29c6a6(0x445),_0x29c6a6(0x2c6)];class At extends _0xc93720{constructor(){const _0x17961d=_0x29c6a6;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x17961d(0x3e3),0x0);}[_0x29c6a6(0x361)](_0x5a7d14){const _0x24f19f=_0x29c6a6;if(this[_0x24f19f(0x462)]['has'](_0x5a7d14))return this[_0x24f19f(0x462)]['get'](_0x5a7d14);const _0x1da129=Zt[this[_0x24f19f(0x3e3)]];return this['_colorIndex']=(this[_0x24f19f(0x3e3)]+0x1)%Zt[_0x24f19f(0x431)],this['_assignedColors'][_0x24f19f(0x320)](_0x5a7d14,_0x1da129),_0x1da129;}}var Wn=Object['defineProperty'],Gn=Object[_0x29c6a6(0x48e)],Yn=(_0x11b655,_0x397e71,_0x41396e,_0x2b3624)=>{for(var _0x128c46=_0x2b3624>0x1?void 0x0:_0x2b3624?Gn(_0x397e71,_0x41396e):_0x397e71,_0x154be2=_0x11b655['length']-0x1,_0x4ad1f7;_0x154be2>=0x0;_0x154be2--)(_0x4ad1f7=_0x11b655[_0x154be2])&&(_0x128c46=(_0x2b3624?_0x4ad1f7(_0x397e71,_0x41396e,_0x128c46):_0x4ad1f7(_0x128c46))||_0x128c46);return _0x2b3624&&_0x128c46&&Wn(_0x397e71,_0x41396e,_0x128c46),_0x128c46;},ae=(_0x4540aa,_0x3e2033)=>(_0xfde131,_0x29cf00)=>_0x3e2033(_0xfde131,_0x29cf00,_0x4540aa);const Kn=0x12c,Xn=0x64,Jn=()=>{let _0x591a21=[],_0x9df685=!0x1;return _0x2fb43a=>{const _0x557374=_0x34fd;_0x591a21[_0x557374(0x2f7)](_0x2fb43a),_0x9df685||(_0x9df685=!0x0,setTimeout(()=>{const _0x4d7e36=_0x557374;_0x591a21[_0x4d7e36(0x31b)](_0x46d5fd=>_0x46d5fd()),_0x591a21=[],_0x9df685=!0x1;}));};};let gt=class extends _0x39fd47{constructor(_0x4e398f,_0x47c2d5,_0x4a1908,_0x4fda1d,_0x2c43fe,_0x4dd092,_0x381345,_0x45d337){const _0x4143b5=_0x29c6a6;super(),l(this,_0x4143b5(0x488),!0x1),l(this,_0x4143b5(0x26f),!0x1),l(this,'_cursorInfo$',new _0x2ae6a5(new Map())),l(this,_0x4143b5(0x4ed),this[_0x4143b5(0x2d9)][_0x4143b5(0x4db)]()),l(this,'_roomMembers$',new _0x2ae6a5([])),l(this,_0x4143b5(0x30b),this['_roomMembers$'][_0x4143b5(0x4dc)](_0x3c2ea7(Kn))),l(this,_0x4143b5(0x351),_0x284565((_0x56059b,_0x2463b9)=>{const _0x3c0042=_0x4143b5,_0x10f091={'eventID':_0x5911b8['UPDATE_CURSOR'],'data':{'unitID':this[_0x3c0042(0x1ca)],'memberID':this[_0x3c0042(0x3a8)]['getMemberID'](),'selection':_0x2a0dc7(_0x56059b,_0x2463b9[_0x3c0042(0x307)])}};this['_session']['send'](_0x10f091,this[_0x3c0042(0x1ca)]);},Xn)),(this[_0x4143b5(0x1ca)]=_0x4e398f,this[_0x4143b5(0x3a8)]=_0x47c2d5,this[_0x4143b5(0x31f)]=_0x4a1908,this['_colorAssignService']=_0x4fda1d,this[_0x4143b5(0x23c)]=_0x2c43fe,this['_univerInstanceService']=_0x4dd092,this['_commandService']=_0x381345,this[_0x4143b5(0x48d)]=_0x45d337);}get['cursorInfo'](){const _0x3d291e=_0x29c6a6;return this[_0x3d291e(0x2d9)][_0x3d291e(0x3d5)]();}get[_0x29c6a6(0x284)](){const _0x1e7a8d=_0x29c6a6;return this[_0x1e7a8d(0x4da)]['getValue']();}['dispose'](){const _0x2ce58c=_0x29c6a6;super[_0x2ce58c(0x378)](),this[_0x2ce58c(0x2d9)][_0x2ce58c(0x3af)](new Map()),this[_0x2ce58c(0x2d9)][_0x2ce58c(0x2ed)](),this[_0x2ce58c(0x4da)][_0x2ce58c(0x3af)]([]),this[_0x2ce58c(0x4da)]['complete']();}[_0x29c6a6(0x23e)](){const _0x2e9ecf=_0x29c6a6;this[_0x2e9ecf(0x26f)]||(this['_init']=!0x0,this[_0x2e9ecf(0x3a8)][_0x2e9ecf(0x1cd)][_0x2e9ecf(0x4dc)](_0x26437e(this[_0x2e9ecf(0x33a)]))[_0x2e9ecf(0x460)](_0x5d01c3=>{const _0x26d0d8=_0x2e9ecf;_0x5d01c3===_e[_0x26d0d8(0x490)]?this[_0x26d0d8(0x3bf)]():this['_toggleOffline']();}),this['_session']['event$'][_0x2e9ecf(0x4dc)](_0x26437e(this[_0x2e9ecf(0x33a)]))[_0x2e9ecf(0x460)](_0x5e5395=>{const _0x16bdb1=_0x2e9ecf,_0x50be19=_0x5e5395[_0x16bdb1(0x2fa)];_0x50be19===_0x5911b8[_0x16bdb1(0x2aa)]&&this[_0x16bdb1(0x33f)](_0x5e5395),_0x50be19===_0x5911b8[_0x16bdb1(0x49c)]&&this['_onCursorDelete'](_0x5e5395);}),this[_0x2e9ecf(0x410)](),this['disposeWithMe'](this['_commandService'][_0x2e9ecf(0x41d)](_0x1ef98b=>{const _0x4ef11c=_0x2e9ecf;if(this[_0x4ef11c(0x488)]&&_0x1ef98b['id']===_0x57025f['id']&&_0x1ef98b[_0x4ef11c(0x3c7)][_0x4ef11c(0x458)]===this['unitID']){const _0x4f4e31=_0x1ef98b[_0x4ef11c(0x3c7)];this[_0x4ef11c(0x351)](_0x4f4e31['subUnitId'],_0x4f4e31[_0x4ef11c(0x1de)][0x0]);}})));}[_0x29c6a6(0x33f)](_0x278723){const _0x54403b=_0x29c6a6;var _0x11852e,_0x57d35b;const {memberID:_0x1e0931,selection:_0x571996}=_0x278723['data'],{sheetName:_0xeea95,range:_0x28e575}=_0x511cc9(_0x571996),_0x4ed93e={'name':(_0x57d35b=(_0x11852e=this[_0x54403b(0x23c)][_0x54403b(0x249)](this[_0x54403b(0x1ca)],_0x1e0931))==null?void 0x0:_0x11852e[_0x54403b(0x47b)])!=null?_0x57d35b:_0x54403b(0x33d),'range':this[_0x54403b(0x37a)](_0xeea95,_0x28e575),'sheetID':_0xeea95,'color':this[_0x54403b(0x4a8)]['assignAColorForMemberID'](_0x1e0931),'selection':_0x571996},_0x42ba35=this['cursorInfo'];_0x42ba35[_0x54403b(0x320)](_0x1e0931,_0x4ed93e),this[_0x54403b(0x2d9)][_0x54403b(0x3af)](_0x42ba35);}[_0x29c6a6(0x4b6)](_0x578221){const _0x5f0eb8=_0x29c6a6,{memberID:_0x42f9d8}=_0x578221[_0x5f0eb8(0x3f0)],_0x220d96=this['cursorInfo'];_0x220d96[_0x5f0eb8(0x457)](_0x42f9d8),this[_0x5f0eb8(0x2d9)][_0x5f0eb8(0x3af)](_0x220d96);}[_0x29c6a6(0x37a)](_0x9c552e,_0x2f6e5f){const _0x44e5fe=_0x29c6a6;var _0x122039,_0x5b2c7e;const _0x1e12a8=(_0x5b2c7e=(_0x122039=this[_0x44e5fe(0x49b)][_0x44e5fe(0x4dd)](this['unitID']))==null?void 0x0:_0x122039['getSheetBySheetId'](_0x9c552e))==null?void 0x0:_0x5b2c7e[_0x44e5fe(0x3d4)]();return(_0x1e12a8==null?void 0x0:_0x1e12a8[_0x44e5fe(0x1f5)](_0x1c058e=>_0x35b9e8[_0x44e5fe(0x1e3)](_0x1c058e,_0x2f6e5f)))||_0x2f6e5f;}['_onRefRangeChange'](){const _0x4c751c=_0x29c6a6,_0x5d0015=new _0x3543bd(),_0x22ad4e=Jn(),_0x3fe58d=()=>{const _0xa2496c=_0x34fd;_0x5d0015[_0xa2496c(0x378)]();const _0x17cbf7=(_0x10b831,_0x1e3765,_0x2fd858,_0x3d5839)=>{const _0x1575f7=_0xa2496c;let _0x3e50d1=[];switch(_0x10b831['id']){case _0x2d6399[_0x1575f7(0x2c1)]:{_0x3e50d1=_0x23fee4(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x383)]:{_0x3e50d1=_0x5b7d4a(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x22c)]:{_0x3e50d1=_0x180534(_0x10b831,_0x3d5839);break;}case _0x2d6399['InsertRangeMoveDownCommandId']:{_0x3e50d1=_0x5d05d0(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x3da)]:{_0x3e50d1=_0x3c5fe4(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x238)]:{_0x3e50d1=_0x5152e3(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x37f)]:{_0x3e50d1=_0x49f706(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x28f)]:{_0x3e50d1=_0x5357dc(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x27f)]:{_0x3e50d1=_0x508fe0(_0x10b831,_0x3d5839);break;}}const _0xb92f58=_0x1f0979(_0x3e50d1,_0x3d5839),_0x354913=this['cursorInfo'][_0x1575f7(0x362)](_0x1e3765);if(_0x354913&&_0xb92f58){const _0x9a06a3={..._0x354913,'range':_0xb92f58};this['cursorInfo'][_0x1575f7(0x320)](_0x1e3765,_0x9a06a3),_0x22ad4e(()=>{const _0x1ceb00=_0x1575f7,_0x35e889=this['_refRangeService'][_0x1ceb00(0x2b0)](_0xb92f58,_0x141a53=>(_0x35e889[_0x1ceb00(0x378)](),_0x17cbf7(_0x141a53,_0x1e3765,_0x2fd858,_0xb92f58)));_0x5d0015[_0x1ceb00(0x497)](_0x35e889);});}return{'redos':[],'undos':[]};};this[_0xa2496c(0x235)][_0xa2496c(0x31b)]((_0x4041c6,_0x4d7e83)=>{const _0x2b98a9=_0xa2496c,{range:_0x5bc296,sheetID:_0x4094c3}=_0x4041c6,_0x1f130a=this[_0x2b98a9(0x48d)][_0x2b98a9(0x2b0)](_0x5bc296,_0x143656=>(_0x1f130a[_0x2b98a9(0x378)](),_0x17cbf7(_0x143656,_0x4d7e83,_0x4094c3,_0x5bc296)));_0x5d0015[_0x2b98a9(0x497)](_0x1f130a);});};this['disposeWithMe'](_0x359428(this[_0x4c751c(0x2d9)]['subscribe'](()=>{_0x3fe58d();})));}[_0x29c6a6(0x3bf)](){const _0x24235e=_0x29c6a6;var _0x1b4137,_0x481608;if(this['_online']=!0x0,((_0x1b4137=this['_univerInstanceService'][_0x24235e(0x2e1)]())==null?void 0x0:_0x1b4137[_0x24235e(0x38d)]())!==this['unitID'])return;const _0x2e46e6=(_0x481608=this[_0x24235e(0x31f)][_0x24235e(0x362)](_0x543329)['getSelections']())==null?void 0x0:_0x481608[0x0],_0x4f1908=this[_0x24235e(0x49b)][_0x24235e(0x4ec)](_0x17600d[_0x24235e(0x3b4)])[_0x24235e(0x36e)]();_0x2e46e6&&_0x4f1908&&this[_0x24235e(0x351)](_0x4f1908[_0x24235e(0x2bb)](),_0x2e46e6);}['_toggleOffline'](){const _0x6c5109=_0x29c6a6;this[_0x6c5109(0x488)]=!0x1;}};gt=Yn([ae(0x2,_0x558bc4(_0x4ead3f)),ae(0x3,_0x558bc4(At)),ae(0x4,_0x558bc4(ee)),ae(0x5,_0x33e391),ae(0x6,_0x594d06),ae(0x7,_0x558bc4(_0x5e51b6))],gt);var zn=Object[_0x29c6a6(0x3f3)],Zn=Object[_0x29c6a6(0x48e)],qn=(_0x46bfa5,_0x15c13a,_0x38a7dd,_0x437464)=>{const _0x2cd8d4=_0x29c6a6;for(var _0x536f83=_0x437464>0x1?void 0x0:_0x437464?Zn(_0x15c13a,_0x38a7dd):_0x15c13a,_0x4477c3=_0x46bfa5[_0x2cd8d4(0x431)]-0x1,_0x2542da;_0x4477c3>=0x0;_0x4477c3--)(_0x2542da=_0x46bfa5[_0x4477c3])&&(_0x536f83=(_0x437464?_0x2542da(_0x15c13a,_0x38a7dd,_0x536f83):_0x2542da(_0x536f83))||_0x536f83);return _0x437464&&_0x536f83&&zn(_0x15c13a,_0x38a7dd,_0x536f83),_0x536f83;},q=(_0x115bcf,_0x5c7d7d)=>(_0x369829,_0x2798de)=>_0x5c7d7d(_0x369829,_0x2798de,_0x115bcf);const Qn=0x12c,er=0x64;let mt=class extends _0x39fd47{constructor(_0x4ff57b,_0x48a0be,_0x42e897,_0x2aa41e,_0x10d3f3,_0x5623ed,_0x1123f0,_0x13823d,_0x522d58){const _0x283a7d=_0x29c6a6;super(),l(this,'_online',!0x1),l(this,_0x283a7d(0x26f),!0x1),l(this,'_cursorInfo$',new _0x2ae6a5(new Map())),l(this,_0x283a7d(0x4ed),this['_cursorInfo$']['asObservable']()),l(this,_0x283a7d(0x4da),new _0x2ae6a5([])),l(this,_0x283a7d(0x30b),this[_0x283a7d(0x4da)][_0x283a7d(0x4dc)](_0x3c2ea7(Qn))),l(this,_0x283a7d(0x351),_0x284565(_0x306860=>{const _0x556c41=_0x283a7d,_0x31c7ed={'eventID':_0x5911b8[_0x556c41(0x2aa)],'data':{'unitID':this[_0x556c41(0x1ca)],'memberID':this[_0x556c41(0x3a8)][_0x556c41(0x48c)](),'selection':Ds(_0x306860)}};this[_0x556c41(0x3a8)][_0x556c41(0x293)](_0x31c7ed,this[_0x556c41(0x1ca)]);},er)),(this[_0x283a7d(0x1ca)]=_0x4ff57b,this[_0x283a7d(0x3a8)]=_0x48a0be,this[_0x283a7d(0x31f)]=_0x42e897,this[_0x283a7d(0x4a8)]=_0x2aa41e,this[_0x283a7d(0x23c)]=_0x10d3f3,this[_0x283a7d(0x421)]=_0x5623ed,this[_0x283a7d(0x367)]=_0x1123f0,this[_0x283a7d(0x49b)]=_0x13823d,this[_0x283a7d(0x3d7)]=_0x522d58);}get['cursorInfo'](){const _0x474e77=_0x29c6a6;return this[_0x474e77(0x2d9)][_0x474e77(0x3d5)]();}get[_0x29c6a6(0x284)](){const _0x1b4522=_0x29c6a6;return this[_0x1b4522(0x4da)][_0x1b4522(0x3d5)]();}['dispose'](){const _0x4714fb=_0x29c6a6;super[_0x4714fb(0x378)](),this[_0x4714fb(0x2d9)][_0x4714fb(0x3af)](new Map()),this[_0x4714fb(0x2d9)][_0x4714fb(0x2ed)](),this[_0x4714fb(0x4da)][_0x4714fb(0x3af)]([]),this[_0x4714fb(0x4da)][_0x4714fb(0x2ed)]();}[_0x29c6a6(0x23e)](){const _0x2bb3ce=_0x29c6a6;this['_init']||(this[_0x2bb3ce(0x26f)]=!0x0,this[_0x2bb3ce(0x3a8)][_0x2bb3ce(0x1cd)]['pipe'](_0x26437e(this[_0x2bb3ce(0x33a)]))[_0x2bb3ce(0x460)](_0x24cd1f=>{const _0x238b8d=_0x2bb3ce;_0x24cd1f===_e[_0x238b8d(0x490)]?this[_0x238b8d(0x3bf)]():this[_0x238b8d(0x1f4)]();}),this[_0x2bb3ce(0x3a8)]['event$']['pipe'](_0x26437e(this[_0x2bb3ce(0x33a)]))['subscribe'](_0x1434b5=>{const _0x5a6c88=_0x2bb3ce,_0x5c5da2=_0x1434b5[_0x5a6c88(0x2fa)];_0x5c5da2===_0x5911b8[_0x5a6c88(0x2aa)]&&this[_0x5a6c88(0x33f)](_0x1434b5),_0x5c5da2===_0x5911b8[_0x5a6c88(0x49c)]&&this[_0x5a6c88(0x4b6)](_0x1434b5);}),this[_0x2bb3ce(0x1fb)](this[_0x2bb3ce(0x3d7)][_0x2bb3ce(0x41d)](_0x4e7a3a=>{const _0x56e5f4=_0x2bb3ce,_0x39860e=_0x4e7a3a[_0x56e5f4(0x3c7)];_0x39860e!=null&&this[_0x56e5f4(0x488)]&&_0x4e7a3a['id']===_0x3476b3['id']&&_0x39860e[_0x56e5f4(0x458)]===this['unitID']&&_0x39860e[_0x56e5f4(0x2da)]===!0x1&&this[_0x56e5f4(0x351)](_0x39860e[_0x56e5f4(0x278)]);})),this[_0x2bb3ce(0x421)][_0x2bb3ce(0x344)]['pipe'](_0x26437e(this[_0x2bb3ce(0x33a)]))[_0x2bb3ce(0x460)](_0x271cca=>{const _0x1d7634=_0x2bb3ce;if((_0x271cca==null?void 0x0:_0x271cca['unitID'])!==this[_0x1d7634(0x1ca)])return;const _0x2c4f51={'eventID':_0x5911b8[_0x1d7634(0x2aa)],'data':_0x271cca};this['_onCursorUpdate'](_0x2c4f51);}),this[_0x2bb3ce(0x1fb)](this[_0x2bb3ce(0x3d7)][_0x2bb3ce(0x41d)](_0x9f3492=>{const _0x6c4881=_0x2bb3ce;if(_0x9f3492[_0x6c4881(0x3c7)]==null)return;const _0x558bd3=_0x9f3492[_0x6c4881(0x3c7)];if(_0x9f3492['id']!==_0x4f4c8f['id']||_0x558bd3[_0x6c4881(0x458)]!==this[_0x6c4881(0x1ca)])return;const _0x2ce950={'id':'doc.mutation.rich-text-editing','params':_0x558bd3},_0x3b785d=this[_0x6c4881(0x235)];for(const [_0x459093,_0x46df9f]of _0x3b785d){const _0x431bcc={'id':_0x6c4881(0x464),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x46df9f[_0x6c4881(0x278)]}},_0x27456d=this[_0x6c4881(0x367)][_0x6c4881(0x40f)](_0x2ce950,_0x431bcc,!0x1);if(_0x42961a(_0x27456d))throw _0x27456d['error'];_0x3b785d[_0x6c4881(0x320)](_0x459093,{..._0x46df9f,'ranges':_0x27456d['m2Prime'][_0x6c4881(0x3c7)][_0x6c4881(0x224)]});}queueMicrotask(()=>{const _0x471f30=_0x6c4881;this[_0x471f30(0x2d9)][_0x471f30(0x3af)](_0x3b785d);});})));}[_0x29c6a6(0x33f)](_0x3925b7){const _0x5ab002=_0x29c6a6;var _0xab636e,_0x1e5eca;const {memberID:_0x39fab5,selection:_0x1cbd3b}=_0x3925b7[_0x5ab002(0x3f0)],_0x2e79d3=yn(_0x1cbd3b),_0xe430c=(_0x1e5eca=(_0xab636e=this[_0x5ab002(0x23c)][_0x5ab002(0x249)](this[_0x5ab002(0x1ca)],_0x39fab5))==null?void 0x0:_0xab636e[_0x5ab002(0x47b)])!=null?_0x1e5eca:_0x5ab002(0x33d),_0x3f7f9f={'color':this['_colorAssignService'][_0x5ab002(0x361)](_0x39fab5),'name':_0xe430c,'ranges':_0x2e79d3},_0xfcc77d=this[_0x5ab002(0x235)];_0xfcc77d[_0x5ab002(0x320)](_0x39fab5,_0x3f7f9f),this[_0x5ab002(0x2d9)]['next'](_0xfcc77d);}[_0x29c6a6(0x4b6)](_0x3f43c4){const _0x546373=_0x29c6a6,{memberID:_0x5bc3be}=_0x3f43c4[_0x546373(0x3f0)],_0x43b9ca=this['cursorInfo'];_0x43b9ca['delete'](_0x5bc3be),this[_0x546373(0x2d9)][_0x546373(0x3af)](_0x43b9ca);}['_toggleOnline'](){const _0xa4d0e4=_0x29c6a6;var _0x8ed251;if(this[_0xa4d0e4(0x488)]=!0x0,((_0x8ed251=this['_univerInstanceService'][_0xa4d0e4(0x2e1)]())==null?void 0x0:_0x8ed251[_0xa4d0e4(0x38d)]())!==this['unitID'])return;const _0x3bc7d0=this[_0xa4d0e4(0x31f)][_0xa4d0e4(0x362)](_0x4c35a6)[_0xa4d0e4(0x305)](),_0x28f1b0=_0x3bc7d0==null?void 0x0:_0x3bc7d0['map'](_0x547357);Array['isArray'](_0x28f1b0)&&_0x28f1b0[_0xa4d0e4(0x431)]>0x0&&this[_0xa4d0e4(0x351)](_0x28f1b0);}[_0x29c6a6(0x1f4)](){this['_online']=!0x1;}};mt=qn([q(0x2,_0x558bc4(_0x4ead3f)),q(0x3,_0x558bc4(At)),q(0x4,_0x558bc4(ee)),q(0x5,_0x558bc4(Mt)),q(0x6,_0xd13d4c),q(0x7,_0x33e391),q(0x8,_0x594d06)],mt);var tr=Object[_0x29c6a6(0x3f3)],sr=Object['getOwnPropertyDescriptor'],ir=(_0x5ad03d,_0x217e25,_0x360d38,_0x930ed5)=>{const _0x7dae8a=_0x29c6a6;for(var _0x1af1ae=_0x930ed5>0x1?void 0x0:_0x930ed5?sr(_0x217e25,_0x360d38):_0x217e25,_0x3f36ba=_0x5ad03d[_0x7dae8a(0x431)]-0x1,_0x20c442;_0x3f36ba>=0x0;_0x3f36ba--)(_0x20c442=_0x5ad03d[_0x3f36ba])&&(_0x1af1ae=(_0x930ed5?_0x20c442(_0x217e25,_0x360d38,_0x1af1ae):_0x20c442(_0x1af1ae))||_0x1af1ae);return _0x930ed5&&_0x1af1ae&&tr(_0x217e25,_0x360d38,_0x1af1ae),_0x1af1ae;},st=(_0x300cd5,_0x296cf7)=>(_0x1e011a,_0x2d501d)=>_0x296cf7(_0x1e011a,_0x2d501d,_0x300cd5);let ue=class extends _0x39fd47{constructor(_0x1c34f0,_0x578a1c,_0x18251c){const _0x21bd3b=_0x29c6a6;super(),l(this,'_entities',new Map()),l(this,_0x21bd3b(0x270),new _0x2ef673()),(this[_0x21bd3b(0x49b)]=_0x1c34f0,this['_injector']=_0x578a1c,this[_0x21bd3b(0x266)]=_0x18251c,this['_init']());}['dispose'](){const _0x4f0982=_0x29c6a6;super['dispose'](),this[_0x4f0982(0x270)]['complete'](),this[_0x4f0982(0x4d9)][_0x4f0982(0x31b)](_0xba75d8=>_0xba75d8[_0x4f0982(0x378)]());}[_0x29c6a6(0x1ed)](_0x17464d){const _0x1a00e5=_0x29c6a6;return this[_0x1a00e5(0x4d9)][_0x1a00e5(0x46f)](_0x17464d)?this[_0x1a00e5(0x4d9)][_0x1a00e5(0x362)](_0x17464d)[_0x1a00e5(0x4ed)]:this[_0x1a00e5(0x270)][_0x1a00e5(0x4dc)](_0x4b51e3(_0x556464=>_0x556464[_0x1a00e5(0x1ca)]===_0x17464d),_0x3931dc(_0x484a01=>_0x484a01[_0x1a00e5(0x4ed)]));}[_0x29c6a6(0x26f)](){const _0x236b32=_0x29c6a6;this[_0x236b32(0x49b)][_0x236b32(0x1f7)](_0x17600d['UNIVER_SHEET'])[_0x236b32(0x4dc)](_0x26437e(this[_0x236b32(0x33a)]))['subscribe'](async _0x31d238=>{const _0x479c27=_0x236b32,_0x305c29=_0x31d238[_0x479c27(0x38d)](),_0x33e06d=await this[_0x479c27(0x274)](_0x305c29);this[_0x479c27(0x270)][_0x479c27(0x3af)](_0x33e06d),this[_0x479c27(0x4d9)][_0x479c27(0x320)](_0x305c29,_0x33e06d);}),this[_0x236b32(0x49b)][_0x236b32(0x1f7)](_0x17600d['UNIVER_DOC'])['pipe'](_0x26437e(this[_0x236b32(0x33a)]))[_0x236b32(0x4dc)](_0x4b51e3(_0x1293f1=>!_0x1293f1[_0x236b32(0x38d)]()['startsWith']('__')))[_0x236b32(0x460)](async _0x5e6b61=>{const _0x565a0f=_0x236b32,_0x389274=_0x5e6b61[_0x565a0f(0x38d)](),_0x32aafa=await this[_0x565a0f(0x35d)](_0x389274);this[_0x565a0f(0x270)][_0x565a0f(0x3af)](_0x32aafa),this[_0x565a0f(0x4d9)][_0x565a0f(0x320)](_0x389274,_0x32aafa);}),_0x2e2fc7(this[_0x236b32(0x49b)][_0x236b32(0x4d1)](_0x17600d[_0x236b32(0x3f2)]),this[_0x236b32(0x49b)][_0x236b32(0x4d1)](_0x17600d[_0x236b32(0x3b4)]))[_0x236b32(0x4dc)](_0x26437e(this['dispose$']))[_0x236b32(0x460)](_0x445b45=>{const _0x8393a=_0x236b32,_0x5d1130=_0x445b45[_0x8393a(0x38d)](),_0x27f69c=this[_0x8393a(0x4d9)]['get'](_0x5d1130);_0x27f69c&&(_0x27f69c[_0x8393a(0x378)](),this['_entities'][_0x8393a(0x457)](_0x5d1130));});}async[_0x29c6a6(0x274)](_0x48174b){const _0x191d1d=_0x29c6a6,_0x5613b5=await this[_0x191d1d(0x266)][_0x191d1d(0x4e6)](_0x48174b),_0x25239a=this['_injector'][_0x191d1d(0x43a)](gt,_0x48174b,_0x5613b5);return _0x25239a[_0x191d1d(0x23e)](),_0x25239a;}async['_startDocCollabCursor'](_0x4e4695){const _0x47b652=_0x29c6a6,_0x173281=await this[_0x47b652(0x266)][_0x47b652(0x4e6)](_0x4e4695),_0x6980f3=this[_0x47b652(0x31f)][_0x47b652(0x43a)](mt,_0x4e4695,_0x173281);return _0x6980f3['init'](),_0x6980f3;}};ue=ir([_0x2d1123(_0xb39fe5[_0x29c6a6(0x4bc)],ue),st(0x0,_0x33e391),st(0x1,_0x558bc4(_0x4ead3f)),st(0x2,_0x558bc4(Re))],ue);const Oe=0x14,qt=0xc8,it=0x4,nr=0x5;function rr(_0x2be93e,_0x419412){const _0x1c69e7=_0x29c6a6;let {radius:_0x1e587a,width:_0xbaa34e,height:_0xe48f09}=_0x419412;_0x1e587a=_0x1e587a!=null?_0x1e587a:0x0,_0xbaa34e=_0xbaa34e!=null?_0xbaa34e:0x1e,_0xe48f09=_0xe48f09!=null?_0xe48f09:0x1e;let _0x194361=0x0,_0x583221=0x0,_0xb38475=0x0;_0x194361=_0x583221=_0xb38475=Math[_0x1c69e7(0x2b8)](_0x1e587a,_0xbaa34e/0x2,_0xe48f09/0x2),_0x2be93e[_0x1c69e7(0x49e)](),_0x2be93e[_0x1c69e7(0x29a)](_0x194361,0x0),_0x2be93e[_0x1c69e7(0x3e4)](_0xbaa34e-_0x583221,0x0),_0x2be93e[_0x1c69e7(0x42a)](_0xbaa34e-_0x583221,_0x583221,_0x583221,Math['PI']*0x3/0x2,0x0,!0x1),_0x2be93e['lineTo'](_0xbaa34e,_0xe48f09-_0xb38475),_0x2be93e['arc'](_0xbaa34e-_0xb38475,_0xe48f09-_0xb38475,_0xb38475,0x0,Math['PI']/0x2,!0x1),_0x2be93e[_0x1c69e7(0x3e4)](0x0,_0xe48f09),_0x2be93e[_0x1c69e7(0x3e4)](0x0,_0x194361),_0x2be93e[_0x1c69e7(0x42a)](_0x194361,_0x194361,_0x194361,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2be93e[_0x1c69e7(0x273)](),_0x419412[_0x1c69e7(0x2d5)]&&(_0x2be93e[_0x1c69e7(0x2a8)](),_0x2be93e[_0x1c69e7(0x2d7)]=_0x419412[_0x1c69e7(0x2d5)],_0x419412['fillRule']===_0x1c69e7(0x3dd)?_0x2be93e[_0x1c69e7(0x2d5)]('evenodd'):_0x2be93e[_0x1c69e7(0x2d5)](),_0x2be93e[_0x1c69e7(0x471)]());}class ze extends _0x169d33{constructor(_0x1cd545,_0x4d16a5){const _0x2dbf3a=_0x29c6a6;super(_0x1cd545,_0x4d16a5),l(this,_0x2dbf3a(0x241)),l(this,_0x2dbf3a(0x21f)),(this['color']=_0x4d16a5==null?void 0x0:_0x4d16a5[_0x2dbf3a(0x241)],this[_0x2dbf3a(0x21f)]=_0x4d16a5==null?void 0x0:_0x4d16a5[_0x2dbf3a(0x21f)]);}static[_0x29c6a6(0x1fc)](_0x126dfb,_0x19f015){const _0x18e827=_0x29c6a6,{text:_0xd1d6d,color:_0x1cb3a5}=_0x19f015;_0x126dfb[_0x18e827(0x2a8)](),_0x126dfb[_0x18e827(0x26a)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x42b74d=_0x126dfb[_0x18e827(0x3ae)](_0xd1d6d)[_0x18e827(0x30f)],_0x151e99=Math[_0x18e827(0x2b8)](_0x42b74d+0x2*it,qt);rr(_0x126dfb,{'height':Oe,'radius':0x4,'width':_0x151e99,'fill':_0x1cb3a5,'evented':!0x1}),_0x126dfb[_0x18e827(0x2d7)]='#FFF';const _0x39b962=it,_0x3cef3a=Oe-nr,_0x2c0388=qt-0x2*it;if(_0x42b74d>_0x2c0388){let _0x1f44f8='',_0x57c41d=0x0;for(const _0x5e031a of _0xd1d6d){const _0x271a82=_0x126dfb['measureText'](_0x5e031a)['width'];if(_0x57c41d+_0x271a82<=_0x2c0388-_0x126dfb[_0x18e827(0x3ae)](_0x18e827(0x413))[_0x18e827(0x30f)])_0x1f44f8+=_0x5e031a,_0x57c41d+=_0x271a82;else{_0x1f44f8+='...';break;}}_0x126dfb[_0x18e827(0x21e)](_0x1f44f8,_0x39b962,_0x3cef3a);}else _0x126dfb[_0x18e827(0x21e)](_0xd1d6d,_0x39b962,_0x3cef3a);_0x126dfb[_0x18e827(0x471)]();}[_0x29c6a6(0x234)](_0x2d5362){const _0x3ae764=_0x29c6a6;ze[_0x3ae764(0x1fc)](_0x2d5362,this);}}const or=0x1,ar=1.5;class cr extends _0x169d33{constructor(_0xac895e,_0x52608a){const _0x46ae3a=_0x29c6a6;super(_0xac895e,_0x52608a),l(this,_0x46ae3a(0x412)),l(this,_0x46ae3a(0x289),!0x1),l(this,_0x46ae3a(0x212)),l(this,'_name',''),l(this,'_labelPosition','top'),(_0x52608a&&this[_0x46ae3a(0x347)](_0x52608a),this[_0x46ae3a(0x2ad)][_0x46ae3a(0x4af)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x46ae3a(0x331)][_0x46ae3a(0x4af)](()=>this[_0x46ae3a(0x347)]({'hovered':!0x1})));}[_0x29c6a6(0x347)](_0x491898){const _0x17b9e4=_0x29c6a6;var _0x17b619,_0x50be45,_0x3b6154,_0x254d44,_0x5796db;this[_0x17b9e4(0x412)]=(_0x17b619=_0x491898[_0x17b9e4(0x241)])!=null?_0x17b619:this['_color'],this['_hovered']=(_0x50be45=_0x491898[_0x17b9e4(0x372)])!=null?_0x50be45:this['_hovered'],this[_0x17b9e4(0x212)]=(_0x3b6154=_0x491898[_0x17b9e4(0x307)])!=null?_0x3b6154:this[_0x17b9e4(0x212)],this['_name']=(_0x254d44=_0x491898[_0x17b9e4(0x47b)])!=null?_0x254d44:this[_0x17b9e4(0x26e)],this[_0x17b9e4(0x1f8)]=(_0x5796db=_0x491898[_0x17b9e4(0x41f)])!=null?_0x5796db:this['_labelPosition'],this[_0x17b9e4(0x354)]({'width':_0x491898['width'],'height':_0x491898[_0x17b9e4(0x2b5)]});}[_0x29c6a6(0x3a2)](_0x38aa6c){const _0x27ad6d=_0x29c6a6,{row:_0x5a9e8d,column:_0x2b3f42}=_0x38aa6c;if(_0x5a9e8d>=this[_0x27ad6d(0x212)]['startRow']&&_0x5a9e8d<=this[_0x27ad6d(0x212)]['endRow']&&_0x2b3f42>=this[_0x27ad6d(0x212)][_0x27ad6d(0x3e9)]&&_0x2b3f42<=this[_0x27ad6d(0x212)][_0x27ad6d(0x46c)]){this[_0x27ad6d(0x347)]({'hovered':!0x0});return;}this[_0x27ad6d(0x347)]({'hovered':!0x1});}[_0x29c6a6(0x338)](_0x33c463){return!0x1;}[_0x29c6a6(0x234)](_0xcbe54b){const _0x4e74b6=_0x29c6a6;_0x274a4d[_0x4e74b6(0x1fc)](_0xcbe54b,{'width':this[_0x4e74b6(0x30f)],'height':this[_0x4e74b6(0x2b5)],'strokeWidth':ar,'stroke':this[_0x4e74b6(0x412)],'evented':!0x1}),this[_0x4e74b6(0x289)]&&(_0xcbe54b['save'](),_0xcbe54b[_0x4e74b6(0x352)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x4e74b6(0x4a0)?0x0:-Oe),ze[_0x4e74b6(0x1fc)](_0xcbe54b,{'text':this[_0x4e74b6(0x26e)],'color':this['_color']}),_0xcbe54b[_0x4e74b6(0x471)]());}}var hr=Object[_0x29c6a6(0x3f3)],lr=Object[_0x29c6a6(0x48e)],_r=(_0x4bd48c,_0x3b12d0,_0x2b593c,_0x3b1b17)=>{const _0x46f79a=_0x29c6a6;for(var _0x312c0a=_0x3b1b17>0x1?void 0x0:_0x3b1b17?lr(_0x3b12d0,_0x2b593c):_0x3b12d0,_0x4511fc=_0x4bd48c[_0x46f79a(0x431)]-0x1,_0x3acda1;_0x4511fc>=0x0;_0x4511fc--)(_0x3acda1=_0x4bd48c[_0x4511fc])&&(_0x312c0a=(_0x3b1b17?_0x3acda1(_0x3b12d0,_0x2b593c,_0x312c0a):_0x3acda1(_0x312c0a))||_0x312c0a);return _0x3b1b17&&_0x312c0a&&hr(_0x3b12d0,_0x2b593c,_0x312c0a),_0x312c0a;},Me=(_0x228eaa,_0x51ee05)=>(_0x197b74,_0x472c02)=>_0x51ee05(_0x197b74,_0x472c02,_0x228eaa);const ur=0x1389;let $e=class extends _0x39fd47{constructor(_0x434a52,_0x15b3f3,_0x26eb4d,_0xf7f709){const _0x10113b=_0x29c6a6;super(),l(this,'_cursors',new Set()),l(this,_0x10113b(0x2df),null),(this[_0x10113b(0x2bf)]=_0x434a52,this[_0x10113b(0x49b)]=_0x15b3f3,this[_0x10113b(0x3d3)]=_0x26eb4d,this[_0x10113b(0x44e)]=_0xf7f709,this[_0x10113b(0x26f)]());}get['_sheetSkeletonManagerService'](){const _0xc6660f=_0x29c6a6;return this['_renderManagerService']['getRenderById'](this[_0xc6660f(0x49b)]['getCurrentUnitForType'](_0x17600d[_0xc6660f(0x3b4)])[_0xc6660f(0x38d)]())[_0xc6660f(0x294)](_0x53c5c9);}get['_unitId'](){const _0x41c87f=_0x29c6a6;return this[_0x41c87f(0x49b)][_0x41c87f(0x4ec)](_0x17600d[_0x41c87f(0x3b4)])[_0x41c87f(0x38d)]();}[_0x29c6a6(0x26f)](){const _0xa844be=_0x29c6a6;this[_0xa844be(0x283)][_0xa844be(0x3d0)][_0xa844be(0x4dc)](_0x380119(this[_0xa844be(0x33a)]),_0x5e300c(_0x5115a1=>{const _0x2fff45=_0xa844be;if(_0x5115a1){const _0x3aa3f3=_0x5115a1[_0x2fff45(0x389)];return _0x45bbb6(this[_0x2fff45(0x2bf)][_0x2fff45(0x1ed)](this[_0x2fff45(0x325)]),this[_0x2fff45(0x44e)]['currentTheme$'])['pipe'](_0x6aec6c(([_0x75a2fb,_0x31a921])=>{const _0x547905=_0x2fff45,_0x5797eb=new Map();return _0x75a2fb[_0x547905(0x31b)]((_0x48e840,_0x5a1d0a)=>{const _0x5b92c5=_0x547905;if(_0x48e840[_0x5b92c5(0x44a)]===_0x3aa3f3){const _0x47f0ab={..._0x48e840};_0x47f0ab[_0x5b92c5(0x241)]=_0x31a921[_0x48e840['color']],_0x5797eb[_0x5b92c5(0x320)](_0x5a1d0a,_0x47f0ab);}}),{'skeleton':_0x5115a1,'cursors':_0x5797eb};}));}return _0x41c67f({'skeleton':null,'cursors':new Map()});}))[_0xa844be(0x460)](({skeleton:_0x53bc63,cursors:_0x2369b0})=>{const _0x131f40=_0xa844be;this[_0x131f40(0x377)](),_0x53bc63&&this[_0x131f40(0x45c)](_0x53bc63,_0x2369b0);}),this['_sheetSkeletonManagerService'][_0xa844be(0x3d0)]['subscribe'](_0x493514=>{const _0x5d25a0=_0xa844be;if(_0x493514==null)return;const {skeleton:_0x2db08a}=_0x493514,_0x21c62f=this['_renderManagerService'][_0x5d25a0(0x481)](this[_0x5d25a0(0x325)]),{scene:_0x3aead6}=_0x21c62f;_0x3aead6['onPointerMove$']['subscribeEvent'](_0x284565(_0x1bfa9a=>{const _0x1ec8db=_0x5d25a0;var _0x2fa049,_0x490dcd;const {offsetX:_0x595735,offsetY:_0x4769dc}=_0x1bfa9a,{x:_0x28aa71,y:_0x528616}=_0x3aead6[_0x1ec8db(0x3b6)](_0x27c809['FromArray']([_0x595735,_0x4769dc])),{scaleX:_0x5aea51,scaleY:_0x15df8a}=_0x3aead6[_0x1ec8db(0x244)](),_0x165360=_0x3aead6[_0x1ec8db(0x37e)](_0x594710[_0x1ec8db(0x213)]),_0xc6b0b1=_0x3aead6[_0x1ec8db(0x470)](_0x27c809[_0x1ec8db(0x2ca)]([_0x28aa71,_0x528616]),_0x165360),_0x1f708f=_0x2db08a[_0x1ec8db(0x353)](_0x595735,_0x4769dc,_0x5aea51,_0x15df8a,_0xc6b0b1);((_0x2fa049=this[_0x1ec8db(0x2df)])==null?void 0x0:_0x2fa049[_0x1ec8db(0x494)])===_0x1f708f[_0x1ec8db(0x494)]&&((_0x490dcd=this[_0x1ec8db(0x2df)])==null?void 0x0:_0x490dcd['row'])===_0x1f708f[_0x1ec8db(0x41c)]||this[_0x1ec8db(0x466)][_0x1ec8db(0x31b)](_0x49b3f8=>{const _0xe1d02c=_0x1ec8db;_0x49b3f8[_0xe1d02c(0x3a2)](_0x1f708f);});},0x64));});}[_0x29c6a6(0x45c)](_0x1a4661,_0x4b4ce5){const _0x17a1df=_0x29c6a6;var _0x4005c9;const _0x15425f=(_0x4005c9=this[_0x17a1df(0x283)][_0x17a1df(0x463)]())==null?void 0x0:_0x4005c9[_0x17a1df(0x1e8)];if(!_0x15425f)return;const _0x143dec=this['_getSheetObject']();if(!_0x143dec)return;this[_0x17a1df(0x466)]['forEach'](_0x29bc3b=>{_0x29bc3b['makeDirty']();});const {scene:_0x9961b8}=_0x143dec,_0x193b4d=dr(Array[_0x17a1df(0x4a3)](_0x4b4ce5[_0x17a1df(0x250)]()))[_0x17a1df(0x1f9)](_0x536193=>{const _0x38e614=_0x17a1df,{color:_0x44e990,range:_0x41b996,name:_0x446c76,selection:_0x2b2f12,sheetID:_0x409efb}=_0x536193,{startColumn:_0x1a5531,startRow:_0x1151c0,endColumn:_0x123394,endRow:_0x52da71}=_0x41b996,_0x306542=_0x53d697(_0x1151c0,_0x1a5531,_0x9961b8,_0x15425f),_0x292a47=_0x53d697(_0x52da71,_0x123394,_0x9961b8,_0x15425f),{columnHeaderHeightAndMarginTop:_0x56ae51}=_0x15425f,{startX:_0x12a882,startY:_0x5c1d13}=_0x306542,{endX:_0x1bb256,endY:_0x34773c}=_0x292a47,_0x18f512=_0x1bb256-_0x12a882,_0x2e038d=_0x34773c-_0x5c1d13,_0x1efb1a={'labelPosition':_0x5c1d13-_0x56ae51>=Oe?_0x38e614(0x405):_0x38e614(0x4a0),'sheetID':_0x409efb,'range':_0x41b996,'color':_0x44e990,'name':_0x446c76,'selection':_0x2b2f12,'left':_0x12a882,'top':_0x5c1d13,'width':_0x18f512,'height':_0x2e038d,'evented':!0x1,'zIndex':ur};return new cr(_0x446c76,_0x1efb1a);});_0x9961b8[_0x17a1df(0x288)](_0x193b4d,or),this[_0x17a1df(0x466)]=new Set(_0x193b4d);}[_0x29c6a6(0x377)](){const _0x4bb006=_0x29c6a6;var _0x39742e;(_0x39742e=this[_0x4bb006(0x466)])==null||_0x39742e[_0x4bb006(0x31b)](_0x559f76=>_0x559f76[_0x4bb006(0x378)]());}[_0x29c6a6(0x277)](){const _0x3a0d26=_0x29c6a6;return _0x2b1a41(this[_0x3a0d26(0x49b)],this[_0x3a0d26(0x3d3)]);}};$e=_r([_0x2d1123(_0xb39fe5[_0x29c6a6(0x222)],$e),Me(0x0,_0x558bc4(ue)),Me(0x1,_0x33e391),Me(0x2,_0x3bdd8b),Me(0x3,_0x558bc4(_0x474371))],$e);function dr(_0x128cf5){const _0x31be6e=_0x29c6a6,_0x588fb0=new Map();return _0x128cf5[_0x31be6e(0x31b)](_0x197a4a=>{const _0x2fecff=_0x31be6e;if(_0x588fb0['has'](_0x197a4a[_0x2fecff(0x2d2)])){const _0x3fd533=_0x588fb0['get'](_0x197a4a['selection']);_0x3fd533[_0x2fecff(0x47b)]+=',\x20'+_0x197a4a[_0x2fecff(0x47b)];}else _0x588fb0[_0x2fecff(0x320)](_0x197a4a[_0x2fecff(0x2d2)],_0x197a4a);}),Array[_0x31be6e(0x4a3)](_0x588fb0[_0x31be6e(0x250)]());}var A=function(){const _0x419404=_0x29c6a6;return A=Object[_0x419404(0x201)]||function(_0x564f6f){const _0x50e144=_0x419404;for(var _0x141e4d,_0x273355=0x1,_0x194902=arguments[_0x50e144(0x431)];_0x273355<_0x194902;_0x273355++){_0x141e4d=arguments[_0x273355];for(var _0x1562b0 in _0x141e4d)Object['prototype'][_0x50e144(0x3a9)][_0x50e144(0x4ef)](_0x141e4d,_0x1562b0)&&(_0x564f6f[_0x1562b0]=_0x141e4d[_0x1562b0]);}return _0x564f6f;},A['apply'](this,arguments);},fr=function(_0x33d4b6,_0x3efc38){const _0x7ef59d=_0x29c6a6;var _0x3d05ee={};for(var _0xb8ca15 in _0x33d4b6)Object[_0x7ef59d(0x2ab)][_0x7ef59d(0x3a9)]['call'](_0x33d4b6,_0xb8ca15)&&_0x3efc38[_0x7ef59d(0x251)](_0xb8ca15)<0x0&&(_0x3d05ee[_0xb8ca15]=_0x33d4b6[_0xb8ca15]);if(_0x33d4b6!=null&&typeof Object[_0x7ef59d(0x2f1)]==_0x7ef59d(0x46d)){for(var _0x4c041b=0x0,_0xb8ca15=Object[_0x7ef59d(0x2f1)](_0x33d4b6);_0x4c041b<_0xb8ca15[_0x7ef59d(0x431)];_0x4c041b++)_0x3efc38['indexOf'](_0xb8ca15[_0x4c041b])<0x0&&Object[_0x7ef59d(0x2ab)][_0x7ef59d(0x39c)][_0x7ef59d(0x4ef)](_0x33d4b6,_0xb8ca15[_0x4c041b])&&(_0x3d05ee[_0xb8ca15[_0x4c041b]]=_0x33d4b6[_0xb8ca15[_0x4c041b]]);}return _0x3d05ee;},yt=_0x45e47d(function(_0xd3a7f,_0xb0d6d6){const _0x33c3cc=_0x29c6a6;var _0x2e44c3=_0xd3a7f[_0x33c3cc(0x2a1)],_0x2a6eea=_0xd3a7f['id'],_0x592df7=_0xd3a7f[_0x33c3cc(0x3f4)],_0x275124=_0xd3a7f[_0x33c3cc(0x2b2)],_0x120f6c=fr(_0xd3a7f,[_0x33c3cc(0x2a1),'id',_0x33c3cc(0x3f4),_0x33c3cc(0x2b2)]),_0x4124e4=_0x33c3cc(0x4cb)['concat'](_0x2a6eea,'\x20')['concat'](_0x592df7||'')['trim'](),_0x289f24=_0x49f40c('_'[_0x33c3cc(0x1f6)](Sr()));return Ps(_0x2e44c3,''[_0x33c3cc(0x1f6)](_0x2a6eea),{'defIds':_0x2e44c3[_0x33c3cc(0x31a)],'idSuffix':_0x289f24[_0x33c3cc(0x315)]},A({'ref':_0xb0d6d6,'className':_0x4124e4},_0x120f6c),_0x275124);});function Ps(_0x395267,_0x2cd9c6,_0x2536a6,_0x34990d,_0x2e4a30){const _0x7cc00f=_0x29c6a6;return _0x1b0b54(_0x395267[_0x7cc00f(0x35c)],A(A({'key':_0x2cd9c6},gr(_0x395267,_0x2536a6,_0x2e4a30)),_0x34990d),(mr(_0x395267,_0x2536a6)[_0x7cc00f(0x437)]||[])[_0x7cc00f(0x1f9)](function(_0x573d5f,_0x2d4ae5){const _0x75275f=_0x7cc00f;return Ps(_0x573d5f,''['concat'](_0x2cd9c6,'-')[_0x75275f(0x1f6)](_0x395267['tag'],'-')[_0x75275f(0x1f6)](_0x2d4ae5),_0x2536a6,void 0x0,_0x2e4a30);}));}function gr(_0x4c0ec0,_0x3f5e79,_0x372174){const _0x30d3e8=_0x29c6a6;var _0x573299=A({},_0x4c0ec0[_0x30d3e8(0x2cc)]);_0x372174!=null&&_0x372174[_0x30d3e8(0x253)]&&_0x573299['fill']===_0x30d3e8(0x253)&&(_0x573299[_0x30d3e8(0x2d5)]=_0x372174[_0x30d3e8(0x253)]);var _0x28862c=_0x3f5e79[_0x30d3e8(0x31a)];return!_0x28862c||_0x28862c[_0x30d3e8(0x431)]===0x0||(_0x4c0ec0[_0x30d3e8(0x35c)]==='use'&&_0x573299[_0x30d3e8(0x1fa)]&&(_0x573299[_0x30d3e8(0x1fa)]=_0x573299[_0x30d3e8(0x1fa)]+_0x3f5e79['idSuffix']),Object[_0x30d3e8(0x454)](_0x573299)['forEach'](function(_0x33136b){const _0x3e3a14=_0x30d3e8;var _0x5e128a=_0x33136b[0x0],_0x36ea0d=_0x33136b[0x1];typeof _0x36ea0d==_0x3e3a14(0x35a)&&(_0x573299[_0x5e128a]=_0x36ea0d[_0x3e3a14(0x32e)](/url\(#(.*)\)/,_0x3e3a14(0x4ab)[_0x3e3a14(0x1f6)](_0x3f5e79[_0x3e3a14(0x1db)],')')));})),_0x573299;}function mr(_0x317802,_0x554696){const _0x5a297b=_0x29c6a6;var _0x7e802f,_0x542a8c=_0x554696[_0x5a297b(0x31a)];return!_0x542a8c||_0x542a8c[_0x5a297b(0x431)]===0x0?_0x317802:_0x317802[_0x5a297b(0x35c)]===_0x5a297b(0x265)&&(!((_0x7e802f=_0x317802['children'])===null||_0x7e802f===void 0x0)&&_0x7e802f[_0x5a297b(0x431)])?A(A({},_0x317802),{'children':_0x317802[_0x5a297b(0x437)][_0x5a297b(0x1f9)](function(_0x5daa46){const _0x197909=_0x5a297b;return typeof _0x5daa46[_0x197909(0x2cc)]['id']==_0x197909(0x35a)&&_0x542a8c&&_0x542a8c[_0x197909(0x251)](_0x5daa46['attrs']['id'])>-0x1?A(A({},_0x5daa46),{'attrs':A(A({},_0x5daa46[_0x197909(0x2cc)]),{'id':_0x5daa46[_0x197909(0x2cc)]['id']+_0x554696[_0x197909(0x1db)]})}):_0x5daa46;})}):_0x317802;}function Sr(){const _0x128338=_0x29c6a6;return Math[_0x128338(0x3bc)]()['toString'](0x24)[_0x128338(0x1f0)](0x2,0x8);}yt[_0x29c6a6(0x4ae)]=_0x29c6a6(0x20d);var vr={'tag':'svg','attrs':{'fill':_0x29c6a6(0x385),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x29c6a6(0x319)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x29c6a6(0x4d5),'d':_0x29c6a6(0x374),'strokeLinecap':_0x29c6a6(0x2c8),'strokeLinejoin':_0x29c6a6(0x2c8),'strokeWidth':1.2}}]},{'tag':_0x29c6a6(0x265),'attrs':{},'children':[{'tag':_0x29c6a6(0x22e),'attrs':{'id':_0x29c6a6(0x415)},'children':[{'tag':_0x29c6a6(0x3a7),'attrs':{'fill':_0x29c6a6(0x4c4),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x29c6a6(0x415)]},Ns=_0x45e47d(function(_0x143453,_0x32df55){const _0x3d2399=_0x29c6a6;return _0x1b0b54(yt,Object['assign']({},_0x143453,{'id':_0x3d2399(0x2c3),'ref':_0x32df55,'icon':vr}));});Ns[_0x29c6a6(0x4ae)]=_0x29c6a6(0x4d6);var pr={'tag':_0x29c6a6(0x2c4),'attrs':{'fill':_0x29c6a6(0x385),'viewBox':_0x29c6a6(0x2e5),'width':_0x29c6a6(0x319),'height':_0x29c6a6(0x319)},'children':[{'tag':'g','attrs':{'clipPath':_0x29c6a6(0x287)},'children':[{'tag':_0x29c6a6(0x3a7),'attrs':{'stroke':_0x29c6a6(0x4d5),'d':_0x29c6a6(0x342),'strokeLinecap':_0x29c6a6(0x2c8),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x29c6a6(0x22e),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x29c6a6(0x3a7),'attrs':{'fill':_0x29c6a6(0x4c4),'d':_0x29c6a6(0x3b0),'transform':_0x29c6a6(0x4d2)}}]}]}],'defIds':[_0x29c6a6(0x1c8)]},Ms=_0x45e47d(function(_0x49b9f5,_0x429990){const _0x51b3a7=_0x29c6a6;return _0x1b0b54(yt,Object[_0x51b3a7(0x201)]({},_0x49b9f5,{'id':_0x51b3a7(0x1e9),'ref':_0x429990,'icon':pr}));});Ms[_0x29c6a6(0x4ae)]='OnLineSingle';const Ir=_0x29c6a6(0x280),Er=_0x29c6a6(0x1bd),Cr=_0x29c6a6(0x495),br=_0x29c6a6(0x436),Rr='univer-offline',ve={'onlineStatusIcon':Ir,'onlineStatusTitle':Er,'onlineStatus':Cr,'online':br,'offline':Rr};function Tr(_0x46d9ea){const _0x2163c3=_0x29c6a6;switch(_0x46d9ea){case P[_0x2163c3(0x4b5)]:return _0x2163c3(0x25d);case P[_0x2163c3(0x428)]:return _0x2163c3(0x304);case P['FETCH_MISS']:return'collabStatus.fetchMiss';case P[_0x2163c3(0x483)]:return _0x2163c3(0x276);case P[_0x2163c3(0x1f3)]:case P[_0x2163c3(0x4c6)]:case P['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case P['SYNCED']:return _0x2163c3(0x1e5);}}function Or(_0x2de2e6){const _0x1c78ff=_0x29c6a6,{status$:_0xe3eba6}=_0x2de2e6,_0x7dec32=_0x2b20e3(_0xe3eba6,P[_0x1c78ff(0x483)]),_0x534237=_0x4e0bd3(_0x2f64f),_0x56af53=_0x7dec32!==P[_0x1c78ff(0x4b5)],_0x31acbf=_0x534237['t'](Tr(_0x7dec32)),_0x4e9e70=_0x3c1621(ve[_0x1c78ff(0x1cc)],{[ve[_0x1c78ff(0x233)]]:_0x56af53,[ve[_0x1c78ff(0x2de)]]:!_0x56af53}),_0x61fab9=_0x56af53?_0x103fdd[_0x1c78ff(0x2f8)](Ms,null):_0x103fdd[_0x1c78ff(0x2f8)](Ns,null);return _0x103fdd[_0x1c78ff(0x2f8)](_0x1c78ff(0x2dd),{'className':_0x4e9e70},_0x103fdd['createElement'](_0x1c78ff(0x2dd),{'className':ve['onlineStatusIcon']},_0x61fab9),_0x103fdd[_0x1c78ff(0x2f8)]('div',{'className':ve[_0x1c78ff(0x3fe)]},_0x31acbf));}var Dr=Object[_0x29c6a6(0x3f3)],wr=Object[_0x29c6a6(0x48e)],Pr=(_0x512e41,_0xa79ffe,_0x248665,_0x1055ff)=>{const _0x53a769=_0x29c6a6;for(var _0x16a34c=_0x1055ff>0x1?void 0x0:_0x1055ff?wr(_0xa79ffe,_0x248665):_0xa79ffe,_0x5576b4=_0x512e41[_0x53a769(0x431)]-0x1,_0x1f71bb;_0x5576b4>=0x0;_0x5576b4--)(_0x1f71bb=_0x512e41[_0x5576b4])&&(_0x16a34c=(_0x1055ff?_0x1f71bb(_0xa79ffe,_0x248665,_0x16a34c):_0x1f71bb(_0x16a34c))||_0x16a34c);return _0x1055ff&&_0x16a34c&&Dr(_0xa79ffe,_0x248665,_0x16a34c),_0x16a34c;},Ae=(_0x992632,_0x1a1e77)=>(_0x59bac5,_0x1d22bf)=>_0x1a1e77(_0x59bac5,_0x1d22bf,_0x992632);let je=class extends _0xc93720{constructor(_0x89217d,_0x2cc951,_0x19366a,_0x287c6a){const _0x18c892=_0x29c6a6;super(),l(this,_0x18c892(0x34e),new _0x2ae6a5(P[_0x18c892(0x483)])),(this[_0x18c892(0x49b)]=_0x89217d,this[_0x18c892(0x298)]=_0x2cc951,this['_injector']=_0x19366a,this[_0x18c892(0x409)]=_0x287c6a,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x29c6a6(0x34d)](){const _0x4408e0=_0x29c6a6;this['disposeWithMe'](this[_0x4408e0(0x298)][_0x4408e0(0x3de)](_0x1f5713[_0x4408e0(0x408)],()=>_0x5254e3(Nr({'status$':this[_0x4408e0(0x34e)][_0x4408e0(0x4db)]()}),this['_injector'])));}[_0x29c6a6(0x20b)](){const _0x3bb08d=_0x29c6a6;this[_0x3bb08d(0x1fb)](_0x359428(this[_0x3bb08d(0x49b)][_0x3bb08d(0x337)][_0x3bb08d(0x4dc)](_0x3931dc(()=>{const _0x1511b0=_0x3bb08d,_0xa28194=this[_0x1511b0(0x49b)][_0x1511b0(0x2e1)]();return _0xa28194?this[_0x1511b0(0x409)]['getCollabEntity$'](_0xa28194[_0x1511b0(0x38d)]()):_0x41c67f(null);}),_0x3931dc(_0x4feafc=>_0x4feafc?_0x4feafc[_0x3bb08d(0x4c8)]:_0x41c67f(P[_0x3bb08d(0x483)])))[_0x3bb08d(0x460)](_0x3aefd6=>{const _0x45b072=_0x3bb08d;this[_0x45b072(0x34e)][_0x45b072(0x3af)](_0x3aefd6);})));}};je=Pr([_0x2d1123(_0xb39fe5[_0x29c6a6(0x4bc)],je),Ae(0x0,_0x33e391),Ae(0x1,_0x38bd02),Ae(0x2,_0x558bc4(_0x4ead3f)),Ae(0x3,_0x558bc4(Ee))],je);function Nr(_0x411c9d){const {status$:_0x4aefcb}=_0x411c9d;return function(){const _0x5c1505=_0x34fd;return _0x103fdd[_0x5c1505(0x2f8)](Or,{'status$':_0x4aefcb});};}const As=_0x451f50(_0x29c6a6(0x486));var Mr=Object[_0x29c6a6(0x3f3)],Ar=Object[_0x29c6a6(0x48e)],yr=(_0x1d41eb,_0x35fc42,_0x1ff204,_0x203dbe)=>{const _0xa28a9d=_0x29c6a6;for(var _0x1068e9=_0x203dbe>0x1?void 0x0:_0x203dbe?Ar(_0x35fc42,_0x1ff204):_0x35fc42,_0x1fbb22=_0x1d41eb[_0xa28a9d(0x431)]-0x1,_0x501a81;_0x1fbb22>=0x0;_0x1fbb22--)(_0x501a81=_0x1d41eb[_0x1fbb22])&&(_0x1068e9=(_0x203dbe?_0x501a81(_0x35fc42,_0x1ff204,_0x1068e9):_0x501a81(_0x1068e9))||_0x1068e9);return _0x203dbe&&_0x1068e9&&Mr(_0x35fc42,_0x1ff204,_0x1068e9),_0x1068e9;},ce=(_0x1552d1,_0x4c5853)=>(_0x4ea0b7,_0x4b5d16)=>_0x4c5853(_0x4ea0b7,_0x4b5d16,_0x1552d1);let He=class extends _0x39fd47{constructor(_0x41ad84,_0x1caecb,_0x5d8b02,_0x37f278,_0xf5fa1f,_0xbe571d){const _0x5936c2=_0x29c6a6;super(),this['_urlService']=_0x41ad84,this['_logService']=_0x1caecb,this[_0x5936c2(0x3d7)]=_0x5d8b02,this[_0x5936c2(0x1ec)]=_0x37f278,this[_0x5936c2(0x1be)]=_0xf5fa1f,_0xbe571d?_0xbe571d==null||_0xbe571d[_0x5936c2(0x370)]()['then'](()=>this['_init']()):(this[_0x5936c2(0x214)][_0x5936c2(0x363)](_0x5936c2(0x40b),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x5936c2(0x26f)]());}async[_0x29c6a6(0x26f)](){const _0x5d390d=_0x29c6a6,_0x1a57c6=this[_0x5d390d(0x2e7)][_0x5d390d(0x2d4)](_0x5d390d(0x27d)),_0x2f8464=this[_0x5d390d(0x2e7)][_0x5d390d(0x2d4)](_0x5d390d(0x236));if(!_0x1a57c6||!_0x2f8464){this[_0x5d390d(0x214)]['debug'](_0x5d390d(0x40b),_0x5d390d(0x2a3));return;}switch(Number(_0x2f8464)){case H['UNIVER_SHEET']:{const _0x3c0ca=await this[_0x5d390d(0x440)](_0x1a57c6);this['_setupSubUnitSync'](_0x3c0ca);break;}case H['UNIVER_DOC']:{await this[_0x5d390d(0x248)](_0x1a57c6);break;}default:{this[_0x5d390d(0x214)][_0x5d390d(0x35b)]('[DataLoaderController]',_0x5d390d(0x4e3));break;}}}async[_0x29c6a6(0x285)](_0x5430ff){const _0x1ebbbb=_0x29c6a6;await this[_0x1ebbbb(0x1e4)](_0x5430ff),_0x5430ff[_0x1ebbbb(0x371)][_0x1ebbbb(0x4dc)](_0x26437e(this[_0x1ebbbb(0x33a)]))[_0x1ebbbb(0x460)](_0x558a71=>{const _0x30451f=_0x1ebbbb;_0x558a71&&this[_0x30451f(0x402)](_0x558a71);}),this[_0x1ebbbb(0x2e7)][_0x1ebbbb(0x1e2)][_0x1ebbbb(0x4dc)](_0x26437e(this[_0x1ebbbb(0x33a)]))['subscribe'](()=>this[_0x1ebbbb(0x1e4)](_0x5430ff));}[_0x29c6a6(0x402)](_0x87d9c4,_0xdfe868=!0x1){const _0x2f6d22=_0x29c6a6,_0x450e50=this[_0x2f6d22(0x2e7)]['getParam'](_0x2f6d22(0x417));_0x87d9c4[_0x2f6d22(0x2bb)]()!==_0x450e50&&this['_urlService'][_0x2f6d22(0x1e6)](_0x2f6d22(0x417),_0x87d9c4['getSheetId'](),_0xdfe868);}async[_0x29c6a6(0x1e4)](_0x4c2ead){const _0x1025da=_0x29c6a6;var _0xf17677;const _0x43c454=this[_0x1025da(0x2e7)]['getParam']('subunit');if(!_0x43c454||!_0x4c2ead[_0x1025da(0x42e)](_0x43c454)){const _0x70c3a1=_0x4c2ead['getUnhiddenWorksheets']()[0x0],_0x2805d9=_0x4c2ead[_0x1025da(0x42e)](_0x70c3a1);if(!_0x2805d9)return;this[_0x1025da(0x402)](_0x2805d9,!0x0),await this[_0x1025da(0x3d7)][_0x1025da(0x22a)](_0x3b91fc['id'],{'unitId':_0x4c2ead[_0x1025da(0x38d)](),'subUnitId':_0x70c3a1});return;}((_0xf17677=_0x4c2ead[_0x1025da(0x36e)]())==null?void 0x0:_0xf17677[_0x1025da(0x2bb)]())!==_0x43c454&&await this[_0x1025da(0x3d7)][_0x1025da(0x22a)](_0x3b91fc['id'],{'unitId':_0x4c2ead['getUnitId'](),'subUnitId':_0x43c454});}async[_0x29c6a6(0x440)](_0x30699c){const _0x14694f=_0x29c6a6;let _0x38ca93=0x0;const _0x5cd6a8=await this[_0x14694f(0x1ec)][_0x14694f(0x3bd)](_0x30699c);return _0x5cd6a8&&(_0x5cd6a8[_0x14694f(0x2e6)]||_0x5cd6a8[_0x14694f(0x365)][_0x14694f(0x431)]!==0x0)&&(_0x38ca93=_0x5cd6a8['rev']),_0x38ca93===0x0&&this[_0x14694f(0x214)][_0x14694f(0x363)](_0x14694f(0x40b),_0x14694f(0x3a0)),this[_0x14694f(0x1be)][_0x14694f(0x220)](_0x30699c,_0x38ca93);}async[_0x29c6a6(0x248)](_0x125e58){const _0x36812d=_0x29c6a6;let _0xcdbc7f=0x0;const _0x38db3f=await this[_0x36812d(0x1ec)]['loadOfflineData'](_0x125e58);return _0x38db3f&&(_0x38db3f[_0x36812d(0x2e6)]||_0x38db3f['mutations'][_0x36812d(0x431)]!==0x0)&&(_0xcdbc7f=_0x38db3f[_0x36812d(0x4e5)]),_0xcdbc7f===0x0&&this[_0x36812d(0x214)][_0x36812d(0x363)](_0x36812d(0x40b),_0x36812d(0x3a0)),this[_0x36812d(0x1be)]['loadDoc'](_0x125e58,_0xcdbc7f);}};He=yr([_0x2d1123(_0xb39fe5[_0x29c6a6(0x4bc)],He),ce(0x0,As),ce(0x1,_0x2125ae),ce(0x2,_0x594d06),ce(0x3,_0x558bc4(D)),ce(0x4,_0x558bc4(_0x17638f)),ce(0x5,_0x2cbf69(_0x4b3972))],He);var Ur=Object[_0x29c6a6(0x3f3)],Lr=Object[_0x29c6a6(0x48e)],$r=(_0x4c695f,_0x494e85,_0x30249a,_0x3e67b4)=>{for(var _0x395f44=_0x3e67b4>0x1?void 0x0:_0x3e67b4?Lr(_0x494e85,_0x30249a):_0x494e85,_0x29a838=_0x4c695f['length']-0x1,_0x4bb573;_0x29a838>=0x0;_0x29a838--)(_0x4bb573=_0x4c695f[_0x29a838])&&(_0x395f44=(_0x3e67b4?_0x4bb573(_0x494e85,_0x30249a,_0x395f44):_0x4bb573(_0x395f44))||_0x395f44);return _0x3e67b4&&_0x395f44&&Ur(_0x494e85,_0x30249a,_0x395f44),_0x395f44;},Qt=(_0x4cae49,_0x3c4d3a)=>(_0x5f4853,_0x4a807a)=>_0x3c4d3a(_0x5f4853,_0x4a807a,_0x4cae49);const jr=_0x29c6a6(0x1ea),Hr='Univer';let xe=class extends _0xc93720{constructor(_0x4735ba,_0xccdb3d){const _0xc6209f=_0x29c6a6;super(),this['_univerInstanceService']=_0x4735ba,this['_configService']=_0xccdb3d,this[_0xc6209f(0x26f)]();}['_init'](){const _0xb6974f=_0x29c6a6;this[_0xb6974f(0x1fb)](_0x359428(this['_univerInstanceService'][_0xb6974f(0x337)]['subscribe'](()=>{const _0x4a73e7=_0xb6974f;var _0x31960e;const _0x867d7a=this[_0x4a73e7(0x49b)][_0x4a73e7(0x2e1)]();let _0x2c889d=(_0x31960e=this['_configService']['getConfig'](jr))!=null?_0x31960e:Hr;_0x867d7a instanceof _0x9198e0&&(_0x2c889d=_0x867d7a[_0x4a73e7(0x47b)]),document['title']=_0x2c889d;})));}};xe=$r([_0x2d1123(_0xb39fe5[_0x29c6a6(0x1d0)],xe),Qt(0x0,_0x33e391),Qt(0x1,_0x575c32)],xe);var xr=Object['defineProperty'],Fr=Object[_0x29c6a6(0x48e)],Br=(_0x2a4680,_0x2b7b4c,_0x5753,_0x2dfb27)=>{for(var _0x3bc4e7=_0x2dfb27>0x1?void 0x0:_0x2dfb27?Fr(_0x2b7b4c,_0x5753):_0x2b7b4c,_0x20795e=_0x2a4680['length']-0x1,_0x5e1c62;_0x20795e>=0x0;_0x20795e--)(_0x5e1c62=_0x2a4680[_0x20795e])&&(_0x3bc4e7=(_0x2dfb27?_0x5e1c62(_0x2b7b4c,_0x5753,_0x3bc4e7):_0x5e1c62(_0x3bc4e7))||_0x3bc4e7);return _0x2dfb27&&_0x3bc4e7&&xr(_0x2b7b4c,_0x5753,_0x3bc4e7),_0x3bc4e7;},es=(_0x2c2bf2,_0xd50a0d)=>(_0x4d21a5,_0x3d62c1)=>_0xd50a0d(_0x4d21a5,_0x3d62c1,_0x2c2bf2);let St=class{constructor(_0x46dcea,_0x1da6f1){const _0x36b581=_0x29c6a6;this[_0x36b581(0x211)]=_0x46dcea,this[_0x36b581(0x208)]=_0x1da6f1;}async[_0x29c6a6(0x423)](_0x16edbf,_0x590875){const _0x2c6dd3=_0x29c6a6;var _0x378f72;const {unitID:_0x1343df,type:_0x44195c,revision:_0x159488=0x0}=_0x590875,_0x1bcbf3=this['_getSnapshotAPIPrefix']()+'/'+_0x44195c+_0x2c6dd3(0x4d7)+_0x1343df+_0x2c6dd3(0x432)+(_0x159488===0x1?0x0:_0x159488),_0x1f5fd5=(await this['_httpService'][_0x2c6dd3(0x362)](_0x1bcbf3))[_0x2c6dd3(0x4bf)],_0x448d2c=(_0x378f72=_0x1f5fd5['snapshot'])==null?void 0x0:_0x378f72[_0x2c6dd3(0x245)];if(_0x448d2c){const _0x5e1106=_0x448d2c==null?void 0x0:_0x448d2c[_0x2c6dd3(0x4d0)],_0x134cb8=_0x395f16[_0x2c6dd3(0x3f9)](_0x44581b(_0x5e1106));_0x448d2c['originalMeta']=_0x134cb8,Object[_0x2c6dd3(0x454)](_0x448d2c[_0x2c6dd3(0x47f)])[_0x2c6dd3(0x31b)](([,_0x5066e1])=>{const _0x14b79e=_0x2c6dd3,_0x49b61a=_0x5066e1[_0x14b79e(0x4d0)],_0x324e33=_0x395f16[_0x14b79e(0x3f9)](_0x44581b(_0x49b61a));_0x5066e1['originalMeta']=_0x324e33;});}return _0x1f5fd5;}async[_0x29c6a6(0x4ad)](_0x297966,_0x5a3f07){const _0x2951e4=_0x29c6a6,{unitID:_0x3db856,type:_0x397e6e,blockID:_0x591a3a}=_0x5a3f07,_0x1f6d3a=this[_0x2951e4(0x2a0)]()+'/'+_0x397e6e+_0x2951e4(0x4d7)+_0x3db856+'/block/'+_0x591a3a;return(await this[_0x2951e4(0x208)][_0x2951e4(0x362)](_0x1f6d3a))['body'];}async[_0x29c6a6(0x401)](_0x341673,_0x58312b){const _0x10c7ad=_0x29c6a6,{unitID:_0x4658af,type:_0x463238,from:_0x583a81,to:_0x5b4fc0}=_0x58312b,_0x193bf1=this[_0x10c7ad(0x2a0)]()+'/'+_0x463238+_0x10c7ad(0x4d7)+_0x4658af+_0x10c7ad(0x4b4)+_0x583a81+_0x10c7ad(0x1f2)+_0x5b4fc0;return(await this[_0x10c7ad(0x208)][_0x10c7ad(0x362)](_0x193bf1))[_0x10c7ad(0x4bf)];}[_0x29c6a6(0x217)](){const _0x57f42e=_0x29c6a6;var _0x3880a7;return(_0x3880a7=this[_0x57f42e(0x211)]['getConfig'](Ki))!=null?_0x3880a7:this[_0x57f42e(0x2a0)]();}[_0x29c6a6(0x2a0)](){const _0x215798=_0x29c6a6;var _0x2eabff;return(_0x2eabff=this[_0x215798(0x211)][_0x215798(0x29b)](Gi))!=null?_0x2eabff:Yi;}async[_0x29c6a6(0x24e)](_0x2faa07,_0x4a2129){const _0x1a5089=_0x29c6a6,_0x153430='/universer-api/snapshot/'+_0x4a2129[_0x1a5089(0x236)]+_0x1a5089(0x4d7)+_0x4a2129[_0x1a5089(0x1ca)]+'/resources';return(await this[_0x1a5089(0x208)]['get'](_0x153430,{'params':{'resourceId':JSON[_0x1a5089(0x376)](_0x4a2129['resourceIDs'])}}))['body'];}[_0x29c6a6(0x3e1)](){const _0xbc1d2c=_0x29c6a6;throw new Error(_0xbc1d2c(0x2e8));}['saveSheetBlock'](){const _0x94cd56=_0x29c6a6;throw new Error(_0x94cd56(0x2e8));}[_0x29c6a6(0x2e0)](){const _0x5d8928=_0x29c6a6;throw new Error(_0x5d8928(0x2e8));}};St=Br([es(0x0,_0x575c32),es(0x1,_0x558bc4(_0x180bd0))],St);var kr=Object['defineProperty'],Vr=Object['getOwnPropertyDescriptor'],Wr=(_0x4dada4,_0x22fc72,_0x334d24,_0x1df2cf)=>{const _0x4ce75a=_0x29c6a6;for(var _0x416d99=_0x1df2cf>0x1?void 0x0:_0x1df2cf?Vr(_0x22fc72,_0x334d24):_0x22fc72,_0x2a012d=_0x4dada4[_0x4ce75a(0x431)]-0x1,_0x6948df;_0x2a012d>=0x0;_0x2a012d--)(_0x6948df=_0x4dada4[_0x2a012d])&&(_0x416d99=(_0x1df2cf?_0x6948df(_0x22fc72,_0x334d24,_0x416d99):_0x6948df(_0x416d99))||_0x416d99);return _0x1df2cf&&_0x416d99&&kr(_0x22fc72,_0x334d24,_0x416d99),_0x416d99;},pe=(_0x583024,_0x3f8b0c)=>(_0x430057,_0x12ac22)=>_0x3f8b0c(_0x430057,_0x12ac22,_0x583024);let vt=class extends _0x59e73e{constructor(_0x445fad,_0x18df09,_0x2eb563,_0x106b10,_0x518b5c){const _0x44acdb=_0x29c6a6;super(_0x445fad,_0x18df09,_0x2eb563),this[_0x44acdb(0x367)]=_0x106b10,this['_logService']=_0x518b5c;}['transformUndoRedo'](_0x6c1671,_0xac36e5){const _0x14bb44=_0x29c6a6,_0x5a25f=this[_0x14bb44(0x358)](_0x6c1671);if(_0x5a25f)try{const _0x4bd8a8=this[_0x14bb44(0x323)](_0x5a25f,_0xac36e5);this[_0x14bb44(0x3dc)](_0x6c1671,_0x4bd8a8);}catch(_0x41b853){this[_0x14bb44(0x214)][_0x14bb44(0x35b)]('[CollaborationUndoRedoService]',_0x41b853),this[_0x14bb44(0x317)](_0x6c1671);}const _0x33e15b=this['_getRedoStack'](_0x6c1671);if(_0x33e15b)try{const _0x5470a2=this[_0x14bb44(0x323)](_0x33e15b,_0xac36e5);this[_0x14bb44(0x420)](_0x6c1671,_0x5470a2);}catch(_0xb5a3b5){this['_logService'][_0x14bb44(0x35b)](_0xb5a3b5),this['_clearRedo'](_0x6c1671);}}[_0x29c6a6(0x317)](_0x942e4f){const _0x578c39=_0x29c6a6,_0x161586=this[_0x578c39(0x358)](_0x942e4f);_0x161586&&(_0x161586[_0x578c39(0x431)]=0x0,this[_0x578c39(0x45a)]());}[_0x29c6a6(0x2fb)](_0x1887f7){const _0x38a0c4=_0x29c6a6,_0x465ee1=this[_0x38a0c4(0x38e)](_0x1887f7);_0x465ee1&&(_0x465ee1[_0x38a0c4(0x431)]=0x0,this[_0x38a0c4(0x45a)]());}[_0x29c6a6(0x3dc)](_0x2bb600,_0x390b73){const _0x7ece84=_0x29c6a6;this[_0x7ece84(0x2e2)][_0x7ece84(0x320)](_0x2bb600,_0x390b73),this['_updateStatus']();}['_substituteRedoStack'](_0x37f303,_0x4742f3){const _0x4cf935=_0x29c6a6;this[_0x4cf935(0x387)][_0x4cf935(0x320)](_0x37f303,_0x4742f3),this['_updateStatus']();}[_0x29c6a6(0x323)](_0x2c8636,_0x77128a){const _0x2e9be6=_0x29c6a6,_0xe370ea=[];let _0xb7c2ae=_0x77128a,_0x4edd56=_0x77128a;for(let _0x46496d=_0x2c8636['length']-0x1;_0x46496d>=0x0;_0x46496d--){const {unitID:_0x3f1566,undoMutations:_0x59aca3,redoMutations:_0x3ed1a5}=_0x2c8636[_0x46496d],_0x5a8fa3=this[_0x2e9be6(0x367)][_0x2e9be6(0x216)](_0xb7c2ae,_0x59aca3),_0x1361a2=this[_0x2e9be6(0x367)][_0x2e9be6(0x216)](_0x4edd56,_0x3ed1a5);if(_0x4703e4(_0x5a8fa3)||_0x4703e4(_0x1361a2)){this[_0x2e9be6(0x214)]['error'](_0x2e9be6(0x345),'transformStack\x20failed!',_0x5a8fa3,_0x1361a2);break;}_0xb7c2ae=_0x5a8fa3[_0x2e9be6(0x450)],_0x4edd56=_0x1361a2[_0x2e9be6(0x450)],_0xe370ea[_0x2e9be6(0x2f7)]({'unitID':_0x3f1566,'undoMutations':_0x5a8fa3[_0x2e9be6(0x297)],'redoMutations':_0x1361a2['m2Prime']});}return _0xe370ea['reverse']();}};vt=Wr([pe(0x0,_0x33e391),pe(0x1,_0x594d06),pe(0x2,_0x2d2798),pe(0x3,_0xd13d4c),pe(0x4,_0x2125ae)],vt);class Gr extends _0x39fd47{constructor(){const _0x4e0e1d=_0x29c6a6;super(),l(this,_0x4e0e1d(0x1e2)),this['urlChange$']=_0x68731a(window,_0x4e0e1d(0x2b6))['pipe'](_0x26437e(this[_0x4e0e1d(0x33a)]),_0x133b83(0x1),_0x4225bf(void 0x0));}['setParam'](_0x31d8f1,_0x1d69ec,_0x11e356=!0x1){const _0x3be5f8=_0x29c6a6,_0x2d862d=new URL(window[_0x3be5f8(0x333)][_0x3be5f8(0x1ee)]);_0x2d862d[_0x3be5f8(0x36c)][_0x3be5f8(0x320)](_0x31d8f1,_0x1d69ec),_0x11e356?window[_0x3be5f8(0x3e2)][_0x3be5f8(0x26d)]('','',_0x2d862d[_0x3be5f8(0x1d3)]()):window['history'][_0x3be5f8(0x35e)]('','',_0x2d862d[_0x3be5f8(0x1d3)]());}[_0x29c6a6(0x4b3)](_0x5a802e,_0x53034a=!0x1){const _0x1c64a3=_0x29c6a6,_0x16a5e3=new URL(window['location'][_0x1c64a3(0x1ee)]);_0x16a5e3[_0x1c64a3(0x36c)][_0x1c64a3(0x457)](_0x5a802e),_0x53034a?window[_0x1c64a3(0x3e2)][_0x1c64a3(0x26d)]('','',_0x16a5e3[_0x1c64a3(0x1d3)]()):window[_0x1c64a3(0x3e2)][_0x1c64a3(0x35e)]('','',_0x16a5e3['toString']());}[_0x29c6a6(0x2d4)](_0x1d8bef){const _0x22f00=_0x29c6a6;var _0x57af6d;return(_0x57af6d=new URL(window[_0x22f00(0x333)]['href'])[_0x22f00(0x36c)]['get'](_0x1d8bef))!=null?_0x57af6d:void 0x0;}}const nt=_0x29c6a6(0x473),Yr=_0x29c6a6(0x499),ye=0x6,Kr=1.5,rt=0x4,Xr=1.5,Jr='rgba(255,\x20255,\x20255,\x200.01)';class zr{constructor(_0x38b565,_0x486137,_0x1fd6aa,_0x208626){const _0x5995=_0x29c6a6;l(this,_0x5995(0x1cf),[]),l(this,_0x5995(0x45b),null),l(this,'_textBubble',null),l(this,'_anchorDot',null),l(this,_0x5995(0x225),null),l(this,_0x5995(0x259),null),(this[_0x5995(0x4a4)]=_0x38b565,this[_0x5995(0x4b2)]=_0x486137,this['_docSkeleton']=_0x1fd6aa,this[_0x5995(0x373)]=_0x208626,this[_0x5995(0x25b)]());}set['_hover'](_0x322ebf){const _0x5b6ae8=_0x29c6a6;_0x322ebf?(this[_0x5b6ae8(0x398)]&&this['_anchorDot'][_0x5b6ae8(0x2c0)](),this[_0x5b6ae8(0x4e4)]&&this[_0x5b6ae8(0x4e4)]['show']()):(this[_0x5b6ae8(0x398)]&&this[_0x5b6ae8(0x398)]['show'](),this['_textBubble']&&this[_0x5b6ae8(0x4e4)][_0x5b6ae8(0x2c0)]());}['dispose'](){const _0x112a01=_0x29c6a6;for(const _0x9a2fc1 of this['_shapes'])_0x9a2fc1[_0x112a01(0x378)]();this['_textBubble']&&this['_textBubble'][_0x112a01(0x378)](),this[_0x112a01(0x398)]&&this[_0x112a01(0x398)][_0x112a01(0x378)](),this['_anchor']&&this[_0x112a01(0x45b)][_0x112a01(0x378)](),this[_0x112a01(0x259)]&&this[_0x112a01(0x259)]();}[_0x29c6a6(0x25b)](){const _0x3b58ea=_0x29c6a6,{_docSkeleton:_0x4f5148,_document:_0x501176}=this,{color:_0x16ef61,name:_0x48aa9f,ranges:_0x5df7d4}=this[_0x3b58ea(0x4a4)],_0x232f3b=_0x501176[_0x3b58ea(0x452)](),{docsLeft:_0x50c7de,docsTop:_0x290e52}=_0x232f3b,_0x429108=new _0x473a03(_0x232f3b,_0x4f5148);for(const {startOffset:_0x186210,endOffset:_0x3a64d9,collapsed:_0x41911e,isActive:_0x672dd0}of _0x5df7d4){const _0x3fc87d=_0x4f5148['findNodePositionByCharIndex'](_0x186210),_0x5cab65=_0x4f5148[_0x3b58ea(0x34c)](_0x3a64d9);if(_0x672dd0){const {contentBoxPointGroup:_0x38abaa}=_0x429108[_0x3b58ea(0x49f)](_0x5cab65,_0x5cab65);if(_0x38abaa[_0x3b58ea(0x431)]===0x0)continue;this[_0x3b58ea(0x30e)](_0x16ef61,_0x38abaa,_0x50c7de,_0x290e52,_0x48aa9f),this['_eventUnsubscribe']=this[_0x3b58ea(0x43f)]();}if(!_0x41911e){const {contentBoxPointGroup:_0x5d7e0d}=_0x429108['getRangePointData'](_0x3fc87d,_0x5cab65);if(_0x5d7e0d[_0x3b58ea(0x431)]===0x0)continue;this[_0x3b58ea(0x3c5)](_0x16ef61,_0x5d7e0d,_0x50c7de,_0x290e52);}}}[_0x29c6a6(0x30e)](_0x187a6b,_0x4e4e0b,_0x42cd8c,_0x336342,_0x313e0f){const _0x4b57e9=_0x29c6a6,_0x2897e4=this[_0x4b57e9(0x4c2)](_0x4e4e0b),{left:_0x4d70cb,top:_0x1d314f,height:_0x3bf6d1}=_0x2897e4,_0x18e95f=this['_getScale'](),_0x4116bb=Xr/_0x18e95f,_0x3cd76f=new _0x274a4d(nt+_0x1394f4[_0x4b57e9(0x41e)](ye),{'left':_0x4d70cb+_0x42cd8c-_0x4116bb,'top':_0x1d314f+_0x336342,'height':_0x3bf6d1,'width':Kr,'fill':_0x187a6b||_0x960864(_0x82bf70[_0x4b57e9(0x39b)],0x0),'strokeWidth':_0x4116bb,'stroke':Jr,'evented':!0x0});this['_anchor']=_0x3cd76f,this[_0x4b57e9(0x4b2)][_0x4b57e9(0x446)](_0x3cd76f,_0x3d5abd);const _0x1d8bbf=new _0x274a4d(nt+_0x1394f4['generateRandomId'](ye),{'left':_0x4d70cb+_0x42cd8c-_0x4116bb,'top':_0x1d314f+_0x336342-rt/0x2,'height':rt,'width':rt,'fill':_0x187a6b||_0x960864(_0x82bf70[_0x4b57e9(0x39b)],0x0),'strokeWidth':0x0,'stroke':_0x187a6b||_0x960864(_0x82bf70[_0x4b57e9(0x39b)],0x0),'evented':!0x1});this[_0x4b57e9(0x398)]=_0x1d8bbf,this[_0x4b57e9(0x4b2)][_0x4b57e9(0x446)](_0x1d8bbf,_0x3d5abd);const _0x3a0079=new ze(nt+_0x1394f4[_0x4b57e9(0x41e)](ye),{'left':_0x4d70cb+_0x42cd8c-_0x4116bb,'top':_0x1d314f+_0x336342-Oe,'text':_0x313e0f,'color':_0x187a6b});this['_textBubble']=_0x3a0079,this['_scene']['addObject'](_0x3a0079,_0x3d5abd),this['_hover']=!0x1;}[_0x29c6a6(0x43f)](){const _0x2b313f=_0x29c6a6,_0x2bf0fe=this[_0x2b313f(0x45b)]['onPointerEnter$'][_0x2b313f(0x4af)](()=>{const _0x502dc2=_0x2b313f;this[_0x502dc2(0x2c7)]=!0x0;}),_0x1d3091=this['_anchor'][_0x2b313f(0x331)][_0x2b313f(0x4af)](()=>{const _0x539dc6=_0x2b313f;this[_0x539dc6(0x225)]&&clearTimeout(this[_0x539dc6(0x225)]),this['_hideTimer']=setTimeout(()=>{const _0x40b99e=_0x539dc6;this[_0x40b99e(0x2c7)]=!0x1;},0x7d0);});return()=>{_0x2bf0fe['unsubscribe'](),_0x1d3091['unsubscribe']();};}[_0x29c6a6(0x3c5)](_0x36cb31,_0x19d44b,_0x328730,_0x3c854f){const _0x4f49a3=_0x29c6a6,_0x50faf6=new _0x323ad1(_0x36cb31)['setAlpha'](0.2)['toRgbString'](),_0x9c8988=new _0xba4fd4(Yr+_0x1394f4[_0x4f49a3(0x41e)](ye),{'pointsGroup':_0x19d44b,'fill':_0x50faf6||_0x960864(_0x82bf70[_0x4f49a3(0x39b)],0.2),'left':_0x328730,'top':_0x3c854f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4f49a3(0x1cf)][_0x4f49a3(0x2f7)](_0x9c8988),this[_0x4f49a3(0x4b2)][_0x4f49a3(0x446)](_0x9c8988,_0x3d5abd);}[_0x29c6a6(0x4c2)](_0x69178d){const _0x5065e7=_0x69178d[0x0],_0x541674=_0x5065e7[0x0],_0x35d03a=_0x5065e7[0x2],{x:_0x31e8f0,y:_0x43c232}=_0x541674,{x:_0x356d73,y:_0x2a9cec}=_0x35d03a;return{'left':_0x31e8f0,'top':_0x43c232,'width':_0x356d73-_0x31e8f0,'height':_0x2a9cec-_0x43c232};}[_0x29c6a6(0x2e4)](){const _0x3db1a9=_0x29c6a6,{scaleX:_0x4c33e4,scaleY:_0x5b6055}=this[_0x3db1a9(0x4b2)][_0x3db1a9(0x244)]();return Math[_0x3db1a9(0x28a)](_0x4c33e4,_0x5b6055);}}var Zr=Object['defineProperty'],qr=Object[_0x29c6a6(0x48e)],Qr=(_0x389e69,_0x514b1a,_0x37cf0f,_0x30bea6)=>{const _0x436862=_0x29c6a6;for(var _0x4c3af5=_0x30bea6>0x1?void 0x0:_0x30bea6?qr(_0x514b1a,_0x37cf0f):_0x514b1a,_0x35df19=_0x389e69[_0x436862(0x431)]-0x1,_0x1b057c;_0x35df19>=0x0;_0x35df19--)(_0x1b057c=_0x389e69[_0x35df19])&&(_0x4c3af5=(_0x30bea6?_0x1b057c(_0x514b1a,_0x37cf0f,_0x4c3af5):_0x1b057c(_0x4c3af5))||_0x4c3af5);return _0x30bea6&&_0x4c3af5&&Zr(_0x514b1a,_0x37cf0f,_0x4c3af5),_0x4c3af5;},Ie=(_0x1d4902,_0x1c3ded)=>(_0x4a9ccf,_0x557d32)=>_0x1c3ded(_0x4a9ccf,_0x557d32,_0x1d4902);let Fe=class extends _0x39fd47{constructor(_0x5186aa,_0x2356c1,_0x459613,_0x30770a,_0x223c9a){const _0x287419=_0x29c6a6;super(),l(this,_0x287419(0x466),[]),(this[_0x287419(0x2bf)]=_0x5186aa,this[_0x287419(0x49b)]=_0x2356c1,this[_0x287419(0x3d3)]=_0x459613,this[_0x287419(0x4c3)]=_0x30770a,this[_0x287419(0x44e)]=_0x223c9a,this[_0x287419(0x26f)]());}['_init'](){const _0x35ed85=_0x29c6a6;this[_0x35ed85(0x4c3)][_0x35ed85(0x3d0)][_0x35ed85(0x4dc)](_0x380119(this[_0x35ed85(0x33a)]),_0x5e300c(_0x196a61=>{const _0x58d2b2=_0x35ed85;if(_0x196a61){const _0xde4e6f=_0x196a61['getViewModel']()[_0x58d2b2(0x1bc)]()[_0x58d2b2(0x38d)]();return _0x45bbb6(this['_collabCursorController'][_0x58d2b2(0x1ed)](_0xde4e6f),this[_0x58d2b2(0x44e)]['currentTheme$'])[_0x58d2b2(0x4dc)](_0x6aec6c(([_0x3ec8ec,_0x33a280])=>({'skeleton':_0x196a61,'cursors':[..._0x3ec8ec[_0x58d2b2(0x250)]()][_0x58d2b2(0x422)](_0x10a5aa=>({..._0x10a5aa,'color':_0x33a280[_0x10a5aa[_0x58d2b2(0x241)]]}))})));}return _0x41c67f({'skeleton':null,'cursors':[]});}))['subscribe'](({skeleton:_0x5091c6,cursors:_0x226b51})=>{this['_removeCollabCursors'](),_0x5091c6&&this['_updateCollabCursors'](_0x5091c6,_0x226b51);});}['_updateCollabCursors'](_0x56624e,_0x233831){const _0x24e525=_0x29c6a6,_0x27ac15=this[_0x24e525(0x41a)]();if(_0x27ac15==null)return;const {scene:_0x69b85c,document:_0x55009d}=_0x27ac15,_0x48cec1=_0x233831[_0x24e525(0x1f9)](_0x56e002=>new zr(_0x56e002,_0x69b85c,_0x56624e,_0x55009d));this[_0x24e525(0x466)]=_0x48cec1;}['_removeCollabCursors'](){const _0x1dd880=_0x29c6a6;this[_0x1dd880(0x466)][_0x1dd880(0x31b)](_0x53bae4=>_0x53bae4['dispose']()),this[_0x1dd880(0x466)]=[];}[_0x29c6a6(0x41a)](){const _0x4afa60=_0x29c6a6;return _0xfcb5c7(this['_univerInstanceService'],this[_0x4afa60(0x3d3)]);}};Fe=Qr([_0x2d1123(_0xb39fe5['Steady'],Fe),Ie(0x0,_0x558bc4(ue)),Ie(0x1,_0x33e391),Ie(0x2,_0x3bdd8b),Ie(0x3,_0x558bc4(_0x5e1842)),Ie(0x4,_0x558bc4(_0x474371))],Fe);var eo=Object['defineProperty'],to=Object[_0x29c6a6(0x48e)],so=(_0x3e26cb,_0xd48107,_0x2a4631,_0x563a33)=>{const _0x2e8111=_0x29c6a6;for(var _0x16c3e3=_0x563a33>0x1?void 0x0:_0x563a33?to(_0xd48107,_0x2a4631):_0xd48107,_0x3cd9ae=_0x3e26cb[_0x2e8111(0x431)]-0x1,_0x2b86aa;_0x3cd9ae>=0x0;_0x3cd9ae--)(_0x2b86aa=_0x3e26cb[_0x3cd9ae])&&(_0x16c3e3=(_0x563a33?_0x2b86aa(_0xd48107,_0x2a4631,_0x16c3e3):_0x2b86aa(_0x16c3e3))||_0x16c3e3);return _0x563a33&&_0x16c3e3&&eo(_0xd48107,_0x2a4631,_0x16c3e3),_0x16c3e3;},ot=(_0x385ab4,_0x4fd24b)=>(_0x8bc8d8,_0x548897)=>_0x4fd24b(_0x8bc8d8,_0x548897,_0x385ab4);let Ge=class{constructor(_0x1e4098,_0x6cc07c,_0x120aee){const _0x2b022e=_0x29c6a6;this[_0x2b022e(0x211)]=_0x1e4098,this[_0x2b022e(0x208)]=_0x6cc07c,this[_0x2b022e(0x28e)]=_0x120aee,this[_0x2b022e(0x23e)]();}['init'](){const _0x205a50=_0x29c6a6;this[_0x205a50(0x208)][_0x205a50(0x3ab)]({'priority':0x1,'interceptor':(_0x4cd5f8,_0x2b75c0)=>_0x2b75c0(_0x4cd5f8)[_0x205a50(0x4dc)](_0x3efc49(async _0xb61e39=>{const _0x31b594=_0x205a50,_0x1a4c39=_0xb61e39;if(_0x1a4c39[_0x31b594(0x3ea)]===0x191&&window[_0x31b594(0x27e)](this[_0x31b594(0x28e)]['t'](_0x31b594(0x24a)))){const _0x2d2a46=window[_0x31b594(0x2bd)](window['location'][_0x31b594(0x1ee)]);window[_0x31b594(0x333)][_0x31b594(0x1ee)]=this[_0x31b594(0x4b7)]()+_0x31b594(0x419)+_0x2d2a46;}return _0x1a4c39;}))});}[_0x29c6a6(0x4b7)](){const _0x387a59=_0x29c6a6;var _0x16073f;return(_0x16073f=this[_0x387a59(0x211)][_0x387a59(0x29b)](hn))!=null?_0x16073f:ln;}};Ge=so([ot(0x0,_0x575c32),ot(0x1,_0x558bc4(_0x180bd0)),ot(0x2,_0x558bc4(_0x2f64f))],Ge);var io=Object[_0x29c6a6(0x3f3)],no=Object[_0x29c6a6(0x48e)],ro=(_0x247c1d,_0x3d7751,_0x3220ad,_0x3d9b50)=>{const _0x139491=_0x29c6a6;for(var _0xada200=_0x3d9b50>0x1?void 0x0:_0x3d9b50?no(_0x3d7751,_0x3220ad):_0x3d7751,_0x1a871d=_0x247c1d[_0x139491(0x431)]-0x1,_0x5024c2;_0x1a871d>=0x0;_0x1a871d--)(_0x5024c2=_0x247c1d[_0x1a871d])&&(_0xada200=(_0x3d9b50?_0x5024c2(_0x3d7751,_0x3220ad,_0xada200):_0x5024c2(_0xada200))||_0xada200);return _0x3d9b50&&_0xada200&&io(_0x3d7751,_0x3220ad,_0xada200),_0xada200;},ts=(_0x22d851,_0x433791)=>(_0x263911,_0x4e85e0)=>_0x433791(_0x263911,_0x4e85e0,_0x22d851);const oo=_0x29c6a6(0x430),ao=_0x29c6a6(0x3e6);let pt=class{constructor(_0x515a7e,_0x21a138){const _0x7fd4ca=_0x29c6a6;this[_0x7fd4ca(0x252)]=_0x515a7e,this[_0x7fd4ca(0x211)]=_0x21a138;}['_getAPIPrefixPath'](){const _0x4d26e4=_0x29c6a6;var _0x143662;return(_0x143662=this[_0x4d26e4(0x211)][_0x4d26e4(0x29b)](oo))!=null?_0x143662:ao;}async[_0x29c6a6(0x326)](_0x490b66){const _0x5843d7=_0x29c6a6,_0x19e4c4=this['_getAPIPrefixPath']()+'/'+_0x490b66[_0x5843d7(0x2fe)]+_0x5843d7(0x429);return(await this[_0x5843d7(0x252)][_0x5843d7(0x243)](_0x19e4c4,{'body':_0x490b66}))['body'][_0x5843d7(0x215)]||'';}async[_0x29c6a6(0x261)](_0x2f6046){const _0x529866=_0x29c6a6,_0x17abce=this['_getAPIPrefixPath']()+_0x529866(0x2a6);return(await this['_HTTPService'][_0x529866(0x243)](_0x17abce,{'body':_0x2f6046}))[_0x529866(0x4bf)][_0x529866(0x40e)];}async['update'](_0x336f89){const _0xb56b2b=_0x29c6a6,_0x230fe=this[_0xb56b2b(0x2c9)]()+'/'+_0x336f89[_0xb56b2b(0x2fe)]+_0xb56b2b(0x210)+_0x336f89[_0xb56b2b(0x215)];await this[_0xb56b2b(0x252)][_0xb56b2b(0x290)](_0x230fe,{'body':_0x336f89});}async[_0x29c6a6(0x35f)](_0x5924e0){const _0xfe8c51=_0x29c6a6,_0xb49cc4=this['_getAPIPrefixPath']()+'/'+_0x5924e0[_0xfe8c51(0x2fe)]+_0xfe8c51(0x210)+_0x5924e0['objectID']+'/allowed';return(await this['_HTTPService'][_0xfe8c51(0x243)](_0xb49cc4,{'body':_0x5924e0}))[_0xfe8c51(0x4bf)][_0xfe8c51(0x27c)];}async[_0x29c6a6(0x4a5)](_0x50feb2){const _0x5cd379=_0x29c6a6,_0x137763=this['_getAPIPrefixPath']()+_0x5cd379(0x442);return(await this['_HTTPService'][_0x5cd379(0x243)](_0x137763,{'body':{'requests':_0x50feb2}}))[_0x5cd379(0x4bf)]['objectActions'];}async[_0x29c6a6(0x2b9)](_0xc348f){const _0x2fef70=_0x29c6a6,_0x26792a=this[_0x2fef70(0x2c9)]()+'/'+_0xc348f[_0x2fef70(0x2fe)]+'/role',_0x200152=await this[_0x2fef70(0x252)]['post'](_0x26792a,{'body':_0xc348f});return{'roles':_0x200152[_0x2fef70(0x4bf)][_0x2fef70(0x2d3)],'actions':_0x200152[_0x2fef70(0x4bf)][_0x2fef70(0x27c)]};}async[_0x29c6a6(0x24b)](_0xf5d11b){const _0x2508bd=_0x29c6a6,_0x115bf9=this['_getAPIPrefixPath']()+_0x2508bd(0x4a7);await this['_HTTPService'][_0x2508bd(0x457)](_0x115bf9,{'params':{'collaboratorID':_0xf5d11b[_0x2508bd(0x393)],'objectID':_0xf5d11b[_0x2508bd(0x215)],'unitID':_0xf5d11b['unitID']}});}async[_0x29c6a6(0x34f)](_0x173494){const _0x252952=_0x29c6a6,_0x1c85eb=this[_0x252952(0x2c9)]()+'/collaborator';await this[_0x252952(0x252)][_0x252952(0x33b)](_0x1c85eb,{'body':_0x173494});}async[_0x29c6a6(0x3c3)](_0x44dff0){const _0x517f94=_0x29c6a6,_0xf4d1df=this['_getAPIPrefixPath']()+_0x517f94(0x4a7);await this['_HTTPService'][_0x517f94(0x243)](_0xf4d1df,{'body':_0x44dff0});}async['listCollaborators'](_0x3158cd){const _0x382f45=_0x29c6a6,_0x13db1e=this[_0x382f45(0x2c9)]()+'/collaborator';return(await this[_0x382f45(0x252)][_0x382f45(0x362)](_0x13db1e,{'params':{'objectID':_0x3158cd[_0x382f45(0x215)],'unitID':_0x3158cd[_0x382f45(0x1ca)]}}))[_0x382f45(0x4bf)]['collaborators'];}async[_0x29c6a6(0x1c0)](_0x468132){const _0x2147dd=_0x29c6a6,_0x369b0a=this['_getAPIPrefixPath']()+_0x2147dd(0x4a7);await this['_HTTPService'][_0x2147dd(0x290)](_0x369b0a,{'body':_0x468132});}};pt=ro([ts(0x0,_0x558bc4(_0x180bd0)),ts(0x1,_0x558bc4(_0x575c32))],pt);var co=Object[_0x29c6a6(0x3f3)],ho=Object[_0x29c6a6(0x48e)],lo=(_0x16d07a,_0x28602b,_0x472d27,_0x1d599d)=>{const _0x22f6a7=_0x29c6a6;for(var _0x272e00=_0x1d599d>0x1?void 0x0:_0x1d599d?ho(_0x28602b,_0x472d27):_0x28602b,_0x2abf54=_0x16d07a[_0x22f6a7(0x431)]-0x1,_0x5b5c34;_0x2abf54>=0x0;_0x2abf54--)(_0x5b5c34=_0x16d07a[_0x2abf54])&&(_0x272e00=(_0x1d599d?_0x5b5c34(_0x28602b,_0x472d27,_0x272e00):_0x5b5c34(_0x272e00))||_0x272e00);return _0x1d599d&&_0x272e00&&co(_0x28602b,_0x472d27,_0x272e00),_0x272e00;},ss=(_0x397b10,_0x540bb3)=>(_0x45a38b,_0x1a457d)=>_0x540bb3(_0x45a38b,_0x1a457d,_0x397b10);const _o=['image/png',_0x29c6a6(0x306),_0x29c6a6(0x45e),_0x29c6a6(0x41b),_0x29c6a6(0x3d1)],uo=0x5*0x400*0x400,fo=_0x29c6a6(0x392),go=_0x29c6a6(0x2a5),mo=_0x29c6a6(0x20c),So='/universer-api/file/{fileID}/sign-url';let It=class{constructor(_0x2038b3,_0x1007b8){const _0x3534ae=_0x29c6a6;l(this,'_waitCount',0x0),l(this,_0x3534ae(0x3df),new _0x2ef673()),l(this,_0x3534ae(0x381),this[_0x3534ae(0x3df)]),l(this,_0x3534ae(0x3bb),new Map()),(this[_0x3534ae(0x208)]=_0x2038b3,this['_configService']=_0x1007b8);}[_0x29c6a6(0x2d1)](_0x519f04){const _0x4a4966=_0x29c6a6;this[_0x4a4966(0x366)]=_0x519f04,this[_0x4a4966(0x3df)][_0x4a4966(0x3af)](_0x519f04);}[_0x29c6a6(0x39e)](_0x55bab5,_0x49b26a){const _0x283d83=_0x29c6a6;if(_0x49b26a===_0x23f70d['BASE64']){const _0x48a8e0=new Image();return _0x48a8e0['src']=_0x55bab5,_0x48a8e0;}return this['_imageSourceCache'][_0x283d83(0x362)](_0x55bab5);}[_0x29c6a6(0x247)](_0x3ee91e,_0x53299b,_0x3a9d47){const _0x2453c3=_0x29c6a6;_0x53299b===_0x23f70d[_0x2453c3(0x2af)]||_0x3a9d47==null||this[_0x2453c3(0x3bb)][_0x2453c3(0x320)](_0x3ee91e,_0x3a9d47);}async[_0x29c6a6(0x3cc)](_0x415b92){const _0x5b59ea=_0x29c6a6;try{const _0x474cd1=this[_0x5b59ea(0x21a)](this['_getSignURL'](),''+_0x415b92),_0x4c7424=(await this[_0x5b59ea(0x208)][_0x5b59ea(0x362)](_0x474cd1))[_0x5b59ea(0x4bf)];return _0x4c7424[_0x5b59ea(0x35b)]&&_0x4c7424[_0x5b59ea(0x35b)][_0x5b59ea(0x23a)]===Cs['OK']?Promise['resolve'](_0x4c7424[_0x5b59ea(0x395)]):Promise[_0x5b59ea(0x3a4)](_0x4c7424['error']);}catch(_0x24aece){return Promise[_0x5b59ea(0x3a4)](_0x24aece);}}async[_0x29c6a6(0x49d)](_0x505358){const _0x41dd5b=_0x29c6a6;let _0x9f08c5='';if(!_o[_0x41dd5b(0x21b)](_0x505358[_0x41dd5b(0x236)]))return this[_0x41dd5b(0x1eb)](),Promise['reject'](new Error(_0x2808dd[_0x41dd5b(0x279)]));if(_0x505358[_0x41dd5b(0x4a2)]>uo)return this['_decreaseWaiting'](),Promise[_0x41dd5b(0x3a4)](new Error(_0x2808dd[_0x41dd5b(0x2cf)]));try{const _0x3da462=new FormData();_0x3da462[_0x41dd5b(0x384)](_0x41dd5b(0x301),_0x505358);const _0xc8aaa1=this[_0x41dd5b(0x313)]()+_0x41dd5b(0x3be)+_0x505358[_0x41dd5b(0x4a2)][_0x41dd5b(0x1d3)](),_0x485579=await(await fetch(_0xc8aaa1,{'method':'POST','body':_0x3da462}))[_0x41dd5b(0x40c)]();if(typeof _0x485579[_0x41dd5b(0x2cd)]!='string')return this[_0x41dd5b(0x1eb)](),Promise[_0x41dd5b(0x3a4)](new Error(_0x2808dd['ERROR_IMAGE']));_0x9f08c5=_0x485579[_0x41dd5b(0x2cd)];}catch{return this[_0x41dd5b(0x1eb)](),Promise['reject'](new Error(_0x2808dd[_0x41dd5b(0x356)]));}return new Promise((_0x541490,_0x34d652)=>{const _0x1ba6a5=_0x41dd5b,_0x54aa7b=new FileReader();_0x54aa7b[_0x1ba6a5(0x1dd)](_0x505358),_0x54aa7b[_0x1ba6a5(0x226)]=_0x991bd1=>{const _0x58431e=_0x1ba6a5;var _0x6a7e1a;const _0x5622ed=(_0x6a7e1a=_0x991bd1['target'])==null?void 0x0:_0x6a7e1a['result'];if(_0x5622ed==null){this[_0x58431e(0x1eb)](),_0x34d652(new Error(_0x2808dd[_0x58431e(0x356)]));return;}const _0x2ccaaa=_0x1394f4['generateRandomId'](0x6);_0x541490({'imageId':_0x2ccaaa,'imageSourceType':_0x23f70d[_0x58431e(0x476)],'source':_0x9f08c5,'base64Cache':_0x5622ed,'status':_0x2808dd['SUCCUSS']}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x40f9ed=_0x29c6a6;var _0x26f345;return(_0x26f345=this[_0x40f9ed(0x211)]['getConfig'](fo))!=null?_0x26f345:go;}[_0x29c6a6(0x24c)](){const _0x1dbd7b=_0x29c6a6;var _0x4aa89;return(_0x4aa89=this[_0x1dbd7b(0x211)][_0x1dbd7b(0x29b)](mo))!=null?_0x4aa89:So;}[_0x29c6a6(0x21a)](_0x426ad2,_0x4d6338){const _0x350549=_0x29c6a6;return _0x426ad2[_0x350549(0x32e)](_0x350549(0x2a4),_0x4d6338);}[_0x29c6a6(0x1eb)](){const _0x5c4ced=_0x29c6a6;this['_waitCount']-=0x1,this[_0x5c4ced(0x3df)]['next'](this[_0x5c4ced(0x366)]);}};It=lo([ss(0x0,_0x558bc4(_0x180bd0)),ss(0x1,_0x575c32)],It);var ys=Object[_0x29c6a6(0x3f3)],vo=Object['getOwnPropertyDescriptor'],po=(_0x3aba43,_0xa1bf5a,_0x25cdae)=>_0xa1bf5a in _0x3aba43?ys(_0x3aba43,_0xa1bf5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25cdae}):_0x3aba43[_0xa1bf5a]=_0x25cdae,Io=(_0x45746a,_0x4e9349,_0x35eb7c,_0x43cc0a)=>{for(var _0x91453a=_0x43cc0a>0x1?void 0x0:_0x43cc0a?vo(_0x4e9349,_0x35eb7c):_0x4e9349,_0x4f4de2=_0x45746a['length']-0x1,_0x4e3870;_0x4f4de2>=0x0;_0x4f4de2--)(_0x4e3870=_0x45746a[_0x4f4de2])&&(_0x91453a=(_0x43cc0a?_0x4e3870(_0x4e9349,_0x35eb7c,_0x91453a):_0x4e3870(_0x91453a))||_0x91453a);return _0x43cc0a&&_0x91453a&&ys(_0x4e9349,_0x35eb7c,_0x91453a),_0x91453a;},is=(_0x40d33e,_0x1ecf61)=>(_0x4a7852,_0x20b0f8)=>_0x1ecf61(_0x4a7852,_0x20b0f8,_0x40d33e),Eo=(_0x882d07,_0x3a6dc3,_0x2b25e6)=>po(_0x882d07,_0x3a6dc3+'',_0x2b25e6);const Co=_0x29c6a6(0x341);let Et=class extends _0x353e3b{constructor(_0x1f1614,_0x41bce4,_0x48b2d4){const _0x1f7605=_0x29c6a6;super(),this['_config']=_0x1f1614,this['_logService']=_0x41bce4,this[_0x1f7605(0x31f)]=_0x48b2d4;}[_0x29c6a6(0x47c)](_0x584475){const _0x2a3f87=_0x29c6a6;var _0x6da73f,_0xb38985,_0x22b18b,_0x1035ec,_0x38cb8c;_0x584475[_0x2a3f87(0x46f)](_0x58b491)&&this[_0x2a3f87(0x214)][_0x2a3f87(0x35b)]('[UniverCollaborationClientPlugin]',_0x2a3f87(0x2f4));let _0x403d76=[[_0x58b491,{'useClass':vt}],[Re],[At],[_0x180bd0],[As,{'useClass':Gr}],[ee],[D],[_0x1ee783],[Ve],[ke],[Be],[Mt],[Ge],[Rs],[bs,{'useClass':(_0xb38985=(_0x6da73f=this[_0x2a3f87(0x3f1)])==null?void 0x0:_0x6da73f[_0x2a3f87(0x33e)])!=null?_0xb38985:_t}],[_0xb8d666,{'useClass':_0x3c390c}],[_0x2e217d,{'useClass':St}],[_0x2f8250,{'useClass':pt}],[_0x2325f4,{'useClass':It}],[Ee],[He],[je],[xe],[ue]];(_0x22b18b=this[_0x2a3f87(0x3f1)])!=null&&_0x22b18b[_0x2a3f87(0x4b9)]&&_0x403d76['push']([Xe,{'useClass':On}]),((_0x1035ec=this[_0x2a3f87(0x3f1)])==null?void 0x0:_0x1035ec[_0x2a3f87(0x2ec)])==null||this[_0x2a3f87(0x3f1)][_0x2a3f87(0x2ec)]['includes'](_0x17600d[_0x2a3f87(0x3b4)])?_0x403d76[_0x2a3f87(0x2f7)]([$e]):this[_0x2a3f87(0x3f1)][_0x2a3f87(0x2ec)]['includes'](_0x17600d[_0x2a3f87(0x3f2)])&&_0x403d76[_0x2a3f87(0x2f7)]([Fe]),_0x403d76=_0x55370c(_0x403d76,(_0x38cb8c=this[_0x2a3f87(0x3f1)])==null?void 0x0:_0x38cb8c[_0x2a3f87(0x3fc)]),_0x403d76[_0x2a3f87(0x31b)](_0x4c48ac=>_0x584475[_0x2a3f87(0x497)](_0x4c48ac)),_0x584475[_0x2a3f87(0x362)](_0x180bd0)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x19e0db({'maxParallel':0x6})}),this['_initModules']();}[_0x29c6a6(0x459)](){const _0x33c440=_0x29c6a6;var _0x3996e2,_0x1001e3;(_0x3996e2=this[_0x33c440(0x3f1)])!=null&&_0x3996e2[_0x33c440(0x3c2)]||this[_0x33c440(0x31f)][_0x33c440(0x362)](D)['disableLocalCache'](),(_0x1001e3=this[_0x33c440(0x3f1)])!=null&&_0x1001e3[_0x33c440(0x1fe)]&&this['_injector']['get'](Ge);}};function _0x34fd(_0x3f7695,_0x5f4b29){const _0x438e10=_0x438e();return _0x34fd=function(_0x34fdc7,_0x77adf){_0x34fdc7=_0x34fdc7-0x1b9;let _0x5416e2=_0x438e10[_0x34fdc7];return _0x5416e2;},_0x34fd(_0x3f7695,_0x5f4b29);}Eo(Et,'pluginName',Co),Et=Io([_0x578ae7(_0x8aafa7),is(0x1,_0x2125ae),is(0x2,_0x558bc4(_0x4ead3f))],Et);export{oo as AUTHZ_URL_KEY,pt as AuthzIoHttpService,an as COLLAB_SUBMIT_CHANGESET_URL_KEY,zi as COLLAB_WEB_SOCKET_URL_KEY,Ee as CollaborationController,ut as CollaborationSession,Re as CollaborationSessionService,_t as CollaborationSocketService,P as CollaborationStatus,Or as CollaborationStatusDisplay,Rs as CommentService,He as DataLoaderController,je as DesktopCollaborationStatusDisplayController,qi as HEARTBEAT_INTERVAL_KEY,Is as HEARTBEAT_TIMEOUT_KEY,bs as ICollaborationSocketService,As as IURLService,rn as LOCAL_CACHE_INTERVAL_KEY,hn as LOGIN_URL_KEY,D as LocalCacheService,Xi as SEND_CHANGESET_TIMEOUT_KEY,Gi as SNAPSHOT_SERVER_URL_KEY,Ki as SNAPSHOT_URL_KEY,_e as SessionStatus,Et as UniverCollaborationClientPlugin,Gr as WebURLService,gn as deserializeToCombResponse,mn as serializeCombRequest};
|
1
|
+
const _0x3e92f2=_0x4256;(function(_0x13a191,_0x24fce6){const _0x43acda=_0x4256,_0x445299=_0x13a191();while(!![]){try{const _0x2e3a8c=-parseInt(_0x43acda(0x479))/0x1*(parseInt(_0x43acda(0x2a1))/0x2)+-parseInt(_0x43acda(0x435))/0x3*(-parseInt(_0x43acda(0x22d))/0x4)+-parseInt(_0x43acda(0x359))/0x5+parseInt(_0x43acda(0x2d8))/0x6*(parseInt(_0x43acda(0x40f))/0x7)+parseInt(_0x43acda(0x34d))/0x8*(parseInt(_0x43acda(0x1cf))/0x9)+parseInt(_0x43acda(0x3ef))/0xa*(-parseInt(_0x43acda(0x2d1))/0xb)+parseInt(_0x43acda(0x277))/0xc*(parseInt(_0x43acda(0x490))/0xd);if(_0x2e3a8c===_0x24fce6)break;else _0x445299['push'](_0x445299['shift']());}catch(_0x29a30c){_0x445299['push'](_0x445299['shift']());}}}(_0x2c8c,0xd7d6b));var Bs=Object['defineProperty'],ks=(_0x4961ee,_0x1ad393,_0x441496)=>_0x1ad393 in _0x4961ee?Bs(_0x4961ee,_0x1ad393,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x441496}):_0x4961ee[_0x1ad393]=_0x441496,l=(_0xc67931,_0x4d29b5,_0x38bb2e)=>ks(_0xc67931,typeof _0x4d29b5!=_0x3e92f2(0x399)?_0x4d29b5+'':_0x4d29b5,_0x38bb2e);import{Disposable as _0x1f0611,toDisposable as _0x38ac23,UniverInstanceType as _0x41ddf6,UserManagerService as _0x3614dc,IUniverInstanceService as _0x5f1ae0,DisposableCollection as _0x10ad9e,IConfigService as _0x523c70,ILogService as _0x46d807,ISnapshotServerService as _0x4e0f91,RxDisposable as _0x4c153b,LocaleService as _0x6789ab,ILocalStorageService as _0x1dfb89,Tools as _0x545ca3,ICommandService as _0x109aa8,JSONX as _0x578d98,IPermissionService as _0x4acf08,IUndoRedoService as _0x1e106e,sequenceExecute as _0x32c463,OnLifecycle as _0x405ab3,LifecycleStages as _0x57f2ea,CommandType as _0x1a41da,Rectangle as _0x301c8d,ThemeService as _0x441ca9,Workbook as _0x15b410,textEncoder as _0x518061,b64DecodeUnicode as _0x2439d9,LocalUndoRedoService as _0x13c2f6,IContextService as _0x114c9b,COLORS as _0x45d551,ColorKit as _0xbc8d5d,isInternalEditorID as _0x3ee33a,Plugin as _0x5e7441,IAuthzIoService as _0x309336,mergeOverrideWithDependencies as _0x2625cc,DependentOn as _0x35cc39}from'@univerjs/core';import{SheetsSelectionsService as _0xebd730,SetSelectionsOperation as _0x594d48,InsertSheetMutation as _0x37a75d,WorkbookEditablePermission as _0xd881f1,RefRangeService as _0x4071b4,EffectRefRangId as _0x1d561a,handleIRemoveRow as _0x58d14e,handleIRemoveCol as _0x46dbc2,handleMoveRange as _0x342dcd,handleInsertRow as _0xf69406,handleInsertRangeMoveRight as _0x41ab06,handleInsertRangeMoveDown as _0x324941,handleInsertCol as _0x392388,handleDeleteRangeMoveUp as _0x2558df,handleDeleteRangeMoveLeft as _0x374c46,runRefRangeMutations as _0x4b852b,SetWorksheetActivateCommand as _0x19d32b}from'@univerjs/sheets';import{MessageType as _0x4f4f06}from'@univerjs/design';import{IBeforeCloseService as _0x17e6fa,IMessageService as _0x5cfd22,INotificationService as _0x47f284,useObservable as _0x26ca96,BuiltInUIPart as _0x4f2b7f,IUIPartsService as _0x49a90c}from'@univerjs/ui';import{CollaborationEvent as _0x34e231,parseChangesetToProtocol as _0x24de41,RevisionService as _0xee930,isTransformMutationFailure as _0x3d6701,isTransformMutationsWithChangesetSuccess as _0x496a31,ITransformService as _0x1b279b,mapDocumentTypeToUniverType as _0x50ce5b,isTransformChangesetsSuccess as _0x27db11,CompressMutationService as _0x59ec89,parseProtocolChangeset as _0x3d7418,SnapshotService as _0x4d5681,isTransformMutationsWithChangesetFailure as _0x27cfca,UniverCollaborationPlugin as _0x5d8040}from'@univerjs-pro/collaboration';import{Inject as _0xbbf94a,createIdentifier as _0x3195f2,Injector as _0xa8f435,Optional as _0x3668b1}from'@wendellhu/redi';import{merge as _0x2b9a75,Subject as _0x440796,BehaviorSubject as _0x4d79d8,distinctUntilChanged as _0x569a4b,fromEvent as _0x236f67,of as _0x53ae42,takeUntil as _0x254c9c,debounceTime as _0x445532,filter as _0x56fcf7,switchMap as _0x10f218,combineLatest as _0x1d32ee,shareReplay as _0x839af7,mapTo as _0x582e14,concatMap as _0x4df13e}from'rxjs';import{map as _0x4ed52e,takeUntil as _0x8dafd9,take as _0x401b81,filter as _0x5e91b7,delay as _0x392c2d,shareReplay as _0x5d4314,switchMap as _0x3bc552}from'rxjs/operators';import{IMEInputManagerService as _0x3a8219,TextSelectionManagerService as _0x3781de,serializeTextRange as _0x167840,DocStateChangeManagerService as _0x250a10,SetTextSelectionsOperation as _0x13752b,RichTextEditingMutation as _0x403372,getDocObject as _0x14e6b6,DocSkeletonManagerService as _0x1e7be0}from'@univerjs/docs';import{HTTPService as _0x50f6b0,WebSocketService as _0x412516,IHTTPImplementation as _0x41641e,XHRHTTPImplementation as _0x4fc2a5,ThresholdInterceptorFactory as _0x43aece}from'@univerjs/network';import{ImageSourceType as _0x1f9734,ImageUploadStatusType as _0x1df9e0,IImageIoService as _0xb0775}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x2565bd,serializeRangeWithSheet as _0x4aaaf4}from'@univerjs/engine-formula';import _0x561342 from'lodash/debounce';import{Shape as _0x28d65b,Rect as _0x1385ec,Vector2 as _0x20338b,IRenderManagerService as _0x5bdf6a,NodePositionConvertToCursor as _0xc0d7bf,getColor as _0x5afff8,TEXT_RANGE_LAYER_INDEX as _0x563281,RegularPolygon as _0x49179d}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x171d84,VIEWPORT_KEY as _0x30f673,getCoordByCell as _0x387ce0,getSheetObject as _0xa91384,SheetPermissionInitController as _0x368f1a}from'@univerjs/sheets-ui';import{useDependency as _0x1e1af6,connectInjector as _0x5396b8}from'@wendellhu/redi/react-bindings';import _0x12e564,{forwardRef as _0xa872f9,useRef as _0x562615,createElement as _0x405505}from'react';import _0x3f0cf9 from'clsx';import{IRemoteInstanceService as _0x2066c7}from'@univerjs/rpc';const Ji='SNAPSHOT_SERVER_URL_KEY',zi='/universer-api/snapshot',qi='SNAPSHOT_URL_KEY',Zi=_0x3e92f2(0x25c),Qi=0x7d0,en=_0x3e92f2(0x454),tn=_0x3e92f2(0x3fa),sn=_0x3e92f2(0x1e0),nn=0x7530,bs=_0x3e92f2(0x334),Ts=0x2710,rn=_0x3e92f2(0x2ff),on=0x4e20,an=_0x3e92f2(0x3ec),cn=0x3,hn=_0x3e92f2(0x23a),ln=0x3e8,_n=_0x3e92f2(0x44b),un='/universer-api/comb',dn='LOGIN_URL_KEY',fn=_0x3e92f2(0x2ea);var Rs=(_0x4292e7=>(_0x4292e7[_0x4292e7[_0x3e92f2(0x3c8)]=0x0]=_0x3e92f2(0x3c8),_0x4292e7[_0x4292e7['OK']=0x1]='OK',_0x4292e7[_0x4292e7[_0x3e92f2(0x4a6)]=0x2]=_0x3e92f2(0x4a6),_0x4292e7[_0x4292e7[_0x3e92f2(0x224)]=0x3]=_0x3e92f2(0x224),_0x4292e7[_0x4292e7[_0x3e92f2(0x426)]=0x4]=_0x3e92f2(0x426),_0x4292e7[_0x4292e7[_0x3e92f2(0x234)]=0x5]=_0x3e92f2(0x234),_0x4292e7[_0x4292e7['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x4292e7[_0x4292e7['INVALID_ARGUMENT']=0x7]=_0x3e92f2(0x46a),_0x4292e7[_0x4292e7[_0x3e92f2(0x381)]=0x8]=_0x3e92f2(0x381),_0x4292e7[_0x4292e7['COMPLETION_FINISHED']=0x9]=_0x3e92f2(0x429),_0x4292e7[_0x4292e7[_0x3e92f2(0x320)]=0x1389]=_0x3e92f2(0x320),_0x4292e7[_0x4292e7[_0x3e92f2(0x3f3)]=0x1771]=_0x3e92f2(0x3f3),_0x4292e7[_0x4292e7['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x3e92f2(0x363),_0x4292e7[_0x4292e7[_0x3e92f2(0x24f)]=0x1b59]=_0x3e92f2(0x24f),_0x4292e7[_0x4292e7[_0x3e92f2(0x31b)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4292e7[_0x4292e7[_0x3e92f2(0x281)]=0x1b5b]=_0x3e92f2(0x281),_0x4292e7[_0x4292e7['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x3e92f2(0x247),_0x4292e7[_0x4292e7[_0x3e92f2(0x228)]=0x1f41]=_0x3e92f2(0x228),_0x4292e7[_0x4292e7['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3e92f2(0x2ae),_0x4292e7[_0x4292e7[_0x3e92f2(0x1c8)]=0x232a]=_0x3e92f2(0x1c8),_0x4292e7[_0x4292e7[_0x3e92f2(0x27a)]=0x232b]=_0x3e92f2(0x27a),_0x4292e7[_0x4292e7['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3e92f2(0x254),_0x4292e7[_0x4292e7[_0x3e92f2(0x39d)]=0x232d]=_0x3e92f2(0x39d),_0x4292e7[_0x4292e7[_0x3e92f2(0x23d)]=0x2711]=_0x3e92f2(0x23d),_0x4292e7[_0x4292e7[_0x3e92f2(0x47c)]=0x2712]=_0x3e92f2(0x47c),_0x4292e7[_0x4292e7[_0x3e92f2(0x4ad)]=-0x1]=_0x3e92f2(0x4ad),_0x4292e7))(Rs||{}),H=(_0x110c19=>(_0x110c19[_0x110c19[_0x3e92f2(0x1b6)]=0x0]=_0x3e92f2(0x1b6),_0x110c19[_0x110c19['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x110c19[_0x110c19[_0x3e92f2(0x241)]=0x2]='UNIVER_SHEET',_0x110c19[_0x110c19[_0x3e92f2(0x1c3)]=0x3]=_0x3e92f2(0x1c3),_0x110c19[_0x110c19[_0x3e92f2(0x4ad)]=-0x1]='UNRECOGNIZED',_0x110c19))(H||{}),I=(_0xf4b10e=>(_0xf4b10e[_0xf4b10e[_0x3e92f2(0x22c)]=0x0]='UNKNOWN_CMD',_0xf4b10e[_0xf4b10e['HELLO']=0x1]=_0x3e92f2(0x425),_0xf4b10e[_0xf4b10e[_0x3e92f2(0x481)]=0x2]=_0x3e92f2(0x481),_0xf4b10e[_0xf4b10e[_0x3e92f2(0x393)]=0x3]=_0x3e92f2(0x393),_0xf4b10e[_0xf4b10e[_0x3e92f2(0x32f)]=0x4]=_0x3e92f2(0x32f),_0xf4b10e[_0xf4b10e[_0x3e92f2(0x29a)]=0x5]=_0x3e92f2(0x29a),_0xf4b10e[_0xf4b10e[_0x3e92f2(0x3fd)]=0x6]='RECV',_0xf4b10e[_0xf4b10e[_0x3e92f2(0x4ad)]=-0x1]='UNRECOGNIZED',_0xf4b10e))(I||{}),Ut=(_0x14f64f=>(_0x14f64f[_0x14f64f[_0x3e92f2(0x2c8)]=0x0]=_0x3e92f2(0x2c8),_0x14f64f[_0x14f64f['OK']=0x1]='OK',_0x14f64f[_0x14f64f[_0x3e92f2(0x3a4)]=0x2]=_0x3e92f2(0x3a4),_0x14f64f[_0x14f64f['UNRECOGNIZED']=-0x1]=_0x3e92f2(0x4ad),_0x14f64f))(Ut||{}),mn=Object[_0x3e92f2(0x340)],gn=Object[_0x3e92f2(0x2d2)],Sn=(_0x10e421,_0x47da6d,_0x26fcc3,_0x3d1347)=>{for(var _0x3533ee=_0x3d1347>0x1?void 0x0:_0x3d1347?gn(_0x47da6d,_0x26fcc3):_0x47da6d,_0x538221=_0x10e421['length']-0x1,_0x3f26e5;_0x538221>=0x0;_0x538221--)(_0x3f26e5=_0x10e421[_0x538221])&&(_0x3533ee=(_0x3d1347?_0x3f26e5(_0x47da6d,_0x26fcc3,_0x3533ee):_0x3f26e5(_0x3533ee))||_0x3533ee);return _0x3d1347&&_0x3533ee&&mn(_0x47da6d,_0x26fcc3,_0x3533ee),_0x3533ee;},Kt=(_0x5ceb11,_0x2df306)=>(_0x180c23,_0x23ce03)=>_0x2df306(_0x180c23,_0x23ce03,_0x5ceb11);let ne=class extends _0x1f0611{constructor(_0x547e7a,_0x5312e1){const _0x11dcaf=_0x3e92f2;super(),l(this,_0x11dcaf(0x398),new Map()),(this[_0x11dcaf(0x1ef)]=_0x547e7a,this[_0x11dcaf(0x2f3)]=_0x5312e1,this[_0x11dcaf(0x280)](_0x38ac23(_0x2b9a75(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x41ddf6[_0x11dcaf(0x241)])[_0x11dcaf(0x407)](_0x4ed52e(_0x49abd0=>_0x49abd0[_0x11dcaf(0x47a)]())),this[_0x11dcaf(0x1ef)][_0x11dcaf(0x319)](_0x41ddf6[_0x11dcaf(0x2e1)])[_0x11dcaf(0x407)](_0x4ed52e(_0x131abf=>_0x131abf[_0x11dcaf(0x47a)]())),this[_0x11dcaf(0x1ef)][_0x11dcaf(0x319)](_0x41ddf6['UNIVER_SLIDE'])[_0x11dcaf(0x407)](_0x4ed52e(_0x5e48d3=>_0x5e48d3[_0x11dcaf(0x47a)]())))[_0x11dcaf(0x4be)](_0x2ec825=>this[_0x11dcaf(0x4a7)](_0x2ec825)))));}[_0x3e92f2(0x27c)](_0x32e28a){const _0x5688=_0x3e92f2;this[_0x5688(0x2f3)][_0x5688(0x27c)](_0x32e28a);}['getCurrentUser'](){return this['_userManagerService']['getCurrentUser']();}['updateMember'](_0x289eda,_0x28f3e3){const _0x4f52fe=_0x3e92f2;let _0xf94eb8=this[_0x4f52fe(0x398)]['get'](_0x289eda);_0xf94eb8||(_0xf94eb8=new vn(),this[_0x4f52fe(0x398)][_0x4f52fe(0x2bc)](_0x289eda,_0xf94eb8)),_0xf94eb8['updateMember'](_0x28f3e3);}[_0x3e92f2(0x1a2)](_0x198b39,_0x1b5dd5){const _0x1512e0=_0x3e92f2,_0x4eaf85=this[_0x1512e0(0x398)][_0x1512e0(0x2d5)](_0x198b39);_0x4eaf85&&_0x4eaf85[_0x1512e0(0x1a2)](_0x1b5dd5);}[_0x3e92f2(0x44f)](_0xd49c01){const _0x3b49a5=_0x3e92f2;return this[_0x3b49a5(0x398)]['get'](_0xd49c01);}['getMember'](_0x33b9ce,_0x386386){const _0x225119=_0x3e92f2,_0x30d507=this[_0x225119(0x398)][_0x225119(0x2d5)](_0x33b9ce);if(_0x30d507)return _0x30d507[_0x225119(0x311)](_0x386386);}[_0x3e92f2(0x4a7)](_0x2fa812){const _0x3345f4=_0x3e92f2,_0x1ba948=this['_roomMembers'][_0x3345f4(0x2d5)](_0x2fa812);_0x1ba948&&(_0x1ba948[_0x3345f4(0x25d)](),this['_roomMembers'][_0x3345f4(0x36f)](_0x2fa812));}[_0x3e92f2(0x25d)](){this['_roomMembers']['forEach'](_0x23cf59=>_0x23cf59['dispose']()),this['_roomMembers']['clear']();}};ne=Sn([Kt(0x0,_0x5f1ae0),Kt(0x1,_0xbbf94a(_0x3614dc))],ne);function _0x4256(_0x589c55,_0x4c59d7){const _0x2c8c67=_0x2c8c();return _0x4256=function(_0x425665,_0x342c70){_0x425665=_0x425665-0x193;let _0x3b801f=_0x2c8c67[_0x425665];return _0x3b801f;},_0x4256(_0x589c55,_0x4c59d7);}class vn extends _0x1f0611{constructor(){const _0x458eb9=_0x3e92f2;super(...arguments),l(this,_0x458eb9(0x477),new Map());}[_0x3e92f2(0x25d)](){const _0x941e0e=_0x3e92f2;this[_0x941e0e(0x477)]['clear']();}['updateMember'](_0x2ae875){const _0x145483=_0x3e92f2;this[_0x145483(0x477)][_0x145483(0x2bc)](_0x2ae875[_0x145483(0x35a)],_0x2ae875);}[_0x3e92f2(0x1a2)](_0x4dba5b){const _0x47806f=_0x3e92f2;this['_members'][_0x47806f(0x36f)](_0x4dba5b);}['getMember'](_0x376cff){const _0x5ee0b3=_0x3e92f2;return this['_members'][_0x5ee0b3(0x2d5)](_0x376cff);}}function pn(_0x6ced89){const _0x18ae27=_0x3e92f2;var _0x296853,_0x3e3344,_0x40d5ff,_0x70bb29;const _0x5dbe79=_0x6ced89[_0x18ae27(0x208)],_0x1d00f8=JSON[_0x18ae27(0x47f)](_0x5dbe79);switch(_0x1d00f8['cmd']){case I[_0x18ae27(0x29a)]:case I[_0x18ae27(0x425)]:{const _0x1caf85=_0x1d00f8[_0x18ae27(0x297)];return{..._0x1d00f8,'data':_0x1caf85,'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};}case I[_0x18ae27(0x481)]:{const _0x348ec0=_0x1d00f8['joinRsp'];return{..._0x1d00f8,'data':_0x348ec0,'cmd':_0x1d00f8['cmd']};}case I[_0x18ae27(0x3fd)]:{const _0x19a65a=_0x1d00f8[_0x18ae27(0x255)];switch(_0x19a65a[_0x18ae27(0x1af)]){case _0x34e231[_0x18ae27(0x1c1)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':(_0x296853=_0x19a65a[_0x18ae27(0x3bb)])==null?void 0x0:_0x296853['cs']},'cmd':_0x1d00f8['cmd']};case _0x34e231['CHANGESET_ACK']:return{..._0x1d00f8,'data':{..._0x19a65a,'data':(_0x3e3344=_0x19a65a[_0x18ae27(0x21c)])==null?void 0x0:_0x3e3344['cs']},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231['NEW_CHANGESETS']:return{..._0x1d00f8,'data':{..._0x19a65a,'data':(_0x40d5ff=_0x19a65a['newCsEvent'])==null?void 0x0:_0x40d5ff['cs']},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231[_0x18ae27(0x201)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':(_0x70bb29=_0x19a65a[_0x18ae27(0x445)])==null?void 0x0:_0x70bb29['cs']},'cmd':_0x1d00f8['cmd']};case _0x34e231[_0x18ae27(0x226)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a[_0x18ae27(0x1e1)]},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231[_0x18ae27(0x3e0)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a[_0x18ae27(0x309)]},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231['USERS_LEAVE']:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a[_0x18ae27(0x225)]},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231[_0x18ae27(0x3b4)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a['liveShareNewHost']},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231[_0x18ae27(0x3d3)]:case _0x34e231[_0x18ae27(0x2d6)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a[_0x18ae27(0x1eb)]},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231[_0x18ae27(0x1cb)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a[_0x18ae27(0x304)]},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231['MSG_FOR_ERROR']:return{..._0x1d00f8,'data':_0x19a65a,'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231[_0x18ae27(0x1c4)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a['commentUpdateEvent']},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231[_0x18ae27(0x3be)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a[_0x18ae27(0x3d9)]},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231[_0x18ae27(0x45e)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a['shouldCloseConn']},'cmd':_0x1d00f8['cmd']};default:return _0x1d00f8;}}default:return _0x1d00f8;}}function In(_0x2373b0){const _0x462d19=_0x3e92f2;switch(_0x2373b0[_0x462d19(0x1a1)]){case I['HEARTBEAT']:case I[_0x462d19(0x425)]:return JSON['stringify']({'cmd':_0x2373b0[_0x462d19(0x1a1)],'routeKey':_0x2373b0['routeKey']});case I[_0x462d19(0x32f)]:{let _0xdde9cb;switch(_0x2373b0[_0x462d19(0x208)][_0x462d19(0x1af)]){case _0x34e231[_0x462d19(0x226)]:{_0xdde9cb={'eventID':_0x34e231['UPDATE_CURSOR'],'updateCursorEvent':_0x2373b0[_0x462d19(0x208)][_0x462d19(0x208)]};break;}case _0x34e231[_0x462d19(0x462)]:{_0xdde9cb={'eventID':_0x34e231[_0x462d19(0x462)],'leaveEvent':_0x2373b0[_0x462d19(0x208)]['data']};break;}case _0x34e231['USERS_ENTER']:{_0xdde9cb={'eventID':_0x34e231[_0x462d19(0x3e0)],'joinEvent':_0x2373b0[_0x462d19(0x208)][_0x462d19(0x208)]};break;}case _0x34e231[_0x462d19(0x3b4)]:{_0xdde9cb={'eventID':_0x34e231['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2373b0[_0x462d19(0x208)][_0x462d19(0x208)]};break;}case _0x34e231[_0x462d19(0x2d6)]:{_0xdde9cb={'eventID':_0x34e231[_0x462d19(0x2d6)],'liveShareOperation':_0x2373b0[_0x462d19(0x208)][_0x462d19(0x208)]};break;}case _0x34e231[_0x462d19(0x1cb)]:{_0xdde9cb={'eventID':_0x34e231[_0x462d19(0x1cb)],'liveShareTerminate':_0x2373b0[_0x462d19(0x208)][_0x462d19(0x208)]};break;}case _0x34e231[_0x462d19(0x335)]:{_0xdde9cb={'eventID':_0x34e231[_0x462d19(0x335)],'liveShareRequestHost':_0x2373b0['data'][_0x462d19(0x208)]};break;}case _0x34e231[_0x462d19(0x3d3)]:{_0xdde9cb={'eventID':_0x34e231[_0x462d19(0x3d3)]};break;}default:_0xdde9cb={'eventID':_0x2373b0[_0x462d19(0x208)][_0x462d19(0x1af)]};}return JSON[_0x462d19(0x20d)]({'cmd':_0x2373b0['cmd'],'routeKey':_0x2373b0['routeKey'],'collaMsg':_0xdde9cb});}case I[_0x462d19(0x481)]:return JSON[_0x462d19(0x20d)]({'cmd':_0x2373b0[_0x462d19(0x1a1)],'routeKey':_0x2373b0[_0x462d19(0x3d8)],'joinReq':_0x2373b0[_0x462d19(0x208)]});case I[_0x462d19(0x393)]:return JSON[_0x462d19(0x20d)]({'cmd':_0x2373b0[_0x462d19(0x1a1)],'routeKey':_0x2373b0['routeKey'],'leaveReq':_0x2373b0[_0x462d19(0x208)]});default:throw new Error(_0x462d19(0x2f6));}}var En=Object[_0x3e92f2(0x340)],Cn=Object[_0x3e92f2(0x2d2)],bn=(_0x2774df,_0x5802ca,_0x56d7f8,_0x5d687b)=>{const _0x5bcb95=_0x3e92f2;for(var _0x53af55=_0x5d687b>0x1?void 0x0:_0x5d687b?Cn(_0x5802ca,_0x56d7f8):_0x5802ca,_0x34132b=_0x2774df[_0x5bcb95(0x1a4)]-0x1,_0x30f43a;_0x34132b>=0x0;_0x34132b--)(_0x30f43a=_0x2774df[_0x34132b])&&(_0x53af55=(_0x5d687b?_0x30f43a(_0x5802ca,_0x56d7f8,_0x53af55):_0x30f43a(_0x53af55))||_0x53af55);return _0x5d687b&&_0x53af55&&En(_0x5802ca,_0x56d7f8,_0x53af55),_0x53af55;},Ee=(_0x1f84bd,_0x65849d)=>(_0x1ba686,_0x2fc3cf)=>_0x65849d(_0x1ba686,_0x2fc3cf,_0x1f84bd);const Os=_0x3195f2(_0x3e92f2(0x2cd));function Tn(_0x4d277c,_0x35daff,_0x5cb55f){const _0x4ef394=_0x3e92f2;return _0x4d277c+'/'+_0x35daff+_0x4ef394(0x1e7)+_0x5cb55f+'/new_changes';}let gt=class{constructor(_0x5e6f47,_0x386380,_0x50c2b9,_0x4deaef,_0x478926){const _0x398bb2=_0x3e92f2;this[_0x398bb2(0x1a5)]=_0x5e6f47,this[_0x398bb2(0x25b)]=_0x386380,this['_configService']=_0x50c2b9,this[_0x398bb2(0x27b)]=_0x4deaef,this[_0x398bb2(0x21f)]=_0x478926;}[_0x3e92f2(0x37d)](_0xe1f381){const _0x1538b8=_0x3e92f2,_0xe53dc6=this[_0x1538b8(0x25b)]['createSocket'](_0xe1f381);if(!_0xe53dc6)throw new Error(_0x1538b8(0x2f5));const _0x58dfba=new _0x10ad9e(),_0x3b1f37=new _0x440796();_0x58dfba[_0x1538b8(0x35d)](_0x38ac23(_0xe53dc6[_0x1538b8(0x326)][_0x1538b8(0x4be)](_0x42e916=>_0x3b1f37[_0x1538b8(0x3ea)](_0x42e916)))),_0x58dfba[_0x1538b8(0x35d)](_0x38ac23(()=>_0x3b1f37[_0x1538b8(0x2e4)]()));const _0x592ec6=new _0x440796();_0x58dfba['add'](_0x38ac23(_0xe53dc6['error$'][_0x1538b8(0x4be)](_0x2b6003=>_0x592ec6[_0x1538b8(0x3ea)](_0x2b6003)))),_0x58dfba[_0x1538b8(0x35d)](_0x38ac23(()=>_0x592ec6[_0x1538b8(0x2e4)]()));const _0x38fe7a=new _0x440796();_0x58dfba[_0x1538b8(0x35d)](_0x38ac23(_0xe53dc6[_0x1538b8(0x40c)][_0x1538b8(0x4be)](_0x2b7d64=>{const _0x24c721=_0x1538b8,_0x456738=pn(_0x2b7d64);_0x38fe7a[_0x24c721(0x3ea)](_0x456738);}))),_0x58dfba[_0x1538b8(0x35d)](_0x38ac23(()=>_0x38fe7a[_0x1538b8(0x2e4)]()));const _0x1fbba3=()=>{const _0x4c7ab8=_0x1538b8;_0x592ec6[_0x4c7ab8(0x3ea)](new Event('connection\x20error')),_0x3b1f37[_0x4c7ab8(0x3ea)](new CloseEvent(_0x4c7ab8(0x2ab))),_0x3d49df[_0x4c7ab8(0x1ad)]();},_0x3d49df={'memberID':'','close$':_0x3b1f37[_0x1538b8(0x423)](),'error$':_0x592ec6['asObservable'](),'open$':_0xe53dc6[_0x1538b8(0x484)],'message$':_0x38fe7a[_0x1538b8(0x423)](),'send':_0x32225f=>{const _0x479a89=_0x1538b8;if(_0x32225f[_0x479a89(0x1a1)]===I[_0x479a89(0x32f)]){if(_0x32225f[_0x479a89(0x208)][_0x479a89(0x1af)]===_0x34e231[_0x479a89(0x44d)]){this['_submitChangeset'](_0x3d49df,_0x32225f[_0x479a89(0x208)])['catch'](_0x574256=>{const _0x16ec64=_0x479a89;this[_0x16ec64(0x27b)][_0x16ec64(0x23c)](_0x574256),_0x1fbba3();});return;}if(_0x32225f[_0x479a89(0x208)][_0x479a89(0x1af)]===_0x34e231[_0x479a89(0x2c4)]){const _0x5f8592=_0x32225f[_0x479a89(0x208)];this['_fetchMissChangesets'](_0x5f8592)['then'](_0xf3c5bf=>{const _0x53c845=_0x479a89;_0x38fe7a['next']({'cmd':I['RECV'],'code':Ut['OK'],'routeKey':_0x5f8592[_0x53c845(0x208)][_0x53c845(0x3ca)],'routeType':'','data':{'eventID':_0x34e231[_0x53c845(0x374)],'data':{'changesets':_0xf3c5bf}}});})[_0x479a89(0x466)](_0x58ebf7=>{const _0x3f87d1=_0x479a89;this[_0x3f87d1(0x27b)][_0x3f87d1(0x23c)](_0x58ebf7),_0x1fbba3();});return;}}_0xe53dc6['send'](In(_0x32225f));},'close':()=>{const _0x4f008c=_0x1538b8;_0xe53dc6[_0x4f008c(0x1ad)](),_0x58dfba[_0x4f008c(0x25d)]();}};return _0x3d49df;}async[_0x3e92f2(0x24b)](_0x4e84e0,_0x2e13cf){const _0x3d9089=_0x3e92f2;var _0x974fd9;const {unitType:_0x29ea58,unitID:_0x790483,changeset:_0x271ebf}=_0x2e13cf[_0x3d9089(0x208)],_0x2a54f8={'unitID':_0x790483,'memberID':_0x4e84e0['memberID'],'type':_0x29ea58,'changeset':_0x24de41(_0x271ebf)},_0x4ff43e=Tn((_0x974fd9=this[_0x3d9089(0x292)][_0x3d9089(0x361)](_n))!=null?_0x974fd9:un,_0x29ea58,_0x790483);try{await this[_0x3d9089(0x1a5)][_0x3d9089(0x2f9)](_0x4ff43e,{'body':_0x2a54f8});}catch(_0x27574f){throw this['_logService'][_0x3d9089(0x23c)](_0x3d9089(0x256),_0x3d9089(0x467)),_0x27574f;}}async[_0x3e92f2(0x4c4)](_0x255e74){const _0x35b204=_0x3e92f2,{unitID:_0x5860ed,from:_0x394b4b,to:_0x582892,unitType:_0x5da5e4}=_0x255e74[_0x35b204(0x208)];return(await this[_0x35b204(0x21f)][_0x35b204(0x39e)]({'metadata':void 0x0},{'unitID':_0x5860ed,'type':_0x5da5e4,'from':_0x394b4b,'to':_0x582892}))[_0x35b204(0x4c2)];}};gt=bn([Ee(0x0,_0xbbf94a(_0x50f6b0)),Ee(0x1,_0xbbf94a(_0x412516)),Ee(0x2,_0x523c70),Ee(0x3,_0x46d807),Ee(0x4,_0x4e0f91)],gt);class Ds{constructor(){const _0x12e1bf=_0x3e92f2;l(this,'_commentUpdate$',new _0x440796()),l(this,_0x12e1bf(0x1d2),this[_0x12e1bf(0x437)]['asObservable']());}[_0x3e92f2(0x3b5)](_0x36242c){const _0x29b878=_0x3e92f2;this[_0x29b878(0x437)][_0x29b878(0x3ea)](_0x36242c);}}var Rn=Object[_0x3e92f2(0x340)],On=Object[_0x3e92f2(0x2d2)],ws=(_0x595b55,_0x1f0c7a,_0x513d1c,_0x443ba5)=>{const _0xb2a3a3=_0x3e92f2;for(var _0x4c6cf3=_0x443ba5>0x1?void 0x0:_0x443ba5?On(_0x1f0c7a,_0x513d1c):_0x1f0c7a,_0x3c39d3=_0x595b55[_0xb2a3a3(0x1a4)]-0x1,_0x220a8f;_0x3c39d3>=0x0;_0x3c39d3--)(_0x220a8f=_0x595b55[_0x3c39d3])&&(_0x4c6cf3=(_0x443ba5?_0x220a8f(_0x1f0c7a,_0x513d1c,_0x4c6cf3):_0x220a8f(_0x4c6cf3))||_0x4c6cf3);return _0x443ba5&&_0x4c6cf3&&Rn(_0x1f0c7a,_0x513d1c,_0x4c6cf3),_0x4c6cf3;},M=(_0x846bac,_0x18e51b)=>(_0x3132bf,_0x227dba)=>_0x18e51b(_0x3132bf,_0x227dba,_0x846bac),de=(_0x34868a=>(_0x34868a[_0x34868a['IDLE']=0x0]=_0x3e92f2(0x46b),_0x34868a[_0x34868a[_0x3e92f2(0x2b5)]=0x1]='JOINING',_0x34868a[_0x34868a[_0x3e92f2(0x461)]=0x2]=_0x3e92f2(0x461),_0x34868a[_0x34868a[_0x3e92f2(0x405)]=0x3]=_0x3e92f2(0x405),_0x34868a))(de||{});let St=class extends _0x4c153b{constructor(_0xc9c2d3,_0x58923f,_0x44dff6,_0x49e8ad,_0x5d415a,_0x74d53a,_0x432edf,_0x5a8b47,_0x49a198){const _0x38faf5=_0x3e92f2;super(),l(this,_0x38faf5(0x377),new _0x4d79d8(0x0)),l(this,_0x38faf5(0x397),this[_0x38faf5(0x377)][_0x38faf5(0x423)]()),l(this,_0x38faf5(0x3a0),new _0x440796()),l(this,_0x38faf5(0x2c7),this[_0x38faf5(0x3a0)]['asObservable']()),l(this,_0x38faf5(0x32e)),l(this,_0x38faf5(0x28e)),l(this,_0x38faf5(0x1c9)),(this[_0x38faf5(0x2b1)]=_0xc9c2d3,this[_0x38faf5(0x27b)]=_0x44dff6,this[_0x38faf5(0x1ee)]=_0x49e8ad,this[_0x38faf5(0x458)]=_0x5d415a,this['_configService']=_0x74d53a,this[_0x38faf5(0x4b3)]=_0x432edf,this['_memberService']=_0x5a8b47,this[_0x38faf5(0x307)]=_0x49a198,_0x58923f[_0x38faf5(0x407)](_0x8dafd9(this[_0x38faf5(0x4b2)]))[_0x38faf5(0x4be)](_0x4c5572=>{const _0x3d9b42=_0x38faf5;var _0x30cf6d;typeof _0x4c5572>'u'||(this['_socket']=_0x4c5572,_0x4c5572?(this[_0x3d9b42(0x48d)](_0x4c5572),this[_0x3d9b42(0x28e)]=this[_0x3d9b42(0x32e)]['message$']['subscribe'](_0xe6326d=>{const _0x1f246f=_0x3d9b42;_0xe6326d[_0x1f246f(0x3d8)]===this[_0x1f246f(0x2b1)]&&this[_0x1f246f(0x26b)](_0xe6326d);})):(this['_sessionStatus$'][_0x3d9b42(0x3ea)](0x2),(_0x30cf6d=this[_0x3d9b42(0x28e)])==null||_0x30cf6d[_0x3d9b42(0x3b0)](),this[_0x3d9b42(0x28e)]=null));}),this[_0x38faf5(0x280)](this[_0x38faf5(0x1ee)]['registerOnClose'](()=>{const _0x39c975=_0x38faf5;var _0x2945cf;(_0x2945cf=this['_socket'])==null||_0x2945cf[_0x39c975(0x229)]({'cmd':I[_0x39c975(0x393)],'data':{'roomID':this[_0x39c975(0x2b1)]}});})));}get['sessionStatus'](){const _0x5319d0=_0x3e92f2;return this['_sessionStatus$'][_0x5319d0(0x43c)]();}['getMemberID'](){const _0x2cb276=_0x3e92f2;var _0x47c00e,_0x341c6b;return(_0x341c6b=(_0x47c00e=this[_0x2cb276(0x32e)])==null?void 0x0:_0x47c00e[_0x2cb276(0x35a)])!=null?_0x341c6b:null;}[_0x3e92f2(0x25d)](){const _0x484f36=_0x3e92f2;super[_0x484f36(0x25d)](),this['dispose$'][_0x484f36(0x3ea)](),this['dispose$'][_0x484f36(0x2e4)]();}[_0x3e92f2(0x26b)](_0x5727ff){const _0x3122aa=_0x3e92f2;_0x5727ff[_0x3122aa(0x1a1)]===I['JOIN']?this[_0x3122aa(0x1e9)](_0x5727ff):_0x5727ff[_0x3122aa(0x1a1)]===I[_0x3122aa(0x3fd)]&&this[_0x3122aa(0x4c9)](_0x5727ff);}[_0x3e92f2(0x48d)](_0xcab2f8){const _0x42772e=_0x3e92f2;this['_sessionStatus$']['next'](0x1),_0xcab2f8[_0x42772e(0x229)]({'cmd':I[_0x42772e(0x481)],'routeKey':this[_0x42772e(0x2b1)],'routeType':'','data':{'rooms':[{'roomID':this[_0x42772e(0x2b1)]}]}});}[_0x3e92f2(0x1e9)](_0x4dd490){const _0x133835=_0x3e92f2;var _0xa69ad7;if(_0x4dd490[_0x133835(0x193)]===Ut[_0x133835(0x3a4)]){this[_0x133835(0x458)]['show']({'type':_0x4f4f06[_0x133835(0x1b1)],'content':this[_0x133835(0x4b3)]['t'](_0x133835(0x40a))}),this[_0x133835(0x377)][_0x133835(0x3ea)](0x2);return;}this['_sessionStatus$']['next'](0x3);const _0x26bc88=(_0xa69ad7=_0x4dd490['data'][_0x133835(0x298)][this[_0x133835(0x2b1)]])==null?void 0x0:_0xa69ad7['members'];_0x26bc88&&_0x26bc88[_0x133835(0x1b8)](_0x4884c2=>this[_0x133835(0x29e)][_0x133835(0x244)](this[_0x133835(0x2b1)],_0x4884c2));}[_0x3e92f2(0x4c9)](_0xf2f175){const _0x3f90be=_0x3e92f2;try{const _0x31ef53=_0xf2f175['data'];switch(_0x31ef53[_0x3f90be(0x1af)]){case _0x34e231[_0x3f90be(0x3e0)]:this[_0x3f90be(0x36a)](_0x31ef53),this[_0x3f90be(0x3a0)][_0x3f90be(0x3ea)](_0x31ef53);break;case _0x34e231[_0x3f90be(0x462)]:this[_0x3f90be(0x2aa)](_0x31ef53),this[_0x3f90be(0x3a0)][_0x3f90be(0x3ea)](_0x31ef53);break;case _0x34e231[_0x3f90be(0x45b)]:this[_0x3f90be(0x413)](),this[_0x3f90be(0x3a0)][_0x3f90be(0x3ea)](_0x31ef53);break;case _0x34e231[_0x3f90be(0x4c3)]:this[_0x3f90be(0x27b)]['error'](_0x3f90be(0x376)+JSON['stringify'](_0x31ef53)),this['_event$'][_0x3f90be(0x3ea)](_0x31ef53);break;case _0x34e231['COMMENT_UPDATE']:this[_0x3f90be(0x307)][_0x3f90be(0x3b5)](_0x31ef53['data']),this['_event$']['next'](_0x31ef53);break;default:this[_0x3f90be(0x3a0)][_0x3f90be(0x3ea)](_0x31ef53);}}catch(_0x53545e){this[_0x3f90be(0x27b)][_0x3f90be(0x23c)](_0x53545e,_0xf2f175);}}[_0x3e92f2(0x36a)](_0x4921db){const _0xb271cf=_0x3e92f2;this[_0xb271cf(0x29e)]['updateMember'](this[_0xb271cf(0x2b1)],_0x4921db[_0xb271cf(0x208)]);}[_0x3e92f2(0x2aa)](_0x238911){const _0x5b141a=_0x3e92f2;this['_memberService']['removeMember'](this[_0x5b141a(0x2b1)],_0x238911['data'][_0x5b141a(0x35a)]);}async[_0x3e92f2(0x229)](_0x2f0ace,_0x28256f){const _0x188f40=_0x3e92f2;if(this[_0x188f40(0x411)]!==0x3||!this[_0x188f40(0x32e)])throw new Error(_0x188f40(0x19c));try{_0x2f0ace[_0x188f40(0x1af)]===_0x34e231[_0x188f40(0x1ce)]&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x188f40(0x32e)][_0x188f40(0x229)]({'cmd':I[_0x188f40(0x32f)],'routeKey':_0x28256f,'routeType':'','data':_0x2f0ace});}catch(_0x5b5204){this['_logService'][_0x188f40(0x23c)](_0x5b5204);}}['_scheduleCollaborationTimeoutTimer'](){const _0x70971=_0x3e92f2;var _0x32876a;this['_collaborationTimeoutTimer']=window[_0x70971(0x33f)](()=>{const _0x220c24=_0x70971;this[_0x220c24(0x1c9)]=null,this['_messageService'][_0x220c24(0x3a7)]({'type':_0x4f4f06[_0x220c24(0x19f)],'content':this[_0x220c24(0x4b3)]['t'](_0x220c24(0x366))});},(_0x32876a=this[_0x70971(0x292)][_0x70971(0x361)](bs))!=null?_0x32876a:Ts);}[_0x3e92f2(0x413)](){const _0x1f706f=_0x3e92f2;this[_0x1f706f(0x1c9)]&&(clearTimeout(this[_0x1f706f(0x1c9)]),this[_0x1f706f(0x1c9)]=null);}};St=ws([M(0x2,_0x46d807),M(0x3,_0x17e6fa),M(0x4,_0x5cfd22),M(0x5,_0x523c70),M(0x6,_0xbbf94a(_0x6789ab)),M(0x7,_0xbbf94a(ne)),M(0x8,_0xbbf94a(Ds))],St);let ge=class extends _0x1f0611{constructor(_0xbf4629,_0x502c91,_0x568772,_0x3b0556,_0x3a345d,_0x4a8cd6){const _0x28311e=_0x3e92f2;super(),l(this,_0x28311e(0x1d7),new _0x4d79d8(void 0x0)),l(this,_0x28311e(0x38e),new Map()),l(this,_0x28311e(0x489),new _0x4d79d8(0x0)),l(this,_0x28311e(0x4a1),this[_0x28311e(0x489)][_0x28311e(0x423)]()),l(this,_0x28311e(0x26e),!0x1),l(this,_0x28311e(0x37a)),l(this,_0x28311e(0x23e)),l(this,_0x28311e(0x3e7)),l(this,_0x28311e(0x337),0x0),(this[_0x28311e(0x443)]=_0xbf4629,this[_0x28311e(0x4b3)]=_0x502c91,this[_0x28311e(0x458)]=_0x568772,this['_logService']=_0x3b0556,this[_0x28311e(0x292)]=_0x3a345d,this[_0x28311e(0x2af)]=_0x4a8cd6);}get['_socket'](){const _0x465501=_0x3e92f2;return this[_0x465501(0x1d7)][_0x465501(0x43c)]();}[_0x3e92f2(0x25d)](){const _0x22e1ac=_0x3e92f2;super['dispose'](),this[_0x22e1ac(0x38e)][_0x22e1ac(0x1b8)](_0x1f71a9=>_0x1f71a9[_0x22e1ac(0x25d)]()),this['_sessions'][_0x22e1ac(0x494)](),this[_0x22e1ac(0x489)][_0x22e1ac(0x2e4)]();}async[_0x3e92f2(0x3cc)](_0x1836d3){const _0x1fcfac=_0x3e92f2;if(this[_0x1fcfac(0x38e)]['has'](_0x1836d3))return this[_0x1fcfac(0x38e)][_0x1fcfac(0x2d5)](_0x1836d3);this['_tryEnsureSocket']();const _0x1deac6=this[_0x1fcfac(0x443)][_0x1fcfac(0x1df)](St,_0x1836d3,this[_0x1fcfac(0x1d7)]['asObservable']());return this[_0x1fcfac(0x38e)]['set'](_0x1836d3,_0x1deac6),_0x1deac6;}['_createSocket'](){const _0x27d385=_0x3e92f2;var _0x3ddcf0;const _0x2a2650=(_0x3ddcf0=this['_configService']['getConfig'](en))!=null?_0x3ddcf0:tn;return this[_0x27d385(0x2af)][_0x27d385(0x37d)](_0x2a2650);}[_0x3e92f2(0x1f9)](){const _0x413b4c=_0x3e92f2;try{const _0x2146c5=this[_0x413b4c(0x2e6)]();if(_0x2146c5){const _0x3baee6=_0x2146c5[_0x413b4c(0x229)];_0x2146c5[_0x413b4c(0x229)]=_0x57454d=>(this[_0x413b4c(0x19a)](),_0x3baee6[_0x413b4c(0x3ee)](_0x2146c5,[_0x57454d])),_0x2146c5['message$'][_0x413b4c(0x4be)](_0x43d684=>this[_0x413b4c(0x21a)](_0x2146c5,_0x43d684)),_0x2146c5[_0x413b4c(0x288)][_0x413b4c(0x407)](_0x401b81(0x1))[_0x413b4c(0x4be)](_0x50957c=>this[_0x413b4c(0x27b)][_0x413b4c(0x23c)](_0x413b4c(0x216),_0x50957c)),_0x2146c5[_0x413b4c(0x484)][_0x413b4c(0x407)](_0x401b81(0x1))[_0x413b4c(0x4be)](()=>{const _0x1df202=_0x413b4c;this[_0x1df202(0x456)](_0x2146c5);}),_0x2146c5['close$'][_0x413b4c(0x407)](_0x401b81(0x1))['subscribe'](_0x595bb0=>{const _0x42ec78=_0x413b4c;this[_0x42ec78(0x27b)][_0x42ec78(0x2f1)]('[CollaborationSessionService]',_0x42ec78(0x2ac),_0x595bb0),this[_0x42ec78(0x492)]();});}}catch(_0x1874e7){this[_0x413b4c(0x27b)]['error'](_0x1874e7),this['_onConnectionFailed']();}}[_0x3e92f2(0x456)](_0x6170c7){const _0x5f14af=_0x3e92f2;this[_0x5f14af(0x27b)]['debug'](_0x5f14af(0x48c),_0x5f14af(0x395)),_0x6170c7['send']({'cmd':I['HELLO']}),this[_0x5f14af(0x19a)]();}['_onConnectionFailed'](){const _0x2087ed=_0x3e92f2;var _0x4ef2e3;this[_0x2087ed(0x489)][_0x2087ed(0x3ea)](0x2),this[_0x2087ed(0x1d7)][_0x2087ed(0x3ea)](null),this[_0x2087ed(0x1bd)](),this[_0x2087ed(0x299)](),this[_0x2087ed(0x26e)]=!0x1,this[_0x2087ed(0x337)]<((_0x4ef2e3=this[_0x2087ed(0x292)]['getConfig'](an))!=null?_0x4ef2e3:cn)?(this[_0x2087ed(0x20c)](this[_0x2087ed(0x337)]),this[_0x2087ed(0x337)]+=0x1):this['_messageService']['show']({'type':_0x4f4f06[_0x2087ed(0x19f)],'content':this['_localeService']['t'](_0x2087ed(0x452))});}['_scheduleReconnection'](_0x246718){const _0x32186f=_0x3e92f2;var _0x5b6158;const _0x15b349=((_0x5b6158=this[_0x32186f(0x292)]['getConfig'](rn))!=null?_0x5b6158:on)*0x2**_0x246718;this[_0x32186f(0x458)][_0x32186f(0x3a7)]({'type':_0x4f4f06['Warning'],'content':this[_0x32186f(0x4b3)]['t'](_0x32186f(0x347))}),this[_0x32186f(0x3e7)]=setTimeout(()=>{const _0x97279b=_0x32186f;this[_0x97279b(0x1f9)](),clearTimeout(this[_0x97279b(0x3e7)]),this[_0x97279b(0x3e7)]=null;},_0x15b349);}[_0x3e92f2(0x19a)](){const _0x127f4d=_0x3e92f2;var _0x467ece;this[_0x127f4d(0x299)](),this[_0x127f4d(0x37a)]=setTimeout(()=>this[_0x127f4d(0x202)](),(_0x467ece=this[_0x127f4d(0x292)][_0x127f4d(0x361)](sn))!=null?_0x467ece:nn);}[_0x3e92f2(0x202)](){const _0x5198e8=_0x3e92f2;this['_socket'][_0x5198e8(0x229)]({'cmd':I[_0x5198e8(0x29a)]}),this[_0x5198e8(0x2e0)]();}[_0x3e92f2(0x2e0)](){const _0x396fac=_0x3e92f2;var _0x1ddd4b;this[_0x396fac(0x23e)]=setTimeout(()=>this[_0x396fac(0x492)](),(_0x1ddd4b=this[_0x396fac(0x292)]['getConfig'](bs))!=null?_0x1ddd4b:Ts);}[_0x3e92f2(0x21a)](_0x5672a7,_0x69408c){const _0x13d424=_0x3e92f2,{cmd:_0x471453}=_0x69408c;_0x471453===I[_0x13d424(0x425)]&&!this[_0x13d424(0x26e)]&&(_0x5672a7[_0x13d424(0x35a)]=_0x69408c['data']['memberID'],this[_0x13d424(0x1d7)][_0x13d424(0x3ea)](_0x5672a7),this[_0x13d424(0x489)][_0x13d424(0x3ea)](0x3),this[_0x13d424(0x26e)]=!0x0),_0x471453===I['HEARTBEAT']&&this[_0x13d424(0x1bd)](),this['_rescheduleHeartbeatEvent']();}['_clearHeartbeatTimer'](){const _0x3d9a59=_0x3e92f2;this[_0x3d9a59(0x37a)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x3d9a59(0x37a)]=null);}[_0x3e92f2(0x1bd)](){const _0x11320a=_0x3e92f2;this[_0x11320a(0x23e)]!=null&&(clearTimeout(this[_0x11320a(0x23e)]),this[_0x11320a(0x23e)]=null);}};ge=ws([M(0x0,_0xbbf94a(_0xa8f435)),M(0x1,_0xbbf94a(_0x6789ab)),M(0x2,_0x5cfd22),M(0x3,_0x46d807),M(0x4,_0x523c70),M(0x5,Os)],ge);var Dn=Object[_0x3e92f2(0x340)],wn=Object['getOwnPropertyDescriptor'],Pn=(_0x141400,_0x3bcbc9,_0x4b3474,_0x3d56b3)=>{const _0x12127b=_0x3e92f2;for(var _0xe80e94=_0x3d56b3>0x1?void 0x0:_0x3d56b3?wn(_0x3bcbc9,_0x4b3474):_0x3bcbc9,_0x3ab0a5=_0x141400[_0x12127b(0x1a4)]-0x1,_0x4cbefa;_0x3ab0a5>=0x0;_0x3ab0a5--)(_0x4cbefa=_0x141400[_0x3ab0a5])&&(_0xe80e94=(_0x3d56b3?_0x4cbefa(_0x3bcbc9,_0x4b3474,_0xe80e94):_0x4cbefa(_0xe80e94))||_0xe80e94);return _0x3d56b3&&_0xe80e94&&Dn(_0x3bcbc9,_0x4b3474,_0xe80e94),_0xe80e94;},Ce=(_0x404057,_0x8e900f)=>(_0x3b7cfe,_0x292d63)=>_0x8e900f(_0x3b7cfe,_0x292d63,_0x404057);let D=class extends _0x1f0611{constructor(_0x35bca6,_0x45d856,_0x7623b5,_0x6d86bf,_0x16f46b){const _0x32512a=_0x3e92f2;super(),l(this,'_cachedData',new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x32512a(0x1d3),!0x1),(this['_configService']=_0x35bca6,this['_localStorageService']=_0x45d856,this[_0x32512a(0x1ee)]=_0x7623b5,this[_0x32512a(0x4b3)]=_0x6d86bf,this[_0x32512a(0x49e)]=_0x16f46b,this[_0x32512a(0x453)]());}[_0x3e92f2(0x2b6)](){this['_disabled']=!0x0;}[_0x3e92f2(0x2cc)](){const _0x25da38=_0x3e92f2;this[_0x25da38(0x1d3)]=!0x1;}[_0x3e92f2(0x25d)](){const _0x2570d5=_0x3e92f2;this[_0x2570d5(0x47d)]()[_0x2570d5(0x31d)](()=>super['dispose']());}async['loadOfflineData'](_0x2a5284){const _0x4440b2=_0x3e92f2;return this['_disabled']?null:this[_0x4440b2(0x43b)][_0x4440b2(0x346)](Xt(_0x2a5284));}async['saveOfflineData'](_0x4ddec4,_0x315a8a){return!!this['_localStorageService']['setItem'](_0x4ddec4,_0x315a8a);}[_0x3e92f2(0x271)](_0x288a44,_0x5961c1,_0xc0f548,_0x26d631){const _0x50202a=_0x3e92f2,_0x4b8854=this['_revisionService']['getCurrentRevForDocument'](_0x288a44);this['_cachedData'][_0x50202a(0x2bc)](_0x288a44,{'unitID':_0x288a44,'type':_0x5961c1,'awaitingChangeset':_0xc0f548,'mutations':_0x26d631,'rev':_0x4b8854}),this[_0x50202a(0x4bb)][_0x50202a(0x31c)](_0x288a44)||this[_0x50202a(0x3a5)](_0x288a44);}[_0x3e92f2(0x3a5)](_0x1fc3f0){const _0x373a6a=_0x3e92f2,_0x2845b6=this['_getSaveTimeout']();_0x2845b6===0x0?this[_0x373a6a(0x349)](_0x1fc3f0):this[_0x373a6a(0x4bb)][_0x373a6a(0x2bc)](_0x1fc3f0,setTimeout(()=>this[_0x373a6a(0x349)](_0x1fc3f0),_0x2845b6));}[_0x3e92f2(0x291)](){const _0x11fcab=_0x3e92f2;var _0x4ddd58;return(_0x4ddd58=this[_0x11fcab(0x292)]['getConfig'](hn))!=null?_0x4ddd58:ln;}[_0x3e92f2(0x349)](_0x3c2962){const _0x3b76f5=_0x3e92f2,_0x1d7eea=this[_0x3b76f5(0x4bb)][_0x3b76f5(0x2d5)](_0x3c2962);return _0x1d7eea!==void 0x0&&window[_0x3b76f5(0x4b7)](_0x1d7eea),this[_0x3b76f5(0x43b)]['setItem'](Xt(_0x3c2962),this[_0x3b76f5(0x419)][_0x3b76f5(0x2d5)](_0x3c2962))[_0x3b76f5(0x31d)](()=>this[_0x3b76f5(0x4bb)]['delete'](_0x3c2962));}async[_0x3e92f2(0x47d)](){const _0x5d7c73=_0x3e92f2,_0x5ed523=[];this[_0x5d7c73(0x4bb)]['forEach']((_0x40e310,_0x4e0a22)=>{const _0x613d6=_0x5d7c73;window[_0x613d6(0x4b7)](_0x40e310),_0x5ed523[_0x613d6(0x2cb)](this[_0x613d6(0x349)](_0x4e0a22)[_0x613d6(0x31d)](()=>{const _0x1ddf52=_0x613d6;this[_0x1ddf52(0x4bb)][_0x1ddf52(0x36f)](_0x4e0a22);}));}),await Promise[_0x5d7c73(0x1a3)](_0x5ed523);}[_0x3e92f2(0x453)](){const _0x3baeea=_0x3e92f2;this[_0x3baeea(0x280)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x49c119=_0x3baeea;if(this['_saveTaskMap'][_0x49c119(0x457)])return this[_0x49c119(0x4b3)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Pn([Ce(0x0,_0x523c70),Ce(0x1,_0x1dfb89),Ce(0x2,_0x17e6fa),Ce(0x3,_0xbbf94a(_0x6789ab)),Ce(0x4,_0xbbf94a(_0xee930))],D);function Xt(_0x4eda5b){return'unit-cache-'+_0x4eda5b;}const et=_0x3195f2(_0x3e92f2(0x3f8));var Ps=(_0x34a3a5=>(_0x34a3a5[_0x34a3a5['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x3e92f2(0x2dd),_0x34a3a5[_0x34a3a5[_0x3e92f2(0x480)]=0x1]='OTHER_CLIENTS_EDITING',_0x34a3a5))(Ps||{});const Jt=0x7530,zt=_0x3e92f2(0x1da);class Nn extends _0x1f0611{constructor(){const _0x582eac=_0x3e92f2;super(),l(this,_0x582eac(0x329),_0x545ca3['generateRandomId']()),l(this,_0x582eac(0x243),new Set()),l(this,_0x582eac(0x3db),new Map()),l(this,_0x582eac(0x416),null),l(this,_0x582eac(0x27d),new Map()),l(this,_0x582eac(0x3e4),new Map()),this[_0x582eac(0x35e)]();}[_0x3e92f2(0x25d)](){const _0x77f347=_0x3e92f2;super[_0x77f347(0x25d)](),this[_0x77f347(0x27d)][_0x77f347(0x1b8)]((_0x55eef1,_0xa1babe)=>this[_0x77f347(0x296)](_0xa1babe)),this[_0x77f347(0x416)]&&window[_0x77f347(0x1dd)](this['_heartbeatTimer']);}[_0x3e92f2(0x4c1)](_0x3a7f0e){const _0x204cc0=_0x3e92f2;return this[_0x204cc0(0x3c7)](_0x3a7f0e)['pipe'](_0x569a4b());}[_0x3e92f2(0x345)](_0x4da67e){const _0x174927=_0x3e92f2;this['_selfUnitIDs'][_0x174927(0x457)]===0x0&&this[_0x174927(0x32b)](),this['_selfUnitIDs'][_0x174927(0x35d)](_0x4da67e),this[_0x174927(0x1f4)]({'type':0x0,'memberID':this[_0x174927(0x329)],'unitIDs':[_0x4da67e],'isForwarded':!0x1});}[_0x3e92f2(0x46f)](_0x49daf0){const _0x5dfe38=_0x3e92f2;this[_0x5dfe38(0x243)][_0x5dfe38(0x36f)](_0x49daf0),this['_selfUnitIDs']['size']===0x0&&this['_heartbeatTimer']&&window[_0x5dfe38(0x1dd)](this[_0x5dfe38(0x416)]);}['_init'](){const _0x13ddcf=_0x3e92f2;this[_0x13ddcf(0x280)](_0x38ac23(_0x236f67(window,_0x13ddcf(0x2f2))['subscribe'](_0x2e3ddc=>{const _0x500456=_0x13ddcf;if(_0x2e3ddc['key']!==zt||!_0x2e3ddc[_0x500456(0x1c5)])return;const _0x1d5579=JSON[_0x500456(0x47f)](_0x2e3ddc[_0x500456(0x1c5)]);this[_0x500456(0x3c9)](_0x1d5579);}))),window[_0x13ddcf(0x33b)](_0x13ddcf(0x3d5),()=>this['_send']({'type':0x1,'memberID':this[_0x13ddcf(0x329)],'unitIDs':Array[_0x13ddcf(0x473)](this[_0x13ddcf(0x243)])}));}[_0x3e92f2(0x3c9)](_0x3ce087){const _0x3d7b7e=_0x3e92f2;switch(_0x3ce087[_0x3d7b7e(0x342)]){case 0x0:this[_0x3d7b7e(0x465)](_0x3ce087);break;case 0x1:this[_0x3d7b7e(0x45c)](_0x3ce087);break;case 0x2:this['_handleHeartbeatEvent'](_0x3ce087);break;}}[_0x3e92f2(0x465)](_0x545c28){const _0x2931ad=_0x3e92f2,{unitIDs:_0x1cb0af,memberID:_0xa711d9,isForwarded:_0x471a99}=_0x545c28;_0x1cb0af[_0x2931ad(0x1b8)](_0x26362d=>{const _0x365406=_0x2931ad;if(!_0x471a99&&this[_0x365406(0x3db)][_0x365406(0x31c)](_0x26362d)&&this[_0x365406(0x3c7)](_0x26362d)[_0x365406(0x3ea)](0x1),!this[_0x365406(0x3db)][_0x365406(0x31c)](_0x26362d)||!this[_0x365406(0x3db)][_0x365406(0x2d5)](_0x26362d)[_0x365406(0x31c)](_0xa711d9)){const _0x574245=this['_unitOnClients'][_0x365406(0x2d5)](_0x26362d)||new Set();_0x574245[_0x365406(0x35d)](_0xa711d9),this[_0x365406(0x3db)]['set'](_0x26362d,_0x574245),this['_scheduleClearOtherTimer'](_0xa711d9);}}),_0x471a99||this[_0x2931ad(0x1f4)]({'type':0x0,'memberID':this[_0x2931ad(0x329)],'unitIDs':[...this[_0x2931ad(0x243)]],'isForwarded':!0x0});}[_0x3e92f2(0x378)](_0x1a0259){const _0x410734=_0x3e92f2;this[_0x410734(0x296)](_0x1a0259);const _0x4c77dd=window[_0x410734(0x33f)](()=>{const _0x1cd227=_0x410734;this[_0x1cd227(0x3db)][_0x1cd227(0x1b8)](_0x54de1b=>{const _0x3f559a=_0x1cd227;_0x54de1b[_0x3f559a(0x36f)](_0x1a0259);});},Jt*0x2);this[_0x410734(0x27d)][_0x410734(0x2bc)](_0x1a0259,_0x4c77dd);}['_removeClearOtherTimer'](_0x32fa92){const _0x39ee11=_0x3e92f2;if(this[_0x39ee11(0x27d)]['has'](_0x32fa92)){const _0x33d0df=this['_clearOtherTimers']['get'](_0x32fa92);_0x33d0df&&window[_0x39ee11(0x4b7)](_0x33d0df),this[_0x39ee11(0x27d)][_0x39ee11(0x2bc)](_0x32fa92,null);}}[_0x3e92f2(0x45c)](_0x5908e4){const _0x5d5f04=_0x3e92f2,{memberID:_0x5c0ffd,unitIDs:_0x27e875}=_0x5908e4;_0x27e875[_0x5d5f04(0x1b8)](_0x43df0d=>{const _0x48ad30=_0x5d5f04;var _0x3febe5;const _0x3fc444=this[_0x48ad30(0x3db)][_0x48ad30(0x2d5)](_0x43df0d);_0x3fc444&&(_0x3fc444[_0x48ad30(0x36f)](_0x5c0ffd),(_0x3febe5=this[_0x48ad30(0x3c7)](_0x43df0d))==null||_0x3febe5[_0x48ad30(0x3ea)](_0x3fc444[_0x48ad30(0x457)]===0x0?0x0:0x1));}),this[_0x5d5f04(0x296)](_0x5c0ffd);}[_0x3e92f2(0x354)](_0x1e2564){const _0x1ed4b8=_0x3e92f2;this['_scheduleClearOtherTimer'](_0x1e2564[_0x1ed4b8(0x35a)]);}['_send'](_0x23da12){const _0x587ac7=_0x3e92f2;localStorage[_0x587ac7(0x3fc)](zt,JSON['stringify'](_0x23da12));}['_scheduleHeartbeat'](){const _0x4bf90d=_0x3e92f2;this['_heartbeatTimer']=window[_0x4bf90d(0x3bc)](()=>{const _0x41e45c=_0x4bf90d;this[_0x41e45c(0x1f4)]({'type':0x2,'memberID':this['_id']});},Jt);}[_0x3e92f2(0x3c7)](_0x4a2c15){const _0x13c52f=_0x3e92f2;return this[_0x13c52f(0x3e4)][_0x13c52f(0x31c)](_0x4a2c15)||this[_0x13c52f(0x3e4)][_0x13c52f(0x2bc)](_0x4a2c15,new _0x4d79d8(0x0)),this[_0x13c52f(0x3e4)][_0x13c52f(0x2d5)](_0x4a2c15);}}var Mn=Object['defineProperty'],An=Object[_0x3e92f2(0x2d2)],Un=(_0x4dd9cf,_0x35a244,_0x1f49f2,_0xcbdf11)=>{for(var _0x1bd486=_0xcbdf11>0x1?void 0x0:_0xcbdf11?An(_0x35a244,_0x1f49f2):_0x35a244,_0x20aca1=_0x4dd9cf['length']-0x1,_0x5e9538;_0x20aca1>=0x0;_0x20aca1--)(_0x5e9538=_0x4dd9cf[_0x20aca1])&&(_0x1bd486=(_0xcbdf11?_0x5e9538(_0x35a244,_0x1f49f2,_0x1bd486):_0x5e9538(_0x1bd486))||_0x1bd486);return _0xcbdf11&&_0x1bd486&&Mn(_0x35a244,_0x1f49f2,_0x1bd486),_0x1bd486;},qt=(_0x1d759e,_0x3a211a)=>(_0x142557,_0x3c972d)=>_0x3a211a(_0x142557,_0x3c972d,_0x1d759e);let Xe=class{constructor(_0x154e36,_0x17687c){const _0x346fa1=_0x3e92f2;this['_injector']=_0x154e36,this[_0x346fa1(0x22e)]=_0x17687c;}[_0x3e92f2(0x1f0)](_0x258664){const _0x979c18=_0x3e92f2;this[_0x979c18(0x468)](_0x258664),this[_0x979c18(0x246)](_0x258664);}['transformRemoteChangeset'](_0x88371d){const _0x1c3261=_0x3e92f2,_0x14f879=this[_0x1c3261(0x443)][_0x1c3261(0x2d5)](_0x3a8219),{redoCache:_0x44aaf0}=_0x14f879[_0x1c3261(0x24e)]();if(_0x44aaf0[_0x1c3261(0x1a4)]===0x0)return _0x88371d;let _0x1970e3=_0x545ca3[_0x1c3261(0x265)](_0x88371d[_0x1c3261(0x1d5)][0x0]);for(let _0x3cf133=0x0;_0x3cf133<_0x44aaf0['length'];_0x3cf133++){const _0x3b6fc6={'id':'doc.mutation.rich-text-editing','params':{..._0x44aaf0[_0x3cf133]}},_0x17a786=this['_transformService'][_0x1c3261(0x433)](_0x1970e3,_0x3b6fc6,!0x1);if(_0x3d6701(_0x17a786))throw _0x17a786['error'];_0x1970e3=_0x17a786[_0x1c3261(0x391)];}return{..._0x545ca3[_0x1c3261(0x265)](_0x88371d),'mutations':[_0x1970e3]};}['_transformUndoRedoStack'](_0x4c36b9){const _0x5e0cae=_0x3e92f2,_0x29e733=this['_injector'][_0x5e0cae(0x2d5)](_0x3a8219),{undoCache:_0x366abc,redoCache:_0x3b8f2d}=_0x29e733[_0x5e0cae(0x24e)]();if(_0x366abc[_0x5e0cae(0x1a4)]===0x0||_0x3b8f2d[_0x5e0cae(0x1a4)]===0x0)return;const _0x428305=[],_0x59f8c3=[];let _0x3b9826=_0x545ca3[_0x5e0cae(0x265)](_0x4c36b9[_0x5e0cae(0x1d5)][0x0]),_0x3f9255=_0x545ca3['deepClone'](_0x4c36b9[_0x5e0cae(0x1d5)][0x0]);for(let _0xf89428=_0x366abc[_0x5e0cae(0x1a4)]-0x1;_0xf89428>=0x0;_0xf89428--){const _0x22ae74={'id':'doc.mutation.rich-text-editing','params':{..._0x366abc[_0xf89428]}},_0x38e4da={'id':_0x5e0cae(0x215),'params':{..._0x3b8f2d[_0xf89428]}},_0xe8f069=this[_0x5e0cae(0x22e)][_0x5e0cae(0x433)](_0x3b9826,_0x22ae74,!0x1),_0x11ecc2=this[_0x5e0cae(0x22e)][_0x5e0cae(0x433)](_0x3f9255,_0x38e4da,!0x1);if(_0x3d6701(_0xe8f069))throw _0xe8f069[_0x5e0cae(0x23c)];if(_0x3d6701(_0x11ecc2))throw _0x11ecc2[_0x5e0cae(0x23c)];_0x428305[_0x5e0cae(0x213)](_0xe8f069[_0x5e0cae(0x2fb)][_0x5e0cae(0x394)]),_0x59f8c3[_0x5e0cae(0x213)](_0x11ecc2[_0x5e0cae(0x2fb)]['params']),_0x3b9826=_0xe8f069[_0x5e0cae(0x391)],_0x3f9255=_0x11ecc2[_0x5e0cae(0x391)];}_0x29e733[_0x5e0cae(0x210)]({'undoCache':_0x428305,'redoCache':_0x59f8c3});}[_0x3e92f2(0x246)](_0xd9ad92){const _0x3bcc54=_0x3e92f2,_0x2026f5=this['_injector'][_0x3bcc54(0x2d5)](_0x3a8219),_0x297b74=_0x2026f5['getActiveRange']();if(_0x297b74==null)return;const _0x55185b=[{'id':_0x3bcc54(0x215),'params':{'unitId':_0xd9ad92[_0x3bcc54(0x3ca)],'actions':null,'textRanges':[_0x297b74]}}],_0xc71137=this[_0x3bcc54(0x22e)][_0x3bcc54(0x242)](_0xd9ad92,_0x55185b);if(!_0x496a31(_0xc71137))throw _0xc71137[_0x3bcc54(0x23c)];const _0x3c28f1=_0xc71137[_0x3bcc54(0x2fb)][0x0][_0x3bcc54(0x394)]['textRanges'];Array[_0x3bcc54(0x48f)](_0x3c28f1)&&_0x3c28f1['length']&&_0x2026f5['setActiveRange'](_0x3c28f1[0x0]);}};Xe=Un([qt(0x0,_0xbbf94a(_0xa8f435)),qt(0x1,_0x1b279b)],Xe);var yn=Object[_0x3e92f2(0x340)],Ln=Object[_0x3e92f2(0x2d2)],$n=(_0x2644f5,_0xb77df6,_0x2b6c02,_0x483750)=>{const _0x50d5ee=_0x3e92f2;for(var _0x10b837=_0x483750>0x1?void 0x0:_0x483750?Ln(_0xb77df6,_0x2b6c02):_0xb77df6,_0x5276d9=_0x2644f5[_0x50d5ee(0x1a4)]-0x1,_0x5be296;_0x5276d9>=0x0;_0x5276d9--)(_0x5be296=_0x2644f5[_0x5276d9])&&(_0x10b837=(_0x483750?_0x5be296(_0xb77df6,_0x2b6c02,_0x10b837):_0x5be296(_0x10b837))||_0x10b837);return _0x483750&&_0x10b837&&yn(_0xb77df6,_0x2b6c02,_0x10b837),_0x10b837;},Zt=(_0x1470b7,_0x452e2d)=>(_0xfbc625,_0x3440ce)=>_0x452e2d(_0xfbc625,_0x3440ce,_0x1470b7);let Je=class{constructor(_0x20275d,_0x5623f3){const _0x2b5df0=_0x3e92f2;this[_0x2b5df0(0x443)]=_0x20275d,this[_0x2b5df0(0x22e)]=_0x5623f3;}[_0x3e92f2(0x2a3)](_0x4442e3){const _0x46e67e=_0x3e92f2;var _0x45bdca;const _0x11281f=this[_0x46e67e(0x443)][_0x46e67e(0x2d5)](_0x3781de),_0x39e8f2=(_0x45bdca=_0x11281f[_0x46e67e(0x344)]())!=null?_0x45bdca:[],_0x2d86c9=_0x39e8f2==null?void 0x0:_0x39e8f2[_0x46e67e(0x1be)](_0x167840);if(_0x2d86c9[_0x46e67e(0x1a4)]===0x0)return;const _0x3984eb=[{'id':_0x46e67e(0x215),'params':{'unitId':_0x4442e3[_0x46e67e(0x3ca)],'actions':null,'textRanges':_0x2d86c9}}],_0x4725ee=this[_0x46e67e(0x22e)][_0x46e67e(0x242)](_0x4442e3,_0x3984eb);if(!_0x496a31(_0x4725ee))throw _0x4725ee[_0x46e67e(0x23c)];const _0x1d560b=_0x4725ee[_0x46e67e(0x2fb)][0x0][_0x46e67e(0x394)][_0x46e67e(0x371)];Array[_0x46e67e(0x48f)](_0x1d560b)&&_0x1d560b[_0x46e67e(0x1a4)]&&_0x11281f[_0x46e67e(0x39f)](_0x1d560b,!0x1);}};Je=$n([Zt(0x0,_0xbbf94a(_0xa8f435)),Zt(0x1,_0x1b279b)],Je);function Ns(_0x4ae7bc){const _0x21ead4=_0x3e92f2;let _0x1e4efd='';for(const _0x2a00a9 of _0x4ae7bc){const {startOffset:_0x4a7b43,endOffset:_0x244ce8,isActive:_0x3f6109}=_0x2a00a9;_0x1e4efd[_0x21ead4(0x1a4)]&&(_0x1e4efd+=','),_0x1e4efd+=_0x4a7b43+':'+_0x244ce8+':'+(_0x3f6109?'1':'0');}return _0x1e4efd;}function jn(_0x42d76c){const _0x5e4ff8=_0x3e92f2,_0x450840=_0x42d76c[_0x5e4ff8(0x4bd)](','),_0x191d37=[];for(const _0x3be88c of _0x450840){const [_0x569df4,_0x548082,_0x10d8a3]=_0x3be88c['split'](':');_0x191d37['push']({'startOffset':Number(_0x569df4),'endOffset':Number(_0x548082),'collapsed':_0x569df4===_0x548082,'isActive':_0x10d8a3==='1'});}return _0x191d37[_0x5e4ff8(0x2db)](_0x4a758e=>_0x4a758e[_0x5e4ff8(0x488)])||(_0x191d37[0x0]['isActive']=!0x0),_0x191d37;}class yt extends _0x4c153b{constructor(){const _0x6a0361=_0x3e92f2;super(...arguments),l(this,_0x6a0361(0x408),new _0x4d79d8(null)),l(this,'collabCursorState$',this[_0x6a0361(0x408)]['asObservable']());}[_0x3e92f2(0x448)](_0x156ced){const _0x31c0f9=_0x3e92f2,{unitID:_0x141ae0,memberID:_0x31f3ce,textRanges:_0x3bbe25}=_0x156ced,_0x599bb6=Ns(_0x3bbe25),_0x146e57={'unitID':_0x141ae0,'memberID':_0x31f3ce,'selection':_0x599bb6};this['_collabCursorState$'][_0x31c0f9(0x3ea)](_0x146e57);}}var Hn=Object[_0x3e92f2(0x340)],xn=Object['getOwnPropertyDescriptor'],Fn=(_0x2965b1,_0x479425,_0x3dace0,_0x442c50)=>{for(var _0xa2d940=_0x442c50>0x1?void 0x0:_0x442c50?xn(_0x479425,_0x3dace0):_0x479425,_0x1b70ef=_0x2965b1['length']-0x1,_0x59fd2e;_0x1b70ef>=0x0;_0x1b70ef--)(_0x59fd2e=_0x2965b1[_0x1b70ef])&&(_0xa2d940=(_0x442c50?_0x59fd2e(_0x479425,_0x3dace0,_0xa2d940):_0x59fd2e(_0xa2d940))||_0xa2d940);return _0x442c50&&_0xa2d940&&Hn(_0x479425,_0x3dace0,_0xa2d940),_0xa2d940;},Qt=(_0xfa5439,_0x832892)=>(_0xe74e5,_0x18eca2)=>_0x832892(_0xe74e5,_0x18eca2,_0xfa5439);function Vn(_0x3f265e){const _0x362471=_0x3e92f2,{unitID:_0x10b25e,mutations:_0x24b9eb}=_0x3f265e;return{'unitId':_0x10b25e,'subUnitId':_0x24b9eb[0x0][_0x362471(0x394)][_0x362471(0x31a)]};}let ze=class{constructor(_0x4f018a,_0x36859e){const _0x27f85b=_0x3e92f2;this[_0x27f85b(0x443)]=_0x4f018a,this[_0x27f85b(0x22e)]=_0x36859e;}['transformSelections'](_0x2ad37a){const _0x388fe3=_0x3e92f2;var _0x5c5f2f,_0x2f6375,_0x2005f6;const _0x5f5463=this[_0x388fe3(0x443)][_0x388fe3(0x2d5)](_0xebd730),{unitId:_0x1c9b05,subUnitId:_0x496575}=Vn(_0x2ad37a),_0x5dc8d6=_0x5f5463[_0x388fe3(0x4b9)](_0x1c9b05)[_0x388fe3(0x344)]();if(_0x5dc8d6['length']===0x0||!_0x1c9b05||!_0x496575)return;const _0x2b048a=[{'id':_0x594d48['id'],'params':{'unitId':_0x1c9b05,'subUnitId':_0x496575,'selections':_0x545ca3['deepClone'](_0x5dc8d6)}}],_0xe2a208=this[_0x388fe3(0x22e)]['transformMutationsWithChangeset'](_0x2ad37a,_0x2b048a);if(!_0x496a31(_0xe2a208))throw _0xe2a208[_0x388fe3(0x23c)];const _0x2361bf=(_0x2005f6=(_0x2f6375=(_0x5c5f2f=_0xe2a208[_0x388fe3(0x2fb)][0x0])==null?void 0x0:_0x5c5f2f[_0x388fe3(0x394)])==null?void 0x0:_0x2f6375[_0x388fe3(0x4c0)])!=null?_0x2005f6:_0x5dc8d6;Array['isArray'](_0x2361bf)&&_0x2361bf[_0x388fe3(0x1a4)]&&this[_0x388fe3(0x443)][_0x388fe3(0x2d5)](_0x109aa8)['executeCommand'](_0x594d48['id'],{'unitId':_0x1c9b05,'subUnitId':_0x496575,'selections':_0x2361bf});}};ze=Fn([Qt(0x0,_0xbbf94a(_0xa8f435)),Qt(0x1,_0x1b279b)],ze);const Bn=new Set([_0x37a75d['id']]);function kn(_0x2eb567,_0x16b179,_0x5b2567,_0x39c46b,_0x106e1a){const _0x523141=_0x3e92f2;var _0x41a8d4,_0x547d78,_0x33d53c,_0x13d018;const _0x447eb4=[];for(const _0x294c78 of _0x2eb567)if(Bn[_0x523141(0x31c)](_0x294c78['id'])){if(_0x447eb4['length']>0x0)break;_0x447eb4['push'](_0x294c78);break;}else _0x447eb4['push'](_0x294c78);const _0xf77aef=(_0x547d78=(_0x41a8d4=_0x106e1a[_0x523141(0x3df)]())==null?void 0x0:_0x41a8d4[_0x523141(0x485)])!=null?_0x547d78:_0x523141(0x36e),_0x1600df=(_0x13d018=(_0x33d53c=_0x106e1a['getCurrentUser']())==null?void 0x0:_0x33d53c[_0x523141(0x35a)])!=null?_0x13d018:_0x523141(0x36e);return{'changeset':{'unitID':_0x16b179,'type':_0x50ce5b(_0x5b2567[_0x523141(0x2b7)](_0x16b179)),'baseRev':_0x39c46b['getCurrentRevForDocument'](_0x16b179),'revision':0x0,'userID':_0xf77aef,'memberID':_0x1600df,'mutations':_0x447eb4},'pendingMutations':_0x2eb567['slice'](_0x447eb4[_0x523141(0x1a4)])};}function Wn(_0xa0fd41,_0x2e17b8,_0x4c7d7e,_0x68da28,_0x2ece65){const _0x324532=_0x3e92f2;var _0x4ed7f0,_0x30c98a,_0x22e14a,_0x4c216b;const _0x3bafe1=[_0xa0fd41[_0x324532(0x379)]((_0x3086e3,_0x1fea06)=>{const _0x2b2740=_0x324532;var _0x3a5077;const {id:_0x3844a3}=_0x3086e3,{id:_0x21aa81,type:_0x355683}=_0x1fea06,_0x49d111=(_0x3a5077=_0x3086e3[_0x2b2740(0x394)])!=null?_0x3a5077:{'actions':null},_0x139d60=_0x1fea06[_0x2b2740(0x394)];if(_0x3844a3&&_0x3844a3!==_0x21aa81)throw new Error(_0x2b2740(0x4ae)+_0x3844a3+_0x2b2740(0x430)+_0x21aa81+'.');return{..._0x3086e3,'id':_0x21aa81,'type':_0x355683,'params':{'unitId':_0x139d60[_0x2b2740(0x3ae)],'textRanges':_0x139d60[_0x2b2740(0x371)],'actions':_0x578d98[_0x2b2740(0x3c2)](_0x49d111[_0x2b2740(0x4b5)],_0x139d60[_0x2b2740(0x4b5)])}};},{})],_0x46fb84=(_0x30c98a=(_0x4ed7f0=_0x2ece65[_0x324532(0x3df)]())==null?void 0x0:_0x4ed7f0[_0x324532(0x485)])!=null?_0x30c98a:_0x324532(0x36e),_0x52e3b8=(_0x4c216b=(_0x22e14a=_0x2ece65[_0x324532(0x3df)]())==null?void 0x0:_0x22e14a['memberID'])!=null?_0x4c216b:_0x324532(0x36e);return{'changeset':{'unitID':_0x2e17b8,'type':_0x50ce5b(_0x4c7d7e['getUnitType'](_0x2e17b8)),'baseRev':_0x68da28[_0x324532(0x232)](_0x2e17b8),'revision':0x0,'userID':_0x46fb84,'memberID':_0x52e3b8,'mutations':_0x3bafe1},'pendingMutations':[]};}var Gn=Object['defineProperty'],Yn=Object['getOwnPropertyDescriptor'],oe=(_0xea223e,_0x379bae,_0x554b13,_0x321df7)=>{const _0x323bb9=_0x3e92f2;for(var _0x47b7ab=_0x321df7>0x1?void 0x0:_0x321df7?Yn(_0x379bae,_0x554b13):_0x379bae,_0x114aab=_0xea223e[_0x323bb9(0x1a4)]-0x1,_0x25098b;_0x114aab>=0x0;_0x114aab--)(_0x25098b=_0xea223e[_0x114aab])&&(_0x47b7ab=(_0x321df7?_0x25098b(_0x379bae,_0x554b13,_0x47b7ab):_0x25098b(_0x47b7ab))||_0x47b7ab);return _0x321df7&&_0x47b7ab&&Gn(_0x379bae,_0x554b13,_0x47b7ab),_0x47b7ab;},m=(_0x5db5a7,_0x3dc9f9)=>(_0x1397b1,_0x3c975a)=>_0x3dc9f9(_0x1397b1,_0x3c975a,_0x5db5a7),P=(_0x3e4720=>(_0x3e4720[_0x3e92f2(0x41b)]=_0x3e92f2(0x495),_0x3e4720[_0x3e92f2(0x3dd)]='synced',_0x3e4720[_0x3e92f2(0x475)]='pending',_0x3e4720[_0x3e92f2(0x441)]='awaiting',_0x3e4720[_0x3e92f2(0x2ce)]=_0x3e92f2(0x301),_0x3e4720[_0x3e92f2(0x455)]=_0x3e92f2(0x40b),_0x3e4720['CONFLICT']='conflict',_0x3e4720[_0x3e92f2(0x461)]='offline',_0x3e4720))(P||{});class ae{constructor(_0x4f848e,_0x3dcbc9,_0x2b6db,_0x54eb3a,_0x5510e6,_0x15dfb4,_0x2fd74,_0x29c52d,_0x473eaf){const _0xcf1d6a=_0x3e92f2;l(this,'_awaitingChangeset',null),l(this,_0xcf1d6a(0x439),[]),(this[_0xcf1d6a(0x3ca)]=_0x4f848e,this[_0xcf1d6a(0x342)]=_0x3dcbc9,this['_handler']=_0x5510e6,this[_0xcf1d6a(0x1f2)]=_0x15dfb4,this[_0xcf1d6a(0x305)]=_0x2fd74,this[_0xcf1d6a(0x49e)]=_0x29c52d,this['_localCacheService']=_0x473eaf,this['_awaitingChangeset']=_0x2b6db,this[_0xcf1d6a(0x439)]=_0x54eb3a);}['_checkMissing'](_0x59849b){const _0x434773=_0x3e92f2,_0x4a40e7=this[_0x434773(0x49e)][_0x434773(0x232)](this[_0x434773(0x3ca)]);return _0x59849b['revision']>_0x4a40e7+0x1?(this[_0x434773(0x30d)][_0x434773(0x4c7)]({'from':_0x4a40e7,'to':_0x59849b['revision']-0x1}),!0x0):!0x1;}[_0x3e92f2(0x3c5)](_0x30eff9){const _0x138b45=_0x3e92f2;this[_0x138b45(0x305)][_0x138b45(0x250)](this[_0x138b45(0x3ca)],_0x30eff9);}[_0x3e92f2(0x2f0)](_0x152514){const _0x1a01ac=_0x3e92f2;var _0x2fe784,_0x4ca171;(_0x4ca171=(_0x2fe784=this[_0x1a01ac(0x30d)])[_0x1a01ac(0x313)])==null||_0x4ca171[_0x1a01ac(0x49a)](_0x2fe784,_0x152514);}[_0x3e92f2(0x3a1)](_0x4549af){const _0xb5ea1a=_0x3e92f2;var _0x1d963d,_0x55ca4e;return(_0x55ca4e=(_0x1d963d=this[_0xb5ea1a(0x30d)])[_0xb5ea1a(0x41f)])==null?void 0x0:_0x55ca4e[_0xb5ea1a(0x49a)](_0x1d963d,_0x4549af);}['_transformRemoteChangesetByIMECache'](_0x1877eb){const _0x5a3071=_0x3e92f2;var _0x64eba,_0x42deed,_0x294cd3;return(_0x294cd3=(_0x42deed=(_0x64eba=this[_0x5a3071(0x30d)])[_0x5a3071(0x3dc)])==null?void 0x0:_0x42deed[_0x5a3071(0x49a)](_0x64eba,_0x1877eb))!=null?_0x294cd3:_0x1877eb;}[_0x3e92f2(0x203)](_0x4c6e90){const _0xafa549=_0x3e92f2;var _0x48bf57,_0x4e6342;if(this[_0xafa549(0x342)]===H[_0xafa549(0x2e1)]){const {unitID:_0x5117b6,mutations:_0x53e0f3,memberID:_0x203f05}=_0x4c6e90,_0x1eaf29=_0x53e0f3[0x0]['params'][_0xafa549(0x371)];Array[_0xafa549(0x48f)](_0x1eaf29)&&_0x1eaf29['length']>0x0&&((_0x4e6342=(_0x48bf57=this['_handler'])[_0xafa549(0x369)])==null||_0x4e6342[_0xafa549(0x49a)](_0x48bf57,{'unitID':_0x5117b6,'memberID':_0x203f05,'textRanges':_0x1eaf29}));}}[_0x3e92f2(0x434)](){const _0x2dacc4=_0x3e92f2;this['_localCacheService']['updateOfflineData'](this[_0x2dacc4(0x3ca)],this[_0x2dacc4(0x342)],this[_0x2dacc4(0x4ca)],this[_0x2dacc4(0x439)]);}[_0x3e92f2(0x1fe)](){const _0x382921=_0x3e92f2;return this['_revisionService']['getCurrentRevForDocument'](this[_0x382921(0x3ca)]);}[_0x3e92f2(0x498)](){const _0x25c7a7=_0x3e92f2;this[_0x25c7a7(0x49e)][_0x25c7a7(0x282)](this['unitID']);}[_0x3e92f2(0x223)](_0x49f579){const _0x29adb4=_0x3e92f2;var _0x459a2a;const _0x1aeb7d=this[_0x29adb4(0x290)](_0x49f579),_0x23cbd2=_0x32c463(_0x1aeb7d[_0x29adb4(0x1d5)],this[_0x29adb4(0x1f2)],{'fromCollab':!0x0});if(!_0x23cbd2['result'])throw _0x23cbd2[_0x29adb4(0x23c)]instanceof Error?_0x23cbd2['error']:new Error((_0x459a2a=_0x23cbd2[_0x29adb4(0x23c)])!=null?_0x459a2a:_0x29adb4(0x4ab));this[_0x29adb4(0x3a1)](_0x1aeb7d),this[_0x29adb4(0x3c5)](_0x49f579),this[_0x29adb4(0x2f0)](_0x1aeb7d),this['_syncEditingCollabCursor'](_0x1aeb7d),this[_0x29adb4(0x498)]();}}let Ne=class extends ae{constructor(_0x3de755,_0x506b5e,_0x1b53d3,_0x2c55f3,_0x1292d1,_0x11e3c7,_0x54045c,_0x51a5c9,_0xd1ba63){const _0x39ec6c=_0x3e92f2;super(_0x3de755,_0x506b5e,null,[],_0x1b53d3,_0x51a5c9,_0x54045c,_0x2c55f3,_0x1292d1),l(this,_0x39ec6c(0x306),'synced'),(this['_injector']=_0x11e3c7,this[_0x39ec6c(0x27b)]=_0xd1ba63);}[_0x3e92f2(0x336)](_0x5a90e6){const _0x25d88c=_0x3e92f2,_0xa4977f=this[_0x25d88c(0x443)][_0x25d88c(0x1df)](k,this['unitID'],this['type'],[_0x5a90e6],this[_0x25d88c(0x30d)]);return _0xa4977f[_0x25d88c(0x1b5)](),_0xa4977f['_updateLocalCache'](),_0xa4977f;}['onRemoteChangeset'](_0x47ed41){const _0x1d1d78=_0x3e92f2;if(this[_0x1d1d78(0x219)](_0x47ed41))return this['_injector'][_0x1d1d78(0x1df)](G,this['unitID'],this[_0x1d1d78(0x342)],null,[],null,[_0x47ed41],this[_0x1d1d78(0x30d)]);try{return this[_0x1d1d78(0x223)](_0x47ed41),this;}catch(_0xcf14fa){return this[_0x1d1d78(0x27b)][_0x1d1d78(0x23c)](_0x1d1d78(0x23b),_0xcf14fa),this;}}['onRemoteAck'](){const _0x15f537=_0x3e92f2;throw new Error(_0x15f537(0x404));}[_0x3e92f2(0x257)](){const _0x2ff9b8=_0x3e92f2;throw new Error(_0x2ff9b8(0x263));}['toggleOffline'](){const _0x12597d=_0x3e92f2;return this[_0x12597d(0x443)][_0x12597d(0x1df)](z,this['unitID'],this[_0x12597d(0x342)],null,[],this[_0x12597d(0x30d)]);}[_0x3e92f2(0x239)](){return this;}[_0x3e92f2(0x1c0)](){const _0x196721=_0x3e92f2;throw new Error(_0x196721(0x284));}};Ne=oe([m(0x3,_0xbbf94a(_0xee930)),m(0x4,_0xbbf94a(D)),m(0x5,_0xbbf94a(_0xa8f435)),m(0x6,_0x1e106e),m(0x7,_0x109aa8),m(0x8,_0x46d807)],Ne);let k=class extends ae{constructor(_0x3832ce,_0x3bf1a7,_0x32fedf,_0x3f82fc,_0x2ef567,_0xe083b9,_0x5e0f8d,_0x5f1403,_0xd9fd13,_0x445def,_0x25f224,_0x4af88a,_0x5e2542,_0x57d656){const _0x481e29=_0x3e92f2;super(_0x3832ce,_0x3bf1a7,null,_0x32fedf,_0x3f82fc,_0x445def,_0x57d656,_0xe083b9,_0x5e0f8d),l(this,_0x481e29(0x306),_0x481e29(0x1b3)),l(this,_0x481e29(0x1a8),null),l(this,'_sendingTimer',null),(this['_injector']=_0x2ef567,this[_0x481e29(0x29e)]=_0x5f1403,this[_0x481e29(0x27b)]=_0xd9fd13,this[_0x481e29(0x292)]=_0x25f224,this['_transformService']=_0x4af88a,this[_0x481e29(0x1ef)]=_0x5e2542);}[_0x3e92f2(0x336)](_0x316160){const _0x2dcd89=_0x3e92f2;return this[_0x2dcd89(0x439)][_0x2dcd89(0x2cb)](_0x316160),this['_updateLocalCache'](),this;}[_0x3e92f2(0x3b9)](_0x248f14){const _0x547550=_0x3e92f2;if(this[_0x547550(0x219)](_0x248f14))return this[_0x547550(0x3ad)](),this[_0x547550(0x443)][_0x547550(0x1df)](G,this[_0x547550(0x3ca)],this['type'],null,this['_pendingMutations'],null,[_0x248f14],this[_0x547550(0x30d)]);try{const _0x1a5f17=this[_0x547550(0x22e)][_0x547550(0x242)](_0x248f14,this['_pendingMutations']);if(_0x496a31(_0x1a5f17)){const {c1Prime:_0xc2c89d,m2Prime:_0x4ec05c}=_0x1a5f17;this['_executeRemoteChangeset'](_0xc2c89d);const _0x4c9bb4=this[_0x547550(0x443)][_0x547550(0x1df)](k,this[_0x547550(0x3ca)],this[_0x547550(0x342)],_0x4ec05c,this[_0x547550(0x30d)]);return this['_clearScheduledTask'](),_0x4c9bb4['_schedule'](this[_0x547550(0x1a8)]?Math['max'](0x0,new Date()[_0x547550(0x302)]()-this[_0x547550(0x1a8)]):this[_0x547550(0x303)]()),_0x4c9bb4;}throw _0x1a5f17[_0x547550(0x23c)];}catch(_0x3352f7){return this['_logService'][_0x547550(0x23c)](_0x3352f7),this[_0x547550(0x236)](!0x1);}}[_0x3e92f2(0x2b4)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x3e92f2(0x257)](){const _0x15e154=_0x3e92f2;throw new Error(_0x15e154(0x418));}['toggleOffline'](){const _0x4e53b2=_0x3e92f2;return this[_0x4e53b2(0x3ad)](),this[_0x4e53b2(0x443)][_0x4e53b2(0x1df)](z,this['unitID'],this[_0x4e53b2(0x342)],null,this[_0x4e53b2(0x439)],this[_0x4e53b2(0x30d)]);}[_0x3e92f2(0x239)](){return this;}[_0x3e92f2(0x1b5)](_0x1774c6){const _0x41519d=_0x3e92f2;_0x1774c6=_0x1774c6!=null?_0x1774c6:this['_getSendChangesetTimeout'](),this['_scheduleTimestamp']=new Date()[_0x41519d(0x302)](),this[_0x41519d(0x42c)]=setTimeout(()=>{const _0x32596=_0x41519d;this[_0x32596(0x3ad)]();let _0x128fa4=null;switch(this[_0x32596(0x342)]){case H[_0x32596(0x241)]:{_0x128fa4=kn(this[_0x32596(0x439)],this[_0x32596(0x3ca)],this[_0x32596(0x1ef)],this[_0x32596(0x49e)],this['_memberService']);break;}case H[_0x32596(0x2e1)]:{_0x128fa4=Wn(this[_0x32596(0x439)],this[_0x32596(0x3ca)],this[_0x32596(0x1ef)],this['_revisionService'],this[_0x32596(0x29e)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x32596(0x342)]+_0x32596(0x2df));}const {changeset:_0x144ba4,pendingMutations:_0x4e976e}=_0x128fa4;this[_0x32596(0x30d)]['onSendChangeset'](_0x144ba4);const _0x3c10df=_0x4e976e[_0x32596(0x1a4)]?this[_0x32596(0x443)]['createInstance'](W,this[_0x32596(0x3ca)],this[_0x32596(0x342)],_0x144ba4,_0x4e976e,this[_0x32596(0x30d)]):this[_0x32596(0x443)][_0x32596(0x1df)](J,this[_0x32596(0x3ca)],this[_0x32596(0x342)],_0x144ba4,this[_0x32596(0x30d)]);_0x3c10df[_0x32596(0x434)](),this['_handler'][_0x32596(0x2c1)](this,_0x3c10df);},_0x1774c6);}[_0x3e92f2(0x303)](){const _0x18bc29=_0x3e92f2;var _0x1d5b78;return(_0x1d5b78=this[_0x18bc29(0x292)][_0x18bc29(0x361)](Zi))!=null?_0x1d5b78:Qi;}[_0x3e92f2(0x1c0)](){const _0x241022=_0x3e92f2;throw new Error(_0x241022(0x207));}[_0x3e92f2(0x3ad)](){const _0x59a75f=_0x3e92f2;this[_0x59a75f(0x42c)]!=null&&(clearTimeout(this[_0x59a75f(0x42c)]),this[_0x59a75f(0x42c)]=null);}[_0x3e92f2(0x236)](_0x1826f2){const _0x42fb3b=_0x3e92f2;return this[_0x42fb3b(0x3ad)](),this[_0x42fb3b(0x443)][_0x42fb3b(0x1df)](re,this[_0x42fb3b(0x3ca)],this['type'],null,this[_0x42fb3b(0x439)],this[_0x42fb3b(0x30d)],_0x1826f2);}};k=oe([m(0x4,_0xbbf94a(_0xa8f435)),m(0x5,_0xbbf94a(_0xee930)),m(0x6,_0xbbf94a(D)),m(0x7,_0xbbf94a(ne)),m(0x8,_0x46d807),m(0x9,_0x109aa8),m(0xa,_0x523c70),m(0xb,_0x1b279b),m(0xc,_0x5f1ae0),m(0xd,_0x1e106e)],k);let J=class extends ae{constructor(_0x197cd8,_0x4d993d,_0x7ef141,_0x128f97,_0x452bac,_0x5544ab,_0x52884d,_0x3a1f75,_0x4e6d53,_0x190c02,_0x1bbd6c){const _0x26af63=_0x3e92f2;super(_0x197cd8,_0x4d993d,_0x7ef141,[],_0x128f97,_0x3a1f75,_0x1bbd6c,_0x5544ab,_0x52884d),l(this,'status',_0x26af63(0x3b2)),(this[_0x26af63(0x443)]=_0x452bac,this[_0x26af63(0x27b)]=_0x4e6d53,this[_0x26af63(0x22e)]=_0x190c02);}[_0x3e92f2(0x336)](_0x5e476e){const _0x213c0d=_0x3e92f2,_0x29b4a1=this[_0x213c0d(0x443)]['createInstance'](W,this[_0x213c0d(0x3ca)],this[_0x213c0d(0x342)],this['_awaitingChangeset'],[_0x5e476e],this[_0x213c0d(0x30d)]);return _0x29b4a1[_0x213c0d(0x434)](),_0x29b4a1;}[_0x3e92f2(0x3b9)](_0x214b53){const _0x5dfd54=_0x3e92f2;if(this[_0x5dfd54(0x219)](_0x214b53))return this[_0x5dfd54(0x443)][_0x5dfd54(0x1df)](G,this['unitID'],this[_0x5dfd54(0x342)],this[_0x5dfd54(0x4ca)],[],null,[_0x214b53],this['_handler']);try{const _0x5d5761=this[_0x5dfd54(0x22e)][_0x5dfd54(0x2c3)]([_0x214b53],[this[_0x5dfd54(0x4ca)]],!0x1);if(_0x27db11(_0x5d5761)){const {c1Prime:_0x43c06b,c2Prime:_0x49b466}=_0x5d5761;this[_0x5dfd54(0x223)](_0x43c06b[0x0]),_0x49b466[0x0]['baseRev']=this['_getCurrentRevision']();const _0x50ef95=this['_injector'][_0x5dfd54(0x1df)](J,this['unitID'],this['type'],_0x49b466[0x0],this[_0x5dfd54(0x30d)]);return _0x50ef95[_0x5dfd54(0x434)](),_0x50ef95;}return this['_onConflict'](!0x1);}catch(_0x2b2cd3){return this[_0x5dfd54(0x27b)]['error'](_0x2b2cd3),this[_0x5dfd54(0x236)](!0x1);}}[_0x3e92f2(0x2b4)](_0x282726){const _0x1cb292=_0x3e92f2,_0x5607f9=this[_0x1cb292(0x49e)]['getCurrentRevForDocument'](this[_0x1cb292(0x3ca)]);if(_0x282726['revision']<_0x5607f9-0x1)return this;if(this[_0x1cb292(0x219)](_0x282726))return this['_injector'][_0x1cb292(0x1df)](G,this[_0x1cb292(0x3ca)],this[_0x1cb292(0x342)],null,[],this[_0x1cb292(0x4ca)],[],this[_0x1cb292(0x30d)]);this[_0x1cb292(0x498)]();const _0x44a95c=this[_0x1cb292(0x443)][_0x1cb292(0x1df)](Ne,this['unitID'],this[_0x1cb292(0x342)],this['_handler']);return _0x44a95c[_0x1cb292(0x434)](),_0x44a95c;}['onRemoteRej'](_0x10e19b){const _0x4adfc5=_0x3e92f2;return this[_0x4adfc5(0x236)](!!(_0x10e19b!=null&&_0x10e19b[_0x4adfc5(0x30e)]));}['toggleOffline'](){const _0x52253b=_0x3e92f2;return this[_0x52253b(0x443)]['createInstance'](z,this[_0x52253b(0x3ca)],this[_0x52253b(0x342)],this[_0x52253b(0x4ca)],[],this[_0x52253b(0x30d)]);}[_0x3e92f2(0x239)](){return this;}[_0x3e92f2(0x1c0)](){const _0x282f66=_0x3e92f2;this[_0x282f66(0x30d)][_0x282f66(0x43a)](this[_0x282f66(0x4ca)]);}[_0x3e92f2(0x236)](_0x41e0e8){const _0x21ecf3=_0x3e92f2;return this['_injector']['createInstance'](re,this[_0x21ecf3(0x3ca)],this[_0x21ecf3(0x342)],this[_0x21ecf3(0x4ca)],[],this[_0x21ecf3(0x30d)],_0x41e0e8);}};J=oe([m(0x4,_0xbbf94a(_0xa8f435)),m(0x5,_0xbbf94a(_0xee930)),m(0x6,_0xbbf94a(D)),m(0x7,_0x109aa8),m(0x8,_0x46d807),m(0x9,_0x1b279b),m(0xa,_0x1e106e)],J);let W=class extends ae{constructor(_0x106ec1,_0x554ddd,_0x4074f3,_0x2c439b,_0x3280d7,_0x2ca8bb,_0x3d0ea7,_0x4c7496,_0x25e5b6,_0x3fc7d8,_0x3faa52,_0x2c9da2){const _0x3f900c=_0x3e92f2;super(_0x106ec1,_0x554ddd,_0x4074f3,_0x2c439b,_0x3280d7,_0x25e5b6,_0x2c9da2,_0x3d0ea7,_0x4c7496),l(this,_0x3f900c(0x306),_0x3f900c(0x301)),(this['_injector']=_0x2ca8bb,this['_logService']=_0x3fc7d8,this[_0x3f900c(0x22e)]=_0x3faa52);}['appendMutation'](_0x1350cc){const _0x97b7d1=_0x3e92f2;return this['_pendingMutations'][_0x97b7d1(0x2cb)](_0x1350cc),this;}[_0x3e92f2(0x3b9)](_0x5b3746){const _0xf86c05=_0x3e92f2;if(this[_0xf86c05(0x219)](_0x5b3746))return this[_0xf86c05(0x443)][_0xf86c05(0x1df)](G,this[_0xf86c05(0x3ca)],this[_0xf86c05(0x342)],this['_awaitingChangeset'],this[_0xf86c05(0x439)],null,[_0x5b3746],this[_0xf86c05(0x30d)]);try{const _0x406c0b=this[_0xf86c05(0x22e)]['transformChangesets']([_0x5b3746],[this[_0xf86c05(0x4ca)]],!0x1);if(_0x27db11(_0x406c0b)){const {c1Prime:_0x4e940e,c2Prime:_0x1ba4dd}=_0x406c0b,_0x18a80b=this[_0xf86c05(0x22e)][_0xf86c05(0x242)](_0x4e940e[0x0],this[_0xf86c05(0x439)]);if(_0x496a31(_0x18a80b)){const {c1Prime:_0x1ddb0d,m2Prime:_0x270c0b}=_0x18a80b;return this[_0xf86c05(0x223)](_0x1ddb0d),_0x1ba4dd[0x0][_0xf86c05(0x206)]=this['_getCurrentRevision'](),this['_injector']['createInstance'](W,this[_0xf86c05(0x3ca)],this[_0xf86c05(0x342)],_0x1ba4dd[0x0],_0x270c0b,this['_handler']);}throw _0x18a80b['error'];}throw _0x406c0b[_0xf86c05(0x23c)];}catch(_0xc3d2c8){return this[_0xf86c05(0x27b)][_0xf86c05(0x23c)](_0xc3d2c8),this[_0xf86c05(0x236)](!0x1);}}[_0x3e92f2(0x2b4)](_0x39492b){const _0xa23e9e=_0x3e92f2;if(this[_0xa23e9e(0x219)](_0x39492b))return this['_injector'][_0xa23e9e(0x1df)](G,this[_0xa23e9e(0x3ca)],this['type'],null,this[_0xa23e9e(0x439)],this[_0xa23e9e(0x4ca)],[],this[_0xa23e9e(0x30d)]);this[_0xa23e9e(0x498)]();const _0x526918=this[_0xa23e9e(0x443)]['createInstance'](k,this[_0xa23e9e(0x3ca)],this[_0xa23e9e(0x342)],this[_0xa23e9e(0x439)],this[_0xa23e9e(0x30d)]);return _0x526918[_0xa23e9e(0x1b5)](),_0x526918[_0xa23e9e(0x434)](),_0x526918;}[_0x3e92f2(0x257)](_0x5cc35f){const _0x26e6a8=_0x3e92f2;return this[_0x26e6a8(0x236)](!!(_0x5cc35f!=null&&_0x5cc35f[_0x26e6a8(0x30e)]));}[_0x3e92f2(0x373)](){const _0x169c91=_0x3e92f2;return this['_injector'][_0x169c91(0x1df)](z,this[_0x169c91(0x3ca)],this[_0x169c91(0x342)],this[_0x169c91(0x4ca)],this[_0x169c91(0x439)],this[_0x169c91(0x30d)]);}[_0x3e92f2(0x239)](){return this;}[_0x3e92f2(0x1c0)](){const _0x553c7a=_0x3e92f2;this[_0x553c7a(0x30d)][_0x553c7a(0x43a)](this[_0x553c7a(0x4ca)]);}[_0x3e92f2(0x236)](_0x4a6e5f){const _0x1b3ddd=_0x3e92f2;return this['_injector'][_0x1b3ddd(0x1df)](re,this[_0x1b3ddd(0x3ca)],this[_0x1b3ddd(0x342)],null,this[_0x1b3ddd(0x439)],this['_handler'],_0x4a6e5f);}};W=oe([m(0x5,_0xbbf94a(_0xa8f435)),m(0x6,_0xbbf94a(_0xee930)),m(0x7,_0xbbf94a(D)),m(0x8,_0x109aa8),m(0x9,_0x46d807),m(0xa,_0x1b279b),m(0xb,_0x1e106e)],W);let re=class extends ae{constructor(_0x44aad0,_0x2acd27,_0x193589,_0x2426e7,_0x469cdc,_0x8a3eee=!0x1,_0x4d3a3e,_0x3d3f34,_0x4480a7,_0x2170f0,_0x181d9d,_0x45b084,_0x39ba83){const _0x55ad0c=_0x3e92f2;super(_0x44aad0,_0x2acd27,_0x193589,_0x2426e7,_0x469cdc,_0x3d3f34,_0x4480a7,_0x181d9d,_0x2170f0),l(this,'status',_0x55ad0c(0x29d)),(this['_isPermissionRej']=_0x8a3eee,this['_permissionService']=_0x4d3a3e,this[_0x55ad0c(0x4b3)]=_0x45b084,this[_0x55ad0c(0x2bb)]=_0x39ba83,this[_0x55ad0c(0x222)](),this[_0x55ad0c(0x274)](),this[_0x55ad0c(0x3f5)]());}[_0x3e92f2(0x336)](){return this;}['onRemoteChangeset'](){return this;}[_0x3e92f2(0x2b4)](){return this;}['onRemoteRej'](){return this;}[_0x3e92f2(0x373)](){return this;}['toggleOnline'](){return this;}[_0x3e92f2(0x1c0)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3e92f2(0x274)](){const _0xbb9a25=_0x3e92f2;this['_localCacheService'][_0xbb9a25(0x271)](this['unitID'],this['type'],null,[]);}[_0x3e92f2(0x222)](){const _0x33bab7=_0x3e92f2;this[_0x33bab7(0x4a5)]?this['_notificationService'][_0x33bab7(0x3a7)]({'title':this[_0x33bab7(0x4b3)]['t'](_0x33bab7(0x37e)),'content':this[_0x33bab7(0x4b3)]['t'](_0x33bab7(0x3ed)),'type':_0x33bab7(0x23c),'duration':0x0}):this['_notificationService']['show']({'title':this['_localeService']['t'](_0x33bab7(0x32c)),'content':this['_localeService']['t'](_0x33bab7(0x2a5)),'type':_0x33bab7(0x23c),'duration':0x0});}[_0x3e92f2(0x3f5)](){const _0x3ac4b2=_0x3e92f2;this[_0x3ac4b2(0x3b3)][_0x3ac4b2(0x4a9)](new _0xd881f1(this['unitID'])['id'],!0x1);}};re=oe([m(0x6,_0xbbf94a(_0x4acf08)),m(0x7,_0x109aa8),m(0x8,_0x1e106e),m(0x9,_0xbbf94a(D)),m(0xa,_0xbbf94a(_0xee930)),m(0xb,_0xbbf94a(_0x6789ab)),m(0xc,_0x47f284)],re);let z=class extends ae{constructor(_0x15f927,_0x261d6a,_0x3bbf11,_0x1319f3,_0x4f19be,_0x5ab455,_0x544eb8,_0x5f3001,_0x758ed9,_0x16e298){const _0x3d0bf2=_0x3e92f2;super(_0x15f927,_0x261d6a,_0x3bbf11,_0x1319f3,_0x4f19be,_0x758ed9,_0x16e298,_0x544eb8,_0x5f3001),l(this,'status',_0x3d0bf2(0x258)),this[_0x3d0bf2(0x443)]=_0x5ab455;}['appendMutation'](_0x2e155e){const _0x269c0d=_0x3e92f2;return this[_0x269c0d(0x439)][_0x269c0d(0x2cb)](_0x2e155e),this[_0x269c0d(0x434)](),this;}[_0x3e92f2(0x3b9)](_0x4bf65f){const _0x5deff5=_0x3e92f2;throw new Error(_0x5deff5(0x1aa));}['onRemoteAck'](){const _0x21ed46=_0x3e92f2;throw new Error(_0x21ed46(0x37f));}[_0x3e92f2(0x257)](){const _0x33093a=_0x3e92f2;throw new Error(_0x33093a(0x34c));}[_0x3e92f2(0x373)](){return this;}[_0x3e92f2(0x239)](){const _0x3e3a73=_0x3e92f2,{_injector:_0x84f40,_pendingMutations:_0x57bb15,_awaitingChangeset:_0x56bf21,unitID:_0x421340,_handler:_0x3767fe,type:_0x386369}=this,_0x679725=Ms(_0x84f40,_0x421340,_0x386369,_0x56bf21,_0x57bb15,_0x3767fe);return _0x679725 instanceof k?_0x679725[_0x3e3a73(0x1b5)]():(_0x679725 instanceof W||_0x679725 instanceof J)&&_0x679725[_0x3e3a73(0x1c0)](),_0x679725;}[_0x3e92f2(0x1c0)](){const _0x5750df=_0x3e92f2;throw new Error(_0x5750df(0x25e));}};z=oe([m(0x5,_0xbbf94a(_0xa8f435)),m(0x6,_0xbbf94a(_0xee930)),m(0x7,_0xbbf94a(D)),m(0x8,_0x109aa8),m(0x9,_0x1e106e)],z);let G=class extends ae{constructor(_0x11db1c,_0x22bdef,_0x4091bf,_0x433bdf,_0x56cd4a,_0xd3cb2f,_0x7dcea4,_0x177bc1,_0x4d3d36,_0x3d2129,_0x22cdf0,_0x11f9a9,_0x284d18,_0x3f2772){const _0x968ea2=_0x3e92f2;super(_0x11db1c,_0x22bdef,_0x4091bf,_0x433bdf,_0x7dcea4,_0x11f9a9,_0x284d18,_0x4d3d36,_0x3d2129),l(this,_0x968ea2(0x306),_0x968ea2(0x40b)),(this[_0x968ea2(0x1bc)]=_0x56cd4a,this[_0x968ea2(0x460)]=_0xd3cb2f,this['_injector']=_0x177bc1,this[_0x968ea2(0x27b)]=_0x22cdf0,this[_0x968ea2(0x22e)]=_0x3f2772);}['onMissedChangesetFetched'](_0x264d1d){const _0x430ef1=_0x3e92f2;try{const _0x35d1c9=[..._0x264d1d,...this[_0x430ef1(0x460)]],_0x4eaf44=[this[_0x430ef1(0x4ca)]||this[_0x430ef1(0x1bc)]][_0x430ef1(0x2c5)](_0xf98727=>!!_0xf98727);let _0x40496a,_0x26c99d;if(_0x4eaf44[_0x430ef1(0x1a4)]){const _0x5c3cf8=this[_0x430ef1(0x22e)]['transformChangesets'](_0x35d1c9,_0x4eaf44,!0x1);if(!_0x27db11(_0x5c3cf8))throw _0x5c3cf8['error'];_0x40496a=_0x5c3cf8[_0x430ef1(0x2e7)],_0x26c99d=_0x5c3cf8[_0x430ef1(0x2e9)];}else _0x40496a=_0x35d1c9,_0x26c99d=[];let _0x562ad3=this[_0x430ef1(0x439)];_0x40496a['forEach'](_0x402da1=>{const _0x20d0ea=_0x430ef1;let _0x4fa775;if(_0x562ad3[_0x20d0ea(0x1a4)]){const _0x31ca7f=this[_0x20d0ea(0x22e)]['transformMutationsWithChangeset'](_0x402da1,_0x562ad3);if(!_0x496a31(_0x31ca7f))throw _0x31ca7f[_0x20d0ea(0x23c)];_0x4fa775=_0x31ca7f[_0x20d0ea(0x2e7)],_0x562ad3=_0x31ca7f[_0x20d0ea(0x2fb)];}else _0x4fa775=_0x402da1;this['_executeRemoteChangeset'](_0x4fa775);}),this['_acknowledgedAwaitingChangeset']&&this['_incrementRevisionNumber'](),this[_0x430ef1(0x4ca)]&&_0x26c99d[_0x430ef1(0x1a4)]&&(_0x26c99d[0x0][_0x430ef1(0x206)]=this[_0x430ef1(0x1fe)]());let _0x59b480;if(this[_0x430ef1(0x4ca)]&&_0x562ad3['length']!==0x0)_0x59b480=this[_0x430ef1(0x443)]['createInstance'](W,this[_0x430ef1(0x3ca)],this[_0x430ef1(0x342)],_0x26c99d[0x0],_0x562ad3,this[_0x430ef1(0x30d)]);else{if(this['_awaitingChangeset']&&_0x562ad3[_0x430ef1(0x1a4)]===0x0)_0x26c99d[0x0][_0x430ef1(0x206)]=this[_0x430ef1(0x1fe)](),_0x59b480=this[_0x430ef1(0x443)][_0x430ef1(0x1df)](J,this['unitID'],this[_0x430ef1(0x342)],_0x26c99d[0x0],this[_0x430ef1(0x30d)]);else{if(_0x562ad3[_0x430ef1(0x1a4)]!==0x0){const _0x24503d=this['_injector']['createInstance'](k,this[_0x430ef1(0x3ca)],this[_0x430ef1(0x342)],_0x562ad3,this[_0x430ef1(0x30d)]);_0x24503d[_0x430ef1(0x1b5)](),_0x59b480=_0x24503d;}else _0x59b480=this[_0x430ef1(0x443)]['createInstance'](Ne,this[_0x430ef1(0x3ca)],this['type'],this['_handler']);}}return _0x59b480[_0x430ef1(0x434)](),_0x59b480;}catch(_0x1540bf){return this[_0x430ef1(0x27b)][_0x430ef1(0x23c)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x1540bf),this[_0x430ef1(0x443)][_0x430ef1(0x1df)](re,this['unitID'],this[_0x430ef1(0x342)],this[_0x430ef1(0x4ca)],this[_0x430ef1(0x439)],this[_0x430ef1(0x30d)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3e92f2(0x336)](_0x3ea335){const _0x49395f=_0x3e92f2;return this[_0x49395f(0x439)][_0x49395f(0x2cb)](_0x3ea335),this;}['onRemoteChangeset'](_0x2e87c8){const _0x5e9866=_0x3e92f2;return this[_0x5e9866(0x460)][_0x5e9866(0x2cb)](_0x2e87c8),this;}[_0x3e92f2(0x2b4)](_0x3b5aca){const _0x5d22b9=_0x3e92f2;if(this[_0x5d22b9(0x4ca)])return this['_acknowledgedAwaitingChangeset']=this[_0x5d22b9(0x4ca)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x3cca9a){const _0x132884=_0x3e92f2;return this[_0x132884(0x236)](!!(_0x3cca9a!=null&&_0x3cca9a['isPermissionRej']));}[_0x3e92f2(0x373)](){const _0x1961eb=_0x3e92f2;return this[_0x1961eb(0x443)]['createInstance'](z,this['unitID'],this[_0x1961eb(0x342)],this[_0x1961eb(0x4ca)],this[_0x1961eb(0x439)],this[_0x1961eb(0x30d)]);}[_0x3e92f2(0x239)](){return this;}[_0x3e92f2(0x236)](_0x40b58d){const _0x158d77=_0x3e92f2;return this[_0x158d77(0x443)]['createInstance'](re,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x158d77(0x439)],this[_0x158d77(0x30d)],_0x40b58d);}};G=oe([m(0x7,_0xbbf94a(_0xa8f435)),m(0x8,_0xbbf94a(_0xee930)),m(0x9,_0xbbf94a(D)),m(0xa,_0x46d807),m(0xb,_0x109aa8),m(0xc,_0x1e106e),m(0xd,_0x1b279b)],G);function Ms(_0x327022,_0x55f5a2,_0x2a0fc9,_0x25658b,_0x28df7b,_0x13fd6b){const _0x3f48ae=_0x3e92f2;return _0x25658b&&_0x28df7b[_0x3f48ae(0x1a4)]?_0x327022[_0x3f48ae(0x1df)](W,_0x55f5a2,_0x2a0fc9,_0x25658b,_0x28df7b,_0x13fd6b):_0x25658b?_0x327022[_0x3f48ae(0x1df)](J,_0x55f5a2,_0x2a0fc9,_0x25658b,_0x13fd6b):_0x28df7b[_0x3f48ae(0x1a4)]?_0x327022[_0x3f48ae(0x1df)](k,_0x55f5a2,_0x2a0fc9,_0x28df7b,_0x13fd6b):_0x327022['createInstance'](Ne,_0x55f5a2,_0x2a0fc9,_0x13fd6b);}var Kn=Object['defineProperty'],Xn=Object['getOwnPropertyDescriptor'],tt=(_0x45296e,_0x435450,_0x2abadd,_0x37ba71)=>{for(var _0x566698=_0x37ba71>0x1?void 0x0:_0x37ba71?Xn(_0x435450,_0x2abadd):_0x435450,_0x4f6c42=_0x45296e['length']-0x1,_0x555a8f;_0x4f6c42>=0x0;_0x4f6c42--)(_0x555a8f=_0x45296e[_0x4f6c42])&&(_0x566698=(_0x37ba71?_0x555a8f(_0x435450,_0x2abadd,_0x566698):_0x555a8f(_0x566698))||_0x566698);return _0x37ba71&&_0x566698&&Kn(_0x435450,_0x2abadd,_0x566698),_0x566698;},S=(_0x1ce859,_0x253080)=>(_0x575309,_0x2a7057)=>_0x253080(_0x575309,_0x2a7057,_0x1ce859);let De=class extends _0x4c153b{constructor(_0x4ddd23,_0x36f9f9,_0x2f9497){const _0x38f73a=_0x3e92f2;super(),l(this,_0x38f73a(0x412),new Map()),l(this,_0x38f73a(0x1a6),new _0x440796()),(this[_0x38f73a(0x443)]=_0x4ddd23,this[_0x38f73a(0x1f8)]=_0x36f9f9,this[_0x38f73a(0x1ef)]=_0x2f9497,this[_0x38f73a(0x35e)]());}[_0x3e92f2(0x25d)](){const _0x25b78e=_0x3e92f2;super['dispose'](),this[_0x25b78e(0x412)]['forEach'](_0x349f53=>_0x349f53[_0x25b78e(0x25d)]()),this[_0x25b78e(0x412)][_0x25b78e(0x494)]();}[_0x3e92f2(0x3d6)](_0x10c3fd){const _0x30d1f6=_0x3e92f2;var _0x22bf87;return(_0x22bf87=this[_0x30d1f6(0x412)][_0x30d1f6(0x2d5)](_0x10c3fd))!=null?_0x22bf87:null;}['getCollabEntity$'](_0x348c97){const _0x12da36=_0x3e92f2,_0x57139e=this['getCollabEntity'](_0x348c97);return _0x57139e?_0x53ae42(_0x57139e):this['_entityInit$']['pipe'](_0x5e91b7(_0x3bcb30=>_0x3bcb30[_0x12da36(0x3ca)]===_0x348c97));}['_init'](){const _0x2a105e=_0x3e92f2;this[_0x2a105e(0x1ef)][_0x2a105e(0x2c9)](_0x41ddf6['UNIVER_SHEET'])['pipe'](_0x254c9c(this['dispose$']),_0x392c2d(0x10))[_0x2a105e(0x4be)](async _0x12edd9=>{const _0x5e965e=_0x2a105e,_0x357d88=_0x12edd9['getUnitId'](),_0x2e416f=await this[_0x5e965e(0x2f8)](_0x357d88,H[_0x5e965e(0x241)]);this[_0x5e965e(0x412)][_0x5e965e(0x2bc)](_0x357d88,_0x2e416f);}),this[_0x2a105e(0x1ef)][_0x2a105e(0x2c9)](_0x41ddf6['UNIVER_DOC'])[_0x2a105e(0x407)](_0x254c9c(this[_0x2a105e(0x4b2)]),_0x392c2d(0x10))['pipe'](_0x5e91b7(_0x5dd757=>!_0x5dd757[_0x2a105e(0x47a)]()[_0x2a105e(0x3f9)]('__')))[_0x2a105e(0x4be)](async _0x353adf=>{const _0xc4ccc1=_0x2a105e,_0x4208c7=_0x353adf[_0xc4ccc1(0x47a)](),_0x125646=await this[_0xc4ccc1(0x2f8)](_0x4208c7,H['UNIVER_DOC']);this[_0xc4ccc1(0x412)][_0xc4ccc1(0x2bc)](_0x4208c7,_0x125646);}),_0x2b9a75(this['_univerInstanceService'][_0x2a105e(0x319)](_0x41ddf6['UNIVER_SHEET']),this['_univerInstanceService'][_0x2a105e(0x319)](_0x41ddf6['UNIVER_DOC']))['pipe'](_0x254c9c(this[_0x2a105e(0x4b2)]))[_0x2a105e(0x4be)](_0x26614b=>{const _0x59b534=_0x2a105e,_0x556c0c=_0x26614b[_0x59b534(0x47a)](),_0x4bce6c=this[_0x59b534(0x412)][_0x59b534(0x2d5)](_0x556c0c);_0x4bce6c&&(_0x4bce6c['dispose'](),this[_0x59b534(0x412)][_0x59b534(0x36f)](_0x556c0c));});}async[_0x3e92f2(0x2f8)](_0x4f410b,_0x5577a8){const _0x192eaa=_0x3e92f2,_0x115e89=await this[_0x192eaa(0x1f8)][_0x192eaa(0x3cc)](_0x4f410b),_0x1bc04a=this[_0x192eaa(0x443)][_0x192eaa(0x1df)](this[_0x192eaa(0x286)](_0x5577a8),_0x4f410b,_0x5577a8,_0x115e89);return await _0x1bc04a['init'](),this[_0x192eaa(0x1a6)][_0x192eaa(0x3ea)](_0x1bc04a),_0x1bc04a;}[_0x3e92f2(0x286)](_0x5af4f6){const _0x3177b1=_0x3e92f2;switch(_0x5af4f6){case H[_0x3177b1(0x2e1)]:return vt;case H[_0x3177b1(0x241)]:return pt;default:throw new Error(_0x3177b1(0x36d)+_0x5af4f6);}}};De=tt([_0x405ab3(_0x57f2ea[_0x3e92f2(0x1e8)],De),S(0x0,_0xbbf94a(_0xa8f435)),S(0x1,_0xbbf94a(ge)),S(0x2,_0x5f1ae0)],De);let qe=class extends _0x4c153b{constructor(_0x5f5df2,_0x31d1bc,_0x542d42,_0xbf5d58,_0x17c99c,_0x55613a,_0x320712,_0x3ce628,_0x25e79b,_0x22b273,_0x19b654,_0x322d2b,_0x7778e7){const _0x19723b=_0x3e92f2;super(),l(this,'_state$',new _0x4d79d8(null)),l(this,'state$',this[_0x19723b(0x196)][_0x19723b(0x423)]()),l(this,'_state'),l(this,_0x19723b(0x34e),!0x1),l(this,_0x19723b(0x4a1),this[_0x19723b(0x321)]['pipe'](_0x4ed52e(_0x971e6c=>_0x971e6c?_0x971e6c['status']:P[_0x19723b(0x461)]),_0x5d4314(0x1))),l(this,_0x19723b(0x2cf),!0x1),l(this,_0x19723b(0x3cf),[]),(this[_0x19723b(0x3ca)]=_0x5f5df2,this['_type']=_0x31d1bc,this[_0x19723b(0x1ab)]=_0x542d42,this[_0x19723b(0x443)]=_0xbf5d58,this[_0x19723b(0x2d9)]=_0x17c99c,this[_0x19723b(0x331)]=_0x55613a,this[_0x19723b(0x4b3)]=_0x320712,this[_0x19723b(0x49e)]=_0x3ce628,this[_0x19723b(0x27b)]=_0x25e79b,this[_0x19723b(0x1f2)]=_0x22b273,this[_0x19723b(0x458)]=_0x19b654,this[_0x19723b(0x3b3)]=_0x322d2b,this[_0x19723b(0x32a)]=_0x7778e7);}get['state'](){const _0x3e39af=_0x3e92f2;return this[_0x3e39af(0x3a6)];}async[_0x3e92f2(0x3bd)](){const _0x2d36c1=_0x3e92f2;if(this[_0x2d36c1(0x450)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x2d36c1(0x35e)]();}[_0x3e92f2(0x440)](){const _0x2e7d9a=_0x3e92f2;return this[_0x2e7d9a(0x34e)]=!0x0,_0x38ac23(()=>{const _0x4a0201=_0x2e7d9a;this[_0x4a0201(0x34e)]=!0x1,this[_0x4a0201(0x384)]();});}[_0x3e92f2(0x499)](_0x12dadd){const _0x3d3fd8=_0x3e92f2;this[_0x3d3fd8(0x3a6)]=_0x12dadd,this[_0x3d3fd8(0x196)][_0x3d3fd8(0x3ea)](_0x12dadd);}async[_0x3e92f2(0x35e)](){const _0x94f476=_0x3e92f2;var _0x45c5ba;return this[_0x94f476(0x499)](await this[_0x94f476(0x355)]()),this[_0x94f476(0x32a)]&&((_0x45c5ba=this[_0x94f476(0x32a)])==null||_0x45c5ba[_0x94f476(0x345)](this[_0x94f476(0x3ca)]),this[_0x94f476(0x280)](_0x38ac23(this[_0x94f476(0x32a)]['getUnitStatus$'](this[_0x94f476(0x3ca)])[_0x94f476(0x4be)](_0x3122f9=>{const _0x1170a4=_0x94f476;this[_0x1170a4(0x27b)][_0x1170a4(0x2f1)](_0x1170a4(0x20e),_0x1170a4(0x493),_0x3122f9),_0x3122f9===Ps['OTHER_CLIENTS_EDITING']?(this[_0x1170a4(0x458)][_0x1170a4(0x3a7)]({'content':this[_0x1170a4(0x4b3)]['t'](_0x1170a4(0x44a)),'type':_0x4f4f06[_0x1170a4(0x1b1)]}),this['_permissionService'][_0x1170a4(0x4a9)](new _0xd881f1(this[_0x1170a4(0x3ca)])['id'],!0x1)):this[_0x1170a4(0x3b3)]['updatePermissionPoint'](new _0xd881f1(this[_0x1170a4(0x3ca)])['id'],!0x0);})))),this[_0x94f476(0x280)](_0x38ac23(this[_0x94f476(0x1ab)][_0x94f476(0x397)][_0x94f476(0x4be)](_0x5d3756=>{const _0x1e3eff=_0x94f476;_0x5d3756===de[_0x1e3eff(0x405)]?this['_toggleOnline']():_0x5d3756===de[_0x1e3eff(0x461)]&&this[_0x1e3eff(0x276)]();}))),this['disposeWithMe'](_0x38ac23(this['_session'][_0x94f476(0x2c7)][_0x94f476(0x4be)](_0x117a48=>{const _0x54750c=_0x94f476;try{switch(_0x117a48[_0x54750c(0x1af)]){case _0x34e231['NEW_CHANGESETS']:{this[_0x54750c(0x293)](_0x3d7418(_0x117a48[_0x54750c(0x208)]));break;}case _0x34e231[_0x54750c(0x45b)]:{this[_0x54750c(0x316)](_0x117a48[_0x54750c(0x208)]);break;}case _0x34e231['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case _0x34e231[_0x54750c(0x374)]:{this[_0x54750c(0x238)](_0x117a48[_0x54750c(0x208)]['changesets']['map'](_0x1d9dea=>_0x3d7418(_0x1d9dea)));break;}case _0x34e231[_0x54750c(0x1c1)]:this[_0x54750c(0x262)]({'isPermissionRej':!0x0});}}catch(_0x3fb3ba){throw console[_0x54750c(0x23c)](_0x54750c(0x3ac),_0x3fb3ba),_0x3fb3ba;}}))),this[_0x94f476(0x3a6)];}[_0x3e92f2(0x389)](){const _0x274db2=_0x3e92f2;this[_0x274db2(0x2cf)]=!0x1;}[_0x3e92f2(0x38a)](){const _0x351885=_0x3e92f2;if(this[_0x351885(0x2cf)])throw new Error(_0x351885(0x35c));this['_transitionLocked']=!0x0;}[_0x3e92f2(0x45a)](_0x1fe8e5){const _0x36b01d=_0x3e92f2;this[_0x36b01d(0x38a)](),this['_updateState'](this['_state'][_0x36b01d(0x336)](_0x1fe8e5)),this['_unlockTransition']();}[_0x3e92f2(0x293)](_0xf05d7b){const _0x5e16e6=_0x3e92f2;if(!(_0xf05d7b['revision']<=this[_0x5e16e6(0x49e)][_0x5e16e6(0x232)](this[_0x5e16e6(0x3ca)]))){if(this[_0x5e16e6(0x34e)]){this[_0x5e16e6(0x3cf)]['push'](_0xf05d7b);return;}this['_applyRemoteChangeset'](_0xf05d7b);}}[_0x3e92f2(0x384)](){const _0x44064b=_0x3e92f2;this['_remoteChangesetQueue'][_0x44064b(0x1b8)](_0x2744f7=>this[_0x44064b(0x4bf)](_0x2744f7)),this[_0x44064b(0x3cf)]=[];}[_0x3e92f2(0x4bf)](_0x1b4d4b){const _0x54e5f7=_0x3e92f2,_0x2cfc71=this[_0x54e5f7(0x331)][_0x54e5f7(0x310)]['fetchThroughInterceptors'](this[_0x54e5f7(0x331)][_0x54e5f7(0x310)][_0x54e5f7(0x424)]()[_0x54e5f7(0x4c5)])(_0x1b4d4b[_0x54e5f7(0x1d5)],null)||_0x1b4d4b[_0x54e5f7(0x1d5)],_0x3ad5c8={..._0x1b4d4b,'mutations':_0x2cfc71};this['_lockTransition'](),this[_0x54e5f7(0x499)](this['_state'][_0x54e5f7(0x3b9)](_0x3ad5c8)),this[_0x54e5f7(0x389)]();}[_0x3e92f2(0x316)](_0x77b148){const _0x215d0e=_0x3e92f2;this[_0x215d0e(0x38a)](),this['_updateState'](this[_0x215d0e(0x3a6)][_0x215d0e(0x2b4)](_0x77b148)),this['_unlockTransition']();}['_onRemoteRejected'](_0x324653){const _0x2a8407=_0x3e92f2;this[_0x2a8407(0x38a)](),this[_0x2a8407(0x499)](this[_0x2a8407(0x3a6)][_0x2a8407(0x257)](_0x324653)),this[_0x2a8407(0x389)]();}[_0x3e92f2(0x238)](_0x38a90e){const _0x40f9ef=_0x3e92f2;if(!(this[_0x40f9ef(0x3a6)]instanceof G))throw new TypeError(_0x40f9ef(0x1c2));const _0x36b426=_0x38a90e['map'](_0x236a3c=>{const _0x495d79=_0x40f9ef,_0x8c037=this['_compressMutationService'][_0x495d79(0x310)]['fetchThroughInterceptors'](this[_0x495d79(0x331)][_0x495d79(0x310)][_0x495d79(0x424)]()[_0x495d79(0x4c5)])(_0x236a3c[_0x495d79(0x1d5)],null)||_0x236a3c[_0x495d79(0x1d5)];return{..._0x236a3c,'mutations':_0x8c037};});this[_0x40f9ef(0x38a)](),this[_0x40f9ef(0x499)](this['_state']['onMissedChangesetFetched'](_0x36b426)),this[_0x40f9ef(0x389)]();}['_toggleOffline'](){const _0x75b8d4=_0x3e92f2;this[_0x75b8d4(0x38a)](),this[_0x75b8d4(0x499)](this['_state'][_0x75b8d4(0x373)]()),this[_0x75b8d4(0x389)]();}[_0x3e92f2(0x1c7)](){const _0x17d391=_0x3e92f2;this[_0x17d391(0x38a)](),this['_updateState'](this[_0x17d391(0x3a6)][_0x17d391(0x239)]()),this[_0x17d391(0x389)]();}async[_0x3e92f2(0x355)](){return new Promise(_0x29d0c8=>{const _0x5c4e99=_0x4256;this['_session'][_0x5c4e99(0x397)]['pipe'](_0x401b81(0x1))[_0x5c4e99(0x4be)](async _0x5cdd13=>{const _0x4cae45=_0x5c4e99;_0x29d0c8(await this[_0x4cae45(0x24c)](_0x5cdd13===de[_0x4cae45(0x405)]));});});}[_0x3e92f2(0x3e2)](){const _0x445470=this['unitID'];return{'onStateChange':(_0x1ce1b4,_0x81c162)=>{const _0x40468a=_0x4256;if(_0x1ce1b4!==this[_0x40468a(0x3a6)])throw new Error(_0x40468a(0x47e)+_0x1ce1b4[_0x40468a(0x306)]+_0x40468a(0x2b0)+_0x81c162['status']+'\x0aCurrent:\x20'+this['_state'][_0x40468a(0x306)]);this[_0x40468a(0x499)](_0x81c162);},'onSendChangeset':_0x466bbc=>{const _0x76e027=_0x4256,_0x194420={'eventID':_0x34e231[_0x76e027(0x44d)],'data':{'unitID':_0x466bbc[_0x76e027(0x3ca)],'unitType':this[_0x76e027(0x1a9)],'changeset':_0x466bbc,'memberID':this[_0x76e027(0x1ab)]['getMemberID']()}};this[_0x76e027(0x1ab)][_0x76e027(0x229)](_0x194420,this[_0x76e027(0x3ca)]);},'onMissingChangesets':({from:_0x4cc422,to:_0x5b20b3})=>{const _0x303e9f=_0x4256;this['_logService'][_0x303e9f(0x2f1)](_0x303e9f(0x20e),_0x303e9f(0x4b0)+_0x4cc422+_0x303e9f(0x28d)+_0x5b20b3);const _0x26e19b={'eventID':_0x34e231[_0x303e9f(0x2c4)],'data':{'unitID':_0x445470,'unitType':this[_0x303e9f(0x1a9)],'from':_0x4cc422,'to':_0x5b20b3}};this[_0x303e9f(0x1ab)][_0x303e9f(0x229)](_0x26e19b,this[_0x303e9f(0x3ca)]);}};}async[_0x3e92f2(0x24c)](_0x55129b){const _0x101aa0=_0x3e92f2;var _0x18d9c0,_0x20694c;const _0x327f17=await this[_0x101aa0(0x2d9)][_0x101aa0(0x4bc)](this[_0x101aa0(0x3ca)]),_0x288a2b=(_0x18d9c0=_0x327f17==null?void 0x0:_0x327f17['mutations'])!=null?_0x18d9c0:[],_0x3b7eb9=(_0x20694c=_0x327f17==null?void 0x0:_0x327f17[_0x101aa0(0x2b2)])!=null?_0x20694c:null,_0x378caa=this[_0x101aa0(0x3ca)];try{this[_0x101aa0(0x42d)](_0x3b7eb9,_0x288a2b);}catch(_0x3bee80){this[_0x101aa0(0x27b)][_0x101aa0(0x23c)](_0x3bee80);}const _0x144a6f=this[_0x101aa0(0x3e2)]();if(_0x55129b){const _0xa64035=Ms(this[_0x101aa0(0x443)],_0x378caa,this[_0x101aa0(0x1a9)],_0x3b7eb9,_0x288a2b,_0x144a6f);return _0xa64035 instanceof k?_0xa64035[_0x101aa0(0x1b5)]():(_0xa64035 instanceof W||_0xa64035 instanceof J)&&_0xa64035[_0x101aa0(0x1c0)](),_0xa64035;}return this[_0x101aa0(0x443)][_0x101aa0(0x1df)](z,_0x378caa,this[_0x101aa0(0x1a9)],_0x3b7eb9,_0x288a2b,_0x144a6f);}[_0x3e92f2(0x42d)](_0x2f5f93,_0x57752){const _0x370a88=_0x3e92f2;var _0x13966c,_0x3a54b3;const _0x265743=this[_0x370a88(0x331)]['interceptor'][_0x370a88(0x3aa)](this[_0x370a88(0x331)][_0x370a88(0x310)][_0x370a88(0x424)]()['COMPRESS_MUTATION_APPLY']);(_0x13966c=_0x265743((_0x2f5f93==null?void 0x0:_0x2f5f93[_0x370a88(0x1d5)])||[],null))==null||_0x13966c['forEach'](_0x5cf18e=>this['_commandService'][_0x370a88(0x230)](_0x5cf18e['id'],_0x5cf18e[_0x370a88(0x394)])),(_0x3a54b3=_0x265743(_0x57752||[],null))==null||_0x3a54b3['forEach'](_0x1d7c75=>this[_0x370a88(0x1f2)]['executeCommand'](_0x1d7c75['id'],_0x1d7c75['params']));}};qe=tt([S(0x3,_0xbbf94a(_0xa8f435)),S(0x4,_0xbbf94a(D)),S(0x5,_0xbbf94a(_0x59ec89)),S(0x6,_0xbbf94a(_0x6789ab)),S(0x7,_0xbbf94a(_0xee930)),S(0x8,_0x46d807),S(0x9,_0x109aa8),S(0xa,_0x5cfd22),S(0xb,_0x4acf08),S(0xc,_0x3668b1(et))],qe);let vt=class extends qe{constructor(_0xf5fbfc,_0x467db8,_0x8aee47,_0x11cd01,_0x74fe2b,_0x3e574c,_0x133a4a,_0x153d98,_0x5cea1e,_0x50a9c2,_0x5d8ccc,_0x2f6951,_0x3a7786,_0x2f3ab1,_0x39b0dc,_0x264952,_0x4a8439){const _0x59a2f0=_0x3e92f2;super(_0xf5fbfc,_0x467db8,_0x8aee47,_0x11cd01,_0x74fe2b,_0x3e574c,_0x133a4a,_0x153d98,_0x3a7786,_0x2f3ab1,_0x39b0dc,_0x264952,_0x4a8439),this[_0x59a2f0(0x3ca)]=_0xf5fbfc,this[_0x59a2f0(0x342)]=_0x467db8,this[_0x59a2f0(0x29f)]=_0x8aee47,this[_0x59a2f0(0x432)]=_0x5cea1e,this[_0x59a2f0(0x368)]=_0x50a9c2,this[_0x59a2f0(0x2a7)]=_0x5d8ccc,this['_docSyncEditingCollabCursorService']=_0x2f6951;}['_createHandler'](){const _0x41d4a3=_0x3e92f2,_0x8eba39=super[_0x41d4a3(0x3e2)]();return _0x8eba39[_0x41d4a3(0x41f)]=_0x38d549=>this[_0x41d4a3(0x368)][_0x41d4a3(0x1f0)](_0x38d549),_0x8eba39[_0x41d4a3(0x313)]=_0x309f87=>this[_0x41d4a3(0x2a7)][_0x41d4a3(0x2a3)](_0x309f87),_0x8eba39[_0x41d4a3(0x369)]=_0x28c78e=>this['_docSyncEditingCollabCursorService'][_0x41d4a3(0x448)](_0x28c78e),_0x8eba39[_0x41d4a3(0x3dc)]=_0x2f9fda=>this[_0x41d4a3(0x368)][_0x41d4a3(0x322)](_0x2f9fda),_0x8eba39;}async[_0x3e92f2(0x35e)](){const _0x2d400a=_0x3e92f2,_0x186cb2=await super[_0x2d400a(0x35e)]();return this['_docStateChangeManagerService'][_0x2d400a(0x471)][_0x2d400a(0x407)](_0x254c9c(this[_0x2d400a(0x4b2)]))[_0x2d400a(0x4be)](_0x1993ab=>{const _0x45f3b7=_0x2d400a;if(_0x1993ab==null)return;const {unitId:_0x409209,redoState:_0x29242f,commandId:_0x4626d9}=_0x1993ab;if(_0x409209!==this['unitID'])return;const _0xeab98={'id':_0x4626d9,'type':_0x1a41da[_0x45f3b7(0x25a)],'params':{'unitId':_0x409209,'actions':_0x29242f['actions'],'textRanges':null}};this[_0x45f3b7(0x45a)](_0xeab98);}),_0x186cb2;}};vt=tt([S(0x3,_0xbbf94a(_0xa8f435)),S(0x4,_0xbbf94a(D)),S(0x5,_0xbbf94a(_0x59ec89)),S(0x6,_0xbbf94a(_0x6789ab)),S(0x7,_0xbbf94a(_0xee930)),S(0x8,_0xbbf94a(_0x250a10)),S(0x9,_0xbbf94a(Xe)),S(0xa,_0xbbf94a(Je)),S(0xb,_0xbbf94a(yt)),S(0xc,_0x46d807),S(0xd,_0x109aa8),S(0xe,_0x5cfd22),S(0xf,_0x4acf08),S(0x10,_0x3668b1(et))],vt);let pt=class extends qe{constructor(_0x1743c3,_0x4b3211,_0x3bbbb7,_0x19bb54,_0x11c30a,_0x17bcd0,_0x4586e9,_0x3d339c,_0x442a1a,_0x5cee88,_0x242d2f,_0x5d5699,_0x1d61ca,_0x50cdc3){const _0x3d8caf=_0x3e92f2;super(_0x1743c3,_0x4b3211,_0x3bbbb7,_0x19bb54,_0x11c30a,_0x17bcd0,_0x4586e9,_0x3d339c,_0x5cee88,_0x242d2f,_0x5d5699,_0x1d61ca,_0x50cdc3),this['unitID']=_0x1743c3,this['type']=_0x4b3211,this[_0x3d8caf(0x29f)]=_0x3bbbb7,this[_0x3d8caf(0x30c)]=_0x442a1a;}[_0x3e92f2(0x3e2)](){const _0x52c538=_0x3e92f2,_0x5dfafa=super[_0x52c538(0x3e2)]();return _0x5dfafa[_0x52c538(0x313)]=_0x114e97=>this[_0x52c538(0x30c)][_0x52c538(0x2a3)](_0x114e97),_0x5dfafa;}async[_0x3e92f2(0x35e)](){const _0x47a40b=_0x3e92f2,_0xc53850=await super[_0x47a40b(0x35e)]();return this[_0x47a40b(0x280)](this[_0x47a40b(0x1f2)][_0x47a40b(0x49c)]((_0x588aba,_0x20b90a)=>{const _0x30ab64=_0x47a40b;if(_0x588aba[_0x30ab64(0x342)]!==_0x1a41da['MUTATION']||_0x20b90a!=null&&_0x20b90a['fromCollab']||_0x20b90a!=null&&_0x20b90a[_0x30ab64(0x2da)])return;const _0x3fb58e=_0x588aba[_0x30ab64(0x394)];if((_0x3fb58e==null?void 0x0:_0x3fb58e[_0x30ab64(0x3ae)])!==this[_0x30ab64(0x3ca)])return;const _0x44526e=_0x588aba,_0x5a95c2=this[_0x30ab64(0x331)][_0x30ab64(0x310)][_0x30ab64(0x3aa)](this[_0x30ab64(0x331)][_0x30ab64(0x310)][_0x30ab64(0x424)]()[_0x30ab64(0x295)])([_0x44526e],null)||[_0x44526e];this[_0x30ab64(0x45a)](_0x5a95c2[0x0]);})),_0xc53850;}};pt=tt([S(0x3,_0xbbf94a(_0xa8f435)),S(0x4,_0xbbf94a(D)),S(0x5,_0xbbf94a(_0x59ec89)),S(0x6,_0xbbf94a(_0x6789ab)),S(0x7,_0xbbf94a(_0xee930)),S(0x8,_0xbbf94a(ze)),S(0x9,_0x46d807),S(0xa,_0x109aa8),S(0xb,_0x5cfd22),S(0xc,_0x4acf08),S(0xd,_0x3668b1(et))],pt);const es=['purple300',_0x3e92f2(0x414),_0x3e92f2(0x409),'red300',_0x3e92f2(0x390),'gold400'];class Lt extends _0x1f0611{constructor(){const _0x308eab=_0x3e92f2;super(...arguments),l(this,_0x308eab(0x2ba),new Map()),l(this,_0x308eab(0x449),0x0);}[_0x3e92f2(0x21d)](_0x21a3a2){const _0x4eb788=_0x3e92f2;if(this[_0x4eb788(0x2ba)]['has'](_0x21a3a2))return this[_0x4eb788(0x2ba)][_0x4eb788(0x2d5)](_0x21a3a2);const _0x2968a6=es[this[_0x4eb788(0x449)]];return this['_colorIndex']=(this[_0x4eb788(0x449)]+0x1)%es[_0x4eb788(0x1a4)],this['_assignedColors'][_0x4eb788(0x2bc)](_0x21a3a2,_0x2968a6),_0x2968a6;}}var Jn=Object[_0x3e92f2(0x340)],zn=Object['getOwnPropertyDescriptor'],qn=(_0x3c354f,_0x3b50b7,_0x222b30,_0x5d0ec5)=>{const _0x3329be=_0x3e92f2;for(var _0x5998ed=_0x5d0ec5>0x1?void 0x0:_0x5d0ec5?zn(_0x3b50b7,_0x222b30):_0x3b50b7,_0x13d9f5=_0x3c354f[_0x3329be(0x1a4)]-0x1,_0x2d54d7;_0x13d9f5>=0x0;_0x13d9f5--)(_0x2d54d7=_0x3c354f[_0x13d9f5])&&(_0x5998ed=(_0x5d0ec5?_0x2d54d7(_0x3b50b7,_0x222b30,_0x5998ed):_0x2d54d7(_0x5998ed))||_0x5998ed);return _0x5d0ec5&&_0x5998ed&&Jn(_0x3b50b7,_0x222b30,_0x5998ed),_0x5998ed;},he=(_0x107a90,_0x2c4493)=>(_0x414b11,_0x10c018)=>_0x2c4493(_0x414b11,_0x10c018,_0x107a90);const Zn=0x12c,Qn=0x64,er=()=>{let _0x56c3cc=[],_0x3d2b0c=!0x1;return _0x111ff1=>{_0x56c3cc['push'](_0x111ff1),_0x3d2b0c||(_0x3d2b0c=!0x0,setTimeout(()=>{const _0x91a87e=_0x4256;_0x56c3cc[_0x91a87e(0x1b8)](_0x2391e6=>_0x2391e6()),_0x56c3cc=[],_0x3d2b0c=!0x1;}));};};let It=class extends _0x4c153b{constructor(_0x184a34,_0x39ee52,_0x134563,_0x5402a2,_0x289ae2,_0x4376d4,_0x4619d9,_0x405cf3){const _0x27bc9f=_0x3e92f2;super(),l(this,_0x27bc9f(0x28a),!0x1),l(this,_0x27bc9f(0x35e),!0x1),l(this,_0x27bc9f(0x200),new _0x4d79d8(new Map())),l(this,_0x27bc9f(0x2ef),this['_cursorInfo$']['asObservable']()),l(this,_0x27bc9f(0x2b9),new _0x4d79d8([])),l(this,_0x27bc9f(0x436),this[_0x27bc9f(0x2b9)]['pipe'](_0x445532(Zn))),l(this,'_updateLocalCursor',_0x561342((_0x46e449,_0x277151)=>{const _0xfe17cb=_0x27bc9f,_0x278d83={'eventID':_0x34e231[_0xfe17cb(0x226)],'data':{'unitID':this[_0xfe17cb(0x3ca)],'memberID':this[_0xfe17cb(0x1ab)][_0xfe17cb(0x421)](),'selection':_0x4aaaf4(_0x46e449,_0x277151[_0xfe17cb(0x2b8)])}};this[_0xfe17cb(0x1ab)][_0xfe17cb(0x229)](_0x278d83,this['unitID']);},Qn)),(this[_0x27bc9f(0x3ca)]=_0x184a34,this['_session']=_0x39ee52,this['_injector']=_0x134563,this[_0x27bc9f(0x2ad)]=_0x5402a2,this[_0x27bc9f(0x29e)]=_0x289ae2,this['_univerInstanceService']=_0x4376d4,this[_0x27bc9f(0x1f2)]=_0x4619d9,this['_refRangeService']=_0x405cf3);}get[_0x3e92f2(0x253)](){const _0x1ec45f=_0x3e92f2;return this[_0x1ec45f(0x200)]['getValue']();}get[_0x3e92f2(0x1d6)](){const _0x187a84=_0x3e92f2;return this[_0x187a84(0x2b9)]['getValue']();}[_0x3e92f2(0x25d)](){const _0x4cc384=_0x3e92f2;super[_0x4cc384(0x25d)](),this['_cursorInfo$'][_0x4cc384(0x3ea)](new Map()),this[_0x4cc384(0x200)][_0x4cc384(0x2e4)](),this[_0x4cc384(0x2b9)][_0x4cc384(0x3ea)]([]),this['_roomMembers$']['complete']();}[_0x3e92f2(0x3bd)](){const _0x50f3de=_0x3e92f2;this[_0x50f3de(0x35e)]||(this[_0x50f3de(0x35e)]=!0x0,this[_0x50f3de(0x1ab)][_0x50f3de(0x397)]['pipe'](_0x254c9c(this['dispose$']))[_0x50f3de(0x4be)](_0x8516fe=>{const _0x2f5608=_0x50f3de;_0x8516fe===de[_0x2f5608(0x405)]?this[_0x2f5608(0x1c7)]():this[_0x2f5608(0x276)]();}),this[_0x50f3de(0x1ab)]['event$'][_0x50f3de(0x407)](_0x254c9c(this[_0x50f3de(0x4b2)]))[_0x50f3de(0x4be)](_0x3164c8=>{const _0x1a19b5=_0x50f3de,_0x2a40c4=_0x3164c8['eventID'];_0x2a40c4===_0x34e231['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x3164c8),_0x2a40c4===_0x34e231[_0x1a19b5(0x462)]&&this[_0x1a19b5(0x261)](_0x3164c8);}),this['_onRefRangeChange'](),this[_0x50f3de(0x280)](this[_0x50f3de(0x1f2)][_0x50f3de(0x49c)](_0x473819=>{const _0x352b49=_0x50f3de;if(this[_0x352b49(0x28a)]&&_0x473819['id']===_0x594d48['id']&&_0x473819[_0x352b49(0x394)][_0x352b49(0x3ae)]===this[_0x352b49(0x3ca)]){const _0x375577=_0x473819[_0x352b49(0x394)];this[_0x352b49(0x332)](_0x375577[_0x352b49(0x31a)],_0x375577[_0x352b49(0x4c0)][0x0]);}})));}[_0x3e92f2(0x33a)](_0x501e30){const _0x4b3409=_0x3e92f2;var _0x1677f8,_0x19bdc9;const {memberID:_0x1bdeb8,selection:_0x4dd1fb}=_0x501e30[_0x4b3409(0x208)],{sheetName:_0x45f0a2,range:_0x18f479}=_0x2565bd(_0x4dd1fb),_0x1d306a={'name':(_0x19bdc9=(_0x1677f8=this['_memberService']['getMember'](this['unitID'],_0x1bdeb8))==null?void 0x0:_0x1677f8[_0x4b3409(0x2c2)])!=null?_0x19bdc9:_0x4b3409(0x2c0),'range':this[_0x4b3409(0x3de)](_0x45f0a2,_0x18f479),'sheetID':_0x45f0a2,'color':this[_0x4b3409(0x2ad)]['assignAColorForMemberID'](_0x1bdeb8),'selection':_0x4dd1fb},_0x2e4c16=this[_0x4b3409(0x253)];_0x2e4c16[_0x4b3409(0x2bc)](_0x1bdeb8,_0x1d306a),this[_0x4b3409(0x200)]['next'](_0x2e4c16);}[_0x3e92f2(0x261)](_0x34e14b){const _0x1c7d1e=_0x3e92f2,{memberID:_0x2dae0d}=_0x34e14b[_0x1c7d1e(0x208)],_0x46499d=this[_0x1c7d1e(0x253)];_0x46499d[_0x1c7d1e(0x36f)](_0x2dae0d),this[_0x1c7d1e(0x200)][_0x1c7d1e(0x3ea)](_0x46499d);}[_0x3e92f2(0x3de)](_0x15284a,_0x56657a){const _0x5951a4=_0x3e92f2;var _0x2ad4b8,_0x2f65b4;const _0x48d9e5=(_0x2f65b4=(_0x2ad4b8=this[_0x5951a4(0x1ef)]['getUniverSheetInstance'](this[_0x5951a4(0x3ca)]))==null?void 0x0:_0x2ad4b8[_0x5951a4(0x42f)](_0x15284a))==null?void 0x0:_0x2f65b4[_0x5951a4(0x294)]();return(_0x48d9e5==null?void 0x0:_0x48d9e5[_0x5951a4(0x491)](_0x5625b7=>_0x301c8d[_0x5951a4(0x2fe)](_0x5625b7,_0x56657a)))||_0x56657a;}[_0x3e92f2(0x1ae)](){const _0x254500=_0x3e92f2,_0x4e7de4=new _0x10ad9e(),_0x38c862=er(),_0x385b3e=()=>{const _0x2798a5=_0x4256;_0x4e7de4[_0x2798a5(0x25d)]();const _0x365fc7=(_0x14e5d4,_0x125bf0,_0x1fe261,_0x196054)=>{const _0x2a99e0=_0x2798a5;let _0x2cf84f=[];switch(_0x14e5d4['id']){case _0x1d561a[_0x2a99e0(0x37b)]:{_0x2cf84f=_0x374c46(_0x14e5d4,_0x196054);break;}case _0x1d561a['DeleteRangeMoveUpCommandId']:{_0x2cf84f=_0x2558df(_0x14e5d4,_0x196054);break;}case _0x1d561a['InsertColCommandId']:{_0x2cf84f=_0x392388(_0x14e5d4,_0x196054);break;}case _0x1d561a[_0x2a99e0(0x41d)]:{_0x2cf84f=_0x324941(_0x14e5d4,_0x196054);break;}case _0x1d561a[_0x2a99e0(0x351)]:{_0x2cf84f=_0x41ab06(_0x14e5d4,_0x196054);break;}case _0x1d561a[_0x2a99e0(0x49d)]:{_0x2cf84f=_0xf69406(_0x14e5d4,_0x196054);break;}case _0x1d561a[_0x2a99e0(0x33e)]:{_0x2cf84f=_0x342dcd(_0x14e5d4,_0x196054);break;}case _0x1d561a[_0x2a99e0(0x341)]:{_0x2cf84f=_0x46dbc2(_0x14e5d4,_0x196054);break;}case _0x1d561a[_0x2a99e0(0x3e5)]:{_0x2cf84f=_0x58d14e(_0x14e5d4,_0x196054);break;}}const _0xfaacd0=_0x4b852b(_0x2cf84f,_0x196054),_0x4b3bd5=this[_0x2a99e0(0x253)][_0x2a99e0(0x2d5)](_0x125bf0);if(_0x4b3bd5&&_0xfaacd0){const _0x13bc63={..._0x4b3bd5,'range':_0xfaacd0};this[_0x2a99e0(0x253)][_0x2a99e0(0x2bc)](_0x125bf0,_0x13bc63),_0x38c862(()=>{const _0x467dcc=_0x2a99e0,_0xd3ce70=this['_refRangeService']['registerRefRange'](_0xfaacd0,_0x5cfebb=>(_0xd3ce70[_0x467dcc(0x25d)](),_0x365fc7(_0x5cfebb,_0x125bf0,_0x1fe261,_0xfaacd0)));_0x4e7de4[_0x467dcc(0x35d)](_0xd3ce70);});}return{'redos':[],'undos':[]};};this[_0x2798a5(0x253)][_0x2798a5(0x1b8)]((_0x1a50b0,_0x16ba80)=>{const _0x2c267e=_0x2798a5,{range:_0x230cf7,sheetID:_0x9d384}=_0x1a50b0,_0x18c276=this[_0x2c267e(0x20b)][_0x2c267e(0x4cb)](_0x230cf7,_0x2c2d5b=>(_0x18c276[_0x2c267e(0x25d)](),_0x365fc7(_0x2c2d5b,_0x16ba80,_0x9d384,_0x230cf7)));_0x4e7de4[_0x2c267e(0x35d)](_0x18c276);});};this['disposeWithMe'](_0x38ac23(this['_cursorInfo$'][_0x254500(0x4be)](()=>{_0x385b3e();})));}[_0x3e92f2(0x1c7)](){const _0x3f86fd=_0x3e92f2;var _0x2972b9,_0x5ee5a7;if(this[_0x3f86fd(0x28a)]=!0x0,((_0x2972b9=this[_0x3f86fd(0x1ef)][_0x3f86fd(0x380)]())==null?void 0x0:_0x2972b9[_0x3f86fd(0x47a)]())!==this[_0x3f86fd(0x3ca)])return;const _0x20e8c4=(_0x5ee5a7=this['_injector'][_0x3f86fd(0x2d5)](_0xebd730)[_0x3f86fd(0x344)]())==null?void 0x0:_0x5ee5a7[0x0],_0x3cdd86=this[_0x3f86fd(0x1ef)]['getCurrentUnitForType'](_0x41ddf6[_0x3f86fd(0x241)])['getActiveSheet']();_0x20e8c4&&_0x3cdd86&&this[_0x3f86fd(0x332)](_0x3cdd86['getSheetId'](),_0x20e8c4);}[_0x3e92f2(0x276)](){this['_online']=!0x1;}};It=qn([he(0x2,_0xbbf94a(_0xa8f435)),he(0x3,_0xbbf94a(Lt)),he(0x4,_0xbbf94a(ne)),he(0x5,_0x5f1ae0),he(0x6,_0x109aa8),he(0x7,_0xbbf94a(_0x4071b4))],It);var tr=Object[_0x3e92f2(0x340)],sr=Object[_0x3e92f2(0x2d2)],ir=(_0x4a4c39,_0x36819f,_0x1f0ca6,_0x51af24)=>{const _0x4dac88=_0x3e92f2;for(var _0x24181a=_0x51af24>0x1?void 0x0:_0x51af24?sr(_0x36819f,_0x1f0ca6):_0x36819f,_0x227b7e=_0x4a4c39[_0x4dac88(0x1a4)]-0x1,_0xc9d765;_0x227b7e>=0x0;_0x227b7e--)(_0xc9d765=_0x4a4c39[_0x227b7e])&&(_0x24181a=(_0x51af24?_0xc9d765(_0x36819f,_0x1f0ca6,_0x24181a):_0xc9d765(_0x24181a))||_0x24181a);return _0x51af24&&_0x24181a&&tr(_0x36819f,_0x1f0ca6,_0x24181a),_0x24181a;},te=(_0x27daf0,_0x4baa95)=>(_0x265592,_0x4b32f3)=>_0x4baa95(_0x265592,_0x4b32f3,_0x27daf0);const nr=0x12c,rr=0x64;let Et=class extends _0x4c153b{constructor(_0x2395d6,_0x470a10,_0x3d32b5,_0x441137,_0xbdb8eb,_0xa67dfa,_0x3805eb,_0x3f478b,_0xfc2ca8){const _0x4424e1=_0x3e92f2;super(),l(this,_0x4424e1(0x28a),!0x1),l(this,'_init',!0x1),l(this,_0x4424e1(0x200),new _0x4d79d8(new Map())),l(this,_0x4424e1(0x2ef),this[_0x4424e1(0x200)][_0x4424e1(0x423)]()),l(this,'_roomMembers$',new _0x4d79d8([])),l(this,_0x4424e1(0x436),this[_0x4424e1(0x2b9)][_0x4424e1(0x407)](_0x445532(nr))),l(this,'_updateLocalCursor',_0x561342(_0x2c4dad=>{const _0x3d1399=_0x4424e1,_0x120b8e={'eventID':_0x34e231[_0x3d1399(0x226)],'data':{'unitID':this[_0x3d1399(0x3ca)],'memberID':this[_0x3d1399(0x1ab)][_0x3d1399(0x421)](),'selection':Ns(_0x2c4dad)}};this[_0x3d1399(0x1ab)][_0x3d1399(0x229)](_0x120b8e,this[_0x3d1399(0x3ca)]);},rr)),(this[_0x4424e1(0x3ca)]=_0x2395d6,this[_0x4424e1(0x1ab)]=_0x470a10,this[_0x4424e1(0x443)]=_0x3d32b5,this[_0x4424e1(0x2ad)]=_0x441137,this[_0x4424e1(0x29e)]=_0xbdb8eb,this[_0x4424e1(0x308)]=_0xa67dfa,this[_0x4424e1(0x22e)]=_0x3805eb,this[_0x4424e1(0x1ef)]=_0x3f478b,this[_0x4424e1(0x1f2)]=_0xfc2ca8);}get[_0x3e92f2(0x253)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x5cf1b0=_0x3e92f2;return this[_0x5cf1b0(0x2b9)][_0x5cf1b0(0x43c)]();}[_0x3e92f2(0x25d)](){const _0x3aea2d=_0x3e92f2;super[_0x3aea2d(0x25d)](),this[_0x3aea2d(0x200)][_0x3aea2d(0x3ea)](new Map()),this['_cursorInfo$'][_0x3aea2d(0x2e4)](),this[_0x3aea2d(0x2b9)]['next']([]),this[_0x3aea2d(0x2b9)][_0x3aea2d(0x2e4)]();}[_0x3e92f2(0x3bd)](){const _0x5e11f4=_0x3e92f2;this[_0x5e11f4(0x35e)]||(this[_0x5e11f4(0x35e)]=!0x0,this['_session'][_0x5e11f4(0x397)][_0x5e11f4(0x407)](_0x254c9c(this['dispose$']))[_0x5e11f4(0x4be)](_0x25ca80=>{const _0x2b9e36=_0x5e11f4;_0x25ca80===de['ONLINE']?this[_0x2b9e36(0x1c7)]():this[_0x2b9e36(0x276)]();}),this[_0x5e11f4(0x1ab)][_0x5e11f4(0x2c7)][_0x5e11f4(0x407)](_0x254c9c(this[_0x5e11f4(0x4b2)]))['subscribe'](_0x35b056=>{const _0x516894=_0x5e11f4,_0x595bed=_0x35b056[_0x516894(0x1af)];_0x595bed===_0x34e231['UPDATE_CURSOR']&&this[_0x516894(0x33a)](_0x35b056),_0x595bed===_0x34e231['USERS_LEAVE']&&this[_0x516894(0x261)](_0x35b056);}),this[_0x5e11f4(0x280)](this['_commandService'][_0x5e11f4(0x49c)](_0x121434=>{const _0x275184=_0x5e11f4,_0x57fa99=_0x121434[_0x275184(0x394)];_0x57fa99!=null&&this['_online']&&_0x121434['id']===_0x13752b['id']&&_0x57fa99[_0x275184(0x3ae)]===this[_0x275184(0x3ca)]&&_0x57fa99['isEditing']===!0x1&&this[_0x275184(0x332)](_0x57fa99['ranges']);})),this[_0x5e11f4(0x308)][_0x5e11f4(0x362)][_0x5e11f4(0x407)](_0x254c9c(this[_0x5e11f4(0x4b2)]))[_0x5e11f4(0x4be)](_0x3e02b7=>{const _0x5ba221=_0x5e11f4;if((_0x3e02b7==null?void 0x0:_0x3e02b7[_0x5ba221(0x3ca)])!==this[_0x5ba221(0x3ca)])return;const _0x176f4a={'eventID':_0x34e231['UPDATE_CURSOR'],'data':_0x3e02b7};this['_onCursorUpdate'](_0x176f4a);}),this['disposeWithMe'](this[_0x5e11f4(0x1f2)][_0x5e11f4(0x49c)](_0x41cc82=>{const _0x3fb8b0=_0x5e11f4;if(_0x41cc82[_0x3fb8b0(0x394)]==null)return;const _0xa6cf2b=_0x41cc82[_0x3fb8b0(0x394)];if(_0x41cc82['id']!==_0x403372['id']||_0xa6cf2b['unitId']!==this[_0x3fb8b0(0x3ca)])return;const _0x4451ab={'id':'doc.mutation.rich-text-editing','params':_0xa6cf2b},_0x368099=this[_0x3fb8b0(0x253)];for(const [_0x46d710,_0x3f9e20]of _0x368099){const _0x843fd4={'id':_0x3fb8b0(0x215),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3f9e20[_0x3fb8b0(0x4b1)]}},_0x422c72=this[_0x3fb8b0(0x22e)][_0x3fb8b0(0x433)](_0x4451ab,_0x843fd4,!0x1);if(_0x3d6701(_0x422c72))throw _0x422c72[_0x3fb8b0(0x23c)];_0x368099[_0x3fb8b0(0x2bc)](_0x46d710,{..._0x3f9e20,'ranges':_0x422c72[_0x3fb8b0(0x2fb)][_0x3fb8b0(0x394)][_0x3fb8b0(0x371)]});}queueMicrotask(()=>{const _0x2878a8=_0x3fb8b0;this[_0x2878a8(0x200)]['next'](_0x368099);});})));}[_0x3e92f2(0x33a)](_0x4847ca){const _0x30cc12=_0x3e92f2;var _0x32006b,_0x43ed69;const {memberID:_0x13d55e,selection:_0x3e7219}=_0x4847ca['data'],_0x317d1e=jn(_0x3e7219),_0x2d1008=(_0x43ed69=(_0x32006b=this[_0x30cc12(0x29e)][_0x30cc12(0x311)](this[_0x30cc12(0x3ca)],_0x13d55e))==null?void 0x0:_0x32006b[_0x30cc12(0x2c2)])!=null?_0x43ed69:_0x30cc12(0x2c0),_0x5565d1={'color':this['_colorAssignService'][_0x30cc12(0x21d)](_0x13d55e),'name':_0x2d1008,'ranges':_0x317d1e},_0x22c1ce=this[_0x30cc12(0x253)];_0x22c1ce['set'](_0x13d55e,_0x5565d1),this['_cursorInfo$'][_0x30cc12(0x3ea)](_0x22c1ce);}[_0x3e92f2(0x261)](_0x5556b6){const _0x2e296d=_0x3e92f2,{memberID:_0x1171c5}=_0x5556b6[_0x2e296d(0x208)],_0x1ba6ab=this[_0x2e296d(0x253)];_0x1ba6ab[_0x2e296d(0x36f)](_0x1171c5),this[_0x2e296d(0x200)]['next'](_0x1ba6ab);}[_0x3e92f2(0x1c7)](){const _0x19b044=_0x3e92f2;var _0x5dc15a;if(this[_0x19b044(0x28a)]=!0x0,((_0x5dc15a=this[_0x19b044(0x1ef)][_0x19b044(0x380)]())==null?void 0x0:_0x5dc15a[_0x19b044(0x47a)]())!==this['unitID'])return;const _0x332a17=this[_0x19b044(0x443)][_0x19b044(0x2d5)](_0x3781de)['getCurrentSelections'](),_0x4d7946=_0x332a17==null?void 0x0:_0x332a17[_0x19b044(0x1be)](_0x167840);Array[_0x19b044(0x48f)](_0x4d7946)&&_0x4d7946[_0x19b044(0x1a4)]>0x0&&this['_updateLocalCursor'](_0x4d7946);}['_toggleOffline'](){const _0x5b270a=_0x3e92f2;this[_0x5b270a(0x28a)]=!0x1;}};Et=ir([te(0x2,_0xbbf94a(_0xa8f435)),te(0x3,_0xbbf94a(Lt)),te(0x4,_0xbbf94a(ne)),te(0x5,_0xbbf94a(yt)),te(0x6,_0x1b279b),te(0x7,_0x5f1ae0),te(0x8,_0x109aa8)],Et);var or=Object['defineProperty'],ar=Object['getOwnPropertyDescriptor'],cr=(_0x50c7a4,_0x3b08b6,_0x5e189e,_0x48f39f)=>{for(var _0x5959d9=_0x48f39f>0x1?void 0x0:_0x48f39f?ar(_0x3b08b6,_0x5e189e):_0x3b08b6,_0x9750fc=_0x50c7a4['length']-0x1,_0x116a95;_0x9750fc>=0x0;_0x9750fc--)(_0x116a95=_0x50c7a4[_0x9750fc])&&(_0x5959d9=(_0x48f39f?_0x116a95(_0x3b08b6,_0x5e189e,_0x5959d9):_0x116a95(_0x5959d9))||_0x5959d9);return _0x48f39f&&_0x5959d9&&or(_0x3b08b6,_0x5e189e,_0x5959d9),_0x5959d9;},ct=(_0x340274,_0x2520bf)=>(_0x31b80c,_0x5d9661)=>_0x2520bf(_0x31b80c,_0x5d9661,_0x340274);let fe=class extends _0x4c153b{constructor(_0x44e3ea,_0x29631c,_0x532f4d){const _0x4d41d4=_0x3e92f2;super(),l(this,_0x4d41d4(0x412),new Map()),l(this,_0x4d41d4(0x1a6),new _0x440796()),(this['_univerInstanceService']=_0x44e3ea,this['_injector']=_0x29631c,this[_0x4d41d4(0x1f8)]=_0x532f4d,this[_0x4d41d4(0x35e)]());}[_0x3e92f2(0x25d)](){const _0x47eacd=_0x3e92f2;super[_0x47eacd(0x25d)](),this['_entityInit$'][_0x47eacd(0x2e4)](),this[_0x47eacd(0x412)]['forEach'](_0x34311d=>_0x34311d[_0x47eacd(0x25d)]());}[_0x3e92f2(0x235)](_0xbe6ef6){const _0xe3aee9=_0x3e92f2;return this['_entities'][_0xe3aee9(0x31c)](_0xbe6ef6)?this['_entities'][_0xe3aee9(0x2d5)](_0xbe6ef6)[_0xe3aee9(0x2ef)]:this['_entityInit$'][_0xe3aee9(0x407)](_0x56fcf7(_0x199507=>_0x199507[_0xe3aee9(0x3ca)]===_0xbe6ef6),_0x10f218(_0x3bd094=>_0x3bd094[_0xe3aee9(0x2ef)]));}['_init'](){const _0x5d9715=_0x3e92f2;this[_0x5d9715(0x1ef)][_0x5d9715(0x2c9)](_0x41ddf6['UNIVER_SHEET'])[_0x5d9715(0x407)](_0x254c9c(this[_0x5d9715(0x4b2)]))['subscribe'](async _0x103b68=>{const _0x5c0068=_0x5d9715,_0x5a47fa=_0x103b68['getUnitId'](),_0x32146c=await this[_0x5c0068(0x26d)](_0x5a47fa);this[_0x5c0068(0x1a6)][_0x5c0068(0x3ea)](_0x32146c),this['_entities']['set'](_0x5a47fa,_0x32146c);}),this['_univerInstanceService'][_0x5d9715(0x2c9)](_0x41ddf6[_0x5d9715(0x2e1)])[_0x5d9715(0x407)](_0x254c9c(this[_0x5d9715(0x4b2)]))[_0x5d9715(0x407)](_0x56fcf7(_0x2ba71e=>!_0x2ba71e[_0x5d9715(0x47a)]()[_0x5d9715(0x3f9)]('__')))[_0x5d9715(0x4be)](async _0xe4f9b4=>{const _0x2dc64b=_0x5d9715,_0x3eb874=_0xe4f9b4[_0x2dc64b(0x47a)](),_0x10ba37=await this[_0x2dc64b(0x24a)](_0x3eb874);this[_0x2dc64b(0x1a6)][_0x2dc64b(0x3ea)](_0x10ba37),this[_0x2dc64b(0x412)]['set'](_0x3eb874,_0x10ba37);}),_0x2b9a75(this[_0x5d9715(0x1ef)]['getTypeOfUnitDisposed$'](_0x41ddf6[_0x5d9715(0x2e1)]),this[_0x5d9715(0x1ef)][_0x5d9715(0x319)](_0x41ddf6[_0x5d9715(0x241)]))[_0x5d9715(0x407)](_0x254c9c(this[_0x5d9715(0x4b2)]))[_0x5d9715(0x4be)](_0x5765d5=>{const _0x3e3d5a=_0x5d9715,_0x3603c8=_0x5765d5[_0x3e3d5a(0x47a)](),_0x3b2339=this['_entities'][_0x3e3d5a(0x2d5)](_0x3603c8);_0x3b2339&&(_0x3b2339[_0x3e3d5a(0x25d)](),this[_0x3e3d5a(0x412)][_0x3e3d5a(0x36f)](_0x3603c8));});}async[_0x3e92f2(0x26d)](_0x508c0a){const _0x551ee1=_0x3e92f2,_0x280918=await this[_0x551ee1(0x1f8)][_0x551ee1(0x3cc)](_0x508c0a),_0x5eb18a=this[_0x551ee1(0x443)][_0x551ee1(0x1df)](It,_0x508c0a,_0x280918);return _0x5eb18a[_0x551ee1(0x3bd)](),_0x5eb18a;}async[_0x3e92f2(0x24a)](_0x2a2f70){const _0x495d18=_0x3e92f2,_0x38af12=await this['_collabSessionService'][_0x495d18(0x3cc)](_0x2a2f70),_0x3edee2=this[_0x495d18(0x443)]['createInstance'](Et,_0x2a2f70,_0x38af12);return _0x3edee2[_0x495d18(0x3bd)](),_0x3edee2;}};fe=cr([_0x405ab3(_0x57f2ea[_0x3e92f2(0x1e8)],fe),ct(0x0,_0x5f1ae0),ct(0x1,_0xbbf94a(_0xa8f435)),ct(0x2,_0xbbf94a(ge))],fe);const Me=0x14,ts=0xc8,ht=0x4,hr=0x5;function lr(_0x34d13f,_0x331dff){const _0x49227d=_0x3e92f2;let {radius:_0x496375,width:_0x4b9071,height:_0x273949}=_0x331dff;_0x496375=_0x496375!=null?_0x496375:0x0,_0x4b9071=_0x4b9071!=null?_0x4b9071:0x1e,_0x273949=_0x273949!=null?_0x273949:0x1e;let _0x3b5c2f=0x0,_0x17050c=0x0,_0xc9b14=0x0;_0x3b5c2f=_0x17050c=_0xc9b14=Math[_0x49227d(0x1cd)](_0x496375,_0x4b9071/0x2,_0x273949/0x2),_0x34d13f['beginPath'](),_0x34d13f['moveTo'](_0x3b5c2f,0x0),_0x34d13f[_0x49227d(0x4b6)](_0x4b9071-_0x17050c,0x0),_0x34d13f[_0x49227d(0x267)](_0x4b9071-_0x17050c,_0x17050c,_0x17050c,Math['PI']*0x3/0x2,0x0,!0x1),_0x34d13f[_0x49227d(0x4b6)](_0x4b9071,_0x273949-_0xc9b14),_0x34d13f[_0x49227d(0x267)](_0x4b9071-_0xc9b14,_0x273949-_0xc9b14,_0xc9b14,0x0,Math['PI']/0x2,!0x1),_0x34d13f['lineTo'](0x0,_0x273949),_0x34d13f[_0x49227d(0x4b6)](0x0,_0x3b5c2f),_0x34d13f[_0x49227d(0x267)](_0x3b5c2f,_0x3b5c2f,_0x3b5c2f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x34d13f['closePath'](),_0x331dff['fill']&&(_0x34d13f[_0x49227d(0x2c6)](),_0x34d13f['fillStyle']=_0x331dff[_0x49227d(0x364)],_0x331dff[_0x49227d(0x3ce)]==='evenodd'?_0x34d13f['fill'](_0x49227d(0x333)):_0x34d13f[_0x49227d(0x364)](),_0x34d13f[_0x49227d(0x4c6)]());}class st extends _0x28d65b{constructor(_0x2b1337,_0x34cfd3){const _0x53b6ce=_0x3e92f2;super(_0x2b1337,_0x34cfd3),l(this,_0x53b6ce(0x26f)),l(this,_0x53b6ce(0x367)),(this['color']=_0x34cfd3==null?void 0x0:_0x34cfd3['color'],this[_0x53b6ce(0x367)]=_0x34cfd3==null?void 0x0:_0x34cfd3['text']);}static[_0x3e92f2(0x42e)](_0x11fe8f,_0x51b0e8){const _0x3add17=_0x3e92f2,{text:_0x4f3ee6,color:_0x89d47c}=_0x51b0e8;_0x11fe8f[_0x3add17(0x2c6)](),_0x11fe8f[_0x3add17(0x2fa)]=_0x3add17(0x275);const _0x2e80a0=_0x11fe8f[_0x3add17(0x278)](_0x4f3ee6)[_0x3add17(0x43e)],_0x127376=Math['min'](_0x2e80a0+0x2*ht,ts);lr(_0x11fe8f,{'height':Me,'radius':0x4,'width':_0x127376,'fill':_0x89d47c,'evented':!0x1}),_0x11fe8f[_0x3add17(0x3e8)]=_0x3add17(0x2a0);const _0x4f895e=ht,_0x4d06fb=Me-hr,_0x538248=ts-0x2*ht;if(_0x2e80a0>_0x538248){let _0x149090='',_0x1f9d76=0x0;for(const _0x117e2d of _0x4f3ee6){const _0x4bf0bc=_0x11fe8f[_0x3add17(0x278)](_0x117e2d)[_0x3add17(0x43e)];if(_0x1f9d76+_0x4bf0bc<=_0x538248-_0x11fe8f['measureText'](_0x3add17(0x469))['width'])_0x149090+=_0x117e2d,_0x1f9d76+=_0x4bf0bc;else{_0x149090+=_0x3add17(0x469);break;}}_0x11fe8f[_0x3add17(0x1ff)](_0x149090,_0x4f895e,_0x4d06fb);}else _0x11fe8f[_0x3add17(0x1ff)](_0x4f3ee6,_0x4f895e,_0x4d06fb);_0x11fe8f['restore']();}[_0x3e92f2(0x2ed)](_0x5f4d58){st['drawWith'](_0x5f4d58,this);}}const _r=0x1,ur=1.5;class dr extends _0x28d65b{constructor(_0x550a03,_0x2a90b4){const _0x118e62=_0x3e92f2;super(_0x550a03,_0x2a90b4),l(this,'_color'),l(this,'_hovered',!0x1),l(this,_0x118e62(0x1b7)),l(this,_0x118e62(0x27e),''),l(this,_0x118e62(0x289),_0x118e62(0x41a)),(_0x2a90b4&&this[_0x118e62(0x2d0)](_0x2a90b4),this[_0x118e62(0x1fd)][_0x118e62(0x3d0)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x118e62(0x3d0)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x3e92f2(0x2d0)](_0x51bb8c){const _0x18ed24=_0x3e92f2;var _0x5a6592,_0xbd8d97,_0x211c90,_0x25cb43,_0x459466;this[_0x18ed24(0x422)]=(_0x5a6592=_0x51bb8c[_0x18ed24(0x26f)])!=null?_0x5a6592:this[_0x18ed24(0x422)],this['_hovered']=(_0xbd8d97=_0x51bb8c[_0x18ed24(0x266)])!=null?_0xbd8d97:this[_0x18ed24(0x1b4)],this[_0x18ed24(0x1b7)]=(_0x211c90=_0x51bb8c[_0x18ed24(0x2b8)])!=null?_0x211c90:this[_0x18ed24(0x1b7)],this[_0x18ed24(0x27e)]=(_0x25cb43=_0x51bb8c[_0x18ed24(0x2c2)])!=null?_0x25cb43:this[_0x18ed24(0x27e)],this[_0x18ed24(0x289)]=(_0x459466=_0x51bb8c[_0x18ed24(0x272)])!=null?_0x459466:this['_labelPosition'],this['transformByState']({'width':_0x51bb8c['width'],'height':_0x51bb8c[_0x18ed24(0x44c)]});}['onMouseMove'](_0x21a441){const _0x26190f=_0x3e92f2,{row:_0x2d355f,column:_0x5a680e}=_0x21a441;if(_0x2d355f>=this[_0x26190f(0x1b7)][_0x26190f(0x1a0)]&&_0x2d355f<=this[_0x26190f(0x1b7)]['endRow']&&_0x5a680e>=this['_range'][_0x26190f(0x24d)]&&_0x5a680e<=this['_range'][_0x26190f(0x20a)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x26190f(0x2d0)]({'hovered':!0x1});}['triggerDblclick'](_0x485f15){return!0x1;}[_0x3e92f2(0x2ed)](_0x307a66){const _0x454df6=_0x3e92f2;_0x1385ec[_0x454df6(0x42e)](_0x307a66,{'width':this[_0x454df6(0x43e)],'height':this[_0x454df6(0x44c)],'strokeWidth':ur,'stroke':this[_0x454df6(0x422)],'evented':!0x1}),this[_0x454df6(0x1b4)]&&(_0x307a66[_0x454df6(0x2c6)](),_0x307a66[_0x454df6(0x251)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x454df6(0x33d)?0x0:-Me),st[_0x454df6(0x42e)](_0x307a66,{'text':this[_0x454df6(0x27e)],'color':this['_color']}),_0x307a66[_0x454df6(0x4c6)]());}}var fr=Object[_0x3e92f2(0x340)],mr=Object['getOwnPropertyDescriptor'],gr=(_0x16ff91,_0x471d00,_0x43f741,_0x3887e2)=>{const _0xddcaea=_0x3e92f2;for(var _0x5e7d76=_0x3887e2>0x1?void 0x0:_0x3887e2?mr(_0x471d00,_0x43f741):_0x471d00,_0x1c76a5=_0x16ff91[_0xddcaea(0x1a4)]-0x1,_0x476d60;_0x1c76a5>=0x0;_0x1c76a5--)(_0x476d60=_0x16ff91[_0x1c76a5])&&(_0x5e7d76=(_0x3887e2?_0x476d60(_0x471d00,_0x43f741,_0x5e7d76):_0x476d60(_0x5e7d76))||_0x5e7d76);return _0x3887e2&&_0x5e7d76&&fr(_0x471d00,_0x43f741,_0x5e7d76),_0x5e7d76;},$e=(_0x23d1fc,_0x76549)=>(_0x26d044,_0x1c8bc3)=>_0x76549(_0x26d044,_0x1c8bc3,_0x23d1fc);const Sr=0x1389;let Ve=class extends _0x4c153b{constructor(_0x2d889e,_0x5ad382,_0x4af750,_0x38ceb8){const _0x2ff2ed=_0x3e92f2;super(),l(this,_0x2ff2ed(0x463),new Set()),l(this,_0x2ff2ed(0x37c),null),(this[_0x2ff2ed(0x487)]=_0x2d889e,this[_0x2ff2ed(0x1ef)]=_0x5ad382,this['_renderManagerService']=_0x4af750,this[_0x2ff2ed(0x1bb)]=_0x38ceb8,this[_0x2ff2ed(0x35e)]());}get['_sheetSkeletonManagerService'](){const _0x40ee62=_0x3e92f2;return this['_renderManagerService'][_0x40ee62(0x46c)](this['_univerInstanceService'][_0x40ee62(0x1cc)](_0x41ddf6[_0x40ee62(0x241)])[_0x40ee62(0x47a)]())[_0x40ee62(0x2b3)](_0x171d84);}get['_unitId'](){const _0x118237=_0x3e92f2;return this[_0x118237(0x1ef)][_0x118237(0x1cc)](_0x41ddf6[_0x118237(0x241)])['getUnitId']();}[_0x3e92f2(0x35e)](){const _0x3d9b03=_0x3e92f2;this[_0x3d9b03(0x30f)][_0x3d9b03(0x28b)]['pipe'](_0x8dafd9(this[_0x3d9b03(0x4b2)]),_0x3bc552(_0x2dfb0b=>{const _0x4437f6=_0x3d9b03;if(_0x2dfb0b){const _0x466ddd=_0x2dfb0b[_0x4437f6(0x233)];return _0x1d32ee(this['_collabCursorController']['getCollabCursors$'](this[_0x4437f6(0x402)]),this[_0x4437f6(0x1bb)][_0x4437f6(0x29c)])[_0x4437f6(0x407)](_0x4ed52e(([_0x51fdaf,_0x5da7ca])=>{const _0x1f0ec9=_0x4437f6,_0x4721fc=new Map();return _0x51fdaf[_0x1f0ec9(0x1b8)]((_0xa5569d,_0x5a028f)=>{const _0x4d25de=_0x1f0ec9;if(_0xa5569d[_0x4d25de(0x4cd)]===_0x466ddd){const _0x4c9a45={..._0xa5569d};_0x4c9a45[_0x4d25de(0x26f)]=_0x5da7ca[_0xa5569d['color']],_0x4721fc[_0x4d25de(0x2bc)](_0x5a028f,_0x4c9a45);}}),{'skeleton':_0x2dfb0b,'cursors':_0x4721fc};}));}return _0x53ae42({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x33113e,cursors:_0x2bd95c})=>{const _0x31e474=_0x3d9b03;this[_0x31e474(0x22a)](),_0x33113e&&this[_0x31e474(0x312)](_0x33113e,_0x2bd95c);}),this[_0x3d9b03(0x30f)][_0x3d9b03(0x28b)][_0x3d9b03(0x4be)](_0x47b26c=>{const _0x2e4492=_0x3d9b03;if(_0x47b26c==null)return;const {skeleton:_0x21ad26}=_0x47b26c,_0x1c464b=this[_0x2e4492(0x4cc)][_0x2e4492(0x46c)](this['_unitId']),{scene:_0x4d3c84}=_0x1c464b;_0x4d3c84[_0x2e4492(0x357)][_0x2e4492(0x3d0)](_0x561342(_0x4a3d9a=>{const _0x2ea32a=_0x2e4492;var _0x4ccf80,_0x5877f4;const {offsetX:_0x2881b3,offsetY:_0x2e6823}=_0x4a3d9a,{x:_0x1f6b14,y:_0x2b059b}=_0x4d3c84['getRelativeToViewportCoord'](_0x20338b['FromArray']([_0x2881b3,_0x2e6823])),{scaleX:_0x3448a3,scaleY:_0x312143}=_0x4d3c84[_0x2ea32a(0x3e6)](),_0x83293e=_0x4d3c84[_0x2ea32a(0x283)](_0x30f673[_0x2ea32a(0x431)]),_0x44afee=_0x4d3c84[_0x2ea32a(0x314)](_0x20338b[_0x2ea32a(0x3f1)]([_0x1f6b14,_0x2b059b]),_0x83293e),_0x9362b=_0x21ad26[_0x2ea32a(0x31e)](_0x2881b3,_0x2e6823,_0x3448a3,_0x312143,_0x44afee);((_0x4ccf80=this[_0x2ea32a(0x37c)])==null?void 0x0:_0x4ccf80[_0x2ea32a(0x1f5)])===_0x9362b[_0x2ea32a(0x1f5)]&&((_0x5877f4=this[_0x2ea32a(0x37c)])==null?void 0x0:_0x5877f4[_0x2ea32a(0x197)])===_0x9362b[_0x2ea32a(0x197)]||this[_0x2ea32a(0x463)][_0x2ea32a(0x1b8)](_0x2fba89=>{const _0x2281c5=_0x2ea32a;_0x2fba89[_0x2281c5(0x42a)](_0x9362b);});},0x64));});}[_0x3e92f2(0x312)](_0x2ee0da,_0x2d77a5){const _0x2fb4c2=_0x3e92f2;var _0x1af1b4;const _0x4edc2b=(_0x1af1b4=this['_sheetSkeletonManagerService'][_0x2fb4c2(0x4ba)]())==null?void 0x0:_0x1af1b4[_0x2fb4c2(0x205)];if(!_0x4edc2b)return;const _0x45b373=this[_0x2fb4c2(0x1ba)]();if(!_0x45b373)return;this[_0x2fb4c2(0x463)][_0x2fb4c2(0x1b8)](_0x38900d=>{const _0x499cff=_0x2fb4c2;_0x38900d[_0x499cff(0x417)]();});const {scene:_0x1cabff}=_0x45b373,_0xf9b3d1=vr(Array[_0x2fb4c2(0x473)](_0x2d77a5['values']()))[_0x2fb4c2(0x1be)](_0x3195eb=>{const _0x4c9ca6=_0x2fb4c2,{color:_0x1c0231,range:_0x581a3e,name:_0x9751b9,selection:_0x1fb9f6,sheetID:_0xc3576}=_0x3195eb,{startColumn:_0x491e82,startRow:_0x58261f,endColumn:_0x41b781,endRow:_0x206747}=_0x581a3e,_0x2033d5=_0x387ce0(_0x58261f,_0x491e82,_0x1cabff,_0x4edc2b),_0x2c94ea=_0x387ce0(_0x206747,_0x41b781,_0x1cabff,_0x4edc2b),{columnHeaderHeightAndMarginTop:_0x681b3}=_0x4edc2b,{startX:_0x2f95e9,startY:_0x61acf6}=_0x2033d5,{endX:_0xf66445,endY:_0x19270b}=_0x2c94ea,_0x15d85c=_0xf66445-_0x2f95e9,_0x45f4bc=_0x19270b-_0x61acf6,_0x5aad84={'labelPosition':_0x61acf6-_0x681b3>=Me?_0x4c9ca6(0x41a):'bottom','sheetID':_0xc3576,'range':_0x581a3e,'color':_0x1c0231,'name':_0x9751b9,'selection':_0x1fb9f6,'left':_0x2f95e9,'top':_0x61acf6,'width':_0x15d85c,'height':_0x45f4bc,'evented':!0x1,'zIndex':Sr};return new dr(_0x9751b9,_0x5aad84);});_0x1cabff[_0x2fb4c2(0x350)](_0xf9b3d1,_r),this[_0x2fb4c2(0x463)]=new Set(_0xf9b3d1);}[_0x3e92f2(0x22a)](){const _0x137294=_0x3e92f2;var _0x32c773;(_0x32c773=this[_0x137294(0x463)])==null||_0x32c773[_0x137294(0x1b8)](_0x4a66ac=>_0x4a66ac[_0x137294(0x25d)]());}[_0x3e92f2(0x1ba)](){const _0xd5468d=_0x3e92f2;return _0xa91384(this['_univerInstanceService'],this[_0xd5468d(0x4cc)]);}};Ve=gr([_0x405ab3(_0x57f2ea['Steady'],Ve),$e(0x0,_0xbbf94a(fe)),$e(0x1,_0x5f1ae0),$e(0x2,_0x5bdf6a),$e(0x3,_0xbbf94a(_0x441ca9))],Ve);function vr(_0x19b4f9){const _0x40b2a5=_0x3e92f2,_0x42649b=new Map();return _0x19b4f9[_0x40b2a5(0x1b8)](_0x3fadf0=>{const _0x4e0cc5=_0x40b2a5;if(_0x42649b[_0x4e0cc5(0x31c)](_0x3fadf0[_0x4e0cc5(0x240)])){const _0x56081b=_0x42649b['get'](_0x3fadf0[_0x4e0cc5(0x240)]);_0x56081b[_0x4e0cc5(0x2c2)]+=',\x20'+_0x3fadf0['name'];}else _0x42649b['set'](_0x3fadf0['selection'],_0x3fadf0);}),Array[_0x40b2a5(0x473)](_0x42649b['values']());}var A=function(){const _0x3efe9b=_0x3e92f2;return A=Object[_0x3efe9b(0x3ab)]||function(_0x302725){const _0x5b42e6=_0x3efe9b;for(var _0x50b036,_0x11508f=0x1,_0x56602e=arguments[_0x5b42e6(0x1a4)];_0x11508f<_0x56602e;_0x11508f++){_0x50b036=arguments[_0x11508f];for(var _0x4829b2 in _0x50b036)Object[_0x5b42e6(0x42b)][_0x5b42e6(0x3b8)][_0x5b42e6(0x49a)](_0x50b036,_0x4829b2)&&(_0x302725[_0x4829b2]=_0x50b036[_0x4829b2]);}return _0x302725;},A[_0x3efe9b(0x3ee)](this,arguments);},pr=function(_0x54e37e,_0x3b99d3){const _0x46c65c=_0x3e92f2;var _0x2977cb={};for(var _0x401f7c in _0x54e37e)Object[_0x46c65c(0x42b)][_0x46c65c(0x3b8)][_0x46c65c(0x49a)](_0x54e37e,_0x401f7c)&&_0x3b99d3[_0x46c65c(0x328)](_0x401f7c)<0x0&&(_0x2977cb[_0x401f7c]=_0x54e37e[_0x401f7c]);if(_0x54e37e!=null&&typeof Object[_0x46c65c(0x2e2)]=='function'){for(var _0x55e694=0x0,_0x401f7c=Object['getOwnPropertySymbols'](_0x54e37e);_0x55e694<_0x401f7c[_0x46c65c(0x1a4)];_0x55e694++)_0x3b99d3[_0x46c65c(0x328)](_0x401f7c[_0x55e694])<0x0&&Object[_0x46c65c(0x42b)][_0x46c65c(0x2d4)][_0x46c65c(0x49a)](_0x54e37e,_0x401f7c[_0x55e694])&&(_0x2977cb[_0x401f7c[_0x55e694]]=_0x54e37e[_0x401f7c[_0x55e694]]);}return _0x2977cb;},$t=_0xa872f9(function(_0x209221,_0x5c74ca){const _0x3169bc=_0x3e92f2;var _0x431d36=_0x209221['icon'],_0x4d6e56=_0x209221['id'],_0x29118c=_0x209221[_0x3169bc(0x3fb)],_0x18f95b=_0x209221[_0x3169bc(0x324)],_0x495327=pr(_0x209221,[_0x3169bc(0x260),'id',_0x3169bc(0x3fb),_0x3169bc(0x324)]),_0x583364=_0x3169bc(0x38d)[_0x3169bc(0x2f7)](_0x4d6e56,'\x20')[_0x3169bc(0x2f7)](_0x29118c||'')['trim'](),_0x191a30=_0x562615('_'[_0x3169bc(0x2f7)](Cr()));return As(_0x431d36,''['concat'](_0x4d6e56),{'defIds':_0x431d36[_0x3169bc(0x231)],'idSuffix':_0x191a30[_0x3169bc(0x1d1)]},A({'ref':_0x5c74ca,'className':_0x583364},_0x495327),_0x18f95b);});function As(_0x37dade,_0x334e16,_0x24211f,_0x4d707d,_0x23c098){const _0x28c2ad=_0x3e92f2;return _0x405505(_0x37dade[_0x28c2ad(0x1ec)],A(A({'key':_0x334e16},Ir(_0x37dade,_0x24211f,_0x23c098)),_0x4d707d),(Er(_0x37dade,_0x24211f)[_0x28c2ad(0x396)]||[])[_0x28c2ad(0x1be)](function(_0x1a091,_0x56d659){const _0xe80b1b=_0x28c2ad;return As(_0x1a091,''[_0xe80b1b(0x2f7)](_0x334e16,'-')['concat'](_0x37dade[_0xe80b1b(0x1ec)],'-')[_0xe80b1b(0x2f7)](_0x56d659),_0x24211f,void 0x0,_0x23c098);}));}function Ir(_0xd65aa3,_0x5b4897,_0x9ae7bc){const _0x1a579d=_0x3e92f2;var _0xe60071=A({},_0xd65aa3[_0x1a579d(0x3c1)]);_0x9ae7bc!=null&&_0x9ae7bc[_0x1a579d(0x48e)]&&_0xe60071[_0x1a579d(0x364)]===_0x1a579d(0x48e)&&(_0xe60071[_0x1a579d(0x364)]=_0x9ae7bc[_0x1a579d(0x48e)]);var _0x50572b=_0x5b4897['defIds'];return!_0x50572b||_0x50572b[_0x1a579d(0x1a4)]===0x0||(_0xd65aa3[_0x1a579d(0x1ec)]==='use'&&_0xe60071[_0x1a579d(0x1ac)]&&(_0xe60071['xlink:href']=_0xe60071[_0x1a579d(0x1ac)]+_0x5b4897[_0x1a579d(0x470)]),Object[_0x1a579d(0x41c)](_0xe60071)[_0x1a579d(0x1b8)](function(_0x351bfd){const _0x194be8=_0x1a579d;var _0x47ae38=_0x351bfd[0x0],_0x38b1af=_0x351bfd[0x1];typeof _0x38b1af==_0x194be8(0x3f4)&&(_0xe60071[_0x47ae38]=_0x38b1af['replace'](/url\(#(.*)\)/,'url(#$1'[_0x194be8(0x2f7)](_0x5b4897[_0x194be8(0x470)],')')));})),_0xe60071;}function Er(_0x470b02,_0x33ad03){const _0x4c4814=_0x3e92f2;var _0x31ed6c,_0xff2750=_0x33ad03[_0x4c4814(0x231)];return!_0xff2750||_0xff2750[_0x4c4814(0x1a4)]===0x0?_0x470b02:_0x470b02[_0x4c4814(0x1ec)]===_0x4c4814(0x3d7)&&(!((_0x31ed6c=_0x470b02[_0x4c4814(0x396)])===null||_0x31ed6c===void 0x0)&&_0x31ed6c[_0x4c4814(0x1a4)])?A(A({},_0x470b02),{'children':_0x470b02[_0x4c4814(0x396)]['map'](function(_0x52ff09){const _0x53b2df=_0x4c4814;return typeof _0x52ff09[_0x53b2df(0x3c1)]['id']=='string'&&_0xff2750&&_0xff2750['indexOf'](_0x52ff09[_0x53b2df(0x3c1)]['id'])>-0x1?A(A({},_0x52ff09),{'attrs':A(A({},_0x52ff09['attrs']),{'id':_0x52ff09[_0x53b2df(0x3c1)]['id']+_0x33ad03[_0x53b2df(0x470)]})}):_0x52ff09;})}):_0x470b02;}function Cr(){const _0x3ba6c2=_0x3e92f2;return Math[_0x3ba6c2(0x1d0)]()[_0x3ba6c2(0x264)](0x24)[_0x3ba6c2(0x30a)](0x2,0x8);}$t[_0x3e92f2(0x2ee)]=_0x3e92f2(0x259);var br={'tag':_0x3e92f2(0x28c),'attrs':{'fill':_0x3e92f2(0x444),'viewBox':_0x3e92f2(0x427),'width':_0x3e92f2(0x483),'height':_0x3e92f2(0x483)},'children':[{'tag':'g','attrs':{'clipPath':_0x3e92f2(0x212)},'children':[{'tag':_0x3e92f2(0x199),'attrs':{'stroke':_0x3e92f2(0x19e),'d':_0x3e92f2(0x3c0),'strokeLinecap':'round','strokeLinejoin':_0x3e92f2(0x209),'strokeWidth':1.2}}]},{'tag':_0x3e92f2(0x3d7),'attrs':{},'children':[{'tag':_0x3e92f2(0x227),'attrs':{'id':_0x3e92f2(0x27f)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x3e92f2(0x46d)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Us=_0xa872f9(function(_0x44bc6c,_0x4233fe){const _0x1126fa=_0x3e92f2;return _0x405505($t,Object[_0x1126fa(0x3ab)]({},_0x44bc6c,{'id':'off-line-single','ref':_0x4233fe,'icon':br}));});Us[_0x3e92f2(0x2ee)]=_0x3e92f2(0x39c);var Tr={'tag':_0x3e92f2(0x28c),'attrs':{'fill':_0x3e92f2(0x444),'viewBox':_0x3e92f2(0x2f4),'width':_0x3e92f2(0x483),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3e92f2(0x31f)},'children':[{'tag':_0x3e92f2(0x199),'attrs':{'stroke':_0x3e92f2(0x19e),'d':_0x3e92f2(0x382),'strokeLinecap':_0x3e92f2(0x209),'strokeLinejoin':_0x3e92f2(0x209),'strokeWidth':1.2}}]},{'tag':_0x3e92f2(0x3d7),'attrs':{},'children':[{'tag':_0x3e92f2(0x227),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x3e92f2(0x199),'attrs':{'fill':'#fff','d':_0x3e92f2(0x46d),'transform':_0x3e92f2(0x3d1)}}]}]}],'defIds':['on-line-single_clip0_910_349']},ys=_0xa872f9(function(_0x47a61e,_0xe8352){return _0x405505($t,Object['assign']({},_0x47a61e,{'id':'on-line-single','ref':_0xe8352,'icon':Tr}));});ys[_0x3e92f2(0x2ee)]='OnLineSingle';const Rr=_0x3e92f2(0x3af),Or=_0x3e92f2(0x2e3),Dr=_0x3e92f2(0x1b2),wr=_0x3e92f2(0x40e),Pr='univer-offline',be={'onlineStatusIcon':Rr,'onlineStatusTitle':Or,'onlineStatus':Dr,'online':wr,'offline':Pr};function Nr(_0x2fb5b9){const _0x296bd7=_0x3e92f2;switch(_0x2fb5b9){case P[_0x296bd7(0x461)]:return _0x296bd7(0x406);case P[_0x296bd7(0x2ec)]:return'collabStatus.conflict';case P[_0x296bd7(0x455)]:return _0x296bd7(0x2fd);case P['NOT_COLLAB']:return _0x296bd7(0x392);case P[_0x296bd7(0x475)]:case P['AWAITING']:case P[_0x296bd7(0x2ce)]:return'collabStatus.syncing';case P[_0x296bd7(0x3dd)]:return _0x296bd7(0x330);}}function Mr(_0x3d4172){const _0x88f9f9=_0x3e92f2,{status$:_0x2b9ad3}=_0x3d4172,_0x2d529e=_0x26ca96(_0x2b9ad3,P['NOT_COLLAB']),_0x359d9d=_0x1e1af6(_0x6789ab),_0x2d13e4=_0x2d529e!==P['OFFLINE'],_0x39d108=_0x359d9d['t'](Nr(_0x2d529e)),_0x54823f=_0x3f0cf9(be['onlineStatus'],{[be[_0x88f9f9(0x34a)]]:_0x2d13e4,[be[_0x88f9f9(0x258)]]:!_0x2d13e4}),_0x4bdbd6=_0x2d13e4?_0x12e564[_0x88f9f9(0x1de)](ys,null):_0x12e564['createElement'](Us,null);return _0x12e564[_0x88f9f9(0x1de)](_0x88f9f9(0x315),{'className':_0x54823f},_0x12e564[_0x88f9f9(0x1de)]('div',{'className':be[_0x88f9f9(0x420)]},_0x4bdbd6),_0x12e564[_0x88f9f9(0x1de)]('div',{'className':be[_0x88f9f9(0x3d2)]},_0x39d108));}var Ar=Object[_0x3e92f2(0x340)],Ur=Object['getOwnPropertyDescriptor'],yr=(_0x474a6b,_0x662c98,_0x22ae9a,_0x1924f9)=>{for(var _0x2df893=_0x1924f9>0x1?void 0x0:_0x1924f9?Ur(_0x662c98,_0x22ae9a):_0x662c98,_0x4ffbb6=_0x474a6b['length']-0x1,_0x4b192c;_0x4ffbb6>=0x0;_0x4ffbb6--)(_0x4b192c=_0x474a6b[_0x4ffbb6])&&(_0x2df893=(_0x1924f9?_0x4b192c(_0x662c98,_0x22ae9a,_0x2df893):_0x4b192c(_0x2df893))||_0x2df893);return _0x1924f9&&_0x2df893&&Ar(_0x662c98,_0x22ae9a,_0x2df893),_0x2df893;},je=(_0x14632a,_0x385127)=>(_0x528be3,_0x1530e0)=>_0x385127(_0x528be3,_0x1530e0,_0x14632a);let Be=class extends _0x1f0611{constructor(_0x38ed25,_0x3ed8fd,_0x4de8e7,_0x12edd8){const _0x31bf28=_0x3e92f2;super(),l(this,_0x31bf28(0x489),new _0x4d79d8(P['NOT_COLLAB'])),(this[_0x31bf28(0x1ef)]=_0x38ed25,this[_0x31bf28(0x3bf)]=_0x3ed8fd,this['_injector']=_0x4de8e7,this[_0x31bf28(0x464)]=_0x12edd8,this[_0x31bf28(0x459)](),this[_0x31bf28(0x268)]());}[_0x3e92f2(0x459)](){const _0x23170f=_0x3e92f2;this[_0x23170f(0x280)](this[_0x23170f(0x3bf)][_0x23170f(0x2bf)](_0x4f2b7f[_0x23170f(0x4af)],()=>_0x5396b8(Lr({'status$':this[_0x23170f(0x489)][_0x23170f(0x423)]()}),this['_injector'])));}[_0x3e92f2(0x268)](){const _0x5c25ce=_0x3e92f2;this[_0x5c25ce(0x280)](_0x38ac23(this[_0x5c25ce(0x1ef)][_0x5c25ce(0x21b)][_0x5c25ce(0x407)](_0x10f218(()=>{const _0x4bc2b1=_0x5c25ce,_0x167d1d=this[_0x4bc2b1(0x1ef)][_0x4bc2b1(0x380)]();return _0x167d1d?this[_0x4bc2b1(0x464)]['getCollabEntity$'](_0x167d1d[_0x4bc2b1(0x47a)]()):_0x53ae42(null);}),_0x10f218(_0x54c32d=>_0x54c32d?_0x54c32d[_0x5c25ce(0x4a1)]:_0x53ae42(P[_0x5c25ce(0x41b)])))[_0x5c25ce(0x4be)](_0x2347f7=>{const _0x5ccb95=_0x5c25ce;this['_status$'][_0x5ccb95(0x3ea)](_0x2347f7);})));}};Be=yr([_0x405ab3(_0x57f2ea[_0x3e92f2(0x1e8)],Be),je(0x0,_0x5f1ae0),je(0x1,_0x49a90c),je(0x2,_0xbbf94a(_0xa8f435)),je(0x3,_0xbbf94a(De))],Be);function Lr(_0x725896){const {status$:_0x44f6af}=_0x725896;return function(){const _0x2cf805=_0x4256;return _0x12e564[_0x2cf805(0x1de)](Mr,{'status$':_0x44f6af});};}const Ls=_0x3195f2(_0x3e92f2(0x3e3));var $r=Object[_0x3e92f2(0x340)],jr=Object[_0x3e92f2(0x2d2)],Hr=(_0x12b299,_0x56d496,_0x3c993c,_0x59a2b8)=>{const _0x41e90a=_0x3e92f2;for(var _0x3ef090=_0x59a2b8>0x1?void 0x0:_0x59a2b8?jr(_0x56d496,_0x3c993c):_0x56d496,_0x4ee151=_0x12b299[_0x41e90a(0x1a4)]-0x1,_0x348f93;_0x4ee151>=0x0;_0x4ee151--)(_0x348f93=_0x12b299[_0x4ee151])&&(_0x3ef090=(_0x59a2b8?_0x348f93(_0x56d496,_0x3c993c,_0x3ef090):_0x348f93(_0x3ef090))||_0x3ef090);return _0x59a2b8&&_0x3ef090&&$r(_0x56d496,_0x3c993c,_0x3ef090),_0x3ef090;},le=(_0x40604e,_0x376b37)=>(_0x299cb7,_0x4447db)=>_0x376b37(_0x299cb7,_0x4447db,_0x40604e);let ke=class extends _0x4c153b{constructor(_0x36403d,_0x36aa1c,_0x2bd49a,_0xc660c2,_0x2b21cf,_0x46846e){const _0x5c0a73=_0x3e92f2;super(),this[_0x5c0a73(0x4a2)]=_0x36403d,this[_0x5c0a73(0x27b)]=_0x36aa1c,this[_0x5c0a73(0x1f2)]=_0x2bd49a,this['_localCacheService']=_0xc660c2,this[_0x5c0a73(0x249)]=_0x2b21cf,_0x46846e?_0x46846e==null||_0x46846e['whenReady']()[_0x5c0a73(0x31d)](()=>this[_0x5c0a73(0x35e)]()):(this[_0x5c0a73(0x27b)][_0x5c0a73(0x2f1)](_0x5c0a73(0x1b0),_0x5c0a73(0x48b)),this[_0x5c0a73(0x35e)]());}async[_0x3e92f2(0x35e)](){const _0x1d88fe=_0x3e92f2,_0x31d6af=this[_0x1d88fe(0x4a2)][_0x1d88fe(0x2eb)](_0x1d88fe(0x4b4)),_0x4b9f18=this['_urlService'][_0x1d88fe(0x2eb)]('type');if(!_0x31d6af||!_0x4b9f18){this['_logService'][_0x1d88fe(0x2f1)]('[DataLoaderController]',_0x1d88fe(0x1d9));return;}switch(Number(_0x4b9f18)){case H[_0x1d88fe(0x241)]:{const _0xcb74d8=await this['_loadSheet'](_0x31d6af);this[_0x1d88fe(0x1db)](_0xcb74d8);break;}case H[_0x1d88fe(0x2e1)]:{await this['_loadDoc'](_0x31d6af);break;}default:{this[_0x1d88fe(0x27b)]['error'](_0x1d88fe(0x1b0),_0x1d88fe(0x43d));break;}}}async['_setupSubUnitSync'](_0x104000){const _0xe0713a=_0x3e92f2;await this[_0xe0713a(0x387)](_0x104000),_0x104000[_0xe0713a(0x3b6)]['pipe'](_0x254c9c(this[_0xe0713a(0x4b2)]))['subscribe'](_0x4f06df=>{const _0x57f3f3=_0xe0713a;_0x4f06df&&this[_0x57f3f3(0x403)](_0x4f06df);}),this['_urlService'][_0xe0713a(0x36c)]['pipe'](_0x254c9c(this[_0xe0713a(0x4b2)]))[_0xe0713a(0x4be)](()=>this[_0xe0713a(0x387)](_0x104000));}[_0x3e92f2(0x403)](_0x2046d0,_0x2355c9=!0x1){const _0xb0a1b9=_0x3e92f2,_0x55cabb=this[_0xb0a1b9(0x4a2)][_0xb0a1b9(0x2eb)]('subunit');_0x2046d0[_0xb0a1b9(0x1fb)]()!==_0x55cabb&&this[_0xb0a1b9(0x4a2)][_0xb0a1b9(0x385)](_0xb0a1b9(0x3e9),_0x2046d0[_0xb0a1b9(0x1fb)](),_0x2355c9);}async[_0x3e92f2(0x387)](_0x2bc142){const _0x2ac303=_0x3e92f2;var _0x233935;const _0x8b9390=this[_0x2ac303(0x4a2)]['getParam'](_0x2ac303(0x3e9));if(!_0x8b9390||!_0x2bc142[_0x2ac303(0x42f)](_0x8b9390)){const _0x7d0fee=_0x2bc142[_0x2ac303(0x2a6)]()[0x0],_0x32e119=_0x2bc142['getSheetBySheetId'](_0x7d0fee);if(!_0x32e119)return;this[_0x2ac303(0x403)](_0x32e119,!0x0),await this['_commandService'][_0x2ac303(0x230)](_0x19d32b['id'],{'unitId':_0x2bc142[_0x2ac303(0x47a)](),'subUnitId':_0x7d0fee});return;}((_0x233935=_0x2bc142[_0x2ac303(0x2d7)]())==null?void 0x0:_0x233935['getSheetId']())!==_0x8b9390&&await this[_0x2ac303(0x1f2)]['executeCommand'](_0x19d32b['id'],{'unitId':_0x2bc142[_0x2ac303(0x47a)](),'subUnitId':_0x8b9390});}async[_0x3e92f2(0x1d4)](_0x20ff51){const _0x4250fb=_0x3e92f2;let _0xfa2acd=0x0;const _0x65425d=await this['_localCacheService'][_0x4250fb(0x4bc)](_0x20ff51);return _0x65425d&&(_0x65425d[_0x4250fb(0x2b2)]||_0x65425d[_0x4250fb(0x1d5)][_0x4250fb(0x1a4)]!==0x0)&&(_0xfa2acd=_0x65425d[_0x4250fb(0x438)]),_0xfa2acd===0x0&&this[_0x4250fb(0x27b)][_0x4250fb(0x2f1)](_0x4250fb(0x1b0),_0x4250fb(0x2d3)),this[_0x4250fb(0x249)][_0x4250fb(0x339)](_0x20ff51,_0xfa2acd);}async[_0x3e92f2(0x237)](_0x18e064){const _0x43df67=_0x3e92f2;let _0x3e66f9=0x0;const _0x325de1=await this[_0x43df67(0x2d9)]['loadOfflineData'](_0x18e064);return _0x325de1&&(_0x325de1[_0x43df67(0x2b2)]||_0x325de1[_0x43df67(0x1d5)][_0x43df67(0x1a4)]!==0x0)&&(_0x3e66f9=_0x325de1['rev']),_0x3e66f9===0x0&&this[_0x43df67(0x27b)][_0x43df67(0x2f1)]('[DataLoaderController]',_0x43df67(0x2d3)),this['_snapshotService'][_0x43df67(0x1f7)](_0x18e064,_0x3e66f9);}};ke=Hr([_0x405ab3(_0x57f2ea[_0x3e92f2(0x1e8)],ke),le(0x0,Ls),le(0x1,_0x46d807),le(0x2,_0x109aa8),le(0x3,_0xbbf94a(D)),le(0x4,_0xbbf94a(_0x4d5681)),le(0x5,_0x3668b1(_0x2066c7))],ke);var xr=Object['defineProperty'],Fr=Object[_0x3e92f2(0x2d2)],Vr=(_0x7e162e,_0x3c3523,_0xdf078b,_0x522fb9)=>{const _0x26702e=_0x3e92f2;for(var _0x6ced67=_0x522fb9>0x1?void 0x0:_0x522fb9?Fr(_0x3c3523,_0xdf078b):_0x3c3523,_0x38c9ac=_0x7e162e[_0x26702e(0x1a4)]-0x1,_0x17e346;_0x38c9ac>=0x0;_0x38c9ac--)(_0x17e346=_0x7e162e[_0x38c9ac])&&(_0x6ced67=(_0x522fb9?_0x17e346(_0x3c3523,_0xdf078b,_0x6ced67):_0x17e346(_0x6ced67))||_0x6ced67);return _0x522fb9&&_0x6ced67&&xr(_0x3c3523,_0xdf078b,_0x6ced67),_0x6ced67;},ss=(_0x3cae2d,_0x1e8a94)=>(_0x25152a,_0x420645)=>_0x1e8a94(_0x25152a,_0x420645,_0x3cae2d);const Br=_0x3e92f2(0x26c),kr=_0x3e92f2(0x447);let We=class extends _0x1f0611{constructor(_0x337a18,_0x21461b){const _0x2bab03=_0x3e92f2;super(),this[_0x2bab03(0x1ef)]=_0x337a18,this[_0x2bab03(0x292)]=_0x21461b,this['_init']();}[_0x3e92f2(0x35e)](){const _0x233140=_0x3e92f2;this[_0x233140(0x280)](_0x38ac23(this['_univerInstanceService'][_0x233140(0x21b)]['subscribe'](()=>{const _0x231b63=_0x233140;var _0x27760a;const _0x5518c8=this[_0x231b63(0x1ef)][_0x231b63(0x380)]();let _0x2a4cbd=(_0x27760a=this[_0x231b63(0x292)][_0x231b63(0x361)](Br))!=null?_0x27760a:kr;_0x5518c8 instanceof _0x15b410&&(_0x2a4cbd=_0x5518c8['name']),document['title']=_0x2a4cbd;})));}};We=Vr([_0x405ab3(_0x57f2ea[_0x3e92f2(0x20f)],We),ss(0x0,_0x5f1ae0),ss(0x1,_0x523c70)],We);var Wr=Object['defineProperty'],Gr=Object[_0x3e92f2(0x2d2)],Yr=(_0x2025d2,_0x33702e,_0x1eac24,_0x46d895)=>{const _0x508ccd=_0x3e92f2;for(var _0x501942=_0x46d895>0x1?void 0x0:_0x46d895?Gr(_0x33702e,_0x1eac24):_0x33702e,_0x5b7636=_0x2025d2[_0x508ccd(0x1a4)]-0x1,_0x1a1d0f;_0x5b7636>=0x0;_0x5b7636--)(_0x1a1d0f=_0x2025d2[_0x5b7636])&&(_0x501942=(_0x46d895?_0x1a1d0f(_0x33702e,_0x1eac24,_0x501942):_0x1a1d0f(_0x501942))||_0x501942);return _0x46d895&&_0x501942&&Wr(_0x33702e,_0x1eac24,_0x501942),_0x501942;},is=(_0x4fb32f,_0x453534)=>(_0x3da238,_0x3e398a)=>_0x453534(_0x3da238,_0x3e398a,_0x4fb32f);let Ct=class{constructor(_0x5b2de8,_0x59d17d){const _0x5ede65=_0x3e92f2;this[_0x5ede65(0x292)]=_0x5b2de8,this[_0x5ede65(0x35f)]=_0x59d17d;}async['getUnitOnRev'](_0x51afb7,_0x1b6e32){const _0x4ff5c2=_0x3e92f2;var _0x56e1ee;const {unitID:_0x27d37f,type:_0x29019e,revision:_0x4475f6=0x0}=_0x1b6e32,_0x47bed0=this[_0x4ff5c2(0x318)]()+'/'+_0x29019e+_0x4ff5c2(0x1e7)+_0x27d37f+_0x4ff5c2(0x22b)+(_0x4475f6===0x1?0x0:_0x4475f6),_0xef166f=(await this[_0x4ff5c2(0x35f)][_0x4ff5c2(0x2d5)](_0x47bed0))[_0x4ff5c2(0x46e)],_0x26a6c8=(_0x56e1ee=_0xef166f[_0x4ff5c2(0x446)])==null?void 0x0:_0x56e1ee[_0x4ff5c2(0x348)];if(_0x26a6c8){const _0x5f21ed=_0x26a6c8==null?void 0x0:_0x26a6c8['originalMeta'],_0x1a9e72=_0x518061['encode'](_0x2439d9(_0x5f21ed));_0x26a6c8[_0x4ff5c2(0x29b)]=_0x1a9e72,Object[_0x4ff5c2(0x41c)](_0x26a6c8[_0x4ff5c2(0x1a7)])[_0x4ff5c2(0x1b8)](([,_0x5b8678])=>{const _0x1d9f24=_0x4ff5c2,_0xbbe425=_0x5b8678[_0x1d9f24(0x29b)],_0x1041c1=_0x518061['encode'](_0x2439d9(_0xbbe425));_0x5b8678['originalMeta']=_0x1041c1;});}return _0xef166f;}async[_0x3e92f2(0x30b)](_0x1a4812,_0x4e6883){const _0x4ffb20=_0x3e92f2,{unitID:_0x4ceda3,type:_0x4fb9d7,blockID:_0x3bf547}=_0x4e6883,_0x41eae0=this[_0x4ffb20(0x2fc)]()+'/'+_0x4fb9d7+_0x4ffb20(0x1e7)+_0x4ceda3+'/block/'+_0x3bf547;return(await this[_0x4ffb20(0x35f)][_0x4ffb20(0x2d5)](_0x41eae0))[_0x4ffb20(0x46e)];}async[_0x3e92f2(0x39e)](_0xca4f37,_0x549247){const _0x153c8c=_0x3e92f2,{unitID:_0x9ae6ab,type:_0x51a1a1,from:_0x424ddb,to:_0xd53516}=_0x549247,_0x5786d6=this[_0x153c8c(0x2fc)]()+'/'+_0x51a1a1+_0x153c8c(0x1e7)+_0x9ae6ab+_0x153c8c(0x365)+_0x424ddb+'&to='+_0xd53516;return(await this['_httpService'][_0x153c8c(0x2d5)](_0x5786d6))['body'];}[_0x3e92f2(0x318)](){const _0x4ae67c=_0x3e92f2;var _0x5a7c99;return(_0x5a7c99=this[_0x4ae67c(0x292)][_0x4ae67c(0x361)](qi))!=null?_0x5a7c99:this[_0x4ae67c(0x2fc)]();}[_0x3e92f2(0x2fc)](){const _0x4f4c41=_0x3e92f2;var _0x1ff68c;return(_0x1ff68c=this[_0x4f4c41(0x292)][_0x4f4c41(0x361)](Ji))!=null?_0x1ff68c:zi;}async[_0x3e92f2(0x19d)](_0x3ec5f0,_0x2b7940){const _0x4d9f48=_0x3e92f2,_0x131735=_0x4d9f48(0x1f1)+_0x2b7940[_0x4d9f48(0x342)]+_0x4d9f48(0x1e7)+_0x2b7940['unitID']+_0x4d9f48(0x2de);return(await this[_0x4d9f48(0x35f)][_0x4d9f48(0x2d5)](_0x131735,{'params':{'resourceId':JSON[_0x4d9f48(0x20d)](_0x2b7940[_0x4d9f48(0x269)])}}))['body'];}[_0x3e92f2(0x3b7)](){const _0x5ab4e4=_0x3e92f2;throw new Error(_0x5ab4e4(0x41e));}[_0x3e92f2(0x32d)](){const _0x52d187=_0x3e92f2;throw new Error(_0x52d187(0x41e));}[_0x3e92f2(0x23f)](){const _0x116862=_0x3e92f2;throw new Error(_0x116862(0x41e));}};Ct=Yr([is(0x0,_0x523c70),is(0x1,_0xbbf94a(_0x50f6b0))],Ct);var Kr=Object[_0x3e92f2(0x340)],Xr=Object[_0x3e92f2(0x2d2)],Jr=(_0x5ec31e,_0x5bcec4,_0x1c6970,_0x39ba59)=>{const _0xde4d70=_0x3e92f2;for(var _0x57c9a0=_0x39ba59>0x1?void 0x0:_0x39ba59?Xr(_0x5bcec4,_0x1c6970):_0x5bcec4,_0x2719e5=_0x5ec31e[_0xde4d70(0x1a4)]-0x1,_0x3bcf1e;_0x2719e5>=0x0;_0x2719e5--)(_0x3bcf1e=_0x5ec31e[_0x2719e5])&&(_0x57c9a0=(_0x39ba59?_0x3bcf1e(_0x5bcec4,_0x1c6970,_0x57c9a0):_0x3bcf1e(_0x57c9a0))||_0x57c9a0);return _0x39ba59&&_0x57c9a0&&Kr(_0x5bcec4,_0x1c6970,_0x57c9a0),_0x57c9a0;},Te=(_0x17a2c8,_0x2c4999)=>(_0xe22495,_0x223698)=>_0x2c4999(_0xe22495,_0x223698,_0x17a2c8);let bt=class extends _0x13c2f6{constructor(_0x3fe203,_0xaa9d71,_0x1fe3f5,_0x1c89d0,_0x37487d){super(_0x3fe203,_0xaa9d71,_0x1fe3f5),this['_transformService']=_0x1c89d0,this['_logService']=_0x37487d;}[_0x3e92f2(0x250)](_0x111760,_0x521a28){const _0x3b2810=_0x3e92f2,_0x3ebaca=this[_0x3b2810(0x3a9)](_0x111760);if(_0x3ebaca)try{const _0x4f11f2=this[_0x3b2810(0x323)](_0x3ebaca,_0x521a28);this[_0x3b2810(0x34b)](_0x111760,_0x4f11f2);}catch(_0x5e8bf9){this['_logService'][_0x3b2810(0x23c)]('[CollaborationUndoRedoService]',_0x5e8bf9),this[_0x3b2810(0x2ca)](_0x111760);}const _0xac13eb=this['_getRedoStack'](_0x111760);if(_0xac13eb)try{const _0x31bb8e=this[_0x3b2810(0x323)](_0xac13eb,_0x521a28);this['_substituteRedoStack'](_0x111760,_0x31bb8e);}catch(_0x5a954b){this[_0x3b2810(0x27b)][_0x3b2810(0x23c)](_0x5a954b),this[_0x3b2810(0x40d)](_0x111760);}}['_clearUndo'](_0x11ecbb){const _0x7fd591=_0x3e92f2,_0x5c8861=this[_0x7fd591(0x3a9)](_0x11ecbb);_0x5c8861&&(_0x5c8861[_0x7fd591(0x1a4)]=0x0,this[_0x7fd591(0x28f)]());}[_0x3e92f2(0x40d)](_0x3a9000){const _0x5bb971=_0x3e92f2,_0x45a238=this[_0x5bb971(0x45d)](_0x3a9000);_0x45a238&&(_0x45a238[_0x5bb971(0x1a4)]=0x0,this['_updateStatus']());}[_0x3e92f2(0x34b)](_0x4e75a0,_0x88047b){const _0x5f3a3e=_0x3e92f2;this['_undoStacks'][_0x5f3a3e(0x2bc)](_0x4e75a0,_0x88047b),this[_0x5f3a3e(0x28f)]();}[_0x3e92f2(0x386)](_0x6777c,_0x8197ec){const _0x464d2c=_0x3e92f2;this['_redoStacks'][_0x464d2c(0x2bc)](_0x6777c,_0x8197ec),this['_updateStatus']();}[_0x3e92f2(0x323)](_0x5e9227,_0x375a6e){const _0x5f5646=_0x3e92f2,_0x5cb246=[];let _0x20ec61=_0x375a6e,_0x3e8dd2=_0x375a6e;for(let _0x25da05=_0x5e9227['length']-0x1;_0x25da05>=0x0;_0x25da05--){const {unitID:_0x3e8dc0,undoMutations:_0x5c9d4e,redoMutations:_0x4c536b}=_0x5e9227[_0x25da05],_0x360f9e=this[_0x5f5646(0x22e)]['transformMutationsWithChangeset'](_0x20ec61,_0x5c9d4e),_0x510fc3=this[_0x5f5646(0x22e)][_0x5f5646(0x242)](_0x3e8dd2,_0x4c536b);if(_0x27cfca(_0x360f9e)||_0x27cfca(_0x510fc3)){this[_0x5f5646(0x27b)][_0x5f5646(0x23c)](_0x5f5646(0x38c),_0x5f5646(0x21e),_0x360f9e,_0x510fc3);break;}_0x20ec61=_0x360f9e['c1Prime'],_0x3e8dd2=_0x510fc3[_0x5f5646(0x2e7)],_0x5cb246[_0x5f5646(0x2cb)]({'unitID':_0x3e8dc0,'undoMutations':_0x360f9e[_0x5f5646(0x2fb)],'redoMutations':_0x510fc3[_0x5f5646(0x2fb)]});}return _0x5cb246[_0x5f5646(0x343)]();}};bt=Jr([Te(0x0,_0x5f1ae0),Te(0x1,_0x109aa8),Te(0x2,_0x114c9b),Te(0x3,_0x1b279b),Te(0x4,_0x46d807)],bt);class zr extends _0x4c153b{constructor(){const _0x1eaae1=_0x3e92f2;super(),l(this,_0x1eaae1(0x36c)),this[_0x1eaae1(0x36c)]=_0x236f67(window,_0x1eaae1(0x474))[_0x1eaae1(0x407)](_0x254c9c(this['dispose$']),_0x839af7(0x1),_0x582e14(void 0x0));}[_0x3e92f2(0x385)](_0x45790a,_0x2e9ecd,_0x135bca=!0x1){const _0x29693b=_0x3e92f2,_0x2a6c16=new URL(window[_0x29693b(0x252)][_0x29693b(0x270)]);_0x2a6c16['searchParams'][_0x29693b(0x2bc)](_0x45790a,_0x2e9ecd),_0x135bca?window[_0x29693b(0x1fc)][_0x29693b(0x1e2)]('','',_0x2a6c16[_0x29693b(0x264)]()):window[_0x29693b(0x1fc)]['pushState']('','',_0x2a6c16[_0x29693b(0x264)]());}[_0x3e92f2(0x4b8)](_0x51fa83,_0x2ec1e5=!0x1){const _0x22c83c=_0x3e92f2,_0x5eb55f=new URL(window[_0x22c83c(0x252)][_0x22c83c(0x270)]);_0x5eb55f[_0x22c83c(0x415)][_0x22c83c(0x36f)](_0x51fa83),_0x2ec1e5?window[_0x22c83c(0x1fc)][_0x22c83c(0x1e2)]('','',_0x5eb55f[_0x22c83c(0x264)]()):window[_0x22c83c(0x1fc)]['pushState']('','',_0x5eb55f[_0x22c83c(0x264)]());}['getParam'](_0x3d9255){const _0x56dc48=_0x3e92f2;var _0x441308;return(_0x441308=new URL(window[_0x56dc48(0x252)]['href'])[_0x56dc48(0x415)][_0x56dc48(0x2d5)](_0x3d9255))!=null?_0x441308:void 0x0;}}const lt=_0x3e92f2(0x3ba),qr=_0x3e92f2(0x451),He=0x6,Zr=1.5,_t=0x4,Qr=1.5,eo=_0x3e92f2(0x248);class to{constructor(_0x586dda,_0x2af316,_0xb82e82,_0xcd0c48){const _0x2aaa7a=_0x3e92f2;l(this,_0x2aaa7a(0x1dc),[]),l(this,_0x2aaa7a(0x3eb),null),l(this,_0x2aaa7a(0x3f7),null),l(this,_0x2aaa7a(0x3ff),null),l(this,_0x2aaa7a(0x43f),null),l(this,'_eventUnsubscribe',null),(this[_0x2aaa7a(0x3c3)]=_0x586dda,this[_0x2aaa7a(0x279)]=_0x2af316,this[_0x2aaa7a(0x2bd)]=_0xb82e82,this[_0x2aaa7a(0x478)]=_0xcd0c48,this[_0x2aaa7a(0x3da)]());}set[_0x3e92f2(0x1f3)](_0x481679){const _0x359f77=_0x3e92f2;_0x481679?(this[_0x359f77(0x3ff)]&&this['_anchorDot'][_0x359f77(0x33c)](),this[_0x359f77(0x3f7)]&&this[_0x359f77(0x3f7)][_0x359f77(0x3a7)]()):(this[_0x359f77(0x3ff)]&&this[_0x359f77(0x3ff)][_0x359f77(0x3a7)](),this[_0x359f77(0x3f7)]&&this[_0x359f77(0x3f7)][_0x359f77(0x33c)]());}[_0x3e92f2(0x25d)](){const _0x6a7e3e=_0x3e92f2;for(const _0xc90695 of this[_0x6a7e3e(0x1dc)])_0xc90695['dispose']();this['_textBubble']&&this[_0x6a7e3e(0x3f7)][_0x6a7e3e(0x25d)](),this[_0x6a7e3e(0x3ff)]&&this[_0x6a7e3e(0x3ff)][_0x6a7e3e(0x25d)](),this[_0x6a7e3e(0x3eb)]&&this[_0x6a7e3e(0x3eb)]['dispose'](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x3e92f2(0x3da)](){const _0x59cc10=_0x3e92f2,{_docSkeleton:_0x21f7f8,_document:_0x5e5c75}=this,{color:_0x3c38fc,name:_0x29e9e5,ranges:_0x1c6a32}=this[_0x59cc10(0x3c3)],_0x5bc562=_0x5e5c75[_0x59cc10(0x1e6)](),{docsLeft:_0x48f25f,docsTop:_0xe6ac5f}=_0x5bc562,_0x336252=new _0xc0d7bf(_0x5bc562,_0x21f7f8);for(const {startOffset:_0x14a3d6,endOffset:_0x5a4e20,collapsed:_0x6b01aa,isActive:_0x962df3}of _0x1c6a32){const _0x5a5ef9=_0x21f7f8['findNodePositionByCharIndex'](_0x14a3d6),_0x37601e=_0x21f7f8[_0x59cc10(0x327)](_0x5a4e20);if(_0x962df3){const {contentBoxPointGroup:_0x238e46}=_0x336252[_0x59cc10(0x195)](_0x37601e,_0x37601e);if(_0x238e46['length']===0x0)continue;this[_0x59cc10(0x4ac)](_0x3c38fc,_0x238e46,_0x48f25f,_0xe6ac5f,_0x29e9e5),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x6b01aa){const {contentBoxPointGroup:_0x2cb6a9}=_0x336252[_0x59cc10(0x195)](_0x5a5ef9,_0x37601e);if(_0x2cb6a9['length']===0x0)continue;this[_0x59cc10(0x198)](_0x3c38fc,_0x2cb6a9,_0x48f25f,_0xe6ac5f);}}}[_0x3e92f2(0x4ac)](_0x21af6b,_0x5b94d6,_0x2391f7,_0x24967a,_0x287386){const _0x3f540b=_0x3e92f2,_0x5133e1=this[_0x3f540b(0x1bf)](_0x5b94d6),{left:_0x3f675b,top:_0x3b4bf1,height:_0x34cb29}=_0x5133e1,_0x433c03=this['_getScale'](),_0x5713f1=Qr/_0x433c03,_0x4ebf2c=new _0x1385ec(lt+_0x545ca3['generateRandomId'](He),{'left':_0x3f675b+_0x2391f7-_0x5713f1,'top':_0x3b4bf1+_0x24967a,'height':_0x34cb29,'width':Zr,'fill':_0x21af6b||_0x5afff8(_0x45d551[_0x3f540b(0x39a)],0x0),'strokeWidth':_0x5713f1,'stroke':eo,'evented':!0x0});this[_0x3f540b(0x3eb)]=_0x4ebf2c,this[_0x3f540b(0x279)][_0x3f540b(0x287)](_0x4ebf2c,_0x563281);const _0x319f85=new _0x1385ec(lt+_0x545ca3[_0x3f540b(0x3c4)](He),{'left':_0x3f675b+_0x2391f7-_0x5713f1,'top':_0x3b4bf1+_0x24967a-_t/0x2,'height':_t,'width':_t,'fill':_0x21af6b||_0x5afff8(_0x45d551[_0x3f540b(0x39a)],0x0),'strokeWidth':0x0,'stroke':_0x21af6b||_0x5afff8(_0x45d551['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x319f85,this[_0x3f540b(0x279)][_0x3f540b(0x287)](_0x319f85,_0x563281);const _0x3ec1eb=new st(lt+_0x545ca3[_0x3f540b(0x3c4)](He),{'left':_0x3f675b+_0x2391f7-_0x5713f1,'top':_0x3b4bf1+_0x24967a-Me,'text':_0x287386,'color':_0x21af6b});this['_textBubble']=_0x3ec1eb,this[_0x3f540b(0x279)][_0x3f540b(0x287)](_0x3ec1eb,_0x563281),this[_0x3f540b(0x1f3)]=!0x1;}['_handleHover'](){const _0x4d6856=_0x3e92f2,_0x43b5fb=this[_0x4d6856(0x3eb)][_0x4d6856(0x1fd)][_0x4d6856(0x3d0)](()=>{const _0x4828c8=_0x4d6856;this[_0x4828c8(0x1f3)]=!0x0;}),_0x261e48=this[_0x4d6856(0x3eb)][_0x4d6856(0x3e1)][_0x4d6856(0x3d0)](()=>{const _0x1f1729=_0x4d6856;this[_0x1f1729(0x43f)]&&clearTimeout(this['_hideTimer']),this[_0x1f1729(0x43f)]=setTimeout(()=>{const _0x331576=_0x1f1729;this[_0x331576(0x1f3)]=!0x1;},0x7d0);});return()=>{const _0x4abff6=_0x4d6856;_0x43b5fb[_0x4abff6(0x3b0)](),_0x261e48['unsubscribe']();};}[_0x3e92f2(0x198)](_0x4dca5f,_0x57dde3,_0x16e484,_0x1c9f82){const _0x5ca913=_0x3e92f2,_0x3a40fe=new _0xbc8d5d(_0x4dca5f)['setAlpha'](0.2)[_0x5ca913(0x245)](),_0x509bf3=new _0x49179d(qr+_0x545ca3[_0x5ca913(0x3c4)](He),{'pointsGroup':_0x57dde3,'fill':_0x3a40fe||_0x5afff8(_0x45d551[_0x5ca913(0x39a)],0.2),'left':_0x16e484,'top':_0x1c9f82,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x5ca913(0x2cb)](_0x509bf3),this[_0x5ca913(0x279)][_0x5ca913(0x287)](_0x509bf3,_0x563281);}[_0x3e92f2(0x1bf)](_0x47a326){const _0x6f258c=_0x47a326[0x0],_0x25694d=_0x6f258c[0x0],_0x5089bd=_0x6f258c[0x2],{x:_0x3d41d5,y:_0x52768f}=_0x25694d,{x:_0x22b12b,y:_0x3d7898}=_0x5089bd;return{'left':_0x3d41d5,'top':_0x52768f,'width':_0x22b12b-_0x3d41d5,'height':_0x3d7898-_0x52768f};}[_0x3e92f2(0x3c6)](){const _0x3c13d6=_0x3e92f2,{scaleX:_0x57bb90,scaleY:_0x5de461}=this['_scene'][_0x3c13d6(0x3e6)]();return Math[_0x3c13d6(0x218)](_0x57bb90,_0x5de461);}}var so=Object[_0x3e92f2(0x340)],io=Object[_0x3e92f2(0x2d2)],no=(_0x352d74,_0x23314e,_0x3024c4,_0x314461)=>{const _0x22eb1f=_0x3e92f2;for(var _0x5eb649=_0x314461>0x1?void 0x0:_0x314461?io(_0x23314e,_0x3024c4):_0x23314e,_0x34b1ce=_0x352d74[_0x22eb1f(0x1a4)]-0x1,_0x3f5ea9;_0x34b1ce>=0x0;_0x34b1ce--)(_0x3f5ea9=_0x352d74[_0x34b1ce])&&(_0x5eb649=(_0x314461?_0x3f5ea9(_0x23314e,_0x3024c4,_0x5eb649):_0x3f5ea9(_0x5eb649))||_0x5eb649);return _0x314461&&_0x5eb649&&so(_0x23314e,_0x3024c4,_0x5eb649),_0x5eb649;},Re=(_0x48948c,_0xe59926)=>(_0x42be90,_0xde2211)=>_0xe59926(_0x42be90,_0xde2211,_0x48948c);let Ge=class extends _0x4c153b{constructor(_0x25fea9,_0x2df67c,_0x3847e5,_0xc63cc0,_0x1ea835){const _0x31e770=_0x3e92f2;super(),l(this,_0x31e770(0x463),[]),(this[_0x31e770(0x487)]=_0x25fea9,this[_0x31e770(0x1ef)]=_0x2df67c,this[_0x31e770(0x4cc)]=_0x3847e5,this[_0x31e770(0x221)]=_0xc63cc0,this[_0x31e770(0x1bb)]=_0x1ea835,this['_init']());}['_init'](){const _0x292424=_0x3e92f2;this[_0x292424(0x221)][_0x292424(0x28b)][_0x292424(0x407)](_0x8dafd9(this['dispose$']),_0x3bc552(_0x37b78e=>{const _0x15bdd9=_0x292424;if(_0x37b78e){const _0x1a2a54=_0x37b78e[_0x15bdd9(0x352)]()[_0x15bdd9(0x410)]()[_0x15bdd9(0x47a)]();return _0x1d32ee(this['_collabCursorController'][_0x15bdd9(0x235)](_0x1a2a54),this[_0x15bdd9(0x1bb)][_0x15bdd9(0x29c)])[_0x15bdd9(0x407)](_0x4ed52e(([_0x598fc4,_0x121082])=>({'skeleton':_0x37b78e,'cursors':[..._0x598fc4[_0x15bdd9(0x400)]()]['flatMap'](_0x4ca0bb=>({..._0x4ca0bb,'color':_0x121082[_0x4ca0bb[_0x15bdd9(0x26f)]]}))})));}return _0x53ae42({'skeleton':null,'cursors':[]});}))[_0x292424(0x4be)](({skeleton:_0x3b2d06,cursors:_0x547122})=>{const _0x1fede8=_0x292424;this[_0x1fede8(0x22a)](),_0x3b2d06&&this[_0x1fede8(0x312)](_0x3b2d06,_0x547122);});}['_updateCollabCursors'](_0x285f0b,_0x124f6a){const _0x40c384=_0x3e92f2,_0x435fed=this['_getDocObject']();if(_0x435fed==null)return;const {scene:_0x1a1f8b,document:_0x49e0bc}=_0x435fed,_0x54d27e=_0x124f6a[_0x40c384(0x1be)](_0x40ab7a=>new to(_0x40ab7a,_0x1a1f8b,_0x285f0b,_0x49e0bc));this[_0x40c384(0x463)]=_0x54d27e;}[_0x3e92f2(0x22a)](){const _0x1ba823=_0x3e92f2;this[_0x1ba823(0x463)][_0x1ba823(0x1b8)](_0x4a3f08=>_0x4a3f08[_0x1ba823(0x25d)]()),this[_0x1ba823(0x463)]=[];}[_0x3e92f2(0x285)](){const _0x3c9231=_0x3e92f2;return _0x14e6b6(this[_0x3c9231(0x1ef)],this[_0x3c9231(0x4cc)]);}};Ge=no([_0x405ab3(_0x57f2ea[_0x3e92f2(0x325)],Ge),Re(0x0,_0xbbf94a(fe)),Re(0x1,_0x5f1ae0),Re(0x2,_0x5bdf6a),Re(0x3,_0xbbf94a(_0x1e7be0)),Re(0x4,_0xbbf94a(_0x441ca9))],Ge);var ro=Object[_0x3e92f2(0x340)],oo=Object[_0x3e92f2(0x2d2)],ao=(_0x2eee88,_0x57d0d6,_0x3df2c9,_0x228a1e)=>{const _0x39ef11=_0x3e92f2;for(var _0x153564=_0x228a1e>0x1?void 0x0:_0x228a1e?oo(_0x57d0d6,_0x3df2c9):_0x57d0d6,_0x4a3037=_0x2eee88[_0x39ef11(0x1a4)]-0x1,_0x43ffbb;_0x4a3037>=0x0;_0x4a3037--)(_0x43ffbb=_0x2eee88[_0x4a3037])&&(_0x153564=(_0x228a1e?_0x43ffbb(_0x57d0d6,_0x3df2c9,_0x153564):_0x43ffbb(_0x153564))||_0x153564);return _0x228a1e&&_0x153564&&ro(_0x57d0d6,_0x3df2c9,_0x153564),_0x153564;},ut=(_0x5ae973,_0x41922c)=>(_0x37a8f7,_0x4def1f)=>_0x41922c(_0x37a8f7,_0x4def1f,_0x5ae973);let Ze=class{constructor(_0x100fca,_0x462866,_0x42ee03){const _0x11611c=_0x3e92f2;this[_0x11611c(0x292)]=_0x100fca,this[_0x11611c(0x35f)]=_0x462866,this[_0x11611c(0x375)]=_0x42ee03,this[_0x11611c(0x3bd)]();}[_0x3e92f2(0x3bd)](){const _0x2a0a4c=_0x3e92f2;this['_httpService'][_0x2a0a4c(0x4a8)]({'priority':0x1,'interceptor':(_0x1e7ac0,_0x5887b3)=>_0x5887b3(_0x1e7ac0)[_0x2a0a4c(0x407)](_0x4df13e(async _0x10c9ba=>{const _0x14767e=_0x2a0a4c,_0xd76187=_0x10c9ba;if(_0xd76187[_0x14767e(0x306)]===0x191&&window['confirm'](this[_0x14767e(0x375)]['t']('auth.needGotoLoginAlert'))){const _0x23b39c=window[_0x14767e(0x358)](window['location'][_0x14767e(0x270)]);window['location'][_0x14767e(0x270)]=this['_getLoginPath']()+_0x14767e(0x1e4)+_0x23b39c;}return _0xd76187;}))});}[_0x3e92f2(0x1ea)](){const _0x820d18=_0x3e92f2;var _0x35b3fe;return(_0x35b3fe=this[_0x820d18(0x292)][_0x820d18(0x361)](dn))!=null?_0x35b3fe:fn;}};function _0x2c8c(){const _0x80f7c2=['unitID','_getAPIPrefixPath','requireSession','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','fillRule','_remoteChangesetQueue','subscribeEvent','translate(.97)','onlineStatusTitle','LIVESHARE_FETCH_OPERATIONS','_initUnitPermissionChange','unload','getCollabEntity','defs','routeKey','updatePermissionObjEvent','_render','_unitOnClients','onTransformRemoteChangesetByIMECache','SYNCED','_getMergeRange','getCurrentUser','USERS_ENTER','onPointerLeave$','_createHandler','uni.network.url-service','_unitStatus','RemoveRowCommandId','getAncestorScale','_retryConnectingTimer','fillStyle','subunit','next','_anchor','RETRY_CONNECTING_MAX_COUNT','permission.content','apply','424360Fxwirp','_HTTPService','FromArray','ERROR_IMAGE_TYPE','SNAPSHOT_INVALID_SNAPSHOT','string','_disableEditing','enableAuthServer','_textBubble','univer-pro.collaboration-client.single-active-unit-service','startsWith','ws://127.0.0.1:8000/universer-api/comb/connect','className','setItem','RECV','socketService','_anchorDot','values','includes','_unitId','_updateURLWithCurrentState','[SyncedState]:\x20received\x20acknowledgement.','ONLINE','collabStatus.offline','pipe','_collabCursorState$','verdancy600','session.room-full','fetch_missing','message$','_clearRedo','univer-online','2611tgpVoa','getDataModel','sessionStatus','_entities','_clearCollaborationTimeoutTimer','jiqing500','searchParams','_heartbeatTimer','makeDirty','[PendingState]:\x20received\x20rejection.','_cachedData','top','NOT_COLLAB','entries','InsertRangeMoveDownCommandId','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','onTransformIME','onlineStatusIcon','getMemberID','_color','asObservable','getInterceptPoints','HELLO','NOT_FOUND','0\x200\x2016\x2016','batchAllowed','COMPLETION_FINISHED','onMouseMove','prototype','_sendingTimer','_replayCachedMutations','drawWith','getSheetBySheetId','\x20-\x20','VIEW_MAIN','_docStateChangeManagerService','transformMutation','_updateLocalCache','51VmyfCs','roomMembers$','_commentUpdate$','rev','_pendingMutations','onSendChangeset','_localStorageService','getValue','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','width','_hideTimer','pauseCollaboration','AWAITING','append','_injector','none','csRejEvent','snapshot','Univer','syncEditingCollabCursor','_colorIndex','collaboration.single-unit.warning','COLLAB_SUBMIT_CHANGESET_URL','height','SUBMIT_CHANGESET','onload','getRoom','state','collab-text-range-','session.connection-failed','_setupBeforeClosingHandler','COLLAB_WEB_SOCKET_URL','FETCH_MISS','_onConnectionOpen','size','_messageService','_initStatusComponent','_onLocalMutation','CHANGESET_ACK','_handleLeaveEvent','_getRedoStack','SHOULD_CLOSE_CONN','collaboratorID','_queuedRemoteChangesets','OFFLINE','USERS_LEAVE','_cursors','_collaborationController','_handleJoinEvent','catch','submit\x20changeset\x20error!','_transformUndoRedoStack','...','INVALID_ARGUMENT','IDLE','getRenderById','M0\x200H16V16H0z','body','disposeUnit','idSuffix','docStateChange$','override','from','popstate','PENDING','/object/','_members','_document','118cYDYEk','getUnitId','updateCollaborator','YUUMI_URL_COL_OUT_OF_RANGE','_exhaustSavingTask','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','parse','OTHER_CLIENTS_EDITING','JOIN','createCollaborator','1em','open$','userID','FileId','_collabCursorController','isActive','_status$','put','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','[CollaborationSessionService]','_joinRoom','colorChannel1','isArray','1275794pYDfHf','find','_onConnectionFailed','editing\x20status\x20changed\x20to','clear','not_collab','collaborators','roles','_incrementRevisionNumber','_updateState','call','_getUploadFileURL','onCommandExecuted','InsertRowCommandId','_revisionService','_config','update','status$','_urlService','/-/object/list','_decreaseWaiting','_isPermissionRej','INTERNAL_ERROR','_removeRoom','registerHTTPInterceptor','updatePermissionPoint','ERROR_IMAGE','[CollaborationState]:\x20apply\x20error!','_drawAnchor','UNRECOGNIZED','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','HEADER_MENU','fetching\x20missing\x20changesets\x20from\x20','ranges','dispose$','_localeService','unit','actions','lineTo','clearTimeout','removeParam','getWorkbookSelections','getCurrent','_saveTaskMap','loadOfflineData','split','subscribe','_applyRemoteChangeset','selections','getUnitStatus$','changesets','MSG_FOR_ERROR','_fetchMissChangesets','COMPRESS_MUTATION_APPLY','restore','onMissingChangesets','BASE64','_onRecvEvent','_awaitingChangeset','registerRefRange','_renderManagerService','sheetID','code','_initCloseConn','getRangePointData','_state$','row','_drawRange','path','_rescheduleHeartbeatEvent','create','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','getResourcesRequest','currentColor','Error','startRow','cmd','removeMember','all','length','_http','_entityInit$','sheets','_scheduleTimestamp','_type','[OfflineState]:\x20received\x20changeset.','_session','xlink:href','close','_onRefRangeChange','eventID','[DataLoaderController]','Warning','univer-online-status','pending','_hovered','_schedule','UNIVER_UNKNOWN','_range','forEach','addImageSourceCache','_getSheetObject','_themeService','_acknowledgedAwaitingChangeset','_clearTimeoutTimer','map','_getAnchorBounding','resend','PERMISSION_REJ','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','UNIVER_SLIDE','COMMENT_UPDATE','newValue','_getSignURL','_toggleOnline','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_collaborationTimeoutTimer','/-/object/-/batch_allowed','LIVESHARE_TERMINATE','getCurrentUnitForType','min','NEW_CHANGESETS','58257AcoIqh','random','current','commentUpdate$','_disabled','_loadSheet','mutations','roomMembers','_socket$','objectID','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','ACTIVE_UNIT_EVENT_CHANNEL','_setupSubUnitSync','_shapes','clearInterval','createElement','createInstance','HEARTBEAT_INTERVAL','updateCursorEvent','replaceState','_collaborationSessionService','?url=','ERROR_EXCEED_SIZE','getOffsetConfig','/unit/','Starting','_onJoinRoomEvent','_getLoginPath','liveShareOperation','tag','_replaceFileID','_beforeCloseService','_univerInstanceService','transformIMECache','/universer-api/snapshot/','_commandService','_hover','_send','column','UUID','loadDoc','_collabSessionService','_tryEnsureSocket','SUCCUSS','getSheetId','history','onPointerEnter$','_getCurrentRevision','fillText','_cursorInfo$','CHANGESET_REJ','_sendHeartbeat','_syncEditingCollabCursor','{fileID}','skeleton','baseRev','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','data','round','endColumn','_refRangeService','_scheduleReconnection','stringify','[CollaborationEntity]','Ready','setUndoRedoMutationParamsCache','pluginName','url(#off-line-single_clip0_910_343)','unshift','resolve','doc.mutation.rich-text-editing','[CollaborationSessionService]:\x20socket\x20error','_waitCount','max','_checkMissing','_onMessage','focused$','csAckEvent','assignAColorForMemberID','transformStack\x20failed!','_snapshotServerService','objectActions','_docSkeletonManagerService','_showConflictNotification','_executeRemoteChangeset','PERMISSION_DENIED','leaveEvent','UPDATE_CURSOR','clipPath','CONNECTOR_DATA_TOO_LARGE','send','_removeCollabCursors','/rev/','UNKNOWN_CMD','11656OrCWOV','_transformService','objectType','executeCommand','defIds','getCurrentRevForDocument','sheetId','UNAUTHENTICATED','getCollabCursors$','_onConflict','_loadDoc','_onFetchMissResult','toggleOnline','LOCAL_CACHE_INTERVAL','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','error','YUUMI_UNABLE_LOAD_URL','_timeoutTimer','saveChangeset','selection','UNIVER_SHEET','transformMutationsWithChangeset','_selfUnitIDs','updateMember','toRgbString','_transformPreviousActiveRange','APPLY_PERMISSION_DENIED','rgba(255,\x20255,\x20255,\x200.01)','_snapshotService','_startDocCollabCursor','_submitChangeset','_createInitialStateImpl','startColumn','getUndoRedoMutationParamsCache','APPLY_REJECT','transformUndoRedo','transform','location','cursorInfo','LICENSE_EXPORT_SIZE_EXCEEDED','collaMsg','[CollaborationSession]','onRemoteRej','offline','UniverIcon','MUTATION','_ws','SEND_CHANGESET_TIMEOUT','dispose','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','objects','icon','_onCursorDelete','_onRemoteRejected','[SyncedState]:\x20received\x20rejection.','toString','deepClone','hovered','arc','_initStatusListener','resourceIDs','image/png','_onCombEvent','DEFAULT_FILE_NAME','_startSheetCollabCursor','_socketReady','color','href','updateOfflineData','labelPosition','_imageSourceCache','_clearLocalCache','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_toggleOffline','336tYqJeK','measureText','_scene','LICENSE_IMPORT_SIZE_EXCEEDED','_logService','setCurrentUser','_clearOtherTimers','_name','off-line-single_clip0_910_343','disposeWithMe','APPLY_REVISION_CONFILICT','incrementRevForDocument','getViewport','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_getDocObject','_getCtorByUniverType','addObject','error$','_labelPosition','_online','currentSkeleton$','svg','\x20to\x20','_socketMessageSubscription','_updateStatus','_transformRemoteChangesetByIMECache','_getSaveTimeout','_configService','_onRemoteChangeset','getMergeData','COMPRESS_MUTATION_SEND','_removeClearOtherTimer','infoRsp','roomInfos','_clearHeartbeatTimer','HEARTBEAT','originalMeta','currentTheme$','conflict','_memberService','session','#FFF','15808FYSrSv','UNIVER_COLLABORATION_CLIENT_PLUGIN','transformSelections','collaborationUniverTypes','conflict.content','getUnhiddenWorksheets','_docTransformSelectionsService','/universer-api/authz','saveImage','_onUserLeave','connection\x20error','socket\x20close','_colorAssignService','LICENSE_MAX_UNITS_EXCEEDED','_socketService','\x0aAfter:\x20','_unitID','awaitingChangeset','with','onRemoteAck','JOINING','disableLocalCache','getUnitType','range','_roomMembers$','_assignedColors','_notificationService','set','_docSkeleton','file','registerComponent','Unknown\x20user','onStateChange','name','transformChangesets','FETCH_MISSING','filter','save','event$','UNKNOWN_CODE','getTypeOfUnitAdded$','_clearUndo','push','enableLocalCache','univer-pro.collaboration-client-socket-service','AWAITING_WITH_PENDING','_transitionLocked','setShapeProps','99TQhWzz','getOwnPropertyDescriptor','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','propertyIsEnumerable','get','LIVESHARE_OPERATION','getActiveSheet','4476gEPaSb','_localCacheService','onlyLocal','some','_change$','NO_OTHER_CLIENTS_EDITING','/resources','\x20in\x20_schedule.','_waitForHeartbeatResponse','UNIVER_DOC','getOwnPropertySymbols','univer-online-status-title','complete','reject','_createSocket','c1Prime','image/bmp','c2Prime','/universer-api/oidc/authpage','getParam','CONFLICT','_draw','displayName','cursorInfo$','_transformSelections','debug','storage','_userManagerService','0\x200\x2017\x2016','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','concat','_startCollaboration','post','font','m2Prime','_getAPIPrefix','collabStatus.fetchMiss','contains','RETRY_CONNECTING_INTERVAL','/allowed','awaiting_with_pending','getTime','_getSendChangesetTimeout','liveShareNewHost','_undoRedoService','status','_commentService','_syncEditingCollabCursorService','joinEvent','substring','getSheetBlock','_sheetTransformSelectionsService','_handler','isPermissionRej','_sheetSkeletonManagerService','interceptor','getMember','_updateCollabCursors','onTransformSelections','getVpScrollXYInfoByPosToVp','div','_onRemoteACK','setWaitCount','_getSnapshotAPIPrefix','getTypeOfUnitDisposed$','subUnitId','APPLY_NON_SEQUENTIAL_REVISION','has','then','getCellPositionByOffset','url(#on-line-single_clip0_910_349)','CHANGESET_REVISION_CONFILICT','state$','transformRemoteChangeset','_transformStack','extend','Steady','close$','findNodePositionByCharIndex','indexOf','_id','_singleActiveUnitService','_scheduleHeartbeat','conflict.title','saveSheetBlock','_socket','INGEST','collabStatus.synced','_compressMutationService','_updateLocalCursor','evenodd','HEARTBEAT_TIMEOUT','LIVESHARE_REQUEST_HOST','appendMutation','_retryCount','target','loadSheet','_onCursorUpdate','addEventListener','hide','bottom','MoveRangeCommandId','setTimeout','defineProperty','RemoveColCommandId','type','reverse','getCurrentSelections','editingUnit','getItem','session.will-retry','workbook','_saveCache','online','_substituteUndoStack','[OfflineState]:\x20received\x20rejection.','552RbuWMp','_collaborationPaused','initWorkbookPermissionChange','addObjects','InsertRangeMoveRightCommandId','getViewModel','allowed','_handleHeartbeatEvent','_createInitialState','json','onPointerMove$','encodeURIComponent','6618130VKuQWI','memberID','/role','[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.','add','_init','_httpService','collaboration.closeRoom','getConfig','collabCursorState$','SNAPSHOT_HAS_BEEN_REMOVED','fill','/fetchmissing?from=','session.collaboration-timeout','text','_docTransformIMECacheService','onSyncEditingCollabCursor','_onUserJoin','EXCHANGE_SIGN_URL_SERVER_URL_KEY','urlChange$','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','unknown','delete','list','textRanges','_initModules','toggleOffline','PSEUDO_FETCH_MISSING_RESULT','localeService','save\x20fail\x20reason\x20is\x20','_sessionStatus$','_scheduleClearOtherTimer','reduce','_sendHeartbeatTimer','DeleteRangeMoveLeftCommandId','_lastPointer','createSocket','permission.title','[OfflineState]:\x20received\x20acknowledgement.','getFocusedUnit','TOO_MANY_REQUESTS','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','result','_exhaustRemoteChangesetQueue','setParam','_substituteRedoStack','_updateSubUnitFromURLParams','change$','_unlockTransition','_lockTransition','patch','[CollaborationUndoRedoService]','univerjs-icon\x20univerjs-icon-','_sessions','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','blue400','m1Prime','collabStatus.notCollab','LEAVE','params','socket\x20open.','children','sessionStatus$','_roomMembers','symbol','black','/object','OffLineSingle','LICENSE_DISTRO_REJECTED','fetchMissingChangesets','replaceTextRanges','_event$','_transformIMECache','getImage','/collaborator','FAIL','_scheduleSaving','_state','show','url','_getUndoStack','fetchThroughInterceptors','assign','Error\x20on\x20receiving\x20event','_clearScheduledTask','unitId','univer-online-status-icon','unsubscribe','getImageSourceCache','awaiting','_permissionService','LIVESHARE_NEW_HOST','onCommentUpdate','activeSheet$','saveSnapshot','hasOwnProperty','onRemoteChangeset','collab-text-anchor-','permissionRejEvent','setInterval','init','UPDATE_PERMISSION_OBJ','_uiPartsService','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','attrs','compose','_cursor','generateRandomId','_transformUndoredo','_getScale','_ensureSubject','UNDEFINED','_handleEvent'];_0x2c8c=function(){return _0x80f7c2;};return _0x2c8c();}Ze=ao([ut(0x0,_0x523c70),ut(0x1,_0xbbf94a(_0x50f6b0)),ut(0x2,_0xbbf94a(_0x6789ab))],Ze);var co=Object[_0x3e92f2(0x340)],ho=Object[_0x3e92f2(0x2d2)],lo=(_0x570d7a,_0x483366,_0x44cb9b,_0x50105d)=>{for(var _0x387138=_0x50105d>0x1?void 0x0:_0x50105d?ho(_0x483366,_0x44cb9b):_0x483366,_0x241482=_0x570d7a['length']-0x1,_0x455cde;_0x241482>=0x0;_0x241482--)(_0x455cde=_0x570d7a[_0x241482])&&(_0x387138=(_0x50105d?_0x455cde(_0x483366,_0x44cb9b,_0x387138):_0x455cde(_0x387138))||_0x387138);return _0x50105d&&_0x387138&&co(_0x483366,_0x44cb9b,_0x387138),_0x387138;},ns=(_0x341b36,_0x5bb30d)=>(_0xcee6d0,_0x366aa2)=>_0x5bb30d(_0xcee6d0,_0x366aa2,_0x341b36);const _o='AUTHZ_URL_KEY',uo=_0x3e92f2(0x2a8);let Tt=class{constructor(_0x5e95af,_0x25663f){const _0x18facd=_0x3e92f2;this[_0x18facd(0x3f0)]=_0x5e95af,this[_0x18facd(0x292)]=_0x25663f;}[_0x3e92f2(0x3cb)](){const _0x14f268=_0x3e92f2;var _0x114b6e;return(_0x114b6e=this[_0x14f268(0x292)][_0x14f268(0x361)](_o))!=null?_0x114b6e:uo;}async[_0x3e92f2(0x19b)](_0x20623e){const _0x5cc4e8=_0x3e92f2,_0x26de4b=this[_0x5cc4e8(0x3cb)]()+'/'+_0x20623e[_0x5cc4e8(0x22f)]+_0x5cc4e8(0x39b);return(await this[_0x5cc4e8(0x3f0)][_0x5cc4e8(0x2f9)](_0x26de4b,{'body':_0x20623e}))[_0x5cc4e8(0x46e)][_0x5cc4e8(0x1d8)]||'';}async[_0x3e92f2(0x370)](_0x3fcb16){const _0x34b8d7=_0x3e92f2,_0x243304=this[_0x34b8d7(0x3cb)]()+_0x34b8d7(0x4a3);return(await this['_HTTPService'][_0x34b8d7(0x2f9)](_0x243304,{'body':_0x3fcb16}))[_0x34b8d7(0x46e)][_0x34b8d7(0x25f)];}async[_0x3e92f2(0x4a0)](_0x131a2d){const _0xc717b=_0x3e92f2,_0x4ed60c=this[_0xc717b(0x3cb)]()+'/'+_0x131a2d['objectType']+_0xc717b(0x476)+_0x131a2d[_0xc717b(0x1d8)];await this['_HTTPService'][_0xc717b(0x48a)](_0x4ed60c,{'body':_0x131a2d});}async[_0x3e92f2(0x353)](_0xbc0e83){const _0x8ec753=_0x3e92f2,_0x6c812d=this[_0x8ec753(0x3cb)]()+'/'+_0xbc0e83[_0x8ec753(0x22f)]+_0x8ec753(0x476)+_0xbc0e83[_0x8ec753(0x1d8)]+_0x8ec753(0x300);return(await this[_0x8ec753(0x3f0)][_0x8ec753(0x2f9)](_0x6c812d,{'body':_0xbc0e83}))[_0x8ec753(0x46e)][_0x8ec753(0x4b5)];}async[_0x3e92f2(0x428)](_0x2889de){const _0x315608=_0x3e92f2,_0x1043a7=this[_0x315608(0x3cb)]()+_0x315608(0x1ca);return(await this[_0x315608(0x3f0)][_0x315608(0x2f9)](_0x1043a7,{'body':{'requests':_0x2889de}}))[_0x315608(0x46e)][_0x315608(0x220)];}async['listRoles'](_0x59a2e1){const _0x4ba7a1=_0x3e92f2,_0x45f5e6=this['_getAPIPrefixPath']()+'/'+_0x59a2e1[_0x4ba7a1(0x22f)]+_0x4ba7a1(0x35b),_0x4847d3=await this[_0x4ba7a1(0x3f0)][_0x4ba7a1(0x2f9)](_0x45f5e6,{'body':_0x59a2e1});return{'roles':_0x4847d3[_0x4ba7a1(0x46e)][_0x4ba7a1(0x497)],'actions':_0x4847d3['body'][_0x4ba7a1(0x4b5)]};}async['deleteCollaborator'](_0x5385e7){const _0x5400ad=_0x3e92f2,_0x19abc1=this[_0x5400ad(0x3cb)]()+_0x5400ad(0x3a3);await this[_0x5400ad(0x3f0)]['delete'](_0x19abc1,{'params':{'collaboratorID':_0x5385e7[_0x5400ad(0x45f)],'objectID':_0x5385e7[_0x5400ad(0x1d8)],'unitID':_0x5385e7[_0x5400ad(0x3ca)]}});}async[_0x3e92f2(0x47b)](_0x14d295){const _0x17ca38=_0x3e92f2,_0xf68cd5=this[_0x17ca38(0x3cb)]()+_0x17ca38(0x3a3);await this[_0x17ca38(0x3f0)][_0x17ca38(0x38b)](_0xf68cd5,{'body':_0x14d295});}async[_0x3e92f2(0x482)](_0x441f16){const _0x5eda20=_0x3e92f2,_0x54fdd7=this['_getAPIPrefixPath']()+_0x5eda20(0x3a3);await this[_0x5eda20(0x3f0)]['post'](_0x54fdd7,{'body':_0x441f16});}async['listCollaborators'](_0x1dc883){const _0x865b1c=_0x3e92f2,_0x2dacd1=this[_0x865b1c(0x3cb)]()+_0x865b1c(0x3a3);return(await this['_HTTPService'][_0x865b1c(0x2d5)](_0x2dacd1,{'params':{'objectID':_0x1dc883['objectID'],'unitID':_0x1dc883[_0x865b1c(0x3ca)]}}))[_0x865b1c(0x46e)][_0x865b1c(0x496)];}async['putCollaborators'](_0x30ac0c){const _0x205b63=_0x3e92f2,_0x5cd67b=this[_0x205b63(0x3cb)]()+_0x205b63(0x3a3);await this[_0x205b63(0x3f0)][_0x205b63(0x48a)](_0x5cd67b,{'body':_0x30ac0c});}};Tt=lo([ns(0x0,_0xbbf94a(_0x50f6b0)),ns(0x1,_0xbbf94a(_0x523c70))],Tt);var fo=Object['defineProperty'],mo=Object[_0x3e92f2(0x2d2)],go=(_0x51ea18,_0x4d2544,_0x1f08a4,_0x33f4b3)=>{const _0x11a415=_0x3e92f2;for(var _0x4b766c=_0x33f4b3>0x1?void 0x0:_0x33f4b3?mo(_0x4d2544,_0x1f08a4):_0x4d2544,_0x2b61f2=_0x51ea18[_0x11a415(0x1a4)]-0x1,_0x2b167b;_0x2b61f2>=0x0;_0x2b61f2--)(_0x2b167b=_0x51ea18[_0x2b61f2])&&(_0x4b766c=(_0x33f4b3?_0x2b167b(_0x4d2544,_0x1f08a4,_0x4b766c):_0x2b167b(_0x4b766c))||_0x4b766c);return _0x33f4b3&&_0x4b766c&&fo(_0x4d2544,_0x1f08a4,_0x4b766c),_0x4b766c;},rs=(_0xd7dd6a,_0x1c63d4)=>(_0x18d1e0,_0x27700e)=>_0x1c63d4(_0x18d1e0,_0x27700e,_0xd7dd6a);const So=[_0x3e92f2(0x26a),'image/jpeg','image/jpg','image/gif',_0x3e92f2(0x2e8)],vo=0x5*0x400*0x400,po=_0x3e92f2(0x3cd),Io='/universer-api/stream/file/upload',Eo=_0x3e92f2(0x36b),Co='/universer-api/file/{fileID}/sign-url';let Rt=class{constructor(_0x4037e6,_0x5da858){const _0x557dcf=_0x3e92f2;l(this,'_waitCount',0x0),l(this,_0x557dcf(0x2dc),new _0x440796()),l(this,_0x557dcf(0x388),this[_0x557dcf(0x2dc)]),l(this,_0x557dcf(0x273),new Map()),(this['_httpService']=_0x4037e6,this[_0x557dcf(0x292)]=_0x5da858);}[_0x3e92f2(0x317)](_0x2527fb){this['_waitCount']=_0x2527fb,this['_change$']['next'](_0x2527fb);}[_0x3e92f2(0x3b1)](_0x640b29,_0x3758be){const _0x4903e0=_0x3e92f2;if(_0x3758be===_0x1f9734[_0x4903e0(0x4c8)]){const _0x48841d=new Image();return _0x48841d['src']=_0x640b29,_0x48841d;}return this[_0x4903e0(0x273)][_0x4903e0(0x2d5)](_0x640b29);}[_0x3e92f2(0x1b9)](_0x161e67,_0x446f94,_0x2d98dd){const _0x11b53f=_0x3e92f2;_0x446f94===_0x1f9734[_0x11b53f(0x4c8)]||_0x2d98dd==null||this['_imageSourceCache'][_0x11b53f(0x2bc)](_0x161e67,_0x2d98dd);}async[_0x3e92f2(0x3a2)](_0x35653b){const _0x4c348f=_0x3e92f2;try{const _0xf8a9ae=this['_replaceFileID'](this[_0x4c348f(0x1c6)](),''+_0x35653b),_0xdd709=(await this[_0x4c348f(0x35f)][_0x4c348f(0x2d5)](_0xf8a9ae))[_0x4c348f(0x46e)];return _0xdd709[_0x4c348f(0x23c)]&&_0xdd709[_0x4c348f(0x23c)][_0x4c348f(0x193)]===Rs['OK']?Promise[_0x4c348f(0x214)](_0xdd709[_0x4c348f(0x3a8)]):Promise[_0x4c348f(0x2e5)](_0xdd709[_0x4c348f(0x23c)]);}catch(_0xc9943f){return Promise[_0x4c348f(0x2e5)](_0xc9943f);}}async[_0x3e92f2(0x2a9)](_0x47ce27){const _0x2413ca=_0x3e92f2;let _0x2885c3='';if(!So[_0x2413ca(0x401)](_0x47ce27[_0x2413ca(0x342)]))return this[_0x2413ca(0x4a4)](),Promise[_0x2413ca(0x2e5)](new Error(_0x1df9e0[_0x2413ca(0x3f2)]));if(_0x47ce27[_0x2413ca(0x457)]>vo)return this[_0x2413ca(0x4a4)](),Promise[_0x2413ca(0x2e5)](new Error(_0x1df9e0[_0x2413ca(0x1e5)]));try{const _0x4c7bbd=new FormData();_0x4c7bbd[_0x2413ca(0x442)](_0x2413ca(0x2be),_0x47ce27);const _0x3ae363=this[_0x2413ca(0x49b)]()+'?size='+_0x47ce27['size'][_0x2413ca(0x264)](),_0x262b94=await(await fetch(_0x3ae363,{'method':'POST','body':_0x4c7bbd}))[_0x2413ca(0x356)]();if(typeof _0x262b94['FileId']!=_0x2413ca(0x3f4))return this[_0x2413ca(0x4a4)](),Promise[_0x2413ca(0x2e5)](new Error(_0x1df9e0[_0x2413ca(0x4aa)]));_0x2885c3=_0x262b94[_0x2413ca(0x486)];}catch{return this['_decreaseWaiting'](),Promise[_0x2413ca(0x2e5)](new Error(_0x1df9e0[_0x2413ca(0x4aa)]));}return new Promise((_0x1a1c3d,_0x44b5a9)=>{const _0x10ae56=_0x2413ca,_0x2726d1=new FileReader();_0x2726d1['readAsDataURL'](_0x47ce27),_0x2726d1[_0x10ae56(0x44e)]=_0x5b6f69=>{const _0x263b2b=_0x10ae56;var _0x50be0f;const _0x1941cd=(_0x50be0f=_0x5b6f69[_0x263b2b(0x338)])==null?void 0x0:_0x50be0f[_0x263b2b(0x383)];if(_0x1941cd==null){this[_0x263b2b(0x4a4)](),_0x44b5a9(new Error(_0x1df9e0['ERROR_IMAGE']));return;}const _0x29daca=_0x545ca3[_0x263b2b(0x3c4)](0x6);_0x1a1c3d({'imageId':_0x29daca,'imageSourceType':_0x1f9734[_0x263b2b(0x1f6)],'source':_0x2885c3,'base64Cache':_0x1941cd,'status':_0x1df9e0[_0x263b2b(0x1fa)]}),this[_0x263b2b(0x4a4)]();};});}[_0x3e92f2(0x49b)](){const _0x276353=_0x3e92f2;var _0x1ee034;return(_0x1ee034=this[_0x276353(0x292)][_0x276353(0x361)](po))!=null?_0x1ee034:Io;}[_0x3e92f2(0x1c6)](){const _0x2ee27b=_0x3e92f2;var _0x4ed926;return(_0x4ed926=this[_0x2ee27b(0x292)][_0x2ee27b(0x361)](Eo))!=null?_0x4ed926:Co;}[_0x3e92f2(0x1ed)](_0x21c3ad,_0x304e41){const _0x1c26c3=_0x3e92f2;return _0x21c3ad['replace'](_0x1c26c3(0x204),_0x304e41);}['_decreaseWaiting'](){const _0x4dd78b=_0x3e92f2;this[_0x4dd78b(0x217)]-=0x1,this[_0x4dd78b(0x2dc)][_0x4dd78b(0x3ea)](this[_0x4dd78b(0x217)]);}};Rt=go([rs(0x0,_0xbbf94a(_0x50f6b0)),rs(0x1,_0x523c70)],Rt);var bo=Object[_0x3e92f2(0x340)],To=Object[_0x3e92f2(0x2d2)],Ro=(_0x416b0d,_0x38f4f0,_0x256132,_0x3edab1)=>{const _0x1dcb8a=_0x3e92f2;for(var _0x3b5531=_0x3edab1>0x1?void 0x0:_0x3edab1?To(_0x38f4f0,_0x256132):_0x38f4f0,_0x6b6fe4=_0x416b0d[_0x1dcb8a(0x1a4)]-0x1,_0x16b0b3;_0x6b6fe4>=0x0;_0x6b6fe4--)(_0x16b0b3=_0x416b0d[_0x6b6fe4])&&(_0x3b5531=(_0x3edab1?_0x16b0b3(_0x38f4f0,_0x256132,_0x3b5531):_0x16b0b3(_0x3b5531))||_0x3b5531);return _0x3edab1&&_0x3b5531&&bo(_0x38f4f0,_0x256132,_0x3b5531),_0x3b5531;},Oe=(_0x29499a,_0x36a137)=>(_0x26d4ee,_0x1334bc)=>_0x36a137(_0x26d4ee,_0x1334bc,_0x29499a);let Ye=class extends _0x4c153b{constructor(_0x2a7991,_0x5a00d6,_0x5de316,_0x5ae8c4,_0x1d037f){const _0x1f33df=_0x3e92f2;super(),this['_injector']=_0x2a7991,this[_0x1f33df(0x1ef)]=_0x5a00d6,this[_0x1f33df(0x3b3)]=_0x5de316,this[_0x1f33df(0x1e3)]=_0x5ae8c4,this['_localeService']=_0x1d037f,this[_0x1f33df(0x3d4)](),this[_0x1f33df(0x194)]();}[_0x3e92f2(0x194)](){const _0x209bd1=_0x3e92f2,_0x4eacc0=async _0x452238=>{const _0x62ef46=_0x4256;(await this[_0x62ef46(0x1e3)][_0x62ef46(0x3cc)](_0x452238))[_0x62ef46(0x2c7)][_0x62ef46(0x407)](_0x5e91b7(_0x1d0024=>_0x1d0024['eventID']===_0x34e231[_0x62ef46(0x45e)]),_0x8dafd9(this[_0x62ef46(0x4b2)]))[_0x62ef46(0x4be)](_0x23b8c5=>{const _0x23344a=_0x62ef46,_0x4c967d=_0x23b8c5,{reason:_0x5c7fda}=_0x4c967d[_0x23344a(0x208)];this[_0x23344a(0x443)][_0x23344a(0x2d5)](_0x5cfd22)[_0x23344a(0x3a7)]({'type':_0x4f4f06[_0x23344a(0x19f)],'content':this[_0x23344a(0x4b3)]['t'](_0x23344a(0x360))+'('+_0x5c7fda+')'}),this[_0x23344a(0x3b3)][_0x23344a(0x4a9)](new _0xd881f1(_0x452238)['id'],!0x1);});};_0x2b9a75(this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x41ddf6[_0x209bd1(0x241)]),this[_0x209bd1(0x1ef)][_0x209bd1(0x2c9)](_0x41ddf6[_0x209bd1(0x2e1)]))[_0x209bd1(0x407)](_0x4ed52e(_0x3af44e=>_0x3af44e[_0x209bd1(0x47a)]()),_0x5e91b7(_0x3a3a26=>!_0x3ee33a(_0x3a3a26)),_0x8dafd9(this[_0x209bd1(0x4b2)]))[_0x209bd1(0x4be)](_0x4ce865=>{_0x4eacc0(_0x4ce865);});}[_0x3e92f2(0x3d4)](){const _0xa3a753=_0x3e92f2,_0x2a83c9=async _0x26c08d=>{const _0x581daa=_0x4256;(await this[_0x581daa(0x1e3)]['requireSession'](_0x26c08d))[_0x581daa(0x2c7)][_0x581daa(0x407)](_0x5e91b7(_0x3ce281=>_0x3ce281[_0x581daa(0x1af)]===_0x34e231['UPDATE_PERMISSION_OBJ']),_0x8dafd9(this['dispose$']))[_0x581daa(0x4be)](_0x59fa80=>{const _0xdd0cca=_0x581daa,_0x27aecf=_0x59fa80,{objectId:_0x463716}=_0x27aecf['data'];_0x463716===_0x26c08d&&this[_0xdd0cca(0x443)][_0xdd0cca(0x2d5)](_0x368f1a)[_0xdd0cca(0x34f)](_0x26c08d);});};_0x2b9a75(this[_0xa3a753(0x1ef)][_0xa3a753(0x2c9)](_0x41ddf6[_0xa3a753(0x241)]),this['_univerInstanceService'][_0xa3a753(0x2c9)](_0x41ddf6[_0xa3a753(0x2e1)]))['pipe'](_0x4ed52e(_0x4cb038=>_0x4cb038[_0xa3a753(0x47a)]()),_0x5e91b7(_0x343201=>!_0x3ee33a(_0x343201)),_0x8dafd9(this['dispose$']))[_0xa3a753(0x4be)](_0xf637d=>{_0x2a83c9(_0xf637d);});}};Ye=Ro([_0x405ab3(_0x57f2ea[_0x3e92f2(0x1e8)],Ye),Oe(0x0,_0xbbf94a(_0xa8f435)),Oe(0x1,_0x5f1ae0),Oe(0x2,_0x4acf08),Oe(0x3,_0xbbf94a(ge)),Oe(0x4,_0xbbf94a(_0x6789ab))],Ye);var $s=Object[_0x3e92f2(0x340)],Oo=Object[_0x3e92f2(0x2d2)],Do=(_0x4f4d01,_0x5b5a44,_0x346177)=>_0x5b5a44 in _0x4f4d01?$s(_0x4f4d01,_0x5b5a44,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x346177}):_0x4f4d01[_0x5b5a44]=_0x346177,wo=(_0xc5b2bc,_0x2d30f3,_0x2b7c2f,_0x3ba505)=>{const _0x2df571=_0x3e92f2;for(var _0x33a626=_0x3ba505>0x1?void 0x0:_0x3ba505?Oo(_0x2d30f3,_0x2b7c2f):_0x2d30f3,_0x455946=_0xc5b2bc[_0x2df571(0x1a4)]-0x1,_0x29cffd;_0x455946>=0x0;_0x455946--)(_0x29cffd=_0xc5b2bc[_0x455946])&&(_0x33a626=(_0x3ba505?_0x29cffd(_0x2d30f3,_0x2b7c2f,_0x33a626):_0x29cffd(_0x33a626))||_0x33a626);return _0x3ba505&&_0x33a626&&$s(_0x2d30f3,_0x2b7c2f,_0x33a626),_0x33a626;},os=(_0xa5f16e,_0x3cdad1)=>(_0x3e53ce,_0x382649)=>_0x3cdad1(_0x3e53ce,_0x382649,_0xa5f16e),Po=(_0x574cfb,_0x57c5dd,_0x34f541)=>Do(_0x574cfb,_0x57c5dd+'',_0x34f541);const No=_0x3e92f2(0x2a2);let Ot=class extends _0x5e7441{constructor(_0x4f9ad8,_0x2124a7,_0x2c1364){const _0x365e50=_0x3e92f2;super(),this['_config']=_0x4f9ad8,this[_0x365e50(0x27b)]=_0x2124a7,this[_0x365e50(0x443)]=_0x2c1364;}['onStarting'](_0x4a7332){const _0x350a97=_0x3e92f2;var _0x310ecd,_0x3e056f,_0x52ec86,_0x48f0ef,_0x4b3b21;_0x4a7332['has'](_0x1e106e)&&this[_0x350a97(0x27b)][_0x350a97(0x23c)]('[UniverCollaborationClientPlugin]',_0x350a97(0x38f));let _0x576644=[[_0x1e106e,{'useClass':bt}],[ge],[Lt],[_0x50f6b0],[Ls,{'useClass':zr}],[ne],[D],[_0x412516],[ze],[Je],[Xe],[yt],[Ze],[Ds],[Ye],[Os,{'useClass':(_0x3e056f=(_0x310ecd=this[_0x350a97(0x49f)])==null?void 0x0:_0x310ecd[_0x350a97(0x3fe)])!=null?_0x3e056f:gt}],[_0x41641e,{'useClass':_0x4fc2a5}],[_0x4e0f91,{'useClass':Ct}],[_0x309336,{'useClass':Tt}],[_0xb0775,{'useClass':Rt}],[De],[ke],[Be],[We],[fe]];(_0x52ec86=this['_config'])!=null&&_0x52ec86['enableSingleActiveInstanceLock']&&_0x576644['push']([et,{'useClass':Nn}]),((_0x48f0ef=this['_config'])==null?void 0x0:_0x48f0ef[_0x350a97(0x2a4)])==null||this['_config'][_0x350a97(0x2a4)][_0x350a97(0x401)](_0x41ddf6[_0x350a97(0x241)])?_0x576644['push']([Ve]):this[_0x350a97(0x49f)]['collaborationUniverTypes'][_0x350a97(0x401)](_0x41ddf6[_0x350a97(0x2e1)])&&_0x576644[_0x350a97(0x2cb)]([Ge]),_0x576644=_0x2625cc(_0x576644,(_0x4b3b21=this[_0x350a97(0x49f)])==null?void 0x0:_0x4b3b21[_0x350a97(0x472)]),_0x576644[_0x350a97(0x1b8)](_0x1a56a1=>_0x4a7332[_0x350a97(0x35d)](_0x1a56a1)),_0x4a7332[_0x350a97(0x2d5)](_0x50f6b0)[_0x350a97(0x4a8)]({'priority':0x14,'interceptor':_0x43aece({'maxParallel':0x6})}),this[_0x350a97(0x372)]();}[_0x3e92f2(0x372)](){const _0x38b355=_0x3e92f2;var _0x1379de,_0x319bcf;(_0x1379de=this[_0x38b355(0x49f)])!=null&&_0x1379de['enableOfflineEditing']||this[_0x38b355(0x443)][_0x38b355(0x2d5)](D)['disableLocalCache'](),(_0x319bcf=this['_config'])!=null&&_0x319bcf[_0x38b355(0x3f6)]&&this[_0x38b355(0x443)][_0x38b355(0x2d5)](Ze);}};Po(Ot,_0x3e92f2(0x211),No),Ot=wo([_0x35cc39(_0x5d8040),os(0x1,_0x46d807),os(0x2,_0xbbf94a(_0xa8f435))],Ot);export{_o as AUTHZ_URL_KEY,Tt as AuthzIoHttpService,_n as COLLAB_SUBMIT_CHANGESET_URL_KEY,en as COLLAB_WEB_SOCKET_URL_KEY,De as CollaborationController,St as CollaborationSession,ge as CollaborationSessionService,gt as CollaborationSocketService,P as CollaborationStatus,Mr as CollaborationStatusDisplay,Ds as CommentService,ke as DataLoaderController,Be as DesktopCollaborationStatusDisplayController,sn as HEARTBEAT_INTERVAL_KEY,bs as HEARTBEAT_TIMEOUT_KEY,Os as ICollaborationSocketService,Ls as IURLService,hn as LOCAL_CACHE_INTERVAL_KEY,dn as LOGIN_URL_KEY,D as LocalCacheService,Zi as SEND_CHANGESET_TIMEOUT_KEY,Ji as SNAPSHOT_SERVER_URL_KEY,qi as SNAPSHOT_URL_KEY,de as SessionStatus,Ot as UniverCollaborationClientPlugin,zr as WebURLService,pn as deserializeToCombResponse,In as serializeCombRequest};
|