@univerjs-pro/collaboration-client-ui 0.10.4-nightly.202508220605 → 0.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +16 -16
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x27be(_0x38e7fa,_0x33f35c){const _0x34496a=_0x3449();return _0x27be=function(_0x27bec9,_0x778a36){_0x27bec9=_0x27bec9-0xef;let _0x4238ae=_0x34496a[_0x27bec9];return _0x4238ae;},_0x27be(_0x38e7fa,_0x33f35c);}function _0x3449(){const _0x3f7096=['bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_beforeCloseService','ThemeService','green.600','none','LICENSE_EXPORT_SIZE_EXCEEDED','drawWith','CollaborationSocketService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','SetWorksheetActivateCommand','DeleteRangeMoveUpCommandId','_collaborationController','getSheetBySheetId','key','getUnitStatus$','INTERNAL_ERROR','CollaborationController','unshift','UNAUTHENTICATED','collaboration-client.offline-data-not-saved','evenodd','ticket','_hideTimer','_unitStatus','toRgbString','origin','ILogService','UniverNetwork','currentSkeleton$','_removeClearOtherTimer','_docSyncEditingCollabCursorService','includes','setParam','_getSheetObject','makeDirty','docStateChange$','getSheetObject','_disabled','SNAPSHOT_INVALID_SNAPSHOT','Warning','MOBILE_VERIFY_CODE_MISMATCH','delete','url(#on-line-icon_clip0_910_349)','addHandlerCallback','handleIRemoveRow','url(#$1','xlink:href','_send','React','_roomMembers$','startRow','registerRenderModule','@univerjs/network','_init','triggerDblclick','collaboration-client-ui.config','_shapes','className','_textBubble','SNAPSHOT_HAS_BEEN_REMOVED','prototype','DocStateChangeManagerService','_name','IImageIoService','getOwnPropertyDescriptor','getUnitId','disableLocalCache','FETCH_MISS','endColumn','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','NodePositionConvertToRectRange','getUniverSheetInstance','getRenderById','get','m1Prime','clearInterval','_transformPreviousActiveRange','transformStateCache','transformSelections','USERS_LEAVE','size','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','VIEW_MAIN','SOCKET_FAILED_RETRY','CollaborationEvent','doc.mutation.rich-text-editing','fromEvent','currentColor','CommandType','svg','LOCAL_CACHE_INTERVAL','IRenderManagerService','clearTimeout','dispose$','pipe','getColorFromTheme','_httpService','handleIRemoveCol','IMessageService','_revisionService','_startDocCollabCursor','parse','from','@univerjs/drawing','getMember','@univerjs/rpc','LOGIN_FAILED','transform','tag','max','_session','UniverCollaborationClientUIPlugin','4dVeQXz','toStringTag','getRangePointData','_themeService','getCollabEntity$','switchMap','RxDisposable','LICENSE_MAX_UNITS_EXCEEDED','subscribeEvent','extend','_imageIoService','unsubscribe','current','@univerjs/docs','handleInsertRow','Unknown\x20user','_docStateChangeManagerService','href','executeCommand','sheetID','getFocusedUnit','handleDeleteRangeMoveLeft','_initStatusComponent','_eventUnsubscribe','_refRangeService','_updateLocalCursor','0\x200\x2017\x2016','toDisposable','moveTo','YUUMI_ASYNCIO_CANCELLED','UniverIcon','_entities','unit','registerComponent','labelPosition','RevisionService','assignAColorForMemberID','APPLY_REJECT','ISnapshotServerService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','attrs','RECT','@univerjs/core','_dataLoaderService','idSuffix','length','UniverEngineRender','debounce','getSheetId','WebURLService','Disposable','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','onPointerEnter$','redoState','_getSaveTimeout','INVITE_CODE_ALREADY_BOUND','CLOSE_ROOM','ISocketService','Shape','dispose','getCollabCursors$','onLocalMutation','collabStatus.conflict','updateOfflineData','YUUMI_URL_COL_OUT_OF_RANGE','jsx','isActive','CONFLICT','eventID','IDocClipboardService','CollaborationSessionService','_collabCursorController','Injector','split','mask','next','handleMoveRange','replace','call','addObjects','[CollaborationDataLoaderController]','shareReplay','UniverProCollaboration','_messageService','IBeforeCloseService','debounceTime','DeleteRangeMoveLeftCommandId','_collabSessionService','engine','contains','univer-flex\x20univer-items-center','_scheduleHeartbeat','Rect','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','name','LOCAL_CACHE_INTERVAL_KEY','addClipboardHook','MemberService','HEADER_MENU','loadUnit','_lastPointer','SetSelectionsOperation','forEach','activeSheet$','isTransformMutationsWithChangesetSuccess','fillText','merge','UniverUi','_drawRectRange','LICENSE_IMPORT_SIZE_EXCEEDED','_setupBeforeClosingHandler','displayName','1em','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','Inject','_commandService','_configService','InsertRowCommandId','translate(.97)','type','getTypeOfUnitDisposed$','DocCollaborationEntity','UNIVER_DOC','values','_handleHover','IRemoteInstanceService','addObject','disposeWithMe','Subject','then','save','_docClipboardService','BuiltInUIPart','invokeId','1528638EzIcMv','Workbook','editingUnit','handleInsertRangeMoveRight','_toggleOnline','USER_NOT_INVITED_CODE','UPDATE_CURSOR','push','LocaleService','urlChange$','_handleJoinEvent','toString','min','CONNECTOR_DATA_TOO_LARGE','init','enableLocalCache','collabStatus.offline','defineProperty','Tooltip','blue.400','SUBMIT_CHANGESET_TIMEOUT','UniverEngineFormula','lineTo','transformIMECache','_saveTaskMap','propertyIsEnumerable','univer-mr-2\x20univer-flex\x20univer-text-xl','rxjs/operators','SetTextSelectionsOperation','CHANGESET_REVISION_CONFILICT','UniverDocsUi','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','YUUMI_NO_CUBOID_FOR_QUESTION','transformByState','YUUMI_CONNECTOR_URL_NOT_FOUND','unitID','transformMutation','MessageType','ACTIVE_UNIT_EVENT_CHANNEL','Plugin','EMAIL_HAS_BEEN_BOUND','PERMISSION_DENIED','_cursor','setShapeProps','INotificationService','IURLService','collabCursorState$','params','complete','_handleEvent','text','exhaustSavingTask','getColor','_docTransformSelectionsService','getValue','getCurrentSelections','black','onPointerLeave$','getParam','ICommandService','textRanges','489483kyBnhD','font','react','YUUMI_RATE_OVER_LIMIT','history','setAlpha','_getScale','NO_OTHER_CLIENTS_EDITING','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_colorIndex','fillStyle','...','with','[RemoteUniscriptService]:\x20no\x20focused\x20unit','Error','syncEditingCollabCursor','SHEET_VIEWPORT_KEY','getLocalCacheKey','LICENSE_DISTRO_REJECTED','assign','_backgroundColor','hovered','WebSocketService','setStateCache','UniverCollaborationClientPlugin','path','UniverSheets','object','collabStatus.fetchMiss','_removeCollabCursors','setInterval','RemoveRowCommandId','Failed','_uiPartsService','_syncEditingCollabCursorService','_docSkeletonManagerService','_labelPosition','SessionStatus','_entityInit$','wsSessionTicketUrl','concat','getDocRanges','_color','INVALID_ARGUMENT','useCallback','ranges','TOO_MANY_REQUESTS','isArray','EMAIL_VERIFY_CODE_MISMATCH','getViewport','4056600ImFtwT','PY_RUNTIME_SCRIPT_ERROR','getActiveSheet','show','entries','YUUMI_ALL_TABLES_IS_INVALID','OFFLINE','_hover','isTransformMutationFailure','addEventListener','YUUMI_SUBSCRIPTION_NOT_FOUND','set','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_colorAssignService','COMPLETION_FINISHED','http://www.w3.org/2000/svg','mergeOverrideWithDependencies','CollaborationDataLoaderController','hide','_draw','beginPath','_notificationService','INVITE_CODE_REQUIRED','whenReady','_collabCursorState$','jsxs','ONLINE','div','symbol','bottom','getItem','map','ENSURE_SNAPSHOT_EXECUTION','BrowserCollaborationSocketService','red.300','replaceState','_config','_memberService','saveTaskMap','colorChannel1','_status$','_cursorShapes','_instanceService','_render','setUndoRedoMutationParamsCache','_transformUndoRedoStack','@univerjs/design','subunit','string','_onCursorDelete','MOBILE_HAS_BEEN_BOUND','_updateSubUnitFromURLParams','onRendered','flatMap','_hovered','requireSession','_ensureSubject','_getMergeRange','DocIMEInputManagerService','purple.300','_id','_initEntityListener','collab-text-range-','getConfig','fromEventSubject','cursorInfo','_logService','SYNCED','PENDING','_clearOtherTimers','90246FPAxNJ','onStarting','transformMutationsWithChangeset','_updateCollabCursors','generateRandomId','YUUMI_UNABLE_LOAD_URL','_heartbeatTimer','fillRule','entityInit$','combineLatest','unitId','data','_getSessionTicket','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','startColumn','_getAnchorBounding','_startSheetCollabCursor','WebBrowserSingleActiveUnitService','getAncestorScale','imageSourceType','closePath','_unitOnClients','mutations','getTypeOfUnitAdded$','MoveRangeCommandId','deserializeRangeWithSheet','_collaborationUIEventService','registerRefRange','jiqing.500','m2Prime','OffLineIcon','sessionStatus$','top','_localStorageService','_handleHeartbeatEvent','_updateURLWithCurrentState','HTTPService','TEXT_RANGE_LAYER_INDEX','_scheduleClearOtherTimer','_anchor','round','_initStatusListener','DesktopCollaborationStatusDisplayController','getCoordByCell','_doCreateSocket','setActiveRange','COLORS','defIds','newValue','on-line-icon_clip0_910_349','_assignedColors','roomMembers$','url(#off-line-icon_clip0_910_343)','_drawAnchor','registerDependencies','findNodePositionByCharIndex','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','exports','arc','collaboration.closeRoom','replaceDocRanges','_initDependencies','3117245OmkkfU','on-line-icon','color','restore','UniverInstanceType','add','indexOf','UNDEFINED','row','getOwnPropertySymbols','_selfUnitIDs','4378896yUnxJR','_range','useDependency','@univerjs/engine-render','operators','_initResize','backgroundColor','throttleTime','getCurrentUnitForType','_cursors','_cachedData','collab-rect-range-','_urlService','_saveCache','_onRefRangeChange','getMergeData','setConfig','subscribe','onTransformChange$','Vector2','setItem','range','RegularPolygon','_sheetSkeletonManagerService','createInstance','has','_docTransformStateCacheService','ALREADY_EXISTS','off-line-icon_clip0_910_343','selection','width','yellow.400','getOffsetConfig','_renderManagerService','RemoteUniscriptService','AWAITING_WITH_PENDING','_scene','children','_createSocketURL','EffectRefRangId','DOC_RANGE_TYPE','UniverDesign','CollaborationStatus','white','transformRemoteChangeset','override','#FFF','removeParam','_scheduleSaving','pushState','serializeRangeWithSheet','getCurrentRevOfUnit','cursorInfo$','SheetSkeletonManagerService','_refreshCollabCursors','NOT_FOUND','resize','rxjs','DocSelectionManagerService','stringify','filter','sessionTicket','UNIVER_SHEET','UNRECOGNIZED','getCurrent','runId','Module','_univerInstanceService','_docSkeleton','INVALID_INVITE_CODE','@univerjs/sheets-ui','@univerjs/sheets','searchParams','_document','InsertColCommandId','getMemberID','RichTextEditingMutation','SetDocZoomRatioOperation','collab-client.tooltip.reconnect','ColorKit','ITransformService','_toggleOffline','_localCacheService','forwardRef','actions','code','UniverProCollaborationClientUi','@univerjs/ui','apply','getStateCache','use','location','CollaborationUIEventId','undoState','APPLY_REVISION_CONFILICT','substring','onMouseMove','function','startsWith','NodePositionConvertToCursor','error','runRefRangeMutations','onCommandExecuted','_anchorDot','YUUMI_AI_RUN_FAILED','clsx','event$','getActiveRange','OTHER_CLIENTS_EDITING','post','_registerDependencies','APPLY_NON_SEQUENTIAL_REVISION','takeUntil','_localeService','BehaviorSubject','_context','_initCommandExecutedListener','getSkeleton','ILocalCacheService','_transformHistoryAndStateStack','endRow','getVpScrollXYInfoByPosToVp','_cursorInfo$','M0\x200H16V16H0z','IUniverInstanceService','_onCursorUpdate','session.will-retry','debug','currentTheme$','body','_docTransformIMECacheService','getUnhiddenWorksheets','asObservable','NOT_COLLAB','310051pIUjRN','random','_initEvent','deepClone','send','fill','_transformService','DEFAULT_WS_SESSION_TICKET_URL','TEXT','onPointerMove$','clipPath','_injector','some','saveOfflineData','_drawTextRange','getUndoRedoMutationParamsCache','IConfigService','createElement','createSocket','Tools','icon','@univerjs/docs-ui','UnitStatus','hasOwnProperty','_online'];_0x3449=function(){return _0x3f7096;};return _0x3449();}(function(_0x350684,_0x5989b0){const _0x87d78d=_0x27be,_0x567471=_0x350684();while(!![]){try{const _0x1c8369=parseInt(_0x87d78d(0x2ec))/0x1+parseInt(_0x87d78d(0x364))/0x2+parseInt(_0x87d78d(0x2af))/0x3*(-parseInt(_0x87d78d(0x229))/0x4)+-parseInt(_0x87d78d(0x10f))/0x5+parseInt(_0x87d78d(0x11a))/0x6+-parseInt(_0x87d78d(0x1a0))/0x7+parseInt(_0x87d78d(0x31e))/0x8;if(_0x1c8369===_0x5989b0)break;else _0x567471['push'](_0x567471['shift']());}catch(_0x577328){_0x567471['push'](_0x567471['shift']());}}}(_0x3449,0x91121),function(_0x5c7b0d,_0x4c4f6f){const _0x1af85c=_0x27be;typeof exports==_0x1af85c(0x307)&&typeof module<'u'?_0x4c4f6f(exports,require('react/jsx-runtime'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/design'),require('react'),require('@univerjs/rpc'),require('@univerjs/sheets'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs-pro/collaboration'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x1af85c(0x17b)&&define['amd']?define([_0x1af85c(0x10a),'react/jsx-runtime','@univerjs-pro/collaboration-client',_0x1af85c(0x253),_0x1af85c(0x171),_0x1af85c(0x153),_0x1af85c(0x34c),_0x1af85c(0x2ee),_0x1af85c(0x222),_0x1af85c(0x161),_0x1af85c(0x11d),_0x1af85c(0x1ed),_0x1af85c(0x1b5),_0x1af85c(0x220),'@univerjs-pro/collaboration',_0x1af85c(0x236),'@univerjs/engine-formula',_0x1af85c(0x2ca),_0x1af85c(0x160)],_0x4c4f6f):(_0x5c7b0d=typeof globalThis<'u'?globalThis:_0x5c7b0d||self,_0x4c4f6f(_0x5c7b0d[_0x1af85c(0x170)]={},_0x5c7b0d['React'],_0x5c7b0d['UniverProCollaborationClient'],_0x5c7b0d['UniverCore'],_0x5c7b0d[_0x1af85c(0x294)],_0x5c7b0d['rxjs'],_0x5c7b0d[_0x1af85c(0x143)],_0x5c7b0d[_0x1af85c(0x1e9)],_0x5c7b0d['UniverRpc'],_0x5c7b0d[_0x1af85c(0x306)],_0x5c7b0d[_0x1af85c(0x257)],_0x5c7b0d[_0x1af85c(0x1d4)],_0x5c7b0d[_0x1af85c(0x2cd)],_0x5c7b0d['UniverDrawing'],_0x5c7b0d[_0x1af85c(0x27b)],_0x5c7b0d['UniverDocs'],_0x5c7b0d[_0x1af85c(0x2c4)],_0x5c7b0d['rxjs'][_0x1af85c(0x11e)],_0x5c7b0d['UniverSheetsUi']));}(this,function(_0x311cb7,_0x5bd372,_0x2fe882,_0x18ca73,_0x5121a3,_0x16b079,_0x578c52,_0x32b05b,_0x457000,_0x3c8e23,_0x1000a2,_0x4ed2b8,_0x41c79e,_0x2baa74,_0x518b96,_0x40419e,_0xcce0ba,_0x4dfd3a,_0x2779ee){'use strict';const _0x4a00e7=_0x27be;var _0x55e90c=Object[_0x4a00e7(0x2c0)],_0x3a318b=(_0x9c4321,_0x57a791,_0x2b4e42)=>_0x57a791 in _0x9c4321?_0x55e90c(_0x9c4321,_0x57a791,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b4e42}):_0x9c4321[_0x57a791]=_0x2b4e42,_0x41f19e=(_0x2f6dd3,_0x210baf,_0xe50501)=>_0x3a318b(_0x2f6dd3,typeof _0x210baf!=_0x4a00e7(0x33a)?_0x210baf+'':_0x210baf,_0xe50501),_0x17e143=function(){const _0x3a1cab=_0x4a00e7;return _0x17e143=Object[_0x3a1cab(0x2ff)]||function(_0x53912a){const _0x3eebad=_0x3a1cab;for(var _0xd6caa,_0x46305e=0x1,_0x210ac5=arguments[_0x3eebad(0x256)];_0x46305e<_0x210ac5;_0x46305e++){_0xd6caa=arguments[_0x46305e];for(var _0x117ebe in _0xd6caa)Object[_0x3eebad(0x1f5)][_0x3eebad(0x1b7)][_0x3eebad(0x277)](_0xd6caa,_0x117ebe)&&(_0x53912a[_0x117ebe]=_0xd6caa[_0x117ebe]);}return _0x53912a;},_0x17e143[_0x3a1cab(0x172)](this,arguments);},_0x18557d=function(_0x293d61,_0x166695){const _0x4c9bbe=_0x4a00e7;var _0x452c01={};for(var _0xf3136d in _0x293d61)Object[_0x4c9bbe(0x1f5)][_0x4c9bbe(0x1b7)]['call'](_0x293d61,_0xf3136d)&&_0x166695[_0x4c9bbe(0x115)](_0xf3136d)<0x0&&(_0x452c01[_0xf3136d]=_0x293d61[_0xf3136d]);if(_0x293d61!=null&&typeof Object[_0x4c9bbe(0x118)]==_0x4c9bbe(0x17b)){for(var _0x173946=0x0,_0xf3136d=Object[_0x4c9bbe(0x118)](_0x293d61);_0x173946<_0xf3136d['length'];_0x173946++)_0x166695['indexOf'](_0xf3136d[_0x173946])<0x0&&Object[_0x4c9bbe(0x1f5)][_0x4c9bbe(0x2c8)]['call'](_0x293d61,_0xf3136d[_0x173946])&&(_0x452c01[_0xf3136d[_0x173946]]=_0x293d61[_0xf3136d[_0x173946]]);}return _0x452c01;},_0x202182=_0x32b05b['forwardRef'](function(_0x1758dc,_0x15de48){const _0x18a71f=_0x4a00e7;var _0x2a10ee=_0x1758dc['icon'],_0x2aed2d=_0x1758dc['id'],_0x51d79a=_0x1758dc[_0x18a71f(0x1f2)],_0x161f26=_0x1758dc[_0x18a71f(0x232)],_0x593764=_0x18557d(_0x1758dc,[_0x18a71f(0x1b4),'id','className',_0x18a71f(0x232)]),_0x5f111d='univerjs-icon\x20univerjs-icon-'[_0x18a71f(0x314)](_0x2aed2d,'\x20')[_0x18a71f(0x314)](_0x51d79a||'')['trim'](),_0x16b922=_0x32b05b['useRef']('_'[_0x18a71f(0x314)](_0x3b57c6()));return _0x5808dc(_0x2a10ee,''[_0x18a71f(0x314)](_0x2aed2d),{'defIds':_0x2a10ee[_0x18a71f(0x100)],'idSuffix':_0x16b922[_0x18a71f(0x235)]},_0x17e143({'ref':_0x15de48,'className':_0x5f111d},_0x593764),_0x161f26);});function _0x5808dc(_0x342afa,_0x1b6538,_0x223966,_0x10a568,_0x4a614f){const _0x52dd10=_0x4a00e7;return _0x32b05b[_0x52dd10(0x1b1)](_0x342afa[_0x52dd10(0x225)],_0x17e143(_0x17e143({'key':_0x1b6538},_0x42a4ae(_0x342afa,_0x223966,_0x4a614f)),_0x10a568),(_0x5d2406(_0x342afa,_0x223966)[_0x52dd10(0x13f)]||[])[_0x52dd10(0x33d)](function(_0x88ea5f,_0x5ba8e6){const _0x110283=_0x52dd10;return _0x5808dc(_0x88ea5f,''[_0x110283(0x314)](_0x1b6538,'-')[_0x110283(0x314)](_0x342afa[_0x110283(0x225)],'-')[_0x110283(0x314)](_0x5ba8e6),_0x223966,void 0x0,_0x4a614f);}));}function _0x42a4ae(_0x306354,_0xadda47,_0x4e7af9){const _0x31542d=_0x4a00e7;var _0x2f9fb0=_0x17e143({},_0x306354['attrs']);_0x4e7af9!=null&&_0x4e7af9[_0x31542d(0x345)]&&_0x2f9fb0[_0x31542d(0x1a5)]===_0x31542d(0x345)&&(_0x2f9fb0[_0x31542d(0x1a5)]=_0x4e7af9[_0x31542d(0x345)]),_0x306354[_0x31542d(0x225)]===_0x31542d(0x273)&&_0x2f9fb0['id']&&(_0x2f9fb0['id']=_0x2f9fb0['id']+_0xadda47['idSuffix']),Object[_0x31542d(0x322)](_0x2f9fb0)[_0x31542d(0x28f)](function(_0x5d5e7a){const _0x428c8c=_0x31542d;var _0x191b7b=_0x5d5e7a[0x0],_0x45ad1d=_0x5d5e7a[0x1];_0x191b7b===_0x428c8c(0x273)&&typeof _0x45ad1d=='string'&&(_0x2f9fb0[_0x191b7b]=_0x45ad1d[_0x428c8c(0x276)](/url\(#(.*)\)/,'url(#$1'[_0x428c8c(0x314)](_0xadda47[_0x428c8c(0x255)],')')));});var _0x226893=_0xadda47[_0x31542d(0x100)];return!_0x226893||_0x226893[_0x31542d(0x256)]===0x0||(_0x306354[_0x31542d(0x225)]===_0x31542d(0x174)&&_0x2f9fb0[_0x31542d(0x1e7)]&&(_0x2f9fb0['xlink:href']=_0x2f9fb0['xlink:href']+_0xadda47['idSuffix']),Object[_0x31542d(0x322)](_0x2f9fb0)[_0x31542d(0x28f)](function(_0x31f36c){const _0xa8e8b5=_0x31542d;var _0x481539=_0x31f36c[0x0],_0x45e692=_0x31f36c[0x1];typeof _0x45e692=='string'&&(_0x2f9fb0[_0x481539]=_0x45e692[_0xa8e8b5(0x276)](/url\(#(.*)\)/,_0xa8e8b5(0x1e6)[_0xa8e8b5(0x314)](_0xadda47[_0xa8e8b5(0x255)],')')));})),_0x2f9fb0;}function _0x5d2406(_0x2e7d59,_0x550566){const _0x5d2dab=_0x4a00e7;var _0x26c116,_0x3019fb=_0x550566['defIds'];return!_0x3019fb||_0x3019fb[_0x5d2dab(0x256)]===0x0?_0x2e7d59:_0x2e7d59['tag']==='defs'&&(!((_0x26c116=_0x2e7d59[_0x5d2dab(0x13f)])===null||_0x26c116===void 0x0)&&_0x26c116['length'])?_0x17e143(_0x17e143({},_0x2e7d59),{'children':_0x2e7d59['children'][_0x5d2dab(0x33d)](function(_0x3cebbd){const _0x1546b1=_0x5d2dab;return typeof _0x3cebbd[_0x1546b1(0x251)]['id']==_0x1546b1(0x34e)&&_0x3019fb&&_0x3019fb['includes'](_0x3cebbd[_0x1546b1(0x251)]['id'])?_0x17e143(_0x17e143({},_0x3cebbd),{'attrs':_0x17e143(_0x17e143({},_0x3cebbd['attrs']),{'id':_0x3cebbd[_0x1546b1(0x251)]['id']+_0x550566[_0x1546b1(0x255)]})}):_0x3cebbd;})}):_0x2e7d59;}function _0x3b57c6(){const _0x3d59a5=_0x4a00e7;return Math[_0x3d59a5(0x1a1)]()[_0x3d59a5(0x2ba)](0x24)[_0x3d59a5(0x179)](0x2,0x8);}_0x202182[_0x4a00e7(0x298)]=_0x4a00e7(0x247);var _0x404548={'tag':_0x4a00e7(0x212),'attrs':{'xmlns':_0x4a00e7(0x32d),'fill':_0x4a00e7(0x1bd),'viewBox':'0\x200\x2016\x2016','width':_0x4a00e7(0x299),'height':_0x4a00e7(0x299)},'children':[{'tag':'g','attrs':{'clipPath':_0x4a00e7(0x105)},'children':[{'tag':'path','attrs':{'stroke':_0x4a00e7(0x210),'d':'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','strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4a00e7(0x1aa),'attrs':{'id':_0x4a00e7(0x136)},'children':[{'tag':'path','attrs':{'fill':_0x4a00e7(0x145),'d':_0x4a00e7(0x195)}}]}]}],'defIds':[_0x4a00e7(0x136)]},_0xa5fe82=_0x32b05b[_0x4a00e7(0x16d)](function(_0x468725,_0x5b59ff){const _0x615fd4=_0x4a00e7;return _0x32b05b['createElement'](_0x202182,Object[_0x615fd4(0x2ff)]({},_0x468725,{'id':'off-line-icon','ref':_0x5b59ff,'icon':_0x404548}));});_0xa5fe82['displayName']=_0x4a00e7(0xef);var _0x3e84ab={'tag':_0x4a00e7(0x212),'attrs':{'xmlns':_0x4a00e7(0x32d),'fill':_0x4a00e7(0x1bd),'viewBox':_0x4a00e7(0x243),'width':'1em','height':_0x4a00e7(0x299)},'children':[{'tag':'g','attrs':{'clipPath':_0x4a00e7(0x1e3)},'children':[{'tag':_0x4a00e7(0x305),'attrs':{'stroke':_0x4a00e7(0x210),'d':_0x4a00e7(0x20a),'strokeLinecap':_0x4a00e7(0xf9),'strokeLinejoin':_0x4a00e7(0xf9),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4a00e7(0x1aa),'attrs':{'id':_0x4a00e7(0x102)},'children':[{'tag':'path','attrs':{'fill':_0x4a00e7(0x145),'d':'M0\x200H16V16H0z','transform':_0x4a00e7(0x29f)}}]}]}],'defIds':[_0x4a00e7(0x102)]},_0x41977a=_0x32b05b[_0x4a00e7(0x16d)](function(_0x29fd7b,_0xca097d){const _0x117815=_0x4a00e7;return _0x32b05b['createElement'](_0x202182,Object['assign']({},_0x29fd7b,{'id':_0x117815(0x110),'ref':_0xca097d,'icon':_0x3e84ab}));});_0x41977a[_0x4a00e7(0x298)]='OnLineIcon';function _0x30325f(_0x300eb3){const _0x25c57e=_0x4a00e7;switch(_0x300eb3){case _0x2fe882['CollaborationStatus'][_0x25c57e(0x324)]:return _0x25c57e(0x2bf);case _0x2fe882[_0x25c57e(0x144)]['CONFLICT']:return _0x25c57e(0x267);case _0x2fe882['CollaborationStatus'][_0x25c57e(0x1fc)]:return _0x25c57e(0x308);case _0x2fe882[_0x25c57e(0x144)][_0x25c57e(0x19f)]:return'collabStatus.notCollab';case _0x2fe882[_0x25c57e(0x144)]['AWAITING']:case _0x2fe882[_0x25c57e(0x144)][_0x25c57e(0x13d)]:return'collabStatus.syncing';case _0x2fe882[_0x25c57e(0x144)][_0x25c57e(0x361)]:case _0x2fe882[_0x25c57e(0x144)][_0x25c57e(0x362)]:return'collabStatus.synced';}}function _0x43c59b(_0x3f84dd){const _0x1e83d2=_0x4a00e7,{status$:_0x3f57b5}=_0x3f84dd,_0x57e978=_0x5121a3['useObservable'](_0x3f57b5,_0x2fe882[_0x1e83d2(0x144)][_0x1e83d2(0x19f)]),_0x498253=_0x5121a3[_0x1e83d2(0x11c)](_0x18ca73[_0x1e83d2(0x2b7)]),_0x3df357=_0x5121a3[_0x1e83d2(0x11c)](_0x2fe882[_0x1e83d2(0x26f)]),_0x1295de=_0x57e978!==_0x2fe882[_0x1e83d2(0x144)]['OFFLINE'],_0xbe62bc=_0x498253['t'](_0x30325f(_0x57e978)),_0x4af658=_0x1295de?_0x5bd372[_0x1e83d2(0x26a)](_0x41977a,{}):_0x5bd372[_0x1e83d2(0x26a)](_0xa5fe82,{}),_0x3ea166=_0x32b05b[_0x1e83d2(0x318)](()=>{_0x1295de||_0x3df357['reconnect']();},[_0x1295de,_0x3df357]);function _0x9a1d57(){const _0x16a325=_0x1e83d2;return _0x5bd372[_0x16a325(0x337)]('div',{'className':_0x16a325(0x283),'onClick':_0x3ea166,'children':[_0x5bd372['jsx'](_0x16a325(0x339),{'className':_0x578c52[_0x16a325(0x183)](_0x16a325(0x2c9),{'univer-text-green-500':_0x1295de,'univer-text-red-500':!_0x1295de}),'children':_0x4af658}),_0x5bd372['jsx']('div',{'className':_0x16a325(0x286),'children':_0xbe62bc})]});}return _0x1295de?_0x9a1d57():_0x5bd372['jsx'](_0x578c52[_0x1e83d2(0x2c1)],{'title':_0x498253['t'](_0x1e83d2(0x168)),'children':_0x9a1d57()});}var _0x2d69ae=Object[_0x4a00e7(0x1f9)],_0x176437=(_0x91ea1c,_0x32b94d,_0x50fc48,_0x26ff21)=>{const _0x593ec9=_0x4a00e7;for(var _0x4dc8c2=_0x26ff21>0x1?void 0x0:_0x26ff21?_0x2d69ae(_0x32b94d,_0x50fc48):_0x32b94d,_0x2e22ba=_0x91ea1c[_0x593ec9(0x256)]-0x1,_0x543ec8;_0x2e22ba>=0x0;_0x2e22ba--)(_0x543ec8=_0x91ea1c[_0x2e22ba])&&(_0x4dc8c2=_0x543ec8(_0x4dc8c2)||_0x4dc8c2);return _0x4dc8c2;},_0x19fdd8=(_0x32d1ed,_0x17c6fd)=>(_0x429620,_0x5898f1)=>_0x17c6fd(_0x429620,_0x5898f1,_0x32d1ed);_0x311cb7['DesktopCollaborationStatusDisplayController']=class extends _0x18ca73['Disposable']{constructor(_0x23c022,_0x2d4f8d,_0x5e27e3,_0x2aa1b1){const _0x45450b=_0x4a00e7;super(),_0x41f19e(this,_0x45450b(0x346),new _0x16b079['BehaviorSubject'](_0x2fe882['CollaborationStatus']['NOT_COLLAB'])),(this[_0x45450b(0x15d)]=_0x23c022,this[_0x45450b(0x1ab)]=_0x2d4f8d,this[_0x45450b(0x1c4)]=_0x5e27e3,this[_0x45450b(0x30d)]=_0x2aa1b1,this[_0x45450b(0x23f)](),this['_initStatusListener']());}[_0x4a00e7(0xfa)](){const _0x35081a=_0x4a00e7;this[_0x35081a(0x2a8)](this[_0x35081a(0x15d)]['focused$'][_0x35081a(0x217)](_0x16b079[_0x35081a(0x22e)](()=>{const _0x6555c5=_0x35081a,_0x19828c=this[_0x6555c5(0x15d)]['getFocusedUnit']();return _0x19828c?this[_0x6555c5(0x1c4)][_0x6555c5(0x22d)](_0x19828c['getUnitId']()):_0x16b079['of'](null);}),_0x16b079[_0x35081a(0x22e)](_0x171bd0=>_0x171bd0?_0x171bd0['status$']:_0x16b079['of'](_0x2fe882[_0x35081a(0x144)]['NOT_COLLAB'])))[_0x35081a(0x12b)](_0x5b0d36=>{const _0xe7bbb0=_0x35081a;this[_0xe7bbb0(0x346)][_0xe7bbb0(0x274)](_0x5b0d36);}));}[_0x4a00e7(0x23f)](){const _0x53af81=_0x4a00e7;this[_0x53af81(0x2a8)](this[_0x53af81(0x30d)][_0x53af81(0x24a)](_0x5121a3[_0x53af81(0x2ad)][_0x53af81(0x28b)],()=>_0x5121a3['connectInjector'](_0x26a9bf({'status$':this[_0x53af81(0x346)]['asObservable']()}),this[_0x53af81(0x1ab)])));}},_0x311cb7['DesktopCollaborationStatusDisplayController']=_0x176437([_0x19fdd8(0x0,_0x18ca73['IUniverInstanceService']),_0x19fdd8(0x1,_0x18ca73['Inject'](_0x18ca73[_0x4a00e7(0x271)])),_0x19fdd8(0x2,_0x18ca73['Inject'](_0x2fe882[_0x4a00e7(0x1c9)])),_0x19fdd8(0x3,_0x5121a3['IUIPartsService'])],_0x311cb7[_0x4a00e7(0xfb)]);function _0x26a9bf(_0x14c47d){const {status$:_0x54b906}=_0x14c47d;return function(){const _0x59df80=_0x27be;return _0x5bd372[_0x59df80(0x26a)](_0x43c59b,{'status$':_0x54b906});};}const _0x32736f=_0x18ca73['createIdentifier']('uni.network.url-service');var _0x16d1d5=Object[_0x4a00e7(0x1f9)],_0x1c864d=(_0x40968e,_0x245ec4,_0x3e1053,_0x3d48ba)=>{for(var _0x35ae04=_0x3d48ba>0x1?void 0x0:_0x3d48ba?_0x16d1d5(_0x245ec4,_0x3e1053):_0x245ec4,_0x3f66b2=_0x40968e['length']-0x1,_0xc394a4;_0x3f66b2>=0x0;_0x3f66b2--)(_0xc394a4=_0x40968e[_0x3f66b2])&&(_0x35ae04=_0xc394a4(_0x35ae04)||_0x35ae04);return _0x35ae04;},_0x1df12d=(_0x5c116b,_0x20b780)=>(_0x47a6a6,_0x530bdc)=>_0x20b780(_0x47a6a6,_0x530bdc,_0x5c116b);_0x311cb7[_0x4a00e7(0x32f)]=class extends _0x18ca73[_0x4a00e7(0x22f)]{constructor(_0x1d6ddf,_0x280f5f,_0x526585,_0x135c48,_0x24293d){const _0x4a81fc=_0x4a00e7;super(),this[_0x4a81fc(0x126)]=_0x1d6ddf,this[_0x4a81fc(0x360)]=_0x280f5f,this[_0x4a81fc(0x29c)]=_0x526585,this[_0x4a81fc(0x254)]=_0x135c48,_0x24293d?_0x24293d==null||_0x24293d[_0x4a81fc(0x335)]()['then'](()=>this[_0x4a81fc(0x1ee)]()):(this[_0x4a81fc(0x360)]['debug'](_0x4a81fc(0x279),_0x4a81fc(0x250)),this['_init']());}async[_0x4a00e7(0x1ee)](){const _0x2c1102=_0x4a00e7,_0x1df110=this[_0x2c1102(0x126)][_0x2c1102(0x2e9)](_0x2c1102(0x249)),_0x5a344a=this[_0x2c1102(0x126)][_0x2c1102(0x2e9)](_0x2c1102(0x2a0)),_0x8b4187=this['_urlService'][_0x2c1102(0x2e9)](_0x2c1102(0x34d));if(!_0x1df110||!_0x5a344a){this['_logService'][_0x2c1102(0x199)](_0x2c1102(0x279),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x2ed731=await this[_0x2c1102(0x254)][_0x2c1102(0x28c)](_0x1df110,Number(_0x5a344a),_0x8b4187);_0x2ed731&&_0x2ed731 instanceof _0x18ca73[_0x2c1102(0x2b0)]&&this['_setupSubUnitSync'](_0x2ed731);}async['_setupSubUnitSync'](_0x34ee9d){const _0x24cfa5=_0x4a00e7;await this['_updateSubUnitFromURLParams'](_0x34ee9d),_0x34ee9d[_0x24cfa5(0x290)][_0x24cfa5(0x217)](_0x16b079[_0x24cfa5(0x18a)](this['dispose$']))[_0x24cfa5(0x12b)](_0x4fc17e=>{_0x4fc17e&&this['_updateURLWithCurrentState'](_0x4fc17e);}),this[_0x24cfa5(0x126)]['urlChange$'][_0x24cfa5(0x217)](_0x16b079[_0x24cfa5(0x18a)](this[_0x24cfa5(0x216)]))[_0x24cfa5(0x12b)](()=>this[_0x24cfa5(0x351)](_0x34ee9d));}[_0x4a00e7(0xf4)](_0x1cab6a,_0x341cf6=!0x1){const _0x3bef04=_0x4a00e7,_0x4f119c=this[_0x3bef04(0x126)]['getParam']('subunit');_0x1cab6a['getSheetId']()!==_0x4f119c&&this['_urlService'][_0x3bef04(0x1d9)](_0x3bef04(0x34d),_0x1cab6a[_0x3bef04(0x259)](),_0x341cf6);}async['_updateSubUnitFromURLParams'](_0x20c1bc){const _0x27a912=_0x4a00e7;var _0x1e608b;const _0x38b5e0=this[_0x27a912(0x126)]['getParam'](_0x27a912(0x34d));if(!_0x38b5e0||!_0x20c1bc['getSheetBySheetId'](_0x38b5e0)){const _0x4c4c30=_0x20c1bc[_0x27a912(0x19d)]()[0x0],_0x1e701d=_0x20c1bc[_0x27a912(0x1c5)](_0x4c4c30);if(!_0x1e701d)return;this[_0x27a912(0xf4)](_0x1e701d,!0x0),await this[_0x27a912(0x29c)][_0x27a912(0x23b)](_0x3c8e23['SetWorksheetActivateCommand']['id'],{'unitId':_0x20c1bc[_0x27a912(0x1fa)](),'subUnitId':_0x4c4c30});return;}((_0x1e608b=_0x20c1bc[_0x27a912(0x320)]())==null?void 0x0:_0x1e608b[_0x27a912(0x259)]())!==_0x38b5e0&&await this[_0x27a912(0x29c)][_0x27a912(0x23b)](_0x3c8e23[_0x27a912(0x1c2)]['id'],{'unitId':_0x20c1bc['getUnitId'](),'subUnitId':_0x38b5e0});}},_0x311cb7[_0x4a00e7(0x32f)]=_0x1c864d([_0x1df12d(0x0,_0x32736f),_0x1df12d(0x1,_0x18ca73[_0x4a00e7(0x1d3)]),_0x1df12d(0x2,_0x18ca73['ICommandService']),_0x1df12d(0x3,_0x18ca73[_0x4a00e7(0x29b)](_0x2fe882['DataLoaderService'])),_0x1df12d(0x4,_0x18ca73['Optional'](_0x457000[_0x4a00e7(0x2a6)]))],_0x311cb7[_0x4a00e7(0x32f)]);var _0x19e019=Object[_0x4a00e7(0x1f9)],_0x4b9895=(_0x113dd2,_0x49e186,_0x3da11a,_0x39be26)=>{const _0x192752=_0x4a00e7;for(var _0x3d971b=_0x39be26>0x1?void 0x0:_0x39be26?_0x19e019(_0x49e186,_0x3da11a):_0x49e186,_0x2b63e4=_0x113dd2[_0x192752(0x256)]-0x1,_0x4a64e3;_0x2b63e4>=0x0;_0x2b63e4--)(_0x4a64e3=_0x113dd2[_0x2b63e4])&&(_0x3d971b=_0x4a64e3(_0x3d971b)||_0x3d971b);return _0x3d971b;},_0x5807ba=(_0x4b5e35,_0x435dd4)=>(_0x57bbb0,_0x3a9c8a)=>_0x435dd4(_0x57bbb0,_0x3a9c8a,_0x4b5e35);let _0x2d1ce0=class extends _0x18ca73[_0x4a00e7(0x22f)]{constructor(_0x3fca16,_0x48a131){const _0x325a10=_0x4a00e7;super(),this[_0x325a10(0x2ac)]=_0x3fca16,this[_0x325a10(0x233)]=_0x48a131,this[_0x325a10(0x1ee)]();}[_0x4a00e7(0x1ee)](){const _0x446fbd=_0x4a00e7,_0x1d420b=this;this[_0x446fbd(0x2a8)](this[_0x446fbd(0x2ac)][_0x446fbd(0x289)]({'onBeforePasteImage':async _0x57d8d1=>{const _0x48f044=_0x446fbd,_0x10276a=await _0x1d420b[_0x48f044(0x233)]['saveImage'](_0x57d8d1);return _0x10276a?{'source':_0x10276a['source'],'imageSourceType':_0x10276a[_0x48f044(0x377)]}:null;}}));}};_0x2d1ce0=_0x4b9895([_0x5807ba(0x0,_0x41c79e[_0x4a00e7(0x26e)]),_0x5807ba(0x1,_0x2baa74[_0x4a00e7(0x1f8)])],_0x2d1ce0);const _0x54206e=[_0x4a00e7(0x359),_0x4a00e7(0x380),_0x4a00e7(0x1bc),_0x4a00e7(0x340),_0x4a00e7(0x2c2),_0x4a00e7(0x139)];class _0x3fde5d extends _0x18ca73[_0x4a00e7(0x25b)]{constructor(){const _0xba7c32=_0x4a00e7;super(...arguments),_0x41f19e(this,'_assignedColors',new Map()),_0x41f19e(this,_0xba7c32(0x2f5),0x0);}[_0x4a00e7(0x24d)](_0x56d79b){const _0x150e27=_0x4a00e7;if(this['_assignedColors'][_0x150e27(0x133)](_0x56d79b))return this[_0x150e27(0x103)][_0x150e27(0x202)](_0x56d79b);const _0x5170a4=_0x54206e[this[_0x150e27(0x2f5)]];return this[_0x150e27(0x2f5)]=(this[_0x150e27(0x2f5)]+0x1)%_0x54206e[_0x150e27(0x256)],this['_assignedColors'][_0x150e27(0x329)](_0x56d79b,_0x5170a4),_0x5170a4;}}function _0x17a0c2(_0x1b94d9){let _0x1c1baa='';for(const _0x1d48c6 of _0x1b94d9){const {startOffset:_0x313fb4,endOffset:_0x19c02b,isActive:_0x40465d,rangeType:_0x3a9d77,segmentId:_0x55554e,segmentPage:_0x25a352}=_0x1d48c6;_0x1c1baa['length']&&(_0x1c1baa+=','),_0x1c1baa+=_0x313fb4+':'+_0x19c02b+':'+(_0x40465d?'1':'0')+':'+_0x3a9d77+':'+_0x55554e+':'+_0x25a352;}return _0x1c1baa;}function _0x440b1d(_0x29be7d){const _0x1e864d=_0x4a00e7,_0x82e35=_0x29be7d[_0x1e864d(0x272)](','),_0xf91082=[];for(const _0x13c53c of _0x82e35){const [_0x8e8d8f,_0x26f33e,_0x3a773c,_0x14a4a2,_0x5e1922,_0x5913f1]=_0x13c53c[_0x1e864d(0x272)](':');_0xf91082['push']({'startOffset':Number(_0x8e8d8f),'endOffset':Number(_0x26f33e),'collapsed':_0x8e8d8f===_0x26f33e,'isActive':_0x3a773c==='1','rangeType':_0x14a4a2===_0x18ca73['DOC_RANGE_TYPE'][_0x1e864d(0x1a8)]?_0x18ca73['DOC_RANGE_TYPE'][_0x1e864d(0x1a8)]:_0x18ca73[_0x1e864d(0x142)]['RECT'],'segmentId':typeof _0x5e1922=='string'?String(_0x5e1922):'','segmentPage':Number(_0x5913f1!=null?_0x5913f1:-0x1)});}return _0xf91082[_0x1e864d(0x1ac)](_0x2cf94d=>_0x2cf94d['isActive'])||(_0xf91082[0x0][_0x1e864d(0x26b)]=!0x0),_0xf91082;}class _0x349747 extends _0x18ca73[_0x4a00e7(0x22f)]{constructor(){const _0x1ad5bc=_0x4a00e7;super(...arguments),_0x41f19e(this,_0x1ad5bc(0x336),new _0x16b079[(_0x1ad5bc(0x18c))](null)),_0x41f19e(this,_0x1ad5bc(0x2dd),this['_collabCursorState$']['asObservable']());}[_0x4a00e7(0x2fb)](_0x2f93b1){const _0x514c10=_0x4a00e7,{unitID:_0x1799b2,memberID:_0x534ffd,textRanges:_0x237f8e}=_0x2f93b1,_0x50cdd2=_0x17a0c2(_0x237f8e);if(_0x50cdd2==='')return;const _0x53a84f={'unitID':_0x1799b2,'memberID':_0x534ffd,'selection':_0x50cdd2};this[_0x514c10(0x336)][_0x514c10(0x274)](_0x53a84f);}}var _0xe67a58=Object[_0x4a00e7(0x1f9)],_0x50afb7=(_0x1209ec,_0x6bee83,_0x3c71b9,_0x20868b)=>{const _0x40d8e8=_0x4a00e7;for(var _0x334a4c=_0x20868b>0x1?void 0x0:_0x20868b?_0xe67a58(_0x6bee83,_0x3c71b9):_0x6bee83,_0x3e9bde=_0x1209ec[_0x40d8e8(0x256)]-0x1,_0x5191a2;_0x3e9bde>=0x0;_0x3e9bde--)(_0x5191a2=_0x1209ec[_0x3e9bde])&&(_0x334a4c=_0x5191a2(_0x334a4c)||_0x334a4c);return _0x334a4c;},_0x12102d=(_0x52f647,_0x5cb48c)=>(_0x1ea398,_0x540e24)=>_0x5cb48c(_0x1ea398,_0x540e24,_0x52f647);const _0x2bdafa=0x12c,_0x1a2760=0x64;let _0x5d9194=class extends _0x18ca73['RxDisposable']{constructor(_0x2de6fb,_0x52bd00,_0x4f9bd0,_0x2ce96b,_0x1c9927,_0x21b0c6,_0x3b5f61,_0x5e85ca,_0x1fa5e5){const _0x8c97aa=_0x4a00e7;super(),_0x41f19e(this,_0x8c97aa(0x1b8),!0x1),_0x41f19e(this,_0x8c97aa(0x1ee),!0x1),_0x41f19e(this,'_cursorInfo$',new _0x16b079['BehaviorSubject'](new Map())),_0x41f19e(this,_0x8c97aa(0x14e),this[_0x8c97aa(0x194)][_0x8c97aa(0x19e)]()),_0x41f19e(this,_0x8c97aa(0x1ea),new _0x16b079[(_0x8c97aa(0x18c))]([])),_0x41f19e(this,_0x8c97aa(0x104),this[_0x8c97aa(0x1ea)][_0x8c97aa(0x217)](_0x16b079[_0x8c97aa(0x27e)](_0x2bdafa))),_0x41f19e(this,_0x8c97aa(0x242),_0x18ca73[_0x8c97aa(0x258)](_0x11cf8d=>{const _0x71b777=_0x8c97aa,_0x179f6c={'eventID':_0x518b96[_0x71b777(0x20d)][_0x71b777(0x2b5)],'data':{'unitID':this[_0x71b777(0x2d2)],'memberID':this[_0x71b777(0x227)][_0x71b777(0x165)](),'selection':_0x17a0c2(_0x11cf8d)}};this[_0x71b777(0x227)]['send'](_0x179f6c,this['unitID']);},_0x1a2760)),(this[_0x8c97aa(0x2d2)]=_0x2de6fb,this['_session']=_0x52bd00,this[_0x8c97aa(0x1ab)]=_0x4f9bd0,this['_colorAssignService']=_0x2ce96b,this[_0x8c97aa(0x343)]=_0x1c9927,this[_0x8c97aa(0x30e)]=_0x21b0c6,this['_transformService']=_0x3b5f61,this['_univerInstanceService']=_0x5e85ca,this['_commandService']=_0x1fa5e5);}get['cursorInfo'](){const _0x39a679=_0x4a00e7;return this['_cursorInfo$'][_0x39a679(0x2e5)]();}get['roomMembers'](){const _0x4afc9b=_0x4a00e7;return this[_0x4afc9b(0x1ea)][_0x4afc9b(0x2e5)]();}[_0x4a00e7(0x264)](){const _0x5a22eb=_0x4a00e7;super[_0x5a22eb(0x264)](),this['_cursorInfo$'][_0x5a22eb(0x274)](new Map()),this['_cursorInfo$'][_0x5a22eb(0x2df)](),this['_roomMembers$'][_0x5a22eb(0x274)]([]),this['_roomMembers$']['complete']();}['init'](){const _0x232854=_0x4a00e7;this[_0x232854(0x1ee)]||(this[_0x232854(0x1ee)]=!0x0,this[_0x232854(0x227)][_0x232854(0xf0)][_0x232854(0x217)](_0x16b079[_0x232854(0x18a)](this[_0x232854(0x216)]))[_0x232854(0x12b)](_0x6efda2=>{const _0x2f8140=_0x232854;_0x6efda2===_0x2fe882['SessionStatus'][_0x2f8140(0x338)]?this[_0x2f8140(0x2b3)]():this[_0x2f8140(0x16b)]();}),this['_session']['event$'][_0x232854(0x217)](_0x16b079['takeUntil'](this[_0x232854(0x216)]))[_0x232854(0x12b)](_0x367a80=>{const _0x33f695=_0x232854,_0x1d2d51=_0x367a80[_0x33f695(0x26d)];_0x1d2d51===_0x518b96[_0x33f695(0x20d)][_0x33f695(0x2b5)]&&this[_0x33f695(0x197)](_0x367a80),_0x1d2d51===_0x518b96[_0x33f695(0x20d)][_0x33f695(0x208)]&&this['_onCursorDelete'](_0x367a80);}),this['disposeWithMe'](this[_0x232854(0x29c)][_0x232854(0x180)](_0x218f54=>{const _0x252d87=_0x232854,_0x4b2874=_0x218f54[_0x252d87(0x2de)];_0x4b2874!=null&&this['_online']&&_0x218f54['id']===_0x40419e[_0x252d87(0x2cb)]['id']&&_0x4b2874[_0x252d87(0x36e)]===this['unitID']&&_0x4b2874['isEditing']===!0x1&&_0x4b2874['ranges'][_0x252d87(0x256)]>0x0&&this[_0x252d87(0x242)](_0x4b2874[_0x252d87(0x319)]);})),this[_0x232854(0x30e)][_0x232854(0x2dd)][_0x232854(0x217)](_0x16b079['takeUntil'](this[_0x232854(0x216)]))[_0x232854(0x12b)](_0x428203=>{const _0x3dba2e=_0x232854;if((_0x428203==null?void 0x0:_0x428203[_0x3dba2e(0x2d2)])!==this[_0x3dba2e(0x2d2)])return;const _0x423ae2={'eventID':_0x518b96[_0x3dba2e(0x20d)][_0x3dba2e(0x2b5)],'data':_0x428203};this['_onCursorUpdate'](_0x423ae2);}),this['disposeWithMe'](this[_0x232854(0x29c)]['onCommandExecuted'](_0x4433d8=>{const _0x512bb6=_0x232854;if(_0x4433d8[_0x512bb6(0x2de)]==null)return;const _0x74467e=_0x4433d8[_0x512bb6(0x2de)];if(_0x4433d8['id']!==_0x40419e[_0x512bb6(0x166)]['id']||_0x74467e[_0x512bb6(0x36e)]!==this[_0x512bb6(0x2d2)])return;const _0x90fce={'id':'doc.mutation.rich-text-editing','params':_0x74467e},_0x3ad41f=this[_0x512bb6(0x35f)];for(const [_0x2c8d88,_0x16a477]of _0x3ad41f){const _0x3d4595={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x512bb6(0x2d2)],'actions':null,'textRanges':_0x16a477[_0x512bb6(0x319)]}},_0x418e18=this[_0x512bb6(0x1a6)][_0x512bb6(0x2d3)](_0x90fce,_0x3d4595,!0x1);if(_0x518b96[_0x512bb6(0x326)](_0x418e18))throw _0x418e18[_0x512bb6(0x17e)];_0x3ad41f[_0x512bb6(0x329)](_0x2c8d88,{..._0x16a477,'ranges':_0x418e18[_0x512bb6(0x381)]['params'][_0x512bb6(0x2eb)]});}queueMicrotask(()=>{const _0x2b55c0=_0x512bb6;this[_0x2b55c0(0x194)][_0x2b55c0(0x274)](_0x3ad41f);});})));}[_0x4a00e7(0x197)](_0x2d44cf){const _0x51b42b=_0x4a00e7;var _0x5ebbb5,_0x1b7dfc;const {memberID:_0x219248,selection:_0x4a0093}=_0x2d44cf[_0x51b42b(0x36f)],_0x356027=_0x440b1d(_0x4a0093),_0xf1f94e=(_0x1b7dfc=(_0x5ebbb5=this['_memberService'][_0x51b42b(0x221)](this[_0x51b42b(0x2d2)],_0x219248))==null?void 0x0:_0x5ebbb5[_0x51b42b(0x287)])!=null?_0x1b7dfc:'Unknown\x20user',_0x285b54={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x219248),'name':_0xf1f94e,'ranges':_0x356027},_0x333eef=this[_0x51b42b(0x35f)];_0x333eef[_0x51b42b(0x329)](_0x219248,_0x285b54),this[_0x51b42b(0x194)][_0x51b42b(0x274)](_0x333eef);}[_0x4a00e7(0x34f)](_0x505553){const _0x327481=_0x4a00e7,{memberID:_0x36afa4}=_0x505553[_0x327481(0x36f)],_0x1989d0=this['cursorInfo'];_0x1989d0['delete'](_0x36afa4),this['_cursorInfo$'][_0x327481(0x274)](_0x1989d0);}[_0x4a00e7(0x2b3)](){const _0x3cd0c7=_0x4a00e7;var _0x5aa206;if(this['_online']=!0x0,((_0x5aa206=this[_0x3cd0c7(0x15d)][_0x3cd0c7(0x23d)]())==null?void 0x0:_0x5aa206[_0x3cd0c7(0x1fa)]())!==this[_0x3cd0c7(0x2d2)])return;const _0x267f8b=this[_0x3cd0c7(0x1ab)]['get'](_0x40419e[_0x3cd0c7(0x154)])[_0x3cd0c7(0x315)]();Array[_0x3cd0c7(0x31b)](_0x267f8b)&&_0x267f8b[_0x3cd0c7(0x256)]>0x0&&this['_updateLocalCursor'](_0x267f8b);}[_0x4a00e7(0x16b)](){const _0xe4f5ba=_0x4a00e7;this[_0xe4f5ba(0x1b8)]=!0x1;}};_0x5d9194=_0x50afb7([_0x12102d(0x2,_0x18ca73['Inject'](_0x18ca73[_0x4a00e7(0x271)])),_0x12102d(0x3,_0x18ca73[_0x4a00e7(0x29b)](_0x3fde5d)),_0x12102d(0x4,_0x18ca73[_0x4a00e7(0x29b)](_0x2fe882[_0x4a00e7(0x28a)])),_0x12102d(0x5,_0x18ca73[_0x4a00e7(0x29b)](_0x349747)),_0x12102d(0x6,_0x518b96[_0x4a00e7(0x16a)]),_0x12102d(0x7,_0x18ca73[_0x4a00e7(0x196)]),_0x12102d(0x8,_0x18ca73['ICommandService'])],_0x5d9194);var _0x4b112b=Object[_0x4a00e7(0x1f9)],_0x16779a=(_0x277892,_0x35ca60,_0x55bd9c,_0x55e4f4)=>{const _0x4bdf49=_0x4a00e7;for(var _0x319b04=_0x55e4f4>0x1?void 0x0:_0x55e4f4?_0x4b112b(_0x35ca60,_0x55bd9c):_0x35ca60,_0x44c263=_0x277892[_0x4bdf49(0x256)]-0x1,_0x4fa251;_0x44c263>=0x0;_0x44c263--)(_0x4fa251=_0x277892[_0x44c263])&&(_0x319b04=_0x4fa251(_0x319b04)||_0x319b04);return _0x319b04;},_0x3b5468=(_0x485038,_0x1a7575)=>(_0x3c478,_0x3b172a)=>_0x1a7575(_0x3c478,_0x3b172a,_0x485038);const _0x154ad0=0x12c,_0x125df3=0x64,_0x577705=()=>{let _0x9e52ce=[],_0x5717ee=!0x1;return _0x2fd7a6=>{const _0x2de6af=_0x27be;_0x9e52ce[_0x2de6af(0x2b6)](_0x2fd7a6),_0x5717ee||(_0x5717ee=!0x0,setTimeout(()=>{const _0x5412c5=_0x2de6af;_0x9e52ce[_0x5412c5(0x28f)](_0x38a113=>_0x38a113()),_0x9e52ce=[],_0x5717ee=!0x1;}));};};let _0x42c0ec=class extends _0x18ca73[_0x4a00e7(0x22f)]{constructor(_0xfae60f,_0x56e0ba,_0x2867d3,_0x12a734,_0x2bf58a,_0xf5600f,_0x46aeeb,_0x4047ec){const _0x47f04b=_0x4a00e7;super(),_0x41f19e(this,_0x47f04b(0x1b8),!0x1),_0x41f19e(this,_0x47f04b(0x1ee),!0x1),_0x41f19e(this,_0x47f04b(0x194),new _0x16b079[(_0x47f04b(0x18c))](new Map())),_0x41f19e(this,'cursorInfo$',this[_0x47f04b(0x194)][_0x47f04b(0x19e)]()),_0x41f19e(this,_0x47f04b(0x1ea),new _0x16b079[(_0x47f04b(0x18c))]([])),_0x41f19e(this,'roomMembers$',this[_0x47f04b(0x1ea)][_0x47f04b(0x217)](_0x16b079[_0x47f04b(0x27e)](_0x154ad0))),_0x41f19e(this,'_updateLocalCursor',_0x18ca73[_0x47f04b(0x258)]((_0x24c22a,_0x1ddc61)=>{const _0x22d464=_0x47f04b,_0x416dbe={'eventID':_0x518b96[_0x22d464(0x20d)][_0x22d464(0x2b5)],'data':{'unitID':this['unitID'],'memberID':this[_0x22d464(0x227)][_0x22d464(0x165)](),'selection':_0xcce0ba[_0x22d464(0x14c)](_0x24c22a,_0x1ddc61['range'])}};this[_0x22d464(0x227)][_0x22d464(0x1a4)](_0x416dbe,this[_0x22d464(0x2d2)]);},_0x125df3)),(this[_0x47f04b(0x2d2)]=_0xfae60f,this[_0x47f04b(0x227)]=_0x56e0ba,this[_0x47f04b(0x1ab)]=_0x2867d3,this['_colorAssignService']=_0x12a734,this[_0x47f04b(0x343)]=_0x2bf58a,this[_0x47f04b(0x15d)]=_0xf5600f,this[_0x47f04b(0x29c)]=_0x46aeeb,this['_refRangeService']=_0x4047ec);}get[_0x4a00e7(0x35f)](){const _0x2e4336=_0x4a00e7;return this[_0x2e4336(0x194)]['getValue']();}get['roomMembers'](){const _0x2349f8=_0x4a00e7;return this['_roomMembers$'][_0x2349f8(0x2e5)]();}[_0x4a00e7(0x264)](){const _0x3a9b74=_0x4a00e7;super['dispose'](),this[_0x3a9b74(0x194)][_0x3a9b74(0x274)](new Map()),this[_0x3a9b74(0x194)][_0x3a9b74(0x2df)](),this[_0x3a9b74(0x1ea)][_0x3a9b74(0x274)]([]),this[_0x3a9b74(0x1ea)][_0x3a9b74(0x2df)]();}[_0x4a00e7(0x2bd)](){const _0x2bd042=_0x4a00e7;this[_0x2bd042(0x1ee)]||(this[_0x2bd042(0x1ee)]=!0x0,this[_0x2bd042(0x227)]['sessionStatus$'][_0x2bd042(0x217)](_0x16b079[_0x2bd042(0x18a)](this[_0x2bd042(0x216)]))[_0x2bd042(0x12b)](_0x4176a9=>{const _0x438e4f=_0x2bd042;_0x4176a9===_0x2fe882[_0x438e4f(0x311)][_0x438e4f(0x338)]?this['_toggleOnline']():this[_0x438e4f(0x16b)]();}),this[_0x2bd042(0x227)][_0x2bd042(0x184)]['pipe'](_0x16b079[_0x2bd042(0x18a)](this['dispose$']))[_0x2bd042(0x12b)](_0x35a7cf=>{const _0x9ddd63=_0x2bd042,_0x31eedc=_0x35a7cf[_0x9ddd63(0x26d)];_0x31eedc===_0x518b96['CollaborationEvent'][_0x9ddd63(0x2b5)]&&this[_0x9ddd63(0x197)](_0x35a7cf),_0x31eedc===_0x518b96[_0x9ddd63(0x20d)][_0x9ddd63(0x208)]&&this[_0x9ddd63(0x34f)](_0x35a7cf);}),this[_0x2bd042(0x128)](),this['disposeWithMe'](this[_0x2bd042(0x29c)][_0x2bd042(0x180)](_0x24cd84=>{const _0x143d96=_0x2bd042;if(this[_0x143d96(0x1b8)]&&_0x24cd84['id']===_0x3c8e23[_0x143d96(0x28e)]['id']&&_0x24cd84[_0x143d96(0x2de)][_0x143d96(0x36e)]===this[_0x143d96(0x2d2)]){const _0x888fb0=_0x24cd84['params'];this[_0x143d96(0x242)](_0x888fb0['subUnitId'],_0x888fb0['selections'][0x0]);}})));}[_0x4a00e7(0x197)](_0x251e70){const _0x4fbeb5=_0x4a00e7;var _0x5ac1e6,_0x537234;const {memberID:_0x1513bf,selection:_0x55aa3c}=_0x251e70[_0x4fbeb5(0x36f)],{sheetName:_0x12c73e,range:_0x3cc49e}=_0xcce0ba[_0x4fbeb5(0x37d)](_0x55aa3c),_0x35d84e={'name':(_0x537234=(_0x5ac1e6=this[_0x4fbeb5(0x343)][_0x4fbeb5(0x221)](this['unitID'],_0x1513bf))==null?void 0x0:_0x5ac1e6[_0x4fbeb5(0x287)])!=null?_0x537234:_0x4fbeb5(0x238),'range':this[_0x4fbeb5(0x357)](_0x12c73e,_0x3cc49e),'sheetID':_0x12c73e,'color':this[_0x4fbeb5(0x32b)][_0x4fbeb5(0x24d)](_0x1513bf),'selection':_0x55aa3c},_0x1d41b8=this[_0x4fbeb5(0x35f)];_0x1d41b8[_0x4fbeb5(0x329)](_0x1513bf,_0x35d84e),this[_0x4fbeb5(0x194)][_0x4fbeb5(0x274)](_0x1d41b8);}[_0x4a00e7(0x34f)](_0x5c4e2a){const _0x23747b=_0x4a00e7,{memberID:_0x476494}=_0x5c4e2a[_0x23747b(0x36f)],_0x40f050=this[_0x23747b(0x35f)];_0x40f050[_0x23747b(0x1e2)](_0x476494),this[_0x23747b(0x194)][_0x23747b(0x274)](_0x40f050);}[_0x4a00e7(0x357)](_0x4def9f,_0x1255b0){const _0x5b9c05=_0x4a00e7;var _0x4f3485,_0x40cbaf;const _0x20b9b5=(_0x40cbaf=(_0x4f3485=this[_0x5b9c05(0x15d)][_0x5b9c05(0x200)](this[_0x5b9c05(0x2d2)]))==null?void 0x0:_0x4f3485['getSheetBySheetId'](_0x4def9f))==null?void 0x0:_0x40cbaf[_0x5b9c05(0x129)]();return(_0x20b9b5==null?void 0x0:_0x20b9b5['find'](_0xb57c84=>_0x18ca73['Rectangle'][_0x5b9c05(0x282)](_0xb57c84,_0x1255b0)))||_0x1255b0;}['_onRefRangeChange'](){const _0x5b4fac=_0x4a00e7,_0x52afd1=new _0x18ca73['DisposableCollection'](),_0x535b86=_0x577705(),_0x2208a9=()=>{const _0x561f13=_0x27be;_0x52afd1[_0x561f13(0x264)]();const _0x209af9=(_0x114d9d,_0x26ac7a,_0x217ac7,_0x171467)=>{const _0x2523e3=_0x561f13;let _0x1ed2ce=[];switch(_0x114d9d['id']){case _0x3c8e23[_0x2523e3(0x141)][_0x2523e3(0x27f)]:{_0x1ed2ce=_0x3c8e23[_0x2523e3(0x23e)](_0x114d9d,_0x171467);break;}case _0x3c8e23[_0x2523e3(0x141)][_0x2523e3(0x1c3)]:{_0x1ed2ce=_0x3c8e23['handleDeleteRangeMoveUp'](_0x114d9d,_0x171467);break;}case _0x3c8e23[_0x2523e3(0x141)][_0x2523e3(0x164)]:{_0x1ed2ce=_0x3c8e23['handleInsertCol'](_0x114d9d,_0x171467);break;}case _0x3c8e23[_0x2523e3(0x141)]['InsertRangeMoveDownCommandId']:{_0x1ed2ce=_0x3c8e23['handleInsertRangeMoveDown'](_0x114d9d,_0x171467);break;}case _0x3c8e23['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x1ed2ce=_0x3c8e23[_0x2523e3(0x2b2)](_0x114d9d,_0x171467);break;}case _0x3c8e23['EffectRefRangId'][_0x2523e3(0x29e)]:{_0x1ed2ce=_0x3c8e23[_0x2523e3(0x237)](_0x114d9d,_0x171467);break;}case _0x3c8e23[_0x2523e3(0x141)][_0x2523e3(0x37c)]:{_0x1ed2ce=_0x3c8e23[_0x2523e3(0x275)](_0x114d9d,_0x171467);break;}case _0x3c8e23[_0x2523e3(0x141)]['RemoveColCommandId']:{_0x1ed2ce=_0x3c8e23[_0x2523e3(0x21a)](_0x114d9d,_0x171467);break;}case _0x3c8e23[_0x2523e3(0x141)][_0x2523e3(0x30b)]:{_0x1ed2ce=_0x3c8e23[_0x2523e3(0x1e5)](_0x114d9d,_0x171467);break;}}const _0x5d1a39=_0x3c8e23[_0x2523e3(0x17f)](_0x1ed2ce,_0x171467),_0x28cf1f=this[_0x2523e3(0x35f)]['get'](_0x26ac7a);if(_0x28cf1f&&_0x5d1a39){const _0x585385={..._0x28cf1f,'range':_0x5d1a39};this[_0x2523e3(0x35f)]['set'](_0x26ac7a,_0x585385),_0x535b86(()=>{const _0x53ef77=_0x2523e3,_0x17ac2f=this['_refRangeService'][_0x53ef77(0x37f)](_0x5d1a39,_0x42fba3=>(_0x17ac2f['dispose'](),_0x209af9(_0x42fba3,_0x26ac7a,_0x217ac7,_0x5d1a39)));_0x52afd1[_0x53ef77(0x114)](_0x17ac2f);});}return{'redos':[],'undos':[]};};this[_0x561f13(0x35f)]['forEach']((_0x318bae,_0x5535fa)=>{const _0x346246=_0x561f13,{range:_0x133830,sheetID:_0x26df25}=_0x318bae,_0x284ea9=this[_0x346246(0x241)][_0x346246(0x37f)](_0x133830,_0x323052=>(_0x284ea9[_0x346246(0x264)](),_0x209af9(_0x323052,_0x5535fa,_0x26df25,_0x133830)));_0x52afd1[_0x346246(0x114)](_0x284ea9);});};this[_0x5b4fac(0x2a8)](_0x18ca73[_0x5b4fac(0x244)](this[_0x5b4fac(0x194)][_0x5b4fac(0x12b)](()=>{_0x2208a9();})));}[_0x4a00e7(0x2b3)](){const _0x24b23f=_0x4a00e7;var _0x53db0d,_0x181185;if(this[_0x24b23f(0x1b8)]=!0x0,((_0x53db0d=this[_0x24b23f(0x15d)][_0x24b23f(0x23d)]())==null?void 0x0:_0x53db0d[_0x24b23f(0x1fa)]())!==this[_0x24b23f(0x2d2)])return;const _0x2795a0=(_0x181185=this['_injector'][_0x24b23f(0x202)](_0x3c8e23['SheetsSelectionsService'])[_0x24b23f(0x2e6)]())==null?void 0x0:_0x181185[0x0],_0x1e258f=this['_univerInstanceService'][_0x24b23f(0x122)](_0x18ca73[_0x24b23f(0x113)][_0x24b23f(0x158)])[_0x24b23f(0x320)]();_0x2795a0&&_0x1e258f&&this['_updateLocalCursor'](_0x1e258f['getSheetId'](),_0x2795a0);}[_0x4a00e7(0x16b)](){const _0x46d10d=_0x4a00e7;this[_0x46d10d(0x1b8)]=!0x1;}};_0x42c0ec=_0x16779a([_0x3b5468(0x2,_0x18ca73['Inject'](_0x18ca73[_0x4a00e7(0x271)])),_0x3b5468(0x3,_0x18ca73[_0x4a00e7(0x29b)](_0x3fde5d)),_0x3b5468(0x4,_0x18ca73['Inject'](_0x2fe882[_0x4a00e7(0x28a)])),_0x3b5468(0x5,_0x18ca73[_0x4a00e7(0x196)]),_0x3b5468(0x6,_0x18ca73[_0x4a00e7(0x2ea)]),_0x3b5468(0x7,_0x18ca73['Inject'](_0x3c8e23['RefRangeService']))],_0x42c0ec);var _0x2fb020=Object[_0x4a00e7(0x1f9)],_0x3ecf4d=(_0x3b4ac2,_0x1d5c65,_0x26b7de,_0x403ffb)=>{const _0x14149c=_0x4a00e7;for(var _0x3426b3=_0x403ffb>0x1?void 0x0:_0x403ffb?_0x2fb020(_0x1d5c65,_0x26b7de):_0x1d5c65,_0x17bb9f=_0x3b4ac2[_0x14149c(0x256)]-0x1,_0x3103b6;_0x17bb9f>=0x0;_0x17bb9f--)(_0x3103b6=_0x3b4ac2[_0x17bb9f])&&(_0x3426b3=_0x3103b6(_0x3426b3)||_0x3426b3);return _0x3426b3;},_0x56f071=(_0x157f23,_0x5978a8)=>(_0x596668,_0x37ab9c)=>_0x5978a8(_0x596668,_0x37ab9c,_0x157f23);let _0x54c140=class extends _0x18ca73[_0x4a00e7(0x22f)]{constructor(_0x5e3313,_0x9007a0,_0xb8d8b3){const _0x2e1400=_0x4a00e7;super(),_0x41f19e(this,_0x2e1400(0x248),new Map()),_0x41f19e(this,_0x2e1400(0x312),new _0x16b079[(_0x2e1400(0x2a9))]()),(this[_0x2e1400(0x15d)]=_0x5e3313,this[_0x2e1400(0x1ab)]=_0x9007a0,this[_0x2e1400(0x280)]=_0xb8d8b3,this[_0x2e1400(0x1ee)]());}[_0x4a00e7(0x264)](){const _0x5732cc=_0x4a00e7;super[_0x5732cc(0x264)](),this['_entityInit$'][_0x5732cc(0x2df)](),this[_0x5732cc(0x248)][_0x5732cc(0x28f)](_0x5bbb8f=>_0x5bbb8f[_0x5732cc(0x264)]());}[_0x4a00e7(0x265)](_0x2b391b){const _0x3f1fdb=_0x4a00e7;return this[_0x3f1fdb(0x248)][_0x3f1fdb(0x133)](_0x2b391b)?this[_0x3f1fdb(0x248)][_0x3f1fdb(0x202)](_0x2b391b)[_0x3f1fdb(0x14e)]:this[_0x3f1fdb(0x312)]['pipe'](_0x16b079['filter'](_0x2be5e5=>_0x2be5e5[_0x3f1fdb(0x2d2)]===_0x2b391b),_0x16b079[_0x3f1fdb(0x22e)](_0x31a04a=>_0x31a04a['cursorInfo$']));}[_0x4a00e7(0x1ee)](){const _0x20995a=_0x4a00e7;this[_0x20995a(0x15d)]['getTypeOfUnitAdded$'](_0x18ca73[_0x20995a(0x113)][_0x20995a(0x158)])[_0x20995a(0x217)](_0x16b079[_0x20995a(0x18a)](this['dispose$']))[_0x20995a(0x12b)](async _0x33cfdd=>{const _0x31ab35=_0x20995a,_0xec2e07=_0x33cfdd[_0x31ab35(0x1fa)](),_0x13cdca=await this[_0x31ab35(0x374)](_0xec2e07);this['_entityInit$'][_0x31ab35(0x274)](_0x13cdca),this[_0x31ab35(0x248)][_0x31ab35(0x329)](_0xec2e07,_0x13cdca);}),this[_0x20995a(0x15d)][_0x20995a(0x37b)](_0x18ca73[_0x20995a(0x113)][_0x20995a(0x2a3)])[_0x20995a(0x217)](_0x16b079[_0x20995a(0x18a)](this['dispose$']))['pipe'](_0x16b079[_0x20995a(0x156)](_0x28937d=>!_0x28937d['getUnitId']()[_0x20995a(0x17c)]('__')))['subscribe'](async _0x105625=>{const _0xcc4545=_0x20995a,_0x2ff7a8=_0x105625['getUnitId'](),_0x5c95a0=await this[_0xcc4545(0x21d)](_0x2ff7a8);this[_0xcc4545(0x312)]['next'](_0x5c95a0),this[_0xcc4545(0x248)][_0xcc4545(0x329)](_0x2ff7a8,_0x5c95a0);}),_0x16b079['merge'](this['_univerInstanceService'][_0x20995a(0x2a1)](_0x18ca73['UniverInstanceType']['UNIVER_DOC']),this[_0x20995a(0x15d)]['getTypeOfUnitDisposed$'](_0x18ca73['UniverInstanceType'][_0x20995a(0x158)]))[_0x20995a(0x217)](_0x16b079[_0x20995a(0x18a)](this['dispose$']))[_0x20995a(0x12b)](_0x98b485=>{const _0x1cc745=_0x20995a,_0x5a70a6=_0x98b485['getUnitId'](),_0x443164=this[_0x1cc745(0x248)]['get'](_0x5a70a6);_0x443164&&(_0x443164[_0x1cc745(0x264)](),this[_0x1cc745(0x248)][_0x1cc745(0x1e2)](_0x5a70a6));});}async[_0x4a00e7(0x374)](_0x1b9cf3){const _0x445dad=_0x4a00e7,_0x5ab133=await this[_0x445dad(0x280)][_0x445dad(0x355)](_0x1b9cf3),_0x576c2e=this[_0x445dad(0x1ab)][_0x445dad(0x132)](_0x42c0ec,_0x1b9cf3,_0x5ab133);return _0x576c2e[_0x445dad(0x2bd)](),_0x576c2e;}async[_0x4a00e7(0x21d)](_0x5d2e90){const _0x50b496=_0x4a00e7,_0x1ce597=await this[_0x50b496(0x280)][_0x50b496(0x355)](_0x5d2e90),_0x5d1a61=this[_0x50b496(0x1ab)][_0x50b496(0x132)](_0x5d9194,_0x5d2e90,_0x1ce597);return _0x5d1a61[_0x50b496(0x2bd)](),_0x5d1a61;}};_0x54c140=_0x3ecf4d([_0x56f071(0x0,_0x18ca73[_0x4a00e7(0x196)]),_0x56f071(0x1,_0x18ca73['Inject'](_0x18ca73['Injector'])),_0x56f071(0x2,_0x18ca73['Inject'](_0x2fe882[_0x4a00e7(0x26f)]))],_0x54c140);const _0x533c05=0x14,_0x43d972=0xc8,_0x137d3f=0x4,_0x26844e=0x5;function _0x5c83c7(_0x1a8b69,_0x285d22){const _0x7502e9=_0x4a00e7;let {radius:_0x57657e,width:_0x22eecc,height:_0x28c47e}=_0x285d22;_0x57657e=_0x57657e!=null?_0x57657e:0x0,_0x22eecc=_0x22eecc!=null?_0x22eecc:0x1e,_0x28c47e=_0x28c47e!=null?_0x28c47e:0x1e;let _0x47a657=0x0,_0x2530af=0x0,_0x3368bd=0x0;_0x47a657=_0x2530af=_0x3368bd=Math[_0x7502e9(0x2bb)](_0x57657e,_0x22eecc/0x2,_0x28c47e/0x2),_0x1a8b69[_0x7502e9(0x332)](),_0x1a8b69[_0x7502e9(0x245)](_0x47a657,0x0),_0x1a8b69[_0x7502e9(0x2c5)](_0x22eecc-_0x2530af,0x0),_0x1a8b69[_0x7502e9(0x10b)](_0x22eecc-_0x2530af,_0x2530af,_0x2530af,Math['PI']*0x3/0x2,0x0,!0x1),_0x1a8b69[_0x7502e9(0x2c5)](_0x22eecc,_0x28c47e-_0x3368bd),_0x1a8b69[_0x7502e9(0x10b)](_0x22eecc-_0x3368bd,_0x28c47e-_0x3368bd,_0x3368bd,0x0,Math['PI']/0x2,!0x1),_0x1a8b69[_0x7502e9(0x2c5)](0x0,_0x28c47e),_0x1a8b69[_0x7502e9(0x2c5)](0x0,_0x47a657),_0x1a8b69[_0x7502e9(0x10b)](_0x47a657,_0x47a657,_0x47a657,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1a8b69[_0x7502e9(0x378)](),_0x285d22['fill']&&(_0x1a8b69[_0x7502e9(0x2ab)](),_0x1a8b69[_0x7502e9(0x2f6)]=_0x285d22[_0x7502e9(0x1a5)],_0x285d22[_0x7502e9(0x36b)]===_0x7502e9(0x1cd)?_0x1a8b69[_0x7502e9(0x1a5)](_0x7502e9(0x1cd)):_0x1a8b69[_0x7502e9(0x1a5)](),_0x1a8b69[_0x7502e9(0x112)]());}class _0x43f643 extends _0x1000a2[_0x4a00e7(0x263)]{constructor(_0x2dd468,_0x2601ad){const _0x5214c3=_0x4a00e7;super(_0x2dd468,_0x2601ad),_0x41f19e(this,_0x5214c3(0x111)),_0x41f19e(this,_0x5214c3(0x2e1)),(this[_0x5214c3(0x111)]=_0x2601ad==null?void 0x0:_0x2601ad[_0x5214c3(0x111)],this['text']=_0x2601ad==null?void 0x0:_0x2601ad[_0x5214c3(0x2e1)]);}static['drawWith'](_0x49bb75,_0x124f11){const _0x216c88=_0x4a00e7,{text:_0x17e9aa,color:_0x425f52}=_0x124f11;_0x49bb75['save'](),_0x49bb75[_0x216c88(0x2ed)]=_0x216c88(0x1b9);const _0x1350f3=_0x49bb75['measureText'](_0x17e9aa)[_0x216c88(0x138)],_0x20e76c=Math['min'](_0x1350f3+0x2*_0x137d3f,_0x43d972);_0x5c83c7(_0x49bb75,{'height':_0x533c05,'radius':0x4,'width':_0x20e76c,'fill':_0x425f52}),_0x49bb75['fillStyle']=_0x216c88(0x148);const _0x2068e0=_0x137d3f,_0x18d442=_0x533c05-_0x26844e,_0x1bd4e6=_0x43d972-0x2*_0x137d3f;if(_0x1350f3>_0x1bd4e6){let _0x28a16b='',_0x317d29=0x0;for(const _0x1d4319 of _0x17e9aa){const _0x5cea43=_0x49bb75['measureText'](_0x1d4319)[_0x216c88(0x138)];if(_0x317d29+_0x5cea43<=_0x1bd4e6-_0x49bb75['measureText'](_0x216c88(0x2f7))[_0x216c88(0x138)])_0x28a16b+=_0x1d4319,_0x317d29+=_0x5cea43;else{_0x28a16b+='...';break;}}_0x49bb75[_0x216c88(0x292)](_0x28a16b,_0x2068e0,_0x18d442);}else _0x49bb75[_0x216c88(0x292)](_0x17e9aa,_0x2068e0,_0x18d442);_0x49bb75['restore']();}[_0x4a00e7(0x331)](_0x12bad4){const _0x581874=_0x4a00e7;_0x43f643[_0x581874(0x1bf)](_0x12bad4,this);}}const _0x16a291='collab-text-anchor-',_0x234631=_0x4a00e7(0x35c),_0x4c8a0f=_0x4a00e7(0x125),_0x2607fb=0x6,_0x46a110=1.5,_0x103a7c=0x4,_0x41d2df=1.5,_0x257295='rgba(255,\x20255,\x20255,\x200.01)';class _0x59a7c4{constructor(_0x1cd139,_0x50fe20,_0x545cda,_0x1c0ae9){const _0x4981bd=_0x4a00e7;_0x41f19e(this,_0x4981bd(0x1f1),[]),_0x41f19e(this,_0x4981bd(0xf8),null),_0x41f19e(this,_0x4981bd(0x1f3),null),_0x41f19e(this,_0x4981bd(0x181),null),_0x41f19e(this,'_hideTimer',null),_0x41f19e(this,_0x4981bd(0x240),null),(this[_0x4981bd(0x2d9)]=_0x1cd139,this[_0x4981bd(0x13e)]=_0x50fe20,this[_0x4981bd(0x15e)]=_0x545cda,this[_0x4981bd(0x163)]=_0x1c0ae9,this[_0x4981bd(0x349)]());}set[_0x4a00e7(0x325)](_0x1ac480){const _0x2ae433=_0x4a00e7;_0x1ac480?(this[_0x2ae433(0x181)]&&this['_anchorDot'][_0x2ae433(0x330)](),this[_0x2ae433(0x1f3)]&&this[_0x2ae433(0x1f3)]['show']()):(this[_0x2ae433(0x181)]&&this['_anchorDot']['show'](),this[_0x2ae433(0x1f3)]&&this[_0x2ae433(0x1f3)][_0x2ae433(0x330)]());}[_0x4a00e7(0x264)](){const _0x27f221=_0x4a00e7;for(const _0x240c4e of this['_shapes'])_0x240c4e[_0x27f221(0x264)]();this[_0x27f221(0x1f3)]&&this['_textBubble'][_0x27f221(0x264)](),this[_0x27f221(0x181)]&&this[_0x27f221(0x181)][_0x27f221(0x264)](),this['_anchor']&&this[_0x27f221(0xf8)][_0x27f221(0x264)](),this[_0x27f221(0x240)]&&this[_0x27f221(0x240)]();}[_0x4a00e7(0x349)](){const _0x1e8d12=_0x4a00e7;var _0x4a1b2a;const {_docSkeleton:_0x35ef7f,_document:_0x8bc468}=this,{color:_0x351a8a,name:_0x3a9d85,ranges:_0x1469b4}=this[_0x1e8d12(0x2d9)],_0xb6350b=_0x8bc468[_0x1e8d12(0x13a)](),{docsLeft:_0x39daf3,docsTop:_0x538f8c}=_0xb6350b,_0x4ab44=new _0x41c79e[(_0x1e8d12(0x17d))](_0xb6350b,_0x35ef7f);for(const {startOffset:_0xbf9e23,endOffset:_0x235cfb,rangeType:_0x27ec86,segmentId:_0x2d9845,segmentPage:_0x58a801,collapsed:_0x5915c4,isActive:_0x1cdb6b}of _0x1469b4){const _0x4c1aff=_0x35ef7f[_0x1e8d12(0x108)](_0xbf9e23,!0x0,_0x2d9845,_0x58a801);let _0x51157c=_0x35ef7f['findNodePositionByCharIndex'](_0x235cfb,!0x0,_0x2d9845,_0x58a801);if(_0x51157c==null&&(_0x51157c=_0x35ef7f[_0x1e8d12(0x108)](_0x235cfb-0x1,!0x1,_0x2d9845,_0x58a801)),_0x1cdb6b){const {contentBoxPointGroup:_0x5a5889}=_0x4ab44[_0x1e8d12(0x22b)](_0x51157c,_0x51157c);if(_0x5a5889[_0x1e8d12(0x256)]===0x0)continue;this['_drawAnchor'](_0x351a8a,_0x5a5889,_0x39daf3,_0x538f8c,_0x3a9d85),this[_0x1e8d12(0x240)]=this[_0x1e8d12(0x2a5)]();}if(_0x4c1aff&&_0x51157c){if(_0x27ec86===_0x18ca73[_0x1e8d12(0x142)][_0x1e8d12(0x252)]){const _0x55e1cf=new _0x41c79e[(_0x1e8d12(0x1ff))](_0xb6350b,_0x35ef7f),{pointGroup:_0x2ffeb7}=(_0x4a1b2a=_0x55e1cf[_0x1e8d12(0x22b)](_0x4c1aff,_0x51157c))!=null?_0x4a1b2a:{};if(_0x2ffeb7==null||_0x2ffeb7[_0x1e8d12(0x256)]===0x0)continue;this[_0x1e8d12(0x295)](_0x351a8a,_0x2ffeb7,_0x39daf3,_0x538f8c);}else{if(!_0x5915c4){const {borderBoxPointGroup:_0x3ed143}=_0x4ab44[_0x1e8d12(0x22b)](_0x4c1aff,_0x51157c);if(_0x3ed143['length']===0x0)continue;this[_0x1e8d12(0x1ae)](_0x351a8a,_0x3ed143,_0x39daf3,_0x538f8c);}}}}}[_0x4a00e7(0x106)](_0x593b69,_0x49e9f6,_0x1cb2dc,_0x414976,_0x3955c5){const _0x3884a7=_0x4a00e7,_0x54c811=this[_0x3884a7(0x373)](_0x49e9f6),{left:_0x3061cd,top:_0x46a5e7,height:_0x198abe}=_0x54c811,_0x42f2a6=this[_0x3884a7(0x2f2)](),_0x155caa=_0x41d2df/_0x42f2a6,_0x2e6bb2=new _0x1000a2['Rect'](_0x16a291+_0x18ca73[_0x3884a7(0x368)](_0x2607fb),{'left':_0x3061cd+_0x1cb2dc-_0x155caa,'top':_0x46a5e7+_0x414976,'height':_0x198abe,'width':_0x46a110,'fill':_0x593b69||_0x1000a2[_0x3884a7(0x2e3)](_0x18ca73[_0x3884a7(0xff)][_0x3884a7(0x2e7)],0x0),'strokeWidth':_0x155caa,'stroke':_0x257295,'evented':!0x0});this[_0x3884a7(0xf8)]=_0x2e6bb2,this[_0x3884a7(0x13e)][_0x3884a7(0x2a7)](_0x2e6bb2,_0x41c79e[_0x3884a7(0xf6)]);const _0x36a379=new _0x1000a2['Rect'](_0x16a291+_0x18ca73[_0x3884a7(0x368)](_0x2607fb),{'left':_0x3061cd+_0x1cb2dc-_0x155caa,'top':_0x46a5e7+_0x414976-_0x103a7c/0x2,'height':_0x103a7c,'width':_0x103a7c,'fill':_0x593b69||_0x1000a2[_0x3884a7(0x2e3)](_0x18ca73[_0x3884a7(0xff)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x593b69||_0x1000a2['getColor'](_0x18ca73[_0x3884a7(0xff)][_0x3884a7(0x2e7)],0x0),'evented':!0x1});this['_anchorDot']=_0x36a379,this[_0x3884a7(0x13e)]['addObject'](_0x36a379,_0x41c79e['TEXT_RANGE_LAYER_INDEX']);const _0x37c59a=new _0x43f643(_0x16a291+_0x18ca73[_0x3884a7(0x368)](_0x2607fb),{'left':_0x3061cd+_0x1cb2dc-_0x155caa,'top':_0x46a5e7+_0x414976-_0x533c05,'text':_0x3955c5,'color':_0x593b69});this[_0x3884a7(0x1f3)]=_0x37c59a,this[_0x3884a7(0x13e)][_0x3884a7(0x2a7)](_0x37c59a,_0x41c79e[_0x3884a7(0xf6)]),this[_0x3884a7(0x325)]=!0x1;}[_0x4a00e7(0x2a5)](){const _0x378c67=_0x4a00e7,_0x5cfd47=this[_0x378c67(0xf8)][_0x378c67(0x25d)][_0x378c67(0x231)](()=>{this['_hover']=!0x0;}),_0x2dcb4f=this['_anchor']['onPointerLeave$'][_0x378c67(0x231)](()=>{const _0x4dee9a=_0x378c67;this[_0x4dee9a(0x1cf)]&&clearTimeout(this[_0x4dee9a(0x1cf)]),this[_0x4dee9a(0x1cf)]=setTimeout(()=>{const _0x34f554=_0x4dee9a;this[_0x34f554(0x325)]=!0x1;},0x7d0);});return()=>{const _0x4ce7eb=_0x378c67;_0x5cfd47[_0x4ce7eb(0x234)](),_0x2dcb4f['unsubscribe']();};}['_drawTextRange'](_0x48ad31,_0x370c85,_0x5e40ce,_0x3cea2b){const _0x133c5c=_0x4a00e7,_0x474b0b=new _0x18ca73[(_0x133c5c(0x169))](_0x48ad31)[_0x133c5c(0x2f1)](0.2)[_0x133c5c(0x1d1)](),_0x6a92f0=new _0x1000a2[(_0x133c5c(0x130))](_0x234631+_0x18ca73[_0x133c5c(0x368)](_0x2607fb),{'pointsGroup':_0x370c85,'fill':_0x474b0b||_0x1000a2[_0x133c5c(0x2e3)](_0x18ca73[_0x133c5c(0xff)]['black'],0.2),'left':_0x5e40ce,'top':_0x3cea2b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x133c5c(0x1f1)]['push'](_0x6a92f0),this['_scene'][_0x133c5c(0x2a7)](_0x6a92f0,_0x41c79e[_0x133c5c(0xf6)]);}[_0x4a00e7(0x295)](_0x17b8d6,_0x19effb,_0x49ce51,_0x3a5625){const _0x3a8b53=_0x4a00e7,_0x13196a=new _0x18ca73[(_0x3a8b53(0x169))](_0x17b8d6)['setAlpha'](0.2)[_0x3a8b53(0x1d1)](),_0x1eaac5=new _0x1000a2[(_0x3a8b53(0x130))](_0x4c8a0f+_0x18ca73['generateRandomId'](_0x2607fb),{'pointsGroup':_0x19effb,'fill':_0x13196a||_0x1000a2[_0x3a8b53(0x2e3)](_0x18ca73[_0x3a8b53(0xff)][_0x3a8b53(0x2e7)],0.2),'left':_0x49ce51,'top':_0x3a5625,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3a8b53(0x1f1)][_0x3a8b53(0x2b6)](_0x1eaac5),this['_scene'][_0x3a8b53(0x2a7)](_0x1eaac5,_0x41c79e[_0x3a8b53(0xf6)]);}['_getAnchorBounding'](_0x3c5a76){const _0x437661=_0x3c5a76[0x0],_0x559646=_0x437661[0x0],_0x5a3605=_0x437661[0x2],{x:_0x57a5ea,y:_0x5a7429}=_0x559646,{x:_0x8a22c9,y:_0x32f977}=_0x5a3605;return{'left':_0x57a5ea,'top':_0x5a7429,'width':_0x8a22c9-_0x57a5ea,'height':_0x32f977-_0x5a7429};}[_0x4a00e7(0x2f2)](){const _0x52ccfa=_0x4a00e7,{scaleX:_0x2e9b64,scaleY:_0x1588ec}=this['_scene'][_0x52ccfa(0x376)]();return Math[_0x52ccfa(0x226)](_0x2e9b64,_0x1588ec);}}var _0x7aa878=Object['getOwnPropertyDescriptor'],_0x334df1=(_0x1ab568,_0x4fe8e0,_0x279541,_0x4188f5)=>{const _0x5a6431=_0x4a00e7;for(var _0x6fd4e0=_0x4188f5>0x1?void 0x0:_0x4188f5?_0x7aa878(_0x4fe8e0,_0x279541):_0x4fe8e0,_0x2adf54=_0x1ab568[_0x5a6431(0x256)]-0x1,_0x140c97;_0x2adf54>=0x0;_0x2adf54--)(_0x140c97=_0x1ab568[_0x2adf54])&&(_0x6fd4e0=_0x140c97(_0x6fd4e0)||_0x6fd4e0);return _0x6fd4e0;},_0x508f15=(_0x13ac95,_0x44e3ff)=>(_0x58455b,_0x4f63c9)=>_0x44e3ff(_0x58455b,_0x4f63c9,_0x13ac95);let _0x4067e7=class extends _0x18ca73[_0x4a00e7(0x22f)]{constructor(_0x329c93,_0x5bd619,_0x36f21d,_0x37d33b,_0x2d3014){const _0x448359=_0x4a00e7;super(),_0x41f19e(this,_0x448359(0x347),[]),_0x41f19e(this,_0x448359(0x123),[]),(this[_0x448359(0x18d)]=_0x329c93,this['_docSkeletonManagerService']=_0x5bd619,this[_0x448359(0x270)]=_0x36f21d,this[_0x448359(0x29c)]=_0x37d33b,this['_themeService']=_0x2d3014,this[_0x448359(0x1ee)]());}[_0x4a00e7(0x1ee)](){const _0x273023=_0x4a00e7,_0x5c0e28=this[_0x273023(0x18d)][_0x273023(0x36e)],_0x40aa8d=this[_0x273023(0x30f)];this[_0x273023(0x2a8)](_0x16b079[_0x273023(0x36d)]([this['_collabCursorController'][_0x273023(0x265)](_0x5c0e28),this[_0x273023(0x22c)][_0x273023(0x19a)]])[_0x273023(0x217)](_0x4dfd3a[_0x273023(0x33d)](([_0x3eccee,_0xee036a])=>({'skeleton':_0x40aa8d[_0x273023(0x18f)](),'cursors':[..._0x3eccee[_0x273023(0x2a4)]()][_0x273023(0x353)](_0x3c3566=>({..._0x3c3566,'color':this[_0x273023(0x22c)]['getColorFromTheme'](_0x3c3566[_0x273023(0x111)])}))})))[_0x273023(0x12b)](_0x96bef7=>{const _0x6128d7=_0x273023;if(this[_0x6128d7(0x309)](),_0x96bef7){const {skeleton:_0x293601,cursors:_0x1d5c41}=_0x96bef7;this[_0x6128d7(0x367)](_0x293601,_0x1d5c41);}})),this[_0x273023(0x11f)](),this[_0x273023(0x18e)]();}[_0x4a00e7(0x367)](_0x24e9f1,_0x3dee78){const _0x386a7c=_0x4a00e7,{scene:_0x4c8148,mainComponent:_0x2464ad}=this['_context'],_0x15d258=_0x3dee78['map'](_0x419648=>new _0x59a7c4(_0x419648,_0x4c8148,_0x24e9f1,_0x2464ad));this['_cursorShapes']=_0x15d258,this[_0x386a7c(0x123)]=_0x3dee78;}[_0x4a00e7(0x150)](){const _0x3777c3=_0x4a00e7;this[_0x3777c3(0x309)]();const {scene:_0x5e9765,mainComponent:_0x2aaad7}=this['_context'],_0x31cc18=this['_docSkeletonManagerService'][_0x3777c3(0x18f)](),_0x42e251=this['_cursors'][_0x3777c3(0x33d)](_0x501c46=>new _0x59a7c4(_0x501c46,_0x5e9765,_0x31cc18,_0x2aaad7));this[_0x3777c3(0x347)]=_0x42e251;}[_0x4a00e7(0x309)](){const _0x4fe570=_0x4a00e7;this[_0x4fe570(0x347)][_0x4fe570(0x28f)](_0x10b9ae=>_0x10b9ae[_0x4fe570(0x264)]()),this[_0x4fe570(0x347)]=[];}['_initCommandExecutedListener'](){const _0x330ddc=_0x4a00e7,_0x16d73f=[_0x41c79e[_0x330ddc(0x167)]['id']];this[_0x330ddc(0x2a8)](this['_commandService']['onCommandExecuted'](_0x46eb40=>{const _0x4e5078=_0x330ddc;_0x16d73f[_0x4e5078(0x1d8)](_0x46eb40['id'])&&_0x46eb40[_0x4e5078(0x2de)][_0x4e5078(0x36e)]===this[_0x4e5078(0x18d)][_0x4e5078(0x36e)]&&this['_refreshCollabCursors']();}));}[_0x4a00e7(0x11f)](){const _0x1ec650=_0x4a00e7;this[_0x1ec650(0x2a8)](_0x18ca73[_0x1ec650(0x35e)](this[_0x1ec650(0x18d)][_0x1ec650(0x281)][_0x1ec650(0x12c)])[_0x1ec650(0x217)](_0x4dfd3a[_0x1ec650(0x156)](_0x1df755=>_0x1df755[_0x1ec650(0x2a0)]===_0x1000a2['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x1ec650(0x152)]),_0x4dfd3a[_0x1ec650(0x121)](0x10))[_0x1ec650(0x12b)](()=>{const _0x4a50a5=_0x1ec650;this[_0x4a50a5(0x150)]();}));}};_0x4067e7=_0x334df1([_0x508f15(0x1,_0x18ca73[_0x4a00e7(0x29b)](_0x40419e['DocSkeletonManagerService'])),_0x508f15(0x2,_0x18ca73[_0x4a00e7(0x29b)](_0x54c140)),_0x508f15(0x3,_0x18ca73[_0x4a00e7(0x2ea)]),_0x508f15(0x4,_0x18ca73['Inject'](_0x18ca73[_0x4a00e7(0x1bb)]))],_0x4067e7);const _0x4a7550=0x1,_0x24fa2f=1.5;class _0x4044b0 extends _0x1000a2['Shape']{constructor(_0xe162b,_0x409745){const _0x5a104b=_0x4a00e7;super(_0xe162b,_0x409745),_0x41f19e(this,_0x5a104b(0x316)),_0x41f19e(this,'_hovered',!0x1),_0x41f19e(this,'_range'),_0x41f19e(this,_0x5a104b(0x1f7),''),_0x41f19e(this,_0x5a104b(0x310),_0x5a104b(0xf1)),_0x41f19e(this,_0x5a104b(0x300)),(_0x409745&&this[_0x5a104b(0x2da)](_0x409745),this[_0x5a104b(0x25d)][_0x5a104b(0x231)](()=>this[_0x5a104b(0x2da)]({'hovered':!0x0})),this[_0x5a104b(0x2e8)][_0x5a104b(0x231)](()=>this[_0x5a104b(0x2da)]({'hovered':!0x1})));}[_0x4a00e7(0x2da)](_0x497cb0){const _0x180079=_0x4a00e7;var _0x53808a,_0x25c7f8,_0x5a2eea,_0x15c4c3,_0x417e56,_0x44ded8;this[_0x180079(0x316)]=(_0x53808a=_0x497cb0['color'])!=null?_0x53808a:this['_color'],this[_0x180079(0x354)]=(_0x25c7f8=_0x497cb0[_0x180079(0x301)])!=null?_0x25c7f8:this[_0x180079(0x354)],this['_range']=(_0x5a2eea=_0x497cb0[_0x180079(0x12f)])!=null?_0x5a2eea:this[_0x180079(0x11b)],this[_0x180079(0x1f7)]=(_0x15c4c3=_0x497cb0[_0x180079(0x287)])!=null?_0x15c4c3:this[_0x180079(0x1f7)],this['_labelPosition']=(_0x417e56=_0x497cb0[_0x180079(0x24b)])!=null?_0x417e56:this[_0x180079(0x310)],this[_0x180079(0x300)]=(_0x44ded8=_0x497cb0[_0x180079(0x120)])!=null?_0x44ded8:this[_0x180079(0x300)],this[_0x180079(0x2d0)]({'width':_0x497cb0[_0x180079(0x138)],'height':_0x497cb0['height']});}[_0x4a00e7(0x17a)](_0x3de351){const _0x4dda93=_0x4a00e7,{row:_0x1612bb,column:_0x420bba}=_0x3de351;if(_0x1612bb>=this[_0x4dda93(0x11b)][_0x4dda93(0x1eb)]&&_0x1612bb<=this['_range'][_0x4dda93(0x192)]&&_0x420bba>=this['_range'][_0x4dda93(0x372)]&&_0x420bba<=this[_0x4dda93(0x11b)][_0x4dda93(0x1fd)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x4dda93(0x2da)]({'hovered':!0x1});}[_0x4a00e7(0x1ef)](_0x4f1fa0){return!0x1;}[_0x4a00e7(0x331)](_0x18d73b){const _0x4cf531=_0x4a00e7;_0x1000a2[_0x4cf531(0x285)]['drawWith'](_0x18d73b,{'width':this[_0x4cf531(0x138)],'height':this['height'],'strokeWidth':_0x24fa2f,'stroke':this[_0x4cf531(0x316)],'evented':!0x1,'fill':this[_0x4cf531(0x300)]}),this[_0x4cf531(0x354)]&&(_0x18d73b['save'](),_0x18d73b[_0x4cf531(0x224)](0x1,0x0,0x0,0x1,this['width'],this[_0x4cf531(0x310)]===_0x4cf531(0x33b)?0x0:-_0x533c05),_0x43f643[_0x4cf531(0x1bf)](_0x18d73b,{'text':this['_name'],'color':this[_0x4cf531(0x316)]}),_0x18d73b[_0x4cf531(0x112)]());}}var _0x17acec=Object[_0x4a00e7(0x1f9)],_0x456c2a=(_0x1d055d,_0x3f31c8,_0x520918,_0x15fe87)=>{const _0x3975c4=_0x4a00e7;for(var _0x1e68a6=_0x15fe87>0x1?void 0x0:_0x15fe87?_0x17acec(_0x3f31c8,_0x520918):_0x3f31c8,_0x2311cb=_0x1d055d[_0x3975c4(0x256)]-0x1,_0x48e93d;_0x2311cb>=0x0;_0x2311cb--)(_0x48e93d=_0x1d055d[_0x2311cb])&&(_0x1e68a6=_0x48e93d(_0x1e68a6)||_0x1e68a6);return _0x1e68a6;},_0x37136e=(_0x49f681,_0x517bf7)=>(_0x548388,_0x39ec10)=>_0x517bf7(_0x548388,_0x39ec10,_0x49f681);const _0x3800ec=0x1389;let _0xf7456=class extends _0x18ca73['RxDisposable']{constructor(_0x37e7a6,_0xfe048d,_0x1dfb8b,_0x6145e1){const _0x378324=_0x4a00e7;super(),_0x41f19e(this,_0x378324(0x123),new Set()),_0x41f19e(this,_0x378324(0x28d),null),(this['_context']=_0x37e7a6,this['_sheetSkeletonManagerService']=_0xfe048d,this[_0x378324(0x270)]=_0x1dfb8b,this['_themeService']=_0x6145e1,this[_0x378324(0x1ee)]());}['_init'](){const _0x549020=_0x4a00e7;this[_0x549020(0x131)][_0x549020(0x1d5)]['pipe'](_0x4dfd3a[_0x549020(0x18a)](this[_0x549020(0x216)]),_0x4dfd3a['switchMap'](_0x458d9c=>{const _0x37ff3b=_0x549020;if(_0x458d9c){const _0x5f95b7=_0x458d9c['sheetId'];return _0x16b079[_0x37ff3b(0x36d)](this[_0x37ff3b(0x270)]['getCollabCursors$'](this[_0x37ff3b(0x18d)]['unitId']),this[_0x37ff3b(0x22c)][_0x37ff3b(0x19a)])[_0x37ff3b(0x217)](_0x4dfd3a[_0x37ff3b(0x33d)](([_0x1354d9,_0x5a45d3])=>{const _0x8d7f70=new Map();return _0x1354d9['forEach']((_0x71fb14,_0x28cdbb)=>{const _0x263bc2=_0x27be;if(_0x71fb14[_0x263bc2(0x23c)]===_0x5f95b7){const _0x3aa364={..._0x71fb14};_0x3aa364[_0x263bc2(0x111)]=this[_0x263bc2(0x22c)][_0x263bc2(0x218)](_0x71fb14['color']),_0x8d7f70[_0x263bc2(0x329)](_0x28cdbb,_0x3aa364);}}),{'skeleton':_0x458d9c,'cursors':_0x8d7f70};}));}return _0x16b079['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0xd9779e,cursors:_0x4526c2})=>{const _0x13f30e=_0x549020;this['_removeCollabCursors'](),_0xd9779e&&this[_0x13f30e(0x367)](_0xd9779e,_0x4526c2);}),this[_0x549020(0x131)]['currentSkeleton$']['subscribe'](_0x5b32fd=>{const _0x48fee0=_0x549020;if(_0x5b32fd==null)return;const {skeleton:_0x1fc2e7}=_0x5b32fd,{scene:_0x36942d}=this[_0x48fee0(0x18d)];_0x36942d[_0x48fee0(0x1a9)]['subscribeEvent'](_0x18ca73[_0x48fee0(0x258)](_0x488829=>{const _0x3cca67=_0x48fee0;var _0x2f889e,_0x59ee30;const {offsetX:_0x1c838b,offsetY:_0x5e3c2a}=_0x488829,{x:_0x11f557,y:_0x5336b9}=_0x36942d['getRelativeToViewportCoord'](_0x1000a2[_0x3cca67(0x12d)]['FromArray']([_0x1c838b,_0x5e3c2a])),{scaleX:_0x5f5852,scaleY:_0x2d9ba8}=_0x36942d[_0x3cca67(0x376)](),_0x4d51e1=_0x36942d[_0x3cca67(0x31d)](_0x1000a2[_0x3cca67(0x2fc)][_0x3cca67(0x20b)]),_0x49ee96=_0x36942d[_0x3cca67(0x193)](_0x1000a2[_0x3cca67(0x12d)]['FromArray']([_0x11f557,_0x5336b9]),_0x4d51e1),_0x5211e6=_0x1fc2e7['getCellPositionByOffset'](_0x1c838b,_0x5e3c2a,_0x5f5852,_0x2d9ba8,_0x49ee96);((_0x2f889e=this[_0x3cca67(0x28d)])==null?void 0x0:_0x2f889e['column'])===_0x5211e6['column']&&((_0x59ee30=this[_0x3cca67(0x28d)])==null?void 0x0:_0x59ee30[_0x3cca67(0x117)])===_0x5211e6[_0x3cca67(0x117)]||this['_cursors'][_0x3cca67(0x28f)](_0x22bd50=>{const _0x4b2cee=_0x3cca67;_0x22bd50[_0x4b2cee(0x17a)](_0x5211e6);});},0x64));});}['_updateCollabCursors'](_0x1ffac8,_0x360a94){const _0x4b45ba=_0x4a00e7;var _0x154391;const _0x2bfe57=(_0x154391=this[_0x4b45ba(0x131)][_0x4b45ba(0x15a)]())==null?void 0x0:_0x154391['skeleton'];if(!_0x2bfe57)return;const _0x1cfc01=this[_0x4b45ba(0x1da)]();if(!_0x1cfc01)return;this[_0x4b45ba(0x123)]['forEach'](_0x563f4d=>{const _0x54a90b=_0x4b45ba;_0x563f4d[_0x54a90b(0x1db)]();});const {scene:_0x4a4c72}=_0x1cfc01,_0xd531=_0x122edb(Array[_0x4b45ba(0x21f)](_0x360a94[_0x4b45ba(0x2a4)]()))[_0x4b45ba(0x33d)](_0x232e11=>{const _0x3efff9=_0x4b45ba,{color:_0x55e451,range:_0x266ab4,name:_0x51f35d,selection:_0x42acb8,sheetID:_0x317d31}=_0x232e11,{startColumn:_0x566e18,startRow:_0x2b54f0,endColumn:_0x8004f7,endRow:_0x315e86}=_0x266ab4,_0x285c1a=_0x2779ee[_0x3efff9(0xfc)](_0x2b54f0,_0x566e18,_0x4a4c72,_0x2bfe57),_0x5a5b1e=_0x2779ee['getCoordByCell'](_0x315e86,_0x8004f7,_0x4a4c72,_0x2bfe57),{columnHeaderHeightAndMarginTop:_0x22bd8a}=_0x2bfe57,{startX:_0x392de7,startY:_0x2591cf}=_0x285c1a,{endX:_0xcb7c05,endY:_0x433914}=_0x5a5b1e,_0x199246=_0xcb7c05-_0x392de7,_0x177af8=_0x433914-_0x2591cf,_0x3ecc0b={'labelPosition':_0x2591cf-_0x22bd8a>=_0x533c05?_0x3efff9(0xf1):'bottom','sheetID':_0x317d31,'range':_0x266ab4,'color':_0x55e451,'name':_0x51f35d,'selection':_0x42acb8,'left':_0x392de7,'top':_0x2591cf,'width':_0x199246,'height':_0x177af8,'evented':!0x1,'zIndex':_0x3800ec};return new _0x4044b0(_0x51f35d,_0x3ecc0b);});_0x4a4c72[_0x4b45ba(0x278)](_0xd531,_0x4a7550),this[_0x4b45ba(0x123)]=new Set(_0xd531);}[_0x4a00e7(0x309)](){const _0x1618f0=_0x4a00e7;var _0x822271;(_0x822271=this[_0x1618f0(0x123)])==null||_0x822271[_0x1618f0(0x28f)](_0x364d71=>_0x364d71[_0x1618f0(0x264)]());}[_0x4a00e7(0x1da)](){const _0x12814f=_0x4a00e7;return _0x2779ee[_0x12814f(0x1dd)](this[_0x12814f(0x18d)][_0x12814f(0x249)],this['_context']);}};_0xf7456=_0x456c2a([_0x37136e(0x1,_0x18ca73[_0x4a00e7(0x29b)](_0x2779ee[_0x4a00e7(0x14f)])),_0x37136e(0x2,_0x18ca73[_0x4a00e7(0x29b)](_0x54c140)),_0x37136e(0x3,_0x18ca73['Inject'](_0x18ca73['ThemeService']))],_0xf7456);function _0x122edb(_0x44b20c){const _0x59affb=_0x4a00e7,_0x483abb=new Map();return _0x44b20c[_0x59affb(0x28f)](_0x33d87f=>{const _0x3a7706=_0x59affb;if(_0x483abb[_0x3a7706(0x133)](_0x33d87f['selection'])){const _0x123588=_0x483abb['get'](_0x33d87f[_0x3a7706(0x137)]);_0x123588[_0x3a7706(0x287)]+=',\x20'+_0x33d87f[_0x3a7706(0x287)];}else _0x483abb[_0x3a7706(0x329)](_0x33d87f[_0x3a7706(0x137)],_0x33d87f);}),Array[_0x59affb(0x21f)](_0x483abb[_0x59affb(0x2a4)]());}var _0x85241=Object[_0x4a00e7(0x1f9)],_0x3b532d=(_0x3795ba,_0x5c2276,_0x5c4a65,_0x891dd2)=>{const _0xcb3448=_0x4a00e7;for(var _0x1b5650=_0x891dd2>0x1?void 0x0:_0x891dd2?_0x85241(_0x5c2276,_0x5c4a65):_0x5c2276,_0x32c24c=_0x3795ba[_0xcb3448(0x256)]-0x1,_0x411c56;_0x32c24c>=0x0;_0x32c24c--)(_0x411c56=_0x3795ba[_0x32c24c])&&(_0x1b5650=_0x411c56(_0x1b5650)||_0x1b5650);return _0x1b5650;},_0x54940d=(_0x4c66e8,_0x591cbf)=>(_0x2f8f78,_0x66b849)=>_0x591cbf(_0x2f8f78,_0x66b849,_0x4c66e8);let _0x3c5848=class extends _0x18ca73[_0x4a00e7(0x25b)]{constructor(_0x30bd5b,_0x4a7c6e,_0x1d17e6,_0x2e4bf6,_0x10a2d7,_0x471e9a){const _0x2247e8=_0x4a00e7;super(),this[_0x2247e8(0x1ba)]=_0x30bd5b,this['_localCacheService']=_0x4a7c6e,this['_collaborationUIEventService']=_0x1d17e6,this[_0x2247e8(0x27c)]=_0x2e4bf6,this[_0x2247e8(0x333)]=_0x10a2d7,this[_0x2247e8(0x18b)]=_0x471e9a,this[_0x2247e8(0x297)](),this[_0x2247e8(0x1a2)]();}[_0x4a00e7(0x297)](){const _0x56dfdd=_0x4a00e7;this[_0x56dfdd(0x2a8)](this[_0x56dfdd(0x1ba)]['registerBeforeClose'](()=>{const _0x87109d=_0x56dfdd;if(this[_0x87109d(0x16c)][_0x87109d(0x344)][_0x87109d(0x209)])return this[_0x87109d(0x18b)]['t'](_0x87109d(0x1cc));}));}[_0x4a00e7(0x1a2)](){const _0x1dc0ff=_0x4a00e7;this[_0x1dc0ff(0x2a8)](this[_0x1dc0ff(0x37e)][_0x1dc0ff(0x184)][_0x1dc0ff(0x12b)](_0x2c0a9a=>{const _0x153985=_0x1dc0ff;_0x2c0a9a['id']===_0x2fe882[_0x153985(0x176)]['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x153985(0x321)]({'type':_0x578c52[_0x153985(0x2d4)][_0x153985(0x1e0)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x2c0a9a['id']===_0x2fe882['CollaborationUIEventId'][_0x153985(0x261)]&&this[_0x153985(0x27c)][_0x153985(0x321)]({'type':_0x578c52[_0x153985(0x2d4)][_0x153985(0x1e0)],'content':this['_localeService']['t'](_0x153985(0x10c))}),_0x2c0a9a['id']===_0x2fe882[_0x153985(0x176)]['PERMISSION_DENIED']&&this[_0x153985(0x333)][_0x153985(0x321)]({'title':this[_0x153985(0x18b)]['t']('permission.title'),'content':this[_0x153985(0x18b)]['t']('permission.content'),'type':_0x153985(0x17e),'duration':0x0}),_0x2c0a9a['id']===_0x2fe882[_0x153985(0x176)][_0x153985(0x26c)]&&this[_0x153985(0x27c)][_0x153985(0x321)]({'type':_0x578c52['MessageType']['Error'],'content':this[_0x153985(0x18b)]['t']('collaboration.closeRoom')+'('+_0x2c0a9a[_0x153985(0x36f)]+')'}),_0x2c0a9a['id']===_0x2fe882['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0x153985(0x27c)][_0x153985(0x321)]({'type':_0x578c52[_0x153985(0x2d4)]['Warning'],'content':this[_0x153985(0x18b)]['t'](_0x2c0a9a[_0x153985(0x36f)]||'')}),_0x2c0a9a['id']===_0x2fe882[_0x153985(0x176)][_0x153985(0x20c)]&&this[_0x153985(0x27c)][_0x153985(0x321)]({'type':_0x578c52[_0x153985(0x2d4)]['Warning'],'content':this[_0x153985(0x18b)]['t'](_0x153985(0x198))}),_0x2c0a9a['id']===_0x2fe882[_0x153985(0x176)]['SOCKET_FAILED']&&this[_0x153985(0x27c)][_0x153985(0x321)]({'type':_0x578c52['MessageType']['Error'],'content':this[_0x153985(0x18b)]['t']('session.connection-failed')}),_0x2c0a9a['id']===_0x2fe882[_0x153985(0x176)][_0x153985(0x2c3)]&&this[_0x153985(0x27c)]['show']({'type':_0x578c52[_0x153985(0x2d4)][_0x153985(0x2fa)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};_0x3c5848=_0x3b532d([_0x54940d(0x0,_0x5121a3[_0x4a00e7(0x27d)]),_0x54940d(0x1,_0x2fe882[_0x4a00e7(0x190)]),_0x54940d(0x2,_0x18ca73[_0x4a00e7(0x29b)](_0x2fe882['CollaborationUIEventService'])),_0x54940d(0x3,_0x5121a3[_0x4a00e7(0x21b)]),_0x54940d(0x4,_0x5121a3[_0x4a00e7(0x2db)]),_0x54940d(0x5,_0x18ca73[_0x4a00e7(0x29b)](_0x18ca73['LocaleService']))],_0x3c5848);const _0x574e12=_0x4a00e7(0x1f0),_0x44c505={};var _0x1d59ad=Object[_0x4a00e7(0x1f9)],_0x222dbc=(_0x5a7a7b,_0x5a7fee,_0x10e8fd,_0x416c4d)=>{for(var _0x14e637=_0x416c4d>0x1?void 0x0:_0x416c4d?_0x1d59ad(_0x5a7fee,_0x10e8fd):_0x5a7fee,_0x1b83c5=_0x5a7a7b['length']-0x1,_0x5229e;_0x1b83c5>=0x0;_0x1b83c5--)(_0x5229e=_0x5a7a7b[_0x1b83c5])&&(_0x14e637=_0x5229e(_0x14e637)||_0x14e637);return _0x14e637;},_0x401a94=(_0x2df176,_0x23cd1b)=>(_0x459ab3,_0x431ac3)=>_0x23cd1b(_0x459ab3,_0x431ac3,_0x2df176);let _0x52e36c=class{constructor(_0x5497fa,_0x178c33){const _0x10814a=_0x4a00e7;this['_transformService']=_0x5497fa,this[_0x10814a(0x13b)]=_0x178c33;}[_0x4a00e7(0x2c6)](_0x3bf139){const _0x5ed89b=_0x4a00e7;this[_0x5ed89b(0x34b)](_0x3bf139),this[_0x5ed89b(0x205)](_0x3bf139);}[_0x4a00e7(0x146)](_0x1711a6){const _0x3a5e83=_0x4a00e7,{unitID:_0x462ac6}=_0x1711a6,_0x2d9589=this[_0x3a5e83(0x13b)][_0x3a5e83(0x201)](_0x462ac6)[_0x3a5e83(0x2f8)](_0x41c79e[_0x3a5e83(0x358)]),{redoCache:_0x1e79b1}=_0x2d9589[_0x3a5e83(0x1af)]();if(_0x1e79b1[_0x3a5e83(0x256)]===0x0)return _0x1711a6;let _0x3032c4=_0x18ca73[_0x3a5e83(0x1b3)][_0x3a5e83(0x1a3)](_0x1711a6[_0x3a5e83(0x37a)][0x0]);for(let _0x340f65=0x0;_0x340f65<_0x1e79b1[_0x3a5e83(0x256)];_0x340f65++){const _0x323c2f={'id':_0x3a5e83(0x20e),'params':{..._0x1e79b1[_0x340f65]}},_0x4e401c=this['_transformService'][_0x3a5e83(0x2d3)](_0x3032c4,_0x323c2f,!0x1);if(_0x518b96[_0x3a5e83(0x326)](_0x4e401c))throw _0x4e401c['error'];_0x3032c4=_0x4e401c[_0x3a5e83(0x203)];}return{..._0x18ca73['Tools'][_0x3a5e83(0x1a3)](_0x1711a6),'mutations':[_0x3032c4]};}[_0x4a00e7(0x34b)](_0xeb016d){const _0x11f986=_0x4a00e7,{unitID:_0x3695b0}=_0xeb016d,_0x2e93be=this[_0x11f986(0x13b)]['getRenderById'](_0x3695b0)[_0x11f986(0x2f8)](_0x41c79e[_0x11f986(0x358)]),{undoCache:_0x4a4e3e,redoCache:_0x8abba1}=_0x2e93be[_0x11f986(0x1af)]();if(_0x4a4e3e[_0x11f986(0x256)]===0x0||_0x8abba1[_0x11f986(0x256)]===0x0)return;const _0x10bb4e=[],_0x4a7c26=[];let _0x1ee22b=_0x18ca73[_0x11f986(0x1b3)][_0x11f986(0x1a3)](_0xeb016d['mutations'][0x0]),_0x15cce5=_0x18ca73['Tools']['deepClone'](_0xeb016d[_0x11f986(0x37a)][0x0]);for(let _0x5579e8=_0x4a4e3e[_0x11f986(0x256)]-0x1;_0x5579e8>=0x0;_0x5579e8--){const _0x22c591={'id':'doc.mutation.rich-text-editing','params':{..._0x4a4e3e[_0x5579e8]}},_0x5d9987={'id':_0x11f986(0x20e),'params':{..._0x8abba1[_0x5579e8]}},_0x3df05f=this[_0x11f986(0x1a6)]['transformMutation'](_0x1ee22b,_0x22c591,!0x1),_0x1e86d0=this[_0x11f986(0x1a6)][_0x11f986(0x2d3)](_0x15cce5,_0x5d9987,!0x1);if(_0x518b96[_0x11f986(0x326)](_0x3df05f))throw _0x3df05f[_0x11f986(0x17e)];if(_0x518b96[_0x11f986(0x326)](_0x1e86d0))throw _0x1e86d0[_0x11f986(0x17e)];_0x10bb4e['unshift'](_0x3df05f[_0x11f986(0x381)]['params']),_0x4a7c26[_0x11f986(0x1ca)](_0x1e86d0[_0x11f986(0x381)][_0x11f986(0x2de)]),_0x1ee22b=_0x3df05f[_0x11f986(0x203)],_0x15cce5=_0x1e86d0[_0x11f986(0x203)];}_0x2e93be[_0x11f986(0x34a)]({'undoCache':_0x10bb4e,'redoCache':_0x4a7c26});}['_transformPreviousActiveRange'](_0x5d2469){const _0x1b1010=_0x4a00e7,{unitID:_0x1d86b7}=_0x5d2469,_0x596e4d=this[_0x1b1010(0x13b)][_0x1b1010(0x201)](_0x1d86b7)[_0x1b1010(0x2f8)](_0x41c79e[_0x1b1010(0x358)]),_0x8c1e69=_0x596e4d[_0x1b1010(0x185)]();if(_0x8c1e69==null)return;const _0x1648bb=[{'id':_0x1b1010(0x20e),'params':{'unitId':_0x5d2469[_0x1b1010(0x2d2)],'actions':null,'textRanges':[_0x8c1e69]}}],_0x4fd3ad=this[_0x1b1010(0x1a6)]['transformMutationsWithChangeset'](_0x5d2469,_0x1648bb);if(!_0x518b96[_0x1b1010(0x291)](_0x4fd3ad))throw _0x4fd3ad['error'];const _0x586e90=_0x4fd3ad[_0x1b1010(0x381)][0x0][_0x1b1010(0x2de)][_0x1b1010(0x2eb)];Array['isArray'](_0x586e90)&&_0x586e90[_0x1b1010(0x256)]&&_0x596e4d[_0x1b1010(0xfe)](_0x586e90[0x0]);}};_0x52e36c=_0x222dbc([_0x401a94(0x0,_0x518b96[_0x4a00e7(0x16a)]),_0x401a94(0x1,_0x1000a2[_0x4a00e7(0x214)])],_0x52e36c);var _0x91fe56=Object[_0x4a00e7(0x1f9)],_0x48c7b0=(_0x1d40b5,_0x313afa,_0x365836,_0x53abfd)=>{const _0xc7e54a=_0x4a00e7;for(var _0x51e81a=_0x53abfd>0x1?void 0x0:_0x53abfd?_0x91fe56(_0x313afa,_0x365836):_0x313afa,_0x3f4b94=_0x1d40b5[_0xc7e54a(0x256)]-0x1,_0x3a8093;_0x3f4b94>=0x0;_0x3f4b94--)(_0x3a8093=_0x1d40b5[_0x3f4b94])&&(_0x51e81a=_0x3a8093(_0x51e81a)||_0x51e81a);return _0x51e81a;},_0x37a589=(_0x5b3dd6,_0xa087fc)=>(_0x1efb7e,_0x69ba0f)=>_0xa087fc(_0x1efb7e,_0x69ba0f,_0x5b3dd6);let _0x52b88a=class{constructor(_0x32037f,_0x51540e,_0x49212c){const _0x3392db=_0x4a00e7;this['_injector']=_0x32037f,this['_transformService']=_0x51540e,this[_0x3392db(0x239)]=_0x49212c;}[_0x4a00e7(0x206)](_0x247ef9){const _0x2061d2=_0x4a00e7;this[_0x2061d2(0x191)](_0x247ef9);}[_0x4a00e7(0x146)](_0xbcc541){const _0x202746=_0x4a00e7,{unitID:_0x3ea27b}=_0xbcc541,{collaboration:_0x328bdf}=this[_0x202746(0x239)]['getStateCache'](_0x3ea27b);if(_0x328bdf[_0x202746(0x256)]===0x0)return _0xbcc541;let _0x11dd33=_0x18ca73['Tools'][_0x202746(0x1a3)](_0xbcc541[_0x202746(0x37a)][0x0]);for(let _0x1e320c=0x0;_0x1e320c<_0x328bdf[_0x202746(0x256)];_0x1e320c++){const _0x4627fa={'id':_0x202746(0x20e),'params':{'unitId':_0x328bdf[_0x1e320c][_0x202746(0x36e)],..._0x328bdf[_0x1e320c][_0x202746(0x25e)]}},_0x184414=this[_0x202746(0x1a6)][_0x202746(0x2d3)](_0x11dd33,_0x4627fa,!0x1);if(_0x518b96[_0x202746(0x326)](_0x184414))throw _0x184414[_0x202746(0x17e)];_0x11dd33=_0x184414[_0x202746(0x203)];}return{..._0x18ca73[_0x202746(0x1b3)]['deepClone'](_0xbcc541),'mutations':[_0x11dd33]};}[_0x4a00e7(0x191)](_0xd33033){const _0x1d64c3=_0x4a00e7,{unitID:_0x1d1191}=_0xd33033,{history:_0x5cf010,collaboration:_0x12ee5e}=this[_0x1d64c3(0x239)][_0x1d64c3(0x173)](_0x1d1191);if(_0x5cf010[_0x1d64c3(0x256)]===0x0&&_0x12ee5e[_0x1d64c3(0x256)]===0x0)return;const _0x283c95=[],_0x499214=[];let _0x27ce30=_0x18ca73[_0x1d64c3(0x1b3)][_0x1d64c3(0x1a3)](_0xd33033[_0x1d64c3(0x37a)][0x0]),_0x21f8ee=_0x18ca73[_0x1d64c3(0x1b3)][_0x1d64c3(0x1a3)](_0xd33033[_0x1d64c3(0x37a)][0x0]);for(let _0x267b7c=_0x5cf010[_0x1d64c3(0x256)]-0x1;_0x267b7c>=0x0;_0x267b7c--){const _0x56615f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5cf010[_0x267b7c][_0x1d64c3(0x36e)],..._0x5cf010[_0x267b7c]['undoState']}},_0x313773={'id':_0x1d64c3(0x20e),'params':{'unitId':_0x5cf010[_0x267b7c][_0x1d64c3(0x36e)],..._0x5cf010[_0x267b7c][_0x1d64c3(0x25e)]}},_0xc21a95=this['_transformService'][_0x1d64c3(0x2d3)](_0x27ce30,_0x56615f,!0x1),_0x1e7ce1=this[_0x1d64c3(0x1a6)][_0x1d64c3(0x2d3)](_0x21f8ee,_0x313773,!0x1);if(_0x518b96[_0x1d64c3(0x326)](_0xc21a95))throw _0xc21a95[_0x1d64c3(0x17e)];if(_0x518b96['isTransformMutationFailure'](_0x1e7ce1))throw _0x1e7ce1[_0x1d64c3(0x17e)];_0x283c95['unshift']({..._0x5cf010[_0x267b7c],'undoState':_0xc21a95[_0x1d64c3(0x381)]['params'],'redoState':_0x1e7ce1[_0x1d64c3(0x381)][_0x1d64c3(0x2de)]}),_0x27ce30=_0xc21a95[_0x1d64c3(0x203)],_0x21f8ee=_0x1e7ce1[_0x1d64c3(0x203)];}_0x27ce30=_0x18ca73[_0x1d64c3(0x1b3)][_0x1d64c3(0x1a3)](_0xd33033[_0x1d64c3(0x37a)][0x0]),_0x21f8ee=_0x18ca73[_0x1d64c3(0x1b3)][_0x1d64c3(0x1a3)](_0xd33033[_0x1d64c3(0x37a)][0x0]);for(let _0x4d3636=_0x12ee5e[_0x1d64c3(0x256)]-0x1;_0x4d3636>=0x0;_0x4d3636--){const _0x10bf5a={'id':_0x1d64c3(0x20e),'params':{'unitId':_0x12ee5e[_0x4d3636][_0x1d64c3(0x36e)],..._0x12ee5e[_0x4d3636][_0x1d64c3(0x177)]}},_0x3f7957={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x12ee5e[_0x4d3636]['unitId'],..._0x12ee5e[_0x4d3636][_0x1d64c3(0x25e)]}},_0x481679=this[_0x1d64c3(0x1a6)][_0x1d64c3(0x2d3)](_0x27ce30,_0x10bf5a,!0x1),_0x35a7b6=this[_0x1d64c3(0x1a6)][_0x1d64c3(0x2d3)](_0x21f8ee,_0x3f7957,!0x1);if(_0x518b96[_0x1d64c3(0x326)](_0x481679))throw _0x481679['error'];if(_0x518b96[_0x1d64c3(0x326)](_0x35a7b6))throw _0x35a7b6[_0x1d64c3(0x17e)];_0x499214[_0x1d64c3(0x1ca)]({..._0x12ee5e[_0x4d3636],'undoState':_0x481679[_0x1d64c3(0x381)][_0x1d64c3(0x2de)],'redoState':_0x35a7b6[_0x1d64c3(0x381)][_0x1d64c3(0x2de)]}),_0x27ce30=_0x481679[_0x1d64c3(0x203)],_0x21f8ee=_0x35a7b6[_0x1d64c3(0x203)];}this[_0x1d64c3(0x239)][_0x1d64c3(0x303)](_0x1d1191,{'history':_0x283c95,'collaboration':_0x499214});}};_0x52b88a=_0x48c7b0([_0x37a589(0x0,_0x18ca73[_0x4a00e7(0x29b)](_0x18ca73['Injector'])),_0x37a589(0x1,_0x518b96[_0x4a00e7(0x16a)]),_0x37a589(0x2,_0x18ca73[_0x4a00e7(0x29b)](_0x41c79e[_0x4a00e7(0x1f6)]))],_0x52b88a);var _0x5e6b0f=Object[_0x4a00e7(0x1f9)],_0x16db4a=(_0x448dda,_0x2882f3,_0x5997ba,_0x1854ef)=>{const _0x196cce=_0x4a00e7;for(var _0x5cad98=_0x1854ef>0x1?void 0x0:_0x1854ef?_0x5e6b0f(_0x2882f3,_0x5997ba):_0x2882f3,_0xc78af3=_0x448dda[_0x196cce(0x256)]-0x1,_0xe1251e;_0xc78af3>=0x0;_0xc78af3--)(_0xe1251e=_0x448dda[_0xc78af3])&&(_0x5cad98=_0xe1251e(_0x5cad98)||_0x5cad98);return _0x5cad98;},_0x10abd2=(_0x5ebd03,_0x5a494c)=>(_0x14dbaa,_0x55608f)=>_0x5a494c(_0x14dbaa,_0x55608f,_0x5ebd03);let _0x583390=class{constructor(_0x4dfd5c,_0x4674c8){this['_injector']=_0x4dfd5c,this['_transformService']=_0x4674c8;}[_0x4a00e7(0x207)](_0x3ad8b1){const _0x15bcfd=_0x4a00e7;var _0x4f9c0e;const _0x10ba13=this[_0x15bcfd(0x1ab)][_0x15bcfd(0x202)](_0x40419e['DocSelectionManagerService']),_0x1e4e68=(_0x4f9c0e=_0x10ba13[_0x15bcfd(0x315)]())!=null?_0x4f9c0e:[];if(_0x1e4e68[_0x15bcfd(0x256)]===0x0)return;const _0x18eb00=_0x3ad8b1['unitID'],_0x28efa9=[{'id':_0x15bcfd(0x20e),'params':{'unitId':_0x18eb00,'actions':null,'textRanges':_0x1e4e68}}],_0x47832b=this[_0x15bcfd(0x1a6)][_0x15bcfd(0x366)](_0x3ad8b1,_0x28efa9);if(!_0x518b96['isTransformMutationsWithChangesetSuccess'](_0x47832b))throw _0x47832b[_0x15bcfd(0x17e)];const _0x330464=_0x47832b[_0x15bcfd(0x381)][0x0][_0x15bcfd(0x2de)][_0x15bcfd(0x2eb)];Array[_0x15bcfd(0x31b)](_0x330464)&&_0x330464[_0x15bcfd(0x256)]&&_0x10ba13[_0x15bcfd(0x10d)](_0x330464,{'unitId':_0x18eb00,'subUnitId':_0x18eb00},!0x1);}};_0x583390=_0x16db4a([_0x10abd2(0x0,_0x18ca73['Inject'](_0x18ca73[_0x4a00e7(0x271)])),_0x10abd2(0x1,_0x518b96[_0x4a00e7(0x16a)])],_0x583390);var _0x27b401=Object[_0x4a00e7(0x1f9)],_0x572a1e=(_0x15cd11,_0x12a736,_0x182548,_0x522a61)=>{for(var _0x2719eb=_0x522a61>0x1?void 0x0:_0x522a61?_0x27b401(_0x12a736,_0x182548):_0x12a736,_0x22a889=_0x15cd11['length']-0x1,_0x2c6f9b;_0x22a889>=0x0;_0x22a889--)(_0x2c6f9b=_0x15cd11[_0x22a889])&&(_0x2719eb=_0x2c6f9b(_0x2719eb)||_0x2719eb);return _0x2719eb;},_0x30446b=(_0x24ee40,_0x158ce8)=>(_0x2f7265,_0x246cd0)=>_0x158ce8(_0x2f7265,_0x246cd0,_0x24ee40);let _0x1226f3=class extends _0x18ca73['Disposable']{constructor(_0x3dc9e8,_0x804c5e,_0x26fa79,_0x425f29,_0x179390,_0x5c89f6,_0xab776d,_0x58b044){const _0x40b969=_0x4a00e7;super(),_0x41f19e(this,_0x40b969(0x346),new _0x16b079[(_0x40b969(0x18c))](_0x2fe882[_0x40b969(0x144)][_0x40b969(0x19f)])),(this[_0x40b969(0x239)]=_0x3dc9e8,this['_collaborationController']=_0x804c5e,this[_0x40b969(0x19c)]=_0x26fa79,this['_docTransformStateCacheService']=_0x425f29,this[_0x40b969(0x2e4)]=_0x179390,this[_0x40b969(0x1d7)]=_0x5c89f6,this[_0x40b969(0x27c)]=_0xab776d,this['_localeService']=_0x58b044,this[_0x40b969(0x35b)]());}['_initEntityListener'](){const _0x39fd4f=_0x4a00e7;this[_0x39fd4f(0x2a8)](this[_0x39fd4f(0x1c4)][_0x39fd4f(0x36c)][_0x39fd4f(0x12b)](_0xabc8fd=>{const _0x137f4f=_0x39fd4f,_0x13adc7=this[_0x137f4f(0x239)][_0x137f4f(0x1dc)]['subscribe'](_0xcb28ad=>{const _0x7a6d5f=_0x137f4f;if(_0xcb28ad==null)return;const {unitId:_0x231c9e,redoState:_0x5e2147,commandId:_0x36bff5}=_0xcb28ad;if(_0x231c9e!==_0xabc8fd[_0x7a6d5f(0x2d2)])return;const _0x4f7110={'id':_0x36bff5,'type':_0x18ca73[_0x7a6d5f(0x211)]['MUTATION'],'params':{'unitId':_0x231c9e,'actions':_0x5e2147[_0x7a6d5f(0x16e)],'textRanges':null}};_0xabc8fd[_0x7a6d5f(0x266)](_0x4f7110);});if(_0xabc8fd[_0x137f4f(0x2a8)](_0x13adc7),_0xabc8fd instanceof _0x2fe882[_0x137f4f(0x2a2)]){const _0x18a7d4={'onTransformIME':_0x1bbed2=>this[_0x137f4f(0x19c)][_0x137f4f(0x2c6)](_0x1bbed2),'onTransformState':_0x202945=>this[_0x137f4f(0x134)]['transformStateCache'](_0x202945),'onTransformSelections':_0x5bb14d=>this[_0x137f4f(0x2e4)]['transformSelections'](_0x5bb14d),'onSyncEditingCollabCursor':_0x2ced82=>this[_0x137f4f(0x1d7)][_0x137f4f(0x2fb)](_0x2ced82),'onTransformRemoteChangesetByIMECache':_0x193034=>this['_docTransformIMECacheService'][_0x137f4f(0x146)](_0x193034),'onTransformRemoteChangesetByStateCache':_0x78d0aa=>this['_docTransformStateCacheService'][_0x137f4f(0x146)](_0x78d0aa)};_0xabc8fd[_0x137f4f(0x1e4)](_0x18a7d4);}}));}};_0x1226f3=_0x572a1e([_0x30446b(0x0,_0x18ca73[_0x4a00e7(0x29b)](_0x41c79e['DocStateChangeManagerService'])),_0x30446b(0x1,_0x18ca73[_0x4a00e7(0x29b)](_0x2fe882[_0x4a00e7(0x1c9)])),_0x30446b(0x2,_0x18ca73[_0x4a00e7(0x29b)](_0x52e36c)),_0x30446b(0x3,_0x18ca73[_0x4a00e7(0x29b)](_0x52b88a)),_0x30446b(0x4,_0x18ca73[_0x4a00e7(0x29b)](_0x583390)),_0x30446b(0x5,_0x18ca73[_0x4a00e7(0x29b)](_0x349747)),_0x30446b(0x6,_0x5121a3['IMessageService']),_0x30446b(0x7,_0x18ca73[_0x4a00e7(0x29b)](_0x18ca73[_0x4a00e7(0x2b7)]))],_0x1226f3);var _0x4d89ba=Object[_0x4a00e7(0x1f9)],_0x35eb4f=(_0x47a9b8,_0x9d93a4,_0x1739bf,_0x24be97)=>{const _0x34174d=_0x4a00e7;for(var _0x889655=_0x24be97>0x1?void 0x0:_0x24be97?_0x4d89ba(_0x9d93a4,_0x1739bf):_0x9d93a4,_0x4ed867=_0x47a9b8[_0x34174d(0x256)]-0x1,_0xa3074e;_0x4ed867>=0x0;_0x4ed867--)(_0xa3074e=_0x47a9b8[_0x4ed867])&&(_0x889655=_0xa3074e(_0x889655)||_0x889655);return _0x889655;},_0x552d43=(_0x5bfd97,_0x271f7d)=>(_0x193b8f,_0x218f6b)=>_0x271f7d(_0x193b8f,_0x218f6b,_0x5bfd97);let _0x2eb9f4=class extends _0x18ca73[_0x4a00e7(0x25b)]{constructor(_0x4157ae,_0x27e9a6,_0x1ae026){const _0x17329e=_0x4a00e7;super(),_0x41f19e(this,_0x17329e(0x124),new Map()),_0x41f19e(this,_0x17329e(0x2c7),new Map()),_0x41f19e(this,_0x17329e(0x1de),!0x1),(this['_configService']=_0x4157ae,this[_0x17329e(0xf2)]=_0x27e9a6,this['_revisionService']=_0x1ae026);}[_0x4a00e7(0x1fb)](){const _0x5f18b6=_0x4a00e7;this[_0x5f18b6(0x1de)]=!0x0;}[_0x4a00e7(0x2be)](){const _0x453f74=_0x4a00e7;this[_0x453f74(0x1de)]=!0x1;}get[_0x4a00e7(0x344)](){return this['_saveTaskMap'];}['dispose'](){const _0x24b21f=_0x4a00e7;this[_0x24b21f(0x2e2)]()[_0x24b21f(0x2aa)](()=>super[_0x24b21f(0x264)]());}async['loadOfflineData'](_0x3a3fec){const _0x9fedfe=_0x4a00e7;return this[_0x9fedfe(0x1de)]?null:this['_localStorageService'][_0x9fedfe(0x33c)](_0x2fe882['getLocalCacheKey'](_0x3a3fec));}async[_0x4a00e7(0x1ad)](_0xac1d0a,_0x590c20){const _0x1da435=_0x4a00e7;return!!this[_0x1da435(0xf2)][_0x1da435(0x12e)](_0xac1d0a,_0x590c20);}[_0x4a00e7(0x268)](_0xa6f520,_0xccacb,_0x47cfa6,_0x4c4db0){const _0x279a33=_0x4a00e7,_0x2756a1=this[_0x279a33(0x21c)][_0x279a33(0x14d)](_0xa6f520);this[_0x279a33(0x124)][_0x279a33(0x329)](_0xa6f520,{'unitID':_0xa6f520,'type':_0xccacb,'awaitingChangeset':_0x47cfa6,'mutations':_0x4c4db0,'rev':_0x2756a1}),this[_0x279a33(0x2c7)][_0x279a33(0x133)](_0xa6f520)||this[_0x279a33(0x14a)](_0xa6f520);}[_0x4a00e7(0x14a)](_0xdee1fb){const _0x4a273f=_0x4a00e7,_0x20acd4=this[_0x4a273f(0x25f)]();_0x20acd4===0x0?this[_0x4a273f(0x127)](_0xdee1fb):this[_0x4a273f(0x2c7)][_0x4a273f(0x329)](_0xdee1fb,setTimeout(()=>this[_0x4a273f(0x127)](_0xdee1fb),_0x20acd4));}['_getSaveTimeout'](){const _0x434d5b=_0x4a00e7;var _0x1cd4ff;return(_0x1cd4ff=this['_configService'][_0x434d5b(0x35d)](_0x2fe882[_0x434d5b(0x288)]))!=null?_0x1cd4ff:_0x2fe882[_0x434d5b(0x213)];}[_0x4a00e7(0x127)](_0x3a7798){const _0x520ab2=_0x4a00e7,_0x4a5d78=this[_0x520ab2(0x2c7)][_0x520ab2(0x202)](_0x3a7798);return _0x4a5d78!==void 0x0&&window[_0x520ab2(0x215)](_0x4a5d78),this[_0x520ab2(0xf2)][_0x520ab2(0x12e)](_0x2fe882[_0x520ab2(0x2fd)](_0x3a7798),this[_0x520ab2(0x124)]['get'](_0x3a7798))['then'](()=>this['_saveTaskMap'][_0x520ab2(0x1e2)](_0x3a7798));}async['exhaustSavingTask'](){const _0xc44262=_0x4a00e7,_0xd8b711=[];this[_0xc44262(0x2c7)][_0xc44262(0x28f)]((_0x86d843,_0x537d33)=>{const _0x241d1f=_0xc44262;window['clearTimeout'](_0x86d843),_0xd8b711[_0x241d1f(0x2b6)](this['_saveCache'](_0x537d33)[_0x241d1f(0x2aa)](()=>{const _0x44b85a=_0x241d1f;this[_0x44b85a(0x2c7)][_0x44b85a(0x1e2)](_0x537d33);}));}),await Promise['all'](_0xd8b711);}};_0x2eb9f4=_0x35eb4f([_0x552d43(0x0,_0x18ca73[_0x4a00e7(0x1b0)]),_0x552d43(0x1,_0x18ca73['ILocalStorageService']),_0x552d43(0x2,_0x18ca73[_0x4a00e7(0x29b)](_0x518b96[_0x4a00e7(0x24c)]))],_0x2eb9f4);class _0x4fb64b extends _0x18ca73[_0x4a00e7(0x22f)]{constructor(){const _0x52cd85=_0x4a00e7;super(),_0x41f19e(this,_0x52cd85(0x2b8)),this[_0x52cd85(0x2b8)]=_0x16b079['fromEvent'](window,'popstate')['pipe'](_0x16b079[_0x52cd85(0x18a)](this[_0x52cd85(0x216)]),_0x16b079[_0x52cd85(0x27a)](0x1),_0x16b079['mapTo'](void 0x0));}['setParam'](_0xfc1060,_0xc0900b,_0x5398ec=!0x1){const _0x27c0aa=_0x4a00e7,_0x4bde26=new URL(window[_0x27c0aa(0x175)][_0x27c0aa(0x23a)]);_0x4bde26[_0x27c0aa(0x162)][_0x27c0aa(0x329)](_0xfc1060,_0xc0900b),_0x5398ec?window[_0x27c0aa(0x2f0)][_0x27c0aa(0x341)]('','',_0x4bde26[_0x27c0aa(0x2ba)]()):window[_0x27c0aa(0x2f0)][_0x27c0aa(0x14b)]('','',_0x4bde26[_0x27c0aa(0x2ba)]());}[_0x4a00e7(0x149)](_0x369fd2,_0x4a1604=!0x1){const _0x5a3ea=_0x4a00e7,_0x538fb5=new URL(window['location'][_0x5a3ea(0x23a)]);_0x538fb5[_0x5a3ea(0x162)]['delete'](_0x369fd2),_0x4a1604?window['history'][_0x5a3ea(0x341)]('','',_0x538fb5[_0x5a3ea(0x2ba)]()):window[_0x5a3ea(0x2f0)][_0x5a3ea(0x14b)]('','',_0x538fb5[_0x5a3ea(0x2ba)]());}[_0x4a00e7(0x2e9)](_0x599c32){const _0x57b40c=_0x4a00e7;var _0x1bf3c5;return(_0x1bf3c5=new URL(window[_0x57b40c(0x175)][_0x57b40c(0x23a)])['searchParams'][_0x57b40c(0x202)](_0x599c32))!=null?_0x1bf3c5:void 0x0;}}var _0x1f722d=Object['defineProperty'],_0x264b90=Object[_0x4a00e7(0x1f9)],_0xe9813e=(_0x407490,_0x205b72,_0x5525e2)=>_0x205b72 in _0x407490?_0x1f722d(_0x407490,_0x205b72,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5525e2}):_0x407490[_0x205b72]=_0x5525e2,_0x1634a2=(_0x46304f,_0x238c3e,_0x38362d,_0x548c7e)=>{const _0x9da08a=_0x4a00e7;for(var _0x5169e1=_0x548c7e>0x1?void 0x0:_0x548c7e?_0x264b90(_0x238c3e,_0x38362d):_0x238c3e,_0x188714=_0x46304f[_0x9da08a(0x256)]-0x1,_0x393383;_0x188714>=0x0;_0x188714--)(_0x393383=_0x46304f[_0x188714])&&(_0x5169e1=_0x393383(_0x5169e1)||_0x5169e1);return _0x5169e1;},_0x32180d=(_0x73821,_0x4e9cb0)=>(_0x8926cc,_0x31d8a5)=>_0x4e9cb0(_0x8926cc,_0x31d8a5,_0x73821),_0xb81d44=(_0x5f96d,_0x32c12d,_0x11dd79)=>_0xe9813e(_0x5f96d,_0x32c12d+'',_0x11dd79);const _0x3f8025=_0x4a00e7(0x1fe);_0x311cb7[_0x4a00e7(0x228)]=class extends _0x18ca73[_0x4a00e7(0x2d6)]{constructor(_0x326b1e=_0x44c505,_0x50eccf,_0x40038d,_0x2b6962){const _0x17e570=_0x4a00e7;super(),this[_0x17e570(0x342)]=_0x326b1e,this[_0x17e570(0x13b)]=_0x50eccf,this[_0x17e570(0x1ab)]=_0x40038d,this['_configService']=_0x2b6962;const {..._0x154d13}=_0x18ca73[_0x17e570(0x293)]({},_0x44c505,this[_0x17e570(0x342)]);this[_0x17e570(0x29d)][_0x17e570(0x12a)](_0x574e12,_0x154d13);}[_0x4a00e7(0x365)](){const _0x23b0f7=_0x4a00e7;this['_registerDependencies'](),this[_0x23b0f7(0x10e)]();}[_0x4a00e7(0x352)](){this['_registerRenderDependencies']();}[_0x4a00e7(0x188)](){const _0x806697=_0x4a00e7;var _0xee8cda;const _0x440367=[[_0x3fde5d],[_0x583390],[_0x52e36c],[_0x52b88a],[_0x349747],[_0x32736f,{'useClass':_0x4fb64b}],[_0x4ed2b8[_0x806697(0x262)],{'useClass':_0x4ed2b8[_0x806697(0x302)]}],[_0x2fe882[_0x806697(0x190)],{'useClass':_0x2eb9f4}],[_0x311cb7['DesktopCollaborationStatusDisplayController']],[_0x1226f3],[_0x3c5848],[_0x54c140],[_0x2d1ce0],[_0x311cb7[_0x806697(0x32f)]]];_0x18ca73[_0x806697(0x107)](this[_0x806697(0x1ab)],_0x18ca73[_0x806697(0x32e)](_0x440367,(_0xee8cda=this[_0x806697(0x342)])==null?void 0x0:_0xee8cda[_0x806697(0x147)]));}['_registerRenderDependencies'](){const _0x25085b=_0x4a00e7;this['disposeWithMe'](this[_0x25085b(0x13b)][_0x25085b(0x1ec)](_0x18ca73[_0x25085b(0x113)][_0x25085b(0x2a3)],[_0x4067e7])),this[_0x25085b(0x2a8)](this['_renderManagerService'][_0x25085b(0x1ec)](_0x18ca73[_0x25085b(0x113)][_0x25085b(0x158)],[_0xf7456]));}[_0x4a00e7(0x10e)](){const _0x256232=_0x4a00e7;_0x18ca73['touchDependencies'](this[_0x256232(0x1ab)],[[_0x54c140],[_0x311cb7[_0x256232(0xfb)]],[_0x1226f3],[_0x3c5848],[_0x311cb7[_0x256232(0x32f)]]]);}},_0xb81d44(_0x311cb7[_0x4a00e7(0x228)],'pluginName',_0x3f8025),_0x311cb7['UniverCollaborationClientUIPlugin']=_0x1634a2([_0x18ca73['DependentOn'](_0x2fe882[_0x4a00e7(0x304)]),_0x32180d(0x1,_0x1000a2[_0x4a00e7(0x214)]),_0x32180d(0x2,_0x18ca73['Inject'](_0x18ca73[_0x4a00e7(0x271)])),_0x32180d(0x3,_0x18ca73[_0x4a00e7(0x1b0)])],_0x311cb7[_0x4a00e7(0x228)]);var _0x1c225c=Object[_0x4a00e7(0x1f9)],_0x272856=(_0x12396f,_0x3377d4,_0x551b90,_0x45e44b)=>{const _0xfc169e=_0x4a00e7;for(var _0x132dad=_0x45e44b>0x1?void 0x0:_0x45e44b?_0x1c225c(_0x3377d4,_0x551b90):_0x3377d4,_0x4721c9=_0x12396f[_0xfc169e(0x256)]-0x1,_0x1b35fe;_0x4721c9>=0x0;_0x4721c9--)(_0x1b35fe=_0x12396f[_0x4721c9])&&(_0x132dad=_0x1b35fe(_0x132dad)||_0x132dad);return _0x132dad;},_0x1ae850=(_0x5331cd,_0x492267)=>(_0x43c425,_0x1b3851)=>_0x492267(_0x43c425,_0x1b3851,_0x5331cd);_0x311cb7[_0x4a00e7(0x33f)]=class extends _0x2fe882[_0x4a00e7(0x1c0)]{constructor(_0x2b8440,_0x5bf29b,_0x4bd151,_0x18eb3e,_0x4dc413){super(_0x2b8440,_0x5bf29b,_0x4bd151,_0x18eb3e,_0x4dc413);}async[_0x4a00e7(0x1b2)](_0x1d9fc2){const _0x426885=_0x4a00e7,_0x17937e=await this[_0x426885(0x370)](),_0x40f5f1=this[_0x426885(0x140)](_0x1d9fc2,_0x17937e);return this[_0x426885(0xfd)](_0x40f5f1);}[_0x4a00e7(0x140)](_0x344d80,_0x394cff){const _0x2590b1=_0x4a00e7,_0xce1af2=typeof window>'u'?new URL(_0x344d80):new URL(_0x344d80,window[_0x2590b1(0x175)][_0x2590b1(0x1d2)]);_0xce1af2[_0x2590b1(0x162)][_0x2590b1(0x329)](_0x2590b1(0x157),_0x394cff);const _0x3dd8ca=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2590b1(0x175)]['search']);return _0x3dd8ca[_0x2590b1(0x202)](_0x2590b1(0x15b))&&_0xce1af2[_0x2590b1(0x162)][_0x2590b1(0x329)](_0x2590b1(0x15b),_0x3dd8ca['get']('runId')),_0xce1af2['toString']();}async[_0x4a00e7(0x370)](){const _0x1bf786=_0x4a00e7;var _0x51eead,_0x595df2,_0x390503;const _0x4d2fa4=this[_0x1bf786(0x29d)][_0x1bf786(0x35d)](_0x2fe882[_0x1bf786(0x2ce)]),_0x3603cf=(_0x51eead=_0x4d2fa4==null?void 0x0:_0x4d2fa4[_0x1bf786(0x313)])!=null?_0x51eead:_0x2fe882[_0x1bf786(0x1a7)];return(_0x390503=(_0x595df2=(await this[_0x1bf786(0x219)][_0x1bf786(0x202)](_0x3603cf,{'headers':{'Content-Type':'application/json'}}))[_0x1bf786(0x19b)])==null?void 0x0:_0x595df2[_0x1bf786(0x1ce)])!=null?_0x390503:'';}},_0x311cb7['BrowserCollaborationSocketService']=_0x272856([_0x1ae850(0x0,_0x18ca73[_0x4a00e7(0x29b)](_0x18ca73['Injector'])),_0x1ae850(0x1,_0x18ca73[_0x4a00e7(0x29b)](_0x4ed2b8[_0x4a00e7(0xf5)])),_0x1ae850(0x2,_0x18ca73[_0x4a00e7(0x1b0)]),_0x1ae850(0x3,_0x18ca73['ILogService']),_0x1ae850(0x4,_0x518b96[_0x4a00e7(0x24f)])],_0x311cb7[_0x4a00e7(0x33f)]);var _0x4d18de=(_0x4c868e=>(_0x4c868e[_0x4c868e['UNDEFINED']=0x0]=_0x4a00e7(0x116),_0x4c868e[_0x4c868e['OK']=0x1]='OK',_0x4c868e[_0x4c868e[_0x4a00e7(0x1c8)]=0x2]=_0x4a00e7(0x1c8),_0x4c868e[_0x4c868e[_0x4a00e7(0x2d8)]=0x3]=_0x4a00e7(0x2d8),_0x4c868e[_0x4c868e[_0x4a00e7(0x151)]=0x4]='NOT_FOUND',_0x4c868e[_0x4c868e[_0x4a00e7(0x1cb)]=0x5]=_0x4a00e7(0x1cb),_0x4c868e[_0x4c868e[_0x4a00e7(0x135)]=0x6]=_0x4a00e7(0x135),_0x4c868e[_0x4c868e[_0x4a00e7(0x317)]=0x7]='INVALID_ARGUMENT',_0x4c868e[_0x4c868e[_0x4a00e7(0x31a)]=0x8]=_0x4a00e7(0x31a),_0x4c868e[_0x4c868e[_0x4a00e7(0x32c)]=0x9]=_0x4a00e7(0x32c),_0x4c868e[_0x4c868e[_0x4a00e7(0x223)]=0xa]=_0x4a00e7(0x223),_0x4c868e[_0x4c868e[_0x4a00e7(0x1e1)]=0xb]=_0x4a00e7(0x1e1),_0x4c868e[_0x4c868e[_0x4a00e7(0x29a)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4c868e[_0x4c868e[_0x4a00e7(0x31c)]=0xd]=_0x4a00e7(0x31c),_0x4c868e[_0x4c868e['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x4a00e7(0x2f4),_0x4c868e[_0x4c868e['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4a00e7(0x2cc),_0x4c868e[_0x4c868e['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x4a00e7(0x1df),_0x4c868e[_0x4c868e[_0x4a00e7(0x1f4)]=0x1772]=_0x4a00e7(0x1f4),_0x4c868e[_0x4c868e[_0x4a00e7(0x33e)]=0x1773]=_0x4a00e7(0x33e),_0x4c868e[_0x4c868e[_0x4a00e7(0x24e)]=0x1b59]=_0x4a00e7(0x24e),_0x4c868e[_0x4c868e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4a00e7(0x189),_0x4c868e[_0x4c868e[_0x4a00e7(0x178)]=0x1b5b]=_0x4a00e7(0x178),_0x4c868e[_0x4c868e['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x4c868e[_0x4c868e['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x4c868e[_0x4c868e[_0x4a00e7(0x2bc)]=0x1f41]=_0x4a00e7(0x2bc),_0x4c868e[_0x4c868e[_0x4a00e7(0x230)]=0x2329]=_0x4a00e7(0x230),_0x4c868e[_0x4c868e[_0x4a00e7(0x109)]=0x232a]=_0x4a00e7(0x109),_0x4c868e[_0x4c868e[_0x4a00e7(0x296)]=0x232b]=_0x4a00e7(0x296),_0x4c868e[_0x4c868e['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x4a00e7(0x1be),_0x4c868e[_0x4c868e[_0x4a00e7(0x2fe)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x4c868e[_0x4c868e[_0x4a00e7(0x369)]=0x2711]=_0x4a00e7(0x369),_0x4c868e[_0x4c868e[_0x4a00e7(0x269)]=0x2712]=_0x4a00e7(0x269),_0x4c868e[_0x4c868e[_0x4a00e7(0x2ef)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4c868e[_0x4c868e[_0x4a00e7(0x328)]=0x2714]=_0x4a00e7(0x328),_0x4c868e[_0x4c868e[_0x4a00e7(0x2cf)]=0x271a]=_0x4a00e7(0x2cf),_0x4c868e[_0x4c868e[_0x4a00e7(0x246)]=0x271b]=_0x4a00e7(0x246),_0x4c868e[_0x4c868e[_0x4a00e7(0x1c1)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x4c868e[_0x4c868e[_0x4a00e7(0x323)]=0x271d]=_0x4a00e7(0x323),_0x4c868e[_0x4c868e[_0x4a00e7(0x371)]=0x271e]=_0x4a00e7(0x371),_0x4c868e[_0x4c868e[_0x4a00e7(0x182)]=0x271f]=_0x4a00e7(0x182),_0x4c868e[_0x4c868e[_0x4a00e7(0x2d1)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x4c868e[_0x4c868e['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x4a00e7(0x31f),_0x4c868e[_0x4c868e['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x4c868e[_0x4c868e[_0x4a00e7(0x15f)]=0x2ee2]='INVALID_INVITE_CODE',_0x4c868e[_0x4c868e[_0x4a00e7(0x334)]=0x2ee3]=_0x4a00e7(0x334),_0x4c868e[_0x4c868e[_0x4a00e7(0x2b4)]=0x2ee4]=_0x4a00e7(0x2b4),_0x4c868e[_0x4c868e[_0x4a00e7(0x260)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x4c868e[_0x4c868e['WECHAT_HAS_BEEN_BOUND']=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x4c868e[_0x4c868e[_0x4a00e7(0x350)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x4c868e[_0x4c868e['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x4a00e7(0x2d7),_0x4c868e[_0x4c868e['UNRECOGNIZED']=-0x1]=_0x4a00e7(0x159),_0x4c868e))(_0x4d18de||{}),_0x1fa851=Object[_0x4a00e7(0x1f9)],_0x567b6c=(_0x2f6a22,_0xe317e0,_0x26abc7,_0x22b8be)=>{const _0x63eb9e=_0x4a00e7;for(var _0x56e235=_0x22b8be>0x1?void 0x0:_0x22b8be?_0x1fa851(_0xe317e0,_0x26abc7):_0xe317e0,_0xaadb2f=_0x2f6a22[_0x63eb9e(0x256)]-0x1,_0x388ee5;_0xaadb2f>=0x0;_0xaadb2f--)(_0x388ee5=_0x2f6a22[_0xaadb2f])&&(_0x56e235=_0x388ee5(_0x56e235)||_0x56e235);return _0x56e235;},_0x1b4823=(_0x389991,_0x2b097e)=>(_0x54611b,_0x4e3c86)=>_0x2b097e(_0x54611b,_0x4e3c86,_0x389991);_0x311cb7[_0x4a00e7(0x13c)]=class extends _0x18ca73[_0x4a00e7(0x25b)]{constructor(_0x521893,_0x63e63a,_0x2844cd){const _0x3db7b0=_0x4a00e7;super(),this[_0x3db7b0(0x348)]=_0x521893,this[_0x3db7b0(0x219)]=_0x63e63a,this[_0x3db7b0(0x29d)]=_0x2844cd;}async['runOnServer'](_0x3c77c1,_0x2f823e,_0x17ebc4,..._0x4cf7ca){const _0x511400=_0x4a00e7;var _0x253f63,_0x3d7ab2,_0x1c71ba,_0x5366ab;const _0x5dd8f3=this[_0x511400(0x348)]['getFocusedUnit']();if(!_0x5dd8f3)throw new Error(_0x511400(0x2f9));const _0x56310a=((_0x253f63=this['_configService'][_0x511400(0x35d)](_0x2fe882[_0x511400(0x25c)]))!=null?_0x253f63:_0x2fe882[_0x511400(0x32a)])+'/'+_0x3c77c1+'/run/'+_0x2f823e,_0x2b1964=new URL(window['location'][_0x511400(0x23a)]),_0x4eb227={'scriptId':_0x3c77c1,'runId':(_0x3d7ab2=_0x2b1964['searchParams'][_0x511400(0x202)](_0x511400(0x15b)))!=null?_0x3d7ab2:'','function':_0x2f823e,'unitId':_0x5dd8f3[_0x511400(0x1fa)](),'argsOfFunction':JSON[_0x511400(0x155)](_0x4cf7ca),'invokeId':(_0x1c71ba=_0x17ebc4[_0x511400(0x2ae)])!=null?_0x1c71ba:'','executionId':(_0x5366ab=_0x17ebc4['executionId'])!=null?_0x5366ab:''};try{const _0x3200a3=await this[_0x511400(0x219)][_0x511400(0x187)](_0x56310a,{'body':_0x4eb227});return _0x3200a3[_0x511400(0x19b)][_0x511400(0x17e)]&&_0x3200a3['body'][_0x511400(0x17e)][_0x511400(0x16f)]!==_0x4d18de['OK']?_0x511400(0x30c):_0x3200a3[_0x511400(0x19b)]['result'];}catch{return _0x511400(0x30c);}}},_0x311cb7[_0x4a00e7(0x13c)]=_0x567b6c([_0x1b4823(0x0,_0x18ca73[_0x4a00e7(0x196)]),_0x1b4823(0x1,_0x18ca73['Inject'](_0x4ed2b8['HTTPService'])),_0x1b4823(0x2,_0x18ca73[_0x4a00e7(0x1b0)])],_0x311cb7[_0x4a00e7(0x13c)]);const _0x561d73=0x7530,_0x4961af=_0x4a00e7(0x2d5);class _0x1eb468 extends _0x18ca73[_0x4a00e7(0x25b)]{constructor(){const _0x2f5553=_0x4a00e7;super(),_0x41f19e(this,_0x2f5553(0x35a),_0x18ca73[_0x2f5553(0x368)]()),_0x41f19e(this,_0x2f5553(0x119),new Set()),_0x41f19e(this,'_unitOnClients',new Map()),_0x41f19e(this,_0x2f5553(0x36a),null),_0x41f19e(this,'_clearOtherTimers',new Map()),_0x41f19e(this,'_unitStatus',new Map()),this['_init']();}[_0x4a00e7(0x264)](){const _0x67c122=_0x4a00e7;super[_0x67c122(0x264)](),this[_0x67c122(0x363)][_0x67c122(0x28f)]((_0x1ddc4a,_0x5487e9)=>this[_0x67c122(0x1d6)](_0x5487e9)),this[_0x67c122(0x36a)]&&window[_0x67c122(0x204)](this[_0x67c122(0x36a)]);}[_0x4a00e7(0x1c7)](_0xada747){const _0x30c940=_0x4a00e7;return this['_ensureSubject'](_0xada747)[_0x30c940(0x217)](_0x16b079['distinctUntilChanged']());}[_0x4a00e7(0x2b1)](_0x374c9e){const _0x681278=_0x4a00e7;this[_0x681278(0x119)]['size']===0x0&&this[_0x681278(0x284)](),this[_0x681278(0x119)][_0x681278(0x114)](_0x374c9e),this[_0x681278(0x1e8)]({'type':0x0,'memberID':this[_0x681278(0x35a)],'unitIDs':[_0x374c9e],'isForwarded':!0x1});}['disposeUnit'](_0x43e900){const _0xe986fd=_0x4a00e7;this[_0xe986fd(0x119)][_0xe986fd(0x1e2)](_0x43e900),this['_selfUnitIDs']['size']===0x0&&this[_0xe986fd(0x36a)]&&window['clearInterval'](this[_0xe986fd(0x36a)]);}[_0x4a00e7(0x1ee)](){const _0x4669b7=_0x4a00e7;this[_0x4669b7(0x2a8)](_0x18ca73[_0x4669b7(0x244)](_0x16b079[_0x4669b7(0x20f)](window,'storage')[_0x4669b7(0x12b)](_0x5733bc=>{const _0x46596c=_0x4669b7;if(_0x5733bc[_0x46596c(0x1c6)]!==_0x4961af||!_0x5733bc[_0x46596c(0x101)])return;const _0x129e86=JSON[_0x46596c(0x21e)](_0x5733bc[_0x46596c(0x101)]);this['_handleEvent'](_0x129e86);}))),window[_0x4669b7(0x327)]('unload',()=>this[_0x4669b7(0x1e8)]({'type':0x1,'memberID':this[_0x4669b7(0x35a)],'unitIDs':Array[_0x4669b7(0x21f)](this[_0x4669b7(0x119)])}));}[_0x4a00e7(0x2e0)](_0x1e7b53){const _0xd752af=_0x4a00e7;switch(_0x1e7b53['type']){case 0x0:this[_0xd752af(0x2b9)](_0x1e7b53);break;case 0x1:this['_handleLeaveEvent'](_0x1e7b53);break;case 0x2:this[_0xd752af(0xf3)](_0x1e7b53);break;}}[_0x4a00e7(0x2b9)](_0x3ba2ca){const _0x48ac5c=_0x4a00e7,{unitIDs:_0x25d431,memberID:_0x579d79,isForwarded:_0x55c8b8}=_0x3ba2ca;_0x25d431[_0x48ac5c(0x28f)](_0xd7be07=>{const _0x7d96d=_0x48ac5c;if(!_0x55c8b8&&this[_0x7d96d(0x379)][_0x7d96d(0x133)](_0xd7be07)&&this[_0x7d96d(0x356)](_0xd7be07)[_0x7d96d(0x274)](_0x2fe882[_0x7d96d(0x1b6)][_0x7d96d(0x186)]),!this['_unitOnClients'][_0x7d96d(0x133)](_0xd7be07)||!this[_0x7d96d(0x379)]['get'](_0xd7be07)[_0x7d96d(0x133)](_0x579d79)){const _0x5d4f11=this['_unitOnClients'][_0x7d96d(0x202)](_0xd7be07)||new Set();_0x5d4f11[_0x7d96d(0x114)](_0x579d79),this[_0x7d96d(0x379)]['set'](_0xd7be07,_0x5d4f11),this[_0x7d96d(0xf7)](_0x579d79);}}),_0x55c8b8||this[_0x48ac5c(0x1e8)]({'type':0x0,'memberID':this[_0x48ac5c(0x35a)],'unitIDs':[...this[_0x48ac5c(0x119)]],'isForwarded':!0x0});}[_0x4a00e7(0xf7)](_0x54dc6d){const _0x574705=_0x4a00e7;this[_0x574705(0x1d6)](_0x54dc6d);const _0x317900=window['setTimeout'](()=>{const _0x912570=_0x574705;this[_0x912570(0x379)][_0x912570(0x28f)](_0x11904b=>{const _0x5f1fa9=_0x912570;_0x11904b[_0x5f1fa9(0x1e2)](_0x54dc6d);});},_0x561d73*0x2);this['_clearOtherTimers'][_0x574705(0x329)](_0x54dc6d,_0x317900);}['_removeClearOtherTimer'](_0x3eaef1){const _0x3afd5e=_0x4a00e7;if(this[_0x3afd5e(0x363)]['has'](_0x3eaef1)){const _0xb4817d=this[_0x3afd5e(0x363)][_0x3afd5e(0x202)](_0x3eaef1);_0xb4817d&&window[_0x3afd5e(0x215)](_0xb4817d),this['_clearOtherTimers'][_0x3afd5e(0x329)](_0x3eaef1,null);}}['_handleLeaveEvent'](_0x3e315d){const _0x1039b8=_0x4a00e7,{memberID:_0x8f3c9a,unitIDs:_0x477026}=_0x3e315d;_0x477026[_0x1039b8(0x28f)](_0x302a6c=>{const _0x360e88=_0x1039b8;var _0x303b51;const _0x201905=this[_0x360e88(0x379)][_0x360e88(0x202)](_0x302a6c);_0x201905&&(_0x201905[_0x360e88(0x1e2)](_0x8f3c9a),(_0x303b51=this[_0x360e88(0x356)](_0x302a6c))==null||_0x303b51[_0x360e88(0x274)](_0x201905[_0x360e88(0x209)]===0x0?_0x2fe882[_0x360e88(0x1b6)]['NO_OTHER_CLIENTS_EDITING']:_0x2fe882['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0x1039b8(0x1d6)](_0x8f3c9a);}['_handleHeartbeatEvent'](_0x52283b){const _0xdad2d9=_0x4a00e7;this[_0xdad2d9(0xf7)](_0x52283b['memberID']);}[_0x4a00e7(0x1e8)](_0x1b6545){const _0x282736=_0x4a00e7;localStorage[_0x282736(0x12e)](_0x4961af,JSON['stringify'](_0x1b6545));}[_0x4a00e7(0x284)](){const _0x3bf99d=_0x4a00e7;this[_0x3bf99d(0x36a)]=window[_0x3bf99d(0x30a)](()=>{const _0xbd335c=_0x3bf99d;this[_0xbd335c(0x1e8)]({'type':0x2,'memberID':this['_id']});},_0x561d73);}['_ensureSubject'](_0x55ae79){const _0xc6645e=_0x4a00e7;return this[_0xc6645e(0x1d0)][_0xc6645e(0x133)](_0x55ae79)||this[_0xc6645e(0x1d0)]['set'](_0x55ae79,new _0x16b079[(_0xc6645e(0x18c))](_0x2fe882[_0xc6645e(0x1b6)][_0xc6645e(0x2f3)])),this['_unitStatus']['get'](_0x55ae79);}}_0x311cb7[_0x4a00e7(0x2dc)]=_0x32736f,_0x311cb7['SheetCollabCursorShape']=_0x4044b0,_0x311cb7[_0x4a00e7(0x375)]=_0x1eb468,_0x311cb7[_0x4a00e7(0x25a)]=_0x4fb64b,Object[_0x4a00e7(0x2c0)](_0x311cb7,Symbol[_0x4a00e7(0x22a)],{'value':_0x4a00e7(0x15c)});}));
1
+ function _0x3b2a(_0x28bb09,_0x53d966){const _0x2b574b=_0x2b57();return _0x3b2a=function(_0x3b2ac3,_0x101b39){_0x3b2ac3=_0x3b2ac3-0x143;let _0x38889a=_0x2b574b[_0x3b2ac3];return _0x38889a;},_0x3b2a(_0x28bb09,_0x53d966);}function _0x2b57(){const _0x5c64ae=['_logService','application/json','extend','CollaborationUIEventService','collaboration.single-unit.warning','startsWith','_toggleOffline','UniverDocs','_lastPointer','Rect','collab-text-anchor-','getRangePointData','OTHER_CLIENTS_EDITING','...','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getCollabEntity$','ICommandService','dispose','_docTransformSelectionsService','getSkeleton','_unitStatus','_uiPartsService','_cursor','wsSessionTicketUrl','m2Prime','_drawTextRange','USERS_LEAVE','_getMergeRange','_getScale','mergeOverrideWithDependencies','searchParams','handleInsertRangeMoveDown','_notificationService','call','triggerDblclick','APPLY_REVISION_CONFILICT','getColorFromTheme','CLOSE_ROOM','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_localStorageService','CollaborationSessionService','currentSkeleton$','Unknown\x20user','params','OTHER_CLIENT_EDITING','UniverIcon','attrs','ITransformService','react/jsx-runtime','YUUMI_ASYNCIO_CANCELLED','RemoteUniscriptService','getCurrent','object','InsertColCommandId','DOC_RANGE_TYPE','getCollabCursors$','useCallback','hovered','delete','toDisposable','onStarting','CollaborationStatus','_updateCollabCursors','_beforeCloseService','setShapeProps','Vector2','VIEW_MAIN','subunit','UniverEngineRender','endColumn','Injector','runRefRangeMutations','_heartbeatTimer','_docSkeletonManagerService','getOwnPropertySymbols','IBeforeCloseService','propertyIsEnumerable','replaceState','show','black','code','apply','_collabCursorController','_config','onLocalMutation','width','current','setUndoRedoMutationParamsCache','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','requireSession','selections','_instanceService','isArray','UPDATE_CURSOR','mutations','@univerjs-pro/collaboration','forEach','APPLY_PERMISSION_DENIED','selection','SOCKET_FAILED_RETRY','getParam','_handleJoinEvent','USER_NOT_INVITED_CODE','subUnitId','purple.300','getUniverSheetInstance','yellow.400','getItem','Rectangle','set','with','_cachedData','_registerRenderDependencies','collabStatus.notCollab','_updateLocalCursor','transformIMECache','_dataLoaderService','merge','permission.title','collaboration.closeRoom','setParam','_draw','IMessageService','_getSessionTicket','use','handleInsertCol','_transformPreviousActiveRange','UniverDesign','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','2607604nnJFLJ','red.300','NodePositionConvertToRectRange','moveTo','@univerjs/docs-ui','sessionStatus$','AWAITING','unit','IConfigService','INVITE_CODE_ALREADY_BOUND','location','_docTransformIMECacheService','symbol','createElement','beginPath','column','_context','addEventListener','getVpScrollXYInfoByPosToVp','indexOf','ILocalCacheService','updateOfflineData','rgba(255,\x20255,\x20255,\x200.01)','text','SHEET_VIEWPORT_KEY','loadUnit','isTransformMutationsWithChangesetSuccess','_onCursorDelete','createInstance','session.will-retry','replace','_scheduleSaving','getLocalCacheKey','forwardRef','unshift','_memberService','range','CollaborationController','getCoordByCell','hide','902375iYQEed','_getSheetObject','runId','_scheduleHeartbeat','APPLY_REJECT','getDocRanges','SYNCED','UniverInstanceType','getSheetObject','getColor','transform','Failed','url(#$1','_toggleOnline','toRgbString','_setupSubUnitSync','_renderManagerService','_eventUnsubscribe','UniverSheets','UniverCollaborationClientUIPlugin','assignAColorForMemberID','pipe','handleInsertRangeMoveRight','m1Prime','reconnect','_onCursorUpdate','type','RemoveColCommandId','Error','ENSURE_SNAPSHOT_EXECUTION','unitId','BrowserCollaborationSocketService','switchMap','currentTheme$','LICENSE_IMPORT_SIZE_EXCEEDED','SOCKET_FAILED','_entityInit$','UniverProCollaboration','jsxs','COLORS','getAncestorScale','subscribeEvent','RevisionService','includes','assign','_colorAssignService','unload','_render','fill','getFocusedUnit','_collabCursorState$','eventID','substring','@univerjs/drawing','WECHAT_HAS_BEEN_BOUND','329bNQrFr','@univerjs/engine-formula','_startDocCollabCursor','_registerDependencies','MOBILE_VERIFY_CODE_MISMATCH','distinctUntilChanged','_document','/run/','PENDING','Subject','_status$','removeParam','onCommandExecuted','rxjs/operators','focused$','getSheetId','_collabSessionService','_initStatusListener','DocSelectionManagerService','white','YUUMI_RATE_OVER_LIMIT','_clearOtherTimers','YUUMI_URL_COL_OUT_OF_RANGE','url(#off-line-icon_clip0_910_343)','UniverProCollaborationClient','drawWith','_disabled','useDependency','_configService','INVITE_CODE_REQUIRED','_docStateChangeManagerService','_send','collab-client.tooltip.reconnect','IDocClipboardService','ticket','urlChange$','_transformService','_hovered','fillText','ISocketService','RECT','pluginName','clearTimeout','has','LICENSE_EXPORT_SIZE_EXCEEDED','DocCollaborationEntity','getConfig','SheetCollabCursorShape','_unitOnClients','MemberService','IRenderManagerService','_localCacheService','makeDirty','addClipboardHook','8VNQPpq','_univerInstanceService','getActiveSheet','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','UniverEngineFormula','whenReady','_anchorDot','APPLY_NON_SEQUENTIAL_REVISION','textRanges','registerRenderModule','getOffsetConfig','getSheetBySheetId','fromEvent','_name','CollaborationSocketService','font','unsubscribe','_handleHeartbeatEvent','clsx','http://www.w3.org/2000/svg','backgroundColor','concat','toString','get','some','collabStatus.synced','sheetId','1em','override','invokeId','resize','stringify','exhaustSavingTask','complete','executionId','_removeCollabCursors','NOT_COLLAB','generateRandomId','1133372mWNzcO','values','connectInjector','dispose$','UNIVER_SHEET','ILogService','_id','Plugin','next','_createSocketURL','getUndoRedoMutationParamsCache','_getAnchorBounding','transformRemoteChangeset','data','setActiveRange','_refRangeService','registerComponent','_colorIndex','combineLatest','newValue','Tools','save','ThemeService','@univerjs/core','lineTo','debug','enableLocalCache','evenodd','JOIN_ROOM_FAILED','registerDependencies','MOBILE_HAS_BEEN_BOUND','InsertRowCommandId','EMAIL_VERIFY_CODE_MISMATCH','fillRule','random','_cursorShapes','entityInit$','_ensureSubject','permission.content','jiqing.500','measureText','OFFLINE','INVALID_ARGUMENT','getMergeData','setAlpha','SetWorksheetActivateCommand','mask','TEXT_RANGE_LAYER_INDEX','string','_onRefRangeChange','getRenderById','_init','contains','deserializeRangeWithSheet','_collaborationController','status$','_handleHover','getViewport','IURLService','_imageIoService','onPointerMove$','push','url(#on-line-icon_clip0_910_349)','fromEventSubject','EMAIL_HAS_BEEN_BOUND','rxjs','icon','getUnhiddenWorksheets','Inject','disposeUnit','saveImage','from','Module','createSocket','_range','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_getSaveTimeout','PERMISSION_DENIED','@univerjs/sheets-ui','_hideTimer','setStateCache','_labelPosition','roomMembers$','operators','#FFF','defs','_initEntityListener','deepClone','getActiveRange','SetDocZoomRatioOperation','_handleLeaveEvent','_transformUndoRedoStack','APPLY_DUPLICATED','children','ranges','setConfig','body','replaceDocRanges','univer-mr-2\x20univer-flex\x20univer-text-xl','_roomMembers$','RxDisposable','YUUMI_UNABLE_LOAD_URL','popstate','_session','collaboration-client.offline-data-not-saved','_sheetSkeletonManagerService','BehaviorSubject','DesktopCollaborationStatusDisplayController','_commandService','M0\x200H16V16H0z','UniverCollaborationClientPlugin','_localeService','_collaborationUIEventService','3gIhQvM','97768nnaPHH','_handleEvent','Warning','getOwnPropertyDescriptor','cursorInfo','registerRefRange','startRow','cursorInfo$','key','LOGIN_FAILED','getUnitStatus$','svg','CollaborationDataLoaderController','mapTo','ColorKit','_scene','_initDependencies','off-line-icon','ISnapshotServerService','unitID','arc','redoState','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','Workbook','displayName','useObservable','UNDEFINED','InsertRangeMoveRightCommandId','UNAUTHENTICATED','_selfUnitIDs','PY_RUNTIME_SCRIPT_ERROR','restore','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','CHANGESET_REVISION_CONFILICT','session.collaboration-timeout','_messageService','blue.400','colorChannel1','SetSelectionsOperation','transformMutation','entries','findNodePositionByCharIndex','href','onRendered','_cursorInfo$','row','1090CTntQt','send','transformByState','DocStateChangeManagerService','serializeRangeWithSheet','undoState','NO_OTHER_CLIENTS_EDITING','editingUnit','SheetSkeletonManagerService','_initStatusComponent','_updateURLWithCurrentState','syncEditingCollabCursor','addObject','origin','CONFLICT','debounceTime','CONNECTOR_DATA_TOO_LARGE','addObjects','_assignedColors','getCurrentRevOfUnit','ALREADY_EXISTS','closePath','useRef','error','onPointerEnter$','ONLINE','_httpService','setItem','amd','bottom','YUUMI_ALL_TABLES_IS_INVALID','_docTransformStateCacheService','HTTPService','_updateSubUnitFromURLParams','UNRECOGNIZED','_setupBeforeClosingHandler','EffectRefRangId','_revisionService','top','path','prototype','AWAITING_WITH_PENDING','COMPLETION_FINISHED','UNIVER_DOC','init','DEFAULT_WS_SESSION_TICKET_URL','YUUMI_AI_RUN_FAILED','@univerjs/engine-render','currentColor','doc.mutation.rich-text-editing','IUIPartsService','height','length','_shapes','LICENSE_DISTRO_REJECTED','getUnitId','UnitStatus','[RemoteUniscriptService]:\x20no\x20focused\x20unit','84264qTbzzi','endRow','RegularPolygon','round','tag','split','InsertRangeMoveDownCommandId','_injector','color','_initResize','DependentOn','debounce','_scheduleClearOtherTimer','fillStyle','jsx','_textBubble','div','on-line-icon_clip0_910_349','transformStateCache','defIds','Shape','Disposable','size','getValue','handleMoveRange','name','WebBrowserSingleActiveUnitService','executeCommand','_refreshCollabCursors','collabStatus.fetchMiss','DeleteRangeMoveLeftCommandId','collabStatus.conflict','roomMembers','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_removeClearOtherTimer','DataLoaderService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','onMouseMove','getMemberID','IUniverInstanceService','DocSkeletonManagerService','UniverRpc','hasOwnProperty','_docSyncEditingCollabCursorService','_transformHistoryAndStateStack','clearInterval','storage','asObservable','YUUMI_NO_CUBOID_FOR_QUESTION','subscribe','filter','TRANSFORM_CHANGE_OBSERVABLE_TYPE','LocaleService','function','5340933TTwIqH','CollaborationUIEventId','_drawAnchor','_initCommandExecutedListener','_entities','UniverDrawing','engine','on-line-icon','TOO_MANY_REQUESTS','_hover','collabStatus.syncing','CollaborationEvent','@univerjs/sheets','UniverDocsUi','_urlService','then','ACTIVE_UNIT_EVENT_CHANNEL','INVALID_INVITE_CODE','event$','LICENSE_MAX_UNITS_EXCEEDED','collab-text-range-','_cursors','onPointerLeave$','idSuffix','xlink:href','shareReplay','RefRangeService','INTERNAL_ERROR','getTypeOfUnitAdded$','registerBeforeClose','max','defineProperty','off-line-icon_clip0_910_343','_docClipboardService','translate(.97)','getStateCache','_online','_initEvent','handleDeleteRangeMoveLeft','OnLineIcon','pushState','isTransformMutationFailure','_color','disposeWithMe','setTimeout','MessageType','green.600','labelPosition','collabCursorState$','all','takeUntil','0\x200\x2016\x2016','16453dEwUvO','_syncEditingCollabCursorService','_startSheetCollabCursor','_saveCache','none','isActive','handleIRemoveCol','history','DocIMEInputManagerService','_saveTaskMap','_doCreateSocket','_backgroundColor','result','NOT_FOUND','_themeService','min','post','saveTaskMap','getMember','className','add','_anchor','transformSelections','map'];_0x2b57=function(){return _0x5c64ae;};return _0x2b57();}(function(_0x330ea5,_0x5d75af){const _0x2dfe2e=_0x3b2a,_0x44deb2=_0x330ea5();while(!![]){try{const _0x7badea=-parseInt(_0x2dfe2e(0x2e7))/0x1+parseInt(_0x2dfe2e(0x1a3))/0x2+-parseInt(_0x2dfe2e(0x214))/0x3*(parseInt(_0x2dfe2e(0x380))/0x4)+-parseInt(_0x2dfe2e(0x3a8))/0x5+-parseInt(_0x2dfe2e(0x27d))/0x6*(-parseInt(_0x2dfe2e(0x147))/0x7)+-parseInt(_0x2dfe2e(0x17d))/0x8*(parseInt(_0x2dfe2e(0x2b3))/0x9)+-parseInt(_0x2dfe2e(0x243))/0xa*(-parseInt(_0x2dfe2e(0x215))/0xb);if(_0x7badea===_0x5d75af)break;else _0x44deb2['push'](_0x44deb2['shift']());}catch(_0x2c4b25){_0x44deb2['push'](_0x44deb2['shift']());}}}(_0x2b57,0xb7e80),function(_0x434eb8,_0x4c0d31){const _0x158311=_0x3b2a;typeof exports==_0x158311(0x333)&&typeof module<'u'?_0x4c0d31(exports,require('react/jsx-runtime'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/design'),require('react'),require('@univerjs/rpc'),require('@univerjs/sheets'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs-pro/collaboration'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x158311(0x25f)]?define(['exports',_0x158311(0x32f),'@univerjs-pro/collaboration-client',_0x158311(0x1ba),'@univerjs/ui',_0x158311(0x1e4),'@univerjs/design','react','@univerjs/rpc',_0x158311(0x2bf),_0x158311(0x272),'@univerjs/network',_0x158311(0x384),_0x158311(0x145),_0x158311(0x35e),'@univerjs/docs',_0x158311(0x148),_0x158311(0x154),_0x158311(0x1f1)],_0x4c0d31):(_0x434eb8=typeof globalThis<'u'?globalThis:_0x434eb8||self,_0x4c0d31(_0x434eb8['UniverProCollaborationClientUi']={},_0x434eb8['React'],_0x434eb8[_0x158311(0x15f)],_0x434eb8['UniverCore'],_0x434eb8['UniverUi'],_0x434eb8[_0x158311(0x1e4)],_0x434eb8[_0x158311(0x37e)],_0x434eb8['React'],_0x434eb8[_0x158311(0x2a6)],_0x434eb8[_0x158311(0x3ba)],_0x434eb8[_0x158311(0x343)],_0x434eb8['UniverNetwork'],_0x434eb8[_0x158311(0x2c0)],_0x434eb8[_0x158311(0x2b8)],_0x434eb8[_0x158311(0x3cd)],_0x434eb8[_0x158311(0x306)],_0x434eb8[_0x158311(0x181)],_0x434eb8[_0x158311(0x1e4)][_0x158311(0x1f6)],_0x434eb8['UniverSheetsUi']));}(this,function(_0x309383,_0x4108a3,_0x45d92a,_0x51234e,_0x55a91c,_0x5bbaf2,_0x5ab59c,_0x2da17c,_0xbc201,_0x2cb7cc,_0x5cd4ea,_0x34b1e7,_0x31dfa4,_0x11775c,_0x2bb387,_0x5886b2,_0x2966d1,_0x653998,_0x1f6c03){'use strict';const _0xbc4bab=_0x3b2a;var _0x44b040=Object[_0xbc4bab(0x2d2)],_0x146781=(_0x5b79f1,_0x3ba0bc,_0x516adb)=>_0x3ba0bc in _0x5b79f1?_0x44b040(_0x5b79f1,_0x3ba0bc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x516adb}):_0x5b79f1[_0x3ba0bc]=_0x516adb,_0x1e1d43=(_0x3a95a0,_0x8d50f5,_0x23f4f1)=>_0x146781(_0x3a95a0,typeof _0x8d50f5!=_0xbc4bab(0x38c)?_0x8d50f5+'':_0x8d50f5,_0x23f4f1),_0x1a6fea=function(){const _0x245c46=_0xbc4bab;return _0x1a6fea=Object[_0x245c46(0x3d4)]||function(_0x126ccf){const _0x41c5b7=_0x245c46;for(var _0x3be70d,_0x2e6727=0x1,_0x15c128=arguments[_0x41c5b7(0x277)];_0x2e6727<_0x15c128;_0x2e6727++){_0x3be70d=arguments[_0x2e6727];for(var _0x552dba in _0x3be70d)Object['prototype'][_0x41c5b7(0x2a7)][_0x41c5b7(0x320)](_0x3be70d,_0x552dba)&&(_0x126ccf[_0x552dba]=_0x3be70d[_0x552dba]);}return _0x126ccf;},_0x1a6fea[_0x245c46(0x350)](this,arguments);},_0x79352=function(_0x34e20a,_0x1372cd){const _0x236dc0=_0xbc4bab;var _0x51fcab={};for(var _0x2a96b3 in _0x34e20a)Object[_0x236dc0(0x26b)]['hasOwnProperty'][_0x236dc0(0x320)](_0x34e20a,_0x2a96b3)&&_0x1372cd[_0x236dc0(0x393)](_0x2a96b3)<0x0&&(_0x51fcab[_0x2a96b3]=_0x34e20a[_0x2a96b3]);if(_0x34e20a!=null&&typeof Object[_0x236dc0(0x349)]==_0x236dc0(0x2b2)){for(var _0x3c83bd=0x0,_0x2a96b3=Object[_0x236dc0(0x349)](_0x34e20a);_0x3c83bd<_0x2a96b3[_0x236dc0(0x277)];_0x3c83bd++)_0x1372cd['indexOf'](_0x2a96b3[_0x3c83bd])<0x0&&Object['prototype'][_0x236dc0(0x34b)]['call'](_0x34e20a,_0x2a96b3[_0x3c83bd])&&(_0x51fcab[_0x2a96b3[_0x3c83bd]]=_0x34e20a[_0x2a96b3[_0x3c83bd]]);}return _0x51fcab;},_0x4b2c24=_0x2da17c[_0xbc4bab(0x3a1)](function(_0x4135c1,_0x57b871){const _0x38f007=_0xbc4bab;var _0x236544=_0x4135c1[_0x38f007(0x1e5)],_0x3eca13=_0x4135c1['id'],_0x4e9e6d=_0x4135c1[_0x38f007(0x2fa)],_0xc95e8e=_0x4135c1[_0x38f007(0x301)],_0x3071a8=_0x79352(_0x4135c1,['icon','id',_0x38f007(0x2fa),_0x38f007(0x301)]),_0x1382b4='univerjs-icon\x20univerjs-icon-'[_0x38f007(0x192)](_0x3eca13,'\x20')[_0x38f007(0x192)](_0x4e9e6d||'')['trim'](),_0x16999a=_0x2da17c[_0x38f007(0x259)]('_'[_0x38f007(0x192)](_0x24ba15()));return _0x349d8d(_0x236544,''['concat'](_0x3eca13),{'defIds':_0x236544[_0x38f007(0x290)],'idSuffix':_0x16999a[_0x38f007(0x355)]},_0x1a6fea({'ref':_0x57b871,'className':_0x1382b4},_0x3071a8),_0xc95e8e);});function _0x349d8d(_0x250cf5,_0x1e8d64,_0x1c962e,_0x54e093,_0x2e4faa){const _0x4284b9=_0xbc4bab;return _0x2da17c[_0x4284b9(0x38d)](_0x250cf5[_0x4284b9(0x281)],_0x1a6fea(_0x1a6fea({'key':_0x1e8d64},_0x35d463(_0x250cf5,_0x1c962e,_0x2e4faa)),_0x54e093),(_0x50888c(_0x250cf5,_0x1c962e)[_0x4284b9(0x200)]||[])['map'](function(_0x18c7eb,_0x3bc92d){const _0x6c6dbe=_0x4284b9;return _0x349d8d(_0x18c7eb,''[_0x6c6dbe(0x192)](_0x1e8d64,'-')[_0x6c6dbe(0x192)](_0x250cf5['tag'],'-')['concat'](_0x3bc92d),_0x1c962e,void 0x0,_0x2e4faa);}));}function _0x35d463(_0x584736,_0x17a28f,_0x1e8d13){const _0x13c087=_0xbc4bab;var _0x2cf621=_0x1a6fea({},_0x584736[_0x13c087(0x32d)]);_0x1e8d13!=null&&_0x1e8d13[_0x13c087(0x23a)]&&_0x2cf621['fill']===_0x13c087(0x23a)&&(_0x2cf621[_0x13c087(0x3d8)]=_0x1e8d13[_0x13c087(0x23a)]),_0x584736[_0x13c087(0x281)]==='mask'&&_0x2cf621['id']&&(_0x2cf621['id']=_0x2cf621['id']+_0x17a28f['idSuffix']),Object[_0x13c087(0x23d)](_0x2cf621)[_0x13c087(0x35f)](function(_0x2faf39){const _0x22997e=_0x13c087;var _0x5cff4c=_0x2faf39[0x0],_0x2f08ee=_0x2faf39[0x1];_0x5cff4c===_0x22997e(0x1d1)&&typeof _0x2f08ee==_0x22997e(0x1d3)&&(_0x2cf621[_0x5cff4c]=_0x2f08ee[_0x22997e(0x39e)](/url\(#(.*)\)/,_0x22997e(0x3b4)['concat'](_0x17a28f['idSuffix'],')')));});var _0x5f5b5c=_0x17a28f['defIds'];return!_0x5f5b5c||_0x5f5b5c[_0x13c087(0x277)]===0x0||(_0x584736[_0x13c087(0x281)]===_0x13c087(0x37b)&&_0x2cf621['xlink:href']&&(_0x2cf621[_0x13c087(0x2cb)]=_0x2cf621[_0x13c087(0x2cb)]+_0x17a28f[_0x13c087(0x2ca)]),Object[_0x13c087(0x23d)](_0x2cf621)[_0x13c087(0x35f)](function(_0x249237){const _0x4e7ae7=_0x13c087;var _0xba2451=_0x249237[0x0],_0x47b2c1=_0x249237[0x1];typeof _0x47b2c1==_0x4e7ae7(0x1d3)&&(_0x2cf621[_0xba2451]=_0x47b2c1[_0x4e7ae7(0x39e)](/url\(#(.*)\)/,_0x4e7ae7(0x3b4)[_0x4e7ae7(0x192)](_0x17a28f[_0x4e7ae7(0x2ca)],')')));})),_0x2cf621;}function _0x50888c(_0x2e8b48,_0x305cb0){const _0x299c0b=_0xbc4bab;var _0x4bddb5,_0x5118e2=_0x305cb0[_0x299c0b(0x290)];return!_0x5118e2||_0x5118e2[_0x299c0b(0x277)]===0x0?_0x2e8b48:_0x2e8b48[_0x299c0b(0x281)]===_0x299c0b(0x1f8)&&(!((_0x4bddb5=_0x2e8b48[_0x299c0b(0x200)])===null||_0x4bddb5===void 0x0)&&_0x4bddb5['length'])?_0x1a6fea(_0x1a6fea({},_0x2e8b48),{'children':_0x2e8b48[_0x299c0b(0x200)]['map'](function(_0x1cbebe){const _0x4ffa3b=_0x299c0b;return typeof _0x1cbebe[_0x4ffa3b(0x32d)]['id']==_0x4ffa3b(0x1d3)&&_0x5118e2&&_0x5118e2[_0x4ffa3b(0x3d3)](_0x1cbebe[_0x4ffa3b(0x32d)]['id'])?_0x1a6fea(_0x1a6fea({},_0x1cbebe),{'attrs':_0x1a6fea(_0x1a6fea({},_0x1cbebe[_0x4ffa3b(0x32d)]),{'id':_0x1cbebe[_0x4ffa3b(0x32d)]['id']+_0x305cb0[_0x4ffa3b(0x2ca)]})}):_0x1cbebe;})}):_0x2e8b48;}function _0x24ba15(){const _0x2a8087=_0xbc4bab;return Math[_0x2a8087(0x1c5)]()[_0x2a8087(0x193)](0x24)[_0x2a8087(0x144)](0x2,0x8);}_0x4b2c24[_0xbc4bab(0x22d)]=_0xbc4bab(0x32c);var _0x3d19b5={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xbc4bab(0x2e6),'width':_0xbc4bab(0x198),'height':_0xbc4bab(0x198)},'children':[{'tag':'g','attrs':{'clipPath':_0xbc4bab(0x15e)},'children':[{'tag':_0xbc4bab(0x26a),'attrs':{'stroke':_0xbc4bab(0x273),'d':_0xbc4bab(0x357),'strokeLinecap':_0xbc4bab(0x280),'strokeLinejoin':_0xbc4bab(0x280),'strokeWidth':1.2}}]},{'tag':_0xbc4bab(0x1f8),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xbc4bab(0x2d3)},'children':[{'tag':_0xbc4bab(0x26a),'attrs':{'fill':_0xbc4bab(0x15a),'d':_0xbc4bab(0x210)}}]}]}],'defIds':[_0xbc4bab(0x2d3)]},_0x297683=_0x2da17c[_0xbc4bab(0x3a1)](function(_0x20abad,_0x1a39d8){const _0x507261=_0xbc4bab;return _0x2da17c[_0x507261(0x38d)](_0x4b2c24,Object[_0x507261(0x3d4)]({},_0x20abad,{'id':_0x507261(0x226),'ref':_0x1a39d8,'icon':_0x3d19b5}));});_0x297683[_0xbc4bab(0x22d)]='OffLineIcon';var _0x1559e2={'tag':_0xbc4bab(0x220),'attrs':{'xmlns':_0xbc4bab(0x190),'fill':_0xbc4bab(0x2eb),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0xbc4bab(0x198)},'children':[{'tag':'g','attrs':{'clipPath':_0xbc4bab(0x1e1)},'children':[{'tag':'path','attrs':{'stroke':_0xbc4bab(0x273),'d':'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','strokeLinecap':_0xbc4bab(0x280),'strokeLinejoin':_0xbc4bab(0x280),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xbc4bab(0x28e)},'children':[{'tag':_0xbc4bab(0x26a),'attrs':{'fill':_0xbc4bab(0x15a),'d':_0xbc4bab(0x210),'transform':_0xbc4bab(0x2d5)}}]}]}],'defIds':[_0xbc4bab(0x28e)]},_0x519618=_0x2da17c[_0xbc4bab(0x3a1)](function(_0x38efe6,_0x5cd4f2){const _0x3bca7d=_0xbc4bab;return _0x2da17c[_0x3bca7d(0x38d)](_0x4b2c24,Object[_0x3bca7d(0x3d4)]({},_0x38efe6,{'id':_0x3bca7d(0x2ba),'ref':_0x5cd4f2,'icon':_0x1559e2}));});_0x519618[_0xbc4bab(0x22d)]=_0xbc4bab(0x2da);function _0x3ca4e6(_0x1d3690){const _0x416400=_0xbc4bab;switch(_0x1d3690){case _0x45d92a[_0x416400(0x33c)][_0x416400(0x1cc)]:return'collabStatus.offline';case _0x45d92a[_0x416400(0x33c)][_0x416400(0x251)]:return _0x416400(0x29c);case _0x45d92a['CollaborationStatus']['FETCH_MISS']:return _0x416400(0x29a);case _0x45d92a[_0x416400(0x33c)][_0x416400(0x1a1)]:return _0x416400(0x370);case _0x45d92a[_0x416400(0x33c)][_0x416400(0x386)]:case _0x45d92a[_0x416400(0x33c)][_0x416400(0x26c)]:return _0x416400(0x2bd);case _0x45d92a[_0x416400(0x33c)][_0x416400(0x3ae)]:case _0x45d92a['CollaborationStatus'][_0x416400(0x14f)]:return _0x416400(0x196);}}function _0x70e1eb(_0x134c72){const _0x374e33=_0xbc4bab,{status$:_0x45d259}=_0x134c72,_0x5b37be=_0x55a91c[_0x374e33(0x22e)](_0x45d259,_0x45d92a[_0x374e33(0x33c)][_0x374e33(0x1a1)]),_0x204790=_0x55a91c[_0x374e33(0x162)](_0x51234e[_0x374e33(0x2b1)]),_0x2d482a=_0x55a91c[_0x374e33(0x162)](_0x45d92a[_0x374e33(0x327)]),_0x2895ae=_0x5b37be!==_0x45d92a[_0x374e33(0x33c)][_0x374e33(0x1cc)],_0x9b076d=_0x204790['t'](_0x3ca4e6(_0x5b37be)),_0x34a400=_0x2895ae?_0x4108a3['jsx'](_0x519618,{}):_0x4108a3[_0x374e33(0x28b)](_0x297683,{}),_0x16c008=_0x2da17c[_0x374e33(0x337)](()=>{const _0x130684=_0x374e33;_0x2895ae||_0x2d482a[_0x130684(0x3c0)]();},[_0x2895ae,_0x2d482a]);function _0x4c9ac6(){const _0x54fb7e=_0x374e33;return _0x4108a3[_0x54fb7e(0x3ce)]('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x16c008,'children':[_0x4108a3[_0x54fb7e(0x28b)]('div',{'className':_0x5ab59c[_0x54fb7e(0x18f)](_0x54fb7e(0x205),{'univer-text-green-500':_0x2895ae,'univer-text-red-500':!_0x2895ae}),'children':_0x34a400}),_0x4108a3['jsx'](_0x54fb7e(0x28d),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x9b076d})]});}return _0x2895ae?_0x4c9ac6():_0x4108a3['jsx'](_0x5ab59c['Tooltip'],{'title':_0x204790['t'](_0x374e33(0x167)),'children':_0x4c9ac6()});}var _0x11a979=Object[_0xbc4bab(0x218)],_0x3fea47=(_0x187b77,_0x94055d,_0x4f8f86,_0x4b15b3)=>{const _0x5907dd=_0xbc4bab;for(var _0x5921f5=_0x4b15b3>0x1?void 0x0:_0x4b15b3?_0x11a979(_0x94055d,_0x4f8f86):_0x94055d,_0x2e84f8=_0x187b77[_0x5907dd(0x277)]-0x1,_0x48351e;_0x2e84f8>=0x0;_0x2e84f8--)(_0x48351e=_0x187b77[_0x2e84f8])&&(_0x5921f5=_0x48351e(_0x5921f5)||_0x5921f5);return _0x5921f5;},_0x5b8782=(_0x187dde,_0x4c4d44)=>(_0xfe6cae,_0x346f90)=>_0x4c4d44(_0xfe6cae,_0x346f90,_0x187dde);_0x309383[_0xbc4bab(0x20e)]=class extends _0x51234e['Disposable']{constructor(_0x1ea5fb,_0x12d938,_0x28757e,_0x77b3bb){const _0x39de58=_0xbc4bab;super(),_0x1e1d43(this,_0x39de58(0x151),new _0x5bbaf2['BehaviorSubject'](_0x45d92a[_0x39de58(0x33c)][_0x39de58(0x1a1)])),(this[_0x39de58(0x17e)]=_0x1ea5fb,this[_0x39de58(0x284)]=_0x12d938,this[_0x39de58(0x1d9)]=_0x28757e,this[_0x39de58(0x314)]=_0x77b3bb,this[_0x39de58(0x24c)](),this[_0x39de58(0x158)]());}[_0xbc4bab(0x158)](){const _0x3987c3=_0xbc4bab;this[_0x3987c3(0x2de)](this['_univerInstanceService'][_0x3987c3(0x155)]['pipe'](_0x5bbaf2[_0x3987c3(0x3c8)](()=>{const _0xff396d=_0x3987c3,_0x42dacf=this['_univerInstanceService'][_0xff396d(0x3d9)]();return _0x42dacf?this[_0xff396d(0x1d9)][_0xff396d(0x30e)](_0x42dacf[_0xff396d(0x27a)]()):_0x5bbaf2['of'](null);}),_0x5bbaf2[_0x3987c3(0x3c8)](_0x11dda3=>_0x11dda3?_0x11dda3[_0x3987c3(0x1da)]:_0x5bbaf2['of'](_0x45d92a[_0x3987c3(0x33c)]['NOT_COLLAB'])))[_0x3987c3(0x2ae)](_0x18d61a=>{const _0x2177ca=_0x3987c3;this[_0x2177ca(0x151)][_0x2177ca(0x1ab)](_0x18d61a);}));}[_0xbc4bab(0x24c)](){const _0x5eef0c=_0xbc4bab;this[_0x5eef0c(0x2de)](this[_0x5eef0c(0x314)][_0x5eef0c(0x1b3)](_0x55a91c['BuiltInUIPart']['HEADER_MENU'],()=>_0x55a91c[_0x5eef0c(0x1a5)](_0x566f53({'status$':this['_status$'][_0x5eef0c(0x2ac)]()}),this[_0x5eef0c(0x284)])));}},_0x309383[_0xbc4bab(0x20e)]=_0x3fea47([_0x5b8782(0x0,_0x51234e[_0xbc4bab(0x2a4)]),_0x5b8782(0x1,_0x51234e['Inject'](_0x51234e[_0xbc4bab(0x345)])),_0x5b8782(0x2,_0x51234e[_0xbc4bab(0x1e7)](_0x45d92a[_0xbc4bab(0x3a5)])),_0x5b8782(0x3,_0x55a91c[_0xbc4bab(0x275)])],_0x309383['DesktopCollaborationStatusDisplayController']);function _0x566f53(_0xc0a8ee){const {status$:_0x5c62c2}=_0xc0a8ee;return function(){const _0x410ee1=_0x3b2a;return _0x4108a3[_0x410ee1(0x28b)](_0x70e1eb,{'status$':_0x5c62c2});};}const _0x15568a=_0x51234e['createIdentifier']('uni.network.url-service');var _0x2cd2e4=Object['getOwnPropertyDescriptor'],_0x2b7d6c=(_0x250632,_0x5b9b48,_0x139cd1,_0x5c79d7)=>{const _0x182ab3=_0xbc4bab;for(var _0x51635e=_0x5c79d7>0x1?void 0x0:_0x5c79d7?_0x2cd2e4(_0x5b9b48,_0x139cd1):_0x5b9b48,_0x5a447a=_0x250632[_0x182ab3(0x277)]-0x1,_0x2306b2;_0x5a447a>=0x0;_0x5a447a--)(_0x2306b2=_0x250632[_0x5a447a])&&(_0x51635e=_0x2306b2(_0x51635e)||_0x51635e);return _0x51635e;},_0x451062=(_0x417f84,_0x427fcb)=>(_0x46bda2,_0x82900c)=>_0x427fcb(_0x46bda2,_0x82900c,_0x417f84);_0x309383[_0xbc4bab(0x221)]=class extends _0x51234e[_0xbc4bab(0x207)]{constructor(_0x50ae3d,_0x51062d,_0x2a166e,_0x1539f8,_0x11a4e9){const _0x1b50e9=_0xbc4bab;super(),this[_0x1b50e9(0x2c1)]=_0x50ae3d,this[_0x1b50e9(0x2ff)]=_0x51062d,this[_0x1b50e9(0x20f)]=_0x2a166e,this[_0x1b50e9(0x373)]=_0x1539f8,_0x11a4e9?_0x11a4e9==null||_0x11a4e9[_0x1b50e9(0x182)]()[_0x1b50e9(0x2c2)](()=>this[_0x1b50e9(0x1d6)]()):(this[_0x1b50e9(0x2ff)][_0x1b50e9(0x1bc)]('[CollaborationDataLoaderController]',_0x1b50e9(0x37f)),this[_0x1b50e9(0x1d6)]());}async['_init'](){const _0x3c5492=_0xbc4bab,_0x525a25=this[_0x3c5492(0x2c1)][_0x3c5492(0x363)](_0x3c5492(0x387)),_0x1820b5=this['_urlService'][_0x3c5492(0x363)](_0x3c5492(0x3c2)),_0x337732=this[_0x3c5492(0x2c1)][_0x3c5492(0x363)](_0x3c5492(0x342));if(!_0x525a25||!_0x1820b5){this[_0x3c5492(0x2ff)][_0x3c5492(0x1bc)]('[CollaborationDataLoaderController]',_0x3c5492(0x325));return;}const _0x1dcc36=await this[_0x3c5492(0x373)][_0x3c5492(0x399)](_0x525a25,Number(_0x1820b5),_0x337732);_0x1dcc36&&_0x1dcc36 instanceof _0x51234e[_0x3c5492(0x22c)]&&this[_0x3c5492(0x3b7)](_0x1dcc36);}async[_0xbc4bab(0x3b7)](_0x5e29fc){const _0x3ef7f3=_0xbc4bab;await this[_0x3ef7f3(0x264)](_0x5e29fc),_0x5e29fc['activeSheet$'][_0x3ef7f3(0x3bd)](_0x5bbaf2[_0x3ef7f3(0x2e5)](this['dispose$']))[_0x3ef7f3(0x2ae)](_0x5d7282=>{const _0x455540=_0x3ef7f3;_0x5d7282&&this[_0x455540(0x24d)](_0x5d7282);}),this[_0x3ef7f3(0x2c1)][_0x3ef7f3(0x16a)][_0x3ef7f3(0x3bd)](_0x5bbaf2['takeUntil'](this[_0x3ef7f3(0x1a6)]))['subscribe'](()=>this[_0x3ef7f3(0x264)](_0x5e29fc));}[_0xbc4bab(0x24d)](_0x29804c,_0x47ad90=!0x1){const _0x23c2b0=_0xbc4bab,_0x3aa05f=this['_urlService'][_0x23c2b0(0x363)](_0x23c2b0(0x342));_0x29804c['getSheetId']()!==_0x3aa05f&&this[_0x23c2b0(0x2c1)]['setParam'](_0x23c2b0(0x342),_0x29804c[_0x23c2b0(0x156)](),_0x47ad90);}async[_0xbc4bab(0x264)](_0x93fac){const _0x195cb5=_0xbc4bab;var _0x5eb42d;const _0x3dbdca=this[_0x195cb5(0x2c1)][_0x195cb5(0x363)](_0x195cb5(0x342));if(!_0x3dbdca||!_0x93fac['getSheetBySheetId'](_0x3dbdca)){const _0x4ff547=_0x93fac[_0x195cb5(0x1e6)]()[0x0],_0x5560e4=_0x93fac[_0x195cb5(0x188)](_0x4ff547);if(!_0x5560e4)return;this['_updateURLWithCurrentState'](_0x5560e4,!0x0),await this[_0x195cb5(0x20f)]['executeCommand'](_0x2cb7cc[_0x195cb5(0x1d0)]['id'],{'unitId':_0x93fac[_0x195cb5(0x27a)](),'subUnitId':_0x4ff547});return;}((_0x5eb42d=_0x93fac[_0x195cb5(0x17f)]())==null?void 0x0:_0x5eb42d[_0x195cb5(0x156)]())!==_0x3dbdca&&await this['_commandService'][_0x195cb5(0x298)](_0x2cb7cc[_0x195cb5(0x1d0)]['id'],{'unitId':_0x93fac[_0x195cb5(0x27a)](),'subUnitId':_0x3dbdca});}},_0x309383[_0xbc4bab(0x221)]=_0x2b7d6c([_0x451062(0x0,_0x15568a),_0x451062(0x1,_0x51234e[_0xbc4bab(0x1a8)]),_0x451062(0x2,_0x51234e[_0xbc4bab(0x30f)]),_0x451062(0x3,_0x51234e[_0xbc4bab(0x1e7)](_0x45d92a[_0xbc4bab(0x2a0)])),_0x451062(0x4,_0x51234e['Optional'](_0xbc201['IRemoteInstanceService']))],_0x309383[_0xbc4bab(0x221)]);var _0x9d09a8=Object[_0xbc4bab(0x218)],_0x25b248=(_0x27b364,_0x42e30b,_0x4a7dfe,_0x4b161c)=>{const _0x2ac653=_0xbc4bab;for(var _0x11a3bf=_0x4b161c>0x1?void 0x0:_0x4b161c?_0x9d09a8(_0x42e30b,_0x4a7dfe):_0x42e30b,_0x1066ea=_0x27b364[_0x2ac653(0x277)]-0x1,_0x4a1d67;_0x1066ea>=0x0;_0x1066ea--)(_0x4a1d67=_0x27b364[_0x1066ea])&&(_0x11a3bf=_0x4a1d67(_0x11a3bf)||_0x11a3bf);return _0x11a3bf;},_0x27abb4=(_0x2f643a,_0x41976c)=>(_0x256464,_0x5eb68d)=>_0x41976c(_0x256464,_0x5eb68d,_0x2f643a);let _0x25835a=class extends _0x51234e[_0xbc4bab(0x207)]{constructor(_0x463654,_0x50b6ce){const _0x5370b5=_0xbc4bab;super(),this[_0x5370b5(0x2d4)]=_0x463654,this['_imageIoService']=_0x50b6ce,this[_0x5370b5(0x1d6)]();}[_0xbc4bab(0x1d6)](){const _0x15806f=_0xbc4bab,_0x42ffea=this;this[_0x15806f(0x2de)](this['_docClipboardService'][_0x15806f(0x17c)]({'onBeforePasteImage':async _0x90bc36=>{const _0x912d63=_0x15806f,_0x4a78fb=await _0x42ffea[_0x912d63(0x1de)][_0x912d63(0x1e9)](_0x90bc36);return _0x4a78fb?{'source':_0x4a78fb['source'],'imageSourceType':_0x4a78fb['imageSourceType']}:null;}}));}};_0x25835a=_0x25b248([_0x27abb4(0x0,_0x31dfa4[_0xbc4bab(0x168)]),_0x27abb4(0x1,_0x11775c['IImageIoService'])],_0x25835a);const _0x5ad886=[_0xbc4bab(0x367),_0xbc4bab(0x1ca),_0xbc4bab(0x2e1),_0xbc4bab(0x381),_0xbc4bab(0x239),_0xbc4bab(0x369)];class _0x54275e extends _0x51234e[_0xbc4bab(0x292)]{constructor(){const _0x455ec1=_0xbc4bab;super(...arguments),_0x1e1d43(this,_0x455ec1(0x255),new Map()),_0x1e1d43(this,_0x455ec1(0x1b4),0x0);}[_0xbc4bab(0x3bc)](_0x46af17){const _0x13e90c=_0xbc4bab;if(this['_assignedColors'][_0x13e90c(0x172)](_0x46af17))return this[_0x13e90c(0x255)][_0x13e90c(0x194)](_0x46af17);const _0x520d08=_0x5ad886[this[_0x13e90c(0x1b4)]];return this['_colorIndex']=(this[_0x13e90c(0x1b4)]+0x1)%_0x5ad886[_0x13e90c(0x277)],this[_0x13e90c(0x255)][_0x13e90c(0x36c)](_0x46af17,_0x520d08),_0x520d08;}}function _0x2bc99b(_0x3cd7bf){const _0x22e063=_0xbc4bab;let _0x603c9a='';for(const _0x363e38 of _0x3cd7bf){const {startOffset:_0xc07942,endOffset:_0x4b63ef,isActive:_0x470177,rangeType:_0x386ab7,segmentId:_0x17b528,segmentPage:_0xee2c3d}=_0x363e38;_0x603c9a[_0x22e063(0x277)]&&(_0x603c9a+=','),_0x603c9a+=_0xc07942+':'+_0x4b63ef+':'+(_0x470177?'1':'0')+':'+_0x386ab7+':'+_0x17b528+':'+_0xee2c3d;}return _0x603c9a;}function _0x3ff9a8(_0x504898){const _0x883f7e=_0xbc4bab,_0x432775=_0x504898[_0x883f7e(0x282)](','),_0xc399c9=[];for(const _0xcba303 of _0x432775){const [_0x205308,_0xef0bb9,_0x453c1f,_0x3f09ba,_0x502af3,_0x220249]=_0xcba303['split'](':');_0xc399c9[_0x883f7e(0x1e0)]({'startOffset':Number(_0x205308),'endOffset':Number(_0xef0bb9),'collapsed':_0x205308===_0xef0bb9,'isActive':_0x453c1f==='1','rangeType':_0x3f09ba===_0x51234e['DOC_RANGE_TYPE']['TEXT']?_0x51234e[_0x883f7e(0x335)]['TEXT']:_0x51234e[_0x883f7e(0x335)][_0x883f7e(0x16f)],'segmentId':typeof _0x502af3=='string'?String(_0x502af3):'','segmentPage':Number(_0x220249!=null?_0x220249:-0x1)});}return _0xc399c9[_0x883f7e(0x195)](_0x12511c=>_0x12511c[_0x883f7e(0x2ec)])||(_0xc399c9[0x0][_0x883f7e(0x2ec)]=!0x0),_0xc399c9;}class _0x143609 extends _0x51234e['RxDisposable']{constructor(){const _0x3cc35a=_0xbc4bab;super(...arguments),_0x1e1d43(this,'_collabCursorState$',new _0x5bbaf2[(_0x3cc35a(0x20d))](null)),_0x1e1d43(this,'collabCursorState$',this[_0x3cc35a(0x3da)][_0x3cc35a(0x2ac)]());}['syncEditingCollabCursor'](_0x20dfbe){const _0x32af61=_0xbc4bab,{unitID:_0x5a8d5e,memberID:_0x355146,textRanges:_0x54905a}=_0x20dfbe,_0x178513=_0x2bc99b(_0x54905a);if(_0x178513==='')return;const _0x597797={'unitID':_0x5a8d5e,'memberID':_0x355146,'selection':_0x178513};this['_collabCursorState$'][_0x32af61(0x1ab)](_0x597797);}}var _0x135f85=Object[_0xbc4bab(0x218)],_0x5314dd=(_0x4de90a,_0xe90b94,_0x224ebd,_0x51d61a)=>{const _0x539d49=_0xbc4bab;for(var _0x3da79e=_0x51d61a>0x1?void 0x0:_0x51d61a?_0x135f85(_0xe90b94,_0x224ebd):_0xe90b94,_0x5ab6b4=_0x4de90a[_0x539d49(0x277)]-0x1,_0x11b576;_0x5ab6b4>=0x0;_0x5ab6b4--)(_0x11b576=_0x4de90a[_0x5ab6b4])&&(_0x3da79e=_0x11b576(_0x3da79e)||_0x3da79e);return _0x3da79e;},_0x4b1656=(_0x646629,_0x1aa36a)=>(_0x11c498,_0x30daeb)=>_0x1aa36a(_0x11c498,_0x30daeb,_0x646629);const _0x1d3b69=0x12c,_0x71aeba=0x64;let _0x411e32=class extends _0x51234e['RxDisposable']{constructor(_0x28f29b,_0x451e3b,_0x387355,_0x575ee3,_0x336e31,_0x45fac7,_0x3635ae,_0x5f1e46,_0x4ecde9){const _0xc4c1b5=_0xbc4bab;super(),_0x1e1d43(this,_0xc4c1b5(0x2d7),!0x1),_0x1e1d43(this,'_init',!0x1),_0x1e1d43(this,_0xc4c1b5(0x241),new _0x5bbaf2[(_0xc4c1b5(0x20d))](new Map())),_0x1e1d43(this,_0xc4c1b5(0x21c),this[_0xc4c1b5(0x241)][_0xc4c1b5(0x2ac)]()),_0x1e1d43(this,_0xc4c1b5(0x206),new _0x5bbaf2['BehaviorSubject']([])),_0x1e1d43(this,_0xc4c1b5(0x1f5),this[_0xc4c1b5(0x206)][_0xc4c1b5(0x3bd)](_0x5bbaf2[_0xc4c1b5(0x252)](_0x1d3b69))),_0x1e1d43(this,_0xc4c1b5(0x371),_0x51234e['debounce'](_0x4d3fd6=>{const _0x49852c=_0xc4c1b5,_0x2998a7={'eventID':_0x2bb387[_0x49852c(0x2be)][_0x49852c(0x35c)],'data':{'unitID':this['unitID'],'memberID':this[_0x49852c(0x20a)]['getMemberID'](),'selection':_0x2bc99b(_0x4d3fd6)}};this[_0x49852c(0x20a)]['send'](_0x2998a7,this[_0x49852c(0x228)]);},_0x71aeba)),(this['unitID']=_0x28f29b,this[_0xc4c1b5(0x20a)]=_0x451e3b,this[_0xc4c1b5(0x284)]=_0x387355,this['_colorAssignService']=_0x575ee3,this[_0xc4c1b5(0x3a3)]=_0x336e31,this['_syncEditingCollabCursorService']=_0x45fac7,this[_0xc4c1b5(0x16b)]=_0x3635ae,this[_0xc4c1b5(0x17e)]=_0x5f1e46,this['_commandService']=_0x4ecde9);}get['cursorInfo'](){const _0x1987bb=_0xbc4bab;return this[_0x1987bb(0x241)]['getValue']();}get['roomMembers'](){const _0xe163e=_0xbc4bab;return this['_roomMembers$'][_0xe163e(0x294)]();}[_0xbc4bab(0x310)](){const _0x1717bc=_0xbc4bab;super['dispose'](),this[_0x1717bc(0x241)][_0x1717bc(0x1ab)](new Map()),this[_0x1717bc(0x241)][_0x1717bc(0x19e)](),this['_roomMembers$'][_0x1717bc(0x1ab)]([]),this[_0x1717bc(0x206)][_0x1717bc(0x19e)]();}[_0xbc4bab(0x26f)](){const _0x28658e=_0xbc4bab;this[_0x28658e(0x1d6)]||(this[_0x28658e(0x1d6)]=!0x0,this['_session'][_0x28658e(0x385)][_0x28658e(0x3bd)](_0x5bbaf2['takeUntil'](this[_0x28658e(0x1a6)]))['subscribe'](_0x3f2ce0=>{const _0x38fb8f=_0x28658e;_0x3f2ce0===_0x45d92a['SessionStatus'][_0x38fb8f(0x25c)]?this[_0x38fb8f(0x3b5)]():this['_toggleOffline']();}),this[_0x28658e(0x20a)][_0x28658e(0x2c5)][_0x28658e(0x3bd)](_0x5bbaf2[_0x28658e(0x2e5)](this[_0x28658e(0x1a6)]))['subscribe'](_0xe0027b=>{const _0x501c36=_0x28658e,_0x3b85a0=_0xe0027b[_0x501c36(0x143)];_0x3b85a0===_0x2bb387[_0x501c36(0x2be)][_0x501c36(0x35c)]&&this[_0x501c36(0x3c1)](_0xe0027b),_0x3b85a0===_0x2bb387[_0x501c36(0x2be)]['USERS_LEAVE']&&this[_0x501c36(0x39b)](_0xe0027b);}),this[_0x28658e(0x2de)](this['_commandService'][_0x28658e(0x153)](_0x158ffb=>{const _0x5780d1=_0x28658e,_0x550c0f=_0x158ffb[_0x5780d1(0x32a)];_0x550c0f!=null&&this[_0x5780d1(0x2d7)]&&_0x158ffb['id']===_0x5886b2['SetTextSelectionsOperation']['id']&&_0x550c0f[_0x5780d1(0x3c6)]===this[_0x5780d1(0x228)]&&_0x550c0f['isEditing']===!0x1&&_0x550c0f[_0x5780d1(0x201)][_0x5780d1(0x277)]>0x0&&this[_0x5780d1(0x371)](_0x550c0f['ranges']);})),this[_0x28658e(0x2e8)][_0x28658e(0x2e3)][_0x28658e(0x3bd)](_0x5bbaf2[_0x28658e(0x2e5)](this['dispose$']))['subscribe'](_0x3c6004=>{const _0x4b44c5=_0x28658e;if((_0x3c6004==null?void 0x0:_0x3c6004['unitID'])!==this[_0x4b44c5(0x228)])return;const _0x30367d={'eventID':_0x2bb387[_0x4b44c5(0x2be)][_0x4b44c5(0x35c)],'data':_0x3c6004};this[_0x4b44c5(0x3c1)](_0x30367d);}),this[_0x28658e(0x2de)](this[_0x28658e(0x20f)][_0x28658e(0x153)](_0x42cee8=>{const _0x53b32d=_0x28658e;if(_0x42cee8[_0x53b32d(0x32a)]==null)return;const _0x517648=_0x42cee8['params'];if(_0x42cee8['id']!==_0x5886b2['RichTextEditingMutation']['id']||_0x517648[_0x53b32d(0x3c6)]!==this[_0x53b32d(0x228)])return;const _0x33f36f={'id':_0x53b32d(0x274),'params':_0x517648},_0x25f471=this['cursorInfo'];for(const [_0x5cfb35,_0x2a857e]of _0x25f471){const _0x41c25b={'id':_0x53b32d(0x274),'params':{'unitId':this[_0x53b32d(0x228)],'actions':null,'textRanges':_0x2a857e['ranges']}},_0x3d39ba=this[_0x53b32d(0x16b)]['transformMutation'](_0x33f36f,_0x41c25b,!0x1);if(_0x2bb387[_0x53b32d(0x2dc)](_0x3d39ba))throw _0x3d39ba[_0x53b32d(0x25a)];_0x25f471[_0x53b32d(0x36c)](_0x5cfb35,{..._0x2a857e,'ranges':_0x3d39ba['m2Prime'][_0x53b32d(0x32a)][_0x53b32d(0x185)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x25f471);});})));}['_onCursorUpdate'](_0x633321){const _0x40cd48=_0xbc4bab;var _0x271e4c,_0x5ef6b9;const {memberID:_0xe1c9cd,selection:_0x1c5cf5}=_0x633321[_0x40cd48(0x1b0)],_0x26f810=_0x3ff9a8(_0x1c5cf5),_0x264b32=(_0x5ef6b9=(_0x271e4c=this[_0x40cd48(0x3a3)]['getMember'](this['unitID'],_0xe1c9cd))==null?void 0x0:_0x271e4c[_0x40cd48(0x296)])!=null?_0x5ef6b9:_0x40cd48(0x329),_0x460aac={'color':this[_0x40cd48(0x3d5)][_0x40cd48(0x3bc)](_0xe1c9cd),'name':_0x264b32,'ranges':_0x26f810},_0x4d64b5=this[_0x40cd48(0x219)];_0x4d64b5['set'](_0xe1c9cd,_0x460aac),this[_0x40cd48(0x241)]['next'](_0x4d64b5);}[_0xbc4bab(0x39b)](_0x2629f7){const _0x2abb6d=_0xbc4bab,{memberID:_0x562829}=_0x2629f7['data'],_0x396260=this[_0x2abb6d(0x219)];_0x396260[_0x2abb6d(0x339)](_0x562829),this[_0x2abb6d(0x241)][_0x2abb6d(0x1ab)](_0x396260);}[_0xbc4bab(0x3b5)](){const _0x4994d3=_0xbc4bab;var _0x538095;if(this['_online']=!0x0,((_0x538095=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x538095[_0x4994d3(0x27a)]())!==this[_0x4994d3(0x228)])return;const _0x329b87=this[_0x4994d3(0x284)][_0x4994d3(0x194)](_0x5886b2['DocSelectionManagerService'])[_0x4994d3(0x3ad)]();Array[_0x4994d3(0x35b)](_0x329b87)&&_0x329b87[_0x4994d3(0x277)]>0x0&&this[_0x4994d3(0x371)](_0x329b87);}[_0xbc4bab(0x305)](){const _0x1436d4=_0xbc4bab;this[_0x1436d4(0x2d7)]=!0x1;}};_0x411e32=_0x5314dd([_0x4b1656(0x2,_0x51234e['Inject'](_0x51234e[_0xbc4bab(0x345)])),_0x4b1656(0x3,_0x51234e[_0xbc4bab(0x1e7)](_0x54275e)),_0x4b1656(0x4,_0x51234e[_0xbc4bab(0x1e7)](_0x45d92a[_0xbc4bab(0x178)])),_0x4b1656(0x5,_0x51234e[_0xbc4bab(0x1e7)](_0x143609)),_0x4b1656(0x6,_0x2bb387[_0xbc4bab(0x32e)]),_0x4b1656(0x7,_0x51234e[_0xbc4bab(0x2a4)]),_0x4b1656(0x8,_0x51234e[_0xbc4bab(0x30f)])],_0x411e32);var _0x381fae=Object['getOwnPropertyDescriptor'],_0xbbac47=(_0x5bf41c,_0x38627d,_0x504201,_0x25bf5d)=>{const _0x2a4a04=_0xbc4bab;for(var _0x7b8b1d=_0x25bf5d>0x1?void 0x0:_0x25bf5d?_0x381fae(_0x38627d,_0x504201):_0x38627d,_0x506634=_0x5bf41c[_0x2a4a04(0x277)]-0x1,_0x22bd70;_0x506634>=0x0;_0x506634--)(_0x22bd70=_0x5bf41c[_0x506634])&&(_0x7b8b1d=_0x22bd70(_0x7b8b1d)||_0x7b8b1d);return _0x7b8b1d;},_0x30b00e=(_0x18321e,_0x52c545)=>(_0x49143f,_0x36496e)=>_0x52c545(_0x49143f,_0x36496e,_0x18321e);const _0x3fa754=0x12c,_0x3c0e6d=0x64,_0x308728=()=>{let _0x41afff=[],_0x486f08=!0x1;return _0x58011c=>{const _0x2fefe7=_0x3b2a;_0x41afff[_0x2fefe7(0x1e0)](_0x58011c),_0x486f08||(_0x486f08=!0x0,setTimeout(()=>{const _0x3a0fd2=_0x2fefe7;_0x41afff[_0x3a0fd2(0x35f)](_0x205765=>_0x205765()),_0x41afff=[],_0x486f08=!0x1;}));};};let _0x6710a4=class extends _0x51234e[_0xbc4bab(0x207)]{constructor(_0xd5de8d,_0x163a76,_0x4564ca,_0x577805,_0x25573a,_0x82e508,_0x42bf58,_0x3a471e){const _0x144185=_0xbc4bab;super(),_0x1e1d43(this,_0x144185(0x2d7),!0x1),_0x1e1d43(this,'_init',!0x1),_0x1e1d43(this,_0x144185(0x241),new _0x5bbaf2[(_0x144185(0x20d))](new Map())),_0x1e1d43(this,_0x144185(0x21c),this['_cursorInfo$'][_0x144185(0x2ac)]()),_0x1e1d43(this,_0x144185(0x206),new _0x5bbaf2[(_0x144185(0x20d))]([])),_0x1e1d43(this,_0x144185(0x1f5),this[_0x144185(0x206)][_0x144185(0x3bd)](_0x5bbaf2[_0x144185(0x252)](_0x3fa754))),_0x1e1d43(this,_0x144185(0x371),_0x51234e[_0x144185(0x288)]((_0x38bc5a,_0x553966)=>{const _0x2e4e38=_0x144185,_0x53d1f7={'eventID':_0x2bb387[_0x2e4e38(0x2be)][_0x2e4e38(0x35c)],'data':{'unitID':this[_0x2e4e38(0x228)],'memberID':this[_0x2e4e38(0x20a)][_0x2e4e38(0x2a3)](),'selection':_0x2966d1[_0x2e4e38(0x247)](_0x38bc5a,_0x553966[_0x2e4e38(0x3a4)])}};this[_0x2e4e38(0x20a)][_0x2e4e38(0x244)](_0x53d1f7,this['unitID']);},_0x3c0e6d)),(this[_0x144185(0x228)]=_0xd5de8d,this[_0x144185(0x20a)]=_0x163a76,this[_0x144185(0x284)]=_0x4564ca,this[_0x144185(0x3d5)]=_0x577805,this[_0x144185(0x3a3)]=_0x25573a,this[_0x144185(0x17e)]=_0x82e508,this[_0x144185(0x20f)]=_0x42bf58,this[_0x144185(0x1b2)]=_0x3a471e);}get[_0xbc4bab(0x219)](){const _0x548ca5=_0xbc4bab;return this[_0x548ca5(0x241)]['getValue']();}get[_0xbc4bab(0x29d)](){const _0x2ef32e=_0xbc4bab;return this[_0x2ef32e(0x206)]['getValue']();}['dispose'](){const _0x194801=_0xbc4bab;super[_0x194801(0x310)](),this[_0x194801(0x241)][_0x194801(0x1ab)](new Map()),this[_0x194801(0x241)][_0x194801(0x19e)](),this[_0x194801(0x206)][_0x194801(0x1ab)]([]),this[_0x194801(0x206)][_0x194801(0x19e)]();}[_0xbc4bab(0x26f)](){const _0x4b9e9f=_0xbc4bab;this[_0x4b9e9f(0x1d6)]||(this['_init']=!0x0,this[_0x4b9e9f(0x20a)][_0x4b9e9f(0x385)][_0x4b9e9f(0x3bd)](_0x5bbaf2['takeUntil'](this[_0x4b9e9f(0x1a6)]))[_0x4b9e9f(0x2ae)](_0x37727e=>{const _0x438bc6=_0x4b9e9f;_0x37727e===_0x45d92a['SessionStatus'][_0x438bc6(0x25c)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x4b9e9f(0x20a)][_0x4b9e9f(0x2c5)][_0x4b9e9f(0x3bd)](_0x5bbaf2[_0x4b9e9f(0x2e5)](this[_0x4b9e9f(0x1a6)]))[_0x4b9e9f(0x2ae)](_0x31a727=>{const _0x4dc27b=_0x4b9e9f,_0x4492e7=_0x31a727['eventID'];_0x4492e7===_0x2bb387[_0x4dc27b(0x2be)][_0x4dc27b(0x35c)]&&this[_0x4dc27b(0x3c1)](_0x31a727),_0x4492e7===_0x2bb387['CollaborationEvent'][_0x4dc27b(0x319)]&&this['_onCursorDelete'](_0x31a727);}),this[_0x4b9e9f(0x1d4)](),this['disposeWithMe'](this['_commandService'][_0x4b9e9f(0x153)](_0x4d96d3=>{const _0x2b076e=_0x4b9e9f;if(this[_0x2b076e(0x2d7)]&&_0x4d96d3['id']===_0x2cb7cc[_0x2b076e(0x23b)]['id']&&_0x4d96d3[_0x2b076e(0x32a)][_0x2b076e(0x3c6)]===this['unitID']){const _0x204603=_0x4d96d3[_0x2b076e(0x32a)];this[_0x2b076e(0x371)](_0x204603[_0x2b076e(0x366)],_0x204603[_0x2b076e(0x359)][0x0]);}})));}[_0xbc4bab(0x3c1)](_0xc13aa7){const _0x406f55=_0xbc4bab;var _0x20a56c,_0x28562a;const {memberID:_0x247ddc,selection:_0x5aa9df}=_0xc13aa7[_0x406f55(0x1b0)],{sheetName:_0xdf1b05,range:_0x19a23d}=_0x2966d1[_0x406f55(0x1d8)](_0x5aa9df),_0x59ad5b={'name':(_0x28562a=(_0x20a56c=this[_0x406f55(0x3a3)][_0x406f55(0x2f9)](this[_0x406f55(0x228)],_0x247ddc))==null?void 0x0:_0x20a56c[_0x406f55(0x296)])!=null?_0x28562a:_0x406f55(0x329),'range':this[_0x406f55(0x31a)](_0xdf1b05,_0x19a23d),'sheetID':_0xdf1b05,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x247ddc),'selection':_0x5aa9df},_0x56fb7b=this[_0x406f55(0x219)];_0x56fb7b[_0x406f55(0x36c)](_0x247ddc,_0x59ad5b),this[_0x406f55(0x241)]['next'](_0x56fb7b);}[_0xbc4bab(0x39b)](_0x4d1fc9){const _0xa81bf8=_0xbc4bab,{memberID:_0x6cea8d}=_0x4d1fc9[_0xa81bf8(0x1b0)],_0x1cfed0=this[_0xa81bf8(0x219)];_0x1cfed0[_0xa81bf8(0x339)](_0x6cea8d),this[_0xa81bf8(0x241)][_0xa81bf8(0x1ab)](_0x1cfed0);}[_0xbc4bab(0x31a)](_0x3ec00c,_0x4186e1){const _0x444ae6=_0xbc4bab;var _0x2411a3,_0x444126;const _0x2bef74=(_0x444126=(_0x2411a3=this[_0x444ae6(0x17e)][_0x444ae6(0x368)](this[_0x444ae6(0x228)]))==null?void 0x0:_0x2411a3['getSheetBySheetId'](_0x3ec00c))==null?void 0x0:_0x444126[_0x444ae6(0x1ce)]();return(_0x2bef74==null?void 0x0:_0x2bef74['find'](_0x3f85c6=>_0x51234e[_0x444ae6(0x36b)][_0x444ae6(0x1d7)](_0x3f85c6,_0x4186e1)))||_0x4186e1;}['_onRefRangeChange'](){const _0x98dbf9=_0xbc4bab,_0x6f6f3a=new _0x51234e['DisposableCollection'](),_0x198f00=_0x308728(),_0xc2a8bf=()=>{const _0x4f184d=_0x3b2a;_0x6f6f3a[_0x4f184d(0x310)]();const _0x154ed6=(_0xf14553,_0x41a040,_0x53b833,_0x46bac4)=>{const _0xb22c7d=_0x4f184d;let _0x34b1eb=[];switch(_0xf14553['id']){case _0x2cb7cc[_0xb22c7d(0x267)][_0xb22c7d(0x29b)]:{_0x34b1eb=_0x2cb7cc[_0xb22c7d(0x2d9)](_0xf14553,_0x46bac4);break;}case _0x2cb7cc[_0xb22c7d(0x267)]['DeleteRangeMoveUpCommandId']:{_0x34b1eb=_0x2cb7cc['handleDeleteRangeMoveUp'](_0xf14553,_0x46bac4);break;}case _0x2cb7cc[_0xb22c7d(0x267)][_0xb22c7d(0x334)]:{_0x34b1eb=_0x2cb7cc[_0xb22c7d(0x37c)](_0xf14553,_0x46bac4);break;}case _0x2cb7cc[_0xb22c7d(0x267)][_0xb22c7d(0x283)]:{_0x34b1eb=_0x2cb7cc[_0xb22c7d(0x31e)](_0xf14553,_0x46bac4);break;}case _0x2cb7cc['EffectRefRangId'][_0xb22c7d(0x230)]:{_0x34b1eb=_0x2cb7cc[_0xb22c7d(0x3be)](_0xf14553,_0x46bac4);break;}case _0x2cb7cc[_0xb22c7d(0x267)][_0xb22c7d(0x1c2)]:{_0x34b1eb=_0x2cb7cc['handleInsertRow'](_0xf14553,_0x46bac4);break;}case _0x2cb7cc[_0xb22c7d(0x267)]['MoveRangeCommandId']:{_0x34b1eb=_0x2cb7cc[_0xb22c7d(0x295)](_0xf14553,_0x46bac4);break;}case _0x2cb7cc[_0xb22c7d(0x267)][_0xb22c7d(0x3c3)]:{_0x34b1eb=_0x2cb7cc[_0xb22c7d(0x2ed)](_0xf14553,_0x46bac4);break;}case _0x2cb7cc[_0xb22c7d(0x267)]['RemoveRowCommandId']:{_0x34b1eb=_0x2cb7cc['handleIRemoveRow'](_0xf14553,_0x46bac4);break;}}const _0x5d6fc6=_0x2cb7cc[_0xb22c7d(0x346)](_0x34b1eb,_0x46bac4),_0x629829=this['cursorInfo']['get'](_0x41a040);if(_0x629829&&_0x5d6fc6){const _0x62bb5a={..._0x629829,'range':_0x5d6fc6};this[_0xb22c7d(0x219)][_0xb22c7d(0x36c)](_0x41a040,_0x62bb5a),_0x198f00(()=>{const _0x38770e=_0xb22c7d,_0xe1b969=this[_0x38770e(0x1b2)]['registerRefRange'](_0x5d6fc6,_0x2c4b31=>(_0xe1b969['dispose'](),_0x154ed6(_0x2c4b31,_0x41a040,_0x53b833,_0x5d6fc6)));_0x6f6f3a[_0x38770e(0x2fb)](_0xe1b969);});}return{'redos':[],'undos':[]};};this[_0x4f184d(0x219)]['forEach']((_0x386b8c,_0x2fd282)=>{const _0x35d29f=_0x4f184d,{range:_0x33b3df,sheetID:_0xf8ba73}=_0x386b8c,_0x4bba6d=this['_refRangeService'][_0x35d29f(0x21a)](_0x33b3df,_0x8df1dc=>(_0x4bba6d[_0x35d29f(0x310)](),_0x154ed6(_0x8df1dc,_0x2fd282,_0xf8ba73,_0x33b3df)));_0x6f6f3a[_0x35d29f(0x2fb)](_0x4bba6d);});};this['disposeWithMe'](_0x51234e[_0x98dbf9(0x33a)](this[_0x98dbf9(0x241)]['subscribe'](()=>{_0xc2a8bf();})));}[_0xbc4bab(0x3b5)](){const _0x5a0583=_0xbc4bab;var _0x899b9d,_0x2cfc1e;if(this[_0x5a0583(0x2d7)]=!0x0,((_0x899b9d=this[_0x5a0583(0x17e)][_0x5a0583(0x3d9)]())==null?void 0x0:_0x899b9d[_0x5a0583(0x27a)]())!==this['unitID'])return;const _0x2317c8=(_0x2cfc1e=this[_0x5a0583(0x284)][_0x5a0583(0x194)](_0x2cb7cc['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x2cfc1e[0x0],_0x3c3a27=this[_0x5a0583(0x17e)]['getCurrentUnitForType'](_0x51234e[_0x5a0583(0x3af)]['UNIVER_SHEET'])['getActiveSheet']();_0x2317c8&&_0x3c3a27&&this['_updateLocalCursor'](_0x3c3a27[_0x5a0583(0x156)](),_0x2317c8);}[_0xbc4bab(0x305)](){const _0x54873d=_0xbc4bab;this[_0x54873d(0x2d7)]=!0x1;}};_0x6710a4=_0xbbac47([_0x30b00e(0x2,_0x51234e['Inject'](_0x51234e[_0xbc4bab(0x345)])),_0x30b00e(0x3,_0x51234e['Inject'](_0x54275e)),_0x30b00e(0x4,_0x51234e[_0xbc4bab(0x1e7)](_0x45d92a['MemberService'])),_0x30b00e(0x5,_0x51234e[_0xbc4bab(0x2a4)]),_0x30b00e(0x6,_0x51234e['ICommandService']),_0x30b00e(0x7,_0x51234e[_0xbc4bab(0x1e7)](_0x2cb7cc[_0xbc4bab(0x2cd)]))],_0x6710a4);var _0x1d4b03=Object[_0xbc4bab(0x218)],_0x2ca213=(_0x3502fb,_0x19b652,_0x1d29af,_0x56b4e4)=>{const _0x38c923=_0xbc4bab;for(var _0x41ab5f=_0x56b4e4>0x1?void 0x0:_0x56b4e4?_0x1d4b03(_0x19b652,_0x1d29af):_0x19b652,_0x81a2ea=_0x3502fb[_0x38c923(0x277)]-0x1,_0x3ec4d3;_0x81a2ea>=0x0;_0x81a2ea--)(_0x3ec4d3=_0x3502fb[_0x81a2ea])&&(_0x41ab5f=_0x3ec4d3(_0x41ab5f)||_0x41ab5f);return _0x41ab5f;},_0x30c703=(_0x2c9e68,_0x2ed25d)=>(_0x577557,_0x539522)=>_0x2ed25d(_0x577557,_0x539522,_0x2c9e68);let _0x217dd7=class extends _0x51234e[_0xbc4bab(0x207)]{constructor(_0xd240db,_0x178801,_0x24ed35){const _0x448426=_0xbc4bab;super(),_0x1e1d43(this,_0x448426(0x2b7),new Map()),_0x1e1d43(this,_0x448426(0x3cc),new _0x5bbaf2[(_0x448426(0x150))]()),(this['_univerInstanceService']=_0xd240db,this[_0x448426(0x284)]=_0x178801,this[_0x448426(0x157)]=_0x24ed35,this[_0x448426(0x1d6)]());}[_0xbc4bab(0x310)](){const _0x5c5376=_0xbc4bab;super['dispose'](),this[_0x5c5376(0x3cc)][_0x5c5376(0x19e)](),this[_0x5c5376(0x2b7)]['forEach'](_0x3bece0=>_0x3bece0['dispose']());}[_0xbc4bab(0x336)](_0x1959fa){const _0x1b32b7=_0xbc4bab;return this[_0x1b32b7(0x2b7)][_0x1b32b7(0x172)](_0x1959fa)?this[_0x1b32b7(0x2b7)][_0x1b32b7(0x194)](_0x1959fa)[_0x1b32b7(0x21c)]:this['_entityInit$'][_0x1b32b7(0x3bd)](_0x5bbaf2[_0x1b32b7(0x2af)](_0x5336dc=>_0x5336dc[_0x1b32b7(0x228)]===_0x1959fa),_0x5bbaf2[_0x1b32b7(0x3c8)](_0x2613a3=>_0x2613a3[_0x1b32b7(0x21c)]));}[_0xbc4bab(0x1d6)](){const _0x132f0e=_0xbc4bab;this[_0x132f0e(0x17e)][_0x132f0e(0x2cf)](_0x51234e['UniverInstanceType'][_0x132f0e(0x1a7)])['pipe'](_0x5bbaf2['takeUntil'](this[_0x132f0e(0x1a6)]))['subscribe'](async _0x160503=>{const _0x581995=_0x132f0e,_0x3e7c42=_0x160503[_0x581995(0x27a)](),_0x1d1215=await this[_0x581995(0x2e9)](_0x3e7c42);this[_0x581995(0x3cc)][_0x581995(0x1ab)](_0x1d1215),this[_0x581995(0x2b7)][_0x581995(0x36c)](_0x3e7c42,_0x1d1215);}),this[_0x132f0e(0x17e)][_0x132f0e(0x2cf)](_0x51234e[_0x132f0e(0x3af)][_0x132f0e(0x26e)])[_0x132f0e(0x3bd)](_0x5bbaf2['takeUntil'](this[_0x132f0e(0x1a6)]))[_0x132f0e(0x3bd)](_0x5bbaf2[_0x132f0e(0x2af)](_0x19eac5=>!_0x19eac5[_0x132f0e(0x27a)]()[_0x132f0e(0x304)]('__')))[_0x132f0e(0x2ae)](async _0x8c4f76=>{const _0x4b0106=_0x132f0e,_0x5177ca=_0x8c4f76[_0x4b0106(0x27a)](),_0x31208d=await this[_0x4b0106(0x149)](_0x5177ca);this[_0x4b0106(0x3cc)][_0x4b0106(0x1ab)](_0x31208d),this['_entities'][_0x4b0106(0x36c)](_0x5177ca,_0x31208d);}),_0x5bbaf2[_0x132f0e(0x374)](this[_0x132f0e(0x17e)]['getTypeOfUnitDisposed$'](_0x51234e['UniverInstanceType'][_0x132f0e(0x26e)]),this[_0x132f0e(0x17e)]['getTypeOfUnitDisposed$'](_0x51234e[_0x132f0e(0x3af)][_0x132f0e(0x1a7)]))[_0x132f0e(0x3bd)](_0x5bbaf2['takeUntil'](this[_0x132f0e(0x1a6)]))['subscribe'](_0x251284=>{const _0x2de6cb=_0x132f0e,_0x8d42aa=_0x251284[_0x2de6cb(0x27a)](),_0x4e8ddc=this['_entities']['get'](_0x8d42aa);_0x4e8ddc&&(_0x4e8ddc[_0x2de6cb(0x310)](),this[_0x2de6cb(0x2b7)][_0x2de6cb(0x339)](_0x8d42aa));});}async[_0xbc4bab(0x2e9)](_0x3c5a35){const _0x3f42f5=_0xbc4bab,_0x43450f=await this['_collabSessionService']['requireSession'](_0x3c5a35),_0x11a6e9=this['_injector'][_0x3f42f5(0x39c)](_0x6710a4,_0x3c5a35,_0x43450f);return _0x11a6e9[_0x3f42f5(0x26f)](),_0x11a6e9;}async[_0xbc4bab(0x149)](_0x4517a3){const _0x1b92e9=_0xbc4bab,_0x49cd92=await this['_collabSessionService'][_0x1b92e9(0x358)](_0x4517a3),_0x4e9e82=this[_0x1b92e9(0x284)][_0x1b92e9(0x39c)](_0x411e32,_0x4517a3,_0x49cd92);return _0x4e9e82[_0x1b92e9(0x26f)](),_0x4e9e82;}};_0x217dd7=_0x2ca213([_0x30c703(0x0,_0x51234e['IUniverInstanceService']),_0x30c703(0x1,_0x51234e[_0xbc4bab(0x1e7)](_0x51234e['Injector'])),_0x30c703(0x2,_0x51234e['Inject'](_0x45d92a[_0xbc4bab(0x327)]))],_0x217dd7);const _0x1c6139=0x14,_0x21f322=0xc8,_0x39817f=0x4,_0x4ca3a9=0x5;function _0x53b84c(_0x55853d,_0x3fa353){const _0x984b3b=_0xbc4bab;let {radius:_0x340f48,width:_0x4c9dd2,height:_0x2fff1a}=_0x3fa353;_0x340f48=_0x340f48!=null?_0x340f48:0x0,_0x4c9dd2=_0x4c9dd2!=null?_0x4c9dd2:0x1e,_0x2fff1a=_0x2fff1a!=null?_0x2fff1a:0x1e;let _0x398d7d=0x0,_0x18892a=0x0,_0x10febd=0x0;_0x398d7d=_0x18892a=_0x10febd=Math[_0x984b3b(0x2f6)](_0x340f48,_0x4c9dd2/0x2,_0x2fff1a/0x2),_0x55853d[_0x984b3b(0x38e)](),_0x55853d[_0x984b3b(0x383)](_0x398d7d,0x0),_0x55853d[_0x984b3b(0x1bb)](_0x4c9dd2-_0x18892a,0x0),_0x55853d[_0x984b3b(0x229)](_0x4c9dd2-_0x18892a,_0x18892a,_0x18892a,Math['PI']*0x3/0x2,0x0,!0x1),_0x55853d[_0x984b3b(0x1bb)](_0x4c9dd2,_0x2fff1a-_0x10febd),_0x55853d[_0x984b3b(0x229)](_0x4c9dd2-_0x10febd,_0x2fff1a-_0x10febd,_0x10febd,0x0,Math['PI']/0x2,!0x1),_0x55853d[_0x984b3b(0x1bb)](0x0,_0x2fff1a),_0x55853d[_0x984b3b(0x1bb)](0x0,_0x398d7d),_0x55853d[_0x984b3b(0x229)](_0x398d7d,_0x398d7d,_0x398d7d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x55853d[_0x984b3b(0x258)](),_0x3fa353[_0x984b3b(0x3d8)]&&(_0x55853d['save'](),_0x55853d[_0x984b3b(0x28a)]=_0x3fa353['fill'],_0x3fa353[_0x984b3b(0x1c4)]===_0x984b3b(0x1be)?_0x55853d[_0x984b3b(0x3d8)]('evenodd'):_0x55853d['fill'](),_0x55853d['restore']());}class _0x51e8ff extends _0x5cd4ea[_0xbc4bab(0x291)]{constructor(_0x5babf4,_0x454cbb){const _0x9e8d98=_0xbc4bab;super(_0x5babf4,_0x454cbb),_0x1e1d43(this,_0x9e8d98(0x285)),_0x1e1d43(this,'text'),(this['color']=_0x454cbb==null?void 0x0:_0x454cbb[_0x9e8d98(0x285)],this[_0x9e8d98(0x397)]=_0x454cbb==null?void 0x0:_0x454cbb[_0x9e8d98(0x397)]);}static[_0xbc4bab(0x160)](_0x298d38,_0xfe5bf1){const _0x2bf444=_0xbc4bab,{text:_0xa3f01d,color:_0x415509}=_0xfe5bf1;_0x298d38[_0x2bf444(0x1b8)](),_0x298d38[_0x2bf444(0x18c)]=_0x2bf444(0x30d);const _0x43bf18=_0x298d38[_0x2bf444(0x1cb)](_0xa3f01d)[_0x2bf444(0x354)],_0x1fade9=Math['min'](_0x43bf18+0x2*_0x39817f,_0x21f322);_0x53b84c(_0x298d38,{'height':_0x1c6139,'radius':0x4,'width':_0x1fade9,'fill':_0x415509}),_0x298d38[_0x2bf444(0x28a)]=_0x2bf444(0x1f7);const _0x2d2811=_0x39817f,_0x4555ed=_0x1c6139-_0x4ca3a9,_0x5a1fb2=_0x21f322-0x2*_0x39817f;if(_0x43bf18>_0x5a1fb2){let _0x9f824='',_0x5b6913=0x0;for(const _0x398958 of _0xa3f01d){const _0x2cceda=_0x298d38['measureText'](_0x398958)[_0x2bf444(0x354)];if(_0x5b6913+_0x2cceda<=_0x5a1fb2-_0x298d38[_0x2bf444(0x1cb)](_0x2bf444(0x30c))[_0x2bf444(0x354)])_0x9f824+=_0x398958,_0x5b6913+=_0x2cceda;else{_0x9f824+=_0x2bf444(0x30c);break;}}_0x298d38['fillText'](_0x9f824,_0x2d2811,_0x4555ed);}else _0x298d38[_0x2bf444(0x16d)](_0xa3f01d,_0x2d2811,_0x4555ed);_0x298d38[_0x2bf444(0x234)]();}[_0xbc4bab(0x378)](_0x50473c){const _0x251b81=_0xbc4bab;_0x51e8ff[_0x251b81(0x160)](_0x50473c,this);}}const _0x587ace=_0xbc4bab(0x309),_0x20b92a=_0xbc4bab(0x2c7),_0x30a0b3='collab-rect-range-',_0x2a16a4=0x6,_0x207d7b=1.5,_0x106f16=0x4,_0x3a2edd=1.5,_0x144465=_0xbc4bab(0x396);class _0x55d337{constructor(_0x9c4387,_0x2a5647,_0x9fa03d,_0x52344f){const _0x582808=_0xbc4bab;_0x1e1d43(this,_0x582808(0x278),[]),_0x1e1d43(this,_0x582808(0x2fc),null),_0x1e1d43(this,_0x582808(0x28c),null),_0x1e1d43(this,'_anchorDot',null),_0x1e1d43(this,_0x582808(0x1f2),null),_0x1e1d43(this,_0x582808(0x3b9),null),(this[_0x582808(0x315)]=_0x9c4387,this[_0x582808(0x224)]=_0x2a5647,this['_docSkeleton']=_0x9fa03d,this[_0x582808(0x14d)]=_0x52344f,this['_render']());}set[_0xbc4bab(0x2bc)](_0x2e7b4f){const _0x3345d4=_0xbc4bab;_0x2e7b4f?(this['_anchorDot']&&this[_0x3345d4(0x183)]['hide'](),this[_0x3345d4(0x28c)]&&this['_textBubble']['show']()):(this[_0x3345d4(0x183)]&&this[_0x3345d4(0x183)][_0x3345d4(0x34d)](),this['_textBubble']&&this[_0x3345d4(0x28c)][_0x3345d4(0x3a7)]());}[_0xbc4bab(0x310)](){const _0x389043=_0xbc4bab;for(const _0xf98d37 of this[_0x389043(0x278)])_0xf98d37[_0x389043(0x310)]();this[_0x389043(0x28c)]&&this[_0x389043(0x28c)][_0x389043(0x310)](),this[_0x389043(0x183)]&&this[_0x389043(0x183)][_0x389043(0x310)](),this[_0x389043(0x2fc)]&&this[_0x389043(0x2fc)][_0x389043(0x310)](),this['_eventUnsubscribe']&&this[_0x389043(0x3b9)]();}[_0xbc4bab(0x3d7)](){const _0x73d84b=_0xbc4bab;var _0x1ffe73;const {_docSkeleton:_0x156a5e,_document:_0x1994c3}=this,{color:_0x96ca92,name:_0x266aa5,ranges:_0x5cc8a0}=this[_0x73d84b(0x315)],_0x9de8b=_0x1994c3[_0x73d84b(0x187)](),{docsLeft:_0xf10e8b,docsTop:_0x41282e}=_0x9de8b,_0x155554=new _0x31dfa4['NodePositionConvertToCursor'](_0x9de8b,_0x156a5e);for(const {startOffset:_0x2a0dd0,endOffset:_0x177b49,rangeType:_0x310564,segmentId:_0x4f5155,segmentPage:_0x1ac6db,collapsed:_0x18271a,isActive:_0x5864c8}of _0x5cc8a0){const _0x14ff5e=_0x156a5e[_0x73d84b(0x23e)](_0x2a0dd0,!0x0,_0x4f5155,_0x1ac6db);let _0x1c5493=_0x156a5e['findNodePositionByCharIndex'](_0x177b49,!0x0,_0x4f5155,_0x1ac6db);if(_0x1c5493==null&&(_0x1c5493=_0x156a5e[_0x73d84b(0x23e)](_0x177b49-0x1,!0x1,_0x4f5155,_0x1ac6db)),_0x5864c8){const {contentBoxPointGroup:_0x2d3845}=_0x155554[_0x73d84b(0x30a)](_0x1c5493,_0x1c5493);if(_0x2d3845['length']===0x0)continue;this[_0x73d84b(0x2b5)](_0x96ca92,_0x2d3845,_0xf10e8b,_0x41282e,_0x266aa5),this[_0x73d84b(0x3b9)]=this[_0x73d84b(0x1db)]();}if(_0x14ff5e&&_0x1c5493){if(_0x310564===_0x51234e[_0x73d84b(0x335)][_0x73d84b(0x16f)]){const _0x52c002=new _0x31dfa4[(_0x73d84b(0x382))](_0x9de8b,_0x156a5e),{pointGroup:_0x97a940}=(_0x1ffe73=_0x52c002[_0x73d84b(0x30a)](_0x14ff5e,_0x1c5493))!=null?_0x1ffe73:{};if(_0x97a940==null||_0x97a940[_0x73d84b(0x277)]===0x0)continue;this['_drawRectRange'](_0x96ca92,_0x97a940,_0xf10e8b,_0x41282e);}else{if(!_0x18271a){const {borderBoxPointGroup:_0x2d70ce}=_0x155554[_0x73d84b(0x30a)](_0x14ff5e,_0x1c5493);if(_0x2d70ce['length']===0x0)continue;this[_0x73d84b(0x318)](_0x96ca92,_0x2d70ce,_0xf10e8b,_0x41282e);}}}}}[_0xbc4bab(0x2b5)](_0x4661ae,_0x3f473f,_0x49f445,_0x4459a7,_0x5b458c){const _0x5e60a8=_0xbc4bab,_0x5365f2=this[_0x5e60a8(0x1ae)](_0x3f473f),{left:_0xcfce4c,top:_0x1ffa5d,height:_0x1fbea0}=_0x5365f2,_0x2a8333=this[_0x5e60a8(0x31b)](),_0xc71ca6=_0x3a2edd/_0x2a8333,_0x58757c=new _0x5cd4ea['Rect'](_0x587ace+_0x51234e[_0x5e60a8(0x1a2)](_0x2a16a4),{'left':_0xcfce4c+_0x49f445-_0xc71ca6,'top':_0x1ffa5d+_0x4459a7,'height':_0x1fbea0,'width':_0x207d7b,'fill':_0x4661ae||_0x5cd4ea[_0x5e60a8(0x3b1)](_0x51234e['COLORS'][_0x5e60a8(0x34e)],0x0),'strokeWidth':_0xc71ca6,'stroke':_0x144465,'evented':!0x0});this[_0x5e60a8(0x2fc)]=_0x58757c,this['_scene'][_0x5e60a8(0x24f)](_0x58757c,_0x31dfa4['TEXT_RANGE_LAYER_INDEX']);const _0x26996c=new _0x5cd4ea[(_0x5e60a8(0x308))](_0x587ace+_0x51234e[_0x5e60a8(0x1a2)](_0x2a16a4),{'left':_0xcfce4c+_0x49f445-_0xc71ca6,'top':_0x1ffa5d+_0x4459a7-_0x106f16/0x2,'height':_0x106f16,'width':_0x106f16,'fill':_0x4661ae||_0x5cd4ea[_0x5e60a8(0x3b1)](_0x51234e[_0x5e60a8(0x3cf)][_0x5e60a8(0x34e)],0x0),'strokeWidth':0x0,'stroke':_0x4661ae||_0x5cd4ea[_0x5e60a8(0x3b1)](_0x51234e[_0x5e60a8(0x3cf)][_0x5e60a8(0x34e)],0x0),'evented':!0x1});this[_0x5e60a8(0x183)]=_0x26996c,this[_0x5e60a8(0x224)]['addObject'](_0x26996c,_0x31dfa4['TEXT_RANGE_LAYER_INDEX']);const _0x5ead2d=new _0x51e8ff(_0x587ace+_0x51234e[_0x5e60a8(0x1a2)](_0x2a16a4),{'left':_0xcfce4c+_0x49f445-_0xc71ca6,'top':_0x1ffa5d+_0x4459a7-_0x1c6139,'text':_0x5b458c,'color':_0x4661ae});this[_0x5e60a8(0x28c)]=_0x5ead2d,this['_scene'][_0x5e60a8(0x24f)](_0x5ead2d,_0x31dfa4['TEXT_RANGE_LAYER_INDEX']),this[_0x5e60a8(0x2bc)]=!0x1;}['_handleHover'](){const _0x4229fd=_0xbc4bab,_0x21b228=this['_anchor'][_0x4229fd(0x25b)][_0x4229fd(0x3d1)](()=>{this['_hover']=!0x0;}),_0x1b0438=this[_0x4229fd(0x2fc)][_0x4229fd(0x2c9)][_0x4229fd(0x3d1)](()=>{const _0x5b6ae8=_0x4229fd;this['_hideTimer']&&clearTimeout(this[_0x5b6ae8(0x1f2)]),this[_0x5b6ae8(0x1f2)]=setTimeout(()=>{const _0x3fb513=_0x5b6ae8;this[_0x3fb513(0x2bc)]=!0x1;},0x7d0);});return()=>{const _0x3d1e1c=_0x4229fd;_0x21b228[_0x3d1e1c(0x18d)](),_0x1b0438[_0x3d1e1c(0x18d)]();};}[_0xbc4bab(0x318)](_0x1af0d0,_0x5b0636,_0x5a5f31,_0x507d16){const _0x4d0e81=_0xbc4bab,_0x25091e=new _0x51234e[(_0x4d0e81(0x223))](_0x1af0d0)[_0x4d0e81(0x1cf)](0.2)[_0x4d0e81(0x3b6)](),_0x12ae73=new _0x5cd4ea[(_0x4d0e81(0x27f))](_0x20b92a+_0x51234e[_0x4d0e81(0x1a2)](_0x2a16a4),{'pointsGroup':_0x5b0636,'fill':_0x25091e||_0x5cd4ea[_0x4d0e81(0x3b1)](_0x51234e[_0x4d0e81(0x3cf)]['black'],0.2),'left':_0x5a5f31,'top':_0x507d16,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x12ae73),this[_0x4d0e81(0x224)]['addObject'](_0x12ae73,_0x31dfa4[_0x4d0e81(0x1d2)]);}['_drawRectRange'](_0x33c0ec,_0x25c021,_0x425a2b,_0x360856){const _0x14a618=_0xbc4bab,_0x28e4dd=new _0x51234e[(_0x14a618(0x223))](_0x33c0ec)[_0x14a618(0x1cf)](0.2)['toRgbString'](),_0x52e620=new _0x5cd4ea[(_0x14a618(0x27f))](_0x30a0b3+_0x51234e['generateRandomId'](_0x2a16a4),{'pointsGroup':_0x25c021,'fill':_0x28e4dd||_0x5cd4ea['getColor'](_0x51234e['COLORS']['black'],0.2),'left':_0x425a2b,'top':_0x360856,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x14a618(0x278)][_0x14a618(0x1e0)](_0x52e620),this[_0x14a618(0x224)][_0x14a618(0x24f)](_0x52e620,_0x31dfa4[_0x14a618(0x1d2)]);}[_0xbc4bab(0x1ae)](_0x21a136){const _0x1bb7bc=_0x21a136[0x0],_0x504e3b=_0x1bb7bc[0x0],_0x1825ff=_0x1bb7bc[0x2],{x:_0xd2a459,y:_0x42aebf}=_0x504e3b,{x:_0x4ffcfa,y:_0x2178fe}=_0x1825ff;return{'left':_0xd2a459,'top':_0x42aebf,'width':_0x4ffcfa-_0xd2a459,'height':_0x2178fe-_0x42aebf};}[_0xbc4bab(0x31b)](){const _0x42c99b=_0xbc4bab,{scaleX:_0xff029d,scaleY:_0xc99d0b}=this[_0x42c99b(0x224)]['getAncestorScale']();return Math[_0x42c99b(0x2d1)](_0xff029d,_0xc99d0b);}}var _0xec9485=Object[_0xbc4bab(0x218)],_0x1948c3=(_0x2e6f10,_0x4f49cd,_0x4b603c,_0x25f47f)=>{const _0x16d329=_0xbc4bab;for(var _0x14fa95=_0x25f47f>0x1?void 0x0:_0x25f47f?_0xec9485(_0x4f49cd,_0x4b603c):_0x4f49cd,_0x30c339=_0x2e6f10[_0x16d329(0x277)]-0x1,_0xade550;_0x30c339>=0x0;_0x30c339--)(_0xade550=_0x2e6f10[_0x30c339])&&(_0x14fa95=_0xade550(_0x14fa95)||_0x14fa95);return _0x14fa95;},_0x2c4f01=(_0x38e3f0,_0x3659f3)=>(_0x44c019,_0x46343b)=>_0x3659f3(_0x44c019,_0x46343b,_0x38e3f0);let _0x2b471f=class extends _0x51234e[_0xbc4bab(0x207)]{constructor(_0x3ed30d,_0x3a83de,_0x465d74,_0xb17a8,_0x2dc27f){const _0x362bac=_0xbc4bab;super(),_0x1e1d43(this,_0x362bac(0x1c6),[]),_0x1e1d43(this,_0x362bac(0x2c8),[]),(this[_0x362bac(0x390)]=_0x3ed30d,this['_docSkeletonManagerService']=_0x3a83de,this['_collabCursorController']=_0x465d74,this[_0x362bac(0x20f)]=_0xb17a8,this[_0x362bac(0x2f5)]=_0x2dc27f,this[_0x362bac(0x1d6)]());}['_init'](){const _0x297abc=_0xbc4bab,_0x5352c4=this[_0x297abc(0x390)]['unitId'],_0x3c72ea=this[_0x297abc(0x348)];this[_0x297abc(0x2de)](_0x5bbaf2[_0x297abc(0x1b5)]([this['_collabCursorController'][_0x297abc(0x336)](_0x5352c4),this[_0x297abc(0x2f5)][_0x297abc(0x3c9)]])['pipe'](_0x653998[_0x297abc(0x2fe)](([_0x241807,_0x1e88fb])=>({'skeleton':_0x3c72ea[_0x297abc(0x312)](),'cursors':[..._0x241807[_0x297abc(0x1a4)]()]['flatMap'](_0x14d3b9=>({..._0x14d3b9,'color':this['_themeService']['getColorFromTheme'](_0x14d3b9['color'])}))})))[_0x297abc(0x2ae)](_0x113d00=>{const _0x3139fe=_0x297abc;if(this[_0x3139fe(0x1a0)](),_0x113d00){const {skeleton:_0x6054ec,cursors:_0xd459ac}=_0x113d00;this[_0x3139fe(0x33d)](_0x6054ec,_0xd459ac);}})),this[_0x297abc(0x286)](),this[_0x297abc(0x2b6)]();}[_0xbc4bab(0x33d)](_0x4a3c2c,_0x3774da){const _0x18fe3e=_0xbc4bab,{scene:_0x3d4c05,mainComponent:_0x35d431}=this[_0x18fe3e(0x390)],_0x15b3db=_0x3774da[_0x18fe3e(0x2fe)](_0x1727fc=>new _0x55d337(_0x1727fc,_0x3d4c05,_0x4a3c2c,_0x35d431));this[_0x18fe3e(0x1c6)]=_0x15b3db,this[_0x18fe3e(0x2c8)]=_0x3774da;}['_refreshCollabCursors'](){const _0x7b347b=_0xbc4bab;this[_0x7b347b(0x1a0)]();const {scene:_0x38444d,mainComponent:_0x2787e3}=this[_0x7b347b(0x390)],_0x1f80d2=this[_0x7b347b(0x348)]['getSkeleton'](),_0x28bf26=this[_0x7b347b(0x2c8)]['map'](_0x526e8b=>new _0x55d337(_0x526e8b,_0x38444d,_0x1f80d2,_0x2787e3));this[_0x7b347b(0x1c6)]=_0x28bf26;}[_0xbc4bab(0x1a0)](){const _0x52e1b7=_0xbc4bab;this['_cursorShapes'][_0x52e1b7(0x35f)](_0x2c395e=>_0x2c395e[_0x52e1b7(0x310)]()),this['_cursorShapes']=[];}[_0xbc4bab(0x2b6)](){const _0x4f0b93=_0xbc4bab,_0x3d9db2=[_0x31dfa4[_0x4f0b93(0x1fc)]['id']];this[_0x4f0b93(0x2de)](this[_0x4f0b93(0x20f)]['onCommandExecuted'](_0x3f4b55=>{const _0x527bbc=_0x4f0b93;_0x3d9db2['includes'](_0x3f4b55['id'])&&_0x3f4b55[_0x527bbc(0x32a)][_0x527bbc(0x3c6)]===this['_context'][_0x527bbc(0x3c6)]&&this['_refreshCollabCursors']();}));}[_0xbc4bab(0x286)](){const _0x11cc22=_0xbc4bab;this['disposeWithMe'](_0x51234e[_0x11cc22(0x1e2)](this[_0x11cc22(0x390)][_0x11cc22(0x2b9)]['onTransformChange$'])[_0x11cc22(0x3bd)](_0x653998[_0x11cc22(0x2af)](_0x1b5d11=>_0x1b5d11[_0x11cc22(0x3c2)]===_0x5cd4ea[_0x11cc22(0x2b0)][_0x11cc22(0x19b)]),_0x653998['throttleTime'](0x10))['subscribe'](()=>{const _0x3a0877=_0x11cc22;this[_0x3a0877(0x299)]();}));}};_0x2b471f=_0x1948c3([_0x2c4f01(0x1,_0x51234e[_0xbc4bab(0x1e7)](_0x5886b2[_0xbc4bab(0x2a5)])),_0x2c4f01(0x2,_0x51234e[_0xbc4bab(0x1e7)](_0x217dd7)),_0x2c4f01(0x3,_0x51234e[_0xbc4bab(0x30f)]),_0x2c4f01(0x4,_0x51234e[_0xbc4bab(0x1e7)](_0x51234e['ThemeService']))],_0x2b471f);const _0x3c9a7a=0x1,_0x4be5a8=1.5;class _0xd3b6c4 extends _0x5cd4ea['Shape']{constructor(_0x4a7d1a,_0x536a76){const _0x13cae2=_0xbc4bab;super(_0x4a7d1a,_0x536a76),_0x1e1d43(this,_0x13cae2(0x2dd)),_0x1e1d43(this,_0x13cae2(0x16c),!0x1),_0x1e1d43(this,_0x13cae2(0x1ed)),_0x1e1d43(this,'_name',''),_0x1e1d43(this,_0x13cae2(0x1f4),'top'),_0x1e1d43(this,'_backgroundColor'),(_0x536a76&&this['setShapeProps'](_0x536a76),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x13cae2(0x33f)]({'hovered':!0x0})),this[_0x13cae2(0x2c9)][_0x13cae2(0x3d1)](()=>this[_0x13cae2(0x33f)]({'hovered':!0x1})));}['setShapeProps'](_0x3e8b74){const _0x4337bd=_0xbc4bab;var _0x546719,_0x33b169,_0x4f4dad,_0x4035c7,_0xcd0536,_0x147667;this['_color']=(_0x546719=_0x3e8b74[_0x4337bd(0x285)])!=null?_0x546719:this[_0x4337bd(0x2dd)],this[_0x4337bd(0x16c)]=(_0x33b169=_0x3e8b74[_0x4337bd(0x338)])!=null?_0x33b169:this[_0x4337bd(0x16c)],this['_range']=(_0x4f4dad=_0x3e8b74['range'])!=null?_0x4f4dad:this[_0x4337bd(0x1ed)],this['_name']=(_0x4035c7=_0x3e8b74['name'])!=null?_0x4035c7:this[_0x4337bd(0x18a)],this['_labelPosition']=(_0xcd0536=_0x3e8b74[_0x4337bd(0x2e2)])!=null?_0xcd0536:this[_0x4337bd(0x1f4)],this[_0x4337bd(0x2f2)]=(_0x147667=_0x3e8b74[_0x4337bd(0x191)])!=null?_0x147667:this[_0x4337bd(0x2f2)],this[_0x4337bd(0x245)]({'width':_0x3e8b74[_0x4337bd(0x354)],'height':_0x3e8b74[_0x4337bd(0x276)]});}[_0xbc4bab(0x2a2)](_0x58246f){const _0x15fefd=_0xbc4bab,{row:_0x107e6f,column:_0x2af828}=_0x58246f;if(_0x107e6f>=this['_range'][_0x15fefd(0x21b)]&&_0x107e6f<=this[_0x15fefd(0x1ed)][_0x15fefd(0x27e)]&&_0x2af828>=this[_0x15fefd(0x1ed)]['startColumn']&&_0x2af828<=this[_0x15fefd(0x1ed)][_0x15fefd(0x344)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x15fefd(0x33f)]({'hovered':!0x1});}[_0xbc4bab(0x321)](_0x5db6cf){return!0x1;}[_0xbc4bab(0x378)](_0xc6345f){const _0x6f81ab=_0xbc4bab;_0x5cd4ea[_0x6f81ab(0x308)][_0x6f81ab(0x160)](_0xc6345f,{'width':this[_0x6f81ab(0x354)],'height':this[_0x6f81ab(0x276)],'strokeWidth':_0x4be5a8,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x6f81ab(0x2f2)]}),this['_hovered']&&(_0xc6345f[_0x6f81ab(0x1b8)](),_0xc6345f[_0x6f81ab(0x3b2)](0x1,0x0,0x0,0x1,this[_0x6f81ab(0x354)],this[_0x6f81ab(0x1f4)]===_0x6f81ab(0x260)?0x0:-_0x1c6139),_0x51e8ff[_0x6f81ab(0x160)](_0xc6345f,{'text':this[_0x6f81ab(0x18a)],'color':this[_0x6f81ab(0x2dd)]}),_0xc6345f[_0x6f81ab(0x234)]());}}var _0x5a769e=Object[_0xbc4bab(0x218)],_0x192ad6=(_0x57264f,_0x3b253b,_0x3b0967,_0x40accb)=>{for(var _0xdae388=_0x40accb>0x1?void 0x0:_0x40accb?_0x5a769e(_0x3b253b,_0x3b0967):_0x3b253b,_0x331088=_0x57264f['length']-0x1,_0x388b1c;_0x331088>=0x0;_0x331088--)(_0x388b1c=_0x57264f[_0x331088])&&(_0xdae388=_0x388b1c(_0xdae388)||_0xdae388);return _0xdae388;},_0x1a7769=(_0x1b7b8b,_0xbcaa36)=>(_0x1cd72a,_0x51d30a)=>_0xbcaa36(_0x1cd72a,_0x51d30a,_0x1b7b8b);const _0x1a569e=0x1389;let _0x18b05d=class extends _0x51234e[_0xbc4bab(0x207)]{constructor(_0x1ab286,_0xbc6e25,_0x504d9f,_0x415a85){const _0x7e24de=_0xbc4bab;super(),_0x1e1d43(this,'_cursors',new Set()),_0x1e1d43(this,_0x7e24de(0x307),null),(this[_0x7e24de(0x390)]=_0x1ab286,this[_0x7e24de(0x20c)]=_0xbc6e25,this[_0x7e24de(0x351)]=_0x504d9f,this[_0x7e24de(0x2f5)]=_0x415a85,this[_0x7e24de(0x1d6)]());}['_init'](){const _0x24788d=_0xbc4bab;this[_0x24788d(0x20c)][_0x24788d(0x328)][_0x24788d(0x3bd)](_0x653998[_0x24788d(0x2e5)](this['dispose$']),_0x653998[_0x24788d(0x3c8)](_0x2f6e11=>{const _0x30f0e9=_0x24788d;if(_0x2f6e11){const _0x4aa408=_0x2f6e11[_0x30f0e9(0x197)];return _0x5bbaf2['combineLatest'](this[_0x30f0e9(0x351)][_0x30f0e9(0x336)](this[_0x30f0e9(0x390)]['unitId']),this['_themeService']['currentTheme$'])[_0x30f0e9(0x3bd)](_0x653998['map'](([_0x4ff885,_0x561f50])=>{const _0x474e5f=new Map();return _0x4ff885['forEach']((_0x431e9d,_0x2ac3dd)=>{const _0x5ea1ce=_0x3b2a;if(_0x431e9d['sheetID']===_0x4aa408){const _0x2f902e={..._0x431e9d};_0x2f902e[_0x5ea1ce(0x285)]=this['_themeService'][_0x5ea1ce(0x323)](_0x431e9d[_0x5ea1ce(0x285)]),_0x474e5f[_0x5ea1ce(0x36c)](_0x2ac3dd,_0x2f902e);}}),{'skeleton':_0x2f6e11,'cursors':_0x474e5f};}));}return _0x5bbaf2['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x51c0fe,cursors:_0x24e574})=>{const _0x1de29a=_0x24788d;this[_0x1de29a(0x1a0)](),_0x51c0fe&&this[_0x1de29a(0x33d)](_0x51c0fe,_0x24e574);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x24788d(0x2ae)](_0x37d07c=>{const _0x5fb73e=_0x24788d;if(_0x37d07c==null)return;const {skeleton:_0x4ce6c4}=_0x37d07c,{scene:_0x1c36e9}=this[_0x5fb73e(0x390)];_0x1c36e9[_0x5fb73e(0x1df)][_0x5fb73e(0x3d1)](_0x51234e[_0x5fb73e(0x288)](_0x189a86=>{const _0x2c2d61=_0x5fb73e;var _0x5d62e7,_0x575020;const {offsetX:_0x267497,offsetY:_0x33d6c3}=_0x189a86,{x:_0x3a93d5,y:_0x44fb6a}=_0x1c36e9['getRelativeToViewportCoord'](_0x5cd4ea['Vector2']['FromArray']([_0x267497,_0x33d6c3])),{scaleX:_0x57cc89,scaleY:_0x2e05dd}=_0x1c36e9[_0x2c2d61(0x3d0)](),_0x36bb73=_0x1c36e9[_0x2c2d61(0x1dc)](_0x5cd4ea[_0x2c2d61(0x398)][_0x2c2d61(0x341)]),_0x19b320=_0x1c36e9[_0x2c2d61(0x392)](_0x5cd4ea[_0x2c2d61(0x340)]['FromArray']([_0x3a93d5,_0x44fb6a]),_0x36bb73),_0x3128a9=_0x4ce6c4['getCellPositionByOffset'](_0x267497,_0x33d6c3,_0x57cc89,_0x2e05dd,_0x19b320);((_0x5d62e7=this[_0x2c2d61(0x307)])==null?void 0x0:_0x5d62e7[_0x2c2d61(0x38f)])===_0x3128a9[_0x2c2d61(0x38f)]&&((_0x575020=this[_0x2c2d61(0x307)])==null?void 0x0:_0x575020[_0x2c2d61(0x242)])===_0x3128a9[_0x2c2d61(0x242)]||this[_0x2c2d61(0x2c8)][_0x2c2d61(0x35f)](_0x47b9c3=>{const _0x2d9ea7=_0x2c2d61;_0x47b9c3[_0x2d9ea7(0x2a2)](_0x3128a9);});},0x64));});}[_0xbc4bab(0x33d)](_0x3111b8,_0x3e9b3b){const _0x4a1896=_0xbc4bab;var _0x2b2568;const _0x9c4f2e=(_0x2b2568=this[_0x4a1896(0x20c)][_0x4a1896(0x332)]())==null?void 0x0:_0x2b2568['skeleton'];if(!_0x9c4f2e)return;const _0x5d633a=this[_0x4a1896(0x3a9)]();if(!_0x5d633a)return;this[_0x4a1896(0x2c8)]['forEach'](_0x4cd7bc=>{const _0x21940e=_0x4a1896;_0x4cd7bc[_0x21940e(0x17b)]();});const {scene:_0x20b1a9}=_0x5d633a,_0x3d73f1=_0x473ebb(Array[_0x4a1896(0x1ea)](_0x3e9b3b['values']()))[_0x4a1896(0x2fe)](_0x37051c=>{const _0x525f05=_0x4a1896,{color:_0x2091e0,range:_0x5ebec5,name:_0x51ce23,selection:_0x2034d5,sheetID:_0x3f46d8}=_0x37051c,{startColumn:_0x4d67c6,startRow:_0x10ccdd,endColumn:_0x399398,endRow:_0x46fa96}=_0x5ebec5,_0x12823b=_0x1f6c03[_0x525f05(0x3a6)](_0x10ccdd,_0x4d67c6,_0x20b1a9,_0x9c4f2e),_0x28665f=_0x1f6c03[_0x525f05(0x3a6)](_0x46fa96,_0x399398,_0x20b1a9,_0x9c4f2e),{columnHeaderHeightAndMarginTop:_0x4d83ef}=_0x9c4f2e,{startX:_0x307936,startY:_0x5975e8}=_0x12823b,{endX:_0x38be68,endY:_0x2867bf}=_0x28665f,_0x39ea66=_0x38be68-_0x307936,_0x489c18=_0x2867bf-_0x5975e8,_0x2111b={'labelPosition':_0x5975e8-_0x4d83ef>=_0x1c6139?_0x525f05(0x269):'bottom','sheetID':_0x3f46d8,'range':_0x5ebec5,'color':_0x2091e0,'name':_0x51ce23,'selection':_0x2034d5,'left':_0x307936,'top':_0x5975e8,'width':_0x39ea66,'height':_0x489c18,'evented':!0x1,'zIndex':_0x1a569e};return new _0xd3b6c4(_0x51ce23,_0x2111b);});_0x20b1a9[_0x4a1896(0x254)](_0x3d73f1,_0x3c9a7a),this[_0x4a1896(0x2c8)]=new Set(_0x3d73f1);}[_0xbc4bab(0x1a0)](){const _0x33adc9=_0xbc4bab;var _0x104d3b;(_0x104d3b=this['_cursors'])==null||_0x104d3b[_0x33adc9(0x35f)](_0x559210=>_0x559210[_0x33adc9(0x310)]());}[_0xbc4bab(0x3a9)](){const _0x416fcc=_0xbc4bab;return _0x1f6c03[_0x416fcc(0x3b0)](this['_context'][_0x416fcc(0x387)],this[_0x416fcc(0x390)]);}};_0x18b05d=_0x192ad6([_0x1a7769(0x1,_0x51234e['Inject'](_0x1f6c03[_0xbc4bab(0x24b)])),_0x1a7769(0x2,_0x51234e[_0xbc4bab(0x1e7)](_0x217dd7)),_0x1a7769(0x3,_0x51234e[_0xbc4bab(0x1e7)](_0x51234e[_0xbc4bab(0x1b9)]))],_0x18b05d);function _0x473ebb(_0x39c392){const _0x55c837=_0xbc4bab,_0x1f9fcf=new Map();return _0x39c392['forEach'](_0x331575=>{const _0x46029e=_0x3b2a;if(_0x1f9fcf['has'](_0x331575['selection'])){const _0x41087d=_0x1f9fcf[_0x46029e(0x194)](_0x331575[_0x46029e(0x361)]);_0x41087d['name']+=',\x20'+_0x331575['name'];}else _0x1f9fcf[_0x46029e(0x36c)](_0x331575[_0x46029e(0x361)],_0x331575);}),Array[_0x55c837(0x1ea)](_0x1f9fcf[_0x55c837(0x1a4)]());}var _0x4a35c8=Object[_0xbc4bab(0x218)],_0x5ae2e9=(_0x1bd111,_0xfa9fce,_0x6e7509,_0x74cf7a)=>{for(var _0x4cb41d=_0x74cf7a>0x1?void 0x0:_0x74cf7a?_0x4a35c8(_0xfa9fce,_0x6e7509):_0xfa9fce,_0x383d09=_0x1bd111['length']-0x1,_0x107ca3;_0x383d09>=0x0;_0x383d09--)(_0x107ca3=_0x1bd111[_0x383d09])&&(_0x4cb41d=_0x107ca3(_0x4cb41d)||_0x4cb41d);return _0x4cb41d;},_0x724ccf=(_0x4e8cf9,_0x113bed)=>(_0x4aaa01,_0x2a81a8)=>_0x113bed(_0x4aaa01,_0x2a81a8,_0x4e8cf9);let _0x18e095=class extends _0x51234e['Disposable']{constructor(_0x39144d,_0x28c449,_0x253553,_0x349cf0,_0xf8a4aa,_0x26d54c){const _0x210c42=_0xbc4bab;super(),this[_0x210c42(0x33e)]=_0x39144d,this[_0x210c42(0x17a)]=_0x28c449,this[_0x210c42(0x213)]=_0x253553,this[_0x210c42(0x238)]=_0x349cf0,this[_0x210c42(0x31f)]=_0xf8a4aa,this['_localeService']=_0x26d54c,this[_0x210c42(0x266)](),this[_0x210c42(0x2d8)]();}['_setupBeforeClosingHandler'](){const _0x496c62=_0xbc4bab;this[_0x496c62(0x2de)](this[_0x496c62(0x33e)][_0x496c62(0x2d0)](()=>{const _0xa9cf35=_0x496c62;if(this[_0xa9cf35(0x17a)][_0xa9cf35(0x2f8)][_0xa9cf35(0x293)])return this['_localeService']['t'](_0xa9cf35(0x20b));}));}[_0xbc4bab(0x2d8)](){const _0x32950f=_0xbc4bab;this['disposeWithMe'](this[_0x32950f(0x213)][_0x32950f(0x2c5)][_0x32950f(0x2ae)](_0x48f6ad=>{const _0x5de20d=_0x32950f;_0x48f6ad['id']===_0x45d92a['CollaborationUIEventId'][_0x5de20d(0x32b)]&&this[_0x5de20d(0x238)]['show']({'type':_0x5ab59c[_0x5de20d(0x2e0)][_0x5de20d(0x217)],'content':this[_0x5de20d(0x212)]['t'](_0x5de20d(0x303))}),_0x48f6ad['id']===_0x45d92a[_0x5de20d(0x2b4)][_0x5de20d(0x324)]&&this[_0x5de20d(0x238)]['show']({'type':_0x5ab59c[_0x5de20d(0x2e0)][_0x5de20d(0x217)],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x48f6ad['id']===_0x45d92a[_0x5de20d(0x2b4)][_0x5de20d(0x1f0)]&&this[_0x5de20d(0x31f)][_0x5de20d(0x34d)]({'title':this['_localeService']['t'](_0x5de20d(0x375)),'content':this[_0x5de20d(0x212)]['t'](_0x5de20d(0x1c9)),'type':_0x5de20d(0x25a),'duration':0x0}),_0x48f6ad['id']===_0x45d92a['CollaborationUIEventId'][_0x5de20d(0x251)]&&this[_0x5de20d(0x238)]['show']({'type':_0x5ab59c[_0x5de20d(0x2e0)]['Error'],'content':this['_localeService']['t'](_0x5de20d(0x376))+'('+_0x48f6ad[_0x5de20d(0x1b0)]+')'}),_0x48f6ad['id']===_0x45d92a[_0x5de20d(0x2b4)][_0x5de20d(0x1bf)]&&this['_messageService'][_0x5de20d(0x34d)]({'type':_0x5ab59c[_0x5de20d(0x2e0)][_0x5de20d(0x217)],'content':this[_0x5de20d(0x212)]['t'](_0x48f6ad[_0x5de20d(0x1b0)]||'')}),_0x48f6ad['id']===_0x45d92a[_0x5de20d(0x2b4)][_0x5de20d(0x362)]&&this['_messageService'][_0x5de20d(0x34d)]({'type':_0x5ab59c[_0x5de20d(0x2e0)][_0x5de20d(0x217)],'content':this[_0x5de20d(0x212)]['t'](_0x5de20d(0x39d))}),_0x48f6ad['id']===_0x45d92a[_0x5de20d(0x2b4)][_0x5de20d(0x3cb)]&&this[_0x5de20d(0x238)][_0x5de20d(0x34d)]({'type':_0x5ab59c[_0x5de20d(0x2e0)][_0x5de20d(0x3c4)],'content':this[_0x5de20d(0x212)]['t']('session.connection-failed')}),_0x48f6ad['id']===_0x45d92a[_0x5de20d(0x2b4)]['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService'][_0x5de20d(0x34d)]({'type':_0x5ab59c[_0x5de20d(0x2e0)][_0x5de20d(0x3c4)],'content':this[_0x5de20d(0x212)]['t'](_0x5de20d(0x237))});}));}};_0x18e095=_0x5ae2e9([_0x724ccf(0x0,_0x55a91c[_0xbc4bab(0x34a)]),_0x724ccf(0x1,_0x45d92a[_0xbc4bab(0x394)]),_0x724ccf(0x2,_0x51234e[_0xbc4bab(0x1e7)](_0x45d92a[_0xbc4bab(0x302)])),_0x724ccf(0x3,_0x55a91c[_0xbc4bab(0x379)]),_0x724ccf(0x4,_0x55a91c['INotificationService']),_0x724ccf(0x5,_0x51234e['Inject'](_0x51234e['LocaleService']))],_0x18e095);const _0x1cdf09='collaboration-client-ui.config',_0x50011c={};var _0x3c8c1f=Object[_0xbc4bab(0x218)],_0xbff0ef=(_0x5bd451,_0x4ffb72,_0x4ab1b8,_0x1a2dbc)=>{const _0x58e558=_0xbc4bab;for(var _0x391bcc=_0x1a2dbc>0x1?void 0x0:_0x1a2dbc?_0x3c8c1f(_0x4ffb72,_0x4ab1b8):_0x4ffb72,_0x477fba=_0x5bd451[_0x58e558(0x277)]-0x1,_0x4d8c06;_0x477fba>=0x0;_0x477fba--)(_0x4d8c06=_0x5bd451[_0x477fba])&&(_0x391bcc=_0x4d8c06(_0x391bcc)||_0x391bcc);return _0x391bcc;},_0x201c8b=(_0xc54310,_0x5bb752)=>(_0x25221f,_0x5ace66)=>_0x5bb752(_0x25221f,_0x5ace66,_0xc54310);let _0x100d73=class{constructor(_0xdb9bd4,_0x3791e9){const _0xabda9a=_0xbc4bab;this[_0xabda9a(0x16b)]=_0xdb9bd4,this[_0xabda9a(0x3b8)]=_0x3791e9;}['transformIMECache'](_0x46aad6){const _0x5ce009=_0xbc4bab;this[_0x5ce009(0x1fe)](_0x46aad6),this[_0x5ce009(0x37d)](_0x46aad6);}[_0xbc4bab(0x1af)](_0x2563d5){const _0x56d52a=_0xbc4bab,{unitID:_0x42a2a3}=_0x2563d5,_0x2c000e=this[_0x56d52a(0x3b8)][_0x56d52a(0x1d5)](_0x42a2a3)[_0x56d52a(0x36d)](_0x31dfa4[_0x56d52a(0x2ef)]),{redoCache:_0x41e601}=_0x2c000e[_0x56d52a(0x1ad)]();if(_0x41e601[_0x56d52a(0x277)]===0x0)return _0x2563d5;let _0x9859bc=_0x51234e['Tools'][_0x56d52a(0x1fa)](_0x2563d5['mutations'][0x0]);for(let _0x20d12e=0x0;_0x20d12e<_0x41e601[_0x56d52a(0x277)];_0x20d12e++){const _0x1e0819={'id':'doc.mutation.rich-text-editing','params':{..._0x41e601[_0x20d12e]}},_0x3df2b0=this[_0x56d52a(0x16b)]['transformMutation'](_0x9859bc,_0x1e0819,!0x1);if(_0x2bb387['isTransformMutationFailure'](_0x3df2b0))throw _0x3df2b0['error'];_0x9859bc=_0x3df2b0[_0x56d52a(0x3bf)];}return{..._0x51234e[_0x56d52a(0x1b7)][_0x56d52a(0x1fa)](_0x2563d5),'mutations':[_0x9859bc]};}[_0xbc4bab(0x1fe)](_0x2c4620){const _0x1e8c01=_0xbc4bab,{unitID:_0xf6ce9c}=_0x2c4620,_0x16da49=this['_renderManagerService'][_0x1e8c01(0x1d5)](_0xf6ce9c)[_0x1e8c01(0x36d)](_0x31dfa4['DocIMEInputManagerService']),{undoCache:_0x4785c2,redoCache:_0xc704c}=_0x16da49['getUndoRedoMutationParamsCache']();if(_0x4785c2[_0x1e8c01(0x277)]===0x0||_0xc704c[_0x1e8c01(0x277)]===0x0)return;const _0x2d5e59=[],_0x222743=[];let _0x4dc5a6=_0x51234e[_0x1e8c01(0x1b7)]['deepClone'](_0x2c4620['mutations'][0x0]),_0x93aaf0=_0x51234e[_0x1e8c01(0x1b7)][_0x1e8c01(0x1fa)](_0x2c4620['mutations'][0x0]);for(let _0x18f864=_0x4785c2['length']-0x1;_0x18f864>=0x0;_0x18f864--){const _0x21f444={'id':_0x1e8c01(0x274),'params':{..._0x4785c2[_0x18f864]}},_0x3fed0f={'id':_0x1e8c01(0x274),'params':{..._0xc704c[_0x18f864]}},_0x5529b2=this[_0x1e8c01(0x16b)][_0x1e8c01(0x23c)](_0x4dc5a6,_0x21f444,!0x1),_0x524911=this[_0x1e8c01(0x16b)]['transformMutation'](_0x93aaf0,_0x3fed0f,!0x1);if(_0x2bb387[_0x1e8c01(0x2dc)](_0x5529b2))throw _0x5529b2[_0x1e8c01(0x25a)];if(_0x2bb387['isTransformMutationFailure'](_0x524911))throw _0x524911[_0x1e8c01(0x25a)];_0x2d5e59['unshift'](_0x5529b2['m2Prime'][_0x1e8c01(0x32a)]),_0x222743[_0x1e8c01(0x3a2)](_0x524911[_0x1e8c01(0x317)]['params']),_0x4dc5a6=_0x5529b2[_0x1e8c01(0x3bf)],_0x93aaf0=_0x524911['m1Prime'];}_0x16da49[_0x1e8c01(0x356)]({'undoCache':_0x2d5e59,'redoCache':_0x222743});}[_0xbc4bab(0x37d)](_0x5781db){const _0x37aee9=_0xbc4bab,{unitID:_0x48e880}=_0x5781db,_0x2cde33=this[_0x37aee9(0x3b8)][_0x37aee9(0x1d5)](_0x48e880)[_0x37aee9(0x36d)](_0x31dfa4['DocIMEInputManagerService']),_0x5bdf7d=_0x2cde33[_0x37aee9(0x1fb)]();if(_0x5bdf7d==null)return;const _0x33eb6b=[{'id':_0x37aee9(0x274),'params':{'unitId':_0x5781db[_0x37aee9(0x228)],'actions':null,'textRanges':[_0x5bdf7d]}}],_0x18a266=this['_transformService']['transformMutationsWithChangeset'](_0x5781db,_0x33eb6b);if(!_0x2bb387['isTransformMutationsWithChangesetSuccess'](_0x18a266))throw _0x18a266[_0x37aee9(0x25a)];const _0x50518a=_0x18a266['m2Prime'][0x0]['params'][_0x37aee9(0x185)];Array[_0x37aee9(0x35b)](_0x50518a)&&_0x50518a[_0x37aee9(0x277)]&&_0x2cde33[_0x37aee9(0x1b1)](_0x50518a[0x0]);}};_0x100d73=_0xbff0ef([_0x201c8b(0x0,_0x2bb387[_0xbc4bab(0x32e)]),_0x201c8b(0x1,_0x5cd4ea[_0xbc4bab(0x179)])],_0x100d73);var _0x5d2aef=Object['getOwnPropertyDescriptor'],_0x4bba7a=(_0x5c66f9,_0x978b8f,_0x132707,_0x1f53df)=>{const _0x2fbf29=_0xbc4bab;for(var _0x232f14=_0x1f53df>0x1?void 0x0:_0x1f53df?_0x5d2aef(_0x978b8f,_0x132707):_0x978b8f,_0x325f0a=_0x5c66f9[_0x2fbf29(0x277)]-0x1,_0x27cb28;_0x325f0a>=0x0;_0x325f0a--)(_0x27cb28=_0x5c66f9[_0x325f0a])&&(_0x232f14=_0x27cb28(_0x232f14)||_0x232f14);return _0x232f14;},_0x296d0b=(_0x4c72ea,_0x488919)=>(_0x229f97,_0x56061b)=>_0x488919(_0x229f97,_0x56061b,_0x4c72ea);let _0x50e4fe=class{constructor(_0x44d28e,_0x4fbb72,_0x2edb5f){const _0x197de0=_0xbc4bab;this['_injector']=_0x44d28e,this['_transformService']=_0x4fbb72,this[_0x197de0(0x165)]=_0x2edb5f;}[_0xbc4bab(0x28f)](_0x197f75){const _0x54c8da=_0xbc4bab;this[_0x54c8da(0x2a9)](_0x197f75);}[_0xbc4bab(0x1af)](_0x2e89d4){const _0x20e9f7=_0xbc4bab,{unitID:_0x4700cd}=_0x2e89d4,{collaboration:_0x5b3b5b}=this['_docStateChangeManagerService']['getStateCache'](_0x4700cd);if(_0x5b3b5b[_0x20e9f7(0x277)]===0x0)return _0x2e89d4;let _0x4fe1df=_0x51234e[_0x20e9f7(0x1b7)][_0x20e9f7(0x1fa)](_0x2e89d4[_0x20e9f7(0x35d)][0x0]);for(let _0x4794c3=0x0;_0x4794c3<_0x5b3b5b['length'];_0x4794c3++){const _0x40dd66={'id':_0x20e9f7(0x274),'params':{'unitId':_0x5b3b5b[_0x4794c3][_0x20e9f7(0x3c6)],..._0x5b3b5b[_0x4794c3][_0x20e9f7(0x22a)]}},_0xb5f428=this[_0x20e9f7(0x16b)][_0x20e9f7(0x23c)](_0x4fe1df,_0x40dd66,!0x1);if(_0x2bb387[_0x20e9f7(0x2dc)](_0xb5f428))throw _0xb5f428[_0x20e9f7(0x25a)];_0x4fe1df=_0xb5f428['m1Prime'];}return{..._0x51234e[_0x20e9f7(0x1b7)][_0x20e9f7(0x1fa)](_0x2e89d4),'mutations':[_0x4fe1df]};}[_0xbc4bab(0x2a9)](_0x5d230d){const _0x274a07=_0xbc4bab,{unitID:_0x27d7db}=_0x5d230d,{history:_0x54803c,collaboration:_0x3f681b}=this[_0x274a07(0x165)][_0x274a07(0x2d6)](_0x27d7db);if(_0x54803c['length']===0x0&&_0x3f681b[_0x274a07(0x277)]===0x0)return;const _0x266a16=[],_0x396747=[];let _0x196d7f=_0x51234e['Tools'][_0x274a07(0x1fa)](_0x5d230d[_0x274a07(0x35d)][0x0]),_0x576291=_0x51234e['Tools'][_0x274a07(0x1fa)](_0x5d230d['mutations'][0x0]);for(let _0x52cf7a=_0x54803c[_0x274a07(0x277)]-0x1;_0x52cf7a>=0x0;_0x52cf7a--){const _0x2c5d61={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x54803c[_0x52cf7a]['unitId'],..._0x54803c[_0x52cf7a][_0x274a07(0x248)]}},_0x28ef87={'id':_0x274a07(0x274),'params':{'unitId':_0x54803c[_0x52cf7a][_0x274a07(0x3c6)],..._0x54803c[_0x52cf7a][_0x274a07(0x22a)]}},_0x155d5f=this[_0x274a07(0x16b)]['transformMutation'](_0x196d7f,_0x2c5d61,!0x1),_0x25fa24=this['_transformService'][_0x274a07(0x23c)](_0x576291,_0x28ef87,!0x1);if(_0x2bb387['isTransformMutationFailure'](_0x155d5f))throw _0x155d5f[_0x274a07(0x25a)];if(_0x2bb387[_0x274a07(0x2dc)](_0x25fa24))throw _0x25fa24['error'];_0x266a16['unshift']({..._0x54803c[_0x52cf7a],'undoState':_0x155d5f[_0x274a07(0x317)]['params'],'redoState':_0x25fa24[_0x274a07(0x317)]['params']}),_0x196d7f=_0x155d5f['m1Prime'],_0x576291=_0x25fa24[_0x274a07(0x3bf)];}_0x196d7f=_0x51234e[_0x274a07(0x1b7)]['deepClone'](_0x5d230d['mutations'][0x0]),_0x576291=_0x51234e['Tools'][_0x274a07(0x1fa)](_0x5d230d[_0x274a07(0x35d)][0x0]);for(let _0xcd9f33=_0x3f681b['length']-0x1;_0xcd9f33>=0x0;_0xcd9f33--){const _0x1139bf={'id':_0x274a07(0x274),'params':{'unitId':_0x3f681b[_0xcd9f33][_0x274a07(0x3c6)],..._0x3f681b[_0xcd9f33][_0x274a07(0x248)]}},_0x45a335={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3f681b[_0xcd9f33]['unitId'],..._0x3f681b[_0xcd9f33][_0x274a07(0x22a)]}},_0x13bba6=this['_transformService'][_0x274a07(0x23c)](_0x196d7f,_0x1139bf,!0x1),_0x45a035=this['_transformService'][_0x274a07(0x23c)](_0x576291,_0x45a335,!0x1);if(_0x2bb387[_0x274a07(0x2dc)](_0x13bba6))throw _0x13bba6[_0x274a07(0x25a)];if(_0x2bb387[_0x274a07(0x2dc)](_0x45a035))throw _0x45a035[_0x274a07(0x25a)];_0x396747[_0x274a07(0x3a2)]({..._0x3f681b[_0xcd9f33],'undoState':_0x13bba6[_0x274a07(0x317)]['params'],'redoState':_0x45a035['m2Prime'][_0x274a07(0x32a)]}),_0x196d7f=_0x13bba6[_0x274a07(0x3bf)],_0x576291=_0x45a035[_0x274a07(0x3bf)];}this[_0x274a07(0x165)][_0x274a07(0x1f3)](_0x27d7db,{'history':_0x266a16,'collaboration':_0x396747});}};_0x50e4fe=_0x4bba7a([_0x296d0b(0x0,_0x51234e[_0xbc4bab(0x1e7)](_0x51234e[_0xbc4bab(0x345)])),_0x296d0b(0x1,_0x2bb387[_0xbc4bab(0x32e)]),_0x296d0b(0x2,_0x51234e['Inject'](_0x31dfa4[_0xbc4bab(0x246)]))],_0x50e4fe);var _0x5c483c=Object[_0xbc4bab(0x218)],_0x41b374=(_0x476903,_0x2a9e5a,_0x3d6261,_0x502bea)=>{const _0x42e749=_0xbc4bab;for(var _0x2d238f=_0x502bea>0x1?void 0x0:_0x502bea?_0x5c483c(_0x2a9e5a,_0x3d6261):_0x2a9e5a,_0x3ab61e=_0x476903[_0x42e749(0x277)]-0x1,_0x3a9e4a;_0x3ab61e>=0x0;_0x3ab61e--)(_0x3a9e4a=_0x476903[_0x3ab61e])&&(_0x2d238f=_0x3a9e4a(_0x2d238f)||_0x2d238f);return _0x2d238f;},_0x43dd00=(_0xd2132,_0x1aef7b)=>(_0x2e553c,_0x4a76a1)=>_0x1aef7b(_0x2e553c,_0x4a76a1,_0xd2132);let _0x4f6202=class{constructor(_0x4db58a,_0x307b26){const _0x445d03=_0xbc4bab;this[_0x445d03(0x284)]=_0x4db58a,this[_0x445d03(0x16b)]=_0x307b26;}[_0xbc4bab(0x2fd)](_0x923464){const _0x17590e=_0xbc4bab;var _0x55e80b;const _0x106b65=this[_0x17590e(0x284)][_0x17590e(0x194)](_0x5886b2[_0x17590e(0x159)]),_0x277be1=(_0x55e80b=_0x106b65['getDocRanges']())!=null?_0x55e80b:[];if(_0x277be1[_0x17590e(0x277)]===0x0)return;const _0x15d9c6=_0x923464[_0x17590e(0x228)],_0x680c30=[{'id':_0x17590e(0x274),'params':{'unitId':_0x15d9c6,'actions':null,'textRanges':_0x277be1}}],_0x2fbb36=this['_transformService']['transformMutationsWithChangeset'](_0x923464,_0x680c30);if(!_0x2bb387[_0x17590e(0x39a)](_0x2fbb36))throw _0x2fbb36[_0x17590e(0x25a)];const _0x218e8a=_0x2fbb36[_0x17590e(0x317)][0x0]['params'][_0x17590e(0x185)];Array[_0x17590e(0x35b)](_0x218e8a)&&_0x218e8a['length']&&_0x106b65[_0x17590e(0x204)](_0x218e8a,{'unitId':_0x15d9c6,'subUnitId':_0x15d9c6},!0x1);}};_0x4f6202=_0x41b374([_0x43dd00(0x0,_0x51234e[_0xbc4bab(0x1e7)](_0x51234e[_0xbc4bab(0x345)])),_0x43dd00(0x1,_0x2bb387[_0xbc4bab(0x32e)])],_0x4f6202);var _0x16fa30=Object['getOwnPropertyDescriptor'],_0x1f1ca4=(_0x7b4ec4,_0x28cd1d,_0x45cdba,_0x10ef1f)=>{const _0x3b1cc4=_0xbc4bab;for(var _0x542933=_0x10ef1f>0x1?void 0x0:_0x10ef1f?_0x16fa30(_0x28cd1d,_0x45cdba):_0x28cd1d,_0x1225c3=_0x7b4ec4[_0x3b1cc4(0x277)]-0x1,_0x1c56e6;_0x1225c3>=0x0;_0x1225c3--)(_0x1c56e6=_0x7b4ec4[_0x1225c3])&&(_0x542933=_0x1c56e6(_0x542933)||_0x542933);return _0x542933;},_0x134264=(_0x2b6980,_0x5dfc51)=>(_0x1f8565,_0x31cd2e)=>_0x5dfc51(_0x1f8565,_0x31cd2e,_0x2b6980);let _0x32a49e=class extends _0x51234e[_0xbc4bab(0x292)]{constructor(_0x21922e,_0x4d7deb,_0x367d5a,_0x5ed105,_0x1096d9,_0x44f1cf,_0x1b5973,_0x113542){const _0x5d0a39=_0xbc4bab;super(),_0x1e1d43(this,_0x5d0a39(0x151),new _0x5bbaf2['BehaviorSubject'](_0x45d92a[_0x5d0a39(0x33c)]['NOT_COLLAB'])),(this[_0x5d0a39(0x165)]=_0x21922e,this[_0x5d0a39(0x1d9)]=_0x4d7deb,this['_docTransformIMECacheService']=_0x367d5a,this['_docTransformStateCacheService']=_0x5ed105,this[_0x5d0a39(0x311)]=_0x1096d9,this[_0x5d0a39(0x2a8)]=_0x44f1cf,this[_0x5d0a39(0x238)]=_0x1b5973,this[_0x5d0a39(0x212)]=_0x113542,this[_0x5d0a39(0x1f9)]());}[_0xbc4bab(0x1f9)](){const _0x510075=_0xbc4bab;this[_0x510075(0x2de)](this[_0x510075(0x1d9)][_0x510075(0x1c7)][_0x510075(0x2ae)](_0x39a332=>{const _0x486912=_0x510075,_0x1dcba2=this[_0x486912(0x165)]['docStateChange$']['subscribe'](_0xae32ca=>{const _0x3bd0eb=_0x486912;if(_0xae32ca==null)return;const {unitId:_0x31dc63,redoState:_0x13ba57,commandId:_0x439e3d}=_0xae32ca;if(_0x31dc63!==_0x39a332['unitID'])return;const _0xe92d4b={'id':_0x439e3d,'type':_0x51234e['CommandType']['MUTATION'],'params':{'unitId':_0x31dc63,'actions':_0x13ba57['actions'],'textRanges':null}};_0x39a332[_0x3bd0eb(0x353)](_0xe92d4b);});if(_0x39a332[_0x486912(0x2de)](_0x1dcba2),_0x39a332 instanceof _0x45d92a[_0x486912(0x174)]){const _0x283c1c={'onTransformIME':_0x20db89=>this[_0x486912(0x38b)][_0x486912(0x372)](_0x20db89),'onTransformState':_0x480139=>this[_0x486912(0x262)][_0x486912(0x28f)](_0x480139),'onTransformSelections':_0x273818=>this[_0x486912(0x311)][_0x486912(0x2fd)](_0x273818),'onSyncEditingCollabCursor':_0x4805db=>this[_0x486912(0x2a8)][_0x486912(0x24e)](_0x4805db),'onTransformRemoteChangesetByIMECache':_0x1b3575=>this[_0x486912(0x38b)][_0x486912(0x1af)](_0x1b3575),'onTransformRemoteChangesetByStateCache':_0x17e0d6=>this[_0x486912(0x262)][_0x486912(0x1af)](_0x17e0d6)};_0x39a332['addHandlerCallback'](_0x283c1c);}}));}};_0x32a49e=_0x1f1ca4([_0x134264(0x0,_0x51234e['Inject'](_0x31dfa4[_0xbc4bab(0x246)])),_0x134264(0x1,_0x51234e[_0xbc4bab(0x1e7)](_0x45d92a[_0xbc4bab(0x3a5)])),_0x134264(0x2,_0x51234e[_0xbc4bab(0x1e7)](_0x100d73)),_0x134264(0x3,_0x51234e[_0xbc4bab(0x1e7)](_0x50e4fe)),_0x134264(0x4,_0x51234e[_0xbc4bab(0x1e7)](_0x4f6202)),_0x134264(0x5,_0x51234e[_0xbc4bab(0x1e7)](_0x143609)),_0x134264(0x6,_0x55a91c[_0xbc4bab(0x379)]),_0x134264(0x7,_0x51234e[_0xbc4bab(0x1e7)](_0x51234e[_0xbc4bab(0x2b1)]))],_0x32a49e);var _0x1ec460=Object[_0xbc4bab(0x218)],_0x9f8d86=(_0x1969d0,_0x41f126,_0x3a38f5,_0x54d541)=>{const _0x3ace21=_0xbc4bab;for(var _0x1d95ef=_0x54d541>0x1?void 0x0:_0x54d541?_0x1ec460(_0x41f126,_0x3a38f5):_0x41f126,_0x44349e=_0x1969d0[_0x3ace21(0x277)]-0x1,_0x19abc1;_0x44349e>=0x0;_0x44349e--)(_0x19abc1=_0x1969d0[_0x44349e])&&(_0x1d95ef=_0x19abc1(_0x1d95ef)||_0x1d95ef);return _0x1d95ef;},_0xc32f19=(_0xc32547,_0x544e7c)=>(_0x8fc481,_0x40cbd5)=>_0x544e7c(_0x8fc481,_0x40cbd5,_0xc32547);let _0x451cc3=class extends _0x51234e[_0xbc4bab(0x292)]{constructor(_0x2c05c2,_0x43f389,_0x186541){const _0x17b884=_0xbc4bab;super(),_0x1e1d43(this,'_cachedData',new Map()),_0x1e1d43(this,_0x17b884(0x2f0),new Map()),_0x1e1d43(this,'_disabled',!0x1),(this[_0x17b884(0x163)]=_0x2c05c2,this[_0x17b884(0x326)]=_0x43f389,this[_0x17b884(0x268)]=_0x186541);}['disableLocalCache'](){const _0x1dc3ac=_0xbc4bab;this[_0x1dc3ac(0x161)]=!0x0;}[_0xbc4bab(0x1bd)](){this['_disabled']=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0xbc4bab(0x310)](){const _0x39cacc=_0xbc4bab;this[_0x39cacc(0x19d)]()[_0x39cacc(0x2c2)](()=>super[_0x39cacc(0x310)]());}async['loadOfflineData'](_0x3fc453){const _0x544961=_0xbc4bab;return this['_disabled']?null:this['_localStorageService'][_0x544961(0x36a)](_0x45d92a['getLocalCacheKey'](_0x3fc453));}async['saveOfflineData'](_0x2c168e,_0x3cca0d){const _0x30b0d4=_0xbc4bab;return!!this[_0x30b0d4(0x326)][_0x30b0d4(0x25e)](_0x2c168e,_0x3cca0d);}[_0xbc4bab(0x395)](_0x2d7fc3,_0x2606f7,_0x540d7d,_0x1b6ee9){const _0x296c53=_0xbc4bab,_0xa701e1=this[_0x296c53(0x268)][_0x296c53(0x256)](_0x2d7fc3);this['_cachedData'][_0x296c53(0x36c)](_0x2d7fc3,{'unitID':_0x2d7fc3,'type':_0x2606f7,'awaitingChangeset':_0x540d7d,'mutations':_0x1b6ee9,'rev':_0xa701e1}),this[_0x296c53(0x2f0)][_0x296c53(0x172)](_0x2d7fc3)||this[_0x296c53(0x39f)](_0x2d7fc3);}['_scheduleSaving'](_0x4a2235){const _0xae9d29=_0xbc4bab,_0x45b7b0=this[_0xae9d29(0x1ef)]();_0x45b7b0===0x0?this[_0xae9d29(0x2ea)](_0x4a2235):this[_0xae9d29(0x2f0)][_0xae9d29(0x36c)](_0x4a2235,setTimeout(()=>this['_saveCache'](_0x4a2235),_0x45b7b0));}[_0xbc4bab(0x1ef)](){const _0x41c2ce=_0xbc4bab;var _0x2433dc;return(_0x2433dc=this[_0x41c2ce(0x163)]['getConfig'](_0x45d92a['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x2433dc:_0x45d92a['LOCAL_CACHE_INTERVAL'];}[_0xbc4bab(0x2ea)](_0x2f8016){const _0x49f073=_0xbc4bab,_0x326cd5=this['_saveTaskMap']['get'](_0x2f8016);return _0x326cd5!==void 0x0&&window[_0x49f073(0x171)](_0x326cd5),this[_0x49f073(0x326)]['setItem'](_0x45d92a[_0x49f073(0x3a0)](_0x2f8016),this[_0x49f073(0x36e)]['get'](_0x2f8016))[_0x49f073(0x2c2)](()=>this[_0x49f073(0x2f0)]['delete'](_0x2f8016));}async[_0xbc4bab(0x19d)](){const _0x580716=_0xbc4bab,_0x3da8be=[];this[_0x580716(0x2f0)][_0x580716(0x35f)]((_0x55de4d,_0xe91bad)=>{const _0xd8a44c=_0x580716;window[_0xd8a44c(0x171)](_0x55de4d),_0x3da8be[_0xd8a44c(0x1e0)](this[_0xd8a44c(0x2ea)](_0xe91bad)['then'](()=>{const _0x5c501a=_0xd8a44c;this[_0x5c501a(0x2f0)][_0x5c501a(0x339)](_0xe91bad);}));}),await Promise[_0x580716(0x2e4)](_0x3da8be);}};_0x451cc3=_0x9f8d86([_0xc32f19(0x0,_0x51234e[_0xbc4bab(0x388)]),_0xc32f19(0x1,_0x51234e['ILocalStorageService']),_0xc32f19(0x2,_0x51234e[_0xbc4bab(0x1e7)](_0x2bb387[_0xbc4bab(0x3d2)]))],_0x451cc3);class _0x196ee5 extends _0x51234e[_0xbc4bab(0x207)]{constructor(){const _0x3f9c29=_0xbc4bab;super(),_0x1e1d43(this,_0x3f9c29(0x16a)),this[_0x3f9c29(0x16a)]=_0x5bbaf2[_0x3f9c29(0x189)](window,_0x3f9c29(0x209))[_0x3f9c29(0x3bd)](_0x5bbaf2['takeUntil'](this[_0x3f9c29(0x1a6)]),_0x5bbaf2[_0x3f9c29(0x2cc)](0x1),_0x5bbaf2[_0x3f9c29(0x222)](void 0x0));}[_0xbc4bab(0x377)](_0x225682,_0x49410b,_0x4e6c5c=!0x1){const _0x2d2dec=_0xbc4bab,_0x272449=new URL(window['location'][_0x2d2dec(0x23f)]);_0x272449[_0x2d2dec(0x31d)][_0x2d2dec(0x36c)](_0x225682,_0x49410b),_0x4e6c5c?window[_0x2d2dec(0x2ee)][_0x2d2dec(0x34c)]('','',_0x272449[_0x2d2dec(0x193)]()):window[_0x2d2dec(0x2ee)][_0x2d2dec(0x2db)]('','',_0x272449[_0x2d2dec(0x193)]());}[_0xbc4bab(0x152)](_0x5a4a85,_0x5c6bef=!0x1){const _0x564b89=_0xbc4bab,_0x47e7f1=new URL(window['location'][_0x564b89(0x23f)]);_0x47e7f1[_0x564b89(0x31d)][_0x564b89(0x339)](_0x5a4a85),_0x5c6bef?window['history']['replaceState']('','',_0x47e7f1[_0x564b89(0x193)]()):window['history'][_0x564b89(0x2db)]('','',_0x47e7f1[_0x564b89(0x193)]());}['getParam'](_0x13d196){const _0x536445=_0xbc4bab;var _0x2f8855;return(_0x2f8855=new URL(window['location']['href'])[_0x536445(0x31d)][_0x536445(0x194)](_0x13d196))!=null?_0x2f8855:void 0x0;}}var _0x3a7a76=Object[_0xbc4bab(0x2d2)],_0x4a6166=Object[_0xbc4bab(0x218)],_0x313367=(_0x59fb4a,_0x7385f5,_0x4fe831)=>_0x7385f5 in _0x59fb4a?_0x3a7a76(_0x59fb4a,_0x7385f5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fe831}):_0x59fb4a[_0x7385f5]=_0x4fe831,_0xceb087=(_0xea70a3,_0x567f62,_0x274fc7,_0x33ae52)=>{const _0x44e3fb=_0xbc4bab;for(var _0x3fa41b=_0x33ae52>0x1?void 0x0:_0x33ae52?_0x4a6166(_0x567f62,_0x274fc7):_0x567f62,_0x9aa966=_0xea70a3[_0x44e3fb(0x277)]-0x1,_0x48d93b;_0x9aa966>=0x0;_0x9aa966--)(_0x48d93b=_0xea70a3[_0x9aa966])&&(_0x3fa41b=_0x48d93b(_0x3fa41b)||_0x3fa41b);return _0x3fa41b;},_0x1674eb=(_0x5932eb,_0x4f0bb6)=>(_0x2aa614,_0x53ef8c)=>_0x4f0bb6(_0x2aa614,_0x53ef8c,_0x5932eb),_0x1d8e0c=(_0x1cb369,_0x351b0b,_0x2a227f)=>_0x313367(_0x1cb369,_0x351b0b+'',_0x2a227f);const _0x447e69='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';_0x309383['UniverCollaborationClientUIPlugin']=class extends _0x51234e[_0xbc4bab(0x1aa)]{constructor(_0x3a0701=_0x50011c,_0x5bfd91,_0x542526,_0x3a0061){const _0x4e1f5a=_0xbc4bab;super(),this[_0x4e1f5a(0x352)]=_0x3a0701,this[_0x4e1f5a(0x3b8)]=_0x5bfd91,this[_0x4e1f5a(0x284)]=_0x542526,this[_0x4e1f5a(0x163)]=_0x3a0061;const {..._0x47ac67}=_0x51234e[_0x4e1f5a(0x374)]({},_0x50011c,this['_config']);this['_configService'][_0x4e1f5a(0x202)](_0x1cdf09,_0x47ac67);}[_0xbc4bab(0x33b)](){const _0x1e52f0=_0xbc4bab;this[_0x1e52f0(0x14a)](),this[_0x1e52f0(0x225)]();}[_0xbc4bab(0x240)](){const _0x14ca72=_0xbc4bab;this[_0x14ca72(0x36f)]();}[_0xbc4bab(0x14a)](){const _0x1904e3=_0xbc4bab;var _0x56fdac;const _0x11063e=[[_0x54275e],[_0x4f6202],[_0x100d73],[_0x50e4fe],[_0x143609],[_0x15568a,{'useClass':_0x196ee5}],[_0x34b1e7[_0x1904e3(0x16e)],{'useClass':_0x34b1e7['WebSocketService']}],[_0x45d92a[_0x1904e3(0x394)],{'useClass':_0x451cc3}],[_0x309383[_0x1904e3(0x20e)]],[_0x32a49e],[_0x18e095],[_0x217dd7],[_0x25835a],[_0x309383['CollaborationDataLoaderController']]];_0x51234e[_0x1904e3(0x1c0)](this[_0x1904e3(0x284)],_0x51234e[_0x1904e3(0x31c)](_0x11063e,(_0x56fdac=this['_config'])==null?void 0x0:_0x56fdac[_0x1904e3(0x199)]));}[_0xbc4bab(0x36f)](){const _0x519d9b=_0xbc4bab;this['disposeWithMe'](this['_renderManagerService'][_0x519d9b(0x186)](_0x51234e['UniverInstanceType'][_0x519d9b(0x26e)],[_0x2b471f])),this['disposeWithMe'](this[_0x519d9b(0x3b8)][_0x519d9b(0x186)](_0x51234e['UniverInstanceType']['UNIVER_SHEET'],[_0x18b05d]));}[_0xbc4bab(0x225)](){const _0x267b1a=_0xbc4bab;_0x51234e['touchDependencies'](this[_0x267b1a(0x284)],[[_0x217dd7],[_0x309383['DesktopCollaborationStatusDisplayController']],[_0x32a49e],[_0x18e095],[_0x309383[_0x267b1a(0x221)]]]);}},_0x1d8e0c(_0x309383['UniverCollaborationClientUIPlugin'],_0xbc4bab(0x170),_0x447e69),_0x309383[_0xbc4bab(0x3bb)]=_0xceb087([_0x51234e[_0xbc4bab(0x287)](_0x45d92a[_0xbc4bab(0x211)]),_0x1674eb(0x1,_0x5cd4ea[_0xbc4bab(0x179)]),_0x1674eb(0x2,_0x51234e['Inject'](_0x51234e['Injector'])),_0x1674eb(0x3,_0x51234e[_0xbc4bab(0x388)])],_0x309383[_0xbc4bab(0x3bb)]);var _0x4fd73c=Object[_0xbc4bab(0x218)],_0xcf4bd5=(_0xc1f51a,_0x23d1f0,_0x1134e4,_0x2e1853)=>{const _0x311d6c=_0xbc4bab;for(var _0x22132a=_0x2e1853>0x1?void 0x0:_0x2e1853?_0x4fd73c(_0x23d1f0,_0x1134e4):_0x23d1f0,_0x4a42a6=_0xc1f51a[_0x311d6c(0x277)]-0x1,_0x38b0d3;_0x4a42a6>=0x0;_0x4a42a6--)(_0x38b0d3=_0xc1f51a[_0x4a42a6])&&(_0x22132a=_0x38b0d3(_0x22132a)||_0x22132a);return _0x22132a;},_0x4f0922=(_0x19689e,_0x17b53b)=>(_0x539f1e,_0x2ae070)=>_0x17b53b(_0x539f1e,_0x2ae070,_0x19689e);_0x309383[_0xbc4bab(0x3c7)]=class extends _0x45d92a[_0xbc4bab(0x18b)]{constructor(_0x10dd97,_0x1e59f8,_0x3da4ca,_0x5ae85d,_0x1a1601){super(_0x10dd97,_0x1e59f8,_0x3da4ca,_0x5ae85d,_0x1a1601);}async[_0xbc4bab(0x1ec)](_0x5999bb){const _0x4864c6=_0xbc4bab,_0x218ae4=await this[_0x4864c6(0x37a)](),_0xcc23ec=this[_0x4864c6(0x1ac)](_0x5999bb,_0x218ae4);return this[_0x4864c6(0x2f1)](_0xcc23ec);}[_0xbc4bab(0x1ac)](_0x4804a7,_0x2069fd){const _0x56442f=_0xbc4bab,_0xd33b30=typeof window>'u'?new URL(_0x4804a7):new URL(_0x4804a7,window[_0x56442f(0x38a)][_0x56442f(0x250)]);_0xd33b30[_0x56442f(0x31d)][_0x56442f(0x36c)]('sessionTicket',_0x2069fd);const _0x58bcbe=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x58bcbe['get'](_0x56442f(0x3aa))&&_0xd33b30[_0x56442f(0x31d)][_0x56442f(0x36c)](_0x56442f(0x3aa),_0x58bcbe[_0x56442f(0x194)](_0x56442f(0x3aa))),_0xd33b30[_0x56442f(0x193)]();}async['_getSessionTicket'](){const _0x33fb15=_0xbc4bab;var _0x216d70,_0x55efac,_0x2e1564;const _0x4dc396=this[_0x33fb15(0x163)][_0x33fb15(0x175)](_0x45d92a[_0x33fb15(0x180)]),_0x2f1188=(_0x216d70=_0x4dc396==null?void 0x0:_0x4dc396[_0x33fb15(0x316)])!=null?_0x216d70:_0x45d92a[_0x33fb15(0x270)];return(_0x2e1564=(_0x55efac=(await this[_0x33fb15(0x25d)][_0x33fb15(0x194)](_0x2f1188,{'headers':{'Content-Type':_0x33fb15(0x300)}}))[_0x33fb15(0x203)])==null?void 0x0:_0x55efac[_0x33fb15(0x169)])!=null?_0x2e1564:'';}},_0x309383[_0xbc4bab(0x3c7)]=_0xcf4bd5([_0x4f0922(0x0,_0x51234e[_0xbc4bab(0x1e7)](_0x51234e[_0xbc4bab(0x345)])),_0x4f0922(0x1,_0x51234e[_0xbc4bab(0x1e7)](_0x34b1e7[_0xbc4bab(0x263)])),_0x4f0922(0x2,_0x51234e['IConfigService']),_0x4f0922(0x3,_0x51234e['ILogService']),_0x4f0922(0x4,_0x2bb387[_0xbc4bab(0x227)])],_0x309383[_0xbc4bab(0x3c7)]);var _0x55b5e5=(_0x51659c=>(_0x51659c[_0x51659c[_0xbc4bab(0x22f)]=0x0]=_0xbc4bab(0x22f),_0x51659c[_0x51659c['OK']=0x1]='OK',_0x51659c[_0x51659c[_0xbc4bab(0x2ce)]=0x2]='INTERNAL_ERROR',_0x51659c[_0x51659c[_0xbc4bab(0x1f0)]=0x3]=_0xbc4bab(0x1f0),_0x51659c[_0x51659c[_0xbc4bab(0x2f4)]=0x4]=_0xbc4bab(0x2f4),_0x51659c[_0x51659c[_0xbc4bab(0x231)]=0x5]='UNAUTHENTICATED',_0x51659c[_0x51659c[_0xbc4bab(0x257)]=0x6]=_0xbc4bab(0x257),_0x51659c[_0x51659c['INVALID_ARGUMENT']=0x7]=_0xbc4bab(0x1cd),_0x51659c[_0x51659c[_0xbc4bab(0x2bb)]=0x8]=_0xbc4bab(0x2bb),_0x51659c[_0x51659c['COMPLETION_FINISHED']=0x9]=_0xbc4bab(0x26d),_0x51659c[_0x51659c[_0xbc4bab(0x21e)]=0xa]='LOGIN_FAILED',_0x51659c[_0x51659c[_0xbc4bab(0x14b)]=0xb]=_0xbc4bab(0x14b),_0x51659c[_0x51659c[_0xbc4bab(0x22b)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x51659c[_0x51659c[_0xbc4bab(0x1c3)]=0xd]=_0xbc4bab(0x1c3),_0x51659c[_0x51659c[_0xbc4bab(0x2a1)]=0xe]=_0xbc4bab(0x2a1),_0x51659c[_0x51659c['CHANGESET_REVISION_CONFILICT']=0x1389]=_0xbc4bab(0x236),_0x51659c[_0x51659c['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x51659c[_0x51659c['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x51659c[_0x51659c['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0xbc4bab(0x3c5),_0x51659c[_0x51659c[_0xbc4bab(0x3ac)]=0x1b59]=_0xbc4bab(0x3ac),_0x51659c[_0x51659c[_0xbc4bab(0x184)]=0x1b5a]=_0xbc4bab(0x184),_0x51659c[_0x51659c[_0xbc4bab(0x322)]=0x1b5b]=_0xbc4bab(0x322),_0x51659c[_0x51659c['APPLY_PERMISSION_DENIED']=0x1b5c]=_0xbc4bab(0x360),_0x51659c[_0x51659c['APPLY_DUPLICATED']=0x1b5d]=_0xbc4bab(0x1ff),_0x51659c[_0x51659c[_0xbc4bab(0x253)]=0x1f41]=_0xbc4bab(0x253),_0x51659c[_0x51659c[_0xbc4bab(0x2c6)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x51659c[_0x51659c['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0xbc4bab(0x29e),_0x51659c[_0x51659c[_0xbc4bab(0x3ca)]=0x232b]=_0xbc4bab(0x3ca),_0x51659c[_0x51659c['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0xbc4bab(0x173),_0x51659c[_0x51659c['LICENSE_DISTRO_REJECTED']=0x232d]=_0xbc4bab(0x279),_0x51659c[_0x51659c['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0xbc4bab(0x208),_0x51659c[_0x51659c[_0xbc4bab(0x15d)]=0x2712]=_0xbc4bab(0x15d),_0x51659c[_0x51659c[_0xbc4bab(0x15b)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x51659c[_0x51659c['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x51659c[_0x51659c[_0xbc4bab(0x2ad)]=0x271a]=_0xbc4bab(0x2ad),_0x51659c[_0x51659c[_0xbc4bab(0x330)]=0x271b]=_0xbc4bab(0x330),_0x51659c[_0x51659c['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x51659c[_0x51659c[_0xbc4bab(0x261)]=0x271d]=_0xbc4bab(0x261),_0x51659c[_0x51659c[_0xbc4bab(0x235)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x51659c[_0x51659c['YUUMI_AI_RUN_FAILED']=0x271f]=_0xbc4bab(0x271),_0x51659c[_0x51659c['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x51659c[_0x51659c[_0xbc4bab(0x233)]=0x2af9]=_0xbc4bab(0x233),_0x51659c[_0x51659c['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x51659c[_0x51659c['INVALID_INVITE_CODE']=0x2ee2]=_0xbc4bab(0x2c4),_0x51659c[_0x51659c[_0xbc4bab(0x164)]=0x2ee3]=_0xbc4bab(0x164),_0x51659c[_0x51659c[_0xbc4bab(0x365)]=0x2ee4]=_0xbc4bab(0x365),_0x51659c[_0x51659c['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0xbc4bab(0x389),_0x51659c[_0x51659c[_0xbc4bab(0x146)]=0x32c9]=_0xbc4bab(0x146),_0x51659c[_0x51659c['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0xbc4bab(0x1c1),_0x51659c[_0x51659c['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0xbc4bab(0x1e3),_0x51659c[_0x51659c['UNRECOGNIZED']=-0x1]=_0xbc4bab(0x265),_0x51659c))(_0x55b5e5||{}),_0x3c4a51=Object[_0xbc4bab(0x218)],_0x4734ba=(_0x102cdc,_0x14dc55,_0x1dd656,_0x81b107)=>{const _0x10442e=_0xbc4bab;for(var _0x55dc2f=_0x81b107>0x1?void 0x0:_0x81b107?_0x3c4a51(_0x14dc55,_0x1dd656):_0x14dc55,_0x249e69=_0x102cdc[_0x10442e(0x277)]-0x1,_0x1b3693;_0x249e69>=0x0;_0x249e69--)(_0x1b3693=_0x102cdc[_0x249e69])&&(_0x55dc2f=_0x1b3693(_0x55dc2f)||_0x55dc2f);return _0x55dc2f;},_0x494e48=(_0x2e701f,_0x3472f5)=>(_0x130f34,_0x5165ec)=>_0x3472f5(_0x130f34,_0x5165ec,_0x2e701f);_0x309383[_0xbc4bab(0x331)]=class extends _0x51234e[_0xbc4bab(0x292)]{constructor(_0x42778f,_0x2a9552,_0x38bedc){const _0xcb7e63=_0xbc4bab;super(),this[_0xcb7e63(0x35a)]=_0x42778f,this[_0xcb7e63(0x25d)]=_0x2a9552,this['_configService']=_0x38bedc;}async['runOnServer'](_0x323d0f,_0x5d73d7,_0xe5b761,..._0xcbc21f){const _0xd6f326=_0xbc4bab;var _0x212872,_0x4ac424,_0x27a0e9,_0xa558f0;const _0x39a6cc=this['_instanceService'][_0xd6f326(0x3d9)]();if(!_0x39a6cc)throw new Error(_0xd6f326(0x27c));const _0x51fb99=((_0x212872=this[_0xd6f326(0x163)][_0xd6f326(0x175)](_0x45d92a[_0xd6f326(0x1ee)]))!=null?_0x212872:_0x45d92a['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x323d0f+_0xd6f326(0x14e)+_0x5d73d7,_0x4c3bcb=new URL(window[_0xd6f326(0x38a)][_0xd6f326(0x23f)]),_0x3a4af9={'scriptId':_0x323d0f,'runId':(_0x4ac424=_0x4c3bcb[_0xd6f326(0x31d)][_0xd6f326(0x194)](_0xd6f326(0x3aa)))!=null?_0x4ac424:'','function':_0x5d73d7,'unitId':_0x39a6cc[_0xd6f326(0x27a)](),'argsOfFunction':JSON['stringify'](_0xcbc21f),'invokeId':(_0x27a0e9=_0xe5b761[_0xd6f326(0x19a)])!=null?_0x27a0e9:'','executionId':(_0xa558f0=_0xe5b761[_0xd6f326(0x19f)])!=null?_0xa558f0:''};try{const _0x323f74=await this[_0xd6f326(0x25d)][_0xd6f326(0x2f7)](_0x51fb99,{'body':_0x3a4af9});return _0x323f74['body'][_0xd6f326(0x25a)]&&_0x323f74[_0xd6f326(0x203)]['error'][_0xd6f326(0x34f)]!==_0x55b5e5['OK']?_0xd6f326(0x3b3):_0x323f74[_0xd6f326(0x203)][_0xd6f326(0x2f3)];}catch{return _0xd6f326(0x3b3);}}},_0x309383['RemoteUniscriptService']=_0x4734ba([_0x494e48(0x0,_0x51234e[_0xbc4bab(0x2a4)]),_0x494e48(0x1,_0x51234e[_0xbc4bab(0x1e7)](_0x34b1e7[_0xbc4bab(0x263)])),_0x494e48(0x2,_0x51234e[_0xbc4bab(0x388)])],_0x309383['RemoteUniscriptService']);const _0x95d128=0x7530,_0x1669bd=_0xbc4bab(0x2c3);class _0x164101 extends _0x51234e[_0xbc4bab(0x292)]{constructor(){const _0x4adf21=_0xbc4bab;super(),_0x1e1d43(this,_0x4adf21(0x1a9),_0x51234e[_0x4adf21(0x1a2)]()),_0x1e1d43(this,_0x4adf21(0x232),new Set()),_0x1e1d43(this,_0x4adf21(0x177),new Map()),_0x1e1d43(this,_0x4adf21(0x347),null),_0x1e1d43(this,_0x4adf21(0x15c),new Map()),_0x1e1d43(this,'_unitStatus',new Map()),this[_0x4adf21(0x1d6)]();}[_0xbc4bab(0x310)](){const _0x3ad269=_0xbc4bab;super[_0x3ad269(0x310)](),this['_clearOtherTimers'][_0x3ad269(0x35f)]((_0x33083a,_0x44e2e7)=>this[_0x3ad269(0x29f)](_0x44e2e7)),this[_0x3ad269(0x347)]&&window[_0x3ad269(0x2aa)](this['_heartbeatTimer']);}[_0xbc4bab(0x21f)](_0x19d19e){const _0x54e7a7=_0xbc4bab;return this[_0x54e7a7(0x1c8)](_0x19d19e)[_0x54e7a7(0x3bd)](_0x5bbaf2[_0x54e7a7(0x14c)]());}[_0xbc4bab(0x24a)](_0x5f0f4b){const _0x4e065c=_0xbc4bab;this[_0x4e065c(0x232)][_0x4e065c(0x293)]===0x0&&this[_0x4e065c(0x3ab)](),this[_0x4e065c(0x232)][_0x4e065c(0x2fb)](_0x5f0f4b),this[_0x4e065c(0x166)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5f0f4b],'isForwarded':!0x1});}[_0xbc4bab(0x1e8)](_0x410ce9){const _0x2a6494=_0xbc4bab;this[_0x2a6494(0x232)][_0x2a6494(0x339)](_0x410ce9),this['_selfUnitIDs']['size']===0x0&&this[_0x2a6494(0x347)]&&window[_0x2a6494(0x2aa)](this[_0x2a6494(0x347)]);}[_0xbc4bab(0x1d6)](){const _0x52b0ec=_0xbc4bab;this[_0x52b0ec(0x2de)](_0x51234e[_0x52b0ec(0x33a)](_0x5bbaf2[_0x52b0ec(0x189)](window,_0x52b0ec(0x2ab))[_0x52b0ec(0x2ae)](_0x48a0c6=>{const _0x2581c1=_0x52b0ec;if(_0x48a0c6[_0x2581c1(0x21d)]!==_0x1669bd||!_0x48a0c6[_0x2581c1(0x1b6)])return;const _0xc49fe2=JSON['parse'](_0x48a0c6['newValue']);this['_handleEvent'](_0xc49fe2);}))),window[_0x52b0ec(0x391)](_0x52b0ec(0x3d6),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x52b0ec(0x1ea)](this[_0x52b0ec(0x232)])}));}[_0xbc4bab(0x216)](_0x15445c){const _0x1d8a1a=_0xbc4bab;switch(_0x15445c[_0x1d8a1a(0x3c2)]){case 0x0:this[_0x1d8a1a(0x364)](_0x15445c);break;case 0x1:this[_0x1d8a1a(0x1fd)](_0x15445c);break;case 0x2:this[_0x1d8a1a(0x18e)](_0x15445c);break;}}[_0xbc4bab(0x364)](_0x7d3614){const _0x2e64bb=_0xbc4bab,{unitIDs:_0xd8c7f9,memberID:_0x447bcb,isForwarded:_0x273034}=_0x7d3614;_0xd8c7f9[_0x2e64bb(0x35f)](_0x3898ec=>{const _0x23daea=_0x2e64bb;if(!_0x273034&&this[_0x23daea(0x177)][_0x23daea(0x172)](_0x3898ec)&&this[_0x23daea(0x1c8)](_0x3898ec)[_0x23daea(0x1ab)](_0x45d92a[_0x23daea(0x27b)]['OTHER_CLIENTS_EDITING']),!this[_0x23daea(0x177)][_0x23daea(0x172)](_0x3898ec)||!this[_0x23daea(0x177)]['get'](_0x3898ec)[_0x23daea(0x172)](_0x447bcb)){const _0x42bfa7=this[_0x23daea(0x177)][_0x23daea(0x194)](_0x3898ec)||new Set();_0x42bfa7[_0x23daea(0x2fb)](_0x447bcb),this[_0x23daea(0x177)][_0x23daea(0x36c)](_0x3898ec,_0x42bfa7),this[_0x23daea(0x289)](_0x447bcb);}}),_0x273034||this[_0x2e64bb(0x166)]({'type':0x0,'memberID':this[_0x2e64bb(0x1a9)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0xbc4bab(0x289)](_0x27111e){const _0x438109=_0xbc4bab;this[_0x438109(0x29f)](_0x27111e);const _0x59d149=window[_0x438109(0x2df)](()=>{const _0xaec0e2=_0x438109;this[_0xaec0e2(0x177)]['forEach'](_0x3f98c6=>{const _0x29d79e=_0xaec0e2;_0x3f98c6[_0x29d79e(0x339)](_0x27111e);});},_0x95d128*0x2);this['_clearOtherTimers']['set'](_0x27111e,_0x59d149);}['_removeClearOtherTimer'](_0xff8389){const _0x3c1828=_0xbc4bab;if(this[_0x3c1828(0x15c)][_0x3c1828(0x172)](_0xff8389)){const _0x2ac0d7=this['_clearOtherTimers'][_0x3c1828(0x194)](_0xff8389);_0x2ac0d7&&window[_0x3c1828(0x171)](_0x2ac0d7),this['_clearOtherTimers'][_0x3c1828(0x36c)](_0xff8389,null);}}['_handleLeaveEvent'](_0x18059e){const _0x19ea34=_0xbc4bab,{memberID:_0x2e4def,unitIDs:_0x4e19f9}=_0x18059e;_0x4e19f9[_0x19ea34(0x35f)](_0x1a5ba5=>{const _0x55b234=_0x19ea34;var _0x28bd0e;const _0x8b98b7=this[_0x55b234(0x177)][_0x55b234(0x194)](_0x1a5ba5);_0x8b98b7&&(_0x8b98b7[_0x55b234(0x339)](_0x2e4def),(_0x28bd0e=this[_0x55b234(0x1c8)](_0x1a5ba5))==null||_0x28bd0e[_0x55b234(0x1ab)](_0x8b98b7[_0x55b234(0x293)]===0x0?_0x45d92a['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:_0x45d92a[_0x55b234(0x27b)][_0x55b234(0x30b)]));}),this[_0x19ea34(0x29f)](_0x2e4def);}[_0xbc4bab(0x18e)](_0x53b142){const _0x27c58f=_0xbc4bab;this[_0x27c58f(0x289)](_0x53b142['memberID']);}[_0xbc4bab(0x166)](_0x52e9b0){const _0x5582c1=_0xbc4bab;localStorage['setItem'](_0x1669bd,JSON[_0x5582c1(0x19c)](_0x52e9b0));}[_0xbc4bab(0x3ab)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x131f0a=_0x3b2a;this[_0x131f0a(0x166)]({'type':0x2,'memberID':this[_0x131f0a(0x1a9)]});},_0x95d128);}['_ensureSubject'](_0xb7f8f7){const _0x4a340f=_0xbc4bab;return this[_0x4a340f(0x313)]['has'](_0xb7f8f7)||this[_0x4a340f(0x313)][_0x4a340f(0x36c)](_0xb7f8f7,new _0x5bbaf2[(_0x4a340f(0x20d))](_0x45d92a[_0x4a340f(0x27b)][_0x4a340f(0x249)])),this[_0x4a340f(0x313)][_0x4a340f(0x194)](_0xb7f8f7);}}_0x309383[_0xbc4bab(0x1dd)]=_0x15568a,_0x309383[_0xbc4bab(0x176)]=_0xd3b6c4,_0x309383[_0xbc4bab(0x297)]=_0x164101,_0x309383['WebURLService']=_0x196ee5,Object['defineProperty'](_0x309383,Symbol['toStringTag'],{'value':_0xbc4bab(0x1eb)});}));