@univerjs-pro/collaboration-client 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -1
  16. package/lib/es/index.js +1 -1
  17. package/lib/es/locale/ca-ES.js +1 -1
  18. package/lib/es/locale/en-US.js +1 -1
  19. package/lib/es/locale/es-ES.js +1 -1
  20. package/lib/es/locale/fa-IR.js +1 -1
  21. package/lib/es/locale/fr-FR.js +1 -1
  22. package/lib/es/locale/ja-JP.js +1 -1
  23. package/lib/es/locale/ko-KR.js +1 -1
  24. package/lib/es/locale/ru-RU.js +1 -1
  25. package/lib/es/locale/sk-SK.js +1 -1
  26. package/lib/es/locale/vi-VN.js +1 -1
  27. package/lib/es/locale/zh-CN.js +1 -1
  28. package/lib/es/locale/zh-TW.js +1 -1
  29. package/lib/facade.js +1 -1
  30. package/lib/index.js +1 -1
  31. package/lib/locale/ca-ES.js +1 -1
  32. package/lib/locale/en-US.js +1 -1
  33. package/lib/locale/es-ES.js +1 -1
  34. package/lib/locale/fa-IR.js +1 -1
  35. package/lib/locale/fr-FR.js +1 -1
  36. package/lib/locale/ja-JP.js +1 -1
  37. package/lib/locale/ko-KR.js +1 -1
  38. package/lib/locale/ru-RU.js +1 -1
  39. package/lib/locale/sk-SK.js +1 -1
  40. package/lib/locale/vi-VN.js +1 -1
  41. package/lib/locale/zh-CN.js +1 -1
  42. package/lib/locale/zh-TW.js +1 -1
  43. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +1 -0
  44. package/lib/umd/facade.js +1 -1
  45. package/lib/umd/index.js +1 -1
  46. package/lib/umd/locale/ca-ES.js +1 -1
  47. package/lib/umd/locale/en-US.js +1 -1
  48. package/lib/umd/locale/es-ES.js +1 -1
  49. package/lib/umd/locale/fa-IR.js +1 -1
  50. package/lib/umd/locale/fr-FR.js +1 -1
  51. package/lib/umd/locale/ja-JP.js +1 -1
  52. package/lib/umd/locale/ko-KR.js +1 -1
  53. package/lib/umd/locale/ru-RU.js +1 -1
  54. package/lib/umd/locale/sk-SK.js +1 -1
  55. package/lib/umd/locale/vi-VN.js +1 -1
  56. package/lib/umd/locale/zh-CN.js +1 -1
  57. package/lib/umd/locale/zh-TW.js +1 -1
  58. package/package.json +13 -13
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x50ca80=_0x3123;(function(_0x3d60d7,_0x5b7018){const _0x2b0ad5=_0x3123,_0x157f70=_0x3d60d7();while(!![]){try{const _0x1e7487=-parseInt(_0x2b0ad5(0x32c))/0x1+parseInt(_0x2b0ad5(0xff))/0x2*(parseInt(_0x2b0ad5(0x2f2))/0x3)+parseInt(_0x2b0ad5(0x359))/0x4+-parseInt(_0x2b0ad5(0x253))/0x5*(-parseInt(_0x2b0ad5(0x18d))/0x6)+-parseInt(_0x2b0ad5(0x287))/0x7*(-parseInt(_0x2b0ad5(0x161))/0x8)+parseInt(_0x2b0ad5(0x1cd))/0x9*(-parseInt(_0x2b0ad5(0x228))/0xa)+parseInt(_0x2b0ad5(0x2f6))/0xb*(-parseInt(_0x2b0ad5(0x242))/0xc);if(_0x1e7487===_0x5b7018)break;else _0x157f70['push'](_0x157f70['shift']());}catch(_0xb86181){_0x157f70['push'](_0x157f70['shift']());}}}(_0x5997,0x9c7b4));import{CollaborationEvent as _0x3b8cc3,CompressMutationService as _0x32c83e,EmptyMutationInfo as _0x43243e,ISnapshotServerService as _0x61d41c,ITransformService as _0x1726e6,RevisionService as _0x4565f5,SnapshotService as _0x195e17,UniverCollaborationPlugin as _0x4e4157,b64DecodeUnicode as _0x3d3618,isTransformChangesetsSuccess as _0x3fa49e,isTransformMutationsWithChangesetFailure as _0x53fd64,isTransformMutationsWithChangesetSuccess as _0xa549dc,mapDocumentTypeToUniverInstanceType as _0x351811,parseChangesetToProtocol as _0x58dede,parseProtocolChangeset as _0x25ebd1,textEncoder as _0x2e6b4d,uuidv4 as _0x5085ef}from'@univerjs-pro/collaboration';import{CommandType as _0x58f761,DependentOn as _0x36b668,Disposable as _0x9fa895,DisposableCollection as _0x96e511,IAuthzIoService as _0x5e68f5,ICommandService as _0x2d9981,IConfigService as _0x25ecfe,IContextService as _0x711b23,ILogService as _0x5b7991,IMentionIOService as _0x1849c0,IPermissionService as _0x393a1b,IUndoRedoService as _0x16c6c1,IUniverInstanceService as _0x2dad56,Inject as _0x4bd6ab,Injector as _0x280033,JSONX as _0x385314,LocalUndoRedoService as _0x2585ac,LocaleService as _0x4d3fc2,MentionType as _0x4ced22,Optional as _0x122efe,Plugin as _0x10339e,Quantity as _0x4cdc56,Rectangle as _0x16707f,RxDisposable as _0x1e6e8b,Tools as _0x536fbb,UniverInstanceType as _0x261bc8,UserManagerService as _0x28c29d,Workbook as _0x33ac8d,createIdentifier as _0x3f595f,generateRandomId as _0x5f423d,isInternalEditorID as _0x3309a8,merge as _0x48b3d1,mergeOverrideWithDependencies as _0x177d9b,registerDependencies as _0x47484a,resolveWithBasePath as _0x3243cf,sequenceExecute as _0x1d2185,toDisposable as _0x50490a,touchDependencies as _0x16b47b}from'@univerjs/core';import{RichTextEditingMutation as _0x4add4c}from'@univerjs/docs';import{InsertSheetMutation as _0x1b2d6b,SetSelectionsOperation as _0x2b69fe,SheetPermissionInitController as _0x11aeaf,SheetsSelectionsService as _0x239a68,WorkbookEditablePermission as _0x2c6ff9}from'@univerjs/sheets';import{BehaviorSubject as _0x4a3716,ReplaySubject as _0x3b3840,Subject as _0x582e08,concatMap as _0x53be54,firstValueFrom as _0x1022a6,map as _0x196732,merge as _0x12dbcf,of as _0x97c2d4,shareReplay as _0x5b45b4,take as _0x42a5ba,takeUntil as _0x17aedf}from'rxjs';import{CmdRspCode as _0x222ab7,CombCmd as _0x1e2dc3,ErrorCode as _0x111d5a,FileSource as _0x1897c5}from'@univerjs/protocol';import{ITelemetryService as _0x3b7202}from'@univerjs/telemetry';import{delay as _0xd4ac63,filter as _0x4a6387,map as _0x3cf0ac,take as _0x1174d3,takeUntil as _0x5d5659}from'rxjs/operators';import{HTTPRequest as _0x1e9f1a,HTTPService as _0x2872f5,ISocketService as _0x3859d3,MergeInterceptorFactory as _0x28486c,ThresholdInterceptorFactory as _0x48583f,UniverNetworkPlugin as _0x2a9b2f}from'@univerjs/network';import{UniverLicensePlugin as _0x534395,getGlobalObject as _0x55cc8b}from'@univerjs-pro/license';function _0x5997(){const _0x5c41cc=['/universer-api/snapshot/','saveImage','signUrlServerUrl','_getAPIPrefix','_transformSelections','JOIN_ROOM_NOT_EXISTS','_onConnectionOpen','_socket$','body','focused$','_commentService','defineProperty','set','_retryConnectingTimer','_clearCollaborationTimeoutTimer','_getLoginPath','editing\x20status\x20changed\x20to','onRemoteRetry','open$','getUnitStatus$','_telemetryService','DEFAULT_FILE_NAME','find','_onRemoteRetry','_collaborationTimeoutTimer','constructor','ERROR_IMAGE','type','_executeRemoteChangeset','get','_joinRoom','getResourcesRequest','disposeWithMe','_socket','_imageSourceCache','_resendTimeout','_getCurrentRevision','capture','SUBMIT_CHANGESET_TIMEOUT','toPrimitive','params','onlyLocal','1712001XeZxCT','Failed\x20to\x20update\x20permission\x20point','&to=','filter','11jJBoxh','getLatestCsReqIdBySid','loadUnitOfRevision','getUnitId','onCommentUpdate','floor','_redoStacks','override','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_showConflictNotification','_waitCount','mutations','COMPRESS_MUTATION_APPLY','COMMENT_UPDATE','_retryCount','_disableEditing','UPDATE_PERMISSION_OBJ','/rev/','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_resendTimer','reverse','createCollaborator','_decreaseWaiting','put','onSyncEditingCollabCursor','add','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[SyncedState]:\x20received\x20acknowledgement.','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_logService','CLOSE_ROOM','UUID','RETRY_CONNECTING_MAX_COUNT','leaveEvent','[CollaborationSession]','PERSON','_remoteChangesetQueue','commentUpdateEvent','CHANGESET_ACK','transformStack\x20failed!','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_checkMissing','getCurrentSelections','conflict','string','stringify','getTypeOfUnitDisposed$','symbol','_resendWithTimeout','session.room-permission-denied','_handler','[CollaborationSessionService]','onRemoteAck','target','475781KgUAPZ','LIVESHARE_TERMINATE','readyForCollab','IDLE','awaiting','init','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','collabWebSocketUrl','getCfgEnableObjInherit','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_startCollaboration','PSEUDO_FETCH_MISSING_RESULT','_acknowledgeAwaitingIfReady','fetching\x20missing\x20changesets\x20from\x20','_status$','_initCloseConn','_change$','_revisionService','_waitForHeartbeatResponse','entries','complete','updateMember','_members','_onMessage','refreshPermission','_getDownloadEndpointURL','origin','ERROR_IMAGE_TYPE','loadOfflineData','_initMergeInterceptor','_getUndoStack','_syncEditingCollabCursor','_roomCreated$','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','shouldCloseConn','pluginName','updateOfflineData','_clearTimeoutTimer','@univerjs-pro/collaboration-client','_getSignURL','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','emitEvent','getTime','list','_unitInfo$','2089548jwylwY','USERS_LEAVE','CHANGESET_REJ','removeMember','_initUnitPermissionChange','_sendingTimer','_createInitialStateImpl','_replayCachedMutations','localeService','{fileID}','AWAITING_WITH_PENDING','reduce','create','getCollabEntity','_tryEnsureSocket','?size=','session','socket\x20open.','c1Prime','HEARTBEAT_TIMEOUT','getInterceptPoints','loginUrlKey','isArray','compose','_singleActiveUnitService','patch','_clearScheduledTask','_sender','_transformRemoteChangesetByStateCache','uniscriptRunEvent','2IefZSM','_snapshotService','PERMISSION_REJ','_injector','POST','initWorkbookPermissionChange','userID','getConfig','?url=','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','href','LEAVE','_sessions','_transformAndApplyRemoteChangeset','[FetchMissState]','_onUserJoin','People','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','close','/-/object/-/batch_allowed','_undoStacks','_stopTelemetryCollaborationNewChangeset','_type','UnitEmbedded','roomInfos','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','_roomMembers','getCurrentUser','UNIVER_COLLABORATION_CLIENT_PLUGIN','editingUnit','requestParams','ERROR_EXCEED_SIZE','next','/block/','/role','change$','_registerDependencies','_clearHeartbeatTimer','cmd','session.room-not-exists','objects','apply','/-/object/list','joinRsp','saveSheetBlock','collaboration-client.config','FETCH_MISSING','code','members$','_socketService','FileId','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','revision','isPermissionRej','_transitionLocked','_configService','title','socket\x20close','/universer-api/uniscript','HELLO','COMPRESS_MUTATION_SEND','_timeoutTimer','fetchMiss','has','onload','batchAllowed','NEW_CHANGESETS','loadSheet','deleteCollaborator','UNIVER_SHEET','collaboration-client.local-cache-service','getImage','SOCKET_FAILED','online$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','loadUnit','min','_tryReconnect','textRanges','duration','pending','close$','_applyRemoteChangeset','_onUserLeave','_removeRoom','SOCKET_FAILED_RETRY','_createInitialState','GLOBAL_ROOMS_CNT_EXCEEDS','_throwTelemetryCollaborationNewChangeset','UPDATE_CURSOR','packageName','getCurrentRevOfUnit','_substituteUndoStack','_onConnectionFailed','_incrementRevisionNumber','changesets','_onOffline','headers','88BaeoWx','routeKey','getValue','_doCreateSocket','PERMISSION_DENIED','/universer-api/authz','allowed','debug','onRemoteChangeset','[DataLoaderService]','_instanceService','requireSession','_collaborationPaused','authzUrl','/resources','readAsDataURL','_clearUndo','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_substituteRedoStack','getMember','UNISCRIPT_RUN','dispose$','size','unit','findIndex','_clearLocalCache','_state','onTransformSelections','session.room-cnt-exceeds','_onJoinRoomEvent','_userManagerService','BASE64','liveShareNewHost','_localeService','onMissingChangesets','0.23.0','_onConflict','onMissedChangesetFetched','_permissionService','SHOULD_CLOSE_CONN','catch','result','_exhaustRemoteChangesetQueue','_listenToNetworkCondition','11208kiMMsL','_startTelemetryCollaborationNewChangeset','_isPermissionRej','_onRecvEvent','MUTATION','HEARTBEAT','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','univer-pro.collaboration-client.network-condition.service','_unitID','onStarting','encode','unitInfo$','startsWith','JOIN_ROOM_FULL','members','objectType','_onRemoteChangeset','getCollabEntity$','unsubscribe','AWAITING','_initDependencies','offline','_transformService','collaboration_new_changeset','_socketReady','status','event$','/object/','object','/collaborator','updatePermissionPoint','_schedule','_getCtorByUniverInstanceType','file','sort','createSocket','_shouldReportTelemetry','roles','_memberService','updatePermissionObjEvent','setCfgEnableObjInherit','RECV','onTransformState','data','HEARTBEAT_INTERVAL','CONFLICT','[OfflineState]:\x20received\x20changeset.','from','/allowed','location','forEach','fetchMissingChangesets','/unit/','commentUpdate$','_members$','enableCollaboration','executeCommand','getDeserializedSheetBlock','src','onTransformIME','map','listCollaborators','copyFileMeta','infoRsp','1259289IjOvqI','_commandService','_toggleOffline','_createSocket','listRoles','_scheduleCollaborationTimeoutTimer','asObservable','_replaceFileID','getUnitType','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','transformChangesets','onRemoteRej','_sheetTransformSelectionsService','_httpService','_getUploadFileURL','_onCombEvent','_sendHeartbeatTimer','stopTime','toggleOnline','_telemetryInfo','LIVESHARE_OPERATION','name','avatar','range','objectID','updateCollaborator','permissionRejEvent','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','/new_changes','fetch_missing','_queuedRemoteChangesets','fromCharCode','_onLocalMutation','_event$','putCollaborators','_awaitingChangeset','_sendHeartbeat','_transformRemoteChangesetByIMECache','csShouldRetryEvent','\x20-\x20','_localCacheService','sessionStatus','closeSession','objectActions','workbook','_pendingMutations','transformSelections','message$','getTypeOfUnitAdded$','subscribe','prototype','onSendChangeset','_submitChangeset','includes','OFFLINE','selections','univer-pro.collaboration-client.single-active-unit-service','state','getSheetBlock','actions','_scheduleCompleteTimestamp','onMutationExecutedForCollab','[SyncedState]:\x20received\x20rejection.','JOINING','[PendingState]:\x20received\x20rejection.','SYNCED','sessionStatus$','LOCAL_CACHE_INTERVAL','_clearRetryConnectingTimer','_getSendChangesetTimeout','unit-cache-','LIVESHARE_FETCH_OPERATIONS','_config','snapshotServerUrl','now','encodeURIComponent','[CollaborationEntity]','\x20to\x20','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_changesetSessionId','session.join-failed','deepClone','_emitMembers','[UniverCollaborationClientPlugin]','startTime','_updateLocalCache','url','action','memberID','_createHandler','OTHER_CLIENTS_EDITING','50OGjqds','_handlerCallback','_lockTransition','_rescheduleHeartbeat','_cfgEnableObjInherit','localCacheService','parse','uploadFileServerUrl','univer-pro.collaboration-client-socket-service','_eventService','_state$','_unlockTransition','getUnitOnRev','SNAPSHOT_URL_KEY','sid','_init','[CollaborationState]:\x20apply\x20error!','OTHER_CLIENT_EDITING','iterator','MSG_FOR_ERROR','getSheetId','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_candidateSocket','_snapshotServerService','loadDoc','_socketMessageSubscription','12098508AajtPn','awaitingChangeset','_entities','dispose','onTransformRemoteChangesetByStateCache','unitID','setCurrentUser','collaMsg','_HTTPService','_clearRedo','\x0aAfter:\x20','Univer','[OfflineState]:\x20received\x20acknowledgement.','update','onTransformRemoteChangesetByIMECache','send','unitId\x20is\x20not\x20found','1510muIkbn','_updateStatus','synced','state$','_univerInstanceService','UNIVER_DOC','waitForRoom$','createInstance','function','_sessionStatus$','_collaborationSessionService','getAllMembers','transformMutationsWithChangeset','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getOwnPropertyDescriptor','LIVESHARE_REQUEST_HOST','unitId','LIVESHARE_NEW_HOST','_maxTotalRetryTimeout','post','_networkConditionService','SUBMIT_CHANGESET','FAIL','/universer-api/oidc/authpage','_getAPIPrefixPath','/universer-api/snapshot','/universer-api/file/{fileID}/sign-url','baseRev','appendMutation','_transformStack','push','clear','/universer-api/stream/file/upload','error$','INGEST','reject','incrementRevOfUnit','csAckEvent','_transformUndoredo','getFocusedUnit','/universer-api/user/session-ticket','eventID','every','_handleRemoteChangesets','saveChangeset','max','getActiveSheet','registerHTTPInterceptor','missingChangesets','_commentUpdate$','JOIN_ROOM_PERMISSION_DENIED','_collaborationUIEventService','742861StmQUf','JOIN','&assign=','getMemberID','_collabSessionService','JOIN_ROOM_FAILED','CHANGESET_SHOULD_RETRY','equals','_compressMutationService','entityInit$','delete','error','setShowComponents','transformUndoRedo','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_fetchMissChangesets','newCsEvent','resend','cfgEnableObjInherit','USERS_ENTER','_getRedoStack','slice','method','submit\x20changeset\x20error!','length','_undoRedoService','downloadEndpointUrl','NO_OTHER_CLIENTS_EDITING','_updateState','awaiting_with_pending','reconnect','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','unknown','[CollaborationSessionService]:\x20socket\x20error','fromCollab','_acknowledgedAwaitingRevision','_isEchoedAwaitingChangeset','getRoom','fetchThroughInterceptors','ONLINE','_onRemoteRejected','/object','_onFetchMissResult','FETCH_MISS','pipe','getSnapshotAPIPath','reqId','not_collab','NOT_COLLAB','[PendingState]:\x20received\x20acknowledgement.','getWorkbookSelections','toggleOffline','_transformStateCache','x-univer-host','m2Prime','_entityInit$','interceptor','updateSnapshot','originalMeta','call','_transformIMECache','_acknowledgeAwaiting','snapshot','subject','_changesetReqId'];_0x5997=function(){return _0x5c41cc;};return _0x5997();}import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x492880,IImageIoService as _0x505a62,ImageSourceType as _0x58c991,ImageUploadStatusType as _0x58b178,getDrawingImageAllowSize as _0x5631f8}from'@univerjs/drawing';import{cbc as _0x56ae54}from'@noble/ciphers/aes.js';import{concatBytes as _0x3fda9d,randomBytes as _0x2d6247,utf8ToBytes as _0x1306c9}from'@noble/ciphers/utils.js';const ut='ws://127.0.0.1:8000/universer-api/comb/connect',dt=_0x50ca80(0x27b),ft=_0x50ca80(0x1b9),pt=_0x50ca80(0xf4),mt=0x4e20,ht=_0x50ca80(0x316),gt=_0x50ca80(0x210),_t=0x3e8,vt=_0x50ca80(0x312),yt=_0x50ca80(0x139);function bt(_0x50605e){const _0x1280bb=_0x50ca80;return JSON[_0x1280bb(0x323)](_0x50605e)[_0x1280bb(0x29f)];}function F(_0x5204ca){'@babel/helpers - typeof';const _0x389b89=_0x50ca80;return F=typeof Symbol==_0x389b89(0x25b)&&typeof Symbol[_0x389b89(0x23a)]==_0x389b89(0x325)?function(_0x15831b){return typeof _0x15831b;}:function(_0x3066bc){const _0x223052=_0x389b89;return _0x3066bc&&typeof Symbol==_0x223052(0x25b)&&_0x3066bc[_0x223052(0x2e1)]===Symbol&&_0x3066bc!==Symbol[_0x223052(0x1ff)]?_0x223052(0x325):typeof _0x3066bc;},F(_0x5204ca);}function xt(_0x6cd441,_0x394804){const _0x4d9719=_0x50ca80;if(F(_0x6cd441)!=_0x4d9719(0x1a9)||!_0x6cd441)return _0x6cd441;var _0x578d1b=_0x6cd441[Symbol[_0x4d9719(0x2ef)]];if(_0x578d1b!==void 0x0){var _0x318aa6=_0x578d1b[_0x4d9719(0x2c2)](_0x6cd441,_0x394804||'default');if(F(_0x318aa6)!=_0x4d9719(0x1a9))return _0x318aa6;throw TypeError(_0x4d9719(0x335));}return(_0x394804===_0x4d9719(0x322)?String:Number)(_0x6cd441);}function St(_0x3b4a17){const _0x213c80=_0x50ca80;var _0x2f4d34=xt(_0x3b4a17,'string');return F(_0x2f4d34)==_0x213c80(0x325)?_0x2f4d34:_0x2f4d34+'';}function I(_0x5ab35f,_0x284b07,_0x2a40a2){return(_0x284b07=St(_0x284b07))in _0x5ab35f?Object['defineProperty'](_0x5ab35f,_0x284b07,{'value':_0x2a40a2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5ab35f[_0x284b07]=_0x2a40a2,_0x5ab35f;}let Ct=function(_0x3df8ac){const _0x308e59=_0x50ca80;return _0x3df8ac[_0x308e59(0x239)]=_0x308e59(0x239),_0x3df8ac['PERMISSION_DENIED']=_0x308e59(0x165),_0x3df8ac['CONFLICT']=_0x308e59(0x1ba),_0x3df8ac[_0x308e59(0x314)]=_0x308e59(0x314),_0x3df8ac[_0x308e59(0x28c)]='JOIN_ROOM_FAILED',_0x3df8ac[_0x308e59(0x154)]=_0x308e59(0x154),_0x3df8ac[_0x308e59(0x147)]=_0x308e59(0x147),_0x3df8ac['SUBMIT_CHANGESET_TIMEOUT']=_0x308e59(0x2ee),_0x3df8ac;}({});var L=class{constructor(){const _0x4cd69c=_0x50ca80;I(this,_0x4cd69c(0x1ee),new _0x582e08()),I(this,_0x4cd69c(0x1a7),this[_0x4cd69c(0x1ee)][_0x4cd69c(0x1d3)]());}[_0x50ca80(0x355)](_0xda2702){const _0x1b862c=_0x50ca80;this[_0x1b862c(0x1ee)][_0x1b862c(0x11f)](_0xda2702);}},wt=class{constructor(){const _0x1c2c2e=_0x50ca80;I(this,'_commentUpdate$',new _0x582e08()),I(this,_0x1c2c2e(0x1c2),this[_0x1c2c2e(0x284)][_0x1c2c2e(0x1d3)]());}['onCommentUpdate'](_0x252259){const _0x156cd3=_0x50ca80;this[_0x156cd3(0x284)][_0x156cd3(0x11f)](_0x252259);}};function R(_0x375f53,_0x5c92cf){return function(_0x40bd23,_0x1a6864){_0x5c92cf(_0x40bd23,_0x1a6864,_0x375f53);};}function z(_0x57d9bd,_0x4a81de,_0x4daf40,_0x118837){const _0xca1f9e=_0x50ca80;var _0x43bf0d=arguments['length'],_0x334c98=_0x43bf0d<0x3?_0x4a81de:_0x118837===null?_0x118837=Object[_0xca1f9e(0x261)](_0x4a81de,_0x4daf40):_0x118837,_0x144929;if(typeof Reflect==_0xca1f9e(0x1a9)&&typeof Reflect['decorate']==_0xca1f9e(0x25b))_0x334c98=Reflect['decorate'](_0x57d9bd,_0x4a81de,_0x4daf40,_0x118837);else{for(var _0x1bb3b7=_0x57d9bd['length']-0x1;_0x1bb3b7>=0x0;_0x1bb3b7--)(_0x144929=_0x57d9bd[_0x1bb3b7])&&(_0x334c98=(_0x43bf0d<0x3?_0x144929(_0x334c98):_0x43bf0d>0x3?_0x144929(_0x4a81de,_0x4daf40,_0x334c98):_0x144929(_0x4a81de,_0x4daf40))||_0x334c98);}return _0x43bf0d>0x3&&_0x334c98&&Object[_0xca1f9e(0x2d3)](_0x4a81de,_0x4daf40,_0x334c98),_0x334c98;}let B=class extends _0x9fa895{constructor(_0x3e0feb,_0x525e90){const _0x34e0e2=_0x50ca80;super(),this[_0x34e0e2(0x257)]=_0x3e0feb,this[_0x34e0e2(0x17f)]=_0x525e90,I(this,'_roomMembers',new Map()),I(this,'_roomCreated$',new _0x582e08()),this['disposeWithMe'](_0x12dbcf(this[_0x34e0e2(0x257)][_0x34e0e2(0x324)](_0x261bc8[_0x34e0e2(0x144)])[_0x34e0e2(0x2b3)](_0x3cf0ac(_0x1e6309=>_0x1e6309['getUnitId']())),this[_0x34e0e2(0x257)][_0x34e0e2(0x324)](_0x261bc8[_0x34e0e2(0x258)])[_0x34e0e2(0x2b3)](_0x3cf0ac(_0x5c0c36=>_0x5c0c36[_0x34e0e2(0x2f9)]())))[_0x34e0e2(0x1fe)](_0x1872e6=>this[_0x34e0e2(0x153)](_0x1872e6)));}[_0x50ca80(0x259)](_0x1f9fbb){const _0x233099=_0x50ca80;return this['_roomMembers'][_0x233099(0x13e)](_0x1f9fbb)?_0x97c2d4(this[_0x233099(0x119)][_0x233099(0x2e5)](_0x1f9fbb)):this[_0x233099(0x34c)][_0x233099(0x2b3)](_0x3cf0ac(_0xfe6faf=>{const _0x2cd6dd=_0x233099;if(_0xfe6faf===_0x1f9fbb)return this[_0x2cd6dd(0x119)][_0x2cd6dd(0x2e5)](_0xfe6faf);}));}[_0x50ca80(0x248)](_0x3ec0ca){const _0x1b5f5a=_0x50ca80;this['_userManagerService'][_0x1b5f5a(0x248)](_0x3ec0ca);}['getCurrentUser'](){const _0x36c4fd=_0x50ca80;return this[_0x36c4fd(0x17f)]['getCurrentUser']();}[_0x50ca80(0x341)](_0x391c40,_0x1f874d){const _0x2c2827=_0x50ca80;let _0x430c18=this['_roomMembers'][_0x2c2827(0x2e5)](_0x391c40);_0x430c18||(_0x430c18=new Tt(),this['_roomMembers'][_0x2c2827(0x2d4)](_0x391c40,_0x430c18),this[_0x2c2827(0x34c)][_0x2c2827(0x11f)](_0x391c40)),_0x430c18['updateMember'](_0x1f874d);}[_0x50ca80(0x35c)](_0x40767d,_0x4d9afd){const _0x3bcf7f=_0x50ca80;let _0x4a2ba6=this[_0x3bcf7f(0x119)][_0x3bcf7f(0x2e5)](_0x40767d);_0x4a2ba6&&_0x4a2ba6[_0x3bcf7f(0x35c)](_0x4d9afd);}[_0x50ca80(0x2ac)](_0x519b96){const _0x3bb0c5=_0x50ca80;return this['_roomMembers'][_0x3bb0c5(0x2e5)](_0x519b96);}[_0x50ca80(0x174)](_0x22e4a6,_0x227c8b){const _0x19d149=_0x50ca80;let _0xd8b1=this[_0x19d149(0x119)][_0x19d149(0x2e5)](_0x22e4a6);if(_0xd8b1)return _0xd8b1['getMember'](_0x227c8b);}['_removeRoom'](_0x4e048a){const _0x2f0c0b=_0x50ca80;let _0x226d38=this['_roomMembers'][_0x2f0c0b(0x2e5)](_0x4e048a);_0x226d38&&(_0x226d38[_0x2f0c0b(0x245)](),this[_0x2f0c0b(0x119)][_0x2f0c0b(0x291)](_0x4e048a));}[_0x50ca80(0x245)](){const _0x146c76=_0x50ca80;this[_0x146c76(0x119)][_0x146c76(0x1bf)](_0x560138=>_0x560138[_0x146c76(0x245)]()),this['_roomMembers']['clear'](),this[_0x146c76(0x34c)]['complete']();}};B=z([R(0x0,_0x2dad56),R(0x1,_0x4bd6ab(_0x28c29d))],B);var Tt=class extends _0x9fa895{constructor(..._0x3d63de){const _0x39e592=_0x50ca80;super(..._0x3d63de),I(this,_0x39e592(0x342),new Map()),I(this,'_members$',new _0x4a3716(this['_members'])),I(this,_0x39e592(0x12f),this['_members$'][_0x39e592(0x1d3)]());}[_0x50ca80(0x245)](){const _0x1277c8=_0x50ca80;this['_members'][_0x1277c8(0x272)](),this[_0x1277c8(0x1c3)][_0x1277c8(0x340)]();}[_0x50ca80(0x341)](_0x106d46){const _0x3081fd=_0x50ca80;this['_members']['set'](_0x106d46[_0x3081fd(0x225)],_0x106d46),this['_emitMembers']();}['removeMember'](_0x4d4e36){const _0x31a2f3=_0x50ca80;this['_members'][_0x31a2f3(0x291)](_0x4d4e36),this[_0x31a2f3(0x21f)]();}[_0x50ca80(0x174)](_0x438257){const _0x376fab=_0x50ca80;return this['_members'][_0x376fab(0x2e5)](_0x438257);}[_0x50ca80(0x25e)](){const _0xb7c7da=_0x50ca80;return Array[_0xb7c7da(0x1bc)](this[_0xb7c7da(0x342)]['values']());}['_emitMembers'](){const _0x30b939=_0x50ca80;this[_0x30b939(0x1c3)]['next'](this[_0x30b939(0x342)]);}};let Et=function(_0x1d91ab){const _0x5a9a6d=_0x50ca80;return _0x1d91ab[_0x1d91ab[_0x5a9a6d(0x32f)]=0x0]=_0x5a9a6d(0x32f),_0x1d91ab[_0x1d91ab['JOINING']=0x1]=_0x5a9a6d(0x20c),_0x1d91ab[_0x1d91ab[_0x5a9a6d(0x203)]=0x2]=_0x5a9a6d(0x203),_0x1d91ab[_0x1d91ab[_0x5a9a6d(0x2ae)]=0x3]=_0x5a9a6d(0x2ae),_0x1d91ab;}({});const Dt={[_0x222ab7[_0x50ca80(0x269)]]:_0x50ca80(0x21d),[_0x222ab7[_0x50ca80(0x19a)]]:'session.room-full',[_0x222ab7[_0x50ca80(0x2cd)]]:_0x50ca80(0x126),[_0x222ab7[_0x50ca80(0x285)]]:_0x50ca80(0x327),[_0x222ab7[_0x50ca80(0x156)]]:_0x50ca80(0x17d)};let Ot=class extends _0x1e6e8b{get[_0x50ca80(0x1f6)](){const _0x571a02=_0x50ca80;return this[_0x571a02(0x25c)]['getValue']();}constructor(_0x1414e7,_0xd76053,_0x9b4ade,_0x3c2a87,_0x30040e,_0x1dc097,_0x19229a,_0x40f311){const _0x25e372=_0x50ca80;super(),this[_0x25e372(0x195)]=_0x1414e7,this['_logService']=_0x9b4ade,this['_configService']=_0x3c2a87,this['_memberService']=_0x30040e,this[_0x25e372(0x2d2)]=_0x1dc097,this[_0x25e372(0x286)]=_0x19229a,this[_0x25e372(0x2dc)]=_0x40f311,I(this,_0x25e372(0x25c),new _0x4a3716(0x0)),I(this,_0x25e372(0x20f),this['_sessionStatus$'][_0x25e372(0x1d3)]()),I(this,_0x25e372(0x1ee),new _0x582e08()),I(this,_0x25e372(0x1a7),this[_0x25e372(0x1ee)][_0x25e372(0x1d3)]()),I(this,_0x25e372(0x2e9),void 0x0),I(this,_0x25e372(0x241),void 0x0),I(this,'_collaborationTimeoutTimer',void 0x0),I(this,_0x25e372(0x1b1),!0x1),I(this,_0x25e372(0x1e0),null),this[_0x25e372(0x1b1)]=!!this[_0x25e372(0x2dc)],_0xd76053['pipe'](_0x17aedf(this[_0x25e372(0x176)]))['subscribe'](_0x109fcf=>{const _0x506ea4=_0x25e372;if(_0x109fcf!==void 0x0){if(this['_socket']=_0x109fcf,_0x109fcf)this[_0x506ea4(0x2e6)](_0x109fcf),this[_0x506ea4(0x241)]=_0x109fcf[_0x506ea4(0x1fc)][_0x506ea4(0x1fe)](_0x166a80=>{const _0x1a8169=_0x506ea4;_0x166a80['routeKey']===this[_0x1a8169(0x195)]&&this['_onCombEvent'](_0x166a80);});else{var _0x33c407;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x506ea4(0x25c)]['next'](0x2),(_0x33c407=this['_socketMessageSubscription'])==null||_0x33c407[_0x506ea4(0x19f)](),this['_socketMessageSubscription']=null;}}});}[_0x50ca80(0x28a)](){const _0x294265=_0x50ca80;var _0x40b4be,_0x2a9fe1;return(_0x40b4be=(_0x2a9fe1=this[_0x294265(0x2e9)])==null?void 0x0:_0x2a9fe1[_0x294265(0x225)])==null?null:_0x40b4be;}[_0x50ca80(0x245)](){const _0x202d79=_0x50ca80;super[_0x202d79(0x245)](),this[_0x202d79(0x111)](),this['dispose$']['next'](),this[_0x202d79(0x176)][_0x202d79(0x340)]();}[_0x50ca80(0x111)](){const _0x1f1b50=_0x50ca80;var _0x77c9d4,_0x1f4a46;this[_0x1f1b50(0x157)](),(_0x77c9d4=this[_0x1f1b50(0x2e9)])==null||_0x77c9d4['send']({'cmd':_0x1e2dc3['LEAVE'],'data':{'roomID':this[_0x1f1b50(0x195)]}}),(_0x1f4a46=this[_0x1f1b50(0x2e9)])==null||_0x1f4a46[_0x1f1b50(0x111)](),this[_0x1f1b50(0x1ee)]['complete'](),this[_0x1f1b50(0x25c)]['complete']();}[_0x50ca80(0x1dc)](_0x420969){const _0x8fa125=_0x50ca80;_0x420969[_0x8fa125(0x125)]===_0x1e2dc3[_0x8fa125(0x288)]?this['_onJoinRoomEvent'](_0x420969):_0x420969['cmd']===_0x1e2dc3[_0x8fa125(0x1b6)]&&this[_0x8fa125(0x190)](_0x420969);}[_0x50ca80(0x2e6)](_0x2192e2){const _0x1185e3=_0x50ca80;this['_sessionStatus$'][_0x1185e3(0x11f)](0x1),_0x2192e2['send']({'cmd':_0x1e2dc3[_0x1185e3(0x288)],'routeKey':this[_0x1185e3(0x195)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1185e3(0x195)]}]}});}[_0x50ca80(0x17e)](_0x1a6a7c){const _0x2ea2c0=_0x50ca80;var _0x1123db;if(_0x1a6a7c[_0x2ea2c0(0x12e)]in Dt){this[_0x2ea2c0(0x286)][_0x2ea2c0(0x355)]({'id':'JOIN_ROOM_FAILED','data':Dt[_0x1a6a7c[_0x2ea2c0(0x12e)]]}),this['_sessionStatus$'][_0x2ea2c0(0x11f)](0x2);return;}this[_0x2ea2c0(0x25c)][_0x2ea2c0(0x11f)](0x3);let _0x4c776b=(_0x1123db=_0x1a6a7c['data'][_0x2ea2c0(0x117)][this[_0x2ea2c0(0x195)]])==null?void 0x0:_0x1123db[_0x2ea2c0(0x19b)];_0x4c776b&&_0x4c776b['forEach'](_0x111173=>this[_0x2ea2c0(0x1b3)][_0x2ea2c0(0x341)](this[_0x2ea2c0(0x195)],_0x111173));}[_0x50ca80(0x190)](_0x510632){const _0x266b91=_0x50ca80;try{let _0x2339e1=_0x510632[_0x266b91(0x1b8)];switch(_0x2339e1[_0x266b91(0x27c)]){case _0x3b8cc3[_0x266b91(0x29a)]:this['_onUserJoin'](_0x2339e1),this['_event$'][_0x266b91(0x11f)](_0x2339e1);break;case _0x3b8cc3[_0x266b91(0x35a)]:this[_0x266b91(0x152)](_0x2339e1),this['_event$']['next'](_0x2339e1);break;case _0x3b8cc3[_0x266b91(0x31c)]:case _0x3b8cc3[_0x266b91(0x28d)]:this[_0x266b91(0x114)](),this[_0x266b91(0x2d6)](),this['_event$'][_0x266b91(0x11f)](_0x2339e1);break;case _0x3b8cc3[_0x266b91(0x23b)]:this[_0x266b91(0x313)][_0x266b91(0x292)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x266b91(0x323)](_0x2339e1)),this['_event$'][_0x266b91(0x11f)](_0x2339e1);break;case _0x3b8cc3['COMMENT_UPDATE']:this['_commentService'][_0x266b91(0x2fa)](_0x2339e1[_0x266b91(0x1b8)]),this['_event$']['next'](_0x2339e1);break;default:this['_event$'][_0x266b91(0x11f)](_0x2339e1);}}catch(_0x531071){this[_0x266b91(0x313)][_0x266b91(0x292)](_0x531071,_0x510632);}}[_0x50ca80(0x10e)](_0x3a1a94){const _0x28e53c=_0x50ca80;this[_0x28e53c(0x1b3)][_0x28e53c(0x341)](this['_unitID'],_0x3a1a94[_0x28e53c(0x1b8)]);}[_0x50ca80(0x152)](_0x19f21e){const _0x2629d3=_0x50ca80;this[_0x2629d3(0x1b3)][_0x2629d3(0x35c)](this[_0x2629d3(0x195)],_0x19f21e[_0x2629d3(0x1b8)][_0x2629d3(0x225)]);}async[_0x50ca80(0x251)](_0x2a79c6,_0x371be2){const _0x545d77=_0x50ca80;if(this[_0x545d77(0x1f6)]!==0x3||!this[_0x545d77(0x2e9)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x2a79c6[_0x545d77(0x27c)]===_0x3b8cc3['SUBMIT_CHANGESET']&&(this[_0x545d77(0x1d2)](),this[_0x545d77(0x18e)](_0x2a79c6)),this['_socket'][_0x545d77(0x251)]({'cmd':_0x1e2dc3['INGEST'],'routeKey':_0x371be2,'routeType':'','data':_0x2a79c6});}catch(_0x52db79){this['_logService'][_0x545d77(0x292)](_0x52db79);}}[_0x50ca80(0x1d2)](){const _0x23f1c9=_0x50ca80;var _0x127f59;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x110ff4=_0x3123;this[_0x110ff4(0x2e0)]=null,this[_0x110ff4(0x286)]['emitEvent']({'id':'SUBMIT_CHANGESET_TIMEOUT'});},(_0x127f59=this[_0x23f1c9(0x136)][_0x23f1c9(0x106)]('HEARTBEAT_TIMEOUT'))==null?mt:_0x127f59);}['_clearCollaborationTimeoutTimer'](){const _0x35c010=_0x50ca80;this[_0x35c010(0x2e0)]&&(clearTimeout(this[_0x35c010(0x2e0)]),this[_0x35c010(0x2e0)]=null);}['_startTelemetryCollaborationNewChangeset'](_0xa1e9cf){const _0x11626d=_0x50ca80;if(!this[_0x11626d(0x1b1)])return;let {data:_0x54a3f8}=_0xa1e9cf,{unitID:_0x3f1093,changeset:_0x163a2b}=_0x54a3f8,{mutations:_0x4bbb8f,type:_0x4c23ff}=_0x163a2b;this['_telemetryInfo']={'unitId':_0x3f1093,'type':_0x4c23ff,'startTime':performance[_0x11626d(0x217)](),'stopTime':0x0,'duration':0x0,'size':bt(_0x4bbb8f)};}[_0x50ca80(0x114)](){const _0x3fed9a=_0x50ca80;if(this[_0x3fed9a(0x1b1)]){if(!this[_0x3fed9a(0x1e0)]){this['_logService'][_0x3fed9a(0x292)](_0x3fed9a(0x318),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x3fed9a(0x1e0)][_0x3fed9a(0x1de)]=performance[_0x3fed9a(0x217)](),this[_0x3fed9a(0x1e0)][_0x3fed9a(0x14e)]=this[_0x3fed9a(0x1e0)]['stopTime']-this[_0x3fed9a(0x1e0)][_0x3fed9a(0x221)],this['_telemetryService'][_0x3fed9a(0x2ed)](_0x3fed9a(0x1a4),this[_0x3fed9a(0x1e0)]),this[_0x3fed9a(0x1e0)]=null;}}[_0x50ca80(0x157)](){const _0x35e29e=_0x50ca80;this[_0x35e29e(0x1e0)]=null;}};Ot=z([R(0x2,_0x5b7991),R(0x3,_0x25ecfe),R(0x4,_0x4bd6ab(B)),R(0x5,_0x4bd6ab(wt)),R(0x6,_0x4bd6ab(L)),R(0x7,_0x122efe(_0x3b7202))],Ot);const V=_0x3f595f(_0x50ca80(0x145));function kt(_0x49efad){const _0x328d82=_0x50ca80;return _0x328d82(0x213)+_0x49efad;}function At(_0x4af5cc){const _0x2cafdf=_0x50ca80;let {unitID:_0x58edc6,mutations:_0x515575}=_0x4af5cc;return{'unitId':_0x58edc6,'subUnitId':_0x515575['length']>0x0?_0x515575[0x0][_0x2cafdf(0x2f0)]['subUnitId']:null};}let H=class{constructor(_0x142ec4,_0x53ac30,_0x2bd1b3){const _0x1dc9a7=_0x50ca80;this[_0x1dc9a7(0x102)]=_0x142ec4,this[_0x1dc9a7(0x1a3)]=_0x53ac30,this[_0x1dc9a7(0x16b)]=_0x2bd1b3;}[_0x50ca80(0x1fb)](_0x58cc70){const _0x2c99d8=_0x50ca80;var _0x97a6df,_0x1015d6;let _0x348fc7=this[_0x2c99d8(0x102)][_0x2c99d8(0x2e5)](_0x239a68),{unitId:_0x2a5a3d,subUnitId:_0x4a6d9d}=At(_0x58cc70),_0x5db7eb=_0x348fc7==null?void 0x0:_0x348fc7[_0x2c99d8(0x2b9)](_0x2a5a3d)[_0x2c99d8(0x320)](),_0x4441c9=(_0x97a6df=this['_instanceService']['getUnit'](_0x2a5a3d))==null||(_0x97a6df=_0x97a6df[_0x2c99d8(0x281)]())==null?void 0x0:_0x97a6df[_0x2c99d8(0x23c)]();if(_0x5db7eb[_0x2c99d8(0x29f)]===0x0||!_0x2a5a3d||!_0x4a6d9d)return;let _0x1cb5e7=[{'id':_0x2b69fe['id'],'params':{'unitId':_0x2a5a3d,'subUnitId':_0x4441c9,'selections':_0x536fbb[_0x2c99d8(0x21e)](_0x5db7eb)}}],_0x32277e=this[_0x2c99d8(0x1a3)][_0x2c99d8(0x25f)](_0x58cc70,_0x1cb5e7);if(!_0xa549dc(_0x32277e))throw _0x32277e[_0x2c99d8(0x292)];let _0x16b291=(_0x1015d6=_0x32277e[_0x2c99d8(0x2bd)][0x0])==null||(_0x1015d6=_0x1015d6['params'])==null?void 0x0:_0x1015d6[_0x2c99d8(0x204)];if(Array[_0x2c99d8(0xf7)](_0x16b291)&&_0x16b291['length']){if(_0x16b291['length']===_0x1cb5e7[0x0][_0x2c99d8(0x2f0)][_0x2c99d8(0x204)][_0x2c99d8(0x29f)]&&_0x16b291[_0x2c99d8(0x27d)]((_0x21c4c4,_0x47dd82)=>_0x16707f[_0x2c99d8(0x28e)](_0x21c4c4[_0x2c99d8(0x1e4)],_0x1cb5e7[0x0][_0x2c99d8(0x2f0)][_0x2c99d8(0x204)][_0x47dd82]['range'])))return;this[_0x2c99d8(0x102)]['get'](_0x2d9981)[_0x2c99d8(0x1c5)](_0x2b69fe['id'],{'unitId':_0x2a5a3d,'subUnitId':_0x4441c9,'selections':_0x16b291});}}};H=z([R(0x0,_0x4bd6ab(_0x280033)),R(0x1,_0x1726e6),R(0x2,_0x2dad56)],H);const jt=_0x3f595f(_0x50ca80(0x205));let Mt=function(_0x534668){const _0x2609a2=_0x50ca80;return _0x534668[_0x534668[_0x2609a2(0x2a2)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x534668[_0x534668[_0x2609a2(0x227)]=0x1]=_0x2609a2(0x227),_0x534668;}({});const U='collaboration-client.config';Symbol(U);const Nt={};function Pt(_0x438fd0){var _0x172ece;return!!((_0x172ece=_0x438fd0['params'])!=null&&_0x172ece['__splitChunk__']);}const Ft=new Set([_0x1b2d6b['id']]);function It(_0x3f8d60,_0x49c8ed,_0x19b1f4,_0x40d153,_0x5178a5){const _0x5820b0=_0x50ca80;var _0x66718c,_0x26003e,_0x3feacb,_0x1293bd;let _0xa55ff9=[];for(let _0xb5b6ce of _0x3f8d60){if(Ft[_0x5820b0(0x13e)](_0xb5b6ce['id'])){if(_0xa55ff9['length']>0x0)break;_0xa55ff9[_0x5820b0(0x271)](_0xb5b6ce);break;}if(Pt(_0xb5b6ce)){if(_0xa55ff9['length']>0x0)break;_0xa55ff9[_0x5820b0(0x271)](_0xb5b6ce);break;}_0xa55ff9[_0x5820b0(0x271)](_0xb5b6ce);}let _0x3fc617=(_0x66718c=(_0x26003e=_0x5178a5[_0x5820b0(0x11a)]())==null?void 0x0:_0x26003e['userID'])==null?_0x5820b0(0x2a7):_0x66718c,_0x50120e=(_0x3feacb=(_0x1293bd=_0x5178a5['getCurrentUser']())==null?void 0x0:_0x1293bd['memberID'])==null?_0x5820b0(0x2a7):_0x3feacb;return{'changeset':{'unitID':_0x49c8ed,'type':_0x351811(_0x19b1f4[_0x5820b0(0x1d5)](_0x49c8ed)),'baseRev':_0x40d153[_0x5820b0(0x15a)](_0x49c8ed),'revision':0x0,'userID':_0x3fc617,'memberID':_0x50120e,'mutations':_0xa55ff9},'pendingMutations':_0x3f8d60[_0x5820b0(0x29c)](_0xa55ff9[_0x5820b0(0x29f)])};}function Lt(_0x4e7df5,_0x3ceb3e,_0x166bf0,_0x42fa21,_0x1d9511){const _0x23481c=_0x50ca80;var _0x17e9c6,_0x395788,_0x26708c,_0x3e540d;let _0x175170=[_0x4e7df5[_0x23481c(0xec)]((_0x44dd98,_0x539b77)=>{const _0x533fd8=_0x23481c;var _0x349c8b;let {id:_0x47e701}=_0x44dd98,{id:_0x3475b2,type:_0x987118}=_0x539b77,_0x2333c5=(_0x349c8b=_0x44dd98[_0x533fd8(0x2f0)])==null?{'actions':null}:_0x349c8b,_0x1edf9c=_0x539b77[_0x533fd8(0x2f0)];if(_0x47e701&&_0x47e701!==_0x3475b2)throw Error(_0x533fd8(0x332)+_0x47e701+_0x533fd8(0x1f4)+_0x3475b2+'.');return{..._0x44dd98,'id':_0x3475b2,'type':_0x987118,'params':{'unitId':_0x1edf9c[_0x533fd8(0x263)],'textRanges':_0x1edf9c[_0x533fd8(0x14d)],'actions':_0x385314[_0x533fd8(0xf8)](_0x2333c5[_0x533fd8(0x208)],_0x1edf9c[_0x533fd8(0x208)])}};},{})],_0x26ec07=(_0x17e9c6=(_0x395788=_0x1d9511[_0x23481c(0x11a)]())==null?void 0x0:_0x395788[_0x23481c(0x105)])==null?'unknown':_0x17e9c6,_0x1e4196=(_0x26708c=(_0x3e540d=_0x1d9511[_0x23481c(0x11a)]())==null?void 0x0:_0x3e540d[_0x23481c(0x225)])==null?_0x23481c(0x2a7):_0x26708c;return{'changeset':{'unitID':_0x3ceb3e,'type':_0x351811(_0x166bf0['getUnitType'](_0x3ceb3e)),'baseRev':_0x42fa21['getCurrentRevOfUnit'](_0x3ceb3e),'revision':0x0,'userID':_0x26ec07,'memberID':_0x1e4196,'mutations':_0x175170},'pendingMutations':[]};}function Rt(_0x390eb1,_0x313584){const _0x1d0364=_0x50ca80;let _0x569eaa=new _0x3b3840(0x1);return setTimeout(()=>_0x569eaa['next'](_0x313584),_0x390eb1),_0x569eaa[_0x1d0364(0x1d3)]()['pipe'](_0x42a5ba(0x1));}var zt,Bt,Vt;let Ht=function(_0x4e91c0){const _0x14d72f=_0x50ca80;return _0x4e91c0[_0x14d72f(0x2b7)]=_0x14d72f(0x2b6),_0x4e91c0[_0x14d72f(0x20e)]=_0x14d72f(0x255),_0x4e91c0['PENDING']=_0x14d72f(0x14f),_0x4e91c0[_0x14d72f(0x1a0)]=_0x14d72f(0x330),_0x4e91c0[_0x14d72f(0xeb)]=_0x14d72f(0x2a4),_0x4e91c0[_0x14d72f(0x2b2)]=_0x14d72f(0x1ea),_0x4e91c0[_0x14d72f(0x1ba)]=_0x14d72f(0x321),_0x4e91c0[_0x14d72f(0x203)]=_0x14d72f(0x1a2),_0x4e91c0;}({});const Ut=0x4e20,Wt=0x2bf20;var W=class{constructor(_0x149756,_0x41314f,_0x570591,_0x782c34,_0x495dcd,_0x579c48,_0x47242b,_0x139b93,_0x401129){const _0x4af31f=_0x50ca80;this['unitID']=_0x149756,this[_0x4af31f(0x2e3)]=_0x41314f,this[_0x4af31f(0x328)]=_0x495dcd,this['_commandService']=_0x579c48,this[_0x4af31f(0x2a0)]=_0x47242b,this[_0x4af31f(0x33d)]=_0x139b93,this['_localCacheService']=_0x401129,I(this,'_awaitingChangeset',null),I(this,_0x4af31f(0x1fa),[]),this[_0x4af31f(0x1f0)]=_0x570591,this[_0x4af31f(0x1fa)]=_0x782c34;}[_0x50ca80(0x31f)](_0x54c480){const _0x294bd9=_0x50ca80;let _0xf9c1e=this[_0x294bd9(0x33d)][_0x294bd9(0x15a)](this[_0x294bd9(0x247)]);return _0x54c480[_0x294bd9(0x133)]>_0xf9c1e+0x1?(this[_0x294bd9(0x328)][_0x294bd9(0x183)]({'from':_0xf9c1e,'to':_0x54c480[_0x294bd9(0x133)]-0x1}),!0x0):!0x1;}[_0x50ca80(0x279)](_0x25adf3){const _0x8bb3c0=_0x50ca80;this[_0x8bb3c0(0x2a0)][_0x8bb3c0(0x294)](this[_0x8bb3c0(0x247)],_0x25adf3);}[_0x50ca80(0x2cc)](_0x299f5c){const _0x135bdb=_0x50ca80;var _0x9f8ba,_0x28feb5;(_0x9f8ba=(_0x28feb5=this[_0x135bdb(0x328)])[_0x135bdb(0x17c)])==null||_0x9f8ba[_0x135bdb(0x2c2)](_0x28feb5,_0x299f5c);}[_0x50ca80(0x2c3)](_0x2be5b8){const _0x252db4=_0x50ca80;var _0x1a7949,_0x4aabb6;return(_0x1a7949=(_0x4aabb6=this[_0x252db4(0x328)])[_0x252db4(0x1c8)])==null?void 0x0:_0x1a7949[_0x252db4(0x2c2)](_0x4aabb6,_0x2be5b8);}[_0x50ca80(0x2bb)](_0x4e0fd8){const _0x22e6e8=_0x50ca80;var _0x1786a8,_0x4b8f11;return(_0x1786a8=(_0x4b8f11=this[_0x22e6e8(0x328)])[_0x22e6e8(0x1b7)])==null?void 0x0:_0x1786a8[_0x22e6e8(0x2c2)](_0x4b8f11,_0x4e0fd8);}[_0x50ca80(0x1f2)](_0x54c79e){const _0xf81842=_0x50ca80;var _0x486251,_0x5ac671,_0x80e864;return(_0x486251=(_0x5ac671=(_0x80e864=this[_0xf81842(0x328)])[_0xf81842(0x250)])==null?void 0x0:_0x5ac671[_0xf81842(0x2c2)](_0x80e864,_0x54c79e))==null?_0x54c79e:_0x486251;}['_transformRemoteChangesetByStateCache'](_0x29f3ff){var _0x53ea62,_0x374c8c,_0xbc9064;return(_0x53ea62=(_0x374c8c=(_0xbc9064=this['_handler'])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x374c8c['call'](_0xbc9064,_0x29f3ff))==null?_0x29f3ff:_0x53ea62;}[_0x50ca80(0x34b)](_0x46a81e){const _0x523d48=_0x50ca80;if(this[_0x523d48(0x2e3)]===_0x261bc8[_0x523d48(0x258)]){let {unitID:_0x3fb7ba,mutations:_0x2c3f7f,memberID:_0x29e541}=_0x46a81e,_0x5b724c=_0x2c3f7f[_0x523d48(0x29f)]>0x0?_0x2c3f7f[0x0][_0x523d48(0x2f0)][_0x523d48(0x14d)]:[];if(Array[_0x523d48(0xf7)](_0x5b724c)&&_0x5b724c[_0x523d48(0x29f)]>0x0){var _0x4b010d,_0x32001f;(_0x4b010d=(_0x32001f=this[_0x523d48(0x328)])[_0x523d48(0x30e)])==null||_0x4b010d[_0x523d48(0x2c2)](_0x32001f,{'unitID':_0x3fb7ba,'memberID':_0x29e541,'textRanges':_0x5b724c});}}}[_0x50ca80(0x222)](){const _0x30a341=_0x50ca80;var _0x28ff7e;(_0x28ff7e=this[_0x30a341(0x1f5)])==null||_0x28ff7e[_0x30a341(0x350)](this[_0x30a341(0x247)],this['type'],this['_awaitingChangeset'],this[_0x30a341(0x1fa)]);}['_getCurrentRevision'](){const _0x38b7da=_0x50ca80;return this[_0x38b7da(0x33d)][_0x38b7da(0x15a)](this[_0x38b7da(0x247)]);}[_0x50ca80(0x15d)](){const _0x3f1ef6=_0x50ca80;this['_revisionService'][_0x3f1ef6(0x277)](this['unitID']);}['_executeRemoteChangeset'](_0x38e47a){const _0x13cfb5=_0x50ca80;let _0x25e8f9=this[_0x13cfb5(0x1f2)](_0x38e47a);_0x25e8f9=this[_0x13cfb5(0xfd)](_0x25e8f9);let _0x19382f=_0x1d2185(_0x25e8f9[_0x13cfb5(0x301)],this[_0x13cfb5(0x1ce)],{'fromCollab':!0x0});if(!_0x19382f[_0x13cfb5(0x18a)]){var _0x55e2f6;throw _0x19382f[_0x13cfb5(0x292)]instanceof Error?_0x19382f[_0x13cfb5(0x292)]:Error((_0x55e2f6=_0x19382f[_0x13cfb5(0x292)])==null?_0x13cfb5(0x238):_0x55e2f6);}this[_0x13cfb5(0x2c3)](_0x25e8f9),this[_0x13cfb5(0x2bb)](_0x25e8f9),this[_0x13cfb5(0x279)](_0x38e47a),this[_0x13cfb5(0x2cc)](_0x25e8f9),this[_0x13cfb5(0x34b)](_0x25e8f9),this[_0x13cfb5(0x15d)]();}};let G=class extends W{constructor(_0x4ac7ae,_0x598471,_0x15ed1b,_0x1338e0,_0x30d0e9,_0x1b11be,_0x1ce489,_0x46f9d9,_0x3aa93c,_0x19402a){const _0x2ac3a4=_0x50ca80;super(_0x4ac7ae,_0x598471,null,[],_0x15ed1b,_0x1ce489,_0x1b11be,_0x1338e0,_0x19402a),this[_0x2ac3a4(0x102)]=_0x30d0e9,this[_0x2ac3a4(0x313)]=_0x46f9d9,this['_transformService']=_0x3aa93c,this[_0x2ac3a4(0x22d)]=_0x19402a,I(this,'status',_0x2ac3a4(0x255));}['appendMutation'](_0x31d3da){const _0x3ae587=_0x50ca80;let _0x4b9424=this[_0x3ae587(0x102)]['createInstance'](K,this[_0x3ae587(0x247)],this[_0x3ae587(0x2e3)],[_0x31d3da],this[_0x3ae587(0x328)]);return _0x4b9424[_0x3ae587(0x1ac)](),_0x4b9424[_0x3ae587(0x222)](),_0x4b9424;}[_0x50ca80(0x169)](_0x56b605){const _0x9abe39=_0x50ca80;if(this['_checkMissing'](_0x56b605))return this[_0x9abe39(0x102)][_0x9abe39(0x25a)](Z,this[_0x9abe39(0x247)],this[_0x9abe39(0x2e3)],null,[],null,[_0x56b605],this[_0x9abe39(0x328)]);try{let _0x149f1d=this['_transformService'][_0x9abe39(0x25f)](_0x56b605,[_0x43243e]);if(_0xa549dc(_0x149f1d)){let {c1Prime:_0x3c37a2}=_0x149f1d;return this[_0x9abe39(0x2e4)](_0x3c37a2),this;}throw _0x149f1d['error'];}catch(_0x359c61){return this[_0x9abe39(0x313)][_0x9abe39(0x292)](_0x359c61),this[_0x9abe39(0x185)](!0x1);}}[_0x50ca80(0x185)](_0x13e005){const _0x23ee1b=_0x50ca80;return this['_injector'][_0x23ee1b(0x25a)](Y,this[_0x23ee1b(0x247)],this[_0x23ee1b(0x2e3)],null,[],this['_handler'],_0x13e005);}[_0x50ca80(0x32a)](_0x20d607){const _0x3cac27=_0x50ca80;if(_0x20d607[_0x3cac27(0x133)]<=this['_getCurrentRevision']())return this;throw Error(_0x3cac27(0x311));}['onRemoteRej'](){const _0x3a1901=_0x50ca80;throw Error(_0x3a1901(0x20b));}[_0x50ca80(0x2d9)](){return this;}[_0x50ca80(0x2ba)](){const _0x3daa99=_0x50ca80;return this[_0x3daa99(0x102)][_0x3daa99(0x25a)](X,this[_0x3daa99(0x247)],this['type'],null,[],this[_0x3daa99(0x328)]);}['toggleOnline'](){return this;}[_0x50ca80(0x298)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x50ca80(0x13d)](){const _0x3935fa=_0x50ca80;let _0x536d37=this[_0x3935fa(0x33d)][_0x3935fa(0x15a)](this['unitID']);return this['_handler'][_0x3935fa(0x183)]({'from':_0x536d37,'to':0x0}),this['_injector'][_0x3935fa(0x25a)](Z,this[_0x3935fa(0x247)],this[_0x3935fa(0x2e3)],null,[],null,[],this[_0x3935fa(0x328)]);}};G=z([R(0x3,_0x4bd6ab(_0x4565f5)),R(0x4,_0x4bd6ab(_0x280033)),R(0x5,_0x16c6c1),R(0x6,_0x2d9981),R(0x7,_0x5b7991),R(0x8,_0x1726e6),R(0x9,_0x122efe(V))],G);let K=zt=class extends W{constructor(_0x4b6d71,_0x34782c,_0x41425b,_0x87e31e,_0x183df6,_0x3f81fd,_0x13c508,_0x4f3be9,_0x41de11,_0x3f16bb,_0x1559a7,_0x5bdc7f,_0x146045,_0x186406){const _0x309a34=_0x50ca80;super(_0x4b6d71,_0x34782c,null,_0x41425b,_0x87e31e,_0x41de11,_0x146045,_0x3f81fd,_0x186406),this[_0x309a34(0x102)]=_0x183df6,this[_0x309a34(0x1b3)]=_0x13c508,this[_0x309a34(0x313)]=_0x4f3be9,this[_0x309a34(0x136)]=_0x3f16bb,this['_transformService']=_0x1559a7,this[_0x309a34(0x257)]=_0x5bdc7f,I(this,'status',_0x309a34(0x14f)),I(this,_0x309a34(0x209),null),I(this,_0x309a34(0x35e),null);}[_0x50ca80(0x26f)](_0x595ad){const _0x3c18bc=_0x50ca80;return this['_pendingMutations'][_0x3c18bc(0x271)](_0x595ad),this[_0x3c18bc(0x222)](),this;}[_0x50ca80(0x169)](_0x5e0a3b){const _0x3dabfb=_0x50ca80;if(this[_0x3dabfb(0x31f)](_0x5e0a3b))return this[_0x3dabfb(0xfb)](),this[_0x3dabfb(0x102)]['createInstance'](Z,this['unitID'],this[_0x3dabfb(0x2e3)],null,this['_pendingMutations'],null,[_0x5e0a3b],this[_0x3dabfb(0x328)]);try{let _0x55199e=this['_transformService'][_0x3dabfb(0x25f)](_0x5e0a3b,this['_pendingMutations']);if(_0xa549dc(_0x55199e)){let {c1Prime:_0x3e9791,m2Prime:_0x106615}=_0x55199e;this[_0x3dabfb(0x2e4)](_0x3e9791);let _0x503b23=this[_0x3dabfb(0x102)]['createInstance'](zt,this['unitID'],this[_0x3dabfb(0x2e3)],_0x106615,this[_0x3dabfb(0x328)]);this[_0x3dabfb(0xfb)]();let _0x551ff8=new Date()[_0x3dabfb(0x356)](),_0x3efb49=this[_0x3dabfb(0x209)]?Math[_0x3dabfb(0x280)](this['_scheduleCompleteTimestamp']-_0x551ff8,0x0):this[_0x3dabfb(0x212)]();return _0x503b23[_0x3dabfb(0x1ac)](_0x3efb49),_0x503b23;}throw _0x55199e[_0x3dabfb(0x292)];}catch(_0x381e2b){return this['_logService'][_0x3dabfb(0x292)](_0x381e2b),this[_0x3dabfb(0x185)](!0x1);}}['onRemoteAck'](_0x40b20c){const _0x24d721=_0x50ca80;if(_0x40b20c[_0x24d721(0x133)]<=this['_getCurrentRevision']())return this;throw Error(_0x24d721(0x2b8));}[_0x50ca80(0x1d8)](){const _0x103ad6=_0x50ca80;throw Error(_0x103ad6(0x20d));}[_0x50ca80(0x2d9)](){return this;}[_0x50ca80(0x2ba)](){const _0x4c2f7d=_0x50ca80;return this['_clearScheduledTask'](),this[_0x4c2f7d(0x102)]['createInstance'](X,this[_0x4c2f7d(0x247)],this[_0x4c2f7d(0x2e3)],null,this[_0x4c2f7d(0x1fa)],this['_handler']);}[_0x50ca80(0x1df)](){return this;}['_schedule'](_0x7a663){const _0x2b1197=_0x50ca80;let _0x4c4e11=_0x7a663==null?this[_0x2b1197(0x212)]():_0x7a663;this[_0x2b1197(0x209)]=new Date()[_0x2b1197(0x356)]()+_0x4c4e11,this['_sendingTimer']=setTimeout(()=>{const _0x56312c=_0x2b1197;this[_0x56312c(0xfb)]();let _0x2c5564=null;switch(this[_0x56312c(0x2e3)]){case _0x261bc8[_0x56312c(0x144)]:_0x2c5564=It(this[_0x56312c(0x1fa)],this[_0x56312c(0x247)],this[_0x56312c(0x257)],this[_0x56312c(0x33d)],this['_memberService']);break;case _0x261bc8[_0x56312c(0x258)]:_0x2c5564=this[_0x56312c(0x1fa)][_0x56312c(0x27d)](_0x1311ee=>_0x1311ee['id']===_0x4add4c['id'])?Lt(this[_0x56312c(0x1fa)],this[_0x56312c(0x247)],this[_0x56312c(0x257)],this['_revisionService'],this['_memberService']):It(this['_pendingMutations'],this['unitID'],this[_0x56312c(0x257)],this[_0x56312c(0x33d)],this['_memberService']);break;default:throw Error(_0x56312c(0x149)+this['type']+'\x20in\x20_schedule.');}let {changeset:_0x382a19,pendingMutations:_0x2e2728}=_0x2c5564;this[_0x56312c(0x328)][_0x56312c(0x200)](_0x382a19);let _0x460ffa=_0x2e2728[_0x56312c(0x29f)]?this[_0x56312c(0x102)][_0x56312c(0x25a)](J,this[_0x56312c(0x247)],this['type'],_0x382a19,_0x2e2728,this['_handler'],void 0x0):this[_0x56312c(0x102)][_0x56312c(0x25a)](q,this['unitID'],this['type'],_0x382a19,this[_0x56312c(0x328)]);_0x460ffa[_0x56312c(0x222)](),this[_0x56312c(0x328)]['onStateChange'](this,_0x460ffa);},_0x4c4e11);}['_getSendChangesetTimeout'](){const _0x5b0455=_0x50ca80;var _0x3064da;let _0x3bdaa6=this[_0x5b0455(0x136)]['getConfig'](U);return(_0x3064da=_0x3bdaa6==null?void 0x0:_0x3bdaa6['sendChangesetTimeout'])==null?0x7d0:_0x3064da;}[_0x50ca80(0x298)](){const _0x528d25=_0x50ca80;throw Error(_0x528d25(0x1e8));}['_clearScheduledTask'](){const _0x5c4299=_0x50ca80;this[_0x5c4299(0x35e)]!=null&&(clearTimeout(this[_0x5c4299(0x35e)]),this['_sendingTimer']=null);}['_onConflict'](_0x424e5b){const _0x24a586=_0x50ca80;return this[_0x24a586(0xfb)](),this[_0x24a586(0x102)][_0x24a586(0x25a)](Y,this[_0x24a586(0x247)],this[_0x24a586(0x2e3)],null,this[_0x24a586(0x1fa)],this[_0x24a586(0x328)],_0x424e5b);}};K=zt=z([R(0x4,_0x4bd6ab(_0x280033)),R(0x5,_0x4bd6ab(_0x4565f5)),R(0x6,_0x4bd6ab(B)),R(0x7,_0x5b7991),R(0x8,_0x2d9981),R(0x9,_0x25ecfe),R(0xa,_0x1726e6),R(0xb,_0x2dad56),R(0xc,_0x16c6c1),R(0xd,_0x122efe(V))],K);let q=Bt=class extends W{constructor(_0xd2eb13,_0x1c2e9c,_0x260c98,_0x85816b,_0x5af78b,_0x2e6c6f,_0x2145d8,_0x33d97e,_0x132685,_0x4ef044,_0x5ad294){const _0x39fdc4=_0x50ca80;super(_0xd2eb13,_0x1c2e9c,_0x260c98,[],_0x85816b,_0x2145d8,_0x4ef044,_0x2e6c6f,_0x5ad294),this[_0x39fdc4(0x102)]=_0x5af78b,this[_0x39fdc4(0x313)]=_0x33d97e,this[_0x39fdc4(0x1a3)]=_0x132685,I(this,_0x39fdc4(0x1a6),_0x39fdc4(0x330)),I(this,_0x39fdc4(0x2eb),0x0),I(this,_0x39fdc4(0x265),0x0),I(this,_0x39fdc4(0x309),void 0x0),I(this,'_sender',void 0x0);}['appendMutation'](_0x1a8dc5){const _0x3a786e=_0x50ca80;this[_0x3a786e(0xfb)]();let _0x146457=this[_0x3a786e(0x102)][_0x3a786e(0x25a)](J,this['unitID'],this[_0x3a786e(0x2e3)],this[_0x3a786e(0x1f0)],[_0x1a8dc5],this[_0x3a786e(0x328)],this[_0x3a786e(0x309)]);return _0x146457['_updateLocalCache'](),_0x146457;}['onRemoteChangeset'](_0x4eb728){const _0x380d9d=_0x50ca80;if(this[_0x380d9d(0x31f)](_0x4eb728))return this[_0x380d9d(0xfb)](),this['_injector'][_0x380d9d(0x25a)](Z,this['unitID'],this[_0x380d9d(0x2e3)],this[_0x380d9d(0x1f0)],[],null,[_0x4eb728],this[_0x380d9d(0x328)]);try{let _0x3e9eb0=this['_transformService']['transformChangesets']([_0x4eb728],[this['_awaitingChangeset']],!0x1);if(_0x3fa49e(_0x3e9eb0)){let {c1Prime:_0x1395d9,c2Prime:_0x38db50}=_0x3e9eb0;this[_0x380d9d(0x2e4)](_0x1395d9[0x0]),_0x38db50[0x0][_0x380d9d(0x26e)]=this[_0x380d9d(0x2ec)](),this[_0x380d9d(0xfb)]();let _0x464f6f=this['_injector'][_0x380d9d(0x25a)](Bt,this['unitID'],this[_0x380d9d(0x2e3)],_0x38db50[0x0],this['_handler']);return _0x464f6f['_updateLocalCache'](),_0x464f6f;}throw _0x3e9eb0[_0x380d9d(0x292)];}catch(_0xff2cd8){return this[_0x380d9d(0x313)][_0x380d9d(0x292)](_0xff2cd8),this[_0x380d9d(0x185)](!0x1);}}[_0x50ca80(0x32a)](_0x4e7a70){const _0x2e600c=_0x50ca80;this[_0x2e600c(0xfb)]();let _0x4a8451=this[_0x2e600c(0x33d)]['getCurrentRevOfUnit'](this['unitID']);if(_0x4e7a70[_0x2e600c(0x133)]<=_0x4a8451)return this;if(this[_0x2e600c(0x31f)](_0x4e7a70))return this[_0x2e600c(0x102)][_0x2e600c(0x25a)](Z,this[_0x2e600c(0x247)],this['type'],this[_0x2e600c(0x1f0)],[],_0x4e7a70['revision'],[],this[_0x2e600c(0x328)]);this[_0x2e600c(0x15d)]();let _0x23b50f=this[_0x2e600c(0x102)][_0x2e600c(0x25a)](G,this['unitID'],this[_0x2e600c(0x2e3)],this[_0x2e600c(0x328)]);return _0x23b50f[_0x2e600c(0x222)](),_0x23b50f;}['onRemoteRej'](_0x253cf6){const _0x483aee=_0x50ca80;return this[_0x483aee(0x185)](!!(_0x253cf6!=null&&_0x253cf6[_0x483aee(0x134)]));}['onRemoteRetry'](_0x2b38de){const _0x135c4b=_0x50ca80;return this[_0x135c4b(0x265)]>Wt?this[_0x135c4b(0x2ba)]():(this[_0x135c4b(0x309)]=Rt(this[_0x135c4b(0x2eb)],{'timeout':this[_0x135c4b(0x2eb)],'reqId':_0x2b38de['reqId']}),this[_0x135c4b(0xfc)]=this[_0x135c4b(0x309)][_0x135c4b(0x1fe)](({reqId:_0xae33cc,timeout:_0x34c96e})=>{const _0x5242c7=_0x135c4b;this[_0x5242c7(0x326)](_0xae33cc,_0x34c96e);}),this);}[_0x50ca80(0x2ba)](){const _0x733dc7=_0x50ca80;return this[_0x733dc7(0xfb)](),this[_0x733dc7(0x102)][_0x733dc7(0x25a)](X,this['unitID'],this[_0x733dc7(0x2e3)],this[_0x733dc7(0x1f0)],[],this['_handler']);}[_0x50ca80(0x1df)](){return this;}['resend'](){const _0x30947e=_0x50ca80;this[_0x30947e(0x328)][_0x30947e(0x200)](this[_0x30947e(0x1f0)]);}[_0x50ca80(0x185)](_0xf3a9d4){const _0x5c7db8=_0x50ca80;return this['_clearScheduledTask'](),this[_0x5c7db8(0x102)]['createInstance'](Y,this[_0x5c7db8(0x247)],this['type'],this[_0x5c7db8(0x1f0)],[],this[_0x5c7db8(0x328)],_0xf3a9d4);}[_0x50ca80(0x326)](_0x5b92bc,_0x241e1a){const _0x389712=_0x50ca80;var _0x19a5d6;_0x5b92bc===((_0x19a5d6=this[_0x389712(0x1f0)])==null?void 0x0:_0x19a5d6[_0x389712(0x2b5)])&&(this[_0x389712(0x298)](),this[_0x389712(0x2eb)]=_0x241e1a===0x0?0x3e8:Math[_0x389712(0x14b)](_0x241e1a*0x2,Ut),this[_0x389712(0x265)]+=this[_0x389712(0x2eb)]);}[_0x50ca80(0xfb)](){const _0x52bc95=_0x50ca80;var _0x444dce;(_0x444dce=this[_0x52bc95(0xfc)])==null||_0x444dce[_0x52bc95(0x19f)](),this['_resendTimeout']=0x0,this[_0x52bc95(0x265)]=0x0;}};q=Bt=z([R(0x4,_0x4bd6ab(_0x280033)),R(0x5,_0x4bd6ab(_0x4565f5)),R(0x6,_0x2d9981),R(0x7,_0x5b7991),R(0x8,_0x1726e6),R(0x9,_0x16c6c1),R(0xa,_0x122efe(V))],q);let J=Vt=class extends W{constructor(_0xede22a,_0x1eb85c,_0x15cd14,_0x523483,_0x31009c,_0x1d0b31,_0x50e548,_0x45ef62,_0x4b5aec,_0x50ebb5,_0x2b950e,_0x998d08,_0x46fce7){const _0x1cb776=_0x50ca80;super(_0xede22a,_0x1eb85c,_0x15cd14,_0x523483,_0x31009c,_0x4b5aec,_0x998d08,_0x45ef62,_0x46fce7),this['_injector']=_0x50e548,this[_0x1cb776(0x313)]=_0x50ebb5,this[_0x1cb776(0x1a3)]=_0x2b950e,this[_0x1cb776(0x22d)]=_0x46fce7,I(this,'status',_0x1cb776(0x2a4)),I(this,_0x1cb776(0x2eb),0x0),I(this,_0x1cb776(0x265),0x0),I(this,_0x1cb776(0x309),void 0x0),I(this,_0x1cb776(0xfc),void 0x0),_0x1d0b31&&(this[_0x1cb776(0x309)]=_0x1d0b31,this[_0x1cb776(0xfc)]=this['_resendTimer'][_0x1cb776(0x1fe)](({reqId:_0x247730,timeout:_0x593409})=>{const _0x51ed14=_0x1cb776;this[_0x51ed14(0x326)](_0x247730,_0x593409);}));}['appendMutation'](_0x2259d1){const _0x6e6fc8=_0x50ca80;return this[_0x6e6fc8(0x1fa)]['push'](_0x2259d1),this;}[_0x50ca80(0x169)](_0x424376){const _0x3d5ef5=_0x50ca80;if(this[_0x3d5ef5(0x31f)](_0x424376))return this[_0x3d5ef5(0xfb)](),this['_injector'][_0x3d5ef5(0x25a)](Z,this[_0x3d5ef5(0x247)],this[_0x3d5ef5(0x2e3)],this[_0x3d5ef5(0x1f0)],this[_0x3d5ef5(0x1fa)],null,[_0x424376],this['_handler']);try{let _0x189568=this[_0x3d5ef5(0x1a3)]['transformChangesets']([_0x424376],[this[_0x3d5ef5(0x1f0)]],!0x1);if(_0x3fa49e(_0x189568)){let {c1Prime:_0x49a953,c2Prime:_0x36faf8}=_0x189568,_0x1e1c9a=this['_transformService'][_0x3d5ef5(0x25f)](_0x49a953[0x0],this[_0x3d5ef5(0x1fa)]);if(_0xa549dc(_0x1e1c9a)){let {c1Prime:_0x38e4da,m2Prime:_0x50e7e0}=_0x1e1c9a;return this[_0x3d5ef5(0x2e4)](_0x38e4da),_0x36faf8[0x0][_0x3d5ef5(0x26e)]=this['_getCurrentRevision'](),this[_0x3d5ef5(0xfb)](),this['_injector'][_0x3d5ef5(0x25a)](Vt,this[_0x3d5ef5(0x247)],this['type'],_0x36faf8[0x0],_0x50e7e0,this[_0x3d5ef5(0x328)],void 0x0);}throw _0x1e1c9a[_0x3d5ef5(0x292)];}throw _0x189568[_0x3d5ef5(0x292)];}catch(_0x2af00e){return this[_0x3d5ef5(0x313)][_0x3d5ef5(0x292)](_0x2af00e),this['_onConflict'](!0x1);}}[_0x50ca80(0x32a)](_0x32632a){const _0x177db4=_0x50ca80;this[_0x177db4(0xfb)]();let _0x286309=this[_0x177db4(0x2ec)]();if(_0x32632a[_0x177db4(0x133)]<=_0x286309)return this;if(this[_0x177db4(0x31f)](_0x32632a))return this['_injector'][_0x177db4(0x25a)](Z,this['unitID'],this['type'],this[_0x177db4(0x1f0)],this[_0x177db4(0x1fa)],_0x32632a[_0x177db4(0x133)],[],this[_0x177db4(0x328)]);this['_incrementRevisionNumber']();let _0x3729b0=this[_0x177db4(0x102)][_0x177db4(0x25a)](K,this[_0x177db4(0x247)],this[_0x177db4(0x2e3)],this[_0x177db4(0x1fa)],this[_0x177db4(0x328)]);return _0x3729b0[_0x177db4(0x1ac)](),_0x3729b0[_0x177db4(0x222)](),_0x3729b0;}['onRemoteRej'](_0x17276d){const _0x4de36b=_0x50ca80;return this[_0x4de36b(0x185)](!!(_0x17276d!=null&&_0x17276d[_0x4de36b(0x134)]));}[_0x50ca80(0x2d9)](_0x3587fa){const _0x48c372=_0x50ca80;return this[_0x48c372(0x265)]>Wt?this[_0x48c372(0x2ba)]():(this[_0x48c372(0x309)]=Rt(this[_0x48c372(0x2eb)],{'timeout':this[_0x48c372(0x2eb)],'reqId':_0x3587fa[_0x48c372(0x2b5)]}),this[_0x48c372(0xfc)]=this[_0x48c372(0x309)][_0x48c372(0x1fe)](({reqId:_0x50aa50,timeout:_0x3d4b93})=>{const _0x12dfc4=_0x48c372;this[_0x12dfc4(0x326)](_0x50aa50,_0x3d4b93);}),this);}[_0x50ca80(0x2ba)](){const _0x35c839=_0x50ca80;return this[_0x35c839(0xfb)](),this[_0x35c839(0x102)][_0x35c839(0x25a)](X,this['unitID'],this[_0x35c839(0x2e3)],this[_0x35c839(0x1f0)],this['_pendingMutations'],this['_handler']);}['toggleOnline'](){return this;}[_0x50ca80(0x298)](){const _0x535cdf=_0x50ca80;this[_0x535cdf(0x328)][_0x535cdf(0x200)](this[_0x535cdf(0x1f0)]);}[_0x50ca80(0x185)](_0x484a6e){const _0x25c5ac=_0x50ca80;return this[_0x25c5ac(0xfb)](),this[_0x25c5ac(0x102)][_0x25c5ac(0x25a)](Y,this[_0x25c5ac(0x247)],this[_0x25c5ac(0x2e3)],null,this[_0x25c5ac(0x1fa)],this[_0x25c5ac(0x328)],_0x484a6e);}['_resendWithTimeout'](_0x479950,_0x59ef15){const _0x3ef13b=_0x50ca80;var _0x1c22aa;_0x479950===((_0x1c22aa=this['_awaitingChangeset'])==null?void 0x0:_0x1c22aa[_0x3ef13b(0x2b5)])&&(this[_0x3ef13b(0x298)](),this[_0x3ef13b(0x2eb)]=_0x59ef15===0x0?0x3e8:Math[_0x3ef13b(0x14b)](_0x59ef15*0x2,Ut),this[_0x3ef13b(0x265)]+=this['_resendTimeout']);}['_clearScheduledTask'](){const _0x59fb55=_0x50ca80;var _0x3db71d;(_0x3db71d=this[_0x59fb55(0xfc)])==null||_0x3db71d[_0x59fb55(0x19f)](),this[_0x59fb55(0x2eb)]=0x0,this[_0x59fb55(0x265)]=0x0;}};J=Vt=z([R(0x6,_0x4bd6ab(_0x280033)),R(0x7,_0x4bd6ab(_0x4565f5)),R(0x8,_0x2d9981),R(0x9,_0x5b7991),R(0xa,_0x1726e6),R(0xb,_0x16c6c1),R(0xc,_0x122efe(V))],J);let Y=class extends W{constructor(_0x55bf3b,_0x53ea02,_0x53f761,_0x1146ee,_0xd28ffb,_0x41c137=!0x1,_0x45fe32,_0x49e1d,_0x18477b,_0x390a75,_0x5697e3,_0x4b07b5,_0x4d9e02){const _0x3b4601=_0x50ca80;super(_0x55bf3b,_0x53ea02,_0x53f761,_0x1146ee,_0xd28ffb,_0x49e1d,_0x18477b,_0x390a75,_0x4d9e02),this['_isPermissionRej']=_0x41c137,this[_0x3b4601(0x187)]=_0x45fe32,this[_0x3b4601(0x182)]=_0x5697e3,this[_0x3b4601(0x286)]=_0x4b07b5,this[_0x3b4601(0x22d)]=_0x4d9e02,I(this,_0x3b4601(0x1a6),_0x3b4601(0x321)),this[_0x3b4601(0x2ff)](),this[_0x3b4601(0x17a)](),this[_0x3b4601(0x305)]();}[_0x50ca80(0x26f)](){return this;}[_0x50ca80(0x169)](){return this;}['onRemoteAck'](){return this;}[_0x50ca80(0x1d8)](){return this;}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x50ca80(0x1df)](){return this;}[_0x50ca80(0x298)](){const _0xca88c5=_0x50ca80;throw Error(_0xca88c5(0x2fe));}[_0x50ca80(0x17a)](){const _0x1c5efb=_0x50ca80;var _0x1e42be;(_0x1e42be=this[_0x1c5efb(0x1f5)])==null||_0x1e42be[_0x1c5efb(0x350)](this[_0x1c5efb(0x247)],this[_0x1c5efb(0x2e3)],null,[]);}[_0x50ca80(0x2ff)](){const _0x44c38b=_0x50ca80;this[_0x44c38b(0x18f)]?this[_0x44c38b(0x286)][_0x44c38b(0x355)]({'id':_0x44c38b(0x165)}):this['_collaborationUIEventService'][_0x44c38b(0x355)]({'id':_0x44c38b(0x1ba)});}['_disableEditing'](){const _0x4bd12c=_0x50ca80;this[_0x4bd12c(0x187)]['updatePermissionPoint'](new _0x2c6ff9(this['unitID'])['id'],!0x1);}};Y=z([R(0x6,_0x4bd6ab(_0x393a1b)),R(0x7,_0x2d9981),R(0x8,_0x16c6c1),R(0x9,_0x4bd6ab(_0x4565f5)),R(0xa,_0x4bd6ab(_0x4d3fc2)),R(0xb,_0x4bd6ab(L)),R(0xc,_0x122efe(V))],Y);let X=class extends W{constructor(_0x467503,_0x18dc57,_0x4f2c9b,_0x16788e,_0x20c510,_0x50977d,_0x3acea0,_0x31e51a,_0xc91da7,_0x4127f2){const _0x402f9f=_0x50ca80;super(_0x467503,_0x18dc57,_0x4f2c9b,_0x16788e,_0x20c510,_0x31e51a,_0xc91da7,_0x3acea0,_0x4127f2),this[_0x402f9f(0x102)]=_0x50977d,I(this,_0x402f9f(0x1a6),_0x402f9f(0x1a2));}['appendMutation'](_0x23b1cc){const _0x12ecc3=_0x50ca80;return this[_0x12ecc3(0x1fa)][_0x12ecc3(0x271)](_0x23b1cc),this[_0x12ecc3(0x222)](),this;}[_0x50ca80(0x169)](_0x353627){const _0x4a9cad=_0x50ca80;throw Error(_0x4a9cad(0x1bb));}['onRemoteAck'](){const _0x4ac674=_0x50ca80;throw Error(_0x4ac674(0x24e));}[_0x50ca80(0x1d8)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x50ca80(0x2d9)](){return this;}[_0x50ca80(0x2ba)](){return this;}[_0x50ca80(0x1df)](){const _0x2946b7=_0x50ca80;let {_injector:_0x3cfcab,_pendingMutations:_0x2c251a,_awaitingChangeset:_0x47f5d6,unitID:_0x9c132c,_handler:_0x31b0a1,type:_0x18a889}=this,_0x33e3e7=Gt(_0x3cfcab,_0x9c132c,_0x18a889,_0x47f5d6,_0x2c251a,_0x31b0a1);return _0x33e3e7 instanceof K?_0x33e3e7[_0x2946b7(0x1ac)]():(_0x33e3e7 instanceof J||_0x33e3e7 instanceof q)&&_0x33e3e7[_0x2946b7(0x298)](),_0x33e3e7;}['resend'](){const _0x5bf80a=_0x50ca80;throw Error(_0x5bf80a(0x172));}};X=z([R(0x5,_0x4bd6ab(_0x280033)),R(0x6,_0x4bd6ab(_0x4565f5)),R(0x7,_0x2d9981),R(0x8,_0x16c6c1),R(0x9,_0x122efe(V))],X);let Z=class extends W{constructor(_0x233b46,_0x2bd5ec,_0x46d62d,_0x5713dd,_0x5a8968,_0x5e462b,_0x12f182,_0x5a709a,_0x13ceb4,_0x1f1f70,_0x5ea395,_0x3526eb,_0x43720b,_0x54d4a3){const _0x441af6=_0x50ca80;super(_0x233b46,_0x2bd5ec,_0x46d62d,_0x5713dd,_0x12f182,_0x5ea395,_0x3526eb,_0x13ceb4,_0x54d4a3),this[_0x441af6(0x2aa)]=_0x5a8968,this[_0x441af6(0x1eb)]=_0x5e462b,this[_0x441af6(0x102)]=_0x5a709a,this[_0x441af6(0x313)]=_0x1f1f70,this[_0x441af6(0x1a3)]=_0x43720b,this['localCacheService']=_0x54d4a3,I(this,_0x441af6(0x1a6),_0x441af6(0x1ea));}[_0x50ca80(0x186)](_0x49ec6c){const _0x11ae2f=_0x50ca80;try{if(this[_0x11ae2f(0x27e)](_0x49ec6c)[_0x11ae2f(0x283)])throw Error(_0x11ae2f(0x260));if(this['_handleRemoteChangesets']([...this['_queuedRemoteChangesets']][_0x11ae2f(0x1af)]((_0x4ba4f7,_0x38cfdc)=>_0x4ba4f7[_0x11ae2f(0x133)]-_0x38cfdc[_0x11ae2f(0x133)]))[_0x11ae2f(0x283)])return this[_0x11ae2f(0x1eb)]=[],this[_0x11ae2f(0x222)](),this[_0x11ae2f(0x328)]['onMissingChangesets']({'from':this[_0x11ae2f(0x2ec)](),'to':0x0}),this;let _0x514433=this[_0x11ae2f(0x1f0)],_0x55636e=this['_pendingMutations'],_0x4e109c;if(_0x514433&&_0x55636e[_0x11ae2f(0x29f)]!==0x0)_0x4e109c=this['_injector'][_0x11ae2f(0x25a)](J,this['unitID'],this[_0x11ae2f(0x2e3)],_0x514433,_0x55636e,this[_0x11ae2f(0x328)],void 0x0);else{if(_0x514433&&_0x55636e[_0x11ae2f(0x29f)]===0x0)_0x514433[_0x11ae2f(0x26e)]=this[_0x11ae2f(0x2ec)](),_0x4e109c=this[_0x11ae2f(0x102)][_0x11ae2f(0x25a)](q,this[_0x11ae2f(0x247)],this[_0x11ae2f(0x2e3)],_0x514433,this[_0x11ae2f(0x328)]);else{if(_0x55636e['length']!==0x0){let _0x2f1115=this[_0x11ae2f(0x102)]['createInstance'](K,this['unitID'],this[_0x11ae2f(0x2e3)],_0x55636e,this[_0x11ae2f(0x328)]);_0x2f1115['_schedule'](),_0x4e109c=_0x2f1115;}else _0x4e109c=this['_injector'][_0x11ae2f(0x25a)](G,this[_0x11ae2f(0x247)],this[_0x11ae2f(0x2e3)],this[_0x11ae2f(0x328)]);}}return _0x4e109c[_0x11ae2f(0x222)](),_0x4e109c;}catch(_0x1adf61){return this[_0x11ae2f(0x313)][_0x11ae2f(0x292)](_0x11ae2f(0x10d),'failed\x20to\x20apply\x20missed\x20changesets!',_0x1adf61),this[_0x11ae2f(0x102)][_0x11ae2f(0x25a)](Y,this[_0x11ae2f(0x247)],this[_0x11ae2f(0x2e3)],this['_awaitingChangeset'],this[_0x11ae2f(0x1fa)],this[_0x11ae2f(0x328)],!0x1);}}[_0x50ca80(0x27e)](_0xfce5a7){const _0x489800=_0x50ca80;this['_acknowledgeAwaitingIfReady']();for(let _0x457f29=0x0;_0x457f29<_0xfce5a7['length'];_0x457f29++){let _0x10f9db=_0xfce5a7[_0x457f29],_0x5a0fbb=this[_0x489800(0x2ec)]();if(!(_0x10f9db[_0x489800(0x133)]<=_0x5a0fbb)){if(_0x10f9db[_0x489800(0x133)]>_0x5a0fbb+0x1)return{'missingChangesets':!0x0};if(this[_0x489800(0x2ab)](_0x10f9db)){this[_0x489800(0x2c4)]();continue;}this[_0x489800(0x10c)](_0x10f9db),this[_0x489800(0x338)]();}}return{'missingChangesets':!0x1};}[_0x50ca80(0x10c)](_0x218902){const _0x58371c=_0x50ca80;let _0x68cf0d=_0x218902,_0x119d99=this[_0x58371c(0x1f0)];if(_0x119d99){let _0x1f6d64=this['_transformService'][_0x58371c(0x1d7)]([_0x218902],[_0x119d99],!0x1);if(!_0x3fa49e(_0x1f6d64))throw _0x1f6d64[_0x58371c(0x292)];_0x68cf0d=_0x1f6d64['c1Prime'][0x0],_0x119d99=_0x1f6d64['c2Prime'][0x0];}let _0x5df23f=this['_pendingMutations'];if(_0x5df23f[_0x58371c(0x29f)]){let _0x22aec5=this[_0x58371c(0x1a3)]['transformMutationsWithChangeset'](_0x68cf0d,_0x5df23f);if(!_0xa549dc(_0x22aec5))throw _0x22aec5[_0x58371c(0x292)];_0x68cf0d=_0x22aec5[_0x58371c(0xf3)],_0x5df23f=_0x22aec5[_0x58371c(0x2bd)];}this[_0x58371c(0x2e4)](_0x68cf0d),_0x119d99&&(_0x119d99[_0x58371c(0x26e)]=this[_0x58371c(0x2ec)]()),this[_0x58371c(0x1f0)]=_0x119d99,this[_0x58371c(0x1fa)]=_0x5df23f;}[_0x50ca80(0x338)](){const _0x2ee089=_0x50ca80;if(!this[_0x2ee089(0x1f0)]||this['_acknowledgedAwaitingRevision']==null)return;let _0x31db4b=this[_0x2ee089(0x2ec)]();if(this['_acknowledgedAwaitingRevision']<=_0x31db4b)throw Error(_0x2ee089(0x308)+this['_acknowledgedAwaitingRevision']+'.');this['_acknowledgedAwaitingRevision']===_0x31db4b+0x1&&this['_acknowledgeAwaiting']();}[_0x50ca80(0x2c4)](){const _0x37dbb6=_0x50ca80;this['_incrementRevisionNumber'](),this[_0x37dbb6(0x1f0)]=null,this[_0x37dbb6(0x2aa)]=null;}[_0x50ca80(0x2ab)](_0x33b4ee){const _0x1535fe=_0x50ca80;let _0x581427=this[_0x1535fe(0x1f0)];return!_0x581427||!_0x581427[_0x1535fe(0x236)]||_0x581427[_0x1535fe(0x2b5)]===null||_0x581427[_0x1535fe(0x2b5)]===void 0x0?!0x1:_0x33b4ee[_0x1535fe(0x247)]===_0x581427['unitID']&&_0x33b4ee[_0x1535fe(0x236)]===_0x581427[_0x1535fe(0x236)]&&_0x33b4ee['reqId']===_0x581427[_0x1535fe(0x2b5)];}['resend'](){const _0x417da4=_0x50ca80;throw Error(_0x417da4(0x132));}[_0x50ca80(0x26f)](_0x2996db){const _0x512bc2=_0x50ca80;return this['_pendingMutations'][_0x512bc2(0x271)](_0x2996db),this;}['onRemoteChangeset'](_0x2bf462){const _0x113b0c=_0x50ca80;return this[_0x113b0c(0x1eb)]['push'](_0x2bf462),this;}[_0x50ca80(0x32a)](_0x2d76fe){const _0x5cf448=_0x50ca80;if(this[_0x5cf448(0x1f0)]){let _0x3e71ab=this[_0x5cf448(0x2ec)]();return _0x2d76fe['revision']<=_0x3e71ab||(_0x3e71ab+0x1===_0x2d76fe[_0x5cf448(0x133)]?(this[_0x5cf448(0x15d)](),this[_0x5cf448(0x1f0)]=null,this[_0x5cf448(0x2aa)]=null):this[_0x5cf448(0x2aa)]=_0x2d76fe['revision']),this;}if(_0x2d76fe['revision']<=this[_0x5cf448(0x2ec)]())return this;throw Error(_0x5cf448(0x23d));}[_0x50ca80(0x1d8)](_0x2f650a){const _0x3463ca=_0x50ca80;return this['_onConflict'](!!(_0x2f650a!=null&&_0x2f650a[_0x3463ca(0x134)]));}[_0x50ca80(0x2d9)](){return this;}['toggleOffline'](){const _0x3f82e3=_0x50ca80;return this[_0x3f82e3(0x102)]['createInstance'](X,this[_0x3f82e3(0x247)],this[_0x3f82e3(0x2e3)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x3f82e3(0x328)]);}['toggleOnline'](){return this;}[_0x50ca80(0x185)](_0x10be61){const _0x536f78=_0x50ca80;return this['_injector'][_0x536f78(0x25a)](Y,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x536f78(0x1fa)],this[_0x536f78(0x328)],_0x10be61);}};Z=z([R(0x7,_0x4bd6ab(_0x280033)),R(0x8,_0x4bd6ab(_0x4565f5)),R(0x9,_0x5b7991),R(0xa,_0x2d9981),R(0xb,_0x16c6c1),R(0xc,_0x1726e6),R(0xd,_0x122efe(V))],Z);function Gt(_0x7c0050,_0x50786d,_0x2de2cc,_0x515c05,_0x10b9bd,_0xc4159d){const _0x31e12c=_0x50ca80;return _0x515c05&&_0x10b9bd[_0x31e12c(0x29f)]?_0x7c0050[_0x31e12c(0x25a)](J,_0x50786d,_0x2de2cc,_0x515c05,_0x10b9bd,_0xc4159d,void 0x0):_0x515c05?_0x7c0050[_0x31e12c(0x25a)](q,_0x50786d,_0x2de2cc,_0x515c05,_0xc4159d):_0x10b9bd[_0x31e12c(0x29f)]?_0x7c0050['createInstance'](K,_0x50786d,_0x2de2cc,_0x10b9bd,_0xc4159d):_0x7c0050[_0x31e12c(0x25a)](G,_0x50786d,_0x2de2cc,_0xc4159d);}let Kt=class extends _0x1e6e8b{get[_0x50ca80(0x206)](){const _0x5603da=_0x50ca80;return this[_0x5603da(0x17b)];}constructor(_0xc7657a,_0x136419,_0x5b7078,_0x4738c9,_0x49c656,_0x13c8e5,_0x538ea1,_0x6e46cc,_0x272c79,_0x24d293,_0x408f23,_0x11bf77,_0x52befc,_0x25e72a){const _0x5612f3=_0x50ca80;super(),this[_0x5612f3(0x247)]=_0xc7657a,this['session']=_0x136419,this[_0x5612f3(0x115)]=_0x5b7078,this[_0x5612f3(0x102)]=_0x4738c9,this['_compressMutationService']=_0x49c656,this[_0x5612f3(0x182)]=_0x13c8e5,this['_revisionService']=_0x538ea1,this[_0x5612f3(0x231)]=_0x6e46cc,this[_0x5612f3(0x257)]=_0x272c79,this[_0x5612f3(0x313)]=_0x24d293,this['_commandService']=_0x408f23,this[_0x5612f3(0x187)]=_0x11bf77,this[_0x5612f3(0xf9)]=_0x52befc,this[_0x5612f3(0x1f5)]=_0x25e72a,I(this,_0x5612f3(0x232),new _0x4a3716(null)),I(this,'state$',this[_0x5612f3(0x232)][_0x5612f3(0x1d3)]()),I(this,_0x5612f3(0x17b),void 0x0),I(this,_0x5612f3(0x16d),!0x1),I(this,_0x5612f3(0x21c),''),I(this,_0x5612f3(0x2c7),0x0),I(this,'status$',this[_0x5612f3(0x256)][_0x5612f3(0x2b3)](_0x196732(_0xc68931=>_0xc68931?_0xc68931['status']:'offline'),_0x5b45b4(0x1))),I(this,_0x5612f3(0x135),!0x1),I(this,_0x5612f3(0x31a),[]);}async[_0x50ca80(0x331)](){const _0x4cac4a=_0x50ca80;if(this[_0x4cac4a(0x206)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}['pauseCollaboration'](){const _0x1ffd0d=_0x50ca80;return this[_0x1ffd0d(0x16d)]=!0x0,_0x50490a(()=>{const _0x49d800=_0x1ffd0d;this[_0x49d800(0x16d)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['onLocalMutation'](_0x2a9234){const _0x1946b8=_0x50ca80;this[_0x1946b8(0x1ed)](_0x2a9234);}[_0x50ca80(0x2a3)](_0x3480a2){const _0x172a90=_0x50ca80;this[_0x172a90(0x17b)]=_0x3480a2,this[_0x172a90(0x232)][_0x172a90(0x11f)](_0x3480a2);}async['_init'](){const _0x3f24f6=_0x50ca80;if(this['_updateState'](await this[_0x3f24f6(0x155)]()),this[_0x3f24f6(0xf9)]){var _0x2a698d;(_0x2a698d=this[_0x3f24f6(0xf9)])==null||_0x2a698d[_0x3f24f6(0x11c)](this['unitID']),this[_0x3f24f6(0x2e8)](this[_0x3f24f6(0xf9)][_0x3f24f6(0x2db)](this[_0x3f24f6(0x247)])[_0x3f24f6(0x1fe)](_0x2886e7=>{const _0x1144ab=_0x3f24f6;this[_0x1144ab(0x313)][_0x1144ab(0x168)](_0x1144ab(0x219),_0x1144ab(0x2d8),_0x2886e7),_0x2886e7===0x1?(this['_eventService']['emitEvent']({'id':_0x1144ab(0x239)}),this[_0x1144ab(0x187)]['updatePermissionPoint'](new _0x2c6ff9(this[_0x1144ab(0x247)])['id'],!0x1),this[_0x1144ab(0x187)][_0x1144ab(0x293)](!0x1)):(this[_0x1144ab(0x187)][_0x1144ab(0x1ab)](new _0x2c6ff9(this['unitID'])['id'],!0x0),this[_0x1144ab(0x187)][_0x1144ab(0x293)](!0x0));}));}let _0x3bb1a8=!0x1;return this[_0x3f24f6(0x2e8)](this[_0x3f24f6(0xf1)]['sessionStatus$']['subscribe'](_0x1eb8c2=>{const _0x48d085=_0x3f24f6;_0x1eb8c2===0x3?this['_toggleOnline'](_0x3bb1a8):_0x1eb8c2===0x2&&(_0x3bb1a8=!0x0,this[_0x48d085(0x1cf)]());})),this['disposeWithMe'](this[_0x3f24f6(0xf1)][_0x3f24f6(0x1a7)][_0x3f24f6(0x1fe)](_0x5dbf56=>{const _0xff48c4=_0x3f24f6;try{switch(_0x5dbf56['eventID']){case _0x3b8cc3[_0xff48c4(0x141)]:this[_0xff48c4(0x19d)](_0x25ebd1(_0x5dbf56[_0xff48c4(0x1b8)]));break;case _0x3b8cc3[_0xff48c4(0x31c)]:this['_onRemoteACK'](_0x5dbf56[_0xff48c4(0x1b8)]);break;case _0x3b8cc3[_0xff48c4(0x35b)]:this[_0xff48c4(0x2af)]();break;case _0x3b8cc3[_0xff48c4(0x28d)]:this[_0xff48c4(0x2df)](_0x5dbf56[_0xff48c4(0x1b8)]);break;case _0x3b8cc3[_0xff48c4(0x337)]:this[_0xff48c4(0x2b1)](_0x5dbf56[_0xff48c4(0x1b8)][_0xff48c4(0x15e)][_0xff48c4(0x1c9)](_0x5ab02f=>_0x25ebd1(_0x5ab02f)));break;case _0x3b8cc3[_0xff48c4(0x101)]:this[_0xff48c4(0x2af)]({'isPermissionRej':!0x0});break;case _0x3b8cc3[_0xff48c4(0x175)]:break;}}catch(_0x55d29c){throw console[_0xff48c4(0x292)]('Error\x20on\x20receiving\x20event',_0x55d29c),_0x55d29c;}})),this[_0x3f24f6(0x17b)];}['_unlockTransition'](){const _0x4b3dab=_0x50ca80;this[_0x4b3dab(0x135)]=!0x1;}['_lockTransition'](){const _0x19f959=_0x50ca80;if(this['_transitionLocked'])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x19f959(0x135)]=!0x0;}['_onLocalMutation'](_0x4b5e0c){const _0x34a894=_0x50ca80;this[_0x34a894(0x22a)](),this[_0x34a894(0x2a3)](this[_0x34a894(0x17b)][_0x34a894(0x26f)](_0x4b5e0c)),this[_0x34a894(0x233)]();}['_onRemoteChangeset'](_0x50766e){const _0x5995e5=_0x50ca80;if(!(_0x50766e[_0x5995e5(0x133)]<=this[_0x5995e5(0x33d)][_0x5995e5(0x15a)](this[_0x5995e5(0x247)]))){if(this[_0x5995e5(0x16d)]){this[_0x5995e5(0x31a)][_0x5995e5(0x271)](_0x50766e);return;}this[_0x5995e5(0x151)](_0x50766e);}}[_0x50ca80(0x18b)](){const _0x43c062=_0x50ca80;this[_0x43c062(0x31a)][_0x43c062(0x1bf)](_0x1abc45=>this['_applyRemoteChangeset'](_0x1abc45)),this['_remoteChangesetQueue']=[];}[_0x50ca80(0x151)](_0x15392b){const _0x142eba=_0x50ca80;let _0x19fb39=this[_0x142eba(0x28f)][_0x142eba(0x2bf)][_0x142eba(0x2ad)](this[_0x142eba(0x28f)][_0x142eba(0x2bf)][_0x142eba(0xf5)]()[_0x142eba(0x302)])(_0x15392b[_0x142eba(0x301)],null)||_0x15392b[_0x142eba(0x301)],_0x235f53={..._0x15392b,'mutations':_0x19fb39};this[_0x142eba(0x22a)](),this[_0x142eba(0x2a3)](this[_0x142eba(0x17b)][_0x142eba(0x169)](_0x235f53)),this[_0x142eba(0x233)]();}['_onRemoteACK'](_0x48d50b){const _0x4e39cc=_0x50ca80;this['_lockTransition'](),this[_0x4e39cc(0x2a3)](this[_0x4e39cc(0x17b)][_0x4e39cc(0x32a)](_0x48d50b)),this[_0x4e39cc(0x233)]();}[_0x50ca80(0x2af)](_0x4fb7c6){const _0x2275cc=_0x50ca80;this[_0x2275cc(0x22a)](),this[_0x2275cc(0x2a3)](this[_0x2275cc(0x17b)]['onRemoteRej'](_0x4fb7c6)),this[_0x2275cc(0x233)]();}['_onRemoteRetry'](_0xd3ab9e){const _0x197a58=_0x50ca80;this[_0x197a58(0x22a)](),this[_0x197a58(0x2a3)](this[_0x197a58(0x17b)]['onRemoteRetry'](_0xd3ab9e)),this[_0x197a58(0x233)]();}[_0x50ca80(0x2b1)](_0x3a446f){const _0x5858cb=_0x50ca80;if(!(this[_0x5858cb(0x17b)]instanceof Z))throw TypeError(_0x5858cb(0x2a6));let _0xbf21ac=_0x3a446f[_0x5858cb(0x1c9)](_0x3868e5=>{const _0x2ec31f=_0x5858cb;let _0x1c3770=this['_compressMutationService'][_0x2ec31f(0x2bf)][_0x2ec31f(0x2ad)](this[_0x2ec31f(0x28f)][_0x2ec31f(0x2bf)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x3868e5[_0x2ec31f(0x301)],null)||_0x3868e5[_0x2ec31f(0x301)];return{..._0x3868e5,'mutations':_0x1c3770};});this['_lockTransition'](),this[_0x5858cb(0x2a3)](this[_0x5858cb(0x17b)][_0x5858cb(0x186)](_0xbf21ac)),this[_0x5858cb(0x233)]();}['_toggleOffline'](){const _0x42e305=_0x50ca80;this['_lockTransition'](),this[_0x42e305(0x2a3)](this[_0x42e305(0x17b)][_0x42e305(0x2ba)]()),this[_0x42e305(0x233)]();}['_toggleOnline'](_0x2bf970=!0x1){const _0x7e566e=_0x50ca80;this[_0x7e566e(0x22a)](),this['_updateState'](this[_0x7e566e(0x17b)]['toggleOnline']()),this[_0x7e566e(0x233)]();let _0x53a7b5=this[_0x7e566e(0x17b)];_0x2bf970&&_0x53a7b5 instanceof G&&(this[_0x7e566e(0x22a)](),this[_0x7e566e(0x2a3)](_0x53a7b5[_0x7e566e(0x13d)]()),this[_0x7e566e(0x233)]());}async[_0x50ca80(0x155)](){return new Promise(_0x1a9745=>{const _0x52172d=_0x3123;this[_0x52172d(0xf1)]['sessionStatus$'][_0x52172d(0x2b3)](_0x42a5ba(0x1))['subscribe'](async _0x488774=>{const _0x3edbf2=_0x52172d;_0x1a9745(await this[_0x3edbf2(0xe7)](_0x488774===0x3));});});}['_createHandler'](){const _0x2d96fa=_0x50ca80;let _0x372db4=this[_0x2d96fa(0x247)];return{'onStateChange':(_0x3f3075,_0x4fbfe2)=>{const _0x358e25=_0x2d96fa;if(_0x3f3075!==this[_0x358e25(0x17b)])throw Error(_0x358e25(0x295)+_0x3f3075[_0x358e25(0x1a6)]+_0x358e25(0x24c)+_0x4fbfe2[_0x358e25(0x1a6)]+'\x0aCurrent:\x20'+this[_0x358e25(0x17b)][_0x358e25(0x1a6)]);this[_0x358e25(0x2a3)](_0x4fbfe2);},'onSendChangeset':_0x13e8e5=>{const _0x1cfdec=_0x2d96fa;_0x13e8e5['sid']||(_0x13e8e5[_0x1cfdec(0x236)]=this[_0x1cfdec(0x21c)],_0x13e8e5[_0x1cfdec(0x2b5)]=++this['_changesetReqId']);let _0x48b1b2={'eventID':_0x3b8cc3[_0x1cfdec(0x268)],'data':{'unitID':_0x13e8e5['unitID'],'unitType':this[_0x1cfdec(0x115)],'changeset':_0x13e8e5,'memberID':this[_0x1cfdec(0xf1)][_0x1cfdec(0x28a)]()}};this['session'][_0x1cfdec(0x251)](_0x48b1b2,this[_0x1cfdec(0x247)]);},'onMissingChangesets':({from:_0xef7969,to:_0x364a5e})=>{const _0x99fab3=_0x2d96fa;this['_logService'][_0x99fab3(0x168)](_0x99fab3(0x219),_0x99fab3(0x339)+_0xef7969+_0x99fab3(0x21a)+_0x364a5e);let _0x42fd13={'eventID':_0x3b8cc3[_0x99fab3(0x12d)],'data':{'unitID':_0x372db4,'unitType':this[_0x99fab3(0x115)],'from':_0xef7969,'to':_0x364a5e}};this[_0x99fab3(0xf1)][_0x99fab3(0x251)](_0x42fd13,this['unitID']);}};}async['_createInitialStateImpl'](_0x306298){const _0x5d36d7=_0x50ca80;var _0x4e1a2d,_0x36f007,_0xbf2654;let _0x59b750=await((_0x4e1a2d=this['_localCacheService'])==null?void 0x0:_0x4e1a2d[_0x5d36d7(0x348)](this[_0x5d36d7(0x247)])),_0x3ffba0=(_0x36f007=_0x59b750==null?void 0x0:_0x59b750[_0x5d36d7(0x301)])==null?[]:_0x36f007,_0x5820aa=(_0xbf2654=_0x59b750==null?void 0x0:_0x59b750[_0x5d36d7(0x243)])==null?null:_0xbf2654,_0x591d3d=!!(_0x5820aa!=null&&_0x5820aa[_0x5d36d7(0x236)])&&!!(_0x5820aa!=null&&_0x5820aa['reqId']);this['_changesetSessionId']=_0x591d3d?_0x5820aa[_0x5d36d7(0x236)]:_0x5085ef(),this[_0x5d36d7(0x2c7)]=_0x591d3d?_0x5820aa['reqId']:0x0;let _0x5b6698=this[_0x5d36d7(0x247)];try{this[_0x5d36d7(0xe8)](_0x5820aa,_0x3ffba0);}catch(_0x51464b){this[_0x5d36d7(0x313)][_0x5d36d7(0x292)](_0x51464b);}let _0x40fb2d=this[_0x5d36d7(0x226)]();if(_0x306298){let _0x15b092=Gt(this['_injector'],_0x5b6698,this[_0x5d36d7(0x115)],_0x5820aa,_0x3ffba0,_0x40fb2d);return _0x15b092 instanceof K?_0x15b092[_0x5d36d7(0x1ac)]():(_0x15b092 instanceof J||_0x15b092 instanceof q)&&_0x15b092[_0x5d36d7(0x298)](),_0x15b092;}return this['_injector'][_0x5d36d7(0x25a)](X,_0x5b6698,this[_0x5d36d7(0x115)],_0x5820aa,_0x3ffba0,_0x40fb2d);}[_0x50ca80(0xe8)](_0x5c65b3,_0x3659cd){const _0x110bdd=_0x50ca80;var _0x5b2bd3,_0x351ace;let _0x153262=this[_0x110bdd(0x28f)][_0x110bdd(0x2bf)]['fetchThroughInterceptors'](this[_0x110bdd(0x28f)][_0x110bdd(0x2bf)][_0x110bdd(0xf5)]()[_0x110bdd(0x302)]);(_0x5b2bd3=_0x153262((_0x5c65b3==null?void 0x0:_0x5c65b3[_0x110bdd(0x301)])||[],null))==null||_0x5b2bd3[_0x110bdd(0x1bf)](_0x562d30=>this[_0x110bdd(0x1ce)]['executeCommand'](_0x562d30['id'],_0x562d30[_0x110bdd(0x2f0)])),(_0x351ace=_0x153262(_0x3659cd||[],null))==null||_0x351ace[_0x110bdd(0x1bf)](_0x14803c=>this['_commandService'][_0x110bdd(0x1c5)](_0x14803c['id'],_0x14803c[_0x110bdd(0x2f0)]));}};Kt=z([R(0x3,_0x4bd6ab(_0x280033)),R(0x4,_0x4bd6ab(_0x32c83e)),R(0x5,_0x4bd6ab(_0x4d3fc2)),R(0x6,_0x4bd6ab(_0x4565f5)),R(0x7,_0x4bd6ab(L)),R(0x8,_0x2dad56),R(0x9,_0x5b7991),R(0xa,_0x2d9981),R(0xb,_0x393a1b),R(0xc,_0x122efe(jt)),R(0xd,_0x122efe(V))],Kt);let qt=class extends Kt{constructor(_0xc68b5d,_0x1ea910,_0x4ba08f,_0x4710e4,_0x5c2223,_0x5e4ae4,_0x862270,_0x206503,_0x33bc94,_0x2a07dc,_0x46dbad,_0x47ca20,_0x119305,_0x543252){const _0x89d94b=_0x50ca80;super(_0xc68b5d,_0x4ba08f,_0x1ea910,_0x4710e4,_0x5c2223,_0x5e4ae4,_0x862270,_0x206503,_0x33bc94,_0x2a07dc,_0x46dbad,_0x47ca20,_0x119305,_0x543252),this[_0x89d94b(0x247)]=_0xc68b5d,this[_0x89d94b(0x2e3)]=_0x1ea910,I(this,'_handlerCallback',null);}['addHandlerCallback'](_0x6ac260){const _0x697fc1=_0x50ca80;this[_0x697fc1(0x229)]=_0x6ac260;}[_0x50ca80(0x245)](){const _0x2b9319=_0x50ca80;this['_handlerCallback']=null,super[_0x2b9319(0x245)]();}[_0x50ca80(0x226)](){const _0xebe88=_0x50ca80;let _0x4a52e8=super[_0xebe88(0x226)]();return _0x4a52e8['onTransformIME']=_0x4111a5=>{const _0x29dcfa=_0xebe88;var _0x13954a,_0x3dc87f;return(_0x13954a=this[_0x29dcfa(0x229)])==null||(_0x3dc87f=_0x13954a[_0x29dcfa(0x1c8)])==null?void 0x0:_0x3dc87f['call'](_0x13954a,_0x4111a5);},_0x4a52e8[_0xebe88(0x1b7)]=_0x5b8286=>{const _0xe7870e=_0xebe88;var _0xe3835f,_0x5851aa;return(_0xe3835f=this['_handlerCallback'])==null||(_0x5851aa=_0xe3835f[_0xe7870e(0x1b7)])==null?void 0x0:_0x5851aa['call'](_0xe3835f,_0x5b8286);},_0x4a52e8[_0xebe88(0x17c)]=_0xf90dab=>{const _0x31884f=_0xebe88;var _0x56e915,_0x597b7b;return(_0x56e915=this[_0x31884f(0x229)])==null||(_0x597b7b=_0x56e915[_0x31884f(0x17c)])==null?void 0x0:_0x597b7b[_0x31884f(0x2c2)](_0x56e915,_0xf90dab);},_0x4a52e8[_0xebe88(0x30e)]=_0x17c7d9=>{const _0x4eb67c=_0xebe88;var _0x1cd770,_0x5077f0;return(_0x1cd770=this[_0x4eb67c(0x229)])==null||(_0x5077f0=_0x1cd770[_0x4eb67c(0x30e)])==null?void 0x0:_0x5077f0[_0x4eb67c(0x2c2)](_0x1cd770,_0x17c7d9);},_0x4a52e8['onTransformRemoteChangesetByIMECache']=_0x34a6c2=>{const _0x4a05a1=_0xebe88;var _0x46cca6,_0x28dab6,_0x3664ce;if(!((_0x46cca6=this[_0x4a05a1(0x229)])!=null&&_0x46cca6[_0x4a05a1(0x250)]))throw Error(_0x4a05a1(0x118));return(_0x28dab6=this[_0x4a05a1(0x229)])==null||(_0x3664ce=_0x28dab6[_0x4a05a1(0x250)])==null?void 0x0:_0x3664ce[_0x4a05a1(0x2c2)](_0x28dab6,_0x34a6c2);},_0x4a52e8[_0xebe88(0x246)]=_0x51bad8=>{const _0x37f4=_0xebe88;var _0x61378b,_0x256643,_0xeb313f;if(!((_0x61378b=this['_handlerCallback'])!=null&&_0x61378b[_0x37f4(0x246)]))throw Error(_0x37f4(0x1d6));return(_0x256643=this[_0x37f4(0x229)])==null||(_0xeb313f=_0x256643[_0x37f4(0x246)])==null?void 0x0:_0xeb313f[_0x37f4(0x2c2)](_0x256643,_0x51bad8);},_0x4a52e8;}async['_init'](){const _0xa65a81=_0x50ca80;let _0x226591=await super[_0xa65a81(0x237)]();return this[_0xa65a81(0x2e8)](this[_0xa65a81(0x1ce)]['onMutationExecutedForCollab']((_0x5ab22c,_0x4d5c0d)=>{const _0x166f72=_0xa65a81;if(_0x5ab22c[_0x166f72(0x2e3)]!==_0x58f761[_0x166f72(0x191)]||_0x4d5c0d!=null&&_0x4d5c0d[_0x166f72(0x2a9)]||_0x4d5c0d!=null&&_0x4d5c0d[_0x166f72(0x2f1)]||_0x5ab22c['id']===_0x4add4c['id'])return;let _0x4b1cf6=_0x5ab22c[_0x166f72(0x2f0)];if((_0x4b1cf6==null?void 0x0:_0x4b1cf6[_0x166f72(0x263)])!==this[_0x166f72(0x247)])return;let _0x256e09=_0x5ab22c,_0x3d718f=this[_0x166f72(0x28f)][_0x166f72(0x2bf)][_0x166f72(0x2ad)](this['_compressMutationService'][_0x166f72(0x2bf)][_0x166f72(0xf5)]()['COMPRESS_MUTATION_SEND'])([_0x256e09],this['_univerInstanceService'])||[_0x256e09];this[_0x166f72(0x1ed)](_0x3d718f[0x0]);})),_0x226591;}};qt=z([R(0x3,_0x4bd6ab(_0x280033)),R(0x4,_0x4bd6ab(_0x32c83e)),R(0x5,_0x4bd6ab(_0x4d3fc2)),R(0x6,_0x4bd6ab(_0x4565f5)),R(0x7,_0x4bd6ab(L)),R(0x8,_0x2dad56),R(0x9,_0x5b7991),R(0xa,_0x2d9981),R(0xb,_0x393a1b),R(0xc,_0x122efe(jt)),R(0xd,_0x122efe(V))],qt);let Jt=class extends Kt{constructor(_0x362e2e,_0x480f53,_0x5a442a,_0x26f339,_0x44ac12,_0x39a3af,_0x19dd47,_0x4a49ff,_0x39b97a,_0x17e844,_0x52022b,_0x3618ac,_0x507dde,_0x1b4c85,_0x2cb7d5){const _0x4be3c5=_0x50ca80;super(_0x362e2e,_0x5a442a,_0x480f53,_0x26f339,_0x44ac12,_0x39a3af,_0x19dd47,_0x39b97a,_0x17e844,_0x52022b,_0x3618ac,_0x507dde,_0x1b4c85,_0x2cb7d5),this[_0x4be3c5(0x247)]=_0x362e2e,this[_0x4be3c5(0x2e3)]=_0x480f53,this[_0x4be3c5(0x1d9)]=_0x4a49ff;}[_0x50ca80(0x226)](){const _0x5663fb=_0x50ca80;let _0x4e4254=super['_createHandler']();return _0x4e4254['onTransformSelections']=_0x1433fb=>this[_0x5663fb(0x1d9)]['transformSelections'](_0x1433fb),_0x4e4254;}async[_0x50ca80(0x237)](){const _0x5cbb88=_0x50ca80;let _0x5bac91=await super['_init']();return this[_0x5cbb88(0x2e8)](this[_0x5cbb88(0x1ce)][_0x5cbb88(0x20a)]((_0xf3f40e,_0x2e0d97)=>{const _0x24058b=_0x5cbb88;if(_0xf3f40e[_0x24058b(0x2e3)]!==_0x58f761['MUTATION']||_0x2e0d97!=null&&_0x2e0d97['fromCollab']||_0x2e0d97!=null&&_0x2e0d97[_0x24058b(0x2f1)])return;let _0x16a3fd=_0xf3f40e[_0x24058b(0x2f0)];if((_0x16a3fd==null?void 0x0:_0x16a3fd[_0x24058b(0x263)])!==this['unitID'])return;let _0x9de8d7=_0xf3f40e,_0x51c26b=this[_0x24058b(0x28f)]['interceptor'][_0x24058b(0x2ad)](this['_compressMutationService'][_0x24058b(0x2bf)][_0x24058b(0xf5)]()[_0x24058b(0x13b)])([_0x9de8d7],this['_univerInstanceService'])||[_0x9de8d7];this[_0x24058b(0x1ed)](_0x51c26b[0x0]);})),_0x5bac91;}};Jt=z([R(0x3,_0x4bd6ab(_0x280033)),R(0x4,_0x4bd6ab(_0x32c83e)),R(0x5,_0x4bd6ab(_0x4d3fc2)),R(0x6,_0x4bd6ab(_0x4565f5)),R(0x7,_0x4bd6ab(H)),R(0x8,_0x4bd6ab(L)),R(0x9,_0x2dad56),R(0xa,_0x5b7991),R(0xb,_0x2d9981),R(0xc,_0x393a1b),R(0xd,_0x122efe(jt)),R(0xe,_0x122efe(V))],Jt);const Yt=_0x3f595f(_0x50ca80(0x194));function Xt(_0x1cf013){const _0x45006f=_0x50ca80;let _0x40446b=_0x1cf013[_0x45006f(0x1b8)],_0xc97962=JSON[_0x45006f(0x22e)](_0x40446b);switch(_0xc97962[_0x45006f(0x125)]){case _0x1e2dc3['HEARTBEAT']:case _0x1e2dc3[_0x45006f(0x13a)]:{let _0x2cd74d=_0xc97962[_0x45006f(0x1cc)];return{..._0xc97962,'data':_0x2cd74d,'cmd':_0xc97962['cmd']};}case _0x1e2dc3[_0x45006f(0x288)]:{let _0x3763c3=_0xc97962[_0x45006f(0x12a)];return{..._0xc97962,'data':_0x3763c3,'cmd':_0xc97962['cmd']};}case _0x1e2dc3[_0x45006f(0x1b6)]:{let _0x1512f3=_0xc97962[_0x45006f(0x249)];switch(_0x1512f3[_0x45006f(0x27c)]){case _0x3b8cc3[_0x45006f(0x101)]:var _0x12fa4a;return{..._0xc97962,'data':{..._0x1512f3,'data':(_0x12fa4a=_0x1512f3[_0x45006f(0x1e7)])==null?void 0x0:_0x12fa4a['cs']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3['CHANGESET_ACK']:var _0x549638;return{..._0xc97962,'data':{..._0x1512f3,'data':(_0x549638=_0x1512f3[_0x45006f(0x278)])==null?void 0x0:_0x549638['cs']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3[_0x45006f(0x141)]:var _0x5d46f8;return{..._0xc97962,'data':{..._0x1512f3,'data':(_0x5d46f8=_0x1512f3[_0x45006f(0x297)])==null?void 0x0:_0x5d46f8['cs']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3['CHANGESET_REJ']:var _0x27f97f;return{..._0xc97962,'data':{..._0x1512f3,'data':(_0x27f97f=_0x1512f3['csRejEvent'])==null?void 0x0:_0x27f97f['cs']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3['CHANGESET_SHOULD_RETRY']:var _0x2bb170;return{..._0xc97962,'data':{..._0x1512f3,'data':(_0x2bb170=_0x1512f3[_0x45006f(0x1f3)])==null?void 0x0:_0x2bb170['cs']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3[_0x45006f(0x158)]:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3['updateCursorEvent']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3['USERS_ENTER']:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3['joinEvent']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3[_0x45006f(0x35a)]:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3[_0x45006f(0x317)]},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3[_0x45006f(0x264)]:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3['liveShareNewHost']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3[_0x45006f(0x214)]:case _0x3b8cc3['LIVESHARE_OPERATION']:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3['liveShareOperation']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3['LIVESHARE_TERMINATE']:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3[_0x45006f(0x181)]},'cmd':_0xc97962['cmd']};case _0x3b8cc3[_0x45006f(0x23b)]:return{..._0xc97962,'data':_0x1512f3,'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3[_0x45006f(0x303)]:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3[_0x45006f(0x31b)]},'cmd':_0xc97962['cmd']};case _0x3b8cc3[_0x45006f(0x306)]:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3[_0x45006f(0x1b4)]},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3[_0x45006f(0x188)]:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3[_0x45006f(0x34e)]},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3[_0x45006f(0x175)]:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3[_0x45006f(0xfe)]},'cmd':_0xc97962[_0x45006f(0x125)]};default:return _0xc97962;}}default:return _0xc97962;}}function Zt(_0xd4096b){const _0x2926ba=_0x50ca80;switch(_0xd4096b[_0x2926ba(0x125)]){case _0x1e2dc3['HEARTBEAT']:case _0x1e2dc3[_0x2926ba(0x13a)]:return JSON[_0x2926ba(0x323)]({'cmd':_0xd4096b[_0x2926ba(0x125)],'routeKey':_0xd4096b[_0x2926ba(0x162)]});case _0x1e2dc3[_0x2926ba(0x275)]:{let _0x1e2baa;switch(_0xd4096b[_0x2926ba(0x1b8)][_0x2926ba(0x27c)]){case _0x3b8cc3['UPDATE_CURSOR']:_0x1e2baa={'eventID':_0x3b8cc3[_0x2926ba(0x158)],'updateCursorEvent':_0xd4096b[_0x2926ba(0x1b8)][_0x2926ba(0x1b8)]};break;case _0x3b8cc3[_0x2926ba(0x35a)]:_0x1e2baa={'eventID':_0x3b8cc3['USERS_LEAVE'],'leaveEvent':_0xd4096b[_0x2926ba(0x1b8)]['data']};break;case _0x3b8cc3[_0x2926ba(0x29a)]:_0x1e2baa={'eventID':_0x3b8cc3[_0x2926ba(0x29a)],'joinEvent':_0xd4096b['data'][_0x2926ba(0x1b8)]};break;case _0x3b8cc3['LIVESHARE_NEW_HOST']:_0x1e2baa={'eventID':_0x3b8cc3[_0x2926ba(0x264)],'liveShareNewHost':_0xd4096b[_0x2926ba(0x1b8)][_0x2926ba(0x1b8)]};break;case _0x3b8cc3[_0x2926ba(0x1e1)]:_0x1e2baa={'eventID':_0x3b8cc3[_0x2926ba(0x1e1)],'liveShareOperation':_0xd4096b[_0x2926ba(0x1b8)]['data']};break;case _0x3b8cc3[_0x2926ba(0x32d)]:_0x1e2baa={'eventID':_0x3b8cc3['LIVESHARE_TERMINATE'],'liveShareTerminate':_0xd4096b[_0x2926ba(0x1b8)][_0x2926ba(0x1b8)]};break;case _0x3b8cc3[_0x2926ba(0x262)]:_0x1e2baa={'eventID':_0x3b8cc3['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0xd4096b[_0x2926ba(0x1b8)][_0x2926ba(0x1b8)]};break;case _0x3b8cc3['LIVESHARE_FETCH_OPERATIONS']:_0x1e2baa={'eventID':_0x3b8cc3[_0x2926ba(0x214)]};break;default:_0x1e2baa={'eventID':_0xd4096b['data'][_0x2926ba(0x27c)]};}return JSON[_0x2926ba(0x323)]({'cmd':_0xd4096b[_0x2926ba(0x125)],'routeKey':_0xd4096b[_0x2926ba(0x162)],'collaMsg':_0x1e2baa});}case _0x1e2dc3[_0x2926ba(0x288)]:return JSON['stringify']({'cmd':_0xd4096b[_0x2926ba(0x125)],'routeKey':_0xd4096b[_0x2926ba(0x162)],'joinReq':_0xd4096b[_0x2926ba(0x1b8)]});case _0x1e2dc3['LEAVE']:return JSON[_0x2926ba(0x323)]({'cmd':_0xd4096b[_0x2926ba(0x125)],'routeKey':_0xd4096b['routeKey'],'leaveReq':_0xd4096b[_0x2926ba(0x1b8)]});default:throw Error(_0x2926ba(0x34d));}}const Qt=_0x3f595f(_0x50ca80(0x230));function $t(_0x46d8d6,_0x426c0d,_0x28f25f){const _0x2c7075=_0x50ca80;return _0x46d8d6+'/'+_0x426c0d+_0x2c7075(0x1c1)+_0x28f25f+_0x2c7075(0x1e9);}let en=class extends _0x9fa895{constructor(_0x42420c,_0x3f11fd,_0x4c3870,_0x3a32a2,_0x40d9fa){const _0x5c02d8=_0x50ca80;super(),this[_0x5c02d8(0x102)]=_0x42420c,this[_0x5c02d8(0x1da)]=_0x3f11fd,this[_0x5c02d8(0x136)]=_0x4c3870,this[_0x5c02d8(0x313)]=_0x3a32a2,this[_0x5c02d8(0x23f)]=_0x40d9fa;}[_0x50ca80(0x164)](_0x1efc85){const _0x258f34=_0x50ca80;let _0x45783d=this['_injector'][_0x258f34(0x2e5)](_0x3859d3);if(!_0x45783d)throw Error(_0x258f34(0x354));let _0xb3699b=_0x45783d[_0x258f34(0x1b0)](_0x1efc85);if(!_0xb3699b)throw Error(_0x258f34(0x108));let _0x4a40c7=new _0x96e511(),_0x544100=new _0x582e08();_0x4a40c7[_0x258f34(0x30f)](_0xb3699b[_0x258f34(0x150)]['subscribe'](_0x2342df=>_0x544100[_0x258f34(0x11f)](_0x2342df))),_0x4a40c7[_0x258f34(0x30f)](_0x50490a(()=>_0x544100[_0x258f34(0x340)]()));let _0x35669f=new _0x582e08();_0x4a40c7[_0x258f34(0x30f)](_0xb3699b[_0x258f34(0x274)]['subscribe'](_0x4ba5c1=>_0x35669f[_0x258f34(0x11f)](_0x4ba5c1))),_0x4a40c7[_0x258f34(0x30f)](_0x50490a(()=>_0x35669f['complete']()));let _0x19056d=new _0x582e08();_0x4a40c7[_0x258f34(0x30f)](_0xb3699b['message$'][_0x258f34(0x1fe)](_0xcb71=>{const _0x1b9ab9=_0x258f34;let _0xcf01a3=Xt(_0xcb71);_0x19056d[_0x1b9ab9(0x11f)](_0xcf01a3);})),_0x4a40c7['add'](_0x50490a(()=>_0x19056d['complete']()));let _0x454ffb,_0x328802=()=>{const _0x4beb85=_0x258f34;_0x35669f[_0x4beb85(0x11f)](new Event('connection\x20error')),_0x544100[_0x4beb85(0x11f)](new Event('connection\x20error')),_0x454ffb[_0x4beb85(0x111)]();};return _0x454ffb={'memberID':'','close$':_0x544100[_0x258f34(0x1d3)](),'error$':_0x35669f['asObservable'](),'open$':_0xb3699b[_0x258f34(0x2da)],'message$':_0x19056d[_0x258f34(0x1d3)](),'send':_0x20b391=>{const _0x2f443b=_0x258f34;if(_0x20b391[_0x2f443b(0x125)]===_0x1e2dc3[_0x2f443b(0x275)]){if(_0x20b391[_0x2f443b(0x1b8)]['eventID']===_0x3b8cc3[_0x2f443b(0x268)]){this[_0x2f443b(0x201)](_0x454ffb,_0x20b391[_0x2f443b(0x1b8)])[_0x2f443b(0x189)](_0xef8f0e=>{const _0x79e768=_0x2f443b;this[_0x79e768(0x313)][_0x79e768(0x292)](_0xef8f0e),_0x328802();});return;}if(_0x20b391['data'][_0x2f443b(0x27c)]===_0x3b8cc3[_0x2f443b(0x12d)]){let _0x4b8f54=_0x20b391[_0x2f443b(0x1b8)];this['_fetchMissChangesets'](_0x4b8f54)['then'](_0x5bcb97=>{const _0x27273f=_0x2f443b;_0x19056d[_0x27273f(0x11f)]({'cmd':_0x1e2dc3['RECV'],'code':_0x222ab7['OK'],'routeKey':_0x4b8f54['data'][_0x27273f(0x247)],'routeType':'','data':{'eventID':_0x3b8cc3['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x5bcb97}}});})[_0x2f443b(0x189)](_0x16ceb1=>{const _0x8e46b7=_0x2f443b;this['_logService'][_0x8e46b7(0x292)](_0x16ceb1),_0x328802();});return;}}_0xb3699b[_0x2f443b(0x251)](Zt(_0x20b391));},'close':()=>{const _0x234e37=_0x258f34;_0xb3699b[_0x234e37(0x111)](),_0x4a40c7[_0x234e37(0x245)]();}},_0x454ffb;}async[_0x50ca80(0x201)](_0x5bb42b,_0x2a13ab){const _0x941ef9=_0x50ca80;var _0x383db0;let {unitType:_0x1bf86a,unitID:_0x4c0458,changeset:_0x481f94}=_0x2a13ab[_0x941ef9(0x1b8)],_0x4d6ca7={'unitID':_0x4c0458,'memberID':_0x5bb42b['memberID'],'type':_0x1bf86a,'changeset':_0x58dede(_0x481f94)},_0x365be0=this[_0x941ef9(0x136)][_0x941ef9(0x106)](U),_0x17de66=$t((_0x383db0=_0x365be0==null?void 0x0:_0x365be0['collabSubmitChangesetUrl'])==null?'/universer-api/comb':_0x383db0,_0x1bf86a,_0x4c0458);try{await this[_0x941ef9(0x1da)][_0x941ef9(0x266)](_0x17de66,{'body':_0x4d6ca7});}catch(_0x296653){throw this['_logService'][_0x941ef9(0x292)](_0x941ef9(0x318),_0x941ef9(0x29e)),_0x296653;}}async[_0x50ca80(0x296)](_0x2070dd){const _0xadb563=_0x50ca80;let {unitID:_0x1c5ef9,from:_0xd7f011,to:_0x40c7d2,unitType:_0x264e4b}=_0x2070dd[_0xadb563(0x1b8)];return(await this[_0xadb563(0x23f)][_0xadb563(0x1c0)]({'metadata':void 0x0},{'unitID':_0x1c5ef9,'type':_0x264e4b,'from':_0xd7f011,'to':_0x40c7d2}))[_0xadb563(0x15e)]['map'](_0x7fe3e0=>((_0x7fe3e0[_0xadb563(0x301)]===null||_0x7fe3e0[_0xadb563(0x301)]===void 0x0)&&(_0x7fe3e0['mutations']=[]),_0x7fe3e0));}};en=z([R(0x0,_0x4bd6ab(_0x280033)),R(0x1,_0x4bd6ab(_0x2872f5)),R(0x2,_0x25ecfe),R(0x3,_0x5b7991),R(0x4,_0x61d41c)],en);let Q=class extends _0x9fa895{get[_0x50ca80(0x2e9)](){const _0x524cc0=_0x50ca80;return this[_0x524cc0(0x2cf)][_0x524cc0(0x163)]();}constructor(_0x43608d,_0x62e70,_0x123064,_0x42d7dc,_0x2cd0aa,_0x1308b1){const _0x1316d5=_0x50ca80;super(),this['_injector']=_0x43608d,this[_0x1316d5(0x313)]=_0x62e70,this['_configService']=_0x123064,this[_0x1316d5(0x130)]=_0x42d7dc,this[_0x1316d5(0x286)]=_0x2cd0aa,this['_networkConditionService']=_0x1308b1,I(this,_0x1316d5(0x2cf),new _0x4a3716(void 0x0)),I(this,'socket$',this[_0x1316d5(0x2cf)]['asObservable']()),I(this,'_candidateSocket',null),I(this,'_sessions',new Map()),I(this,'_status$',new _0x4a3716(0x0)),I(this,'status$',this[_0x1316d5(0x33a)][_0x1316d5(0x1d3)]()),I(this,_0x1316d5(0x1a5),!0x1),I(this,_0x1316d5(0x2d5),void 0x0),I(this,'_retryCount',0x0),I(this,'_sendHeartbeatTimer',void 0x0),I(this,_0x1316d5(0x13c),void 0x0),this[_0x1316d5(0x18c)]();}[_0x50ca80(0x18c)](){const _0x364087=_0x50ca80;this[_0x364087(0x267)]&&this[_0x364087(0x2e8)](this['_networkConditionService'][_0x364087(0x148)]['subscribe'](_0x3ba928=>{const _0x2ffafe=_0x364087;_0x3ba928&&!this[_0x2ffafe(0x2e9)]&&this[_0x2ffafe(0x2a5)](),_0x3ba928||this[_0x2ffafe(0x15f)]();}));}['dispose'](){const _0x42505e=_0x50ca80;super[_0x42505e(0x245)](),this['_clearRetryConnectingTimer'](),this['_clearTimeoutTimer'](),this[_0x42505e(0x124)](),this[_0x42505e(0x10b)][_0x42505e(0x1bf)](_0x30ea02=>_0x30ea02[_0x42505e(0x245)]()),this[_0x42505e(0x10b)][_0x42505e(0x272)](),this[_0x42505e(0x33a)][_0x42505e(0x340)]();}async[_0x50ca80(0x16c)](_0x3eb61b){const _0x5f13ef=_0x50ca80;if(this[_0x5f13ef(0x10b)]['has'](_0x3eb61b))return this['_sessions'][_0x5f13ef(0x2e5)](_0x3eb61b);this['_tryEnsureSocket']();let _0x1cf9ec=this['_injector'][_0x5f13ef(0x25a)](Ot,_0x3eb61b,this[_0x5f13ef(0x2cf)][_0x5f13ef(0x1d3)]());return this[_0x5f13ef(0x10b)][_0x5f13ef(0x2d4)](_0x3eb61b,_0x1cf9ec),_0x1cf9ec;}[_0x50ca80(0x1f7)](_0xed0716){const _0x412f61=_0x50ca80;let _0x2d3a61=this[_0x412f61(0x10b)][_0x412f61(0x2e5)](_0xed0716);if(_0x2d3a61&&(this[_0x412f61(0x10b)]['delete'](_0xed0716),_0x2d3a61[_0x412f61(0x111)]()),!this[_0x412f61(0x10b)][_0x412f61(0x177)]){var _0x13e973;(_0x13e973=this[_0x412f61(0x2e9)])==null||_0x13e973['close']();}}['reconnect'](){const _0x3c81f5=_0x50ca80;this[_0x3c81f5(0x304)]=0x0,this[_0x3c81f5(0x211)](),this['_tryReconnect']();}[_0x50ca80(0x211)](){const _0x362796=_0x50ca80;this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x362796(0x2d5)]),this[_0x362796(0x2d5)]=null);}async[_0x50ca80(0x1d0)](){const _0x5785e4=_0x50ca80;var _0x3257d5;let _0x3f4d04=this[_0x5785e4(0x136)][_0x5785e4(0x106)](U),_0x319e2d=(_0x3257d5=_0x3f4d04==null?void 0x0:_0x3f4d04[_0x5785e4(0x333)])==null?ut:_0x3257d5,_0x2127f6=await this['_socketService'][_0x5785e4(0x1b0)](_0x319e2d);return this['_candidateSocket']=_0x2127f6,_0x2127f6;}async['_tryEnsureSocket'](){const _0x36d13d=_0x50ca80;try{var _0x2baa64,_0x5df696;let _0x1fd012=(_0x2baa64=(_0x5df696=this['_socket'])==null?this[_0x36d13d(0x23e)]:_0x5df696)==null?await this[_0x36d13d(0x1d0)]():_0x2baa64;if(_0x1fd012){let _0x32cb04=_0x1fd012[_0x36d13d(0x251)];_0x1fd012[_0x36d13d(0x251)]=_0x200e66=>(_0x200e66[_0x36d13d(0x125)]!==_0x1e2dc3[_0x36d13d(0x10a)]&&this[_0x36d13d(0x22b)](),_0x32cb04[_0x36d13d(0x128)](_0x1fd012,[_0x200e66])),_0x1fd012[_0x36d13d(0x1fc)][_0x36d13d(0x1fe)](_0x5a96b9=>this['_onMessage'](_0x1fd012,_0x5a96b9)),_0x1fd012[_0x36d13d(0x274)][_0x36d13d(0x2b3)](_0x1174d3(0x1))[_0x36d13d(0x1fe)](_0xe9b1e5=>this[_0x36d13d(0x313)][_0x36d13d(0x292)](_0x36d13d(0x2a8),_0xe9b1e5)),_0x1fd012['open$'][_0x36d13d(0x2b3)](_0x1174d3(0x1))[_0x36d13d(0x1fe)](()=>{const _0x243f51=_0x36d13d;this[_0x243f51(0x2ce)](_0x1fd012);}),_0x1fd012['close$'][_0x36d13d(0x2b3)](_0x1174d3(0x1))[_0x36d13d(0x1fe)](_0xfbeae9=>{const _0x369cb8=_0x36d13d;this['_logService'][_0x369cb8(0x168)](_0x369cb8(0x329),_0x369cb8(0x138),_0xfbeae9),this[_0x369cb8(0x15c)]();});}}catch(_0x1999fd){this[_0x36d13d(0x313)][_0x36d13d(0x292)](_0x1999fd),this[_0x36d13d(0x15c)]();}}[_0x50ca80(0x2ce)](_0xf86c39){const _0x1d743b=_0x50ca80;this[_0x1d743b(0x313)][_0x1d743b(0x168)]('[CollaborationSessionService]',_0x1d743b(0xf2)),_0xf86c39[_0x1d743b(0x251)]({'cmd':_0x1e2dc3['HELLO']}),this[_0x1d743b(0x22b)]();}['_onOffline'](){const _0x5ae53c=_0x50ca80;this[_0x5ae53c(0x1a5)]=!0x1,this[_0x5ae53c(0x23e)]=null,this[_0x5ae53c(0x33a)][_0x5ae53c(0x11f)](0x2),this[_0x5ae53c(0x2cf)][_0x5ae53c(0x11f)](null),this['_clearTimeoutTimer'](),this[_0x5ae53c(0x124)]();}[_0x50ca80(0x15c)](){const _0x4cd3bb=_0x50ca80;var _0x4091a7;this[_0x4cd3bb(0x15f)](),this[_0x4cd3bb(0x304)]<((_0x4091a7=this[_0x4cd3bb(0x136)]['getConfig'](_0x4cd3bb(0x316)))==null?0x3:_0x4091a7)?(this[_0x4cd3bb(0x286)][_0x4cd3bb(0x355)]({'id':'SOCKET_FAILED_RETRY'}),this[_0x4cd3bb(0x14c)]()):this[_0x4cd3bb(0x286)][_0x4cd3bb(0x355)]({'id':'SOCKET_FAILED'});}['_tryReconnect'](){const _0x92efcf=_0x50ca80;var _0xbb1a4a;let _0x4d0eac=this['_retryCount'],_0x11695d=this[_0x92efcf(0x136)]['getConfig'](U),_0xeb6137=_0x4d0eac===0x0?0x0:((_0xbb1a4a=_0x11695d==null?void 0x0:_0x11695d['retryConnectingInterval'])==null?0x4e20:_0xbb1a4a)*0x2**_0x4d0eac;this[_0x92efcf(0x2d5)]=setTimeout(()=>{const _0x44ca9f=_0x92efcf;clearTimeout(this[_0x44ca9f(0x2d5)]),this[_0x44ca9f(0x2d5)]=null,this[_0x44ca9f(0xef)]();},_0xeb6137),this[_0x92efcf(0x304)]+=0x1;}[_0x50ca80(0x343)](_0x453540,_0x4be79a){const _0x23e52c=_0x50ca80;let {cmd:_0x5c6377}=_0x4be79a;_0x5c6377===_0x1e2dc3[_0x23e52c(0x13a)]&&!this['_socketReady']&&(_0x453540[_0x23e52c(0x225)]=_0x4be79a['data'][_0x23e52c(0x225)],this[_0x23e52c(0x2cf)][_0x23e52c(0x11f)](_0x453540),this[_0x23e52c(0x33a)]['next'](0x3),this['_socketReady']=!0x0,this['_candidateSocket']=null),_0x5c6377===_0x1e2dc3[_0x23e52c(0x192)]&&this[_0x23e52c(0x351)](),this[_0x23e52c(0x22b)]();}[_0x50ca80(0x22b)](){const _0x164752=_0x50ca80;var _0x5e272b;this[_0x164752(0x124)](),this[_0x164752(0x1dd)]=setTimeout(()=>this[_0x164752(0x1f1)](),(_0x5e272b=this[_0x164752(0x136)][_0x164752(0x106)](_0x164752(0x1b9)))==null?0x7530:_0x5e272b);}['_sendHeartbeat'](){const _0x13628e=_0x50ca80;this[_0x13628e(0x2e9)]['send']({'cmd':_0x1e2dc3['HEARTBEAT']}),this[_0x13628e(0x33e)]();}[_0x50ca80(0x33e)](){const _0x4f4802=_0x50ca80;var _0x3f64df;this[_0x4f4802(0x13c)]=setTimeout(()=>this[_0x4f4802(0x15c)](),(_0x3f64df=this[_0x4f4802(0x136)][_0x4f4802(0x106)]('HEARTBEAT_TIMEOUT'))==null?mt:_0x3f64df);}[_0x50ca80(0x124)](){const _0x418a63=_0x50ca80;this[_0x418a63(0x1dd)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x418a63(0x1dd)]=null);}[_0x50ca80(0x351)](){const _0x4df150=_0x50ca80;this[_0x4df150(0x13c)]!=null&&(clearTimeout(this[_0x4df150(0x13c)]),this[_0x4df150(0x13c)]=null);}};Q=z([R(0x0,_0x4bd6ab(_0x280033)),R(0x1,_0x5b7991),R(0x2,_0x25ecfe),R(0x3,Qt),R(0x4,_0x4bd6ab(L)),R(0x5,_0x122efe(Yt))],Q);let tn=class extends _0x1e6e8b{constructor(_0x3f8365,_0x3eac56,_0x4e87b6,_0x4e5e21){const _0x5d26c7=_0x50ca80;var _0x348f1d;super(),this[_0x5d26c7(0x102)]=_0x3f8365,this[_0x5d26c7(0x28b)]=_0x3eac56,this['_configService']=_0x4e87b6,this[_0x5d26c7(0x257)]=_0x4e5e21,I(this,_0x5d26c7(0x244),new Map()),I(this,_0x5d26c7(0x2be),new _0x582e08()),I(this,_0x5d26c7(0x290),this[_0x5d26c7(0x2be)][_0x5d26c7(0x1d3)]()),((_0x348f1d=this[_0x5d26c7(0x136)][_0x5d26c7(0x106)](_0x5d26c7(0x12c)))==null?void 0x0:_0x348f1d[_0x5d26c7(0x1c4)])!==!0x1&&this[_0x5d26c7(0x237)]();}[_0x50ca80(0x245)](){const _0x1b928e=_0x50ca80;super[_0x1b928e(0x245)](),this[_0x1b928e(0x244)]['forEach'](_0x15c10e=>_0x15c10e[_0x1b928e(0x245)]()),this['_entities'][_0x1b928e(0x272)]();}[_0x50ca80(0xee)](_0x45a272){const _0x3c5d01=_0x50ca80;var _0x185c6e;return(_0x185c6e=this[_0x3c5d01(0x244)][_0x3c5d01(0x2e5)](_0x45a272))==null?null:_0x185c6e;}[_0x50ca80(0x19e)](_0x3a337a){let _0x5b781c=this['getCollabEntity'](_0x3a337a);return _0x5b781c?_0x97c2d4(_0x5b781c):this['_entityInit$']['pipe'](_0x4a6387(_0x573602=>_0x573602['unitID']===_0x3a337a));}[_0x50ca80(0x32e)](_0x1dea89){const _0x5795c4=_0x50ca80;return _0x1022a6(this[_0x5795c4(0x19e)](_0x1dea89)[_0x5795c4(0x2b3)](_0x3cf0ac(()=>void 0x0)));}[_0x50ca80(0x237)](){const _0x2f4db9=_0x50ca80;this['_univerInstanceService'][_0x2f4db9(0x1fd)](_0x261bc8[_0x2f4db9(0x144)])[_0x2f4db9(0x2b3)](_0x17aedf(this[_0x2f4db9(0x176)]),_0xd4ac63(0x10))[_0x2f4db9(0x1fe)](async _0x3a24fe=>{const _0x501386=_0x2f4db9;let _0x297890=_0x3a24fe[_0x501386(0x178)][_0x501386(0x2f9)](),_0x534ccf=await this[_0x501386(0x336)](_0x297890,_0x261bc8[_0x501386(0x144)]);this['_entities'][_0x501386(0x2d4)](_0x297890,_0x534ccf);}),this[_0x2f4db9(0x257)][_0x2f4db9(0x1fd)](_0x261bc8[_0x2f4db9(0x258)])[_0x2f4db9(0x2b3)](_0x17aedf(this[_0x2f4db9(0x176)]),_0xd4ac63(0x10))[_0x2f4db9(0x2b3)](_0x4a6387(_0x5baf1f=>!_0x5baf1f['unit'][_0x2f4db9(0x2f9)]()[_0x2f4db9(0x199)]('__')))[_0x2f4db9(0x1fe)](async _0x31713f=>{const _0x1865c8=_0x2f4db9;let _0x4db78a=_0x31713f[_0x1865c8(0x178)]['getUnitId'](),_0x4c9fd1=await this[_0x1865c8(0x336)](_0x4db78a,_0x261bc8[_0x1865c8(0x258)]);this['_entities']['set'](_0x4db78a,_0x4c9fd1);}),_0x12dbcf(this[_0x2f4db9(0x257)][_0x2f4db9(0x324)](_0x261bc8[_0x2f4db9(0x144)]),this[_0x2f4db9(0x257)][_0x2f4db9(0x324)](_0x261bc8[_0x2f4db9(0x258)]))[_0x2f4db9(0x2b3)](_0x17aedf(this[_0x2f4db9(0x176)]))['subscribe'](_0x50516d=>{const _0x1ec4ee=_0x2f4db9;let _0x2bbc8c=_0x50516d[_0x1ec4ee(0x2f9)](),_0x253019=this[_0x1ec4ee(0x244)][_0x1ec4ee(0x2e5)](_0x2bbc8c);_0x253019&&(_0x253019[_0x1ec4ee(0x245)](),this[_0x1ec4ee(0x244)][_0x1ec4ee(0x291)](_0x2bbc8c));});}async[_0x50ca80(0x336)](_0x39ee41,_0x63e56){const _0x5b1827=_0x50ca80;let _0x8e5f39=await this[_0x5b1827(0x28b)][_0x5b1827(0x16c)](_0x39ee41),_0x4e03f6=this[_0x5b1827(0x102)]['createInstance'](this[_0x5b1827(0x1ad)](_0x63e56),_0x39ee41,_0x63e56,_0x8e5f39);return await _0x4e03f6[_0x5b1827(0x331)](),this[_0x5b1827(0x2be)][_0x5b1827(0x11f)](_0x4e03f6),_0x4e03f6;}[_0x50ca80(0x1ad)](_0x233b94){const _0x29c4d8=_0x50ca80;switch(_0x233b94){case _0x261bc8[_0x29c4d8(0x258)]:return qt;case _0x261bc8[_0x29c4d8(0x144)]:return Jt;default:throw Error(_0x29c4d8(0x193)+_0x233b94);}}};tn=z([R(0x0,_0x4bd6ab(_0x280033)),R(0x1,_0x4bd6ab(Q)),R(0x2,_0x25ecfe),R(0x3,_0x2dad56)],tn);var nn=_0x50ca80(0x352),rn=_0x50ca80(0x184);let an=class extends _0x9fa895{constructor(_0x3222e5,_0x5725dd){const _0x325a32=_0x50ca80;super(),this[_0x325a32(0x257)]=_0x3222e5,this[_0x325a32(0x136)]=_0x5725dd,this['_init']();}[_0x50ca80(0x237)](){const _0x1ef531=_0x50ca80;this['disposeWithMe'](this[_0x1ef531(0x257)][_0x1ef531(0x2d1)][_0x1ef531(0x1fe)](()=>{const _0x514b40=_0x1ef531;var _0x4ce563;let _0x5b2000=this[_0x514b40(0x257)][_0x514b40(0x27a)](),_0x468176=(_0x4ce563=this['_configService']['getConfig'](_0x514b40(0x2dd)))==null?_0x514b40(0x24d):_0x4ce563;_0x5b2000 instanceof _0x33ac8d&&(_0x468176=_0x5b2000[_0x514b40(0x1e2)]),document[_0x514b40(0x137)]=_0x468176;}));}};function _0x3123(_0x45ff2d,_0x2e299d){_0x45ff2d=_0x45ff2d-0xe7;const _0x599755=_0x5997();let _0x31235c=_0x599755[_0x45ff2d];return _0x31235c;}an=z([R(0x0,_0x2dad56),R(0x1,_0x25ecfe)],an);let on=class{constructor(_0x208d7c,_0x36810d,_0x48751e){const _0x6b9b4a=_0x50ca80;this['_configService']=_0x208d7c,this['_httpService']=_0x36810d,this['localeService']=_0x48751e,this[_0x6b9b4a(0x331)]();}[_0x50ca80(0x331)](){const _0xe97a23=_0x50ca80;this[_0xe97a23(0x1da)][_0xe97a23(0x282)]({'priority':0x1,'interceptor':(_0x1583ac,_0x45f4c7)=>_0x45f4c7(_0x1583ac)[_0xe97a23(0x2b3)](_0x53be54(async _0x28afd0=>{const _0x69e300=_0xe97a23;let _0xfa1591=_0x28afd0;if(_0xfa1591[_0x69e300(0x1a6)]===0x191){if(typeof window>'u')throw Error(_0x69e300(0x21b));if(window['confirm'](this[_0x69e300(0xe9)]['t']('auth.needGotoLoginAlert'))){let _0x3d985e=window[_0x69e300(0x218)](window[_0x69e300(0x1be)]['href']);window[_0x69e300(0x1be)][_0x69e300(0x109)]=this[_0x69e300(0x2d7)]()+_0x69e300(0x107)+_0x3d985e;}}return _0xfa1591;}))});}[_0x50ca80(0x2d7)](){const _0x3edfd3=_0x50ca80;var _0x47d65b;let _0x389cea=this[_0x3edfd3(0x136)][_0x3edfd3(0x106)](U);return(_0x47d65b=_0x389cea==null?void 0x0:_0x389cea[_0x3edfd3(0xf6)])==null?_0x3edfd3(0x26a):_0x47d65b;}};on=z([R(0x0,_0x25ecfe),R(0x1,_0x4bd6ab(_0x2872f5)),R(0x2,_0x4bd6ab(_0x4d3fc2))],on);let sn=class extends _0x9fa895{constructor(_0x1b8922,_0x4275e8){const _0x500720=_0x50ca80;super(),this['_HTTPService']=_0x1b8922,this[_0x500720(0x136)]=_0x4275e8,I(this,_0x500720(0x22c),!0x1),this[_0x500720(0x349)]();}['_initMergeInterceptor'](){const _0x242362=_0x50ca80;let _0x4f7ccf=this;this[_0x242362(0x2e8)](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x28486c({'isMatch'(_0x7d07a3){const _0xd7117a=_0x242362;var _0x28691a;if(_0x7d07a3[_0xd7117a(0x29d)]===_0xd7117a(0x103)&&(_0x28691a=_0x7d07a3[_0xd7117a(0x11d)])!=null&&_0x28691a[_0xd7117a(0x2d0)]){let {objectID:_0x7330ef,objectType:_0x1dcf78}=_0x7d07a3[_0xd7117a(0x11d)][_0xd7117a(0x2d0)]||{};if(!_0x7330ef||_0x1dcf78===void 0x0)return!0x1;let _0x4583ee=_0x4f7ccf[_0xd7117a(0x26b)]()+'/'+_0x1dcf78+'/object/'+_0x7330ef+_0xd7117a(0x1bd);if(_0x7d07a3[_0xd7117a(0x223)]===_0x4583ee)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x12cd72){const _0x383582=_0x242362;var _0x2fb279;return(_0x2fb279=_0x12cd72[_0x383582(0x11d)])==null?void 0x0:_0x2fb279[_0x383582(0x2d0)];},'mergeParamsToRequest'(_0x44edac,_0x284c94){const _0xcc3a42=_0x242362;let _0x218513=_0x4f7ccf[_0xcc3a42(0x26b)]()+_0xcc3a42(0x112),_0x33bf5f=_0x44edac[_0xcc3a42(0xec)]((_0x40e7a1,_0x2b6f70)=>{const _0x3ea4aa=_0xcc3a42;let {unitID:_0x12d0d5,objectID:_0x6d9986,objectType:_0x391cd8,actions:_0x469e4e}=_0x2b6f70;return _0x40e7a1[_0x12d0d5]||(_0x40e7a1[_0x12d0d5]={}),_0x40e7a1[_0x12d0d5][_0x6d9986]||(_0x40e7a1[_0x12d0d5][_0x6d9986]={'objectID':_0x6d9986,'objectType':_0x391cd8,'actions':[]}),_0x40e7a1[_0x12d0d5][_0x6d9986][_0x3ea4aa(0x208)][_0x3ea4aa(0x271)](..._0x469e4e),_0x40e7a1;},{}),_0x1b32b2=[];for(let _0x38eb0d in _0x33bf5f)for(let _0x56a4fc in _0x33bf5f[_0x38eb0d]){let {actions:_0x4063e0,objectType:_0x23170e}=_0x33bf5f[_0x38eb0d][_0x56a4fc],_0x4df8b0=[...new Set(_0x4063e0)];_0x1b32b2[_0xcc3a42(0x271)]({'unitID':_0x38eb0d,'objectID':_0x56a4fc,'objectType':_0x23170e,'actions':_0x4df8b0});}return new _0x1e9f1a('POST',_0x218513,{'headers':_0x284c94[_0xcc3a42(0x160)],'withCredentials':_0x284c94['withCredentials'],'responseType':_0x284c94['responseType'],'body':{'requests':_0x1b32b2}});}},{'distributeResult'(_0x4fc536,_0x1b9040){const _0x17f7a2=_0x242362;let {objectActions:_0x4540d5}=_0x4fc536;return _0x1b9040[_0x17f7a2(0x1c9)](_0x4062e1=>{const _0x2f8408=_0x17f7a2;let {unitID:_0x51e3ba,objectID:_0x1db8b2,actions:_0x85da6f}=_0x4062e1,_0x50947b=_0x4540d5[_0x2f8408(0x2de)](_0x23b91c=>_0x23b91c[_0x2f8408(0x247)]===_0x51e3ba&&_0x23b91c[_0x2f8408(0x1e5)]===_0x1db8b2);return{'config':_0x4062e1,'result':{'actions':_0x85da6f[_0x2f8408(0x1c9)](_0x3c84ec=>_0x50947b==null?void 0x0:_0x50947b['actions'][_0x2f8408(0x2de)](_0x9f189a=>_0x9f189a[_0x2f8408(0x224)]===_0x3c84ec))[_0x2f8408(0x2f5)](_0x2ff693=>!!_0x2ff693),'error':_0x4fc536[_0x2f8408(0x292)]}};});}})}));}[_0x50ca80(0x26b)](){const _0x4da804=_0x50ca80;var _0xa1e6d;let _0x13c659=this[_0x4da804(0x136)][_0x4da804(0x106)](U);return(_0xa1e6d=_0x13c659==null?void 0x0:_0x13c659[_0x4da804(0x16e)])==null?'/universer-api/authz':_0xa1e6d;}async[_0x50ca80(0xed)](_0x37f5be){const _0x52a08b=_0x50ca80;let _0x211007=this[_0x52a08b(0x26b)]()+'/'+_0x37f5be[_0x52a08b(0x19c)]+_0x52a08b(0x2b0);return(await this[_0x52a08b(0x24a)][_0x52a08b(0x266)](_0x211007,{'body':_0x37f5be}))['body'][_0x52a08b(0x1e5)]||'';}async[_0x50ca80(0x357)](_0x5e46fc){const _0x2b1164=_0x50ca80;let _0x41dac2=this['_getAPIPrefixPath']()+_0x2b1164(0x129);return(await this[_0x2b1164(0x24a)]['post'](_0x41dac2,{'body':_0x5e46fc}))['body'][_0x2b1164(0x127)];}async[_0x50ca80(0x24f)](_0x4878e3){const _0x3ea543=_0x50ca80;var _0x4c07a6;let _0x388515=this[_0x3ea543(0x26b)]()+'/'+_0x4878e3[_0x3ea543(0x19c)]+_0x3ea543(0x1a8)+_0x4878e3[_0x3ea543(0x1e5)],_0x1aa3c2=await this[_0x3ea543(0x24a)][_0x3ea543(0x30d)](_0x388515,{'body':_0x4878e3});if((_0x1aa3c2==null||(_0x4c07a6=_0x1aa3c2['body'])==null||(_0x4c07a6=_0x4c07a6['error'])==null?void 0x0:_0x4c07a6[_0x3ea543(0x12e)])!==0x1)throw Error(_0x3ea543(0x2f3));}async[_0x50ca80(0x167)](_0x433482){const _0x49df78=_0x50ca80;let _0x4eebfb=this['_getAPIPrefixPath']()+'/'+_0x433482['objectType']+_0x49df78(0x1a8)+_0x433482[_0x49df78(0x1e5)]+_0x49df78(0x1bd);return(await this['_HTTPService'][_0x49df78(0x266)](_0x4eebfb,{'body':_0x433482}))[_0x49df78(0x2d0)][_0x49df78(0x208)];}async[_0x50ca80(0x140)](_0x20361c){const _0x3a5401=_0x50ca80;let _0xb7e1f7=this['_getAPIPrefixPath']()+_0x3a5401(0x112);return(await this[_0x3a5401(0x24a)]['post'](_0xb7e1f7,{'body':{'requests':_0x20361c}}))[_0x3a5401(0x2d0)][_0x3a5401(0x1f8)];}async[_0x50ca80(0x1d1)](_0x180f2){const _0x277acc=_0x50ca80;let _0x4ca378=this['_getAPIPrefixPath']()+'/'+_0x180f2['objectType']+_0x277acc(0x121),_0x1e583f=await this[_0x277acc(0x24a)][_0x277acc(0x266)](_0x4ca378,{'body':_0x180f2});return{'roles':_0x1e583f[_0x277acc(0x2d0)][_0x277acc(0x1b2)],'actions':_0x1e583f[_0x277acc(0x2d0)][_0x277acc(0x208)]};}async[_0x50ca80(0x143)](_0x3e1c68){const _0x28116b=_0x50ca80;let _0x1d3347=this[_0x28116b(0x26b)]()+'/collaborator';await this[_0x28116b(0x24a)]['delete'](_0x1d3347,{'params':{'collaboratorID':_0x3e1c68['collaboratorID'],'objectID':_0x3e1c68[_0x28116b(0x1e5)],'unitID':_0x3e1c68['unitID']}});}async[_0x50ca80(0x1e6)](_0x1d8000){const _0x3e3735=_0x50ca80;let _0x1714d4=this[_0x3e3735(0x26b)]()+_0x3e3735(0x1aa);await this[_0x3e3735(0x24a)][_0x3e3735(0xfa)](_0x1714d4,{'body':_0x1d8000});}async[_0x50ca80(0x30b)](_0x56bcb7){const _0x1c3ab6=_0x50ca80;let _0x1b842d=this[_0x1c3ab6(0x26b)]()+_0x1c3ab6(0x1aa);await this[_0x1c3ab6(0x24a)][_0x1c3ab6(0x266)](_0x1b842d,{'body':_0x56bcb7});}async[_0x50ca80(0x1ca)](_0x599d48){const _0x2cf001=_0x50ca80;var _0x2d76db;let _0x5e508e=this[_0x2cf001(0x26b)]()+'/collaborator',_0x484d34=await this['_HTTPService']['get'](_0x5e508e,{'params':{'objectID':_0x599d48[_0x2cf001(0x1e5)],'unitID':_0x599d48[_0x2cf001(0x247)]}});return this['setCfgEnableObjInherit']((_0x2d76db=_0x484d34[_0x2cf001(0x2d0)][_0x2cf001(0x299)])==null?!0x1:_0x2d76db),_0x484d34['body']['collaborators'];}async[_0x50ca80(0x1ef)](_0x5cc0a6){const _0x2f954b=_0x50ca80;let _0x2a0b04=this[_0x2f954b(0x26b)]()+'/collaborator';await this[_0x2f954b(0x24a)][_0x2f954b(0x30d)](_0x2a0b04,{'body':_0x5cc0a6});}[_0x50ca80(0x1b5)](_0x4fe954){const _0x1b0d5f=_0x50ca80;this[_0x1b0d5f(0x22c)]=_0x4fe954;}[_0x50ca80(0x334)](){const _0x4afc6e=_0x50ca80;return this[_0x4afc6e(0x22c)];}};sn=z([R(0x0,_0x4bd6ab(_0x2872f5)),R(0x1,_0x4bd6ab(_0x25ecfe))],sn);function cn(_0x5ac272){const _0x517fa7=_0x50ca80;let _0x2fbe33=atob(_0x5ac272),_0x1d019b=new Uint8Array(_0x2fbe33[_0x517fa7(0x29f)]);for(let _0x1ba372=0x0;_0x1ba372<_0x2fbe33['length'];_0x1ba372++)_0x1d019b[_0x1ba372]=_0x2fbe33['charCodeAt'](_0x1ba372);return _0x1d019b;}function ln(_0x43564b){const _0xb3bb45=_0x50ca80;let _0x2e9fcf='';for(let _0x2aad01=0x0;_0x2aad01<_0x43564b['length'];_0x2aad01++)_0x2e9fcf+=String[_0xb3bb45(0x1ec)](_0x43564b[_0x2aad01]);return btoa(_0x2e9fcf);}function un(_0x3ec6f9,_0x44fbcf){let _0x1a049b=cn(_0x44fbcf),_0x1b977a=_0x2d6247(0x10);return ln(_0x3fda9d(_0x1b977a,_0x56ae54(_0x1a049b,_0x1b977a)['encrypt'](_0x1306c9(_0x3ec6f9))));}function dn(){const _0x59db84=_0x50ca80;let _0x4d9506=_0x55cc8b()['__Key__'];if(typeof window<'u'&&window[_0x59db84(0x1be)]!==void 0x0&&_0x4d9506){let _0x4d7b1f={'time':Math[_0x59db84(0x2fb)](Date[_0x59db84(0x217)]()/0x3e8),'domain':location['hostname']};return un(JSON['stringify'](_0x4d7b1f),_0x4d9506);}}let fn=class{constructor(_0x3fc698){const _0x19774e=_0x50ca80;this[_0x19774e(0x1da)]=_0x3fc698,this['_initRequestHeader']();}['_initRequestHeader'](){const _0x1b3c2f=_0x50ca80;this[_0x1b3c2f(0x1da)][_0x1b3c2f(0x282)]({'interceptor':(_0x33050d,_0x41d7f1)=>{const _0x46e7ca=_0x1b3c2f;let _0x25f941=dn();return _0x25f941&&_0x33050d[_0x46e7ca(0x160)][_0x46e7ca(0x2d4)](_0x46e7ca(0x2bc),_0x25f941),_0x41d7f1(_0x33050d);}});}};fn=z([R(0x0,_0x4bd6ab(_0x2872f5))],fn);let pn=class extends _0x1e6e8b{constructor(_0x3fbee0,_0x277469,_0x2b8624){const _0x5de385=_0x50ca80;super(),this['_logService']=_0x3fbee0,this[_0x5de385(0x100)]=_0x277469,this[_0x5de385(0x1f5)]=_0x2b8624,I(this,_0x5de385(0x358),new _0x4a3716(null)),I(this,_0x5de385(0x198),this[_0x5de385(0x358)]['asObservable']());}async[_0x50ca80(0x2f8)](_0xc1ec96,_0x374589,_0x8ea170){const _0x22ac3f=_0x50ca80;this[_0x22ac3f(0x358)][_0x22ac3f(0x11f)]({'unitId':_0xc1ec96,'type':_0x374589});let _0x59cbbd=null;switch(_0x374589){case _0x261bc8['UNIVER_SHEET']:_0x59cbbd=await this[_0x22ac3f(0x100)][_0x22ac3f(0x142)](_0xc1ec96,_0x8ea170);break;case _0x261bc8[_0x22ac3f(0x258)]:_0x59cbbd=await this['_snapshotService'][_0x22ac3f(0x240)](_0xc1ec96,_0x8ea170);break;default:this[_0x22ac3f(0x313)][_0x22ac3f(0x292)](_0x22ac3f(0x16a),_0x22ac3f(0x310));break;}return _0x59cbbd;}async[_0x50ca80(0x14a)](_0x1216e9,_0x5d31c2,_0x27fa5e){const _0x3414b6=_0x50ca80;var _0x334263;this[_0x3414b6(0x358)][_0x3414b6(0x11f)]({'unitId':_0x1216e9,'type':_0x5d31c2,'subUnitId':_0x27fa5e});let _0x11914a=0x0,_0x2cd7a6=await((_0x334263=this[_0x3414b6(0x1f5)])==null?void 0x0:_0x334263[_0x3414b6(0x348)](_0x1216e9));return _0x2cd7a6&&(_0x2cd7a6[_0x3414b6(0x243)]||_0x2cd7a6[_0x3414b6(0x301)][_0x3414b6(0x29f)]!==0x0)&&(_0x11914a=_0x2cd7a6['rev']),_0x11914a===0x0&&this['_logService'][_0x3414b6(0x168)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x3414b6(0x2f8)](_0x1216e9,_0x5d31c2,_0x11914a);}};pn=z([R(0x0,_0x5b7991),R(0x1,_0x4bd6ab(_0x195e17)),R(0x2,_0x122efe(V))],pn);let mn=class{constructor(_0x452d12,_0x4c3421,_0x59787b){const _0x2df6ab=_0x50ca80;this[_0x2df6ab(0x1da)]=_0x452d12,this[_0x2df6ab(0x136)]=_0x4c3421,this[_0x2df6ab(0x257)]=_0x59787b,I(this,_0x2df6ab(0x300),0x0),I(this,'_change$',new _0x582e08()),I(this,_0x2df6ab(0x122),this['_change$']),I(this,_0x2df6ab(0x2ea),new Map());}['setWaitCount'](_0x490bca){const _0x26ac30=_0x50ca80;this[_0x26ac30(0x300)]=_0x490bca,this[_0x26ac30(0x33c)]['next'](_0x490bca);}['getImageSourceCache'](_0x516fd9,_0x51f246){const _0x3631ff=_0x50ca80;if(_0x51f246===_0x58c991[_0x3631ff(0x180)]){let _0x3f1d35=new Image();return _0x3f1d35[_0x3631ff(0x1c7)]=_0x516fd9,_0x3f1d35;}return this[_0x3631ff(0x2ea)][_0x3631ff(0x2e5)](_0x516fd9);}['addImageSourceCache'](_0x539f84,_0x26c6e8,_0x152b57){const _0x4c8c8f=_0x50ca80;_0x26c6e8===_0x58c991[_0x4c8c8f(0x180)]||_0x152b57==null||this[_0x4c8c8f(0x2ea)][_0x4c8c8f(0x2d4)](_0x539f84,_0x152b57);}async[_0x50ca80(0x146)](_0x492f06){const _0x2ef0a8=_0x50ca80;try{let _0x5122a9=this[_0x2ef0a8(0x1d4)](this[_0x2ef0a8(0x353)](),''+_0x492f06),_0x2f097e=(await this['_httpService'][_0x2ef0a8(0x2e5)](_0x5122a9))['body'];if(_0x2f097e[_0x2ef0a8(0x292)]&&_0x2f097e[_0x2ef0a8(0x292)][_0x2ef0a8(0x12e)]===_0x111d5a['OK']){let _0x507d55=_0x3243cf(_0x2f097e[_0x2ef0a8(0x223)],this[_0x2ef0a8(0x345)]());return Promise['resolve'](_0x507d55);}return Promise[_0x2ef0a8(0x276)](_0x2f097e[_0x2ef0a8(0x292)]);}catch(_0x343367){return Promise[_0x2ef0a8(0x276)](_0x343367);}}async[_0x50ca80(0x2c9)](_0x24a54f){const _0xf8507c=_0x50ca80;let _0x5d54de='';if(!_0x492880[_0xf8507c(0x202)](_0x24a54f[_0xf8507c(0x2e3)]))return this[_0xf8507c(0x30c)](),Promise[_0xf8507c(0x276)](Error(_0x58b178[_0xf8507c(0x347)]));if(_0x24a54f[_0xf8507c(0x177)]>_0x5631f8())return this[_0xf8507c(0x30c)](),Promise['reject'](Error(_0x58b178[_0xf8507c(0x11e)]));try{let _0x413887=new FormData();_0x413887['append'](_0xf8507c(0x1ae),_0x24a54f);let _0x54d6ff=this['_univerInstanceService'][_0xf8507c(0x27a)](),_0x15bfc1=_0x54d6ff==null?void 0x0:_0x54d6ff[_0xf8507c(0x2f9)]();if(!_0x15bfc1)throw Error(_0xf8507c(0x252));let _0x2e971c=this['_getUploadFileURL']()+_0xf8507c(0xf0)+_0x24a54f[_0xf8507c(0x177)]['toString']()+'&source='+_0x1897c5[_0xf8507c(0x116)]+_0xf8507c(0x289)+encodeURIComponent(_0x15bfc1),_0x55ace9={'body':_0x413887},_0x1b1d18=(await this[_0xf8507c(0x1da)][_0xf8507c(0x266)](_0x2e971c,_0x55ace9))[_0xf8507c(0x2d0)];if(typeof _0x1b1d18[_0xf8507c(0x131)]!='string')return this[_0xf8507c(0x30c)](),Promise[_0xf8507c(0x276)](Error(_0x58b178[_0xf8507c(0x2e2)]));_0x5d54de=_0x1b1d18[_0xf8507c(0x131)];}catch{return this['_decreaseWaiting'](),Promise['reject'](Error(_0x58b178['ERROR_IMAGE']));}return new Promise((_0x59d97f,_0x2b8c33)=>{const _0x11e99c=_0xf8507c;let _0x355ed5=new FileReader();_0x355ed5[_0x11e99c(0x170)](_0x24a54f),_0x355ed5[_0x11e99c(0x13f)]=_0x284cf6=>{const _0x1cc7d1=_0x11e99c;var _0x3a96eb;let _0xf4f7d0=(_0x3a96eb=_0x284cf6[_0x1cc7d1(0x32b)])==null?void 0x0:_0x3a96eb[_0x1cc7d1(0x18a)];if(_0xf4f7d0==null){this[_0x1cc7d1(0x30c)](),_0x2b8c33(Error(_0x58b178[_0x1cc7d1(0x2e2)]));return;}_0x59d97f({'imageId':_0x5f423d(0x6),'imageSourceType':_0x58c991[_0x1cc7d1(0x315)],'source':_0x5d54de,'base64Cache':_0xf4f7d0,'status':_0x58b178['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x50ca80(0x1db)](){const _0x1c1888=_0x50ca80;var _0x2629ea;let _0x419e1a=this[_0x1c1888(0x136)]['getConfig'](U);return(_0x2629ea=_0x419e1a==null?void 0x0:_0x419e1a[_0x1c1888(0x22f)])==null?_0x1c1888(0x273):_0x2629ea;}[_0x50ca80(0x353)](){const _0x445be0=_0x50ca80;var _0xa535e2;let _0x36eb28=this['_configService'][_0x445be0(0x106)](U);return(_0xa535e2=_0x36eb28==null?void 0x0:_0x36eb28[_0x445be0(0x2ca)])==null?_0x445be0(0x26d):_0xa535e2;}['_getDownloadEndpointURL'](){const _0x5e69be=_0x50ca80;var _0x1e648d;let _0x32f878=this['_configService']['getConfig'](U);return(_0x1e648d=_0x32f878==null?void 0x0:_0x32f878[_0x5e69be(0x2a1)])==null?location[_0x5e69be(0x346)]:_0x1e648d;}['_replaceFileID'](_0x227687,_0x30b674){const _0x1cc17b=_0x50ca80;return _0x227687['replace'](_0x1cc17b(0xea),_0x30b674);}[_0x50ca80(0x30c)](){const _0x230496=_0x50ca80;--this[_0x230496(0x300)],this[_0x230496(0x33c)][_0x230496(0x11f)](this[_0x230496(0x300)]);}};mn=z([R(0x0,_0x4bd6ab(_0x2872f5)),R(0x1,_0x25ecfe),R(0x2,_0x4bd6ab(_0x2dad56))],mn);let hn=class{constructor(_0x2cde5a,_0x1fb484){const _0x3452c4=_0x50ca80;this[_0x3452c4(0x136)]=_0x2cde5a,this[_0x3452c4(0x24a)]=_0x1fb484;}[_0x50ca80(0x26b)](){const _0x54dffd=_0x50ca80;var _0x5b76b1;let _0x3cb23a=this[_0x54dffd(0x136)]['getConfig'](U);return(_0x5b76b1=_0x3cb23a==null?void 0x0:_0x3cb23a[_0x54dffd(0x16e)])==null?_0x54dffd(0x166):_0x5b76b1;}async[_0x50ca80(0x357)](_0x42c507){const _0x238ffc=_0x50ca80;let _0x4e3ac4=this[_0x238ffc(0x26b)]()+'/collaborator';return{'list':[{'title':_0x238ffc(0x10f),'mentions':(await this['_HTTPService'][_0x238ffc(0x2e5)](_0x4e3ac4,{'params':{'objectID':_0x42c507[_0x238ffc(0x263)],'unitID':_0x42c507[_0x238ffc(0x263)]}}))[_0x238ffc(0x2d0)]['collaborators'][_0x238ffc(0x1c9)](_0x78e745=>({'objectId':_0x78e745['id'],'name':_0x78e745[_0x238ffc(0x2c6)][_0x238ffc(0x1e2)],'metadata':{'icon':_0x78e745['subject'][_0x238ffc(0x1e3)]},'label':_0x78e745[_0x238ffc(0x2c6)][_0x238ffc(0x1e2)],'objectType':_0x4ced22[_0x238ffc(0x319)]})),'metadata':{},'type':_0x4ced22[_0x238ffc(0x319)]}]};}};hn=z([R(0x0,_0x4bd6ab(_0x25ecfe)),R(0x1,_0x4bd6ab(_0x2872f5))],hn);let gn=class extends _0x1e6e8b{constructor(_0x141828,_0x5376e9,_0x4c4b7c,_0x3ec3af,_0x40837b){const _0x178400=_0x50ca80;super(),this[_0x178400(0x102)]=_0x141828,this['_univerInstanceService']=_0x5376e9,this[_0x178400(0x187)]=_0x4c4b7c,this['_collaborationSessionService']=_0x3ec3af,this[_0x178400(0x286)]=_0x40837b,this[_0x178400(0x35d)](),this[_0x178400(0x33b)]();}['_initCloseConn'](){const _0x31622b=_0x50ca80;let _0x4e7e30=async _0x29fe6f=>{const _0x54149c=_0x3123;(await this[_0x54149c(0x25d)][_0x54149c(0x16c)](_0x29fe6f))['event$'][_0x54149c(0x2b3)](_0x4a6387(_0x464d5b=>_0x464d5b[_0x54149c(0x27c)]===_0x3b8cc3[_0x54149c(0x188)]),_0x5d5659(this[_0x54149c(0x176)]))['subscribe'](_0x59c864=>{const _0x4e1f53=_0x54149c;let {reason:_0x10eabf}=_0x59c864['data'];this[_0x4e1f53(0x286)][_0x4e1f53(0x355)]({'id':_0x4e1f53(0x314),'data':_0x10eabf}),this[_0x4e1f53(0x187)][_0x4e1f53(0x1ab)](new _0x2c6ff9(_0x29fe6f)['id'],!0x1),this[_0x4e1f53(0x25d)][_0x4e1f53(0x1f7)](_0x29fe6f);});};_0x12dbcf(this[_0x31622b(0x257)]['getTypeOfUnitAdded$'](_0x261bc8[_0x31622b(0x144)]),this[_0x31622b(0x257)][_0x31622b(0x1fd)](_0x261bc8[_0x31622b(0x258)]))['pipe'](_0x3cf0ac(_0x280175=>_0x280175[_0x31622b(0x178)][_0x31622b(0x2f9)]()),_0x4a6387(_0x3afe8d=>!_0x3309a8(_0x3afe8d)),_0x5d5659(this[_0x31622b(0x176)]))[_0x31622b(0x1fe)](_0x542d0f=>{_0x4e7e30(_0x542d0f);});}[_0x50ca80(0x35d)](){const _0x23b92f=_0x50ca80;let _0x155cdf=async _0x477e61=>{const _0x2d9596=_0x3123;let _0x35676b=await this[_0x2d9596(0x25d)]['requireSession'](_0x477e61),_0x4a3582=this[_0x2d9596(0x102)][_0x2d9596(0x2e5)](_0x11aeaf);_0x35676b[_0x2d9596(0x1a7)][_0x2d9596(0x2b3)](_0x4a6387(_0x53963e=>_0x53963e[_0x2d9596(0x27c)]===_0x3b8cc3[_0x2d9596(0x306)]),_0x5d5659(this['dispose$']))['subscribe'](_0x1f9fd5=>{const _0x4e1575=_0x2d9596;let {objectId:_0x38fd3f}=_0x1f9fd5['data'];_0x38fd3f===_0x477e61?_0x4a3582[_0x4e1575(0x104)](_0x477e61):_0x4a3582[_0x4e1575(0x344)](_0x477e61,_0x38fd3f);});};_0x12dbcf(this[_0x23b92f(0x257)][_0x23b92f(0x1fd)](_0x261bc8[_0x23b92f(0x144)]))[_0x23b92f(0x2b3)](_0x3cf0ac(_0x2be71a=>_0x2be71a[_0x23b92f(0x178)][_0x23b92f(0x2f9)]()),_0x4a6387(_0xd231aa=>!_0x3309a8(_0xd231aa)),_0x5d5659(this[_0x23b92f(0x176)]))[_0x23b92f(0x1fe)](_0xf68b92=>{_0x155cdf(_0xf68b92);});}};gn=z([R(0x0,_0x4bd6ab(_0x280033)),R(0x1,_0x2dad56),R(0x2,_0x393a1b),R(0x3,_0x4bd6ab(Q)),R(0x4,_0x4bd6ab(L))],gn);let _n=class{constructor(_0x196647,_0x1ea403){const _0x3834db=_0x50ca80;this[_0x3834db(0x136)]=_0x196647,this[_0x3834db(0x1da)]=_0x1ea403;}async[_0x50ca80(0x234)](_0x58d787,_0x41c228){const _0x1327f5=_0x50ca80;var _0x5ee5bf;let {unitID:_0x4ff1cc,type:_0x677e01,revision:_0x414846=0x0}=_0x41c228,_0x3aa136=this[_0x1327f5(0x2b4)]()+'/'+_0x677e01+'/unit/'+_0x4ff1cc+_0x1327f5(0x307)+_0x414846,_0x5c2c51=(await this[_0x1327f5(0x1da)][_0x1327f5(0x2e5)](_0x3aa136))[_0x1327f5(0x2d0)],_0x55a59e=(_0x5ee5bf=_0x5c2c51[_0x1327f5(0x2c5)])==null?void 0x0:_0x5ee5bf[_0x1327f5(0x1f9)];if(_0x55a59e){let _0x5178eb=_0x55a59e==null?void 0x0:_0x55a59e[_0x1327f5(0x2c1)];_0x55a59e[_0x1327f5(0x2c1)]=_0x2e6b4d['encode'](_0x3d3618(_0x5178eb)),Object[_0x1327f5(0x33f)](_0x55a59e['sheets'])[_0x1327f5(0x1bf)](([,_0x4d8123])=>{const _0x11acea=_0x1327f5;let _0x51ddff=_0x4d8123['originalMeta'];_0x4d8123[_0x11acea(0x2c1)]=_0x2e6b4d[_0x11acea(0x197)](_0x3d3618(_0x51ddff));});}return _0x5c2c51;}async[_0x50ca80(0x207)](_0x3f1e05,_0xc1a9cb){const _0x22f5e1=_0x50ca80;let {unitID:_0x3e8402,type:_0xf6ff78,blockID:_0x3c27fc}=_0xc1a9cb,_0x511406=this[_0x22f5e1(0x2cb)]()+'/'+_0xf6ff78+_0x22f5e1(0x1c1)+_0x3e8402+_0x22f5e1(0x120)+_0x3c27fc;return(await this[_0x22f5e1(0x1da)][_0x22f5e1(0x2e5)](_0x511406))['body'];}async[_0x50ca80(0x1c6)](_0x29a498,_0x27f688){const _0x5a769d=_0x50ca80;let {unitID:_0x35117e,type:_0x18adcc,blockID:_0x50909f}=_0x27f688,_0x29319=this['_getAPIPrefix']()+_0x5a769d(0x120)+_0x18adcc+'/unit/'+_0x35117e+_0x5a769d(0x120)+_0x50909f;return(await this[_0x5a769d(0x1da)][_0x5a769d(0x2e5)](_0x29319))['body'];}async[_0x50ca80(0x1c0)](_0x3f19d1,_0x408498){const _0x25bd60=_0x50ca80;let {unitID:_0x27e618,type:_0x1fbfca,from:_0x55120c,to:_0xf1962}=_0x408498,_0x7179bf=this[_0x25bd60(0x2cb)]()+'/'+_0x1fbfca+_0x25bd60(0x1c1)+_0x27e618+'/fetchmissing?from='+_0x55120c+_0x25bd60(0x2f4)+_0xf1962;return(await this['_httpService'][_0x25bd60(0x2e5)](_0x7179bf))[_0x25bd60(0x2d0)];}[_0x50ca80(0x2b4)](){const _0xad30fb=_0x50ca80;var _0x2d8f74;return(_0x2d8f74=this[_0xad30fb(0x136)][_0xad30fb(0x106)](_0xad30fb(0x235)))==null?this[_0xad30fb(0x2cb)]():_0x2d8f74;}[_0x50ca80(0x2cb)](){const _0x51932f=_0x50ca80;var _0x3f5da4;let _0x42309c=this[_0x51932f(0x136)][_0x51932f(0x106)](U);return(_0x3f5da4=_0x42309c==null?void 0x0:_0x42309c[_0x51932f(0x216)])==null?_0x51932f(0x26c):_0x3f5da4;}async[_0x50ca80(0x2e7)](_0x16d3f8,_0x240bc6){const _0x1451d9=_0x50ca80;let _0x5a7afa=_0x1451d9(0x2c8)+_0x240bc6[_0x1451d9(0x2e3)]+_0x1451d9(0x1c1)+_0x240bc6['unitID']+_0x1451d9(0x16f);return(await this[_0x1451d9(0x1da)][_0x1451d9(0x2e5)](_0x5a7afa,{'params':{'resourceId':JSON['stringify'](_0x240bc6['resourceIDs'])}}))[_0x1451d9(0x2d0)];}['saveSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x50ca80(0x2c0)](){const _0x1e966c=_0x50ca80;throw Error(_0x1e966c(0x110));}[_0x50ca80(0x12b)](){const _0x110bc2=_0x50ca80;throw Error(_0x110bc2(0x110));}[_0x50ca80(0x27f)](){const _0x45b38b=_0x50ca80;throw Error(_0x45b38b(0x110));}[_0x50ca80(0x1cb)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x50ca80(0x2f7)](){const _0xd3d8fa=_0x50ca80;throw Error(_0xd3d8fa(0x110));}};_n=z([R(0x0,_0x25ecfe),R(0x1,_0x4bd6ab(_0x2872f5))],_n);let vn=class extends _0x2585ac{constructor(_0x1cd924,_0x4ea8e4,_0x25fd7d,_0x4930ba,_0x16a0bc){const _0x4d2e11=_0x50ca80;super(_0x1cd924,_0x4ea8e4,_0x25fd7d),this[_0x4d2e11(0x1a3)]=_0x4930ba,this[_0x4d2e11(0x313)]=_0x16a0bc;}['transformUndoRedo'](_0x238be8,_0x1c279f){const _0x495333=_0x50ca80;let _0x460a87=this[_0x495333(0x34a)](_0x238be8);if(_0x460a87)try{let _0x5ea703=this[_0x495333(0x270)](_0x460a87,_0x1c279f);this[_0x495333(0x15b)](_0x238be8,_0x5ea703);}catch(_0x50704a){this['_logService'][_0x495333(0x292)]('[CollaborationUndoRedoService]',_0x50704a),this[_0x495333(0x171)](_0x238be8);}let _0x88b476=this[_0x495333(0x29b)](_0x238be8);if(_0x88b476)try{let _0x4bf838=this[_0x495333(0x270)](_0x88b476,_0x1c279f);this['_substituteRedoStack'](_0x238be8,_0x4bf838);}catch(_0x21a0d3){this[_0x495333(0x313)]['error'](_0x21a0d3),this[_0x495333(0x24b)](_0x238be8);}}[_0x50ca80(0x171)](_0x45577d){const _0x418cf4=_0x50ca80;let _0x2dbca2=this[_0x418cf4(0x34a)](_0x45577d);_0x2dbca2&&(_0x2dbca2['length']=0x0,this[_0x418cf4(0x254)]());}[_0x50ca80(0x24b)](_0x2c8efb){const _0x3e647d=_0x50ca80;let _0x2f112b=this[_0x3e647d(0x29b)](_0x2c8efb);_0x2f112b&&(_0x2f112b[_0x3e647d(0x29f)]=0x0,this['_updateStatus']());}[_0x50ca80(0x15b)](_0x3e65ee,_0x3f4e83){const _0x1686dd=_0x50ca80;this[_0x1686dd(0x113)]['set'](_0x3e65ee,_0x3f4e83),this[_0x1686dd(0x254)]();}[_0x50ca80(0x173)](_0x3e82dc,_0x2d4aac){const _0x17d35b=_0x50ca80;this[_0x17d35b(0x2fc)]['set'](_0x3e82dc,_0x2d4aac),this['_updateStatus']();}[_0x50ca80(0x270)](_0x2592ef,_0x10545a){const _0x28cfb4=_0x50ca80;let _0x19f87d=[],_0x3b5a90=_0x10545a,_0x421950=_0x10545a;for(let _0x8d5878=_0x2592ef['length']-0x1;_0x8d5878>=0x0;_0x8d5878--){let {unitID:_0xe00318,undoMutations:_0x5af3db,redoMutations:_0x1a601b}=_0x2592ef[_0x8d5878],_0xc500fa=this[_0x28cfb4(0x1a3)][_0x28cfb4(0x25f)](_0x3b5a90,_0x5af3db),_0x5af437=this[_0x28cfb4(0x1a3)][_0x28cfb4(0x25f)](_0x421950,_0x1a601b);if(_0x53fd64(_0xc500fa)||_0x53fd64(_0x5af437)){this['_logService'][_0x28cfb4(0x292)]('[CollaborationUndoRedoService]',_0x28cfb4(0x31d),_0xc500fa,_0x5af437);break;}_0x3b5a90=_0xc500fa[_0x28cfb4(0xf3)],_0x421950=_0x5af437[_0x28cfb4(0xf3)],_0x19f87d[_0x28cfb4(0x271)]({'unitID':_0xe00318,'undoMutations':_0xc500fa[_0x28cfb4(0x2bd)],'redoMutations':_0x5af437[_0x28cfb4(0x2bd)]});}return _0x19f87d[_0x28cfb4(0x30a)]();}};vn=z([R(0x0,_0x2dad56),R(0x1,_0x2d9981),R(0x2,_0x711b23),R(0x3,_0x1726e6),R(0x4,_0x5b7991)],vn);let $=class extends _0x10339e{constructor(_0x21e932={},_0x37ab12,_0x3221b2,_0xc7f0eb){const _0x1c8824=_0x50ca80;super(),this[_0x1c8824(0x215)]=_0x21e932,this[_0x1c8824(0x313)]=_0x37ab12,this[_0x1c8824(0x102)]=_0x3221b2,this['_configService']=_0xc7f0eb;let {..._0x585441}=_0x48b3d1({},Nt,_0x21e932);if(!_0x585441['socketService'])throw Error(_0x1c8824(0x31e));this['_config']=_0x585441,this[_0x1c8824(0x136)]['setConfig'](U,_0x585441);}[_0x50ca80(0x196)](){const _0x3a7901=_0x50ca80;this[_0x3a7901(0x123)](),this[_0x3a7901(0x1a1)]();}['_registerDependencies'](){const _0x186e91=_0x50ca80;var _0x1432fc,_0x1b6df0;this[_0x186e91(0x102)]['has'](_0x16c6c1)&&this[_0x186e91(0x313)]['error'](_0x186e91(0x220),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x1eae7c=_0x177d9b([[_0x16c6c1,{'useClass':vn}],[Q],[B],[H],[on],[fn],[wt],[gn],[L],[pn],[Qt,{'useClass':this['_config']['socketService']}],[_0x61d41c,{'useClass':_n}],[_0x5e68f5,{'useClass':sn}],[_0x505a62,{'useClass':mn}],[_0x1849c0,{'useClass':hn}],[tn],[an]],(_0x1432fc=this[_0x186e91(0x215)])==null?void 0x0:_0x1432fc[_0x186e91(0x2fd)]);if(!((_0x1b6df0=this['_config'])!=null&&_0x1b6df0['enableSingleActiveInstanceLock'])){let _0x86c5ed=_0x1eae7c[_0x186e91(0x179)](([_0x4d0e34])=>_0x4d0e34===jt);_0x86c5ed!==-0x1&&_0x1eae7c['splice'](_0x86c5ed,0x1);}_0x47484a(this['_injector'],_0x1eae7c);}['_initDependencies'](){const _0x594f5a=_0x50ca80;var _0x19c2b2,_0x1c81e3;if(this[_0x594f5a(0x102)][_0x594f5a(0x2e5)](_0x2872f5)[_0x594f5a(0x282)]({'priority':0x14,'interceptor':_0x48583f({'maxParallel':0x6})}),!((_0x19c2b2=this[_0x594f5a(0x215)])!=null&&_0x19c2b2['enableOfflineEditing'])){var _0x2468ed;(_0x2468ed=this[_0x594f5a(0x102)][_0x594f5a(0x2e5)](V,_0x4cdc56['OPTIONAL']))==null||_0x2468ed['disableLocalCache']();}(_0x1c81e3=this[_0x594f5a(0x215)])!=null&&_0x1c81e3['enableAuthServer']&&_0x16b47b(this['_injector'],[[on]]),_0x16b47b(this[_0x594f5a(0x102)],[[fn],[tn],[gn]]);}};I($,_0x50ca80(0x34f),_0x50ca80(0x11b)),I($,_0x50ca80(0x159),nn),I($,'version',rn),$=z([_0x36b668(_0x534395,_0x4e4157,_0x2a9b2f),R(0x1,_0x5b7991),R(0x2,_0x4bd6ab(_0x280033)),R(0x3,_0x25ecfe)],$);export{sn as AuthzIoHttpService,q as AwaitingState,J as AwaitingWithPendingState,U as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,tn as CollaborationController,Kt as CollaborationEntity,mn as CollaborationImageIoService,Ot as CollaborationSession,Q as CollaborationSessionService,en as CollaborationSocketService,Ht as CollaborationStatus,Ct as CollaborationUIEventId,L as CollaborationUIEventService,vn as CollaborativeUndoRedoService,wt as CommentService,Y as ConflictState,ut as DEFAULT_COLLAB_WEB_SOCKET_URL,yt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,dt as DEFAULT_WS_SESSION_TICKET_URL,pn as DataLoaderService,qt as DocCollaborationEntity,Z as FetchingMissState,ft as HEARTBEAT_INTERVAL_KEY,pt as HEARTBEAT_TIMEOUT_KEY,Qt as ICollaborationSocketService,V as ILocalCacheService,Yt as INetworkConditionService,jt as ISingleActiveUnitService,_t as LOCAL_CACHE_INTERVAL,gt as LOCAL_CACHE_INTERVAL_KEY,B as MemberService,hn as MentionIoHttpService,X as OfflineState,K as PendingState,vt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,ht as RETRY_CONNECTING_MAX_COUNT_KEY,Et as SessionStatus,Jt as SheetCollaborationEntity,H as SheetTransformSelectionsService,_n as SnapshotServerOverHTTPService,G as SyncedState,Mt as UnitStatus,$ as UniverCollaborationClientPlugin,Xt as deserializeToCombResponse,kt as getLocalCacheKey,Zt as serializeCombRequest};
1
+ const _0x35f73b=_0x3c29;(function(_0x4fee7a,_0x4d4e3c){const _0x276a2a=_0x3c29,_0x3541ef=_0x4fee7a();while(!![]){try{const _0x20023e=-parseInt(_0x276a2a(0x2c5))/0x1+-parseInt(_0x276a2a(0x2b8))/0x2*(parseInt(_0x276a2a(0x302))/0x3)+-parseInt(_0x276a2a(0x1da))/0x4+-parseInt(_0x276a2a(0x252))/0x5+-parseInt(_0x276a2a(0x1e4))/0x6*(parseInt(_0x276a2a(0x2b2))/0x7)+-parseInt(_0x276a2a(0x1e5))/0x8+-parseInt(_0x276a2a(0x2c4))/0x9*(-parseInt(_0x276a2a(0x343))/0xa);if(_0x20023e===_0x4d4e3c)break;else _0x3541ef['push'](_0x3541ef['shift']());}catch(_0x219c54){_0x3541ef['push'](_0x3541ef['shift']());}}}(_0x1ebd,0x41171));import{CollaborationEvent as _0x576af5,CompressMutationService as _0x781451,EmptyMutationInfo as _0x40f6fb,ISnapshotServerService as _0x3af6ca,ITransformService as _0x348e40,RevisionService as _0x1ee4fd,SnapshotService as _0x245f1e,UniverCollaborationPlugin as _0x265883,b64DecodeUnicode as _0x1b81c6,isTransformChangesetsSuccess as _0xbb97b6,isTransformMutationsWithChangesetFailure as _0x10f13a,isTransformMutationsWithChangesetSuccess as _0x5d12cb,mapDocumentTypeToUniverInstanceType as _0x3a730c,parseChangesetToProtocol as _0x45be51,parseProtocolChangeset as _0x2dfd05,textEncoder as _0x454182,uuidv4 as _0x45b42c}from'@univerjs-pro/collaboration';import{CommandType as _0x37c8a8,DependentOn as _0x2cd6f8,Disposable as _0x1fae62,DisposableCollection as _0xd013fe,IAuthzIoService as _0x780d41,ICommandService as _0x5c3744,IConfigService as _0x160dc0,IContextService as _0x4e7340,ILogService as _0x3594cb,IMentionIOService as _0x21f72d,IPermissionService as _0x5043f7,IUndoRedoService as _0x257c3e,IUniverInstanceService as _0x599079,Inject as _0x1b23c9,Injector as _0x2b692d,JSONX as _0xad6fae,LocalUndoRedoService as _0x4f956f,LocaleService as _0x2c19d0,MentionType as _0x916f82,Optional as _0xbefc86,Plugin as _0x176987,Quantity as _0x430b4f,Rectangle as _0x2f007b,RxDisposable as _0x495984,Tools as _0x2b0f98,UniverInstanceType as _0x57ec00,UserManagerService as _0x92e170,Workbook as _0x3c3bb3,createIdentifier as _0x10bb42,generateRandomId as _0x4d6784,isInternalEditorID as _0x1c6cb4,merge as _0x2418a6,mergeOverrideWithDependencies as _0x5779fb,registerDependencies as _0xc377a3,resolveWithBasePath as _0x2da96f,sequenceExecute as _0x5354a2,toDisposable as _0x2f6814,touchDependencies as _0x40f1c9}from'@univerjs/core';import{RichTextEditingMutation as _0x2fd593}from'@univerjs/docs';import{InsertSheetMutation as _0x56438c,SetSelectionsOperation as _0x4720d5,SheetPermissionInitController as _0x21cc4b,SheetsSelectionsService as _0x3084b1,WorkbookEditablePermission as _0x170956}from'@univerjs/sheets';import{BehaviorSubject as _0x10ace7,ReplaySubject as _0x18ff2b,Subject as _0x34cf84,concatMap as _0x1f0de5,firstValueFrom as _0x5e846a,map as _0x1a3ff1,merge as _0x34bad6,of as _0x58d9e6,shareReplay as _0x39cccb,take as _0x2bd5fd,takeUntil as _0x1aedcb}from'rxjs';import{CmdRspCode as _0x2989c5,CombCmd as _0x2e4f4e,ErrorCode as _0x46125a,FileSource as _0x502b83}from'@univerjs/protocol';import{ITelemetryService as _0x6d340d}from'@univerjs/telemetry';import{delay as _0x46e5c3,filter as _0xb3f571,map as _0xcf55,take as _0x67a39f,takeUntil as _0x20cb1c}from'rxjs/operators';import{HTTPRequest as _0x4dfcec,HTTPService as _0x470bb9,ISocketService as _0x19825e,MergeInterceptorFactory as _0x3b3b49,ThresholdInterceptorFactory as _0x4f6907,UniverNetworkPlugin as _0x12c5ff}from'@univerjs/network';import{UniverLicensePlugin as _0x9c60d5,getGlobalObject as _0x109aa2}from'@univerjs-pro/license';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0xd6fb97,IImageIoService as _0x14e824,ImageSourceType as _0x5edd85,ImageUploadStatusType as _0x4daaae,getDrawingImageAllowSize as _0x3912d7}from'@univerjs/drawing';import{cbc as _0x3b69ce}from'@noble/ciphers/aes.js';import{concatBytes as _0x58e6cb,randomBytes as _0xeff5b7,utf8ToBytes as _0x18a346}from'@noble/ciphers/utils.js';const ut=_0x35f73b(0x345),dt=_0x35f73b(0x2d7),ft=_0x35f73b(0x249),pt=_0x35f73b(0x376),mt=0x4e20,ht='RETRY_CONNECTING_MAX_COUNT',gt=_0x35f73b(0x2f0),_t=0x3e8,vt='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',yt=_0x35f73b(0x3be);function bt(_0x27c4bc){const _0x4c787e=_0x35f73b;return JSON[_0x4c787e(0x284)](_0x27c4bc)[_0x4c787e(0x37b)];}function F(_0x123409){'@babel/helpers - typeof';const _0x2dca68=_0x35f73b;return F=typeof Symbol=='function'&&typeof Symbol[_0x2dca68(0x2bb)]=='symbol'?function(_0x38914d){return typeof _0x38914d;}:function(_0x5ce83f){const _0x5005ab=_0x2dca68;return _0x5ce83f&&typeof Symbol==_0x5005ab(0x22d)&&_0x5ce83f['constructor']===Symbol&&_0x5ce83f!==Symbol['prototype']?'symbol':typeof _0x5ce83f;},F(_0x123409);}function xt(_0x193aa5,_0x3915f8){const _0x1d4924=_0x35f73b;if(F(_0x193aa5)!=_0x1d4924(0x298)||!_0x193aa5)return _0x193aa5;var _0x13fada=_0x193aa5[Symbol[_0x1d4924(0x26c)]];if(_0x13fada!==void 0x0){var _0x198437=_0x13fada[_0x1d4924(0x31a)](_0x193aa5,_0x3915f8||_0x1d4924(0x39f));if(F(_0x198437)!='object')return _0x198437;throw TypeError(_0x1d4924(0x1a5));}return(_0x3915f8===_0x1d4924(0x25c)?String:Number)(_0x193aa5);}function St(_0x3857be){const _0x18e474=_0x35f73b;var _0x3649c3=xt(_0x3857be,_0x18e474(0x25c));return F(_0x3649c3)==_0x18e474(0x1ba)?_0x3649c3:_0x3649c3+'';}function I(_0x81e476,_0x462898,_0x10540f){const _0x47a700=_0x35f73b;return(_0x462898=St(_0x462898))in _0x81e476?Object[_0x47a700(0x198)](_0x81e476,_0x462898,{'value':_0x10540f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x81e476[_0x462898]=_0x10540f,_0x81e476;}let Ct=function(_0x1d6a9a){const _0x34ccbb=_0x35f73b;return _0x1d6a9a[_0x34ccbb(0x37c)]=_0x34ccbb(0x37c),_0x1d6a9a[_0x34ccbb(0x39a)]='PERMISSION_DENIED',_0x1d6a9a[_0x34ccbb(0x2a4)]=_0x34ccbb(0x2a4),_0x1d6a9a[_0x34ccbb(0x204)]=_0x34ccbb(0x204),_0x1d6a9a['JOIN_ROOM_FAILED']=_0x34ccbb(0x34c),_0x1d6a9a[_0x34ccbb(0x26f)]=_0x34ccbb(0x26f),_0x1d6a9a[_0x34ccbb(0x355)]=_0x34ccbb(0x355),_0x1d6a9a[_0x34ccbb(0x2ee)]='SUBMIT_CHANGESET_TIMEOUT',_0x1d6a9a;}({});var L=class{constructor(){const _0x5d19c2=_0x35f73b;I(this,'_event$',new _0x34cf84()),I(this,_0x5d19c2(0x39e),this[_0x5d19c2(0x28a)][_0x5d19c2(0x3ac)]());}[_0x35f73b(0x374)](_0x3307cf){const _0x42539d=_0x35f73b;this[_0x42539d(0x28a)][_0x42539d(0x3f6)](_0x3307cf);}},wt=class{constructor(){const _0xb76e46=_0x35f73b;I(this,_0xb76e46(0x2d5),new _0x34cf84()),I(this,_0xb76e46(0x1ed),this[_0xb76e46(0x2d5)][_0xb76e46(0x3ac)]());}[_0x35f73b(0x3e1)](_0x36a9b9){const _0x2a6b84=_0x35f73b;this[_0x2a6b84(0x2d5)][_0x2a6b84(0x3f6)](_0x36a9b9);}};function R(_0x4b5594,_0x487511){return function(_0x376712,_0x54f99d){_0x487511(_0x376712,_0x54f99d,_0x4b5594);};}function z(_0x2f6622,_0x2cdfcb,_0x4e6e01,_0x3c60d4){const _0x21f3bf=_0x35f73b;var _0x1b466f=arguments[_0x21f3bf(0x37b)],_0xd8a463=_0x1b466f<0x3?_0x2cdfcb:_0x3c60d4===null?_0x3c60d4=Object[_0x21f3bf(0x33f)](_0x2cdfcb,_0x4e6e01):_0x3c60d4,_0x35d0b0;if(typeof Reflect==_0x21f3bf(0x298)&&typeof Reflect[_0x21f3bf(0x375)]==_0x21f3bf(0x22d))_0xd8a463=Reflect['decorate'](_0x2f6622,_0x2cdfcb,_0x4e6e01,_0x3c60d4);else{for(var _0x2367e5=_0x2f6622['length']-0x1;_0x2367e5>=0x0;_0x2367e5--)(_0x35d0b0=_0x2f6622[_0x2367e5])&&(_0xd8a463=(_0x1b466f<0x3?_0x35d0b0(_0xd8a463):_0x1b466f>0x3?_0x35d0b0(_0x2cdfcb,_0x4e6e01,_0xd8a463):_0x35d0b0(_0x2cdfcb,_0x4e6e01))||_0xd8a463);}return _0x1b466f>0x3&&_0xd8a463&&Object['defineProperty'](_0x2cdfcb,_0x4e6e01,_0xd8a463),_0xd8a463;}let B=class extends _0x1fae62{constructor(_0x3e1b2c,_0x1ebdfe){const _0x403a97=_0x35f73b;super(),this[_0x403a97(0x2db)]=_0x3e1b2c,this[_0x403a97(0x2e0)]=_0x1ebdfe,I(this,_0x403a97(0x36d),new Map()),I(this,_0x403a97(0x271),new _0x34cf84()),this[_0x403a97(0x2fa)](_0x34bad6(this[_0x403a97(0x2db)][_0x403a97(0x25d)](_0x57ec00[_0x403a97(0x3b1)])[_0x403a97(0x289)](_0xcf55(_0x4b04a8=>_0x4b04a8[_0x403a97(0x1b9)]())),this[_0x403a97(0x2db)]['getTypeOfUnitDisposed$'](_0x57ec00['UNIVER_DOC'])[_0x403a97(0x289)](_0xcf55(_0x484bd6=>_0x484bd6[_0x403a97(0x1b9)]())))['subscribe'](_0x268fbf=>this[_0x403a97(0x1e3)](_0x268fbf)));}[_0x35f73b(0x37a)](_0x186c3a){const _0x1ca07f=_0x35f73b;return this[_0x1ca07f(0x36d)][_0x1ca07f(0x1bc)](_0x186c3a)?_0x58d9e6(this[_0x1ca07f(0x36d)][_0x1ca07f(0x2a9)](_0x186c3a)):this[_0x1ca07f(0x271)][_0x1ca07f(0x289)](_0xcf55(_0x81ea0f=>{const _0x57a0f1=_0x1ca07f;if(_0x81ea0f===_0x186c3a)return this[_0x57a0f1(0x36d)][_0x57a0f1(0x2a9)](_0x81ea0f);}));}[_0x35f73b(0x2cf)](_0x3fc335){const _0x3f176a=_0x35f73b;this['_userManagerService'][_0x3f176a(0x2cf)](_0x3fc335);}['getCurrentUser'](){const _0xfc5d2f=_0x35f73b;return this[_0xfc5d2f(0x2e0)][_0xfc5d2f(0x24b)]();}[_0x35f73b(0x1c8)](_0x23f3ad,_0x24dec1){const _0x287def=_0x35f73b;let _0xb5a2bf=this['_roomMembers'][_0x287def(0x2a9)](_0x23f3ad);_0xb5a2bf||(_0xb5a2bf=new Tt(),this[_0x287def(0x36d)][_0x287def(0x2d4)](_0x23f3ad,_0xb5a2bf),this[_0x287def(0x271)][_0x287def(0x3f6)](_0x23f3ad)),_0xb5a2bf[_0x287def(0x1c8)](_0x24dec1);}['removeMember'](_0x38f0c6,_0x4af0b5){const _0x1d1966=_0x35f73b;let _0x143ebf=this[_0x1d1966(0x36d)][_0x1d1966(0x2a9)](_0x38f0c6);_0x143ebf&&_0x143ebf['removeMember'](_0x4af0b5);}['getRoom'](_0x2b95ec){const _0x304e2d=_0x35f73b;return this[_0x304e2d(0x36d)][_0x304e2d(0x2a9)](_0x2b95ec);}[_0x35f73b(0x35a)](_0x37928f,_0x4760aa){const _0x2cefba=_0x35f73b;let _0x52183c=this[_0x2cefba(0x36d)][_0x2cefba(0x2a9)](_0x37928f);if(_0x52183c)return _0x52183c[_0x2cefba(0x35a)](_0x4760aa);}[_0x35f73b(0x1e3)](_0x35fd44){const _0x35f325=_0x35f73b;let _0x498048=this[_0x35f325(0x36d)][_0x35f325(0x2a9)](_0x35fd44);_0x498048&&(_0x498048[_0x35f325(0x303)](),this[_0x35f325(0x36d)]['delete'](_0x35fd44));}[_0x35f73b(0x303)](){const _0x326df5=_0x35f73b;this[_0x326df5(0x36d)][_0x326df5(0x2c9)](_0x14e03c=>_0x14e03c[_0x326df5(0x303)]()),this[_0x326df5(0x36d)][_0x326df5(0x202)](),this[_0x326df5(0x271)][_0x326df5(0x25f)]();}};B=z([R(0x0,_0x599079),R(0x1,_0x1b23c9(_0x92e170))],B);var Tt=class extends _0x1fae62{constructor(..._0x38b535){const _0x37735c=_0x35f73b;super(..._0x38b535),I(this,_0x37735c(0x244),new Map()),I(this,_0x37735c(0x38d),new _0x10ace7(this['_members'])),I(this,_0x37735c(0x2da),this[_0x37735c(0x38d)][_0x37735c(0x3ac)]());}[_0x35f73b(0x303)](){const _0x2a7896=_0x35f73b;this[_0x2a7896(0x244)][_0x2a7896(0x202)](),this['_members$'][_0x2a7896(0x25f)]();}['updateMember'](_0x4302d7){const _0xc66521=_0x35f73b;this[_0xc66521(0x244)][_0xc66521(0x2d4)](_0x4302d7[_0xc66521(0x232)],_0x4302d7),this[_0xc66521(0x1cc)]();}[_0x35f73b(0x365)](_0x37c09f){const _0x576976=_0x35f73b;this[_0x576976(0x244)][_0x576976(0x38c)](_0x37c09f),this[_0x576976(0x1cc)]();}[_0x35f73b(0x35a)](_0x13c3fa){const _0x514ec4=_0x35f73b;return this[_0x514ec4(0x244)][_0x514ec4(0x2a9)](_0x13c3fa);}[_0x35f73b(0x39b)](){const _0x2af188=_0x35f73b;return Array['from'](this[_0x2af188(0x244)][_0x2af188(0x1d6)]());}[_0x35f73b(0x1cc)](){const _0x5178c4=_0x35f73b;this[_0x5178c4(0x38d)][_0x5178c4(0x3f6)](this[_0x5178c4(0x244)]);}};let Et=function(_0x1e5d6c){const _0x3f4d48=_0x35f73b;return _0x1e5d6c[_0x1e5d6c['IDLE']=0x0]=_0x3f4d48(0x2c7),_0x1e5d6c[_0x1e5d6c[_0x3f4d48(0x1ae)]=0x1]='JOINING',_0x1e5d6c[_0x1e5d6c[_0x3f4d48(0x30a)]=0x2]='OFFLINE',_0x1e5d6c[_0x1e5d6c[_0x3f4d48(0x251)]=0x3]=_0x3f4d48(0x251),_0x1e5d6c;}({});const Dt={[_0x2989c5[_0x35f73b(0x3a1)]]:_0x35f73b(0x3f3),[_0x2989c5[_0x35f73b(0x1c4)]]:_0x35f73b(0x308),[_0x2989c5['JOIN_ROOM_NOT_EXISTS']]:_0x35f73b(0x22f),[_0x2989c5['JOIN_ROOM_PERMISSION_DENIED']]:_0x35f73b(0x35e),[_0x2989c5['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x35f73b(0x3bc)};let Ot=class extends _0x495984{get[_0x35f73b(0x3bd)](){const _0x4be9c3=_0x35f73b;return this['_sessionStatus$'][_0x4be9c3(0x1b1)]();}constructor(_0x23d8bf,_0x193fb6,_0x1d662a,_0xee6f85,_0x11d365,_0x580424,_0x36aeb2,_0x1001fb){const _0x172cd0=_0x35f73b;super(),this[_0x172cd0(0x347)]=_0x23d8bf,this['_logService']=_0x1d662a,this[_0x172cd0(0x21c)]=_0xee6f85,this[_0x172cd0(0x2fc)]=_0x11d365,this[_0x172cd0(0x1e1)]=_0x580424,this['_collaborationUIEventService']=_0x36aeb2,this[_0x172cd0(0x301)]=_0x1001fb,I(this,_0x172cd0(0x2a3),new _0x10ace7(0x0)),I(this,_0x172cd0(0x217),this[_0x172cd0(0x2a3)]['asObservable']()),I(this,_0x172cd0(0x28a),new _0x34cf84()),I(this,'event$',this[_0x172cd0(0x28a)][_0x172cd0(0x3ac)]()),I(this,'_socket',void 0x0),I(this,_0x172cd0(0x277),void 0x0),I(this,_0x172cd0(0x1fc),void 0x0),I(this,_0x172cd0(0x245),!0x1),I(this,_0x172cd0(0x369),null),this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x193fb6[_0x172cd0(0x289)](_0x1aedcb(this[_0x172cd0(0x3f7)]))[_0x172cd0(0x1f4)](_0x5bc443=>{const _0x405aca=_0x172cd0;if(_0x5bc443!==void 0x0){if(this[_0x405aca(0x1ca)]=_0x5bc443,_0x5bc443)this['_joinRoom'](_0x5bc443),this[_0x405aca(0x277)]=_0x5bc443[_0x405aca(0x1a8)]['subscribe'](_0x6b9009=>{const _0x564e5f=_0x405aca;_0x6b9009[_0x564e5f(0x25a)]===this['_unitID']&&this[_0x564e5f(0x362)](_0x6b9009);});else{var _0x34797c;this[_0x405aca(0x297)](),this['_sessionStatus$']['next'](0x2),(_0x34797c=this[_0x405aca(0x277)])==null||_0x34797c['unsubscribe'](),this[_0x405aca(0x277)]=null;}}});}[_0x35f73b(0x3b9)](){const _0x195f4e=_0x35f73b;var _0x5c2926,_0x3749c1;return(_0x5c2926=(_0x3749c1=this['_socket'])==null?void 0x0:_0x3749c1[_0x195f4e(0x232)])==null?null:_0x5c2926;}[_0x35f73b(0x303)](){const _0x4d13e1=_0x35f73b;super[_0x4d13e1(0x303)](),this[_0x4d13e1(0x383)](),this[_0x4d13e1(0x3f7)][_0x4d13e1(0x3f6)](),this[_0x4d13e1(0x3f7)]['complete']();}['close'](){const _0x551a83=_0x35f73b;var _0x3ad3cb,_0x3d277a;this[_0x551a83(0x297)](),(_0x3ad3cb=this[_0x551a83(0x1ca)])==null||_0x3ad3cb[_0x551a83(0x2a0)]({'cmd':_0x2e4f4e[_0x551a83(0x38b)],'data':{'roomID':this[_0x551a83(0x347)]}}),(_0x3d277a=this[_0x551a83(0x1ca)])==null||_0x3d277a[_0x551a83(0x383)](),this['_event$']['complete'](),this[_0x551a83(0x2a3)][_0x551a83(0x25f)]();}[_0x35f73b(0x362)](_0x40238e){const _0x15a02d=_0x35f73b;_0x40238e['cmd']===_0x2e4f4e[_0x15a02d(0x2f8)]?this[_0x15a02d(0x300)](_0x40238e):_0x40238e['cmd']===_0x2e4f4e[_0x15a02d(0x20e)]&&this[_0x15a02d(0x2ac)](_0x40238e);}[_0x35f73b(0x35c)](_0x27112c){const _0x2b9ae4=_0x35f73b;this[_0x2b9ae4(0x2a3)][_0x2b9ae4(0x3f6)](0x1),_0x27112c['send']({'cmd':_0x2e4f4e[_0x2b9ae4(0x2f8)],'routeKey':this[_0x2b9ae4(0x347)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2b9ae4(0x347)]}]}});}[_0x35f73b(0x300)](_0x12eb8c){const _0x3dcdde=_0x35f73b;var _0x3977b6;if(_0x12eb8c[_0x3dcdde(0x2a5)]in Dt){this[_0x3dcdde(0x2bf)][_0x3dcdde(0x374)]({'id':_0x3dcdde(0x34c),'data':Dt[_0x12eb8c['code']]}),this[_0x3dcdde(0x2a3)]['next'](0x2);return;}this['_sessionStatus$']['next'](0x3);let _0x4e61af=(_0x3977b6=_0x12eb8c[_0x3dcdde(0x3fe)][_0x3dcdde(0x210)][this[_0x3dcdde(0x347)]])==null?void 0x0:_0x3977b6[_0x3dcdde(0x27f)];_0x4e61af&&_0x4e61af['forEach'](_0x27ef44=>this[_0x3dcdde(0x2fc)][_0x3dcdde(0x1c8)](this['_unitID'],_0x27ef44));}['_onRecvEvent'](_0x4b969b){const _0x102e0f=_0x35f73b;try{let _0x46bfae=_0x4b969b['data'];switch(_0x46bfae[_0x102e0f(0x263)]){case _0x576af5['USERS_ENTER']:this[_0x102e0f(0x3f1)](_0x46bfae),this[_0x102e0f(0x28a)]['next'](_0x46bfae);break;case _0x576af5[_0x102e0f(0x356)]:this[_0x102e0f(0x3c3)](_0x46bfae),this[_0x102e0f(0x28a)][_0x102e0f(0x3f6)](_0x46bfae);break;case _0x576af5[_0x102e0f(0x3d5)]:case _0x576af5[_0x102e0f(0x2c1)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x102e0f(0x269)](),this[_0x102e0f(0x28a)]['next'](_0x46bfae);break;case _0x576af5['MSG_FOR_ERROR']:this['_logService'][_0x102e0f(0x3ba)](_0x102e0f(0x235)+JSON['stringify'](_0x46bfae)),this['_event$'][_0x102e0f(0x3f6)](_0x46bfae);break;case _0x576af5[_0x102e0f(0x1c2)]:this[_0x102e0f(0x1e1)]['onCommentUpdate'](_0x46bfae[_0x102e0f(0x3fe)]),this[_0x102e0f(0x28a)][_0x102e0f(0x3f6)](_0x46bfae);break;default:this[_0x102e0f(0x28a)]['next'](_0x46bfae);}}catch(_0x490f24){this['_logService'][_0x102e0f(0x3ba)](_0x490f24,_0x4b969b);}}[_0x35f73b(0x3f1)](_0x1f006e){const _0x26dc68=_0x35f73b;this[_0x26dc68(0x2fc)][_0x26dc68(0x1c8)](this['_unitID'],_0x1f006e[_0x26dc68(0x3fe)]);}[_0x35f73b(0x3c3)](_0x4cfb87){const _0x391d36=_0x35f73b;this[_0x391d36(0x2fc)][_0x391d36(0x365)](this['_unitID'],_0x4cfb87[_0x391d36(0x3fe)][_0x391d36(0x232)]);}async[_0x35f73b(0x2a0)](_0x55d9ed,_0x3f7c51){const _0x29f92d=_0x35f73b;if(this[_0x29f92d(0x3bd)]!==0x3||!this['_socket'])throw Error(_0x29f92d(0x29e));try{_0x55d9ed[_0x29f92d(0x263)]===_0x576af5['SUBMIT_CHANGESET']&&(this[_0x29f92d(0x3ce)](),this[_0x29f92d(0x207)](_0x55d9ed)),this[_0x29f92d(0x1ca)][_0x29f92d(0x2a0)]({'cmd':_0x2e4f4e['INGEST'],'routeKey':_0x3f7c51,'routeType':'','data':_0x55d9ed});}catch(_0x2eb0e0){this[_0x29f92d(0x3f8)][_0x29f92d(0x3ba)](_0x2eb0e0);}}[_0x35f73b(0x3ce)](){const _0x1e0cc9=_0x35f73b;var _0x4c01c2;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x31f911=_0x3c29;this[_0x31f911(0x1fc)]=null,this[_0x31f911(0x2bf)][_0x31f911(0x374)]({'id':_0x31f911(0x2ee)});},(_0x4c01c2=this['_configService'][_0x1e0cc9(0x2fb)](_0x1e0cc9(0x376)))==null?mt:_0x4c01c2);}['_clearCollaborationTimeoutTimer'](){const _0x2e5f48=_0x35f73b;this[_0x2e5f48(0x1fc)]&&(clearTimeout(this[_0x2e5f48(0x1fc)]),this[_0x2e5f48(0x1fc)]=null);}[_0x35f73b(0x207)](_0xcd4e1b){const _0x2aa1f9=_0x35f73b;if(!this[_0x2aa1f9(0x245)])return;let {data:_0x37c3a5}=_0xcd4e1b,{unitID:_0x22e96e,changeset:_0x46cb42}=_0x37c3a5,{mutations:_0xd9c6f8,type:_0x176371}=_0x46cb42;this[_0x2aa1f9(0x369)]={'unitId':_0x22e96e,'type':_0x176371,'startTime':performance[_0x2aa1f9(0x3f4)](),'stopTime':0x0,'duration':0x0,'size':bt(_0xd9c6f8)};}[_0x35f73b(0x1d0)](){const _0x188abb=_0x35f73b;if(this['_shouldReportTelemetry']){if(!this[_0x188abb(0x369)]){this[_0x188abb(0x3f8)][_0x188abb(0x3ba)]('[CollaborationSession]',_0x188abb(0x35b));return;}this[_0x188abb(0x369)][_0x188abb(0x385)]=performance[_0x188abb(0x3f4)](),this[_0x188abb(0x369)]['duration']=this[_0x188abb(0x369)][_0x188abb(0x385)]-this[_0x188abb(0x369)][_0x188abb(0x216)],this['_telemetryService'][_0x188abb(0x23a)](_0x188abb(0x22c),this[_0x188abb(0x369)]),this[_0x188abb(0x369)]=null;}}[_0x35f73b(0x297)](){const _0x2fff9d=_0x35f73b;this[_0x2fff9d(0x369)]=null;}};Ot=z([R(0x2,_0x3594cb),R(0x3,_0x160dc0),R(0x4,_0x1b23c9(B)),R(0x5,_0x1b23c9(wt)),R(0x6,_0x1b23c9(L)),R(0x7,_0xbefc86(_0x6d340d))],Ot);const V=_0x10bb42(_0x35f73b(0x30b));function kt(_0x3ab130){return'unit-cache-'+_0x3ab130;}function At(_0x2b1b2c){const _0x2efa6b=_0x35f73b;let {unitID:_0x16048d,mutations:_0x171ceb}=_0x2b1b2c;return{'unitId':_0x16048d,'subUnitId':_0x171ceb['length']>0x0?_0x171ceb[0x0][_0x2efa6b(0x3fc)][_0x2efa6b(0x28b)]:null};}let H=class{constructor(_0x20f8d1,_0x43b9c3,_0x582a1f){const _0x16fbe0=_0x35f73b;this[_0x16fbe0(0x1c1)]=_0x20f8d1,this['_transformService']=_0x43b9c3,this[_0x16fbe0(0x19b)]=_0x582a1f;}['transformSelections'](_0x3aed79){const _0x12d91d=_0x35f73b;var _0x1742f8,_0x39ee85;let _0x4f9280=this['_injector'][_0x12d91d(0x2a9)](_0x3084b1),{unitId:_0x55cb78,subUnitId:_0x1f31b2}=At(_0x3aed79),_0x1e9b99=_0x4f9280==null?void 0x0:_0x4f9280['getWorkbookSelections'](_0x55cb78)['getCurrentSelections'](),_0x24764b=(_0x1742f8=this[_0x12d91d(0x19b)]['getUnit'](_0x55cb78))==null||(_0x1742f8=_0x1742f8['getActiveSheet']())==null?void 0x0:_0x1742f8[_0x12d91d(0x3d1)]();if(_0x1e9b99[_0x12d91d(0x37b)]===0x0||!_0x55cb78||!_0x1f31b2)return;let _0x466106=[{'id':_0x4720d5['id'],'params':{'unitId':_0x55cb78,'subUnitId':_0x24764b,'selections':_0x2b0f98[_0x12d91d(0x3ee)](_0x1e9b99)}}],_0xe97872=this[_0x12d91d(0x3c2)][_0x12d91d(0x1e7)](_0x3aed79,_0x466106);if(!_0x5d12cb(_0xe97872))throw _0xe97872[_0x12d91d(0x3ba)];let _0x2c14ae=(_0x39ee85=_0xe97872[_0x12d91d(0x2e6)][0x0])==null||(_0x39ee85=_0x39ee85['params'])==null?void 0x0:_0x39ee85['selections'];if(Array[_0x12d91d(0x1be)](_0x2c14ae)&&_0x2c14ae['length']){if(_0x2c14ae[_0x12d91d(0x37b)]===_0x466106[0x0]['params']['selections'][_0x12d91d(0x37b)]&&_0x2c14ae['every']((_0x622deb,_0xeff5fe)=>_0x2f007b['equals'](_0x622deb[_0x12d91d(0x34b)],_0x466106[0x0][_0x12d91d(0x3fc)][_0x12d91d(0x1c3)][_0xeff5fe][_0x12d91d(0x34b)])))return;this[_0x12d91d(0x1c1)]['get'](_0x5c3744)[_0x12d91d(0x2ab)](_0x4720d5['id'],{'unitId':_0x55cb78,'subUnitId':_0x24764b,'selections':_0x2c14ae});}}};H=z([R(0x0,_0x1b23c9(_0x2b692d)),R(0x1,_0x348e40),R(0x2,_0x599079)],H);const jt=_0x10bb42(_0x35f73b(0x1d3));let Mt=function(_0x42a7d0){const _0x1af849=_0x35f73b;return _0x42a7d0[_0x42a7d0[_0x1af849(0x324)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x42a7d0[_0x42a7d0[_0x1af849(0x200)]=0x1]='OTHER_CLIENTS_EDITING',_0x42a7d0;}({});const U=_0x35f73b(0x2dc);Symbol(U);const Nt={};function Pt(_0x1fbb41){const _0x536e38=_0x35f73b;var _0x448db8;return!!((_0x448db8=_0x1fbb41[_0x536e38(0x3fc)])!=null&&_0x448db8[_0x536e38(0x26d)]);}const Ft=new Set([_0x56438c['id']]);function It(_0x268a57,_0x526cf1,_0x203dc5,_0x4ab0ab,_0x563638){const _0x122719=_0x35f73b;var _0x5cc989,_0x536f84,_0x3b1541,_0x233419;let _0x5c0470=[];for(let _0x3b4a2d of _0x268a57){if(Ft['has'](_0x3b4a2d['id'])){if(_0x5c0470[_0x122719(0x37b)]>0x0)break;_0x5c0470[_0x122719(0x380)](_0x3b4a2d);break;}if(Pt(_0x3b4a2d)){if(_0x5c0470[_0x122719(0x37b)]>0x0)break;_0x5c0470[_0x122719(0x380)](_0x3b4a2d);break;}_0x5c0470[_0x122719(0x380)](_0x3b4a2d);}let _0x4dcde9=(_0x5cc989=(_0x536f84=_0x563638[_0x122719(0x24b)]())==null?void 0x0:_0x536f84[_0x122719(0x1b4)])==null?_0x122719(0x2f1):_0x5cc989,_0x5caf34=(_0x3b1541=(_0x233419=_0x563638[_0x122719(0x24b)]())==null?void 0x0:_0x233419[_0x122719(0x232)])==null?_0x122719(0x2f1):_0x3b1541;return{'changeset':{'unitID':_0x526cf1,'type':_0x3a730c(_0x203dc5['getUnitType'](_0x526cf1)),'baseRev':_0x4ab0ab[_0x122719(0x21d)](_0x526cf1),'revision':0x0,'userID':_0x4dcde9,'memberID':_0x5caf34,'mutations':_0x5c0470},'pendingMutations':_0x268a57[_0x122719(0x3a5)](_0x5c0470[_0x122719(0x37b)])};}function Lt(_0x1bb246,_0x3fb1fd,_0x1ae9ee,_0x4d630e,_0x724908){const _0x3a1301=_0x35f73b;var _0x5187e7,_0x547aa2,_0x515607,_0x38417f;let _0x17fd49=[_0x1bb246[_0x3a1301(0x2fe)]((_0x5cb904,_0x47b93d)=>{const _0x4cfe=_0x3a1301;var _0x548aff;let {id:_0x4747b0}=_0x5cb904,{id:_0x3b6634,type:_0xa68cc5}=_0x47b93d,_0x17ee1a=(_0x548aff=_0x5cb904[_0x4cfe(0x3fc)])==null?{'actions':null}:_0x548aff,_0x337ede=_0x47b93d[_0x4cfe(0x3fc)];if(_0x4747b0&&_0x4747b0!==_0x3b6634)throw Error(_0x4cfe(0x38e)+_0x4747b0+_0x4cfe(0x274)+_0x3b6634+'.');return{..._0x5cb904,'id':_0x3b6634,'type':_0xa68cc5,'params':{'unitId':_0x337ede[_0x4cfe(0x333)],'textRanges':_0x337ede[_0x4cfe(0x3b0)],'actions':_0xad6fae[_0x4cfe(0x1bb)](_0x17ee1a[_0x4cfe(0x1a6)],_0x337ede[_0x4cfe(0x1a6)])}};},{})],_0x5d0635=(_0x5187e7=(_0x547aa2=_0x724908[_0x3a1301(0x24b)]())==null?void 0x0:_0x547aa2[_0x3a1301(0x1b4)])==null?'unknown':_0x5187e7,_0x343374=(_0x515607=(_0x38417f=_0x724908['getCurrentUser']())==null?void 0x0:_0x38417f['memberID'])==null?'unknown':_0x515607;return{'changeset':{'unitID':_0x3fb1fd,'type':_0x3a730c(_0x1ae9ee['getUnitType'](_0x3fb1fd)),'baseRev':_0x4d630e[_0x3a1301(0x21d)](_0x3fb1fd),'revision':0x0,'userID':_0x5d0635,'memberID':_0x343374,'mutations':_0x17fd49},'pendingMutations':[]};}function Rt(_0x2c5248,_0x4a6fda){const _0x2b7e60=_0x35f73b;let _0x5a22ab=new _0x18ff2b(0x1);return setTimeout(()=>_0x5a22ab[_0x2b7e60(0x3f6)](_0x4a6fda),_0x2c5248),_0x5a22ab[_0x2b7e60(0x3ac)]()[_0x2b7e60(0x289)](_0x2bd5fd(0x1));}var zt,Bt,Vt;let Ht=function(_0x550747){const _0x54a386=_0x35f73b;return _0x550747[_0x54a386(0x389)]=_0x54a386(0x2cd),_0x550747['SYNCED']=_0x54a386(0x341),_0x550747[_0x54a386(0x3a3)]=_0x54a386(0x1fd),_0x550747[_0x54a386(0x384)]=_0x54a386(0x193),_0x550747[_0x54a386(0x1fe)]='awaiting_with_pending',_0x550747[_0x54a386(0x24e)]='fetch_missing',_0x550747[_0x54a386(0x2a4)]='conflict',_0x550747[_0x54a386(0x30a)]=_0x54a386(0x2e1),_0x550747;}({});const Ut=0x4e20,Wt=0x2bf20;var W=class{constructor(_0x415d20,_0x5ce03f,_0x407c82,_0x5f5e95,_0x539247,_0x124c6f,_0x2c2d97,_0x9372af,_0x416b28){const _0x59271c=_0x35f73b;this[_0x59271c(0x285)]=_0x415d20,this[_0x59271c(0x2ec)]=_0x5ce03f,this[_0x59271c(0x367)]=_0x539247,this[_0x59271c(0x234)]=_0x124c6f,this[_0x59271c(0x2b3)]=_0x2c2d97,this[_0x59271c(0x366)]=_0x9372af,this['_localCacheService']=_0x416b28,I(this,_0x59271c(0x2e4),null),I(this,'_pendingMutations',[]),this['_awaitingChangeset']=_0x407c82,this[_0x59271c(0x393)]=_0x5f5e95;}[_0x35f73b(0x2c3)](_0x20dd6e){const _0x6e4c7f=_0x35f73b;let _0x2a8e72=this[_0x6e4c7f(0x366)][_0x6e4c7f(0x21d)](this[_0x6e4c7f(0x285)]);return _0x20dd6e[_0x6e4c7f(0x319)]>_0x2a8e72+0x1?(this[_0x6e4c7f(0x367)][_0x6e4c7f(0x259)]({'from':_0x2a8e72,'to':_0x20dd6e[_0x6e4c7f(0x319)]-0x1}),!0x0):!0x1;}[_0x35f73b(0x3a9)](_0x4f79d7){const _0x55ec97=_0x35f73b;this[_0x55ec97(0x2b3)][_0x55ec97(0x3cf)](this[_0x55ec97(0x285)],_0x4f79d7);}['_transformSelections'](_0x4c1e4b){const _0x5b4307=_0x35f73b;var _0x3bc38e,_0x2e9929;(_0x3bc38e=(_0x2e9929=this[_0x5b4307(0x367)])[_0x5b4307(0x3e9)])==null||_0x3bc38e[_0x5b4307(0x31a)](_0x2e9929,_0x4c1e4b);}['_transformIMECache'](_0x56290d){const _0x2224ad=_0x35f73b;var _0x540050,_0x50ec10;return(_0x540050=(_0x50ec10=this[_0x2224ad(0x367)])[_0x2224ad(0x1dc)])==null?void 0x0:_0x540050[_0x2224ad(0x31a)](_0x50ec10,_0x56290d);}[_0x35f73b(0x1a3)](_0x833235){const _0x15be6c=_0x35f73b;var _0x3631b8,_0x4ccdf4;return(_0x3631b8=(_0x4ccdf4=this[_0x15be6c(0x367)])[_0x15be6c(0x25e)])==null?void 0x0:_0x3631b8[_0x15be6c(0x31a)](_0x4ccdf4,_0x833235);}[_0x35f73b(0x1a1)](_0x361b71){const _0x29e596=_0x35f73b;var _0x3430d5,_0x1a71da,_0x1284c0;return(_0x3430d5=(_0x1a71da=(_0x1284c0=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x1a71da[_0x29e596(0x31a)](_0x1284c0,_0x361b71))==null?_0x361b71:_0x3430d5;}[_0x35f73b(0x3de)](_0x385360){const _0x3f4f61=_0x35f73b;var _0x11c2f8,_0x475660,_0x1bc551;return(_0x11c2f8=(_0x475660=(_0x1bc551=this['_handler'])[_0x3f4f61(0x2d0)])==null?void 0x0:_0x475660['call'](_0x1bc551,_0x385360))==null?_0x385360:_0x11c2f8;}[_0x35f73b(0x3da)](_0x2f91ba){const _0x53209b=_0x35f73b;if(this[_0x53209b(0x2ec)]===_0x57ec00[_0x53209b(0x32a)]){let {unitID:_0x10e66e,mutations:_0x34df9d,memberID:_0x182245}=_0x2f91ba,_0x5c06af=_0x34df9d[_0x53209b(0x37b)]>0x0?_0x34df9d[0x0][_0x53209b(0x3fc)][_0x53209b(0x3b0)]:[];if(Array[_0x53209b(0x1be)](_0x5c06af)&&_0x5c06af['length']>0x0){var _0x521b8d,_0x2faf54;(_0x521b8d=(_0x2faf54=this['_handler'])[_0x53209b(0x23c)])==null||_0x521b8d[_0x53209b(0x31a)](_0x2faf54,{'unitID':_0x10e66e,'memberID':_0x182245,'textRanges':_0x5c06af});}}}[_0x35f73b(0x348)](){const _0x51fb3f=_0x35f73b;var _0x473ad7;(_0x473ad7=this[_0x51fb3f(0x30e)])==null||_0x473ad7[_0x51fb3f(0x2d3)](this[_0x51fb3f(0x285)],this[_0x51fb3f(0x2ec)],this[_0x51fb3f(0x2e4)],this[_0x51fb3f(0x393)]);}[_0x35f73b(0x2d8)](){const _0x4e0260=_0x35f73b;return this['_revisionService'][_0x4e0260(0x21d)](this[_0x4e0260(0x285)]);}[_0x35f73b(0x2b1)](){const _0x166d0f=_0x35f73b;this[_0x166d0f(0x366)][_0x166d0f(0x30d)](this[_0x166d0f(0x285)]);}[_0x35f73b(0x1ad)](_0x5d0242){const _0x3f2aec=_0x35f73b;let _0x3b1827=this['_transformRemoteChangesetByIMECache'](_0x5d0242);_0x3b1827=this[_0x3f2aec(0x3de)](_0x3b1827);let _0x161eaa=_0x5354a2(_0x3b1827[_0x3f2aec(0x391)],this[_0x3f2aec(0x234)],{'fromCollab':!0x0});if(!_0x161eaa[_0x3f2aec(0x265)]){var _0x47ddb1;throw _0x161eaa['error']instanceof Error?_0x161eaa[_0x3f2aec(0x3ba)]:Error((_0x47ddb1=_0x161eaa[_0x3f2aec(0x3ba)])==null?_0x3f2aec(0x1ab):_0x47ddb1);}this[_0x3f2aec(0x246)](_0x3b1827),this[_0x3f2aec(0x1a3)](_0x3b1827),this['_transformUndoredo'](_0x5d0242),this[_0x3f2aec(0x267)](_0x3b1827),this[_0x3f2aec(0x3da)](_0x3b1827),this[_0x3f2aec(0x2b1)]();}};let G=class extends W{constructor(_0x21aa80,_0x41c6e9,_0x52d93c,_0x3519dc,_0x5b4789,_0x4eb8ae,_0xd64f1b,_0x454024,_0x4fc9f9,_0x570a83){const _0x1e7da4=_0x35f73b;super(_0x21aa80,_0x41c6e9,null,[],_0x52d93c,_0xd64f1b,_0x4eb8ae,_0x3519dc,_0x570a83),this[_0x1e7da4(0x1c1)]=_0x5b4789,this[_0x1e7da4(0x3f8)]=_0x454024,this['_transformService']=_0x4fc9f9,this[_0x1e7da4(0x270)]=_0x570a83,I(this,_0x1e7da4(0x253),_0x1e7da4(0x341));}[_0x35f73b(0x361)](_0x5843cd){const _0x4cf5c5=_0x35f73b;let _0x115f03=this[_0x4cf5c5(0x1c1)]['createInstance'](K,this[_0x4cf5c5(0x285)],this['type'],[_0x5843cd],this[_0x4cf5c5(0x367)]);return _0x115f03[_0x4cf5c5(0x1b8)](),_0x115f03[_0x4cf5c5(0x348)](),_0x115f03;}[_0x35f73b(0x3fb)](_0x392b5d){const _0x4c650f=_0x35f73b;if(this[_0x4c650f(0x2c3)](_0x392b5d))return this['_injector'][_0x4c650f(0x2d1)](Z,this[_0x4c650f(0x285)],this[_0x4c650f(0x2ec)],null,[],null,[_0x392b5d],this[_0x4c650f(0x367)]);try{let _0x2542c2=this[_0x4c650f(0x3c2)][_0x4c650f(0x1e7)](_0x392b5d,[_0x40f6fb]);if(_0x5d12cb(_0x2542c2)){let {c1Prime:_0x4c33ba}=_0x2542c2;return this[_0x4c650f(0x1ad)](_0x4c33ba),this;}throw _0x2542c2['error'];}catch(_0x47d6aa){return this[_0x4c650f(0x3f8)][_0x4c650f(0x3ba)](_0x47d6aa),this[_0x4c650f(0x1f3)](!0x1);}}['_onConflict'](_0x56c5b8){const _0x2674c6=_0x35f73b;return this[_0x2674c6(0x1c1)]['createInstance'](Y,this[_0x2674c6(0x285)],this[_0x2674c6(0x2ec)],null,[],this[_0x2674c6(0x367)],_0x56c5b8);}[_0x35f73b(0x2c6)](_0x41eee6){const _0x387d94=_0x35f73b;if(_0x41eee6[_0x387d94(0x319)]<=this[_0x387d94(0x2d8)]())return this;throw Error(_0x387d94(0x239));}['onRemoteRej'](){throw Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x35f73b(0x390)](){const _0x583f8d=_0x35f73b;return this[_0x583f8d(0x1c1)][_0x583f8d(0x2d1)](X,this[_0x583f8d(0x285)],this[_0x583f8d(0x2ec)],null,[],this[_0x583f8d(0x367)]);}[_0x35f73b(0x3ec)](){return this;}[_0x35f73b(0x21f)](){const _0x2ee90a=_0x35f73b;throw Error(_0x2ee90a(0x38a));}[_0x35f73b(0x237)](){const _0x42d4fd=_0x35f73b;let _0x304407=this['_revisionService']['getCurrentRevOfUnit'](this[_0x42d4fd(0x285)]);return this[_0x42d4fd(0x367)]['onMissingChangesets']({'from':_0x304407,'to':0x0}),this['_injector'][_0x42d4fd(0x2d1)](Z,this[_0x42d4fd(0x285)],this['type'],null,[],null,[],this[_0x42d4fd(0x367)]);}};G=z([R(0x3,_0x1b23c9(_0x1ee4fd)),R(0x4,_0x1b23c9(_0x2b692d)),R(0x5,_0x257c3e),R(0x6,_0x5c3744),R(0x7,_0x3594cb),R(0x8,_0x348e40),R(0x9,_0xbefc86(V))],G);let K=zt=class extends W{constructor(_0x484179,_0x59521a,_0x53ac14,_0x21f380,_0x509444,_0xb56189,_0x23e08d,_0x1d3a0a,_0x124af0,_0x30b344,_0x306aa9,_0x1c27e4,_0x5c0d28,_0x1362a2){const _0x2f8dc0=_0x35f73b;super(_0x484179,_0x59521a,null,_0x53ac14,_0x21f380,_0x124af0,_0x5c0d28,_0xb56189,_0x1362a2),this[_0x2f8dc0(0x1c1)]=_0x509444,this[_0x2f8dc0(0x2fc)]=_0x23e08d,this['_logService']=_0x1d3a0a,this['_configService']=_0x30b344,this[_0x2f8dc0(0x3c2)]=_0x306aa9,this[_0x2f8dc0(0x2db)]=_0x1c27e4,I(this,_0x2f8dc0(0x253),'pending'),I(this,_0x2f8dc0(0x3fd),null),I(this,_0x2f8dc0(0x19f),null);}['appendMutation'](_0x5ab5f5){const _0x2e4455=_0x35f73b;return this[_0x2e4455(0x393)]['push'](_0x5ab5f5),this[_0x2e4455(0x348)](),this;}[_0x35f73b(0x3fb)](_0x3adf10){const _0x13b626=_0x35f73b;if(this[_0x13b626(0x2c3)](_0x3adf10))return this[_0x13b626(0x254)](),this[_0x13b626(0x1c1)][_0x13b626(0x2d1)](Z,this['unitID'],this[_0x13b626(0x2ec)],null,this[_0x13b626(0x393)],null,[_0x3adf10],this['_handler']);try{let _0xd6572a=this[_0x13b626(0x3c2)][_0x13b626(0x1e7)](_0x3adf10,this['_pendingMutations']);if(_0x5d12cb(_0xd6572a)){let {c1Prime:_0x109c41,m2Prime:_0x4dc25a}=_0xd6572a;this[_0x13b626(0x1ad)](_0x109c41);let _0x26ef98=this['_injector'][_0x13b626(0x2d1)](zt,this[_0x13b626(0x285)],this[_0x13b626(0x2ec)],_0x4dc25a,this['_handler']);this['_clearScheduledTask']();let _0x23ba07=new Date()[_0x13b626(0x2b4)](),_0x5c733d=this[_0x13b626(0x3fd)]?Math[_0x13b626(0x2b0)](this[_0x13b626(0x3fd)]-_0x23ba07,0x0):this[_0x13b626(0x280)]();return _0x26ef98[_0x13b626(0x1b8)](_0x5c733d),_0x26ef98;}throw _0xd6572a[_0x13b626(0x3ba)];}catch(_0x358c4b){return this[_0x13b626(0x3f8)][_0x13b626(0x3ba)](_0x358c4b),this[_0x13b626(0x1f3)](!0x1);}}[_0x35f73b(0x2c6)](_0x2ed574){const _0x4f6630=_0x35f73b;if(_0x2ed574[_0x4f6630(0x319)]<=this[_0x4f6630(0x2d8)]())return this;throw Error(_0x4f6630(0x381));}[_0x35f73b(0x266)](){const _0x429947=_0x35f73b;throw Error(_0x429947(0x1dd));}[_0x35f73b(0x34a)](){return this;}['toggleOffline'](){const _0x33fe31=_0x35f73b;return this[_0x33fe31(0x254)](),this[_0x33fe31(0x1c1)][_0x33fe31(0x2d1)](X,this[_0x33fe31(0x285)],this[_0x33fe31(0x2ec)],null,this['_pendingMutations'],this['_handler']);}['toggleOnline'](){return this;}[_0x35f73b(0x1b8)](_0x4c07ac){const _0x5de0fd=_0x35f73b;let _0x35d953=_0x4c07ac==null?this[_0x5de0fd(0x280)]():_0x4c07ac;this[_0x5de0fd(0x3fd)]=new Date()[_0x5de0fd(0x2b4)]()+_0x35d953,this[_0x5de0fd(0x19f)]=setTimeout(()=>{const _0x54be95=_0x5de0fd;this[_0x54be95(0x254)]();let _0x557f5c=null;switch(this['type']){case _0x57ec00[_0x54be95(0x3b1)]:_0x557f5c=It(this[_0x54be95(0x393)],this[_0x54be95(0x285)],this['_univerInstanceService'],this['_revisionService'],this[_0x54be95(0x2fc)]);break;case _0x57ec00[_0x54be95(0x32a)]:_0x557f5c=this[_0x54be95(0x393)][_0x54be95(0x338)](_0x41a86a=>_0x41a86a['id']===_0x2fd593['id'])?Lt(this['_pendingMutations'],this[_0x54be95(0x285)],this[_0x54be95(0x2db)],this[_0x54be95(0x366)],this[_0x54be95(0x2fc)]):It(this[_0x54be95(0x393)],this[_0x54be95(0x285)],this[_0x54be95(0x2db)],this[_0x54be95(0x366)],this['_memberService']);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x54be95(0x2ec)]+_0x54be95(0x19a));}let {changeset:_0x580478,pendingMutations:_0x9a5ed8}=_0x557f5c;this[_0x54be95(0x367)][_0x54be95(0x268)](_0x580478);let _0x27154e=_0x9a5ed8['length']?this[_0x54be95(0x1c1)]['createInstance'](J,this[_0x54be95(0x285)],this[_0x54be95(0x2ec)],_0x580478,_0x9a5ed8,this[_0x54be95(0x367)],void 0x0):this[_0x54be95(0x1c1)][_0x54be95(0x2d1)](q,this[_0x54be95(0x285)],this['type'],_0x580478,this['_handler']);_0x27154e[_0x54be95(0x348)](),this[_0x54be95(0x367)][_0x54be95(0x20b)](this,_0x27154e);},_0x35d953);}[_0x35f73b(0x280)](){const _0x3179aa=_0x35f73b;var _0x42d9df;let _0x5fffe6=this[_0x3179aa(0x21c)][_0x3179aa(0x2fb)](U);return(_0x42d9df=_0x5fffe6==null?void 0x0:_0x5fffe6['sendChangesetTimeout'])==null?0x7d0:_0x42d9df;}[_0x35f73b(0x21f)](){const _0x333239=_0x35f73b;throw Error(_0x333239(0x1d9));}[_0x35f73b(0x254)](){const _0xa6855e=_0x35f73b;this[_0xa6855e(0x19f)]!=null&&(clearTimeout(this[_0xa6855e(0x19f)]),this['_sendingTimer']=null);}[_0x35f73b(0x1f3)](_0x109245){const _0x37cb1a=_0x35f73b;return this['_clearScheduledTask'](),this['_injector']['createInstance'](Y,this[_0x37cb1a(0x285)],this[_0x37cb1a(0x2ec)],null,this[_0x37cb1a(0x393)],this['_handler'],_0x109245);}};K=zt=z([R(0x4,_0x1b23c9(_0x2b692d)),R(0x5,_0x1b23c9(_0x1ee4fd)),R(0x6,_0x1b23c9(B)),R(0x7,_0x3594cb),R(0x8,_0x5c3744),R(0x9,_0x160dc0),R(0xa,_0x348e40),R(0xb,_0x599079),R(0xc,_0x257c3e),R(0xd,_0xbefc86(V))],K);let q=Bt=class extends W{constructor(_0x2a6c2c,_0xae9224,_0x263f63,_0x5a29af,_0x10f27d,_0xb1878f,_0x4855c3,_0x1780ce,_0x7b6d8,_0x3467c8,_0x391f76){const _0x363ec2=_0x35f73b;super(_0x2a6c2c,_0xae9224,_0x263f63,[],_0x5a29af,_0x4855c3,_0x3467c8,_0xb1878f,_0x391f76),this['_injector']=_0x10f27d,this[_0x363ec2(0x3f8)]=_0x1780ce,this[_0x363ec2(0x3c2)]=_0x7b6d8,I(this,'status',_0x363ec2(0x193)),I(this,_0x363ec2(0x282),0x0),I(this,_0x363ec2(0x2af),0x0),I(this,_0x363ec2(0x225),void 0x0),I(this,_0x363ec2(0x340),void 0x0);}[_0x35f73b(0x361)](_0x101435){const _0x21bd8a=_0x35f73b;this[_0x21bd8a(0x254)]();let _0x1700e5=this[_0x21bd8a(0x1c1)][_0x21bd8a(0x2d1)](J,this[_0x21bd8a(0x285)],this[_0x21bd8a(0x2ec)],this[_0x21bd8a(0x2e4)],[_0x101435],this[_0x21bd8a(0x367)],this['_resendTimer']);return _0x1700e5[_0x21bd8a(0x348)](),_0x1700e5;}[_0x35f73b(0x3fb)](_0x52cb31){const _0x3480bb=_0x35f73b;if(this[_0x3480bb(0x2c3)](_0x52cb31))return this[_0x3480bb(0x254)](),this[_0x3480bb(0x1c1)]['createInstance'](Z,this[_0x3480bb(0x285)],this[_0x3480bb(0x2ec)],this[_0x3480bb(0x2e4)],[],null,[_0x52cb31],this['_handler']);try{let _0x6f3196=this[_0x3480bb(0x3c2)]['transformChangesets']([_0x52cb31],[this['_awaitingChangeset']],!0x1);if(_0xbb97b6(_0x6f3196)){let {c1Prime:_0x2dcb77,c2Prime:_0x3e52fc}=_0x6f3196;this[_0x3480bb(0x1ad)](_0x2dcb77[0x0]),_0x3e52fc[0x0][_0x3480bb(0x24d)]=this[_0x3480bb(0x2d8)](),this[_0x3480bb(0x254)]();let _0x20852e=this[_0x3480bb(0x1c1)][_0x3480bb(0x2d1)](Bt,this[_0x3480bb(0x285)],this[_0x3480bb(0x2ec)],_0x3e52fc[0x0],this['_handler']);return _0x20852e[_0x3480bb(0x348)](),_0x20852e;}throw _0x6f3196[_0x3480bb(0x3ba)];}catch(_0x5932ea){return this[_0x3480bb(0x3f8)][_0x3480bb(0x3ba)](_0x5932ea),this[_0x3480bb(0x1f3)](!0x1);}}[_0x35f73b(0x2c6)](_0x1c1d44){const _0x524166=_0x35f73b;this['_clearScheduledTask']();let _0x36045d=this[_0x524166(0x366)][_0x524166(0x21d)](this[_0x524166(0x285)]);if(_0x1c1d44[_0x524166(0x319)]<=_0x36045d)return this;if(this[_0x524166(0x2c3)](_0x1c1d44))return this[_0x524166(0x1c1)][_0x524166(0x2d1)](Z,this[_0x524166(0x285)],this[_0x524166(0x2ec)],this[_0x524166(0x2e4)],[],_0x1c1d44[_0x524166(0x319)],[],this[_0x524166(0x367)]);this[_0x524166(0x2b1)]();let _0x37274d=this['_injector'][_0x524166(0x2d1)](G,this[_0x524166(0x285)],this['type'],this[_0x524166(0x367)]);return _0x37274d[_0x524166(0x348)](),_0x37274d;}['onRemoteRej'](_0x1b4ea8){const _0x2b6114=_0x35f73b;return this[_0x2b6114(0x1f3)](!!(_0x1b4ea8!=null&&_0x1b4ea8['isPermissionRej']));}[_0x35f73b(0x34a)](_0x54900e){const _0x5e8125=_0x35f73b;return this[_0x5e8125(0x2af)]>Wt?this[_0x5e8125(0x390)]():(this['_resendTimer']=Rt(this[_0x5e8125(0x282)],{'timeout':this[_0x5e8125(0x282)],'reqId':_0x54900e[_0x5e8125(0x26a)]}),this[_0x5e8125(0x340)]=this[_0x5e8125(0x225)][_0x5e8125(0x1f4)](({reqId:_0x5c0c51,timeout:_0x582e1e})=>{const _0x59a840=_0x5e8125;this[_0x59a840(0x222)](_0x5c0c51,_0x582e1e);}),this);}[_0x35f73b(0x390)](){const _0x5ee1f1=_0x35f73b;return this[_0x5ee1f1(0x254)](),this[_0x5ee1f1(0x1c1)]['createInstance'](X,this[_0x5ee1f1(0x285)],this[_0x5ee1f1(0x2ec)],this[_0x5ee1f1(0x2e4)],[],this[_0x5ee1f1(0x367)]);}[_0x35f73b(0x3ec)](){return this;}[_0x35f73b(0x21f)](){const _0x53cfb2=_0x35f73b;this[_0x53cfb2(0x367)]['onSendChangeset'](this[_0x53cfb2(0x2e4)]);}['_onConflict'](_0xb9116a){const _0x2c4d6c=_0x35f73b;return this[_0x2c4d6c(0x254)](),this[_0x2c4d6c(0x1c1)]['createInstance'](Y,this[_0x2c4d6c(0x285)],this[_0x2c4d6c(0x2ec)],this[_0x2c4d6c(0x2e4)],[],this[_0x2c4d6c(0x367)],_0xb9116a);}['_resendWithTimeout'](_0x3b3ca2,_0x21b9a7){const _0x2308a2=_0x35f73b;var _0x2dbeed;_0x3b3ca2===((_0x2dbeed=this[_0x2308a2(0x2e4)])==null?void 0x0:_0x2dbeed[_0x2308a2(0x26a)])&&(this[_0x2308a2(0x21f)](),this['_resendTimeout']=_0x21b9a7===0x0?0x3e8:Math[_0x2308a2(0x1a4)](_0x21b9a7*0x2,Ut),this[_0x2308a2(0x2af)]+=this[_0x2308a2(0x282)]);}[_0x35f73b(0x254)](){const _0x37e859=_0x35f73b;var _0x51f37b;(_0x51f37b=this[_0x37e859(0x340)])==null||_0x51f37b[_0x37e859(0x2bc)](),this['_resendTimeout']=0x0,this[_0x37e859(0x2af)]=0x0;}};q=Bt=z([R(0x4,_0x1b23c9(_0x2b692d)),R(0x5,_0x1b23c9(_0x1ee4fd)),R(0x6,_0x5c3744),R(0x7,_0x3594cb),R(0x8,_0x348e40),R(0x9,_0x257c3e),R(0xa,_0xbefc86(V))],q);let J=Vt=class extends W{constructor(_0x18be89,_0x2a25ac,_0x128228,_0x4205e2,_0x362e2d,_0x116613,_0x3a8ed6,_0x423981,_0x3864f9,_0x582f47,_0x2841fd,_0x507739,_0x166457){const _0x4884fa=_0x35f73b;super(_0x18be89,_0x2a25ac,_0x128228,_0x4205e2,_0x362e2d,_0x3864f9,_0x507739,_0x423981,_0x166457),this[_0x4884fa(0x1c1)]=_0x3a8ed6,this[_0x4884fa(0x3f8)]=_0x582f47,this[_0x4884fa(0x3c2)]=_0x2841fd,this[_0x4884fa(0x270)]=_0x166457,I(this,_0x4884fa(0x253),'awaiting_with_pending'),I(this,_0x4884fa(0x282),0x0),I(this,_0x4884fa(0x2af),0x0),I(this,_0x4884fa(0x225),void 0x0),I(this,_0x4884fa(0x340),void 0x0),_0x116613&&(this[_0x4884fa(0x225)]=_0x116613,this['_sender']=this[_0x4884fa(0x225)]['subscribe'](({reqId:_0xa0a389,timeout:_0x2e238e})=>{const _0x41e345=_0x4884fa;this[_0x41e345(0x222)](_0xa0a389,_0x2e238e);}));}[_0x35f73b(0x361)](_0x4d15b6){const _0x32172b=_0x35f73b;return this[_0x32172b(0x393)][_0x32172b(0x380)](_0x4d15b6),this;}[_0x35f73b(0x3fb)](_0x4897e5){const _0x4fe634=_0x35f73b;if(this[_0x4fe634(0x2c3)](_0x4897e5))return this[_0x4fe634(0x254)](),this['_injector'][_0x4fe634(0x2d1)](Z,this[_0x4fe634(0x285)],this['type'],this[_0x4fe634(0x2e4)],this[_0x4fe634(0x393)],null,[_0x4897e5],this[_0x4fe634(0x367)]);try{let _0x2a1a78=this[_0x4fe634(0x3c2)][_0x4fe634(0x275)]([_0x4897e5],[this['_awaitingChangeset']],!0x1);if(_0xbb97b6(_0x2a1a78)){let {c1Prime:_0x5dacf3,c2Prime:_0x58b6cf}=_0x2a1a78,_0x5be7cb=this[_0x4fe634(0x3c2)][_0x4fe634(0x1e7)](_0x5dacf3[0x0],this[_0x4fe634(0x393)]);if(_0x5d12cb(_0x5be7cb)){let {c1Prime:_0x2abd2e,m2Prime:_0x2f0838}=_0x5be7cb;return this[_0x4fe634(0x1ad)](_0x2abd2e),_0x58b6cf[0x0][_0x4fe634(0x24d)]=this[_0x4fe634(0x2d8)](),this[_0x4fe634(0x254)](),this[_0x4fe634(0x1c1)][_0x4fe634(0x2d1)](Vt,this[_0x4fe634(0x285)],this[_0x4fe634(0x2ec)],_0x58b6cf[0x0],_0x2f0838,this[_0x4fe634(0x367)],void 0x0);}throw _0x5be7cb[_0x4fe634(0x3ba)];}throw _0x2a1a78[_0x4fe634(0x3ba)];}catch(_0x41ecc4){return this[_0x4fe634(0x3f8)]['error'](_0x41ecc4),this['_onConflict'](!0x1);}}[_0x35f73b(0x2c6)](_0x5e74ee){const _0x4df42c=_0x35f73b;this[_0x4df42c(0x254)]();let _0x5cd24f=this[_0x4df42c(0x2d8)]();if(_0x5e74ee[_0x4df42c(0x319)]<=_0x5cd24f)return this;if(this['_checkMissing'](_0x5e74ee))return this[_0x4df42c(0x1c1)][_0x4df42c(0x2d1)](Z,this[_0x4df42c(0x285)],this[_0x4df42c(0x2ec)],this['_awaitingChangeset'],this['_pendingMutations'],_0x5e74ee[_0x4df42c(0x319)],[],this[_0x4df42c(0x367)]);this[_0x4df42c(0x2b1)]();let _0x43e673=this[_0x4df42c(0x1c1)]['createInstance'](K,this[_0x4df42c(0x285)],this[_0x4df42c(0x2ec)],this[_0x4df42c(0x393)],this[_0x4df42c(0x367)]);return _0x43e673[_0x4df42c(0x1b8)](),_0x43e673[_0x4df42c(0x348)](),_0x43e673;}[_0x35f73b(0x266)](_0x152aee){const _0x257891=_0x35f73b;return this[_0x257891(0x1f3)](!!(_0x152aee!=null&&_0x152aee['isPermissionRej']));}[_0x35f73b(0x34a)](_0x10131f){const _0x29c6b8=_0x35f73b;return this[_0x29c6b8(0x2af)]>Wt?this[_0x29c6b8(0x390)]():(this['_resendTimer']=Rt(this[_0x29c6b8(0x282)],{'timeout':this['_resendTimeout'],'reqId':_0x10131f[_0x29c6b8(0x26a)]}),this['_sender']=this['_resendTimer']['subscribe'](({reqId:_0x2c6cc9,timeout:_0x8ccf65})=>{this['_resendWithTimeout'](_0x2c6cc9,_0x8ccf65);}),this);}[_0x35f73b(0x390)](){const _0x53c301=_0x35f73b;return this['_clearScheduledTask'](),this[_0x53c301(0x1c1)][_0x53c301(0x2d1)](X,this[_0x53c301(0x285)],this[_0x53c301(0x2ec)],this[_0x53c301(0x2e4)],this[_0x53c301(0x393)],this['_handler']);}[_0x35f73b(0x3ec)](){return this;}[_0x35f73b(0x21f)](){const _0x1e2af0=_0x35f73b;this[_0x1e2af0(0x367)][_0x1e2af0(0x268)](this['_awaitingChangeset']);}[_0x35f73b(0x1f3)](_0x22fe92){const _0xb43c36=_0x35f73b;return this[_0xb43c36(0x254)](),this[_0xb43c36(0x1c1)]['createInstance'](Y,this[_0xb43c36(0x285)],this[_0xb43c36(0x2ec)],null,this[_0xb43c36(0x393)],this[_0xb43c36(0x367)],_0x22fe92);}['_resendWithTimeout'](_0x156b11,_0x285ab1){const _0x1a0844=_0x35f73b;var _0x2a17fb;_0x156b11===((_0x2a17fb=this[_0x1a0844(0x2e4)])==null?void 0x0:_0x2a17fb[_0x1a0844(0x26a)])&&(this[_0x1a0844(0x21f)](),this[_0x1a0844(0x282)]=_0x285ab1===0x0?0x3e8:Math[_0x1a0844(0x1a4)](_0x285ab1*0x2,Ut),this[_0x1a0844(0x2af)]+=this['_resendTimeout']);}[_0x35f73b(0x254)](){const _0x46c8b6=_0x35f73b;var _0x2436aa;(_0x2436aa=this[_0x46c8b6(0x340)])==null||_0x2436aa[_0x46c8b6(0x2bc)](),this[_0x46c8b6(0x282)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};J=Vt=z([R(0x6,_0x1b23c9(_0x2b692d)),R(0x7,_0x1b23c9(_0x1ee4fd)),R(0x8,_0x5c3744),R(0x9,_0x3594cb),R(0xa,_0x348e40),R(0xb,_0x257c3e),R(0xc,_0xbefc86(V))],J);let Y=class extends W{constructor(_0x1e7f61,_0x111602,_0x3551db,_0x1bbad5,_0x505c36,_0x58f204=!0x1,_0x6b0a6f,_0x18e379,_0x153d06,_0x1b0b56,_0x39d9b3,_0x3997bf,_0x498ea5){const _0x4bb1a1=_0x35f73b;super(_0x1e7f61,_0x111602,_0x3551db,_0x1bbad5,_0x505c36,_0x18e379,_0x153d06,_0x1b0b56,_0x498ea5),this['_isPermissionRej']=_0x58f204,this[_0x4bb1a1(0x3aa)]=_0x6b0a6f,this[_0x4bb1a1(0x26b)]=_0x39d9b3,this[_0x4bb1a1(0x2bf)]=_0x3997bf,this['localCacheService']=_0x498ea5,I(this,'status',_0x4bb1a1(0x3ef)),this[_0x4bb1a1(0x1c9)](),this[_0x4bb1a1(0x242)](),this[_0x4bb1a1(0x291)]();}[_0x35f73b(0x361)](){return this;}['onRemoteChangeset'](){return this;}[_0x35f73b(0x2c6)](){return this;}[_0x35f73b(0x266)](){return this;}[_0x35f73b(0x34a)](){return this;}[_0x35f73b(0x390)](){return this;}[_0x35f73b(0x3ec)](){return this;}['resend'](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x35f73b(0x242)](){const _0x1144e5=_0x35f73b;var _0x544073;(_0x544073=this['_localCacheService'])==null||_0x544073[_0x1144e5(0x2d3)](this[_0x1144e5(0x285)],this[_0x1144e5(0x2ec)],null,[]);}[_0x35f73b(0x1c9)](){const _0x3a9d82=_0x35f73b;this[_0x3a9d82(0x231)]?this['_collaborationUIEventService']['emitEvent']({'id':'PERMISSION_DENIED'}):this[_0x3a9d82(0x2bf)]['emitEvent']({'id':_0x3a9d82(0x2a4)});}[_0x35f73b(0x291)](){const _0x309a78=_0x35f73b;this['_permissionService'][_0x309a78(0x3d2)](new _0x170956(this[_0x309a78(0x285)])['id'],!0x1);}};Y=z([R(0x6,_0x1b23c9(_0x5043f7)),R(0x7,_0x5c3744),R(0x8,_0x257c3e),R(0x9,_0x1b23c9(_0x1ee4fd)),R(0xa,_0x1b23c9(_0x2c19d0)),R(0xb,_0x1b23c9(L)),R(0xc,_0xbefc86(V))],Y);let X=class extends W{constructor(_0x50a23d,_0x4b24ad,_0x45ecf1,_0x28dde2,_0x2cd015,_0x5d8148,_0x562e0a,_0x26332f,_0x90e6b9,_0x4ddfd2){const _0x253e9e=_0x35f73b;super(_0x50a23d,_0x4b24ad,_0x45ecf1,_0x28dde2,_0x2cd015,_0x26332f,_0x90e6b9,_0x562e0a,_0x4ddfd2),this[_0x253e9e(0x1c1)]=_0x5d8148,I(this,'status','offline');}[_0x35f73b(0x361)](_0x5d87f0){const _0x48c62b=_0x35f73b;return this[_0x48c62b(0x393)][_0x48c62b(0x380)](_0x5d87f0),this[_0x48c62b(0x348)](),this;}[_0x35f73b(0x3fb)](_0x593e12){const _0x114dec=_0x35f73b;throw Error(_0x114dec(0x32f));}[_0x35f73b(0x2c6)](){const _0xda8a93=_0x35f73b;throw Error(_0xda8a93(0x1db));}[_0x35f73b(0x266)](){const _0x5d6e70=_0x35f73b;throw Error(_0x5d6e70(0x19c));}['onRemoteRetry'](){return this;}[_0x35f73b(0x390)](){return this;}[_0x35f73b(0x3ec)](){const _0x4fb626=_0x35f73b;let {_injector:_0x17eb89,_pendingMutations:_0x184bcf,_awaitingChangeset:_0x473d4d,unitID:_0x9a5b24,_handler:_0x1a1f3f,type:_0x19e38f}=this,_0x1b789c=Gt(_0x17eb89,_0x9a5b24,_0x19e38f,_0x473d4d,_0x184bcf,_0x1a1f3f);return _0x1b789c instanceof K?_0x1b789c[_0x4fb626(0x1b8)]():(_0x1b789c instanceof J||_0x1b789c instanceof q)&&_0x1b789c[_0x4fb626(0x21f)](),_0x1b789c;}[_0x35f73b(0x21f)](){const _0x460808=_0x35f73b;throw Error(_0x460808(0x233));}};X=z([R(0x5,_0x1b23c9(_0x2b692d)),R(0x6,_0x1b23c9(_0x1ee4fd)),R(0x7,_0x5c3744),R(0x8,_0x257c3e),R(0x9,_0xbefc86(V))],X);let Z=class extends W{constructor(_0x20d2cb,_0x4612fb,_0x2ce198,_0x96b24f,_0x4d94ee,_0x5b8e0b,_0x5dd72a,_0x5ba185,_0x1edeb5,_0x26efda,_0x6758db,_0x23518e,_0x347e8b,_0x4d95a1){const _0x2aa1f5=_0x35f73b;super(_0x20d2cb,_0x4612fb,_0x2ce198,_0x96b24f,_0x5dd72a,_0x6758db,_0x23518e,_0x1edeb5,_0x4d95a1),this[_0x2aa1f5(0x309)]=_0x4d94ee,this[_0x2aa1f5(0x1a9)]=_0x5b8e0b,this[_0x2aa1f5(0x1c1)]=_0x5ba185,this[_0x2aa1f5(0x3f8)]=_0x26efda,this[_0x2aa1f5(0x3c2)]=_0x347e8b,this['localCacheService']=_0x4d95a1,I(this,'status',_0x2aa1f5(0x1d2));}[_0x35f73b(0x2c8)](_0x5c945d){const _0x38dd0e=_0x35f73b;try{if(this[_0x38dd0e(0x2cb)](_0x5c945d)[_0x38dd0e(0x3d0)])throw Error(_0x38dd0e(0x28c));if(this[_0x38dd0e(0x2cb)]([...this['_queuedRemoteChangesets']][_0x38dd0e(0x1f8)]((_0x2b5dd6,_0x3775bf)=>_0x2b5dd6[_0x38dd0e(0x319)]-_0x3775bf[_0x38dd0e(0x319)]))['missingChangesets'])return this[_0x38dd0e(0x1a9)]=[],this[_0x38dd0e(0x348)](),this[_0x38dd0e(0x367)][_0x38dd0e(0x259)]({'from':this[_0x38dd0e(0x2d8)](),'to':0x0}),this;let _0x2329ad=this['_awaitingChangeset'],_0x26a94a=this[_0x38dd0e(0x393)],_0x11cf02;if(_0x2329ad&&_0x26a94a[_0x38dd0e(0x37b)]!==0x0)_0x11cf02=this[_0x38dd0e(0x1c1)][_0x38dd0e(0x2d1)](J,this[_0x38dd0e(0x285)],this[_0x38dd0e(0x2ec)],_0x2329ad,_0x26a94a,this[_0x38dd0e(0x367)],void 0x0);else{if(_0x2329ad&&_0x26a94a[_0x38dd0e(0x37b)]===0x0)_0x2329ad[_0x38dd0e(0x24d)]=this[_0x38dd0e(0x2d8)](),_0x11cf02=this[_0x38dd0e(0x1c1)][_0x38dd0e(0x2d1)](q,this['unitID'],this[_0x38dd0e(0x2ec)],_0x2329ad,this['_handler']);else{if(_0x26a94a[_0x38dd0e(0x37b)]!==0x0){let _0x275c5b=this[_0x38dd0e(0x1c1)][_0x38dd0e(0x2d1)](K,this[_0x38dd0e(0x285)],this['type'],_0x26a94a,this[_0x38dd0e(0x367)]);_0x275c5b['_schedule'](),_0x11cf02=_0x275c5b;}else _0x11cf02=this['_injector'][_0x38dd0e(0x2d1)](G,this['unitID'],this[_0x38dd0e(0x2ec)],this[_0x38dd0e(0x367)]);}}return _0x11cf02[_0x38dd0e(0x348)](),_0x11cf02;}catch(_0x23a09e){return this[_0x38dd0e(0x3f8)][_0x38dd0e(0x3ba)](_0x38dd0e(0x24c),'failed\x20to\x20apply\x20missed\x20changesets!',_0x23a09e),this[_0x38dd0e(0x1c1)][_0x38dd0e(0x2d1)](Y,this[_0x38dd0e(0x285)],this[_0x38dd0e(0x2ec)],this['_awaitingChangeset'],this[_0x38dd0e(0x393)],this[_0x38dd0e(0x367)],!0x1);}}['_handleRemoteChangesets'](_0x3b653a){const _0x2352ac=_0x35f73b;this[_0x2352ac(0x344)]();for(let _0x1652a9=0x0;_0x1652a9<_0x3b653a[_0x2352ac(0x37b)];_0x1652a9++){let _0x16b5f1=_0x3b653a[_0x1652a9],_0x1a4f2c=this['_getCurrentRevision']();if(!(_0x16b5f1['revision']<=_0x1a4f2c)){if(_0x16b5f1['revision']>_0x1a4f2c+0x1)return{'missingChangesets':!0x0};if(this[_0x2352ac(0x339)](_0x16b5f1)){this[_0x2352ac(0x1b5)]();continue;}this[_0x2352ac(0x36f)](_0x16b5f1),this[_0x2352ac(0x344)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x5227f8){const _0x54f5b6=_0x35f73b;let _0x3c0156=_0x5227f8,_0xb549ca=this[_0x54f5b6(0x2e4)];if(_0xb549ca){let _0x333e9d=this['_transformService'][_0x54f5b6(0x275)]([_0x5227f8],[_0xb549ca],!0x1);if(!_0xbb97b6(_0x333e9d))throw _0x333e9d[_0x54f5b6(0x3ba)];_0x3c0156=_0x333e9d[_0x54f5b6(0x279)][0x0],_0xb549ca=_0x333e9d[_0x54f5b6(0x264)][0x0];}let _0x4d9168=this[_0x54f5b6(0x393)];if(_0x4d9168[_0x54f5b6(0x37b)]){let _0x3a7a5f=this[_0x54f5b6(0x3c2)][_0x54f5b6(0x1e7)](_0x3c0156,_0x4d9168);if(!_0x5d12cb(_0x3a7a5f))throw _0x3a7a5f[_0x54f5b6(0x3ba)];_0x3c0156=_0x3a7a5f[_0x54f5b6(0x279)],_0x4d9168=_0x3a7a5f['m2Prime'];}this[_0x54f5b6(0x1ad)](_0x3c0156),_0xb549ca&&(_0xb549ca[_0x54f5b6(0x24d)]=this[_0x54f5b6(0x2d8)]()),this[_0x54f5b6(0x2e4)]=_0xb549ca,this[_0x54f5b6(0x393)]=_0x4d9168;}[_0x35f73b(0x344)](){const _0xce407b=_0x35f73b;if(!this[_0xce407b(0x2e4)]||this[_0xce407b(0x309)]==null)return;let _0x577cdc=this['_getCurrentRevision']();if(this[_0xce407b(0x309)]<=_0x577cdc)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this[_0xce407b(0x309)]+'.');this[_0xce407b(0x309)]===_0x577cdc+0x1&&this[_0xce407b(0x1b5)]();}[_0x35f73b(0x1b5)](){const _0x49a6de=_0x35f73b;this[_0x49a6de(0x2b1)](),this[_0x49a6de(0x2e4)]=null,this[_0x49a6de(0x309)]=null;}[_0x35f73b(0x339)](_0x3cf4e8){const _0x2ba9ca=_0x35f73b;let _0x2c72e1=this[_0x2ba9ca(0x2e4)];return!_0x2c72e1||!_0x2c72e1[_0x2ba9ca(0x236)]||_0x2c72e1[_0x2ba9ca(0x26a)]===null||_0x2c72e1[_0x2ba9ca(0x26a)]===void 0x0?!0x1:_0x3cf4e8[_0x2ba9ca(0x285)]===_0x2c72e1[_0x2ba9ca(0x285)]&&_0x3cf4e8['sid']===_0x2c72e1['sid']&&_0x3cf4e8[_0x2ba9ca(0x26a)]===_0x2c72e1[_0x2ba9ca(0x26a)];}[_0x35f73b(0x21f)](){const _0x57ae6b=_0x35f73b;throw Error(_0x57ae6b(0x379));}[_0x35f73b(0x361)](_0x394c4b){const _0x43ac7e=_0x35f73b;return this['_pendingMutations'][_0x43ac7e(0x380)](_0x394c4b),this;}[_0x35f73b(0x3fb)](_0x1616c6){const _0x197b0b=_0x35f73b;return this[_0x197b0b(0x1a9)][_0x197b0b(0x380)](_0x1616c6),this;}['onRemoteAck'](_0x307b8f){const _0x1c9f31=_0x35f73b;if(this[_0x1c9f31(0x2e4)]){let _0x3bf991=this[_0x1c9f31(0x2d8)]();return _0x307b8f['revision']<=_0x3bf991||(_0x3bf991+0x1===_0x307b8f['revision']?(this[_0x1c9f31(0x2b1)](),this['_awaitingChangeset']=null,this[_0x1c9f31(0x309)]=null):this[_0x1c9f31(0x309)]=_0x307b8f[_0x1c9f31(0x319)]),this;}if(_0x307b8f[_0x1c9f31(0x319)]<=this[_0x1c9f31(0x2d8)]())return this;throw Error(_0x1c9f31(0x31f));}[_0x35f73b(0x266)](_0x56b201){const _0x3e10c6=_0x35f73b;return this['_onConflict'](!!(_0x56b201!=null&&_0x56b201[_0x3e10c6(0x2e9)]));}[_0x35f73b(0x34a)](){return this;}[_0x35f73b(0x390)](){const _0x17f0e3=_0x35f73b;return this[_0x17f0e3(0x1c1)][_0x17f0e3(0x2d1)](X,this[_0x17f0e3(0x285)],this[_0x17f0e3(0x2ec)],this[_0x17f0e3(0x2e4)],this[_0x17f0e3(0x393)],this['_handler']);}['toggleOnline'](){return this;}[_0x35f73b(0x1f3)](_0x3845de){const _0x3f560e=_0x35f73b;return this[_0x3f560e(0x1c1)][_0x3f560e(0x2d1)](Y,this[_0x3f560e(0x285)],this[_0x3f560e(0x2ec)],this[_0x3f560e(0x2e4)],this['_pendingMutations'],this[_0x3f560e(0x367)],_0x3845de);}};Z=z([R(0x7,_0x1b23c9(_0x2b692d)),R(0x8,_0x1b23c9(_0x1ee4fd)),R(0x9,_0x3594cb),R(0xa,_0x5c3744),R(0xb,_0x257c3e),R(0xc,_0x348e40),R(0xd,_0xbefc86(V))],Z);function Gt(_0x14faa0,_0x2e8742,_0x22be85,_0x1f4d3e,_0x374067,_0x27fadb){const _0x3d83ba=_0x35f73b;return _0x1f4d3e&&_0x374067[_0x3d83ba(0x37b)]?_0x14faa0[_0x3d83ba(0x2d1)](J,_0x2e8742,_0x22be85,_0x1f4d3e,_0x374067,_0x27fadb,void 0x0):_0x1f4d3e?_0x14faa0['createInstance'](q,_0x2e8742,_0x22be85,_0x1f4d3e,_0x27fadb):_0x374067['length']?_0x14faa0['createInstance'](K,_0x2e8742,_0x22be85,_0x374067,_0x27fadb):_0x14faa0['createInstance'](G,_0x2e8742,_0x22be85,_0x27fadb);}let Kt=class extends _0x495984{get[_0x35f73b(0x1c6)](){const _0x2e2433=_0x35f73b;return this[_0x2e2433(0x2eb)];}constructor(_0x4348b9,_0x35f81a,_0x5285c0,_0x15cc81,_0x40caf2,_0x48a9b4,_0x4c1fe7,_0x3e49d1,_0x5ddc4c,_0x2c775e,_0x52c4b3,_0x3d8195,_0x4371bd,_0x4d285e){const _0x5d5220=_0x35f73b;super(),this[_0x5d5220(0x285)]=_0x4348b9,this[_0x5d5220(0x1b6)]=_0x35f81a,this[_0x5d5220(0x1a0)]=_0x5285c0,this[_0x5d5220(0x1c1)]=_0x15cc81,this[_0x5d5220(0x20f)]=_0x40caf2,this['_localeService']=_0x48a9b4,this[_0x5d5220(0x366)]=_0x4c1fe7,this[_0x5d5220(0x29f)]=_0x3e49d1,this['_univerInstanceService']=_0x5ddc4c,this['_logService']=_0x2c775e,this[_0x5d5220(0x234)]=_0x52c4b3,this[_0x5d5220(0x3aa)]=_0x3d8195,this[_0x5d5220(0x1ce)]=_0x4371bd,this[_0x5d5220(0x30e)]=_0x4d285e,I(this,'_state$',new _0x10ace7(null)),I(this,'state$',this[_0x5d5220(0x3b2)][_0x5d5220(0x3ac)]()),I(this,'_state',void 0x0),I(this,_0x5d5220(0x3c5),!0x1),I(this,_0x5d5220(0x3f2),''),I(this,_0x5d5220(0x214),0x0),I(this,_0x5d5220(0x32b),this['state$']['pipe'](_0x1a3ff1(_0x529f81=>_0x529f81?_0x529f81[_0x5d5220(0x253)]:_0x5d5220(0x2e1)),_0x39cccb(0x1))),I(this,'_transitionLocked',!0x1),I(this,_0x5d5220(0x3af),[]);}async[_0x35f73b(0x2df)](){const _0x5bf80f=_0x35f73b;if(this[_0x5bf80f(0x1c6)])throw Error(_0x5bf80f(0x206));await this[_0x5bf80f(0x29d)]();}['pauseCollaboration'](){const _0x52935a=_0x35f73b;return this[_0x52935a(0x3c5)]=!0x0,_0x2f6814(()=>{const _0x5e9f23=_0x52935a;this[_0x5e9f23(0x3c5)]=!0x1,this[_0x5e9f23(0x3d4)]();});}[_0x35f73b(0x299)](_0x3365ac){const _0x389264=_0x35f73b;this[_0x389264(0x358)](_0x3365ac);}['_updateState'](_0x5b3373){const _0x139531=_0x35f73b;this['_state']=_0x5b3373,this[_0x139531(0x3b2)][_0x139531(0x3f6)](_0x5b3373);}async[_0x35f73b(0x29d)](){const _0x2d17b4=_0x35f73b;if(this['_updateState'](await this[_0x2d17b4(0x386)]()),this[_0x2d17b4(0x1ce)]){var _0x47fb25;(_0x47fb25=this[_0x2d17b4(0x1ce)])==null||_0x47fb25[_0x2d17b4(0x226)](this[_0x2d17b4(0x285)]),this[_0x2d17b4(0x2fa)](this[_0x2d17b4(0x1ce)][_0x2d17b4(0x1de)](this[_0x2d17b4(0x285)])['subscribe'](_0x46db85=>{const _0x2d29d6=_0x2d17b4;this['_logService'][_0x2d29d6(0x39c)]('[CollaborationEntity]',_0x2d29d6(0x2fd),_0x46db85),_0x46db85===0x1?(this[_0x2d29d6(0x29f)][_0x2d29d6(0x374)]({'id':_0x2d29d6(0x37c)}),this[_0x2d29d6(0x3aa)][_0x2d29d6(0x3d2)](new _0x170956(this[_0x2d29d6(0x285)])['id'],!0x1),this[_0x2d29d6(0x3aa)][_0x2d29d6(0x33c)](!0x1)):(this['_permissionService'][_0x2d29d6(0x3d2)](new _0x170956(this[_0x2d29d6(0x285)])['id'],!0x0),this[_0x2d29d6(0x3aa)]['setShowComponents'](!0x0));}));}let _0x38cbe7=!0x1;return this[_0x2d17b4(0x2fa)](this['session']['sessionStatus$'][_0x2d17b4(0x1f4)](_0x2d5085=>{const _0x44ad76=_0x2d17b4;_0x2d5085===0x3?this[_0x44ad76(0x357)](_0x38cbe7):_0x2d5085===0x2&&(_0x38cbe7=!0x0,this[_0x44ad76(0x2b6)]());})),this[_0x2d17b4(0x2fa)](this[_0x2d17b4(0x1b6)][_0x2d17b4(0x39e)][_0x2d17b4(0x1f4)](_0x322fe9=>{const _0x5db097=_0x2d17b4;try{switch(_0x322fe9[_0x5db097(0x263)]){case _0x576af5[_0x5db097(0x295)]:this[_0x5db097(0x2e5)](_0x2dfd05(_0x322fe9['data']));break;case _0x576af5[_0x5db097(0x3d5)]:this['_onRemoteACK'](_0x322fe9['data']);break;case _0x576af5[_0x5db097(0x28e)]:this['_onRemoteRejected']();break;case _0x576af5['CHANGESET_SHOULD_RETRY']:this[_0x5db097(0x1af)](_0x322fe9[_0x5db097(0x3fe)]);break;case _0x576af5[_0x5db097(0x2d2)]:this[_0x5db097(0x1e0)](_0x322fe9[_0x5db097(0x3fe)][_0x5db097(0x26e)][_0x5db097(0x323)](_0x3a45ab=>_0x2dfd05(_0x3a45ab)));break;case _0x576af5[_0x5db097(0x3e3)]:this[_0x5db097(0x3e5)]({'isPermissionRej':!0x0});break;case _0x576af5[_0x5db097(0x2a7)]:break;}}catch(_0x2ea12e){throw console[_0x5db097(0x3ba)](_0x5db097(0x350),_0x2ea12e),_0x2ea12e;}})),this[_0x2d17b4(0x2eb)];}['_unlockTransition'](){const _0x378854=_0x35f73b;this[_0x378854(0x1e2)]=!0x1;}[_0x35f73b(0x2a1)](){const _0x306c64=_0x35f73b;if(this[_0x306c64(0x1e2)])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this['_transitionLocked']=!0x0;}[_0x35f73b(0x358)](_0x21b585){const _0x4011d1=_0x35f73b;this[_0x4011d1(0x2a1)](),this[_0x4011d1(0x272)](this[_0x4011d1(0x2eb)]['appendMutation'](_0x21b585)),this[_0x4011d1(0x327)]();}[_0x35f73b(0x2e5)](_0x2588d5){const _0x23d33c=_0x35f73b;if(!(_0x2588d5[_0x23d33c(0x319)]<=this[_0x23d33c(0x366)]['getCurrentRevOfUnit'](this[_0x23d33c(0x285)]))){if(this[_0x23d33c(0x3c5)]){this[_0x23d33c(0x3af)][_0x23d33c(0x380)](_0x2588d5);return;}this[_0x23d33c(0x3a2)](_0x2588d5);}}[_0x35f73b(0x3d4)](){const _0x364f9c=_0x35f73b;this[_0x364f9c(0x3af)]['forEach'](_0x1e4c2d=>this[_0x364f9c(0x3a2)](_0x1e4c2d)),this[_0x364f9c(0x3af)]=[];}[_0x35f73b(0x3a2)](_0x4183f8){const _0x3b40b7=_0x35f73b;let _0x764f66=this[_0x3b40b7(0x20f)][_0x3b40b7(0x33e)][_0x3b40b7(0x325)](this[_0x3b40b7(0x20f)]['interceptor'][_0x3b40b7(0x2e8)]()[_0x3b40b7(0x1cd)])(_0x4183f8[_0x3b40b7(0x391)],null)||_0x4183f8[_0x3b40b7(0x391)],_0x324543={..._0x4183f8,'mutations':_0x764f66};this[_0x3b40b7(0x2a1)](),this[_0x3b40b7(0x272)](this[_0x3b40b7(0x2eb)]['onRemoteChangeset'](_0x324543)),this[_0x3b40b7(0x327)]();}[_0x35f73b(0x351)](_0x34de95){const _0x56e7aa=_0x35f73b;this['_lockTransition'](),this[_0x56e7aa(0x272)](this[_0x56e7aa(0x2eb)][_0x56e7aa(0x2c6)](_0x34de95)),this[_0x56e7aa(0x327)]();}[_0x35f73b(0x3e5)](_0x279309){const _0x27a7b1=_0x35f73b;this['_lockTransition'](),this[_0x27a7b1(0x272)](this[_0x27a7b1(0x2eb)][_0x27a7b1(0x266)](_0x279309)),this[_0x27a7b1(0x327)]();}[_0x35f73b(0x1af)](_0x60286f){const _0x3f0f93=_0x35f73b;this['_lockTransition'](),this[_0x3f0f93(0x272)](this['_state'][_0x3f0f93(0x34a)](_0x60286f)),this[_0x3f0f93(0x327)]();}['_onFetchMissResult'](_0x2aeb4e){const _0x22e24d=_0x35f73b;if(!(this['_state']instanceof Z))throw TypeError(_0x22e24d(0x2c0));let _0x118496=_0x2aeb4e[_0x22e24d(0x323)](_0x384ade=>{const _0xe8571f=_0x22e24d;let _0x418278=this[_0xe8571f(0x20f)][_0xe8571f(0x33e)][_0xe8571f(0x325)](this[_0xe8571f(0x20f)][_0xe8571f(0x33e)][_0xe8571f(0x2e8)]()['COMPRESS_MUTATION_APPLY'])(_0x384ade[_0xe8571f(0x391)],null)||_0x384ade[_0xe8571f(0x391)];return{..._0x384ade,'mutations':_0x418278};});this[_0x22e24d(0x2a1)](),this[_0x22e24d(0x272)](this['_state'][_0x22e24d(0x2c8)](_0x118496)),this['_unlockTransition']();}[_0x35f73b(0x2b6)](){const _0xb31efb=_0x35f73b;this[_0xb31efb(0x2a1)](),this[_0xb31efb(0x272)](this[_0xb31efb(0x2eb)]['toggleOffline']()),this[_0xb31efb(0x327)]();}[_0x35f73b(0x357)](_0x56b9fb=!0x1){const _0x1ae60f=_0x35f73b;this[_0x1ae60f(0x2a1)](),this[_0x1ae60f(0x272)](this[_0x1ae60f(0x2eb)][_0x1ae60f(0x3ec)]()),this['_unlockTransition']();let _0x338ebf=this[_0x1ae60f(0x2eb)];_0x56b9fb&&_0x338ebf instanceof G&&(this[_0x1ae60f(0x2a1)](),this[_0x1ae60f(0x272)](_0x338ebf[_0x1ae60f(0x237)]()),this[_0x1ae60f(0x327)]());}async[_0x35f73b(0x386)](){return new Promise(_0x2267db=>{const _0x45fbb4=_0x3c29;this[_0x45fbb4(0x1b6)]['sessionStatus$'][_0x45fbb4(0x289)](_0x2bd5fd(0x1))['subscribe'](async _0x5eb382=>{const _0x3f8093=_0x45fbb4;_0x2267db(await this[_0x3f8093(0x2be)](_0x5eb382===0x3));});});}[_0x35f73b(0x2b9)](){const _0x431f11=_0x35f73b;let _0x181727=this[_0x431f11(0x285)];return{'onStateChange':(_0x30407f,_0x216a52)=>{const _0x354cd0=_0x431f11;if(_0x30407f!==this[_0x354cd0(0x2eb)])throw Error(_0x354cd0(0x21e)+_0x30407f[_0x354cd0(0x253)]+_0x354cd0(0x2e7)+_0x216a52[_0x354cd0(0x253)]+_0x354cd0(0x197)+this[_0x354cd0(0x2eb)][_0x354cd0(0x253)]);this[_0x354cd0(0x272)](_0x216a52);},'onSendChangeset':_0x3bfaf2=>{const _0x1568cb=_0x431f11;_0x3bfaf2['sid']||(_0x3bfaf2[_0x1568cb(0x236)]=this[_0x1568cb(0x3f2)],_0x3bfaf2[_0x1568cb(0x26a)]=++this[_0x1568cb(0x214)]);let _0x5ddfc5={'eventID':_0x576af5[_0x1568cb(0x288)],'data':{'unitID':_0x3bfaf2[_0x1568cb(0x285)],'unitType':this['_type'],'changeset':_0x3bfaf2,'memberID':this[_0x1568cb(0x1b6)][_0x1568cb(0x3b9)]()}};this[_0x1568cb(0x1b6)][_0x1568cb(0x2a0)](_0x5ddfc5,this[_0x1568cb(0x285)]);},'onMissingChangesets':({from:_0x3e0dbd,to:_0x464ebe})=>{const _0x1b168d=_0x431f11;this[_0x1b168d(0x3f8)]['debug'](_0x1b168d(0x32d),_0x1b168d(0x3ae)+_0x3e0dbd+_0x1b168d(0x326)+_0x464ebe);let _0x23be4f={'eventID':_0x576af5[_0x1b168d(0x2a8)],'data':{'unitID':_0x181727,'unitType':this[_0x1b168d(0x1a0)],'from':_0x3e0dbd,'to':_0x464ebe}};this['session']['send'](_0x23be4f,this[_0x1b168d(0x285)]);}};}async['_createInitialStateImpl'](_0x48338c){const _0x291201=_0x35f73b;var _0x2624b5,_0x34b13b,_0x16580b;let _0x24c50c=await((_0x2624b5=this[_0x291201(0x30e)])==null?void 0x0:_0x2624b5[_0x291201(0x36e)](this[_0x291201(0x285)])),_0x369759=(_0x34b13b=_0x24c50c==null?void 0x0:_0x24c50c[_0x291201(0x391)])==null?[]:_0x34b13b,_0x159b57=(_0x16580b=_0x24c50c==null?void 0x0:_0x24c50c[_0x291201(0x257)])==null?null:_0x16580b,_0x3032fc=!!(_0x159b57!=null&&_0x159b57['sid'])&&!!(_0x159b57!=null&&_0x159b57[_0x291201(0x26a)]);this[_0x291201(0x3f2)]=_0x3032fc?_0x159b57[_0x291201(0x236)]:_0x45b42c(),this['_changesetReqId']=_0x3032fc?_0x159b57['reqId']:0x0;let _0x4a91a5=this[_0x291201(0x285)];try{this[_0x291201(0x3e4)](_0x159b57,_0x369759);}catch(_0x882f44){this[_0x291201(0x3f8)][_0x291201(0x3ba)](_0x882f44);}let _0x1b971f=this[_0x291201(0x2b9)]();if(_0x48338c){let _0x177727=Gt(this[_0x291201(0x1c1)],_0x4a91a5,this['_type'],_0x159b57,_0x369759,_0x1b971f);return _0x177727 instanceof K?_0x177727['_schedule']():(_0x177727 instanceof J||_0x177727 instanceof q)&&_0x177727[_0x291201(0x21f)](),_0x177727;}return this[_0x291201(0x1c1)]['createInstance'](X,_0x4a91a5,this[_0x291201(0x1a0)],_0x159b57,_0x369759,_0x1b971f);}[_0x35f73b(0x3e4)](_0x5e8568,_0x3463d9){const _0x455040=_0x35f73b;var _0x47a089,_0x2405d7;let _0x11ecbf=this[_0x455040(0x20f)]['interceptor'][_0x455040(0x325)](this[_0x455040(0x20f)][_0x455040(0x33e)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x47a089=_0x11ecbf((_0x5e8568==null?void 0x0:_0x5e8568[_0x455040(0x391)])||[],null))==null||_0x47a089[_0x455040(0x2c9)](_0x39ac2b=>this[_0x455040(0x234)]['executeCommand'](_0x39ac2b['id'],_0x39ac2b[_0x455040(0x3fc)])),(_0x2405d7=_0x11ecbf(_0x3463d9||[],null))==null||_0x2405d7[_0x455040(0x2c9)](_0x3ff267=>this['_commandService'][_0x455040(0x2ab)](_0x3ff267['id'],_0x3ff267[_0x455040(0x3fc)]));}};Kt=z([R(0x3,_0x1b23c9(_0x2b692d)),R(0x4,_0x1b23c9(_0x781451)),R(0x5,_0x1b23c9(_0x2c19d0)),R(0x6,_0x1b23c9(_0x1ee4fd)),R(0x7,_0x1b23c9(L)),R(0x8,_0x599079),R(0x9,_0x3594cb),R(0xa,_0x5c3744),R(0xb,_0x5043f7),R(0xc,_0xbefc86(jt)),R(0xd,_0xbefc86(V))],Kt);let qt=class extends Kt{constructor(_0x2caf4d,_0x3f2e5e,_0x4d911b,_0x279453,_0x36bf8d,_0x32de1b,_0x549d67,_0x482a16,_0x5377d4,_0x1a7e00,_0x37f3eb,_0x3cdbb3,_0x8d9355,_0x26d739){const _0x12b717=_0x35f73b;super(_0x2caf4d,_0x4d911b,_0x3f2e5e,_0x279453,_0x36bf8d,_0x32de1b,_0x549d67,_0x482a16,_0x5377d4,_0x1a7e00,_0x37f3eb,_0x3cdbb3,_0x8d9355,_0x26d739),this[_0x12b717(0x285)]=_0x2caf4d,this['type']=_0x3f2e5e,I(this,_0x12b717(0x33d),null);}['addHandlerCallback'](_0x280e09){const _0x27ca5a=_0x35f73b;this[_0x27ca5a(0x33d)]=_0x280e09;}[_0x35f73b(0x303)](){const _0x1af066=_0x35f73b;this[_0x1af066(0x33d)]=null,super['dispose']();}[_0x35f73b(0x2b9)](){const _0x4fad91=_0x35f73b;let _0x1fe21a=super[_0x4fad91(0x2b9)]();return _0x1fe21a['onTransformIME']=_0x49d5c5=>{const _0x38f3e2=_0x4fad91;var _0x5297ce,_0x201e0f;return(_0x5297ce=this[_0x38f3e2(0x33d)])==null||(_0x201e0f=_0x5297ce[_0x38f3e2(0x1dc)])==null?void 0x0:_0x201e0f['call'](_0x5297ce,_0x49d5c5);},_0x1fe21a[_0x4fad91(0x25e)]=_0x510a30=>{const _0x68f883=_0x4fad91;var _0x4cd055,_0x14fa74;return(_0x4cd055=this[_0x68f883(0x33d)])==null||(_0x14fa74=_0x4cd055[_0x68f883(0x25e)])==null?void 0x0:_0x14fa74[_0x68f883(0x31a)](_0x4cd055,_0x510a30);},_0x1fe21a['onTransformSelections']=_0xfb80f0=>{const _0x1a12de=_0x4fad91;var _0x97104a,_0x238e22;return(_0x97104a=this[_0x1a12de(0x33d)])==null||(_0x238e22=_0x97104a[_0x1a12de(0x3e9)])==null?void 0x0:_0x238e22[_0x1a12de(0x31a)](_0x97104a,_0xfb80f0);},_0x1fe21a[_0x4fad91(0x23c)]=_0x2b486d=>{const _0x1354d5=_0x4fad91;var _0x3085a9,_0x2c3792;return(_0x3085a9=this[_0x1354d5(0x33d)])==null||(_0x2c3792=_0x3085a9['onSyncEditingCollabCursor'])==null?void 0x0:_0x2c3792['call'](_0x3085a9,_0x2b486d);},_0x1fe21a[_0x4fad91(0x1ff)]=_0x3d4895=>{const _0x20b9e6=_0x4fad91;var _0x3ee684,_0x10c7a5,_0x1073bf;if(!((_0x3ee684=this[_0x20b9e6(0x33d)])!=null&&_0x3ee684[_0x20b9e6(0x1ff)]))throw Error(_0x20b9e6(0x3c6));return(_0x10c7a5=this[_0x20b9e6(0x33d)])==null||(_0x1073bf=_0x10c7a5[_0x20b9e6(0x1ff)])==null?void 0x0:_0x1073bf['call'](_0x10c7a5,_0x3d4895);},_0x1fe21a[_0x4fad91(0x2d0)]=_0x4d5a06=>{const _0x136b86=_0x4fad91;var _0x4dbc83,_0x406440,_0x7aac04;if(!((_0x4dbc83=this[_0x136b86(0x33d)])!=null&&_0x4dbc83[_0x136b86(0x2d0)]))throw Error(_0x136b86(0x1ec));return(_0x406440=this[_0x136b86(0x33d)])==null||(_0x7aac04=_0x406440['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x7aac04['call'](_0x406440,_0x4d5a06);},_0x1fe21a;}async[_0x35f73b(0x29d)](){const _0x45fe54=_0x35f73b;let _0x59d692=await super[_0x45fe54(0x29d)]();return this[_0x45fe54(0x2fa)](this[_0x45fe54(0x234)][_0x45fe54(0x310)]((_0x26262a,_0xce3e2a)=>{const _0x3ff719=_0x45fe54;if(_0x26262a[_0x3ff719(0x2ec)]!==_0x37c8a8[_0x3ff719(0x261)]||_0xce3e2a!=null&&_0xce3e2a['fromCollab']||_0xce3e2a!=null&&_0xce3e2a['onlyLocal']||_0x26262a['id']===_0x2fd593['id'])return;let _0xeda99f=_0x26262a[_0x3ff719(0x3fc)];if((_0xeda99f==null?void 0x0:_0xeda99f[_0x3ff719(0x333)])!==this[_0x3ff719(0x285)])return;let _0x54472a=_0x26262a,_0x1cdf41=this[_0x3ff719(0x20f)][_0x3ff719(0x33e)][_0x3ff719(0x325)](this[_0x3ff719(0x20f)][_0x3ff719(0x33e)][_0x3ff719(0x2e8)]()[_0x3ff719(0x1b2)])([_0x54472a],this['_univerInstanceService'])||[_0x54472a];this[_0x3ff719(0x358)](_0x1cdf41[0x0]);})),_0x59d692;}};qt=z([R(0x3,_0x1b23c9(_0x2b692d)),R(0x4,_0x1b23c9(_0x781451)),R(0x5,_0x1b23c9(_0x2c19d0)),R(0x6,_0x1b23c9(_0x1ee4fd)),R(0x7,_0x1b23c9(L)),R(0x8,_0x599079),R(0x9,_0x3594cb),R(0xa,_0x5c3744),R(0xb,_0x5043f7),R(0xc,_0xbefc86(jt)),R(0xd,_0xbefc86(V))],qt);let Jt=class extends Kt{constructor(_0xfcd6ad,_0x28d5d5,_0x2803ec,_0x4f6853,_0x58e9b7,_0x76907e,_0x5c1e5f,_0xc97f7f,_0x16f36d,_0x21b252,_0x3b2fe9,_0x4c0fb7,_0x2cc7b1,_0x2dc022,_0x5d7d7f){const _0x492a88=_0x35f73b;super(_0xfcd6ad,_0x2803ec,_0x28d5d5,_0x4f6853,_0x58e9b7,_0x76907e,_0x5c1e5f,_0x16f36d,_0x21b252,_0x3b2fe9,_0x4c0fb7,_0x2cc7b1,_0x2dc022,_0x5d7d7f),this['unitID']=_0xfcd6ad,this[_0x492a88(0x2ec)]=_0x28d5d5,this[_0x492a88(0x27b)]=_0xc97f7f;}[_0x35f73b(0x2b9)](){const _0x1820da=_0x35f73b;let _0x2e60e6=super[_0x1820da(0x2b9)]();return _0x2e60e6[_0x1820da(0x3e9)]=_0x57c57c=>this['_sheetTransformSelectionsService'][_0x1820da(0x3dc)](_0x57c57c),_0x2e60e6;}async[_0x35f73b(0x29d)](){const _0x410c85=_0x35f73b;let _0x1dd0a5=await super[_0x410c85(0x29d)]();return this[_0x410c85(0x2fa)](this['_commandService'][_0x410c85(0x310)]((_0xeaa67c,_0x419372)=>{const _0x31b9cd=_0x410c85;if(_0xeaa67c['type']!==_0x37c8a8['MUTATION']||_0x419372!=null&&_0x419372[_0x31b9cd(0x24a)]||_0x419372!=null&&_0x419372[_0x31b9cd(0x229)])return;let _0x4b23e6=_0xeaa67c[_0x31b9cd(0x3fc)];if((_0x4b23e6==null?void 0x0:_0x4b23e6[_0x31b9cd(0x333)])!==this[_0x31b9cd(0x285)])return;let _0xb02d9=_0xeaa67c,_0x22761d=this[_0x31b9cd(0x20f)][_0x31b9cd(0x33e)][_0x31b9cd(0x325)](this[_0x31b9cd(0x20f)]['interceptor'][_0x31b9cd(0x2e8)]()[_0x31b9cd(0x1b2)])([_0xb02d9],this[_0x31b9cd(0x2db)])||[_0xb02d9];this[_0x31b9cd(0x358)](_0x22761d[0x0]);})),_0x1dd0a5;}};Jt=z([R(0x3,_0x1b23c9(_0x2b692d)),R(0x4,_0x1b23c9(_0x781451)),R(0x5,_0x1b23c9(_0x2c19d0)),R(0x6,_0x1b23c9(_0x1ee4fd)),R(0x7,_0x1b23c9(H)),R(0x8,_0x1b23c9(L)),R(0x9,_0x599079),R(0xa,_0x3594cb),R(0xb,_0x5c3744),R(0xc,_0x5043f7),R(0xd,_0xbefc86(jt)),R(0xe,_0xbefc86(V))],Jt);const Yt=_0x10bb42('univer-pro.collaboration-client.network-condition.service');function Xt(_0x17e1c0){const _0x1fa059=_0x35f73b;let _0x554a89=_0x17e1c0[_0x1fa059(0x3fe)],_0x254a23=JSON[_0x1fa059(0x1e9)](_0x554a89);switch(_0x254a23[_0x1fa059(0x32e)]){case _0x2e4f4e[_0x1fa059(0x1ef)]:case _0x2e4f4e[_0x1fa059(0x346)]:{let _0x147ba6=_0x254a23['infoRsp'];return{..._0x254a23,'data':_0x147ba6,'cmd':_0x254a23['cmd']};}case _0x2e4f4e[_0x1fa059(0x2f8)]:{let _0x1daed0=_0x254a23[_0x1fa059(0x1d7)];return{..._0x254a23,'data':_0x1daed0,'cmd':_0x254a23['cmd']};}case _0x2e4f4e['RECV']:{let _0x372b31=_0x254a23['collaMsg'];switch(_0x372b31['eventID']){case _0x576af5[_0x1fa059(0x3e3)]:var _0x3dfc4e;return{..._0x254a23,'data':{..._0x372b31,'data':(_0x3dfc4e=_0x372b31[_0x1fa059(0x28d)])==null?void 0x0:_0x3dfc4e['cs']},'cmd':_0x254a23['cmd']};case _0x576af5['CHANGESET_ACK']:var _0x1acea8;return{..._0x254a23,'data':{..._0x372b31,'data':(_0x1acea8=_0x372b31[_0x1fa059(0x3f0)])==null?void 0x0:_0x1acea8['cs']},'cmd':_0x254a23['cmd']};case _0x576af5[_0x1fa059(0x295)]:var _0x589819;return{..._0x254a23,'data':{..._0x372b31,'data':(_0x589819=_0x372b31[_0x1fa059(0x296)])==null?void 0x0:_0x589819['cs']},'cmd':_0x254a23['cmd']};case _0x576af5[_0x1fa059(0x28e)]:var _0x3fa497;return{..._0x254a23,'data':{..._0x372b31,'data':(_0x3fa497=_0x372b31['csRejEvent'])==null?void 0x0:_0x3fa497['cs']},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5[_0x1fa059(0x2c1)]:var _0x515d37;return{..._0x254a23,'data':{..._0x372b31,'data':(_0x515d37=_0x372b31['csShouldRetryEvent'])==null?void 0x0:_0x515d37['cs']},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5[_0x1fa059(0x2ba)]:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31[_0x1fa059(0x19d)]},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5[_0x1fa059(0x2d6)]:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31[_0x1fa059(0x219)]},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5['USERS_LEAVE']:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31[_0x1fa059(0x3a6)]},'cmd':_0x254a23['cmd']};case _0x576af5['LIVESHARE_NEW_HOST']:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31['liveShareNewHost']},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5[_0x1fa059(0x334)]:case _0x576af5['LIVESHARE_OPERATION']:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31[_0x1fa059(0x27c)]},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5['LIVESHARE_TERMINATE']:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31[_0x1fa059(0x3e0)]},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5[_0x1fa059(0x33b)]:return{..._0x254a23,'data':_0x372b31,'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5['COMMENT_UPDATE']:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31[_0x1fa059(0x329)]},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5[_0x1fa059(0x1f9)]:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31[_0x1fa059(0x2c2)]},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5[_0x1fa059(0x3e6)]:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31['shouldCloseConn']},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5[_0x1fa059(0x2a7)]:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31[_0x1fa059(0x294)]},'cmd':_0x254a23[_0x1fa059(0x32e)]};default:return _0x254a23;}}default:return _0x254a23;}}function Zt(_0x68b07b){const _0xe21b41=_0x35f73b;switch(_0x68b07b[_0xe21b41(0x32e)]){case _0x2e4f4e[_0xe21b41(0x1ef)]:case _0x2e4f4e['HELLO']:return JSON['stringify']({'cmd':_0x68b07b['cmd'],'routeKey':_0x68b07b['routeKey']});case _0x2e4f4e[_0xe21b41(0x36a)]:{let _0x28ed28;switch(_0x68b07b[_0xe21b41(0x3fe)][_0xe21b41(0x263)]){case _0x576af5[_0xe21b41(0x2ba)]:_0x28ed28={'eventID':_0x576af5[_0xe21b41(0x2ba)],'updateCursorEvent':_0x68b07b['data']['data']};break;case _0x576af5[_0xe21b41(0x356)]:_0x28ed28={'eventID':_0x576af5['USERS_LEAVE'],'leaveEvent':_0x68b07b[_0xe21b41(0x3fe)][_0xe21b41(0x3fe)]};break;case _0x576af5['USERS_ENTER']:_0x28ed28={'eventID':_0x576af5[_0xe21b41(0x2d6)],'joinEvent':_0x68b07b[_0xe21b41(0x3fe)]['data']};break;case _0x576af5[_0xe21b41(0x3b5)]:_0x28ed28={'eventID':_0x576af5['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x68b07b[_0xe21b41(0x3fe)][_0xe21b41(0x3fe)]};break;case _0x576af5[_0xe21b41(0x211)]:_0x28ed28={'eventID':_0x576af5[_0xe21b41(0x211)],'liveShareOperation':_0x68b07b[_0xe21b41(0x3fe)][_0xe21b41(0x3fe)]};break;case _0x576af5['LIVESHARE_TERMINATE']:_0x28ed28={'eventID':_0x576af5[_0xe21b41(0x1c7)],'liveShareTerminate':_0x68b07b[_0xe21b41(0x3fe)]['data']};break;case _0x576af5[_0xe21b41(0x395)]:_0x28ed28={'eventID':_0x576af5[_0xe21b41(0x395)],'liveShareRequestHost':_0x68b07b[_0xe21b41(0x3fe)][_0xe21b41(0x3fe)]};break;case _0x576af5[_0xe21b41(0x334)]:_0x28ed28={'eventID':_0x576af5[_0xe21b41(0x334)]};break;default:_0x28ed28={'eventID':_0x68b07b[_0xe21b41(0x3fe)][_0xe21b41(0x263)]};}return JSON['stringify']({'cmd':_0x68b07b[_0xe21b41(0x32e)],'routeKey':_0x68b07b[_0xe21b41(0x25a)],'collaMsg':_0x28ed28});}case _0x2e4f4e[_0xe21b41(0x2f8)]:return JSON[_0xe21b41(0x284)]({'cmd':_0x68b07b[_0xe21b41(0x32e)],'routeKey':_0x68b07b[_0xe21b41(0x25a)],'joinReq':_0x68b07b[_0xe21b41(0x3fe)]});case _0x2e4f4e[_0xe21b41(0x38b)]:return JSON['stringify']({'cmd':_0x68b07b['cmd'],'routeKey':_0x68b07b[_0xe21b41(0x25a)],'leaveReq':_0x68b07b[_0xe21b41(0x3fe)]});default:throw Error(_0xe21b41(0x3e2));}}const Qt=_0x10bb42(_0x35f73b(0x262));function $t(_0x84073e,_0x1e1bbc,_0x31c24b){const _0x2f4719=_0x35f73b;return _0x84073e+'/'+_0x1e1bbc+_0x2f4719(0x2de)+_0x31c24b+_0x2f4719(0x3c1);}function _0x3c29(_0x206ffe,_0x4b70b2){_0x206ffe=_0x206ffe-0x193;const _0x1ebdd4=_0x1ebd();let _0x3c2938=_0x1ebdd4[_0x206ffe];return _0x3c2938;}let en=class extends _0x1fae62{constructor(_0x3bbe21,_0x599fe4,_0x43cb9d,_0x2b9ec2,_0x1bc2b5){const _0x2f68d3=_0x35f73b;super(),this[_0x2f68d3(0x1c1)]=_0x3bbe21,this[_0x2f68d3(0x317)]=_0x599fe4,this[_0x2f68d3(0x21c)]=_0x43cb9d,this[_0x2f68d3(0x3f8)]=_0x2b9ec2,this[_0x2f68d3(0x255)]=_0x1bc2b5;}['_doCreateSocket'](_0x2b2409){const _0x16ad9a=_0x35f73b;let _0x3371bc=this[_0x16ad9a(0x1c1)][_0x16ad9a(0x2a9)](_0x19825e);if(!_0x3371bc)throw Error(_0x16ad9a(0x27e));let _0x19f6f5=_0x3371bc[_0x16ad9a(0x359)](_0x2b2409);if(!_0x19f6f5)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x32e8c9=new _0xd013fe(),_0x30c9c8=new _0x34cf84();_0x32e8c9[_0x16ad9a(0x364)](_0x19f6f5['close$']['subscribe'](_0x1aca55=>_0x30c9c8['next'](_0x1aca55))),_0x32e8c9[_0x16ad9a(0x364)](_0x2f6814(()=>_0x30c9c8[_0x16ad9a(0x25f)]()));let _0x1eca5b=new _0x34cf84();_0x32e8c9['add'](_0x19f6f5[_0x16ad9a(0x2f5)][_0x16ad9a(0x1f4)](_0x2bdb63=>_0x1eca5b[_0x16ad9a(0x3f6)](_0x2bdb63))),_0x32e8c9['add'](_0x2f6814(()=>_0x1eca5b[_0x16ad9a(0x25f)]()));let _0x44c10e=new _0x34cf84();_0x32e8c9[_0x16ad9a(0x364)](_0x19f6f5[_0x16ad9a(0x1a8)][_0x16ad9a(0x1f4)](_0x31ba49=>{const _0x3c6f75=_0x16ad9a;let _0x23206c=Xt(_0x31ba49);_0x44c10e[_0x3c6f75(0x3f6)](_0x23206c);})),_0x32e8c9[_0x16ad9a(0x364)](_0x2f6814(()=>_0x44c10e[_0x16ad9a(0x25f)]()));let _0x41edc1,_0x202558=()=>{const _0x5e4028=_0x16ad9a;_0x1eca5b[_0x5e4028(0x3f6)](new Event('connection\x20error')),_0x30c9c8[_0x5e4028(0x3f6)](new Event(_0x5e4028(0x19e))),_0x41edc1[_0x5e4028(0x383)]();};return _0x41edc1={'memberID':'','close$':_0x30c9c8[_0x16ad9a(0x3ac)](),'error$':_0x1eca5b['asObservable'](),'open$':_0x19f6f5[_0x16ad9a(0x1ea)],'message$':_0x44c10e[_0x16ad9a(0x3ac)](),'send':_0x1c00d7=>{const _0x35d921=_0x16ad9a;if(_0x1c00d7[_0x35d921(0x32e)]===_0x2e4f4e[_0x35d921(0x36a)]){if(_0x1c00d7[_0x35d921(0x3fe)][_0x35d921(0x263)]===_0x576af5['SUBMIT_CHANGESET']){this[_0x35d921(0x313)](_0x41edc1,_0x1c00d7[_0x35d921(0x3fe)])[_0x35d921(0x1eb)](_0x18d5c2=>{const _0x31054d=_0x35d921;this[_0x31054d(0x3f8)]['error'](_0x18d5c2),_0x202558();});return;}if(_0x1c00d7[_0x35d921(0x3fe)][_0x35d921(0x263)]===_0x576af5[_0x35d921(0x2a8)]){let _0x2ab4c3=_0x1c00d7[_0x35d921(0x3fe)];this[_0x35d921(0x36c)](_0x2ab4c3)['then'](_0x1c3bd6=>{const _0x4a41fd=_0x35d921;_0x44c10e[_0x4a41fd(0x3f6)]({'cmd':_0x2e4f4e[_0x4a41fd(0x20e)],'code':_0x2989c5['OK'],'routeKey':_0x2ab4c3[_0x4a41fd(0x3fe)][_0x4a41fd(0x285)],'routeType':'','data':{'eventID':_0x576af5['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x1c3bd6}}});})[_0x35d921(0x1eb)](_0x2da999=>{this['_logService']['error'](_0x2da999),_0x202558();});return;}}_0x19f6f5[_0x35d921(0x2a0)](Zt(_0x1c00d7));},'close':()=>{const _0x4a9878=_0x16ad9a;_0x19f6f5[_0x4a9878(0x383)](),_0x32e8c9['dispose']();}},_0x41edc1;}async[_0x35f73b(0x313)](_0x19fbaa,_0x4dfe7f){const _0x26f786=_0x35f73b;var _0x4ea01f;let {unitType:_0x297d80,unitID:_0x1311e8,changeset:_0x1c8a2d}=_0x4dfe7f['data'],_0x2cbd6a={'unitID':_0x1311e8,'memberID':_0x19fbaa['memberID'],'type':_0x297d80,'changeset':_0x45be51(_0x1c8a2d)},_0x18ca7f=this[_0x26f786(0x21c)][_0x26f786(0x2fb)](U),_0x1c8ed4=$t((_0x4ea01f=_0x18ca7f==null?void 0x0:_0x18ca7f[_0x26f786(0x199)])==null?_0x26f786(0x29b):_0x4ea01f,_0x297d80,_0x1311e8);try{await this[_0x26f786(0x317)][_0x26f786(0x1b7)](_0x1c8ed4,{'body':_0x2cbd6a});}catch(_0xb0b6aa){throw this['_logService']['error'](_0x26f786(0x1cb),'submit\x20changeset\x20error!'),_0xb0b6aa;}}async[_0x35f73b(0x36c)](_0x1d8785){const _0xb92b16=_0x35f73b;let {unitID:_0x48381e,from:_0x244881,to:_0x4194c3,unitType:_0x146d95}=_0x1d8785[_0xb92b16(0x3fe)];return(await this[_0xb92b16(0x255)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x48381e,'type':_0x146d95,'from':_0x244881,'to':_0x4194c3}))[_0xb92b16(0x26e)][_0xb92b16(0x323)](_0x824cbf=>((_0x824cbf[_0xb92b16(0x391)]===null||_0x824cbf[_0xb92b16(0x391)]===void 0x0)&&(_0x824cbf[_0xb92b16(0x391)]=[]),_0x824cbf));}};en=z([R(0x0,_0x1b23c9(_0x2b692d)),R(0x1,_0x1b23c9(_0x470bb9)),R(0x2,_0x160dc0),R(0x3,_0x3594cb),R(0x4,_0x3af6ca)],en);let Q=class extends _0x1fae62{get[_0x35f73b(0x1ca)](){return this['_socket$']['getValue']();}constructor(_0x5b11a7,_0x46a548,_0x3f894e,_0x515068,_0x4f43d5,_0xc2e49b){const _0xd5e749=_0x35f73b;super(),this[_0xd5e749(0x1c1)]=_0x5b11a7,this[_0xd5e749(0x3f8)]=_0x46a548,this['_configService']=_0x3f894e,this[_0xd5e749(0x2f9)]=_0x515068,this['_collaborationUIEventService']=_0x4f43d5,this[_0xd5e749(0x1b0)]=_0xc2e49b,I(this,_0xd5e749(0x368),new _0x10ace7(void 0x0)),I(this,_0xd5e749(0x293),this[_0xd5e749(0x368)][_0xd5e749(0x3ac)]()),I(this,_0xd5e749(0x370),null),I(this,_0xd5e749(0x1bf),new Map()),I(this,_0xd5e749(0x24f),new _0x10ace7(0x0)),I(this,_0xd5e749(0x32b),this[_0xd5e749(0x24f)][_0xd5e749(0x3ac)]()),I(this,_0xd5e749(0x228),!0x1),I(this,_0xd5e749(0x3ed),void 0x0),I(this,_0xd5e749(0x213),0x0),I(this,'_socketMessageSubscription',null),I(this,_0xd5e749(0x2ad),void 0x0),I(this,_0xd5e749(0x397),void 0x0),this[_0xd5e749(0x3d9)]();}[_0x35f73b(0x3d9)](){const _0x593d8d=_0x35f73b;this[_0x593d8d(0x1b0)]&&this[_0x593d8d(0x2fa)](this[_0x593d8d(0x1b0)][_0x593d8d(0x205)][_0x593d8d(0x1f4)](_0x8cf708=>{const _0x16ba0a=_0x593d8d;_0x8cf708&&!this[_0x16ba0a(0x1ca)]&&this['reconnect'](),_0x8cf708||this[_0x16ba0a(0x1d1)]();}));}[_0x35f73b(0x303)](){const _0x42cc32=_0x35f73b;var _0x244401;super['dispose'](),(_0x244401=this[_0x42cc32(0x277)])==null||_0x244401[_0x42cc32(0x2bc)](),this[_0x42cc32(0x277)]=null,this['_clearRetryConnectingTimer'](),this[_0x42cc32(0x1a7)](),this[_0x42cc32(0x230)](),this[_0x42cc32(0x1bf)][_0x42cc32(0x2c9)](_0x4f50d2=>_0x4f50d2[_0x42cc32(0x303)]()),this['_sessions'][_0x42cc32(0x202)](),this[_0x42cc32(0x24f)]['complete']();}async['requireSession'](_0x4108d1){const _0x1ed48e=_0x35f73b;if(this['_sessions']['has'](_0x4108d1))return this[_0x1ed48e(0x1bf)][_0x1ed48e(0x2a9)](_0x4108d1);this[_0x1ed48e(0x1f6)]();let _0x12ca98=this['_injector'][_0x1ed48e(0x2d1)](Ot,_0x4108d1,this['_socket$'][_0x1ed48e(0x3ac)]());return this[_0x1ed48e(0x1bf)][_0x1ed48e(0x2d4)](_0x4108d1,_0x12ca98),_0x12ca98;}['closeSession'](_0x511f32){const _0x1f884a=_0x35f73b;let _0x47079f=this[_0x1f884a(0x1bf)][_0x1f884a(0x2a9)](_0x511f32);if(_0x47079f&&(this[_0x1f884a(0x1bf)]['delete'](_0x511f32),_0x47079f[_0x1f884a(0x383)]()),!this[_0x1f884a(0x1bf)][_0x1f884a(0x3d7)]){var _0x7c3f11;(_0x7c3f11=this['_socket'])==null||_0x7c3f11[_0x1f884a(0x383)]();}}['reconnect'](){const _0xcaab3a=_0x35f73b;this[_0xcaab3a(0x213)]=0x0,this[_0xcaab3a(0x201)](),this[_0xcaab3a(0x2b7)]();}[_0x35f73b(0x201)](){const _0x14ff99=_0x35f73b;this[_0x14ff99(0x3ed)]!=null&&(clearTimeout(this[_0x14ff99(0x3ed)]),this[_0x14ff99(0x3ed)]=null);}async['_createSocket'](){const _0x3d7835=_0x35f73b;var _0x5f4bdf;let _0x441f80=this[_0x3d7835(0x21c)]['getConfig'](U),_0x508d1b=(_0x5f4bdf=_0x441f80==null?void 0x0:_0x441f80['collabWebSocketUrl'])==null?ut:_0x5f4bdf,_0x54bde4=await this[_0x3d7835(0x2f9)]['createSocket'](_0x508d1b);return this[_0x3d7835(0x370)]=_0x54bde4,_0x54bde4;}async[_0x35f73b(0x1f6)](){const _0x4c83fe=_0x35f73b;try{var _0x5b2e88,_0xca49d;let _0x1a7094=(_0x5b2e88=(_0xca49d=this[_0x4c83fe(0x1ca)])==null?this[_0x4c83fe(0x370)]:_0xca49d)==null?await this['_createSocket']():_0x5b2e88;if(_0x1a7094){var _0x1aa407;let _0x4ade1c=_0x1a7094[_0x4c83fe(0x2a0)];_0x1a7094['send']=_0x374724=>(_0x374724['cmd']!==_0x2e4f4e[_0x4c83fe(0x38b)]&&this['_rescheduleHeartbeat'](),_0x4ade1c['apply'](_0x1a7094,[_0x374724])),(_0x1aa407=this[_0x4c83fe(0x277)])==null||_0x1aa407[_0x4c83fe(0x2bc)](),this[_0x4c83fe(0x277)]=null,this[_0x4c83fe(0x277)]=_0x1a7094[_0x4c83fe(0x1a8)][_0x4c83fe(0x1f4)](_0x249394=>this[_0x4c83fe(0x318)](_0x1a7094,_0x249394)),_0x1a7094['error$'][_0x4c83fe(0x289)](_0x67a39f(0x1))[_0x4c83fe(0x1f4)](_0x3f0010=>this['_logService'][_0x4c83fe(0x3ba)](_0x4c83fe(0x286),_0x3f0010)),_0x1a7094[_0x4c83fe(0x1ea)][_0x4c83fe(0x289)](_0x67a39f(0x1))['subscribe'](()=>{const _0x1aaa70=_0x4c83fe;this[_0x1aaa70(0x311)](_0x1a7094);}),_0x1a7094[_0x4c83fe(0x377)][_0x4c83fe(0x289)](_0x67a39f(0x1))[_0x4c83fe(0x1f4)](_0x151602=>{const _0x1f311a=_0x4c83fe;this['_logService'][_0x1f311a(0x39c)](_0x1f311a(0x3f5),_0x1f311a(0x243),_0x151602),this[_0x1f311a(0x2cc)]();});}}catch(_0x38f618){this[_0x4c83fe(0x3f8)][_0x4c83fe(0x3ba)](_0x38f618),this[_0x4c83fe(0x2cc)]();}}[_0x35f73b(0x311)](_0x3fe7e4){const _0x9ae918=_0x35f73b;this[_0x9ae918(0x3f8)][_0x9ae918(0x39c)]('[CollaborationSessionService]',_0x9ae918(0x336)),_0x3fe7e4[_0x9ae918(0x2a0)]({'cmd':_0x2e4f4e[_0x9ae918(0x346)]}),this['_rescheduleHeartbeat']();}['_onOffline'](){const _0x2dd036=_0x35f73b;this[_0x2dd036(0x228)]=!0x1,this[_0x2dd036(0x370)]=null,this[_0x2dd036(0x24f)][_0x2dd036(0x3f6)](0x2),this[_0x2dd036(0x368)]['next'](null),this[_0x2dd036(0x1a7)](),this[_0x2dd036(0x230)]();}['_onConnectionFailed'](){const _0x964527=_0x35f73b;var _0x3e5be0;this['_onOffline'](),this[_0x964527(0x213)]<((_0x3e5be0=this[_0x964527(0x21c)]['getConfig'](_0x964527(0x2e3)))==null?0x3:_0x3e5be0)?(this[_0x964527(0x2bf)][_0x964527(0x374)]({'id':_0x964527(0x26f)}),this[_0x964527(0x2b7)]()):this[_0x964527(0x2bf)][_0x964527(0x374)]({'id':'SOCKET_FAILED'});}[_0x35f73b(0x2b7)](){const _0x283166=_0x35f73b;var _0x45579e;let _0x36cb9a=this['_retryCount'],_0x243eb=this[_0x283166(0x21c)]['getConfig'](U),_0x317fe2=_0x36cb9a===0x0?0x0:((_0x45579e=_0x243eb==null?void 0x0:_0x243eb[_0x283166(0x394)])==null?0x4e20:_0x45579e)*0x2**_0x36cb9a;this[_0x283166(0x3ed)]=setTimeout(()=>{const _0x5c692f=_0x283166;clearTimeout(this[_0x5c692f(0x3ed)]),this[_0x5c692f(0x3ed)]=null,this[_0x5c692f(0x1f6)]();},_0x317fe2),this[_0x283166(0x213)]+=0x1;}[_0x35f73b(0x318)](_0xca9eaa,_0x69fcb1){const _0x41ee3f=_0x35f73b;let {cmd:_0x248b6e}=_0x69fcb1;_0x248b6e===_0x2e4f4e[_0x41ee3f(0x346)]&&!this[_0x41ee3f(0x228)]&&(_0xca9eaa['memberID']=_0x69fcb1[_0x41ee3f(0x3fe)][_0x41ee3f(0x232)],this[_0x41ee3f(0x368)][_0x41ee3f(0x3f6)](_0xca9eaa),this[_0x41ee3f(0x24f)][_0x41ee3f(0x3f6)](0x3),this[_0x41ee3f(0x228)]=!0x0,this[_0x41ee3f(0x370)]=null),_0x248b6e===_0x2e4f4e[_0x41ee3f(0x1ef)]&&this['_clearTimeoutTimer'](),this[_0x41ee3f(0x3b3)]();}[_0x35f73b(0x3b3)](){const _0x464928=_0x35f73b;var _0x1821eb;this[_0x464928(0x230)](),this[_0x464928(0x2ad)]=setTimeout(()=>this[_0x464928(0x224)](),(_0x1821eb=this[_0x464928(0x21c)][_0x464928(0x2fb)](_0x464928(0x249)))==null?0x7530:_0x1821eb);}['_sendHeartbeat'](){const _0x1b0987=_0x35f73b;this[_0x1b0987(0x1ca)][_0x1b0987(0x2a0)]({'cmd':_0x2e4f4e[_0x1b0987(0x1ef)]}),this[_0x1b0987(0x208)]();}[_0x35f73b(0x208)](){const _0x369fac=_0x35f73b;var _0x11b00c;this['_timeoutTimer']=setTimeout(()=>this[_0x369fac(0x2cc)](),(_0x11b00c=this[_0x369fac(0x21c)][_0x369fac(0x2fb)](_0x369fac(0x376)))==null?mt:_0x11b00c);}[_0x35f73b(0x230)](){const _0x4139b9=_0x35f73b;this[_0x4139b9(0x2ad)]!=null&&(clearTimeout(this[_0x4139b9(0x2ad)]),this[_0x4139b9(0x2ad)]=null);}['_clearTimeoutTimer'](){const _0x41d246=_0x35f73b;this[_0x41d246(0x397)]!=null&&(clearTimeout(this[_0x41d246(0x397)]),this[_0x41d246(0x397)]=null);}};Q=z([R(0x0,_0x1b23c9(_0x2b692d)),R(0x1,_0x3594cb),R(0x2,_0x160dc0),R(0x3,Qt),R(0x4,_0x1b23c9(L)),R(0x5,_0xbefc86(Yt))],Q);let tn=class extends _0x495984{constructor(_0x23e3b4,_0x4cb4a1,_0x303cf7,_0x703e3f){const _0x3c891f=_0x35f73b;var _0x2f5b21;super(),this['_injector']=_0x23e3b4,this[_0x3c891f(0x3e8)]=_0x4cb4a1,this[_0x3c891f(0x21c)]=_0x303cf7,this[_0x3c891f(0x2db)]=_0x703e3f,I(this,_0x3c891f(0x1b3),new Map()),I(this,'_entityInit$',new _0x34cf84()),I(this,_0x3c891f(0x23d),this[_0x3c891f(0x330)][_0x3c891f(0x3ac)]()),((_0x2f5b21=this['_configService'][_0x3c891f(0x2fb)](_0x3c891f(0x2dc)))==null?void 0x0:_0x2f5b21[_0x3c891f(0x3d3)])!==!0x1&&this[_0x3c891f(0x29d)]();}[_0x35f73b(0x303)](){const _0x5a6275=_0x35f73b;super[_0x5a6275(0x303)](),this[_0x5a6275(0x1b3)]['forEach'](_0x525f61=>_0x525f61[_0x5a6275(0x303)]()),this['_entities'][_0x5a6275(0x202)]();}['getCollabEntity'](_0x457eab){const _0x30ead9=_0x35f73b;var _0x416ef6;return(_0x416ef6=this[_0x30ead9(0x1b3)]['get'](_0x457eab))==null?null:_0x416ef6;}[_0x35f73b(0x215)](_0x15b4e0){const _0x34d927=_0x35f73b;let _0x236aba=this[_0x34d927(0x3b6)](_0x15b4e0);return _0x236aba?_0x58d9e6(_0x236aba):this[_0x34d927(0x330)][_0x34d927(0x289)](_0xb3f571(_0x1b80e6=>_0x1b80e6[_0x34d927(0x285)]===_0x15b4e0));}[_0x35f73b(0x3eb)](_0x24ed2c){const _0x331aa2=_0x35f73b;return _0x5e846a(this[_0x331aa2(0x215)](_0x24ed2c)['pipe'](_0xcf55(()=>void 0x0)));}[_0x35f73b(0x29d)](){const _0x251598=_0x35f73b;this[_0x251598(0x2db)]['getTypeOfUnitAdded$'](_0x57ec00[_0x251598(0x3b1)])[_0x251598(0x289)](_0x1aedcb(this[_0x251598(0x3f7)]),_0x46e5c3(0x10))[_0x251598(0x1f4)](async _0x585bb4=>{const _0x56e7f9=_0x251598;let _0x446396=_0x585bb4[_0x56e7f9(0x196)][_0x56e7f9(0x1b9)](),_0x31441f=await this[_0x56e7f9(0x328)](_0x446396,_0x57ec00[_0x56e7f9(0x3b1)]);this[_0x56e7f9(0x1b3)]['set'](_0x446396,_0x31441f);}),this[_0x251598(0x2db)][_0x251598(0x316)](_0x57ec00[_0x251598(0x32a)])['pipe'](_0x1aedcb(this['dispose$']),_0x46e5c3(0x10))['pipe'](_0xb3f571(_0x5d08c0=>!_0x5d08c0[_0x251598(0x196)]['getUnitId']()['startsWith']('__')))[_0x251598(0x1f4)](async _0x194d5d=>{const _0x1c3d8c=_0x251598;let _0x359323=_0x194d5d['unit'][_0x1c3d8c(0x1b9)](),_0x4239a0=await this[_0x1c3d8c(0x328)](_0x359323,_0x57ec00[_0x1c3d8c(0x32a)]);this[_0x1c3d8c(0x1b3)][_0x1c3d8c(0x2d4)](_0x359323,_0x4239a0);}),_0x34bad6(this[_0x251598(0x2db)][_0x251598(0x25d)](_0x57ec00['UNIVER_SHEET']),this[_0x251598(0x2db)]['getTypeOfUnitDisposed$'](_0x57ec00[_0x251598(0x32a)]))[_0x251598(0x289)](_0x1aedcb(this[_0x251598(0x3f7)]))['subscribe'](_0x68f984=>{const _0x57465e=_0x251598;let _0x4fa64e=_0x68f984[_0x57465e(0x1b9)](),_0x2cfa3f=this[_0x57465e(0x1b3)][_0x57465e(0x2a9)](_0x4fa64e);_0x2cfa3f&&(_0x2cfa3f[_0x57465e(0x303)](),this[_0x57465e(0x1b3)][_0x57465e(0x38c)](_0x4fa64e));});}async['_startCollaboration'](_0x1badeb,_0x353833){const _0x19c8b6=_0x35f73b;let _0x3c144a=await this[_0x19c8b6(0x3e8)][_0x19c8b6(0x1bd)](_0x1badeb),_0x482d2f=this[_0x19c8b6(0x1c1)]['createInstance'](this[_0x19c8b6(0x3dd)](_0x353833),_0x1badeb,_0x353833,_0x3c144a);return await _0x482d2f[_0x19c8b6(0x2df)](),this['_entityInit$'][_0x19c8b6(0x3f6)](_0x482d2f),_0x482d2f;}[_0x35f73b(0x3dd)](_0x2aecb9){const _0x19b058=_0x35f73b;switch(_0x2aecb9){case _0x57ec00[_0x19b058(0x32a)]:return qt;case _0x57ec00[_0x19b058(0x3b1)]:return Jt;default:throw Error(_0x19b058(0x37e)+_0x2aecb9);}}};tn=z([R(0x0,_0x1b23c9(_0x2b692d)),R(0x1,_0x1b23c9(Q)),R(0x2,_0x160dc0),R(0x3,_0x599079)],tn);function _0x1ebd(){const _0x416d4f=['ONLINE','768985KCuVTO','status','_clearScheduledTask','_snapshotServerService','_clearRedo','awaitingChangeset','_initMergeInterceptor','onMissingChangesets','routeKey','_initCloseConn','string','getTypeOfUnitDisposed$','onTransformState','complete','saveChangeset','MUTATION','univer-pro.collaboration-client-socket-service','eventID','c2Prime','result','onRemoteRej','_transformSelections','onSendChangeset','_clearCollaborationTimeoutTimer','reqId','_localeService','toPrimitive','__splitChunk__','changesets','SOCKET_FAILED_RETRY','localCacheService','_roomCreated$','_updateState','&assign=','\x20-\x20','transformChangesets','onStarting','_socketMessageSubscription','method','c1Prime','location','_sheetTransformSelectionsService','liveShareOperation','originalMeta','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','members','_getSendChangesetTimeout','_collaborationSessionService','_resendTimeout','/fetchmissing?from=','stringify','unitID','[CollaborationSessionService]:\x20socket\x20error','getSnapshotAPIPath','SUBMIT_CHANGESET','pipe','_event$','subUnitId','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','permissionRejEvent','CHANGESET_REJ','_getSignURL','/-/object/-/batch_allowed','_disableEditing','getCfgEnableObjInherit','socket$','uniscriptRunEvent','NEW_CHANGESETS','newCsEvent','_throwTelemetryCollaborationNewChangeset','object','onLocalMutation','UUID','/universer-api/comb','copyFileMeta','_init','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_eventService','send','_lockTransition','href','_sessionStatus$','CONFLICT','code','DEFAULT_FILE_NAME','UNISCRIPT_RUN','FETCH_MISSING','get','listRoles','executeCommand','_onRecvEvent','_sendHeartbeatTimer','disableLocalCache','_maxTotalRetryTimeout','max','_incrementRevisionNumber','1949906KETQBQ','_undoRedoService','getTime','/universer-api/authz','_toggleOffline','_tryReconnect','203444GLMGNs','_createHandler','UPDATE_CURSOR','iterator','unsubscribe','auth.needGotoLoginAlert','_createInitialStateImpl','_collaborationUIEventService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','CHANGESET_SHOULD_RETRY','updatePermissionObjEvent','_checkMissing','252zJXcHw','5774ejZOMZ','onRemoteAck','IDLE','onMissedChangesetFetched','forEach','SNAPSHOT_URL_KEY','_handleRemoteChangesets','_onConnectionFailed','not_collab','findIndex','setCurrentUser','onTransformRemoteChangesetByStateCache','createInstance','PSEUDO_FETCH_MISSING_RESULT','updateOfflineData','set','_commentUpdate$','USERS_ENTER','/universer-api/user/session-ticket','_getCurrentRevision','fromCharCode','members$','_univerInstanceService','collaboration-client.config','encrypt','/unit/','init','_userManagerService','offline','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','RETRY_CONNECTING_MAX_COUNT','_awaitingChangeset','_onRemoteChangeset','m2Prime','\x0aAfter:\x20','getInterceptPoints','isPermissionRej','/universer-api/stream/file/upload','_state','type','_getRedoStack','SUBMIT_CHANGESET_TIMEOUT','refreshPermission','LOCAL_CACHE_INTERVAL','unknown','reverse','saveSnapshot','append','error$','&to=','enableOfflineEditing','JOIN','_socketService','disposeWithMe','getConfig','_memberService','editing\x20status\x20changed\x20to','reduce','getImageSourceCache','_onJoinRoomEvent','_telemetryService','3SkJUtA','dispose','objectType','setConfig','_clearUndo','UNIVER_COLLABORATION_CLIENT_PLUGIN','session.room-full','_acknowledgedAwaitingRevision','OFFLINE','collaboration-client.local-cache-service','/universer-api/file/{fileID}/sign-url','incrementRevOfUnit','_localCacheService','_transformStack','onMutationExecutedForCollab','_onConnectionOpen','version','_submitChangeset','updateSnapshot','uploadFileServerUrl','getTypeOfUnitAdded$','_httpService','_onMessage','revision','call','listCollaborators','onload','body','?url=','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_HTTPService','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','roles','map','NO_OTHER_CLIENTS_EDITING','fetchThroughInterceptors','\x20to\x20','_unlockTransition','_startCollaboration','commentUpdateEvent','UNIVER_DOC','status$','getSheetBlock','[CollaborationEntity]','cmd','[OfflineState]:\x20received\x20changeset.','_entityInit$','charCodeAt','cfgEnableObjInherit','unitId','LIVESHARE_FETCH_OPERATIONS','sheets','socket\x20open.','_getDownloadEndpointURL','every','_isEchoedAwaitingChangeset','/block/','MSG_FOR_ERROR','setShowComponents','_handlerCallback','interceptor','getOwnPropertyDescriptor','_sender','synced','find','605240vvSBgt','_acknowledgeAwaitingIfReady','ws://127.0.0.1:8000/universer-api/comb/connect','HELLO','_unitID','_updateLocalCache','_substituteUndoStack','onRemoteRetry','range','JOIN_ROOM_FAILED','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','createCollaborator','BASE64','Error\x20on\x20receiving\x20event','_onRemoteACK','saveImage','url','getImage','SOCKET_FAILED','USERS_LEAVE','_toggleOnline','_onLocalMutation','createSocket','getMember','telemetry\x20info\x20is\x20not\x20initialized','_joinRoom','socketService','session.room-permission-denied','encode','0.24.0','appendMutation','_onCombEvent','__Key__','add','removeMember','_revisionService','_handler','_socket$','_telemetryInfo','INGEST','enableAuthServer','_fetchMissChangesets','_roomMembers','loadOfflineData','_transformAndApplyRemoteChangeset','_candidateSocket','/collaborator','[UniverCollaborationClientPlugin]','/object/','emitEvent','decorate','HEARTBEAT_TIMEOUT','close$','hostname','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','waitForRoom$','length','OTHER_CLIENT_EDITING','resourceIDs','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getResourcesRequest','push','[PendingState]:\x20received\x20acknowledgement.','objectActions','close','AWAITING','stopTime','_createInitialState','People','ERROR_IMAGE_TYPE','NOT_COLLAB','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','LEAVE','delete','_members$','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','update','toggleOffline','mutations','_substituteRedoStack','_pendingMutations','retryConnectingInterval','LIVESHARE_REQUEST_HOST','_getLoginPath','_timeoutTimer','change$','ERROR_IMAGE','PERMISSION_DENIED','getAllMembers','debug','_waitCount','event$','default','ERROR_EXCEED_SIZE','FAIL','_applyRemoteChangeset','PENDING','enableSingleActiveInstanceLock','slice','leaveEvent','objects','allowed','_transformUndoredo','_permissionService','collaboratorID','asObservable','getFocusedUnit','fetching\x20missing\x20changesets\x20from\x20','_remoteChangesetQueue','textRanges','UNIVER_SHEET','_state$','_rescheduleHeartbeat','objectID','LIVESHARE_NEW_HOST','getCollabEntity','updateCollaborator','_initRequestHeader','getMemberID','error','_initDependencies','session.room-cnt-exceeds','sessionStatus','/universer-api/uniscript','POST','responseType','/new_changes','_transformService','_onUserLeave','headers','_collaborationPaused','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','list','_getUploadFileURL','loadUnitOfRevision','loadSheet','_cfgEnableObjInherit','_getUndoStack','_registerDependencies','_scheduleCollaborationTimeoutTimer','transformUndoRedo','missingChangesets','getSheetId','updatePermissionPoint','enableCollaboration','_exhaustRemoteChangesetQueue','CHANGESET_ACK','?size=','size','put','_listenToNetworkCondition','_syncEditingCollabCursor','override','transformSelections','_getCtorByUniverInstanceType','_transformRemoteChangesetByStateCache','title','liveShareNewHost','onCommentUpdate','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','PERMISSION_REJ','_replayCachedMutations','_onRemoteRejected','SHOULD_CLOSE_CONN','/allowed','_collabSessionService','onTransformSelections','_decreaseWaiting','readyForCollab','toggleOnline','_retryConnectingTimer','deepClone','conflict','csAckEvent','_onUserJoin','_changesetSessionId','session.join-failed','now','[CollaborationSessionService]','next','dispose$','_logService','initWorkbookPermissionChange','[DataLoaderService]','onRemoteChangeset','params','_scheduleCompleteTimestamp','data','awaiting','_imageSourceCache','addImageSourceCache','unit','\x0aCurrent:\x20','defineProperty','collabSubmitChangesetUrl','\x20in\x20_schedule.','_instanceService','[OfflineState]:\x20received\x20rejection.','updateCursorEvent','connection\x20error','_sendingTimer','_type','_transformRemoteChangesetByIMECache','/universer-api/snapshot','_transformStateCache','min','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','actions','_clearTimeoutTimer','message$','_queuedRemoteChangesets','file','[CollaborationState]:\x20apply\x20error!','FileId','_executeRemoteChangeset','JOINING','_onRemoteRetry','_networkConditionService','getValue','COMPRESS_MUTATION_SEND','_entities','userID','_acknowledgeAwaiting','session','post','_schedule','getUnitId','symbol','compose','has','requireSession','isArray','_sessions','collaborators','_injector','COMMENT_UPDATE','selections','JOIN_ROOM_FULL','_redoStacks','state','LIVESHARE_TERMINATE','updateMember','_showConflictNotification','_socket','[CollaborationSession]','_emitMembers','COMPRESS_MUTATION_APPLY','_singleActiveUnitService','_updateStatus','_stopTelemetryCollaborationNewChangeset','_onOffline','fetch_missing','univer-pro.collaboration-client.single-active-unit-service','_unitInfo$','/rev/','values','joinRsp','authzUrl','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','1506328sYRlfl','[OfflineState]:\x20received\x20acknowledgement.','onTransformIME','[PendingState]:\x20received\x20rejection.','getUnitStatus$','/-/object/list','_onFetchMissResult','_commentService','_transitionLocked','_removeRoom','6NwCtJp','4093040iLWzFy','getUnitOnRev','transformMutationsWithChangeset','loginUrlKey','parse','open$','catch','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','commentUpdate$','registerHTTPInterceptor','HEARTBEAT','_getAPIPrefix','_getAPIPrefixPath','_initUnitPermissionChange','_onConflict','subscribe','fetchMissingChangesets','_tryEnsureSocket','resolve','sort','UPDATE_PERMISSION_OBJ','create','pluginName','_collaborationTimeoutTimer','pending','AWAITING_WITH_PENDING','onTransformRemoteChangesetByIMECache','OTHER_CLIENTS_EDITING','_clearRetryConnectingTimer','clear','rev','CLOSE_ROOM','online$','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_startTelemetryCollaborationNewChangeset','_waitForHeartbeatResponse','SUCCUSS','entries','onStateChange','encodeURIComponent','reject','RECV','_compressMutationService','roomInfos','LIVESHARE_OPERATION','closeSession','_retryCount','_changesetReqId','getCollabEntity$','startTime','sessionStatus$','subject','joinEvent','{fileID}','/resources','_configService','getCurrentRevOfUnit','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','resend','localeService','/universer-api/oidc/authpage','_resendWithTimeout','name','_sendHeartbeat','_resendTimer','editingUnit','_change$','_socketReady','onlyLocal','setCfgEnableObjInherit','[CollaborationUndoRedoService]','collaboration_new_changeset','function','_config','session.room-not-exists','_clearHeartbeatTimer','_isPermissionRej','memberID','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_commandService','save\x20fail\x20reason\x20is\x20','sid','fetchMiss','&source=','[SyncedState]:\x20received\x20acknowledgement.','capture','unitId\x20is\x20not\x20found','onSyncEditingCollabCursor','entityInit$','PERSON','requestParams','_replaceFileID','Univer','_clearLocalCache','socket\x20close','_members','_shouldReportTelemetry','_transformIMECache','@univerjs-pro/collaboration-client','_snapshotService','HEARTBEAT_INTERVAL','fromCollab','getCurrentUser','[FetchMissState]','baseRev','FETCH_MISS','_status$','replace'];_0x1ebd=function(){return _0x416d4f;};return _0x1ebd();}var nn=_0x35f73b(0x247),rn=_0x35f73b(0x360);let an=class extends _0x1fae62{constructor(_0x51171d,_0x5a5f36){const _0x588d23=_0x35f73b;super(),this[_0x588d23(0x2db)]=_0x51171d,this[_0x588d23(0x21c)]=_0x5a5f36,this['_init']();}[_0x35f73b(0x29d)](){const _0x396491=_0x35f73b;this['disposeWithMe'](this[_0x396491(0x2db)]['focused$']['subscribe'](()=>{const _0x495fb0=_0x396491;var _0x57c414;let _0x1ddec1=this[_0x495fb0(0x2db)][_0x495fb0(0x3ad)](),_0x3ec9a1=(_0x57c414=this[_0x495fb0(0x21c)][_0x495fb0(0x2fb)](_0x495fb0(0x2a6)))==null?_0x495fb0(0x241):_0x57c414;_0x1ddec1 instanceof _0x3c3bb3&&(_0x3ec9a1=_0x1ddec1['name']),document[_0x495fb0(0x3df)]=_0x3ec9a1;}));}};an=z([R(0x0,_0x599079),R(0x1,_0x160dc0)],an);let on=class{constructor(_0x47ea86,_0x43f16e,_0x5035f0){const _0x1a2d8e=_0x35f73b;this[_0x1a2d8e(0x21c)]=_0x47ea86,this[_0x1a2d8e(0x317)]=_0x43f16e,this[_0x1a2d8e(0x220)]=_0x5035f0,this[_0x1a2d8e(0x2df)]();}[_0x35f73b(0x2df)](){const _0x56d240=_0x35f73b;this['_httpService'][_0x56d240(0x1ee)]({'priority':0x1,'interceptor':(_0x1b8c11,_0x6cd5a)=>_0x6cd5a(_0x1b8c11)['pipe'](_0x1f0de5(async _0x19e47d=>{const _0x28a2f1=_0x56d240;let _0x4f29cd=_0x19e47d;if(_0x4f29cd['status']===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window['confirm'](this['localeService']['t'](_0x28a2f1(0x2bd)))){let _0x2f7bc0=window[_0x28a2f1(0x20c)](window[_0x28a2f1(0x27a)][_0x28a2f1(0x2a2)]);window[_0x28a2f1(0x27a)]['href']=this[_0x28a2f1(0x396)]()+_0x28a2f1(0x31e)+_0x2f7bc0;}}return _0x4f29cd;}))});}['_getLoginPath'](){const _0x4756c5=_0x35f73b;var _0x2e1453;let _0x539e0d=this[_0x4756c5(0x21c)][_0x4756c5(0x2fb)](U);return(_0x2e1453=_0x539e0d==null?void 0x0:_0x539e0d[_0x4756c5(0x1e8)])==null?_0x4756c5(0x221):_0x2e1453;}};on=z([R(0x0,_0x160dc0),R(0x1,_0x1b23c9(_0x470bb9)),R(0x2,_0x1b23c9(_0x2c19d0))],on);let sn=class extends _0x1fae62{constructor(_0x1505e1,_0x8ab935){const _0x188273=_0x35f73b;super(),this[_0x188273(0x320)]=_0x1505e1,this['_configService']=_0x8ab935,I(this,_0x188273(0x3cb),!0x1),this['_initMergeInterceptor']();}[_0x35f73b(0x258)](){const _0x1f92ab=_0x35f73b;let _0x2c09fb=this;this[_0x1f92ab(0x2fa)](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x3b3b49({'isMatch'(_0x2c906c){const _0x26b5f2=_0x1f92ab;var _0x9f03d4;if(_0x2c906c[_0x26b5f2(0x278)]==='POST'&&(_0x9f03d4=_0x2c906c[_0x26b5f2(0x23f)])!=null&&_0x9f03d4[_0x26b5f2(0x31d)]){let {objectID:_0x31daad,objectType:_0x45724d}=_0x2c906c[_0x26b5f2(0x23f)]['body']||{};if(!_0x31daad||_0x45724d===void 0x0)return!0x1;let _0x168f10=_0x2c09fb[_0x26b5f2(0x1f1)]()+'/'+_0x45724d+'/object/'+_0x31daad+'/allowed';if(_0x2c906c[_0x26b5f2(0x353)]===_0x168f10)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1bb03c){const _0x3b1cd2=_0x1f92ab;var _0x4d2f86;return(_0x4d2f86=_0x1bb03c[_0x3b1cd2(0x23f)])==null?void 0x0:_0x4d2f86[_0x3b1cd2(0x31d)];},'mergeParamsToRequest'(_0x964296,_0xefafdb){const _0x3459a7=_0x1f92ab;let _0x322b65=_0x2c09fb[_0x3459a7(0x1f1)]()+_0x3459a7(0x290),_0x1476e5=_0x964296[_0x3459a7(0x2fe)]((_0x5bcef1,_0x2be337)=>{const _0x7582b4=_0x3459a7;let {unitID:_0xc461d1,objectID:_0x142126,objectType:_0x48e60f,actions:_0x1a6b03}=_0x2be337;return _0x5bcef1[_0xc461d1]||(_0x5bcef1[_0xc461d1]={}),_0x5bcef1[_0xc461d1][_0x142126]||(_0x5bcef1[_0xc461d1][_0x142126]={'objectID':_0x142126,'objectType':_0x48e60f,'actions':[]}),_0x5bcef1[_0xc461d1][_0x142126][_0x7582b4(0x1a6)][_0x7582b4(0x380)](..._0x1a6b03),_0x5bcef1;},{}),_0x361842=[];for(let _0x1b07e3 in _0x1476e5)for(let _0x17446c in _0x1476e5[_0x1b07e3]){let {actions:_0x497990,objectType:_0x47ce06}=_0x1476e5[_0x1b07e3][_0x17446c],_0x187d61=[...new Set(_0x497990)];_0x361842[_0x3459a7(0x380)]({'unitID':_0x1b07e3,'objectID':_0x17446c,'objectType':_0x47ce06,'actions':_0x187d61});}return new _0x4dfcec(_0x3459a7(0x3bf),_0x322b65,{'headers':_0xefafdb[_0x3459a7(0x3c4)],'withCredentials':_0xefafdb['withCredentials'],'responseType':_0xefafdb[_0x3459a7(0x3c0)],'body':{'requests':_0x361842}});}},{'distributeResult'(_0x2353af,_0x2fa17f){let {objectActions:_0x38cffd}=_0x2353af;return _0x2fa17f['map'](_0x23663d=>{const _0x37c382=_0x3c29;let {unitID:_0x36d287,objectID:_0x3e7345,actions:_0x25c9b1}=_0x23663d,_0x414c87=_0x38cffd[_0x37c382(0x342)](_0x4dee31=>_0x4dee31[_0x37c382(0x285)]===_0x36d287&&_0x4dee31[_0x37c382(0x3b4)]===_0x3e7345);return{'config':_0x23663d,'result':{'actions':_0x25c9b1[_0x37c382(0x323)](_0x53fd53=>_0x414c87==null?void 0x0:_0x414c87['actions'][_0x37c382(0x342)](_0x97e5c7=>_0x97e5c7['action']===_0x53fd53))['filter'](_0x5b4242=>!!_0x5b4242),'error':_0x2353af[_0x37c382(0x3ba)]}};});}})}));}[_0x35f73b(0x1f1)](){const _0x25b945=_0x35f73b;var _0x40868c;let _0x51cacc=this[_0x25b945(0x21c)][_0x25b945(0x2fb)](U);return(_0x40868c=_0x51cacc==null?void 0x0:_0x51cacc[_0x25b945(0x1d8)])==null?_0x25b945(0x2b5):_0x40868c;}async[_0x35f73b(0x1fa)](_0x56ccc8){const _0x205cd4=_0x35f73b;let _0x2cce90=this['_getAPIPrefixPath']()+'/'+_0x56ccc8[_0x205cd4(0x304)]+'/object';return(await this[_0x205cd4(0x320)][_0x205cd4(0x1b7)](_0x2cce90,{'body':_0x56ccc8}))['body'][_0x205cd4(0x3b4)]||'';}async[_0x35f73b(0x3c7)](_0x542db8){const _0x19c394=_0x35f73b;let _0x699b8d=this[_0x19c394(0x1f1)]()+_0x19c394(0x1df);return(await this['_HTTPService']['post'](_0x699b8d,{'body':_0x542db8}))[_0x19c394(0x31d)][_0x19c394(0x3a7)];}async[_0x35f73b(0x38f)](_0xf1a04b){const _0x4858c9=_0x35f73b;var _0x28b5ab;let _0x20a19b=this[_0x4858c9(0x1f1)]()+'/'+_0xf1a04b['objectType']+_0x4858c9(0x373)+_0xf1a04b[_0x4858c9(0x3b4)],_0x30e7c3=await this[_0x4858c9(0x320)][_0x4858c9(0x3d8)](_0x20a19b,{'body':_0xf1a04b});if((_0x30e7c3==null||(_0x28b5ab=_0x30e7c3[_0x4858c9(0x31d)])==null||(_0x28b5ab=_0x28b5ab[_0x4858c9(0x3ba)])==null?void 0x0:_0x28b5ab[_0x4858c9(0x2a5)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x35f73b(0x3a8)](_0xad834){const _0xc8d81a=_0x35f73b;let _0xef8a80=this['_getAPIPrefixPath']()+'/'+_0xad834['objectType']+'/object/'+_0xad834[_0xc8d81a(0x3b4)]+_0xc8d81a(0x3e7);return(await this[_0xc8d81a(0x320)]['post'](_0xef8a80,{'body':_0xad834}))['body'][_0xc8d81a(0x1a6)];}async['batchAllowed'](_0x4c3389){const _0x577494=_0x35f73b;let _0x2fb4c8=this['_getAPIPrefixPath']()+_0x577494(0x290);return(await this[_0x577494(0x320)][_0x577494(0x1b7)](_0x2fb4c8,{'body':{'requests':_0x4c3389}}))[_0x577494(0x31d)][_0x577494(0x382)];}async[_0x35f73b(0x2aa)](_0x4f84bf){const _0x555432=_0x35f73b;let _0x23364f=this[_0x555432(0x1f1)]()+'/'+_0x4f84bf[_0x555432(0x304)]+'/role',_0x27a77b=await this[_0x555432(0x320)][_0x555432(0x1b7)](_0x23364f,{'body':_0x4f84bf});return{'roles':_0x27a77b['body'][_0x555432(0x322)],'actions':_0x27a77b[_0x555432(0x31d)][_0x555432(0x1a6)]};}async['deleteCollaborator'](_0xc389){const _0x4a26cc=_0x35f73b;let _0x6f148d=this[_0x4a26cc(0x1f1)]()+_0x4a26cc(0x371);await this['_HTTPService'][_0x4a26cc(0x38c)](_0x6f148d,{'params':{'collaboratorID':_0xc389[_0x4a26cc(0x3ab)],'objectID':_0xc389[_0x4a26cc(0x3b4)],'unitID':_0xc389[_0x4a26cc(0x285)]}});}async[_0x35f73b(0x3b7)](_0x4c0d7c){const _0x2aa865=_0x35f73b;let _0x551416=this['_getAPIPrefixPath']()+_0x2aa865(0x371);await this[_0x2aa865(0x320)]['patch'](_0x551416,{'body':_0x4c0d7c});}async[_0x35f73b(0x34e)](_0x20e2dc){const _0x4eaf19=_0x35f73b;let _0x2fbc10=this[_0x4eaf19(0x1f1)]()+_0x4eaf19(0x371);await this[_0x4eaf19(0x320)][_0x4eaf19(0x1b7)](_0x2fbc10,{'body':_0x20e2dc});}async[_0x35f73b(0x31b)](_0x1e7dad){const _0x813add=_0x35f73b;var _0x435f9c;let _0x1824d9=this[_0x813add(0x1f1)]()+'/collaborator',_0x4d3f93=await this['_HTTPService'][_0x813add(0x2a9)](_0x1824d9,{'params':{'objectID':_0x1e7dad[_0x813add(0x3b4)],'unitID':_0x1e7dad['unitID']}});return this['setCfgEnableObjInherit']((_0x435f9c=_0x4d3f93[_0x813add(0x31d)][_0x813add(0x332)])==null?!0x1:_0x435f9c),_0x4d3f93[_0x813add(0x31d)][_0x813add(0x1c0)];}async['putCollaborators'](_0x555ad7){const _0x396ed3=_0x35f73b;let _0x2cc6e6=this[_0x396ed3(0x1f1)]()+_0x396ed3(0x371);await this[_0x396ed3(0x320)][_0x396ed3(0x3d8)](_0x2cc6e6,{'body':_0x555ad7});}[_0x35f73b(0x22a)](_0x686a87){const _0x2a62e8=_0x35f73b;this[_0x2a62e8(0x3cb)]=_0x686a87;}[_0x35f73b(0x292)](){const _0x3f577a=_0x35f73b;return this[_0x3f577a(0x3cb)];}};sn=z([R(0x0,_0x1b23c9(_0x470bb9)),R(0x1,_0x1b23c9(_0x160dc0))],sn);function cn(_0x2e83f4){const _0x751277=_0x35f73b;let _0x3c4b4d=atob(_0x2e83f4),_0x384b7e=new Uint8Array(_0x3c4b4d[_0x751277(0x37b)]);for(let _0x459668=0x0;_0x459668<_0x3c4b4d[_0x751277(0x37b)];_0x459668++)_0x384b7e[_0x459668]=_0x3c4b4d[_0x751277(0x331)](_0x459668);return _0x384b7e;}function ln(_0x5c3a56){const _0x15d6b0=_0x35f73b;let _0x2a71d8='';for(let _0x4a064a=0x0;_0x4a064a<_0x5c3a56['length'];_0x4a064a++)_0x2a71d8+=String[_0x15d6b0(0x2d9)](_0x5c3a56[_0x4a064a]);return btoa(_0x2a71d8);}function un(_0x21c8f7,_0x4619b4){const _0x9bd899=_0x35f73b;let _0x10a8f4=cn(_0x4619b4),_0x498ca1=_0xeff5b7(0x10);return ln(_0x58e6cb(_0x498ca1,_0x3b69ce(_0x10a8f4,_0x498ca1)[_0x9bd899(0x2dd)](_0x18a346(_0x21c8f7))));}function dn(){const _0x56e430=_0x35f73b;let _0x507ab5=_0x109aa2()[_0x56e430(0x363)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x507ab5){let _0x340bff={'time':Math['floor'](Date[_0x56e430(0x3f4)]()/0x3e8),'domain':location[_0x56e430(0x378)]};return un(JSON[_0x56e430(0x284)](_0x340bff),_0x507ab5);}}let fn=class{constructor(_0x469dae){const _0x3422e4=_0x35f73b;this[_0x3422e4(0x317)]=_0x469dae,this[_0x3422e4(0x3b8)]();}['_initRequestHeader'](){const _0x54d9b9=_0x35f73b;this[_0x54d9b9(0x317)][_0x54d9b9(0x1ee)]({'interceptor':(_0x127c70,_0x40bd8e)=>{const _0x20ae9c=_0x54d9b9;let _0x584fce=dn();return _0x584fce&&_0x127c70['headers'][_0x20ae9c(0x2d4)]('x-univer-host',_0x584fce),_0x40bd8e(_0x127c70);}});}};fn=z([R(0x0,_0x1b23c9(_0x470bb9))],fn);let pn=class extends _0x495984{constructor(_0x37ca83,_0x1882c3,_0x140ba4){const _0x45ec38=_0x35f73b;super(),this[_0x45ec38(0x3f8)]=_0x37ca83,this[_0x45ec38(0x248)]=_0x1882c3,this[_0x45ec38(0x30e)]=_0x140ba4,I(this,_0x45ec38(0x1d4),new _0x10ace7(null)),I(this,'unitInfo$',this[_0x45ec38(0x1d4)][_0x45ec38(0x3ac)]());}async[_0x35f73b(0x3c9)](_0xd282f4,_0x2d7f31,_0x1f2324){const _0xc42bdc=_0x35f73b;this[_0xc42bdc(0x1d4)][_0xc42bdc(0x3f6)]({'unitId':_0xd282f4,'type':_0x2d7f31});let _0x3406a3=null;switch(_0x2d7f31){case _0x57ec00[_0xc42bdc(0x3b1)]:_0x3406a3=await this[_0xc42bdc(0x248)][_0xc42bdc(0x3ca)](_0xd282f4,_0x1f2324);break;case _0x57ec00[_0xc42bdc(0x32a)]:_0x3406a3=await this['_snapshotService']['loadDoc'](_0xd282f4,_0x1f2324);break;default:this['_logService'][_0xc42bdc(0x3ba)](_0xc42bdc(0x3fa),_0xc42bdc(0x321));break;}return _0x3406a3;}async['loadUnit'](_0x4198aa,_0xb365ad,_0x4de7d1){const _0x162508=_0x35f73b;var _0x4e3677;this['_unitInfo$']['next']({'unitId':_0x4198aa,'type':_0xb365ad,'subUnitId':_0x4de7d1});let _0x6a830b=0x0,_0x5e06eb=await((_0x4e3677=this['_localCacheService'])==null?void 0x0:_0x4e3677['loadOfflineData'](_0x4198aa));return _0x5e06eb&&(_0x5e06eb[_0x162508(0x257)]||_0x5e06eb[_0x162508(0x391)]['length']!==0x0)&&(_0x6a830b=_0x5e06eb[_0x162508(0x203)]),_0x6a830b===0x0&&this[_0x162508(0x3f8)]['debug'](_0x162508(0x3fa),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x162508(0x3c9)](_0x4198aa,_0xb365ad,_0x6a830b);}};pn=z([R(0x0,_0x3594cb),R(0x1,_0x1b23c9(_0x245f1e)),R(0x2,_0xbefc86(V))],pn);let mn=class{constructor(_0x4d452a,_0x35ceb6,_0x2d7834){const _0x590e60=_0x35f73b;this[_0x590e60(0x317)]=_0x4d452a,this[_0x590e60(0x21c)]=_0x35ceb6,this[_0x590e60(0x2db)]=_0x2d7834,I(this,'_waitCount',0x0),I(this,'_change$',new _0x34cf84()),I(this,_0x590e60(0x398),this[_0x590e60(0x227)]),I(this,_0x590e60(0x194),new Map());}['setWaitCount'](_0x469f8a){const _0x25bae5=_0x35f73b;this[_0x25bae5(0x39d)]=_0x469f8a,this[_0x25bae5(0x227)]['next'](_0x469f8a);}[_0x35f73b(0x2ff)](_0x56edb7,_0x129e0e){const _0x326724=_0x35f73b;if(_0x129e0e===_0x5edd85[_0x326724(0x34f)]){let _0x5095e1=new Image();return _0x5095e1['src']=_0x56edb7,_0x5095e1;}return this[_0x326724(0x194)][_0x326724(0x2a9)](_0x56edb7);}[_0x35f73b(0x195)](_0x566679,_0x40f9fb,_0x213f4a){const _0x24613f=_0x35f73b;_0x40f9fb===_0x5edd85[_0x24613f(0x34f)]||_0x213f4a==null||this['_imageSourceCache'][_0x24613f(0x2d4)](_0x566679,_0x213f4a);}async[_0x35f73b(0x354)](_0x1a239b){const _0x55014a=_0x35f73b;try{let _0x4f1e9a=this[_0x55014a(0x240)](this[_0x55014a(0x28f)](),''+_0x1a239b),_0x46e767=(await this[_0x55014a(0x317)][_0x55014a(0x2a9)](_0x4f1e9a))[_0x55014a(0x31d)];if(_0x46e767[_0x55014a(0x3ba)]&&_0x46e767[_0x55014a(0x3ba)][_0x55014a(0x2a5)]===_0x46125a['OK']){let _0x5c6470=_0x2da96f(_0x46e767[_0x55014a(0x353)],this[_0x55014a(0x337)]());return Promise[_0x55014a(0x1f7)](_0x5c6470);}return Promise['reject'](_0x46e767[_0x55014a(0x3ba)]);}catch(_0x39e28d){return Promise['reject'](_0x39e28d);}}async[_0x35f73b(0x352)](_0x1b986d){const _0xd09d49=_0x35f73b;let _0x594609='';if(!_0xd6fb97['includes'](_0x1b986d[_0xd09d49(0x2ec)]))return this[_0xd09d49(0x3ea)](),Promise[_0xd09d49(0x20d)](Error(_0x4daaae[_0xd09d49(0x388)]));if(_0x1b986d['size']>_0x3912d7())return this[_0xd09d49(0x3ea)](),Promise[_0xd09d49(0x20d)](Error(_0x4daaae[_0xd09d49(0x3a0)]));try{let _0x234ac6=new FormData();_0x234ac6[_0xd09d49(0x2f4)](_0xd09d49(0x1aa),_0x1b986d);let _0x28a7b1=this[_0xd09d49(0x2db)][_0xd09d49(0x3ad)](),_0x338673=_0x28a7b1==null?void 0x0:_0x28a7b1[_0xd09d49(0x1b9)]();if(!_0x338673)throw Error(_0xd09d49(0x23b));let _0x2920b2=this[_0xd09d49(0x3c8)]()+_0xd09d49(0x3d6)+_0x1b986d[_0xd09d49(0x3d7)]['toString']()+_0xd09d49(0x238)+_0x502b83['UnitEmbedded']+_0xd09d49(0x273)+encodeURIComponent(_0x338673),_0x1fcc3b={'body':_0x234ac6},_0x37c28e=(await this[_0xd09d49(0x317)]['post'](_0x2920b2,_0x1fcc3b))['body'];if(typeof _0x37c28e[_0xd09d49(0x1ac)]!=_0xd09d49(0x25c))return this[_0xd09d49(0x3ea)](),Promise['reject'](Error(_0x4daaae['ERROR_IMAGE']));_0x594609=_0x37c28e[_0xd09d49(0x1ac)];}catch{return this[_0xd09d49(0x3ea)](),Promise[_0xd09d49(0x20d)](Error(_0x4daaae['ERROR_IMAGE']));}return new Promise((_0x16793b,_0x51499e)=>{const _0x36b36f=_0xd09d49;let _0x1e1dfb=new FileReader();_0x1e1dfb['readAsDataURL'](_0x1b986d),_0x1e1dfb[_0x36b36f(0x31c)]=_0x52a694=>{const _0xd66521=_0x36b36f;var _0x1212e0;let _0x365ee2=(_0x1212e0=_0x52a694['target'])==null?void 0x0:_0x1212e0[_0xd66521(0x265)];if(_0x365ee2==null){this[_0xd66521(0x3ea)](),_0x51499e(Error(_0x4daaae[_0xd66521(0x399)]));return;}_0x16793b({'imageId':_0x4d6784(0x6),'imageSourceType':_0x5edd85[_0xd66521(0x29a)],'source':_0x594609,'base64Cache':_0x365ee2,'status':_0x4daaae[_0xd66521(0x209)]}),this[_0xd66521(0x3ea)]();};});}[_0x35f73b(0x3c8)](){const _0x4629db=_0x35f73b;var _0x1ffaae;let _0x39d376=this[_0x4629db(0x21c)][_0x4629db(0x2fb)](U);return(_0x1ffaae=_0x39d376==null?void 0x0:_0x39d376[_0x4629db(0x315)])==null?_0x4629db(0x2ea):_0x1ffaae;}[_0x35f73b(0x28f)](){const _0x56a5b6=_0x35f73b;var _0x23d9f3;let _0x1fe1ae=this['_configService'][_0x56a5b6(0x2fb)](U);return(_0x23d9f3=_0x1fe1ae==null?void 0x0:_0x1fe1ae['signUrlServerUrl'])==null?_0x56a5b6(0x30c):_0x23d9f3;}[_0x35f73b(0x337)](){const _0x269480=_0x35f73b;var _0x1e036b;let _0x1157d0=this[_0x269480(0x21c)][_0x269480(0x2fb)](U);return(_0x1e036b=_0x1157d0==null?void 0x0:_0x1157d0['downloadEndpointUrl'])==null?location['origin']:_0x1e036b;}[_0x35f73b(0x240)](_0x350605,_0xeb4a32){const _0x34a8bb=_0x35f73b;return _0x350605[_0x34a8bb(0x250)](_0x34a8bb(0x21a),_0xeb4a32);}['_decreaseWaiting'](){--this['_waitCount'],this['_change$']['next'](this['_waitCount']);}};mn=z([R(0x0,_0x1b23c9(_0x470bb9)),R(0x1,_0x160dc0),R(0x2,_0x1b23c9(_0x599079))],mn);let hn=class{constructor(_0x37bf41,_0x19ce55){this['_configService']=_0x37bf41,this['_HTTPService']=_0x19ce55;}[_0x35f73b(0x1f1)](){const _0x21d3ab=_0x35f73b;var _0x5d492b;let _0x27a771=this[_0x21d3ab(0x21c)][_0x21d3ab(0x2fb)](U);return(_0x5d492b=_0x27a771==null?void 0x0:_0x27a771[_0x21d3ab(0x1d8)])==null?_0x21d3ab(0x2b5):_0x5d492b;}async['list'](_0x382723){const _0x3173f7=_0x35f73b;let _0x5c5d4b=this['_getAPIPrefixPath']()+_0x3173f7(0x371);return{'list':[{'title':_0x3173f7(0x387),'mentions':(await this[_0x3173f7(0x320)][_0x3173f7(0x2a9)](_0x5c5d4b,{'params':{'objectID':_0x382723[_0x3173f7(0x333)],'unitID':_0x382723[_0x3173f7(0x333)]}}))[_0x3173f7(0x31d)]['collaborators'][_0x3173f7(0x323)](_0x5706fc=>({'objectId':_0x5706fc['id'],'name':_0x5706fc[_0x3173f7(0x218)][_0x3173f7(0x223)],'metadata':{'icon':_0x5706fc[_0x3173f7(0x218)]['avatar']},'label':_0x5706fc[_0x3173f7(0x218)]['name'],'objectType':_0x916f82[_0x3173f7(0x23e)]})),'metadata':{},'type':_0x916f82[_0x3173f7(0x23e)]}]};}};hn=z([R(0x0,_0x1b23c9(_0x160dc0)),R(0x1,_0x1b23c9(_0x470bb9))],hn);let gn=class extends _0x495984{constructor(_0x394e0f,_0x375303,_0x1a8131,_0x48147a,_0x2e92b0){const _0x1217c5=_0x35f73b;super(),this[_0x1217c5(0x1c1)]=_0x394e0f,this[_0x1217c5(0x2db)]=_0x375303,this['_permissionService']=_0x1a8131,this[_0x1217c5(0x281)]=_0x48147a,this[_0x1217c5(0x2bf)]=_0x2e92b0,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x35f73b(0x25b)](){const _0x1d0fa2=_0x35f73b;let _0x59fb5f=async _0x45b572=>{const _0xa76211=_0x3c29;(await this['_collaborationSessionService'][_0xa76211(0x1bd)](_0x45b572))[_0xa76211(0x39e)]['pipe'](_0xb3f571(_0xd8e18c=>_0xd8e18c[_0xa76211(0x263)]===_0x576af5[_0xa76211(0x3e6)]),_0x20cb1c(this[_0xa76211(0x3f7)]))[_0xa76211(0x1f4)](_0x25180f=>{const _0x543474=_0xa76211;let {reason:_0x15f9f9}=_0x25180f['data'];this[_0x543474(0x2bf)]['emitEvent']({'id':_0x543474(0x204),'data':_0x15f9f9}),this[_0x543474(0x3aa)][_0x543474(0x3d2)](new _0x170956(_0x45b572)['id'],!0x1),this[_0x543474(0x281)][_0x543474(0x212)](_0x45b572);});};_0x34bad6(this['_univerInstanceService'][_0x1d0fa2(0x316)](_0x57ec00[_0x1d0fa2(0x3b1)]),this[_0x1d0fa2(0x2db)][_0x1d0fa2(0x316)](_0x57ec00['UNIVER_DOC']))['pipe'](_0xcf55(_0x50dc01=>_0x50dc01[_0x1d0fa2(0x196)][_0x1d0fa2(0x1b9)]()),_0xb3f571(_0x39611f=>!_0x1c6cb4(_0x39611f)),_0x20cb1c(this[_0x1d0fa2(0x3f7)]))[_0x1d0fa2(0x1f4)](_0x40e82=>{_0x59fb5f(_0x40e82);});}[_0x35f73b(0x1f2)](){const _0x3b7856=_0x35f73b;let _0x24d82e=async _0x259e97=>{const _0x2be376=_0x3c29;let _0x48d33a=await this[_0x2be376(0x281)]['requireSession'](_0x259e97),_0xb388eb=this['_injector']['get'](_0x21cc4b);_0x48d33a[_0x2be376(0x39e)][_0x2be376(0x289)](_0xb3f571(_0x3127a2=>_0x3127a2[_0x2be376(0x263)]===_0x576af5[_0x2be376(0x1f9)]),_0x20cb1c(this[_0x2be376(0x3f7)]))['subscribe'](_0x49f2d2=>{const _0x381e97=_0x2be376;let {objectId:_0x5f40dc}=_0x49f2d2[_0x381e97(0x3fe)];_0x5f40dc===_0x259e97?_0xb388eb[_0x381e97(0x3f9)](_0x259e97):_0xb388eb[_0x381e97(0x2ef)](_0x259e97,_0x5f40dc);});};_0x34bad6(this[_0x3b7856(0x2db)]['getTypeOfUnitAdded$'](_0x57ec00[_0x3b7856(0x3b1)]))[_0x3b7856(0x289)](_0xcf55(_0x5034ea=>_0x5034ea[_0x3b7856(0x196)][_0x3b7856(0x1b9)]()),_0xb3f571(_0x44f99d=>!_0x1c6cb4(_0x44f99d)),_0x20cb1c(this[_0x3b7856(0x3f7)]))[_0x3b7856(0x1f4)](_0x384cad=>{_0x24d82e(_0x384cad);});}};gn=z([R(0x0,_0x1b23c9(_0x2b692d)),R(0x1,_0x599079),R(0x2,_0x5043f7),R(0x3,_0x1b23c9(Q)),R(0x4,_0x1b23c9(L))],gn);let _n=class{constructor(_0x1fa412,_0xa4d662){const _0x12afea=_0x35f73b;this[_0x12afea(0x21c)]=_0x1fa412,this[_0x12afea(0x317)]=_0xa4d662;}async[_0x35f73b(0x1e6)](_0x3cd301,_0x4c919a){const _0x43cd28=_0x35f73b;var _0x3a553e;let {unitID:_0x3d5bb7,type:_0x1787be,revision:_0x592567=0x0}=_0x4c919a,_0xc6af5d=this[_0x43cd28(0x287)]()+'/'+_0x1787be+_0x43cd28(0x2de)+_0x3d5bb7+_0x43cd28(0x1d5)+_0x592567,_0xa9f3cb=(await this['_httpService'][_0x43cd28(0x2a9)](_0xc6af5d))['body'],_0x55f295=(_0x3a553e=_0xa9f3cb['snapshot'])==null?void 0x0:_0x3a553e['workbook'];if(_0x55f295){let _0x4221bf=_0x55f295==null?void 0x0:_0x55f295[_0x43cd28(0x27d)];_0x55f295['originalMeta']=_0x454182[_0x43cd28(0x35f)](_0x1b81c6(_0x4221bf)),Object[_0x43cd28(0x20a)](_0x55f295[_0x43cd28(0x335)])[_0x43cd28(0x2c9)](([,_0x28d852])=>{const _0x1b6851=_0x43cd28;let _0x297050=_0x28d852[_0x1b6851(0x27d)];_0x28d852['originalMeta']=_0x454182[_0x1b6851(0x35f)](_0x1b81c6(_0x297050));});}return _0xa9f3cb;}async[_0x35f73b(0x32c)](_0x41bc3d,_0x3d8a26){const _0x479922=_0x35f73b;let {unitID:_0xa6fb9d,type:_0x2e5a7a,blockID:_0x2fdf26}=_0x3d8a26,_0x5767a4=this[_0x479922(0x1f0)]()+'/'+_0x2e5a7a+_0x479922(0x2de)+_0xa6fb9d+_0x479922(0x33a)+_0x2fdf26;return(await this['_httpService']['get'](_0x5767a4))[_0x479922(0x31d)];}async['getDeserializedSheetBlock'](_0x37ac6f,_0x3501b4){const _0x5dfeb4=_0x35f73b;let {unitID:_0x5c5cbe,type:_0x3e0172,blockID:_0x1aa1ca}=_0x3501b4,_0x189ddb=this[_0x5dfeb4(0x1f0)]()+_0x5dfeb4(0x33a)+_0x3e0172+'/unit/'+_0x5c5cbe+_0x5dfeb4(0x33a)+_0x1aa1ca;return(await this['_httpService']['get'](_0x189ddb))['body'];}async[_0x35f73b(0x1f5)](_0x5c3790,_0x3070a9){const _0xaac563=_0x35f73b;let {unitID:_0x10c2db,type:_0x5d99dd,from:_0x2d174e,to:_0x477cf1}=_0x3070a9,_0x358401=this[_0xaac563(0x1f0)]()+'/'+_0x5d99dd+'/unit/'+_0x10c2db+_0xaac563(0x283)+_0x2d174e+_0xaac563(0x2f6)+_0x477cf1;return(await this[_0xaac563(0x317)][_0xaac563(0x2a9)](_0x358401))['body'];}['getSnapshotAPIPath'](){const _0x278b47=_0x35f73b;var _0x5185de;return(_0x5185de=this[_0x278b47(0x21c)][_0x278b47(0x2fb)](_0x278b47(0x2ca)))==null?this[_0x278b47(0x1f0)]():_0x5185de;}[_0x35f73b(0x1f0)](){const _0x8539d5=_0x35f73b;var _0x14874e;let _0x3d943b=this[_0x8539d5(0x21c)]['getConfig'](U);return(_0x14874e=_0x3d943b==null?void 0x0:_0x3d943b['snapshotServerUrl'])==null?_0x8539d5(0x1a2):_0x14874e;}async[_0x35f73b(0x37f)](_0xf0a9dc,_0x57733a){const _0x30b00f=_0x35f73b;let _0x2c63c9='/universer-api/snapshot/'+_0x57733a[_0x30b00f(0x2ec)]+'/unit/'+_0x57733a[_0x30b00f(0x285)]+_0x30b00f(0x21b);return(await this[_0x30b00f(0x317)][_0x30b00f(0x2a9)](_0x2c63c9,{'params':{'resourceId':JSON['stringify'](_0x57733a[_0x30b00f(0x37d)])}}))[_0x30b00f(0x31d)];}[_0x35f73b(0x2f3)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x35f73b(0x314)](){const _0x1f695b=_0x35f73b;throw Error(_0x1f695b(0x2e2));}['saveSheetBlock'](){const _0x112639=_0x35f73b;throw Error(_0x112639(0x2e2));}[_0x35f73b(0x260)](){const _0x42d062=_0x35f73b;throw Error(_0x42d062(0x2e2));}[_0x35f73b(0x29c)](){const _0xfd9282=_0x35f73b;throw Error(_0xfd9282(0x2e2));}['getLatestCsReqIdBySid'](){const _0x1f3f52=_0x35f73b;throw Error(_0x1f3f52(0x2e2));}};_n=z([R(0x0,_0x160dc0),R(0x1,_0x1b23c9(_0x470bb9))],_n);let vn=class extends _0x4f956f{constructor(_0x1eacd9,_0x1b1571,_0x5ec610,_0x504beb,_0x194527){const _0x1aa703=_0x35f73b;super(_0x1eacd9,_0x1b1571,_0x5ec610),this[_0x1aa703(0x3c2)]=_0x504beb,this[_0x1aa703(0x3f8)]=_0x194527;}['transformUndoRedo'](_0x44450c,_0x156e78){const _0x2be658=_0x35f73b;let _0x2b9d8e=this[_0x2be658(0x3cc)](_0x44450c);if(_0x2b9d8e)try{let _0x15d8dc=this[_0x2be658(0x30f)](_0x2b9d8e,_0x156e78);this[_0x2be658(0x349)](_0x44450c,_0x15d8dc);}catch(_0x4ed78d){this[_0x2be658(0x3f8)][_0x2be658(0x3ba)](_0x2be658(0x22b),_0x4ed78d),this[_0x2be658(0x306)](_0x44450c);}let _0x1cf908=this[_0x2be658(0x2ed)](_0x44450c);if(_0x1cf908)try{let _0x4d9b0d=this[_0x2be658(0x30f)](_0x1cf908,_0x156e78);this[_0x2be658(0x392)](_0x44450c,_0x4d9b0d);}catch(_0x420c77){this['_logService'][_0x2be658(0x3ba)](_0x420c77),this[_0x2be658(0x256)](_0x44450c);}}[_0x35f73b(0x306)](_0x5eb45b){const _0x36ad1d=_0x35f73b;let _0x41cfa5=this[_0x36ad1d(0x3cc)](_0x5eb45b);_0x41cfa5&&(_0x41cfa5['length']=0x0,this[_0x36ad1d(0x1cf)]());}['_clearRedo'](_0x44f876){const _0x13faf0=_0x35f73b;let _0x2ba39a=this[_0x13faf0(0x2ed)](_0x44f876);_0x2ba39a&&(_0x2ba39a[_0x13faf0(0x37b)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x27cf7a,_0x55f3ba){const _0x432c49=_0x35f73b;this['_undoStacks']['set'](_0x27cf7a,_0x55f3ba),this[_0x432c49(0x1cf)]();}['_substituteRedoStack'](_0x225b1e,_0x78ed08){const _0x3cd6e9=_0x35f73b;this[_0x3cd6e9(0x1c5)][_0x3cd6e9(0x2d4)](_0x225b1e,_0x78ed08),this['_updateStatus']();}[_0x35f73b(0x30f)](_0x29f599,_0x58593e){const _0x389283=_0x35f73b;let _0x7204d5=[],_0xc28245=_0x58593e,_0x15ecdb=_0x58593e;for(let _0x9a2be=_0x29f599['length']-0x1;_0x9a2be>=0x0;_0x9a2be--){let {unitID:_0x2e4556,undoMutations:_0x216546,redoMutations:_0x54d092}=_0x29f599[_0x9a2be],_0x4e97ef=this[_0x389283(0x3c2)]['transformMutationsWithChangeset'](_0xc28245,_0x216546),_0x13b381=this[_0x389283(0x3c2)]['transformMutationsWithChangeset'](_0x15ecdb,_0x54d092);if(_0x10f13a(_0x4e97ef)||_0x10f13a(_0x13b381)){this[_0x389283(0x3f8)]['error'](_0x389283(0x22b),'transformStack\x20failed!',_0x4e97ef,_0x13b381);break;}_0xc28245=_0x4e97ef[_0x389283(0x279)],_0x15ecdb=_0x13b381[_0x389283(0x279)],_0x7204d5[_0x389283(0x380)]({'unitID':_0x2e4556,'undoMutations':_0x4e97ef['m2Prime'],'redoMutations':_0x13b381[_0x389283(0x2e6)]});}return _0x7204d5[_0x389283(0x2f2)]();}};vn=z([R(0x0,_0x599079),R(0x1,_0x5c3744),R(0x2,_0x4e7340),R(0x3,_0x348e40),R(0x4,_0x3594cb)],vn);let $=class extends _0x176987{constructor(_0x1ccef6={},_0x2eb426,_0x3ee59f,_0x48bc0){const _0x188c8c=_0x35f73b;super(),this[_0x188c8c(0x22e)]=_0x1ccef6,this[_0x188c8c(0x3f8)]=_0x2eb426,this[_0x188c8c(0x1c1)]=_0x3ee59f,this[_0x188c8c(0x21c)]=_0x48bc0;let {..._0x301a29}=_0x2418a6({},Nt,_0x1ccef6);if(!_0x301a29[_0x188c8c(0x35d)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this[_0x188c8c(0x22e)]=_0x301a29,this[_0x188c8c(0x21c)][_0x188c8c(0x305)](U,_0x301a29);}[_0x35f73b(0x276)](){const _0x5ee710=_0x35f73b;this[_0x5ee710(0x3cd)](),this[_0x5ee710(0x3bb)]();}['_registerDependencies'](){const _0x173b19=_0x35f73b;var _0x5be9be,_0x51e60b;this['_injector'][_0x173b19(0x1bc)](_0x257c3e)&&this[_0x173b19(0x3f8)]['error'](_0x173b19(0x372),_0x173b19(0x34d));let _0x4ee88d=_0x5779fb([[_0x257c3e,{'useClass':vn}],[Q],[B],[H],[on],[fn],[wt],[gn],[L],[pn],[Qt,{'useClass':this['_config'][_0x173b19(0x35d)]}],[_0x3af6ca,{'useClass':_n}],[_0x780d41,{'useClass':sn}],[_0x14e824,{'useClass':mn}],[_0x21f72d,{'useClass':hn}],[tn],[an]],(_0x5be9be=this['_config'])==null?void 0x0:_0x5be9be[_0x173b19(0x3db)]);if(!((_0x51e60b=this[_0x173b19(0x22e)])!=null&&_0x51e60b[_0x173b19(0x3a4)])){let _0x27637b=_0x4ee88d[_0x173b19(0x2ce)](([_0x3424c3])=>_0x3424c3===jt);_0x27637b!==-0x1&&_0x4ee88d['splice'](_0x27637b,0x1);}_0xc377a3(this[_0x173b19(0x1c1)],_0x4ee88d);}[_0x35f73b(0x3bb)](){const _0x1e8694=_0x35f73b;var _0x50f7e3,_0x1b0b95;if(this['_injector'][_0x1e8694(0x2a9)](_0x470bb9)[_0x1e8694(0x1ee)]({'priority':0x14,'interceptor':_0x4f6907({'maxParallel':0x6})}),!((_0x50f7e3=this[_0x1e8694(0x22e)])!=null&&_0x50f7e3[_0x1e8694(0x2f7)])){var _0x4464e6;(_0x4464e6=this[_0x1e8694(0x1c1)]['get'](V,_0x430b4f['OPTIONAL']))==null||_0x4464e6[_0x1e8694(0x2ae)]();}(_0x1b0b95=this[_0x1e8694(0x22e)])!=null&&_0x1b0b95[_0x1e8694(0x36b)]&&_0x40f1c9(this[_0x1e8694(0x1c1)],[[on]]),_0x40f1c9(this[_0x1e8694(0x1c1)],[[fn],[tn],[gn]]);}};I($,_0x35f73b(0x1fb),_0x35f73b(0x307)),I($,'packageName',nn),I($,_0x35f73b(0x312),rn),$=z([_0x2cd6f8(_0x9c60d5,_0x265883,_0x12c5ff),R(0x1,_0x3594cb),R(0x2,_0x1b23c9(_0x2b692d)),R(0x3,_0x160dc0)],$);export{sn as AuthzIoHttpService,q as AwaitingState,J as AwaitingWithPendingState,U as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,tn as CollaborationController,Kt as CollaborationEntity,mn as CollaborationImageIoService,Ot as CollaborationSession,Q as CollaborationSessionService,en as CollaborationSocketService,Ht as CollaborationStatus,Ct as CollaborationUIEventId,L as CollaborationUIEventService,vn as CollaborativeUndoRedoService,wt as CommentService,Y as ConflictState,ut as DEFAULT_COLLAB_WEB_SOCKET_URL,yt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,dt as DEFAULT_WS_SESSION_TICKET_URL,pn as DataLoaderService,qt as DocCollaborationEntity,Z as FetchingMissState,ft as HEARTBEAT_INTERVAL_KEY,pt as HEARTBEAT_TIMEOUT_KEY,Qt as ICollaborationSocketService,V as ILocalCacheService,Yt as INetworkConditionService,jt as ISingleActiveUnitService,_t as LOCAL_CACHE_INTERVAL,gt as LOCAL_CACHE_INTERVAL_KEY,B as MemberService,hn as MentionIoHttpService,X as OfflineState,K as PendingState,vt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,ht as RETRY_CONNECTING_MAX_COUNT_KEY,Et as SessionStatus,Jt as SheetCollaborationEntity,H as SheetTransformSelectionsService,_n as SnapshotServerOverHTTPService,G as SyncedState,Mt as UnitStatus,$ as UniverCollaborationClientPlugin,Xt as deserializeToCombResponse,kt as getLocalCacheKey,Zt as serializeCombRequest};