@univerjs-pro/collaboration-client 0.5.1-nightly.202412081606 → 0.5.1-nightly.202412090546
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -0
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +1 -0
- package/lib/types/facade/f-collaboration.d.ts +13 -0
- package/lib/types/facade/f-univer.d.ts +12 -0
- package/lib/types/facade/index.d.ts +2 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +2 -2
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +6 -7
- package/lib/types/services/network-condition/network-condition.service.d.ts +6 -0
- package/lib/types/services/socket/collaboration-socket.service.d.ts +4 -4
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +19 -8
@@ -0,0 +1 @@
|
|
1
|
+
'use strict';const _0x572f33=_0x1d3d;(function(_0x433d0d,_0x45d69f){const _0x37744=_0x1d3d,_0x500f1b=_0x433d0d();while(!![]){try{const _0xd6915c=-parseInt(_0x37744(0x1cc))/0x1+-parseInt(_0x37744(0x190))/0x2+parseInt(_0x37744(0x2de))/0x3*(parseInt(_0x37744(0x164))/0x4)+-parseInt(_0x37744(0x324))/0x5+-parseInt(_0x37744(0x2f9))/0x6+parseInt(_0x37744(0x2bb))/0x7+-parseInt(_0x37744(0x14f))/0x8*(-parseInt(_0x37744(0x27f))/0x9);if(_0xd6915c===_0x45d69f)break;else _0x500f1b['push'](_0x500f1b['shift']());}catch(_0x39e440){_0x500f1b['push'](_0x500f1b['shift']());}}}(_0xbf81,0xa214c));var Re=Object[_0x572f33(0x222)],Oe=(_0x44f1c1,_0x536e5f,_0xb912b9)=>_0x536e5f in _0x44f1c1?Re(_0x44f1c1,_0x536e5f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb912b9}):_0x44f1c1[_0x536e5f]=_0xb912b9,_=(_0x5a6b30,_0xb3d5f2,_0xf3a70c)=>Oe(_0x5a6b30,typeof _0xb3d5f2!=_0x572f33(0x291)?_0xb3d5f2+'':_0xb3d5f2,_0xf3a70c);Object[_0x572f33(0x222)](exports,Symbol[_0x572f33(0x251)],{'value':_0x572f33(0x231)});const r=require(_0x572f33(0x279)),h=require('@univerjs-pro/collaboration'),E=require(_0x572f33(0x1e5)),f=require(_0x572f33(0x2b9)),re=require(_0x572f33(0x2ab)),ye=require(_0x572f33(0x191)),Se=require(_0x572f33(0x2b6)),D=require(_0x572f33(0x2e1));function _0xbf81(){const _0x847cef=['textRanges','3304LQwbCv','c1Prime','subscribe','UNKNOWN_CODE','NO_OTHER_CLIENTS_EDITING','emitEvent','has','complete','_onRemoteChangeset','range','_clearHeartbeatTimer','LIVESHARE_TERMINATE','_getCurrentRevision','newCsEvent','[SyncedState]:\x20received\x20acknowledgement.','collabWebSocketUrl','length','JOIN_ROOM_PERMISSION_DENIED','_schedule','catch','mutations','620752xOkkzo','location','_onRecvEvent','OTHER_CLIENTS_EDITING','_candidateSocket','filter','_sessionStatus$','_updateState','_logService','stopTime','_onCombEvent','updateMember','_getCtorByUniverType','_socketService','getCollabEntity','ISocketService','_collaborationPaused','awaiting','onRemoteChangeset','\x20to\x20','executeCommand','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','collaboration_new_changeset','status$','_executeRemoteChangeset','now','permissionRejEvent','getSheetId','[OfflineState]:\x20received\x20rejection.','NEW_CHANGESETS','JOINING','roomInfos','SOCKET_FAILED','UPDATE_CURSOR','body','HEARTBEAT','_removeRoom','SOCKET_FAILED_RETRY','open$','CLOSE_ROOM','getOwnPropertyDescriptor','readyForCollab','appendMutation','_createInitialStateImpl','2592078xDTTiy','@univerjs/telemetry','members','fromCollab','getRandomValues','SnapshotService','_telemetryService','UNRECOGNIZED','loadSheet','online$','FBase','GLOBAL_ROOMS_CNT_EXCEEDS','/universer-api/user/session-ticket','onMissingChangesets','getCurrentRevOfUnit','baseRev','Inject','\x0aCurrent:\x20','values','setShowComponents','getUniverSheet','transformUndoRedo','_resendTimer','ILogService','_awaitingChangeset','onlyLocal','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','IDLE','_compressMutationService','unsubscribe','_lockTransition','RevisionService','_onConnectionOpen','socket\x20open.','_isPermissionRej','RETRY_CONNECTING_MAX_COUNT','[SyncedState]:\x20received\x20rejection.','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','Injector','\x20in\x20_schedule.','UNIVER_SHEET','toggleOffline','COMMENT_UPDATE','ws://127.0.0.1:8000/universer-api/comb/connect','FAIL','_changesetSessionId','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','from','JOIN_ROOM_FULL','_sendingTimer','[PendingState]:\x20received\x20rejection.','type','call','UNKNOWN_CMD','UNIVER_DOC','JOIN','close$','pauseCollaboration','_transformService','536179sSBCOn','_resendTimeout','m2Prime','updatePermissionObjEvent','_handler','SUBMIT_CHANGESET','resend','error$','_queuedRemoteChangesets','_resendWithTimeout','_transformUndoredo','entityInit$','COMPRESS_MUTATION_APPLY','_unlockTransition','onCommentUpdate','HEARTBEAT_INTERVAL','_showConflictNotification','retryConnectingInterval','delete','USERS_ENTER','collaboration-client.local-cache-service','RECV','size','_joinRoom','toggleOnline','rxjs','_state','_exhaustRemoteChangesetQueue','forEach','[OfflineState]:\x20received\x20changeset.','SYNCED','_permissionService','randomUUID','_retryConnectingTimer','updateCursorEvent','\x20-\x20','getConfig','onRemoteRej','save\x20fail\x20reason\x20is\x20','sessionStatus$','add','_networkConditionService','connection\x20error','takeUntil','onTransformIME','parseChangesetToProtocol','startsWith','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','dispose$','_checkMissing','_waitForHeartbeatResponse','getCollabEntity$','offline','fetchMiss','startTime','searchParams','_onConnectionFailed','_singleActiveUnitService','fetch_missing','localCacheService','dispose','eventID','onSendChangeset','getCurrentSelections','SHOULD_CLOSE_CONN','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','set','LIVESHARE_REQUEST_HOST','CHANGESET_REJ','ITransformService','MSG_FOR_ERROR','USERS_LEAVE','_pendingMutations','_fetchMissChangesets','_event$','close','onSyncEditingCollabCursor','ISnapshotServerService','COMPRESS_MUTATION_SEND','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_submitChangeset','_sessions','_collaborationTimeoutTimer','CompressMutationService','SUBMIT_CHANGESET_TIMEOUT','unitId','defineProperty','onTransformState','mapDocumentTypeToUniverType','_getSendChangesetTimeout','getAllMembers','isPermissionRej','message$','_commandService','MUTATION','_state$','updateOfflineData','_init','_createSocketURL','UPDATE_PERMISSION_OBJ','LEAVE','Module','_transformRemoteChangesetByStateCache','params','_replayCachedMutations','RxDisposable','liveShareNewHost','debug','every','csRejEvent','_applyRemoteChangeset','status','FCollaboration','pending','take','[OfflineState]:\x20received\x20acknowledgement.','_httpService','InsertSheetMutation','getTime','[PendingState]:\x20received\x20acknowledgement.','socket\x20close','sid','next','push','session','_onOffline','fetchThroughInterceptors','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','UniverInstanceType','OFFLINE','_onMessage','asObservable','_tryReconnect','toStringTag','rng','_onUserJoin','transformSelections','PERMISSION_DENIED','onRemoteAck','_transformStateCache','_configService','_revisionService','HEARTBEAT_TIMEOUT','reconnect','_shouldReportTelemetry','reqId','COLLAB_SUBMIT_CHANGESET_URL','transformChangesets','_socket$','_snapshotServerService','PENDING','_undoRedoService','_transformSelections','transformMutationsWithChangeset','_collabSessionService','removeMember','CONFLICT','_onJoinRoomEvent','_startCollaboration','SheetsSelectionsService','univer-pro.collaboration-client-socket-service','createInstance','createIdentifier','joinRsp','_socketMessageSubscription','_clearLocalCache','_disableEditing','_entities','_snapshotService','delay','disposeWithMe','_localeService','onTransformRemoteChangesetByIMECache','@univerjs/core','toString','csShouldRetryEvent','stringify','failed\x20to\x20apply\x20missed\x20changesets!','_changesetReqId','72180APETlu','_onRemoteRetry','revision','ICommandService','_onLocalMutation','ReplaySubject','_commentUpdate$','cmd','_http','onRemoteRetry','_retryCount','_collaborationController','slice','session.room-permission-denied','sendChangesetTimeout','_sender','EmptyMutation','commentUpdateEvent','symbol','_onRemoteACK','shareReplay','loadOfflineData','_onUserLeave','memberID','INGEST','LIVESHARE_FETCH_OPERATIONS','Disposable','isTransformMutationsWithChangesetSuccess','getUnitId','updatePermissionPoint','_transformIMECache','duration','_telemetryInfo','_startTelemetryCollaborationNewChangeset','FUniver','_collaborationUIEventService','onTransformRemoteChangesetByStateCache','_memberService','_throwTelemetryCollaborationNewChangeset','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','Rectangle','error','_socket','post','@univerjs/network','closeSession','_transitionLocked','extend','pipe','_onConflict','deepClone','_univerInstanceService','map','session.room-not-exists','_localCacheService','@univerjs/docs','_clearScheduledTask','isTransformChangesetsSuccess','rxjs/operators','telemetry\x20info\x20is\x20not\x20initialized','6407352JnmWQk','unitID','actions','getUnitType','apply','\x0aAfter:\x20','capture','csAckEvent','getValue','conflict','awaiting_with_pending','getMember','onLocalMutation','IUndoRedoService','_onRemoteRejected','_members','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_commentService','init','unknown','onMissedChangesetFetched','userID','CHANGESET_SHOULD_RETRY','collaboration-client.config','_transformRemoteChangesetByIMECache','_rescheduleHeartbeat','CommandType','commentUpdate$','_onFetchMissResult','Optional','_eventService','data','_remoteChangesetQueue','_handlerCallback','onTransformSelections','15OjWHew','requireSession','IConfigService','@univerjs/sheets','changesets','_sendHeartbeatTimer','fetchMissingChangesets','_scheduleTimestamp','_instanceService','COLLAB_WEB_SOCKET_URL','interceptor','selections','_listenToNetworkCondition','synced','getTypeOfUnitAdded$','_type','getCurrentUser','toLowerCase','get','not_collab','routeKey','Subject','[CollaborationSessionService]:\x20socket\x20error','_roomMembers','LocaleService','wsSessionTicketUrl','submit\x20changeset\x20error!','7296414PoRDMv','[CollaborationSession]','_createSocket','JOIN_ROOM_NOT_EXISTS','toDisposable','code','subUnitId','LIVESHARE_NEW_HOST','_scheduleCollaborationTimeoutTimer','/new_changes','leaveEvent','UNIVER_SLIDE','session.room-full','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','onStateChange','editing\x20status\x20changed\x20to','clear','getInterceptPoints','RichTextEditingMutation','_toggleOffline','state','WorkbookEditablePermission','UNIVER_PROJECT','getTypeOfUnitDisposed$','_timeoutTimer','getUnit','univer-pro.collaboration-client.network-condition.service','sessionStatus','[FetchMissState]','getMemberID','_acknowledgedAwaitingChangeset','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','LIVESHARE_OPERATION','BehaviorSubject','JOIN_ROOM_FAILED','ITelemetryService','parseProtocolChangeset','compose','_toggleOnline','bind','isArray','_sendHeartbeat','NOT_COLLAB','6456825WXkkxk','_stopTelemetryCollaborationNewChangeset','OTHER_CLIENT_EDITING','IPermissionService','ONLINE','[CollaborationSessionService]','_createHandler','_incrementRevisionNumber','FETCH_MISSING','application/json','_unitID','CollaborationEvent','_clearCollaborationTimeoutTimer','state$','createSocket','_status$','event$','getWorkbookSelections','send','_entityInit$','addHandlerCallback','UNIVER_UNKNOWN','AWAITING_WITH_PENDING','/universer-api/comb','HELLO','_clearTimeoutTimer','[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.','_updateLocalCache','getActiveSheet','IUniverInstanceService','origin','getRoom','max','_socketReady','getUnitStatus$','_tryEnsureSocket','CHANGESET_ACK','JSONX','_injector'];_0xbf81=function(){return _0x847cef;};return _0xbf81();}var N=(_0x4cf083=>(_0x4cf083[_0x4cf083[_0x572f33(0x339)]=0x0]=_0x572f33(0x339),_0x4cf083[_0x4cf083[_0x572f33(0x1c7)]=0x1]=_0x572f33(0x1c7),_0x4cf083[_0x4cf083[_0x572f33(0x1b8)]=0x2]=_0x572f33(0x1b8),_0x4cf083[_0x4cf083['UNIVER_SLIDE']=0x3]=_0x572f33(0x304),_0x4cf083[_0x4cf083['UNIVER_PROJECT']=0x4]=_0x572f33(0x30f),_0x4cf083[_0x4cf083[_0x572f33(0x197)]=-0x1]='UNRECOGNIZED',_0x4cf083))(N||{}),p=(_0x54ea31=>(_0x54ea31[_0x54ea31[_0x572f33(0x1c6)]=0x0]=_0x572f33(0x1c6),_0x54ea31[_0x54ea31['HELLO']=0x1]=_0x572f33(0x13f),_0x54ea31[_0x54ea31['JOIN']=0x2]=_0x572f33(0x1c8),_0x54ea31[_0x54ea31[_0x572f33(0x230)]=0x3]=_0x572f33(0x230),_0x54ea31[_0x54ea31[_0x572f33(0x297)]=0x4]=_0x572f33(0x297),_0x54ea31[_0x54ea31[_0x572f33(0x187)]=0x5]='HEARTBEAT',_0x54ea31[_0x54ea31[_0x572f33(0x1e1)]=0x6]=_0x572f33(0x1e1),_0x54ea31[_0x54ea31['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x54ea31))(p||{}),k=(_0x2f7e74=>(_0x2f7e74[_0x2f7e74['UNKNOWN_CODE']=0x0]=_0x572f33(0x152),_0x2f7e74[_0x2f7e74['OK']=0x1]='OK',_0x2f7e74[_0x2f7e74[_0x572f33(0x1bc)]=0x2]=_0x572f33(0x1bc),_0x2f7e74[_0x2f7e74[_0x572f33(0x1c1)]=0x3e9]='JOIN_ROOM_FULL',_0x2f7e74[_0x2f7e74[_0x572f33(0x2fc)]=0x3ea]='JOIN_ROOM_NOT_EXISTS',_0x2f7e74[_0x2f7e74[_0x572f33(0x160)]=0x3eb]=_0x572f33(0x160),_0x2f7e74[_0x2f7e74['GLOBAL_ROOMS_CNT_EXCEEDS']=0x3ec]=_0x572f33(0x19b),_0x2f7e74[_0x2f7e74[_0x572f33(0x197)]=-0x1]='UNRECOGNIZED',_0x2f7e74))(k||{});const Ne=0x7d0,De=_0x572f33(0x2e7),Me=_0x572f33(0x1bb),we=_0x572f33(0x19c),Ue=_0x572f33(0x1db),Le=0x7530,Ie=_0x572f33(0x25a),ve=0x4e20,Ae=0x4e20,je=_0x572f33(0x1b3),ke=0x3,Pe=_0x572f33(0x25e),$e=_0x572f33(0x13e),B=_0x572f33(0x2d2);var M=(_0x2714b0=>(_0x2714b0[_0x572f33(0x326)]=_0x572f33(0x326),_0x2714b0['PERMISSION_DENIED']=_0x572f33(0x255),_0x2714b0[_0x572f33(0x268)]=_0x572f33(0x268),_0x2714b0[_0x572f33(0x18b)]=_0x572f33(0x18b),_0x2714b0['JOIN_ROOM_FAILED']=_0x572f33(0x31b),_0x2714b0[_0x572f33(0x189)]=_0x572f33(0x189),_0x2714b0[_0x572f33(0x184)]=_0x572f33(0x184),_0x2714b0[_0x572f33(0x220)]=_0x572f33(0x220),_0x2714b0))(M||{});class G{constructor(){const _0x317bcb=_0x572f33;_(this,'_event$',new E[(_0x317bcb(0x2f3))]()),_(this,'event$',this[_0x317bcb(0x216)][_0x317bcb(0x24f)]());}[_0x572f33(0x154)](_0xbfbba0){const _0xf99e85=_0x572f33;this[_0xf99e85(0x216)][_0xf99e85(0x246)](_0xbfbba0);}}const He=r['createIdentifier'](_0x572f33(0x313));function xe(_0x61bcd6){const _0x43a364=_0x572f33;var _0x4a4530,_0x276811,_0x47c959,_0x2a879e,_0x43dbe9;const _0x13e7c4=_0x61bcd6[_0x43a364(0x2da)],_0x1eba9d=JSON['parse'](_0x13e7c4);switch(_0x1eba9d[_0x43a364(0x286)]){case p[_0x43a364(0x187)]:case p[_0x43a364(0x13f)]:{const _0x289a44=_0x1eba9d['infoRsp'];return{..._0x1eba9d,'data':_0x289a44,'cmd':_0x1eba9d[_0x43a364(0x286)]};}case p[_0x43a364(0x1c8)]:{const _0x4b34c7=_0x1eba9d[_0x43a364(0x26f)];return{..._0x1eba9d,'data':_0x4b34c7,'cmd':_0x1eba9d[_0x43a364(0x286)]};}case p[_0x43a364(0x1e1)]:{const _0x14e985=_0x1eba9d['collaMsg'];switch(_0x14e985[_0x43a364(0x209)]){case h['CollaborationEvent']['PERMISSION_REJ']:return{..._0x1eba9d,'data':{..._0x14e985,'data':(_0x4a4530=_0x14e985[_0x43a364(0x17e)])==null?void 0x0:_0x4a4530['cs']},'cmd':_0x1eba9d['cmd']};case h[_0x43a364(0x32f)][_0x43a364(0x14b)]:return{..._0x1eba9d,'data':{..._0x14e985,'data':(_0x276811=_0x14e985[_0x43a364(0x2c2)])==null?void 0x0:_0x276811['cs']},'cmd':_0x1eba9d[_0x43a364(0x286)]};case h['CollaborationEvent'][_0x43a364(0x181)]:return{..._0x1eba9d,'data':{..._0x14e985,'data':(_0x47c959=_0x14e985[_0x43a364(0x15c)])==null?void 0x0:_0x47c959['cs']},'cmd':_0x1eba9d['cmd']};case h[_0x43a364(0x32f)][_0x43a364(0x210)]:return{..._0x1eba9d,'data':{..._0x14e985,'data':(_0x2a879e=_0x14e985[_0x43a364(0x239)])==null?void 0x0:_0x2a879e['cs']},'cmd':_0x1eba9d[_0x43a364(0x286)]};case h[_0x43a364(0x32f)]['CHANGESET_SHOULD_RETRY']:return{..._0x1eba9d,'data':{..._0x14e985,'data':(_0x43dbe9=_0x14e985[_0x43a364(0x27b)])==null?void 0x0:_0x43dbe9['cs']},'cmd':_0x1eba9d[_0x43a364(0x286)]};case h[_0x43a364(0x32f)]['UPDATE_CURSOR']:return{..._0x1eba9d,'data':{..._0x14e985,'data':_0x14e985[_0x43a364(0x1ee)]},'cmd':_0x1eba9d[_0x43a364(0x286)]};case h[_0x43a364(0x32f)][_0x43a364(0x1df)]:return{..._0x1eba9d,'data':{..._0x14e985,'data':_0x14e985['joinEvent']},'cmd':_0x1eba9d['cmd']};case h[_0x43a364(0x32f)][_0x43a364(0x213)]:return{..._0x1eba9d,'data':{..._0x14e985,'data':_0x14e985[_0x43a364(0x303)]},'cmd':_0x1eba9d[_0x43a364(0x286)]};case h[_0x43a364(0x32f)][_0x43a364(0x300)]:return{..._0x1eba9d,'data':{..._0x14e985,'data':_0x14e985[_0x43a364(0x236)]},'cmd':_0x1eba9d['cmd']};case h['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:case h[_0x43a364(0x32f)][_0x43a364(0x319)]:return{..._0x1eba9d,'data':{..._0x14e985,'data':_0x14e985['liveShareOperation']},'cmd':_0x1eba9d['cmd']};case h[_0x43a364(0x32f)][_0x43a364(0x15a)]:return{..._0x1eba9d,'data':{..._0x14e985,'data':_0x14e985[_0x43a364(0x236)]},'cmd':_0x1eba9d[_0x43a364(0x286)]};case h[_0x43a364(0x32f)][_0x43a364(0x212)]:return{..._0x1eba9d,'data':_0x14e985,'cmd':_0x1eba9d[_0x43a364(0x286)]};case h[_0x43a364(0x32f)][_0x43a364(0x1ba)]:return{..._0x1eba9d,'data':{..._0x14e985,'data':_0x14e985[_0x43a364(0x290)]},'cmd':_0x1eba9d[_0x43a364(0x286)]};case h[_0x43a364(0x32f)][_0x43a364(0x22f)]:return{..._0x1eba9d,'data':{..._0x14e985,'data':_0x14e985[_0x43a364(0x1cf)]},'cmd':_0x1eba9d[_0x43a364(0x286)]};case h[_0x43a364(0x32f)][_0x43a364(0x20c)]:return{..._0x1eba9d,'data':{..._0x14e985,'data':_0x14e985['shouldCloseConn']},'cmd':_0x1eba9d[_0x43a364(0x286)]};default:return _0x1eba9d;}}default:return _0x1eba9d;}}function Fe(_0x4f6cb4){const _0x34d474=_0x572f33;switch(_0x4f6cb4[_0x34d474(0x286)]){case p[_0x34d474(0x187)]:case p['HELLO']:return JSON[_0x34d474(0x27c)]({'cmd':_0x4f6cb4[_0x34d474(0x286)],'routeKey':_0x4f6cb4[_0x34d474(0x2f2)]});case p['INGEST']:{let _0x4d6382;switch(_0x4f6cb4['data']['eventID']){case h[_0x34d474(0x32f)][_0x34d474(0x185)]:{_0x4d6382={'eventID':h['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x4f6cb4[_0x34d474(0x2da)][_0x34d474(0x2da)]};break;}case h[_0x34d474(0x32f)][_0x34d474(0x213)]:{_0x4d6382={'eventID':h[_0x34d474(0x32f)][_0x34d474(0x213)],'leaveEvent':_0x4f6cb4['data'][_0x34d474(0x2da)]};break;}case h[_0x34d474(0x32f)]['USERS_ENTER']:{_0x4d6382={'eventID':h['CollaborationEvent'][_0x34d474(0x1df)],'joinEvent':_0x4f6cb4[_0x34d474(0x2da)]['data']};break;}case h[_0x34d474(0x32f)][_0x34d474(0x300)]:{_0x4d6382={'eventID':h[_0x34d474(0x32f)][_0x34d474(0x300)],'liveShareNewHost':_0x4f6cb4[_0x34d474(0x2da)][_0x34d474(0x2da)]};break;}case h[_0x34d474(0x32f)][_0x34d474(0x319)]:{_0x4d6382={'eventID':h[_0x34d474(0x32f)][_0x34d474(0x319)],'liveShareOperation':_0x4f6cb4['data'][_0x34d474(0x2da)]};break;}case h['CollaborationEvent']['LIVESHARE_TERMINATE']:{_0x4d6382={'eventID':h[_0x34d474(0x32f)][_0x34d474(0x15a)],'liveShareTerminate':_0x4f6cb4[_0x34d474(0x2da)][_0x34d474(0x2da)]};break;}case h[_0x34d474(0x32f)][_0x34d474(0x20f)]:{_0x4d6382={'eventID':h['CollaborationEvent'][_0x34d474(0x20f)],'liveShareRequestHost':_0x4f6cb4['data']['data']};break;}case h[_0x34d474(0x32f)]['LIVESHARE_FETCH_OPERATIONS']:{_0x4d6382={'eventID':h[_0x34d474(0x32f)][_0x34d474(0x298)]};break;}default:_0x4d6382={'eventID':_0x4f6cb4['data'][_0x34d474(0x209)]};}return JSON[_0x34d474(0x27c)]({'cmd':_0x4f6cb4['cmd'],'routeKey':_0x4f6cb4[_0x34d474(0x2f2)],'collaMsg':_0x4d6382});}case p['JOIN']:return JSON[_0x34d474(0x27c)]({'cmd':_0x4f6cb4[_0x34d474(0x286)],'routeKey':_0x4f6cb4[_0x34d474(0x2f2)],'joinReq':_0x4f6cb4[_0x34d474(0x2da)]});case p[_0x34d474(0x230)]:return JSON[_0x34d474(0x27c)]({'cmd':_0x4f6cb4[_0x34d474(0x286)],'routeKey':_0x4f6cb4[_0x34d474(0x2f2)],'leaveReq':_0x4f6cb4[_0x34d474(0x2da)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var Ge=Object[_0x572f33(0x222)],Ve=Object[_0x572f33(0x18c)],Be=(_0x103744,_0x33188a,_0x5e6764,_0x2150e6)=>{const _0x27f923=_0x572f33;for(var _0x287407=_0x2150e6>0x1?void 0x0:_0x2150e6?Ve(_0x33188a,_0x5e6764):_0x33188a,_0x160970=_0x103744[_0x27f923(0x15f)]-0x1,_0x1e0ba8;_0x160970>=0x0;_0x160970--)(_0x1e0ba8=_0x103744[_0x160970])&&(_0x287407=(_0x2150e6?_0x1e0ba8(_0x33188a,_0x5e6764,_0x287407):_0x1e0ba8(_0x287407))||_0x287407);return _0x2150e6&&_0x287407&&Ge(_0x33188a,_0x5e6764,_0x287407),_0x287407;},V=(_0x29055d,_0x3227d6)=>(_0x5d81cb,_0x1a575c)=>_0x3227d6(_0x5d81cb,_0x1a575c,_0x29055d);const We=r['createIdentifier'](_0x572f33(0x26c));function Ke(_0x38a1ec,_0x3a2b8b,_0x5dfe50){const _0x23f84b=_0x572f33;return _0x38a1ec+'/'+_0x3a2b8b+'/unit/'+_0x5dfe50+_0x23f84b(0x302);}let he=class extends r[_0x572f33(0x299)]{constructor(_0x336361,_0x230d89,_0x3cabe6,_0x3115c1,_0x34e19c){const _0x55edea=_0x572f33;super(),this['_injector']=_0x336361,this['_http']=_0x230d89,this[_0x55edea(0x258)]=_0x3cabe6,this['_logService']=_0x3115c1,this[_0x55edea(0x261)]=_0x34e19c;}[_0x572f33(0x332)](_0x220531){const _0x3ead6b=_0x572f33,_0x498431=this[_0x3ead6b(0x14d)][_0x3ead6b(0x2f0)](re[_0x3ead6b(0x173)]);if(!_0x498431)throw new Error(_0x3ead6b(0x2cb));const _0x1042f1=_0x498431[_0x3ead6b(0x332)](_0x220531);if(!_0x1042f1)throw new Error(_0x3ead6b(0x20d));const _0x376c54=new r['DisposableCollection'](),_0x21a60b=new E[(_0x3ead6b(0x2f3))]();_0x376c54['add'](_0x1042f1[_0x3ead6b(0x1c9)]['subscribe'](_0x4edcba=>_0x21a60b['next'](_0x4edcba))),_0x376c54['add'](r[_0x3ead6b(0x2fd)](()=>_0x21a60b['complete']()));const _0x10ac81=new E[(_0x3ead6b(0x2f3))]();_0x376c54[_0x3ead6b(0x1f4)](_0x1042f1[_0x3ead6b(0x1d3)]['subscribe'](_0x5edfa2=>_0x10ac81[_0x3ead6b(0x246)](_0x5edfa2))),_0x376c54[_0x3ead6b(0x1f4)](r[_0x3ead6b(0x2fd)](()=>_0x10ac81['complete']()));const _0x5d8cca=new E['Subject']();_0x376c54[_0x3ead6b(0x1f4)](_0x1042f1['message$'][_0x3ead6b(0x151)](_0x380a70=>{const _0x569e24=xe(_0x380a70);_0x5d8cca['next'](_0x569e24);})),_0x376c54[_0x3ead6b(0x1f4)](r[_0x3ead6b(0x2fd)](()=>_0x5d8cca[_0x3ead6b(0x156)]()));let _0x3e324d;const _0x2cde85=()=>{const _0x1676ea=_0x3ead6b;_0x10ac81[_0x1676ea(0x246)](new Event(_0x1676ea(0x1f6))),_0x21a60b['next'](new CloseEvent(_0x1676ea(0x1f6))),_0x3e324d['close']();};return _0x3e324d={'memberID':'','close$':_0x21a60b[_0x3ead6b(0x24f)](),'error$':_0x10ac81['asObservable'](),'open$':_0x1042f1['open$'],'message$':_0x5d8cca[_0x3ead6b(0x24f)](),'send':_0x38df68=>{const _0xb9cf12=_0x3ead6b;if(_0x38df68[_0xb9cf12(0x286)]===p[_0xb9cf12(0x297)]){if(_0x38df68[_0xb9cf12(0x2da)]['eventID']===h[_0xb9cf12(0x32f)]['SUBMIT_CHANGESET']){this[_0xb9cf12(0x21c)](_0x3e324d,_0x38df68[_0xb9cf12(0x2da)])[_0xb9cf12(0x162)](_0x377e31=>{const _0xc3d139=_0xb9cf12;this[_0xc3d139(0x16c)]['error'](_0x377e31),_0x2cde85();});return;}if(_0x38df68['data']['eventID']===h['CollaborationEvent']['FETCH_MISSING']){const _0x4c22fe=_0x38df68[_0xb9cf12(0x2da)];this[_0xb9cf12(0x215)](_0x4c22fe)['then'](_0x25adf4=>{const _0x1fd3fe=_0xb9cf12;_0x5d8cca[_0x1fd3fe(0x246)]({'cmd':p[_0x1fd3fe(0x1e1)],'code':k['OK'],'routeKey':_0x4c22fe[_0x1fd3fe(0x2da)][_0x1fd3fe(0x2bc)],'routeType':'','data':{'eventID':h[_0x1fd3fe(0x32f)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x25adf4}}});})[_0xb9cf12(0x162)](_0x3b9b5e=>{this['_logService']['error'](_0x3b9b5e),_0x2cde85();});return;}}_0x1042f1[_0xb9cf12(0x336)](Fe(_0x38df68));},'close':()=>{const _0x3695e9=_0x3ead6b;_0x1042f1[_0x3695e9(0x217)](),_0x376c54[_0x3695e9(0x208)]();}},_0x3e324d;}async[_0x572f33(0x21c)](_0x42d69f,_0xd57e15){const _0x129c3d=_0x572f33;var _0x5a4ed7,_0x493e3d;const {unitType:_0x2528cf,unitID:_0x1c9450,changeset:_0x1370b0}=_0xd57e15[_0x129c3d(0x2da)],_0xd88761={'unitID':_0x1c9450,'memberID':_0x42d69f[_0x129c3d(0x296)],'type':_0x2528cf,'changeset':h[_0x129c3d(0x1f9)](_0x1370b0)},_0x32d402=this['_configService'][_0x129c3d(0x1f0)](Pe),_0x3d03fb=this[_0x129c3d(0x258)][_0x129c3d(0x1f0)](B),_0x446c7e=Ke((_0x493e3d=(_0x5a4ed7=_0x3d03fb==null?void 0x0:_0x3d03fb['collabSubmitChangesetUrl'])!=null?_0x5a4ed7:_0x32d402)!=null?_0x493e3d:$e,_0x2528cf,_0x1c9450);try{await this[_0x129c3d(0x287)][_0x129c3d(0x2aa)](_0x446c7e,{'body':_0xd88761});}catch(_0x3e74cd){throw this[_0x129c3d(0x16c)]['error']('[CollaborationSession]',_0x129c3d(0x2f8)),_0x3e74cd;}}async[_0x572f33(0x215)](_0x28fb5e){const _0x48413c=_0x572f33,{unitID:_0xe382ec,from:_0x1b8085,to:_0x388f9b,unitType:_0x47e27f}=_0x28fb5e[_0x48413c(0x2da)];return(await this[_0x48413c(0x261)][_0x48413c(0x2e4)]({'metadata':void 0x0},{'unitID':_0xe382ec,'type':_0x47e27f,'from':_0x1b8085,'to':_0x388f9b}))[_0x48413c(0x2e2)];}};he=Be([V(0x0,r[_0x572f33(0x1a0)](r['Injector'])),V(0x1,r['Inject'](re['HTTPService'])),V(0x2,r['IConfigService']),V(0x3,r['ILogService']),V(0x4,h[_0x572f33(0x219)])],he);const Je=_0x572f33(0x17a);function qe(_0x881333){const _0x10c0f8=_0x572f33;return JSON[_0x10c0f8(0x27c)](_0x881333)[_0x10c0f8(0x15f)];}class Ye{constructor(){const _0x11a3c1=_0x572f33;_(this,_0x11a3c1(0x285),new E['Subject']()),_(this,_0x11a3c1(0x2d6),this['_commentUpdate$']['asObservable']());}['onCommentUpdate'](_0x6f7e1a){const _0x5cafb1=_0x572f33;this[_0x5cafb1(0x285)][_0x5cafb1(0x246)](_0x6f7e1a);}}var Xe=Object[_0x572f33(0x222)],Qe=Object['getOwnPropertyDescriptor'],ze=(_0x5dc9c7,_0x5ed22f,_0x43b839,_0x48245a)=>{const _0x4d98c8=_0x572f33;for(var _0x37a663=_0x48245a>0x1?void 0x0:_0x48245a?Qe(_0x5ed22f,_0x43b839):_0x5ed22f,_0x4a2aaf=_0x5dc9c7[_0x4d98c8(0x15f)]-0x1,_0x3816d7;_0x4a2aaf>=0x0;_0x4a2aaf--)(_0x3816d7=_0x5dc9c7[_0x4a2aaf])&&(_0x37a663=(_0x48245a?_0x3816d7(_0x5ed22f,_0x43b839,_0x37a663):_0x3816d7(_0x37a663))||_0x37a663);return _0x48245a&&_0x37a663&&Xe(_0x5ed22f,_0x43b839,_0x37a663),_0x37a663;},le=(_0xdbd38b,_0x4c1ae6)=>(_0x5a0499,_0x2ea14e)=>_0x4c1ae6(_0x5a0499,_0x2ea14e,_0xdbd38b);let W=class extends r['Disposable']{constructor(_0x30020e,_0xe68317){const _0x306640=_0x572f33;super(),_(this,_0x306640(0x2f5),new Map()),(this[_0x306640(0x2b2)]=_0x30020e,this['_userManagerService']=_0xe68317,this['disposeWithMe'](r[_0x306640(0x2fd)](E['merge'](this[_0x306640(0x2b2)]['getTypeOfUnitDisposed$'](r[_0x306640(0x24c)][_0x306640(0x1b8)])[_0x306640(0x2af)](f[_0x306640(0x2b3)](_0x432111=>_0x432111['getUnitId']())),this['_univerInstanceService'][_0x306640(0x310)](r[_0x306640(0x24c)][_0x306640(0x1c7)])[_0x306640(0x2af)](f[_0x306640(0x2b3)](_0x1de994=>_0x1de994[_0x306640(0x29b)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](r[_0x306640(0x24c)][_0x306640(0x304)])['pipe'](f[_0x306640(0x2b3)](_0x59e3d1=>_0x59e3d1[_0x306640(0x29b)]())))[_0x306640(0x151)](_0x2ccd80=>this['_removeRoom'](_0x2ccd80)))));}['setCurrentUser'](_0x3dd25f){this['_userManagerService']['setCurrentUser'](_0x3dd25f);}['getCurrentUser'](){const _0x318685=_0x572f33;return this['_userManagerService'][_0x318685(0x2ee)]();}[_0x572f33(0x16f)](_0x3567cd,_0x5648e3){const _0x47e0a8=_0x572f33;let _0x2a6d2d=this['_roomMembers'][_0x47e0a8(0x2f0)](_0x3567cd);_0x2a6d2d||(_0x2a6d2d=new Ze(),this[_0x47e0a8(0x2f5)][_0x47e0a8(0x20e)](_0x3567cd,_0x2a6d2d)),_0x2a6d2d[_0x47e0a8(0x16f)](_0x5648e3);}[_0x572f33(0x267)](_0x414e6e,_0x207a2a){const _0x30bfaa=_0x572f33,_0xb4f4d5=this[_0x30bfaa(0x2f5)][_0x30bfaa(0x2f0)](_0x414e6e);_0xb4f4d5&&_0xb4f4d5[_0x30bfaa(0x267)](_0x207a2a);}[_0x572f33(0x146)](_0x47e5a9){const _0x335375=_0x572f33;return this[_0x335375(0x2f5)]['get'](_0x47e5a9);}[_0x572f33(0x2c6)](_0x190cac,_0x10feaa){const _0x5c942c=_0x572f33,_0x3d7fe9=this[_0x5c942c(0x2f5)][_0x5c942c(0x2f0)](_0x190cac);if(_0x3d7fe9)return _0x3d7fe9[_0x5c942c(0x2c6)](_0x10feaa);}[_0x572f33(0x188)](_0xc47ce8){const _0x4aec5f=_0x572f33,_0x2aedd8=this['_roomMembers'][_0x4aec5f(0x2f0)](_0xc47ce8);_0x2aedd8&&(_0x2aedd8[_0x4aec5f(0x208)](),this['_roomMembers']['delete'](_0xc47ce8));}[_0x572f33(0x208)](){this['_roomMembers']['forEach'](_0xcdb8c5=>_0xcdb8c5['dispose']()),this['_roomMembers']['clear']();}};W=ze([le(0x0,r[_0x572f33(0x144)]),le(0x1,r[_0x572f33(0x1a0)](r['UserManagerService']))],W);class Ze extends r[_0x572f33(0x299)]{constructor(){const _0x410fd4=_0x572f33;super(...arguments),_(this,_0x410fd4(0x2ca),new Map());}[_0x572f33(0x208)](){const _0xebbea0=_0x572f33;this['_members'][_0xebbea0(0x309)]();}[_0x572f33(0x16f)](_0x77e53e){const _0x5c8fe1=_0x572f33;this[_0x5c8fe1(0x2ca)][_0x5c8fe1(0x20e)](_0x77e53e[_0x5c8fe1(0x296)],_0x77e53e);}[_0x572f33(0x267)](_0x50a455){const _0x35b56f=_0x572f33;this['_members'][_0x35b56f(0x1de)](_0x50a455);}[_0x572f33(0x2c6)](_0x416dfe){const _0x5a52a9=_0x572f33;return this[_0x5a52a9(0x2ca)][_0x5a52a9(0x2f0)](_0x416dfe);}[_0x572f33(0x226)](){const _0x59bce4=_0x572f33;return Array[_0x59bce4(0x1c0)](this['_members'][_0x59bce4(0x1a2)]());}}var et=Object['defineProperty'],tt=Object[_0x572f33(0x18c)],it=(_0x4a2d76,_0x17a860,_0x47b52e,_0x2b302b)=>{const _0x5ce691=_0x572f33;for(var _0x1dea6b=_0x2b302b>0x1?void 0x0:_0x2b302b?tt(_0x17a860,_0x47b52e):_0x17a860,_0x1a5d45=_0x4a2d76[_0x5ce691(0x15f)]-0x1,_0x2262f6;_0x1a5d45>=0x0;_0x1a5d45--)(_0x2262f6=_0x4a2d76[_0x1a5d45])&&(_0x1dea6b=(_0x2b302b?_0x2262f6(_0x17a860,_0x47b52e,_0x1dea6b):_0x2262f6(_0x1dea6b))||_0x1dea6b);return _0x2b302b&&_0x1dea6b&&et(_0x17a860,_0x47b52e,_0x1dea6b),_0x1dea6b;},A=(_0x3152c4,_0x2712eb)=>(_0x588449,_0x455573)=>_0x2712eb(_0x588449,_0x455573,_0x3152c4),P=(_0x44bf6a=>(_0x44bf6a[_0x44bf6a['IDLE']=0x0]=_0x572f33(0x1ab),_0x44bf6a[_0x44bf6a['JOINING']=0x1]=_0x572f33(0x182),_0x44bf6a[_0x44bf6a[_0x572f33(0x24d)]=0x2]='OFFLINE',_0x44bf6a[_0x44bf6a['ONLINE']=0x3]=_0x572f33(0x328),_0x44bf6a))(P||{});const _e={[k[_0x572f33(0x1bc)]]:'session.join-failed',[k[_0x572f33(0x1c1)]]:_0x572f33(0x305),[k[_0x572f33(0x2fc)]]:_0x572f33(0x2b4),[k[_0x572f33(0x160)]]:_0x572f33(0x28c),[k[_0x572f33(0x19b)]]:'session.room-cnt-exceeds'};let Z=class extends r[_0x572f33(0x235)]{constructor(_0x33c325,_0x321f4c,_0x408b1e,_0x2f05b4,_0x54a93f,_0x30cf09,_0x3e1605,_0x96e047,_0x3b9c68){const _0x3da93b=_0x572f33;super(),_(this,'_sessionStatus$',new E[(_0x3da93b(0x31a))](0x0)),_(this,'sessionStatus$',this[_0x3da93b(0x16a)][_0x3da93b(0x24f)]()),_(this,_0x3da93b(0x216),new E['Subject']()),_(this,_0x3da93b(0x334),this[_0x3da93b(0x216)][_0x3da93b(0x24f)]()),_(this,'_socket'),_(this,_0x3da93b(0x270)),_(this,_0x3da93b(0x21e)),_(this,_0x3da93b(0x25c),!0x1),_(this,_0x3da93b(0x29f),null),(this[_0x3da93b(0x32e)]=_0x33c325,this['_logService']=_0x408b1e,this[_0x3da93b(0x258)]=_0x2f05b4,this['_localeService']=_0x54a93f,this[_0x3da93b(0x2a4)]=_0x30cf09,this[_0x3da93b(0x2cc)]=_0x3e1605,this[_0x3da93b(0x2a2)]=_0x96e047,this[_0x3da93b(0x196)]=_0x3b9c68,this['_shouldReportTelemetry']=!!this[_0x3da93b(0x196)],_0x321f4c[_0x3da93b(0x2af)](E[_0x3da93b(0x1f7)](this[_0x3da93b(0x1fc)]))[_0x3da93b(0x151)](_0x47eabb=>{const _0x2d9f61=_0x3da93b;var _0x3741fe;typeof _0x47eabb>'u'||(this[_0x2d9f61(0x2a9)]=_0x47eabb,_0x47eabb?(this[_0x2d9f61(0x1e3)](_0x47eabb),this['_socketMessageSubscription']=_0x47eabb[_0x2d9f61(0x228)]['subscribe'](_0xcb8dc5=>{const _0x7bd741=_0x2d9f61;_0xcb8dc5[_0x7bd741(0x2f2)]===this[_0x7bd741(0x32e)]&&this[_0x7bd741(0x16e)](_0xcb8dc5);})):(this[_0x2d9f61(0x2a5)](),this[_0x2d9f61(0x16a)][_0x2d9f61(0x246)](0x2),(_0x3741fe=this[_0x2d9f61(0x270)])==null||_0x3741fe['unsubscribe'](),this[_0x2d9f61(0x270)]=null));}));}get[_0x572f33(0x314)](){const _0x543bc6=_0x572f33;return this[_0x543bc6(0x16a)][_0x543bc6(0x2c3)]();}[_0x572f33(0x316)](){const _0x3206a7=_0x572f33;var _0x44a8c7,_0xc21765;return(_0xc21765=(_0x44a8c7=this[_0x3206a7(0x2a9)])==null?void 0x0:_0x44a8c7[_0x3206a7(0x296)])!=null?_0xc21765:null;}[_0x572f33(0x208)](){const _0x10bd07=_0x572f33;super[_0x10bd07(0x208)](),this[_0x10bd07(0x1fc)][_0x10bd07(0x246)](),this[_0x10bd07(0x1fc)][_0x10bd07(0x156)]();}[_0x572f33(0x217)](){const _0x3ce49e=_0x572f33;var _0x51a116,_0x5ebca1;this[_0x3ce49e(0x2a5)](),(_0x51a116=this[_0x3ce49e(0x2a9)])==null||_0x51a116[_0x3ce49e(0x336)]({'cmd':p[_0x3ce49e(0x230)],'data':{'roomID':this[_0x3ce49e(0x32e)]}}),(_0x5ebca1=this[_0x3ce49e(0x2a9)])==null||_0x5ebca1[_0x3ce49e(0x217)](),this[_0x3ce49e(0x216)][_0x3ce49e(0x156)](),this[_0x3ce49e(0x16a)][_0x3ce49e(0x156)](),this[_0x3ce49e(0x208)]();}[_0x572f33(0x16e)](_0xf774c4){const _0x5aa1f0=_0x572f33;_0xf774c4[_0x5aa1f0(0x286)]===p[_0x5aa1f0(0x1c8)]?this[_0x5aa1f0(0x269)](_0xf774c4):_0xf774c4[_0x5aa1f0(0x286)]===p[_0x5aa1f0(0x1e1)]&&this[_0x5aa1f0(0x166)](_0xf774c4);}[_0x572f33(0x1e3)](_0x12f016){const _0x164d9c=_0x572f33;this[_0x164d9c(0x16a)][_0x164d9c(0x246)](0x1),_0x12f016[_0x164d9c(0x336)]({'cmd':p[_0x164d9c(0x1c8)],'routeKey':this[_0x164d9c(0x32e)],'routeType':'','data':{'rooms':[{'roomID':this[_0x164d9c(0x32e)]}]}});}[_0x572f33(0x269)](_0x518d67){const _0x57c251=_0x572f33;var _0x5593f3;if(_0x518d67[_0x57c251(0x2fe)]in _e){this[_0x57c251(0x2a2)][_0x57c251(0x154)]({'id':M[_0x57c251(0x31b)],'data':_e[_0x518d67['code']]}),this[_0x57c251(0x16a)]['next'](0x2);return;}this['_sessionStatus$'][_0x57c251(0x246)](0x3);const _0x25ee57=(_0x5593f3=_0x518d67[_0x57c251(0x2da)][_0x57c251(0x183)][this[_0x57c251(0x32e)]])==null?void 0x0:_0x5593f3[_0x57c251(0x192)];_0x25ee57&&_0x25ee57['forEach'](_0x19e8d9=>this['_memberService']['updateMember'](this[_0x57c251(0x32e)],_0x19e8d9));}[_0x572f33(0x166)](_0x108183){const _0x561e7a=_0x572f33;try{const _0x2edd69=_0x108183[_0x561e7a(0x2da)];switch(_0x2edd69[_0x561e7a(0x209)]){case h[_0x561e7a(0x32f)][_0x561e7a(0x1df)]:this[_0x561e7a(0x253)](_0x2edd69),this[_0x561e7a(0x216)]['next'](_0x2edd69);break;case h[_0x561e7a(0x32f)][_0x561e7a(0x213)]:this[_0x561e7a(0x295)](_0x2edd69),this[_0x561e7a(0x216)][_0x561e7a(0x246)](_0x2edd69);break;case h['CollaborationEvent']['CHANGESET_ACK']:case h[_0x561e7a(0x32f)][_0x561e7a(0x2d1)]:this[_0x561e7a(0x325)](),this[_0x561e7a(0x330)](),this[_0x561e7a(0x216)]['next'](_0x2edd69);break;case h['CollaborationEvent'][_0x561e7a(0x212)]:this['_logService'][_0x561e7a(0x2a8)](_0x561e7a(0x1f2)+JSON['stringify'](_0x2edd69)),this['_event$'][_0x561e7a(0x246)](_0x2edd69);break;case h[_0x561e7a(0x32f)]['COMMENT_UPDATE']:this[_0x561e7a(0x2cc)][_0x561e7a(0x1da)](_0x2edd69['data']),this[_0x561e7a(0x216)]['next'](_0x2edd69);break;default:this['_event$'][_0x561e7a(0x246)](_0x2edd69);}}catch(_0x4bbb20){this[_0x561e7a(0x16c)][_0x561e7a(0x2a8)](_0x4bbb20,_0x108183);}}[_0x572f33(0x253)](_0x544e75){const _0x227854=_0x572f33;this[_0x227854(0x2a4)][_0x227854(0x16f)](this[_0x227854(0x32e)],_0x544e75[_0x227854(0x2da)]);}[_0x572f33(0x295)](_0x3cce7c){const _0x465526=_0x572f33;this[_0x465526(0x2a4)]['removeMember'](this[_0x465526(0x32e)],_0x3cce7c['data'][_0x465526(0x296)]);}async['send'](_0x15e01a,_0x2935e6){const _0x5114cd=_0x572f33;if(this['sessionStatus']!==0x3||!this['_socket'])throw new Error(_0x5114cd(0x1aa));try{_0x15e01a['eventID']===h[_0x5114cd(0x32f)][_0x5114cd(0x1d1)]&&(this[_0x5114cd(0x301)](),this['_startTelemetryCollaborationNewChangeset'](_0x15e01a)),this[_0x5114cd(0x2a9)][_0x5114cd(0x336)]({'cmd':p[_0x5114cd(0x297)],'routeKey':_0x2935e6,'routeType':'','data':_0x15e01a});}catch(_0x40fc06){this['_logService'][_0x5114cd(0x2a8)](_0x40fc06);}}[_0x572f33(0x301)](){const _0x2d9f9a=_0x572f33;var _0x5630c8;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x1f44f0=_0x1d3d;this[_0x1f44f0(0x21e)]=null,this[_0x1f44f0(0x2a2)][_0x1f44f0(0x154)]({'id':M[_0x1f44f0(0x220)]});},(_0x5630c8=this[_0x2d9f9a(0x258)][_0x2d9f9a(0x1f0)](Ie))!=null?_0x5630c8:ve);}[_0x572f33(0x330)](){const _0x4903f7=_0x572f33;this[_0x4903f7(0x21e)]&&(clearTimeout(this[_0x4903f7(0x21e)]),this['_collaborationTimeoutTimer']=null);}[_0x572f33(0x2a0)](_0x236234){const _0x24a4fe=_0x572f33;if(!this['_shouldReportTelemetry'])return;const {data:_0x4a622a}=_0x236234,{unitID:_0x5253de,changeset:_0x132463}=_0x4a622a,{mutations:_0x1b2402,type:_0x4d1b43}=_0x132463;this['_telemetryInfo']={'unitId':_0x5253de,'type':_0x4d1b43,'startTime':performance[_0x24a4fe(0x17d)](),'stopTime':0x0,'duration':0x0,'size':qe(_0x1b2402)};}[_0x572f33(0x325)](){const _0x529385=_0x572f33;if(this[_0x529385(0x25c)]){if(!this[_0x529385(0x29f)]){this[_0x529385(0x16c)][_0x529385(0x2a8)](_0x529385(0x2fa),_0x529385(0x2ba));return;}this[_0x529385(0x29f)][_0x529385(0x16d)]=performance['now'](),this['_telemetryInfo'][_0x529385(0x29e)]=this[_0x529385(0x29f)][_0x529385(0x16d)]-this['_telemetryInfo'][_0x529385(0x202)],this['_telemetryService'][_0x529385(0x2c1)](Je,this[_0x529385(0x29f)]),this[_0x529385(0x29f)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){this['_telemetryInfo']=null;}};Z=it([A(0x2,r[_0x572f33(0x1a7)]),A(0x3,r['IConfigService']),A(0x4,r[_0x572f33(0x1a0)](r['LocaleService'])),A(0x5,r[_0x572f33(0x1a0)](W)),A(0x6,r[_0x572f33(0x1a0)](Ye)),A(0x7,r[_0x572f33(0x1a0)](G)),A(0x8,r[_0x572f33(0x2d8)](ye[_0x572f33(0x31c)]))],Z);var st=Object[_0x572f33(0x222)],nt=Object[_0x572f33(0x18c)],rt=(_0x16d87f,_0xa8872e,_0x39d03c,_0x24acfc)=>{const _0x28edf6=_0x572f33;for(var _0x430257=_0x24acfc>0x1?void 0x0:_0x24acfc?nt(_0xa8872e,_0x39d03c):_0xa8872e,_0x474b6f=_0x16d87f[_0x28edf6(0x15f)]-0x1,_0x2e516c;_0x474b6f>=0x0;_0x474b6f--)(_0x2e516c=_0x16d87f[_0x474b6f])&&(_0x430257=(_0x24acfc?_0x2e516c(_0xa8872e,_0x39d03c,_0x430257):_0x2e516c(_0x430257))||_0x430257);return _0x24acfc&&_0x430257&&st(_0xa8872e,_0x39d03c,_0x430257),_0x430257;},j=(_0x5e2ae3,_0x136b09)=>(_0x5b40cb,_0x30dc74)=>_0x136b09(_0x5b40cb,_0x30dc74,_0x5e2ae3);let ee=class extends r[_0x572f33(0x299)]{constructor(_0x2e97c4,_0x150721,_0x1e3ff1,_0x448ea1,_0x3ce91a,_0x54c1cd,_0x458a58){const _0x256ae5=_0x572f33;super(),_(this,'_socket$',new E[(_0x256ae5(0x31a))](void 0x0)),_(this,'socket$',this[_0x256ae5(0x260)]['asObservable']()),_(this,_0x256ae5(0x168),null),_(this,_0x256ae5(0x21d),new Map()),_(this,_0x256ae5(0x333),new E[(_0x256ae5(0x31a))](P[_0x256ae5(0x1ab)])),_(this,'status$',this['_status$']['asObservable']()),_(this,'_socketReady',!0x1),_(this,'_retryConnectingTimer'),_(this,_0x256ae5(0x289),0x0),_(this,'_sendHeartbeatTimer'),_(this,_0x256ae5(0x311)),(this[_0x256ae5(0x14d)]=_0x2e97c4,this[_0x256ae5(0x16c)]=_0x150721,this[_0x256ae5(0x258)]=_0x1e3ff1,this[_0x256ae5(0x171)]=_0x448ea1,this['_httpService']=_0x3ce91a,this[_0x256ae5(0x2a2)]=_0x54c1cd,this[_0x256ae5(0x1f5)]=_0x458a58,this['_listenToNetworkCondition']());}get[_0x572f33(0x2a9)](){const _0x7456e=_0x572f33;return this[_0x7456e(0x260)]['getValue']();}[_0x572f33(0x2ea)](){const _0x471a5b=_0x572f33;this[_0x471a5b(0x1f5)]&&this['disposeWithMe'](this[_0x471a5b(0x1f5)][_0x471a5b(0x199)][_0x471a5b(0x151)](_0x28d60a=>{const _0x580b83=_0x471a5b;_0x28d60a&&!this['_socket']&&this[_0x580b83(0x25b)](),_0x28d60a||this[_0x580b83(0x249)]();}));}[_0x572f33(0x208)](){const _0x2a991f=_0x572f33;super[_0x2a991f(0x208)](),this['_sessions'][_0x2a991f(0x1e8)](_0x4a9166=>_0x4a9166[_0x2a991f(0x208)]()),this[_0x2a991f(0x21d)]['clear'](),this[_0x2a991f(0x333)][_0x2a991f(0x156)]();}async[_0x572f33(0x2df)](_0x1705a4){const _0x50be16=_0x572f33;if(this[_0x50be16(0x21d)]['has'](_0x1705a4))return this['_sessions'][_0x50be16(0x2f0)](_0x1705a4);this['_tryEnsureSocket']();const _0xd2cd93=this['_injector'][_0x50be16(0x26d)](Z,_0x1705a4,this['_socket$'][_0x50be16(0x24f)]());return this[_0x50be16(0x21d)][_0x50be16(0x20e)](_0x1705a4,_0xd2cd93),_0xd2cd93;}[_0x572f33(0x2ac)](_0x4ba2e8){const _0xaa5b80=_0x572f33;var _0x36eae3;const _0x4e74be=this['_sessions']['get'](_0x4ba2e8);_0x4e74be&&(this['_sessions'][_0xaa5b80(0x1de)](_0x4ba2e8),_0x4e74be[_0xaa5b80(0x217)]()),this[_0xaa5b80(0x21d)][_0xaa5b80(0x1e2)]||(_0x36eae3=this['_socket'])==null||_0x36eae3[_0xaa5b80(0x217)]();}[_0x572f33(0x25b)](){const _0x2b662f=_0x572f33;this['_retryCount']=0x0,this[_0x2b662f(0x1ed)]!=null&&(clearTimeout(this[_0x2b662f(0x1ed)]),this[_0x2b662f(0x1ed)]=null),this[_0x2b662f(0x250)]();}async['_getSessionTicket'](){const _0x117255=_0x572f33;var _0x1fbb6b,_0x3b77ac,_0x229219;const _0x4bb3b2=this[_0x117255(0x258)][_0x117255(0x1f0)](B),_0x2a1db0=(_0x1fbb6b=_0x4bb3b2==null?void 0x0:_0x4bb3b2[_0x117255(0x2f7)])!=null?_0x1fbb6b:we;return(_0x229219=(_0x3b77ac=(await this[_0x117255(0x240)][_0x117255(0x2f0)](_0x2a1db0,{'headers':{'Content-Type':_0x117255(0x32d)}}))[_0x117255(0x186)])==null?void 0x0:_0x3b77ac['ticket'])!=null?_0x229219:'';}[_0x572f33(0x22e)](_0x1a6d66){const _0x46db05=_0x572f33;var _0x321fc1,_0x580e36;const _0xf8cdf=this[_0x46db05(0x258)][_0x46db05(0x1f0)](De),_0xccdfd4=this[_0x46db05(0x258)]['getConfig'](B),_0x5c6409=(_0x580e36=(_0x321fc1=_0xccdfd4==null?void 0x0:_0xccdfd4[_0x46db05(0x15e)])!=null?_0x321fc1:_0xf8cdf)!=null?_0x580e36:Me,_0x19cb35=typeof window>'u'?new URL(_0x5c6409):new URL(_0x5c6409,window[_0x46db05(0x165)][_0x46db05(0x145)]);return _0x19cb35[_0x46db05(0x203)]['set']('sessionTicket',_0x1a6d66),_0x19cb35[_0x46db05(0x27a)]();}async[_0x572f33(0x2fb)](){const _0x20d8aa=_0x572f33,_0x55b712=await this['_getSessionTicket'](),_0x8c0b71=this[_0x20d8aa(0x22e)](_0x55b712),_0x42a51e=this[_0x20d8aa(0x171)]['createSocket'](_0x8c0b71);return this['_candidateSocket']=_0x42a51e,_0x42a51e;}async[_0x572f33(0x14a)](){const _0x1dbc42=_0x572f33;var _0x403b29,_0x1dafca;try{const _0x540dd3=(_0x1dafca=(_0x403b29=this[_0x1dbc42(0x2a9)])!=null?_0x403b29:this[_0x1dbc42(0x168)])!=null?_0x1dafca:await this['_createSocket']();if(_0x540dd3){const _0x5f41b7=_0x540dd3['send'];_0x540dd3['send']=_0x5458c3=>(this[_0x1dbc42(0x2d4)](),_0x5f41b7[_0x1dbc42(0x2bf)](_0x540dd3,[_0x5458c3])),_0x540dd3[_0x1dbc42(0x228)][_0x1dbc42(0x151)](_0x5331ee=>this['_onMessage'](_0x540dd3,_0x5331ee)),_0x540dd3[_0x1dbc42(0x1d3)][_0x1dbc42(0x2af)](f[_0x1dbc42(0x23e)](0x1))[_0x1dbc42(0x151)](_0x54ca65=>this['_logService'][_0x1dbc42(0x2a8)](_0x1dbc42(0x2f4),_0x54ca65)),_0x540dd3[_0x1dbc42(0x18a)][_0x1dbc42(0x2af)](f['take'](0x1))[_0x1dbc42(0x151)](()=>{const _0x477cf0=_0x1dbc42;this[_0x477cf0(0x1b0)](_0x540dd3);}),_0x540dd3['close$'][_0x1dbc42(0x2af)](f[_0x1dbc42(0x23e)](0x1))[_0x1dbc42(0x151)](_0x2d4c6a=>{const _0x27f51c=_0x1dbc42;this[_0x27f51c(0x16c)][_0x27f51c(0x237)](_0x27f51c(0x329),_0x27f51c(0x244),_0x2d4c6a),this[_0x27f51c(0x204)]();});}}catch(_0x4b6a1a){this[_0x1dbc42(0x16c)][_0x1dbc42(0x2a8)](_0x4b6a1a),this[_0x1dbc42(0x204)]();}}[_0x572f33(0x1b0)](_0x28f3e8){const _0x434791=_0x572f33;this['_logService'][_0x434791(0x237)]('[CollaborationSessionService]',_0x434791(0x1b1)),_0x28f3e8['send']({'cmd':p[_0x434791(0x13f)]}),this[_0x434791(0x2d4)]();}[_0x572f33(0x249)](){const _0x5e8546=_0x572f33;this[_0x5e8546(0x148)]=!0x1,this[_0x5e8546(0x168)]=null,this['_status$'][_0x5e8546(0x246)](P[_0x5e8546(0x24d)]),this[_0x5e8546(0x260)][_0x5e8546(0x246)](null),this[_0x5e8546(0x140)](),this[_0x5e8546(0x159)]();}[_0x572f33(0x204)](){const _0x5378e8=_0x572f33;var _0x53d430;this[_0x5378e8(0x249)](),this[_0x5378e8(0x289)]<((_0x53d430=this['_configService'][_0x5378e8(0x1f0)](je))!=null?_0x53d430:ke)?(this[_0x5378e8(0x2a2)]['emitEvent']({'id':M['SOCKET_FAILED_RETRY']}),this[_0x5378e8(0x250)]()):this[_0x5378e8(0x2a2)]['emitEvent']({'id':M['SOCKET_FAILED']});}[_0x572f33(0x250)](){const _0x21ce92=_0x572f33;var _0x4ec8a7;const _0x5c03bb=this[_0x21ce92(0x289)],_0x2e4759=this['_configService']['getConfig'](B),_0x4f2ebd=_0x5c03bb===0x0?0x0:((_0x4ec8a7=_0x2e4759==null?void 0x0:_0x2e4759[_0x21ce92(0x1dd)])!=null?_0x4ec8a7:Ae)*0x2**_0x5c03bb;this[_0x21ce92(0x1ed)]=setTimeout(()=>{const _0x175cb4=_0x21ce92;clearTimeout(this[_0x175cb4(0x1ed)]),this[_0x175cb4(0x1ed)]=null,this[_0x175cb4(0x14a)]();},_0x4f2ebd),this[_0x21ce92(0x289)]+=0x1;}[_0x572f33(0x24e)](_0x2349bc,_0x45f81e){const _0x36ad66=_0x572f33,{cmd:_0x727ceb}=_0x45f81e;_0x727ceb===p[_0x36ad66(0x13f)]&&!this[_0x36ad66(0x148)]&&(_0x2349bc[_0x36ad66(0x296)]=_0x45f81e['data'][_0x36ad66(0x296)],this[_0x36ad66(0x260)][_0x36ad66(0x246)](_0x2349bc),this[_0x36ad66(0x333)][_0x36ad66(0x246)](P[_0x36ad66(0x328)]),this[_0x36ad66(0x148)]=!0x0,this[_0x36ad66(0x168)]=null),_0x727ceb===p['HEARTBEAT']&&this[_0x36ad66(0x140)](),this[_0x36ad66(0x2d4)]();}['_rescheduleHeartbeat'](){const _0xd3d9a1=_0x572f33;var _0x3dae57;this[_0xd3d9a1(0x159)](),this[_0xd3d9a1(0x2e3)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x3dae57=this[_0xd3d9a1(0x258)][_0xd3d9a1(0x1f0)](Ue))!=null?_0x3dae57:Le);}[_0x572f33(0x322)](){const _0x142de8=_0x572f33;this[_0x142de8(0x2a9)][_0x142de8(0x336)]({'cmd':p[_0x142de8(0x187)]}),this['_waitForHeartbeatResponse']();}[_0x572f33(0x1fe)](){const _0x7ec2da=_0x572f33;var _0x357849;this[_0x7ec2da(0x311)]=setTimeout(()=>this[_0x7ec2da(0x204)](),(_0x357849=this[_0x7ec2da(0x258)][_0x7ec2da(0x1f0)](Ie))!=null?_0x357849:ve);}[_0x572f33(0x159)](){const _0x2101c7=_0x572f33;this[_0x2101c7(0x2e3)]!=null&&(clearTimeout(this[_0x2101c7(0x2e3)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x5b4930=_0x572f33;this[_0x5b4930(0x311)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x5b4930(0x311)]=null);}};ee=rt([j(0x0,r[_0x572f33(0x1a0)](r[_0x572f33(0x1b6)])),j(0x1,r[_0x572f33(0x1a7)]),j(0x2,r[_0x572f33(0x2e0)]),j(0x3,We),j(0x4,r[_0x572f33(0x1a0)](re['HTTPService'])),j(0x5,r['Inject'](G)),j(0x6,r[_0x572f33(0x2d8)](He))],ee);const C=[];for(let s=0x0;s<0x100;++s)C['push']((s+0x100)[_0x572f33(0x27a)](0x10)[_0x572f33(0x28b)](0x1));function ot(_0x3d01ce,_0x1e1851=0x0){const _0x4c910c=_0x572f33;return(C[_0x3d01ce[_0x1e1851+0x0]]+C[_0x3d01ce[_0x1e1851+0x1]]+C[_0x3d01ce[_0x1e1851+0x2]]+C[_0x3d01ce[_0x1e1851+0x3]]+'-'+C[_0x3d01ce[_0x1e1851+0x4]]+C[_0x3d01ce[_0x1e1851+0x5]]+'-'+C[_0x3d01ce[_0x1e1851+0x6]]+C[_0x3d01ce[_0x1e1851+0x7]]+'-'+C[_0x3d01ce[_0x1e1851+0x8]]+C[_0x3d01ce[_0x1e1851+0x9]]+'-'+C[_0x3d01ce[_0x1e1851+0xa]]+C[_0x3d01ce[_0x1e1851+0xb]]+C[_0x3d01ce[_0x1e1851+0xc]]+C[_0x3d01ce[_0x1e1851+0xd]]+C[_0x3d01ce[_0x1e1851+0xe]]+C[_0x3d01ce[_0x1e1851+0xf]])[_0x4c910c(0x2ef)]();}let X;const at=new Uint8Array(0x10);function ct(){const _0x69ee32=_0x572f33;if(!X){if(typeof crypto>'u'||!crypto[_0x69ee32(0x194)])throw new Error(_0x69ee32(0x24b));X=crypto[_0x69ee32(0x194)][_0x69ee32(0x320)](crypto);}return X(at);}const ht=typeof crypto<'u'&&crypto[_0x572f33(0x1ec)]&&crypto[_0x572f33(0x1ec)][_0x572f33(0x320)](crypto),ue={'randomUUID':ht};function lt(_0x476368,_0x20d4ab,_0x26da32){const _0x2ea2f1=_0x572f33;if(ue[_0x2ea2f1(0x1ec)]&&!_0x20d4ab&&!_0x476368)return ue[_0x2ea2f1(0x1ec)]();_0x476368=_0x476368||{};const _0x573046=_0x476368['random']||(_0x476368[_0x2ea2f1(0x252)]||ct)();return _0x573046[0x6]=_0x573046[0x6]&0xf|0x40,_0x573046[0x8]=_0x573046[0x8]&0x3f|0x80,ot(_0x573046);}const R=r[_0x572f33(0x26e)](_0x572f33(0x1e0));var _t=Object[_0x572f33(0x222)],ut=Object[_0x572f33(0x18c)],dt=(_0x5f475d,_0x4099c7,_0x11d881,_0x578e84)=>{for(var _0x36facd=_0x578e84>0x1?void 0x0:_0x578e84?ut(_0x4099c7,_0x11d881):_0x4099c7,_0x5930f2=_0x5f475d['length']-0x1,_0x138626;_0x5930f2>=0x0;_0x5930f2--)(_0x138626=_0x5f475d[_0x5930f2])&&(_0x36facd=(_0x578e84?_0x138626(_0x4099c7,_0x11d881,_0x36facd):_0x138626(_0x36facd))||_0x36facd);return _0x578e84&&_0x36facd&&_t(_0x4099c7,_0x11d881,_0x36facd),_0x36facd;},Q=(_0x1a726a,_0x547928)=>(_0x2bb381,_0x24fd7e)=>_0x547928(_0x2bb381,_0x24fd7e,_0x1a726a);function _0x1d3d(_0x58e142,_0x5e3bca){const _0xbf81bd=_0xbf81();return _0x1d3d=function(_0x1d3d8d,_0x374026){_0x1d3d8d=_0x1d3d8d-0x13d;let _0x4a7a90=_0xbf81bd[_0x1d3d8d];return _0x4a7a90;},_0x1d3d(_0x58e142,_0x5e3bca);}function mt(_0x4aad4d){const _0x136705=_0x572f33,{unitID:_0x5d78bd,mutations:_0x265dcc}=_0x4aad4d;return{'unitId':_0x5d78bd,'subUnitId':_0x265dcc[0x0][_0x136705(0x233)][_0x136705(0x2ff)]};}let te=class{constructor(_0x273606,_0x30120b,_0x13e42f){const _0x5e6bcb=_0x572f33;this[_0x5e6bcb(0x14d)]=_0x273606,this[_0x5e6bcb(0x1cb)]=_0x30120b,this[_0x5e6bcb(0x2e6)]=_0x13e42f;}[_0x572f33(0x254)](_0x221953){const _0xd767c6=_0x572f33;var _0x34d955,_0x65fe1d,_0x98afaa,_0x5ab8e1;const _0xb73614=this[_0xd767c6(0x14d)]['get'](D[_0xd767c6(0x26b)]),{unitId:_0x420d0d,subUnitId:_0x39b1d1}=mt(_0x221953),_0x2e95aa=_0xb73614==null?void 0x0:_0xb73614[_0xd767c6(0x335)](_0x420d0d)[_0xd767c6(0x20b)](),_0x1b1351=(_0x65fe1d=(_0x34d955=this[_0xd767c6(0x2e6)][_0xd767c6(0x312)](_0x420d0d))==null?void 0x0:_0x34d955[_0xd767c6(0x143)]())==null?void 0x0:_0x65fe1d[_0xd767c6(0x17f)]();if(_0x2e95aa[_0xd767c6(0x15f)]===0x0||!_0x420d0d||!_0x39b1d1)return;const _0x8a3c85=[{'id':D['SetSelectionsOperation']['id'],'params':{'unitId':_0x420d0d,'subUnitId':_0x1b1351,'selections':r['Tools'][_0xd767c6(0x2b1)](_0x2e95aa)}}],_0x5edea3=this[_0xd767c6(0x1cb)][_0xd767c6(0x265)](_0x221953,_0x8a3c85);if(!h[_0xd767c6(0x29a)](_0x5edea3))throw _0x5edea3[_0xd767c6(0x2a8)];const _0x4d24b1=(_0x5ab8e1=(_0x98afaa=_0x5edea3[_0xd767c6(0x1ce)][0x0])==null?void 0x0:_0x98afaa[_0xd767c6(0x233)])==null?void 0x0:_0x5ab8e1[_0xd767c6(0x2e9)];if(Array[_0xd767c6(0x321)](_0x4d24b1)&&_0x4d24b1[_0xd767c6(0x15f)]){if(_0x4d24b1[_0xd767c6(0x15f)]===_0x8a3c85[0x0]['params']['selections'][_0xd767c6(0x15f)]&&_0x4d24b1[_0xd767c6(0x238)]((_0x3dcfc5,_0xb18397)=>r[_0xd767c6(0x2a7)]['equals'](_0x3dcfc5[_0xd767c6(0x158)],_0x8a3c85[0x0]['params'][_0xd767c6(0x2e9)][_0xb18397]['range'])))return;this[_0xd767c6(0x14d)][_0xd767c6(0x2f0)](r[_0xd767c6(0x282)])[_0xd767c6(0x178)](D['SetSelectionsOperation']['id'],{'unitId':_0x420d0d,'subUnitId':_0x1b1351,'selections':_0x4d24b1});}}};te=dt([Q(0x0,r[_0x572f33(0x1a0)](r['Injector'])),Q(0x1,h[_0x572f33(0x211)]),Q(0x2,r[_0x572f33(0x144)])],te);const oe=r['createIdentifier']('univer-pro.collaboration-client.single-active-unit-service');var Ee=(_0x2e374f=>(_0x2e374f[_0x2e374f['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x572f33(0x153),_0x2e374f[_0x2e374f['OTHER_CLIENTS_EDITING']=0x1]=_0x572f33(0x167),_0x2e374f))(Ee||{});const St=new Set([D[_0x572f33(0x241)]['id']]);function de(_0x40c379,_0x5d8c0e,_0x1f49d1,_0x2e6692,_0x25b477){const _0x3d20a1=_0x572f33;var _0x484e0f,_0x249511,_0x417d96,_0x2f73ac;const _0x1f601a=[];for(const _0xfb672 of _0x40c379)if(St[_0x3d20a1(0x155)](_0xfb672['id'])){if(_0x1f601a[_0x3d20a1(0x15f)]>0x0)break;_0x1f601a[_0x3d20a1(0x247)](_0xfb672);break;}else _0x1f601a[_0x3d20a1(0x247)](_0xfb672);const _0x36e212=(_0x249511=(_0x484e0f=_0x25b477[_0x3d20a1(0x2ee)]())==null?void 0x0:_0x484e0f[_0x3d20a1(0x2d0)])!=null?_0x249511:_0x3d20a1(0x2ce),_0x46cf3b=(_0x2f73ac=(_0x417d96=_0x25b477[_0x3d20a1(0x2ee)]())==null?void 0x0:_0x417d96['memberID'])!=null?_0x2f73ac:_0x3d20a1(0x2ce);return{'changeset':{'unitID':_0x5d8c0e,'type':h[_0x3d20a1(0x224)](_0x1f49d1['getUnitType'](_0x5d8c0e)),'baseRev':_0x2e6692[_0x3d20a1(0x19e)](_0x5d8c0e),'revision':0x0,'userID':_0x36e212,'memberID':_0x46cf3b,'mutations':_0x1f601a},'pendingMutations':_0x40c379[_0x3d20a1(0x28b)](_0x1f601a[_0x3d20a1(0x15f)])};}function It(_0x123286,_0x1f2cb4,_0x193fb9,_0x319394,_0x3ba954){const _0x478623=_0x572f33;var _0x400085,_0x3a5d61,_0x43fe4c,_0x3d6e15;const _0x583645=[_0x123286['reduce']((_0x41913b,_0x472c56)=>{const _0x2d8c84=_0x1d3d;var _0x3bf4c8;const {id:_0x3f3462}=_0x41913b,{id:_0xdc28d1,type:_0x848d93}=_0x472c56,_0x3cd906=(_0x3bf4c8=_0x41913b['params'])!=null?_0x3bf4c8:{'actions':null},_0x560b57=_0x472c56[_0x2d8c84(0x233)];if(_0x3f3462&&_0x3f3462!==_0xdc28d1)throw new Error(_0x2d8c84(0x179)+_0x3f3462+_0x2d8c84(0x1ef)+_0xdc28d1+'.');return{..._0x41913b,'id':_0xdc28d1,'type':_0x848d93,'params':{'unitId':_0x560b57[_0x2d8c84(0x221)],'textRanges':_0x560b57['textRanges'],'actions':r[_0x2d8c84(0x14c)][_0x2d8c84(0x31e)](_0x3cd906['actions'],_0x560b57[_0x2d8c84(0x2bd)])}};},{})],_0x129567=(_0x3a5d61=(_0x400085=_0x3ba954[_0x478623(0x2ee)]())==null?void 0x0:_0x400085[_0x478623(0x2d0)])!=null?_0x3a5d61:_0x478623(0x2ce),_0x5d49a3=(_0x3d6e15=(_0x43fe4c=_0x3ba954[_0x478623(0x2ee)]())==null?void 0x0:_0x43fe4c[_0x478623(0x296)])!=null?_0x3d6e15:_0x478623(0x2ce);return{'changeset':{'unitID':_0x1f2cb4,'type':h[_0x478623(0x224)](_0x193fb9[_0x478623(0x2be)](_0x1f2cb4)),'baseRev':_0x319394[_0x478623(0x19e)](_0x1f2cb4),'revision':0x0,'userID':_0x129567,'memberID':_0x5d49a3,'mutations':_0x583645},'pendingMutations':[]};}function ge(_0x189c18,_0x4ab29b){const _0x4b6bb3=_0x572f33,_0x444476=new E[(_0x4b6bb3(0x284))](0x1);return setTimeout(()=>_0x444476[_0x4b6bb3(0x246)](_0x4ab29b),_0x189c18),_0x444476[_0x4b6bb3(0x24f)]()[_0x4b6bb3(0x2af)](E[_0x4b6bb3(0x23e)](0x1));}const vt={'id':D[_0x572f33(0x28f)]['id'],'type':r[_0x572f33(0x2d5)][_0x572f33(0x22a)],'params':{}};var Et=Object[_0x572f33(0x222)],gt=Object[_0x572f33(0x18c)],$=(_0x37e3fb,_0x5ca076,_0x54c7df,_0xfb8a03)=>{for(var _0x44216f=_0xfb8a03>0x1?void 0x0:_0xfb8a03?gt(_0x5ca076,_0x54c7df):_0x5ca076,_0x4d7467=_0x37e3fb['length']-0x1,_0x991f7a;_0x4d7467>=0x0;_0x4d7467--)(_0x991f7a=_0x37e3fb[_0x4d7467])&&(_0x44216f=(_0xfb8a03?_0x991f7a(_0x5ca076,_0x54c7df,_0x44216f):_0x991f7a(_0x44216f))||_0x44216f);return _0xfb8a03&&_0x44216f&&Et(_0x5ca076,_0x54c7df,_0x44216f),_0x44216f;},m=(_0x4d1ca7,_0x5cabab)=>(_0x2eb407,_0x48ae59)=>_0x5cabab(_0x2eb407,_0x48ae59,_0x4d1ca7),pe=(_0x240329=>(_0x240329[_0x572f33(0x323)]=_0x572f33(0x2f1),_0x240329[_0x572f33(0x1ea)]=_0x572f33(0x2eb),_0x240329[_0x572f33(0x262)]=_0x572f33(0x23d),_0x240329['AWAITING']=_0x572f33(0x175),_0x240329[_0x572f33(0x13d)]=_0x572f33(0x2c5),_0x240329['FETCH_MISS']=_0x572f33(0x206),_0x240329[_0x572f33(0x268)]='conflict',_0x240329['OFFLINE']=_0x572f33(0x200),_0x240329))(pe||{});const Ce=0xea60;class H{constructor(_0x3c6f53,_0x1c708c,_0x4ec051,_0x5bcae9,_0x3050ab,_0x3dd9bd,_0x18110d,_0x1c4ba1,_0x904719){const _0xc6debe=_0x572f33;_(this,'_awaitingChangeset',null),_(this,'_pendingMutations',[]),(this['unitID']=_0x3c6f53,this[_0xc6debe(0x1c4)]=_0x1c708c,this['_handler']=_0x3050ab,this[_0xc6debe(0x229)]=_0x3dd9bd,this['_undoRedoService']=_0x18110d,this[_0xc6debe(0x259)]=_0x1c4ba1,this[_0xc6debe(0x2b5)]=_0x904719,this['_awaitingChangeset']=_0x4ec051,this[_0xc6debe(0x214)]=_0x5bcae9);}['_checkMissing'](_0x18752f){const _0x1f71d5=_0x572f33,_0x44d28c=this['_revisionService'][_0x1f71d5(0x19e)](this[_0x1f71d5(0x2bc)]);return _0x18752f['revision']>_0x44d28c+0x1?(this[_0x1f71d5(0x1d0)][_0x1f71d5(0x19d)]({'from':_0x44d28c,'to':_0x18752f['revision']-0x1}),!0x0):!0x1;}[_0x572f33(0x1d6)](_0x5420dc){const _0x18b7f9=_0x572f33;this[_0x18b7f9(0x263)][_0x18b7f9(0x1a5)](this['unitID'],_0x5420dc);}[_0x572f33(0x264)](_0xe97b65){const _0x36d2cd=_0x572f33;var _0x467d0c,_0x4f4dd4;(_0x4f4dd4=(_0x467d0c=this[_0x36d2cd(0x1d0)])[_0x36d2cd(0x2dd)])==null||_0x4f4dd4[_0x36d2cd(0x1c5)](_0x467d0c,_0xe97b65);}[_0x572f33(0x29d)](_0x19c8a0){const _0xb4e83d=_0x572f33;var _0x13d099,_0x2cfd35;return(_0x2cfd35=(_0x13d099=this['_handler'])[_0xb4e83d(0x1f8)])==null?void 0x0:_0x2cfd35[_0xb4e83d(0x1c5)](_0x13d099,_0x19c8a0);}['_transformStateCache'](_0x47b4f3){const _0x13fdfe=_0x572f33;var _0x4bb5b0,_0x57a5dc;return(_0x57a5dc=(_0x4bb5b0=this[_0x13fdfe(0x1d0)])[_0x13fdfe(0x223)])==null?void 0x0:_0x57a5dc[_0x13fdfe(0x1c5)](_0x4bb5b0,_0x47b4f3);}[_0x572f33(0x2d3)](_0x416027){const _0x5c98f8=_0x572f33;var _0x1a59b8,_0x1420d0,_0x4f386e;return(_0x4f386e=(_0x1420d0=(_0x1a59b8=this[_0x5c98f8(0x1d0)])[_0x5c98f8(0x278)])==null?void 0x0:_0x1420d0[_0x5c98f8(0x1c5)](_0x1a59b8,_0x416027))!=null?_0x4f386e:_0x416027;}[_0x572f33(0x232)](_0x54a874){const _0x3d76f8=_0x572f33;var _0x473875,_0x59bd73,_0x5ea3d5;return(_0x5ea3d5=(_0x59bd73=(_0x473875=this['_handler'])[_0x3d76f8(0x2a3)])==null?void 0x0:_0x59bd73[_0x3d76f8(0x1c5)](_0x473875,_0x54a874))!=null?_0x5ea3d5:_0x54a874;}['_syncEditingCollabCursor'](_0x1f5104){const _0x301c5f=_0x572f33;var _0x35b1ab,_0x11d760;if(this[_0x301c5f(0x1c4)]===N[_0x301c5f(0x1c7)]){const {unitID:_0x392c9c,mutations:_0x41f8dd,memberID:_0x364a13}=_0x1f5104,_0x4a4193=_0x41f8dd[0x0][_0x301c5f(0x233)][_0x301c5f(0x14e)];Array['isArray'](_0x4a4193)&&_0x4a4193[_0x301c5f(0x15f)]>0x0&&((_0x11d760=(_0x35b1ab=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x11d760[_0x301c5f(0x1c5)](_0x35b1ab,{'unitID':_0x392c9c,'memberID':_0x364a13,'textRanges':_0x4a4193}));}}[_0x572f33(0x142)](){const _0x2af578=_0x572f33;var _0x53ff78;(_0x53ff78=this[_0x2af578(0x2b5)])==null||_0x53ff78[_0x2af578(0x22c)](this[_0x2af578(0x2bc)],this[_0x2af578(0x1c4)],this[_0x2af578(0x1a8)],this[_0x2af578(0x214)]);}[_0x572f33(0x15b)](){const _0x46f420=_0x572f33;return this[_0x46f420(0x259)][_0x46f420(0x19e)](this[_0x46f420(0x2bc)]);}[_0x572f33(0x32b)](){const _0x4a7d3c=_0x572f33;this[_0x4a7d3c(0x259)]['incrementRevOfUnit'](this[_0x4a7d3c(0x2bc)]);}[_0x572f33(0x17c)](_0xdbb5d4){const _0x4b62d8=_0x572f33;var _0x1f5009;let _0xc15da3=this[_0x4b62d8(0x2d3)](_0xdbb5d4);_0xc15da3=this['_transformRemoteChangesetByStateCache'](_0xc15da3);const _0x59c7e3=r['sequenceExecute'](_0xc15da3['mutations'],this[_0x4b62d8(0x229)],{'fromCollab':!0x0});if(!_0x59c7e3['result'])throw _0x59c7e3['error']instanceof Error?_0x59c7e3[_0x4b62d8(0x2a8)]:new Error((_0x1f5009=_0x59c7e3[_0x4b62d8(0x2a8)])!=null?_0x1f5009:'[CollaborationState]:\x20apply\x20error!');this[_0x4b62d8(0x29d)](_0xc15da3),this[_0x4b62d8(0x257)](_0xc15da3),this[_0x4b62d8(0x1d6)](_0xdbb5d4),this['_transformSelections'](_0xc15da3),this['_syncEditingCollabCursor'](_0xc15da3),this[_0x4b62d8(0x32b)]();}}let F=class extends H{constructor(_0x141838,_0x8b607f,_0x9fbcd,_0x598f5f,_0x30df7f,_0x4afb1b,_0x53bf25,_0x201273,_0x43606a,_0x366139){const _0x1c5e42=_0x572f33;super(_0x141838,_0x8b607f,null,[],_0x9fbcd,_0x53bf25,_0x4afb1b,_0x598f5f,_0x366139),_(this,_0x1c5e42(0x23b),_0x1c5e42(0x2eb)),(this[_0x1c5e42(0x14d)]=_0x30df7f,this[_0x1c5e42(0x16c)]=_0x201273,this['_transformService']=_0x43606a,this[_0x1c5e42(0x207)]=_0x366139);}['appendMutation'](_0x2758cd){const _0x3091e7=_0x572f33,_0x2d9631=this[_0x3091e7(0x14d)]['createInstance'](O,this['unitID'],this[_0x3091e7(0x1c4)],[_0x2758cd],this[_0x3091e7(0x1d0)]);return _0x2d9631['_schedule'](),_0x2d9631[_0x3091e7(0x142)](),_0x2d9631;}[_0x572f33(0x176)](_0x41c761){const _0x5a0998=_0x572f33;if(this['_checkMissing'](_0x41c761))return this[_0x5a0998(0x14d)][_0x5a0998(0x26d)](b,this[_0x5a0998(0x2bc)],this['type'],null,[],null,[_0x41c761],this[_0x5a0998(0x1d0)]);try{const _0x1e805d=this[_0x5a0998(0x1cb)][_0x5a0998(0x265)](_0x41c761,[vt]);if(h['isTransformMutationsWithChangesetSuccess'](_0x1e805d)){const {c1Prime:_0x563ec8}=_0x1e805d;return this[_0x5a0998(0x17c)](_0x563ec8),this;}throw _0x1e805d[_0x5a0998(0x2a8)];}catch(_0x5b9314){return this[_0x5a0998(0x16c)][_0x5a0998(0x2a8)](_0x5b9314),this[_0x5a0998(0x2b0)](!0x1);}}[_0x572f33(0x2b0)](_0x42b73d){const _0x388cad=_0x572f33;return this[_0x388cad(0x14d)][_0x388cad(0x26d)](U,this['unitID'],this[_0x388cad(0x1c4)],null,[],this['_handler'],_0x42b73d);}[_0x572f33(0x256)](){const _0x24a30d=_0x572f33;throw new Error(_0x24a30d(0x15d));}[_0x572f33(0x1f1)](){const _0x1dc6b2=_0x572f33;throw new Error(_0x1dc6b2(0x1b4));}[_0x572f33(0x288)](){return this;}[_0x572f33(0x1b9)](){const _0x23b9b5=_0x572f33;return this['_injector'][_0x23b9b5(0x26d)](L,this['unitID'],this[_0x23b9b5(0x1c4)],null,[],this[_0x23b9b5(0x1d0)]);}[_0x572f33(0x1e4)](){return this;}[_0x572f33(0x1d2)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x572f33(0x201)](){const _0x1f814b=_0x572f33,_0x1e8507=this[_0x1f814b(0x259)][_0x1f814b(0x19e)](this[_0x1f814b(0x2bc)]);return this[_0x1f814b(0x1d0)][_0x1f814b(0x19d)]({'from':_0x1e8507,'to':0x0}),this[_0x1f814b(0x14d)][_0x1f814b(0x26d)](b,this[_0x1f814b(0x2bc)],this['type'],null,[],null,[],this[_0x1f814b(0x1d0)]);}};F=$([m(0x3,r[_0x572f33(0x1a0)](h['RevisionService'])),m(0x4,r[_0x572f33(0x1a0)](r['Injector'])),m(0x5,r[_0x572f33(0x2c8)]),m(0x6,r[_0x572f33(0x282)]),m(0x7,r[_0x572f33(0x1a7)]),m(0x8,h[_0x572f33(0x211)]),m(0x9,r[_0x572f33(0x2d8)](R))],F);let O=class extends H{constructor(_0x5acaf5,_0x1858ab,_0x1657ca,_0x47bc0c,_0x47a171,_0x1dd142,_0x4a1121,_0x37d737,_0xb80e00,_0x138fe3,_0x4677ad,_0x160bd7,_0xf3916c,_0x59bb3f){const _0x3cb136=_0x572f33;super(_0x5acaf5,_0x1858ab,null,_0x1657ca,_0x47bc0c,_0xb80e00,_0xf3916c,_0x1dd142,_0x59bb3f),_(this,_0x3cb136(0x23b),_0x3cb136(0x23d)),_(this,'_scheduleTimestamp',null),_(this,_0x3cb136(0x1c2),null),(this[_0x3cb136(0x14d)]=_0x47a171,this['_memberService']=_0x4a1121,this[_0x3cb136(0x16c)]=_0x37d737,this['_configService']=_0x138fe3,this[_0x3cb136(0x1cb)]=_0x4677ad,this[_0x3cb136(0x2b2)]=_0x160bd7);}[_0x572f33(0x18e)](_0x557a84){const _0x3fffdc=_0x572f33;return this['_pendingMutations'][_0x3fffdc(0x247)](_0x557a84),this['_updateLocalCache'](),this;}[_0x572f33(0x176)](_0x17fc5f){const _0x434484=_0x572f33;if(this[_0x434484(0x1fd)](_0x17fc5f))return this['_clearScheduledTask'](),this[_0x434484(0x14d)]['createInstance'](b,this[_0x434484(0x2bc)],this['type'],null,this['_pendingMutations'],null,[_0x17fc5f],this[_0x434484(0x1d0)]);try{const _0x16521f=this[_0x434484(0x1cb)][_0x434484(0x265)](_0x17fc5f,this[_0x434484(0x214)]);if(h[_0x434484(0x29a)](_0x16521f)){const {c1Prime:_0x3580b7,m2Prime:_0x366bf4}=_0x16521f;this[_0x434484(0x17c)](_0x3580b7);const _0x4ad24d=this[_0x434484(0x14d)][_0x434484(0x26d)](O,this['unitID'],this[_0x434484(0x1c4)],_0x366bf4,this[_0x434484(0x1d0)]);return this['_clearScheduledTask'](),_0x4ad24d[_0x434484(0x161)](this['_scheduleTimestamp']?Math[_0x434484(0x147)](0x0,new Date()[_0x434484(0x242)]()-this[_0x434484(0x2e5)]):this[_0x434484(0x225)]()),_0x4ad24d;}throw _0x16521f[_0x434484(0x2a8)];}catch(_0x27a608){return this[_0x434484(0x16c)][_0x434484(0x2a8)](_0x27a608),this[_0x434484(0x2b0)](!0x1);}}[_0x572f33(0x256)](){const _0xcadbed=_0x572f33;throw new Error(_0xcadbed(0x243));}['onRemoteRej'](){const _0x434775=_0x572f33;throw new Error(_0x434775(0x1c3));}[_0x572f33(0x288)](){return this;}[_0x572f33(0x1b9)](){const _0x37144c=_0x572f33;return this['_clearScheduledTask'](),this[_0x37144c(0x14d)][_0x37144c(0x26d)](L,this[_0x37144c(0x2bc)],this[_0x37144c(0x1c4)],null,this['_pendingMutations'],this[_0x37144c(0x1d0)]);}['toggleOnline'](){return this;}[_0x572f33(0x161)](_0x3cf542){const _0x2551fb=_0x572f33,_0x463e8d=_0x3cf542!=null?_0x3cf542:this[_0x2551fb(0x225)]();this[_0x2551fb(0x2e5)]=new Date()['getTime'](),this[_0x2551fb(0x1c2)]=setTimeout(()=>{const _0x5a8d68=_0x2551fb;this[_0x5a8d68(0x2b7)]();let _0x2f1753=null;switch(this[_0x5a8d68(0x1c4)]){case N['UNIVER_SHEET']:{_0x2f1753=de(this[_0x5a8d68(0x214)],this[_0x5a8d68(0x2bc)],this['_univerInstanceService'],this['_revisionService'],this[_0x5a8d68(0x2a4)]);break;}case N[_0x5a8d68(0x1c7)]:{this['_pendingMutations'][_0x5a8d68(0x238)](_0x504fa0=>_0x504fa0['id']===Se[_0x5a8d68(0x30b)]['id'])?_0x2f1753=It(this[_0x5a8d68(0x214)],this[_0x5a8d68(0x2bc)],this[_0x5a8d68(0x2b2)],this[_0x5a8d68(0x259)],this[_0x5a8d68(0x2a4)]):_0x2f1753=de(this[_0x5a8d68(0x214)],this[_0x5a8d68(0x2bc)],this[_0x5a8d68(0x2b2)],this['_revisionService'],this[_0x5a8d68(0x2a4)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x5a8d68(0x1c4)]+_0x5a8d68(0x1b7));}const {changeset:_0x21594f,pendingMutations:_0xfa2afd}=_0x2f1753;this[_0x5a8d68(0x1d0)][_0x5a8d68(0x20a)](_0x21594f);const _0x379e85=_0xfa2afd[_0x5a8d68(0x15f)]?this[_0x5a8d68(0x14d)]['createInstance'](y,this[_0x5a8d68(0x2bc)],this[_0x5a8d68(0x1c4)],_0x21594f,_0xfa2afd,this['_handler'],void 0x0):this[_0x5a8d68(0x14d)][_0x5a8d68(0x26d)](w,this[_0x5a8d68(0x2bc)],this[_0x5a8d68(0x1c4)],_0x21594f,this[_0x5a8d68(0x1d0)]);_0x379e85[_0x5a8d68(0x142)](),this['_handler'][_0x5a8d68(0x307)](this,_0x379e85);},_0x463e8d);}[_0x572f33(0x225)](){const _0xdde3e9=_0x572f33;var _0x212751;const _0x395575=this[_0xdde3e9(0x258)][_0xdde3e9(0x1f0)](B);return(_0x212751=_0x395575==null?void 0x0:_0x395575[_0xdde3e9(0x28d)])!=null?_0x212751:Ne;}[_0x572f33(0x1d2)](){const _0x21a8a5=_0x572f33;throw new Error(_0x21a8a5(0x1be));}[_0x572f33(0x2b7)](){const _0x25eb9e=_0x572f33;this[_0x25eb9e(0x1c2)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x25eb9e(0x1c2)]=null);}['_onConflict'](_0x35e766){const _0xd1b5d7=_0x572f33;return this[_0xd1b5d7(0x2b7)](),this[_0xd1b5d7(0x14d)][_0xd1b5d7(0x26d)](U,this['unitID'],this[_0xd1b5d7(0x1c4)],null,this[_0xd1b5d7(0x214)],this[_0xd1b5d7(0x1d0)],_0x35e766);}};O=$([m(0x4,r[_0x572f33(0x1a0)](r[_0x572f33(0x1b6)])),m(0x5,r[_0x572f33(0x1a0)](h[_0x572f33(0x1af)])),m(0x6,r[_0x572f33(0x1a0)](W)),m(0x7,r[_0x572f33(0x1a7)]),m(0x8,r[_0x572f33(0x282)]),m(0x9,r['IConfigService']),m(0xa,h['ITransformService']),m(0xb,r[_0x572f33(0x144)]),m(0xc,r['IUndoRedoService']),m(0xd,r['Optional'](R))],O);let w=class extends H{constructor(_0x333127,_0x2eccbe,_0x247a47,_0x56de48,_0x4e8887,_0x3f0de2,_0x340c6d,_0x15f37c,_0x18ca34,_0x5384bb,_0x34e007){const _0x4d48e7=_0x572f33;super(_0x333127,_0x2eccbe,_0x247a47,[],_0x56de48,_0x340c6d,_0x5384bb,_0x3f0de2,_0x34e007),_(this,_0x4d48e7(0x23b),_0x4d48e7(0x175)),_(this,'_resendTimeout',0x0),_(this,_0x4d48e7(0x1a6)),_(this,'_sender'),(this['_injector']=_0x4e8887,this[_0x4d48e7(0x16c)]=_0x15f37c,this[_0x4d48e7(0x1cb)]=_0x18ca34);}['appendMutation'](_0x5932b5){const _0x1743b1=_0x572f33;this[_0x1743b1(0x2b7)]();const _0x21d998=this[_0x1743b1(0x14d)][_0x1743b1(0x26d)](y,this[_0x1743b1(0x2bc)],this[_0x1743b1(0x1c4)],this[_0x1743b1(0x1a8)],[_0x5932b5],this[_0x1743b1(0x1d0)],this[_0x1743b1(0x1a6)]);return _0x21d998['_updateLocalCache'](),_0x21d998;}[_0x572f33(0x176)](_0x421a59){const _0x36f1c7=_0x572f33;if(this[_0x36f1c7(0x1fd)](_0x421a59))return this[_0x36f1c7(0x2b7)](),this[_0x36f1c7(0x14d)]['createInstance'](b,this[_0x36f1c7(0x2bc)],this[_0x36f1c7(0x1c4)],this[_0x36f1c7(0x1a8)],[],null,[_0x421a59],this[_0x36f1c7(0x1d0)]);try{const _0x4196cc=this[_0x36f1c7(0x1cb)][_0x36f1c7(0x25f)]([_0x421a59],[this['_awaitingChangeset']],!0x1);if(h[_0x36f1c7(0x2b8)](_0x4196cc)){const {c1Prime:_0x51c581,c2Prime:_0x2508cb}=_0x4196cc;this['_executeRemoteChangeset'](_0x51c581[0x0]),_0x2508cb[0x0][_0x36f1c7(0x19f)]=this[_0x36f1c7(0x15b)](),this[_0x36f1c7(0x2b7)]();const _0x492242=this['_injector'][_0x36f1c7(0x26d)](w,this[_0x36f1c7(0x2bc)],this[_0x36f1c7(0x1c4)],_0x2508cb[0x0],this[_0x36f1c7(0x1d0)]);return _0x492242['_updateLocalCache'](),_0x492242;}return this['_onConflict'](!0x1);}catch(_0x3e2508){return this[_0x36f1c7(0x16c)][_0x36f1c7(0x2a8)](_0x3e2508),this[_0x36f1c7(0x2b0)](!0x1);}}['onRemoteAck'](_0x3919a8){const _0x4b18c1=_0x572f33;this[_0x4b18c1(0x2b7)]();const _0x46c2dc=this[_0x4b18c1(0x259)][_0x4b18c1(0x19e)](this[_0x4b18c1(0x2bc)]);if(_0x3919a8[_0x4b18c1(0x281)]<_0x46c2dc-0x1)return this;if(this['_checkMissing'](_0x3919a8))return this[_0x4b18c1(0x14d)][_0x4b18c1(0x26d)](b,this[_0x4b18c1(0x2bc)],this['type'],null,[],this['_awaitingChangeset'],[],this[_0x4b18c1(0x1d0)]);this[_0x4b18c1(0x32b)]();const _0x504020=this[_0x4b18c1(0x14d)][_0x4b18c1(0x26d)](F,this[_0x4b18c1(0x2bc)],this[_0x4b18c1(0x1c4)],this[_0x4b18c1(0x1d0)]);return _0x504020[_0x4b18c1(0x142)](),_0x504020;}['onRemoteRej'](_0x208b94){const _0x12cb24=_0x572f33;return this[_0x12cb24(0x2b0)](!!(_0x208b94!=null&&_0x208b94['isPermissionRej']));}[_0x572f33(0x288)](_0x294db3){const _0x23e548=_0x572f33;return this[_0x23e548(0x1cd)]>Ce?this['toggleOffline']():(this[_0x23e548(0x1a6)]=ge(this[_0x23e548(0x1cd)],{'timeout':this[_0x23e548(0x1cd)],'reqId':_0x294db3[_0x23e548(0x25d)]}),this[_0x23e548(0x28e)]=this['_resendTimer'][_0x23e548(0x151)](({reqId:_0x5e9080,timeout:_0x2b7c81})=>{const _0x576b1f=_0x23e548;this[_0x576b1f(0x1d5)](_0x5e9080,_0x2b7c81);}),this);}[_0x572f33(0x1b9)](){const _0x591a64=_0x572f33;return this[_0x591a64(0x2b7)](),this['_injector'][_0x591a64(0x26d)](L,this[_0x591a64(0x2bc)],this[_0x591a64(0x1c4)],this['_awaitingChangeset'],[],this[_0x591a64(0x1d0)]);}['toggleOnline'](){return this;}[_0x572f33(0x1d2)](){const _0x378115=_0x572f33;this[_0x378115(0x1d0)][_0x378115(0x20a)](this[_0x378115(0x1a8)]);}[_0x572f33(0x2b0)](_0x36d595){const _0x3527e8=_0x572f33;return this[_0x3527e8(0x2b7)](),this[_0x3527e8(0x14d)][_0x3527e8(0x26d)](U,this['unitID'],this[_0x3527e8(0x1c4)],this[_0x3527e8(0x1a8)],[],this[_0x3527e8(0x1d0)],_0x36d595);}[_0x572f33(0x1d5)](_0x4537e8,_0x5e2663){const _0xed1430=_0x572f33;var _0x2906c7;_0x4537e8===((_0x2906c7=this[_0xed1430(0x1a8)])==null?void 0x0:_0x2906c7['reqId'])&&(this[_0xed1430(0x1d2)](),this[_0xed1430(0x1cd)]=_0x5e2663===0x0?0x3e8:_0x5e2663*0x2);}[_0x572f33(0x2b7)](){const _0x4d0adc=_0x572f33;var _0x1b2764;(_0x1b2764=this['_sender'])==null||_0x1b2764[_0x4d0adc(0x1ad)](),this[_0x4d0adc(0x1cd)]=0x0;}};w=$([m(0x4,r[_0x572f33(0x1a0)](r[_0x572f33(0x1b6)])),m(0x5,r['Inject'](h['RevisionService'])),m(0x6,r['ICommandService']),m(0x7,r[_0x572f33(0x1a7)]),m(0x8,h[_0x572f33(0x211)]),m(0x9,r['IUndoRedoService']),m(0xa,r[_0x572f33(0x2d8)](R))],w);let y=class extends H{constructor(_0x10ba6f,_0x3c0f22,_0x1e5ac2,_0x45c202,_0x57e1ec,_0x2d7736,_0x5c777f,_0x523457,_0x51f66b,_0x499a6c,_0x47ee17,_0x47510c,_0x878449){const _0x1c5c3a=_0x572f33;super(_0x10ba6f,_0x3c0f22,_0x1e5ac2,_0x45c202,_0x57e1ec,_0x51f66b,_0x47510c,_0x523457,_0x878449),_(this,_0x1c5c3a(0x23b),_0x1c5c3a(0x2c5)),_(this,'_resendTimeout',0x0),_(this,_0x1c5c3a(0x1a6)),_(this,'_sender'),(this[_0x1c5c3a(0x14d)]=_0x5c777f,this[_0x1c5c3a(0x16c)]=_0x499a6c,this['_transformService']=_0x47ee17,this[_0x1c5c3a(0x207)]=_0x878449,_0x2d7736&&(this[_0x1c5c3a(0x1a6)]=_0x2d7736,this[_0x1c5c3a(0x28e)]=this[_0x1c5c3a(0x1a6)][_0x1c5c3a(0x151)](({reqId:_0xd0f1d4,timeout:_0x559fcc})=>{this['_resendWithTimeout'](_0xd0f1d4,_0x559fcc);})));}[_0x572f33(0x18e)](_0x18cd47){const _0x242e50=_0x572f33;return this[_0x242e50(0x214)][_0x242e50(0x247)](_0x18cd47),this;}[_0x572f33(0x176)](_0x282e6a){const _0x42bcfb=_0x572f33;if(this[_0x42bcfb(0x1fd)](_0x282e6a))return this['_clearScheduledTask'](),this[_0x42bcfb(0x14d)][_0x42bcfb(0x26d)](b,this['unitID'],this[_0x42bcfb(0x1c4)],this[_0x42bcfb(0x1a8)],this[_0x42bcfb(0x214)],null,[_0x282e6a],this[_0x42bcfb(0x1d0)]);try{const _0x2d6b48=this[_0x42bcfb(0x1cb)][_0x42bcfb(0x25f)]([_0x282e6a],[this['_awaitingChangeset']],!0x1);if(h[_0x42bcfb(0x2b8)](_0x2d6b48)){const {c1Prime:_0x5ee59a,c2Prime:_0x317b85}=_0x2d6b48,_0x13bb2b=this['_transformService']['transformMutationsWithChangeset'](_0x5ee59a[0x0],this[_0x42bcfb(0x214)]);if(h[_0x42bcfb(0x29a)](_0x13bb2b)){const {c1Prime:_0x5411a3,m2Prime:_0x21438c}=_0x13bb2b;return this['_executeRemoteChangeset'](_0x5411a3),_0x317b85[0x0][_0x42bcfb(0x19f)]=this[_0x42bcfb(0x15b)](),this[_0x42bcfb(0x2b7)](),this[_0x42bcfb(0x14d)]['createInstance'](y,this[_0x42bcfb(0x2bc)],this[_0x42bcfb(0x1c4)],_0x317b85[0x0],_0x21438c,this['_handler'],void 0x0);}throw _0x13bb2b[_0x42bcfb(0x2a8)];}throw _0x2d6b48[_0x42bcfb(0x2a8)];}catch(_0x11f8e9){return this[_0x42bcfb(0x16c)][_0x42bcfb(0x2a8)](_0x11f8e9),this['_onConflict'](!0x1);}}[_0x572f33(0x256)](_0x2e2c21){const _0x3fdc39=_0x572f33;if(this[_0x3fdc39(0x2b7)](),this[_0x3fdc39(0x1fd)](_0x2e2c21))return this['_injector'][_0x3fdc39(0x26d)](b,this[_0x3fdc39(0x2bc)],this[_0x3fdc39(0x1c4)],null,this['_pendingMutations'],this[_0x3fdc39(0x1a8)],[],this[_0x3fdc39(0x1d0)]);this[_0x3fdc39(0x32b)]();const _0x1b7352=this['_injector'][_0x3fdc39(0x26d)](O,this['unitID'],this[_0x3fdc39(0x1c4)],this[_0x3fdc39(0x214)],this[_0x3fdc39(0x1d0)]);return _0x1b7352['_schedule'](),_0x1b7352[_0x3fdc39(0x142)](),_0x1b7352;}[_0x572f33(0x1f1)](_0x1dceb0){const _0x335ee5=_0x572f33;return this[_0x335ee5(0x2b0)](!!(_0x1dceb0!=null&&_0x1dceb0[_0x335ee5(0x227)]));}[_0x572f33(0x288)](_0x59ffa3){const _0xa10df3=_0x572f33;return this[_0xa10df3(0x1cd)]>Ce?this[_0xa10df3(0x1b9)]():(this[_0xa10df3(0x1a6)]=ge(this[_0xa10df3(0x1cd)],{'timeout':this['_resendTimeout'],'reqId':_0x59ffa3[_0xa10df3(0x25d)]}),this[_0xa10df3(0x28e)]=this[_0xa10df3(0x1a6)][_0xa10df3(0x151)](({reqId:_0x1cd116,timeout:_0x344517})=>{this['_resendWithTimeout'](_0x1cd116,_0x344517);}),this);}[_0x572f33(0x1b9)](){const _0x23c9bb=_0x572f33;return this['_clearScheduledTask'](),this['_injector'][_0x23c9bb(0x26d)](L,this[_0x23c9bb(0x2bc)],this[_0x23c9bb(0x1c4)],this['_awaitingChangeset'],this[_0x23c9bb(0x214)],this[_0x23c9bb(0x1d0)]);}[_0x572f33(0x1e4)](){return this;}[_0x572f33(0x1d2)](){const _0x315b19=_0x572f33;this['_handler']['onSendChangeset'](this[_0x315b19(0x1a8)]);}[_0x572f33(0x2b0)](_0x4f44b3){const _0x25ec8d=_0x572f33;return this[_0x25ec8d(0x2b7)](),this[_0x25ec8d(0x14d)][_0x25ec8d(0x26d)](U,this[_0x25ec8d(0x2bc)],this[_0x25ec8d(0x1c4)],null,this[_0x25ec8d(0x214)],this[_0x25ec8d(0x1d0)],_0x4f44b3);}[_0x572f33(0x1d5)](_0x47170d,_0x309f94){const _0x284489=_0x572f33;var _0x417af1;_0x47170d===((_0x417af1=this['_awaitingChangeset'])==null?void 0x0:_0x417af1['reqId'])&&(this['resend'](),this[_0x284489(0x1cd)]=_0x309f94===0x0?0x3e8:_0x309f94*0x2);}[_0x572f33(0x2b7)](){const _0x1ea0cf=_0x572f33;var _0x36d9ba;(_0x36d9ba=this[_0x1ea0cf(0x28e)])==null||_0x36d9ba[_0x1ea0cf(0x1ad)](),this[_0x1ea0cf(0x1cd)]=0x0;}};y=$([m(0x6,r[_0x572f33(0x1a0)](r['Injector'])),m(0x7,r[_0x572f33(0x1a0)](h[_0x572f33(0x1af)])),m(0x8,r[_0x572f33(0x282)]),m(0x9,r[_0x572f33(0x1a7)]),m(0xa,h[_0x572f33(0x211)]),m(0xb,r[_0x572f33(0x2c8)]),m(0xc,r[_0x572f33(0x2d8)](R))],y);let U=class extends H{constructor(_0x4349e5,_0x3037a2,_0x19930c,_0x8982ce,_0x131785,_0x5d530e=!0x1,_0x4e96fe,_0x3b3117,_0x33caee,_0x3258a2,_0xbf2fd6,_0x49376f,_0x52a557){const _0x370a12=_0x572f33;super(_0x4349e5,_0x3037a2,_0x19930c,_0x8982ce,_0x131785,_0x3b3117,_0x33caee,_0x3258a2,_0x52a557),_(this,'status',_0x370a12(0x2c4)),(this[_0x370a12(0x1b2)]=_0x5d530e,this[_0x370a12(0x1eb)]=_0x4e96fe,this[_0x370a12(0x277)]=_0xbf2fd6,this[_0x370a12(0x2a2)]=_0x49376f,this[_0x370a12(0x207)]=_0x52a557,this[_0x370a12(0x1dc)](),this['_clearLocalCache'](),this[_0x370a12(0x272)]());}[_0x572f33(0x18e)](){return this;}[_0x572f33(0x176)](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x572f33(0x1e4)](){return this;}[_0x572f33(0x1d2)](){const _0x372c85=_0x572f33;throw new Error(_0x372c85(0x2a6));}[_0x572f33(0x271)](){const _0x34eef0=_0x572f33;var _0x12c702;(_0x12c702=this[_0x34eef0(0x2b5)])==null||_0x12c702[_0x34eef0(0x22c)](this[_0x34eef0(0x2bc)],this[_0x34eef0(0x1c4)],null,[]);}[_0x572f33(0x1dc)](){const _0x502986=_0x572f33;this[_0x502986(0x1b2)]?this[_0x502986(0x2a2)][_0x502986(0x154)]({'id':M[_0x502986(0x255)]}):this[_0x502986(0x2a2)][_0x502986(0x154)]({'id':M['CONFLICT']});}[_0x572f33(0x272)](){const _0x49d0a7=_0x572f33;this[_0x49d0a7(0x1eb)][_0x49d0a7(0x29c)](new D['WorkbookEditablePermission'](this[_0x49d0a7(0x2bc)])['id'],!0x1);}};U=$([m(0x6,r['Inject'](r['IPermissionService'])),m(0x7,r[_0x572f33(0x282)]),m(0x8,r[_0x572f33(0x2c8)]),m(0x9,r[_0x572f33(0x1a0)](h[_0x572f33(0x1af)])),m(0xa,r[_0x572f33(0x1a0)](r['LocaleService'])),m(0xb,r[_0x572f33(0x1a0)](G)),m(0xc,r['Optional'](R))],U);let L=class extends H{constructor(_0x2cb781,_0x16f6e4,_0x3c5004,_0x20d30e,_0x416aae,_0x22c45f,_0x32cda0,_0x136eb5,_0x312218,_0x509230){const _0x5094d3=_0x572f33;super(_0x2cb781,_0x16f6e4,_0x3c5004,_0x20d30e,_0x416aae,_0x136eb5,_0x312218,_0x32cda0,_0x509230),_(this,'status',_0x5094d3(0x200)),this[_0x5094d3(0x14d)]=_0x22c45f;}[_0x572f33(0x18e)](_0x3295e7){const _0x117038=_0x572f33;return this[_0x117038(0x214)][_0x117038(0x247)](_0x3295e7),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x34bdff){const _0x496e37=_0x572f33;throw new Error(_0x496e37(0x1e9));}[_0x572f33(0x256)](){const _0x406e4b=_0x572f33;throw new Error(_0x406e4b(0x23f));}['onRemoteRej'](){const _0x2e0a91=_0x572f33;throw new Error(_0x2e0a91(0x180));}['onRemoteRetry'](){return this;}[_0x572f33(0x1b9)](){return this;}[_0x572f33(0x1e4)](){const _0x13e462=_0x572f33,{_injector:_0x5c7d77,_pendingMutations:_0x4a778a,_awaitingChangeset:_0x4f13a0,unitID:_0x39ab6e,_handler:_0x5a962c,type:_0x5d0600}=this,_0x5e4685=Te(_0x5c7d77,_0x39ab6e,_0x5d0600,_0x4f13a0,_0x4a778a,_0x5a962c);return _0x5e4685 instanceof O?_0x5e4685[_0x13e462(0x161)]():(_0x5e4685 instanceof y||_0x5e4685 instanceof w)&&_0x5e4685['resend'](),_0x5e4685;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};L=$([m(0x5,r[_0x572f33(0x1a0)](r[_0x572f33(0x1b6)])),m(0x6,r[_0x572f33(0x1a0)](h['RevisionService'])),m(0x7,r[_0x572f33(0x282)]),m(0x8,r[_0x572f33(0x2c8)]),m(0x9,r[_0x572f33(0x2d8)](R))],L);let b=class extends H{constructor(_0x31df94,_0x342893,_0x309260,_0x4bdc2b,_0xd33d63,_0x33edc8,_0x536357,_0x1bd836,_0x403b5c,_0x315fb7,_0x2a31e9,_0x8b53de,_0x60ef40,_0x1c9956){const _0x113a56=_0x572f33;super(_0x31df94,_0x342893,_0x309260,_0x4bdc2b,_0x536357,_0x2a31e9,_0x8b53de,_0x403b5c,_0x1c9956),_(this,_0x113a56(0x23b),_0x113a56(0x206)),(this[_0x113a56(0x317)]=_0xd33d63,this[_0x113a56(0x1d4)]=_0x33edc8,this['_injector']=_0x1bd836,this[_0x113a56(0x16c)]=_0x315fb7,this[_0x113a56(0x1cb)]=_0x60ef40,this['localCacheService']=_0x1c9956);}[_0x572f33(0x2cf)](_0x31e749){const _0x17e029=_0x572f33;try{const _0x112b38=[..._0x31e749,...this[_0x17e029(0x1d4)]],_0x587c9c=[this[_0x17e029(0x1a8)]||this[_0x17e029(0x317)]][_0x17e029(0x169)](_0x3fd3ea=>!!_0x3fd3ea);let _0x3fc236,_0x4e6454;if(_0x587c9c[_0x17e029(0x15f)]){const _0x2b3ae0=this['_transformService']['transformChangesets'](_0x112b38,_0x587c9c,!0x1);if(!h[_0x17e029(0x2b8)](_0x2b3ae0))throw _0x2b3ae0[_0x17e029(0x2a8)];_0x3fc236=_0x2b3ae0[_0x17e029(0x150)],_0x4e6454=_0x2b3ae0['c2Prime'];}else _0x3fc236=_0x112b38,_0x4e6454=[];let _0x34c5cc=this['_pendingMutations'];_0x3fc236[_0x17e029(0x1e8)](_0x44f9b7=>{const _0x4edbae=_0x17e029;let _0x26e78b;if(_0x34c5cc[_0x4edbae(0x15f)]){const _0x140c41=this[_0x4edbae(0x1cb)][_0x4edbae(0x265)](_0x44f9b7,_0x34c5cc);if(!h[_0x4edbae(0x29a)](_0x140c41))throw _0x140c41[_0x4edbae(0x2a8)];_0x26e78b=_0x140c41[_0x4edbae(0x150)],_0x34c5cc=_0x140c41[_0x4edbae(0x1ce)];}else _0x26e78b=_0x44f9b7;this[_0x4edbae(0x17c)](_0x26e78b);}),this[_0x17e029(0x317)]&&this[_0x17e029(0x32b)](),this[_0x17e029(0x1a8)]&&_0x4e6454[_0x17e029(0x15f)]&&(_0x4e6454[0x0][_0x17e029(0x19f)]=this[_0x17e029(0x15b)]());let _0x3a1ae2;if(this[_0x17e029(0x1a8)]&&_0x34c5cc[_0x17e029(0x15f)]!==0x0)_0x3a1ae2=this[_0x17e029(0x14d)]['createInstance'](y,this[_0x17e029(0x2bc)],this[_0x17e029(0x1c4)],_0x4e6454[0x0],_0x34c5cc,this[_0x17e029(0x1d0)],void 0x0);else{if(this[_0x17e029(0x1a8)]&&_0x34c5cc[_0x17e029(0x15f)]===0x0)_0x4e6454[0x0][_0x17e029(0x19f)]=this[_0x17e029(0x15b)](),_0x3a1ae2=this[_0x17e029(0x14d)][_0x17e029(0x26d)](w,this[_0x17e029(0x2bc)],this[_0x17e029(0x1c4)],_0x4e6454[0x0],this[_0x17e029(0x1d0)]);else{if(_0x34c5cc[_0x17e029(0x15f)]!==0x0){const _0x5d3e23=this['_injector'][_0x17e029(0x26d)](O,this[_0x17e029(0x2bc)],this[_0x17e029(0x1c4)],_0x34c5cc,this['_handler']);_0x5d3e23[_0x17e029(0x161)](),_0x3a1ae2=_0x5d3e23;}else _0x3a1ae2=this['_injector'][_0x17e029(0x26d)](F,this[_0x17e029(0x2bc)],this[_0x17e029(0x1c4)],this[_0x17e029(0x1d0)]);}}return _0x3a1ae2['_updateLocalCache'](),_0x3a1ae2;}catch(_0x48ab55){return this[_0x17e029(0x16c)][_0x17e029(0x2a8)](_0x17e029(0x315),_0x17e029(0x27d),_0x48ab55),this[_0x17e029(0x14d)][_0x17e029(0x26d)](U,this[_0x17e029(0x2bc)],this[_0x17e029(0x1c4)],this[_0x17e029(0x1a8)],this['_pendingMutations'],this[_0x17e029(0x1d0)],!0x1);}}[_0x572f33(0x1d2)](){const _0x47a6e0=_0x572f33;throw new Error(_0x47a6e0(0x306));}[_0x572f33(0x18e)](_0x149f2f){const _0x386c35=_0x572f33;return this[_0x386c35(0x214)][_0x386c35(0x247)](_0x149f2f),this;}[_0x572f33(0x176)](_0x1a9710){const _0x2a4abc=_0x572f33;return this[_0x2a4abc(0x1d4)][_0x2a4abc(0x247)](_0x1a9710),this;}[_0x572f33(0x256)](_0x1961c0){const _0x2786a3=_0x572f33;if(this['_awaitingChangeset'])return this[_0x2786a3(0x317)]=this['_awaitingChangeset'],this[_0x2786a3(0x1a8)]=null,this;throw new Error(_0x2786a3(0x1fb));}[_0x572f33(0x1f1)](_0x11a2c9){const _0x328961=_0x572f33;return this[_0x328961(0x2b0)](!!(_0x11a2c9!=null&&_0x11a2c9[_0x328961(0x227)]));}['onRemoteRetry'](){return this;}[_0x572f33(0x1b9)](){const _0x1e4487=_0x572f33;return this['_injector']['createInstance'](L,this[_0x1e4487(0x2bc)],this['type'],this[_0x1e4487(0x1a8)],this[_0x1e4487(0x214)],this[_0x1e4487(0x1d0)]);}[_0x572f33(0x1e4)](){return this;}[_0x572f33(0x2b0)](_0x30404e){const _0x12767e=_0x572f33;return this[_0x12767e(0x14d)]['createInstance'](U,this[_0x12767e(0x2bc)],this[_0x12767e(0x1c4)],this[_0x12767e(0x1a8)],this[_0x12767e(0x214)],this[_0x12767e(0x1d0)],_0x30404e);}};b=$([m(0x7,r[_0x572f33(0x1a0)](r[_0x572f33(0x1b6)])),m(0x8,r[_0x572f33(0x1a0)](h[_0x572f33(0x1af)])),m(0x9,r[_0x572f33(0x1a7)]),m(0xa,r[_0x572f33(0x282)]),m(0xb,r[_0x572f33(0x2c8)]),m(0xc,h[_0x572f33(0x211)]),m(0xd,r[_0x572f33(0x2d8)](R))],b);function Te(_0x1a5063,_0x49c0cc,_0x5a05b1,_0x1c4ccb,_0x9ffed6,_0x24e9f6){const _0x4f0399=_0x572f33;return _0x1c4ccb&&_0x9ffed6[_0x4f0399(0x15f)]?_0x1a5063[_0x4f0399(0x26d)](y,_0x49c0cc,_0x5a05b1,_0x1c4ccb,_0x9ffed6,_0x24e9f6,void 0x0):_0x1c4ccb?_0x1a5063[_0x4f0399(0x26d)](w,_0x49c0cc,_0x5a05b1,_0x1c4ccb,_0x24e9f6):_0x9ffed6[_0x4f0399(0x15f)]?_0x1a5063['createInstance'](O,_0x49c0cc,_0x5a05b1,_0x9ffed6,_0x24e9f6):_0x1a5063[_0x4f0399(0x26d)](F,_0x49c0cc,_0x5a05b1,_0x24e9f6);}var pt=Object[_0x572f33(0x222)],Ct=Object[_0x572f33(0x18c)],ae=(_0x106608,_0x17b792,_0x196b8c,_0x5f24b5)=>{for(var _0x565d59=_0x5f24b5>0x1?void 0x0:_0x5f24b5?Ct(_0x17b792,_0x196b8c):_0x17b792,_0x38cb2f=_0x106608['length']-0x1,_0x542779;_0x38cb2f>=0x0;_0x38cb2f--)(_0x542779=_0x106608[_0x38cb2f])&&(_0x565d59=(_0x5f24b5?_0x542779(_0x17b792,_0x196b8c,_0x565d59):_0x542779(_0x565d59))||_0x565d59);return _0x5f24b5&&_0x565d59&&pt(_0x17b792,_0x196b8c,_0x565d59),_0x565d59;},I=(_0x23b31a,_0x599bfc)=>(_0x40906a,_0x3ca581)=>_0x599bfc(_0x40906a,_0x3ca581,_0x23b31a);let K=class extends r[_0x572f33(0x235)]{constructor(_0x434aca,_0x50f705,_0x1f00f2,_0x30871d,_0x2c2cfb,_0x39c93f,_0x364435,_0x3a3c9a,_0x26bcd8,_0x28b7d7,_0x369594,_0x11dc13,_0x371278){const _0x1ddfe2=_0x572f33;super(),_(this,_0x1ddfe2(0x22b),new E[(_0x1ddfe2(0x31a))](null)),_(this,_0x1ddfe2(0x331),this[_0x1ddfe2(0x22b)][_0x1ddfe2(0x24f)]()),_(this,_0x1ddfe2(0x1e6)),_(this,_0x1ddfe2(0x174),!0x1),_(this,_0x1ddfe2(0x1bd),''),_(this,'_changesetReqId',0x0),_(this,_0x1ddfe2(0x17b),this[_0x1ddfe2(0x331)]['pipe'](E[_0x1ddfe2(0x2b3)](_0x46f1a8=>_0x46f1a8?_0x46f1a8[_0x1ddfe2(0x23b)]:pe[_0x1ddfe2(0x24d)]),E[_0x1ddfe2(0x293)](0x1))),_(this,'_transitionLocked',!0x1),_(this,_0x1ddfe2(0x2db),[]),(this[_0x1ddfe2(0x2bc)]=_0x434aca,this[_0x1ddfe2(0x248)]=_0x50f705,this[_0x1ddfe2(0x2ed)]=_0x1f00f2,this['_injector']=_0x30871d,this[_0x1ddfe2(0x1ac)]=_0x2c2cfb,this[_0x1ddfe2(0x277)]=_0x39c93f,this['_revisionService']=_0x364435,this[_0x1ddfe2(0x2d9)]=_0x3a3c9a,this[_0x1ddfe2(0x16c)]=_0x26bcd8,this[_0x1ddfe2(0x229)]=_0x28b7d7,this['_permissionService']=_0x369594,this[_0x1ddfe2(0x205)]=_0x11dc13,this[_0x1ddfe2(0x2b5)]=_0x371278);}get[_0x572f33(0x30d)](){return this['_state'];}async[_0x572f33(0x2cd)](){const _0x52fbd5=_0x572f33;if(this[_0x52fbd5(0x30d)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x52fbd5(0x22d)]();}[_0x572f33(0x1ca)](){const _0x54941a=_0x572f33;return this[_0x54941a(0x174)]=!0x0,r['toDisposable'](()=>{const _0x3f1595=_0x54941a;this[_0x3f1595(0x174)]=!0x1,this[_0x3f1595(0x1e7)]();});}[_0x572f33(0x2c7)](_0x9e5ab0){const _0x57fa2d=_0x572f33;this[_0x57fa2d(0x283)](_0x9e5ab0);}['_updateState'](_0x35b2c6){const _0x37f1c1=_0x572f33;this[_0x37f1c1(0x1e6)]=_0x35b2c6,this['_state$'][_0x37f1c1(0x246)](_0x35b2c6);}async[_0x572f33(0x22d)](){const _0x20434a=_0x572f33;var _0x379c10;this[_0x20434a(0x16b)](await this['_createInitialState']()),this[_0x20434a(0x205)]&&((_0x379c10=this[_0x20434a(0x205)])==null||_0x379c10['editingUnit'](this[_0x20434a(0x2bc)]),this[_0x20434a(0x276)](this['_singleActiveUnitService'][_0x20434a(0x149)](this[_0x20434a(0x2bc)])[_0x20434a(0x151)](_0x376db1=>{const _0x410da4=_0x20434a;this[_0x410da4(0x16c)][_0x410da4(0x237)]('[CollaborationEntity]',_0x410da4(0x308),_0x376db1),_0x376db1===Ee[_0x410da4(0x167)]?(this['_eventService'][_0x410da4(0x154)]({'id':M[_0x410da4(0x326)]}),this[_0x410da4(0x1eb)][_0x410da4(0x29c)](new D[(_0x410da4(0x30e))](this[_0x410da4(0x2bc)])['id'],!0x1),this[_0x410da4(0x1eb)][_0x410da4(0x1a3)](!0x1)):(this[_0x410da4(0x1eb)][_0x410da4(0x29c)](new D[(_0x410da4(0x30e))](this[_0x410da4(0x2bc)])['id'],!0x0),this[_0x410da4(0x1eb)][_0x410da4(0x1a3)](!0x0));})));let _0x379012=!0x1;return this[_0x20434a(0x276)](this[_0x20434a(0x248)][_0x20434a(0x1f3)]['subscribe'](_0x476b25=>{const _0x338ee6=_0x20434a;_0x476b25===P[_0x338ee6(0x328)]?this[_0x338ee6(0x31f)](_0x379012):_0x476b25===P['OFFLINE']&&(_0x379012=!0x0,this['_toggleOffline']());})),this[_0x20434a(0x276)](this[_0x20434a(0x248)][_0x20434a(0x334)]['subscribe'](_0x12dfdb=>{const _0x342099=_0x20434a;try{switch(_0x12dfdb['eventID']){case h[_0x342099(0x32f)][_0x342099(0x181)]:{this[_0x342099(0x157)](h[_0x342099(0x31d)](_0x12dfdb[_0x342099(0x2da)]));break;}case h[_0x342099(0x32f)][_0x342099(0x14b)]:{this[_0x342099(0x292)](_0x12dfdb[_0x342099(0x2da)]);break;}case h[_0x342099(0x32f)][_0x342099(0x210)]:{this[_0x342099(0x2c9)]();break;}case h[_0x342099(0x32f)][_0x342099(0x2d1)]:{this[_0x342099(0x280)](_0x12dfdb[_0x342099(0x2da)]);break;}case h[_0x342099(0x32f)]['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x342099(0x2d7)](_0x12dfdb[_0x342099(0x2da)]['changesets'][_0x342099(0x2b3)](_0x279179=>h[_0x342099(0x31d)](_0x279179)));break;}case h[_0x342099(0x32f)]['PERMISSION_REJ']:this[_0x342099(0x2c9)]({'isPermissionRej':!0x0});}}catch(_0x56cf17){throw console['error']('Error\x20on\x20receiving\x20event',_0x56cf17),_0x56cf17;}})),this[_0x20434a(0x1e6)];}[_0x572f33(0x1d9)](){const _0x140ed4=_0x572f33;this[_0x140ed4(0x2ad)]=!0x1;}['_lockTransition'](){const _0x3280f3=_0x572f33;if(this[_0x3280f3(0x2ad)])throw new Error(_0x3280f3(0x141));this['_transitionLocked']=!0x0;}[_0x572f33(0x283)](_0x31fd5d){const _0x29320a=_0x572f33;this[_0x29320a(0x1ae)](),this[_0x29320a(0x16b)](this[_0x29320a(0x1e6)][_0x29320a(0x18e)](_0x31fd5d)),this[_0x29320a(0x1d9)]();}[_0x572f33(0x157)](_0x3e9a12){const _0x387b78=_0x572f33;if(!(_0x3e9a12[_0x387b78(0x281)]<=this[_0x387b78(0x259)]['getCurrentRevOfUnit'](this[_0x387b78(0x2bc)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x387b78(0x247)](_0x3e9a12);return;}this[_0x387b78(0x23a)](_0x3e9a12);}}[_0x572f33(0x1e7)](){const _0x515cb6=_0x572f33;this['_remoteChangesetQueue'][_0x515cb6(0x1e8)](_0x42fa83=>this[_0x515cb6(0x23a)](_0x42fa83)),this[_0x515cb6(0x2db)]=[];}[_0x572f33(0x23a)](_0x5b83ff){const _0x246554=_0x572f33,_0x517602=this[_0x246554(0x1ac)][_0x246554(0x2e8)]['fetchThroughInterceptors'](this[_0x246554(0x1ac)]['interceptor'][_0x246554(0x30a)]()[_0x246554(0x1d8)])(_0x5b83ff[_0x246554(0x163)],null)||_0x5b83ff['mutations'],_0x2c8dde={..._0x5b83ff,'mutations':_0x517602};this[_0x246554(0x1ae)](),this[_0x246554(0x16b)](this['_state'][_0x246554(0x176)](_0x2c8dde)),this['_unlockTransition']();}[_0x572f33(0x292)](_0x33814b){const _0x69846d=_0x572f33;this[_0x69846d(0x1ae)](),this[_0x69846d(0x16b)](this[_0x69846d(0x1e6)][_0x69846d(0x256)](_0x33814b)),this[_0x69846d(0x1d9)]();}[_0x572f33(0x2c9)](_0x391157){const _0x545a58=_0x572f33;this[_0x545a58(0x1ae)](),this['_updateState'](this[_0x545a58(0x1e6)][_0x545a58(0x1f1)](_0x391157)),this[_0x545a58(0x1d9)]();}[_0x572f33(0x280)](_0x3f4e14){const _0x4996d3=_0x572f33;this[_0x4996d3(0x1ae)](),this[_0x4996d3(0x16b)](this['_state'][_0x4996d3(0x288)](_0x3f4e14)),this[_0x4996d3(0x1d9)]();}[_0x572f33(0x2d7)](_0x300cf6){const _0x7e6d47=_0x572f33;if(!(this[_0x7e6d47(0x1e6)]instanceof b))throw new TypeError(_0x7e6d47(0x21b));const _0xd136c5=_0x300cf6[_0x7e6d47(0x2b3)](_0xe063b7=>{const _0x38f1da=_0x7e6d47,_0x4c5ec1=this[_0x38f1da(0x1ac)]['interceptor'][_0x38f1da(0x24a)](this[_0x38f1da(0x1ac)][_0x38f1da(0x2e8)]['getInterceptPoints']()[_0x38f1da(0x1d8)])(_0xe063b7[_0x38f1da(0x163)],null)||_0xe063b7[_0x38f1da(0x163)];return{..._0xe063b7,'mutations':_0x4c5ec1};});this[_0x7e6d47(0x1ae)](),this[_0x7e6d47(0x16b)](this[_0x7e6d47(0x1e6)][_0x7e6d47(0x2cf)](_0xd136c5)),this[_0x7e6d47(0x1d9)]();}[_0x572f33(0x30c)](){const _0x2c9018=_0x572f33;this[_0x2c9018(0x1ae)](),this[_0x2c9018(0x16b)](this[_0x2c9018(0x1e6)][_0x2c9018(0x1b9)]()),this[_0x2c9018(0x1d9)]();}[_0x572f33(0x31f)](_0xb953ed=!0x1){const _0x179453=_0x572f33;this[_0x179453(0x1ae)](),this['_updateState'](this['_state'][_0x179453(0x1e4)]()),this[_0x179453(0x1d9)]();const _0x1f1867=this[_0x179453(0x1e6)];_0xb953ed&&_0x1f1867 instanceof F&&(this[_0x179453(0x1ae)](),this[_0x179453(0x16b)](_0x1f1867['fetchMiss']()),this[_0x179453(0x1d9)]());}async['_createInitialState'](){return new Promise(_0x297a4e=>{const _0xd3583f=_0x1d3d;this[_0xd3583f(0x248)][_0xd3583f(0x1f3)][_0xd3583f(0x2af)](E[_0xd3583f(0x23e)](0x1))[_0xd3583f(0x151)](async _0x2112fa=>{const _0x2db758=_0xd3583f;_0x297a4e(await this[_0x2db758(0x18f)](_0x2112fa===P[_0x2db758(0x328)]));});});}['_createHandler'](){const _0x4d2480=_0x572f33,_0x116d11=this[_0x4d2480(0x2bc)];return{'onStateChange':(_0x35b65b,_0x56e260)=>{const _0x33eb2f=_0x4d2480;if(_0x35b65b!==this[_0x33eb2f(0x1e6)])throw new Error(_0x33eb2f(0x318)+_0x35b65b[_0x33eb2f(0x23b)]+_0x33eb2f(0x2c0)+_0x56e260['status']+_0x33eb2f(0x1a1)+this[_0x33eb2f(0x1e6)][_0x33eb2f(0x23b)]);this['_updateState'](_0x56e260);},'onSendChangeset':_0x20ceef=>{const _0x1a2414=_0x4d2480;_0x20ceef['sid']||(_0x20ceef[_0x1a2414(0x245)]=this['_changesetSessionId'],_0x20ceef[_0x1a2414(0x25d)]=++this[_0x1a2414(0x27e)]);const _0x3061d3={'eventID':h['CollaborationEvent'][_0x1a2414(0x1d1)],'data':{'unitID':_0x20ceef[_0x1a2414(0x2bc)],'unitType':this[_0x1a2414(0x2ed)],'changeset':_0x20ceef,'memberID':this[_0x1a2414(0x248)][_0x1a2414(0x316)]()}};this[_0x1a2414(0x248)][_0x1a2414(0x336)](_0x3061d3,this['unitID']);},'onMissingChangesets':({from:_0x497583,to:_0x4b895c})=>{const _0x5d35c4=_0x4d2480;this[_0x5d35c4(0x16c)][_0x5d35c4(0x237)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x497583+_0x5d35c4(0x177)+_0x4b895c);const _0x40fe68={'eventID':h[_0x5d35c4(0x32f)][_0x5d35c4(0x32c)],'data':{'unitID':_0x116d11,'unitType':this[_0x5d35c4(0x2ed)],'from':_0x497583,'to':_0x4b895c}};this[_0x5d35c4(0x248)][_0x5d35c4(0x336)](_0x40fe68,this['unitID']);}};}async['_createInitialStateImpl'](_0x1bd773){const _0x1c77da=_0x572f33;var _0x321481,_0x323e97,_0x31daf0;const _0x626c08=await((_0x321481=this['_localCacheService'])==null?void 0x0:_0x321481[_0x1c77da(0x294)](this[_0x1c77da(0x2bc)])),_0x2458ba=(_0x323e97=_0x626c08==null?void 0x0:_0x626c08[_0x1c77da(0x163)])!=null?_0x323e97:[],_0x23f05d=(_0x31daf0=_0x626c08==null?void 0x0:_0x626c08['awaitingChangeset'])!=null?_0x31daf0:null,_0x1b8c32=!!(_0x23f05d!=null&&_0x23f05d[_0x1c77da(0x245)])&&!!(_0x23f05d!=null&&_0x23f05d[_0x1c77da(0x25d)]);this[_0x1c77da(0x1bd)]=_0x1b8c32?_0x23f05d['sid']:lt(),this[_0x1c77da(0x27e)]=_0x1b8c32?_0x23f05d[_0x1c77da(0x25d)]:0x0;const _0x542bd1=this['unitID'];try{this[_0x1c77da(0x234)](_0x23f05d,_0x2458ba);}catch(_0x55626c){this[_0x1c77da(0x16c)][_0x1c77da(0x2a8)](_0x55626c);}const _0x577207=this[_0x1c77da(0x32a)]();if(_0x1bd773){const _0x788312=Te(this['_injector'],_0x542bd1,this[_0x1c77da(0x2ed)],_0x23f05d,_0x2458ba,_0x577207);return _0x788312 instanceof O?_0x788312[_0x1c77da(0x161)]():(_0x788312 instanceof y||_0x788312 instanceof w)&&_0x788312[_0x1c77da(0x1d2)](),_0x788312;}return this[_0x1c77da(0x14d)]['createInstance'](L,_0x542bd1,this['_type'],_0x23f05d,_0x2458ba,_0x577207);}[_0x572f33(0x234)](_0x1067ea,_0x11d71f){const _0x93a4d9=_0x572f33;var _0x2bc370,_0x549bf6;const _0x2ebd13=this[_0x93a4d9(0x1ac)][_0x93a4d9(0x2e8)][_0x93a4d9(0x24a)](this[_0x93a4d9(0x1ac)][_0x93a4d9(0x2e8)][_0x93a4d9(0x30a)]()[_0x93a4d9(0x1d8)]);(_0x2bc370=_0x2ebd13((_0x1067ea==null?void 0x0:_0x1067ea[_0x93a4d9(0x163)])||[],null))==null||_0x2bc370['forEach'](_0x4f9c57=>this[_0x93a4d9(0x229)]['executeCommand'](_0x4f9c57['id'],_0x4f9c57[_0x93a4d9(0x233)])),(_0x549bf6=_0x2ebd13(_0x11d71f||[],null))==null||_0x549bf6[_0x93a4d9(0x1e8)](_0x4cc1f2=>this[_0x93a4d9(0x229)]['executeCommand'](_0x4cc1f2['id'],_0x4cc1f2[_0x93a4d9(0x233)]));}};K=ae([I(0x3,r[_0x572f33(0x1a0)](r[_0x572f33(0x1b6)])),I(0x4,r[_0x572f33(0x1a0)](h[_0x572f33(0x21f)])),I(0x5,r['Inject'](r[_0x572f33(0x2f6)])),I(0x6,r['Inject'](h[_0x572f33(0x1af)])),I(0x7,r[_0x572f33(0x1a0)](G)),I(0x8,r[_0x572f33(0x1a7)]),I(0x9,r[_0x572f33(0x282)]),I(0xa,r[_0x572f33(0x327)]),I(0xb,r[_0x572f33(0x2d8)](oe)),I(0xc,r[_0x572f33(0x2d8)](R))],K);let ie=class extends K{constructor(_0x23582a,_0x479ad0,_0x302b00,_0x24856d,_0x1566ce,_0x4dc924,_0x180f46,_0x3c89ba,_0x2b7d68,_0x3ae049,_0x15f5f2,_0x214eb9,_0x275a48){const _0x24a8bc=_0x572f33;super(_0x23582a,_0x302b00,_0x479ad0,_0x24856d,_0x1566ce,_0x4dc924,_0x180f46,_0x3c89ba,_0x2b7d68,_0x3ae049,_0x15f5f2,_0x214eb9,_0x275a48),_(this,_0x24a8bc(0x2dc),null),(this[_0x24a8bc(0x2bc)]=_0x23582a,this[_0x24a8bc(0x1c4)]=_0x479ad0);}[_0x572f33(0x338)](_0x13b5b5){this['_handlerCallback']=_0x13b5b5;}[_0x572f33(0x208)](){const _0x2f341b=_0x572f33;this[_0x2f341b(0x2dc)]=null,super['dispose']();}['_createHandler'](){const _0x45a56c=_0x572f33,_0xc932ca=super[_0x45a56c(0x32a)]();return _0xc932ca[_0x45a56c(0x1f8)]=_0x4f2610=>{const _0x2d6af1=_0x45a56c;var _0x4a9e79,_0x467190;return(_0x467190=(_0x4a9e79=this[_0x2d6af1(0x2dc)])==null?void 0x0:_0x4a9e79[_0x2d6af1(0x1f8)])==null?void 0x0:_0x467190['call'](_0x4a9e79,_0x4f2610);},_0xc932ca[_0x45a56c(0x223)]=_0x50b573=>{const _0x326aff=_0x45a56c;var _0x10d135,_0xb28b71;return(_0xb28b71=(_0x10d135=this[_0x326aff(0x2dc)])==null?void 0x0:_0x10d135[_0x326aff(0x223)])==null?void 0x0:_0xb28b71[_0x326aff(0x1c5)](_0x10d135,_0x50b573);},_0xc932ca[_0x45a56c(0x2dd)]=_0x119a8e=>{const _0x161b2e=_0x45a56c;var _0x293546,_0x333982;return(_0x333982=(_0x293546=this[_0x161b2e(0x2dc)])==null?void 0x0:_0x293546[_0x161b2e(0x2dd)])==null?void 0x0:_0x333982['call'](_0x293546,_0x119a8e);},_0xc932ca['onSyncEditingCollabCursor']=_0x544741=>{const _0x13a164=_0x45a56c;var _0x163089,_0x35deef;return(_0x35deef=(_0x163089=this[_0x13a164(0x2dc)])==null?void 0x0:_0x163089[_0x13a164(0x218)])==null?void 0x0:_0x35deef[_0x13a164(0x1c5)](_0x163089,_0x544741);},_0xc932ca[_0x45a56c(0x278)]=_0x2084a9=>{const _0x11cd23=_0x45a56c;var _0x2fa1ef,_0x1a4d96,_0x575ffb;if(!((_0x2fa1ef=this[_0x11cd23(0x2dc)])!=null&&_0x2fa1ef[_0x11cd23(0x278)]))throw new Error('onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.');return(_0x575ffb=(_0x1a4d96=this[_0x11cd23(0x2dc)])==null?void 0x0:_0x1a4d96[_0x11cd23(0x278)])==null?void 0x0:_0x575ffb[_0x11cd23(0x1c5)](_0x1a4d96,_0x2084a9);},_0xc932ca['onTransformRemoteChangesetByStateCache']=_0x4e5edb=>{const _0x475ac2=_0x45a56c;var _0x1fafe0,_0x4b2a76,_0x19d29c;if(!((_0x1fafe0=this[_0x475ac2(0x2dc)])!=null&&_0x1fafe0['onTransformRemoteChangesetByStateCache']))throw new Error(_0x475ac2(0x1bf));return(_0x19d29c=(_0x4b2a76=this[_0x475ac2(0x2dc)])==null?void 0x0:_0x4b2a76[_0x475ac2(0x2a3)])==null?void 0x0:_0x19d29c['call'](_0x4b2a76,_0x4e5edb);},_0xc932ca;}async[_0x572f33(0x22d)](){const _0x2920f6=_0x572f33,_0x4c0d11=await super[_0x2920f6(0x22d)]();return this[_0x2920f6(0x276)](this[_0x2920f6(0x229)]['onCommandExecuted']((_0x38af64,_0x50ee13)=>{const _0x11ed96=_0x2920f6;if(_0x38af64[_0x11ed96(0x1c4)]!==r[_0x11ed96(0x2d5)][_0x11ed96(0x22a)]||_0x50ee13!=null&&_0x50ee13[_0x11ed96(0x193)]||_0x50ee13!=null&&_0x50ee13[_0x11ed96(0x1a9)]||_0x38af64['id']===Se[_0x11ed96(0x30b)]['id'])return;const _0x1bbaaa=_0x38af64[_0x11ed96(0x233)];if((_0x1bbaaa==null?void 0x0:_0x1bbaaa[_0x11ed96(0x221)])!==this[_0x11ed96(0x2bc)])return;const _0x378bfd=_0x38af64,_0x452e8c=this[_0x11ed96(0x1ac)][_0x11ed96(0x2e8)][_0x11ed96(0x24a)](this['_compressMutationService'][_0x11ed96(0x2e8)][_0x11ed96(0x30a)]()[_0x11ed96(0x21a)])([_0x378bfd],null)||[_0x378bfd];this[_0x11ed96(0x283)](_0x452e8c[0x0]);})),_0x4c0d11;}};ie=ae([I(0x3,r['Inject'](r[_0x572f33(0x1b6)])),I(0x4,r[_0x572f33(0x1a0)](h[_0x572f33(0x21f)])),I(0x5,r['Inject'](r[_0x572f33(0x2f6)])),I(0x6,r['Inject'](h[_0x572f33(0x1af)])),I(0x7,r[_0x572f33(0x1a0)](G)),I(0x8,r[_0x572f33(0x1a7)]),I(0x9,r[_0x572f33(0x282)]),I(0xa,r[_0x572f33(0x327)]),I(0xb,r['Optional'](oe)),I(0xc,r[_0x572f33(0x2d8)](R))],ie);let se=class extends K{constructor(_0x267443,_0x105926,_0x4fad44,_0x4df668,_0xc6228b,_0x445ea2,_0x471650,_0x51e5bf,_0x588fff,_0x516cae,_0x122baa,_0x9942e7,_0x82aa97,_0x58c2aa){const _0x6cf83e=_0x572f33;super(_0x267443,_0x4fad44,_0x105926,_0x4df668,_0xc6228b,_0x445ea2,_0x471650,_0x588fff,_0x516cae,_0x122baa,_0x9942e7,_0x82aa97,_0x58c2aa),this[_0x6cf83e(0x2bc)]=_0x267443,this[_0x6cf83e(0x1c4)]=_0x105926,this['_sheetTransformSelectionsService']=_0x51e5bf;}['_createHandler'](){const _0x4d305c=_0x572f33,_0x2eee68=super[_0x4d305c(0x32a)]();return _0x2eee68[_0x4d305c(0x2dd)]=_0x24022b=>this['_sheetTransformSelectionsService'][_0x4d305c(0x254)](_0x24022b),_0x2eee68;}async[_0x572f33(0x22d)](){const _0x5a1e78=_0x572f33,_0xd93e2d=await super[_0x5a1e78(0x22d)]();return this[_0x5a1e78(0x276)](this['_commandService']['onCommandExecuted']((_0xd25396,_0x3682e9)=>{const _0x3408aa=_0x5a1e78;if(_0xd25396[_0x3408aa(0x1c4)]!==r['CommandType'][_0x3408aa(0x22a)]||_0x3682e9!=null&&_0x3682e9['fromCollab']||_0x3682e9!=null&&_0x3682e9[_0x3408aa(0x1a9)])return;const _0x47335f=_0xd25396[_0x3408aa(0x233)];if((_0x47335f==null?void 0x0:_0x47335f[_0x3408aa(0x221)])!==this[_0x3408aa(0x2bc)])return;const _0x12a4ff=_0xd25396,_0x2bae63=this['_compressMutationService'][_0x3408aa(0x2e8)][_0x3408aa(0x24a)](this[_0x3408aa(0x1ac)][_0x3408aa(0x2e8)][_0x3408aa(0x30a)]()['COMPRESS_MUTATION_SEND'])([_0x12a4ff],null)||[_0x12a4ff];this['_onLocalMutation'](_0x2bae63[0x0]);})),_0xd93e2d;}};se=ae([I(0x3,r[_0x572f33(0x1a0)](r['Injector'])),I(0x4,r[_0x572f33(0x1a0)](h[_0x572f33(0x21f)])),I(0x5,r['Inject'](r[_0x572f33(0x2f6)])),I(0x6,r[_0x572f33(0x1a0)](h[_0x572f33(0x1af)])),I(0x7,r['Inject'](te)),I(0x8,r[_0x572f33(0x1a0)](G)),I(0x9,r[_0x572f33(0x1a7)]),I(0xa,r['ICommandService']),I(0xb,r['IPermissionService']),I(0xc,r['Optional'](oe)),I(0xd,r['Optional'](R))],se);var Tt=Object[_0x572f33(0x222)],ft=Object[_0x572f33(0x18c)],bt=(_0xb4f558,_0x218222,_0x2d9a9e,_0x1038dd)=>{const _0x400c21=_0x572f33;for(var _0x3fe875=_0x1038dd>0x1?void 0x0:_0x1038dd?ft(_0x218222,_0x2d9a9e):_0x218222,_0x15a992=_0xb4f558[_0x400c21(0x15f)]-0x1,_0x2e99c7;_0x15a992>=0x0;_0x15a992--)(_0x2e99c7=_0xb4f558[_0x15a992])&&(_0x3fe875=(_0x1038dd?_0x2e99c7(_0x218222,_0x2d9a9e,_0x3fe875):_0x2e99c7(_0x3fe875))||_0x3fe875);return _0x1038dd&&_0x3fe875&&Tt(_0x218222,_0x2d9a9e,_0x3fe875),_0x3fe875;},z=(_0x131b81,_0xefa8c8)=>(_0x458fbb,_0x20052f)=>_0xefa8c8(_0x458fbb,_0x20052f,_0x131b81);let ne=class extends r[_0x572f33(0x235)]{constructor(_0x2ea2d5,_0xf2e15,_0xc49311){const _0x16bd65=_0x572f33;super(),_(this,'_entities',new Map()),_(this,_0x16bd65(0x337),new E[(_0x16bd65(0x2f3))]()),_(this,_0x16bd65(0x1d7),this[_0x16bd65(0x337)][_0x16bd65(0x24f)]()),(this[_0x16bd65(0x14d)]=_0x2ea2d5,this[_0x16bd65(0x266)]=_0xf2e15,this[_0x16bd65(0x2b2)]=_0xc49311,this[_0x16bd65(0x22d)]());}[_0x572f33(0x208)](){const _0x53901b=_0x572f33;super[_0x53901b(0x208)](),this[_0x53901b(0x273)][_0x53901b(0x1e8)](_0x37dafd=>_0x37dafd[_0x53901b(0x208)]()),this[_0x53901b(0x273)]['clear']();}['getCollabEntity'](_0x1f40a6){const _0xb9b6e7=_0x572f33;var _0x231ed8;return(_0x231ed8=this['_entities'][_0xb9b6e7(0x2f0)](_0x1f40a6))!=null?_0x231ed8:null;}[_0x572f33(0x1ff)](_0x95fda8){const _0x5ba592=_0x572f33,_0x3ffe52=this[_0x5ba592(0x172)](_0x95fda8);return _0x3ffe52?E['of'](_0x3ffe52):this['_entityInit$'][_0x5ba592(0x2af)](f['filter'](_0x2bf46a=>_0x2bf46a[_0x5ba592(0x2bc)]===_0x95fda8));}['readyForCollab'](_0x556253){const _0xea7301=_0x572f33;return E['firstValueFrom'](this['getCollabEntity$'](_0x556253)['pipe'](f[_0xea7301(0x2b3)](()=>{})));}[_0x572f33(0x22d)](){const _0x4f1eae=_0x572f33;this['_univerInstanceService'][_0x4f1eae(0x2ec)](r[_0x4f1eae(0x24c)][_0x4f1eae(0x1b8)])[_0x4f1eae(0x2af)](E[_0x4f1eae(0x1f7)](this[_0x4f1eae(0x1fc)]),f[_0x4f1eae(0x275)](0x10))['subscribe'](async _0x1b1e60=>{const _0x5c6896=_0x4f1eae,_0x326d57=_0x1b1e60[_0x5c6896(0x29b)](),_0x3f6c2e=await this[_0x5c6896(0x26a)](_0x326d57,N[_0x5c6896(0x1b8)]);this[_0x5c6896(0x273)]['set'](_0x326d57,_0x3f6c2e);}),this[_0x4f1eae(0x2b2)][_0x4f1eae(0x2ec)](r[_0x4f1eae(0x24c)][_0x4f1eae(0x1c7)])[_0x4f1eae(0x2af)](E[_0x4f1eae(0x1f7)](this[_0x4f1eae(0x1fc)]),f['delay'](0x10))[_0x4f1eae(0x2af)](f[_0x4f1eae(0x169)](_0x9fdd8e=>!_0x9fdd8e[_0x4f1eae(0x29b)]()[_0x4f1eae(0x1fa)]('__')))[_0x4f1eae(0x151)](async _0x158502=>{const _0x5d3d97=_0x4f1eae,_0x5004db=_0x158502['getUnitId'](),_0x56b06c=await this[_0x5d3d97(0x26a)](_0x5004db,N[_0x5d3d97(0x1c7)]);this['_entities']['set'](_0x5004db,_0x56b06c);}),E['merge'](this[_0x4f1eae(0x2b2)]['getTypeOfUnitDisposed$'](r[_0x4f1eae(0x24c)]['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](r[_0x4f1eae(0x24c)][_0x4f1eae(0x1c7)]))[_0x4f1eae(0x2af)](E[_0x4f1eae(0x1f7)](this[_0x4f1eae(0x1fc)]))[_0x4f1eae(0x151)](_0x1694e0=>{const _0x103fa0=_0x4f1eae,_0x36e228=_0x1694e0[_0x103fa0(0x29b)](),_0x153484=this['_entities'][_0x103fa0(0x2f0)](_0x36e228);_0x153484&&(_0x153484[_0x103fa0(0x208)](),this[_0x103fa0(0x273)][_0x103fa0(0x1de)](_0x36e228));});}async[_0x572f33(0x26a)](_0x40ac46,_0x146b2b){const _0x2bd1fd=_0x572f33,_0x235a78=await this[_0x2bd1fd(0x266)]['requireSession'](_0x40ac46),_0x26e62c=this[_0x2bd1fd(0x14d)][_0x2bd1fd(0x26d)](this[_0x2bd1fd(0x170)](_0x146b2b),_0x40ac46,_0x146b2b,_0x235a78);return await _0x26e62c[_0x2bd1fd(0x2cd)](),this[_0x2bd1fd(0x337)][_0x2bd1fd(0x246)](_0x26e62c),_0x26e62c;}[_0x572f33(0x170)](_0x2b0008){const _0x42f0d8=_0x572f33;switch(_0x2b0008){case N[_0x42f0d8(0x1c7)]:return ie;case N[_0x42f0d8(0x1b8)]:return se;default:throw new Error(_0x42f0d8(0x1b5)+_0x2b0008);}}};ne=bt([z(0x0,r[_0x572f33(0x1a0)](r['Injector'])),z(0x1,r[_0x572f33(0x1a0)](ee)),z(0x2,r[_0x572f33(0x144)])],ne);var Rt=Object[_0x572f33(0x222)],Ot=Object[_0x572f33(0x18c)],yt=(_0x50c42a,_0x5944bc,_0x3b9fa6,_0x2af86c)=>{const _0x50587d=_0x572f33;for(var _0x1aa298=_0x2af86c>0x1?void 0x0:_0x2af86c?Ot(_0x5944bc,_0x3b9fa6):_0x5944bc,_0xc62ea1=_0x50c42a[_0x50587d(0x15f)]-0x1,_0x8036fd;_0xc62ea1>=0x0;_0xc62ea1--)(_0x8036fd=_0x50c42a[_0xc62ea1])&&(_0x1aa298=(_0x2af86c?_0x8036fd(_0x5944bc,_0x3b9fa6,_0x1aa298):_0x8036fd(_0x1aa298))||_0x1aa298);return _0x2af86c&&_0x1aa298&&Rt(_0x5944bc,_0x3b9fa6,_0x1aa298),_0x1aa298;},me=(_0x2a8d29,_0x419945)=>(_0xb15c84,_0x2336ac)=>_0x419945(_0xb15c84,_0x2336ac,_0x2a8d29);exports[_0x572f33(0x23c)]=class extends r[_0x572f33(0x19a)]{constructor(_0x4072c6,_0x593aa2,_0x26384b){const _0x5c2582=_0x572f33;super(),this['_handler']=_0x4072c6,this[_0x5c2582(0x274)]=_0x593aa2,this[_0x5c2582(0x28a)]=_0x26384b;}async[_0x572f33(0x198)](_0x16026b){const _0x2c9d63=_0x572f33;return await this['_snapshotService']['loadSheet'](_0x16026b,0x0)?(await this[_0x2c9d63(0x28a)][_0x2c9d63(0x18d)](_0x16026b),this[_0x2c9d63(0x1d0)][_0x2c9d63(0x1a4)](_0x16026b)):null;}},exports['FCollaboration']=yt([me(0x1,r[_0x572f33(0x1a0)](h[_0x572f33(0x195)])),me(0x2,r[_0x572f33(0x1a0)](ne))],exports[_0x572f33(0x23c)]);class Nt extends r[_0x572f33(0x2a1)]{['getCollaboration'](){const _0x16def8=_0x572f33;return this[_0x16def8(0x14d)][_0x16def8(0x26d)](exports[_0x16def8(0x23c)],{'getUniverSheet':_0xb800dd=>this[_0x16def8(0x1a4)](_0xb800dd)});}}r[_0x572f33(0x2a1)][_0x572f33(0x2ae)](Nt);
|