@univerjs-pro/collaboration-client 0.5.0-nightly.202411261607 → 0.5.0-nightly.202411281606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3a3cba=_0x131b;(function(_0x17102a,_0x488cc5){const _0x1d2feb=_0x131b,_0x3f1117=_0x17102a();while(!![]){try{const _0x39ed78=-parseInt(_0x1d2feb(0x352))/0x1*(parseInt(_0x1d2feb(0x187))/0x2)+parseInt(_0x1d2feb(0x143))/0x3*(-parseInt(_0x1d2feb(0x5a1))/0x4)+-parseInt(_0x1d2feb(0x3a5))/0x5+-parseInt(_0x1d2feb(0x26c))/0x6*(-parseInt(_0x1d2feb(0x209))/0x7)+parseInt(_0x1d2feb(0x228))/0x8+-parseInt(_0x1d2feb(0x413))/0x9+parseInt(_0x1d2feb(0x140))/0xa;if(_0x39ed78===_0x488cc5)break;else _0x3f1117['push'](_0x3f1117['shift']());}catch(_0x4b42a2){_0x3f1117['push'](_0x3f1117['shift']());}}}(_0x1035,0x63ae1));var ji=Object[_0x3a3cba(0x5d1)],$i=(_0x501024,_0x8332be,_0x1e6244)=>_0x8332be in _0x501024?ji(_0x501024,_0x8332be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e6244}):_0x501024[_0x8332be]=_0x1e6244,I=(_0xe3b79e,_0x3cb23f,_0x53abb0)=>$i(_0xe3b79e,typeof _0x3cb23f!=_0x3a3cba(0x56a)?_0x3cb23f+'':_0x3cb23f,_0x53abb0);Object[_0x3a3cba(0x5d1)](exports,Symbol[_0x3a3cba(0x2fd)],{'value':_0x3a3cba(0x467)});const a=require(_0x3a3cba(0x2be)),A=require(_0x3a3cba(0x44c)),V=require(_0x3a3cba(0x581)),Ce=require('@univerjs/design'),z=require(_0x3a3cba(0x395)),te=require('@univerjs/ui'),p=require('@univerjs-pro/collaboration'),Hi=require(_0x3a3cba(0x4b2)),Ie=require(_0x3a3cba(0x19e)),J=require(_0x3a3cba(0x1b7)),k=require(_0x3a3cba(0x246)),K=require('@univerjs/engine-render'),ie=require(_0x3a3cba(0x4a4)),Mt=require(_0x3a3cba(0x291)),ye=require(_0x3a3cba(0x32e)),ae=require('react'),Bi=require(_0x3a3cba(0x595)),ii=_0x3a3cba(0x2d5),ki='/universer-api/snapshot',ni=_0x3a3cba(0x32c),Wi='SEND_CHANGESET_TIMEOUT',Fi=0x7d0,si='COLLAB_WEB_SOCKET_URL',Vi=_0x3a3cba(0x433),Gi=_0x3a3cba(0x261),ri=_0x3a3cba(0x4c6),Yi=0x7530,Et='HEARTBEAT_TIMEOUT',oi=0x4e20,Ki=0x4e20,ai=_0x3a3cba(0x3fe),qi=0x3,ci='LOCAL_CACHE_INTERVAL',zi=0x3e8,li=_0x3a3cba(0x598),Xi=_0x3a3cba(0x5cc),hi=_0x3a3cba(0x21d),Ji='/universer-api/oidc/authpage';var _i=(_0x1dae27=>(_0x1dae27[_0x1dae27[_0x3a3cba(0x357)]=0x0]=_0x3a3cba(0x357),_0x1dae27[_0x1dae27['OK']=0x1]='OK',_0x1dae27[_0x1dae27['INTERNAL_ERROR']=0x2]=_0x3a3cba(0x40a),_0x1dae27[_0x1dae27[_0x3a3cba(0x1b6)]=0x3]='PERMISSION_DENIED',_0x1dae27[_0x1dae27[_0x3a3cba(0x137)]=0x4]=_0x3a3cba(0x137),_0x1dae27[_0x1dae27[_0x3a3cba(0x443)]=0x5]=_0x3a3cba(0x443),_0x1dae27[_0x1dae27[_0x3a3cba(0x1fd)]=0x6]=_0x3a3cba(0x1fd),_0x1dae27[_0x1dae27[_0x3a3cba(0x205)]=0x7]=_0x3a3cba(0x205),_0x1dae27[_0x1dae27['TOO_MANY_REQUESTS']=0x8]=_0x3a3cba(0x5cd),_0x1dae27[_0x1dae27[_0x3a3cba(0x1f7)]=0x9]=_0x3a3cba(0x1f7),_0x1dae27[_0x1dae27[_0x3a3cba(0x3f3)]=0x1389]=_0x3a3cba(0x3f3),_0x1dae27[_0x1dae27['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x3a3cba(0x329),_0x1dae27[_0x1dae27['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x3a3cba(0x36a),_0x1dae27[_0x1dae27[_0x3a3cba(0x52e)]=0x1773]=_0x3a3cba(0x52e),_0x1dae27[_0x1dae27[_0x3a3cba(0x1b2)]=0x1b59]=_0x3a3cba(0x1b2),_0x1dae27[_0x1dae27[_0x3a3cba(0x2d9)]=0x1b5a]=_0x3a3cba(0x2d9),_0x1dae27[_0x1dae27[_0x3a3cba(0x3be)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x1dae27[_0x1dae27[_0x3a3cba(0x254)]=0x1b5c]=_0x3a3cba(0x254),_0x1dae27[_0x1dae27['APPLY_DUPLICATED']=0x1b5d]=_0x3a3cba(0x18f),_0x1dae27[_0x1dae27[_0x3a3cba(0x366)]=0x1f41]=_0x3a3cba(0x366),_0x1dae27[_0x1dae27[_0x3a3cba(0x248)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1dae27[_0x1dae27[_0x3a3cba(0x458)]=0x232a]=_0x3a3cba(0x458),_0x1dae27[_0x1dae27['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x1dae27[_0x1dae27[_0x3a3cba(0x4e8)]=0x232c]=_0x3a3cba(0x4e8),_0x1dae27[_0x1dae27[_0x3a3cba(0x596)]=0x232d]=_0x3a3cba(0x596),_0x1dae27[_0x1dae27[_0x3a3cba(0x59a)]=0x2711]=_0x3a3cba(0x59a),_0x1dae27[_0x1dae27[_0x3a3cba(0x1d7)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1dae27[_0x1dae27[_0x3a3cba(0x3cf)]=0x2713]=_0x3a3cba(0x3cf),_0x1dae27[_0x1dae27[_0x3a3cba(0x1a7)]=0x2714]=_0x3a3cba(0x1a7),_0x1dae27[_0x1dae27['UNRECOGNIZED']=-0x1]=_0x3a3cba(0x149),_0x1dae27))(_i||{}),ne=(_0x36f6ac=>(_0x36f6ac[_0x36f6ac['UNIVER_UNKNOWN']=0x0]=_0x3a3cba(0x16c),_0x36f6ac[_0x36f6ac[_0x3a3cba(0x1b1)]=0x1]=_0x3a3cba(0x1b1),_0x36f6ac[_0x36f6ac[_0x3a3cba(0x1b5)]=0x2]=_0x3a3cba(0x1b5),_0x36f6ac[_0x36f6ac['UNIVER_SLIDE']=0x3]=_0x3a3cba(0x23d),_0x36f6ac[_0x36f6ac['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x36f6ac[_0x36f6ac['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x36f6ac))(ne||{}),G=(_0x26fa4e=>(_0x26fa4e[_0x26fa4e[_0x3a3cba(0x1a1)]=0x0]=_0x3a3cba(0x1a1),_0x26fa4e[_0x26fa4e[_0x3a3cba(0x239)]=0x1]=_0x3a3cba(0x239),_0x26fa4e[_0x26fa4e[_0x3a3cba(0x26f)]=0x2]=_0x3a3cba(0x26f),_0x26fa4e[_0x26fa4e[_0x3a3cba(0x1aa)]=0x3]=_0x3a3cba(0x1aa),_0x26fa4e[_0x26fa4e[_0x3a3cba(0x497)]=0x4]=_0x3a3cba(0x497),_0x26fa4e[_0x26fa4e[_0x3a3cba(0x175)]=0x5]=_0x3a3cba(0x175),_0x26fa4e[_0x26fa4e['RECV']=0x6]=_0x3a3cba(0x204),_0x26fa4e[_0x26fa4e[_0x3a3cba(0x149)]=-0x1]=_0x3a3cba(0x149),_0x26fa4e))(G||{}),bt=(_0x504639=>(_0x504639[_0x504639[_0x3a3cba(0x355)]=0x0]=_0x3a3cba(0x355),_0x504639[_0x504639['OK']=0x1]='OK',_0x504639[_0x504639['FAIL']=0x2]=_0x3a3cba(0x3bb),_0x504639[_0x504639[_0x3a3cba(0x388)]=0x3e9]=_0x3a3cba(0x388),_0x504639[_0x504639['JOIN_ROOM_NOT_ALLOWED']=0x3ea]=_0x3a3cba(0x41b),_0x504639[_0x504639[_0x3a3cba(0x149)]=-0x1]=_0x3a3cba(0x149),_0x504639))(bt||{}),ui=(_0x468398=>(_0x468398[_0x468398[_0x3a3cba(0x4ff)]=0x0]=_0x3a3cba(0x4ff),_0x468398[_0x468398[_0x3a3cba(0x557)]=0x1]=_0x3a3cba(0x557),_0x468398[_0x468398['HttpExport']=0x2]=_0x3a3cba(0x3c5),_0x468398[_0x468398[_0x3a3cba(0x37b)]=0x3]=_0x3a3cba(0x37b),_0x468398[_0x468398[_0x3a3cba(0x3dd)]=0x4]=_0x3a3cba(0x3dd),_0x468398[_0x468398[_0x3a3cba(0x149)]=-0x1]=_0x3a3cba(0x149),_0x468398))(ui||{});const Q=_0x3a3cba(0x5d8),Zi={};function _0x1035(){const _0x23c148=['_setupBeforeClosingHandler','blockSize','_doCryptBlock','rxjs/operators','undoState','_initCloseConn','collab-client.tooltip.reconnect','_colorIndex','_httpService','_http','_initEventListeners','randomBytes','_saveCache','_collaborationController','_resendTimeout','interceptor','baseRev','_createSocketURL','_logService','_color','_docTransformIMECacheService','sid','getRenderById','@univerjs/rpc','LICENSE_DISTRO_REJECTED','_sendHeartbeatTimer','COLLAB_SUBMIT_CHANGESET_URL','params','YUUMI_UNABLE_LOAD_URL','conflict.title','DOC_RANGE_TYPE','SheetsSelectionsService','COMMENT_UPDATE','currentSkeleton$','awaitingChangeset','50348ZgbnWf','_scheduleTimestamp','assign','_getSignURL','connectInjector','getUnitType','complete','registerOnClose','measureText','_anchorDot','_socket','deepClone','IBeforeCloseService','_collaborationTimeoutTimer','_compressMutationService','_beforeCloseService','enableLocalCache','collabStatus.fetchMiss','_onCursorUpdate','MUTATION','_loadDoc','addObject','file','unit-cache-','isTransformMutationFailure','registerDependencies','on-line-single','_roomMembers','_ws','location','_onMessage','reset','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_createHmacHelper','synced','onRemoteRej','_cachedData','setShowComponents','equals','_onFetchMissResult','CollaborationController','onlyLocal','SHA1','/universer-api/comb','TOO_MANY_REQUESTS','__creator','session.collaboration-timeout','_online','defineProperty','SHOULD_CLOSE_CONN','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','infoRsp','DocStateChangeManagerService','SUBMIT_CHANGESET','useDependency','collaboration-client.config','permission.content','newCsEvent','_startCollaboration','_registerDependencies','connection\x20error','_context','_localStorageService','removeMember','Tools','_id','People','exports','_range','disposeWithMe','getRoom','setActiveRange','BlockCipherMode','joinEvent','distinctUntilChanged','startsWith','rev','repeat','Base64','getAllMembers','_clearRedo','subunit','_getUploadFileURL','_nRounds','indexOf','pluginName','getCollabEntity$','kdf','collaborators','Subject','_messageService','csShouldRetryEvent','Shape','_scheduleCollaborationTimeoutTimer','NOT_FOUND','_getAPIPrefixPath','getColor','COLLAB_SUBMIT_CHANGESET_URL_KEY','_updateCollabCursors','COMPRESS_MUTATION_SEND','RichTextEditingMutation','href','[FetchMissState]','6269040KsjNLN','ERROR_IMAGE_TYPE','hostname','159YHcERu','_disableEditing','slice','sessionStatus','selections','_updateURLWithCurrentState','UNRECOGNIZED','PERSON','close','[PendingState]:\x20received\x20acknowledgement.','collab-text-anchor-','random','transformChangesets','_imageIoService','_docSyncEditingCollabCursorService','SheetCollabCursorShape','fill','POST','findNodePositionByCharIndex','/-/object/list','closePath','LocalCacheService','collabCursorState$','fillStyle','src','min','createEncryptor','HmacSHA1','_changesetReqId','addImageSourceCache','_nDataBytes','moveTo','csAckEvent','application/json','_minBufferSize','FETCH_MISS','_imageSourceCache','unitId','_createHandler','init','length','UNIVER_UNKNOWN','IRenderManagerService','handleInsertRow','has','loginUrlKey','_send','isInternalEditorID','create','ISnapshotServerService','HEARTBEAT','_clearScheduledTask','[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.','_docStateChangeManagerService','getImage','\x20in\x20_schedule.','pipe','_hover','_updateStatus','uni.network.url-service','text','_decreaseWaiting','_resendTimer','close$','setCurrentUser','_getUndoStack','/-/object/-/batch_allowed','_docSkeleton','431602Vxitxt','_socket$','extend','ColorKit','useRef','DisposableCollection','_clearHeartbeatTimer','_append','APPLY_DUPLICATED','xlink:href','_onJoinRoomEvent','children','_document','decrypt','objectActions','_uiPartsService','createIdentifier','syncEditingCollabCursor','code','setParam','data','_permissionService','CollaborationSessionService','@univerjs/docs','_getAnchorBounding','_doReset','UNKNOWN_CMD','roomMembers','collab-text-range-','onTransformRemoteChangesetByStateCache','PENDING','RevisionService','YUUMI_SUBSCRIPTION_NOT_FOUND','_prevBlock','_unlockTransition','LEAVE','byteLength','sheetID','reverse','LIVESHARE_OPERATION','onCommentUpdate','/rev/','UNIVER_DOC','APPLY_REJECT','_shapes','_ensureSubject','UNIVER_SHEET','PERMISSION_DENIED','@univerjs/docs-ui','_resendWithTimeout','hasher','from','revision','_lastPointer','show','_clearOtherTimers','ERROR_IMAGE','substring','_tryReconnect','workbook','[OfflineState]:\x20received\x20changeset.','getUnit','createInstance','unsubscribe','_onConflict','_tryEnsureSocket','IUniverInstanceService','_transformStateCache','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','Tooltip','mapTo','_acknowledgedAwaitingChangeset','{fileID}','Workbook','parseProtocolChangeset','_transformHistoryAndStateStack','joinRsp','_key','_substituteRedoStack','_clearUndo','YUUMI_URL_COL_OUT_OF_RANGE','function','react.fragment','IUIPartsService','listCollaborators','fillText','DocIMEInputManagerService','CollaborationStatus','WorkbookEditablePermission','fetchMissingChangesets','enableAuthServer','replaceDocRanges','requireSession','session.room-full','_lockTransition','_getSaveTimeout','createSocket','createCollaborator','take','collabSubmitChangesetUrl','_transformPreviousActiveRange','saveSnapshot','_transformRemoteChangesetByStateCache','setShapeProps','flatMap','_createHelper','$super','color','cursorInfo','ivSize','getTypeOfUnitAdded$','clone','COMPLETION_FINISHED','isTransformMutationsWithChangesetFailure','_eventUnsubscribe','/new_changes','_changesetSessionId','put','ALREADY_EXISTS','roles','UNIVER_COLLABORATION_CLIENT_PLUGIN','_scheduleSaving','createElement','Error','name','RECV','INVALID_ARGUMENT','_univerInstanceService','Injector','AWAITING_WITH_PENDING','5403671XbPjcH','OffLineSingle','svg','entries','ILocalStorageService','__Key__','url(#$1','_renderManagerService','USERS_ENTER','triggerDblclick','_snapshotService','handleMoveRange','transformMutation','asObservable','Hex','action','InsertRangeMoveRightCommandId','disableLocalCache','/universer-api/authz','PSEUDO_FETCH_MISSING_RESULT','LOGIN_URL_KEY','_scheduleClearOtherTimer','getCoordByCell','IRemoteInstanceService','_substituteUndoStack','_listenToOfflineEvent','_schedule','_refreshCollabCursors','_urlService','currentColor','clearTimeout','3021752OadAsa','Optional','_onRemoteACK','addEventListener','editingUnit','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','exhaustSavingTask','searchParams','MoveRangeCommandId','UniverInstanceType','_transformRemoteChangesetByIMECache','HEARTBEAT_INTERVAL_KEY','snapshotServerUrl','_draw','_state','pending','hasOwnProperty','HELLO','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_fetchMissChangesets','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','UNIVER_SLIDE','_injector','IDLE','includes','sessionStatus$','collabWebSocketUrl','getCurrentUser','getSheetBlock','BuiltInUIPart','@univerjs/sheets','onPointerLeave$','LICENSE_MAX_UNITS_EXCEEDED','key','keySize','disposeUnit','imageSourceType','_updateLocalCache','IDocClipboardService','decryptBlock','subscribe','propertyIsEnumerable','onlineStatus','transformStateCache','APPLY_PERMISSION_DENIED','Malformed\x20UTF-8\x20data','_userManagerService','forwardRef','VIEW_MAIN','toLowerCase','_getCurrentRevision','none','resourceIDs','purple300','makeDirty','MD5','title','/universer-api/user/session-ticket','url','onStarting','getInterceptPoints','liveShareNewHost','_initDependencies','source','c1Prime','UniverCollaborationPlugin','_hovered','delete','6tBknAR','batchAllowed','SessionStatus','JOIN','formatter','ThemeService','_ENC_XFORM_MODE','generateRandomId','CipherParams','onMouseMove','collaMsg','fetching\x20missing\x20changesets\x20from\x20','confirm','handleDeleteRangeMoveLeft','getSkeleton','skeleton','failed\x20to\x20apply\x20missed\x20changesets!','MergeInterceptorFactory','b64DecodeUnicode','touchDependencies','DataLoaderController','forEach','row','liveShareOperation','getUnhiddenWorksheets','_cursorInfo$','DeleteRangeMoveLeftCommandId','unshift','_redoStacks','WebSocketService','Disposable','DependentOn','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','IMessageService','incrementRevOfUnit','_queuedRemoteChangesets','fromEvent','@univerjs/engine-formula','_instanceService','_transformSelections','initWorkbookPermissionChange','transformMutationsWithChangeset','_cursorShapes','cursorInfo$','onRemoteAck','_telemetryService','charCodeAt','onTransformSelections','getCurrentUnitForType','SetDocZoomRatioOperation','getCurrentRevOfUnit','[CollaborationState]:\x20apply\x20error!','switchMap','_clearCollaborationTimeoutTimer','patch','...','SYNCED','collabStatus.syncing','restore','_remoteChangesetQueue','_waitCount','_anchor','originalMeta','COMPRESS_MUTATION_APPLY','CollaborationStatusDisplay','changesets','_onUserJoin','EvpKDF','updateOfflineData','_initRequestHeader','LocaleService','_getMergeRange','OpenSSL','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','NEW_CHANGESETS','for','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','list','debug','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','sheets','toDisposable','@univerjs/core','BehaviorSubject','getActiveSheet','clamp','verdancy600','_unitOnClients','toString','_drawRectRange','_doProcessBlock','_status$','error$','onlineStatusTitle','_map','loadDoc','objectType','_startDocCollabCursor','[DataLoaderController]','HmacMD5','_memberService','IPermissionService','updateMember','_entityInit$','encodeURIComponent','SNAPSHOT_SERVER_URL_KEY','session.will-retry','FileId','prototype','APPLY_NON_SEQUENTIAL_REVISION','awaiting_with_pending','unpad','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','removeParam','[OfflineState]:\x20received\x20acknowledgement.','signUrlServerUrl','salt','HEADER_MENU','AES','DocSelectionManagerService','_removeCollabCursors','error','Rectangle','_sender','translate(.97)','saveChangeset','visibilityState','Encryptor','DocCollaborationEntity','_commentService','updateCollaborator','DocSkeletonManagerService','throttleTime','CommandType','_updateLocalCursor','_DEC_XFORM_MODE','newValue','shareReplay','_initStatusComponent','arc','ICommandService','_createSocket','tag','univer-pro.collaboration-client.single-active-unit-service','AuthzIoHttpService','toStringTag','BufferedBlockAlgorithm','EXCHANGE_SIGN_URL_SERVER_URL_KEY','setTimeout','width','[CollaborationEntity]','createDecryptor','off-line-single','current','subUnitId','_state$','sigBytes','allowed','dispose','collabStatus.offline','session','deserializeRangeWithSheet','sequenceExecute','Error\x20on\x20receiving\x20event','USERS_LEAVE','IConfigService','_sendHeartbeat','0\x200\x2017\x2016','getSheetObject','getValue','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','/allowed','change$','sessionTicket','_keyPriorReset','push','buffer','_roomMembers$','cfg','CompressMutationService','useCallback','SheetPermissionInitController','type','image/gif','_textBubble','_parse','_onConnectionOpen','onStateChange','OTHER_CLIENTS_EDITING','SNAPSHOT_INVALID_SNAPSHOT','endRow','_telemetryInfo','SNAPSHOT_URL_KEY','encrypt','@univerjs/sheets-ui','getUniverSheetInstance','encode','cmd','getUndoRedoMutationParamsCache','[CollaborationSession]','onCommandExecuted','react.element','json','getSheetBySheetId','EmptyMutation','authzUrl','clearInterval','IContextService','url(#off-line-single_clip0_910_343)','_handleEvent','clipPath','submit\x20changeset\x20error!','_commandService','_initUnitPermissionChange','_onOffline','HMAC','endColumn','onMissedChangesetFetched','fetchThroughInterceptors','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_loadSheet','WordArray','enableSingleActiveInstanceLock','wsSessionTicketUrl','debounceTime','_config','editing\x20status\x20changed\x20to','words','path','getCollabEntity','2wjvJVg','&assign=','_replayCachedMutations','UNKNOWN_CODE','_disabled','UNDEFINED','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','hovered','Vector2','textRanges','memberID','_onRemoteRejected','_notificationService','onPointerEnter$','ImageSourceType','unitId\x20is\x20not\x20found','&to=','c2Prime','onReady','[CollaborationSessionService]','CONNECTOR_DATA_TOO_LARGE','CollaborationSocketService','_singleActiveUnitService','actions','SNAPSHOT_HAS_BEEN_REMOVED','HTTPService','BlockCipher','ref','_handleLeaveEvent','univerjs-icon\x20univerjs-icon-','save','_hash','UPDATE_CURSOR','appendMutation','SheetCollaborationEntity','_themeService','UniverCollaborationClientPlugin','_oKey','/collaborator','_transformUndoredo','_undoRedoService','UnitEmbedded','_transformService','InsertColCommandId','focused$','engine','COLLAB_WEB_SOCKET_URL_KEY','currentTheme$','getCollabCursors$','_transformStack','_showConflictNotification','Cipher','downloadEndpointUrl','CommentService','JOIN_ROOM_FULL','PasswordBasedCipher','set','CollaborationEvent','backgroundColor','transformIMECache','x-univer-host','sin','TEXT_RANGE_LAYER_INDEX','jsxs','evenodd','_timeoutTimer','JSONX','@univerjs/network','selection','_labelPosition','unload','subscribeEvent','div','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','/unit/','_getScale','onRemoteChangeset','image/png','_updateSubUnitFromURLParams','CollaborationEntity','UPDATE_PERMISSION_OBJ','_colorAssignService','Plugin','1149395QNiObh','LIVESHARE_NEW_HOST','updatePermissionObjEvent','whenReady','univer-online','isTransformChangesetsSuccess','SetWorksheetActivateCommand','event$','ciphertext','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','online','then','status','debounce','_pendingMutations','_sessionStatus$','Hasher','drawWith','assignAColorForMemberID','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','_getSnapshotAPIPrefix','_createInitialStateImpl','FAIL','_entities','idSuffix','APPLY_REVISION_CONFILICT','_docSkeletonManagerService','m2Prime','_change$','splice','_sessions','RxDisposable','HttpExport','merge','DeleteRangeMoveUpCommandId','onSendChangeset','_saveTaskMap','fillRule','round','getConfig','find','ReplaySubject','YUUMI_RATE_OVER_LIMIT','_unitStatus','TRANSFORM_CHANGE_OBSERVABLE_TYPE','/object/','setUndoRedoMutationParamsCache','_registerRenderDependencies','_commentUpdate$','enc','_HTTPService','floor','0\x200\x2016\x2016','_joinRoom','range','_unitID','UnitSnapshot','loadSheet','headers','catch','unit','_localCacheService','_process','off-line-single_clip0_910_343','_transformUndoRedoStack','lineTo','IURLService','_applyRemoteChangeset','onTransformIME','image/jpg','isActive','_handleHeartbeatEvent','_mode','getRangePointData','Utf8','_startTelemetryCollaborationNewChangeset','permissionRejEvent','ranges','CHANGESET_REVISION_CONFILICT','updatePermissionPoint','_heartbeatTimer','history','compute','_stopTelemetryCollaborationNewChangeset','message$','M0\x200H16V16H0z','toRgbString','toggleOnline','_getRedoStack','RETRY_CONNECTING_MAX_COUNT','_setupSubUnitSync','startColumn','telemetry\x20info\x20is\x20not\x20initialized','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_rescheduleHeartbeat','getTypeOfUnitDisposed$','stringify','[OfflineState]:\x20received\x20rejection.','black','popstate','Base','INTERNAL_ERROR','unitID','_data','default','_getSheetObject','_type','now','Rect','retryConnectingInterval','357255uNJqtT','onSyncEditingCollabCursor','getUnitOnRev','EffectRefRangId','save\x20fail\x20reason\x20is\x20','_submitChangeset','LOCAL_CACHE_INTERVAL_KEY','_getAPIPrefix','JOIN_ROOM_NOT_ALLOWED','InsertRangeMoveDownCommandId','_docTransformStateCacheService','_incrementRevisionNumber','[SyncedState]:\x20received\x20rejection.','_backgroundColor','some','eventID','_hasher','_replaceFileID','_onConnectionFailed','_clearTimeoutTimer','_xformMode','IImageIoService','Univer','randomUUID','_revisionService','_initStatusListener','getOwnPropertyDescriptor','collaboration.closeRoom','runRefRangeMutations','_drawTextRange','rgba(255,\x20255,\x20255,\x200.01)','defaultProps','ws://127.0.0.1:8000/universer-api/comb/connect','append','fetch_missing','m1Prime','transformSelections','WebURLService','colorChannel1','beginPath','LIVESHARE_REQUEST_HOST','AWAITING','transformUndoRedo','_listenToOnlineEvent','setItem','jsx','mutations','userID','UNAUTHENTICATED','IUndoRedoService','closeSession','concatMap','concat','BASE64','get','#fff','_getSendChangesetTimeout','rxjs','NoPadding','unknown','_syncEditingCollabCursor','\x20to\x20','resize','mapDocumentTypeToUniverType','algo','sheetId','combineLatest','SetSelectionsOperation','processBlock','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','PERMISSION_REJ','redoState','MessageType','reduce','isTransformMutationsWithChangesetSuccess','deleteCollaborator','loadOfflineData','ImageUploadStatusType','FETCH_MISSING','getWorkbookSelections','_collabCursorState$','sendChangesetTimeout','_handleJoinEvent','_throwTelemetryCollaborationNewChangeset','Module','transformByState','isPermissionRej','_collabCursorController','_onLocalMutation','members','getFocusedUnit','_socketReady','univer-offline','getUnitId','ONLINE','_shouldReportTelemetry','routeKey','_candidateSocket','_invKeySchedule','iterations','_socketMessageSubscription','useObservable','csRejEvent','SUCCUSS','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','blue400','MentionIoHttpService','localeService','status$','_iKey','duration','_socketService','_updateState','MSG_FOR_ERROR','LIVESHARE_FETCH_OPERATIONS','_undoStacks','doc.mutation.rich-text-editing','fromCollab','getMergeData','displayName','getCellPositionByOffset','_reverseMap','update','_assignedColors','resend','RegularPolygon','getDocRanges','univer-online-status','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','OnLineSingle','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','CONFLICT','INGEST','collabStatus.conflict','HTTPRequest','override','OFFLINE','ImageIoService','_retryConnectingTimer','apply','getUnitStatus$','enableOfflineEditing','height','object','getRelativeToViewportCoord','@univerjs/drawing','registerRefRange','reqId','hide','/fetchmissing?from=','conflict','jiqing500','CHANGESET_SHOULD_RETRY','pad','_executeRemoteChangeset','_initMergeInterceptor','socket\x20close','SEND_CHANGESET_TIMEOUT_KEY','TEXT','@univerjs/telemetry','add','Inject','socket$','_onUserLeave','fetchMiss','delay','CHANGESET_REJ','onTransformRemoteChangesetByIMECache','msCrypto','_getCtorByUniverType','getCurrentSelections','_render','collaboration_new_changeset','finalize','_onRemoteRetry','labelPosition','_clearLocalCache','avatar','_handleHover','HEARTBEAT_INTERVAL','urlChange$','execute','call','_startSheetCollabCursor','offline','ILogService','attrs','AUTHZ_URL_KEY','state','_waitForHeartbeatResponse','_configService','JOINING','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_session','ITransformService','open$','_name','takeUntil','snapshot','Unknown\x20user','permission.title','split','[PendingState]:\x20received\x20rejection.','1em','_toggleOnline','post','handleInsertRangeMoveRight','Latin1','registerHTTPInterceptor','_removeClearOtherTimer','_cursor','onRemoteRetry','UniverNetworkPlugin','LICENSE_EXPORT_SIZE_EXCEEDED','UserManagerService','_docTransformSelectionsService','body','\x0aCurrent:\x20','join','font','_init','univer-online-status-title','objectID','saveOfflineData','_sendingTimer','withCredentials','charAt','format','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','SnapshotServerOverHTTPService','onTransformState','replaceState','Decryptor','onPointerMove$','_onRefRangeChange','putCollaborators','Undefined','_toggleOffline','startRow','target','_event$','_cursors','clear','[CollaborationUndoRedoService]','_localeService','_onRemoteChangeset','CollaborationSession','getMember','getParam','ticket','getSheetId','ITelemetryService','toggleOffline','MemberService','registerRenderModule','_awaitingChangeset','Could\x20not\x20dynamically\x20require\x20\x22','DesktopCollaborationStatusDisplayController','_handler','filter','_iv','roomMembers$','next','\x20-\x20','_exhaustRemoteChangesetQueue','with','stopTime','size','_members','conflict.content','_hideTimer','session.connection-failed','requestParams','readAsDataURL','transformRemoteChangeset','parse','_isPermissionRej','COLORS','collaboration-session-retry','send','refreshPermission','__esModule','serializeCombRequest','ENSURE_SNAPSHOT_EXECUTION','executeCommand','setWaitCount','[PendingState]:\x20unhandled\x20univer\x20type:\x20','getViewport','reconnect','_initResize','_cipher','/block/','lib','defs','_checkMissing','map','NO_OTHER_CLIENTS_EDITING','socketService','setConfig','defIds','_selfUnitIDs','collaboratorID','dispose$','getMemberID','_transformIMECache','setInterval','all','_collaborationSessionService','getRandomValues','padding','INotificationService','crypto','_collaborationPaused','reject','ACTIVE_UNIT_EVENT_CHANNEL','textEncoder','_collabSessionService','isArray','LIVESHARE_TERMINATE','NOT_COLLAB','_retryCount','string','_keySchedule','getStateCache','HttpImport','CHANGESET_ACK','[SyncedState]:\x20received\x20acknowledgement.','icon','max','_sheetTransformSelectionsService','_transitionLocked','_createInitialState','[UniverCollaborationClientPlugin]','IAuthzIoService','transformStack\x20failed!','mergeOverrideWithDependencies','_scheduleHeartbeat','mixIn','onMissingChangesets','_snapshotServerService','getTime','_refRangeService','_scene','symbol','_sheetSkeletonManagerService','replace','Warning','MentionType','UniverIcon','_onCursorDelete','subject','getAncestorScale','_removeRoom','collabStatus.synced','socket\x20open.','IMentionIOService','docStateChange$','values','responseType','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_getSessionTicket','_syncEditingCollabCursorService','getOwnPropertySymbols'];_0x1035=function(){return _0x23c148;};return _0x1035();}function di(_0x5814be){const _0x580543=_0x3a3cba;var _0x6dcdea,_0x42c9bf,_0x59e56b,_0x3b003c,_0x41d8da;const _0x288ee1=_0x5814be[_0x580543(0x19b)],_0x258e96=JSON[_0x580543(0x526)](_0x288ee1);switch(_0x258e96[_0x580543(0x331)]){case G[_0x580543(0x175)]:case G[_0x580543(0x239)]:{const _0x3f1623=_0x258e96[_0x580543(0x5d4)];return{..._0x258e96,'data':_0x3f1623,'cmd':_0x258e96['cmd']};}case G[_0x580543(0x26f)]:{const _0x3df83b=_0x258e96[_0x580543(0x1d3)];return{..._0x258e96,'data':_0x3df83b,'cmd':_0x258e96['cmd']};}case G[_0x580543(0x204)]:{const _0x4ad6ac=_0x258e96[_0x580543(0x276)];switch(_0x4ad6ac['eventID']){case p[_0x580543(0x38b)]['PERMISSION_REJ']:return{..._0x258e96,'data':{..._0x4ad6ac,'data':(_0x6dcdea=_0x4ad6ac[_0x580543(0x3f1)])==null?void 0x0:_0x6dcdea['cs']},'cmd':_0x258e96[_0x580543(0x331)]};case p[_0x580543(0x38b)][_0x580543(0x558)]:return{..._0x258e96,'data':{..._0x4ad6ac,'data':(_0x42c9bf=_0x4ad6ac[_0x580543(0x163)])==null?void 0x0:_0x42c9bf['cs']},'cmd':_0x258e96[_0x580543(0x331)]};case p[_0x580543(0x38b)][_0x580543(0x2b6)]:return{..._0x258e96,'data':{..._0x4ad6ac,'data':(_0x59e56b=_0x4ad6ac[_0x580543(0x5da)])==null?void 0x0:_0x59e56b['cs']},'cmd':_0x258e96[_0x580543(0x331)]};case p[_0x580543(0x38b)]['CHANGESET_REJ']:return{..._0x258e96,'data':{..._0x4ad6ac,'data':(_0x3b003c=_0x4ad6ac[_0x580543(0x479)])==null?void 0x0:_0x3b003c['cs']},'cmd':_0x258e96[_0x580543(0x331)]};case p[_0x580543(0x38b)][_0x580543(0x4ab)]:return{..._0x258e96,'data':{..._0x4ad6ac,'data':(_0x41d8da=_0x4ad6ac[_0x580543(0x134)])==null?void 0x0:_0x41d8da['cs']},'cmd':_0x258e96[_0x580543(0x331)]};case p['CollaborationEvent'][_0x580543(0x372)]:return{..._0x258e96,'data':{..._0x4ad6ac,'data':_0x4ad6ac['updateCursorEvent']},'cmd':_0x258e96['cmd']};case p['CollaborationEvent'][_0x580543(0x211)]:return{..._0x258e96,'data':{..._0x4ad6ac,'data':_0x4ad6ac[_0x580543(0x5ea)]},'cmd':_0x258e96['cmd']};case p[_0x580543(0x38b)][_0x580543(0x310)]:return{..._0x258e96,'data':{..._0x4ad6ac,'data':_0x4ad6ac['leaveEvent']},'cmd':_0x258e96['cmd']};case p[_0x580543(0x38b)][_0x580543(0x3a6)]:return{..._0x258e96,'data':{..._0x4ad6ac,'data':_0x4ad6ac['liveShareNewHost']},'cmd':_0x258e96['cmd']};case p[_0x580543(0x38b)][_0x580543(0x485)]:case p[_0x580543(0x38b)][_0x580543(0x1ae)]:return{..._0x258e96,'data':{..._0x4ad6ac,'data':_0x4ad6ac[_0x580543(0x283)]},'cmd':_0x258e96[_0x580543(0x331)]};case p[_0x580543(0x38b)][_0x580543(0x551)]:return{..._0x258e96,'data':{..._0x4ad6ac,'data':_0x4ad6ac[_0x580543(0x265)]},'cmd':_0x258e96[_0x580543(0x331)]};case p[_0x580543(0x38b)][_0x580543(0x484)]:return{..._0x258e96,'data':_0x4ad6ac,'cmd':_0x258e96[_0x580543(0x331)]};case p[_0x580543(0x38b)]['COMMENT_UPDATE']:return{..._0x258e96,'data':{..._0x4ad6ac,'data':_0x4ad6ac['commentUpdateEvent']},'cmd':_0x258e96['cmd']};case p['CollaborationEvent'][_0x580543(0x3a2)]:return{..._0x258e96,'data':{..._0x4ad6ac,'data':_0x4ad6ac[_0x580543(0x3a7)]},'cmd':_0x258e96[_0x580543(0x331)]};case p[_0x580543(0x38b)][_0x580543(0x5d2)]:return{..._0x258e96,'data':{..._0x4ad6ac,'data':_0x4ad6ac['shouldCloseConn']},'cmd':_0x258e96['cmd']};default:return _0x258e96;}}default:return _0x258e96;}}function fi(_0x30ab2){const _0x3d4d3e=_0x3a3cba;switch(_0x30ab2[_0x3d4d3e(0x331)]){case G[_0x3d4d3e(0x175)]:case G['HELLO']:return JSON[_0x3d4d3e(0x405)]({'cmd':_0x30ab2[_0x3d4d3e(0x331)],'routeKey':_0x30ab2['routeKey']});case G['INGEST']:{let _0x388f2b;switch(_0x30ab2['data'][_0x3d4d3e(0x422)]){case p[_0x3d4d3e(0x38b)][_0x3d4d3e(0x372)]:{_0x388f2b={'eventID':p['CollaborationEvent'][_0x3d4d3e(0x372)],'updateCursorEvent':_0x30ab2[_0x3d4d3e(0x19b)]['data']};break;}case p[_0x3d4d3e(0x38b)]['USERS_LEAVE']:{_0x388f2b={'eventID':p[_0x3d4d3e(0x38b)]['USERS_LEAVE'],'leaveEvent':_0x30ab2['data']['data']};break;}case p[_0x3d4d3e(0x38b)][_0x3d4d3e(0x211)]:{_0x388f2b={'eventID':p[_0x3d4d3e(0x38b)][_0x3d4d3e(0x211)],'joinEvent':_0x30ab2['data']['data']};break;}case p[_0x3d4d3e(0x38b)]['LIVESHARE_NEW_HOST']:{_0x388f2b={'eventID':p['CollaborationEvent'][_0x3d4d3e(0x3a6)],'liveShareNewHost':_0x30ab2[_0x3d4d3e(0x19b)]['data']};break;}case p[_0x3d4d3e(0x38b)][_0x3d4d3e(0x1ae)]:{_0x388f2b={'eventID':p['CollaborationEvent'][_0x3d4d3e(0x1ae)],'liveShareOperation':_0x30ab2[_0x3d4d3e(0x19b)][_0x3d4d3e(0x19b)]};break;}case p[_0x3d4d3e(0x38b)][_0x3d4d3e(0x551)]:{_0x388f2b={'eventID':p['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x30ab2[_0x3d4d3e(0x19b)]['data']};break;}case p['CollaborationEvent'][_0x3d4d3e(0x43b)]:{_0x388f2b={'eventID':p[_0x3d4d3e(0x38b)][_0x3d4d3e(0x43b)],'liveShareRequestHost':_0x30ab2[_0x3d4d3e(0x19b)][_0x3d4d3e(0x19b)]};break;}case p[_0x3d4d3e(0x38b)]['LIVESHARE_FETCH_OPERATIONS']:{_0x388f2b={'eventID':p[_0x3d4d3e(0x38b)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x388f2b={'eventID':_0x30ab2[_0x3d4d3e(0x19b)][_0x3d4d3e(0x422)]};}return JSON['stringify']({'cmd':_0x30ab2['cmd'],'routeKey':_0x30ab2[_0x3d4d3e(0x473)],'collaMsg':_0x388f2b});}case G[_0x3d4d3e(0x26f)]:return JSON[_0x3d4d3e(0x405)]({'cmd':_0x30ab2[_0x3d4d3e(0x331)],'routeKey':_0x30ab2['routeKey'],'joinReq':_0x30ab2[_0x3d4d3e(0x19b)]});case G[_0x3d4d3e(0x1aa)]:return JSON['stringify']({'cmd':_0x30ab2['cmd'],'routeKey':_0x30ab2['routeKey'],'leaveReq':_0x30ab2[_0x3d4d3e(0x19b)]});default:throw new Error(_0x3d4d3e(0x358));}}var Qi=Object[_0x3a3cba(0x5d1)],en=Object[_0x3a3cba(0x42d)],tn=(_0x49b00d,_0x17f1f1,_0x5b6a03,_0x4e8314)=>{const _0x4fc122=_0x3a3cba;for(var _0x5b1872=_0x4e8314>0x1?void 0x0:_0x4e8314?en(_0x17f1f1,_0x5b6a03):_0x17f1f1,_0x3a4f42=_0x49b00d[_0x4fc122(0x16b)]-0x1,_0x2744f3;_0x3a4f42>=0x0;_0x3a4f42--)(_0x2744f3=_0x49b00d[_0x3a4f42])&&(_0x5b1872=(_0x4e8314?_0x2744f3(_0x17f1f1,_0x5b6a03,_0x5b1872):_0x2744f3(_0x5b1872))||_0x5b1872);return _0x4e8314&&_0x5b1872&&Qi(_0x17f1f1,_0x5b6a03,_0x5b1872),_0x5b1872;},Pe=(_0x4d4b2d,_0x5eb28b)=>(_0x15242f,_0x195800)=>_0x5eb28b(_0x15242f,_0x195800,_0x4d4b2d);const Tt=a[_0x3a3cba(0x197)]('univer-pro.collaboration-client-socket-service');function nn(_0xb7a079,_0x11c077,_0x2ecc90){const _0x5d69f2=_0x3a3cba;return _0xb7a079+'/'+_0x11c077+_0x5d69f2(0x39c)+_0x2ecc90+_0x5d69f2(0x1fa);}exports[_0x3a3cba(0x367)]=class extends a[_0x3a3cba(0x28a)]{constructor(_0x5fe679,_0x51401b,_0x29f6ec,_0x3047e9,_0x196c49){const _0x4b5050=_0x3a3cba;super(),this['_http']=_0x5fe679,this[_0x4b5050(0x5bd)]=_0x51401b,this['_configService']=_0x29f6ec,this[_0x4b5050(0x590)]=_0x3047e9,this[_0x4b5050(0x566)]=_0x196c49;}[_0x3a3cba(0x1e7)](_0x6245b8){const _0x29ba2b=_0x3a3cba,_0x7139e3=this['_ws'][_0x29ba2b(0x1e7)](_0x6245b8);if(!_0x7139e3)throw new Error(_0x29ba2b(0x22d));const _0xf182b1=new a[(_0x29ba2b(0x18c))](),_0x2af862=new A['Subject']();_0xf182b1[_0x29ba2b(0x4b3)](_0x7139e3[_0x29ba2b(0x182)]['subscribe'](_0x42afdb=>_0x2af862['next'](_0x42afdb))),_0xf182b1[_0x29ba2b(0x4b3)](a[_0x29ba2b(0x2bd)](()=>_0x2af862[_0x29ba2b(0x5a7)]()));const _0x3e36e5=new A[(_0x29ba2b(0x132))]();_0xf182b1[_0x29ba2b(0x4b3)](_0x7139e3[_0x29ba2b(0x2c8)][_0x29ba2b(0x250)](_0xda9f18=>_0x3e36e5[_0x29ba2b(0x519)](_0xda9f18))),_0xf182b1[_0x29ba2b(0x4b3)](a[_0x29ba2b(0x2bd)](()=>_0x3e36e5[_0x29ba2b(0x5a7)]()));const _0x3e5c86=new A[(_0x29ba2b(0x132))]();_0xf182b1['add'](_0x7139e3[_0x29ba2b(0x3f9)][_0x29ba2b(0x250)](_0x144b27=>{const _0x3b6add=di(_0x144b27);_0x3e5c86['next'](_0x3b6add);})),_0xf182b1[_0x29ba2b(0x4b3)](a['toDisposable'](()=>_0x3e5c86['complete']()));let _0x204582;const _0x502b8f=()=>{const _0x20ee6e=_0x29ba2b;_0x3e36e5[_0x20ee6e(0x519)](new Event(_0x20ee6e(0x5dd))),_0x2af862['next'](new CloseEvent(_0x20ee6e(0x5dd))),_0x204582[_0x20ee6e(0x14b)]();};return _0x204582={'memberID':'','close$':_0x2af862[_0x29ba2b(0x216)](),'error$':_0x3e36e5['asObservable'](),'open$':_0x7139e3[_0x29ba2b(0x4d6)],'message$':_0x3e5c86['asObservable'](),'send':_0x5ca2bf=>{const _0x54f013=_0x29ba2b;if(_0x5ca2bf[_0x54f013(0x331)]===G['INGEST']){if(_0x5ca2bf['data'][_0x54f013(0x422)]===p[_0x54f013(0x38b)]['SUBMIT_CHANGESET']){this[_0x54f013(0x418)](_0x204582,_0x5ca2bf[_0x54f013(0x19b)])[_0x54f013(0x3e0)](_0x59136b=>{const _0x2869c1=_0x54f013;this[_0x2869c1(0x590)][_0x2869c1(0x2e5)](_0x59136b),_0x502b8f();});return;}if(_0x5ca2bf['data'][_0x54f013(0x422)]===p[_0x54f013(0x38b)][_0x54f013(0x461)]){const _0x23dfff=_0x5ca2bf[_0x54f013(0x19b)];this[_0x54f013(0x23b)](_0x23dfff)[_0x54f013(0x3b0)](_0x23d5c2=>{const _0x28a3f0=_0x54f013;_0x3e5c86[_0x28a3f0(0x519)]({'cmd':G['RECV'],'code':bt['OK'],'routeKey':_0x23dfff[_0x28a3f0(0x19b)][_0x28a3f0(0x40b)],'routeType':'','data':{'eventID':p[_0x28a3f0(0x38b)][_0x28a3f0(0x21c)],'data':{'changesets':_0x23d5c2}}});})[_0x54f013(0x3e0)](_0xb63cf=>{const _0x488eab=_0x54f013;this[_0x488eab(0x590)][_0x488eab(0x2e5)](_0xb63cf),_0x502b8f();});return;}}_0x7139e3[_0x54f013(0x52a)](fi(_0x5ca2bf));},'close':()=>{const _0x2bccf5=_0x29ba2b;_0x7139e3[_0x2bccf5(0x14b)](),_0xf182b1[_0x2bccf5(0x30a)]();}},_0x204582;}async[_0x3a3cba(0x418)](_0x4f74d9,_0x5e32f2){const _0x2ef9c8=_0x3a3cba;var _0x55f0eb,_0x113796;const {unitType:_0x331396,unitID:_0x527cdc,changeset:_0x54593e}=_0x5e32f2['data'],_0x59f929={'unitID':_0x527cdc,'memberID':_0x4f74d9[_0x2ef9c8(0x35c)],'type':_0x331396,'changeset':p['parseChangesetToProtocol'](_0x54593e)},_0x57883a=this['_configService'][_0x2ef9c8(0x3cc)](li),_0x12564e=this[_0x2ef9c8(0x4d1)][_0x2ef9c8(0x3cc)](Q),_0x5459e7=nn((_0x113796=(_0x55f0eb=_0x12564e==null?void 0x0:_0x12564e[_0x2ef9c8(0x1ea)])!=null?_0x55f0eb:_0x57883a)!=null?_0x113796:Xi,_0x331396,_0x527cdc);try{await this[_0x2ef9c8(0x587)][_0x2ef9c8(0x4e0)](_0x5459e7,{'body':_0x59f929});}catch(_0x5d16c9){throw this[_0x2ef9c8(0x590)]['error'](_0x2ef9c8(0x333),_0x2ef9c8(0x33f)),_0x5d16c9;}}async[_0x3a3cba(0x23b)](_0x284ef7){const _0x4d734c=_0x3a3cba,{unitID:_0x326b60,from:_0x3e8326,to:_0x213072,unitType:_0x15207d}=_0x284ef7[_0x4d734c(0x19b)];return(await this[_0x4d734c(0x566)][_0x4d734c(0x1e0)]({'metadata':void 0x0},{'unitID':_0x326b60,'type':_0x15207d,'from':_0x3e8326,'to':_0x213072}))['changesets'];}},exports[_0x3a3cba(0x367)]=tn([Pe(0x0,a[_0x3a3cba(0x4b4)](z[_0x3a3cba(0x36b)])),Pe(0x1,a[_0x3a3cba(0x4b4)](z['WebSocketService'])),Pe(0x2,a['IConfigService']),Pe(0x3,a[_0x3a3cba(0x4cc)]),Pe(0x4,p['ISnapshotServerService'])],exports[_0x3a3cba(0x367)]);const sn=_0x3a3cba(0x4bf);function rn(_0x48876c){const _0x27930a=_0x3a3cba;return JSON[_0x27930a(0x405)](_0x48876c)['length'];}class Rt{constructor(){const _0x2c02db=_0x3a3cba;I(this,_0x2c02db(0x3d5),new A['Subject']()),I(this,'commentUpdate$',this['_commentUpdate$']['asObservable']());}[_0x3a3cba(0x1af)](_0x404008){const _0x55cdf2=_0x3a3cba;this[_0x55cdf2(0x3d5)][_0x55cdf2(0x519)](_0x404008);}}var on=Object[_0x3a3cba(0x5d1)],an=Object['getOwnPropertyDescriptor'],cn=(_0x36e8e8,_0x1067df,_0x15cd28,_0x1fae73)=>{for(var _0xb75f8b=_0x1fae73>0x1?void 0x0:_0x1fae73?an(_0x1067df,_0x15cd28):_0x1067df,_0x1f6ca2=_0x36e8e8['length']-0x1,_0x58404f;_0x1f6ca2>=0x0;_0x1f6ca2--)(_0x58404f=_0x36e8e8[_0x1f6ca2])&&(_0xb75f8b=(_0x1fae73?_0x58404f(_0x1067df,_0x15cd28,_0xb75f8b):_0x58404f(_0xb75f8b))||_0xb75f8b);return _0x1fae73&&_0xb75f8b&&on(_0x1067df,_0x15cd28,_0xb75f8b),_0xb75f8b;},At=(_0x143e3c,_0x346a66)=>(_0x4e1a0f,_0x2febcb)=>_0x346a66(_0x4e1a0f,_0x2febcb,_0x143e3c);exports[_0x3a3cba(0x510)]=class extends a[_0x3a3cba(0x28a)]{constructor(_0x429ddb,_0x4919a0){const _0x515843=_0x3a3cba;super(),I(this,_0x515843(0x5bc),new Map()),(this[_0x515843(0x206)]=_0x429ddb,this['_userManagerService']=_0x4919a0,this[_0x515843(0x5e6)](a[_0x515843(0x2bd)](A['merge'](this[_0x515843(0x206)]['getTypeOfUnitDisposed$'](a[_0x515843(0x231)][_0x515843(0x1b5)])[_0x515843(0x17b)](V[_0x515843(0x53a)](_0x5b9976=>_0x5b9976[_0x515843(0x470)]())),this['_univerInstanceService'][_0x515843(0x404)](a[_0x515843(0x231)]['UNIVER_DOC'])[_0x515843(0x17b)](V['map'](_0x5db454=>_0x5db454[_0x515843(0x470)]())),this[_0x515843(0x206)][_0x515843(0x404)](a[_0x515843(0x231)][_0x515843(0x23d)])[_0x515843(0x17b)](V[_0x515843(0x53a)](_0x5bc962=>_0x5bc962[_0x515843(0x470)]())))[_0x515843(0x250)](_0x277e8d=>this[_0x515843(0x573)](_0x277e8d)))));}[_0x3a3cba(0x183)](_0x17e6d2){const _0x1f3d9b=_0x3a3cba;this['_userManagerService'][_0x1f3d9b(0x183)](_0x17e6d2);}[_0x3a3cba(0x243)](){const _0x2f9d9c=_0x3a3cba;return this[_0x2f9d9c(0x256)][_0x2f9d9c(0x243)]();}[_0x3a3cba(0x2d2)](_0x2855c5,_0x1f3290){const _0xf18ce0=_0x3a3cba;let _0x59b3b9=this[_0xf18ce0(0x5bc)]['get'](_0x2855c5);_0x59b3b9||(_0x59b3b9=new ln(),this[_0xf18ce0(0x5bc)][_0xf18ce0(0x38a)](_0x2855c5,_0x59b3b9)),_0x59b3b9[_0xf18ce0(0x2d2)](_0x1f3290);}[_0x3a3cba(0x5e0)](_0x2d0d0d,_0x23e3f2){const _0x452d47=_0x3a3cba,_0x297dc5=this['_roomMembers'][_0x452d47(0x449)](_0x2d0d0d);_0x297dc5&&_0x297dc5[_0x452d47(0x5e0)](_0x23e3f2);}[_0x3a3cba(0x5e7)](_0x1f2c63){return this['_roomMembers']['get'](_0x1f2c63);}[_0x3a3cba(0x50a)](_0x356fe8,_0x3d6000){const _0x5d0d27=_0x3a3cba,_0x7d5255=this[_0x5d0d27(0x5bc)][_0x5d0d27(0x449)](_0x356fe8);if(_0x7d5255)return _0x7d5255[_0x5d0d27(0x50a)](_0x3d6000);}[_0x3a3cba(0x573)](_0x337230){const _0x136045=_0x3a3cba,_0x11b8ba=this['_roomMembers'][_0x136045(0x449)](_0x337230);_0x11b8ba&&(_0x11b8ba[_0x136045(0x30a)](),this['_roomMembers']['delete'](_0x337230));}[_0x3a3cba(0x30a)](){const _0x26883c=_0x3a3cba;this[_0x26883c(0x5bc)][_0x26883c(0x281)](_0x35e9ba=>_0x35e9ba[_0x26883c(0x30a)]()),this[_0x26883c(0x5bc)][_0x26883c(0x505)]();}},exports[_0x3a3cba(0x510)]=cn([At(0x0,a[_0x3a3cba(0x1c9)]),At(0x1,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x4e9)]))],exports[_0x3a3cba(0x510)]);class ln extends a[_0x3a3cba(0x28a)]{constructor(){const _0x2fafba=_0x3a3cba;super(...arguments),I(this,_0x2fafba(0x51f),new Map());}[_0x3a3cba(0x30a)](){const _0x21e1c8=_0x3a3cba;this[_0x21e1c8(0x51f)][_0x21e1c8(0x505)]();}[_0x3a3cba(0x2d2)](_0x23d90d){const _0x3d3fa5=_0x3a3cba;this['_members'][_0x3d3fa5(0x38a)](_0x23d90d[_0x3d3fa5(0x35c)],_0x23d90d);}['removeMember'](_0x25c8c6){const _0x14b806=_0x3a3cba;this[_0x14b806(0x51f)][_0x14b806(0x26b)](_0x25c8c6);}[_0x3a3cba(0x50a)](_0x54ce17){const _0x2c3dcd=_0x3a3cba;return this[_0x2c3dcd(0x51f)][_0x2c3dcd(0x449)](_0x54ce17);}[_0x3a3cba(0x5f0)](){const _0x28e50c=_0x3a3cba;return Array[_0x28e50c(0x1ba)](this[_0x28e50c(0x51f)][_0x28e50c(0x578)]());}}var hn=Object[_0x3a3cba(0x5d1)],_n=Object[_0x3a3cba(0x42d)],un=(_0x2f1241,_0x24ec3e,_0x3ac40f,_0xd2e102)=>{const _0x56222c=_0x3a3cba;for(var _0x4ac78a=_0xd2e102>0x1?void 0x0:_0xd2e102?_n(_0x24ec3e,_0x3ac40f):_0x24ec3e,_0xed2894=_0x2f1241[_0x56222c(0x16b)]-0x1,_0x4839a3;_0xed2894>=0x0;_0xed2894--)(_0x4839a3=_0x2f1241[_0xed2894])&&(_0x4ac78a=(_0xd2e102?_0x4839a3(_0x24ec3e,_0x3ac40f,_0x4ac78a):_0x4839a3(_0x4ac78a))||_0x4ac78a);return _0xd2e102&&_0x4ac78a&&hn(_0x24ec3e,_0x3ac40f,_0x4ac78a),_0x4ac78a;},de=(_0x513eaa,_0x4f117c)=>(_0xf32946,_0x196a4a)=>_0x4f117c(_0xf32946,_0x196a4a,_0x513eaa),se=(_0x100ec1=>(_0x100ec1[_0x100ec1[_0x3a3cba(0x23f)]=0x0]=_0x3a3cba(0x23f),_0x100ec1[_0x100ec1[_0x3a3cba(0x4d2)]=0x1]=_0x3a3cba(0x4d2),_0x100ec1[_0x100ec1[_0x3a3cba(0x49b)]=0x2]=_0x3a3cba(0x49b),_0x100ec1[_0x100ec1['ONLINE']=0x3]='ONLINE',_0x100ec1))(se||{});exports[_0x3a3cba(0x509)]=class extends a[_0x3a3cba(0x3c4)]{constructor(_0x512c71,_0x5a0848,_0xc5c647,_0x31e1f5,_0x3f906c,_0x1da5a0,_0xe136,_0x959092,_0x51d8c3,_0x360418){const _0x2803f0=_0x3a3cba;super(),I(this,_0x2803f0(0x3b4),new A[(_0x2803f0(0x2bf))](0x0)),I(this,'sessionStatus$',this['_sessionStatus$'][_0x2803f0(0x216)]()),I(this,_0x2803f0(0x503),new A[(_0x2803f0(0x132))]()),I(this,'event$',this['_event$'][_0x2803f0(0x216)]()),I(this,'_socket'),I(this,_0x2803f0(0x477)),I(this,_0x2803f0(0x5ae)),I(this,_0x2803f0(0x472),!0x1),I(this,_0x2803f0(0x32b),null),(this[_0x2803f0(0x3dc)]=_0x512c71,this[_0x2803f0(0x590)]=_0xc5c647,this[_0x2803f0(0x5b0)]=_0x31e1f5,this[_0x2803f0(0x133)]=_0x3f906c,this['_configService']=_0x1da5a0,this[_0x2803f0(0x507)]=_0xe136,this[_0x2803f0(0x2d0)]=_0x959092,this['_commentService']=_0x51d8c3,this[_0x2803f0(0x299)]=_0x360418,this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x5a0848[_0x2803f0(0x17b)](A['takeUntil'](this[_0x2803f0(0x541)]))[_0x2803f0(0x250)](_0x15a9af=>{const _0x18f3ca=_0x2803f0;var _0x28887a;typeof _0x15a9af>'u'||(this[_0x18f3ca(0x5ab)]=_0x15a9af,_0x15a9af?(this[_0x18f3ca(0x3da)](_0x15a9af),this[_0x18f3ca(0x477)]=_0x15a9af[_0x18f3ca(0x3f9)][_0x18f3ca(0x250)](_0x4ba600=>{const _0x28b25d=_0x18f3ca;_0x4ba600['routeKey']===this[_0x28b25d(0x3dc)]&&this['_onCombEvent'](_0x4ba600);})):(this[_0x18f3ca(0x466)](),this[_0x18f3ca(0x3b4)][_0x18f3ca(0x519)](0x2),(_0x28887a=this['_socketMessageSubscription'])==null||_0x28887a[_0x18f3ca(0x1c6)](),this[_0x18f3ca(0x477)]=null));}),this['disposeWithMe'](this[_0x2803f0(0x5b0)][_0x2803f0(0x5a8)](()=>{const _0x5b272e=_0x2803f0;var _0x31373e;(_0x31373e=this[_0x5b272e(0x5ab)])==null||_0x31373e[_0x5b272e(0x52a)]({'cmd':G[_0x5b272e(0x1aa)],'data':{'roomID':this[_0x5b272e(0x3dc)]}});})));}get['sessionStatus'](){const _0x45b043=_0x3a3cba;return this[_0x45b043(0x3b4)][_0x45b043(0x315)]();}[_0x3a3cba(0x542)](){const _0x31137a=_0x3a3cba;var _0x418e97,_0x43b3cd;return(_0x43b3cd=(_0x418e97=this[_0x31137a(0x5ab)])==null?void 0x0:_0x418e97['memberID'])!=null?_0x43b3cd:null;}[_0x3a3cba(0x30a)](){const _0x2dc6d6=_0x3a3cba;super[_0x2dc6d6(0x30a)](),this['dispose$'][_0x2dc6d6(0x519)](),this[_0x2dc6d6(0x541)][_0x2dc6d6(0x5a7)]();}[_0x3a3cba(0x14b)](){const _0x61a74b=_0x3a3cba;var _0x375e0d,_0x30a909;this[_0x61a74b(0x466)](),(_0x375e0d=this[_0x61a74b(0x5ab)])==null||_0x375e0d[_0x61a74b(0x52a)]({'cmd':G[_0x61a74b(0x1aa)],'data':{'roomID':this['_unitID']}}),(_0x30a909=this[_0x61a74b(0x5ab)])==null||_0x30a909[_0x61a74b(0x14b)](),this[_0x61a74b(0x503)][_0x61a74b(0x5a7)](),this[_0x61a74b(0x3b4)]['complete'](),this[_0x61a74b(0x30a)]();}['_onCombEvent'](_0x5419a4){const _0x5fd0ce=_0x3a3cba;_0x5419a4['cmd']===G['JOIN']?this['_onJoinRoomEvent'](_0x5419a4):_0x5419a4[_0x5fd0ce(0x331)]===G[_0x5fd0ce(0x204)]&&this['_onRecvEvent'](_0x5419a4);}[_0x3a3cba(0x3da)](_0x5ee0f4){const _0x46b040=_0x3a3cba;this[_0x46b040(0x3b4)]['next'](0x1),_0x5ee0f4[_0x46b040(0x52a)]({'cmd':G['JOIN'],'routeKey':this[_0x46b040(0x3dc)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x3a3cba(0x191)](_0x3e53ef){const _0x46ae47=_0x3a3cba;var _0x4fece6;if(_0x3e53ef[_0x46ae47(0x199)]===bt['FAIL']){this[_0x46ae47(0x133)]['show']({'type':Ce[_0x46ae47(0x45b)][_0x46ae47(0x56d)],'content':this['_localeService']['t'](_0x46ae47(0x1e4))}),this[_0x46ae47(0x3b4)][_0x46ae47(0x519)](0x2);return;}this['_sessionStatus$']['next'](0x3);const _0x558bed=(_0x4fece6=_0x3e53ef[_0x46ae47(0x19b)]['roomInfos'][this[_0x46ae47(0x3dc)]])==null?void 0x0:_0x4fece6[_0x46ae47(0x46c)];_0x558bed&&_0x558bed[_0x46ae47(0x281)](_0x23e066=>this[_0x46ae47(0x2d0)][_0x46ae47(0x2d2)](this['_unitID'],_0x23e066));}['_onRecvEvent'](_0xd11012){const _0xf5457c=_0x3a3cba;try{const _0x484c06=_0xd11012[_0xf5457c(0x19b)];switch(_0x484c06[_0xf5457c(0x422)]){case p[_0xf5457c(0x38b)][_0xf5457c(0x211)]:this[_0xf5457c(0x2ae)](_0x484c06),this['_event$'][_0xf5457c(0x519)](_0x484c06);break;case p[_0xf5457c(0x38b)][_0xf5457c(0x310)]:this[_0xf5457c(0x4b6)](_0x484c06),this[_0xf5457c(0x503)][_0xf5457c(0x519)](_0x484c06);break;case p[_0xf5457c(0x38b)]['CHANGESET_ACK']:case p[_0xf5457c(0x38b)]['CHANGESET_SHOULD_RETRY']:this[_0xf5457c(0x3f8)](),this[_0xf5457c(0x2a1)](),this['_event$']['next'](_0x484c06);break;case p[_0xf5457c(0x38b)]['MSG_FOR_ERROR']:this[_0xf5457c(0x590)]['error'](_0xf5457c(0x417)+JSON['stringify'](_0x484c06)),this[_0xf5457c(0x503)][_0xf5457c(0x519)](_0x484c06);break;case p[_0xf5457c(0x38b)][_0xf5457c(0x59e)]:this[_0xf5457c(0x2ed)][_0xf5457c(0x1af)](_0x484c06['data']),this[_0xf5457c(0x503)][_0xf5457c(0x519)](_0x484c06);break;default:this[_0xf5457c(0x503)]['next'](_0x484c06);}}catch(_0x4c6915){this['_logService']['error'](_0x4c6915,_0xd11012);}}[_0x3a3cba(0x2ae)](_0x4568e3){const _0x154c85=_0x3a3cba;this[_0x154c85(0x2d0)][_0x154c85(0x2d2)](this['_unitID'],_0x4568e3[_0x154c85(0x19b)]);}[_0x3a3cba(0x4b6)](_0x1e8741){const _0x1e4c32=_0x3a3cba;this[_0x1e4c32(0x2d0)][_0x1e4c32(0x5e0)](this['_unitID'],_0x1e8741[_0x1e4c32(0x19b)][_0x1e4c32(0x35c)]);}async['send'](_0x375e13,_0x23a2b9){const _0x4ce01d=_0x3a3cba;if(this[_0x4ce01d(0x146)]!==0x3||!this['_socket'])throw new Error(_0x4ce01d(0x402));try{_0x375e13[_0x4ce01d(0x422)]===p[_0x4ce01d(0x38b)][_0x4ce01d(0x5d6)]&&(this[_0x4ce01d(0x136)](),this[_0x4ce01d(0x3f0)](_0x375e13)),this['_socket']['send']({'cmd':G['INGEST'],'routeKey':_0x23a2b9,'routeType':'','data':_0x375e13});}catch(_0x316fbf){this['_logService']['error'](_0x316fbf);}}[_0x3a3cba(0x136)](){const _0x13050e=_0x3a3cba;var _0x32963a;this[_0x13050e(0x5ae)]=window['setTimeout'](()=>{const _0x9e4fc0=_0x13050e;this[_0x9e4fc0(0x5ae)]=null,this['_messageService'][_0x9e4fc0(0x1bd)]({'type':Ce['MessageType'][_0x9e4fc0(0x202)],'content':this[_0x9e4fc0(0x507)]['t'](_0x9e4fc0(0x5cf))});},(_0x32963a=this[_0x13050e(0x4d1)][_0x13050e(0x3cc)](Et))!=null?_0x32963a:oi);}['_clearCollaborationTimeoutTimer'](){const _0x1d2ed5=_0x3a3cba;this[_0x1d2ed5(0x5ae)]&&(clearTimeout(this[_0x1d2ed5(0x5ae)]),this['_collaborationTimeoutTimer']=null);}[_0x3a3cba(0x3f0)](_0x4eb20d){const _0x365f64=_0x3a3cba;if(!this[_0x365f64(0x472)])return;const {data:_0x299019}=_0x4eb20d,{unitID:_0x2d4870,changeset:_0x1a4993}=_0x299019,{mutations:_0x4c40e2,type:_0x5290b5}=_0x1a4993;this[_0x365f64(0x32b)]={'unitId':_0x2d4870,'type':_0x5290b5,'startTime':performance[_0x365f64(0x410)](),'stopTime':0x0,'duration':0x0,'size':rn(_0x4c40e2)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x17a498=_0x3a3cba;if(this['_shouldReportTelemetry']){if(!this[_0x17a498(0x32b)]){this[_0x17a498(0x590)]['error'](_0x17a498(0x333),_0x17a498(0x401));return;}this['_telemetryInfo'][_0x17a498(0x51d)]=performance['now'](),this['_telemetryInfo'][_0x17a498(0x481)]=this[_0x17a498(0x32b)][_0x17a498(0x51d)]-this[_0x17a498(0x32b)]['startTime'],this[_0x17a498(0x299)]['capture'](sn,this[_0x17a498(0x32b)]),this[_0x17a498(0x32b)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x29b8a1=_0x3a3cba;this[_0x29b8a1(0x32b)]=null;}},exports[_0x3a3cba(0x509)]=un([de(0x2,a[_0x3a3cba(0x4cc)]),de(0x3,te[_0x3a3cba(0x5ad)]),de(0x4,te[_0x3a3cba(0x28d)]),de(0x5,a[_0x3a3cba(0x311)]),de(0x6,a[_0x3a3cba(0x4b4)](a['LocaleService'])),de(0x7,a['Inject'](exports[_0x3a3cba(0x510)])),de(0x8,a[_0x3a3cba(0x4b4)](Rt)),de(0x9,a['Optional'](Hi[_0x3a3cba(0x50e)]))],exports[_0x3a3cba(0x509)]);var dn=Object['defineProperty'],fn=Object[_0x3a3cba(0x42d)],vn=(_0x62bc70,_0x472b2e,_0x590516,_0x5045cc)=>{for(var _0x5a4e3c=_0x5045cc>0x1?void 0x0:_0x5045cc?fn(_0x472b2e,_0x590516):_0x472b2e,_0x3f27a1=_0x62bc70['length']-0x1,_0x1d219f;_0x3f27a1>=0x0;_0x3f27a1--)(_0x1d219f=_0x62bc70[_0x3f27a1])&&(_0x5a4e3c=(_0x5045cc?_0x1d219f(_0x472b2e,_0x590516,_0x5a4e3c):_0x1d219f(_0x5a4e3c))||_0x5a4e3c);return _0x5045cc&&_0x5a4e3c&&dn(_0x472b2e,_0x590516,_0x5a4e3c),_0x5a4e3c;},pe=(_0x2592fa,_0x153ca6)=>(_0xdcf772,_0x393b0c)=>_0x153ca6(_0xdcf772,_0x393b0c,_0x2592fa);exports['CollaborationSessionService']=class extends a[_0x3a3cba(0x28a)]{constructor(_0x30764a,_0x2321c5,_0x494623,_0x56d218,_0xece526,_0x208d0a,_0x6bf582){const _0x263b80=_0x3a3cba;super(),I(this,_0x263b80(0x188),new A['BehaviorSubject'](void 0x0)),I(this,_0x263b80(0x4b5),this['_socket$']['asObservable']()),I(this,'_candidateSocket',null),I(this,_0x263b80(0x3c3),new Map()),I(this,_0x263b80(0x2c7),new A[(_0x263b80(0x2bf))](se['IDLE'])),I(this,_0x263b80(0x47f),this['_status$'][_0x263b80(0x216)]()),I(this,_0x263b80(0x46e),!0x1),I(this,'_retryConnectingTimer'),I(this,'_retryCount',0x0),I(this,_0x263b80(0x597)),I(this,_0x263b80(0x393)),(this[_0x263b80(0x23e)]=_0x30764a,this[_0x263b80(0x507)]=_0x2321c5,this[_0x263b80(0x133)]=_0x494623,this['_logService']=_0x56d218,this[_0x263b80(0x4d1)]=_0xece526,this[_0x263b80(0x482)]=_0x208d0a,this[_0x263b80(0x586)]=_0x6bf582,this[_0x263b80(0x588)]());}get[_0x3a3cba(0x5ab)](){const _0x887995=_0x3a3cba;return this[_0x887995(0x188)][_0x887995(0x315)]();}[_0x3a3cba(0x588)](){const _0x46d628=_0x3a3cba;this[_0x46d628(0x222)](),this[_0x46d628(0x43e)]();}[_0x3a3cba(0x30a)](){const _0x4416d9=_0x3a3cba;super[_0x4416d9(0x30a)](),this[_0x4416d9(0x3c3)][_0x4416d9(0x281)](_0x40e0df=>_0x40e0df[_0x4416d9(0x30a)]()),this[_0x4416d9(0x3c3)]['clear'](),this[_0x4416d9(0x2c7)][_0x4416d9(0x5a7)]();}async[_0x3a3cba(0x1e3)](_0x5a3a31){const _0x1ea92c=_0x3a3cba;if(this[_0x1ea92c(0x3c3)][_0x1ea92c(0x16f)](_0x5a3a31))return this[_0x1ea92c(0x3c3)][_0x1ea92c(0x449)](_0x5a3a31);this[_0x1ea92c(0x1c8)]();const _0x2a9bd3=this[_0x1ea92c(0x23e)][_0x1ea92c(0x1c5)](exports['CollaborationSession'],_0x5a3a31,this[_0x1ea92c(0x188)][_0x1ea92c(0x216)]());return this[_0x1ea92c(0x3c3)][_0x1ea92c(0x38a)](_0x5a3a31,_0x2a9bd3),_0x2a9bd3;}[_0x3a3cba(0x445)](_0x38a36a){const _0x312a58=_0x3a3cba;var _0x470242;const _0xd2bf38=this[_0x312a58(0x3c3)][_0x312a58(0x449)](_0x38a36a);_0xd2bf38&&(this[_0x312a58(0x3c3)][_0x312a58(0x26b)](_0x38a36a),_0xd2bf38[_0x312a58(0x14b)]()),this[_0x312a58(0x3c3)][_0x312a58(0x51e)]||(_0x470242=this[_0x312a58(0x5ab)])==null||_0x470242[_0x312a58(0x14b)]();}[_0x3a3cba(0x533)](){const _0x3c2dc1=_0x3a3cba;this[_0x3c2dc1(0x553)]=0x0,this[_0x3c2dc1(0x49d)]!=null&&(clearTimeout(this[_0x3c2dc1(0x49d)]),this['_retryConnectingTimer']=null),this['_tryReconnect']();}async['_getSessionTicket'](){const _0xe86996=_0x3a3cba;var _0x42bd99,_0x18e4c2,_0x29a931;const _0x26dab7=this[_0xe86996(0x4d1)][_0xe86996(0x3cc)](Q),_0x5ac567=(_0x42bd99=_0x26dab7==null?void 0x0:_0x26dab7[_0xe86996(0x34b)])!=null?_0x42bd99:Gi;return(_0x29a931=(_0x18e4c2=(await this[_0xe86996(0x586)][_0xe86996(0x449)](_0x5ac567,{'headers':{'Content-Type':_0xe86996(0x164)}}))[_0xe86996(0x4eb)])==null?void 0x0:_0x18e4c2[_0xe86996(0x50c)])!=null?_0x29a931:'';}[_0x3a3cba(0x58f)](_0x570b49){const _0x39347f=_0x3a3cba;var _0x4faa37,_0x15cfac;const _0xdfb24d=this[_0x39347f(0x4d1)][_0x39347f(0x3cc)](si),_0x2591f9=this[_0x39347f(0x4d1)]['getConfig'](Q),_0x112ec8=(_0x15cfac=(_0x4faa37=_0x2591f9==null?void 0x0:_0x2591f9[_0x39347f(0x242)])!=null?_0x4faa37:_0xdfb24d)!=null?_0x15cfac:Vi,_0x2c78e8=new URL(_0x112ec8,window[_0x39347f(0x5be)]['origin']);return _0x2c78e8[_0x39347f(0x22f)]['set'](_0x39347f(0x319),_0x570b49),_0x2c78e8[_0x39347f(0x2c4)]();}async[_0x3a3cba(0x2f9)](){const _0x1fa195=_0x3a3cba,_0x306c3b=await this[_0x1fa195(0x57b)](),_0x11ea9b=this[_0x1fa195(0x58f)](_0x306c3b),_0x10a387=this[_0x1fa195(0x482)][_0x1fa195(0x1e7)](_0x11ea9b);return this[_0x1fa195(0x474)]=_0x10a387,_0x10a387;}async[_0x3a3cba(0x1c8)](){const _0x2a234c=_0x3a3cba;var _0x2a26de,_0x3670b8;try{const _0x36b9d9=(_0x3670b8=(_0x2a26de=this[_0x2a234c(0x5ab)])!=null?_0x2a26de:this[_0x2a234c(0x474)])!=null?_0x3670b8:await this[_0x2a234c(0x2f9)]();if(_0x36b9d9){const _0x1ec81c=_0x36b9d9[_0x2a234c(0x52a)];_0x36b9d9['send']=_0x18c0d7=>(this[_0x2a234c(0x403)](),_0x1ec81c['apply'](_0x36b9d9,[_0x18c0d7])),_0x36b9d9[_0x2a234c(0x3f9)][_0x2a234c(0x250)](_0x17f539=>this[_0x2a234c(0x5bf)](_0x36b9d9,_0x17f539)),_0x36b9d9[_0x2a234c(0x2c8)]['pipe'](V[_0x2a234c(0x1e9)](0x1))[_0x2a234c(0x250)](_0x3d31c1=>this[_0x2a234c(0x590)]['error']('[CollaborationSessionService]:\x20socket\x20error',_0x3d31c1)),_0x36b9d9[_0x2a234c(0x4d6)][_0x2a234c(0x17b)](V['take'](0x1))[_0x2a234c(0x250)](()=>{const _0x4ba9a4=_0x2a234c;this[_0x4ba9a4(0x326)](_0x36b9d9);}),_0x36b9d9[_0x2a234c(0x182)][_0x2a234c(0x17b)](V[_0x2a234c(0x1e9)](0x1))['subscribe'](_0x44fef2=>{const _0x4b8ae6=_0x2a234c;this[_0x4b8ae6(0x590)][_0x4b8ae6(0x2ba)](_0x4b8ae6(0x365),_0x4b8ae6(0x4af),_0x44fef2),this[_0x4b8ae6(0x425)]();});}}catch(_0x10446f){this['_logService'][_0x2a234c(0x2e5)](_0x10446f),this[_0x2a234c(0x425)]();}}[_0x3a3cba(0x326)](_0x455c69){const _0x25dff4=_0x3a3cba;this[_0x25dff4(0x590)][_0x25dff4(0x2ba)](_0x25dff4(0x365),_0x25dff4(0x575)),_0x455c69['send']({'cmd':G[_0x25dff4(0x239)]}),this[_0x25dff4(0x403)]();}[_0x3a3cba(0x222)](){const _0x5ecc1d=_0x3a3cba;window[_0x5ecc1d(0x22b)](_0x5ecc1d(0x4cb),()=>this[_0x5ecc1d(0x342)]());}['_onOffline'](){const _0x12cd8e=_0x3a3cba;this['_socketReady']=!0x1,this[_0x12cd8e(0x474)]=null,this[_0x12cd8e(0x2c7)][_0x12cd8e(0x519)](se[_0x12cd8e(0x49b)]),this['_socket$']['next'](null),this[_0x12cd8e(0x426)](),this[_0x12cd8e(0x18d)]();}['_onConnectionFailed'](){const _0x2ec87c=_0x3a3cba;var _0x416192;this[_0x2ec87c(0x342)](),this[_0x2ec87c(0x553)]<((_0x416192=this[_0x2ec87c(0x4d1)][_0x2ec87c(0x3cc)](ai))!=null?_0x416192:qi)?(this[_0x2ec87c(0x133)][_0x2ec87c(0x1bd)]({'key':_0x2ec87c(0x529),'type':Ce['MessageType'][_0x2ec87c(0x56d)],'content':this['_localeService']['t'](_0x2ec87c(0x2d6))}),this[_0x2ec87c(0x1c1)]()):this[_0x2ec87c(0x133)]['show']({'key':'collaboration-session-retry','type':Ce[_0x2ec87c(0x45b)][_0x2ec87c(0x202)],'content':this[_0x2ec87c(0x507)]['t'](_0x2ec87c(0x522))});}[_0x3a3cba(0x43e)](){const _0x114049=_0x3a3cba,_0x180429=()=>{const _0x13bb24=_0x131b;this[_0x13bb24(0x5ab)]||this[_0x13bb24(0x533)]();},_0x5734e3=()=>{const _0x140fa4=_0x131b;this[_0x140fa4(0x5ab)]||document[_0x140fa4(0x2ea)]==='hidden'||this[_0x140fa4(0x533)]();};window['addEventListener'](_0x114049(0x3af),_0x180429),document[_0x114049(0x22b)]('visibilitychange',_0x5734e3);}[_0x3a3cba(0x1c1)](){const _0xd8958a=_0x3a3cba;var _0x2227c2;const _0x30987b=this[_0xd8958a(0x553)],_0x236007=this[_0xd8958a(0x4d1)][_0xd8958a(0x3cc)](Q),_0x2e6e0c=_0x30987b===0x0?0x0:((_0x2227c2=_0x236007==null?void 0x0:_0x236007[_0xd8958a(0x412)])!=null?_0x2227c2:Ki)*0x2**_0x30987b;this[_0xd8958a(0x49d)]=window[_0xd8958a(0x300)](()=>{const _0x4f004f=_0xd8958a;clearTimeout(this['_retryConnectingTimer']),this[_0x4f004f(0x49d)]=null,this[_0x4f004f(0x1c8)]();},_0x2e6e0c),this[_0xd8958a(0x553)]+=0x1;}['_onMessage'](_0x53dd5c,_0x226111){const _0x3e467a=_0x3a3cba,{cmd:_0x27dcb5}=_0x226111;_0x27dcb5===G[_0x3e467a(0x239)]&&!this['_socketReady']&&(_0x53dd5c[_0x3e467a(0x35c)]=_0x226111[_0x3e467a(0x19b)]['memberID'],this['_socket$'][_0x3e467a(0x519)](_0x53dd5c),this[_0x3e467a(0x2c7)][_0x3e467a(0x519)](se[_0x3e467a(0x471)]),this['_socketReady']=!0x0,this[_0x3e467a(0x474)]=null),_0x27dcb5===G['HEARTBEAT']&&this['_clearTimeoutTimer'](),this['_rescheduleHeartbeat']();}[_0x3a3cba(0x403)](){const _0x4b354e=_0x3a3cba;var _0x118e2a;this[_0x4b354e(0x18d)](),this[_0x4b354e(0x597)]=window[_0x4b354e(0x300)](()=>this[_0x4b354e(0x312)](),(_0x118e2a=this[_0x4b354e(0x4d1)][_0x4b354e(0x3cc)](ri))!=null?_0x118e2a:Yi);}['_sendHeartbeat'](){const _0x2bcbf5=_0x3a3cba;this[_0x2bcbf5(0x5ab)][_0x2bcbf5(0x52a)]({'cmd':G[_0x2bcbf5(0x175)]}),this[_0x2bcbf5(0x4d0)]();}[_0x3a3cba(0x4d0)](){const _0x59e5e6=_0x3a3cba;var _0x51ee86;this[_0x59e5e6(0x393)]=window[_0x59e5e6(0x300)](()=>this['_onConnectionFailed'](),(_0x51ee86=this[_0x59e5e6(0x4d1)][_0x59e5e6(0x3cc)](Et))!=null?_0x51ee86:oi);}[_0x3a3cba(0x18d)](){const _0x2eca44=_0x3a3cba;this[_0x2eca44(0x597)]!=null&&(clearTimeout(this[_0x2eca44(0x597)]),this[_0x2eca44(0x597)]=null);}[_0x3a3cba(0x426)](){const _0x2b9d21=_0x3a3cba;this[_0x2b9d21(0x393)]!=null&&(clearTimeout(this[_0x2b9d21(0x393)]),this[_0x2b9d21(0x393)]=null);}},exports[_0x3a3cba(0x19d)]=vn([pe(0x0,a['Inject'](a[_0x3a3cba(0x207)])),pe(0x1,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x2b2)])),pe(0x2,te[_0x3a3cba(0x28d)]),pe(0x3,a[_0x3a3cba(0x4cc)]),pe(0x4,a[_0x3a3cba(0x311)]),pe(0x5,Tt),pe(0x6,a[_0x3a3cba(0x4b4)](z[_0x3a3cba(0x36b)]))],exports[_0x3a3cba(0x19d)]);const Y=[];for(let s=0x0;s<0x100;++s)Y[_0x3a3cba(0x31b)]((s+0x100)[_0x3a3cba(0x2c4)](0x10)[_0x3a3cba(0x145)](0x1));function Sn(_0x159e28,_0x34e347=0x0){const _0x18ea6a=_0x3a3cba;return(Y[_0x159e28[_0x34e347+0x0]]+Y[_0x159e28[_0x34e347+0x1]]+Y[_0x159e28[_0x34e347+0x2]]+Y[_0x159e28[_0x34e347+0x3]]+'-'+Y[_0x159e28[_0x34e347+0x4]]+Y[_0x159e28[_0x34e347+0x5]]+'-'+Y[_0x159e28[_0x34e347+0x6]]+Y[_0x159e28[_0x34e347+0x7]]+'-'+Y[_0x159e28[_0x34e347+0x8]]+Y[_0x159e28[_0x34e347+0x9]]+'-'+Y[_0x159e28[_0x34e347+0xa]]+Y[_0x159e28[_0x34e347+0xb]]+Y[_0x159e28[_0x34e347+0xc]]+Y[_0x159e28[_0x34e347+0xd]]+Y[_0x159e28[_0x34e347+0xe]]+Y[_0x159e28[_0x34e347+0xf]])[_0x18ea6a(0x259)]();}let Ze;const pn=new Uint8Array(0x10);function mn(){const _0x34dbb4=_0x3a3cba;if(!Ze){if(typeof crypto>'u'||!crypto[_0x34dbb4(0x547)])throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');Ze=crypto['getRandomValues']['bind'](crypto);}return Ze(pn);}const gn=typeof crypto<'u'&&crypto[_0x3a3cba(0x42a)]&&crypto[_0x3a3cba(0x42a)]['bind'](crypto),Nt={'randomUUID':gn};function In(_0x19991a,_0x152f0a,_0x25775e){const _0x1b0a74=_0x3a3cba;if(Nt[_0x1b0a74(0x42a)]&&!_0x152f0a&&!_0x19991a)return Nt['randomUUID']();_0x19991a=_0x19991a||{};const _0x1dd2dd=_0x19991a[_0x1b0a74(0x14e)]||(_0x19991a['rng']||mn)();return _0x1dd2dd[0x6]=_0x1dd2dd[0x6]&0xf|0x40,_0x1dd2dd[0x8]=_0x1dd2dd[0x8]&0x3f|0x80,Sn(_0x1dd2dd);}var Cn=Object[_0x3a3cba(0x5d1)],En=Object['getOwnPropertyDescriptor'],bn=(_0x25a3e1,_0x28c191,_0x3c932d,_0x1f52a8)=>{const _0x2a55f7=_0x3a3cba;for(var _0x1e2c97=_0x1f52a8>0x1?void 0x0:_0x1f52a8?En(_0x28c191,_0x3c932d):_0x28c191,_0x32e604=_0x25a3e1[_0x2a55f7(0x16b)]-0x1,_0x11504a;_0x32e604>=0x0;_0x32e604--)(_0x11504a=_0x25a3e1[_0x32e604])&&(_0x1e2c97=(_0x1f52a8?_0x11504a(_0x28c191,_0x3c932d,_0x1e2c97):_0x11504a(_0x1e2c97))||_0x1e2c97);return _0x1f52a8&&_0x1e2c97&&Cn(_0x28c191,_0x3c932d,_0x1e2c97),_0x1e2c97;},Qe=(_0x3a164e,_0x3ef390)=>(_0x5cf21d,_0x555662)=>_0x3ef390(_0x5cf21d,_0x555662,_0x3a164e);let Be=class{constructor(_0x2f0100,_0x2503da,_0x23d538){const _0x33173c=_0x3a3cba;this[_0x33173c(0x23e)]=_0x2f0100,this[_0x33173c(0x37c)]=_0x2503da,this[_0x33173c(0x210)]=_0x23d538;}[_0x3a3cba(0x38d)](_0x423159){const _0x308b92=_0x3a3cba;this[_0x308b92(0x3e5)](_0x423159),this[_0x308b92(0x1eb)](_0x423159);}[_0x3a3cba(0x525)](_0x487c56){const _0xe9c8b=_0x3a3cba,{unitID:_0x1d2d16}=_0x487c56,_0x5cb3d4=this['_renderManagerService'][_0xe9c8b(0x594)](_0x1d2d16)[_0xe9c8b(0x51c)](J[_0xe9c8b(0x1dd)]),{redoCache:_0x1a2a76}=_0x5cb3d4[_0xe9c8b(0x332)]();if(_0x1a2a76[_0xe9c8b(0x16b)]===0x0)return _0x487c56;let _0x29c9c7=a['Tools'][_0xe9c8b(0x5ac)](_0x487c56['mutations'][0x0]);for(let _0x5ecef7=0x0;_0x5ecef7<_0x1a2a76[_0xe9c8b(0x16b)];_0x5ecef7++){const _0x5d9a66={'id':_0xe9c8b(0x487),'params':{..._0x1a2a76[_0x5ecef7]}},_0x1c4d9a=this[_0xe9c8b(0x37c)][_0xe9c8b(0x215)](_0x29c9c7,_0x5d9a66,!0x1);if(p[_0xe9c8b(0x5b9)](_0x1c4d9a))throw _0x1c4d9a[_0xe9c8b(0x2e5)];_0x29c9c7=_0x1c4d9a[_0xe9c8b(0x436)];}return{...a['Tools'][_0xe9c8b(0x5ac)](_0x487c56),'mutations':[_0x29c9c7]};}[_0x3a3cba(0x3e5)](_0x125b1a){const _0x5d241e=_0x3a3cba,{unitID:_0x23167c}=_0x125b1a,_0x59ab94=this[_0x5d241e(0x210)][_0x5d241e(0x594)](_0x23167c)[_0x5d241e(0x51c)](J['DocIMEInputManagerService']),{undoCache:_0x569b54,redoCache:_0x1e555e}=_0x59ab94[_0x5d241e(0x332)]();if(_0x569b54[_0x5d241e(0x16b)]===0x0||_0x1e555e[_0x5d241e(0x16b)]===0x0)return;const _0x4312b0=[],_0x41af90=[];let _0x5b2446=a[_0x5d241e(0x5e1)][_0x5d241e(0x5ac)](_0x125b1a[_0x5d241e(0x441)][0x0]),_0x1c7025=a['Tools'][_0x5d241e(0x5ac)](_0x125b1a[_0x5d241e(0x441)][0x0]);for(let _0x3aacee=_0x569b54[_0x5d241e(0x16b)]-0x1;_0x3aacee>=0x0;_0x3aacee--){const _0x5ee047={'id':'doc.mutation.rich-text-editing','params':{..._0x569b54[_0x3aacee]}},_0x121f9c={'id':_0x5d241e(0x487),'params':{..._0x1e555e[_0x3aacee]}},_0x33b9e0=this['_transformService'][_0x5d241e(0x215)](_0x5b2446,_0x5ee047,!0x1),_0x1314a8=this['_transformService'][_0x5d241e(0x215)](_0x1c7025,_0x121f9c,!0x1);if(p[_0x5d241e(0x5b9)](_0x33b9e0))throw _0x33b9e0[_0x5d241e(0x2e5)];if(p['isTransformMutationFailure'](_0x1314a8))throw _0x1314a8[_0x5d241e(0x2e5)];_0x4312b0[_0x5d241e(0x287)](_0x33b9e0[_0x5d241e(0x3c0)][_0x5d241e(0x599)]),_0x41af90[_0x5d241e(0x287)](_0x1314a8[_0x5d241e(0x3c0)][_0x5d241e(0x599)]),_0x5b2446=_0x33b9e0[_0x5d241e(0x436)],_0x1c7025=_0x1314a8[_0x5d241e(0x436)];}_0x59ab94[_0x5d241e(0x3d3)]({'undoCache':_0x4312b0,'redoCache':_0x41af90});}[_0x3a3cba(0x1eb)](_0x14dbf2){const _0x2e0e37=_0x3a3cba,{unitID:_0x4053bc}=_0x14dbf2,_0x35c975=this['_renderManagerService']['getRenderById'](_0x4053bc)['with'](J[_0x2e0e37(0x1dd)]),_0x567566=_0x35c975['getActiveRange']();if(_0x567566==null)return;const _0x2e0806=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x14dbf2[_0x2e0e37(0x40b)],'actions':null,'textRanges':[_0x567566]}}],_0x459c0d=this[_0x2e0e37(0x37c)][_0x2e0e37(0x295)](_0x14dbf2,_0x2e0806);if(!p[_0x2e0e37(0x45d)](_0x459c0d))throw _0x459c0d[_0x2e0e37(0x2e5)];const _0x58c94a=_0x459c0d['m2Prime'][0x0][_0x2e0e37(0x599)][_0x2e0e37(0x35b)];Array[_0x2e0e37(0x550)](_0x58c94a)&&_0x58c94a[_0x2e0e37(0x16b)]&&_0x35c975[_0x2e0e37(0x5e8)](_0x58c94a[0x0]);}};Be=bn([Qe(0x0,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x207)])),Qe(0x1,p[_0x3a3cba(0x4d5)]),Qe(0x2,K[_0x3a3cba(0x16d)])],Be);var Tn=Object[_0x3a3cba(0x5d1)],Rn=Object[_0x3a3cba(0x42d)],yn=(_0x1cf298,_0x3330ab,_0x19f0ae,_0x476203)=>{const _0x4d1b55=_0x3a3cba;for(var _0x1be4da=_0x476203>0x1?void 0x0:_0x476203?Rn(_0x3330ab,_0x19f0ae):_0x3330ab,_0x3372d3=_0x1cf298[_0x4d1b55(0x16b)]-0x1,_0x2aaa47;_0x3372d3>=0x0;_0x3372d3--)(_0x2aaa47=_0x1cf298[_0x3372d3])&&(_0x1be4da=(_0x476203?_0x2aaa47(_0x3330ab,_0x19f0ae,_0x1be4da):_0x2aaa47(_0x1be4da))||_0x1be4da);return _0x476203&&_0x1be4da&&Tn(_0x3330ab,_0x19f0ae,_0x1be4da),_0x1be4da;},we=(_0x52fd3a,_0x283768)=>(_0x3f49b7,_0xd23fa5)=>_0x283768(_0x3f49b7,_0xd23fa5,_0x52fd3a);exports[_0x3a3cba(0x158)]=class extends a[_0x3a3cba(0x28a)]{constructor(_0x5b7e5d,_0xd37033,_0xcbacd2,_0x4d7d33,_0x1f0c59){const _0x4c5de5=_0x3a3cba;super(),I(this,_0x4c5de5(0x5c5),new Map()),I(this,_0x4c5de5(0x3c9),new Map()),I(this,_0x4c5de5(0x356),!0x1),(this[_0x4c5de5(0x4d1)]=_0x5b7e5d,this[_0x4c5de5(0x5df)]=_0xd37033,this['_beforeCloseService']=_0xcbacd2,this[_0x4c5de5(0x507)]=_0x4d7d33,this[_0x4c5de5(0x42b)]=_0x1f0c59,this[_0x4c5de5(0x57e)]());}[_0x3a3cba(0x21a)](){const _0x22a5ac=_0x3a3cba;this[_0x22a5ac(0x356)]=!0x0;}[_0x3a3cba(0x5b1)](){const _0x2b0496=_0x3a3cba;this[_0x2b0496(0x356)]=!0x1;}[_0x3a3cba(0x30a)](){const _0x5622da=_0x3a3cba;this[_0x5622da(0x22e)]()[_0x5622da(0x3b0)](()=>super[_0x5622da(0x30a)]());}async[_0x3a3cba(0x45f)](_0x1c4c58){const _0x362662=_0x3a3cba;return this[_0x362662(0x356)]?null:this[_0x362662(0x5df)]['getItem'](Lt(_0x1c4c58));}async[_0x3a3cba(0x4f2)](_0x369b48,_0x642d47){const _0x338399=_0x3a3cba;return!!this[_0x338399(0x5df)][_0x338399(0x43f)](_0x369b48,_0x642d47);}[_0x3a3cba(0x2b0)](_0x59a8a3,_0xc606b,_0x30c3c8,_0x23b367){const _0x113699=_0x3a3cba,_0x42f4da=this[_0x113699(0x42b)][_0x113699(0x29e)](_0x59a8a3);this[_0x113699(0x5c5)]['set'](_0x59a8a3,{'unitID':_0x59a8a3,'type':_0xc606b,'awaitingChangeset':_0x30c3c8,'mutations':_0x23b367,'rev':_0x42f4da}),this[_0x113699(0x3c9)]['has'](_0x59a8a3)||this[_0x113699(0x200)](_0x59a8a3);}['_scheduleSaving'](_0x34b113){const _0x306fd6=_0x3a3cba,_0x207cec=this[_0x306fd6(0x1e6)]();_0x207cec===0x0?this[_0x306fd6(0x58a)](_0x34b113):this[_0x306fd6(0x3c9)][_0x306fd6(0x38a)](_0x34b113,setTimeout(()=>this['_saveCache'](_0x34b113),_0x207cec));}[_0x3a3cba(0x1e6)](){const _0x57add5=_0x3a3cba;var _0x372d5f;return(_0x372d5f=this[_0x57add5(0x4d1)][_0x57add5(0x3cc)](ci))!=null?_0x372d5f:zi;}['_saveCache'](_0x3b3965){const _0x50210f=_0x3a3cba,_0x2fcaaa=this[_0x50210f(0x3c9)][_0x50210f(0x449)](_0x3b3965);return _0x2fcaaa!==void 0x0&&window[_0x50210f(0x227)](_0x2fcaaa),this[_0x50210f(0x5df)]['setItem'](Lt(_0x3b3965),this[_0x50210f(0x5c5)][_0x50210f(0x449)](_0x3b3965))[_0x50210f(0x3b0)](()=>this[_0x50210f(0x3c9)][_0x50210f(0x26b)](_0x3b3965));}async[_0x3a3cba(0x22e)](){const _0x33d76d=_0x3a3cba,_0xddd7b7=[];this['_saveTaskMap'][_0x33d76d(0x281)]((_0x116e47,_0xfd8ba0)=>{window['clearTimeout'](_0x116e47),_0xddd7b7['push'](this['_saveCache'](_0xfd8ba0)['then'](()=>{const _0x4c1870=_0x131b;this['_saveTaskMap'][_0x4c1870(0x26b)](_0xfd8ba0);}));}),await Promise[_0x33d76d(0x545)](_0xddd7b7);}[_0x3a3cba(0x57e)](){const _0x376e9a=_0x3a3cba;this['disposeWithMe'](this[_0x376e9a(0x5b0)]['registerBeforeClose'](()=>{const _0xefcf1c=_0x376e9a;if(this[_0xefcf1c(0x3c9)][_0xefcf1c(0x51e)])return this[_0xefcf1c(0x507)]['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x3a3cba(0x158)]=yn([we(0x0,a[_0x3a3cba(0x311)]),we(0x1,a[_0x3a3cba(0x20d)]),we(0x2,te['IBeforeCloseService']),we(0x3,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x2b2)])),we(0x4,a[_0x3a3cba(0x4b4)](p[_0x3a3cba(0x1a6)]))],exports[_0x3a3cba(0x158)]);function Lt(_0x4f1763){const _0x46082e=_0x3a3cba;return _0x46082e(0x5b8)+_0x4f1763;}var On=Object[_0x3a3cba(0x5d1)],Dn=Object[_0x3a3cba(0x42d)],Pn=(_0x301bdf,_0x5ee33b,_0x5af68b,_0x2c6bd7)=>{for(var _0x47f68c=_0x2c6bd7>0x1?void 0x0:_0x2c6bd7?Dn(_0x5ee33b,_0x5af68b):_0x5ee33b,_0x23f3ab=_0x301bdf['length']-0x1,_0x53e8ae;_0x23f3ab>=0x0;_0x23f3ab--)(_0x53e8ae=_0x301bdf[_0x23f3ab])&&(_0x47f68c=(_0x2c6bd7?_0x53e8ae(_0x5ee33b,_0x5af68b,_0x47f68c):_0x53e8ae(_0x47f68c))||_0x47f68c);return _0x2c6bd7&&_0x47f68c&&On(_0x5ee33b,_0x5af68b,_0x47f68c),_0x47f68c;},et=(_0x14c1d5,_0x50cbba)=>(_0x56151d,_0x37a9e0)=>_0x50cbba(_0x56151d,_0x37a9e0,_0x14c1d5);function wn(_0x4c0135){const _0x1576ff=_0x3a3cba,{unitID:_0x301e90,mutations:_0x20730b}=_0x4c0135;return{'unitId':_0x301e90,'subUnitId':_0x20730b[0x0][_0x1576ff(0x599)][_0x1576ff(0x306)]};}let ke=class{constructor(_0x3c1b65,_0x1a3b9e,_0x2746e9){const _0x2cff8b=_0x3a3cba;this['_injector']=_0x3c1b65,this[_0x2cff8b(0x37c)]=_0x1a3b9e,this['_instanceService']=_0x2746e9;}[_0x3a3cba(0x437)](_0x92859c){const _0x3b1769=_0x3a3cba;var _0x17b8e6,_0x2f2e93,_0x361d9e,_0x5cbe98;const _0x5dd0e4=this[_0x3b1769(0x23e)][_0x3b1769(0x449)](k[_0x3b1769(0x59d)]),{unitId:_0x51de0e,subUnitId:_0x439874}=wn(_0x92859c),_0x45161b=_0x5dd0e4[_0x3b1769(0x462)](_0x51de0e)[_0x3b1769(0x4bd)](),_0x437f35=(_0x2f2e93=(_0x17b8e6=this[_0x3b1769(0x292)][_0x3b1769(0x1c4)](_0x51de0e))==null?void 0x0:_0x17b8e6[_0x3b1769(0x2c0)]())==null?void 0x0:_0x2f2e93[_0x3b1769(0x50d)]();if(_0x45161b[_0x3b1769(0x16b)]===0x0||!_0x51de0e||!_0x439874)return;const _0x1a7a22=[{'id':k[_0x3b1769(0x456)]['id'],'params':{'unitId':_0x51de0e,'subUnitId':_0x437f35,'selections':a[_0x3b1769(0x5e1)][_0x3b1769(0x5ac)](_0x45161b)}}],_0x3e2904=this['_transformService'][_0x3b1769(0x295)](_0x92859c,_0x1a7a22);if(!p[_0x3b1769(0x45d)](_0x3e2904))throw _0x3e2904[_0x3b1769(0x2e5)];const _0x417275=(_0x5cbe98=(_0x361d9e=_0x3e2904[_0x3b1769(0x3c0)][0x0])==null?void 0x0:_0x361d9e[_0x3b1769(0x599)])==null?void 0x0:_0x5cbe98[_0x3b1769(0x147)];if(Array[_0x3b1769(0x550)](_0x417275)&&_0x417275['length']){if(_0x417275[_0x3b1769(0x16b)]===_0x1a7a22[0x0][_0x3b1769(0x599)]['selections']['length']&&_0x417275['every']((_0x3bb8,_0x4a5c23)=>a['Rectangle'][_0x3b1769(0x5c7)](_0x3bb8[_0x3b1769(0x3db)],_0x1a7a22[0x0][_0x3b1769(0x599)][_0x3b1769(0x147)][_0x4a5c23][_0x3b1769(0x3db)])))return;this['_injector']['get'](a['ICommandService'])['executeCommand'](k[_0x3b1769(0x456)]['id'],{'unitId':_0x51de0e,'subUnitId':_0x437f35,'selections':_0x417275});}}};ke=Pn([et(0x0,a['Inject'](a[_0x3a3cba(0x207)])),et(0x1,p['ITransformService']),et(0x2,a[_0x3a3cba(0x1c9)])],ke);const ze=a['createIdentifier'](_0x3a3cba(0x2fb));var vi=(_0x289e4d=>(_0x289e4d[_0x289e4d[_0x3a3cba(0x53b)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x289e4d[_0x289e4d[_0x3a3cba(0x328)]=0x1]=_0x3a3cba(0x328),_0x289e4d))(vi||{});const xt=0x7530,jt=_0x3a3cba(0x54d);class Un extends a[_0x3a3cba(0x28a)]{constructor(){const _0x876d11=_0x3a3cba;super(),I(this,_0x876d11(0x5e2),a[_0x876d11(0x5e1)][_0x876d11(0x273)]()),I(this,_0x876d11(0x53f),new Set()),I(this,_0x876d11(0x2c3),new Map()),I(this,_0x876d11(0x3f5),null),I(this,_0x876d11(0x1be),new Map()),I(this,_0x876d11(0x3d0),new Map()),this[_0x876d11(0x4ef)]();}[_0x3a3cba(0x30a)](){const _0x509f16=_0x3a3cba;super[_0x509f16(0x30a)](),this[_0x509f16(0x1be)][_0x509f16(0x281)]((_0x18c311,_0x4e2f97)=>this[_0x509f16(0x4e4)](_0x4e2f97)),this[_0x509f16(0x3f5)]&&window['clearInterval'](this[_0x509f16(0x3f5)]);}[_0x3a3cba(0x49f)](_0x376014){const _0x53b331=_0x3a3cba;return this['_ensureSubject'](_0x376014)[_0x53b331(0x17b)](A[_0x53b331(0x5eb)]());}['editingUnit'](_0x257d24){const _0x52adf5=_0x3a3cba;this[_0x52adf5(0x53f)][_0x52adf5(0x51e)]===0x0&&this[_0x52adf5(0x563)](),this[_0x52adf5(0x53f)][_0x52adf5(0x4b3)](_0x257d24),this[_0x52adf5(0x171)]({'type':0x0,'memberID':this[_0x52adf5(0x5e2)],'unitIDs':[_0x257d24],'isForwarded':!0x1});}[_0x3a3cba(0x24b)](_0x2268ca){const _0x316661=_0x3a3cba;this[_0x316661(0x53f)][_0x316661(0x26b)](_0x2268ca),this[_0x316661(0x53f)][_0x316661(0x51e)]===0x0&&this[_0x316661(0x3f5)]&&window[_0x316661(0x33a)](this[_0x316661(0x3f5)]);}['_init'](){const _0x1083af=_0x3a3cba;this[_0x1083af(0x5e6)](a[_0x1083af(0x2bd)](A[_0x1083af(0x290)](window,'storage')[_0x1083af(0x250)](_0x156fbc=>{const _0x55a9da=_0x1083af;if(_0x156fbc['key']!==jt||!_0x156fbc[_0x55a9da(0x2f4)])return;const _0x1efd52=JSON[_0x55a9da(0x526)](_0x156fbc[_0x55a9da(0x2f4)]);this['_handleEvent'](_0x1efd52);}))),window[_0x1083af(0x22b)](_0x1083af(0x398),()=>this[_0x1083af(0x171)]({'type':0x1,'memberID':this[_0x1083af(0x5e2)],'unitIDs':Array[_0x1083af(0x1ba)](this[_0x1083af(0x53f)])}));}[_0x3a3cba(0x33d)](_0x4b779e){const _0x124314=_0x3a3cba;switch(_0x4b779e[_0x124314(0x322)]){case 0x0:this[_0x124314(0x465)](_0x4b779e);break;case 0x1:this[_0x124314(0x36e)](_0x4b779e);break;case 0x2:this[_0x124314(0x3ec)](_0x4b779e);break;}}['_handleJoinEvent'](_0x1aa56d){const _0x33b516=_0x3a3cba,{unitIDs:_0x2f2a26,memberID:_0x554fa1,isForwarded:_0x141e98}=_0x1aa56d;_0x2f2a26[_0x33b516(0x281)](_0x356457=>{const _0x5dafd=_0x33b516;if(!_0x141e98&&this[_0x5dafd(0x2c3)][_0x5dafd(0x16f)](_0x356457)&&this[_0x5dafd(0x1b4)](_0x356457)['next'](0x1),!this[_0x5dafd(0x2c3)][_0x5dafd(0x16f)](_0x356457)||!this[_0x5dafd(0x2c3)][_0x5dafd(0x449)](_0x356457)[_0x5dafd(0x16f)](_0x554fa1)){const _0x406cfd=this[_0x5dafd(0x2c3)][_0x5dafd(0x449)](_0x356457)||new Set();_0x406cfd[_0x5dafd(0x4b3)](_0x554fa1),this['_unitOnClients'][_0x5dafd(0x38a)](_0x356457,_0x406cfd),this['_scheduleClearOtherTimer'](_0x554fa1);}}),_0x141e98||this[_0x33b516(0x171)]({'type':0x0,'memberID':this[_0x33b516(0x5e2)],'unitIDs':[...this[_0x33b516(0x53f)]],'isForwarded':!0x0});}[_0x3a3cba(0x21e)](_0x259ab2){const _0x349525=_0x3a3cba;this['_removeClearOtherTimer'](_0x259ab2);const _0x58cd91=window[_0x349525(0x300)](()=>{const _0x1997bf=_0x349525;this[_0x1997bf(0x2c3)][_0x1997bf(0x281)](_0xe97503=>{const _0x2d4b13=_0x1997bf;_0xe97503[_0x2d4b13(0x26b)](_0x259ab2);});},xt*0x2);this[_0x349525(0x1be)][_0x349525(0x38a)](_0x259ab2,_0x58cd91);}['_removeClearOtherTimer'](_0x5bf1d8){const _0x2fbc78=_0x3a3cba;if(this[_0x2fbc78(0x1be)][_0x2fbc78(0x16f)](_0x5bf1d8)){const _0x8021d4=this[_0x2fbc78(0x1be)][_0x2fbc78(0x449)](_0x5bf1d8);_0x8021d4&&window[_0x2fbc78(0x227)](_0x8021d4),this['_clearOtherTimers'][_0x2fbc78(0x38a)](_0x5bf1d8,null);}}[_0x3a3cba(0x36e)](_0x451574){const _0x36f05f=_0x3a3cba,{memberID:_0x5b9c4b,unitIDs:_0x41ba6f}=_0x451574;_0x41ba6f[_0x36f05f(0x281)](_0x2c1759=>{const _0xaa6c06=_0x36f05f;var _0x2eb7cc;const _0x5d41ee=this[_0xaa6c06(0x2c3)][_0xaa6c06(0x449)](_0x2c1759);_0x5d41ee&&(_0x5d41ee[_0xaa6c06(0x26b)](_0x5b9c4b),(_0x2eb7cc=this['_ensureSubject'](_0x2c1759))==null||_0x2eb7cc[_0xaa6c06(0x519)](_0x5d41ee[_0xaa6c06(0x51e)]===0x0?0x0:0x1));}),this[_0x36f05f(0x4e4)](_0x5b9c4b);}[_0x3a3cba(0x3ec)](_0x14b3a5){const _0x50c5a9=_0x3a3cba;this['_scheduleClearOtherTimer'](_0x14b3a5[_0x50c5a9(0x35c)]);}['_send'](_0x5ba162){const _0x3025c7=_0x3a3cba;localStorage[_0x3025c7(0x43f)](jt,JSON[_0x3025c7(0x405)](_0x5ba162));}[_0x3a3cba(0x563)](){const _0x4aca56=_0x3a3cba;this[_0x4aca56(0x3f5)]=window[_0x4aca56(0x544)](()=>{const _0x157201=_0x4aca56;this[_0x157201(0x171)]({'type':0x2,'memberID':this[_0x157201(0x5e2)]});},xt);}[_0x3a3cba(0x1b4)](_0x5f1cd1){const _0x134120=_0x3a3cba;return this[_0x134120(0x3d0)][_0x134120(0x16f)](_0x5f1cd1)||this[_0x134120(0x3d0)][_0x134120(0x38a)](_0x5f1cd1,new A[(_0x134120(0x2bf))](0x0)),this['_unitStatus'][_0x134120(0x449)](_0x5f1cd1);}}var Mn=Object[_0x3a3cba(0x5d1)],An=Object[_0x3a3cba(0x42d)],Nn=(_0x1ac121,_0x2857ea,_0x502518,_0x3489aa)=>{const _0x40a511=_0x3a3cba;for(var _0x16b29f=_0x3489aa>0x1?void 0x0:_0x3489aa?An(_0x2857ea,_0x502518):_0x2857ea,_0x5e82b4=_0x1ac121[_0x40a511(0x16b)]-0x1,_0x419c8e;_0x5e82b4>=0x0;_0x5e82b4--)(_0x419c8e=_0x1ac121[_0x5e82b4])&&(_0x16b29f=(_0x3489aa?_0x419c8e(_0x2857ea,_0x502518,_0x16b29f):_0x419c8e(_0x16b29f))||_0x16b29f);return _0x3489aa&&_0x16b29f&&Mn(_0x2857ea,_0x502518,_0x16b29f),_0x16b29f;},tt=(_0x4ccd3f,_0x58f634)=>(_0x4eb890,_0x3fd119)=>_0x58f634(_0x4eb890,_0x3fd119,_0x4ccd3f);let We=class{constructor(_0x4e3479,_0xb8c196,_0x29eb41){const _0x1868c1=_0x3a3cba;this[_0x1868c1(0x23e)]=_0x4e3479,this[_0x1868c1(0x37c)]=_0xb8c196,this[_0x1868c1(0x178)]=_0x29eb41;}[_0x3a3cba(0x253)](_0x5d8e44){this['_transformHistoryAndStateStack'](_0x5d8e44);}['transformRemoteChangeset'](_0x1670c9){const _0x5c0924=_0x3a3cba,{unitID:_0x4ad29e}=_0x1670c9,{collaboration:_0xe4637c}=this[_0x5c0924(0x178)][_0x5c0924(0x556)](_0x4ad29e);if(_0xe4637c[_0x5c0924(0x16b)]===0x0)return _0x1670c9;let _0x423f2c=a['Tools'][_0x5c0924(0x5ac)](_0x1670c9[_0x5c0924(0x441)][0x0]);for(let _0x411400=0x0;_0x411400<_0xe4637c[_0x5c0924(0x16b)];_0x411400++){const _0x218e23={'id':_0x5c0924(0x487),'params':{'unitId':_0xe4637c[_0x411400][_0x5c0924(0x168)],..._0xe4637c[_0x411400][_0x5c0924(0x45a)]}},_0x39d013=this[_0x5c0924(0x37c)]['transformMutation'](_0x423f2c,_0x218e23,!0x1);if(p[_0x5c0924(0x5b9)](_0x39d013))throw _0x39d013[_0x5c0924(0x2e5)];_0x423f2c=_0x39d013[_0x5c0924(0x436)];}return{...a[_0x5c0924(0x5e1)][_0x5c0924(0x5ac)](_0x1670c9),'mutations':[_0x423f2c]};}[_0x3a3cba(0x1d2)](_0x466c02){const _0x47d947=_0x3a3cba,{unitID:_0x984b2f}=_0x466c02,{history:_0x3b23b5,collaboration:_0x24a1c0}=this['_docStateChangeManagerService'][_0x47d947(0x556)](_0x984b2f);if(_0x3b23b5[_0x47d947(0x16b)]===0x0&&_0x24a1c0['length']===0x0)return;const _0x44d3b3=[],_0x10abd4=[];let _0x5a89e0=a['Tools'][_0x47d947(0x5ac)](_0x466c02[_0x47d947(0x441)][0x0]),_0x294513=a[_0x47d947(0x5e1)][_0x47d947(0x5ac)](_0x466c02[_0x47d947(0x441)][0x0]);for(let _0x3b0d29=_0x3b23b5['length']-0x1;_0x3b0d29>=0x0;_0x3b0d29--){const _0xe83591={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3b23b5[_0x3b0d29][_0x47d947(0x168)],..._0x3b23b5[_0x3b0d29][_0x47d947(0x582)]}},_0x55f908={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3b23b5[_0x3b0d29][_0x47d947(0x168)],..._0x3b23b5[_0x3b0d29]['redoState']}},_0x53f103=this['_transformService']['transformMutation'](_0x5a89e0,_0xe83591,!0x1),_0x1d29d3=this[_0x47d947(0x37c)]['transformMutation'](_0x294513,_0x55f908,!0x1);if(p[_0x47d947(0x5b9)](_0x53f103))throw _0x53f103[_0x47d947(0x2e5)];if(p[_0x47d947(0x5b9)](_0x1d29d3))throw _0x1d29d3[_0x47d947(0x2e5)];_0x44d3b3[_0x47d947(0x287)]({..._0x3b23b5[_0x3b0d29],'undoState':_0x53f103[_0x47d947(0x3c0)][_0x47d947(0x599)],'redoState':_0x1d29d3[_0x47d947(0x3c0)][_0x47d947(0x599)]}),_0x5a89e0=_0x53f103[_0x47d947(0x436)],_0x294513=_0x1d29d3[_0x47d947(0x436)];}_0x5a89e0=a[_0x47d947(0x5e1)][_0x47d947(0x5ac)](_0x466c02[_0x47d947(0x441)][0x0]),_0x294513=a[_0x47d947(0x5e1)][_0x47d947(0x5ac)](_0x466c02[_0x47d947(0x441)][0x0]);for(let _0x17ffa7=_0x24a1c0[_0x47d947(0x16b)]-0x1;_0x17ffa7>=0x0;_0x17ffa7--){const _0x59a578={'id':_0x47d947(0x487),'params':{'unitId':_0x24a1c0[_0x17ffa7][_0x47d947(0x168)],..._0x24a1c0[_0x17ffa7][_0x47d947(0x582)]}},_0x1a5189={'id':_0x47d947(0x487),'params':{'unitId':_0x24a1c0[_0x17ffa7][_0x47d947(0x168)],..._0x24a1c0[_0x17ffa7][_0x47d947(0x45a)]}},_0x1fdd3d=this['_transformService'][_0x47d947(0x215)](_0x5a89e0,_0x59a578,!0x1),_0x3f8fbf=this['_transformService']['transformMutation'](_0x294513,_0x1a5189,!0x1);if(p[_0x47d947(0x5b9)](_0x1fdd3d))throw _0x1fdd3d[_0x47d947(0x2e5)];if(p['isTransformMutationFailure'](_0x3f8fbf))throw _0x3f8fbf[_0x47d947(0x2e5)];_0x10abd4['unshift']({..._0x24a1c0[_0x17ffa7],'undoState':_0x1fdd3d[_0x47d947(0x3c0)]['params'],'redoState':_0x3f8fbf['m2Prime'][_0x47d947(0x599)]}),_0x5a89e0=_0x1fdd3d[_0x47d947(0x436)],_0x294513=_0x3f8fbf[_0x47d947(0x436)];}this[_0x47d947(0x178)]['setStateCache'](_0x984b2f,{'history':_0x44d3b3,'collaboration':_0x10abd4});}};We=Nn([tt(0x0,a['Inject'](a[_0x3a3cba(0x207)])),tt(0x1,p[_0x3a3cba(0x4d5)]),tt(0x2,a[_0x3a3cba(0x4b4)](J['DocStateChangeManagerService']))],We);function Si(_0x4bf4b7){const _0x2e6224=_0x3a3cba;let _0x300f31='';for(const _0x2fe675 of _0x4bf4b7){const {startOffset:_0x29bcad,endOffset:_0x36854d,isActive:_0x143b74,rangeType:_0x5227ac,segmentId:_0x18d445,segmentPage:_0x45c1af}=_0x2fe675;_0x300f31[_0x2e6224(0x16b)]&&(_0x300f31+=','),_0x300f31+=_0x29bcad+':'+_0x36854d+':'+(_0x143b74?'1':'0')+':'+_0x5227ac+':'+_0x18d445+':'+_0x45c1af;}return _0x300f31;}function Ln(_0x218a95){const _0x241853=_0x3a3cba,_0x1fb43d=_0x218a95[_0x241853(0x4dc)](','),_0x36b64e=[];for(const _0x48724b of _0x1fb43d){const [_0x4bbfe7,_0x3fce49,_0x2504d5,_0x36ab1e,_0x667f17,_0x15cfba]=_0x48724b['split'](':');_0x36b64e[_0x241853(0x31b)]({'startOffset':Number(_0x4bbfe7),'endOffset':Number(_0x3fce49),'collapsed':_0x4bbfe7===_0x3fce49,'isActive':_0x2504d5==='1','rangeType':_0x36ab1e===a['DOC_RANGE_TYPE'][_0x241853(0x4b1)]?a[_0x241853(0x59c)][_0x241853(0x4b1)]:a[_0x241853(0x59c)]['RECT'],'segmentId':typeof _0x667f17==_0x241853(0x554)?String(_0x667f17):'','segmentPage':Number(_0x15cfba!=null?_0x15cfba:-0x1)});}return _0x36b64e[_0x241853(0x421)](_0x3d8e62=>_0x3d8e62[_0x241853(0x3eb)])||(_0x36b64e[0x0]['isActive']=!0x0),_0x36b64e;}class yt extends a[_0x3a3cba(0x3c4)]{constructor(){const _0x3b7bb8=_0x3a3cba;super(...arguments),I(this,_0x3b7bb8(0x463),new A['BehaviorSubject'](null)),I(this,_0x3b7bb8(0x159),this[_0x3b7bb8(0x463)]['asObservable']());}[_0x3a3cba(0x198)](_0x3ca8b8){const _0x439765=_0x3a3cba,{unitID:_0x1fb286,memberID:_0x203f1f,textRanges:_0x1b746a}=_0x3ca8b8,_0x33cbdc=Si(_0x1b746a);if(_0x33cbdc==='')return;const _0xcda017={'unitID':_0x1fb286,'memberID':_0x203f1f,'selection':_0x33cbdc};this[_0x439765(0x463)][_0x439765(0x519)](_0xcda017);}}var xn=Object[_0x3a3cba(0x5d1)],jn=Object[_0x3a3cba(0x42d)],$n=(_0xa58492,_0xc37112,_0x42b2a1,_0x5ccb49)=>{for(var _0x2a062e=_0x5ccb49>0x1?void 0x0:_0x5ccb49?jn(_0xc37112,_0x42b2a1):_0xc37112,_0x33f38e=_0xa58492['length']-0x1,_0x2934f8;_0x33f38e>=0x0;_0x33f38e--)(_0x2934f8=_0xa58492[_0x33f38e])&&(_0x2a062e=(_0x5ccb49?_0x2934f8(_0xc37112,_0x42b2a1,_0x2a062e):_0x2934f8(_0x2a062e))||_0x2a062e);return _0x5ccb49&&_0x2a062e&&xn(_0xc37112,_0x42b2a1,_0x2a062e),_0x2a062e;},$t=(_0x4fe42f,_0x1c50fd)=>(_0x201adc,_0x31ad3c)=>_0x1c50fd(_0x201adc,_0x31ad3c,_0x4fe42f);let Fe=class{constructor(_0x2a6c54,_0x3717ae){const _0x2d70b1=_0x3a3cba;this['_injector']=_0x2a6c54,this[_0x2d70b1(0x37c)]=_0x3717ae;}[_0x3a3cba(0x437)](_0x1f4e31){const _0x376ef4=_0x3a3cba;var _0x11fd52;const _0x2c4dd6=this[_0x376ef4(0x23e)][_0x376ef4(0x449)](Ie[_0x376ef4(0x2e3)]),_0x3e76ef=(_0x11fd52=_0x2c4dd6[_0x376ef4(0x491)]())!=null?_0x11fd52:[];if(_0x3e76ef[_0x376ef4(0x16b)]===0x0)return;const _0x192bac=_0x1f4e31[_0x376ef4(0x40b)],_0x562732=[{'id':_0x376ef4(0x487),'params':{'unitId':_0x192bac,'actions':null,'textRanges':_0x3e76ef}}],_0x3c4a88=this['_transformService'][_0x376ef4(0x295)](_0x1f4e31,_0x562732);if(!p[_0x376ef4(0x45d)](_0x3c4a88))throw _0x3c4a88[_0x376ef4(0x2e5)];const _0x192c03=_0x3c4a88[_0x376ef4(0x3c0)][0x0][_0x376ef4(0x599)][_0x376ef4(0x35b)];Array[_0x376ef4(0x550)](_0x192c03)&&_0x192c03['length']&&_0x2c4dd6[_0x376ef4(0x1e2)](_0x192c03,{'unitId':_0x192bac,'subUnitId':_0x192bac},!0x1);}};Fe=$n([$t(0x0,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x207)])),$t(0x1,p[_0x3a3cba(0x4d5)])],Fe);const Hn=new Set([k['InsertSheetMutation']['id']]);function Ht(_0x50e62a,_0x222d59,_0x4d7b88,_0x508d03,_0x243fb6){const _0x484797=_0x3a3cba;var _0xb544fc,_0x4508af,_0x219e91,_0x56dde1;const _0x381963=[];for(const _0x4c1838 of _0x50e62a)if(Hn[_0x484797(0x16f)](_0x4c1838['id'])){if(_0x381963['length']>0x0)break;_0x381963[_0x484797(0x31b)](_0x4c1838);break;}else _0x381963[_0x484797(0x31b)](_0x4c1838);const _0x8b8180=(_0x4508af=(_0xb544fc=_0x243fb6[_0x484797(0x243)]())==null?void 0x0:_0xb544fc[_0x484797(0x442)])!=null?_0x4508af:_0x484797(0x44e),_0x2a6929=(_0x56dde1=(_0x219e91=_0x243fb6[_0x484797(0x243)]())==null?void 0x0:_0x219e91[_0x484797(0x35c)])!=null?_0x56dde1:_0x484797(0x44e);return{'changeset':{'unitID':_0x222d59,'type':p['mapDocumentTypeToUniverType'](_0x4d7b88[_0x484797(0x5a6)](_0x222d59)),'baseRev':_0x508d03[_0x484797(0x29e)](_0x222d59),'revision':0x0,'userID':_0x8b8180,'memberID':_0x2a6929,'mutations':_0x381963},'pendingMutations':_0x50e62a[_0x484797(0x145)](_0x381963[_0x484797(0x16b)])};}function Bn(_0x1a1ce9,_0x1f8ba2,_0x5a67f8,_0xdbc94,_0x44c2d4){const _0x44cc86=_0x3a3cba;var _0x4df066,_0x1059cb,_0x1f5a51,_0xa22c48;const _0x4d62bd=[_0x1a1ce9['reduce']((_0x479c2f,_0x40d97a)=>{const _0x53baae=_0x131b;var _0x124c92;const {id:_0x5c5347}=_0x479c2f,{id:_0x2a581b,type:_0x2afec7}=_0x40d97a,_0x57f79e=(_0x124c92=_0x479c2f[_0x53baae(0x599)])!=null?_0x124c92:{'actions':null},_0x18771b=_0x40d97a[_0x53baae(0x599)];if(_0x5c5347&&_0x5c5347!==_0x2a581b)throw new Error(_0x53baae(0x2b8)+_0x5c5347+_0x53baae(0x51a)+_0x2a581b+'.');return{..._0x479c2f,'id':_0x2a581b,'type':_0x2afec7,'params':{'unitId':_0x18771b[_0x53baae(0x168)],'textRanges':_0x18771b['textRanges'],'actions':a[_0x53baae(0x394)]['compose'](_0x57f79e[_0x53baae(0x369)],_0x18771b['actions'])}};},{})],_0x562cf0=(_0x1059cb=(_0x4df066=_0x44c2d4[_0x44cc86(0x243)]())==null?void 0x0:_0x4df066['userID'])!=null?_0x1059cb:'unknown',_0x47c435=(_0xa22c48=(_0x1f5a51=_0x44c2d4[_0x44cc86(0x243)]())==null?void 0x0:_0x1f5a51[_0x44cc86(0x35c)])!=null?_0xa22c48:_0x44cc86(0x44e);return{'changeset':{'unitID':_0x1f8ba2,'type':p[_0x44cc86(0x452)](_0x5a67f8[_0x44cc86(0x5a6)](_0x1f8ba2)),'baseRev':_0xdbc94[_0x44cc86(0x29e)](_0x1f8ba2),'revision':0x0,'userID':_0x562cf0,'memberID':_0x47c435,'mutations':_0x4d62bd},'pendingMutations':[]};}function pi(_0x30067e,_0x105542){const _0x335761=_0x3a3cba,_0x31245a=new A[(_0x335761(0x3ce))](0x1);return setTimeout(()=>_0x31245a[_0x335761(0x519)](_0x105542),_0x30067e),_0x31245a[_0x335761(0x216)]()[_0x335761(0x17b)](A[_0x335761(0x1e9)](0x1));}const kn={'id':k[_0x3a3cba(0x338)]['id'],'type':a['CommandType'][_0x3a3cba(0x5b4)],'params':{}};var Wn=Object['defineProperty'],Fn=Object[_0x3a3cba(0x42d)],Ee=(_0xc02724,_0x57aa2c,_0x912f60,_0x4717b2)=>{for(var _0x4c7730=_0x4717b2>0x1?void 0x0:_0x4717b2?Fn(_0x57aa2c,_0x912f60):_0x57aa2c,_0x57746a=_0xc02724['length']-0x1,_0x49af30;_0x57746a>=0x0;_0x57746a--)(_0x49af30=_0xc02724[_0x57746a])&&(_0x4c7730=(_0x4717b2?_0x49af30(_0x57aa2c,_0x912f60,_0x4c7730):_0x49af30(_0x4c7730))||_0x4c7730);return _0x4717b2&&_0x4c7730&&Wn(_0x57aa2c,_0x912f60,_0x4c7730),_0x4c7730;},N=(_0x17b699,_0x55976e)=>(_0x40264e,_0xbacf19)=>_0x55976e(_0x40264e,_0xbacf19,_0x17b699),q=(_0x335859=>(_0x335859[_0x3a3cba(0x552)]='not_collab',_0x335859['SYNCED']=_0x3a3cba(0x5c3),_0x335859[_0x3a3cba(0x1a5)]=_0x3a3cba(0x237),_0x335859[_0x3a3cba(0x43c)]='awaiting',_0x335859[_0x3a3cba(0x208)]=_0x3a3cba(0x2da),_0x335859['FETCH_MISS']=_0x3a3cba(0x435),_0x335859[_0x3a3cba(0x496)]=_0x3a3cba(0x4a9),_0x335859['OFFLINE']=_0x3a3cba(0x4cb),_0x335859))(q||{});const mi=0xea60;class be{constructor(_0x3feaff,_0x538e53,_0x4d7fea,_0xe8f761,_0x4e1fd7,_0x2e5493,_0x4c3954,_0x3bc433,_0x187fa0){const _0x35e70a=_0x3a3cba;I(this,_0x35e70a(0x512),null),I(this,'_pendingMutations',[]),(this[_0x35e70a(0x40b)]=_0x3feaff,this[_0x35e70a(0x322)]=_0x538e53,this[_0x35e70a(0x515)]=_0x4e1fd7,this[_0x35e70a(0x340)]=_0x2e5493,this[_0x35e70a(0x37a)]=_0x4c3954,this[_0x35e70a(0x42b)]=_0x3bc433,this[_0x35e70a(0x3e2)]=_0x187fa0,this[_0x35e70a(0x512)]=_0x4d7fea,this['_pendingMutations']=_0xe8f761);}[_0x3a3cba(0x539)](_0x5afab8){const _0x8244f9=_0x3a3cba,_0x1f0234=this[_0x8244f9(0x42b)][_0x8244f9(0x29e)](this[_0x8244f9(0x40b)]);return _0x5afab8[_0x8244f9(0x1bb)]>_0x1f0234+0x1?(this[_0x8244f9(0x515)][_0x8244f9(0x565)]({'from':_0x1f0234,'to':_0x5afab8[_0x8244f9(0x1bb)]-0x1}),!0x0):!0x1;}[_0x3a3cba(0x379)](_0x35c138){const _0x1305f2=_0x3a3cba;this[_0x1305f2(0x37a)]['transformUndoRedo'](this[_0x1305f2(0x40b)],_0x35c138);}[_0x3a3cba(0x293)](_0x3bdbfa){const _0x5c70be=_0x3a3cba;var _0x99e54a,_0x5234fd;(_0x5234fd=(_0x99e54a=this[_0x5c70be(0x515)])['onTransformSelections'])==null||_0x5234fd[_0x5c70be(0x4c9)](_0x99e54a,_0x3bdbfa);}['_transformIMECache'](_0x8444de){const _0x9a7ce6=_0x3a3cba;var _0x5da8cd,_0xd4db30;return(_0xd4db30=(_0x5da8cd=this['_handler'])[_0x9a7ce6(0x3e9)])==null?void 0x0:_0xd4db30[_0x9a7ce6(0x4c9)](_0x5da8cd,_0x8444de);}[_0x3a3cba(0x1ca)](_0x299fee){const _0x1022a5=_0x3a3cba;var _0x3809e7,_0x211bb1;return(_0x211bb1=(_0x3809e7=this[_0x1022a5(0x515)])[_0x1022a5(0x4f9)])==null?void 0x0:_0x211bb1['call'](_0x3809e7,_0x299fee);}[_0x3a3cba(0x232)](_0x3692d1){const _0x46d89b=_0x3a3cba;var _0xab53f3,_0x59da9d,_0x561697;return(_0x561697=(_0x59da9d=(_0xab53f3=this[_0x46d89b(0x515)])[_0x46d89b(0x4ba)])==null?void 0x0:_0x59da9d[_0x46d89b(0x4c9)](_0xab53f3,_0x3692d1))!=null?_0x561697:_0x3692d1;}[_0x3a3cba(0x1ed)](_0x3921b6){const _0x36b288=_0x3a3cba;var _0x4eb360,_0x350eb3,_0x585d74;return(_0x585d74=(_0x350eb3=(_0x4eb360=this['_handler'])[_0x36b288(0x1a4)])==null?void 0x0:_0x350eb3[_0x36b288(0x4c9)](_0x4eb360,_0x3921b6))!=null?_0x585d74:_0x3921b6;}[_0x3a3cba(0x44f)](_0x15ee6e){const _0x5e0f32=_0x3a3cba;var _0x5ec068,_0x54ea03;if(this[_0x5e0f32(0x322)]===ne[_0x5e0f32(0x1b1)]){const {unitID:_0x1556fb,mutations:_0x386dea,memberID:_0x30d21a}=_0x15ee6e,_0x17073f=_0x386dea[0x0][_0x5e0f32(0x599)][_0x5e0f32(0x35b)];Array['isArray'](_0x17073f)&&_0x17073f[_0x5e0f32(0x16b)]>0x0&&((_0x54ea03=(_0x5ec068=this[_0x5e0f32(0x515)])['onSyncEditingCollabCursor'])==null||_0x54ea03['call'](_0x5ec068,{'unitID':_0x1556fb,'memberID':_0x30d21a,'textRanges':_0x17073f}));}}[_0x3a3cba(0x24d)](){const _0x249c97=_0x3a3cba;this[_0x249c97(0x3e2)][_0x249c97(0x2b0)](this['unitID'],this[_0x249c97(0x322)],this[_0x249c97(0x512)],this[_0x249c97(0x3b3)]);}[_0x3a3cba(0x25a)](){const _0x32319b=_0x3a3cba;return this[_0x32319b(0x42b)][_0x32319b(0x29e)](this['unitID']);}[_0x3a3cba(0x41e)](){const _0x3de19a=_0x3a3cba;this[_0x3de19a(0x42b)][_0x3de19a(0x28e)](this['unitID']);}['_executeRemoteChangeset'](_0x3c6af6){const _0x31b3a8=_0x3a3cba;var _0x23e9a0;let _0x192135=this[_0x31b3a8(0x232)](_0x3c6af6);_0x192135=this[_0x31b3a8(0x1ed)](_0x192135);const _0x5f1037=a[_0x31b3a8(0x30e)](_0x192135[_0x31b3a8(0x441)],this[_0x31b3a8(0x340)],{'fromCollab':!0x0});if(!_0x5f1037['result'])throw _0x5f1037[_0x31b3a8(0x2e5)]instanceof Error?_0x5f1037[_0x31b3a8(0x2e5)]:new Error((_0x23e9a0=_0x5f1037['error'])!=null?_0x23e9a0:_0x31b3a8(0x29f));this[_0x31b3a8(0x543)](_0x192135),this[_0x31b3a8(0x1ca)](_0x192135),this[_0x31b3a8(0x379)](_0x3c6af6),this['_transformSelections'](_0x192135),this[_0x31b3a8(0x44f)](_0x192135),this[_0x31b3a8(0x41e)]();}}let Oe=class extends be{constructor(_0x2cc6ee,_0x288495,_0x53260d,_0x18bd73,_0x4d36f3,_0x3ad5b8,_0x193c3e,_0x2e800a,_0x4411e3,_0x1707a1){const _0x46efd1=_0x3a3cba;super(_0x2cc6ee,_0x288495,null,[],_0x53260d,_0x2e800a,_0x193c3e,_0x18bd73,_0x4d36f3),I(this,_0x46efd1(0x3b1),'synced'),(this['_injector']=_0x3ad5b8,this[_0x46efd1(0x590)]=_0x4411e3,this['_transformService']=_0x1707a1);}[_0x3a3cba(0x373)](_0x7a5ae5){const _0x225b2e=_0x3a3cba,_0x4d97e4=this[_0x225b2e(0x23e)]['createInstance'](ce,this[_0x225b2e(0x40b)],this['type'],[_0x7a5ae5],this[_0x225b2e(0x515)]);return _0x4d97e4[_0x225b2e(0x223)](),_0x4d97e4[_0x225b2e(0x24d)](),_0x4d97e4;}[_0x3a3cba(0x39e)](_0x4e91ca){const _0x5f41bb=_0x3a3cba;if(this[_0x5f41bb(0x539)](_0x4e91ca))return this['_injector'][_0x5f41bb(0x1c5)](re,this[_0x5f41bb(0x40b)],this['type'],null,[],null,[_0x4e91ca],this[_0x5f41bb(0x515)]);try{const _0x36abe5=this[_0x5f41bb(0x37c)]['transformMutationsWithChangeset'](_0x4e91ca,[kn]);if(p[_0x5f41bb(0x45d)](_0x36abe5)){const {c1Prime:_0x1fb7da}=_0x36abe5;return this['_executeRemoteChangeset'](_0x1fb7da),this;}throw _0x36abe5['error'];}catch(_0xbe2593){return this['_logService'][_0x5f41bb(0x2e5)](_0xbe2593),this[_0x5f41bb(0x1c7)](!0x1);}}[_0x3a3cba(0x1c7)](_0x101096){const _0x44f072=_0x3a3cba;return this['_injector']['createInstance'](ve,this[_0x44f072(0x40b)],this[_0x44f072(0x322)],null,[],this[_0x44f072(0x515)],_0x101096);}[_0x3a3cba(0x298)](){const _0x1f8b65=_0x3a3cba;throw new Error(_0x1f8b65(0x559));}[_0x3a3cba(0x5c4)](){const _0x42f6b6=_0x3a3cba;throw new Error(_0x42f6b6(0x41f));}['onRemoteRetry'](){return this;}[_0x3a3cba(0x50f)](){const _0x2e9f61=_0x3a3cba;return this[_0x2e9f61(0x23e)][_0x2e9f61(0x1c5)](Se,this[_0x2e9f61(0x40b)],this[_0x2e9f61(0x322)],null,[],this[_0x2e9f61(0x515)]);}[_0x3a3cba(0x3fc)](){return this;}['resend'](){const _0xe34cc0=_0x3a3cba;throw new Error(_0xe34cc0(0x1cb));}[_0x3a3cba(0x4b7)](){const _0x3d8405=_0x3a3cba,_0x1ff4cf=this[_0x3d8405(0x42b)][_0x3d8405(0x29e)](this['unitID']);return this['_handler'][_0x3d8405(0x565)]({'from':_0x1ff4cf,'to':0x0}),this[_0x3d8405(0x23e)][_0x3d8405(0x1c5)](re,this[_0x3d8405(0x40b)],this[_0x3d8405(0x322)],null,[],null,[],this[_0x3d8405(0x515)]);}};Oe=Ee([N(0x3,a[_0x3a3cba(0x4b4)](p['RevisionService'])),N(0x4,a[_0x3a3cba(0x4b4)](exports[_0x3a3cba(0x158)])),N(0x5,a[_0x3a3cba(0x4b4)](a['Injector'])),N(0x6,a[_0x3a3cba(0x444)]),N(0x7,a[_0x3a3cba(0x2f8)]),N(0x8,a['ILogService']),N(0x9,p['ITransformService'])],Oe);let ce=class extends be{constructor(_0x233399,_0xdf109,_0x213b34,_0x49ab70,_0x6ac4c3,_0x5ab454,_0x3e8c50,_0x27cef9,_0xa41a01,_0x40f07b,_0x1d3c53,_0x157954,_0xfeed18,_0x3aea50){const _0x2da475=_0x3a3cba;super(_0x233399,_0xdf109,null,_0x213b34,_0x49ab70,_0x40f07b,_0x3aea50,_0x5ab454,_0x3e8c50),I(this,_0x2da475(0x3b1),'pending'),I(this,_0x2da475(0x5a2),null),I(this,_0x2da475(0x4f3),null),(this[_0x2da475(0x23e)]=_0x6ac4c3,this[_0x2da475(0x2d0)]=_0x27cef9,this[_0x2da475(0x590)]=_0xa41a01,this[_0x2da475(0x4d1)]=_0x1d3c53,this[_0x2da475(0x37c)]=_0x157954,this[_0x2da475(0x206)]=_0xfeed18);}[_0x3a3cba(0x373)](_0x4647a8){const _0x3b923f=_0x3a3cba;return this[_0x3b923f(0x3b3)][_0x3b923f(0x31b)](_0x4647a8),this[_0x3b923f(0x24d)](),this;}[_0x3a3cba(0x39e)](_0x4d718f){const _0x37fd39=_0x3a3cba;if(this['_checkMissing'](_0x4d718f))return this[_0x37fd39(0x176)](),this[_0x37fd39(0x23e)]['createInstance'](re,this[_0x37fd39(0x40b)],this['type'],null,this[_0x37fd39(0x3b3)],null,[_0x4d718f],this[_0x37fd39(0x515)]);try{const _0x54d9c5=this['_transformService'][_0x37fd39(0x295)](_0x4d718f,this[_0x37fd39(0x3b3)]);if(p[_0x37fd39(0x45d)](_0x54d9c5)){const {c1Prime:_0x5bc376,m2Prime:_0x18ded6}=_0x54d9c5;this[_0x37fd39(0x4ad)](_0x5bc376);const _0x44b3a8=this[_0x37fd39(0x23e)][_0x37fd39(0x1c5)](ce,this[_0x37fd39(0x40b)],this[_0x37fd39(0x322)],_0x18ded6,this['_handler']);return this[_0x37fd39(0x176)](),_0x44b3a8[_0x37fd39(0x223)](this[_0x37fd39(0x5a2)]?Math['max'](0x0,new Date()[_0x37fd39(0x567)]()-this[_0x37fd39(0x5a2)]):this[_0x37fd39(0x44b)]()),_0x44b3a8;}throw _0x54d9c5['error'];}catch(_0x38aa1f){return this[_0x37fd39(0x590)][_0x37fd39(0x2e5)](_0x38aa1f),this[_0x37fd39(0x1c7)](!0x1);}}[_0x3a3cba(0x298)](){const _0x29f98b=_0x3a3cba;throw new Error(_0x29f98b(0x14c));}[_0x3a3cba(0x5c4)](){const _0x5c8d4c=_0x3a3cba;throw new Error(_0x5c8d4c(0x4dd));}[_0x3a3cba(0x4e6)](){return this;}[_0x3a3cba(0x50f)](){const _0x43f949=_0x3a3cba;return this[_0x43f949(0x176)](),this['_injector'][_0x43f949(0x1c5)](Se,this[_0x43f949(0x40b)],this[_0x43f949(0x322)],null,this[_0x43f949(0x3b3)],this['_handler']);}[_0x3a3cba(0x3fc)](){return this;}[_0x3a3cba(0x223)](_0x5588ee){const _0x364891=_0x3a3cba,_0x1bd803=_0x5588ee!=null?_0x5588ee:this['_getSendChangesetTimeout']();this[_0x364891(0x5a2)]=new Date()[_0x364891(0x567)](),this[_0x364891(0x4f3)]=window[_0x364891(0x300)](()=>{const _0x5c0040=_0x364891;this[_0x5c0040(0x176)]();let _0x218a21=null;switch(this['type']){case ne['UNIVER_SHEET']:{_0x218a21=Ht(this['_pendingMutations'],this[_0x5c0040(0x40b)],this[_0x5c0040(0x206)],this[_0x5c0040(0x42b)],this[_0x5c0040(0x2d0)]);break;}case ne[_0x5c0040(0x1b1)]:{this[_0x5c0040(0x3b3)]['every'](_0x4ab9f5=>_0x4ab9f5['id']===Ie['RichTextEditingMutation']['id'])?_0x218a21=Bn(this['_pendingMutations'],this[_0x5c0040(0x40b)],this[_0x5c0040(0x206)],this['_revisionService'],this[_0x5c0040(0x2d0)]):_0x218a21=Ht(this[_0x5c0040(0x3b3)],this[_0x5c0040(0x40b)],this[_0x5c0040(0x206)],this[_0x5c0040(0x42b)],this[_0x5c0040(0x2d0)]);break;}default:throw new Error(_0x5c0040(0x531)+this[_0x5c0040(0x322)]+_0x5c0040(0x17a));}const {changeset:_0x297b68,pendingMutations:_0x430f66}=_0x218a21;this['_handler']['onSendChangeset'](_0x297b68);const _0x376404=_0x430f66['length']?this['_injector'][_0x5c0040(0x1c5)](le,this[_0x5c0040(0x40b)],this[_0x5c0040(0x322)],_0x297b68,_0x430f66,this['_handler'],void 0x0):this[_0x5c0040(0x23e)]['createInstance'](fe,this['unitID'],this[_0x5c0040(0x322)],_0x297b68,this[_0x5c0040(0x515)]);_0x376404[_0x5c0040(0x24d)](),this[_0x5c0040(0x515)][_0x5c0040(0x327)](this,_0x376404);},_0x1bd803);}[_0x3a3cba(0x44b)](){const _0x1d5d13=_0x3a3cba;var _0x58ab66;const _0x2638b4=this['_configService'][_0x1d5d13(0x3cc)](Q);return(_0x58ab66=_0x2638b4==null?void 0x0:_0x2638b4[_0x1d5d13(0x464)])!=null?_0x58ab66:Fi;}[_0x3a3cba(0x48f)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x1f9684=_0x3a3cba;this['_sendingTimer']!=null&&(clearTimeout(this[_0x1f9684(0x4f3)]),this[_0x1f9684(0x4f3)]=null);}[_0x3a3cba(0x1c7)](_0x2d4b56){const _0x5b83e6=_0x3a3cba;return this[_0x5b83e6(0x176)](),this[_0x5b83e6(0x23e)][_0x5b83e6(0x1c5)](ve,this[_0x5b83e6(0x40b)],this[_0x5b83e6(0x322)],null,this[_0x5b83e6(0x3b3)],this['_handler'],_0x2d4b56);}};ce=Ee([N(0x4,a[_0x3a3cba(0x4b4)](a['Injector'])),N(0x5,a[_0x3a3cba(0x4b4)](p['RevisionService'])),N(0x6,a[_0x3a3cba(0x4b4)](exports[_0x3a3cba(0x158)])),N(0x7,a[_0x3a3cba(0x4b4)](exports[_0x3a3cba(0x510)])),N(0x8,a['ILogService']),N(0x9,a[_0x3a3cba(0x2f8)]),N(0xa,a[_0x3a3cba(0x311)]),N(0xb,p[_0x3a3cba(0x4d5)]),N(0xc,a[_0x3a3cba(0x1c9)]),N(0xd,a[_0x3a3cba(0x444)])],ce);let fe=class extends be{constructor(_0x331e81,_0x28183f,_0x2e1f17,_0x404672,_0x20a90f,_0x565ffa,_0x34b259,_0x3870f4,_0xbc04b6,_0x441c1d,_0x1b3501){const _0x202cec=_0x3a3cba;super(_0x331e81,_0x28183f,_0x2e1f17,[],_0x404672,_0x3870f4,_0x1b3501,_0x565ffa,_0x34b259),I(this,_0x202cec(0x3b1),'awaiting'),I(this,_0x202cec(0x58c),0x0),I(this,'_resendTimer'),I(this,_0x202cec(0x2e7)),(this['_injector']=_0x20a90f,this[_0x202cec(0x590)]=_0xbc04b6,this['_transformService']=_0x441c1d);}[_0x3a3cba(0x373)](_0x2751ed){const _0x10675a=_0x3a3cba;this[_0x10675a(0x176)]();const _0x172dc9=this[_0x10675a(0x23e)][_0x10675a(0x1c5)](le,this[_0x10675a(0x40b)],this[_0x10675a(0x322)],this['_awaitingChangeset'],[_0x2751ed],this[_0x10675a(0x515)],this['_resendTimer']);return _0x172dc9[_0x10675a(0x24d)](),_0x172dc9;}[_0x3a3cba(0x39e)](_0x4e476f){const _0x28f2a0=_0x3a3cba;if(this[_0x28f2a0(0x539)](_0x4e476f))return this[_0x28f2a0(0x176)](),this['_injector'][_0x28f2a0(0x1c5)](re,this[_0x28f2a0(0x40b)],this[_0x28f2a0(0x322)],this[_0x28f2a0(0x512)],[],null,[_0x4e476f],this[_0x28f2a0(0x515)]);try{const _0x5f1cde=this[_0x28f2a0(0x37c)]['transformChangesets']([_0x4e476f],[this[_0x28f2a0(0x512)]],!0x1);if(p['isTransformChangesetsSuccess'](_0x5f1cde)){const {c1Prime:_0x5314e3,c2Prime:_0x575334}=_0x5f1cde;this[_0x28f2a0(0x4ad)](_0x5314e3[0x0]),_0x575334[0x0][_0x28f2a0(0x58e)]=this['_getCurrentRevision'](),this[_0x28f2a0(0x176)]();const _0x1120ed=this['_injector'][_0x28f2a0(0x1c5)](fe,this[_0x28f2a0(0x40b)],this[_0x28f2a0(0x322)],_0x575334[0x0],this[_0x28f2a0(0x515)]);return _0x1120ed['_updateLocalCache'](),_0x1120ed;}return this[_0x28f2a0(0x1c7)](!0x1);}catch(_0x40a6c5){return this['_logService'][_0x28f2a0(0x2e5)](_0x40a6c5),this['_onConflict'](!0x1);}}[_0x3a3cba(0x298)](_0x249803){const _0x518bd4=_0x3a3cba;this[_0x518bd4(0x176)]();const _0x29a828=this['_revisionService'][_0x518bd4(0x29e)](this['unitID']);if(_0x249803[_0x518bd4(0x1bb)]<_0x29a828-0x1)return this;if(this[_0x518bd4(0x539)](_0x249803))return this['_injector'][_0x518bd4(0x1c5)](re,this[_0x518bd4(0x40b)],this[_0x518bd4(0x322)],null,[],this[_0x518bd4(0x512)],[],this[_0x518bd4(0x515)]);this['_incrementRevisionNumber']();const _0x3faefe=this['_injector'][_0x518bd4(0x1c5)](Oe,this[_0x518bd4(0x40b)],this[_0x518bd4(0x322)],this['_handler']);return _0x3faefe[_0x518bd4(0x24d)](),_0x3faefe;}[_0x3a3cba(0x5c4)](_0x21e8c9){const _0x2b9ba8=_0x3a3cba;return this[_0x2b9ba8(0x1c7)](!!(_0x21e8c9!=null&&_0x21e8c9['isPermissionRej']));}['onRemoteRetry'](_0x546d96){const _0x4d41e7=_0x3a3cba;return this[_0x4d41e7(0x58c)]>mi?this[_0x4d41e7(0x50f)]():(this['_resendTimer']=pi(this['_resendTimeout'],{'timeout':this[_0x4d41e7(0x58c)],'reqId':_0x546d96[_0x4d41e7(0x4a6)]}),this[_0x4d41e7(0x2e7)]=this[_0x4d41e7(0x181)][_0x4d41e7(0x250)](({reqId:_0x46b719,timeout:_0x2afb59})=>{this['_resendWithTimeout'](_0x46b719,_0x2afb59);}),this);}['toggleOffline'](){const _0x699433=_0x3a3cba;return this[_0x699433(0x176)](),this[_0x699433(0x23e)]['createInstance'](Se,this[_0x699433(0x40b)],this[_0x699433(0x322)],this[_0x699433(0x512)],[],this['_handler']);}[_0x3a3cba(0x3fc)](){return this;}[_0x3a3cba(0x48f)](){const _0x398a93=_0x3a3cba;this[_0x398a93(0x515)][_0x398a93(0x3c8)](this[_0x398a93(0x512)]);}['_onConflict'](_0x45fe15){const _0x3cabe5=_0x3a3cba;return this[_0x3cabe5(0x176)](),this['_injector'][_0x3cabe5(0x1c5)](ve,this[_0x3cabe5(0x40b)],this[_0x3cabe5(0x322)],this[_0x3cabe5(0x512)],[],this[_0x3cabe5(0x515)],_0x45fe15);}[_0x3a3cba(0x1b8)](_0x4a2016,_0x3f38b3){const _0x23e51e=_0x3a3cba;var _0x3a7a38;_0x4a2016===((_0x3a7a38=this[_0x23e51e(0x512)])==null?void 0x0:_0x3a7a38[_0x23e51e(0x4a6)])&&(this[_0x23e51e(0x48f)](),this[_0x23e51e(0x58c)]=_0x3f38b3===0x0?0x3e8:_0x3f38b3*0x2);}[_0x3a3cba(0x176)](){const _0x5aa052=_0x3a3cba;var _0x2d2ab7;(_0x2d2ab7=this[_0x5aa052(0x2e7)])==null||_0x2d2ab7[_0x5aa052(0x1c6)](),this[_0x5aa052(0x58c)]=0x0;}};fe=Ee([N(0x4,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x207)])),N(0x5,a['Inject'](p[_0x3a3cba(0x1a6)])),N(0x6,a[_0x3a3cba(0x4b4)](exports[_0x3a3cba(0x158)])),N(0x7,a[_0x3a3cba(0x2f8)]),N(0x8,a[_0x3a3cba(0x4cc)]),N(0x9,p[_0x3a3cba(0x4d5)]),N(0xa,a[_0x3a3cba(0x444)])],fe);let le=class extends be{constructor(_0x2217cd,_0x1d0412,_0x3b11ba,_0x219fda,_0x27d255,_0x3a98ae,_0x899716,_0x314409,_0x1664f5,_0x55c29c,_0xd6b5a8,_0x387cd2,_0x2c2d34){const _0x49bfef=_0x3a3cba;super(_0x2217cd,_0x1d0412,_0x3b11ba,_0x219fda,_0x27d255,_0x55c29c,_0x2c2d34,_0x314409,_0x1664f5),I(this,_0x49bfef(0x3b1),_0x49bfef(0x2da)),I(this,_0x49bfef(0x58c),0x0),I(this,_0x49bfef(0x181)),I(this,'_sender'),(this[_0x49bfef(0x23e)]=_0x899716,this['_logService']=_0xd6b5a8,this[_0x49bfef(0x37c)]=_0x387cd2,_0x3a98ae&&(this[_0x49bfef(0x181)]=_0x3a98ae,this[_0x49bfef(0x2e7)]=this['_resendTimer'][_0x49bfef(0x250)](({reqId:_0x85515d,timeout:_0x198996})=>{const _0x5a34f0=_0x49bfef;this[_0x5a34f0(0x1b8)](_0x85515d,_0x198996);})));}['appendMutation'](_0x222014){const _0x1e72eb=_0x3a3cba;return this[_0x1e72eb(0x3b3)][_0x1e72eb(0x31b)](_0x222014),this;}[_0x3a3cba(0x39e)](_0x4bcda6){const _0x244a64=_0x3a3cba;if(this[_0x244a64(0x539)](_0x4bcda6))return this[_0x244a64(0x176)](),this[_0x244a64(0x23e)][_0x244a64(0x1c5)](re,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x244a64(0x3b3)],null,[_0x4bcda6],this['_handler']);try{const _0x570df7=this['_transformService'][_0x244a64(0x14f)]([_0x4bcda6],[this[_0x244a64(0x512)]],!0x1);if(p[_0x244a64(0x3aa)](_0x570df7)){const {c1Prime:_0x475b23,c2Prime:_0x181569}=_0x570df7,_0x209f8b=this[_0x244a64(0x37c)][_0x244a64(0x295)](_0x475b23[0x0],this['_pendingMutations']);if(p[_0x244a64(0x45d)](_0x209f8b)){const {c1Prime:_0x789d0,m2Prime:_0xdbdd4a}=_0x209f8b;return this[_0x244a64(0x4ad)](_0x789d0),_0x181569[0x0]['baseRev']=this[_0x244a64(0x25a)](),this[_0x244a64(0x176)](),this[_0x244a64(0x23e)][_0x244a64(0x1c5)](le,this[_0x244a64(0x40b)],this[_0x244a64(0x322)],_0x181569[0x0],_0xdbdd4a,this['_handler'],void 0x0);}throw _0x209f8b[_0x244a64(0x2e5)];}throw _0x570df7[_0x244a64(0x2e5)];}catch(_0x4fad10){return this[_0x244a64(0x590)][_0x244a64(0x2e5)](_0x4fad10),this['_onConflict'](!0x1);}}[_0x3a3cba(0x298)](_0x3fb3a3){const _0x322efa=_0x3a3cba;if(this['_clearScheduledTask'](),this[_0x322efa(0x539)](_0x3fb3a3))return this[_0x322efa(0x23e)]['createInstance'](re,this['unitID'],this[_0x322efa(0x322)],null,this['_pendingMutations'],this[_0x322efa(0x512)],[],this[_0x322efa(0x515)]);this['_incrementRevisionNumber']();const _0x32d803=this['_injector'][_0x322efa(0x1c5)](ce,this['unitID'],this[_0x322efa(0x322)],this[_0x322efa(0x3b3)],this[_0x322efa(0x515)]);return _0x32d803[_0x322efa(0x223)](),_0x32d803['_updateLocalCache'](),_0x32d803;}[_0x3a3cba(0x5c4)](_0x4669c1){const _0x4e8e0a=_0x3a3cba;return this['_onConflict'](!!(_0x4669c1!=null&&_0x4669c1[_0x4e8e0a(0x469)]));}[_0x3a3cba(0x4e6)](_0x4026c1){const _0x4cd3b5=_0x3a3cba;return this[_0x4cd3b5(0x58c)]>mi?this[_0x4cd3b5(0x50f)]():(this[_0x4cd3b5(0x181)]=pi(this[_0x4cd3b5(0x58c)],{'timeout':this[_0x4cd3b5(0x58c)],'reqId':_0x4026c1[_0x4cd3b5(0x4a6)]}),this['_sender']=this[_0x4cd3b5(0x181)][_0x4cd3b5(0x250)](({reqId:_0x2e91d1,timeout:_0x3b4d8c})=>{const _0x490e5c=_0x4cd3b5;this[_0x490e5c(0x1b8)](_0x2e91d1,_0x3b4d8c);}),this);}[_0x3a3cba(0x50f)](){const _0x2530cd=_0x3a3cba;return this['_clearScheduledTask'](),this['_injector'][_0x2530cd(0x1c5)](Se,this['unitID'],this[_0x2530cd(0x322)],this[_0x2530cd(0x512)],this['_pendingMutations'],this[_0x2530cd(0x515)]);}[_0x3a3cba(0x3fc)](){return this;}[_0x3a3cba(0x48f)](){const _0x3c1ed5=_0x3a3cba;this['_handler'][_0x3c1ed5(0x3c8)](this[_0x3c1ed5(0x512)]);}[_0x3a3cba(0x1c7)](_0x1e3a17){const _0x468ce1=_0x3a3cba;return this[_0x468ce1(0x176)](),this[_0x468ce1(0x23e)][_0x468ce1(0x1c5)](ve,this['unitID'],this[_0x468ce1(0x322)],null,this[_0x468ce1(0x3b3)],this[_0x468ce1(0x515)],_0x1e3a17);}[_0x3a3cba(0x1b8)](_0x57a53d,_0x27f15a){const _0x1fbaf7=_0x3a3cba;var _0x56cc41;_0x57a53d===((_0x56cc41=this[_0x1fbaf7(0x512)])==null?void 0x0:_0x56cc41[_0x1fbaf7(0x4a6)])&&(this[_0x1fbaf7(0x48f)](),this[_0x1fbaf7(0x58c)]=_0x27f15a===0x0?0x3e8:_0x27f15a*0x2);}[_0x3a3cba(0x176)](){const _0x5ee2f6=_0x3a3cba;var _0x47e551;(_0x47e551=this[_0x5ee2f6(0x2e7)])==null||_0x47e551[_0x5ee2f6(0x1c6)](),this[_0x5ee2f6(0x58c)]=0x0;}};le=Ee([N(0x6,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x207)])),N(0x7,a[_0x3a3cba(0x4b4)](p['RevisionService'])),N(0x8,a['Inject'](exports['LocalCacheService'])),N(0x9,a[_0x3a3cba(0x2f8)]),N(0xa,a[_0x3a3cba(0x4cc)]),N(0xb,p[_0x3a3cba(0x4d5)]),N(0xc,a['IUndoRedoService'])],le);let ve=class extends be{constructor(_0x250bb8,_0x4f137c,_0xfc0b33,_0xd5794e,_0x5e361f,_0x3fd9de=!0x1,_0x5cec96,_0x3d35f1,_0x2d77ad,_0x4941bf,_0x18a616,_0x13ab99,_0x20a029){const _0x496988=_0x3a3cba;super(_0x250bb8,_0x4f137c,_0xfc0b33,_0xd5794e,_0x5e361f,_0x3d35f1,_0x2d77ad,_0x18a616,_0x4941bf),I(this,_0x496988(0x3b1),_0x496988(0x4a9)),(this['_isPermissionRej']=_0x3fd9de,this['_permissionService']=_0x5cec96,this[_0x496988(0x507)]=_0x13ab99,this[_0x496988(0x35e)]=_0x20a029,this[_0x496988(0x384)](),this[_0x496988(0x4c3)](),this[_0x496988(0x144)]());}[_0x3a3cba(0x373)](){return this;}[_0x3a3cba(0x39e)](){return this;}[_0x3a3cba(0x298)](){return this;}[_0x3a3cba(0x5c4)](){return this;}[_0x3a3cba(0x4e6)](){return this;}[_0x3a3cba(0x50f)](){return this;}[_0x3a3cba(0x3fc)](){return this;}[_0x3a3cba(0x48f)](){const _0x3476c7=_0x3a3cba;throw new Error(_0x3476c7(0x23a));}[_0x3a3cba(0x4c3)](){const _0x2e625a=_0x3a3cba;this[_0x2e625a(0x3e2)]['updateOfflineData'](this[_0x2e625a(0x40b)],this['type'],null,[]);}['_showConflictNotification'](){const _0x29c498=_0x3a3cba;this[_0x29c498(0x527)]?this[_0x29c498(0x35e)][_0x29c498(0x1bd)]({'title':this[_0x29c498(0x507)]['t'](_0x29c498(0x4db)),'content':this['_localeService']['t'](_0x29c498(0x5d9)),'type':_0x29c498(0x2e5),'duration':0x0}):this[_0x29c498(0x35e)][_0x29c498(0x1bd)]({'title':this[_0x29c498(0x507)]['t'](_0x29c498(0x59b)),'content':this[_0x29c498(0x507)]['t'](_0x29c498(0x520)),'type':_0x29c498(0x2e5),'duration':0x0});}[_0x3a3cba(0x144)](){const _0xc4675d=_0x3a3cba;this[_0xc4675d(0x19c)][_0xc4675d(0x3f4)](new k[(_0xc4675d(0x1df))](this[_0xc4675d(0x40b)])['id'],!0x1);}};ve=Ee([N(0x6,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x2d1)])),N(0x7,a['ICommandService']),N(0x8,a[_0x3a3cba(0x444)]),N(0x9,a[_0x3a3cba(0x4b4)](exports['LocalCacheService'])),N(0xa,a[_0x3a3cba(0x4b4)](p['RevisionService'])),N(0xb,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x2b2)])),N(0xc,te[_0x3a3cba(0x549)])],ve);let Se=class extends be{constructor(_0x120428,_0x2a97d2,_0x18a867,_0xa5af4,_0x2f37ae,_0x47260a,_0x5da44f,_0x2028a6,_0x14f9f1,_0x1af97d){const _0x43c699=_0x3a3cba;super(_0x120428,_0x2a97d2,_0x18a867,_0xa5af4,_0x2f37ae,_0x14f9f1,_0x1af97d,_0x5da44f,_0x2028a6),I(this,_0x43c699(0x3b1),_0x43c699(0x4cb)),this[_0x43c699(0x23e)]=_0x47260a;}[_0x3a3cba(0x373)](_0x116747){const _0x45de11=_0x3a3cba;return this[_0x45de11(0x3b3)][_0x45de11(0x31b)](_0x116747),this['_updateLocalCache'](),this;}[_0x3a3cba(0x39e)](_0x28b11a){const _0x5725b1=_0x3a3cba;throw new Error(_0x5725b1(0x1c3));}[_0x3a3cba(0x298)](){const _0x4025e5=_0x3a3cba;throw new Error(_0x4025e5(0x2de));}[_0x3a3cba(0x5c4)](){const _0x26e66d=_0x3a3cba;throw new Error(_0x26e66d(0x406));}[_0x3a3cba(0x4e6)](){return this;}['toggleOffline'](){return this;}[_0x3a3cba(0x3fc)](){const _0x48f6b3=_0x3a3cba,{_injector:_0x1d2f21,_pendingMutations:_0x40c921,_awaitingChangeset:_0x20d72e,unitID:_0x367521,_handler:_0x5d5b20,type:_0x31754d}=this,_0x4f2daa=gi(_0x1d2f21,_0x367521,_0x31754d,_0x20d72e,_0x40c921,_0x5d5b20);return _0x4f2daa instanceof ce?_0x4f2daa[_0x48f6b3(0x223)]():(_0x4f2daa instanceof le||_0x4f2daa instanceof fe)&&_0x4f2daa[_0x48f6b3(0x48f)](),_0x4f2daa;}[_0x3a3cba(0x48f)](){const _0x26c6be=_0x3a3cba;throw new Error(_0x26c6be(0x47b));}};Se=Ee([N(0x5,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x207)])),N(0x6,a['Inject'](p['RevisionService'])),N(0x7,a['Inject'](exports[_0x3a3cba(0x158)])),N(0x8,a[_0x3a3cba(0x2f8)]),N(0x9,a['IUndoRedoService'])],Se);let re=class extends be{constructor(_0x1bc84b,_0x2f6d4e,_0x2d13b2,_0x46bd85,_0x138a6c,_0x32715c,_0x2198b1,_0x22fd1c,_0x5a4224,_0xd1bed6,_0x369018,_0x535030,_0xa7be52,_0x931742){const _0x563ea2=_0x3a3cba;super(_0x1bc84b,_0x2f6d4e,_0x2d13b2,_0x46bd85,_0x2198b1,_0x535030,_0xa7be52,_0x5a4224,_0xd1bed6),I(this,_0x563ea2(0x3b1),_0x563ea2(0x435)),(this[_0x563ea2(0x1ce)]=_0x138a6c,this[_0x563ea2(0x28f)]=_0x32715c,this[_0x563ea2(0x23e)]=_0x22fd1c,this[_0x563ea2(0x590)]=_0x369018,this[_0x563ea2(0x37c)]=_0x931742);}[_0x3a3cba(0x345)](_0x1f9514){const _0x470771=_0x3a3cba;try{const _0x5ce706=[..._0x1f9514,...this['_queuedRemoteChangesets']],_0xdab2b0=[this['_awaitingChangeset']||this[_0x470771(0x1ce)]][_0x470771(0x516)](_0x189c5a=>!!_0x189c5a);let _0x1c2ba6,_0x19455a;if(_0xdab2b0['length']){const _0x5ec67d=this['_transformService']['transformChangesets'](_0x5ce706,_0xdab2b0,!0x1);if(!p['isTransformChangesetsSuccess'](_0x5ec67d))throw _0x5ec67d[_0x470771(0x2e5)];_0x1c2ba6=_0x5ec67d[_0x470771(0x268)],_0x19455a=_0x5ec67d[_0x470771(0x363)];}else _0x1c2ba6=_0x5ce706,_0x19455a=[];let _0x11aadc=this[_0x470771(0x3b3)];_0x1c2ba6['forEach'](_0x5453c7=>{const _0x352926=_0x470771;let _0x1bf1d4;if(_0x11aadc[_0x352926(0x16b)]){const _0x1edf53=this[_0x352926(0x37c)][_0x352926(0x295)](_0x5453c7,_0x11aadc);if(!p[_0x352926(0x45d)](_0x1edf53))throw _0x1edf53[_0x352926(0x2e5)];_0x1bf1d4=_0x1edf53[_0x352926(0x268)],_0x11aadc=_0x1edf53[_0x352926(0x3c0)];}else _0x1bf1d4=_0x5453c7;this[_0x352926(0x4ad)](_0x1bf1d4);}),this[_0x470771(0x1ce)]&&this[_0x470771(0x41e)](),this[_0x470771(0x512)]&&_0x19455a[_0x470771(0x16b)]&&(_0x19455a[0x0][_0x470771(0x58e)]=this[_0x470771(0x25a)]());let _0x699247;if(this['_awaitingChangeset']&&_0x11aadc[_0x470771(0x16b)]!==0x0)_0x699247=this[_0x470771(0x23e)][_0x470771(0x1c5)](le,this[_0x470771(0x40b)],this[_0x470771(0x322)],_0x19455a[0x0],_0x11aadc,this[_0x470771(0x515)],void 0x0);else{if(this[_0x470771(0x512)]&&_0x11aadc[_0x470771(0x16b)]===0x0)_0x19455a[0x0][_0x470771(0x58e)]=this[_0x470771(0x25a)](),_0x699247=this[_0x470771(0x23e)][_0x470771(0x1c5)](fe,this['unitID'],this['type'],_0x19455a[0x0],this[_0x470771(0x515)]);else{if(_0x11aadc[_0x470771(0x16b)]!==0x0){const _0x5c3bc7=this[_0x470771(0x23e)][_0x470771(0x1c5)](ce,this['unitID'],this[_0x470771(0x322)],_0x11aadc,this['_handler']);_0x5c3bc7[_0x470771(0x223)](),_0x699247=_0x5c3bc7;}else _0x699247=this[_0x470771(0x23e)][_0x470771(0x1c5)](Oe,this[_0x470771(0x40b)],this['type'],this[_0x470771(0x515)]);}}return _0x699247[_0x470771(0x24d)](),_0x699247;}catch(_0x2ec8bb){return this[_0x470771(0x590)]['error'](_0x470771(0x13f),_0x470771(0x27c),_0x2ec8bb),this[_0x470771(0x23e)]['createInstance'](ve,this['unitID'],this['type'],this[_0x470771(0x512)],this[_0x470771(0x3b3)],this[_0x470771(0x515)],!0x1);}}[_0x3a3cba(0x48f)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3a3cba(0x373)](_0x26c4b5){const _0x1b9f97=_0x3a3cba;return this[_0x1b9f97(0x3b3)][_0x1b9f97(0x31b)](_0x26c4b5),this;}['onRemoteChangeset'](_0x23a17f){const _0xa867e7=_0x3a3cba;return this[_0xa867e7(0x28f)][_0xa867e7(0x31b)](_0x23a17f),this;}['onRemoteAck'](_0x2b7fde){const _0x4d9306=_0x3a3cba;if(this[_0x4d9306(0x512)])return this['_acknowledgedAwaitingChangeset']=this[_0x4d9306(0x512)],this[_0x4d9306(0x512)]=null,this;throw new Error(_0x4d9306(0x5c1));}['onRemoteRej'](_0x16f750){const _0x4b070b=_0x3a3cba;return this[_0x4b070b(0x1c7)](!!(_0x16f750!=null&&_0x16f750[_0x4b070b(0x469)]));}[_0x3a3cba(0x4e6)](){return this;}[_0x3a3cba(0x50f)](){const _0x5c7f8e=_0x3a3cba;return this[_0x5c7f8e(0x23e)][_0x5c7f8e(0x1c5)](Se,this['unitID'],this[_0x5c7f8e(0x322)],this[_0x5c7f8e(0x512)],this['_pendingMutations'],this[_0x5c7f8e(0x515)]);}[_0x3a3cba(0x3fc)](){return this;}[_0x3a3cba(0x1c7)](_0x5f4097){const _0x139042=_0x3a3cba;return this[_0x139042(0x23e)][_0x139042(0x1c5)](ve,this[_0x139042(0x40b)],this[_0x139042(0x322)],this[_0x139042(0x512)],this[_0x139042(0x3b3)],this[_0x139042(0x515)],_0x5f4097);}};re=Ee([N(0x7,a['Inject'](a[_0x3a3cba(0x207)])),N(0x8,a[_0x3a3cba(0x4b4)](p['RevisionService'])),N(0x9,a[_0x3a3cba(0x4b4)](exports[_0x3a3cba(0x158)])),N(0xa,a[_0x3a3cba(0x4cc)]),N(0xb,a['ICommandService']),N(0xc,a[_0x3a3cba(0x444)]),N(0xd,p[_0x3a3cba(0x4d5)])],re);function gi(_0x4bc0e4,_0x677293,_0x447bcb,_0x915a4d,_0x904e28,_0x41fc64){const _0x43c948=_0x3a3cba;return _0x915a4d&&_0x904e28[_0x43c948(0x16b)]?_0x4bc0e4[_0x43c948(0x1c5)](le,_0x677293,_0x447bcb,_0x915a4d,_0x904e28,_0x41fc64,void 0x0):_0x915a4d?_0x4bc0e4[_0x43c948(0x1c5)](fe,_0x677293,_0x447bcb,_0x915a4d,_0x41fc64):_0x904e28['length']?_0x4bc0e4[_0x43c948(0x1c5)](ce,_0x677293,_0x447bcb,_0x904e28,_0x41fc64):_0x4bc0e4['createInstance'](Oe,_0x677293,_0x447bcb,_0x41fc64);}function _0x131b(_0x249497,_0xb0f8f5){const _0x103525=_0x1035();return _0x131b=function(_0x131bfb,_0x26567b){_0x131bfb=_0x131bfb-0x12b;let _0x46491b=_0x103525[_0x131bfb];return _0x46491b;},_0x131b(_0x249497,_0xb0f8f5);}var Vn=Object[_0x3a3cba(0x5d1)],Gn=Object['getOwnPropertyDescriptor'],Ot=(_0x43ebd8,_0x22c189,_0x463f10,_0x227af0)=>{const _0x3af78a=_0x3a3cba;for(var _0x2cc2dd=_0x227af0>0x1?void 0x0:_0x227af0?Gn(_0x22c189,_0x463f10):_0x22c189,_0x1ac7b7=_0x43ebd8[_0x3af78a(0x16b)]-0x1,_0x486b7b;_0x1ac7b7>=0x0;_0x1ac7b7--)(_0x486b7b=_0x43ebd8[_0x1ac7b7])&&(_0x2cc2dd=(_0x227af0?_0x486b7b(_0x22c189,_0x463f10,_0x2cc2dd):_0x486b7b(_0x2cc2dd))||_0x2cc2dd);return _0x227af0&&_0x2cc2dd&&Vn(_0x22c189,_0x463f10,_0x2cc2dd),_0x2cc2dd;},H=(_0x19edb8,_0x5c1a69)=>(_0x4450d3,_0x9852b0)=>_0x5c1a69(_0x4450d3,_0x9852b0,_0x19edb8);exports[_0x3a3cba(0x3a1)]=class extends a['RxDisposable']{constructor(_0x2b95bb,_0x353008,_0x281202,_0x5017bb,_0x52f976,_0x5174af,_0x51ebd0,_0x385c9a,_0x452ba8,_0x331909,_0x36d9b1,_0xc904a,_0x1e17cd){const _0x42b8a4=_0x3a3cba;super(),I(this,_0x42b8a4(0x307),new A['BehaviorSubject'](null)),I(this,'state$',this[_0x42b8a4(0x307)][_0x42b8a4(0x216)]()),I(this,_0x42b8a4(0x236)),I(this,_0x42b8a4(0x54b),!0x1),I(this,_0x42b8a4(0x1fb),''),I(this,_0x42b8a4(0x15f),0x0),I(this,_0x42b8a4(0x47f),this['state$'][_0x42b8a4(0x17b)](A[_0x42b8a4(0x53a)](_0x448c95=>_0x448c95?_0x448c95[_0x42b8a4(0x3b1)]:q[_0x42b8a4(0x49b)]),A['shareReplay'](0x1))),I(this,_0x42b8a4(0x55d),!0x1),I(this,_0x42b8a4(0x2a7),[]),(this['unitID']=_0x2b95bb,this[_0x42b8a4(0x30c)]=_0x353008,this[_0x42b8a4(0x40f)]=_0x281202,this[_0x42b8a4(0x23e)]=_0x5017bb,this[_0x42b8a4(0x3e2)]=_0x52f976,this['_compressMutationService']=_0x5174af,this[_0x42b8a4(0x507)]=_0x51ebd0,this[_0x42b8a4(0x42b)]=_0x385c9a,this['_logService']=_0x452ba8,this[_0x42b8a4(0x340)]=_0x331909,this[_0x42b8a4(0x133)]=_0x36d9b1,this[_0x42b8a4(0x19c)]=_0xc904a,this[_0x42b8a4(0x368)]=_0x1e17cd);}get[_0x3a3cba(0x4cf)](){return this['_state'];}async['init'](){const _0x1022be=_0x3a3cba;if(this[_0x1022be(0x4cf)])throw new Error(_0x1022be(0x347));await this[_0x1022be(0x4ef)]();}['pauseCollaboration'](){const _0x509537=_0x3a3cba;return this[_0x509537(0x54b)]=!0x0,a[_0x509537(0x2bd)](()=>{const _0x174e8d=_0x509537;this[_0x174e8d(0x54b)]=!0x1,this[_0x174e8d(0x51b)]();});}[_0x3a3cba(0x483)](_0x5c515d){const _0x2ee63a=_0x3a3cba;this[_0x2ee63a(0x236)]=_0x5c515d,this['_state$'][_0x2ee63a(0x519)](_0x5c515d);}async[_0x3a3cba(0x4ef)](){const _0x5ca796=_0x3a3cba;var _0x74daf7;this[_0x5ca796(0x483)](await this[_0x5ca796(0x55e)]()),this[_0x5ca796(0x368)]&&((_0x74daf7=this[_0x5ca796(0x368)])==null||_0x74daf7[_0x5ca796(0x22c)](this[_0x5ca796(0x40b)]),this[_0x5ca796(0x5e6)](this['_singleActiveUnitService'][_0x5ca796(0x49f)](this[_0x5ca796(0x40b)])[_0x5ca796(0x250)](_0x1d7cce=>{const _0x10a75c=_0x5ca796;this[_0x10a75c(0x590)][_0x10a75c(0x2ba)](_0x10a75c(0x302),_0x10a75c(0x34e),_0x1d7cce),_0x1d7cce===vi[_0x10a75c(0x328)]?(this[_0x10a75c(0x133)][_0x10a75c(0x1bd)]({'content':this['_localeService']['t']('collaboration.single-unit.warning'),'type':Ce[_0x10a75c(0x45b)]['Warning']}),this[_0x10a75c(0x19c)][_0x10a75c(0x3f4)](new k['WorkbookEditablePermission'](this[_0x10a75c(0x40b)])['id'],!0x1),this['_permissionService'][_0x10a75c(0x5c6)](!0x1)):(this['_permissionService'][_0x10a75c(0x3f4)](new k[(_0x10a75c(0x1df))](this['unitID'])['id'],!0x0),this['_permissionService'][_0x10a75c(0x5c6)](!0x0));})));let _0x213ffb=!0x1;return this['disposeWithMe'](this[_0x5ca796(0x30c)]['sessionStatus$'][_0x5ca796(0x250)](_0x436bd8=>{const _0x509bb4=_0x5ca796;_0x436bd8===se[_0x509bb4(0x471)]?this[_0x509bb4(0x4df)](_0x213ffb):_0x436bd8===se['OFFLINE']&&(_0x213ffb=!0x0,this[_0x509bb4(0x500)]());})),this['disposeWithMe'](this[_0x5ca796(0x30c)]['event$'][_0x5ca796(0x250)](_0x13b274=>{const _0x4e8f5e=_0x5ca796;try{switch(_0x13b274['eventID']){case p[_0x4e8f5e(0x38b)][_0x4e8f5e(0x2b6)]:{this[_0x4e8f5e(0x508)](p[_0x4e8f5e(0x1d1)](_0x13b274[_0x4e8f5e(0x19b)]));break;}case p[_0x4e8f5e(0x38b)][_0x4e8f5e(0x558)]:{this[_0x4e8f5e(0x22a)](_0x13b274[_0x4e8f5e(0x19b)]);break;}case p[_0x4e8f5e(0x38b)][_0x4e8f5e(0x4b9)]:{this['_onRemoteRejected']();break;}case p[_0x4e8f5e(0x38b)][_0x4e8f5e(0x4ab)]:{this[_0x4e8f5e(0x4c1)](_0x13b274[_0x4e8f5e(0x19b)]);break;}case p[_0x4e8f5e(0x38b)][_0x4e8f5e(0x21c)]:{this['_onFetchMissResult'](_0x13b274[_0x4e8f5e(0x19b)][_0x4e8f5e(0x2ad)]['map'](_0x5b8e5d=>p[_0x4e8f5e(0x1d1)](_0x5b8e5d)));break;}case p['CollaborationEvent'][_0x4e8f5e(0x459)]:this[_0x4e8f5e(0x35d)]({'isPermissionRej':!0x0});}}catch(_0x135665){throw console[_0x4e8f5e(0x2e5)](_0x4e8f5e(0x30f),_0x135665),_0x135665;}})),this['_state'];}['_unlockTransition'](){const _0x75cbc8=_0x3a3cba;this[_0x75cbc8(0x55d)]=!0x1;}[_0x3a3cba(0x1e5)](){const _0x70b701=_0x3a3cba;if(this[_0x70b701(0x55d)])throw new Error(_0x70b701(0x177));this['_transitionLocked']=!0x0;}[_0x3a3cba(0x46b)](_0x43f525){const _0x1701df=_0x3a3cba;this[_0x1701df(0x1e5)](),this[_0x1701df(0x483)](this['_state'][_0x1701df(0x373)](_0x43f525)),this[_0x1701df(0x1a9)]();}[_0x3a3cba(0x508)](_0xc50f64){const _0x1fe15e=_0x3a3cba;if(!(_0xc50f64[_0x1fe15e(0x1bb)]<=this['_revisionService'][_0x1fe15e(0x29e)](this[_0x1fe15e(0x40b)]))){if(this[_0x1fe15e(0x54b)]){this[_0x1fe15e(0x2a7)][_0x1fe15e(0x31b)](_0xc50f64);return;}this[_0x1fe15e(0x3e8)](_0xc50f64);}}[_0x3a3cba(0x51b)](){const _0x97731e=_0x3a3cba;this[_0x97731e(0x2a7)]['forEach'](_0xdba284=>this[_0x97731e(0x3e8)](_0xdba284)),this[_0x97731e(0x2a7)]=[];}[_0x3a3cba(0x3e8)](_0x1cda4e){const _0x103438=_0x3a3cba,_0x1c6ac6=this[_0x103438(0x5af)]['interceptor'][_0x103438(0x346)](this[_0x103438(0x5af)]['interceptor'][_0x103438(0x264)]()[_0x103438(0x2ab)])(_0x1cda4e[_0x103438(0x441)],null)||_0x1cda4e['mutations'],_0x2bf0e3={..._0x1cda4e,'mutations':_0x1c6ac6};this[_0x103438(0x1e5)](),this[_0x103438(0x483)](this[_0x103438(0x236)][_0x103438(0x39e)](_0x2bf0e3)),this[_0x103438(0x1a9)]();}[_0x3a3cba(0x22a)](_0x16a644){const _0x125318=_0x3a3cba;this[_0x125318(0x1e5)](),this[_0x125318(0x483)](this[_0x125318(0x236)][_0x125318(0x298)](_0x16a644)),this[_0x125318(0x1a9)]();}[_0x3a3cba(0x35d)](_0x28b8c4){const _0x54885e=_0x3a3cba;this[_0x54885e(0x1e5)](),this[_0x54885e(0x483)](this['_state'][_0x54885e(0x5c4)](_0x28b8c4)),this[_0x54885e(0x1a9)]();}['_onRemoteRetry'](_0x2c240a){const _0x3aa658=_0x3a3cba;this[_0x3aa658(0x1e5)](),this[_0x3aa658(0x483)](this[_0x3aa658(0x236)][_0x3aa658(0x4e6)](_0x2c240a)),this['_unlockTransition']();}[_0x3a3cba(0x5c8)](_0x4f76e4){const _0x336d61=_0x3a3cba;if(!(this[_0x336d61(0x236)]instanceof re))throw new TypeError(_0x336d61(0x2dc));const _0x466fd9=_0x4f76e4[_0x336d61(0x53a)](_0x300668=>{const _0x28c980=_0x336d61,_0x12bdfa=this[_0x28c980(0x5af)][_0x28c980(0x58d)][_0x28c980(0x346)](this[_0x28c980(0x5af)][_0x28c980(0x58d)][_0x28c980(0x264)]()[_0x28c980(0x2ab)])(_0x300668[_0x28c980(0x441)],null)||_0x300668[_0x28c980(0x441)];return{..._0x300668,'mutations':_0x12bdfa};});this[_0x336d61(0x1e5)](),this[_0x336d61(0x483)](this[_0x336d61(0x236)][_0x336d61(0x345)](_0x466fd9)),this[_0x336d61(0x1a9)]();}[_0x3a3cba(0x500)](){const _0x36a870=_0x3a3cba;this[_0x36a870(0x1e5)](),this[_0x36a870(0x483)](this['_state'][_0x36a870(0x50f)]()),this['_unlockTransition']();}['_toggleOnline'](_0x26003d=!0x1){const _0x4569dc=_0x3a3cba;this[_0x4569dc(0x1e5)](),this['_updateState'](this['_state'][_0x4569dc(0x3fc)]()),this[_0x4569dc(0x1a9)]();const _0x3f8b5d=this['_state'];_0x26003d&&_0x3f8b5d instanceof Oe&&(this['_lockTransition'](),this[_0x4569dc(0x483)](_0x3f8b5d[_0x4569dc(0x4b7)]()),this[_0x4569dc(0x1a9)]());}async[_0x3a3cba(0x55e)](){return new Promise(_0x31113b=>{const _0x37bf19=_0x131b;this['session'][_0x37bf19(0x241)][_0x37bf19(0x17b)](A[_0x37bf19(0x1e9)](0x1))['subscribe'](async _0x5b0d61=>{const _0x3b849d=_0x37bf19;_0x31113b(await this[_0x3b849d(0x3ba)](_0x5b0d61===se[_0x3b849d(0x471)]));});});}['_createHandler'](){const _0x355361=_0x3a3cba,_0x432685=this[_0x355361(0x40b)];return{'onStateChange':(_0x58506d,_0x294c29)=>{const _0x24f8e4=_0x355361;if(_0x58506d!==this[_0x24f8e4(0x236)])throw new Error(_0x24f8e4(0x23c)+_0x58506d[_0x24f8e4(0x3b1)]+'\x0aAfter:\x20'+_0x294c29[_0x24f8e4(0x3b1)]+_0x24f8e4(0x4ec)+this['_state']['status']);this[_0x24f8e4(0x483)](_0x294c29);},'onSendChangeset':_0x2d2324=>{const _0x5a7ef2=_0x355361;_0x2d2324[_0x5a7ef2(0x593)]||(_0x2d2324['sid']=this[_0x5a7ef2(0x1fb)],_0x2d2324[_0x5a7ef2(0x4a6)]=++this[_0x5a7ef2(0x15f)]);const _0x102321={'eventID':p[_0x5a7ef2(0x38b)][_0x5a7ef2(0x5d6)],'data':{'unitID':_0x2d2324[_0x5a7ef2(0x40b)],'unitType':this[_0x5a7ef2(0x40f)],'changeset':_0x2d2324,'memberID':this[_0x5a7ef2(0x30c)][_0x5a7ef2(0x542)]()}};this[_0x5a7ef2(0x30c)][_0x5a7ef2(0x52a)](_0x102321,this[_0x5a7ef2(0x40b)]);},'onMissingChangesets':({from:_0x199413,to:_0x391dd9})=>{const _0x53d851=_0x355361;this[_0x53d851(0x590)]['debug'](_0x53d851(0x302),_0x53d851(0x277)+_0x199413+_0x53d851(0x450)+_0x391dd9);const _0x4fed9a={'eventID':p['CollaborationEvent'][_0x53d851(0x461)],'data':{'unitID':_0x432685,'unitType':this['_type'],'from':_0x199413,'to':_0x391dd9}};this[_0x53d851(0x30c)][_0x53d851(0x52a)](_0x4fed9a,this[_0x53d851(0x40b)]);}};}async[_0x3a3cba(0x3ba)](_0x1fc2ba){const _0x1d425b=_0x3a3cba;var _0x543af8,_0x4e58c4;const _0x7cda96=await this[_0x1d425b(0x3e2)][_0x1d425b(0x45f)](this[_0x1d425b(0x40b)]),_0x56a3b7=(_0x543af8=_0x7cda96==null?void 0x0:_0x7cda96[_0x1d425b(0x441)])!=null?_0x543af8:[],_0x5f2259=(_0x4e58c4=_0x7cda96==null?void 0x0:_0x7cda96['awaitingChangeset'])!=null?_0x4e58c4:null,_0x4f7608=!!(_0x5f2259!=null&&_0x5f2259[_0x1d425b(0x593)])&&!!(_0x5f2259!=null&&_0x5f2259['reqId']);this[_0x1d425b(0x1fb)]=_0x4f7608?_0x5f2259[_0x1d425b(0x593)]:In(),this[_0x1d425b(0x15f)]=_0x4f7608?_0x5f2259[_0x1d425b(0x4a6)]:0x0;const _0x15be9e=this[_0x1d425b(0x40b)];try{this[_0x1d425b(0x354)](_0x5f2259,_0x56a3b7);}catch(_0x1cfd68){this[_0x1d425b(0x590)][_0x1d425b(0x2e5)](_0x1cfd68);}const _0x5a2514=this['_createHandler']();if(_0x1fc2ba){const _0xb915e=gi(this[_0x1d425b(0x23e)],_0x15be9e,this[_0x1d425b(0x40f)],_0x5f2259,_0x56a3b7,_0x5a2514);return _0xb915e instanceof ce?_0xb915e['_schedule']():(_0xb915e instanceof le||_0xb915e instanceof fe)&&_0xb915e[_0x1d425b(0x48f)](),_0xb915e;}return this[_0x1d425b(0x23e)][_0x1d425b(0x1c5)](Se,_0x15be9e,this[_0x1d425b(0x40f)],_0x5f2259,_0x56a3b7,_0x5a2514);}[_0x3a3cba(0x354)](_0x20c82f,_0x13c611){const _0x4189c9=_0x3a3cba;var _0x42c905,_0x2a5529;const _0x288ea2=this[_0x4189c9(0x5af)][_0x4189c9(0x58d)][_0x4189c9(0x346)](this['_compressMutationService']['interceptor'][_0x4189c9(0x264)]()[_0x4189c9(0x2ab)]);(_0x42c905=_0x288ea2((_0x20c82f==null?void 0x0:_0x20c82f[_0x4189c9(0x441)])||[],null))==null||_0x42c905['forEach'](_0x1a31cb=>this[_0x4189c9(0x340)][_0x4189c9(0x52f)](_0x1a31cb['id'],_0x1a31cb[_0x4189c9(0x599)])),(_0x2a5529=_0x288ea2(_0x13c611||[],null))==null||_0x2a5529[_0x4189c9(0x281)](_0x518cd7=>this[_0x4189c9(0x340)]['executeCommand'](_0x518cd7['id'],_0x518cd7['params']));}},exports[_0x3a3cba(0x3a1)]=Ot([H(0x3,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x207)])),H(0x4,a['Inject'](exports[_0x3a3cba(0x158)])),H(0x5,a[_0x3a3cba(0x4b4)](p['CompressMutationService'])),H(0x6,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x2b2)])),H(0x7,a[_0x3a3cba(0x4b4)](p['RevisionService'])),H(0x8,a[_0x3a3cba(0x4cc)]),H(0x9,a['ICommandService']),H(0xa,te[_0x3a3cba(0x28d)]),H(0xb,a[_0x3a3cba(0x2d1)]),H(0xc,a[_0x3a3cba(0x229)](ze))],exports[_0x3a3cba(0x3a1)]),exports[_0x3a3cba(0x2ec)]=class extends exports[_0x3a3cba(0x3a1)]{constructor(_0x4cc245,_0x378dbb,_0x4915c2,_0x36cc87,_0x2cb21b,_0x289164,_0x3919a3,_0x419c28,_0x1b1d7a,_0x286b4f,_0x4c2f5d,_0x465e7c,_0xc0ab6c,_0x3bd72e,_0x5c0f2d,_0x4f087b,_0x40e419,_0x319e49){const _0x1f133a=_0x3a3cba;super(_0x4cc245,_0x4915c2,_0x378dbb,_0x36cc87,_0x2cb21b,_0x289164,_0x3919a3,_0x419c28,_0x3bd72e,_0x5c0f2d,_0x4f087b,_0x40e419,_0x319e49),this[_0x1f133a(0x40b)]=_0x4cc245,this['type']=_0x378dbb,this[_0x1f133a(0x178)]=_0x1b1d7a,this[_0x1f133a(0x592)]=_0x286b4f,this[_0x1f133a(0x41d)]=_0x4c2f5d,this[_0x1f133a(0x4ea)]=_0x465e7c,this['_docSyncEditingCollabCursorService']=_0xc0ab6c;}[_0x3a3cba(0x169)](){const _0x2d67db=_0x3a3cba,_0x5d3bd3=super[_0x2d67db(0x169)]();return _0x5d3bd3[_0x2d67db(0x3e9)]=_0x4c0c4c=>this[_0x2d67db(0x592)]['transformIMECache'](_0x4c0c4c),_0x5d3bd3[_0x2d67db(0x4f9)]=_0x5eb350=>this[_0x2d67db(0x41d)][_0x2d67db(0x253)](_0x5eb350),_0x5d3bd3[_0x2d67db(0x29b)]=_0x33fd49=>this[_0x2d67db(0x4ea)][_0x2d67db(0x437)](_0x33fd49),_0x5d3bd3[_0x2d67db(0x414)]=_0x28b0a4=>this[_0x2d67db(0x151)][_0x2d67db(0x198)](_0x28b0a4),_0x5d3bd3[_0x2d67db(0x4ba)]=_0x589c82=>this[_0x2d67db(0x592)]['transformRemoteChangeset'](_0x589c82),_0x5d3bd3['onTransformRemoteChangesetByStateCache']=_0x4caf4c=>this[_0x2d67db(0x41d)]['transformRemoteChangeset'](_0x4caf4c),_0x5d3bd3;}async[_0x3a3cba(0x4ef)](){const _0x316996=_0x3a3cba,_0x23534a=await super[_0x316996(0x4ef)]();return this[_0x316996(0x5e6)](this['_docStateChangeManagerService'][_0x316996(0x577)]['pipe'](A['takeUntil'](this[_0x316996(0x541)]))['subscribe'](_0x97d0b3=>{const _0x14e61d=_0x316996;if(_0x97d0b3==null)return;const {unitId:_0x56998c,redoState:_0x518169,commandId:_0x11c183}=_0x97d0b3;if(_0x56998c!==this['unitID'])return;const _0x226535={'id':_0x11c183,'type':a['CommandType'][_0x14e61d(0x5b4)],'params':{'unitId':_0x56998c,'actions':_0x518169[_0x14e61d(0x369)],'textRanges':null}};this[_0x14e61d(0x46b)](_0x226535);})),this[_0x316996(0x5e6)](this[_0x316996(0x340)]['onCommandExecuted']((_0x5077cb,_0x5eee10)=>{const _0x897113=_0x316996;if(_0x5077cb[_0x897113(0x322)]!==a['CommandType'][_0x897113(0x5b4)]||_0x5eee10!=null&&_0x5eee10[_0x897113(0x488)]||_0x5eee10!=null&&_0x5eee10[_0x897113(0x5ca)]||_0x5077cb['id']===Ie[_0x897113(0x13d)]['id'])return;const _0x39e1cc=_0x5077cb[_0x897113(0x599)];if((_0x39e1cc==null?void 0x0:_0x39e1cc[_0x897113(0x168)])!==this['unitID'])return;const _0x5193ed=_0x5077cb,_0x5190c6=this[_0x897113(0x5af)]['interceptor'][_0x897113(0x346)](this[_0x897113(0x5af)][_0x897113(0x58d)][_0x897113(0x264)]()[_0x897113(0x13c)])([_0x5193ed],null)||[_0x5193ed];this[_0x897113(0x46b)](_0x5190c6[0x0]);})),_0x23534a;}},exports[_0x3a3cba(0x2ec)]=Ot([H(0x3,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x207)])),H(0x4,a[_0x3a3cba(0x4b4)](exports[_0x3a3cba(0x158)])),H(0x5,a[_0x3a3cba(0x4b4)](p[_0x3a3cba(0x31f)])),H(0x6,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x2b2)])),H(0x7,a[_0x3a3cba(0x4b4)](p[_0x3a3cba(0x1a6)])),H(0x8,a[_0x3a3cba(0x4b4)](J[_0x3a3cba(0x5d5)])),H(0x9,a[_0x3a3cba(0x4b4)](Be)),H(0xa,a['Inject'](We)),H(0xb,a[_0x3a3cba(0x4b4)](Fe)),H(0xc,a[_0x3a3cba(0x4b4)](yt)),H(0xd,a[_0x3a3cba(0x4cc)]),H(0xe,a[_0x3a3cba(0x2f8)]),H(0xf,te[_0x3a3cba(0x28d)]),H(0x10,a['IPermissionService']),H(0x11,a['Optional'](ze))],exports[_0x3a3cba(0x2ec)]),exports[_0x3a3cba(0x374)]=class extends exports[_0x3a3cba(0x3a1)]{constructor(_0x377dd7,_0x2f5c42,_0x45f556,_0x2281fb,_0x21efd5,_0x1fbfef,_0x3d26fb,_0x292abf,_0xd452f1,_0x409342,_0xc529ca,_0x4161a0,_0x29a653,_0x1916bf){const _0x12824f=_0x3a3cba;super(_0x377dd7,_0x45f556,_0x2f5c42,_0x2281fb,_0x21efd5,_0x1fbfef,_0x3d26fb,_0x292abf,_0x409342,_0xc529ca,_0x4161a0,_0x29a653,_0x1916bf),this[_0x12824f(0x40b)]=_0x377dd7,this[_0x12824f(0x322)]=_0x2f5c42,this[_0x12824f(0x55c)]=_0xd452f1;}[_0x3a3cba(0x169)](){const _0x3c9622=_0x3a3cba,_0x3e7f40=super[_0x3c9622(0x169)]();return _0x3e7f40['onTransformSelections']=_0x509f53=>this[_0x3c9622(0x55c)][_0x3c9622(0x437)](_0x509f53),_0x3e7f40;}async['_init'](){const _0x281d15=_0x3a3cba,_0x528547=await super[_0x281d15(0x4ef)]();return this[_0x281d15(0x5e6)](this['_commandService'][_0x281d15(0x334)]((_0x447bb4,_0xd3c565)=>{const _0x328d95=_0x281d15;if(_0x447bb4[_0x328d95(0x322)]!==a[_0x328d95(0x2f1)][_0x328d95(0x5b4)]||_0xd3c565!=null&&_0xd3c565[_0x328d95(0x488)]||_0xd3c565!=null&&_0xd3c565[_0x328d95(0x5ca)])return;const _0x5825af=_0x447bb4[_0x328d95(0x599)];if((_0x5825af==null?void 0x0:_0x5825af['unitId'])!==this[_0x328d95(0x40b)])return;const _0x47252b=_0x447bb4,_0x18a054=this[_0x328d95(0x5af)]['interceptor'][_0x328d95(0x346)](this[_0x328d95(0x5af)][_0x328d95(0x58d)][_0x328d95(0x264)]()[_0x328d95(0x13c)])([_0x47252b],null)||[_0x47252b];this[_0x328d95(0x46b)](_0x18a054[0x0]);})),_0x528547;}},exports[_0x3a3cba(0x374)]=Ot([H(0x3,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x207)])),H(0x4,a['Inject'](exports[_0x3a3cba(0x158)])),H(0x5,a[_0x3a3cba(0x4b4)](p[_0x3a3cba(0x31f)])),H(0x6,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x2b2)])),H(0x7,a[_0x3a3cba(0x4b4)](p['RevisionService'])),H(0x8,a[_0x3a3cba(0x4b4)](ke)),H(0x9,a[_0x3a3cba(0x4cc)]),H(0xa,a[_0x3a3cba(0x2f8)]),H(0xb,te['IMessageService']),H(0xc,a[_0x3a3cba(0x2d1)]),H(0xd,a[_0x3a3cba(0x229)](ze))],exports[_0x3a3cba(0x374)]);var Yn=Object[_0x3a3cba(0x5d1)],Kn=Object[_0x3a3cba(0x42d)],qn=(_0x1a36fd,_0x58102a,_0x2b3d40,_0x28e2cf)=>{for(var _0x2c19da=_0x28e2cf>0x1?void 0x0:_0x28e2cf?Kn(_0x58102a,_0x2b3d40):_0x58102a,_0x587f93=_0x1a36fd['length']-0x1,_0x560991;_0x587f93>=0x0;_0x587f93--)(_0x560991=_0x1a36fd[_0x587f93])&&(_0x2c19da=(_0x28e2cf?_0x560991(_0x58102a,_0x2b3d40,_0x2c19da):_0x560991(_0x2c19da))||_0x2c19da);return _0x28e2cf&&_0x2c19da&&Yn(_0x58102a,_0x2b3d40,_0x2c19da),_0x2c19da;},it=(_0x4c430e,_0x1e9e61)=>(_0x374c3e,_0x1c35fe)=>_0x1e9e61(_0x374c3e,_0x1c35fe,_0x4c430e);exports[_0x3a3cba(0x5c9)]=class extends a['RxDisposable']{constructor(_0x2c048b,_0xff9c48,_0x256f65){const _0x118fe3=_0x3a3cba;super(),I(this,_0x118fe3(0x3bc),new Map()),I(this,'_entityInit$',new A[(_0x118fe3(0x132))]()),(this[_0x118fe3(0x23e)]=_0x2c048b,this['_collabSessionService']=_0xff9c48,this[_0x118fe3(0x206)]=_0x256f65,this[_0x118fe3(0x4ef)]());}['dispose'](){const _0x34c15c=_0x3a3cba;super[_0x34c15c(0x30a)](),this['_entities'][_0x34c15c(0x281)](_0x441259=>_0x441259['dispose']()),this['_entities'][_0x34c15c(0x505)]();}[_0x3a3cba(0x351)](_0x4145ad){const _0x21712c=_0x3a3cba;var _0x40afe4;return(_0x40afe4=this['_entities'][_0x21712c(0x449)](_0x4145ad))!=null?_0x40afe4:null;}[_0x3a3cba(0x12f)](_0x500ed1){const _0x201d88=_0x3a3cba,_0x58b8a1=this[_0x201d88(0x351)](_0x500ed1);return _0x58b8a1?A['of'](_0x58b8a1):this['_entityInit$']['pipe'](V[_0x201d88(0x516)](_0x1ed85a=>_0x1ed85a['unitID']===_0x500ed1));}[_0x3a3cba(0x4ef)](){const _0x5b5d65=_0x3a3cba;this[_0x5b5d65(0x206)][_0x5b5d65(0x1f5)](a['UniverInstanceType'][_0x5b5d65(0x1b5)])[_0x5b5d65(0x17b)](A[_0x5b5d65(0x4d8)](this[_0x5b5d65(0x541)]),V[_0x5b5d65(0x4b8)](0x10))[_0x5b5d65(0x250)](async _0x1c5cae=>{const _0x8f936=_0x5b5d65,_0x1b3520=_0x1c5cae['getUnitId'](),_0x319631=await this[_0x8f936(0x5db)](_0x1b3520,ne['UNIVER_SHEET']);this[_0x8f936(0x3bc)][_0x8f936(0x38a)](_0x1b3520,_0x319631);}),this[_0x5b5d65(0x206)][_0x5b5d65(0x1f5)](a['UniverInstanceType'][_0x5b5d65(0x1b1)])[_0x5b5d65(0x17b)](A[_0x5b5d65(0x4d8)](this[_0x5b5d65(0x541)]),V[_0x5b5d65(0x4b8)](0x10))[_0x5b5d65(0x17b)](V[_0x5b5d65(0x516)](_0x57d1c5=>!_0x57d1c5[_0x5b5d65(0x470)]()[_0x5b5d65(0x5ec)]('__')))[_0x5b5d65(0x250)](async _0x224512=>{const _0x6af0af=_0x5b5d65,_0x2dc13d=_0x224512[_0x6af0af(0x470)](),_0x2de3c2=await this[_0x6af0af(0x5db)](_0x2dc13d,ne[_0x6af0af(0x1b1)]);this[_0x6af0af(0x3bc)][_0x6af0af(0x38a)](_0x2dc13d,_0x2de3c2);}),A['merge'](this[_0x5b5d65(0x206)][_0x5b5d65(0x404)](a[_0x5b5d65(0x231)][_0x5b5d65(0x1b5)]),this[_0x5b5d65(0x206)][_0x5b5d65(0x404)](a[_0x5b5d65(0x231)][_0x5b5d65(0x1b1)]))['pipe'](A[_0x5b5d65(0x4d8)](this[_0x5b5d65(0x541)]))[_0x5b5d65(0x250)](_0xd20707=>{const _0x8b3f83=_0x5b5d65,_0x4da381=_0xd20707[_0x8b3f83(0x470)](),_0x3d5a3b=this[_0x8b3f83(0x3bc)][_0x8b3f83(0x449)](_0x4da381);_0x3d5a3b&&(_0x3d5a3b[_0x8b3f83(0x30a)](),this[_0x8b3f83(0x3bc)]['delete'](_0x4da381));});}async['_startCollaboration'](_0x322067,_0x381249){const _0x3586ed=_0x3a3cba,_0x1280a0=await this[_0x3586ed(0x54f)][_0x3586ed(0x1e3)](_0x322067),_0x333c3d=this[_0x3586ed(0x23e)][_0x3586ed(0x1c5)](this[_0x3586ed(0x4bc)](_0x381249),_0x322067,_0x381249,_0x1280a0);return await _0x333c3d['init'](),this[_0x3586ed(0x2d3)][_0x3586ed(0x519)](_0x333c3d),_0x333c3d;}[_0x3a3cba(0x4bc)](_0x5314ef){const _0x866b93=_0x3a3cba;switch(_0x5314ef){case ne[_0x866b93(0x1b1)]:return exports[_0x866b93(0x2ec)];case ne['UNIVER_SHEET']:return exports[_0x866b93(0x374)];default:throw new Error(_0x866b93(0x28c)+_0x5314ef);}}},exports['CollaborationController']=qn([it(0x0,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x207)])),it(0x1,a[_0x3a3cba(0x4b4)](exports[_0x3a3cba(0x19d)])),it(0x2,a[_0x3a3cba(0x1c9)])],exports[_0x3a3cba(0x5c9)]);var zn=Object[_0x3a3cba(0x5d1)],Xn=Object[_0x3a3cba(0x42d)],Jn=(_0x4b39f6,_0x47b328,_0x42d9f8,_0xb3680a)=>{for(var _0x346023=_0xb3680a>0x1?void 0x0:_0xb3680a?Xn(_0x47b328,_0x42d9f8):_0x47b328,_0x33e14e=_0x4b39f6['length']-0x1,_0x2f3064;_0x33e14e>=0x0;_0x33e14e--)(_0x2f3064=_0x4b39f6[_0x33e14e])&&(_0x346023=(_0xb3680a?_0x2f3064(_0x47b328,_0x42d9f8,_0x346023):_0x2f3064(_0x346023))||_0x346023);return _0xb3680a&&_0x346023&&zn(_0x47b328,_0x42d9f8,_0x346023),_0x346023;},Bt=(_0x1c92ea,_0x29bf89)=>(_0x26a43d,_0x661f1f)=>_0x29bf89(_0x26a43d,_0x661f1f,_0x1c92ea);let Ve=class extends a[_0x3a3cba(0x3c4)]{constructor(_0x45eabc,_0x3a8d47){const _0xeb6a41=_0x3a3cba;super(),this['_docClipboardService']=_0x45eabc,this[_0xeb6a41(0x150)]=_0x3a8d47,this['_init']();}[_0x3a3cba(0x4ef)](){const _0x229af7=_0x3a3cba,_0x8a0891=this;this[_0x229af7(0x5e6)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x55f336=>{const _0x167f6d=_0x229af7,_0x56fded=await _0x8a0891[_0x167f6d(0x150)]['saveImage'](_0x55f336);return _0x56fded?{'source':_0x56fded[_0x167f6d(0x267)],'imageSourceType':_0x56fded[_0x167f6d(0x24c)]}:null;}}));}};Ve=Jn([Bt(0x0,J[_0x3a3cba(0x24e)]),Bt(0x1,ie[_0x3a3cba(0x428)])],Ve);const kt=[_0x3a3cba(0x25d),_0x3a3cba(0x4aa),_0x3a3cba(0x2c2),'red300',_0x3a3cba(0x47c),'gold400'];class Dt extends a[_0x3a3cba(0x28a)]{constructor(){const _0x1da065=_0x3a3cba;super(...arguments),I(this,_0x1da065(0x48e),new Map()),I(this,_0x1da065(0x585),0x0);}['assignAColorForMemberID'](_0x44bd96){const _0x1804af=_0x3a3cba;if(this[_0x1804af(0x48e)][_0x1804af(0x16f)](_0x44bd96))return this[_0x1804af(0x48e)][_0x1804af(0x449)](_0x44bd96);const _0x504b89=kt[this['_colorIndex']];return this['_colorIndex']=(this[_0x1804af(0x585)]+0x1)%kt[_0x1804af(0x16b)],this[_0x1804af(0x48e)][_0x1804af(0x38a)](_0x44bd96,_0x504b89),_0x504b89;}}var Zn=Object['defineProperty'],Qn=Object[_0x3a3cba(0x42d)],es=(_0x4f696f,_0x113325,_0x3d0180,_0x17eaaf)=>{for(var _0x56ee00=_0x17eaaf>0x1?void 0x0:_0x17eaaf?Qn(_0x113325,_0x3d0180):_0x113325,_0x1e844d=_0x4f696f['length']-0x1,_0x59b117;_0x1e844d>=0x0;_0x1e844d--)(_0x59b117=_0x4f696f[_0x1e844d])&&(_0x56ee00=(_0x17eaaf?_0x59b117(_0x113325,_0x3d0180,_0x56ee00):_0x59b117(_0x56ee00))||_0x56ee00);return _0x17eaaf&&_0x56ee00&&Zn(_0x113325,_0x3d0180,_0x56ee00),_0x56ee00;},me=(_0x12ae08,_0x5c1c11)=>(_0x9e9854,_0x45b3a2)=>_0x5c1c11(_0x9e9854,_0x45b3a2,_0x12ae08);const ts=0x12c,is=0x64;let pt=class extends a[_0x3a3cba(0x3c4)]{constructor(_0x4e822d,_0x402fb8,_0x2b4e4f,_0x2b4a6d,_0x140686,_0x1031ac,_0x4bf63e,_0x306238,_0x247ddf){const _0x240982=_0x3a3cba;super(),I(this,_0x240982(0x5d0),!0x1),I(this,_0x240982(0x4ef),!0x1),I(this,_0x240982(0x285),new A[(_0x240982(0x2bf))](new Map())),I(this,_0x240982(0x297),this[_0x240982(0x285)][_0x240982(0x216)]()),I(this,_0x240982(0x31d),new A[(_0x240982(0x2bf))]([])),I(this,_0x240982(0x518),this[_0x240982(0x31d)][_0x240982(0x17b)](A['debounceTime'](ts))),I(this,_0x240982(0x2f2),a[_0x240982(0x3b2)](_0x341403=>{const _0x35399d=_0x240982,_0x48886b={'eventID':p[_0x35399d(0x38b)][_0x35399d(0x372)],'data':{'unitID':this[_0x35399d(0x40b)],'memberID':this[_0x35399d(0x4d4)]['getMemberID'](),'selection':Si(_0x341403)}};this[_0x35399d(0x4d4)][_0x35399d(0x52a)](_0x48886b,this[_0x35399d(0x40b)]);},is)),(this[_0x240982(0x40b)]=_0x4e822d,this[_0x240982(0x4d4)]=_0x402fb8,this['_injector']=_0x2b4e4f,this[_0x240982(0x3a3)]=_0x2b4a6d,this['_memberService']=_0x140686,this['_syncEditingCollabCursorService']=_0x1031ac,this['_transformService']=_0x4bf63e,this[_0x240982(0x206)]=_0x306238,this['_commandService']=_0x247ddf);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x3a3cba(0x1a2)](){const _0x10b654=_0x3a3cba;return this[_0x10b654(0x31d)]['getValue']();}[_0x3a3cba(0x30a)](){const _0x3a6d89=_0x3a3cba;super[_0x3a6d89(0x30a)](),this[_0x3a6d89(0x285)]['next'](new Map()),this[_0x3a6d89(0x285)][_0x3a6d89(0x5a7)](),this[_0x3a6d89(0x31d)][_0x3a6d89(0x519)]([]),this[_0x3a6d89(0x31d)][_0x3a6d89(0x5a7)]();}['init'](){const _0x1b6f20=_0x3a3cba;this[_0x1b6f20(0x4ef)]||(this[_0x1b6f20(0x4ef)]=!0x0,this[_0x1b6f20(0x4d4)][_0x1b6f20(0x241)][_0x1b6f20(0x17b)](A['takeUntil'](this[_0x1b6f20(0x541)]))[_0x1b6f20(0x250)](_0x1dd942=>{const _0x1e05b4=_0x1b6f20;_0x1dd942===se[_0x1e05b4(0x471)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x1b6f20(0x4d4)]['event$']['pipe'](A[_0x1b6f20(0x4d8)](this[_0x1b6f20(0x541)]))[_0x1b6f20(0x250)](_0xf15d55=>{const _0x33662e=_0x1b6f20,_0x1c6731=_0xf15d55[_0x33662e(0x422)];_0x1c6731===p[_0x33662e(0x38b)][_0x33662e(0x372)]&&this[_0x33662e(0x5b3)](_0xf15d55),_0x1c6731===p['CollaborationEvent']['USERS_LEAVE']&&this[_0x33662e(0x570)](_0xf15d55);}),this[_0x1b6f20(0x5e6)](this['_commandService']['onCommandExecuted'](_0xab2b73=>{const _0x1598dc=_0x1b6f20,_0x284be3=_0xab2b73[_0x1598dc(0x599)];_0x284be3!=null&&this[_0x1598dc(0x5d0)]&&_0xab2b73['id']===Ie['SetTextSelectionsOperation']['id']&&_0x284be3[_0x1598dc(0x168)]===this[_0x1598dc(0x40b)]&&_0x284be3['isEditing']===!0x1&&_0x284be3['ranges'][_0x1598dc(0x16b)]>0x0&&this[_0x1598dc(0x2f2)](_0x284be3[_0x1598dc(0x3f2)]);})),this[_0x1b6f20(0x57c)][_0x1b6f20(0x159)][_0x1b6f20(0x17b)](A[_0x1b6f20(0x4d8)](this[_0x1b6f20(0x541)]))[_0x1b6f20(0x250)](_0x26c268=>{const _0x26fe28=_0x1b6f20;if((_0x26c268==null?void 0x0:_0x26c268[_0x26fe28(0x40b)])!==this[_0x26fe28(0x40b)])return;const _0x575868={'eventID':p[_0x26fe28(0x38b)]['UPDATE_CURSOR'],'data':_0x26c268};this[_0x26fe28(0x5b3)](_0x575868);}),this[_0x1b6f20(0x5e6)](this['_commandService']['onCommandExecuted'](_0xa410d8=>{const _0x29df1d=_0x1b6f20;if(_0xa410d8[_0x29df1d(0x599)]==null)return;const _0x39498c=_0xa410d8[_0x29df1d(0x599)];if(_0xa410d8['id']!==Ie[_0x29df1d(0x13d)]['id']||_0x39498c[_0x29df1d(0x168)]!==this[_0x29df1d(0x40b)])return;const _0x10ef1b={'id':'doc.mutation.rich-text-editing','params':_0x39498c},_0x2f4e37=this[_0x29df1d(0x1f3)];for(const [_0x1be15d,_0x581164]of _0x2f4e37){const _0x42b23e={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x29df1d(0x40b)],'actions':null,'textRanges':_0x581164['ranges']}},_0x331682=this[_0x29df1d(0x37c)][_0x29df1d(0x215)](_0x10ef1b,_0x42b23e,!0x1);if(p[_0x29df1d(0x5b9)](_0x331682))throw _0x331682[_0x29df1d(0x2e5)];_0x2f4e37['set'](_0x1be15d,{..._0x581164,'ranges':_0x331682['m2Prime'][_0x29df1d(0x599)][_0x29df1d(0x35b)]});}queueMicrotask(()=>{const _0x4abeef=_0x29df1d;this[_0x4abeef(0x285)][_0x4abeef(0x519)](_0x2f4e37);});})));}[_0x3a3cba(0x5b3)](_0x73f2c0){const _0x1a3caa=_0x3a3cba;var _0x3c21a2,_0x3d164c;const {memberID:_0x4e6cae,selection:_0x35c7c8}=_0x73f2c0[_0x1a3caa(0x19b)],_0x3a606f=Ln(_0x35c7c8),_0x4958f8=(_0x3d164c=(_0x3c21a2=this['_memberService']['getMember'](this[_0x1a3caa(0x40b)],_0x4e6cae))==null?void 0x0:_0x3c21a2[_0x1a3caa(0x203)])!=null?_0x3d164c:'Unknown\x20user',_0x445be0={'color':this[_0x1a3caa(0x3a3)][_0x1a3caa(0x3b7)](_0x4e6cae),'name':_0x4958f8,'ranges':_0x3a606f},_0x4a40bc=this[_0x1a3caa(0x1f3)];_0x4a40bc[_0x1a3caa(0x38a)](_0x4e6cae,_0x445be0),this[_0x1a3caa(0x285)][_0x1a3caa(0x519)](_0x4a40bc);}[_0x3a3cba(0x570)](_0xf337a1){const _0xb12488=_0x3a3cba,{memberID:_0x258d75}=_0xf337a1[_0xb12488(0x19b)],_0x49a931=this[_0xb12488(0x1f3)];_0x49a931['delete'](_0x258d75),this[_0xb12488(0x285)]['next'](_0x49a931);}[_0x3a3cba(0x4df)](){const _0x5216bf=_0x3a3cba;var _0x117514;if(this[_0x5216bf(0x5d0)]=!0x0,((_0x117514=this[_0x5216bf(0x206)]['getFocusedUnit']())==null?void 0x0:_0x117514['getUnitId']())!==this[_0x5216bf(0x40b)])return;const _0x118431=this[_0x5216bf(0x23e)][_0x5216bf(0x449)](Ie[_0x5216bf(0x2e3)])[_0x5216bf(0x491)]();Array[_0x5216bf(0x550)](_0x118431)&&_0x118431[_0x5216bf(0x16b)]>0x0&&this['_updateLocalCursor'](_0x118431);}['_toggleOffline'](){const _0xa60fbc=_0x3a3cba;this[_0xa60fbc(0x5d0)]=!0x1;}};pt=es([me(0x2,a['Inject'](a[_0x3a3cba(0x207)])),me(0x3,a[_0x3a3cba(0x4b4)](Dt)),me(0x4,a[_0x3a3cba(0x4b4)](exports['MemberService'])),me(0x5,a[_0x3a3cba(0x4b4)](yt)),me(0x6,p['ITransformService']),me(0x7,a['IUniverInstanceService']),me(0x8,a['ICommandService'])],pt);var ns=Object[_0x3a3cba(0x5d1)],ss=Object['getOwnPropertyDescriptor'],rs=(_0x3c03ea,_0x2cd030,_0x233ea0,_0x5bc469)=>{const _0x1ce82c=_0x3a3cba;for(var _0x10257f=_0x5bc469>0x1?void 0x0:_0x5bc469?ss(_0x2cd030,_0x233ea0):_0x2cd030,_0x14c504=_0x3c03ea[_0x1ce82c(0x16b)]-0x1,_0x295c2e;_0x14c504>=0x0;_0x14c504--)(_0x295c2e=_0x3c03ea[_0x14c504])&&(_0x10257f=(_0x5bc469?_0x295c2e(_0x2cd030,_0x233ea0,_0x10257f):_0x295c2e(_0x10257f))||_0x10257f);return _0x5bc469&&_0x10257f&&ns(_0x2cd030,_0x233ea0,_0x10257f),_0x10257f;},Te=(_0x43ed69,_0x50ded9)=>(_0x4098d4,_0x166b0e)=>_0x50ded9(_0x4098d4,_0x166b0e,_0x43ed69);const os=0x12c,as=0x64,cs=()=>{let _0x50d718=[],_0x1b06eb=!0x1;return _0x5b6b7c=>{const _0xdfd3a3=_0x131b;_0x50d718[_0xdfd3a3(0x31b)](_0x5b6b7c),_0x1b06eb||(_0x1b06eb=!0x0,setTimeout(()=>{_0x50d718['forEach'](_0x1fbaba=>_0x1fbaba()),_0x50d718=[],_0x1b06eb=!0x1;}));};};let mt=class extends a[_0x3a3cba(0x3c4)]{constructor(_0x471b34,_0x130742,_0x3ce3de,_0x2a4e3a,_0x57a6ae,_0x5ebf98,_0x7a3555,_0x346989){const _0x415008=_0x3a3cba;super(),I(this,_0x415008(0x5d0),!0x1),I(this,'_init',!0x1),I(this,_0x415008(0x285),new A['BehaviorSubject'](new Map())),I(this,_0x415008(0x297),this[_0x415008(0x285)][_0x415008(0x216)]()),I(this,_0x415008(0x31d),new A[(_0x415008(0x2bf))]([])),I(this,'roomMembers$',this[_0x415008(0x31d)]['pipe'](A[_0x415008(0x34c)](os))),I(this,'_updateLocalCursor',a[_0x415008(0x3b2)]((_0x1838fd,_0x387619)=>{const _0x5b2e9a=_0x415008,_0x2ae65f={'eventID':p[_0x5b2e9a(0x38b)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x5b2e9a(0x40b)],'memberID':this[_0x5b2e9a(0x4d4)][_0x5b2e9a(0x542)](),'selection':Mt['serializeRangeWithSheet'](_0x1838fd,_0x387619[_0x5b2e9a(0x3db)])}};this['_session'][_0x5b2e9a(0x52a)](_0x2ae65f,this[_0x5b2e9a(0x40b)]);},as)),(this['unitID']=_0x471b34,this[_0x415008(0x4d4)]=_0x130742,this[_0x415008(0x23e)]=_0x3ce3de,this[_0x415008(0x3a3)]=_0x2a4e3a,this[_0x415008(0x2d0)]=_0x57a6ae,this[_0x415008(0x206)]=_0x5ebf98,this[_0x415008(0x340)]=_0x7a3555,this[_0x415008(0x568)]=_0x346989);}get[_0x3a3cba(0x1f3)](){return this['_cursorInfo$']['getValue']();}get[_0x3a3cba(0x1a2)](){const _0x5b9ea6=_0x3a3cba;return this['_roomMembers$'][_0x5b9ea6(0x315)]();}['dispose'](){const _0x456055=_0x3a3cba;super['dispose'](),this[_0x456055(0x285)][_0x456055(0x519)](new Map()),this[_0x456055(0x285)][_0x456055(0x5a7)](),this[_0x456055(0x31d)][_0x456055(0x519)]([]),this[_0x456055(0x31d)][_0x456055(0x5a7)]();}['init'](){const _0x2fb821=_0x3a3cba;this[_0x2fb821(0x4ef)]||(this[_0x2fb821(0x4ef)]=!0x0,this[_0x2fb821(0x4d4)][_0x2fb821(0x241)]['pipe'](A['takeUntil'](this['dispose$']))[_0x2fb821(0x250)](_0x32c4e6=>{const _0xcde688=_0x2fb821;_0x32c4e6===se['ONLINE']?this[_0xcde688(0x4df)]():this[_0xcde688(0x500)]();}),this[_0x2fb821(0x4d4)][_0x2fb821(0x3ac)]['pipe'](A[_0x2fb821(0x4d8)](this['dispose$']))[_0x2fb821(0x250)](_0x30b7e7=>{const _0x42830b=_0x2fb821,_0x3f883a=_0x30b7e7[_0x42830b(0x422)];_0x3f883a===p[_0x42830b(0x38b)][_0x42830b(0x372)]&&this[_0x42830b(0x5b3)](_0x30b7e7),_0x3f883a===p['CollaborationEvent'][_0x42830b(0x310)]&&this[_0x42830b(0x570)](_0x30b7e7);}),this[_0x2fb821(0x4fd)](),this[_0x2fb821(0x5e6)](this['_commandService'][_0x2fb821(0x334)](_0x1c04c0=>{const _0x5ed259=_0x2fb821;if(this[_0x5ed259(0x5d0)]&&_0x1c04c0['id']===k[_0x5ed259(0x456)]['id']&&_0x1c04c0[_0x5ed259(0x599)][_0x5ed259(0x168)]===this['unitID']){const _0x36e56f=_0x1c04c0['params'];this[_0x5ed259(0x2f2)](_0x36e56f[_0x5ed259(0x306)],_0x36e56f[_0x5ed259(0x147)][0x0]);}})));}[_0x3a3cba(0x5b3)](_0x1af385){const _0x1d8cc4=_0x3a3cba;var _0x5405cb,_0x3fa850;const {memberID:_0x4e68f9,selection:_0x1bbdd4}=_0x1af385['data'],{sheetName:_0x2fb29b,range:_0x29a26d}=Mt[_0x1d8cc4(0x30d)](_0x1bbdd4),_0x5358cf={'name':(_0x3fa850=(_0x5405cb=this['_memberService'][_0x1d8cc4(0x50a)](this[_0x1d8cc4(0x40b)],_0x4e68f9))==null?void 0x0:_0x5405cb[_0x1d8cc4(0x203)])!=null?_0x3fa850:_0x1d8cc4(0x4da),'range':this[_0x1d8cc4(0x2b3)](_0x2fb29b,_0x29a26d),'sheetID':_0x2fb29b,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x4e68f9),'selection':_0x1bbdd4},_0x33073a=this['cursorInfo'];_0x33073a['set'](_0x4e68f9,_0x5358cf),this['_cursorInfo$'][_0x1d8cc4(0x519)](_0x33073a);}[_0x3a3cba(0x570)](_0x34d633){const _0x30a9b9=_0x3a3cba,{memberID:_0x46436e}=_0x34d633[_0x30a9b9(0x19b)],_0x40da6a=this[_0x30a9b9(0x1f3)];_0x40da6a[_0x30a9b9(0x26b)](_0x46436e),this['_cursorInfo$'][_0x30a9b9(0x519)](_0x40da6a);}['_getMergeRange'](_0x43f02f,_0x48ffcd){const _0x1b87d8=_0x3a3cba;var _0x20c933,_0x431dca;const _0x55f53c=(_0x431dca=(_0x20c933=this[_0x1b87d8(0x206)][_0x1b87d8(0x32f)](this[_0x1b87d8(0x40b)]))==null?void 0x0:_0x20c933[_0x1b87d8(0x337)](_0x43f02f))==null?void 0x0:_0x431dca[_0x1b87d8(0x489)]();return(_0x55f53c==null?void 0x0:_0x55f53c[_0x1b87d8(0x3cd)](_0x66568c=>a[_0x1b87d8(0x2e6)]['contains'](_0x66568c,_0x48ffcd)))||_0x48ffcd;}[_0x3a3cba(0x4fd)](){const _0x1123a3=_0x3a3cba,_0x4f6f85=new a[(_0x1123a3(0x18c))](),_0x354bb4=cs(),_0x2af65c=()=>{const _0x8e82c0=_0x1123a3;_0x4f6f85['dispose']();const _0xb9c8cc=(_0x4be8f5,_0x55a8a1,_0x4ad19d,_0x582142)=>{const _0x5b67d6=_0x131b;let _0x162371=[];switch(_0x4be8f5['id']){case k[_0x5b67d6(0x416)][_0x5b67d6(0x286)]:{_0x162371=k[_0x5b67d6(0x279)](_0x4be8f5,_0x582142);break;}case k[_0x5b67d6(0x416)][_0x5b67d6(0x3c7)]:{_0x162371=k['handleDeleteRangeMoveUp'](_0x4be8f5,_0x582142);break;}case k['EffectRefRangId'][_0x5b67d6(0x37d)]:{_0x162371=k['handleInsertCol'](_0x4be8f5,_0x582142);break;}case k['EffectRefRangId'][_0x5b67d6(0x41c)]:{_0x162371=k['handleInsertRangeMoveDown'](_0x4be8f5,_0x582142);break;}case k['EffectRefRangId'][_0x5b67d6(0x219)]:{_0x162371=k[_0x5b67d6(0x4e1)](_0x4be8f5,_0x582142);break;}case k['EffectRefRangId']['InsertRowCommandId']:{_0x162371=k[_0x5b67d6(0x16e)](_0x4be8f5,_0x582142);break;}case k[_0x5b67d6(0x416)][_0x5b67d6(0x230)]:{_0x162371=k[_0x5b67d6(0x214)](_0x4be8f5,_0x582142);break;}case k[_0x5b67d6(0x416)]['RemoveColCommandId']:{_0x162371=k['handleIRemoveCol'](_0x4be8f5,_0x582142);break;}case k[_0x5b67d6(0x416)]['RemoveRowCommandId']:{_0x162371=k['handleIRemoveRow'](_0x4be8f5,_0x582142);break;}}const _0x4b7c10=k[_0x5b67d6(0x42f)](_0x162371,_0x582142),_0x40f1e9=this['cursorInfo']['get'](_0x55a8a1);if(_0x40f1e9&&_0x4b7c10){const _0x373aaa={..._0x40f1e9,'range':_0x4b7c10};this['cursorInfo']['set'](_0x55a8a1,_0x373aaa),_0x354bb4(()=>{const _0x3b9b98=_0x5b67d6,_0x5f247f=this[_0x3b9b98(0x568)][_0x3b9b98(0x4a5)](_0x4b7c10,_0x4fba66=>(_0x5f247f[_0x3b9b98(0x30a)](),_0xb9c8cc(_0x4fba66,_0x55a8a1,_0x4ad19d,_0x4b7c10)));_0x4f6f85[_0x3b9b98(0x4b3)](_0x5f247f);});}return{'redos':[],'undos':[]};};this[_0x8e82c0(0x1f3)][_0x8e82c0(0x281)]((_0xc5f17b,_0x257185)=>{const _0x38c3ef=_0x8e82c0,{range:_0x1f5388,sheetID:_0xa8937e}=_0xc5f17b,_0x4cb252=this[_0x38c3ef(0x568)]['registerRefRange'](_0x1f5388,_0x495c10=>(_0x4cb252[_0x38c3ef(0x30a)](),_0xb9c8cc(_0x495c10,_0x257185,_0xa8937e,_0x1f5388)));_0x4f6f85[_0x38c3ef(0x4b3)](_0x4cb252);});};this['disposeWithMe'](a['toDisposable'](this[_0x1123a3(0x285)][_0x1123a3(0x250)](()=>{_0x2af65c();})));}['_toggleOnline'](){const _0x4bf3fe=_0x3a3cba;var _0x41a06c,_0x4ca3ce;if(this[_0x4bf3fe(0x5d0)]=!0x0,((_0x41a06c=this['_univerInstanceService'][_0x4bf3fe(0x46d)]())==null?void 0x0:_0x41a06c[_0x4bf3fe(0x470)]())!==this[_0x4bf3fe(0x40b)])return;const _0x1d90db=(_0x4ca3ce=this[_0x4bf3fe(0x23e)][_0x4bf3fe(0x449)](k[_0x4bf3fe(0x59d)])[_0x4bf3fe(0x4bd)]())==null?void 0x0:_0x4ca3ce[0x0],_0x4728be=this['_univerInstanceService'][_0x4bf3fe(0x29c)](a['UniverInstanceType'][_0x4bf3fe(0x1b5)])['getActiveSheet']();_0x1d90db&&_0x4728be&&this[_0x4bf3fe(0x2f2)](_0x4728be['getSheetId'](),_0x1d90db);}['_toggleOffline'](){const _0x145690=_0x3a3cba;this[_0x145690(0x5d0)]=!0x1;}};mt=rs([Te(0x2,a['Inject'](a['Injector'])),Te(0x3,a[_0x3a3cba(0x4b4)](Dt)),Te(0x4,a[_0x3a3cba(0x4b4)](exports[_0x3a3cba(0x510)])),Te(0x5,a[_0x3a3cba(0x1c9)]),Te(0x6,a['ICommandService']),Te(0x7,a[_0x3a3cba(0x4b4)](k['RefRangeService']))],mt);var ls=Object[_0x3a3cba(0x5d1)],hs=Object['getOwnPropertyDescriptor'],_s=(_0x5659c6,_0x4bfacc,_0x1c8ddf,_0x17eba6)=>{const _0x228949=_0x3a3cba;for(var _0x4ee38d=_0x17eba6>0x1?void 0x0:_0x17eba6?hs(_0x4bfacc,_0x1c8ddf):_0x4bfacc,_0x43eeb3=_0x5659c6[_0x228949(0x16b)]-0x1,_0x26c408;_0x43eeb3>=0x0;_0x43eeb3--)(_0x26c408=_0x5659c6[_0x43eeb3])&&(_0x4ee38d=(_0x17eba6?_0x26c408(_0x4bfacc,_0x1c8ddf,_0x4ee38d):_0x26c408(_0x4ee38d))||_0x4ee38d);return _0x17eba6&&_0x4ee38d&&ls(_0x4bfacc,_0x1c8ddf,_0x4ee38d),_0x4ee38d;},nt=(_0x3d5d12,_0x1dcae3)=>(_0x12b5e3,_0x17cc6b)=>_0x1dcae3(_0x12b5e3,_0x17cc6b,_0x3d5d12);let De=class extends a[_0x3a3cba(0x3c4)]{constructor(_0x3e81ca,_0x166a5d,_0x63a604){const _0xffa128=_0x3a3cba;super(),I(this,'_entities',new Map()),I(this,_0xffa128(0x2d3),new A[(_0xffa128(0x132))]()),(this[_0xffa128(0x206)]=_0x3e81ca,this[_0xffa128(0x23e)]=_0x166a5d,this[_0xffa128(0x54f)]=_0x63a604,this[_0xffa128(0x4ef)]());}['dispose'](){const _0x5bd3b6=_0x3a3cba;super[_0x5bd3b6(0x30a)](),this['_entityInit$'][_0x5bd3b6(0x5a7)](),this[_0x5bd3b6(0x3bc)][_0x5bd3b6(0x281)](_0x15a234=>_0x15a234[_0x5bd3b6(0x30a)]());}[_0x3a3cba(0x382)](_0x33fc4b){const _0x8f275c=_0x3a3cba;return this[_0x8f275c(0x3bc)]['has'](_0x33fc4b)?this[_0x8f275c(0x3bc)][_0x8f275c(0x449)](_0x33fc4b)[_0x8f275c(0x297)]:this[_0x8f275c(0x2d3)][_0x8f275c(0x17b)](A[_0x8f275c(0x516)](_0x28fe76=>_0x28fe76[_0x8f275c(0x40b)]===_0x33fc4b),A[_0x8f275c(0x2a0)](_0x2bbcf1=>_0x2bbcf1[_0x8f275c(0x297)]));}[_0x3a3cba(0x4ef)](){const _0x16ca16=_0x3a3cba;this[_0x16ca16(0x206)]['getTypeOfUnitAdded$'](a[_0x16ca16(0x231)][_0x16ca16(0x1b5)])[_0x16ca16(0x17b)](A[_0x16ca16(0x4d8)](this['dispose$']))[_0x16ca16(0x250)](async _0x3d7b69=>{const _0x112bb3=_0x16ca16,_0x5eb729=_0x3d7b69[_0x112bb3(0x470)](),_0x5219c9=await this[_0x112bb3(0x4ca)](_0x5eb729);this[_0x112bb3(0x2d3)][_0x112bb3(0x519)](_0x5219c9),this[_0x112bb3(0x3bc)]['set'](_0x5eb729,_0x5219c9);}),this[_0x16ca16(0x206)][_0x16ca16(0x1f5)](a[_0x16ca16(0x231)][_0x16ca16(0x1b1)])[_0x16ca16(0x17b)](A[_0x16ca16(0x4d8)](this[_0x16ca16(0x541)]))[_0x16ca16(0x17b)](A['filter'](_0x1b3ccb=>!_0x1b3ccb[_0x16ca16(0x470)]()[_0x16ca16(0x5ec)]('__')))['subscribe'](async _0x33f1e7=>{const _0x323e9a=_0x16ca16,_0x10b2a2=_0x33f1e7[_0x323e9a(0x470)](),_0x83bf89=await this[_0x323e9a(0x2cd)](_0x10b2a2);this[_0x323e9a(0x2d3)][_0x323e9a(0x519)](_0x83bf89),this['_entities'][_0x323e9a(0x38a)](_0x10b2a2,_0x83bf89);}),A[_0x16ca16(0x3c6)](this[_0x16ca16(0x206)][_0x16ca16(0x404)](a[_0x16ca16(0x231)][_0x16ca16(0x1b1)]),this[_0x16ca16(0x206)][_0x16ca16(0x404)](a[_0x16ca16(0x231)]['UNIVER_SHEET']))[_0x16ca16(0x17b)](A[_0x16ca16(0x4d8)](this[_0x16ca16(0x541)]))[_0x16ca16(0x250)](_0x4a007e=>{const _0x338381=_0x16ca16,_0x3576d2=_0x4a007e[_0x338381(0x470)](),_0x3629d1=this['_entities'][_0x338381(0x449)](_0x3576d2);_0x3629d1&&(_0x3629d1['dispose'](),this[_0x338381(0x3bc)][_0x338381(0x26b)](_0x3576d2));});}async['_startSheetCollabCursor'](_0x118175){const _0x117c22=_0x3a3cba,_0x25f49f=await this[_0x117c22(0x54f)][_0x117c22(0x1e3)](_0x118175),_0x3c670d=this[_0x117c22(0x23e)][_0x117c22(0x1c5)](mt,_0x118175,_0x25f49f);return _0x3c670d[_0x117c22(0x16a)](),_0x3c670d;}async[_0x3a3cba(0x2cd)](_0x3fe1a6){const _0x50259c=_0x3a3cba,_0x4c27fe=await this['_collabSessionService']['requireSession'](_0x3fe1a6),_0xb4f4e8=this[_0x50259c(0x23e)][_0x50259c(0x1c5)](pt,_0x3fe1a6,_0x4c27fe);return _0xb4f4e8[_0x50259c(0x16a)](),_0xb4f4e8;}};De=_s([nt(0x0,a['IUniverInstanceService']),nt(0x1,a['Inject'](a[_0x3a3cba(0x207)])),nt(0x2,a['Inject'](exports['CollaborationSessionService']))],De);const Le=0x14,Wt=0xc8,st=0x4,us=0x5;function ds(_0x44a52e,_0x4aaad3){const _0xdbfaa=_0x3a3cba;let {radius:_0x324a97,width:_0x958f49,height:_0x6bcc2}=_0x4aaad3;_0x324a97=_0x324a97!=null?_0x324a97:0x0,_0x958f49=_0x958f49!=null?_0x958f49:0x1e,_0x6bcc2=_0x6bcc2!=null?_0x6bcc2:0x1e;let _0x14d494=0x0,_0x41d24f=0x0,_0x1a5c00=0x0;_0x14d494=_0x41d24f=_0x1a5c00=Math['min'](_0x324a97,_0x958f49/0x2,_0x6bcc2/0x2),_0x44a52e[_0xdbfaa(0x43a)](),_0x44a52e[_0xdbfaa(0x162)](_0x14d494,0x0),_0x44a52e[_0xdbfaa(0x3e6)](_0x958f49-_0x41d24f,0x0),_0x44a52e[_0xdbfaa(0x2f7)](_0x958f49-_0x41d24f,_0x41d24f,_0x41d24f,Math['PI']*0x3/0x2,0x0,!0x1),_0x44a52e[_0xdbfaa(0x3e6)](_0x958f49,_0x6bcc2-_0x1a5c00),_0x44a52e[_0xdbfaa(0x2f7)](_0x958f49-_0x1a5c00,_0x6bcc2-_0x1a5c00,_0x1a5c00,0x0,Math['PI']/0x2,!0x1),_0x44a52e[_0xdbfaa(0x3e6)](0x0,_0x6bcc2),_0x44a52e[_0xdbfaa(0x3e6)](0x0,_0x14d494),_0x44a52e[_0xdbfaa(0x2f7)](_0x14d494,_0x14d494,_0x14d494,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x44a52e[_0xdbfaa(0x157)](),_0x4aaad3[_0xdbfaa(0x153)]&&(_0x44a52e[_0xdbfaa(0x370)](),_0x44a52e[_0xdbfaa(0x15a)]=_0x4aaad3[_0xdbfaa(0x153)],_0x4aaad3[_0xdbfaa(0x3ca)]===_0xdbfaa(0x392)?_0x44a52e['fill'](_0xdbfaa(0x392)):_0x44a52e[_0xdbfaa(0x153)](),_0x44a52e[_0xdbfaa(0x2a6)]());}class Xe extends K['Shape']{constructor(_0x4250db,_0x1000c7){const _0x229e34=_0x3a3cba;super(_0x4250db,_0x1000c7),I(this,_0x229e34(0x1f2)),I(this,'text'),(this[_0x229e34(0x1f2)]=_0x1000c7==null?void 0x0:_0x1000c7[_0x229e34(0x1f2)],this[_0x229e34(0x17f)]=_0x1000c7==null?void 0x0:_0x1000c7[_0x229e34(0x17f)]);}static[_0x3a3cba(0x3b6)](_0x43bddc,_0x4a39c8){const _0x5ef0ac=_0x3a3cba,{text:_0x48e1d5,color:_0x5e929e}=_0x4a39c8;_0x43bddc['save'](),_0x43bddc[_0x5ef0ac(0x4ee)]=_0x5ef0ac(0x493);const _0x50ffdc=_0x43bddc['measureText'](_0x48e1d5)[_0x5ef0ac(0x301)],_0x1a8ab=Math['min'](_0x50ffdc+0x2*st,Wt);ds(_0x43bddc,{'height':Le,'radius':0x4,'width':_0x1a8ab,'fill':_0x5e929e,'evented':!0x1}),_0x43bddc['fillStyle']='#FFF';const _0x38d4de=st,_0x3e9883=Le-us,_0x23ccf5=Wt-0x2*st;if(_0x50ffdc>_0x23ccf5){let _0x5956db='',_0x4c337b=0x0;for(const _0x2136d5 of _0x48e1d5){const _0x34aaac=_0x43bddc[_0x5ef0ac(0x5a9)](_0x2136d5)[_0x5ef0ac(0x301)];if(_0x4c337b+_0x34aaac<=_0x23ccf5-_0x43bddc[_0x5ef0ac(0x5a9)](_0x5ef0ac(0x2a3))[_0x5ef0ac(0x301)])_0x5956db+=_0x2136d5,_0x4c337b+=_0x34aaac;else{_0x5956db+='...';break;}}_0x43bddc['fillText'](_0x5956db,_0x38d4de,_0x3e9883);}else _0x43bddc[_0x5ef0ac(0x1dc)](_0x48e1d5,_0x38d4de,_0x3e9883);_0x43bddc[_0x5ef0ac(0x2a6)]();}[_0x3a3cba(0x235)](_0x12d4cd){Xe['drawWith'](_0x12d4cd,this);}}const rt=_0x3a3cba(0x14d),fs=_0x3a3cba(0x1a3),vs='collab-rect-range-',Ue=0x6,Ss=1.5,ot=0x4,ps=1.5,ms=_0x3a3cba(0x431);class Ft{constructor(_0x412e34,_0x2bffba,_0x114247,_0x5ae8c8){const _0xa6b871=_0x3a3cba;I(this,'_shapes',[]),I(this,'_anchor',null),I(this,'_textBubble',null),I(this,_0xa6b871(0x5aa),null),I(this,_0xa6b871(0x521),null),I(this,'_eventUnsubscribe',null),(this[_0xa6b871(0x4e5)]=_0x412e34,this['_scene']=_0x2bffba,this[_0xa6b871(0x186)]=_0x114247,this[_0xa6b871(0x193)]=_0x5ae8c8,this[_0xa6b871(0x4be)]());}set[_0x3a3cba(0x17c)](_0x12ce0c){const _0x1a740a=_0x3a3cba;_0x12ce0c?(this[_0x1a740a(0x5aa)]&&this[_0x1a740a(0x5aa)][_0x1a740a(0x4a7)](),this[_0x1a740a(0x324)]&&this[_0x1a740a(0x324)][_0x1a740a(0x1bd)]()):(this['_anchorDot']&&this[_0x1a740a(0x5aa)][_0x1a740a(0x1bd)](),this['_textBubble']&&this['_textBubble'][_0x1a740a(0x4a7)]());}[_0x3a3cba(0x30a)](){const _0xc42a67=_0x3a3cba;for(const _0x2b0271 of this[_0xc42a67(0x1b3)])_0x2b0271[_0xc42a67(0x30a)]();this[_0xc42a67(0x324)]&&this[_0xc42a67(0x324)][_0xc42a67(0x30a)](),this[_0xc42a67(0x5aa)]&&this[_0xc42a67(0x5aa)][_0xc42a67(0x30a)](),this[_0xc42a67(0x2a9)]&&this[_0xc42a67(0x2a9)][_0xc42a67(0x30a)](),this[_0xc42a67(0x1f9)]&&this[_0xc42a67(0x1f9)]();}['_render'](){const _0x46aa8c=_0x3a3cba;var _0x28ef2c;const {_docSkeleton:_0x3599c5,_document:_0x3e05d0}=this,{color:_0xc34a36,name:_0x2413f8,ranges:_0x4f2da4}=this[_0x46aa8c(0x4e5)],_0x3e2190=_0x3e05d0['getOffsetConfig'](),{docsLeft:_0x33ec67,docsTop:_0x3f5706}=_0x3e2190,_0x113fdb=new J['NodePositionConvertToCursor'](_0x3e2190,_0x3599c5);for(const {startOffset:_0x26a98d,endOffset:_0x22c63b,rangeType:_0x25c6bd,segmentId:_0x188e2e,segmentPage:_0x156fc6,collapsed:_0x2cb16c,isActive:_0x512709}of _0x4f2da4){const _0x56e67b=_0x3599c5['findNodePositionByCharIndex'](_0x26a98d,!0x0,_0x188e2e,_0x156fc6);let _0x30f15a=_0x3599c5[_0x46aa8c(0x155)](_0x22c63b,!0x0,_0x188e2e,_0x156fc6);if(_0x30f15a==null&&(_0x30f15a=_0x3599c5['findNodePositionByCharIndex'](_0x22c63b-0x1,!0x1,_0x188e2e,_0x156fc6)),_0x512709){const {contentBoxPointGroup:_0x4fd999}=_0x113fdb[_0x46aa8c(0x3ee)](_0x30f15a,_0x30f15a);if(_0x4fd999[_0x46aa8c(0x16b)]===0x0)continue;this['_drawAnchor'](_0xc34a36,_0x4fd999,_0x33ec67,_0x3f5706,_0x2413f8),this['_eventUnsubscribe']=this[_0x46aa8c(0x4c5)]();}if(_0x56e67b&&_0x30f15a){if(_0x25c6bd===a[_0x46aa8c(0x59c)]['RECT']){const _0x4b6e7e=new J['NodePositionConvertToRectRange'](_0x3e2190,_0x3599c5),{pointGroup:_0x5de88a}=(_0x28ef2c=_0x4b6e7e[_0x46aa8c(0x3ee)](_0x56e67b,_0x30f15a))!=null?_0x28ef2c:{};if(_0x5de88a==null||_0x5de88a[_0x46aa8c(0x16b)]===0x0)continue;this[_0x46aa8c(0x2c5)](_0xc34a36,_0x5de88a,_0x33ec67,_0x3f5706);}else{if(!_0x2cb16c){const {borderBoxPointGroup:_0x36b938}=_0x113fdb[_0x46aa8c(0x3ee)](_0x56e67b,_0x30f15a);if(_0x36b938[_0x46aa8c(0x16b)]===0x0)continue;this[_0x46aa8c(0x430)](_0xc34a36,_0x36b938,_0x33ec67,_0x3f5706);}}}}}['_drawAnchor'](_0x293731,_0x309a19,_0x42dd79,_0x2ab1de,_0x649834){const _0x4d2bee=_0x3a3cba,_0x4e4e8e=this[_0x4d2bee(0x19f)](_0x309a19),{left:_0x4ab676,top:_0x220748,height:_0x284304}=_0x4e4e8e,_0x2ed149=this[_0x4d2bee(0x39d)](),_0x302ec3=ps/_0x2ed149,_0x13d752=new K[(_0x4d2bee(0x411))](rt+a[_0x4d2bee(0x5e1)][_0x4d2bee(0x273)](Ue),{'left':_0x4ab676+_0x42dd79-_0x302ec3,'top':_0x220748+_0x2ab1de,'height':_0x284304,'width':Ss,'fill':_0x293731||K[_0x4d2bee(0x139)](a[_0x4d2bee(0x528)]['black'],0x0),'strokeWidth':_0x302ec3,'stroke':ms,'evented':!0x0});this[_0x4d2bee(0x2a9)]=_0x13d752,this[_0x4d2bee(0x569)][_0x4d2bee(0x5b6)](_0x13d752,J[_0x4d2bee(0x390)]);const _0x3fb3ec=new K[(_0x4d2bee(0x411))](rt+a['Tools'][_0x4d2bee(0x273)](Ue),{'left':_0x4ab676+_0x42dd79-_0x302ec3,'top':_0x220748+_0x2ab1de-ot/0x2,'height':ot,'width':ot,'fill':_0x293731||K[_0x4d2bee(0x139)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x293731||K[_0x4d2bee(0x139)](a[_0x4d2bee(0x528)][_0x4d2bee(0x407)],0x0),'evented':!0x1});this[_0x4d2bee(0x5aa)]=_0x3fb3ec,this[_0x4d2bee(0x569)][_0x4d2bee(0x5b6)](_0x3fb3ec,J[_0x4d2bee(0x390)]);const _0x1eecb3=new Xe(rt+a[_0x4d2bee(0x5e1)][_0x4d2bee(0x273)](Ue),{'left':_0x4ab676+_0x42dd79-_0x302ec3,'top':_0x220748+_0x2ab1de-Le,'text':_0x649834,'color':_0x293731});this[_0x4d2bee(0x324)]=_0x1eecb3,this[_0x4d2bee(0x569)][_0x4d2bee(0x5b6)](_0x1eecb3,J['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x3a3cba(0x4c5)](){const _0x455b41=_0x3a3cba,_0x3158a8=this[_0x455b41(0x2a9)][_0x455b41(0x35f)][_0x455b41(0x399)](()=>{const _0xb6e1a8=_0x455b41;this[_0xb6e1a8(0x17c)]=!0x0;}),_0x422e06=this[_0x455b41(0x2a9)][_0x455b41(0x247)]['subscribeEvent'](()=>{const _0x572cb6=_0x455b41;this[_0x572cb6(0x521)]&&clearTimeout(this[_0x572cb6(0x521)]),this[_0x572cb6(0x521)]=setTimeout(()=>{const _0xa9c0c0=_0x572cb6;this[_0xa9c0c0(0x17c)]=!0x1;},0x7d0);});return()=>{const _0x3b023a=_0x455b41;_0x3158a8[_0x3b023a(0x1c6)](),_0x422e06['unsubscribe']();};}['_drawTextRange'](_0x25ce1d,_0x54378e,_0x164618,_0x5336f7){const _0xe1913a=_0x3a3cba,_0x755194=new a[(_0xe1913a(0x18a))](_0x25ce1d)['setAlpha'](0.2)['toRgbString'](),_0x57844c=new K[(_0xe1913a(0x490))](fs+a[_0xe1913a(0x5e1)][_0xe1913a(0x273)](Ue),{'pointsGroup':_0x54378e,'fill':_0x755194||K[_0xe1913a(0x139)](a[_0xe1913a(0x528)][_0xe1913a(0x407)],0.2),'left':_0x164618,'top':_0x5336f7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xe1913a(0x1b3)][_0xe1913a(0x31b)](_0x57844c),this[_0xe1913a(0x569)][_0xe1913a(0x5b6)](_0x57844c,J[_0xe1913a(0x390)]);}['_drawRectRange'](_0x5f16dc,_0x3f1d24,_0x944d45,_0x24eb35){const _0x4fabee=_0x3a3cba,_0x2c34be=new a[(_0x4fabee(0x18a))](_0x5f16dc)['setAlpha'](0.2)[_0x4fabee(0x3fb)](),_0x54fc0d=new K[(_0x4fabee(0x490))](vs+a[_0x4fabee(0x5e1)]['generateRandomId'](Ue),{'pointsGroup':_0x3f1d24,'fill':_0x2c34be||K[_0x4fabee(0x139)](a[_0x4fabee(0x528)][_0x4fabee(0x407)],0.2),'left':_0x944d45,'top':_0x24eb35,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4fabee(0x1b3)]['push'](_0x54fc0d),this[_0x4fabee(0x569)][_0x4fabee(0x5b6)](_0x54fc0d,J['TEXT_RANGE_LAYER_INDEX']);}[_0x3a3cba(0x19f)](_0x3f57d6){const _0x36e016=_0x3f57d6[0x0],_0x4a4cdf=_0x36e016[0x0],_0x6aad40=_0x36e016[0x2],{x:_0x1f46e3,y:_0x497c84}=_0x4a4cdf,{x:_0x54a92e,y:_0x46b91b}=_0x6aad40;return{'left':_0x1f46e3,'top':_0x497c84,'width':_0x54a92e-_0x1f46e3,'height':_0x46b91b-_0x497c84};}['_getScale'](){const _0x56ddf3=_0x3a3cba,{scaleX:_0x1bbe76,scaleY:_0x21033a}=this[_0x56ddf3(0x569)][_0x56ddf3(0x572)]();return Math[_0x56ddf3(0x55b)](_0x1bbe76,_0x21033a);}}var gs=Object[_0x3a3cba(0x5d1)],Is=Object['getOwnPropertyDescriptor'],Cs=(_0x3447a9,_0x130f78,_0x279374,_0x330404)=>{for(var _0x2ae8ea=_0x330404>0x1?void 0x0:_0x330404?Is(_0x130f78,_0x279374):_0x130f78,_0x2780e3=_0x3447a9['length']-0x1,_0x2550a8;_0x2780e3>=0x0;_0x2780e3--)(_0x2550a8=_0x3447a9[_0x2780e3])&&(_0x2ae8ea=(_0x330404?_0x2550a8(_0x130f78,_0x279374,_0x2ae8ea):_0x2550a8(_0x2ae8ea))||_0x2ae8ea);return _0x330404&&_0x2ae8ea&&gs(_0x130f78,_0x279374,_0x2ae8ea),_0x2ae8ea;},je=(_0x50797b,_0x54ffdc)=>(_0x57ab0d,_0x5a217f)=>_0x54ffdc(_0x57ab0d,_0x5a217f,_0x50797b);let gt=class extends a[_0x3a3cba(0x3c4)]{constructor(_0x5dc894,_0x342746,_0x19ec80,_0x1d5480,_0x187191){const _0xe6b109=_0x3a3cba;super(),I(this,_0xe6b109(0x296),[]),I(this,'_cursors',[]),(this[_0xe6b109(0x5de)]=_0x5dc894,this[_0xe6b109(0x3bf)]=_0x342746,this[_0xe6b109(0x46a)]=_0x19ec80,this['_commandService']=_0x1d5480,this[_0xe6b109(0x375)]=_0x187191,this[_0xe6b109(0x4ef)]());}['_init'](){const _0x21b7a4=_0x3a3cba,_0xb3fe5f=this[_0x21b7a4(0x5de)][_0x21b7a4(0x168)],_0xd7c015=this[_0x21b7a4(0x3bf)];this[_0x21b7a4(0x5e6)](A[_0x21b7a4(0x455)]([this['_collabCursorController']['getCollabCursors$'](_0xb3fe5f),this[_0x21b7a4(0x375)][_0x21b7a4(0x381)]])['pipe'](V[_0x21b7a4(0x53a)](([_0x6075a6,_0x3acc28])=>({'skeleton':_0xd7c015[_0x21b7a4(0x27a)](),'cursors':[..._0x6075a6[_0x21b7a4(0x578)]()][_0x21b7a4(0x1ef)](_0x4942ae=>({..._0x4942ae,'color':_0x3acc28[_0x4942ae['color']]}))})))[_0x21b7a4(0x250)](_0x22eac5=>{const _0x11c792=_0x21b7a4;if(this[_0x11c792(0x2e4)](),_0x22eac5){const {skeleton:_0x198cad,cursors:_0x1afff8}=_0x22eac5;this[_0x11c792(0x13b)](_0x198cad,_0x1afff8);}})),this[_0x21b7a4(0x534)](),this['_initCommandExecutedListener']();}[_0x3a3cba(0x13b)](_0x17e8ce,_0x386c85){const _0x57a2af=_0x3a3cba,{scene:_0x28937d,mainComponent:_0x318d59}=this['_context'],_0x681590=_0x386c85[_0x57a2af(0x53a)](_0x16fcba=>new Ft(_0x16fcba,_0x28937d,_0x17e8ce,_0x318d59));this[_0x57a2af(0x296)]=_0x681590,this[_0x57a2af(0x504)]=_0x386c85;}[_0x3a3cba(0x224)](){const _0x3df2e8=_0x3a3cba;this[_0x3df2e8(0x2e4)]();const {scene:_0x1429d5,mainComponent:_0x5e4081}=this[_0x3df2e8(0x5de)],_0x1b9a3b=this[_0x3df2e8(0x3bf)]['getSkeleton'](),_0x5719c0=this['_cursors'][_0x3df2e8(0x53a)](_0x3e0a4d=>new Ft(_0x3e0a4d,_0x1429d5,_0x1b9a3b,_0x5e4081));this['_cursorShapes']=_0x5719c0;}[_0x3a3cba(0x2e4)](){const _0x4d65e4=_0x3a3cba;this[_0x4d65e4(0x296)][_0x4d65e4(0x281)](_0x4ad6c9=>_0x4ad6c9[_0x4d65e4(0x30a)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x3fe8ca=_0x3a3cba,_0x397cc8=[J[_0x3fe8ca(0x29d)]['id']];this[_0x3fe8ca(0x5e6)](this[_0x3fe8ca(0x340)][_0x3fe8ca(0x334)](_0x8008c4=>{const _0x4bb2d1=_0x3fe8ca;_0x397cc8[_0x4bb2d1(0x240)](_0x8008c4['id'])&&_0x8008c4[_0x4bb2d1(0x599)][_0x4bb2d1(0x168)]===this[_0x4bb2d1(0x5de)][_0x4bb2d1(0x168)]&&this[_0x4bb2d1(0x224)]();}));}['_initResize'](){const _0x458bda=_0x3a3cba;this[_0x458bda(0x5e6)](a['fromEventSubject'](this['_context'][_0x458bda(0x37f)]['onTransformChange$'])['pipe'](V['filter'](_0x14811b=>_0x14811b[_0x458bda(0x322)]===K[_0x458bda(0x3d1)][_0x458bda(0x451)]),V[_0x458bda(0x2f0)](0x10))[_0x458bda(0x250)](()=>{this['_refreshCollabCursors']();}));}};gt=Cs([je(0x1,a[_0x3a3cba(0x4b4)](Ie[_0x3a3cba(0x2ef)])),je(0x2,a[_0x3a3cba(0x4b4)](De)),je(0x3,a[_0x3a3cba(0x2f8)]),je(0x4,a['Inject'](a['ThemeService']))],gt);const Es=0x1,bs=1.5;class Ii extends K[_0x3a3cba(0x135)]{constructor(_0x7bd835,_0x46acd7){const _0x3d46f0=_0x3a3cba;super(_0x7bd835,_0x46acd7),I(this,'_color'),I(this,_0x3d46f0(0x26a),!0x1),I(this,_0x3d46f0(0x5e5)),I(this,_0x3d46f0(0x4d7),''),I(this,'_labelPosition','top'),I(this,_0x3d46f0(0x420)),(_0x46acd7&&this[_0x3d46f0(0x1ee)](_0x46acd7),this['onPointerEnter$'][_0x3d46f0(0x399)](()=>this[_0x3d46f0(0x1ee)]({'hovered':!0x0})),this['onPointerLeave$'][_0x3d46f0(0x399)](()=>this[_0x3d46f0(0x1ee)]({'hovered':!0x1})));}[_0x3a3cba(0x1ee)](_0x21fb14){const _0x29d534=_0x3a3cba;var _0x1245f3,_0x348742,_0x6a2b4,_0x5e12d5,_0xb02d3a,_0x1b08ac;this['_color']=(_0x1245f3=_0x21fb14[_0x29d534(0x1f2)])!=null?_0x1245f3:this[_0x29d534(0x591)],this['_hovered']=(_0x348742=_0x21fb14[_0x29d534(0x359)])!=null?_0x348742:this['_hovered'],this[_0x29d534(0x5e5)]=(_0x6a2b4=_0x21fb14[_0x29d534(0x3db)])!=null?_0x6a2b4:this[_0x29d534(0x5e5)],this[_0x29d534(0x4d7)]=(_0x5e12d5=_0x21fb14[_0x29d534(0x203)])!=null?_0x5e12d5:this[_0x29d534(0x4d7)],this['_labelPosition']=(_0xb02d3a=_0x21fb14[_0x29d534(0x4c2)])!=null?_0xb02d3a:this[_0x29d534(0x397)],this[_0x29d534(0x420)]=(_0x1b08ac=_0x21fb14[_0x29d534(0x38c)])!=null?_0x1b08ac:this['_backgroundColor'],this[_0x29d534(0x468)]({'width':_0x21fb14[_0x29d534(0x301)],'height':_0x21fb14[_0x29d534(0x4a1)]});}['onMouseMove'](_0x2ff5e3){const _0xced1fa=_0x3a3cba,{row:_0x3203cb,column:_0x46af3b}=_0x2ff5e3;if(_0x3203cb>=this[_0xced1fa(0x5e5)][_0xced1fa(0x501)]&&_0x3203cb<=this[_0xced1fa(0x5e5)][_0xced1fa(0x32a)]&&_0x46af3b>=this['_range'][_0xced1fa(0x400)]&&_0x46af3b<=this['_range'][_0xced1fa(0x344)]){this[_0xced1fa(0x1ee)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x3a3cba(0x212)](_0x44b88f){return!0x1;}[_0x3a3cba(0x235)](_0x3a01dd){const _0x142b0f=_0x3a3cba;K[_0x142b0f(0x411)]['drawWith'](_0x3a01dd,{'width':this[_0x142b0f(0x301)],'height':this[_0x142b0f(0x4a1)],'strokeWidth':bs,'stroke':this[_0x142b0f(0x591)],'evented':!0x1,'fill':this[_0x142b0f(0x420)]}),this['_hovered']&&(_0x3a01dd[_0x142b0f(0x370)](),_0x3a01dd['transform'](0x1,0x0,0x0,0x1,this[_0x142b0f(0x301)],this[_0x142b0f(0x397)]==='bottom'?0x0:-Le),Xe['drawWith'](_0x3a01dd,{'text':this[_0x142b0f(0x4d7)],'color':this[_0x142b0f(0x591)]}),_0x3a01dd[_0x142b0f(0x2a6)]());}}var Ts=Object[_0x3a3cba(0x5d1)],Rs=Object[_0x3a3cba(0x42d)],ys=(_0x4626a2,_0x4ce200,_0x217de0,_0x13f1d7)=>{const _0x2ea869=_0x3a3cba;for(var _0x27d90c=_0x13f1d7>0x1?void 0x0:_0x13f1d7?Rs(_0x4ce200,_0x217de0):_0x4ce200,_0x3b83a9=_0x4626a2[_0x2ea869(0x16b)]-0x1,_0x35c10f;_0x3b83a9>=0x0;_0x3b83a9--)(_0x35c10f=_0x4626a2[_0x3b83a9])&&(_0x27d90c=(_0x13f1d7?_0x35c10f(_0x4ce200,_0x217de0,_0x27d90c):_0x35c10f(_0x27d90c))||_0x27d90c);return _0x13f1d7&&_0x27d90c&&Ts(_0x4ce200,_0x217de0,_0x27d90c),_0x27d90c;},at=(_0x74c50b,_0x3f57f1)=>(_0x46392b,_0x16ec66)=>_0x3f57f1(_0x46392b,_0x16ec66,_0x74c50b);const Os=0x1389;let It=class extends a[_0x3a3cba(0x3c4)]{constructor(_0x35ecc9,_0x354f07,_0x82816c,_0x51c4cc){const _0x395c29=_0x3a3cba;super(),I(this,_0x395c29(0x504),new Set()),I(this,_0x395c29(0x1bc),null),(this[_0x395c29(0x5de)]=_0x35ecc9,this['_sheetSkeletonManagerService']=_0x354f07,this[_0x395c29(0x46a)]=_0x82816c,this[_0x395c29(0x375)]=_0x51c4cc,this[_0x395c29(0x4ef)]());}[_0x3a3cba(0x4ef)](){const _0x3989fd=_0x3a3cba;this[_0x3989fd(0x56b)][_0x3989fd(0x59f)]['pipe'](V['takeUntil'](this['dispose$']),V[_0x3989fd(0x2a0)](_0x1aef07=>{const _0x1ab5ce=_0x3989fd;if(_0x1aef07){const _0x43c929=_0x1aef07[_0x1ab5ce(0x454)];return A[_0x1ab5ce(0x455)](this['_collabCursorController'][_0x1ab5ce(0x382)](this[_0x1ab5ce(0x5de)][_0x1ab5ce(0x168)]),this['_themeService'][_0x1ab5ce(0x381)])[_0x1ab5ce(0x17b)](V['map'](([_0x40d69a,_0xd3728f])=>{const _0x73cc86=_0x1ab5ce,_0x51f1f2=new Map();return _0x40d69a[_0x73cc86(0x281)]((_0x1a894b,_0x1fdcb3)=>{const _0x4aac8c=_0x73cc86;if(_0x1a894b[_0x4aac8c(0x1ac)]===_0x43c929){const _0x488d44={..._0x1a894b};_0x488d44[_0x4aac8c(0x1f2)]=_0xd3728f[_0x1a894b['color']],_0x51f1f2[_0x4aac8c(0x38a)](_0x1fdcb3,_0x488d44);}}),{'skeleton':_0x1aef07,'cursors':_0x51f1f2};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3d8d78,cursors:_0x3fcfc3})=>{const _0x43631e=_0x3989fd;this['_removeCollabCursors'](),_0x3d8d78&&this[_0x43631e(0x13b)](_0x3d8d78,_0x3fcfc3);}),this[_0x3989fd(0x56b)][_0x3989fd(0x59f)][_0x3989fd(0x250)](_0x467527=>{const _0x268b24=_0x3989fd;if(_0x467527==null)return;const {skeleton:_0x3979d1}=_0x467527,{scene:_0x29cbfa}=this[_0x268b24(0x5de)];_0x29cbfa[_0x268b24(0x4fc)][_0x268b24(0x399)](a[_0x268b24(0x3b2)](_0x53eeab=>{const _0x49aa11=_0x268b24;var _0x27d05b,_0x161753;const {offsetX:_0x47bb07,offsetY:_0x275a4c}=_0x53eeab,{x:_0x259978,y:_0x102f54}=_0x29cbfa[_0x49aa11(0x4a3)](K[_0x49aa11(0x35a)]['FromArray']([_0x47bb07,_0x275a4c])),{scaleX:_0x4c3dc6,scaleY:_0x4fec65}=_0x29cbfa[_0x49aa11(0x572)](),_0x556890=_0x29cbfa[_0x49aa11(0x532)](ye['VIEWPORT_KEY'][_0x49aa11(0x258)]),_0x1a0ed8=_0x29cbfa['getVpScrollXYInfoByPosToVp'](K[_0x49aa11(0x35a)]['FromArray']([_0x259978,_0x102f54]),_0x556890),_0x1ef042=_0x3979d1[_0x49aa11(0x48b)](_0x47bb07,_0x275a4c,_0x4c3dc6,_0x4fec65,_0x1a0ed8);((_0x27d05b=this[_0x49aa11(0x1bc)])==null?void 0x0:_0x27d05b['column'])===_0x1ef042['column']&&((_0x161753=this['_lastPointer'])==null?void 0x0:_0x161753[_0x49aa11(0x282)])===_0x1ef042[_0x49aa11(0x282)]||this['_cursors'][_0x49aa11(0x281)](_0x27a051=>{const _0x12b0be=_0x49aa11;_0x27a051[_0x12b0be(0x275)](_0x1ef042);});},0x64));});}[_0x3a3cba(0x13b)](_0xe8e2f6,_0x2f8317){const _0x520fe7=_0x3a3cba;var _0x17204f;const _0x43641f=(_0x17204f=this[_0x520fe7(0x56b)]['getCurrent']())==null?void 0x0:_0x17204f[_0x520fe7(0x27b)];if(!_0x43641f)return;const _0x2a12a0=this['_getSheetObject']();if(!_0x2a12a0)return;this['_cursors'][_0x520fe7(0x281)](_0x5139a5=>{const _0x6ee2bd=_0x520fe7;_0x5139a5[_0x6ee2bd(0x25e)]();});const {scene:_0x29668b}=_0x2a12a0,_0x15bc99=Ds(Array[_0x520fe7(0x1ba)](_0x2f8317['values']()))['map'](_0x46b51e=>{const _0x23de78=_0x520fe7,{color:_0x277bee,range:_0x2738a4,name:_0x26e7e3,selection:_0x47d4e1,sheetID:_0x235a14}=_0x46b51e,{startColumn:_0x1941d8,startRow:_0x5f3706,endColumn:_0x1b3152,endRow:_0x52b3ae}=_0x2738a4,_0x26dfd2=ye[_0x23de78(0x21f)](_0x5f3706,_0x1941d8,_0x29668b,_0x43641f),_0x44a0d8=ye[_0x23de78(0x21f)](_0x52b3ae,_0x1b3152,_0x29668b,_0x43641f),{columnHeaderHeightAndMarginTop:_0x49f402}=_0x43641f,{startX:_0x420884,startY:_0x5ed1ff}=_0x26dfd2,{endX:_0x3c95d3,endY:_0x161a76}=_0x44a0d8,_0x39a08f=_0x3c95d3-_0x420884,_0x3e7c18=_0x161a76-_0x5ed1ff,_0xf17660={'labelPosition':_0x5ed1ff-_0x49f402>=Le?'top':'bottom','sheetID':_0x235a14,'range':_0x2738a4,'color':_0x277bee,'name':_0x26e7e3,'selection':_0x47d4e1,'left':_0x420884,'top':_0x5ed1ff,'width':_0x39a08f,'height':_0x3e7c18,'evented':!0x1,'zIndex':Os};return new Ii(_0x26e7e3,_0xf17660);});_0x29668b['addObjects'](_0x15bc99,Es),this[_0x520fe7(0x504)]=new Set(_0x15bc99);}[_0x3a3cba(0x2e4)](){const _0x1faff4=_0x3a3cba;var _0x4db8d4;(_0x4db8d4=this[_0x1faff4(0x504)])==null||_0x4db8d4[_0x1faff4(0x281)](_0x27bfc0=>_0x27bfc0[_0x1faff4(0x30a)]());}[_0x3a3cba(0x40e)](){const _0x3c5fca=_0x3a3cba;return ye[_0x3c5fca(0x314)](this[_0x3c5fca(0x5de)][_0x3c5fca(0x3e1)],this[_0x3c5fca(0x5de)]);}};It=ys([at(0x1,a[_0x3a3cba(0x4b4)](ye['SheetSkeletonManagerService'])),at(0x2,a[_0x3a3cba(0x4b4)](De)),at(0x3,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x271)]))],It);function Ds(_0x595973){const _0x406d9c=_0x3a3cba,_0x1a6007=new Map();return _0x595973[_0x406d9c(0x281)](_0x221ae7=>{const _0x27e7d4=_0x406d9c;if(_0x1a6007[_0x27e7d4(0x16f)](_0x221ae7['selection'])){const _0x286405=_0x1a6007['get'](_0x221ae7[_0x27e7d4(0x396)]);_0x286405[_0x27e7d4(0x203)]+=',\x20'+_0x221ae7['name'];}else _0x1a6007[_0x27e7d4(0x38a)](_0x221ae7[_0x27e7d4(0x396)],_0x221ae7);}),Array['from'](_0x1a6007[_0x406d9c(0x578)]());}var Z=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function xe(_0xb6e12e){const _0x3d6d92=_0x3a3cba;return _0xb6e12e&&_0xb6e12e[_0x3d6d92(0x52c)]&&Object[_0x3d6d92(0x2d8)][_0x3d6d92(0x238)][_0x3d6d92(0x4c9)](_0xb6e12e,'default')?_0xb6e12e[_0x3d6d92(0x40d)]:_0xb6e12e;}var Ci={'exports':{}},Je={},Ps=ae,ws=Symbol[_0x3a3cba(0x2b7)](_0x3a3cba(0x335)),Us=Symbol['for'](_0x3a3cba(0x1d9)),Ms=Object[_0x3a3cba(0x2d8)][_0x3a3cba(0x238)],As=Ps[_0x3a3cba(0x3ae)]['ReactCurrentOwner'],Ns={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function Ei(_0x2631c6,_0x465708,_0x2bd0a3){const _0x1747d0=_0x3a3cba;var _0x498967,_0x1fb5d9={},_0x24e4a3=null,_0x31e2f6=null;_0x2bd0a3!==void 0x0&&(_0x24e4a3=''+_0x2bd0a3),_0x465708['key']!==void 0x0&&(_0x24e4a3=''+_0x465708[_0x1747d0(0x249)]),_0x465708[_0x1747d0(0x36d)]!==void 0x0&&(_0x31e2f6=_0x465708[_0x1747d0(0x36d)]);for(_0x498967 in _0x465708)Ms[_0x1747d0(0x4c9)](_0x465708,_0x498967)&&!Ns['hasOwnProperty'](_0x498967)&&(_0x1fb5d9[_0x498967]=_0x465708[_0x498967]);if(_0x2631c6&&_0x2631c6[_0x1747d0(0x432)]){for(_0x498967 in(_0x465708=_0x2631c6[_0x1747d0(0x432)],_0x465708))_0x1fb5d9[_0x498967]===void 0x0&&(_0x1fb5d9[_0x498967]=_0x465708[_0x498967]);}return{'$$typeof':ws,'type':_0x2631c6,'key':_0x24e4a3,'ref':_0x31e2f6,'props':_0x1fb5d9,'_owner':As[_0x1747d0(0x305)]};}Je['Fragment']=Us,Je[_0x3a3cba(0x440)]=Ei,Je[_0x3a3cba(0x391)]=Ei,Ci[_0x3a3cba(0x5e4)]=Je;var ge=Ci[_0x3a3cba(0x5e4)],ee=function(){const _0x2543a7=_0x3a3cba;return ee=Object['assign']||function(_0x3817f2){const _0xa45411=_0x131b;for(var _0x1aa209,_0x5d4d9d=0x1,_0x167b5b=arguments[_0xa45411(0x16b)];_0x5d4d9d<_0x167b5b;_0x5d4d9d++){_0x1aa209=arguments[_0x5d4d9d];for(var _0x338056 in _0x1aa209)Object[_0xa45411(0x2d8)][_0xa45411(0x238)][_0xa45411(0x4c9)](_0x1aa209,_0x338056)&&(_0x3817f2[_0x338056]=_0x1aa209[_0x338056]);}return _0x3817f2;},ee[_0x2543a7(0x49e)](this,arguments);},Ls=function(_0x5871d9,_0x518f95){const _0x1fd8d1=_0x3a3cba;var _0x3bb723={};for(var _0x33f8bf in _0x5871d9)Object[_0x1fd8d1(0x2d8)][_0x1fd8d1(0x238)][_0x1fd8d1(0x4c9)](_0x5871d9,_0x33f8bf)&&_0x518f95['indexOf'](_0x33f8bf)<0x0&&(_0x3bb723[_0x33f8bf]=_0x5871d9[_0x33f8bf]);if(_0x5871d9!=null&&typeof Object[_0x1fd8d1(0x57d)]==_0x1fd8d1(0x1d8)){for(var _0x284ae2=0x0,_0x33f8bf=Object[_0x1fd8d1(0x57d)](_0x5871d9);_0x284ae2<_0x33f8bf[_0x1fd8d1(0x16b)];_0x284ae2++)_0x518f95[_0x1fd8d1(0x12d)](_0x33f8bf[_0x284ae2])<0x0&&Object['prototype'][_0x1fd8d1(0x251)][_0x1fd8d1(0x4c9)](_0x5871d9,_0x33f8bf[_0x284ae2])&&(_0x3bb723[_0x33f8bf[_0x284ae2]]=_0x5871d9[_0x33f8bf[_0x284ae2]]);}return _0x3bb723;},Pt=ae[_0x3a3cba(0x257)](function(_0x224502,_0x2383de){const _0x280cb2=_0x3a3cba;var _0x212c67=_0x224502[_0x280cb2(0x55a)],_0x231e93=_0x224502['id'],_0x57545b=_0x224502['className'],_0x128ccb=_0x224502[_0x280cb2(0x189)],_0x44ffee=Ls(_0x224502,[_0x280cb2(0x55a),'id','className',_0x280cb2(0x189)]),_0x2bfcfc=_0x280cb2(0x36f)['concat'](_0x231e93,'\x20')['concat'](_0x57545b||'')['trim'](),_0xdb98e9=ae[_0x280cb2(0x18b)]('_'['concat']($s()));return bi(_0x212c67,''[_0x280cb2(0x447)](_0x231e93),{'defIds':_0x212c67['defIds'],'idSuffix':_0xdb98e9[_0x280cb2(0x305)]},ee({'ref':_0x2383de,'className':_0x2bfcfc},_0x44ffee),_0x128ccb);});function bi(_0x213202,_0xbd114b,_0x1c5f81,_0x4dd6dd,_0x2c5bc9){const _0x50dc44=_0x3a3cba;return ae[_0x50dc44(0x201)](_0x213202['tag'],ee(ee({'key':_0xbd114b},xs(_0x213202,_0x1c5f81,_0x2c5bc9)),_0x4dd6dd),(js(_0x213202,_0x1c5f81)[_0x50dc44(0x192)]||[])['map'](function(_0x3acb2b,_0x38b930){const _0x467e4d=_0x50dc44;return bi(_0x3acb2b,''[_0x467e4d(0x447)](_0xbd114b,'-')[_0x467e4d(0x447)](_0x213202[_0x467e4d(0x2fa)],'-')[_0x467e4d(0x447)](_0x38b930),_0x1c5f81,void 0x0,_0x2c5bc9);}));}function xs(_0x233ee1,_0x48b5ba,_0x14989e){const _0x42d4ca=_0x3a3cba;var _0x512897=ee({},_0x233ee1[_0x42d4ca(0x4cd)]);_0x14989e!=null&&_0x14989e[_0x42d4ca(0x439)]&&_0x512897[_0x42d4ca(0x153)]===_0x42d4ca(0x439)&&(_0x512897[_0x42d4ca(0x153)]=_0x14989e[_0x42d4ca(0x439)]);var _0x5dab57=_0x48b5ba['defIds'];return!_0x5dab57||_0x5dab57[_0x42d4ca(0x16b)]===0x0||(_0x233ee1[_0x42d4ca(0x2fa)]==='use'&&_0x512897[_0x42d4ca(0x190)]&&(_0x512897['xlink:href']=_0x512897[_0x42d4ca(0x190)]+_0x48b5ba['idSuffix']),Object[_0x42d4ca(0x20c)](_0x512897)[_0x42d4ca(0x281)](function(_0x29928b){const _0x5358b1=_0x42d4ca;var _0x37f97a=_0x29928b[0x0],_0x5187e8=_0x29928b[0x1];typeof _0x5187e8=='string'&&(_0x512897[_0x37f97a]=_0x5187e8[_0x5358b1(0x56c)](/url\(#(.*)\)/,_0x5358b1(0x20f)[_0x5358b1(0x447)](_0x48b5ba['idSuffix'],')')));})),_0x512897;}function js(_0x2ca346,_0x32a208){const _0x42eab7=_0x3a3cba;var _0x68eb62,_0x5b829f=_0x32a208[_0x42eab7(0x53e)];return!_0x5b829f||_0x5b829f[_0x42eab7(0x16b)]===0x0?_0x2ca346:_0x2ca346['tag']==='defs'&&(!((_0x68eb62=_0x2ca346['children'])===null||_0x68eb62===void 0x0)&&_0x68eb62[_0x42eab7(0x16b)])?ee(ee({},_0x2ca346),{'children':_0x2ca346['children']['map'](function(_0x4d1c5a){const _0x3665b5=_0x42eab7;return typeof _0x4d1c5a[_0x3665b5(0x4cd)]['id']==_0x3665b5(0x554)&&_0x5b829f&&_0x5b829f[_0x3665b5(0x12d)](_0x4d1c5a[_0x3665b5(0x4cd)]['id'])>-0x1?ee(ee({},_0x4d1c5a),{'attrs':ee(ee({},_0x4d1c5a['attrs']),{'id':_0x4d1c5a['attrs']['id']+_0x32a208[_0x3665b5(0x3bd)]})}):_0x4d1c5a;})}):_0x2ca346;}function $s(){const _0x19b25f=_0x3a3cba;return Math[_0x19b25f(0x14e)]()['toString'](0x24)[_0x19b25f(0x1c0)](0x2,0x8);}Pt['displayName']=_0x3a3cba(0x56f);var Hs={'tag':_0x3a3cba(0x20b),'attrs':{'fill':_0x3a3cba(0x25b),'viewBox':_0x3a3cba(0x3d9),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3a3cba(0x33c)},'children':[{'tag':_0x3a3cba(0x350),'attrs':{'stroke':_0x3a3cba(0x226),'d':_0x3a3cba(0x4f7),'strokeLinecap':_0x3a3cba(0x3cb),'strokeLinejoin':_0x3a3cba(0x3cb),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3a3cba(0x33e),'attrs':{'id':_0x3a3cba(0x3e4)},'children':[{'tag':_0x3a3cba(0x350),'attrs':{'fill':_0x3a3cba(0x44a),'d':_0x3a3cba(0x3fa)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Ti=ae['forwardRef'](function(_0xc67dc,_0x29bb16){const _0x4a1b05=_0x3a3cba;return ae[_0x4a1b05(0x201)](Pt,Object['assign']({},_0xc67dc,{'id':_0x4a1b05(0x304),'ref':_0x29bb16,'icon':Hs}));});Ti[_0x3a3cba(0x48a)]=_0x3a3cba(0x20a);var Bs={'tag':_0x3a3cba(0x20b),'attrs':{'fill':_0x3a3cba(0x25b),'viewBox':_0x3a3cba(0x313),'width':_0x3a3cba(0x4de),'height':_0x3a3cba(0x4de)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x3a3cba(0x350),'attrs':{'stroke':_0x3a3cba(0x226),'d':_0x3a3cba(0x2b5),'strokeLinecap':'round','strokeLinejoin':_0x3a3cba(0x3cb),'strokeWidth':1.2}}]},{'tag':_0x3a3cba(0x538),'attrs':{},'children':[{'tag':_0x3a3cba(0x33e),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x3a3cba(0x350),'attrs':{'fill':_0x3a3cba(0x44a),'d':_0x3a3cba(0x3fa),'transform':_0x3a3cba(0x2e8)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ri=ae[_0x3a3cba(0x257)](function(_0x4c66fa,_0x1d9029){const _0x4dc60a=_0x3a3cba;return ae[_0x4dc60a(0x201)](Pt,Object[_0x4dc60a(0x5a3)]({},_0x4c66fa,{'id':_0x4dc60a(0x5bb),'ref':_0x1d9029,'icon':Bs}));});Ri[_0x3a3cba(0x48a)]=_0x3a3cba(0x494);function yi(_0xd6278f){const _0x5532f1=_0x3a3cba;var _0x5a98bc,_0x1a3785,_0x10d749='';if(typeof _0xd6278f==_0x5532f1(0x554)||typeof _0xd6278f=='number')_0x10d749+=_0xd6278f;else{if(typeof _0xd6278f==_0x5532f1(0x4a2)){if(Array[_0x5532f1(0x550)](_0xd6278f)){var _0x54d165=_0xd6278f['length'];for(_0x5a98bc=0x0;_0x5a98bc<_0x54d165;_0x5a98bc++)_0xd6278f[_0x5a98bc]&&(_0x1a3785=yi(_0xd6278f[_0x5a98bc]))&&(_0x10d749&&(_0x10d749+='\x20'),_0x10d749+=_0x1a3785);}else{for(_0x1a3785 in _0xd6278f)_0xd6278f[_0x1a3785]&&(_0x10d749&&(_0x10d749+='\x20'),_0x10d749+=_0x1a3785);}}}return _0x10d749;}function ks(){const _0x27a66f=_0x3a3cba;for(var _0x2b683e,_0x445131,_0x468da9=0x0,_0x468245='',_0x4ec45b=arguments[_0x27a66f(0x16b)];_0x468da9<_0x4ec45b;_0x468da9++)(_0x2b683e=arguments[_0x468da9])&&(_0x445131=yi(_0x2b683e))&&(_0x468245&&(_0x468245+='\x20'),_0x468245+=_0x445131);return _0x468245;}const Ws='univer-online-status-icon',Fs=_0x3a3cba(0x4f0),Vs=_0x3a3cba(0x492),Gs=_0x3a3cba(0x3a9),Ys=_0x3a3cba(0x46f),Me={'onlineStatusIcon':Ws,'onlineStatusTitle':Fs,'onlineStatus':Vs,'online':Gs,'offline':Ys};function Ks(_0x57fcc8){const _0x466309=_0x3a3cba;switch(_0x57fcc8){case q[_0x466309(0x49b)]:return _0x466309(0x30b);case q[_0x466309(0x496)]:return _0x466309(0x498);case q[_0x466309(0x166)]:return _0x466309(0x5b2);case q['NOT_COLLAB']:return'collabStatus.notCollab';case q[_0x466309(0x43c)]:case q['AWAITING_WITH_PENDING']:return _0x466309(0x2a5);case q[_0x466309(0x2a4)]:case q[_0x466309(0x1a5)]:return _0x466309(0x574);}}function Oi(_0x40e037){const _0x2177f8=_0x3a3cba,{status$:_0x391b8b}=_0x40e037,_0x51512d=te[_0x2177f8(0x478)](_0x391b8b,q[_0x2177f8(0x552)]),_0x2ceda3=a[_0x2177f8(0x5d7)](a[_0x2177f8(0x2b2)]),_0x38365a=a[_0x2177f8(0x5d7)](exports[_0x2177f8(0x19d)]),_0x4b6412=_0x51512d!==q[_0x2177f8(0x49b)],_0x421797=_0x2ceda3['t'](Ks(_0x51512d)),_0x258949=ks(Me[_0x2177f8(0x252)],{[Me[_0x2177f8(0x3af)]]:_0x4b6412,[Me[_0x2177f8(0x4cb)]]:!_0x4b6412}),_0x1ecc6b=_0x4b6412?ge['jsx'](Ri,{}):ge['jsx'](Ti,{}),_0x4714ed=ae[_0x2177f8(0x320)](()=>{const _0xc56f8d=_0x2177f8;_0x4b6412||_0x38365a[_0xc56f8d(0x533)]();},[_0x4b6412,_0x38365a]);function _0x1c2b7a(){const _0x4cd756=_0x2177f8;return ge[_0x4cd756(0x391)](_0x4cd756(0x39a),{'className':_0x258949,'onClick':_0x4714ed,'children':[ge['jsx'](_0x4cd756(0x39a),{'className':Me['onlineStatusIcon'],'children':_0x1ecc6b}),ge[_0x4cd756(0x440)](_0x4cd756(0x39a),{'className':Me[_0x4cd756(0x2c9)],'children':_0x421797})]});}return _0x4b6412?_0x1c2b7a():ge[_0x2177f8(0x440)](Ce[_0x2177f8(0x1cc)],{'title':_0x2ceda3['t'](_0x2177f8(0x584)),'children':_0x1c2b7a()});}var qs=Object[_0x3a3cba(0x5d1)],zs=Object['getOwnPropertyDescriptor'],Xs=(_0x22bfc2,_0xafdff4,_0x2b61d9,_0xfef219)=>{const _0x5ce9c2=_0x3a3cba;for(var _0x3c4f2b=_0xfef219>0x1?void 0x0:_0xfef219?zs(_0xafdff4,_0x2b61d9):_0xafdff4,_0x2517ba=_0x22bfc2[_0x5ce9c2(0x16b)]-0x1,_0x2eda64;_0x2517ba>=0x0;_0x2517ba--)(_0x2eda64=_0x22bfc2[_0x2517ba])&&(_0x3c4f2b=(_0xfef219?_0x2eda64(_0xafdff4,_0x2b61d9,_0x3c4f2b):_0x2eda64(_0x3c4f2b))||_0x3c4f2b);return _0xfef219&&_0x3c4f2b&&qs(_0xafdff4,_0x2b61d9,_0x3c4f2b),_0x3c4f2b;},$e=(_0x33e032,_0x6b1533)=>(_0x4847bd,_0x34284e)=>_0x6b1533(_0x4847bd,_0x34284e,_0x33e032);exports[_0x3a3cba(0x514)]=class extends a[_0x3a3cba(0x28a)]{constructor(_0x1f0d6e,_0x1d3d01,_0x49e8d3,_0x5ac92f){const _0x47aa5a=_0x3a3cba;super(),I(this,'_status$',new A[(_0x47aa5a(0x2bf))](q[_0x47aa5a(0x552)])),(this[_0x47aa5a(0x206)]=_0x1f0d6e,this[_0x47aa5a(0x196)]=_0x1d3d01,this[_0x47aa5a(0x23e)]=_0x49e8d3,this[_0x47aa5a(0x58b)]=_0x5ac92f,this[_0x47aa5a(0x2f6)](),this[_0x47aa5a(0x42c)]());}[_0x3a3cba(0x42c)](){const _0x6c826e=_0x3a3cba;this[_0x6c826e(0x5e6)](this[_0x6c826e(0x206)][_0x6c826e(0x37e)][_0x6c826e(0x17b)](A['switchMap'](()=>{const _0x1c74a6=_0x6c826e,_0x5a6c11=this[_0x1c74a6(0x206)][_0x1c74a6(0x46d)]();return _0x5a6c11?this['_collaborationController']['getCollabEntity$'](_0x5a6c11[_0x1c74a6(0x470)]()):A['of'](null);}),A['switchMap'](_0x5c0baa=>_0x5c0baa?_0x5c0baa[_0x6c826e(0x47f)]:A['of'](q[_0x6c826e(0x552)])))[_0x6c826e(0x250)](_0x3c0558=>{const _0x4b46ff=_0x6c826e;this[_0x4b46ff(0x2c7)][_0x4b46ff(0x519)](_0x3c0558);}));}[_0x3a3cba(0x2f6)](){const _0x456fb6=_0x3a3cba;this[_0x456fb6(0x5e6)](this['_uiPartsService']['registerComponent'](te[_0x456fb6(0x245)][_0x456fb6(0x2e1)],()=>a[_0x456fb6(0x5a5)](Js({'status$':this['_status$'][_0x456fb6(0x216)]()}),this[_0x456fb6(0x23e)])));}},exports[_0x3a3cba(0x514)]=Xs([$e(0x0,a['IUniverInstanceService']),$e(0x1,te[_0x3a3cba(0x1da)]),$e(0x2,a[_0x3a3cba(0x4b4)](a['Injector'])),$e(0x3,a[_0x3a3cba(0x4b4)](exports[_0x3a3cba(0x5c9)]))],exports[_0x3a3cba(0x514)]);function Js(_0x450c50){const {status$:_0x34e14f}=_0x450c50;return function(){const _0x5e657c=_0x131b;return ge[_0x5e657c(0x440)](Oi,{'status$':_0x34e14f});};}const wt=a['createIdentifier'](_0x3a3cba(0x17e));var Zs=Object[_0x3a3cba(0x5d1)],Qs=Object[_0x3a3cba(0x42d)],er=(_0x10d8b2,_0x292c57,_0x46f62e,_0x1e42d1)=>{const _0x596860=_0x3a3cba;for(var _0x50edd9=_0x1e42d1>0x1?void 0x0:_0x1e42d1?Qs(_0x292c57,_0x46f62e):_0x292c57,_0x2a4447=_0x10d8b2[_0x596860(0x16b)]-0x1,_0xb08661;_0x2a4447>=0x0;_0x2a4447--)(_0xb08661=_0x10d8b2[_0x2a4447])&&(_0x50edd9=(_0x1e42d1?_0xb08661(_0x292c57,_0x46f62e,_0x50edd9):_0xb08661(_0x50edd9))||_0x50edd9);return _0x1e42d1&&_0x50edd9&&Zs(_0x292c57,_0x46f62e,_0x50edd9),_0x50edd9;},Re=(_0x649672,_0x246640)=>(_0x491265,_0x2efe25)=>_0x246640(_0x491265,_0x2efe25,_0x649672);exports[_0x3a3cba(0x280)]=class extends a[_0x3a3cba(0x3c4)]{constructor(_0x667a49,_0x5e0ec8,_0x422032,_0xb9e2b4,_0x119408,_0x1c4e5e){const _0x222821=_0x3a3cba;super(),this[_0x222821(0x225)]=_0x667a49,this[_0x222821(0x590)]=_0x5e0ec8,this[_0x222821(0x340)]=_0x422032,this[_0x222821(0x3e2)]=_0xb9e2b4,this[_0x222821(0x213)]=_0x119408,_0x1c4e5e?_0x1c4e5e==null||_0x1c4e5e[_0x222821(0x3a8)]()[_0x222821(0x3b0)](()=>this[_0x222821(0x4ef)]()):(this['_logService'][_0x222821(0x2ba)]('[DataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x222821(0x4ef)]());}async['_init'](){const _0x9d27cd=_0x3a3cba,_0x28bcf7=this[_0x9d27cd(0x225)][_0x9d27cd(0x50b)](_0x9d27cd(0x3e1)),_0x5be726=this[_0x9d27cd(0x225)]['getParam']('type');if(!_0x28bcf7||!_0x5be726){this[_0x9d27cd(0x590)]['debug'](_0x9d27cd(0x2ce),_0x9d27cd(0x39b));return;}switch(Number(_0x5be726)){case ne[_0x9d27cd(0x1b5)]:{const _0x2b7b90=await this[_0x9d27cd(0x348)](_0x28bcf7);this['_setupSubUnitSync'](_0x2b7b90);break;}case ne[_0x9d27cd(0x1b1)]:{await this[_0x9d27cd(0x5b5)](_0x28bcf7);break;}default:{this['_logService'][_0x9d27cd(0x2e5)](_0x9d27cd(0x2ce),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x3a3cba(0x3ff)](_0xd8197){const _0x3770c1=_0x3a3cba;await this[_0x3770c1(0x3a0)](_0xd8197),_0xd8197['activeSheet$'][_0x3770c1(0x17b)](A[_0x3770c1(0x4d8)](this[_0x3770c1(0x541)]))[_0x3770c1(0x250)](_0x55c89e=>{_0x55c89e&&this['_updateURLWithCurrentState'](_0x55c89e);}),this[_0x3770c1(0x225)]['urlChange$'][_0x3770c1(0x17b)](A[_0x3770c1(0x4d8)](this['dispose$']))[_0x3770c1(0x250)](()=>this['_updateSubUnitFromURLParams'](_0xd8197));}[_0x3a3cba(0x148)](_0xd4006d,_0x535404=!0x1){const _0xb07f4=_0x3a3cba,_0x11da73=this[_0xb07f4(0x225)]['getParam'](_0xb07f4(0x5f2));_0xd4006d[_0xb07f4(0x50d)]()!==_0x11da73&&this[_0xb07f4(0x225)][_0xb07f4(0x19a)](_0xb07f4(0x5f2),_0xd4006d[_0xb07f4(0x50d)](),_0x535404);}async['_updateSubUnitFromURLParams'](_0x28d287){const _0x125710=_0x3a3cba;var _0x28fa5b;const _0x24de78=this[_0x125710(0x225)][_0x125710(0x50b)](_0x125710(0x5f2));if(!_0x24de78||!_0x28d287[_0x125710(0x337)](_0x24de78)){const _0x478806=_0x28d287[_0x125710(0x284)]()[0x0],_0x55fe8b=_0x28d287[_0x125710(0x337)](_0x478806);if(!_0x55fe8b)return;this[_0x125710(0x148)](_0x55fe8b,!0x0),await this['_commandService'][_0x125710(0x52f)](k['SetWorksheetActivateCommand']['id'],{'unitId':_0x28d287[_0x125710(0x470)](),'subUnitId':_0x478806});return;}((_0x28fa5b=_0x28d287[_0x125710(0x2c0)]())==null?void 0x0:_0x28fa5b[_0x125710(0x50d)]())!==_0x24de78&&await this[_0x125710(0x340)][_0x125710(0x52f)](k[_0x125710(0x3ab)]['id'],{'unitId':_0x28d287[_0x125710(0x470)](),'subUnitId':_0x24de78});}async[_0x3a3cba(0x348)](_0x40baba){const _0x38f3e7=_0x3a3cba;let _0x4a076c=0x0;const _0xfa3b9d=await this['_localCacheService'][_0x38f3e7(0x45f)](_0x40baba);return _0xfa3b9d&&(_0xfa3b9d[_0x38f3e7(0x5a0)]||_0xfa3b9d[_0x38f3e7(0x441)]['length']!==0x0)&&(_0x4a076c=_0xfa3b9d[_0x38f3e7(0x5ed)]),_0x4a076c===0x0&&this['_logService']['debug'](_0x38f3e7(0x2ce),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x38f3e7(0x3de)](_0x40baba,_0x4a076c);}async[_0x3a3cba(0x5b5)](_0x1b25d3){const _0x4f34e1=_0x3a3cba;let _0x5c4065=0x0;const _0x919455=await this[_0x4f34e1(0x3e2)][_0x4f34e1(0x45f)](_0x1b25d3);return _0x919455&&(_0x919455['awaitingChangeset']||_0x919455['mutations'][_0x4f34e1(0x16b)]!==0x0)&&(_0x5c4065=_0x919455['rev']),_0x5c4065===0x0&&this[_0x4f34e1(0x590)][_0x4f34e1(0x2ba)](_0x4f34e1(0x2ce),_0x4f34e1(0x4d3)),this[_0x4f34e1(0x213)][_0x4f34e1(0x2cb)](_0x1b25d3,_0x5c4065);}},exports[_0x3a3cba(0x280)]=er([Re(0x0,wt),Re(0x1,a[_0x3a3cba(0x4cc)]),Re(0x2,a[_0x3a3cba(0x2f8)]),Re(0x3,a[_0x3a3cba(0x4b4)](exports[_0x3a3cba(0x158)])),Re(0x4,a[_0x3a3cba(0x4b4)](p['SnapshotService'])),Re(0x5,a[_0x3a3cba(0x229)](Bi[_0x3a3cba(0x220)]))],exports[_0x3a3cba(0x280)]);var tr=Object['defineProperty'],ir=Object[_0x3a3cba(0x42d)],nr=(_0x29e7c8,_0x5184d9,_0x69549f,_0x48caa4)=>{const _0xca85b2=_0x3a3cba;for(var _0x1fdaac=_0x48caa4>0x1?void 0x0:_0x48caa4?ir(_0x5184d9,_0x69549f):_0x5184d9,_0x32bf41=_0x29e7c8[_0xca85b2(0x16b)]-0x1,_0x30c362;_0x32bf41>=0x0;_0x32bf41--)(_0x30c362=_0x29e7c8[_0x32bf41])&&(_0x1fdaac=(_0x48caa4?_0x30c362(_0x5184d9,_0x69549f,_0x1fdaac):_0x30c362(_0x1fdaac))||_0x1fdaac);return _0x48caa4&&_0x1fdaac&&tr(_0x5184d9,_0x69549f,_0x1fdaac),_0x1fdaac;},Vt=(_0x2ed1e1,_0x342b20)=>(_0x340b97,_0x3759b8)=>_0x342b20(_0x340b97,_0x3759b8,_0x2ed1e1);const sr='DEFAULT_FILE_NAME',rr=_0x3a3cba(0x429);let Ge=class extends a[_0x3a3cba(0x28a)]{constructor(_0x58da72,_0x22afba){const _0x3c1f4f=_0x3a3cba;super(),this[_0x3c1f4f(0x206)]=_0x58da72,this[_0x3c1f4f(0x4d1)]=_0x22afba,this['_init']();}[_0x3a3cba(0x4ef)](){const _0x4c5274=_0x3a3cba;this[_0x4c5274(0x5e6)](this[_0x4c5274(0x206)][_0x4c5274(0x37e)][_0x4c5274(0x250)](()=>{const _0x22fc92=_0x4c5274;var _0x20e2c5;const _0x345b20=this[_0x22fc92(0x206)][_0x22fc92(0x46d)]();let _0x5e279c=(_0x20e2c5=this[_0x22fc92(0x4d1)]['getConfig'](sr))!=null?_0x20e2c5:rr;_0x345b20 instanceof a[_0x22fc92(0x1d0)]&&(_0x5e279c=_0x345b20['name']),document[_0x22fc92(0x260)]=_0x5e279c;}));}};Ge=nr([Vt(0x0,a['IUniverInstanceService']),Vt(0x1,a['IConfigService'])],Ge);var or=Object[_0x3a3cba(0x5d1)],ar=Object['getOwnPropertyDescriptor'],cr=(_0x35734,_0x599df3,_0x32f1ac,_0x3247ad)=>{const _0x237e8f=_0x3a3cba;for(var _0x56436d=_0x3247ad>0x1?void 0x0:_0x3247ad?ar(_0x599df3,_0x32f1ac):_0x599df3,_0x52d3af=_0x35734[_0x237e8f(0x16b)]-0x1,_0x457cf4;_0x52d3af>=0x0;_0x52d3af--)(_0x457cf4=_0x35734[_0x52d3af])&&(_0x56436d=(_0x3247ad?_0x457cf4(_0x599df3,_0x32f1ac,_0x56436d):_0x457cf4(_0x56436d))||_0x56436d);return _0x3247ad&&_0x56436d&&or(_0x599df3,_0x32f1ac,_0x56436d),_0x56436d;},ct=(_0x15d57d,_0x2e9455)=>(_0x1aa83f,_0x469b84)=>_0x2e9455(_0x1aa83f,_0x469b84,_0x15d57d);let Ye=class{constructor(_0x42e6d3,_0x1dca49,_0x16f967){const _0x42ab57=_0x3a3cba;this[_0x42ab57(0x4d1)]=_0x42e6d3,this[_0x42ab57(0x586)]=_0x1dca49,this['localeService']=_0x16f967,this['init']();}[_0x3a3cba(0x16a)](){const _0x45d865=_0x3a3cba;this['_httpService'][_0x45d865(0x4e3)]({'priority':0x1,'interceptor':(_0x31c11c,_0x3cd3f6)=>_0x3cd3f6(_0x31c11c)[_0x45d865(0x17b)](A[_0x45d865(0x446)](async _0x30e11e=>{const _0x23b8ac=_0x45d865,_0xc76d40=_0x30e11e;if(_0xc76d40[_0x23b8ac(0x3b1)]===0x191&&window[_0x23b8ac(0x278)](this[_0x23b8ac(0x47e)]['t']('auth.needGotoLoginAlert'))){const _0x21a39e=window[_0x23b8ac(0x2d4)](window[_0x23b8ac(0x5be)][_0x23b8ac(0x13e)]);window['location']['href']=this['_getLoginPath']()+'?url='+_0x21a39e;}return _0xc76d40;}))});}['_getLoginPath'](){const _0x5d6ef6=_0x3a3cba;var _0x5a0e18,_0x2f869e;const _0x44b8aa=this[_0x5d6ef6(0x4d1)]['getConfig'](hi),_0x33bc3d=this[_0x5d6ef6(0x4d1)][_0x5d6ef6(0x3cc)](Q);return(_0x2f869e=(_0x5a0e18=_0x33bc3d==null?void 0x0:_0x33bc3d[_0x5d6ef6(0x170)])!=null?_0x5a0e18:_0x44b8aa)!=null?_0x2f869e:Ji;}};Ye=cr([ct(0x0,a[_0x3a3cba(0x311)]),ct(0x1,a[_0x3a3cba(0x4b4)](z[_0x3a3cba(0x36b)])),ct(0x2,a[_0x3a3cba(0x4b4)](a['LocaleService']))],Ye);var lr=Object[_0x3a3cba(0x5d1)],hr=Object['getOwnPropertyDescriptor'],_r=(_0x37263d,_0x29beed,_0x7d68ed,_0x3cb18c)=>{const _0x2fa566=_0x3a3cba;for(var _0x2b2df9=_0x3cb18c>0x1?void 0x0:_0x3cb18c?hr(_0x29beed,_0x7d68ed):_0x29beed,_0x427317=_0x37263d[_0x2fa566(0x16b)]-0x1,_0x3824f4;_0x427317>=0x0;_0x427317--)(_0x3824f4=_0x37263d[_0x427317])&&(_0x2b2df9=(_0x3cb18c?_0x3824f4(_0x29beed,_0x7d68ed,_0x2b2df9):_0x3824f4(_0x2b2df9))||_0x2b2df9);return _0x3cb18c&&_0x2b2df9&&lr(_0x29beed,_0x7d68ed,_0x2b2df9),_0x2b2df9;},Gt=(_0x221f19,_0x1f42d4)=>(_0x210d71,_0x1fa82e)=>_0x1f42d4(_0x210d71,_0x1fa82e,_0x221f19);const Ut='AUTHZ_URL_KEY',ur=_0x3a3cba(0x21b);exports[_0x3a3cba(0x2fc)]=class extends a[_0x3a3cba(0x28a)]{constructor(_0x4fbad7,_0x54b6d5){const _0x2e5ba6=_0x3a3cba;super(),this['_HTTPService']=_0x4fbad7,this[_0x2e5ba6(0x4d1)]=_0x54b6d5,this[_0x2e5ba6(0x4ae)]();}[_0x3a3cba(0x4ae)](){const _0x49f975=_0x3a3cba,_0x51dae6=this;this[_0x49f975(0x5e6)](this[_0x49f975(0x3d7)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':z[_0x49f975(0x27d)]({'isMatch'(_0x3097ae){const _0x22337a=_0x49f975;var _0x1ead5e;if(_0x3097ae['method']==='POST'&&((_0x1ead5e=_0x3097ae[_0x22337a(0x523)])!=null&&_0x1ead5e[_0x22337a(0x4eb)])){const {objectID:_0x4fcd8d,objectType:_0x313aa2}=_0x3097ae[_0x22337a(0x523)][_0x22337a(0x4eb)]||{};if(!_0x4fcd8d||_0x313aa2===void 0x0)return!0x1;const _0x182beb=_0x51dae6['_getAPIPrefixPath']()+'/'+_0x313aa2+_0x22337a(0x3d2)+_0x4fcd8d+_0x22337a(0x317);if(_0x3097ae['url']===_0x182beb)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x35cf4f){const _0x1b2850=_0x49f975;var _0x19d917;return(_0x19d917=_0x35cf4f['requestParams'])==null?void 0x0:_0x19d917[_0x1b2850(0x4eb)];},'mergeParamsToRequest'(_0x57e8d7,_0x381df4){const _0x279825=_0x49f975,_0x1a28ca=_0x51dae6['_getAPIPrefixPath']()+_0x279825(0x185),_0x1bcb94=_0x57e8d7[_0x279825(0x45c)]((_0x230603,_0xb2d7c2)=>{const _0x6e1d0d=_0x279825,{unitID:_0x42abe1,objectID:_0x49c188,objectType:_0x6386d9,actions:_0x191bf9}=_0xb2d7c2;return _0x230603[_0x42abe1]||(_0x230603[_0x42abe1]={}),_0x230603[_0x42abe1][_0x49c188]||(_0x230603[_0x42abe1][_0x49c188]={'objectID':_0x49c188,'objectType':_0x6386d9,'actions':[]}),_0x230603[_0x42abe1][_0x49c188][_0x6e1d0d(0x369)][_0x6e1d0d(0x31b)](..._0x191bf9),_0x230603;},{}),_0x5c92a4=[];for(const _0x4b5f03 in _0x1bcb94)for(const _0x319e7b in _0x1bcb94[_0x4b5f03]){const {actions:_0x2ad691,objectType:_0x3ba9d3}=_0x1bcb94[_0x4b5f03][_0x319e7b],_0x398e42=[...new Set(_0x2ad691)];_0x5c92a4[_0x279825(0x31b)]({'unitID':_0x4b5f03,'objectID':_0x319e7b,'objectType':_0x3ba9d3,'actions':_0x398e42});}return new z[(_0x279825(0x499))](_0x279825(0x154),_0x1a28ca,{'headers':_0x381df4[_0x279825(0x3df)],'withCredentials':_0x381df4[_0x279825(0x4f4)],'responseType':_0x381df4[_0x279825(0x579)],'body':{'requests':_0x5c92a4}});}},{'distributeResult'(_0x359975,_0x2fb16a){const _0x3201a9=_0x49f975,{objectActions:_0x2558be}=_0x359975;return _0x2fb16a[_0x3201a9(0x53a)](_0x1c7e0d=>{const _0x370bb1=_0x3201a9,{unitID:_0x447b83,objectID:_0x30e27b,actions:_0x1e214f}=_0x1c7e0d,_0xd08f29=_0x2558be[_0x370bb1(0x3cd)](_0x36c038=>_0x36c038[_0x370bb1(0x40b)]===_0x447b83&&_0x36c038[_0x370bb1(0x4f1)]===_0x30e27b),_0xb6e71=_0x1e214f[_0x370bb1(0x53a)](_0x2de4d0=>_0xd08f29==null?void 0x0:_0xd08f29[_0x370bb1(0x369)][_0x370bb1(0x3cd)](_0x24ee33=>_0x24ee33[_0x370bb1(0x218)]===_0x2de4d0))['filter'](_0x3d5988=>!!_0x3d5988);return{'config':_0x1c7e0d,'result':{'actions':_0xb6e71,'error':_0x359975[_0x370bb1(0x2e5)]}};});}})}));}[_0x3a3cba(0x138)](){const _0x21b1d9=_0x3a3cba;var _0x43d32e,_0x5e4ce8;const _0x57c9b7=this['_configService'][_0x21b1d9(0x3cc)](Ut),_0x989520=this['_configService']['getConfig'](Q);return(_0x5e4ce8=(_0x43d32e=_0x989520==null?void 0x0:_0x989520['authzUrl'])!=null?_0x43d32e:_0x57c9b7)!=null?_0x5e4ce8:ur;}async['create'](_0x150b1e){const _0x3d1737=_0x3a3cba,_0x3e81cd=this[_0x3d1737(0x138)]()+'/'+_0x150b1e['objectType']+'/object';return(await this[_0x3d1737(0x3d7)]['post'](_0x3e81cd,{'body':_0x150b1e}))['body'][_0x3d1737(0x4f1)]||'';}async['list'](_0x29de6e){const _0x4987cf=_0x3a3cba,_0x2b1a04=this[_0x4987cf(0x138)]()+_0x4987cf(0x156);return(await this[_0x4987cf(0x3d7)][_0x4987cf(0x4e0)](_0x2b1a04,{'body':_0x29de6e}))[_0x4987cf(0x4eb)]['objects'];}async[_0x3a3cba(0x48d)](_0xc3edef){const _0x58795a=_0x3a3cba,_0x2ef5db=this[_0x58795a(0x138)]()+'/'+_0xc3edef[_0x58795a(0x2cc)]+_0x58795a(0x3d2)+_0xc3edef['objectID'];await this[_0x58795a(0x3d7)][_0x58795a(0x1fc)](_0x2ef5db,{'body':_0xc3edef});}async[_0x3a3cba(0x309)](_0x511091){const _0x145a32=_0x3a3cba,_0x22a2a8=this[_0x145a32(0x138)]()+'/'+_0x511091['objectType']+'/object/'+_0x511091[_0x145a32(0x4f1)]+_0x145a32(0x317);return(await this['_HTTPService'][_0x145a32(0x4e0)](_0x22a2a8,{'body':_0x511091}))[_0x145a32(0x4eb)][_0x145a32(0x369)];}async[_0x3a3cba(0x26d)](_0x3e7fc5){const _0x38c607=_0x3a3cba,_0x5e031c=this[_0x38c607(0x138)]()+'/-/object/-/batch_allowed';return(await this[_0x38c607(0x3d7)]['post'](_0x5e031c,{'body':{'requests':_0x3e7fc5}}))[_0x38c607(0x4eb)][_0x38c607(0x195)];}async['listRoles'](_0x1e920a){const _0x44764c=_0x3a3cba,_0x13718b=this['_getAPIPrefixPath']()+'/'+_0x1e920a[_0x44764c(0x2cc)]+'/role',_0x344837=await this['_HTTPService'][_0x44764c(0x4e0)](_0x13718b,{'body':_0x1e920a});return{'roles':_0x344837[_0x44764c(0x4eb)][_0x44764c(0x1fe)],'actions':_0x344837[_0x44764c(0x4eb)][_0x44764c(0x369)]};}async[_0x3a3cba(0x45e)](_0x115b65){const _0x205104=_0x3a3cba,_0x21efa7=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x205104(0x3d7)][_0x205104(0x26b)](_0x21efa7,{'params':{'collaboratorID':_0x115b65[_0x205104(0x540)],'objectID':_0x115b65[_0x205104(0x4f1)],'unitID':_0x115b65[_0x205104(0x40b)]}});}async[_0x3a3cba(0x2ee)](_0xbee5af){const _0xfdc17d=_0x3a3cba,_0x4a5876=this['_getAPIPrefixPath']()+_0xfdc17d(0x378);await this[_0xfdc17d(0x3d7)][_0xfdc17d(0x2a2)](_0x4a5876,{'body':_0xbee5af});}async[_0x3a3cba(0x1e8)](_0x281447){const _0xceacf1=_0x3a3cba,_0xeb701a=this[_0xceacf1(0x138)]()+'/collaborator';await this[_0xceacf1(0x3d7)][_0xceacf1(0x4e0)](_0xeb701a,{'body':_0x281447});}async[_0x3a3cba(0x1db)](_0x72329e){const _0x415ec2=_0x3a3cba,_0x17e7b7=this[_0x415ec2(0x138)]()+_0x415ec2(0x378);return(await this[_0x415ec2(0x3d7)][_0x415ec2(0x449)](_0x17e7b7,{'params':{'objectID':_0x72329e['objectID'],'unitID':_0x72329e['unitID']}}))[_0x415ec2(0x4eb)]['collaborators'];}async[_0x3a3cba(0x4fe)](_0x29f22e){const _0x50b13b=_0x3a3cba,_0x4e1541=this['_getAPIPrefixPath']()+_0x50b13b(0x378);await this[_0x50b13b(0x3d7)][_0x50b13b(0x1fc)](_0x4e1541,{'body':_0x29f22e});}},exports['AuthzIoHttpService']=_r([Gt(0x0,a[_0x3a3cba(0x4b4)](z[_0x3a3cba(0x36b)])),Gt(0x1,a['Inject'](a[_0x3a3cba(0x311)]))],exports[_0x3a3cba(0x2fc)]);var Di={'exports':{}};function dr(_0xc03937){const _0x325415=_0x3a3cba;throw new Error(_0x325415(0x513)+_0xc03937+_0x325415(0x3b8));}var lt={'exports':{}},Yt;function oe(){const _0x37a7ba=_0x3a3cba;return Yt||(Yt=0x1,function(_0x19ac36,_0x23c311){(function(_0x291f4a,_0x3a772d){const _0x4579b3=_0x131b;_0x19ac36[_0x4579b3(0x5e4)]=_0x3a772d();}(Z,function(){var _0x566c19=_0x566c19||function(_0xcc201f,_0x56ab62){const _0x4133bc=_0x131b;var _0x448c77;if(typeof window<'u'&&window[_0x4133bc(0x54a)]&&(_0x448c77=window[_0x4133bc(0x54a)]),typeof self<'u'&&self[_0x4133bc(0x54a)]&&(_0x448c77=self[_0x4133bc(0x54a)]),typeof globalThis<'u'&&globalThis[_0x4133bc(0x54a)]&&(_0x448c77=globalThis[_0x4133bc(0x54a)]),!_0x448c77&&typeof window<'u'&&window[_0x4133bc(0x4bb)]&&(_0x448c77=window[_0x4133bc(0x4bb)]),!_0x448c77&&typeof Z<'u'&&Z[_0x4133bc(0x54a)]&&(_0x448c77=Z[_0x4133bc(0x54a)]),!_0x448c77&&typeof dr==_0x4133bc(0x1d8))try{_0x448c77=require(_0x4133bc(0x54a));}catch{}var _0x6cf2dd=function(){const _0x116f61=_0x4133bc;if(_0x448c77){if(typeof _0x448c77[_0x116f61(0x547)]==_0x116f61(0x1d8))try{return _0x448c77[_0x116f61(0x547)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x448c77[_0x116f61(0x589)]==_0x116f61(0x1d8))try{return _0x448c77[_0x116f61(0x589)](0x4)['readInt32LE']();}catch{}}throw new Error(_0x116f61(0x5d3));},_0xbb4280=Object['create']||(function(){function _0x16443d(){}return function(_0x3914c0){const _0x53cfdf=_0x131b;var _0x381931;return _0x16443d['prototype']=_0x3914c0,_0x381931=new _0x16443d(),_0x16443d[_0x53cfdf(0x2d8)]=null,_0x381931;};}()),_0xc1535b={},_0x5146d0=_0xc1535b[_0x4133bc(0x537)]={},_0x530102=_0x5146d0[_0x4133bc(0x409)]=(function(){return{'extend':function(_0x3f0a28){const _0x17bdb3=_0x131b;var _0x5f138e=_0xbb4280(this);return _0x3f0a28&&_0x5f138e['mixIn'](_0x3f0a28),(!_0x5f138e[_0x17bdb3(0x238)]('init')||this[_0x17bdb3(0x16a)]===_0x5f138e[_0x17bdb3(0x16a)])&&(_0x5f138e[_0x17bdb3(0x16a)]=function(){const _0x2b0653=_0x17bdb3;_0x5f138e[_0x2b0653(0x1f1)][_0x2b0653(0x16a)][_0x2b0653(0x49e)](this,arguments);}),_0x5f138e[_0x17bdb3(0x16a)][_0x17bdb3(0x2d8)]=_0x5f138e,_0x5f138e['$super']=this,_0x5f138e;},'create':function(){const _0x575602=_0x131b;var _0x1a5529=this[_0x575602(0x189)]();return _0x1a5529[_0x575602(0x16a)][_0x575602(0x49e)](_0x1a5529,arguments),_0x1a5529;},'init':function(){},'mixIn':function(_0x599e6f){const _0x26f8ba=_0x131b;for(var _0xf309be in _0x599e6f)_0x599e6f[_0x26f8ba(0x238)](_0xf309be)&&(this[_0xf309be]=_0x599e6f[_0xf309be]);_0x599e6f[_0x26f8ba(0x238)]('toString')&&(this['toString']=_0x599e6f[_0x26f8ba(0x2c4)]);},'clone':function(){return this['init']['prototype']['extend'](this);}};}()),_0x466683=_0x5146d0['WordArray']=_0x530102[_0x4133bc(0x189)]({'init':function(_0x5f09ba,_0x5111f6){const _0x5f2ef1=_0x4133bc;_0x5f09ba=this[_0x5f2ef1(0x34f)]=_0x5f09ba||[],_0x5111f6!=_0x56ab62?this[_0x5f2ef1(0x308)]=_0x5111f6:this['sigBytes']=_0x5f09ba[_0x5f2ef1(0x16b)]*0x4;},'toString':function(_0x3b5974){const _0x18d154=_0x4133bc;return(_0x3b5974||_0x2f280b)[_0x18d154(0x405)](this);},'concat':function(_0xca2a00){const _0x34eb97=_0x4133bc;var _0x4cac13=this[_0x34eb97(0x34f)],_0x4e6bc9=_0xca2a00['words'],_0x3bc88c=this[_0x34eb97(0x308)],_0x2b9d54=_0xca2a00['sigBytes'];if(this[_0x34eb97(0x2c1)](),_0x3bc88c%0x4)for(var _0x37cb8c=0x0;_0x37cb8c<_0x2b9d54;_0x37cb8c++){var _0x200a51=_0x4e6bc9[_0x37cb8c>>>0x2]>>>0x18-_0x37cb8c%0x4*0x8&0xff;_0x4cac13[_0x3bc88c+_0x37cb8c>>>0x2]|=_0x200a51<<0x18-(_0x3bc88c+_0x37cb8c)%0x4*0x8;}else{for(var _0x5491aa=0x0;_0x5491aa<_0x2b9d54;_0x5491aa+=0x4)_0x4cac13[_0x3bc88c+_0x5491aa>>>0x2]=_0x4e6bc9[_0x5491aa>>>0x2];}return this[_0x34eb97(0x308)]+=_0x2b9d54,this;},'clamp':function(){const _0x25da22=_0x4133bc;var _0x7edd54=this['words'],_0x3c7b68=this['sigBytes'];_0x7edd54[_0x3c7b68>>>0x2]&=0xffffffff<<0x20-_0x3c7b68%0x4*0x8,_0x7edd54[_0x25da22(0x16b)]=_0xcc201f['ceil'](_0x3c7b68/0x4);},'clone':function(){const _0x313332=_0x4133bc;var _0x3f465f=_0x530102[_0x313332(0x1f6)][_0x313332(0x4c9)](this);return _0x3f465f[_0x313332(0x34f)]=this[_0x313332(0x34f)]['slice'](0x0),_0x3f465f;},'random':function(_0x3ff619){const _0x2ef3e3=_0x4133bc;for(var _0xa7b76b=[],_0x191733=0x0;_0x191733<_0x3ff619;_0x191733+=0x4)_0xa7b76b[_0x2ef3e3(0x31b)](_0x6cf2dd());return new _0x466683[(_0x2ef3e3(0x16a))](_0xa7b76b,_0x3ff619);}}),_0x165487=_0xc1535b['enc']={},_0x2f280b=_0x165487[_0x4133bc(0x217)]={'stringify':function(_0x1b6377){const _0x495fe3=_0x4133bc;for(var _0x17de69=_0x1b6377[_0x495fe3(0x34f)],_0x547693=_0x1b6377[_0x495fe3(0x308)],_0x3c943c=[],_0x5f121f=0x0;_0x5f121f<_0x547693;_0x5f121f++){var _0xa4091e=_0x17de69[_0x5f121f>>>0x2]>>>0x18-_0x5f121f%0x4*0x8&0xff;_0x3c943c[_0x495fe3(0x31b)]((_0xa4091e>>>0x4)[_0x495fe3(0x2c4)](0x10)),_0x3c943c[_0x495fe3(0x31b)]((_0xa4091e&0xf)[_0x495fe3(0x2c4)](0x10));}return _0x3c943c['join']('');},'parse':function(_0x38af82){const _0x3d5850=_0x4133bc;for(var _0x3edbf1=_0x38af82[_0x3d5850(0x16b)],_0x254a29=[],_0x49d388=0x0;_0x49d388<_0x3edbf1;_0x49d388+=0x2)_0x254a29[_0x49d388>>>0x3]|=parseInt(_0x38af82['substr'](_0x49d388,0x2),0x10)<<0x18-_0x49d388%0x8*0x4;return new _0x466683['init'](_0x254a29,_0x3edbf1/0x2);}},_0xc8961=_0x165487[_0x4133bc(0x4e2)]={'stringify':function(_0x1d735d){const _0x3db790=_0x4133bc;for(var _0xbe00da=_0x1d735d[_0x3db790(0x34f)],_0x54bb12=_0x1d735d[_0x3db790(0x308)],_0x5e0e63=[],_0x4135be=0x0;_0x4135be<_0x54bb12;_0x4135be++){var _0x192913=_0xbe00da[_0x4135be>>>0x2]>>>0x18-_0x4135be%0x4*0x8&0xff;_0x5e0e63[_0x3db790(0x31b)](String['fromCharCode'](_0x192913));}return _0x5e0e63[_0x3db790(0x4ed)]('');},'parse':function(_0x14a26c){const _0x63b0d4=_0x4133bc;for(var _0x27646a=_0x14a26c[_0x63b0d4(0x16b)],_0x370dd7=[],_0x3dfff8=0x0;_0x3dfff8<_0x27646a;_0x3dfff8++)_0x370dd7[_0x3dfff8>>>0x2]|=(_0x14a26c['charCodeAt'](_0x3dfff8)&0xff)<<0x18-_0x3dfff8%0x4*0x8;return new _0x466683[(_0x63b0d4(0x16a))](_0x370dd7,_0x27646a);}},_0x4f6ff3=_0x165487[_0x4133bc(0x3ef)]={'stringify':function(_0x485294){const _0x3ed037=_0x4133bc;try{return decodeURIComponent(escape(_0xc8961[_0x3ed037(0x405)](_0x485294)));}catch{throw new Error(_0x3ed037(0x255));}},'parse':function(_0x1e150b){const _0x3df963=_0x4133bc;return _0xc8961[_0x3df963(0x526)](unescape(encodeURIComponent(_0x1e150b)));}},_0x2b348c=_0x5146d0[_0x4133bc(0x2fe)]=_0x530102[_0x4133bc(0x189)]({'reset':function(){const _0x1953e0=_0x4133bc;this[_0x1953e0(0x40c)]=new _0x466683[(_0x1953e0(0x16a))](),this[_0x1953e0(0x161)]=0x0;},'_append':function(_0x3e8b6f){const _0x44a594=_0x4133bc;typeof _0x3e8b6f==_0x44a594(0x554)&&(_0x3e8b6f=_0x4f6ff3[_0x44a594(0x526)](_0x3e8b6f)),this[_0x44a594(0x40c)][_0x44a594(0x447)](_0x3e8b6f),this[_0x44a594(0x161)]+=_0x3e8b6f[_0x44a594(0x308)];},'_process':function(_0x3b5864){const _0x56a40d=_0x4133bc;var _0x4b9878,_0x2b511f=this[_0x56a40d(0x40c)],_0x1f0c93=_0x2b511f['words'],_0x2edabe=_0x2b511f['sigBytes'],_0x4ed01a=this['blockSize'],_0x4b3601=_0x4ed01a*0x4,_0x1c6548=_0x2edabe/_0x4b3601;_0x3b5864?_0x1c6548=_0xcc201f['ceil'](_0x1c6548):_0x1c6548=_0xcc201f['max']((_0x1c6548|0x0)-this['_minBufferSize'],0x0);var _0x54b3d1=_0x1c6548*_0x4ed01a,_0x48e4ae=_0xcc201f[_0x56a40d(0x15c)](_0x54b3d1*0x4,_0x2edabe);if(_0x54b3d1){for(var _0x565879=0x0;_0x565879<_0x54b3d1;_0x565879+=_0x4ed01a)this[_0x56a40d(0x2c6)](_0x1f0c93,_0x565879);_0x4b9878=_0x1f0c93[_0x56a40d(0x3c2)](0x0,_0x54b3d1),_0x2b511f[_0x56a40d(0x308)]-=_0x48e4ae;}return new _0x466683[(_0x56a40d(0x16a))](_0x4b9878,_0x48e4ae);},'clone':function(){const _0x4b8bd8=_0x4133bc;var _0xe5514f=_0x530102[_0x4b8bd8(0x1f6)][_0x4b8bd8(0x4c9)](this);return _0xe5514f[_0x4b8bd8(0x40c)]=this[_0x4b8bd8(0x40c)]['clone'](),_0xe5514f;},'_minBufferSize':0x0});_0x5146d0[_0x4133bc(0x3b5)]=_0x2b348c[_0x4133bc(0x189)]({'cfg':_0x530102[_0x4133bc(0x189)](),'init':function(_0x4c1b85){const _0x3edae2=_0x4133bc;this[_0x3edae2(0x31e)]=this['cfg'][_0x3edae2(0x189)](_0x4c1b85),this['reset']();},'reset':function(){const _0x69c160=_0x4133bc;_0x2b348c[_0x69c160(0x5c0)]['call'](this),this['_doReset']();},'update':function(_0xc635da){const _0x495a55=_0x4133bc;return this[_0x495a55(0x18e)](_0xc635da),this[_0x495a55(0x3e3)](),this;},'finalize':function(_0x26c68f){const _0x49642d=_0x4133bc;_0x26c68f&&this[_0x49642d(0x18e)](_0x26c68f);var _0x2f2bb2=this['_doFinalize']();return _0x2f2bb2;},'blockSize':0x10,'_createHelper':function(_0x37560b){return function(_0x5024fa,_0x10eeca){const _0x1dc590=_0x131b;return new _0x37560b[(_0x1dc590(0x16a))](_0x10eeca)[_0x1dc590(0x4c0)](_0x5024fa);};},'_createHmacHelper':function(_0x1d05f0){return function(_0x51c72e,_0x984df3){const _0x203c7c=_0x131b;return new _0x2cc415['HMAC'][(_0x203c7c(0x16a))](_0x1d05f0,_0x984df3)[_0x203c7c(0x4c0)](_0x51c72e);};}});var _0x2cc415=_0xc1535b['algo']={};return _0xc1535b;}(Math);return _0x566c19;}));}(lt)),lt[_0x37a7ba(0x5e4)];}var ht={'exports':{}},Kt;function Pi(){const _0x2c691a=_0x3a3cba;return Kt||(Kt=0x1,function(_0x58f948,_0x1e00d7){(function(_0x3f8685,_0x274dc3){const _0x22b963=_0x131b;_0x58f948[_0x22b963(0x5e4)]=_0x274dc3(oe());}(Z,function(_0xcab8d6){const _0x5afb50=_0x131b;return(function(){const _0x9c2c3a=_0x131b;var _0x4d7242=_0xcab8d6,_0x5f3de0=_0x4d7242[_0x9c2c3a(0x537)],_0x4f604c=_0x5f3de0['WordArray'],_0x488e7b=_0x4d7242[_0x9c2c3a(0x3d6)];_0x488e7b[_0x9c2c3a(0x5ef)]={'stringify':function(_0x48b77b){const _0x11fb2c=_0x9c2c3a;var _0x26cb33=_0x48b77b['words'],_0x303f47=_0x48b77b[_0x11fb2c(0x308)],_0x148630=this[_0x11fb2c(0x2ca)];_0x48b77b[_0x11fb2c(0x2c1)]();for(var _0x4e957f=[],_0x3e957b=0x0;_0x3e957b<_0x303f47;_0x3e957b+=0x3)for(var _0x3b452c=_0x26cb33[_0x3e957b>>>0x2]>>>0x18-_0x3e957b%0x4*0x8&0xff,_0x48e226=_0x26cb33[_0x3e957b+0x1>>>0x2]>>>0x18-(_0x3e957b+0x1)%0x4*0x8&0xff,_0x319061=_0x26cb33[_0x3e957b+0x2>>>0x2]>>>0x18-(_0x3e957b+0x2)%0x4*0x8&0xff,_0x3046db=_0x3b452c<<0x10|_0x48e226<<0x8|_0x319061,_0x2e1415=0x0;_0x2e1415<0x4&&_0x3e957b+_0x2e1415*0.75<_0x303f47;_0x2e1415++)_0x4e957f[_0x11fb2c(0x31b)](_0x148630['charAt'](_0x3046db>>>0x6*(0x3-_0x2e1415)&0x3f));var _0x3912e5=_0x148630['charAt'](0x40);if(_0x3912e5){for(;_0x4e957f['length']%0x4;)_0x4e957f[_0x11fb2c(0x31b)](_0x3912e5);}return _0x4e957f[_0x11fb2c(0x4ed)]('');},'parse':function(_0x4a641a){const _0x475b01=_0x9c2c3a;var _0x55da96=_0x4a641a[_0x475b01(0x16b)],_0x46c8d0=this[_0x475b01(0x2ca)],_0x257006=this[_0x475b01(0x48c)];if(!_0x257006){_0x257006=this[_0x475b01(0x48c)]=[];for(var _0x5dc0b7=0x0;_0x5dc0b7<_0x46c8d0[_0x475b01(0x16b)];_0x5dc0b7++)_0x257006[_0x46c8d0[_0x475b01(0x29a)](_0x5dc0b7)]=_0x5dc0b7;}var _0x3b7b39=_0x46c8d0[_0x475b01(0x4f5)](0x40);if(_0x3b7b39){var _0x581d23=_0x4a641a[_0x475b01(0x12d)](_0x3b7b39);_0x581d23!==-0x1&&(_0x55da96=_0x581d23);}return _0x4aae56(_0x4a641a,_0x55da96,_0x257006);},'_map':_0x9c2c3a(0x495)};function _0x4aae56(_0x146011,_0x436bb3,_0x35cbdd){const _0x147cde=_0x9c2c3a;for(var _0x27b532=[],_0xaada9e=0x0,_0x1eb7c0=0x0;_0x1eb7c0<_0x436bb3;_0x1eb7c0++)if(_0x1eb7c0%0x4){var _0x537928=_0x35cbdd[_0x146011[_0x147cde(0x29a)](_0x1eb7c0-0x1)]<<_0x1eb7c0%0x4*0x2,_0x70606f=_0x35cbdd[_0x146011['charCodeAt'](_0x1eb7c0)]>>>0x6-_0x1eb7c0%0x4*0x2,_0x258909=_0x537928|_0x70606f;_0x27b532[_0xaada9e>>>0x2]|=_0x258909<<0x18-_0xaada9e%0x4*0x8,_0xaada9e++;}return _0x4f604c[_0x147cde(0x173)](_0x27b532,_0xaada9e);}}()),_0xcab8d6[_0x5afb50(0x3d6)][_0x5afb50(0x5ef)];}));}(ht)),ht[_0x2c691a(0x5e4)];}var _t={'exports':{}},qt;function fr(){const _0x204198=_0x3a3cba;return qt||(qt=0x1,function(_0x4e1506,_0x355e0c){(function(_0x34c872,_0x5b917f){const _0x50a3c8=_0x131b;_0x4e1506[_0x50a3c8(0x5e4)]=_0x5b917f(oe());}(Z,function(_0x4b8f4e){const _0x226dc4=_0x131b;return function(_0xb5e668){const _0x437e9d=_0x131b;var _0x2a875f=_0x4b8f4e,_0x466fac=_0x2a875f[_0x437e9d(0x537)],_0x5f48b2=_0x466fac[_0x437e9d(0x349)],_0x91172e=_0x466fac[_0x437e9d(0x3b5)],_0xc2e49a=_0x2a875f['algo'],_0x54acc6=[];(function(){const _0xc159bf=_0x437e9d;for(var _0x1d72ee=0x0;_0x1d72ee<0x40;_0x1d72ee++)_0x54acc6[_0x1d72ee]=_0xb5e668['abs'](_0xb5e668[_0xc159bf(0x38f)](_0x1d72ee+0x1))*0x100000000|0x0;}());var _0x188429=_0xc2e49a['MD5']=_0x91172e[_0x437e9d(0x189)]({'_doReset':function(){const _0x5ee91c=_0x437e9d;this['_hash']=new _0x5f48b2[(_0x5ee91c(0x16a))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x1f77fe,_0x3a5c9c){const _0x497be1=_0x437e9d;for(var _0x14ebba=0x0;_0x14ebba<0x10;_0x14ebba++){var _0x5e0980=_0x3a5c9c+_0x14ebba,_0x19a9ed=_0x1f77fe[_0x5e0980];_0x1f77fe[_0x5e0980]=(_0x19a9ed<<0x8|_0x19a9ed>>>0x18)&0xff00ff|(_0x19a9ed<<0x18|_0x19a9ed>>>0x8)&0xff00ff00;}var _0x29e584=this[_0x497be1(0x371)][_0x497be1(0x34f)],_0x1d5579=_0x1f77fe[_0x3a5c9c+0x0],_0x29768c=_0x1f77fe[_0x3a5c9c+0x1],_0x3529d9=_0x1f77fe[_0x3a5c9c+0x2],_0x5f1cf8=_0x1f77fe[_0x3a5c9c+0x3],_0x3dcf7d=_0x1f77fe[_0x3a5c9c+0x4],_0x49afc6=_0x1f77fe[_0x3a5c9c+0x5],_0x3fc340=_0x1f77fe[_0x3a5c9c+0x6],_0x179bad=_0x1f77fe[_0x3a5c9c+0x7],_0x212cd5=_0x1f77fe[_0x3a5c9c+0x8],_0x41f12c=_0x1f77fe[_0x3a5c9c+0x9],_0x4fbcfd=_0x1f77fe[_0x3a5c9c+0xa],_0xbf3e49=_0x1f77fe[_0x3a5c9c+0xb],_0x44304d=_0x1f77fe[_0x3a5c9c+0xc],_0x2b5427=_0x1f77fe[_0x3a5c9c+0xd],_0x13d38a=_0x1f77fe[_0x3a5c9c+0xe],_0x53e5c3=_0x1f77fe[_0x3a5c9c+0xf],_0x257e57=_0x29e584[0x0],_0x2c415a=_0x29e584[0x1],_0x4734da=_0x29e584[0x2],_0x448a5b=_0x29e584[0x3];_0x257e57=_0x5ab02f(_0x257e57,_0x2c415a,_0x4734da,_0x448a5b,_0x1d5579,0x7,_0x54acc6[0x0]),_0x448a5b=_0x5ab02f(_0x448a5b,_0x257e57,_0x2c415a,_0x4734da,_0x29768c,0xc,_0x54acc6[0x1]),_0x4734da=_0x5ab02f(_0x4734da,_0x448a5b,_0x257e57,_0x2c415a,_0x3529d9,0x11,_0x54acc6[0x2]),_0x2c415a=_0x5ab02f(_0x2c415a,_0x4734da,_0x448a5b,_0x257e57,_0x5f1cf8,0x16,_0x54acc6[0x3]),_0x257e57=_0x5ab02f(_0x257e57,_0x2c415a,_0x4734da,_0x448a5b,_0x3dcf7d,0x7,_0x54acc6[0x4]),_0x448a5b=_0x5ab02f(_0x448a5b,_0x257e57,_0x2c415a,_0x4734da,_0x49afc6,0xc,_0x54acc6[0x5]),_0x4734da=_0x5ab02f(_0x4734da,_0x448a5b,_0x257e57,_0x2c415a,_0x3fc340,0x11,_0x54acc6[0x6]),_0x2c415a=_0x5ab02f(_0x2c415a,_0x4734da,_0x448a5b,_0x257e57,_0x179bad,0x16,_0x54acc6[0x7]),_0x257e57=_0x5ab02f(_0x257e57,_0x2c415a,_0x4734da,_0x448a5b,_0x212cd5,0x7,_0x54acc6[0x8]),_0x448a5b=_0x5ab02f(_0x448a5b,_0x257e57,_0x2c415a,_0x4734da,_0x41f12c,0xc,_0x54acc6[0x9]),_0x4734da=_0x5ab02f(_0x4734da,_0x448a5b,_0x257e57,_0x2c415a,_0x4fbcfd,0x11,_0x54acc6[0xa]),_0x2c415a=_0x5ab02f(_0x2c415a,_0x4734da,_0x448a5b,_0x257e57,_0xbf3e49,0x16,_0x54acc6[0xb]),_0x257e57=_0x5ab02f(_0x257e57,_0x2c415a,_0x4734da,_0x448a5b,_0x44304d,0x7,_0x54acc6[0xc]),_0x448a5b=_0x5ab02f(_0x448a5b,_0x257e57,_0x2c415a,_0x4734da,_0x2b5427,0xc,_0x54acc6[0xd]),_0x4734da=_0x5ab02f(_0x4734da,_0x448a5b,_0x257e57,_0x2c415a,_0x13d38a,0x11,_0x54acc6[0xe]),_0x2c415a=_0x5ab02f(_0x2c415a,_0x4734da,_0x448a5b,_0x257e57,_0x53e5c3,0x16,_0x54acc6[0xf]),_0x257e57=_0x252493(_0x257e57,_0x2c415a,_0x4734da,_0x448a5b,_0x29768c,0x5,_0x54acc6[0x10]),_0x448a5b=_0x252493(_0x448a5b,_0x257e57,_0x2c415a,_0x4734da,_0x3fc340,0x9,_0x54acc6[0x11]),_0x4734da=_0x252493(_0x4734da,_0x448a5b,_0x257e57,_0x2c415a,_0xbf3e49,0xe,_0x54acc6[0x12]),_0x2c415a=_0x252493(_0x2c415a,_0x4734da,_0x448a5b,_0x257e57,_0x1d5579,0x14,_0x54acc6[0x13]),_0x257e57=_0x252493(_0x257e57,_0x2c415a,_0x4734da,_0x448a5b,_0x49afc6,0x5,_0x54acc6[0x14]),_0x448a5b=_0x252493(_0x448a5b,_0x257e57,_0x2c415a,_0x4734da,_0x4fbcfd,0x9,_0x54acc6[0x15]),_0x4734da=_0x252493(_0x4734da,_0x448a5b,_0x257e57,_0x2c415a,_0x53e5c3,0xe,_0x54acc6[0x16]),_0x2c415a=_0x252493(_0x2c415a,_0x4734da,_0x448a5b,_0x257e57,_0x3dcf7d,0x14,_0x54acc6[0x17]),_0x257e57=_0x252493(_0x257e57,_0x2c415a,_0x4734da,_0x448a5b,_0x41f12c,0x5,_0x54acc6[0x18]),_0x448a5b=_0x252493(_0x448a5b,_0x257e57,_0x2c415a,_0x4734da,_0x13d38a,0x9,_0x54acc6[0x19]),_0x4734da=_0x252493(_0x4734da,_0x448a5b,_0x257e57,_0x2c415a,_0x5f1cf8,0xe,_0x54acc6[0x1a]),_0x2c415a=_0x252493(_0x2c415a,_0x4734da,_0x448a5b,_0x257e57,_0x212cd5,0x14,_0x54acc6[0x1b]),_0x257e57=_0x252493(_0x257e57,_0x2c415a,_0x4734da,_0x448a5b,_0x2b5427,0x5,_0x54acc6[0x1c]),_0x448a5b=_0x252493(_0x448a5b,_0x257e57,_0x2c415a,_0x4734da,_0x3529d9,0x9,_0x54acc6[0x1d]),_0x4734da=_0x252493(_0x4734da,_0x448a5b,_0x257e57,_0x2c415a,_0x179bad,0xe,_0x54acc6[0x1e]),_0x2c415a=_0x252493(_0x2c415a,_0x4734da,_0x448a5b,_0x257e57,_0x44304d,0x14,_0x54acc6[0x1f]),_0x257e57=_0x47b754(_0x257e57,_0x2c415a,_0x4734da,_0x448a5b,_0x49afc6,0x4,_0x54acc6[0x20]),_0x448a5b=_0x47b754(_0x448a5b,_0x257e57,_0x2c415a,_0x4734da,_0x212cd5,0xb,_0x54acc6[0x21]),_0x4734da=_0x47b754(_0x4734da,_0x448a5b,_0x257e57,_0x2c415a,_0xbf3e49,0x10,_0x54acc6[0x22]),_0x2c415a=_0x47b754(_0x2c415a,_0x4734da,_0x448a5b,_0x257e57,_0x13d38a,0x17,_0x54acc6[0x23]),_0x257e57=_0x47b754(_0x257e57,_0x2c415a,_0x4734da,_0x448a5b,_0x29768c,0x4,_0x54acc6[0x24]),_0x448a5b=_0x47b754(_0x448a5b,_0x257e57,_0x2c415a,_0x4734da,_0x3dcf7d,0xb,_0x54acc6[0x25]),_0x4734da=_0x47b754(_0x4734da,_0x448a5b,_0x257e57,_0x2c415a,_0x179bad,0x10,_0x54acc6[0x26]),_0x2c415a=_0x47b754(_0x2c415a,_0x4734da,_0x448a5b,_0x257e57,_0x4fbcfd,0x17,_0x54acc6[0x27]),_0x257e57=_0x47b754(_0x257e57,_0x2c415a,_0x4734da,_0x448a5b,_0x2b5427,0x4,_0x54acc6[0x28]),_0x448a5b=_0x47b754(_0x448a5b,_0x257e57,_0x2c415a,_0x4734da,_0x1d5579,0xb,_0x54acc6[0x29]),_0x4734da=_0x47b754(_0x4734da,_0x448a5b,_0x257e57,_0x2c415a,_0x5f1cf8,0x10,_0x54acc6[0x2a]),_0x2c415a=_0x47b754(_0x2c415a,_0x4734da,_0x448a5b,_0x257e57,_0x3fc340,0x17,_0x54acc6[0x2b]),_0x257e57=_0x47b754(_0x257e57,_0x2c415a,_0x4734da,_0x448a5b,_0x41f12c,0x4,_0x54acc6[0x2c]),_0x448a5b=_0x47b754(_0x448a5b,_0x257e57,_0x2c415a,_0x4734da,_0x44304d,0xb,_0x54acc6[0x2d]),_0x4734da=_0x47b754(_0x4734da,_0x448a5b,_0x257e57,_0x2c415a,_0x53e5c3,0x10,_0x54acc6[0x2e]),_0x2c415a=_0x47b754(_0x2c415a,_0x4734da,_0x448a5b,_0x257e57,_0x3529d9,0x17,_0x54acc6[0x2f]),_0x257e57=_0xbfc06c(_0x257e57,_0x2c415a,_0x4734da,_0x448a5b,_0x1d5579,0x6,_0x54acc6[0x30]),_0x448a5b=_0xbfc06c(_0x448a5b,_0x257e57,_0x2c415a,_0x4734da,_0x179bad,0xa,_0x54acc6[0x31]),_0x4734da=_0xbfc06c(_0x4734da,_0x448a5b,_0x257e57,_0x2c415a,_0x13d38a,0xf,_0x54acc6[0x32]),_0x2c415a=_0xbfc06c(_0x2c415a,_0x4734da,_0x448a5b,_0x257e57,_0x49afc6,0x15,_0x54acc6[0x33]),_0x257e57=_0xbfc06c(_0x257e57,_0x2c415a,_0x4734da,_0x448a5b,_0x44304d,0x6,_0x54acc6[0x34]),_0x448a5b=_0xbfc06c(_0x448a5b,_0x257e57,_0x2c415a,_0x4734da,_0x5f1cf8,0xa,_0x54acc6[0x35]),_0x4734da=_0xbfc06c(_0x4734da,_0x448a5b,_0x257e57,_0x2c415a,_0x4fbcfd,0xf,_0x54acc6[0x36]),_0x2c415a=_0xbfc06c(_0x2c415a,_0x4734da,_0x448a5b,_0x257e57,_0x29768c,0x15,_0x54acc6[0x37]),_0x257e57=_0xbfc06c(_0x257e57,_0x2c415a,_0x4734da,_0x448a5b,_0x212cd5,0x6,_0x54acc6[0x38]),_0x448a5b=_0xbfc06c(_0x448a5b,_0x257e57,_0x2c415a,_0x4734da,_0x53e5c3,0xa,_0x54acc6[0x39]),_0x4734da=_0xbfc06c(_0x4734da,_0x448a5b,_0x257e57,_0x2c415a,_0x3fc340,0xf,_0x54acc6[0x3a]),_0x2c415a=_0xbfc06c(_0x2c415a,_0x4734da,_0x448a5b,_0x257e57,_0x2b5427,0x15,_0x54acc6[0x3b]),_0x257e57=_0xbfc06c(_0x257e57,_0x2c415a,_0x4734da,_0x448a5b,_0x3dcf7d,0x6,_0x54acc6[0x3c]),_0x448a5b=_0xbfc06c(_0x448a5b,_0x257e57,_0x2c415a,_0x4734da,_0xbf3e49,0xa,_0x54acc6[0x3d]),_0x4734da=_0xbfc06c(_0x4734da,_0x448a5b,_0x257e57,_0x2c415a,_0x3529d9,0xf,_0x54acc6[0x3e]),_0x2c415a=_0xbfc06c(_0x2c415a,_0x4734da,_0x448a5b,_0x257e57,_0x41f12c,0x15,_0x54acc6[0x3f]),_0x29e584[0x0]=_0x29e584[0x0]+_0x257e57|0x0,_0x29e584[0x1]=_0x29e584[0x1]+_0x2c415a|0x0,_0x29e584[0x2]=_0x29e584[0x2]+_0x4734da|0x0,_0x29e584[0x3]=_0x29e584[0x3]+_0x448a5b|0x0;},'_doFinalize':function(){const _0x56b900=_0x437e9d;var _0x17b160=this[_0x56b900(0x40c)],_0x2ec4e9=_0x17b160[_0x56b900(0x34f)],_0x24021c=this[_0x56b900(0x161)]*0x8,_0x262020=_0x17b160[_0x56b900(0x308)]*0x8;_0x2ec4e9[_0x262020>>>0x5]|=0x80<<0x18-_0x262020%0x20;var _0xffffba=_0xb5e668[_0x56b900(0x3d8)](_0x24021c/0x100000000),_0x2b7ec1=_0x24021c;_0x2ec4e9[(_0x262020+0x40>>>0x9<<0x4)+0xf]=(_0xffffba<<0x8|_0xffffba>>>0x18)&0xff00ff|(_0xffffba<<0x18|_0xffffba>>>0x8)&0xff00ff00,_0x2ec4e9[(_0x262020+0x40>>>0x9<<0x4)+0xe]=(_0x2b7ec1<<0x8|_0x2b7ec1>>>0x18)&0xff00ff|(_0x2b7ec1<<0x18|_0x2b7ec1>>>0x8)&0xff00ff00,_0x17b160[_0x56b900(0x308)]=(_0x2ec4e9[_0x56b900(0x16b)]+0x1)*0x4,this[_0x56b900(0x3e3)]();for(var _0x246102=this[_0x56b900(0x371)],_0x1fceca=_0x246102[_0x56b900(0x34f)],_0x41f4b0=0x0;_0x41f4b0<0x4;_0x41f4b0++){var _0x16975b=_0x1fceca[_0x41f4b0];_0x1fceca[_0x41f4b0]=(_0x16975b<<0x8|_0x16975b>>>0x18)&0xff00ff|(_0x16975b<<0x18|_0x16975b>>>0x8)&0xff00ff00;}return _0x246102;},'clone':function(){const _0x450283=_0x437e9d;var _0x21086b=_0x91172e[_0x450283(0x1f6)]['call'](this);return _0x21086b[_0x450283(0x371)]=this['_hash'][_0x450283(0x1f6)](),_0x21086b;}});function _0x5ab02f(_0x506fc5,_0x54ed4a,_0x3910fa,_0x9c0a4f,_0x466d06,_0x5ad4e7,_0x4f0492){var _0x132305=_0x506fc5+(_0x54ed4a&_0x3910fa|~_0x54ed4a&_0x9c0a4f)+_0x466d06+_0x4f0492;return(_0x132305<<_0x5ad4e7|_0x132305>>>0x20-_0x5ad4e7)+_0x54ed4a;}function _0x252493(_0x126d47,_0x2d23ac,_0xea8407,_0x3fa4f5,_0x127082,_0x6a15c1,_0x36f00a){var _0x14df2a=_0x126d47+(_0x2d23ac&_0x3fa4f5|_0xea8407&~_0x3fa4f5)+_0x127082+_0x36f00a;return(_0x14df2a<<_0x6a15c1|_0x14df2a>>>0x20-_0x6a15c1)+_0x2d23ac;}function _0x47b754(_0x1ae732,_0x39848e,_0x517e06,_0x36aadc,_0x4fd662,_0x271ec6,_0x3b29be){var _0x2fe2d9=_0x1ae732+(_0x39848e^_0x517e06^_0x36aadc)+_0x4fd662+_0x3b29be;return(_0x2fe2d9<<_0x271ec6|_0x2fe2d9>>>0x20-_0x271ec6)+_0x39848e;}function _0xbfc06c(_0x2a3a88,_0x3d36f6,_0x3514c1,_0xb0a3b9,_0x283b77,_0x26ddd4,_0x9b0c20){var _0x39e207=_0x2a3a88+(_0x3514c1^(_0x3d36f6|~_0xb0a3b9))+_0x283b77+_0x9b0c20;return(_0x39e207<<_0x26ddd4|_0x39e207>>>0x20-_0x26ddd4)+_0x3d36f6;}_0x2a875f[_0x437e9d(0x25f)]=_0x91172e[_0x437e9d(0x1f0)](_0x188429),_0x2a875f[_0x437e9d(0x2cf)]=_0x91172e[_0x437e9d(0x5c2)](_0x188429);}(Math),_0x4b8f4e[_0x226dc4(0x25f)];}));}(_t)),_t[_0x204198(0x5e4)];}var ut={'exports':{}},dt={'exports':{}},zt;function vr(){const _0x2a71b3=_0x3a3cba;return zt||(zt=0x1,function(_0x5667a5,_0x17e965){(function(_0x4ab8c8,_0x23de62){const _0x964141=_0x131b;_0x5667a5[_0x964141(0x5e4)]=_0x23de62(oe());}(Z,function(_0x565e3e){const _0x4681c0=_0x131b;return(function(){const _0x12e644=_0x131b;var _0x15d4c3=_0x565e3e,_0x398fb9=_0x15d4c3[_0x12e644(0x537)],_0x4dbae6=_0x398fb9[_0x12e644(0x349)],_0x37ce4c=_0x398fb9['Hasher'],_0x4db9b0=_0x15d4c3[_0x12e644(0x453)],_0x1441ca=[],_0xf9de0e=_0x4db9b0[_0x12e644(0x5cb)]=_0x37ce4c[_0x12e644(0x189)]({'_doReset':function(){const _0x3da61a=_0x12e644;this[_0x3da61a(0x371)]=new _0x4dbae6['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x5eeaca,_0x5d44c8){const _0x34d8c3=_0x12e644;for(var _0x5a8d97=this[_0x34d8c3(0x371)]['words'],_0x44ecb5=_0x5a8d97[0x0],_0x1adb0d=_0x5a8d97[0x1],_0x2f974b=_0x5a8d97[0x2],_0x373336=_0x5a8d97[0x3],_0xee202d=_0x5a8d97[0x4],_0x61315a=0x0;_0x61315a<0x50;_0x61315a++){if(_0x61315a<0x10)_0x1441ca[_0x61315a]=_0x5eeaca[_0x5d44c8+_0x61315a]|0x0;else{var _0x5c35eb=_0x1441ca[_0x61315a-0x3]^_0x1441ca[_0x61315a-0x8]^_0x1441ca[_0x61315a-0xe]^_0x1441ca[_0x61315a-0x10];_0x1441ca[_0x61315a]=_0x5c35eb<<0x1|_0x5c35eb>>>0x1f;}var _0x4d2169=(_0x44ecb5<<0x5|_0x44ecb5>>>0x1b)+_0xee202d+_0x1441ca[_0x61315a];_0x61315a<0x14?_0x4d2169+=(_0x1adb0d&_0x2f974b|~_0x1adb0d&_0x373336)+0x5a827999:_0x61315a<0x28?_0x4d2169+=(_0x1adb0d^_0x2f974b^_0x373336)+0x6ed9eba1:_0x61315a<0x3c?_0x4d2169+=(_0x1adb0d&_0x2f974b|_0x1adb0d&_0x373336|_0x2f974b&_0x373336)-0x70e44324:_0x4d2169+=(_0x1adb0d^_0x2f974b^_0x373336)-0x359d3e2a,_0xee202d=_0x373336,_0x373336=_0x2f974b,_0x2f974b=_0x1adb0d<<0x1e|_0x1adb0d>>>0x2,_0x1adb0d=_0x44ecb5,_0x44ecb5=_0x4d2169;}_0x5a8d97[0x0]=_0x5a8d97[0x0]+_0x44ecb5|0x0,_0x5a8d97[0x1]=_0x5a8d97[0x1]+_0x1adb0d|0x0,_0x5a8d97[0x2]=_0x5a8d97[0x2]+_0x2f974b|0x0,_0x5a8d97[0x3]=_0x5a8d97[0x3]+_0x373336|0x0,_0x5a8d97[0x4]=_0x5a8d97[0x4]+_0xee202d|0x0;},'_doFinalize':function(){const _0x15f104=_0x12e644;var _0x269af8=this[_0x15f104(0x40c)],_0x54147f=_0x269af8[_0x15f104(0x34f)],_0x41ca47=this[_0x15f104(0x161)]*0x8,_0x515522=_0x269af8['sigBytes']*0x8;return _0x54147f[_0x515522>>>0x5]|=0x80<<0x18-_0x515522%0x20,_0x54147f[(_0x515522+0x40>>>0x9<<0x4)+0xe]=Math[_0x15f104(0x3d8)](_0x41ca47/0x100000000),_0x54147f[(_0x515522+0x40>>>0x9<<0x4)+0xf]=_0x41ca47,_0x269af8[_0x15f104(0x308)]=_0x54147f['length']*0x4,this[_0x15f104(0x3e3)](),this[_0x15f104(0x371)];},'clone':function(){const _0x3d446d=_0x12e644;var _0x45a1a4=_0x37ce4c['clone'][_0x3d446d(0x4c9)](this);return _0x45a1a4[_0x3d446d(0x371)]=this[_0x3d446d(0x371)][_0x3d446d(0x1f6)](),_0x45a1a4;}});_0x15d4c3[_0x12e644(0x5cb)]=_0x37ce4c[_0x12e644(0x1f0)](_0xf9de0e),_0x15d4c3[_0x12e644(0x15e)]=_0x37ce4c[_0x12e644(0x5c2)](_0xf9de0e);}()),_0x565e3e[_0x4681c0(0x5cb)];}));}(dt)),dt[_0x2a71b3(0x5e4)];}var ft={'exports':{}},Xt;function Sr(){const _0x54caff=_0x3a3cba;return Xt||(Xt=0x1,function(_0x3f0bef,_0x357e98){(function(_0xb6d9a2,_0x53fc81){const _0x5e6d8c=_0x131b;_0x3f0bef[_0x5e6d8c(0x5e4)]=_0x53fc81(oe());}(Z,function(_0x2c0db7){(function(){const _0x43122d=_0x131b;var _0x26f156=_0x2c0db7,_0x4b448c=_0x26f156[_0x43122d(0x537)],_0x26a2bc=_0x4b448c['Base'],_0xecbd32=_0x26f156[_0x43122d(0x3d6)],_0x42041c=_0xecbd32[_0x43122d(0x3ef)],_0x3f8f98=_0x26f156[_0x43122d(0x453)];_0x3f8f98[_0x43122d(0x343)]=_0x26a2bc[_0x43122d(0x189)]({'init':function(_0x4a4049,_0x55cc2c){const _0x18ddcf=_0x43122d;_0x4a4049=this[_0x18ddcf(0x423)]=new _0x4a4049[(_0x18ddcf(0x16a))](),typeof _0x55cc2c=='string'&&(_0x55cc2c=_0x42041c[_0x18ddcf(0x526)](_0x55cc2c));var _0x17f141=_0x4a4049[_0x18ddcf(0x57f)],_0x4344f2=_0x17f141*0x4;_0x55cc2c[_0x18ddcf(0x308)]>_0x4344f2&&(_0x55cc2c=_0x4a4049[_0x18ddcf(0x4c0)](_0x55cc2c)),_0x55cc2c[_0x18ddcf(0x2c1)]();for(var _0x3315c6=this[_0x18ddcf(0x377)]=_0x55cc2c[_0x18ddcf(0x1f6)](),_0x7f2f78=this[_0x18ddcf(0x480)]=_0x55cc2c[_0x18ddcf(0x1f6)](),_0x51e155=_0x3315c6[_0x18ddcf(0x34f)],_0x482003=_0x7f2f78[_0x18ddcf(0x34f)],_0x5829c0=0x0;_0x5829c0<_0x17f141;_0x5829c0++)_0x51e155[_0x5829c0]^=0x5c5c5c5c,_0x482003[_0x5829c0]^=0x36363636;_0x3315c6[_0x18ddcf(0x308)]=_0x7f2f78[_0x18ddcf(0x308)]=_0x4344f2,this['reset']();},'reset':function(){const _0x13c942=_0x43122d;var _0x1fea61=this[_0x13c942(0x423)];_0x1fea61['reset'](),_0x1fea61['update'](this[_0x13c942(0x480)]);},'update':function(_0x4855bb){const _0x13d9d0=_0x43122d;return this[_0x13d9d0(0x423)]['update'](_0x4855bb),this;},'finalize':function(_0x538f3c){const _0x33f6b9=_0x43122d;var _0x39d4c9=this[_0x33f6b9(0x423)],_0x2aa69e=_0x39d4c9[_0x33f6b9(0x4c0)](_0x538f3c);_0x39d4c9[_0x33f6b9(0x5c0)]();var _0x4b181f=_0x39d4c9[_0x33f6b9(0x4c0)](this[_0x33f6b9(0x377)]['clone']()['concat'](_0x2aa69e));return _0x4b181f;}});}());}));}(ft)),ft[_0x54caff(0x5e4)];}var Jt;function wi(){const _0x1c3417=_0x3a3cba;return Jt||(Jt=0x1,function(_0x59f688,_0x2ae1e2){(function(_0x35b03c,_0xbd9323,_0x5565eb){_0x59f688['exports']=_0xbd9323(oe(),vr(),Sr());}(Z,function(_0x349600){const _0x3ef2cb=_0x131b;return(function(){const _0x4c4f17=_0x131b;var _0x262ea3=_0x349600,_0x26291b=_0x262ea3[_0x4c4f17(0x537)],_0x48fb09=_0x26291b[_0x4c4f17(0x409)],_0x2e0bdf=_0x26291b[_0x4c4f17(0x349)],_0x23c819=_0x262ea3[_0x4c4f17(0x453)],_0xdde1ba=_0x23c819['MD5'],_0x565f21=_0x23c819[_0x4c4f17(0x2af)]=_0x48fb09[_0x4c4f17(0x189)]({'cfg':_0x48fb09[_0x4c4f17(0x189)]({'keySize':0x80/0x20,'hasher':_0xdde1ba,'iterations':0x1}),'init':function(_0x17076e){const _0x4518a7=_0x4c4f17;this[_0x4518a7(0x31e)]=this['cfg'][_0x4518a7(0x189)](_0x17076e);},'compute':function(_0x48bc7d,_0x27aaaf){const _0xb93710=_0x4c4f17;for(var _0x62e0d0,_0x4e94ae=this['cfg'],_0x1027bc=_0x4e94ae[_0xb93710(0x1b9)]['create'](),_0x2f126e=_0x2e0bdf['create'](),_0x5f3826=_0x2f126e[_0xb93710(0x34f)],_0x35a40b=_0x4e94ae[_0xb93710(0x24a)],_0x51e7b5=_0x4e94ae[_0xb93710(0x476)];_0x5f3826[_0xb93710(0x16b)]<_0x35a40b;){_0x62e0d0&&_0x1027bc[_0xb93710(0x48d)](_0x62e0d0),_0x62e0d0=_0x1027bc[_0xb93710(0x48d)](_0x48bc7d)[_0xb93710(0x4c0)](_0x27aaaf),_0x1027bc[_0xb93710(0x5c0)]();for(var _0xf18033=0x1;_0xf18033<_0x51e7b5;_0xf18033++)_0x62e0d0=_0x1027bc[_0xb93710(0x4c0)](_0x62e0d0),_0x1027bc[_0xb93710(0x5c0)]();_0x2f126e[_0xb93710(0x447)](_0x62e0d0);}return _0x2f126e[_0xb93710(0x308)]=_0x35a40b*0x4,_0x2f126e;}});_0x262ea3[_0x4c4f17(0x2af)]=function(_0x2fd379,_0x3241a8,_0x475c70){const _0x1af825=_0x4c4f17;return _0x565f21[_0x1af825(0x173)](_0x475c70)['compute'](_0x2fd379,_0x3241a8);};}()),_0x349600[_0x3ef2cb(0x2af)];}));}(ut)),ut[_0x1c3417(0x5e4)];}var vt={'exports':{}},Zt;function Ui(){const _0x2c588c=_0x3a3cba;return Zt||(Zt=0x1,function(_0x340f7d,_0x59d3c4){(function(_0x194f5a,_0x1bcd7f,_0x51436a){const _0x452224=_0x131b;_0x340f7d[_0x452224(0x5e4)]=_0x1bcd7f(oe(),wi());}(Z,function(_0x27aeab){const _0x1266ed=_0x131b;_0x27aeab[_0x1266ed(0x537)][_0x1266ed(0x385)]||function(_0x3c0ca2){const _0x356285=_0x1266ed;var _0x2cc9e3=_0x27aeab,_0x1ed4eb=_0x2cc9e3[_0x356285(0x537)],_0x396902=_0x1ed4eb[_0x356285(0x409)],_0xbdb506=_0x1ed4eb['WordArray'],_0x72fda3=_0x1ed4eb['BufferedBlockAlgorithm'],_0x431e87=_0x2cc9e3['enc'];_0x431e87[_0x356285(0x3ef)];var _0x58b9e8=_0x431e87[_0x356285(0x5ef)],_0x20f158=_0x2cc9e3[_0x356285(0x453)],_0xbaf72f=_0x20f158[_0x356285(0x2af)],_0x89b91=_0x1ed4eb[_0x356285(0x385)]=_0x72fda3[_0x356285(0x189)]({'cfg':_0x396902[_0x356285(0x189)](),'createEncryptor':function(_0x26e108,_0xcf777a){const _0x589bb4=_0x356285;return this['create'](this[_0x589bb4(0x272)],_0x26e108,_0xcf777a);},'createDecryptor':function(_0xbc11d1,_0x39f295){const _0x299e62=_0x356285;return this[_0x299e62(0x173)](this[_0x299e62(0x2f3)],_0xbc11d1,_0x39f295);},'init':function(_0x3ccc73,_0x5c9ee2,_0xf2bfdb){const _0x22c6e2=_0x356285;this[_0x22c6e2(0x31e)]=this[_0x22c6e2(0x31e)][_0x22c6e2(0x189)](_0xf2bfdb),this[_0x22c6e2(0x427)]=_0x3ccc73,this[_0x22c6e2(0x1d4)]=_0x5c9ee2,this[_0x22c6e2(0x5c0)]();},'reset':function(){const _0x3e25fa=_0x356285;_0x72fda3['reset']['call'](this),this[_0x3e25fa(0x1a0)]();},'process':function(_0x5b29e1){const _0x353b5b=_0x356285;return this[_0x353b5b(0x18e)](_0x5b29e1),this[_0x353b5b(0x3e3)]();},'finalize':function(_0xed3362){const _0x5d055b=_0x356285;_0xed3362&&this[_0x5d055b(0x18e)](_0xed3362);var _0x7755a4=this['_doFinalize']();return _0x7755a4;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x4cbb13(_0xee4a4a){return typeof _0xee4a4a=='string'?_0x3f6996:_0x57f9f9;}return function(_0x55a106){return{'encrypt':function(_0x489e38,_0x5a9a1e,_0x39e568){return _0x4cbb13(_0x5a9a1e)['encrypt'](_0x55a106,_0x489e38,_0x5a9a1e,_0x39e568);},'decrypt':function(_0x1bb6e4,_0x573d23,_0x525478){const _0x4c05ef=_0x131b;return _0x4cbb13(_0x573d23)[_0x4c05ef(0x194)](_0x55a106,_0x1bb6e4,_0x573d23,_0x525478);}};};}())});_0x1ed4eb['StreamCipher']=_0x89b91[_0x356285(0x189)]({'_doFinalize':function(){const _0x5b2b3d=_0x356285;var _0x47bfe0=this[_0x5b2b3d(0x3e3)](!0x0);return _0x47bfe0;},'blockSize':0x1});var _0x36b45a=_0x2cc9e3['mode']={},_0x20cf1c=_0x1ed4eb[_0x356285(0x5e9)]=_0x396902['extend']({'createEncryptor':function(_0x28795c,_0xe1e735){const _0x18b0ea=_0x356285;return this[_0x18b0ea(0x2eb)][_0x18b0ea(0x173)](_0x28795c,_0xe1e735);},'createDecryptor':function(_0x2456d9,_0x1e3e44){const _0x544050=_0x356285;return this[_0x544050(0x4fb)][_0x544050(0x173)](_0x2456d9,_0x1e3e44);},'init':function(_0x306ff1,_0xe6e455){this['_cipher']=_0x306ff1,this['_iv']=_0xe6e455;}}),_0x5979d1=_0x36b45a['CBC']=(function(){const _0x2d46b2=_0x356285;var _0x2d8324=_0x20cf1c[_0x2d46b2(0x189)]();_0x2d8324[_0x2d46b2(0x2eb)]=_0x2d8324[_0x2d46b2(0x189)]({'processBlock':function(_0x4524e2,_0x44fb90){const _0x4e269b=_0x2d46b2;var _0x1c065c=this[_0x4e269b(0x535)],_0x4cbb0c=_0x1c065c[_0x4e269b(0x57f)];_0x26efda[_0x4e269b(0x4c9)](this,_0x4524e2,_0x44fb90,_0x4cbb0c),_0x1c065c['encryptBlock'](_0x4524e2,_0x44fb90),this['_prevBlock']=_0x4524e2[_0x4e269b(0x145)](_0x44fb90,_0x44fb90+_0x4cbb0c);}}),_0x2d8324['Decryptor']=_0x2d8324[_0x2d46b2(0x189)]({'processBlock':function(_0x3dbc2f,_0x255981){const _0x1a5055=_0x2d46b2;var _0x1aab0b=this[_0x1a5055(0x535)],_0x5e823f=_0x1aab0b[_0x1a5055(0x57f)],_0x4bb7b0=_0x3dbc2f[_0x1a5055(0x145)](_0x255981,_0x255981+_0x5e823f);_0x1aab0b[_0x1a5055(0x24f)](_0x3dbc2f,_0x255981),_0x26efda[_0x1a5055(0x4c9)](this,_0x3dbc2f,_0x255981,_0x5e823f),this[_0x1a5055(0x1a8)]=_0x4bb7b0;}});function _0x26efda(_0x9ee8f9,_0x3ac436,_0x1e95bf){const _0x52295f=_0x2d46b2;var _0x47cada,_0x31c461=this[_0x52295f(0x517)];_0x31c461?(_0x47cada=_0x31c461,this['_iv']=_0x3c0ca2):_0x47cada=this[_0x52295f(0x1a8)];for(var _0x3246a2=0x0;_0x3246a2<_0x1e95bf;_0x3246a2++)_0x9ee8f9[_0x3ac436+_0x3246a2]^=_0x47cada[_0x3246a2];}return _0x2d8324;}()),_0x4b3c3d=_0x2cc9e3[_0x356285(0x4ac)]={},_0x9e4466=_0x4b3c3d['Pkcs7']={'pad':function(_0x5241f6,_0x46b960){const _0x228859=_0x356285;for(var _0x5052cf=_0x46b960*0x4,_0x36b87d=_0x5052cf-_0x5241f6['sigBytes']%_0x5052cf,_0x59bd70=_0x36b87d<<0x18|_0x36b87d<<0x10|_0x36b87d<<0x8|_0x36b87d,_0xa38fa0=[],_0x546122=0x0;_0x546122<_0x36b87d;_0x546122+=0x4)_0xa38fa0['push'](_0x59bd70);var _0x3263b6=_0xbdb506[_0x228859(0x173)](_0xa38fa0,_0x36b87d);_0x5241f6[_0x228859(0x447)](_0x3263b6);},'unpad':function(_0x4465f6){const _0x213538=_0x356285;var _0x1e0b33=_0x4465f6['words'][_0x4465f6[_0x213538(0x308)]-0x1>>>0x2]&0xff;_0x4465f6[_0x213538(0x308)]-=_0x1e0b33;}};_0x1ed4eb[_0x356285(0x36c)]=_0x89b91[_0x356285(0x189)]({'cfg':_0x89b91[_0x356285(0x31e)][_0x356285(0x189)]({'mode':_0x5979d1,'padding':_0x9e4466}),'reset':function(){const _0x133983=_0x356285;var _0x5e6fee;_0x89b91['reset'][_0x133983(0x4c9)](this);var _0x44fd35=this['cfg'],_0x31c98f=_0x44fd35['iv'],_0x424208=_0x44fd35['mode'];this[_0x133983(0x427)]==this['_ENC_XFORM_MODE']?_0x5e6fee=_0x424208[_0x133983(0x15d)]:(_0x5e6fee=_0x424208[_0x133983(0x303)],this[_0x133983(0x165)]=0x1),this[_0x133983(0x3ed)]&&this[_0x133983(0x3ed)][_0x133983(0x5ce)]==_0x5e6fee?this[_0x133983(0x3ed)]['init'](this,_0x31c98f&&_0x31c98f[_0x133983(0x34f)]):(this[_0x133983(0x3ed)]=_0x5e6fee['call'](_0x424208,this,_0x31c98f&&_0x31c98f[_0x133983(0x34f)]),this[_0x133983(0x3ed)][_0x133983(0x5ce)]=_0x5e6fee);},'_doProcessBlock':function(_0x4c38b7,_0x27ef1d){const _0x491433=_0x356285;this[_0x491433(0x3ed)][_0x491433(0x457)](_0x4c38b7,_0x27ef1d);},'_doFinalize':function(){const _0x115129=_0x356285;var _0x3de2b4,_0x2040d4=this['cfg']['padding'];return this[_0x115129(0x427)]==this[_0x115129(0x272)]?(_0x2040d4[_0x115129(0x4ac)](this[_0x115129(0x40c)],this[_0x115129(0x57f)]),_0x3de2b4=this[_0x115129(0x3e3)](!0x0)):(_0x3de2b4=this[_0x115129(0x3e3)](!0x0),_0x2040d4[_0x115129(0x2db)](_0x3de2b4)),_0x3de2b4;},'blockSize':0x80/0x20});var _0x4f2449=_0x1ed4eb[_0x356285(0x274)]=_0x396902[_0x356285(0x189)]({'init':function(_0x26193f){const _0x1396a3=_0x356285;this[_0x1396a3(0x564)](_0x26193f);},'toString':function(_0x137c55){const _0x52f5d8=_0x356285;return(_0x137c55||this[_0x52f5d8(0x270)])[_0x52f5d8(0x405)](this);}}),_0x2da142=_0x2cc9e3[_0x356285(0x4f6)]={},_0x22f63d=_0x2da142[_0x356285(0x2b4)]={'stringify':function(_0x222448){const _0x29ba5f=_0x356285;var _0x5c77ae,_0x5d5c60=_0x222448[_0x29ba5f(0x3ad)],_0xaf216f=_0x222448[_0x29ba5f(0x2e0)];return _0xaf216f?_0x5c77ae=_0xbdb506[_0x29ba5f(0x173)]([0x53616c74,0x65645f5f])[_0x29ba5f(0x447)](_0xaf216f)[_0x29ba5f(0x447)](_0x5d5c60):_0x5c77ae=_0x5d5c60,_0x5c77ae['toString'](_0x58b9e8);},'parse':function(_0x5cc6f0){const _0x9703bd=_0x356285;var _0x263587,_0x1da9c1=_0x58b9e8[_0x9703bd(0x526)](_0x5cc6f0),_0x4638fe=_0x1da9c1[_0x9703bd(0x34f)];return _0x4638fe[0x0]==0x53616c74&&_0x4638fe[0x1]==0x65645f5f&&(_0x263587=_0xbdb506[_0x9703bd(0x173)](_0x4638fe[_0x9703bd(0x145)](0x2,0x4)),_0x4638fe[_0x9703bd(0x3c2)](0x0,0x4),_0x1da9c1[_0x9703bd(0x308)]-=0x10),_0x4f2449[_0x9703bd(0x173)]({'ciphertext':_0x1da9c1,'salt':_0x263587});}},_0x57f9f9=_0x1ed4eb['SerializableCipher']=_0x396902[_0x356285(0x189)]({'cfg':_0x396902['extend']({'format':_0x22f63d}),'encrypt':function(_0x3d5eec,_0x24419f,_0x135f5c,_0x499694){const _0x4fc371=_0x356285;_0x499694=this[_0x4fc371(0x31e)][_0x4fc371(0x189)](_0x499694);var _0x6d6e4a=_0x3d5eec['createEncryptor'](_0x135f5c,_0x499694),_0x8a9d20=_0x6d6e4a[_0x4fc371(0x4c0)](_0x24419f),_0x57b57d=_0x6d6e4a[_0x4fc371(0x31e)];return _0x4f2449['create']({'ciphertext':_0x8a9d20,'key':_0x135f5c,'iv':_0x57b57d['iv'],'algorithm':_0x3d5eec,'mode':_0x57b57d['mode'],'padding':_0x57b57d[_0x4fc371(0x548)],'blockSize':_0x3d5eec['blockSize'],'formatter':_0x499694['format']});},'decrypt':function(_0x482712,_0x38b268,_0x51fbd3,_0x47f865){const _0x2e2f5b=_0x356285;_0x47f865=this[_0x2e2f5b(0x31e)][_0x2e2f5b(0x189)](_0x47f865),_0x38b268=this[_0x2e2f5b(0x325)](_0x38b268,_0x47f865['format']);var _0x46f6fe=_0x482712[_0x2e2f5b(0x303)](_0x51fbd3,_0x47f865)['finalize'](_0x38b268[_0x2e2f5b(0x3ad)]);return _0x46f6fe;},'_parse':function(_0x43aab7,_0x122d7b){const _0x2d57bd=_0x356285;return typeof _0x43aab7==_0x2d57bd(0x554)?_0x122d7b[_0x2d57bd(0x526)](_0x43aab7,this):_0x43aab7;}}),_0xfecdd=_0x2cc9e3[_0x356285(0x130)]={},_0x269b4c=_0xfecdd[_0x356285(0x2b4)]={'execute':function(_0x31f64e,_0x50bebf,_0x18728a,_0x5be886,_0xd33ba5){const _0xe87d5d=_0x356285;if(_0x5be886||(_0x5be886=_0xbdb506[_0xe87d5d(0x14e)](0x40/0x8)),_0xd33ba5)var _0x480617=_0xbaf72f[_0xe87d5d(0x173)]({'keySize':_0x50bebf+_0x18728a,'hasher':_0xd33ba5})[_0xe87d5d(0x3f7)](_0x31f64e,_0x5be886);else var _0x480617=_0xbaf72f['create']({'keySize':_0x50bebf+_0x18728a})[_0xe87d5d(0x3f7)](_0x31f64e,_0x5be886);var _0x1e5dc1=_0xbdb506[_0xe87d5d(0x173)](_0x480617[_0xe87d5d(0x34f)]['slice'](_0x50bebf),_0x18728a*0x4);return _0x480617['sigBytes']=_0x50bebf*0x4,_0x4f2449['create']({'key':_0x480617,'iv':_0x1e5dc1,'salt':_0x5be886});}},_0x3f6996=_0x1ed4eb[_0x356285(0x389)]=_0x57f9f9[_0x356285(0x189)]({'cfg':_0x57f9f9[_0x356285(0x31e)][_0x356285(0x189)]({'kdf':_0x269b4c}),'encrypt':function(_0x456617,_0x4afef4,_0x83c5,_0x2ff876){const _0x5810e7=_0x356285;_0x2ff876=this[_0x5810e7(0x31e)][_0x5810e7(0x189)](_0x2ff876);var _0x4a8dce=_0x2ff876[_0x5810e7(0x130)]['execute'](_0x83c5,_0x456617['keySize'],_0x456617[_0x5810e7(0x1f4)],_0x2ff876[_0x5810e7(0x2e0)],_0x2ff876[_0x5810e7(0x1b9)]);_0x2ff876['iv']=_0x4a8dce['iv'];var _0x52a0b6=_0x57f9f9[_0x5810e7(0x32d)][_0x5810e7(0x4c9)](this,_0x456617,_0x4afef4,_0x4a8dce['key'],_0x2ff876);return _0x52a0b6[_0x5810e7(0x564)](_0x4a8dce),_0x52a0b6;},'decrypt':function(_0x28963d,_0x4e0151,_0x262e8c,_0x4d646b){const _0x331a6a=_0x356285;_0x4d646b=this[_0x331a6a(0x31e)][_0x331a6a(0x189)](_0x4d646b),_0x4e0151=this[_0x331a6a(0x325)](_0x4e0151,_0x4d646b[_0x331a6a(0x4f6)]);var _0x1937e3=_0x4d646b['kdf'][_0x331a6a(0x4c8)](_0x262e8c,_0x28963d['keySize'],_0x28963d[_0x331a6a(0x1f4)],_0x4e0151['salt'],_0x4d646b[_0x331a6a(0x1b9)]);_0x4d646b['iv']=_0x1937e3['iv'];var _0x363941=_0x57f9f9[_0x331a6a(0x194)]['call'](this,_0x28963d,_0x4e0151,_0x1937e3[_0x331a6a(0x249)],_0x4d646b);return _0x363941;}});}();}));}(vt)),vt[_0x2c588c(0x5e4)];}(function(_0x1249f9,_0x2db74a){(function(_0x25f9b3,_0x5a23da,_0x1dbdad){const _0x27541b=_0x131b;_0x1249f9[_0x27541b(0x5e4)]=_0x5a23da(oe(),Pi(),fr(),wi(),Ui());}(Z,function(_0x5bf6e0){const _0x3756c0=_0x131b;return(function(){const _0x3c4064=_0x131b;var _0x22709e=_0x5bf6e0,_0x4ebf85=_0x22709e[_0x3c4064(0x537)],_0x2c93ac=_0x4ebf85['BlockCipher'],_0x2bea49=_0x22709e[_0x3c4064(0x453)],_0x4deb59=[],_0x218e38=[],_0x530e56=[],_0x19bae5=[],_0x268577=[],_0x4b39dc=[],_0xb9fd0b=[],_0x2e7316=[],_0x4090c2=[],_0x556f79=[];(function(){for(var _0x4d101d=[],_0xd2bdeb=0x0;_0xd2bdeb<0x100;_0xd2bdeb++)_0xd2bdeb<0x80?_0x4d101d[_0xd2bdeb]=_0xd2bdeb<<0x1:_0x4d101d[_0xd2bdeb]=_0xd2bdeb<<0x1^0x11b;for(var _0x566a94=0x0,_0x2ea674=0x0,_0xd2bdeb=0x0;_0xd2bdeb<0x100;_0xd2bdeb++){var _0x1f46b2=_0x2ea674^_0x2ea674<<0x1^_0x2ea674<<0x2^_0x2ea674<<0x3^_0x2ea674<<0x4;_0x1f46b2=_0x1f46b2>>>0x8^_0x1f46b2&0xff^0x63,_0x4deb59[_0x566a94]=_0x1f46b2,_0x218e38[_0x1f46b2]=_0x566a94;var _0x4088c6=_0x4d101d[_0x566a94],_0x4b1e9b=_0x4d101d[_0x4088c6],_0xe04a94=_0x4d101d[_0x4b1e9b],_0x3604ba=_0x4d101d[_0x1f46b2]*0x101^_0x1f46b2*0x1010100;_0x530e56[_0x566a94]=_0x3604ba<<0x18|_0x3604ba>>>0x8,_0x19bae5[_0x566a94]=_0x3604ba<<0x10|_0x3604ba>>>0x10,_0x268577[_0x566a94]=_0x3604ba<<0x8|_0x3604ba>>>0x18,_0x4b39dc[_0x566a94]=_0x3604ba;var _0x3604ba=_0xe04a94*0x1010101^_0x4b1e9b*0x10001^_0x4088c6*0x101^_0x566a94*0x1010100;_0xb9fd0b[_0x1f46b2]=_0x3604ba<<0x18|_0x3604ba>>>0x8,_0x2e7316[_0x1f46b2]=_0x3604ba<<0x10|_0x3604ba>>>0x10,_0x4090c2[_0x1f46b2]=_0x3604ba<<0x8|_0x3604ba>>>0x18,_0x556f79[_0x1f46b2]=_0x3604ba,_0x566a94?(_0x566a94=_0x4088c6^_0x4d101d[_0x4d101d[_0x4d101d[_0xe04a94^_0x4088c6]]],_0x2ea674^=_0x4d101d[_0x4d101d[_0x2ea674]]):_0x566a94=_0x2ea674=0x1;}}());var _0x420f29=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x428716=_0x2bea49[_0x3c4064(0x2e2)]=_0x2c93ac['extend']({'_doReset':function(){const _0x83080=_0x3c4064;var _0x36decb;if(!(this[_0x83080(0x12c)]&&this[_0x83080(0x31a)]===this[_0x83080(0x1d4)])){for(var _0x3f9d19=this['_keyPriorReset']=this[_0x83080(0x1d4)],_0x2a298f=_0x3f9d19[_0x83080(0x34f)],_0x4dc41e=_0x3f9d19[_0x83080(0x308)]/0x4,_0x2e5fcd=this[_0x83080(0x12c)]=_0x4dc41e+0x6,_0x403ff5=(_0x2e5fcd+0x1)*0x4,_0x425e78=this[_0x83080(0x555)]=[],_0xe92488=0x0;_0xe92488<_0x403ff5;_0xe92488++)_0xe92488<_0x4dc41e?_0x425e78[_0xe92488]=_0x2a298f[_0xe92488]:(_0x36decb=_0x425e78[_0xe92488-0x1],_0xe92488%_0x4dc41e?_0x4dc41e>0x6&&_0xe92488%_0x4dc41e==0x4&&(_0x36decb=_0x4deb59[_0x36decb>>>0x18]<<0x18|_0x4deb59[_0x36decb>>>0x10&0xff]<<0x10|_0x4deb59[_0x36decb>>>0x8&0xff]<<0x8|_0x4deb59[_0x36decb&0xff]):(_0x36decb=_0x36decb<<0x8|_0x36decb>>>0x18,_0x36decb=_0x4deb59[_0x36decb>>>0x18]<<0x18|_0x4deb59[_0x36decb>>>0x10&0xff]<<0x10|_0x4deb59[_0x36decb>>>0x8&0xff]<<0x8|_0x4deb59[_0x36decb&0xff],_0x36decb^=_0x420f29[_0xe92488/_0x4dc41e|0x0]<<0x18),_0x425e78[_0xe92488]=_0x425e78[_0xe92488-_0x4dc41e]^_0x36decb);for(var _0x3bce8f=this[_0x83080(0x475)]=[],_0x436823=0x0;_0x436823<_0x403ff5;_0x436823++){var _0xe92488=_0x403ff5-_0x436823;if(_0x436823%0x4)var _0x36decb=_0x425e78[_0xe92488];else var _0x36decb=_0x425e78[_0xe92488-0x4];_0x436823<0x4||_0xe92488<=0x4?_0x3bce8f[_0x436823]=_0x36decb:_0x3bce8f[_0x436823]=_0xb9fd0b[_0x4deb59[_0x36decb>>>0x18]]^_0x2e7316[_0x4deb59[_0x36decb>>>0x10&0xff]]^_0x4090c2[_0x4deb59[_0x36decb>>>0x8&0xff]]^_0x556f79[_0x4deb59[_0x36decb&0xff]];}}},'encryptBlock':function(_0x2e9d8c,_0xcc84e1){const _0x9741e3=_0x3c4064;this[_0x9741e3(0x580)](_0x2e9d8c,_0xcc84e1,this[_0x9741e3(0x555)],_0x530e56,_0x19bae5,_0x268577,_0x4b39dc,_0x4deb59);},'decryptBlock':function(_0xe1b95c,_0x35904e){const _0x470535=_0x3c4064;var _0x29d712=_0xe1b95c[_0x35904e+0x1];_0xe1b95c[_0x35904e+0x1]=_0xe1b95c[_0x35904e+0x3],_0xe1b95c[_0x35904e+0x3]=_0x29d712,this[_0x470535(0x580)](_0xe1b95c,_0x35904e,this[_0x470535(0x475)],_0xb9fd0b,_0x2e7316,_0x4090c2,_0x556f79,_0x218e38);var _0x29d712=_0xe1b95c[_0x35904e+0x1];_0xe1b95c[_0x35904e+0x1]=_0xe1b95c[_0x35904e+0x3],_0xe1b95c[_0x35904e+0x3]=_0x29d712;},'_doCryptBlock':function(_0xa74764,_0x469484,_0x2cf44a,_0x65c51c,_0x5f0b09,_0x121b25,_0x2ab9a9,_0x33891e){const _0x1fb0d5=_0x3c4064;for(var _0x589eeb=this[_0x1fb0d5(0x12c)],_0x53fd7c=_0xa74764[_0x469484]^_0x2cf44a[0x0],_0x41b2fc=_0xa74764[_0x469484+0x1]^_0x2cf44a[0x1],_0x9d36c2=_0xa74764[_0x469484+0x2]^_0x2cf44a[0x2],_0x105da4=_0xa74764[_0x469484+0x3]^_0x2cf44a[0x3],_0x51932a=0x4,_0x255c87=0x1;_0x255c87<_0x589eeb;_0x255c87++){var _0x1eb8e3=_0x65c51c[_0x53fd7c>>>0x18]^_0x5f0b09[_0x41b2fc>>>0x10&0xff]^_0x121b25[_0x9d36c2>>>0x8&0xff]^_0x2ab9a9[_0x105da4&0xff]^_0x2cf44a[_0x51932a++],_0x2d19a3=_0x65c51c[_0x41b2fc>>>0x18]^_0x5f0b09[_0x9d36c2>>>0x10&0xff]^_0x121b25[_0x105da4>>>0x8&0xff]^_0x2ab9a9[_0x53fd7c&0xff]^_0x2cf44a[_0x51932a++],_0x2b9b1c=_0x65c51c[_0x9d36c2>>>0x18]^_0x5f0b09[_0x105da4>>>0x10&0xff]^_0x121b25[_0x53fd7c>>>0x8&0xff]^_0x2ab9a9[_0x41b2fc&0xff]^_0x2cf44a[_0x51932a++],_0x3dadf0=_0x65c51c[_0x105da4>>>0x18]^_0x5f0b09[_0x53fd7c>>>0x10&0xff]^_0x121b25[_0x41b2fc>>>0x8&0xff]^_0x2ab9a9[_0x9d36c2&0xff]^_0x2cf44a[_0x51932a++];_0x53fd7c=_0x1eb8e3,_0x41b2fc=_0x2d19a3,_0x9d36c2=_0x2b9b1c,_0x105da4=_0x3dadf0;}var _0x1eb8e3=(_0x33891e[_0x53fd7c>>>0x18]<<0x18|_0x33891e[_0x41b2fc>>>0x10&0xff]<<0x10|_0x33891e[_0x9d36c2>>>0x8&0xff]<<0x8|_0x33891e[_0x105da4&0xff])^_0x2cf44a[_0x51932a++],_0x2d19a3=(_0x33891e[_0x41b2fc>>>0x18]<<0x18|_0x33891e[_0x9d36c2>>>0x10&0xff]<<0x10|_0x33891e[_0x105da4>>>0x8&0xff]<<0x8|_0x33891e[_0x53fd7c&0xff])^_0x2cf44a[_0x51932a++],_0x2b9b1c=(_0x33891e[_0x9d36c2>>>0x18]<<0x18|_0x33891e[_0x105da4>>>0x10&0xff]<<0x10|_0x33891e[_0x53fd7c>>>0x8&0xff]<<0x8|_0x33891e[_0x41b2fc&0xff])^_0x2cf44a[_0x51932a++],_0x3dadf0=(_0x33891e[_0x105da4>>>0x18]<<0x18|_0x33891e[_0x53fd7c>>>0x10&0xff]<<0x10|_0x33891e[_0x41b2fc>>>0x8&0xff]<<0x8|_0x33891e[_0x9d36c2&0xff])^_0x2cf44a[_0x51932a++];_0xa74764[_0x469484]=_0x1eb8e3,_0xa74764[_0x469484+0x1]=_0x2d19a3,_0xa74764[_0x469484+0x2]=_0x2b9b1c,_0xa74764[_0x469484+0x3]=_0x3dadf0;},'keySize':0x100/0x20});_0x22709e[_0x3c4064(0x2e2)]=_0x2c93ac[_0x3c4064(0x1f0)](_0x428716);}()),_0x5bf6e0[_0x3756c0(0x2e2)];}));}(Di));var pr=Di[_0x3a3cba(0x5e4)];const mr=xe(pr);var gr=Pi();const Qt=xe(gr);var Mi={'exports':{}};(function(_0x439ce3,_0x37670c){(function(_0x4f0f9f,_0x4ce06a){const _0x1e4755=_0x131b;_0x439ce3[_0x1e4755(0x5e4)]=_0x4ce06a(oe());}(Z,function(_0x2685ff){return _0x2685ff['enc']['Utf8'];}));}(Mi));var Ir=Mi[_0x3a3cba(0x5e4)];const Cr=xe(Ir);var Ai={'exports':{}};(function(_0x378eb9,_0x361e42){(function(_0x3c7543,_0x3b5f31){_0x378eb9['exports']=_0x3b5f31(oe());}(Z,function(_0x2c873c){const _0x54d28b=_0x131b;return(function(){const _0x1b60d8=_0x131b;if(typeof ArrayBuffer==_0x1b60d8(0x1d8)){var _0x2b453e=_0x2c873c,_0x3f7e92=_0x2b453e[_0x1b60d8(0x537)],_0x12f209=_0x3f7e92[_0x1b60d8(0x349)],_0x2a6ed9=_0x12f209[_0x1b60d8(0x16a)],_0x15e882=_0x12f209[_0x1b60d8(0x16a)]=function(_0x56b101){const _0x20c9ff=_0x1b60d8;if(_0x56b101 instanceof ArrayBuffer&&(_0x56b101=new Uint8Array(_0x56b101)),(_0x56b101 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x56b101 instanceof Uint8ClampedArray||_0x56b101 instanceof Int16Array||_0x56b101 instanceof Uint16Array||_0x56b101 instanceof Int32Array||_0x56b101 instanceof Uint32Array||_0x56b101 instanceof Float32Array||_0x56b101 instanceof Float64Array)&&(_0x56b101=new Uint8Array(_0x56b101[_0x20c9ff(0x31c)],_0x56b101['byteOffset'],_0x56b101[_0x20c9ff(0x1ab)])),_0x56b101 instanceof Uint8Array){for(var _0x19dd68=_0x56b101[_0x20c9ff(0x1ab)],_0x4c4bb2=[],_0x34e6a3=0x0;_0x34e6a3<_0x19dd68;_0x34e6a3++)_0x4c4bb2[_0x34e6a3>>>0x2]|=_0x56b101[_0x34e6a3]<<0x18-_0x34e6a3%0x4*0x8;_0x2a6ed9[_0x20c9ff(0x4c9)](this,_0x4c4bb2,_0x19dd68);}else _0x2a6ed9[_0x20c9ff(0x49e)](this,arguments);};_0x15e882[_0x1b60d8(0x2d8)]=_0x12f209;}}()),_0x2c873c[_0x54d28b(0x537)][_0x54d28b(0x349)];}));}(Ai));var Er=Ai[_0x3a3cba(0x5e4)];const br=xe(Er);var Ni={'exports':{}};(function(_0x4d399c,_0x54da6c){(function(_0x302d71,_0x49a829,_0x33be3f){_0x4d399c['exports']=_0x49a829(oe(),Ui());}(Z,function(_0x25ecd6){const _0x54a017=_0x131b;return _0x25ecd6[_0x54a017(0x4ac)]['NoPadding']={'pad':function(){},'unpad':function(){}},_0x25ecd6[_0x54a017(0x4ac)][_0x54a017(0x44d)];}));}(Ni));var Tr=Ni['exports'];const Rr=xe(Tr);function yr(_0x5a6d6a,_0x377e7d){const _0x4f56c1=_0x3a3cba,_0x54de2e=_0x377e7d-_0x5a6d6a[_0x4f56c1(0x16b)]%_0x377e7d,_0x13b183=String['fromCharCode'](_0x54de2e)[_0x4f56c1(0x5ee)](_0x54de2e);return _0x5a6d6a+_0x13b183;}function Or(_0xf4fae2,_0x320302){const _0x5c538b=_0x3a3cba,_0x290487=br['random'](0x10),_0x1a09db=yr(_0xf4fae2,0x10),_0x15bc35=mr['encrypt'](Cr['parse'](_0x1a09db),Qt[_0x5c538b(0x526)](_0x320302),{'iv':_0x290487,'padding':Rr});return _0x290487['concat'](_0x15bc35[_0x5c538b(0x3ad)])[_0x5c538b(0x2c4)](Qt);}function Dr(){const _0x5985cf=_0x3a3cba,_0x3eced2=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)[_0x5985cf(0x20e)];if(_0x3eced2){const _0x486bfa={'time':Math[_0x5985cf(0x3d8)](Date[_0x5985cf(0x410)]()/0x3e8),'domain':location[_0x5985cf(0x142)]};return Or(JSON[_0x5985cf(0x405)](_0x486bfa),_0x3eced2);}}var Pr=Object['defineProperty'],wr=Object[_0x3a3cba(0x42d)],Ur=(_0x3671e6,_0x58c8ea,_0x4eddc5,_0x3d46fa)=>{const _0x1fdd58=_0x3a3cba;for(var _0x538087=_0x3d46fa>0x1?void 0x0:_0x3d46fa?wr(_0x58c8ea,_0x4eddc5):_0x58c8ea,_0x24d0f4=_0x3671e6[_0x1fdd58(0x16b)]-0x1,_0x12ba4c;_0x24d0f4>=0x0;_0x24d0f4--)(_0x12ba4c=_0x3671e6[_0x24d0f4])&&(_0x538087=(_0x3d46fa?_0x12ba4c(_0x58c8ea,_0x4eddc5,_0x538087):_0x12ba4c(_0x538087))||_0x538087);return _0x3d46fa&&_0x538087&&Pr(_0x58c8ea,_0x4eddc5,_0x538087),_0x538087;},Mr=(_0x3caddf,_0xae1dd3)=>(_0x4afcda,_0x312079)=>_0xae1dd3(_0x4afcda,_0x312079,_0x3caddf);let Ke=class{constructor(_0x4dbb0c){const _0x25e7a8=_0x3a3cba;this[_0x25e7a8(0x586)]=_0x4dbb0c,this[_0x25e7a8(0x2b1)]();}['_initRequestHeader'](){const _0x14d919=_0x3a3cba;this[_0x14d919(0x586)][_0x14d919(0x4e3)]({'interceptor':(_0x5b24d7,_0x424126)=>{const _0x2fa047=_0x14d919,_0x3f4c11=_0x5b24d7['headers'],_0x439fc5=Dr();return _0x439fc5&&_0x3f4c11[_0x2fa047(0x38a)](_0x2fa047(0x38e),_0x439fc5),_0x424126(_0x5b24d7);}});}};Ke=Ur([Mr(0x0,a[_0x3a3cba(0x4b4)](z[_0x3a3cba(0x36b)]))],Ke);var Ar=Object[_0x3a3cba(0x5d1)],Nr=Object['getOwnPropertyDescriptor'],Lr=(_0x20bda3,_0x40dbae,_0x127164,_0x5f2c11)=>{const _0x1245d0=_0x3a3cba;for(var _0x423b20=_0x5f2c11>0x1?void 0x0:_0x5f2c11?Nr(_0x40dbae,_0x127164):_0x40dbae,_0x470412=_0x20bda3[_0x1245d0(0x16b)]-0x1,_0x182dda;_0x470412>=0x0;_0x470412--)(_0x182dda=_0x20bda3[_0x470412])&&(_0x423b20=(_0x5f2c11?_0x182dda(_0x40dbae,_0x127164,_0x423b20):_0x182dda(_0x423b20))||_0x423b20);return _0x5f2c11&&_0x423b20&&Ar(_0x40dbae,_0x127164,_0x423b20),_0x423b20;},St=(_0x1bcd5f,_0x4f8289)=>(_0x4e81ba,_0x3f8e7b)=>_0x4f8289(_0x4e81ba,_0x3f8e7b,_0x1bcd5f);const xr=[_0x3a3cba(0x39f),'image/jpeg',_0x3a3cba(0x3ea),_0x3a3cba(0x323),'image/bmp'],jr=0x5*0x400*0x400,$r=_0x3a3cba(0x316),Hr='/universer-api/stream/file/upload',Br=_0x3a3cba(0x2ff),kr='/universer-api/file/{fileID}/sign-url';exports[_0x3a3cba(0x49c)]=class{constructor(_0x459250,_0xac2319,_0x5dd05b){const _0x2bbf90=_0x3a3cba;I(this,_0x2bbf90(0x2a8),0x0),I(this,_0x2bbf90(0x3c1),new A['Subject']()),I(this,_0x2bbf90(0x318),this[_0x2bbf90(0x3c1)]),I(this,_0x2bbf90(0x167),new Map()),(this[_0x2bbf90(0x586)]=_0x459250,this[_0x2bbf90(0x4d1)]=_0xac2319,this[_0x2bbf90(0x206)]=_0x5dd05b);}[_0x3a3cba(0x530)](_0x3c6e64){const _0x5c7966=_0x3a3cba;this[_0x5c7966(0x2a8)]=_0x3c6e64,this[_0x5c7966(0x3c1)]['next'](_0x3c6e64);}['getImageSourceCache'](_0x2f3ae9,_0x4e999e){const _0x605350=_0x3a3cba;if(_0x4e999e===ie[_0x605350(0x360)][_0x605350(0x448)]){const _0x317e2e=new Image();return _0x317e2e[_0x605350(0x15b)]=_0x2f3ae9,_0x317e2e;}return this[_0x605350(0x167)]['get'](_0x2f3ae9);}[_0x3a3cba(0x160)](_0x5eaec6,_0x4ef884,_0x13d528){const _0x5c7abc=_0x3a3cba;_0x4ef884===ie['ImageSourceType'][_0x5c7abc(0x448)]||_0x13d528==null||this[_0x5c7abc(0x167)][_0x5c7abc(0x38a)](_0x5eaec6,_0x13d528);}async[_0x3a3cba(0x179)](_0x367c9c){const _0x27b78c=_0x3a3cba;try{const _0x17d58d=this['_replaceFileID'](this[_0x27b78c(0x5a4)](),''+_0x367c9c),_0x284dd4=(await this[_0x27b78c(0x586)]['get'](_0x17d58d))[_0x27b78c(0x4eb)];if(_0x284dd4[_0x27b78c(0x2e5)]&&_0x284dd4[_0x27b78c(0x2e5)][_0x27b78c(0x199)]===_i['OK']){const _0x111e84=new URL(_0x284dd4[_0x27b78c(0x262)],this['_getDownloadEndpointURL']())[_0x27b78c(0x2c4)]();return Promise['resolve'](_0x111e84);}return Promise[_0x27b78c(0x54c)](_0x284dd4['error']);}catch(_0x85b098){return Promise[_0x27b78c(0x54c)](_0x85b098);}}async['saveImage'](_0x2e999c){const _0x196709=_0x3a3cba;let _0x5e3670='';if(!xr['includes'](_0x2e999c[_0x196709(0x322)]))return this[_0x196709(0x180)](),Promise[_0x196709(0x54c)](new Error(ie[_0x196709(0x460)][_0x196709(0x141)]));if(_0x2e999c[_0x196709(0x51e)]>jr)return this[_0x196709(0x180)](),Promise[_0x196709(0x54c)](new Error(ie[_0x196709(0x460)]['ERROR_EXCEED_SIZE']));try{const _0x3a017b=new FormData();_0x3a017b[_0x196709(0x434)](_0x196709(0x5b7),_0x2e999c);const _0x261665=this['_univerInstanceService'][_0x196709(0x46d)](),_0x1c8ee7=_0x261665==null?void 0x0:_0x261665[_0x196709(0x470)]();if(!_0x1c8ee7)throw new Error(_0x196709(0x361));const _0x2088c9=this[_0x196709(0x12b)]()+'?size='+_0x2e999c[_0x196709(0x51e)][_0x196709(0x2c4)]()+'&source='+ui[_0x196709(0x37b)]+_0x196709(0x353)+encodeURIComponent(_0x1c8ee7),_0x451396=await(await fetch(_0x2088c9,{'method':'POST','body':_0x3a017b}))[_0x196709(0x336)]();if(typeof _0x451396[_0x196709(0x2d7)]!=_0x196709(0x554))return this[_0x196709(0x180)](),Promise['reject'](new Error(ie['ImageUploadStatusType'][_0x196709(0x1bf)]));_0x5e3670=_0x451396[_0x196709(0x2d7)];}catch{return this[_0x196709(0x180)](),Promise[_0x196709(0x54c)](new Error(ie[_0x196709(0x460)][_0x196709(0x1bf)]));}return new Promise((_0x20edbb,_0x48732d)=>{const _0x180421=_0x196709,_0x26354b=new FileReader();_0x26354b[_0x180421(0x524)](_0x2e999c),_0x26354b['onload']=_0x54e7f7=>{const _0x12ac10=_0x180421;var _0x990ceb;const _0x178a30=(_0x990ceb=_0x54e7f7[_0x12ac10(0x502)])==null?void 0x0:_0x990ceb['result'];if(_0x178a30==null){this[_0x12ac10(0x180)](),_0x48732d(new Error(ie['ImageUploadStatusType']['ERROR_IMAGE']));return;}const _0x38b1c9=a['Tools'][_0x12ac10(0x273)](0x6);_0x20edbb({'imageId':_0x38b1c9,'imageSourceType':ie['ImageSourceType']['UUID'],'source':_0x5e3670,'base64Cache':_0x178a30,'status':ie[_0x12ac10(0x460)][_0x12ac10(0x47a)]}),this[_0x12ac10(0x180)]();};});}[_0x3a3cba(0x12b)](){const _0xf4da1e=_0x3a3cba;var _0x4bbb20,_0x4d3214;const _0xcc304a=this[_0xf4da1e(0x4d1)][_0xf4da1e(0x3cc)]($r),_0x3e0c2c=this[_0xf4da1e(0x4d1)][_0xf4da1e(0x3cc)](Q);return(_0x4d3214=(_0x4bbb20=_0x3e0c2c==null?void 0x0:_0x3e0c2c['uploadFileServerUrl'])!=null?_0x4bbb20:_0xcc304a)!=null?_0x4d3214:Hr;}[_0x3a3cba(0x5a4)](){const _0x417b2c=_0x3a3cba;var _0x1df006,_0x112bf3;const _0x3edce2=this[_0x417b2c(0x4d1)]['getConfig'](Br),_0x20e1f5=this[_0x417b2c(0x4d1)][_0x417b2c(0x3cc)](Q);return(_0x112bf3=(_0x1df006=_0x20e1f5==null?void 0x0:_0x20e1f5[_0x417b2c(0x2df)])!=null?_0x1df006:_0x3edce2)!=null?_0x112bf3:kr;}['_getDownloadEndpointURL'](){const _0x3538ea=_0x3a3cba;var _0x555d02;const _0x7821a0=this['_configService']['getConfig'](Q);return(_0x555d02=_0x7821a0==null?void 0x0:_0x7821a0[_0x3538ea(0x386)])!=null?_0x555d02:location['origin'];}[_0x3a3cba(0x424)](_0x57a6cb,_0xe65189){const _0x1715bb=_0x3a3cba;return _0x57a6cb['replace'](_0x1715bb(0x1cf),_0xe65189);}['_decreaseWaiting'](){const _0x2e993f=_0x3a3cba;this[_0x2e993f(0x2a8)]-=0x1,this[_0x2e993f(0x3c1)][_0x2e993f(0x519)](this['_waitCount']);}},exports[_0x3a3cba(0x49c)]=Lr([St(0x0,a['Inject'](z[_0x3a3cba(0x36b)])),St(0x1,a['IConfigService']),St(0x2,a[_0x3a3cba(0x4b4)](a['IUniverInstanceService']))],exports[_0x3a3cba(0x49c)]);var Wr=Object[_0x3a3cba(0x5d1)],Fr=Object[_0x3a3cba(0x42d)],Vr=(_0x27c87e,_0x13fd26,_0x383beb,_0xb9359b)=>{const _0x20ef2e=_0x3a3cba;for(var _0x363762=_0xb9359b>0x1?void 0x0:_0xb9359b?Fr(_0x13fd26,_0x383beb):_0x13fd26,_0x232a66=_0x27c87e[_0x20ef2e(0x16b)]-0x1,_0x217503;_0x232a66>=0x0;_0x232a66--)(_0x217503=_0x27c87e[_0x232a66])&&(_0x363762=(_0xb9359b?_0x217503(_0x13fd26,_0x383beb,_0x363762):_0x217503(_0x363762))||_0x363762);return _0xb9359b&&_0x363762&&Wr(_0x13fd26,_0x383beb,_0x363762),_0x363762;},ei=(_0x481585,_0xd7c017)=>(_0x541d5d,_0x3b4ef4)=>_0xd7c017(_0x541d5d,_0x3b4ef4,_0x481585);const Gr=_0x3a3cba(0x21b);exports[_0x3a3cba(0x47d)]=class{constructor(_0x27b8b9,_0x5d0789){const _0x2bef3b=_0x3a3cba;this[_0x2bef3b(0x4d1)]=_0x27b8b9,this[_0x2bef3b(0x3d7)]=_0x5d0789;}[_0x3a3cba(0x138)](){const _0x1d2d7a=_0x3a3cba;var _0x5db57d,_0x32609a;const _0x2d20e1=this[_0x1d2d7a(0x4d1)][_0x1d2d7a(0x3cc)](Ut),_0x423afd=this['_configService']['getConfig'](Q);return(_0x32609a=(_0x5db57d=_0x423afd==null?void 0x0:_0x423afd[_0x1d2d7a(0x339)])!=null?_0x5db57d:_0x2d20e1)!=null?_0x32609a:Gr;}async[_0x3a3cba(0x2b9)](_0x4004e1){const _0x296721=_0x3a3cba,_0x32c6fb=this[_0x296721(0x138)]()+_0x296721(0x378);return{'list':[{'title':_0x296721(0x5e3),'mentions':(await this[_0x296721(0x3d7)][_0x296721(0x449)](_0x32c6fb,{'params':{'objectID':_0x4004e1[_0x296721(0x168)],'unitID':_0x4004e1['unitId']}}))[_0x296721(0x4eb)][_0x296721(0x131)]['map'](_0xccd81e=>({'objectId':_0xccd81e['id'],'name':_0xccd81e[_0x296721(0x571)]['name'],'metadata':{'icon':_0xccd81e[_0x296721(0x571)][_0x296721(0x4c4)]},'label':_0xccd81e['subject'][_0x296721(0x203)],'objectType':a[_0x296721(0x56e)][_0x296721(0x14a)]})),'metadata':{},'type':a[_0x296721(0x56e)]['PERSON']}]};}},exports['MentionIoHttpService']=Vr([ei(0x0,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x311)])),ei(0x1,a[_0x3a3cba(0x4b4)](z['HTTPService']))],exports[_0x3a3cba(0x47d)]);var Yr=Object[_0x3a3cba(0x5d1)],Kr=Object[_0x3a3cba(0x42d)],qr=(_0x3d78e9,_0x602c97,_0x2589fd,_0x4298c2)=>{for(var _0x2d86d8=_0x4298c2>0x1?void 0x0:_0x4298c2?Kr(_0x602c97,_0x2589fd):_0x602c97,_0x296d22=_0x3d78e9['length']-0x1,_0x5be574;_0x296d22>=0x0;_0x296d22--)(_0x5be574=_0x3d78e9[_0x296d22])&&(_0x2d86d8=(_0x4298c2?_0x5be574(_0x602c97,_0x2589fd,_0x2d86d8):_0x5be574(_0x2d86d8))||_0x2d86d8);return _0x4298c2&&_0x2d86d8&&Yr(_0x602c97,_0x2589fd,_0x2d86d8),_0x2d86d8;},Ae=(_0x12b235,_0x75e8ca)=>(_0x4aa56b,_0x148b51)=>_0x75e8ca(_0x4aa56b,_0x148b51,_0x12b235);let qe=class extends a['RxDisposable']{constructor(_0xf74398,_0x2f85dc,_0x2c1abd,_0x167213,_0x2e15d6){const _0x3314f2=_0x3a3cba;super(),this[_0x3314f2(0x23e)]=_0xf74398,this[_0x3314f2(0x206)]=_0x2f85dc,this['_permissionService']=_0x2c1abd,this[_0x3314f2(0x546)]=_0x167213,this[_0x3314f2(0x507)]=_0x2e15d6,this[_0x3314f2(0x341)](),this[_0x3314f2(0x583)]();}[_0x3a3cba(0x583)](){const _0x12b49f=_0x3a3cba,_0x402bcb=async _0x3d175c=>{const _0x3c0518=_0x131b;(await this['_collaborationSessionService'][_0x3c0518(0x1e3)](_0x3d175c))[_0x3c0518(0x3ac)][_0x3c0518(0x17b)](V['filter'](_0x2a13e2=>_0x2a13e2[_0x3c0518(0x422)]===p[_0x3c0518(0x38b)][_0x3c0518(0x5d2)]),V[_0x3c0518(0x4d8)](this[_0x3c0518(0x541)]))[_0x3c0518(0x250)](_0x5c3bb6=>{const _0x56a69c=_0x3c0518,_0x54d4ee=_0x5c3bb6,{reason:_0x5a3759}=_0x54d4ee[_0x56a69c(0x19b)];this[_0x56a69c(0x23e)]['get'](te[_0x56a69c(0x28d)])[_0x56a69c(0x1bd)]({'type':Ce[_0x56a69c(0x45b)]['Error'],'content':this[_0x56a69c(0x507)]['t'](_0x56a69c(0x42e))+'('+_0x5a3759+')'}),this[_0x56a69c(0x19c)]['updatePermissionPoint'](new k[(_0x56a69c(0x1df))](_0x3d175c)['id'],!0x1),this[_0x56a69c(0x546)][_0x56a69c(0x445)](_0x3d175c);});};A['merge'](this['_univerInstanceService'][_0x12b49f(0x1f5)](a[_0x12b49f(0x231)]['UNIVER_SHEET']),this[_0x12b49f(0x206)]['getTypeOfUnitAdded$'](a[_0x12b49f(0x231)][_0x12b49f(0x1b1)]))[_0x12b49f(0x17b)](V['map'](_0x42bbec=>_0x42bbec[_0x12b49f(0x470)]()),V['filter'](_0x25febe=>!a[_0x12b49f(0x172)](_0x25febe)),V['takeUntil'](this[_0x12b49f(0x541)]))[_0x12b49f(0x250)](_0x5537ae=>{_0x402bcb(_0x5537ae);});}[_0x3a3cba(0x341)](){const _0x452bff=_0x3a3cba,_0x114a15=async _0x40a87c=>{const _0x334dfc=_0x131b;(await this[_0x334dfc(0x546)][_0x334dfc(0x1e3)](_0x40a87c))[_0x334dfc(0x3ac)]['pipe'](V['filter'](_0x308564=>_0x308564[_0x334dfc(0x422)]===p[_0x334dfc(0x38b)][_0x334dfc(0x3a2)]),V[_0x334dfc(0x4d8)](this[_0x334dfc(0x541)]))['subscribe'](_0x285f4a=>{const _0x4d6162=_0x334dfc,_0x51bbba=_0x285f4a,{objectId:_0x7901c2}=_0x51bbba[_0x4d6162(0x19b)],_0x185f5c=this[_0x4d6162(0x23e)][_0x4d6162(0x449)](ye[_0x4d6162(0x321)]);_0x7901c2===_0x40a87c?_0x185f5c[_0x4d6162(0x294)](_0x40a87c):_0x185f5c[_0x4d6162(0x52b)](_0x40a87c,_0x7901c2);});};A['merge'](this[_0x452bff(0x206)][_0x452bff(0x1f5)](a[_0x452bff(0x231)][_0x452bff(0x1b5)]),this['_univerInstanceService'][_0x452bff(0x1f5)](a[_0x452bff(0x231)][_0x452bff(0x1b1)]))[_0x452bff(0x17b)](V[_0x452bff(0x53a)](_0x5015e4=>_0x5015e4[_0x452bff(0x470)]()),V['filter'](_0x3e4615=>!a[_0x452bff(0x172)](_0x3e4615)),V['takeUntil'](this['dispose$']))[_0x452bff(0x250)](_0x93e6c5=>{_0x114a15(_0x93e6c5);});}};qe=qr([Ae(0x0,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x207)])),Ae(0x1,a['IUniverInstanceService']),Ae(0x2,a[_0x3a3cba(0x2d1)]),Ae(0x3,a[_0x3a3cba(0x4b4)](exports[_0x3a3cba(0x19d)])),Ae(0x4,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x2b2)]))],qe);var zr=Object[_0x3a3cba(0x5d1)],Xr=Object[_0x3a3cba(0x42d)],Jr=(_0x43fdb1,_0x15afc3,_0x1be342,_0x307993)=>{for(var _0x128751=_0x307993>0x1?void 0x0:_0x307993?Xr(_0x15afc3,_0x1be342):_0x15afc3,_0x42ff00=_0x43fdb1['length']-0x1,_0x66b547;_0x42ff00>=0x0;_0x42ff00--)(_0x66b547=_0x43fdb1[_0x42ff00])&&(_0x128751=(_0x307993?_0x66b547(_0x15afc3,_0x1be342,_0x128751):_0x66b547(_0x128751))||_0x128751);return _0x307993&&_0x128751&&zr(_0x15afc3,_0x1be342,_0x128751),_0x128751;},ti=(_0x33b7d3,_0x386592)=>(_0x275a9e,_0x3666bf)=>_0x386592(_0x275a9e,_0x3666bf,_0x33b7d3);exports[_0x3a3cba(0x4f8)]=class{constructor(_0x188d9d,_0x1eb461){const _0x3ceee8=_0x3a3cba;this['_configService']=_0x188d9d,this[_0x3ceee8(0x586)]=_0x1eb461;}async[_0x3a3cba(0x415)](_0x56df25,_0xef9119){const _0x13c5b9=_0x3a3cba;var _0x3b9ac0;const {unitID:_0x15f904,type:_0x724776,revision:_0x1cbab1=0x0}=_0xef9119,_0x285544=this[_0x13c5b9(0x3b9)]()+'/'+_0x724776+_0x13c5b9(0x39c)+_0x15f904+_0x13c5b9(0x1b0)+_0x1cbab1,_0x2ae5d8=(await this[_0x13c5b9(0x586)]['get'](_0x285544))[_0x13c5b9(0x4eb)],_0x2e9f29=(_0x3b9ac0=_0x2ae5d8[_0x13c5b9(0x4d9)])==null?void 0x0:_0x3b9ac0[_0x13c5b9(0x1c2)];if(_0x2e9f29){const _0x379ead=_0x2e9f29==null?void 0x0:_0x2e9f29[_0x13c5b9(0x2aa)],_0x4ff9b4=p[_0x13c5b9(0x54e)][_0x13c5b9(0x330)](p['b64DecodeUnicode'](_0x379ead));_0x2e9f29[_0x13c5b9(0x2aa)]=_0x4ff9b4,Object['entries'](_0x2e9f29[_0x13c5b9(0x2bc)])['forEach'](([,_0x3f72ad])=>{const _0x5940db=_0x13c5b9,_0x29e43f=_0x3f72ad[_0x5940db(0x2aa)],_0x3c01b7=p[_0x5940db(0x54e)][_0x5940db(0x330)](p[_0x5940db(0x27e)](_0x29e43f));_0x3f72ad[_0x5940db(0x2aa)]=_0x3c01b7;});}return _0x2ae5d8;}async[_0x3a3cba(0x244)](_0x1a2e04,_0x160f83){const _0x77ef18=_0x3a3cba,{unitID:_0x3e4559,type:_0x4608e0,blockID:_0x274a2e}=_0x160f83,_0x2df467=this[_0x77ef18(0x41a)]()+'/'+_0x4608e0+_0x77ef18(0x39c)+_0x3e4559+_0x77ef18(0x536)+_0x274a2e;return(await this[_0x77ef18(0x586)]['get'](_0x2df467))[_0x77ef18(0x4eb)];}async['getDeserializedSheetBlock'](_0x1be328,_0xc47721){const _0x48d827=_0x3a3cba,{unitID:_0x4eaaee,type:_0x34b0a6,blockID:_0x4a7eb5}=_0xc47721,_0x89bc8=this[_0x48d827(0x41a)]()+'/block/'+_0x34b0a6+_0x48d827(0x39c)+_0x4eaaee+'/block/'+_0x4a7eb5;return(await this[_0x48d827(0x586)][_0x48d827(0x449)](_0x89bc8))[_0x48d827(0x4eb)];}async[_0x3a3cba(0x1e0)](_0x16bb16,_0xce5341){const _0x218d32=_0x3a3cba,{unitID:_0x197cec,type:_0x881090,from:_0x6778c2,to:_0x165643}=_0xce5341,_0x3dfcda=this[_0x218d32(0x41a)]()+'/'+_0x881090+'/unit/'+_0x197cec+_0x218d32(0x4a8)+_0x6778c2+_0x218d32(0x362)+_0x165643;return(await this[_0x218d32(0x586)][_0x218d32(0x449)](_0x3dfcda))[_0x218d32(0x4eb)];}[_0x3a3cba(0x3b9)](){const _0x5504a0=_0x3a3cba;var _0x8af806;return(_0x8af806=this[_0x5504a0(0x4d1)][_0x5504a0(0x3cc)](ni))!=null?_0x8af806:this[_0x5504a0(0x41a)]();}[_0x3a3cba(0x41a)](){const _0x38b124=_0x3a3cba;var _0x52e8a6,_0x20ca7b;const _0x66545e=this[_0x38b124(0x4d1)][_0x38b124(0x3cc)](ii),_0x34a1d5=this[_0x38b124(0x4d1)][_0x38b124(0x3cc)](Q);return(_0x20ca7b=(_0x52e8a6=_0x34a1d5==null?void 0x0:_0x34a1d5[_0x38b124(0x234)])!=null?_0x52e8a6:_0x66545e)!=null?_0x20ca7b:ki;}async['getResourcesRequest'](_0x32bc7f,_0x25c2c0){const _0x3d0cb7=_0x3a3cba,_0x21ce8f='/universer-api/snapshot/'+_0x25c2c0['type']+_0x3d0cb7(0x39c)+_0x25c2c0[_0x3d0cb7(0x40b)]+'/resources';return(await this['_httpService']['get'](_0x21ce8f,{'params':{'resourceId':JSON['stringify'](_0x25c2c0[_0x3d0cb7(0x25c)])}}))[_0x3d0cb7(0x4eb)];}[_0x3a3cba(0x1ec)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0xcde7f8=_0x3a3cba;throw new Error(_0xcde7f8(0x2bb));}[_0x3a3cba(0x2e9)](){const _0x3128c3=_0x3a3cba;throw new Error(_0x3128c3(0x2bb));}['copyFileMeta'](){const _0x138b39=_0x3a3cba;throw new Error(_0x138b39(0x2bb));}['getLatestCsReqIdBySid'](){const _0x207c6a=_0x3a3cba;throw new Error(_0x207c6a(0x2bb));}},exports[_0x3a3cba(0x4f8)]=Jr([ti(0x0,a['IConfigService']),ti(0x1,a[_0x3a3cba(0x4b4)](z[_0x3a3cba(0x36b)]))],exports[_0x3a3cba(0x4f8)]);var Zr=Object['defineProperty'],Qr=Object['getOwnPropertyDescriptor'],eo=(_0xf188d6,_0x5242ea,_0x5db9aa,_0x40ea39)=>{const _0x154e81=_0x3a3cba;for(var _0x431bc9=_0x40ea39>0x1?void 0x0:_0x40ea39?Qr(_0x5242ea,_0x5db9aa):_0x5242ea,_0x502ef5=_0xf188d6[_0x154e81(0x16b)]-0x1,_0xdc9f98;_0x502ef5>=0x0;_0x502ef5--)(_0xdc9f98=_0xf188d6[_0x502ef5])&&(_0x431bc9=(_0x40ea39?_0xdc9f98(_0x5242ea,_0x5db9aa,_0x431bc9):_0xdc9f98(_0x431bc9))||_0x431bc9);return _0x40ea39&&_0x431bc9&&Zr(_0x5242ea,_0x5db9aa,_0x431bc9),_0x431bc9;},Ne=(_0x136c9d,_0x14f0c1)=>(_0x36feda,_0x325721)=>_0x14f0c1(_0x36feda,_0x325721,_0x136c9d);let Ct=class extends a['LocalUndoRedoService']{constructor(_0x253af2,_0x399b10,_0x13261c,_0x422da6,_0x1b9c13){const _0x2eb2ed=_0x3a3cba;super(_0x253af2,_0x399b10,_0x13261c),this[_0x2eb2ed(0x37c)]=_0x422da6,this[_0x2eb2ed(0x590)]=_0x1b9c13;}[_0x3a3cba(0x43d)](_0x1d1c87,_0x2df800){const _0x4a49a8=_0x3a3cba,_0x43d0e5=this[_0x4a49a8(0x184)](_0x1d1c87);if(_0x43d0e5)try{const _0x3d77b1=this['_transformStack'](_0x43d0e5,_0x2df800);this[_0x4a49a8(0x221)](_0x1d1c87,_0x3d77b1);}catch(_0x5cd839){this[_0x4a49a8(0x590)][_0x4a49a8(0x2e5)](_0x4a49a8(0x506),_0x5cd839),this['_clearUndo'](_0x1d1c87);}const _0x534f91=this[_0x4a49a8(0x3fd)](_0x1d1c87);if(_0x534f91)try{const _0x560bc5=this[_0x4a49a8(0x383)](_0x534f91,_0x2df800);this[_0x4a49a8(0x1d5)](_0x1d1c87,_0x560bc5);}catch(_0x46402b){this[_0x4a49a8(0x590)][_0x4a49a8(0x2e5)](_0x46402b),this[_0x4a49a8(0x5f1)](_0x1d1c87);}}[_0x3a3cba(0x1d6)](_0x597340){const _0x2faf01=_0x3a3cba,_0x2102ad=this['_getUndoStack'](_0x597340);_0x2102ad&&(_0x2102ad[_0x2faf01(0x16b)]=0x0,this[_0x2faf01(0x17d)]());}[_0x3a3cba(0x5f1)](_0x1e13f6){const _0x25d4a2=_0x3a3cba,_0x48751b=this[_0x25d4a2(0x3fd)](_0x1e13f6);_0x48751b&&(_0x48751b[_0x25d4a2(0x16b)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0xe5aace,_0x1396fe){const _0x42818f=_0x3a3cba;this[_0x42818f(0x486)][_0x42818f(0x38a)](_0xe5aace,_0x1396fe),this[_0x42818f(0x17d)]();}[_0x3a3cba(0x1d5)](_0x4784e4,_0xb10481){const _0x32a6dd=_0x3a3cba;this[_0x32a6dd(0x288)][_0x32a6dd(0x38a)](_0x4784e4,_0xb10481),this[_0x32a6dd(0x17d)]();}[_0x3a3cba(0x383)](_0x578fa3,_0x103e70){const _0x44ffbd=_0x3a3cba,_0x45cdb3=[];let _0x2afeab=_0x103e70,_0x2fdee1=_0x103e70;for(let _0x5442a8=_0x578fa3[_0x44ffbd(0x16b)]-0x1;_0x5442a8>=0x0;_0x5442a8--){const {unitID:_0xe8b2ac,undoMutations:_0x225770,redoMutations:_0x2d04ac}=_0x578fa3[_0x5442a8],_0x8abafc=this[_0x44ffbd(0x37c)][_0x44ffbd(0x295)](_0x2afeab,_0x225770),_0x42b4e7=this[_0x44ffbd(0x37c)][_0x44ffbd(0x295)](_0x2fdee1,_0x2d04ac);if(p['isTransformMutationsWithChangesetFailure'](_0x8abafc)||p[_0x44ffbd(0x1f8)](_0x42b4e7)){this[_0x44ffbd(0x590)]['error']('[CollaborationUndoRedoService]',_0x44ffbd(0x561),_0x8abafc,_0x42b4e7);break;}_0x2afeab=_0x8abafc['c1Prime'],_0x2fdee1=_0x42b4e7['c1Prime'],_0x45cdb3[_0x44ffbd(0x31b)]({'unitID':_0xe8b2ac,'undoMutations':_0x8abafc[_0x44ffbd(0x3c0)],'redoMutations':_0x42b4e7['m2Prime']});}return _0x45cdb3[_0x44ffbd(0x1ad)]();}};Ct=eo([Ne(0x0,a[_0x3a3cba(0x1c9)]),Ne(0x1,a['ICommandService']),Ne(0x2,a[_0x3a3cba(0x33b)]),Ne(0x3,p[_0x3a3cba(0x4d5)]),Ne(0x4,a[_0x3a3cba(0x4cc)])],Ct);class Li extends a[_0x3a3cba(0x3c4)]{constructor(){const _0x5b3afe=_0x3a3cba;super(),I(this,_0x5b3afe(0x4c7)),this['urlChange$']=A['fromEvent'](window,_0x5b3afe(0x408))[_0x5b3afe(0x17b)](A[_0x5b3afe(0x4d8)](this[_0x5b3afe(0x541)]),A[_0x5b3afe(0x2f5)](0x1),A[_0x5b3afe(0x1cd)](void 0x0));}['setParam'](_0x162915,_0x7b1880,_0xe12111=!0x1){const _0x4f16c2=_0x3a3cba,_0x2998d7=new URL(window[_0x4f16c2(0x5be)][_0x4f16c2(0x13e)]);_0x2998d7[_0x4f16c2(0x22f)][_0x4f16c2(0x38a)](_0x162915,_0x7b1880),_0xe12111?window[_0x4f16c2(0x3f6)][_0x4f16c2(0x4fa)]('','',_0x2998d7[_0x4f16c2(0x2c4)]()):window[_0x4f16c2(0x3f6)]['pushState']('','',_0x2998d7[_0x4f16c2(0x2c4)]());}[_0x3a3cba(0x2dd)](_0x579d71,_0xa974c1=!0x1){const _0xdac430=_0x3a3cba,_0x326f60=new URL(window['location'][_0xdac430(0x13e)]);_0x326f60[_0xdac430(0x22f)][_0xdac430(0x26b)](_0x579d71),_0xa974c1?window['history'][_0xdac430(0x4fa)]('','',_0x326f60[_0xdac430(0x2c4)]()):window[_0xdac430(0x3f6)]['pushState']('','',_0x326f60[_0xdac430(0x2c4)]());}[_0x3a3cba(0x50b)](_0x44e509){const _0x25c274=_0x3a3cba;var _0x17fd28;return(_0x17fd28=new URL(window[_0x25c274(0x5be)][_0x25c274(0x13e)])[_0x25c274(0x22f)][_0x25c274(0x449)](_0x44e509))!=null?_0x17fd28:void 0x0;}}var xi=Object[_0x3a3cba(0x5d1)],to=Object[_0x3a3cba(0x42d)],io=(_0x170c7e,_0x35bb09,_0x348bd0)=>_0x35bb09 in _0x170c7e?xi(_0x170c7e,_0x35bb09,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x348bd0}):_0x170c7e[_0x35bb09]=_0x348bd0,no=(_0x122486,_0x283b2c,_0x201a80,_0x1d4136)=>{const _0x119c10=_0x3a3cba;for(var _0x44209a=_0x1d4136>0x1?void 0x0:_0x1d4136?to(_0x283b2c,_0x201a80):_0x283b2c,_0x50aa84=_0x122486[_0x119c10(0x16b)]-0x1,_0x3a378e;_0x50aa84>=0x0;_0x50aa84--)(_0x3a378e=_0x122486[_0x50aa84])&&(_0x44209a=(_0x1d4136?_0x3a378e(_0x283b2c,_0x201a80,_0x44209a):_0x3a378e(_0x44209a))||_0x44209a);return _0x1d4136&&_0x44209a&&xi(_0x283b2c,_0x201a80,_0x44209a),_0x44209a;},He=(_0x4d196b,_0x3773eb)=>(_0x14644f,_0x170599)=>_0x3773eb(_0x14644f,_0x170599,_0x4d196b),so=(_0x2cbf3a,_0x2c1256,_0x21cefc)=>io(_0x2cbf3a,_0x2c1256+'',_0x21cefc);const ro=_0x3a3cba(0x1ff);exports['UniverCollaborationClientPlugin']=class extends a[_0x3a3cba(0x3a4)]{constructor(_0x1921be=Zi,_0x1cad3e,_0x54af93,_0x41aa21,_0x3ba17d){const _0x4d5b25=_0x3a3cba;super(),this['_config']=_0x1921be,this[_0x4d5b25(0x590)]=_0x1cad3e,this['_renderManagerService']=_0x54af93,this[_0x4d5b25(0x23e)]=_0x41aa21,this['_configService']=_0x3ba17d;const {..._0x5d08e2}=this['_config'];this[_0x4d5b25(0x4d1)][_0x4d5b25(0x53d)](Q,_0x5d08e2);}[_0x3a3cba(0x263)](){const _0x16582d=_0x3a3cba;this[_0x16582d(0x5dc)](),this[_0x16582d(0x266)]();}[_0x3a3cba(0x364)](){const _0x2bcb6c=_0x3a3cba;a[_0x2bcb6c(0x27f)](this[_0x2bcb6c(0x23e)],[[Ge],[Ve]]);}['onRendered'](){const _0x47226f=_0x3a3cba;this[_0x47226f(0x3d4)]();}[_0x3a3cba(0x5dc)](){const _0x3a1703=_0x3a3cba;var _0x550fcd,_0x6d82e9,_0x564560,_0x358b85;this['_injector'][_0x3a1703(0x16f)](a[_0x3a1703(0x444)])&&this[_0x3a1703(0x590)]['error'](_0x3a1703(0x55f),_0x3a1703(0x57a));const _0x172155=[[a[_0x3a1703(0x444)],{'useClass':Ct}],[exports['CollaborationSessionService']],[Dt],[wt,{'useClass':Li}],[exports['MemberService']],[exports[_0x3a1703(0x158)]],[z[_0x3a1703(0x289)]],[ke],[Fe],[Be],[We],[yt],[Ye],[Ke],[Rt],[qe],[Tt,{'useClass':(_0x6d82e9=(_0x550fcd=this[_0x3a1703(0x34d)])==null?void 0x0:_0x550fcd[_0x3a1703(0x53c)])!=null?_0x6d82e9:exports[_0x3a1703(0x367)]}],[p[_0x3a1703(0x174)],{'useClass':exports[_0x3a1703(0x4f8)]}],[a[_0x3a1703(0x560)],{'useClass':exports[_0x3a1703(0x2fc)]}],[ie[_0x3a1703(0x428)],{'useClass':exports[_0x3a1703(0x49c)]}],[a[_0x3a1703(0x576)],{'useClass':exports[_0x3a1703(0x47d)]}],[exports[_0x3a1703(0x5c9)]],[exports['DataLoaderController']],[exports[_0x3a1703(0x514)]],[Ge],[De],[Ve]];(_0x564560=this[_0x3a1703(0x34d)])!=null&&_0x564560[_0x3a1703(0x34a)]&&_0x172155[_0x3a1703(0x31b)]([ze,{'useClass':Un}]),a[_0x3a1703(0x5ba)](this[_0x3a1703(0x23e)],a[_0x3a1703(0x562)](_0x172155,(_0x358b85=this[_0x3a1703(0x34d)])==null?void 0x0:_0x358b85[_0x3a1703(0x49a)]));}[_0x3a3cba(0x3d4)](){const _0x5123e4=_0x3a3cba;this[_0x5123e4(0x5e6)](this[_0x5123e4(0x210)]['registerRenderModule'](a[_0x5123e4(0x231)][_0x5123e4(0x1b1)],[gt])),this[_0x5123e4(0x5e6)](this['_renderManagerService'][_0x5123e4(0x511)](a['UniverInstanceType'][_0x5123e4(0x1b5)],[It]));}['_initDependencies'](){const _0xbff4a8=_0x3a3cba;var _0x540802,_0x524c6a;this[_0xbff4a8(0x23e)]['get'](z['HTTPService'])['registerHTTPInterceptor']({'priority':0x14,'interceptor':z['ThresholdInterceptorFactory']({'maxParallel':0x6})}),(_0x540802=this[_0xbff4a8(0x34d)])!=null&&_0x540802[_0xbff4a8(0x4a0)]||this['_injector'][_0xbff4a8(0x449)](exports[_0xbff4a8(0x158)])[_0xbff4a8(0x21a)](),(_0x524c6a=this[_0xbff4a8(0x34d)])!=null&&_0x524c6a[_0xbff4a8(0x1e1)]&&a['touchDependencies'](this[_0xbff4a8(0x23e)],[[Ye]]),a[_0xbff4a8(0x27f)](this[_0xbff4a8(0x23e)],[[Ke],[De],[exports[_0xbff4a8(0x280)]],[exports['CollaborationController']],[exports[_0xbff4a8(0x514)]],[qe]]);}},so(exports['UniverCollaborationClientPlugin'],_0x3a3cba(0x12e),ro),exports[_0x3a3cba(0x376)]=no([a[_0x3a3cba(0x28b)](p[_0x3a3cba(0x269)],z[_0x3a3cba(0x4e7)]),He(0x1,a[_0x3a3cba(0x4cc)]),He(0x2,K[_0x3a3cba(0x16d)]),He(0x3,a[_0x3a3cba(0x4b4)](a[_0x3a3cba(0x207)])),He(0x4,a[_0x3a3cba(0x311)])],exports[_0x3a3cba(0x376)]),exports[_0x3a3cba(0x4ce)]=Ut,exports['COLLAB_CLIENT_CONFIG_KEY']=Q,exports[_0x3a3cba(0x13a)]=li,exports[_0x3a3cba(0x380)]=si,exports[_0x3a3cba(0x1de)]=q,exports[_0x3a3cba(0x2ac)]=Oi,exports[_0x3a3cba(0x387)]=Rt,exports[_0x3a3cba(0x233)]=ri,exports['HEARTBEAT_TIMEOUT_KEY']=Et,exports['ICollaborationSocketService']=Tt,exports[_0x3a3cba(0x3e7)]=wt,exports[_0x3a3cba(0x419)]=ci,exports[_0x3a3cba(0x21d)]=hi,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=ai,exports[_0x3a3cba(0x4b0)]=Wi,exports['SNAPSHOT_SERVER_URL_KEY']=ii,exports[_0x3a3cba(0x32c)]=ni,exports[_0x3a3cba(0x26e)]=se,exports[_0x3a3cba(0x152)]=Ii,exports[_0x3a3cba(0x438)]=Li,exports['deserializeToCombResponse']=di,exports[_0x3a3cba(0x52d)]=fi;
1
+ 'use strict';const _0x1b4be4=_0x446a;(function(_0x33927e,_0x597ad1){const _0x5a8649=_0x446a,_0x5ad8b8=_0x33927e();while(!![]){try{const _0x130ec3=-parseInt(_0x5a8649(0x142))/0x1+-parseInt(_0x5a8649(0x3b7))/0x2+parseInt(_0x5a8649(0x438))/0x3+parseInt(_0x5a8649(0x271))/0x4+-parseInt(_0x5a8649(0x363))/0x5+-parseInt(_0x5a8649(0x4b1))/0x6*(-parseInt(_0x5a8649(0x5c0))/0x7)+-parseInt(_0x5a8649(0x16b))/0x8*(parseInt(_0x5a8649(0x564))/0x9);if(_0x130ec3===_0x597ad1)break;else _0x5ad8b8['push'](_0x5ad8b8['shift']());}catch(_0x5a5749){_0x5ad8b8['push'](_0x5ad8b8['shift']());}}}(_0x3362,0x746c6));var Wi=Object[_0x1b4be4(0x3c9)],Fi=(_0x2355ab,_0x4a6d47,_0x5bf537)=>_0x4a6d47 in _0x2355ab?Wi(_0x2355ab,_0x4a6d47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bf537}):_0x2355ab[_0x4a6d47]=_0x5bf537,I=(_0x5d5649,_0x568854,_0xa84a1d)=>Fi(_0x5d5649,typeof _0x568854!=_0x1b4be4(0x512)?_0x568854+'':_0x568854,_0xa84a1d);Object[_0x1b4be4(0x3c9)](exports,Symbol['toStringTag'],{'value':_0x1b4be4(0x3f2)});const a=require('@univerjs/core'),A=require(_0x1b4be4(0x462)),V=require(_0x1b4be4(0x4a4)),Ie=require(_0x1b4be4(0x2b2)),z=require(_0x1b4be4(0x3a5)),ee=require(_0x1b4be4(0x1ef)),m=require(_0x1b4be4(0x507)),Vi=require('@univerjs/telemetry'),ge=require(_0x1b4be4(0x496)),J=require(_0x1b4be4(0x2a2)),k=require(_0x1b4be4(0x1f9)),q=require(_0x1b4be4(0x292)),te=require('@univerjs/drawing'),$t=require(_0x1b4be4(0x4ea)),Re=require('@univerjs/sheets-ui'),oe=require('react'),Gi=require(_0x1b4be4(0x217)),di=_0x1b4be4(0x21a),Yi=_0x1b4be4(0x3fa),fi=_0x1b4be4(0x1c6),qi=_0x1b4be4(0x1eb),Ki=0x7d0,vi=_0x1b4be4(0x14b),zi=_0x1b4be4(0x436),Xi=_0x1b4be4(0x33f),pi='HEARTBEAT_INTERVAL',Ji=0x7530,Ot=_0x1b4be4(0x2a4),Si=0x4e20,Zi=0x4e20,mi='RETRY_CONNECTING_MAX_COUNT',Qi=0x3,gi=_0x1b4be4(0x488),en=0x3e8,Ii=_0x1b4be4(0x3b0),tn=_0x1b4be4(0x1d9),Ci=_0x1b4be4(0x17c),nn=_0x1b4be4(0x245);var Ei=(_0x59518a=>(_0x59518a[_0x59518a[_0x1b4be4(0x2ba)]=0x0]=_0x1b4be4(0x2ba),_0x59518a[_0x59518a['OK']=0x1]='OK',_0x59518a[_0x59518a[_0x1b4be4(0x3b5)]=0x2]='INTERNAL_ERROR',_0x59518a[_0x59518a[_0x1b4be4(0x160)]=0x3]=_0x1b4be4(0x160),_0x59518a[_0x59518a[_0x1b4be4(0x219)]=0x4]=_0x1b4be4(0x219),_0x59518a[_0x59518a['UNAUTHENTICATED']=0x5]=_0x1b4be4(0x40c),_0x59518a[_0x59518a[_0x1b4be4(0x260)]=0x6]=_0x1b4be4(0x260),_0x59518a[_0x59518a[_0x1b4be4(0x478)]=0x7]=_0x1b4be4(0x478),_0x59518a[_0x59518a['TOO_MANY_REQUESTS']=0x8]=_0x1b4be4(0x4d1),_0x59518a[_0x59518a['COMPLETION_FINISHED']=0x9]=_0x1b4be4(0x2be),_0x59518a[_0x59518a['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x1b4be4(0x4d5),_0x59518a[_0x59518a[_0x1b4be4(0x244)]=0x1771]=_0x1b4be4(0x244),_0x59518a[_0x59518a[_0x1b4be4(0x5eb)]=0x1772]=_0x1b4be4(0x5eb),_0x59518a[_0x59518a[_0x1b4be4(0x44d)]=0x1773]=_0x1b4be4(0x44d),_0x59518a[_0x59518a[_0x1b4be4(0x5d0)]=0x1b59]=_0x1b4be4(0x5d0),_0x59518a[_0x59518a[_0x1b4be4(0x2e5)]=0x1b5a]=_0x1b4be4(0x2e5),_0x59518a[_0x59518a[_0x1b4be4(0x2d9)]=0x1b5b]=_0x1b4be4(0x2d9),_0x59518a[_0x59518a[_0x1b4be4(0x5ae)]=0x1b5c]=_0x1b4be4(0x5ae),_0x59518a[_0x59518a[_0x1b4be4(0x31c)]=0x1b5d]=_0x1b4be4(0x31c),_0x59518a[_0x59518a[_0x1b4be4(0x2cc)]=0x1f41]=_0x1b4be4(0x2cc),_0x59518a[_0x59518a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x59518a[_0x59518a['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x1b4be4(0x2a7),_0x59518a[_0x59518a['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x1b4be4(0x265),_0x59518a[_0x59518a['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x59518a[_0x59518a[_0x1b4be4(0x29a)]=0x232d]=_0x1b4be4(0x29a),_0x59518a[_0x59518a[_0x1b4be4(0x2e9)]=0x2711]=_0x1b4be4(0x2e9),_0x59518a[_0x59518a[_0x1b4be4(0x348)]=0x2712]=_0x1b4be4(0x348),_0x59518a[_0x59518a[_0x1b4be4(0x541)]=0x2713]=_0x1b4be4(0x541),_0x59518a[_0x59518a[_0x1b4be4(0x4bf)]=0x2714]=_0x1b4be4(0x4bf),_0x59518a[_0x59518a[_0x1b4be4(0x3ce)]=-0x1]=_0x1b4be4(0x3ce),_0x59518a))(Ei||{}),ie=(_0x14c300=>(_0x14c300[_0x14c300[_0x1b4be4(0x526)]=0x0]=_0x1b4be4(0x526),_0x14c300[_0x14c300['UNIVER_DOC']=0x1]=_0x1b4be4(0x435),_0x14c300[_0x14c300[_0x1b4be4(0x5b1)]=0x2]='UNIVER_SHEET',_0x14c300[_0x14c300[_0x1b4be4(0x5c5)]=0x3]=_0x1b4be4(0x5c5),_0x14c300[_0x14c300[_0x1b4be4(0x1cb)]=0x4]=_0x1b4be4(0x1cb),_0x14c300[_0x14c300[_0x1b4be4(0x3ce)]=-0x1]=_0x1b4be4(0x3ce),_0x14c300))(ie||{}),G=(_0x18e5d3=>(_0x18e5d3[_0x18e5d3['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x18e5d3[_0x18e5d3[_0x1b4be4(0x57f)]=0x1]=_0x1b4be4(0x57f),_0x18e5d3[_0x18e5d3[_0x1b4be4(0x15a)]=0x2]=_0x1b4be4(0x15a),_0x18e5d3[_0x18e5d3['LEAVE']=0x3]=_0x1b4be4(0x173),_0x18e5d3[_0x18e5d3[_0x1b4be4(0x31e)]=0x4]=_0x1b4be4(0x31e),_0x18e5d3[_0x18e5d3['HEARTBEAT']=0x5]='HEARTBEAT',_0x18e5d3[_0x18e5d3[_0x1b4be4(0x523)]=0x6]=_0x1b4be4(0x523),_0x18e5d3[_0x18e5d3[_0x1b4be4(0x3ce)]=-0x1]=_0x1b4be4(0x3ce),_0x18e5d3))(G||{}),Dt=(_0x18c9f1=>(_0x18c9f1[_0x18c9f1[_0x1b4be4(0x48a)]=0x0]='UNKNOWN_CODE',_0x18c9f1[_0x18c9f1['OK']=0x1]='OK',_0x18c9f1[_0x18c9f1[_0x1b4be4(0x5e5)]=0x2]=_0x1b4be4(0x5e5),_0x18c9f1[_0x18c9f1[_0x1b4be4(0x47f)]=0x3e9]=_0x1b4be4(0x47f),_0x18c9f1[_0x18c9f1[_0x1b4be4(0x308)]=0x3ea]=_0x1b4be4(0x308),_0x18c9f1[_0x18c9f1['UNRECOGNIZED']=-0x1]=_0x1b4be4(0x3ce),_0x18c9f1))(Dt||{}),bi=(_0x2cbb4f=>(_0x2cbb4f[_0x2cbb4f[_0x1b4be4(0x454)]=0x0]=_0x1b4be4(0x454),_0x2cbb4f[_0x2cbb4f[_0x1b4be4(0x4b5)]=0x1]=_0x1b4be4(0x4b5),_0x2cbb4f[_0x2cbb4f[_0x1b4be4(0x3c1)]=0x2]='HttpExport',_0x2cbb4f[_0x2cbb4f['UnitEmbedded']=0x3]=_0x1b4be4(0x2cd),_0x2cbb4f[_0x2cbb4f[_0x1b4be4(0x140)]=0x4]=_0x1b4be4(0x140),_0x2cbb4f[_0x2cbb4f['UNRECOGNIZED']=-0x1]=_0x1b4be4(0x3ce),_0x2cbb4f))(bi||{});const Z=_0x1b4be4(0x59d),rn={};function Ti(_0x1ffdd0){const _0x2e0e2b=_0x1b4be4;var _0x419dd2,_0x5e1d86,_0x38e29c,_0x49306d,_0x32bac5;const _0x304ba6=_0x1ffdd0[_0x2e0e2b(0x464)],_0xb868a=JSON[_0x2e0e2b(0x194)](_0x304ba6);switch(_0xb868a[_0x2e0e2b(0x1bf)]){case G['HEARTBEAT']:case G['HELLO']:{const _0x17173b=_0xb868a['infoRsp'];return{..._0xb868a,'data':_0x17173b,'cmd':_0xb868a[_0x2e0e2b(0x1bf)]};}case G[_0x2e0e2b(0x15a)]:{const _0x1a89f6=_0xb868a[_0x2e0e2b(0x4cd)];return{..._0xb868a,'data':_0x1a89f6,'cmd':_0xb868a[_0x2e0e2b(0x1bf)]};}case G[_0x2e0e2b(0x523)]:{const _0x4309fd=_0xb868a[_0x2e0e2b(0x52a)];switch(_0x4309fd['eventID']){case m['CollaborationEvent'][_0x2e0e2b(0x32a)]:return{..._0xb868a,'data':{..._0x4309fd,'data':(_0x419dd2=_0x4309fd[_0x2e0e2b(0x405)])==null?void 0x0:_0x419dd2['cs']},'cmd':_0xb868a[_0x2e0e2b(0x1bf)]};case m['CollaborationEvent'][_0x2e0e2b(0x486)]:return{..._0xb868a,'data':{..._0x4309fd,'data':(_0x5e1d86=_0x4309fd['csAckEvent'])==null?void 0x0:_0x5e1d86['cs']},'cmd':_0xb868a[_0x2e0e2b(0x1bf)]};case m[_0x2e0e2b(0x289)]['NEW_CHANGESETS']:return{..._0xb868a,'data':{..._0x4309fd,'data':(_0x38e29c=_0x4309fd[_0x2e0e2b(0x591)])==null?void 0x0:_0x38e29c['cs']},'cmd':_0xb868a['cmd']};case m[_0x2e0e2b(0x289)][_0x2e0e2b(0x386)]:return{..._0xb868a,'data':{..._0x4309fd,'data':(_0x49306d=_0x4309fd[_0x2e0e2b(0x440)])==null?void 0x0:_0x49306d['cs']},'cmd':_0xb868a[_0x2e0e2b(0x1bf)]};case m[_0x2e0e2b(0x289)][_0x2e0e2b(0x49e)]:return{..._0xb868a,'data':{..._0x4309fd,'data':(_0x32bac5=_0x4309fd[_0x2e0e2b(0x328)])==null?void 0x0:_0x32bac5['cs']},'cmd':_0xb868a[_0x2e0e2b(0x1bf)]};case m['CollaborationEvent'][_0x2e0e2b(0x4f1)]:return{..._0xb868a,'data':{..._0x4309fd,'data':_0x4309fd[_0x2e0e2b(0x39d)]},'cmd':_0xb868a[_0x2e0e2b(0x1bf)]};case m[_0x2e0e2b(0x289)][_0x2e0e2b(0x3fe)]:return{..._0xb868a,'data':{..._0x4309fd,'data':_0x4309fd[_0x2e0e2b(0x136)]},'cmd':_0xb868a[_0x2e0e2b(0x1bf)]};case m[_0x2e0e2b(0x289)][_0x2e0e2b(0x31a)]:return{..._0xb868a,'data':{..._0x4309fd,'data':_0x4309fd['leaveEvent']},'cmd':_0xb868a['cmd']};case m[_0x2e0e2b(0x289)][_0x2e0e2b(0x2fe)]:return{..._0xb868a,'data':{..._0x4309fd,'data':_0x4309fd[_0x2e0e2b(0x483)]},'cmd':_0xb868a['cmd']};case m[_0x2e0e2b(0x289)][_0x2e0e2b(0x383)]:case m[_0x2e0e2b(0x289)][_0x2e0e2b(0x4c9)]:return{..._0xb868a,'data':{..._0x4309fd,'data':_0x4309fd[_0x2e0e2b(0x385)]},'cmd':_0xb868a['cmd']};case m[_0x2e0e2b(0x289)][_0x2e0e2b(0x4aa)]:return{..._0xb868a,'data':{..._0x4309fd,'data':_0x4309fd[_0x2e0e2b(0x483)]},'cmd':_0xb868a['cmd']};case m[_0x2e0e2b(0x289)][_0x2e0e2b(0x379)]:return{..._0xb868a,'data':_0x4309fd,'cmd':_0xb868a[_0x2e0e2b(0x1bf)]};case m[_0x2e0e2b(0x289)][_0x2e0e2b(0x268)]:return{..._0xb868a,'data':{..._0x4309fd,'data':_0x4309fd[_0x2e0e2b(0x2ed)]},'cmd':_0xb868a[_0x2e0e2b(0x1bf)]};case m[_0x2e0e2b(0x289)][_0x2e0e2b(0x4de)]:return{..._0xb868a,'data':{..._0x4309fd,'data':_0x4309fd[_0x2e0e2b(0x52c)]},'cmd':_0xb868a[_0x2e0e2b(0x1bf)]};case m[_0x2e0e2b(0x289)][_0x2e0e2b(0x37e)]:return{..._0xb868a,'data':{..._0x4309fd,'data':_0x4309fd[_0x2e0e2b(0x337)]},'cmd':_0xb868a[_0x2e0e2b(0x1bf)]};default:return _0xb868a;}}default:return _0xb868a;}}function Ri(_0xe52c1b){const _0x4ac538=_0x1b4be4;switch(_0xe52c1b[_0x4ac538(0x1bf)]){case G[_0x4ac538(0x511)]:case G[_0x4ac538(0x57f)]:return JSON[_0x4ac538(0x397)]({'cmd':_0xe52c1b[_0x4ac538(0x1bf)],'routeKey':_0xe52c1b[_0x4ac538(0x2fc)]});case G[_0x4ac538(0x31e)]:{let _0x1b3fbe;switch(_0xe52c1b['data'][_0x4ac538(0x54f)]){case m[_0x4ac538(0x289)][_0x4ac538(0x4f1)]:{_0x1b3fbe={'eventID':m[_0x4ac538(0x289)]['UPDATE_CURSOR'],'updateCursorEvent':_0xe52c1b[_0x4ac538(0x464)][_0x4ac538(0x464)]};break;}case m[_0x4ac538(0x289)][_0x4ac538(0x31a)]:{_0x1b3fbe={'eventID':m[_0x4ac538(0x289)][_0x4ac538(0x31a)],'leaveEvent':_0xe52c1b[_0x4ac538(0x464)][_0x4ac538(0x464)]};break;}case m[_0x4ac538(0x289)][_0x4ac538(0x3fe)]:{_0x1b3fbe={'eventID':m[_0x4ac538(0x289)][_0x4ac538(0x3fe)],'joinEvent':_0xe52c1b[_0x4ac538(0x464)][_0x4ac538(0x464)]};break;}case m[_0x4ac538(0x289)][_0x4ac538(0x2fe)]:{_0x1b3fbe={'eventID':m[_0x4ac538(0x289)][_0x4ac538(0x2fe)],'liveShareNewHost':_0xe52c1b[_0x4ac538(0x464)]['data']};break;}case m['CollaborationEvent'][_0x4ac538(0x4c9)]:{_0x1b3fbe={'eventID':m[_0x4ac538(0x289)][_0x4ac538(0x4c9)],'liveShareOperation':_0xe52c1b[_0x4ac538(0x464)][_0x4ac538(0x464)]};break;}case m[_0x4ac538(0x289)][_0x4ac538(0x4aa)]:{_0x1b3fbe={'eventID':m[_0x4ac538(0x289)][_0x4ac538(0x4aa)],'liveShareTerminate':_0xe52c1b[_0x4ac538(0x464)][_0x4ac538(0x464)]};break;}case m[_0x4ac538(0x289)][_0x4ac538(0x1ae)]:{_0x1b3fbe={'eventID':m[_0x4ac538(0x289)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0xe52c1b['data']['data']};break;}case m[_0x4ac538(0x289)][_0x4ac538(0x383)]:{_0x1b3fbe={'eventID':m[_0x4ac538(0x289)][_0x4ac538(0x383)]};break;}default:_0x1b3fbe={'eventID':_0xe52c1b['data'][_0x4ac538(0x54f)]};}return JSON[_0x4ac538(0x397)]({'cmd':_0xe52c1b['cmd'],'routeKey':_0xe52c1b[_0x4ac538(0x2fc)],'collaMsg':_0x1b3fbe});}case G[_0x4ac538(0x15a)]:return JSON[_0x4ac538(0x397)]({'cmd':_0xe52c1b['cmd'],'routeKey':_0xe52c1b[_0x4ac538(0x2fc)],'joinReq':_0xe52c1b['data']});case G['LEAVE']:return JSON[_0x4ac538(0x397)]({'cmd':_0xe52c1b[_0x4ac538(0x1bf)],'routeKey':_0xe52c1b[_0x4ac538(0x2fc)],'leaveReq':_0xe52c1b[_0x4ac538(0x464)]});default:throw new Error(_0x4ac538(0x281));}}var sn=Object[_0x1b4be4(0x3c9)],on=Object['getOwnPropertyDescriptor'],an=(_0x201204,_0x5c9b0f,_0x35196d,_0x5da8c5)=>{const _0x3d7782=_0x1b4be4;for(var _0x1b455a=_0x5da8c5>0x1?void 0x0:_0x5da8c5?on(_0x5c9b0f,_0x35196d):_0x5c9b0f,_0x56c66d=_0x201204[_0x3d7782(0x1d6)]-0x1,_0x16c9ea;_0x56c66d>=0x0;_0x56c66d--)(_0x16c9ea=_0x201204[_0x56c66d])&&(_0x1b455a=(_0x5da8c5?_0x16c9ea(_0x5c9b0f,_0x35196d,_0x1b455a):_0x16c9ea(_0x1b455a))||_0x1b455a);return _0x5da8c5&&_0x1b455a&&sn(_0x5c9b0f,_0x35196d,_0x1b455a),_0x1b455a;},De=(_0x245458,_0x1938c7)=>(_0x48def2,_0x346248)=>_0x1938c7(_0x48def2,_0x346248,_0x245458);const Pt=a[_0x1b4be4(0x254)](_0x1b4be4(0x2a1));function cn(_0x13b1b8,_0x5bd649,_0x3bdcea){const _0x3cec88=_0x1b4be4;return _0x13b1b8+'/'+_0x5bd649+_0x3cec88(0x235)+_0x3bdcea+_0x3cec88(0x2af);}exports[_0x1b4be4(0x374)]=class extends a[_0x1b4be4(0x3a8)]{constructor(_0x4ae887,_0xd71ef,_0x33df7d,_0x5ab1dc,_0x2557e5){const _0x15cd15=_0x1b4be4;super(),this['_http']=_0x4ae887,this['_ws']=_0xd71ef,this[_0x15cd15(0x234)]=_0x33df7d,this[_0x15cd15(0x4fe)]=_0x5ab1dc,this[_0x15cd15(0x18e)]=_0x2557e5;}[_0x1b4be4(0x390)](_0x5b8629){const _0x53d933=_0x1b4be4,_0x16c26e=this[_0x53d933(0x49b)][_0x53d933(0x390)](_0x5b8629);if(!_0x16c26e)throw new Error(_0x53d933(0x315));const _0x55e648=new a[(_0x53d933(0x1d5))](),_0x33f22d=new A['Subject']();_0x55e648[_0x53d933(0x355)](_0x16c26e[_0x53d933(0x3b2)]['subscribe'](_0x50bc56=>_0x33f22d[_0x53d933(0x258)](_0x50bc56))),_0x55e648[_0x53d933(0x355)](a[_0x53d933(0x130)](()=>_0x33f22d[_0x53d933(0x169)]()));const _0x33eadb=new A[(_0x53d933(0x1a3))]();_0x55e648['add'](_0x16c26e[_0x53d933(0x470)]['subscribe'](_0x1f6acf=>_0x33eadb[_0x53d933(0x258)](_0x1f6acf))),_0x55e648['add'](a['toDisposable'](()=>_0x33eadb['complete']()));const _0x39dbf1=new A[(_0x53d933(0x1a3))]();_0x55e648[_0x53d933(0x355)](_0x16c26e[_0x53d933(0x4ba)]['subscribe'](_0x41acdf=>{const _0x534387=_0x53d933,_0x33f53f=Ti(_0x41acdf);_0x39dbf1[_0x534387(0x258)](_0x33f53f);})),_0x55e648['add'](a['toDisposable'](()=>_0x39dbf1[_0x53d933(0x169)]()));let _0x5a4175;const _0x5d18fb=()=>{const _0xfbb672=_0x53d933;_0x33eadb[_0xfbb672(0x258)](new Event(_0xfbb672(0x34b))),_0x33f22d[_0xfbb672(0x258)](new CloseEvent('connection\x20error')),_0x5a4175[_0xfbb672(0x588)]();};return _0x5a4175={'memberID':'','close$':_0x33f22d[_0x53d933(0x581)](),'error$':_0x33eadb[_0x53d933(0x581)](),'open$':_0x16c26e['open$'],'message$':_0x39dbf1[_0x53d933(0x581)](),'send':_0x199670=>{const _0x213018=_0x53d933;if(_0x199670[_0x213018(0x1bf)]===G[_0x213018(0x31e)]){if(_0x199670[_0x213018(0x464)][_0x213018(0x54f)]===m[_0x213018(0x289)][_0x213018(0x35a)]){this[_0x213018(0x1f7)](_0x5a4175,_0x199670['data'])[_0x213018(0x1c5)](_0x5549ec=>{const _0x4290a8=_0x213018;this[_0x4290a8(0x4fe)][_0x4290a8(0x218)](_0x5549ec),_0x5d18fb();});return;}if(_0x199670[_0x213018(0x464)]['eventID']===m[_0x213018(0x289)]['FETCH_MISSING']){const _0x539824=_0x199670[_0x213018(0x464)];this[_0x213018(0x431)](_0x539824)[_0x213018(0x561)](_0x1991f8=>{const _0x3c4b40=_0x213018;_0x39dbf1[_0x3c4b40(0x258)]({'cmd':G[_0x3c4b40(0x523)],'code':Dt['OK'],'routeKey':_0x539824[_0x3c4b40(0x464)][_0x3c4b40(0x4c2)],'routeType':'','data':{'eventID':m[_0x3c4b40(0x289)][_0x3c4b40(0x1d2)],'data':{'changesets':_0x1991f8}}});})[_0x213018(0x1c5)](_0x112b74=>{const _0x5cfc7d=_0x213018;this[_0x5cfc7d(0x4fe)]['error'](_0x112b74),_0x5d18fb();});return;}}_0x16c26e['send'](Ri(_0x199670));},'close':()=>{const _0x15c913=_0x53d933;_0x16c26e[_0x15c913(0x588)](),_0x55e648[_0x15c913(0x576)]();}},_0x5a4175;}async['_submitChangeset'](_0x3992d4,_0x30bb88){const _0x54e144=_0x1b4be4;var _0x1ddd9b,_0x3aee76;const {unitType:_0x522170,unitID:_0x23b682,changeset:_0x42dc49}=_0x30bb88[_0x54e144(0x464)],_0x564fc0={'unitID':_0x23b682,'memberID':_0x3992d4[_0x54e144(0x357)],'type':_0x522170,'changeset':m[_0x54e144(0x1f2)](_0x42dc49)},_0x4ac82e=this[_0x54e144(0x234)][_0x54e144(0x2c9)](Ii),_0x48f090=this[_0x54e144(0x234)][_0x54e144(0x2c9)](Z),_0x1691e8=cn((_0x3aee76=(_0x1ddd9b=_0x48f090==null?void 0x0:_0x48f090[_0x54e144(0x457)])!=null?_0x1ddd9b:_0x4ac82e)!=null?_0x3aee76:tn,_0x522170,_0x23b682);try{await this[_0x54e144(0x1b2)][_0x54e144(0x2c7)](_0x1691e8,{'body':_0x564fc0});}catch(_0x4ccffd){throw this[_0x54e144(0x4fe)]['error']('[CollaborationSession]',_0x54e144(0x1bc)),_0x4ccffd;}}async[_0x1b4be4(0x431)](_0x185891){const _0x55d0c4=_0x1b4be4,{unitID:_0x3c3ba7,from:_0x1eae25,to:_0x5f5186,unitType:_0x309e44}=_0x185891[_0x55d0c4(0x464)];return(await this[_0x55d0c4(0x18e)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x3c3ba7,'type':_0x309e44,'from':_0x1eae25,'to':_0x5f5186}))['changesets'];}},exports[_0x1b4be4(0x374)]=an([De(0x0,a[_0x1b4be4(0x5da)](z['HTTPService'])),De(0x1,a['Inject'](z['WebSocketService'])),De(0x2,a[_0x1b4be4(0x2ec)]),De(0x3,a[_0x1b4be4(0x509)]),De(0x4,m['ISnapshotServerService'])],exports['CollaborationSocketService']);const ln=_0x1b4be4(0x473);function hn(_0x1705da){const _0x54bcea=_0x1b4be4;return JSON[_0x54bcea(0x397)](_0x1705da)[_0x54bcea(0x1d6)];}class wt{constructor(){const _0x38d893=_0x1b4be4;I(this,_0x38d893(0x4ac),new A['Subject']()),I(this,_0x38d893(0x505),this['_commentUpdate$'][_0x38d893(0x581)]());}[_0x1b4be4(0x231)](_0xfc8c0){const _0x2cffaf=_0x1b4be4;this[_0x2cffaf(0x4ac)][_0x2cffaf(0x258)](_0xfc8c0);}}var _n=Object[_0x1b4be4(0x3c9)],un=Object['getOwnPropertyDescriptor'],dn=(_0x470a82,_0x22f7ed,_0x3f4114,_0x1c1ff0)=>{const _0x6d5f35=_0x1b4be4;for(var _0x9f470=_0x1c1ff0>0x1?void 0x0:_0x1c1ff0?un(_0x22f7ed,_0x3f4114):_0x22f7ed,_0x3bb8da=_0x470a82[_0x6d5f35(0x1d6)]-0x1,_0x488071;_0x3bb8da>=0x0;_0x3bb8da--)(_0x488071=_0x470a82[_0x3bb8da])&&(_0x9f470=(_0x1c1ff0?_0x488071(_0x22f7ed,_0x3f4114,_0x9f470):_0x488071(_0x9f470))||_0x9f470);return _0x1c1ff0&&_0x9f470&&_n(_0x22f7ed,_0x3f4114,_0x9f470),_0x9f470;},jt=(_0x31c281,_0x1c2de4)=>(_0x9255d4,_0xbc21d0)=>_0x1c2de4(_0x9255d4,_0xbc21d0,_0x31c281);exports[_0x1b4be4(0x41e)]=class extends a[_0x1b4be4(0x3a8)]{constructor(_0x397686,_0x45b64f){const _0x441cd9=_0x1b4be4;super(),I(this,_0x441cd9(0x4a1),new Map()),(this[_0x441cd9(0x471)]=_0x397686,this[_0x441cd9(0x585)]=_0x45b64f,this[_0x441cd9(0x424)](a[_0x441cd9(0x130)](A[_0x441cd9(0x351)](this[_0x441cd9(0x471)][_0x441cd9(0x5a1)](a[_0x441cd9(0x577)][_0x441cd9(0x5b1)])[_0x441cd9(0x33d)](V[_0x441cd9(0x342)](_0x2daf28=>_0x2daf28[_0x441cd9(0x133)]())),this['_univerInstanceService'][_0x441cd9(0x5a1)](a[_0x441cd9(0x577)][_0x441cd9(0x435)])['pipe'](V[_0x441cd9(0x342)](_0x12b79c=>_0x12b79c['getUnitId']())),this[_0x441cd9(0x471)][_0x441cd9(0x5a1)](a[_0x441cd9(0x577)][_0x441cd9(0x5c5)])[_0x441cd9(0x33d)](V[_0x441cd9(0x342)](_0x40c81e=>_0x40c81e['getUnitId']())))['subscribe'](_0x415665=>this[_0x441cd9(0x12c)](_0x415665)))));}[_0x1b4be4(0x3e3)](_0x17bb8c){const _0x214148=_0x1b4be4;this[_0x214148(0x585)][_0x214148(0x3e3)](_0x17bb8c);}[_0x1b4be4(0x278)](){const _0x15b15a=_0x1b4be4;return this[_0x15b15a(0x585)][_0x15b15a(0x278)]();}[_0x1b4be4(0x197)](_0x36f1fd,_0x46609c){const _0x493fc3=_0x1b4be4;let _0x5a22ac=this[_0x493fc3(0x4a1)][_0x493fc3(0x35b)](_0x36f1fd);_0x5a22ac||(_0x5a22ac=new fn(),this[_0x493fc3(0x4a1)][_0x493fc3(0x5c1)](_0x36f1fd,_0x5a22ac)),_0x5a22ac['updateMember'](_0x46609c);}['removeMember'](_0x400257,_0x80ff3c){const _0x3c60f4=_0x1b4be4,_0x1f655b=this[_0x3c60f4(0x4a1)][_0x3c60f4(0x35b)](_0x400257);_0x1f655b&&_0x1f655b[_0x3c60f4(0x4f4)](_0x80ff3c);}['getRoom'](_0x5a0a6f){const _0x812832=_0x1b4be4;return this[_0x812832(0x4a1)][_0x812832(0x35b)](_0x5a0a6f);}['getMember'](_0x909465,_0x28dd8e){const _0x8de959=_0x1b4be4,_0x4090f7=this[_0x8de959(0x4a1)][_0x8de959(0x35b)](_0x909465);if(_0x4090f7)return _0x4090f7['getMember'](_0x28dd8e);}[_0x1b4be4(0x12c)](_0x2b31ce){const _0x1c54df=_0x1b4be4,_0x58602d=this['_roomMembers']['get'](_0x2b31ce);_0x58602d&&(_0x58602d[_0x1c54df(0x576)](),this[_0x1c54df(0x4a1)][_0x1c54df(0x192)](_0x2b31ce));}['dispose'](){const _0x3f0526=_0x1b4be4;this[_0x3f0526(0x4a1)][_0x3f0526(0x3ee)](_0x29d43b=>_0x29d43b['dispose']()),this['_roomMembers']['clear']();}},exports['MemberService']=dn([jt(0x0,a['IUniverInstanceService']),jt(0x1,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x38e)]))],exports[_0x1b4be4(0x41e)]);class fn extends a[_0x1b4be4(0x3a8)]{constructor(){super(...arguments),I(this,'_members',new Map());}[_0x1b4be4(0x576)](){const _0x3ee0ff=_0x1b4be4;this[_0x3ee0ff(0x46b)][_0x3ee0ff(0x162)]();}[_0x1b4be4(0x197)](_0x1d0010){const _0x2f16b7=_0x1b4be4;this['_members'][_0x2f16b7(0x5c1)](_0x1d0010[_0x2f16b7(0x357)],_0x1d0010);}[_0x1b4be4(0x4f4)](_0x3e4abe){const _0x18f709=_0x1b4be4;this[_0x18f709(0x46b)][_0x18f709(0x192)](_0x3e4abe);}['getMember'](_0x5060dc){const _0x46f794=_0x1b4be4;return this[_0x46f794(0x46b)][_0x46f794(0x35b)](_0x5060dc);}[_0x1b4be4(0x14a)](){const _0xbd26b5=_0x1b4be4;return Array[_0xbd26b5(0x1a6)](this[_0xbd26b5(0x46b)][_0xbd26b5(0x1ab)]());}}var vn=Object[_0x1b4be4(0x3c9)],pn=Object[_0x1b4be4(0x3c7)],Sn=(_0x56009,_0x1a71be,_0x5e637b,_0xe6abbd)=>{const _0x214acb=_0x1b4be4;for(var _0x316d18=_0xe6abbd>0x1?void 0x0:_0xe6abbd?pn(_0x1a71be,_0x5e637b):_0x1a71be,_0x55738e=_0x56009[_0x214acb(0x1d6)]-0x1,_0x247569;_0x55738e>=0x0;_0x55738e--)(_0x247569=_0x56009[_0x55738e])&&(_0x316d18=(_0xe6abbd?_0x247569(_0x1a71be,_0x5e637b,_0x316d18):_0x247569(_0x316d18))||_0x316d18);return _0xe6abbd&&_0x316d18&&vn(_0x1a71be,_0x5e637b,_0x316d18),_0x316d18;},ue=(_0x4f2e3b,_0x3598f8)=>(_0x26349d,_0x71824)=>_0x3598f8(_0x26349d,_0x71824,_0x4f2e3b),ne=(_0x5f2cf9=>(_0x5f2cf9[_0x5f2cf9[_0x1b4be4(0x326)]=0x0]=_0x1b4be4(0x326),_0x5f2cf9[_0x5f2cf9['JOINING']=0x1]='JOINING',_0x5f2cf9[_0x5f2cf9['OFFLINE']=0x2]='OFFLINE',_0x5f2cf9[_0x5f2cf9[_0x1b4be4(0x163)]=0x3]=_0x1b4be4(0x163),_0x5f2cf9))(ne||{});exports[_0x1b4be4(0x276)]=class extends a[_0x1b4be4(0x472)]{constructor(_0xd12299,_0x1f375d,_0x3bb60e,_0x550e4a,_0x361332,_0x5e782c,_0x5506bc,_0x24568a,_0x5750fc,_0x5bb3fc){const _0x154d12=_0x1b4be4;super(),I(this,_0x154d12(0x4b0),new A['BehaviorSubject'](0x0)),I(this,_0x154d12(0x29d),this['_sessionStatus$'][_0x154d12(0x581)]()),I(this,'_event$',new A['Subject']()),I(this,_0x154d12(0x35f),this[_0x154d12(0x57d)][_0x154d12(0x581)]()),I(this,_0x154d12(0x494)),I(this,_0x154d12(0x508)),I(this,_0x154d12(0x3df)),I(this,_0x154d12(0x378),!0x1),I(this,_0x154d12(0x4e6),null),(this[_0x154d12(0x3ca)]=_0xd12299,this[_0x154d12(0x4fe)]=_0x3bb60e,this[_0x154d12(0x51c)]=_0x550e4a,this[_0x154d12(0x371)]=_0x361332,this[_0x154d12(0x234)]=_0x5e782c,this[_0x154d12(0x131)]=_0x5506bc,this[_0x154d12(0x580)]=_0x24568a,this[_0x154d12(0x38d)]=_0x5750fc,this['_telemetryService']=_0x5bb3fc,this[_0x154d12(0x378)]=!!this[_0x154d12(0x4d6)],_0x1f375d[_0x154d12(0x33d)](A['takeUntil'](this['dispose$']))[_0x154d12(0x559)](_0x1a9207=>{const _0x574be5=_0x154d12;var _0x4d59c1;typeof _0x1a9207>'u'||(this[_0x574be5(0x494)]=_0x1a9207,_0x1a9207?(this[_0x574be5(0x388)](_0x1a9207),this[_0x574be5(0x508)]=_0x1a9207['message$']['subscribe'](_0xa9e8df=>{const _0x1909ca=_0x574be5;_0xa9e8df[_0x1909ca(0x2fc)]===this[_0x1909ca(0x3ca)]&&this[_0x1909ca(0x20f)](_0xa9e8df);})):(this[_0x574be5(0x40e)](),this[_0x574be5(0x4b0)][_0x574be5(0x258)](0x2),(_0x4d59c1=this[_0x574be5(0x508)])==null||_0x4d59c1[_0x574be5(0x1a8)](),this[_0x574be5(0x508)]=null));}),this[_0x154d12(0x424)](this[_0x154d12(0x51c)][_0x154d12(0x1f6)](()=>{const _0x4bc31d=_0x154d12;var _0x51bced;(_0x51bced=this[_0x4bc31d(0x494)])==null||_0x51bced[_0x4bc31d(0x430)]({'cmd':G[_0x4bc31d(0x173)],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x1f0fb6=_0x1b4be4;return this[_0x1f0fb6(0x4b0)][_0x1f0fb6(0x51e)]();}[_0x1b4be4(0x3af)](){const _0x2f452e=_0x1b4be4;var _0x2cbd8e,_0x3c343e;return(_0x3c343e=(_0x2cbd8e=this['_socket'])==null?void 0x0:_0x2cbd8e[_0x2f452e(0x357)])!=null?_0x3c343e:null;}[_0x1b4be4(0x576)](){const _0x90e7ad=_0x1b4be4;super[_0x90e7ad(0x576)](),this[_0x90e7ad(0x372)]['next'](),this['dispose$']['complete']();}[_0x1b4be4(0x588)](){const _0x46f41d=_0x1b4be4;var _0x2e0e61,_0x53266d;this[_0x46f41d(0x40e)](),(_0x2e0e61=this[_0x46f41d(0x494)])==null||_0x2e0e61[_0x46f41d(0x430)]({'cmd':G[_0x46f41d(0x173)],'data':{'roomID':this[_0x46f41d(0x3ca)]}}),(_0x53266d=this[_0x46f41d(0x494)])==null||_0x53266d[_0x46f41d(0x588)](),this[_0x46f41d(0x57d)][_0x46f41d(0x169)](),this[_0x46f41d(0x4b0)]['complete'](),this['dispose']();}['_onCombEvent'](_0xe39ea8){const _0x4b9084=_0x1b4be4;_0xe39ea8[_0x4b9084(0x1bf)]===G[_0x4b9084(0x15a)]?this[_0x4b9084(0x239)](_0xe39ea8):_0xe39ea8[_0x4b9084(0x1bf)]===G[_0x4b9084(0x523)]&&this[_0x4b9084(0x5b0)](_0xe39ea8);}[_0x1b4be4(0x388)](_0x7dd750){const _0xfc863f=_0x1b4be4;this[_0xfc863f(0x4b0)][_0xfc863f(0x258)](0x1),_0x7dd750[_0xfc863f(0x430)]({'cmd':G['JOIN'],'routeKey':this[_0xfc863f(0x3ca)],'routeType':'','data':{'rooms':[{'roomID':this[_0xfc863f(0x3ca)]}]}});}[_0x1b4be4(0x239)](_0xe79ee4){const _0x1ceab7=_0x1b4be4;var _0x561a33;if(_0xe79ee4[_0x1ceab7(0x48c)]===Dt[_0x1ceab7(0x5e5)]){this[_0x1ceab7(0x371)][_0x1ceab7(0x53e)]({'type':Ie[_0x1ceab7(0x2a8)]['Warning'],'content':this[_0x1ceab7(0x131)]['t'](_0x1ceab7(0x42f))}),this[_0x1ceab7(0x4b0)][_0x1ceab7(0x258)](0x2);return;}this[_0x1ceab7(0x4b0)][_0x1ceab7(0x258)](0x3);const _0x35d906=(_0x561a33=_0xe79ee4[_0x1ceab7(0x464)][_0x1ceab7(0x4ce)][this['_unitID']])==null?void 0x0:_0x561a33[_0x1ceab7(0x15e)];_0x35d906&&_0x35d906[_0x1ceab7(0x3ee)](_0x11ef5a=>this[_0x1ceab7(0x580)]['updateMember'](this[_0x1ceab7(0x3ca)],_0x11ef5a));}[_0x1b4be4(0x5b0)](_0x59c218){const _0x5f37b0=_0x1b4be4;try{const _0x5f11eb=_0x59c218[_0x5f37b0(0x464)];switch(_0x5f11eb[_0x5f37b0(0x54f)]){case m['CollaborationEvent'][_0x5f37b0(0x3fe)]:this[_0x5f37b0(0x1e7)](_0x5f11eb),this[_0x5f37b0(0x57d)]['next'](_0x5f11eb);break;case m[_0x5f37b0(0x289)][_0x5f37b0(0x31a)]:this[_0x5f37b0(0x3b1)](_0x5f11eb),this[_0x5f37b0(0x57d)]['next'](_0x5f11eb);break;case m['CollaborationEvent']['CHANGESET_ACK']:case m['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x5f37b0(0x58c)](),this[_0x5f37b0(0x57d)][_0x5f37b0(0x258)](_0x5f11eb);break;case m[_0x5f37b0(0x289)]['MSG_FOR_ERROR']:this['_logService'][_0x5f37b0(0x218)](_0x5f37b0(0x211)+JSON[_0x5f37b0(0x397)](_0x5f11eb)),this[_0x5f37b0(0x57d)][_0x5f37b0(0x258)](_0x5f11eb);break;case m[_0x5f37b0(0x289)]['COMMENT_UPDATE']:this[_0x5f37b0(0x38d)][_0x5f37b0(0x231)](_0x5f11eb[_0x5f37b0(0x464)]),this[_0x5f37b0(0x57d)][_0x5f37b0(0x258)](_0x5f11eb);break;default:this[_0x5f37b0(0x57d)][_0x5f37b0(0x258)](_0x5f11eb);}}catch(_0x4cd494){this[_0x5f37b0(0x4fe)]['error'](_0x4cd494,_0x59c218);}}[_0x1b4be4(0x1e7)](_0xdebf18){const _0x11f667=_0x1b4be4;this[_0x11f667(0x580)][_0x11f667(0x197)](this[_0x11f667(0x3ca)],_0xdebf18['data']);}[_0x1b4be4(0x3b1)](_0x140993){const _0x33110b=_0x1b4be4;this['_memberService'][_0x33110b(0x4f4)](this[_0x33110b(0x3ca)],_0x140993[_0x33110b(0x464)]['memberID']);}async[_0x1b4be4(0x430)](_0x4bec78,_0x4e7b7c){const _0x13902f=_0x1b4be4;if(this[_0x13902f(0x2eb)]!==0x3||!this[_0x13902f(0x494)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x4bec78[_0x13902f(0x54f)]===m[_0x13902f(0x289)][_0x13902f(0x35a)]&&(this[_0x13902f(0x26e)](),this[_0x13902f(0x20b)](_0x4bec78)),this['_socket'][_0x13902f(0x430)]({'cmd':G['INGEST'],'routeKey':_0x4e7b7c,'routeType':'','data':_0x4bec78});}catch(_0x116402){this[_0x13902f(0x4fe)][_0x13902f(0x218)](_0x116402);}}[_0x1b4be4(0x26e)](){const _0x412529=_0x1b4be4;var _0x4351ec;this[_0x412529(0x3df)]=window[_0x412529(0x3f4)](()=>{const _0x262896=_0x412529;this[_0x262896(0x3df)]=null,this['_messageService'][_0x262896(0x53e)]({'type':Ie[_0x262896(0x2a8)][_0x262896(0x161)],'content':this[_0x262896(0x131)]['t'](_0x262896(0x419))});},(_0x4351ec=this[_0x412529(0x234)][_0x412529(0x2c9)](Ot))!=null?_0x4351ec:Si);}[_0x1b4be4(0x58c)](){const _0x3f8afc=_0x1b4be4;this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x3f8afc(0x3df)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x52379e){const _0x4c4600=_0x1b4be4;if(!this['_shouldReportTelemetry'])return;const {data:_0x83eaee}=_0x52379e,{unitID:_0x4246c3,changeset:_0x1404d3}=_0x83eaee,{mutations:_0x3f212d,type:_0x27f902}=_0x1404d3;this[_0x4c4600(0x4e6)]={'unitId':_0x4246c3,'type':_0x27f902,'startTime':performance[_0x4c4600(0x168)](),'stopTime':0x0,'duration':0x0,'size':hn(_0x3f212d)};}[_0x1b4be4(0x356)](){const _0xfc3190=_0x1b4be4;if(this['_shouldReportTelemetry']){if(!this[_0xfc3190(0x4e6)]){this[_0xfc3190(0x4fe)][_0xfc3190(0x218)]('[CollaborationSession]',_0xfc3190(0x123));return;}this[_0xfc3190(0x4e6)]['stopTime']=performance['now'](),this[_0xfc3190(0x4e6)][_0xfc3190(0x584)]=this['_telemetryInfo'][_0xfc3190(0x221)]-this[_0xfc3190(0x4e6)]['startTime'],this[_0xfc3190(0x4d6)][_0xfc3190(0x5a0)](ln,this[_0xfc3190(0x4e6)]),this[_0xfc3190(0x4e6)]=null;}}[_0x1b4be4(0x40e)](){const _0x4164c7=_0x1b4be4;this[_0x4164c7(0x4e6)]=null;}},exports[_0x1b4be4(0x276)]=Sn([ue(0x2,a[_0x1b4be4(0x509)]),ue(0x3,ee[_0x1b4be4(0x3c8)]),ue(0x4,ee[_0x1b4be4(0x182)]),ue(0x5,a[_0x1b4be4(0x2ec)]),ue(0x6,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x138)])),ue(0x7,a['Inject'](exports[_0x1b4be4(0x41e)])),ue(0x8,a[_0x1b4be4(0x5da)](wt)),ue(0x9,a['Optional'](Vi['ITelemetryService']))],exports[_0x1b4be4(0x276)]);var mn=Object[_0x1b4be4(0x3c9)],gn=Object['getOwnPropertyDescriptor'],In=(_0x2f42b3,_0x3658ce,_0x13376a,_0x34bdf8)=>{const _0x31311c=_0x1b4be4;for(var _0x286cef=_0x34bdf8>0x1?void 0x0:_0x34bdf8?gn(_0x3658ce,_0x13376a):_0x3658ce,_0x5f46e0=_0x2f42b3[_0x31311c(0x1d6)]-0x1,_0x5e462f;_0x5f46e0>=0x0;_0x5f46e0--)(_0x5e462f=_0x2f42b3[_0x5f46e0])&&(_0x286cef=(_0x34bdf8?_0x5e462f(_0x3658ce,_0x13376a,_0x286cef):_0x5e462f(_0x286cef))||_0x286cef);return _0x34bdf8&&_0x286cef&&mn(_0x3658ce,_0x13376a,_0x286cef),_0x286cef;},pe=(_0x1c84e1,_0x39a4bf)=>(_0x4bf85d,_0x308976)=>_0x39a4bf(_0x4bf85d,_0x308976,_0x1c84e1);exports[_0x1b4be4(0x4bb)]=class extends a[_0x1b4be4(0x3a8)]{constructor(_0x9bbbf9,_0x1a7e0a,_0xe27d45,_0x240596,_0x48ed01,_0xc76719,_0x58a90c){const _0x391a93=_0x1b4be4;super(),I(this,_0x391a93(0x4bd),new A[(_0x391a93(0x28f))](void 0x0)),I(this,'socket$',this[_0x391a93(0x4bd)][_0x391a93(0x581)]()),I(this,_0x391a93(0x3d2),null),I(this,_0x391a93(0x59f),new Map()),I(this,'_status$',new A['BehaviorSubject'](ne['IDLE'])),I(this,_0x391a93(0x2f3),this[_0x391a93(0x327)]['asObservable']()),I(this,_0x391a93(0x3d1),!0x1),I(this,'_retryConnectingTimer'),I(this,_0x391a93(0x441),0x0),I(this,_0x391a93(0x19a)),I(this,_0x391a93(0x527)),(this[_0x391a93(0x232)]=_0x9bbbf9,this[_0x391a93(0x131)]=_0x1a7e0a,this[_0x391a93(0x371)]=_0xe27d45,this[_0x391a93(0x4fe)]=_0x240596,this[_0x391a93(0x234)]=_0x48ed01,this['_socketService']=_0xc76719,this[_0x391a93(0x515)]=_0x58a90c,this[_0x391a93(0x293)]());}get[_0x1b4be4(0x494)](){const _0x1e6172=_0x1b4be4;return this[_0x1e6172(0x4bd)]['getValue']();}[_0x1b4be4(0x293)](){const _0x3d7605=_0x1b4be4;this[_0x3d7605(0x16f)](),this[_0x3d7605(0x4ab)]();}[_0x1b4be4(0x576)](){const _0x5e4067=_0x1b4be4;super[_0x5e4067(0x576)](),this['_sessions'][_0x5e4067(0x3ee)](_0xc5040f=>_0xc5040f[_0x5e4067(0x576)]()),this[_0x5e4067(0x59f)]['clear'](),this[_0x5e4067(0x327)]['complete']();}async[_0x1b4be4(0x525)](_0x2e00ea){const _0x746f12=_0x1b4be4;if(this[_0x746f12(0x59f)][_0x746f12(0x1b5)](_0x2e00ea))return this['_sessions'][_0x746f12(0x35b)](_0x2e00ea);this['_tryEnsureSocket']();const _0xcb3758=this[_0x746f12(0x232)][_0x746f12(0x2c5)](exports[_0x746f12(0x276)],_0x2e00ea,this[_0x746f12(0x4bd)][_0x746f12(0x581)]());return this['_sessions'][_0x746f12(0x5c1)](_0x2e00ea,_0xcb3758),_0xcb3758;}[_0x1b4be4(0x3ea)](_0x28d298){const _0x514c14=_0x1b4be4;var _0x2d6874;const _0x36a84d=this[_0x514c14(0x59f)][_0x514c14(0x35b)](_0x28d298);_0x36a84d&&(this[_0x514c14(0x59f)][_0x514c14(0x192)](_0x28d298),_0x36a84d[_0x514c14(0x588)]()),this[_0x514c14(0x59f)][_0x514c14(0x233)]||(_0x2d6874=this[_0x514c14(0x494)])==null||_0x2d6874[_0x514c14(0x588)]();}[_0x1b4be4(0x5b7)](){const _0x31f4bb=_0x1b4be4;this[_0x31f4bb(0x441)]=0x0,this[_0x31f4bb(0x3c6)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x31f4bb(0x3c6)]=null),this['_tryReconnect']();}async[_0x1b4be4(0x475)](){const _0x3624ea=_0x1b4be4;var _0x339bc5,_0x1e17a6,_0x3b5eb2;const _0x16ccd2=this[_0x3624ea(0x234)]['getConfig'](Z),_0x2582f2=(_0x339bc5=_0x16ccd2==null?void 0x0:_0x16ccd2[_0x3624ea(0x4df)])!=null?_0x339bc5:Xi;return(_0x3b5eb2=(_0x1e17a6=(await this[_0x3624ea(0x515)]['get'](_0x2582f2,{'headers':{'Content-Type':_0x3624ea(0x439)}}))[_0x3624ea(0x1a7)])==null?void 0x0:_0x1e17a6['ticket'])!=null?_0x3b5eb2:'';}['_createSocketURL'](_0x41504a){const _0x33d589=_0x1b4be4;var _0x38760a,_0x4865b3;const _0x1e329d=this['_configService']['getConfig'](vi),_0x360013=this[_0x33d589(0x234)]['getConfig'](Z),_0x939533=(_0x4865b3=(_0x38760a=_0x360013==null?void 0x0:_0x360013[_0x33d589(0x460)])!=null?_0x38760a:_0x1e329d)!=null?_0x4865b3:zi,_0x1698cb=new URL(_0x939533,window[_0x33d589(0x16c)][_0x33d589(0x4ee)]);return _0x1698cb[_0x33d589(0x252)]['set'](_0x33d589(0x1d0),_0x41504a),_0x1698cb[_0x33d589(0x1d1)]();}async[_0x1b4be4(0x520)](){const _0x4fb770=_0x1b4be4,_0x47cb6f=await this[_0x4fb770(0x475)](),_0x319579=this['_createSocketURL'](_0x47cb6f),_0x5c78dd=this[_0x4fb770(0x11f)][_0x4fb770(0x390)](_0x319579);return this[_0x4fb770(0x3d2)]=_0x5c78dd,_0x5c78dd;}async[_0x1b4be4(0x4c0)](){const _0x92ccc2=_0x1b4be4;var _0xb92626,_0x2c1322;try{const _0x55f998=(_0x2c1322=(_0xb92626=this[_0x92ccc2(0x494)])!=null?_0xb92626:this['_candidateSocket'])!=null?_0x2c1322:await this[_0x92ccc2(0x520)]();if(_0x55f998){const _0x4eddb4=_0x55f998[_0x92ccc2(0x430)];_0x55f998[_0x92ccc2(0x430)]=_0x42bba7=>(this[_0x92ccc2(0x1cd)](),_0x4eddb4['apply'](_0x55f998,[_0x42bba7])),_0x55f998['message$'][_0x92ccc2(0x559)](_0x172495=>this[_0x92ccc2(0x56f)](_0x55f998,_0x172495)),_0x55f998[_0x92ccc2(0x470)]['pipe'](V['take'](0x1))['subscribe'](_0x5455f5=>this['_logService'][_0x92ccc2(0x218)](_0x92ccc2(0x375),_0x5455f5)),_0x55f998['open$'][_0x92ccc2(0x33d)](V[_0x92ccc2(0x358)](0x1))[_0x92ccc2(0x559)](()=>{const _0x51266e=_0x92ccc2;this[_0x51266e(0x288)](_0x55f998);}),_0x55f998['close$']['pipe'](V[_0x92ccc2(0x358)](0x1))[_0x92ccc2(0x559)](_0x414f97=>{const _0x3e4771=_0x92ccc2;this[_0x3e4771(0x4fe)][_0x3e4771(0x2b6)]('[CollaborationSessionService]',_0x3e4771(0x1e4),_0x414f97),this['_onConnectionFailed']();});}}catch(_0x1b3451){this[_0x92ccc2(0x4fe)][_0x92ccc2(0x218)](_0x1b3451),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x4cc2a2){const _0xac24cd=_0x1b4be4;this['_logService'][_0xac24cd(0x2b6)](_0xac24cd(0x332),_0xac24cd(0x264)),_0x4cc2a2['send']({'cmd':G[_0xac24cd(0x57f)]}),this[_0xac24cd(0x1cd)]();}['_listenToOfflineEvent'](){const _0x198ddc=_0x1b4be4;window['addEventListener'](_0x198ddc(0x5aa),()=>this[_0x198ddc(0x1fb)]());}[_0x1b4be4(0x1fb)](){const _0x45ddd9=_0x1b4be4;this[_0x45ddd9(0x3d1)]=!0x1,this[_0x45ddd9(0x3d2)]=null,this[_0x45ddd9(0x327)][_0x45ddd9(0x258)](ne[_0x45ddd9(0x466)]),this[_0x45ddd9(0x4bd)]['next'](null),this['_clearTimeoutTimer'](),this[_0x45ddd9(0x3c2)]();}['_onConnectionFailed'](){const _0x58c47f=_0x1b4be4;var _0x2807d9;this[_0x58c47f(0x1fb)](),this[_0x58c47f(0x441)]<((_0x2807d9=this['_configService']['getConfig'](mi))!=null?_0x2807d9:Qi)?(this[_0x58c47f(0x371)]['show']({'key':_0x58c47f(0x2f5),'type':Ie['MessageType'][_0x58c47f(0x1ac)],'content':this['_localeService']['t']('session.will-retry')}),this[_0x58c47f(0x13b)]()):this[_0x58c47f(0x371)][_0x58c47f(0x53e)]({'key':'collaboration-session-retry','type':Ie[_0x58c47f(0x2a8)]['Error'],'content':this[_0x58c47f(0x131)]['t'](_0x58c47f(0x2da))});}[_0x1b4be4(0x4ab)](){const _0x27f510=_0x1b4be4,_0xfff967=()=>{const _0xb17fa1=_0x446a;this[_0xb17fa1(0x494)]||this[_0xb17fa1(0x5b7)]();},_0x31dca5=()=>{const _0x3f8a90=_0x446a;this[_0x3f8a90(0x494)]||document[_0x3f8a90(0x38b)]===_0x3f8a90(0x521)||this[_0x3f8a90(0x5b7)]();};window[_0x27f510(0x195)](_0x27f510(0x164),_0xfff967),document['addEventListener'](_0x27f510(0x30d),_0x31dca5);}[_0x1b4be4(0x13b)](){const _0x24fa95=_0x1b4be4;var _0x3d083a;const _0x65ce99=this[_0x24fa95(0x441)],_0x3ced9b=this['_configService'][_0x24fa95(0x2c9)](Z),_0x571f68=_0x65ce99===0x0?0x0:((_0x3d083a=_0x3ced9b==null?void 0x0:_0x3ced9b[_0x24fa95(0x172)])!=null?_0x3d083a:Zi)*0x2**_0x65ce99;this[_0x24fa95(0x3c6)]=window[_0x24fa95(0x3f4)](()=>{const _0x5b7e3a=_0x24fa95;clearTimeout(this[_0x5b7e3a(0x3c6)]),this[_0x5b7e3a(0x3c6)]=null,this[_0x5b7e3a(0x4c0)]();},_0x571f68),this[_0x24fa95(0x441)]+=0x1;}[_0x1b4be4(0x56f)](_0x1f34fd,_0xb38841){const _0x2c8ed9=_0x1b4be4,{cmd:_0xe50bdb}=_0xb38841;_0xe50bdb===G[_0x2c8ed9(0x57f)]&&!this[_0x2c8ed9(0x3d1)]&&(_0x1f34fd[_0x2c8ed9(0x357)]=_0xb38841[_0x2c8ed9(0x464)][_0x2c8ed9(0x357)],this[_0x2c8ed9(0x4bd)][_0x2c8ed9(0x258)](_0x1f34fd),this[_0x2c8ed9(0x327)]['next'](ne[_0x2c8ed9(0x163)]),this['_socketReady']=!0x0,this['_candidateSocket']=null),_0xe50bdb===G['HEARTBEAT']&&this[_0x2c8ed9(0x1f4)](),this['_rescheduleHeartbeat']();}[_0x1b4be4(0x1cd)](){const _0x30ec48=_0x1b4be4;var _0x4a5ea7;this[_0x30ec48(0x3c2)](),this[_0x30ec48(0x19a)]=window['setTimeout'](()=>this[_0x30ec48(0x122)](),(_0x4a5ea7=this[_0x30ec48(0x234)][_0x30ec48(0x2c9)](pi))!=null?_0x4a5ea7:Ji);}[_0x1b4be4(0x122)](){const _0x4dcc75=_0x1b4be4;this[_0x4dcc75(0x494)]['send']({'cmd':G[_0x4dcc75(0x511)]}),this['_waitForHeartbeatResponse']();}[_0x1b4be4(0x1b8)](){const _0x47c5d0=_0x1b4be4;var _0x4b278d;this[_0x47c5d0(0x527)]=window[_0x47c5d0(0x3f4)](()=>this[_0x47c5d0(0x314)](),(_0x4b278d=this[_0x47c5d0(0x234)][_0x47c5d0(0x2c9)](Ot))!=null?_0x4b278d:Si);}[_0x1b4be4(0x3c2)](){const _0x3d2ad8=_0x1b4be4;this[_0x3d2ad8(0x19a)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x594686=_0x1b4be4;this[_0x594686(0x527)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x594686(0x527)]=null);}},exports[_0x1b4be4(0x4bb)]=In([pe(0x0,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x3a0)])),pe(0x1,a['Inject'](a['LocaleService'])),pe(0x2,ee[_0x1b4be4(0x182)]),pe(0x3,a['ILogService']),pe(0x4,a[_0x1b4be4(0x2ec)]),pe(0x5,Pt),pe(0x6,a[_0x1b4be4(0x5da)](z[_0x1b4be4(0x3aa)]))],exports['CollaborationSessionService']);const Y=[];for(let r=0x0;r<0x100;++r)Y[_0x1b4be4(0x284)]((r+0x100)[_0x1b4be4(0x1d1)](0x10)[_0x1b4be4(0x487)](0x1));function Cn(_0x365c6c,_0x2c7102=0x0){const _0x3f071e=_0x1b4be4;return(Y[_0x365c6c[_0x2c7102+0x0]]+Y[_0x365c6c[_0x2c7102+0x1]]+Y[_0x365c6c[_0x2c7102+0x2]]+Y[_0x365c6c[_0x2c7102+0x3]]+'-'+Y[_0x365c6c[_0x2c7102+0x4]]+Y[_0x365c6c[_0x2c7102+0x5]]+'-'+Y[_0x365c6c[_0x2c7102+0x6]]+Y[_0x365c6c[_0x2c7102+0x7]]+'-'+Y[_0x365c6c[_0x2c7102+0x8]]+Y[_0x365c6c[_0x2c7102+0x9]]+'-'+Y[_0x365c6c[_0x2c7102+0xa]]+Y[_0x365c6c[_0x2c7102+0xb]]+Y[_0x365c6c[_0x2c7102+0xc]]+Y[_0x365c6c[_0x2c7102+0xd]]+Y[_0x365c6c[_0x2c7102+0xe]]+Y[_0x365c6c[_0x2c7102+0xf]])[_0x3f071e(0x4cc)]();}let ct;const En=new Uint8Array(0x10);function bn(){const _0x1bca0d=_0x1b4be4;if(!ct){if(typeof crypto>'u'||!crypto[_0x1bca0d(0x465)])throw new Error(_0x1bca0d(0x300));ct=crypto['getRandomValues']['bind'](crypto);}return ct(En);}const Tn=typeof crypto<'u'&&crypto[_0x1b4be4(0x43e)]&&crypto[_0x1b4be4(0x43e)][_0x1b4be4(0x3e5)](crypto),Ht={'randomUUID':Tn};function Rn(_0x4737a5,_0x3f1126,_0x37fc53){const _0x36b0a7=_0x1b4be4;if(Ht['randomUUID']&&!_0x3f1126&&!_0x4737a5)return Ht[_0x36b0a7(0x43e)]();_0x4737a5=_0x4737a5||{};const _0x11336f=_0x4737a5[_0x36b0a7(0x331)]||(_0x4737a5['rng']||bn)();return _0x11336f[0x6]=_0x11336f[0x6]&0xf|0x40,_0x11336f[0x8]=_0x11336f[0x8]&0x3f|0x80,Cn(_0x11336f);}var yn=Object[_0x1b4be4(0x3c9)],On=Object[_0x1b4be4(0x3c7)],Dn=(_0x4f7a89,_0x281cc1,_0xf031a5,_0x1a43fb)=>{const _0x36b103=_0x1b4be4;for(var _0x406b20=_0x1a43fb>0x1?void 0x0:_0x1a43fb?On(_0x281cc1,_0xf031a5):_0x281cc1,_0x190e24=_0x4f7a89[_0x36b103(0x1d6)]-0x1,_0x2e93d4;_0x190e24>=0x0;_0x190e24--)(_0x2e93d4=_0x4f7a89[_0x190e24])&&(_0x406b20=(_0x1a43fb?_0x2e93d4(_0x281cc1,_0xf031a5,_0x406b20):_0x2e93d4(_0x406b20))||_0x406b20);return _0x1a43fb&&_0x406b20&&yn(_0x281cc1,_0xf031a5,_0x406b20),_0x406b20;},lt=(_0x178391,_0x314f35)=>(_0x3ed579,_0x86626a)=>_0x314f35(_0x3ed579,_0x86626a,_0x178391);let Je=class{constructor(_0x3e657a,_0x5ea244,_0x851a37){const _0x5e6b71=_0x1b4be4;this[_0x5e6b71(0x232)]=_0x3e657a,this[_0x5e6b71(0x262)]=_0x5ea244,this['_renderManagerService']=_0x851a37;}[_0x1b4be4(0x200)](_0x4ac19a){const _0x12efbd=_0x1b4be4;this['_transformUndoRedoStack'](_0x4ac19a),this[_0x12efbd(0x593)](_0x4ac19a);}[_0x1b4be4(0x18d)](_0x24b25d){const _0xc9a19a=_0x1b4be4,{unitID:_0x2146a9}=_0x24b25d,_0x5e65bf=this['_renderManagerService'][_0xc9a19a(0x4e9)](_0x2146a9)['with'](J['DocIMEInputManagerService']),{redoCache:_0x346f0e}=_0x5e65bf[_0xc9a19a(0x44a)]();if(_0x346f0e[_0xc9a19a(0x1d6)]===0x0)return _0x24b25d;let _0x42721f=a['Tools'][_0xc9a19a(0x1c8)](_0x24b25d[_0xc9a19a(0x1ec)][0x0]);for(let _0x451404=0x0;_0x451404<_0x346f0e[_0xc9a19a(0x1d6)];_0x451404++){const _0x98f8b7={'id':_0xc9a19a(0x282),'params':{..._0x346f0e[_0x451404]}},_0x56496e=this[_0xc9a19a(0x262)][_0xc9a19a(0x5d5)](_0x42721f,_0x98f8b7,!0x1);if(m[_0xc9a19a(0x139)](_0x56496e))throw _0x56496e['error'];_0x42721f=_0x56496e[_0xc9a19a(0x4b3)];}return{...a['Tools'][_0xc9a19a(0x1c8)](_0x24b25d),'mutations':[_0x42721f]};}[_0x1b4be4(0x39e)](_0x2354c3){const _0xe3b3e2=_0x1b4be4,{unitID:_0x273929}=_0x2354c3,_0x2fe9cf=this[_0xe3b3e2(0x255)][_0xe3b3e2(0x4e9)](_0x273929)[_0xe3b3e2(0x1f0)](J[_0xe3b3e2(0x4ec)]),{undoCache:_0x1df256,redoCache:_0x46d887}=_0x2fe9cf['getUndoRedoMutationParamsCache']();if(_0x1df256[_0xe3b3e2(0x1d6)]===0x0||_0x46d887['length']===0x0)return;const _0x596ccc=[],_0x4f968e=[];let _0x25f293=a[_0xe3b3e2(0x59a)][_0xe3b3e2(0x1c8)](_0x2354c3['mutations'][0x0]),_0x3b028d=a[_0xe3b3e2(0x59a)][_0xe3b3e2(0x1c8)](_0x2354c3[_0xe3b3e2(0x1ec)][0x0]);for(let _0x5f1e7f=_0x1df256[_0xe3b3e2(0x1d6)]-0x1;_0x5f1e7f>=0x0;_0x5f1e7f--){const _0x545a78={'id':_0xe3b3e2(0x282),'params':{..._0x1df256[_0x5f1e7f]}},_0x414547={'id':_0xe3b3e2(0x282),'params':{..._0x46d887[_0x5f1e7f]}},_0x43d49b=this[_0xe3b3e2(0x262)][_0xe3b3e2(0x5d5)](_0x25f293,_0x545a78,!0x1),_0xab43cd=this[_0xe3b3e2(0x262)][_0xe3b3e2(0x5d5)](_0x3b028d,_0x414547,!0x1);if(m['isTransformMutationFailure'](_0x43d49b))throw _0x43d49b['error'];if(m[_0xe3b3e2(0x139)](_0xab43cd))throw _0xab43cd[_0xe3b3e2(0x218)];_0x596ccc[_0xe3b3e2(0x3f7)](_0x43d49b['m2Prime'][_0xe3b3e2(0x269)]),_0x4f968e['unshift'](_0xab43cd['m2Prime'][_0xe3b3e2(0x269)]),_0x25f293=_0x43d49b[_0xe3b3e2(0x4b3)],_0x3b028d=_0xab43cd[_0xe3b3e2(0x4b3)];}_0x2fe9cf[_0xe3b3e2(0x3b8)]({'undoCache':_0x596ccc,'redoCache':_0x4f968e});}[_0x1b4be4(0x593)](_0x546e9f){const _0x3464ea=_0x1b4be4,{unitID:_0x53aa55}=_0x546e9f,_0x11f03c=this[_0x3464ea(0x255)]['getRenderById'](_0x53aa55)[_0x3464ea(0x1f0)](J[_0x3464ea(0x4ec)]),_0x4b935b=_0x11f03c[_0x3464ea(0x249)]();if(_0x4b935b==null)return;const _0xa6a1d7=[{'id':_0x3464ea(0x282),'params':{'unitId':_0x546e9f[_0x3464ea(0x4c2)],'actions':null,'textRanges':[_0x4b935b]}}],_0x2e92b9=this[_0x3464ea(0x262)]['transformMutationsWithChangeset'](_0x546e9f,_0xa6a1d7);if(!m[_0x3464ea(0x1de)](_0x2e92b9))throw _0x2e92b9[_0x3464ea(0x218)];const _0x332b3f=_0x2e92b9['m2Prime'][0x0][_0x3464ea(0x269)][_0x3464ea(0x155)];Array[_0x3464ea(0x295)](_0x332b3f)&&_0x332b3f['length']&&_0x11f03c[_0x3464ea(0x3e9)](_0x332b3f[0x0]);}};Je=Dn([lt(0x0,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x3a0)])),lt(0x1,m[_0x1b4be4(0x1e1)]),lt(0x2,q['IRenderManagerService'])],Je);var Pn=Object['defineProperty'],wn=Object[_0x1b4be4(0x3c7)],Un=(_0x1445c9,_0xb9fc6c,_0x4eab24,_0x42f038)=>{const _0x5621d2=_0x1b4be4;for(var _0xdf10dc=_0x42f038>0x1?void 0x0:_0x42f038?wn(_0xb9fc6c,_0x4eab24):_0xb9fc6c,_0x168202=_0x1445c9[_0x5621d2(0x1d6)]-0x1,_0x146fc2;_0x168202>=0x0;_0x168202--)(_0x146fc2=_0x1445c9[_0x168202])&&(_0xdf10dc=(_0x42f038?_0x146fc2(_0xb9fc6c,_0x4eab24,_0xdf10dc):_0x146fc2(_0xdf10dc))||_0xdf10dc);return _0x42f038&&_0xdf10dc&&Pn(_0xb9fc6c,_0x4eab24,_0xdf10dc),_0xdf10dc;},Pe=(_0x3e9b26,_0x393fe0)=>(_0x34877b,_0x1a58a8)=>_0x393fe0(_0x34877b,_0x1a58a8,_0x3e9b26);exports['LocalCacheService']=class extends a[_0x1b4be4(0x3a8)]{constructor(_0x13c394,_0x467cc5,_0x4deac7,_0x3bf787,_0x42e0fb){const _0x26ead5=_0x1b4be4;super(),I(this,_0x26ead5(0x49f),new Map()),I(this,_0x26ead5(0x3dd),new Map()),I(this,_0x26ead5(0x47a),!0x1),(this[_0x26ead5(0x234)]=_0x13c394,this[_0x26ead5(0x29e)]=_0x467cc5,this['_beforeCloseService']=_0x4deac7,this[_0x26ead5(0x131)]=_0x3bf787,this[_0x26ead5(0x24e)]=_0x42e0fb,this[_0x26ead5(0x420)]());}[_0x1b4be4(0x3db)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x1a3008=_0x1b4be4;this[_0x1a3008(0x47a)]=!0x1;}['dispose'](){const _0x5bc715=_0x1b4be4;this[_0x5bc715(0x551)]()[_0x5bc715(0x561)](()=>super[_0x5bc715(0x576)]());}async['loadOfflineData'](_0x5ed321){const _0x6639bb=_0x1b4be4;return this[_0x6639bb(0x47a)]?null:this[_0x6639bb(0x29e)][_0x6639bb(0x583)](Bt(_0x5ed321));}async[_0x1b4be4(0x3da)](_0xa51f34,_0x4cd58e){const _0x3f3f4f=_0x1b4be4;return!!this[_0x3f3f4f(0x29e)][_0x3f3f4f(0x542)](_0xa51f34,_0x4cd58e);}['updateOfflineData'](_0x126716,_0x1e03b2,_0x2765f2,_0x5bb005){const _0x7386db=_0x1b4be4,_0xfdad59=this['_revisionService']['getCurrentRevOfUnit'](_0x126716);this[_0x7386db(0x49f)][_0x7386db(0x5c1)](_0x126716,{'unitID':_0x126716,'type':_0x1e03b2,'awaitingChangeset':_0x2765f2,'mutations':_0x5bb005,'rev':_0xfdad59}),this['_saveTaskMap'][_0x7386db(0x1b5)](_0x126716)||this[_0x7386db(0x592)](_0x126716);}[_0x1b4be4(0x592)](_0x577154){const _0x2159f2=_0x1b4be4,_0x402fad=this[_0x2159f2(0x51d)]();_0x402fad===0x0?this[_0x2159f2(0x4e1)](_0x577154):this[_0x2159f2(0x3dd)][_0x2159f2(0x5c1)](_0x577154,setTimeout(()=>this[_0x2159f2(0x4e1)](_0x577154),_0x402fad));}[_0x1b4be4(0x51d)](){const _0x5f287f=_0x1b4be4;var _0x4c4c33;return(_0x4c4c33=this[_0x5f287f(0x234)][_0x5f287f(0x2c9)](gi))!=null?_0x4c4c33:en;}['_saveCache'](_0x4c6060){const _0x461858=_0x1b4be4,_0x43f747=this[_0x461858(0x3dd)][_0x461858(0x35b)](_0x4c6060);return _0x43f747!==void 0x0&&window[_0x461858(0x1e9)](_0x43f747),this['_localStorageService']['setItem'](Bt(_0x4c6060),this[_0x461858(0x49f)][_0x461858(0x35b)](_0x4c6060))[_0x461858(0x561)](()=>this['_saveTaskMap']['delete'](_0x4c6060));}async[_0x1b4be4(0x551)](){const _0x570e9e=_0x1b4be4,_0x16545e=[];this[_0x570e9e(0x3dd)]['forEach']((_0xe4ed05,_0x3a9120)=>{const _0x1fb0cb=_0x570e9e;window[_0x1fb0cb(0x1e9)](_0xe4ed05),_0x16545e[_0x1fb0cb(0x284)](this[_0x1fb0cb(0x4e1)](_0x3a9120)[_0x1fb0cb(0x561)](()=>{const _0x47739f=_0x1fb0cb;this[_0x47739f(0x3dd)][_0x47739f(0x192)](_0x3a9120);}));}),await Promise[_0x570e9e(0x5ea)](_0x16545e);}[_0x1b4be4(0x420)](){const _0x506bfc=_0x1b4be4;this[_0x506bfc(0x424)](this[_0x506bfc(0x51c)][_0x506bfc(0x226)](()=>{const _0x5632df=_0x506bfc;if(this[_0x5632df(0x3dd)][_0x5632df(0x233)])return this[_0x5632df(0x131)]['t'](_0x5632df(0x5ce));}));}},exports[_0x1b4be4(0x3ec)]=Un([Pe(0x0,a[_0x1b4be4(0x2ec)]),Pe(0x1,a[_0x1b4be4(0x319)]),Pe(0x2,ee[_0x1b4be4(0x3c8)]),Pe(0x3,a['Inject'](a[_0x1b4be4(0x138)])),Pe(0x4,a[_0x1b4be4(0x5da)](m['RevisionService']))],exports[_0x1b4be4(0x3ec)]);function Bt(_0x3f0c7c){const _0x5724ea=_0x1b4be4;return _0x5724ea(0x2a9)+_0x3f0c7c;}function _0x3362(){const _0x1aef9d=['420036CXyNnE','application/json','_oKey','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','name','on-line-single','randomUUID','awaiting_with_pending','csRejEvent','_retryCount','onTransformSelections','_onRemoteRetry','localeService','react.element','onPointerMove$','AWAITING_WITH_PENDING','SEND_CHANGESET_TIMEOUT_KEY','decrypt','getUndoRedoMutationParamsCache','getColor','userID','ENSURE_SNAPSHOT_EXECUTION','image/gif','/universer-api/authz','history','auth.needGotoLoginAlert','incrementRevOfUnit','max','Undefined','PENDING','sendChangesetTimeout','collabSubmitChangesetUrl','Base64','__esModule','collabStatus.conflict','subunit','_toggleOffline','_sendingTimer','_nDataBytes','SHA1','collabWebSocketUrl','fetchMiss','rxjs','rev','data','getRandomValues','OFFLINE','CommandType','_onCursorDelete','\x20to\x20','find','_members','CompressMutationService','debounceTime','_collaborationController','actions','error$','_univerInstanceService','RxDisposable','collaboration_new_changeset','_xformMode','_getSessionTicket','fetchMissingChangesets','_scheduleClearOtherTimer','INVALID_ARGUMENT','_onRemoteRejected','_disabled','_hideTimer','hasOwnProperty','Unknown\x20user','SnapshotServerOverHTTPService','JOIN_ROOM_FULL','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','SheetsSelectionsService','getStateCache','liveShareNewHost','listCollaborators','CollaborationEntity','CHANGESET_ACK','slice','LOCAL_CACHE_INTERVAL','_collabCursorState$','UNKNOWN_CODE','ERROR_IMAGE','code','_range','InsertRangeMoveRightCommandId','_doReset','_loadSheet','ciphertext','_keySchedule','VIEW_MAIN','_socket','[CollaborationUndoRedoService]','@univerjs/docs','IImageIoService','Univer','substr','getMergeData','_ws','univer-online-status','state','CHANGESET_SHOULD_RETRY','_cachedData','fetch_missing','_roomMembers','collabCursorState$','setShapeProps','rxjs/operators','loadSheet','target','_minBufferSize','executeCommand','_clearScheduledTask','LIVESHARE_TERMINATE','_listenToOnlineEvent','_commentUpdate$','c1Prime','_anchorDot','extend','_sessionStatus$','1891698fvZKXm','_unlockTransition','m1Prime','socketService','HttpImport','json','imageSourceType','onPointerEnter$','onPointerLeave$','message$','CollaborationSessionService','displayName','_socket$','_docTransformStateCacheService','YUUMI_SUBSCRIPTION_NOT_FOUND','_tryEnsureSocket','toggleOnline','unitID','collab-text-anchor-','_clearUndo','_permissionService','unpad','getCurrentRevOfUnit','clearInterval','LIVESHARE_OPERATION','_transformHistoryAndStateStack','textEncoder','toLowerCase','joinRsp','roomInfos','_queuedRemoteChangesets','onTransformChange$','TOO_MANY_REQUESTS','subUnitId','registerRenderModule','_entityInit$','CHANGESET_REVISION_CONFILICT','_telemetryService','HEARTBEAT_TIMEOUT_KEY','removeParam','height','serializeRangeWithSheet','put','onReady','updatePermissionPoint','UPDATE_PERMISSION_OBJ','wsSessionTicketUrl','OTHER_CLIENTS_EDITING','_saveCache','ISnapshotServerService','UNIVER_COLLABORATION_CLIENT_PLUGIN','_drawRectRange','getTypeOfUnitAdded$','_telemetryInfo','RECT','onload','getRenderById','@univerjs/engine-formula','_render','DocIMEInputManagerService','msCrypto','origin','originalMeta','Plugin','UPDATE_CURSOR','collabStatus.synced','[PendingState]:\x20received\x20rejection.','removeMember','CONFLICT','BlockCipher','svg','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','SheetCollabCursorShape','revision','__Key__','_initCommandExecutedListener','IAuthzIoService','_logService','Decryptor','_iKey','_docClipboardService','collaborators','_themeService','useRef','commentUpdate$','purple300','@univerjs-pro/collaboration','_socketMessageSubscription','ILogService','conflict.title','blockSize','COMPRESS_MUTATION_APPLY','override','CipherParams','verdancy600','InsertSheetMutation','HEARTBEAT','symbol','_acknowledgedAwaitingChangeset','editing\x20status\x20changed\x20to','_httpService','fetchThroughInterceptors','useObservable','_roomMembers$','url','splice','storage','_beforeCloseService','_getSaveTimeout','getValue','RemoveRowCommandId','_createSocket','hidden','_scene','RECV','react.fragment','requireSession','UNIVER_UNKNOWN','_timeoutTimer','_color','_updateSubUnitFromURLParams','collaMsg','getActiveSheet','updatePermissionObjEvent','objectType','SessionStatus','_getRedoStack','SetWorksheetActivateCommand','/block/','getFocusedUnit','conflict.content','_docTransformIMECacheService','hasher','_eventUnsubscribe','onSyncEditingCollabCursor','univer-online-status-title','AES','handleDeleteRangeMoveLeft','_transformSelections','DocStateChangeManagerService','engine','show','signUrlServerUrl','registerComponent','YUUMI_RATE_OVER_LIMIT','setItem','RichTextEditingMutation','handleInsertRow','putCollaborators','_urlService','list','onlineStatusTitle','getOwnPropertySymbols','fillText','off-line-single_clip0_910_343','_initStatusComponent','_drawAnchor','m2Prime','eventID','WorkbookEditablePermission','exhaustSavingTask','SetDocZoomRatioOperation','defIds','onlineStatusIcon','_id','_onConflict','_initResize','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','subscribe','transformSelections','onRendered','moveTo','IMentionIOService','useDependency','[CollaborationEntity]','COLLAB_SUBMIT_CHANGESET_URL_KEY','then','substring','_onRefRangeChange','848403ugJHhr','gold400','every','_disableEditing','children','[OfflineState]:\x20received\x20changeset.','UniverIcon','IPermissionService','getCollabEntity$','url(#off-line-single_clip0_910_343)','fromEvent','_onMessage','_instanceService','_createInitialStateImpl','enableAuthServer','HmacMD5','StreamCipher','selection','dispose','UniverInstanceType','copyFileMeta','enableSingleActiveInstanceLock','startsWith','?url=','_getSnapshotAPIPrefix','_event$','save','HELLO','_memberService','asObservable','_change$','getItem','duration','_userManagerService','getUnhiddenWorksheets','/role','close','DesktopCollaborationStatusDisplayController','idSuffix','_unitStatus','_clearCollaborationTimeoutTimer','switchMap','isPermissionRej','ICommandService','_cursorInfo$','newCsEvent','_scheduleSaving','_transformPreviousActiveRange','distinctUntilChanged','UniverCollaborationClientPlugin','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','algo','ref','saveSheetBlock','Tools','setShowComponents','_invKeySchedule','collaboration-client.config','_lastPointer','_sessions','capture','getTypeOfUnitDisposed$','findNodePositionByCharIndex','floor','_doFinalize','createDecryptor','compute','_changesetSessionId','black','getCollabCursors$','offline','_createHelper','_state$','onMouseMove','APPLY_PERMISSION_DENIED','init','_onRecvEvent','UNIVER_SHEET','Workbook','_substituteRedoStack','redoState','resolve','getRangePointData','reconnect','_resendWithTimeout','unknown','DeleteRangeMoveLeftCommandId','DocCollaborationEntity','c2Prime','toggleOffline','onCommandExecuted','setConfig','21XUcXJd','set','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','_startSheetCollabCursor','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','UNIVER_SLIDE','FromArray','transform','defs','_awaitingChangeset','kdf','COLORS','width','setWaitCount','collaboration-client.offline-data-not-saved','isActive','APPLY_REJECT','_onRemoteACK','_process','unitId','_getSendChangesetTimeout','transformMutation','handleIRemoveCol','COLLAB_CLIENT_CONFIG_KEY','_send','_updateLocalCache','Inject','_startCollaboration','/object','synced','div','onStateChange','_data','min','words','collab-client.tooltip.reconnect','IUniverInstanceService','FAIL','fill','_resendTimer','ReplaySubject','ERROR_EXCEED_SIZE','all','SNAPSHOT_HAS_BEEN_REMOVED','refreshPermission','/allowed','IContextService','_collabCursorController','_initDependencies','_map','_transformStateCache','\x20in\x20_schedule.','_getDownloadEndpointURL','_socketService','loadOfflineData','text','_sendHeartbeat','telemetry\x20info\x20is\x20not\x20initialized','[PendingState]:\x20unhandled\x20univer\x20type:\x20','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_startDocCollabCursor','_singleActiveUnitService','[UniverCollaborationClientPlugin]','session','number','_syncEditingCollabCursor','_removeRoom','clipPath','BASE64','createCollaborator','toDisposable','_localeService','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','getUnitId','hovered','ceil','joinEvent','translate(.97)','LocaleService','isTransformMutationFailure','_colorAssignService','_tryReconnect','failed\x20to\x20apply\x20missed\x20changesets!','encrypt','none','[OfflineState]:\x20received\x20acknowledgement.','UnitSnapshot','_hash','19566tJmAZR','assign','LOCAL_CACHE_INTERVAL_KEY','Pkcs7','_updateCollabCursors','roomMembers','Fragment','OffLineSingle','getAllMembers','COLLAB_WEB_SOCKET_URL','onTransformRemoteChangesetByIMECache','className','onTransformIME','_getAnchorBounding','_getCtorByUniverType','toRgbString','_applyRemoteChangeset','univer-offline','DEFAULT_FILE_NAME','textRanges','_createInitialState','collaboratorID','NodePositionConvertToRectRange','getAncestorScale','JOIN','iterations','currentTheme$','contains','members','triggerDblclick','PERMISSION_DENIED','Error','clear','ONLINE','online','entries','split','Malformed\x20UTF-8\x20data','now','complete','selections','8obWNcc','location','_changesetReqId','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','_listenToOfflineEvent','_iv','ranges','retryConnectingInterval','LEAVE','getOffsetConfig','enc','randomBytes','_waitCount','subscribeEvent','_hovered','skeleton','_hover','LOGIN_URL_KEY','handleInsertRangeMoveDown','reduce','univer-pro.collaboration-client.single-active-unit-service','urlChange$','confirm','IMessageService','NOT_COLLAB','_online','Hex','[DataLoaderController]','BuiltInUIPart','registerHTTPInterceptor','path','HEADER_MENU','CollaborationStatusDisplay','_session','transformRemoteChangeset','_snapshotServerService','_backgroundColor','endRow','transformUndoRedo','delete','collaboration.closeRoom','parse','addEventListener','FETCH_MISS','updateMember','_unitOnClients','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_sendHeartbeatTimer','getDocRanges','_document','_initCloseConn','keySize','setInterval','repeat','uploadFileServerUrl','isTransformChangesetsSuccess','Subject','requestParams','Encryptor','from','body','unsubscribe','font','createElement','values','Warning','_getAPIPrefix','LIVESHARE_REQUEST_HOST','_docSkeletonManagerService','getUnitStatus$','FETCH_MISSING','_http','_transformUndoredo','on-line-single_clip0_910_349','has','reset','beginPath','_waitForHeartbeatResponse','DocSkeletonManagerService','measureText','onMissingChangesets','submit\x20changeset\x20error!','fillRule','_ENC_XFORM_MODE','cmd','_getUploadFileURL','_textBubble','restore','evenodd','currentColor','catch','SNAPSHOT_URL_KEY','ERROR_IMAGE_TYPE','deepClone','_transformStack','buffer','UNIVER_PROJECT','/rev/','_rescheduleHeartbeat','0\x200\x2017\x2016','cursorInfo','sessionTicket','toString','PSEUDO_FETCH_MISSING_RESULT','...','title','DisposableCollection','length','roomMembers$','AUTHZ_URL_KEY','/universer-api/comb','action','includes','avatar','collab-rect-range-','isTransformMutationsWithChangesetSuccess','_drawTextRange','getTime','ITransformService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','{fileID}','socket\x20close','encode','_initUnitPermissionChange','_onUserJoin','EvpKDF','clearTimeout','runRefRangeMutations','SEND_CHANGESET_TIMEOUT','mutations','DeleteRangeMoveUpCommandId','cursorInfo$','@univerjs/ui','with','_HTTPService','parseChangesetToProtocol','endColumn','_clearTimeoutTimer','Hasher','registerOnClose','_submitChangeset','_showConflictNotification','@univerjs/sheets','cfg','_onOffline','?size=','_collabSessionService','propertyIsEnumerable','_handleHeartbeatEvent','transformIMECache','fromCharCode','formatter','reqId','_docStateChangeManagerService','HMAC','EffectRefRangId','\x0aAfter:\x20','labelPosition','fromEventSubject','responseType','_startTelemetryCollaborationNewChangeset','_type','getInterceptPoints','collaboration.single-unit.warning','_onCombEvent','getUnitType','save\x20fail\x20reason\x20is\x20','_parse','replaceDocRanges','_exhaustRemoteChangesetQueue','POST','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','@univerjs/rpc','error','NOT_FOUND','SNAPSHOT_SERVER_URL_KEY','_keyPriorReset','_updateURLWithCurrentState','hide','_transformIMECache','NoPadding','updateOfflineData','stopTime','debounce','_reverseMap','mode','appendMutation','registerBeforeClose','changesets','_doProcessBlock','TEXT','rgba(255,\x20255,\x20255,\x200.01)','Shape','onTransformState','DocSelectionManagerService','_onFetchMissResult','getUniverSheetInstance','reject','onCommentUpdate','_injector','size','_configService','/unit/','setParam','SheetPermissionInitController','undoState','_onJoinRoomEvent','_substituteUndoStack','icon','_getLoginPath','lib','resize','onRemoteAck','editingUnit','_replaceFileID','update','encryptBlock','SNAPSHOT_INVALID_SNAPSHOT','/universer-api/oidc/authpage','call','src','_undoRedoService','getActiveRange','ThemeService','compose','round','connectInjector','_revisionService','jiqing500','_getAPIPrefixPath','1em','searchParams','$super','createIdentifier','_renderManagerService','sin','top','next','Rect','_getScale','objectActions','M0\x200H16V16H0z','_loadDoc','row','workbook','ALREADY_EXISTS','_lockTransition','_transformService','snapshotServerUrl','socket\x20open.','LICENSE_IMPORT_SIZE_EXCEEDED','AWAITING','/-/object/-/batch_allowed','COMMENT_UPDATE','params','getMember','_incrementRevisionNumber','_clearLocalCache','subject','_scheduleCollaborationTimeoutTimer','_transformRemoteChangesetByStateCache','Could\x20not\x20dynamically\x20require\x20\x22','2091588QkNnkl','_syncEditingCollabCursorService','takeUntil','_transformRemoteChangesetByIMECache','setAlpha','CollaborationSession','onlyLocal','getCurrentUser','docStateChange$','_labelPosition','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','newValue','/collaborator','_initStatusListener','_cursor','replace','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','doc.mutation.rich-text-editing','_isPermissionRej','push','MentionType','syncEditingCollabCursor','loadDoc','_onConnectionOpen','CollaborationEvent','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','create','_draw','addObject','concat','BehaviorSubject','mergeOverrideWithDependencies','univer-online','@univerjs/engine-render','_initEventListeners','apply','isArray','forwardRef','attrs','Base','ColorKit','LICENSE_DISTRO_REJECTED','currentSkeleton$','colorChannel1','sessionStatus$','_localStorageService','_toggleOnline','_refreshCollabCursors','univer-pro.collaboration-client-socket-service','@univerjs/docs-ui','enableOfflineEditing','HEARTBEAT_TIMEOUT','_pendingMutations','processBlock','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','MessageType','unit-cache-','_sender','mapDocumentTypeToUniverType','_imageSourceCache','_handleLeaveEvent','sheetId','/new_changes','function','_resendTimeout','@univerjs/design','/-/object/list','WebURLService','_getMergeRange','debug','SetTextSelectionsOperation','NEW_CHANGESETS','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','UNDEFINED','activeSheet$','getSheetObject','_updateStatus','COMPLETION_FINISHED','getSkeleton','[FetchMissState]','_sheetTransformSelectionsService','pauseCollaboration','_handleHover','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','createInstance','_scheduleHeartbeat','post','getCollabEntity','getConfig','unit','deserializeRangeWithSheet','CONNECTOR_DATA_TOO_LARGE','UnitEmbedded','addObjects','ThresholdInterceptorFactory','COLLAB_WEB_SOCKET_URL_KEY','_doCryptBlock','ImageIoService','IDocClipboardService','IRenderManagerService','_shapes','_imageIoService','_localCacheService','drawWith','APPLY_REVISION_CONFILICT','session.connection-failed','pending','Cipher','_schedule','RevisionService','startColumn','indexOf','IRemoteInstanceService','_compressMutationService','sigBytes','loginUrlKey','APPLY_NON_SEQUENTIAL_REVISION','unload','getSheetBySheetId','collabStatus.offline','YUUMI_UNABLE_LOAD_URL','lineTo','sessionStatus','IConfigService','commentUpdateEvent','MUTATION','Utf8','decryptBlock','getCoordByCell','initWorkbookPermissionChange','status$','conflict','collaboration-session-retry','startRow','salt','_ensureSubject','ImageUploadStatusType','_nRounds','_name','routeKey','shareReplay','LIVESHARE_NEW_HOST','finalize','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','_docSyncEditingCollabCursorService','OnLineSingle','collabStatus.notCollab','trim','onRemoteChangeset','_refRangeService','collabStatus.syncing','JOIN_ROOM_NOT_ALLOWED','WordArray','WebSocketService','NO_OTHER_CLIENTS_EDITING','xlink:href','visibilitychange','uni.network.url-service','_snapshotService','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','assignAColorForMemberID','batchAllowed','throttleTime','_onConnectionFailed','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','filter','crypto','[CollaborationState]:\x20apply\x20error!','ILocalStorageService','USERS_LEAVE','INotificationService','APPLY_DUPLICATED','clone','INGEST','univerjs-icon\x20univerjs-icon-','_scheduleTimestamp','_checkMissing','tag','key','_collaborationPaused','href','IDLE','_status$','csShouldRetryEvent','baseRev','PERMISSION_REJ','_assignedColors','string','[OfflineState]:\x20received\x20rejection.','MD5','interceptor','parseProtocolChangeset','random','[CollaborationSessionService]','PERSON','useCallback','byteLength','type','shouldCloseConn','backgroundColor','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','onlineStatus','authzUrl','execute','pipe','/object/','/universer-api/user/session-ticket','IUIPartsService','_updateState','map','fromCollab','withCredentials','reverse','combineLatest','getImage','YUUMI_URL_COL_OUT_OF_RANGE','_onRemoteChangeset','getResourcesRequest','connection\x20error','range','not_collab','encodeURIComponent','_remoteChangesetQueue','_sheetSkeletonManagerService','merge','status','awaiting','UUID','add','_stopTelemetryCollaborationNewChangeset','memberID','take','_anchor','SUBMIT_CHANGESET','get','change$','_onLocalMutation','permission.title','event$','EXCHANGE_SIGN_URL_SERVER_URL_KEY','touchDependencies','mapTo','2572735BbDXew','updateCollaborator','_heartbeatTimer','replaceState','b64DecodeUnicode','_colorIndex','Rectangle','_selfUnitIDs','MentionIoHttpService','bottom','collab-text-range-','_removeClearOtherTimer','sid','pad','_messageService','dispose$','getRelativeToViewportCoord','CollaborationSocketService','[CollaborationSessionService]:\x20socket\x20error','charAt','padding','_shouldReportTelemetry','MSG_FOR_ERROR','RegularPolygon','_handler','handleMoveRange','join','SHOULD_CLOSE_CONN','_createHmacHelper','makeDirty','ImageSourceType','IURLService','LIVESHARE_FETCH_OPERATIONS','x-univer-host','liveShareOperation','CHANGESET_REJ','clamp','_joinRoom','_notificationService','setStateCache','visibilityState','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','_commentService','UserManagerService','Error\x20on\x20receiving\x20event','createSocket','result','getLatestCsReqIdBySid','image/jpg','_state','focused$','handleIRemoveRow','stringify','ReactCurrentOwner','mixIn','onRemoteRej','/universer-api/file/{fileID}/sign-url','_replayCachedMutations','updateCursorEvent','_transformUndoRedoStack','_append','Injector','TEXT_RANGE_LAYER_INDEX','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','getSheetId','_cipher','@univerjs/network','_getCurrentRevision','_commandService','Disposable','isEditing','HTTPService','Optional','IUndoRedoService','_executeRemoteChangeset','_getSignURL','getMemberID','COLLAB_SUBMIT_CHANGESET_URL','_onUserLeave','close$','arc','_removeCollabCursors','INTERNAL_ERROR','transformChangesets','1007016thPQFW','setUndoRedoMutationParamsCache','isInternalEditorID','_transitionLocked','transformStateCache','_initMergeInterceptor','getSheetBlock','onRemoteRetry','generateRandomId','some','HttpExport','_clearHeartbeatTimer','saveImage','url(#$1','use','_retryConnectingTimer','getOwnPropertyDescriptor','IBeforeCloseService','defineProperty','_unitID','getUnitOnRev','_prevBlock','pushState','UNRECOGNIZED','_cursorShapes','disposeUnit','_socketReady','_candidateSocket','onMissedChangesetFetched','CollaborationController','flatMap','/fetchmissing?from=','AuthzIoHttpService','_uiPartsService','_context','saveOfflineData','disableLocalCache','#fff','_saveTaskMap','COMPRESS_MUTATION_SEND','_collaborationTimeoutTimer','_onCursorUpdate','color','SheetCollaborationEntity','setCurrentUser','saveSnapshot','bind','headers','blue400','_entities','setActiveRange','closeSession','_collaborationSessionService','LocalCacheService','_getUndoStack','forEach','onTransformRemoteChangesetByStateCache','allowed','_getSheetObject','Module','Vector2','setTimeout','_cursors','SYNCED','unshift','resend','onSendChangeset','/universer-api/snapshot','getCurrentSelections','ACTIVE_UNIT_EVENT_CHANNEL','DOC_RANGE_TYPE','USERS_ENTER','DataLoaderController','_handleEvent','defaultProps','patch','_createHandler','closePath','permissionRejEvent','charCodeAt','image/bmp','_updateLocalCursor','transformMutationsWithChangeset','getUnit','column','UNAUTHENTICATED','registerRefRange','_throwTelemetryCollaborationNewChangeset','state$','/universer-api/snapshot/','getParam','exports','_clearRedo','_config','byteOffset','prototype','isTransformMutationsWithChangesetFailure','_initRequestHeader','session.collaboration-timeout','_clearOtherTimers','__creator','format','_registerRenderDependencies','MemberService','_handleJoinEvent','_setupBeforeClosingHandler','_init','InsertRowCommandId','_decreaseWaiting','disposeWithMe','awaitingChangeset','listRoles','image/jpeg','jsx','sequenceExecute','_key','_hasher','deleteCollaborator','createEncryptor','objectID','session.room-full','send','_fetchMissChangesets','SetSelectionsOperation','HTTPRequest','roles','UNIVER_DOC','ws://127.0.0.1:8000/universer-api/comb/connect','_mode'];_0x3362=function(){return _0x1aef9d;};return _0x3362();}var Mn=Object['defineProperty'],An=Object[_0x1b4be4(0x3c7)],Nn=(_0x530f10,_0x14dc52,_0x3f1c96,_0x2f7bd4)=>{const _0x5bf688=_0x1b4be4;for(var _0x3e274c=_0x2f7bd4>0x1?void 0x0:_0x2f7bd4?An(_0x14dc52,_0x3f1c96):_0x14dc52,_0x5d6dcb=_0x530f10[_0x5bf688(0x1d6)]-0x1,_0x5427e2;_0x5d6dcb>=0x0;_0x5d6dcb--)(_0x5427e2=_0x530f10[_0x5d6dcb])&&(_0x3e274c=(_0x2f7bd4?_0x5427e2(_0x14dc52,_0x3f1c96,_0x3e274c):_0x5427e2(_0x3e274c))||_0x3e274c);return _0x2f7bd4&&_0x3e274c&&Mn(_0x14dc52,_0x3f1c96,_0x3e274c),_0x3e274c;},ht=(_0x168937,_0x5cb6fe)=>(_0x8d7db9,_0x41c062)=>_0x5cb6fe(_0x8d7db9,_0x41c062,_0x168937);function Ln(_0x19762b){const _0x5343fb=_0x1b4be4,{unitID:_0x315d48,mutations:_0x560e61}=_0x19762b;return{'unitId':_0x315d48,'subUnitId':_0x560e61[0x0][_0x5343fb(0x269)][_0x5343fb(0x4d2)]};}let Ze=class{constructor(_0x2a4371,_0x560066,_0xf2835d){const _0x2acf50=_0x1b4be4;this['_injector']=_0x2a4371,this[_0x2acf50(0x262)]=_0x560066,this[_0x2acf50(0x570)]=_0xf2835d;}[_0x1b4be4(0x55a)](_0x50f48f){const _0x2be99d=_0x1b4be4;var _0x32d010,_0x2f7f2f,_0x1e22a0,_0x25ed6f;const _0x5d545b=this[_0x2be99d(0x232)]['get'](k[_0x2be99d(0x481)]),{unitId:_0x8e7083,subUnitId:_0x4f8e13}=Ln(_0x50f48f),_0x1f7bec=_0x5d545b['getWorkbookSelections'](_0x8e7083)[_0x2be99d(0x3fb)](),_0x4d9597=(_0x2f7f2f=(_0x32d010=this[_0x2be99d(0x570)][_0x2be99d(0x40a)](_0x8e7083))==null?void 0x0:_0x32d010[_0x2be99d(0x52b)]())==null?void 0x0:_0x2f7f2f[_0x2be99d(0x3a3)]();if(_0x1f7bec[_0x2be99d(0x1d6)]===0x0||!_0x8e7083||!_0x4f8e13)return;const _0x3ef690=[{'id':k[_0x2be99d(0x432)]['id'],'params':{'unitId':_0x8e7083,'subUnitId':_0x4d9597,'selections':a[_0x2be99d(0x59a)][_0x2be99d(0x1c8)](_0x1f7bec)}}],_0x4e5deb=this[_0x2be99d(0x262)][_0x2be99d(0x409)](_0x50f48f,_0x3ef690);if(!m[_0x2be99d(0x1de)](_0x4e5deb))throw _0x4e5deb[_0x2be99d(0x218)];const _0x55a25d=(_0x25ed6f=(_0x1e22a0=_0x4e5deb['m2Prime'][0x0])==null?void 0x0:_0x1e22a0[_0x2be99d(0x269)])==null?void 0x0:_0x25ed6f['selections'];if(Array[_0x2be99d(0x295)](_0x55a25d)&&_0x55a25d['length']){if(_0x55a25d['length']===_0x3ef690[0x0]['params'][_0x2be99d(0x16a)][_0x2be99d(0x1d6)]&&_0x55a25d[_0x2be99d(0x566)]((_0x54e35f,_0x9e1b30)=>a[_0x2be99d(0x369)]['equals'](_0x54e35f[_0x2be99d(0x34c)],_0x3ef690[0x0][_0x2be99d(0x269)][_0x2be99d(0x16a)][_0x9e1b30][_0x2be99d(0x34c)])))return;this[_0x2be99d(0x232)][_0x2be99d(0x35b)](a[_0x2be99d(0x58f)])[_0x2be99d(0x4a8)](k[_0x2be99d(0x432)]['id'],{'unitId':_0x8e7083,'subUnitId':_0x4d9597,'selections':_0x55a25d});}}};Ze=Nn([ht(0x0,a[_0x1b4be4(0x5da)](a['Injector'])),ht(0x1,m[_0x1b4be4(0x1e1)]),ht(0x2,a[_0x1b4be4(0x5e4)])],Ze);const ot=a[_0x1b4be4(0x254)](_0x1b4be4(0x17f));var yi=(_0x2cca64=>(_0x2cca64[_0x2cca64[_0x1b4be4(0x30b)]=0x0]=_0x1b4be4(0x30b),_0x2cca64[_0x2cca64[_0x1b4be4(0x4e0)]=0x1]='OTHER_CLIENTS_EDITING',_0x2cca64))(yi||{});const kt=0x7530,Wt=_0x1b4be4(0x3fc);class xn extends a['Disposable']{constructor(){const _0x2bcee0=_0x1b4be4;super(),I(this,'_id',a[_0x2bcee0(0x59a)][_0x2bcee0(0x3bf)]()),I(this,_0x2bcee0(0x36a),new Set()),I(this,'_unitOnClients',new Map()),I(this,_0x2bcee0(0x365),null),I(this,_0x2bcee0(0x41a),new Map()),I(this,_0x2bcee0(0x58b),new Map()),this[_0x2bcee0(0x421)]();}[_0x1b4be4(0x576)](){const _0x5c4907=_0x1b4be4;super['dispose'](),this[_0x5c4907(0x41a)]['forEach']((_0x55b184,_0x1be223)=>this[_0x5c4907(0x36e)](_0x1be223)),this[_0x5c4907(0x365)]&&window[_0x5c4907(0x4c8)](this[_0x5c4907(0x365)]);}[_0x1b4be4(0x1b0)](_0x4b9d99){const _0x3c3351=_0x1b4be4;return this[_0x3c3351(0x2f8)](_0x4b9d99)[_0x3c3351(0x33d)](A[_0x3c3351(0x594)]());}[_0x1b4be4(0x240)](_0x10bcb8){const _0x550e9e=_0x1b4be4;this[_0x550e9e(0x36a)][_0x550e9e(0x233)]===0x0&&this[_0x550e9e(0x2c6)](),this['_selfUnitIDs'][_0x550e9e(0x355)](_0x10bcb8),this[_0x550e9e(0x5d8)]({'type':0x0,'memberID':this[_0x550e9e(0x555)],'unitIDs':[_0x10bcb8],'isForwarded':!0x1});}[_0x1b4be4(0x3d0)](_0x2e37f5){const _0x199a31=_0x1b4be4;this[_0x199a31(0x36a)]['delete'](_0x2e37f5),this[_0x199a31(0x36a)][_0x199a31(0x233)]===0x0&&this['_heartbeatTimer']&&window[_0x199a31(0x4c8)](this[_0x199a31(0x365)]);}[_0x1b4be4(0x421)](){const _0x46a314=_0x1b4be4;this[_0x46a314(0x424)](a[_0x46a314(0x130)](A[_0x46a314(0x56e)](window,_0x46a314(0x51b))[_0x46a314(0x559)](_0x135a51=>{const _0x17ecde=_0x46a314;if(_0x135a51[_0x17ecde(0x323)]!==Wt||!_0x135a51[_0x17ecde(0x27c)])return;const _0x121b3d=JSON[_0x17ecde(0x194)](_0x135a51['newValue']);this[_0x17ecde(0x400)](_0x121b3d);}))),window[_0x46a314(0x195)](_0x46a314(0x2e6),()=>this[_0x46a314(0x5d8)]({'type':0x1,'memberID':this[_0x46a314(0x555)],'unitIDs':Array[_0x46a314(0x1a6)](this[_0x46a314(0x36a)])}));}[_0x1b4be4(0x400)](_0x32b0cb){const _0x186951=_0x1b4be4;switch(_0x32b0cb[_0x186951(0x336)]){case 0x0:this[_0x186951(0x41f)](_0x32b0cb);break;case 0x1:this[_0x186951(0x2ad)](_0x32b0cb);break;case 0x2:this[_0x186951(0x1ff)](_0x32b0cb);break;}}[_0x1b4be4(0x41f)](_0x427148){const _0x39c778=_0x1b4be4,{unitIDs:_0x590c02,memberID:_0x3116b6,isForwarded:_0x10aac5}=_0x427148;_0x590c02[_0x39c778(0x3ee)](_0x5bc298=>{const _0x36c7ae=_0x39c778;if(!_0x10aac5&&this[_0x36c7ae(0x198)][_0x36c7ae(0x1b5)](_0x5bc298)&&this['_ensureSubject'](_0x5bc298)[_0x36c7ae(0x258)](0x1),!this[_0x36c7ae(0x198)]['has'](_0x5bc298)||!this[_0x36c7ae(0x198)][_0x36c7ae(0x35b)](_0x5bc298)[_0x36c7ae(0x1b5)](_0x3116b6)){const _0x9908c1=this[_0x36c7ae(0x198)][_0x36c7ae(0x35b)](_0x5bc298)||new Set();_0x9908c1[_0x36c7ae(0x355)](_0x3116b6),this['_unitOnClients'][_0x36c7ae(0x5c1)](_0x5bc298,_0x9908c1),this[_0x36c7ae(0x477)](_0x3116b6);}}),_0x10aac5||this[_0x39c778(0x5d8)]({'type':0x0,'memberID':this[_0x39c778(0x555)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x1b4be4(0x477)](_0x545c47){const _0x3e61d7=_0x1b4be4;this[_0x3e61d7(0x36e)](_0x545c47);const _0x547553=window[_0x3e61d7(0x3f4)](()=>{const _0x17774d=_0x3e61d7;this[_0x17774d(0x198)][_0x17774d(0x3ee)](_0x25a364=>{const _0xcafd6f=_0x17774d;_0x25a364[_0xcafd6f(0x192)](_0x545c47);});},kt*0x2);this[_0x3e61d7(0x41a)][_0x3e61d7(0x5c1)](_0x545c47,_0x547553);}[_0x1b4be4(0x36e)](_0x5e89e3){const _0x22fe8c=_0x1b4be4;if(this['_clearOtherTimers'][_0x22fe8c(0x1b5)](_0x5e89e3)){const _0x14400b=this['_clearOtherTimers'][_0x22fe8c(0x35b)](_0x5e89e3);_0x14400b&&window['clearTimeout'](_0x14400b),this[_0x22fe8c(0x41a)][_0x22fe8c(0x5c1)](_0x5e89e3,null);}}['_handleLeaveEvent'](_0x1780c0){const _0x1e9df5=_0x1b4be4,{memberID:_0x11ace6,unitIDs:_0x3d491a}=_0x1780c0;_0x3d491a['forEach'](_0xbd76be=>{const _0x16fb03=_0x446a;var _0x31f710;const _0x63d7f9=this['_unitOnClients']['get'](_0xbd76be);_0x63d7f9&&(_0x63d7f9[_0x16fb03(0x192)](_0x11ace6),(_0x31f710=this[_0x16fb03(0x2f8)](_0xbd76be))==null||_0x31f710['next'](_0x63d7f9['size']===0x0?0x0:0x1));}),this[_0x1e9df5(0x36e)](_0x11ace6);}[_0x1b4be4(0x1ff)](_0x2e1104){this['_scheduleClearOtherTimer'](_0x2e1104['memberID']);}[_0x1b4be4(0x5d8)](_0x5be44f){const _0x171387=_0x1b4be4;localStorage[_0x171387(0x542)](Wt,JSON['stringify'](_0x5be44f));}[_0x1b4be4(0x2c6)](){const _0x1379a8=_0x1b4be4;this[_0x1379a8(0x365)]=window[_0x1379a8(0x19f)](()=>{const _0x2ffe71=_0x1379a8;this[_0x2ffe71(0x5d8)]({'type':0x2,'memberID':this['_id']});},kt);}[_0x1b4be4(0x2f8)](_0x217ae8){const _0xbb73ca=_0x1b4be4;return this[_0xbb73ca(0x58b)][_0xbb73ca(0x1b5)](_0x217ae8)||this[_0xbb73ca(0x58b)][_0xbb73ca(0x5c1)](_0x217ae8,new A[(_0xbb73ca(0x28f))](0x0)),this['_unitStatus'][_0xbb73ca(0x35b)](_0x217ae8);}}var $n=Object[_0x1b4be4(0x3c9)],jn=Object[_0x1b4be4(0x3c7)],Hn=(_0x4c86f1,_0x48e1db,_0x15e603,_0x2bd3c0)=>{const _0x1964dd=_0x1b4be4;for(var _0x23a59f=_0x2bd3c0>0x1?void 0x0:_0x2bd3c0?jn(_0x48e1db,_0x15e603):_0x48e1db,_0x25afce=_0x4c86f1[_0x1964dd(0x1d6)]-0x1,_0x3282ad;_0x25afce>=0x0;_0x25afce--)(_0x3282ad=_0x4c86f1[_0x25afce])&&(_0x23a59f=(_0x2bd3c0?_0x3282ad(_0x48e1db,_0x15e603,_0x23a59f):_0x3282ad(_0x23a59f))||_0x23a59f);return _0x2bd3c0&&_0x23a59f&&$n(_0x48e1db,_0x15e603,_0x23a59f),_0x23a59f;},_t=(_0x19365d,_0x4b93a3)=>(_0x1e63fa,_0x2b6b4b)=>_0x4b93a3(_0x1e63fa,_0x2b6b4b,_0x19365d);let Qe=class{constructor(_0x2f1975,_0x57221f,_0x1f70f9){const _0x590249=_0x1b4be4;this[_0x590249(0x232)]=_0x2f1975,this[_0x590249(0x262)]=_0x57221f,this[_0x590249(0x204)]=_0x1f70f9;}[_0x1b4be4(0x3bb)](_0x36297d){const _0x323846=_0x1b4be4;this[_0x323846(0x4ca)](_0x36297d);}[_0x1b4be4(0x18d)](_0x1602c5){const _0x1d30c1=_0x1b4be4,{unitID:_0x4f1d7b}=_0x1602c5,{collaboration:_0x1e8823}=this[_0x1d30c1(0x204)][_0x1d30c1(0x482)](_0x4f1d7b);if(_0x1e8823[_0x1d30c1(0x1d6)]===0x0)return _0x1602c5;let _0x49bdea=a[_0x1d30c1(0x59a)][_0x1d30c1(0x1c8)](_0x1602c5[_0x1d30c1(0x1ec)][0x0]);for(let _0x934ed2=0x0;_0x934ed2<_0x1e8823['length'];_0x934ed2++){const _0x5e054e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1e8823[_0x934ed2][_0x1d30c1(0x5d3)],..._0x1e8823[_0x934ed2][_0x1d30c1(0x5b4)]}},_0x11e807=this['_transformService'][_0x1d30c1(0x5d5)](_0x49bdea,_0x5e054e,!0x1);if(m[_0x1d30c1(0x139)](_0x11e807))throw _0x11e807['error'];_0x49bdea=_0x11e807[_0x1d30c1(0x4b3)];}return{...a[_0x1d30c1(0x59a)][_0x1d30c1(0x1c8)](_0x1602c5),'mutations':[_0x49bdea]};}[_0x1b4be4(0x4ca)](_0x8e8232){const _0x599978=_0x1b4be4,{unitID:_0x25e901}=_0x8e8232,{history:_0x30253f,collaboration:_0x314a64}=this[_0x599978(0x204)]['getStateCache'](_0x25e901);if(_0x30253f[_0x599978(0x1d6)]===0x0&&_0x314a64[_0x599978(0x1d6)]===0x0)return;const _0x18f5c6=[],_0x513ad7=[];let _0x1d77c3=a[_0x599978(0x59a)][_0x599978(0x1c8)](_0x8e8232['mutations'][0x0]),_0xf7bafc=a[_0x599978(0x59a)]['deepClone'](_0x8e8232['mutations'][0x0]);for(let _0x1194e8=_0x30253f[_0x599978(0x1d6)]-0x1;_0x1194e8>=0x0;_0x1194e8--){const _0xdb2104={'id':_0x599978(0x282),'params':{'unitId':_0x30253f[_0x1194e8][_0x599978(0x5d3)],..._0x30253f[_0x1194e8][_0x599978(0x238)]}},_0xcbf43f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x30253f[_0x1194e8]['unitId'],..._0x30253f[_0x1194e8]['redoState']}},_0x37eb89=this[_0x599978(0x262)][_0x599978(0x5d5)](_0x1d77c3,_0xdb2104,!0x1),_0x32f468=this[_0x599978(0x262)][_0x599978(0x5d5)](_0xf7bafc,_0xcbf43f,!0x1);if(m[_0x599978(0x139)](_0x37eb89))throw _0x37eb89[_0x599978(0x218)];if(m[_0x599978(0x139)](_0x32f468))throw _0x32f468['error'];_0x18f5c6[_0x599978(0x3f7)]({..._0x30253f[_0x1194e8],'undoState':_0x37eb89['m2Prime'][_0x599978(0x269)],'redoState':_0x32f468[_0x599978(0x54e)][_0x599978(0x269)]}),_0x1d77c3=_0x37eb89[_0x599978(0x4b3)],_0xf7bafc=_0x32f468['m1Prime'];}_0x1d77c3=a[_0x599978(0x59a)][_0x599978(0x1c8)](_0x8e8232[_0x599978(0x1ec)][0x0]),_0xf7bafc=a[_0x599978(0x59a)]['deepClone'](_0x8e8232['mutations'][0x0]);for(let _0x46bf15=_0x314a64[_0x599978(0x1d6)]-0x1;_0x46bf15>=0x0;_0x46bf15--){const _0x337a08={'id':_0x599978(0x282),'params':{'unitId':_0x314a64[_0x46bf15][_0x599978(0x5d3)],..._0x314a64[_0x46bf15]['undoState']}},_0x5a9f43={'id':_0x599978(0x282),'params':{'unitId':_0x314a64[_0x46bf15]['unitId'],..._0x314a64[_0x46bf15][_0x599978(0x5b4)]}},_0x33d4fb=this['_transformService'][_0x599978(0x5d5)](_0x1d77c3,_0x337a08,!0x1),_0x20e10b=this['_transformService'][_0x599978(0x5d5)](_0xf7bafc,_0x5a9f43,!0x1);if(m[_0x599978(0x139)](_0x33d4fb))throw _0x33d4fb[_0x599978(0x218)];if(m[_0x599978(0x139)](_0x20e10b))throw _0x20e10b[_0x599978(0x218)];_0x513ad7['unshift']({..._0x314a64[_0x46bf15],'undoState':_0x33d4fb[_0x599978(0x54e)][_0x599978(0x269)],'redoState':_0x20e10b[_0x599978(0x54e)][_0x599978(0x269)]}),_0x1d77c3=_0x33d4fb[_0x599978(0x4b3)],_0xf7bafc=_0x20e10b[_0x599978(0x4b3)];}this[_0x599978(0x204)][_0x599978(0x38a)](_0x25e901,{'history':_0x18f5c6,'collaboration':_0x513ad7});}};Qe=Hn([_t(0x0,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x3a0)])),_t(0x1,m['ITransformService']),_t(0x2,a['Inject'](J[_0x1b4be4(0x53c)]))],Qe);function Oi(_0x3e2986){const _0x2de920=_0x1b4be4;let _0x595070='';for(const _0x33c845 of _0x3e2986){const {startOffset:_0x2e8ed5,endOffset:_0x3fc1ce,isActive:_0x39b26b,rangeType:_0x305e9d,segmentId:_0x2ef942,segmentPage:_0x5b5fc0}=_0x33c845;_0x595070[_0x2de920(0x1d6)]&&(_0x595070+=','),_0x595070+=_0x2e8ed5+':'+_0x3fc1ce+':'+(_0x39b26b?'1':'0')+':'+_0x305e9d+':'+_0x2ef942+':'+_0x5b5fc0;}return _0x595070;}function Bn(_0x46ec59){const _0x34a145=_0x1b4be4,_0x1fca1a=_0x46ec59[_0x34a145(0x166)](','),_0x17e4b3=[];for(const _0x393de4 of _0x1fca1a){const [_0x53687a,_0x14232e,_0x4100b3,_0x4e69fa,_0xb74c37,_0x1edf08]=_0x393de4[_0x34a145(0x166)](':');_0x17e4b3[_0x34a145(0x284)]({'startOffset':Number(_0x53687a),'endOffset':Number(_0x14232e),'collapsed':_0x53687a===_0x14232e,'isActive':_0x4100b3==='1','rangeType':_0x4e69fa===a[_0x34a145(0x3fd)][_0x34a145(0x229)]?a[_0x34a145(0x3fd)][_0x34a145(0x229)]:a[_0x34a145(0x3fd)][_0x34a145(0x4e7)],'segmentId':typeof _0xb74c37==_0x34a145(0x32c)?String(_0xb74c37):'','segmentPage':Number(_0x1edf08!=null?_0x1edf08:-0x1)});}return _0x17e4b3[_0x34a145(0x3c0)](_0x53f2b5=>_0x53f2b5[_0x34a145(0x5cf)])||(_0x17e4b3[0x0][_0x34a145(0x5cf)]=!0x0),_0x17e4b3;}class Ut extends a[_0x1b4be4(0x472)]{constructor(){const _0x389268=_0x1b4be4;super(...arguments),I(this,_0x389268(0x489),new A[(_0x389268(0x28f))](null)),I(this,_0x389268(0x4a2),this['_collabCursorState$'][_0x389268(0x581)]());}['syncEditingCollabCursor'](_0x1b5260){const _0xe43592=_0x1b4be4,{unitID:_0x25cfee,memberID:_0x5230e9,textRanges:_0x3225aa}=_0x1b5260,_0x4e36bf=Oi(_0x3225aa);if(_0x4e36bf==='')return;const _0xea257a={'unitID':_0x25cfee,'memberID':_0x5230e9,'selection':_0x4e36bf};this[_0xe43592(0x489)]['next'](_0xea257a);}}var kn=Object[_0x1b4be4(0x3c9)],Wn=Object[_0x1b4be4(0x3c7)],Fn=(_0x238b28,_0x22c424,_0x1b5da5,_0x3d1915)=>{const _0x2d203f=_0x1b4be4;for(var _0x10f9bd=_0x3d1915>0x1?void 0x0:_0x3d1915?Wn(_0x22c424,_0x1b5da5):_0x22c424,_0x5f0d9a=_0x238b28[_0x2d203f(0x1d6)]-0x1,_0x5e685c;_0x5f0d9a>=0x0;_0x5f0d9a--)(_0x5e685c=_0x238b28[_0x5f0d9a])&&(_0x10f9bd=(_0x3d1915?_0x5e685c(_0x22c424,_0x1b5da5,_0x10f9bd):_0x5e685c(_0x10f9bd))||_0x10f9bd);return _0x3d1915&&_0x10f9bd&&kn(_0x22c424,_0x1b5da5,_0x10f9bd),_0x10f9bd;},Ft=(_0x4e4be5,_0x313f64)=>(_0x4660a8,_0x14885b)=>_0x313f64(_0x4660a8,_0x14885b,_0x4e4be5);let et=class{constructor(_0x436d20,_0x174222){const _0x1bbb27=_0x1b4be4;this[_0x1bbb27(0x232)]=_0x436d20,this[_0x1bbb27(0x262)]=_0x174222;}['transformSelections'](_0x5195a9){const _0x307f5e=_0x1b4be4;var _0x7ed6f;const _0x14c240=this[_0x307f5e(0x232)][_0x307f5e(0x35b)](ge[_0x307f5e(0x22d)]),_0x27daf1=(_0x7ed6f=_0x14c240['getDocRanges']())!=null?_0x7ed6f:[];if(_0x27daf1['length']===0x0)return;const _0x2794d8=_0x5195a9[_0x307f5e(0x4c2)],_0x55f92a=[{'id':_0x307f5e(0x282),'params':{'unitId':_0x2794d8,'actions':null,'textRanges':_0x27daf1}}],_0xc83998=this['_transformService'][_0x307f5e(0x409)](_0x5195a9,_0x55f92a);if(!m['isTransformMutationsWithChangesetSuccess'](_0xc83998))throw _0xc83998[_0x307f5e(0x218)];const _0x3503c4=_0xc83998[_0x307f5e(0x54e)][0x0][_0x307f5e(0x269)][_0x307f5e(0x155)];Array['isArray'](_0x3503c4)&&_0x3503c4['length']&&_0x14c240[_0x307f5e(0x213)](_0x3503c4,{'unitId':_0x2794d8,'subUnitId':_0x2794d8},!0x1);}};et=Fn([Ft(0x0,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x3a0)])),Ft(0x1,m[_0x1b4be4(0x1e1)])],et);const Vn=new Set([k[_0x1b4be4(0x510)]['id']]);function Vt(_0x790956,_0x5ae0fa,_0x2c88b5,_0x3c40c8,_0x10e7e3){const _0xefdff6=_0x1b4be4;var _0x568449,_0x16bead,_0x3bb09e,_0x2f9dbb;const _0x4dec9a=[];for(const _0x1347fd of _0x790956)if(Vn[_0xefdff6(0x1b5)](_0x1347fd['id'])){if(_0x4dec9a[_0xefdff6(0x1d6)]>0x0)break;_0x4dec9a[_0xefdff6(0x284)](_0x1347fd);break;}else _0x4dec9a['push'](_0x1347fd);const _0x1347b7=(_0x16bead=(_0x568449=_0x10e7e3[_0xefdff6(0x278)]())==null?void 0x0:_0x568449[_0xefdff6(0x44c)])!=null?_0x16bead:_0xefdff6(0x5b9),_0x4f2f9a=(_0x2f9dbb=(_0x3bb09e=_0x10e7e3[_0xefdff6(0x278)]())==null?void 0x0:_0x3bb09e['memberID'])!=null?_0x2f9dbb:_0xefdff6(0x5b9);return{'changeset':{'unitID':_0x5ae0fa,'type':m[_0xefdff6(0x2ab)](_0x2c88b5[_0xefdff6(0x210)](_0x5ae0fa)),'baseRev':_0x3c40c8['getCurrentRevOfUnit'](_0x5ae0fa),'revision':0x0,'userID':_0x1347b7,'memberID':_0x4f2f9a,'mutations':_0x4dec9a},'pendingMutations':_0x790956[_0xefdff6(0x487)](_0x4dec9a[_0xefdff6(0x1d6)])};}function Gn(_0x3a09b8,_0x11ee9b,_0x4b4e32,_0x46f60d,_0x3cb6f6){const _0xf52413=_0x1b4be4;var _0x51f317,_0x22539d,_0x4cd852,_0x109f00;const _0x417c42=[_0x3a09b8[_0xf52413(0x17e)]((_0x57ef59,_0x551093)=>{const _0x11109c=_0xf52413;var _0x45e596;const {id:_0x259217}=_0x57ef59,{id:_0x337a47,type:_0x3087c7}=_0x551093,_0x5c5e76=(_0x45e596=_0x57ef59[_0x11109c(0x269)])!=null?_0x45e596:{'actions':null},_0x1e38c2=_0x551093[_0x11109c(0x269)];if(_0x259217&&_0x259217!==_0x337a47)throw new Error(_0x11109c(0x480)+_0x259217+'\x20-\x20'+_0x337a47+'.');return{..._0x57ef59,'id':_0x337a47,'type':_0x3087c7,'params':{'unitId':_0x1e38c2[_0x11109c(0x5d3)],'textRanges':_0x1e38c2[_0x11109c(0x155)],'actions':a['JSONX'][_0x11109c(0x24b)](_0x5c5e76['actions'],_0x1e38c2[_0x11109c(0x46f)])}};},{})],_0x167f47=(_0x22539d=(_0x51f317=_0x3cb6f6[_0xf52413(0x278)]())==null?void 0x0:_0x51f317['userID'])!=null?_0x22539d:_0xf52413(0x5b9),_0x13e095=(_0x109f00=(_0x4cd852=_0x3cb6f6[_0xf52413(0x278)]())==null?void 0x0:_0x4cd852[_0xf52413(0x357)])!=null?_0x109f00:'unknown';return{'changeset':{'unitID':_0x11ee9b,'type':m[_0xf52413(0x2ab)](_0x4b4e32[_0xf52413(0x210)](_0x11ee9b)),'baseRev':_0x46f60d[_0xf52413(0x4c7)](_0x11ee9b),'revision':0x0,'userID':_0x167f47,'memberID':_0x13e095,'mutations':_0x417c42},'pendingMutations':[]};}function Di(_0x32f3a6,_0x2841e9){const _0x1e0120=_0x1b4be4,_0x597a39=new A[(_0x1e0120(0x5e8))](0x1);return setTimeout(()=>_0x597a39[_0x1e0120(0x258)](_0x2841e9),_0x32f3a6),_0x597a39[_0x1e0120(0x581)]()[_0x1e0120(0x33d)](A[_0x1e0120(0x358)](0x1));}const Yn={'id':k['EmptyMutation']['id'],'type':a['CommandType'][_0x1b4be4(0x2ee)],'params':{}};var qn=Object[_0x1b4be4(0x3c9)],Kn=Object[_0x1b4be4(0x3c7)],Ce=(_0x355f94,_0x1e8735,_0x4ab434,_0x363c04)=>{const _0xc31bbe=_0x1b4be4;for(var _0x5518e8=_0x363c04>0x1?void 0x0:_0x363c04?Kn(_0x1e8735,_0x4ab434):_0x1e8735,_0x518567=_0x355f94[_0xc31bbe(0x1d6)]-0x1,_0x1fa74;_0x518567>=0x0;_0x518567--)(_0x1fa74=_0x355f94[_0x518567])&&(_0x5518e8=(_0x363c04?_0x1fa74(_0x1e8735,_0x4ab434,_0x5518e8):_0x1fa74(_0x5518e8))||_0x5518e8);return _0x363c04&&_0x5518e8&&qn(_0x1e8735,_0x4ab434,_0x5518e8),_0x5518e8;},N=(_0x473565,_0x399149)=>(_0x573049,_0x4a0e0d)=>_0x399149(_0x573049,_0x4a0e0d,_0x473565),K=(_0x536b60=>(_0x536b60[_0x1b4be4(0x183)]=_0x1b4be4(0x34d),_0x536b60[_0x1b4be4(0x3f6)]=_0x1b4be4(0x5dd),_0x536b60[_0x1b4be4(0x455)]=_0x1b4be4(0x2db),_0x536b60[_0x1b4be4(0x266)]='awaiting',_0x536b60[_0x1b4be4(0x447)]=_0x1b4be4(0x43f),_0x536b60['FETCH_MISS']=_0x1b4be4(0x4a0),_0x536b60[_0x1b4be4(0x4f5)]=_0x1b4be4(0x2f4),_0x536b60[_0x1b4be4(0x466)]=_0x1b4be4(0x5aa),_0x536b60))(K||{});const Pi=0xea60;class Ee{constructor(_0x56a626,_0x5629b2,_0x1db340,_0x1eb5f0,_0x4e5fd5,_0xe066ca,_0x2c8da3,_0x165319,_0x17cc85){const _0x179d90=_0x1b4be4;I(this,_0x179d90(0x5c9),null),I(this,_0x179d90(0x2a5),[]),(this[_0x179d90(0x4c2)]=_0x56a626,this[_0x179d90(0x336)]=_0x5629b2,this[_0x179d90(0x37b)]=_0x4e5fd5,this[_0x179d90(0x3a7)]=_0xe066ca,this[_0x179d90(0x248)]=_0x2c8da3,this[_0x179d90(0x24e)]=_0x165319,this[_0x179d90(0x2d7)]=_0x17cc85,this['_awaitingChangeset']=_0x1db340,this['_pendingMutations']=_0x1eb5f0);}['_checkMissing'](_0x5361ae){const _0x2410d2=_0x1b4be4,_0x11ab6a=this[_0x2410d2(0x24e)][_0x2410d2(0x4c7)](this[_0x2410d2(0x4c2)]);return _0x5361ae['revision']>_0x11ab6a+0x1?(this['_handler'][_0x2410d2(0x1bb)]({'from':_0x11ab6a,'to':_0x5361ae[_0x2410d2(0x4fa)]-0x1}),!0x0):!0x1;}[_0x1b4be4(0x1b3)](_0x51cd2c){const _0x4dc45c=_0x1b4be4;this['_undoRedoService'][_0x4dc45c(0x191)](this['unitID'],_0x51cd2c);}[_0x1b4be4(0x53b)](_0xa29ae6){const _0x277c1f=_0x1b4be4;var _0x2408d6,_0x599e71;(_0x599e71=(_0x2408d6=this[_0x277c1f(0x37b)])[_0x277c1f(0x442)])==null||_0x599e71[_0x277c1f(0x246)](_0x2408d6,_0xa29ae6);}[_0x1b4be4(0x21e)](_0x2fa802){const _0x591b82=_0x1b4be4;var _0x11bbf5,_0x1b6f53;return(_0x1b6f53=(_0x11bbf5=this[_0x591b82(0x37b)])[_0x591b82(0x14e)])==null?void 0x0:_0x1b6f53[_0x591b82(0x246)](_0x11bbf5,_0x2fa802);}[_0x1b4be4(0x11c)](_0x3d8aa2){const _0x55d3ab=_0x1b4be4;var _0xd738bb,_0x210453;return(_0x210453=(_0xd738bb=this[_0x55d3ab(0x37b)])[_0x55d3ab(0x22c)])==null?void 0x0:_0x210453[_0x55d3ab(0x246)](_0xd738bb,_0x3d8aa2);}[_0x1b4be4(0x274)](_0x40b5fc){const _0xf51e66=_0x1b4be4;var _0x87bf83,_0x17a8cb,_0x5f3be8;return(_0x5f3be8=(_0x17a8cb=(_0x87bf83=this[_0xf51e66(0x37b)])[_0xf51e66(0x14c)])==null?void 0x0:_0x17a8cb['call'](_0x87bf83,_0x40b5fc))!=null?_0x5f3be8:_0x40b5fc;}[_0x1b4be4(0x26f)](_0x453841){const _0x535744=_0x1b4be4;var _0x403331,_0x12b2e4,_0x20cf47;return(_0x20cf47=(_0x12b2e4=(_0x403331=this[_0x535744(0x37b)])[_0x535744(0x3ef)])==null?void 0x0:_0x12b2e4[_0x535744(0x246)](_0x403331,_0x453841))!=null?_0x20cf47:_0x453841;}['_syncEditingCollabCursor'](_0x62b0b4){const _0x5716ec=_0x1b4be4;var _0x52ca71,_0x1c66db;if(this[_0x5716ec(0x336)]===ie['UNIVER_DOC']){const {unitID:_0x139769,mutations:_0x1d1f55,memberID:_0x459d11}=_0x62b0b4,_0x3837c5=_0x1d1f55[0x0]['params']['textRanges'];Array[_0x5716ec(0x295)](_0x3837c5)&&_0x3837c5[_0x5716ec(0x1d6)]>0x0&&((_0x1c66db=(_0x52ca71=this[_0x5716ec(0x37b)])[_0x5716ec(0x537)])==null||_0x1c66db[_0x5716ec(0x246)](_0x52ca71,{'unitID':_0x139769,'memberID':_0x459d11,'textRanges':_0x3837c5}));}}[_0x1b4be4(0x5d9)](){const _0x2a0449=_0x1b4be4;this[_0x2a0449(0x2d7)][_0x2a0449(0x220)](this[_0x2a0449(0x4c2)],this[_0x2a0449(0x336)],this[_0x2a0449(0x5c9)],this[_0x2a0449(0x2a5)]);}[_0x1b4be4(0x3a6)](){const _0x467e99=_0x1b4be4;return this[_0x467e99(0x24e)][_0x467e99(0x4c7)](this['unitID']);}[_0x1b4be4(0x26b)](){const _0x500c2a=_0x1b4be4;this['_revisionService'][_0x500c2a(0x452)](this[_0x500c2a(0x4c2)]);}[_0x1b4be4(0x3ad)](_0x18941d){const _0x105597=_0x1b4be4;var _0x2aa8f7;let _0x35b63e=this[_0x105597(0x274)](_0x18941d);_0x35b63e=this[_0x105597(0x26f)](_0x35b63e);const _0xd1c41f=a[_0x105597(0x429)](_0x35b63e[_0x105597(0x1ec)],this['_commandService'],{'fromCollab':!0x0});if(!_0xd1c41f[_0x105597(0x391)])throw _0xd1c41f['error']instanceof Error?_0xd1c41f[_0x105597(0x218)]:new Error((_0x2aa8f7=_0xd1c41f[_0x105597(0x218)])!=null?_0x2aa8f7:_0x105597(0x318));this[_0x105597(0x21e)](_0x35b63e),this[_0x105597(0x11c)](_0x35b63e),this[_0x105597(0x1b3)](_0x18941d),this[_0x105597(0x53b)](_0x35b63e),this[_0x105597(0x12b)](_0x35b63e),this[_0x105597(0x26b)]();}}let ye=class extends Ee{constructor(_0x4e8fc1,_0x30d56d,_0xdac62f,_0x1ca478,_0x1012e8,_0x975ecd,_0x146e76,_0x346e72,_0x24f7db,_0x3ba49f){const _0x4790d6=_0x1b4be4;super(_0x4e8fc1,_0x30d56d,null,[],_0xdac62f,_0x346e72,_0x146e76,_0x1ca478,_0x1012e8),I(this,'status',_0x4790d6(0x5dd)),(this['_injector']=_0x975ecd,this[_0x4790d6(0x4fe)]=_0x24f7db,this[_0x4790d6(0x262)]=_0x3ba49f);}['appendMutation'](_0x59caa2){const _0x41c0e4=_0x1b4be4,_0x6770ca=this['_injector'][_0x41c0e4(0x2c5)](ae,this[_0x41c0e4(0x4c2)],this[_0x41c0e4(0x336)],[_0x59caa2],this[_0x41c0e4(0x37b)]);return _0x6770ca[_0x41c0e4(0x2dd)](),_0x6770ca[_0x41c0e4(0x5d9)](),_0x6770ca;}['onRemoteChangeset'](_0x4880ab){const _0x4cff3d=_0x1b4be4;if(this['_checkMissing'](_0x4880ab))return this['_injector'][_0x4cff3d(0x2c5)](re,this[_0x4cff3d(0x4c2)],this['type'],null,[],null,[_0x4880ab],this[_0x4cff3d(0x37b)]);try{const _0x39112e=this[_0x4cff3d(0x262)][_0x4cff3d(0x409)](_0x4880ab,[Yn]);if(m[_0x4cff3d(0x1de)](_0x39112e)){const {c1Prime:_0x2ee0f7}=_0x39112e;return this[_0x4cff3d(0x3ad)](_0x2ee0f7),this;}throw _0x39112e[_0x4cff3d(0x218)];}catch(_0x13b908){return this['_logService'][_0x4cff3d(0x218)](_0x13b908),this[_0x4cff3d(0x556)](!0x1);}}[_0x1b4be4(0x556)](_0x4bc3ad){const _0x27cca1=_0x1b4be4;return this[_0x27cca1(0x232)]['createInstance'](fe,this[_0x27cca1(0x4c2)],this['type'],null,[],this[_0x27cca1(0x37b)],_0x4bc3ad);}[_0x1b4be4(0x23f)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x1b4be4(0x39a)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x1b4be4(0x3be)](){return this;}[_0x1b4be4(0x5bd)](){const _0xb12698=_0x1b4be4;return this['_injector'][_0xb12698(0x2c5)](ve,this[_0xb12698(0x4c2)],this[_0xb12698(0x336)],null,[],this[_0xb12698(0x37b)]);}[_0x1b4be4(0x4c1)](){return this;}[_0x1b4be4(0x3f8)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1b4be4(0x461)](){const _0x434052=_0x1b4be4,_0x10a516=this[_0x434052(0x24e)]['getCurrentRevOfUnit'](this[_0x434052(0x4c2)]);return this[_0x434052(0x37b)][_0x434052(0x1bb)]({'from':_0x10a516,'to':0x0}),this[_0x434052(0x232)]['createInstance'](re,this[_0x434052(0x4c2)],this[_0x434052(0x336)],null,[],null,[],this[_0x434052(0x37b)]);}};ye=Ce([N(0x3,a[_0x1b4be4(0x5da)](m[_0x1b4be4(0x2de)])),N(0x4,a[_0x1b4be4(0x5da)](exports[_0x1b4be4(0x3ec)])),N(0x5,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x3a0)])),N(0x6,a[_0x1b4be4(0x3ac)]),N(0x7,a[_0x1b4be4(0x58f)]),N(0x8,a[_0x1b4be4(0x509)]),N(0x9,m[_0x1b4be4(0x1e1)])],ye);let ae=class extends Ee{constructor(_0x4c8b22,_0x2c8b75,_0x32fa17,_0xef023b,_0x467c70,_0x230b75,_0x3286d1,_0x89a6f8,_0x240bd6,_0xdf44fb,_0x510868,_0x5f3de0,_0x1dc9fc,_0x41f613){const _0x3b9195=_0x1b4be4;super(_0x4c8b22,_0x2c8b75,null,_0x32fa17,_0xef023b,_0xdf44fb,_0x41f613,_0x230b75,_0x3286d1),I(this,'status',_0x3b9195(0x2db)),I(this,_0x3b9195(0x320),null),I(this,_0x3b9195(0x45d),null),(this['_injector']=_0x467c70,this[_0x3b9195(0x580)]=_0x89a6f8,this[_0x3b9195(0x4fe)]=_0x240bd6,this[_0x3b9195(0x234)]=_0x510868,this[_0x3b9195(0x262)]=_0x5f3de0,this[_0x3b9195(0x471)]=_0x1dc9fc);}[_0x1b4be4(0x225)](_0x467b9b){const _0x29d58b=_0x1b4be4;return this[_0x29d58b(0x2a5)][_0x29d58b(0x284)](_0x467b9b),this[_0x29d58b(0x5d9)](),this;}[_0x1b4be4(0x305)](_0x2e0aa){const _0x6f9f5b=_0x1b4be4;if(this['_checkMissing'](_0x2e0aa))return this['_clearScheduledTask'](),this[_0x6f9f5b(0x232)][_0x6f9f5b(0x2c5)](re,this[_0x6f9f5b(0x4c2)],this[_0x6f9f5b(0x336)],null,this['_pendingMutations'],null,[_0x2e0aa],this[_0x6f9f5b(0x37b)]);try{const _0x1e870f=this[_0x6f9f5b(0x262)][_0x6f9f5b(0x409)](_0x2e0aa,this[_0x6f9f5b(0x2a5)]);if(m[_0x6f9f5b(0x1de)](_0x1e870f)){const {c1Prime:_0x4f0e51,m2Prime:_0x4eac78}=_0x1e870f;this[_0x6f9f5b(0x3ad)](_0x4f0e51);const _0x4583a9=this[_0x6f9f5b(0x232)][_0x6f9f5b(0x2c5)](ae,this['unitID'],this[_0x6f9f5b(0x336)],_0x4eac78,this['_handler']);return this[_0x6f9f5b(0x4a9)](),_0x4583a9['_schedule'](this[_0x6f9f5b(0x320)]?Math['max'](0x0,new Date()[_0x6f9f5b(0x1e0)]()-this[_0x6f9f5b(0x320)]):this['_getSendChangesetTimeout']()),_0x4583a9;}throw _0x1e870f[_0x6f9f5b(0x218)];}catch(_0x284a65){return this['_logService'][_0x6f9f5b(0x218)](_0x284a65),this['_onConflict'](!0x1);}}[_0x1b4be4(0x23f)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x1b4be4(0x39a)](){const _0xc729b9=_0x1b4be4;throw new Error(_0xc729b9(0x4f3));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x4ca275=_0x1b4be4;return this[_0x4ca275(0x4a9)](),this[_0x4ca275(0x232)][_0x4ca275(0x2c5)](ve,this[_0x4ca275(0x4c2)],this[_0x4ca275(0x336)],null,this[_0x4ca275(0x2a5)],this[_0x4ca275(0x37b)]);}[_0x1b4be4(0x4c1)](){return this;}[_0x1b4be4(0x2dd)](_0x431a00){const _0x549078=_0x1b4be4,_0x3d30e1=_0x431a00!=null?_0x431a00:this[_0x549078(0x5d4)]();this[_0x549078(0x320)]=new Date()['getTime'](),this['_sendingTimer']=window[_0x549078(0x3f4)](()=>{const _0x3e5ce6=_0x549078;this[_0x3e5ce6(0x4a9)]();let _0x26107d=null;switch(this[_0x3e5ce6(0x336)]){case ie[_0x3e5ce6(0x5b1)]:{_0x26107d=Vt(this['_pendingMutations'],this[_0x3e5ce6(0x4c2)],this[_0x3e5ce6(0x471)],this[_0x3e5ce6(0x24e)],this[_0x3e5ce6(0x580)]);break;}case ie['UNIVER_DOC']:{this[_0x3e5ce6(0x2a5)]['every'](_0x476391=>_0x476391['id']===ge[_0x3e5ce6(0x543)]['id'])?_0x26107d=Gn(this[_0x3e5ce6(0x2a5)],this[_0x3e5ce6(0x4c2)],this[_0x3e5ce6(0x471)],this[_0x3e5ce6(0x24e)],this[_0x3e5ce6(0x580)]):_0x26107d=Vt(this[_0x3e5ce6(0x2a5)],this[_0x3e5ce6(0x4c2)],this[_0x3e5ce6(0x471)],this[_0x3e5ce6(0x24e)],this[_0x3e5ce6(0x580)]);break;}default:throw new Error(_0x3e5ce6(0x124)+this['type']+_0x3e5ce6(0x11d));}const {changeset:_0x4166c7,pendingMutations:_0xa57c96}=_0x26107d;this[_0x3e5ce6(0x37b)][_0x3e5ce6(0x3f9)](_0x4166c7);const _0x1af389=_0xa57c96[_0x3e5ce6(0x1d6)]?this[_0x3e5ce6(0x232)][_0x3e5ce6(0x2c5)](ce,this['unitID'],this[_0x3e5ce6(0x336)],_0x4166c7,_0xa57c96,this['_handler'],void 0x0):this[_0x3e5ce6(0x232)][_0x3e5ce6(0x2c5)](de,this[_0x3e5ce6(0x4c2)],this['type'],_0x4166c7,this[_0x3e5ce6(0x37b)]);_0x1af389[_0x3e5ce6(0x5d9)](),this['_handler'][_0x3e5ce6(0x5df)](this,_0x1af389);},_0x3d30e1);}[_0x1b4be4(0x5d4)](){const _0x53439d=_0x1b4be4;var _0x38728b;const _0x2b8063=this['_configService'][_0x53439d(0x2c9)](Z);return(_0x38728b=_0x2b8063==null?void 0x0:_0x2b8063[_0x53439d(0x456)])!=null?_0x38728b:Ki;}['resend'](){const _0x1b1b01=_0x1b4be4;throw new Error(_0x1b1b01(0x310));}[_0x1b4be4(0x4a9)](){const _0x50b704=_0x1b4be4;this[_0x50b704(0x45d)]!=null&&(clearTimeout(this[_0x50b704(0x45d)]),this['_sendingTimer']=null);}['_onConflict'](_0x57567a){const _0x252b75=_0x1b4be4;return this[_0x252b75(0x4a9)](),this[_0x252b75(0x232)][_0x252b75(0x2c5)](fe,this[_0x252b75(0x4c2)],this[_0x252b75(0x336)],null,this[_0x252b75(0x2a5)],this['_handler'],_0x57567a);}};ae=Ce([N(0x4,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x3a0)])),N(0x5,a['Inject'](m[_0x1b4be4(0x2de)])),N(0x6,a['Inject'](exports['LocalCacheService'])),N(0x7,a[_0x1b4be4(0x5da)](exports[_0x1b4be4(0x41e)])),N(0x8,a[_0x1b4be4(0x509)]),N(0x9,a['ICommandService']),N(0xa,a[_0x1b4be4(0x2ec)]),N(0xb,m[_0x1b4be4(0x1e1)]),N(0xc,a[_0x1b4be4(0x5e4)]),N(0xd,a['IUndoRedoService'])],ae);let de=class extends Ee{constructor(_0x3a286b,_0x30fb12,_0x3286b9,_0xe0cf42,_0x473123,_0x333de2,_0x516881,_0x28541b,_0x45977b,_0x4c58c3,_0x50f574){const _0x46fbcb=_0x1b4be4;super(_0x3a286b,_0x30fb12,_0x3286b9,[],_0xe0cf42,_0x28541b,_0x50f574,_0x333de2,_0x516881),I(this,_0x46fbcb(0x352),_0x46fbcb(0x353)),I(this,_0x46fbcb(0x2b1),0x0),I(this,'_resendTimer'),I(this,'_sender'),(this[_0x46fbcb(0x232)]=_0x473123,this[_0x46fbcb(0x4fe)]=_0x45977b,this['_transformService']=_0x4c58c3);}[_0x1b4be4(0x225)](_0x5d9ac8){const _0x21d416=_0x1b4be4;this[_0x21d416(0x4a9)]();const _0x51cd51=this['_injector']['createInstance'](ce,this[_0x21d416(0x4c2)],this[_0x21d416(0x336)],this[_0x21d416(0x5c9)],[_0x5d9ac8],this[_0x21d416(0x37b)],this[_0x21d416(0x5e7)]);return _0x51cd51[_0x21d416(0x5d9)](),_0x51cd51;}[_0x1b4be4(0x305)](_0x1bf936){const _0x61c997=_0x1b4be4;if(this[_0x61c997(0x321)](_0x1bf936))return this[_0x61c997(0x4a9)](),this['_injector']['createInstance'](re,this[_0x61c997(0x4c2)],this[_0x61c997(0x336)],this[_0x61c997(0x5c9)],[],null,[_0x1bf936],this[_0x61c997(0x37b)]);try{const _0x4fc6f8=this[_0x61c997(0x262)]['transformChangesets']([_0x1bf936],[this[_0x61c997(0x5c9)]],!0x1);if(m[_0x61c997(0x1a2)](_0x4fc6f8)){const {c1Prime:_0x5a0efe,c2Prime:_0x125494}=_0x4fc6f8;this[_0x61c997(0x3ad)](_0x5a0efe[0x0]),_0x125494[0x0]['baseRev']=this[_0x61c997(0x3a6)](),this[_0x61c997(0x4a9)]();const _0x596eea=this[_0x61c997(0x232)][_0x61c997(0x2c5)](de,this[_0x61c997(0x4c2)],this[_0x61c997(0x336)],_0x125494[0x0],this[_0x61c997(0x37b)]);return _0x596eea[_0x61c997(0x5d9)](),_0x596eea;}return this['_onConflict'](!0x1);}catch(_0x1ab268){return this[_0x61c997(0x4fe)][_0x61c997(0x218)](_0x1ab268),this[_0x61c997(0x556)](!0x1);}}[_0x1b4be4(0x23f)](_0x1178a3){const _0x3af919=_0x1b4be4;this[_0x3af919(0x4a9)]();const _0x4307f2=this[_0x3af919(0x24e)][_0x3af919(0x4c7)](this[_0x3af919(0x4c2)]);if(_0x1178a3[_0x3af919(0x4fa)]<_0x4307f2-0x1)return this;if(this[_0x3af919(0x321)](_0x1178a3))return this[_0x3af919(0x232)][_0x3af919(0x2c5)](re,this[_0x3af919(0x4c2)],this[_0x3af919(0x336)],null,[],this['_awaitingChangeset'],[],this[_0x3af919(0x37b)]);this[_0x3af919(0x26b)]();const _0x2a6a15=this[_0x3af919(0x232)]['createInstance'](ye,this[_0x3af919(0x4c2)],this[_0x3af919(0x336)],this[_0x3af919(0x37b)]);return _0x2a6a15[_0x3af919(0x5d9)](),_0x2a6a15;}['onRemoteRej'](_0x259740){return this['_onConflict'](!!(_0x259740!=null&&_0x259740['isPermissionRej']));}[_0x1b4be4(0x3be)](_0x3fd82a){const _0x493b2e=_0x1b4be4;return this[_0x493b2e(0x2b1)]>Pi?this[_0x493b2e(0x5bd)]():(this[_0x493b2e(0x5e7)]=Di(this['_resendTimeout'],{'timeout':this[_0x493b2e(0x2b1)],'reqId':_0x3fd82a['reqId']}),this[_0x493b2e(0x2aa)]=this[_0x493b2e(0x5e7)][_0x493b2e(0x559)](({reqId:_0x308773,timeout:_0x18be97})=>{const _0x2a21ec=_0x493b2e;this[_0x2a21ec(0x5b8)](_0x308773,_0x18be97);}),this);}[_0x1b4be4(0x5bd)](){const _0xf1d561=_0x1b4be4;return this[_0xf1d561(0x4a9)](),this[_0xf1d561(0x232)]['createInstance'](ve,this[_0xf1d561(0x4c2)],this[_0xf1d561(0x336)],this[_0xf1d561(0x5c9)],[],this[_0xf1d561(0x37b)]);}[_0x1b4be4(0x4c1)](){return this;}[_0x1b4be4(0x3f8)](){const _0x813633=_0x1b4be4;this[_0x813633(0x37b)][_0x813633(0x3f9)](this['_awaitingChangeset']);}[_0x1b4be4(0x556)](_0x286138){const _0x2d08fc=_0x1b4be4;return this['_clearScheduledTask'](),this[_0x2d08fc(0x232)][_0x2d08fc(0x2c5)](fe,this[_0x2d08fc(0x4c2)],this[_0x2d08fc(0x336)],this[_0x2d08fc(0x5c9)],[],this[_0x2d08fc(0x37b)],_0x286138);}[_0x1b4be4(0x5b8)](_0x2f6ea1,_0x462ef1){const _0x4cc87a=_0x1b4be4;var _0x3e82cb;_0x2f6ea1===((_0x3e82cb=this['_awaitingChangeset'])==null?void 0x0:_0x3e82cb[_0x4cc87a(0x203)])&&(this[_0x4cc87a(0x3f8)](),this[_0x4cc87a(0x2b1)]=_0x462ef1===0x0?0x3e8:_0x462ef1*0x2);}['_clearScheduledTask'](){const _0x2277dc=_0x1b4be4;var _0x3e5811;(_0x3e5811=this['_sender'])==null||_0x3e5811[_0x2277dc(0x1a8)](),this[_0x2277dc(0x2b1)]=0x0;}};de=Ce([N(0x4,a['Inject'](a[_0x1b4be4(0x3a0)])),N(0x5,a[_0x1b4be4(0x5da)](m[_0x1b4be4(0x2de)])),N(0x6,a[_0x1b4be4(0x5da)](exports['LocalCacheService'])),N(0x7,a[_0x1b4be4(0x58f)]),N(0x8,a[_0x1b4be4(0x509)]),N(0x9,m[_0x1b4be4(0x1e1)]),N(0xa,a['IUndoRedoService'])],de);let ce=class extends Ee{constructor(_0x2524a0,_0x35708c,_0x32de4d,_0x4bc62e,_0x47ec67,_0xe88dc7,_0xa631fb,_0xb9070b,_0x5ca864,_0x3ee6a3,_0x4b8a09,_0x50e529,_0x12b58f){const _0x733ca2=_0x1b4be4;super(_0x2524a0,_0x35708c,_0x32de4d,_0x4bc62e,_0x47ec67,_0x3ee6a3,_0x12b58f,_0xb9070b,_0x5ca864),I(this,_0x733ca2(0x352),_0x733ca2(0x43f)),I(this,'_resendTimeout',0x0),I(this,'_resendTimer'),I(this,'_sender'),(this['_injector']=_0xa631fb,this['_logService']=_0x4b8a09,this[_0x733ca2(0x262)]=_0x50e529,_0xe88dc7&&(this[_0x733ca2(0x5e7)]=_0xe88dc7,this[_0x733ca2(0x2aa)]=this['_resendTimer']['subscribe'](({reqId:_0x51d3f1,timeout:_0x53e2ad})=>{this['_resendWithTimeout'](_0x51d3f1,_0x53e2ad);})));}[_0x1b4be4(0x225)](_0xf2d222){const _0xdd58a=_0x1b4be4;return this[_0xdd58a(0x2a5)][_0xdd58a(0x284)](_0xf2d222),this;}[_0x1b4be4(0x305)](_0x1e59aa){const _0xf26774=_0x1b4be4;if(this[_0xf26774(0x321)](_0x1e59aa))return this[_0xf26774(0x4a9)](),this['_injector'][_0xf26774(0x2c5)](re,this[_0xf26774(0x4c2)],this[_0xf26774(0x336)],this[_0xf26774(0x5c9)],this[_0xf26774(0x2a5)],null,[_0x1e59aa],this[_0xf26774(0x37b)]);try{const _0x3425d5=this[_0xf26774(0x262)][_0xf26774(0x3b6)]([_0x1e59aa],[this['_awaitingChangeset']],!0x1);if(m[_0xf26774(0x1a2)](_0x3425d5)){const {c1Prime:_0x4b81a8,c2Prime:_0x3285d8}=_0x3425d5,_0x57b575=this['_transformService']['transformMutationsWithChangeset'](_0x4b81a8[0x0],this[_0xf26774(0x2a5)]);if(m[_0xf26774(0x1de)](_0x57b575)){const {c1Prime:_0x53b444,m2Prime:_0x1a8691}=_0x57b575;return this[_0xf26774(0x3ad)](_0x53b444),_0x3285d8[0x0][_0xf26774(0x329)]=this[_0xf26774(0x3a6)](),this[_0xf26774(0x4a9)](),this[_0xf26774(0x232)][_0xf26774(0x2c5)](ce,this['unitID'],this[_0xf26774(0x336)],_0x3285d8[0x0],_0x1a8691,this[_0xf26774(0x37b)],void 0x0);}throw _0x57b575[_0xf26774(0x218)];}throw _0x3425d5['error'];}catch(_0xf32406){return this[_0xf26774(0x4fe)]['error'](_0xf32406),this['_onConflict'](!0x1);}}[_0x1b4be4(0x23f)](_0x5415af){const _0x34085d=_0x1b4be4;if(this[_0x34085d(0x4a9)](),this[_0x34085d(0x321)](_0x5415af))return this[_0x34085d(0x232)]['createInstance'](re,this['unitID'],this['type'],null,this[_0x34085d(0x2a5)],this[_0x34085d(0x5c9)],[],this[_0x34085d(0x37b)]);this['_incrementRevisionNumber']();const _0x30e4ea=this[_0x34085d(0x232)]['createInstance'](ae,this[_0x34085d(0x4c2)],this['type'],this[_0x34085d(0x2a5)],this[_0x34085d(0x37b)]);return _0x30e4ea[_0x34085d(0x2dd)](),_0x30e4ea[_0x34085d(0x5d9)](),_0x30e4ea;}[_0x1b4be4(0x39a)](_0x160bf2){return this['_onConflict'](!!(_0x160bf2!=null&&_0x160bf2['isPermissionRej']));}['onRemoteRetry'](_0x84a89c){const _0x146101=_0x1b4be4;return this[_0x146101(0x2b1)]>Pi?this[_0x146101(0x5bd)]():(this[_0x146101(0x5e7)]=Di(this[_0x146101(0x2b1)],{'timeout':this['_resendTimeout'],'reqId':_0x84a89c[_0x146101(0x203)]}),this['_sender']=this[_0x146101(0x5e7)][_0x146101(0x559)](({reqId:_0x205832,timeout:_0x1155be})=>{this['_resendWithTimeout'](_0x205832,_0x1155be);}),this);}[_0x1b4be4(0x5bd)](){const _0x29c566=_0x1b4be4;return this[_0x29c566(0x4a9)](),this[_0x29c566(0x232)][_0x29c566(0x2c5)](ve,this[_0x29c566(0x4c2)],this[_0x29c566(0x336)],this[_0x29c566(0x5c9)],this['_pendingMutations'],this[_0x29c566(0x37b)]);}[_0x1b4be4(0x4c1)](){return this;}['resend'](){const _0x2622f0=_0x1b4be4;this[_0x2622f0(0x37b)][_0x2622f0(0x3f9)](this[_0x2622f0(0x5c9)]);}[_0x1b4be4(0x556)](_0x391918){const _0x530a9d=_0x1b4be4;return this[_0x530a9d(0x4a9)](),this['_injector'][_0x530a9d(0x2c5)](fe,this[_0x530a9d(0x4c2)],this[_0x530a9d(0x336)],null,this[_0x530a9d(0x2a5)],this[_0x530a9d(0x37b)],_0x391918);}[_0x1b4be4(0x5b8)](_0x2af7f4,_0x42250d){const _0xfaadc2=_0x1b4be4;var _0x131723;_0x2af7f4===((_0x131723=this[_0xfaadc2(0x5c9)])==null?void 0x0:_0x131723['reqId'])&&(this[_0xfaadc2(0x3f8)](),this[_0xfaadc2(0x2b1)]=_0x42250d===0x0?0x3e8:_0x42250d*0x2);}[_0x1b4be4(0x4a9)](){const _0x524b9b=_0x1b4be4;var _0x220482;(_0x220482=this[_0x524b9b(0x2aa)])==null||_0x220482[_0x524b9b(0x1a8)](),this[_0x524b9b(0x2b1)]=0x0;}};ce=Ce([N(0x6,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x3a0)])),N(0x7,a['Inject'](m['RevisionService'])),N(0x8,a['Inject'](exports[_0x1b4be4(0x3ec)])),N(0x9,a[_0x1b4be4(0x58f)]),N(0xa,a[_0x1b4be4(0x509)]),N(0xb,m[_0x1b4be4(0x1e1)]),N(0xc,a[_0x1b4be4(0x3ac)])],ce);let fe=class extends Ee{constructor(_0x1639cf,_0x487bde,_0x47dccc,_0x366cab,_0x4614a0,_0x44fb63=!0x1,_0x16cca7,_0x1d8255,_0x3c808e,_0x4d5769,_0x4c0976,_0x4e5f57,_0x3c6096){const _0x326493=_0x1b4be4;super(_0x1639cf,_0x487bde,_0x47dccc,_0x366cab,_0x4614a0,_0x1d8255,_0x3c808e,_0x4c0976,_0x4d5769),I(this,_0x326493(0x352),_0x326493(0x2f4)),(this[_0x326493(0x283)]=_0x44fb63,this[_0x326493(0x4c5)]=_0x16cca7,this[_0x326493(0x131)]=_0x4e5f57,this[_0x326493(0x389)]=_0x3c6096,this[_0x326493(0x1f8)](),this[_0x326493(0x26c)](),this[_0x326493(0x567)]());}[_0x1b4be4(0x225)](){return this;}[_0x1b4be4(0x305)](){return this;}[_0x1b4be4(0x23f)](){return this;}['onRemoteRej'](){return this;}[_0x1b4be4(0x3be)](){return this;}[_0x1b4be4(0x5bd)](){return this;}['toggleOnline'](){return this;}[_0x1b4be4(0x3f8)](){const _0x19e449=_0x1b4be4;throw new Error(_0x19e449(0x28a));}[_0x1b4be4(0x26c)](){const _0x41d8fa=_0x1b4be4;this[_0x41d8fa(0x2d7)]['updateOfflineData'](this['unitID'],this['type'],null,[]);}[_0x1b4be4(0x1f8)](){const _0x55a885=_0x1b4be4;this[_0x55a885(0x283)]?this[_0x55a885(0x389)][_0x55a885(0x53e)]({'title':this[_0x55a885(0x131)]['t'](_0x55a885(0x35e)),'content':this[_0x55a885(0x131)]['t']('permission.content'),'type':_0x55a885(0x218),'duration':0x0}):this[_0x55a885(0x389)]['show']({'title':this[_0x55a885(0x131)]['t'](_0x55a885(0x50a)),'content':this[_0x55a885(0x131)]['t'](_0x55a885(0x533)),'type':_0x55a885(0x218),'duration':0x0});}[_0x1b4be4(0x567)](){const _0x5ecff2=_0x1b4be4;this[_0x5ecff2(0x4c5)][_0x5ecff2(0x4dd)](new k[(_0x5ecff2(0x550))](this[_0x5ecff2(0x4c2)])['id'],!0x1);}};fe=Ce([N(0x6,a[_0x1b4be4(0x5da)](a['IPermissionService'])),N(0x7,a[_0x1b4be4(0x58f)]),N(0x8,a[_0x1b4be4(0x3ac)]),N(0x9,a[_0x1b4be4(0x5da)](exports[_0x1b4be4(0x3ec)])),N(0xa,a[_0x1b4be4(0x5da)](m[_0x1b4be4(0x2de)])),N(0xb,a['Inject'](a[_0x1b4be4(0x138)])),N(0xc,ee[_0x1b4be4(0x31b)])],fe);let ve=class extends Ee{constructor(_0x266eee,_0x3e09bf,_0x34e65b,_0x423b56,_0x289c6b,_0x4b1e3a,_0x466a76,_0x4869fa,_0x172b29,_0x42076d){const _0x56e4ca=_0x1b4be4;super(_0x266eee,_0x3e09bf,_0x34e65b,_0x423b56,_0x289c6b,_0x172b29,_0x42076d,_0x466a76,_0x4869fa),I(this,'status',_0x56e4ca(0x5aa)),this[_0x56e4ca(0x232)]=_0x4b1e3a;}[_0x1b4be4(0x225)](_0x5d6f9e){const _0x27ed22=_0x1b4be4;return this[_0x27ed22(0x2a5)][_0x27ed22(0x284)](_0x5d6f9e),this[_0x27ed22(0x5d9)](),this;}['onRemoteChangeset'](_0x3b0273){const _0x2aa2f8=_0x1b4be4;throw new Error(_0x2aa2f8(0x569));}[_0x1b4be4(0x23f)](){const _0x110126=_0x1b4be4;throw new Error(_0x110126(0x13f));}[_0x1b4be4(0x39a)](){const _0x369edb=_0x1b4be4;throw new Error(_0x369edb(0x32d));}[_0x1b4be4(0x3be)](){return this;}[_0x1b4be4(0x5bd)](){return this;}[_0x1b4be4(0x4c1)](){const _0x13ab51=_0x1b4be4,{_injector:_0x4c652a,_pendingMutations:_0x5ebe9c,_awaitingChangeset:_0x563e75,unitID:_0x5641e9,_handler:_0x2a591a,type:_0xbfcaaa}=this,_0x511c64=wi(_0x4c652a,_0x5641e9,_0xbfcaaa,_0x563e75,_0x5ebe9c,_0x2a591a);return _0x511c64 instanceof ae?_0x511c64[_0x13ab51(0x2dd)]():(_0x511c64 instanceof ce||_0x511c64 instanceof de)&&_0x511c64[_0x13ab51(0x3f8)](),_0x511c64;}[_0x1b4be4(0x3f8)](){const _0x47d4b3=_0x1b4be4;throw new Error(_0x47d4b3(0x3a2));}};ve=Ce([N(0x5,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x3a0)])),N(0x6,a[_0x1b4be4(0x5da)](m[_0x1b4be4(0x2de)])),N(0x7,a[_0x1b4be4(0x5da)](exports[_0x1b4be4(0x3ec)])),N(0x8,a['ICommandService']),N(0x9,a['IUndoRedoService'])],ve);let re=class extends Ee{constructor(_0x4b7bbd,_0x17c6dc,_0x5221a9,_0x4049d1,_0x4434c9,_0x575c11,_0x502a1f,_0xe40767,_0x593350,_0x31f141,_0x3dc42a,_0x1fbb3e,_0x153a19,_0x2d9038){const _0x200520=_0x1b4be4;super(_0x4b7bbd,_0x17c6dc,_0x5221a9,_0x4049d1,_0x502a1f,_0x1fbb3e,_0x153a19,_0x593350,_0x31f141),I(this,_0x200520(0x352),_0x200520(0x4a0)),(this[_0x200520(0x513)]=_0x4434c9,this[_0x200520(0x4cf)]=_0x575c11,this[_0x200520(0x232)]=_0xe40767,this[_0x200520(0x4fe)]=_0x3dc42a,this[_0x200520(0x262)]=_0x2d9038);}[_0x1b4be4(0x3d3)](_0x18192f){const _0x24f093=_0x1b4be4;try{const _0x5d4f44=[..._0x18192f,...this[_0x24f093(0x4cf)]],_0x4d5bc4=[this[_0x24f093(0x5c9)]||this[_0x24f093(0x513)]]['filter'](_0x1a1d05=>!!_0x1a1d05);let _0x2642b8,_0xfd4ccf;if(_0x4d5bc4['length']){const _0x18d032=this[_0x24f093(0x262)][_0x24f093(0x3b6)](_0x5d4f44,_0x4d5bc4,!0x1);if(!m[_0x24f093(0x1a2)](_0x18d032))throw _0x18d032[_0x24f093(0x218)];_0x2642b8=_0x18d032[_0x24f093(0x4ad)],_0xfd4ccf=_0x18d032[_0x24f093(0x5bc)];}else _0x2642b8=_0x5d4f44,_0xfd4ccf=[];let _0x2d6ee7=this['_pendingMutations'];_0x2642b8[_0x24f093(0x3ee)](_0x377b8e=>{const _0x4c0ed8=_0x24f093;let _0x28e1b7;if(_0x2d6ee7[_0x4c0ed8(0x1d6)]){const _0x1eb7be=this['_transformService'][_0x4c0ed8(0x409)](_0x377b8e,_0x2d6ee7);if(!m[_0x4c0ed8(0x1de)](_0x1eb7be))throw _0x1eb7be[_0x4c0ed8(0x218)];_0x28e1b7=_0x1eb7be[_0x4c0ed8(0x4ad)],_0x2d6ee7=_0x1eb7be[_0x4c0ed8(0x54e)];}else _0x28e1b7=_0x377b8e;this['_executeRemoteChangeset'](_0x28e1b7);}),this[_0x24f093(0x513)]&&this['_incrementRevisionNumber'](),this[_0x24f093(0x5c9)]&&_0xfd4ccf[_0x24f093(0x1d6)]&&(_0xfd4ccf[0x0][_0x24f093(0x329)]=this[_0x24f093(0x3a6)]());let _0x383365;if(this[_0x24f093(0x5c9)]&&_0x2d6ee7['length']!==0x0)_0x383365=this[_0x24f093(0x232)][_0x24f093(0x2c5)](ce,this[_0x24f093(0x4c2)],this[_0x24f093(0x336)],_0xfd4ccf[0x0],_0x2d6ee7,this[_0x24f093(0x37b)],void 0x0);else{if(this[_0x24f093(0x5c9)]&&_0x2d6ee7[_0x24f093(0x1d6)]===0x0)_0xfd4ccf[0x0][_0x24f093(0x329)]=this[_0x24f093(0x3a6)](),_0x383365=this[_0x24f093(0x232)]['createInstance'](de,this[_0x24f093(0x4c2)],this[_0x24f093(0x336)],_0xfd4ccf[0x0],this[_0x24f093(0x37b)]);else{if(_0x2d6ee7[_0x24f093(0x1d6)]!==0x0){const _0x57850c=this[_0x24f093(0x232)]['createInstance'](ae,this[_0x24f093(0x4c2)],this[_0x24f093(0x336)],_0x2d6ee7,this[_0x24f093(0x37b)]);_0x57850c[_0x24f093(0x2dd)](),_0x383365=_0x57850c;}else _0x383365=this[_0x24f093(0x232)][_0x24f093(0x2c5)](ye,this['unitID'],this[_0x24f093(0x336)],this[_0x24f093(0x37b)]);}}return _0x383365['_updateLocalCache'](),_0x383365;}catch(_0x23a569){return this[_0x24f093(0x4fe)][_0x24f093(0x218)](_0x24f093(0x2c0),_0x24f093(0x13c),_0x23a569),this[_0x24f093(0x232)][_0x24f093(0x2c5)](fe,this[_0x24f093(0x4c2)],this[_0x24f093(0x336)],this[_0x24f093(0x5c9)],this[_0x24f093(0x2a5)],this['_handler'],!0x1);}}[_0x1b4be4(0x3f8)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1b4be4(0x225)](_0x15e741){const _0x55422a=_0x1b4be4;return this[_0x55422a(0x2a5)][_0x55422a(0x284)](_0x15e741),this;}[_0x1b4be4(0x305)](_0x2948cf){const _0x39f70e=_0x1b4be4;return this[_0x39f70e(0x4cf)][_0x39f70e(0x284)](_0x2948cf),this;}[_0x1b4be4(0x23f)](_0x4ed876){const _0x377c8e=_0x1b4be4;if(this['_awaitingChangeset'])return this[_0x377c8e(0x513)]=this['_awaitingChangeset'],this[_0x377c8e(0x5c9)]=null,this;throw new Error(_0x377c8e(0x339));}[_0x1b4be4(0x39a)](_0x308d08){const _0x1b9bc1=_0x1b4be4;return this[_0x1b9bc1(0x556)](!!(_0x308d08!=null&&_0x308d08[_0x1b9bc1(0x58e)]));}[_0x1b4be4(0x3be)](){return this;}[_0x1b4be4(0x5bd)](){const _0x29a4cd=_0x1b4be4;return this[_0x29a4cd(0x232)][_0x29a4cd(0x2c5)](ve,this[_0x29a4cd(0x4c2)],this[_0x29a4cd(0x336)],this['_awaitingChangeset'],this[_0x29a4cd(0x2a5)],this[_0x29a4cd(0x37b)]);}['toggleOnline'](){return this;}['_onConflict'](_0x1d8ea5){const _0x4d70db=_0x1b4be4;return this[_0x4d70db(0x232)][_0x4d70db(0x2c5)](fe,this[_0x4d70db(0x4c2)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],_0x1d8ea5);}};re=Ce([N(0x7,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x3a0)])),N(0x8,a[_0x1b4be4(0x5da)](m[_0x1b4be4(0x2de)])),N(0x9,a['Inject'](exports['LocalCacheService'])),N(0xa,a[_0x1b4be4(0x509)]),N(0xb,a['ICommandService']),N(0xc,a[_0x1b4be4(0x3ac)]),N(0xd,m[_0x1b4be4(0x1e1)])],re);function wi(_0x15584e,_0xee80b4,_0x26b3ae,_0x14958b,_0x5c7e70,_0x12f9a0){const _0x1e8de5=_0x1b4be4;return _0x14958b&&_0x5c7e70[_0x1e8de5(0x1d6)]?_0x15584e[_0x1e8de5(0x2c5)](ce,_0xee80b4,_0x26b3ae,_0x14958b,_0x5c7e70,_0x12f9a0,void 0x0):_0x14958b?_0x15584e[_0x1e8de5(0x2c5)](de,_0xee80b4,_0x26b3ae,_0x14958b,_0x12f9a0):_0x5c7e70[_0x1e8de5(0x1d6)]?_0x15584e[_0x1e8de5(0x2c5)](ae,_0xee80b4,_0x26b3ae,_0x5c7e70,_0x12f9a0):_0x15584e[_0x1e8de5(0x2c5)](ye,_0xee80b4,_0x26b3ae,_0x12f9a0);}var zn=Object[_0x1b4be4(0x3c9)],Xn=Object[_0x1b4be4(0x3c7)],Mt=(_0x29c52b,_0x2151da,_0x35e37e,_0x2fc6d3)=>{const _0x867103=_0x1b4be4;for(var _0x36847c=_0x2fc6d3>0x1?void 0x0:_0x2fc6d3?Xn(_0x2151da,_0x35e37e):_0x2151da,_0xc40d3b=_0x29c52b[_0x867103(0x1d6)]-0x1,_0x502257;_0xc40d3b>=0x0;_0xc40d3b--)(_0x502257=_0x29c52b[_0xc40d3b])&&(_0x36847c=(_0x2fc6d3?_0x502257(_0x2151da,_0x35e37e,_0x36847c):_0x502257(_0x36847c))||_0x36847c);return _0x2fc6d3&&_0x36847c&&zn(_0x2151da,_0x35e37e,_0x36847c),_0x36847c;},H=(_0x51a8aa,_0x331612)=>(_0x5ce818,_0x275886)=>_0x331612(_0x5ce818,_0x275886,_0x51a8aa);exports[_0x1b4be4(0x485)]=class extends a[_0x1b4be4(0x472)]{constructor(_0x2cc907,_0x3381a0,_0x1887ae,_0x218131,_0x957a05,_0x4ddfa9,_0x541c37,_0x224206,_0x2fa210,_0x3b92c7,_0x5ae51b,_0x2603dc,_0x4d9923){const _0x3bd814=_0x1b4be4;super(),I(this,_0x3bd814(0x5ac),new A[(_0x3bd814(0x28f))](null)),I(this,'state$',this[_0x3bd814(0x5ac)][_0x3bd814(0x581)]()),I(this,'_state'),I(this,_0x3bd814(0x324),!0x1),I(this,_0x3bd814(0x5a7),''),I(this,_0x3bd814(0x16d),0x0),I(this,_0x3bd814(0x2f3),this[_0x3bd814(0x40f)][_0x3bd814(0x33d)](A[_0x3bd814(0x342)](_0x597127=>_0x597127?_0x597127[_0x3bd814(0x352)]:K['OFFLINE']),A['shareReplay'](0x1))),I(this,_0x3bd814(0x3ba),!0x1),I(this,_0x3bd814(0x34f),[]),(this[_0x3bd814(0x4c2)]=_0x2cc907,this[_0x3bd814(0x129)]=_0x3381a0,this[_0x3bd814(0x20c)]=_0x1887ae,this[_0x3bd814(0x232)]=_0x218131,this['_localCacheService']=_0x957a05,this[_0x3bd814(0x2e2)]=_0x4ddfa9,this[_0x3bd814(0x131)]=_0x541c37,this[_0x3bd814(0x24e)]=_0x224206,this['_logService']=_0x2fa210,this[_0x3bd814(0x3a7)]=_0x3b92c7,this['_messageService']=_0x5ae51b,this[_0x3bd814(0x4c5)]=_0x2603dc,this[_0x3bd814(0x127)]=_0x4d9923);}get['state'](){const _0x4fe2b8=_0x1b4be4;return this[_0x4fe2b8(0x394)];}async[_0x1b4be4(0x5af)](){const _0x478c87=_0x1b4be4;if(this[_0x478c87(0x49d)])throw new Error(_0x478c87(0x596));await this[_0x478c87(0x421)]();}[_0x1b4be4(0x2c2)](){const _0xa0d462=_0x1b4be4;return this['_collaborationPaused']=!0x0,a[_0xa0d462(0x130)](()=>{const _0x24acf7=_0xa0d462;this[_0x24acf7(0x324)]=!0x1,this[_0x24acf7(0x214)]();});}[_0x1b4be4(0x341)](_0x263141){this['_state']=_0x263141,this['_state$']['next'](_0x263141);}async[_0x1b4be4(0x421)](){const _0x12b02a=_0x1b4be4;var _0x242dad;this[_0x12b02a(0x341)](await this['_createInitialState']()),this[_0x12b02a(0x127)]&&((_0x242dad=this[_0x12b02a(0x127)])==null||_0x242dad[_0x12b02a(0x240)](this[_0x12b02a(0x4c2)]),this['disposeWithMe'](this[_0x12b02a(0x127)][_0x12b02a(0x1b0)](this[_0x12b02a(0x4c2)])[_0x12b02a(0x559)](_0x5b39d3=>{const _0xd6aadb=_0x12b02a;this['_logService'][_0xd6aadb(0x2b6)](_0xd6aadb(0x55f),_0xd6aadb(0x514),_0x5b39d3),_0x5b39d3===yi[_0xd6aadb(0x4e0)]?(this[_0xd6aadb(0x371)]['show']({'content':this[_0xd6aadb(0x131)]['t'](_0xd6aadb(0x20e)),'type':Ie[_0xd6aadb(0x2a8)]['Warning']}),this['_permissionService'][_0xd6aadb(0x4dd)](new k[(_0xd6aadb(0x550))](this[_0xd6aadb(0x4c2)])['id'],!0x1),this['_permissionService'][_0xd6aadb(0x59b)](!0x1)):(this[_0xd6aadb(0x4c5)][_0xd6aadb(0x4dd)](new k[(_0xd6aadb(0x550))](this[_0xd6aadb(0x4c2)])['id'],!0x0),this[_0xd6aadb(0x4c5)][_0xd6aadb(0x59b)](!0x0));})));let _0x5d9999=!0x1;return this['disposeWithMe'](this['session'][_0x12b02a(0x29d)]['subscribe'](_0x212939=>{const _0x4b48fa=_0x12b02a;_0x212939===ne[_0x4b48fa(0x163)]?this[_0x4b48fa(0x29f)](_0x5d9999):_0x212939===ne['OFFLINE']&&(_0x5d9999=!0x0,this[_0x4b48fa(0x45c)]());})),this['disposeWithMe'](this[_0x12b02a(0x129)][_0x12b02a(0x35f)][_0x12b02a(0x559)](_0x5581dc=>{const _0x114a0d=_0x12b02a;try{switch(_0x5581dc[_0x114a0d(0x54f)]){case m[_0x114a0d(0x289)][_0x114a0d(0x2b8)]:{this[_0x114a0d(0x349)](m[_0x114a0d(0x330)](_0x5581dc['data']));break;}case m[_0x114a0d(0x289)][_0x114a0d(0x486)]:{this[_0x114a0d(0x5d1)](_0x5581dc['data']);break;}case m[_0x114a0d(0x289)][_0x114a0d(0x386)]:{this['_onRemoteRejected']();break;}case m['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:{this[_0x114a0d(0x443)](_0x5581dc[_0x114a0d(0x464)]);break;}case m[_0x114a0d(0x289)][_0x114a0d(0x1d2)]:{this['_onFetchMissResult'](_0x5581dc[_0x114a0d(0x464)][_0x114a0d(0x227)][_0x114a0d(0x342)](_0x37a3f7=>m[_0x114a0d(0x330)](_0x37a3f7)));break;}case m['CollaborationEvent']['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x23aec8){throw console[_0x114a0d(0x218)](_0x114a0d(0x38f),_0x23aec8),_0x23aec8;}})),this['_state'];}['_unlockTransition'](){const _0x1f7fa7=_0x1b4be4;this[_0x1f7fa7(0x3ba)]=!0x1;}['_lockTransition'](){const _0x321e38=_0x1b4be4;if(this[_0x321e38(0x3ba)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x321e38(0x3ba)]=!0x0;}[_0x1b4be4(0x35d)](_0x3fc15f){const _0x188bfb=_0x1b4be4;this[_0x188bfb(0x261)](),this[_0x188bfb(0x341)](this[_0x188bfb(0x394)][_0x188bfb(0x225)](_0x3fc15f)),this['_unlockTransition']();}[_0x1b4be4(0x349)](_0x3196af){const _0x3326d2=_0x1b4be4;if(!(_0x3196af['revision']<=this[_0x3326d2(0x24e)][_0x3326d2(0x4c7)](this['unitID']))){if(this[_0x3326d2(0x324)]){this[_0x3326d2(0x34f)]['push'](_0x3196af);return;}this['_applyRemoteChangeset'](_0x3196af);}}[_0x1b4be4(0x214)](){const _0x23d4f7=_0x1b4be4;this[_0x23d4f7(0x34f)][_0x23d4f7(0x3ee)](_0x5a9e56=>this[_0x23d4f7(0x152)](_0x5a9e56)),this[_0x23d4f7(0x34f)]=[];}[_0x1b4be4(0x152)](_0x5a5180){const _0x4fef98=_0x1b4be4,_0x32ec5f=this['_compressMutationService'][_0x4fef98(0x32f)][_0x4fef98(0x516)](this[_0x4fef98(0x2e2)][_0x4fef98(0x32f)][_0x4fef98(0x20d)]()[_0x4fef98(0x50c)])(_0x5a5180['mutations'],null)||_0x5a5180[_0x4fef98(0x1ec)],_0x443abf={..._0x5a5180,'mutations':_0x32ec5f};this['_lockTransition'](),this[_0x4fef98(0x341)](this[_0x4fef98(0x394)][_0x4fef98(0x305)](_0x443abf)),this[_0x4fef98(0x4b2)]();}[_0x1b4be4(0x5d1)](_0x3c895e){const _0x197729=_0x1b4be4;this[_0x197729(0x261)](),this['_updateState'](this[_0x197729(0x394)]['onRemoteAck'](_0x3c895e)),this[_0x197729(0x4b2)]();}[_0x1b4be4(0x479)](_0x2a744a){const _0x2aa270=_0x1b4be4;this[_0x2aa270(0x261)](),this[_0x2aa270(0x341)](this['_state'][_0x2aa270(0x39a)](_0x2a744a)),this[_0x2aa270(0x4b2)]();}['_onRemoteRetry'](_0x1cb959){const _0x12fd81=_0x1b4be4;this[_0x12fd81(0x261)](),this[_0x12fd81(0x341)](this[_0x12fd81(0x394)][_0x12fd81(0x3be)](_0x1cb959)),this[_0x12fd81(0x4b2)]();}[_0x1b4be4(0x22e)](_0xc37926){const _0x482eb2=_0x1b4be4;if(!(this[_0x482eb2(0x394)]instanceof re))throw new TypeError(_0x482eb2(0x199));const _0x45e74d=_0xc37926['map'](_0x190b5f=>{const _0x446931=_0x482eb2,_0x925ee5=this['_compressMutationService'][_0x446931(0x32f)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x446931(0x32f)][_0x446931(0x20d)]()[_0x446931(0x50c)])(_0x190b5f['mutations'],null)||_0x190b5f[_0x446931(0x1ec)];return{..._0x190b5f,'mutations':_0x925ee5};});this[_0x482eb2(0x261)](),this['_updateState'](this[_0x482eb2(0x394)][_0x482eb2(0x3d3)](_0x45e74d)),this['_unlockTransition']();}[_0x1b4be4(0x45c)](){const _0x2f9ae9=_0x1b4be4;this[_0x2f9ae9(0x261)](),this['_updateState'](this[_0x2f9ae9(0x394)][_0x2f9ae9(0x5bd)]()),this[_0x2f9ae9(0x4b2)]();}['_toggleOnline'](_0xd8e87f=!0x1){const _0xdadd02=_0x1b4be4;this[_0xdadd02(0x261)](),this[_0xdadd02(0x341)](this[_0xdadd02(0x394)]['toggleOnline']()),this['_unlockTransition']();const _0x2674a5=this['_state'];_0xd8e87f&&_0x2674a5 instanceof ye&&(this[_0xdadd02(0x261)](),this[_0xdadd02(0x341)](_0x2674a5['fetchMiss']()),this[_0xdadd02(0x4b2)]());}async[_0x1b4be4(0x156)](){return new Promise(_0x112a3d=>{const _0x4e3190=_0x446a;this[_0x4e3190(0x129)]['sessionStatus$'][_0x4e3190(0x33d)](A['take'](0x1))[_0x4e3190(0x559)](async _0x504756=>{const _0x57ebaa=_0x4e3190;_0x112a3d(await this[_0x57ebaa(0x571)](_0x504756===ne['ONLINE']));});});}[_0x1b4be4(0x403)](){const _0x21c56a=this['unitID'];return{'onStateChange':(_0xeffef6,_0x34c6a2)=>{const _0x1a1c31=_0x446a;if(_0xeffef6!==this[_0x1a1c31(0x394)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0xeffef6['status']+_0x1a1c31(0x207)+_0x34c6a2[_0x1a1c31(0x352)]+'\x0aCurrent:\x20'+this[_0x1a1c31(0x394)][_0x1a1c31(0x352)]);this[_0x1a1c31(0x341)](_0x34c6a2);},'onSendChangeset':_0x2b4c99=>{const _0x46c3b1=_0x446a;_0x2b4c99['sid']||(_0x2b4c99['sid']=this[_0x46c3b1(0x5a7)],_0x2b4c99[_0x46c3b1(0x203)]=++this[_0x46c3b1(0x16d)]);const _0x5a77bf={'eventID':m[_0x46c3b1(0x289)][_0x46c3b1(0x35a)],'data':{'unitID':_0x2b4c99[_0x46c3b1(0x4c2)],'unitType':this[_0x46c3b1(0x20c)],'changeset':_0x2b4c99,'memberID':this[_0x46c3b1(0x129)]['getMemberID']()}};this[_0x46c3b1(0x129)][_0x46c3b1(0x430)](_0x5a77bf,this['unitID']);},'onMissingChangesets':({from:_0x307597,to:_0x4fb084})=>{const _0x50141c=_0x446a;this['_logService'][_0x50141c(0x2b6)](_0x50141c(0x55f),'fetching\x20missing\x20changesets\x20from\x20'+_0x307597+_0x50141c(0x469)+_0x4fb084);const _0x3fdd85={'eventID':m[_0x50141c(0x289)][_0x50141c(0x1b1)],'data':{'unitID':_0x21c56a,'unitType':this[_0x50141c(0x20c)],'from':_0x307597,'to':_0x4fb084}};this['session']['send'](_0x3fdd85,this[_0x50141c(0x4c2)]);}};}async[_0x1b4be4(0x571)](_0x4fd171){const _0x78e52b=_0x1b4be4;var _0x1d3a8b,_0x2ccfd5;const _0x734d8=await this[_0x78e52b(0x2d7)][_0x78e52b(0x120)](this[_0x78e52b(0x4c2)]),_0x50401e=(_0x1d3a8b=_0x734d8==null?void 0x0:_0x734d8['mutations'])!=null?_0x1d3a8b:[],_0x23f6aa=(_0x2ccfd5=_0x734d8==null?void 0x0:_0x734d8[_0x78e52b(0x425)])!=null?_0x2ccfd5:null,_0x4e5369=!!(_0x23f6aa!=null&&_0x23f6aa[_0x78e52b(0x36f)])&&!!(_0x23f6aa!=null&&_0x23f6aa[_0x78e52b(0x203)]);this['_changesetSessionId']=_0x4e5369?_0x23f6aa[_0x78e52b(0x36f)]:Rn(),this[_0x78e52b(0x16d)]=_0x4e5369?_0x23f6aa[_0x78e52b(0x203)]:0x0;const _0x5dd3aa=this['unitID'];try{this[_0x78e52b(0x39c)](_0x23f6aa,_0x50401e);}catch(_0x4ce214){this['_logService'][_0x78e52b(0x218)](_0x4ce214);}const _0x2c46e1=this[_0x78e52b(0x403)]();if(_0x4fd171){const _0x369639=wi(this[_0x78e52b(0x232)],_0x5dd3aa,this[_0x78e52b(0x20c)],_0x23f6aa,_0x50401e,_0x2c46e1);return _0x369639 instanceof ae?_0x369639[_0x78e52b(0x2dd)]():(_0x369639 instanceof ce||_0x369639 instanceof de)&&_0x369639[_0x78e52b(0x3f8)](),_0x369639;}return this[_0x78e52b(0x232)][_0x78e52b(0x2c5)](ve,_0x5dd3aa,this[_0x78e52b(0x20c)],_0x23f6aa,_0x50401e,_0x2c46e1);}[_0x1b4be4(0x39c)](_0x465944,_0x846021){const _0x4e2512=_0x1b4be4;var _0x3d2bd9,_0x951cbe;const _0x2e1c3e=this[_0x4e2512(0x2e2)][_0x4e2512(0x32f)][_0x4e2512(0x516)](this[_0x4e2512(0x2e2)]['interceptor'][_0x4e2512(0x20d)]()[_0x4e2512(0x50c)]);(_0x3d2bd9=_0x2e1c3e((_0x465944==null?void 0x0:_0x465944[_0x4e2512(0x1ec)])||[],null))==null||_0x3d2bd9['forEach'](_0x240fee=>this['_commandService'][_0x4e2512(0x4a8)](_0x240fee['id'],_0x240fee['params'])),(_0x951cbe=_0x2e1c3e(_0x846021||[],null))==null||_0x951cbe['forEach'](_0x284ac0=>this[_0x4e2512(0x3a7)][_0x4e2512(0x4a8)](_0x284ac0['id'],_0x284ac0['params']));}},exports[_0x1b4be4(0x485)]=Mt([H(0x3,a['Inject'](a[_0x1b4be4(0x3a0)])),H(0x4,a[_0x1b4be4(0x5da)](exports[_0x1b4be4(0x3ec)])),H(0x5,a[_0x1b4be4(0x5da)](m[_0x1b4be4(0x46c)])),H(0x6,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x138)])),H(0x7,a[_0x1b4be4(0x5da)](m[_0x1b4be4(0x2de)])),H(0x8,a[_0x1b4be4(0x509)]),H(0x9,a[_0x1b4be4(0x58f)]),H(0xa,ee[_0x1b4be4(0x182)]),H(0xb,a['IPermissionService']),H(0xc,a[_0x1b4be4(0x3ab)](ot))],exports[_0x1b4be4(0x485)]),exports[_0x1b4be4(0x5bb)]=class extends exports[_0x1b4be4(0x485)]{constructor(_0x4c323d,_0x4de1b5,_0x20c3af,_0x137000,_0x277f28,_0x1b1aeb,_0x171a56,_0x49a5a0,_0x42d377,_0x4f1f13,_0x575aa8,_0x27b747,_0x39bfd2,_0x541b46,_0x26310f,_0x11d9cc,_0x12db68,_0x251f6f){const _0x36f856=_0x1b4be4;super(_0x4c323d,_0x20c3af,_0x4de1b5,_0x137000,_0x277f28,_0x1b1aeb,_0x171a56,_0x49a5a0,_0x541b46,_0x26310f,_0x11d9cc,_0x12db68,_0x251f6f),this[_0x36f856(0x4c2)]=_0x4c323d,this[_0x36f856(0x336)]=_0x4de1b5,this[_0x36f856(0x204)]=_0x42d377,this[_0x36f856(0x534)]=_0x4f1f13,this[_0x36f856(0x4be)]=_0x575aa8,this['_docTransformSelectionsService']=_0x27b747,this['_docSyncEditingCollabCursorService']=_0x39bfd2;}['_createHandler'](){const _0x5bbbd6=_0x1b4be4,_0x55b771=super['_createHandler']();return _0x55b771[_0x5bbbd6(0x14e)]=_0x24f713=>this['_docTransformIMECacheService'][_0x5bbbd6(0x200)](_0x24f713),_0x55b771['onTransformState']=_0x4ea496=>this[_0x5bbbd6(0x4be)][_0x5bbbd6(0x3bb)](_0x4ea496),_0x55b771['onTransformSelections']=_0x57a16d=>this['_docTransformSelectionsService']['transformSelections'](_0x57a16d),_0x55b771['onSyncEditingCollabCursor']=_0x40fc05=>this[_0x5bbbd6(0x301)][_0x5bbbd6(0x286)](_0x40fc05),_0x55b771[_0x5bbbd6(0x14c)]=_0xa828d2=>this[_0x5bbbd6(0x534)][_0x5bbbd6(0x18d)](_0xa828d2),_0x55b771[_0x5bbbd6(0x3ef)]=_0x11c05f=>this[_0x5bbbd6(0x4be)][_0x5bbbd6(0x18d)](_0x11c05f),_0x55b771;}async['_init'](){const _0x2f436b=_0x1b4be4,_0x3b9ca3=await super['_init']();return this['disposeWithMe'](this['_docStateChangeManagerService'][_0x2f436b(0x279)][_0x2f436b(0x33d)](A['takeUntil'](this[_0x2f436b(0x372)]))[_0x2f436b(0x559)](_0x4d9852=>{const _0x157034=_0x2f436b;if(_0x4d9852==null)return;const {unitId:_0x4f2a3f,redoState:_0x356062,commandId:_0x1f0236}=_0x4d9852;if(_0x4f2a3f!==this[_0x157034(0x4c2)])return;const _0x336077={'id':_0x1f0236,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0x4f2a3f,'actions':_0x356062['actions'],'textRanges':null}};this[_0x157034(0x35d)](_0x336077);})),this[_0x2f436b(0x424)](this[_0x2f436b(0x3a7)][_0x2f436b(0x5be)]((_0x52f5ea,_0x59801a)=>{const _0x2fe7a0=_0x2f436b;if(_0x52f5ea[_0x2fe7a0(0x336)]!==a[_0x2fe7a0(0x467)][_0x2fe7a0(0x2ee)]||_0x59801a!=null&&_0x59801a[_0x2fe7a0(0x343)]||_0x59801a!=null&&_0x59801a['onlyLocal']||_0x52f5ea['id']===ge[_0x2fe7a0(0x543)]['id'])return;const _0x26a578=_0x52f5ea[_0x2fe7a0(0x269)];if((_0x26a578==null?void 0x0:_0x26a578[_0x2fe7a0(0x5d3)])!==this[_0x2fe7a0(0x4c2)])return;const _0x10659a=_0x52f5ea,_0x49f688=this[_0x2fe7a0(0x2e2)][_0x2fe7a0(0x32f)][_0x2fe7a0(0x516)](this[_0x2fe7a0(0x2e2)][_0x2fe7a0(0x32f)][_0x2fe7a0(0x20d)]()[_0x2fe7a0(0x3de)])([_0x10659a],null)||[_0x10659a];this[_0x2fe7a0(0x35d)](_0x49f688[0x0]);})),_0x3b9ca3;}},exports[_0x1b4be4(0x5bb)]=Mt([H(0x3,a[_0x1b4be4(0x5da)](a['Injector'])),H(0x4,a['Inject'](exports[_0x1b4be4(0x3ec)])),H(0x5,a[_0x1b4be4(0x5da)](m[_0x1b4be4(0x46c)])),H(0x6,a['Inject'](a[_0x1b4be4(0x138)])),H(0x7,a[_0x1b4be4(0x5da)](m[_0x1b4be4(0x2de)])),H(0x8,a['Inject'](J[_0x1b4be4(0x53c)])),H(0x9,a[_0x1b4be4(0x5da)](Je)),H(0xa,a[_0x1b4be4(0x5da)](Qe)),H(0xb,a[_0x1b4be4(0x5da)](et)),H(0xc,a[_0x1b4be4(0x5da)](Ut)),H(0xd,a[_0x1b4be4(0x509)]),H(0xe,a[_0x1b4be4(0x58f)]),H(0xf,ee[_0x1b4be4(0x182)]),H(0x10,a[_0x1b4be4(0x56b)]),H(0x11,a[_0x1b4be4(0x3ab)](ot))],exports[_0x1b4be4(0x5bb)]),exports[_0x1b4be4(0x3e2)]=class extends exports['CollaborationEntity']{constructor(_0x3cb209,_0x82d47b,_0x11dd43,_0x4b4ca8,_0x1a6e42,_0x147676,_0x2a5a07,_0x4286c6,_0x11a6f2,_0x240874,_0x1f41c5,_0x5d0373,_0x5a99ac,_0x3c01b9){const _0x889cc8=_0x1b4be4;super(_0x3cb209,_0x11dd43,_0x82d47b,_0x4b4ca8,_0x1a6e42,_0x147676,_0x2a5a07,_0x4286c6,_0x240874,_0x1f41c5,_0x5d0373,_0x5a99ac,_0x3c01b9),this[_0x889cc8(0x4c2)]=_0x3cb209,this['type']=_0x82d47b,this[_0x889cc8(0x2c1)]=_0x11a6f2;}[_0x1b4be4(0x403)](){const _0x530760=_0x1b4be4,_0x5d99c5=super[_0x530760(0x403)]();return _0x5d99c5[_0x530760(0x442)]=_0x2a541f=>this[_0x530760(0x2c1)][_0x530760(0x55a)](_0x2a541f),_0x5d99c5;}async[_0x1b4be4(0x421)](){const _0xcd3ca5=_0x1b4be4,_0x2b66bb=await super[_0xcd3ca5(0x421)]();return this[_0xcd3ca5(0x424)](this[_0xcd3ca5(0x3a7)][_0xcd3ca5(0x5be)]((_0x1a7a87,_0x3f3b94)=>{const _0x49bdf4=_0xcd3ca5;if(_0x1a7a87[_0x49bdf4(0x336)]!==a[_0x49bdf4(0x467)][_0x49bdf4(0x2ee)]||_0x3f3b94!=null&&_0x3f3b94['fromCollab']||_0x3f3b94!=null&&_0x3f3b94[_0x49bdf4(0x277)])return;const _0x33098d=_0x1a7a87[_0x49bdf4(0x269)];if((_0x33098d==null?void 0x0:_0x33098d['unitId'])!==this['unitID'])return;const _0x4fffa2=_0x1a7a87,_0x30b741=this['_compressMutationService'][_0x49bdf4(0x32f)][_0x49bdf4(0x516)](this['_compressMutationService'][_0x49bdf4(0x32f)][_0x49bdf4(0x20d)]()[_0x49bdf4(0x3de)])([_0x4fffa2],null)||[_0x4fffa2];this[_0x49bdf4(0x35d)](_0x30b741[0x0]);})),_0x2b66bb;}},exports[_0x1b4be4(0x3e2)]=Mt([H(0x3,a[_0x1b4be4(0x5da)](a['Injector'])),H(0x4,a['Inject'](exports[_0x1b4be4(0x3ec)])),H(0x5,a[_0x1b4be4(0x5da)](m[_0x1b4be4(0x46c)])),H(0x6,a[_0x1b4be4(0x5da)](a['LocaleService'])),H(0x7,a['Inject'](m[_0x1b4be4(0x2de)])),H(0x8,a[_0x1b4be4(0x5da)](Ze)),H(0x9,a['ILogService']),H(0xa,a[_0x1b4be4(0x58f)]),H(0xb,ee[_0x1b4be4(0x182)]),H(0xc,a[_0x1b4be4(0x56b)]),H(0xd,a[_0x1b4be4(0x3ab)](ot))],exports['SheetCollaborationEntity']);var Jn=Object[_0x1b4be4(0x3c9)],Zn=Object['getOwnPropertyDescriptor'],Qn=(_0x5d19d8,_0x5ee42b,_0x506982,_0x4f84cb)=>{for(var _0x24db39=_0x4f84cb>0x1?void 0x0:_0x4f84cb?Zn(_0x5ee42b,_0x506982):_0x5ee42b,_0x38e088=_0x5d19d8['length']-0x1,_0x28eb9e;_0x38e088>=0x0;_0x38e088--)(_0x28eb9e=_0x5d19d8[_0x38e088])&&(_0x24db39=(_0x4f84cb?_0x28eb9e(_0x5ee42b,_0x506982,_0x24db39):_0x28eb9e(_0x24db39))||_0x24db39);return _0x4f84cb&&_0x24db39&&Jn(_0x5ee42b,_0x506982,_0x24db39),_0x24db39;},ut=(_0x2af15a,_0x836f3c)=>(_0x5a73cf,_0x190182)=>_0x836f3c(_0x5a73cf,_0x190182,_0x2af15a);exports[_0x1b4be4(0x3d4)]=class extends a[_0x1b4be4(0x472)]{constructor(_0x415f81,_0x2ee33e,_0x32b8a7){const _0xe40b02=_0x1b4be4;super(),I(this,_0xe40b02(0x3e8),new Map()),I(this,_0xe40b02(0x4d4),new A[(_0xe40b02(0x1a3))]()),(this[_0xe40b02(0x232)]=_0x415f81,this[_0xe40b02(0x1fd)]=_0x2ee33e,this[_0xe40b02(0x471)]=_0x32b8a7,this[_0xe40b02(0x421)]());}[_0x1b4be4(0x576)](){const _0x215c7a=_0x1b4be4;super[_0x215c7a(0x576)](),this[_0x215c7a(0x3e8)][_0x215c7a(0x3ee)](_0x46bdad=>_0x46bdad[_0x215c7a(0x576)]()),this['_entities'][_0x215c7a(0x162)]();}[_0x1b4be4(0x2c8)](_0x179f1b){const _0x58a56a=_0x1b4be4;var _0x2753cf;return(_0x2753cf=this[_0x58a56a(0x3e8)][_0x58a56a(0x35b)](_0x179f1b))!=null?_0x2753cf:null;}[_0x1b4be4(0x56c)](_0x21a376){const _0x3e09ac=_0x1b4be4,_0xc5b76e=this[_0x3e09ac(0x2c8)](_0x21a376);return _0xc5b76e?A['of'](_0xc5b76e):this['_entityInit$'][_0x3e09ac(0x33d)](V[_0x3e09ac(0x316)](_0x2924d6=>_0x2924d6['unitID']===_0x21a376));}[_0x1b4be4(0x421)](){const _0x3417e6=_0x1b4be4;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x3417e6(0x577)][_0x3417e6(0x5b1)])[_0x3417e6(0x33d)](A['takeUntil'](this[_0x3417e6(0x372)]),V['delay'](0x10))[_0x3417e6(0x559)](async _0x406320=>{const _0x4ef198=_0x3417e6,_0x3d03fa=_0x406320['getUnitId'](),_0x318625=await this[_0x4ef198(0x5db)](_0x3d03fa,ie['UNIVER_SHEET']);this[_0x4ef198(0x3e8)]['set'](_0x3d03fa,_0x318625);}),this[_0x3417e6(0x471)]['getTypeOfUnitAdded$'](a[_0x3417e6(0x577)][_0x3417e6(0x435)])[_0x3417e6(0x33d)](A['takeUntil'](this[_0x3417e6(0x372)]),V['delay'](0x10))[_0x3417e6(0x33d)](V[_0x3417e6(0x316)](_0x54edfd=>!_0x54edfd[_0x3417e6(0x133)]()[_0x3417e6(0x57a)]('__')))[_0x3417e6(0x559)](async _0x5b71c0=>{const _0xa5c9=_0x3417e6,_0x17d6d4=_0x5b71c0[_0xa5c9(0x133)](),_0x244f34=await this[_0xa5c9(0x5db)](_0x17d6d4,ie[_0xa5c9(0x435)]);this[_0xa5c9(0x3e8)][_0xa5c9(0x5c1)](_0x17d6d4,_0x244f34);}),A[_0x3417e6(0x351)](this[_0x3417e6(0x471)][_0x3417e6(0x5a1)](a[_0x3417e6(0x577)][_0x3417e6(0x5b1)]),this[_0x3417e6(0x471)][_0x3417e6(0x5a1)](a[_0x3417e6(0x577)][_0x3417e6(0x435)]))[_0x3417e6(0x33d)](A[_0x3417e6(0x273)](this['dispose$']))[_0x3417e6(0x559)](_0x16f548=>{const _0x33bed9=_0x3417e6,_0x1bf6ef=_0x16f548[_0x33bed9(0x133)](),_0x30189b=this['_entities'][_0x33bed9(0x35b)](_0x1bf6ef);_0x30189b&&(_0x30189b[_0x33bed9(0x576)](),this['_entities'][_0x33bed9(0x192)](_0x1bf6ef));});}async[_0x1b4be4(0x5db)](_0x14437c,_0x564268){const _0xbf23e1=_0x1b4be4,_0x1247c8=await this[_0xbf23e1(0x1fd)]['requireSession'](_0x14437c),_0x3b2151=this[_0xbf23e1(0x232)][_0xbf23e1(0x2c5)](this[_0xbf23e1(0x150)](_0x564268),_0x14437c,_0x564268,_0x1247c8);return await _0x3b2151['init'](),this[_0xbf23e1(0x4d4)][_0xbf23e1(0x258)](_0x3b2151),_0x3b2151;}[_0x1b4be4(0x150)](_0x42d594){const _0x1773f5=_0x1b4be4;switch(_0x42d594){case ie[_0x1773f5(0x435)]:return exports[_0x1773f5(0x5bb)];case ie[_0x1773f5(0x5b1)]:return exports[_0x1773f5(0x3e2)];default:throw new Error(_0x1773f5(0x27b)+_0x42d594);}}},exports[_0x1b4be4(0x3d4)]=Qn([ut(0x0,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x3a0)])),ut(0x1,a[_0x1b4be4(0x5da)](exports[_0x1b4be4(0x4bb)])),ut(0x2,a[_0x1b4be4(0x5e4)])],exports[_0x1b4be4(0x3d4)]);var er=Object[_0x1b4be4(0x3c9)],tr=Object[_0x1b4be4(0x3c7)],ir=(_0x380e21,_0x3e8e03,_0x5e3973,_0x1b6e58)=>{const _0x8cc567=_0x1b4be4;for(var _0x18653d=_0x1b6e58>0x1?void 0x0:_0x1b6e58?tr(_0x3e8e03,_0x5e3973):_0x3e8e03,_0x3d2e28=_0x380e21[_0x8cc567(0x1d6)]-0x1,_0x4c96d3;_0x3d2e28>=0x0;_0x3d2e28--)(_0x4c96d3=_0x380e21[_0x3d2e28])&&(_0x18653d=(_0x1b6e58?_0x4c96d3(_0x3e8e03,_0x5e3973,_0x18653d):_0x4c96d3(_0x18653d))||_0x18653d);return _0x1b6e58&&_0x18653d&&er(_0x3e8e03,_0x5e3973,_0x18653d),_0x18653d;},Gt=(_0x31fa60,_0x5be31d)=>(_0x4eb31b,_0x54c556)=>_0x5be31d(_0x4eb31b,_0x54c556,_0x31fa60);let tt=class extends a[_0x1b4be4(0x472)]{constructor(_0x3f375d,_0x4359cc){const _0x258c4e=_0x1b4be4;super(),this[_0x258c4e(0x501)]=_0x3f375d,this[_0x258c4e(0x2d6)]=_0x4359cc,this['_init']();}['_init'](){const _0x5de1f0=_0x1b4be4,_0x21b10b=this;this[_0x5de1f0(0x424)](this[_0x5de1f0(0x501)]['addClipboardHook']({'onBeforePasteImage':async _0x5739c9=>{const _0x466518=_0x5de1f0,_0x34c14c=await _0x21b10b['_imageIoService'][_0x466518(0x3c3)](_0x5739c9);return _0x34c14c?{'source':_0x34c14c['source'],'imageSourceType':_0x34c14c[_0x466518(0x4b7)]}:null;}}));}};tt=ir([Gt(0x0,J[_0x1b4be4(0x2d3)]),Gt(0x1,te[_0x1b4be4(0x497)])],tt);const Yt=[_0x1b4be4(0x506),_0x1b4be4(0x24f),_0x1b4be4(0x50f),'red300',_0x1b4be4(0x3e7),_0x1b4be4(0x565)];class At extends a[_0x1b4be4(0x3a8)]{constructor(){const _0x56addb=_0x1b4be4;super(...arguments),I(this,_0x56addb(0x32b),new Map()),I(this,_0x56addb(0x368),0x0);}[_0x1b4be4(0x311)](_0xa307d7){const _0x375d86=_0x1b4be4;if(this[_0x375d86(0x32b)][_0x375d86(0x1b5)](_0xa307d7))return this[_0x375d86(0x32b)]['get'](_0xa307d7);const _0x43d287=Yt[this['_colorIndex']];return this['_colorIndex']=(this[_0x375d86(0x368)]+0x1)%Yt[_0x375d86(0x1d6)],this[_0x375d86(0x32b)][_0x375d86(0x5c1)](_0xa307d7,_0x43d287),_0x43d287;}}var nr=Object[_0x1b4be4(0x3c9)],rr=Object[_0x1b4be4(0x3c7)],sr=(_0x5e845f,_0x488326,_0x3f31f3,_0x353b85)=>{const _0x5577b1=_0x1b4be4;for(var _0xba50dc=_0x353b85>0x1?void 0x0:_0x353b85?rr(_0x488326,_0x3f31f3):_0x488326,_0x991d2a=_0x5e845f[_0x5577b1(0x1d6)]-0x1,_0x50aa31;_0x991d2a>=0x0;_0x991d2a--)(_0x50aa31=_0x5e845f[_0x991d2a])&&(_0xba50dc=(_0x353b85?_0x50aa31(_0x488326,_0x3f31f3,_0xba50dc):_0x50aa31(_0xba50dc))||_0xba50dc);return _0x353b85&&_0xba50dc&&nr(_0x488326,_0x3f31f3,_0xba50dc),_0xba50dc;},Se=(_0x350e8d,_0x5903e3)=>(_0x581619,_0x1b4f13)=>_0x5903e3(_0x581619,_0x1b4f13,_0x350e8d);const or=0x12c,ar=0x64;let Et=class extends a[_0x1b4be4(0x472)]{constructor(_0x11c08b,_0x6a3495,_0x4c6993,_0x59e89a,_0x5e818e,_0x55160f,_0x51667c,_0x5df5ae,_0x36b7e1){const _0x1580f0=_0x1b4be4;super(),I(this,'_online',!0x1),I(this,'_init',!0x1),I(this,'_cursorInfo$',new A['BehaviorSubject'](new Map())),I(this,'cursorInfo$',this[_0x1580f0(0x590)][_0x1580f0(0x581)]()),I(this,'_roomMembers$',new A['BehaviorSubject']([])),I(this,'roomMembers$',this[_0x1580f0(0x518)][_0x1580f0(0x33d)](A[_0x1580f0(0x46d)](or))),I(this,'_updateLocalCursor',a['debounce'](_0x55d737=>{const _0x4a364c=_0x1580f0,_0x2a8e19={'eventID':m[_0x4a364c(0x289)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x4a364c(0x4c2)],'memberID':this[_0x4a364c(0x18c)][_0x4a364c(0x3af)](),'selection':Oi(_0x55d737)}};this[_0x4a364c(0x18c)][_0x4a364c(0x430)](_0x2a8e19,this[_0x4a364c(0x4c2)]);},ar)),(this[_0x1580f0(0x4c2)]=_0x11c08b,this[_0x1580f0(0x18c)]=_0x6a3495,this['_injector']=_0x4c6993,this[_0x1580f0(0x13a)]=_0x59e89a,this['_memberService']=_0x5e818e,this[_0x1580f0(0x272)]=_0x55160f,this['_transformService']=_0x51667c,this[_0x1580f0(0x471)]=_0x5df5ae,this[_0x1580f0(0x3a7)]=_0x36b7e1);}get[_0x1b4be4(0x1cf)](){const _0x10157f=_0x1b4be4;return this[_0x10157f(0x590)][_0x10157f(0x51e)]();}get[_0x1b4be4(0x147)](){return this['_roomMembers$']['getValue']();}[_0x1b4be4(0x576)](){const _0x4cd124=_0x1b4be4;super[_0x4cd124(0x576)](),this[_0x4cd124(0x590)][_0x4cd124(0x258)](new Map()),this[_0x4cd124(0x590)][_0x4cd124(0x169)](),this[_0x4cd124(0x518)]['next']([]),this[_0x4cd124(0x518)][_0x4cd124(0x169)]();}[_0x1b4be4(0x5af)](){const _0x53b92a=_0x1b4be4;this[_0x53b92a(0x421)]||(this['_init']=!0x0,this['_session']['sessionStatus$'][_0x53b92a(0x33d)](A[_0x53b92a(0x273)](this[_0x53b92a(0x372)]))['subscribe'](_0x182890=>{const _0x458b9b=_0x53b92a;_0x182890===ne[_0x458b9b(0x163)]?this[_0x458b9b(0x29f)]():this[_0x458b9b(0x45c)]();}),this[_0x53b92a(0x18c)][_0x53b92a(0x35f)][_0x53b92a(0x33d)](A[_0x53b92a(0x273)](this['dispose$']))[_0x53b92a(0x559)](_0x10d6ee=>{const _0x2f5591=_0x53b92a,_0x525583=_0x10d6ee[_0x2f5591(0x54f)];_0x525583===m[_0x2f5591(0x289)][_0x2f5591(0x4f1)]&&this[_0x2f5591(0x3e0)](_0x10d6ee),_0x525583===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x2f5591(0x468)](_0x10d6ee);}),this['disposeWithMe'](this['_commandService'][_0x53b92a(0x5be)](_0x1fab75=>{const _0x26c699=_0x53b92a,_0x14283c=_0x1fab75[_0x26c699(0x269)];_0x14283c!=null&&this['_online']&&_0x1fab75['id']===ge[_0x26c699(0x2b7)]['id']&&_0x14283c[_0x26c699(0x5d3)]===this[_0x26c699(0x4c2)]&&_0x14283c[_0x26c699(0x3a9)]===!0x1&&_0x14283c[_0x26c699(0x171)][_0x26c699(0x1d6)]>0x0&&this[_0x26c699(0x408)](_0x14283c['ranges']);})),this[_0x53b92a(0x272)]['collabCursorState$'][_0x53b92a(0x33d)](A[_0x53b92a(0x273)](this[_0x53b92a(0x372)]))[_0x53b92a(0x559)](_0x47d6fc=>{const _0x18dd01=_0x53b92a;if((_0x47d6fc==null?void 0x0:_0x47d6fc['unitID'])!==this[_0x18dd01(0x4c2)])return;const _0xb1933={'eventID':m[_0x18dd01(0x289)][_0x18dd01(0x4f1)],'data':_0x47d6fc};this[_0x18dd01(0x3e0)](_0xb1933);}),this[_0x53b92a(0x424)](this[_0x53b92a(0x3a7)]['onCommandExecuted'](_0x18b338=>{const _0x14d775=_0x53b92a;if(_0x18b338['params']==null)return;const _0x1c45e6=_0x18b338[_0x14d775(0x269)];if(_0x18b338['id']!==ge['RichTextEditingMutation']['id']||_0x1c45e6[_0x14d775(0x5d3)]!==this[_0x14d775(0x4c2)])return;const _0x25d036={'id':_0x14d775(0x282),'params':_0x1c45e6},_0x1810e6=this[_0x14d775(0x1cf)];for(const [_0x55419e,_0x3f56e5]of _0x1810e6){const _0x5c9554={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3f56e5['ranges']}},_0xca4ff9=this[_0x14d775(0x262)][_0x14d775(0x5d5)](_0x25d036,_0x5c9554,!0x1);if(m['isTransformMutationFailure'](_0xca4ff9))throw _0xca4ff9[_0x14d775(0x218)];_0x1810e6[_0x14d775(0x5c1)](_0x55419e,{..._0x3f56e5,'ranges':_0xca4ff9['m2Prime'][_0x14d775(0x269)][_0x14d775(0x155)]});}queueMicrotask(()=>{const _0x34a1a0=_0x14d775;this[_0x34a1a0(0x590)][_0x34a1a0(0x258)](_0x1810e6);});})));}[_0x1b4be4(0x3e0)](_0x1b7179){const _0x44e8d6=_0x1b4be4;var _0x28ca20,_0x575dca;const {memberID:_0x2ae26f,selection:_0x2e4bb1}=_0x1b7179[_0x44e8d6(0x464)],_0x5c47a2=Bn(_0x2e4bb1),_0x527cc6=(_0x575dca=(_0x28ca20=this['_memberService'][_0x44e8d6(0x26a)](this[_0x44e8d6(0x4c2)],_0x2ae26f))==null?void 0x0:_0x28ca20[_0x44e8d6(0x43c)])!=null?_0x575dca:_0x44e8d6(0x47d),_0x109cd0={'color':this[_0x44e8d6(0x13a)]['assignAColorForMemberID'](_0x2ae26f),'name':_0x527cc6,'ranges':_0x5c47a2},_0x4c1990=this[_0x44e8d6(0x1cf)];_0x4c1990[_0x44e8d6(0x5c1)](_0x2ae26f,_0x109cd0),this[_0x44e8d6(0x590)][_0x44e8d6(0x258)](_0x4c1990);}[_0x1b4be4(0x468)](_0x39417b){const _0x4503b9=_0x1b4be4,{memberID:_0x21a496}=_0x39417b[_0x4503b9(0x464)],_0x1e6644=this['cursorInfo'];_0x1e6644[_0x4503b9(0x192)](_0x21a496),this[_0x4503b9(0x590)][_0x4503b9(0x258)](_0x1e6644);}[_0x1b4be4(0x29f)](){const _0x1d7f94=_0x1b4be4;var _0x5655da;if(this[_0x1d7f94(0x184)]=!0x0,((_0x5655da=this[_0x1d7f94(0x471)]['getFocusedUnit']())==null?void 0x0:_0x5655da[_0x1d7f94(0x133)]())!==this[_0x1d7f94(0x4c2)])return;const _0x327438=this['_injector'][_0x1d7f94(0x35b)](ge[_0x1d7f94(0x22d)])[_0x1d7f94(0x19b)]();Array[_0x1d7f94(0x295)](_0x327438)&&_0x327438['length']>0x0&&this[_0x1d7f94(0x408)](_0x327438);}[_0x1b4be4(0x45c)](){const _0x4f1130=_0x1b4be4;this[_0x4f1130(0x184)]=!0x1;}};Et=sr([Se(0x2,a[_0x1b4be4(0x5da)](a['Injector'])),Se(0x3,a['Inject'](At)),Se(0x4,a['Inject'](exports[_0x1b4be4(0x41e)])),Se(0x5,a[_0x1b4be4(0x5da)](Ut)),Se(0x6,m[_0x1b4be4(0x1e1)]),Se(0x7,a[_0x1b4be4(0x5e4)]),Se(0x8,a[_0x1b4be4(0x58f)])],Et);var cr=Object['defineProperty'],lr=Object[_0x1b4be4(0x3c7)],hr=(_0x14af5b,_0x53178d,_0x215724,_0x13b04b)=>{const _0x49b6e0=_0x1b4be4;for(var _0x2fb64f=_0x13b04b>0x1?void 0x0:_0x13b04b?lr(_0x53178d,_0x215724):_0x53178d,_0x252a47=_0x14af5b[_0x49b6e0(0x1d6)]-0x1,_0x549463;_0x252a47>=0x0;_0x252a47--)(_0x549463=_0x14af5b[_0x252a47])&&(_0x2fb64f=(_0x13b04b?_0x549463(_0x53178d,_0x215724,_0x2fb64f):_0x549463(_0x2fb64f))||_0x2fb64f);return _0x13b04b&&_0x2fb64f&&cr(_0x53178d,_0x215724,_0x2fb64f),_0x2fb64f;},be=(_0x2135f5,_0x3f7982)=>(_0x3afbe7,_0x1d4c7c)=>_0x3f7982(_0x3afbe7,_0x1d4c7c,_0x2135f5);const _r=0x12c,ur=0x64,dr=()=>{let _0x25b4c1=[],_0x439e19=!0x1;return _0x114e3f=>{const _0x493454=_0x446a;_0x25b4c1[_0x493454(0x284)](_0x114e3f),_0x439e19||(_0x439e19=!0x0,setTimeout(()=>{_0x25b4c1['forEach'](_0x232b9c=>_0x232b9c()),_0x25b4c1=[],_0x439e19=!0x1;}));};};let bt=class extends a[_0x1b4be4(0x472)]{constructor(_0x481213,_0x5e8996,_0x31a09f,_0x323100,_0x12299d,_0xc0a1e2,_0x13a6a7,_0x510ab3){const _0x18c2f2=_0x1b4be4;super(),I(this,'_online',!0x1),I(this,_0x18c2f2(0x421),!0x1),I(this,'_cursorInfo$',new A[(_0x18c2f2(0x28f))](new Map())),I(this,_0x18c2f2(0x1ee),this[_0x18c2f2(0x590)][_0x18c2f2(0x581)]()),I(this,_0x18c2f2(0x518),new A['BehaviorSubject']([])),I(this,_0x18c2f2(0x1d7),this[_0x18c2f2(0x518)][_0x18c2f2(0x33d)](A[_0x18c2f2(0x46d)](_r))),I(this,'_updateLocalCursor',a[_0x18c2f2(0x222)]((_0x18f7a7,_0x3af355)=>{const _0x58d08b=_0x18c2f2,_0x13781a={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x58d08b(0x4c2)],'memberID':this[_0x58d08b(0x18c)][_0x58d08b(0x3af)](),'selection':$t[_0x58d08b(0x4da)](_0x18f7a7,_0x3af355[_0x58d08b(0x34c)])}};this[_0x58d08b(0x18c)]['send'](_0x13781a,this[_0x58d08b(0x4c2)]);},ur)),(this[_0x18c2f2(0x4c2)]=_0x481213,this['_session']=_0x5e8996,this[_0x18c2f2(0x232)]=_0x31a09f,this[_0x18c2f2(0x13a)]=_0x323100,this[_0x18c2f2(0x580)]=_0x12299d,this['_univerInstanceService']=_0xc0a1e2,this[_0x18c2f2(0x3a7)]=_0x13a6a7,this[_0x18c2f2(0x306)]=_0x510ab3);}get[_0x1b4be4(0x1cf)](){return this['_cursorInfo$']['getValue']();}get[_0x1b4be4(0x147)](){const _0x3afea3=_0x1b4be4;return this['_roomMembers$'][_0x3afea3(0x51e)]();}[_0x1b4be4(0x576)](){const _0x5cc398=_0x1b4be4;super[_0x5cc398(0x576)](),this[_0x5cc398(0x590)]['next'](new Map()),this['_cursorInfo$'][_0x5cc398(0x169)](),this[_0x5cc398(0x518)]['next']([]),this[_0x5cc398(0x518)][_0x5cc398(0x169)]();}[_0x1b4be4(0x5af)](){const _0x52b75d=_0x1b4be4;this['_init']||(this['_init']=!0x0,this[_0x52b75d(0x18c)][_0x52b75d(0x29d)][_0x52b75d(0x33d)](A['takeUntil'](this[_0x52b75d(0x372)]))[_0x52b75d(0x559)](_0x443165=>{const _0x6955d2=_0x52b75d;_0x443165===ne[_0x6955d2(0x163)]?this[_0x6955d2(0x29f)]():this[_0x6955d2(0x45c)]();}),this['_session']['event$'][_0x52b75d(0x33d)](A[_0x52b75d(0x273)](this['dispose$']))[_0x52b75d(0x559)](_0x315c42=>{const _0x455156=_0x52b75d,_0xd9d666=_0x315c42[_0x455156(0x54f)];_0xd9d666===m[_0x455156(0x289)][_0x455156(0x4f1)]&&this[_0x455156(0x3e0)](_0x315c42),_0xd9d666===m[_0x455156(0x289)][_0x455156(0x31a)]&&this[_0x455156(0x468)](_0x315c42);}),this[_0x52b75d(0x563)](),this[_0x52b75d(0x424)](this[_0x52b75d(0x3a7)][_0x52b75d(0x5be)](_0x246379=>{const _0x2397ca=_0x52b75d;if(this[_0x2397ca(0x184)]&&_0x246379['id']===k[_0x2397ca(0x432)]['id']&&_0x246379[_0x2397ca(0x269)][_0x2397ca(0x5d3)]===this[_0x2397ca(0x4c2)]){const _0x558ab7=_0x246379[_0x2397ca(0x269)];this['_updateLocalCursor'](_0x558ab7[_0x2397ca(0x4d2)],_0x558ab7['selections'][0x0]);}})));}['_onCursorUpdate'](_0xe48e12){const _0x33c283=_0x1b4be4;var _0xd42c74,_0xbe6ace;const {memberID:_0x36e09b,selection:_0x5cfc0b}=_0xe48e12[_0x33c283(0x464)],{sheetName:_0x14bf67,range:_0x28fe0a}=$t[_0x33c283(0x2cb)](_0x5cfc0b),_0x229957={'name':(_0xbe6ace=(_0xd42c74=this[_0x33c283(0x580)]['getMember'](this['unitID'],_0x36e09b))==null?void 0x0:_0xd42c74[_0x33c283(0x43c)])!=null?_0xbe6ace:'Unknown\x20user','range':this[_0x33c283(0x2b5)](_0x14bf67,_0x28fe0a),'sheetID':_0x14bf67,'color':this[_0x33c283(0x13a)][_0x33c283(0x311)](_0x36e09b),'selection':_0x5cfc0b},_0x310aa8=this['cursorInfo'];_0x310aa8[_0x33c283(0x5c1)](_0x36e09b,_0x229957),this[_0x33c283(0x590)][_0x33c283(0x258)](_0x310aa8);}['_onCursorDelete'](_0x218ac7){const _0x35e50f=_0x1b4be4,{memberID:_0x4dbf7d}=_0x218ac7['data'],_0x35f4d6=this['cursorInfo'];_0x35f4d6[_0x35e50f(0x192)](_0x4dbf7d),this[_0x35e50f(0x590)][_0x35e50f(0x258)](_0x35f4d6);}[_0x1b4be4(0x2b5)](_0x4db5b7,_0x5c8181){const _0x1bf495=_0x1b4be4;var _0x331ad8,_0x18291e;const _0x5ba719=(_0x18291e=(_0x331ad8=this[_0x1bf495(0x471)][_0x1bf495(0x22f)](this[_0x1bf495(0x4c2)]))==null?void 0x0:_0x331ad8[_0x1bf495(0x2e7)](_0x4db5b7))==null?void 0x0:_0x18291e[_0x1bf495(0x49a)]();return(_0x5ba719==null?void 0x0:_0x5ba719['find'](_0x292110=>a[_0x1bf495(0x369)][_0x1bf495(0x15d)](_0x292110,_0x5c8181)))||_0x5c8181;}[_0x1b4be4(0x563)](){const _0x217387=_0x1b4be4,_0x1945e3=new a['DisposableCollection'](),_0x990558=dr(),_0x46e993=()=>{const _0x1daa1e=_0x446a;_0x1945e3[_0x1daa1e(0x576)]();const _0x113743=(_0x394f4d,_0x450b09,_0x27c857,_0x3e67a3)=>{const _0x5ab8a8=_0x1daa1e;let _0x37e98a=[];switch(_0x394f4d['id']){case k[_0x5ab8a8(0x206)][_0x5ab8a8(0x5ba)]:{_0x37e98a=k[_0x5ab8a8(0x53a)](_0x394f4d,_0x3e67a3);break;}case k[_0x5ab8a8(0x206)][_0x5ab8a8(0x1ed)]:{_0x37e98a=k['handleDeleteRangeMoveUp'](_0x394f4d,_0x3e67a3);break;}case k[_0x5ab8a8(0x206)]['InsertColCommandId']:{_0x37e98a=k['handleInsertCol'](_0x394f4d,_0x3e67a3);break;}case k[_0x5ab8a8(0x206)]['InsertRangeMoveDownCommandId']:{_0x37e98a=k[_0x5ab8a8(0x17d)](_0x394f4d,_0x3e67a3);break;}case k[_0x5ab8a8(0x206)][_0x5ab8a8(0x48e)]:{_0x37e98a=k['handleInsertRangeMoveRight'](_0x394f4d,_0x3e67a3);break;}case k[_0x5ab8a8(0x206)][_0x5ab8a8(0x422)]:{_0x37e98a=k[_0x5ab8a8(0x544)](_0x394f4d,_0x3e67a3);break;}case k['EffectRefRangId']['MoveRangeCommandId']:{_0x37e98a=k[_0x5ab8a8(0x37c)](_0x394f4d,_0x3e67a3);break;}case k[_0x5ab8a8(0x206)]['RemoveColCommandId']:{_0x37e98a=k[_0x5ab8a8(0x5d6)](_0x394f4d,_0x3e67a3);break;}case k[_0x5ab8a8(0x206)][_0x5ab8a8(0x51f)]:{_0x37e98a=k[_0x5ab8a8(0x396)](_0x394f4d,_0x3e67a3);break;}}const _0x26f734=k[_0x5ab8a8(0x1ea)](_0x37e98a,_0x3e67a3),_0x4fbf07=this['cursorInfo'][_0x5ab8a8(0x35b)](_0x450b09);if(_0x4fbf07&&_0x26f734){const _0x1d8162={..._0x4fbf07,'range':_0x26f734};this[_0x5ab8a8(0x1cf)][_0x5ab8a8(0x5c1)](_0x450b09,_0x1d8162),_0x990558(()=>{const _0x3b1fdd=_0x5ab8a8,_0x5694c9=this[_0x3b1fdd(0x306)][_0x3b1fdd(0x40d)](_0x26f734,_0x30aa85=>(_0x5694c9[_0x3b1fdd(0x576)](),_0x113743(_0x30aa85,_0x450b09,_0x27c857,_0x26f734)));_0x1945e3['add'](_0x5694c9);});}return{'redos':[],'undos':[]};};this[_0x1daa1e(0x1cf)][_0x1daa1e(0x3ee)]((_0x37543f,_0x146fdf)=>{const _0x25587f=_0x1daa1e,{range:_0x21ac96,sheetID:_0x35e067}=_0x37543f,_0x462b73=this[_0x25587f(0x306)][_0x25587f(0x40d)](_0x21ac96,_0x4217c3=>(_0x462b73['dispose'](),_0x113743(_0x4217c3,_0x146fdf,_0x35e067,_0x21ac96)));_0x1945e3['add'](_0x462b73);});};this[_0x217387(0x424)](a[_0x217387(0x130)](this['_cursorInfo$'][_0x217387(0x559)](()=>{_0x46e993();})));}[_0x1b4be4(0x29f)](){const _0x4912fc=_0x1b4be4;var _0x4274d8,_0x282de4;if(this['_online']=!0x0,((_0x4274d8=this[_0x4912fc(0x471)][_0x4912fc(0x532)]())==null?void 0x0:_0x4274d8[_0x4912fc(0x133)]())!==this[_0x4912fc(0x4c2)])return;const _0x305eb2=(_0x282de4=this[_0x4912fc(0x232)]['get'](k[_0x4912fc(0x481)])['getCurrentSelections']())==null?void 0x0:_0x282de4[0x0],_0x1b1b3f=this[_0x4912fc(0x471)]['getCurrentUnitForType'](a['UniverInstanceType'][_0x4912fc(0x5b1)])[_0x4912fc(0x52b)]();_0x305eb2&&_0x1b1b3f&&this['_updateLocalCursor'](_0x1b1b3f[_0x4912fc(0x3a3)](),_0x305eb2);}[_0x1b4be4(0x45c)](){const _0x5ce123=_0x1b4be4;this[_0x5ce123(0x184)]=!0x1;}};bt=hr([be(0x2,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x3a0)])),be(0x3,a['Inject'](At)),be(0x4,a['Inject'](exports['MemberService'])),be(0x5,a[_0x1b4be4(0x5e4)]),be(0x6,a[_0x1b4be4(0x58f)]),be(0x7,a[_0x1b4be4(0x5da)](k['RefRangeService']))],bt);var fr=Object['defineProperty'],vr=Object[_0x1b4be4(0x3c7)],pr=(_0x3d7e59,_0x517237,_0x280b92,_0x427c71)=>{const _0x50315c=_0x1b4be4;for(var _0x2cc5fd=_0x427c71>0x1?void 0x0:_0x427c71?vr(_0x517237,_0x280b92):_0x517237,_0x306609=_0x3d7e59[_0x50315c(0x1d6)]-0x1,_0x24c405;_0x306609>=0x0;_0x306609--)(_0x24c405=_0x3d7e59[_0x306609])&&(_0x2cc5fd=(_0x427c71?_0x24c405(_0x517237,_0x280b92,_0x2cc5fd):_0x24c405(_0x2cc5fd))||_0x2cc5fd);return _0x427c71&&_0x2cc5fd&&fr(_0x517237,_0x280b92,_0x2cc5fd),_0x2cc5fd;},dt=(_0xe5f80d,_0x2a7a2c)=>(_0x576136,_0x2f6d20)=>_0x2a7a2c(_0x576136,_0x2f6d20,_0xe5f80d);let Oe=class extends a[_0x1b4be4(0x472)]{constructor(_0x242cb8,_0x253a66,_0x1273ef){const _0x38a6b6=_0x1b4be4;super(),I(this,_0x38a6b6(0x3e8),new Map()),I(this,_0x38a6b6(0x4d4),new A[(_0x38a6b6(0x1a3))]()),(this['_univerInstanceService']=_0x242cb8,this[_0x38a6b6(0x232)]=_0x253a66,this['_collabSessionService']=_0x1273ef,this[_0x38a6b6(0x421)]());}[_0x1b4be4(0x576)](){const _0x86263a=_0x1b4be4;super['dispose'](),this[_0x86263a(0x4d4)][_0x86263a(0x169)](),this[_0x86263a(0x3e8)][_0x86263a(0x3ee)](_0x4863c7=>_0x4863c7[_0x86263a(0x576)]());}['getCollabCursors$'](_0x392ae2){const _0x204ea0=_0x1b4be4;return this[_0x204ea0(0x3e8)][_0x204ea0(0x1b5)](_0x392ae2)?this[_0x204ea0(0x3e8)][_0x204ea0(0x35b)](_0x392ae2)['cursorInfo$']:this['_entityInit$'][_0x204ea0(0x33d)](A['filter'](_0x52b341=>_0x52b341[_0x204ea0(0x4c2)]===_0x392ae2),A[_0x204ea0(0x58d)](_0x2a7688=>_0x2a7688[_0x204ea0(0x1ee)]));}['_init'](){const _0x5ea8eb=_0x1b4be4;this[_0x5ea8eb(0x471)][_0x5ea8eb(0x4e5)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x5ea8eb(0x33d)](A[_0x5ea8eb(0x273)](this[_0x5ea8eb(0x372)]))[_0x5ea8eb(0x559)](async _0x2a9945=>{const _0x4ade22=_0x5ea8eb,_0x587637=_0x2a9945['getUnitId'](),_0x201294=await this[_0x4ade22(0x5c3)](_0x587637);this[_0x4ade22(0x4d4)][_0x4ade22(0x258)](_0x201294),this['_entities'][_0x4ade22(0x5c1)](_0x587637,_0x201294);}),this[_0x5ea8eb(0x471)][_0x5ea8eb(0x4e5)](a[_0x5ea8eb(0x577)][_0x5ea8eb(0x435)])[_0x5ea8eb(0x33d)](A[_0x5ea8eb(0x273)](this[_0x5ea8eb(0x372)]))[_0x5ea8eb(0x33d)](A['filter'](_0x2e8635=>!_0x2e8635['getUnitId']()[_0x5ea8eb(0x57a)]('__')))[_0x5ea8eb(0x559)](async _0x4934cb=>{const _0x558d7d=_0x5ea8eb,_0x4a2bb9=_0x4934cb[_0x558d7d(0x133)](),_0x11997c=await this[_0x558d7d(0x126)](_0x4a2bb9);this[_0x558d7d(0x4d4)][_0x558d7d(0x258)](_0x11997c),this[_0x558d7d(0x3e8)][_0x558d7d(0x5c1)](_0x4a2bb9,_0x11997c);}),A[_0x5ea8eb(0x351)](this[_0x5ea8eb(0x471)][_0x5ea8eb(0x5a1)](a['UniverInstanceType'][_0x5ea8eb(0x435)]),this[_0x5ea8eb(0x471)][_0x5ea8eb(0x5a1)](a[_0x5ea8eb(0x577)][_0x5ea8eb(0x5b1)]))[_0x5ea8eb(0x33d)](A[_0x5ea8eb(0x273)](this['dispose$']))[_0x5ea8eb(0x559)](_0x31aaeb=>{const _0x30a1ac=_0x5ea8eb,_0x34f27b=_0x31aaeb['getUnitId'](),_0x1c0475=this[_0x30a1ac(0x3e8)][_0x30a1ac(0x35b)](_0x34f27b);_0x1c0475&&(_0x1c0475[_0x30a1ac(0x576)](),this[_0x30a1ac(0x3e8)][_0x30a1ac(0x192)](_0x34f27b));});}async[_0x1b4be4(0x5c3)](_0x168ee2){const _0x4abe86=_0x1b4be4,_0x524cf8=await this[_0x4abe86(0x1fd)][_0x4abe86(0x525)](_0x168ee2),_0x5ded18=this[_0x4abe86(0x232)]['createInstance'](bt,_0x168ee2,_0x524cf8);return _0x5ded18[_0x4abe86(0x5af)](),_0x5ded18;}async[_0x1b4be4(0x126)](_0x457234){const _0x1120c8=_0x1b4be4,_0x26fed2=await this[_0x1120c8(0x1fd)]['requireSession'](_0x457234),_0x55fd2d=this[_0x1120c8(0x232)][_0x1120c8(0x2c5)](Et,_0x457234,_0x26fed2);return _0x55fd2d[_0x1120c8(0x5af)](),_0x55fd2d;}};Oe=pr([dt(0x0,a[_0x1b4be4(0x5e4)]),dt(0x1,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x3a0)])),dt(0x2,a[_0x1b4be4(0x5da)](exports[_0x1b4be4(0x4bb)]))],Oe);const Le=0x14,qt=0xc8,ft=0x4,Sr=0x5;function mr(_0x478151,_0x4ecfd9){const _0x15d409=_0x1b4be4;let {radius:_0x51e04a,width:_0x59a504,height:_0x1bf8a6}=_0x4ecfd9;_0x51e04a=_0x51e04a!=null?_0x51e04a:0x0,_0x59a504=_0x59a504!=null?_0x59a504:0x1e,_0x1bf8a6=_0x1bf8a6!=null?_0x1bf8a6:0x1e;let _0x33d04d=0x0,_0x5eb15a=0x0,_0x3a1eba=0x0;_0x33d04d=_0x5eb15a=_0x3a1eba=Math[_0x15d409(0x5e1)](_0x51e04a,_0x59a504/0x2,_0x1bf8a6/0x2),_0x478151[_0x15d409(0x1b7)](),_0x478151[_0x15d409(0x55c)](_0x33d04d,0x0),_0x478151[_0x15d409(0x2ea)](_0x59a504-_0x5eb15a,0x0),_0x478151[_0x15d409(0x3b3)](_0x59a504-_0x5eb15a,_0x5eb15a,_0x5eb15a,Math['PI']*0x3/0x2,0x0,!0x1),_0x478151[_0x15d409(0x2ea)](_0x59a504,_0x1bf8a6-_0x3a1eba),_0x478151[_0x15d409(0x3b3)](_0x59a504-_0x3a1eba,_0x1bf8a6-_0x3a1eba,_0x3a1eba,0x0,Math['PI']/0x2,!0x1),_0x478151[_0x15d409(0x2ea)](0x0,_0x1bf8a6),_0x478151[_0x15d409(0x2ea)](0x0,_0x33d04d),_0x478151[_0x15d409(0x3b3)](_0x33d04d,_0x33d04d,_0x33d04d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x478151[_0x15d409(0x404)](),_0x4ecfd9['fill']&&(_0x478151[_0x15d409(0x57e)](),_0x478151['fillStyle']=_0x4ecfd9[_0x15d409(0x5e6)],_0x4ecfd9[_0x15d409(0x1bd)]===_0x15d409(0x1c3)?_0x478151[_0x15d409(0x5e6)](_0x15d409(0x1c3)):_0x478151[_0x15d409(0x5e6)](),_0x478151['restore']());}class at extends q['Shape']{constructor(_0x145062,_0x42a60f){const _0xf2bab=_0x1b4be4;super(_0x145062,_0x42a60f),I(this,'color'),I(this,_0xf2bab(0x121)),(this['color']=_0x42a60f==null?void 0x0:_0x42a60f[_0xf2bab(0x3e1)],this[_0xf2bab(0x121)]=_0x42a60f==null?void 0x0:_0x42a60f[_0xf2bab(0x121)]);}static[_0x1b4be4(0x2d8)](_0x111d21,_0x5c4555){const _0x179f52=_0x1b4be4,{text:_0x3e1e25,color:_0x203eb3}=_0x5c4555;_0x111d21[_0x179f52(0x57e)](),_0x111d21[_0x179f52(0x1a9)]=_0x179f52(0x5c4);const _0x369a7a=_0x111d21['measureText'](_0x3e1e25)['width'],_0x348d10=Math[_0x179f52(0x5e1)](_0x369a7a+0x2*ft,qt);mr(_0x111d21,{'height':Le,'radius':0x4,'width':_0x348d10,'fill':_0x203eb3,'evented':!0x1}),_0x111d21['fillStyle']='#FFF';const _0x1e794c=ft,_0x1c98eb=Le-Sr,_0x1eb663=qt-0x2*ft;if(_0x369a7a>_0x1eb663){let _0x527883='',_0x3c2ec6=0x0;for(const _0x957bb3 of _0x3e1e25){const _0x1311e5=_0x111d21[_0x179f52(0x1ba)](_0x957bb3)['width'];if(_0x3c2ec6+_0x1311e5<=_0x1eb663-_0x111d21[_0x179f52(0x1ba)](_0x179f52(0x1d3))[_0x179f52(0x5cc)])_0x527883+=_0x957bb3,_0x3c2ec6+=_0x1311e5;else{_0x527883+=_0x179f52(0x1d3);break;}}_0x111d21[_0x179f52(0x54a)](_0x527883,_0x1e794c,_0x1c98eb);}else _0x111d21[_0x179f52(0x54a)](_0x3e1e25,_0x1e794c,_0x1c98eb);_0x111d21[_0x179f52(0x1c2)]();}[_0x1b4be4(0x28c)](_0x3e2427){const _0xa07b=_0x1b4be4;at[_0xa07b(0x2d8)](_0x3e2427,this);}}const vt=_0x1b4be4(0x4c3),gr=_0x1b4be4(0x36d),Ir=_0x1b4be4(0x1dd),we=0x6,Cr=1.5,pt=0x4,Er=1.5,br=_0x1b4be4(0x22a);class Kt{constructor(_0x58064f,_0x3ae67e,_0xc39409,_0x5bf81d){const _0x28a97a=_0x1b4be4;I(this,_0x28a97a(0x2d5),[]),I(this,_0x28a97a(0x359),null),I(this,'_textBubble',null),I(this,_0x28a97a(0x4ae),null),I(this,_0x28a97a(0x47b),null),I(this,_0x28a97a(0x536),null),(this[_0x28a97a(0x27f)]=_0x58064f,this[_0x28a97a(0x522)]=_0x3ae67e,this['_docSkeleton']=_0xc39409,this[_0x28a97a(0x19c)]=_0x5bf81d,this['_render']());}set['_hover'](_0x3fd3fd){const _0x11520d=_0x1b4be4;_0x3fd3fd?(this[_0x11520d(0x4ae)]&&this[_0x11520d(0x4ae)][_0x11520d(0x21d)](),this[_0x11520d(0x1c1)]&&this[_0x11520d(0x1c1)][_0x11520d(0x53e)]()):(this[_0x11520d(0x4ae)]&&this[_0x11520d(0x4ae)][_0x11520d(0x53e)](),this[_0x11520d(0x1c1)]&&this['_textBubble'][_0x11520d(0x21d)]());}[_0x1b4be4(0x576)](){const _0x54eb39=_0x1b4be4;for(const _0x2b3534 of this[_0x54eb39(0x2d5)])_0x2b3534[_0x54eb39(0x576)]();this[_0x54eb39(0x1c1)]&&this[_0x54eb39(0x1c1)][_0x54eb39(0x576)](),this[_0x54eb39(0x4ae)]&&this[_0x54eb39(0x4ae)][_0x54eb39(0x576)](),this[_0x54eb39(0x359)]&&this[_0x54eb39(0x359)][_0x54eb39(0x576)](),this[_0x54eb39(0x536)]&&this[_0x54eb39(0x536)]();}[_0x1b4be4(0x4eb)](){const _0x12eef0=_0x1b4be4;var _0x2f9c3e;const {_docSkeleton:_0x264fb6,_document:_0x307f11}=this,{color:_0xb498c6,name:_0x1616f4,ranges:_0x77e0fe}=this['_cursor'],_0x8c4567=_0x307f11[_0x12eef0(0x174)](),{docsLeft:_0x1a3dbe,docsTop:_0x23f38f}=_0x8c4567,_0x3884a9=new J['NodePositionConvertToCursor'](_0x8c4567,_0x264fb6);for(const {startOffset:_0x4744a1,endOffset:_0x1d1239,rangeType:_0x284c5f,segmentId:_0x549c62,segmentPage:_0x54ef5c,collapsed:_0x3434e2,isActive:_0x43c31b}of _0x77e0fe){const _0x111d4f=_0x264fb6[_0x12eef0(0x5a2)](_0x4744a1,!0x0,_0x549c62,_0x54ef5c);let _0x1a545f=_0x264fb6['findNodePositionByCharIndex'](_0x1d1239,!0x0,_0x549c62,_0x54ef5c);if(_0x1a545f==null&&(_0x1a545f=_0x264fb6[_0x12eef0(0x5a2)](_0x1d1239-0x1,!0x1,_0x549c62,_0x54ef5c)),_0x43c31b){const {contentBoxPointGroup:_0x2a7b77}=_0x3884a9[_0x12eef0(0x5b6)](_0x1a545f,_0x1a545f);if(_0x2a7b77[_0x12eef0(0x1d6)]===0x0)continue;this[_0x12eef0(0x54d)](_0xb498c6,_0x2a7b77,_0x1a3dbe,_0x23f38f,_0x1616f4),this[_0x12eef0(0x536)]=this[_0x12eef0(0x2c3)]();}if(_0x111d4f&&_0x1a545f){if(_0x284c5f===a['DOC_RANGE_TYPE'][_0x12eef0(0x4e7)]){const _0x42f0e6=new J[(_0x12eef0(0x158))](_0x8c4567,_0x264fb6),{pointGroup:_0x2f1f4b}=(_0x2f9c3e=_0x42f0e6['getRangePointData'](_0x111d4f,_0x1a545f))!=null?_0x2f9c3e:{};if(_0x2f1f4b==null||_0x2f1f4b[_0x12eef0(0x1d6)]===0x0)continue;this[_0x12eef0(0x4e4)](_0xb498c6,_0x2f1f4b,_0x1a3dbe,_0x23f38f);}else{if(!_0x3434e2){const {borderBoxPointGroup:_0x165327}=_0x3884a9[_0x12eef0(0x5b6)](_0x111d4f,_0x1a545f);if(_0x165327[_0x12eef0(0x1d6)]===0x0)continue;this[_0x12eef0(0x1df)](_0xb498c6,_0x165327,_0x1a3dbe,_0x23f38f);}}}}}['_drawAnchor'](_0x57268d,_0x514fdc,_0x10ccf1,_0x7fa87f,_0x554472){const _0x49c215=_0x1b4be4,_0x4db3cc=this[_0x49c215(0x14f)](_0x514fdc),{left:_0x45cf47,top:_0x57eefd,height:_0x29eff2}=_0x4db3cc,_0x352808=this[_0x49c215(0x25a)](),_0x461c62=Er/_0x352808,_0x4e8003=new q[(_0x49c215(0x259))](vt+a['Tools']['generateRandomId'](we),{'left':_0x45cf47+_0x10ccf1-_0x461c62,'top':_0x57eefd+_0x7fa87f,'height':_0x29eff2,'width':Cr,'fill':_0x57268d||q[_0x49c215(0x44b)](a[_0x49c215(0x5cb)]['black'],0x0),'strokeWidth':_0x461c62,'stroke':br,'evented':!0x0});this[_0x49c215(0x359)]=_0x4e8003,this[_0x49c215(0x522)]['addObject'](_0x4e8003,J[_0x49c215(0x3a1)]);const _0x10a1ff=new q[(_0x49c215(0x259))](vt+a[_0x49c215(0x59a)][_0x49c215(0x3bf)](we),{'left':_0x45cf47+_0x10ccf1-_0x461c62,'top':_0x57eefd+_0x7fa87f-pt/0x2,'height':pt,'width':pt,'fill':_0x57268d||q['getColor'](a[_0x49c215(0x5cb)][_0x49c215(0x5a8)],0x0),'strokeWidth':0x0,'stroke':_0x57268d||q['getColor'](a[_0x49c215(0x5cb)][_0x49c215(0x5a8)],0x0),'evented':!0x1});this[_0x49c215(0x4ae)]=_0x10a1ff,this['_scene'][_0x49c215(0x28d)](_0x10a1ff,J[_0x49c215(0x3a1)]);const _0x59d34a=new at(vt+a[_0x49c215(0x59a)][_0x49c215(0x3bf)](we),{'left':_0x45cf47+_0x10ccf1-_0x461c62,'top':_0x57eefd+_0x7fa87f-Le,'text':_0x554472,'color':_0x57268d});this['_textBubble']=_0x59d34a,this[_0x49c215(0x522)]['addObject'](_0x59d34a,J[_0x49c215(0x3a1)]),this['_hover']=!0x1;}[_0x1b4be4(0x2c3)](){const _0x18ce43=_0x1b4be4,_0x3d63df=this[_0x18ce43(0x359)][_0x18ce43(0x4b8)]['subscribeEvent'](()=>{const _0x58f35d=_0x18ce43;this[_0x58f35d(0x17b)]=!0x0;}),_0x13d496=this['_anchor'][_0x18ce43(0x4b9)][_0x18ce43(0x178)](()=>{const _0xfbadb6=_0x18ce43;this[_0xfbadb6(0x47b)]&&clearTimeout(this[_0xfbadb6(0x47b)]),this[_0xfbadb6(0x47b)]=setTimeout(()=>{const _0x260f67=_0xfbadb6;this[_0x260f67(0x17b)]=!0x1;},0x7d0);});return()=>{const _0x184245=_0x18ce43;_0x3d63df[_0x184245(0x1a8)](),_0x13d496[_0x184245(0x1a8)]();};}[_0x1b4be4(0x1df)](_0x3e7fa4,_0x10ea3d,_0x11f710,_0x326f6b){const _0x39fae5=_0x1b4be4,_0x319644=new a[(_0x39fae5(0x299))](_0x3e7fa4)['setAlpha'](0.2)[_0x39fae5(0x151)](),_0x38920d=new q[(_0x39fae5(0x37a))](gr+a[_0x39fae5(0x59a)]['generateRandomId'](we),{'pointsGroup':_0x10ea3d,'fill':_0x319644||q[_0x39fae5(0x44b)](a['COLORS']['black'],0.2),'left':_0x11f710,'top':_0x326f6b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x39fae5(0x2d5)][_0x39fae5(0x284)](_0x38920d),this[_0x39fae5(0x522)][_0x39fae5(0x28d)](_0x38920d,J['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x5e36db,_0x105b89,_0x559e71,_0x39c823){const _0xf82cfc=_0x1b4be4,_0x1cbc17=new a[(_0xf82cfc(0x299))](_0x5e36db)[_0xf82cfc(0x275)](0.2)[_0xf82cfc(0x151)](),_0x2a28fb=new q[(_0xf82cfc(0x37a))](Ir+a[_0xf82cfc(0x59a)][_0xf82cfc(0x3bf)](we),{'pointsGroup':_0x105b89,'fill':_0x1cbc17||q[_0xf82cfc(0x44b)](a['COLORS'][_0xf82cfc(0x5a8)],0.2),'left':_0x559e71,'top':_0x39c823,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xf82cfc(0x2d5)][_0xf82cfc(0x284)](_0x2a28fb),this['_scene'][_0xf82cfc(0x28d)](_0x2a28fb,J[_0xf82cfc(0x3a1)]);}[_0x1b4be4(0x14f)](_0x4d97f2){const _0x4c73fe=_0x4d97f2[0x0],_0x55dc01=_0x4c73fe[0x0],_0x54b1fb=_0x4c73fe[0x2],{x:_0x571aa2,y:_0x510cbd}=_0x55dc01,{x:_0x4fe62b,y:_0x4a7f6f}=_0x54b1fb;return{'left':_0x571aa2,'top':_0x510cbd,'width':_0x4fe62b-_0x571aa2,'height':_0x4a7f6f-_0x510cbd};}[_0x1b4be4(0x25a)](){const _0xb36c1=_0x1b4be4,{scaleX:_0x1f26f4,scaleY:_0x352e42}=this['_scene'][_0xb36c1(0x159)]();return Math[_0xb36c1(0x453)](_0x1f26f4,_0x352e42);}}var Tr=Object['defineProperty'],Rr=Object[_0x1b4be4(0x3c7)],yr=(_0x5a6722,_0x4c4c77,_0x42a8c7,_0x35db52)=>{const _0x269062=_0x1b4be4;for(var _0x1d415e=_0x35db52>0x1?void 0x0:_0x35db52?Rr(_0x4c4c77,_0x42a8c7):_0x4c4c77,_0x42e6d4=_0x5a6722[_0x269062(0x1d6)]-0x1,_0x88685d;_0x42e6d4>=0x0;_0x42e6d4--)(_0x88685d=_0x5a6722[_0x42e6d4])&&(_0x1d415e=(_0x35db52?_0x88685d(_0x4c4c77,_0x42a8c7,_0x1d415e):_0x88685d(_0x1d415e))||_0x1d415e);return _0x35db52&&_0x1d415e&&Tr(_0x4c4c77,_0x42a8c7,_0x1d415e),_0x1d415e;},$e=(_0x1e2448,_0x182538)=>(_0x412b77,_0xcdb6fd)=>_0x182538(_0x412b77,_0xcdb6fd,_0x1e2448);let Tt=class extends a[_0x1b4be4(0x472)]{constructor(_0x49258c,_0x74fbae,_0x3d93f6,_0x21b5ba,_0x41e042){const _0x3aa14d=_0x1b4be4;super(),I(this,_0x3aa14d(0x3cf),[]),I(this,'_cursors',[]),(this[_0x3aa14d(0x3d9)]=_0x49258c,this['_docSkeletonManagerService']=_0x74fbae,this[_0x3aa14d(0x119)]=_0x3d93f6,this[_0x3aa14d(0x3a7)]=_0x21b5ba,this['_themeService']=_0x41e042,this[_0x3aa14d(0x421)]());}[_0x1b4be4(0x421)](){const _0x14d91e=_0x1b4be4,_0x35ed9a=this['_context']['unitId'],_0x4279c6=this[_0x14d91e(0x1af)];this[_0x14d91e(0x424)](A[_0x14d91e(0x346)]([this['_collabCursorController'][_0x14d91e(0x5a9)](_0x35ed9a),this[_0x14d91e(0x503)][_0x14d91e(0x15c)]])['pipe'](V[_0x14d91e(0x342)](([_0xea9d47,_0x5d70d7])=>({'skeleton':_0x4279c6[_0x14d91e(0x2bf)](),'cursors':[..._0xea9d47[_0x14d91e(0x1ab)]()][_0x14d91e(0x3d5)](_0x59bc82=>({..._0x59bc82,'color':_0x5d70d7[_0x59bc82[_0x14d91e(0x3e1)]]}))})))[_0x14d91e(0x559)](_0x30b592=>{const _0x1e5722=_0x14d91e;if(this[_0x1e5722(0x3b4)](),_0x30b592){const {skeleton:_0xe62395,cursors:_0x45f137}=_0x30b592;this[_0x1e5722(0x146)](_0xe62395,_0x45f137);}})),this[_0x14d91e(0x557)](),this[_0x14d91e(0x4fc)]();}[_0x1b4be4(0x146)](_0x1e91f9,_0x21b355){const _0xc3dfd7=_0x1b4be4,{scene:_0x26e135,mainComponent:_0x7a62a2}=this[_0xc3dfd7(0x3d9)],_0x410f56=_0x21b355[_0xc3dfd7(0x342)](_0x59ebdb=>new Kt(_0x59ebdb,_0x26e135,_0x1e91f9,_0x7a62a2));this[_0xc3dfd7(0x3cf)]=_0x410f56,this[_0xc3dfd7(0x3f5)]=_0x21b355;}['_refreshCollabCursors'](){const _0x2dda80=_0x1b4be4;this[_0x2dda80(0x3b4)]();const {scene:_0x457c51,mainComponent:_0x306ee5}=this[_0x2dda80(0x3d9)],_0x2eae29=this[_0x2dda80(0x1af)][_0x2dda80(0x2bf)](),_0x2e5002=this[_0x2dda80(0x3f5)]['map'](_0x3c986b=>new Kt(_0x3c986b,_0x457c51,_0x2eae29,_0x306ee5));this[_0x2dda80(0x3cf)]=_0x2e5002;}[_0x1b4be4(0x3b4)](){const _0x254990=_0x1b4be4;this[_0x254990(0x3cf)][_0x254990(0x3ee)](_0x243b34=>_0x243b34[_0x254990(0x576)]()),this[_0x254990(0x3cf)]=[];}[_0x1b4be4(0x4fc)](){const _0x15c133=_0x1b4be4,_0x2f1006=[J[_0x15c133(0x552)]['id']];this['disposeWithMe'](this['_commandService'][_0x15c133(0x5be)](_0x3378be=>{const _0xe8b3f3=_0x15c133;_0x2f1006[_0xe8b3f3(0x1db)](_0x3378be['id'])&&_0x3378be[_0xe8b3f3(0x269)][_0xe8b3f3(0x5d3)]===this[_0xe8b3f3(0x3d9)]['unitId']&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x4dfa41=_0x1b4be4;this[_0x4dfa41(0x424)](a[_0x4dfa41(0x209)](this[_0x4dfa41(0x3d9)][_0x4dfa41(0x53d)][_0x4dfa41(0x4d0)])[_0x4dfa41(0x33d)](V[_0x4dfa41(0x316)](_0x38c542=>_0x38c542[_0x4dfa41(0x336)]===q['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x4dfa41(0x23e)]),V[_0x4dfa41(0x313)](0x10))[_0x4dfa41(0x559)](()=>{const _0x118e79=_0x4dfa41;this[_0x118e79(0x2a0)]();}));}};Tt=yr([$e(0x1,a['Inject'](ge[_0x1b4be4(0x1b9)])),$e(0x2,a[_0x1b4be4(0x5da)](Oe)),$e(0x3,a['ICommandService']),$e(0x4,a[_0x1b4be4(0x5da)](a['ThemeService']))],Tt);const Or=0x1,Dr=1.5;class Ui extends q[_0x1b4be4(0x22b)]{constructor(_0x1ce251,_0x38343e){const _0x267371=_0x1b4be4;super(_0x1ce251,_0x38343e),I(this,'_color'),I(this,'_hovered',!0x1),I(this,_0x267371(0x48d)),I(this,_0x267371(0x2fb),''),I(this,_0x267371(0x27a),_0x267371(0x257)),I(this,_0x267371(0x18f)),(_0x38343e&&this[_0x267371(0x4a3)](_0x38343e),this[_0x267371(0x4b8)][_0x267371(0x178)](()=>this[_0x267371(0x4a3)]({'hovered':!0x0})),this[_0x267371(0x4b9)][_0x267371(0x178)](()=>this[_0x267371(0x4a3)]({'hovered':!0x1})));}['setShapeProps'](_0x10f327){const _0x5a7f09=_0x1b4be4;var _0x1f4b9d,_0x1866da,_0xfa5c12,_0x590239,_0x30477f,_0x153994;this[_0x5a7f09(0x528)]=(_0x1f4b9d=_0x10f327[_0x5a7f09(0x3e1)])!=null?_0x1f4b9d:this[_0x5a7f09(0x528)],this[_0x5a7f09(0x179)]=(_0x1866da=_0x10f327[_0x5a7f09(0x134)])!=null?_0x1866da:this[_0x5a7f09(0x179)],this[_0x5a7f09(0x48d)]=(_0xfa5c12=_0x10f327[_0x5a7f09(0x34c)])!=null?_0xfa5c12:this[_0x5a7f09(0x48d)],this['_name']=(_0x590239=_0x10f327['name'])!=null?_0x590239:this[_0x5a7f09(0x2fb)],this['_labelPosition']=(_0x30477f=_0x10f327[_0x5a7f09(0x208)])!=null?_0x30477f:this[_0x5a7f09(0x27a)],this[_0x5a7f09(0x18f)]=(_0x153994=_0x10f327[_0x5a7f09(0x338)])!=null?_0x153994:this[_0x5a7f09(0x18f)],this['transformByState']({'width':_0x10f327[_0x5a7f09(0x5cc)],'height':_0x10f327['height']});}[_0x1b4be4(0x5ad)](_0x1325af){const _0x4aa877=_0x1b4be4,{row:_0xf3c824,column:_0x53e039}=_0x1325af;if(_0xf3c824>=this[_0x4aa877(0x48d)][_0x4aa877(0x2f6)]&&_0xf3c824<=this[_0x4aa877(0x48d)][_0x4aa877(0x190)]&&_0x53e039>=this[_0x4aa877(0x48d)][_0x4aa877(0x2df)]&&_0x53e039<=this['_range'][_0x4aa877(0x1f3)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x4aa877(0x4a3)]({'hovered':!0x1});}[_0x1b4be4(0x15f)](_0x1400a0){return!0x1;}[_0x1b4be4(0x28c)](_0x147f7c){const _0x432ac9=_0x1b4be4;q[_0x432ac9(0x259)][_0x432ac9(0x2d8)](_0x147f7c,{'width':this[_0x432ac9(0x5cc)],'height':this[_0x432ac9(0x4d9)],'strokeWidth':Dr,'stroke':this[_0x432ac9(0x528)],'evented':!0x1,'fill':this[_0x432ac9(0x18f)]}),this[_0x432ac9(0x179)]&&(_0x147f7c[_0x432ac9(0x57e)](),_0x147f7c[_0x432ac9(0x5c7)](0x1,0x0,0x0,0x1,this[_0x432ac9(0x5cc)],this[_0x432ac9(0x27a)]===_0x432ac9(0x36c)?0x0:-Le),at[_0x432ac9(0x2d8)](_0x147f7c,{'text':this[_0x432ac9(0x2fb)],'color':this[_0x432ac9(0x528)]}),_0x147f7c[_0x432ac9(0x1c2)]());}}var Pr=Object[_0x1b4be4(0x3c9)],wr=Object['getOwnPropertyDescriptor'],Ur=(_0x242bee,_0x37a6c1,_0x5d9ead,_0x59d37a)=>{const _0x8bf3fb=_0x1b4be4;for(var _0x471b73=_0x59d37a>0x1?void 0x0:_0x59d37a?wr(_0x37a6c1,_0x5d9ead):_0x37a6c1,_0x1067f5=_0x242bee[_0x8bf3fb(0x1d6)]-0x1,_0x1ef9c1;_0x1067f5>=0x0;_0x1067f5--)(_0x1ef9c1=_0x242bee[_0x1067f5])&&(_0x471b73=(_0x59d37a?_0x1ef9c1(_0x37a6c1,_0x5d9ead,_0x471b73):_0x1ef9c1(_0x471b73))||_0x471b73);return _0x59d37a&&_0x471b73&&Pr(_0x37a6c1,_0x5d9ead,_0x471b73),_0x471b73;},St=(_0x3ab065,_0x54f7f5)=>(_0x7a67bd,_0x237b48)=>_0x54f7f5(_0x7a67bd,_0x237b48,_0x3ab065);const Mr=0x1389;let Rt=class extends a['RxDisposable']{constructor(_0xab204b,_0x4621e9,_0x907f84,_0x56b0de){const _0x4658bf=_0x1b4be4;super(),I(this,_0x4658bf(0x3f5),new Set()),I(this,_0x4658bf(0x59e),null),(this[_0x4658bf(0x3d9)]=_0xab204b,this['_sheetSkeletonManagerService']=_0x4621e9,this[_0x4658bf(0x119)]=_0x907f84,this[_0x4658bf(0x503)]=_0x56b0de,this['_init']());}[_0x1b4be4(0x421)](){const _0x549750=_0x1b4be4;this[_0x549750(0x350)][_0x549750(0x29b)][_0x549750(0x33d)](V[_0x549750(0x273)](this['dispose$']),V[_0x549750(0x58d)](_0x26b467=>{const _0xd4915d=_0x549750;if(_0x26b467){const _0x12557d=_0x26b467[_0xd4915d(0x2ae)];return A[_0xd4915d(0x346)](this[_0xd4915d(0x119)][_0xd4915d(0x5a9)](this[_0xd4915d(0x3d9)][_0xd4915d(0x5d3)]),this[_0xd4915d(0x503)]['currentTheme$'])[_0xd4915d(0x33d)](V[_0xd4915d(0x342)](([_0x491e67,_0x3ab6cb])=>{const _0x55b9f7=new Map();return _0x491e67['forEach']((_0x51fdfa,_0x217525)=>{const _0x1e6008=_0x446a;if(_0x51fdfa['sheetID']===_0x12557d){const _0xb86d04={..._0x51fdfa};_0xb86d04[_0x1e6008(0x3e1)]=_0x3ab6cb[_0x51fdfa[_0x1e6008(0x3e1)]],_0x55b9f7[_0x1e6008(0x5c1)](_0x217525,_0xb86d04);}}),{'skeleton':_0x26b467,'cursors':_0x55b9f7};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))[_0x549750(0x559)](({skeleton:_0x449eee,cursors:_0x28e226})=>{const _0x3919be=_0x549750;this['_removeCollabCursors'](),_0x449eee&&this[_0x3919be(0x146)](_0x449eee,_0x28e226);}),this['_sheetSkeletonManagerService'][_0x549750(0x29b)][_0x549750(0x559)](_0x6f6200=>{const _0x4ee94c=_0x549750;if(_0x6f6200==null)return;const {skeleton:_0x4f3f0c}=_0x6f6200,{scene:_0x4b529e}=this[_0x4ee94c(0x3d9)];_0x4b529e[_0x4ee94c(0x446)]['subscribeEvent'](a[_0x4ee94c(0x222)](_0x34cbb3=>{const _0x1184db=_0x4ee94c;var _0x5265ad,_0x5b5986;const {offsetX:_0x22e168,offsetY:_0x487bdf}=_0x34cbb3,{x:_0x55f579,y:_0x4675c6}=_0x4b529e[_0x1184db(0x373)](q[_0x1184db(0x3f3)][_0x1184db(0x5c6)]([_0x22e168,_0x487bdf])),{scaleX:_0x5b3278,scaleY:_0x2ba2ed}=_0x4b529e[_0x1184db(0x159)](),_0xb32193=_0x4b529e['getViewport'](Re['VIEWPORT_KEY'][_0x1184db(0x493)]),_0x5aa55a=_0x4b529e['getVpScrollXYInfoByPosToVp'](q[_0x1184db(0x3f3)][_0x1184db(0x5c6)]([_0x55f579,_0x4675c6]),_0xb32193),_0x33a784=_0x4f3f0c['getCellPositionByOffset'](_0x22e168,_0x487bdf,_0x5b3278,_0x2ba2ed,_0x5aa55a);((_0x5265ad=this[_0x1184db(0x59e)])==null?void 0x0:_0x5265ad[_0x1184db(0x40b)])===_0x33a784[_0x1184db(0x40b)]&&((_0x5b5986=this[_0x1184db(0x59e)])==null?void 0x0:_0x5b5986[_0x1184db(0x25e)])===_0x33a784[_0x1184db(0x25e)]||this[_0x1184db(0x3f5)][_0x1184db(0x3ee)](_0x3dabaa=>{_0x3dabaa['onMouseMove'](_0x33a784);});},0x64));});}['_updateCollabCursors'](_0x2798d6,_0x47668d){const _0xcf06b=_0x1b4be4;var _0x21b600;const _0x3c30a4=(_0x21b600=this[_0xcf06b(0x350)]['getCurrent']())==null?void 0x0:_0x21b600[_0xcf06b(0x17a)];if(!_0x3c30a4)return;const _0x53ccb2=this[_0xcf06b(0x3f1)]();if(!_0x53ccb2)return;this[_0xcf06b(0x3f5)]['forEach'](_0x401f8d=>{const _0x10d2ac=_0xcf06b;_0x401f8d[_0x10d2ac(0x380)]();});const {scene:_0x5f1ac5}=_0x53ccb2,_0x5a7cb0=Ar(Array[_0xcf06b(0x1a6)](_0x47668d[_0xcf06b(0x1ab)]()))['map'](_0x6a7b2d=>{const _0x8e7ef=_0xcf06b,{color:_0x14b0e8,range:_0x5e842d,name:_0x441e24,selection:_0x41a3cf,sheetID:_0x3a5f78}=_0x6a7b2d,{startColumn:_0x44563d,startRow:_0x2f5031,endColumn:_0x499676,endRow:_0x2debdc}=_0x5e842d,_0x75b23c=Re['getCoordByCell'](_0x2f5031,_0x44563d,_0x5f1ac5,_0x3c30a4),_0x1b7d75=Re[_0x8e7ef(0x2f1)](_0x2debdc,_0x499676,_0x5f1ac5,_0x3c30a4),{columnHeaderHeightAndMarginTop:_0x291f9b}=_0x3c30a4,{startX:_0x41c99d,startY:_0x44092e}=_0x75b23c,{endX:_0x44fba6,endY:_0xce68ae}=_0x1b7d75,_0x580a17=_0x44fba6-_0x41c99d,_0x4688db=_0xce68ae-_0x44092e,_0x4656f8={'labelPosition':_0x44092e-_0x291f9b>=Le?'top':'bottom','sheetID':_0x3a5f78,'range':_0x5e842d,'color':_0x14b0e8,'name':_0x441e24,'selection':_0x41a3cf,'left':_0x41c99d,'top':_0x44092e,'width':_0x580a17,'height':_0x4688db,'evented':!0x1,'zIndex':Mr};return new Ui(_0x441e24,_0x4656f8);});_0x5f1ac5[_0xcf06b(0x2ce)](_0x5a7cb0,Or),this['_cursors']=new Set(_0x5a7cb0);}[_0x1b4be4(0x3b4)](){const _0x4b522c=_0x1b4be4;var _0x3d851f;(_0x3d851f=this['_cursors'])==null||_0x3d851f[_0x4b522c(0x3ee)](_0x4936b5=>_0x4936b5['dispose']());}[_0x1b4be4(0x3f1)](){const _0x3b150d=_0x1b4be4;return Re[_0x3b150d(0x2bc)](this[_0x3b150d(0x3d9)][_0x3b150d(0x2ca)],this[_0x3b150d(0x3d9)]);}};Rt=Ur([St(0x1,a[_0x1b4be4(0x5da)](Re['SheetSkeletonManagerService'])),St(0x2,a[_0x1b4be4(0x5da)](Oe)),St(0x3,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x24a)]))],Rt);function Ar(_0x19cb92){const _0x896691=_0x1b4be4,_0xf0eaf9=new Map();return _0x19cb92[_0x896691(0x3ee)](_0x226a15=>{const _0x502c66=_0x896691;if(_0xf0eaf9[_0x502c66(0x1b5)](_0x226a15['selection'])){const _0x4f3e60=_0xf0eaf9[_0x502c66(0x35b)](_0x226a15['selection']);_0x4f3e60['name']+=',\x20'+_0x226a15[_0x502c66(0x43c)];}else _0xf0eaf9['set'](_0x226a15[_0x502c66(0x575)],_0x226a15);}),Array['from'](_0xf0eaf9['values']());}var mt=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function xe(_0x942acc){const _0xef72aa=_0x1b4be4;return _0x942acc&&_0x942acc[_0xef72aa(0x459)]&&Object[_0xef72aa(0x416)][_0xef72aa(0x47c)]['call'](_0x942acc,'default')?_0x942acc['default']:_0x942acc;}var gt={'exports':{}},Ue={},zt;function Nr(){const _0x10f263=_0x1b4be4;if(zt)return Ue;zt=0x1;var _0x3fdd68=oe,_0x4305f8=Symbol['for'](_0x10f263(0x445)),_0x31c126=Symbol['for'](_0x10f263(0x524)),_0x578d53=Object[_0x10f263(0x416)][_0x10f263(0x47c)],_0x334f02=_0x3fdd68[_0x10f263(0x16e)][_0x10f263(0x398)],_0x3ade3f={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function _0x1ec9cb(_0x7449b,_0x52e1d7,_0x2f63d5){const _0x42d450=_0x10f263;var _0x34f937,_0x1a8985={},_0x30aa7e=null,_0x2b0332=null;_0x2f63d5!==void 0x0&&(_0x30aa7e=''+_0x2f63d5),_0x52e1d7[_0x42d450(0x323)]!==void 0x0&&(_0x30aa7e=''+_0x52e1d7[_0x42d450(0x323)]),_0x52e1d7[_0x42d450(0x598)]!==void 0x0&&(_0x2b0332=_0x52e1d7[_0x42d450(0x598)]);for(_0x34f937 in _0x52e1d7)_0x578d53[_0x42d450(0x246)](_0x52e1d7,_0x34f937)&&!_0x3ade3f[_0x42d450(0x47c)](_0x34f937)&&(_0x1a8985[_0x34f937]=_0x52e1d7[_0x34f937]);if(_0x7449b&&_0x7449b[_0x42d450(0x401)]){for(_0x34f937 in(_0x52e1d7=_0x7449b['defaultProps'],_0x52e1d7))_0x1a8985[_0x34f937]===void 0x0&&(_0x1a8985[_0x34f937]=_0x52e1d7[_0x34f937]);}return{'$$typeof':_0x4305f8,'type':_0x7449b,'key':_0x30aa7e,'ref':_0x2b0332,'props':_0x1a8985,'_owner':_0x334f02['current']};}return Ue[_0x10f263(0x148)]=_0x31c126,Ue[_0x10f263(0x428)]=_0x1ec9cb,Ue['jsxs']=_0x1ec9cb,Ue;}var Xt;function Lr(){const _0xa1d6b3=_0x1b4be4;return Xt||(Xt=0x1,gt['exports']=Nr()),gt[_0xa1d6b3(0x412)];}var me=Lr(),Q=function(){const _0x241a45=_0x1b4be4;return Q=Object[_0x241a45(0x143)]||function(_0x2d8aa4){const _0x333b3c=_0x241a45;for(var _0x95f5c5,_0x3e364f=0x1,_0xab4a16=arguments[_0x333b3c(0x1d6)];_0x3e364f<_0xab4a16;_0x3e364f++){_0x95f5c5=arguments[_0x3e364f];for(var _0x206a2e in _0x95f5c5)Object[_0x333b3c(0x416)]['hasOwnProperty'][_0x333b3c(0x246)](_0x95f5c5,_0x206a2e)&&(_0x2d8aa4[_0x206a2e]=_0x95f5c5[_0x206a2e]);}return _0x2d8aa4;},Q['apply'](this,arguments);},xr=function(_0x5a585d,_0x55a7a6){const _0xde83f9=_0x1b4be4;var _0x4c4355={};for(var _0x96611b in _0x5a585d)Object[_0xde83f9(0x416)][_0xde83f9(0x47c)][_0xde83f9(0x246)](_0x5a585d,_0x96611b)&&_0x55a7a6[_0xde83f9(0x2e0)](_0x96611b)<0x0&&(_0x4c4355[_0x96611b]=_0x5a585d[_0x96611b]);if(_0x5a585d!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x421c72=0x0,_0x96611b=Object[_0xde83f9(0x549)](_0x5a585d);_0x421c72<_0x96611b[_0xde83f9(0x1d6)];_0x421c72++)_0x55a7a6[_0xde83f9(0x2e0)](_0x96611b[_0x421c72])<0x0&&Object[_0xde83f9(0x416)][_0xde83f9(0x1fe)][_0xde83f9(0x246)](_0x5a585d,_0x96611b[_0x421c72])&&(_0x4c4355[_0x96611b[_0x421c72]]=_0x5a585d[_0x96611b[_0x421c72]]);}return _0x4c4355;},Nt=oe[_0x1b4be4(0x296)](function(_0x1a9477,_0x5d998e){const _0xb68975=_0x1b4be4;var _0x56437b=_0x1a9477['icon'],_0x3f3891=_0x1a9477['id'],_0x3b7f91=_0x1a9477[_0xb68975(0x14d)],_0x6f4be1=_0x1a9477[_0xb68975(0x4af)],_0x35ad28=xr(_0x1a9477,[_0xb68975(0x23b),'id',_0xb68975(0x14d),_0xb68975(0x4af)]),_0x55e159=_0xb68975(0x31f)[_0xb68975(0x28e)](_0x3f3891,'\x20')['concat'](_0x3b7f91||'')[_0xb68975(0x304)](),_0x56af36=oe[_0xb68975(0x504)]('_'[_0xb68975(0x28e)](Hr()));return Mi(_0x56437b,''[_0xb68975(0x28e)](_0x3f3891),{'defIds':_0x56437b['defIds'],'idSuffix':_0x56af36['current']},Q({'ref':_0x5d998e,'className':_0x55e159},_0x35ad28),_0x6f4be1);});function Mi(_0x16d421,_0x4a17aa,_0x12b496,_0x2532db,_0x3ca0af){const _0x39a301=_0x1b4be4;return oe['createElement'](_0x16d421[_0x39a301(0x322)],Q(Q({'key':_0x4a17aa},$r(_0x16d421,_0x12b496,_0x3ca0af)),_0x2532db),(jr(_0x16d421,_0x12b496)[_0x39a301(0x568)]||[])[_0x39a301(0x342)](function(_0x432451,_0x23d8b9){const _0x56ff4f=_0x39a301;return Mi(_0x432451,''[_0x56ff4f(0x28e)](_0x4a17aa,'-')['concat'](_0x16d421[_0x56ff4f(0x322)],'-')[_0x56ff4f(0x28e)](_0x23d8b9),_0x12b496,void 0x0,_0x3ca0af);}));}function $r(_0x5d633a,_0x2b5374,_0x2237e2){const _0x438572=_0x1b4be4;var _0x5b7254=Q({},_0x5d633a[_0x438572(0x297)]);_0x2237e2!=null&&_0x2237e2['colorChannel1']&&_0x5b7254[_0x438572(0x5e6)]===_0x438572(0x29c)&&(_0x5b7254['fill']=_0x2237e2['colorChannel1']);var _0x27d5d6=_0x2b5374[_0x438572(0x553)];return!_0x27d5d6||_0x27d5d6[_0x438572(0x1d6)]===0x0||(_0x5d633a[_0x438572(0x322)]===_0x438572(0x3c5)&&_0x5b7254[_0x438572(0x30c)]&&(_0x5b7254['xlink:href']=_0x5b7254[_0x438572(0x30c)]+_0x2b5374[_0x438572(0x58a)]),Object[_0x438572(0x165)](_0x5b7254)['forEach'](function(_0xc932a5){const _0x513774=_0x438572;var _0xb5c6ec=_0xc932a5[0x0],_0x1760ba=_0xc932a5[0x1];typeof _0x1760ba=='string'&&(_0x5b7254[_0xb5c6ec]=_0x1760ba[_0x513774(0x280)](/url\(#(.*)\)/,_0x513774(0x3c4)[_0x513774(0x28e)](_0x2b5374['idSuffix'],')')));})),_0x5b7254;}function jr(_0x21701e,_0x2c62cf){const _0x550894=_0x1b4be4;var _0x5e58fb,_0x943b0d=_0x2c62cf['defIds'];return!_0x943b0d||_0x943b0d['length']===0x0?_0x21701e:_0x21701e[_0x550894(0x322)]===_0x550894(0x5c8)&&(!((_0x5e58fb=_0x21701e[_0x550894(0x568)])===null||_0x5e58fb===void 0x0)&&_0x5e58fb[_0x550894(0x1d6)])?Q(Q({},_0x21701e),{'children':_0x21701e[_0x550894(0x568)][_0x550894(0x342)](function(_0x205a37){const _0x49ac59=_0x550894;return typeof _0x205a37['attrs']['id']==_0x49ac59(0x32c)&&_0x943b0d&&_0x943b0d[_0x49ac59(0x2e0)](_0x205a37[_0x49ac59(0x297)]['id'])>-0x1?Q(Q({},_0x205a37),{'attrs':Q(Q({},_0x205a37[_0x49ac59(0x297)]),{'id':_0x205a37[_0x49ac59(0x297)]['id']+_0x2c62cf[_0x49ac59(0x58a)]})}):_0x205a37;})}):_0x21701e;}function Hr(){const _0x7dd2fc=_0x1b4be4;return Math[_0x7dd2fc(0x331)]()[_0x7dd2fc(0x1d1)](0x24)[_0x7dd2fc(0x562)](0x2,0x8);}Nt[_0x1b4be4(0x4bc)]=_0x1b4be4(0x56a);var Br={'tag':_0x1b4be4(0x4f7),'attrs':{'fill':_0x1b4be4(0x13e),'viewBox':'0\x200\x2016\x2016','width':_0x1b4be4(0x251),'height':_0x1b4be4(0x251)},'children':[{'tag':'g','attrs':{'clipPath':_0x1b4be4(0x56d)},'children':[{'tag':_0x1b4be4(0x189),'attrs':{'stroke':_0x1b4be4(0x1c4),'d':_0x1b4be4(0x125),'strokeLinecap':'round','strokeLinejoin':_0x1b4be4(0x24c),'strokeWidth':1.2}}]},{'tag':_0x1b4be4(0x5c8),'attrs':{},'children':[{'tag':_0x1b4be4(0x12d),'attrs':{'id':_0x1b4be4(0x54b)},'children':[{'tag':_0x1b4be4(0x189),'attrs':{'fill':_0x1b4be4(0x3dc),'d':_0x1b4be4(0x25c)}}]}]}],'defIds':[_0x1b4be4(0x54b)]},Ai=oe['forwardRef'](function(_0x2b28a2,_0x75d28){const _0x1ef1ed=_0x1b4be4;return oe[_0x1ef1ed(0x1aa)](Nt,Object[_0x1ef1ed(0x143)]({},_0x2b28a2,{'id':'off-line-single','ref':_0x75d28,'icon':Br}));});Ai[_0x1b4be4(0x4bc)]=_0x1b4be4(0x149);var kr={'tag':_0x1b4be4(0x4f7),'attrs':{'fill':'none','viewBox':_0x1b4be4(0x1ce),'width':_0x1b4be4(0x251),'height':_0x1b4be4(0x251)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x1b4be4(0x189),'attrs':{'stroke':_0x1b4be4(0x1c4),'d':_0x1b4be4(0x38c),'strokeLinecap':_0x1b4be4(0x24c),'strokeLinejoin':_0x1b4be4(0x24c),'strokeWidth':1.2}}]},{'tag':_0x1b4be4(0x5c8),'attrs':{},'children':[{'tag':_0x1b4be4(0x12d),'attrs':{'id':_0x1b4be4(0x1b4)},'children':[{'tag':_0x1b4be4(0x189),'attrs':{'fill':_0x1b4be4(0x3dc),'d':_0x1b4be4(0x25c),'transform':_0x1b4be4(0x137)}}]}]}],'defIds':[_0x1b4be4(0x1b4)]},Ni=oe[_0x1b4be4(0x296)](function(_0x4b6297,_0x3a463b){const _0x19863f=_0x1b4be4;return oe['createElement'](Nt,Object[_0x19863f(0x143)]({},_0x4b6297,{'id':_0x19863f(0x43d),'ref':_0x3a463b,'icon':kr}));});Ni[_0x1b4be4(0x4bc)]=_0x1b4be4(0x302);function Li(_0xa4f1a){const _0x3a2851=_0x1b4be4;var _0xec8766,_0x3be21a,_0x1ddd15='';if(typeof _0xa4f1a==_0x3a2851(0x32c)||typeof _0xa4f1a==_0x3a2851(0x12a))_0x1ddd15+=_0xa4f1a;else{if(typeof _0xa4f1a=='object'){if(Array[_0x3a2851(0x295)](_0xa4f1a)){var _0x1ea79c=_0xa4f1a[_0x3a2851(0x1d6)];for(_0xec8766=0x0;_0xec8766<_0x1ea79c;_0xec8766++)_0xa4f1a[_0xec8766]&&(_0x3be21a=Li(_0xa4f1a[_0xec8766]))&&(_0x1ddd15&&(_0x1ddd15+='\x20'),_0x1ddd15+=_0x3be21a);}else{for(_0x3be21a in _0xa4f1a)_0xa4f1a[_0x3be21a]&&(_0x1ddd15&&(_0x1ddd15+='\x20'),_0x1ddd15+=_0x3be21a);}}}return _0x1ddd15;}function Wr(){const _0x1974df=_0x1b4be4;for(var _0x8d15a3,_0x2ef454,_0x41f13b=0x0,_0x436319='',_0x5c6715=arguments[_0x1974df(0x1d6)];_0x41f13b<_0x5c6715;_0x41f13b++)(_0x8d15a3=arguments[_0x41f13b])&&(_0x2ef454=Li(_0x8d15a3))&&(_0x436319&&(_0x436319+='\x20'),_0x436319+=_0x2ef454);return _0x436319;}const Fr='univer-online-status-icon',Vr=_0x1b4be4(0x538),Gr=_0x1b4be4(0x49c),Yr=_0x1b4be4(0x291),qr=_0x1b4be4(0x153),Me={'onlineStatusIcon':Fr,'onlineStatusTitle':Vr,'onlineStatus':Gr,'online':Yr,'offline':qr};function Kr(_0x354b29){const _0x294a18=_0x1b4be4;switch(_0x354b29){case K['OFFLINE']:return _0x294a18(0x2e8);case K['CONFLICT']:return _0x294a18(0x45a);case K[_0x294a18(0x196)]:return'collabStatus.fetchMiss';case K[_0x294a18(0x183)]:return _0x294a18(0x303);case K[_0x294a18(0x266)]:case K[_0x294a18(0x447)]:return _0x294a18(0x307);case K[_0x294a18(0x3f6)]:case K[_0x294a18(0x455)]:return _0x294a18(0x4f2);}}function xi(_0x3875c3){const _0x4ca545=_0x1b4be4,{status$:_0x1884fb}=_0x3875c3,_0xc2550f=ee[_0x4ca545(0x517)](_0x1884fb,K[_0x4ca545(0x183)]),_0x4ba1e8=a[_0x4ca545(0x55e)](a[_0x4ca545(0x138)]),_0xbc0fa3=a[_0x4ca545(0x55e)](exports[_0x4ca545(0x4bb)]),_0x16b10e=_0xc2550f!==K['OFFLINE'],_0x4ac84f=_0x4ba1e8['t'](Kr(_0xc2550f)),_0x1d68b3=Wr(Me[_0x4ca545(0x33a)],{[Me[_0x4ca545(0x164)]]:_0x16b10e,[Me[_0x4ca545(0x5aa)]]:!_0x16b10e}),_0x535244=_0x16b10e?me[_0x4ca545(0x428)](Ni,{}):me['jsx'](Ai,{}),_0x37288c=oe[_0x4ca545(0x334)](()=>{_0x16b10e||_0xbc0fa3['reconnect']();},[_0x16b10e,_0xbc0fa3]);function _0x198a5b(){const _0x5c8a97=_0x4ca545;return me['jsxs'](_0x5c8a97(0x5de),{'className':_0x1d68b3,'onClick':_0x37288c,'children':[me[_0x5c8a97(0x428)](_0x5c8a97(0x5de),{'className':Me[_0x5c8a97(0x554)],'children':_0x535244}),me['jsx'](_0x5c8a97(0x5de),{'className':Me[_0x5c8a97(0x548)],'children':_0x4ac84f})]});}return _0x16b10e?_0x198a5b():me[_0x4ca545(0x428)](Ie['Tooltip'],{'title':_0x4ba1e8['t'](_0x4ca545(0x5e3)),'children':_0x198a5b()});}var zr=Object[_0x1b4be4(0x3c9)],Xr=Object[_0x1b4be4(0x3c7)],Jr=(_0x225bcb,_0x1dcc3c,_0x145e6d,_0xe6805f)=>{for(var _0x23b61f=_0xe6805f>0x1?void 0x0:_0xe6805f?Xr(_0x1dcc3c,_0x145e6d):_0x1dcc3c,_0xeabdfe=_0x225bcb['length']-0x1,_0x4f7b66;_0xeabdfe>=0x0;_0xeabdfe--)(_0x4f7b66=_0x225bcb[_0xeabdfe])&&(_0x23b61f=(_0xe6805f?_0x4f7b66(_0x1dcc3c,_0x145e6d,_0x23b61f):_0x4f7b66(_0x23b61f))||_0x23b61f);return _0xe6805f&&_0x23b61f&&zr(_0x1dcc3c,_0x145e6d,_0x23b61f),_0x23b61f;},je=(_0x11d1ab,_0x2011eb)=>(_0x2cab3e,_0x45fb5f)=>_0x2011eb(_0x2cab3e,_0x45fb5f,_0x11d1ab);exports[_0x1b4be4(0x589)]=class extends a[_0x1b4be4(0x3a8)]{constructor(_0x3a6c8d,_0x30c368,_0x4bc499,_0x35f67c){const _0x5f294d=_0x1b4be4;super(),I(this,_0x5f294d(0x327),new A[(_0x5f294d(0x28f))](K['NOT_COLLAB'])),(this[_0x5f294d(0x471)]=_0x3a6c8d,this[_0x5f294d(0x3d8)]=_0x30c368,this[_0x5f294d(0x232)]=_0x4bc499,this[_0x5f294d(0x46e)]=_0x35f67c,this[_0x5f294d(0x54c)](),this['_initStatusListener']());}[_0x1b4be4(0x27e)](){const _0x539383=_0x1b4be4;this['disposeWithMe'](this['_univerInstanceService'][_0x539383(0x395)]['pipe'](A[_0x539383(0x58d)](()=>{const _0x40b5c8=_0x539383,_0x5646e7=this[_0x40b5c8(0x471)][_0x40b5c8(0x532)]();return _0x5646e7?this[_0x40b5c8(0x46e)][_0x40b5c8(0x56c)](_0x5646e7[_0x40b5c8(0x133)]()):A['of'](null);}),A[_0x539383(0x58d)](_0x50cc0e=>_0x50cc0e?_0x50cc0e[_0x539383(0x2f3)]:A['of'](K[_0x539383(0x183)])))['subscribe'](_0x3e363a=>{const _0x2cc441=_0x539383;this[_0x2cc441(0x327)]['next'](_0x3e363a);}));}[_0x1b4be4(0x54c)](){const _0x5eb0ae=_0x1b4be4;this[_0x5eb0ae(0x424)](this[_0x5eb0ae(0x3d8)][_0x5eb0ae(0x540)](ee[_0x5eb0ae(0x187)][_0x5eb0ae(0x18a)],()=>a[_0x5eb0ae(0x24d)](Zr({'status$':this[_0x5eb0ae(0x327)][_0x5eb0ae(0x581)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=Jr([je(0x0,a[_0x1b4be4(0x5e4)]),je(0x1,ee[_0x1b4be4(0x340)]),je(0x2,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x3a0)])),je(0x3,a[_0x1b4be4(0x5da)](exports[_0x1b4be4(0x3d4)]))],exports['DesktopCollaborationStatusDisplayController']);function Zr(_0x33d2c2){const {status$:_0x25dce3}=_0x33d2c2;return function(){const _0x4f2923=_0x446a;return me[_0x4f2923(0x428)](xi,{'status$':_0x25dce3});};}const Lt=a[_0x1b4be4(0x254)](_0x1b4be4(0x30e));var Qr=Object[_0x1b4be4(0x3c9)],es=Object[_0x1b4be4(0x3c7)],ts=(_0x5b8f2f,_0xdac8eb,_0x40cb7e,_0x3e2749)=>{const _0x192e3f=_0x1b4be4;for(var _0x4abc58=_0x3e2749>0x1?void 0x0:_0x3e2749?es(_0xdac8eb,_0x40cb7e):_0xdac8eb,_0x20e81a=_0x5b8f2f[_0x192e3f(0x1d6)]-0x1,_0x17ebbe;_0x20e81a>=0x0;_0x20e81a--)(_0x17ebbe=_0x5b8f2f[_0x20e81a])&&(_0x4abc58=(_0x3e2749?_0x17ebbe(_0xdac8eb,_0x40cb7e,_0x4abc58):_0x17ebbe(_0x4abc58))||_0x4abc58);return _0x3e2749&&_0x4abc58&&Qr(_0xdac8eb,_0x40cb7e,_0x4abc58),_0x4abc58;},Te=(_0x163e09,_0x3fbacb)=>(_0x5a59d8,_0x1b3743)=>_0x3fbacb(_0x5a59d8,_0x1b3743,_0x163e09);exports[_0x1b4be4(0x3ff)]=class extends a[_0x1b4be4(0x472)]{constructor(_0x3e7c03,_0x1dea7c,_0x4e2ce6,_0x5927b6,_0x526f9e,_0xa64a8c){const _0x2bcdad=_0x1b4be4;super(),this[_0x2bcdad(0x546)]=_0x3e7c03,this['_logService']=_0x1dea7c,this[_0x2bcdad(0x3a7)]=_0x4e2ce6,this[_0x2bcdad(0x2d7)]=_0x5927b6,this[_0x2bcdad(0x30f)]=_0x526f9e,_0xa64a8c?_0xa64a8c==null||_0xa64a8c['whenReady']()[_0x2bcdad(0x561)](()=>this['_init']()):(this[_0x2bcdad(0x4fe)]['debug'](_0x2bcdad(0x186),_0x2bcdad(0x558)),this[_0x2bcdad(0x421)]());}async[_0x1b4be4(0x421)](){const _0x27838f=_0x1b4be4,_0x9badf=this[_0x27838f(0x546)][_0x27838f(0x411)](_0x27838f(0x2ca)),_0x41cf54=this[_0x27838f(0x546)]['getParam'](_0x27838f(0x336));if(!_0x9badf||!_0x41cf54){this[_0x27838f(0x4fe)]['debug'](_0x27838f(0x186),_0x27838f(0x43b));return;}switch(Number(_0x41cf54)){case ie[_0x27838f(0x5b1)]:{const _0x21071d=await this[_0x27838f(0x490)](_0x9badf);this['_setupSubUnitSync'](_0x21071d);break;}case ie[_0x27838f(0x435)]:{await this[_0x27838f(0x25d)](_0x9badf);break;}default:{this['_logService']['error'](_0x27838f(0x186),_0x27838f(0x1e2));break;}}}async['_setupSubUnitSync'](_0xdc3d9c){const _0x374818=_0x1b4be4;await this[_0x374818(0x529)](_0xdc3d9c),_0xdc3d9c[_0x374818(0x2bb)]['pipe'](A[_0x374818(0x273)](this[_0x374818(0x372)]))[_0x374818(0x559)](_0x22db13=>{const _0x5495e8=_0x374818;_0x22db13&&this[_0x5495e8(0x21c)](_0x22db13);}),this['_urlService']['urlChange$'][_0x374818(0x33d)](A[_0x374818(0x273)](this[_0x374818(0x372)]))[_0x374818(0x559)](()=>this[_0x374818(0x529)](_0xdc3d9c));}[_0x1b4be4(0x21c)](_0x4b87da,_0x10e245=!0x1){const _0x113f8b=_0x1b4be4,_0x329014=this[_0x113f8b(0x546)][_0x113f8b(0x411)](_0x113f8b(0x45b));_0x4b87da[_0x113f8b(0x3a3)]()!==_0x329014&&this['_urlService'][_0x113f8b(0x236)](_0x113f8b(0x45b),_0x4b87da[_0x113f8b(0x3a3)](),_0x10e245);}async[_0x1b4be4(0x529)](_0x33d882){const _0x58b849=_0x1b4be4;var _0x2025ef;const _0x3a58f3=this[_0x58b849(0x546)][_0x58b849(0x411)](_0x58b849(0x45b));if(!_0x3a58f3||!_0x33d882[_0x58b849(0x2e7)](_0x3a58f3)){const _0x4ae857=_0x33d882[_0x58b849(0x586)]()[0x0],_0x2358d3=_0x33d882[_0x58b849(0x2e7)](_0x4ae857);if(!_0x2358d3)return;this[_0x58b849(0x21c)](_0x2358d3,!0x0),await this[_0x58b849(0x3a7)][_0x58b849(0x4a8)](k[_0x58b849(0x530)]['id'],{'unitId':_0x33d882[_0x58b849(0x133)](),'subUnitId':_0x4ae857});return;}((_0x2025ef=_0x33d882[_0x58b849(0x52b)]())==null?void 0x0:_0x2025ef['getSheetId']())!==_0x3a58f3&&await this[_0x58b849(0x3a7)][_0x58b849(0x4a8)](k[_0x58b849(0x530)]['id'],{'unitId':_0x33d882[_0x58b849(0x133)](),'subUnitId':_0x3a58f3});}async[_0x1b4be4(0x490)](_0x25439c){const _0x3706c5=_0x1b4be4;let _0x3b1cd3=0x0;const _0x335c3a=await this['_localCacheService'][_0x3706c5(0x120)](_0x25439c);return _0x335c3a&&(_0x335c3a[_0x3706c5(0x425)]||_0x335c3a[_0x3706c5(0x1ec)]['length']!==0x0)&&(_0x3b1cd3=_0x335c3a[_0x3706c5(0x463)]),_0x3b1cd3===0x0&&this['_logService'][_0x3706c5(0x2b6)](_0x3706c5(0x186),_0x3706c5(0x4f8)),this['_snapshotService'][_0x3706c5(0x4a5)](_0x25439c,_0x3b1cd3);}async['_loadDoc'](_0x5a9f3b){const _0x5d0b85=_0x1b4be4;let _0x5edc9b=0x0;const _0x34936c=await this[_0x5d0b85(0x2d7)][_0x5d0b85(0x120)](_0x5a9f3b);return _0x34936c&&(_0x34936c['awaitingChangeset']||_0x34936c[_0x5d0b85(0x1ec)]['length']!==0x0)&&(_0x5edc9b=_0x34936c[_0x5d0b85(0x463)]),_0x5edc9b===0x0&&this['_logService'][_0x5d0b85(0x2b6)](_0x5d0b85(0x186),_0x5d0b85(0x4f8)),this[_0x5d0b85(0x30f)][_0x5d0b85(0x287)](_0x5a9f3b,_0x5edc9b);}},exports[_0x1b4be4(0x3ff)]=ts([Te(0x0,Lt),Te(0x1,a[_0x1b4be4(0x509)]),Te(0x2,a[_0x1b4be4(0x58f)]),Te(0x3,a[_0x1b4be4(0x5da)](exports[_0x1b4be4(0x3ec)])),Te(0x4,a[_0x1b4be4(0x5da)](m['SnapshotService'])),Te(0x5,a[_0x1b4be4(0x3ab)](Gi[_0x1b4be4(0x2e1)]))],exports[_0x1b4be4(0x3ff)]);var is=Object[_0x1b4be4(0x3c9)],ns=Object[_0x1b4be4(0x3c7)],rs=(_0x263f93,_0x5b3932,_0x27b6f9,_0x57817b)=>{const _0x3c701f=_0x1b4be4;for(var _0x5880bf=_0x57817b>0x1?void 0x0:_0x57817b?ns(_0x5b3932,_0x27b6f9):_0x5b3932,_0x46d85e=_0x263f93[_0x3c701f(0x1d6)]-0x1,_0x50392b;_0x46d85e>=0x0;_0x46d85e--)(_0x50392b=_0x263f93[_0x46d85e])&&(_0x5880bf=(_0x57817b?_0x50392b(_0x5b3932,_0x27b6f9,_0x5880bf):_0x50392b(_0x5880bf))||_0x5880bf);return _0x57817b&&_0x5880bf&&is(_0x5b3932,_0x27b6f9,_0x5880bf),_0x5880bf;},Jt=(_0x27aab6,_0x27d7e4)=>(_0x219dc2,_0x2046bf)=>_0x27d7e4(_0x219dc2,_0x2046bf,_0x27aab6);const ss=_0x1b4be4(0x154),os=_0x1b4be4(0x498);let it=class extends a[_0x1b4be4(0x3a8)]{constructor(_0x2bfe61,_0x544bc1){const _0x2a7f4d=_0x1b4be4;super(),this[_0x2a7f4d(0x471)]=_0x2bfe61,this['_configService']=_0x544bc1,this['_init']();}[_0x1b4be4(0x421)](){const _0x2e164c=_0x1b4be4;this['disposeWithMe'](this[_0x2e164c(0x471)]['focused$']['subscribe'](()=>{const _0x2de2cf=_0x2e164c;var _0x2309c8;const _0x2bea6b=this['_univerInstanceService'][_0x2de2cf(0x532)]();let _0xd67935=(_0x2309c8=this[_0x2de2cf(0x234)][_0x2de2cf(0x2c9)](ss))!=null?_0x2309c8:os;_0x2bea6b instanceof a[_0x2de2cf(0x5b2)]&&(_0xd67935=_0x2bea6b[_0x2de2cf(0x43c)]),document[_0x2de2cf(0x1d4)]=_0xd67935;}));}};it=rs([Jt(0x0,a[_0x1b4be4(0x5e4)]),Jt(0x1,a[_0x1b4be4(0x2ec)])],it);var as=Object[_0x1b4be4(0x3c9)],cs=Object[_0x1b4be4(0x3c7)],ls=(_0xac0f5c,_0x1bb7c1,_0xd12858,_0x2b07cd)=>{const _0x102793=_0x1b4be4;for(var _0x336359=_0x2b07cd>0x1?void 0x0:_0x2b07cd?cs(_0x1bb7c1,_0xd12858):_0x1bb7c1,_0x392835=_0xac0f5c[_0x102793(0x1d6)]-0x1,_0x44cb05;_0x392835>=0x0;_0x392835--)(_0x44cb05=_0xac0f5c[_0x392835])&&(_0x336359=(_0x2b07cd?_0x44cb05(_0x1bb7c1,_0xd12858,_0x336359):_0x44cb05(_0x336359))||_0x336359);return _0x2b07cd&&_0x336359&&as(_0x1bb7c1,_0xd12858,_0x336359),_0x336359;},It=(_0x434cba,_0xf1b59)=>(_0x8380cc,_0x3498eb)=>_0xf1b59(_0x8380cc,_0x3498eb,_0x434cba);let nt=class{constructor(_0x14a58b,_0x10e212,_0x270592){const _0x167b59=_0x1b4be4;this['_configService']=_0x14a58b,this[_0x167b59(0x515)]=_0x10e212,this[_0x167b59(0x444)]=_0x270592,this[_0x167b59(0x5af)]();}[_0x1b4be4(0x5af)](){const _0x5eb4d8=_0x1b4be4;this[_0x5eb4d8(0x515)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x20b8f4,_0xcca32f)=>_0xcca32f(_0x20b8f4)[_0x5eb4d8(0x33d)](A['concatMap'](async _0x543e39=>{const _0x42694b=_0x5eb4d8,_0x12572c=_0x543e39;if(_0x12572c['status']===0x191&&window[_0x42694b(0x181)](this['localeService']['t'](_0x42694b(0x451)))){const _0x38e49e=window[_0x42694b(0x34e)](window['location'][_0x42694b(0x325)]);window[_0x42694b(0x16c)][_0x42694b(0x325)]=this[_0x42694b(0x23c)]()+_0x42694b(0x57b)+_0x38e49e;}return _0x12572c;}))});}['_getLoginPath'](){const _0x18509f=_0x1b4be4;var _0x173beb,_0x425cc7;const _0x45a44d=this[_0x18509f(0x234)]['getConfig'](Ci),_0x470b46=this['_configService']['getConfig'](Z);return(_0x425cc7=(_0x173beb=_0x470b46==null?void 0x0:_0x470b46[_0x18509f(0x2e4)])!=null?_0x173beb:_0x45a44d)!=null?_0x425cc7:nn;}};nt=ls([It(0x0,a[_0x1b4be4(0x2ec)]),It(0x1,a[_0x1b4be4(0x5da)](z[_0x1b4be4(0x3aa)])),It(0x2,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x138)]))],nt);function _0x446a(_0x3f6e3a,_0x55e3ee){const _0x3362af=_0x3362();return _0x446a=function(_0x446a76,_0x284edd){_0x446a76=_0x446a76-0x117;let _0x35a509=_0x3362af[_0x446a76];return _0x35a509;},_0x446a(_0x3f6e3a,_0x55e3ee);}var hs=Object[_0x1b4be4(0x3c9)],_s=Object[_0x1b4be4(0x3c7)],us=(_0x1af421,_0x3810ee,_0x466ff1,_0x2c1ce6)=>{const _0x390629=_0x1b4be4;for(var _0x3a1428=_0x2c1ce6>0x1?void 0x0:_0x2c1ce6?_s(_0x3810ee,_0x466ff1):_0x3810ee,_0x7b1099=_0x1af421[_0x390629(0x1d6)]-0x1,_0x426c5f;_0x7b1099>=0x0;_0x7b1099--)(_0x426c5f=_0x1af421[_0x7b1099])&&(_0x3a1428=(_0x2c1ce6?_0x426c5f(_0x3810ee,_0x466ff1,_0x3a1428):_0x426c5f(_0x3a1428))||_0x3a1428);return _0x2c1ce6&&_0x3a1428&&hs(_0x3810ee,_0x466ff1,_0x3a1428),_0x3a1428;},Zt=(_0x5407a4,_0x5e8aab)=>(_0x26b17e,_0x1f3845)=>_0x5e8aab(_0x26b17e,_0x1f3845,_0x5407a4);const xt=_0x1b4be4(0x1d8),ds=_0x1b4be4(0x44f);exports[_0x1b4be4(0x3d7)]=class extends a[_0x1b4be4(0x3a8)]{constructor(_0x461590,_0x1c9810){const _0x3e99aa=_0x1b4be4;super(),this['_HTTPService']=_0x461590,this['_configService']=_0x1c9810,this[_0x3e99aa(0x3bc)]();}['_initMergeInterceptor'](){const _0xf7c058=_0x1b4be4,_0x16bcaf=this;this['disposeWithMe'](this[_0xf7c058(0x1f1)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':z['MergeInterceptorFactory']({'isMatch'(_0x120878){const _0x4dd09b=_0xf7c058;var _0x57db28;if(_0x120878['method']===_0x4dd09b(0x215)&&((_0x57db28=_0x120878[_0x4dd09b(0x1a4)])!=null&&_0x57db28[_0x4dd09b(0x1a7)])){const {objectID:_0x2bfc0a,objectType:_0x528f9e}=_0x120878[_0x4dd09b(0x1a4)][_0x4dd09b(0x1a7)]||{};if(!_0x2bfc0a||_0x528f9e===void 0x0)return!0x1;const _0x52422f=_0x16bcaf[_0x4dd09b(0x250)]()+'/'+_0x528f9e+_0x4dd09b(0x33e)+_0x2bfc0a+_0x4dd09b(0x117);if(_0x120878[_0x4dd09b(0x519)]===_0x52422f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x19fef4){const _0x45ddcb=_0xf7c058;var _0x3e0603;return(_0x3e0603=_0x19fef4['requestParams'])==null?void 0x0:_0x3e0603[_0x45ddcb(0x1a7)];},'mergeParamsToRequest'(_0x169fe2,_0x16c205){const _0x2843a4=_0xf7c058,_0x25037d=_0x16bcaf[_0x2843a4(0x250)]()+_0x2843a4(0x267),_0x3654bf=_0x169fe2['reduce']((_0x212418,_0x483146)=>{const _0x206cf4=_0x2843a4,{unitID:_0x13c973,objectID:_0x5f3406,objectType:_0x3fc9ae,actions:_0x2821b4}=_0x483146;return _0x212418[_0x13c973]||(_0x212418[_0x13c973]={}),_0x212418[_0x13c973][_0x5f3406]||(_0x212418[_0x13c973][_0x5f3406]={'objectID':_0x5f3406,'objectType':_0x3fc9ae,'actions':[]}),_0x212418[_0x13c973][_0x5f3406]['actions'][_0x206cf4(0x284)](..._0x2821b4),_0x212418;},{}),_0x5dc972=[];for(const _0x3ebb8d in _0x3654bf)for(const _0x373d7c in _0x3654bf[_0x3ebb8d]){const {actions:_0x322ad6,objectType:_0x35a31b}=_0x3654bf[_0x3ebb8d][_0x373d7c],_0x1af34f=[...new Set(_0x322ad6)];_0x5dc972[_0x2843a4(0x284)]({'unitID':_0x3ebb8d,'objectID':_0x373d7c,'objectType':_0x35a31b,'actions':_0x1af34f});}return new z[(_0x2843a4(0x433))]('POST',_0x25037d,{'headers':_0x16c205[_0x2843a4(0x3e6)],'withCredentials':_0x16c205[_0x2843a4(0x344)],'responseType':_0x16c205[_0x2843a4(0x20a)],'body':{'requests':_0x5dc972}});}},{'distributeResult'(_0x5936f8,_0x352f12){const _0x42b5cf=_0xf7c058,{objectActions:_0x4b6f90}=_0x5936f8;return _0x352f12[_0x42b5cf(0x342)](_0x67f29a=>{const _0x2d4302=_0x42b5cf,{unitID:_0x30c876,objectID:_0x10a525,actions:_0x48e927}=_0x67f29a,_0x56b587=_0x4b6f90[_0x2d4302(0x46a)](_0x1e91b2=>_0x1e91b2[_0x2d4302(0x4c2)]===_0x30c876&&_0x1e91b2[_0x2d4302(0x42e)]===_0x10a525),_0x1db0e3=_0x48e927[_0x2d4302(0x342)](_0x2f000f=>_0x56b587==null?void 0x0:_0x56b587['actions']['find'](_0x5f2b24=>_0x5f2b24[_0x2d4302(0x1da)]===_0x2f000f))[_0x2d4302(0x316)](_0x16eb88=>!!_0x16eb88);return{'config':_0x67f29a,'result':{'actions':_0x1db0e3,'error':_0x5936f8['error']}};});}})}));}['_getAPIPrefixPath'](){const _0x1d093c=_0x1b4be4;var _0x3d9a3e,_0xdbeb76;const _0x493cc0=this[_0x1d093c(0x234)][_0x1d093c(0x2c9)](xt),_0x3e37f0=this[_0x1d093c(0x234)][_0x1d093c(0x2c9)](Z);return(_0xdbeb76=(_0x3d9a3e=_0x3e37f0==null?void 0x0:_0x3e37f0[_0x1d093c(0x33b)])!=null?_0x3d9a3e:_0x493cc0)!=null?_0xdbeb76:ds;}async[_0x1b4be4(0x28b)](_0x4d0874){const _0x56f4ea=_0x1b4be4,_0x57cbe=this[_0x56f4ea(0x250)]()+'/'+_0x4d0874[_0x56f4ea(0x52d)]+_0x56f4ea(0x5dc);return(await this[_0x56f4ea(0x1f1)][_0x56f4ea(0x2c7)](_0x57cbe,{'body':_0x4d0874}))[_0x56f4ea(0x1a7)]['objectID']||'';}async['list'](_0x537fff){const _0x4482bd=_0x1b4be4,_0x3dc0d3=this[_0x4482bd(0x250)]()+_0x4482bd(0x2b3);return(await this[_0x4482bd(0x1f1)][_0x4482bd(0x2c7)](_0x3dc0d3,{'body':_0x537fff}))[_0x4482bd(0x1a7)]['objects'];}async[_0x1b4be4(0x242)](_0x165bb7){const _0x2b9f0c=_0x1b4be4,_0xf2d02a=this['_getAPIPrefixPath']()+'/'+_0x165bb7[_0x2b9f0c(0x52d)]+'/object/'+_0x165bb7[_0x2b9f0c(0x42e)];await this[_0x2b9f0c(0x1f1)][_0x2b9f0c(0x4db)](_0xf2d02a,{'body':_0x165bb7});}async[_0x1b4be4(0x3f0)](_0x37caa1){const _0x5ec81f=_0x1b4be4,_0x2348fe=this[_0x5ec81f(0x250)]()+'/'+_0x37caa1[_0x5ec81f(0x52d)]+_0x5ec81f(0x33e)+_0x37caa1[_0x5ec81f(0x42e)]+_0x5ec81f(0x117);return(await this['_HTTPService'][_0x5ec81f(0x2c7)](_0x2348fe,{'body':_0x37caa1}))[_0x5ec81f(0x1a7)][_0x5ec81f(0x46f)];}async[_0x1b4be4(0x312)](_0x4e39a3){const _0x34d434=_0x1b4be4,_0x4bdd19=this[_0x34d434(0x250)]()+'/-/object/-/batch_allowed';return(await this[_0x34d434(0x1f1)][_0x34d434(0x2c7)](_0x4bdd19,{'body':{'requests':_0x4e39a3}}))[_0x34d434(0x1a7)][_0x34d434(0x25b)];}async[_0x1b4be4(0x426)](_0x290813){const _0x12aa02=_0x1b4be4,_0x1fd46f=this[_0x12aa02(0x250)]()+'/'+_0x290813[_0x12aa02(0x52d)]+_0x12aa02(0x587),_0x2005ee=await this['_HTTPService'][_0x12aa02(0x2c7)](_0x1fd46f,{'body':_0x290813});return{'roles':_0x2005ee[_0x12aa02(0x1a7)][_0x12aa02(0x434)],'actions':_0x2005ee[_0x12aa02(0x1a7)][_0x12aa02(0x46f)]};}async[_0x1b4be4(0x42c)](_0x1d86dc){const _0x4d366f=_0x1b4be4,_0x5cd0f5=this[_0x4d366f(0x250)]()+_0x4d366f(0x27d);await this[_0x4d366f(0x1f1)]['delete'](_0x5cd0f5,{'params':{'collaboratorID':_0x1d86dc[_0x4d366f(0x157)],'objectID':_0x1d86dc[_0x4d366f(0x42e)],'unitID':_0x1d86dc[_0x4d366f(0x4c2)]}});}async[_0x1b4be4(0x364)](_0x35850b){const _0x3cf316=_0x1b4be4,_0x27457c=this['_getAPIPrefixPath']()+_0x3cf316(0x27d);await this[_0x3cf316(0x1f1)][_0x3cf316(0x402)](_0x27457c,{'body':_0x35850b});}async[_0x1b4be4(0x12f)](_0x275149){const _0x4786aa=_0x1b4be4,_0x3c31fd=this[_0x4786aa(0x250)]()+_0x4786aa(0x27d);await this[_0x4786aa(0x1f1)][_0x4786aa(0x2c7)](_0x3c31fd,{'body':_0x275149});}async[_0x1b4be4(0x484)](_0x3c60b1){const _0x5437d9=_0x1b4be4,_0x1f24fa=this['_getAPIPrefixPath']()+_0x5437d9(0x27d);return(await this[_0x5437d9(0x1f1)][_0x5437d9(0x35b)](_0x1f24fa,{'params':{'objectID':_0x3c60b1[_0x5437d9(0x42e)],'unitID':_0x3c60b1[_0x5437d9(0x4c2)]}}))[_0x5437d9(0x1a7)]['collaborators'];}async[_0x1b4be4(0x545)](_0x44ff71){const _0x57a75f=_0x1b4be4,_0x50dc7a=this[_0x57a75f(0x250)]()+_0x57a75f(0x27d);await this['_HTTPService'][_0x57a75f(0x4db)](_0x50dc7a,{'body':_0x44ff71});}},exports[_0x1b4be4(0x3d7)]=us([Zt(0x0,a[_0x1b4be4(0x5da)](z[_0x1b4be4(0x3aa)])),Zt(0x1,a['Inject'](a['IConfigService']))],exports['AuthzIoHttpService']);var Be={'exports':{}};function fs(_0x267f26){const _0x221de2=_0x1b4be4;throw new Error(_0x221de2(0x270)+_0x267f26+_0x221de2(0x132));}var ke={'exports':{}},vs=ke[_0x1b4be4(0x412)],Qt;function se(){const _0xeca580=_0x1b4be4;return Qt||(Qt=0x1,function(_0x421580,_0x1631b3){(function(_0x3dbd05,_0x7f907){const _0x5b299f=_0x446a;_0x421580[_0x5b299f(0x412)]=_0x7f907();}(vs,function(){var _0x23d85f=_0x23d85f||function(_0x5796f1,_0xb53e7){const _0x3282a8=_0x446a;var _0xb3546f;if(typeof window<'u'&&window[_0x3282a8(0x317)]&&(_0xb3546f=window[_0x3282a8(0x317)]),typeof self<'u'&&self['crypto']&&(_0xb3546f=self[_0x3282a8(0x317)]),typeof globalThis<'u'&&globalThis[_0x3282a8(0x317)]&&(_0xb3546f=globalThis[_0x3282a8(0x317)]),!_0xb3546f&&typeof window<'u'&&window[_0x3282a8(0x4ed)]&&(_0xb3546f=window[_0x3282a8(0x4ed)]),!_0xb3546f&&typeof mt<'u'&&mt[_0x3282a8(0x317)]&&(_0xb3546f=mt[_0x3282a8(0x317)]),!_0xb3546f&&typeof fs==_0x3282a8(0x2b0))try{_0xb3546f=require(_0x3282a8(0x317));}catch{}var _0x1bdc28=function(){const _0x21178d=_0x3282a8;if(_0xb3546f){if(typeof _0xb3546f[_0x21178d(0x465)]==_0x21178d(0x2b0))try{return _0xb3546f[_0x21178d(0x465)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0xb3546f[_0x21178d(0x176)]==_0x21178d(0x2b0))try{return _0xb3546f[_0x21178d(0x176)](0x4)['readInt32LE']();}catch{}}throw new Error('Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.');},_0x3032ac=Object[_0x3282a8(0x28b)]||(function(){function _0xae2536(){}return function(_0x4174a3){const _0x64b592=_0x446a;var _0x4bf202;return _0xae2536[_0x64b592(0x416)]=_0x4174a3,_0x4bf202=new _0xae2536(),_0xae2536['prototype']=null,_0x4bf202;};}()),_0x129569={},_0x5e3ec6=_0x129569[_0x3282a8(0x23d)]={},_0x51e39c=_0x5e3ec6['Base']=(function(){return{'extend':function(_0x2250ca){const _0x26908a=_0x446a;var _0x33e1ef=_0x3032ac(this);return _0x2250ca&&_0x33e1ef[_0x26908a(0x399)](_0x2250ca),(!_0x33e1ef[_0x26908a(0x47c)](_0x26908a(0x5af))||this[_0x26908a(0x5af)]===_0x33e1ef['init'])&&(_0x33e1ef[_0x26908a(0x5af)]=function(){const _0x5e7552=_0x26908a;_0x33e1ef['$super'][_0x5e7552(0x5af)][_0x5e7552(0x294)](this,arguments);}),_0x33e1ef[_0x26908a(0x5af)][_0x26908a(0x416)]=_0x33e1ef,_0x33e1ef[_0x26908a(0x253)]=this,_0x33e1ef;},'create':function(){const _0x129fc3=_0x446a;var _0xa0a67e=this[_0x129fc3(0x4af)]();return _0xa0a67e[_0x129fc3(0x5af)][_0x129fc3(0x294)](_0xa0a67e,arguments),_0xa0a67e;},'init':function(){},'mixIn':function(_0x2379af){const _0x5122fa=_0x446a;for(var _0x3e363e in _0x2379af)_0x2379af[_0x5122fa(0x47c)](_0x3e363e)&&(this[_0x3e363e]=_0x2379af[_0x3e363e]);_0x2379af[_0x5122fa(0x47c)](_0x5122fa(0x1d1))&&(this[_0x5122fa(0x1d1)]=_0x2379af[_0x5122fa(0x1d1)]);},'clone':function(){return this['init']['prototype']['extend'](this);}};}()),_0x3681fa=_0x5e3ec6[_0x3282a8(0x309)]=_0x51e39c[_0x3282a8(0x4af)]({'init':function(_0xad24d8,_0x4f15f6){const _0x4c7e06=_0x3282a8;_0xad24d8=this[_0x4c7e06(0x5e2)]=_0xad24d8||[],_0x4f15f6!=_0xb53e7?this[_0x4c7e06(0x2e3)]=_0x4f15f6:this[_0x4c7e06(0x2e3)]=_0xad24d8[_0x4c7e06(0x1d6)]*0x4;},'toString':function(_0x2ac20f){const _0x2c9de2=_0x3282a8;return(_0x2ac20f||_0x700b75)[_0x2c9de2(0x397)](this);},'concat':function(_0x24891b){const _0x4384d1=_0x3282a8;var _0x32d953=this[_0x4384d1(0x5e2)],_0x5b8f51=_0x24891b[_0x4384d1(0x5e2)],_0x4941c3=this[_0x4384d1(0x2e3)],_0x190fe8=_0x24891b[_0x4384d1(0x2e3)];if(this[_0x4384d1(0x387)](),_0x4941c3%0x4)for(var _0x5becda=0x0;_0x5becda<_0x190fe8;_0x5becda++){var _0x555b27=_0x5b8f51[_0x5becda>>>0x2]>>>0x18-_0x5becda%0x4*0x8&0xff;_0x32d953[_0x4941c3+_0x5becda>>>0x2]|=_0x555b27<<0x18-(_0x4941c3+_0x5becda)%0x4*0x8;}else{for(var _0x2478c2=0x0;_0x2478c2<_0x190fe8;_0x2478c2+=0x4)_0x32d953[_0x4941c3+_0x2478c2>>>0x2]=_0x5b8f51[_0x2478c2>>>0x2];}return this[_0x4384d1(0x2e3)]+=_0x190fe8,this;},'clamp':function(){const _0x7dce5e=_0x3282a8;var _0x34e84f=this[_0x7dce5e(0x5e2)],_0x51cfea=this[_0x7dce5e(0x2e3)];_0x34e84f[_0x51cfea>>>0x2]&=0xffffffff<<0x20-_0x51cfea%0x4*0x8,_0x34e84f[_0x7dce5e(0x1d6)]=_0x5796f1[_0x7dce5e(0x135)](_0x51cfea/0x4);},'clone':function(){const _0x44c518=_0x3282a8;var _0x1ebd19=_0x51e39c[_0x44c518(0x31d)][_0x44c518(0x246)](this);return _0x1ebd19[_0x44c518(0x5e2)]=this[_0x44c518(0x5e2)][_0x44c518(0x487)](0x0),_0x1ebd19;},'random':function(_0x17577c){const _0x2474e5=_0x3282a8;for(var _0x510bda=[],_0x33cfa6=0x0;_0x33cfa6<_0x17577c;_0x33cfa6+=0x4)_0x510bda[_0x2474e5(0x284)](_0x1bdc28());return new _0x3681fa[(_0x2474e5(0x5af))](_0x510bda,_0x17577c);}}),_0x5076d7=_0x129569[_0x3282a8(0x175)]={},_0x700b75=_0x5076d7[_0x3282a8(0x185)]={'stringify':function(_0x3b00fe){const _0x2b32ad=_0x3282a8;for(var _0x572bfb=_0x3b00fe['words'],_0x4a1e45=_0x3b00fe[_0x2b32ad(0x2e3)],_0x5e774d=[],_0x8aab4d=0x0;_0x8aab4d<_0x4a1e45;_0x8aab4d++){var _0x3f7189=_0x572bfb[_0x8aab4d>>>0x2]>>>0x18-_0x8aab4d%0x4*0x8&0xff;_0x5e774d[_0x2b32ad(0x284)]((_0x3f7189>>>0x4)[_0x2b32ad(0x1d1)](0x10)),_0x5e774d[_0x2b32ad(0x284)]((_0x3f7189&0xf)[_0x2b32ad(0x1d1)](0x10));}return _0x5e774d[_0x2b32ad(0x37d)]('');},'parse':function(_0x5b86c0){const _0x441977=_0x3282a8;for(var _0x24cea4=_0x5b86c0[_0x441977(0x1d6)],_0x486535=[],_0x731159=0x0;_0x731159<_0x24cea4;_0x731159+=0x2)_0x486535[_0x731159>>>0x3]|=parseInt(_0x5b86c0[_0x441977(0x499)](_0x731159,0x2),0x10)<<0x18-_0x731159%0x8*0x4;return new _0x3681fa[(_0x441977(0x5af))](_0x486535,_0x24cea4/0x2);}},_0x4a4f58=_0x5076d7['Latin1']={'stringify':function(_0x54f03a){const _0x47c88c=_0x3282a8;for(var _0x213720=_0x54f03a[_0x47c88c(0x5e2)],_0x4010ea=_0x54f03a[_0x47c88c(0x2e3)],_0x481677=[],_0x37d7a8=0x0;_0x37d7a8<_0x4010ea;_0x37d7a8++){var _0x475fa5=_0x213720[_0x37d7a8>>>0x2]>>>0x18-_0x37d7a8%0x4*0x8&0xff;_0x481677['push'](String[_0x47c88c(0x201)](_0x475fa5));}return _0x481677['join']('');},'parse':function(_0x2219b9){const _0x5c4fee=_0x3282a8;for(var _0x23a903=_0x2219b9[_0x5c4fee(0x1d6)],_0x3c6acf=[],_0x4945d0=0x0;_0x4945d0<_0x23a903;_0x4945d0++)_0x3c6acf[_0x4945d0>>>0x2]|=(_0x2219b9[_0x5c4fee(0x406)](_0x4945d0)&0xff)<<0x18-_0x4945d0%0x4*0x8;return new _0x3681fa[(_0x5c4fee(0x5af))](_0x3c6acf,_0x23a903);}},_0x43d363=_0x5076d7[_0x3282a8(0x2ef)]={'stringify':function(_0x1c38fa){const _0x4907e1=_0x3282a8;try{return decodeURIComponent(escape(_0x4a4f58[_0x4907e1(0x397)](_0x1c38fa)));}catch{throw new Error(_0x4907e1(0x167));}},'parse':function(_0xea5d28){const _0x434916=_0x3282a8;return _0x4a4f58[_0x434916(0x194)](unescape(encodeURIComponent(_0xea5d28)));}},_0x39dda6=_0x5e3ec6['BufferedBlockAlgorithm']=_0x51e39c[_0x3282a8(0x4af)]({'reset':function(){const _0x180350=_0x3282a8;this[_0x180350(0x5e0)]=new _0x3681fa['init'](),this[_0x180350(0x45e)]=0x0;},'_append':function(_0x18bd8a){const _0x26b07e=_0x3282a8;typeof _0x18bd8a=='string'&&(_0x18bd8a=_0x43d363[_0x26b07e(0x194)](_0x18bd8a)),this[_0x26b07e(0x5e0)][_0x26b07e(0x28e)](_0x18bd8a),this[_0x26b07e(0x45e)]+=_0x18bd8a['sigBytes'];},'_process':function(_0xa4e5a4){const _0x1cfb92=_0x3282a8;var _0x2de036,_0x15eded=this[_0x1cfb92(0x5e0)],_0x3d6d3f=_0x15eded['words'],_0x1f0566=_0x15eded[_0x1cfb92(0x2e3)],_0x187064=this['blockSize'],_0x17d1fa=_0x187064*0x4,_0x495b91=_0x1f0566/_0x17d1fa;_0xa4e5a4?_0x495b91=_0x5796f1[_0x1cfb92(0x135)](_0x495b91):_0x495b91=_0x5796f1[_0x1cfb92(0x453)]((_0x495b91|0x0)-this[_0x1cfb92(0x4a7)],0x0);var _0x5d8a6a=_0x495b91*_0x187064,_0x2c9b63=_0x5796f1['min'](_0x5d8a6a*0x4,_0x1f0566);if(_0x5d8a6a){for(var _0xab7ba7=0x0;_0xab7ba7<_0x5d8a6a;_0xab7ba7+=_0x187064)this[_0x1cfb92(0x228)](_0x3d6d3f,_0xab7ba7);_0x2de036=_0x3d6d3f[_0x1cfb92(0x51a)](0x0,_0x5d8a6a),_0x15eded[_0x1cfb92(0x2e3)]-=_0x2c9b63;}return new _0x3681fa[(_0x1cfb92(0x5af))](_0x2de036,_0x2c9b63);},'clone':function(){const _0x56e6d3=_0x3282a8;var _0x214b12=_0x51e39c[_0x56e6d3(0x31d)]['call'](this);return _0x214b12[_0x56e6d3(0x5e0)]=this[_0x56e6d3(0x5e0)][_0x56e6d3(0x31d)](),_0x214b12;},'_minBufferSize':0x0});_0x5e3ec6['Hasher']=_0x39dda6['extend']({'cfg':_0x51e39c[_0x3282a8(0x4af)](),'init':function(_0x3469c2){const _0x171898=_0x3282a8;this['cfg']=this[_0x171898(0x1fa)]['extend'](_0x3469c2),this[_0x171898(0x1b6)]();},'reset':function(){const _0x10b5f5=_0x3282a8;_0x39dda6['reset'][_0x10b5f5(0x246)](this),this[_0x10b5f5(0x48f)]();},'update':function(_0x52a509){const _0x4c888c=_0x3282a8;return this['_append'](_0x52a509),this[_0x4c888c(0x5d2)](),this;},'finalize':function(_0x99b78e){const _0x1997f9=_0x3282a8;_0x99b78e&&this[_0x1997f9(0x39f)](_0x99b78e);var _0x307fb4=this[_0x1997f9(0x5a4)]();return _0x307fb4;},'blockSize':0x10,'_createHelper':function(_0x4cee92){return function(_0x3862ed,_0x334334){return new _0x4cee92['init'](_0x334334)['finalize'](_0x3862ed);};},'_createHmacHelper':function(_0x16b5ab){return function(_0x2dad68,_0xbe65dc){const _0x1ccadf=_0x446a;return new _0x1e84a0[(_0x1ccadf(0x205))][(_0x1ccadf(0x5af))](_0x16b5ab,_0xbe65dc)['finalize'](_0x2dad68);};}});var _0x1e84a0=_0x129569[_0x3282a8(0x597)]={};return _0x129569;}(Math);return _0x23d85f;}));}(ke)),ke[_0xeca580(0x412)];}var We={'exports':{}},ps=We[_0x1b4be4(0x412)],ei;function $i(){const _0x1e21b7=_0x1b4be4;return ei||(ei=0x1,function(_0xfa3b20,_0x1b7e27){(function(_0x34861d,_0x2bbbbe){const _0x44c5d4=_0x446a;_0xfa3b20[_0x44c5d4(0x412)]=_0x2bbbbe(se());}(ps,function(_0x721eb4){const _0x5e6084=_0x446a;return(function(){const _0x5c1a21=_0x446a;var _0x818017=_0x721eb4,_0x596380=_0x818017[_0x5c1a21(0x23d)],_0x252952=_0x596380[_0x5c1a21(0x309)],_0x26e49d=_0x818017[_0x5c1a21(0x175)];_0x26e49d['Base64']={'stringify':function(_0x32332d){const _0x48534f=_0x5c1a21;var _0x526c84=_0x32332d[_0x48534f(0x5e2)],_0x4cb232=_0x32332d[_0x48534f(0x2e3)],_0x7841c4=this[_0x48534f(0x11b)];_0x32332d[_0x48534f(0x387)]();for(var _0x3aba8e=[],_0x12ba37=0x0;_0x12ba37<_0x4cb232;_0x12ba37+=0x3)for(var _0x28fc87=_0x526c84[_0x12ba37>>>0x2]>>>0x18-_0x12ba37%0x4*0x8&0xff,_0x1e445b=_0x526c84[_0x12ba37+0x1>>>0x2]>>>0x18-(_0x12ba37+0x1)%0x4*0x8&0xff,_0x34b2f5=_0x526c84[_0x12ba37+0x2>>>0x2]>>>0x18-(_0x12ba37+0x2)%0x4*0x8&0xff,_0x249a9b=_0x28fc87<<0x10|_0x1e445b<<0x8|_0x34b2f5,_0x5ab930=0x0;_0x5ab930<0x4&&_0x12ba37+_0x5ab930*0.75<_0x4cb232;_0x5ab930++)_0x3aba8e[_0x48534f(0x284)](_0x7841c4[_0x48534f(0x376)](_0x249a9b>>>0x6*(0x3-_0x5ab930)&0x3f));var _0x260fb8=_0x7841c4[_0x48534f(0x376)](0x40);if(_0x260fb8){for(;_0x3aba8e[_0x48534f(0x1d6)]%0x4;)_0x3aba8e['push'](_0x260fb8);}return _0x3aba8e[_0x48534f(0x37d)]('');},'parse':function(_0x46c860){const _0x68cb9b=_0x5c1a21;var _0x49939e=_0x46c860['length'],_0x3f38d0=this[_0x68cb9b(0x11b)],_0x3ead4=this[_0x68cb9b(0x223)];if(!_0x3ead4){_0x3ead4=this[_0x68cb9b(0x223)]=[];for(var _0x42ef56=0x0;_0x42ef56<_0x3f38d0[_0x68cb9b(0x1d6)];_0x42ef56++)_0x3ead4[_0x3f38d0[_0x68cb9b(0x406)](_0x42ef56)]=_0x42ef56;}var _0x296829=_0x3f38d0['charAt'](0x40);if(_0x296829){var _0x4c6e66=_0x46c860[_0x68cb9b(0x2e0)](_0x296829);_0x4c6e66!==-0x1&&(_0x49939e=_0x4c6e66);}return _0x4db3a8(_0x46c860,_0x49939e,_0x3ead4);},'_map':_0x5c1a21(0x5c2)};function _0x4db3a8(_0x2cb070,_0x53d54e,_0x4d5702){const _0x1cc710=_0x5c1a21;for(var _0x147411=[],_0x3b507d=0x0,_0x5465a7=0x0;_0x5465a7<_0x53d54e;_0x5465a7++)if(_0x5465a7%0x4){var _0xdf321b=_0x4d5702[_0x2cb070[_0x1cc710(0x406)](_0x5465a7-0x1)]<<_0x5465a7%0x4*0x2,_0x1da18e=_0x4d5702[_0x2cb070[_0x1cc710(0x406)](_0x5465a7)]>>>0x6-_0x5465a7%0x4*0x2,_0x3a2e1a=_0xdf321b|_0x1da18e;_0x147411[_0x3b507d>>>0x2]|=_0x3a2e1a<<0x18-_0x3b507d%0x4*0x8,_0x3b507d++;}return _0x252952[_0x1cc710(0x28b)](_0x147411,_0x3b507d);}}()),_0x721eb4[_0x5e6084(0x175)][_0x5e6084(0x458)];}));}(We)),We[_0x1e21b7(0x412)];}var Fe={'exports':{}},Ss=Fe['exports'],ti;function ms(){return ti||(ti=0x1,function(_0x23e5d3,_0x2cf951){(function(_0x3fbc62,_0x3d8d78){const _0x50af8b=_0x446a;_0x23e5d3[_0x50af8b(0x412)]=_0x3d8d78(se());}(Ss,function(_0x22d3c3){const _0x3d9e69=_0x446a;return function(_0xec8d6b){const _0x5711a6=_0x446a;var _0x5daa44=_0x22d3c3,_0x53eba5=_0x5daa44[_0x5711a6(0x23d)],_0x15e175=_0x53eba5[_0x5711a6(0x309)],_0x15f967=_0x53eba5['Hasher'],_0xc97528=_0x5daa44['algo'],_0x55c1bf=[];(function(){const _0x4c4ba6=_0x5711a6;for(var _0x3f9708=0x0;_0x3f9708<0x40;_0x3f9708++)_0x55c1bf[_0x3f9708]=_0xec8d6b['abs'](_0xec8d6b[_0x4c4ba6(0x256)](_0x3f9708+0x1))*0x100000000|0x0;}());var _0x53d8e0=_0xc97528[_0x5711a6(0x32e)]=_0x15f967[_0x5711a6(0x4af)]({'_doReset':function(){const _0x51fa6c=_0x5711a6;this[_0x51fa6c(0x141)]=new _0x15e175[(_0x51fa6c(0x5af))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0xe9135d,_0x5b8baa){for(var _0x25405d=0x0;_0x25405d<0x10;_0x25405d++){var _0x5c711c=_0x5b8baa+_0x25405d,_0x2346c3=_0xe9135d[_0x5c711c];_0xe9135d[_0x5c711c]=(_0x2346c3<<0x8|_0x2346c3>>>0x18)&0xff00ff|(_0x2346c3<<0x18|_0x2346c3>>>0x8)&0xff00ff00;}var _0x3991bc=this['_hash']['words'],_0x64fd29=_0xe9135d[_0x5b8baa+0x0],_0x656292=_0xe9135d[_0x5b8baa+0x1],_0x85d1f8=_0xe9135d[_0x5b8baa+0x2],_0x37b200=_0xe9135d[_0x5b8baa+0x3],_0xd1b11=_0xe9135d[_0x5b8baa+0x4],_0x2bcf3c=_0xe9135d[_0x5b8baa+0x5],_0x2b2e5e=_0xe9135d[_0x5b8baa+0x6],_0xc672b=_0xe9135d[_0x5b8baa+0x7],_0x3e15e0=_0xe9135d[_0x5b8baa+0x8],_0x5f3fd9=_0xe9135d[_0x5b8baa+0x9],_0x33f836=_0xe9135d[_0x5b8baa+0xa],_0x4981ba=_0xe9135d[_0x5b8baa+0xb],_0x329e71=_0xe9135d[_0x5b8baa+0xc],_0xa87982=_0xe9135d[_0x5b8baa+0xd],_0x3eb7a9=_0xe9135d[_0x5b8baa+0xe],_0x47328c=_0xe9135d[_0x5b8baa+0xf],_0x224642=_0x3991bc[0x0],_0x4258a6=_0x3991bc[0x1],_0x5d211f=_0x3991bc[0x2],_0x27c45d=_0x3991bc[0x3];_0x224642=_0x59d72e(_0x224642,_0x4258a6,_0x5d211f,_0x27c45d,_0x64fd29,0x7,_0x55c1bf[0x0]),_0x27c45d=_0x59d72e(_0x27c45d,_0x224642,_0x4258a6,_0x5d211f,_0x656292,0xc,_0x55c1bf[0x1]),_0x5d211f=_0x59d72e(_0x5d211f,_0x27c45d,_0x224642,_0x4258a6,_0x85d1f8,0x11,_0x55c1bf[0x2]),_0x4258a6=_0x59d72e(_0x4258a6,_0x5d211f,_0x27c45d,_0x224642,_0x37b200,0x16,_0x55c1bf[0x3]),_0x224642=_0x59d72e(_0x224642,_0x4258a6,_0x5d211f,_0x27c45d,_0xd1b11,0x7,_0x55c1bf[0x4]),_0x27c45d=_0x59d72e(_0x27c45d,_0x224642,_0x4258a6,_0x5d211f,_0x2bcf3c,0xc,_0x55c1bf[0x5]),_0x5d211f=_0x59d72e(_0x5d211f,_0x27c45d,_0x224642,_0x4258a6,_0x2b2e5e,0x11,_0x55c1bf[0x6]),_0x4258a6=_0x59d72e(_0x4258a6,_0x5d211f,_0x27c45d,_0x224642,_0xc672b,0x16,_0x55c1bf[0x7]),_0x224642=_0x59d72e(_0x224642,_0x4258a6,_0x5d211f,_0x27c45d,_0x3e15e0,0x7,_0x55c1bf[0x8]),_0x27c45d=_0x59d72e(_0x27c45d,_0x224642,_0x4258a6,_0x5d211f,_0x5f3fd9,0xc,_0x55c1bf[0x9]),_0x5d211f=_0x59d72e(_0x5d211f,_0x27c45d,_0x224642,_0x4258a6,_0x33f836,0x11,_0x55c1bf[0xa]),_0x4258a6=_0x59d72e(_0x4258a6,_0x5d211f,_0x27c45d,_0x224642,_0x4981ba,0x16,_0x55c1bf[0xb]),_0x224642=_0x59d72e(_0x224642,_0x4258a6,_0x5d211f,_0x27c45d,_0x329e71,0x7,_0x55c1bf[0xc]),_0x27c45d=_0x59d72e(_0x27c45d,_0x224642,_0x4258a6,_0x5d211f,_0xa87982,0xc,_0x55c1bf[0xd]),_0x5d211f=_0x59d72e(_0x5d211f,_0x27c45d,_0x224642,_0x4258a6,_0x3eb7a9,0x11,_0x55c1bf[0xe]),_0x4258a6=_0x59d72e(_0x4258a6,_0x5d211f,_0x27c45d,_0x224642,_0x47328c,0x16,_0x55c1bf[0xf]),_0x224642=_0x421c74(_0x224642,_0x4258a6,_0x5d211f,_0x27c45d,_0x656292,0x5,_0x55c1bf[0x10]),_0x27c45d=_0x421c74(_0x27c45d,_0x224642,_0x4258a6,_0x5d211f,_0x2b2e5e,0x9,_0x55c1bf[0x11]),_0x5d211f=_0x421c74(_0x5d211f,_0x27c45d,_0x224642,_0x4258a6,_0x4981ba,0xe,_0x55c1bf[0x12]),_0x4258a6=_0x421c74(_0x4258a6,_0x5d211f,_0x27c45d,_0x224642,_0x64fd29,0x14,_0x55c1bf[0x13]),_0x224642=_0x421c74(_0x224642,_0x4258a6,_0x5d211f,_0x27c45d,_0x2bcf3c,0x5,_0x55c1bf[0x14]),_0x27c45d=_0x421c74(_0x27c45d,_0x224642,_0x4258a6,_0x5d211f,_0x33f836,0x9,_0x55c1bf[0x15]),_0x5d211f=_0x421c74(_0x5d211f,_0x27c45d,_0x224642,_0x4258a6,_0x47328c,0xe,_0x55c1bf[0x16]),_0x4258a6=_0x421c74(_0x4258a6,_0x5d211f,_0x27c45d,_0x224642,_0xd1b11,0x14,_0x55c1bf[0x17]),_0x224642=_0x421c74(_0x224642,_0x4258a6,_0x5d211f,_0x27c45d,_0x5f3fd9,0x5,_0x55c1bf[0x18]),_0x27c45d=_0x421c74(_0x27c45d,_0x224642,_0x4258a6,_0x5d211f,_0x3eb7a9,0x9,_0x55c1bf[0x19]),_0x5d211f=_0x421c74(_0x5d211f,_0x27c45d,_0x224642,_0x4258a6,_0x37b200,0xe,_0x55c1bf[0x1a]),_0x4258a6=_0x421c74(_0x4258a6,_0x5d211f,_0x27c45d,_0x224642,_0x3e15e0,0x14,_0x55c1bf[0x1b]),_0x224642=_0x421c74(_0x224642,_0x4258a6,_0x5d211f,_0x27c45d,_0xa87982,0x5,_0x55c1bf[0x1c]),_0x27c45d=_0x421c74(_0x27c45d,_0x224642,_0x4258a6,_0x5d211f,_0x85d1f8,0x9,_0x55c1bf[0x1d]),_0x5d211f=_0x421c74(_0x5d211f,_0x27c45d,_0x224642,_0x4258a6,_0xc672b,0xe,_0x55c1bf[0x1e]),_0x4258a6=_0x421c74(_0x4258a6,_0x5d211f,_0x27c45d,_0x224642,_0x329e71,0x14,_0x55c1bf[0x1f]),_0x224642=_0x4a34bd(_0x224642,_0x4258a6,_0x5d211f,_0x27c45d,_0x2bcf3c,0x4,_0x55c1bf[0x20]),_0x27c45d=_0x4a34bd(_0x27c45d,_0x224642,_0x4258a6,_0x5d211f,_0x3e15e0,0xb,_0x55c1bf[0x21]),_0x5d211f=_0x4a34bd(_0x5d211f,_0x27c45d,_0x224642,_0x4258a6,_0x4981ba,0x10,_0x55c1bf[0x22]),_0x4258a6=_0x4a34bd(_0x4258a6,_0x5d211f,_0x27c45d,_0x224642,_0x3eb7a9,0x17,_0x55c1bf[0x23]),_0x224642=_0x4a34bd(_0x224642,_0x4258a6,_0x5d211f,_0x27c45d,_0x656292,0x4,_0x55c1bf[0x24]),_0x27c45d=_0x4a34bd(_0x27c45d,_0x224642,_0x4258a6,_0x5d211f,_0xd1b11,0xb,_0x55c1bf[0x25]),_0x5d211f=_0x4a34bd(_0x5d211f,_0x27c45d,_0x224642,_0x4258a6,_0xc672b,0x10,_0x55c1bf[0x26]),_0x4258a6=_0x4a34bd(_0x4258a6,_0x5d211f,_0x27c45d,_0x224642,_0x33f836,0x17,_0x55c1bf[0x27]),_0x224642=_0x4a34bd(_0x224642,_0x4258a6,_0x5d211f,_0x27c45d,_0xa87982,0x4,_0x55c1bf[0x28]),_0x27c45d=_0x4a34bd(_0x27c45d,_0x224642,_0x4258a6,_0x5d211f,_0x64fd29,0xb,_0x55c1bf[0x29]),_0x5d211f=_0x4a34bd(_0x5d211f,_0x27c45d,_0x224642,_0x4258a6,_0x37b200,0x10,_0x55c1bf[0x2a]),_0x4258a6=_0x4a34bd(_0x4258a6,_0x5d211f,_0x27c45d,_0x224642,_0x2b2e5e,0x17,_0x55c1bf[0x2b]),_0x224642=_0x4a34bd(_0x224642,_0x4258a6,_0x5d211f,_0x27c45d,_0x5f3fd9,0x4,_0x55c1bf[0x2c]),_0x27c45d=_0x4a34bd(_0x27c45d,_0x224642,_0x4258a6,_0x5d211f,_0x329e71,0xb,_0x55c1bf[0x2d]),_0x5d211f=_0x4a34bd(_0x5d211f,_0x27c45d,_0x224642,_0x4258a6,_0x47328c,0x10,_0x55c1bf[0x2e]),_0x4258a6=_0x4a34bd(_0x4258a6,_0x5d211f,_0x27c45d,_0x224642,_0x85d1f8,0x17,_0x55c1bf[0x2f]),_0x224642=_0x51085e(_0x224642,_0x4258a6,_0x5d211f,_0x27c45d,_0x64fd29,0x6,_0x55c1bf[0x30]),_0x27c45d=_0x51085e(_0x27c45d,_0x224642,_0x4258a6,_0x5d211f,_0xc672b,0xa,_0x55c1bf[0x31]),_0x5d211f=_0x51085e(_0x5d211f,_0x27c45d,_0x224642,_0x4258a6,_0x3eb7a9,0xf,_0x55c1bf[0x32]),_0x4258a6=_0x51085e(_0x4258a6,_0x5d211f,_0x27c45d,_0x224642,_0x2bcf3c,0x15,_0x55c1bf[0x33]),_0x224642=_0x51085e(_0x224642,_0x4258a6,_0x5d211f,_0x27c45d,_0x329e71,0x6,_0x55c1bf[0x34]),_0x27c45d=_0x51085e(_0x27c45d,_0x224642,_0x4258a6,_0x5d211f,_0x37b200,0xa,_0x55c1bf[0x35]),_0x5d211f=_0x51085e(_0x5d211f,_0x27c45d,_0x224642,_0x4258a6,_0x33f836,0xf,_0x55c1bf[0x36]),_0x4258a6=_0x51085e(_0x4258a6,_0x5d211f,_0x27c45d,_0x224642,_0x656292,0x15,_0x55c1bf[0x37]),_0x224642=_0x51085e(_0x224642,_0x4258a6,_0x5d211f,_0x27c45d,_0x3e15e0,0x6,_0x55c1bf[0x38]),_0x27c45d=_0x51085e(_0x27c45d,_0x224642,_0x4258a6,_0x5d211f,_0x47328c,0xa,_0x55c1bf[0x39]),_0x5d211f=_0x51085e(_0x5d211f,_0x27c45d,_0x224642,_0x4258a6,_0x2b2e5e,0xf,_0x55c1bf[0x3a]),_0x4258a6=_0x51085e(_0x4258a6,_0x5d211f,_0x27c45d,_0x224642,_0xa87982,0x15,_0x55c1bf[0x3b]),_0x224642=_0x51085e(_0x224642,_0x4258a6,_0x5d211f,_0x27c45d,_0xd1b11,0x6,_0x55c1bf[0x3c]),_0x27c45d=_0x51085e(_0x27c45d,_0x224642,_0x4258a6,_0x5d211f,_0x4981ba,0xa,_0x55c1bf[0x3d]),_0x5d211f=_0x51085e(_0x5d211f,_0x27c45d,_0x224642,_0x4258a6,_0x85d1f8,0xf,_0x55c1bf[0x3e]),_0x4258a6=_0x51085e(_0x4258a6,_0x5d211f,_0x27c45d,_0x224642,_0x5f3fd9,0x15,_0x55c1bf[0x3f]),_0x3991bc[0x0]=_0x3991bc[0x0]+_0x224642|0x0,_0x3991bc[0x1]=_0x3991bc[0x1]+_0x4258a6|0x0,_0x3991bc[0x2]=_0x3991bc[0x2]+_0x5d211f|0x0,_0x3991bc[0x3]=_0x3991bc[0x3]+_0x27c45d|0x0;},'_doFinalize':function(){const _0x2d7984=_0x5711a6;var _0x1a9dcc=this[_0x2d7984(0x5e0)],_0x21b500=_0x1a9dcc['words'],_0x15a873=this[_0x2d7984(0x45e)]*0x8,_0x5c275c=_0x1a9dcc[_0x2d7984(0x2e3)]*0x8;_0x21b500[_0x5c275c>>>0x5]|=0x80<<0x18-_0x5c275c%0x20;var _0x3fad5e=_0xec8d6b['floor'](_0x15a873/0x100000000),_0x485145=_0x15a873;_0x21b500[(_0x5c275c+0x40>>>0x9<<0x4)+0xf]=(_0x3fad5e<<0x8|_0x3fad5e>>>0x18)&0xff00ff|(_0x3fad5e<<0x18|_0x3fad5e>>>0x8)&0xff00ff00,_0x21b500[(_0x5c275c+0x40>>>0x9<<0x4)+0xe]=(_0x485145<<0x8|_0x485145>>>0x18)&0xff00ff|(_0x485145<<0x18|_0x485145>>>0x8)&0xff00ff00,_0x1a9dcc[_0x2d7984(0x2e3)]=(_0x21b500[_0x2d7984(0x1d6)]+0x1)*0x4,this[_0x2d7984(0x5d2)]();for(var _0x522afc=this[_0x2d7984(0x141)],_0x35e2b5=_0x522afc[_0x2d7984(0x5e2)],_0x5d8820=0x0;_0x5d8820<0x4;_0x5d8820++){var _0x175aea=_0x35e2b5[_0x5d8820];_0x35e2b5[_0x5d8820]=(_0x175aea<<0x8|_0x175aea>>>0x18)&0xff00ff|(_0x175aea<<0x18|_0x175aea>>>0x8)&0xff00ff00;}return _0x522afc;},'clone':function(){const _0xbe8633=_0x5711a6;var _0xe90881=_0x15f967[_0xbe8633(0x31d)]['call'](this);return _0xe90881[_0xbe8633(0x141)]=this[_0xbe8633(0x141)][_0xbe8633(0x31d)](),_0xe90881;}});function _0x59d72e(_0x655fe6,_0x38a3e7,_0x14c4b3,_0x59689b,_0x9e32f2,_0x1673f2,_0x2eff23){var _0x55efd1=_0x655fe6+(_0x38a3e7&_0x14c4b3|~_0x38a3e7&_0x59689b)+_0x9e32f2+_0x2eff23;return(_0x55efd1<<_0x1673f2|_0x55efd1>>>0x20-_0x1673f2)+_0x38a3e7;}function _0x421c74(_0x505cba,_0x461aaa,_0x2b6497,_0x48e853,_0x215b76,_0x100427,_0x583928){var _0x489cb3=_0x505cba+(_0x461aaa&_0x48e853|_0x2b6497&~_0x48e853)+_0x215b76+_0x583928;return(_0x489cb3<<_0x100427|_0x489cb3>>>0x20-_0x100427)+_0x461aaa;}function _0x4a34bd(_0x168cb8,_0xe8dc9f,_0x46d031,_0x54fa38,_0x4d9009,_0x129478,_0x399fbd){var _0x16f6dd=_0x168cb8+(_0xe8dc9f^_0x46d031^_0x54fa38)+_0x4d9009+_0x399fbd;return(_0x16f6dd<<_0x129478|_0x16f6dd>>>0x20-_0x129478)+_0xe8dc9f;}function _0x51085e(_0x5e0fa3,_0x1a4372,_0x4ee5a4,_0x2f9a11,_0x220137,_0xb2d910,_0x76eda5){var _0x100b61=_0x5e0fa3+(_0x4ee5a4^(_0x1a4372|~_0x2f9a11))+_0x220137+_0x76eda5;return(_0x100b61<<_0xb2d910|_0x100b61>>>0x20-_0xb2d910)+_0x1a4372;}_0x5daa44[_0x5711a6(0x32e)]=_0x15f967['_createHelper'](_0x53d8e0),_0x5daa44[_0x5711a6(0x573)]=_0x15f967[_0x5711a6(0x37f)](_0x53d8e0);}(Math),_0x22d3c3[_0x3d9e69(0x32e)];}));}(Fe)),Fe['exports'];}var Ve={'exports':{}},Ge={'exports':{}},gs=Ge['exports'],ii;function Is(){const _0x28dab2=_0x1b4be4;return ii||(ii=0x1,function(_0x42d1c8,_0x230da5){(function(_0xacb8a9,_0x340e8e){const _0x6619ee=_0x446a;_0x42d1c8[_0x6619ee(0x412)]=_0x340e8e(se());}(gs,function(_0x5591fd){const _0x442bf9=_0x446a;return(function(){const _0x1070b7=_0x446a;var _0x22fdab=_0x5591fd,_0x27a324=_0x22fdab[_0x1070b7(0x23d)],_0x493fdb=_0x27a324['WordArray'],_0x38cb97=_0x27a324[_0x1070b7(0x1f5)],_0x255408=_0x22fdab[_0x1070b7(0x597)],_0x4e5c5a=[],_0x9672c=_0x255408[_0x1070b7(0x45f)]=_0x38cb97[_0x1070b7(0x4af)]({'_doReset':function(){const _0x1fc719=_0x1070b7;this[_0x1fc719(0x141)]=new _0x493fdb[(_0x1fc719(0x5af))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x1bd4cb,_0x5d0f17){for(var _0x36aa02=this['_hash']['words'],_0x447363=_0x36aa02[0x0],_0x4fa308=_0x36aa02[0x1],_0x1cd7aa=_0x36aa02[0x2],_0x28b10b=_0x36aa02[0x3],_0x4892a4=_0x36aa02[0x4],_0x1515d1=0x0;_0x1515d1<0x50;_0x1515d1++){if(_0x1515d1<0x10)_0x4e5c5a[_0x1515d1]=_0x1bd4cb[_0x5d0f17+_0x1515d1]|0x0;else{var _0x48bf95=_0x4e5c5a[_0x1515d1-0x3]^_0x4e5c5a[_0x1515d1-0x8]^_0x4e5c5a[_0x1515d1-0xe]^_0x4e5c5a[_0x1515d1-0x10];_0x4e5c5a[_0x1515d1]=_0x48bf95<<0x1|_0x48bf95>>>0x1f;}var _0x40f5d2=(_0x447363<<0x5|_0x447363>>>0x1b)+_0x4892a4+_0x4e5c5a[_0x1515d1];_0x1515d1<0x14?_0x40f5d2+=(_0x4fa308&_0x1cd7aa|~_0x4fa308&_0x28b10b)+0x5a827999:_0x1515d1<0x28?_0x40f5d2+=(_0x4fa308^_0x1cd7aa^_0x28b10b)+0x6ed9eba1:_0x1515d1<0x3c?_0x40f5d2+=(_0x4fa308&_0x1cd7aa|_0x4fa308&_0x28b10b|_0x1cd7aa&_0x28b10b)-0x70e44324:_0x40f5d2+=(_0x4fa308^_0x1cd7aa^_0x28b10b)-0x359d3e2a,_0x4892a4=_0x28b10b,_0x28b10b=_0x1cd7aa,_0x1cd7aa=_0x4fa308<<0x1e|_0x4fa308>>>0x2,_0x4fa308=_0x447363,_0x447363=_0x40f5d2;}_0x36aa02[0x0]=_0x36aa02[0x0]+_0x447363|0x0,_0x36aa02[0x1]=_0x36aa02[0x1]+_0x4fa308|0x0,_0x36aa02[0x2]=_0x36aa02[0x2]+_0x1cd7aa|0x0,_0x36aa02[0x3]=_0x36aa02[0x3]+_0x28b10b|0x0,_0x36aa02[0x4]=_0x36aa02[0x4]+_0x4892a4|0x0;},'_doFinalize':function(){const _0x30c4b7=_0x1070b7;var _0x3b1e41=this[_0x30c4b7(0x5e0)],_0x34d12a=_0x3b1e41[_0x30c4b7(0x5e2)],_0x35bd7f=this[_0x30c4b7(0x45e)]*0x8,_0x4390bc=_0x3b1e41[_0x30c4b7(0x2e3)]*0x8;return _0x34d12a[_0x4390bc>>>0x5]|=0x80<<0x18-_0x4390bc%0x20,_0x34d12a[(_0x4390bc+0x40>>>0x9<<0x4)+0xe]=Math[_0x30c4b7(0x5a3)](_0x35bd7f/0x100000000),_0x34d12a[(_0x4390bc+0x40>>>0x9<<0x4)+0xf]=_0x35bd7f,_0x3b1e41[_0x30c4b7(0x2e3)]=_0x34d12a[_0x30c4b7(0x1d6)]*0x4,this[_0x30c4b7(0x5d2)](),this[_0x30c4b7(0x141)];},'clone':function(){const _0x3ade44=_0x1070b7;var _0x33372b=_0x38cb97['clone'][_0x3ade44(0x246)](this);return _0x33372b[_0x3ade44(0x141)]=this[_0x3ade44(0x141)]['clone'](),_0x33372b;}});_0x22fdab['SHA1']=_0x38cb97[_0x1070b7(0x5ab)](_0x9672c),_0x22fdab['HmacSHA1']=_0x38cb97[_0x1070b7(0x37f)](_0x9672c);}()),_0x5591fd[_0x442bf9(0x45f)];}));}(Ge)),Ge[_0x28dab2(0x412)];}var Ye={'exports':{}},Cs=Ye[_0x1b4be4(0x412)],ni;function Es(){const _0xe43ff8=_0x1b4be4;return ni||(ni=0x1,function(_0x40f1ac,_0x4dc978){(function(_0x5855c6,_0x5938bd){const _0x3ab2ce=_0x446a;_0x40f1ac[_0x3ab2ce(0x412)]=_0x5938bd(se());}(Cs,function(_0x4df553){(function(){const _0x412a7a=_0x446a;var _0x21108d=_0x4df553,_0x36e546=_0x21108d['lib'],_0x5ca607=_0x36e546[_0x412a7a(0x298)],_0x460e72=_0x21108d['enc'],_0x3ab2d2=_0x460e72[_0x412a7a(0x2ef)],_0x2865df=_0x21108d['algo'];_0x2865df[_0x412a7a(0x205)]=_0x5ca607[_0x412a7a(0x4af)]({'init':function(_0x992e48,_0x4ead1e){const _0x32fcc4=_0x412a7a;_0x992e48=this[_0x32fcc4(0x42b)]=new _0x992e48[(_0x32fcc4(0x5af))](),typeof _0x4ead1e=='string'&&(_0x4ead1e=_0x3ab2d2[_0x32fcc4(0x194)](_0x4ead1e));var _0x58cfd4=_0x992e48[_0x32fcc4(0x50b)],_0x4b37fe=_0x58cfd4*0x4;_0x4ead1e['sigBytes']>_0x4b37fe&&(_0x4ead1e=_0x992e48['finalize'](_0x4ead1e)),_0x4ead1e['clamp']();for(var _0x4ab0af=this[_0x32fcc4(0x43a)]=_0x4ead1e[_0x32fcc4(0x31d)](),_0x4a3563=this[_0x32fcc4(0x500)]=_0x4ead1e[_0x32fcc4(0x31d)](),_0x45645a=_0x4ab0af[_0x32fcc4(0x5e2)],_0x1896f6=_0x4a3563[_0x32fcc4(0x5e2)],_0x74fe44=0x0;_0x74fe44<_0x58cfd4;_0x74fe44++)_0x45645a[_0x74fe44]^=0x5c5c5c5c,_0x1896f6[_0x74fe44]^=0x36363636;_0x4ab0af[_0x32fcc4(0x2e3)]=_0x4a3563['sigBytes']=_0x4b37fe,this[_0x32fcc4(0x1b6)]();},'reset':function(){const _0x3583bc=_0x412a7a;var _0x440a90=this[_0x3583bc(0x42b)];_0x440a90[_0x3583bc(0x1b6)](),_0x440a90['update'](this['_iKey']);},'update':function(_0x1ec766){const _0x47492c=_0x412a7a;return this[_0x47492c(0x42b)][_0x47492c(0x242)](_0x1ec766),this;},'finalize':function(_0x2e8304){const _0x16bb5b=_0x412a7a;var _0x5ee470=this[_0x16bb5b(0x42b)],_0x4c07ef=_0x5ee470[_0x16bb5b(0x2ff)](_0x2e8304);_0x5ee470[_0x16bb5b(0x1b6)]();var _0x3970a7=_0x5ee470[_0x16bb5b(0x2ff)](this[_0x16bb5b(0x43a)][_0x16bb5b(0x31d)]()[_0x16bb5b(0x28e)](_0x4c07ef));return _0x3970a7;}});}());}));}(Ye)),Ye[_0xe43ff8(0x412)];}var bs=Ve['exports'],ri;function ji(){return ri||(ri=0x1,function(_0x2852df,_0x24d4bc){(function(_0x47e86f,_0x5ab9f0,_0x1f3f0f){const _0x397267=_0x446a;_0x2852df[_0x397267(0x412)]=_0x5ab9f0(se(),Is(),Es());}(bs,function(_0x16c2c8){return(function(){const _0x3f6f81=_0x446a;var _0x2851f1=_0x16c2c8,_0x294dcb=_0x2851f1[_0x3f6f81(0x23d)],_0x3ba25d=_0x294dcb[_0x3f6f81(0x298)],_0xcd00df=_0x294dcb[_0x3f6f81(0x309)],_0x30aadc=_0x2851f1[_0x3f6f81(0x597)],_0x359c6a=_0x30aadc['MD5'],_0x36c1f2=_0x30aadc['EvpKDF']=_0x3ba25d['extend']({'cfg':_0x3ba25d[_0x3f6f81(0x4af)]({'keySize':0x80/0x20,'hasher':_0x359c6a,'iterations':0x1}),'init':function(_0x33786c){const _0x17c9a2=_0x3f6f81;this[_0x17c9a2(0x1fa)]=this[_0x17c9a2(0x1fa)]['extend'](_0x33786c);},'compute':function(_0x5672d6,_0x403119){const _0x55cc5a=_0x3f6f81;for(var _0x12c2b4,_0x3b94bf=this['cfg'],_0x22fdc3=_0x3b94bf[_0x55cc5a(0x535)][_0x55cc5a(0x28b)](),_0x5e9089=_0xcd00df[_0x55cc5a(0x28b)](),_0x13bbb1=_0x5e9089[_0x55cc5a(0x5e2)],_0x35234a=_0x3b94bf[_0x55cc5a(0x19e)],_0x454229=_0x3b94bf[_0x55cc5a(0x15b)];_0x13bbb1[_0x55cc5a(0x1d6)]<_0x35234a;){_0x12c2b4&&_0x22fdc3[_0x55cc5a(0x242)](_0x12c2b4),_0x12c2b4=_0x22fdc3[_0x55cc5a(0x242)](_0x5672d6)[_0x55cc5a(0x2ff)](_0x403119),_0x22fdc3[_0x55cc5a(0x1b6)]();for(var _0x556b0d=0x1;_0x556b0d<_0x454229;_0x556b0d++)_0x12c2b4=_0x22fdc3['finalize'](_0x12c2b4),_0x22fdc3[_0x55cc5a(0x1b6)]();_0x5e9089[_0x55cc5a(0x28e)](_0x12c2b4);}return _0x5e9089[_0x55cc5a(0x2e3)]=_0x35234a*0x4,_0x5e9089;}});_0x2851f1[_0x3f6f81(0x1e8)]=function(_0xcfbb44,_0xf58ec9,_0x530d99){const _0x4bea5d=_0x3f6f81;return _0x36c1f2[_0x4bea5d(0x28b)](_0x530d99)[_0x4bea5d(0x5a6)](_0xcfbb44,_0xf58ec9);};}()),_0x16c2c8['EvpKDF'];}));}(Ve)),Ve['exports'];}var qe={'exports':{}},Ts=qe[_0x1b4be4(0x412)],si;function Hi(){const _0x3201b7=_0x1b4be4;return si||(si=0x1,function(_0x4b480f,_0xbcbec7){(function(_0x24a5c7,_0x236925,_0x2d65b7){const _0x5b7fc0=_0x446a;_0x4b480f[_0x5b7fc0(0x412)]=_0x236925(se(),ji());}(Ts,function(_0x50c740){const _0x1296d7=_0x446a;_0x50c740[_0x1296d7(0x23d)][_0x1296d7(0x2dc)]||function(_0x41dd92){const _0x242a7d=_0x1296d7;var _0x2250bc=_0x50c740,_0x238982=_0x2250bc[_0x242a7d(0x23d)],_0x48fb0c=_0x238982['Base'],_0xdac384=_0x238982[_0x242a7d(0x309)],_0x55fa62=_0x238982['BufferedBlockAlgorithm'],_0x5b56a0=_0x2250bc[_0x242a7d(0x175)];_0x5b56a0[_0x242a7d(0x2ef)];var _0x2e11c3=_0x5b56a0[_0x242a7d(0x458)],_0x48eda1=_0x2250bc[_0x242a7d(0x597)],_0x8c8674=_0x48eda1['EvpKDF'],_0x2ae680=_0x238982['Cipher']=_0x55fa62['extend']({'cfg':_0x48fb0c[_0x242a7d(0x4af)](),'createEncryptor':function(_0x18d9ef,_0x2ea0fc){const _0x16a2c6=_0x242a7d;return this[_0x16a2c6(0x28b)](this[_0x16a2c6(0x1be)],_0x18d9ef,_0x2ea0fc);},'createDecryptor':function(_0x21fc4f,_0x5108ca){const _0x1bb67b=_0x242a7d;return this[_0x1bb67b(0x28b)](this['_DEC_XFORM_MODE'],_0x21fc4f,_0x5108ca);},'init':function(_0x1db36d,_0x5bc0d5,_0x232d94){const _0x171df5=_0x242a7d;this[_0x171df5(0x1fa)]=this[_0x171df5(0x1fa)][_0x171df5(0x4af)](_0x232d94),this[_0x171df5(0x474)]=_0x1db36d,this['_key']=_0x5bc0d5,this[_0x171df5(0x1b6)]();},'reset':function(){const _0x59b1b=_0x242a7d;_0x55fa62[_0x59b1b(0x1b6)][_0x59b1b(0x246)](this),this[_0x59b1b(0x48f)]();},'process':function(_0x184091){const _0x24e85f=_0x242a7d;return this[_0x24e85f(0x39f)](_0x184091),this['_process']();},'finalize':function(_0x545754){const _0x3886a1=_0x242a7d;_0x545754&&this[_0x3886a1(0x39f)](_0x545754);var _0x2a04bc=this[_0x3886a1(0x5a4)]();return _0x2a04bc;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x549100(_0x255166){return typeof _0x255166=='string'?_0x92506e:_0x14a6fc;}return function(_0x37d25c){return{'encrypt':function(_0x2ccbca,_0x2b084d,_0x2edceb){const _0x1a5769=_0x446a;return _0x549100(_0x2b084d)[_0x1a5769(0x13d)](_0x37d25c,_0x2ccbca,_0x2b084d,_0x2edceb);},'decrypt':function(_0x5dbca2,_0x6c0663,_0x5591c0){return _0x549100(_0x6c0663)['decrypt'](_0x37d25c,_0x5dbca2,_0x6c0663,_0x5591c0);}};};}())});_0x238982[_0x242a7d(0x574)]=_0x2ae680['extend']({'_doFinalize':function(){const _0x4475e1=_0x242a7d;var _0x33b4f4=this[_0x4475e1(0x5d2)](!0x0);return _0x33b4f4;},'blockSize':0x1});var _0x4ccd68=_0x2250bc['mode']={},_0x14d4dc=_0x238982['BlockCipherMode']=_0x48fb0c['extend']({'createEncryptor':function(_0x59294d,_0x5d76fb){const _0x42aceb=_0x242a7d;return this[_0x42aceb(0x1a5)]['create'](_0x59294d,_0x5d76fb);},'createDecryptor':function(_0x469731,_0x487ff6){const _0xc20b61=_0x242a7d;return this[_0xc20b61(0x4ff)]['create'](_0x469731,_0x487ff6);},'init':function(_0x20eed8,_0x23f41e){const _0x497070=_0x242a7d;this[_0x497070(0x3a4)]=_0x20eed8,this[_0x497070(0x170)]=_0x23f41e;}}),_0x56d169=_0x4ccd68['CBC']=(function(){const _0x497a1a=_0x242a7d;var _0x21ebe6=_0x14d4dc[_0x497a1a(0x4af)]();_0x21ebe6[_0x497a1a(0x1a5)]=_0x21ebe6[_0x497a1a(0x4af)]({'processBlock':function(_0x5c5006,_0xe81ce){const _0x597811=_0x497a1a;var _0x1ed3cf=this[_0x597811(0x3a4)],_0x195939=_0x1ed3cf['blockSize'];_0x4e50a4[_0x597811(0x246)](this,_0x5c5006,_0xe81ce,_0x195939),_0x1ed3cf[_0x597811(0x243)](_0x5c5006,_0xe81ce),this[_0x597811(0x3cc)]=_0x5c5006['slice'](_0xe81ce,_0xe81ce+_0x195939);}}),_0x21ebe6['Decryptor']=_0x21ebe6[_0x497a1a(0x4af)]({'processBlock':function(_0x2683bc,_0x532a66){const _0xfc0ce7=_0x497a1a;var _0x5de4a9=this[_0xfc0ce7(0x3a4)],_0x165b33=_0x5de4a9['blockSize'],_0x2e8f07=_0x2683bc['slice'](_0x532a66,_0x532a66+_0x165b33);_0x5de4a9[_0xfc0ce7(0x2f0)](_0x2683bc,_0x532a66),_0x4e50a4[_0xfc0ce7(0x246)](this,_0x2683bc,_0x532a66,_0x165b33),this[_0xfc0ce7(0x3cc)]=_0x2e8f07;}});function _0x4e50a4(_0x2db0ec,_0x9dd8b5,_0xebfba0){const _0x3fce52=_0x497a1a;var _0x536e35,_0x31d285=this[_0x3fce52(0x170)];_0x31d285?(_0x536e35=_0x31d285,this[_0x3fce52(0x170)]=_0x41dd92):_0x536e35=this['_prevBlock'];for(var _0x46e2b6=0x0;_0x46e2b6<_0xebfba0;_0x46e2b6++)_0x2db0ec[_0x9dd8b5+_0x46e2b6]^=_0x536e35[_0x46e2b6];}return _0x21ebe6;}()),_0x312bed=_0x2250bc[_0x242a7d(0x370)]={},_0x52018c=_0x312bed[_0x242a7d(0x145)]={'pad':function(_0x3609de,_0xfe97b8){const _0x53b7f6=_0x242a7d;for(var _0x5c5920=_0xfe97b8*0x4,_0x51372a=_0x5c5920-_0x3609de[_0x53b7f6(0x2e3)]%_0x5c5920,_0x56e897=_0x51372a<<0x18|_0x51372a<<0x10|_0x51372a<<0x8|_0x51372a,_0xe81d93=[],_0x456ad4=0x0;_0x456ad4<_0x51372a;_0x456ad4+=0x4)_0xe81d93[_0x53b7f6(0x284)](_0x56e897);var _0x5946d1=_0xdac384[_0x53b7f6(0x28b)](_0xe81d93,_0x51372a);_0x3609de['concat'](_0x5946d1);},'unpad':function(_0x5cb514){const _0x186981=_0x242a7d;var _0x3272d1=_0x5cb514[_0x186981(0x5e2)][_0x5cb514[_0x186981(0x2e3)]-0x1>>>0x2]&0xff;_0x5cb514['sigBytes']-=_0x3272d1;}};_0x238982[_0x242a7d(0x4f6)]=_0x2ae680['extend']({'cfg':_0x2ae680[_0x242a7d(0x1fa)][_0x242a7d(0x4af)]({'mode':_0x56d169,'padding':_0x52018c}),'reset':function(){const _0x3fee28=_0x242a7d;var _0x2b0edd;_0x2ae680[_0x3fee28(0x1b6)][_0x3fee28(0x246)](this);var _0x5f530b=this[_0x3fee28(0x1fa)],_0x57ac33=_0x5f530b['iv'],_0x1bd9c0=_0x5f530b[_0x3fee28(0x224)];this[_0x3fee28(0x474)]==this[_0x3fee28(0x1be)]?_0x2b0edd=_0x1bd9c0[_0x3fee28(0x42d)]:(_0x2b0edd=_0x1bd9c0[_0x3fee28(0x5a5)],this['_minBufferSize']=0x1),this[_0x3fee28(0x437)]&&this[_0x3fee28(0x437)][_0x3fee28(0x41b)]==_0x2b0edd?this[_0x3fee28(0x437)][_0x3fee28(0x5af)](this,_0x57ac33&&_0x57ac33[_0x3fee28(0x5e2)]):(this[_0x3fee28(0x437)]=_0x2b0edd[_0x3fee28(0x246)](_0x1bd9c0,this,_0x57ac33&&_0x57ac33[_0x3fee28(0x5e2)]),this[_0x3fee28(0x437)][_0x3fee28(0x41b)]=_0x2b0edd);},'_doProcessBlock':function(_0x553c65,_0x16446d){const _0x45e721=_0x242a7d;this['_mode'][_0x45e721(0x2a6)](_0x553c65,_0x16446d);},'_doFinalize':function(){const _0x573872=_0x242a7d;var _0x3df477,_0xe97688=this['cfg'][_0x573872(0x377)];return this[_0x573872(0x474)]==this[_0x573872(0x1be)]?(_0xe97688[_0x573872(0x370)](this[_0x573872(0x5e0)],this[_0x573872(0x50b)]),_0x3df477=this['_process'](!0x0)):(_0x3df477=this[_0x573872(0x5d2)](!0x0),_0xe97688[_0x573872(0x4c6)](_0x3df477)),_0x3df477;},'blockSize':0x80/0x20});var _0x165bdb=_0x238982[_0x242a7d(0x50e)]=_0x48fb0c[_0x242a7d(0x4af)]({'init':function(_0x4d5de1){const _0x42ccf9=_0x242a7d;this[_0x42ccf9(0x399)](_0x4d5de1);},'toString':function(_0x1315bc){const _0x4a77c7=_0x242a7d;return(_0x1315bc||this[_0x4a77c7(0x202)])[_0x4a77c7(0x397)](this);}}),_0x3f01e0=_0x2250bc['format']={},_0x2b2294=_0x3f01e0['OpenSSL']={'stringify':function(_0x193cf3){const _0x91ab8f=_0x242a7d;var _0x55c158,_0x1aca36=_0x193cf3['ciphertext'],_0x23e61c=_0x193cf3[_0x91ab8f(0x2f7)];return _0x23e61c?_0x55c158=_0xdac384[_0x91ab8f(0x28b)]([0x53616c74,0x65645f5f])['concat'](_0x23e61c)[_0x91ab8f(0x28e)](_0x1aca36):_0x55c158=_0x1aca36,_0x55c158[_0x91ab8f(0x1d1)](_0x2e11c3);},'parse':function(_0x574db1){const _0x59f9b4=_0x242a7d;var _0x860e56,_0x4d98b0=_0x2e11c3['parse'](_0x574db1),_0x496b1c=_0x4d98b0['words'];return _0x496b1c[0x0]==0x53616c74&&_0x496b1c[0x1]==0x65645f5f&&(_0x860e56=_0xdac384[_0x59f9b4(0x28b)](_0x496b1c[_0x59f9b4(0x487)](0x2,0x4)),_0x496b1c[_0x59f9b4(0x51a)](0x0,0x4),_0x4d98b0[_0x59f9b4(0x2e3)]-=0x10),_0x165bdb[_0x59f9b4(0x28b)]({'ciphertext':_0x4d98b0,'salt':_0x860e56});}},_0x14a6fc=_0x238982['SerializableCipher']=_0x48fb0c['extend']({'cfg':_0x48fb0c[_0x242a7d(0x4af)]({'format':_0x2b2294}),'encrypt':function(_0x172ff7,_0x3dcad7,_0x5987a6,_0x3a16d2){const _0x209e2a=_0x242a7d;_0x3a16d2=this['cfg'][_0x209e2a(0x4af)](_0x3a16d2);var _0x5a7f1c=_0x172ff7['createEncryptor'](_0x5987a6,_0x3a16d2),_0x5751d5=_0x5a7f1c[_0x209e2a(0x2ff)](_0x3dcad7),_0x38a04b=_0x5a7f1c[_0x209e2a(0x1fa)];return _0x165bdb[_0x209e2a(0x28b)]({'ciphertext':_0x5751d5,'key':_0x5987a6,'iv':_0x38a04b['iv'],'algorithm':_0x172ff7,'mode':_0x38a04b[_0x209e2a(0x224)],'padding':_0x38a04b[_0x209e2a(0x377)],'blockSize':_0x172ff7[_0x209e2a(0x50b)],'formatter':_0x3a16d2[_0x209e2a(0x41c)]});},'decrypt':function(_0x900010,_0x455c66,_0x2318c7,_0x43b68e){const _0x4a5c25=_0x242a7d;_0x43b68e=this['cfg'][_0x4a5c25(0x4af)](_0x43b68e),_0x455c66=this[_0x4a5c25(0x212)](_0x455c66,_0x43b68e[_0x4a5c25(0x41c)]);var _0xbcf8f3=_0x900010[_0x4a5c25(0x5a5)](_0x2318c7,_0x43b68e)[_0x4a5c25(0x2ff)](_0x455c66[_0x4a5c25(0x491)]);return _0xbcf8f3;},'_parse':function(_0x137d15,_0x290161){const _0x5d142b=_0x242a7d;return typeof _0x137d15==_0x5d142b(0x32c)?_0x290161['parse'](_0x137d15,this):_0x137d15;}}),_0x55752f=_0x2250bc['kdf']={},_0x22d98a=_0x55752f['OpenSSL']={'execute':function(_0x3a7c9a,_0x3d55b0,_0x3c97a4,_0x2741a6,_0x56bc58){const _0x388ca1=_0x242a7d;if(_0x2741a6||(_0x2741a6=_0xdac384[_0x388ca1(0x331)](0x40/0x8)),_0x56bc58)var _0x415c8e=_0x8c8674['create']({'keySize':_0x3d55b0+_0x3c97a4,'hasher':_0x56bc58})[_0x388ca1(0x5a6)](_0x3a7c9a,_0x2741a6);else var _0x415c8e=_0x8c8674[_0x388ca1(0x28b)]({'keySize':_0x3d55b0+_0x3c97a4})[_0x388ca1(0x5a6)](_0x3a7c9a,_0x2741a6);var _0x34e073=_0xdac384['create'](_0x415c8e[_0x388ca1(0x5e2)][_0x388ca1(0x487)](_0x3d55b0),_0x3c97a4*0x4);return _0x415c8e[_0x388ca1(0x2e3)]=_0x3d55b0*0x4,_0x165bdb[_0x388ca1(0x28b)]({'key':_0x415c8e,'iv':_0x34e073,'salt':_0x2741a6});}},_0x92506e=_0x238982['PasswordBasedCipher']=_0x14a6fc[_0x242a7d(0x4af)]({'cfg':_0x14a6fc[_0x242a7d(0x1fa)]['extend']({'kdf':_0x22d98a}),'encrypt':function(_0x50f4dd,_0x2d03af,_0x1f12dd,_0xf4039d){const _0x43b002=_0x242a7d;_0xf4039d=this[_0x43b002(0x1fa)][_0x43b002(0x4af)](_0xf4039d);var _0x1d1d1f=_0xf4039d[_0x43b002(0x5ca)][_0x43b002(0x33c)](_0x1f12dd,_0x50f4dd['keySize'],_0x50f4dd['ivSize'],_0xf4039d[_0x43b002(0x2f7)],_0xf4039d[_0x43b002(0x535)]);_0xf4039d['iv']=_0x1d1d1f['iv'];var _0x7ce3fe=_0x14a6fc[_0x43b002(0x13d)][_0x43b002(0x246)](this,_0x50f4dd,_0x2d03af,_0x1d1d1f[_0x43b002(0x323)],_0xf4039d);return _0x7ce3fe[_0x43b002(0x399)](_0x1d1d1f),_0x7ce3fe;},'decrypt':function(_0x209b5e,_0x441b72,_0x182107,_0x48da0b){const _0x4c3f4f=_0x242a7d;_0x48da0b=this[_0x4c3f4f(0x1fa)]['extend'](_0x48da0b),_0x441b72=this[_0x4c3f4f(0x212)](_0x441b72,_0x48da0b[_0x4c3f4f(0x41c)]);var _0x4c5ca7=_0x48da0b[_0x4c3f4f(0x5ca)]['execute'](_0x182107,_0x209b5e['keySize'],_0x209b5e['ivSize'],_0x441b72[_0x4c3f4f(0x2f7)],_0x48da0b['hasher']);_0x48da0b['iv']=_0x4c5ca7['iv'];var _0x392105=_0x14a6fc[_0x4c3f4f(0x449)][_0x4c3f4f(0x246)](this,_0x209b5e,_0x441b72,_0x4c5ca7['key'],_0x48da0b);return _0x392105;}});}();}));}(qe)),qe[_0x3201b7(0x412)];}var Rs=Be[_0x1b4be4(0x412)],oi;function ys(){const _0x3a14e9=_0x1b4be4;return oi||(oi=0x1,function(_0x315ac3,_0x14c69){(function(_0x1da7ac,_0x3d55c4,_0x435ac0){const _0x40b16f=_0x446a;_0x315ac3[_0x40b16f(0x412)]=_0x3d55c4(se(),$i(),ms(),ji(),Hi());}(Rs,function(_0x290a11){return(function(){const _0x382826=_0x446a;var _0x4f000f=_0x290a11,_0x4d3dc1=_0x4f000f[_0x382826(0x23d)],_0x34b22e=_0x4d3dc1[_0x382826(0x4f6)],_0xe6a70e=_0x4f000f[_0x382826(0x597)],_0x1667d1=[],_0x290145=[],_0x238878=[],_0x2a44f0=[],_0x467d10=[],_0x2cf30b=[],_0x180de7=[],_0x1e5755=[],_0x5e124b=[],_0x4e4139=[];(function(){for(var _0x196d49=[],_0x849e3c=0x0;_0x849e3c<0x100;_0x849e3c++)_0x849e3c<0x80?_0x196d49[_0x849e3c]=_0x849e3c<<0x1:_0x196d49[_0x849e3c]=_0x849e3c<<0x1^0x11b;for(var _0x45e56e=0x0,_0x2022a0=0x0,_0x849e3c=0x0;_0x849e3c<0x100;_0x849e3c++){var _0x34e0d8=_0x2022a0^_0x2022a0<<0x1^_0x2022a0<<0x2^_0x2022a0<<0x3^_0x2022a0<<0x4;_0x34e0d8=_0x34e0d8>>>0x8^_0x34e0d8&0xff^0x63,_0x1667d1[_0x45e56e]=_0x34e0d8,_0x290145[_0x34e0d8]=_0x45e56e;var _0x252793=_0x196d49[_0x45e56e],_0x5203c2=_0x196d49[_0x252793],_0x474c1f=_0x196d49[_0x5203c2],_0x387e21=_0x196d49[_0x34e0d8]*0x101^_0x34e0d8*0x1010100;_0x238878[_0x45e56e]=_0x387e21<<0x18|_0x387e21>>>0x8,_0x2a44f0[_0x45e56e]=_0x387e21<<0x10|_0x387e21>>>0x10,_0x467d10[_0x45e56e]=_0x387e21<<0x8|_0x387e21>>>0x18,_0x2cf30b[_0x45e56e]=_0x387e21;var _0x387e21=_0x474c1f*0x1010101^_0x5203c2*0x10001^_0x252793*0x101^_0x45e56e*0x1010100;_0x180de7[_0x34e0d8]=_0x387e21<<0x18|_0x387e21>>>0x8,_0x1e5755[_0x34e0d8]=_0x387e21<<0x10|_0x387e21>>>0x10,_0x5e124b[_0x34e0d8]=_0x387e21<<0x8|_0x387e21>>>0x18,_0x4e4139[_0x34e0d8]=_0x387e21,_0x45e56e?(_0x45e56e=_0x252793^_0x196d49[_0x196d49[_0x196d49[_0x474c1f^_0x252793]]],_0x2022a0^=_0x196d49[_0x196d49[_0x2022a0]]):_0x45e56e=_0x2022a0=0x1;}}());var _0x73430d=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x472cb8=_0xe6a70e[_0x382826(0x539)]=_0x34b22e[_0x382826(0x4af)]({'_doReset':function(){const _0x2a4845=_0x382826;var _0x3a6cf3;if(!(this[_0x2a4845(0x2fa)]&&this[_0x2a4845(0x21b)]===this[_0x2a4845(0x42a)])){for(var _0x28dec1=this[_0x2a4845(0x21b)]=this['_key'],_0x1a6e13=_0x28dec1[_0x2a4845(0x5e2)],_0xb7b4bb=_0x28dec1[_0x2a4845(0x2e3)]/0x4,_0x368e19=this[_0x2a4845(0x2fa)]=_0xb7b4bb+0x6,_0x926cc1=(_0x368e19+0x1)*0x4,_0x1f7d5d=this[_0x2a4845(0x492)]=[],_0x5865cb=0x0;_0x5865cb<_0x926cc1;_0x5865cb++)_0x5865cb<_0xb7b4bb?_0x1f7d5d[_0x5865cb]=_0x1a6e13[_0x5865cb]:(_0x3a6cf3=_0x1f7d5d[_0x5865cb-0x1],_0x5865cb%_0xb7b4bb?_0xb7b4bb>0x6&&_0x5865cb%_0xb7b4bb==0x4&&(_0x3a6cf3=_0x1667d1[_0x3a6cf3>>>0x18]<<0x18|_0x1667d1[_0x3a6cf3>>>0x10&0xff]<<0x10|_0x1667d1[_0x3a6cf3>>>0x8&0xff]<<0x8|_0x1667d1[_0x3a6cf3&0xff]):(_0x3a6cf3=_0x3a6cf3<<0x8|_0x3a6cf3>>>0x18,_0x3a6cf3=_0x1667d1[_0x3a6cf3>>>0x18]<<0x18|_0x1667d1[_0x3a6cf3>>>0x10&0xff]<<0x10|_0x1667d1[_0x3a6cf3>>>0x8&0xff]<<0x8|_0x1667d1[_0x3a6cf3&0xff],_0x3a6cf3^=_0x73430d[_0x5865cb/_0xb7b4bb|0x0]<<0x18),_0x1f7d5d[_0x5865cb]=_0x1f7d5d[_0x5865cb-_0xb7b4bb]^_0x3a6cf3);for(var _0x101e47=this['_invKeySchedule']=[],_0x50c2df=0x0;_0x50c2df<_0x926cc1;_0x50c2df++){var _0x5865cb=_0x926cc1-_0x50c2df;if(_0x50c2df%0x4)var _0x3a6cf3=_0x1f7d5d[_0x5865cb];else var _0x3a6cf3=_0x1f7d5d[_0x5865cb-0x4];_0x50c2df<0x4||_0x5865cb<=0x4?_0x101e47[_0x50c2df]=_0x3a6cf3:_0x101e47[_0x50c2df]=_0x180de7[_0x1667d1[_0x3a6cf3>>>0x18]]^_0x1e5755[_0x1667d1[_0x3a6cf3>>>0x10&0xff]]^_0x5e124b[_0x1667d1[_0x3a6cf3>>>0x8&0xff]]^_0x4e4139[_0x1667d1[_0x3a6cf3&0xff]];}}},'encryptBlock':function(_0x4895fe,_0x14590c){const _0x1a4e50=_0x382826;this['_doCryptBlock'](_0x4895fe,_0x14590c,this[_0x1a4e50(0x492)],_0x238878,_0x2a44f0,_0x467d10,_0x2cf30b,_0x1667d1);},'decryptBlock':function(_0x1867c6,_0x167156){const _0x23a1ca=_0x382826;var _0x322912=_0x1867c6[_0x167156+0x1];_0x1867c6[_0x167156+0x1]=_0x1867c6[_0x167156+0x3],_0x1867c6[_0x167156+0x3]=_0x322912,this[_0x23a1ca(0x2d1)](_0x1867c6,_0x167156,this[_0x23a1ca(0x59c)],_0x180de7,_0x1e5755,_0x5e124b,_0x4e4139,_0x290145);var _0x322912=_0x1867c6[_0x167156+0x1];_0x1867c6[_0x167156+0x1]=_0x1867c6[_0x167156+0x3],_0x1867c6[_0x167156+0x3]=_0x322912;},'_doCryptBlock':function(_0x24976b,_0xf9c14e,_0x138d07,_0x541909,_0x4727f8,_0x226fff,_0x5c72eb,_0x343bae){for(var _0x4d4ddc=this['_nRounds'],_0x3e3ab6=_0x24976b[_0xf9c14e]^_0x138d07[0x0],_0x205ec3=_0x24976b[_0xf9c14e+0x1]^_0x138d07[0x1],_0x575033=_0x24976b[_0xf9c14e+0x2]^_0x138d07[0x2],_0x1d0bb0=_0x24976b[_0xf9c14e+0x3]^_0x138d07[0x3],_0x3806b1=0x4,_0x209747=0x1;_0x209747<_0x4d4ddc;_0x209747++){var _0x53e0d5=_0x541909[_0x3e3ab6>>>0x18]^_0x4727f8[_0x205ec3>>>0x10&0xff]^_0x226fff[_0x575033>>>0x8&0xff]^_0x5c72eb[_0x1d0bb0&0xff]^_0x138d07[_0x3806b1++],_0x2739c3=_0x541909[_0x205ec3>>>0x18]^_0x4727f8[_0x575033>>>0x10&0xff]^_0x226fff[_0x1d0bb0>>>0x8&0xff]^_0x5c72eb[_0x3e3ab6&0xff]^_0x138d07[_0x3806b1++],_0x1fd7f0=_0x541909[_0x575033>>>0x18]^_0x4727f8[_0x1d0bb0>>>0x10&0xff]^_0x226fff[_0x3e3ab6>>>0x8&0xff]^_0x5c72eb[_0x205ec3&0xff]^_0x138d07[_0x3806b1++],_0x276885=_0x541909[_0x1d0bb0>>>0x18]^_0x4727f8[_0x3e3ab6>>>0x10&0xff]^_0x226fff[_0x205ec3>>>0x8&0xff]^_0x5c72eb[_0x575033&0xff]^_0x138d07[_0x3806b1++];_0x3e3ab6=_0x53e0d5,_0x205ec3=_0x2739c3,_0x575033=_0x1fd7f0,_0x1d0bb0=_0x276885;}var _0x53e0d5=(_0x343bae[_0x3e3ab6>>>0x18]<<0x18|_0x343bae[_0x205ec3>>>0x10&0xff]<<0x10|_0x343bae[_0x575033>>>0x8&0xff]<<0x8|_0x343bae[_0x1d0bb0&0xff])^_0x138d07[_0x3806b1++],_0x2739c3=(_0x343bae[_0x205ec3>>>0x18]<<0x18|_0x343bae[_0x575033>>>0x10&0xff]<<0x10|_0x343bae[_0x1d0bb0>>>0x8&0xff]<<0x8|_0x343bae[_0x3e3ab6&0xff])^_0x138d07[_0x3806b1++],_0x1fd7f0=(_0x343bae[_0x575033>>>0x18]<<0x18|_0x343bae[_0x1d0bb0>>>0x10&0xff]<<0x10|_0x343bae[_0x3e3ab6>>>0x8&0xff]<<0x8|_0x343bae[_0x205ec3&0xff])^_0x138d07[_0x3806b1++],_0x276885=(_0x343bae[_0x1d0bb0>>>0x18]<<0x18|_0x343bae[_0x3e3ab6>>>0x10&0xff]<<0x10|_0x343bae[_0x205ec3>>>0x8&0xff]<<0x8|_0x343bae[_0x575033&0xff])^_0x138d07[_0x3806b1++];_0x24976b[_0xf9c14e]=_0x53e0d5,_0x24976b[_0xf9c14e+0x1]=_0x2739c3,_0x24976b[_0xf9c14e+0x2]=_0x1fd7f0,_0x24976b[_0xf9c14e+0x3]=_0x276885;},'keySize':0x100/0x20});_0x4f000f[_0x382826(0x539)]=_0x34b22e[_0x382826(0x5ab)](_0x472cb8);}()),_0x290a11['AES'];}));}(Be)),Be[_0x3a14e9(0x412)];}var Os=ys();const Ds=xe(Os);var Ps=$i();const ai=xe(Ps);var Ke={'exports':{}},ws=Ke[_0x1b4be4(0x412)],ci;function Us(){return ci||(ci=0x1,function(_0x3ab994,_0x2e1868){(function(_0x2c1616,_0x441bc2){const _0x3b4140=_0x446a;_0x3ab994[_0x3b4140(0x412)]=_0x441bc2(se());}(ws,function(_0x49e816){const _0x672073=_0x446a;return _0x49e816[_0x672073(0x175)][_0x672073(0x2ef)];}));}(Ke)),Ke['exports'];}var Ms=Us();const As=xe(Ms);var ze={'exports':{}},Ns=ze[_0x1b4be4(0x412)],li;function Ls(){const _0x1bc6eb=_0x1b4be4;return li||(li=0x1,function(_0x180688,_0x474428){(function(_0x6b5b12,_0x5c93ed){const _0x17f73b=_0x446a;_0x180688[_0x17f73b(0x412)]=_0x5c93ed(se());}(Ns,function(_0x296d48){const _0x46f072=_0x446a;return(function(){const _0x36306b=_0x446a;if(typeof ArrayBuffer==_0x36306b(0x2b0)){var _0x36d1d2=_0x296d48,_0x205c48=_0x36d1d2[_0x36306b(0x23d)],_0x1a4afe=_0x205c48['WordArray'],_0x221b89=_0x1a4afe['init'],_0x1b07bd=_0x1a4afe[_0x36306b(0x5af)]=function(_0x26087f){const _0x5e00d7=_0x36306b;if(_0x26087f instanceof ArrayBuffer&&(_0x26087f=new Uint8Array(_0x26087f)),(_0x26087f instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x26087f instanceof Uint8ClampedArray||_0x26087f instanceof Int16Array||_0x26087f instanceof Uint16Array||_0x26087f instanceof Int32Array||_0x26087f instanceof Uint32Array||_0x26087f instanceof Float32Array||_0x26087f instanceof Float64Array)&&(_0x26087f=new Uint8Array(_0x26087f[_0x5e00d7(0x1ca)],_0x26087f[_0x5e00d7(0x415)],_0x26087f[_0x5e00d7(0x335)])),_0x26087f instanceof Uint8Array){for(var _0x47adf0=_0x26087f[_0x5e00d7(0x335)],_0x146db9=[],_0x13932e=0x0;_0x13932e<_0x47adf0;_0x13932e++)_0x146db9[_0x13932e>>>0x2]|=_0x26087f[_0x13932e]<<0x18-_0x13932e%0x4*0x8;_0x221b89[_0x5e00d7(0x246)](this,_0x146db9,_0x47adf0);}else _0x221b89[_0x5e00d7(0x294)](this,arguments);};_0x1b07bd['prototype']=_0x1a4afe;}}()),_0x296d48[_0x46f072(0x23d)][_0x46f072(0x309)];}));}(ze)),ze[_0x1bc6eb(0x412)];}var xs=Ls();const $s=xe(xs);var Xe={'exports':{}},js=Xe['exports'],hi;function Hs(){const _0xe59ef4=_0x1b4be4;return hi||(hi=0x1,function(_0x479b20,_0x95e0f7){(function(_0x28aee7,_0x18b9d0,_0x5380cf){const _0x13c1fc=_0x446a;_0x479b20[_0x13c1fc(0x412)]=_0x18b9d0(se(),Hi());}(js,function(_0x8f292d){const _0x524ff8=_0x446a;return _0x8f292d['pad']['NoPadding']={'pad':function(){},'unpad':function(){}},_0x8f292d[_0x524ff8(0x370)][_0x524ff8(0x21f)];}));}(Xe)),Xe[_0xe59ef4(0x412)];}var Bs=Hs();const ks=xe(Bs);function Ws(_0x4afe68,_0x5cabaa){const _0x9b454d=_0x1b4be4,_0x491aff=_0x5cabaa-_0x4afe68['length']%_0x5cabaa,_0x5ebf12=String[_0x9b454d(0x201)](_0x491aff)[_0x9b454d(0x1a0)](_0x491aff);return _0x4afe68+_0x5ebf12;}function Fs(_0x234c5a,_0x5961ef){const _0x2b7a74=_0x1b4be4,_0x392a2a=$s[_0x2b7a74(0x331)](0x10),_0x5378dc=Ws(_0x234c5a,0x10),_0x15fa9d=Ds['encrypt'](As[_0x2b7a74(0x194)](_0x5378dc),ai[_0x2b7a74(0x194)](_0x5961ef),{'iv':_0x392a2a,'padding':ks});return _0x392a2a[_0x2b7a74(0x28e)](_0x15fa9d[_0x2b7a74(0x491)])[_0x2b7a74(0x1d1)](ai);}function Vs(){const _0xf31214=_0x1b4be4,_0x50ad27=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)[_0xf31214(0x4fb)];if(_0x50ad27){const _0x28421a={'time':Math[_0xf31214(0x5a3)](Date[_0xf31214(0x168)]()/0x3e8),'domain':location['hostname']};return Fs(JSON[_0xf31214(0x397)](_0x28421a),_0x50ad27);}}var Gs=Object[_0x1b4be4(0x3c9)],Ys=Object[_0x1b4be4(0x3c7)],qs=(_0x3d450b,_0x15f5b4,_0x43358d,_0x27b978)=>{const _0x1c9084=_0x1b4be4;for(var _0xcd7f42=_0x27b978>0x1?void 0x0:_0x27b978?Ys(_0x15f5b4,_0x43358d):_0x15f5b4,_0x28eac4=_0x3d450b[_0x1c9084(0x1d6)]-0x1,_0x4e29d0;_0x28eac4>=0x0;_0x28eac4--)(_0x4e29d0=_0x3d450b[_0x28eac4])&&(_0xcd7f42=(_0x27b978?_0x4e29d0(_0x15f5b4,_0x43358d,_0xcd7f42):_0x4e29d0(_0xcd7f42))||_0xcd7f42);return _0x27b978&&_0xcd7f42&&Gs(_0x15f5b4,_0x43358d,_0xcd7f42),_0xcd7f42;},Ks=(_0x14eb0c,_0x49d388)=>(_0x84f94b,_0x1ece6b)=>_0x49d388(_0x84f94b,_0x1ece6b,_0x14eb0c);let rt=class{constructor(_0x2611b6){const _0x1d431a=_0x1b4be4;this[_0x1d431a(0x515)]=_0x2611b6,this[_0x1d431a(0x418)]();}[_0x1b4be4(0x418)](){const _0x2aa6d7=_0x1b4be4;this[_0x2aa6d7(0x515)][_0x2aa6d7(0x188)]({'interceptor':(_0x4a46c1,_0x255296)=>{const _0x5cc534=_0x2aa6d7,_0x244c21=_0x4a46c1['headers'],_0x1d4c62=Vs();return _0x1d4c62&&_0x244c21['set'](_0x5cc534(0x384),_0x1d4c62),_0x255296(_0x4a46c1);}});}};rt=qs([Ks(0x0,a[_0x1b4be4(0x5da)](z[_0x1b4be4(0x3aa)]))],rt);var zs=Object[_0x1b4be4(0x3c9)],Xs=Object[_0x1b4be4(0x3c7)],Js=(_0x8c27fa,_0x11f614,_0x18092f,_0x391211)=>{for(var _0x2f858b=_0x391211>0x1?void 0x0:_0x391211?Xs(_0x11f614,_0x18092f):_0x11f614,_0x4ff100=_0x8c27fa['length']-0x1,_0x3ffe4b;_0x4ff100>=0x0;_0x4ff100--)(_0x3ffe4b=_0x8c27fa[_0x4ff100])&&(_0x2f858b=(_0x391211?_0x3ffe4b(_0x11f614,_0x18092f,_0x2f858b):_0x3ffe4b(_0x2f858b))||_0x2f858b);return _0x391211&&_0x2f858b&&zs(_0x11f614,_0x18092f,_0x2f858b),_0x2f858b;},Ct=(_0x4ed923,_0x1f5c60)=>(_0xceba4b,_0x592390)=>_0x1f5c60(_0xceba4b,_0x592390,_0x4ed923);const Zs=['image/png',_0x1b4be4(0x427),_0x1b4be4(0x393),_0x1b4be4(0x44e),_0x1b4be4(0x407)],Qs=0x5*0x400*0x400,eo=_0x1b4be4(0x2c4),to='/universer-api/stream/file/upload',io=_0x1b4be4(0x360),no=_0x1b4be4(0x39b);exports[_0x1b4be4(0x2d2)]=class{constructor(_0x2ef1d6,_0x262bf2,_0x574979){const _0x54ede3=_0x1b4be4;I(this,_0x54ede3(0x177),0x0),I(this,_0x54ede3(0x582),new A[(_0x54ede3(0x1a3))]()),I(this,_0x54ede3(0x35c),this[_0x54ede3(0x582)]),I(this,_0x54ede3(0x2ac),new Map()),(this[_0x54ede3(0x515)]=_0x2ef1d6,this[_0x54ede3(0x234)]=_0x262bf2,this[_0x54ede3(0x471)]=_0x574979);}[_0x1b4be4(0x5cd)](_0x43248e){const _0x2abef4=_0x1b4be4;this[_0x2abef4(0x177)]=_0x43248e,this['_change$'][_0x2abef4(0x258)](_0x43248e);}['getImageSourceCache'](_0x3886fd,_0x16a1bb){const _0x3a31cc=_0x1b4be4;if(_0x16a1bb===te[_0x3a31cc(0x381)][_0x3a31cc(0x12e)]){const _0x3ced08=new Image();return _0x3ced08[_0x3a31cc(0x247)]=_0x3886fd,_0x3ced08;}return this['_imageSourceCache'][_0x3a31cc(0x35b)](_0x3886fd);}['addImageSourceCache'](_0x232190,_0x6db655,_0xfd4308){const _0x567681=_0x1b4be4;_0x6db655===te['ImageSourceType'][_0x567681(0x12e)]||_0xfd4308==null||this['_imageSourceCache'][_0x567681(0x5c1)](_0x232190,_0xfd4308);}async[_0x1b4be4(0x347)](_0x35a8c2){const _0x418c3b=_0x1b4be4;try{const _0x272876=this[_0x418c3b(0x241)](this[_0x418c3b(0x3ae)](),''+_0x35a8c2),_0x4c7bc3=(await this[_0x418c3b(0x515)][_0x418c3b(0x35b)](_0x272876))['body'];if(_0x4c7bc3['error']&&_0x4c7bc3[_0x418c3b(0x218)][_0x418c3b(0x48c)]===Ei['OK']){const _0x392447=new URL(_0x4c7bc3[_0x418c3b(0x519)],this[_0x418c3b(0x11e)]())[_0x418c3b(0x1d1)]();return Promise[_0x418c3b(0x5b5)](_0x392447);}return Promise['reject'](_0x4c7bc3[_0x418c3b(0x218)]);}catch(_0x765ba1){return Promise[_0x418c3b(0x230)](_0x765ba1);}}async[_0x1b4be4(0x3c3)](_0x1571f0){const _0x5d84ae=_0x1b4be4;let _0x10ea3a='';if(!Zs[_0x5d84ae(0x1db)](_0x1571f0['type']))return this[_0x5d84ae(0x423)](),Promise['reject'](new Error(te[_0x5d84ae(0x2f9)][_0x5d84ae(0x1c7)]));if(_0x1571f0[_0x5d84ae(0x233)]>Qs)return this[_0x5d84ae(0x423)](),Promise['reject'](new Error(te[_0x5d84ae(0x2f9)][_0x5d84ae(0x5e9)]));try{const _0x4589cf=new FormData();_0x4589cf['append']('file',_0x1571f0);const _0x3dbbfa=this[_0x5d84ae(0x471)]['getFocusedUnit'](),_0x422650=_0x3dbbfa==null?void 0x0:_0x3dbbfa[_0x5d84ae(0x133)]();if(!_0x422650)throw new Error('unitId\x20is\x20not\x20found');const _0x39cf6b=this['_getUploadFileURL']()+_0x5d84ae(0x1fc)+_0x1571f0['size']['toString']()+'&source='+bi[_0x5d84ae(0x2cd)]+'&assign='+encodeURIComponent(_0x422650),_0x2beaeb=await(await fetch(_0x39cf6b,{'method':'POST','body':_0x4589cf}))[_0x5d84ae(0x4b6)]();if(typeof _0x2beaeb['FileId']!=_0x5d84ae(0x32c))return this['_decreaseWaiting'](),Promise[_0x5d84ae(0x230)](new Error(te['ImageUploadStatusType'][_0x5d84ae(0x48b)]));_0x10ea3a=_0x2beaeb['FileId'];}catch{return this[_0x5d84ae(0x423)](),Promise[_0x5d84ae(0x230)](new Error(te[_0x5d84ae(0x2f9)][_0x5d84ae(0x48b)]));}return new Promise((_0x2f224f,_0x277587)=>{const _0xdaf272=_0x5d84ae,_0x4a9443=new FileReader();_0x4a9443['readAsDataURL'](_0x1571f0),_0x4a9443[_0xdaf272(0x4e8)]=_0x10ff25=>{const _0x23df23=_0xdaf272;var _0x3818aa;const _0x184fca=(_0x3818aa=_0x10ff25[_0x23df23(0x4a6)])==null?void 0x0:_0x3818aa[_0x23df23(0x391)];if(_0x184fca==null){this[_0x23df23(0x423)](),_0x277587(new Error(te[_0x23df23(0x2f9)][_0x23df23(0x48b)]));return;}const _0x2a22fa=a[_0x23df23(0x59a)][_0x23df23(0x3bf)](0x6);_0x2f224f({'imageId':_0x2a22fa,'imageSourceType':te[_0x23df23(0x381)][_0x23df23(0x354)],'source':_0x10ea3a,'base64Cache':_0x184fca,'status':te[_0x23df23(0x2f9)]['SUCCUSS']}),this[_0x23df23(0x423)]();};});}[_0x1b4be4(0x1c0)](){const _0x1c3290=_0x1b4be4;var _0x3c64cc,_0xe87093;const _0x550860=this['_configService'][_0x1c3290(0x2c9)](eo),_0x487ed1=this['_configService'][_0x1c3290(0x2c9)](Z);return(_0xe87093=(_0x3c64cc=_0x487ed1==null?void 0x0:_0x487ed1[_0x1c3290(0x1a1)])!=null?_0x3c64cc:_0x550860)!=null?_0xe87093:to;}[_0x1b4be4(0x3ae)](){const _0x54ac0f=_0x1b4be4;var _0x3de1d4,_0x3fdfbf;const _0x234ad1=this[_0x54ac0f(0x234)][_0x54ac0f(0x2c9)](io),_0xfcedd=this[_0x54ac0f(0x234)][_0x54ac0f(0x2c9)](Z);return(_0x3fdfbf=(_0x3de1d4=_0xfcedd==null?void 0x0:_0xfcedd[_0x54ac0f(0x53f)])!=null?_0x3de1d4:_0x234ad1)!=null?_0x3fdfbf:no;}[_0x1b4be4(0x11e)](){const _0x4a8787=_0x1b4be4;var _0x51e535;const _0x4a5c60=this['_configService']['getConfig'](Z);return(_0x51e535=_0x4a5c60==null?void 0x0:_0x4a5c60['downloadEndpointUrl'])!=null?_0x51e535:location[_0x4a8787(0x4ee)];}[_0x1b4be4(0x241)](_0x6f1026,_0x21b7d4){const _0x1da437=_0x1b4be4;return _0x6f1026[_0x1da437(0x280)](_0x1da437(0x1e3),_0x21b7d4);}[_0x1b4be4(0x423)](){const _0x3c7c03=_0x1b4be4;this[_0x3c7c03(0x177)]-=0x1,this['_change$']['next'](this[_0x3c7c03(0x177)]);}},exports['ImageIoService']=Js([Ct(0x0,a[_0x1b4be4(0x5da)](z['HTTPService'])),Ct(0x1,a[_0x1b4be4(0x2ec)]),Ct(0x2,a[_0x1b4be4(0x5da)](a['IUniverInstanceService']))],exports[_0x1b4be4(0x2d2)]);var ro=Object[_0x1b4be4(0x3c9)],so=Object[_0x1b4be4(0x3c7)],oo=(_0x44f0ce,_0x496a22,_0x59179e,_0xb90135)=>{const _0x4fb52d=_0x1b4be4;for(var _0x19a819=_0xb90135>0x1?void 0x0:_0xb90135?so(_0x496a22,_0x59179e):_0x496a22,_0x102859=_0x44f0ce[_0x4fb52d(0x1d6)]-0x1,_0x3becf3;_0x102859>=0x0;_0x102859--)(_0x3becf3=_0x44f0ce[_0x102859])&&(_0x19a819=(_0xb90135?_0x3becf3(_0x496a22,_0x59179e,_0x19a819):_0x3becf3(_0x19a819))||_0x19a819);return _0xb90135&&_0x19a819&&ro(_0x496a22,_0x59179e,_0x19a819),_0x19a819;},_i=(_0x5369b3,_0x3e05a7)=>(_0x2285c1,_0x8265a1)=>_0x3e05a7(_0x2285c1,_0x8265a1,_0x5369b3);const ao=_0x1b4be4(0x44f);exports[_0x1b4be4(0x36b)]=class{constructor(_0x267962,_0x38f864){const _0x347589=_0x1b4be4;this[_0x347589(0x234)]=_0x267962,this[_0x347589(0x1f1)]=_0x38f864;}[_0x1b4be4(0x250)](){const _0x128ee9=_0x1b4be4;var _0x10aef4,_0x2d5898;const _0x3ace03=this[_0x128ee9(0x234)][_0x128ee9(0x2c9)](xt),_0x18c94e=this['_configService'][_0x128ee9(0x2c9)](Z);return(_0x2d5898=(_0x10aef4=_0x18c94e==null?void 0x0:_0x18c94e[_0x128ee9(0x33b)])!=null?_0x10aef4:_0x3ace03)!=null?_0x2d5898:ao;}async[_0x1b4be4(0x547)](_0x1cf4eb){const _0x5de7b5=_0x1b4be4,_0x19a70e=this[_0x5de7b5(0x250)]()+_0x5de7b5(0x27d);return{'list':[{'title':'People','mentions':(await this[_0x5de7b5(0x1f1)]['get'](_0x19a70e,{'params':{'objectID':_0x1cf4eb['unitId'],'unitID':_0x1cf4eb['unitId']}}))[_0x5de7b5(0x1a7)][_0x5de7b5(0x502)][_0x5de7b5(0x342)](_0x2c28eb=>({'objectId':_0x2c28eb['id'],'name':_0x2c28eb[_0x5de7b5(0x26d)][_0x5de7b5(0x43c)],'metadata':{'icon':_0x2c28eb['subject'][_0x5de7b5(0x1dc)]},'label':_0x2c28eb[_0x5de7b5(0x26d)][_0x5de7b5(0x43c)],'objectType':a['MentionType']['PERSON']})),'metadata':{},'type':a[_0x5de7b5(0x285)][_0x5de7b5(0x333)]}]};}},exports[_0x1b4be4(0x36b)]=oo([_i(0x0,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x2ec)])),_i(0x1,a[_0x1b4be4(0x5da)](z['HTTPService']))],exports[_0x1b4be4(0x36b)]);var co=Object[_0x1b4be4(0x3c9)],lo=Object[_0x1b4be4(0x3c7)],ho=(_0x46aae4,_0x33baa7,_0x574c2a,_0x37562c)=>{const _0x4ce5a5=_0x1b4be4;for(var _0x12fa28=_0x37562c>0x1?void 0x0:_0x37562c?lo(_0x33baa7,_0x574c2a):_0x33baa7,_0x3a72d8=_0x46aae4[_0x4ce5a5(0x1d6)]-0x1,_0x13a3e3;_0x3a72d8>=0x0;_0x3a72d8--)(_0x13a3e3=_0x46aae4[_0x3a72d8])&&(_0x12fa28=(_0x37562c?_0x13a3e3(_0x33baa7,_0x574c2a,_0x12fa28):_0x13a3e3(_0x12fa28))||_0x12fa28);return _0x37562c&&_0x12fa28&&co(_0x33baa7,_0x574c2a,_0x12fa28),_0x12fa28;},Ae=(_0x121338,_0x114eee)=>(_0x89ec0a,_0x313ef1)=>_0x114eee(_0x89ec0a,_0x313ef1,_0x121338);let st=class extends a['RxDisposable']{constructor(_0x32100a,_0x12e9e3,_0x13b494,_0x50871b,_0x4a46c6){const _0x308a3f=_0x1b4be4;super(),this[_0x308a3f(0x232)]=_0x32100a,this[_0x308a3f(0x471)]=_0x12e9e3,this[_0x308a3f(0x4c5)]=_0x13b494,this[_0x308a3f(0x3eb)]=_0x50871b,this[_0x308a3f(0x131)]=_0x4a46c6,this['_initUnitPermissionChange'](),this[_0x308a3f(0x19d)]();}[_0x1b4be4(0x19d)](){const _0x4174c0=_0x1b4be4,_0x2166a5=async _0x2da91e=>{const _0x4144d3=_0x446a;(await this[_0x4144d3(0x3eb)]['requireSession'](_0x2da91e))[_0x4144d3(0x35f)][_0x4144d3(0x33d)](V[_0x4144d3(0x316)](_0x114348=>_0x114348[_0x4144d3(0x54f)]===m[_0x4144d3(0x289)][_0x4144d3(0x37e)]),V['takeUntil'](this[_0x4144d3(0x372)]))[_0x4144d3(0x559)](_0x3c70b7=>{const _0xfb5c1e=_0x4144d3,_0x36050e=_0x3c70b7,{reason:_0x152d69}=_0x36050e[_0xfb5c1e(0x464)];this['_injector']['get'](ee[_0xfb5c1e(0x182)])[_0xfb5c1e(0x53e)]({'type':Ie[_0xfb5c1e(0x2a8)]['Error'],'content':this[_0xfb5c1e(0x131)]['t'](_0xfb5c1e(0x193))+'('+_0x152d69+')'}),this[_0xfb5c1e(0x4c5)][_0xfb5c1e(0x4dd)](new k[(_0xfb5c1e(0x550))](_0x2da91e)['id'],!0x1),this[_0xfb5c1e(0x3eb)][_0xfb5c1e(0x3ea)](_0x2da91e);});};A[_0x4174c0(0x351)](this[_0x4174c0(0x471)][_0x4174c0(0x4e5)](a[_0x4174c0(0x577)][_0x4174c0(0x5b1)]),this[_0x4174c0(0x471)][_0x4174c0(0x4e5)](a[_0x4174c0(0x577)][_0x4174c0(0x435)]))[_0x4174c0(0x33d)](V[_0x4174c0(0x342)](_0x451eea=>_0x451eea[_0x4174c0(0x133)]()),V[_0x4174c0(0x316)](_0xa96200=>!a[_0x4174c0(0x3b9)](_0xa96200)),V[_0x4174c0(0x273)](this[_0x4174c0(0x372)]))[_0x4174c0(0x559)](_0x3f9bcf=>{_0x2166a5(_0x3f9bcf);});}[_0x1b4be4(0x1e6)](){const _0x12c9b2=_0x1b4be4,_0xaa3679=async _0x63780a=>{const _0x32dd06=_0x446a;(await this[_0x32dd06(0x3eb)][_0x32dd06(0x525)](_0x63780a))[_0x32dd06(0x35f)][_0x32dd06(0x33d)](V[_0x32dd06(0x316)](_0x2e7f69=>_0x2e7f69['eventID']===m[_0x32dd06(0x289)][_0x32dd06(0x4de)]),V['takeUntil'](this['dispose$']))[_0x32dd06(0x559)](_0x636d01=>{const _0x1ba437=_0x32dd06,_0xc62f5d=_0x636d01,{objectId:_0x5c8c71}=_0xc62f5d[_0x1ba437(0x464)],_0x1f5cf9=this[_0x1ba437(0x232)][_0x1ba437(0x35b)](Re[_0x1ba437(0x237)]);_0x5c8c71===_0x63780a?_0x1f5cf9[_0x1ba437(0x2f2)](_0x63780a):_0x1f5cf9[_0x1ba437(0x5ec)](_0x63780a,_0x5c8c71);});};A['merge'](this[_0x12c9b2(0x471)]['getTypeOfUnitAdded$'](a[_0x12c9b2(0x577)][_0x12c9b2(0x5b1)]),this['_univerInstanceService'][_0x12c9b2(0x4e5)](a[_0x12c9b2(0x577)][_0x12c9b2(0x435)]))[_0x12c9b2(0x33d)](V[_0x12c9b2(0x342)](_0x3c65d6=>_0x3c65d6[_0x12c9b2(0x133)]()),V[_0x12c9b2(0x316)](_0x5308e6=>!a[_0x12c9b2(0x3b9)](_0x5308e6)),V[_0x12c9b2(0x273)](this[_0x12c9b2(0x372)]))['subscribe'](_0x3faa8b=>{_0xaa3679(_0x3faa8b);});}};st=ho([Ae(0x0,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x3a0)])),Ae(0x1,a['IUniverInstanceService']),Ae(0x2,a[_0x1b4be4(0x56b)]),Ae(0x3,a['Inject'](exports[_0x1b4be4(0x4bb)])),Ae(0x4,a[_0x1b4be4(0x5da)](a[_0x1b4be4(0x138)]))],st);var _o=Object[_0x1b4be4(0x3c9)],uo=Object['getOwnPropertyDescriptor'],fo=(_0x576d55,_0x4b5e78,_0x13a4d2,_0x114c3e)=>{const _0x5cd3ea=_0x1b4be4;for(var _0x1580c4=_0x114c3e>0x1?void 0x0:_0x114c3e?uo(_0x4b5e78,_0x13a4d2):_0x4b5e78,_0x293685=_0x576d55[_0x5cd3ea(0x1d6)]-0x1,_0x56d9ba;_0x293685>=0x0;_0x293685--)(_0x56d9ba=_0x576d55[_0x293685])&&(_0x1580c4=(_0x114c3e?_0x56d9ba(_0x4b5e78,_0x13a4d2,_0x1580c4):_0x56d9ba(_0x1580c4))||_0x1580c4);return _0x114c3e&&_0x1580c4&&_o(_0x4b5e78,_0x13a4d2,_0x1580c4),_0x1580c4;},ui=(_0x52e838,_0x1088ae)=>(_0x31ac98,_0x3b9ffb)=>_0x1088ae(_0x31ac98,_0x3b9ffb,_0x52e838);exports[_0x1b4be4(0x47e)]=class{constructor(_0xe4c6fc,_0x192006){const _0x55caff=_0x1b4be4;this[_0x55caff(0x234)]=_0xe4c6fc,this[_0x55caff(0x515)]=_0x192006;}async[_0x1b4be4(0x3cb)](_0x20006c,_0x418589){const _0x3591a6=_0x1b4be4;var _0x1506b7;const {unitID:_0x318754,type:_0x37af4e,revision:_0x1cabea=0x0}=_0x418589,_0x538d42=this[_0x3591a6(0x57c)]()+'/'+_0x37af4e+_0x3591a6(0x235)+_0x318754+_0x3591a6(0x1cc)+_0x1cabea,_0x20b519=(await this[_0x3591a6(0x515)][_0x3591a6(0x35b)](_0x538d42))[_0x3591a6(0x1a7)],_0x1fd5c2=(_0x1506b7=_0x20b519['snapshot'])==null?void 0x0:_0x1506b7[_0x3591a6(0x25f)];if(_0x1fd5c2){const _0x557671=_0x1fd5c2==null?void 0x0:_0x1fd5c2['originalMeta'],_0x3a1f1b=m[_0x3591a6(0x4cb)][_0x3591a6(0x1e5)](m['b64DecodeUnicode'](_0x557671));_0x1fd5c2[_0x3591a6(0x4ef)]=_0x3a1f1b,Object['entries'](_0x1fd5c2['sheets'])['forEach'](([,_0x5cb40f])=>{const _0x1e10e3=_0x3591a6,_0x468291=_0x5cb40f[_0x1e10e3(0x4ef)],_0x1a6246=m[_0x1e10e3(0x4cb)][_0x1e10e3(0x1e5)](m[_0x1e10e3(0x367)](_0x468291));_0x5cb40f[_0x1e10e3(0x4ef)]=_0x1a6246;});}return _0x20b519;}async[_0x1b4be4(0x3bd)](_0x1a951e,_0x37b49a){const _0x2baf17=_0x1b4be4,{unitID:_0x456449,type:_0xe8cda2,blockID:_0xe4bf9d}=_0x37b49a,_0x52e372=this[_0x2baf17(0x1ad)]()+'/'+_0xe8cda2+'/unit/'+_0x456449+_0x2baf17(0x531)+_0xe4bf9d;return(await this[_0x2baf17(0x515)][_0x2baf17(0x35b)](_0x52e372))['body'];}async['getDeserializedSheetBlock'](_0x5b0b68,_0x6bdee5){const _0x4aa182=_0x1b4be4,{unitID:_0x2d5463,type:_0x35fe05,blockID:_0x4cd2f2}=_0x6bdee5,_0x29b8cc=this['_getAPIPrefix']()+'/block/'+_0x35fe05+'/unit/'+_0x2d5463+_0x4aa182(0x531)+_0x4cd2f2;return(await this[_0x4aa182(0x515)][_0x4aa182(0x35b)](_0x29b8cc))['body'];}async[_0x1b4be4(0x476)](_0x352132,_0x585364){const _0x5ad2ca=_0x1b4be4,{unitID:_0x274ee4,type:_0x9229f0,from:_0x56aa02,to:_0xe3f268}=_0x585364,_0x18c795=this[_0x5ad2ca(0x1ad)]()+'/'+_0x9229f0+'/unit/'+_0x274ee4+_0x5ad2ca(0x3d6)+_0x56aa02+'&to='+_0xe3f268;return(await this[_0x5ad2ca(0x515)]['get'](_0x18c795))[_0x5ad2ca(0x1a7)];}['_getSnapshotAPIPrefix'](){const _0x58d0a=_0x1b4be4;var _0x4dcb9f;return(_0x4dcb9f=this[_0x58d0a(0x234)]['getConfig'](fi))!=null?_0x4dcb9f:this[_0x58d0a(0x1ad)]();}[_0x1b4be4(0x1ad)](){const _0x28f807=_0x1b4be4;var _0x2b3f05,_0x376c65;const _0xe4d97d=this['_configService'][_0x28f807(0x2c9)](di),_0x347618=this[_0x28f807(0x234)][_0x28f807(0x2c9)](Z);return(_0x376c65=(_0x2b3f05=_0x347618==null?void 0x0:_0x347618[_0x28f807(0x263)])!=null?_0x2b3f05:_0xe4d97d)!=null?_0x376c65:Yi;}async[_0x1b4be4(0x34a)](_0x854983,_0x331a04){const _0x35fea7=_0x1b4be4,_0x228a60=_0x35fea7(0x410)+_0x331a04[_0x35fea7(0x336)]+_0x35fea7(0x235)+_0x331a04[_0x35fea7(0x4c2)]+'/resources';return(await this['_httpService'][_0x35fea7(0x35b)](_0x228a60,{'params':{'resourceId':JSON[_0x35fea7(0x397)](_0x331a04['resourceIDs'])}}))[_0x35fea7(0x1a7)];}[_0x1b4be4(0x3e4)](){const _0x2933fd=_0x1b4be4;throw new Error(_0x2933fd(0x2b9));}[_0x1b4be4(0x599)](){const _0x1d9580=_0x1b4be4;throw new Error(_0x1d9580(0x2b9));}['saveChangeset'](){const _0x3e38af=_0x1b4be4;throw new Error(_0x3e38af(0x2b9));}[_0x1b4be4(0x578)](){const _0x3d056c=_0x1b4be4;throw new Error(_0x3d056c(0x2b9));}[_0x1b4be4(0x392)](){const _0xccaa3=_0x1b4be4;throw new Error(_0xccaa3(0x2b9));}},exports['SnapshotServerOverHTTPService']=fo([ui(0x0,a[_0x1b4be4(0x2ec)]),ui(0x1,a[_0x1b4be4(0x5da)](z[_0x1b4be4(0x3aa)]))],exports[_0x1b4be4(0x47e)]);var vo=Object[_0x1b4be4(0x3c9)],po=Object[_0x1b4be4(0x3c7)],So=(_0x265fab,_0x59e966,_0x48d00d,_0x5e88fd)=>{const _0x313240=_0x1b4be4;for(var _0x364573=_0x5e88fd>0x1?void 0x0:_0x5e88fd?po(_0x59e966,_0x48d00d):_0x59e966,_0x362097=_0x265fab[_0x313240(0x1d6)]-0x1,_0x2b5af8;_0x362097>=0x0;_0x362097--)(_0x2b5af8=_0x265fab[_0x362097])&&(_0x364573=(_0x5e88fd?_0x2b5af8(_0x59e966,_0x48d00d,_0x364573):_0x2b5af8(_0x364573))||_0x364573);return _0x5e88fd&&_0x364573&&vo(_0x59e966,_0x48d00d,_0x364573),_0x364573;},Ne=(_0x5ccbff,_0x71173)=>(_0x520532,_0x6db681)=>_0x71173(_0x520532,_0x6db681,_0x5ccbff);let yt=class extends a['LocalUndoRedoService']{constructor(_0x27fbef,_0x5316da,_0x55fa6d,_0x4fb527,_0x6086b3){const _0x5e269e=_0x1b4be4;super(_0x27fbef,_0x5316da,_0x55fa6d),this[_0x5e269e(0x262)]=_0x4fb527,this[_0x5e269e(0x4fe)]=_0x6086b3;}['transformUndoRedo'](_0x330daa,_0x2816e4){const _0x1d8bb9=_0x1b4be4,_0x2c514c=this[_0x1d8bb9(0x3ed)](_0x330daa);if(_0x2c514c)try{const _0x4a685b=this[_0x1d8bb9(0x1c9)](_0x2c514c,_0x2816e4);this[_0x1d8bb9(0x23a)](_0x330daa,_0x4a685b);}catch(_0x5c87ca){this[_0x1d8bb9(0x4fe)]['error'](_0x1d8bb9(0x495),_0x5c87ca),this['_clearUndo'](_0x330daa);}const _0x4057e9=this[_0x1d8bb9(0x52f)](_0x330daa);if(_0x4057e9)try{const _0x4c9841=this[_0x1d8bb9(0x1c9)](_0x4057e9,_0x2816e4);this[_0x1d8bb9(0x5b3)](_0x330daa,_0x4c9841);}catch(_0x5c5c2e){this['_logService'][_0x1d8bb9(0x218)](_0x5c5c2e),this[_0x1d8bb9(0x413)](_0x330daa);}}[_0x1b4be4(0x4c4)](_0x1fa3de){const _0x558156=_0x1b4be4,_0x3e0fd5=this[_0x558156(0x3ed)](_0x1fa3de);_0x3e0fd5&&(_0x3e0fd5[_0x558156(0x1d6)]=0x0,this[_0x558156(0x2bd)]());}['_clearRedo'](_0xc4f582){const _0x5ac203=_0x1b4be4,_0x1b5f78=this['_getRedoStack'](_0xc4f582);_0x1b5f78&&(_0x1b5f78[_0x5ac203(0x1d6)]=0x0,this[_0x5ac203(0x2bd)]());}[_0x1b4be4(0x23a)](_0x3dd97f,_0x35071f){const _0x56c8cc=_0x1b4be4;this['_undoStacks'][_0x56c8cc(0x5c1)](_0x3dd97f,_0x35071f),this[_0x56c8cc(0x2bd)]();}[_0x1b4be4(0x5b3)](_0x18d6aa,_0x1bddb5){const _0x27ceef=_0x1b4be4;this['_redoStacks'][_0x27ceef(0x5c1)](_0x18d6aa,_0x1bddb5),this[_0x27ceef(0x2bd)]();}['_transformStack'](_0x154d56,_0x644882){const _0x405059=_0x1b4be4,_0x33cb8a=[];let _0x1d21ce=_0x644882,_0x56d520=_0x644882;for(let _0x49d4c1=_0x154d56[_0x405059(0x1d6)]-0x1;_0x49d4c1>=0x0;_0x49d4c1--){const {unitID:_0x541696,undoMutations:_0x5b5c7c,redoMutations:_0x401ad5}=_0x154d56[_0x49d4c1],_0x1f9a88=this[_0x405059(0x262)][_0x405059(0x409)](_0x1d21ce,_0x5b5c7c),_0x35ba8f=this['_transformService'][_0x405059(0x409)](_0x56d520,_0x401ad5);if(m[_0x405059(0x417)](_0x1f9a88)||m[_0x405059(0x417)](_0x35ba8f)){this[_0x405059(0x4fe)][_0x405059(0x218)](_0x405059(0x495),'transformStack\x20failed!',_0x1f9a88,_0x35ba8f);break;}_0x1d21ce=_0x1f9a88[_0x405059(0x4ad)],_0x56d520=_0x35ba8f[_0x405059(0x4ad)],_0x33cb8a['push']({'unitID':_0x541696,'undoMutations':_0x1f9a88[_0x405059(0x54e)],'redoMutations':_0x35ba8f[_0x405059(0x54e)]});}return _0x33cb8a[_0x405059(0x345)]();}};yt=So([Ne(0x0,a[_0x1b4be4(0x5e4)]),Ne(0x1,a[_0x1b4be4(0x58f)]),Ne(0x2,a[_0x1b4be4(0x118)]),Ne(0x3,m[_0x1b4be4(0x1e1)]),Ne(0x4,a['ILogService'])],yt);class Bi extends a[_0x1b4be4(0x472)]{constructor(){const _0x4a1519=_0x1b4be4;super(),I(this,_0x4a1519(0x180)),this[_0x4a1519(0x180)]=A[_0x4a1519(0x56e)](window,'popstate')[_0x4a1519(0x33d)](A['takeUntil'](this[_0x4a1519(0x372)]),A[_0x4a1519(0x2fd)](0x1),A[_0x4a1519(0x362)](void 0x0));}[_0x1b4be4(0x236)](_0x14fa61,_0x4240dd,_0x7fbe80=!0x1){const _0x220857=_0x1b4be4,_0x5b6ac4=new URL(window[_0x220857(0x16c)][_0x220857(0x325)]);_0x5b6ac4[_0x220857(0x252)][_0x220857(0x5c1)](_0x14fa61,_0x4240dd),_0x7fbe80?window[_0x220857(0x450)]['replaceState']('','',_0x5b6ac4[_0x220857(0x1d1)]()):window['history'][_0x220857(0x3cd)]('','',_0x5b6ac4[_0x220857(0x1d1)]());}[_0x1b4be4(0x4d8)](_0x439f25,_0x23d421=!0x1){const _0x29ea38=_0x1b4be4,_0x25a509=new URL(window['location'][_0x29ea38(0x325)]);_0x25a509[_0x29ea38(0x252)][_0x29ea38(0x192)](_0x439f25),_0x23d421?window[_0x29ea38(0x450)][_0x29ea38(0x366)]('','',_0x25a509[_0x29ea38(0x1d1)]()):window[_0x29ea38(0x450)]['pushState']('','',_0x25a509[_0x29ea38(0x1d1)]());}['getParam'](_0x4a1cdb){const _0x534564=_0x1b4be4;var _0x30b6f7;return(_0x30b6f7=new URL(window[_0x534564(0x16c)]['href'])['searchParams'][_0x534564(0x35b)](_0x4a1cdb))!=null?_0x30b6f7:void 0x0;}}var ki=Object[_0x1b4be4(0x3c9)],mo=Object[_0x1b4be4(0x3c7)],go=(_0x487fa2,_0x161301,_0x486968)=>_0x161301 in _0x487fa2?ki(_0x487fa2,_0x161301,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x486968}):_0x487fa2[_0x161301]=_0x486968,Io=(_0x353502,_0xec2cc8,_0x58dd78,_0xc7eed5)=>{const _0x588b0b=_0x1b4be4;for(var _0x28d726=_0xc7eed5>0x1?void 0x0:_0xc7eed5?mo(_0xec2cc8,_0x58dd78):_0xec2cc8,_0x136afd=_0x353502[_0x588b0b(0x1d6)]-0x1,_0x34bb2e;_0x136afd>=0x0;_0x136afd--)(_0x34bb2e=_0x353502[_0x136afd])&&(_0x28d726=(_0xc7eed5?_0x34bb2e(_0xec2cc8,_0x58dd78,_0x28d726):_0x34bb2e(_0x28d726))||_0x28d726);return _0xc7eed5&&_0x28d726&&ki(_0xec2cc8,_0x58dd78,_0x28d726),_0x28d726;},He=(_0x315c54,_0x271cd5)=>(_0x586d6d,_0x232b83)=>_0x271cd5(_0x586d6d,_0x232b83,_0x315c54),Co=(_0x4dba3b,_0x25ff01,_0x357226)=>go(_0x4dba3b,_0x25ff01+'',_0x357226);const Eo=_0x1b4be4(0x4e3);exports[_0x1b4be4(0x595)]=class extends a[_0x1b4be4(0x4f0)]{constructor(_0x57c257=rn,_0x4169d6,_0x1e426f,_0x5ba329,_0x4220cf){const _0x3c1868=_0x1b4be4;super(),this['_config']=_0x57c257,this['_logService']=_0x4169d6,this[_0x3c1868(0x255)]=_0x1e426f,this[_0x3c1868(0x232)]=_0x5ba329,this['_configService']=_0x4220cf;const {..._0x81e17c}=this['_config'];this[_0x3c1868(0x234)][_0x3c1868(0x5bf)](Z,_0x81e17c);}['onStarting'](){const _0x71f242=_0x1b4be4;this['_registerDependencies'](),this[_0x71f242(0x11a)]();}[_0x1b4be4(0x4dc)](){const _0x5eb5d2=_0x1b4be4;a[_0x5eb5d2(0x361)](this[_0x5eb5d2(0x232)],[[it],[tt]]);}[_0x1b4be4(0x55b)](){const _0x3376f9=_0x1b4be4;this[_0x3376f9(0x41d)]();}['_registerDependencies'](){const _0x570524=_0x1b4be4;var _0x32de1e,_0x96af0f,_0x265b3b,_0x2aedac;this[_0x570524(0x232)]['has'](a['IUndoRedoService'])&&this[_0x570524(0x4fe)][_0x570524(0x218)](_0x570524(0x128),_0x570524(0x216));const _0x1a773=[[a['IUndoRedoService'],{'useClass':yt}],[exports[_0x570524(0x4bb)]],[At],[Lt,{'useClass':Bi}],[exports[_0x570524(0x41e)]],[exports[_0x570524(0x3ec)]],[z[_0x570524(0x30a)]],[Ze],[et],[Je],[Qe],[Ut],[nt],[rt],[wt],[st],[Pt,{'useClass':(_0x96af0f=(_0x32de1e=this['_config'])==null?void 0x0:_0x32de1e[_0x570524(0x4b4)])!=null?_0x96af0f:exports[_0x570524(0x374)]}],[m[_0x570524(0x4e2)],{'useClass':exports[_0x570524(0x47e)]}],[a[_0x570524(0x4fd)],{'useClass':exports[_0x570524(0x3d7)]}],[te['IImageIoService'],{'useClass':exports['ImageIoService']}],[a[_0x570524(0x55d)],{'useClass':exports['MentionIoHttpService']}],[exports[_0x570524(0x3d4)]],[exports['DataLoaderController']],[exports[_0x570524(0x589)]],[it],[Oe],[tt]];(_0x265b3b=this[_0x570524(0x414)])!=null&&_0x265b3b[_0x570524(0x579)]&&_0x1a773[_0x570524(0x284)]([ot,{'useClass':xn}]),a['registerDependencies'](this[_0x570524(0x232)],a[_0x570524(0x290)](_0x1a773,(_0x2aedac=this[_0x570524(0x414)])==null?void 0x0:_0x2aedac[_0x570524(0x50d)]));}[_0x1b4be4(0x41d)](){const _0xa0689a=_0x1b4be4;this[_0xa0689a(0x424)](this[_0xa0689a(0x255)][_0xa0689a(0x4d3)](a[_0xa0689a(0x577)][_0xa0689a(0x435)],[Tt])),this['disposeWithMe'](this[_0xa0689a(0x255)][_0xa0689a(0x4d3)](a[_0xa0689a(0x577)][_0xa0689a(0x5b1)],[Rt]));}[_0x1b4be4(0x11a)](){const _0x52f0c2=_0x1b4be4;var _0x13b597,_0x15edd5;this['_injector'][_0x52f0c2(0x35b)](z['HTTPService'])[_0x52f0c2(0x188)]({'priority':0x14,'interceptor':z[_0x52f0c2(0x2cf)]({'maxParallel':0x6})}),(_0x13b597=this[_0x52f0c2(0x414)])!=null&&_0x13b597[_0x52f0c2(0x2a3)]||this['_injector'][_0x52f0c2(0x35b)](exports[_0x52f0c2(0x3ec)])[_0x52f0c2(0x3db)](),(_0x15edd5=this[_0x52f0c2(0x414)])!=null&&_0x15edd5[_0x52f0c2(0x572)]&&a[_0x52f0c2(0x361)](this['_injector'],[[nt]]),a['touchDependencies'](this[_0x52f0c2(0x232)],[[rt],[Oe],[exports[_0x52f0c2(0x3ff)]],[exports['CollaborationController']],[exports[_0x52f0c2(0x589)]],[st]]);}},Co(exports[_0x1b4be4(0x595)],'pluginName',Eo),exports[_0x1b4be4(0x595)]=Io([a['DependentOn'](m['UniverCollaborationPlugin'],z['UniverNetworkPlugin']),He(0x1,a[_0x1b4be4(0x509)]),He(0x2,q[_0x1b4be4(0x2d4)]),He(0x3,a['Inject'](a[_0x1b4be4(0x3a0)])),He(0x4,a[_0x1b4be4(0x2ec)])],exports['UniverCollaborationClientPlugin']),exports[_0x1b4be4(0x1d8)]=xt,exports[_0x1b4be4(0x5d7)]=Z,exports[_0x1b4be4(0x560)]=Ii,exports[_0x1b4be4(0x2d0)]=vi,exports['CollaborationStatus']=K,exports[_0x1b4be4(0x18b)]=xi,exports['CommentService']=wt,exports['HEARTBEAT_INTERVAL_KEY']=pi,exports[_0x1b4be4(0x4d7)]=Ot,exports['ICollaborationSocketService']=Pt,exports[_0x1b4be4(0x382)]=Lt,exports[_0x1b4be4(0x144)]=gi,exports[_0x1b4be4(0x17c)]=Ci,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=mi,exports[_0x1b4be4(0x448)]=qi,exports['SNAPSHOT_SERVER_URL_KEY']=di,exports[_0x1b4be4(0x1c6)]=fi,exports[_0x1b4be4(0x52e)]=ne,exports[_0x1b4be4(0x4f9)]=Ui,exports[_0x1b4be4(0x2b4)]=Bi,exports['deserializeToCombResponse']=Ti,exports['serializeCombRequest']=Ri;