@univerjs-pro/collaboration-client-ui 0.22.1 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -17
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x25d1ec=_0x1f64;(function(_0x549ec6,_0x37f5df){const _0x13808=_0x1f64,_0x7e6409=_0x549ec6();while(!![]){try{const _0x179fc0=parseInt(_0x13808(0x2cd))/0x1*(parseInt(_0x13808(0x1ad))/0x2)+-parseInt(_0x13808(0x259))/0x3*(-parseInt(_0x13808(0x37e))/0x4)+-parseInt(_0x13808(0x1ea))/0x5+parseInt(_0x13808(0x3d7))/0x6*(parseInt(_0x13808(0x3b0))/0x7)+-parseInt(_0x13808(0x3d8))/0x8+-parseInt(_0x13808(0x351))/0x9+parseInt(_0x13808(0x3ac))/0xa;if(_0x179fc0===_0x37f5df)break;else _0x7e6409['push'](_0x7e6409['shift']());}catch(_0x331c82){_0x7e6409['push'](_0x7e6409['shift']());}}}(_0x110b,0xb3381),Object[_0x25d1ec(0x2a7)](exports,Symbol[_0x25d1ec(0x215)],{'value':_0x25d1ec(0x1ff)}));let _univerjs_pro_collaboration_client=require('@univerjs-pro/collaboration-client'),_univerjs_core=require('@univerjs/core'),_univerjs_ui=require('@univerjs/ui'),rxjs=require('rxjs'),_univerjs_design=require('@univerjs/design'),_univerjs_icons=require('@univerjs/icons'),react=require('react'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_rpc=require('@univerjs/rpc'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_network=require('@univerjs/network'),_univerjs_docs_ui=require('@univerjs/docs-ui'),_univerjs_drawing=require('@univerjs/drawing'),_univerjs_pro_collaboration=require('@univerjs-pro/collaboration'),_univerjs_docs=require('@univerjs/docs'),_univerjs_engine_formula=require('@univerjs/engine-formula'),rxjs_operators=require('rxjs/operators'),_univerjs_sheets_ui=require('@univerjs/sheets-ui'),_univerjs_protocol=require('@univerjs/protocol');function getStatusConfig(_0x34283c){const _0x3c2ddc=_0x25d1ec;switch(_0x34283c){case _univerjs_pro_collaboration_client[_0x3c2ddc(0x1fb)][_0x3c2ddc(0x439)]:return{'icon':(0x0,react_jsx_runtime[_0x3c2ddc(0x265)])(_univerjs_icons['OffLineIcon'],{}),'colorClass':_0x3c2ddc(0x39f),'i18nKey':_0x3c2ddc(0x23c),'tooltipKey':_0x3c2ddc(0x22f),'clickable':!![],'indicator':_0x3c2ddc(0x1a9)};case _univerjs_pro_collaboration_client[_0x3c2ddc(0x1fb)][_0x3c2ddc(0x43b)]:return{'icon':(0x0,react_jsx_runtime[_0x3c2ddc(0x265)])(_univerjs_icons[_0x3c2ddc(0x336)],{}),'colorClass':_0x3c2ddc(0x41d),'i18nKey':_0x3c2ddc(0x338),'clickable':![],'indicator':'static'};case _univerjs_pro_collaboration_client[_0x3c2ddc(0x1fb)][_0x3c2ddc(0x40e)]:return{'icon':(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x3c2ddc(0x3d2)],{}),'colorClass':_0x3c2ddc(0x1f7),'i18nKey':_0x3c2ddc(0x2d4),'clickable':![],'indicator':'spin'};case _univerjs_pro_collaboration_client[_0x3c2ddc(0x1fb)][_0x3c2ddc(0x2ac)]:return{'icon':(0x0,react_jsx_runtime[_0x3c2ddc(0x265)])(_univerjs_icons[_0x3c2ddc(0x1e2)],{}),'colorClass':'univer-text-gray-400','i18nKey':_0x3c2ddc(0x223),'clickable':![],'indicator':_0x3c2ddc(0x1a9)};case _univerjs_pro_collaboration_client[_0x3c2ddc(0x1fb)][_0x3c2ddc(0x1ec)]:case _univerjs_pro_collaboration_client[_0x3c2ddc(0x1fb)]['AWAITING_WITH_PENDING']:return{'icon':(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x3c2ddc(0x3d2)],{}),'colorClass':_0x3c2ddc(0x1f7),'i18nKey':_0x3c2ddc(0x2ef),'clickable':![],'indicator':_0x3c2ddc(0x2b6)};case _univerjs_pro_collaboration_client['CollaborationStatus'][_0x3c2ddc(0x32e)]:case _univerjs_pro_collaboration_client[_0x3c2ddc(0x1fb)][_0x3c2ddc(0x33c)]:return{'icon':(0x0,react_jsx_runtime[_0x3c2ddc(0x265)])(_univerjs_icons[_0x3c2ddc(0x1e2)],{}),'colorClass':'univer-text-green-500','i18nKey':_0x3c2ddc(0x3e6),'clickable':![],'indicator':_0x3c2ddc(0x1a9)};}}function CollaborationStatusDisplay(_0x5c6f5d){const _0x3a6c17=_0x25d1ec,{status$:_0x4397d8}=_0x5c6f5d,_0x1141fc=(0x0,_univerjs_ui[_0x3a6c17(0x405)])(_0x4397d8,_univerjs_pro_collaboration_client[_0x3a6c17(0x1fb)][_0x3a6c17(0x2ac)]),_0x35c7c2=(0x0,_univerjs_ui[_0x3a6c17(0x29c)])(_univerjs_core['LocaleService']),_0xa09155=(0x0,_univerjs_ui[_0x3a6c17(0x29c)])(_univerjs_pro_collaboration_client['CollaborationSessionService']),_0x9e61a9=(0x0,react['useMemo'])(()=>getStatusConfig(_0x1141fc),[_0x1141fc]),_0x4f06fa=_0x1141fc!==_univerjs_pro_collaboration_client['CollaborationStatus'][_0x3a6c17(0x439)],_0x398b04=_0x35c7c2['t'](_0x9e61a9[_0x3a6c17(0x37a)]),_0x234bae=_0x9e61a9[_0x3a6c17(0x28d)]?_0x35c7c2['t'](_0x9e61a9[_0x3a6c17(0x28d)]):_0x398b04,_0x4832ac=(0x0,react[_0x3a6c17(0x212)])(()=>{const _0x5cdab5=_0x3a6c17;if(!_0x4f06fa)_0xa09155[_0x5cdab5(0x34f)]();},[_0x4f06fa,_0xa09155]),_0xbeb999=(0x0,react[_0x3a6c17(0x212)])(_0x3fcf47=>{const _0xd279c9=_0x3a6c17;!_0x4f06fa&&(_0x3fcf47[_0xd279c9(0x33b)]===_0xd279c9(0x315)||_0x3fcf47[_0xd279c9(0x33b)]==='\x20')&&(_0x3fcf47['preventDefault'](),_0xa09155['reconnect']());},[_0x4f06fa,_0xa09155]),_0x3a3e8f=(0x0,react_jsx_runtime['jsx'])(_0x3a6c17(0x27a),{'className':(0x0,_univerjs_design[_0x3a6c17(0x2dc)])(_0x3a6c17(0x2f5),_0x3a6c17(0x2dd),_0x9e61a9['colorClass'],{'univer-animate-spin':_0x9e61a9[_0x3a6c17(0x254)]===_0x3a6c17(0x2b6),'univer-animate-pulse':_0x9e61a9[_0x3a6c17(0x254)]==='pulse'}),'aria-hidden':_0x3a6c17(0x3aa),'children':_0x9e61a9['icon']}),_0x24f1b8=(0x0,react_jsx_runtime['jsx'])('span',{'className':(0x0,_univerjs_design[_0x3a6c17(0x2dc)])(_0x3a6c17(0x2f5),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x3a6c17(0x3d5),_0x3a6c17(0x264),_0x3a6c17(0x1de),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x9e61a9[_0x3a6c17(0x37d)],'univer-cursor-default':!_0x9e61a9['clickable']}),'children':_0x3a3e8f});if(_0x9e61a9[_0x3a6c17(0x37d)])return(0x0,react_jsx_runtime[_0x3a6c17(0x265)])(_univerjs_design[_0x3a6c17(0x31b)],{'title':_0x234bae,'placement':'bottom','children':(0x0,react_jsx_runtime[_0x3a6c17(0x265)])(_0x3a6c17(0x2b0),{'type':'button','onClick':_0x4832ac,'onKeyDown':_0xbeb999,'className':(0x0,_univerjs_design['clsx'])(_0x3a6c17(0x2fa),_0x3a6c17(0x1bb),_0x3a6c17(0x3d1),_0x3a6c17(0x35a)),'aria-label':_0x398b04+_0x3a6c17(0x33f)+_0x234bae,'role':'status','aria-live':_0x3a6c17(0x2a1),'aria-atomic':_0x3a6c17(0x3aa),'children':_0x24f1b8})});return(0x0,react_jsx_runtime[_0x3a6c17(0x265)])(_univerjs_design[_0x3a6c17(0x31b)],{'title':_0x234bae,'placement':_0x3a6c17(0x38b),'children':(0x0,react_jsx_runtime[_0x3a6c17(0x265)])(_0x3a6c17(0x2f4),{'className':(0x0,_univerjs_design['clsx'])(_0x3a6c17(0x2fa),'univer-border-none\x20univer-bg-transparent',_0x3a6c17(0x3d1)),'aria-label':_0x398b04,'role':_0x3a6c17(0x2f1),'aria-live':_0x3a6c17(0x2a1),'aria-atomic':_0x3a6c17(0x3aa),'children':_0x24f1b8})});}function _typeof(_0x3ef3c5){'@babel/helpers - typeof';const _0x23c350=_0x25d1ec;return _typeof=_0x23c350(0x3f5)==typeof Symbol&&_0x23c350(0x2c7)==typeof Symbol['iterator']?function(_0x389c26){return typeof _0x389c26;}:function(_0x4608a4){const _0x473ee4=_0x23c350;return _0x4608a4&&_0x473ee4(0x3f5)==typeof Symbol&&_0x4608a4[_0x473ee4(0x411)]===Symbol&&_0x4608a4!==Symbol[_0x473ee4(0x1e9)]?'symbol':typeof _0x4608a4;},_typeof(_0x3ef3c5);}function toPrimitive(_0x4548bb,_0x4b566b){const _0x39fff5=_0x25d1ec;if('object'!=_typeof(_0x4548bb)||!_0x4548bb)return _0x4548bb;var _0x3b0b21=_0x4548bb[Symbol[_0x39fff5(0x1a8)]];if(void 0x0!==_0x3b0b21){var _0x7da575=_0x3b0b21[_0x39fff5(0x320)](_0x4548bb,_0x4b566b||_0x39fff5(0x21e));if(_0x39fff5(0x400)!=_typeof(_0x7da575))return _0x7da575;throw new TypeError(_0x39fff5(0x2ff));}return('string'===_0x4b566b?String:Number)(_0x4548bb);}function toPropertyKey(_0x319776){const _0x27f0ad=_0x25d1ec;var _0x23b52c=toPrimitive(_0x319776,_0x27f0ad(0x266));return _0x27f0ad(0x2c7)==_typeof(_0x23b52c)?_0x23b52c:_0x23b52c+'';}function _0x110b(){const _0x584ec0=['symbol','handleInsertRangeMoveDown','_getLighterColor','_toggleOnline','USERS_LEAVE','_updateSubUnitFromURLParams','854587znPNoQ','width','range','forEach','InsertRangeMoveDownCommandId','MemberService','params','collabStatus.fetchMiss','_httpService','highlight','takeUntil','_removeCollabCursors','ILocalStorageService','setParam','whenReady','clsx','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','delete','fillStyle','onLocalMutation','VIEW_MAIN','_getAnchorBounding','RxDisposable','filename','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','IBeforeCloseService','getConfig','_releaseCalculationLimit','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','source','_backgroundColor','_labelPosition','FormulaExecutedStateType','_getSessionTicket','collabStatus.syncing','DocCollaborationEntity','status','doc.mutation.rich-text-editing','_onCursorDelete','div','univer-flex\x20univer-items-center\x20univer-justify-center','getLocalCacheKey','[Window\x20Error]:\x20','isActive','filter','univer-inline-flex\x20univer-items-center\x20univer-justify-center','DocSkeletonManagerService','_scheduleSaving','ACTIVE_UNIT_EVENT_CHANNEL','_context','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','arc','backgroundColor','_online','IRenderManagerService','_startCalculationLimit','_logService','unitId','_transformUndoRedoStack','getFormulaLimitStatusUrl','START_CALCULATION','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','stringify','Optional','onStarting','SetDocZoomRatioOperation','ISocketService','SHEET_VIEWPORT_KEY','_collabSessionService','next','setActiveRange','green.600','Enter','toRgbString','getSheetId','COLORS','collaboration.closeRoom','_color','Tooltip','_heartbeatTimer','LOCAL_CACHE_INTERVAL','RevisionService','lineTo','call','newValue','_saveTaskMap','fill','BuiltInUIPart','releaseFormulaLimitUrl','_injector','addHandlerCallback','MessageType','enableFrontendLog','bind','_getSheetObject','_status$','urlChange$','SYNCED','unshift','BrowserCollaborationSocketService','getTypeOfUnitAdded$','editingUnit','toString','show','shareReplay','OffLineIcon','_syncEditingCollabCursorService','collabStatus.conflict','undoState','_localeService','key','PENDING','name','showText','\x20-\x20','_hover','purple.300','black','RichTextEditingMutation','_lastResponseTimestamp','application/json','_initWindowErrorListener','_send','dispose$','_applyCommand','InsertColCommandId','clearTimeout','cursorInfo','createIdentifier','parse','reconnect','_hideTimer','12863619FijGxk','_dataLoaderService','Inject','_eventUnsubscribe','reason','deepClone','\x20at\x20','combineLatest','UPDATE_CURSOR','univer-appearance-none','selection','RefRangeService','Failed','mapTo','fillText','_drawRectRange','OTHER_CLIENTS_EDITING','ticket','getUnhiddenWorksheets','_uploadLog','includes','_revisionService','_memberID','disposeUnit','_unitStatus','getFocusedUnit','ICommandService','TEXT_RANGE_LAYER_INDEX','/universer-api/license/formula/limit/status','rgba(','unsubscribe','touchDependencies','connectInjector','pushState','session.collaboration-timeout','NodePositionConvertToCursor','CollaborationSocketService','onPointerEnter$','offsetY','asObservable','setItem','i18nKey','rgb','slice','clickable','3004gEHEFl','_session','_messageService','_roomMembers$','disableLocalCache','startColumn','subUnitId','getSkeleton','makeDirty','_refreshCollabCursors','_highlight','createSocket','from','bottom','session.connection-failed','_setupSubUnitSync','moveTo','popstate','CollaborationEvent','FormulaExecuteStageType','ILogService','_beforeCloseService','getUnitId','_drawAnchor','_instanceService','clearInterval','getTypeOfUnitDisposed$','getMergeData','replace','permission.content','merge','ThemeService','redoState','univer-text-red-500','getStateCache','startFormulaLimitUrl','endRow','collabCursorState$','complete','jiqing.500','undefined','getValue','href','then','true','_setupBeforeClosingHandler','2835900LFbGMx','override','DeleteRangeMoveLeftCommandId','formula.calculation.unable','749ZXAOam','_getSaveTimeout','_toggleOffline','_cursorShapes','updateOfflineData','0.2)','searchParams','mergeOverrideWithDependencies','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_renderManagerService','_scheduleClearOtherTimer','resize','_hasFormulaInDirtyRanges','runOnServer','saveOfflineData','executeCommand','transformIMECache','measureText','message','_drawTextRange','stageInfo','send','session.will-retry','_initCommandInterceptor','_monkeyPatchLogService','assignAColorForMemberID','init','length','_cursorInfo$','...','removeEventListener','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getCurrentSelections','univer-m-0\x20univer-p-0','LoadingMultiIcon','IURLService','IConfigService','univer-transition-all\x20univer-duration-200','handleMoveRange','12822jCtNbs','3537728nWWIIz','isTransformMutationFailure','collab-rect-range-','NO_OTHER_CLIENTS_EDITING','saveImage','Disposable','rgba','docStateChange$','_stopBlinking','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getColor','transformByState','syncEditingCollabCursor','_blinkTimer','collabStatus.synced','Vector2','distinctUntilChanged','handleIRemoveCol','Error','_cursors','_onRefRangeChange','_anchor','RegularPolygon','now','socket$','type','pluginName','findNodePositionByCharIndex','_removeClearOtherTimer','function','_univerInstanceService','parseInt','_collabCursorController','[CollaborationDataLoaderController]','onPointerMove$','_docStateChangeManagerService','debounce','_docTransformSelectionsService','_initUserListener','_transformService','object','colno','status$','startRow','_taskIds','useObservable','DocSelectionManagerService','DataLoaderService','error','_ensureSubject','version','_highlightSecond','triggerDblclick','_getScale','FETCH_MISS','sessionTicket','HEADER_MENU','constructor','Rectangle','_anchorDot','UniverCollaborationClientUIPlugin','_docSyncEditingCollabCursorService','fromEvent','unitID','_commandService','addObjects','addClipboardHook','_lastPointer','_scene','univer-text-orange-500','invokeId','top','_docClipboardService','RemoteUniscriptService','CollaborationDataLoaderController','setShapeProps','FromArray','replaceState','_id','hide','_initUnhandledRejectionListener','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','transformSelections','_draw','requireSession','CollaborationSessionService','catch','flatMap','transform','_themeService','getMemberID','getUndoRedoMutationParamsCache','cursorInfo$','hovered','[Unhandled\x20Rejection]:\x20','formula.calculation.waiting','IImageIoService','OFFLINE','blue.400','CONFLICT','_sheetSkeletonManagerService','activeSheet$','createInstance','Warning','DeleteRangeMoveUpCommandId','CanceledError','/universer-api/frontend/logs','add','handleInsertRow','Injector','getSheetBySheetId','toPrimitive','static','InsertRangeMoveRightCommandId','packageName','registerComponent','2lHLBNg','_checkAndWaitForCalculationPermission','_initResize','size','getRangePointData','getCellMatrix','_collaborationController','_collaborationUIEventService','Subject','all','has','Success','getCurrentUnitForType','ITransformService','univer-border-none\x20univer-bg-transparent','_currentUsage','stack','onTransformChange$','beginPath','_disabled','LOCAL_CACHE_INTERVAL_KEY','@univerjs-pro/collaboration-client-ui','_saveCache','_configService','handleIRemoveRow','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','[LogService\x20Error]:\x20','getMember','isFormulaId','getDocRanges','transformStateCache','onMouseMove','IRemoteInstanceService','disposeWithMe','Workbook','debounceTime','UNIVER_DOC','_checkCalculationAvailable','min','_initDependencies','subscribeEvent','SessionStatus','memberID','maxFormulaLimit','_clearPolling','_updateLocalCursor','ranges','_handleEvent','_docTransformIMECacheService','dark:focus:univer-ring-offset-gray-800','_collabCursorState$','drawWith','UnitStatus','OnLineIcon','transformMutation','_initStatusListener','getCurrentRevOfUnit','contains','_init','decorate','prototype','103375axfjwL','/universer-api/license/formula/limit/done','AWAITING','_document','font','IMessageService','_config','IUniverInstanceService','roomMembers',',\x200.2)','unit','setTimeout','transformRemoteChangeset','univer-text-blue-500','SetTextSelectionsOperation','getViewport','enableLocalCache','CollaborationStatus','runRefRangeMutations','isFormulaString','DocStateChangeManagerService','Module','CommandType','_shapes','MoveRangeCommandId','text','collaboration.single-unit.warning','handleInsertRangeMoveRight','m1Prime','TEXT','getAncestorScale','Loading','save','body','_colorIndex','_entityInit$','lineno','Rect','DOC_RANGE_TYPE','_docSkeleton','useCallback','replaceDocRanges','INotificationService','toStringTag','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_hovered','mutations','_onCursorUpdate','_handleHeartbeatEvent','_transformPreviousActiveRange','height','_colorAssignService','default','setOffsetY','_isBlinkVisible','saveTaskMap','_updateURLWithCurrentState','collabStatus.notCollab','getColorFromTheme','_setFormulaLimitStatus','_startDocCollabCursor','UNIVER_SHEET','_handleHover','roomMembers$','EffectRefRangId','event$','history','dispose','_entities','collab-client.tooltip.reconnect','SheetCollabCursorShape','Tools','exhaustSavingTask','CollaborationUIEventId','getCollabCursors$','WebBrowserSingleActiveUnitService','getVpScrollXYInfoByPosToVp','CollaborationController','_textBubble','_localStorageService','ILocalCacheService','color','collabStatus.offline','fillRule','collaboration.offline-data-not-saved','ErrorCode','generateRandomId','_handleLeaveEvent','_imageIoService','_getFormulaLimitStatus','_initStatusComponent','_range','_render','LocaleService','focused$','registerRenderModule','registerRefRange','split','_startSheetCollabCursor','location','_blinkIntervalTimer','_offsetY','addObject','setAlpha','SUBMIT_CHANGESET_TIMEOUT','isTransformMutationsWithChangesetSuccess','indicator','_docSkeletonManagerService','m2Prime','column','_registerDependencies','5031XAIVtK','0.22.1','handleInsertCol','evenodd','DocIMEInputManagerService','subunit','values','_selfUnitIDs','_createSocketURL','SheetsSelectionsService','sessionStatus$','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','jsx','string','push','actions','_doCreateSocket','throttleTime','_handleJoinEvent','HTTPService','debug','/universer-api/license/formula/limit/start','data','getOwnPropertyDescriptor','getActiveSheet','_initCommandExecutedListener','UniverCollaborationClientPlugin','set','wsSessionTicketUrl','deserializeRangeWithSheet','_memberService','isArray','_initEvent','span','entityInit$','ONLINE','_uiPartsService','WebSocketService','map','restore','addEventListener','_assignedColors','unhandledrejection','pipe','SheetSkeletonManagerService','_showText','CLOSE_ROOM','_unitOnClients','_refRangeService','UniverInstanceType','handleDeleteRangeMoveUp','_maxFormulaLimit','tooltipKey','_getMergeRange','_scheduleHeartbeat','unload','get','post','_startBlinking','SetFormulaCalculationNotificationMutation','formula.calculation.started','_pollingInterval','subscribe','with','currentTheme$','_initEntityListener','row','useDependency','dirtyRanges','_name','highlightSecond','result','polite','_urlService','red.300','eventID','_clearOtherTimers','code','defineProperty','getCollabEntity$','_docTransformStateCacheService','labelPosition','yellow.400','NOT_COLLAB','InsertRowCommandId','_registerRenderDependencies','switchMap','button','startsWith','_collaborationSessionService','getParam','sheetId','endColumn','spin','setInterval','storage','getCoordByCell','_updateCollabCursors','registerDependencies','textRanges','registerBeforeClose','onCommandExecuted','runId','getCurrentSkeleton','transformMutationsWithChangeset','Shape','BehaviorSubject','origin','permission.title','some'];_0x110b=function(){return _0x584ec0;};return _0x110b();}function _defineProperty(_0x27e195,_0xfe77bc,_0x45f2cf){return(_0xfe77bc=toPropertyKey(_0xfe77bc))in _0x27e195?Object['defineProperty'](_0x27e195,_0xfe77bc,{'value':_0x45f2cf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27e195[_0xfe77bc]=_0x45f2cf,_0x27e195;}function __decorateParam(_0x598579,_0x1cc407){return function(_0x2d6eaa,_0x387086){_0x1cc407(_0x2d6eaa,_0x387086,_0x598579);};}function __decorate(_0x352258,_0x2ec9c0,_0x2c6ff7,_0x4c977d){const _0x381c0d=_0x25d1ec;var _0x375a12=arguments[_0x381c0d(0x3cb)],_0x423222=_0x375a12<0x3?_0x2ec9c0:_0x4c977d===null?_0x4c977d=Object[_0x381c0d(0x270)](_0x2ec9c0,_0x2c6ff7):_0x4c977d,_0x17c3a7;if(typeof Reflect===_0x381c0d(0x400)&&typeof Reflect[_0x381c0d(0x1e8)]===_0x381c0d(0x3f5))_0x423222=Reflect['decorate'](_0x352258,_0x2ec9c0,_0x2c6ff7,_0x4c977d);else{for(var _0x196d0b=_0x352258[_0x381c0d(0x3cb)]-0x1;_0x196d0b>=0x0;_0x196d0b--)if(_0x17c3a7=_0x352258[_0x196d0b])_0x423222=(_0x375a12<0x3?_0x17c3a7(_0x423222):_0x375a12>0x3?_0x17c3a7(_0x2ec9c0,_0x2c6ff7,_0x423222):_0x17c3a7(_0x2ec9c0,_0x2c6ff7))||_0x423222;}return _0x375a12>0x3&&_0x423222&&Object['defineProperty'](_0x2ec9c0,_0x2c6ff7,_0x423222),_0x423222;}let DesktopCollaborationStatusDisplayController=class DesktopCollaborationStatusDisplayController extends _univerjs_core['Disposable']{constructor(_0x50de3d,_0x11be6d,_0x2c7092,_0x5779c5){const _0x463ca1=_0x25d1ec;super(),this[_0x463ca1(0x3f6)]=_0x50de3d,this['_injector']=_0x11be6d,this['_collaborationController']=_0x2c7092,this['_uiPartsService']=_0x5779c5,_defineProperty(this,_0x463ca1(0x32c),new rxjs[(_0x463ca1(0x2c3))](_univerjs_pro_collaboration_client[_0x463ca1(0x1fb)][_0x463ca1(0x2ac)])),this[_0x463ca1(0x244)](),this['_initStatusListener']();}[_0x25d1ec(0x1e4)](){const _0x3ef124=_0x25d1ec;this[_0x3ef124(0x1ce)](this['_univerInstanceService'][_0x3ef124(0x248)][_0x3ef124(0x284)]((0x0,rxjs[_0x3ef124(0x2af)])(()=>{const _0x27a55c=_0x3ef124,_0x2b70b1=this['_univerInstanceService'][_0x27a55c(0x36a)]();if(_0x2b70b1)return this[_0x27a55c(0x1b3)][_0x27a55c(0x2a8)](_0x2b70b1[_0x27a55c(0x394)]());return(0x0,rxjs['of'])(null);}),(0x0,rxjs[_0x3ef124(0x2af)])(_0x15d7dd=>{const _0x23fafc=_0x3ef124;if(_0x15d7dd)return _0x15d7dd[_0x23fafc(0x402)];return(0x0,rxjs['of'])(_univerjs_pro_collaboration_client['CollaborationStatus'][_0x23fafc(0x2ac)]);}))[_0x3ef124(0x297)](_0x321bc6=>{this['_status$']['next'](_0x321bc6);}));}[_0x25d1ec(0x244)](){const _0x4676e6=_0x25d1ec;this[_0x4676e6(0x1ce)](this[_0x4676e6(0x27d)][_0x4676e6(0x1ac)](_univerjs_ui[_0x4676e6(0x324)][_0x4676e6(0x410)],()=>(0x0,_univerjs_ui[_0x4676e6(0x371)])(passProps({'status$':this['_status$'][_0x4676e6(0x378)]()}),this[_0x4676e6(0x326)])));}};DesktopCollaborationStatusDisplayController=__decorate([__decorateParam(0x0,_univerjs_core[_0x25d1ec(0x1f1)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_core['Injector'])),__decorateParam(0x2,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_pro_collaboration_client[_0x25d1ec(0x237)])),__decorateParam(0x3,_univerjs_ui['IUIPartsService'])],DesktopCollaborationStatusDisplayController);function passProps(_0x410520){const {status$:_0x52bbe5}=_0x410520;return function _0x26022b(){const _0x3ee579=_0x1f64;return(0x0,react_jsx_runtime[_0x3ee579(0x265)])(CollaborationStatusDisplay,{'status$':_0x52bbe5});};}const IURLService=(0x0,_univerjs_core[_0x25d1ec(0x34d)])('uni.network.url-service');let CollaborationDataLoaderController=class CollaborationDataLoaderController extends _univerjs_core[_0x25d1ec(0x2e3)]{constructor(_0x2a2e74,_0x2848e0,_0x2353df,_0x3d3b5b,_0x127b53){const _0x57d7a8=_0x25d1ec;super(),this['_urlService']=_0x2a2e74,this[_0x57d7a8(0x305)]=_0x2848e0,this[_0x57d7a8(0x418)]=_0x2353df,this[_0x57d7a8(0x352)]=_0x3d3b5b;if(_0x127b53)_0x127b53===null||_0x127b53===void 0x0||_0x127b53[_0x57d7a8(0x2db)]()[_0x57d7a8(0x3a9)](()=>this[_0x57d7a8(0x1e7)]());else this[_0x57d7a8(0x305)][_0x57d7a8(0x26d)](_0x57d7a8(0x3f9),_0x57d7a8(0x2e5)),this[_0x57d7a8(0x1e7)]();}async[_0x25d1ec(0x1e7)](){const _0x4454b4=_0x25d1ec,_0x2dfe1e=this['_urlService'][_0x4454b4(0x2b3)](_0x4454b4(0x1f4)),_0xec815=this['_urlService'][_0x4454b4(0x2b3)](_0x4454b4(0x3f1)),_0x465599=this['_urlService'][_0x4454b4(0x2b3)](_0x4454b4(0x25e));if(!_0x2dfe1e||!_0xec815){this[_0x4454b4(0x305)][_0x4454b4(0x26d)]('[CollaborationDataLoaderController]',_0x4454b4(0x30a));return;}const _0x22e921=await this['_dataLoaderService']['loadUnit'](_0x2dfe1e,Number(_0xec815),_0x465599);if(_0x22e921&&_0x22e921 instanceof _univerjs_core[_0x4454b4(0x1cf)])this[_0x4454b4(0x38d)](_0x22e921);}async[_0x25d1ec(0x38d)](_0x4ce6c1){const _0x302804=_0x25d1ec;await this[_0x302804(0x2cc)](_0x4ce6c1),_0x4ce6c1[_0x302804(0x43d)][_0x302804(0x284)]((0x0,rxjs['takeUntil'])(this[_0x302804(0x348)]))['subscribe'](_0x5ac5da=>{const _0x54dd18=_0x302804;if(_0x5ac5da)this[_0x54dd18(0x222)](_0x5ac5da);}),this[_0x302804(0x2a2)][_0x302804(0x32d)]['pipe']((0x0,rxjs[_0x302804(0x2d7)])(this[_0x302804(0x348)]))[_0x302804(0x297)](()=>this[_0x302804(0x2cc)](_0x4ce6c1));}['_updateURLWithCurrentState'](_0x2ae68c,_0x1dc1a6=![]){const _0x2dbc7f=_0x25d1ec,_0x3748b1=this[_0x2dbc7f(0x2a2)][_0x2dbc7f(0x2b3)](_0x2dbc7f(0x25e));if(_0x2ae68c['getSheetId']()!==_0x3748b1)this[_0x2dbc7f(0x2a2)]['setParam'](_0x2dbc7f(0x25e),_0x2ae68c[_0x2dbc7f(0x317)](),_0x1dc1a6);}async[_0x25d1ec(0x2cc)](_0x6feb54){const _0x52fe93=_0x25d1ec;var _0x328d7b;const _0x408996=this['_urlService']['getParam'](_0x52fe93(0x25e));if(!_0x408996||!_0x6feb54[_0x52fe93(0x1a7)](_0x408996)){const _0x3afe10=_0x6feb54[_0x52fe93(0x363)]()[0x0],_0x26686d=_0x6feb54['getSheetBySheetId'](_0x3afe10);if(!_0x26686d)return;this['_updateURLWithCurrentState'](_0x26686d,!![]),await this[_0x52fe93(0x418)][_0x52fe93(0x3bf)](_univerjs_sheets['SetWorksheetActivateCommand']['id'],{'unitId':_0x6feb54[_0x52fe93(0x394)](),'subUnitId':_0x3afe10});return;}if(((_0x328d7b=_0x6feb54[_0x52fe93(0x271)]())===null||_0x328d7b===void 0x0?void 0x0:_0x328d7b['getSheetId']())===_0x408996)return;await this[_0x52fe93(0x418)][_0x52fe93(0x3bf)](_univerjs_sheets['SetWorksheetActivateCommand']['id'],{'unitId':_0x6feb54['getUnitId'](),'subUnitId':_0x408996});}};CollaborationDataLoaderController=__decorate([__decorateParam(0x0,IURLService),__decorateParam(0x1,_univerjs_core[_0x25d1ec(0x392)]),__decorateParam(0x2,_univerjs_core[_0x25d1ec(0x36b)]),__decorateParam(0x3,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_pro_collaboration_client[_0x25d1ec(0x407)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x25d1ec(0x30c)])(_univerjs_rpc[_0x25d1ec(0x1cd)]))],CollaborationDataLoaderController);var name=_0x25d1ec(0x1c2),version=_0x25d1ec(0x25a);let ImagePasteController=class ImagePasteController extends _univerjs_core[_0x25d1ec(0x2e3)]{constructor(_0x3ac22c,_0xaa640e){const _0x4ab96b=_0x25d1ec;super(),this[_0x4ab96b(0x420)]=_0x3ac22c,this[_0x4ab96b(0x242)]=_0xaa640e,this['_init']();}[_0x25d1ec(0x1e7)](){const _0x453dbf=_0x25d1ec,_0x5125b9=this;this['disposeWithMe'](this['_docClipboardService'][_0x453dbf(0x41a)]({'onBeforePasteImage':async _0x2798f5=>{const _0x575fd1=_0x453dbf,_0x49455a=await _0x5125b9[_0x575fd1(0x242)][_0x575fd1(0x3dc)](_0x2798f5);if(_0x49455a)return{'source':_0x49455a[_0x575fd1(0x2ea)],'imageSourceType':_0x49455a['imageSourceType']};return null;}}));}};ImagePasteController=__decorate([__decorateParam(0x0,_univerjs_docs_ui['IDocClipboardService']),__decorateParam(0x1,_univerjs_drawing[_0x25d1ec(0x438)])],ImagePasteController);const BACKGROUND_TOKENS=[_0x25d1ec(0x341),_0x25d1ec(0x3a5),_0x25d1ec(0x314),_0x25d1ec(0x2a3),_0x25d1ec(0x43a),_0x25d1ec(0x2ab)];var ColorAssignService=class extends _univerjs_core[_0x25d1ec(0x3dd)]{constructor(..._0x480f95){const _0x113a58=_0x25d1ec;super(..._0x480f95),_defineProperty(this,_0x113a58(0x282),new Map()),_defineProperty(this,'_colorIndex',0x0);}[_0x25d1ec(0x3c9)](_0x283180){const _0x32f04=_0x25d1ec;if(this['_assignedColors'][_0x32f04(0x1b7)](_0x283180))return this['_assignedColors'][_0x32f04(0x291)](_0x283180);const _0x150740=BACKGROUND_TOKENS[this[_0x32f04(0x20c)]];return this['_colorIndex']=(this[_0x32f04(0x20c)]+0x1)%BACKGROUND_TOKENS[_0x32f04(0x3cb)],this[_0x32f04(0x282)]['set'](_0x283180,_0x150740),_0x150740;}};function serializeDocTextRanges(_0x44b987){const _0x15db5c=_0x25d1ec;let _0x1eec8e='';for(const _0x1407fd of _0x44b987){const {startOffset:_0x17618d,endOffset:_0x4dc74a,isActive:_0x4f193c,rangeType:_0x5e670d,segmentId:_0x3dd98b,segmentPage:_0x178809}=_0x1407fd;if(_0x1eec8e[_0x15db5c(0x3cb)])_0x1eec8e+=',';_0x1eec8e+=_0x17618d+':'+_0x4dc74a+':'+(_0x4f193c?'1':'0')+':'+_0x5e670d+':'+_0x3dd98b+':'+_0x178809;}return _0x1eec8e;}function deserializeDocTextRanges(_0x52c541){const _0x125d83=_0x25d1ec,_0x1d1cf6=_0x52c541['split'](','),_0x599df2=[];for(const _0x374b33 of _0x1d1cf6){const [_0x28d426,_0x2efe1e,_0x3ef179,_0x812617,_0x4ae209,_0x460e37]=_0x374b33[_0x125d83(0x24b)](':');_0x599df2[_0x125d83(0x267)]({'startOffset':Number(_0x28d426),'endOffset':Number(_0x2efe1e),'collapsed':_0x28d426===_0x2efe1e,'isActive':_0x3ef179==='1','rangeType':_0x812617===_univerjs_core[_0x125d83(0x210)]['TEXT']?_univerjs_core[_0x125d83(0x210)][_0x125d83(0x207)]:_univerjs_core[_0x125d83(0x210)]['RECT'],'segmentId':typeof _0x4ae209===_0x125d83(0x266)?String(_0x4ae209):'','segmentPage':Number(_0x460e37!==null&&_0x460e37!==void 0x0?_0x460e37:-0x1)});}if(!_0x599df2[_0x125d83(0x2c6)](_0x1d6c06=>_0x1d6c06[_0x125d83(0x2f8)]))_0x599df2[0x0]['isActive']=!![];return _0x599df2;}var DocSyncEditingCollabCursorService=class extends _univerjs_core['RxDisposable']{constructor(..._0x1465f8){const _0x3c5feb=_0x25d1ec;super(..._0x1465f8),_defineProperty(this,_0x3c5feb(0x1df),new rxjs[(_0x3c5feb(0x2c3))](null)),_defineProperty(this,_0x3c5feb(0x3a3),this[_0x3c5feb(0x1df)][_0x3c5feb(0x378)]());}[_0x25d1ec(0x3e4)](_0x552a15){const _0x5cd660=_0x25d1ec,{unitID:_0x16cab9,memberID:_0x2ff599,textRanges:_0x969e74}=_0x552a15,_0x587fda=serializeDocTextRanges(_0x969e74);if(_0x587fda==='')return;const _0x2540dc={'unitID':_0x16cab9,'memberID':_0x2ff599,'selection':_0x587fda};this['_collabCursorState$'][_0x5cd660(0x312)](_0x2540dc);}};const DEBOUNCE_TIME$1=0x12c,SHARE_LOCAL_DEBOUNCE_TIME$1=0x64;let DocCollabCursorEntity=class DocCollabCursorEntity extends _univerjs_core[_0x25d1ec(0x2e3)]{get['cursorInfo'](){const _0xdf018=_0x25d1ec;return this[_0xdf018(0x3cc)]['getValue']();}get[_0x25d1ec(0x1f2)](){const _0x340f50=_0x25d1ec;return this[_0x340f50(0x381)][_0x340f50(0x3a7)]();}constructor(_0x54cfe5,_0x174c27,_0x4fc34c,_0x14cc29,_0x4c93ec,_0x4a5c5d,_0x2cf377,_0x1f9d18,_0x204772){const _0x958004=_0x25d1ec;super(),this[_0x958004(0x417)]=_0x54cfe5,this['_session']=_0x174c27,this[_0x958004(0x326)]=_0x4fc34c,this[_0x958004(0x21d)]=_0x14cc29,this['_memberService']=_0x4c93ec,this['_syncEditingCollabCursorService']=_0x4a5c5d,this['_transformService']=_0x2cf377,this[_0x958004(0x3f6)]=_0x1f9d18,this['_commandService']=_0x204772,_defineProperty(this,_0x958004(0x302),![]),_defineProperty(this,_0x958004(0x1e7),![]),_defineProperty(this,'_cursorInfo$',new rxjs[(_0x958004(0x2c3))](new Map())),_defineProperty(this,_0x958004(0x434),this[_0x958004(0x3cc)][_0x958004(0x378)]()),_defineProperty(this,'_roomMembers$',new rxjs['BehaviorSubject']([])),_defineProperty(this,_0x958004(0x229),this[_0x958004(0x381)]['pipe']((0x0,rxjs['debounceTime'])(DEBOUNCE_TIME$1))),_defineProperty(this,_0x958004(0x1da),(0x0,_univerjs_core[_0x958004(0x3fc)])(_0x2aa15=>{const _0x3c3741=_0x958004,_0x14cee1={'eventID':_univerjs_pro_collaboration[_0x3c3741(0x390)][_0x3c3741(0x359)],'data':{'unitID':this[_0x3c3741(0x417)],'memberID':this[_0x3c3741(0x37f)][_0x3c3741(0x432)](),'selection':serializeDocTextRanges(_0x2aa15)}};this['_session'][_0x3c3741(0x3c5)](_0x14cee1,this[_0x3c3741(0x417)]);},SHARE_LOCAL_DEBOUNCE_TIME$1));}[_0x25d1ec(0x22d)](){const _0x4e7e3b=_0x25d1ec;super[_0x4e7e3b(0x22d)](),this[_0x4e7e3b(0x3cc)][_0x4e7e3b(0x312)](new Map()),this[_0x4e7e3b(0x3cc)][_0x4e7e3b(0x3a4)](),this['_roomMembers$'][_0x4e7e3b(0x312)]([]),this['_roomMembers$']['complete']();}['init'](){const _0x120b9d=_0x25d1ec;if(this[_0x120b9d(0x1e7)])return;this[_0x120b9d(0x1e7)]=!![],this[_0x120b9d(0x37f)][_0x120b9d(0x263)]['pipe']((0x0,rxjs[_0x120b9d(0x2d7)])(this[_0x120b9d(0x348)]))[_0x120b9d(0x297)](_0x24efca=>{const _0x2516c1=_0x120b9d;if(_0x24efca===_univerjs_pro_collaboration_client[_0x2516c1(0x1d6)][_0x2516c1(0x27c)])this['_toggleOnline']();else this[_0x2516c1(0x3b2)]();}),this[_0x120b9d(0x37f)]['event$'][_0x120b9d(0x284)]((0x0,rxjs[_0x120b9d(0x2d7)])(this[_0x120b9d(0x348)]))[_0x120b9d(0x297)](_0x4722c8=>{const _0xa59463=_0x120b9d,_0x309659=_0x4722c8[_0xa59463(0x2a4)];if(_0x309659===_univerjs_pro_collaboration[_0xa59463(0x390)][_0xa59463(0x359)])this[_0xa59463(0x219)](_0x4722c8);if(_0x309659===_univerjs_pro_collaboration['CollaborationEvent']['USERS_LEAVE'])this[_0xa59463(0x2f3)](_0x4722c8);}),this['disposeWithMe'](this[_0x120b9d(0x418)][_0x120b9d(0x2be)](_0x2ab99c=>{const _0x30ae08=_0x120b9d,_0x4c4649=_0x2ab99c[_0x30ae08(0x2d3)];if(_0x4c4649==null)return;if(this[_0x30ae08(0x302)]&&_0x2ab99c['id']===_univerjs_docs[_0x30ae08(0x1f8)]['id']&&_0x4c4649[_0x30ae08(0x306)]===this[_0x30ae08(0x417)]&&_0x4c4649['isEditing']===![]&&_0x4c4649[_0x30ae08(0x1db)][_0x30ae08(0x3cb)]>0x0)this[_0x30ae08(0x1da)](_0x4c4649[_0x30ae08(0x1db)]);})),this[_0x120b9d(0x337)][_0x120b9d(0x3a3)][_0x120b9d(0x284)]((0x0,rxjs[_0x120b9d(0x2d7)])(this[_0x120b9d(0x348)]))['subscribe'](_0x4fa167=>{const _0x56264a=_0x120b9d;if((_0x4fa167===null||_0x4fa167===void 0x0?void 0x0:_0x4fa167[_0x56264a(0x417)])!==this[_0x56264a(0x417)])return;const _0x4a7d63={'eventID':_univerjs_pro_collaboration[_0x56264a(0x390)][_0x56264a(0x359)],'data':_0x4fa167};this[_0x56264a(0x219)](_0x4a7d63);}),this[_0x120b9d(0x1ce)](this[_0x120b9d(0x418)]['onCommandExecuted'](_0x3a7e4f=>{const _0x2f93cb=_0x120b9d;if(_0x3a7e4f['params']==null)return;const _0x3d80fb=_0x3a7e4f['params'];if(_0x3a7e4f['id']!==_univerjs_docs[_0x2f93cb(0x343)]['id']||_0x3d80fb['unitId']!==this['unitID'])return;const _0x4ca0a6={'id':_0x2f93cb(0x2f2),'params':_0x3d80fb},_0x3f9a43=this[_0x2f93cb(0x34c)];for(const [_0x3457f1,_0x21189d]of _0x3f9a43){const _0x2fcc94={'id':_0x2f93cb(0x2f2),'params':{'unitId':this[_0x2f93cb(0x417)],'actions':null,'textRanges':_0x21189d[_0x2f93cb(0x1db)]}},_0x1d48d=this['_transformService']['transformMutation'](_0x4ca0a6,_0x2fcc94,![]);if((0x0,_univerjs_pro_collaboration[_0x2f93cb(0x3d9)])(_0x1d48d))throw _0x1d48d[_0x2f93cb(0x408)];_0x3f9a43[_0x2f93cb(0x274)](_0x3457f1,{..._0x21189d,'ranges':_0x1d48d[_0x2f93cb(0x256)][_0x2f93cb(0x2d3)][_0x2f93cb(0x2bc)]});}queueMicrotask(()=>{const _0x836d6a=_0x2f93cb;this[_0x836d6a(0x3cc)][_0x836d6a(0x312)](_0x3f9a43);});}));}['_onCursorUpdate'](_0x16fc6d){const _0x2a8431=_0x25d1ec;var _0x299664,_0x8e58e4;const {memberID:_0x3e76d9,selection:_0x20c02c}=_0x16fc6d[_0x2a8431(0x26f)],_0x5430f0=deserializeDocTextRanges(_0x20c02c),_0x464e34=(_0x299664=(_0x8e58e4=this['_memberService'][_0x2a8431(0x1c8)](this[_0x2a8431(0x417)],_0x3e76d9))===null||_0x8e58e4===void 0x0?void 0x0:_0x8e58e4[_0x2a8431(0x33d)])!==null&&_0x299664!==void 0x0?_0x299664:'Unknown\x20user',_0x2303dc={'color':this[_0x2a8431(0x21d)][_0x2a8431(0x3c9)](_0x3e76d9),'name':_0x464e34,'ranges':_0x5430f0},_0x88cdf0=this[_0x2a8431(0x34c)];_0x88cdf0[_0x2a8431(0x274)](_0x3e76d9,_0x2303dc),this['_cursorInfo$'][_0x2a8431(0x312)](_0x88cdf0);}[_0x25d1ec(0x2f3)](_0x233d6a){const _0x53a68a=_0x25d1ec,{memberID:_0x1416c0}=_0x233d6a[_0x53a68a(0x26f)],_0x4fc5d=this[_0x53a68a(0x34c)];_0x4fc5d[_0x53a68a(0x2de)](_0x1416c0),this[_0x53a68a(0x3cc)]['next'](_0x4fc5d);}[_0x25d1ec(0x2ca)](){const _0x979dc7=_0x25d1ec;var _0xdf8ff9;this['_online']=!![];if(((_0xdf8ff9=this[_0x979dc7(0x3f6)][_0x979dc7(0x36a)]())===null||_0xdf8ff9===void 0x0?void 0x0:_0xdf8ff9[_0x979dc7(0x394)]())!==this[_0x979dc7(0x417)])return;const _0xb592a1=this[_0x979dc7(0x326)]['get'](_univerjs_docs[_0x979dc7(0x406)])[_0x979dc7(0x1ca)]();if(Array[_0x979dc7(0x278)](_0xb592a1)&&_0xb592a1[_0x979dc7(0x3cb)]>0x0)this[_0x979dc7(0x1da)](_0xb592a1);}[_0x25d1ec(0x3b2)](){const _0xa6d897=_0x25d1ec;this[_0xa6d897(0x302)]=![];}};DocCollabCursorEntity=__decorate([__decorateParam(0x2,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_core[_0x25d1ec(0x1a6)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x25d1ec(0x353)])(ColorAssignService)),__decorateParam(0x4,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_pro_collaboration_client[_0x25d1ec(0x2d2)])),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(DocSyncEditingCollabCursorService)),__decorateParam(0x6,_univerjs_pro_collaboration[_0x25d1ec(0x1ba)]),__decorateParam(0x7,_univerjs_core[_0x25d1ec(0x1f1)]),__decorateParam(0x8,_univerjs_core['ICommandService'])],DocCollabCursorEntity);const DEBOUNCE_TIME=0x12c,SHARE_LOCAL_DEBOUNCE_TIME=0x64,createNextTick=()=>{let _0x48bdab=[],_0x32893f=![];return _0x55fe0=>{const _0x2c0fb8=_0x1f64;_0x48bdab[_0x2c0fb8(0x267)](_0x55fe0),!_0x32893f&&(_0x32893f=!![],setTimeout(()=>{const _0x538ee4=_0x2c0fb8;_0x48bdab[_0x538ee4(0x2d0)](_0x2e7195=>_0x2e7195()),_0x48bdab=[],_0x32893f=![];}));};};let SheetCollabCursorEntity=class SheetCollabCursorEntity extends _univerjs_core['RxDisposable']{get[_0x25d1ec(0x34c)](){const _0x494f0a=_0x25d1ec;return this[_0x494f0a(0x3cc)]['getValue']();}get[_0x25d1ec(0x1f2)](){const _0x556f0e=_0x25d1ec;return this[_0x556f0e(0x381)]['getValue']();}constructor(_0x9e3bb5,_0x363b12,_0x279b8a,_0x58cd2c,_0x5b305e,_0x384ebb,_0x52cd52,_0x56a5f8){const _0x383a38=_0x25d1ec;super(),this['unitID']=_0x9e3bb5,this['_session']=_0x363b12,this['_injector']=_0x279b8a,this[_0x383a38(0x21d)]=_0x58cd2c,this[_0x383a38(0x277)]=_0x5b305e,this[_0x383a38(0x3f6)]=_0x384ebb,this['_commandService']=_0x52cd52,this[_0x383a38(0x289)]=_0x56a5f8,_defineProperty(this,'_online',![]),_defineProperty(this,_0x383a38(0x1e7),![]),_defineProperty(this,_0x383a38(0x3cc),new rxjs[(_0x383a38(0x2c3))](new Map())),_defineProperty(this,_0x383a38(0x434),this[_0x383a38(0x3cc)][_0x383a38(0x378)]()),_defineProperty(this,_0x383a38(0x381),new rxjs[(_0x383a38(0x2c3))]([])),_defineProperty(this,'roomMembers$',this[_0x383a38(0x381)]['pipe']((0x0,rxjs[_0x383a38(0x1d0)])(DEBOUNCE_TIME))),_defineProperty(this,_0x383a38(0x1da),(0x0,_univerjs_core[_0x383a38(0x3fc)])((_0xd0ca62,_0x449217)=>{const _0x5cda9e=_0x383a38,_0x4f3265={'eventID':_univerjs_pro_collaboration[_0x5cda9e(0x390)][_0x5cda9e(0x359)],'data':{'unitID':this[_0x5cda9e(0x417)],'memberID':this[_0x5cda9e(0x37f)][_0x5cda9e(0x432)](),'selection':(0x0,_univerjs_engine_formula['serializeRangeWithSheet'])(_0xd0ca62,_0x449217[_0x5cda9e(0x2cf)])}};this['_session'][_0x5cda9e(0x3c5)](_0x4f3265,this['unitID']);},SHARE_LOCAL_DEBOUNCE_TIME));}['dispose'](){const _0x5957a4=_0x25d1ec;super[_0x5957a4(0x22d)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x5957a4(0x3a4)](),this['_roomMembers$'][_0x5957a4(0x312)]([]),this[_0x5957a4(0x381)]['complete']();}[_0x25d1ec(0x3ca)](){const _0x233a1e=_0x25d1ec;if(this[_0x233a1e(0x1e7)])return;this['_init']=!![],this[_0x233a1e(0x37f)][_0x233a1e(0x263)][_0x233a1e(0x284)]((0x0,rxjs[_0x233a1e(0x2d7)])(this[_0x233a1e(0x348)]))['subscribe'](_0x493a25=>{const _0x42aa9e=_0x233a1e;if(_0x493a25===_univerjs_pro_collaboration_client[_0x42aa9e(0x1d6)][_0x42aa9e(0x27c)])this[_0x42aa9e(0x2ca)]();else this['_toggleOffline']();}),this['_session'][_0x233a1e(0x22b)][_0x233a1e(0x284)]((0x0,rxjs[_0x233a1e(0x2d7)])(this[_0x233a1e(0x348)]))[_0x233a1e(0x297)](_0x5122f5=>{const _0x3e3760=_0x233a1e,_0x56b8c2=_0x5122f5[_0x3e3760(0x2a4)];if(_0x56b8c2===_univerjs_pro_collaboration['CollaborationEvent']['UPDATE_CURSOR'])this[_0x3e3760(0x219)](_0x5122f5);if(_0x56b8c2===_univerjs_pro_collaboration[_0x3e3760(0x390)][_0x3e3760(0x2cb)])this['_onCursorDelete'](_0x5122f5);}),this[_0x233a1e(0x3ec)](),this['disposeWithMe'](this['_commandService'][_0x233a1e(0x2be)](_0x45509c=>{const _0x261f7c=_0x233a1e;if(this[_0x261f7c(0x302)]&&_0x45509c['id']===_univerjs_sheets['SetSelectionsOperation']['id']&&_0x45509c[_0x261f7c(0x2d3)][_0x261f7c(0x306)]===this['unitID']){const _0x1212b4=_0x45509c[_0x261f7c(0x2d3)];this[_0x261f7c(0x1da)](_0x1212b4[_0x261f7c(0x384)],_0x1212b4['selections'][0x0]);}}));}[_0x25d1ec(0x219)](_0x45d1de){const _0x2933f2=_0x25d1ec;var _0x18acc3,_0x28c44a;const {memberID:_0x3593cd,selection:_0x28516d}=_0x45d1de[_0x2933f2(0x26f)],{sheetName:_0xfaa8dc,range:_0x3b400f}=(0x0,_univerjs_engine_formula[_0x2933f2(0x276)])(_0x28516d),_0x4e71d4={'name':(_0x18acc3=(_0x28c44a=this[_0x2933f2(0x277)]['getMember'](this[_0x2933f2(0x417)],_0x3593cd))===null||_0x28c44a===void 0x0?void 0x0:_0x28c44a[_0x2933f2(0x33d)])!==null&&_0x18acc3!==void 0x0?_0x18acc3:'Unknown\x20user','range':this[_0x2933f2(0x28e)](_0xfaa8dc,_0x3b400f),'sheetID':_0xfaa8dc,'color':this[_0x2933f2(0x21d)]['assignAColorForMemberID'](_0x3593cd),'selection':_0x28516d},_0x40c645=this[_0x2933f2(0x34c)];_0x40c645[_0x2933f2(0x274)](_0x3593cd,_0x4e71d4),this[_0x2933f2(0x3cc)]['next'](_0x40c645);}[_0x25d1ec(0x2f3)](_0x3c1293){const _0x5ec2de=_0x25d1ec,{memberID:_0x58e905}=_0x3c1293[_0x5ec2de(0x26f)],_0x21a122=this[_0x5ec2de(0x34c)];_0x21a122[_0x5ec2de(0x2de)](_0x58e905),this[_0x5ec2de(0x3cc)][_0x5ec2de(0x312)](_0x21a122);}[_0x25d1ec(0x28e)](_0x3f63e0,_0x2c3cdb){const _0x167440=_0x25d1ec;var _0x17c4f0;const _0x1a2efd=(_0x17c4f0=this[_0x167440(0x3f6)]['getUniverSheetInstance'](this['unitID']))===null||_0x17c4f0===void 0x0||(_0x17c4f0=_0x17c4f0[_0x167440(0x1a7)](_0x3f63e0))===null||_0x17c4f0===void 0x0?void 0x0:_0x17c4f0[_0x167440(0x399)]();return(_0x1a2efd===null||_0x1a2efd===void 0x0?void 0x0:_0x1a2efd['find'](_0x27a865=>_univerjs_core[_0x167440(0x412)][_0x167440(0x1e6)](_0x27a865,_0x2c3cdb)))||_0x2c3cdb;}[_0x25d1ec(0x3ec)](){const _0x1bb12e=_0x25d1ec,_0x44c2ed=new _univerjs_core['DisposableCollection'](),_0x5edf1a=createNextTick(),_0x5ca706=()=>{const _0x2fabc2=_0x1f64;_0x44c2ed['dispose']();const _0x5299fe=(_0x3ea0e5,_0xf40e37,_0x2b5951,_0x407938)=>{const _0x5d0900=_0x1f64;let _0x43d189=[];switch(_0x3ea0e5['id']){case _univerjs_sheets[_0x5d0900(0x22a)][_0x5d0900(0x3ae)]:_0x43d189=(0x0,_univerjs_sheets['handleDeleteRangeMoveLeft'])(_0x3ea0e5,_0x407938);break;case _univerjs_sheets[_0x5d0900(0x22a)][_0x5d0900(0x440)]:_0x43d189=(0x0,_univerjs_sheets[_0x5d0900(0x28b)])(_0x3ea0e5,_0x407938);break;case _univerjs_sheets[_0x5d0900(0x22a)][_0x5d0900(0x34a)]:_0x43d189=(0x0,_univerjs_sheets[_0x5d0900(0x25b)])(_0x3ea0e5,_0x407938);break;case _univerjs_sheets[_0x5d0900(0x22a)][_0x5d0900(0x2d1)]:_0x43d189=(0x0,_univerjs_sheets[_0x5d0900(0x2c8)])(_0x3ea0e5,_0x407938);break;case _univerjs_sheets[_0x5d0900(0x22a)][_0x5d0900(0x1aa)]:_0x43d189=(0x0,_univerjs_sheets[_0x5d0900(0x205)])(_0x3ea0e5,_0x407938);break;case _univerjs_sheets[_0x5d0900(0x22a)][_0x5d0900(0x2ad)]:_0x43d189=(0x0,_univerjs_sheets[_0x5d0900(0x1a5)])(_0x3ea0e5,_0x407938);break;case _univerjs_sheets[_0x5d0900(0x22a)][_0x5d0900(0x202)]:_0x43d189=(0x0,_univerjs_sheets[_0x5d0900(0x3d6)])(_0x3ea0e5,_0x407938);break;case _univerjs_sheets[_0x5d0900(0x22a)]['RemoveColCommandId']:_0x43d189=(0x0,_univerjs_sheets[_0x5d0900(0x3e9)])(_0x3ea0e5,_0x407938);break;case _univerjs_sheets['EffectRefRangId']['RemoveRowCommandId']:_0x43d189=(0x0,_univerjs_sheets[_0x5d0900(0x1c5)])(_0x3ea0e5,_0x407938);break;}const _0x409e02=(0x0,_univerjs_sheets[_0x5d0900(0x1fc)])(_0x43d189,_0x407938),_0x3ae75a=this[_0x5d0900(0x34c)][_0x5d0900(0x291)](_0xf40e37);if(_0x3ae75a&&_0x409e02){const _0x4afcb0={..._0x3ae75a,'range':_0x409e02};this[_0x5d0900(0x34c)][_0x5d0900(0x274)](_0xf40e37,_0x4afcb0),_0x5edf1a(()=>{const _0x58c7cf=_0x5d0900,_0x3cd469=this[_0x58c7cf(0x289)][_0x58c7cf(0x24a)](_0x409e02,_0xb152d4=>{return _0x3cd469['dispose'](),_0x5299fe(_0xb152d4,_0xf40e37,_0x2b5951,_0x409e02);});_0x44c2ed['add'](_0x3cd469);});}return{'redos':[],'undos':[]};};this[_0x2fabc2(0x34c)][_0x2fabc2(0x2d0)]((_0x30039b,_0x1cd25f)=>{const _0x4fb8c3=_0x2fabc2,{range:_0x19a99c,sheetID:_0x9ffc4c}=_0x30039b,_0x4538f2=this[_0x4fb8c3(0x289)][_0x4fb8c3(0x24a)](_0x19a99c,_0x1e1306=>{const _0x2e803c=_0x4fb8c3;return _0x4538f2[_0x2e803c(0x22d)](),_0x5299fe(_0x1e1306,_0x1cd25f,_0x9ffc4c,_0x19a99c);});_0x44c2ed[_0x4fb8c3(0x1a4)](_0x4538f2);});};this[_0x1bb12e(0x1ce)]((0x0,_univerjs_core['toDisposable'])(this['_cursorInfo$'][_0x1bb12e(0x297)](()=>{_0x5ca706();})));}[_0x25d1ec(0x2ca)](){const _0x378593=_0x25d1ec;var _0xce4028,_0x378837;this[_0x378593(0x302)]=!![];if(((_0xce4028=this[_0x378593(0x3f6)][_0x378593(0x36a)]())===null||_0xce4028===void 0x0?void 0x0:_0xce4028[_0x378593(0x394)]())!==this[_0x378593(0x417)])return;const _0x1d6d69=(_0x378837=this[_0x378593(0x326)][_0x378593(0x291)](_univerjs_sheets[_0x378593(0x262)])[_0x378593(0x3d0)]())===null||_0x378837===void 0x0?void 0x0:_0x378837[0x0],_0x61c03d=this['_univerInstanceService'][_0x378593(0x1b9)](_univerjs_core['UniverInstanceType'][_0x378593(0x227)])[_0x378593(0x271)]();if(_0x1d6d69&&_0x61c03d)this[_0x378593(0x1da)](_0x61c03d[_0x378593(0x317)](),_0x1d6d69);}[_0x25d1ec(0x3b2)](){const _0x232855=_0x25d1ec;this[_0x232855(0x302)]=![];}};SheetCollabCursorEntity=__decorate([__decorateParam(0x2,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_core[_0x25d1ec(0x1a6)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x25d1ec(0x353)])(ColorAssignService)),__decorateParam(0x4,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_pro_collaboration_client[_0x25d1ec(0x2d2)])),__decorateParam(0x5,_univerjs_core[_0x25d1ec(0x1f1)]),__decorateParam(0x6,_univerjs_core[_0x25d1ec(0x36b)]),__decorateParam(0x7,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_sheets[_0x25d1ec(0x35c)]))],SheetCollabCursorEntity);let CollabCursorController=class CollabCursorController extends _univerjs_core[_0x25d1ec(0x2e3)]{constructor(_0x232915,_0x345ccc,_0x132531){const _0x110550=_0x25d1ec;super(),this[_0x110550(0x3f6)]=_0x232915,this[_0x110550(0x326)]=_0x345ccc,this['_collabSessionService']=_0x132531,_defineProperty(this,_0x110550(0x22e),new Map()),_defineProperty(this,'_entityInit$',new rxjs[(_0x110550(0x1b5))]()),this[_0x110550(0x1e7)]();}[_0x25d1ec(0x22d)](){const _0xfe2423=_0x25d1ec;super[_0xfe2423(0x22d)](),this[_0xfe2423(0x20d)][_0xfe2423(0x3a4)](),this[_0xfe2423(0x22e)]['forEach'](_0x42d93e=>_0x42d93e[_0xfe2423(0x22d)]());}['getCollabCursors$'](_0x56b9c7){const _0x46047b=_0x25d1ec;if(this['_entities'][_0x46047b(0x1b7)](_0x56b9c7))return this[_0x46047b(0x22e)][_0x46047b(0x291)](_0x56b9c7)['cursorInfo$'];return this[_0x46047b(0x20d)][_0x46047b(0x284)]((0x0,rxjs[_0x46047b(0x2f9)])(_0x201a51=>_0x201a51[_0x46047b(0x417)]===_0x56b9c7),(0x0,rxjs[_0x46047b(0x2af)])(_0x4c7fba=>_0x4c7fba[_0x46047b(0x434)]));}['_init'](){const _0x5835d7=_0x25d1ec;this[_0x5835d7(0x3f6)][_0x5835d7(0x331)](_univerjs_core[_0x5835d7(0x28a)][_0x5835d7(0x227)])[_0x5835d7(0x284)]((0x0,rxjs[_0x5835d7(0x2d7)])(this[_0x5835d7(0x348)]))[_0x5835d7(0x297)](async _0x11684a=>{const _0x51a9ee=_0x5835d7,_0xa9b1d9=_0x11684a['unit'][_0x51a9ee(0x394)](),_0x580b19=await this[_0x51a9ee(0x24c)](_0xa9b1d9);this[_0x51a9ee(0x20d)]['next'](_0x580b19),this['_entities']['set'](_0xa9b1d9,_0x580b19);}),this[_0x5835d7(0x3f6)][_0x5835d7(0x331)](_univerjs_core[_0x5835d7(0x28a)]['UNIVER_DOC'])[_0x5835d7(0x284)]((0x0,rxjs[_0x5835d7(0x2d7)])(this[_0x5835d7(0x348)]))[_0x5835d7(0x284)]((0x0,rxjs[_0x5835d7(0x2f9)])(_0x4bb8e3=>{const _0x301585=_0x5835d7;return!_0x4bb8e3[_0x301585(0x1f4)][_0x301585(0x394)]()['startsWith']('__');}))[_0x5835d7(0x297)](async _0x2ba0a0=>{const _0x32b701=_0x5835d7,{unit:_0x5eca66}=_0x2ba0a0,_0x546e78=_0x5eca66[_0x32b701(0x394)](),_0x23d311=await this[_0x32b701(0x226)](_0x546e78);this[_0x32b701(0x20d)][_0x32b701(0x312)](_0x23d311),this[_0x32b701(0x22e)][_0x32b701(0x274)](_0x546e78,_0x23d311);}),(0x0,rxjs[_0x5835d7(0x39c)])(this[_0x5835d7(0x3f6)][_0x5835d7(0x398)](_univerjs_core['UniverInstanceType'][_0x5835d7(0x1d1)]),this[_0x5835d7(0x3f6)][_0x5835d7(0x398)](_univerjs_core[_0x5835d7(0x28a)][_0x5835d7(0x227)]))[_0x5835d7(0x284)]((0x0,rxjs[_0x5835d7(0x2d7)])(this[_0x5835d7(0x348)]))[_0x5835d7(0x297)](_0xec9fd7=>{const _0x1edb13=_0x5835d7,_0x394640=_0xec9fd7['getUnitId'](),_0x317f88=this['_entities'][_0x1edb13(0x291)](_0x394640);_0x317f88&&(_0x317f88[_0x1edb13(0x22d)](),this['_entities'][_0x1edb13(0x2de)](_0x394640));});}async[_0x25d1ec(0x24c)](_0x54281f){const _0x73a0ad=_0x25d1ec,_0x3bfa6c=await this[_0x73a0ad(0x311)][_0x73a0ad(0x42c)](_0x54281f),_0x5b0c5c=this['_injector'][_0x73a0ad(0x43e)](SheetCollabCursorEntity,_0x54281f,_0x3bfa6c);return _0x5b0c5c[_0x73a0ad(0x3ca)](),_0x5b0c5c;}async[_0x25d1ec(0x226)](_0x413b1f){const _0x15c477=_0x25d1ec,_0x38e344=await this[_0x15c477(0x311)][_0x15c477(0x42c)](_0x413b1f),_0xf9dcc3=this[_0x15c477(0x326)][_0x15c477(0x43e)](DocCollabCursorEntity,_0x413b1f,_0x38e344);return _0xf9dcc3['init'](),_0xf9dcc3;}};CollabCursorController=__decorate([__decorateParam(0x0,_univerjs_core['IUniverInstanceService']),__decorateParam(0x1,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_core[_0x25d1ec(0x1a6)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_pro_collaboration_client[_0x25d1ec(0x42d)]))],CollabCursorController);const COLLAB_CURSOR_LABEL_HEIGHT=0x14,COLLAB_CURSOR_LABEL_MAX_WIDTH=0xc8,COLLAB_CURSOR_LABEL_TEXT_PADDING_LR=0x4,COLLAB_CURSOR_LABEL_TEXT_PADDING_TB=0x5;function drawBubble(_0x2b7f53,_0x355ad2){const _0xb79b3d=_0x25d1ec;var _0x1d1b13,_0x5b5083,_0x31c087;let {radius:_0xce1306,width:_0xb2b43a,height:_0x46b402}=_0x355ad2;_0xce1306=(_0x1d1b13=_0xce1306)!==null&&_0x1d1b13!==void 0x0?_0x1d1b13:0x0,_0xb2b43a=(_0x5b5083=_0xb2b43a)!==null&&_0x5b5083!==void 0x0?_0x5b5083:0x1e,_0x46b402=(_0x31c087=_0x46b402)!==null&&_0x31c087!==void 0x0?_0x31c087:0x1e;let _0x56fa75=0x0,_0x67244c=0x0,_0x5f1dab=0x0;_0x56fa75=_0x67244c=_0x5f1dab=Math[_0xb79b3d(0x1d3)](_0xce1306,_0xb2b43a/0x2,_0x46b402/0x2),_0x2b7f53[_0xb79b3d(0x1bf)](),_0x2b7f53[_0xb79b3d(0x38e)](_0x56fa75,0x0),_0x2b7f53['lineTo'](_0xb2b43a-_0x67244c,0x0),_0x2b7f53[_0xb79b3d(0x300)](_0xb2b43a-_0x67244c,_0x67244c,_0x67244c,Math['PI']*0x3/0x2,0x0,![]),_0x2b7f53[_0xb79b3d(0x31f)](_0xb2b43a,_0x46b402-_0x5f1dab),_0x2b7f53[_0xb79b3d(0x300)](_0xb2b43a-_0x5f1dab,_0x46b402-_0x5f1dab,_0x5f1dab,0x0,Math['PI']/0x2,![]),_0x2b7f53[_0xb79b3d(0x31f)](0x0,_0x46b402),_0x2b7f53[_0xb79b3d(0x31f)](0x0,_0x56fa75),_0x2b7f53[_0xb79b3d(0x300)](_0x56fa75,_0x56fa75,_0x56fa75,Math['PI'],Math['PI']*0x3/0x2,![]),_0x2b7f53['closePath']();if(_0x355ad2[_0xb79b3d(0x323)]){_0x2b7f53['save'](),_0x2b7f53[_0xb79b3d(0x2df)]=_0x355ad2[_0xb79b3d(0x323)];if(_0x355ad2[_0xb79b3d(0x23d)]===_0xb79b3d(0x25c))_0x2b7f53[_0xb79b3d(0x323)]('evenodd');else _0x2b7f53[_0xb79b3d(0x323)]();_0x2b7f53['restore']();}}var TextBubbleShape=class TextBubbleShape extends _univerjs_engine_render['Shape']{constructor(_0x1810f1,_0x5f4f96){const _0x3e4a63=_0x25d1ec;super(_0x1810f1,_0x5f4f96),_defineProperty(this,_0x3e4a63(0x23b),void 0x0),_defineProperty(this,_0x3e4a63(0x203),void 0x0),this[_0x3e4a63(0x23b)]=_0x5f4f96===null||_0x5f4f96===void 0x0?void 0x0:_0x5f4f96[_0x3e4a63(0x23b)],this['text']=_0x5f4f96===null||_0x5f4f96===void 0x0?void 0x0:_0x5f4f96['text'];}static[_0x25d1ec(0x1e0)](_0x119133,_0x4bdd9e){const _0x2bed76=_0x25d1ec,{text:_0x105cd5,color:_0x464f88}=_0x4bdd9e;_0x119133[_0x2bed76(0x20a)](),_0x119133[_0x2bed76(0x1ee)]=_0x2bed76(0x2e9);const _0x4b6e73=_0x119133[_0x2bed76(0x3c1)](_0x105cd5)[_0x2bed76(0x2ce)];drawBubble(_0x119133,{'height':0x14,'radius':0x4,'width':Math[_0x2bed76(0x1d3)](_0x4b6e73+0x2*0x4,0xc8),'fill':_0x464f88,'evented':![]}),_0x119133['fillStyle']='#FFF';const _0x1924b7=0x4,_0x12d028=0x14-0x5,_0x4d18e6=0xc8-0x2*0x4;if(_0x4b6e73>_0x4d18e6){let _0x39ec39='',_0x34e33b=0x0;for(const _0xb0dfc2 of _0x105cd5){const _0x53fce2=_0x119133['measureText'](_0xb0dfc2)['width'];if(_0x34e33b+_0x53fce2<=_0x4d18e6-_0x119133[_0x2bed76(0x3c1)](_0x2bed76(0x3cd))[_0x2bed76(0x2ce)])_0x39ec39+=_0xb0dfc2,_0x34e33b+=_0x53fce2;else{_0x39ec39+=_0x2bed76(0x3cd);break;}}_0x119133[_0x2bed76(0x35f)](_0x39ec39,_0x1924b7,_0x12d028);}else _0x119133['fillText'](_0x105cd5,_0x1924b7,_0x12d028);_0x119133['restore']();}[_0x25d1ec(0x42b)](_0x498d69){const _0x361deb=_0x25d1ec;TextBubbleShape[_0x361deb(0x1e0)](_0x498d69,this);}};const COLLAB_TEXT_ANCHOR_KEY_PREFIX='collab-text-anchor-',COLLAB_TEXT_RANGE_KEY_PREFIX='collab-text-range-',COLLAB_RECT_RANGE_KEY_PREFIX=_0x25d1ec(0x3da),ID_LENGTH=0x6,COLLAB_TEXT_ANCHOR_WIDTH=1.5,COLLAB_TEXT_ANCHOR_DOT_WIDTH=0x4,SELECTION_CONTROL_BORDER_BUFFER_WIDTH=1.5,SELECTION_CONTROL_BORDER_BUFFER_COLOR='rgba(255,\x20255,\x20255,\x200.01)';var DocCollabCursor=class{constructor(_0x27751a,_0x5709c1,_0x4bac43,_0x4ec071){const _0x242785=_0x25d1ec;this['_cursor']=_0x27751a,this['_scene']=_0x5709c1,this[_0x242785(0x211)]=_0x4bac43,this[_0x242785(0x1ed)]=_0x4ec071,_defineProperty(this,_0x242785(0x201),[]),_defineProperty(this,'_anchor',null),_defineProperty(this,'_textBubble',null),_defineProperty(this,'_anchorDot',null),_defineProperty(this,_0x242785(0x350),null),_defineProperty(this,_0x242785(0x354),null),this[_0x242785(0x246)]();}set[_0x25d1ec(0x340)](_0x27b421){const _0x30d99c=_0x25d1ec;_0x27b421?(this[_0x30d99c(0x413)]&&this[_0x30d99c(0x413)][_0x30d99c(0x427)](),this[_0x30d99c(0x238)]&&this['_textBubble'][_0x30d99c(0x334)]()):(this[_0x30d99c(0x413)]&&this[_0x30d99c(0x413)]['show'](),this[_0x30d99c(0x238)]&&this[_0x30d99c(0x238)][_0x30d99c(0x427)]());}[_0x25d1ec(0x22d)](){const _0x939465=_0x25d1ec;for(const _0x202d00 of this[_0x939465(0x201)])_0x202d00[_0x939465(0x22d)]();if(this['_textBubble'])this[_0x939465(0x238)][_0x939465(0x22d)]();if(this['_anchorDot'])this[_0x939465(0x413)]['dispose']();if(this['_anchor'])this[_0x939465(0x3ed)][_0x939465(0x22d)]();if(this[_0x939465(0x354)])this[_0x939465(0x354)]();}[_0x25d1ec(0x246)](){const _0xbcc128=_0x25d1ec,{_docSkeleton:_0x4de8e9,_document:_0x1ab7ad}=this,{color:_0x1603e2,name:_0x3c4305,ranges:_0x48cb8f}=this['_cursor'],_0x54d83f=_0x1ab7ad['getOffsetConfig'](),{docsLeft:_0xe718af,docsTop:_0x529ec3}=_0x54d83f,_0x18293d=new _univerjs_docs_ui[(_0xbcc128(0x374))](_0x54d83f,_0x4de8e9);for(const {startOffset:_0x2d204d,endOffset:_0x41e4ab,rangeType:_0x23399e,segmentId:_0x4d41fd,segmentPage:_0x51d73c,collapsed:_0x5a0314,isActive:_0x4824df}of _0x48cb8f){const _0x483baa=_0x4de8e9[_0xbcc128(0x3f3)](_0x2d204d,!![],_0x4d41fd,_0x51d73c);let _0x584810=_0x4de8e9['findNodePositionByCharIndex'](_0x41e4ab,!![],_0x4d41fd,_0x51d73c);if(_0x584810==null)_0x584810=_0x4de8e9[_0xbcc128(0x3f3)](_0x41e4ab-0x1,![],_0x4d41fd,_0x51d73c);if(_0x4824df){const {contentBoxPointGroup:_0x259c5a}=_0x18293d['getRangePointData'](_0x584810,_0x584810);if(_0x259c5a[_0xbcc128(0x3cb)]===0x0)continue;this['_drawAnchor'](_0x1603e2,_0x259c5a,_0xe718af,_0x529ec3,_0x3c4305),this[_0xbcc128(0x354)]=this[_0xbcc128(0x228)]();}if(_0x483baa&&_0x584810){if(_0x23399e===_univerjs_core['DOC_RANGE_TYPE']['RECT']){var _0x4f395f;const {pointGroup:_0x1e8ee3}=(_0x4f395f=new _univerjs_docs_ui['NodePositionConvertToRectRange'](_0x54d83f,_0x4de8e9)[_0xbcc128(0x1b1)](_0x483baa,_0x584810))!==null&&_0x4f395f!==void 0x0?_0x4f395f:{};if(_0x1e8ee3==null||_0x1e8ee3[_0xbcc128(0x3cb)]===0x0)continue;this['_drawRectRange'](_0x1603e2,_0x1e8ee3,_0xe718af,_0x529ec3);}else{if(!_0x5a0314){const {borderBoxPointGroup:_0x5bde03}=_0x18293d[_0xbcc128(0x1b1)](_0x483baa,_0x584810);if(_0x5bde03[_0xbcc128(0x3cb)]===0x0)continue;this['_drawTextRange'](_0x1603e2,_0x5bde03,_0xe718af,_0x529ec3);}}}}}[_0x25d1ec(0x395)](_0x54c341,_0xc29555,_0x5675af,_0x37f9fb,_0x1f4113){const _0x2d23c7=_0x25d1ec,{left:_0x246001,top:_0x51a4fd,height:_0x386151}=this[_0x2d23c7(0x2e2)](_0xc29555),_0xcf79f9=SELECTION_CONTROL_BORDER_BUFFER_WIDTH/this[_0x2d23c7(0x40d)](),_0x684a9e=new _univerjs_engine_render[(_0x2d23c7(0x20f))](COLLAB_TEXT_ANCHOR_KEY_PREFIX+(0x0,_univerjs_core[_0x2d23c7(0x240)])(ID_LENGTH),{'left':_0x246001+_0x5675af-_0xcf79f9,'top':_0x51a4fd+_0x37f9fb,'height':_0x386151,'width':COLLAB_TEXT_ANCHOR_WIDTH,'fill':_0x54c341||(0x0,_univerjs_engine_render[_0x2d23c7(0x3e2)])(_univerjs_core[_0x2d23c7(0x318)][_0x2d23c7(0x342)],0x0),'strokeWidth':_0xcf79f9,'stroke':SELECTION_CONTROL_BORDER_BUFFER_COLOR,'evented':!![]});this[_0x2d23c7(0x3ed)]=_0x684a9e,this['_scene'][_0x2d23c7(0x250)](_0x684a9e,_univerjs_docs_ui[_0x2d23c7(0x36c)]);const _0x1d867a=new _univerjs_engine_render[(_0x2d23c7(0x20f))](COLLAB_TEXT_ANCHOR_KEY_PREFIX+(0x0,_univerjs_core['generateRandomId'])(ID_LENGTH),{'left':_0x246001+_0x5675af-_0xcf79f9,'top':_0x51a4fd+_0x37f9fb-COLLAB_TEXT_ANCHOR_DOT_WIDTH/0x2,'height':COLLAB_TEXT_ANCHOR_DOT_WIDTH,'width':COLLAB_TEXT_ANCHOR_DOT_WIDTH,'fill':_0x54c341||(0x0,_univerjs_engine_render[_0x2d23c7(0x3e2)])(_univerjs_core['COLORS'][_0x2d23c7(0x342)],0x0),'strokeWidth':0x0,'stroke':_0x54c341||(0x0,_univerjs_engine_render[_0x2d23c7(0x3e2)])(_univerjs_core[_0x2d23c7(0x318)]['black'],0x0),'evented':![]});this[_0x2d23c7(0x413)]=_0x1d867a,this[_0x2d23c7(0x41c)]['addObject'](_0x1d867a,_univerjs_docs_ui[_0x2d23c7(0x36c)]);const _0x46492b=new TextBubbleShape(COLLAB_TEXT_ANCHOR_KEY_PREFIX+(0x0,_univerjs_core[_0x2d23c7(0x240)])(ID_LENGTH),{'left':_0x246001+_0x5675af-_0xcf79f9,'top':_0x51a4fd+_0x37f9fb-0x14,'text':_0x1f4113,'color':_0x54c341});this[_0x2d23c7(0x238)]=_0x46492b,this[_0x2d23c7(0x41c)][_0x2d23c7(0x250)](_0x46492b,_univerjs_docs_ui[_0x2d23c7(0x36c)]),this[_0x2d23c7(0x340)]=![];}[_0x25d1ec(0x228)](){const _0x5cd708=_0x25d1ec,_0x1852c8=this[_0x5cd708(0x3ed)][_0x5cd708(0x376)]['subscribeEvent'](()=>{const _0x131c59=_0x5cd708;this[_0x131c59(0x340)]=!![];}),_0x29dd6d=this[_0x5cd708(0x3ed)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x3e5666=_0x5cd708;if(this['_hideTimer'])clearTimeout(this[_0x3e5666(0x350)]);this['_hideTimer']=setTimeout(()=>{const _0x2229a=_0x3e5666;this[_0x2229a(0x340)]=![];},0x7d0);});return()=>{const _0x1c1392=_0x5cd708;_0x1852c8[_0x1c1392(0x36f)](),_0x29dd6d['unsubscribe']();};}[_0x25d1ec(0x3c3)](_0xa2931f,_0x267c65,_0x4e1517,_0x3abace){const _0x1e6531=_0x25d1ec,_0x52b587=0.2,_0x4eef0c=new _univerjs_core['ColorKit'](_0xa2931f)[_0x1e6531(0x251)](_0x52b587)[_0x1e6531(0x316)](),_0xd7271a=new _univerjs_engine_render[(_0x1e6531(0x3ee))](COLLAB_TEXT_RANGE_KEY_PREFIX+(0x0,_univerjs_core['generateRandomId'])(ID_LENGTH),{'pointsGroup':_0x267c65,'fill':_0x4eef0c||(0x0,_univerjs_engine_render[_0x1e6531(0x3e2)])(_univerjs_core[_0x1e6531(0x318)][_0x1e6531(0x342)],_0x52b587),'left':_0x4e1517,'top':_0x3abace,'evented':![],'debounceParentDirty':![]});this[_0x1e6531(0x201)][_0x1e6531(0x267)](_0xd7271a),this[_0x1e6531(0x41c)][_0x1e6531(0x250)](_0xd7271a,_univerjs_docs_ui[_0x1e6531(0x36c)]);}[_0x25d1ec(0x360)](_0x46f4c4,_0x2742da,_0x27b88a,_0x256746){const _0x713d05=_0x25d1ec,_0x8af3d1=0.2,_0x559e80=new _univerjs_core['ColorKit'](_0x46f4c4)['setAlpha'](_0x8af3d1)[_0x713d05(0x316)](),_0x598d27=new _univerjs_engine_render[(_0x713d05(0x3ee))](COLLAB_RECT_RANGE_KEY_PREFIX+(0x0,_univerjs_core[_0x713d05(0x240)])(ID_LENGTH),{'pointsGroup':_0x2742da,'fill':_0x559e80||(0x0,_univerjs_engine_render[_0x713d05(0x3e2)])(_univerjs_core['COLORS'][_0x713d05(0x342)],_0x8af3d1),'left':_0x27b88a,'top':_0x256746,'evented':![],'debounceParentDirty':![]});this[_0x713d05(0x201)][_0x713d05(0x267)](_0x598d27),this[_0x713d05(0x41c)][_0x713d05(0x250)](_0x598d27,_univerjs_docs_ui[_0x713d05(0x36c)]);}['_getAnchorBounding'](_0x22b43e){const _0x3bf7e7=_0x22b43e[0x0],_0x34f436=_0x3bf7e7[0x0],_0x9400d9=_0x3bf7e7[0x2],{x:_0xfab25f,y:_0x4d5f50}=_0x34f436,{x:_0xadf418,y:_0xf9a827}=_0x9400d9;return{'left':_0xfab25f,'top':_0x4d5f50,'width':_0xadf418-_0xfab25f,'height':_0xf9a827-_0x4d5f50};}[_0x25d1ec(0x40d)](){const _0x2b02bd=_0x25d1ec,{scaleX:_0x367e1f,scaleY:_0x1f4902}=this['_scene'][_0x2b02bd(0x208)]();return Math['max'](_0x367e1f,_0x1f4902);}};let DocCollabCursorRenderController=class DocCollabCursorRenderController extends _univerjs_core[_0x25d1ec(0x2e3)]{constructor(_0x6da33,_0x2a0420,_0x210e53,_0x43acc1,_0xc5e515){const _0x1927a3=_0x25d1ec;super(),this['_context']=_0x6da33,this['_docSkeletonManagerService']=_0x2a0420,this[_0x1927a3(0x3f8)]=_0x210e53,this['_commandService']=_0x43acc1,this[_0x1927a3(0x431)]=_0xc5e515,_defineProperty(this,_0x1927a3(0x3b3),[]),_defineProperty(this,'_cursors',[]),this[_0x1927a3(0x1e7)]();}[_0x25d1ec(0x1e7)](){const _0x5bf9f9=_0x25d1ec,_0x343ef7=this[_0x5bf9f9(0x2fe)][_0x5bf9f9(0x306)],_0x2ab8d5=this[_0x5bf9f9(0x255)];this[_0x5bf9f9(0x1ce)]((0x0,rxjs['combineLatest'])([this[_0x5bf9f9(0x3f8)][_0x5bf9f9(0x234)](_0x343ef7),this['_themeService'][_0x5bf9f9(0x299)]])['pipe']((0x0,rxjs_operators[_0x5bf9f9(0x27f)])(([_0x2e91c6,_0x41ac64])=>({'skeleton':_0x2ab8d5['getSkeleton'](),'cursors':[..._0x2e91c6[_0x5bf9f9(0x25f)]()][_0x5bf9f9(0x42f)](_0x195035=>({..._0x195035,'color':this[_0x5bf9f9(0x431)]['getColorFromTheme'](_0x195035[_0x5bf9f9(0x23b)])}))})))['subscribe'](_0x17f16f=>{const _0x12ac48=_0x5bf9f9;this[_0x12ac48(0x2d8)]();if(_0x17f16f){const {skeleton:_0x39fb42,cursors:_0x560ccd}=_0x17f16f;this['_updateCollabCursors'](_0x39fb42,_0x560ccd);}})),this[_0x5bf9f9(0x1af)](),this[_0x5bf9f9(0x272)]();}[_0x25d1ec(0x2ba)](_0x4347d7,_0x3032ff){const _0x74e37d=_0x25d1ec,{scene:_0x4920ea,mainComponent:_0x5ac809}=this[_0x74e37d(0x2fe)],_0x224338=_0x3032ff[_0x74e37d(0x27f)](_0x57de8c=>new DocCollabCursor(_0x57de8c,_0x4920ea,_0x4347d7,_0x5ac809));this[_0x74e37d(0x3b3)]=_0x224338,this[_0x74e37d(0x3eb)]=_0x3032ff;}['_refreshCollabCursors'](){const _0xbe01b3=_0x25d1ec;this['_removeCollabCursors']();const {scene:_0x1bf9f0,mainComponent:_0x467d50}=this[_0xbe01b3(0x2fe)],_0xdb1a64=this[_0xbe01b3(0x255)][_0xbe01b3(0x385)](),_0x7edbbc=this[_0xbe01b3(0x3eb)][_0xbe01b3(0x27f)](_0x5428ea=>new DocCollabCursor(_0x5428ea,_0x1bf9f0,_0xdb1a64,_0x467d50));this[_0xbe01b3(0x3b3)]=_0x7edbbc;}[_0x25d1ec(0x2d8)](){const _0x5ab9fa=_0x25d1ec;this['_cursorShapes'][_0x5ab9fa(0x2d0)](_0x2405e5=>_0x2405e5['dispose']()),this['_cursorShapes']=[];}[_0x25d1ec(0x272)](){const _0xafdfe4=_0x25d1ec,_0x446aa9=[_univerjs_docs_ui[_0xafdfe4(0x30e)]['id']];this[_0xafdfe4(0x1ce)](this[_0xafdfe4(0x418)][_0xafdfe4(0x2be)](_0x16d415=>{const _0x2c2b28=_0xafdfe4;if(_0x446aa9[_0x2c2b28(0x365)](_0x16d415['id'])&&_0x16d415[_0x2c2b28(0x2d3)]['unitId']===this[_0x2c2b28(0x2fe)][_0x2c2b28(0x306)])this[_0x2c2b28(0x387)]();}));}[_0x25d1ec(0x1af)](){const _0x4ce368=_0x25d1ec;this['disposeWithMe']((0x0,_univerjs_core['fromEventSubject'])(this[_0x4ce368(0x2fe)]['engine'][_0x4ce368(0x1be)])['pipe']((0x0,rxjs_operators[_0x4ce368(0x2f9)])(_0x241a0c=>_0x241a0c[_0x4ce368(0x3f1)]===_univerjs_engine_render[_0x4ce368(0x3e1)][_0x4ce368(0x3bb)]),(0x0,rxjs_operators[_0x4ce368(0x26a)])(0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};DocCollabCursorRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_docs[_0x25d1ec(0x2fb)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(CollabCursorController)),__decorateParam(0x3,_univerjs_core[_0x25d1ec(0x36b)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_core[_0x25d1ec(0x39d)]))],DocCollabCursorRenderController);const SHEET_COLLAB_CURSOR_BORDER_WIDTH=1.5;var SheetCollabCursorShape=class extends _univerjs_engine_render[_0x25d1ec(0x2c2)]{constructor(_0x242c03,_0x2964f0){const _0x204f70=_0x25d1ec;super(_0x242c03,_0x2964f0),_defineProperty(this,_0x204f70(0x31a),void 0x0),_defineProperty(this,_0x204f70(0x217),![]),_defineProperty(this,_0x204f70(0x245),void 0x0),_defineProperty(this,_0x204f70(0x29e),''),_defineProperty(this,_0x204f70(0x2ec),_0x204f70(0x41f)),_defineProperty(this,_0x204f70(0x2eb),void 0x0),_defineProperty(this,'_showText',void 0x0),_defineProperty(this,_0x204f70(0x388),void 0x0),_defineProperty(this,_0x204f70(0x40b),0x4),_defineProperty(this,_0x204f70(0x3e5),void 0x0),_defineProperty(this,'_blinkIntervalTimer',void 0x0),_defineProperty(this,'_isBlinkVisible',!![]),_defineProperty(this,_0x204f70(0x24f),0x0);if(_0x2964f0){var _0x3a11f5;this[_0x204f70(0x423)](_0x2964f0);if(_0x2964f0[_0x204f70(0x2d6)]&&((_0x3a11f5=_0x2964f0[_0x204f70(0x29f)])!==null&&_0x3a11f5!==void 0x0?_0x3a11f5:this[_0x204f70(0x40b)])){var _0x2951ed;this['_startBlinking']((_0x2951ed=_0x2964f0[_0x204f70(0x29f)])!==null&&_0x2951ed!==void 0x0?_0x2951ed:this['_highlightSecond']);}}this[_0x204f70(0x376)][_0x204f70(0x1d5)](()=>this[_0x204f70(0x423)]({'hovered':!![]})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x204f70(0x423)]({'hovered':![]}));}[_0x25d1ec(0x21f)](_0x22bf1c){this['_offsetY']=_0x22bf1c;}[_0x25d1ec(0x423)](_0x3d634f){const _0x5e89f2=_0x25d1ec;var _0x2e7536,_0x1e2b7d,_0x19f878,_0x457f35,_0x4ce956,_0x5d94e6,_0xfba561;this['_color']=(_0x2e7536=_0x3d634f[_0x5e89f2(0x23b)])!==null&&_0x2e7536!==void 0x0?_0x2e7536:this[_0x5e89f2(0x31a)],this[_0x5e89f2(0x217)]=(_0x1e2b7d=_0x3d634f[_0x5e89f2(0x435)])!==null&&_0x1e2b7d!==void 0x0?_0x1e2b7d:this[_0x5e89f2(0x217)],this[_0x5e89f2(0x245)]=(_0x19f878=_0x3d634f[_0x5e89f2(0x2cf)])!==null&&_0x19f878!==void 0x0?_0x19f878:this['_range'],this[_0x5e89f2(0x29e)]=(_0x457f35=_0x3d634f[_0x5e89f2(0x33d)])!==null&&_0x457f35!==void 0x0?_0x457f35:this[_0x5e89f2(0x29e)],this[_0x5e89f2(0x2ec)]=(_0x4ce956=_0x3d634f[_0x5e89f2(0x2aa)])!==null&&_0x4ce956!==void 0x0?_0x4ce956:this[_0x5e89f2(0x2ec)],this[_0x5e89f2(0x2eb)]=(_0x5d94e6=_0x3d634f[_0x5e89f2(0x301)])!==null&&_0x5d94e6!==void 0x0?_0x5d94e6:this[_0x5e89f2(0x2eb)],this[_0x5e89f2(0x286)]=(_0xfba561=_0x3d634f[_0x5e89f2(0x33e)])!==null&&_0xfba561!==void 0x0?_0xfba561:this[_0x5e89f2(0x286)];if(_0x3d634f[_0x5e89f2(0x29f)]!==void 0x0)this[_0x5e89f2(0x40b)]=_0x3d634f[_0x5e89f2(0x29f)];if(_0x3d634f[_0x5e89f2(0x2d6)]!==void 0x0)this[_0x5e89f2(0x388)]=_0x3d634f['highlight'];if(_0x3d634f[_0x5e89f2(0x377)]!==void 0x0)this[_0x5e89f2(0x24f)]=_0x3d634f[_0x5e89f2(0x377)];this[_0x5e89f2(0x3e3)]({'width':_0x3d634f[_0x5e89f2(0x2ce)],'height':_0x3d634f['height']});}[_0x25d1ec(0x1cc)](_0x4a456a){const _0x179288=_0x25d1ec,{row:_0x4eec84,column:_0x494301}=_0x4a456a;if(_0x4eec84>=this['_range'][_0x179288(0x403)]&&_0x4eec84<=this[_0x179288(0x245)]['endRow']&&_0x494301>=this[_0x179288(0x245)]['startColumn']&&_0x494301<=this[_0x179288(0x245)]['endColumn']){this[_0x179288(0x423)]({'hovered':!![]});return;}this[_0x179288(0x423)]({'hovered':![]});}[_0x25d1ec(0x293)](_0x4ee014){const _0x204b38=_0x25d1ec;this[_0x204b38(0x3e0)](),this[_0x204b38(0x220)]=!![],this[_0x204b38(0x24e)]=window[_0x204b38(0x2b7)](()=>{const _0x454333=_0x204b38;this['_isBlinkVisible']=!this['_isBlinkVisible'],this[_0x454333(0x386)](!![]);},0x1f4),this[_0x204b38(0x3e5)]=window[_0x204b38(0x1f5)](()=>{const _0x41ca89=_0x204b38;this[_0x41ca89(0x3e0)](),this['_isBlinkVisible']=!![],this[_0x41ca89(0x386)](!![]);},_0x4ee014*0x3e8);}[_0x25d1ec(0x3e0)](){const _0x3efe51=_0x25d1ec;this[_0x3efe51(0x24e)]&&(window[_0x3efe51(0x397)](this['_blinkIntervalTimer']),this['_blinkIntervalTimer']=void 0x0),this[_0x3efe51(0x3e5)]&&(window[_0x3efe51(0x34b)](this[_0x3efe51(0x3e5)]),this['_blinkTimer']=void 0x0);}[_0x25d1ec(0x40c)](_0x425a18){return![];}[_0x25d1ec(0x22d)](){const _0x4a1007=_0x25d1ec;this[_0x4a1007(0x3e0)](),super[_0x4a1007(0x22d)]();}['_draw'](_0x50ee1f){const _0x3d72d2=_0x25d1ec;let _0x4f1380=this['_color'],_0x4becaa=this[_0x3d72d2(0x2eb)];this['_highlight']&&!this[_0x3d72d2(0x220)]&&(_0x4f1380=this[_0x3d72d2(0x2c9)](this['_color']),_0x4becaa=this['_backgroundColor']?this[_0x3d72d2(0x2c9)](this[_0x3d72d2(0x2eb)]):void 0x0);_univerjs_engine_render[_0x3d72d2(0x20f)][_0x3d72d2(0x1e0)](_0x50ee1f,{'width':this[_0x3d72d2(0x2ce)],'height':this[_0x3d72d2(0x21c)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x4f1380,'evented':![],'fill':_0x4becaa});if(this['_hovered']||this[_0x3d72d2(0x286)]){var _0x426cc2;_0x50ee1f['save'](),_0x50ee1f[_0x3d72d2(0x430)](0x1,0x0,0x0,0x1,this['width'],(this[_0x3d72d2(0x2ec)]==='bottom'?0x0:-0x14)+((_0x426cc2=this['_offsetY'])!==null&&_0x426cc2!==void 0x0?_0x426cc2:0x0)),TextBubbleShape[_0x3d72d2(0x1e0)](_0x50ee1f,{'text':this['_name'],'color':_0x4f1380}),_0x50ee1f[_0x3d72d2(0x280)]();}}[_0x25d1ec(0x2c9)](_0xa668cb){const _0x49b907=_0x25d1ec;if(_0xa668cb[_0x49b907(0x2b1)]('#'))return _0x49b907(0x36e)+Number['parseInt'](_0xa668cb[_0x49b907(0x37c)](0x1,0x3),0x10)+',\x20'+Number[_0x49b907(0x3f7)](_0xa668cb[_0x49b907(0x37c)](0x3,0x5),0x10)+',\x20'+Number[_0x49b907(0x3f7)](_0xa668cb[_0x49b907(0x37c)](0x5,0x7),0x10)+',\x200.2)';if(_0xa668cb[_0x49b907(0x2b1)]('rgba'))return _0xa668cb[_0x49b907(0x39a)](/[\d.]+\)$/g,_0x49b907(0x3b5));if(_0xa668cb['startsWith'](_0x49b907(0x37b)))return _0xa668cb[_0x49b907(0x39a)](_0x49b907(0x37b),_0x49b907(0x3de))[_0x49b907(0x39a)](')',_0x49b907(0x1f3));return _0xa668cb;}};function _0x1f64(_0x323667,_0x41f89a){_0x323667=_0x323667-0x1a2;const _0x110b53=_0x110b();let _0x1f6432=_0x110b53[_0x323667];return _0x1f6432;}const SHEETS_COLLABORATION_CURSOR_Z_INDEX=0x1389;let SheetCollabCursorRenderController=class SheetCollabCursorRenderController extends _univerjs_core[_0x25d1ec(0x2e3)]{constructor(_0xb02d6,_0x4dd8e5,_0x3352a4,_0x54ebdf){const _0x53b64d=_0x25d1ec;super(),this[_0x53b64d(0x2fe)]=_0xb02d6,this[_0x53b64d(0x43c)]=_0x4dd8e5,this[_0x53b64d(0x3f8)]=_0x3352a4,this[_0x53b64d(0x431)]=_0x54ebdf,_defineProperty(this,'_cursors',new Set()),_defineProperty(this,'_lastPointer',null),this[_0x53b64d(0x1e7)]();}[_0x25d1ec(0x1e7)](){const _0x246a23=_0x25d1ec;this[_0x246a23(0x43c)]['currentSkeleton$'][_0x246a23(0x284)]((0x0,rxjs_operators['takeUntil'])(this[_0x246a23(0x348)]),(0x0,rxjs_operators[_0x246a23(0x2af)])(_0x269b61=>{const _0x5d853a=_0x246a23;if(_0x269b61){const _0x3091e2=_0x269b61[_0x5d853a(0x2b4)];return(0x0,rxjs[_0x5d853a(0x358)])(this['_collabCursorController'][_0x5d853a(0x234)](this[_0x5d853a(0x2fe)][_0x5d853a(0x306)]),this[_0x5d853a(0x431)][_0x5d853a(0x299)])[_0x5d853a(0x284)]((0x0,rxjs_operators[_0x5d853a(0x27f)])(([_0x272518,_0x42273f])=>{const _0x3b159a=_0x5d853a,_0x4604c4=new Map();return _0x272518[_0x3b159a(0x2d0)]((_0x6c9558,_0x100403)=>{const _0x4131f3=_0x3b159a;if(_0x6c9558['sheetID']===_0x3091e2){const _0x540f63={..._0x6c9558};_0x540f63[_0x4131f3(0x23b)]=this[_0x4131f3(0x431)][_0x4131f3(0x224)](_0x6c9558['color']),_0x4604c4[_0x4131f3(0x274)](_0x100403,_0x540f63);}}),{'skeleton':_0x269b61,'cursors':_0x4604c4};}));}return(0x0,rxjs['of'])({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3ff0ba,cursors:_0xb3a352})=>{const _0x3368bf=_0x246a23;this[_0x3368bf(0x2d8)]();if(_0x3ff0ba)this[_0x3368bf(0x2ba)](_0x3ff0ba,_0xb3a352);}),this[_0x246a23(0x43c)]['currentSkeleton$'][_0x246a23(0x297)](_0x57dcc0=>{const _0x2c70da=_0x246a23;if(_0x57dcc0==null)return;const {skeleton:_0x151957}=_0x57dcc0,{scene:_0x3fd4f2}=this[_0x2c70da(0x2fe)];_0x3fd4f2[_0x2c70da(0x3fa)][_0x2c70da(0x1d5)]((0x0,_univerjs_core[_0x2c70da(0x3fc)])(_0x1d530e=>{const _0xd0dba3=_0x2c70da;var _0xe7e4de,_0x4e3700;const {offsetX:_0x1f40fa,offsetY:_0x52ae22}=_0x1d530e,{x:_0x2b81c0,y:_0x3a6f94}=_0x3fd4f2['getRelativeToViewportCoord'](_univerjs_engine_render[_0xd0dba3(0x3e7)][_0xd0dba3(0x424)]([_0x1f40fa,_0x52ae22])),{scaleX:_0x333df6,scaleY:_0x1b6e6c}=_0x3fd4f2['getAncestorScale'](),_0x211e95=_0x3fd4f2[_0xd0dba3(0x1f9)](_univerjs_engine_render[_0xd0dba3(0x310)][_0xd0dba3(0x2e1)]),_0x3de868=_0x3fd4f2[_0xd0dba3(0x236)](_univerjs_engine_render[_0xd0dba3(0x3e7)][_0xd0dba3(0x424)]([_0x2b81c0,_0x3a6f94]),_0x211e95),_0x3fd54f=_0x151957['getCellPositionByOffset'](_0x1f40fa,_0x52ae22,_0x333df6,_0x1b6e6c,_0x3de868);if(((_0xe7e4de=this[_0xd0dba3(0x41b)])===null||_0xe7e4de===void 0x0?void 0x0:_0xe7e4de[_0xd0dba3(0x257)])===_0x3fd54f[_0xd0dba3(0x257)]&&((_0x4e3700=this[_0xd0dba3(0x41b)])===null||_0x4e3700===void 0x0?void 0x0:_0x4e3700['row'])===_0x3fd54f[_0xd0dba3(0x29b)])return;this[_0xd0dba3(0x3eb)][_0xd0dba3(0x2d0)](_0x397830=>{const _0x4bfe14=_0xd0dba3;_0x397830[_0x4bfe14(0x1cc)](_0x3fd54f);});},0x64));});}[_0x25d1ec(0x2ba)](_0x59c75a,_0x5542b7){const _0x19d73a=_0x25d1ec,_0x3c2005=this[_0x19d73a(0x43c)][_0x19d73a(0x2c0)]();if(!_0x3c2005)return;const _0x161538=this[_0x19d73a(0x32b)]();if(!_0x161538)return;this[_0x19d73a(0x3eb)]['forEach'](_0x1b0f1e=>{const _0x414820=_0x19d73a;_0x1b0f1e[_0x414820(0x386)]();});const {scene:_0x5f0b3d}=_0x161538,_0x1ee4f0=mergeCollabCursors(Array[_0x19d73a(0x38a)](_0x5542b7[_0x19d73a(0x25f)]()))[_0x19d73a(0x27f)](_0x3d74f0=>{const _0x4fdd52=_0x19d73a,{color:_0x3c4379,range:_0x13aebc,name:_0x53c314,selection:_0x2f81b4,sheetID:_0x3807ed}=_0x3d74f0,{startColumn:_0x376bbd,startRow:_0x2b4745,endColumn:_0x3e7474,endRow:_0x22725e}=_0x13aebc,_0x16b381=(0x0,_univerjs_sheets_ui[_0x4fdd52(0x2b9)])(_0x2b4745,_0x376bbd,_0x5f0b3d,_0x3c2005),_0x361753=(0x0,_univerjs_sheets_ui[_0x4fdd52(0x2b9)])(_0x22725e,_0x3e7474,_0x5f0b3d,_0x3c2005),{columnHeaderHeightAndMarginTop:_0x528551}=_0x3c2005,{startX:_0x59ed55,startY:_0x11516d}=_0x16b381,{endX:_0x15ef74,endY:_0x1f73e1}=_0x361753,_0xc7e700=_0x15ef74-_0x59ed55,_0x21f8f9=_0x1f73e1-_0x11516d;return new SheetCollabCursorShape(_0x53c314,{'labelPosition':_0x11516d-_0x528551>=0x14?'top':_0x4fdd52(0x38b),'sheetID':_0x3807ed,'range':_0x13aebc,'color':_0x3c4379,'name':_0x53c314,'selection':_0x2f81b4,'left':_0x59ed55,'top':_0x11516d,'width':_0xc7e700,'height':_0x21f8f9,'evented':![],'zIndex':SHEETS_COLLABORATION_CURSOR_Z_INDEX});});_0x5f0b3d[_0x19d73a(0x419)](_0x1ee4f0,0x1),this[_0x19d73a(0x3eb)]=new Set(_0x1ee4f0);}[_0x25d1ec(0x2d8)](){const _0x973672=_0x25d1ec;var _0x2f9ecf;(_0x2f9ecf=this[_0x973672(0x3eb)])===null||_0x2f9ecf===void 0x0||_0x2f9ecf['forEach'](_0x2e8b22=>_0x2e8b22[_0x973672(0x22d)]());}[_0x25d1ec(0x32b)](){const _0x9b197a=_0x25d1ec;return(0x0,_univerjs_sheets_ui['getSheetObject'])(this[_0x9b197a(0x2fe)][_0x9b197a(0x1f4)],this[_0x9b197a(0x2fe)]);}};SheetCollabCursorRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_sheets_ui[_0x25d1ec(0x285)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x25d1ec(0x353)])(CollabCursorController)),__decorateParam(0x3,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_core[_0x25d1ec(0x39d)]))],SheetCollabCursorRenderController);function mergeCollabCursors(_0x5f8a3f){const _0x1dad95=_0x25d1ec,_0x159cca=new Map();return _0x5f8a3f['forEach'](_0x1fe50a=>{const _0x17fc38=_0x1f64;if(_0x159cca['has'](_0x1fe50a[_0x17fc38(0x35b)])){const _0x1fe069=_0x159cca['get'](_0x1fe50a[_0x17fc38(0x35b)]);_0x1fe069[_0x17fc38(0x33d)]+=',\x20'+_0x1fe50a[_0x17fc38(0x33d)];}else _0x159cca['set'](_0x1fe50a[_0x17fc38(0x35b)],_0x1fe50a);}),Array['from'](_0x159cca[_0x1dad95(0x25f)]());}let CollaborationClientUIController=class CollaborationClientUIController extends _univerjs_core[_0x25d1ec(0x3dd)]{constructor(_0x44aded,_0x54e570,_0x3928fc,_0x550a88,_0xf41d71,_0x2c80e6){const _0x415d65=_0x25d1ec;super(),this[_0x415d65(0x393)]=_0x44aded,this['_localCacheService']=_0x54e570,this[_0x415d65(0x1b4)]=_0x3928fc,this[_0x415d65(0x380)]=_0x550a88,this['_notificationService']=_0xf41d71,this[_0x415d65(0x33a)]=_0x2c80e6,this[_0x415d65(0x3ab)](),this[_0x415d65(0x279)]();}[_0x25d1ec(0x3ab)](){const _0x1bde58=_0x25d1ec;this[_0x1bde58(0x1ce)](this['_beforeCloseService'][_0x1bde58(0x2bd)](()=>{const _0x5a208a=_0x1bde58;if(this['_localCacheService'][_0x5a208a(0x221)][_0x5a208a(0x1b0)])return this[_0x5a208a(0x33a)]['t'](_0x5a208a(0x23e));}));}[_0x25d1ec(0x279)](){const _0x4a1aa0=_0x25d1ec;this[_0x4a1aa0(0x1ce)](this[_0x4a1aa0(0x1b4)]['event$'][_0x4a1aa0(0x297)](_0x48c24c=>{const _0x39dc3d=_0x4a1aa0;if(_0x48c24c['id']===_univerjs_pro_collaboration_client[_0x39dc3d(0x233)]['OTHER_CLIENT_EDITING'])this[_0x39dc3d(0x380)][_0x39dc3d(0x334)]({'type':_univerjs_design[_0x39dc3d(0x328)]['Warning'],'content':this[_0x39dc3d(0x33a)]['t'](_0x39dc3d(0x204))});if(_0x48c24c['id']===_univerjs_pro_collaboration_client[_0x39dc3d(0x233)][_0x39dc3d(0x287)])this[_0x39dc3d(0x380)][_0x39dc3d(0x334)]({'type':_univerjs_design[_0x39dc3d(0x328)]['Warning'],'content':this['_localeService']['t'](_0x39dc3d(0x319))});if(_0x48c24c['id']===_univerjs_pro_collaboration_client[_0x39dc3d(0x233)]['PERMISSION_DENIED'])this['_notificationService'][_0x39dc3d(0x334)]({'title':this[_0x39dc3d(0x33a)]['t'](_0x39dc3d(0x2c5)),'content':this[_0x39dc3d(0x33a)]['t'](_0x39dc3d(0x39b)),'type':_0x39dc3d(0x408),'duration':0x0});if(_0x48c24c['id']===_univerjs_pro_collaboration_client[_0x39dc3d(0x233)][_0x39dc3d(0x43b)])this[_0x39dc3d(0x380)]['show']({'type':_univerjs_design[_0x39dc3d(0x328)]['Error'],'content':this[_0x39dc3d(0x33a)]['t'](_0x39dc3d(0x319))+'('+_0x48c24c[_0x39dc3d(0x26f)]+')'});if(_0x48c24c['id']===_univerjs_pro_collaboration_client[_0x39dc3d(0x233)]['JOIN_ROOM_FAILED'])this[_0x39dc3d(0x380)][_0x39dc3d(0x334)]({'type':_univerjs_design[_0x39dc3d(0x328)][_0x39dc3d(0x43f)],'content':this[_0x39dc3d(0x33a)]['t'](_0x48c24c['data']||'')});if(_0x48c24c['id']===_univerjs_pro_collaboration_client['CollaborationUIEventId']['SOCKET_FAILED_RETRY'])this[_0x39dc3d(0x380)][_0x39dc3d(0x334)]({'type':_univerjs_design[_0x39dc3d(0x328)][_0x39dc3d(0x43f)],'content':this['_localeService']['t'](_0x39dc3d(0x3c6))});if(_0x48c24c['id']===_univerjs_pro_collaboration_client[_0x39dc3d(0x233)]['SOCKET_FAILED'])this[_0x39dc3d(0x380)]['show']({'type':_univerjs_design[_0x39dc3d(0x328)][_0x39dc3d(0x3ea)],'content':this[_0x39dc3d(0x33a)]['t'](_0x39dc3d(0x38c))});if(_0x48c24c['id']===_univerjs_pro_collaboration_client[_0x39dc3d(0x233)][_0x39dc3d(0x252)])this[_0x39dc3d(0x380)][_0x39dc3d(0x334)]({'type':_univerjs_design['MessageType']['Error'],'content':this[_0x39dc3d(0x33a)]['t'](_0x39dc3d(0x373))});}));}};CollaborationClientUIController=__decorate([__decorateParam(0x0,_univerjs_ui[_0x25d1ec(0x2e6)]),__decorateParam(0x1,_univerjs_pro_collaboration_client[_0x25d1ec(0x23a)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_pro_collaboration_client['CollaborationUIEventService'])),__decorateParam(0x3,_univerjs_ui[_0x25d1ec(0x1ef)]),__decorateParam(0x4,_univerjs_ui[_0x25d1ec(0x214)]),__decorateParam(0x5,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_core['LocaleService']))],CollaborationClientUIController);const PLUGIN_CONFIG_KEY='collaboration-client-ui.config',configSymbol=Symbol(PLUGIN_CONFIG_KEY),defaultPluginConfig={};let DocTransformIMECacheService=class DocTransformIMECacheService{constructor(_0x5317f3,_0x2fee74){const _0x1a9191=_0x25d1ec;this[_0x1a9191(0x3ff)]=_0x5317f3,this[_0x1a9191(0x3b9)]=_0x2fee74;}[_0x25d1ec(0x3c0)](_0x4d21e9){const _0x3768d1=_0x25d1ec;this[_0x3768d1(0x307)](_0x4d21e9),this['_transformPreviousActiveRange'](_0x4d21e9);}[_0x25d1ec(0x1f6)](_0x21dd36){const _0x35adab=_0x25d1ec,{unitID:_0x410f57}=_0x21dd36,{redoCache:_0x18e19d}=this[_0x35adab(0x3b9)]['getRenderById'](_0x410f57)[_0x35adab(0x298)](_univerjs_docs_ui[_0x35adab(0x25d)])[_0x35adab(0x433)]();if(_0x18e19d['length']===0x0)return _0x21dd36;let _0x2f0785=_univerjs_core[_0x35adab(0x231)][_0x35adab(0x356)](_0x21dd36[_0x35adab(0x218)][0x0]);for(let _0x4674d1=0x0;_0x4674d1<_0x18e19d[_0x35adab(0x3cb)];_0x4674d1++){const _0x84fde6={'id':_0x35adab(0x2f2),'params':{..._0x18e19d[_0x4674d1]}},_0x4c00b4=this[_0x35adab(0x3ff)]['transformMutation'](_0x2f0785,_0x84fde6,![]);if((0x0,_univerjs_pro_collaboration[_0x35adab(0x3d9)])(_0x4c00b4))throw _0x4c00b4['error'];_0x2f0785=_0x4c00b4[_0x35adab(0x206)];}return{..._univerjs_core[_0x35adab(0x231)][_0x35adab(0x356)](_0x21dd36),'mutations':[_0x2f0785]};}['_transformUndoRedoStack'](_0x3e6a98){const _0x48cda8=_0x25d1ec,{unitID:_0x25c285}=_0x3e6a98,_0xe304a6=this['_renderManagerService']['getRenderById'](_0x25c285)[_0x48cda8(0x298)](_univerjs_docs_ui['DocIMEInputManagerService']),{undoCache:_0x133460,redoCache:_0x444d22}=_0xe304a6['getUndoRedoMutationParamsCache']();if(_0x133460[_0x48cda8(0x3cb)]===0x0||_0x444d22[_0x48cda8(0x3cb)]===0x0)return;const _0x1d4a4b=[],_0x4dbbb4=[];let _0x273d37=_univerjs_core['Tools'][_0x48cda8(0x356)](_0x3e6a98[_0x48cda8(0x218)][0x0]),_0x10d888=_univerjs_core['Tools']['deepClone'](_0x3e6a98[_0x48cda8(0x218)][0x0]);for(let _0x12c755=_0x133460[_0x48cda8(0x3cb)]-0x1;_0x12c755>=0x0;_0x12c755--){const _0x1fbdf0={'id':_0x48cda8(0x2f2),'params':{..._0x133460[_0x12c755]}},_0x3034e6={'id':_0x48cda8(0x2f2),'params':{..._0x444d22[_0x12c755]}},_0x457ee1=this[_0x48cda8(0x3ff)][_0x48cda8(0x1e3)](_0x273d37,_0x1fbdf0,![]),_0x469b91=this[_0x48cda8(0x3ff)][_0x48cda8(0x1e3)](_0x10d888,_0x3034e6,![]);if((0x0,_univerjs_pro_collaboration[_0x48cda8(0x3d9)])(_0x457ee1))throw _0x457ee1[_0x48cda8(0x408)];if((0x0,_univerjs_pro_collaboration['isTransformMutationFailure'])(_0x469b91))throw _0x469b91[_0x48cda8(0x408)];_0x1d4a4b[_0x48cda8(0x32f)](_0x457ee1['m2Prime']['params']),_0x4dbbb4['unshift'](_0x469b91[_0x48cda8(0x256)][_0x48cda8(0x2d3)]),_0x273d37=_0x457ee1[_0x48cda8(0x206)],_0x10d888=_0x469b91[_0x48cda8(0x206)];}_0xe304a6['setUndoRedoMutationParamsCache']({'undoCache':_0x1d4a4b,'redoCache':_0x4dbbb4});}[_0x25d1ec(0x21b)](_0x25636f){const _0xe30df5=_0x25d1ec,{unitID:_0x1df903}=_0x25636f,_0xb43e6b=this[_0xe30df5(0x3b9)]['getRenderById'](_0x1df903)[_0xe30df5(0x298)](_univerjs_docs_ui[_0xe30df5(0x25d)]),_0xb7c530=_0xb43e6b['getActiveRange']();if(_0xb7c530==null)return;const _0x24c0fd=[{'id':_0xe30df5(0x2f2),'params':{'unitId':_0x25636f['unitID'],'actions':null,'textRanges':[_0xb7c530]}}],_0x3c959f=this[_0xe30df5(0x3ff)][_0xe30df5(0x2c1)](_0x25636f,_0x24c0fd);if(!(0x0,_univerjs_pro_collaboration[_0xe30df5(0x253)])(_0x3c959f))throw _0x3c959f[_0xe30df5(0x408)];const _0x38348a=_0x3c959f[_0xe30df5(0x256)][0x0][_0xe30df5(0x2d3)][_0xe30df5(0x2bc)];if(Array[_0xe30df5(0x278)](_0x38348a)&&_0x38348a[_0xe30df5(0x3cb)])_0xb43e6b[_0xe30df5(0x313)](_0x38348a[0x0]);}};DocTransformIMECacheService=__decorate([__decorateParam(0x0,_univerjs_pro_collaboration['ITransformService']),__decorateParam(0x1,_univerjs_engine_render['IRenderManagerService'])],DocTransformIMECacheService);let DocTransformStateCacheService=class DocTransformStateCacheService{constructor(_0x5b295f,_0x5f2900,_0x1e1557){const _0x494b87=_0x25d1ec;this[_0x494b87(0x326)]=_0x5b295f,this[_0x494b87(0x3ff)]=_0x5f2900,this[_0x494b87(0x3fb)]=_0x1e1557;}[_0x25d1ec(0x1cb)](_0x5df237){this['_transformHistoryAndStateStack'](_0x5df237);}[_0x25d1ec(0x1f6)](_0x51a0a6){const _0x4d9b79=_0x25d1ec,{unitID:_0x31fa9f}=_0x51a0a6,{collaboration:_0x27f367}=this[_0x4d9b79(0x3fb)][_0x4d9b79(0x3a0)](_0x31fa9f);if(_0x27f367[_0x4d9b79(0x3cb)]===0x0)return _0x51a0a6;let _0x2cb831=_univerjs_core['Tools'][_0x4d9b79(0x356)](_0x51a0a6[_0x4d9b79(0x218)][0x0]);for(let _0x627dcd=0x0;_0x627dcd<_0x27f367[_0x4d9b79(0x3cb)];_0x627dcd++){const _0x90730f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x27f367[_0x627dcd]['unitId'],..._0x27f367[_0x627dcd][_0x4d9b79(0x39e)]}},_0x3ce9e4=this[_0x4d9b79(0x3ff)][_0x4d9b79(0x1e3)](_0x2cb831,_0x90730f,![]);if((0x0,_univerjs_pro_collaboration['isTransformMutationFailure'])(_0x3ce9e4))throw _0x3ce9e4[_0x4d9b79(0x408)];_0x2cb831=_0x3ce9e4['m1Prime'];}return{..._univerjs_core['Tools'][_0x4d9b79(0x356)](_0x51a0a6),'mutations':[_0x2cb831]};}['_transformHistoryAndStateStack'](_0x1103f5){const _0x1c6821=_0x25d1ec,{unitID:_0x1660ed}=_0x1103f5,{history:_0x53f05e,collaboration:_0x8252b8}=this['_docStateChangeManagerService'][_0x1c6821(0x3a0)](_0x1660ed);if(_0x53f05e[_0x1c6821(0x3cb)]===0x0&&_0x8252b8['length']===0x0)return;const _0x55030d=[],_0x535f5c=[];let _0xebf125=_univerjs_core['Tools'][_0x1c6821(0x356)](_0x1103f5[_0x1c6821(0x218)][0x0]),_0x4a0a79=_univerjs_core[_0x1c6821(0x231)]['deepClone'](_0x1103f5[_0x1c6821(0x218)][0x0]);for(let _0x4aede6=_0x53f05e['length']-0x1;_0x4aede6>=0x0;_0x4aede6--){const _0x455c63={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x53f05e[_0x4aede6][_0x1c6821(0x306)],..._0x53f05e[_0x4aede6]['undoState']}},_0xf3acbf={'id':_0x1c6821(0x2f2),'params':{'unitId':_0x53f05e[_0x4aede6][_0x1c6821(0x306)],..._0x53f05e[_0x4aede6][_0x1c6821(0x39e)]}},_0x7620b3=this[_0x1c6821(0x3ff)][_0x1c6821(0x1e3)](_0xebf125,_0x455c63,![]),_0x223757=this[_0x1c6821(0x3ff)][_0x1c6821(0x1e3)](_0x4a0a79,_0xf3acbf,![]);if((0x0,_univerjs_pro_collaboration[_0x1c6821(0x3d9)])(_0x7620b3))throw _0x7620b3[_0x1c6821(0x408)];if((0x0,_univerjs_pro_collaboration['isTransformMutationFailure'])(_0x223757))throw _0x223757[_0x1c6821(0x408)];_0x55030d[_0x1c6821(0x32f)]({..._0x53f05e[_0x4aede6],'undoState':_0x7620b3[_0x1c6821(0x256)]['params'],'redoState':_0x223757['m2Prime']['params']}),_0xebf125=_0x7620b3[_0x1c6821(0x206)],_0x4a0a79=_0x223757[_0x1c6821(0x206)];}_0xebf125=_univerjs_core[_0x1c6821(0x231)][_0x1c6821(0x356)](_0x1103f5[_0x1c6821(0x218)][0x0]),_0x4a0a79=_univerjs_core[_0x1c6821(0x231)]['deepClone'](_0x1103f5[_0x1c6821(0x218)][0x0]);for(let _0x392192=_0x8252b8[_0x1c6821(0x3cb)]-0x1;_0x392192>=0x0;_0x392192--){const _0x386bc1={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x8252b8[_0x392192][_0x1c6821(0x306)],..._0x8252b8[_0x392192][_0x1c6821(0x339)]}},_0x531e59={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x8252b8[_0x392192]['unitId'],..._0x8252b8[_0x392192][_0x1c6821(0x39e)]}},_0x5b1b78=this[_0x1c6821(0x3ff)][_0x1c6821(0x1e3)](_0xebf125,_0x386bc1,![]),_0x184a53=this[_0x1c6821(0x3ff)]['transformMutation'](_0x4a0a79,_0x531e59,![]);if((0x0,_univerjs_pro_collaboration['isTransformMutationFailure'])(_0x5b1b78))throw _0x5b1b78[_0x1c6821(0x408)];if((0x0,_univerjs_pro_collaboration[_0x1c6821(0x3d9)])(_0x184a53))throw _0x184a53['error'];_0x535f5c[_0x1c6821(0x32f)]({..._0x8252b8[_0x392192],'undoState':_0x5b1b78['m2Prime']['params'],'redoState':_0x184a53[_0x1c6821(0x256)][_0x1c6821(0x2d3)]}),_0xebf125=_0x5b1b78['m1Prime'],_0x4a0a79=_0x184a53[_0x1c6821(0x206)];}this[_0x1c6821(0x3fb)]['setStateCache'](_0x1660ed,{'history':_0x55030d,'collaboration':_0x535f5c});}};DocTransformStateCacheService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_core[_0x25d1ec(0x1a6)])),__decorateParam(0x1,_univerjs_pro_collaboration[_0x25d1ec(0x1ba)]),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_docs_ui[_0x25d1ec(0x1fe)]))],DocTransformStateCacheService);let DocTransformSelectionsService=class DocTransformSelectionsService{constructor(_0x125eff,_0x369118){const _0x475c14=_0x25d1ec;this['_injector']=_0x125eff,this[_0x475c14(0x3ff)]=_0x369118;}['transformSelections'](_0x38dfc6){const _0x17dff7=_0x25d1ec;var _0x31c390;const _0x383535=this['_injector']['get'](_univerjs_docs['DocSelectionManagerService']),_0x37c732=(_0x31c390=_0x383535[_0x17dff7(0x1ca)]())!==null&&_0x31c390!==void 0x0?_0x31c390:[];if(_0x37c732[_0x17dff7(0x3cb)]===0x0)return;const _0x3f3180=_0x38dfc6[_0x17dff7(0x417)],_0x1e742d=[{'id':_0x17dff7(0x2f2),'params':{'unitId':_0x3f3180,'actions':null,'textRanges':_0x37c732}}],_0x35748e=this['_transformService'][_0x17dff7(0x2c1)](_0x38dfc6,_0x1e742d);if(!(0x0,_univerjs_pro_collaboration[_0x17dff7(0x253)])(_0x35748e))throw _0x35748e[_0x17dff7(0x408)];const _0x4911c4=_0x35748e['m2Prime'][0x0][_0x17dff7(0x2d3)][_0x17dff7(0x2bc)];if(Array[_0x17dff7(0x278)](_0x4911c4)&&_0x4911c4[_0x17dff7(0x3cb)])_0x383535[_0x17dff7(0x213)](_0x4911c4,{'unitId':_0x3f3180,'subUnitId':_0x3f3180},![]);}};DocTransformSelectionsService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_core[_0x25d1ec(0x1a6)])),__decorateParam(0x1,_univerjs_pro_collaboration[_0x25d1ec(0x1ba)])],DocTransformSelectionsService);let CollaborationEntityUIController=class CollaborationEntityUIController extends _univerjs_core[_0x25d1ec(0x3dd)]{constructor(_0x11c4e6,_0x3d079c,_0x1816a0,_0x4fdf51,_0x3e0c59,_0x5e43bc,_0x4566ca,_0x4c84bb){const _0x16cd01=_0x25d1ec;super(),this[_0x16cd01(0x3fb)]=_0x11c4e6,this[_0x16cd01(0x1b3)]=_0x3d079c,this[_0x16cd01(0x1dd)]=_0x1816a0,this['_docTransformStateCacheService']=_0x4fdf51,this[_0x16cd01(0x3fd)]=_0x3e0c59,this[_0x16cd01(0x415)]=_0x5e43bc,this[_0x16cd01(0x380)]=_0x4566ca,this[_0x16cd01(0x33a)]=_0x4c84bb,_defineProperty(this,_0x16cd01(0x32c),new rxjs['BehaviorSubject'](_univerjs_pro_collaboration_client[_0x16cd01(0x1fb)][_0x16cd01(0x2ac)])),this['_initEntityListener']();}[_0x25d1ec(0x29a)](){const _0x41197e=_0x25d1ec;this['disposeWithMe'](this[_0x41197e(0x1b3)][_0x41197e(0x27b)][_0x41197e(0x297)](_0xbeba1=>{const _0x2571aa=_0x41197e,_0x8b5118=this[_0x2571aa(0x3fb)][_0x2571aa(0x3df)]['subscribe'](_0xda0b46=>{const _0x3df9d7=_0x2571aa;if(_0xda0b46==null)return;const {unitId:_0x17dbdc,redoState:_0x26b6fb,commandId:_0x11e44f}=_0xda0b46;if(_0x17dbdc!==_0xbeba1['unitID'])return;const _0xeacc3b={'id':_0x11e44f,'type':_univerjs_core[_0x3df9d7(0x200)]['MUTATION'],'params':{'unitId':_0x17dbdc,'actions':_0x26b6fb[_0x3df9d7(0x268)],'textRanges':null}};_0xbeba1[_0x3df9d7(0x2e0)](_0xeacc3b);});_0xbeba1[_0x2571aa(0x1ce)](_0x8b5118);if(_0xbeba1 instanceof _univerjs_pro_collaboration_client[_0x2571aa(0x2f0)])_0xbeba1[_0x2571aa(0x327)]({'onTransformIME':_0x29318e=>this[_0x2571aa(0x1dd)]['transformIMECache'](_0x29318e),'onTransformState':_0x2a9b66=>this['_docTransformStateCacheService'][_0x2571aa(0x1cb)](_0x2a9b66),'onTransformSelections':_0x22478c=>this[_0x2571aa(0x3fd)][_0x2571aa(0x42a)](_0x22478c),'onSyncEditingCollabCursor':_0x5a87c2=>this['_docSyncEditingCollabCursorService'][_0x2571aa(0x3e4)](_0x5a87c2),'onTransformRemoteChangesetByIMECache':_0x43cee6=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x43cee6),'onTransformRemoteChangesetByStateCache':_0x207a04=>this[_0x2571aa(0x2a9)][_0x2571aa(0x1f6)](_0x207a04)});}));}};CollaborationEntityUIController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_docs_ui[_0x25d1ec(0x1fe)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_pro_collaboration_client[_0x25d1ec(0x237)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(DocTransformIMECacheService)),__decorateParam(0x3,(0x0,_univerjs_core['Inject'])(DocTransformStateCacheService)),__decorateParam(0x4,(0x0,_univerjs_core[_0x25d1ec(0x353)])(DocTransformSelectionsService)),__decorateParam(0x5,(0x0,_univerjs_core[_0x25d1ec(0x353)])(DocSyncEditingCollabCursorService)),__decorateParam(0x6,_univerjs_ui['IMessageService']),__decorateParam(0x7,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_core[_0x25d1ec(0x247)]))],CollaborationEntityUIController);let FrontendLogController=class FrontendLogController extends _univerjs_core['Disposable']{constructor(_0x5d4bf4,_0x344c20,_0x4b242c,_0x26f180){const _0x126839=_0x25d1ec;super(),this[_0x126839(0x326)]=_0x5d4bf4,this[_0x126839(0x2d5)]=_0x344c20,this['_logService']=_0x4b242c,this[_0x126839(0x2b2)]=_0x26f180,_defineProperty(this,_0x126839(0x367),void 0x0),this['_init']();}[_0x25d1ec(0x1e7)](){const _0x24ecc1=_0x25d1ec;this[_0x24ecc1(0x346)](),this['_initUnhandledRejectionListener'](),this['_monkeyPatchLogService'](),this['_initUserListener']();}[_0x25d1ec(0x3fe)](){const _0x1d5b43=_0x25d1ec;this[_0x1d5b43(0x1ce)](this[_0x1d5b43(0x2b2)][_0x1d5b43(0x3f0)][_0x1d5b43(0x297)](_0x6917b6=>{const _0x7fc12a=_0x1d5b43;this[_0x7fc12a(0x367)]=_0x6917b6===null||_0x6917b6===void 0x0?void 0x0:_0x6917b6[_0x7fc12a(0x1d7)];}));}[_0x25d1ec(0x346)](){const _0x554269=_0x25d1ec,_0x125125=_0x5327c6=>{const _0x4cb047=_0x1f64;var _0x1cb7d8;this[_0x4cb047(0x364)]('error',_0x4cb047(0x2f7)+_0x5327c6[_0x4cb047(0x3c2)]+_0x4cb047(0x357)+_0x5327c6[_0x4cb047(0x2e4)]+':'+_0x5327c6[_0x4cb047(0x20e)]+':'+_0x5327c6[_0x4cb047(0x401)]+'\x0a'+(((_0x1cb7d8=_0x5327c6['error'])===null||_0x1cb7d8===void 0x0?void 0x0:_0x1cb7d8[_0x4cb047(0x1bd)])||''));};window[_0x554269(0x281)](_0x554269(0x408),_0x125125),this[_0x554269(0x1ce)](()=>{const _0x68871b=_0x554269;window[_0x68871b(0x3ce)]('error',_0x125125);});}[_0x25d1ec(0x428)](){const _0x480840=_0x25d1ec,_0x4e99aa=_0xcb1ef3=>{const _0x1bc4ff=_0x1f64;this[_0x1bc4ff(0x364)](_0x1bc4ff(0x408),_0x1bc4ff(0x436)+_0xcb1ef3[_0x1bc4ff(0x355)]);};window[_0x480840(0x281)](_0x480840(0x283),_0x4e99aa),this[_0x480840(0x1ce)](()=>{const _0x5a8227=_0x480840;window[_0x5a8227(0x3ce)]('unhandledrejection',_0x4e99aa);});}[_0x25d1ec(0x3c8)](){const _0x43a9f7=_0x25d1ec,_0x27e2eb=this[_0x43a9f7(0x305)][_0x43a9f7(0x408)][_0x43a9f7(0x32a)](this[_0x43a9f7(0x305)]);this[_0x43a9f7(0x305)][_0x43a9f7(0x408)]=(..._0x3baf66)=>{const _0x2fc331=_0x43a9f7,_0x24e6ff=_0x3baf66[_0x2fc331(0x27f)](_0x3f4bae=>_0x3f4bae instanceof Error?_0x3f4bae['message']+'\x0a'+_0x3f4bae[_0x2fc331(0x1bd)]:String(_0x3f4bae))['join']('\x20');this[_0x2fc331(0x364)](_0x2fc331(0x408),_0x2fc331(0x1c7)+_0x24e6ff),_0x27e2eb(..._0x3baf66);},this['disposeWithMe'](()=>{const _0xcf60ba=_0x43a9f7;this[_0xcf60ba(0x305)][_0xcf60ba(0x408)]=_0x27e2eb;});}[_0x25d1ec(0x364)](_0x51836d,_0x212fde){const _0x2fac5d=_0x25d1ec;try{const _0x49d13f={'userId':this['_memberID'],'logLabel':_0x51836d,'content':_0x212fde};this[_0x2fac5d(0x2d5)][_0x2fac5d(0x292)](_0x2fac5d(0x1a3),{'body':_0x49d13f})[_0x2fac5d(0x42e)](()=>{});}catch{}}};FrontendLogController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x25d1ec(0x1a6)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_network['HTTPService'])),__decorateParam(0x2,_univerjs_core[_0x25d1ec(0x392)]),__decorateParam(0x3,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_pro_collaboration_client[_0x25d1ec(0x42d)]))],FrontendLogController);function isCalculationStart(_0x24e991){const _0x1d0a60=_0x25d1ec;var _0x22966e,_0x19fd77;const _0x32248e=(_0x22966e=_0x24e991['stageInfo'])===null||_0x22966e===void 0x0?void 0x0:_0x22966e['stage'],_0x5b7f24=((_0x19fd77=_0x24e991[_0x1d0a60(0x3c4)])===null||_0x19fd77===void 0x0?void 0x0:_0x19fd77['totalFormulasToCalculate'])||0x0;return _0x32248e===_univerjs_engine_formula[_0x1d0a60(0x391)][_0x1d0a60(0x309)]&&_0x5b7f24>0x0;}function isCalculationComplete(_0x51c928){const _0x1c656e=_0x25d1ec;return _0x51c928['functionsExecutedState']===_univerjs_engine_formula[_0x1c656e(0x2ed)]['SUCCESS'];}const DEFAULT_FORMULA_CALCULATION_LIMIT_STATUS_URL=_0x25d1ec(0x36d),DEFAULT_FORMULA_CALCULATION_LIMIT_START_URL=_0x25d1ec(0x26e),DEFAULT_FORMULA_CALCULATION_LIMIT_DONE_URL=_0x25d1ec(0x1eb);let FormulaCalculationGuardService=class FormulaCalculationGuardService extends _univerjs_core['Disposable']{constructor(_0x3d8d50,_0x581f3b,_0x38cd7f,_0xc7fc80,_0x3528ea,_0x56921e,_0x391e44){const _0xdd2108=_0x25d1ec;super(),this[_0xdd2108(0x380)]=_0x3d8d50,this[_0xdd2108(0x418)]=_0x581f3b,this[_0xdd2108(0x1c4)]=_0x38cd7f,this[_0xdd2108(0x2d5)]=_0xc7fc80,this['_univerInstanceService']=_0x3528ea,this[_0xdd2108(0x305)]=_0x56921e,this['_localeService']=_0x391e44,_defineProperty(this,'_pollingInterval',null),_defineProperty(this,_0xdd2108(0x28c),0x0),_defineProperty(this,_0xdd2108(0x1bc),0x0),_defineProperty(this,'_taskIds',[]),_defineProperty(this,_0xdd2108(0x344),0x0),this[_0xdd2108(0x3c7)]();}[_0x25d1ec(0x3c7)](){const _0x3c7cf1=_0x25d1ec;this[_0x3c7cf1(0x1ce)](this[_0x3c7cf1(0x418)]['beforeCommandExecuted']((_0x1a6822,_0x411809)=>{const _0x207a32=_0x3c7cf1;var _0x10f8bd;if(_0x1a6822['id']!==_univerjs_engine_formula['SetFormulaCalculationStartMutation']['id'])return;const _0x421262=_0x1a6822[_0x207a32(0x2d3)];if(!this[_0x207a32(0x3bc)]((_0x10f8bd=_0x421262[_0x207a32(0x29d)])!==null&&_0x10f8bd!==void 0x0?_0x10f8bd:[]))return;if(!this[_0x207a32(0x1d2)]()){this[_0x207a32(0x1ae)](_0x1a6822,_0x411809),this['_showGuardMessage']();throw new _univerjs_core[(_0x207a32(0x1a2))]();}})),this[_0x3c7cf1(0x1ce)](this[_0x3c7cf1(0x418)][_0x3c7cf1(0x2be)]((_0x43d52c,_0x51abca)=>{const _0x33aab2=_0x3c7cf1;if(_0x43d52c['id']!==_univerjs_engine_formula[_0x33aab2(0x294)]['id'])return;const _0x43465d=_0x43d52c['params'];if(isCalculationStart(_0x43465d)){const _0x42a37f=(0x0,_univerjs_core['generateRandomId'])();this[_0x33aab2(0x404)][_0x33aab2(0x267)](_0x42a37f),this[_0x33aab2(0x304)](_0x42a37f);}else{if(isCalculationComplete(_0x43465d)){if(this[_0x33aab2(0x404)]['length']>0x0){const _0x1205b8=this['_taskIds']['shift']();this[_0x33aab2(0x2e8)](_0x1205b8);}}}}));}[_0x25d1ec(0x22d)](){const _0x1c7f24=_0x25d1ec;super[_0x1c7f24(0x22d)](),this[_0x1c7f24(0x1d9)](),this[_0x1c7f24(0x404)]=[],this[_0x1c7f24(0x1bc)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x1c7f24(0x344)]=0x0;}async[_0x25d1ec(0x1ae)](_0x23c89d,_0x35ca7e){const _0x585e77=_0x25d1ec,_0x10f1f2=0x1e,_0x30c85d=0x3e8;for(let _0x3cf9d9=0x0;_0x3cf9d9<_0x10f1f2;_0x3cf9d9++)try{await this[_0x585e77(0x243)]();if(this[_0x585e77(0x1d2)]()){this[_0x585e77(0x349)](_0x23c89d,_0x35ca7e),this[_0x585e77(0x380)]['show']({'content':this[_0x585e77(0x33a)]['t'](_0x585e77(0x295)),'type':_univerjs_design[_0x585e77(0x328)][_0x585e77(0x1b8)]});return;}await new Promise(_0x5cd710=>{const _0x4561be=_0x585e77;this['_pollingInterval']=window[_0x4561be(0x1f5)](_0x5cd710,_0x30c85d);});}catch(_0x22a6bd){this[_0x585e77(0x305)][_0x585e77(0x408)](_0x22a6bd);}this[_0x585e77(0x380)][_0x585e77(0x334)]({'content':this['_localeService']['t'](_0x585e77(0x3af)),'type':_univerjs_design[_0x585e77(0x328)][_0x585e77(0x3ea)]});}['_applyCommand'](_0xa9b80a,_0x46bac3){const _0x438607=_0x25d1ec;try{this['_commandService'][_0x438607(0x3bf)](_0xa9b80a['id'],_0xa9b80a[_0x438607(0x2d3)],_0x46bac3);}catch(_0x1a1961){this[_0x438607(0x305)][_0x438607(0x408)](_0x1a1961);}}[_0x25d1ec(0x225)](_0xe418f8,_0x473370){const _0x49ea13=_0x25d1ec;if(_0x473370<this[_0x49ea13(0x344)])return;this[_0x49ea13(0x344)]=_0x473370,this[_0x49ea13(0x28c)]=Number[_0x49ea13(0x3f7)](_0xe418f8[_0x49ea13(0x1d8)]),this[_0x49ea13(0x1bc)]=Number[_0x49ea13(0x3f7)](_0xe418f8['currentUsage']);}async[_0x25d1ec(0x304)](_0x1a9c6e){const _0x1e2d3c=_0x25d1ec,_0x307945=Date[_0x1e2d3c(0x3ef)]();try{var _0x31fe9c,_0x17d83c;const _0x2463e8=((_0x31fe9c=this[_0x1e2d3c(0x1c4)]['getConfig'](_univerjs_pro_collaboration_client[_0x1e2d3c(0x3cf)]))===null||_0x31fe9c===void 0x0?void 0x0:_0x31fe9c[_0x1e2d3c(0x3a1)])||DEFAULT_FORMULA_CALCULATION_LIMIT_START_URL,_0x55996d=(await this[_0x1e2d3c(0x2d5)][_0x1e2d3c(0x292)](_0x2463e8,{'body':JSON[_0x1e2d3c(0x30b)]({'taskId':_0x1a9c6e})}))['body'];if(((_0x17d83c=_0x55996d[_0x1e2d3c(0x408)])===null||_0x17d83c===void 0x0?void 0x0:_0x17d83c[_0x1e2d3c(0x2a6)])!==_univerjs_protocol['ErrorCode']['OK'])return;this['_setFormulaLimitStatus'](_0x55996d['limitInfo'],_0x307945);}catch(_0xfcaeaf){this[_0x1e2d3c(0x305)][_0x1e2d3c(0x408)](_0xfcaeaf);}}async[_0x25d1ec(0x243)](_0x474912){const _0x481ad9=_0x25d1ec,_0x46f2e6=Date[_0x481ad9(0x3ef)]();try{var _0x29c7f9,_0x5bec3e;const _0x1ff68d=((_0x29c7f9=this[_0x481ad9(0x1c4)]['getConfig'](_univerjs_pro_collaboration_client[_0x481ad9(0x3cf)]))===null||_0x29c7f9===void 0x0?void 0x0:_0x29c7f9[_0x481ad9(0x308)])||DEFAULT_FORMULA_CALCULATION_LIMIT_STATUS_URL,_0x235a40=_0x474912?_0x1ff68d+'?taskId='+encodeURIComponent(_0x474912):_0x1ff68d,_0x36d06e=(await this[_0x481ad9(0x2d5)]['get'](_0x235a40))['body'];if(((_0x5bec3e=_0x36d06e[_0x481ad9(0x408)])===null||_0x5bec3e===void 0x0?void 0x0:_0x5bec3e['code'])!==_univerjs_protocol[_0x481ad9(0x23f)]['OK'])return;this[_0x481ad9(0x225)](_0x36d06e['limitInfo'],_0x46f2e6);}catch(_0x13b019){this['_logService']['error'](_0x13b019);}}async[_0x25d1ec(0x2e8)](_0x204931){const _0xd5736a=_0x25d1ec,_0x53f797=Date[_0xd5736a(0x3ef)]();try{var _0x17075f,_0x12ea4f;const _0x496626=((_0x17075f=this[_0xd5736a(0x1c4)][_0xd5736a(0x2e7)](_univerjs_pro_collaboration_client[_0xd5736a(0x3cf)]))===null||_0x17075f===void 0x0?void 0x0:_0x17075f[_0xd5736a(0x325)])||DEFAULT_FORMULA_CALCULATION_LIMIT_DONE_URL,_0x289213=(await this[_0xd5736a(0x2d5)][_0xd5736a(0x292)](_0x496626,{'body':JSON[_0xd5736a(0x30b)]({'taskId':_0x204931})}))[_0xd5736a(0x20b)];if(((_0x12ea4f=_0x289213['error'])===null||_0x12ea4f===void 0x0?void 0x0:_0x12ea4f['code'])!==_univerjs_protocol['ErrorCode']['OK'])return;this['_setFormulaLimitStatus'](_0x289213['limitInfo'],_0x53f797);}catch(_0x1a8b4d){this['_logService'][_0xd5736a(0x408)](_0x1a8b4d);}}[_0x25d1ec(0x1d2)](){const _0x9753be=_0x25d1ec;if(this['_maxFormulaLimit']===0x0)return!![];return this['_maxFormulaLimit']-this[_0x9753be(0x1bc)]>0x0;}[_0x25d1ec(0x1d9)](){const _0x390477=_0x25d1ec;this['_pollingInterval']&&(clearTimeout(this[_0x390477(0x296)]),this[_0x390477(0x296)]=null);}['_showGuardMessage'](){const _0x2c0ce5=_0x25d1ec;this['_messageService'][_0x2c0ce5(0x334)]({'content':this[_0x2c0ce5(0x33a)]['t'](_0x2c0ce5(0x437)),'type':_univerjs_design['MessageType'][_0x2c0ce5(0x209)]});}[_0x25d1ec(0x3bc)](_0x4b387a){const _0x468ef5=_0x25d1ec;for(const _0x1241b0 of _0x4b387a){const {unitId:_0x4a2f28,sheetId:_0x4e6496,range:_0x5954c4}=_0x1241b0,_0x26caeb=this[_0x468ef5(0x3f6)]['getUnit'](_0x4a2f28);if(!_0x26caeb)continue;const _0x5a32cc=_0x26caeb[_0x468ef5(0x1a7)](_0x4e6496);if(!_0x5a32cc)continue;const _0x53e2cf=_0x5a32cc[_0x468ef5(0x1b2)]();for(let _0x35a7dd=_0x5954c4[_0x468ef5(0x403)];_0x35a7dd<=_0x5954c4[_0x468ef5(0x3a2)];_0x35a7dd++)for(let _0x3de217=_0x5954c4[_0x468ef5(0x383)];_0x3de217<=_0x5954c4[_0x468ef5(0x2b5)];_0x3de217++){const _0x3b846f=_0x53e2cf[_0x468ef5(0x3a7)](_0x35a7dd,_0x3de217);if(_0x3b846f&&((0x0,_univerjs_core[_0x468ef5(0x1fd)])(_0x3b846f['f'])||(0x0,_univerjs_core[_0x468ef5(0x1c9)])(_0x3b846f['si'])))return!![];}}return![];}};FormulaCalculationGuardService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_ui[_0x25d1ec(0x1ef)])),__decorateParam(0x1,_univerjs_core[_0x25d1ec(0x36b)]),__decorateParam(0x2,_univerjs_core[_0x25d1ec(0x3d4)]),__decorateParam(0x3,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_network[_0x25d1ec(0x26c)])),__decorateParam(0x4,_univerjs_core[_0x25d1ec(0x1f1)]),__decorateParam(0x5,_univerjs_core[_0x25d1ec(0x392)]),__decorateParam(0x6,(0x0,_univerjs_core['Inject'])(_univerjs_core['LocaleService']))],FormulaCalculationGuardService);let WebLocalCacheService=class WebLocalCacheService extends _univerjs_core[_0x25d1ec(0x3dd)]{constructor(_0x2521c6,_0x19aac5,_0x158e57){const _0x54c66b=_0x25d1ec;super(),this[_0x54c66b(0x1c4)]=_0x2521c6,this[_0x54c66b(0x239)]=_0x19aac5,this['_revisionService']=_0x158e57,_defineProperty(this,'_cachedData',new Map()),_defineProperty(this,_0x54c66b(0x322),new Map()),_defineProperty(this,_0x54c66b(0x1c0),![]);}[_0x25d1ec(0x382)](){const _0x25a904=_0x25d1ec;this[_0x25a904(0x1c0)]=!![];}[_0x25d1ec(0x1fa)](){const _0x4aeb74=_0x25d1ec;this[_0x4aeb74(0x1c0)]=![];}get['saveTaskMap'](){const _0x2c449b=_0x25d1ec;return this[_0x2c449b(0x322)];}['dispose'](){const _0x3a2b78=_0x25d1ec;this[_0x3a2b78(0x232)]()[_0x3a2b78(0x3a9)](()=>super[_0x3a2b78(0x22d)]());}async['loadOfflineData'](_0x30c9ac){const _0x27a7e9=_0x25d1ec;if(this[_0x27a7e9(0x1c0)])return null;return this[_0x27a7e9(0x239)]['getItem']((0x0,_univerjs_pro_collaboration_client['getLocalCacheKey'])(_0x30c9ac));}async[_0x25d1ec(0x3be)](_0x3e2a32,_0x308d1f){const _0x505f69=_0x25d1ec;return!!this[_0x505f69(0x239)][_0x505f69(0x379)](_0x3e2a32,_0x308d1f);}[_0x25d1ec(0x3b4)](_0x31ce80,_0x192a25,_0x44de3b,_0x2b1de2){const _0x127c3f=_0x25d1ec,_0x9767fe=this[_0x127c3f(0x366)][_0x127c3f(0x1e5)](_0x31ce80);this['_cachedData'][_0x127c3f(0x274)](_0x31ce80,{'unitID':_0x31ce80,'type':_0x192a25,'awaitingChangeset':_0x44de3b,'mutations':_0x2b1de2,'rev':_0x9767fe});if(!this[_0x127c3f(0x322)]['has'](_0x31ce80))this[_0x127c3f(0x2fc)](_0x31ce80);}[_0x25d1ec(0x2fc)](_0x8aa8a7){const _0x9845f4=_0x25d1ec,_0xfd909f=this[_0x9845f4(0x3b1)]();if(_0xfd909f===0x0)this[_0x9845f4(0x1c3)](_0x8aa8a7);else this[_0x9845f4(0x322)][_0x9845f4(0x274)](_0x8aa8a7,setTimeout(()=>this[_0x9845f4(0x1c3)](_0x8aa8a7),_0xfd909f));}[_0x25d1ec(0x3b1)](){const _0xd7da1e=_0x25d1ec;var _0x5499ee;return(_0x5499ee=this[_0xd7da1e(0x1c4)][_0xd7da1e(0x2e7)](_univerjs_pro_collaboration_client[_0xd7da1e(0x1c1)]))!==null&&_0x5499ee!==void 0x0?_0x5499ee:_univerjs_pro_collaboration_client[_0xd7da1e(0x31d)];}[_0x25d1ec(0x1c3)](_0x223340){const _0x824ce3=_0x25d1ec,_0xe0d74f=this['_saveTaskMap'][_0x824ce3(0x291)](_0x223340);if(_0xe0d74f!==void 0x0)window[_0x824ce3(0x34b)](_0xe0d74f);return this[_0x824ce3(0x239)][_0x824ce3(0x379)]((0x0,_univerjs_pro_collaboration_client[_0x824ce3(0x2f6)])(_0x223340),this['_cachedData'][_0x824ce3(0x291)](_0x223340))[_0x824ce3(0x3a9)](()=>this['_saveTaskMap'][_0x824ce3(0x2de)](_0x223340));}async[_0x25d1ec(0x232)](){const _0x348bfb=_0x25d1ec,_0xd672c4=[];this['_saveTaskMap']['forEach']((_0x3f825e,_0x24f160)=>{const _0x47690f=_0x1f64;window[_0x47690f(0x34b)](_0x3f825e),_0xd672c4['push'](this[_0x47690f(0x1c3)](_0x24f160)[_0x47690f(0x3a9)](()=>{const _0x472b72=_0x47690f;this[_0x472b72(0x322)]['delete'](_0x24f160);}));}),await Promise[_0x348bfb(0x1b6)](_0xd672c4);}};WebLocalCacheService=__decorate([__decorateParam(0x0,_univerjs_core[_0x25d1ec(0x3d4)]),__decorateParam(0x1,_univerjs_core[_0x25d1ec(0x2d9)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_pro_collaboration[_0x25d1ec(0x31e)]))],WebLocalCacheService);var WebURLService=class extends _univerjs_core[_0x25d1ec(0x2e3)]{constructor(){const _0x18643b=_0x25d1ec;super(),_defineProperty(this,'urlChange$',void 0x0),this[_0x18643b(0x32d)]=(0x0,rxjs[_0x18643b(0x416)])(window,_0x18643b(0x38f))['pipe']((0x0,rxjs[_0x18643b(0x2d7)])(this[_0x18643b(0x348)]),(0x0,rxjs[_0x18643b(0x335)])(0x1),(0x0,rxjs[_0x18643b(0x35e)])(void 0x0));}[_0x25d1ec(0x2da)](_0x1f7337,_0x1bb1f2,_0xf4ada8=![]){const _0x3ef0ef=_0x25d1ec,_0x353df3=new URL(window[_0x3ef0ef(0x24d)][_0x3ef0ef(0x3a8)]);_0x353df3[_0x3ef0ef(0x3b6)][_0x3ef0ef(0x274)](_0x1f7337,_0x1bb1f2);if(_0xf4ada8)window[_0x3ef0ef(0x22c)][_0x3ef0ef(0x425)]('','',_0x353df3[_0x3ef0ef(0x333)]());else window[_0x3ef0ef(0x22c)][_0x3ef0ef(0x372)]('','',_0x353df3[_0x3ef0ef(0x333)]());}['removeParam'](_0x5e5a7a,_0x36b8c2=![]){const _0x5e8df5=_0x25d1ec,_0x43a894=new URL(window['location'][_0x5e8df5(0x3a8)]);_0x43a894[_0x5e8df5(0x3b6)]['delete'](_0x5e5a7a);if(_0x36b8c2)window[_0x5e8df5(0x22c)]['replaceState']('','',_0x43a894[_0x5e8df5(0x333)]());else window['history'][_0x5e8df5(0x372)]('','',_0x43a894[_0x5e8df5(0x333)]());}[_0x25d1ec(0x2b3)](_0x58dbbd){const _0x265efc=_0x25d1ec;var _0x46c423;return(_0x46c423=new URL(window[_0x265efc(0x24d)][_0x265efc(0x3a8)])[_0x265efc(0x3b6)][_0x265efc(0x291)](_0x58dbbd))!==null&&_0x46c423!==void 0x0?_0x46c423:void 0x0;}};let UniverCollaborationClientUIPlugin=class UniverCollaborationClientUIPlugin extends _univerjs_core['Plugin']{constructor(_0x3685d4=defaultPluginConfig,_0x3fc220,_0x46c955,_0x3d9846){const _0x4bf850=_0x25d1ec;super(),this['_config']=_0x3685d4,this[_0x4bf850(0x3b9)]=_0x3fc220,this['_injector']=_0x46c955,this['_configService']=_0x3d9846;const {..._0x2ea3d9}=(0x0,_univerjs_core[_0x4bf850(0x39c)])({},defaultPluginConfig,this[_0x4bf850(0x1f0)]);this[_0x4bf850(0x1c4)]['setConfig'](PLUGIN_CONFIG_KEY,_0x2ea3d9);}[_0x25d1ec(0x30d)](){const _0x258f96=_0x25d1ec;this[_0x258f96(0x258)](),this['_initDependencies']();}['onRendered'](){this['_registerRenderDependencies']();}[_0x25d1ec(0x258)](){const _0x36b3f8=_0x25d1ec;var _0x220ff2;const _0x4eb9dd=[[ColorAssignService],[FormulaCalculationGuardService],[DocTransformSelectionsService],[DocTransformIMECacheService],[DocTransformStateCacheService],[DocSyncEditingCollabCursorService],[IURLService,{'useClass':WebURLService}],[_univerjs_network[_0x36b3f8(0x30f)],{'useClass':_univerjs_network[_0x36b3f8(0x27e)]}],[_univerjs_pro_collaboration_client[_0x36b3f8(0x23a)],{'useClass':WebLocalCacheService}],[DesktopCollaborationStatusDisplayController],[CollaborationEntityUIController],[CollaborationClientUIController],[CollabCursorController],[ImagePasteController],[CollaborationDataLoaderController]];if(this[_0x36b3f8(0x1f0)][_0x36b3f8(0x329)])_0x4eb9dd[_0x36b3f8(0x267)]([FrontendLogController]);(0x0,_univerjs_core[_0x36b3f8(0x2bb)])(this['_injector'],(0x0,_univerjs_core[_0x36b3f8(0x3b7)])(_0x4eb9dd,(_0x220ff2=this[_0x36b3f8(0x1f0)])===null||_0x220ff2===void 0x0?void 0x0:_0x220ff2[_0x36b3f8(0x3ad)]));}[_0x25d1ec(0x2ae)](){const _0x5c4aa5=_0x25d1ec;this['disposeWithMe'](this[_0x5c4aa5(0x3b9)][_0x5c4aa5(0x249)](_univerjs_core['UniverInstanceType'][_0x5c4aa5(0x1d1)],[DocCollabCursorRenderController])),this[_0x5c4aa5(0x1ce)](this['_renderManagerService'][_0x5c4aa5(0x249)](_univerjs_core['UniverInstanceType'][_0x5c4aa5(0x227)],[SheetCollabCursorRenderController]));}[_0x25d1ec(0x1d4)](){const _0x2d30b9=_0x25d1ec;(0x0,_univerjs_core[_0x2d30b9(0x370)])(this['_injector'],[[CollabCursorController],[DesktopCollaborationStatusDisplayController],[CollaborationEntityUIController],[CollaborationClientUIController],[CollaborationDataLoaderController],[FormulaCalculationGuardService]]);if(this[_0x2d30b9(0x1f0)]['enableFrontendLog'])(0x0,_univerjs_core[_0x2d30b9(0x370)])(this[_0x2d30b9(0x326)],[[FrontendLogController]]);}};_defineProperty(UniverCollaborationClientUIPlugin,_0x25d1ec(0x3f2),_0x25d1ec(0x216)),_defineProperty(UniverCollaborationClientUIPlugin,_0x25d1ec(0x1ab),name),_defineProperty(UniverCollaborationClientUIPlugin,_0x25d1ec(0x40a),version),UniverCollaborationClientUIPlugin=__decorate([(0x0,_univerjs_core['DependentOn'])(_univerjs_pro_collaboration_client[_0x25d1ec(0x273)]),__decorateParam(0x1,_univerjs_engine_render[_0x25d1ec(0x303)]),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x25d1ec(0x1a6)])),__decorateParam(0x3,_univerjs_core[_0x25d1ec(0x3d4)])],UniverCollaborationClientUIPlugin);let BrowserCollaborationSocketService=class BrowserCollaborationSocketService extends _univerjs_pro_collaboration_client[_0x25d1ec(0x375)]{constructor(_0x41c5ab,_0x35eede,_0x1b93ed,_0x2a1a9a,_0x120ad7){super(_0x41c5ab,_0x35eede,_0x1b93ed,_0x2a1a9a,_0x120ad7);}async[_0x25d1ec(0x389)](_0x56c0ae){const _0x205627=_0x25d1ec,_0x5999c2=await this[_0x205627(0x2ee)](),_0x3007e8=this['_createSocketURL'](_0x56c0ae,_0x5999c2);return this[_0x205627(0x269)](_0x3007e8);}[_0x25d1ec(0x261)](_0x422085,_0x5c8722){const _0x1b5c89=_0x25d1ec,_0x17b9e8=typeof window==='undefined'?new URL(_0x422085):new URL(_0x422085,window[_0x1b5c89(0x24d)][_0x1b5c89(0x2c4)]);_0x17b9e8[_0x1b5c89(0x3b6)]['set'](_0x1b5c89(0x40f),_0x5c8722);const _0xf933d9=typeof window===_0x1b5c89(0x3a6)?new URLSearchParams():new URLSearchParams(window[_0x1b5c89(0x24d)]['search']);return _0xf933d9['get'](_0x1b5c89(0x2bf))&&_0x17b9e8['searchParams'][_0x1b5c89(0x274)](_0x1b5c89(0x2bf),_0xf933d9[_0x1b5c89(0x291)](_0x1b5c89(0x2bf))),_0x17b9e8[_0x1b5c89(0x333)]();}async[_0x25d1ec(0x2ee)](){const _0x583b95=_0x25d1ec;var _0x265afe,_0x4c1dfe,_0x5c6d5c;const _0x4c6050=this[_0x583b95(0x1c4)][_0x583b95(0x2e7)](_univerjs_pro_collaboration_client[_0x583b95(0x3cf)]),_0x5e50c2=(_0x265afe=_0x4c6050===null||_0x4c6050===void 0x0?void 0x0:_0x4c6050[_0x583b95(0x275)])!==null&&_0x265afe!==void 0x0?_0x265afe:_univerjs_pro_collaboration_client['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x4c1dfe=(_0x5c6d5c=(await this[_0x583b95(0x2d5)]['get'](_0x5e50c2,{'headers':{'Content-Type':_0x583b95(0x345)}}))[_0x583b95(0x20b)])===null||_0x5c6d5c===void 0x0?void 0x0:_0x5c6d5c[_0x583b95(0x362)])!==null&&_0x4c1dfe!==void 0x0?_0x4c1dfe:'';}};BrowserCollaborationSocketService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_core[_0x25d1ec(0x1a6)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_network['HTTPService'])),__decorateParam(0x2,_univerjs_core[_0x25d1ec(0x3d4)]),__decorateParam(0x3,_univerjs_core[_0x25d1ec(0x392)]),__decorateParam(0x4,_univerjs_pro_collaboration['ISnapshotServerService'])],BrowserCollaborationSocketService);let RemoteUniscriptService=class RemoteUniscriptService extends _univerjs_core['Disposable']{constructor(_0x30a9a7,_0x2fa847,_0x443206){const _0x4e50bf=_0x25d1ec;super(),this[_0x4e50bf(0x396)]=_0x30a9a7,this[_0x4e50bf(0x2d5)]=_0x2fa847,this[_0x4e50bf(0x1c4)]=_0x443206;}async[_0x25d1ec(0x3bd)](_0x3d573a,_0x12c265,_0x2d16da,..._0x5cbc0d){const _0x544a44=_0x25d1ec;var _0x2b1523,_0xd3bd33,_0x36d45c,_0x59cf42;const _0x465129=this[_0x544a44(0x396)]['getFocusedUnit']();if(!_0x465129)throw new Error(_0x544a44(0x3b8));const _0x34d7d2=((_0x2b1523=this[_0x544a44(0x1c4)][_0x544a44(0x2e7)](_univerjs_pro_collaboration_client[_0x544a44(0x429)]))!==null&&_0x2b1523!==void 0x0?_0x2b1523:_univerjs_pro_collaboration_client[_0x544a44(0x1c6)])+'/'+_0x3d573a+'/run/'+_0x12c265,_0x518bc8={'scriptId':_0x3d573a,'runId':(_0xd3bd33=new URL(window['location'][_0x544a44(0x3a8)])['searchParams'][_0x544a44(0x291)](_0x544a44(0x2bf)))!==null&&_0xd3bd33!==void 0x0?_0xd3bd33:'','function':_0x12c265,'unitId':_0x465129[_0x544a44(0x394)](),'argsOfFunction':JSON[_0x544a44(0x30b)](_0x5cbc0d),'invokeId':(_0x36d45c=_0x2d16da[_0x544a44(0x41e)])!==null&&_0x36d45c!==void 0x0?_0x36d45c:'','executionId':(_0x59cf42=_0x2d16da['executionId'])!==null&&_0x59cf42!==void 0x0?_0x59cf42:''};try{const _0x394137=await this['_httpService'][_0x544a44(0x292)](_0x34d7d2,{'body':_0x518bc8});if(_0x394137[_0x544a44(0x20b)][_0x544a44(0x408)]&&_0x394137[_0x544a44(0x20b)][_0x544a44(0x408)]['code']!==_univerjs_protocol['ErrorCode']['OK'])return _0x544a44(0x35d);return _0x394137[_0x544a44(0x20b)][_0x544a44(0x2a0)];}catch{return _0x544a44(0x35d);}}};RemoteUniscriptService=__decorate([__decorateParam(0x0,_univerjs_core[_0x25d1ec(0x1f1)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x25d1ec(0x353)])(_univerjs_network[_0x25d1ec(0x26c)])),__decorateParam(0x2,_univerjs_core[_0x25d1ec(0x3d4)])],RemoteUniscriptService);const HEARTBEAT_INTERVAL=0x7530,ACTIVE_UNIT_EVENT_CHANNEL=_0x25d1ec(0x2fd);var WebBrowserSingleActiveUnitService=class extends _univerjs_core[_0x25d1ec(0x3dd)]{constructor(){const _0x4b6395=_0x25d1ec;super(),_defineProperty(this,_0x4b6395(0x426),(0x0,_univerjs_core[_0x4b6395(0x240)])()),_defineProperty(this,_0x4b6395(0x260),new Set()),_defineProperty(this,_0x4b6395(0x288),new Map()),_defineProperty(this,_0x4b6395(0x31c),null),_defineProperty(this,_0x4b6395(0x2a5),new Map()),_defineProperty(this,_0x4b6395(0x369),new Map()),this['_init']();}[_0x25d1ec(0x22d)](){const _0x4ea072=_0x25d1ec;super[_0x4ea072(0x22d)](),this[_0x4ea072(0x2a5)][_0x4ea072(0x2d0)]((_0x2e12a1,_0x1df94d)=>this[_0x4ea072(0x3f4)](_0x1df94d));if(this[_0x4ea072(0x31c)])window[_0x4ea072(0x397)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x1d1b77){const _0x5b03c8=_0x25d1ec;return this[_0x5b03c8(0x409)](_0x1d1b77)[_0x5b03c8(0x284)]((0x0,rxjs[_0x5b03c8(0x3e8)])());}[_0x25d1ec(0x332)](_0x77ebfa){const _0xa7c3e3=_0x25d1ec;if(this[_0xa7c3e3(0x260)][_0xa7c3e3(0x1b0)]===0x0)this[_0xa7c3e3(0x28f)]();this['_selfUnitIDs'][_0xa7c3e3(0x1a4)](_0x77ebfa),this[_0xa7c3e3(0x347)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x77ebfa],'isForwarded':![]});}[_0x25d1ec(0x368)](_0x234fcd){const _0x28f160=_0x25d1ec;this[_0x28f160(0x260)][_0x28f160(0x2de)](_0x234fcd);if(this['_selfUnitIDs'][_0x28f160(0x1b0)]===0x0&&this[_0x28f160(0x31c)])window[_0x28f160(0x397)](this['_heartbeatTimer']);}[_0x25d1ec(0x1e7)](){const _0x45a227=_0x25d1ec;this['disposeWithMe']((0x0,_univerjs_core['toDisposable'])((0x0,rxjs[_0x45a227(0x416)])(window,_0x45a227(0x2b8))['subscribe'](_0x42da27=>{const _0xb94f75=_0x45a227;if(_0x42da27['key']!==ACTIVE_UNIT_EVENT_CHANNEL||!_0x42da27[_0xb94f75(0x321)])return;const _0x134402=JSON[_0xb94f75(0x34e)](_0x42da27[_0xb94f75(0x321)]);this['_handleEvent'](_0x134402);}))),window['addEventListener'](_0x45a227(0x290),()=>this['_send']({'type':0x1,'memberID':this[_0x45a227(0x426)],'unitIDs':Array[_0x45a227(0x38a)](this[_0x45a227(0x260)])}));}[_0x25d1ec(0x1dc)](_0x1af478){const _0x278dc6=_0x25d1ec;switch(_0x1af478['type']){case 0x0:this[_0x278dc6(0x26b)](_0x1af478);break;case 0x1:this[_0x278dc6(0x241)](_0x1af478);break;case 0x2:this['_handleHeartbeatEvent'](_0x1af478);break;}}[_0x25d1ec(0x26b)](_0x48414f){const _0x5af73d=_0x25d1ec,{unitIDs:_0x43870e,memberID:_0x14a2d5,isForwarded:_0x59d4d2}=_0x48414f;_0x43870e['forEach'](_0x1ba39d=>{const _0x86ccc8=_0x1f64;if(!_0x59d4d2&&this[_0x86ccc8(0x288)][_0x86ccc8(0x1b7)](_0x1ba39d))this[_0x86ccc8(0x409)](_0x1ba39d)[_0x86ccc8(0x312)](_univerjs_pro_collaboration_client[_0x86ccc8(0x1e1)]['OTHER_CLIENTS_EDITING']);if(!this['_unitOnClients'][_0x86ccc8(0x1b7)](_0x1ba39d)||!this['_unitOnClients']['get'](_0x1ba39d)[_0x86ccc8(0x1b7)](_0x14a2d5)){const _0x593238=this[_0x86ccc8(0x288)]['get'](_0x1ba39d)||new Set();_0x593238[_0x86ccc8(0x1a4)](_0x14a2d5),this[_0x86ccc8(0x288)][_0x86ccc8(0x274)](_0x1ba39d,_0x593238),this[_0x86ccc8(0x3ba)](_0x14a2d5);}});if(!_0x59d4d2)this[_0x5af73d(0x347)]({'type':0x0,'memberID':this[_0x5af73d(0x426)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!![]});}[_0x25d1ec(0x3ba)](_0x3eaf31){const _0x1267ef=_0x25d1ec;this[_0x1267ef(0x3f4)](_0x3eaf31);const _0x6bc2cf=window['setTimeout'](()=>{const _0x3beab9=_0x1267ef;this[_0x3beab9(0x288)][_0x3beab9(0x2d0)](_0x3da4a0=>{const _0x114c40=_0x3beab9;_0x3da4a0[_0x114c40(0x2de)](_0x3eaf31);});},HEARTBEAT_INTERVAL*0x2);this[_0x1267ef(0x2a5)][_0x1267ef(0x274)](_0x3eaf31,_0x6bc2cf);}[_0x25d1ec(0x3f4)](_0x30d9ae){const _0x37c400=_0x25d1ec;if(this[_0x37c400(0x2a5)][_0x37c400(0x1b7)](_0x30d9ae)){const _0x274a6d=this['_clearOtherTimers']['get'](_0x30d9ae);if(_0x274a6d)window[_0x37c400(0x34b)](_0x274a6d);this[_0x37c400(0x2a5)]['set'](_0x30d9ae,null);}}['_handleLeaveEvent'](_0x4f853d){const _0x13b3c4=_0x25d1ec,{memberID:_0x20dba3,unitIDs:_0x1163ca}=_0x4f853d;_0x1163ca[_0x13b3c4(0x2d0)](_0x3bfcab=>{const _0xf30be6=_0x13b3c4;var _0x39c02c;const _0xffd8e4=this[_0xf30be6(0x288)][_0xf30be6(0x291)](_0x3bfcab);if(!_0xffd8e4)return;_0xffd8e4[_0xf30be6(0x2de)](_0x20dba3),(_0x39c02c=this[_0xf30be6(0x409)](_0x3bfcab))===null||_0x39c02c===void 0x0||_0x39c02c['next'](_0xffd8e4[_0xf30be6(0x1b0)]===0x0?_univerjs_pro_collaboration_client['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:_univerjs_pro_collaboration_client[_0xf30be6(0x1e1)][_0xf30be6(0x361)]);}),this['_removeClearOtherTimer'](_0x20dba3);}[_0x25d1ec(0x21a)](_0x13c04e){const _0x169549=_0x25d1ec;this[_0x169549(0x3ba)](_0x13c04e[_0x169549(0x1d7)]);}['_send'](_0x3fe5ad){const _0x7e971b=_0x25d1ec;localStorage[_0x7e971b(0x379)](ACTIVE_UNIT_EVENT_CHANNEL,JSON[_0x7e971b(0x30b)](_0x3fe5ad));}[_0x25d1ec(0x28f)](){const _0x39e68a=_0x25d1ec;this[_0x39e68a(0x31c)]=window[_0x39e68a(0x2b7)](()=>{const _0x3bb6ab=_0x39e68a;this[_0x3bb6ab(0x347)]({'type':0x2,'memberID':this[_0x3bb6ab(0x426)]});},HEARTBEAT_INTERVAL);}[_0x25d1ec(0x409)](_0x15a9af){const _0x39c94c=_0x25d1ec;if(!this['_unitStatus'][_0x39c94c(0x1b7)](_0x15a9af))this['_unitStatus'][_0x39c94c(0x274)](_0x15a9af,new rxjs['BehaviorSubject'](_univerjs_pro_collaboration_client[_0x39c94c(0x1e1)][_0x39c94c(0x3db)]));return this[_0x39c94c(0x369)]['get'](_0x15a9af);}};Object['defineProperty'](exports,_0x25d1ec(0x330),{'enumerable':!![],'get':function(){return BrowserCollaborationSocketService;}}),Object[_0x25d1ec(0x2a7)](exports,_0x25d1ec(0x422),{'enumerable':!![],'get':function(){return CollaborationDataLoaderController;}}),Object[_0x25d1ec(0x2a7)](exports,'DesktopCollaborationStatusDisplayController',{'enumerable':!![],'get':function(){return DesktopCollaborationStatusDisplayController;}}),exports[_0x25d1ec(0x3d3)]=IURLService,Object[_0x25d1ec(0x2a7)](exports,_0x25d1ec(0x421),{'enumerable':!![],'get':function(){return RemoteUniscriptService;}}),exports[_0x25d1ec(0x230)]=SheetCollabCursorShape,Object[_0x25d1ec(0x2a7)](exports,_0x25d1ec(0x414),{'enumerable':!![],'get':function(){return UniverCollaborationClientUIPlugin;}}),exports[_0x25d1ec(0x235)]=WebBrowserSingleActiveUnitService,exports['WebURLService']=WebURLService;
|
|
1
|
+
const _0x289474=_0xe480;(function(_0x1e92dc,_0x4d0f8b){const _0x16c8bb=_0xe480,_0x3d714f=_0x1e92dc();while(!![]){try{const _0xf7c89=-parseInt(_0x16c8bb(0x242))/0x1*(-parseInt(_0x16c8bb(0x2b1))/0x2)+parseInt(_0x16c8bb(0x8c))/0x3*(parseInt(_0x16c8bb(0x101))/0x4)+-parseInt(_0x16c8bb(0x19a))/0x5+-parseInt(_0x16c8bb(0x17e))/0x6+parseInt(_0x16c8bb(0x2ec))/0x7+parseInt(_0x16c8bb(0x15a))/0x8*(-parseInt(_0x16c8bb(0x24b))/0x9)+-parseInt(_0x16c8bb(0x227))/0xa*(-parseInt(_0x16c8bb(0x2d6))/0xb);if(_0xf7c89===_0x4d0f8b)break;else _0x3d714f['push'](_0x3d714f['shift']());}catch(_0x4b6fac){_0x3d714f['push'](_0x3d714f['shift']());}}}(_0x1ae0,0x37b28),Object[_0x289474(0x1eb)](exports,Symbol[_0x289474(0x2ca)],{'value':_0x289474(0xa3)}));let e=require(`@univerjs-pro/collaboration-client`),t=require(`@univerjs/core`),n=require(`@univerjs/ui`),r=require(`rxjs`),i=require(`@univerjs/design`),a=require(`@univerjs/icons`),o=require(`react`),s=require(`react/jsx-runtime`),c=require(`@univerjs/rpc`),l=require(`@univerjs/sheets`),u=require(`@univerjs/engine-render`),d=require(`@univerjs/network`),f=require(`@univerjs/docs-ui`),p=require(`@univerjs/drawing`),m=require(`@univerjs-pro/collaboration`),h=require(`@univerjs/docs`),g=require(`@univerjs/engine-formula`),_=require(`rxjs/operators`),v=require(`@univerjs/sheets-ui`),y=require(`@univerjs/protocol`);function b(_0x3101c4){const _0x31a0ff=_0x289474;switch(_0x3101c4){case e[_0x31a0ff(0xd7)][_0x31a0ff(0x8f)]:return{'icon':(0x0,s[_0x31a0ff(0xfb)])(a[_0x31a0ff(0x213)],{}),'colorClass':_0x31a0ff(0xf9),'i18nKey':'collabStatus.offline','tooltipKey':_0x31a0ff(0x11e),'clickable':!0x0,'indicator':'static'};case e['CollaborationStatus'][_0x31a0ff(0x14c)]:return{'icon':(0x0,s[_0x31a0ff(0xfb)])(a['OffLineIcon'],{}),'colorClass':'univer-text-orange-500','i18nKey':_0x31a0ff(0x29c),'clickable':!0x1,'indicator':_0x31a0ff(0x13f)};case e[_0x31a0ff(0xd7)][_0x31a0ff(0x14b)]:return{'icon':(0x0,s[_0x31a0ff(0xfb)])(a[_0x31a0ff(0xff)],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x31a0ff(0xe7),'clickable':!0x1,'indicator':_0x31a0ff(0x29b)};case e[_0x31a0ff(0xd7)]['NOT_COLLAB']:return{'icon':(0x0,s[_0x31a0ff(0xfb)])(a[_0x31a0ff(0x1bf)],{}),'colorClass':_0x31a0ff(0x198),'i18nKey':_0x31a0ff(0xbe),'clickable':!0x1,'indicator':_0x31a0ff(0x13f)};case e['CollaborationStatus'][_0x31a0ff(0x216)]:case e[_0x31a0ff(0xd7)][_0x31a0ff(0x19f)]:return{'icon':(0x0,s[_0x31a0ff(0xfb)])(a['LoadingMultiIcon'],{}),'colorClass':_0x31a0ff(0xd6),'i18nKey':'collabStatus.syncing','clickable':!0x1,'indicator':_0x31a0ff(0x29b)};case e[_0x31a0ff(0xd7)][_0x31a0ff(0x12a)]:case e[_0x31a0ff(0xd7)]['PENDING']:return{'icon':(0x0,s[_0x31a0ff(0xfb)])(a['OnLineIcon'],{}),'colorClass':_0x31a0ff(0x211),'i18nKey':'collabStatus.synced','clickable':!0x1,'indicator':_0x31a0ff(0x13f)};}}function x(_0x548125){const _0x2fd454=_0x289474;let {status$:_0xb10829}=_0x548125,_0x45feb9=(0x0,n[_0x2fd454(0x1a3)])(_0xb10829,e[_0x2fd454(0xd7)][_0x2fd454(0x2fc)]),_0x49b932=(0x0,n[_0x2fd454(0xc7)])(t[_0x2fd454(0x2c8)]),_0x1fcd40=(0x0,n['useDependency'])(e['CollaborationSessionService']),_0x5cccfb=(0x0,o[_0x2fd454(0x267)])(()=>b(_0x45feb9),[_0x45feb9]),_0xe2a517=_0x45feb9!==e[_0x2fd454(0xd7)]['OFFLINE'],_0x4ac85e=_0x49b932['t'](_0x5cccfb[_0x2fd454(0x20b)]),_0x4da29a=_0x5cccfb['tooltipKey']?_0x49b932['t'](_0x5cccfb[_0x2fd454(0x1e1)]):_0x4ac85e,_0x4a0398=(0x0,o[_0x2fd454(0x158)])(()=>{const _0x182de4=_0x2fd454;_0xe2a517||_0x1fcd40[_0x182de4(0x1f3)]();},[_0xe2a517,_0x1fcd40]),_0x1fdec8=(0x0,o[_0x2fd454(0x158)])(_0x26b844=>{const _0x3de53f=_0x2fd454;!_0xe2a517&&(_0x26b844[_0x3de53f(0x1e2)]==='Enter'||_0x26b844[_0x3de53f(0x1e2)]==='\x20')&&(_0x26b844[_0x3de53f(0x15f)](),_0x1fcd40['reconnect']());},[_0xe2a517,_0x1fcd40]),_0x52f3a9=(0x0,s[_0x2fd454(0xfb)])('span',{'className':(0x0,i[_0x2fd454(0x13d)])(_0x2fd454(0x24d),_0x2fd454(0x131),_0x5cccfb[_0x2fd454(0x305)],{'univer-animate-spin':_0x5cccfb['indicator']===_0x2fd454(0x29b),'univer-animate-pulse':_0x5cccfb[_0x2fd454(0x195)]===_0x2fd454(0xb9)}),'aria-hidden':_0x2fd454(0xd8),'children':_0x5cccfb[_0x2fd454(0xd4)]}),_0x3b7b54=(0x0,s[_0x2fd454(0xfb)])('span',{'className':(0x0,i[_0x2fd454(0x13d)])('univer-flex\x20univer-items-center\x20univer-justify-center',_0x2fd454(0xb7),_0x2fd454(0xe6),_0x2fd454(0x1a0),_0x2fd454(0x9d),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x5cccfb[_0x2fd454(0x2b7)],'univer-cursor-default':!_0x5cccfb[_0x2fd454(0x2b7)]}),'children':_0x52f3a9});return _0x5cccfb[_0x2fd454(0x2b7)]?(0x0,s['jsx'])(i[_0x2fd454(0x209)],{'title':_0x4da29a,'placement':_0x2fd454(0x132),'children':(0x0,s[_0x2fd454(0xfb)])('button',{'type':_0x2fd454(0x1a5),'onClick':_0x4a0398,'onKeyDown':_0x1fdec8,'className':(0x0,i[_0x2fd454(0x13d)])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x2fd454(0x297),_0x2fd454(0x2f0),_0x2fd454(0xc3)),'aria-label':_0x4ac85e+_0x2fd454(0xbd)+_0x4da29a,'role':_0x2fd454(0x23d),'aria-live':_0x2fd454(0x29d),'aria-atomic':_0x2fd454(0xd8),'children':_0x3b7b54})}):(0x0,s[_0x2fd454(0xfb)])(i[_0x2fd454(0x209)],{'title':_0x4da29a,'placement':_0x2fd454(0x132),'children':(0x0,s[_0x2fd454(0xfb)])(_0x2fd454(0x1b6),{'className':(0x0,i['clsx'])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x2fd454(0x297),_0x2fd454(0x2f0)),'aria-label':_0x4ac85e,'role':_0x2fd454(0x23d),'aria-live':_0x2fd454(0x29d),'aria-atomic':_0x2fd454(0xd8),'children':_0x3b7b54})});}function S(_0x3fabb2){'@babel/helpers - typeof';const _0x2b1c64=_0x289474;return S=typeof Symbol==_0x2b1c64(0x16c)&&typeof Symbol[_0x2b1c64(0x22c)]==_0x2b1c64(0x11c)?function(_0x502712){return typeof _0x502712;}:function(_0x649130){const _0x38de35=_0x2b1c64;return _0x649130&&typeof Symbol==_0x38de35(0x16c)&&_0x649130[_0x38de35(0x148)]===Symbol&&_0x649130!==Symbol['prototype']?'symbol':typeof _0x649130;},S(_0x3fabb2);}function ee(_0x511b0c,_0x886e5f){const _0x1ac4ad=_0x289474;if(S(_0x511b0c)!=_0x1ac4ad(0x16a)||!_0x511b0c)return _0x511b0c;var _0x37bbef=_0x511b0c[Symbol[_0x1ac4ad(0x15b)]];if(_0x37bbef!==void 0x0){var _0x49edcb=_0x37bbef['call'](_0x511b0c,_0x886e5f||'default');if(S(_0x49edcb)!=_0x1ac4ad(0x16a))return _0x49edcb;throw TypeError(_0x1ac4ad(0x30b));}return(_0x886e5f===_0x1ac4ad(0x241)?String:Number)(_0x511b0c);}function te(_0xc0e210){const _0x12aa12=_0x289474;var _0x43ac7e=ee(_0xc0e210,_0x12aa12(0x241));return S(_0x43ac7e)==_0x12aa12(0x11c)?_0x43ac7e:_0x43ac7e+'';}function C(_0x407fe9,_0x3b61e7,_0x3e93f1){const _0xb2e777=_0x289474;return(_0x3b61e7=te(_0x3b61e7))in _0x407fe9?Object[_0xb2e777(0x1eb)](_0x407fe9,_0x3b61e7,{'value':_0x3e93f1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x407fe9[_0x3b61e7]=_0x3e93f1,_0x407fe9;}function w(_0x380199,_0x3ddc22){return function(_0x4825c1,_0x1b8847){_0x3ddc22(_0x4825c1,_0x1b8847,_0x380199);};}function T(_0x1944ee,_0x1a64dc,_0xb13069,_0x22b9fb){const _0x4b3049=_0x289474;var _0x5df7c7=arguments['length'],_0x3e9bc0=_0x5df7c7<0x3?_0x1a64dc:_0x22b9fb===null?_0x22b9fb=Object[_0x4b3049(0x10d)](_0x1a64dc,_0xb13069):_0x22b9fb,_0x4980e7;if(typeof Reflect=='object'&&typeof Reflect[_0x4b3049(0x80)]=='function')_0x3e9bc0=Reflect[_0x4b3049(0x80)](_0x1944ee,_0x1a64dc,_0xb13069,_0x22b9fb);else{for(var _0x5166e2=_0x1944ee[_0x4b3049(0xeb)]-0x1;_0x5166e2>=0x0;_0x5166e2--)(_0x4980e7=_0x1944ee[_0x5166e2])&&(_0x3e9bc0=(_0x5df7c7<0x3?_0x4980e7(_0x3e9bc0):_0x5df7c7>0x3?_0x4980e7(_0x1a64dc,_0xb13069,_0x3e9bc0):_0x4980e7(_0x1a64dc,_0xb13069))||_0x3e9bc0);}return _0x5df7c7>0x3&&_0x3e9bc0&&Object[_0x4b3049(0x1eb)](_0x1a64dc,_0xb13069,_0x3e9bc0),_0x3e9bc0;}let E=class extends t['Disposable']{constructor(_0x11e50d,_0x1511d5,_0x132523,_0x3b0031){const _0x23dd87=_0x289474;super(),this[_0x23dd87(0x1db)]=_0x11e50d,this['_injector']=_0x1511d5,this[_0x23dd87(0x238)]=_0x132523,this['_uiPartsService']=_0x3b0031,C(this,_0x23dd87(0x83),new r[(_0x23dd87(0x2a9))](e[_0x23dd87(0xd7)][_0x23dd87(0x2fc)])),this[_0x23dd87(0x1ff)](),this[_0x23dd87(0x113)]();}[_0x289474(0x113)](){const _0x80924a=_0x289474;this[_0x80924a(0x27e)](this[_0x80924a(0x1db)][_0x80924a(0x237)][_0x80924a(0x261)]((0x0,r[_0x80924a(0x8b)])(()=>{const _0x369e56=_0x80924a;let _0x20d2a7=this[_0x369e56(0x1db)][_0x369e56(0x178)]();return _0x20d2a7?this[_0x369e56(0x238)]['getCollabEntity$'](_0x20d2a7[_0x369e56(0x2e5)]()):(0x0,r['of'])(null);}),(0x0,r['switchMap'])(_0x131543=>_0x131543?_0x131543[_0x80924a(0x285)]:(0x0,r['of'])(e['CollaborationStatus'][_0x80924a(0x2fc)])))[_0x80924a(0x2e3)](_0x5c8649=>{const _0x1b321e=_0x80924a;this['_status$'][_0x1b321e(0x203)](_0x5c8649);}));}[_0x289474(0x1ff)](){const _0x4e8b79=_0x289474;this['disposeWithMe'](this[_0x4e8b79(0x1a8)][_0x4e8b79(0x272)](n[_0x4e8b79(0x232)][_0x4e8b79(0x1dd)],()=>(0x0,n[_0x4e8b79(0x2e4)])(ne({'status$':this[_0x4e8b79(0x83)][_0x4e8b79(0x1aa)]()}),this[_0x4e8b79(0x99)])));}};E=T([w(0x0,t[_0x289474(0x191)]),w(0x1,(0x0,t[_0x289474(0xde)])(t[_0x289474(0xab)])),w(0x2,(0x0,t['Inject'])(e[_0x289474(0x1b2)])),w(0x3,n[_0x289474(0xc9)])],E);function ne(_0x3b2d72){let {status$:_0x2fe092}=_0x3b2d72;return function(){const _0x3f76cf=_0xe480;return(0x0,s[_0x3f76cf(0xfb)])(x,{'status$':_0x2fe092});};}const D=(0x0,t[_0x289474(0x97)])(_0x289474(0x2a4));let O=class extends t['RxDisposable']{constructor(_0x24b14b,_0x8cf3cc,_0x2d951d,_0x1a0aa6,_0xc91285){const _0x1a6dd7=_0x289474;super(),this[_0x1a6dd7(0x14a)]=_0x24b14b,this['_logService']=_0x8cf3cc,this[_0x1a6dd7(0x228)]=_0x2d951d,this[_0x1a6dd7(0x103)]=_0x1a0aa6,_0xc91285?_0xc91285==null||_0xc91285[_0x1a6dd7(0xbb)]()['then'](()=>this[_0x1a6dd7(0x258)]()):(this[_0x1a6dd7(0xd1)][_0x1a6dd7(0x1ac)](_0x1a6dd7(0x1cc),_0x1a6dd7(0x88)),this[_0x1a6dd7(0x258)]());}async[_0x289474(0x258)](){const _0x236050=_0x289474;let _0x478ac0=this[_0x236050(0x14a)]['getParam'](_0x236050(0x202)),_0x49a3e9=this[_0x236050(0x14a)][_0x236050(0x1e7)]('type'),_0x13f5f6=this[_0x236050(0x14a)][_0x236050(0x1e7)](_0x236050(0x2c9));if(!_0x478ac0||!_0x49a3e9){this[_0x236050(0xd1)][_0x236050(0x1ac)](_0x236050(0x1cc),_0x236050(0x130));return;}let _0x16ea47=await this[_0x236050(0x103)]['loadUnit'](_0x478ac0,Number(_0x49a3e9),_0x13f5f6);_0x16ea47&&_0x16ea47 instanceof t[_0x236050(0x246)]&&this[_0x236050(0x13c)](_0x16ea47);}async[_0x289474(0x13c)](_0x48c415){const _0x44ed56=_0x289474;await this[_0x44ed56(0x149)](_0x48c415),_0x48c415[_0x44ed56(0x1a6)]['pipe']((0x0,r['takeUntil'])(this[_0x44ed56(0x17f)]))[_0x44ed56(0x2e3)](_0x1c8a2c=>{_0x1c8a2c&&this['_updateURLWithCurrentState'](_0x1c8a2c);}),this[_0x44ed56(0x14a)][_0x44ed56(0x102)][_0x44ed56(0x261)]((0x0,r['takeUntil'])(this[_0x44ed56(0x17f)]))[_0x44ed56(0x2e3)](()=>this[_0x44ed56(0x149)](_0x48c415));}['_updateURLWithCurrentState'](_0xb829f3,_0x115b6a=!0x1){const _0x5425b0=_0x289474;let _0xc2f012=this[_0x5425b0(0x14a)][_0x5425b0(0x1e7)](_0x5425b0(0x2c9));_0xb829f3[_0x5425b0(0x2c1)]()!==_0xc2f012&&this['_urlService'][_0x5425b0(0x2e8)](_0x5425b0(0x2c9),_0xb829f3[_0x5425b0(0x2c1)](),_0x115b6a);}async[_0x289474(0x149)](_0x1cace8){const _0x565c4=_0x289474;var _0x268843;let _0x1e297d=this[_0x565c4(0x14a)][_0x565c4(0x1e7)](_0x565c4(0x2c9));if(!_0x1e297d||!_0x1cace8[_0x565c4(0xd3)](_0x1e297d)){let _0x4970b5=_0x1cace8['getUnhiddenWorksheets']()[0x0],_0x5515ea=_0x1cace8[_0x565c4(0xd3)](_0x4970b5);if(!_0x5515ea)return;this[_0x565c4(0x135)](_0x5515ea,!0x0),await this['_commandService'][_0x565c4(0x10f)](l[_0x565c4(0x126)]['id'],{'unitId':_0x1cace8[_0x565c4(0x2e5)](),'subUnitId':_0x4970b5});return;}((_0x268843=_0x1cace8[_0x565c4(0x184)]())==null?void 0x0:_0x268843['getSheetId']())!==_0x1e297d&&await this[_0x565c4(0x228)][_0x565c4(0x10f)](l[_0x565c4(0x126)]['id'],{'unitId':_0x1cace8[_0x565c4(0x2e5)](),'subUnitId':_0x1e297d});}};O=T([w(0x0,D),w(0x1,t[_0x289474(0x94)]),w(0x2,t['ICommandService']),w(0x3,(0x0,t[_0x289474(0xde)])(e[_0x289474(0x275)])),w(0x4,(0x0,t[_0x289474(0x1c1)])(c['IRemoteInstanceService']))],O);var re=_0x289474(0xe2),ie=_0x289474(0x2b8);let k=class extends t[_0x289474(0x141)]{constructor(_0x1f4eee,_0x18e075){const _0x18a375=_0x289474;super(),this[_0x18a375(0x174)]=_0x1f4eee,this[_0x18a375(0x9b)]=_0x18e075,this[_0x18a375(0x258)]();}[_0x289474(0x258)](){const _0x6e65b=_0x289474;let _0x433d37=this;this[_0x6e65b(0x27e)](this[_0x6e65b(0x174)]['addClipboardHook']({'onBeforePasteImage':async _0x55f877=>{const _0x1493f7=_0x6e65b;let _0x2fb5bd=await _0x433d37[_0x1493f7(0x9b)][_0x1493f7(0x22f)](_0x55f877);return _0x2fb5bd?{'source':_0x2fb5bd[_0x1493f7(0x247)],'imageSourceType':_0x2fb5bd[_0x1493f7(0xdd)]}:null;}}));}};k=T([w(0x0,f[_0x289474(0x108)]),w(0x1,p[_0x289474(0x10a)])],k);const ae=[_0x289474(0x139),_0x289474(0x1b4),'green.600','red.300',_0x289474(0x16f),_0x289474(0x217)];var A=class extends t['Disposable']{constructor(..._0x301248){const _0x58afc4=_0x289474;super(..._0x301248),C(this,_0x58afc4(0x2dc),new Map()),C(this,_0x58afc4(0x243),0x0);}[_0x289474(0x1d2)](_0x2032a0){const _0x3eef10=_0x289474;if(this['_assignedColors'][_0x3eef10(0x10c)](_0x2032a0))return this['_assignedColors'][_0x3eef10(0x293)](_0x2032a0);let _0x53ac24=ae[this[_0x3eef10(0x243)]];return this[_0x3eef10(0x243)]=(this[_0x3eef10(0x243)]+0x1)%ae[_0x3eef10(0xeb)],this['_assignedColors'][_0x3eef10(0x2b4)](_0x2032a0,_0x53ac24),_0x53ac24;}};function j(_0x27ffec){let _0x20db9c='';for(let _0x532524 of _0x27ffec){let {startOffset:_0x136ede,endOffset:_0x326602,isActive:_0x4b018e,rangeType:_0x18524b,segmentId:_0x13000d,segmentPage:_0x5b0cbf}=_0x532524;_0x20db9c['length']&&(_0x20db9c+=','),_0x20db9c+=_0x136ede+':'+_0x326602+':'+(_0x4b018e?'1':'0')+':'+_0x18524b+':'+_0x13000d+':'+_0x5b0cbf;}return _0x20db9c;}function oe(_0x34e916){const _0x1bb020=_0x289474;let _0x8d13a8=_0x34e916[_0x1bb020(0x255)](','),_0x1ab755=[];for(let _0x1eda2a of _0x8d13a8){let [_0x6f5496,_0x5255f4,_0x2c58c1,_0x37c337,_0x164687,_0x97007c]=_0x1eda2a[_0x1bb020(0x255)](':');_0x1ab755[_0x1bb020(0x170)]({'startOffset':Number(_0x6f5496),'endOffset':Number(_0x5255f4),'collapsed':_0x6f5496===_0x5255f4,'isActive':_0x2c58c1==='1','rangeType':_0x37c337===t[_0x1bb020(0xd9)][_0x1bb020(0x26e)]?t[_0x1bb020(0xd9)][_0x1bb020(0x26e)]:t[_0x1bb020(0xd9)][_0x1bb020(0x11b)],'segmentId':typeof _0x164687==_0x1bb020(0x241)?String(_0x164687):'','segmentPage':Number(_0x97007c==null?-0x1:_0x97007c)});}return _0x1ab755[_0x1bb020(0x226)](_0x31c545=>_0x31c545[_0x1bb020(0x29f)])||(_0x1ab755[0x0]['isActive']=!0x0),_0x1ab755;}var M=class extends t[_0x289474(0x141)]{constructor(..._0x4b6eb1){const _0x577348=_0x289474;super(..._0x4b6eb1),C(this,_0x577348(0x2e0),new r[(_0x577348(0x2a9))](null)),C(this,_0x577348(0x200),this[_0x577348(0x2e0)][_0x577348(0x1aa)]());}[_0x289474(0x15d)](_0x27162d){const _0x13a2cf=_0x289474;let {unitID:_0x4b588a,memberID:_0x2758f3,textRanges:_0x5383c8}=_0x27162d,_0x4334f3=j(_0x5383c8);if(_0x4334f3==='')return;let _0x34976d={'unitID':_0x4b588a,'memberID':_0x2758f3,'selection':_0x4334f3};this['_collabCursorState$'][_0x13a2cf(0x203)](_0x34976d);}};let N=class extends t[_0x289474(0x141)]{get[_0x289474(0x8e)](){const _0xe2ade7=_0x289474;return this['_cursorInfo$'][_0xe2ade7(0x122)]();}get[_0x289474(0x271)](){const _0x4995df=_0x289474;return this[_0x4995df(0x1f8)][_0x4995df(0x122)]();}constructor(_0x4fffc5,_0x3e14d0,_0x4264ca,_0x500dd3,_0x144891,_0x250cfc,_0x5dd4a2,_0x400428,_0x13be11){const _0x3aec7d=_0x289474;super(),this['unitID']=_0x4fffc5,this[_0x3aec7d(0x14e)]=_0x3e14d0,this[_0x3aec7d(0x99)]=_0x4264ca,this['_colorAssignService']=_0x500dd3,this[_0x3aec7d(0x201)]=_0x144891,this['_syncEditingCollabCursorService']=_0x250cfc,this[_0x3aec7d(0x300)]=_0x5dd4a2,this[_0x3aec7d(0x1db)]=_0x400428,this['_commandService']=_0x13be11,C(this,_0x3aec7d(0x2c6),!0x1),C(this,_0x3aec7d(0x258),!0x1),C(this,'_cursorInfo$',new r[(_0x3aec7d(0x2a9))](new Map())),C(this,'cursorInfo$',this[_0x3aec7d(0xdc)][_0x3aec7d(0x1aa)]()),C(this,_0x3aec7d(0x1f8),new r[(_0x3aec7d(0x2a9))]([])),C(this,_0x3aec7d(0xf5),this[_0x3aec7d(0x1f8)][_0x3aec7d(0x261)]((0x0,r[_0x3aec7d(0x2ef)])(0x12c))),C(this,'_updateLocalCursor',(0x0,t[_0x3aec7d(0x1b1)])(_0x17d399=>{const _0x5eafb2=_0x3aec7d;let _0xbb4826={'eventID':m['CollaborationEvent'][_0x5eafb2(0xa1)],'data':{'unitID':this[_0x5eafb2(0xfa)],'memberID':this[_0x5eafb2(0x14e)][_0x5eafb2(0x21f)](),'selection':j(_0x17d399)}};this[_0x5eafb2(0x14e)][_0x5eafb2(0x218)](_0xbb4826,this['unitID']);},0x64));}[_0x289474(0x9a)](){const _0x521b80=_0x289474;super[_0x521b80(0x9a)](),this[_0x521b80(0xdc)][_0x521b80(0x203)](new Map()),this['_cursorInfo$'][_0x521b80(0x1a1)](),this[_0x521b80(0x1f8)][_0x521b80(0x203)]([]),this['_roomMembers$'][_0x521b80(0x1a1)]();}[_0x289474(0x93)](){const _0x8c0b53=_0x289474;this[_0x8c0b53(0x258)]||(this[_0x8c0b53(0x258)]=!0x0,this['_session'][_0x8c0b53(0x1d3)][_0x8c0b53(0x261)]((0x0,r[_0x8c0b53(0x177)])(this[_0x8c0b53(0x17f)]))[_0x8c0b53(0x2e3)](_0x415d9e=>{const _0xae1923=_0x8c0b53;_0x415d9e===e[_0xae1923(0x115)][_0xae1923(0x303)]?this[_0xae1923(0x1de)]():this['_toggleOffline']();}),this[_0x8c0b53(0x14e)][_0x8c0b53(0x1af)][_0x8c0b53(0x261)]((0x0,r[_0x8c0b53(0x177)])(this[_0x8c0b53(0x17f)]))[_0x8c0b53(0x2e3)](_0x1be7e2=>{const _0x120c74=_0x8c0b53;let _0xca71ba=_0x1be7e2[_0x120c74(0x206)];_0xca71ba===m[_0x120c74(0x82)][_0x120c74(0xa1)]&&this['_onCursorUpdate'](_0x1be7e2),_0xca71ba===m['CollaborationEvent'][_0x120c74(0x7a)]&&this['_onCursorDelete'](_0x1be7e2);}),this[_0x8c0b53(0x27e)](this[_0x8c0b53(0x228)][_0x8c0b53(0xc2)](_0x1e8912=>{const _0x229b09=_0x8c0b53;let _0x31698b=_0x1e8912[_0x229b09(0x168)];_0x31698b!=null&&this[_0x229b09(0x2c6)]&&_0x1e8912['id']===h[_0x229b09(0x2ee)]['id']&&_0x31698b[_0x229b09(0x136)]===this[_0x229b09(0xfa)]&&_0x31698b[_0x229b09(0x1b3)]===!0x1&&_0x31698b[_0x229b09(0x306)][_0x229b09(0xeb)]>0x0&&this['_updateLocalCursor'](_0x31698b[_0x229b09(0x306)]);})),this[_0x8c0b53(0x23b)][_0x8c0b53(0x200)][_0x8c0b53(0x261)]((0x0,r[_0x8c0b53(0x177)])(this[_0x8c0b53(0x17f)]))['subscribe'](_0x5ddd1c=>{const _0x3d238b=_0x8c0b53;if((_0x5ddd1c==null?void 0x0:_0x5ddd1c['unitID'])!==this[_0x3d238b(0xfa)])return;let _0x47ecc6={'eventID':m['CollaborationEvent'][_0x3d238b(0xa1)],'data':_0x5ddd1c};this['_onCursorUpdate'](_0x47ecc6);}),this['disposeWithMe'](this[_0x8c0b53(0x228)][_0x8c0b53(0xc2)](_0x528c40=>{const _0x338a11=_0x8c0b53;if(_0x528c40[_0x338a11(0x168)]==null)return;let _0x57108e=_0x528c40[_0x338a11(0x168)];if(_0x528c40['id']!==h['RichTextEditingMutation']['id']||_0x57108e[_0x338a11(0x136)]!==this['unitID'])return;let _0x1d70fa={'id':'doc.mutation.rich-text-editing','params':_0x57108e},_0x22fe0e=this[_0x338a11(0x8e)];for(let [_0x1b6a07,_0x5d6149]of _0x22fe0e){let _0x3d307e={'id':_0x338a11(0x2eb),'params':{'unitId':this[_0x338a11(0xfa)],'actions':null,'textRanges':_0x5d6149['ranges']}},_0x4d684b=this[_0x338a11(0x300)][_0x338a11(0x107)](_0x1d70fa,_0x3d307e,!0x1);if((0x0,m[_0x338a11(0x219)])(_0x4d684b))throw _0x4d684b['error'];_0x22fe0e[_0x338a11(0x2b4)](_0x1b6a07,{..._0x5d6149,'ranges':_0x4d684b[_0x338a11(0x1e4)][_0x338a11(0x168)][_0x338a11(0x2f5)]});}queueMicrotask(()=>{const _0x55d591=_0x338a11;this['_cursorInfo$'][_0x55d591(0x203)](_0x22fe0e);});})));}[_0x289474(0xcf)](_0x31f042){const _0x350fcd=_0x289474;var _0x55f79f,_0x4eaffd;let {memberID:_0x1af5c7,selection:_0x12426d}=_0x31f042[_0x350fcd(0x2cf)],_0x532034=oe(_0x12426d),_0x3ed636=(_0x55f79f=(_0x4eaffd=this['_memberService'][_0x350fcd(0x21a)](this[_0x350fcd(0xfa)],_0x1af5c7))==null?void 0x0:_0x4eaffd[_0x350fcd(0x159)])==null?_0x350fcd(0xd2):_0x55f79f,_0x125714={'color':this[_0x350fcd(0x1c3)][_0x350fcd(0x1d2)](_0x1af5c7),'name':_0x3ed636,'ranges':_0x532034},_0x2b7284=this[_0x350fcd(0x8e)];_0x2b7284[_0x350fcd(0x2b4)](_0x1af5c7,_0x125714),this[_0x350fcd(0xdc)][_0x350fcd(0x203)](_0x2b7284);}[_0x289474(0x142)](_0x22e319){const _0x14b608=_0x289474;let {memberID:_0x33853e}=_0x22e319[_0x14b608(0x2cf)],_0x31b462=this[_0x14b608(0x8e)];_0x31b462['delete'](_0x33853e),this[_0x14b608(0xdc)][_0x14b608(0x203)](_0x31b462);}['_toggleOnline'](){const _0x1fbf87=_0x289474;var _0x13779c;if(this[_0x1fbf87(0x2c6)]=!0x0,((_0x13779c=this[_0x1fbf87(0x1db)][_0x1fbf87(0x178)]())==null?void 0x0:_0x13779c[_0x1fbf87(0x2e5)]())!==this[_0x1fbf87(0xfa)])return;let _0x293e3f=this['_injector'][_0x1fbf87(0x293)](h[_0x1fbf87(0x9e)])[_0x1fbf87(0x12b)]();Array['isArray'](_0x293e3f)&&_0x293e3f[_0x1fbf87(0xeb)]>0x0&&this[_0x1fbf87(0x185)](_0x293e3f);}[_0x289474(0x153)](){const _0xe853e2=_0x289474;this[_0xe853e2(0x2c6)]=!0x1;}};N=T([w(0x2,(0x0,t['Inject'])(t['Injector'])),w(0x3,(0x0,t[_0x289474(0xde)])(A)),w(0x4,(0x0,t[_0x289474(0xde)])(e[_0x289474(0x1bb)])),w(0x5,(0x0,t['Inject'])(M)),w(0x6,m[_0x289474(0xd5)]),w(0x7,t[_0x289474(0x191)]),w(0x8,t[_0x289474(0xc0)])],N);const se=()=>{let _0x1e3117=[],_0x120c32=!0x1;return _0x4c63e7=>{const _0x1a48c2=_0xe480;_0x1e3117[_0x1a48c2(0x170)](_0x4c63e7),_0x120c32||(_0x120c32=!0x0,setTimeout(()=>{_0x1e3117['forEach'](_0x40653e=>_0x40653e()),_0x1e3117=[],_0x120c32=!0x1;}));};};let P=class extends t[_0x289474(0x141)]{get[_0x289474(0x8e)](){const _0x398053=_0x289474;return this[_0x398053(0xdc)]['getValue']();}get[_0x289474(0x271)](){const _0x43d5c7=_0x289474;return this[_0x43d5c7(0x1f8)]['getValue']();}constructor(_0xad1c28,_0x498df7,_0x3fcffd,_0x459cd8,_0x2b3081,_0x83944b,_0x31ae37,_0x196ccb){const _0x249efc=_0x289474;super(),this[_0x249efc(0xfa)]=_0xad1c28,this[_0x249efc(0x14e)]=_0x498df7,this[_0x249efc(0x99)]=_0x3fcffd,this[_0x249efc(0x1c3)]=_0x459cd8,this[_0x249efc(0x201)]=_0x2b3081,this['_univerInstanceService']=_0x83944b,this[_0x249efc(0x228)]=_0x31ae37,this[_0x249efc(0x96)]=_0x196ccb,C(this,_0x249efc(0x2c6),!0x1),C(this,_0x249efc(0x258),!0x1),C(this,_0x249efc(0xdc),new r[(_0x249efc(0x2a9))](new Map())),C(this,_0x249efc(0x146),this[_0x249efc(0xdc)]['asObservable']()),C(this,_0x249efc(0x1f8),new r[(_0x249efc(0x2a9))]([])),C(this,'roomMembers$',this[_0x249efc(0x1f8)][_0x249efc(0x261)]((0x0,r['debounceTime'])(0x12c))),C(this,_0x249efc(0x185),(0x0,t['debounce'])((_0x4e3bac,_0x4e3b1f)=>{const _0x2acd20=_0x249efc;let _0x18be9f={'eventID':m[_0x2acd20(0x82)][_0x2acd20(0xa1)],'data':{'unitID':this[_0x2acd20(0xfa)],'memberID':this[_0x2acd20(0x14e)][_0x2acd20(0x21f)](),'selection':(0x0,g[_0x2acd20(0x27f)])(_0x4e3bac,_0x4e3b1f['range'])}};this[_0x2acd20(0x14e)][_0x2acd20(0x218)](_0x18be9f,this[_0x2acd20(0xfa)]);},0x64));}['dispose'](){const _0x270f2c=_0x289474;super[_0x270f2c(0x9a)](),this[_0x270f2c(0xdc)][_0x270f2c(0x203)](new Map()),this['_cursorInfo$']['complete'](),this[_0x270f2c(0x1f8)][_0x270f2c(0x203)]([]),this[_0x270f2c(0x1f8)][_0x270f2c(0x1a1)]();}['init'](){const _0x35052a=_0x289474;this['_init']||(this[_0x35052a(0x258)]=!0x0,this[_0x35052a(0x14e)][_0x35052a(0x1d3)]['pipe']((0x0,r[_0x35052a(0x177)])(this[_0x35052a(0x17f)]))['subscribe'](_0x5729b6=>{const _0x1037bf=_0x35052a;_0x5729b6===e[_0x1037bf(0x115)][_0x1037bf(0x303)]?this[_0x1037bf(0x1de)]():this[_0x1037bf(0x153)]();}),this[_0x35052a(0x14e)]['event$'][_0x35052a(0x261)]((0x0,r[_0x35052a(0x177)])(this[_0x35052a(0x17f)]))['subscribe'](_0x9b862=>{const _0x57633d=_0x35052a;let _0x29c32f=_0x9b862[_0x57633d(0x206)];_0x29c32f===m[_0x57633d(0x82)]['UPDATE_CURSOR']&&this[_0x57633d(0xcf)](_0x9b862),_0x29c32f===m['CollaborationEvent'][_0x57633d(0x7a)]&&this[_0x57633d(0x142)](_0x9b862);}),this[_0x35052a(0x163)](),this[_0x35052a(0x27e)](this[_0x35052a(0x228)][_0x35052a(0xc2)](_0x43d437=>{const _0x29456f=_0x35052a;if(this[_0x29456f(0x2c6)]&&_0x43d437['id']===l[_0x29456f(0x9c)]['id']&&_0x43d437[_0x29456f(0x168)][_0x29456f(0x136)]===this[_0x29456f(0xfa)]){let _0x360bf0=_0x43d437[_0x29456f(0x168)];this[_0x29456f(0x185)](_0x360bf0[_0x29456f(0x10b)],_0x360bf0[_0x29456f(0x1d4)][0x0]);}})));}[_0x289474(0xcf)](_0x4c2e22){const _0x48e771=_0x289474;var _0x167047,_0x39e741;let {memberID:_0x596370,selection:_0x2a40ff}=_0x4c2e22[_0x48e771(0x2cf)],{sheetName:_0x2dc8ba,range:_0x4d4341}=(0x0,g[_0x48e771(0xe5)])(_0x2a40ff),_0x4b8f17={'name':(_0x167047=(_0x39e741=this[_0x48e771(0x201)][_0x48e771(0x21a)](this[_0x48e771(0xfa)],_0x596370))==null?void 0x0:_0x39e741[_0x48e771(0x159)])==null?_0x48e771(0xd2):_0x167047,'range':this[_0x48e771(0x2e7)](_0x2dc8ba,_0x4d4341),'sheetID':_0x2dc8ba,'color':this[_0x48e771(0x1c3)][_0x48e771(0x1d2)](_0x596370),'selection':_0x2a40ff},_0x4022f8=this['cursorInfo'];_0x4022f8[_0x48e771(0x2b4)](_0x596370,_0x4b8f17),this['_cursorInfo$'][_0x48e771(0x203)](_0x4022f8);}[_0x289474(0x142)](_0x4d7f59){const _0x4ed734=_0x289474;let {memberID:_0x31a1bb}=_0x4d7f59['data'],_0x4ec862=this[_0x4ed734(0x8e)];_0x4ec862[_0x4ed734(0x260)](_0x31a1bb),this['_cursorInfo$'][_0x4ed734(0x203)](_0x4ec862);}[_0x289474(0x2e7)](_0x27a566,_0x37dcd7){const _0x2df3f1=_0x289474;var _0x54b5bd;let _0x50a8aa=(_0x54b5bd=this[_0x2df3f1(0x1db)][_0x2df3f1(0xe1)](this['unitID']))==null||(_0x54b5bd=_0x54b5bd[_0x2df3f1(0xd3)](_0x27a566))==null?void 0x0:_0x54b5bd[_0x2df3f1(0x117)]();return(_0x50a8aa==null?void 0x0:_0x50a8aa['find'](_0x398adf=>t[_0x2df3f1(0x13e)][_0x2df3f1(0xa7)](_0x398adf,_0x37dcd7)))||_0x37dcd7;}[_0x289474(0x163)](){const _0x59d543=_0x289474;let _0x54f425=new t[(_0x59d543(0x2db))](),_0x4b8fc1=se(),_0x934c5a=()=>{_0x54f425['dispose']();let _0x4887b5=(_0x2328ca,_0x595aa5,_0x1a8f14,_0x354bc1)=>{const _0x52608a=_0xe480;let _0x31ac0f=[];switch(_0x2328ca['id']){case l[_0x52608a(0x134)][_0x52608a(0x24a)]:_0x31ac0f=(0x0,l[_0x52608a(0xb6)])(_0x2328ca,_0x354bc1);break;case l[_0x52608a(0x134)][_0x52608a(0xbf)]:_0x31ac0f=(0x0,l[_0x52608a(0x1ef)])(_0x2328ca,_0x354bc1);break;case l[_0x52608a(0x134)][_0x52608a(0x2c3)]:_0x31ac0f=(0x0,l['handleInsertCol'])(_0x2328ca,_0x354bc1);break;case l[_0x52608a(0x134)][_0x52608a(0x19c)]:_0x31ac0f=(0x0,l['handleInsertRangeMoveDown'])(_0x2328ca,_0x354bc1);break;case l[_0x52608a(0x134)][_0x52608a(0x289)]:_0x31ac0f=(0x0,l[_0x52608a(0x143)])(_0x2328ca,_0x354bc1);break;case l[_0x52608a(0x134)][_0x52608a(0x1f4)]:_0x31ac0f=(0x0,l[_0x52608a(0x23a)])(_0x2328ca,_0x354bc1);break;case l['EffectRefRangId'][_0x52608a(0xf2)]:_0x31ac0f=(0x0,l['handleMoveRange'])(_0x2328ca,_0x354bc1);break;case l[_0x52608a(0x134)][_0x52608a(0x2f2)]:_0x31ac0f=(0x0,l[_0x52608a(0x310)])(_0x2328ca,_0x354bc1);break;case l[_0x52608a(0x134)][_0x52608a(0xef)]:_0x31ac0f=(0x0,l[_0x52608a(0x7c)])(_0x2328ca,_0x354bc1);break;}let _0x3702c6=(0x0,l['runRefRangeMutations'])(_0x31ac0f,_0x354bc1),_0x5c8f16=this[_0x52608a(0x8e)][_0x52608a(0x293)](_0x595aa5);if(_0x5c8f16&&_0x3702c6){let _0x18e330={..._0x5c8f16,'range':_0x3702c6};this[_0x52608a(0x8e)]['set'](_0x595aa5,_0x18e330),_0x4b8fc1(()=>{const _0x21e951=_0x52608a;let _0x58a9c6=this[_0x21e951(0x96)][_0x21e951(0x26d)](_0x3702c6,_0xdd5008=>(_0x58a9c6['dispose'](),_0x4887b5(_0xdd5008,_0x595aa5,_0x1a8f14,_0x3702c6)));_0x54f425[_0x21e951(0x20e)](_0x58a9c6);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x257a1e,_0x39b0f6)=>{const _0x49e380=_0xe480;let {range:_0x4bff28,sheetID:_0x2fae22}=_0x257a1e,_0x1ee062=this[_0x49e380(0x96)][_0x49e380(0x26d)](_0x4bff28,_0x5bb80d=>(_0x1ee062[_0x49e380(0x9a)](),_0x4887b5(_0x5bb80d,_0x39b0f6,_0x2fae22,_0x4bff28)));_0x54f425[_0x49e380(0x20e)](_0x1ee062);});};this['disposeWithMe']((0x0,t[_0x59d543(0x18d)])(this[_0x59d543(0xdc)]['subscribe'](()=>{_0x934c5a();})));}['_toggleOnline'](){const _0x51ca9c=_0x289474;var _0x498f84,_0x4bb8f6;if(this[_0x51ca9c(0x2c6)]=!0x0,((_0x498f84=this[_0x51ca9c(0x1db)][_0x51ca9c(0x178)]())==null?void 0x0:_0x498f84[_0x51ca9c(0x2e5)]())!==this[_0x51ca9c(0xfa)])return;let _0x65a1dc=(_0x4bb8f6=this[_0x51ca9c(0x99)][_0x51ca9c(0x293)](l[_0x51ca9c(0x137)])[_0x51ca9c(0x253)]())==null?void 0x0:_0x4bb8f6[0x0],_0x590393=this[_0x51ca9c(0x1db)][_0x51ca9c(0x30f)](t[_0x51ca9c(0x270)][_0x51ca9c(0x2cd)])[_0x51ca9c(0x184)]();_0x65a1dc&&_0x590393&&this[_0x51ca9c(0x185)](_0x590393[_0x51ca9c(0x2c1)](),_0x65a1dc);}[_0x289474(0x153)](){const _0x35b2d8=_0x289474;this[_0x35b2d8(0x2c6)]=!0x1;}};P=T([w(0x2,(0x0,t[_0x289474(0xde)])(t[_0x289474(0xab)])),w(0x3,(0x0,t[_0x289474(0xde)])(A)),w(0x4,(0x0,t[_0x289474(0xde)])(e[_0x289474(0x1bb)])),w(0x5,t['IUniverInstanceService']),w(0x6,t[_0x289474(0xc0)]),w(0x7,(0x0,t[_0x289474(0xde)])(l['RefRangeService']))],P);let F=class extends t[_0x289474(0x141)]{constructor(_0x5f1db9,_0x36eaf4,_0x5594d0){const _0x32188e=_0x289474;super(),this[_0x32188e(0x1db)]=_0x5f1db9,this[_0x32188e(0x99)]=_0x36eaf4,this['_collabSessionService']=_0x5594d0,C(this,'_entities',new Map()),C(this,_0x32188e(0xa0),new r[(_0x32188e(0x299))]()),this['_init']();}[_0x289474(0x9a)](){const _0x23f6f3=_0x289474;super[_0x23f6f3(0x9a)](),this['_entityInit$']['complete'](),this[_0x23f6f3(0x1cf)][_0x23f6f3(0x193)](_0x392e02=>_0x392e02[_0x23f6f3(0x9a)]());}['getCollabCursors$'](_0x2bc1f6){const _0x5302f0=_0x289474;return this['_entities']['has'](_0x2bc1f6)?this[_0x5302f0(0x1cf)][_0x5302f0(0x293)](_0x2bc1f6)[_0x5302f0(0x146)]:this[_0x5302f0(0xa0)]['pipe']((0x0,r[_0x5302f0(0x24c)])(_0x2c151f=>_0x2c151f['unitID']===_0x2bc1f6),(0x0,r[_0x5302f0(0x8b)])(_0x33a26c=>_0x33a26c['cursorInfo$']));}[_0x289474(0x258)](){const _0x4da810=_0x289474;this['_univerInstanceService'][_0x4da810(0x123)](t[_0x4da810(0x270)][_0x4da810(0x2cd)])[_0x4da810(0x261)]((0x0,r[_0x4da810(0x177)])(this['dispose$']))[_0x4da810(0x2e3)](async _0x171dd0=>{const _0x1c4580=_0x4da810;let _0x4bb417=_0x171dd0[_0x1c4580(0x202)][_0x1c4580(0x2e5)](),_0x85427f=await this[_0x1c4580(0x157)](_0x4bb417);this[_0x1c4580(0xa0)][_0x1c4580(0x203)](_0x85427f),this[_0x1c4580(0x1cf)]['set'](_0x4bb417,_0x85427f);}),this[_0x4da810(0x1db)][_0x4da810(0x123)](t[_0x4da810(0x270)][_0x4da810(0xf4)])['pipe']((0x0,r['takeUntil'])(this[_0x4da810(0x17f)]))[_0x4da810(0x261)]((0x0,r[_0x4da810(0x24c)])(_0xcf872b=>!_0xcf872b[_0x4da810(0x202)][_0x4da810(0x2e5)]()['startsWith']('__')))[_0x4da810(0x2e3)](async _0x16bc11=>{const _0x3d7b3b=_0x4da810;let {unit:_0x2bbeb3}=_0x16bc11,_0x4fdf42=_0x2bbeb3[_0x3d7b3b(0x2e5)](),_0x58286b=await this['_startDocCollabCursor'](_0x4fdf42);this['_entityInit$'][_0x3d7b3b(0x203)](_0x58286b),this[_0x3d7b3b(0x1cf)][_0x3d7b3b(0x2b4)](_0x4fdf42,_0x58286b);}),(0x0,r['merge'])(this[_0x4da810(0x1db)][_0x4da810(0x1ab)](t['UniverInstanceType'][_0x4da810(0xf4)]),this[_0x4da810(0x1db)][_0x4da810(0x1ab)](t['UniverInstanceType']['UNIVER_SHEET']))[_0x4da810(0x261)]((0x0,r[_0x4da810(0x177)])(this[_0x4da810(0x17f)]))['subscribe'](_0x408283=>{const _0x57581c=_0x4da810;let _0x28730e=_0x408283[_0x57581c(0x2e5)](),_0x3b8cde=this[_0x57581c(0x1cf)][_0x57581c(0x293)](_0x28730e);_0x3b8cde&&(_0x3b8cde['dispose'](),this[_0x57581c(0x1cf)]['delete'](_0x28730e));});}async['_startSheetCollabCursor'](_0x4f025a){const _0xb2174c=_0x289474;let _0x492dc3=await this[_0xb2174c(0x251)]['requireSession'](_0x4f025a),_0x414c68=this[_0xb2174c(0x99)][_0xb2174c(0x308)](P,_0x4f025a,_0x492dc3);return _0x414c68['init'](),_0x414c68;}async[_0x289474(0x245)](_0x51f4c8){const _0xf42f25=_0x289474;let _0x30dd40=await this[_0xf42f25(0x251)][_0xf42f25(0x2b0)](_0x51f4c8),_0x2f86b7=this[_0xf42f25(0x99)][_0xf42f25(0x308)](N,_0x51f4c8,_0x30dd40);return _0x2f86b7[_0xf42f25(0x93)](),_0x2f86b7;}};F=T([w(0x0,t[_0x289474(0x191)]),w(0x1,(0x0,t[_0x289474(0xde)])(t[_0x289474(0xab)])),w(0x2,(0x0,t['Inject'])(e[_0x289474(0x296)]))],F);function ce(_0x17450d,_0xfd019a){const _0x42d210=_0x289474;var _0x5dc4ac,_0x2fb98d,_0x359722;let {radius:_0x431c3c,width:_0x22c771,height:_0x180ca9}=_0xfd019a;_0x431c3c=(_0x5dc4ac=_0x431c3c)==null?0x0:_0x5dc4ac,_0x22c771=(_0x2fb98d=_0x22c771)==null?0x1e:_0x2fb98d,_0x180ca9=(_0x359722=_0x180ca9)==null?0x1e:_0x359722;let _0x3253fd=0x0,_0x43251c=0x0,_0x49cb14=0x0;_0x3253fd=_0x43251c=_0x49cb14=Math[_0x42d210(0x1f5)](_0x431c3c,_0x22c771/0x2,_0x180ca9/0x2),_0x17450d[_0x42d210(0x224)](),_0x17450d[_0x42d210(0x2d7)](_0x3253fd,0x0),_0x17450d['lineTo'](_0x22c771-_0x43251c,0x0),_0x17450d[_0x42d210(0x106)](_0x22c771-_0x43251c,_0x43251c,_0x43251c,Math['PI']*0x3/0x2,0x0,!0x1),_0x17450d[_0x42d210(0x1cb)](_0x22c771,_0x180ca9-_0x49cb14),_0x17450d['arc'](_0x22c771-_0x49cb14,_0x180ca9-_0x49cb14,_0x49cb14,0x0,Math['PI']/0x2,!0x1),_0x17450d[_0x42d210(0x1cb)](0x0,_0x180ca9),_0x17450d[_0x42d210(0x1cb)](0x0,_0x3253fd),_0x17450d[_0x42d210(0x106)](_0x3253fd,_0x3253fd,_0x3253fd,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x17450d[_0x42d210(0x239)](),_0xfd019a['fill']&&(_0x17450d[_0x42d210(0x144)](),_0x17450d[_0x42d210(0x81)]=_0xfd019a[_0x42d210(0x208)],_0xfd019a[_0x42d210(0x1e6)]===_0x42d210(0xf6)?_0x17450d['fill'](_0x42d210(0xf6)):_0x17450d['fill'](),_0x17450d[_0x42d210(0x1fb)]());}var le=class e extends u[_0x289474(0x210)]{constructor(_0x55b958,_0x5b6574){const _0x62acda=_0x289474;super(_0x55b958,_0x5b6574),C(this,_0x62acda(0x194),void 0x0),C(this,_0x62acda(0x276),void 0x0),this[_0x62acda(0x194)]=_0x5b6574==null?void 0x0:_0x5b6574[_0x62acda(0x194)],this[_0x62acda(0x276)]=_0x5b6574==null?void 0x0:_0x5b6574[_0x62acda(0x276)];}static[_0x289474(0x2b9)](_0x105eab,_0x1c2a4b){const _0x4e3efd=_0x289474;let {text:_0x30e121,color:_0x2f8ae0}=_0x1c2a4b;_0x105eab[_0x4e3efd(0x144)](),_0x105eab['font']=_0x4e3efd(0x21b);let _0x1ad171=_0x105eab[_0x4e3efd(0x1bc)](_0x30e121)[_0x4e3efd(0x229)];if(ce(_0x105eab,{'height':0x14,'radius':0x4,'width':Math['min'](_0x1ad171+0x8,0xc8),'fill':_0x2f8ae0,'evented':!0x1}),_0x105eab['fillStyle']=_0x4e3efd(0x1fc),_0x1ad171>0xc0){let _0x20a452='',_0x56cf96=0x0;for(let _0x2b7451 of _0x30e121){let _0x378e30=_0x105eab['measureText'](_0x2b7451)[_0x4e3efd(0x229)];if(_0x56cf96+_0x378e30<=0xc0-_0x105eab[_0x4e3efd(0x1bc)](_0x4e3efd(0x1fd))[_0x4e3efd(0x229)])_0x20a452+=_0x2b7451,_0x56cf96+=_0x378e30;else{_0x20a452+=_0x4e3efd(0x1fd);break;}}_0x105eab[_0x4e3efd(0x2ba)](_0x20a452,0x4,0xf);}else _0x105eab[_0x4e3efd(0x2ba)](_0x30e121,0x4,0xf);_0x105eab[_0x4e3efd(0x1fb)]();}['_draw'](_0x294f36){const _0x1722ef=_0x289474;e[_0x1722ef(0x2b9)](_0x294f36,this);}};const I='collab-text-anchor-';function _0xe480(_0x4b2586,_0x25636e){_0x4b2586=_0x4b2586-0x7a;const _0x1ae09c=_0x1ae0();let _0xe480db=_0x1ae09c[_0x4b2586];return _0xe480db;}var ue=class{constructor(_0x37018a,_0x40f6c3,_0x5523ae,_0x160cf1){const _0x559993=_0x289474;this[_0x559993(0x1c5)]=_0x37018a,this[_0x559993(0x161)]=_0x40f6c3,this[_0x559993(0x109)]=_0x5523ae,this[_0x559993(0x30c)]=_0x160cf1,C(this,_0x559993(0x254),[]),C(this,_0x559993(0x129),null),C(this,_0x559993(0x312),null),C(this,'_anchorDot',null),C(this,_0x559993(0x2a3),null),C(this,_0x559993(0x2bd),null),this[_0x559993(0x1d1)]();}set[_0x289474(0x173)](_0xbd3a5d){const _0x4ce17b=_0x289474;_0xbd3a5d?(this[_0x4ce17b(0x18f)]&&this[_0x4ce17b(0x18f)]['hide'](),this[_0x4ce17b(0x312)]&&this['_textBubble']['show']()):(this[_0x4ce17b(0x18f)]&&this[_0x4ce17b(0x18f)]['show'](),this[_0x4ce17b(0x312)]&&this[_0x4ce17b(0x312)]['hide']());}['dispose'](){const _0x1ce278=_0x289474;for(let _0x1094c1 of this[_0x1ce278(0x254)])_0x1094c1[_0x1ce278(0x9a)]();this[_0x1ce278(0x312)]&&this[_0x1ce278(0x312)]['dispose'](),this[_0x1ce278(0x18f)]&&this['_anchorDot'][_0x1ce278(0x9a)](),this['_anchor']&&this['_anchor'][_0x1ce278(0x9a)](),this[_0x1ce278(0x2bd)]&&this[_0x1ce278(0x2bd)]();}['_render'](){const _0x23ee5a=_0x289474;let {_docSkeleton:_0x1b29a6,_document:_0x366e86}=this,{color:_0x1761ab,name:_0x5c4e87,ranges:_0x4781fa}=this[_0x23ee5a(0x1c5)],_0x53669e=_0x366e86['getOffsetConfig'](),{docsLeft:_0x27dd78,docsTop:_0x1e7d89}=_0x53669e,_0x4c51f2=new f[(_0x23ee5a(0x11d))](_0x53669e,_0x1b29a6);for(let {startOffset:_0x2b4192,endOffset:_0x2fe43b,rangeType:_0x2e54a5,segmentId:_0x2ca049,segmentPage:_0x1ae5ed,collapsed:_0x401cdb,isActive:_0x250580}of _0x4781fa){let _0x411a04=_0x1b29a6['findNodePositionByCharIndex'](_0x2b4192,!0x0,_0x2ca049,_0x1ae5ed),_0x1755c5=_0x1b29a6[_0x23ee5a(0x294)](_0x2fe43b,!0x0,_0x2ca049,_0x1ae5ed);if(_0x1755c5==null&&(_0x1755c5=_0x1b29a6[_0x23ee5a(0x294)](_0x2fe43b-0x1,!0x1,_0x2ca049,_0x1ae5ed)),_0x250580){let {contentBoxPointGroup:_0x5b64b7}=_0x4c51f2[_0x23ee5a(0x167)](_0x1755c5,_0x1755c5);if(_0x5b64b7[_0x23ee5a(0xeb)]===0x0)continue;this['_drawAnchor'](_0x1761ab,_0x5b64b7,_0x27dd78,_0x1e7d89,_0x5c4e87),this[_0x23ee5a(0x2bd)]=this[_0x23ee5a(0x2ed)]();}if(_0x411a04&&_0x1755c5){if(_0x2e54a5===t[_0x23ee5a(0xd9)][_0x23ee5a(0x11b)]){var _0x4dfd5a;let {pointGroup:_0x3eaf82}=(_0x4dfd5a=new f[(_0x23ee5a(0x2d3))](_0x53669e,_0x1b29a6)[_0x23ee5a(0x167)](_0x411a04,_0x1755c5))==null?{}:_0x4dfd5a;if(_0x3eaf82==null||_0x3eaf82['length']===0x0)continue;this[_0x23ee5a(0x264)](_0x1761ab,_0x3eaf82,_0x27dd78,_0x1e7d89);}else{if(!_0x401cdb){let {borderBoxPointGroup:_0x36a8f4}=_0x4c51f2[_0x23ee5a(0x167)](_0x411a04,_0x1755c5);if(_0x36a8f4[_0x23ee5a(0xeb)]===0x0)continue;this[_0x23ee5a(0x179)](_0x1761ab,_0x36a8f4,_0x27dd78,_0x1e7d89);}}}}}['_drawAnchor'](_0x190c91,_0x4533bd,_0x178bfd,_0xabfd7f,_0x3110c0){const _0x5dd4c4=_0x289474;let {left:_0x2946f7,top:_0x403cd9,height:_0x1ae5be}=this[_0x5dd4c4(0x2cb)](_0x4533bd),_0x17547e=1.5/this['_getScale'](),_0x8ff846=new u[(_0x5dd4c4(0x8a))](I+(0x0,t[_0x5dd4c4(0x234)])(0x6),{'left':_0x2946f7+_0x178bfd-_0x17547e,'top':_0x403cd9+_0xabfd7f,'height':_0x1ae5be,'width':1.5,'fill':_0x190c91||(0x0,u['getColor'])(t['COLORS'][_0x5dd4c4(0x1dc)],0x0),'strokeWidth':_0x17547e,'stroke':_0x5dd4c4(0x17a),'evented':!0x0});this[_0x5dd4c4(0x129)]=_0x8ff846,this[_0x5dd4c4(0x161)][_0x5dd4c4(0x14f)](_0x8ff846,f[_0x5dd4c4(0x182)]);let _0x5a5721=new u[(_0x5dd4c4(0x8a))](I+(0x0,t['generateRandomId'])(0x6),{'left':_0x2946f7+_0x178bfd-_0x17547e,'top':_0x403cd9+_0xabfd7f-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x190c91||(0x0,u[_0x5dd4c4(0xb1)])(t[_0x5dd4c4(0x262)][_0x5dd4c4(0x1dc)],0x0),'strokeWidth':0x0,'stroke':_0x190c91||(0x0,u[_0x5dd4c4(0xb1)])(t[_0x5dd4c4(0x262)][_0x5dd4c4(0x1dc)],0x0),'evented':!0x1});this[_0x5dd4c4(0x18f)]=_0x5a5721,this[_0x5dd4c4(0x161)]['addObject'](_0x5a5721,f['TEXT_RANGE_LAYER_INDEX']);let _0x1c83d5=new le(I+(0x0,t[_0x5dd4c4(0x234)])(0x6),{'left':_0x2946f7+_0x178bfd-_0x17547e,'top':_0x403cd9+_0xabfd7f-0x14,'text':_0x3110c0,'color':_0x190c91});this['_textBubble']=_0x1c83d5,this[_0x5dd4c4(0x161)][_0x5dd4c4(0x14f)](_0x1c83d5,f[_0x5dd4c4(0x182)]),this[_0x5dd4c4(0x173)]=!0x1;}[_0x289474(0x2ed)](){const _0x1c71ac=_0x289474;let _0xe563a1=this[_0x1c71ac(0x129)]['onPointerEnter$'][_0x1c71ac(0x215)](()=>{const _0x349058=_0x1c71ac;this[_0x349058(0x173)]=!0x0;}),_0xe0e41f=this[_0x1c71ac(0x129)][_0x1c71ac(0x252)][_0x1c71ac(0x215)](()=>{const _0x55ab40=_0x1c71ac;this['_hideTimer']&&clearTimeout(this[_0x55ab40(0x2a3)]),this[_0x55ab40(0x2a3)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4088ca=_0x1c71ac;_0xe563a1['unsubscribe'](),_0xe0e41f[_0x4088ca(0x19b)]();};}['_drawTextRange'](_0x46edea,_0x28c748,_0x11628b,_0x3dcaab){const _0x546194=_0x289474;let _0x2329a9=0.2,_0x55584a=new t[(_0x546194(0x22a))](_0x46edea)['setAlpha'](_0x2329a9)[_0x546194(0x292)](),_0x30fa1d=new u[(_0x546194(0x21d))](_0x546194(0x2de)+(0x0,t[_0x546194(0x234)])(0x6),{'pointsGroup':_0x28c748,'fill':_0x55584a||(0x0,u[_0x546194(0xb1)])(t['COLORS']['black'],_0x2329a9),'left':_0x11628b,'top':_0x3dcaab,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x546194(0x254)]['push'](_0x30fa1d),this[_0x546194(0x161)]['addObject'](_0x30fa1d,f[_0x546194(0x182)]);}[_0x289474(0x264)](_0x28f6e1,_0x37fabe,_0x332b34,_0x1bae61){const _0x1d3b2a=_0x289474;let _0x49d1f3=0.2,_0x59f8b4=new t[(_0x1d3b2a(0x22a))](_0x28f6e1)[_0x1d3b2a(0x24e)](_0x49d1f3)[_0x1d3b2a(0x292)](),_0x4f4e2d=new u[(_0x1d3b2a(0x21d))](_0x1d3b2a(0x112)+(0x0,t[_0x1d3b2a(0x234)])(0x6),{'pointsGroup':_0x37fabe,'fill':_0x59f8b4||(0x0,u[_0x1d3b2a(0xb1)])(t[_0x1d3b2a(0x262)][_0x1d3b2a(0x1dc)],_0x49d1f3),'left':_0x332b34,'top':_0x1bae61,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x4f4e2d),this[_0x1d3b2a(0x161)][_0x1d3b2a(0x14f)](_0x4f4e2d,f[_0x1d3b2a(0x182)]);}[_0x289474(0x2cb)](_0x137d6a){let _0x17e6a8=_0x137d6a[0x0],_0x33ea4c=_0x17e6a8[0x0],_0xf2016b=_0x17e6a8[0x2],{x:_0x97906a,y:_0x294d98}=_0x33ea4c,{x:_0x498285,y:_0x31a78c}=_0xf2016b;return{'left':_0x97906a,'top':_0x294d98,'width':_0x498285-_0x97906a,'height':_0x31a78c-_0x294d98};}[_0x289474(0x180)](){const _0x29a39a=_0x289474;let {scaleX:_0x1d416a,scaleY:_0x2b3a07}=this['_scene']['getAncestorScale']();return Math[_0x29a39a(0x1a9)](_0x1d416a,_0x2b3a07);}};let L=class extends t[_0x289474(0x141)]{constructor(_0x111519,_0x56ee38,_0x5bb2d0,_0x5edc45,_0xad2aef){const _0x11a32f=_0x289474;super(),this[_0x11a32f(0x236)]=_0x111519,this[_0x11a32f(0x2f3)]=_0x56ee38,this[_0x11a32f(0xf7)]=_0x5bb2d0,this[_0x11a32f(0x228)]=_0x5edc45,this['_themeService']=_0xad2aef,C(this,_0x11a32f(0x127),[]),C(this,_0x11a32f(0x207),[]),this['_init']();}[_0x289474(0x258)](){const _0x13174e=_0x289474;let _0x3bdb51=this[_0x13174e(0x236)][_0x13174e(0x136)],_0xeb7cb2=this[_0x13174e(0x2f3)];this[_0x13174e(0x27e)]((0x0,r[_0x13174e(0xed)])([this[_0x13174e(0xf7)]['getCollabCursors$'](_0x3bdb51),this[_0x13174e(0x2bf)]['currentTheme$']])[_0x13174e(0x261)]((0x0,_[_0x13174e(0x85)])(([_0x167768,_0x2863dd])=>({'skeleton':_0xeb7cb2[_0x13174e(0x282)](),'cursors':[..._0x167768[_0x13174e(0x2ce)]()][_0x13174e(0xaa)](_0xe3bbfd=>({..._0xe3bbfd,'color':this['_themeService'][_0x13174e(0xe3)](_0xe3bbfd[_0x13174e(0x194)])}))})))[_0x13174e(0x2e3)](_0x4e1998=>{const _0x225833=_0x13174e;if(this['_removeCollabCursors'](),_0x4e1998){let {skeleton:_0x895f8a,cursors:_0x4470a3}=_0x4e1998;this[_0x225833(0xc4)](_0x895f8a,_0x4470a3);}})),this['_initResize'](),this[_0x13174e(0x1da)]();}[_0x289474(0xc4)](_0xfb78f3,_0x47ec9d){const _0x579464=_0x289474;let {scene:_0x282e31,mainComponent:_0x1727b7}=this[_0x579464(0x236)],_0x4af504=_0x47ec9d[_0x579464(0x85)](_0x51af8f=>new ue(_0x51af8f,_0x282e31,_0xfb78f3,_0x1727b7));this[_0x579464(0x127)]=_0x4af504,this[_0x579464(0x207)]=_0x47ec9d;}[_0x289474(0x309)](){const _0x3551a3=_0x289474;this[_0x3551a3(0x133)]();let {scene:_0x1444b2,mainComponent:_0x1694b1}=this['_context'],_0x3112a1=this[_0x3551a3(0x2f3)][_0x3551a3(0x282)](),_0x1de9f5=this[_0x3551a3(0x207)][_0x3551a3(0x85)](_0x300a12=>new ue(_0x300a12,_0x1444b2,_0x3112a1,_0x1694b1));this[_0x3551a3(0x127)]=_0x1de9f5;}['_removeCollabCursors'](){const _0x482bae=_0x289474;this[_0x482bae(0x127)][_0x482bae(0x193)](_0x16e682=>_0x16e682[_0x482bae(0x9a)]()),this['_cursorShapes']=[];}[_0x289474(0x1da)](){const _0xe97c52=_0x289474;let _0x59ef49=[f[_0xe97c52(0x120)]['id']];this['disposeWithMe'](this[_0xe97c52(0x228)][_0xe97c52(0xc2)](_0x361fd7=>{const _0xd5bae5=_0xe97c52;_0x59ef49[_0xd5bae5(0x92)](_0x361fd7['id'])&&_0x361fd7['params'][_0xd5bae5(0x136)]===this['_context'][_0xd5bae5(0x136)]&&this[_0xd5bae5(0x309)]();}));}[_0x289474(0x1b0)](){const _0x44d604=_0x289474;this[_0x44d604(0x27e)]((0x0,t['fromEventSubject'])(this[_0x44d604(0x236)][_0x44d604(0x192)][_0x44d604(0x118)])['pipe']((0x0,_[_0x44d604(0x24c)])(_0x308f21=>_0x308f21['type']===u[_0x44d604(0x301)][_0x44d604(0x205)]),(0x0,_[_0x44d604(0x156)])(0x10))[_0x44d604(0x2e3)](()=>{const _0x1f47d0=_0x44d604;this[_0x1f47d0(0x309)]();}));}};L=T([w(0x1,(0x0,t['Inject'])(h[_0x289474(0x18e)])),w(0x2,(0x0,t[_0x289474(0xde)])(F)),w(0x3,t['ICommandService']),w(0x4,(0x0,t['Inject'])(t[_0x289474(0xa4)]))],L);var R=class extends u[_0x289474(0x210)]{constructor(_0x217841,_0x5877ed){const _0xfe64e=_0x289474;if(super(_0x217841,_0x5877ed),C(this,_0xfe64e(0x1e5),void 0x0),C(this,_0xfe64e(0x1c9),!0x1),C(this,_0xfe64e(0x214),void 0x0),C(this,_0xfe64e(0xad),''),C(this,_0xfe64e(0x2fa),_0xfe64e(0x7b)),C(this,'_backgroundColor',void 0x0),C(this,'_showText',void 0x0),C(this,_0xfe64e(0x145),void 0x0),C(this,_0xfe64e(0x2a7),0x4),C(this,_0xfe64e(0x147),void 0x0),C(this,'_blinkIntervalTimer',void 0x0),C(this,_0xfe64e(0xf1),!0x0),C(this,_0xfe64e(0x1ec),0x0),_0x5877ed){var _0x3ee7ba;if(this[_0xfe64e(0xec)](_0x5877ed),_0x5877ed[_0xfe64e(0x284)]&&((_0x3ee7ba=_0x5877ed[_0xfe64e(0x1ee)])==null?this[_0xfe64e(0x2a7)]:_0x3ee7ba)){var _0x18c646;this[_0xfe64e(0x2f1)]((_0x18c646=_0x5877ed[_0xfe64e(0x1ee)])==null?this[_0xfe64e(0x2a7)]:_0x18c646);}}this['onPointerEnter$'][_0xfe64e(0x215)](()=>this[_0xfe64e(0xec)]({'hovered':!0x0})),this[_0xfe64e(0x252)]['subscribeEvent'](()=>this[_0xfe64e(0xec)]({'hovered':!0x1}));}['setOffsetY'](_0x214148){const _0x10401f=_0x289474;this[_0x10401f(0x1ec)]=_0x214148;}['setShapeProps'](_0x162426){const _0x34b985=_0x289474;var _0x215499,_0x3d49f4,_0x265b79,_0x32d1a6,_0x5ef35c,_0x222767,_0x46baf2;this['_color']=(_0x215499=_0x162426[_0x34b985(0x194)])==null?this['_color']:_0x215499,this['_hovered']=(_0x3d49f4=_0x162426[_0x34b985(0x28e)])==null?this['_hovered']:_0x3d49f4,this[_0x34b985(0x214)]=(_0x265b79=_0x162426[_0x34b985(0x2fd)])==null?this[_0x34b985(0x214)]:_0x265b79,this[_0x34b985(0xad)]=(_0x32d1a6=_0x162426['name'])==null?this['_name']:_0x32d1a6,this['_labelPosition']=(_0x5ef35c=_0x162426[_0x34b985(0x13a)])==null?this[_0x34b985(0x2fa)]:_0x5ef35c,this['_backgroundColor']=(_0x222767=_0x162426[_0x34b985(0x2ea)])==null?this[_0x34b985(0x2b6)]:_0x222767,this[_0x34b985(0x181)]=(_0x46baf2=_0x162426[_0x34b985(0x222)])==null?this['_showText']:_0x46baf2,_0x162426[_0x34b985(0x1ee)]!==void 0x0&&(this[_0x34b985(0x2a7)]=_0x162426[_0x34b985(0x1ee)]),_0x162426[_0x34b985(0x284)]!==void 0x0&&(this[_0x34b985(0x145)]=_0x162426[_0x34b985(0x284)]),_0x162426[_0x34b985(0xc1)]!==void 0x0&&(this[_0x34b985(0x1ec)]=_0x162426[_0x34b985(0xc1)]),this['transformByState']({'width':_0x162426['width'],'height':_0x162426[_0x34b985(0x28b)]});}[_0x289474(0x1d7)](_0x36ceb0){const _0xe0ed08=_0x289474;let {row:_0x58db43,column:_0x197f30}=_0x36ceb0;if(_0x58db43>=this[_0xe0ed08(0x214)]['startRow']&&_0x58db43<=this['_range'][_0xe0ed08(0x1c4)]&&_0x197f30>=this['_range'][_0xe0ed08(0x1c8)]&&_0x197f30<=this[_0xe0ed08(0x214)][_0xe0ed08(0x154)]){this[_0xe0ed08(0xec)]({'hovered':!0x0});return;}this[_0xe0ed08(0xec)]({'hovered':!0x1});}[_0x289474(0x2f1)](_0x570cd2){const _0x40891f=_0x289474;this[_0x40891f(0xda)](),this[_0x40891f(0xf1)]=!0x0,this[_0x40891f(0x298)]=window[_0x40891f(0x2ab)](()=>{const _0x2894c1=_0x40891f;this[_0x2894c1(0xf1)]=!this[_0x2894c1(0xf1)],this['makeDirty'](!0x0);},0x1f4),this[_0x40891f(0x147)]=window[_0x40891f(0x220)](()=>{const _0x518d9c=_0x40891f;this['_stopBlinking'](),this['_isBlinkVisible']=!0x0,this[_0x518d9c(0x225)](!0x0);},_0x570cd2*0x3e8);}[_0x289474(0xda)](){const _0x3e5070=_0x289474;this[_0x3e5070(0x298)]&&(window[_0x3e5070(0x166)](this[_0x3e5070(0x298)]),this[_0x3e5070(0x298)]=void 0x0),this[_0x3e5070(0x147)]&&(window['clearTimeout'](this[_0x3e5070(0x147)]),this['_blinkTimer']=void 0x0);}[_0x289474(0xb3)](_0x317546){return!0x1;}['dispose'](){const _0x16b23b=_0x289474;this[_0x16b23b(0xda)](),super[_0x16b23b(0x9a)]();}[_0x289474(0xaf)](_0x36b778){const _0x924975=_0x289474;let _0x495847=this[_0x924975(0x1e5)],_0x217346=this[_0x924975(0x2b6)];if(this[_0x924975(0x145)]&&!this['_isBlinkVisible']&&(_0x495847=this[_0x924975(0x15c)](this[_0x924975(0x1e5)]),_0x217346=this[_0x924975(0x2b6)]?this[_0x924975(0x15c)](this[_0x924975(0x2b6)]):void 0x0),u['Rect'][_0x924975(0x2b9)](_0x36b778,{'width':this[_0x924975(0x229)],'height':this[_0x924975(0x28b)],'strokeWidth':this[_0x924975(0x2f7)]||1.5,'stroke':_0x495847,'evented':!0x1,'fill':_0x217346}),this['_hovered']||this[_0x924975(0x181)]){var _0xc0abbe;_0x36b778[_0x924975(0x144)](),_0x36b778[_0x924975(0x248)](0x1,0x0,0x0,0x1,this[_0x924975(0x229)],(this[_0x924975(0x2fa)]===_0x924975(0x132)?0x0:-0x14)+((_0xc0abbe=this['_offsetY'])==null?0x0:_0xc0abbe)),le[_0x924975(0x2b9)](_0x36b778,{'text':this[_0x924975(0xad)],'color':_0x495847}),_0x36b778[_0x924975(0x1fb)]();}}['_getLighterColor'](_0x1c86a8){const _0x5e4073=_0x289474;return _0x1c86a8[_0x5e4073(0x2b3)]('#')?_0x5e4073(0x2be)+Number[_0x5e4073(0x16b)](_0x1c86a8['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x5e4073(0x16b)](_0x1c86a8[_0x5e4073(0x87)](0x3,0x5),0x10)+',\x20'+Number[_0x5e4073(0x16b)](_0x1c86a8[_0x5e4073(0x87)](0x5,0x7),0x10)+_0x5e4073(0x1f9):_0x1c86a8[_0x5e4073(0x2b3)](_0x5e4073(0x95))?_0x1c86a8[_0x5e4073(0x24f)](/[\d.]+\)$/g,'0.2)'):_0x1c86a8[_0x5e4073(0x2b3)](_0x5e4073(0xdf))?_0x1c86a8['replace'](_0x5e4073(0xdf),'rgba')[_0x5e4073(0x24f)](')',_0x5e4073(0x1f9)):_0x1c86a8;}};let z=class extends t[_0x289474(0x141)]{constructor(_0x208272,_0x358176,_0x50c477,_0x4fc6a4){const _0xc4b2ae=_0x289474;super(),this[_0xc4b2ae(0x236)]=_0x208272,this['_sheetSkeletonManagerService']=_0x358176,this[_0xc4b2ae(0xf7)]=_0x50c477,this[_0xc4b2ae(0x2bf)]=_0x4fc6a4,C(this,_0xc4b2ae(0x207),new Set()),C(this,_0xc4b2ae(0x28f),null),this[_0xc4b2ae(0x258)]();}[_0x289474(0x258)](){const _0x4cd80c=_0x289474;this['_sheetSkeletonManagerService'][_0x4cd80c(0x2bb)][_0x4cd80c(0x261)]((0x0,_['takeUntil'])(this[_0x4cd80c(0x17f)]),(0x0,_[_0x4cd80c(0x8b)])(_0xf653b3=>{const _0x50a667=_0x4cd80c;if(_0xf653b3){let _0x50a8b9=_0xf653b3[_0x50a667(0x12c)];return(0x0,r['combineLatest'])(this[_0x50a667(0xf7)][_0x50a667(0x165)](this['_context'][_0x50a667(0x136)]),this[_0x50a667(0x2bf)][_0x50a667(0x302)])[_0x50a667(0x261)]((0x0,_[_0x50a667(0x85)])(([_0xc519c7,_0x37d9d0])=>{const _0x3a1552=_0x50a667;let _0x4fa63c=new Map();return _0xc519c7[_0x3a1552(0x193)]((_0xd8e59e,_0x2fc378)=>{const _0x3785f6=_0x3a1552;if(_0xd8e59e[_0x3785f6(0xb5)]===_0x50a8b9){let _0x26d45c={..._0xd8e59e};_0x26d45c['color']=this[_0x3785f6(0x2bf)]['getColorFromTheme'](_0xd8e59e['color']),_0x4fa63c['set'](_0x2fc378,_0x26d45c);}}),{'skeleton':_0xf653b3,'cursors':_0x4fa63c};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x4cd80c(0x2e3)](({skeleton:_0x34cfe6,cursors:_0x15c1ff})=>{const _0x7620b9=_0x4cd80c;this[_0x7620b9(0x133)](),_0x34cfe6&&this[_0x7620b9(0xc4)](_0x34cfe6,_0x15c1ff);}),this[_0x4cd80c(0xa5)]['currentSkeleton$'][_0x4cd80c(0x2e3)](_0x4ca5e0=>{const _0x1656f0=_0x4cd80c;if(_0x4ca5e0==null)return;let {skeleton:_0x14a69e}=_0x4ca5e0,{scene:_0x38b2e5}=this[_0x1656f0(0x236)];_0x38b2e5[_0x1656f0(0x295)][_0x1656f0(0x215)]((0x0,t[_0x1656f0(0x1b1)])(_0x3f5079=>{const _0x1a4dde=_0x1656f0;var _0x9f8650,_0x289d54;let {offsetX:_0x102026,offsetY:_0x1f44dd}=_0x3f5079,{x:_0x577507,y:_0x779110}=_0x38b2e5['getRelativeToViewportCoord'](u[_0x1a4dde(0xfc)][_0x1a4dde(0x151)]([_0x102026,_0x1f44dd])),{scaleX:_0x2275f4,scaleY:_0x1ca80b}=_0x38b2e5['getAncestorScale'](),_0x5c03a6=_0x38b2e5[_0x1a4dde(0x175)](u[_0x1a4dde(0x1cd)][_0x1a4dde(0x2c0)]),_0x43c814=_0x38b2e5[_0x1a4dde(0x1fe)](u['Vector2'][_0x1a4dde(0x151)]([_0x577507,_0x779110]),_0x5c03a6),_0x4b7afd=_0x14a69e[_0x1a4dde(0x186)](_0x102026,_0x1f44dd,_0x2275f4,_0x1ca80b,_0x43c814);((_0x9f8650=this['_lastPointer'])==null?void 0x0:_0x9f8650[_0x1a4dde(0x273)])===_0x4b7afd['column']&&((_0x289d54=this[_0x1a4dde(0x28f)])==null?void 0x0:_0x289d54[_0x1a4dde(0x2aa)])===_0x4b7afd['row']||this[_0x1a4dde(0x207)]['forEach'](_0x33a409=>{const _0x3bb009=_0x1a4dde;_0x33a409[_0x3bb009(0x1d7)](_0x4b7afd);});},0x64));});}[_0x289474(0xc4)](_0x5aed9c,_0xec795a){const _0x531c29=_0x289474;let _0x290431=this[_0x531c29(0xa5)][_0x531c29(0x2d4)]();if(!_0x290431)return;let _0x42b2d3=this[_0x531c29(0x269)]();if(!_0x42b2d3)return;this[_0x531c29(0x207)][_0x531c29(0x193)](_0x521b60=>{const _0x26ef3f=_0x531c29;_0x521b60[_0x26ef3f(0x225)]();});let {scene:_0x5380cd}=_0x42b2d3,_0x11d92b=de(Array[_0x531c29(0x2a6)](_0xec795a[_0x531c29(0x2ce)]()))[_0x531c29(0x85)](_0x1ee07c=>{const _0x53e1c6=_0x531c29;let {color:_0x4002b4,range:_0x2a3322,name:_0x13a0ac,selection:_0x3375db,sheetID:_0xdfcc32}=_0x1ee07c,{startColumn:_0xf7ba1a,startRow:_0xf7a2d2,endColumn:_0x21919f,endRow:_0x45353a}=_0x2a3322,_0x3055b7=(0x0,v[_0x53e1c6(0x27c)])(_0xf7a2d2,_0xf7ba1a,_0x5380cd,_0x290431),_0x176c41=(0x0,v[_0x53e1c6(0x27c)])(_0x45353a,_0x21919f,_0x5380cd,_0x290431),{columnHeaderHeightAndMarginTop:_0x16721a}=_0x290431,{startX:_0xdf9dfd,startY:_0x276d1d}=_0x3055b7,{endX:_0x1a5004,endY:_0x173163}=_0x176c41,_0x5daa33=_0x1a5004-_0xdf9dfd,_0x579518=_0x173163-_0x276d1d;return new R(_0x13a0ac,{'labelPosition':_0x276d1d-_0x16721a>=0x14?_0x53e1c6(0x7b):_0x53e1c6(0x132),'sheetID':_0xdfcc32,'range':_0x2a3322,'color':_0x4002b4,'name':_0x13a0ac,'selection':_0x3375db,'left':_0xdf9dfd,'top':_0x276d1d,'width':_0x5daa33,'height':_0x579518,'evented':!0x1,'zIndex':0x1389});});_0x5380cd[_0x531c29(0x28d)](_0x11d92b,0x1),this[_0x531c29(0x207)]=new Set(_0x11d92b);}[_0x289474(0x133)](){const _0x1192ea=_0x289474;var _0x5b7edf;(_0x5b7edf=this['_cursors'])==null||_0x5b7edf[_0x1192ea(0x193)](_0x476ea0=>_0x476ea0[_0x1192ea(0x9a)]());}[_0x289474(0x269)](){const _0x36712b=_0x289474;return(0x0,v['getSheetObject'])(this[_0x36712b(0x236)][_0x36712b(0x202)],this['_context']);}};z=T([w(0x1,(0x0,t[_0x289474(0xde)])(v['SheetSkeletonManagerService'])),w(0x2,(0x0,t['Inject'])(F)),w(0x3,(0x0,t['Inject'])(t[_0x289474(0xa4)]))],z);function de(_0xa4422e){const _0x5ad45e=_0x289474;let _0x532ab6=new Map();return _0xa4422e['forEach'](_0x3d0855=>{const _0x2f3093=_0xe480;if(_0x532ab6[_0x2f3093(0x10c)](_0x3d0855[_0x2f3093(0x25a)])){let _0x7ed4c4=_0x532ab6[_0x2f3093(0x293)](_0x3d0855[_0x2f3093(0x25a)]);_0x7ed4c4['name']+=',\x20'+_0x3d0855[_0x2f3093(0x159)];}else _0x532ab6[_0x2f3093(0x2b4)](_0x3d0855['selection'],_0x3d0855);}),Array[_0x5ad45e(0x2a6)](_0x532ab6['values']());}function _0x1ae0(){const _0x304221=['newValue','_uiPartsService','max','asObservable','getTypeOfUnitDisposed$','debug','show','with','event$','_initResize','debounce','CollaborationController','isEditing','jiqing.500','NO_OTHER_CLIENTS_EDITING','div','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','/universer-api/license/formula/limit/done','ILocalCacheService','CLOSE_ROOM','MemberService','measureText','_notificationService','Plugin','OnLineIcon','_initDependencies','Optional','type','_colorAssignService','endRow','_cursor','\x20at\x20','redoState','startColumn','_hovered','_messageService','lineTo','[CollaborationDataLoaderController]','SHEET_VIEWPORT_KEY','HTTPService','_entities','IURLService','_render','assignAColorForMemberID','sessionStatus$','selections','size','_checkCalculationAvailable','onMouseMove','disableLocalCache','toString','_initCommandExecutedListener','_univerInstanceService','black','HEADER_MENU','_toggleOnline','mutations','getUnitStatus$','tooltipKey','key','_scheduleHeartbeat','m2Prime','_color','fillRule','getParam','DependentOn','unload','/universer-api/license/formula/limit/status','defineProperty','_offsetY','_initEvent','highlightSecond','handleDeleteRangeMoveUp','replaceState','_clearOtherTimers','filename','reconnect','InsertRowCommandId','min','_uploadLog','origin','_roomMembers$',',\x200.2)','session.collaboration-timeout','restore','#FFF','...','getVpScrollXYInfoByPosToVp','_initStatusComponent','collabCursorState$','_memberService','unit','next','_transformUndoRedoStack','resize','eventID','_cursors','fill','Tooltip','_createSocketURL','i18nKey','_docTransformStateCacheService','_instanceService','add','_currentUsage','Shape','univer-text-green-500','storage','OffLineIcon','_range','subscribeEvent','AWAITING','yellow.400','send','isTransformMutationFailure','getMember','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','OTHER_CLIENTS_EDITING','RegularPolygon','registerDependencies','getMemberID','setTimeout','stack','showText','_scheduleClearOtherTimer','beginPath','makeDirty','some','468430VHHryJ','_commandService','width','ColorKit','JOIN_ROOM_FAILED','iterator','_localStorageService','stageInfo','saveImage','ILocalStorageService','getStateCache','BuiltInUIPart','createSocket','generateRandomId','setActiveRange','_context','focused$','_collaborationController','closePath','handleInsertRow','_syncEditingCollabCursorService','IConfigService','status','Disposable','_taskIds','/run/','string','4618AGBgcf','_colorIndex','enableFrontendLog','_startDocCollabCursor','Workbook','source','transform','fromEvent','DeleteRangeMoveLeftCommandId','220266lMirBm','filter','univer-flex\x20univer-items-center\x20univer-justify-center','setAlpha','replace','_localCacheService','_collabSessionService','onPointerLeave$','getCurrentSelections','_shapes','split','MUTATION','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_init','UniverCollaborationClientUIPlugin','selection','then','_clearPolling','docStateChange$','deepClone','[Unhandled\x20Rejection]:\x20','delete','pipe','COLORS','_heartbeatTimer','_drawRectRange','registerRenderModule','join','useMemo','_removeClearOtherTimer','_getSheetObject','popstate','unhandledrejection','CollaborationUIEventService','registerRefRange','TEXT','isArray','UniverInstanceType','roomMembers','registerComponent','column','_lastResponseTimestamp','DataLoaderService','text','_saveCache','runId','_collaborationUIEventService','history','code','getCoordByCell','formula.calculation.started','disposeWithMe','serializeRangeWithSheet','removeEventListener','IRenderManagerService','getSkeleton','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','highlight','status$','isFormulaId','_collaborationSessionService','Error','InsertRangeMoveRightCommandId','now','height','_transformPreviousActiveRange','addObjects','hovered','_lastPointer','addEventListener','_hasFormulaInDirtyRanges','toRgbString','get','findNodePositionByCharIndex','onPointerMove$','CollaborationSessionService','univer-border-none\x20univer-bg-transparent','_blinkIntervalTimer','Subject','_maxFormulaLimit','spin','collabStatus.conflict','polite','ISocketService','isActive','_send','collaboration-client-ui.config','runOnServer','_hideTimer','uni.network.url-service','_applyCommand','from','_highlightSecond','_initEntityListener','BehaviorSubject','row','setInterval','_setupBeforeClosingHandler','_getSaveTimeout','INotificationService','post','requireSession','2JdHxgZ','_releaseCalculationLimit','startsWith','set','enableLocalCache','_backgroundColor','clickable','0.23.0','drawWith','fillText','currentSkeleton$','_initCommandInterceptor','_eventUnsubscribe','rgba(','_themeService','VIEW_MAIN','getSheetId','_transformHistoryAndStateStack','InsertColCommandId','parse','FormulaExecuteStageType','_online','merge','LocaleService','subunit','toStringTag','_getAnchorBounding','SetFormulaCalculationStartMutation','UNIVER_SHEET','values','data','_renderManagerService','getUndoRedoMutationParamsCache','_beforeCloseService','NodePositionConvertToRectRange','getCurrentSkeleton','isFormulaString','132IGDAoQ','moveTo','[LogService\x20Error]:\x20','RevisionService','bind','DisposableCollection','_assignedColors','Tools','collab-text-range-','m1Prime','_collabCursorState$','formula.calculation.waiting','DocIMEInputManagerService','subscribe','connectInjector','getUnitId','stringify','_getMergeRange','setParam','_revisionService','backgroundColor','doc.mutation.rich-text-editing','317541oBuFuO','_handleHover','SetTextSelectionsOperation','debounceTime','univer-m-0\x20univer-p-0','_startBlinking','RemoveColCommandId','_docSkeletonManagerService','WebSocketService','textRanges','mergeOverrideWithDependencies','strokeWidth','PERMISSION_DENIED','_docTransformIMECacheService','_labelPosition','beforeCommandExecuted','NOT_COLLAB','range','_doCreateSocket','unshift','_transformService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','currentTheme$','ONLINE','limitInfo','colorClass','ranges','searchParams','createInstance','_refreshCollabCursors','editingUnit','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_document','_monkeyPatchLogService','_cachedData','getCurrentUnitForType','handleIRemoveCol','ticket','_textBubble','USERS_LEAVE','top','handleIRemoveRow','?taskId=','_memberID','onLocalMutation','decorate','fillStyle','CollaborationEvent','_status$','LOCAL_CACHE_INTERVAL_KEY','map','_handleLeaveEvent','slice','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_handleEvent','Rect','switchMap','3fcYolb','IBeforeCloseService','cursorInfo','OFFLINE','FormulaExecutedStateType','_checkAndWaitForCalculationPermission','includes','init','ILogService','rgba','_refRangeService','createIdentifier','disposeUnit','_injector','dispose','_imageIoService','SetSelectionsOperation','dark:focus:univer-ring-offset-gray-800','DocSelectionManagerService','body','_entityInit$','UPDATE_CURSOR','_showGuardMessage','Module','ThemeService','_sheetSkeletonManagerService','functionsExecutedState','contains','_unitOnClients','onStarting','flatMap','Injector','RemoteUniscriptService','_name','_handleHeartbeatEvent','_draw','DesktopCollaborationStatusDisplayController','getColor','START_CALCULATION','triggerDblclick','stage','sheetID','handleDeleteRangeMoveLeft','univer-h-8\x20univer-w-8\x20univer-rounded-lg','clearTimeout','pulse','removeParam','whenReady','_saveTaskMap','\x20-\x20','collabStatus.notCollab','DeleteRangeMoveUpCommandId','ICommandService','offsetY','onCommandExecuted','univer-appearance-none','_updateCollabCursors','ErrorCode','DocStateChangeManagerService','useDependency','_initWindowErrorListener','IUIPartsService','error','sessionTicket','Success','UnitStatus','_initUserListener','_onCursorUpdate','SUBMIT_CHANGESET_TIMEOUT','_logService','Unknown\x20user','getSheetBySheetId','icon','ITransformService','univer-text-blue-500','CollaborationStatus','true','DOC_RANGE_TYPE','_stopBlinking','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_cursorInfo$','imageSourceType','Inject','rgb','Loading','getUniverSheetInstance','@univerjs-pro/collaboration-client-ui','getColorFromTheme','exhaustSavingTask','deserializeRangeWithSheet','univer-transition-all\x20univer-duration-200','collabStatus.fetchMiss','getLocalCacheKey','IMessageService','memberID','length','setShapeProps','combineLatest','_id','RemoveRowCommandId','releaseFormulaLimitUrl','_isBlinkVisible','MoveRangeCommandId','_disabled','UNIVER_DOC','roomMembers$','evenodd','_collabCursorController','saveTaskMap','univer-text-red-500','unitID','jsx','Vector2','Failed','_localeService','LoadingMultiIcon','colno','415876xywZvJ','urlChange$','_dataLoaderService','ISnapshotServerService','getCurrentRevOfUnit','arc','transformMutation','IDocClipboardService','_docSkeleton','IImageIoService','subUnitId','has','getOwnPropertyDescriptor','transformSelections','executeCommand','currentUsage','replaceDocRanges','collab-rect-range-','_initStatusListener','transformIMECache','SessionStatus','pluginName','getMergeData','onTransformChange$','_pollingInterval','maxFormulaLimit','RECT','symbol','NodePositionConvertToCursor','collab-client.tooltip.reconnect','_getFormulaLimitStatus','SetDocZoomRatioOperation','_docTransformSelectionsService','getValue','getTypeOfUnitAdded$','_config','result','SetWorksheetActivateCommand','_cursorShapes','transformMutationsWithChangeset','_anchor','SYNCED','getDocRanges','sheetId','CollaborationUIEventId','pushState','_configService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','bottom','_removeCollabCursors','EffectRefRangId','_updateURLWithCurrentState','unitId','SheetsSelectionsService','_initUnhandledRejectionListener','purple.300','labelPosition','DocCollaborationEntity','_setupSubUnitSync','clsx','Rectangle','static','_handleJoinEvent','RxDisposable','_onCursorDelete','handleInsertRangeMoveRight','save','_highlight','cursorInfo$','_blinkTimer','constructor','_updateSubUnitFromURLParams','_urlService','FETCH_MISS','CONFLICT','location','_session','addObject','setStateCache','FromArray','_registerRenderDependencies','_toggleOffline','endColumn','_httpService','throttleTime','_startSheetCollabCursor','useCallback','name','64JeWaOl','toPrimitive','_getLighterColor','syncEditingCollabCursor','isTransformMutationsWithChangesetSuccess','preventDefault','startRow','_scene','transformRemoteChangeset','_onRefRangeChange','Warning','getCollabCursors$','clearInterval','getRangePointData','params','_docStateChangeManagerService','object','parseInt','function','_selfUnitIDs','setItem','blue.400','push','WebURLService','MessageType','_hover','_docClipboardService','getViewport','SUCCESS','takeUntil','getFocusedUnit','_drawTextRange','rgba(255,\x20255,\x20255,\x200.01)','loadOfflineData','search','_scheduleSaving','117864WXZvEU','dispose$','_getScale','_showText','TEXT_RANGE_LAYER_INDEX','getUnit','getActiveSheet','_updateLocalCursor','getCellPositionByOffset','_startCalculationLimit','touchDependencies','href','_ensureSubject','_unitStatus','_getSessionTicket','toDisposable','DocSkeletonManagerService','_anchorDot','formula.calculation.unable','IUniverInstanceService','engine','forEach','color','indicator','_setFormulaLimitStatus','catch','univer-text-gray-400','collaboration.closeRoom','1362470GZsGwY','unsubscribe','InsertRangeMoveDownCommandId','getConfig','CanceledError','AWAITING_WITH_PENDING','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','complete','CommandType','useObservable','wsSessionTicketUrl','button','activeSheet$'];_0x1ae0=function(){return _0x304221;};return _0x1ae0();}let B=class extends t[_0x289474(0x23e)]{constructor(_0x3a2c82,_0x4ba9e6,_0xee4feb,_0x34d09e,_0x5a540d,_0x2908f7){const _0x4a551c=_0x289474;super(),this['_beforeCloseService']=_0x3a2c82,this[_0x4a551c(0x250)]=_0x4ba9e6,this[_0x4a551c(0x279)]=_0xee4feb,this[_0x4a551c(0x1ca)]=_0x34d09e,this['_notificationService']=_0x5a540d,this[_0x4a551c(0xfe)]=_0x2908f7,this[_0x4a551c(0x2ac)](),this[_0x4a551c(0x1ed)]();}[_0x289474(0x2ac)](){const _0xce7bb7=_0x289474;this[_0xce7bb7(0x27e)](this[_0xce7bb7(0x2d2)]['registerBeforeClose'](()=>{const _0x33f728=_0xce7bb7;if(this[_0x33f728(0x250)][_0x33f728(0xf8)]['size'])return this['_localeService']['t']('collaboration.offline-data-not-saved');}));}[_0x289474(0x1ed)](){const _0x14bea6=_0x289474;this[_0x14bea6(0x27e)](this[_0x14bea6(0x279)][_0x14bea6(0x1af)][_0x14bea6(0x2e3)](_0x441099=>{const _0x294e09=_0x14bea6;_0x441099['id']===e[_0x294e09(0x12d)]['OTHER_CLIENT_EDITING']&&this[_0x294e09(0x1ca)][_0x294e09(0x1ad)]({'type':i[_0x294e09(0x172)][_0x294e09(0x164)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x441099['id']===e['CollaborationUIEventId'][_0x294e09(0x1ba)]&&this[_0x294e09(0x1ca)][_0x294e09(0x1ad)]({'type':i[_0x294e09(0x172)]['Warning'],'content':this['_localeService']['t'](_0x294e09(0x199))}),_0x441099['id']===e[_0x294e09(0x12d)][_0x294e09(0x2f8)]&&this[_0x294e09(0x1bd)][_0x294e09(0x1ad)]({'title':this[_0x294e09(0xfe)]['t']('permission.title'),'content':this[_0x294e09(0xfe)]['t']('permission.content'),'type':_0x294e09(0xca),'duration':0x0}),_0x441099['id']===e[_0x294e09(0x12d)]['CONFLICT']&&this[_0x294e09(0x1ca)][_0x294e09(0x1ad)]({'type':i[_0x294e09(0x172)][_0x294e09(0x288)],'content':this[_0x294e09(0xfe)]['t'](_0x294e09(0x199))+'('+_0x441099[_0x294e09(0x2cf)]+')'}),_0x441099['id']===e[_0x294e09(0x12d)][_0x294e09(0x22b)]&&this[_0x294e09(0x1ca)]['show']({'type':i[_0x294e09(0x172)][_0x294e09(0x164)],'content':this[_0x294e09(0xfe)]['t'](_0x441099[_0x294e09(0x2cf)]||'')}),_0x441099['id']===e['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x294e09(0x1ca)][_0x294e09(0x1ad)]({'type':i['MessageType'][_0x294e09(0x164)],'content':this[_0x294e09(0xfe)]['t']('session.will-retry')}),_0x441099['id']===e[_0x294e09(0x12d)]['SOCKET_FAILED']&&this['_messageService'][_0x294e09(0x1ad)]({'type':i[_0x294e09(0x172)][_0x294e09(0x288)],'content':this[_0x294e09(0xfe)]['t']('session.connection-failed')}),_0x441099['id']===e[_0x294e09(0x12d)][_0x294e09(0xd0)]&&this[_0x294e09(0x1ca)]['show']({'type':i[_0x294e09(0x172)][_0x294e09(0x288)],'content':this[_0x294e09(0xfe)]['t'](_0x294e09(0x1fa))});}));}};B=T([w(0x0,n[_0x289474(0x8d)]),w(0x1,e[_0x289474(0x1b9)]),w(0x2,(0x0,t['Inject'])(e[_0x289474(0x26c)])),w(0x3,n['IMessageService']),w(0x4,n[_0x289474(0x2ae)]),w(0x5,(0x0,t['Inject'])(t['LocaleService']))],B);const V=_0x289474(0x2a1);Symbol(V);const H={};let U=class{constructor(_0x24d8c3,_0x8884c0){const _0x34825d=_0x289474;this[_0x34825d(0x300)]=_0x24d8c3,this[_0x34825d(0x2d0)]=_0x8884c0;}[_0x289474(0x114)](_0xd81f8f){const _0x413c97=_0x289474;this[_0x413c97(0x204)](_0xd81f8f),this[_0x413c97(0x28c)](_0xd81f8f);}[_0x289474(0x162)](_0x4cc804){const _0x5a386b=_0x289474;let {unitID:_0x596898}=_0x4cc804,{redoCache:_0xe8ed99}=this[_0x5a386b(0x2d0)]['getRenderById'](_0x596898)[_0x5a386b(0x1ae)](f[_0x5a386b(0x2e2)])[_0x5a386b(0x2d1)]();if(_0xe8ed99['length']===0x0)return _0x4cc804;let _0x599cd8=t['Tools'][_0x5a386b(0x25e)](_0x4cc804[_0x5a386b(0x1df)][0x0]);for(let _0x4c7893=0x0;_0x4c7893<_0xe8ed99[_0x5a386b(0xeb)];_0x4c7893++){let _0xb89a2f={'id':_0x5a386b(0x2eb),'params':{..._0xe8ed99[_0x4c7893]}},_0x3ca10b=this[_0x5a386b(0x300)][_0x5a386b(0x107)](_0x599cd8,_0xb89a2f,!0x1);if((0x0,m[_0x5a386b(0x219)])(_0x3ca10b))throw _0x3ca10b[_0x5a386b(0xca)];_0x599cd8=_0x3ca10b['m1Prime'];}return{...t[_0x5a386b(0x2dd)][_0x5a386b(0x25e)](_0x4cc804),'mutations':[_0x599cd8]};}[_0x289474(0x204)](_0x339c86){const _0x21e022=_0x289474;let {unitID:_0x46f283}=_0x339c86,_0x9762f0=this[_0x21e022(0x2d0)]['getRenderById'](_0x46f283)[_0x21e022(0x1ae)](f[_0x21e022(0x2e2)]),{undoCache:_0x36f4f1,redoCache:_0x4ee5bb}=_0x9762f0[_0x21e022(0x2d1)]();if(_0x36f4f1[_0x21e022(0xeb)]===0x0||_0x4ee5bb[_0x21e022(0xeb)]===0x0)return;let _0x4e57d3=[],_0x558206=[],_0x161120=t[_0x21e022(0x2dd)][_0x21e022(0x25e)](_0x339c86[_0x21e022(0x1df)][0x0]),_0x3fd44f=t['Tools'][_0x21e022(0x25e)](_0x339c86[_0x21e022(0x1df)][0x0]);for(let _0x3f3337=_0x36f4f1[_0x21e022(0xeb)]-0x1;_0x3f3337>=0x0;_0x3f3337--){let _0x942557={'id':_0x21e022(0x2eb),'params':{..._0x36f4f1[_0x3f3337]}},_0x205271={'id':_0x21e022(0x2eb),'params':{..._0x4ee5bb[_0x3f3337]}},_0x581a7=this[_0x21e022(0x300)][_0x21e022(0x107)](_0x161120,_0x942557,!0x1),_0x33edfa=this[_0x21e022(0x300)]['transformMutation'](_0x3fd44f,_0x205271,!0x1);if((0x0,m[_0x21e022(0x219)])(_0x581a7))throw _0x581a7[_0x21e022(0xca)];if((0x0,m['isTransformMutationFailure'])(_0x33edfa))throw _0x33edfa[_0x21e022(0xca)];_0x4e57d3[_0x21e022(0x2ff)](_0x581a7[_0x21e022(0x1e4)][_0x21e022(0x168)]),_0x558206[_0x21e022(0x2ff)](_0x33edfa['m2Prime'][_0x21e022(0x168)]),_0x161120=_0x581a7[_0x21e022(0x2df)],_0x3fd44f=_0x33edfa['m1Prime'];}_0x9762f0['setUndoRedoMutationParamsCache']({'undoCache':_0x4e57d3,'redoCache':_0x558206});}[_0x289474(0x28c)](_0x50cedb){const _0x383b98=_0x289474;let {unitID:_0x596b0f}=_0x50cedb,_0x508450=this[_0x383b98(0x2d0)]['getRenderById'](_0x596b0f)[_0x383b98(0x1ae)](f[_0x383b98(0x2e2)]),_0x1d5282=_0x508450['getActiveRange']();if(_0x1d5282==null)return;let _0xb59936=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x50cedb['unitID'],'actions':null,'textRanges':[_0x1d5282]}}],_0x3b6b17=this[_0x383b98(0x300)][_0x383b98(0x128)](_0x50cedb,_0xb59936);if(!(0x0,m[_0x383b98(0x15e)])(_0x3b6b17))throw _0x3b6b17['error'];let _0x2f2e7c=_0x3b6b17[_0x383b98(0x1e4)][0x0][_0x383b98(0x168)][_0x383b98(0x2f5)];Array[_0x383b98(0x26f)](_0x2f2e7c)&&_0x2f2e7c[_0x383b98(0xeb)]&&_0x508450[_0x383b98(0x235)](_0x2f2e7c[0x0]);}};U=T([w(0x0,m['ITransformService']),w(0x1,u[_0x289474(0x281)])],U);let W=class{constructor(_0x3a80f6,_0x4549d6,_0x2da5d3){const _0x6573d6=_0x289474;this[_0x6573d6(0x99)]=_0x3a80f6,this['_transformService']=_0x4549d6,this['_docStateChangeManagerService']=_0x2da5d3;}['transformStateCache'](_0x2619e1){const _0x35b2cc=_0x289474;this[_0x35b2cc(0x2c2)](_0x2619e1);}['transformRemoteChangeset'](_0x55d876){const _0x43259a=_0x289474;let {unitID:_0xe52ebf}=_0x55d876,{collaboration:_0x3ff741}=this[_0x43259a(0x169)][_0x43259a(0x231)](_0xe52ebf);if(_0x3ff741[_0x43259a(0xeb)]===0x0)return _0x55d876;let _0x1d89a9=t[_0x43259a(0x2dd)][_0x43259a(0x25e)](_0x55d876[_0x43259a(0x1df)][0x0]);for(let _0x9118e2=0x0;_0x9118e2<_0x3ff741[_0x43259a(0xeb)];_0x9118e2++){let _0x46059b={'id':_0x43259a(0x2eb),'params':{'unitId':_0x3ff741[_0x9118e2]['unitId'],..._0x3ff741[_0x9118e2][_0x43259a(0x1c7)]}},_0x2bec7a=this[_0x43259a(0x300)][_0x43259a(0x107)](_0x1d89a9,_0x46059b,!0x1);if((0x0,m[_0x43259a(0x219)])(_0x2bec7a))throw _0x2bec7a[_0x43259a(0xca)];_0x1d89a9=_0x2bec7a[_0x43259a(0x2df)];}return{...t[_0x43259a(0x2dd)]['deepClone'](_0x55d876),'mutations':[_0x1d89a9]};}['_transformHistoryAndStateStack'](_0xf112f6){const _0xa8964c=_0x289474;let {unitID:_0x35adea}=_0xf112f6,{history:_0x43251b,collaboration:_0x4574c4}=this[_0xa8964c(0x169)][_0xa8964c(0x231)](_0x35adea);if(_0x43251b[_0xa8964c(0xeb)]===0x0&&_0x4574c4[_0xa8964c(0xeb)]===0x0)return;let _0x393e3e=[],_0x35e047=[],_0x5873cd=t['Tools'][_0xa8964c(0x25e)](_0xf112f6[_0xa8964c(0x1df)][0x0]),_0x329398=t[_0xa8964c(0x2dd)][_0xa8964c(0x25e)](_0xf112f6['mutations'][0x0]);for(let _0x182711=_0x43251b[_0xa8964c(0xeb)]-0x1;_0x182711>=0x0;_0x182711--){let _0xad00af={'id':_0xa8964c(0x2eb),'params':{'unitId':_0x43251b[_0x182711][_0xa8964c(0x136)],..._0x43251b[_0x182711]['undoState']}},_0x3873bc={'id':_0xa8964c(0x2eb),'params':{'unitId':_0x43251b[_0x182711][_0xa8964c(0x136)],..._0x43251b[_0x182711]['redoState']}},_0x28b3b5=this[_0xa8964c(0x300)][_0xa8964c(0x107)](_0x5873cd,_0xad00af,!0x1),_0x4d48c2=this[_0xa8964c(0x300)][_0xa8964c(0x107)](_0x329398,_0x3873bc,!0x1);if((0x0,m[_0xa8964c(0x219)])(_0x28b3b5))throw _0x28b3b5[_0xa8964c(0xca)];if((0x0,m[_0xa8964c(0x219)])(_0x4d48c2))throw _0x4d48c2[_0xa8964c(0xca)];_0x393e3e['unshift']({..._0x43251b[_0x182711],'undoState':_0x28b3b5[_0xa8964c(0x1e4)]['params'],'redoState':_0x4d48c2[_0xa8964c(0x1e4)][_0xa8964c(0x168)]}),_0x5873cd=_0x28b3b5['m1Prime'],_0x329398=_0x4d48c2[_0xa8964c(0x2df)];}_0x5873cd=t[_0xa8964c(0x2dd)][_0xa8964c(0x25e)](_0xf112f6['mutations'][0x0]),_0x329398=t[_0xa8964c(0x2dd)][_0xa8964c(0x25e)](_0xf112f6[_0xa8964c(0x1df)][0x0]);for(let _0x51d28f=_0x4574c4[_0xa8964c(0xeb)]-0x1;_0x51d28f>=0x0;_0x51d28f--){let _0x7d1976={'id':_0xa8964c(0x2eb),'params':{'unitId':_0x4574c4[_0x51d28f][_0xa8964c(0x136)],..._0x4574c4[_0x51d28f]['undoState']}},_0x143736={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4574c4[_0x51d28f][_0xa8964c(0x136)],..._0x4574c4[_0x51d28f][_0xa8964c(0x1c7)]}},_0x57b8d3=this[_0xa8964c(0x300)][_0xa8964c(0x107)](_0x5873cd,_0x7d1976,!0x1),_0xd76f6f=this['_transformService'][_0xa8964c(0x107)](_0x329398,_0x143736,!0x1);if((0x0,m[_0xa8964c(0x219)])(_0x57b8d3))throw _0x57b8d3[_0xa8964c(0xca)];if((0x0,m[_0xa8964c(0x219)])(_0xd76f6f))throw _0xd76f6f['error'];_0x35e047[_0xa8964c(0x2ff)]({..._0x4574c4[_0x51d28f],'undoState':_0x57b8d3[_0xa8964c(0x1e4)][_0xa8964c(0x168)],'redoState':_0xd76f6f['m2Prime'][_0xa8964c(0x168)]}),_0x5873cd=_0x57b8d3[_0xa8964c(0x2df)],_0x329398=_0xd76f6f[_0xa8964c(0x2df)];}this['_docStateChangeManagerService'][_0xa8964c(0x150)](_0x35adea,{'history':_0x393e3e,'collaboration':_0x35e047});}};W=T([w(0x0,(0x0,t['Inject'])(t[_0x289474(0xab)])),w(0x1,m['ITransformService']),w(0x2,(0x0,t['Inject'])(f['DocStateChangeManagerService']))],W);let G=class{constructor(_0x50f168,_0x5ca310){const _0x593102=_0x289474;this[_0x593102(0x99)]=_0x50f168,this[_0x593102(0x300)]=_0x5ca310;}[_0x289474(0x10e)](_0x4d7b32){const _0x27f6f3=_0x289474;var _0x501426;let _0x64c394=this[_0x27f6f3(0x99)][_0x27f6f3(0x293)](h[_0x27f6f3(0x9e)]),_0x187af7=(_0x501426=_0x64c394['getDocRanges']())==null?[]:_0x501426;if(_0x187af7[_0x27f6f3(0xeb)]===0x0)return;let _0x373359=_0x4d7b32[_0x27f6f3(0xfa)],_0x255c3a=[{'id':_0x27f6f3(0x2eb),'params':{'unitId':_0x373359,'actions':null,'textRanges':_0x187af7}}],_0x5c2dda=this['_transformService'][_0x27f6f3(0x128)](_0x4d7b32,_0x255c3a);if(!(0x0,m[_0x27f6f3(0x15e)])(_0x5c2dda))throw _0x5c2dda[_0x27f6f3(0xca)];let _0x1cfe80=_0x5c2dda[_0x27f6f3(0x1e4)][0x0]['params'][_0x27f6f3(0x2f5)];Array[_0x27f6f3(0x26f)](_0x1cfe80)&&_0x1cfe80[_0x27f6f3(0xeb)]&&_0x64c394[_0x27f6f3(0x111)](_0x1cfe80,{'unitId':_0x373359,'subUnitId':_0x373359},!0x1);}};G=T([w(0x0,(0x0,t[_0x289474(0xde)])(t[_0x289474(0xab)])),w(0x1,m[_0x289474(0xd5)])],G);let K=class extends t[_0x289474(0x23e)]{constructor(_0x264075,_0x3364b5,_0x3189f1,_0x1ee0af,_0x1ee17c,_0x7c4a04,_0x3ba425,_0x263bd0){const _0x267f53=_0x289474;super(),this[_0x267f53(0x169)]=_0x264075,this[_0x267f53(0x238)]=_0x3364b5,this[_0x267f53(0x2f9)]=_0x3189f1,this['_docTransformStateCacheService']=_0x1ee0af,this[_0x267f53(0x121)]=_0x1ee17c,this['_docSyncEditingCollabCursorService']=_0x7c4a04,this[_0x267f53(0x1ca)]=_0x3ba425,this[_0x267f53(0xfe)]=_0x263bd0,C(this,_0x267f53(0x83),new r[(_0x267f53(0x2a9))](e[_0x267f53(0xd7)]['NOT_COLLAB'])),this[_0x267f53(0x2a8)]();}['_initEntityListener'](){const _0x22bed2=_0x289474;this[_0x22bed2(0x27e)](this[_0x22bed2(0x238)]['entityInit$']['subscribe'](_0x441e35=>{const _0x1f2523=_0x22bed2;let _0x3eeaa3=this[_0x1f2523(0x169)][_0x1f2523(0x25d)][_0x1f2523(0x2e3)](_0x6eb9fc=>{const _0x2cf69a=_0x1f2523;if(_0x6eb9fc==null)return;let {unitId:_0x5a1908,redoState:_0x3128b5,commandId:_0x4bc9f9}=_0x6eb9fc;if(_0x5a1908!==_0x441e35['unitID'])return;let _0x388799={'id':_0x4bc9f9,'type':t[_0x2cf69a(0x1a2)][_0x2cf69a(0x256)],'params':{'unitId':_0x5a1908,'actions':_0x3128b5['actions'],'textRanges':null}};_0x441e35[_0x2cf69a(0x7f)](_0x388799);});_0x441e35[_0x1f2523(0x27e)](_0x3eeaa3),_0x441e35 instanceof e[_0x1f2523(0x13b)]&&_0x441e35['addHandlerCallback']({'onTransformIME':_0x1a14e9=>this['_docTransformIMECacheService']['transformIMECache'](_0x1a14e9),'onTransformState':_0x411fea=>this[_0x1f2523(0x20c)]['transformStateCache'](_0x411fea),'onTransformSelections':_0x4050f3=>this[_0x1f2523(0x121)][_0x1f2523(0x10e)](_0x4050f3),'onSyncEditingCollabCursor':_0x4304f6=>this['_docSyncEditingCollabCursorService'][_0x1f2523(0x15d)](_0x4304f6),'onTransformRemoteChangesetByIMECache':_0x54e480=>this['_docTransformIMECacheService'][_0x1f2523(0x162)](_0x54e480),'onTransformRemoteChangesetByStateCache':_0x29a030=>this['_docTransformStateCacheService'][_0x1f2523(0x162)](_0x29a030)});}));}};K=T([w(0x0,(0x0,t[_0x289474(0xde)])(f[_0x289474(0xc6)])),w(0x1,(0x0,t[_0x289474(0xde)])(e[_0x289474(0x1b2)])),w(0x2,(0x0,t[_0x289474(0xde)])(U)),w(0x3,(0x0,t[_0x289474(0xde)])(W)),w(0x4,(0x0,t[_0x289474(0xde)])(G)),w(0x5,(0x0,t[_0x289474(0xde)])(M)),w(0x6,n[_0x289474(0xe9)]),w(0x7,(0x0,t[_0x289474(0xde)])(t[_0x289474(0x2c8)]))],K);let q=class extends t[_0x289474(0x23e)]{constructor(_0x8eb0ef,_0x293bd0,_0x1db4c6,_0x291fb0){const _0x12445f=_0x289474;super(),this[_0x12445f(0x99)]=_0x8eb0ef,this[_0x12445f(0x155)]=_0x293bd0,this[_0x12445f(0xd1)]=_0x1db4c6,this[_0x12445f(0x287)]=_0x291fb0,C(this,'_memberID',void 0x0),this[_0x12445f(0x258)]();}[_0x289474(0x258)](){const _0x3fbf4c=_0x289474;this[_0x3fbf4c(0xc8)](),this[_0x3fbf4c(0x138)](),this[_0x3fbf4c(0x30d)](),this[_0x3fbf4c(0xce)]();}[_0x289474(0xce)](){const _0x55cb4b=_0x289474;this[_0x55cb4b(0x27e)](this[_0x55cb4b(0x287)]['socket$'][_0x55cb4b(0x2e3)](_0xba608b=>{this['_memberID']=_0xba608b==null?void 0x0:_0xba608b['memberID'];}));}[_0x289474(0xc8)](){const _0x54a521=_0x289474;let _0x2f419e=_0x332667=>{const _0x272270=_0xe480;var _0x1fa214;this[_0x272270(0x1f6)]('error','[Window\x20Error]:\x20'+_0x332667['message']+_0x272270(0x1c6)+_0x332667[_0x272270(0x1f2)]+':'+_0x332667['lineno']+':'+_0x332667[_0x272270(0x100)]+'\x0a'+(((_0x1fa214=_0x332667[_0x272270(0xca)])==null?void 0x0:_0x1fa214[_0x272270(0x221)])||''));};window[_0x54a521(0x290)](_0x54a521(0xca),_0x2f419e),this[_0x54a521(0x27e)](()=>{const _0x4b1b5a=_0x54a521;window['removeEventListener'](_0x4b1b5a(0xca),_0x2f419e);});}[_0x289474(0x138)](){const _0x3d7368=_0x289474;let _0x4e4a63=_0x4c4157=>{const _0x5cc2e6=_0xe480;this[_0x5cc2e6(0x1f6)](_0x5cc2e6(0xca),_0x5cc2e6(0x25f)+_0x4c4157['reason']);};window[_0x3d7368(0x290)]('unhandledrejection',_0x4e4a63),this['disposeWithMe'](()=>{const _0xa661c7=_0x3d7368;window[_0xa661c7(0x280)](_0xa661c7(0x26b),_0x4e4a63);});}[_0x289474(0x30d)](){const _0x3f0f3a=_0x289474;let _0x4cac4c=this[_0x3f0f3a(0xd1)]['error'][_0x3f0f3a(0x2da)](this[_0x3f0f3a(0xd1)]);this[_0x3f0f3a(0xd1)][_0x3f0f3a(0xca)]=(..._0x28aa41)=>{const _0x3d5b56=_0x3f0f3a;let _0x4a801e=_0x28aa41['map'](_0xc9c21a=>_0xc9c21a instanceof Error?_0xc9c21a['message']+'\x0a'+_0xc9c21a[_0x3d5b56(0x221)]:String(_0xc9c21a))[_0x3d5b56(0x266)]('\x20');this[_0x3d5b56(0x1f6)](_0x3d5b56(0xca),_0x3d5b56(0x2d8)+_0x4a801e),_0x4cac4c(..._0x28aa41);},this[_0x3f0f3a(0x27e)](()=>{const _0x76731f=_0x3f0f3a;this['_logService'][_0x76731f(0xca)]=_0x4cac4c;});}[_0x289474(0x1f6)](_0x5e366a,_0x2ea1b0){const _0x50e2f8=_0x289474;try{let _0x23473a={'userId':this[_0x50e2f8(0x7e)],'logLabel':_0x5e366a,'content':_0x2ea1b0};this[_0x50e2f8(0x155)][_0x50e2f8(0x2af)]('/universer-api/frontend/logs',{'body':_0x23473a})[_0x50e2f8(0x197)](()=>{});}catch{}}};q=T([w(0x0,(0x0,t['Inject'])(t[_0x289474(0xab)])),w(0x1,(0x0,t[_0x289474(0xde)])(d['HTTPService'])),w(0x2,t['ILogService']),w(0x3,(0x0,t[_0x289474(0xde)])(e[_0x289474(0x296)]))],q);function fe(_0x26b6d4){const _0x52ef34=_0x289474;var _0x5a7f43,_0x56e7db;let _0x1f0582=(_0x5a7f43=_0x26b6d4[_0x52ef34(0x22e)])==null?void 0x0:_0x5a7f43[_0x52ef34(0xb4)],_0x1b5679=((_0x56e7db=_0x26b6d4[_0x52ef34(0x22e)])==null?void 0x0:_0x56e7db['totalFormulasToCalculate'])||0x0;return _0x1f0582===g[_0x52ef34(0x2c5)][_0x52ef34(0xb2)]&&_0x1b5679>0x0;}function pe(_0x25912c){const _0x40b705=_0x289474;return _0x25912c[_0x40b705(0xa6)]===g[_0x40b705(0x90)][_0x40b705(0x176)];}let J=class extends t[_0x289474(0x23e)]{constructor(_0xec14bd,_0x23e045,_0x25d532,_0x5abbb4,_0x72fd6,_0x43903d,_0x3fb899){const _0x2c9461=_0x289474;super(),this[_0x2c9461(0x1ca)]=_0xec14bd,this[_0x2c9461(0x228)]=_0x23e045,this[_0x2c9461(0x12f)]=_0x25d532,this[_0x2c9461(0x155)]=_0x5abbb4,this[_0x2c9461(0x1db)]=_0x72fd6,this['_logService']=_0x43903d,this[_0x2c9461(0xfe)]=_0x3fb899,C(this,_0x2c9461(0x119),null),C(this,_0x2c9461(0x29a),0x0),C(this,_0x2c9461(0x20f),0x0),C(this,'_taskIds',[]),C(this,_0x2c9461(0x274),0x0),this['_initCommandInterceptor']();}[_0x289474(0x2bc)](){const _0x81952e=_0x289474;this['disposeWithMe'](this['_commandService'][_0x81952e(0x2fb)]((_0x7e8e98,_0x5966ac)=>{const _0x15878e=_0x81952e;var _0x5d960b;if(_0x7e8e98['id']!==g[_0x15878e(0x2cc)]['id'])return;let _0x4eb76c=_0x7e8e98['params'];if(this[_0x15878e(0x291)]((_0x5d960b=_0x4eb76c['dirtyRanges'])==null?[]:_0x5d960b)&&!this[_0x15878e(0x1d6)]())throw this[_0x15878e(0x91)](_0x7e8e98,_0x5966ac),this[_0x15878e(0xa2)](),new t[(_0x15878e(0x19e))]();})),this[_0x81952e(0x27e)](this[_0x81952e(0x228)]['onCommandExecuted']((_0x38ef76,_0x10fa9d)=>{const _0x5d2dc8=_0x81952e;if(_0x38ef76['id']!==g['SetFormulaCalculationNotificationMutation']['id'])return;let _0x50036a=_0x38ef76[_0x5d2dc8(0x168)];if(fe(_0x50036a)){let _0x3fc756=(0x0,t[_0x5d2dc8(0x234)])();this[_0x5d2dc8(0x23f)][_0x5d2dc8(0x170)](_0x3fc756),this[_0x5d2dc8(0x187)](_0x3fc756);}else{if(pe(_0x50036a)&&this[_0x5d2dc8(0x23f)][_0x5d2dc8(0xeb)]>0x0){let _0x19e771=this[_0x5d2dc8(0x23f)]['shift']();this[_0x5d2dc8(0x2b2)](_0x19e771);}}}));}[_0x289474(0x9a)](){const _0x26e1f0=_0x289474;super[_0x26e1f0(0x9a)](),this[_0x26e1f0(0x25c)](),this[_0x26e1f0(0x23f)]=[],this['_currentUsage']=0x0,this[_0x26e1f0(0x29a)]=0x0,this[_0x26e1f0(0x274)]=0x0;}async[_0x289474(0x91)](_0x2e9249,_0x424d43){const _0x4074d7=_0x289474;for(let _0x36e95d=0x0;_0x36e95d<0x1e;_0x36e95d++)try{if(await this[_0x4074d7(0x11f)](),this['_checkCalculationAvailable']()){this[_0x4074d7(0x2a5)](_0x2e9249,_0x424d43),this['_messageService'][_0x4074d7(0x1ad)]({'content':this[_0x4074d7(0xfe)]['t'](_0x4074d7(0x27d)),'type':i[_0x4074d7(0x172)][_0x4074d7(0xcc)]});return;}await new Promise(_0x2d6ed0=>{const _0x4383d6=_0x4074d7;this[_0x4383d6(0x119)]=window['setTimeout'](_0x2d6ed0,0x3e8);});}catch(_0x51e2ef){this[_0x4074d7(0xd1)]['error'](_0x51e2ef);}this['_messageService'][_0x4074d7(0x1ad)]({'content':this[_0x4074d7(0xfe)]['t'](_0x4074d7(0x190)),'type':i[_0x4074d7(0x172)][_0x4074d7(0x288)]});}['_applyCommand'](_0x327a95,_0x444026){const _0x4dd3b0=_0x289474;try{this[_0x4dd3b0(0x228)]['executeCommand'](_0x327a95['id'],_0x327a95[_0x4dd3b0(0x168)],_0x444026);}catch(_0x2a8887){this['_logService'][_0x4dd3b0(0xca)](_0x2a8887);}}[_0x289474(0x196)](_0x367699,_0x246e23){const _0x220bb2=_0x289474;_0x246e23<this[_0x220bb2(0x274)]||(this[_0x220bb2(0x274)]=_0x246e23,this[_0x220bb2(0x29a)]=Number[_0x220bb2(0x16b)](_0x367699[_0x220bb2(0x11a)]),this[_0x220bb2(0x20f)]=Number[_0x220bb2(0x16b)](_0x367699[_0x220bb2(0x110)]));}async[_0x289474(0x187)](_0x3ad2d8){const _0x5bb940=_0x289474;let _0x3953de=Date[_0x5bb940(0x28a)]();try{var _0x49c537,_0x26d4ad;let _0x4241ad=((_0x49c537=this[_0x5bb940(0x12f)][_0x5bb940(0x19d)](e[_0x5bb940(0x1b7)]))==null?void 0x0:_0x49c537['startFormulaLimitUrl'])||'/universer-api/license/formula/limit/start',_0x3713a5=(await this[_0x5bb940(0x155)][_0x5bb940(0x2af)](_0x4241ad,{'body':JSON[_0x5bb940(0x2e6)]({'taskId':_0x3ad2d8})}))['body'];if(((_0x26d4ad=_0x3713a5['error'])==null?void 0x0:_0x26d4ad['code'])!==y[_0x5bb940(0xc5)]['OK'])return;this[_0x5bb940(0x196)](_0x3713a5['limitInfo'],_0x3953de);}catch(_0x1e2d83){this[_0x5bb940(0xd1)][_0x5bb940(0xca)](_0x1e2d83);}}async[_0x289474(0x11f)](_0x255b57){const _0x40839b=_0x289474;let _0x191712=Date[_0x40839b(0x28a)]();try{var _0x2de62c,_0x3ab170;let _0x1e5acc=((_0x2de62c=this[_0x40839b(0x12f)]['getConfig'](e[_0x40839b(0x1b7)]))==null?void 0x0:_0x2de62c['getFormulaLimitStatusUrl'])||_0x40839b(0x1ea),_0x414adc=_0x255b57?_0x1e5acc+_0x40839b(0x7d)+encodeURIComponent(_0x255b57):_0x1e5acc,_0x3c3e4b=(await this[_0x40839b(0x155)][_0x40839b(0x293)](_0x414adc))[_0x40839b(0x9f)];if(((_0x3ab170=_0x3c3e4b['error'])==null?void 0x0:_0x3ab170[_0x40839b(0x27b)])!==y['ErrorCode']['OK'])return;this[_0x40839b(0x196)](_0x3c3e4b['limitInfo'],_0x191712);}catch(_0x6d2ea3){this[_0x40839b(0xd1)][_0x40839b(0xca)](_0x6d2ea3);}}async[_0x289474(0x2b2)](_0x280963){const _0x454a8a=_0x289474;let _0xc3c460=Date[_0x454a8a(0x28a)]();try{var _0x45fb1e,_0x1f5c0e;let _0x2a585=((_0x45fb1e=this[_0x454a8a(0x12f)][_0x454a8a(0x19d)](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x45fb1e[_0x454a8a(0xf0)])||_0x454a8a(0x1b8),_0x2dfa6d=(await this['_httpService'][_0x454a8a(0x2af)](_0x2a585,{'body':JSON[_0x454a8a(0x2e6)]({'taskId':_0x280963})}))['body'];if(((_0x1f5c0e=_0x2dfa6d['error'])==null?void 0x0:_0x1f5c0e[_0x454a8a(0x27b)])!==y[_0x454a8a(0xc5)]['OK'])return;this[_0x454a8a(0x196)](_0x2dfa6d[_0x454a8a(0x304)],_0xc3c460);}catch(_0x42efb0){this['_logService'][_0x454a8a(0xca)](_0x42efb0);}}[_0x289474(0x1d6)](){const _0x8e3ad3=_0x289474;return this[_0x8e3ad3(0x29a)]===0x0?!0x0:this[_0x8e3ad3(0x29a)]-this[_0x8e3ad3(0x20f)]>0x0;}[_0x289474(0x25c)](){const _0xfd66a7=_0x289474;this['_pollingInterval']&&(clearTimeout(this[_0xfd66a7(0x119)]),this[_0xfd66a7(0x119)]=null);}['_showGuardMessage'](){const _0x42a86a=_0x289474;this[_0x42a86a(0x1ca)]['show']({'content':this[_0x42a86a(0xfe)]['t'](_0x42a86a(0x2e1)),'type':i[_0x42a86a(0x172)][_0x42a86a(0xe0)]});}[_0x289474(0x291)](_0x65a07d){const _0x192b75=_0x289474;for(let _0x5c0344 of _0x65a07d){let {unitId:_0x53f933,sheetId:_0x6f8dab,range:_0xdaabfb}=_0x5c0344,_0x212965=this[_0x192b75(0x1db)][_0x192b75(0x183)](_0x53f933);if(!_0x212965)continue;let _0x11e9c9=_0x212965[_0x192b75(0xd3)](_0x6f8dab);if(!_0x11e9c9)continue;let _0x481445=_0x11e9c9['getCellMatrix']();for(let _0x40ecca=_0xdaabfb[_0x192b75(0x160)];_0x40ecca<=_0xdaabfb[_0x192b75(0x1c4)];_0x40ecca++)for(let _0x15ad1a=_0xdaabfb[_0x192b75(0x1c8)];_0x15ad1a<=_0xdaabfb[_0x192b75(0x154)];_0x15ad1a++){let _0x4a7b18=_0x481445[_0x192b75(0x122)](_0x40ecca,_0x15ad1a);if(_0x4a7b18&&((0x0,t[_0x192b75(0x2d5)])(_0x4a7b18['f'])||(0x0,t[_0x192b75(0x286)])(_0x4a7b18['si'])))return!0x0;}}return!0x1;}};J=T([w(0x0,(0x0,t[_0x289474(0xde)])(n[_0x289474(0xe9)])),w(0x1,t[_0x289474(0xc0)]),w(0x2,t[_0x289474(0x23c)]),w(0x3,(0x0,t[_0x289474(0xde)])(d[_0x289474(0x1ce)])),w(0x4,t[_0x289474(0x191)]),w(0x5,t[_0x289474(0x94)]),w(0x6,(0x0,t['Inject'])(t[_0x289474(0x2c8)]))],J);let Y=class extends t['Disposable']{constructor(_0xfbc7a6,_0x59b4f5,_0x5f0ba2){const _0x33aa41=_0x289474;super(),this[_0x33aa41(0x12f)]=_0xfbc7a6,this[_0x33aa41(0x22d)]=_0x59b4f5,this['_revisionService']=_0x5f0ba2,C(this,_0x33aa41(0x30e),new Map()),C(this,_0x33aa41(0xbc),new Map()),C(this,_0x33aa41(0xf3),!0x1);}[_0x289474(0x1d8)](){const _0x5886f6=_0x289474;this[_0x5886f6(0xf3)]=!0x0;}[_0x289474(0x2b5)](){this['_disabled']=!0x1;}get[_0x289474(0xf8)](){const _0x1b056e=_0x289474;return this[_0x1b056e(0xbc)];}[_0x289474(0x9a)](){const _0x4eb15=_0x289474;this[_0x4eb15(0xe4)]()[_0x4eb15(0x25b)](()=>super[_0x4eb15(0x9a)]());}async[_0x289474(0x17b)](_0x531d4e){const _0x55cdd2=_0x289474;return this[_0x55cdd2(0xf3)]?null:this[_0x55cdd2(0x22d)]['getItem']((0x0,e['getLocalCacheKey'])(_0x531d4e));}async['saveOfflineData'](_0xb1b404,_0x3221a0){return!!this['_localStorageService']['setItem'](_0xb1b404,_0x3221a0);}['updateOfflineData'](_0x58ebd6,_0x3fc17b,_0x376372,_0x573446){const _0x4923cb=_0x289474;let _0x615411=this[_0x4923cb(0x2e9)][_0x4923cb(0x105)](_0x58ebd6);this[_0x4923cb(0x30e)][_0x4923cb(0x2b4)](_0x58ebd6,{'unitID':_0x58ebd6,'type':_0x3fc17b,'awaitingChangeset':_0x376372,'mutations':_0x573446,'rev':_0x615411}),this[_0x4923cb(0xbc)][_0x4923cb(0x10c)](_0x58ebd6)||this[_0x4923cb(0x17d)](_0x58ebd6);}[_0x289474(0x17d)](_0x104d9d){const _0x1ef9e3=_0x289474;let _0x505630=this[_0x1ef9e3(0x2ad)]();_0x505630===0x0?this[_0x1ef9e3(0x277)](_0x104d9d):this[_0x1ef9e3(0xbc)][_0x1ef9e3(0x2b4)](_0x104d9d,setTimeout(()=>this[_0x1ef9e3(0x277)](_0x104d9d),_0x505630));}[_0x289474(0x2ad)](){const _0x3c8a72=_0x289474;var _0x620246;return(_0x620246=this[_0x3c8a72(0x12f)]['getConfig'](e[_0x3c8a72(0x84)]))==null?e['LOCAL_CACHE_INTERVAL']:_0x620246;}[_0x289474(0x277)](_0x25c712){const _0x110295=_0x289474;let _0x4263df=this[_0x110295(0xbc)][_0x110295(0x293)](_0x25c712);return _0x4263df!==void 0x0&&window[_0x110295(0xb8)](_0x4263df),this[_0x110295(0x22d)]['setItem']((0x0,e[_0x110295(0xe8)])(_0x25c712),this[_0x110295(0x30e)][_0x110295(0x293)](_0x25c712))[_0x110295(0x25b)](()=>this[_0x110295(0xbc)]['delete'](_0x25c712));}async['exhaustSavingTask'](){const _0x540f1c=_0x289474;let _0x4e4b6c=[];this[_0x540f1c(0xbc)][_0x540f1c(0x193)]((_0x300f08,_0x1728ea)=>{const _0x31abfa=_0x540f1c;window[_0x31abfa(0xb8)](_0x300f08),_0x4e4b6c['push'](this[_0x31abfa(0x277)](_0x1728ea)['then'](()=>{const _0xb72d65=_0x31abfa;this[_0xb72d65(0xbc)][_0xb72d65(0x260)](_0x1728ea);}));}),await Promise['all'](_0x4e4b6c);}};Y=T([w(0x0,t[_0x289474(0x23c)]),w(0x1,t[_0x289474(0x230)]),w(0x2,(0x0,t['Inject'])(m[_0x289474(0x2d9)]))],Y);var X=class extends t[_0x289474(0x141)]{constructor(){const _0x42d6bd=_0x289474;super(),C(this,_0x42d6bd(0x102),void 0x0),this[_0x42d6bd(0x102)]=(0x0,r['fromEvent'])(window,_0x42d6bd(0x26a))[_0x42d6bd(0x261)]((0x0,r['takeUntil'])(this['dispose$']),(0x0,r['shareReplay'])(0x1),(0x0,r['mapTo'])(void 0x0));}[_0x289474(0x2e8)](_0x40e4f8,_0x550238,_0x411745=!0x1){const _0x1ebdaa=_0x289474;let _0x2d80c0=new URL(window[_0x1ebdaa(0x14d)][_0x1ebdaa(0x189)]);_0x2d80c0[_0x1ebdaa(0x307)][_0x1ebdaa(0x2b4)](_0x40e4f8,_0x550238),_0x411745?window['history'][_0x1ebdaa(0x1f0)]('','',_0x2d80c0['toString']()):window[_0x1ebdaa(0x27a)][_0x1ebdaa(0x12e)]('','',_0x2d80c0['toString']());}[_0x289474(0xba)](_0x31a6a5,_0x66476b=!0x1){const _0x46ebaf=_0x289474;let _0x4ea513=new URL(window[_0x46ebaf(0x14d)]['href']);_0x4ea513[_0x46ebaf(0x307)]['delete'](_0x31a6a5),_0x66476b?window[_0x46ebaf(0x27a)][_0x46ebaf(0x1f0)]('','',_0x4ea513['toString']()):window[_0x46ebaf(0x27a)][_0x46ebaf(0x12e)]('','',_0x4ea513['toString']());}[_0x289474(0x1e7)](_0x51ab78){const _0x46bb95=_0x289474;var _0x41e209;return(_0x41e209=new URL(window[_0x46bb95(0x14d)][_0x46bb95(0x189)])[_0x46bb95(0x307)][_0x46bb95(0x293)](_0x51ab78))==null?void 0x0:_0x41e209;}};let Z=class extends t[_0x289474(0x1be)]{constructor(_0xaf173d=H,_0x19903c,_0x342ac6,_0x1003e1){const _0x5c09d8=_0x289474;super(),this[_0x5c09d8(0x124)]=_0xaf173d,this[_0x5c09d8(0x2d0)]=_0x19903c,this[_0x5c09d8(0x99)]=_0x342ac6,this[_0x5c09d8(0x12f)]=_0x1003e1;let {..._0x40f454}=(0x0,t[_0x5c09d8(0x2c7)])({},H,this[_0x5c09d8(0x124)]);this[_0x5c09d8(0x12f)]['setConfig'](V,_0x40f454);}[_0x289474(0xa9)](){const _0x2e0293=_0x289474;this['_registerDependencies'](),this[_0x2e0293(0x1c0)]();}['onRendered'](){const _0x4c78ad=_0x289474;this[_0x4c78ad(0x152)]();}['_registerDependencies'](){const _0x11d48f=_0x289474;var _0x4c27a3;let _0x3cc291=[[A],[J],[G],[U],[W],[M],[D,{'useClass':X}],[d[_0x11d48f(0x29e)],{'useClass':d[_0x11d48f(0x2f4)]}],[e[_0x11d48f(0x1b9)],{'useClass':Y}],[E],[K],[B],[F],[k],[O]];this[_0x11d48f(0x124)]['enableFrontendLog']&&_0x3cc291[_0x11d48f(0x170)]([q]),(0x0,t[_0x11d48f(0x21e)])(this['_injector'],(0x0,t[_0x11d48f(0x2f6)])(_0x3cc291,(_0x4c27a3=this['_config'])==null?void 0x0:_0x4c27a3['override']));}['_registerRenderDependencies'](){const _0x2ffa4b=_0x289474;this[_0x2ffa4b(0x27e)](this[_0x2ffa4b(0x2d0)][_0x2ffa4b(0x265)](t[_0x2ffa4b(0x270)][_0x2ffa4b(0xf4)],[L])),this['disposeWithMe'](this[_0x2ffa4b(0x2d0)][_0x2ffa4b(0x265)](t[_0x2ffa4b(0x270)]['UNIVER_SHEET'],[z]));}[_0x289474(0x1c0)](){const _0x215903=_0x289474;(0x0,t['touchDependencies'])(this['_injector'],[[F],[E],[K],[B],[O],[J]]),this['_config'][_0x215903(0x244)]&&(0x0,t[_0x215903(0x188)])(this[_0x215903(0x99)],[[q]]);}};C(Z,_0x289474(0x116),'UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),C(Z,'packageName',re),C(Z,'version',ie),Z=T([(0x0,t[_0x289474(0x1e8)])(e['UniverCollaborationClientPlugin']),w(0x1,u[_0x289474(0x281)]),w(0x2,(0x0,t[_0x289474(0xde)])(t['Injector'])),w(0x3,t[_0x289474(0x23c)])],Z);let Q=class extends e['CollaborationSocketService']{constructor(_0x478e9b,_0x6dbf83,_0x25a518,_0x314120,_0x60123b){super(_0x478e9b,_0x6dbf83,_0x25a518,_0x314120,_0x60123b);}async[_0x289474(0x233)](_0x5e8e80){const _0x48e60d=_0x289474;let _0x3f1f96=await this[_0x48e60d(0x18c)](),_0x1511fe=this[_0x48e60d(0x20a)](_0x5e8e80,_0x3f1f96);return this[_0x48e60d(0x2fe)](_0x1511fe);}['_createSocketURL'](_0x47b97f,_0x5c8419){const _0xc0cb65=_0x289474;let _0x5145b7=typeof window>'u'?new URL(_0x47b97f):new URL(_0x47b97f,window['location'][_0xc0cb65(0x1f7)]);_0x5145b7[_0xc0cb65(0x307)][_0xc0cb65(0x2b4)](_0xc0cb65(0xcb),_0x5c8419);let _0x52a8fc=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0xc0cb65(0x17c)]);return _0x52a8fc[_0xc0cb65(0x293)]('runId')&&_0x5145b7[_0xc0cb65(0x307)]['set'](_0xc0cb65(0x278),_0x52a8fc[_0xc0cb65(0x293)](_0xc0cb65(0x278))),_0x5145b7[_0xc0cb65(0x1d9)]();}async['_getSessionTicket'](){const _0x361508=_0x289474;var _0x3acdc6,_0x4fb222,_0x4bdc46;let _0x54ec2c=this[_0x361508(0x12f)]['getConfig'](e[_0x361508(0x1b7)]),_0x1c7361=(_0x3acdc6=_0x54ec2c==null?void 0x0:_0x54ec2c[_0x361508(0x1a4)])==null?e['DEFAULT_WS_SESSION_TICKET_URL']:_0x3acdc6;return(_0x4fb222=(_0x4bdc46=(await this[_0x361508(0x155)][_0x361508(0x293)](_0x1c7361,{'headers':{'Content-Type':'application/json'}}))[_0x361508(0x9f)])==null?void 0x0:_0x4bdc46[_0x361508(0x311)])==null?'':_0x4fb222;}};Q=T([w(0x0,(0x0,t[_0x289474(0xde)])(t['Injector'])),w(0x1,(0x0,t['Inject'])(d[_0x289474(0x1ce)])),w(0x2,t['IConfigService']),w(0x3,t[_0x289474(0x94)]),w(0x4,m[_0x289474(0x104)])],Q);let $=class extends t[_0x289474(0x23e)]{constructor(_0x186dae,_0x57dbd8,_0x259321){const _0x4b775e=_0x289474;super(),this['_instanceService']=_0x186dae,this['_httpService']=_0x57dbd8,this[_0x4b775e(0x12f)]=_0x259321;}async[_0x289474(0x2a2)](_0x56669c,_0x56409a,_0x203021,..._0xee5b58){const _0x1feacf=_0x289474;var _0x4e5f67,_0x4db733,_0x44a5e2,_0x2dd13b;let _0x17cf2c=this[_0x1feacf(0x20d)][_0x1feacf(0x178)]();if(!_0x17cf2c)throw Error(_0x1feacf(0xdb));let _0x3fcc66=((_0x4e5f67=this[_0x1feacf(0x12f)][_0x1feacf(0x19d)](e[_0x1feacf(0x283)]))==null?e[_0x1feacf(0x257)]:_0x4e5f67)+'/'+_0x56669c+_0x1feacf(0x240)+_0x56409a,_0x8ce854={'scriptId':_0x56669c,'runId':(_0x4db733=new URL(window[_0x1feacf(0x14d)][_0x1feacf(0x189)])[_0x1feacf(0x307)][_0x1feacf(0x293)](_0x1feacf(0x278)))==null?'':_0x4db733,'function':_0x56409a,'unitId':_0x17cf2c[_0x1feacf(0x2e5)](),'argsOfFunction':JSON[_0x1feacf(0x2e6)](_0xee5b58),'invokeId':(_0x44a5e2=_0x203021['invokeId'])==null?'':_0x44a5e2,'executionId':(_0x2dd13b=_0x203021['executionId'])==null?'':_0x2dd13b};try{let _0x1447c7=await this[_0x1feacf(0x155)][_0x1feacf(0x2af)](_0x3fcc66,{'body':_0x8ce854});return _0x1447c7['body']['error']&&_0x1447c7[_0x1feacf(0x9f)][_0x1feacf(0xca)]['code']!==y['ErrorCode']['OK']?'Failed':_0x1447c7[_0x1feacf(0x9f)][_0x1feacf(0x125)];}catch{return _0x1feacf(0xfd);}}};$=T([w(0x0,t[_0x289474(0x191)]),w(0x1,(0x0,t[_0x289474(0xde)])(d['HTTPService'])),w(0x2,t[_0x289474(0x23c)])],$);const me=0x7530,he='ACTIVE_UNIT_EVENT_CHANNEL';var ge=class extends t[_0x289474(0x23e)]{constructor(){const _0x3c1694=_0x289474;super(),C(this,'_id',(0x0,t[_0x3c1694(0x234)])()),C(this,_0x3c1694(0x16d),new Set()),C(this,_0x3c1694(0xa8),new Map()),C(this,_0x3c1694(0x263),null),C(this,_0x3c1694(0x1f1),new Map()),C(this,_0x3c1694(0x18b),new Map()),this[_0x3c1694(0x258)]();}[_0x289474(0x9a)](){const _0x44af6b=_0x289474;super[_0x44af6b(0x9a)](),this[_0x44af6b(0x1f1)][_0x44af6b(0x193)]((_0x1c24ea,_0x23e93c)=>this[_0x44af6b(0x268)](_0x23e93c)),this[_0x44af6b(0x263)]&&window[_0x44af6b(0x166)](this['_heartbeatTimer']);}[_0x289474(0x1e0)](_0x1d2c5b){const _0x29e1ad=_0x289474;return this[_0x29e1ad(0x18a)](_0x1d2c5b)[_0x29e1ad(0x261)]((0x0,r['distinctUntilChanged'])());}[_0x289474(0x30a)](_0x6edd7a){const _0x15e741=_0x289474;this[_0x15e741(0x16d)][_0x15e741(0x1d5)]===0x0&&this['_scheduleHeartbeat'](),this[_0x15e741(0x16d)][_0x15e741(0x20e)](_0x6edd7a),this[_0x15e741(0x2a0)]({'type':0x0,'memberID':this[_0x15e741(0xee)],'unitIDs':[_0x6edd7a],'isForwarded':!0x1});}[_0x289474(0x98)](_0x4e67b1){const _0x1a2c13=_0x289474;this[_0x1a2c13(0x16d)]['delete'](_0x4e67b1),this[_0x1a2c13(0x16d)][_0x1a2c13(0x1d5)]===0x0&&this['_heartbeatTimer']&&window[_0x1a2c13(0x166)](this[_0x1a2c13(0x263)]);}['_init'](){const _0x144e87=_0x289474;this[_0x144e87(0x27e)]((0x0,t['toDisposable'])((0x0,r[_0x144e87(0x249)])(window,_0x144e87(0x212))[_0x144e87(0x2e3)](_0x29825a=>{const _0x5b83d4=_0x144e87;if(_0x29825a[_0x5b83d4(0x1e2)]!==he||!_0x29825a[_0x5b83d4(0x1a7)])return;let _0x2bb847=JSON[_0x5b83d4(0x2c4)](_0x29825a[_0x5b83d4(0x1a7)]);this[_0x5b83d4(0x89)](_0x2bb847);}))),window[_0x144e87(0x290)](_0x144e87(0x1e9),()=>this[_0x144e87(0x2a0)]({'type':0x1,'memberID':this[_0x144e87(0xee)],'unitIDs':Array[_0x144e87(0x2a6)](this[_0x144e87(0x16d)])}));}[_0x289474(0x89)](_0x166752){const _0x239e3a=_0x289474;switch(_0x166752[_0x239e3a(0x1c2)]){case 0x0:this['_handleJoinEvent'](_0x166752);break;case 0x1:this['_handleLeaveEvent'](_0x166752);break;case 0x2:this[_0x239e3a(0xae)](_0x166752);break;}}[_0x289474(0x140)](_0x3ecf08){const _0x4bb602=_0x289474;let {unitIDs:_0x4c6263,memberID:_0x1ecc3c,isForwarded:_0x2eed73}=_0x3ecf08;_0x4c6263[_0x4bb602(0x193)](_0xd47d02=>{const _0x2366e2=_0x4bb602;if(!_0x2eed73&&this[_0x2366e2(0xa8)][_0x2366e2(0x10c)](_0xd47d02)&&this[_0x2366e2(0x18a)](_0xd47d02)['next'](e[_0x2366e2(0xcd)][_0x2366e2(0x21c)]),!this['_unitOnClients'][_0x2366e2(0x10c)](_0xd47d02)||!this[_0x2366e2(0xa8)]['get'](_0xd47d02)['has'](_0x1ecc3c)){let _0x5df069=this[_0x2366e2(0xa8)]['get'](_0xd47d02)||new Set();_0x5df069[_0x2366e2(0x20e)](_0x1ecc3c),this[_0x2366e2(0xa8)][_0x2366e2(0x2b4)](_0xd47d02,_0x5df069),this['_scheduleClearOtherTimer'](_0x1ecc3c);}}),_0x2eed73||this[_0x4bb602(0x2a0)]({'type':0x0,'memberID':this[_0x4bb602(0xee)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x289474(0x223)](_0x2607f6){const _0x16da81=_0x289474;this['_removeClearOtherTimer'](_0x2607f6);let _0xe7ef0a=window[_0x16da81(0x220)](()=>{const _0x587eb7=_0x16da81;this[_0x587eb7(0xa8)][_0x587eb7(0x193)](_0x3f7316=>{const _0x17029e=_0x587eb7;_0x3f7316[_0x17029e(0x260)](_0x2607f6);});},me*0x2);this[_0x16da81(0x1f1)][_0x16da81(0x2b4)](_0x2607f6,_0xe7ef0a);}['_removeClearOtherTimer'](_0x3f38ac){const _0x319fae=_0x289474;if(this[_0x319fae(0x1f1)][_0x319fae(0x10c)](_0x3f38ac)){let _0x49eddc=this[_0x319fae(0x1f1)][_0x319fae(0x293)](_0x3f38ac);_0x49eddc&&window['clearTimeout'](_0x49eddc),this[_0x319fae(0x1f1)][_0x319fae(0x2b4)](_0x3f38ac,null);}}[_0x289474(0x86)](_0x3cecf8){const _0x33c75a=_0x289474;let {memberID:_0x2041ca,unitIDs:_0x23bc93}=_0x3cecf8;_0x23bc93[_0x33c75a(0x193)](_0x320688=>{const _0x5881a5=_0x33c75a;var _0x5ade1c;let _0xacb23b=this[_0x5881a5(0xa8)][_0x5881a5(0x293)](_0x320688);_0xacb23b&&(_0xacb23b['delete'](_0x2041ca),(_0x5ade1c=this[_0x5881a5(0x18a)](_0x320688))==null||_0x5ade1c[_0x5881a5(0x203)](_0xacb23b['size']===0x0?e[_0x5881a5(0xcd)][_0x5881a5(0x1b5)]:e[_0x5881a5(0xcd)][_0x5881a5(0x21c)]));}),this[_0x33c75a(0x268)](_0x2041ca);}[_0x289474(0xae)](_0x12f8bf){const _0x18c531=_0x289474;this['_scheduleClearOtherTimer'](_0x12f8bf[_0x18c531(0xea)]);}[_0x289474(0x2a0)](_0x23e156){const _0x28a656=_0x289474;localStorage[_0x28a656(0x16e)](he,JSON['stringify'](_0x23e156));}[_0x289474(0x1e3)](){const _0x55e2cb=_0x289474;this['_heartbeatTimer']=window[_0x55e2cb(0x2ab)](()=>{const _0x32d0d4=_0x55e2cb;this[_0x32d0d4(0x2a0)]({'type':0x2,'memberID':this['_id']});},me);}['_ensureSubject'](_0x186790){const _0x3fc6fe=_0x289474;return this[_0x3fc6fe(0x18b)]['has'](_0x186790)||this['_unitStatus']['set'](_0x186790,new r['BehaviorSubject'](e['UnitStatus'][_0x3fc6fe(0x1b5)])),this[_0x3fc6fe(0x18b)][_0x3fc6fe(0x293)](_0x186790);}};Object[_0x289474(0x1eb)](exports,'BrowserCollaborationSocketService',{'enumerable':!0x0,'get':function(){return Q;}}),Object['defineProperty'](exports,'CollaborationDataLoaderController',{'enumerable':!0x0,'get':function(){return O;}}),Object[_0x289474(0x1eb)](exports,_0x289474(0xb0),{'enumerable':!0x0,'get':function(){return E;}}),exports[_0x289474(0x1d0)]=D,Object[_0x289474(0x1eb)](exports,_0x289474(0xac),{'enumerable':!0x0,'get':function(){return $;}}),exports['SheetCollabCursorShape']=R,Object['defineProperty'](exports,_0x289474(0x259),{'enumerable':!0x0,'get':function(){return Z;}}),exports['WebBrowserSingleActiveUnitService']=ge,exports[_0x289474(0x171)]=X;
|