@univerjs-pro/edit-history-viewer 0.22.0 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +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/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/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/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 +24 -24
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2950(){const _0x45ba98=['SnapshotServerOverHTTPService','_combineRanges','SetRowDataMutation','userId','_renderManagerService','getAncestorScale','setShapeProps','SetSheetTableMutation','univer-text-xs\x20univer-text-gray-400','_drawTextBubble','moveTo','column','currentVersion','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-center\x20univer-py-4\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Module','0.01','SetWorksheetRowCountMutation','fetchCreatorList','abs','memberId','_extractRanges','univer-m-auto\x20univer-animate-spin','Edit','editHistory.panel.aiAssistant','removeAll','data','ISnapshotServerService','drawingId','entities','_showText','_creators$','getUnitId','renamePivotField','symbol','unmergeCells','addTable','unknownUser','InsertSheetsChartMutation','getCurrentLocale','entered','0.655','parent','_detailVersionsMap','current','SetColDataMutation','closePath','addSparkline','hidden','_initPanel','setColData','map','mutations','100%','updateCellRanges','5649406LRDKrl','_drawingManagerService','_componentManager','_blinkTimer','currentVersionDiff$','LocaleType','editHistory.panel.listFetchError','span','148FnjHea','moveCF','iterator','getSeconds','_configService','SetPivotValueFilterMutation','setWorksheetRangeTheme','color','arrowRowRanges','scrollToShape','getRuleById','updateShapeType','setPivotSubtotalType','removeRow','fetching$','SetConditionalRuleMutation','AddRangeThemeMutation','isError','InsertSheetMutation','Character','ITransformService','deleteBorderRanges','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-blue-50\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','loadSheet','getVersions','_dialogOptions$','Button','12px','_highlight','Segmented','INSERT','userID','_categorizeMutationRanges','_applyWorkbookData','AddSheetTableMutation','highlightSecond','/creators','SetGridlinesColorMutation','getVersion','createElement','hide','WorkbookEditablePermission','UniverNetworkPlugin','value','backgroundColor','getSheets','code','setOffsetY','deleteCF','UniverEditHistoryViewerMobilePlugin','IDrawingManagerService','loading','updatePivotSource','getRange','toDisposable','makeDirty','triggerLoadSheet','editHistory.panel.title','addRangeTheme','getSelectedVersionCanRevert','updateBorderRanges','evented','editHistory.action.revertSheetPrefix','VIEW_MAIN','_handleOverlappingShapes','labelKey','UniverInstanceType','startRow','setPivotFilter','SetWorksheetPermissionPointsMutation',':\x20(','executeCommand','SetColVisibleMutation','univer-flex\x20univer-items-center\x20univer-gap-2','key','univer-flex\x20univer-items-center\x20univer-justify-center','pipe','open','#01C2AA','start','onPointerLeave$','editSheet','editHistory.info.loading','updateChartSource','beginPath','copySheet','_confirmService','RemoveSheetMutation','getMember','HideSheet','init','historyListServerUrl','SetPivotFieldFormatMutation','object','reorderRange','User','IConfigService','SetFrozenMutation','justifyContent','reduce','_rangeProtectionRuleModel','AddRangeProtectionMutation','BehaviorSubject','isTransformMutationsSuccess','fillStyle','top','subUnitId','push','editHistory.panel.revertConfirmText','onPointerEnter$','jsx','editHistory.panel.filterCollaborator','transformByState','link','display','getMutationActionMap','editHistory.panel.revertDesc','arrowColumn','triggerRevert','#A656FF','chartModelId','command','rgba(225,\x20225,\x20225,\x200.5)','insertBorderRanges','351808EmUiOa','onSteady','pivotTableId','FloatImg','shapeId','subscribeEvent','_initMaskContainer','_transformMutationByOrder','SetWorksheetDefaultStyleMutation','RemoveRangeThemeMutation','ICellEditorManagerService','removeNumfmt','date','18.1758','getHistoryChangesets','setTimeout','unitId$','div','restore','setRangeValues','showText','toISOString','insertCellRanges','WorkbookRenameSheetPermission','_sidebarDisposable','ObjectMatrix','loaded','#FF557D','getUnitOnRev','string','subUnitIds','HTTPService','Tooltip','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-shrink-0\x20univer-rounded\x20univer-border\x20univer-border-primary-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-primary-50\x20univer-px-1.5\x20univer-py-0.5\x20univer-text-xs\x20univer-text-primary-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-transparent\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','showCol','status$','getMinutes','deleteProtection','removeChart','univer-max-h-[300px]\x20univer-overflow-y-auto\x20univer-py-1','univer-ml-1\x20univer-flex\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border\x20univer-border-primary-600\x20univer-bg-primary-50\x20univer-px-1.5\x20univer-text-xs\x20univer-text-primary-600','getCurrentVersion','LocaleService','recoverTime','startsWith','AddConditionalRuleMutation','SetPivotOptionMutation','SetWorksheetColumnCountMutation','addEventListener','dateString','_snapshotServerService','RemoveDataValidationMutation','loadingState$','SetWorksheetNameMutation','reverse','_lastPointer','0px','_loadParams','VersionDiffRenderController','_lastLabel','updateDrawings','insert','setFilter','canRevert','InsertRowMutation','BuiltInUIPart','editHistory.action.','AddWorksheetProtectionMutation','creators','startRevCreateTime','univer-min-w-0\x20univer-flex-1','left','_hasMore','Today','insertChart','univer-text-sm','measureText','FromArray','onRendered','removeSparkline','svg','getVpScrollXYInfoByPosToVp','setRowAutoHeight','width','_hovered','deleteCellRanges','SetWorksheetColWidthMutation','1000','time','anonymous','includes','_startBlinking','switchMap','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-end\x20univer-gap-2\x20univer-p-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_localeService','removePivotField','RemovePivotFieldMutation','_versionDiffService','currentSkeleton$','editHistory.panel.currentVersion','_sparklineDataSourceModel','viewportScrollX','loadMoreVersions','transformMutations','removeRangeTheme','onStarting','endRow','VIRTUAL_VERSION_NOW','UpdateSheetsShapeDataMutation','userIds','paint0_linear_236_415','Unspecified','ruleId','RemoveSheetsShapeMutation','_historyFetchService','_maskContainer','history-mask','registerRenderModule','save','insertRow','className','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-text-gray-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ICommandService','COMPRESS_MUTATION_APPLY','highlight','DeleteConditionalRuleMutation','SetWorksheetProtectionMutation','DeleteWorksheetProtectionMutation','addPivotField','set','startColumn','AddPivotFieldMutation','setPivotCollapse','triggerDblclick','chartId','params','_sheetTableService','SetWorksheetRowIsAutoHeightMutation','SetSheetsFilterCriteriaMutation','ChartUpdateSourceConfigMutation','Disposable','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-shrink-0\x20univer-cursor-pointer\x20univer-flex-col\x20univer-items-center\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','borderBottomClassName','CollaborationImageIoService','SetRangeThemeMutation','_drawVerticalArrow','concat','position','_openPanel','versions$','getCurrentUnitForType','setInterval','clearTimeout','moveRange','getDataRange','join','setFrozen','getSubUnitId','revertSheet','_cellEditorManagerService','SetPivotSubtotalTypeMutation','univer-mb-0.5\x20univer-flex\x20univer-items-center\x20univer-gap-2','UpdateDataValidationMutation','getSparklineById','SetRangeValuesMutation','tableId','packageName','none','Exited','univer-animate-spin\x20univer-text-gray-400','_blinkIntervalTimer','startRev','_setFetching','mergeCells','endRevision','_loadingState$','SHEET_VIEWPORT_KEY','RenamePivotFieldMutation','_initRender','http://www.w3.org/2000/svg','getViewport','_isBlinkVisible','rgba(198,40,40,0.5)','register','hideCol','horizontal','refreshRangeProtectPermission','loadInitialVersions','univer-size-4','keys','range','_httpService','getTableInfo','univer-relative\x20univer-h-8','IRenderManagerService','Fragment','scene','flex','_findOverlappingShapes','asObservable','body','setCF','setPivotValueFilter','useObservable','_initActiveSwitch','setPivotPosition','_getActiveSubUnitId','_openPanel$','getPivotTableRangeInfo','univer-flex\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-100\x20univer-px-4\x20univer-py-3\x20dark:!univer-border-gray-800','_highlightSecond','dispose','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20univer-px-4\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x20univer-text-xs\x20univer-font-semibold\x20univer-text-gray-500\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','replace','ranges','Failed\x20to\x20fetch\x20version\x20details:','UNIVER_SHEET','setConfig','transparent','_drawingDiffs','DeleteSheetTableMutation','SetWorksheetActiveOperation','disposeUnit','_sheetsFilterService','sheetId','getConfig','univer-flex\x20univer-flex-1\x20univer-items-center\x20univer-justify-center','0.22.0','deleteBorder','SetWorksheetRowAutoHeightMutation','getMatrix','848102wahdfN','_init','removeFilter','getRule','IUIPartsService','_permissionService','stroke','HEADER','revertRevision$','_context','RemoveSheetSparklineMutation','get','RANGE_TYPE','updateValuePosition','Entered','Checkbox','toPrimitive','SetWorksheetRangeThemeStyleMutation','workbook','unitId','setFilterCriteria','_yieldToMain','_scrollToShape','primary','VersionDiffService','-detail-','Info','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-break-all\x20univer-font-medium\x20univer-text-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-text-gray-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','UniverSheetsUIPlugin','IUniverInstanceService','_diffRangesMap','middle','filter','univer-h-12','path','univer-flex-1\x20univer-overflow-y-auto','HistoryModeStatus','then','jsxs','getSelectedVersionIsCurrentVersion','showRow','endRevCreateTime','_updateWorksheetVisibility','/universer-api/history','sort','univer-text-sm\x20univer-leading-5\x20univer-text-gray-500\x20dark:!univer-text-gray-300','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-absolute\x20univer-top-1/2\x20univer-bg-gray-100\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','InsertColMutation','CompressMutationService','removeDiffMarks','registerComponent','versions','loadHistoryCreatorList','RemoveWorksheetMergeMutation','stop','editHistory.action.insertDrawing','has','updateDrawing','DependentOn','showDiffMarks','registerDetailVersion','editHistory.header.revert','SetDrawingApplyMutation','blockMeta','_transformService','SetNumfmtMutation','ruleIds','univer-min-h-15\x20univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20univer-py-1.5\x20univer-transition-colors\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-800','setPivotOption','fill','type','_fetching$','clear','2107818WDlhhm','insertCol','\x20-\x20','_compressMutationService','_unitCurrentVersionMap','_workbookDataCache','setPivotFieldFormat','removeShape','highlightRow','edit-history-viewer.config','getOwnPropertyDescriptor','sourceRange','editHistory.panel.confirm','removeCol',',\x200.2)','default','rule','ToggleGridlinesMutation','subscribe','arrowColumnRanges','_sheetPermissionInitController','updatePivotFieldSource','close','RemoveSheetsFilterMutation','white','getElementById','SheetDataValidationModel','setTableFilter','strokeStyle','createTime','recalcFilter','sparklines','openPanel$','univer-size-8\x20univer-text-gray-400','SheetCollabCursorShape','disposeWithMe','Dropdown','defineProperty','univer-text-2xl\x20dark:!univer-text-white','some','lineTo','&endRevision=','status','univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-text-gray-400\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','M9.18035\x202.34502C9.21605\x202.15386\x209.31749\x201.9812\x209.46709\x201.85695C9.6167\x201.7327\x209.80504\x201.66469\x209.99951\x201.66469C10.194\x201.66469\x2010.3823\x201.7327\x2010.5319\x201.85695C10.6815\x201.9812\x2010.783\x202.15386\x2010.8187\x202.34502L11.6945\x206.97669C11.7567\x207.30598\x2011.9167\x207.60887\x2012.1537\x207.84583C12.3907\x208.08279\x2012.6936\x208.24282\x2013.0228\x208.30502L17.6545\x209.18085C17.8457\x209.21656\x2018.0183\x209.318\x2018.1426\x209.4676C18.2668\x209.6172\x2018.3348\x209.80555\x2018.3348\x2010C18.3348\x2010.1945\x2018.2668\x2010.3828\x2018.1426\x2010.5324C18.0183\x2010.682\x2017.8457\x2010.7835\x2017.6545\x2010.8192L13.0228\x2011.695C12.6936\x2011.7572\x2012.3907\x2011.9172\x2012.1537\x2012.1542C11.9167\x2012.3912\x2011.7567\x2012.6941\x2011.6945\x2013.0234L10.8187\x2017.655C10.783\x2017.8462\x2010.6815\x2018.0188\x2010.5319\x2018.1431C10.3823\x2018.2673\x2010.194\x2018.3353\x209.99951\x2018.3353C9.80504\x2018.3353\x209.6167\x2018.2673\x209.46709\x2018.1431C9.31749\x2018.0188\x209.21605\x2017.8462\x209.18035\x2017.655L8.30451\x2013.0234C8.24231\x2012.6941\x208.08228\x2012.3912\x207.84532\x2012.1542C7.60836\x2011.9172\x207.30547\x2011.7572\x206.97618\x2011.695L2.34451\x2010.8192C2.15335\x2010.7835\x201.98069\x2010.682\x201.85645\x2010.5324C1.7322\x2010.3828\x201.66418\x2010.1945\x201.66418\x2010C1.66418\x209.80555\x201.7322\x209.6172\x201.85645\x209.4676C1.98069\x209.318\x202.15335\x209.21656\x202.34451\x209.18085L6.97618\x208.30502C7.30547\x208.24282\x207.60836\x208.08279\x207.84532\x207.84583C8.08228\x207.60887\x208.24231\x207.30598\x208.30451\x206.97669L9.18035\x202.34502Z','forEach','AddDataValidationMutation','renameWorkbook','MoveSheet','RangeProtectionRuleModel','ZH_CN','SetWorksheetOrderMutation','Shape','deleteRangeProtection','getDialogs$','useState','BackIcon','url(#paint0_linear_236_415)','#FFF','clsx','_unitId$','RenameSheet','height','clearInterval','viewportScrollY','action','getCellPositionByOffset','editHistory.panel.currentUser','findAllRectangle','delete','add','ConditionalFormattingRuleModel','UpdatePivotFieldSourceInfoMutation','getFilterModel','fillText','LoadingMultiIcon','_historyContainerId','isArray','DeleteRangeProtectionMutation','renameSheet','ComponentManager','univer-flex-1','setRangeTheme','SetPivotSortMutation','confirm-revert-revision','DisposableCollection','removeEventListener','setNumfmt','unionPivotViewRange','UpdatePivotTableSourceRangeMutation','debounce','slice','targetRange','getCurrentSkeleton','updateBorder','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-1\x20univer-w-10\x20univer-rounded-full\x20univer-bg-gray-300\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arc','1px','useDependency','direction','editHistory.action.etc','parseInt','updatePermissionPoint','ROW','stringify','ghost','Vector2','syncExecuteCommand','getRelativeToViewportCoord','permissionPointUpdate$','RevertRevisionMutation','defs','setRightToLeft','name','SheetTableService','useEffect','reorderSheet','Injector','...','MoreDownIcon','merge','small','_registerHeader','univer-mt-1\x20univer-text-xs\x20univer-text-gray-500','CopyWorksheetEndMutation','arrowRow','toString','_setVersions','button','values','hasCommand','_labelPosition','useMemo','_removeDiffMarks','parseProtocolChangeset','Inject','focusUnit','_versions$','_dataValidationModel','UNIVER_EDIT_HISTORY_VIEWER_MOBILE_PLUGIN','LRUMap','RemoveNumfmtMutation','transform','Plugin','fetchThroughInterceptors','1.66418','_revertRevision$','_uiPartsService','SheetsPivotTableConfigModel','_sheetsChartService','removeSheet','interceptor','_renderArrowRanges','getCurrentUnitCurrentVersion','onMouseMove','_conditionalFormattingRuleModel','UnitAction','setColWidth','REMOVE','Error','univer-text-gray-500','exited','_getAPIPrefix','UpdateValuePositionMutation','UniverEditHistoryViewerPlugin','IConfirmService','historyAIassistantEnabled','split','_sheetSkeletonManagerService','AddPivotTableMutation','hideMask','historyPanelHidden','prototype','6.77028','padStart','SetWorkbookNameMutation','_drawHorizontalArrow','parse','_diffs','MoveRowsMutation','rules','getSheetId','setSparkline','SetPivotPositionMutation','#2793FF','IMessageService','scroll','useCallback','children','MoveRangeMutation','rowHeaderWidth','SetWorksheetHideMutation','hideSheet','unitID','constructor','users','DrawingApplyType','updateTable','ReorderRangeMutation','error','flat','_maskElement','style','update','rgba(21,101,192,0.5)','univer-relative','_createUnit','_members','_injector','getDrawingByParam','removeTable','_draw','cellValue','deleteWorksheetRangeTheme','rgba(46,125,50,0.5)','setRowData','confirm','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_name','hovered','rgb','endRev','state$','pluginName','IDialogService','call','show','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-12\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-px-4\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-950\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','moveRows','rowData','WorkbookMoveSheetPermission','lastLabel','editHistory.panel.revertConfirm','insertDrawings','SheetsChartService','MoveConditionalRuleMutation','deleteDrawings','HistoryOrigin','insertBorder','max','groupIds','updateChartConfig','setState','editHistory.panel.filterCollaboratorCancel','_createMask','SetRowHiddenMutation','HistoryManagerService','_univerInstanceService','SetPivotCollapseMutation','_historyManagerService','_commandService','subType','ReCalcSheetsFilterMutation','SetWorksheetRightToLeftMutation','generateDiffMarks','RemovePivotTableMutation','startDateString','editHistory.panel.filterCollaboratorConfirm','/cs?startRevision=','revision','triggerLoadVersions','univer-flex\x20univer-items-center\x20univer-gap-2.5\x20univer-pt-1.5\x20univer-text-sm\x20univer-font-medium','getCoordByCell','_borderDiffs','_arrowDiffs','history-panel','next','changesets','univer-size-4\x20univer-animate-spin','_renderDrawingHighlights','hideDiffMarks','SetSheetSparklineMutation','UpdateFieldPositionMutation','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-truncate\x20univer-text-xs\x20univer-text-gray-500\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-text-gray-400\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_renderCellRanges','find','ChartUpdateConfigMutation','_getSheetObject','setPermissionPoints','length','_config','_renderBorderRanges','AddSheetSparklineMutation','setGridlinesColor','insertSheet','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-border-t\x20univer-border-gray-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ensureVersion','setDV','RemoveRowMutation','68322IhfUCc','forValue','append','DeleteWorksheetRangeThemeStyleMutation','function','from','_messageService','CONTENT','MoveColsMutation','bottom','InsertSheetsShapeMutation','UNIVER_EDIT_HISTORY_VIEWER_PLUGIN','WorkbookHideSheetPermission','IImageIoService','removeDV','Subject','moveCols','isSheetHidden','addRangeProtection','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','setRowIsAutoHeight','setColCount','editHistory.header.back','0.31','univer-w-10','385uICGuu','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','SetPivotFilterMutation','allRanges','startRevision','79179mCefEN','_updateDiffMarks','_status$','RemoveSheetsChartMutation','RestoreIcon','row','cfId','_currentVersionDiff$','SetColHiddenMutation','commands','additionalFields','setRowHeight','_canRevert','zIndex','2819832qpPQnC','SetSheetTableFilterMutation','80vUVNiC','[HistoryFetchService]:\x20wrong\x20rev\x20from\x20the\x20server!','all','_color','SetRangeProtectionMutation','version','univer-flex\x20univer-flex-1\x20univer-items-center\x20univer-gap-1.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-absolute\x20univer-flex\x20univer-h-[calc(100%-32px)]\x20univer-w-[calc(100%-16px)]\x20univer-flex-col\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-overflow-auto\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','label','_stopBlinking','univer-pointer-events-auto\x20univer-flex\x20univer-flex-col\x20univer-rounded-t-2xl\x20univer-bg-white\x20univer-shadow-[0_-4px_24px_rgba(0,0,0,0.12)]\x20univer-transition-[height]\x20univer-duration-300\x20dark:!univer-bg-gray-950','drawingIds','_sheetsPivotTableConfigModel','sparklineConfigMap','creators$','combineLatest','SetSheetsFilterRangeMutation','loadingState','currentVersion$','rgba(','ErrorCode','_cacheKey','getInterceptPoints','fetching','@univerjs-pro/edit-history-viewer','stopPropagation','origin','editHistory.panel.filterAi','_getLighterColor','rangeInfo','active','IPermissionService','font','setProtection','decorate','connectInjector','rgba','MessageType','_direction','columnData','COLUMN','setPivotSort','SetRowVisibleMutation','_currentVersion$','_updateVersions','now'];_0x2950=function(){return _0x45ba98;};return _0x2950();}const _0x55b227=_0xae2a;(function(_0x132c5b,_0x593be9){const _0x33bb7e=_0xae2a,_0x3475d2=_0x132c5b();while(!![]){try{const _0x51b519=parseInt(_0x33bb7e(0x172))/0x1+parseInt(_0x33bb7e(0x3f2))/0x2+parseInt(_0x33bb7e(0x2fa))/0x3*(parseInt(_0x33bb7e(0x376))/0x4)+parseInt(_0x33bb7e(0x2f5))/0x5*(parseInt(_0x33bb7e(0x2dc))/0x6)+-parseInt(_0x33bb7e(0x36e))/0x7+parseInt(_0x33bb7e(0x308))/0x8+parseInt(_0x33bb7e(0x1bb))/0x9*(-parseInt(_0x33bb7e(0x30a))/0xa);if(_0x51b519===_0x593be9)break;else _0x3475d2['push'](_0x3475d2['shift']());}catch(_0xfe7d95){_0x3475d2['push'](_0x3475d2['shift']());}}}(_0x2950,0x8611f),Object[_0x55b227(0x1e0)](exports,Symbol['toStringTag'],{'value':_0x55b227(0x346)}));let _univerjs_pro_collaboration_client_ui=require('@univerjs-pro/collaboration-client-ui'),_univerjs_core=require('@univerjs/core'),_univerjs_drawing=require('@univerjs/drawing'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_ui=require('@univerjs/sheets-ui'),rxjs=require('rxjs'),_univerjs_design=require('@univerjs/design'),_univerjs_ui=require('@univerjs/ui'),_univerjs_pro_collaboration=require('@univerjs-pro/collaboration'),_univerjs_pro_sheets_chart=require('@univerjs-pro/sheets-chart'),_univerjs_pro_sheets_pivot=require('@univerjs-pro/sheets-pivot'),_univerjs_pro_sheets_shape=require('@univerjs-pro/sheets-shape'),_univerjs_pro_sheets_sparkline=require('@univerjs-pro/sheets-sparkline'),_univerjs_data_validation=require('@univerjs/data-validation'),_univerjs_sheets_conditional_formatting=require('@univerjs/sheets-conditional-formatting'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),_univerjs_sheets_filter=require('@univerjs/sheets-filter'),_univerjs_sheets_table=require('@univerjs/sheets-table'),_univerjs_network=require('@univerjs/network'),_univerjs_protocol=require('@univerjs/protocol'),_univerjs_sheets_data_validation=require('@univerjs/sheets-data-validation'),_univerjs_pro_collaboration_client=require('@univerjs-pro/collaboration-client'),react=require('react'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_icons=require('@univerjs/icons');function getAllMutations(_0x2b7f60=_0x55b227(0xcd)){const _0x5d8cc6=_0x55b227;return{'collaboration':[{'id':_univerjs_pro_collaboration['CreateUnitMutation']['id'],'action':_0x2b7f60+'createSheet'},{'id':_univerjs_pro_collaboration[_0x5d8cc6(0x229)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x129)}],'sheets':[{'id':_univerjs_sheets[_0x5d8cc6(0x388)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x2d7)},{'id':_univerjs_sheets[_0x5d8cc6(0x3cd)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x251)},{'id':_univerjs_sheets[_0x5d8cc6(0x427)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x20a)},{'id':_univerjs_sheets[_0x5d8cc6(0x1ee)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x22f)},{'id':_univerjs_sheets[_0x5d8cc6(0x27a)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x27b)},{'id':_univerjs_sheets[_0x5d8cc6(0x237)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x3cb)},{'id':_univerjs_sheets['SetTabColorMutation']['id'],'action':_0x2b7f60+'setTabColor'},{'id':_univerjs_sheets[_0x5d8cc6(0x26a)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x1ea)},{'id':_univerjs_sheets[_0x5d8cc6(0xcb)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x102)},{'id':_univerjs_sheets[_0x5d8cc6(0x1a1)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x1bc)},{'id':_univerjs_sheets[_0x5d8cc6(0x2db)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x383)},{'id':_univerjs_sheets['RemoveColMutation']['id'],'action':_0x2b7f60+_0x5d8cc6(0x1c8)},{'id':_univerjs_sheets[_0x5d8cc6(0x26e)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x29f)},{'id':_univerjs_sheets[_0x5d8cc6(0x2e4)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x2ec)},{'id':_univerjs_sheets[_0x5d8cc6(0x334)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x19a)},{'id':_univerjs_sheets[_0x5d8cc6(0x2b0)]['id'],'action':_0x2b7f60+'hideRow'},{'id':_univerjs_sheets[_0x5d8cc6(0x3be)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x414)},{'id':_univerjs_sheets[_0x5d8cc6(0x302)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x143)},{'id':_univerjs_sheets['SetWorksheetRowHeightMutation']['id'],'action':_0x2b7f60+'setRowHeight'},{'id':_univerjs_sheets['SetWorksheetColWidthMutation']['id'],'action':_0x2b7f60+'setColWidth'},{'id':_univerjs_sheets[_0x5d8cc6(0x170)]['id'],'action':_0x2b7f60+_0x5d8cc6(0xdd)},{'id':_univerjs_sheets[_0x5d8cc6(0x114)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x2f0)},{'id':_univerjs_sheets['SetRowDataMutation']['id'],'action':_0x2b7f60+_0x5d8cc6(0x292)},{'id':_univerjs_sheets[_0x5d8cc6(0x364)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x369)},{'id':_univerjs_sheets[_0x5d8cc6(0x348)]['id'],'action':_0x2b7f60+'setRowCount'},{'id':_univerjs_sheets[_0x5d8cc6(0x421)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x2f1)},{'id':_univerjs_sheets[_0x5d8cc6(0x12f)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x405)},{'id':_univerjs_sheets[_0x5d8cc6(0x278)]['id'],'action':_0x2b7f60+'moveRange'},{'id':_univerjs_sheets[_0x5d8cc6(0x281)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x3d4)},{'id':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'action':_0x2b7f60+'mergeCells'},{'id':_univerjs_sheets[_0x5d8cc6(0x1a7)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x35a)},{'id':_univerjs_sheets[_0x5d8cc6(0x3d7)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x127)},{'id':_univerjs_sheets[_0x5d8cc6(0x1cc)]['id'],'action':_0x2b7f60+'toggleGridlines'},{'id':_univerjs_sheets[_0x5d8cc6(0x39b)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x2d6)},{'id':_univerjs_sheets[_0x5d8cc6(0x2b8)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x22b)},{'id':_univerjs_sheets[_0x5d8cc6(0x3fa)]['id'],'action':_0x2b7f60+'setDefaultStyle'},{'id':_univerjs_sheets[_0x5d8cc6(0xce)]['id'],'action':_0x2b7f60+'addProtection'},{'id':_univerjs_sheets[_0x5d8cc6(0x109)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x32b)},{'id':_univerjs_sheets[_0x5d8cc6(0x10a)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x417)},{'id':_univerjs_sheets[_0x5d8cc6(0x3db)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x2ee)},{'id':_univerjs_sheets[_0x5d8cc6(0x30e)]['id'],'action':_0x2b7f60+'setRangeProtection'},{'id':_univerjs_sheets[_0x5d8cc6(0x209)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x1f0)},{'id':_univerjs_sheets[_0x5d8cc6(0x3bb)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x2d1)},{'id':_univerjs_sheets[_0x5d8cc6(0x1b3)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x212)},{'id':_univerjs_sheets[_0x5d8cc6(0x248)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x3fd)},{'id':_univerjs_sheets[_0x5d8cc6(0x386)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x3b0)},{'id':_univerjs_sheets[_0x5d8cc6(0x11b)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x20d)},{'id':_univerjs_sheets[_0x5d8cc6(0x3fb)]['id'],'action':_0x2b7f60+_0x5d8cc6(0xf3)},{'id':_univerjs_sheets[_0x5d8cc6(0x183)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x37c)},{'id':_univerjs_sheets['DeleteWorksheetRangeThemeStyleMutation']['id'],'action':_0x2b7f60+_0x5d8cc6(0x290)}],'sheetsConditionalFormatting':[{'id':_univerjs_sheets_conditional_formatting[_0x5d8cc6(0x41f)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x154)},{'id':_univerjs_sheets_conditional_formatting['SetConditionalRuleMutation']['id'],'action':_0x2b7f60+_0x5d8cc6(0x154)},{'id':_univerjs_sheets_conditional_formatting[_0x5d8cc6(0x108)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x3a6)},{'id':_univerjs_sheets_conditional_formatting[_0x5d8cc6(0x2a6)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x377)}],'sheetsFilter':[{'id':_univerjs_sheets_filter[_0x5d8cc6(0x31a)]['id'],'action':_0x2b7f60+_0x5d8cc6(0xc9)},{'id':_univerjs_sheets_filter[_0x5d8cc6(0x115)]['id'],'action':_0x2b7f60+'setFilterCriteria'},{'id':_univerjs_sheets_filter[_0x5d8cc6(0x1d2)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x174)},{'id':_univerjs_sheets_filter[_0x5d8cc6(0x2b7)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x1d9)}],'dataValidation':[{'id':_univerjs_data_validation[_0x5d8cc6(0x1e9)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x2da)},{'id':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'action':_0x2b7f60+'setDV'},{'id':_univerjs_data_validation[_0x5d8cc6(0x425)]['id'],'action':_0x2b7f60+'removeDV'}],'sheetsChart':[{'id':_univerjs_pro_sheets_chart['InsertSheetsChartMutation']['id'],'action':_0x2b7f60+_0x5d8cc6(0xd5)},{'id':_univerjs_pro_sheets_chart[_0x5d8cc6(0x2fd)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x418)},{'id':_univerjs_pro_sheets_chart[_0x5d8cc6(0x2cf)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x2ac)},{'id':_univerjs_pro_sheets_chart[_0x5d8cc6(0x116)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x3c9)}],'sheetsSparkline':[{'id':_univerjs_pro_sheets_sparkline[_0x5d8cc6(0x2d5)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x366)},{'id':_univerjs_pro_sheets_sparkline[_0x5d8cc6(0x2ca)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x271)},{'id':_univerjs_pro_sheets_sparkline[_0x5d8cc6(0x17c)]['id'],'action':_0x2b7f60+_0x5d8cc6(0xda)}],'sheetsPivot':[{'id':_univerjs_pro_sheets_pivot['AddPivotTableMutation']['id'],'action':_0x2b7f60+'addPivotTable'},{'id':_univerjs_pro_sheets_pivot[_0x5d8cc6(0x2ba)]['id'],'action':_0x2b7f60+'removePivotTable'},{'id':_univerjs_pro_sheets_pivot[_0x5d8cc6(0x420)]['id'],'action':_0x2b7f60+'setPivotOption'},{'id':_univerjs_pro_sheets_pivot[_0x5d8cc6(0x272)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x158)},{'id':_univerjs_pro_sheets_pivot['UpdatePivotTableSourceRangeMutation']['id'],'action':_0x2b7f60+_0x5d8cc6(0x3aa)},{'id':_univerjs_pro_sheets_pivot['AddPivotFieldMutation']['id'],'action':_0x2b7f60+_0x5d8cc6(0x10b)},{'id':_univerjs_pro_sheets_pivot[_0x5d8cc6(0xeb)]['id'],'action':_0x2b7f60+_0x5d8cc6(0xea)},{'id':_univerjs_pro_sheets_pivot[_0x5d8cc6(0x13c)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x358)},{'id':_univerjs_pro_sheets_pivot[_0x5d8cc6(0x2cb)]['id'],'action':_0x2b7f60+'updateFieldPosition'},{'id':_univerjs_pro_sheets_pivot[_0x5d8cc6(0x25e)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x17f)},{'id':_univerjs_pro_sheets_pivot[_0x5d8cc6(0x203)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x1d0)},{'id':_univerjs_pro_sheets_pivot['SetPivotFieldFormatMutation']['id'],'action':_0x2b7f60+_0x5d8cc6(0x1c1)},{'id':_univerjs_pro_sheets_pivot[_0x5d8cc6(0x2f7)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x3ba)},{'id':_univerjs_pro_sheets_pivot['SetPivotValueFilterMutation']['id'],'action':_0x2b7f60+_0x5d8cc6(0x155)},{'id':_univerjs_pro_sheets_pivot['SetPivotSortMutation']['id'],'action':_0x2b7f60+_0x5d8cc6(0x333)},{'id':_univerjs_pro_sheets_pivot[_0x5d8cc6(0x2b3)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x10f)},{'id':_univerjs_pro_sheets_pivot[_0x5d8cc6(0x12b)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x382)}],'sheetsShape':[{'id':_univerjs_pro_sheets_shape[_0x5d8cc6(0x2e6)]['id'],'action':_0x2b7f60+'insertShape'},{'id':_univerjs_pro_sheets_shape[_0x5d8cc6(0xfc)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x1c2)},{'id':_univerjs_pro_sheets_shape[_0x5d8cc6(0xf7)]['id'],'action':_0x2b7f60+'updateShapeData'},{'id':_univerjs_pro_sheets_shape['UpdateSheetsShapeTypeMutation']['id'],'action':_0x2b7f60+_0x5d8cc6(0x381)}],'sheetsTable':[{'id':_univerjs_sheets_table[_0x5d8cc6(0x398)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x35b)},{'id':_univerjs_sheets_table['DeleteSheetTableMutation']['id'],'action':_0x2b7f60+'removeTable'},{'id':_univerjs_sheets_table['SetSheetTableMutation']['id'],'action':_0x2b7f60+_0x5d8cc6(0x280)},{'id':_univerjs_sheets_table[_0x5d8cc6(0x309)]['id'],'action':_0x2b7f60+'setTableFilter'}],'sheetsDrawing':[{'id':_univerjs_sheets_drawing[_0x5d8cc6(0x1b0)]['id'],'action':_0x2b7f60+_0x5d8cc6(0x1ab)}]};}function getAllMutationsFlat(_0x5e1d14=_0x55b227(0xcd)){const _0x28dc46=_0x55b227,_0x4507cd=getAllMutations(_0x5e1d14);return Object[_0x28dc46(0x23c)](_0x4507cd)[_0x28dc46(0x283)]();}const parseDateWithLocale=(_0x496b05,_0x223238)=>{const _0x2c69b2=_0x55b227;if(!_0x496b05)return{'date':'','time':''};const _0x1d45ac=new Date(_0x496b05),_0x2f6437=_0x1d45ac['toISOString']()[_0x2c69b2(0x262)]('T')[0x0];switch(_0x223238){case _univerjs_core[_0x2c69b2(0x373)][_0x2c69b2(0x1ed)]:return{'date':parseDateDayWithLocale(_0x2f6437,_0x223238),'time':_0x1d45ac['getHours']()+':'+String(_0x1d45ac[_0x2c69b2(0x416)]())['padStart'](0x2,'0')+':'+String(_0x1d45ac['getSeconds']())[_0x2c69b2(0x269)](0x2,'0')};default:return{'date':parseDateDayWithLocale(_0x2f6437,_0x223238),'time':_0x1d45ac['getHours']()+':'+_0x1d45ac['getMinutes']()+':'+_0x1d45ac[_0x2c69b2(0x379)]()};}},parseAction=(_0x595837,_0x270ad1)=>{const _0x4954b6=_0x55b227;if(_0x595837[_0x4954b6(0x303)][_0x4954b6(0x1e2)](_0x2430e4=>_0x2430e4===_univerjs_pro_collaboration[_0x4954b6(0x229)]['id'])&&_0x595837[_0x4954b6(0x41d)]){const _0x202231=parseDateWithLocale(_0x595837[_0x4954b6(0x41d)],_0x270ad1[_0x4954b6(0x35e)]()),_0xe9a364=_0x202231['date']+'\x20'+_0x202231['time'];return _0x270ad1['t'](_0x4954b6(0x3b4))+'\x20'+_0xe9a364+'\x20'+_0x270ad1['t']('editHistory.action.revertSheetSuffix');}const _0x48a1ef=extractMainMutation(_0x595837),_0xa2e434=Array[_0x4954b6(0x2e1)](new Set(_0x48a1ef));let _0x503ca2;const _0x424a31=0x5;if(_0xa2e434[_0x4954b6(0x2d2)]===0x1)_0x503ca2=_0x270ad1['t'](_0xa2e434[0x0]);else{const _0x33f8c1=_0xa2e434[_0x4954b6(0x216)](0x0,_0x424a31)['map'](_0x504061=>_0x270ad1['t'](_0x504061))[_0x4954b6(0x126)](',\x20');_0x503ca2=_0xa2e434['length']>_0x424a31?''+_0x33f8c1+_0x270ad1['t'](_0x4954b6(0x21f)):_0x33f8c1;}return''+_0x503ca2;};function extractMainMutation(_0x143744){const _0xe985d=_0x55b227;if(_0x143744[_0xe985d(0x303)][_0xe985d(0x2d2)]===0x0)return[''];const _0x5d4f98=_0xe985d(0xcd),_0x3ef89b=_0x5d4f98+_0xe985d(0x3c7),_0x19e72e=getAllMutationsFlat(_0x5d4f98)[_0xe985d(0x192)](_0x155a4d=>_0x143744[_0xe985d(0x303)][_0xe985d(0xe5)](_0x155a4d['id']));return(_0x19e72e===null||_0x19e72e===void 0x0?void 0x0:_0x19e72e[_0xe985d(0x2d2)])?_0x19e72e[_0xe985d(0x36a)](_0x360838=>_0x360838[_0xe985d(0x1fc)]):[_0x3ef89b];}function parseDateDayWithLocale(_0x2ccaf5,_0x5bee07){const _0x5d4512=_0x55b227,[_0x43ab77,_0x259cd7,_0x5c1ce8]=new Date()[_0x5d4512(0x407)]()['split']('T')[0x0][_0x5d4512(0x262)]('-'),[_0x472abb,_0x20807e,_0x2b87da]=_0x2ccaf5['split']('-'),_0xa1809f=_0x43ab77===_0x472abb&&_0x259cd7===_0x20807e&&_0x5c1ce8===_0x2b87da;let _0x5f2a0b='',_0xcb408e='',_0x410ba0='';switch(_0x5bee07){case _univerjs_core[_0x5d4512(0x373)]['ZH_CN']:if(_0xa1809f)return'今天';_0x5f2a0b=_0x43ab77===_0x472abb?'':_0x472abb+'年',_0xcb408e=_0x20807e+'月',_0x410ba0=_0x2b87da+'日';return''+_0x5f2a0b+_0xcb408e+_0x410ba0;default:if(_0xa1809f)return _0x5d4512(0xd4);_0x5f2a0b=_0x43ab77===_0x472abb?'':_0x472abb+'-',_0xcb408e=_0x20807e+'-',_0x410ba0=''+_0x2b87da;return''+_0x5f2a0b+_0xcb408e+_0x410ba0;}}function transformVersionsToDateGroup(_0x333fb9){const _0x55c1a3=_0x55b227;return _0x333fb9?_0x333fb9[_0x55c1a3(0x3d9)]((_0xed11b1,_0x3762ac)=>{const _0x3b8360=_0x55c1a3,_0x2b979d=new Date(_0x3762ac[_0x3b8360(0xe3)])[_0x3b8360(0x407)]()[_0x3b8360(0x262)]('T')[0x0],_0xe5d333=_0x3762ac[_0x3b8360(0xd0)]?new Date(_0x3762ac[_0x3b8360(0xd0)])[_0x3b8360(0x407)]()[_0x3b8360(0x262)]('T')[0x0]:_0x2b979d,_0x4d318a=_0x3762ac['endRevCreateTime']?new Date(_0x3762ac['endRevCreateTime'])['toISOString']()['split']('T')[0x0]:_0x2b979d;if(_0xed11b1[_0x3b8360(0x2d2)]>0x0&&_0xed11b1[_0xed11b1[_0x3b8360(0x2d2)]-0x1][_0x3b8360(0x2bb)]===_0xe5d333)_0xed11b1[_0xed11b1[_0x3b8360(0x2d2)]-0x1]['versions'][_0x3b8360(0x3e1)](_0x3762ac);else _0xed11b1[_0x3b8360(0x3e1)]({'dateString':_0x2b979d,'startDateString':_0xe5d333,'endDateString':_0x4d318a,'versions':[_0x3762ac]});return _0xed11b1;},[]):[];}const EDIT_HISTORY_VIEWER_PLUGIN_CONFIG_KEY=_0x55b227(0x1c4),configSymbol=Symbol(EDIT_HISTORY_VIEWER_PLUGIN_CONFIG_KEY),defaultPluginConfig={};function _typeof(_0x2b9dfa){'@babel/helpers - typeof';const _0x58ae2d=_0x55b227;return _typeof='function'==typeof Symbol&&_0x58ae2d(0x359)==typeof Symbol[_0x58ae2d(0x378)]?function(_0x40169d){return typeof _0x40169d;}:function(_0x9fe2fe){const _0x8b8c04=_0x58ae2d;return _0x9fe2fe&&_0x8b8c04(0x2e0)==typeof Symbol&&_0x9fe2fe[_0x8b8c04(0x27d)]===Symbol&&_0x9fe2fe!==Symbol[_0x8b8c04(0x267)]?_0x8b8c04(0x359):typeof _0x9fe2fe;},_typeof(_0x2b9dfa);}function toPrimitive(_0xeaefa6,_0x1bc07a){const _0x516be4=_0x55b227;if(_0x516be4(0x3d3)!=_typeof(_0xeaefa6)||!_0xeaefa6)return _0xeaefa6;var _0x2c0091=_0xeaefa6[Symbol[_0x516be4(0x182)]];if(void 0x0!==_0x2c0091){var _0x23c812=_0x2c0091[_0x516be4(0x29c)](_0xeaefa6,_0x1bc07a||_0x516be4(0x1ca));if(_0x516be4(0x3d3)!=_typeof(_0x23c812))return _0x23c812;throw new TypeError(_0x516be4(0x2ef));}return(_0x516be4(0x40f)===_0x1bc07a?String:Number)(_0xeaefa6);}function toPropertyKey(_0x176aaf){const _0xc2da94=_0x55b227;var _0x27ff9b=toPrimitive(_0x176aaf,_0xc2da94(0x40f));return _0xc2da94(0x359)==_typeof(_0x27ff9b)?_0x27ff9b:_0x27ff9b+'';}function _defineProperty(_0x1e1dce,_0x156b02,_0x425386){const _0x10f444=_0x55b227;return(_0x156b02=toPropertyKey(_0x156b02))in _0x1e1dce?Object[_0x10f444(0x1e0)](_0x1e1dce,_0x156b02,{'value':_0x425386,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1e1dce[_0x156b02]=_0x425386,_0x1e1dce;}function __decorateParam(_0x47908c,_0x2b64f7){return function(_0x29c82e,_0x55f0aa){_0x2b64f7(_0x29c82e,_0x55f0aa,_0x47908c);};}function __decorate(_0x1f3595,_0x7af852,_0x3b2351,_0x2d8c8a){const _0x51b6cd=_0x55b227;var _0x5a6d95=arguments['length'],_0x4ab2c1=_0x5a6d95<0x3?_0x7af852:_0x2d8c8a===null?_0x2d8c8a=Object[_0x51b6cd(0x1c5)](_0x7af852,_0x3b2351):_0x2d8c8a,_0x48afa4;if(typeof Reflect===_0x51b6cd(0x3d3)&&typeof Reflect['decorate']===_0x51b6cd(0x2e0))_0x4ab2c1=Reflect[_0x51b6cd(0x32c)](_0x1f3595,_0x7af852,_0x3b2351,_0x2d8c8a);else{for(var _0x3b0784=_0x1f3595[_0x51b6cd(0x2d2)]-0x1;_0x3b0784>=0x0;_0x3b0784--)if(_0x48afa4=_0x1f3595[_0x3b0784])_0x4ab2c1=(_0x5a6d95<0x3?_0x48afa4(_0x4ab2c1):_0x5a6d95>0x3?_0x48afa4(_0x7af852,_0x3b2351,_0x4ab2c1):_0x48afa4(_0x7af852,_0x3b2351))||_0x4ab2c1;}return _0x5a6d95>0x3&&_0x4ab2c1&&Object['defineProperty'](_0x7af852,_0x3b2351,_0x4ab2c1),_0x4ab2c1;}let HistoryOrigin=function(_0x39cca4){const _0x317d9d=_0x55b227;return _0x39cca4[_0x39cca4['Unspecified']=0x0]=_0x317d9d(0xfa),_0x39cca4[_0x39cca4[_0x317d9d(0x3d5)]=0x1]=_0x317d9d(0x3d5),_0x39cca4[_0x39cca4[_0x317d9d(0x389)]=0x2]=_0x317d9d(0x389),_0x39cca4;}({});const DEFAULT_HISTORY_LIST_SERVER_URL=_0x55b227(0x19d);let HistoryFetchService=class HistoryFetchService extends _univerjs_core['Disposable']{constructor(_0x105ebd,_0x4f32d9,_0x3f976e,_0x2b0908,_0x37d3dc,_0x374509,_0x4a00df){const _0x4ca426=_0x55b227;super(),this['_snapshotServerService']=_0x105ebd,this['_univerInstanceService']=_0x4f32d9,this[_0x4ca426(0x2b5)]=_0x3f976e,this[_0x4ca426(0x37a)]=_0x2b0908,this[_0x4ca426(0x14a)]=_0x37d3dc,this[_0x4ca426(0x1be)]=_0x374509,this[_0x4ca426(0x1cf)]=_0x4a00df,_defineProperty(this,_0x4ca426(0x1c0),void 0x0),this[_0x4ca426(0x1c0)]=new _univerjs_core[(_0x4ca426(0x247))](0x3c);}[_0x55b227(0x15e)](){const _0x5f83df=_0x55b227;this['_workbookDataCache'][_0x5f83df(0x1ba)](),super[_0x5f83df(0x15e)]();}async[_0x55b227(0x349)](_0x464b3e){const _0x12e525=_0x55b227;try{const _0x459fa2=(await this[_0x12e525(0x14a)][_0x12e525(0x17d)](this['_getAPIPrefix']()+'/'+_0x464b3e+_0x12e525(0x39a)))[_0x12e525(0x153)];if(_0x459fa2&&_0x459fa2[_0x12e525(0x282)]&&_0x459fa2[_0x12e525(0x282)]['code']===_univerjs_protocol[_0x12e525(0x31e)]['OK'])return _0x459fa2[_0x12e525(0xcf)];}catch(_0x38f272){console[_0x12e525(0x282)](_0x38f272);}return[];}async[_0x55b227(0x38e)](_0x474342,_0x182283){const _0x220d2b=_0x55b227,{userIds:_0x5cb2c5,lastLabel:_0x29e913,origin:_0x3c14a7}=_0x182283!==null&&_0x182283!==void 0x0?_0x182283:{},_0x1d25eb=new URLSearchParams();_0x1d25eb['set'](_0x220d2b(0x2d2),'20');if(_0x29e913)_0x1d25eb[_0x220d2b(0x10c)](_0x220d2b(0x2a2),_0x29e913);_0x5cb2c5===null||_0x5cb2c5===void 0x0||_0x5cb2c5['forEach'](_0x427907=>{const _0x20662c=_0x220d2b;_0x1d25eb[_0x20662c(0x2de)](_0x20662c(0xf8),_0x427907);});if(_0x3c14a7)_0x1d25eb['set'](_0x220d2b(0x324),_0x3c14a7[_0x220d2b(0x239)]());const _0x1461f7=this[_0x220d2b(0x25d)]()+'/'+_0x474342+'/list?'+_0x1d25eb[_0x220d2b(0x239)]();try{const _0xb406f1=(await this[_0x220d2b(0x14a)][_0x220d2b(0x17d)](_0x1461f7))[_0x220d2b(0x153)];if(_0xb406f1&&_0xb406f1[_0x220d2b(0x282)]&&_0xb406f1['error'][_0x220d2b(0x3a4)]===_univerjs_protocol[_0x220d2b(0x31e)]['OK']){const {hasMore:_0x102aa7,lastLabel:_0x40c42b}=_0xb406f1;return{'hasMore':_0x102aa7,'lastLabel':_0x40c42b,'versions':convertEntitiesToVersions(_0xb406f1),'members':_0xb406f1[_0x220d2b(0x354)][_0x220d2b(0x27e)]};}}catch(_0x3acba2){console[_0x220d2b(0x282)](_0x3acba2);}return null;}async[_0x55b227(0x400)](_0x465b50,_0x3771c7){const _0x3f040d=_0x55b227,{unitId:_0x1a024e,startRevision:_0x38f357,endRevision:_0x35744c}=_0x3771c7,_0x52c597=this['_getAPIPrefix']()+'/'+_0x1a024e+_0x3f040d(0x2bd)+_0x38f357+_0x3f040d(0x1e4)+_0x35744c;return(await this[_0x3f040d(0x14a)]['get'](_0x52c597))[_0x3f040d(0x153)];}[_0x55b227(0x25d)](){const _0x53749b=_0x55b227;var _0x412baa;const _0x272ee9=this[_0x53749b(0x37a)]['getConfig'](EDIT_HISTORY_VIEWER_PLUGIN_CONFIG_KEY);return(_0x412baa=_0x272ee9===null||_0x272ee9===void 0x0?void 0x0:_0x272ee9[_0x53749b(0x3d1)])!==null&&_0x412baa!==void 0x0?_0x412baa:DEFAULT_HISTORY_LIST_SERVER_URL;}[_0x55b227(0x31f)](_0x44ed92,_0x2ee509){return _0x44ed92+':'+_0x2ee509;}async[_0x55b227(0x38d)](_0x4ec99d,_0x567316,_0x103687={}){const _0x4d92b4=_0x55b227;var _0x48ccc1;const _0x3f9275=this['_cacheKey'](_0x4ec99d,_0x567316),_0x30cee1=this[_0x4d92b4(0x1c0)]['get'](_0x3f9275);if(_0x30cee1){const {workbookData:_0x4ab519,changesets:_0x269a7f}=_0x30cee1;return await this[_0x4d92b4(0x397)](_0x4ab519,_0x269a7f),!![];}const {snapshot:_0x4a062d,changesets:_0x594426,error:_0x5d5985}=await this[_0x4d92b4(0x424)][_0x4d92b4(0x40e)](_0x103687,{'unitID':_0x4ec99d,'type':_univerjs_core[_0x4d92b4(0x3b8)]['UNIVER_SHEET'],'revision':_0x567316});if((0x0,_univerjs_protocol[_0x4d92b4(0x387)])(_0x5d5985)||!_0x4a062d||!_0x4a062d[_0x4d92b4(0x184)])throw new Error('[HistoryFetchService]:\x20request\x20snapshot\x20error!');const _0x136910=(_0x48ccc1=_0x594426===null||_0x594426===void 0x0?void 0x0:_0x594426[_0x4d92b4(0x2d2)])!==null&&_0x48ccc1!==void 0x0?_0x48ccc1:0x0;if(_0x567316!==0x0&&_0x4a062d['rev']+_0x136910!==_0x567316)throw new Error(_0x4d92b4(0x30b));const {workbook:_0x198a37}=_0x4a062d,_0x409f3b=_0x198a37['blockMeta']?Object[_0x4d92b4(0x23c)](_0x198a37[_0x4d92b4(0x1b1)])['flatMap'](_0x4e372e=>{var _0x5d97ec;return(_0x5d97ec=_0x4e372e['blocks'])!==null&&_0x5d97ec!==void 0x0?_0x5d97ec:[];}):[],_0x396740=await(0x0,_univerjs_pro_collaboration['transformSnapshotToWorkbookData'])(_0x4a062d,(await Promise[_0x4d92b4(0x30c)](_0x409f3b[_0x4d92b4(0x36a)](_0x4b98f1=>this[_0x4d92b4(0x424)]['getDeserializedSheetBlock'](_0x103687,{'unitID':_0x4ec99d,'type':_univerjs_core[_0x4d92b4(0x3b8)][_0x4d92b4(0x163)],'blockID':_0x4b98f1})[_0x4d92b4(0x197)](_0x30ab21=>_0x30ab21['block']))))['filter'](Boolean),_0x103687);return this['_workbookDataCache']['set'](_0x3f9275,{'workbookData':_0x396740,'changesets':_0x594426}),await this[_0x4d92b4(0x397)](_0x396740,_0x594426),!![];}async[_0x55b227(0x397)](_0x2d26f1,_0x2c40de){const _0xb5d345=_0x55b227,_0x5b15f8=this[_0xb5d345(0x2b2)][_0xb5d345(0x121)](_univerjs_core[_0xb5d345(0x3b8)][_0xb5d345(0x163)]);_0x5b15f8&&(this[_0xb5d345(0x2b2)][_0xb5d345(0x169)](_0x5b15f8[_0xb5d345(0x357)]()),await Promise['resolve']());const _0xb8aabd=JSON[_0xb5d345(0x26c)](JSON[_0xb5d345(0x223)](_0x2d26f1));this[_0xb5d345(0x289)](_0xb8aabd,_0x2c40de),this[_0xb5d345(0x1cf)][_0xb5d345(0x145)]();}[_0x55b227(0x289)](_0x4d41b9,_0x23a6c3){const _0x2ec9ab=_0x55b227,_0x885e0f=this[_0x2ec9ab(0x2b2)]['createUnit'](_univerjs_core[_0x2ec9ab(0x3b8)][_0x2ec9ab(0x163)],_0x4d41b9);this[_0x2ec9ab(0x2b2)][_0x2ec9ab(0x243)](_0x885e0f[_0x2ec9ab(0x357)]());const _0x1e4c1d=this[_0x2ec9ab(0x1be)][_0x2ec9ab(0x252)][_0x2ec9ab(0x24b)](this[_0x2ec9ab(0x1be)][_0x2ec9ab(0x252)][_0x2ec9ab(0x320)]()[_0x2ec9ab(0x106)]);return _0x23a6c3===null||_0x23a6c3===void 0x0||_0x23a6c3[_0x2ec9ab(0x1e8)](_0x532983=>{const _0x4f1232=_0x2ec9ab,_0x1c10c4=_0x532983['mutations'][_0x4f1232(0x36a)](_0x41c1bc=>({'id':_0x41c1bc['id'],'params':JSON['parse'](_0x41c1bc[_0x4f1232(0x351)])}));(_0x1e4c1d(_0x1c10c4,null)||_0x1c10c4)['forEach'](_0x46c2a4=>{const _0x182221=_0x4f1232;this[_0x182221(0x2b5)][_0x182221(0x23d)](_0x46c2a4['id'])&&this[_0x182221(0x2b5)][_0x182221(0x226)](_0x46c2a4['id'],_0x46c2a4[_0x182221(0x112)],{'fromChangeset':!![]});});}),_0x885e0f;}};HistoryFetchService=__decorate([__decorateParam(0x0,_univerjs_pro_collaboration[_0x55b227(0x352)]),__decorateParam(0x1,_univerjs_core[_0x55b227(0x18f)]),__decorateParam(0x2,_univerjs_core[_0x55b227(0x105)]),__decorateParam(0x3,_univerjs_core[_0x55b227(0x3d6)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_network[_0x55b227(0x411)])),__decorateParam(0x5,(0x0,_univerjs_core[_0x55b227(0x242)])(_univerjs_pro_collaboration[_0x55b227(0x1a2)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x55b227(0x242)])(_univerjs_sheets['SheetPermissionInitController']))],HistoryFetchService);function convertEntitiesToVersions(_0x11c407){const _0x35dbf5=_0x55b227,_0x43ecda=[],{entities:_0x36d70e,historyIds:_0x20712e}=_0x11c407,{datas:_0x3b0c3b,users:_0xd558a8}=_0x36d70e;for(const _0x132234 of _0x20712e){const _0x237501=_0x3b0c3b[_0x132234];if(_0x237501){var _0x1b8e13,_0x194798;const _0x136403=Boolean((_0x1b8e13=_0xd558a8[_0x237501[_0x35dbf5(0x33b)]])===null||_0x1b8e13===void 0x0?void 0x0:_0x1b8e13[_0x35dbf5(0xe4)]);_0x43ecda['push']({'unitId':_0x237501[_0x35dbf5(0x185)],'user':_0x136403?'':(_0xd558a8===null||_0xd558a8===void 0x0||(_0x194798=_0xd558a8[_0x237501['userId']])===null||_0x194798===void 0x0?void 0x0:_0x194798[_0x35dbf5(0x22c)])||'','users':_0x237501[_0x35dbf5(0xf8)][_0x35dbf5(0x36a)](_0x56b695=>{const _0x138506=_0x35dbf5;var _0xa94340;return(_0xd558a8===null||_0xd558a8===void 0x0||(_0xa94340=_0xd558a8[_0x56b695])===null||_0xa94340===void 0x0?void 0x0:_0xa94340[_0x138506(0x22c)])||'';})[_0x35dbf5(0x192)](_0x4cda94=>_0x4cda94),'isAnonymous':_0x136403,'id':_0x132234,'time':_0x237501[_0x35dbf5(0x1d8)]?Number(_0x237501[_0x35dbf5(0x1d8)]):void 0x0,'commands':_0x237501[_0x35dbf5(0x3ef)],'startRev':Number(_0x237501[_0x35dbf5(0x2f9)]),'endRev':Number(_0x237501[_0x35dbf5(0x139)]),'recoverTime':_0x237501['recoverTime']?Number(_0x237501[_0x35dbf5(0x41d)]):void 0x0,'additionalFields':_0x237501[_0x35dbf5(0x304)],'startRevCreateTime':_0x237501[_0x35dbf5(0xd0)]?Number(_0x237501[_0x35dbf5(0xd0)]):void 0x0,'endRevCreateTime':_0x237501[_0x35dbf5(0x19b)]?Number(_0x237501[_0x35dbf5(0x19b)]):void 0x0});}}return _0x43ecda;}let HistoryModeStatus=function(_0x1251d7){const _0x1d2865=_0x55b227;return _0x1251d7[_0x1d2865(0x180)]=_0x1d2865(0x35f),_0x1251d7[_0x1d2865(0x133)]='exited',_0x1251d7['Error']=_0x1d2865(0x282),_0x1251d7;}({});const VIRTUAL_VERSION_NOW=_0x55b227(0xf6);let HistoryManagerService=class HistoryManagerService extends _univerjs_core[_0x55b227(0x117)]{[_0x55b227(0x137)](_0x1bd957){const _0x1e18f5=_0x55b227;this['_fetching$'][_0x1e18f5(0x2c5)](_0x1bd957);}get[_0x55b227(0x321)](){const _0x1f90fb=_0x55b227;return this['_fetching$'][_0x1f90fb(0x3a1)];}constructor(_0x2bf2cb,_0x252231,_0x3ebc33,_0x1c8a04){const _0x4fa4a1=_0x55b227;super(),this[_0x4fa4a1(0x2e2)]=_0x2bf2cb,this[_0x4fa4a1(0x3cc)]=_0x252231,this[_0x4fa4a1(0xe9)]=_0x3ebc33,this[_0x4fa4a1(0xfd)]=_0x1c8a04,_defineProperty(this,_0x4fa4a1(0x244),new rxjs[(_0x4fa4a1(0x3dc))]([])),_defineProperty(this,'versions$',this['_versions$'][_0x4fa4a1(0x152)]()),_defineProperty(this,_0x4fa4a1(0x335),new rxjs[(_0x4fa4a1(0x3dc))]('')),_defineProperty(this,_0x4fa4a1(0x31c),this[_0x4fa4a1(0x335)][_0x4fa4a1(0x152)]()),_defineProperty(this,_0x4fa4a1(0x2fc),new rxjs[(_0x4fa4a1(0x3dc))](_0x4fa4a1(0x35f))),_defineProperty(this,_0x4fa4a1(0x415),this[_0x4fa4a1(0x2fc)][_0x4fa4a1(0x152)]()),_defineProperty(this,_0x4fa4a1(0x24d),new rxjs[(_0x4fa4a1(0x3dc))](0x0)),_defineProperty(this,_0x4fa4a1(0x17a),this[_0x4fa4a1(0x24d)][_0x4fa4a1(0x152)]()),_defineProperty(this,_0x4fa4a1(0x1f7),new rxjs[(_0x4fa4a1(0x3dc))]('')),_defineProperty(this,_0x4fa4a1(0x402),this['_unitId$'][_0x4fa4a1(0x152)]()),_defineProperty(this,_0x4fa4a1(0x1b9),new rxjs[(_0x4fa4a1(0x3dc))](![])),_defineProperty(this,'fetching$',this['_fetching$']['asObservable']()),_defineProperty(this,_0x4fa4a1(0x356),new rxjs[(_0x4fa4a1(0x3dc))]([])),_defineProperty(this,_0x4fa4a1(0x318),this[_0x4fa4a1(0x356)][_0x4fa4a1(0x152)]()),_defineProperty(this,_0x4fa4a1(0x15a),new rxjs[(_0x4fa4a1(0x3dc))](![])),_defineProperty(this,_0x4fa4a1(0x1db),this[_0x4fa4a1(0x15a)][_0x4fa4a1(0x152)]()),_defineProperty(this,_0x4fa4a1(0x362),new Map()),_defineProperty(this,_0x4fa4a1(0x13a),new rxjs['BehaviorSubject'](_0x4fa4a1(0x3d0))),_defineProperty(this,'loadingState$',this[_0x4fa4a1(0x13a)][_0x4fa4a1(0x152)]()),_defineProperty(this,'_lastLabel',null),_defineProperty(this,_0x4fa4a1(0xd3),!![]),_defineProperty(this,_0x4fa4a1(0x28a),new Map()),_defineProperty(this,_0x4fa4a1(0x207),void 0x0),_defineProperty(this,_0x4fa4a1(0xfe),void 0x0),_defineProperty(this,_0x4fa4a1(0x284),void 0x0),_defineProperty(this,'_canRevert',![]),_defineProperty(this,_0x4fa4a1(0x42b),null),_defineProperty(this,_0x4fa4a1(0x1bf),new Map());}async[_0x55b227(0x2bf)](_0x15ae7d,_0x228994,_0x3428cb){const _0x16127d=_0x55b227;this[_0x16127d(0x207)]=_0x228994,this[_0x16127d(0x306)]=_0x3428cb,this[_0x16127d(0x15a)][_0x16127d(0x2c5)](!![]),await this[_0x16127d(0x146)](_0x15ae7d);}['triggerCustomVersions'](_0x1c915d,_0x162826='',_0x30c3d0,_0x11645c){const _0x407fe=_0x55b227,{versions:_0x5966e4,hasMore:_0x2afab8,lastLabel:_0x43704d,members:_0x29946d}=_0x11645c,_0x2339c4=_0x5966e4[_0x407fe(0x2d2)]>0x0?_0x5966e4:[{'unitId':_0x1c915d,'id':VIRTUAL_VERSION_NOW,'startRev':0x1,'endRev':0x0,'time':Date[_0x407fe(0x337)](),'user':this[_0x407fe(0xe9)]['t'](_0x407fe(0x1fe)),'users':[this[_0x407fe(0xe9)]['t'](_0x407fe(0x1fe))],'commands':[],'isAnonymous':![]}];this[_0x407fe(0x306)]=_0x30c3d0,this[_0x407fe(0x207)]=_0x162826,this['_unitId$'][_0x407fe(0x2c5)](_0x1c915d),this[_0x407fe(0x336)](_0x2339c4,_0x2afab8,_0x43704d,![],_0x29946d),this[_0x407fe(0x335)][_0x407fe(0x2c5)](_0x2339c4[0x0]['id']);}async['loadInitialVersions'](_0x1d7980,_0x41147b){const _0x432db4=_0x55b227;this[_0x432db4(0x1f7)][_0x432db4(0x2c5)](_0x1d7980),this[_0x432db4(0x42b)]=_0x41147b!==null&&_0x41147b!==void 0x0?_0x41147b:null,this[_0x432db4(0x137)](!![]);const _0x1a2031=await this['_historyFetchService']['getVersions'](_0x1d7980,_0x41147b);this[_0x432db4(0x137)](![]);if(_0x1a2031){const {versions:_0x2834b1,lastLabel:_0x171445,hasMore:_0x2efd4d,members:_0x1bc4f6}=_0x1a2031;if(_0x2834b1[_0x432db4(0x2d2)]===0x0)_0x2834b1[_0x432db4(0x3e1)]({'unitId':_0x1d7980,'id':VIRTUAL_VERSION_NOW,'startRev':0x1,'endRev':0x0,'time':Date[_0x432db4(0x337)](),'user':this['_localeService']['t']('editHistory.panel.currentUser'),'users':[this['_localeService']['t']('editHistory.panel.currentUser')],'commands':[],'isAnonymous':![]});this[_0x432db4(0x336)](_0x2834b1,_0x2efd4d,_0x171445,![],_0x1bc4f6),this[_0x432db4(0x335)][_0x432db4(0x2c5)](_0x2834b1[0x0]['id']),this[_0x432db4(0x1bf)][_0x432db4(0x10c)](_0x1d7980,_0x2834b1[0x0][_0x432db4(0x298)]);}else this[_0x432db4(0x2fc)]['next'](_0x432db4(0x282));}async[_0x55b227(0xf1)](){const _0x186714=_0x55b227;if(!this[_0x186714(0xc6)]||!this['_hasMore']||this['fetching'])return![];this[_0x186714(0x137)](!![]);const _0x49e260=await this[_0x186714(0xfd)][_0x186714(0x38e)](this[_0x186714(0x185)],{'lastLabel':this[_0x186714(0xc6)],...this['_loadParams']});this[_0x186714(0x137)](![]);if(_0x49e260){const {versions:_0x43b501,lastLabel:_0x2525c5,hasMore:_0x55e208,members:_0x5b78ce}=_0x49e260;this['_updateVersions'](_0x43b501,_0x55e208,_0x2525c5,!![],_0x5b78ce);}else this[_0x186714(0x2e2)][_0x186714(0x29d)]({'content':this[_0x186714(0xe9)]['t'](_0x186714(0x374)),'type':_univerjs_design['MessageType'][_0x186714(0x25a)],'duration':0xbb8});return!![];}async[_0x55b227(0x1a6)](){const _0x442a8f=_0x55b227,{unitId:_0xe08611}=this;if(!_0xe08611)return;const _0x4ddd1e=await this[_0x442a8f(0xfd)][_0x442a8f(0x349)](_0xe08611);if(_0x4ddd1e)this[_0x442a8f(0x356)]['next'](_0x4ddd1e);}async['triggerLoadSheet'](_0x56bd73){const _0x683e25=_0x55b227,{endRev:_0x1019e2}=this[_0x683e25(0x39c)](_0x56bd73)||{};if(_0x1019e2||_0x1019e2===0x0)this[_0x683e25(0x13a)][_0x683e25(0x2c5)](_0x683e25(0x3a9)),await this[_0x683e25(0xfd)][_0x683e25(0x38d)](this[_0x683e25(0x185)],_0x1019e2),this[_0x683e25(0x13a)][_0x683e25(0x2c5)](_0x683e25(0x40c));else this['_status$'][_0x683e25(0x2c5)](_0x683e25(0x282));}async[_0x55b227(0x3ec)](_0x211ac5){const _0x4abf1a=_0x55b227,_0x140cd7=_0x211ac5?this['getVersion'](_0x211ac5):this[_0x4abf1a(0x41b)]();if(!_0x140cd7)return;const _0x51c1f9=_0x140cd7['endRev'],_0x24d8cd=parseDateWithLocale(_0x140cd7[_0x4abf1a(0xe3)],this[_0x4abf1a(0xe9)][_0x4abf1a(0x35e)]());await this[_0x4abf1a(0x3cc)][_0x4abf1a(0x293)]({'id':_0x4abf1a(0x20f),'title':{'title':this[_0x4abf1a(0xe9)]['t'](_0x4abf1a(0x2a3))},'children':{'title':this[_0x4abf1a(0xe9)]['t'](_0x4abf1a(0x3e2))+_0x4abf1a(0x3bc)+_0x24d8cd[_0x4abf1a(0x3fe)]+'\x20'+_0x24d8cd[_0x4abf1a(0xe3)]+')'},'cancelText':this[_0x4abf1a(0xe9)]['t']('editHistory.panel.cancel'),'confirmText':this['_localeService']['t'](_0x4abf1a(0x1c7))})&&this[_0x4abf1a(0x24d)][_0x4abf1a(0x2c5)](_0x51c1f9);}[_0x55b227(0x336)](_0xe882f,_0x1818cc,_0x1f3497,_0x366fd1,_0x56ce87){const _0x500221=_0x55b227;this[_0x500221(0x23a)](_0x366fd1?this[_0x500221(0x244)][_0x500221(0x3a1)][_0x500221(0x11d)](_0xe882f):_0xe882f),this[_0x500221(0xd3)]=_0x1818cc,this[_0x500221(0xc6)]=_0x1f3497,_0x56ce87&&Object[_0x500221(0x148)](_0x56ce87)[_0x500221(0x1e8)](_0x1609fb=>this['_members'][_0x500221(0x10c)](_0x1609fb,_0x56ce87[_0x1609fb]));}[_0x55b227(0x41b)](){const _0x4c743d=_0x55b227;return this[_0x4c743d(0x39c)](this[_0x4c743d(0x335)][_0x4c743d(0x3a1)]);}[_0x55b227(0x23a)](_0x2cbcbe){const _0x3a5fa1=_0x55b227;this['_versions$'][_0x3a5fa1(0x2c5)](_0x2cbcbe);}[_0x55b227(0x39c)](_0x437346){const _0x49fe02=_0x55b227;var _0x38acd2;const _0x1c822c=(_0x38acd2=this[_0x49fe02(0x244)]['value'])===null||_0x38acd2===void 0x0?void 0x0:_0x38acd2[_0x49fe02(0x2ce)](_0x3b1e32=>_0x3b1e32['id']===_0x437346);if(_0x1c822c)return _0x1c822c;return this[_0x49fe02(0x362)][_0x49fe02(0x17d)](_0x437346);}[_0x55b227(0x1ae)](_0x251b76){const _0x1d039c=_0x55b227;this[_0x1d039c(0x362)][_0x1d039c(0x10c)](_0x251b76['id'],_0x251b76);}[_0x55b227(0x254)](){const _0x210c3e=_0x55b227;if(!this[_0x210c3e(0x185)])return;return this['_unitCurrentVersionMap'][_0x210c3e(0x17d)](this['unitId']);}[_0x55b227(0x199)](){const _0x2d263a=_0x55b227;var _0xc316ad;return((_0xc316ad=this[_0x2d263a(0x41b)]())===null||_0xc316ad===void 0x0?void 0x0:_0xc316ad[_0x2d263a(0x298)])===this[_0x2d263a(0x254)]();}[_0x55b227(0x3b1)](){const _0xd7cf5a=_0x55b227;return!this[_0xd7cf5a(0x199)]()&&this[_0xd7cf5a(0xca)];}[_0x55b227(0x3ce)](_0x50bff5){const _0x1f4f84=_0x55b227;return this['_members'][_0x1f4f84(0x17d)](_0x50bff5);}[_0x55b227(0x2af)](){const _0x3bd5b6=_0x55b227;this[_0x3bd5b6(0x284)]=document[_0x3bd5b6(0x39d)](_0x3bd5b6(0x403)),this[_0x3bd5b6(0x284)][_0x3bd5b6(0x103)]=_0x3bd5b6(0xff),this['_maskElement'][_0x3bd5b6(0x285)][_0x3bd5b6(0x11e)]='absolute',this[_0x3bd5b6(0x284)][_0x3bd5b6(0x285)][_0x3bd5b6(0x3df)]='0',this[_0x3bd5b6(0x284)]['style'][_0x3bd5b6(0xd2)]='0',this[_0x3bd5b6(0x284)]['style'][_0x3bd5b6(0xde)]='100%',this[_0x3bd5b6(0x284)][_0x3bd5b6(0x285)][_0x3bd5b6(0x1f9)]=_0x3bd5b6(0x36c),this[_0x3bd5b6(0x284)][_0x3bd5b6(0x285)][_0x3bd5b6(0x3a2)]=_0x3bd5b6(0x3f0),this[_0x3bd5b6(0x284)][_0x3bd5b6(0x285)][_0x3bd5b6(0x37d)]=_0x3bd5b6(0x1d3),this[_0x3bd5b6(0x284)][_0x3bd5b6(0x285)][_0x3bd5b6(0x3e8)]=_0x3bd5b6(0x150),this[_0x3bd5b6(0x284)]['style'][_0x3bd5b6(0x3d8)]='center',this[_0x3bd5b6(0x284)][_0x3bd5b6(0x285)][_0x3bd5b6(0x307)]=_0x3bd5b6(0xe2),this[_0x3bd5b6(0x284)][_0x3bd5b6(0x285)][_0x3bd5b6(0x3e8)]=_0x3bd5b6(0x132),this[_0x3bd5b6(0xfe)][_0x3bd5b6(0x2de)](this[_0x3bd5b6(0x284)]);}['_initMaskContainer'](){const _0x3f544f=_0x55b227,_0x50e542=document[_0x3f544f(0x1d4)](this[_0x3f544f(0x207)]);_0x50e542&&(this[_0x3f544f(0xfe)]=_0x50e542,this[_0x3f544f(0x2af)]());}['showMask'](){const _0x2b70d7=_0x55b227;if(!this[_0x2b70d7(0xfe)])this[_0x2b70d7(0x3f8)]();if(this[_0x2b70d7(0x284)])this[_0x2b70d7(0x284)]['style']['display']='flex';}[_0x55b227(0x265)](){const _0x59057b=_0x55b227;if(this[_0x59057b(0x284)])this[_0x59057b(0x284)]['style'][_0x59057b(0x3e8)]=_0x59057b(0x132);}set['status'](_0x278a3a){const _0x1c7b4f=_0x55b227;this[_0x1c7b4f(0x2fc)][_0x1c7b4f(0x2c5)](_0x278a3a);}set[_0x55b227(0x344)](_0x4fe117){const _0x201b86=_0x55b227;if(_0x4fe117!==this[_0x201b86(0x335)][_0x201b86(0x3a1)])this['_currentVersion$'][_0x201b86(0x2c5)](_0x4fe117);}get[_0x55b227(0x344)](){const _0x398eac=_0x55b227;return this['_currentVersion$'][_0x398eac(0x3a1)];}set[_0x55b227(0x185)](_0x365331){const _0x3c977c=_0x55b227;this[_0x3c977c(0x1f7)][_0x3c977c(0x2c5)](_0x365331);}get['unitId'](){const _0x17b83c=_0x55b227;return this[_0x17b83c(0x1f7)][_0x17b83c(0x3a1)];}get[_0x55b227(0xca)](){const _0x15409a=_0x55b227;return this[_0x15409a(0x306)];}get[_0x55b227(0x31b)](){const _0x1826ef=_0x55b227;return this[_0x1826ef(0x13a)][_0x1826ef(0x3a1)];}};HistoryManagerService=__decorate([__decorateParam(0x0,_univerjs_ui[_0x55b227(0x274)]),__decorateParam(0x1,_univerjs_core[_0x55b227(0x260)]),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x55b227(0x41c)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x55b227(0x242)])(HistoryFetchService))],HistoryManagerService);let VersionDiffService=class VersionDiffService extends _univerjs_core[_0x55b227(0x117)]{constructor(_0x31317c,_0x506a08,_0x3b7b8b,_0x85d53c,_0x583cd9,_0x15e88a,_0x227c4a,_0x6043c2,_0x31901e,_0x4497aa,_0x3beed7,_0x1045fb,_0x3c01ce){const _0x1f0096=_0x55b227;super(),this[_0x1f0096(0x2b4)]=_0x31317c,this['_transformService']=_0x506a08,this['_snapshotServerService']=_0x3b7b8b,this[_0x1f0096(0x3da)]=_0x85d53c,this['_conditionalFormattingRuleModel']=_0x583cd9,this[_0x1f0096(0x245)]=_0x15e88a,this[_0x1f0096(0x16a)]=_0x227c4a,this[_0x1f0096(0xef)]=_0x6043c2,this[_0x1f0096(0x316)]=_0x31901e,this['_sheetTableService']=_0x4497aa,this['_localeService']=_0x3beed7,this[_0x1f0096(0x250)]=_0x1045fb,this[_0x1f0096(0xfd)]=_0x3c01ce,_defineProperty(this,_0x1f0096(0x190),new Map()),_defineProperty(this,_0x1f0096(0x301),new rxjs[(_0x1f0096(0x3dc))]({'ranges':new Map(),'active':null,'subUnitIds':[]})),_defineProperty(this,_0x1f0096(0x372),this[_0x1f0096(0x301)]['asObservable']()),this[_0x1f0096(0x173)]();}['_init'](){const _0x360a94=_0x55b227;this[_0x360a94(0x190)]=new Map(),this[_0x360a94(0x1de)](this[_0x360a94(0x2b4)][_0x360a94(0x402)]['subscribe'](_0x29adef=>{const _0x356f4d=_0x360a94;if(_0x29adef&&!this[_0x356f4d(0x190)][_0x356f4d(0x1aa)](_0x29adef))this[_0x356f4d(0x190)]['set'](_0x29adef,new Map());})),this['disposeWithMe'](this[_0x360a94(0x2b4)][_0x360a94(0x31c)]['subscribe'](async _0xb190c=>{const _0x4be887=_0x360a94;if(_0xb190c){var _0x14d1f5;await this[_0x4be887(0x2d9)](_0xb190c),this[_0x4be887(0x301)]['next'](((_0x14d1f5=this[_0x4be887(0x190)][_0x4be887(0x17d)](this['_historyManagerService'][_0x4be887(0x185)]))===null||_0x14d1f5===void 0x0?void 0x0:_0x14d1f5['get'](_0xb190c))||{'ranges':new Map(),'active':null,'subUnitIds':[]});}}));}async['ensureVersion'](_0x4d2001){const _0x57b7a7=_0x55b227;var _0x2434a3,_0x4bd5f6;const _0x1e7d08=this[_0x57b7a7(0x2b4)][_0x57b7a7(0x39c)](_0x4d2001),_0x453d01=this[_0x57b7a7(0x2b4)][_0x57b7a7(0x185)];if(!_0x1e7d08||!_0x453d01)return;const _0x4b4753=this['_diffRangesMap'][_0x57b7a7(0x17d)](_0x453d01);if(!_0x4b4753)this[_0x57b7a7(0x190)][_0x57b7a7(0x10c)](_0x453d01,new Map());if((_0x2434a3=this[_0x57b7a7(0x190)][_0x57b7a7(0x17d)](_0x453d01))===null||_0x2434a3===void 0x0?void 0x0:_0x2434a3['has'](_0x1e7d08['id']))return;const {startRev:_0x202f54,endRev:_0x28c48b}=_0x1e7d08;if(_0x202f54===0x1){_0x4b4753['set'](_0x1e7d08['id'],{'ranges':new Map(),'active':null,'subUnitIds':[]});return;}const _0x4407d8=_0x202f54,_0x3ddc0a=_0x28c48b,_0x4e4fa4=await this[_0x57b7a7(0xfd)][_0x57b7a7(0x400)]({},{'unitId':_0x453d01,'startRevision':_0x4407d8,'endRevision':_0x3ddc0a});if(((_0x4bd5f6=_0x4e4fa4[_0x57b7a7(0x282)])===null||_0x4bd5f6===void 0x0?void 0x0:_0x4bd5f6[_0x57b7a7(0x3a4)])===_univerjs_protocol[_0x57b7a7(0x31e)]['OK']){const _0x5b2278=_0x4e4fa4[_0x57b7a7(0x2c6)][_0x57b7a7(0x36a)](_0x2d09ec=>{const _0x458bb6=_0x57b7a7;if(_0x2d09ec[_0x458bb6(0x36b)]===null||_0x2d09ec['mutations']===void 0x0)_0x2d09ec[_0x458bb6(0x36b)]=[];return(0x0,_univerjs_pro_collaboration[_0x458bb6(0x241)])(_0x2d09ec);})['map'](_0x5c70b8=>_0x5c70b8[_0x57b7a7(0x36b)][_0x57b7a7(0x36a)](_0x5060d5=>({..._0x5060d5,'params':{..._0x5060d5['params'],'memberId':_0x5c70b8[_0x57b7a7(0x395)]||_0x57b7a7(0x35c)}})))[_0x57b7a7(0x283)](),_0x3909b6=await this['_transformMutationByOrder'](_0x5b2278),_0x386e8c=this[_0x57b7a7(0x159)](_0x5b2278),_0x4d0af7=this[_0x57b7a7(0x34c)](_0x3909b6);_0x4b4753[_0x57b7a7(0x10c)](_0x1e7d08['id'],{..._0x4d0af7,'active':_0x386e8c});}}[_0x55b227(0x3e9)](){const _0xca096d=_0x55b227,_0x193968=getAllMutations(_0xca096d(0xcd)),_0x3dbce4=new Map();return Object['values'](_0x193968)['flat']()[_0xca096d(0x1e8)](_0x59c014=>{const _0x12a7bd=_0xca096d;_0x3dbce4['set'](_0x59c014['id'],_0x59c014[_0x12a7bd(0x1fc)]);}),_0x3dbce4;}['categorizeMutationRanges'](_0x254f3e,_0x31871c){return this['_categorizeMutationRanges'](_0x254f3e,_0x31871c);}async[_0x55b227(0x3f9)](_0x4f05b6){const _0xb3e66a=_0x55b227;let _0x2921fa=[];for(let _0x5ebb0c=0x0;_0x5ebb0c<_0x4f05b6[_0xb3e66a(0x2d2)];_0x5ebb0c++){const _0x5cfde9=_0x4f05b6[_0x5ebb0c];_0x2921fa[_0xb3e66a(0x3e1)](_0x5cfde9);if(_0x5ebb0c!==_0x4f05b6[_0xb3e66a(0x2d2)]-0x1){const _0x1bc776=_0x4f05b6[_0x5ebb0c+0x1],_0x1f8950=this[_0xb3e66a(0x1b2)][_0xb3e66a(0xf2)](_0x2921fa,[_0x1bc776]);if((0x0,_univerjs_pro_collaboration[_0xb3e66a(0x3dd)])(_0x1f8950))_0x2921fa=_0x1f8950['m1Prime'];else _0x2921fa=[];}if(_0x5ebb0c%0xa===0x0&&_0x5ebb0c>0x0)await this[_0xb3e66a(0x187)]();}return _0x2921fa;}['_yieldToMain'](){return new Promise(_0x3c94b7=>{const _0x4f27bf=_0xae2a;if(typeof requestIdleCallback===_0x4f27bf(0x2e0))requestIdleCallback(()=>_0x3c94b7(),{'timeout':0x64});else setTimeout(_0x3c94b7,0x0);});}[_0x55b227(0x159)](_0x3c4dfe){const _0xa1a95=_0x55b227;let _0x4b5baa=[];return _0x3c4dfe['forEach'](_0x461146=>{const _0x38147c=_0xae2a;if(_0x461146['id']===_univerjs_sheets['InsertSheetMutation']['id']){const _0x534d61=_0x461146[_0x38147c(0x112)];_0x4b5baa[_0x38147c(0x3e1)](_0x534d61['sheet']['id']);}else{if(_0x461146['id']===_univerjs_sheets[_0x38147c(0x3cd)]['id']){const _0x5dc16f=_0x461146['params'];if(_0x4b5baa[_0x38147c(0x2d2)]>0x0)_0x4b5baa=_0x4b5baa['filter'](_0x33c3ae=>_0x33c3ae!==_0x5dc16f[_0x38147c(0x3e0)]);}else{if(_0x461146['id']===_univerjs_sheets[_0x38147c(0x27a)]['id']){const _0x2296a3=_0x461146[_0x38147c(0x112)];if(_0x2296a3[_0x38147c(0x367)])_0x4b5baa=_0x4b5baa[_0x38147c(0x192)](_0x5e40c3=>_0x5e40c3!==_0x2296a3[_0x38147c(0x3e0)]);else _0x4b5baa[_0x38147c(0x3e1)](_0x2296a3[_0x38147c(0x3e0)]);}else{const _0x228ab7=_0x461146[_0x38147c(0x112)];if(_0x228ab7[_0x38147c(0x3e0)])_0x4b5baa[_0x38147c(0x3e1)](_0x228ab7[_0x38147c(0x3e0)]);}}}}),_0x4b5baa[_0xa1a95(0x2d2)]>0x0?_0x4b5baa[_0x4b5baa['length']-0x1]:null;}['_extractRanges'](_0x53aeca){const _0x1638ea=_0x55b227,_0x321ec4=new Map(),_0x241034=new Map(),_0x2cc36c=new Map(),_0x52c083=new Map(),_0x3cb1d4=new Map(),_0x512d02=new Map(),_0x209497=new Map(),_0x2f0405=new Map(),_0x37119a=new Map(),_0x55108d=new Map(),_0x3dcd23=new Map(),_0x3ba5ce=new Map(),_0x165b95=new Set(),_0x4b844f=this['getMutationActionMap']();return _0x53aeca[_0x1638ea(0x1e8)](_0x3344be=>{const _0x4529e1=_0x1638ea;var _0x3c4007,_0x3e42b0,_0x1e505b,_0x38986a,_0x2a33e0,_0x1bcac0,_0xba87dd,_0x31be76,_0x24ff55,_0x237756,_0x18f7ee,_0x5b0ec1,_0x3dc039;const _0x587e81=(_0x3c4007=_0x3344be['params'])===null||_0x3c4007===void 0x0?void 0x0:_0x3c4007[_0x4529e1(0x34b)];if(!_0x587e81)return;!_0x321ec4['has'](_0x587e81)&&(_0x321ec4[_0x4529e1(0x10c)](_0x587e81,[]),_0x241034['set'](_0x587e81,[]),_0x2cc36c[_0x4529e1(0x10c)](_0x587e81,[]),_0x52c083['set'](_0x587e81,[]),_0x3cb1d4[_0x4529e1(0x10c)](_0x587e81,[]),_0x512d02[_0x4529e1(0x10c)](_0x587e81,[]),_0x209497[_0x4529e1(0x10c)](_0x587e81,[]),_0x2f0405[_0x4529e1(0x10c)](_0x587e81,[]),_0x37119a[_0x4529e1(0x10c)](_0x587e81,[]),_0x55108d['set'](_0x587e81,[]),_0x3dcd23['set'](_0x587e81,[]),_0x3ba5ce[_0x4529e1(0x10c)](_0x587e81,[]));const _0x3d8d8c=this[_0x4529e1(0x396)](_0x3344be,_0x4b844f);_0x3d8d8c[_0x4529e1(0x410)][_0x4529e1(0x1e8)](_0xb10c19=>_0x165b95[_0x4529e1(0x201)](_0xb10c19)),(_0x3e42b0=_0x321ec4[_0x4529e1(0x17d)](_0x587e81))===null||_0x3e42b0===void 0x0||_0x3e42b0[_0x4529e1(0x3e1)](..._0x3d8d8c[_0x4529e1(0x2f8)]),(_0x1e505b=_0x241034[_0x4529e1(0x17d)](_0x587e81))===null||_0x1e505b===void 0x0||_0x1e505b[_0x4529e1(0x3e1)](..._0x3d8d8c[_0x4529e1(0x408)]),(_0x38986a=_0x2cc36c['get'](_0x587e81))===null||_0x38986a===void 0x0||_0x38986a[_0x4529e1(0x3e1)](..._0x3d8d8c[_0x4529e1(0xe0)]),(_0x2a33e0=_0x52c083[_0x4529e1(0x17d)](_0x587e81))===null||_0x2a33e0===void 0x0||_0x2a33e0['push'](..._0x3d8d8c[_0x4529e1(0x36d)]),(_0x1bcac0=_0x3cb1d4[_0x4529e1(0x17d)](_0x587e81))===null||_0x1bcac0===void 0x0||_0x1bcac0[_0x4529e1(0x3e1)](..._0x3d8d8c[_0x4529e1(0x3f1)]),(_0xba87dd=_0x512d02[_0x4529e1(0x17d)](_0x587e81))===null||_0xba87dd===void 0x0||_0xba87dd[_0x4529e1(0x3e1)](..._0x3d8d8c[_0x4529e1(0x38b)]),(_0x31be76=_0x209497[_0x4529e1(0x17d)](_0x587e81))===null||_0x31be76===void 0x0||_0x31be76[_0x4529e1(0x3e1)](..._0x3d8d8c[_0x4529e1(0x3b2)]),(_0x24ff55=_0x2f0405[_0x4529e1(0x17d)](_0x587e81))===null||_0x24ff55===void 0x0||_0x24ff55[_0x4529e1(0x3e1)](..._0x3d8d8c['arrowRowRanges']),(_0x237756=_0x37119a['get'](_0x587e81))===null||_0x237756===void 0x0||_0x237756['push'](..._0x3d8d8c[_0x4529e1(0x1ce)]),(_0x18f7ee=_0x3dcd23[_0x4529e1(0x17d)](_0x587e81))===null||_0x18f7ee===void 0x0||_0x18f7ee[_0x4529e1(0x3e1)](..._0x3d8d8c[_0x4529e1(0x2a4)]),(_0x5b0ec1=_0x3ba5ce[_0x4529e1(0x17d)](_0x587e81))===null||_0x5b0ec1===void 0x0||_0x5b0ec1[_0x4529e1(0x3e1)](..._0x3d8d8c[_0x4529e1(0x2a7)]),(_0x3dc039=_0x55108d[_0x4529e1(0x17d)](_0x587e81))===null||_0x3dc039===void 0x0||_0x3dc039[_0x4529e1(0x3e1)](..._0x3d8d8c[_0x4529e1(0xc7)]);}),_0x321ec4[_0x1638ea(0x1e8)]((_0x5d5998,_0x27d4cf)=>{const _0x170ea0=_0x1638ea;_0x321ec4['set'](_0x27d4cf,this[_0x170ea0(0x339)](_0x5d5998)),_0x241034[_0x170ea0(0x10c)](_0x27d4cf,this[_0x170ea0(0x339)](_0x241034[_0x170ea0(0x17d)](_0x27d4cf)||[])),_0x2cc36c[_0x170ea0(0x10c)](_0x27d4cf,this[_0x170ea0(0x339)](_0x2cc36c[_0x170ea0(0x17d)](_0x27d4cf)||[])),_0x52c083[_0x170ea0(0x10c)](_0x27d4cf,this['_combineRanges'](_0x52c083[_0x170ea0(0x17d)](_0x27d4cf)||[])),_0x3cb1d4['set'](_0x27d4cf,this[_0x170ea0(0x339)](_0x3cb1d4[_0x170ea0(0x17d)](_0x27d4cf)||[])),_0x512d02[_0x170ea0(0x10c)](_0x27d4cf,this['_combineRanges'](_0x512d02[_0x170ea0(0x17d)](_0x27d4cf)||[])),_0x209497[_0x170ea0(0x10c)](_0x27d4cf,this['_combineRanges'](_0x209497[_0x170ea0(0x17d)](_0x27d4cf)||[])),_0x2f0405[_0x170ea0(0x10c)](_0x27d4cf,this[_0x170ea0(0x339)](_0x2f0405[_0x170ea0(0x17d)](_0x27d4cf)||[])),_0x37119a[_0x170ea0(0x10c)](_0x27d4cf,this[_0x170ea0(0x339)](_0x37119a['get'](_0x27d4cf)||[]));}),{'ranges':_0x321ec4,'insertCellRanges':_0x241034,'deleteCellRanges':_0x2cc36c,'updateCellRanges':_0x52c083,'insertBorderRanges':_0x3cb1d4,'deleteBorderRanges':_0x512d02,'updateBorderRanges':_0x209497,'arrowRowRanges':_0x2f0405,'arrowColumnRanges':_0x37119a,'insertDrawings':_0x3dcd23,'deleteDrawings':_0x3ba5ce,'updateDrawings':_0x55108d,'subUnitIds':Array[_0x1638ea(0x2e1)](_0x165b95)};}[_0x55b227(0x396)](_0x1072c9,_0x216499){const _0x3872cb=_0x55b227,_0xf07718={'allRanges':[],'insertCellRanges':[],'deleteCellRanges':[],'updateCellRanges':[],'insertBorderRanges':[],'deleteBorderRanges':[],'updateBorderRanges':[],'arrowRowRanges':[],'arrowColumnRanges':[],'insertDrawings':[],'deleteDrawings':[],'updateDrawings':[],'subUnitIds':[]},_0x1df069=_0x1072c9['id'],_0x83d4d9=_0x1072c9[_0x3872cb(0x112)],_0x14923a=this['_localeService']['t'](_0x216499[_0x3872cb(0x17d)](_0x1df069)||'');if(_0x83d4d9[_0x3872cb(0x3e0)])_0xf07718['subUnitIds'][_0x3872cb(0x3e1)](_0x83d4d9['subUnitId']);const _0x495013=(_0x4c9232,_0x4e78a6)=>{const _0x1218c7=_0x3872cb,_0xe624d7=_0x4c9232[_0x1218c7(0x36a)](_0xb23e8=>({..._0xb23e8,'showText':_0x14923a}));_0xf07718[_0x1218c7(0x2f8)][_0x1218c7(0x3e1)](..._0xe624d7);switch(_0x4e78a6){case _0x1218c7(0xc8):_0xf07718['insertCellRanges'][_0x1218c7(0x3e1)](..._0xe624d7);break;case _0x1218c7(0x200):_0xf07718[_0x1218c7(0xe0)]['push'](..._0xe624d7);break;case _0x1218c7(0x286):_0xf07718[_0x1218c7(0x36d)][_0x1218c7(0x3e1)](..._0xe624d7);break;case _0x1218c7(0x2a9):_0xf07718['insertBorderRanges'][_0x1218c7(0x3e1)](..._0xe624d7);break;case _0x1218c7(0x16f):_0xf07718['deleteBorderRanges'][_0x1218c7(0x3e1)](..._0xe624d7);break;case _0x1218c7(0x219):_0xf07718[_0x1218c7(0x3b2)][_0x1218c7(0x3e1)](..._0xe624d7);break;case _0x1218c7(0x238):_0xf07718[_0x1218c7(0x37e)][_0x1218c7(0x3e1)](..._0xe624d7);break;case _0x1218c7(0x3eb):_0xf07718[_0x1218c7(0x1ce)][_0x1218c7(0x3e1)](..._0xe624d7);break;}};switch(_0x1df069){case _univerjs_sheets['InsertRowMutation']['id']:{const _0x2b86c2=_0x83d4d9;_0x495013([{'range':{..._0x2b86c2[_0x3872cb(0x149)],'rangeType':_univerjs_core[_0x3872cb(0x17e)]['ROW']},'unitId':_0x2b86c2[_0x3872cb(0x185)],'subUnitId':_0x2b86c2[_0x3872cb(0x3e0)],'showText':'insertRow','highlightRow':!![]}],_0x3872cb(0xc8));break;}case _univerjs_sheets[_0x3872cb(0x1a1)]['id']:{const _0x437fef=_0x83d4d9;_0x495013([{'range':{..._0x437fef[_0x3872cb(0x149)],'rangeType':_univerjs_core[_0x3872cb(0x17e)][_0x3872cb(0x332)]},'unitId':_0x437fef[_0x3872cb(0x185)],'subUnitId':_0x437fef[_0x3872cb(0x3e0)],'showText':'insertCol','highlightColumn':!![]}],_0x3872cb(0xc8));break;}case _univerjs_sheets['AddWorksheetMergeMutation']['id']:{const _0x2e4f40=_0x83d4d9;_0x495013(_0x2e4f40[_0x3872cb(0x161)][_0x3872cb(0x36a)](_0x4d983d=>({'range':_0x4d983d,'unitId':_0x2e4f40[_0x3872cb(0x185)],'subUnitId':_0x2e4f40[_0x3872cb(0x3e0)],'showText':_0x3872cb(0x138)})),'insert');break;}case _univerjs_sheets[_0x3872cb(0x1b3)]['id']:{const _0x2ed489=_0x83d4d9;_0x495013(Object[_0x3872cb(0x23c)](_0x2ed489[_0x3872cb(0x23c)])[_0x3872cb(0x36a)](_0x294d19=>_0x294d19[_0x3872cb(0x161)][_0x3872cb(0x36a)](_0x40ad92=>({'range':_0x40ad92,'unitId':_0x2ed489['unitId'],'subUnitId':_0x2ed489[_0x3872cb(0x3e0)],'showText':_0x3872cb(0x212)})))['flat'](),_0x3872cb(0xc8));break;}case _univerjs_sheets[_0x3872cb(0x1a7)]['id']:{const _0x2e601d=_0x83d4d9;_0x495013(_0x2e601d[_0x3872cb(0x161)][_0x3872cb(0x36a)](_0x361a5f=>({'range':_0x361a5f,'unitId':_0x2e601d[_0x3872cb(0x185)],'subUnitId':_0x2e601d[_0x3872cb(0x3e0)],'showText':_0x3872cb(0x35a)})),'delete');break;}case _univerjs_sheets['RemoveNumfmtMutation']['id']:{const _0x1c9acb=_0x83d4d9;_0x495013(_0x1c9acb['ranges']['map'](_0xae3bce=>({'range':_0xae3bce,'unitId':_0x1c9acb[_0x3872cb(0x185)],'subUnitId':_0x1c9acb['subUnitId'],'showText':'removeNumfmt'})),_0x3872cb(0x200));break;}case _univerjs_sheets[_0x3872cb(0x26e)]['id']:{const _0x5a0c9d=_0x83d4d9;_0x495013([{'range':{..._0x5a0c9d[_0x3872cb(0x1c6)],'rangeType':_univerjs_core[_0x3872cb(0x17e)][_0x3872cb(0x222)]},'unitId':_0x5a0c9d[_0x3872cb(0x185)],'subUnitId':_0x5a0c9d['subUnitId'],'showText':_0x3872cb(0x29f)}],_0x3872cb(0x200)),_0x495013([{'range':{..._0x5a0c9d[_0x3872cb(0x217)],'rangeType':_univerjs_core['RANGE_TYPE']['ROW']},'unitId':_0x5a0c9d['unitId'],'subUnitId':_0x5a0c9d[_0x3872cb(0x3e0)],'showText':'moveRows'}],_0x3872cb(0xc8));break;}case _univerjs_sheets[_0x3872cb(0x2e4)]['id']:{const _0x9a6648=_0x83d4d9;_0x495013([{'range':{..._0x9a6648[_0x3872cb(0x1c6)],'rangeType':_univerjs_core['RANGE_TYPE'][_0x3872cb(0x332)]},'unitId':_0x9a6648[_0x3872cb(0x185)],'subUnitId':_0x9a6648[_0x3872cb(0x3e0)],'showText':'moveCols'}],_0x3872cb(0x200)),_0x495013([{'range':{..._0x9a6648[_0x3872cb(0x217)],'rangeType':_univerjs_core[_0x3872cb(0x17e)][_0x3872cb(0x332)]},'unitId':_0x9a6648[_0x3872cb(0x185)],'subUnitId':_0x9a6648[_0x3872cb(0x3e0)],'showText':_0x3872cb(0x2ec)}],_0x3872cb(0xc8));break;}case _univerjs_sheets[_0x3872cb(0x334)]['id']:{const _0x508c3c=_0x83d4d9;_0x495013(_0x508c3c['ranges'][_0x3872cb(0x36a)](_0xd8b7ca=>({'range':{..._0xd8b7ca,'rangeType':_univerjs_core[_0x3872cb(0x17e)][_0x3872cb(0x222)]},'unitId':_0x508c3c[_0x3872cb(0x185)],'subUnitId':_0x508c3c[_0x3872cb(0x3e0)],'showText':'showRow','highlightRow':!![]})),_0x3872cb(0x286));break;}case _univerjs_sheets[_0x3872cb(0x33a)]['id']:{const _0x9aa051=_0x83d4d9;if(_0x9aa051['rowData']&&_0x9aa051[_0x3872cb(0x3e0)])Object['keys'](_0x9aa051[_0x3872cb(0x2a0)])[_0x3872cb(0x36a)](Number)[_0x3872cb(0x1e8)](_0x5bf929=>{const _0x4b5a2e=_0x3872cb;_0x495013([{'range':{'startRow':_0x5bf929,'endRow':_0x5bf929,'startColumn':NaN,'endColumn':NaN,'rangeType':_univerjs_core[_0x4b5a2e(0x17e)][_0x4b5a2e(0x222)]},'unitId':_0x9aa051[_0x4b5a2e(0x185)],'subUnitId':_0x9aa051['subUnitId'],'showText':'setRowData','highlightRow':!![]}],_0x4b5a2e(0x286));});break;}case _univerjs_sheets[_0x3872cb(0x3be)]['id']:{const _0x43fdc2=_0x83d4d9;_0x495013(_0x43fdc2['ranges'][_0x3872cb(0x36a)](_0x848986=>({'range':{..._0x848986,'rangeType':_univerjs_core['RANGE_TYPE'][_0x3872cb(0x332)]},'unitId':_0x43fdc2[_0x3872cb(0x185)],'subUnitId':_0x43fdc2[_0x3872cb(0x3e0)],'showText':_0x3872cb(0x414),'highlightColumn':!![]})),_0x3872cb(0x286));break;}case _univerjs_sheets['SetColDataMutation']['id']:{const _0x25a373=_0x83d4d9;if(_0x25a373[_0x3872cb(0x331)]&&_0x25a373[_0x3872cb(0x3e0)])Object[_0x3872cb(0x148)](_0x25a373[_0x3872cb(0x331)])[_0x3872cb(0x36a)](Number)[_0x3872cb(0x1e8)](_0x25184f=>{const _0x6c9b59=_0x3872cb;_0x495013([{'range':{'startRow':NaN,'endRow':NaN,'startColumn':_0x25184f,'endColumn':_0x25184f,'rangeType':_univerjs_core[_0x6c9b59(0x17e)][_0x6c9b59(0x332)]},'unitId':_0x25a373['unitId'],'subUnitId':_0x25a373[_0x6c9b59(0x3e0)],'showText':_0x6c9b59(0x369),'highlightColumn':!![]}],'update');});break;}case _univerjs_sheets[_0x3872cb(0x12f)]['id']:{const _0x4a5a08=_0x83d4d9;_0x495013(_0x4a5a08[_0x3872cb(0x28f)]?matrixPrimitiveToRanges(_0x4a5a08[_0x3872cb(0x28f)])[_0x3872cb(0x36a)](_0x585766=>({'range':_0x585766,'unitId':_0x4a5a08['unitId'],'subUnitId':_0x4a5a08[_0x3872cb(0x3e0)],'showText':_0x3872cb(0x405)})):[],_0x3872cb(0x286));break;}case _univerjs_sheets[_0x3872cb(0x278)]['id']:{const _0x110c9c=_0x1072c9[_0x3872cb(0x112)];_0x495013([{'range':matrixPrimitiveToDataRange(_0x110c9c[_0x3872cb(0x2e1)][_0x3872cb(0x3a1)]),'unitId':_0x110c9c[_0x3872cb(0x185)],'subUnitId':_0x110c9c[_0x3872cb(0x2e1)][_0x3872cb(0x3e0)],'showText':_0x3872cb(0x124)}],'delete'),_0x495013([{'range':matrixPrimitiveToDataRange(_0x110c9c['to']['value']),'unitId':_0x110c9c[_0x3872cb(0x185)],'subUnitId':_0x110c9c['to'][_0x3872cb(0x3e0)],'showText':'moveRange'}],_0x3872cb(0xc8));break;}case _univerjs_sheets['ReorderRangeMutation']['id']:{const _0x55ca95=_0x83d4d9;_0x495013([{'range':_0x55ca95[_0x3872cb(0x149)],'unitId':_0x55ca95[_0x3872cb(0x185)],'subUnitId':_0x55ca95[_0x3872cb(0x3e0)]}],_0x3872cb(0x286));break;}case _univerjs_sheets['SetWorksheetRowHeightMutation']['id']:{const _0x1ede5d=_0x83d4d9;if(_0x1ede5d[_0x3872cb(0x161)]&&_0x1ede5d['ranges'][_0x3872cb(0x2d2)]>0x0&&_0x1ede5d[_0x3872cb(0x3e0)])_0x495013(_0x1ede5d[_0x3872cb(0x161)][_0x3872cb(0x36a)](_0x1b6302=>({'range':_0x1b6302,'unitId':_0x1ede5d[_0x3872cb(0x185)],'subUnitId':_0x1ede5d['subUnitId'],'showText':_0x3872cb(0x305)})),_0x3872cb(0x238));break;}case _univerjs_sheets[_0x3872cb(0xe1)]['id']:{const _0x46a1ee=_0x83d4d9;if(_0x46a1ee[_0x3872cb(0x161)]&&_0x46a1ee['ranges']['length']>0x0&&_0x46a1ee[_0x3872cb(0x3e0)])_0x495013(_0x46a1ee[_0x3872cb(0x161)]['map'](_0xfc7273=>({'range':_0xfc7273,'unitId':_0x46a1ee[_0x3872cb(0x185)],'subUnitId':_0x46a1ee[_0x3872cb(0x3e0)],'showText':_0x3872cb(0x258)})),_0x3872cb(0x3eb));break;}case _univerjs_sheets[_0x3872cb(0x3db)]['id']:{const _0x1a69a6=_0x83d4d9;_0x495013(_0x1a69a6[_0x3872cb(0x26f)]['map'](_0x4d763e=>_0x4d763e['ranges']['map'](_0x5c6514=>({'range':_0x5c6514,'unitId':_0x1a69a6[_0x3872cb(0x185)],'subUnitId':_0x1a69a6[_0x3872cb(0x3e0)],'showText':_0x3872cb(0x2ee)})))['flat'](),_0x3872cb(0x2a9));break;}case _univerjs_sheets_conditional_formatting['AddConditionalRuleMutation']['id']:{const _0x450d03=_0x83d4d9;_0x495013(_0x450d03[_0x3872cb(0x1cb)]['ranges']['map'](_0x517dbd=>({'range':_0x517dbd,'unitId':_0x450d03[_0x3872cb(0x185)],'subUnitId':_0x450d03[_0x3872cb(0x3e0)],'showText':_0x3872cb(0x154)})),_0x3872cb(0x2a9));break;}case _univerjs_data_validation[_0x3872cb(0x1e9)]['id']:{const _0x13916a=_0x83d4d9;_0x495013((Array[_0x3872cb(0x208)](_0x13916a['rule'])?_0x13916a['rule']:[_0x13916a[_0x3872cb(0x1cb)]])['map'](_0x2e4546=>_0x2e4546['ranges'][_0x3872cb(0x36a)](_0x322e1b=>({'range':_0x322e1b,'unitId':_0x13916a[_0x3872cb(0x185)],'subUnitId':_0x13916a[_0x3872cb(0x3e0)],'showText':'setDV'})))[_0x3872cb(0x283)](),_0x3872cb(0x2a9));break;}case _univerjs_sheets[_0x3872cb(0x209)]['id']:{const _0x1dd348=_0x83d4d9,_0x24b43e=_0x1dd348[_0x3872cb(0x185)],_0x4fdf5d=_0x1dd348['subUnitId'];if(_0x1dd348[_0x3872cb(0x1b4)]&&_0x1dd348[_0x3872cb(0x1b4)][_0x3872cb(0x2d2)]>0x0&&_0x1dd348[_0x3872cb(0x3e0)])_0x1dd348[_0x3872cb(0x1b4)][_0x3872cb(0x1e8)](_0x2a346f=>{const _0x287a8f=_0x3872cb,_0xe03e4f=this['_rangeProtectionRuleModel'][_0x287a8f(0x175)](_0x24b43e,_0x4fdf5d,_0x2a346f),_0x446cbe=(_0xe03e4f===null||_0xe03e4f===void 0x0?void 0x0:_0xe03e4f[_0x287a8f(0x161)][_0x287a8f(0x36a)](_0xbbd70f=>({'range':_0xbbd70f,'unitId':_0x24b43e,'subUnitId':_0x4fdf5d,'showText':_0x287a8f(0x1f0)})))||[];if(_0x446cbe['length']>0x0)_0x495013(_0x446cbe,'deleteBorder');});break;}case _univerjs_sheets_conditional_formatting['DeleteConditionalRuleMutation']['id']:{const _0x202fc6=_0x83d4d9;if(_0x202fc6[_0x3872cb(0x300)]&&_0x202fc6['subUnitId']){const _0xcdab6d=this[_0x3872cb(0x256)][_0x3872cb(0x175)](_0x202fc6[_0x3872cb(0x185)],_0x202fc6[_0x3872cb(0x3e0)],_0x202fc6[_0x3872cb(0x300)]);if(_0xcdab6d){const _0x37af53=_0xcdab6d[_0x3872cb(0x161)][_0x3872cb(0x36a)](_0x1d0d8c=>({'range':_0x1d0d8c,'unitId':_0x202fc6['unitId'],'subUnitId':_0x202fc6[_0x3872cb(0x3e0)],'showText':'deleteCF'}));if(_0x37af53[_0x3872cb(0x2d2)]>0x0)_0x495013(_0x37af53,'deleteBorder');}}break;}case _univerjs_data_validation[_0x3872cb(0x425)]['id']:{const _0x2c5d55=_0x83d4d9,_0x31963b=Array['isArray'](_0x2c5d55[_0x3872cb(0xfb)])?_0x2c5d55['ruleId']:[_0x2c5d55['ruleId']];if(_0x31963b[_0x3872cb(0x2d2)]>0x0&&_0x2c5d55['subUnitId'])_0x31963b[_0x3872cb(0x1e8)](_0x4022d1=>{const _0xadeb34=_0x3872cb,_0xd6f303=this[_0xadeb34(0x245)][_0xadeb34(0x380)](_0x2c5d55[_0xadeb34(0x185)],_0x2c5d55[_0xadeb34(0x3e0)],_0x4022d1),_0xe81449=(_0xd6f303===null||_0xd6f303===void 0x0?void 0x0:_0xd6f303[_0xadeb34(0x161)][_0xadeb34(0x36a)](_0x2ba7b0=>({'range':_0x2ba7b0,'unitId':_0x2c5d55['unitId'],'subUnitId':_0x2c5d55[_0xadeb34(0x3e0)],'showText':_0xadeb34(0x2ea)})))||[];if(_0xe81449[_0xadeb34(0x2d2)]>0x0)_0x495013(_0xe81449,_0xadeb34(0x16f));});break;}case _univerjs_sheets[_0x3872cb(0x30e)]['id']:{const _0x34421b=_0x83d4d9;_0x495013(_0x34421b[_0x3872cb(0x1cb)][_0x3872cb(0x161)][_0x3872cb(0x36a)](_0x6f91ea=>({'range':_0x6f91ea,'unitId':_0x34421b['unitId'],'subUnitId':_0x34421b['subUnitId'],'showText':'setRangeProtection'})),_0x3872cb(0x219));break;}case _univerjs_sheets[_0x3872cb(0x183)]['id']:{const _0x22a68e=_0x83d4d9;_0x495013([{'range':_0x22a68e[_0x3872cb(0x149)],'unitId':_0x22a68e[_0x3872cb(0x185)],'subUnitId':_0x22a68e[_0x3872cb(0x3e0)],'showText':_0x3872cb(0x37c)}],_0x3872cb(0x219));break;}case _univerjs_sheets[_0x3872cb(0x2df)]['id']:{const _0x5555d0=_0x83d4d9;_0x495013([{'range':_0x5555d0[_0x3872cb(0x149)],'unitId':_0x5555d0[_0x3872cb(0x185)],'subUnitId':_0x5555d0[_0x3872cb(0x3e0)],'showText':'deleteWorksheetRangeTheme'}],_0x3872cb(0x219));break;}case _univerjs_sheets_conditional_formatting[_0x3872cb(0x385)]['id']:{const _0x3d80c5=_0x83d4d9;_0x495013(_0x3d80c5[_0x3872cb(0x1cb)][_0x3872cb(0x161)]['map'](_0x2c2e77=>({'range':_0x2c2e77,'unitId':_0x3d80c5[_0x3872cb(0x185)],'subUnitId':_0x3d80c5[_0x3872cb(0x3e0)],'showText':'setCF'})),_0x3872cb(0x219));break;}case _univerjs_sheets_conditional_formatting['MoveConditionalRuleMutation']['id']:{const _0x253c2d=_0x83d4d9,_0x30495a=this[_0x3872cb(0x256)]['getRule'](_0x253c2d[_0x3872cb(0x185)],_0x253c2d[_0x3872cb(0x3e0)],_0x253c2d[_0x3872cb(0x3c5)]['id']),_0xdb0db4=this[_0x3872cb(0x256)][_0x3872cb(0x175)](_0x253c2d['unitId'],_0x253c2d[_0x3872cb(0x3e0)],_0x253c2d['end']['id']);if(_0x30495a)_0x495013(_0x30495a[_0x3872cb(0x161)][_0x3872cb(0x36a)](_0xa66034=>({'range':_0xa66034,'unitId':_0x253c2d['unitId'],'subUnitId':_0x253c2d[_0x3872cb(0x3e0)],'showText':_0x3872cb(0x377)})),_0x3872cb(0x16f));if(_0xdb0db4)_0x495013(_0xdb0db4['ranges'][_0x3872cb(0x36a)](_0x3bcc30=>({'range':_0x3bcc30,'unitId':_0x253c2d[_0x3872cb(0x185)],'subUnitId':_0x253c2d[_0x3872cb(0x3e0)],'showText':'moveCF'})),_0x3872cb(0x2a9));break;}case _univerjs_sheets_filter[_0x3872cb(0x31a)]['id']:{const _0x3fb021=_0x83d4d9;_0x495013([{'range':_0x3fb021['range'],'unitId':_0x3fb021[_0x3872cb(0x185)],'subUnitId':_0x3fb021['subUnitId'],'showText':_0x3872cb(0xc9)}],_0x3872cb(0x219));break;}case _univerjs_sheets_filter[_0x3872cb(0x115)]['id']:{const _0x19ecea=_0x83d4d9,_0x57b5a4=this[_0x3872cb(0x16a)]['getFilterModel'](_0x19ecea[_0x3872cb(0x185)],_0x19ecea[_0x3872cb(0x3e0)]);if(_0x57b5a4){const _0x1a7863=_0x57b5a4['getRange']();_0x495013(_0x1a7863?[{'range':_0x1a7863,'unitId':_0x19ecea[_0x3872cb(0x185)],'subUnitId':_0x19ecea[_0x3872cb(0x3e0)],'showText':_0x3872cb(0x186)}]:[],_0x3872cb(0x219));}break;}case _univerjs_sheets_filter['RemoveSheetsFilterMutation']['id']:{const _0x861d6b=_0x83d4d9,_0x254bb6=this[_0x3872cb(0x16a)][_0x3872cb(0x204)](_0x861d6b[_0x3872cb(0x185)],_0x861d6b[_0x3872cb(0x3e0)]);if(_0x254bb6){const _0x88b78f=_0x254bb6[_0x3872cb(0x3ab)]();_0x495013(_0x88b78f?[{'range':_0x88b78f,'unitId':_0x861d6b[_0x3872cb(0x185)],'subUnitId':_0x861d6b[_0x3872cb(0x3e0)],'showText':_0x3872cb(0x174)}]:[],'updateBorder');}break;}case _univerjs_sheets_filter['ReCalcSheetsFilterMutation']['id']:{const _0x3426da=_0x83d4d9,_0x145be0=this['_sheetsFilterService'][_0x3872cb(0x204)](_0x3426da['unitId'],_0x3426da[_0x3872cb(0x3e0)]);if(_0x145be0){const _0x154d96=_0x145be0[_0x3872cb(0x3ab)]();_0x495013(_0x154d96?[{'range':_0x154d96,'unitId':_0x3426da[_0x3872cb(0x185)],'subUnitId':_0x3426da[_0x3872cb(0x3e0)],'showText':'removeFilter'}]:[],'updateBorder');}break;}case _univerjs_data_validation[_0x3872cb(0x12d)]['id']:{const _0x1ad024=_0x83d4d9,_0xe501ae=this[_0x3872cb(0x245)][_0x3872cb(0x380)](_0x1ad024[_0x3872cb(0x185)],_0x1ad024['subUnitId'],_0x1ad024[_0x3872cb(0xfb)]);if(_0xe501ae)_0x495013(_0xe501ae[_0x3872cb(0x161)][_0x3872cb(0x36a)](_0x4d178a=>({'range':_0x4d178a,'unitId':_0x1ad024['unitId'],'subUnitId':_0x1ad024[_0x3872cb(0x3e0)],'showText':_0x3872cb(0x2da)})),_0x3872cb(0x219));break;}case _univerjs_pro_sheets_sparkline[_0x3872cb(0x2d5)]['id']:{const _0x551686=_0x83d4d9,_0x307f38=_0x551686[_0x3872cb(0x185)],_0x47f0eb=_0x551686[_0x3872cb(0x3e0)],_0x27dd0a=_0x551686[_0x3872cb(0x317)];if(_0x551686[_0x3872cb(0x317)]&&_0x47f0eb)Object[_0x3872cb(0x148)](_0x551686[_0x3872cb(0x317)])[_0x3872cb(0x1e8)](_0x4282e4=>{const _0x3b7543=_0x3872cb,_0x548415=_0x27dd0a[_0x4282e4];_0x495013(matrixPrimitiveToRanges(_0x548415[_0x3b7543(0x1da)])['map'](_0x1bb57c=>({'range':_0x1bb57c,'unitId':_0x307f38,'subUnitId':_0x47f0eb,'showText':_0x3b7543(0x366)})),_0x3b7543(0xc8));});break;}case _univerjs_pro_sheets_sparkline['SetSheetSparklineMutation']['id']:{const _0x5f4326=_0x83d4d9;if(_0x5f4326[_0x3872cb(0x2ab)]&&_0x5f4326[_0x3872cb(0x2ab)][_0x3872cb(0x2d2)]>0x0&&_0x5f4326['subUnitId'])_0x5f4326[_0x3872cb(0x2ab)][_0x3872cb(0x1e8)](_0x524719=>{const _0x594c34=_0x3872cb,_0x319075=this[_0x594c34(0xef)][_0x594c34(0x12e)](_0x5f4326[_0x594c34(0x185)],_0x5f4326[_0x594c34(0x3e0)],_0x524719);if(_0x319075)_0x495013(matrixPrimitiveToRanges(_0x319075['sparklines'][_0x594c34(0x171)]())[_0x594c34(0x36a)](_0x4bf1f1=>({'range':_0x4bf1f1,'unitId':_0x5f4326[_0x594c34(0x185)],'subUnitId':_0x5f4326[_0x594c34(0x3e0)],'showText':_0x594c34(0x271)})),'update');});break;}case _univerjs_pro_sheets_sparkline[_0x3872cb(0x17c)]['id']:{const _0x3fd1a8=_0x83d4d9;if(_0x3fd1a8['groupIds']&&_0x3fd1a8[_0x3872cb(0x2ab)][_0x3872cb(0x2d2)]>0x0&&_0x3fd1a8[_0x3872cb(0x3e0)])_0x3fd1a8[_0x3872cb(0x2ab)][_0x3872cb(0x1e8)](_0x31d807=>{const _0x5af0ed=_0x3872cb,_0xf5c7e6=this['_sparklineDataSourceModel'][_0x5af0ed(0x12e)](_0x3fd1a8[_0x5af0ed(0x185)],_0x3fd1a8[_0x5af0ed(0x3e0)],_0x31d807);if(_0xf5c7e6)_0x495013(matrixPrimitiveToRanges(_0xf5c7e6[_0x5af0ed(0x1da)][_0x5af0ed(0x171)]())[_0x5af0ed(0x36a)](_0x538e88=>({'range':_0x538e88,'unitId':_0x3fd1a8[_0x5af0ed(0x185)],'subUnitId':_0x3fd1a8[_0x5af0ed(0x3e0)],'showText':_0x5af0ed(0xda)})),_0x5af0ed(0x200));});break;}case _univerjs_sheets_table[_0x3872cb(0x398)]['id']:{const _0x33cf97=_0x83d4d9;if(_0x33cf97[_0x3872cb(0x130)]&&_0x33cf97[_0x3872cb(0x3e0)])_0x495013([{'range':_0x33cf97[_0x3872cb(0x149)],'unitId':_0x33cf97[_0x3872cb(0x185)],'subUnitId':_0x33cf97[_0x3872cb(0x3e0)],'showText':'addTable'}],_0x3872cb(0xc8));break;}case _univerjs_sheets_table[_0x3872cb(0x167)]['id']:{const _0x408ffb=_0x83d4d9;if(_0x408ffb[_0x3872cb(0x130)]&&_0x408ffb['subUnitId']){var _0x56ca5e;const _0x2e039a=(_0x56ca5e=this[_0x3872cb(0x113)]['getTableInfo'](_0x408ffb[_0x3872cb(0x185)],_0x408ffb[_0x3872cb(0x130)]))===null||_0x56ca5e===void 0x0?void 0x0:_0x56ca5e['range'];if(_0x2e039a)_0x495013([{'range':_0x2e039a,'unitId':_0x408ffb['unitId'],'subUnitId':_0x408ffb[_0x3872cb(0x3e0)],'showText':_0x3872cb(0x28d)}],'delete');}break;}case _univerjs_sheets_table[_0x3872cb(0x309)]['id']:{const _0x19b202=_0x83d4d9;if(_0x19b202[_0x3872cb(0x130)]){const _0x26e243=this[_0x3872cb(0x113)][_0x3872cb(0x14b)](_0x19b202[_0x3872cb(0x185)],_0x19b202[_0x3872cb(0x130)]);_0x26e243&&_0x26e243[_0x3872cb(0x149)]&&_0x26e243[_0x3872cb(0x3e0)]&&(_0xf07718['subUnitIds'][_0x3872cb(0x3e1)](_0x26e243['subUnitId']),_0x495013([{'range':_0x26e243[_0x3872cb(0x149)],'unitId':_0x19b202[_0x3872cb(0x185)],'subUnitId':_0x26e243[_0x3872cb(0x3e0)],'showText':_0x3872cb(0x1d6)}],_0x3872cb(0x286)));}break;}case _univerjs_sheets_table[_0x3872cb(0x33f)]['id']:{const _0x107083=_0x83d4d9;if(_0x107083['tableId']&&_0x107083['subUnitId']){var _0x48d76f;const _0x38d44c=(_0x48d76f=this[_0x3872cb(0x113)]['getTableInfo'](_0x107083['unitId'],_0x107083[_0x3872cb(0x130)]))===null||_0x48d76f===void 0x0?void 0x0:_0x48d76f['range'];if(_0x38d44c)_0x495013([{'range':_0x38d44c,'unitId':_0x107083['unitId'],'subUnitId':_0x107083[_0x3872cb(0x3e0)],'showText':_0x3872cb(0x280)}],_0x3872cb(0x286));}break;}case _univerjs_pro_sheets_pivot[_0x3872cb(0x264)]['id']:{const _0x29ec90=_0x83d4d9;if(_0x29ec90['pivotTableId']&&_0x29ec90['subUnitId']){var _0x48f14e;const _0x5b203e=(_0x48f14e=this[_0x3872cb(0x316)][_0x3872cb(0x15b)](_0x29ec90['unitId'],_0x29ec90[_0x3872cb(0x3e0)],_0x29ec90[_0x3872cb(0x3f4)]))===null||_0x48f14e===void 0x0?void 0x0:_0x48f14e['rangeInfo'];if(_0x5b203e)_0x495013((0x0,_univerjs_pro_sheets_pivot[_0x3872cb(0x213)])(_0x5b203e)[_0x3872cb(0x36a)](_0x667c89=>({'range':_0x667c89,'unitId':_0x29ec90[_0x3872cb(0x185)],'subUnitId':_0x29ec90[_0x3872cb(0x3e0)],'showText':'addPivotTable'})),_0x3872cb(0xc8));}break;}case _univerjs_pro_sheets_pivot[_0x3872cb(0x2ba)]['id']:{const _0x2cd003=_0x83d4d9;if(_0x2cd003[_0x3872cb(0x3f4)]&&_0x2cd003['subUnitId']){var _0x1649a9;const _0x899fff=(_0x1649a9=this[_0x3872cb(0x316)][_0x3872cb(0x15b)](_0x2cd003[_0x3872cb(0x185)],_0x2cd003[_0x3872cb(0x3e0)],_0x2cd003['pivotTableId']))===null||_0x1649a9===void 0x0?void 0x0:_0x1649a9[_0x3872cb(0x327)];if(_0x899fff)_0x495013((0x0,_univerjs_pro_sheets_pivot[_0x3872cb(0x213)])(_0x899fff)[_0x3872cb(0x36a)](_0x242249=>({'range':_0x242249,'unitId':_0x2cd003[_0x3872cb(0x185)],'subUnitId':_0x2cd003['subUnitId'],'showText':'removePivotTable'})),_0x3872cb(0x200));}break;}case _univerjs_pro_sheets_pivot['SetPivotOptionMutation']['id']:case _univerjs_pro_sheets_pivot[_0x3872cb(0x272)]['id']:case _univerjs_pro_sheets_pivot['UpdatePivotTableSourceRangeMutation']['id']:case _univerjs_pro_sheets_pivot[_0x3872cb(0x10e)]['id']:case _univerjs_pro_sheets_pivot[_0x3872cb(0xeb)]['id']:case _univerjs_pro_sheets_pivot['RenamePivotFieldMutation']['id']:case _univerjs_pro_sheets_pivot[_0x3872cb(0x2cb)]['id']:case _univerjs_pro_sheets_pivot['UpdateValuePositionMutation']['id']:case _univerjs_pro_sheets_pivot[_0x3872cb(0x203)]['id']:case _univerjs_pro_sheets_pivot[_0x3872cb(0x2f7)]['id']:case _univerjs_pro_sheets_pivot[_0x3872cb(0x37b)]['id']:case _univerjs_pro_sheets_pivot[_0x3872cb(0x20e)]['id']:case _univerjs_pro_sheets_pivot['SetPivotCollapseMutation']['id']:case _univerjs_pro_sheets_pivot[_0x3872cb(0x3d2)]['id']:case _univerjs_pro_sheets_pivot['SetPivotSubtotalTypeMutation']['id']:{const _0x56359f=_0x83d4d9;let _0x99d6c6=_0x3872cb(0x1b6);if(_0x1df069===_univerjs_pro_sheets_pivot[_0x3872cb(0x420)]['id'])_0x99d6c6='setPivotOption';else{if(_0x1df069===_univerjs_pro_sheets_pivot[_0x3872cb(0x272)]['id'])_0x99d6c6=_0x3872cb(0x158);else{if(_0x1df069===_univerjs_pro_sheets_pivot[_0x3872cb(0x214)]['id'])_0x99d6c6='updatePivotSource';else{if(_0x1df069===_univerjs_pro_sheets_pivot['AddPivotFieldMutation']['id'])_0x99d6c6=_0x3872cb(0x10b);else{if(_0x1df069===_univerjs_pro_sheets_pivot[_0x3872cb(0xeb)]['id'])_0x99d6c6='removePivotField';else{if(_0x1df069===_univerjs_pro_sheets_pivot[_0x3872cb(0x13c)]['id'])_0x99d6c6=_0x3872cb(0x358);else{if(_0x1df069===_univerjs_pro_sheets_pivot[_0x3872cb(0x2cb)]['id'])_0x99d6c6='updateFieldPosition';else{if(_0x1df069===_univerjs_pro_sheets_pivot[_0x3872cb(0x25e)]['id'])_0x99d6c6=_0x3872cb(0x17f);else{if(_0x1df069===_univerjs_pro_sheets_pivot[_0x3872cb(0x203)]['id'])_0x99d6c6='updatePivotFieldSource';else{if(_0x1df069===_univerjs_pro_sheets_pivot[_0x3872cb(0x2f7)]['id'])_0x99d6c6=_0x3872cb(0x3ba);else{if(_0x1df069===_univerjs_pro_sheets_pivot['SetPivotValueFilterMutation']['id'])_0x99d6c6=_0x3872cb(0x155);else{if(_0x1df069===_univerjs_pro_sheets_pivot['SetPivotSortMutation']['id'])_0x99d6c6='setPivotSort';else{if(_0x1df069===_univerjs_pro_sheets_pivot[_0x3872cb(0x2b3)]['id'])_0x99d6c6='setPivotCollapse';else{if(_0x1df069===_univerjs_pro_sheets_pivot[_0x3872cb(0x12b)]['id'])_0x99d6c6=_0x3872cb(0x382);else{if(_0x1df069===_univerjs_pro_sheets_pivot[_0x3872cb(0x3d2)]['id'])_0x99d6c6='setPivotFieldFormat';}}}}}}}}}}}}}}if(_0x56359f[_0x3872cb(0x3f4)]&&_0x56359f['subUnitId']){var _0x43d5c;const _0x59dd2e=(_0x43d5c=this[_0x3872cb(0x316)][_0x3872cb(0x15b)](_0x56359f[_0x3872cb(0x185)],_0x56359f[_0x3872cb(0x3e0)],_0x56359f['pivotTableId']))===null||_0x43d5c===void 0x0?void 0x0:_0x43d5c['rangeInfo'];if(_0x59dd2e)_0x495013((0x0,_univerjs_pro_sheets_pivot[_0x3872cb(0x213)])(_0x59dd2e)[_0x3872cb(0x36a)](_0x20872d=>({'range':_0x20872d,'unitId':_0x56359f['unitId'],'subUnitId':_0x56359f['subUnitId'],'showText':_0x99d6c6})),_0x3872cb(0x286));}break;}case _univerjs_pro_sheets_chart[_0x3872cb(0x35d)]['id']:{const _0x30539f=_0x83d4d9;if(_0x30539f[_0x3872cb(0x111)])_0xf07718[_0x3872cb(0x2a4)]['push']({'drawingId':_0x30539f[_0x3872cb(0x111)],'unitId':_0x30539f['unitId'],'subUnitId':_0x30539f['subUnitId'],'showText':_0x14923a});break;}case _univerjs_pro_sheets_chart[_0x3872cb(0x2fd)]['id']:{const _0xc59c3d=_0x83d4d9;if(_0xc59c3d['chartId'])_0xf07718[_0x3872cb(0x2a7)][_0x3872cb(0x3e1)]({'drawingId':_0xc59c3d[_0x3872cb(0x111)],'unitId':_0xc59c3d[_0x3872cb(0x185)],'subUnitId':_0xc59c3d[_0x3872cb(0x3e0)],'showText':_0x14923a});break;}case _univerjs_pro_sheets_chart[_0x3872cb(0x2cf)]['id']:{const _0x19c926=_0x83d4d9;if(_0x19c926['chartModelId']){const _0x479293=this[_0x3872cb(0x250)][_0x3872cb(0x128)](_0x19c926[_0x3872cb(0x185)],_0x19c926[_0x3872cb(0x3ee)]);_0x479293&&(_0xf07718[_0x3872cb(0x410)][_0x3872cb(0x3e1)](_0x479293),_0xf07718[_0x3872cb(0xc7)][_0x3872cb(0x3e1)]({'drawingId':_0x19c926[_0x3872cb(0x3ee)],'unitId':_0x19c926[_0x3872cb(0x185)],'subUnitId':_0x479293,'showText':_0x14923a}));}break;}case _univerjs_pro_sheets_chart[_0x3872cb(0x116)]['id']:{const _0x450fea=_0x83d4d9;if(_0x450fea['chartModelId']){const _0xcb21=this[_0x3872cb(0x250)][_0x3872cb(0x128)](_0x450fea[_0x3872cb(0x185)],_0x450fea[_0x3872cb(0x3ee)]);_0xcb21&&(_0xf07718[_0x3872cb(0x410)]['push'](_0xcb21),_0xf07718['updateDrawings']['push']({'drawingId':_0x450fea[_0x3872cb(0x3ee)],'unitId':_0x450fea['unitId'],'subUnitId':_0xcb21,'showText':_0x14923a}));}break;}case _univerjs_pro_sheets_shape[_0x3872cb(0x2e6)]['id']:{const _0x9c50c6=_0x83d4d9;if(_0x9c50c6['shapeId'])_0xf07718[_0x3872cb(0x2a4)][_0x3872cb(0x3e1)]({'drawingId':_0x9c50c6[_0x3872cb(0x3f6)],'unitId':_0x9c50c6['unitId'],'subUnitId':_0x9c50c6['subUnitId'],'showText':_0x14923a});break;}case _univerjs_pro_sheets_shape[_0x3872cb(0xfc)]['id']:{const _0x36be72=_0x83d4d9;if(_0x36be72[_0x3872cb(0x3f6)])_0xf07718[_0x3872cb(0x2a7)][_0x3872cb(0x3e1)]({'drawingId':_0x36be72['shapeId'],'unitId':_0x36be72[_0x3872cb(0x185)],'subUnitId':_0x36be72[_0x3872cb(0x3e0)],'showText':_0x14923a});break;}case _univerjs_pro_sheets_shape[_0x3872cb(0xf7)]['id']:case _univerjs_pro_sheets_shape['UpdateSheetsShapeTypeMutation']['id']:{const _0x453c1c=_0x83d4d9;if(_0x453c1c[_0x3872cb(0x3f6)])_0xf07718[_0x3872cb(0xc7)][_0x3872cb(0x3e1)]({'drawingId':_0x453c1c[_0x3872cb(0x3f6)],'unitId':_0x453c1c[_0x3872cb(0x185)],'subUnitId':_0x453c1c[_0x3872cb(0x3e0)],'showText':_0x14923a});break;}case _univerjs_sheets_drawing[_0x3872cb(0x1b0)]['id']:{const _0x593209=_0x83d4d9,_0x563af7=_0x593209['objects'],_0x2466eb=_0x593209[_0x3872cb(0x1b8)],_0xa7887d=_0x2466eb!==_univerjs_sheets_drawing[_0x3872cb(0x27f)]['INSERT']&&_0x2466eb!==_univerjs_sheets_drawing[_0x3872cb(0x27f)]['REMOVE'],_0x137dab=_0x2466eb===_univerjs_sheets_drawing['DrawingApplyType']['INSERT'],_0x3ce69e=_0x2466eb===_univerjs_sheets_drawing['DrawingApplyType'][_0x3872cb(0x259)];let _0x26862a=_0x14923a;if(_0x2466eb===_univerjs_sheets_drawing[_0x3872cb(0x27f)][_0x3872cb(0x394)])_0x26862a=this[_0x3872cb(0xe9)]['t'](_0x3872cb(0x1a9));else{if(_0x2466eb===_univerjs_sheets_drawing[_0x3872cb(0x27f)][_0x3872cb(0x259)])_0x26862a=this[_0x3872cb(0xe9)]['t']('editHistory.action.removeDrawing');}if(Array['isArray'](_0x563af7))_0x563af7['forEach'](_0x282822=>{const _0x36d6cd=_0x3872cb;if(_0x36d6cd(0x353)in _0x282822&&_0x282822['drawingId']){if(_0xa7887d)_0xf07718[_0x36d6cd(0xc7)]['push']({'drawingId':_0x282822['drawingId'],'unitId':_0x593209[_0x36d6cd(0x185)],'subUnitId':_0x593209[_0x36d6cd(0x3e0)],'showText':_0x26862a});else{if(_0x137dab)_0xf07718[_0x36d6cd(0x2a4)][_0x36d6cd(0x3e1)]({'drawingId':_0x282822['drawingId'],'unitId':_0x593209[_0x36d6cd(0x185)],'subUnitId':_0x593209[_0x36d6cd(0x3e0)],'showText':_0x26862a});else{if(_0x3ce69e)_0xf07718['deleteDrawings']['push']({'drawingId':_0x282822['drawingId'],'unitId':_0x593209['unitId'],'subUnitId':_0x593209['subUnitId'],'showText':_0x26862a});}}}else{if('parent'in _0x282822&&_0x36d6cd(0x277)in _0x282822){var _0x1dead2,_0x47e90b;if((_0x1dead2=_0x282822[_0x36d6cd(0x361)])===null||_0x1dead2===void 0x0?void 0x0:_0x1dead2[_0x36d6cd(0x353)]){if(_0xa7887d)_0xf07718[_0x36d6cd(0xc7)][_0x36d6cd(0x3e1)]({'drawingId':_0x282822[_0x36d6cd(0x361)]['drawingId'],'unitId':_0x593209['unitId'],'subUnitId':_0x593209[_0x36d6cd(0x3e0)],'showText':_0x26862a});else{if(_0x137dab)_0xf07718[_0x36d6cd(0x2a4)][_0x36d6cd(0x3e1)]({'drawingId':_0x282822[_0x36d6cd(0x361)][_0x36d6cd(0x353)],'unitId':_0x593209[_0x36d6cd(0x185)],'subUnitId':_0x593209[_0x36d6cd(0x3e0)],'showText':_0x26862a});else{if(_0x3ce69e)_0xf07718['deleteDrawings']['push']({'drawingId':_0x282822[_0x36d6cd(0x361)][_0x36d6cd(0x353)],'unitId':_0x593209[_0x36d6cd(0x185)],'subUnitId':_0x593209[_0x36d6cd(0x3e0)],'showText':_0x26862a});}}}(_0x47e90b=_0x282822[_0x36d6cd(0x277)])===null||_0x47e90b===void 0x0||_0x47e90b[_0x36d6cd(0x1e8)](_0x413955=>{const _0x56eb74=_0x36d6cd;if(_0x413955[_0x56eb74(0x353)]){if(_0xa7887d)_0xf07718[_0x56eb74(0xc7)][_0x56eb74(0x3e1)]({'drawingId':_0x413955[_0x56eb74(0x353)],'unitId':_0x593209[_0x56eb74(0x185)],'subUnitId':_0x593209[_0x56eb74(0x3e0)],'showText':_0x26862a});else{if(_0x137dab)_0xf07718['insertDrawings'][_0x56eb74(0x3e1)]({'drawingId':_0x413955[_0x56eb74(0x353)],'unitId':_0x593209[_0x56eb74(0x185)],'subUnitId':_0x593209[_0x56eb74(0x3e0)],'showText':_0x26862a});else{if(_0x3ce69e)_0xf07718[_0x56eb74(0x2a7)]['push']({'drawingId':_0x413955[_0x56eb74(0x353)],'unitId':_0x593209[_0x56eb74(0x185)],'subUnitId':_0x593209[_0x56eb74(0x3e0)],'showText':_0x26862a});}}}});}}});else{if(_0x563af7&&typeof _0x563af7===_0x3872cb(0x3d3)){if('drawingIds'in _0x563af7&&Array[_0x3872cb(0x208)](_0x563af7[_0x3872cb(0x315)]))_0x563af7[_0x3872cb(0x315)]['forEach'](_0x246ce3=>{const _0x3a0ae1=_0x3872cb;if(_0xa7887d)_0xf07718[_0x3a0ae1(0xc7)][_0x3a0ae1(0x3e1)]({'drawingId':_0x246ce3,'unitId':_0x593209[_0x3a0ae1(0x185)],'subUnitId':_0x593209[_0x3a0ae1(0x3e0)],'showText':_0x26862a});else{if(_0x137dab)_0xf07718[_0x3a0ae1(0x2a4)][_0x3a0ae1(0x3e1)]({'drawingId':_0x246ce3,'unitId':_0x593209[_0x3a0ae1(0x185)],'subUnitId':_0x593209['subUnitId'],'showText':_0x26862a});else{if(_0x3ce69e)_0xf07718[_0x3a0ae1(0x2a7)][_0x3a0ae1(0x3e1)]({'drawingId':_0x246ce3,'unitId':_0x593209[_0x3a0ae1(0x185)],'subUnitId':_0x593209['subUnitId'],'showText':_0x26862a});}}});else{if(_0x3872cb(0x361)in _0x563af7&&_0x3872cb(0x277)in _0x563af7){var _0x42e9a3,_0x4f90b5;if((_0x42e9a3=_0x563af7[_0x3872cb(0x361)])===null||_0x42e9a3===void 0x0?void 0x0:_0x42e9a3[_0x3872cb(0x353)]){if(_0xa7887d)_0xf07718['updateDrawings']['push']({'drawingId':_0x563af7[_0x3872cb(0x361)][_0x3872cb(0x353)],'unitId':_0x593209[_0x3872cb(0x185)],'subUnitId':_0x593209[_0x3872cb(0x3e0)],'showText':_0x26862a});else{if(_0x137dab)_0xf07718[_0x3872cb(0x2a4)][_0x3872cb(0x3e1)]({'drawingId':_0x563af7[_0x3872cb(0x361)][_0x3872cb(0x353)],'unitId':_0x593209[_0x3872cb(0x185)],'subUnitId':_0x593209[_0x3872cb(0x3e0)],'showText':_0x26862a});else{if(_0x3ce69e)_0xf07718['deleteDrawings'][_0x3872cb(0x3e1)]({'drawingId':_0x563af7[_0x3872cb(0x361)]['drawingId'],'unitId':_0x593209[_0x3872cb(0x185)],'subUnitId':_0x593209[_0x3872cb(0x3e0)],'showText':_0x26862a});}}}(_0x4f90b5=_0x563af7['children'])===null||_0x4f90b5===void 0x0||_0x4f90b5[_0x3872cb(0x1e8)](_0x3b0946=>{const _0x24330e=_0x3872cb;if(_0x3b0946['drawingId']){if(_0xa7887d)_0xf07718[_0x24330e(0xc7)]['push']({'drawingId':_0x3b0946[_0x24330e(0x353)],'unitId':_0x593209[_0x24330e(0x185)],'subUnitId':_0x593209[_0x24330e(0x3e0)],'showText':_0x26862a});else{if(_0x137dab)_0xf07718['insertDrawings'][_0x24330e(0x3e1)]({'drawingId':_0x3b0946['drawingId'],'unitId':_0x593209[_0x24330e(0x185)],'subUnitId':_0x593209['subUnitId'],'showText':_0x26862a});else{if(_0x3ce69e)_0xf07718[_0x24330e(0x2a7)][_0x24330e(0x3e1)]({'drawingId':_0x3b0946[_0x24330e(0x353)],'unitId':_0x593209[_0x24330e(0x185)],'subUnitId':_0x593209[_0x24330e(0x3e0)],'showText':_0x26862a});}}}});}}}}break;}}return _0xf07718;}[_0x55b227(0x339)](_0xa099b9){const _0x53f2d8=_0x55b227;if(_0xa099b9[_0x53f2d8(0x2d2)]<=0x1)return _0xa099b9;const _0x41d9e0=new Map();return _0xa099b9[_0x53f2d8(0x1e8)](_0x3f3fb7=>{const _0x51adc8=_0x53f2d8,{unitId:_0x1859ce,subUnitId:_0x3f23d9}=_0x3f3fb7,_0x432f13=_0x1859ce+'-'+_0x3f23d9;if(!_0x41d9e0[_0x51adc8(0x1aa)](_0x432f13))_0x41d9e0[_0x51adc8(0x10c)](_0x432f13,[_0x3f3fb7]);else{var _0x5cf1a3;(_0x5cf1a3=_0x41d9e0['get'](_0x432f13))===null||_0x5cf1a3===void 0x0||_0x5cf1a3[_0x51adc8(0x3e1)](_0x3f3fb7);}}),Array[_0x53f2d8(0x2e1)](_0x41d9e0[_0x53f2d8(0x23c)]())['map'](_0x1b97f3=>{const _0x218af8=_0x53f2d8;return new _univerjs_sheets['RangeMergeUtil']()[_0x218af8(0x201)](..._0x1b97f3[_0x218af8(0x36a)](_0xb7314a=>_0xb7314a[_0x218af8(0x149)]))[_0x218af8(0x233)]()[_0x218af8(0x36a)](_0x315a94=>({'range':_0x315a94,'unitId':_0x1b97f3[0x0][_0x218af8(0x185)],'subUnitId':_0x1b97f3[0x0][_0x218af8(0x3e0)],'showText':_0x1b97f3[0x0]['showText'],'highlightRow':_0x1b97f3[0x0][_0x218af8(0x1c3)],'highlightColumn':_0x1b97f3[0x0]['highlightColumn']}));})['flat']();}};VersionDiffService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x55b227(0x242)])(HistoryManagerService)),__decorateParam(0x1,_univerjs_pro_collaboration[_0x55b227(0x38a)]),__decorateParam(0x2,_univerjs_pro_collaboration[_0x55b227(0x352)]),__decorateParam(0x3,(0x0,_univerjs_core[_0x55b227(0x242)])(_univerjs_sheets[_0x55b227(0x1ec)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x55b227(0x242)])(_univerjs_sheets_conditional_formatting[_0x55b227(0x202)])),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_data_validation[_0x55b227(0x1d5)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x55b227(0x242)])(_univerjs_sheets_filter['SheetsFilterService'])),__decorateParam(0x7,(0x0,_univerjs_core[_0x55b227(0x242)])(_univerjs_pro_sheets_sparkline['SparklineDataSourceModel'])),__decorateParam(0x8,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_pivot[_0x55b227(0x24f)])),__decorateParam(0x9,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_table[_0x55b227(0x22d)])),__decorateParam(0xa,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x55b227(0x41c)])),__decorateParam(0xb,(0x0,_univerjs_core[_0x55b227(0x242)])(_univerjs_pro_sheets_chart[_0x55b227(0x2a5)])),__decorateParam(0xc,(0x0,_univerjs_core[_0x55b227(0x242)])(HistoryFetchService))],VersionDiffService);function matrixPrimitiveToDataRange(_0x4bcc22){const _0x1d3f2d=_0x55b227;return new _univerjs_core[(_0x1d3f2d(0x40b))](_0x4bcc22)[_0x1d3f2d(0x125)]();}function matrixPrimitiveToRanges(_0x2f1873){const _0x2c02f6=_0x55b227,_0x58db1d=new _univerjs_core[(_0x2c02f6(0x40b))](_0x2f1873),_0x4f35e7=new _univerjs_core['ObjectMatrix']();return _0x58db1d[_0x2c02f6(0x2dd)]((_0x210b07,_0x59c5f4)=>{_0x4f35e7['setValue'](_0x210b07,_0x59c5f4,0x1);}),(0x0,_univerjs_sheets[_0x2c02f6(0x1ff)])(_0x4f35e7);}const SHEET_HISTORY_ARROW_BORDER_WIDTH=0x4,ARROW_HEAD_SIZE=0xc,ARROW_LABEL_HEIGHT=0x14,ARROW_LABEL_MAX_WIDTH=0xc8,ARROW_LABEL_TEXT_PADDING_LR=0x4,ARROW_LABEL_TEXT_PADDING_TB=0x5;var SheetHistoryArrowShape=class extends _univerjs_engine_render[_0x55b227(0x1ef)]{constructor(_0x5ef238,_0x11e081){const _0x2977d1=_0x55b227;super(_0x5ef238,_0x11e081),_defineProperty(this,_0x2977d1(0x30d),void 0x0),_defineProperty(this,_0x2977d1(0x330),void 0x0),_defineProperty(this,_0x2977d1(0x392),void 0x0),_defineProperty(this,_0x2977d1(0x15d),0x4),_defineProperty(this,_0x2977d1(0x371),void 0x0),_defineProperty(this,'_blinkIntervalTimer',void 0x0),_defineProperty(this,_0x2977d1(0x140),!![]),_defineProperty(this,_0x2977d1(0x295),''),_defineProperty(this,_0x2977d1(0xdf),![]),_defineProperty(this,_0x2977d1(0x23e),'top'),_defineProperty(this,_0x2977d1(0x355),void 0x0);if(_0x11e081){var _0x5201a0;this[_0x2977d1(0x33e)](_0x11e081);if(_0x11e081['highlight']&&((_0x5201a0=_0x11e081[_0x2977d1(0x399)])!==null&&_0x5201a0!==void 0x0?_0x5201a0:this[_0x2977d1(0x15d)])){var _0x317f73;this[_0x2977d1(0xe6)]((_0x317f73=_0x11e081['highlightSecond'])!==null&&_0x317f73!==void 0x0?_0x317f73:this[_0x2977d1(0x15d)]);}}this[_0x2977d1(0x3e3)]['subscribeEvent'](()=>this[_0x2977d1(0x33e)]({'hovered':!![]})),this['onPointerLeave$'][_0x2977d1(0x3f7)](()=>this['setShapeProps']({'hovered':![]}));}[_0x55b227(0x33e)](_0x3038f5){const _0x3cba4e=_0x55b227;var _0x170667,_0x20f5d3,_0x39c45b,_0x51f311,_0x7adbf,_0x5275da;this[_0x3cba4e(0x30d)]=(_0x170667=_0x3038f5[_0x3cba4e(0x37d)])!==null&&_0x170667!==void 0x0?_0x170667:this[_0x3cba4e(0x30d)],this[_0x3cba4e(0x330)]=(_0x20f5d3=_0x3038f5[_0x3cba4e(0x21e)])!==null&&_0x20f5d3!==void 0x0?_0x20f5d3:this[_0x3cba4e(0x330)],this['_name']=(_0x39c45b=_0x3038f5[_0x3cba4e(0x22c)])!==null&&_0x39c45b!==void 0x0?_0x39c45b:this['_name'],this[_0x3cba4e(0xdf)]=(_0x51f311=_0x3038f5[_0x3cba4e(0x296)])!==null&&_0x51f311!==void 0x0?_0x51f311:this[_0x3cba4e(0xdf)],this[_0x3cba4e(0x23e)]=(_0x7adbf=_0x3038f5['labelPosition'])!==null&&_0x7adbf!==void 0x0?_0x7adbf:this['_labelPosition'],this[_0x3cba4e(0x355)]=(_0x5275da=_0x3038f5[_0x3cba4e(0x406)])!==null&&_0x5275da!==void 0x0?_0x5275da:this[_0x3cba4e(0x355)];if(_0x3038f5[_0x3cba4e(0x399)]!==void 0x0)this[_0x3cba4e(0x15d)]=_0x3038f5[_0x3cba4e(0x399)];if(_0x3038f5[_0x3cba4e(0x107)]!==void 0x0)this[_0x3cba4e(0x392)]=_0x3038f5[_0x3cba4e(0x107)];this[_0x3cba4e(0x3e6)]({'width':_0x3038f5[_0x3cba4e(0xde)],'height':_0x3038f5[_0x3cba4e(0x1f9)]});}['_startBlinking'](_0x4b671a){const _0x59a113=_0x55b227;this[_0x59a113(0x313)](),this['_isBlinkVisible']=!![],this[_0x59a113(0x135)]=window[_0x59a113(0x122)](()=>{const _0x2832c3=_0x59a113;this[_0x2832c3(0x140)]=!this[_0x2832c3(0x140)],this['makeDirty'](!![]);},0x1f4),this[_0x59a113(0x371)]=window[_0x59a113(0x401)](()=>{const _0x2328f3=_0x59a113;this[_0x2328f3(0x313)](),this['_isBlinkVisible']=!![],this[_0x2328f3(0x3ad)](!![]);},_0x4b671a*0x3e8);}[_0x55b227(0x313)](){const _0x20de2b=_0x55b227;this[_0x20de2b(0x135)]&&(window[_0x20de2b(0x1fa)](this[_0x20de2b(0x135)]),this['_blinkIntervalTimer']=void 0x0),this['_blinkTimer']&&(window[_0x20de2b(0x123)](this[_0x20de2b(0x371)]),this[_0x20de2b(0x371)]=void 0x0);}[_0x55b227(0x110)](_0x2fc5a4){return![];}[_0x55b227(0x15e)](){const _0x180c6d=_0x55b227;this[_0x180c6d(0x313)](),super[_0x180c6d(0x15e)]();}[_0x55b227(0x28e)](_0x49f6e5){const _0x4ec750=_0x55b227;let _0x302137=this[_0x4ec750(0x30d)];if(this[_0x4ec750(0x392)]&&!this[_0x4ec750(0x140)])_0x302137=this[_0x4ec750(0x326)](this[_0x4ec750(0x30d)]);_0x49f6e5[_0x4ec750(0x101)](),_0x49f6e5[_0x4ec750(0x1d7)]=_0x302137,_0x49f6e5[_0x4ec750(0x3de)]=_0x302137,_0x49f6e5['lineWidth']=0x4;if(this[_0x4ec750(0x330)]===_0x4ec750(0x144))this[_0x4ec750(0x26b)](_0x49f6e5);else this[_0x4ec750(0x11c)](_0x49f6e5);_0x49f6e5['restore']();if((this[_0x4ec750(0xdf)]||this[_0x4ec750(0x355)])&&this[_0x4ec750(0x295)]){_0x49f6e5[_0x4ec750(0x101)]();if(this[_0x4ec750(0x330)]===_0x4ec750(0x144))_0x49f6e5[_0x4ec750(0x249)](0x1,0x0,0x0,0x1,this[_0x4ec750(0xde)],this[_0x4ec750(0x23e)]===_0x4ec750(0x2e5)?0x0:-0x14);else _0x49f6e5[_0x4ec750(0x249)](0x1,0x0,0x0,0x1,this[_0x4ec750(0xde)],this[_0x4ec750(0x23e)]===_0x4ec750(0x2e5)?this[_0x4ec750(0x1f9)]:-0x14);this[_0x4ec750(0x341)](_0x49f6e5,this[_0x4ec750(0x295)],_0x302137),_0x49f6e5[_0x4ec750(0x404)]();}}[_0x55b227(0x26b)](_0x217ae7){const _0xa972b4=_0x55b227,_0x69debd=this['height']/0x2,_0x18b7dc=0xc,_0x1bf068=this[_0xa972b4(0xde)]-0xc;_0x217ae7[_0xa972b4(0x3ca)](),_0x217ae7[_0xa972b4(0x342)](_0x18b7dc,_0x69debd),_0x217ae7['lineTo'](_0x1bf068,_0x69debd),_0x217ae7[_0xa972b4(0x178)](),_0x217ae7[_0xa972b4(0x3ca)](),_0x217ae7[_0xa972b4(0x342)](0x0,_0x69debd),_0x217ae7['lineTo'](0xc,_0x69debd-0xc/0x2),_0x217ae7[_0xa972b4(0x1e3)](0xc,_0x69debd+0xc/0x2),_0x217ae7['closePath'](),_0x217ae7[_0xa972b4(0x1b7)](),_0x217ae7['beginPath'](),_0x217ae7['moveTo'](this[_0xa972b4(0xde)],_0x69debd),_0x217ae7[_0xa972b4(0x1e3)](this['width']-0xc,_0x69debd-0xc/0x2),_0x217ae7[_0xa972b4(0x1e3)](this[_0xa972b4(0xde)]-0xc,_0x69debd+0xc/0x2),_0x217ae7[_0xa972b4(0x365)](),_0x217ae7[_0xa972b4(0x1b7)]();}[_0x55b227(0x11c)](_0x5ac09c){const _0x3c74f3=_0x55b227,_0x26c863=this['width']/0x2,_0x1eec74=0xc,_0x1bd80d=this[_0x3c74f3(0x1f9)]-0xc;_0x5ac09c[_0x3c74f3(0x3ca)](),_0x5ac09c[_0x3c74f3(0x342)](_0x26c863,_0x1eec74),_0x5ac09c[_0x3c74f3(0x1e3)](_0x26c863,_0x1bd80d),_0x5ac09c[_0x3c74f3(0x178)](),_0x5ac09c['beginPath'](),_0x5ac09c[_0x3c74f3(0x342)](_0x26c863,0x0),_0x5ac09c['lineTo'](_0x26c863-0xc/0x2,0xc),_0x5ac09c[_0x3c74f3(0x1e3)](_0x26c863+0xc/0x2,0xc),_0x5ac09c[_0x3c74f3(0x365)](),_0x5ac09c['fill'](),_0x5ac09c['beginPath'](),_0x5ac09c[_0x3c74f3(0x342)](_0x26c863,this[_0x3c74f3(0x1f9)]),_0x5ac09c[_0x3c74f3(0x1e3)](_0x26c863-0xc/0x2,this[_0x3c74f3(0x1f9)]-0xc),_0x5ac09c[_0x3c74f3(0x1e3)](_0x26c863+0xc/0x2,this[_0x3c74f3(0x1f9)]-0xc),_0x5ac09c['closePath'](),_0x5ac09c[_0x3c74f3(0x1b7)]();}[_0x55b227(0x341)](_0x6c3a10,_0x5039e4,_0x4aae0c){const _0x14a8d3=_0x55b227;_0x6c3a10[_0x14a8d3(0x32a)]=_0x14a8d3(0x294);const _0x1324ca=_0x6c3a10[_0x14a8d3(0xd7)](_0x5039e4)[_0x14a8d3(0xde)],_0x4681e3=Math['min'](_0x1324ca+0x2*0x4,0xc8),_0xd5f7ec=0x4,_0x270882=_0x4681e3,_0x350d74=0x14;_0x6c3a10[_0x14a8d3(0x3de)]=_0x4aae0c,_0x6c3a10[_0x14a8d3(0x3ca)](),_0x6c3a10['moveTo'](_0xd5f7ec,0x0),_0x6c3a10['lineTo'](_0x270882-_0xd5f7ec,0x0),_0x6c3a10[_0x14a8d3(0x21b)](_0x270882-_0xd5f7ec,_0xd5f7ec,_0xd5f7ec,Math['PI']*0x3/0x2,0x0,![]),_0x6c3a10['lineTo'](_0x270882,_0x350d74-_0xd5f7ec),_0x6c3a10[_0x14a8d3(0x21b)](_0x270882-_0xd5f7ec,_0x350d74-_0xd5f7ec,_0xd5f7ec,0x0,Math['PI']/0x2,![]),_0x6c3a10['lineTo'](0x0,_0x350d74),_0x6c3a10[_0x14a8d3(0x1e3)](0x0,_0xd5f7ec),_0x6c3a10[_0x14a8d3(0x21b)](_0xd5f7ec,_0xd5f7ec,_0xd5f7ec,Math['PI'],Math['PI']*0x3/0x2,![]),_0x6c3a10[_0x14a8d3(0x365)](),_0x6c3a10['fill'](),_0x6c3a10[_0x14a8d3(0x3de)]=_0x14a8d3(0x1f5);const _0xbfc577=0x4,_0x388417=0x14-0x5,_0x24d1e9=0xc8-0x2*0x4;if(_0x1324ca>_0x24d1e9){let _0x4abfab='',_0x35efd7=0x0;for(const _0x3fcd8f of _0x5039e4){const _0x8855fe=_0x6c3a10['measureText'](_0x3fcd8f)['width'];if(_0x35efd7+_0x8855fe<=_0x24d1e9-_0x6c3a10[_0x14a8d3(0xd7)](_0x14a8d3(0x231))['width'])_0x4abfab+=_0x3fcd8f,_0x35efd7+=_0x8855fe;else{_0x4abfab+=_0x14a8d3(0x231);break;}}_0x6c3a10[_0x14a8d3(0x205)](_0x4abfab,_0xbfc577,_0x388417);}else _0x6c3a10[_0x14a8d3(0x205)](_0x5039e4,_0xbfc577,_0x388417);}['_getLighterColor'](_0x511a29){const _0x34f977=_0x55b227;if(_0x511a29[_0x34f977(0x41e)]('#'))return _0x34f977(0x31d)+Number[_0x34f977(0x220)](_0x511a29['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x34f977(0x220)](_0x511a29[_0x34f977(0x216)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x511a29['slice'](0x5,0x7),0x10)+_0x34f977(0x1c9);if(_0x511a29[_0x34f977(0x41e)](_0x34f977(0x32e)))return _0x511a29[_0x34f977(0x160)](/[\d.]+\)$/g,'0.2)');if(_0x511a29['startsWith']('rgb'))return _0x511a29[_0x34f977(0x160)](_0x34f977(0x297),'rgba')[_0x34f977(0x160)](')',_0x34f977(0x1c9));return _0x511a29;}};let VersionDiffRenderController=class VersionDiffRenderController extends _univerjs_core[_0x55b227(0x117)]{constructor(_0x340636,_0x346f0f,_0x3031a8,_0x15a8a2,_0x330e9f,_0x1d2da7,_0x154b28,_0x48d744){const _0x389538=_0x55b227;super(),this[_0x389538(0x17b)]=_0x340636,this[_0x389538(0x2b4)]=_0x346f0f,this[_0x389538(0xec)]=_0x3031a8,this[_0x389538(0x2b2)]=_0x15a8a2,this[_0x389538(0x33c)]=_0x330e9f,this[_0x389538(0x263)]=_0x1d2da7,this[_0x389538(0x2b5)]=_0x154b28,this[_0x389538(0x36f)]=_0x48d744,_defineProperty(this,_0x389538(0x26d),new Set()),_defineProperty(this,_0x389538(0x2c2),new Set()),_defineProperty(this,_0x389538(0x2c3),new Set()),_defineProperty(this,_0x389538(0x166),new Set()),_defineProperty(this,_0x389538(0x429),null),this['_init']();}[_0x55b227(0x173)](){const _0x380b0a=_0x55b227;this[_0x380b0a(0x13d)](),this[_0x380b0a(0x157)]();}[_0x55b227(0x13d)](){const _0x48ed89=_0x55b227;this[_0x48ed89(0x1de)]((0x0,rxjs[_0x48ed89(0x319)])([this['_historyManagerService']['loadingState$'],this[_0x48ed89(0x263)][_0x48ed89(0xed)]])[_0x48ed89(0x3c2)]((0x0,rxjs[_0x48ed89(0xe7)])(([_0x5da61b,_0x135090])=>{const _0x27cab8=_0x48ed89;if(_0x5da61b==='loaded'&&_0x135090){const _0x1a938c=_0x135090[_0x27cab8(0x16b)];return this[_0x27cab8(0xec)][_0x27cab8(0x372)][_0x27cab8(0x3c2)]((0x0,rxjs[_0x27cab8(0x36a)])(_0x36c5d2=>{const _0x5388b9=_0x27cab8;if(!(_0x36c5d2[_0x5388b9(0x410)][_0x5388b9(0x2d2)]===0x0||_0x36c5d2[_0x5388b9(0x410)][_0x5388b9(0xe5)](_0x1a938c)))return{'skeleton':_0x135090,'versionDiff':null};return{'skeleton':_0x135090,'versionDiff':_0x36c5d2,'sheetID':_0x1a938c};}));}return(0x0,rxjs['of'])({'skeleton':null,'versionDiff':null,'sheetID':null});}))[_0x48ed89(0x1cd)](({skeleton:_0x1fdf7b,versionDiff:_0x3026b3,sheetID:_0x362a83})=>{const _0x339515=_0x48ed89;this[_0x339515(0x240)]();if(_0x1fdf7b&&_0x3026b3&&_0x362a83)this[_0x339515(0x2fb)](_0x1fdf7b,_0x3026b3,_0x362a83);})),this[_0x48ed89(0x1de)](this[_0x48ed89(0x263)][_0x48ed89(0xed)][_0x48ed89(0x1cd)](_0x49e68=>{const _0xb6cc90=_0x48ed89;if(_0x49e68==null)return;const {skeleton:_0x4e06e8}=_0x49e68,{scene:_0x5f02d3}=this[_0xb6cc90(0x17b)];_0x5f02d3['onPointerMove$'][_0xb6cc90(0x3f7)]((0x0,_univerjs_core[_0xb6cc90(0x215)])(_0x2ba80a=>{const _0x2398db=_0xb6cc90;var _0x3acd1d,_0xa97511;const {offsetX:_0x374a9b,offsetY:_0x14b736}=_0x2ba80a,{x:_0x20714a,y:_0x45114a}=_0x5f02d3[_0x2398db(0x227)](_univerjs_engine_render[_0x2398db(0x225)]['FromArray']([_0x374a9b,_0x14b736])),{scaleX:_0x3c5209,scaleY:_0x1a3838}=_0x5f02d3[_0x2398db(0x33d)](),_0x48e344=_0x5f02d3['getViewport'](_univerjs_engine_render['SHEET_VIEWPORT_KEY'][_0x2398db(0x3b5)]),_0x3cbd15=_0x5f02d3[_0x2398db(0xdc)](_univerjs_engine_render['Vector2'][_0x2398db(0xd8)]([_0x20714a,_0x45114a]),_0x48e344),_0x1d215=_0x4e06e8[_0x2398db(0x1fd)](_0x374a9b,_0x14b736,_0x3c5209,_0x1a3838,_0x3cbd15);if(((_0x3acd1d=this[_0x2398db(0x429)])===null||_0x3acd1d===void 0x0?void 0x0:_0x3acd1d[_0x2398db(0x343)])===_0x1d215[_0x2398db(0x343)]&&((_0xa97511=this['_lastPointer'])===null||_0xa97511===void 0x0?void 0x0:_0xa97511['row'])===_0x1d215[_0x2398db(0x2ff)])return;this[_0x2398db(0x26d)][_0x2398db(0x1e8)](_0x4e8f61=>{const _0x4b0e7c=_0x2398db;if(_0x4e8f61[_0x4b0e7c(0x3b3)])return;_0x4e8f61[_0x4b0e7c(0x255)](_0x1d215);});},0x64));}));}[_0x55b227(0x157)](){const _0x283fcf=_0x55b227;this[_0x283fcf(0x1de)](this['_historyManagerService'][_0x283fcf(0x426)][_0x283fcf(0x1cd)](_0x3e7669=>{const _0x3b1a3a=_0x283fcf,_0x4bc588=new _univerjs_core[(_0x3b1a3a(0x210))]();return _0x3e7669===_0x3b1a3a(0x40c)&&(_0x4bc588[_0x3b1a3a(0x15e)](),_0x4bc588['add'](this['_versionDiffService']['currentVersionDiff$'][_0x3b1a3a(0x1cd)](_0x1e7f93=>{const _0x158a08=_0x3b1a3a;this[_0x158a08(0x19c)](_0x1e7f93[_0x158a08(0x410)]);if(_0x1e7f93['active'])this['_commandService'][_0x158a08(0x3bd)](_univerjs_sheets[_0x158a08(0x168)]['id'],{'unitId':this[_0x158a08(0x17b)]['unitId'],'subUnitId':_0x1e7f93[_0x158a08(0x328)]});}))),()=>_0x4bc588[_0x3b1a3a(0x15e)]();}));}[_0x55b227(0x19c)](_0x49e9ce){const _0x3a5a36=_0x55b227,_0x5918d4=this[_0x3a5a36(0x2b2)]['getUnit'](this['_context'][_0x3a5a36(0x185)],_univerjs_core['UniverInstanceType']['UNIVER_SHEET']);if(!_0x5918d4)return;const _0x2c5dd5=_0x5918d4[_0x3a5a36(0x3a3)]();if(_0x49e9ce[_0x3a5a36(0x2d2)]===0x0){_0x2c5dd5[_0x3a5a36(0x1e8)](_0x1708ac=>{const _0x48e117=_0x3a5a36;if(_0x1708ac['isSheetHidden']())this[_0x48e117(0x2b5)][_0x48e117(0x3bd)](_univerjs_sheets['SetWorksheetHideMutation']['id'],{'unitId':this[_0x48e117(0x17b)][_0x48e117(0x185)],'subUnitId':_0x1708ac[_0x48e117(0x270)](),'hidden':0x0});});return;}_0x2c5dd5[_0x3a5a36(0x1e8)](_0x456f2f=>{const _0x32bc41=_0x3a5a36,_0x27af86=_0x456f2f['getSheetId'](),_0x21632a=_0x49e9ce['includes'](_0x27af86),_0x4ba787=_0x456f2f[_0x32bc41(0x2ed)]();if(_0x21632a&&_0x4ba787)this[_0x32bc41(0x2b5)][_0x32bc41(0x3bd)](_univerjs_sheets[_0x32bc41(0x27a)]['id'],{'unitId':this[_0x32bc41(0x17b)][_0x32bc41(0x185)],'subUnitId':_0x27af86,'hidden':0x0});else{if(!_0x21632a&&!_0x4ba787)this[_0x32bc41(0x2b5)][_0x32bc41(0x3bd)](_univerjs_sheets['SetWorksheetHideMutation']['id'],{'unitId':this[_0x32bc41(0x17b)][_0x32bc41(0x185)],'subUnitId':_0x27af86,'hidden':0x1});}});}['_updateDiffMarks'](_0x37088a,_0x3c981a,_0x211d7e){const _0x56a36c=_0x55b227;this[_0x56a36c(0x26d)]['forEach'](_0x5c769f=>{_0x5c769f['makeDirty']();});const _0x2bbe16=this['generateDiffMarks'](_0x3c981a,_0x211d7e);this[_0x56a36c(0x26d)]=new Set(_0x2bbe16[_0x56a36c(0x192)](_0x1ca8db=>_0x1ca8db instanceof _univerjs_pro_collaboration_client_ui['SheetCollabCursorShape'])),this[_0x56a36c(0x2c2)]=new Set(_0x2bbe16[_0x56a36c(0x192)](_0x844d39=>_0x844d39 instanceof _univerjs_engine_render['Rect'])),this[_0x56a36c(0x2c3)]=new Set(_0x2bbe16[_0x56a36c(0x192)](_0x31fd03=>_0x31fd03 instanceof SheetHistoryArrowShape));if(_0x2bbe16[_0x56a36c(0x2d2)]>0x0)this[_0x56a36c(0x188)](_0x2bbe16[0x0],this[_0x56a36c(0x17b)][_0x56a36c(0x14f)]);}[_0x55b227(0x2b9)](_0x3477f4,_0x22bec8){const _0x291926=_0x55b227,_0x41fd27=this[_0x291926(0x263)]['getCurrentSkeleton']();if(!_0x41fd27)return[];const {scene:_0x5d97c6}=this[_0x291926(0x17b)],_0x9b5b4c=[],_0x31f8da=_0x2968aa=>{const _0x1565dd=_0x291926;if(!_0x2968aa)return new Map();const _0x390615=new Map();return _0x2968aa[_0x1565dd(0x1e8)]((_0xfeba09,_0x55347a)=>{const _0xa88d23=_0x1565dd,_0x42cbab=_0xfeba09[_0xa88d23(0x192)](_0x37e2d9=>_0x37e2d9['subUnitId']===_0x22bec8);if(_0x42cbab['length']>0x0)_0x390615[_0xa88d23(0x10c)](_0x55347a,_0x42cbab);}),_0x390615;};this[_0x291926(0x2cd)](_0x5d97c6,_0x41fd27,_0x31f8da(_0x3477f4[_0x291926(0x408)]),_0x291926(0x291),_0x9b5b4c),this['_renderCellRanges'](_0x5d97c6,_0x41fd27,_0x31f8da(_0x3477f4[_0x291926(0xe0)]),_0x291926(0x141),_0x9b5b4c),this[_0x291926(0x2cd)](_0x5d97c6,_0x41fd27,_0x31f8da(_0x3477f4[_0x291926(0x36d)]),_0x291926(0x287),_0x9b5b4c),this[_0x291926(0x2d4)](_0x5d97c6,_0x41fd27,_0x31f8da(_0x3477f4[_0x291926(0x3f1)]),_0x291926(0x291),_0x9b5b4c),this[_0x291926(0x2d4)](_0x5d97c6,_0x41fd27,_0x31f8da(_0x3477f4['deleteBorderRanges']),_0x291926(0x141),_0x9b5b4c),this[_0x291926(0x2d4)](_0x5d97c6,_0x41fd27,_0x31f8da(_0x3477f4[_0x291926(0x3b2)]),_0x291926(0x287),_0x9b5b4c),this[_0x291926(0x253)](_0x5d97c6,_0x41fd27,_0x31f8da(_0x3477f4[_0x291926(0x37e)]),'vertical',_0x9b5b4c),this[_0x291926(0x253)](_0x5d97c6,_0x41fd27,_0x31f8da(_0x3477f4[_0x291926(0x1ce)]),'horizontal',_0x9b5b4c);if(_0x3477f4[_0x291926(0x2a4)])this[_0x291926(0x2c8)](_0x5d97c6,_0x3477f4[_0x291926(0x2a4)],_0x291926(0x291),_0x9b5b4c);if(_0x3477f4['deleteDrawings'])this[_0x291926(0x2c8)](_0x5d97c6,_0x3477f4[_0x291926(0x2a7)],_0x291926(0x141),_0x9b5b4c);if(_0x3477f4[_0x291926(0xc7)])this['_renderDrawingHighlights'](_0x5d97c6,_0x3477f4['updateDrawings'],_0x291926(0x287),_0x9b5b4c);return this['_handleOverlappingShapes'](_0x9b5b4c),_0x5d97c6['addObjects'](_0x9b5b4c,0x14),_0x9b5b4c;}[_0x55b227(0x2c9)](){const _0x1422c1=_0x55b227;this['_diffs'][_0x1422c1(0x1e8)](_0x548516=>{const _0xf20ce7=_0x1422c1;_0x548516[_0xf20ce7(0x39e)]();}),this[_0x1422c1(0x2c2)]['forEach'](_0x2849ce=>{const _0x27a34c=_0x1422c1;_0x2849ce[_0x27a34c(0x39e)]();}),this['_arrowDiffs']['forEach'](_0x54c249=>{const _0x440e5c=_0x1422c1;_0x54c249[_0x440e5c(0x39e)]();});}[_0x55b227(0x1ad)](){const _0x3344e7=_0x55b227;this[_0x3344e7(0x26d)][_0x3344e7(0x1e8)](_0x3774a2=>{const _0x678dca=_0x3344e7;_0x3774a2[_0x678dca(0x29d)]();}),this[_0x3344e7(0x2c2)][_0x3344e7(0x1e8)](_0x131dde=>{const _0x2b5a1f=_0x3344e7;_0x131dde[_0x2b5a1f(0x29d)]();}),this['_arrowDiffs'][_0x3344e7(0x1e8)](_0x2928e1=>{const _0x351f42=_0x3344e7;_0x2928e1[_0x351f42(0x29d)]();});}[_0x55b227(0x1a3)](){const _0x3f44f7=_0x55b227;this[_0x3f44f7(0x240)]();}[_0x55b227(0x37f)](_0x3b79d6,_0x4c00fb){const _0x15c02a=_0x55b227;this[_0x15c02a(0x188)](_0x3b79d6,_0x4c00fb);}[_0x55b227(0x2cd)](_0x87e516,_0x29e410,_0x4b58c5,_0xca4ccd,_0x40f887){const _0x1474d3=_0x55b227;_0x4b58c5[_0x1474d3(0x1e8)]((_0x3200b3,_0x4eff64)=>{const _0x1af4a5=_0x1474d3;_0x3200b3[_0x1af4a5(0x1e8)](_0x127694=>{const _0x389904=_0x1af4a5;var _0x1dff1c;const {range:_0x19cff6,subUnitId:_0x4aa1fa,unitId:_0x4f47c8,showText:showText='',highlightColumn:_0x1fc6ba,highlightRow:_0x5cce1}=_0x127694,{startColumn:_0x37fb8c,startRow:_0xfaba74,endColumn:_0xb89334,endRow:_0x40983e}=_0x19cff6,_0x57498b=(0x0,_univerjs_sheets_ui[_0x389904(0x2c1)])(_0xfaba74,_0x37fb8c,_0x87e516,_0x29e410),_0x3ddc75=(0x0,_univerjs_sheets_ui[_0x389904(0x2c1)])(_0x40983e,_0xb89334,_0x87e516,_0x29e410),{columnHeaderHeightAndMarginTop:_0x1d0699}=_0x29e410;let {startX:_0x329c5d,startY:_0x1b4e52}=_0x57498b;const {endX:_0x28dea0,endY:_0x67b110}=_0x3ddc75,_0x23c730=_0x29e410[_0x389904(0x279)],_0x1342e2=_0x29e410['columnHeaderHeight'];if(_0x5cce1)_0x329c5d-=_0x23c730;if(_0x1fc6ba)_0x1b4e52-=_0x1342e2;const _0xa05c66=_0x28dea0-_0x329c5d,_0x4afd9c=_0x67b110-_0x1b4e52,_0x34a295={'labelPosition':_0x1b4e52-_0x1d0699>=0x14?_0x389904(0x3df):'bottom','sheetID':_0x4aa1fa,'range':_0x19cff6,'color':_0xca4ccd,'fillAfterStrokeEnabled':!![],'backgroundColor':_0xca4ccd,'name':((_0x1dff1c=this[_0x389904(0x2b4)]['getMember'](_0x4eff64))===null||_0x1dff1c===void 0x0?void 0x0:_0x1dff1c['name'])+'\x20'+showText||showText,'selection':_0x4f47c8+'-'+_0x4aa1fa+'-'+_0x19cff6[_0x389904(0x10d)]+'-'+_0x19cff6[_0x389904(0x3b9)]+'-'+_0x19cff6['endColumn']+'-'+_0x19cff6[_0x389904(0xf5)],'left':_0x329c5d,'top':_0x1b4e52,'width':_0xa05c66,'height':_0x4afd9c,'evented':![],'zIndex':0x3e8,'highlight':!![]};_0x40f887[_0x389904(0x3e1)](new _univerjs_pro_collaboration_client_ui[(_0x389904(0x1dd))]('',_0x34a295));});});}[_0x55b227(0x2d4)](_0x3b618a,_0x157557,_0x4749b4,_0x561629,_0x1dfb50){const _0x4da641=_0x55b227,_0x55744c=0xc;_0x4749b4[_0x4da641(0x1e8)]((_0x5c3fae,_0x26b724)=>{const _0x116e76=_0x4da641;_0x5c3fae[_0x116e76(0x1e8)](_0x3dbb30=>{const _0x4623ab=_0x116e76;var _0x222535;const {range:_0x359dff,subUnitId:_0x4ca8c1,unitId:_0x517c71,showText:showText=''}=_0x3dbb30,{startColumn:_0x125db4,startRow:_0x3ec445,endColumn:_0x5844e6,endRow:_0x10f556}=_0x359dff,_0x53cffa=(0x0,_univerjs_sheets_ui['getCoordByCell'])(_0x3ec445,_0x125db4,_0x3b618a,_0x157557),_0x1f57a3=(0x0,_univerjs_sheets_ui[_0x4623ab(0x2c1)])(_0x10f556,_0x5844e6,_0x3b618a,_0x157557),{columnHeaderHeightAndMarginTop:_0x3638f5}=_0x157557,{startX:_0x536d7f,startY:_0x1e38c0}=_0x53cffa,{endX:_0x472b23,endY:_0x423968}=_0x1f57a3,_0x4fd044=_0x472b23-_0x536d7f,_0x274539=_0x423968-_0x1e38c0,_0xe38aac={'labelPosition':_0x1e38c0-_0x3638f5>=0x14?_0x4623ab(0x3df):_0x4623ab(0x2e5),'sheetID':_0x4ca8c1,'range':_0x359dff,'color':_0x561629,'fillAfterStrokeEnabled':![],'backgroundColor':_0x4623ab(0x165),'name':((_0x222535=this[_0x4623ab(0x2b4)][_0x4623ab(0x3ce)](_0x26b724))===null||_0x222535===void 0x0?void 0x0:_0x222535[_0x4623ab(0x22c)])+'\x20'+showText||showText,'selection':_0x517c71+'-'+_0x4ca8c1+'-'+_0x359dff[_0x4623ab(0x10d)]+'-'+_0x359dff[_0x4623ab(0x3b9)]+'-'+_0x359dff['endColumn']+'-'+_0x359dff[_0x4623ab(0xf5)],'left':_0x536d7f-_0x55744c/0x2,'top':_0x1e38c0-_0x55744c/0x2,'width':_0x4fd044,'height':_0x274539,'evented':![],'zIndex':0x3e8,'strokeWidth':0xc,'highlight':!![]};_0x1dfb50['push'](new _univerjs_pro_collaboration_client_ui[(_0x4623ab(0x1dd))]('',_0xe38aac));});});}[_0x55b227(0x253)](_0x144dcf,_0xffc64e,_0x335d40,_0x2ec636,_0x5b57b1){const _0x45a679=_0x55b227,_0x2dbe03=_0xffc64e[_0x45a679(0x279)],_0x1ab74d=_0xffc64e['columnHeaderHeight'];_0x335d40[_0x45a679(0x1e8)]((_0x356f96,_0x5765bf)=>{const _0x287279=_0x45a679;_0x356f96[_0x287279(0x1e8)](_0x59ca2c=>{const _0x233964=_0x287279,{range:_0x464a1a,showText:showText=''}=_0x59ca2c,{startColumn:_0x2afc59,startRow:_0x224cd4,endColumn:_0x5bee49,endRow:_0x59d18d}=_0x464a1a,_0x3a5abc=(0x0,_univerjs_sheets_ui['getCoordByCell'])(_0x224cd4,_0x2afc59,_0x144dcf,_0xffc64e),_0x2b4966=(0x0,_univerjs_sheets_ui['getCoordByCell'])(_0x59d18d,_0x5bee49,_0x144dcf,_0xffc64e),{startX:_0x56a32f,startY:_0x23c3c8}=_0x3a5abc,{endX:_0x5cb00f,endY:_0x313168}=_0x2b4966,{columnHeaderHeightAndMarginTop:_0x4e1dca}=_0xffc64e;let _0x3fe9dc;if(_0x2ec636===_0x233964(0x144)){var _0x547a7d;_0x3fe9dc=new SheetHistoryArrowShape('',{'color':'rgba(21,101,192,0.5)','direction':_0x233964(0x144),'left':_0x56a32f,'top':0x2,'width':_0x5cb00f-_0x56a32f,'height':_0x1ab74d-0x4,'evented':!![],'zIndex':0x3e9,'highlight':!![],'highlightSecond':0x4,'name':((_0x547a7d=this[_0x233964(0x2b4)][_0x233964(0x3ce)](_0x5765bf))===null||_0x547a7d===void 0x0?void 0x0:_0x547a7d[_0x233964(0x22c)])+'\x20'+showText||showText,'labelPosition':_0x23c3c8-_0x4e1dca>=0x14?_0x233964(0x3df):'bottom'}),_0x5b57b1[_0x233964(0x3e1)](_0x3fe9dc);}else{var _0x1006ea;const _0x325f81=_0x313168-_0x23c3c8;_0x3fe9dc=new SheetHistoryArrowShape('',{'color':'rgba(21,101,192,0.5)','direction':'vertical','left':0x2,'top':_0x23c3c8,'width':_0x2dbe03-0x4,'height':_0x325f81,'evented':!![],'zIndex':0x3e9,'highlight':!![],'highlightSecond':0x4,'name':((_0x1006ea=this[_0x233964(0x2b4)][_0x233964(0x3ce)](_0x5765bf))===null||_0x1006ea===void 0x0?void 0x0:_0x1006ea[_0x233964(0x22c)])+'\x20'+showText||showText,'labelPosition':_0x233964(0x3df)}),_0x5b57b1[_0x233964(0x3e1)](_0x3fe9dc);}});});}[_0x55b227(0x2c8)](_0x2d343d,_0x5732ca,_0x3a61e4,_0x2cd613){const _0x7e7dc1=_0x55b227,_0x1a6363=this[_0x7e7dc1(0x263)][_0x7e7dc1(0x218)]();if(!_0x1a6363)return;const _0x376529=0xc,{columnHeaderHeightAndMarginTop:_0x6f73f0}=_0x1a6363;_0x5732ca[_0x7e7dc1(0x1e8)]((_0x4eb1a1,_0x315dd0)=>{const _0x8799b5=_0x7e7dc1;_0x4eb1a1[_0x8799b5(0x1e8)](_0x42e19b=>{const _0x2dce81=_0x8799b5;var _0x5ae02e;const {drawingId:_0x47459b,unitId:_0x542465,subUnitId:_0x21e972,showText:showText=''}=_0x42e19b,_0x11cd6c=this[_0x2dce81(0x36f)][_0x2dce81(0x28c)]({'unitId':_0x542465,'subUnitId':_0x21e972,'drawingId':_0x47459b});if(!_0x11cd6c||!_0x11cd6c[_0x2dce81(0x249)])return;const {left:left=0x0,top:top=0x0,width:_0x25aafb,height:_0x3fe6a3}=_0x11cd6c[_0x2dce81(0x249)],_0x1f89fc=new _univerjs_pro_collaboration_client_ui[(_0x2dce81(0x1dd))]('',{'labelPosition':top-_0x6f73f0>=0x14?'top':_0x2dce81(0x2e5),'sheetID':_0x21e972,'range':{'startRow':0x0,'startColumn':0x0,'endRow':0x0,'endColumn':0x0},'color':_0x3a61e4,'fillAfterStrokeEnabled':![],'backgroundColor':_0x2dce81(0x165),'name':((_0x5ae02e=this[_0x2dce81(0x2b4)][_0x2dce81(0x3ce)](_0x315dd0))===null||_0x5ae02e===void 0x0?void 0x0:_0x5ae02e[_0x2dce81(0x22c)])+'\x20'+showText||showText,'selection':_0x542465+'-'+_0x21e972+'-drawing-'+_0x47459b,'left':left-_0x376529/0x2,'top':top-_0x376529/0x2,'width':_0x25aafb,'height':_0x3fe6a3,'evented':!![],'zIndex':0x3e8,'strokeWidth':0xc,'highlight':!![]});_0x1f89fc[_0x2dce81(0x3e3)][_0x2dce81(0x3f7)](()=>{const _0x293b33=_0x2dce81;this['_findOverlappingShapes'](_0x1f89fc,_0x2cd613)[_0x293b33(0x1e8)](_0x4465fe=>{const _0x367f23=_0x293b33;if(_0x4465fe instanceof _univerjs_pro_collaboration_client_ui[_0x367f23(0x1dd)])_0x4465fe[_0x367f23(0x33e)]({'hovered':!![]});});}),_0x1f89fc[_0x2dce81(0x3c6)][_0x2dce81(0x3f7)](()=>{const _0x52b7fc=_0x2dce81;this[_0x52b7fc(0x151)](_0x1f89fc,_0x2cd613)['forEach'](_0x16b707=>{const _0x554c6b=_0x52b7fc;if(_0x16b707 instanceof _univerjs_pro_collaboration_client_ui[_0x554c6b(0x1dd)])_0x16b707[_0x554c6b(0x33e)]({'hovered':![]});});}),_0x2cd613['push'](_0x1f89fc);});});}[_0x55b227(0x240)](){const _0x2c4c3f=_0x55b227;var _0x40714d,_0x3a374f,_0x3246bc,_0x433585;(_0x40714d=this[_0x2c4c3f(0x26d)])===null||_0x40714d===void 0x0||_0x40714d['forEach'](_0x24e831=>_0x24e831['dispose']()),(_0x3a374f=this['_borderDiffs'])===null||_0x3a374f===void 0x0||_0x3a374f[_0x2c4c3f(0x1e8)](_0x363318=>_0x363318[_0x2c4c3f(0x15e)]()),(_0x3246bc=this[_0x2c4c3f(0x2c3)])===null||_0x3246bc===void 0x0||_0x3246bc[_0x2c4c3f(0x1e8)](_0x458915=>_0x458915['dispose']()),(_0x433585=this[_0x2c4c3f(0x166)])===null||_0x433585===void 0x0||_0x433585[_0x2c4c3f(0x1e8)](_0x3033f2=>_0x3033f2[_0x2c4c3f(0x15e)]());}[_0x55b227(0x3b6)](_0x582f3d){const _0x49ac0a=_0x55b227,_0x36d1ab=_0x582f3d[_0x49ac0a(0x192)](_0x524187=>_0x524187 instanceof _univerjs_pro_collaboration_client_ui['SheetCollabCursorShape']);if(_0x36d1ab[_0x49ac0a(0x2d2)]===0x0)return;const _0x5441b0=[],_0x1f5339=new Set();_0x36d1ab['forEach'](_0x13f589=>{const _0x395187=_0x49ac0a;if(_0x1f5339['has'](_0x13f589))return;const _0x5c9e17=_0x13f589[_0x395187(0xd2)]||0x0,_0x1e5d36=_0x13f589['top']||0x0,_0x13270e=_0x5c9e17+(_0x13f589['width']||0x0),_0x418e20=_0x1e5d36,_0x1055d1=[_0x13f589];_0x1f5339['add'](_0x13f589),_0x36d1ab[_0x395187(0x1e8)](_0x21b777=>{const _0x4e5b1e=_0x395187;if(_0x1f5339[_0x4e5b1e(0x1aa)](_0x21b777))return;const _0x45e4ec=_0x21b777[_0x4e5b1e(0xd2)]||0x0,_0x1133e2=_0x21b777[_0x4e5b1e(0x3df)]||0x0,_0x527e71=_0x45e4ec+(_0x21b777['width']||0x0),_0x267002=_0x1133e2;Math[_0x4e5b1e(0x34a)](_0x13270e-_0x527e71)<=0xa&&Math['abs'](_0x418e20-_0x267002)<=0xa&&(_0x1055d1[_0x4e5b1e(0x3e1)](_0x21b777),_0x1f5339[_0x4e5b1e(0x201)](_0x21b777));});if(_0x1055d1[_0x395187(0x2d2)]>0x1)_0x5441b0['push'](_0x1055d1);}),_0x5441b0[_0x49ac0a(0x1e8)](_0x5d08d0=>{const _0x2950a9=_0x49ac0a;_0x5d08d0[_0x2950a9(0x19e)]((_0x51b7f2,_0x3c0ec5)=>(_0x51b7f2[_0x2950a9(0x3df)]||0x0)-(_0x3c0ec5['top']||0x0)),_0x5d08d0[_0x2950a9(0x1e8)]((_0x2e936e,_0x500ba9)=>{const _0x1e55ed=_0x2950a9,_0x358843=_0x500ba9*0x16;_0x2e936e[_0x1e55ed(0x3a5)](_0x358843);});});}[_0x55b227(0x151)](_0x56c0ee,_0x2932cf){const _0x232cdf=_0x55b227,_0x191c07=_0x56c0ee[_0x232cdf(0xd2)]||0x0,_0x94dd43=_0x56c0ee['top']||0x0,_0x224a2c=_0x56c0ee[_0x232cdf(0xde)]||0x0,_0x4526ac=_0x56c0ee[_0x232cdf(0x1f9)]||0x0,_0x272e81=_0x191c07+_0x224a2c,_0x2b5652=_0x94dd43+_0x4526ac;return _0x2932cf[_0x232cdf(0x192)](_0x18ebf0=>{const _0x2311d3=_0x232cdf,_0x55604d=_0x18ebf0[_0x2311d3(0xd2)]||0x0,_0x197789=_0x18ebf0[_0x2311d3(0x3df)]||0x0,_0x18ab0c=_0x18ebf0[_0x2311d3(0xde)]||0x0,_0x22ffad=_0x18ebf0['height']||0x0,_0x3f4fff=_0x55604d+_0x18ab0c,_0x4b7950=_0x197789+_0x22ffad;return!(_0x272e81<=_0x55604d||_0x191c07>=_0x3f4fff||_0x2b5652<=_0x197789||_0x94dd43>=_0x4b7950);});}[_0x55b227(0x188)](_0x4e5b78,_0x3a3917){const _0x536cea=_0x55b227,_0xe73399=_0x3a3917[_0x536cea(0x13f)](_univerjs_engine_render[_0x536cea(0x13b)][_0x536cea(0x3b5)]);if(!_0xe73399)return;const _0x4f7d6f=_0x4e5b78[_0x536cea(0xd2)]||0x0,_0xbcf48d=_0x4e5b78['top']||0x0,_0x2a687b=_0x4e5b78[_0x536cea(0xde)]||0x0,_0x5d4c6b=_0x4e5b78[_0x536cea(0x1f9)]||0x0,_0x1f319c=_0xe73399[_0x536cea(0xde)]||0x0,_0x4f9609=_0xe73399['height']||0x0,_0x769858=_0xe73399[_0x536cea(0xf0)]||0x0,_0x22ee3f=_0xe73399[_0x536cea(0x1fb)]||0x0,_0x1caa89=_0x769858,_0x21ccc8=_0x22ee3f,_0x1f3bb5=_0x769858+_0x1f319c,_0x1e5157=_0x22ee3f+_0x4f9609;if(_0x4f7d6f>=_0x1caa89&&_0xbcf48d>=_0x21ccc8&&_0x4f7d6f+_0x2a687b<=_0x1f3bb5&&_0xbcf48d+_0x5d4c6b<=_0x1e5157)return;const _0x495816=Math[_0x536cea(0x2aa)](0x0,_0x4f7d6f-_0x1f319c/0x2+_0x2a687b/0x2),_0x40a105=Math[_0x536cea(0x2aa)](0x0,_0xbcf48d-_0x4f9609/0x2+_0x5d4c6b/0x2);_0xe73399['scrollToViewportPos']({'viewportScrollX':_0x495816,'viewportScrollY':_0x40a105});}[_0x55b227(0x2d0)](){const _0x3040d6=_0x55b227;return(0x0,_univerjs_sheets_ui['getSheetObject'])(this[_0x3040d6(0x2b2)],this[_0x3040d6(0x33c)]);}};VersionDiffRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x55b227(0x242)])(HistoryManagerService)),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(VersionDiffService)),__decorateParam(0x3,_univerjs_core[_0x55b227(0x18f)]),__decorateParam(0x4,_univerjs_engine_render['IRenderManagerService']),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_ui['SheetSkeletonManagerService'])),__decorateParam(0x6,_univerjs_core['ICommandService']),__decorateParam(0x7,_univerjs_drawing[_0x55b227(0x3a8)])],VersionDiffRenderController);var name=_0x55b227(0x322),version=_0x55b227(0x16e);let DisableStateController=class DisableStateController extends _univerjs_core[_0x55b227(0x117)]{constructor(_0x6788f3){const _0x19dc6d=_0x55b227;super(),this[_0x19dc6d(0x12a)]=_0x6788f3,this[_0x19dc6d(0x173)]();}[_0x55b227(0x173)](){const _0x345293=_0x55b227;this[_0x345293(0x1de)](this[_0x345293(0x12a)][_0x345293(0x299)]['subscribe'](_0x4a1850=>{const _0x573861=_0x345293;if(_0x4a1850===null||_0x4a1850===void 0x0?void 0x0:_0x4a1850[_0x573861(0x29d)])this[_0x573861(0x12a)][_0x573861(0x2ad)]({'show':![]});}));}};DisableStateController=__decorate([__decorateParam(0x0,_univerjs_sheets_ui[_0x55b227(0x3fc)])],DisableStateController);function MobileHistoryViewHeader(){const _0x31ffa2=_0x55b227,_0x49403b=(0x0,_univerjs_ui[_0x31ffa2(0x21d)])(HistoryManagerService),_0x9638e1=(0x0,_univerjs_ui[_0x31ffa2(0x21d)])(_univerjs_core[_0x31ffa2(0x41c)]),_0x253d48=(0x0,_univerjs_ui[_0x31ffa2(0x156)])(_0x49403b[_0x31ffa2(0x31c)]),_0x2e9feb=(0x0,react[_0x31ffa2(0x23f)])(()=>{const _0x193e04=_0x31ffa2;if(!_0x253d48)return![];return _0x49403b[_0x193e04(0x3b1)]();},[_0x49403b,_0x253d48]),_0x2ca7f9=(0x0,react['useCallback'])(()=>{const _0x192ac1=_0x31ffa2;_0x49403b[_0x192ac1(0x1e5)]=_0x192ac1(0x25c);},[_0x49403b]),_0x3a0f02=(0x0,react[_0x31ffa2(0x276)])(()=>{const _0x3b6d18=_0x31ffa2;_0x49403b[_0x3b6d18(0x3ec)]();},[_0x49403b]);return(0x0,react_jsx_runtime[_0x31ffa2(0x198)])('div',{'className':_0x31ffa2(0x29e),'children':[(0x0,react_jsx_runtime[_0x31ffa2(0x3e4)])(_univerjs_design[_0x31ffa2(0x390)],{'variant':_0x31ffa2(0x3e7),'onClick':_0x2ca7f9,'children':_0x9638e1['t'](_0x31ffa2(0x2f2))}),_0x2e9feb?(0x0,react_jsx_runtime[_0x31ffa2(0x3e4)])(_univerjs_design['Button'],{'variant':_0x31ffa2(0x3e7),'onClick':_0x3a0f02,'children':_0x9638e1['t'](_0x31ffa2(0x1af))}):(0x0,react_jsx_runtime[_0x31ffa2(0x3e4)])(_0x31ffa2(0x403),{'className':_0x31ffa2(0x2f4)})]});}let MobileHistoryManagerController=class MobileHistoryManagerController extends _univerjs_core[_0x55b227(0x117)]{constructor(_0x1c29b5,_0x3838b4,_0x1f3578,_0x37004a,_0x4fc908,_0x15187d,_0x1a140a){const _0x413f2f=_0x55b227;super(),this['_permissionService']=_0x1c29b5,this[_0x413f2f(0x24e)]=_0x3838b4,this[_0x413f2f(0x2e2)]=_0x1f3578,this[_0x413f2f(0xe9)]=_0x37004a,this['_historyManagerService']=_0x4fc908,this[_0x413f2f(0x28b)]=_0x15187d,this[_0x413f2f(0x37a)]=_0x1a140a,this['_init']();}['_init'](){const _0x6b0115=_0x55b227;this[_0x6b0115(0x1de)](this[_0x6b0115(0x2b4)]['currentVersion$']['subscribe'](_0x1defdc=>{const _0x432390=_0x6b0115;if(_0x1defdc)this[_0x432390(0x2b4)][_0x432390(0x3ae)](_0x1defdc);})),this[_0x6b0115(0x1de)](this[_0x6b0115(0x177)]['permissionPointUpdate$']['subscribe'](_0x29945d=>{const _0x2d383b=_0x6b0115,_0x444f18=this[_0x2d383b(0x2b4)][_0x2d383b(0x185)];if(!_0x444f18)return;if(_0x29945d[_0x2d383b(0x2b6)]===_univerjs_protocol['UnitAction'][_0x2d383b(0x34e)]&&_0x29945d[_0x2d383b(0x3a1)]===!![])this[_0x2d383b(0x177)]['updatePermissionPoint'](new _univerjs_sheets['WorkbookEditablePermission'](_0x444f18)['id'],![]);if(_0x29945d[_0x2d383b(0x2b6)]===_univerjs_protocol[_0x2d383b(0x257)][_0x2d383b(0x1f8)]&&_0x29945d[_0x2d383b(0x3a1)]===!![])this[_0x2d383b(0x177)]['updatePermissionPoint'](new _univerjs_sheets['WorkbookRenameSheetPermission'](_0x444f18)['id'],![]);if(_0x29945d[_0x2d383b(0x2b6)]===_univerjs_protocol[_0x2d383b(0x257)][_0x2d383b(0x1eb)]&&_0x29945d[_0x2d383b(0x3a1)]===!![])this[_0x2d383b(0x177)][_0x2d383b(0x221)](new _univerjs_sheets['WorkbookMoveSheetPermission'](_0x444f18)['id'],![]);if(_0x29945d[_0x2d383b(0x2b6)]===_univerjs_protocol[_0x2d383b(0x257)][_0x2d383b(0x3cf)]&&_0x29945d[_0x2d383b(0x3a1)]===!![])this['_permissionService'][_0x2d383b(0x221)](new _univerjs_sheets[(_0x2d383b(0x2e8))](_0x444f18)['id'],![]);if(_0x29945d[_0x2d383b(0x2b6)]===_univerjs_protocol[_0x2d383b(0x257)]['Comment']&&_0x29945d[_0x2d383b(0x3a1)]===!![])this['_permissionService'][_0x2d383b(0x221)](new _univerjs_sheets[(_0x2d383b(0x39f))](_0x444f18)['id'],![]);if(_0x29945d[_0x2d383b(0x2b6)]===_univerjs_protocol[_0x2d383b(0x257)][_0x2d383b(0x3f5)]&&_0x29945d[_0x2d383b(0x3a1)]===!![])this[_0x2d383b(0x177)][_0x2d383b(0x221)](new _univerjs_sheets[(_0x2d383b(0x39f))](_0x444f18)['id'],![]);})),this[_0x6b0115(0x235)]();let _0x16312b;this['disposeWithMe'](this[_0x6b0115(0x2b4)][_0x6b0115(0x426)][_0x6b0115(0x1cd)](_0xce6d11=>{const _0x1f5919=_0x6b0115;this[_0x1f5919(0x2e2)][_0x1f5919(0x350)](),_0x16312b===null||_0x16312b===void 0x0||_0x16312b['dispose']();_0xce6d11==='loading'&&(this[_0x1f5919(0x2b4)]['showMask'](),_0x16312b=this['_messageService'][_0x1f5919(0x29d)]({'type':_univerjs_design[_0x1f5919(0x32f)][_0x1f5919(0x18c)],'content':this[_0x1f5919(0xe9)]['t'](_0x1f5919(0x3c8)),'duration':0x3e8}));if(_0xce6d11===_0x1f5919(0x40c))this[_0x1f5919(0x2b4)]['hideMask']();}));}[_0x55b227(0x235)](){const _0x346890=_0x55b227;var _0x2663c6;if((_0x2663c6=this[_0x346890(0x37a)][_0x346890(0x16c)](_0x346890(0x1c4)))===null||_0x2663c6===void 0x0?void 0x0:_0x2663c6['historyPanelHidden'])return;this[_0x346890(0x1de)](this[_0x346890(0x24e)][_0x346890(0x1a4)](_univerjs_ui[_0x346890(0xcc)][_0x346890(0x179)],()=>(0x0,_univerjs_ui[_0x346890(0x32d)])(MobileHistoryViewHeader,this[_0x346890(0x28b)])));}};MobileHistoryManagerController=__decorate([__decorateParam(0x0,_univerjs_core[_0x55b227(0x329)]),__decorateParam(0x1,_univerjs_ui[_0x55b227(0x176)]),__decorateParam(0x2,_univerjs_ui[_0x55b227(0x274)]),__decorateParam(0x3,(0x0,_univerjs_core[_0x55b227(0x242)])(_univerjs_core[_0x55b227(0x41c)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x55b227(0x242)])(HistoryManagerService)),__decorateParam(0x5,(0x0,_univerjs_core[_0x55b227(0x242)])(_univerjs_core[_0x55b227(0x230)])),__decorateParam(0x6,_univerjs_core[_0x55b227(0x3d6)])],MobileHistoryManagerController);function _0xae2a(_0xb464b8,_0x915653){_0xb464b8=_0xb464b8-0xc6;const _0x2950c0=_0x2950();let _0xae2acf=_0x2950c0[_0xb464b8];return _0xae2acf;}function VersionItem$1(_0x1da38b){const _0x2afc9a=_0x55b227;var _0x18beb0;const {item:_0x45cbc2,isNewest:_0x56e5f0}=_0x1da38b,_0x10806a=(0x0,_univerjs_ui['useDependency'])(HistoryManagerService),_0x2816c4=(0x0,_univerjs_ui[_0x2afc9a(0x21d)])(VersionDiffService),_0x28d3fb=(0x0,_univerjs_ui[_0x2afc9a(0x21d)])(_univerjs_core[_0x2afc9a(0x41c)]),_0x2a4f64=(0x0,_univerjs_ui[_0x2afc9a(0x156)])(_0x10806a['currentVersion$'],'',!![])===_0x45cbc2['id'],_0x4e1822=_0x28d3fb[_0x2afc9a(0x35e)](),_0x35e7e6=parseDateWithLocale(_0x45cbc2['time'],_0x4e1822),_0x378618=!_0x56e5f0&&_0x10806a[_0x2afc9a(0xca)],_0x5c8f2b=(0x0,react[_0x2afc9a(0x276)])(async()=>{const _0x21db58=_0x2afc9a;if(_0x10806a[_0x21db58(0x31b)]===_0x21db58(0x3a9))return;_0x10806a[_0x21db58(0x344)]=_0x45cbc2['id'],await _0x2816c4[_0x21db58(0x2d9)](_0x45cbc2['id']);},[_0x10806a,_0x2816c4,_0x45cbc2['id']]),_0x34721b=(0x0,react[_0x2afc9a(0x276)])(_0x58a405=>{_0x58a405['stopPropagation'](),_0x10806a['triggerRevert'](_0x45cbc2['id']);},[_0x10806a,_0x45cbc2['id']]),_0x4b2772=((_0x18beb0=_0x45cbc2[_0x2afc9a(0x27e)])===null||_0x18beb0===void 0x0?void 0x0:_0x18beb0['filter'](Boolean)[_0x2afc9a(0x126)](',\x20'))||_0x45cbc2['user']||_0x28d3fb['t']('editHistory.panel.unknownUser');return(0x0,react_jsx_runtime['jsxs'])(_0x2afc9a(0x403),{'className':(0x0,_univerjs_design[_0x2afc9a(0x1f6)])(_0x2afc9a(0x15c),_0x2a4f64&&_0x2afc9a(0x38c)),'onClick':_0x5c8f2b,'children':[(0x0,react_jsx_runtime[_0x2afc9a(0x198)])(_0x2afc9a(0x403),{'className':_0x2afc9a(0xd1),'children':[(0x0,react_jsx_runtime[_0x2afc9a(0x198)])(_0x2afc9a(0x403),{'className':_0x2afc9a(0x12c),'children':[(0x0,react_jsx_runtime[_0x2afc9a(0x3e4)])(_0x2afc9a(0x375),{'className':_0x2afc9a(0x104),'children':_0x4b2772}),_0x56e5f0&&(0x0,react_jsx_runtime[_0x2afc9a(0x3e4)])(_0x2afc9a(0x375),{'className':_0x2afc9a(0x413),'children':_0x28d3fb['t'](_0x2afc9a(0xee))})]}),(0x0,react_jsx_runtime[_0x2afc9a(0x198)])(_0x2afc9a(0x403),{'className':_0x2afc9a(0x3bf),'children':[(0x0,react_jsx_runtime[_0x2afc9a(0x3e4)])(_0x2afc9a(0x375),{'className':_0x2afc9a(0x340),'children':_0x35e7e6['time']}),(0x0,react_jsx_runtime[_0x2afc9a(0x3e4)])('span',{'className':_0x2afc9a(0x2cc),'children':parseAction(_0x45cbc2,_0x28d3fb)})]})]}),_0x378618&&(0x0,react_jsx_runtime[_0x2afc9a(0x3e4)])(_univerjs_design[_0x2afc9a(0x390)],{'size':_0x2afc9a(0x234),'variant':_0x2afc9a(0x189),'onClick':_0x34721b,'children':_0x28d3fb['t']('editHistory.header.revert')})]});}function MobileVersionListPanel(){const _0x627049=_0x55b227,_0x287c2f=(0x0,_univerjs_ui[_0x627049(0x21d)])(HistoryManagerService),_0x91020e=(0x0,_univerjs_ui[_0x627049(0x21d)])(_univerjs_core[_0x627049(0x41c)]),_0x367e48=(0x0,_univerjs_ui[_0x627049(0x156)])(_0x287c2f[_0x627049(0x120)]),_0x319020=(0x0,_univerjs_ui[_0x627049(0x156)])(_0x287c2f[_0x627049(0x384)]),_0x309e73=(0x0,react['useRef'])(null),[_0x488d70,_0x5b34e5]=(0x0,react['useState'])(!![]);(0x0,react['useEffect'])(()=>{const _0x3022f6=_0x627049,_0x7b3936=_0x309e73[_0x3022f6(0x363)];if(!_0x7b3936||!_0x488d70)return;let _0x4703cf;const _0x391742=()=>{clearTimeout(_0x4703cf),_0x4703cf=setTimeout(()=>{const {scrollTop:_0x2885e0,scrollHeight:_0x4ff874,clientHeight:_0x964240}=_0x7b3936;if(_0x2885e0+_0x964240>=_0x4ff874-0xa)_0x287c2f['loadMoreVersions']();},0x64);};return _0x7b3936[_0x3022f6(0x422)](_0x3022f6(0x275),_0x391742),()=>{const _0x44910d=_0x3022f6;clearTimeout(_0x4703cf),_0x7b3936[_0x44910d(0x211)](_0x44910d(0x275),_0x391742);};},[_0x287c2f,_0x488d70]);const _0x51d376=transformVersionsToDateGroup(_0x367e48!==null&&_0x367e48!==void 0x0?_0x367e48:[]);return(0x0,react_jsx_runtime['jsx'])(_0x627049(0x403),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-z-10\x20univer-flex\x20univer-flex-col\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-justify-end\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':(0x0,react_jsx_runtime[_0x627049(0x198)])(_0x627049(0x403),{'className':(0x0,_univerjs_design[_0x627049(0x1f6)])(_0x627049(0x314),_0x488d70?'univer-h-[60%]':_0x627049(0x193)),'children':[(0x0,react_jsx_runtime[_0x627049(0x198)])('div',{'className':_0x627049(0x118),'onClick':()=>_0x5b34e5(_0x1c6478=>!_0x1c6478),'children':[(0x0,react_jsx_runtime[_0x627049(0x3e4)])('div',{'className':_0x627049(0x21a)}),!_0x488d70&&(0x0,react_jsx_runtime[_0x627049(0x3e4)])('span',{'className':_0x627049(0x236),'children':_0x91020e['t'](_0x627049(0x3af))})]}),_0x488d70&&(0x0,react_jsx_runtime['jsx'])(react_jsx_runtime['Fragment'],{'children':!_0x367e48?(0x0,react_jsx_runtime[_0x627049(0x3e4)])(_0x627049(0x403),{'className':_0x627049(0x16d),'children':(0x0,react_jsx_runtime[_0x627049(0x3e4)])(_univerjs_icons[_0x627049(0x206)],{'className':_0x627049(0x134)})}):(0x0,react_jsx_runtime[_0x627049(0x198)])(_0x627049(0x403),{'ref':_0x309e73,'className':_0x627049(0x195),'children':[_0x51d376['map'](_0x2ab439=>(0x0,react_jsx_runtime[_0x627049(0x198)])('div',{'children':[(0x0,react_jsx_runtime[_0x627049(0x3e4)])(_0x627049(0x403),{'className':_0x627049(0x15f),'children':parseDateDayWithLocale(_0x2ab439[_0x627049(0x2bb)],_0x91020e['getCurrentLocale']())}),_0x2ab439[_0x627049(0x1a5)][_0x627049(0x36a)]((_0x55db28,_0x361171)=>(0x0,react_jsx_runtime[_0x627049(0x3e4)])(VersionItem$1,{'item':_0x55db28,'isNewest':_0x51d376[0x0]===_0x2ab439&&_0x361171===0x0},_0x55db28['id']))]},_0x2ab439['dateString'])),_0x319020&&(0x0,react_jsx_runtime['jsx'])(_0x627049(0x403),{'className':_0x627049(0x345),'children':(0x0,react_jsx_runtime[_0x627049(0x3e4)])(_univerjs_icons['LoadingMultiIcon'],{'className':_0x627049(0x134)})})]})})]})});}let MobileVersionListController=class MobileVersionListController extends _univerjs_core['Disposable']{constructor(_0x27e9cb,_0x32f269){const _0x4ca861=_0x55b227;super(),this[_0x4ca861(0x24e)]=_0x27e9cb,this[_0x4ca861(0x28b)]=_0x32f269,this[_0x4ca861(0x1de)](this[_0x4ca861(0x24e)][_0x4ca861(0x1a4)](_univerjs_ui[_0x4ca861(0xcc)][_0x4ca861(0x2e3)],()=>(0x0,_univerjs_ui['connectInjector'])(MobileVersionListPanel,this[_0x4ca861(0x28b)])));}};MobileVersionListController=__decorate([__decorateParam(0x0,_univerjs_ui[_0x55b227(0x176)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x55b227(0x242)])(_univerjs_core[_0x55b227(0x230)]))],MobileVersionListController);var DisableDialogService=class extends _univerjs_core[_0x55b227(0x117)]{constructor(){const _0x4b9798=_0x55b227;super(),_defineProperty(this,_0x4b9798(0x38f),new rxjs[(_0x4b9798(0x2eb))]());}[_0x55b227(0x3c3)](){const _0x46ca1c=_0x55b227;return(0x0,_univerjs_core[_0x46ca1c(0x3ac)])(()=>{});}[_0x55b227(0x1d1)](){}['closeAll'](_0x5bdf0f){}[_0x55b227(0x1f1)](){const _0x4283f4=_0x55b227;return this[_0x4283f4(0x38f)][_0x4283f4(0x152)]();}};let UniverEditHistoryViewerMobilePlugin=class UniverEditHistoryViewerMobilePlugin extends _univerjs_core[_0x55b227(0x24a)]{constructor(_0x4344ef=defaultPluginConfig,_0x4070c7,_0x26a478,_0x5abea9){const _0x760bf6=_0x55b227;super(),this['_config']=_0x4344ef,this['_injector']=_0x4070c7,this[_0x760bf6(0x33c)]=_0x26a478,this[_0x760bf6(0x37a)]=_0x5abea9;const {..._0x8eec34}=(0x0,_univerjs_core[_0x760bf6(0x233)])({},defaultPluginConfig,this['_config']);this[_0x760bf6(0x37a)]['setConfig'](EDIT_HISTORY_VIEWER_PLUGIN_CONFIG_KEY,_0x8eec34);}[_0x55b227(0xf4)](){const _0x12f5d7=_0x55b227;[[HistoryManagerService],[MobileHistoryManagerController],[VersionDiffService],[HistoryFetchService],[MobileVersionListController],[DisableStateController],[_univerjs_pro_collaboration[_0x12f5d7(0x352)],{'useClass':_univerjs_pro_collaboration_client[_0x12f5d7(0x338)]}],[_univerjs_ui['IDialogService'],{'useClass':DisableDialogService}],[_univerjs_drawing[_0x12f5d7(0x2e9)],{'useClass':_univerjs_pro_collaboration_client[_0x12f5d7(0x11a)]}]][_0x12f5d7(0x1e8)](_0x225b05=>this[_0x12f5d7(0x28b)][_0x12f5d7(0x201)](_0x225b05)),this[_0x12f5d7(0x28b)]['get'](MobileHistoryManagerController);}[_0x55b227(0xd9)](){const _0xd719b4=_0x55b227;[[VersionDiffRenderController]][_0xd719b4(0x1e8)](_0x2a52a6=>{const _0x59dae9=_0xd719b4;this[_0x59dae9(0x1de)](this[_0x59dae9(0x33c)][_0x59dae9(0x100)](_univerjs_core[_0x59dae9(0x3b8)]['UNIVER_SHEET'],_0x2a52a6));}),this['_injector']['get'](DisableStateController),this[_0xd719b4(0x28b)][_0xd719b4(0x17d)](MobileVersionListController);}[_0x55b227(0x3f3)](){const _0x49b687=_0x55b227;this[_0x49b687(0x28b)]['get'](VersionDiffService);}};_defineProperty(UniverEditHistoryViewerMobilePlugin,_0x55b227(0x29a),_0x55b227(0x246)),_defineProperty(UniverEditHistoryViewerMobilePlugin,'packageName',name),_defineProperty(UniverEditHistoryViewerMobilePlugin,_0x55b227(0x30f),version),UniverEditHistoryViewerMobilePlugin=__decorate([(0x0,_univerjs_core[_0x55b227(0x1ac)])(_univerjs_sheets_ui['UniverSheetsMobileUIPlugin'],_univerjs_network[_0x55b227(0x3a0)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x55b227(0x242)])(_univerjs_core[_0x55b227(0x230)])),__decorateParam(0x2,_univerjs_engine_render[_0x55b227(0x14d)]),__decorateParam(0x3,_univerjs_core['IConfigService'])],UniverEditHistoryViewerMobilePlugin);function HistoryViewHeader(){const _0x43f5e3=_0x55b227,_0x545f6c=(0x0,_univerjs_ui[_0x43f5e3(0x21d)])(HistoryManagerService),_0x2b49ec=(0x0,_univerjs_ui[_0x43f5e3(0x21d)])(_univerjs_core[_0x43f5e3(0x41c)]),_0x1b1d28=(0x0,_univerjs_ui[_0x43f5e3(0x156)])(_0x545f6c[_0x43f5e3(0x31c)]),_0x42ae2e=(0x0,react[_0x43f5e3(0x23f)])(()=>{if(!_0x1b1d28)return![];return _0x545f6c['getSelectedVersionCanRevert']();},[_0x545f6c,_0x1b1d28]),_0x2c62e2=(0x0,react[_0x43f5e3(0x276)])(()=>{const _0x5a9990=_0x43f5e3;_0x545f6c[_0x5a9990(0x1e5)]=_0x5a9990(0x25c);},[_0x545f6c]),_0x394083=(0x0,react['useCallback'])(()=>{const _0x578ab8=_0x43f5e3;_0x545f6c[_0x578ab8(0x3ec)]();},[_0x545f6c]);return(0x0,react_jsx_runtime[_0x43f5e3(0x198)])(_0x43f5e3(0x403),{'className':(0x0,_univerjs_design['clsx'])('univer-flex\x20univer-h-12\x20univer-cursor-default\x20univer-items-center',_univerjs_design[_0x43f5e3(0x119)]),'children':[(0x0,react_jsx_runtime[_0x43f5e3(0x3e4)])('a',{'className':'univer-ml-2.5\x20univer-flex\x20univer-size-8\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded','role':_0x43f5e3(0x23b),'onClick':_0x2c62e2,'children':(0x0,react_jsx_runtime[_0x43f5e3(0x3e4)])(_univerjs_icons[_0x43f5e3(0x1f3)],{'className':_0x43f5e3(0x1e1)})}),(0x0,react_jsx_runtime['jsx'])(_0x43f5e3(0x403),{'className':_0x43f5e3(0x16d),'children':_0x42ae2e&&(0x0,react_jsx_runtime[_0x43f5e3(0x3e4)])(_univerjs_design['Button'],{'variant':'primary','onClick':_0x394083,'children':_0x2b49ec['t'](_0x43f5e3(0x1af))})})]});}let HistoryManagerController=class HistoryManagerController extends _univerjs_core['Disposable']{constructor(_0x6d0ead,_0x210a7a,_0x1a79b3,_0x3006fc,_0x2ff625,_0x290dcf,_0x2bad1a){const _0x51a7ff=_0x55b227;super(),this['_permissionService']=_0x6d0ead,this[_0x51a7ff(0x24e)]=_0x210a7a,this[_0x51a7ff(0x2e2)]=_0x1a79b3,this[_0x51a7ff(0xe9)]=_0x3006fc,this[_0x51a7ff(0x2b4)]=_0x2ff625,this[_0x51a7ff(0x28b)]=_0x290dcf,this['_configService']=_0x2bad1a,this[_0x51a7ff(0x173)]();}[_0x55b227(0x173)](){const _0x3f5dd4=_0x55b227;this[_0x3f5dd4(0x1de)](this['_historyManagerService'][_0x3f5dd4(0x31c)][_0x3f5dd4(0x1cd)](_0x430666=>{const _0x340c32=_0x3f5dd4;if(_0x430666)this[_0x340c32(0x2b4)][_0x340c32(0x3ae)](_0x430666);})),this[_0x3f5dd4(0x1de)](this[_0x3f5dd4(0x177)][_0x3f5dd4(0x228)][_0x3f5dd4(0x1cd)](_0x149ce2=>{const _0xaff861=_0x3f5dd4,_0x13e1b6=this[_0xaff861(0x2b4)]['unitId'];if(!_0x13e1b6)return;if(_0x149ce2[_0xaff861(0x2b6)]===_univerjs_protocol[_0xaff861(0x257)][_0xaff861(0x34e)]&&_0x149ce2[_0xaff861(0x3a1)]===!![])this[_0xaff861(0x177)][_0xaff861(0x221)](new _univerjs_sheets[(_0xaff861(0x39f))](_0x13e1b6)['id'],![]);if(_0x149ce2[_0xaff861(0x2b6)]===_univerjs_protocol[_0xaff861(0x257)][_0xaff861(0x1f8)]&&_0x149ce2[_0xaff861(0x3a1)]===!![])this['_permissionService'][_0xaff861(0x221)](new _univerjs_sheets[(_0xaff861(0x409))](_0x13e1b6)['id'],![]);if(_0x149ce2[_0xaff861(0x2b6)]===_univerjs_protocol['UnitAction'][_0xaff861(0x1eb)]&&_0x149ce2['value']===!![])this['_permissionService'][_0xaff861(0x221)](new _univerjs_sheets[(_0xaff861(0x2a1))](_0x13e1b6)['id'],![]);if(_0x149ce2[_0xaff861(0x2b6)]===_univerjs_protocol[_0xaff861(0x257)][_0xaff861(0x3cf)]&&_0x149ce2[_0xaff861(0x3a1)]===!![])this[_0xaff861(0x177)]['updatePermissionPoint'](new _univerjs_sheets[(_0xaff861(0x2e8))](_0x13e1b6)['id'],![]);if(_0x149ce2[_0xaff861(0x2b6)]===_univerjs_protocol['UnitAction']['Comment']&&_0x149ce2[_0xaff861(0x3a1)]===!![])this['_permissionService'][_0xaff861(0x221)](new _univerjs_sheets[(_0xaff861(0x39f))](_0x13e1b6)['id'],![]);if(_0x149ce2['subType']===_univerjs_protocol[_0xaff861(0x257)]['FloatImg']&&_0x149ce2[_0xaff861(0x3a1)]===!![])this[_0xaff861(0x177)][_0xaff861(0x221)](new _univerjs_sheets[(_0xaff861(0x39f))](_0x13e1b6)['id'],![]);})),this[_0x3f5dd4(0x235)]();let _0x18493f;this[_0x3f5dd4(0x1de)](this[_0x3f5dd4(0x2b4)][_0x3f5dd4(0x426)][_0x3f5dd4(0x1cd)](_0x26a448=>{const _0x163155=_0x3f5dd4;this[_0x163155(0x2e2)][_0x163155(0x350)](),_0x18493f===null||_0x18493f===void 0x0||_0x18493f[_0x163155(0x15e)]();_0x26a448===_0x163155(0x3a9)&&(this[_0x163155(0x2b4)]['showMask'](),_0x18493f=this[_0x163155(0x2e2)][_0x163155(0x29d)]({'type':_univerjs_design[_0x163155(0x32f)][_0x163155(0x18c)],'content':this[_0x163155(0xe9)]['t'](_0x163155(0x3c8)),'duration':0x3e8}));if(_0x26a448==='loaded')this[_0x163155(0x2b4)][_0x163155(0x265)]();}));}[_0x55b227(0x235)](){const _0x39644d=_0x55b227;var _0x19d266;if((_0x19d266=this[_0x39644d(0x37a)][_0x39644d(0x16c)](_0x39644d(0x1c4)))===null||_0x19d266===void 0x0?void 0x0:_0x19d266[_0x39644d(0x266)])return;this[_0x39644d(0x1de)](this[_0x39644d(0x24e)]['registerComponent'](_univerjs_ui[_0x39644d(0xcc)][_0x39644d(0x179)],()=>(0x0,_univerjs_ui['connectInjector'])(HistoryViewHeader,this[_0x39644d(0x28b)])));}};HistoryManagerController=__decorate([__decorateParam(0x0,_univerjs_core[_0x55b227(0x329)]),__decorateParam(0x1,_univerjs_ui['IUIPartsService']),__decorateParam(0x2,_univerjs_ui[_0x55b227(0x274)]),__decorateParam(0x3,(0x0,_univerjs_core[_0x55b227(0x242)])(_univerjs_core[_0x55b227(0x41c)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x55b227(0x242)])(HistoryManagerService)),__decorateParam(0x5,(0x0,_univerjs_core[_0x55b227(0x242)])(_univerjs_core[_0x55b227(0x230)])),__decorateParam(0x6,_univerjs_core[_0x55b227(0x3d6)])],HistoryManagerController);const FILTER_TABS=[{'key':0x0,'labelKey':'editHistory.panel.filterAll'},{'key':0x1,'labelKey':'editHistory.panel.filterUser'},{'key':0x2,'labelKey':_0x55b227(0x325)}];function AiAssistantSvg(_0xbd9cba){const _0x365b54=_0x55b227,{className:_0x1f222b}=_0xbd9cba;return(0x0,react_jsx_runtime[_0x365b54(0x198)])(_0x365b54(0xdb),{'className':_0x1f222b,'fill':_0x365b54(0x132),'height':'20','viewBox':'0\x200\x2020\x2020','width':'20','xmlns':_0x365b54(0x13e),'children':[(0x0,react_jsx_runtime[_0x365b54(0x3e4)])(_0x365b54(0x194),{'d':_0x365b54(0x1e7),'fill':_0x365b54(0x1f4)}),(0x0,react_jsx_runtime[_0x365b54(0x3e4)])(_0x365b54(0x22a),{'children':(0x0,react_jsx_runtime[_0x365b54(0x198)])('linearGradient',{'gradientUnits':'userSpaceOnUse','id':_0x365b54(0xf9),'x1':_0x365b54(0x24c),'x2':_0x365b54(0x3ff),'y1':'7.08645','y2':_0x365b54(0x268),'children':[(0x0,react_jsx_runtime[_0x365b54(0x3e4)])(_0x365b54(0x1a8),{'offset':_0x365b54(0x347),'stopColor':_0x365b54(0x40d)}),(0x0,react_jsx_runtime['jsx'])(_0x365b54(0x1a8),{'offset':_0x365b54(0x2f3),'stopColor':_0x365b54(0x3ed)}),(0x0,react_jsx_runtime[_0x365b54(0x3e4)])(_0x365b54(0x1a8),{'offset':_0x365b54(0x360),'stopColor':_0x365b54(0x273)}),(0x0,react_jsx_runtime[_0x365b54(0x3e4)])('stop',{'offset':'1','stopColor':_0x365b54(0x3c4)})]})})]});}function FilterTabs(_0x10acb7){const _0x420c22=_0x55b227,{value:_0x2bac3a,onChange:_0x2c3c1c}=_0x10acb7,_0x481239=(0x0,_univerjs_ui[_0x420c22(0x21d)])(_univerjs_core[_0x420c22(0x41c)]);return(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x420c22(0x14c),'children':(0x0,react_jsx_runtime[_0x420c22(0x3e4)])(_univerjs_design[_0x420c22(0x393)],{'items':FILTER_TABS[_0x420c22(0x36a)](_0x4488b1=>({'label':_0x481239['t'](_0x4488b1[_0x420c22(0x3b7)]),'value':_0x4488b1[_0x420c22(0x3c0)]})),'value':_0x2bac3a,'onChange':_0x2c3c1c})});}function VersionListPanel(){const _0x13baaf=_0x55b227;var _0x19782d,_0x22453a;const _0x742851=(0x0,_univerjs_ui[_0x13baaf(0x21d)])(HistoryManagerService),_0x589454=(0x0,_univerjs_ui[_0x13baaf(0x21d)])(HistoryFetchService),_0xbb8e8c=(0x0,_univerjs_ui[_0x13baaf(0x21d)])(VersionDiffService),_0x3a4bbb=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x13baaf(0x3d6)]),_0x4a8dd0=(0x0,_univerjs_ui[_0x13baaf(0x156)])(_0x742851[_0x13baaf(0x120)]),_0x32ef64=(0x0,_univerjs_ui[_0x13baaf(0x156)])(_0x742851[_0x13baaf(0x318)],[]),[_0x2a958f,_0x450f0e]=(0x0,react['useState'])(new Set()),[_0x587dd0,_0x20f337]=(0x0,react[_0x13baaf(0x1f2)])(new Map()),[_0x2df906,_0x4faa3c]=(0x0,react['useState'])(new Set()),[_0x52f92d,_0x334d52]=(0x0,react[_0x13baaf(0x1f2)])(0x0),_0x541260=(0x0,_univerjs_ui[_0x13baaf(0x21d)])(_univerjs_core[_0x13baaf(0x41c)]),_0x374505=(0x0,react['useRef'])(null),[_0x83ade7,_0x2f7806]=(0x0,react['useState'])(![]),[_0x187db8,_0x29a56c]=(0x0,react[_0x13baaf(0x1f2)])([]),_0x4a1ec8=(_0x19782d=(_0x22453a=_0x3a4bbb['getConfig'](_0x13baaf(0x1c4)))===null||_0x22453a===void 0x0?void 0x0:_0x22453a[_0x13baaf(0x261)])!==null&&_0x19782d!==void 0x0?_0x19782d:![],_0x1415fa=transformVersionsToDateGroup(_0x4a8dd0),[_0xb2c942,_0x1c3c14]=(0x0,react[_0x13baaf(0x1f2)])([]),_0x59f916=(0x0,react[_0x13baaf(0x23f)])(()=>{const _0x10eb72=_0x13baaf;return _0x32ef64[_0x10eb72(0x36a)](_0x43f783=>{return{'key':_0x43f783['userId'],'label':_0x43f783['name']};});},[_0x32ef64]);(0x0,react[_0x13baaf(0x22e)])(()=>{const _0x31a140=_0x13baaf;_0x742851[_0x31a140(0x1a6)]();},[]);const _0x1700ca=(0x0,react['useCallback'])(_0x5e6eec=>{const _0x3c495e=_0x13baaf;_0x1c3c14([]),_0x334d52(_0x5e6eec);if(_0x742851['unitId'])_0x742851[_0x3c495e(0x146)](_0x742851['unitId'],{'origin':_0x5e6eec});},[_0x742851]);(0x0,react[_0x13baaf(0x22e)])(()=>{const _0x3d60ea=_0x13baaf,_0x49f867=_0x374505['current'];if(!_0x49f867)return;let _0x153183;const _0x5ac554=_0x2dc938=>{clearTimeout(_0x153183),_0x153183=setTimeout(()=>{const {target:_0x496383}=_0x2dc938;if(_0x496383){const {scrollTop:_0x3117ca,scrollHeight:_0x15e504,clientHeight:_0x1fdaa9}=_0x496383;if(_0x3117ca+_0x1fdaa9>=_0x15e504-0x5)_0x742851['loadMoreVersions']();}},0x64);};return _0x49f867['addEventListener'](_0x3d60ea(0x275),_0x5ac554),()=>{const _0x12c4a6=_0x3d60ea;clearTimeout(_0x153183),_0x49f867[_0x12c4a6(0x211)]('scroll',_0x5ac554);};},[_0x742851]);const _0x364847=(0x0,react['useCallback'])(async _0x637394=>{const _0x154b71=_0x13baaf,_0x528173=_0x637394['id'];if(_0x2a958f[_0x154b71(0x1aa)](_0x528173)){_0x450f0e(_0x2d6014=>{const _0x1cf50b=new Set(_0x2d6014);return _0x1cf50b['delete'](_0x528173),_0x1cf50b;});return;}if(_0x587dd0[_0x154b71(0x1aa)](_0x528173)){_0x450f0e(_0x29b897=>new Set(_0x29b897)['add'](_0x528173));return;}_0x4faa3c(_0x43e6f0=>new Set(_0x43e6f0)[_0x154b71(0x201)](_0x528173));try{var _0x54b909;const _0x11b687=_0x742851[_0x154b71(0x185)];if(!_0x11b687)return;const _0x4fbcd6=await _0x589454['getHistoryChangesets']({},{'unitId':_0x11b687,'startRevision':_0x637394[_0x154b71(0x136)],'endRevision':_0x637394['endRev']});if(((_0x54b909=_0x4fbcd6[_0x154b71(0x282)])===null||_0x54b909===void 0x0?void 0x0:_0x54b909[_0x154b71(0x3a4)])===0x1&&_0x4fbcd6[_0x154b71(0x2c6)]){const _0x281ddf=_0x4fbcd6[_0x154b71(0x2c6)][_0x154b71(0x428)]()[_0x154b71(0x36a)](_0x4f34ef=>{const _0x4d12e6=_0x154b71;var _0x29bea0,_0x1eee49;const _0x8cfa7c=(0x0,_univerjs_pro_collaboration['parseProtocolChangeset'])(_0x4f34ef),_0x39ca47=_0x4f34ef[_0x4d12e6(0x395)]||_0x8cfa7c[_0x4d12e6(0x395)],_0x5e51c1=(_0x29bea0=_0x4fbcd6[_0x4d12e6(0x27e)])===null||_0x29bea0===void 0x0?void 0x0:_0x29bea0[_0x39ca47],_0x4950e1=((_0x1eee49=_0x4f34ef[_0x4d12e6(0x36b)])===null||_0x1eee49===void 0x0?void 0x0:_0x1eee49[_0x4d12e6(0x36a)](_0x20ef87=>_0x20ef87['id']))||[];return{'id':_0x528173+'-detail-'+_0x4f34ef['revision'],'unitId':_0x4f34ef[_0x4d12e6(0x27c)],'startRev':_0x4f34ef[_0x4d12e6(0x2be)],'endRev':_0x4f34ef[_0x4d12e6(0x2be)],'time':_0x4f34ef[_0x4d12e6(0x1d8)]?_0x4f34ef[_0x4d12e6(0x1d8)]*0x3e8:void 0x0,'user':(_0x5e51c1===null||_0x5e51c1===void 0x0?void 0x0:_0x5e51c1[_0x4d12e6(0x22c)])||'','users':[(_0x5e51c1===null||_0x5e51c1===void 0x0?void 0x0:_0x5e51c1['name'])||''],'commands':_0x4950e1,'isAnonymous':![],'isDetail':!![],'parentId':_0x528173,'additionalFields':_0x4f34ef[_0x4d12e6(0x304)]};});_0x20f337(_0xc0a421=>new Map(_0xc0a421)[_0x154b71(0x10c)](_0x528173,_0x281ddf)),_0x281ddf[_0x154b71(0x1e8)](_0x282748=>{const _0x509f4f=_0x154b71;_0x742851[_0x509f4f(0x1ae)](_0x282748);});for(const _0x96267 of _0x281ddf)await _0xbb8e8c[_0x154b71(0x2d9)](_0x96267['id']);_0x450f0e(_0x413737=>new Set(_0x413737)[_0x154b71(0x201)](_0x528173));}}catch(_0x2e6098){console['error'](_0x154b71(0x162),_0x2e6098);}finally{_0x4faa3c(_0x425e55=>{const _0x5ed2ee=_0x154b71,_0x36c538=new Set(_0x425e55);return _0x36c538[_0x5ed2ee(0x200)](_0x528173),_0x36c538;});}},[_0x2a958f,_0x587dd0,_0x742851,_0x589454,_0xbb8e8c]);if(!_0x4a8dd0)return(0x0,react_jsx_runtime[_0x13baaf(0x3e4)])(Empty,{});return(0x0,react_jsx_runtime[_0x13baaf(0x198)])('div',{'ref':_0x374505,'className':_0x13baaf(0x311),'children':[_0x4a1ec8&&(0x0,react_jsx_runtime[_0x13baaf(0x198)])(_0x13baaf(0x403),{'className':_0x13baaf(0x2f6),'children':[(0x0,react_jsx_runtime[_0x13baaf(0x3e4)])('div',{'className':_0x13baaf(0x20c),'children':(0x0,react_jsx_runtime[_0x13baaf(0x3e4)])(FilterTabs,{'value':_0x52f92d,'onChange':_0x1700ca})}),(0x0,react_jsx_runtime[_0x13baaf(0x3e4)])(_univerjs_design[_0x13baaf(0x1df)],{'align':'end','open':_0x83ade7,'onOpenChange':_0x34da60=>{_0x2f7806(_0x34da60);if(_0x34da60)_0x29a56c(_0xb2c942);},'overlay':(0x0,react_jsx_runtime[_0x13baaf(0x198)])('div',{'className':'univer-min-w-[240px]','children':[(0x0,react_jsx_runtime[_0x13baaf(0x3e4)])(_0x13baaf(0x403),{'className':'univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-font-semibold','children':_0x541260['t'](_0x13baaf(0x3e5))}),(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x13baaf(0x2d8)}),(0x0,react_jsx_runtime[_0x13baaf(0x3e4)])('div',{'className':_0x13baaf(0x419),'children':_0x59f916['map'](_0x1f9fb4=>{const _0x1cecae=_0x13baaf,_0x2cd1f4=_0x187db8[_0x1cecae(0xe5)](_0x1f9fb4[_0x1cecae(0x3c0)]);return(0x0,react_jsx_runtime['jsxs'])(_0x1cecae(0x403),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-bg-gray-100\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:hover:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','onClick':()=>{const _0x2c7e80=_0x1cecae;_0x29a56c(_0x2cd1f4?_0x187db8[_0x2c7e80(0x192)](_0x3285bd=>_0x3285bd!==_0x1f9fb4['key']):[..._0x187db8,_0x1f9fb4[_0x2c7e80(0x3c0)]]);},'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x1cecae(0x181)],{'checked':_0x2cd1f4}),(0x0,react_jsx_runtime[_0x1cecae(0x3e4)])(_0x1cecae(0x375),{'className':_0x1cecae(0xd6),'children':_0x1f9fb4[_0x1cecae(0x312)]})]},_0x1f9fb4['key']);})}),(0x0,react_jsx_runtime['jsx'])(_0x13baaf(0x403),{'className':_0x13baaf(0x2d8)}),(0x0,react_jsx_runtime[_0x13baaf(0x198)])(_0x13baaf(0x403),{'className':_0x13baaf(0xe8),'children':[(0x0,react_jsx_runtime[_0x13baaf(0x3e4)])(_univerjs_design[_0x13baaf(0x390)],{'size':'middle','variant':_0x13baaf(0x224),'onClick':()=>{_0x29a56c(_0xb2c942),_0x2f7806(![]);},'children':_0x541260['t'](_0x13baaf(0x2ae))}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x13baaf(0x390)],{'size':'middle','onClick':()=>{const _0x503e9a=_0x13baaf;_0x1c3c14(_0x187db8);if(_0x742851[_0x503e9a(0x185)])_0x742851['loadInitialVersions'](_0x742851[_0x503e9a(0x185)],{'origin':_0x52f92d,'userIds':_0x187db8});_0x2f7806(![]);},'children':_0x541260['t'](_0x13baaf(0x2bc))})]})]}),'children':(0x0,react_jsx_runtime[_0x13baaf(0x3e4)])(_univerjs_design[_0x13baaf(0x390)],{'className':'univer-rounded-xs\x20univer-h-6\x20univer-cursor-pointer\x20univer-p-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','size':_0x13baaf(0x191),'variant':_0x13baaf(0x224),'children':(0x0,react_jsx_runtime[_0x13baaf(0x3e4)])(_univerjs_icons['FunnelIcon'],{'className':(0x0,_univerjs_design[_0x13baaf(0x1f6)])(_0x13baaf(0x147),{'univer-text-blue-600\x20dark:!univer-text-blue-400':_0xb2c942['length']>0x0})})})})]}),(0x0,react_jsx_runtime['jsx'])('div',{'className':'univer-relative\x20univer-flex-1\x20univer-space-y-2\x20univer-pb-4','children':_0x1415fa['map']((_0x13c8c2,_0x53db24)=>(0x0,react_jsx_runtime[_0x13baaf(0x198)])(react[_0x13baaf(0x14e)],{'children':[(0x0,react_jsx_runtime[_0x13baaf(0x3e4)])(VersionDate,{'date':_0x13c8c2[_0x13baaf(0x423)],'startDate':_0x13c8c2[_0x13baaf(0x2bb)],'endDate':_0x13c8c2['endDateString']}),_0x13c8c2[_0x13baaf(0x1a5)][_0x13baaf(0x36a)]((_0x2c5c33,_0x23d7e0)=>{const _0x1e10ac=_0x13baaf,_0x37ee1c=_0x2a958f[_0x1e10ac(0x1aa)](_0x2c5c33['id']),_0x8ae2f7=_0x2df906['has'](_0x2c5c33['id']),_0x444f71=_0x587dd0['get'](_0x2c5c33['id'])||[];return(0x0,react_jsx_runtime[_0x1e10ac(0x198)])(react['Fragment'],{'children':[(0x0,react_jsx_runtime['jsx'])(VersionItem,{'item':_0x2c5c33,'onToggleExpand':_0x364847,'isExpanded':_0x37ee1c,'isLoadingDetail':_0x8ae2f7}),_0x37ee1c&&_0x444f71['map']((_0x242bf7,_0x10e304)=>(0x0,react_jsx_runtime[_0x1e10ac(0x198)])('div',{'className':_0x1e10ac(0x288),'style':{'marginTop':_0x1e10ac(0x42a),'marginBottom':_0x1e10ac(0x42a)},'children':[(0x0,react_jsx_runtime[_0x1e10ac(0x198)])(_0x1e10ac(0x403),{'className':'univer-absolute\x20univer-top-0\x20univer-h-full','style':{'left':'30px','width':'10px'},'children':[_0x10e304<_0x444f71[_0x1e10ac(0x2d2)]-0x1&&(0x0,react_jsx_runtime[_0x1e10ac(0x3e4)])(_0x1e10ac(0x403),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-absolute\x20univer-top-0\x20univer-h-full\x20univer-bg-gray-100\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','style':{'left':'0','width':_0x1e10ac(0x21c)}}),_0x10e304===_0x444f71[_0x1e10ac(0x2d2)]-0x1&&(0x0,react_jsx_runtime[_0x1e10ac(0x3e4)])('div',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-absolute\x20univer-top-0\x20univer-bg-gray-100\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','style':{'left':'0','width':_0x1e10ac(0x21c),'height':'50%'}}),(0x0,react_jsx_runtime['jsx'])(_0x1e10ac(0x403),{'className':_0x1e10ac(0x1a0),'style':{'left':'0','width':'10px','height':'1px','transform':'translateY(-50%)'}})]}),(0x0,react_jsx_runtime['jsx'])(VersionItem,{'item':_0x242bf7,'isDetail':!![]})]},_0x53db24+'-'+_0x23d7e0+_0x1e10ac(0x18b)+_0x10e304))]},_0x53db24+'-'+_0x23d7e0);})]},_0x13c8c2[_0x13baaf(0x423)]))})]});}function Empty(){const _0x3cd87a=_0x55b227;return(0x0,react_jsx_runtime[_0x3cd87a(0x3e4)])(_0x3cd87a(0x403),{'className':_0x3cd87a(0x3c1),'children':(0x0,react_jsx_runtime[_0x3cd87a(0x3e4)])(_0x3cd87a(0x375),{'className':_0x3cd87a(0x25b),'children':(0x0,react_jsx_runtime[_0x3cd87a(0x3e4)])(_univerjs_icons['LoadingMultiIcon'],{'className':_0x3cd87a(0x34d)})})});}function VersionDate(_0x53ee7b){const _0x338253=_0x55b227,_0x3879c3=(0x0,_univerjs_ui[_0x338253(0x21d)])(_univerjs_core['LocaleService']),{date:_0xe44a4f,startDate:startDate=_0xe44a4f}=_0x53ee7b;return(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x338253(0x2c0),'children':parseDateDayWithLocale(startDate,_0x3879c3[_0x338253(0x35e)]())});}function VersionItem(_0x28b8cd){const _0x59c994=_0x55b227,{item:_0x3be85b,onToggleExpand:_0x4b0bef,isExpanded:_0x4488ca,isLoadingDetail:_0x5ca446,isDetail:_0x32d1c4}=_0x28b8cd,{time:_0x3aa101,user:_0x262a93,startRevCreateTime:_0x2e9342,endRevCreateTime:_0x20ad22,users:_0x55c32c}=_0x3be85b,_0x2eccb1=(0x0,_univerjs_ui['useDependency'])(HistoryManagerService),_0x2e6ed4=(0x0,_univerjs_ui['useDependency'])(VersionDiffService),_0xf285db=(0x0,_univerjs_ui[_0x59c994(0x156)])(_0x2eccb1[_0x59c994(0x31c)],'',!![])===_0x3be85b['id'],_0x3858b4=_0x2eccb1[_0x59c994(0x254)]()===_0x3be85b[_0x59c994(0x298)],_0x8b0e2c=!_0x3858b4&&_0x2eccb1[_0x59c994(0xca)],_0x27270f=(0x0,_univerjs_ui[_0x59c994(0x21d)])(_univerjs_core[_0x59c994(0x41c)]),_0x4b602a=_0x27270f[_0x59c994(0x35e)](),_0x4b8a37=parseDateWithLocale(_0x3aa101,_0x4b602a),_0x267805=parseDateWithLocale(_0x2e9342,_0x4b602a),_0x35129e=parseDateWithLocale(_0x20ad22,_0x4b602a),_0x39201f=_0x27270f['t'](_0x59c994(0xee)),_0x1276cb=_0x3be85b['startRev']!==_0x3be85b['endRev'],_0x44794b=Boolean(_0x3be85b[_0x59c994(0x304)]),_0x9c6f9e=(0x0,react[_0x59c994(0x23f)])(()=>{const _0x1e9bdb=_0x59c994;let _0x3d16c5=_0x262a93||_0x27270f['t']('editHistory.panel.unknownUser');if(_0x55c32c&&_0x55c32c[_0x1e9bdb(0x192)](_0x34521b=>_0x34521b)['length']>0x0)_0x3d16c5=_0x55c32c[_0x1e9bdb(0x192)](_0x3cfbf2=>_0x3cfbf2)[_0x1e9bdb(0x126)](',\x20');if(_0x44794b)return''+_0x27270f['t'](_0x1e9bdb(0x34f))+(_0x3d16c5?'\x20('+_0x3d16c5+')':'');return _0x3d16c5;},[_0x44794b,_0x262a93,_0x55c32c,_0x27270f]),_0x14d6f2=(0x0,react[_0x59c994(0x276)])(async _0x262195=>{const _0x4e1dd0=_0x59c994;if(_0x2eccb1[_0x4e1dd0(0x31b)]==='loading')return;_0x2eccb1[_0x4e1dd0(0x344)]=_0x262195,_0x32d1c4&&(await _0x2e6ed4['ensureVersion'](_0x262195),await _0x2eccb1[_0x4e1dd0(0x3ae)](_0x262195));},[_0x2eccb1,_0x2e6ed4,_0x32d1c4]),_0x51ae56=(0x0,react[_0x59c994(0x276)])(_0x337695=>{const _0x3ffdef=_0x59c994;_0x2eccb1[_0x3ffdef(0x3ec)](_0x337695);},[_0x2eccb1]),_0x1cb8f5=(0x0,react[_0x59c994(0x276)])(_0x5bcf2c=>{const _0x2f49f7=_0x59c994;_0x5bcf2c[_0x2f49f7(0x323)]();if(_0x4b0bef&&!_0x5ca446)_0x4b0bef(_0x3be85b);},[_0x4b0bef,_0x3be85b,_0x5ca446]);return(0x0,react_jsx_runtime[_0x59c994(0x198)])(_0x59c994(0x403),{'className':(0x0,_univerjs_design[_0x59c994(0x1f6)])(_0x59c994(0x1b5),{'univer-bg-gray-50\x20dark:!univer-bg-gray-900':_0xf285db,'univer-ml-6':_0x32d1c4}),'onClick':()=>_0x14d6f2(_0x3be85b['id']),'children':[(0x0,react_jsx_runtime[_0x59c994(0x3e4)])(_0x59c994(0x403),{'className':_0x59c994(0x3c1),'style':{'width':_0x59c994(0x391)},'children':_0x1276cb&&!_0x32d1c4&&(0x0,react_jsx_runtime[_0x59c994(0x3e4)])(_0x59c994(0x403),{'onClick':_0x1cb8f5,'className':'univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','children':_0x5ca446?(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x59c994(0x206)],{'className':_0x59c994(0x2c7)}):_0x4488ca?(0x0,react_jsx_runtime[_0x59c994(0x3e4)])(_univerjs_icons[_0x59c994(0x232)],{'className':_0x59c994(0x1dc)}):(0x0,react_jsx_runtime[_0x59c994(0x3e4)])(_univerjs_icons['MoreRightIcon'],{'className':'univer-size-8\x20univer-text-gray-400'})})}),(0x0,react_jsx_runtime[_0x59c994(0x198)])('div',{'className':'univer-flex\x20univer-flex-1\x20univer-flex-col\x20univer-gap-1','children':[(0x0,react_jsx_runtime[_0x59c994(0x198)])(_0x59c994(0x403),{'className':'univer-flex\x20univer-min-h-6\x20univer-w-full\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x59c994(0x198)])(_0x59c994(0x403),{'className':_0x59c994(0x310),'children':[_0x44794b&&(0x0,react_jsx_runtime[_0x59c994(0x3e4)])(AiAssistantSvg,{'className':'univer-size-4\x20univer-shrink-0'}),(0x0,react_jsx_runtime[_0x59c994(0x3e4)])(_0x59c994(0x375),{'className':_0x59c994(0x18d),'children':_0x9c6f9e}),(0x0,react_jsx_runtime['jsx'])('span',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-center\x20univer-text-gray-500\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-text-gray-400\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x32d1c4?_0x4b8a37[_0x59c994(0xe3)]:_0x2e9342!==_0x20ad22?_0x267805[_0x59c994(0xe3)]+_0x59c994(0x1bd)+_0x35129e['time']:_0x267805[_0x59c994(0xe3)]}),_0x3858b4&&(0x0,react_jsx_runtime['jsx'])(_0x59c994(0x375),{'className':_0x59c994(0x41a),'children':_0x39201f})]}),(0x0,react_jsx_runtime[_0x59c994(0x3e4)])('div',{'children':_0x8b0e2c&&(0x0,react_jsx_runtime[_0x59c994(0x3e4)])(_univerjs_design[_0x59c994(0x412)],{'title':_0x27270f['t'](_0x59c994(0x3ea)),'children':(0x0,react_jsx_runtime[_0x59c994(0x3e4)])(_0x59c994(0x403),{'onClick':_0x4f22e8=>{const _0x1921d6=_0x59c994;_0x4f22e8[_0x1921d6(0x323)](),_0x51ae56(_0x3be85b['id']);},'className':_0x59c994(0x1e6),'children':(0x0,react_jsx_runtime[_0x59c994(0x3e4)])(_univerjs_icons[_0x59c994(0x2fe)],{})})})})]}),(0x0,react_jsx_runtime[_0x59c994(0x3e4)])(_0x59c994(0x403),{'className':_0x59c994(0x19f),'children':parseAction(_0x3be85b,_0x27270f)})]})]});}const HISTORY_PANEL_KEY=_0x55b227(0x2c4);let VersionListController=class VersionListController extends _univerjs_core[_0x55b227(0x117)]{constructor(_0x462c52,_0x3de8ba,_0x5dcbc9,_0x5c16ca,_0x5ebbee){const _0x3139c4=_0x55b227;super(),this['_sidebarService']=_0x462c52,this[_0x3139c4(0x370)]=_0x3de8ba,this[_0x3139c4(0xe9)]=_0x5dcbc9,this[_0x3139c4(0x2b4)]=_0x5c16ca,this[_0x3139c4(0x37a)]=_0x5ebbee,_defineProperty(this,_0x3139c4(0x40a),null),this[_0x3139c4(0x173)]();}['_init'](){const _0x3f5998=_0x55b227;this[_0x3f5998(0x368)]();}['_openPanel'](){const _0x202c6a=_0x55b227;var _0x30b10a;if(this[_0x202c6a(0x40a)])return;const _0x124054=((_0x30b10a=this['_configService'][_0x202c6a(0x16c)](_0x202c6a(0x1c4)))===null||_0x30b10a===void 0x0?void 0x0:_0x30b10a['historyPanelComponentKey'])||HISTORY_PANEL_KEY,_0x3af64f={'header':{'title':this[_0x202c6a(0xe9)]['t'](_0x202c6a(0x3af))},'children':{'label':_0x124054},'onClose':()=>{const _0x359408=_0x202c6a;this[_0x359408(0x40a)]=null,this[_0x359408(0x2b4)][_0x359408(0x1e5)]='exited';}};this['_sidebarDisposable']=this['_sidebarService']['open']({..._0x3af64f});}[_0x55b227(0x368)](){const _0x49cc3d=_0x55b227;this[_0x49cc3d(0x1de)](this['_componentManager'][_0x49cc3d(0x142)](HISTORY_PANEL_KEY,VersionListPanel)),this[_0x49cc3d(0x1de)](this['_historyManagerService'][_0x49cc3d(0x1db)][_0x49cc3d(0x1cd)](_0x3e3af0=>{const _0x5b140d=_0x49cc3d;_0x3e3af0&&this[_0x5b140d(0x11f)]();}));}};VersionListController=__decorate([__decorateParam(0x0,_univerjs_ui['ISidebarService']),__decorateParam(0x1,(0x0,_univerjs_core[_0x55b227(0x242)])(_univerjs_ui[_0x55b227(0x20b)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x55b227(0x242)])(_univerjs_core[_0x55b227(0x41c)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x55b227(0x242)])(HistoryManagerService)),__decorateParam(0x4,_univerjs_core[_0x55b227(0x3d6)])],VersionListController);let UniverEditHistoryViewerPlugin=class UniverEditHistoryViewerPlugin extends _univerjs_core[_0x55b227(0x24a)]{constructor(_0x22d433=defaultPluginConfig,_0x59178c,_0x1d948e,_0x25638f){const _0x88774c=_0x55b227;super(),this[_0x88774c(0x2d3)]=_0x22d433,this['_injector']=_0x59178c,this[_0x88774c(0x33c)]=_0x1d948e,this['_configService']=_0x25638f;const {..._0x10efd0}=(0x0,_univerjs_core['merge'])({},defaultPluginConfig,this[_0x88774c(0x2d3)]);this[_0x88774c(0x37a)][_0x88774c(0x164)](EDIT_HISTORY_VIEWER_PLUGIN_CONFIG_KEY,_0x10efd0);}[_0x55b227(0xf4)](){const _0x5c2a6f=_0x55b227;[[HistoryManagerService],[HistoryManagerController],[VersionDiffService],[HistoryFetchService],[VersionListController],[DisableStateController],[_univerjs_pro_collaboration[_0x5c2a6f(0x352)],{'useClass':_univerjs_pro_collaboration_client[_0x5c2a6f(0x338)]}],[_univerjs_ui[_0x5c2a6f(0x29b)],{'useClass':DisableDialogService}],[_univerjs_drawing[_0x5c2a6f(0x2e9)],{'useClass':_univerjs_pro_collaboration_client['CollaborationImageIoService']}]][_0x5c2a6f(0x1e8)](_0x5bf756=>this['_injector'][_0x5c2a6f(0x201)](_0x5bf756)),this[_0x5c2a6f(0x28b)][_0x5c2a6f(0x17d)](HistoryManagerController);}[_0x55b227(0xd9)](){const _0x85c824=_0x55b227;[[VersionDiffRenderController]][_0x85c824(0x1e8)](_0x586eea=>{const _0x542e8f=_0x85c824;this['disposeWithMe'](this[_0x542e8f(0x33c)][_0x542e8f(0x100)](_univerjs_core['UniverInstanceType'][_0x542e8f(0x163)],_0x586eea));}),this['_injector'][_0x85c824(0x17d)](DisableStateController),this['_injector']['get'](VersionListController);}['onSteady'](){const _0x31be5f=_0x55b227;this[_0x31be5f(0x28b)][_0x31be5f(0x17d)](VersionDiffService);}};_defineProperty(UniverEditHistoryViewerPlugin,_0x55b227(0x29a),_0x55b227(0x2e7)),_defineProperty(UniverEditHistoryViewerPlugin,_0x55b227(0x131),name),_defineProperty(UniverEditHistoryViewerPlugin,_0x55b227(0x30f),version),UniverEditHistoryViewerPlugin=__decorate([(0x0,_univerjs_core['DependentOn'])(_univerjs_sheets_ui[_0x55b227(0x18e)],_univerjs_network['UniverNetworkPlugin']),__decorateParam(0x1,(0x0,_univerjs_core[_0x55b227(0x242)])(_univerjs_core[_0x55b227(0x230)])),__decorateParam(0x2,_univerjs_engine_render[_0x55b227(0x14d)]),__decorateParam(0x3,_univerjs_core[_0x55b227(0x3d6)])],UniverEditHistoryViewerPlugin),Object[_0x55b227(0x1e0)](exports,_0x55b227(0x2b1),{'enumerable':!![],'get':function(){return HistoryManagerService;}}),exports[_0x55b227(0x196)]=HistoryModeStatus,exports[_0x55b227(0x2a8)]=HistoryOrigin,Object[_0x55b227(0x1e0)](exports,_0x55b227(0x3a7),{'enumerable':!![],'get':function(){return UniverEditHistoryViewerMobilePlugin;}}),Object['defineProperty'](exports,_0x55b227(0x25f),{'enumerable':!![],'get':function(){return UniverEditHistoryViewerPlugin;}}),Object[_0x55b227(0x1e0)](exports,_0x55b227(0x42c),{'enumerable':!![],'get':function(){return VersionDiffRenderController;}}),Object[_0x55b227(0x1e0)](exports,_0x55b227(0x18a),{'enumerable':!![],'get':function(){return VersionDiffService;}});
|
|
1
|
+
const _0x30324f=_0x6d70;(function(_0x480a3d,_0x5d6187){const _0x4cae56=_0x6d70,_0x65e198=_0x480a3d();while(!![]){try{const _0xbb66dc=-parseInt(_0x4cae56(0x3cf))/0x1+parseInt(_0x4cae56(0x39b))/0x2*(-parseInt(_0x4cae56(0x442))/0x3)+-parseInt(_0x4cae56(0x1a3))/0x4*(-parseInt(_0x4cae56(0x326))/0x5)+-parseInt(_0x4cae56(0x305))/0x6+parseInt(_0x4cae56(0x26c))/0x7+parseInt(_0x4cae56(0x41a))/0x8*(-parseInt(_0x4cae56(0x18b))/0x9)+-parseInt(_0x4cae56(0x2a4))/0xa*(-parseInt(_0x4cae56(0x285))/0xb);if(_0xbb66dc===_0x5d6187)break;else _0x65e198['push'](_0x65e198['shift']());}catch(_0x327846){_0x65e198['push'](_0x65e198['shift']());}}}(_0x356d,0x6029b),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x30324f(0x1aa)}));let _univerjs_pro_collaboration_client_ui=require('@univerjs-pro/collaboration-client-ui'),_univerjs_core=require('@univerjs/core'),_univerjs_drawing=require('@univerjs/drawing'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_ui=require('@univerjs/sheets-ui'),rxjs=require('rxjs'),_univerjs_design=require('@univerjs/design'),_univerjs_ui=require('@univerjs/ui'),_univerjs_pro_collaboration=require('@univerjs-pro/collaboration'),_univerjs_pro_sheets_chart=require('@univerjs-pro/sheets-chart'),_univerjs_pro_sheets_pivot=require('@univerjs-pro/sheets-pivot'),_univerjs_pro_sheets_shape=require('@univerjs-pro/sheets-shape'),_univerjs_pro_sheets_sparkline=require('@univerjs-pro/sheets-sparkline'),_univerjs_data_validation=require('@univerjs/data-validation'),_univerjs_sheets_conditional_formatting=require('@univerjs/sheets-conditional-formatting'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),_univerjs_sheets_filter=require('@univerjs/sheets-filter'),_univerjs_sheets_table=require('@univerjs/sheets-table'),_univerjs_network=require('@univerjs/network'),_univerjs_protocol=require('@univerjs/protocol'),_univerjs_sheets_data_validation=require('@univerjs/sheets-data-validation'),_univerjs_pro_collaboration_client=require('@univerjs-pro/collaboration-client'),react=require('react'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_icons=require('@univerjs/icons');function getAllMutations(_0x322b32=_0x30324f(0x342)){const _0x59e7cc=_0x30324f;return{'collaboration':[{'id':_univerjs_pro_collaboration[_0x59e7cc(0x3dc)]['id'],'action':_0x322b32+_0x59e7cc(0x2af)},{'id':_univerjs_pro_collaboration[_0x59e7cc(0x1c0)]['id'],'action':_0x322b32+_0x59e7cc(0x3b3)}],'sheets':[{'id':_univerjs_sheets[_0x59e7cc(0x188)]['id'],'action':_0x322b32+_0x59e7cc(0x43e)},{'id':_univerjs_sheets[_0x59e7cc(0x17c)]['id'],'action':_0x322b32+_0x59e7cc(0x200)},{'id':_univerjs_sheets[_0x59e7cc(0x246)]['id'],'action':_0x322b32+_0x59e7cc(0x1ab)},{'id':_univerjs_sheets[_0x59e7cc(0x3ef)]['id'],'action':_0x322b32+'reorderSheet'},{'id':_univerjs_sheets['SetWorksheetHideMutation']['id'],'action':_0x322b32+_0x59e7cc(0x32e)},{'id':_univerjs_sheets[_0x59e7cc(0x16f)]['id'],'action':_0x322b32+_0x59e7cc(0x1b1)},{'id':_univerjs_sheets[_0x59e7cc(0x3f4)]['id'],'action':_0x322b32+_0x59e7cc(0x3c9)},{'id':_univerjs_sheets[_0x59e7cc(0x2a9)]['id'],'action':_0x322b32+'renameWorkbook'},{'id':_univerjs_sheets[_0x59e7cc(0x206)]['id'],'action':_0x322b32+_0x59e7cc(0x493)},{'id':_univerjs_sheets[_0x59e7cc(0x205)]['id'],'action':_0x322b32+_0x59e7cc(0x3cd)},{'id':_univerjs_sheets[_0x59e7cc(0x161)]['id'],'action':_0x322b32+_0x59e7cc(0x29f)},{'id':_univerjs_sheets[_0x59e7cc(0x3d1)]['id'],'action':_0x322b32+_0x59e7cc(0x3f3)},{'id':_univerjs_sheets[_0x59e7cc(0x2f9)]['id'],'action':_0x322b32+_0x59e7cc(0x1b0)},{'id':_univerjs_sheets['MoveColsMutation']['id'],'action':_0x322b32+_0x59e7cc(0x1ef)},{'id':_univerjs_sheets['SetRowVisibleMutation']['id'],'action':_0x322b32+'showRow'},{'id':_univerjs_sheets[_0x59e7cc(0x420)]['id'],'action':_0x322b32+_0x59e7cc(0x479)},{'id':_univerjs_sheets[_0x59e7cc(0x279)]['id'],'action':_0x322b32+_0x59e7cc(0x3be)},{'id':_univerjs_sheets[_0x59e7cc(0x3e8)]['id'],'action':_0x322b32+_0x59e7cc(0x228)},{'id':_univerjs_sheets[_0x59e7cc(0x47d)]['id'],'action':_0x322b32+_0x59e7cc(0x356)},{'id':_univerjs_sheets[_0x59e7cc(0x461)]['id'],'action':_0x322b32+_0x59e7cc(0x192)},{'id':_univerjs_sheets[_0x59e7cc(0x309)]['id'],'action':_0x322b32+_0x59e7cc(0x21b)},{'id':_univerjs_sheets[_0x59e7cc(0x221)]['id'],'action':_0x322b32+_0x59e7cc(0x28e)},{'id':_univerjs_sheets[_0x59e7cc(0x198)]['id'],'action':_0x322b32+_0x59e7cc(0x457)},{'id':_univerjs_sheets[_0x59e7cc(0x17f)]['id'],'action':_0x322b32+_0x59e7cc(0x363)},{'id':_univerjs_sheets[_0x59e7cc(0x361)]['id'],'action':_0x322b32+_0x59e7cc(0x427)},{'id':_univerjs_sheets[_0x59e7cc(0x25a)]['id'],'action':_0x322b32+_0x59e7cc(0x1fb)},{'id':_univerjs_sheets[_0x59e7cc(0x484)]['id'],'action':_0x322b32+_0x59e7cc(0x421)},{'id':_univerjs_sheets[_0x59e7cc(0x18d)]['id'],'action':_0x322b32+'moveRange'},{'id':_univerjs_sheets['ReorderRangeMutation']['id'],'action':_0x322b32+_0x59e7cc(0x316)},{'id':_univerjs_sheets[_0x59e7cc(0x45d)]['id'],'action':_0x322b32+_0x59e7cc(0x268)},{'id':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'action':_0x322b32+'unmergeCells'},{'id':_univerjs_sheets['SetFrozenMutation']['id'],'action':_0x322b32+_0x59e7cc(0x2a3)},{'id':_univerjs_sheets[_0x59e7cc(0x166)]['id'],'action':_0x322b32+_0x59e7cc(0x349)},{'id':_univerjs_sheets[_0x59e7cc(0x379)]['id'],'action':_0x322b32+'setGridlinesColor'},{'id':_univerjs_sheets[_0x59e7cc(0x401)]['id'],'action':_0x322b32+_0x59e7cc(0x272)},{'id':_univerjs_sheets[_0x59e7cc(0x183)]['id'],'action':_0x322b32+'setDefaultStyle'},{'id':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'action':_0x322b32+'addProtection'},{'id':_univerjs_sheets[_0x59e7cc(0x1c8)]['id'],'action':_0x322b32+_0x59e7cc(0x1e8)},{'id':_univerjs_sheets[_0x59e7cc(0x18f)]['id'],'action':_0x322b32+_0x59e7cc(0x429)},{'id':_univerjs_sheets[_0x59e7cc(0x434)]['id'],'action':_0x322b32+'addRangeProtection'},{'id':_univerjs_sheets['SetRangeProtectionMutation']['id'],'action':_0x322b32+_0x59e7cc(0x3a0)},{'id':_univerjs_sheets['DeleteRangeProtectionMutation']['id'],'action':_0x322b32+_0x59e7cc(0x267)},{'id':_univerjs_sheets[_0x59e7cc(0x4a7)]['id'],'action':_0x322b32+_0x59e7cc(0x409)},{'id':_univerjs_sheets[_0x59e7cc(0x3fa)]['id'],'action':_0x322b32+'setNumfmt'},{'id':_univerjs_sheets['RemoveNumfmtMutation']['id'],'action':_0x322b32+'removeNumfmt'},{'id':_univerjs_sheets[_0x59e7cc(0x4a6)]['id'],'action':_0x322b32+'addRangeTheme'},{'id':_univerjs_sheets[_0x59e7cc(0x2f5)]['id'],'action':_0x322b32+_0x59e7cc(0x1e3)},{'id':_univerjs_sheets['RemoveRangeThemeMutation']['id'],'action':_0x322b32+_0x59e7cc(0x3e9)},{'id':_univerjs_sheets[_0x59e7cc(0x312)]['id'],'action':_0x322b32+_0x59e7cc(0x2cb)},{'id':_univerjs_sheets[_0x59e7cc(0x42b)]['id'],'action':_0x322b32+_0x59e7cc(0x499)}],'sheetsConditionalFormatting':[{'id':_univerjs_sheets_conditional_formatting[_0x59e7cc(0x2dc)]['id'],'action':_0x322b32+_0x59e7cc(0x450)},{'id':_univerjs_sheets_conditional_formatting[_0x59e7cc(0x19e)]['id'],'action':_0x322b32+'setCF'},{'id':_univerjs_sheets_conditional_formatting['DeleteConditionalRuleMutation']['id'],'action':_0x322b32+_0x59e7cc(0x2dd)},{'id':_univerjs_sheets_conditional_formatting[_0x59e7cc(0x1f2)]['id'],'action':_0x322b32+_0x59e7cc(0x313)}],'sheetsFilter':[{'id':_univerjs_sheets_filter['SetSheetsFilterRangeMutation']['id'],'action':_0x322b32+_0x59e7cc(0x2bf)},{'id':_univerjs_sheets_filter['SetSheetsFilterCriteriaMutation']['id'],'action':_0x322b32+_0x59e7cc(0x408)},{'id':_univerjs_sheets_filter[_0x59e7cc(0x278)]['id'],'action':_0x322b32+_0x59e7cc(0x17b)},{'id':_univerjs_sheets_filter['ReCalcSheetsFilterMutation']['id'],'action':_0x322b32+'recalcFilter'}],'dataValidation':[{'id':_univerjs_data_validation['AddDataValidationMutation']['id'],'action':_0x322b32+_0x59e7cc(0x24a)},{'id':_univerjs_data_validation[_0x59e7cc(0x1f1)]['id'],'action':_0x322b32+_0x59e7cc(0x24a)},{'id':_univerjs_data_validation[_0x59e7cc(0x25e)]['id'],'action':_0x322b32+_0x59e7cc(0x31b)}],'sheetsChart':[{'id':_univerjs_pro_sheets_chart[_0x59e7cc(0x186)]['id'],'action':_0x322b32+_0x59e7cc(0x284)},{'id':_univerjs_pro_sheets_chart[_0x59e7cc(0x47a)]['id'],'action':_0x322b32+_0x59e7cc(0x389)},{'id':_univerjs_pro_sheets_chart[_0x59e7cc(0x15b)]['id'],'action':_0x322b32+_0x59e7cc(0x3c3)},{'id':_univerjs_pro_sheets_chart[_0x59e7cc(0x226)]['id'],'action':_0x322b32+_0x59e7cc(0x3a3)}],'sheetsSparkline':[{'id':_univerjs_pro_sheets_sparkline[_0x59e7cc(0x465)]['id'],'action':_0x322b32+_0x59e7cc(0x36a)},{'id':_univerjs_pro_sheets_sparkline[_0x59e7cc(0x1a6)]['id'],'action':_0x322b32+_0x59e7cc(0x2f2)},{'id':_univerjs_pro_sheets_sparkline[_0x59e7cc(0x37a)]['id'],'action':_0x322b32+_0x59e7cc(0x1bf)}],'sheetsPivot':[{'id':_univerjs_pro_sheets_pivot[_0x59e7cc(0x1c7)]['id'],'action':_0x322b32+_0x59e7cc(0x498)},{'id':_univerjs_pro_sheets_pivot[_0x59e7cc(0x470)]['id'],'action':_0x322b32+_0x59e7cc(0x2e0)},{'id':_univerjs_pro_sheets_pivot[_0x59e7cc(0x2cf)]['id'],'action':_0x322b32+_0x59e7cc(0x311)},{'id':_univerjs_pro_sheets_pivot[_0x59e7cc(0x177)]['id'],'action':_0x322b32+_0x59e7cc(0x24f)},{'id':_univerjs_pro_sheets_pivot[_0x59e7cc(0x36b)]['id'],'action':_0x322b32+_0x59e7cc(0x468)},{'id':_univerjs_pro_sheets_pivot[_0x59e7cc(0x19a)]['id'],'action':_0x322b32+_0x59e7cc(0x395)},{'id':_univerjs_pro_sheets_pivot[_0x59e7cc(0x412)]['id'],'action':_0x322b32+_0x59e7cc(0x418)},{'id':_univerjs_pro_sheets_pivot['RenamePivotFieldMutation']['id'],'action':_0x322b32+'renamePivotField'},{'id':_univerjs_pro_sheets_pivot[_0x59e7cc(0x375)]['id'],'action':_0x322b32+_0x59e7cc(0x1b6)},{'id':_univerjs_pro_sheets_pivot[_0x59e7cc(0x4a8)]['id'],'action':_0x322b32+_0x59e7cc(0x2d3)},{'id':_univerjs_pro_sheets_pivot[_0x59e7cc(0x2d8)]['id'],'action':_0x322b32+'updatePivotFieldSource'},{'id':_univerjs_pro_sheets_pivot[_0x59e7cc(0x388)]['id'],'action':_0x322b32+_0x59e7cc(0x43a)},{'id':_univerjs_pro_sheets_pivot[_0x59e7cc(0x17e)]['id'],'action':_0x322b32+_0x59e7cc(0x2c1)},{'id':_univerjs_pro_sheets_pivot[_0x59e7cc(0x40f)]['id'],'action':_0x322b32+_0x59e7cc(0x4a4)},{'id':_univerjs_pro_sheets_pivot['SetPivotSortMutation']['id'],'action':_0x322b32+_0x59e7cc(0x419)},{'id':_univerjs_pro_sheets_pivot[_0x59e7cc(0x44d)]['id'],'action':_0x322b32+_0x59e7cc(0x49b)},{'id':_univerjs_pro_sheets_pivot['SetPivotSubtotalTypeMutation']['id'],'action':_0x322b32+'setPivotSubtotalType'}],'sheetsShape':[{'id':_univerjs_pro_sheets_shape[_0x59e7cc(0x22b)]['id'],'action':_0x322b32+'insertShape'},{'id':_univerjs_pro_sheets_shape[_0x59e7cc(0x1c5)]['id'],'action':_0x322b32+_0x59e7cc(0x2ec)},{'id':_univerjs_pro_sheets_shape[_0x59e7cc(0x1c2)]['id'],'action':_0x322b32+_0x59e7cc(0x410)},{'id':_univerjs_pro_sheets_shape[_0x59e7cc(0x317)]['id'],'action':_0x322b32+_0x59e7cc(0x248)}],'sheetsTable':[{'id':_univerjs_sheets_table[_0x59e7cc(0x391)]['id'],'action':_0x322b32+'addTable'},{'id':_univerjs_sheets_table[_0x59e7cc(0x4ba)]['id'],'action':_0x322b32+'removeTable'},{'id':_univerjs_sheets_table[_0x59e7cc(0x283)]['id'],'action':_0x322b32+_0x59e7cc(0x374)},{'id':_univerjs_sheets_table[_0x59e7cc(0x1fe)]['id'],'action':_0x322b32+_0x59e7cc(0x428)}],'sheetsDrawing':[{'id':_univerjs_sheets_drawing[_0x59e7cc(0x1e5)]['id'],'action':_0x322b32+_0x59e7cc(0x1e1)}]};}function getAllMutationsFlat(_0x41506d=_0x30324f(0x342)){const _0x2fb1e5=getAllMutations(_0x41506d);return Object['values'](_0x2fb1e5)['flat']();}const parseDateWithLocale=(_0x16606f,_0x3cfaba)=>{const _0x453885=_0x30324f;if(!_0x16606f)return{'date':'','time':''};const _0x460c61=new Date(_0x16606f),_0x1f6ce5=_0x460c61[_0x453885(0x402)]()[_0x453885(0x2c3)]('T')[0x0];switch(_0x3cfaba){case _univerjs_core[_0x453885(0x444)][_0x453885(0x348)]:return{'date':parseDateDayWithLocale(_0x1f6ce5,_0x3cfaba),'time':_0x460c61[_0x453885(0x3a6)]()+':'+String(_0x460c61[_0x453885(0x38b)]())[_0x453885(0x3a5)](0x2,'0')+':'+String(_0x460c61[_0x453885(0x2b9)]())['padStart'](0x2,'0')};default:return{'date':parseDateDayWithLocale(_0x1f6ce5,_0x3cfaba),'time':_0x460c61['getHours']()+':'+_0x460c61[_0x453885(0x38b)]()+':'+_0x460c61[_0x453885(0x2b9)]()};}},parseAction=(_0x5a4afe,_0x1d2753)=>{const _0x29103a=_0x30324f;if(_0x5a4afe[_0x29103a(0x30c)][_0x29103a(0x2b3)](_0x1c9eab=>_0x1c9eab===_univerjs_pro_collaboration[_0x29103a(0x1c0)]['id'])&&_0x5a4afe[_0x29103a(0x16d)]){const _0x368a65=parseDateWithLocale(_0x5a4afe[_0x29103a(0x16d)],_0x1d2753[_0x29103a(0x2d0)]()),_0x1c6c4d=_0x368a65[_0x29103a(0x160)]+'\x20'+_0x368a65[_0x29103a(0x337)];return _0x1d2753['t']('editHistory.action.revertSheetPrefix')+'\x20'+_0x1c6c4d+'\x20'+_0x1d2753['t'](_0x29103a(0x264));}const _0x4890f6=extractMainMutation(_0x5a4afe),_0x276c5a=Array['from'](new Set(_0x4890f6));let _0x13ff7e;const _0x4d972e=0x5;if(_0x276c5a[_0x29103a(0x2d6)]===0x1)_0x13ff7e=_0x1d2753['t'](_0x276c5a[0x0]);else{const _0x316919=_0x276c5a[_0x29103a(0x2ac)](0x0,_0x4d972e)[_0x29103a(0x45c)](_0xb0806a=>_0x1d2753['t'](_0xb0806a))[_0x29103a(0x273)](',\x20');_0x13ff7e=_0x276c5a['length']>_0x4d972e?''+_0x316919+_0x1d2753['t'](_0x29103a(0x253)):_0x316919;}return''+_0x13ff7e;};function extractMainMutation(_0x5d2c61){const _0x59d29c=_0x30324f;if(_0x5d2c61['commands'][_0x59d29c(0x2d6)]===0x0)return[''];const _0x2e5dad=_0x59d29c(0x342),_0x6d2ff4=_0x2e5dad+_0x59d29c(0x424),_0x133236=getAllMutationsFlat(_0x2e5dad)[_0x59d29c(0x325)](_0x5d5a3c=>_0x5d2c61[_0x59d29c(0x30c)][_0x59d29c(0x393)](_0x5d5a3c['id']));return(_0x133236===null||_0x133236===void 0x0?void 0x0:_0x133236[_0x59d29c(0x2d6)])?_0x133236[_0x59d29c(0x45c)](_0x3bb4d4=>_0x3bb4d4['action']):[_0x6d2ff4];}function parseDateDayWithLocale(_0x53a54e,_0x58e059){const _0xf58550=_0x30324f,[_0x3d3268,_0x1d6826,_0x1d4878]=new Date()[_0xf58550(0x402)]()[_0xf58550(0x2c3)]('T')[0x0]['split']('-'),[_0x3000d5,_0x165a47,_0x199c94]=_0x53a54e['split']('-'),_0x1915e5=_0x3d3268===_0x3000d5&&_0x1d6826===_0x165a47&&_0x1d4878===_0x199c94;let _0x561eeb='',_0x2166fd='',_0x468542='';switch(_0x58e059){case _univerjs_core[_0xf58550(0x444)][_0xf58550(0x348)]:if(_0x1915e5)return'今天';_0x561eeb=_0x3d3268===_0x3000d5?'':_0x3000d5+'年',_0x2166fd=_0x165a47+'月',_0x468542=_0x199c94+'日';return''+_0x561eeb+_0x2166fd+_0x468542;default:if(_0x1915e5)return _0xf58550(0x3f7);_0x561eeb=_0x3d3268===_0x3000d5?'':_0x3000d5+'-',_0x2166fd=_0x165a47+'-',_0x468542=''+_0x199c94;return''+_0x561eeb+_0x2166fd+_0x468542;}}function transformVersionsToDateGroup(_0x40e6d9){const _0x599d21=_0x30324f;return _0x40e6d9?_0x40e6d9[_0x599d21(0x398)]((_0x4b6809,_0x3ac4a2)=>{const _0x371cce=_0x599d21,_0x5b0766=new Date(_0x3ac4a2['time'])['toISOString']()[_0x371cce(0x2c3)]('T')[0x0],_0xc59605=_0x3ac4a2[_0x371cce(0x42c)]?new Date(_0x3ac4a2[_0x371cce(0x42c)])['toISOString']()['split']('T')[0x0]:_0x5b0766,_0x5cd591=_0x3ac4a2['endRevCreateTime']?new Date(_0x3ac4a2[_0x371cce(0x2f6)])[_0x371cce(0x402)]()[_0x371cce(0x2c3)]('T')[0x0]:_0x5b0766;if(_0x4b6809[_0x371cce(0x2d6)]>0x0&&_0x4b6809[_0x4b6809[_0x371cce(0x2d6)]-0x1][_0x371cce(0x240)]===_0xc59605)_0x4b6809[_0x4b6809[_0x371cce(0x2d6)]-0x1]['versions']['push'](_0x3ac4a2);else _0x4b6809[_0x371cce(0x201)]({'dateString':_0x5b0766,'startDateString':_0xc59605,'endDateString':_0x5cd591,'versions':[_0x3ac4a2]});return _0x4b6809;},[]):[];}const EDIT_HISTORY_VIEWER_PLUGIN_CONFIG_KEY='edit-history-viewer.config',configSymbol=Symbol(EDIT_HISTORY_VIEWER_PLUGIN_CONFIG_KEY),defaultPluginConfig={};function _typeof(_0x222217){'@babel/helpers - typeof';const _0x2391f6=_0x30324f;return _typeof=_0x2391f6(0x275)==typeof Symbol&&_0x2391f6(0x1cb)==typeof Symbol[_0x2391f6(0x28a)]?function(_0x12ba63){return typeof _0x12ba63;}:function(_0x367ed5){const _0x1fdf1b=_0x2391f6;return _0x367ed5&&_0x1fdf1b(0x275)==typeof Symbol&&_0x367ed5[_0x1fdf1b(0x370)]===Symbol&&_0x367ed5!==Symbol['prototype']?_0x1fdf1b(0x1cb):typeof _0x367ed5;},_typeof(_0x222217);}function toPrimitive(_0x4d5c97,_0x722752){const _0x47f599=_0x30324f;if('object'!=_typeof(_0x4d5c97)||!_0x4d5c97)return _0x4d5c97;var _0x4b4e16=_0x4d5c97[Symbol['toPrimitive']];if(void 0x0!==_0x4b4e16){var _0xa647e4=_0x4b4e16[_0x47f599(0x2ee)](_0x4d5c97,_0x722752||_0x47f599(0x423));if(_0x47f599(0x464)!=_typeof(_0xa647e4))return _0xa647e4;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x47f599(0x3a2)===_0x722752?String:Number)(_0x4d5c97);}function toPropertyKey(_0x547746){const _0x40f0be=_0x30324f;var _0x1fb13c=toPrimitive(_0x547746,_0x40f0be(0x3a2));return _0x40f0be(0x1cb)==_typeof(_0x1fb13c)?_0x1fb13c:_0x1fb13c+'';}function _defineProperty(_0x321d1f,_0x32d1fb,_0x3646f5){const _0x4c9cda=_0x30324f;return(_0x32d1fb=toPropertyKey(_0x32d1fb))in _0x321d1f?Object[_0x4c9cda(0x17d)](_0x321d1f,_0x32d1fb,{'value':_0x3646f5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x321d1f[_0x32d1fb]=_0x3646f5,_0x321d1f;}function __decorateParam(_0x18fd68,_0x258079){return function(_0xb47836,_0x30ece1){_0x258079(_0xb47836,_0x30ece1,_0x18fd68);};}function __decorate(_0x33b83d,_0x1827da,_0x12d1f2,_0x4662c3){const _0xa7ba42=_0x30324f;var _0xc3f0e=arguments[_0xa7ba42(0x2d6)],_0x3deaeb=_0xc3f0e<0x3?_0x1827da:_0x4662c3===null?_0x4662c3=Object[_0xa7ba42(0x216)](_0x1827da,_0x12d1f2):_0x4662c3,_0x125fde;if(typeof Reflect==='object'&&typeof Reflect['decorate']==='function')_0x3deaeb=Reflect[_0xa7ba42(0x36c)](_0x33b83d,_0x1827da,_0x12d1f2,_0x4662c3);else{for(var _0x3d318a=_0x33b83d[_0xa7ba42(0x2d6)]-0x1;_0x3d318a>=0x0;_0x3d318a--)if(_0x125fde=_0x33b83d[_0x3d318a])_0x3deaeb=(_0xc3f0e<0x3?_0x125fde(_0x3deaeb):_0xc3f0e>0x3?_0x125fde(_0x1827da,_0x12d1f2,_0x3deaeb):_0x125fde(_0x1827da,_0x12d1f2))||_0x3deaeb;}return _0xc3f0e>0x3&&_0x3deaeb&&Object[_0xa7ba42(0x17d)](_0x1827da,_0x12d1f2,_0x3deaeb),_0x3deaeb;}let HistoryOrigin=function(_0x3f26f4){const _0x22f390=_0x30324f;return _0x3f26f4[_0x3f26f4[_0x22f390(0x31a)]=0x0]=_0x22f390(0x31a),_0x3f26f4[_0x3f26f4[_0x22f390(0x355)]=0x1]=_0x22f390(0x355),_0x3f26f4[_0x3f26f4[_0x22f390(0x225)]=0x2]='Character',_0x3f26f4;}({});const DEFAULT_HISTORY_LIST_SERVER_URL=_0x30324f(0x2f0);let HistoryFetchService=class HistoryFetchService extends _univerjs_core[_0x30324f(0x471)]{constructor(_0x3d00e2,_0x5a5e21,_0x5dda2e,_0x3df411,_0x4316bd,_0x135ca1,_0x414cfa){const _0x48d032=_0x30324f;super(),this[_0x48d032(0x2fa)]=_0x3d00e2,this[_0x48d032(0x2d7)]=_0x5a5e21,this[_0x48d032(0x369)]=_0x5dda2e,this['_configService']=_0x3df411,this[_0x48d032(0x4bb)]=_0x4316bd,this[_0x48d032(0x3ac)]=_0x135ca1,this[_0x48d032(0x329)]=_0x414cfa,_defineProperty(this,_0x48d032(0x4a1),void 0x0),this[_0x48d032(0x4a1)]=new _univerjs_core[(_0x48d032(0x30a))](0x3c);}[_0x30324f(0x2c5)](){const _0x28b67a=_0x30324f;this[_0x28b67a(0x4a1)][_0x28b67a(0x29a)](),super[_0x28b67a(0x2c5)]();}async[_0x30324f(0x483)](_0x499637){const _0x8f6928=_0x30324f;try{const _0x4f112f=(await this[_0x8f6928(0x4bb)][_0x8f6928(0x249)](this[_0x8f6928(0x238)]()+'/'+_0x499637+_0x8f6928(0x435)))[_0x8f6928(0x32c)];if(_0x4f112f&&_0x4f112f[_0x8f6928(0x315)]&&_0x4f112f[_0x8f6928(0x315)][_0x8f6928(0x1d8)]===_univerjs_protocol[_0x8f6928(0x27d)]['OK'])return _0x4f112f['creators'];}catch(_0x598c55){console['error'](_0x598c55);}return[];}async['getVersions'](_0x4ca501,_0x369dcc){const _0x5981de=_0x30324f,{userIds:_0x2439d9,lastLabel:_0x214ed0,origin:_0x2533c7}=_0x369dcc!==null&&_0x369dcc!==void 0x0?_0x369dcc:{},_0x5742f6=new URLSearchParams();_0x5742f6[_0x5981de(0x400)](_0x5981de(0x2d6),'20');if(_0x214ed0)_0x5742f6[_0x5981de(0x400)](_0x5981de(0x2c2),_0x214ed0);_0x2439d9===null||_0x2439d9===void 0x0||_0x2439d9[_0x5981de(0x1de)](_0x3ed879=>{const _0xa696cf=_0x5981de;_0x5742f6[_0xa696cf(0x270)](_0xa696cf(0x38a),_0x3ed879);});if(_0x2533c7)_0x5742f6[_0x5981de(0x400)](_0x5981de(0x4b1),_0x2533c7[_0x5981de(0x1a2)]());const _0x47e07a=this[_0x5981de(0x238)]()+'/'+_0x4ca501+_0x5981de(0x223)+_0x5742f6[_0x5981de(0x1a2)]();try{const _0x243539=(await this[_0x5981de(0x4bb)][_0x5981de(0x249)](_0x47e07a))[_0x5981de(0x32c)];if(_0x243539&&_0x243539[_0x5981de(0x315)]&&_0x243539['error']['code']===_univerjs_protocol[_0x5981de(0x27d)]['OK']){const {hasMore:_0x1b237f,lastLabel:_0x8658ba}=_0x243539;return{'hasMore':_0x1b237f,'lastLabel':_0x8658ba,'versions':convertEntitiesToVersions(_0x243539),'members':_0x243539[_0x5981de(0x162)][_0x5981de(0x31e)]};}}catch(_0x544c50){console[_0x5981de(0x315)](_0x544c50);}return null;}async[_0x30324f(0x2a2)](_0x14cda7,_0x29f48b){const _0x453fef=_0x30324f,{unitId:_0x473d10,startRevision:_0x310d6a,endRevision:_0x3b8019}=_0x29f48b,_0x17676a=this[_0x453fef(0x238)]()+'/'+_0x473d10+_0x453fef(0x31f)+_0x310d6a+'&endRevision='+_0x3b8019;return(await this[_0x453fef(0x4bb)][_0x453fef(0x249)](_0x17676a))[_0x453fef(0x32c)];}[_0x30324f(0x238)](){const _0x1e3eaa=_0x30324f;var _0x46dc84;const _0x8d4146=this['_configService'][_0x1e3eaa(0x34e)](EDIT_HISTORY_VIEWER_PLUGIN_CONFIG_KEY);return(_0x46dc84=_0x8d4146===null||_0x8d4146===void 0x0?void 0x0:_0x8d4146[_0x1e3eaa(0x496)])!==null&&_0x46dc84!==void 0x0?_0x46dc84:DEFAULT_HISTORY_LIST_SERVER_URL;}[_0x30324f(0x215)](_0x7edd52,_0x5d335c){return _0x7edd52+':'+_0x5d335c;}async[_0x30324f(0x244)](_0x46ddfd,_0x2ad2f9,_0x27e4b7={}){const _0x5134e6=_0x30324f;var _0x1128eb;const _0x3a0f1f=this['_cacheKey'](_0x46ddfd,_0x2ad2f9),_0x47f863=this[_0x5134e6(0x4a1)][_0x5134e6(0x249)](_0x3a0f1f);if(_0x47f863){const {workbookData:_0x5b2574,changesets:_0xe840b1}=_0x47f863;return await this[_0x5134e6(0x469)](_0x5b2574,_0xe840b1),!![];}const {snapshot:_0x6c95b0,changesets:_0x33b4bd,error:_0x25bde2}=await this[_0x5134e6(0x2fa)]['getUnitOnRev'](_0x27e4b7,{'unitID':_0x46ddfd,'type':_univerjs_core[_0x5134e6(0x3e1)]['UNIVER_SHEET'],'revision':_0x2ad2f9});if((0x0,_univerjs_protocol[_0x5134e6(0x1cf)])(_0x25bde2)||!_0x6c95b0||!_0x6c95b0['workbook'])throw new Error(_0x5134e6(0x35d));const _0x42a9a6=(_0x1128eb=_0x33b4bd===null||_0x33b4bd===void 0x0?void 0x0:_0x33b4bd[_0x5134e6(0x2d6)])!==null&&_0x1128eb!==void 0x0?_0x1128eb:0x0;if(_0x2ad2f9!==0x0&&_0x6c95b0[_0x5134e6(0x4aa)]+_0x42a9a6!==_0x2ad2f9)throw new Error(_0x5134e6(0x26a));const {workbook:_0x16bb80}=_0x6c95b0,_0x38f862=_0x16bb80[_0x5134e6(0x445)]?Object[_0x5134e6(0x2ff)](_0x16bb80[_0x5134e6(0x445)])['flatMap'](_0x44c03c=>{const _0x133497=_0x5134e6;var _0x2e4972;return(_0x2e4972=_0x44c03c[_0x133497(0x2d4)])!==null&&_0x2e4972!==void 0x0?_0x2e4972:[];}):[],_0x569f35=await(0x0,_univerjs_pro_collaboration[_0x5134e6(0x203)])(_0x6c95b0,(await Promise[_0x5134e6(0x372)](_0x38f862[_0x5134e6(0x45c)](_0xba6ea1=>this['_snapshotServerService'][_0x5134e6(0x41c)](_0x27e4b7,{'unitID':_0x46ddfd,'type':_univerjs_core[_0x5134e6(0x3e1)][_0x5134e6(0x414)],'blockID':_0xba6ea1})[_0x5134e6(0x2e4)](_0x5d2c95=>_0x5d2c95[_0x5134e6(0x190)]))))[_0x5134e6(0x325)](Boolean),_0x27e4b7);return this[_0x5134e6(0x4a1)][_0x5134e6(0x400)](_0x3a0f1f,{'workbookData':_0x569f35,'changesets':_0x33b4bd}),await this['_applyWorkbookData'](_0x569f35,_0x33b4bd),!![];}async[_0x30324f(0x469)](_0x1ecd40,_0x291110){const _0x3a33da=_0x30324f,_0x12b764=this[_0x3a33da(0x2d7)][_0x3a33da(0x3f2)](_univerjs_core[_0x3a33da(0x3e1)][_0x3a33da(0x414)]);_0x12b764&&(this[_0x3a33da(0x2d7)][_0x3a33da(0x436)](_0x12b764[_0x3a33da(0x16b)]()),await Promise[_0x3a33da(0x22c)]());const _0x27b946=JSON[_0x3a33da(0x1f4)](JSON[_0x3a33da(0x191)](_0x1ecd40));this[_0x3a33da(0x494)](_0x27b946,_0x291110),this[_0x3a33da(0x329)][_0x3a33da(0x3e4)]();}[_0x30324f(0x494)](_0x30e5eb,_0x2f2057){const _0x442823=_0x30324f,_0x54f3c1=this[_0x442823(0x2d7)][_0x442823(0x489)](_univerjs_core[_0x442823(0x3e1)]['UNIVER_SHEET'],_0x30e5eb);this[_0x442823(0x2d7)]['focusUnit'](_0x54f3c1[_0x442823(0x16b)]());const _0x10e731=this[_0x442823(0x3ac)][_0x442823(0x3d8)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x442823(0x3d8)][_0x442823(0x3db)]()[_0x442823(0x2b5)]);return _0x2f2057===null||_0x2f2057===void 0x0||_0x2f2057[_0x442823(0x1de)](_0x1b820f=>{const _0x415d19=_0x442823,_0x2e6cc6=_0x1b820f[_0x415d19(0x1fa)][_0x415d19(0x45c)](_0x9ccc2a=>({'id':_0x9ccc2a['id'],'params':JSON[_0x415d19(0x1f4)](_0x9ccc2a[_0x415d19(0x455)])}));(_0x10e731(_0x2e6cc6,null)||_0x2e6cc6)[_0x415d19(0x1de)](_0x51f3a6=>{const _0x1c9170=_0x415d19;this[_0x1c9170(0x369)][_0x1c9170(0x1d6)](_0x51f3a6['id'])&&this['_commandService'][_0x1c9170(0x2a8)](_0x51f3a6['id'],_0x51f3a6[_0x1c9170(0x2df)],{'fromChangeset':!![]});});}),_0x54f3c1;}};HistoryFetchService=__decorate([__decorateParam(0x0,_univerjs_pro_collaboration['ISnapshotServerService']),__decorateParam(0x1,_univerjs_core[_0x30324f(0x1fc)]),__decorateParam(0x2,_univerjs_core[_0x30324f(0x1d5)]),__decorateParam(0x3,_univerjs_core['IConfigService']),__decorateParam(0x4,(0x0,_univerjs_core[_0x30324f(0x1db)])(_univerjs_network[_0x30324f(0x3bc)])),__decorateParam(0x5,(0x0,_univerjs_core[_0x30324f(0x1db)])(_univerjs_pro_collaboration['CompressMutationService'])),__decorateParam(0x6,(0x0,_univerjs_core[_0x30324f(0x1db)])(_univerjs_sheets['SheetPermissionInitController']))],HistoryFetchService);function convertEntitiesToVersions(_0xfd9acf){const _0x4146d4=_0x30324f,_0x577564=[],{entities:_0x33a655,historyIds:_0xb1a9d3}=_0xfd9acf,{datas:_0x4fa58d,users:_0x373e03}=_0x33a655;for(const _0x32a60f of _0xb1a9d3){const _0x3a1660=_0x4fa58d[_0x32a60f];if(_0x3a1660){var _0x2a7e86,_0x7cd2bd;const _0x30d42c=Boolean((_0x2a7e86=_0x373e03[_0x3a1660[_0x4146d4(0x26f)]])===null||_0x2a7e86===void 0x0?void 0x0:_0x2a7e86[_0x4146d4(0x403)]);_0x577564['push']({'unitId':_0x3a1660[_0x4146d4(0x37b)],'user':_0x30d42c?'':(_0x373e03===null||_0x373e03===void 0x0||(_0x7cd2bd=_0x373e03[_0x3a1660['userId']])===null||_0x7cd2bd===void 0x0?void 0x0:_0x7cd2bd[_0x4146d4(0x27f)])||'','users':_0x3a1660[_0x4146d4(0x38a)]['map'](_0x23acaf=>{const _0x44c6aa=_0x4146d4;var _0x25d52e;return(_0x373e03===null||_0x373e03===void 0x0||(_0x25d52e=_0x373e03[_0x23acaf])===null||_0x25d52e===void 0x0?void 0x0:_0x25d52e[_0x44c6aa(0x27f)])||'';})['filter'](_0x553651=>_0x553651),'isAnonymous':_0x30d42c,'id':_0x32a60f,'time':_0x3a1660[_0x4146d4(0x4b4)]?Number(_0x3a1660[_0x4146d4(0x4b4)]):void 0x0,'commands':_0x3a1660[_0x4146d4(0x2d2)],'startRev':Number(_0x3a1660[_0x4146d4(0x1ce)]),'endRev':Number(_0x3a1660[_0x4146d4(0x43f)]),'recoverTime':_0x3a1660[_0x4146d4(0x16d)]?Number(_0x3a1660['recoverTime']):void 0x0,'additionalFields':_0x3a1660['additionalFields'],'startRevCreateTime':_0x3a1660[_0x4146d4(0x42c)]?Number(_0x3a1660[_0x4146d4(0x42c)]):void 0x0,'endRevCreateTime':_0x3a1660[_0x4146d4(0x2f6)]?Number(_0x3a1660[_0x4146d4(0x2f6)]):void 0x0});}}return _0x577564;}let HistoryModeStatus=function(_0x365d6d){const _0x2923a7=_0x30324f;return _0x365d6d['Entered']=_0x2923a7(0x1a7),_0x365d6d['Exited']=_0x2923a7(0x1bd),_0x365d6d[_0x2923a7(0x29e)]=_0x2923a7(0x315),_0x365d6d;}({});const VIRTUAL_VERSION_NOW=_0x30324f(0x1d3);let HistoryManagerService=class HistoryManagerService extends _univerjs_core[_0x30324f(0x471)]{[_0x30324f(0x385)](_0x18f4da){const _0x422967=_0x30324f;this[_0x422967(0x1b3)][_0x422967(0x43c)](_0x18f4da);}get[_0x30324f(0x34d)](){const _0x3428cd=_0x30324f;return this[_0x3428cd(0x1b3)][_0x3428cd(0x195)];}constructor(_0x50e38f,_0x3c6ca3,_0x1867da,_0x62c0f7){const _0x3ce778=_0x30324f;super(),this['_messageService']=_0x50e38f,this[_0x3ce778(0x1e2)]=_0x3c6ca3,this[_0x3ce778(0x19b)]=_0x1867da,this[_0x3ce778(0x448)]=_0x62c0f7,_defineProperty(this,_0x3ce778(0x2a1),new rxjs[(_0x3ce778(0x3b4))]([])),_defineProperty(this,_0x3ce778(0x26e),this['_versions$'][_0x3ce778(0x269)]()),_defineProperty(this,_0x3ce778(0x3b5),new rxjs['BehaviorSubject']('')),_defineProperty(this,_0x3ce778(0x44a),this[_0x3ce778(0x3b5)][_0x3ce778(0x269)]()),_defineProperty(this,'_status$',new rxjs[(_0x3ce778(0x3b4))]('entered')),_defineProperty(this,_0x3ce778(0x49a),this[_0x3ce778(0x431)][_0x3ce778(0x269)]()),_defineProperty(this,_0x3ce778(0x2eb),new rxjs[(_0x3ce778(0x3b4))](0x0)),_defineProperty(this,_0x3ce778(0x180),this[_0x3ce778(0x2eb)]['asObservable']()),_defineProperty(this,_0x3ce778(0x3ca),new rxjs[(_0x3ce778(0x3b4))]('')),_defineProperty(this,_0x3ce778(0x2a5),this[_0x3ce778(0x3ca)]['asObservable']()),_defineProperty(this,_0x3ce778(0x1b3),new rxjs['BehaviorSubject'](![])),_defineProperty(this,_0x3ce778(0x35e),this['_fetching$'][_0x3ce778(0x269)]()),_defineProperty(this,_0x3ce778(0x1b4),new rxjs[(_0x3ce778(0x3b4))]([])),_defineProperty(this,'creators$',this['_creators$'][_0x3ce778(0x269)]()),_defineProperty(this,_0x3ce778(0x274),new rxjs[(_0x3ce778(0x3b4))](![])),_defineProperty(this,_0x3ce778(0x18c),this[_0x3ce778(0x274)][_0x3ce778(0x269)]()),_defineProperty(this,_0x3ce778(0x217),new Map()),_defineProperty(this,_0x3ce778(0x4b9),new rxjs[(_0x3ce778(0x3b4))](_0x3ce778(0x23c))),_defineProperty(this,'loadingState$',this[_0x3ce778(0x4b9)][_0x3ce778(0x269)]()),_defineProperty(this,'_lastLabel',null),_defineProperty(this,_0x3ce778(0x371),!![]),_defineProperty(this,'_members',new Map()),_defineProperty(this,_0x3ce778(0x2e2),void 0x0),_defineProperty(this,_0x3ce778(0x165),void 0x0),_defineProperty(this,_0x3ce778(0x3ce),void 0x0),_defineProperty(this,_0x3ce778(0x304),![]),_defineProperty(this,_0x3ce778(0x260),null),_defineProperty(this,'_unitCurrentVersionMap',new Map());}async[_0x30324f(0x289)](_0x4f00d3,_0x14825f,_0xd5df64){const _0xc7f009=_0x30324f;this[_0xc7f009(0x2e2)]=_0x14825f,this['_canRevert']=_0xd5df64,this['_openPanel$'][_0xc7f009(0x43c)](!![]),await this['loadInitialVersions'](_0x4f00d3);}[_0x30324f(0x293)](_0x354110,_0x3c00ba='',_0x4cfaf1,_0x2fd9a7){const _0x3a8eea=_0x30324f,{versions:_0x47a7e6,hasMore:_0x54984e,lastLabel:_0x309e75,members:_0x24fc2f}=_0x2fd9a7,_0x4b621a=_0x47a7e6['length']>0x0?_0x47a7e6:[{'unitId':_0x354110,'id':VIRTUAL_VERSION_NOW,'startRev':0x1,'endRev':0x0,'time':Date[_0x3a8eea(0x343)](),'user':this['_localeService']['t'](_0x3a8eea(0x321)),'users':[this[_0x3a8eea(0x19b)]['t'](_0x3a8eea(0x321))],'commands':[],'isAnonymous':![]}];this['_canRevert']=_0x4cfaf1,this[_0x3a8eea(0x2e2)]=_0x3c00ba,this[_0x3a8eea(0x3ca)]['next'](_0x354110),this[_0x3a8eea(0x2cd)](_0x4b621a,_0x54984e,_0x309e75,![],_0x24fc2f),this[_0x3a8eea(0x3b5)][_0x3a8eea(0x43c)](_0x4b621a[0x0]['id']);}async[_0x30324f(0x175)](_0x3a8a98,_0x3c6acf){const _0x15e2cb=_0x30324f;this['_unitId$'][_0x15e2cb(0x43c)](_0x3a8a98),this[_0x15e2cb(0x260)]=_0x3c6acf!==null&&_0x3c6acf!==void 0x0?_0x3c6acf:null,this['_setFetching'](!![]);const _0x110ff1=await this[_0x15e2cb(0x448)][_0x15e2cb(0x17a)](_0x3a8a98,_0x3c6acf);this[_0x15e2cb(0x385)](![]);if(_0x110ff1){const {versions:_0x3f2f9c,lastLabel:_0xd772ea,hasMore:_0x20bc5a,members:_0x574061}=_0x110ff1;if(_0x3f2f9c[_0x15e2cb(0x2d6)]===0x0)_0x3f2f9c[_0x15e2cb(0x201)]({'unitId':_0x3a8a98,'id':VIRTUAL_VERSION_NOW,'startRev':0x1,'endRev':0x0,'time':Date[_0x15e2cb(0x343)](),'user':this[_0x15e2cb(0x19b)]['t'](_0x15e2cb(0x321)),'users':[this[_0x15e2cb(0x19b)]['t'](_0x15e2cb(0x321))],'commands':[],'isAnonymous':![]});this[_0x15e2cb(0x2cd)](_0x3f2f9c,_0x20bc5a,_0xd772ea,![],_0x574061),this['_currentVersion$'][_0x15e2cb(0x43c)](_0x3f2f9c[0x0]['id']),this[_0x15e2cb(0x2aa)][_0x15e2cb(0x400)](_0x3a8a98,_0x3f2f9c[0x0][_0x15e2cb(0x2e3)]);}else this['_status$'][_0x15e2cb(0x43c)](_0x15e2cb(0x315));}async[_0x30324f(0x42d)](){const _0x3c5a10=_0x30324f;if(!this[_0x3c5a10(0x476)]||!this['_hasMore']||this[_0x3c5a10(0x34d)])return![];this[_0x3c5a10(0x385)](!![]);const _0x23b49b=await this['_historyFetchService']['getVersions'](this['unitId'],{'lastLabel':this[_0x3c5a10(0x476)],...this[_0x3c5a10(0x260)]});this[_0x3c5a10(0x385)](![]);if(_0x23b49b){const {versions:_0x103d43,lastLabel:_0x69770,hasMore:_0x46effa,members:_0x150fbb}=_0x23b49b;this[_0x3c5a10(0x2cd)](_0x103d43,_0x46effa,_0x69770,!![],_0x150fbb);}else this[_0x3c5a10(0x380)][_0x3c5a10(0x4b6)]({'content':this['_localeService']['t'](_0x3c5a10(0x3fc)),'type':_univerjs_design[_0x3c5a10(0x306)]['Error'],'duration':0xbb8});return!![];}async[_0x30324f(0x209)](){const _0x3392c5=_0x30324f,{unitId:_0x444244}=this;if(!_0x444244)return;const _0xe483d0=await this['_historyFetchService'][_0x3392c5(0x483)](_0x444244);if(_0xe483d0)this['_creators$'][_0x3392c5(0x43c)](_0xe483d0);}async['triggerLoadSheet'](_0x59941f){const _0x5da3a2=_0x30324f,{endRev:_0x3ee852}=this[_0x5da3a2(0x351)](_0x59941f)||{};if(_0x3ee852||_0x3ee852===0x0)this[_0x5da3a2(0x4b9)][_0x5da3a2(0x43c)]('loading'),await this[_0x5da3a2(0x448)][_0x5da3a2(0x244)](this[_0x5da3a2(0x37b)],_0x3ee852),this['_loadingState$'][_0x5da3a2(0x43c)](_0x5da3a2(0x360));else this[_0x5da3a2(0x431)][_0x5da3a2(0x43c)](_0x5da3a2(0x315));}async[_0x30324f(0x1f5)](_0x365422){const _0x988e15=_0x30324f,_0x57b9ca=_0x365422?this[_0x988e15(0x351)](_0x365422):this[_0x988e15(0x281)]();if(!_0x57b9ca)return;const _0x39d948=_0x57b9ca[_0x988e15(0x2e3)],_0x1f1240=parseDateWithLocale(_0x57b9ca[_0x988e15(0x337)],this[_0x988e15(0x19b)]['getCurrentLocale']());await this[_0x988e15(0x1e2)]['confirm']({'id':_0x988e15(0x231),'title':{'title':this[_0x988e15(0x19b)]['t'](_0x988e15(0x44e))},'children':{'title':this[_0x988e15(0x19b)]['t'](_0x988e15(0x31d))+_0x988e15(0x3ab)+_0x1f1240[_0x988e15(0x160)]+'\x20'+_0x1f1240[_0x988e15(0x337)]+')'},'cancelText':this[_0x988e15(0x19b)]['t']('editHistory.panel.cancel'),'confirmText':this[_0x988e15(0x19b)]['t'](_0x988e15(0x2d5))})&&this[_0x988e15(0x2eb)][_0x988e15(0x43c)](_0x39d948);}[_0x30324f(0x2cd)](_0x48d118,_0x45f8e4,_0x1b46f5,_0x1ee487,_0x26fdba){const _0x8e9267=_0x30324f;this[_0x8e9267(0x24c)](_0x1ee487?this[_0x8e9267(0x2a1)][_0x8e9267(0x195)][_0x8e9267(0x332)](_0x48d118):_0x48d118),this[_0x8e9267(0x371)]=_0x45f8e4,this[_0x8e9267(0x476)]=_0x1b46f5,_0x26fdba&&Object[_0x8e9267(0x179)](_0x26fdba)['forEach'](_0x370056=>this[_0x8e9267(0x296)][_0x8e9267(0x400)](_0x370056,_0x26fdba[_0x370056]));}[_0x30324f(0x281)](){const _0x54780c=_0x30324f;return this[_0x54780c(0x351)](this[_0x54780c(0x3b5)][_0x54780c(0x195)]);}[_0x30324f(0x24c)](_0x1e99c9){const _0x2d81a4=_0x30324f;this[_0x2d81a4(0x2a1)][_0x2d81a4(0x43c)](_0x1e99c9);}['getVersion'](_0x4c3bb0){const _0x266d94=_0x30324f;var _0x49b7cc;const _0x1ac890=(_0x49b7cc=this['_versions$'][_0x266d94(0x195)])===null||_0x49b7cc===void 0x0?void 0x0:_0x49b7cc[_0x266d94(0x2be)](_0x4eaebc=>_0x4eaebc['id']===_0x4c3bb0);if(_0x1ac890)return _0x1ac890;return this[_0x266d94(0x217)][_0x266d94(0x249)](_0x4c3bb0);}[_0x30324f(0x411)](_0x5d53){this['_detailVersionsMap']['set'](_0x5d53['id'],_0x5d53);}[_0x30324f(0x36e)](){const _0x436c5a=_0x30324f;if(!this[_0x436c5a(0x37b)])return;return this[_0x436c5a(0x2aa)][_0x436c5a(0x249)](this[_0x436c5a(0x37b)]);}[_0x30324f(0x46b)](){const _0x138cab=_0x30324f;var _0x1c462e;return((_0x1c462e=this[_0x138cab(0x281)]())===null||_0x1c462e===void 0x0?void 0x0:_0x1c462e[_0x138cab(0x2e3)])===this[_0x138cab(0x36e)]();}[_0x30324f(0x2a7)](){const _0x1eeeb9=_0x30324f;return!this[_0x1eeeb9(0x46b)]()&&this[_0x1eeeb9(0x462)];}['getMember'](_0x226302){const _0x57d3e5=_0x30324f;return this[_0x57d3e5(0x296)][_0x57d3e5(0x249)](_0x226302);}[_0x30324f(0x2ed)](){const _0x1e30ae=_0x30324f;this['_maskElement']=document[_0x1e30ae(0x28c)](_0x1e30ae(0x44b)),this[_0x1e30ae(0x3ce)][_0x1e30ae(0x16c)]='history-mask',this['_maskElement'][_0x1e30ae(0x212)][_0x1e30ae(0x4b5)]=_0x1e30ae(0x31c),this[_0x1e30ae(0x3ce)][_0x1e30ae(0x212)][_0x1e30ae(0x4b3)]='0',this[_0x1e30ae(0x3ce)]['style'][_0x1e30ae(0x2b4)]='0',this[_0x1e30ae(0x3ce)][_0x1e30ae(0x212)][_0x1e30ae(0x4b2)]=_0x1e30ae(0x49e),this['_maskElement'][_0x1e30ae(0x212)][_0x1e30ae(0x39e)]='100%',this[_0x1e30ae(0x3ce)][_0x1e30ae(0x212)][_0x1e30ae(0x15d)]=_0x1e30ae(0x33f),this[_0x1e30ae(0x3ce)][_0x1e30ae(0x212)][_0x1e30ae(0x320)]=_0x1e30ae(0x2ba),this[_0x1e30ae(0x3ce)][_0x1e30ae(0x212)][_0x1e30ae(0x405)]=_0x1e30ae(0x265),this[_0x1e30ae(0x3ce)]['style'][_0x1e30ae(0x406)]='center',this[_0x1e30ae(0x3ce)][_0x1e30ae(0x212)][_0x1e30ae(0x23a)]=_0x1e30ae(0x202),this[_0x1e30ae(0x3ce)]['style']['display']='none',this[_0x1e30ae(0x165)]['append'](this[_0x1e30ae(0x3ce)]);}[_0x30324f(0x242)](){const _0xfeb122=_0x30324f,_0x48587f=document[_0xfeb122(0x21f)](this[_0xfeb122(0x2e2)]);_0x48587f&&(this['_maskContainer']=_0x48587f,this[_0xfeb122(0x2ed)]());}['showMask'](){const _0x2bb090=_0x30324f;if(!this[_0x2bb090(0x165)])this['_initMaskContainer']();if(this[_0x2bb090(0x3ce)])this[_0x2bb090(0x3ce)][_0x2bb090(0x212)][_0x2bb090(0x405)]=_0x2bb090(0x265);}[_0x30324f(0x2c0)](){const _0x2cfb23=_0x30324f;if(this[_0x2cfb23(0x3ce)])this['_maskElement'][_0x2cfb23(0x212)][_0x2cfb23(0x405)]=_0x2cfb23(0x38d);}set[_0x30324f(0x459)](_0x53a201){const _0x1f91f8=_0x30324f;this['_status$'][_0x1f91f8(0x43c)](_0x53a201);}set[_0x30324f(0x23e)](_0x32f302){const _0x81edf7=_0x30324f;if(_0x32f302!==this['_currentVersion$'][_0x81edf7(0x195)])this[_0x81edf7(0x3b5)][_0x81edf7(0x43c)](_0x32f302);}get[_0x30324f(0x23e)](){const _0x31fbe6=_0x30324f;return this[_0x31fbe6(0x3b5)][_0x31fbe6(0x195)];}set[_0x30324f(0x37b)](_0x51d1d8){const _0x5c6dcb=_0x30324f;this[_0x5c6dcb(0x3ca)][_0x5c6dcb(0x43c)](_0x51d1d8);}get[_0x30324f(0x37b)](){const _0x3993b2=_0x30324f;return this[_0x3993b2(0x3ca)][_0x3993b2(0x195)];}get[_0x30324f(0x462)](){const _0x48326b=_0x30324f;return this[_0x48326b(0x304)];}get[_0x30324f(0x47c)](){const _0x276947=_0x30324f;return this['_loadingState$'][_0x276947(0x195)];}};HistoryManagerService=__decorate([__decorateParam(0x0,_univerjs_ui['IMessageService']),__decorateParam(0x1,_univerjs_core[_0x30324f(0x3a1)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x30324f(0x1db)])(_univerjs_core[_0x30324f(0x3d9)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x30324f(0x1db)])(HistoryFetchService))],HistoryManagerService);let VersionDiffService=class VersionDiffService extends _univerjs_core[_0x30324f(0x471)]{constructor(_0x4bc8b0,_0x51553b,_0x1edada,_0x21382f,_0x7793eb,_0x5ab771,_0x4b9a1e,_0x2b7394,_0x17a5f1,_0x200489,_0x16a4f6,_0x1d6e1f,_0x4af8b4){const _0x38f503=_0x30324f;super(),this[_0x38f503(0x3cb)]=_0x4bc8b0,this[_0x38f503(0x43b)]=_0x51553b,this[_0x38f503(0x2fa)]=_0x1edada,this[_0x38f503(0x15c)]=_0x21382f,this['_conditionalFormattingRuleModel']=_0x7793eb,this[_0x38f503(0x1c6)]=_0x5ab771,this[_0x38f503(0x310)]=_0x4b9a1e,this[_0x38f503(0x3b1)]=_0x2b7394,this[_0x38f503(0x3bd)]=_0x17a5f1,this[_0x38f503(0x251)]=_0x200489,this[_0x38f503(0x19b)]=_0x16a4f6,this[_0x38f503(0x2e9)]=_0x1d6e1f,this[_0x38f503(0x448)]=_0x4af8b4,_defineProperty(this,_0x38f503(0x222),new Map()),_defineProperty(this,_0x38f503(0x366),new rxjs[(_0x38f503(0x3b4))]({'ranges':new Map(),'active':null,'subUnitIds':[]})),_defineProperty(this,'currentVersionDiff$',this[_0x38f503(0x366)]['asObservable']()),this[_0x38f503(0x404)]();}[_0x30324f(0x404)](){const _0x40109b=_0x30324f;this[_0x40109b(0x222)]=new Map(),this[_0x40109b(0x2d1)](this[_0x40109b(0x3cb)][_0x40109b(0x2a5)]['subscribe'](_0x2747fe=>{const _0x5e1073=_0x40109b;if(_0x2747fe&&!this[_0x5e1073(0x222)][_0x5e1073(0x48f)](_0x2747fe))this[_0x5e1073(0x222)][_0x5e1073(0x400)](_0x2747fe,new Map());})),this[_0x40109b(0x2d1)](this[_0x40109b(0x3cb)]['currentVersion$'][_0x40109b(0x20c)](async _0x43f36f=>{const _0x503c22=_0x40109b;if(_0x43f36f){var _0x162ef0;await this[_0x503c22(0x185)](_0x43f36f),this[_0x503c22(0x366)][_0x503c22(0x43c)](((_0x162ef0=this[_0x503c22(0x222)][_0x503c22(0x249)](this[_0x503c22(0x3cb)][_0x503c22(0x37b)]))===null||_0x162ef0===void 0x0?void 0x0:_0x162ef0[_0x503c22(0x249)](_0x43f36f))||{'ranges':new Map(),'active':null,'subUnitIds':[]});}}));}async['ensureVersion'](_0x17d45e){const _0x151990=_0x30324f;var _0x76f759,_0x5e2f45;const _0xd66173=this[_0x151990(0x3cb)]['getVersion'](_0x17d45e),_0x2bb177=this[_0x151990(0x3cb)][_0x151990(0x37b)];if(!_0xd66173||!_0x2bb177)return;const _0x3927bd=this[_0x151990(0x222)][_0x151990(0x249)](_0x2bb177);if(!_0x3927bd)this['_diffRangesMap'][_0x151990(0x400)](_0x2bb177,new Map());if((_0x76f759=this[_0x151990(0x222)][_0x151990(0x249)](_0x2bb177))===null||_0x76f759===void 0x0?void 0x0:_0x76f759[_0x151990(0x48f)](_0xd66173['id']))return;const {startRev:_0xeed62c,endRev:_0x55c20f}=_0xd66173;if(_0xeed62c===0x1){_0x3927bd[_0x151990(0x400)](_0xd66173['id'],{'ranges':new Map(),'active':null,'subUnitIds':[]});return;}const _0x131046=_0xeed62c,_0x37a132=_0x55c20f,_0x316acb=await this[_0x151990(0x448)][_0x151990(0x2a2)]({},{'unitId':_0x2bb177,'startRevision':_0x131046,'endRevision':_0x37a132});if(((_0x5e2f45=_0x316acb[_0x151990(0x315)])===null||_0x5e2f45===void 0x0?void 0x0:_0x5e2f45['code'])===_univerjs_protocol[_0x151990(0x27d)]['OK']){const _0x10f760=_0x316acb[_0x151990(0x491)][_0x151990(0x45c)](_0x1509c8=>{const _0x8f608f=_0x151990;if(_0x1509c8['mutations']===null||_0x1509c8[_0x8f608f(0x1fa)]===void 0x0)_0x1509c8[_0x8f608f(0x1fa)]=[];return(0x0,_univerjs_pro_collaboration['parseProtocolChangeset'])(_0x1509c8);})[_0x151990(0x45c)](_0x21cee8=>_0x21cee8[_0x151990(0x1fa)][_0x151990(0x45c)](_0x5a36d6=>({..._0x5a36d6,'params':{..._0x5a36d6[_0x151990(0x2df)],'memberId':_0x21cee8[_0x151990(0x3fd)]||_0x151990(0x28d)}})))[_0x151990(0x258)](),_0x4520b8=await this[_0x151990(0x46c)](_0x10f760),_0x45d480=this[_0x151990(0x331)](_0x10f760),_0x27d618=this[_0x151990(0x1c1)](_0x4520b8);_0x3927bd[_0x151990(0x400)](_0xd66173['id'],{..._0x27d618,'active':_0x45d480});}}[_0x30324f(0x1b2)](){const _0x15a96e=_0x30324f,_0x37a5b9=getAllMutations('editHistory.action.'),_0x4a61a5=new Map();return Object[_0x15a96e(0x2ff)](_0x37a5b9)[_0x15a96e(0x258)]()[_0x15a96e(0x1de)](_0x363bd2=>{const _0x584690=_0x15a96e;_0x4a61a5[_0x584690(0x400)](_0x363bd2['id'],_0x363bd2[_0x584690(0x344)]);}),_0x4a61a5;}[_0x30324f(0x282)](_0x262743,_0x581c32){const _0x15c003=_0x30324f;return this[_0x15c003(0x3b0)](_0x262743,_0x581c32);}async[_0x30324f(0x46c)](_0x3d4a8f){const _0x2eb708=_0x30324f;let _0x95fdd8=[];for(let _0x5390bb=0x0;_0x5390bb<_0x3d4a8f[_0x2eb708(0x2d6)];_0x5390bb++){const _0x4a6232=_0x3d4a8f[_0x5390bb];_0x95fdd8[_0x2eb708(0x201)](_0x4a6232);if(_0x5390bb!==_0x3d4a8f[_0x2eb708(0x2d6)]-0x1){const _0x103640=_0x3d4a8f[_0x5390bb+0x1],_0x2d1ad4=this['_transformService'][_0x2eb708(0x3ba)](_0x95fdd8,[_0x103640]);if((0x0,_univerjs_pro_collaboration[_0x2eb708(0x21a)])(_0x2d1ad4))_0x95fdd8=_0x2d1ad4[_0x2eb708(0x21c)];else _0x95fdd8=[];}if(_0x5390bb%0xa===0x0&&_0x5390bb>0x0)await this[_0x2eb708(0x3c8)]();}return _0x95fdd8;}[_0x30324f(0x3c8)](){return new Promise(_0x131999=>{const _0x1d419d=_0x6d70;if(typeof requestIdleCallback===_0x1d419d(0x275))requestIdleCallback(()=>_0x131999(),{'timeout':0x64});else setTimeout(_0x131999,0x0);});}[_0x30324f(0x331)](_0x4a1f11){const _0xf63104=_0x30324f;let _0x2e32bf=[];return _0x4a1f11[_0xf63104(0x1de)](_0x1182c4=>{const _0x2c8a48=_0xf63104;if(_0x1182c4['id']===_univerjs_sheets[_0x2c8a48(0x188)]['id']){const _0x3489dc=_0x1182c4[_0x2c8a48(0x2df)];_0x2e32bf[_0x2c8a48(0x201)](_0x3489dc['sheet']['id']);}else{if(_0x1182c4['id']===_univerjs_sheets[_0x2c8a48(0x17c)]['id']){const _0x55bc85=_0x1182c4[_0x2c8a48(0x2df)];if(_0x2e32bf[_0x2c8a48(0x2d6)]>0x0)_0x2e32bf=_0x2e32bf[_0x2c8a48(0x325)](_0x1cb220=>_0x1cb220!==_0x55bc85[_0x2c8a48(0x1ea)]);}else{if(_0x1182c4['id']===_univerjs_sheets[_0x2c8a48(0x19d)]['id']){const _0x1ad474=_0x1182c4[_0x2c8a48(0x2df)];if(_0x1ad474[_0x2c8a48(0x4ab)])_0x2e32bf=_0x2e32bf['filter'](_0x11ba05=>_0x11ba05!==_0x1ad474['subUnitId']);else _0x2e32bf[_0x2c8a48(0x201)](_0x1ad474['subUnitId']);}else{const _0x3dd5f7=_0x1182c4[_0x2c8a48(0x2df)];if(_0x3dd5f7['subUnitId'])_0x2e32bf[_0x2c8a48(0x201)](_0x3dd5f7[_0x2c8a48(0x1ea)]);}}}}),_0x2e32bf[_0xf63104(0x2d6)]>0x0?_0x2e32bf[_0x2e32bf[_0xf63104(0x2d6)]-0x1]:null;}[_0x30324f(0x1c1)](_0x316c63){const _0x3f9323=_0x30324f,_0x493438=new Map(),_0x55f832=new Map(),_0x4ee058=new Map(),_0x566d95=new Map(),_0x230d66=new Map(),_0x413774=new Map(),_0x74b18c=new Map(),_0x55ff79=new Map(),_0x30b3e9=new Map(),_0x2625bc=new Map(),_0x4a62c6=new Map(),_0x2d3078=new Map(),_0x18cacb=new Set(),_0x5319b5=this[_0x3f9323(0x1b2)]();return _0x316c63['forEach'](_0x2496aa=>{const _0x27a4f1=_0x3f9323;var _0x3550f2,_0x20742d,_0x4de838,_0x49c17a,_0x37a83d,_0x1ce0ef,_0x34ce3f,_0x16c616,_0x51383a,_0x45a7ed,_0x2f8027,_0x1f72d8,_0x196e62;const _0x2e0e68=(_0x3550f2=_0x2496aa['params'])===null||_0x3550f2===void 0x0?void 0x0:_0x3550f2[_0x27a4f1(0x1e9)];if(!_0x2e0e68)return;!_0x493438[_0x27a4f1(0x48f)](_0x2e0e68)&&(_0x493438['set'](_0x2e0e68,[]),_0x55f832[_0x27a4f1(0x400)](_0x2e0e68,[]),_0x4ee058[_0x27a4f1(0x400)](_0x2e0e68,[]),_0x566d95['set'](_0x2e0e68,[]),_0x230d66[_0x27a4f1(0x400)](_0x2e0e68,[]),_0x413774['set'](_0x2e0e68,[]),_0x74b18c[_0x27a4f1(0x400)](_0x2e0e68,[]),_0x55ff79[_0x27a4f1(0x400)](_0x2e0e68,[]),_0x30b3e9[_0x27a4f1(0x400)](_0x2e0e68,[]),_0x2625bc[_0x27a4f1(0x400)](_0x2e0e68,[]),_0x4a62c6[_0x27a4f1(0x400)](_0x2e0e68,[]),_0x2d3078[_0x27a4f1(0x400)](_0x2e0e68,[]));const _0x1a8a43=this[_0x27a4f1(0x3b0)](_0x2496aa,_0x5319b5);_0x1a8a43[_0x27a4f1(0x430)]['forEach'](_0x5ada98=>_0x18cacb[_0x27a4f1(0x24d)](_0x5ada98)),(_0x20742d=_0x493438[_0x27a4f1(0x249)](_0x2e0e68))===null||_0x20742d===void 0x0||_0x20742d[_0x27a4f1(0x201)](..._0x1a8a43[_0x27a4f1(0x353)]),(_0x4de838=_0x55f832[_0x27a4f1(0x249)](_0x2e0e68))===null||_0x4de838===void 0x0||_0x4de838[_0x27a4f1(0x201)](..._0x1a8a43[_0x27a4f1(0x39a)]),(_0x49c17a=_0x4ee058[_0x27a4f1(0x249)](_0x2e0e68))===null||_0x49c17a===void 0x0||_0x49c17a[_0x27a4f1(0x201)](..._0x1a8a43['deleteCellRanges']),(_0x37a83d=_0x566d95[_0x27a4f1(0x249)](_0x2e0e68))===null||_0x37a83d===void 0x0||_0x37a83d[_0x27a4f1(0x201)](..._0x1a8a43['updateCellRanges']),(_0x1ce0ef=_0x230d66[_0x27a4f1(0x249)](_0x2e0e68))===null||_0x1ce0ef===void 0x0||_0x1ce0ef[_0x27a4f1(0x201)](..._0x1a8a43[_0x27a4f1(0x22d)]),(_0x34ce3f=_0x413774['get'](_0x2e0e68))===null||_0x34ce3f===void 0x0||_0x34ce3f[_0x27a4f1(0x201)](..._0x1a8a43[_0x27a4f1(0x368)]),(_0x16c616=_0x74b18c[_0x27a4f1(0x249)](_0x2e0e68))===null||_0x16c616===void 0x0||_0x16c616['push'](..._0x1a8a43[_0x27a4f1(0x34f)]),(_0x51383a=_0x55ff79[_0x27a4f1(0x249)](_0x2e0e68))===null||_0x51383a===void 0x0||_0x51383a[_0x27a4f1(0x201)](..._0x1a8a43[_0x27a4f1(0x1a4)]),(_0x45a7ed=_0x30b3e9[_0x27a4f1(0x249)](_0x2e0e68))===null||_0x45a7ed===void 0x0||_0x45a7ed[_0x27a4f1(0x201)](..._0x1a8a43['arrowColumnRanges']),(_0x2f8027=_0x4a62c6[_0x27a4f1(0x249)](_0x2e0e68))===null||_0x2f8027===void 0x0||_0x2f8027[_0x27a4f1(0x201)](..._0x1a8a43[_0x27a4f1(0x299)]),(_0x1f72d8=_0x2d3078['get'](_0x2e0e68))===null||_0x1f72d8===void 0x0||_0x1f72d8[_0x27a4f1(0x201)](..._0x1a8a43['deleteDrawings']),(_0x196e62=_0x2625bc[_0x27a4f1(0x249)](_0x2e0e68))===null||_0x196e62===void 0x0||_0x196e62[_0x27a4f1(0x201)](..._0x1a8a43[_0x27a4f1(0x34a)]);}),_0x493438[_0x3f9323(0x1de)]((_0x2dc56a,_0x415b77)=>{const _0x5d429e=_0x3f9323;_0x493438[_0x5d429e(0x400)](_0x415b77,this[_0x5d429e(0x416)](_0x2dc56a)),_0x55f832['set'](_0x415b77,this[_0x5d429e(0x416)](_0x55f832[_0x5d429e(0x249)](_0x415b77)||[])),_0x4ee058[_0x5d429e(0x400)](_0x415b77,this[_0x5d429e(0x416)](_0x4ee058[_0x5d429e(0x249)](_0x415b77)||[])),_0x566d95[_0x5d429e(0x400)](_0x415b77,this[_0x5d429e(0x416)](_0x566d95[_0x5d429e(0x249)](_0x415b77)||[])),_0x230d66[_0x5d429e(0x400)](_0x415b77,this[_0x5d429e(0x416)](_0x230d66[_0x5d429e(0x249)](_0x415b77)||[])),_0x413774[_0x5d429e(0x400)](_0x415b77,this[_0x5d429e(0x416)](_0x413774['get'](_0x415b77)||[])),_0x74b18c[_0x5d429e(0x400)](_0x415b77,this[_0x5d429e(0x416)](_0x74b18c['get'](_0x415b77)||[])),_0x55ff79[_0x5d429e(0x400)](_0x415b77,this[_0x5d429e(0x416)](_0x55ff79['get'](_0x415b77)||[])),_0x30b3e9[_0x5d429e(0x400)](_0x415b77,this[_0x5d429e(0x416)](_0x30b3e9[_0x5d429e(0x249)](_0x415b77)||[]));}),{'ranges':_0x493438,'insertCellRanges':_0x55f832,'deleteCellRanges':_0x4ee058,'updateCellRanges':_0x566d95,'insertBorderRanges':_0x230d66,'deleteBorderRanges':_0x413774,'updateBorderRanges':_0x74b18c,'arrowRowRanges':_0x55ff79,'arrowColumnRanges':_0x30b3e9,'insertDrawings':_0x4a62c6,'deleteDrawings':_0x2d3078,'updateDrawings':_0x2625bc,'subUnitIds':Array[_0x3f9323(0x3f6)](_0x18cacb)};}[_0x30324f(0x3b0)](_0x210139,_0x9ac958){const _0x1f3298=_0x30324f,_0x27db14={'allRanges':[],'insertCellRanges':[],'deleteCellRanges':[],'updateCellRanges':[],'insertBorderRanges':[],'deleteBorderRanges':[],'updateBorderRanges':[],'arrowRowRanges':[],'arrowColumnRanges':[],'insertDrawings':[],'deleteDrawings':[],'updateDrawings':[],'subUnitIds':[]},_0x43335e=_0x210139['id'],_0x261cff=_0x210139['params'],_0xf78955=this[_0x1f3298(0x19b)]['t'](_0x9ac958[_0x1f3298(0x249)](_0x43335e)||'');if(_0x261cff[_0x1f3298(0x1ea)])_0x27db14['subUnitIds'][_0x1f3298(0x201)](_0x261cff[_0x1f3298(0x1ea)]);const _0x47ae7f=(_0x423879,_0x2f719c)=>{const _0x22fe34=_0x1f3298,_0x1dc5a1=_0x423879[_0x22fe34(0x45c)](_0x3dc704=>({..._0x3dc704,'showText':_0xf78955}));_0x27db14[_0x22fe34(0x353)][_0x22fe34(0x201)](..._0x1dc5a1);switch(_0x2f719c){case'insert':_0x27db14[_0x22fe34(0x39a)][_0x22fe34(0x201)](..._0x1dc5a1);break;case'delete':_0x27db14[_0x22fe34(0x472)][_0x22fe34(0x201)](..._0x1dc5a1);break;case'update':_0x27db14['updateCellRanges'][_0x22fe34(0x201)](..._0x1dc5a1);break;case _0x22fe34(0x43d):_0x27db14[_0x22fe34(0x22d)]['push'](..._0x1dc5a1);break;case'deleteBorder':_0x27db14[_0x22fe34(0x368)][_0x22fe34(0x201)](..._0x1dc5a1);break;case _0x22fe34(0x334):_0x27db14[_0x22fe34(0x34f)][_0x22fe34(0x201)](..._0x1dc5a1);break;case _0x22fe34(0x48b):_0x27db14[_0x22fe34(0x1a4)][_0x22fe34(0x201)](..._0x1dc5a1);break;case _0x22fe34(0x3aa):_0x27db14[_0x22fe34(0x397)][_0x22fe34(0x201)](..._0x1dc5a1);break;}};switch(_0x43335e){case _univerjs_sheets[_0x1f3298(0x206)]['id']:{const _0x3b1d49=_0x261cff;_0x47ae7f([{'range':{..._0x3b1d49[_0x1f3298(0x352)],'rangeType':_univerjs_core[_0x1f3298(0x42e)][_0x1f3298(0x237)]},'unitId':_0x3b1d49[_0x1f3298(0x37b)],'subUnitId':_0x3b1d49[_0x1f3298(0x1ea)],'showText':_0x1f3298(0x493),'highlightRow':!![]}],_0x1f3298(0x2a0));break;}case _univerjs_sheets[_0x1f3298(0x205)]['id']:{const _0x56c555=_0x261cff;_0x47ae7f([{'range':{..._0x56c555['range'],'rangeType':_univerjs_core['RANGE_TYPE'][_0x1f3298(0x452)]},'unitId':_0x56c555[_0x1f3298(0x37b)],'subUnitId':_0x56c555[_0x1f3298(0x1ea)],'showText':'insertCol','highlightColumn':!![]}],_0x1f3298(0x2a0));break;}case _univerjs_sheets['AddWorksheetMergeMutation']['id']:{const _0x1afdab=_0x261cff;_0x47ae7f(_0x1afdab[_0x1f3298(0x307)]['map'](_0x9e4103=>({'range':_0x9e4103,'unitId':_0x1afdab[_0x1f3298(0x37b)],'subUnitId':_0x1afdab[_0x1f3298(0x1ea)],'showText':_0x1f3298(0x268)})),_0x1f3298(0x2a0));break;}case _univerjs_sheets[_0x1f3298(0x3fa)]['id']:{const _0x1b8ac3=_0x261cff;_0x47ae7f(Object[_0x1f3298(0x2ff)](_0x1b8ac3[_0x1f3298(0x2ff)])[_0x1f3298(0x45c)](_0x1f4172=>_0x1f4172[_0x1f3298(0x307)][_0x1f3298(0x45c)](_0x1f44e8=>({'range':_0x1f44e8,'unitId':_0x1b8ac3[_0x1f3298(0x37b)],'subUnitId':_0x1b8ac3['subUnitId'],'showText':_0x1f3298(0x27a)})))[_0x1f3298(0x258)](),_0x1f3298(0x2a0));break;}case _univerjs_sheets[_0x1f3298(0x3a4)]['id']:{const _0x5e4bc3=_0x261cff;_0x47ae7f(_0x5e4bc3[_0x1f3298(0x307)][_0x1f3298(0x45c)](_0x376cc1=>({'range':_0x376cc1,'unitId':_0x5e4bc3[_0x1f3298(0x37b)],'subUnitId':_0x5e4bc3[_0x1f3298(0x1ea)],'showText':_0x1f3298(0x1be)})),_0x1f3298(0x335));break;}case _univerjs_sheets[_0x1f3298(0x495)]['id']:{const _0x36b5f0=_0x261cff;_0x47ae7f(_0x36b5f0[_0x1f3298(0x307)][_0x1f3298(0x45c)](_0x35c0ef=>({'range':_0x35c0ef,'unitId':_0x36b5f0[_0x1f3298(0x37b)],'subUnitId':_0x36b5f0[_0x1f3298(0x1ea)],'showText':_0x1f3298(0x340)})),'delete');break;}case _univerjs_sheets[_0x1f3298(0x2f9)]['id']:{const _0x512f3e=_0x261cff;_0x47ae7f([{'range':{..._0x512f3e[_0x1f3298(0x3f8)],'rangeType':_univerjs_core[_0x1f3298(0x42e)][_0x1f3298(0x237)]},'unitId':_0x512f3e[_0x1f3298(0x37b)],'subUnitId':_0x512f3e['subUnitId'],'showText':_0x1f3298(0x1b0)}],_0x1f3298(0x335)),_0x47ae7f([{'range':{..._0x512f3e[_0x1f3298(0x4a0)],'rangeType':_univerjs_core[_0x1f3298(0x42e)][_0x1f3298(0x237)]},'unitId':_0x512f3e[_0x1f3298(0x37b)],'subUnitId':_0x512f3e['subUnitId'],'showText':_0x1f3298(0x1b0)}],_0x1f3298(0x2a0));break;}case _univerjs_sheets['MoveColsMutation']['id']:{const _0x37ca46=_0x261cff;_0x47ae7f([{'range':{..._0x37ca46[_0x1f3298(0x3f8)],'rangeType':_univerjs_core['RANGE_TYPE'][_0x1f3298(0x452)]},'unitId':_0x37ca46[_0x1f3298(0x37b)],'subUnitId':_0x37ca46[_0x1f3298(0x1ea)],'showText':_0x1f3298(0x1ef)}],_0x1f3298(0x335)),_0x47ae7f([{'range':{..._0x37ca46[_0x1f3298(0x4a0)],'rangeType':_univerjs_core[_0x1f3298(0x42e)][_0x1f3298(0x452)]},'unitId':_0x37ca46['unitId'],'subUnitId':_0x37ca46['subUnitId'],'showText':_0x1f3298(0x1ef)}],_0x1f3298(0x2a0));break;}case _univerjs_sheets[_0x1f3298(0x417)]['id']:{const _0x4106af=_0x261cff;_0x47ae7f(_0x4106af['ranges']['map'](_0x1d4efc=>({'range':{..._0x1d4efc,'rangeType':_univerjs_core['RANGE_TYPE'][_0x1f3298(0x237)]},'unitId':_0x4106af[_0x1f3298(0x37b)],'subUnitId':_0x4106af[_0x1f3298(0x1ea)],'showText':'showRow','highlightRow':!![]})),_0x1f3298(0x15f));break;}case _univerjs_sheets[_0x1f3298(0x198)]['id']:{const _0x5e8d01=_0x261cff;if(_0x5e8d01[_0x1f3298(0x33e)]&&_0x5e8d01['subUnitId'])Object[_0x1f3298(0x179)](_0x5e8d01[_0x1f3298(0x33e)])[_0x1f3298(0x45c)](Number)[_0x1f3298(0x1de)](_0x55fc9c=>{const _0xd23d9d=_0x1f3298;_0x47ae7f([{'range':{'startRow':_0x55fc9c,'endRow':_0x55fc9c,'startColumn':NaN,'endColumn':NaN,'rangeType':_univerjs_core[_0xd23d9d(0x42e)][_0xd23d9d(0x237)]},'unitId':_0x5e8d01[_0xd23d9d(0x37b)],'subUnitId':_0x5e8d01[_0xd23d9d(0x1ea)],'showText':'setRowData','highlightRow':!![]}],_0xd23d9d(0x15f));});break;}case _univerjs_sheets[_0x1f3298(0x279)]['id']:{const _0x228d9c=_0x261cff;_0x47ae7f(_0x228d9c[_0x1f3298(0x307)][_0x1f3298(0x45c)](_0x18f689=>({'range':{..._0x18f689,'rangeType':_univerjs_core[_0x1f3298(0x42e)][_0x1f3298(0x452)]},'unitId':_0x228d9c[_0x1f3298(0x37b)],'subUnitId':_0x228d9c['subUnitId'],'showText':_0x1f3298(0x3be),'highlightColumn':!![]})),_0x1f3298(0x15f));break;}case _univerjs_sheets[_0x1f3298(0x17f)]['id']:{const _0x3196b4=_0x261cff;if(_0x3196b4['columnData']&&_0x3196b4[_0x1f3298(0x1ea)])Object['keys'](_0x3196b4['columnData'])[_0x1f3298(0x45c)](Number)[_0x1f3298(0x1de)](_0x2345df=>{const _0x29d63d=_0x1f3298;_0x47ae7f([{'range':{'startRow':NaN,'endRow':NaN,'startColumn':_0x2345df,'endColumn':_0x2345df,'rangeType':_univerjs_core['RANGE_TYPE'][_0x29d63d(0x452)]},'unitId':_0x3196b4[_0x29d63d(0x37b)],'subUnitId':_0x3196b4[_0x29d63d(0x1ea)],'showText':_0x29d63d(0x363),'highlightColumn':!![]}],_0x29d63d(0x15f));});break;}case _univerjs_sheets['SetRangeValuesMutation']['id']:{const _0x576036=_0x261cff;_0x47ae7f(_0x576036[_0x1f3298(0x1d9)]?matrixPrimitiveToRanges(_0x576036[_0x1f3298(0x1d9)])[_0x1f3298(0x45c)](_0xe40a5e=>({'range':_0xe40a5e,'unitId':_0x576036[_0x1f3298(0x37b)],'subUnitId':_0x576036[_0x1f3298(0x1ea)],'showText':'setRangeValues'})):[],_0x1f3298(0x15f));break;}case _univerjs_sheets[_0x1f3298(0x18d)]['id']:{const _0x4a97ac=_0x210139[_0x1f3298(0x2df)];_0x47ae7f([{'range':matrixPrimitiveToDataRange(_0x4a97ac[_0x1f3298(0x3f6)][_0x1f3298(0x195)]),'unitId':_0x4a97ac[_0x1f3298(0x37b)],'subUnitId':_0x4a97ac['from'][_0x1f3298(0x1ea)],'showText':_0x1f3298(0x199)}],_0x1f3298(0x335)),_0x47ae7f([{'range':matrixPrimitiveToDataRange(_0x4a97ac['to'][_0x1f3298(0x195)]),'unitId':_0x4a97ac[_0x1f3298(0x37b)],'subUnitId':_0x4a97ac['to'][_0x1f3298(0x1ea)],'showText':'moveRange'}],_0x1f3298(0x2a0));break;}case _univerjs_sheets['ReorderRangeMutation']['id']:{const _0x33fe12=_0x261cff;_0x47ae7f([{'range':_0x33fe12['range'],'unitId':_0x33fe12[_0x1f3298(0x37b)],'subUnitId':_0x33fe12['subUnitId']}],_0x1f3298(0x15f));break;}case _univerjs_sheets['SetWorksheetRowHeightMutation']['id']:{const _0x4a7832=_0x261cff;if(_0x4a7832[_0x1f3298(0x307)]&&_0x4a7832['ranges']['length']>0x0&&_0x4a7832[_0x1f3298(0x1ea)])_0x47ae7f(_0x4a7832[_0x1f3298(0x307)]['map'](_0x572662=>({'range':_0x572662,'unitId':_0x4a7832[_0x1f3298(0x37b)],'subUnitId':_0x4a7832[_0x1f3298(0x1ea)],'showText':_0x1f3298(0x356)})),_0x1f3298(0x48b));break;}case _univerjs_sheets[_0x1f3298(0x461)]['id']:{const _0x432117=_0x261cff;if(_0x432117[_0x1f3298(0x307)]&&_0x432117[_0x1f3298(0x307)][_0x1f3298(0x2d6)]>0x0&&_0x432117[_0x1f3298(0x1ea)])_0x47ae7f(_0x432117['ranges'][_0x1f3298(0x45c)](_0x240c76=>({'range':_0x240c76,'unitId':_0x432117[_0x1f3298(0x37b)],'subUnitId':_0x432117[_0x1f3298(0x1ea)],'showText':_0x1f3298(0x192)})),_0x1f3298(0x3aa));break;}case _univerjs_sheets[_0x1f3298(0x434)]['id']:{const _0x2c4542=_0x261cff;_0x47ae7f(_0x2c4542[_0x1f3298(0x220)]['map'](_0x499d84=>_0x499d84['ranges']['map'](_0x31bdae=>({'range':_0x31bdae,'unitId':_0x2c4542[_0x1f3298(0x37b)],'subUnitId':_0x2c4542['subUnitId'],'showText':'addRangeProtection'})))[_0x1f3298(0x258)](),_0x1f3298(0x43d));break;}case _univerjs_sheets_conditional_formatting['AddConditionalRuleMutation']['id']:{const _0x16eb21=_0x261cff;_0x47ae7f(_0x16eb21['rule'][_0x1f3298(0x307)][_0x1f3298(0x45c)](_0x5e1c88=>({'range':_0x5e1c88,'unitId':_0x16eb21[_0x1f3298(0x37b)],'subUnitId':_0x16eb21[_0x1f3298(0x1ea)],'showText':'setCF'})),_0x1f3298(0x43d));break;}case _univerjs_data_validation[_0x1f3298(0x1dc)]['id']:{const _0x2908a5=_0x261cff;_0x47ae7f((Array[_0x1f3298(0x291)](_0x2908a5[_0x1f3298(0x227)])?_0x2908a5['rule']:[_0x2908a5[_0x1f3298(0x227)]])[_0x1f3298(0x45c)](_0x25e38b=>_0x25e38b['ranges'][_0x1f3298(0x45c)](_0x4200d1=>({'range':_0x4200d1,'unitId':_0x2908a5[_0x1f3298(0x37b)],'subUnitId':_0x2908a5[_0x1f3298(0x1ea)],'showText':_0x1f3298(0x24a)})))[_0x1f3298(0x258)](),_0x1f3298(0x43d));break;}case _univerjs_sheets[_0x1f3298(0x247)]['id']:{const _0x16eb65=_0x261cff,_0x4ae929=_0x16eb65[_0x1f3298(0x37b)],_0x41d83a=_0x16eb65[_0x1f3298(0x1ea)];if(_0x16eb65[_0x1f3298(0x3c6)]&&_0x16eb65[_0x1f3298(0x3c6)][_0x1f3298(0x2d6)]>0x0&&_0x16eb65[_0x1f3298(0x1ea)])_0x16eb65['ruleIds']['forEach'](_0x46f3a7=>{const _0x25ee75=_0x1f3298,_0xaed263=this[_0x25ee75(0x15c)]['getRule'](_0x4ae929,_0x41d83a,_0x46f3a7),_0x57f3e8=(_0xaed263===null||_0xaed263===void 0x0?void 0x0:_0xaed263[_0x25ee75(0x307)][_0x25ee75(0x45c)](_0x10f155=>({'range':_0x10f155,'unitId':_0x4ae929,'subUnitId':_0x41d83a,'showText':_0x25ee75(0x267)})))||[];if(_0x57f3e8[_0x25ee75(0x2d6)]>0x0)_0x47ae7f(_0x57f3e8,'deleteBorder');});break;}case _univerjs_sheets_conditional_formatting[_0x1f3298(0x214)]['id']:{const _0xda1f3f=_0x261cff;if(_0xda1f3f[_0x1f3298(0x413)]&&_0xda1f3f[_0x1f3298(0x1ea)]){const _0x59fc33=this[_0x1f3298(0x4a3)][_0x1f3298(0x1e7)](_0xda1f3f[_0x1f3298(0x37b)],_0xda1f3f[_0x1f3298(0x1ea)],_0xda1f3f[_0x1f3298(0x413)]);if(_0x59fc33){const _0x5ebc34=_0x59fc33[_0x1f3298(0x307)][_0x1f3298(0x45c)](_0x987dbc=>({'range':_0x987dbc,'unitId':_0xda1f3f[_0x1f3298(0x37b)],'subUnitId':_0xda1f3f['subUnitId'],'showText':_0x1f3298(0x2dd)}));if(_0x5ebc34[_0x1f3298(0x2d6)]>0x0)_0x47ae7f(_0x5ebc34,_0x1f3298(0x207));}}break;}case _univerjs_data_validation[_0x1f3298(0x25e)]['id']:{const _0x589ee7=_0x261cff,_0x1eb9d3=Array[_0x1f3298(0x291)](_0x589ee7[_0x1f3298(0x20e)])?_0x589ee7['ruleId']:[_0x589ee7[_0x1f3298(0x20e)]];if(_0x1eb9d3[_0x1f3298(0x2d6)]>0x0&&_0x589ee7['subUnitId'])_0x1eb9d3[_0x1f3298(0x1de)](_0x151b20=>{const _0x2f6cc8=_0x1f3298,_0x1e5d8e=this['_dataValidationModel'][_0x2f6cc8(0x257)](_0x589ee7[_0x2f6cc8(0x37b)],_0x589ee7[_0x2f6cc8(0x1ea)],_0x151b20),_0x573612=(_0x1e5d8e===null||_0x1e5d8e===void 0x0?void 0x0:_0x1e5d8e[_0x2f6cc8(0x307)][_0x2f6cc8(0x45c)](_0x2fc149=>({'range':_0x2fc149,'unitId':_0x589ee7['unitId'],'subUnitId':_0x589ee7[_0x2f6cc8(0x1ea)],'showText':_0x2f6cc8(0x31b)})))||[];if(_0x573612[_0x2f6cc8(0x2d6)]>0x0)_0x47ae7f(_0x573612,_0x2f6cc8(0x207));});break;}case _univerjs_sheets['SetRangeProtectionMutation']['id']:{const _0x2515ec=_0x261cff;_0x47ae7f(_0x2515ec[_0x1f3298(0x227)][_0x1f3298(0x307)][_0x1f3298(0x45c)](_0x623457=>({'range':_0x623457,'unitId':_0x2515ec['unitId'],'subUnitId':_0x2515ec['subUnitId'],'showText':'setRangeProtection'})),'updateBorder');break;}case _univerjs_sheets['SetWorksheetRangeThemeStyleMutation']['id']:{const _0x1002cb=_0x261cff;_0x47ae7f([{'range':_0x1002cb['range'],'unitId':_0x1002cb['unitId'],'subUnitId':_0x1002cb[_0x1f3298(0x1ea)],'showText':'setWorksheetRangeTheme'}],_0x1f3298(0x334));break;}case _univerjs_sheets[_0x1f3298(0x42b)]['id']:{const _0x3946da=_0x261cff;_0x47ae7f([{'range':_0x3946da[_0x1f3298(0x352)],'unitId':_0x3946da[_0x1f3298(0x37b)],'subUnitId':_0x3946da[_0x1f3298(0x1ea)],'showText':'deleteWorksheetRangeTheme'}],_0x1f3298(0x334));break;}case _univerjs_sheets_conditional_formatting[_0x1f3298(0x19e)]['id']:{const _0x5da996=_0x261cff;_0x47ae7f(_0x5da996[_0x1f3298(0x227)]['ranges'][_0x1f3298(0x45c)](_0x26eb08=>({'range':_0x26eb08,'unitId':_0x5da996['unitId'],'subUnitId':_0x5da996[_0x1f3298(0x1ea)],'showText':'setCF'})),_0x1f3298(0x334));break;}case _univerjs_sheets_conditional_formatting[_0x1f3298(0x1f2)]['id']:{const _0x4440d9=_0x261cff,_0x188d22=this[_0x1f3298(0x4a3)][_0x1f3298(0x1e7)](_0x4440d9['unitId'],_0x4440d9[_0x1f3298(0x1ea)],_0x4440d9['start']['id']),_0x317d34=this[_0x1f3298(0x4a3)][_0x1f3298(0x1e7)](_0x4440d9[_0x1f3298(0x37b)],_0x4440d9[_0x1f3298(0x1ea)],_0x4440d9[_0x1f3298(0x300)]['id']);if(_0x188d22)_0x47ae7f(_0x188d22[_0x1f3298(0x307)]['map'](_0x403d17=>({'range':_0x403d17,'unitId':_0x4440d9[_0x1f3298(0x37b)],'subUnitId':_0x4440d9[_0x1f3298(0x1ea)],'showText':_0x1f3298(0x313)})),_0x1f3298(0x207));if(_0x317d34)_0x47ae7f(_0x317d34['ranges'][_0x1f3298(0x45c)](_0x331d77=>({'range':_0x331d77,'unitId':_0x4440d9[_0x1f3298(0x37b)],'subUnitId':_0x4440d9[_0x1f3298(0x1ea)],'showText':_0x1f3298(0x313)})),_0x1f3298(0x43d));break;}case _univerjs_sheets_filter[_0x1f3298(0x40a)]['id']:{const _0x45bea2=_0x261cff;_0x47ae7f([{'range':_0x45bea2[_0x1f3298(0x352)],'unitId':_0x45bea2['unitId'],'subUnitId':_0x45bea2[_0x1f3298(0x1ea)],'showText':_0x1f3298(0x2bf)}],_0x1f3298(0x334));break;}case _univerjs_sheets_filter['SetSheetsFilterCriteriaMutation']['id']:{const _0x445eca=_0x261cff,_0x4134f4=this[_0x1f3298(0x310)][_0x1f3298(0x3e6)](_0x445eca[_0x1f3298(0x37b)],_0x445eca[_0x1f3298(0x1ea)]);if(_0x4134f4){const _0x3fc7e6=_0x4134f4[_0x1f3298(0x34c)]();_0x47ae7f(_0x3fc7e6?[{'range':_0x3fc7e6,'unitId':_0x445eca['unitId'],'subUnitId':_0x445eca['subUnitId'],'showText':_0x1f3298(0x408)}]:[],_0x1f3298(0x334));}break;}case _univerjs_sheets_filter[_0x1f3298(0x278)]['id']:{const _0x16dc83=_0x261cff,_0x4e888f=this[_0x1f3298(0x310)][_0x1f3298(0x3e6)](_0x16dc83[_0x1f3298(0x37b)],_0x16dc83[_0x1f3298(0x1ea)]);if(_0x4e888f){const _0x505186=_0x4e888f[_0x1f3298(0x34c)]();_0x47ae7f(_0x505186?[{'range':_0x505186,'unitId':_0x16dc83[_0x1f3298(0x37b)],'subUnitId':_0x16dc83[_0x1f3298(0x1ea)],'showText':_0x1f3298(0x17b)}]:[],'updateBorder');}break;}case _univerjs_sheets_filter[_0x1f3298(0x27b)]['id']:{const _0x2ff598=_0x261cff,_0x4cd7b4=this[_0x1f3298(0x310)]['getFilterModel'](_0x2ff598['unitId'],_0x2ff598[_0x1f3298(0x1ea)]);if(_0x4cd7b4){const _0x4ef362=_0x4cd7b4['getRange']();_0x47ae7f(_0x4ef362?[{'range':_0x4ef362,'unitId':_0x2ff598[_0x1f3298(0x37b)],'subUnitId':_0x2ff598[_0x1f3298(0x1ea)],'showText':'removeFilter'}]:[],_0x1f3298(0x334));}break;}case _univerjs_data_validation[_0x1f3298(0x1f1)]['id']:{const _0x55f1e5=_0x261cff,_0x36513d=this[_0x1f3298(0x1c6)][_0x1f3298(0x257)](_0x55f1e5['unitId'],_0x55f1e5['subUnitId'],_0x55f1e5['ruleId']);if(_0x36513d)_0x47ae7f(_0x36513d[_0x1f3298(0x307)][_0x1f3298(0x45c)](_0x37e19a=>({'range':_0x37e19a,'unitId':_0x55f1e5[_0x1f3298(0x37b)],'subUnitId':_0x55f1e5[_0x1f3298(0x1ea)],'showText':_0x1f3298(0x24a)})),'updateBorder');break;}case _univerjs_pro_sheets_sparkline[_0x1f3298(0x465)]['id']:{const _0x2c2597=_0x261cff,_0x71ede0=_0x2c2597[_0x1f3298(0x37b)],_0x3c1ad3=_0x2c2597['subUnitId'],_0x36c322=_0x2c2597[_0x1f3298(0x308)];if(_0x2c2597[_0x1f3298(0x308)]&&_0x3c1ad3)Object[_0x1f3298(0x179)](_0x2c2597[_0x1f3298(0x308)])['forEach'](_0x5a5025=>{const _0x4bc939=_0x1f3298,_0x25e56a=_0x36c322[_0x5a5025];_0x47ae7f(matrixPrimitiveToRanges(_0x25e56a[_0x4bc939(0x475)])['map'](_0x21b66e=>({'range':_0x21b66e,'unitId':_0x71ede0,'subUnitId':_0x3c1ad3,'showText':'addSparkline'})),_0x4bc939(0x2a0));});break;}case _univerjs_pro_sheets_sparkline['SetSheetSparklineMutation']['id']:{const _0x5eca6a=_0x261cff;if(_0x5eca6a[_0x1f3298(0x24b)]&&_0x5eca6a[_0x1f3298(0x24b)][_0x1f3298(0x2d6)]>0x0&&_0x5eca6a[_0x1f3298(0x1ea)])_0x5eca6a[_0x1f3298(0x24b)][_0x1f3298(0x1de)](_0x2cf26a=>{const _0x5ea91e=_0x1f3298,_0x5e5084=this[_0x5ea91e(0x3b1)][_0x5ea91e(0x439)](_0x5eca6a[_0x5ea91e(0x37b)],_0x5eca6a[_0x5ea91e(0x1ea)],_0x2cf26a);if(_0x5e5084)_0x47ae7f(matrixPrimitiveToRanges(_0x5e5084['sparklines'][_0x5ea91e(0x3d5)]())[_0x5ea91e(0x45c)](_0x548c68=>({'range':_0x548c68,'unitId':_0x5eca6a['unitId'],'subUnitId':_0x5eca6a[_0x5ea91e(0x1ea)],'showText':_0x5ea91e(0x2f2)})),_0x5ea91e(0x15f));});break;}case _univerjs_pro_sheets_sparkline[_0x1f3298(0x37a)]['id']:{const _0x29162b=_0x261cff;if(_0x29162b['groupIds']&&_0x29162b[_0x1f3298(0x24b)]['length']>0x0&&_0x29162b['subUnitId'])_0x29162b[_0x1f3298(0x24b)][_0x1f3298(0x1de)](_0x471771=>{const _0x969ac2=_0x1f3298,_0x222788=this[_0x969ac2(0x3b1)]['getSparklineById'](_0x29162b[_0x969ac2(0x37b)],_0x29162b[_0x969ac2(0x1ea)],_0x471771);if(_0x222788)_0x47ae7f(matrixPrimitiveToRanges(_0x222788[_0x969ac2(0x475)][_0x969ac2(0x3d5)]())[_0x969ac2(0x45c)](_0x587c7a=>({'range':_0x587c7a,'unitId':_0x29162b[_0x969ac2(0x37b)],'subUnitId':_0x29162b[_0x969ac2(0x1ea)],'showText':_0x969ac2(0x1bf)})),'delete');});break;}case _univerjs_sheets_table[_0x1f3298(0x391)]['id']:{const _0x41f584=_0x261cff;if(_0x41f584['tableId']&&_0x41f584[_0x1f3298(0x1ea)])_0x47ae7f([{'range':_0x41f584['range'],'unitId':_0x41f584['unitId'],'subUnitId':_0x41f584[_0x1f3298(0x1ea)],'showText':'addTable'}],'insert');break;}case _univerjs_sheets_table[_0x1f3298(0x4ba)]['id']:{const _0x40a187=_0x261cff;if(_0x40a187['tableId']&&_0x40a187[_0x1f3298(0x1ea)]){var _0x3194d0;const _0x2d4f52=(_0x3194d0=this[_0x1f3298(0x251)][_0x1f3298(0x45a)](_0x40a187[_0x1f3298(0x37b)],_0x40a187['tableId']))===null||_0x3194d0===void 0x0?void 0x0:_0x3194d0[_0x1f3298(0x352)];if(_0x2d4f52)_0x47ae7f([{'range':_0x2d4f52,'unitId':_0x40a187[_0x1f3298(0x37b)],'subUnitId':_0x40a187['subUnitId'],'showText':_0x1f3298(0x4ac)}],_0x1f3298(0x335));}break;}case _univerjs_sheets_table[_0x1f3298(0x1fe)]['id']:{const _0x1cdcc2=_0x261cff;if(_0x1cdcc2[_0x1f3298(0x1b5)]){const _0xd617e2=this[_0x1f3298(0x251)][_0x1f3298(0x45a)](_0x1cdcc2[_0x1f3298(0x37b)],_0x1cdcc2[_0x1f3298(0x1b5)]);_0xd617e2&&_0xd617e2[_0x1f3298(0x352)]&&_0xd617e2[_0x1f3298(0x1ea)]&&(_0x27db14[_0x1f3298(0x430)][_0x1f3298(0x201)](_0xd617e2['subUnitId']),_0x47ae7f([{'range':_0xd617e2[_0x1f3298(0x352)],'unitId':_0x1cdcc2['unitId'],'subUnitId':_0xd617e2[_0x1f3298(0x1ea)],'showText':_0x1f3298(0x428)}],'update'));}break;}case _univerjs_sheets_table[_0x1f3298(0x283)]['id']:{const _0x3f2863=_0x261cff;if(_0x3f2863[_0x1f3298(0x1b5)]&&_0x3f2863[_0x1f3298(0x1ea)]){var _0x4bb9c5;const _0x506d2a=(_0x4bb9c5=this['_sheetTableService'][_0x1f3298(0x45a)](_0x3f2863['unitId'],_0x3f2863['tableId']))===null||_0x4bb9c5===void 0x0?void 0x0:_0x4bb9c5['range'];if(_0x506d2a)_0x47ae7f([{'range':_0x506d2a,'unitId':_0x3f2863[_0x1f3298(0x37b)],'subUnitId':_0x3f2863[_0x1f3298(0x1ea)],'showText':_0x1f3298(0x374)}],_0x1f3298(0x15f));}break;}case _univerjs_pro_sheets_pivot['AddPivotTableMutation']['id']:{const _0x204571=_0x261cff;if(_0x204571['pivotTableId']&&_0x204571[_0x1f3298(0x1ea)]){var _0xc8681b;const _0x498ed7=(_0xc8681b=this['_sheetsPivotTableConfigModel'][_0x1f3298(0x1b7)](_0x204571[_0x1f3298(0x37b)],_0x204571[_0x1f3298(0x1ea)],_0x204571['pivotTableId']))===null||_0xc8681b===void 0x0?void 0x0:_0xc8681b[_0x1f3298(0x37e)];if(_0x498ed7)_0x47ae7f((0x0,_univerjs_pro_sheets_pivot[_0x1f3298(0x33b)])(_0x498ed7)[_0x1f3298(0x45c)](_0x4bd616=>({'range':_0x4bd616,'unitId':_0x204571[_0x1f3298(0x37b)],'subUnitId':_0x204571['subUnitId'],'showText':_0x1f3298(0x498)})),'insert');}break;}case _univerjs_pro_sheets_pivot[_0x1f3298(0x470)]['id']:{const _0xde0a3=_0x261cff;if(_0xde0a3['pivotTableId']&&_0xde0a3[_0x1f3298(0x1ea)]){var _0x314c72;const _0x4b0e1b=(_0x314c72=this[_0x1f3298(0x3bd)][_0x1f3298(0x1b7)](_0xde0a3['unitId'],_0xde0a3[_0x1f3298(0x1ea)],_0xde0a3['pivotTableId']))===null||_0x314c72===void 0x0?void 0x0:_0x314c72[_0x1f3298(0x37e)];if(_0x4b0e1b)_0x47ae7f((0x0,_univerjs_pro_sheets_pivot[_0x1f3298(0x33b)])(_0x4b0e1b)[_0x1f3298(0x45c)](_0x593aa5=>({'range':_0x593aa5,'unitId':_0xde0a3[_0x1f3298(0x37b)],'subUnitId':_0xde0a3['subUnitId'],'showText':'removePivotTable'})),_0x1f3298(0x335));}break;}case _univerjs_pro_sheets_pivot['SetPivotOptionMutation']['id']:case _univerjs_pro_sheets_pivot[_0x1f3298(0x177)]['id']:case _univerjs_pro_sheets_pivot['UpdatePivotTableSourceRangeMutation']['id']:case _univerjs_pro_sheets_pivot[_0x1f3298(0x19a)]['id']:case _univerjs_pro_sheets_pivot[_0x1f3298(0x412)]['id']:case _univerjs_pro_sheets_pivot[_0x1f3298(0x3bf)]['id']:case _univerjs_pro_sheets_pivot[_0x1f3298(0x375)]['id']:case _univerjs_pro_sheets_pivot[_0x1f3298(0x4a8)]['id']:case _univerjs_pro_sheets_pivot[_0x1f3298(0x2d8)]['id']:case _univerjs_pro_sheets_pivot['SetPivotFilterMutation']['id']:case _univerjs_pro_sheets_pivot['SetPivotValueFilterMutation']['id']:case _univerjs_pro_sheets_pivot['SetPivotSortMutation']['id']:case _univerjs_pro_sheets_pivot['SetPivotCollapseMutation']['id']:case _univerjs_pro_sheets_pivot[_0x1f3298(0x388)]['id']:case _univerjs_pro_sheets_pivot['SetPivotSubtotalTypeMutation']['id']:{const _0x5e76d1=_0x261cff;let _0x464273=_0x1f3298(0x311);if(_0x43335e===_univerjs_pro_sheets_pivot[_0x1f3298(0x2cf)]['id'])_0x464273=_0x1f3298(0x311);else{if(_0x43335e===_univerjs_pro_sheets_pivot['SetPivotPositionMutation']['id'])_0x464273=_0x1f3298(0x24f);else{if(_0x43335e===_univerjs_pro_sheets_pivot[_0x1f3298(0x36b)]['id'])_0x464273=_0x1f3298(0x468);else{if(_0x43335e===_univerjs_pro_sheets_pivot['AddPivotFieldMutation']['id'])_0x464273=_0x1f3298(0x395);else{if(_0x43335e===_univerjs_pro_sheets_pivot[_0x1f3298(0x412)]['id'])_0x464273=_0x1f3298(0x418);else{if(_0x43335e===_univerjs_pro_sheets_pivot[_0x1f3298(0x3bf)]['id'])_0x464273=_0x1f3298(0x3d6);else{if(_0x43335e===_univerjs_pro_sheets_pivot[_0x1f3298(0x375)]['id'])_0x464273=_0x1f3298(0x1b6);else{if(_0x43335e===_univerjs_pro_sheets_pivot['UpdateValuePositionMutation']['id'])_0x464273=_0x1f3298(0x2d3);else{if(_0x43335e===_univerjs_pro_sheets_pivot['UpdatePivotFieldSourceInfoMutation']['id'])_0x464273=_0x1f3298(0x42a);else{if(_0x43335e===_univerjs_pro_sheets_pivot[_0x1f3298(0x17e)]['id'])_0x464273=_0x1f3298(0x2c1);else{if(_0x43335e===_univerjs_pro_sheets_pivot[_0x1f3298(0x40f)]['id'])_0x464273='setPivotValueFilter';else{if(_0x43335e===_univerjs_pro_sheets_pivot[_0x1f3298(0x47f)]['id'])_0x464273=_0x1f3298(0x419);else{if(_0x43335e===_univerjs_pro_sheets_pivot[_0x1f3298(0x44d)]['id'])_0x464273='setPivotCollapse';else{if(_0x43335e===_univerjs_pro_sheets_pivot['SetPivotSubtotalTypeMutation']['id'])_0x464273=_0x1f3298(0x18a);else{if(_0x43335e===_univerjs_pro_sheets_pivot[_0x1f3298(0x388)]['id'])_0x464273=_0x1f3298(0x43a);}}}}}}}}}}}}}}if(_0x5e76d1[_0x1f3298(0x235)]&&_0x5e76d1[_0x1f3298(0x1ea)]){var _0x4a545f;const _0x5ca575=(_0x4a545f=this[_0x1f3298(0x3bd)][_0x1f3298(0x1b7)](_0x5e76d1[_0x1f3298(0x37b)],_0x5e76d1[_0x1f3298(0x1ea)],_0x5e76d1[_0x1f3298(0x235)]))===null||_0x4a545f===void 0x0?void 0x0:_0x4a545f[_0x1f3298(0x37e)];if(_0x5ca575)_0x47ae7f((0x0,_univerjs_pro_sheets_pivot[_0x1f3298(0x33b)])(_0x5ca575)[_0x1f3298(0x45c)](_0x63123=>({'range':_0x63123,'unitId':_0x5e76d1['unitId'],'subUnitId':_0x5e76d1[_0x1f3298(0x1ea)],'showText':_0x464273})),_0x1f3298(0x15f));}break;}case _univerjs_pro_sheets_chart[_0x1f3298(0x186)]['id']:{const _0x2cb139=_0x261cff;if(_0x2cb139['chartId'])_0x27db14[_0x1f3298(0x299)][_0x1f3298(0x201)]({'drawingId':_0x2cb139[_0x1f3298(0x271)],'unitId':_0x2cb139['unitId'],'subUnitId':_0x2cb139[_0x1f3298(0x1ea)],'showText':_0xf78955});break;}case _univerjs_pro_sheets_chart[_0x1f3298(0x47a)]['id']:{const _0x293ea5=_0x261cff;if(_0x293ea5['chartId'])_0x27db14[_0x1f3298(0x1a8)][_0x1f3298(0x201)]({'drawingId':_0x293ea5[_0x1f3298(0x271)],'unitId':_0x293ea5['unitId'],'subUnitId':_0x293ea5[_0x1f3298(0x1ea)],'showText':_0xf78955});break;}case _univerjs_pro_sheets_chart[_0x1f3298(0x15b)]['id']:{const _0x4359cf=_0x261cff;if(_0x4359cf[_0x1f3298(0x2db)]){const _0x4e45a0=this['_sheetsChartService'][_0x1f3298(0x4af)](_0x4359cf[_0x1f3298(0x37b)],_0x4359cf[_0x1f3298(0x2db)]);_0x4e45a0&&(_0x27db14[_0x1f3298(0x430)]['push'](_0x4e45a0),_0x27db14[_0x1f3298(0x34a)][_0x1f3298(0x201)]({'drawingId':_0x4359cf[_0x1f3298(0x2db)],'unitId':_0x4359cf[_0x1f3298(0x37b)],'subUnitId':_0x4e45a0,'showText':_0xf78955}));}break;}case _univerjs_pro_sheets_chart[_0x1f3298(0x226)]['id']:{const _0x4c16b2=_0x261cff;if(_0x4c16b2[_0x1f3298(0x2db)]){const _0x552a88=this[_0x1f3298(0x2e9)][_0x1f3298(0x4af)](_0x4c16b2[_0x1f3298(0x37b)],_0x4c16b2[_0x1f3298(0x2db)]);_0x552a88&&(_0x27db14[_0x1f3298(0x430)]['push'](_0x552a88),_0x27db14[_0x1f3298(0x34a)]['push']({'drawingId':_0x4c16b2[_0x1f3298(0x2db)],'unitId':_0x4c16b2[_0x1f3298(0x37b)],'subUnitId':_0x552a88,'showText':_0xf78955}));}break;}case _univerjs_pro_sheets_shape['InsertSheetsShapeMutation']['id']:{const _0x4acff2=_0x261cff;if(_0x4acff2[_0x1f3298(0x32a)])_0x27db14[_0x1f3298(0x299)]['push']({'drawingId':_0x4acff2[_0x1f3298(0x32a)],'unitId':_0x4acff2[_0x1f3298(0x37b)],'subUnitId':_0x4acff2[_0x1f3298(0x1ea)],'showText':_0xf78955});break;}case _univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id']:{const _0x43a32e=_0x261cff;if(_0x43a32e[_0x1f3298(0x32a)])_0x27db14['deleteDrawings']['push']({'drawingId':_0x43a32e['shapeId'],'unitId':_0x43a32e[_0x1f3298(0x37b)],'subUnitId':_0x43a32e[_0x1f3298(0x1ea)],'showText':_0xf78955});break;}case _univerjs_pro_sheets_shape['UpdateSheetsShapeDataMutation']['id']:case _univerjs_pro_sheets_shape[_0x1f3298(0x317)]['id']:{const _0x591d94=_0x261cff;if(_0x591d94[_0x1f3298(0x32a)])_0x27db14[_0x1f3298(0x34a)][_0x1f3298(0x201)]({'drawingId':_0x591d94['shapeId'],'unitId':_0x591d94[_0x1f3298(0x37b)],'subUnitId':_0x591d94[_0x1f3298(0x1ea)],'showText':_0xf78955});break;}case _univerjs_sheets_drawing[_0x1f3298(0x1e5)]['id']:{const _0x4db365=_0x261cff,_0x3ce982=_0x4db365[_0x1f3298(0x392)],_0x1ca384=_0x4db365['type'],_0xaee93c=_0x1ca384!==_univerjs_sheets_drawing['DrawingApplyType'][_0x1f3298(0x2f1)]&&_0x1ca384!==_univerjs_sheets_drawing[_0x1f3298(0x2f7)][_0x1f3298(0x20d)],_0x94c4f8=_0x1ca384===_univerjs_sheets_drawing[_0x1f3298(0x2f7)]['INSERT'],_0x33e8ae=_0x1ca384===_univerjs_sheets_drawing[_0x1f3298(0x2f7)][_0x1f3298(0x20d)];let _0x1865af=_0xf78955;if(_0x1ca384===_univerjs_sheets_drawing[_0x1f3298(0x2f7)][_0x1f3298(0x2f1)])_0x1865af=this['_localeService']['t'](_0x1f3298(0x213));else{if(_0x1ca384===_univerjs_sheets_drawing[_0x1f3298(0x2f7)][_0x1f3298(0x20d)])_0x1865af=this[_0x1f3298(0x19b)]['t'](_0x1f3298(0x1b8));}if(Array['isArray'](_0x3ce982))_0x3ce982[_0x1f3298(0x1de)](_0x384f30=>{const _0x49be07=_0x1f3298;if(_0x49be07(0x381)in _0x384f30&&_0x384f30[_0x49be07(0x381)]){if(_0xaee93c)_0x27db14['updateDrawings'][_0x49be07(0x201)]({'drawingId':_0x384f30['drawingId'],'unitId':_0x4db365[_0x49be07(0x37b)],'subUnitId':_0x4db365[_0x49be07(0x1ea)],'showText':_0x1865af});else{if(_0x94c4f8)_0x27db14[_0x49be07(0x299)][_0x49be07(0x201)]({'drawingId':_0x384f30['drawingId'],'unitId':_0x4db365['unitId'],'subUnitId':_0x4db365[_0x49be07(0x1ea)],'showText':_0x1865af});else{if(_0x33e8ae)_0x27db14[_0x49be07(0x1a8)]['push']({'drawingId':_0x384f30['drawingId'],'unitId':_0x4db365[_0x49be07(0x37b)],'subUnitId':_0x4db365['subUnitId'],'showText':_0x1865af});}}}else{if(_0x49be07(0x35a)in _0x384f30&&_0x49be07(0x28b)in _0x384f30){var _0x88c838,_0x1064e4;if((_0x88c838=_0x384f30[_0x49be07(0x35a)])===null||_0x88c838===void 0x0?void 0x0:_0x88c838[_0x49be07(0x381)]){if(_0xaee93c)_0x27db14[_0x49be07(0x34a)][_0x49be07(0x201)]({'drawingId':_0x384f30[_0x49be07(0x35a)][_0x49be07(0x381)],'unitId':_0x4db365['unitId'],'subUnitId':_0x4db365[_0x49be07(0x1ea)],'showText':_0x1865af});else{if(_0x94c4f8)_0x27db14[_0x49be07(0x299)][_0x49be07(0x201)]({'drawingId':_0x384f30[_0x49be07(0x35a)]['drawingId'],'unitId':_0x4db365[_0x49be07(0x37b)],'subUnitId':_0x4db365[_0x49be07(0x1ea)],'showText':_0x1865af});else{if(_0x33e8ae)_0x27db14[_0x49be07(0x1a8)][_0x49be07(0x201)]({'drawingId':_0x384f30[_0x49be07(0x35a)][_0x49be07(0x381)],'unitId':_0x4db365[_0x49be07(0x37b)],'subUnitId':_0x4db365[_0x49be07(0x1ea)],'showText':_0x1865af});}}}(_0x1064e4=_0x384f30[_0x49be07(0x28b)])===null||_0x1064e4===void 0x0||_0x1064e4['forEach'](_0x2b8e70=>{const _0x5b83fb=_0x49be07;if(_0x2b8e70['drawingId']){if(_0xaee93c)_0x27db14[_0x5b83fb(0x34a)]['push']({'drawingId':_0x2b8e70[_0x5b83fb(0x381)],'unitId':_0x4db365['unitId'],'subUnitId':_0x4db365['subUnitId'],'showText':_0x1865af});else{if(_0x94c4f8)_0x27db14[_0x5b83fb(0x299)][_0x5b83fb(0x201)]({'drawingId':_0x2b8e70[_0x5b83fb(0x381)],'unitId':_0x4db365[_0x5b83fb(0x37b)],'subUnitId':_0x4db365['subUnitId'],'showText':_0x1865af});else{if(_0x33e8ae)_0x27db14[_0x5b83fb(0x1a8)][_0x5b83fb(0x201)]({'drawingId':_0x2b8e70[_0x5b83fb(0x381)],'unitId':_0x4db365[_0x5b83fb(0x37b)],'subUnitId':_0x4db365[_0x5b83fb(0x1ea)],'showText':_0x1865af});}}}});}}});else{if(_0x3ce982&&typeof _0x3ce982===_0x1f3298(0x464)){if('drawingIds'in _0x3ce982&&Array[_0x1f3298(0x291)](_0x3ce982[_0x1f3298(0x1d1)]))_0x3ce982[_0x1f3298(0x1d1)][_0x1f3298(0x1de)](_0x3da878=>{const _0x1c3857=_0x1f3298;if(_0xaee93c)_0x27db14[_0x1c3857(0x34a)][_0x1c3857(0x201)]({'drawingId':_0x3da878,'unitId':_0x4db365[_0x1c3857(0x37b)],'subUnitId':_0x4db365[_0x1c3857(0x1ea)],'showText':_0x1865af});else{if(_0x94c4f8)_0x27db14[_0x1c3857(0x299)][_0x1c3857(0x201)]({'drawingId':_0x3da878,'unitId':_0x4db365[_0x1c3857(0x37b)],'subUnitId':_0x4db365[_0x1c3857(0x1ea)],'showText':_0x1865af});else{if(_0x33e8ae)_0x27db14[_0x1c3857(0x1a8)][_0x1c3857(0x201)]({'drawingId':_0x3da878,'unitId':_0x4db365[_0x1c3857(0x37b)],'subUnitId':_0x4db365[_0x1c3857(0x1ea)],'showText':_0x1865af});}}});else{if(_0x1f3298(0x35a)in _0x3ce982&&_0x1f3298(0x28b)in _0x3ce982){var _0x24b4e7,_0x189202;if((_0x24b4e7=_0x3ce982[_0x1f3298(0x35a)])===null||_0x24b4e7===void 0x0?void 0x0:_0x24b4e7[_0x1f3298(0x381)]){if(_0xaee93c)_0x27db14['updateDrawings'][_0x1f3298(0x201)]({'drawingId':_0x3ce982['parent'][_0x1f3298(0x381)],'unitId':_0x4db365[_0x1f3298(0x37b)],'subUnitId':_0x4db365['subUnitId'],'showText':_0x1865af});else{if(_0x94c4f8)_0x27db14['insertDrawings']['push']({'drawingId':_0x3ce982['parent'][_0x1f3298(0x381)],'unitId':_0x4db365['unitId'],'subUnitId':_0x4db365['subUnitId'],'showText':_0x1865af});else{if(_0x33e8ae)_0x27db14[_0x1f3298(0x1a8)][_0x1f3298(0x201)]({'drawingId':_0x3ce982[_0x1f3298(0x35a)]['drawingId'],'unitId':_0x4db365[_0x1f3298(0x37b)],'subUnitId':_0x4db365[_0x1f3298(0x1ea)],'showText':_0x1865af});}}}(_0x189202=_0x3ce982['children'])===null||_0x189202===void 0x0||_0x189202['forEach'](_0x58b313=>{const _0x359b2e=_0x1f3298;if(_0x58b313[_0x359b2e(0x381)]){if(_0xaee93c)_0x27db14[_0x359b2e(0x34a)]['push']({'drawingId':_0x58b313[_0x359b2e(0x381)],'unitId':_0x4db365[_0x359b2e(0x37b)],'subUnitId':_0x4db365[_0x359b2e(0x1ea)],'showText':_0x1865af});else{if(_0x94c4f8)_0x27db14['insertDrawings'][_0x359b2e(0x201)]({'drawingId':_0x58b313['drawingId'],'unitId':_0x4db365['unitId'],'subUnitId':_0x4db365[_0x359b2e(0x1ea)],'showText':_0x1865af});else{if(_0x33e8ae)_0x27db14['deleteDrawings']['push']({'drawingId':_0x58b313[_0x359b2e(0x381)],'unitId':_0x4db365[_0x359b2e(0x37b)],'subUnitId':_0x4db365[_0x359b2e(0x1ea)],'showText':_0x1865af});}}}});}}}}break;}}return _0x27db14;}[_0x30324f(0x416)](_0x449fec){const _0x110525=_0x30324f;if(_0x449fec[_0x110525(0x2d6)]<=0x1)return _0x449fec;const _0x3cbb10=new Map();return _0x449fec[_0x110525(0x1de)](_0x28af3a=>{const _0x485cff=_0x110525,{unitId:_0x545bb2,subUnitId:_0x14bf93}=_0x28af3a,_0x22d7fd=_0x545bb2+'-'+_0x14bf93;if(!_0x3cbb10[_0x485cff(0x48f)](_0x22d7fd))_0x3cbb10[_0x485cff(0x400)](_0x22d7fd,[_0x28af3a]);else{var _0x3a0865;(_0x3a0865=_0x3cbb10[_0x485cff(0x249)](_0x22d7fd))===null||_0x3a0865===void 0x0||_0x3a0865[_0x485cff(0x201)](_0x28af3a);}}),Array['from'](_0x3cbb10['values']())[_0x110525(0x45c)](_0x4fa977=>{const _0x48dbb4=_0x110525;return new _univerjs_sheets['RangeMergeUtil']()['add'](..._0x4fa977[_0x48dbb4(0x45c)](_0x30716e=>_0x30716e[_0x48dbb4(0x352)]))['merge']()[_0x48dbb4(0x45c)](_0x4ff52c=>({'range':_0x4ff52c,'unitId':_0x4fa977[0x0][_0x48dbb4(0x37b)],'subUnitId':_0x4fa977[0x0]['subUnitId'],'showText':_0x4fa977[0x0]['showText'],'highlightRow':_0x4fa977[0x0][_0x48dbb4(0x2c4)],'highlightColumn':_0x4fa977[0x0][_0x48dbb4(0x477)]}));})[_0x110525(0x258)]();}};VersionDiffService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x30324f(0x1db)])(HistoryManagerService)),__decorateParam(0x1,_univerjs_pro_collaboration['ITransformService']),__decorateParam(0x2,_univerjs_pro_collaboration[_0x30324f(0x36d)]),__decorateParam(0x3,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x30324f(0x29b)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x30324f(0x1db)])(_univerjs_sheets_conditional_formatting[_0x30324f(0x194)])),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_data_validation[_0x30324f(0x2e1)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x30324f(0x1db)])(_univerjs_sheets_filter[_0x30324f(0x37f)])),__decorateParam(0x7,(0x0,_univerjs_core[_0x30324f(0x1db)])(_univerjs_pro_sheets_sparkline[_0x30324f(0x3e3)])),__decorateParam(0x8,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_pivot['SheetsPivotTableConfigModel'])),__decorateParam(0x9,(0x0,_univerjs_core[_0x30324f(0x1db)])(_univerjs_sheets_table[_0x30324f(0x178)])),__decorateParam(0xa,(0x0,_univerjs_core[_0x30324f(0x1db)])(_univerjs_core[_0x30324f(0x3d9)])),__decorateParam(0xb,(0x0,_univerjs_core[_0x30324f(0x1db)])(_univerjs_pro_sheets_chart[_0x30324f(0x261)])),__decorateParam(0xc,(0x0,_univerjs_core[_0x30324f(0x1db)])(HistoryFetchService))],VersionDiffService);function matrixPrimitiveToDataRange(_0xa82303){const _0x28c0b5=_0x30324f;return new _univerjs_core[(_0x28c0b5(0x48a))](_0xa82303)[_0x28c0b5(0x481)]();}function matrixPrimitiveToRanges(_0x4b825e){const _0x552977=_0x30324f,_0x2d69c3=new _univerjs_core[(_0x552977(0x48a))](_0x4b825e),_0x17f3d4=new _univerjs_core['ObjectMatrix']();return _0x2d69c3['forValue']((_0x387032,_0x2cd7e2)=>{const _0x224b10=_0x552977;_0x17f3d4[_0x224b10(0x44f)](_0x387032,_0x2cd7e2,0x1);}),(0x0,_univerjs_sheets[_0x552977(0x15e)])(_0x17f3d4);}const SHEET_HISTORY_ARROW_BORDER_WIDTH=0x4,ARROW_HEAD_SIZE=0xc,ARROW_LABEL_HEIGHT=0x14,ARROW_LABEL_MAX_WIDTH=0xc8,ARROW_LABEL_TEXT_PADDING_LR=0x4,ARROW_LABEL_TEXT_PADDING_TB=0x5;var SheetHistoryArrowShape=class extends _univerjs_engine_render[_0x30324f(0x3d4)]{constructor(_0x22a85e,_0x52d9bb){const _0x4d83b8=_0x30324f;super(_0x22a85e,_0x52d9bb),_defineProperty(this,_0x4d83b8(0x233),void 0x0),_defineProperty(this,_0x4d83b8(0x1cd),void 0x0),_defineProperty(this,'_highlight',void 0x0),_defineProperty(this,'_highlightSecond',0x4),_defineProperty(this,'_blinkTimer',void 0x0),_defineProperty(this,_0x4d83b8(0x1da),void 0x0),_defineProperty(this,'_isBlinkVisible',!![]),_defineProperty(this,'_name',''),_defineProperty(this,_0x4d83b8(0x480),![]),_defineProperty(this,_0x4d83b8(0x181),'top'),_defineProperty(this,'_showText',void 0x0);if(_0x52d9bb){var _0xbe58cb;this[_0x4d83b8(0x46a)](_0x52d9bb);if(_0x52d9bb[_0x4d83b8(0x1cc)]&&((_0xbe58cb=_0x52d9bb[_0x4d83b8(0x45b)])!==null&&_0xbe58cb!==void 0x0?_0xbe58cb:this['_highlightSecond'])){var _0x265748;this[_0x4d83b8(0x373)]((_0x265748=_0x52d9bb[_0x4d83b8(0x45b)])!==null&&_0x265748!==void 0x0?_0x265748:this['_highlightSecond']);}}this[_0x4d83b8(0x295)]['subscribeEvent'](()=>this[_0x4d83b8(0x46a)]({'hovered':!![]})),this[_0x4d83b8(0x35b)][_0x4d83b8(0x30d)](()=>this[_0x4d83b8(0x46a)]({'hovered':![]}));}['setShapeProps'](_0x4534e1){const _0x326c68=_0x30324f;var _0x2da9c4,_0x40ca62,_0x450b6b,_0x25d210,_0x35310e,_0x4d57b3;this[_0x326c68(0x233)]=(_0x2da9c4=_0x4534e1['color'])!==null&&_0x2da9c4!==void 0x0?_0x2da9c4:this[_0x326c68(0x233)],this[_0x326c68(0x1cd)]=(_0x40ca62=_0x4534e1['direction'])!==null&&_0x40ca62!==void 0x0?_0x40ca62:this['_direction'],this['_name']=(_0x450b6b=_0x4534e1[_0x326c68(0x27f)])!==null&&_0x450b6b!==void 0x0?_0x450b6b:this[_0x326c68(0x449)],this['_hovered']=(_0x25d210=_0x4534e1[_0x326c68(0x21e)])!==null&&_0x25d210!==void 0x0?_0x25d210:this['_hovered'],this[_0x326c68(0x181)]=(_0x35310e=_0x4534e1[_0x326c68(0x1a0)])!==null&&_0x35310e!==void 0x0?_0x35310e:this[_0x326c68(0x181)],this[_0x326c68(0x25c)]=(_0x4d57b3=_0x4534e1['showText'])!==null&&_0x4d57b3!==void 0x0?_0x4d57b3:this[_0x326c68(0x25c)];if(_0x4534e1[_0x326c68(0x45b)]!==void 0x0)this[_0x326c68(0x287)]=_0x4534e1[_0x326c68(0x45b)];if(_0x4534e1[_0x326c68(0x1cc)]!==void 0x0)this['_highlight']=_0x4534e1[_0x326c68(0x1cc)];this[_0x326c68(0x3fe)]({'width':_0x4534e1[_0x326c68(0x4b2)],'height':_0x4534e1[_0x326c68(0x39e)]});}[_0x30324f(0x373)](_0x3f8614){const _0x36aad1=_0x30324f;this[_0x36aad1(0x490)](),this[_0x36aad1(0x460)]=!![],this[_0x36aad1(0x1da)]=window[_0x36aad1(0x2c7)](()=>{const _0x3fabb3=_0x36aad1;this[_0x3fabb3(0x460)]=!this['_isBlinkVisible'],this[_0x3fabb3(0x26b)](!![]);},0x1f4),this[_0x36aad1(0x187)]=window[_0x36aad1(0x189)](()=>{const _0x2a6aae=_0x36aad1;this['_stopBlinking'](),this[_0x2a6aae(0x460)]=!![],this[_0x2a6aae(0x26b)](!![]);},_0x3f8614*0x3e8);}['_stopBlinking'](){const _0x4c85d5=_0x30324f;this['_blinkIntervalTimer']&&(window[_0x4c85d5(0x2cc)](this['_blinkIntervalTimer']),this[_0x4c85d5(0x1da)]=void 0x0),this[_0x4c85d5(0x187)]&&(window['clearTimeout'](this[_0x4c85d5(0x187)]),this[_0x4c85d5(0x187)]=void 0x0);}['triggerDblclick'](_0x54fd93){return![];}[_0x30324f(0x2c5)](){const _0x365b5c=_0x30324f;this[_0x365b5c(0x490)](),super['dispose']();}[_0x30324f(0x48e)](_0x27b247){const _0x48f85f=_0x30324f;let _0x6356cc=this['_color'];if(this[_0x48f85f(0x1f6)]&&!this[_0x48f85f(0x460)])_0x6356cc=this[_0x48f85f(0x3d2)](this[_0x48f85f(0x233)]);_0x27b247['save'](),_0x27b247[_0x48f85f(0x49f)]=_0x6356cc,_0x27b247[_0x48f85f(0x41e)]=_0x6356cc,_0x27b247['lineWidth']=0x4;if(this[_0x48f85f(0x1cd)]===_0x48f85f(0x3ee))this[_0x48f85f(0x33c)](_0x27b247);else this[_0x48f85f(0x3f9)](_0x27b247);_0x27b247[_0x48f85f(0x456)]();if((this[_0x48f85f(0x480)]||this[_0x48f85f(0x25c)])&&this['_name']){_0x27b247['save']();if(this[_0x48f85f(0x1cd)]===_0x48f85f(0x3ee))_0x27b247['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x48f85f(0x181)]===_0x48f85f(0x2b7)?0x0:-0x14);else _0x27b247[_0x48f85f(0x167)](0x1,0x0,0x0,0x1,this[_0x48f85f(0x4b2)],this['_labelPosition']===_0x48f85f(0x2b7)?this[_0x48f85f(0x39e)]:-0x14);this[_0x48f85f(0x45f)](_0x27b247,this['_name'],_0x6356cc),_0x27b247[_0x48f85f(0x456)]();}}[_0x30324f(0x33c)](_0x2ebdc7){const _0x3c8203=_0x30324f,_0x49b371=this[_0x3c8203(0x39e)]/0x2,_0x29b944=0xc,_0x2146a4=this[_0x3c8203(0x4b2)]-0xc;_0x2ebdc7[_0x3c8203(0x1f7)](),_0x2ebdc7[_0x3c8203(0x239)](_0x29b944,_0x49b371),_0x2ebdc7[_0x3c8203(0x2b0)](_0x2146a4,_0x49b371),_0x2ebdc7[_0x3c8203(0x47e)](),_0x2ebdc7[_0x3c8203(0x1f7)](),_0x2ebdc7[_0x3c8203(0x239)](0x0,_0x49b371),_0x2ebdc7['lineTo'](0xc,_0x49b371-0xc/0x2),_0x2ebdc7[_0x3c8203(0x2b0)](0xc,_0x49b371+0xc/0x2),_0x2ebdc7[_0x3c8203(0x46f)](),_0x2ebdc7[_0x3c8203(0x229)](),_0x2ebdc7[_0x3c8203(0x1f7)](),_0x2ebdc7[_0x3c8203(0x239)](this['width'],_0x49b371),_0x2ebdc7[_0x3c8203(0x2b0)](this['width']-0xc,_0x49b371-0xc/0x2),_0x2ebdc7[_0x3c8203(0x2b0)](this[_0x3c8203(0x4b2)]-0xc,_0x49b371+0xc/0x2),_0x2ebdc7[_0x3c8203(0x46f)](),_0x2ebdc7[_0x3c8203(0x229)]();}[_0x30324f(0x3f9)](_0x160d13){const _0x405ca8=_0x30324f,_0x1c0abc=this[_0x405ca8(0x4b2)]/0x2,_0x115e10=0xc,_0x4a9039=this[_0x405ca8(0x39e)]-0xc;_0x160d13[_0x405ca8(0x1f7)](),_0x160d13[_0x405ca8(0x239)](_0x1c0abc,_0x115e10),_0x160d13[_0x405ca8(0x2b0)](_0x1c0abc,_0x4a9039),_0x160d13[_0x405ca8(0x47e)](),_0x160d13[_0x405ca8(0x1f7)](),_0x160d13['moveTo'](_0x1c0abc,0x0),_0x160d13[_0x405ca8(0x2b0)](_0x1c0abc-0xc/0x2,0xc),_0x160d13['lineTo'](_0x1c0abc+0xc/0x2,0xc),_0x160d13[_0x405ca8(0x46f)](),_0x160d13[_0x405ca8(0x229)](),_0x160d13['beginPath'](),_0x160d13[_0x405ca8(0x239)](_0x1c0abc,this['height']),_0x160d13[_0x405ca8(0x2b0)](_0x1c0abc-0xc/0x2,this[_0x405ca8(0x39e)]-0xc),_0x160d13[_0x405ca8(0x2b0)](_0x1c0abc+0xc/0x2,this[_0x405ca8(0x39e)]-0xc),_0x160d13[_0x405ca8(0x46f)](),_0x160d13[_0x405ca8(0x229)]();}[_0x30324f(0x45f)](_0x57b2d3,_0x33ae94,_0x1b9965){const _0x4c1169=_0x30324f;_0x57b2d3[_0x4c1169(0x425)]=_0x4c1169(0x164);const _0x154923=_0x57b2d3[_0x4c1169(0x3e0)](_0x33ae94)[_0x4c1169(0x4b2)],_0x5dd2be=Math[_0x4c1169(0x243)](_0x154923+0x2*0x4,0xc8),_0x5e2d9a=0x4,_0x47f9d5=_0x5dd2be,_0x1112df=0x14;_0x57b2d3[_0x4c1169(0x41e)]=_0x1b9965,_0x57b2d3[_0x4c1169(0x1f7)](),_0x57b2d3['moveTo'](_0x5e2d9a,0x0),_0x57b2d3[_0x4c1169(0x2b0)](_0x47f9d5-_0x5e2d9a,0x0),_0x57b2d3[_0x4c1169(0x3d7)](_0x47f9d5-_0x5e2d9a,_0x5e2d9a,_0x5e2d9a,Math['PI']*0x3/0x2,0x0,![]),_0x57b2d3[_0x4c1169(0x2b0)](_0x47f9d5,_0x1112df-_0x5e2d9a),_0x57b2d3[_0x4c1169(0x3d7)](_0x47f9d5-_0x5e2d9a,_0x1112df-_0x5e2d9a,_0x5e2d9a,0x0,Math['PI']/0x2,![]),_0x57b2d3[_0x4c1169(0x2b0)](0x0,_0x1112df),_0x57b2d3[_0x4c1169(0x2b0)](0x0,_0x5e2d9a),_0x57b2d3[_0x4c1169(0x3d7)](_0x5e2d9a,_0x5e2d9a,_0x5e2d9a,Math['PI'],Math['PI']*0x3/0x2,![]),_0x57b2d3[_0x4c1169(0x46f)](),_0x57b2d3[_0x4c1169(0x229)](),_0x57b2d3['fillStyle']=_0x4c1169(0x441);const _0x205e6e=0x4,_0x2ae3e6=0x14-0x5,_0x572487=0xc8-0x2*0x4;if(_0x154923>_0x572487){let _0x95acb9='',_0x43043c=0x0;for(const _0x7413b1 of _0x33ae94){const _0xeecfb=_0x57b2d3[_0x4c1169(0x3e0)](_0x7413b1)['width'];if(_0x43043c+_0xeecfb<=_0x572487-_0x57b2d3[_0x4c1169(0x3e0)]('...')['width'])_0x95acb9+=_0x7413b1,_0x43043c+=_0xeecfb;else{_0x95acb9+=_0x4c1169(0x3c4);break;}}_0x57b2d3['fillText'](_0x95acb9,_0x205e6e,_0x2ae3e6);}else _0x57b2d3['fillText'](_0x33ae94,_0x205e6e,_0x2ae3e6);}['_getLighterColor'](_0x344322){const _0x17720d=_0x30324f;if(_0x344322['startsWith']('#'))return _0x17720d(0x426)+Number[_0x17720d(0x2e6)](_0x344322[_0x17720d(0x2ac)](0x1,0x3),0x10)+',\x20'+Number[_0x17720d(0x2e6)](_0x344322['slice'](0x3,0x5),0x10)+',\x20'+Number[_0x17720d(0x2e6)](_0x344322['slice'](0x5,0x7),0x10)+',\x200.2)';if(_0x344322[_0x17720d(0x338)](_0x17720d(0x2fd)))return _0x344322[_0x17720d(0x40b)](/[\d.]+\)$/g,'0.2)');if(_0x344322[_0x17720d(0x338)](_0x17720d(0x30e)))return _0x344322[_0x17720d(0x40b)]('rgb','rgba')[_0x17720d(0x40b)](')',',\x200.2)');return _0x344322;}};let VersionDiffRenderController=class VersionDiffRenderController extends _univerjs_core[_0x30324f(0x471)]{constructor(_0x40a202,_0x33179b,_0x3b9a19,_0x87b164,_0x283939,_0xc2a5c4,_0x11c3ff,_0x4f3ba4){const _0x32e97b=_0x30324f;super(),this[_0x32e97b(0x3ea)]=_0x40a202,this['_historyManagerService']=_0x33179b,this[_0x32e97b(0x26d)]=_0x3b9a19,this[_0x32e97b(0x2d7)]=_0x87b164,this['_renderManagerService']=_0x283939,this[_0x32e97b(0x46d)]=_0xc2a5c4,this['_commandService']=_0x11c3ff,this[_0x32e97b(0x1ed)]=_0x4f3ba4,_defineProperty(this,'_diffs',new Set()),_defineProperty(this,_0x32e97b(0x2ef),new Set()),_defineProperty(this,_0x32e97b(0x1c4),new Set()),_defineProperty(this,_0x32e97b(0x3fb),new Set()),_defineProperty(this,_0x32e97b(0x1c3),null),this['_init']();}[_0x30324f(0x404)](){const _0x12f0e8=_0x30324f;this['_initRender'](),this[_0x12f0e8(0x2ce)]();}[_0x30324f(0x440)](){const _0x23b123=_0x30324f;this[_0x23b123(0x2d1)]((0x0,rxjs['combineLatest'])([this[_0x23b123(0x3cb)]['loadingState$'],this[_0x23b123(0x46d)]['currentSkeleton$']])[_0x23b123(0x3f0)]((0x0,rxjs[_0x23b123(0x211)])(([_0x4aecce,_0x4c217a])=>{const _0x5edd5d=_0x23b123;if(_0x4aecce===_0x5edd5d(0x360)&&_0x4c217a){const _0x435603=_0x4c217a[_0x5edd5d(0x474)];return this[_0x5edd5d(0x26d)]['currentVersionDiff$'][_0x5edd5d(0x3f0)]((0x0,rxjs[_0x5edd5d(0x45c)])(_0x3699c1=>{const _0x10c3c2=_0x5edd5d;if(!(_0x3699c1[_0x10c3c2(0x430)][_0x10c3c2(0x2d6)]===0x0||_0x3699c1[_0x10c3c2(0x430)][_0x10c3c2(0x393)](_0x435603)))return{'skeleton':_0x4c217a,'versionDiff':null};return{'skeleton':_0x4c217a,'versionDiff':_0x3699c1,'sheetID':_0x435603};}));}return(0x0,rxjs['of'])({'skeleton':null,'versionDiff':null,'sheetID':null});}))[_0x23b123(0x20c)](({skeleton:_0x3d8e34,versionDiff:_0xb4b1de,sheetID:_0x1dd0de})=>{const _0x56f70c=_0x23b123;this[_0x56f70c(0x437)]();if(_0x3d8e34&&_0xb4b1de&&_0x1dd0de)this[_0x56f70c(0x433)](_0x3d8e34,_0xb4b1de,_0x1dd0de);})),this['disposeWithMe'](this[_0x23b123(0x46d)][_0x23b123(0x34b)][_0x23b123(0x20c)](_0x4a2a24=>{const _0x467748=_0x23b123;if(_0x4a2a24==null)return;const {skeleton:_0x5b6400}=_0x4a2a24,{scene:_0x39194e}=this[_0x467748(0x3ea)];_0x39194e['onPointerMove$'][_0x467748(0x30d)]((0x0,_univerjs_core['debounce'])(_0x181461=>{const _0x461cc0=_0x467748;var _0x12c860,_0x2e91c7;const {offsetX:_0x4d13b,offsetY:_0x4a7c8f}=_0x181461,{x:_0x5821be,y:_0x3973c1}=_0x39194e[_0x461cc0(0x350)](_univerjs_engine_render[_0x461cc0(0x2fb)][_0x461cc0(0x256)]([_0x4d13b,_0x4a7c8f])),{scaleX:_0xe381cc,scaleY:_0x6a929d}=_0x39194e['getAncestorScale'](),_0x504d4e=_0x39194e[_0x461cc0(0x2ae)](_univerjs_engine_render[_0x461cc0(0x384)][_0x461cc0(0x3af)]),_0xf65038=_0x39194e[_0x461cc0(0x172)](_univerjs_engine_render['Vector2'][_0x461cc0(0x256)]([_0x5821be,_0x3973c1]),_0x504d4e),_0x79e96a=_0x5b6400[_0x461cc0(0x3b7)](_0x4d13b,_0x4a7c8f,_0xe381cc,_0x6a929d,_0xf65038);if(((_0x12c860=this[_0x461cc0(0x1c3)])===null||_0x12c860===void 0x0?void 0x0:_0x12c860[_0x461cc0(0x38f)])===_0x79e96a[_0x461cc0(0x38f)]&&((_0x2e91c7=this[_0x461cc0(0x1c3)])===null||_0x2e91c7===void 0x0?void 0x0:_0x2e91c7[_0x461cc0(0x42f)])===_0x79e96a[_0x461cc0(0x42f)])return;this[_0x461cc0(0x37d)][_0x461cc0(0x1de)](_0x206022=>{const _0xfaa56a=_0x461cc0;if(_0x206022[_0xfaa56a(0x1eb)])return;_0x206022['onMouseMove'](_0x79e96a);});},0x64));}));}[_0x30324f(0x2ce)](){const _0x4c2fb7=_0x30324f;this[_0x4c2fb7(0x2d1)](this[_0x4c2fb7(0x3cb)]['loadingState$'][_0x4c2fb7(0x20c)](_0x4ff5c3=>{const _0xfcc118=_0x4c2fb7,_0x4a4846=new _univerjs_core[(_0xfcc118(0x3f1))]();return _0x4ff5c3==='loaded'&&(_0x4a4846[_0xfcc118(0x2c5)](),_0x4a4846[_0xfcc118(0x24d)](this[_0xfcc118(0x26d)][_0xfcc118(0x49c)][_0xfcc118(0x20c)](_0x5c6934=>{const _0x496951=_0xfcc118;this[_0x496951(0x32b)](_0x5c6934['subUnitIds']);if(_0x5c6934[_0x496951(0x322)])this[_0x496951(0x369)][_0x496951(0x2e5)](_univerjs_sheets[_0x496951(0x224)]['id'],{'unitId':this[_0x496951(0x3ea)][_0x496951(0x37b)],'subUnitId':_0x5c6934[_0x496951(0x322)]});}))),()=>_0x4a4846[_0xfcc118(0x2c5)]();}));}[_0x30324f(0x32b)](_0x4834c4){const _0x390b49=_0x30324f,_0x1864a5=this[_0x390b49(0x2d7)]['getUnit'](this[_0x390b49(0x3ea)]['unitId'],_univerjs_core[_0x390b49(0x3e1)][_0x390b49(0x414)]);if(!_0x1864a5)return;const _0x2f58b5=_0x1864a5[_0x390b49(0x399)]();if(_0x4834c4[_0x390b49(0x2d6)]===0x0){_0x2f58b5[_0x390b49(0x1de)](_0x236a5c=>{const _0x22e8d4=_0x390b49;if(_0x236a5c['isSheetHidden']())this['_commandService'][_0x22e8d4(0x2e5)](_univerjs_sheets[_0x22e8d4(0x19d)]['id'],{'unitId':this['_context'][_0x22e8d4(0x37b)],'subUnitId':_0x236a5c[_0x22e8d4(0x16e)](),'hidden':0x0});});return;}_0x2f58b5[_0x390b49(0x1de)](_0xea1364=>{const _0x59cd09=_0x390b49,_0x2e1d08=_0xea1364[_0x59cd09(0x16e)](),_0x516e07=_0x4834c4[_0x59cd09(0x393)](_0x2e1d08),_0x5563fb=_0xea1364[_0x59cd09(0x354)]();if(_0x516e07&&_0x5563fb)this[_0x59cd09(0x369)][_0x59cd09(0x2e5)](_univerjs_sheets[_0x59cd09(0x19d)]['id'],{'unitId':this['_context'][_0x59cd09(0x37b)],'subUnitId':_0x2e1d08,'hidden':0x0});else{if(!_0x516e07&&!_0x5563fb)this[_0x59cd09(0x369)][_0x59cd09(0x2e5)](_univerjs_sheets[_0x59cd09(0x19d)]['id'],{'unitId':this['_context']['unitId'],'subUnitId':_0x2e1d08,'hidden':0x1});}});}[_0x30324f(0x433)](_0x309d5d,_0xd8ccf3,_0x1bb8c5){const _0x1a5a3c=_0x30324f;this[_0x1a5a3c(0x37d)][_0x1a5a3c(0x1de)](_0x1c01d3=>{const _0x5c3e43=_0x1a5a3c;_0x1c01d3[_0x5c3e43(0x26b)]();});const _0x38db93=this['generateDiffMarks'](_0xd8ccf3,_0x1bb8c5);this[_0x1a5a3c(0x37d)]=new Set(_0x38db93[_0x1a5a3c(0x325)](_0x380443=>_0x380443 instanceof _univerjs_pro_collaboration_client_ui[_0x1a5a3c(0x485)])),this[_0x1a5a3c(0x2ef)]=new Set(_0x38db93[_0x1a5a3c(0x325)](_0x33d8e4=>_0x33d8e4 instanceof _univerjs_engine_render[_0x1a5a3c(0x232)])),this[_0x1a5a3c(0x1c4)]=new Set(_0x38db93['filter'](_0xebddb5=>_0xebddb5 instanceof SheetHistoryArrowShape));if(_0x38db93[_0x1a5a3c(0x2d6)]>0x0)this['_scrollToShape'](_0x38db93[0x0],this[_0x1a5a3c(0x3ea)][_0x1a5a3c(0x2fe)]);}['generateDiffMarks'](_0x49e051,_0x5d5d8c){const _0x5134b1=_0x30324f,_0x2d111a=this[_0x5134b1(0x46d)]['getCurrentSkeleton']();if(!_0x2d111a)return[];const {scene:_0x23cd2c}=this[_0x5134b1(0x3ea)],_0x185281=[],_0x1463e7=_0x4b482a=>{const _0x265040=_0x5134b1;if(!_0x4b482a)return new Map();const _0x17e348=new Map();return _0x4b482a[_0x265040(0x1de)]((_0x2cbb08,_0x329aab)=>{const _0xe8a4e7=_0x265040,_0x20180e=_0x2cbb08['filter'](_0x3c9f5c=>_0x3c9f5c[_0xe8a4e7(0x1ea)]===_0x5d5d8c);if(_0x20180e[_0xe8a4e7(0x2d6)]>0x0)_0x17e348[_0xe8a4e7(0x400)](_0x329aab,_0x20180e);}),_0x17e348;};this[_0x5134b1(0x262)](_0x23cd2c,_0x2d111a,_0x1463e7(_0x49e051[_0x5134b1(0x39a)]),_0x5134b1(0x4a5),_0x185281),this[_0x5134b1(0x262)](_0x23cd2c,_0x2d111a,_0x1463e7(_0x49e051['deleteCellRanges']),_0x5134b1(0x3ec),_0x185281),this[_0x5134b1(0x262)](_0x23cd2c,_0x2d111a,_0x1463e7(_0x49e051[_0x5134b1(0x250)]),_0x5134b1(0x276),_0x185281),this['_renderBorderRanges'](_0x23cd2c,_0x2d111a,_0x1463e7(_0x49e051[_0x5134b1(0x22d)]),'rgba(46,125,50,0.5)',_0x185281),this[_0x5134b1(0x302)](_0x23cd2c,_0x2d111a,_0x1463e7(_0x49e051['deleteBorderRanges']),_0x5134b1(0x3ec),_0x185281),this[_0x5134b1(0x302)](_0x23cd2c,_0x2d111a,_0x1463e7(_0x49e051[_0x5134b1(0x34f)]),_0x5134b1(0x276),_0x185281),this[_0x5134b1(0x241)](_0x23cd2c,_0x2d111a,_0x1463e7(_0x49e051[_0x5134b1(0x1a4)]),_0x5134b1(0x28f),_0x185281),this[_0x5134b1(0x241)](_0x23cd2c,_0x2d111a,_0x1463e7(_0x49e051['arrowColumnRanges']),_0x5134b1(0x3ee),_0x185281);if(_0x49e051[_0x5134b1(0x299)])this[_0x5134b1(0x4b0)](_0x23cd2c,_0x49e051['insertDrawings'],_0x5134b1(0x4a5),_0x185281);if(_0x49e051[_0x5134b1(0x1a8)])this[_0x5134b1(0x4b0)](_0x23cd2c,_0x49e051[_0x5134b1(0x1a8)],_0x5134b1(0x3ec),_0x185281);if(_0x49e051[_0x5134b1(0x34a)])this['_renderDrawingHighlights'](_0x23cd2c,_0x49e051['updateDrawings'],'rgba(21,101,192,0.5)',_0x185281);return this['_handleOverlappingShapes'](_0x185281),_0x23cd2c[_0x5134b1(0x1ad)](_0x185281,0x14),_0x185281;}[_0x30324f(0x1e4)](){const _0x29bce6=_0x30324f;this[_0x29bce6(0x37d)][_0x29bce6(0x1de)](_0x32d919=>{_0x32d919['hide']();}),this[_0x29bce6(0x2ef)][_0x29bce6(0x1de)](_0x5c830e=>{const _0x5cfdc7=_0x29bce6;_0x5c830e[_0x5cfdc7(0x20f)]();}),this[_0x29bce6(0x1c4)][_0x29bce6(0x1de)](_0x1076d2=>{const _0x58281c=_0x29bce6;_0x1076d2[_0x58281c(0x20f)]();});}['showDiffMarks'](){const _0xed4e98=_0x30324f;this['_diffs'][_0xed4e98(0x1de)](_0x169563=>{const _0x35da1f=_0xed4e98;_0x169563[_0x35da1f(0x4b6)]();}),this[_0xed4e98(0x2ef)][_0xed4e98(0x1de)](_0x124015=>{_0x124015['show']();}),this[_0xed4e98(0x1c4)]['forEach'](_0x3bf07b=>{const _0x28d3a1=_0xed4e98;_0x3bf07b[_0x28d3a1(0x4b6)]();});}[_0x30324f(0x1ee)](){this['_removeDiffMarks']();}[_0x30324f(0x339)](_0x12f6db,_0x15467c){this['_scrollToShape'](_0x12f6db,_0x15467c);}[_0x30324f(0x262)](_0x707faa,_0x1bf710,_0x49de61,_0x2597a4,_0x144623){const _0x3b9c71=_0x30324f;_0x49de61[_0x3b9c71(0x1de)]((_0x1e80cf,_0x2aa672)=>{const _0x2fa0dd=_0x3b9c71;_0x1e80cf[_0x2fa0dd(0x1de)](_0x3b60a1=>{const _0x156304=_0x2fa0dd;var _0x1b336d;const {range:_0x216cc4,subUnitId:_0x2d04bf,unitId:_0x14bf87,showText:showText='',highlightColumn:_0x5bdacf,highlightRow:_0x4ed2f1}=_0x3b60a1,{startColumn:_0xfb7181,startRow:_0x4c6aab,endColumn:_0x299e4d,endRow:_0x5af21c}=_0x216cc4,_0x263905=(0x0,_univerjs_sheets_ui[_0x156304(0x2ca)])(_0x4c6aab,_0xfb7181,_0x707faa,_0x1bf710),_0x1164a7=(0x0,_univerjs_sheets_ui[_0x156304(0x2ca)])(_0x5af21c,_0x299e4d,_0x707faa,_0x1bf710),{columnHeaderHeightAndMarginTop:_0x625033}=_0x1bf710;let {startX:_0x4ef27e,startY:_0x105b4b}=_0x263905;const {endX:_0x583c66,endY:_0x348945}=_0x1164a7,_0x255b4c=_0x1bf710[_0x156304(0x2ea)],_0x410f41=_0x1bf710['columnHeaderHeight'];if(_0x4ed2f1)_0x4ef27e-=_0x255b4c;if(_0x5bdacf)_0x105b4b-=_0x410f41;const _0x27e1d1=_0x583c66-_0x4ef27e,_0x4a9bc6=_0x348945-_0x105b4b,_0x273932={'labelPosition':_0x105b4b-_0x625033>=0x14?'top':_0x156304(0x2b7),'sheetID':_0x2d04bf,'range':_0x216cc4,'color':_0x2597a4,'fillAfterStrokeEnabled':!![],'backgroundColor':_0x2597a4,'name':((_0x1b336d=this[_0x156304(0x3cb)][_0x156304(0x359)](_0x2aa672))===null||_0x1b336d===void 0x0?void 0x0:_0x1b336d[_0x156304(0x27f)])+'\x20'+showText||showText,'selection':_0x14bf87+'-'+_0x2d04bf+'-'+_0x216cc4['startColumn']+'-'+_0x216cc4[_0x156304(0x184)]+'-'+_0x216cc4[_0x156304(0x345)]+'-'+_0x216cc4[_0x156304(0x1a9)],'left':_0x4ef27e,'top':_0x105b4b,'width':_0x27e1d1,'height':_0x4a9bc6,'evented':![],'zIndex':0x3e8,'highlight':!![]};_0x144623[_0x156304(0x201)](new _univerjs_pro_collaboration_client_ui[(_0x156304(0x485))]('',_0x273932));});});}['_renderBorderRanges'](_0x47e93b,_0x39f38a,_0x46746c,_0xe988fe,_0x11a21a){const _0x171cb8=_0x30324f,_0x1004dc=0xc;_0x46746c[_0x171cb8(0x1de)]((_0x50a5c4,_0x553252)=>{const _0x33fce4=_0x171cb8;_0x50a5c4[_0x33fce4(0x1de)](_0x2a6d20=>{const _0x10c325=_0x33fce4;var _0x2bbdf0;const {range:_0x5ec475,subUnitId:_0x4dcf10,unitId:_0x34e838,showText:showText=''}=_0x2a6d20,{startColumn:_0x3cc21b,startRow:_0x3830a6,endColumn:_0x106c2d,endRow:_0x1c9caa}=_0x5ec475,_0x1cae49=(0x0,_univerjs_sheets_ui[_0x10c325(0x2ca)])(_0x3830a6,_0x3cc21b,_0x47e93b,_0x39f38a),_0x339233=(0x0,_univerjs_sheets_ui['getCoordByCell'])(_0x1c9caa,_0x106c2d,_0x47e93b,_0x39f38a),{columnHeaderHeightAndMarginTop:_0x336c93}=_0x39f38a,{startX:_0x4dd20d,startY:_0x234001}=_0x1cae49,{endX:_0x46801a,endY:_0x8b8ab1}=_0x339233,_0x396b83=_0x46801a-_0x4dd20d,_0x13ecb7=_0x8b8ab1-_0x234001,_0x1f8a4c={'labelPosition':_0x234001-_0x336c93>=0x14?_0x10c325(0x4b3):_0x10c325(0x2b7),'sheetID':_0x4dcf10,'range':_0x5ec475,'color':_0xe988fe,'fillAfterStrokeEnabled':![],'backgroundColor':_0x10c325(0x45e),'name':((_0x2bbdf0=this['_historyManagerService'][_0x10c325(0x359)](_0x553252))===null||_0x2bbdf0===void 0x0?void 0x0:_0x2bbdf0['name'])+'\x20'+showText||showText,'selection':_0x34e838+'-'+_0x4dcf10+'-'+_0x5ec475[_0x10c325(0x318)]+'-'+_0x5ec475[_0x10c325(0x184)]+'-'+_0x5ec475[_0x10c325(0x345)]+'-'+_0x5ec475['endRow'],'left':_0x4dd20d-_0x1004dc/0x2,'top':_0x234001-_0x1004dc/0x2,'width':_0x396b83,'height':_0x13ecb7,'evented':![],'zIndex':0x3e8,'strokeWidth':0xc,'highlight':!![]};_0x11a21a['push'](new _univerjs_pro_collaboration_client_ui['SheetCollabCursorShape']('',_0x1f8a4c));});});}[_0x30324f(0x241)](_0x5c873e,_0x30f7d3,_0x5065dc,_0x4ce9a8,_0x5da581){const _0x11113d=_0x30324f,_0x2162dc=_0x30f7d3[_0x11113d(0x2ea)],_0x30f621=_0x30f7d3[_0x11113d(0x18e)];_0x5065dc[_0x11113d(0x1de)]((_0x1e9934,_0x59e362)=>{const _0x48507a=_0x11113d;_0x1e9934[_0x48507a(0x1de)](_0x240edc=>{const _0x388ed2=_0x48507a,{range:_0x532c8f,showText:showText=''}=_0x240edc,{startColumn:_0x39f8df,startRow:_0x6634fc,endColumn:_0x372b26,endRow:_0x236d83}=_0x532c8f,_0x5d71e4=(0x0,_univerjs_sheets_ui[_0x388ed2(0x2ca)])(_0x6634fc,_0x39f8df,_0x5c873e,_0x30f7d3),_0x24415d=(0x0,_univerjs_sheets_ui[_0x388ed2(0x2ca)])(_0x236d83,_0x372b26,_0x5c873e,_0x30f7d3),{startX:_0x38209b,startY:_0x815295}=_0x5d71e4,{endX:_0x499ff3,endY:_0x57aa14}=_0x24415d,{columnHeaderHeightAndMarginTop:_0x179c53}=_0x30f7d3;let _0x38cce4;if(_0x4ce9a8===_0x388ed2(0x3ee)){var _0x4e05c2;_0x38cce4=new SheetHistoryArrowShape('',{'color':_0x388ed2(0x276),'direction':_0x388ed2(0x3ee),'left':_0x38209b,'top':0x2,'width':_0x499ff3-_0x38209b,'height':_0x30f621-0x4,'evented':!![],'zIndex':0x3e9,'highlight':!![],'highlightSecond':0x4,'name':((_0x4e05c2=this['_historyManagerService'][_0x388ed2(0x359)](_0x59e362))===null||_0x4e05c2===void 0x0?void 0x0:_0x4e05c2[_0x388ed2(0x27f)])+'\x20'+showText||showText,'labelPosition':_0x815295-_0x179c53>=0x14?_0x388ed2(0x4b3):_0x388ed2(0x2b7)}),_0x5da581['push'](_0x38cce4);}else{var _0x4ecf35;const _0x329e41=_0x57aa14-_0x815295;_0x38cce4=new SheetHistoryArrowShape('',{'color':_0x388ed2(0x276),'direction':_0x388ed2(0x28f),'left':0x2,'top':_0x815295,'width':_0x2162dc-0x4,'height':_0x329e41,'evented':!![],'zIndex':0x3e9,'highlight':!![],'highlightSecond':0x4,'name':((_0x4ecf35=this[_0x388ed2(0x3cb)]['getMember'](_0x59e362))===null||_0x4ecf35===void 0x0?void 0x0:_0x4ecf35['name'])+'\x20'+showText||showText,'labelPosition':'top'}),_0x5da581['push'](_0x38cce4);}});});}['_renderDrawingHighlights'](_0x1c70c7,_0x4fadfb,_0x2abba3,_0x5d8691){const _0x2c55b5=_0x30324f,_0x56c536=this[_0x2c55b5(0x46d)][_0x2c55b5(0x1ac)]();if(!_0x56c536)return;const _0x33b658=0xc,{columnHeaderHeightAndMarginTop:_0x363efa}=_0x56c536;_0x4fadfb[_0x2c55b5(0x1de)]((_0x2865aa,_0x23bf4c)=>{const _0x8b8b47=_0x2c55b5;_0x2865aa[_0x8b8b47(0x1de)](_0x48abe3=>{const _0x4feec5=_0x8b8b47;var _0x39479e;const {drawingId:_0x24e19b,unitId:_0x5b3f0a,subUnitId:_0x3498a9,showText:showText=''}=_0x48abe3,_0x4d8e72=this[_0x4feec5(0x1ed)][_0x4feec5(0x27c)]({'unitId':_0x5b3f0a,'subUnitId':_0x3498a9,'drawingId':_0x24e19b});if(!_0x4d8e72||!_0x4d8e72[_0x4feec5(0x167)])return;const {left:left=0x0,top:top=0x0,width:_0x445b2c,height:_0x148b0a}=_0x4d8e72[_0x4feec5(0x167)],_0x2b063c=new _univerjs_pro_collaboration_client_ui['SheetCollabCursorShape']('',{'labelPosition':top-_0x363efa>=0x14?'top':_0x4feec5(0x2b7),'sheetID':_0x3498a9,'range':{'startRow':0x0,'startColumn':0x0,'endRow':0x0,'endColumn':0x0},'color':_0x2abba3,'fillAfterStrokeEnabled':![],'backgroundColor':_0x4feec5(0x45e),'name':((_0x39479e=this[_0x4feec5(0x3cb)]['getMember'](_0x23bf4c))===null||_0x39479e===void 0x0?void 0x0:_0x39479e[_0x4feec5(0x27f)])+'\x20'+showText||showText,'selection':_0x5b3f0a+'-'+_0x3498a9+_0x4feec5(0x330)+_0x24e19b,'left':left-_0x33b658/0x2,'top':top-_0x33b658/0x2,'width':_0x445b2c,'height':_0x148b0a,'evented':!![],'zIndex':0x3e8,'strokeWidth':0xc,'highlight':!![]});_0x2b063c[_0x4feec5(0x295)][_0x4feec5(0x30d)](()=>{const _0x216bac=_0x4feec5;this[_0x216bac(0x44c)](_0x2b063c,_0x5d8691)[_0x216bac(0x1de)](_0x392de3=>{const _0x5d0508=_0x216bac;if(_0x392de3 instanceof _univerjs_pro_collaboration_client_ui[_0x5d0508(0x485)])_0x392de3[_0x5d0508(0x46a)]({'hovered':!![]});});}),_0x2b063c['onPointerLeave$'][_0x4feec5(0x30d)](()=>{const _0x1cbaa4=_0x4feec5;this[_0x1cbaa4(0x44c)](_0x2b063c,_0x5d8691)[_0x1cbaa4(0x1de)](_0x2b2b14=>{const _0xf70487=_0x1cbaa4;if(_0x2b2b14 instanceof _univerjs_pro_collaboration_client_ui[_0xf70487(0x485)])_0x2b2b14[_0xf70487(0x46a)]({'hovered':![]});});}),_0x5d8691[_0x4feec5(0x201)](_0x2b063c);});});}[_0x30324f(0x437)](){const _0x25fd32=_0x30324f;var _0x53a4b0,_0x1943c2,_0x56cd45,_0x48ebc5;(_0x53a4b0=this[_0x25fd32(0x37d)])===null||_0x53a4b0===void 0x0||_0x53a4b0[_0x25fd32(0x1de)](_0x5c16a0=>_0x5c16a0[_0x25fd32(0x2c5)]()),(_0x1943c2=this[_0x25fd32(0x2ef)])===null||_0x1943c2===void 0x0||_0x1943c2[_0x25fd32(0x1de)](_0x56ae50=>_0x56ae50[_0x25fd32(0x2c5)]()),(_0x56cd45=this[_0x25fd32(0x1c4)])===null||_0x56cd45===void 0x0||_0x56cd45[_0x25fd32(0x1de)](_0x4496ea=>_0x4496ea[_0x25fd32(0x2c5)]()),(_0x48ebc5=this[_0x25fd32(0x3fb)])===null||_0x48ebc5===void 0x0||_0x48ebc5[_0x25fd32(0x1de)](_0x306086=>_0x306086[_0x25fd32(0x2c5)]());}['_handleOverlappingShapes'](_0x578f0b){const _0x2f1d96=_0x30324f,_0x26f42d=_0x578f0b[_0x2f1d96(0x325)](_0xf71623=>_0xf71623 instanceof _univerjs_pro_collaboration_client_ui['SheetCollabCursorShape']);if(_0x26f42d['length']===0x0)return;const _0x12870a=[],_0x555b23=new Set();_0x26f42d[_0x2f1d96(0x1de)](_0xa5e273=>{const _0x1ad27a=_0x2f1d96;if(_0x555b23['has'](_0xa5e273))return;const _0x18a69b=_0xa5e273[_0x1ad27a(0x2b4)]||0x0,_0x13e992=_0xa5e273[_0x1ad27a(0x4b3)]||0x0,_0x550ab2=_0x18a69b+(_0xa5e273[_0x1ad27a(0x4b2)]||0x0),_0x1b1d70=_0x13e992,_0x42f933=[_0xa5e273];_0x555b23[_0x1ad27a(0x24d)](_0xa5e273),_0x26f42d['forEach'](_0x36b63a=>{const _0x4c1234=_0x1ad27a;if(_0x555b23[_0x4c1234(0x48f)](_0x36b63a))return;const _0x4c3a51=_0x36b63a[_0x4c1234(0x2b4)]||0x0,_0x2a2800=_0x36b63a['top']||0x0,_0x89ed64=_0x4c3a51+(_0x36b63a['width']||0x0),_0x453ed3=_0x2a2800;Math[_0x4c1234(0x2b6)](_0x550ab2-_0x89ed64)<=0xa&&Math[_0x4c1234(0x2b6)](_0x1b1d70-_0x453ed3)<=0xa&&(_0x42f933[_0x4c1234(0x201)](_0x36b63a),_0x555b23[_0x4c1234(0x24d)](_0x36b63a));});if(_0x42f933[_0x1ad27a(0x2d6)]>0x1)_0x12870a['push'](_0x42f933);}),_0x12870a[_0x2f1d96(0x1de)](_0x20863a=>{const _0x18ed8b=_0x2f1d96;_0x20863a[_0x18ed8b(0x4a2)]((_0x58e082,_0x193a87)=>(_0x58e082[_0x18ed8b(0x4b3)]||0x0)-(_0x193a87['top']||0x0)),_0x20863a[_0x18ed8b(0x1de)]((_0x296646,_0xf5fb5a)=>{const _0x4bbb72=_0x18ed8b,_0x4dfeac=_0xf5fb5a*0x16;_0x296646[_0x4bbb72(0x367)](_0x4dfeac);});});}[_0x30324f(0x44c)](_0x347fb2,_0x4c2499){const _0x5d0ae7=_0x30324f,_0x2eb77b=_0x347fb2[_0x5d0ae7(0x2b4)]||0x0,_0x1c99c9=_0x347fb2[_0x5d0ae7(0x4b3)]||0x0,_0x567bfc=_0x347fb2[_0x5d0ae7(0x4b2)]||0x0,_0x5c63b6=_0x347fb2[_0x5d0ae7(0x39e)]||0x0,_0x18e202=_0x2eb77b+_0x567bfc,_0x2c56dc=_0x1c99c9+_0x5c63b6;return _0x4c2499[_0x5d0ae7(0x325)](_0x558d49=>{const _0x46e1d1=_0x5d0ae7,_0x598ac8=_0x558d49['left']||0x0,_0x55f810=_0x558d49[_0x46e1d1(0x4b3)]||0x0,_0x5c9798=_0x558d49[_0x46e1d1(0x4b2)]||0x0,_0x15668c=_0x558d49[_0x46e1d1(0x39e)]||0x0,_0x23e926=_0x598ac8+_0x5c9798,_0x3c44ec=_0x55f810+_0x15668c;return!(_0x18e202<=_0x598ac8||_0x2eb77b>=_0x23e926||_0x2c56dc<=_0x55f810||_0x1c99c9>=_0x3c44ec);});}[_0x30324f(0x4b7)](_0x74e052,_0x3d8082){const _0x25690f=_0x30324f,_0x3cab31=_0x3d8082[_0x25690f(0x2ae)](_univerjs_engine_render[_0x25690f(0x384)]['VIEW_MAIN']);if(!_0x3cab31)return;const _0x51cf97=_0x74e052[_0x25690f(0x2b4)]||0x0,_0x141154=_0x74e052[_0x25690f(0x4b3)]||0x0,_0x12210b=_0x74e052[_0x25690f(0x4b2)]||0x0,_0x2d322a=_0x74e052['height']||0x0,_0xdaad9f=_0x3cab31['width']||0x0,_0x1045b4=_0x3cab31[_0x25690f(0x39e)]||0x0,_0x2d2df8=_0x3cab31[_0x25690f(0x48c)]||0x0,_0x3639dd=_0x3cab31[_0x25690f(0x40e)]||0x0,_0x553363=_0x2d2df8,_0x424d60=_0x3639dd,_0x4fca00=_0x2d2df8+_0xdaad9f,_0x1a3d6d=_0x3639dd+_0x1045b4;if(_0x51cf97>=_0x553363&&_0x141154>=_0x424d60&&_0x51cf97+_0x12210b<=_0x4fca00&&_0x141154+_0x2d322a<=_0x1a3d6d)return;const _0x439b4d=Math['max'](0x0,_0x51cf97-_0xdaad9f/0x2+_0x12210b/0x2),_0x1f1a4b=Math[_0x25690f(0x36f)](0x0,_0x141154-_0x1045b4/0x2+_0x2d322a/0x2);_0x3cab31[_0x25690f(0x4b8)]({'viewportScrollX':_0x439b4d,'viewportScrollY':_0x1f1a4b});}[_0x30324f(0x39c)](){const _0x561ef5=_0x30324f;return(0x0,_univerjs_sheets_ui[_0x561ef5(0x193)])(this[_0x561ef5(0x2d7)],this['_renderManagerService']);}};VersionDiffRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(HistoryManagerService)),__decorateParam(0x2,(0x0,_univerjs_core[_0x30324f(0x1db)])(VersionDiffService)),__decorateParam(0x3,_univerjs_core[_0x30324f(0x1fc)]),__decorateParam(0x4,_univerjs_engine_render[_0x30324f(0x327)]),__decorateParam(0x5,(0x0,_univerjs_core[_0x30324f(0x1db)])(_univerjs_sheets_ui[_0x30324f(0x2c9)])),__decorateParam(0x6,_univerjs_core[_0x30324f(0x1d5)]),__decorateParam(0x7,_univerjs_drawing[_0x30324f(0x1ae)])],VersionDiffRenderController);var name='@univerjs-pro/edit-history-viewer',version='0.22.1';let DisableStateController=class DisableStateController extends _univerjs_core[_0x30324f(0x471)]{constructor(_0x34cc4d){const _0x577276=_0x30324f;super(),this[_0x577276(0x492)]=_0x34cc4d,this[_0x577276(0x404)]();}[_0x30324f(0x404)](){const _0x1a55b3=_0x30324f;this[_0x1a55b3(0x2d1)](this[_0x1a55b3(0x492)][_0x1a55b3(0x347)]['subscribe'](_0x4765a5=>{const _0x2de61d=_0x1a55b3;if(_0x4765a5===null||_0x4765a5===void 0x0?void 0x0:_0x4765a5[_0x2de61d(0x4b6)])this['_cellEditorManagerService'][_0x2de61d(0x3c2)]({'show':![]});}));}};DisableStateController=__decorate([__decorateParam(0x0,_univerjs_sheets_ui[_0x30324f(0x3bb)])],DisableStateController);function MobileHistoryViewHeader(){const _0x36e385=_0x30324f,_0x8f7cc8=(0x0,_univerjs_ui[_0x36e385(0x301)])(HistoryManagerService),_0x4d4213=(0x0,_univerjs_ui['useDependency'])(_univerjs_core['LocaleService']),_0x320bb6=(0x0,_univerjs_ui['useObservable'])(_0x8f7cc8[_0x36e385(0x44a)]),_0x527964=(0x0,react['useMemo'])(()=>{const _0x17cb19=_0x36e385;if(!_0x320bb6)return![];return _0x8f7cc8[_0x17cb19(0x2a7)]();},[_0x8f7cc8,_0x320bb6]),_0x549958=(0x0,react[_0x36e385(0x1dd)])(()=>{const _0x2b71d7=_0x36e385;_0x8f7cc8[_0x2b71d7(0x459)]=_0x2b71d7(0x1bd);},[_0x8f7cc8]),_0x1ea355=(0x0,react[_0x36e385(0x1dd)])(()=>{const _0x1315c5=_0x36e385;_0x8f7cc8[_0x1315c5(0x1f5)]();},[_0x8f7cc8]);return(0x0,react_jsx_runtime[_0x36e385(0x390)])(_0x36e385(0x44b),{'className':_0x36e385(0x259),'children':[(0x0,react_jsx_runtime[_0x36e385(0x467)])(_univerjs_design[_0x36e385(0x422)],{'variant':_0x36e385(0x39d),'onClick':_0x549958,'children':_0x4d4213['t'](_0x36e385(0x4ad))}),_0x527964?(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x36e385(0x422)],{'variant':_0x36e385(0x39d),'onClick':_0x1ea355,'children':_0x4d4213['t']('editHistory.header.revert')}):(0x0,react_jsx_runtime[_0x36e385(0x467)])('div',{'className':_0x36e385(0x446)})]});}let MobileHistoryManagerController=class MobileHistoryManagerController extends _univerjs_core[_0x30324f(0x471)]{constructor(_0x277b7d,_0x4c3af5,_0x29ddc9,_0x1e2157,_0x4b64cf,_0x4b4956,_0x528174){const _0x3a796e=_0x30324f;super(),this[_0x3a796e(0x2de)]=_0x277b7d,this['_uiPartsService']=_0x4c3af5,this[_0x3a796e(0x380)]=_0x29ddc9,this[_0x3a796e(0x19b)]=_0x1e2157,this[_0x3a796e(0x3cb)]=_0x4b64cf,this[_0x3a796e(0x163)]=_0x4b4956,this[_0x3a796e(0x451)]=_0x528174,this['_init']();}[_0x30324f(0x404)](){const _0x19dbee=_0x30324f;this['disposeWithMe'](this[_0x19dbee(0x3cb)][_0x19dbee(0x44a)][_0x19dbee(0x20c)](_0x2e7892=>{const _0x59bca9=_0x19dbee;if(_0x2e7892)this[_0x59bca9(0x3cb)]['triggerLoadSheet'](_0x2e7892);})),this['disposeWithMe'](this[_0x19dbee(0x2de)][_0x19dbee(0x2fc)][_0x19dbee(0x20c)](_0x879e06=>{const _0x4b758b=_0x19dbee,_0x5d2204=this['_historyManagerService'][_0x4b758b(0x37b)];if(!_0x5d2204)return;if(_0x879e06[_0x4b758b(0x1fd)]===_univerjs_protocol[_0x4b758b(0x30f)][_0x4b758b(0x2a6)]&&_0x879e06['value']===!![])this[_0x4b758b(0x2de)][_0x4b758b(0x23f)](new _univerjs_sheets[(_0x4b758b(0x387))](_0x5d2204)['id'],![]);if(_0x879e06[_0x4b758b(0x1fd)]===_univerjs_protocol[_0x4b758b(0x30f)]['RenameSheet']&&_0x879e06[_0x4b758b(0x195)]===!![])this[_0x4b758b(0x2de)][_0x4b758b(0x23f)](new _univerjs_sheets['WorkbookRenameSheetPermission'](_0x5d2204)['id'],![]);if(_0x879e06[_0x4b758b(0x1fd)]===_univerjs_protocol[_0x4b758b(0x30f)][_0x4b758b(0x1af)]&&_0x879e06[_0x4b758b(0x195)]===!![])this[_0x4b758b(0x2de)]['updatePermissionPoint'](new _univerjs_sheets[(_0x4b758b(0x3c7))](_0x5d2204)['id'],![]);if(_0x879e06[_0x4b758b(0x1fd)]===_univerjs_protocol[_0x4b758b(0x30f)][_0x4b758b(0x1f8)]&&_0x879e06[_0x4b758b(0x195)]===!![])this[_0x4b758b(0x2de)][_0x4b758b(0x23f)](new _univerjs_sheets[(_0x4b758b(0x2b1))](_0x5d2204)['id'],![]);if(_0x879e06[_0x4b758b(0x1fd)]===_univerjs_protocol[_0x4b758b(0x30f)][_0x4b758b(0x3ae)]&&_0x879e06[_0x4b758b(0x195)]===!![])this['_permissionService'][_0x4b758b(0x23f)](new _univerjs_sheets[(_0x4b758b(0x387))](_0x5d2204)['id'],![]);if(_0x879e06[_0x4b758b(0x1fd)]===_univerjs_protocol[_0x4b758b(0x30f)][_0x4b758b(0x2bd)]&&_0x879e06[_0x4b758b(0x195)]===!![])this[_0x4b758b(0x2de)][_0x4b758b(0x23f)](new _univerjs_sheets[(_0x4b758b(0x387))](_0x5d2204)['id'],![]);})),this[_0x19dbee(0x1c9)]();let _0x55ea46;this['disposeWithMe'](this[_0x19dbee(0x3cb)][_0x19dbee(0x3df)][_0x19dbee(0x20c)](_0x534d6c=>{const _0x175efb=_0x19dbee;this[_0x175efb(0x380)]['removeAll'](),_0x55ea46===null||_0x55ea46===void 0x0||_0x55ea46[_0x175efb(0x2c5)]();_0x534d6c==='loading'&&(this[_0x175efb(0x3cb)][_0x175efb(0x3ad)](),_0x55ea46=this[_0x175efb(0x380)]['show']({'type':_univerjs_design[_0x175efb(0x306)][_0x175efb(0x3e7)],'content':this[_0x175efb(0x19b)]['t'](_0x175efb(0x210)),'duration':0x3e8}));if(_0x534d6c===_0x175efb(0x360))this[_0x175efb(0x3cb)][_0x175efb(0x2c0)]();}));}[_0x30324f(0x1c9)](){const _0x588d31=_0x30324f;var _0x4c0c73;if((_0x4c0c73=this[_0x588d31(0x451)][_0x588d31(0x34e)](_0x588d31(0x1bc)))===null||_0x4c0c73===void 0x0?void 0x0:_0x4c0c73[_0x588d31(0x35f)])return;this[_0x588d31(0x2d1)](this[_0x588d31(0x24e)][_0x588d31(0x364)](_univerjs_ui['BuiltInUIPart']['HEADER'],()=>(0x0,_univerjs_ui[_0x588d31(0x38e)])(MobileHistoryViewHeader,this[_0x588d31(0x163)])));}};MobileHistoryManagerController=__decorate([__decorateParam(0x0,_univerjs_core[_0x30324f(0x2f8)]),__decorateParam(0x1,_univerjs_ui[_0x30324f(0x23d)]),__decorateParam(0x2,_univerjs_ui[_0x30324f(0x25b)]),__decorateParam(0x3,(0x0,_univerjs_core[_0x30324f(0x1db)])(_univerjs_core[_0x30324f(0x3d9)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x30324f(0x1db)])(HistoryManagerService)),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(_univerjs_core['Injector'])),__decorateParam(0x6,_univerjs_core[_0x30324f(0x292)])],MobileHistoryManagerController);function VersionItem$1(_0x10f01b){const _0x46c2a0=_0x30324f;var _0x6e3a74;const {item:_0x4dda39,isNewest:_0x5d8221}=_0x10f01b,_0x5f591b=(0x0,_univerjs_ui['useDependency'])(HistoryManagerService),_0x29d5e7=(0x0,_univerjs_ui[_0x46c2a0(0x301)])(VersionDiffService),_0x15fe51=(0x0,_univerjs_ui[_0x46c2a0(0x301)])(_univerjs_core['LocaleService']),_0x25bb0c=(0x0,_univerjs_ui[_0x46c2a0(0x41b)])(_0x5f591b[_0x46c2a0(0x44a)],'',!![])===_0x4dda39['id'],_0x443420=_0x15fe51[_0x46c2a0(0x2d0)](),_0x220b26=parseDateWithLocale(_0x4dda39[_0x46c2a0(0x337)],_0x443420),_0xa6ad9e=!_0x5d8221&&_0x5f591b[_0x46c2a0(0x462)],_0x164087=(0x0,react['useCallback'])(async()=>{const _0x30c2c6=_0x46c2a0;if(_0x5f591b['loadingState']==='loading')return;_0x5f591b[_0x30c2c6(0x23e)]=_0x4dda39['id'],await _0x29d5e7[_0x30c2c6(0x185)](_0x4dda39['id']);},[_0x5f591b,_0x29d5e7,_0x4dda39['id']]),_0x1407cc=(0x0,react[_0x46c2a0(0x1dd)])(_0x31e2b=>{const _0x3eb974=_0x46c2a0;_0x31e2b['stopPropagation'](),_0x5f591b[_0x3eb974(0x1f5)](_0x4dda39['id']);},[_0x5f591b,_0x4dda39['id']]),_0x56ebc1=((_0x6e3a74=_0x4dda39[_0x46c2a0(0x31e)])===null||_0x6e3a74===void 0x0?void 0x0:_0x6e3a74[_0x46c2a0(0x325)](Boolean)[_0x46c2a0(0x273)](',\x20'))||_0x4dda39[_0x46c2a0(0x346)]||_0x15fe51['t'](_0x46c2a0(0x1e0));return(0x0,react_jsx_runtime[_0x46c2a0(0x390)])(_0x46c2a0(0x44b),{'className':(0x0,_univerjs_design[_0x46c2a0(0x3de)])(_0x46c2a0(0x170),_0x25bb0c&&_0x46c2a0(0x1ec)),'onClick':_0x164087,'children':[(0x0,react_jsx_runtime[_0x46c2a0(0x390)])(_0x46c2a0(0x44b),{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,react_jsx_runtime[_0x46c2a0(0x390)])(_0x46c2a0(0x44b),{'className':'univer-mb-0.5\x20univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime['jsx'])(_0x46c2a0(0x2f4),{'className':_0x46c2a0(0x323),'children':_0x56ebc1}),_0x5d8221&&(0x0,react_jsx_runtime[_0x46c2a0(0x467)])(_0x46c2a0(0x2f4),{'className':_0x46c2a0(0x386),'children':_0x15fe51['t'](_0x46c2a0(0x38c))})]}),(0x0,react_jsx_runtime[_0x46c2a0(0x390)])(_0x46c2a0(0x44b),{'className':_0x46c2a0(0x4ae),'children':[(0x0,react_jsx_runtime[_0x46c2a0(0x467)])(_0x46c2a0(0x2f4),{'className':'univer-text-xs\x20univer-text-gray-400','children':_0x220b26[_0x46c2a0(0x337)]}),(0x0,react_jsx_runtime[_0x46c2a0(0x467)])('span',{'className':_0x46c2a0(0x1d2),'children':parseAction(_0x4dda39,_0x15fe51)})]})]}),_0xa6ad9e&&(0x0,react_jsx_runtime[_0x46c2a0(0x467)])(_univerjs_design[_0x46c2a0(0x422)],{'size':_0x46c2a0(0x3b6),'variant':'primary','onClick':_0x1407cc,'children':_0x15fe51['t'](_0x46c2a0(0x41d))})]});}function MobileVersionListPanel(){const _0x92024b=_0x30324f,_0x1ce9fa=(0x0,_univerjs_ui[_0x92024b(0x301)])(HistoryManagerService),_0x111e7f=(0x0,_univerjs_ui[_0x92024b(0x301)])(_univerjs_core[_0x92024b(0x3d9)]),_0x129890=(0x0,_univerjs_ui[_0x92024b(0x41b)])(_0x1ce9fa[_0x92024b(0x26e)]),_0x169d5f=(0x0,_univerjs_ui[_0x92024b(0x41b)])(_0x1ce9fa[_0x92024b(0x35e)]),_0x569973=(0x0,react[_0x92024b(0x48d)])(null),[_0x9f9da,_0x2494e5]=(0x0,react[_0x92024b(0x3f5)])(!![]);(0x0,react['useEffect'])(()=>{const _0x3e2051=_0x92024b,_0x346a54=_0x569973[_0x3e2051(0x1ff)];if(!_0x346a54||!_0x9f9da)return;let _0x5b5029;const _0x4d8f1a=()=>{clearTimeout(_0x5b5029),_0x5b5029=setTimeout(()=>{const _0x3cf8c4=_0x6d70,{scrollTop:_0x5f0066,scrollHeight:_0x5294f4,clientHeight:_0x2c3dab}=_0x346a54;if(_0x5f0066+_0x2c3dab>=_0x5294f4-0xa)_0x1ce9fa[_0x3cf8c4(0x42d)]();},0x64);};return _0x346a54['addEventListener'](_0x3e2051(0x362),_0x4d8f1a),()=>{const _0x47cbdf=_0x3e2051;clearTimeout(_0x5b5029),_0x346a54[_0x47cbdf(0x22f)](_0x47cbdf(0x362),_0x4d8f1a);};},[_0x1ce9fa,_0x9f9da]);const _0xd56dc8=transformVersionsToDateGroup(_0x129890!==null&&_0x129890!==void 0x0?_0x129890:[]);return(0x0,react_jsx_runtime[_0x92024b(0x467)])('div',{'className':_0x92024b(0x32d),'children':(0x0,react_jsx_runtime[_0x92024b(0x390)])('div',{'className':(0x0,_univerjs_design[_0x92024b(0x3de)])(_0x92024b(0x290),_0x9f9da?_0x92024b(0x383):_0x92024b(0x3d3)),'children':[(0x0,react_jsx_runtime['jsxs'])(_0x92024b(0x44b),{'className':_0x92024b(0x1ba),'onClick':()=>_0x2494e5(_0x53cb28=>!_0x53cb28),'children':[(0x0,react_jsx_runtime['jsx'])(_0x92024b(0x44b),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-1\x20univer-w-10\x20univer-rounded-full\x20univer-bg-gray-300\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),!_0x9f9da&&(0x0,react_jsx_runtime['jsx'])(_0x92024b(0x2f4),{'className':_0x92024b(0x2e8),'children':_0x111e7f['t'](_0x92024b(0x2c8))})]}),_0x9f9da&&(0x0,react_jsx_runtime[_0x92024b(0x467)])(react_jsx_runtime[_0x92024b(0x1d7)],{'children':!_0x129890?(0x0,react_jsx_runtime[_0x92024b(0x467)])(_0x92024b(0x44b),{'className':'univer-flex\x20univer-flex-1\x20univer-items-center\x20univer-justify-center','children':(0x0,react_jsx_runtime[_0x92024b(0x467)])(_univerjs_icons['LoadingMultiIcon'],{'className':'univer-animate-spin\x20univer-text-gray-400'})}):(0x0,react_jsx_runtime['jsxs'])(_0x92024b(0x44b),{'ref':_0x569973,'className':'univer-flex-1\x20univer-overflow-y-auto','children':[_0xd56dc8[_0x92024b(0x45c)](_0x111f44=>(0x0,react_jsx_runtime['jsxs'])(_0x92024b(0x44b),{'children':[(0x0,react_jsx_runtime[_0x92024b(0x467)])(_0x92024b(0x44b),{'className':_0x92024b(0x197),'children':parseDateDayWithLocale(_0x111f44[_0x92024b(0x240)],_0x111e7f['getCurrentLocale']())}),_0x111f44[_0x92024b(0x25d)]['map']((_0x4dbb1f,_0x37f4bd)=>(0x0,react_jsx_runtime[_0x92024b(0x467)])(VersionItem$1,{'item':_0x4dbb1f,'isNewest':_0xd56dc8[0x0]===_0x111f44&&_0x37f4bd===0x0},_0x4dbb1f['id']))]},_0x111f44[_0x92024b(0x1a1)])),_0x169d5f&&(0x0,react_jsx_runtime[_0x92024b(0x467)])(_0x92024b(0x44b),{'className':_0x92024b(0x47b),'children':(0x0,react_jsx_runtime[_0x92024b(0x467)])(_univerjs_icons['LoadingMultiIcon'],{'className':_0x92024b(0x1f0)})})]})})]})});}let MobileVersionListController=class MobileVersionListController extends _univerjs_core[_0x30324f(0x471)]{constructor(_0x3c75cd,_0x43de06){const _0x16705f=_0x30324f;super(),this[_0x16705f(0x24e)]=_0x3c75cd,this[_0x16705f(0x163)]=_0x43de06,this[_0x16705f(0x2d1)](this[_0x16705f(0x24e)][_0x16705f(0x364)](_univerjs_ui[_0x16705f(0x486)][_0x16705f(0x2e7)],()=>(0x0,_univerjs_ui[_0x16705f(0x38e)])(MobileVersionListPanel,this[_0x16705f(0x163)])));}};MobileVersionListController=__decorate([__decorateParam(0x0,_univerjs_ui[_0x30324f(0x23d)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x30324f(0x1db)])(_univerjs_core[_0x30324f(0x234)]))],MobileVersionListController);var DisableDialogService=class extends _univerjs_core[_0x30324f(0x471)]{constructor(){const _0x352aa7=_0x30324f;super(),_defineProperty(this,_0x352aa7(0x230),new rxjs[(_0x352aa7(0x3c5))]());}[_0x30324f(0x39f)](){const _0x242765=_0x30324f;return(0x0,_univerjs_core[_0x242765(0x3d0)])(()=>{});}[_0x30324f(0x35c)](){}[_0x30324f(0x3e2)](_0x335f2c){}[_0x30324f(0x3da)](){const _0x14e5b1=_0x30324f;return this[_0x14e5b1(0x230)]['asObservable']();}};let UniverEditHistoryViewerMobilePlugin=class UniverEditHistoryViewerMobilePlugin extends _univerjs_core['Plugin']{constructor(_0x4f29ea=defaultPluginConfig,_0x6dccf,_0x1fca16,_0x1966f8){const _0x57c09e=_0x30324f;super(),this['_config']=_0x4f29ea,this[_0x57c09e(0x163)]=_0x6dccf,this[_0x57c09e(0x447)]=_0x1fca16,this['_configService']=_0x1966f8;const {..._0x2c2102}=(0x0,_univerjs_core[_0x57c09e(0x2b8)])({},defaultPluginConfig,this['_config']);this['_configService'][_0x57c09e(0x27e)](EDIT_HISTORY_VIEWER_PLUGIN_CONFIG_KEY,_0x2c2102);}[_0x30324f(0x3b2)](){const _0x4ae1fc=_0x30324f;[[HistoryManagerService],[MobileHistoryManagerController],[VersionDiffService],[HistoryFetchService],[MobileVersionListController],[DisableStateController],[_univerjs_pro_collaboration['ISnapshotServerService'],{'useClass':_univerjs_pro_collaboration_client[_0x4ae1fc(0x298)]}],[_univerjs_ui[_0x4ae1fc(0x454)],{'useClass':DisableDialogService}],[_univerjs_drawing['IImageIoService'],{'useClass':_univerjs_pro_collaboration_client[_0x4ae1fc(0x176)]}]][_0x4ae1fc(0x1de)](_0x31e752=>this['_injector']['add'](_0x31e752)),this[_0x4ae1fc(0x163)][_0x4ae1fc(0x249)](MobileHistoryManagerController);}['onRendered'](){const _0x244613=_0x30324f;[[VersionDiffRenderController]][_0x244613(0x1de)](_0x2424fa=>{const _0x561a5b=_0x244613;this[_0x561a5b(0x2d1)](this[_0x561a5b(0x447)]['registerRenderModule'](_univerjs_core['UniverInstanceType'][_0x561a5b(0x414)],_0x2424fa));}),this['_injector'][_0x244613(0x249)](DisableStateController),this[_0x244613(0x163)]['get'](MobileVersionListController);}['onSteady'](){const _0x24eccd=_0x30324f;this[_0x24eccd(0x163)][_0x24eccd(0x249)](VersionDiffService);}};_defineProperty(UniverEditHistoryViewerMobilePlugin,_0x30324f(0x1a5),'UNIVER_EDIT_HISTORY_VIEWER_MOBILE_PLUGIN'),_defineProperty(UniverEditHistoryViewerMobilePlugin,_0x30324f(0x1f9),name),_defineProperty(UniverEditHistoryViewerMobilePlugin,'version',version),UniverEditHistoryViewerMobilePlugin=__decorate([(0x0,_univerjs_core[_0x30324f(0x254)])(_univerjs_sheets_ui['UniverSheetsMobileUIPlugin'],_univerjs_network[_0x30324f(0x22e)]),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x30324f(0x234)])),__decorateParam(0x2,_univerjs_engine_render[_0x30324f(0x327)]),__decorateParam(0x3,_univerjs_core[_0x30324f(0x292)])],UniverEditHistoryViewerMobilePlugin);function HistoryViewHeader(){const _0x4091c0=_0x30324f,_0x4b76ce=(0x0,_univerjs_ui[_0x4091c0(0x301)])(HistoryManagerService),_0x549356=(0x0,_univerjs_ui['useDependency'])(_univerjs_core['LocaleService']),_0x4dda89=(0x0,_univerjs_ui[_0x4091c0(0x41b)])(_0x4b76ce[_0x4091c0(0x44a)]),_0x16bfbc=(0x0,react[_0x4091c0(0x196)])(()=>{const _0x675cd1=_0x4091c0;if(!_0x4dda89)return![];return _0x4b76ce[_0x675cd1(0x2a7)]();},[_0x4b76ce,_0x4dda89]),_0x19280b=(0x0,react[_0x4091c0(0x1dd)])(()=>{const _0xef41e9=_0x4091c0;_0x4b76ce[_0xef41e9(0x459)]=_0xef41e9(0x1bd);},[_0x4b76ce]),_0x471be6=(0x0,react[_0x4091c0(0x1dd)])(()=>{const _0x2b46d9=_0x4091c0;_0x4b76ce[_0x2b46d9(0x1f5)]();},[_0x4b76ce]);return(0x0,react_jsx_runtime[_0x4091c0(0x390)])(_0x4091c0(0x44b),{'className':(0x0,_univerjs_design['clsx'])('univer-flex\x20univer-h-12\x20univer-cursor-default\x20univer-items-center',_univerjs_design[_0x4091c0(0x41f)]),'children':[(0x0,react_jsx_runtime[_0x4091c0(0x467)])('a',{'className':'univer-ml-2.5\x20univer-flex\x20univer-size-8\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded','role':'button','onClick':_0x19280b,'children':(0x0,react_jsx_runtime[_0x4091c0(0x467)])(_univerjs_icons['BackIcon'],{'className':'univer-text-2xl\x20dark:!univer-text-white'})}),(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x4091c0(0x29c),'children':_0x16bfbc&&(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Button'],{'variant':_0x4091c0(0x432),'onClick':_0x471be6,'children':_0x549356['t'](_0x4091c0(0x41d))})})]});}let HistoryManagerController=class HistoryManagerController extends _univerjs_core[_0x30324f(0x471)]{constructor(_0x8a6ee3,_0x5c5598,_0x20e832,_0xeb358,_0x2b0b77,_0x31d834,_0x2a8ce6){const _0x27247c=_0x30324f;super(),this[_0x27247c(0x2de)]=_0x8a6ee3,this['_uiPartsService']=_0x5c5598,this['_messageService']=_0x20e832,this[_0x27247c(0x19b)]=_0xeb358,this[_0x27247c(0x3cb)]=_0x2b0b77,this[_0x27247c(0x163)]=_0x31d834,this['_configService']=_0x2a8ce6,this[_0x27247c(0x404)]();}[_0x30324f(0x404)](){const _0x5ee631=_0x30324f;this[_0x5ee631(0x2d1)](this[_0x5ee631(0x3cb)][_0x5ee631(0x44a)][_0x5ee631(0x20c)](_0x45529c=>{const _0x701d04=_0x5ee631;if(_0x45529c)this[_0x701d04(0x3cb)][_0x701d04(0x218)](_0x45529c);})),this[_0x5ee631(0x2d1)](this[_0x5ee631(0x2de)]['permissionPointUpdate$'][_0x5ee631(0x20c)](_0x17dda1=>{const _0x5e4c4d=_0x5ee631,_0x24e3a3=this[_0x5e4c4d(0x3cb)][_0x5e4c4d(0x37b)];if(!_0x24e3a3)return;if(_0x17dda1[_0x5e4c4d(0x1fd)]===_univerjs_protocol[_0x5e4c4d(0x30f)][_0x5e4c4d(0x2a6)]&&_0x17dda1[_0x5e4c4d(0x195)]===!![])this['_permissionService'][_0x5e4c4d(0x23f)](new _univerjs_sheets[(_0x5e4c4d(0x387))](_0x24e3a3)['id'],![]);if(_0x17dda1[_0x5e4c4d(0x1fd)]===_univerjs_protocol['UnitAction']['RenameSheet']&&_0x17dda1[_0x5e4c4d(0x195)]===!![])this[_0x5e4c4d(0x2de)][_0x5e4c4d(0x23f)](new _univerjs_sheets['WorkbookRenameSheetPermission'](_0x24e3a3)['id'],![]);if(_0x17dda1['subType']===_univerjs_protocol[_0x5e4c4d(0x30f)][_0x5e4c4d(0x1af)]&&_0x17dda1['value']===!![])this[_0x5e4c4d(0x2de)][_0x5e4c4d(0x23f)](new _univerjs_sheets[(_0x5e4c4d(0x3c7))](_0x24e3a3)['id'],![]);if(_0x17dda1[_0x5e4c4d(0x1fd)]===_univerjs_protocol[_0x5e4c4d(0x30f)][_0x5e4c4d(0x1f8)]&&_0x17dda1['value']===!![])this[_0x5e4c4d(0x2de)][_0x5e4c4d(0x23f)](new _univerjs_sheets['WorkbookHideSheetPermission'](_0x24e3a3)['id'],![]);if(_0x17dda1[_0x5e4c4d(0x1fd)]===_univerjs_protocol[_0x5e4c4d(0x30f)][_0x5e4c4d(0x3ae)]&&_0x17dda1[_0x5e4c4d(0x195)]===!![])this['_permissionService'][_0x5e4c4d(0x23f)](new _univerjs_sheets[(_0x5e4c4d(0x387))](_0x24e3a3)['id'],![]);if(_0x17dda1[_0x5e4c4d(0x1fd)]===_univerjs_protocol[_0x5e4c4d(0x30f)]['FloatImg']&&_0x17dda1[_0x5e4c4d(0x195)]===!![])this[_0x5e4c4d(0x2de)][_0x5e4c4d(0x23f)](new _univerjs_sheets[(_0x5e4c4d(0x387))](_0x24e3a3)['id'],![]);})),this[_0x5ee631(0x1c9)]();let _0x486a44;this[_0x5ee631(0x2d1)](this[_0x5ee631(0x3cb)][_0x5ee631(0x3df)]['subscribe'](_0x12a900=>{const _0x4767d4=_0x5ee631;this[_0x4767d4(0x380)][_0x4767d4(0x407)](),_0x486a44===null||_0x486a44===void 0x0||_0x486a44[_0x4767d4(0x2c5)]();_0x12a900==='loading'&&(this[_0x4767d4(0x3cb)][_0x4767d4(0x3ad)](),_0x486a44=this[_0x4767d4(0x380)][_0x4767d4(0x4b6)]({'type':_univerjs_design[_0x4767d4(0x306)]['Info'],'content':this[_0x4767d4(0x19b)]['t'](_0x4767d4(0x210)),'duration':0x3e8}));if(_0x12a900===_0x4767d4(0x360))this[_0x4767d4(0x3cb)]['hideMask']();}));}[_0x30324f(0x1c9)](){const _0x2b5303=_0x30324f;var _0x5ec33b;if((_0x5ec33b=this[_0x2b5303(0x451)]['getConfig'](_0x2b5303(0x1bc)))===null||_0x5ec33b===void 0x0?void 0x0:_0x5ec33b[_0x2b5303(0x35f)])return;this[_0x2b5303(0x2d1)](this['_uiPartsService'][_0x2b5303(0x364)](_univerjs_ui[_0x2b5303(0x486)][_0x2b5303(0x277)],()=>(0x0,_univerjs_ui[_0x2b5303(0x38e)])(HistoryViewHeader,this[_0x2b5303(0x163)])));}};function _0x6d70(_0x3d036d,_0x2f2d7d){_0x3d036d=_0x3d036d-0x15b;const _0x356d10=_0x356d();let _0x6d7088=_0x356d10[_0x3d036d];return _0x6d7088;}HistoryManagerController=__decorate([__decorateParam(0x0,_univerjs_core[_0x30324f(0x2f8)]),__decorateParam(0x1,_univerjs_ui[_0x30324f(0x23d)]),__decorateParam(0x2,_univerjs_ui['IMessageService']),__decorateParam(0x3,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x30324f(0x3d9)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x30324f(0x1db)])(HistoryManagerService)),__decorateParam(0x5,(0x0,_univerjs_core[_0x30324f(0x1db)])(_univerjs_core[_0x30324f(0x234)])),__decorateParam(0x6,_univerjs_core[_0x30324f(0x292)])],HistoryManagerController);const FILTER_TABS=[{'key':0x0,'labelKey':'editHistory.panel.filterAll'},{'key':0x1,'labelKey':_0x30324f(0x466)},{'key':0x2,'labelKey':'editHistory.panel.filterAi'}];function AiAssistantSvg(_0x40ed46){const _0x1aebbd=_0x30324f,{className:_0x1e4f51}=_0x40ed46;return(0x0,react_jsx_runtime['jsxs'])('svg',{'className':_0x1e4f51,'fill':_0x1aebbd(0x38d),'height':'20','viewBox':_0x1aebbd(0x22a),'width':'20','xmlns':'http://www.w3.org/2000/svg','children':[(0x0,react_jsx_runtime[_0x1aebbd(0x467)])(_0x1aebbd(0x378),{'d':_0x1aebbd(0x1b9),'fill':_0x1aebbd(0x1e6)}),(0x0,react_jsx_runtime[_0x1aebbd(0x467)])(_0x1aebbd(0x171),{'children':(0x0,react_jsx_runtime[_0x1aebbd(0x390)])(_0x1aebbd(0x2ab),{'gradientUnits':_0x1aebbd(0x396),'id':_0x1aebbd(0x33d),'x1':_0x1aebbd(0x30b),'x2':_0x1aebbd(0x336),'y1':'7.08645','y2':_0x1aebbd(0x357),'children':[(0x0,react_jsx_runtime[_0x1aebbd(0x467)])(_0x1aebbd(0x365),{'offset':_0x1aebbd(0x497),'stopColor':_0x1aebbd(0x16a)}),(0x0,react_jsx_runtime[_0x1aebbd(0x467)])('stop',{'offset':_0x1aebbd(0x458),'stopColor':_0x1aebbd(0x3ed)}),(0x0,react_jsx_runtime[_0x1aebbd(0x467)])('stop',{'offset':_0x1aebbd(0x2d9),'stopColor':'#2793FF'}),(0x0,react_jsx_runtime['jsx'])(_0x1aebbd(0x365),{'offset':'1','stopColor':'#01C2AA'})]})})]});}function FilterTabs(_0x1771ec){const _0x28c2de=_0x30324f,{value:_0x10f60c,onChange:_0x2ff59d}=_0x1771ec,_0x27358b=(0x0,_univerjs_ui[_0x28c2de(0x301)])(_univerjs_core[_0x28c2de(0x3d9)]);return(0x0,react_jsx_runtime[_0x28c2de(0x467)])(_0x28c2de(0x44b),{'className':_0x28c2de(0x473),'children':(0x0,react_jsx_runtime[_0x28c2de(0x467)])(_univerjs_design[_0x28c2de(0x328)],{'items':FILTER_TABS[_0x28c2de(0x45c)](_0x46726d=>({'label':_0x27358b['t'](_0x46726d['labelKey']),'value':_0x46726d[_0x28c2de(0x487)]})),'value':_0x10f60c,'onChange':_0x2ff59d})});}function VersionListPanel(){const _0x5db6c5=_0x30324f;var _0xcfbf5f,_0x32c6d9;const _0x3cfeb6=(0x0,_univerjs_ui[_0x5db6c5(0x301)])(HistoryManagerService),_0x2fc54d=(0x0,_univerjs_ui[_0x5db6c5(0x301)])(HistoryFetchService),_0xbf77f8=(0x0,_univerjs_ui[_0x5db6c5(0x301)])(VersionDiffService),_0xd2fbaf=(0x0,_univerjs_ui[_0x5db6c5(0x301)])(_univerjs_core[_0x5db6c5(0x292)]),_0x1f0fc1=(0x0,_univerjs_ui[_0x5db6c5(0x41b)])(_0x3cfeb6[_0x5db6c5(0x26e)]),_0x2ca331=(0x0,_univerjs_ui[_0x5db6c5(0x41b)])(_0x3cfeb6[_0x5db6c5(0x208)],[]),[_0x413014,_0x13d0cb]=(0x0,react[_0x5db6c5(0x3f5)])(new Set()),[_0x9ca376,_0x24710f]=(0x0,react[_0x5db6c5(0x3f5)])(new Map()),[_0x5ce4b8,_0x20f51c]=(0x0,react[_0x5db6c5(0x3f5)])(new Set()),[_0x30a8be,_0x566239]=(0x0,react[_0x5db6c5(0x3f5)])(0x0),_0x318e5d=(0x0,_univerjs_ui[_0x5db6c5(0x301)])(_univerjs_core[_0x5db6c5(0x3d9)]),_0x59a44e=(0x0,react[_0x5db6c5(0x48d)])(null),[_0x1656a7,_0x35d586]=(0x0,react[_0x5db6c5(0x3f5)])(![]),[_0x598a67,_0x2c3506]=(0x0,react['useState'])([]),_0x31de93=(_0xcfbf5f=(_0x32c6d9=_0xd2fbaf[_0x5db6c5(0x34e)]('edit-history-viewer.config'))===null||_0x32c6d9===void 0x0?void 0x0:_0x32c6d9[_0x5db6c5(0x478)])!==null&&_0xcfbf5f!==void 0x0?_0xcfbf5f:![],_0xa8580c=transformVersionsToDateGroup(_0x1f0fc1),[_0x4a168b,_0x18a2a0]=(0x0,react[_0x5db6c5(0x3f5)])([]),_0x12b50f=(0x0,react[_0x5db6c5(0x196)])(()=>{const _0xb66a02=_0x5db6c5;return _0x2ca331[_0xb66a02(0x45c)](_0x47574e=>{const _0x40cd73=_0xb66a02;return{'key':_0x47574e[_0x40cd73(0x26f)],'label':_0x47574e[_0x40cd73(0x27f)]};});},[_0x2ca331]);(0x0,react['useEffect'])(()=>{_0x3cfeb6['loadHistoryCreatorList']();},[]);const _0xd646a1=(0x0,react[_0x5db6c5(0x1dd)])(_0x20e604=>{const _0xd9f670=_0x5db6c5;_0x18a2a0([]),_0x566239(_0x20e604);if(_0x3cfeb6[_0xd9f670(0x37b)])_0x3cfeb6[_0xd9f670(0x175)](_0x3cfeb6[_0xd9f670(0x37b)],{'origin':_0x20e604});},[_0x3cfeb6]);(0x0,react[_0x5db6c5(0x2b2)])(()=>{const _0x87e38e=_0x5db6c5,_0x5ee1ce=_0x59a44e[_0x87e38e(0x1ff)];if(!_0x5ee1ce)return;let _0xf187fb;const _0x1bf677=_0x18c12d=>{clearTimeout(_0xf187fb),_0xf187fb=setTimeout(()=>{const _0x2cf648=_0x6d70,{target:_0x52898b}=_0x18c12d;if(_0x52898b){const {scrollTop:_0x4b4c24,scrollHeight:_0x266a8f,clientHeight:_0x351d36}=_0x52898b;if(_0x4b4c24+_0x351d36>=_0x266a8f-0x5)_0x3cfeb6[_0x2cf648(0x42d)]();}},0x64);};return _0x5ee1ce[_0x87e38e(0x3eb)](_0x87e38e(0x362),_0x1bf677),()=>{const _0x1485b2=_0x87e38e;clearTimeout(_0xf187fb),_0x5ee1ce[_0x1485b2(0x22f)](_0x1485b2(0x362),_0x1bf677);};},[_0x3cfeb6]);const _0x4afaa1=(0x0,react['useCallback'])(async _0x126bec=>{const _0x809899=_0x5db6c5,_0xfd9ad5=_0x126bec['id'];if(_0x413014[_0x809899(0x48f)](_0xfd9ad5)){_0x13d0cb(_0x5801eb=>{const _0x3c3e53=_0x809899,_0x3d4728=new Set(_0x5801eb);return _0x3d4728[_0x3c3e53(0x335)](_0xfd9ad5),_0x3d4728;});return;}if(_0x9ca376['has'](_0xfd9ad5)){_0x13d0cb(_0x47d382=>new Set(_0x47d382)[_0x809899(0x24d)](_0xfd9ad5));return;}_0x20f51c(_0x22c140=>new Set(_0x22c140)['add'](_0xfd9ad5));try{var _0x32338d;const _0x25a328=_0x3cfeb6[_0x809899(0x37b)];if(!_0x25a328)return;const _0x53e8b2=await _0x2fc54d[_0x809899(0x2a2)]({},{'unitId':_0x25a328,'startRevision':_0x126bec[_0x809899(0x19f)],'endRevision':_0x126bec[_0x809899(0x2e3)]});if(((_0x32338d=_0x53e8b2[_0x809899(0x315)])===null||_0x32338d===void 0x0?void 0x0:_0x32338d[_0x809899(0x1d8)])===0x1&&_0x53e8b2['changesets']){const _0x35d0be=_0x53e8b2[_0x809899(0x491)][_0x809899(0x21d)]()[_0x809899(0x45c)](_0x45a9b8=>{const _0x583045=_0x809899;var _0x2d7023,_0x422f0f;const _0xe47fb0=(0x0,_univerjs_pro_collaboration[_0x583045(0x438)])(_0x45a9b8),_0x4ac6ae=_0x45a9b8[_0x583045(0x3fd)]||_0xe47fb0[_0x583045(0x3fd)],_0x22ee5d=(_0x2d7023=_0x53e8b2[_0x583045(0x31e)])===null||_0x2d7023===void 0x0?void 0x0:_0x2d7023[_0x4ac6ae],_0x4f9cf6=((_0x422f0f=_0x45a9b8[_0x583045(0x1fa)])===null||_0x422f0f===void 0x0?void 0x0:_0x422f0f[_0x583045(0x45c)](_0x3f17ad=>_0x3f17ad['id']))||[];return{'id':_0xfd9ad5+'-detail-'+_0x45a9b8[_0x583045(0x333)],'unitId':_0x45a9b8['unitID'],'startRev':_0x45a9b8[_0x583045(0x333)],'endRev':_0x45a9b8[_0x583045(0x333)],'time':_0x45a9b8[_0x583045(0x4b4)]?_0x45a9b8[_0x583045(0x4b4)]*0x3e8:void 0x0,'user':(_0x22ee5d===null||_0x22ee5d===void 0x0?void 0x0:_0x22ee5d[_0x583045(0x27f)])||'','users':[(_0x22ee5d===null||_0x22ee5d===void 0x0?void 0x0:_0x22ee5d[_0x583045(0x27f)])||''],'commands':_0x4f9cf6,'isAnonymous':![],'isDetail':!![],'parentId':_0xfd9ad5,'additionalFields':_0x45a9b8[_0x583045(0x20b)]};});_0x24710f(_0x2f06e8=>new Map(_0x2f06e8)['set'](_0xfd9ad5,_0x35d0be)),_0x35d0be[_0x809899(0x1de)](_0x15ade0=>{const _0x220818=_0x809899;_0x3cfeb6[_0x220818(0x411)](_0x15ade0);});for(const _0x1e9026 of _0x35d0be)await _0xbf77f8[_0x809899(0x185)](_0x1e9026['id']);_0x13d0cb(_0x3d78f9=>new Set(_0x3d78f9)[_0x809899(0x24d)](_0xfd9ad5));}}catch(_0x2a9500){console[_0x809899(0x315)](_0x809899(0x174),_0x2a9500);}finally{_0x20f51c(_0x44b4c5=>{const _0x48e591=new Set(_0x44b4c5);return _0x48e591['delete'](_0xfd9ad5),_0x48e591;});}},[_0x413014,_0x9ca376,_0x3cfeb6,_0x2fc54d,_0xbf77f8]);if(!_0x1f0fc1)return(0x0,react_jsx_runtime[_0x5db6c5(0x467)])(Empty,{});return(0x0,react_jsx_runtime[_0x5db6c5(0x390)])(_0x5db6c5(0x44b),{'ref':_0x59a44e,'className':_0x5db6c5(0x3dd),'children':[_0x31de93&&(0x0,react_jsx_runtime[_0x5db6c5(0x390)])(_0x5db6c5(0x44b),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[(0x0,react_jsx_runtime[_0x5db6c5(0x467)])(_0x5db6c5(0x44b),{'className':_0x5db6c5(0x204),'children':(0x0,react_jsx_runtime[_0x5db6c5(0x467)])(FilterTabs,{'value':_0x30a8be,'onChange':_0xd646a1})}),(0x0,react_jsx_runtime[_0x5db6c5(0x467)])(_univerjs_design['Dropdown'],{'align':_0x5db6c5(0x300),'open':_0x1656a7,'onOpenChange':_0x55fa01=>{_0x35d586(_0x55fa01);if(_0x55fa01)_0x2c3506(_0x4a168b);},'overlay':(0x0,react_jsx_runtime[_0x5db6c5(0x390)])(_0x5db6c5(0x44b),{'className':_0x5db6c5(0x2c6),'children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x5db6c5(0x341),'children':_0x318e5d['t'](_0x5db6c5(0x3b9))}),(0x0,react_jsx_runtime[_0x5db6c5(0x467)])(_0x5db6c5(0x44b),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-border-t\x20univer-border-gray-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),(0x0,react_jsx_runtime[_0x5db6c5(0x467)])(_0x5db6c5(0x44b),{'className':_0x5db6c5(0x2bb),'children':_0x12b50f[_0x5db6c5(0x45c)](_0x950bfc=>{const _0x344111=_0x5db6c5,_0x252b0c=_0x598a67['includes'](_0x950bfc[_0x344111(0x487)]);return(0x0,react_jsx_runtime[_0x344111(0x390)])(_0x344111(0x44b),{'className':_0x344111(0x377),'onClick':()=>{const _0x59901b=_0x344111;_0x2c3506(_0x252b0c?_0x598a67[_0x59901b(0x325)](_0x1da190=>_0x1da190!==_0x950bfc[_0x59901b(0x487)]):[..._0x598a67,_0x950bfc['key']]);},'children':[(0x0,react_jsx_runtime[_0x344111(0x467)])(_univerjs_design['Checkbox'],{'checked':_0x252b0c}),(0x0,react_jsx_runtime['jsx'])(_0x344111(0x2f4),{'className':'univer-text-sm','children':_0x950bfc[_0x344111(0x3b8)]})]},_0x950bfc[_0x344111(0x487)]);})}),(0x0,react_jsx_runtime[_0x5db6c5(0x467)])(_0x5db6c5(0x44b),{'className':_0x5db6c5(0x263)}),(0x0,react_jsx_runtime['jsxs'])(_0x5db6c5(0x44b),{'className':_0x5db6c5(0x280),'children':[(0x0,react_jsx_runtime[_0x5db6c5(0x467)])(_univerjs_design[_0x5db6c5(0x422)],{'size':_0x5db6c5(0x1ca),'variant':'ghost','onClick':()=>{_0x2c3506(_0x4a168b),_0x35d586(![]);},'children':_0x318e5d['t']('editHistory.panel.filterCollaboratorCancel')}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Button'],{'size':_0x5db6c5(0x1ca),'onClick':()=>{const _0x79672b=_0x5db6c5;_0x18a2a0(_0x598a67);if(_0x3cfeb6[_0x79672b(0x37b)])_0x3cfeb6[_0x79672b(0x175)](_0x3cfeb6['unitId'],{'origin':_0x30a8be,'userIds':_0x598a67});_0x35d586(![]);},'children':_0x318e5d['t']('editHistory.panel.filterCollaboratorConfirm')})]})]}),'children':(0x0,react_jsx_runtime[_0x5db6c5(0x467)])(_univerjs_design[_0x5db6c5(0x422)],{'className':_0x5db6c5(0x236),'size':_0x5db6c5(0x1ca),'variant':_0x5db6c5(0x3a8),'children':(0x0,react_jsx_runtime[_0x5db6c5(0x467)])(_univerjs_icons[_0x5db6c5(0x3e5)],{'className':(0x0,_univerjs_design[_0x5db6c5(0x3de)])(_0x5db6c5(0x2da),{'univer-text-blue-600\x20dark:!univer-text-blue-400':_0x4a168b[_0x5db6c5(0x2d6)]>0x0})})})})]}),(0x0,react_jsx_runtime[_0x5db6c5(0x467)])(_0x5db6c5(0x44b),{'className':'univer-relative\x20univer-flex-1\x20univer-space-y-2\x20univer-pb-4','children':_0xa8580c[_0x5db6c5(0x45c)]((_0x39ba04,_0x1a3023)=>(0x0,react_jsx_runtime[_0x5db6c5(0x390)])(react[_0x5db6c5(0x1d7)],{'children':[(0x0,react_jsx_runtime['jsx'])(VersionDate,{'date':_0x39ba04['dateString'],'startDate':_0x39ba04[_0x5db6c5(0x240)],'endDate':_0x39ba04[_0x5db6c5(0x168)]}),_0x39ba04[_0x5db6c5(0x25d)]['map']((_0x1181ee,_0x4ef602)=>{const _0x25e761=_0x5db6c5,_0x13f993=_0x413014[_0x25e761(0x48f)](_0x1181ee['id']),_0x49c406=_0x5ce4b8[_0x25e761(0x48f)](_0x1181ee['id']),_0xddfc66=_0x9ca376[_0x25e761(0x249)](_0x1181ee['id'])||[];return(0x0,react_jsx_runtime[_0x25e761(0x390)])(react['Fragment'],{'children':[(0x0,react_jsx_runtime[_0x25e761(0x467)])(VersionItem,{'item':_0x1181ee,'onToggleExpand':_0x4afaa1,'isExpanded':_0x13f993,'isLoadingDetail':_0x49c406}),_0x13f993&&_0xddfc66[_0x25e761(0x45c)]((_0x5c2ec3,_0x8cdc4b)=>(0x0,react_jsx_runtime[_0x25e761(0x390)])(_0x25e761(0x44b),{'className':'univer-relative','style':{'marginTop':_0x25e761(0x463),'marginBottom':_0x25e761(0x463)},'children':[(0x0,react_jsx_runtime[_0x25e761(0x390)])(_0x25e761(0x44b),{'className':_0x25e761(0x394),'style':{'left':'30px','width':_0x25e761(0x23b)},'children':[_0x8cdc4b<_0xddfc66[_0x25e761(0x2d6)]-0x1&&(0x0,react_jsx_runtime[_0x25e761(0x467)])('div',{'className':_0x25e761(0x288),'style':{'left':'0','width':'1px'}}),_0x8cdc4b===_0xddfc66['length']-0x1&&(0x0,react_jsx_runtime[_0x25e761(0x467)])(_0x25e761(0x44b),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-absolute\x20univer-top-0\x20univer-bg-gray-100\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','style':{'left':'0','width':_0x25e761(0x415),'height':_0x25e761(0x2f3)}}),(0x0,react_jsx_runtime[_0x25e761(0x467)])('div',{'className':_0x25e761(0x37c),'style':{'left':'0','width':'10px','height':_0x25e761(0x415),'transform':'translateY(-50%)'}})]}),(0x0,react_jsx_runtime[_0x25e761(0x467)])(VersionItem,{'item':_0x5c2ec3,'isDetail':!![]})]},_0x1a3023+'-'+_0x4ef602+_0x25e761(0x29d)+_0x8cdc4b))]},_0x1a3023+'-'+_0x4ef602);})]},_0x39ba04['dateString']))})]});}function _0x356d(){const _0x5d736b=['453256wttDjh','_getSheetObject','link','height','open','setRangeProtection','IConfirmService','string','updateChartSource','RemoveWorksheetMergeMutation','padStart','getHours','univer-size-8\x20univer-text-gray-400','ghost','IImageIoService','arrowColumn',':\x20(','_compressMutationService','showMask','Comment','VIEW_MAIN','_categorizeMutationRanges','_sparklineDataSourceModel','onStarting','revertSheet','BehaviorSubject','_currentVersion$','small','getCellPositionByOffset','label','editHistory.panel.filterCollaborator','transformMutations','ICellEditorManagerService','HTTPService','_sheetsPivotTableConfigModel','showCol','RenamePivotFieldMutation','_initPanel','HistoryModeStatus','setState','updateChartConfig','...','Subject','ruleIds','WorkbookMoveSheetPermission','_yieldToMain','setTabColor','_unitId$','_historyManagerService','HistoryManagerService','insertCol','_maskElement','286363HEDyXK','toDisposable','RemoveColMutation','_getLighterColor','univer-h-12','Shape','getMatrix','renamePivotField','arc','interceptor','LocaleService','getDialogs$','getInterceptPoints','CreateUnitMutation','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-absolute\x20univer-flex\x20univer-h-[calc(100%-32px)]\x20univer-w-[calc(100%-16px)]\x20univer-flex-col\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-overflow-auto\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','clsx','loadingState$','measureText','UniverInstanceType','closeAll','SparklineDataSourceModel','refreshRangeProtectPermission','FunnelIcon','getFilterModel','Info','SetColHiddenMutation','removeRangeTheme','_context','addEventListener','rgba(198,40,40,0.5)','#A656FF','horizontal','SetWorksheetOrderMutation','pipe','DisposableCollection','getCurrentUnitForType','removeCol','SetTabColorMutation','useState','from','Today','sourceRange','_drawVerticalArrow','SetNumfmtMutation','_drawingDiffs','editHistory.panel.listFetchError','userID','transformByState','ISidebarService','set','SetWorksheetRightToLeftMutation','toISOString','anonymous','_init','display','justifyContent','removeAll','setFilterCriteria','setPermissionPoints','SetSheetsFilterRangeMutation','replace','univer-size-4\x20univer-shrink-0','onSteady','viewportScrollY','SetPivotValueFilterMutation','updateShapeData','registerDetailVersion','RemovePivotFieldMutation','cfId','UNIVER_SHEET','1px','_combineRanges','SetRowVisibleMutation','removePivotField','setPivotSort','77016sGvycs','useObservable','getDeserializedSheetBlock','editHistory.header.revert','fillStyle','borderBottomClassName','SetRowHiddenMutation','setRangeValues','Button','default','editSheet','font','rgba(','setRowCount','setTableFilter','deleteProtection','updatePivotFieldSource','DeleteWorksheetRangeThemeStyleMutation','startRevCreateTime','loadMoreVersions','RANGE_TYPE','row','subUnitIds','_status$','primary','_updateDiffMarks','AddRangeProtectionMutation','/creators','disposeUnit','_removeDiffMarks','parseProtocolChangeset','getSparklineById','setPivotFieldFormat','_transformService','next','insertBorder','insertSheet','endRevision','_initRender','#FFF','9uAlHcv','ComponentManager','LocaleType','blockMeta','univer-w-10','_renderManagerService','_historyFetchService','_name','currentVersion$','div','_findOverlappingShapes','SetPivotCollapseMutation','editHistory.panel.revertConfirm','setValue','setCF','_configService','COLUMN','univer-flex\x20univer-flex-1\x20univer-flex-col\x20univer-gap-1','IDialogService','data','restore','setRowData','0.31','status','getTableInfo','highlightSecond','map','AddWorksheetMergeMutation','transparent','_drawTextBubble','_isBlinkVisible','SetWorksheetColWidthMutation','canRevert','0px','object','AddSheetSparklineMutation','editHistory.panel.filterUser','jsx','updatePivotSource','_applyWorkbookData','setShapeProps','getSelectedVersionIsCurrentVersion','_transformMutationByOrder','_sheetSkeletonManagerService','UniverSheetsUIPlugin','closePath','RemovePivotTableMutation','Disposable','deleteCellRanges','univer-relative\x20univer-h-8','sheetId','sparklines','_lastLabel','highlightColumn','historyAIassistantEnabled','hideRow','RemoveSheetsChartMutation','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-center\x20univer-py-4\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','loadingState','SetWorksheetRowHeightMutation','stroke','SetPivotSortMutation','_hovered','getDataRange','univer-size-4\x20univer-animate-spin','fetchCreatorList','SetRangeValuesMutation','SheetCollabCursorShape','BuiltInUIPart','key','stopPropagation','createUnit','ObjectMatrix','arrowRow','viewportScrollX','useRef','_draw','has','_stopBlinking','changesets','_cellEditorManagerService','insertRow','_createUnit','RemoveNumfmtMutation','historyListServerUrl','0.01','addPivotTable','deleteWorksheetRangeTheme','status$','setPivotCollapse','currentVersionDiff$','univer-m-auto\x20univer-animate-spin','100%','strokeStyle','targetRange','_workbookDataCache','sort','_conditionalFormattingRuleModel','setPivotValueFilter','rgba(46,125,50,0.5)','AddRangeThemeMutation','SetWorksheetPermissionPointsMutation','UpdateValuePositionMutation','VersionDiffService','rev','hidden','removeTable','editHistory.header.back','univer-flex\x20univer-items-center\x20univer-gap-2','getSubUnitId','_renderDrawingHighlights','origin','width','top','createTime','position','show','_scrollToShape','scrollToViewportPos','_loadingState$','DeleteSheetTableMutation','_httpService','ChartUpdateConfigMutation','_rangeProtectionRuleModel','backgroundColor','findAllRectangle','update','date','RemoveRowMutation','entities','_injector','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_maskContainer','ToggleGridlinesMutation','transform','endDateString','MoreDownIcon','#FF557D','getUnitId','className','recoverTime','getSheetId','CopyWorksheetEndMutation','univer-flex\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-100\x20univer-px-4\x20univer-py-3\x20dark:!univer-border-gray-800','defs','getVpScrollXYInfoByPosToVp','_sidebarService','Failed\x20to\x20fetch\x20version\x20details:','loadInitialVersions','CollaborationImageIoService','SetPivotPositionMutation','SheetTableService','keys','getVersions','removeFilter','RemoveSheetMutation','defineProperty','SetPivotFilterMutation','SetColDataMutation','revertRevision$','_labelPosition','_openPanel','SetWorksheetDefaultStyleMutation','startRow','ensureVersion','InsertSheetsChartMutation','_blinkTimer','InsertSheetMutation','setTimeout','setPivotSubtotalType','27cnePXP','openPanel$','MoveRangeMutation','columnHeaderHeight','DeleteWorksheetProtectionMutation','block','stringify','setColWidth','getSheetObject','ConditionalFormattingRuleModel','value','useMemo','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20univer-px-4\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x20univer-text-xs\x20univer-font-semibold\x20univer-text-gray-500\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','SetRowDataMutation','moveRange','AddPivotFieldMutation','_localeService','UniverEditHistoryViewerMobilePlugin','SetWorksheetHideMutation','SetConditionalRuleMutation','startRev','labelPosition','dateString','toString','2098364VTEefH','arrowRowRanges','pluginName','SetSheetSparklineMutation','entered','deleteDrawings','endRow','Module','renameSheet','getCurrentSkeleton','addObjects','IDrawingManagerService','MoveSheet','moveRows','copySheet','getMutationActionMap','_fetching$','_creators$','tableId','updateFieldPosition','getPivotTableRangeInfo','editHistory.action.removeDrawing','M9.18035\x202.34502C9.21605\x202.15386\x209.31749\x201.9812\x209.46709\x201.85695C9.6167\x201.7327\x209.80504\x201.66469\x209.99951\x201.66469C10.194\x201.66469\x2010.3823\x201.7327\x2010.5319\x201.85695C10.6815\x201.9812\x2010.783\x202.15386\x2010.8187\x202.34502L11.6945\x206.97669C11.7567\x207.30598\x2011.9167\x207.60887\x2012.1537\x207.84583C12.3907\x208.08279\x2012.6936\x208.24282\x2013.0228\x208.30502L17.6545\x209.18085C17.8457\x209.21656\x2018.0183\x209.318\x2018.1426\x209.4676C18.2668\x209.6172\x2018.3348\x209.80555\x2018.3348\x2010C18.3348\x2010.1945\x2018.2668\x2010.3828\x2018.1426\x2010.5324C18.0183\x2010.682\x2017.8457\x2010.7835\x2017.6545\x2010.8192L13.0228\x2011.695C12.6936\x2011.7572\x2012.3907\x2011.9172\x2012.1537\x2012.1542C11.9167\x2012.3912\x2011.7567\x2012.6941\x2011.6945\x2013.0234L10.8187\x2017.655C10.783\x2017.8462\x2010.6815\x2018.0188\x2010.5319\x2018.1431C10.3823\x2018.2673\x2010.194\x2018.3353\x209.99951\x2018.3353C9.80504\x2018.3353\x209.6167\x2018.2673\x209.46709\x2018.1431C9.31749\x2018.0188\x209.21605\x2017.8462\x209.18035\x2017.655L8.30451\x2013.0234C8.24231\x2012.6941\x208.08228\x2012.3912\x207.84532\x2012.1542C7.60836\x2011.9172\x207.30547\x2011.7572\x206.97618\x2011.695L2.34451\x2010.8192C2.15335\x2010.7835\x201.98069\x2010.682\x201.85645\x2010.5324C1.7322\x2010.3828\x201.66418\x2010.1945\x201.66418\x2010C1.66418\x209.80555\x201.7322\x209.6172\x201.85645\x209.4676C1.98069\x209.318\x202.15335\x209.21656\x202.34451\x209.18085L6.97618\x208.30502C7.30547\x208.24282\x207.60836\x208.08279\x207.84532\x207.84583C8.08228\x207.60887\x208.24231\x207.30598\x208.30451\x206.97669L9.18035\x202.34502Z','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-shrink-0\x20univer-cursor-pointer\x20univer-flex-col\x20univer-items-center\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_config','edit-history-viewer.config','exited','unmergeCells','removeSparkline','RevertRevisionMutation','_extractRanges','UpdateSheetsShapeDataMutation','_lastPointer','_arrowDiffs','RemoveSheetsShapeMutation','_dataValidationModel','AddPivotTableMutation','SetWorksheetProtectionMutation','_registerHeader','middle','symbol','highlight','_direction','startRevision','isError','history-panel','drawingIds','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-truncate\x20univer-text-xs\x20univer-text-gray-500\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-text-gray-400\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','VIRTUAL_VERSION_NOW','univer-flex\x20univer-items-center\x20univer-justify-center','ICommandService','hasCommand','Fragment','code','cellValue','_blinkIntervalTimer','Inject','AddDataValidationMutation','useCallback','forEach','univer-flex\x20univer-items-center\x20univer-gap-2.5\x20univer-pt-1.5\x20univer-text-sm\x20univer-font-medium','editHistory.panel.unknownUser','updateDrawing','_confirmService','setRangeTheme','hideDiffMarks','SetDrawingApplyMutation','url(#paint0_linear_236_415)','getRule','setProtection','memberId','subUnitId','evented','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-blue-50\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_drawingManagerService','removeDiffMarks','moveCols','univer-animate-spin\x20univer-text-gray-400','UpdateDataValidationMutation','MoveConditionalRuleMutation','Tooltip','parse','triggerRevert','_highlight','beginPath','HideSheet','packageName','mutations','setColCount','IUniverInstanceService','subType','SetSheetTableFilterMutation','current','removeSheet','push','1000','transformSnapshotToWorkbookData','univer-flex-1','InsertColMutation','InsertRowMutation','deleteBorder','creators$','loadHistoryCreatorList','12px','additionalFields','subscribe','REMOVE','ruleId','hide','editHistory.info.loading','switchMap','style','editHistory.action.insertDrawing','DeleteConditionalRuleMutation','_cacheKey','getOwnPropertyDescriptor','_detailVersionsMap','triggerLoadSheet','registerRenderModule','isTransformMutationsSuccess','setRowAutoHeight','m1Prime','reverse','hovered','getElementById','rules','SetWorksheetRowIsAutoHeightMutation','_diffRangesMap','/list?','SetWorksheetActiveOperation','Character','ChartUpdateSourceConfigMutation','rule','hideCol','fill','0\x200\x2020\x2020','InsertSheetsShapeMutation','resolve','insertBorderRanges','UniverNetworkPlugin','removeEventListener','_dialogOptions$','confirm-revert-revision','Rect','_color','Injector','pivotTableId','univer-rounded-xs\x20univer-h-6\x20univer-cursor-pointer\x20univer-p-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','ROW','_getAPIPrefix','moveTo','zIndex','10px','init','IUIPartsService','currentVersion','updatePermissionPoint','startDateString','_renderArrowRanges','_initMaskContainer','min','loadSheet','_componentManager','SetWorksheetNameMutation','DeleteRangeProtectionMutation','updateShapeType','get','setDV','groupIds','_setVersions','add','_uiPartsService','setPivotPosition','updateCellRanges','_sheetTableService','_sidebarDisposable','editHistory.action.etc','DependentOn','univer-min-h-15\x20univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20univer-py-1.5\x20univer-transition-colors\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-800','FromArray','getRuleById','flat','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-12\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-px-4\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-950\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','SetWorksheetColumnCountMutation','IMessageService','_showText','versions','RemoveDataValidationMutation','\x20-\x20','_loadParams','SheetsChartService','_renderCellRanges','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-border-t\x20univer-border-gray-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','editHistory.action.revertSheetSuffix','flex','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-break-all\x20univer-font-medium\x20univer-text-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-text-gray-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','deleteRangeProtection','mergeCells','asObservable','[HistoryFetchService]:\x20wrong\x20rev\x20from\x20the\x20server!','makeDirty','5455114SQKUUO','_versionDiffService','versions$','userId','append','chartId','setRightToLeft','join','_openPanel$','function','rgba(21,101,192,0.5)','HEADER','RemoveSheetsFilterMutation','SetColVisibleMutation','setNumfmt','ReCalcSheetsFilterMutation','getDrawingByParam','ErrorCode','setConfig','name','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-end\x20univer-gap-2\x20univer-p-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','getCurrentVersion','categorizeMutationRanges','SetSheetTableMutation','insertChart','26851fbjmfZ','editHistory.panel.aiAssistant','_highlightSecond','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-absolute\x20univer-top-0\x20univer-h-full\x20univer-bg-gray-100\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','triggerLoadVersions','iterator','children','createElement','unknownUser','setRowIsAutoHeight','vertical','univer-pointer-events-auto\x20univer-flex\x20univer-flex-col\x20univer-rounded-t-2xl\x20univer-bg-white\x20univer-shadow-[0_-4px_24px_rgba(0,0,0,0.12)]\x20univer-transition-[height]\x20univer-duration-300\x20dark:!univer-bg-gray-950','isArray','IConfigService','triggerCustomVersions','univer-flex\x20univer-flex-1\x20univer-items-center\x20univer-gap-1.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','onPointerEnter$','_members','univer-ml-1\x20univer-flex\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border\x20univer-border-primary-600\x20univer-bg-primary-50\x20univer-px-1.5\x20univer-text-xs\x20univer-text-primary-600','SnapshotServerOverHTTPService','insertDrawings','clear','RangeProtectionRuleModel','univer-flex\x20univer-flex-1\x20univer-items-center\x20univer-justify-center','-detail-','Error','removeRow','insert','_versions$','getHistoryChangesets','setFrozen','2430IHyBer','unitId$','Edit','getSelectedVersionCanRevert','syncExecuteCommand','SetWorkbookNameMutation','_unitCurrentVersionMap','linearGradient','slice','version','getViewport','createSheet','lineTo','WorkbookHideSheetPermission','useEffect','some','left','COMPRESS_MUTATION_APPLY','abs','bottom','merge','getSeconds','white','univer-max-h-[300px]\x20univer-overflow-y-auto\x20univer-py-1','univer-flex\x20univer-min-h-6\x20univer-w-full\x20univer-items-center\x20univer-justify-between','FloatImg','find','setFilter','hideMask','setPivotFilter','lastLabel','split','highlightRow','dispose','univer-min-w-[240px]','setInterval','editHistory.panel.title','SheetSkeletonManagerService','getCoordByCell','setWorksheetRangeTheme','clearInterval','_updateVersions','_initActiveSwitch','SetPivotOptionMutation','getCurrentLocale','disposeWithMe','command','updateValuePosition','blocks','editHistory.panel.confirm','length','_univerInstanceService','UpdatePivotFieldSourceInfoMutation','0.655','univer-size-4','chartModelId','AddConditionalRuleMutation','deleteCF','_permissionService','params','removePivotTable','SheetDataValidationModel','_historyContainerId','endRev','then','executeCommand','parseInt','CONTENT','univer-mt-1\x20univer-text-xs\x20univer-text-gray-500','_sheetsChartService','rowHeaderWidth','_revertRevision$','removeShape','_createMask','call','_borderDiffs','/universer-api/history','INSERT','setSparkline','50%','span','SetRangeThemeMutation','endRevCreateTime','DrawingApplyType','IPermissionService','MoveRowsMutation','_snapshotServerService','Vector2','permissionPointUpdate$','rgba','scene','values','end','useDependency','_renderBorderRanges','RestoreIcon','_canRevert','3048270OONuKv','MessageType','ranges','sparklineConfigMap','SetWorksheetRowAutoHeightMutation','LRUMap','1.66418','commands','subscribeEvent','rgb','UnitAction','_sheetsFilterService','setPivotOption','SetWorksheetRangeThemeStyleMutation','moveCF','onRendered','error','reorderRange','UpdateSheetsShapeTypeMutation','startColumn','editHistory.panel.revertDesc','Unspecified','removeDV','absolute','editHistory.panel.revertConfirmText','users','/cs?startRevision=','color','editHistory.panel.currentUser','active','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-text-gray-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','filter','5PGJrci','IRenderManagerService','Segmented','_sheetPermissionInitController','shapeId','_updateWorksheetVisibility','body','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-z-10\x20univer-flex\x20univer-flex-col\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-justify-end\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','hideSheet','VersionDiffRenderController','-drawing-','_getActiveSubUnitId','concat','revision','updateBorder','delete','18.1758','time','startsWith','scrollToShape','register','unionPivotViewRange','_drawHorizontalArrow','paint0_linear_236_415','rowData','rgba(225,\x20225,\x20225,\x200.5)','removeNumfmt','univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-font-semibold','editHistory.action.','now','action','endColumn','user','state$','ZH_CN','toggleGridlines','updateDrawings','currentSkeleton$','getRange','fetching','getConfig','updateBorderRanges','getRelativeToViewportCoord','getVersion','range','allRanges','isSheetHidden','User','setRowHeight','6.77028','LoadingMultiIcon','getMember','parent','onPointerLeave$','close','[HistoryFetchService]:\x20request\x20snapshot\x20error!','fetching$','historyPanelHidden','loaded','SetWorksheetRowCountMutation','scroll','setColData','registerComponent','stop','_currentVersionDiff$','setOffsetY','deleteBorderRanges','_commandService','addSparkline','UpdatePivotTableSourceRangeMutation','decorate','ISnapshotServerService','getCurrentUnitCurrentVersion','max','constructor','_hasMore','all','_startBlinking','updateTable','UpdateFieldPositionMutation','univer-text-gray-500','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-bg-gray-100\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:hover:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','path','SetGridlinesColorMutation','RemoveSheetSparklineMutation','unitId','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-absolute\x20univer-top-1/2\x20univer-bg-gray-100\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_diffs','rangeInfo','SheetsFilterService','_messageService','drawingId','historyPanelComponentKey','univer-h-[60%]','SHEET_VIEWPORT_KEY','_setFetching','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-shrink-0\x20univer-rounded\x20univer-border\x20univer-border-primary-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-primary-50\x20univer-px-1.5\x20univer-py-0.5\x20univer-text-xs\x20univer-text-primary-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-transparent\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','WorkbookEditablePermission','SetPivotFieldFormatMutation','removeChart','userIds','getMinutes','editHistory.panel.currentVersion','none','connectInjector','column','jsxs','AddSheetTableMutation','objects','includes','univer-absolute\x20univer-top-0\x20univer-h-full','addPivotField','userSpaceOnUse','arrowColumnRanges','reduce','getSheets','insertCellRanges'];_0x356d=function(){return _0x5d736b;};return _0x356d();}function Empty(){const _0x36167a=_0x30324f;return(0x0,react_jsx_runtime[_0x36167a(0x467)])(_0x36167a(0x44b),{'className':_0x36167a(0x1d4),'children':(0x0,react_jsx_runtime[_0x36167a(0x467)])(_0x36167a(0x2f4),{'className':_0x36167a(0x376),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x36167a(0x358)],{'className':_0x36167a(0x49d)})})});}function VersionDate(_0x403995){const _0x36069f=_0x30324f,_0x26c140=(0x0,_univerjs_ui[_0x36069f(0x301)])(_univerjs_core[_0x36069f(0x3d9)]),{date:_0x469e6d,startDate:startDate=_0x469e6d}=_0x403995;return(0x0,react_jsx_runtime[_0x36069f(0x467)])(_0x36069f(0x44b),{'className':_0x36069f(0x1df),'children':parseDateDayWithLocale(startDate,_0x26c140[_0x36069f(0x2d0)]())});}function VersionItem(_0x4e6e95){const _0x23e53f=_0x30324f,{item:_0x703859,onToggleExpand:_0x4d483d,isExpanded:_0x478677,isLoadingDetail:_0x3e0b69,isDetail:_0x37f592}=_0x4e6e95,{time:_0x45b532,user:_0x1afa87,startRevCreateTime:_0x1d962a,endRevCreateTime:_0x5c36e0,users:_0xcfc803}=_0x703859,_0x491270=(0x0,_univerjs_ui[_0x23e53f(0x301)])(HistoryManagerService),_0x550a12=(0x0,_univerjs_ui[_0x23e53f(0x301)])(VersionDiffService),_0x11ff31=(0x0,_univerjs_ui[_0x23e53f(0x41b)])(_0x491270[_0x23e53f(0x44a)],'',!![])===_0x703859['id'],_0x59d9a0=_0x491270[_0x23e53f(0x36e)]()===_0x703859[_0x23e53f(0x2e3)],_0x48bed3=!_0x59d9a0&&_0x491270[_0x23e53f(0x462)],_0x22bb9b=(0x0,_univerjs_ui[_0x23e53f(0x301)])(_univerjs_core[_0x23e53f(0x3d9)]),_0x23341f=_0x22bb9b[_0x23e53f(0x2d0)](),_0x2a19aa=parseDateWithLocale(_0x45b532,_0x23341f),_0x185723=parseDateWithLocale(_0x1d962a,_0x23341f),_0x2185c=parseDateWithLocale(_0x5c36e0,_0x23341f),_0x588452=_0x22bb9b['t']('editHistory.panel.currentVersion'),_0x3c69f8=_0x703859[_0x23e53f(0x19f)]!==_0x703859[_0x23e53f(0x2e3)],_0x27c9ae=Boolean(_0x703859['additionalFields']),_0x2a586e=(0x0,react[_0x23e53f(0x196)])(()=>{const _0x39eaf1=_0x23e53f;let _0x266a51=_0x1afa87||_0x22bb9b['t']('editHistory.panel.unknownUser');if(_0xcfc803&&_0xcfc803[_0x39eaf1(0x325)](_0x359f57=>_0x359f57)['length']>0x0)_0x266a51=_0xcfc803[_0x39eaf1(0x325)](_0x3912ab=>_0x3912ab)[_0x39eaf1(0x273)](',\x20');if(_0x27c9ae)return''+_0x22bb9b['t'](_0x39eaf1(0x286))+(_0x266a51?'\x20('+_0x266a51+')':'');return _0x266a51;},[_0x27c9ae,_0x1afa87,_0xcfc803,_0x22bb9b]),_0x3b1352=(0x0,react['useCallback'])(async _0x232bd0=>{const _0x4f912c=_0x23e53f;if(_0x491270[_0x4f912c(0x47c)]==='loading')return;_0x491270['currentVersion']=_0x232bd0,_0x37f592&&(await _0x550a12[_0x4f912c(0x185)](_0x232bd0),await _0x491270[_0x4f912c(0x218)](_0x232bd0));},[_0x491270,_0x550a12,_0x37f592]),_0x55c59f=(0x0,react[_0x23e53f(0x1dd)])(_0x563603=>{_0x491270['triggerRevert'](_0x563603);},[_0x491270]),_0x2a75e4=(0x0,react[_0x23e53f(0x1dd)])(_0x30c754=>{const _0x3dfbae=_0x23e53f;_0x30c754[_0x3dfbae(0x488)]();if(_0x4d483d&&!_0x3e0b69)_0x4d483d(_0x703859);},[_0x4d483d,_0x703859,_0x3e0b69]);return(0x0,react_jsx_runtime[_0x23e53f(0x390)])(_0x23e53f(0x44b),{'className':(0x0,_univerjs_design[_0x23e53f(0x3de)])(_0x23e53f(0x255),{'univer-bg-gray-50\x20dark:!univer-bg-gray-900':_0x11ff31,'univer-ml-6':_0x37f592}),'onClick':()=>_0x3b1352(_0x703859['id']),'children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x23e53f(0x1d4),'style':{'width':_0x23e53f(0x20a)},'children':_0x3c69f8&&!_0x37f592&&(0x0,react_jsx_runtime[_0x23e53f(0x467)])(_0x23e53f(0x44b),{'onClick':_0x2a75e4,'className':_0x23e53f(0x324),'children':_0x3e0b69?(0x0,react_jsx_runtime[_0x23e53f(0x467)])(_univerjs_icons['LoadingMultiIcon'],{'className':_0x23e53f(0x482)}):_0x478677?(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x23e53f(0x169)],{'className':_0x23e53f(0x3a7)}):(0x0,react_jsx_runtime['jsx'])(_univerjs_icons['MoreRightIcon'],{'className':_0x23e53f(0x3a7)})})}),(0x0,react_jsx_runtime['jsxs'])(_0x23e53f(0x44b),{'className':_0x23e53f(0x453),'children':[(0x0,react_jsx_runtime[_0x23e53f(0x390)])(_0x23e53f(0x44b),{'className':_0x23e53f(0x2bc),'children':[(0x0,react_jsx_runtime[_0x23e53f(0x390)])('div',{'className':_0x23e53f(0x294),'children':[_0x27c9ae&&(0x0,react_jsx_runtime[_0x23e53f(0x467)])(AiAssistantSvg,{'className':_0x23e53f(0x40c)}),(0x0,react_jsx_runtime[_0x23e53f(0x467)])(_0x23e53f(0x2f4),{'className':_0x23e53f(0x266),'children':_0x2a586e}),(0x0,react_jsx_runtime[_0x23e53f(0x467)])('span',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-center\x20univer-text-gray-500\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-text-gray-400\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x37f592?_0x2a19aa['time']:_0x1d962a!==_0x5c36e0?_0x185723[_0x23e53f(0x337)]+_0x23e53f(0x25f)+_0x2185c[_0x23e53f(0x337)]:_0x185723[_0x23e53f(0x337)]}),_0x59d9a0&&(0x0,react_jsx_runtime[_0x23e53f(0x467)])(_0x23e53f(0x2f4),{'className':_0x23e53f(0x297),'children':_0x588452})]}),(0x0,react_jsx_runtime[_0x23e53f(0x467)])('div',{'children':_0x48bed3&&(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x23e53f(0x1f3)],{'title':_0x22bb9b['t'](_0x23e53f(0x319)),'children':(0x0,react_jsx_runtime[_0x23e53f(0x467)])(_0x23e53f(0x44b),{'onClick':_0x145aed=>{const _0x240b13=_0x23e53f;_0x145aed[_0x240b13(0x488)](),_0x55c59f(_0x703859['id']);},'className':'univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-text-gray-400\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','children':(0x0,react_jsx_runtime[_0x23e53f(0x467)])(_univerjs_icons[_0x23e53f(0x303)],{})})})})]}),(0x0,react_jsx_runtime[_0x23e53f(0x467)])('div',{'className':'univer-text-sm\x20univer-leading-5\x20univer-text-gray-500\x20dark:!univer-text-gray-300','children':parseAction(_0x703859,_0x22bb9b)})]})]});}const HISTORY_PANEL_KEY=_0x30324f(0x1d0);let VersionListController=class VersionListController extends _univerjs_core[_0x30324f(0x471)]{constructor(_0x530810,_0x3154e2,_0x34bd92,_0x9e7f00,_0xb15355){const _0x233aef=_0x30324f;super(),this['_sidebarService']=_0x530810,this[_0x233aef(0x245)]=_0x3154e2,this[_0x233aef(0x19b)]=_0x34bd92,this[_0x233aef(0x3cb)]=_0x9e7f00,this['_configService']=_0xb15355,_defineProperty(this,_0x233aef(0x252),null),this[_0x233aef(0x404)]();}[_0x30324f(0x404)](){const _0x51b196=_0x30324f;this[_0x51b196(0x3c0)]();}[_0x30324f(0x182)](){const _0x58f964=_0x30324f;var _0x575752;if(this[_0x58f964(0x252)])return;const _0x464a2b=((_0x575752=this[_0x58f964(0x451)][_0x58f964(0x34e)](_0x58f964(0x1bc)))===null||_0x575752===void 0x0?void 0x0:_0x575752[_0x58f964(0x382)])||HISTORY_PANEL_KEY,_0x1c7782={'header':{'title':this[_0x58f964(0x19b)]['t'](_0x58f964(0x2c8))},'children':{'label':_0x464a2b},'onClose':()=>{const _0x247cff=_0x58f964;this[_0x247cff(0x252)]=null,this[_0x247cff(0x3cb)][_0x247cff(0x459)]=_0x247cff(0x1bd);}};this[_0x58f964(0x252)]=this[_0x58f964(0x173)][_0x58f964(0x39f)]({..._0x1c7782});}[_0x30324f(0x3c0)](){const _0x2ac0f4=_0x30324f;this[_0x2ac0f4(0x2d1)](this[_0x2ac0f4(0x245)][_0x2ac0f4(0x33a)](HISTORY_PANEL_KEY,VersionListPanel)),this[_0x2ac0f4(0x2d1)](this['_historyManagerService'][_0x2ac0f4(0x18c)][_0x2ac0f4(0x20c)](_0x4438e9=>{const _0x39d3db=_0x2ac0f4;_0x4438e9&&this[_0x39d3db(0x182)]();}));}};VersionListController=__decorate([__decorateParam(0x0,_univerjs_ui[_0x30324f(0x3ff)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x30324f(0x1db)])(_univerjs_ui[_0x30324f(0x443)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x30324f(0x1db)])(_univerjs_core[_0x30324f(0x3d9)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x30324f(0x1db)])(HistoryManagerService)),__decorateParam(0x4,_univerjs_core[_0x30324f(0x292)])],VersionListController);let UniverEditHistoryViewerPlugin=class UniverEditHistoryViewerPlugin extends _univerjs_core['Plugin']{constructor(_0x58dde5=defaultPluginConfig,_0x99a31,_0xd77849,_0x5b4aaa){const _0x5d05d2=_0x30324f;super(),this[_0x5d05d2(0x1bb)]=_0x58dde5,this[_0x5d05d2(0x163)]=_0x99a31,this['_renderManagerService']=_0xd77849,this[_0x5d05d2(0x451)]=_0x5b4aaa;const {..._0x276f04}=(0x0,_univerjs_core[_0x5d05d2(0x2b8)])({},defaultPluginConfig,this[_0x5d05d2(0x1bb)]);this['_configService']['setConfig'](EDIT_HISTORY_VIEWER_PLUGIN_CONFIG_KEY,_0x276f04);}[_0x30324f(0x3b2)](){const _0x3db81c=_0x30324f;[[HistoryManagerService],[HistoryManagerController],[VersionDiffService],[HistoryFetchService],[VersionListController],[DisableStateController],[_univerjs_pro_collaboration['ISnapshotServerService'],{'useClass':_univerjs_pro_collaboration_client[_0x3db81c(0x298)]}],[_univerjs_ui[_0x3db81c(0x454)],{'useClass':DisableDialogService}],[_univerjs_drawing[_0x3db81c(0x3a9)],{'useClass':_univerjs_pro_collaboration_client['CollaborationImageIoService']}]][_0x3db81c(0x1de)](_0x20320d=>this[_0x3db81c(0x163)][_0x3db81c(0x24d)](_0x20320d)),this[_0x3db81c(0x163)][_0x3db81c(0x249)](HistoryManagerController);}[_0x30324f(0x314)](){const _0x535105=_0x30324f;[[VersionDiffRenderController]]['forEach'](_0x5ce274=>{const _0x1bc040=_0x6d70;this['disposeWithMe'](this[_0x1bc040(0x447)][_0x1bc040(0x219)](_univerjs_core[_0x1bc040(0x3e1)][_0x1bc040(0x414)],_0x5ce274));}),this[_0x535105(0x163)][_0x535105(0x249)](DisableStateController),this[_0x535105(0x163)][_0x535105(0x249)](VersionListController);}[_0x30324f(0x40d)](){const _0x5c97ec=_0x30324f;this[_0x5c97ec(0x163)][_0x5c97ec(0x249)](VersionDiffService);}};_defineProperty(UniverEditHistoryViewerPlugin,_0x30324f(0x1a5),'UNIVER_EDIT_HISTORY_VIEWER_PLUGIN'),_defineProperty(UniverEditHistoryViewerPlugin,'packageName',name),_defineProperty(UniverEditHistoryViewerPlugin,_0x30324f(0x2ad),version),UniverEditHistoryViewerPlugin=__decorate([(0x0,_univerjs_core[_0x30324f(0x254)])(_univerjs_sheets_ui[_0x30324f(0x46e)],_univerjs_network[_0x30324f(0x22e)]),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x30324f(0x234)])),__decorateParam(0x2,_univerjs_engine_render['IRenderManagerService']),__decorateParam(0x3,_univerjs_core[_0x30324f(0x292)])],UniverEditHistoryViewerPlugin),Object[_0x30324f(0x17d)](exports,_0x30324f(0x3cc),{'enumerable':!![],'get':function(){return HistoryManagerService;}}),exports[_0x30324f(0x3c1)]=HistoryModeStatus,exports['HistoryOrigin']=HistoryOrigin,Object[_0x30324f(0x17d)](exports,_0x30324f(0x19c),{'enumerable':!![],'get':function(){return UniverEditHistoryViewerMobilePlugin;}}),Object['defineProperty'](exports,'UniverEditHistoryViewerPlugin',{'enumerable':!![],'get':function(){return UniverEditHistoryViewerPlugin;}}),Object[_0x30324f(0x17d)](exports,_0x30324f(0x32f),{'enumerable':!![],'get':function(){return VersionDiffRenderController;}}),Object[_0x30324f(0x17d)](exports,_0x30324f(0x4a9),{'enumerable':!![],'get':function(){return VersionDiffService;}});
|