@univerjs-pro/sheets-chart-ui 1.0.0-beta.1 → 1.0.0-beta.2
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/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.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-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.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-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.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/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.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-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/chart-element-float-menu.controller.d.ts +1 -1
- package/lib/types/controllers/chart-sheet-copy-plan.d.ts +16 -0
- package/lib/types/controllers/ui.controller.d.ts +1 -0
- package/lib/types/services/chart-image-export-provider.d.ts +2 -2
- package/lib/types/services/chart-image-rect.d.ts +2 -2
- package/lib/types/services/chart-render.service.d.ts +2 -1
- package/lib/types/services/sheet-chart-host.d.ts +0 -3
- package/lib/types/services/sheets-chart-host-provider.service.d.ts +2 -0
- package/lib/types/services/sheets-chart-ui.service.d.ts +7 -14
- package/lib/types/views/chart-edit-panel/chart-editor-default-values.d.ts +1 -14
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +20 -20
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x533bf2=_0x4f81;(function(_0x4c2159,_0x583010){const _0x49c2f0=_0x4f81,_0x306558=_0x4c2159();while(!![]){try{const _0xb82104=parseInt(_0x49c2f0(0x29e))/0x1*(parseInt(_0x49c2f0(0x20e))/0x2)+parseInt(_0x49c2f0(0x1ec))/0x3+-parseInt(_0x49c2f0(0x2d5))/0x4*(-parseInt(_0x49c2f0(0x196))/0x5)+-parseInt(_0x49c2f0(0x11b))/0x6+-parseInt(_0x49c2f0(0x103))/0x7*(-parseInt(_0x49c2f0(0xe2))/0x8)+parseInt(_0x49c2f0(0xf7))/0x9*(-parseInt(_0x49c2f0(0x8c))/0xa)+-parseInt(_0x49c2f0(0x149))/0xb;if(_0xb82104===_0x583010)break;else _0x306558['push'](_0x306558['shift']());}catch(_0x198a27){_0x306558['push'](_0x306558['shift']());}}}(_0x4eac,0xac8bc));import{ChartModelService as _0x538c99,ChartRenderMode as _0xac39e4,ChartUpdateConfigCommand as _0x32b2ba,ChartUpdateConfigMutation as _0xdd60ff,ChartUpdateSourceCommand as _0x575ee3,InsertChartCommand as _0x17d872,InsertSheetsChartMutation as _0x8740fa,RemoveSheetsChartMutation as _0x4ceb47,SHEETS_CHART_PLUGIN_CONFIG_KEY as _0x40c528,SHEETS_CHART_PLUGIN_NAME as _0x159303,SheetChartConfigAdapter as _0x2f4014,SheetsChartService as _0x1d97a8,UniverSheetsChartPlugin as _0x1c2f0a,getAllowedChartTypes as _0x4b9dc3,toInsertChartMutationSource as _0x5c5743}from'@univerjs-pro/sheets-chart';import{CommandType as _0x2c593f,DependentOn as _0x17c104,Disposable as _0x1b05ef,DisposableCollection as _0xbb67f,DrawingTypeEnum as _0xc2a308,FOCUSING_COMMON_DRAWINGS as _0x11a249,ICommandService as _0x413077,IConfigService as _0x5d6e79,IContextService as _0x263bb6,IUniverInstanceService as _0x371c5e,Inject as _0x28410f,Injector as _0x4b92dd,LocaleService as _0x3f8b07,Plugin as _0x470b7e,ThemeService as _0x3801a3,UniverInstanceType as _0x1302ff,createIdentifier as _0x396891,debounce as _0xe22d45,generateRandomId as _0x3a6851,merge as _0x4a99a7,numberToABC as _0x287b1b,toDisposable as _0x1f864f,touchDependencies as _0x5b8dfc}from'@univerjs/core';import{IDrawingManagerService as _0x32f0cf,UniverDrawingPlugin as _0x1fab36,getDrawingShapeKeyByDrawingSearch as _0x57c728}from'@univerjs/drawing';import{DrawingApplyType as _0x4ef90d,ISheetDrawingService as _0x49382d,RemoveSheetDrawingCommand as _0xf80612,SetDrawingApplyMutation as _0x1ee14a,UniverSheetsDrawingPlugin as _0x36aab4,transformToDrawingPosition as _0x1a36ef}from'@univerjs/sheets-drawing';import{SHEET_CHART_RENDER_OBJECT_CONFIG as _0x15b37e,SheetCanvasFloatDomManagerService as _0x10c864,SheetDrawingHitTestService as _0x3fcfc9,UniverSheetsDrawingUIPlugin as _0xb7a1e7}from'@univerjs/sheets-drawing-ui';import{COPY_TYPE as _0x3eadd3,ISheetClipboardService as _0x2933d1,PREDEFINED_HOOK_NAME as _0x41cea3,SheetCanvasPopManagerService as _0x199d2a,SheetCopyCommand as _0x1d84ea,SheetPrintInterceptorService as _0x55853b,SheetSkeletonManagerService as _0x52bd5f,UniverSheetsUIPlugin as _0x20ed54,deriveStateFromActiveSheet$ as _0x29ec2d,getCurrentRangeDisable$ as _0x56b2d5}from'@univerjs/sheets-ui';import{CanvasFloatDomService as _0x9c432f,ComponentManager as _0x53334b,ContextMenuGroup as _0x47d484,ContextMenuPosition as _0x5ee795,IMenuManagerService as _0x542957,ISidebarService as _0x315d34,IconManager as _0x1edf8a,MenuItemType as _0x1f19d7,RibbonInsertGroup as _0x25054b,getMenuHiddenObservable as _0x155da9,useDependency as _0x7a1354,useObservable as _0x3f23d3}from'@univerjs/ui';import{CHART_ELEMENT_FLOAT_MENU_COMPONENT as _0xa436e2,CHART_HOST_BORDER_RADIUS as _0x5a398f,CHART_TYPE_CATALOG as _0x2af92b,ChartAxisSection as _0xf67165,ChartCommonDataMappingSection as _0x3fd79a,ChartDomFrame as _0x466713,ChartEditBlockTitle as _0x20d267,ChartEditPanel as _0x3d03fa,ChartEditPanelSection as _0x42e819,ChartEditPanelTab as _0x655832,ChartEditPanelTabs as _0xe40130,ChartEditorCapability as _0x2a232a,ChartEditorProvider as _0x7043e2,ChartElementFloatMenuAdapterRegistry as _0x1d0732,ChartFrameContentMode as _0x4a77a7,ChartFrameLayout as _0x546db4,ChartFunnelStyleSection as _0x1a78cf,ChartGradientFillField as _0x3ea491,ChartGridlinesAndTicksSection as _0xecb0d5,ChartHeatmapStyleSection as _0x3d4d63,ChartHostAdapter as _0x5e57e2,ChartImageExportService as _0x4755ef,ChartIndicatorLineSection as _0x1044fc,ChartLegendSection as _0x53779d,ChartLineAndAreaSection as _0x23621b,ChartNumberFormatAtom as _0x5598d0,ChartParetoSeriesSection as _0x47bc27,ChartPieStyleSection as _0x311049,ChartRadarStyleSection as _0x5bfdce,ChartRelationStyleSection as _0x34b1f3,ChartSectionAccordion as _0x582859,ChartSectionAccordionContent as _0x17d4dc,ChartSectionAccordionItem as _0x30fdf4,ChartSectionAccordionTrigger as _0x27417e,ChartSeriesSection as _0x5b7d74,ChartStackField as _0x2673ca,ChartStyleSection as _0x1016f6,ChartThemeField as _0x1a3dd9,ChartTitlesSection as _0x479bc2,ChartTrendlineSection as _0x55acbb,ChartTypeField as _0x4438a5,ChartTypeSpecificDataSection as _0xef3110,ChartTypeSpecificSetupSection as _0xf9cfb0,ChartTypeSpecificStyleSection as _0x2c390c,ChartUIService as _0xee89a9,ChartViewStateRegistry as _0x513507,ChartWaterfallSetupFields as _0x54a27f,ChartWaterfallStyleSection as _0x39d84c,ChartWordCloudStyleSection as _0x3aee00,DEFAULT_CHART_AXIS_VALUES as _0x1bdd05,DEFAULT_CHART_FUNNEL_VALUES as _0x276dc8,DEFAULT_CHART_HEATMAP_VALUES as _0x532e7e,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0xb6da10,DEFAULT_CHART_LEGEND_VALUES as _0x521853,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x8d9db6,DEFAULT_CHART_PARETO_VALUES as _0x27a98e,DEFAULT_CHART_PIE_VALUES as _0x338243,DEFAULT_CHART_RADAR_VALUES as _0x313059,DEFAULT_CHART_RELATION_VALUES as _0x231633,DEFAULT_CHART_SERIES_VALUES as _0x3d7d3a,DEFAULT_CHART_STYLE_VALUES as _0x514eb1,DEFAULT_CHART_TITLE_VALUES as _0x172fb1,DEFAULT_CHART_TRENDLINE_VALUES as _0x4ba913,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x15f353,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x578664,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x5f4dcd,UniverChartUIPlugin as _0x2a6dc3,buildChartTypeSelectOptions as _0x116915,chartTypeSupportsCapability as _0x12072f,chartTypeSupportsLineAndAreaStyle as _0x5721ec,createChartElementFloatMenuAdapter as _0x2c1df6,resolveChartCreationIntent as _0xc80af2,resolveChartEditPanelRoute as _0x44a37b,resolveChartElementSelection as _0x19ef3b,useChartEditorChartType as _0x375724,useChartEditorHasRightAxis as _0x3a0738}from'@univerjs-pro/chart-ui';import{ChartHostRenderMode as _0x41159f,ChartImageSourceType as _0x1d0e55,ChartThemeService as _0x39ff0a,ChartTypeBits as _0x52497a,ChartWaterfallStyleTarget as _0x256130,DataOrientation as _0x1807ec,EChartRenderEngineName as _0x5f5aa4,IChartRenderModelManagerService as _0x3e474b,ImageChartHost as _0xa3de1f,PieSecondaryPlotType as _0xff6f74,RTLChartStyle as _0x2d121a,chartBitsUtils as _0x49703d,chartImageSourceToDataUrl as _0x4077ba,chartTypeCanUseTrendLine as _0x36d4f2,resolveChartRuntimeStyle as _0x5634d6,resolveChartStyleBackgroundColor as _0x1a5353,resolveDefaultChartHostFrameStyle as _0x1aa3f2}from'@univerjs-pro/engine-chart';function _0x4eac(){const _0x3af37a=['_getChartRenderSkipReason','_initMenus','drawingType','config$','_setChartRuntimeZIndex','isFinite','icon','_getFloatDomInfo','_pendingToken','sheet.chart.edit.panel','iconName','range','WordCloud','translate','_registerComponents','_getChartRenderObjectContext','1000','_version','_getHostPlacement','_activeDomReadyChartIds','sheets-chart-ui.section.waterfall','_chartEventSubscriptions','bottom','setRangeSelectMode','download','exportImage','constructor','PieStyle','disposeWithMe','sheets-chart-ui.common.chartStyle','remove$','map','applyPoint','_restoreHostWrapper','target','getFocusedUnit','sheets-chart-ui.common.legend','_createCopyInfoByRange','rangeInfo$','getMatrix','getUnit','registerFeatureMenu','_getChartRenderObject','sheets-chart-ui.common.insertChart','setStyle','object','dispose','getRenderUnitById','getValue','_panelRoute$','innerHeight','toPrimitive','values','clientY','globalAlpha','DownloadImageIcon','initPanel','_initActiveRuntimeLayerListener','_subscribeChartEvents','Treemap','width','openChartPanelById','_initPrinting','Sunburst','_disposeChartEventSubscription','getBatchRemoveOp','subscribe','getChartPopupMenus','top','_requestChartCanvasRender','_waiter','_chartHostProvider','_menuManagerService','_chartElementEditMode','getObjectIncludeInGroup','_getOrCreateChartRenderInstance','VerticalAxis','Column','_openPanel','_clearSheetChartRuntimeCaches','bounds','67366WvIonj','onCommandExecuted','Trendline','_markHostReady','close','setBorder','_markNotReady','_disposeChartRenderInstance','sheets-chart-ui.common.series','markNotReady','_createChartRenderInstanceContext','_renderManagerService','_selectedElement$','create','_chartInstanceMap','sheets-chart-ui.waterfall.negative','asObservable','_disposeChartDomInstance','entries','clearImage','_resizeChart','value','clientX','_cancelHostWait','decorate','_domFrame','setSelectedElement','localPoint','Relation','_disposed','border','all','offsetLeft','defaultValues','packageName','activeEditChart','viewBound','_renderWhenConfigReady','_chartHostMap','label','activeRuntimeModel','_initDrawingDeactivationListener','mode','sheets-chart-ui.section.lineAndArea','UPDATE','_initCopyPaste','route','children','Pareto','_getDrawingGeometry','_resetChartRuntimeZIndex','drawWith','transform','IndicatorLine','closePath','8ncotUt','columnPercentStacked','_chartModelService','getRenderModel','_closePopup','bind','add','requestPaint','allSeriesStyle','OPERATION','canvas','featurePluginUngroupUpdate$','updateFloatDom','_activeEditChart$','inactive-sheet','axis','copyType','labelId','setPanelRoute','isManaged','_resolveLayout','_configService','relation','_openFloatMenu','createRuntimeChartStyle','render','startX','focus$','_listenChartUpdateMutations','resolve','startColumn','sheets-chart-ui.common.openChartPanel','onStarting','_chartSnapshotStoreService','_sheetPermissionCheckController','engine','addObject','_frameStyle','CHART','querySelector','error','_resolveChartRenderMode','enableChartElementFloatMenu','_getOrCreateSheetChartHost','syncLayout','waterfall','sheet.command.menu-insert-chart','slice','_drawingManagerService','_initActiveChartModelListener','takeSnapshot','_renderService','checkChartCanRender','cancel','getSheetId','_canvasFloatDomService','sheets-chart.ui.service','_updateTransform','_getSceneAndTransformerByDrawingSearch','sheet-chart-setup-panel','showFloatMenu','50770TbuFgM','sheets-chart-ui.waterfall.subtotal','transparent','getConfig','_commandService','_hostStyle','chartObject','next','sheets-chart-ui.chord.target','.chart-host','ParetoLineSeries','crossOrigin','lineAndArea','invalidateSnapshot','_url','univer-shrink-0','Scatter','_chartEventHandlers','_snapshotStore','cumulativeLineStyle','_resolvedConfig','rangeInfo','markReady','sheets-chart-ui.common.horizontalAxis','isDomReady','parentElement','pointerEvents','Waterfall','sheets-chart-ui.section.chord','dblclick','filter','series','_pendingMutationConfigRenders','parent','_popupDisposable','pipe','_chartThemeService','funnel','darkMode$','BUTTON','abs','getObject','_openEditPanelByDoubleClick','_syncLayoutOnDrawingTransform','Style','sheets-chart-ui.section.indicatorLine','_initCommands','Data','barStyle','Subtotal','chartId','PRINTING_COMPONENT_COLLECT','call','split','scaleX','redo','has','titleKey','_chartHostProviderService','with','concat','_activateEditPanelState','header','DRAWING_CHART','_createPrintingChartObject','hit','onload','Overlay','_managed','_sidebarDisposable','REMOVE','baseOn','#-#','_generateCopyPasteMutations','sheets-chart-ui.common.deleteChart','getChartSnapshotImage','sheet-chart-style-panel','sheet.command.chart.open-focused-panel','Bubble','_sheetsChartUIService','radius','sheets-chart-ui.section.gridlinesAndTicks','sheets-chart-ui.common.dataRange','ChartAndAxisTitles','_sheetDrawingHitTestService','createElement','674408mXKSga','_addWatermark','initialRect','getContextValue','offsetHeight','arc','clearChart','_executeChartUpdateSourceConfig','ancestorTransform','permissionCheckWithoutRange','sheets-chart-ui.section.sunburst','isInGroup','getBatchUpdateOp','sheet.command.chart.copy-focused-chart','activeSheet$','wordCloud','items','_renderChartModel','setActiveEditChart','rightYAxis','function','891yFfRgR','sheets-chart-ui.section.funnel','_activateHostWrapper','Series','name','classType','_shouldEnableChartElementEdit','sheets-chart-ui.section.pie','_chartUIService','promise','naturalHeight','setHostStyle','21oLUXly','_initPermission','startRow','_sheetCanvasFloatDomManagerService','_rangeSelectMode','checkHost','getChartDataSource','_registerAdapter','sheets-chart-ui.section.gauge','save','_drawingGeometry','height','groupId','Axes','sheets-chart-ui.waterfall.positive','makeDirty','symbol','_renderModelManager','_getDrawable','chartModelId','_isChartElementEditEnabled','section','Chord','rect','854370oIvyRJ','Bar','Gauge','_cancelDebouncedCallbacks','_clearSelectedTarget','getActiveSheet','syncHostLayout','_getChartSnapshotKey','tab','_entries','get','setImage','_getPlacement','sheets-chart-ui.section.relation','Image','_image','Heatmap','isElementEditModeActive','sheet.operation.open-chart-panel','category','serialize','univer-flex\x20univer-flex-col\x20univer-gap-3','strokeWidth','removeHost','getImage','commitSnapshot','UNIVER_SHEET','_pendingHost','blockExecuteWithoutPermission','ChartStyle','_shouldSuppressSnapshot','_chartRenderMode','_popupChartId','PenIcon','sheetDisposed$','clear','legend','getSheetBySheetId','selectedElement$','_snapshotKey','mountNode','Dom','ensureHost','style$','sheets-chart-ui.section.paretoLine','_handleDrawingDoubleClick','20547384qiqFFK','offsetWidth','logicalOuterRect','Timed\x20out\x20waiting\x20for\x20float\x20dom\x20host\x20\x22','_init','update','activeChartModel','hidePanel','setElementEditMode','chartRenderMode','interceptor','getChartModel','image','addClipboardHook','objects','sheets-chart-ui.section.histogram','register','drawImage','setContextValue','_focusedDrawings','direction$','_chartRenderService','visible','radar','WaterfallSeries','getRenderColor','createChartInstance','_applyActiveChartRuntimeZIndex','focusDrawing','dataSource','scale','_sheetsChartService','sheets-chart-ui.common.editChart','Funnel','updateFloatDomProps','isConnected','Pie','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_bindChartEventHandler','getDrawingOrder','handleActiveSubUnitChange','GROUP','_adapterRegistry','CUT','Fail\x20to\x20create\x20float\x20dom','_isProviderDisposed','hasOwnProperty','_clearChartRuntimeCache','_urlImage','getRealBound','sheets-chart-ui.common.customize','_disposeChartEventSubscriptions','sheets-chart-ui.section.radar','unitId','sheets-chart-element-float-menu','_drawChartImage','sheetTransform','getCurrentLastSelection','_debounceHandleMap','getCurrentUnitOfType','seriesId','titles','Row','string','INSERT','sheets-chart-ui.common.heatmap','sheets-chart-ui.common.switchRowColumn','_registerIcons','Line','sheets-chart-ui.common.hideChartPanel','_debounceHandle','sheets-chart-ui.common.useAsCategoryLabels','ensureHandle','_initSheetChange','complete','_themeService','sheets-chart-ui.chartTypes.','3398705ssyknF','markHostNotReady','_registerChartImageRenderObjectFactory','transformChange$','sheets-chart-ui.common.trendline','Canvas','executeCommand','scaleY','_univerInstanceService','UniverSheetsChartUIPlugin','getDrawingData','_applyHostStyle','chartModelRemoved$','_getImage','onTransformChange$','attachPopupToDynamicAbsolutePosition','_copyInfo','Legend','undo','executeChartUpdateConfig','set','setOrientation','exportImg','div','drawingId','auto','_setHostStyle','defineProperty','_componentManager','small','sheets-chart-ui.config','_clearHiddenSelectedTarget','_getCurrentSnapshotImage','restore','setConfig','_savedWrapperStyle','_sheetPrintInterceptorService','subscribeEvent','domId','mergeMenu','url','MEDIA','clip','sheet.command.chart.export-focused-image','params','invert','resourceCollector','max','_iconManager','startY','click','style','getBatchAddOp','dom','_sheetSkeletonService','sheets-chart-ui.common.verticalAxis','LineAndArea','forEach','getOwnPropertyDescriptor','img','nativeEvent','@univerjs-pro/sheets-chart-ui','sheets-chart-ui.common.setup','resize','isRender','push','add$','checkMounted','endsWith','_lastRenderInputMap','nextVersion','removeChartModel','_renderDebounceMap','_sheetInterceptorService','_disposeImage','_requestPaint','registerRenderObjectFactory','activeEditChart$','getDirection','-univer-mx-4','right','getHostSize','position$','_localeService','rightY','sidebarOptions$','2194701IMxldx','_getOuterRect','pieSecondaryPlotType','[ChartRender]\x20Failed\x20to\x20render\x20chart\x20snapshot\x20for\x20printing','some','univer-overflow-hidden','getFocusDrawings','Histogram','select','panelRoute$','missing-float-dom','subUnitId','_removeHost$','getRangeInfo','pareto','min','clearPanelRoute','delete','Combination','drawingIds','default','featurePluginOrderUpdate$','Radar','univer-overflow-visible','renderChartsForPrinting','onDispose','getElementById','getRect','_sheetCanvasPopManagerService','HorizontalAxis','type','removeHost$','getFloatDomInfo','sheets-chart-ui.common.rightVerticalAxis','26gPLwaQ','waterfallStyle','innerWidth','beginPath','Positive','sheets-chart-ui.common.category','COMMAND','config','unsubscribe','multiply','_generatePasteMutations','setActiveChartModel','Url','ImageBitmap','src','isRowDirection','sheets-chart-ui.section.wordCloud','offsetTop','SELECTOR','length','prototype','contains','getSheetBySheetName','lineTo','_injector','_draw','focused$','_sheetClipboardService','opacity','_createHost','_contextService','getSkeleton','_drawChartFrame','_deactivateEditPanelState','getCanvasElement','_markReady','registerCommand','_config','left','zIndex','pluginName','chartType','_lastActiveSheet','number','getUnitId','_sidebarService','_sheetDrawingService','chartModelAdded$','CopyDoubleIcon','_renderAfterChartUpdateMutation','_rerenderLatest','activeChartModel$','sheets-chart-ui.permission.editErr','Candlestick','scene','_activeChartId','rangeSelectMode','keys','assignStyle','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','indexOf','version','isArray'];_0x4eac=function(){return _0x3af37a;};return _0x4eac();}import{CopySheetCommand as _0x12f458,RemoveSheetCommand as _0x200288,SheetInterceptorService as _0x2dd957,SheetPermissionCheckController as _0x7e07e,SheetSkeletonService as _0x5cd6cc,SheetsSelectionsService as _0x5c8999,UniverSheetsPlugin as _0x459686,WorkbookEditablePermission as _0x5572e0,WorksheetEditPermission as _0x3d338d,attachRangeWithCoord as _0x170817,discreteRangeToRange as _0x3a930d,getSheetCommandTarget as _0x4774b5}from'@univerjs/sheets';import{BehaviorSubject as _0x53aede,Observable as _0x30312a,Subject as _0x31f8bb,combineLatest as _0x50f064,combineLatestWith as _0x445cf1,debounceTime as _0x35a815,filter as _0x1fcd24,fromEvent as _0x50fa50,map as _0x7ff423,merge as _0x3a8e71,startWith as _0x42ba0f,take as _0x57056f,throttleTime as _0x442c3b}from'rxjs';import{deserializeRangeWithSheet as _0x3e25b6,serializeRangeWithSheet as _0x17a743}from'@univerjs/engine-formula';import{insertGroupObject as _0x4bfe7a}from'@univerjs/drawing-ui';import{DRAWING_OBJECT_LAYER_INDEX as _0xaa2b67,IRenderManagerService as _0x4c69ff,ObjectType as _0x1408b1,RENDER_CLASS_TYPE as _0x534c56,Rect as _0x57239c,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x540203,Transform as _0x35a5b5,UniverRenderEnginePlugin as _0x2ac6a0}from'@univerjs/engine-render';import{useEffect as _0x48969d,useMemo as _0x37be06,useState as _0x15ee11}from'react';import{Button as _0x4de9e3}from'@univerjs/design';import{RangeSelector as _0xe63180}from'@univerjs/sheets-formula-ui';import{Fragment as _0x291abc,jsx as _0x5d0c77,jsxs as _0x57606b}from'react/jsx-runtime';import{UniverLicensePlugin as _0x409320}from'@univerjs-pro/license';import{PenIcon as _0x3f19de}from'@univerjs/icons';const ur=_0x533bf2(0x1b4),dr={'enableChartElementFloatMenu':!0x0},fr={'type':_0x2c593f['OPERATION'],'id':'sheet.operation.hide-chart-panel','handler'(){return!0x0;}},V={'type':_0x2c593f[_0x533bf2(0x2de)],'id':_0x533bf2(0x12d),'handler'(){return!0x0;}};function H(_0x30dbc8){const _0x13d974=_0x533bf2;let _0x4044b0=_0x30dbc8['get'](_0x49382d)[_0x13d974(0x1f2)]();if(_0x4044b0[_0x13d974(0x221)]!==0x1)return null;let _0x1f29b2=_0x4044b0[0x0];return _0x1f29b2[_0x13d974(0x24f)]===_0xc2a308['DRAWING_CHART']?_0x1f29b2:null;}function pr(_0x1b05a3,_0x5a77c6){const _0x12181b=_0x533bf2;let _0x497e81=document[_0x12181b(0xe1)]('a');_0x497e81['href']=_0x1b05a3,_0x497e81[_0x12181b(0x265)]=_0x5a77c6,_0x497e81[_0x12181b(0x1c8)]();}const mr={'id':_0x533bf2(0xd9),'type':_0x2c593f['COMMAND'],'handler':(_0x4b3b5a,_0x5500da)=>{const _0x34f7af=_0x533bf2;let _0x2c2286=H(_0x4b3b5a);return _0x2c2286?_0x4b3b5a['get'](_0x413077)['executeCommand'](V['id'],{'unitId':_0x2c2286[_0x34f7af(0x17e)],'subUnitId':_0x2c2286[_0x34f7af(0x1f7)],'drawingId':_0x2c2286[_0x34f7af(0x1ae)],..._0x5500da!=null&&_0x5500da['route']?{'route':_0x5500da[_0x34f7af(0x2cc)]}:{}}):!0x1;}},hr={'id':_0x533bf2(0xef),'type':_0x2c593f['COMMAND'],'handler':_0x1607ad=>H(_0x1607ad)?_0x1607ad['get'](_0x413077)['executeCommand'](_0x1d84ea['id']):!0x1},gr={'id':_0x533bf2(0x1c1),'type':_0x2c593f[_0x533bf2(0x214)],'handler':async _0x48e84d=>{const _0xb28511=_0x533bf2;let _0x30420a=H(_0x48e84d);if(!_0x30420a)return!0x1;let _0x15bc91=await _0x48e84d['get'](_0x4755ef)[_0xb28511(0x266)]({'unitId':_0x30420a[_0xb28511(0x17e)],'subUnitId':_0x30420a['subUnitId'],'getId':()=>_0x30420a[_0xb28511(0x1ae)]});return _0x15bc91?(pr(_0x15bc91,_0x30420a[_0xb28511(0x1ae)]+'.png'),!0x0):!0x1;}},_r={'id':'sheet.command.chart.delete-focused-chart','type':_0x2c593f[_0x533bf2(0x214)],'handler':_0x109a04=>{const _0x52b6b9=_0x533bf2;let _0x597b16=H(_0x109a04);return _0x597b16?_0x109a04[_0x52b6b9(0x125)](_0x413077)[_0x52b6b9(0x19c)](_0xf80612['id'],{'unitId':_0x597b16[_0x52b6b9(0x17e)],'drawings':[{'unitId':_0x597b16[_0x52b6b9(0x17e)],'subUnitId':_0x597b16[_0x52b6b9(0x1f7)],'drawingId':_0x597b16[_0x52b6b9(0x1ae)],'drawingType':_0xc2a308[_0x52b6b9(0xcb)]}]}):!0x1;}},vr={'type':_0x2c593f[_0x533bf2(0x214)],'id':_0x533bf2(0x303),'handler':async(_0x490dbf,_0x342d3e)=>{const _0x4099b3=_0x533bf2;let _0x23d551=_0x4774b5(_0x490dbf[_0x4099b3(0x125)](_0x371c5e));if(!_0x23d551)return!0x1;let _0x35afa1=_0x490dbf[_0x4099b3(0x125)](_0x5c8999)[_0x4099b3(0x182)]();if(!_0x35afa1)return!0x1;let {range:_0x4f3146}=_0x35afa1,_0x2249f7=_0x490dbf[_0x4099b3(0x125)](_0x413077),{unitId:_0x12383a,subUnitId:_0x447015}=_0x23d551,{pieSecondaryPlotType:_0x3158f7,value:_0x190a13}=_0x342d3e,_0x35bb91=_0x3158f7!==void 0x0;if(_0x35bb91&&(_0x190a13!==_0x52497a[_0x4099b3(0x16d)]||_0x3158f7!==_0xff6f74[_0x4099b3(0x16d)]&&_0x3158f7!==_0xff6f74[_0x4099b3(0x11c)]))return!0x1;let _0x19a8c3=_0x35bb91?_0x3a6851():void 0x0;return _0x2249f7[_0x4099b3(0x19c)](_0x17d872['id'],{'unitId':_0x12383a,'subUnitId':_0x447015,'chartType':_0x190a13,..._0x19a8c3&&_0x3158f7?{'chartId':_0x19a8c3,'config':{'unitId':_0x12383a,'chartModelId':_0x19a8c3,'style':{'pie':{'composite':{'enabled':!0x0,'secondaryPlot':{'type':_0x3158f7}}}}}}:{},'source':{'rangeInfo':{'unitId':_0x12383a,'subUnitId':_0x447015,'range':_0x4f3146}}});}};function yr(_0x4ef601,_0x2a73bd){const _0x1339a8=_0x533bf2;return _0x4ef601==null||Array[_0x1339a8(0x24c)](_0x4ef601)?'':br(_0x4ef601[_0x1339a8(0xa1)],_0x2a73bd);}function br(_0x56487b,_0x4048e6){const _0x186d87=_0x533bf2;var _0x536ffd;let {unitId:_0x1b50b8,subUnitId:_0x17115a,range:_0x1d8b53}=_0x56487b,_0x5c9562=(_0x536ffd=_0x4048e6['getUnit'](_0x1b50b8))==null?void 0x0:_0x536ffd[_0x186d87(0x140)](_0x17115a);return _0x5c9562?_0x17a743(_0x5c9562['getName'](),_0x1d8b53):'';}const xr=new Set(['columnStacked',_0x533bf2(0x2d6)]),Sr=_0x2af92b['filter'](_0x14be23=>!xr['has'](_0x14be23[_0x533bf2(0x2e6)]))['map'](_0x3eda7c=>({'id':'id'in _0x3eda7c?_0x3eda7c['id']:void 0x0,'labelId':_0x3eda7c[_0x533bf2(0x2e6)],'pieSecondaryPlotType':_0x533bf2(0x1ee)in _0x3eda7c?_0x3eda7c[_0x533bf2(0x1ee)]:void 0x0,'value':_0x3eda7c[_0x533bf2(0x2b3)],'icon':_0x3eda7c[_0x533bf2(0x257)]}));function Cr(_0x1e6133=Sr){const _0x2207e5=_0x533bf2;return _0x1e6133[_0x2207e5(0x26c)](({id:_0xb6b478,icon:_0x2a27c4,value:_0xf1657b})=>{const _0x1857cf=_0x2207e5;let _0x51dc7b=_0xc80af2(_0xb6b478??String(_0xf1657b)),_0x16a03f=_0x51dc7b?{'value':_0x51dc7b[_0x1857cf(0x237)],..._0x51dc7b[_0x1857cf(0x1ee)]?{'pieSecondaryPlotType':_0x51dc7b[_0x1857cf(0x1ee)]}:{}}:{'value':_0xf1657b};return{'icon':_0x2a27c4,'value':_0xb6b478??_0xf1657b,'params':_0x16a03f};});}const wr=(_0x38ab70,_0x406bdf)=>{const _0x3dbb83=_0x533bf2;if(_0x406bdf[_0x3dbb83(0x221)]===0x1&&_0x406bdf[0x0]==='all')return _0x38ab70;if(_0x406bdf[_0x3dbb83(0x221)]>0x1){let _0x1560d1=new Set();for(let _0x3b43d4 of _0x406bdf)_0x1560d1['add'](Number(_0x3b43d4));return _0x38ab70[_0x3dbb83(0xaa)](_0xdcb334=>_0x1560d1[_0x3dbb83(0xc4)](_0xdcb334[_0x3dbb83(0x2b3)]));}return[];};function Tr(_0x3622d2){const _0x16b327=_0x533bf2;let _0x4811de=_0x3622d2[_0x16b327(0x125)](_0x371c5e),_0x3fc213=_0x4b9dc3(_0x3622d2),_0x34defa=wr(Sr[_0x16b327(0xc8)](),_0x3fc213),_0x1c873c=Cr(_0x34defa)['map']((_0x4b2a3f,_0xdc3abe)=>({'icon':_0x4b2a3f[_0x16b327(0x253)],'value':_0x4b2a3f[_0x16b327(0x2b3)],'params':_0x4b2a3f[_0x16b327(0x1c2)],'label':_0x16b327(0x195)+_0x34defa[_0xdc3abe][_0x16b327(0x2e6)]}));return{'id':vr['id'],'type':_0x1f19d7[_0x16b327(0x220)],'selectionsCommandId':vr['id'],'selections':_0x1c873c,'icon':'ChartIcon','tooltip':_0x16b327(0x278),'activated$':_0x29ec2d(_0x4811de,!0x1,()=>new _0x30312a(_0x176fb9=>{const _0x186cc5=_0x16b327;_0x176fb9[_0x186cc5(0x93)](!0x1);})),'hidden$':_0x155da9(_0x3622d2,_0x1302ff[_0x16b327(0x135)]),'disabled$':_0x56b2d5(_0x3622d2)};}function Er(_0x42d713){const _0x43d2cc=_0x533bf2;let _0xb458e0=_0x42d713['get'](_0x49382d);return _0xb458e0[_0x43d2cc(0x2f0)][_0x43d2cc(0xaf)](_0x42ba0f(_0xb458e0['getFocusDrawings']()),_0x7ff423(()=>H(_0x42d713)==null));}function Dr(_0xb84b6c){const _0x2fb14f=_0x533bf2;return{'id':mr['id'],'commandId':mr['id'],'type':_0x1f19d7[_0x2fb14f(0xb3)],'title':_0xb84b6c['get'](_0x3f8b07)['t'](_0x2fb14f(0x2f4)),'icon':_0x2fb14f(0x13c),'hidden$':Er(_0xb84b6c)};}function Or(_0x26939b){const _0x2ea683=_0x533bf2;return{'id':hr['id'],'commandId':hr['id'],'type':_0x1f19d7[_0x2ea683(0xb3)],'title':_0x26939b[_0x2ea683(0x125)](_0x3f8b07)['t']('sheets-chart-ui.common.copy'),'icon':_0x2ea683(0x23e),'hidden$':Er(_0x26939b)};}function kr(_0x5df580){const _0x555997=_0x533bf2;return{'id':gr['id'],'commandId':gr['id'],'type':_0x1f19d7[_0x555997(0xb3)],'title':_0x5df580[_0x555997(0x125)](_0x3f8b07)['t']('sheets-chart-ui.common.exportImage'),'icon':_0x555997(0x284),'hidden$':Er(_0x5df580)};}function Ar(_0x14f74c){const _0x5f3f95=_0x533bf2;return{'id':_r['id'],'commandId':_r['id'],'type':_0x1f19d7[_0x5f3f95(0xb3)],'title':_0x14f74c[_0x5f3f95(0x125)](_0x3f8b07)['t'](_0x5f3f95(0xd6)),'icon':'DeleteIcon','hidden$':Er(_0x14f74c)};}const jr={[_0x25054b[_0x533bf2(0x1bf)]]:{[vr['id']]:{'order':0x4,'menuItemFactory':Tr}},[_0x5ee795['DRAWING']]:{[_0x47d484['OTHERS']]:{[mr['id']]:{'order':0x0,'menuItemFactory':Dr},[hr['id']]:{'order':0x1,'menuItemFactory':Or},[gr['id']]:{'order':0x3,'menuItemFactory':kr},[_r['id']]:{'order':0x4,'menuItemFactory':Ar}}}};function Mr(_0x359284){const _0x33ef94=_0x533bf2;return _0x359284===_0x52497a[_0x33ef94(0x1fe)]||_0x359284===_0x52497a['Radar']||_0x359284===_0x52497a['Boxplot']||_0x49703d[_0x33ef94(0xd3)](_0x359284,_0x52497a[_0x33ef94(0x18d)])||_0x49703d[_0x33ef94(0xd3)](_0x359284,_0x52497a['Column'])||_0x49703d['baseOn'](_0x359284,_0x52497a['Area'])||_0x49703d[_0x33ef94(0xd3)](_0x359284,_0x52497a[_0x33ef94(0x9c)]);}function Nr(_0x3e8139){const _0x31f968=_0x533bf2;return Mr(_0x3e8139)||_0x49703d[_0x31f968(0xd3)](_0x3e8139,_0x52497a[_0x31f968(0x16d)])||_0x49703d[_0x31f968(0xd3)](_0x3e8139,_0x52497a[_0x31f968(0x2ce)])||_0x49703d[_0x31f968(0xd3)](_0x3e8139,_0x52497a[_0x31f968(0xa7)]);}function Pr(_0x15fe38,_0x5a829d){const _0x48855f=_0x533bf2;let _0x318e1a=_0x19ef3b(_0x15fe38,_0x5a829d),_0x2becd3=_0x318e1a?_0x44a37b(_0x318e1a[_0x48855f(0x26f)]):void 0x0;if(!(!_0x318e1a||!_0x2becd3))return{..._0x318e1a,'route':_0x2becd3,'showFloatMenu':Nr(_0x15fe38[_0x48855f(0x237)])&&_0x318e1a[_0x48855f(0x311)]};}function Fr(_0x31785f,_0x22f618=0x1){const _0xe5f8f3=_0x533bf2;return{'width':Math[_0xe5f8f3(0x1c5)](_0x22f618,_0x31785f[_0xe5f8f3(0x289)]),'height':Math[_0xe5f8f3(0x1c5)](_0x22f618,_0x31785f[_0xe5f8f3(0x10e)])};}function Ir(_0x1a7857,_0x315e48={},_0x1bb5b1={'left':0x0,'top':0x0}){const _0x36f74b=_0x533bf2;let _0x376455=_0x315e48[_0x36f74b(0xc2)]??0x1,_0x1a0f26=_0x315e48['scaleY']??0x1,_0x56ab1d=_0x546db4[_0x36f74b(0x2f2)]({'logicalOuterRect':{'left':_0x1bb5b1[_0x36f74b(0x234)]>0x0?-_0x1bb5b1['left']:0x0,'top':_0x1bb5b1['top']>0x0?-_0x1bb5b1['top']:0x0,...Fr(_0x1a7857)},'scale':{'scaleX':_0x376455,'scaleY':_0x1a0f26},'hostStyle':{},'contentMode':_0x4a77a7[_0x36f74b(0xcf)]});return{'left':_0x56ab1d['logicalOuterRect']['left'],'top':_0x56ab1d['logicalOuterRect'][_0x36f74b(0x291)],'width':_0x56ab1d['logicalOuterRect'][_0x36f74b(0x289)],'height':_0x56ab1d[_0x36f74b(0x14b)][_0x36f74b(0x10e)],'scaleX':_0x376455,'scaleY':_0x1a0f26};}function U(_0x202647){'@babel/helpers - typeof';const _0xce6383=_0x533bf2;return U=typeof Symbol==_0xce6383(0xf6)&&typeof Symbol['iterator']==_0xce6383(0x113)?function(_0x30a7e9){return typeof _0x30a7e9;}:function(_0x111410){const _0x920f4=_0xce6383;return _0x111410&&typeof Symbol=='function'&&_0x111410[_0x920f4(0x267)]===Symbol&&_0x111410!==Symbol['prototype']?_0x920f4(0x113):typeof _0x111410;},U(_0x202647);}function Lr(_0x2f2a14,_0x33ca0b){const _0x1cb5c7=_0x533bf2;if(U(_0x2f2a14)!=_0x1cb5c7(0x27a)||!_0x2f2a14)return _0x2f2a14;var _0x2fb26b=_0x2f2a14[Symbol[_0x1cb5c7(0x280)]];if(_0x2fb26b!==void 0x0){var _0x1c4e83=_0x2fb26b[_0x1cb5c7(0xc0)](_0x2f2a14,_0x33ca0b||_0x1cb5c7(0x200));if(U(_0x1c4e83)!='object')return _0x1c4e83;throw TypeError(_0x1cb5c7(0x249));}return(_0x33ca0b===_0x1cb5c7(0x188)?String:Number)(_0x2f2a14);}function Rr(_0x471c79){const _0x3082eb=_0x533bf2;var _0x24309d=Lr(_0x471c79,_0x3082eb(0x188));return U(_0x24309d)=='symbol'?_0x24309d:_0x24309d+'';}function W(_0x2577e5,_0x575dad,_0x2493a4){const _0x4a8366=_0x533bf2;return(_0x575dad=Rr(_0x575dad))in _0x2577e5?Object[_0x4a8366(0x1b1)](_0x2577e5,_0x575dad,{'value':_0x2493a4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2577e5[_0x575dad]=_0x2493a4,_0x2577e5;}function zr(_0x457b3c){const _0x3f05a9=_0x533bf2;switch(_0x457b3c['type']){case _0x1d0e55[_0x3f05a9(0x19b)]:return _0x457b3c[_0x3f05a9(0x2df)];case _0x1d0e55[_0x3f05a9(0x21b)]:return _0x457b3c['imageBitmap'];default:return;}}var Br=class extends _0x57239c{constructor(_0x16dfcb,_0x5bb119,_0xd0b122,_0x2a3be2=()=>!0x1,_0x48e886=()=>{}){const _0x1a70c4=_0x533bf2;super(_0x16dfcb,{..._0x5bb119,'evented':_0x5bb119['evented']??!0x0}),this[_0x1a70c4(0x1a3)]=_0xd0b122,this['_shouldSuppressSnapshot']=_0x2a3be2,this[_0x1a70c4(0x1e0)]=_0x48e886,W(this,_0x1a70c4(0x179),null),W(this,'_url',null),this['setObjectType'](_0x1408b1[_0x1a70c4(0x2fb)]);}['dispose'](){const _0x5ec972=_0x533bf2;this[_0x5ec972(0x1e0)](),super[_0x5ec972(0x27b)]();}[_0x533bf2(0x2ee)](_0x459f8f,_0x1b5331){const _0x37b512=_0x533bf2;if(!this[_0x37b512(0x15f)])return this['makeDirty'](!0x1),this;if(!this[_0x37b512(0x2d2)])return this;let {width:_0x3e4327,height:_0x26ae44,left:_0x4b3896,top:_0x52c80d}=this[_0x37b512(0x17a)]();if(this[_0x37b512(0x1d6)](_0x1b5331)){let {top:_0x5a9f0c,left:_0x4a4307,bottom:_0x55faa4,right:_0x54935a}=_0x1b5331[_0x37b512(0x2c2)];if(_0x3e4327+this[_0x37b512(0x131)]+_0x4b3896<_0x4a4307||_0x54935a<_0x4b3896||_0x26ae44+this['strokeWidth']+_0x52c80d<_0x5a9f0c||_0x55faa4<_0x52c80d)return this;}let _0x1a0b2a=this[_0x37b512(0x2d2)][_0x37b512(0x274)]();_0x459f8f['save']();let _0x27eb5e=_0x4b3896+_0x3e4327/0x2,_0x28b766=_0x52c80d+_0x26ae44/0x2;return _0x459f8f[_0x37b512(0x2d2)](_0x1a0b2a[0x0],_0x1a0b2a[0x1],_0x1a0b2a[0x2],_0x1a0b2a[0x3],_0x27eb5e,_0x28b766),this[_0x37b512(0x22a)]!==0x1&&(_0x459f8f[_0x37b512(0x283)]=this['opacity']),this[_0x37b512(0x227)](_0x459f8f,void 0x0,_0x3e4327,_0x26ae44),_0x459f8f[_0x37b512(0x1b7)](),this[_0x37b512(0x112)](!0x1),this;}[_0x533bf2(0x227)](_0x56948b,_0x484539,_0x26fb5f=this['width'],_0x369cee=this[_0x533bf2(0x10e)]){const _0x5ff37=_0x533bf2;this[_0x5ff37(0x22e)](_0x56948b,_0x26fb5f,_0x369cee,{'stroke':void 0x0,'strokeWidth':0x0}),this[_0x5ff37(0x180)](_0x56948b,_0x26fb5f,_0x369cee),this[_0x5ff37(0x22e)](_0x56948b,_0x26fb5f,_0x369cee,{'fill':void 0x0});}['_drawChartFrame'](_0x13a840,_0x2306dd,_0x34ffe6,_0x3074bc){const _0x374235=_0x533bf2;_0x13a840[_0x374235(0x10c)](),_0x13a840[_0x374235(0x25a)](-_0x2306dd/0x2,-_0x34ffe6/0x2),_0x57239c[_0x374235(0x2d1)](_0x13a840,Vr(this,_0x2306dd,_0x34ffe6,_0x3074bc)),_0x13a840[_0x374235(0x1b7)]();}['isHit'](_0xacdfa6){const _0x3db26e=_0x533bf2;let {left:_0x2aa51f,top:_0x389380,width:_0x3cfe70,height:_0xd4bad8}=this[_0x3db26e(0x17a)](),_0x432162=_0x2aa51f+_0x3cfe70/0x2,_0x98ca63=_0x389380+_0xd4bad8/0x2,_0xbe38bd=this[_0x3db26e(0x2d2)][_0x3db26e(0x274)](),_0x575c7d=new _0x35a5b5([_0xbe38bd[0x0],_0xbe38bd[0x1],_0xbe38bd[0x2],_0xbe38bd[0x3],_0x432162,_0x98ca63]),_0x172d20=this['getParent'](),_0x37398f=(this[_0x3db26e(0xed)]&&(_0x172d20==null?void 0x0:_0x172d20[_0x3db26e(0xfc)])===_0x534c56[_0x3db26e(0x172)]?_0x172d20[_0x3db26e(0xea)][_0x3db26e(0x217)](_0x575c7d):_0x575c7d)[_0x3db26e(0x1c3)]()[_0x3db26e(0x26d)](_0xacdfa6),_0xb7a737=_0x3cfe70/0x2,_0x5a5aed=_0xd4bad8/0x2;return _0x37398f['x']>=-_0xb7a737-this['strokeWidth']/0x2&&_0x37398f['x']<=_0xb7a737+this[_0x3db26e(0x131)]/0x2&&_0x37398f['y']>=-_0x5a5aed-this['strokeWidth']/0x2&&_0x37398f['y']<=_0x5a5aed+this[_0x3db26e(0x131)]/0x2;}[_0x533bf2(0x180)](_0x5d7c9f,_0x347ad0,_0x2557c7){const _0x5083ec=_0x533bf2;if(this[_0x5083ec(0x139)]())return;let _0x926922=this[_0x5083ec(0x1a3)](),_0x166732=_0x926922?this[_0x5083ec(0x115)](_0x926922):void 0x0;if(!_0x166732)return;let {width:_0x40bdc8,height:_0x163a6f}=Fr({'width':_0x347ad0,'height':_0x2557c7},0x0);_0x40bdc8!==0x0&&_0x163a6f!==0x0&&(_0x5d7c9f[_0x5083ec(0x10c)](),_0x5d7c9f[_0x5083ec(0x25a)](-_0x347ad0/0x2,-_0x2557c7/0x2),Hr(_0x5d7c9f,_0x40bdc8,_0x163a6f,this[_0x5083ec(0xdc)]),_0x5d7c9f[_0x5083ec(0x1c0)](),_0x5d7c9f[_0x5083ec(0x15a)](_0x166732,0x0,0x0,_0x40bdc8,_0x163a6f),_0x5d7c9f['restore']());}[_0x533bf2(0x115)](_0x203714){const _0x4ba414=_0x533bf2;var _0x1a54b6;let _0x152a3e=zr(_0x203714);if(_0x152a3e)return _0x152a3e;if(_0x203714['type']===_0x1d0e55[_0x4ba414(0x21a)]&&(this['_url']!==_0x203714[_0x4ba414(0x1be)]&&(this[_0x4ba414(0x9a)]=_0x203714[_0x4ba414(0x1be)],this[_0x4ba414(0x179)]=document[_0x4ba414(0xe1)](_0x4ba414(0x1d1)),this[_0x4ba414(0x179)][_0x4ba414(0x97)]='anonymous',this[_0x4ba414(0x179)][_0x4ba414(0xce)]=()=>this[_0x4ba414(0x112)](!0x0),this[_0x4ba414(0x179)][_0x4ba414(0x21c)]=_0x203714[_0x4ba414(0x1be)]),(_0x1a54b6=this[_0x4ba414(0x179)])!=null&&_0x1a54b6[_0x4ba414(0x193)]&&this[_0x4ba414(0x179)]['naturalWidth']>0x0&&this[_0x4ba414(0x179)][_0x4ba414(0x101)]>0x0))return this['_urlImage'];}};function Vr(_0x6656f0,_0x550785,_0x5dbe7d,_0x29cd7b){const _0xe3ecde=_0x533bf2;let _0x47acc9=Object[_0xe3ecde(0x2ab)](_0x6656f0);return Object[_0xe3ecde(0x1b1)](_0x47acc9,_0xe3ecde(0x289),{'value':_0x550785}),Object[_0xe3ecde(0x1b1)](_0x47acc9,_0xe3ecde(0x10e),{'value':_0x5dbe7d}),Object[_0xe3ecde(0x247)](_0x29cd7b)[_0xe3ecde(0x1cf)](_0x55b507=>{const _0x12d9ac=_0xe3ecde;Object[_0x12d9ac(0x1b1)](_0x47acc9,_0x55b507,{'value':_0x29cd7b[_0x55b507]});}),_0x47acc9;}function Hr(_0xa4ed80,_0x36b6fe,_0xeb136e,_0x479711){const _0x116e56=_0x533bf2;let _0x9564be=Math[_0x116e56(0x1fb)](_0x479711||0x0,_0x36b6fe/0x2,_0xeb136e/0x2);if(_0xa4ed80[_0x116e56(0x211)](),!_0x9564be){_0xa4ed80[_0x116e56(0x11a)](0x0,0x0,_0x36b6fe,_0xeb136e),_0xa4ed80[_0x116e56(0x2d4)]();return;}_0xa4ed80['moveTo'](_0x9564be,0x0),_0xa4ed80[_0x116e56(0x225)](_0x36b6fe-_0x9564be,0x0),_0xa4ed80[_0x116e56(0xe7)](_0x36b6fe-_0x9564be,_0x9564be,_0x9564be,Math['PI']*0x3/0x2,0x0,!0x1),_0xa4ed80[_0x116e56(0x225)](_0x36b6fe,_0xeb136e-_0x9564be),_0xa4ed80[_0x116e56(0xe7)](_0x36b6fe-_0x9564be,_0xeb136e-_0x9564be,_0x9564be,0x0,Math['PI']/0x2,!0x1),_0xa4ed80['lineTo'](_0x9564be,_0xeb136e),_0xa4ed80[_0x116e56(0xe7)](_0x9564be,_0xeb136e-_0x9564be,_0x9564be,Math['PI']/0x2,Math['PI'],!0x1),_0xa4ed80[_0x116e56(0x225)](0x0,_0x9564be),_0xa4ed80['arc'](_0x9564be,_0x9564be,_0x9564be,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xa4ed80[_0x116e56(0x2d4)]();}function G(_0x20ac13){const _0x269964=_0x533bf2;(_0x20ac13==null?void 0x0:_0x20ac13['type'])===_0x1d0e55['ImageBitmap']&&_0x20ac13['imageBitmap'][_0x269964(0x2a2)]();}function _0x4f81(_0x4cce69,_0x3e4a58){_0x4cce69=_0x4cce69-0x8c;const _0x4eac2e=_0x4eac();let _0x4f817e=_0x4eac2e[_0x4cce69];return _0x4f817e;}function K(_0x3ff21f){const _0xd20db5=_0x533bf2;return _0x3ff21f[_0xd20db5(0x17e)]+_0xd20db5(0xd4)+_0x3ff21f[_0xd20db5(0x1f7)]+_0xd20db5(0xd4)+_0x3ff21f[_0xd20db5(0xbe)];}var Ur=class extends _0x1b05ef{constructor(..._0x43b912){const _0x11ae05=_0x533bf2;super(..._0x43b912),W(this,_0x11ae05(0x124),new Map());}[_0x533bf2(0x1dc)](_0x27a67c){const _0x21f1ae=_0x533bf2;let _0x79ae6e=K(_0x27a67c),_0x4fb022=this[_0x21f1ae(0x124)][_0x21f1ae(0x125)](_0x79ae6e)??{'version':0x0};return _0x4fb022[_0x21f1ae(0x24b)]+=0x1,this['_entries'][_0x21f1ae(0x1aa)](_0x79ae6e,_0x4fb022),_0x4fb022[_0x21f1ae(0x24b)];}['isLatest'](_0x50d18e,_0x44e51e){var _0x117d0f;return((_0x117d0f=this['_entries']['get'](K(_0x50d18e)))==null?void 0x0:_0x117d0f['version'])===_0x44e51e;}['setImage'](_0xc8c083,_0x2b906b,_0x5006fe){const _0x355ede=_0x533bf2;if(!this['isLatest'](_0xc8c083,_0x5006fe))return G(_0x2b906b),!0x1;let _0x448af5=K(_0xc8c083),_0x4e5647=this['_entries'][_0x355ede(0x125)](_0x448af5)??{'version':_0x5006fe},_0x1d2d4c=_0x4e5647[_0x355ede(0x155)];return _0x4e5647[_0x355ede(0x155)]=_0x2b906b,_0x4e5647['version']=_0x5006fe,this[_0x355ede(0x124)][_0x355ede(0x1aa)](_0x448af5,_0x4e5647),_0x1d2d4c!==_0x2b906b&&G(_0x1d2d4c),!0x0;}[_0x533bf2(0x133)](_0x14825b){const _0x3cf418=_0x533bf2;var _0x2e87b3;return(_0x2e87b3=this['_entries'][_0x3cf418(0x125)](K(_0x14825b)))==null?void 0x0:_0x2e87b3[_0x3cf418(0x155)];}[_0x533bf2(0x2b1)](_0x5afa02){const _0x4cabe6=_0x533bf2;let _0x1c30be=K(_0x5afa02),_0xae829d=this[_0x4cabe6(0x124)][_0x4cabe6(0x125)](_0x1c30be);_0xae829d&&(G(_0xae829d[_0x4cabe6(0x155)]),this[_0x4cabe6(0x124)][_0x4cabe6(0x1fd)](_0x1c30be));}[_0x533bf2(0xe8)](_0x56e164){const _0x5ea078=_0x533bf2;for(let [_0x368655,_0x19d0fc]of this['_entries'])_0x368655[_0x5ea078(0x1da)](_0x5ea078(0xd4)+_0x56e164)&&(G(_0x19d0fc[_0x5ea078(0x155)]),this[_0x5ea078(0x124)]['delete'](_0x368655));}[_0x533bf2(0x27b)](){const _0x3844bd=_0x533bf2;this[_0x3844bd(0x124)][_0x3844bd(0x1cf)](_0x151c00=>G(_0x151c00[_0x3844bd(0x155)])),this[_0x3844bd(0x124)][_0x3844bd(0x13e)](),super[_0x3844bd(0x27b)]();}};function Wr(_0x5e45f6,_0x18325b=0x7d0){let _0xebe3f7=null,_0x477934=null,_0x1410ab=!0x1,_0x464e8e=()=>{},_0x2e4cea=()=>{_0xebe3f7!=null&&(clearInterval(_0xebe3f7),_0xebe3f7=null),_0x477934!=null&&(clearTimeout(_0x477934),_0x477934=null);};return{'promise':new Promise((_0x27d413,_0xf2d3b9)=>{_0x464e8e=_0xf2d3b9;let _0x38dcbb=()=>{const _0x551544=_0x4f81;let _0x95b8ab=document[_0x551544(0x206)](_0x5e45f6);!_0x95b8ab||_0x1410ab||(_0x1410ab=!0x0,_0x2e4cea(),_0x27d413(_0x95b8ab));};_0x38dcbb(),!_0x1410ab&&(_0xebe3f7=setInterval(_0x38dcbb,16.666666666666668),_0x477934=setTimeout(()=>{const _0x73df66=_0x4f81;_0x1410ab||(_0x1410ab=!0x0,_0x2e4cea(),_0xf2d3b9(Error(_0x73df66(0x14c)+_0x5e45f6+'\x22.')));},_0x18325b));}),'cancel':()=>{_0x1410ab||(_0x1410ab=!0x0,_0x2e4cea(),_0x464e8e(Error('Canceled\x20waiting\x20for\x20float\x20dom\x20host\x20\x22'+_0x5e45f6+'\x22.')));}};}var Gr=class extends _0x1b05ef{constructor(_0x1a85ee,_0x3a51fb,_0x2823ea,_0xbef5df,_0x56d9e2,_0x467f52,_0x5c87ba){const _0x391adc=_0x533bf2;super(),this[_0x391adc(0xbe)]=_0x1a85ee,this[_0x391adc(0x254)]=_0x3a51fb,this[_0x391adc(0x127)]=_0x2823ea,this[_0x391adc(0x1b0)]=_0xbef5df,this['_isProviderDisposed']=_0x56d9e2,this[_0x391adc(0x231)]=_0x467f52,this['_markNotReady']=_0x5c87ba,W(this,_0x391adc(0x2c8),_0x41159f[_0x391adc(0x144)]),W(this,_0x391adc(0x2b7),null),W(this,'_managed',!0x1),W(this,_0x391adc(0x255),null),W(this,_0x391adc(0x136),null),W(this,_0x391adc(0x293),null),W(this,_0x391adc(0x91),{}),W(this,_0x391adc(0x1b9),null),W(this,'_drawingGeometry',null);}[_0x533bf2(0x2e8)](){const _0x107f25=_0x533bf2;return this[_0x107f25(0xd0)];}['markUnmanaged'](){const _0x3857fd=_0x533bf2;this[_0x3857fd(0xd0)]=!0x1;}[_0x533bf2(0x207)](){const _0x2fa451=_0x533bf2;let _0xe7738d=this['_getPlacement']();return _0xe7738d?{'width':_0xe7738d[_0x2fa451(0x289)],'height':_0xe7738d['height']}:null;}[_0x533bf2(0x279)](_0x45a35d){const _0x4ff4e5=_0x533bf2;this[_0x4ff4e5(0x91)]=_0x45a35d,this[_0x4ff4e5(0x1b0)](_0x45a35d),this['_applyHostStyle']();}async[_0x533bf2(0x191)](){const _0x3934ef=_0x533bf2;if(this['_disposed']||this[_0x3934ef(0x176)]())throw Error(_0x3934ef(0x175));let _0xdf83f3=this[_0x3934ef(0x254)](),_0x3a7cf2=(_0xdf83f3==null?void 0x0:_0xdf83f3[_0x3934ef(0x1bc)])??this[_0x3934ef(0xbe)],_0x20c5dc=document[_0x3934ef(0x206)](_0x3a7cf2);if(this[_0x3934ef(0x2b7)]&&_0x20c5dc!=null&&_0x20c5dc[_0x3934ef(0x223)](this[_0x3934ef(0x2b7)][_0x3934ef(0x143)]))return{'mountNode':this[_0x3934ef(0x2b7)][_0x3934ef(0x143)],'dispose':()=>{const _0x3ac26f=_0x3934ef;this[_0x3ac26f(0x27b)](),_0xdf83f3==null||_0xdf83f3[_0x3ac26f(0x27b)]['dispose']();}};if(this[_0x3934ef(0x136)])return this['_pendingHost'];let _0x2af624=this[_0x3934ef(0x22b)]();return this[_0x3934ef(0x136)]=_0x2af624,_0x2af624['then'](()=>{const _0x3dc3fa=_0x3934ef;this[_0x3dc3fa(0x136)]===_0x2af624&&(this[_0x3dc3fa(0x136)]=null);},()=>{const _0xd1a3c4=_0x3934ef;this[_0xd1a3c4(0x136)]===_0x2af624&&(this['_pendingHost']=null);}),_0x2af624;}async['ensureMount'](){const _0x48d360=_0x533bf2;try{return(await this['ensureHandle']())[_0x48d360(0x143)];}catch{return null;}}[_0x533bf2(0x1d9)](){const _0x505b2d=_0x533bf2;let _0xf3d6a5=this[_0x505b2d(0x254)](),_0x36d672=(_0xf3d6a5==null?void 0x0:_0xf3d6a5[_0x505b2d(0x1bc)])??this[_0x505b2d(0xbe)],_0x1aae0c=document[_0x505b2d(0x206)](_0x36d672);return!!(this[_0x505b2d(0x2b7)]&&_0x1aae0c!=null&&_0x1aae0c[_0x505b2d(0x223)](this[_0x505b2d(0x2b7)][_0x505b2d(0x143)]));}[_0x533bf2(0x301)](){const _0x24bacf=_0x533bf2;if(!this[_0x24bacf(0x2b7)])return;let _0x1b968d=this['_getPlacement']();_0x1b968d&&(this['_drawingGeometry']=this[_0x24bacf(0x2cf)](),this['_domFrame']['update'](this[_0x24bacf(0x2e9)](_0x1b968d),this[_0x24bacf(0x2fa)]()));}[_0x533bf2(0xa2)](){const _0xc6b300=_0x533bf2;this[_0xc6b300(0x231)]();}[_0x533bf2(0x2a7)](){const _0x514a5c=_0x533bf2;this[_0x514a5c(0x2a4)]();}['dispose'](){const _0x12086d=_0x533bf2;var _0x5b3aee;this['_disposed']||(this[_0x12086d(0x2a7)](),this['_pendingToken']=null,this[_0x12086d(0x136)]=null,this[_0x12086d(0x2b5)](),this[_0x12086d(0xd0)]=!0x1,(_0x5b3aee=this[_0x12086d(0x2b7)])==null||_0x5b3aee[_0x12086d(0x27b)](),this[_0x12086d(0x2b7)]=null,this[_0x12086d(0x10d)]=null,this[_0x12086d(0x26e)](),super[_0x12086d(0x27b)]());}async[_0x533bf2(0x22b)](){const _0x1a61e7=_0x533bf2;let _0x236de7=this['_getFloatDomInfo']();if(!_0x236de7)throw Error(_0x1a61e7(0x175));let _0x237f17=_0x236de7[_0x1a61e7(0x1bc)]??this['chartId'],_0xc3a28f=Wr(_0x237f17),_0x2a0fcc=Symbol(this[_0x1a61e7(0xbe)]);this['_pendingToken']=_0x2a0fcc,this[_0x1a61e7(0x293)]=_0xc3a28f;try{let _0x6b3829=await _0xc3a28f[_0x1a61e7(0x100)],_0xee119a=this[_0x1a61e7(0x254)](),_0x25907f=(_0xee119a==null?void 0x0:_0xee119a['domId'])??this[_0x1a61e7(0xbe)];if(this[_0x1a61e7(0x2bb)]||this[_0x1a61e7(0x176)]()||this[_0x1a61e7(0x255)]!==_0x2a0fcc||!_0xee119a||_0x25907f!==_0x237f17||document[_0x1a61e7(0x206)](_0x237f17)!==_0x6b3829||!_0x6b3829[_0x1a61e7(0x16c)])throw Error('Fail\x20to\x20create\x20float\x20dom');let _0x5c9000=this[_0x1a61e7(0x127)]();if(!_0x5c9000)throw Error(_0x1a61e7(0x175));let _0x59c6ba=new _0x466713(_0x6b3829);return _0x59c6ba[_0x1a61e7(0x14e)](this['_resolveLayout'](_0x5c9000),this[_0x1a61e7(0x2fa)]()),this[_0x1a61e7(0xf9)](_0x6b3829),this['_domFrame']=_0x59c6ba,this[_0x1a61e7(0x10d)]=this['_getDrawingGeometry'](),this['disposeWithMe'](_0xee119a['position$'][_0x1a61e7(0x28f)](()=>this[_0x1a61e7(0xb7)]())),this[_0x1a61e7(0xd0)]=!0x0,{'mountNode':_0x59c6ba[_0x1a61e7(0x143)],'dispose':()=>{const _0x32c635=_0x1a61e7;this[_0x32c635(0x27b)](),_0x236de7['dispose'][_0x32c635(0x27b)]();}};}finally{this[_0x1a61e7(0x293)]===_0xc3a28f&&(this[_0x1a61e7(0x293)]=null),this[_0x1a61e7(0x255)]===_0x2a0fcc&&(this[_0x1a61e7(0x255)]=null);}}[_0x533bf2(0x2b5)](){const _0x4f7dd9=_0x533bf2;let _0x5d6b72=this[_0x4f7dd9(0x293)];_0x5d6b72&&(_0x5d6b72[_0x4f7dd9(0x30a)](),this[_0x4f7dd9(0x293)]=null);}[_0x533bf2(0x1a1)](){const _0x1e0d99=_0x533bf2;let _0x528ed6=this['_getPlacement']();this[_0x1e0d99(0x2b7)]&&_0x528ed6&&this['_domFrame'][_0x1e0d99(0x14e)](this['_resolveLayout'](_0x528ed6),this['_frameStyle']());}['_syncLayoutOnDrawingTransform'](){const _0x3c223a=_0x533bf2;let _0x2feabc=this['_getDrawingGeometry'](),_0x451c1d=this['_drawingGeometry'];!_0x2feabc||_0x451c1d&&_0x451c1d[_0x3c223a(0x234)]===_0x2feabc[_0x3c223a(0x234)]&&_0x451c1d[_0x3c223a(0x291)]===_0x2feabc[_0x3c223a(0x291)]&&_0x451c1d[_0x3c223a(0x289)]===_0x2feabc[_0x3c223a(0x289)]&&_0x451c1d[_0x3c223a(0x10e)]===_0x2feabc[_0x3c223a(0x10e)]||(this[_0x3c223a(0x10d)]=_0x2feabc,this[_0x3c223a(0x301)]());}[_0x533bf2(0x2cf)](){const _0x45e2cf=_0x533bf2;var _0x44308c;let _0x1c57bc=(_0x44308c=this['_getFloatDomInfo']())==null?void 0x0:_0x44308c[_0x45e2cf(0x11a)];return _0x1c57bc?{'left':_0x1c57bc[_0x45e2cf(0x234)],'top':_0x1c57bc[_0x45e2cf(0x291)],'width':_0x1c57bc[_0x45e2cf(0x289)],'height':_0x1c57bc[_0x45e2cf(0x10e)]}:null;}[_0x533bf2(0x2e9)](_0x1b04ed){const _0x4eebd8=_0x533bf2;return _0x546db4[_0x4eebd8(0x2f2)]({'logicalOuterRect':{'left':_0x1b04ed[_0x4eebd8(0x234)],'top':_0x1b04ed['top'],'width':_0x1b04ed[_0x4eebd8(0x289)],'height':_0x1b04ed[_0x4eebd8(0x10e)]},'scale':{'scaleX':_0x1b04ed[_0x4eebd8(0xc2)],'scaleY':_0x1b04ed['scaleY']},'hostStyle':this['_frameStyle'](),'contentMode':_0x4a77a7[_0x4eebd8(0xcf)]});}[_0x533bf2(0x2fa)](){return{...this['_hostStyle'],'radius':_0x5a398f};}['_activateHostWrapper'](_0x32e5e4){const _0x437a1a=_0x533bf2;let _0x50ef30=_0x32e5e4[_0x437a1a(0xa5)];_0x50ef30&&(this['_savedWrapperStyle']||={'zIndex':_0x50ef30[_0x437a1a(0x1c9)][_0x437a1a(0x235)],'pointerEvents':_0x50ef30[_0x437a1a(0x1c9)][_0x437a1a(0xa6)]},_0x50ef30[_0x437a1a(0x1c9)]['zIndex']=_0x437a1a(0x25d),_0x50ef30[_0x437a1a(0x1c9)][_0x437a1a(0xa6)]=_0x437a1a(0x1af));}[_0x533bf2(0x26e)](){const _0x1edd3b=_0x533bf2;var _0x171469;if(!this[_0x1edd3b(0x1b9)])return;let _0x39a2af=this[_0x1edd3b(0x254)](),_0x4db5a8=(_0x39a2af==null?void 0x0:_0x39a2af[_0x1edd3b(0x1bc)])??this[_0x1edd3b(0xbe)],_0x2f3b51=(_0x171469=document[_0x1edd3b(0x206)](_0x4db5a8))==null?void 0x0:_0x171469[_0x1edd3b(0xa5)];_0x2f3b51&&(_0x2f3b51[_0x1edd3b(0x1c9)][_0x1edd3b(0x235)]=this[_0x1edd3b(0x1b9)][_0x1edd3b(0x235)],_0x2f3b51['style'][_0x1edd3b(0xa6)]=this[_0x1edd3b(0x1b9)][_0x1edd3b(0xa6)]),this['_savedWrapperStyle']=null;}},Kr=class extends _0xa3de1f{constructor(_0x1ad6b6,_0x1ebbab,_0x582e8a,_0x4b14d5,_0x393c03,_0x559989){const _0x4dd8a6=_0x533bf2;super(_0x1ad6b6),this[_0x4dd8a6(0x1ed)]=_0x1ebbab,this[_0x4dd8a6(0x1b0)]=_0x582e8a,this[_0x4dd8a6(0x142)]=_0x4b14d5,this[_0x4dd8a6(0x9e)]=_0x393c03,this[_0x4dd8a6(0x1e1)]=_0x559989;}[_0x533bf2(0x207)](){const _0x1858a0=_0x533bf2;let _0x31385a=this[_0x1858a0(0x1ed)]();return _0x31385a?Fr(_0x31385a):null;}[_0x533bf2(0x279)](_0x5ad67a){const _0x189374=_0x533bf2;this[_0x189374(0x1b0)](_0x5ad67a);}['nextVersion'](){const _0x391af0=_0x533bf2;return this['_snapshotStore'][_0x391af0(0x1dc)](this[_0x391af0(0x142)]);}[_0x533bf2(0x134)](_0x46533d,_0x134322){const _0x1e0b14=_0x533bf2;return this[_0x1e0b14(0x9e)][_0x1e0b14(0x126)](this[_0x1e0b14(0x142)],_0x46533d,_0x134322);}['requestPaint'](){const _0x523e13=_0x533bf2;this[_0x523e13(0x1e1)]();}[_0x533bf2(0x99)](){this['_snapshotStore']['nextVersion'](this['_snapshotKey']);}};function q(_0xf6a304,_0x3132e6){return function(_0x22bbb0,_0x58f118){_0x3132e6(_0x22bbb0,_0x58f118,_0xf6a304);};}function J(_0x59beaf,_0x3d96bd,_0x193a30,_0x28d06b){const _0x29aa90=_0x533bf2;var _0x4ba988=arguments['length'],_0x693e80=_0x4ba988<0x3?_0x3d96bd:_0x28d06b===null?_0x28d06b=Object[_0x29aa90(0x1d0)](_0x3d96bd,_0x193a30):_0x28d06b,_0x1aa85a;if(typeof Reflect==_0x29aa90(0x27a)&&typeof Reflect[_0x29aa90(0x2b6)]==_0x29aa90(0xf6))_0x693e80=Reflect[_0x29aa90(0x2b6)](_0x59beaf,_0x3d96bd,_0x193a30,_0x28d06b);else{for(var _0x20df92=_0x59beaf[_0x29aa90(0x221)]-0x1;_0x20df92>=0x0;_0x20df92--)(_0x1aa85a=_0x59beaf[_0x20df92])&&(_0x693e80=(_0x4ba988<0x3?_0x1aa85a(_0x693e80):_0x4ba988>0x3?_0x1aa85a(_0x3d96bd,_0x193a30,_0x693e80):_0x1aa85a(_0x3d96bd,_0x193a30))||_0x693e80);}return _0x4ba988>0x3&&_0x693e80&&Object[_0x29aa90(0x1b1)](_0x3d96bd,_0x193a30,_0x693e80),_0x693e80;}function qr(_0x19c3a5){const _0x357f13=_0x533bf2;if(!Object[_0x357f13(0x222)][_0x357f13(0x177)][_0x357f13(0xc0)](_0x19c3a5,_0x357f13(0x2bc)))return _0x19c3a5;let {border:_0x4161e5,..._0x36d084}=_0x19c3a5;return{..._0x36d084,'stroke':(_0x4161e5==null?void 0x0:_0x4161e5['color'])??'transparent','strokeWidth':(_0x4161e5==null?void 0x0:_0x4161e5[_0x357f13(0x289)])??0x0};}let Jr=class extends _0x1b05ef{constructor(_0x1081d8,_0x25d040,_0x28e4a2,_0x17c392){const _0x30a192=_0x533bf2;super(),this[_0x30a192(0x106)]=_0x1081d8,this['_renderManagerService']=_0x25d040,this['_chartSnapshotStoreService']=_0x28e4a2,this[_0x30a192(0x30c)]=_0x17c392,W(this,_0x30a192(0x2c4),new Map()),W(this,_0x30a192(0x260),new Set()),W(this,_0x30a192(0x1f8),new _0x31f8bb()),W(this,_0x30a192(0x20b),this[_0x30a192(0x1f8)][_0x30a192(0x2ae)]()),this[_0x30a192(0x269)](this[_0x30a192(0x106)][_0x30a192(0x26b)]['subscribe'](_0xae9882=>{const _0x478da4=_0x30a192;let _0x4b6998=this[_0x478da4(0x2c4)][_0x478da4(0x125)](_0xae9882['id']);_0x4b6998!=null&&_0x4b6998[_0x478da4(0x2e8)]()&&(_0x4b6998['markUnmanaged'](),this[_0x478da4(0x1f8)][_0x478da4(0x93)](_0xae9882['id']));}));}[_0x533bf2(0x30f)](_0xdac3c2){const _0x8f3a5d=_0x533bf2;if(_0xdac3c2==null)return;let _0x56786c=this[_0x8f3a5d(0x2a9)][_0x8f3a5d(0x27c)](_0xdac3c2),_0x366b55=_0x56786c==null?void 0x0:_0x56786c[_0x8f3a5d(0x244)];return _0x56786c==null||_0x366b55==null?null:{'scene':_0x366b55,'transformer':_0x366b55['getTransformerByCreate'](),'renderUnit':_0x56786c,'canvas':_0x56786c[_0x8f3a5d(0x2f8)][_0x8f3a5d(0x230)]()};}[_0x533bf2(0x2a3)](_0x3a0f83,_0x39f5ba){const _0x11c7fe=_0x533bf2;let _0x34be6a=this[_0x11c7fe(0x106)],_0x1ea54e=_0x39f5ba||_0x11c7fe(0x8e),_0x51dd79=_0x34be6a[_0x11c7fe(0x20c)](_0x3a0f83);if(_0x51dd79){let {unitId:_0x4e9987,subUnitId:_0x2cb7c3}=_0x51dd79;_0x34be6a[_0x11c7fe(0x16b)](_0x4e9987,_0x2cb7c3,_0x3a0f83,{'stroke':_0x1ea54e});}}['setHostStyle'](_0x43d3fb,_0x4a419e){const _0x16dc39=_0x533bf2;let _0x15bb18=this['_sheetCanvasFloatDomManagerService'],_0xa0f580=_0x15bb18[_0x16dc39(0x20c)](_0x43d3fb);if(_0xa0f580){let {unitId:_0x2fef02,subUnitId:_0x3f5056}=_0xa0f580;_0x15bb18[_0x16dc39(0x16b)](_0x2fef02,_0x3f5056,_0x43d3fb,qr(_0x4a419e));}}[_0x533bf2(0x1e7)](_0x17dad0){const _0x4d7227=_0x533bf2;let _0x73dcb0=this[_0x4d7227(0x106)][_0x4d7227(0x20c)](_0x17dad0);return _0x73dcb0?_0x73dcb0['rect']:null;}[_0x533bf2(0x108)](_0x2e28ee){const _0x471dce=_0x533bf2;var _0x4f28b0;return((_0x4f28b0=this[_0x471dce(0x2c4)][_0x471dce(0x125)](_0x2e28ee))==null?void 0x0:_0x4f28b0[_0x471dce(0x1d9)]())??!0x1;}['syncHostLayout'](_0x37db88){const _0x118759=_0x533bf2;var _0xecf6af;(_0xecf6af=this[_0x118759(0x2c4)]['get'](_0x37db88))==null||_0xecf6af['syncLayout']();}['removeHost'](_0x5ae353){const _0x488b6e=_0x533bf2;let _0xe9eff3=this['_chartHostMap'][_0x488b6e(0x125)](_0x5ae353);_0xe9eff3==null||_0xe9eff3[_0x488b6e(0x27b)](),this[_0x488b6e(0x2c4)][_0x488b6e(0x1fd)](_0x5ae353);}async[_0x533bf2(0x145)](_0x5dba13,_0x4fd40f){const _0xe4607e=_0x533bf2;if(_0x4fd40f===_0x41159f[_0xe4607e(0x129)])return this['_createImageChartHost'](_0x5dba13);if(_0x4fd40f===_0x41159f[_0xe4607e(0x144)])return this[_0xe4607e(0x300)](_0x5dba13);let _0x3e68b8=this['_getOrCreateSheetChartHost'](_0x5dba13);if(!_0x3e68b8)throw Error(_0xe4607e(0x175));return _0x3e68b8[_0xe4607e(0x191)]();}[_0x533bf2(0xa4)](_0x4e8e41){const _0x450dc3=_0x533bf2;var _0x1dec2c;return this[_0x450dc3(0x260)]['has'](_0x4e8e41)?(_0x1dec2c=this['_chartHostMap']['get'](_0x4e8e41))!=null&&_0x1dec2c[_0x450dc3(0x1d9)]()?!0x0:(this[_0x450dc3(0x260)][_0x450dc3(0x1fd)](_0x4e8e41),!0x1):!0x1;}[_0x533bf2(0x197)](_0x230e53){const _0x3ae57f=_0x533bf2;this[_0x3ae57f(0x260)][_0x3ae57f(0x1fd)](_0x230e53)&&this['_requestChartCanvasRender'](_0x230e53);}['invalidateSnapshot'](_0x13e8ad){const _0x4738f6=_0x533bf2;let _0x34d0af=this[_0x4738f6(0x122)](_0x13e8ad);_0x34d0af&&this[_0x4738f6(0x2f6)][_0x4738f6(0x1dc)](_0x34d0af);}['_createImageChartHost'](_0x574851){const _0x21fa92=_0x533bf2;let _0x4fe1a4=this[_0x21fa92(0x122)](_0x574851);return!_0x4fe1a4||!this['getHostSize'](_0x574851)?null:new Kr(_0x574851,()=>this[_0x21fa92(0x1e7)](_0x574851),_0x44ea23=>this[_0x21fa92(0x102)](_0x574851,_0x44ea23),_0x4fe1a4,this[_0x21fa92(0x2f6)],()=>this[_0x21fa92(0x292)](_0x574851));}[_0x533bf2(0x300)](_0x20bd6b){const _0x552608=_0x533bf2;if(!this[_0x552608(0x1e7)](_0x20bd6b))return null;this[_0x552608(0x30c)][_0x552608(0x2e1)](_0x20bd6b,{'contentBox':{'wrapperInset':0x0,'contentInset':0x0}});let _0x2492c3=this['_chartHostMap']['get'](_0x20bd6b);if(_0x2492c3)return _0x2492c3;let _0x228d0e=new Gr(_0x20bd6b,()=>this[_0x552608(0x106)][_0x552608(0x20c)](_0x20bd6b),()=>this[_0x552608(0x25f)](_0x20bd6b),_0x492490=>this[_0x552608(0x102)](_0x20bd6b,_0x492490),()=>this[_0x552608(0x2bb)],()=>this['_markHostReady'](_0x20bd6b),()=>this[_0x552608(0x197)](_0x20bd6b));return this[_0x552608(0x2c4)]['set'](_0x20bd6b,_0x228d0e),_0x228d0e;}[_0x533bf2(0x2a1)](_0xb06a6e){const _0x23ad17=_0x533bf2;this[_0x23ad17(0x260)][_0x23ad17(0xc4)](_0xb06a6e)||(this['_activeDomReadyChartIds'][_0x23ad17(0x2db)](_0xb06a6e),this[_0x23ad17(0x292)](_0xb06a6e));}[_0x533bf2(0x122)](_0x2a3936){const _0x22f33f=_0x533bf2;let _0x2a6979=this[_0x22f33f(0x106)][_0x22f33f(0x20c)](_0x2a3936);return _0x2a6979?{'unitId':_0x2a6979[_0x22f33f(0x17e)],'subUnitId':_0x2a6979[_0x22f33f(0x1f7)],'chartId':_0x2a3936}:null;}['_requestChartCanvasRender'](_0x45258e){const _0x1955ef=_0x533bf2;var _0x2bfaca,_0x597912,_0x8a3e58;let _0x45aa31=this['_sheetCanvasFloatDomManagerService']['getFloatDomInfo'](_0x45258e);if(!_0x45aa31)return;let _0x27f0c1=(_0x2bfaca=this[_0x1955ef(0x2a9)][_0x1955ef(0x27c)](_0x45aa31[_0x1955ef(0x17e)]))==null?void 0x0:_0x2bfaca[_0x1955ef(0x244)],_0x1a4797=(_0x27f0c1==null||(_0x597912=_0x27f0c1['getObjectIncludeInGroup'])==null?void 0x0:_0x597912[_0x1955ef(0xc0)](_0x27f0c1,_0x57c728({'unitId':_0x45aa31['unitId'],'subUnitId':_0x45aa31['subUnitId'],'drawingId':_0x45258e})))??(_0x27f0c1==null?void 0x0:_0x27f0c1[_0x1955ef(0xb5)](_0x57c728({'unitId':_0x45aa31['unitId'],'subUnitId':_0x45aa31[_0x1955ef(0x1f7)],'drawingId':_0x45258e})))??null;_0x1a4797==null||(_0x8a3e58=_0x1a4797['makeDirty'])==null||_0x8a3e58['call'](_0x1a4797,!0x0),_0x27f0c1==null||_0x27f0c1[_0x1955ef(0x112)](!0x0);}[_0x533bf2(0x25f)](_0x5d97d8){const _0x368c13=_0x533bf2;let _0x21b2e8=this[_0x368c13(0x106)][_0x368c13(0x20c)](_0x5d97d8);if(!_0x21b2e8)return null;let _0x1d6539=this[_0x368c13(0x30f)](_0x21b2e8[_0x368c13(0x17e)]),_0x4608aa=_0x1d6539==null?void 0x0:_0x1d6539[_0x368c13(0x244)],_0x1f9498=document[_0x368c13(0x206)](_0x21b2e8[_0x368c13(0x1bc)]??_0x5d97d8);return Ir(_0x21b2e8[_0x368c13(0x11a)],{'scaleX':(_0x4608aa==null?void 0x0:_0x4608aa[_0x368c13(0xc2)])??0x1,'scaleY':(_0x4608aa==null?void 0x0:_0x4608aa[_0x368c13(0x19d)])??0x1},_0x1f9498?{'left':_0x1f9498[_0x368c13(0x2be)],'top':_0x1f9498[_0x368c13(0x21f)]}:void 0x0);}[_0x533bf2(0x27b)](){const _0x5836e4=_0x533bf2;this[_0x5836e4(0x2bb)]||(this[_0x5836e4(0x2c4)][_0x5836e4(0x1cf)](_0x51e349=>_0x51e349[_0x5836e4(0x27b)]()),this[_0x5836e4(0x2c4)][_0x5836e4(0x13e)](),this[_0x5836e4(0x260)]['clear'](),this['_removeHost$'][_0x5836e4(0x193)](),super[_0x5836e4(0x27b)]());}};Jr=J([q(0x0,_0x28410f(_0x10c864)),q(0x1,_0x28410f(_0x4c69ff)),q(0x2,_0x28410f(Ur)),q(0x3,_0x28410f(_0x9c432f))],Jr);const Yr=_0x396891('sheets-chart-ui.host.provider'),Y=_0x396891(_0x533bf2(0x30d));let Xr=class extends _0xee89a9{constructor(_0x33599e,_0x3a5e78,_0x36eece,_0x2a6520,_0x218c32,_0x1a51ff){const _0x5d0a2f=_0x533bf2;super(_0x1a51ff),this[_0x5d0a2f(0x2d7)]=_0x33599e,this[_0x5d0a2f(0x168)]=_0x3a5e78,this[_0x5d0a2f(0x90)]=_0x36eece,this[_0x5d0a2f(0x1e9)]=_0x2a6520,this[_0x5d0a2f(0x19e)]=_0x218c32,W(this,_0x5d0a2f(0x107),!0x1),W(this,'_activeEditChart$',new _0x53aede(null)),W(this,_0x5d0a2f(0x2aa),new _0x53aede(null)),W(this,_0x5d0a2f(0x27e),new _0x53aede(null)),W(this,_0x5d0a2f(0x1e3),this[_0x5d0a2f(0x2e2)][_0x5d0a2f(0x2ae)]()),W(this,_0x5d0a2f(0x141),this[_0x5d0a2f(0x2aa)][_0x5d0a2f(0x2ae)]()),W(this,_0x5d0a2f(0x1f5),this[_0x5d0a2f(0x27e)]['asObservable']());}get[_0x533bf2(0x2c6)](){const _0x5efe6b=_0x533bf2;return this[_0x5efe6b(0x2d7)][_0x5efe6b(0x14f)]??null;}get[_0x533bf2(0x14f)](){const _0x54e4ed=_0x533bf2;return this[_0x54e4ed(0x2d7)]['activeChartModel'];}get[_0x533bf2(0x241)](){const _0x4b97bb=_0x533bf2;return this[_0x4b97bb(0x2d7)][_0x4b97bb(0x241)];}get[_0x533bf2(0x2c1)](){const _0x5630a8=_0x533bf2;return this[_0x5630a8(0x2e2)][_0x5630a8(0x27d)]();}get[_0x533bf2(0x15d)](){const _0xd17bde=_0x533bf2;return this[_0xd17bde(0x1e9)][_0xd17bde(0x15d)];}get[_0x533bf2(0x246)](){return this['_rangeSelectMode'];}[_0x533bf2(0x264)](_0x558d18){const _0x51b4ec=_0x533bf2;this[_0x51b4ec(0x107)]=_0x558d18;}[_0x533bf2(0xf4)](_0x4a262a){const _0x41ec23=_0x533bf2;this[_0x41ec23(0x2e2)]['getValue']()!==_0x4a262a&&this[_0x41ec23(0x2e2)][_0x41ec23(0x93)](_0x4a262a);}[_0x533bf2(0x12c)](_0x354e38){return this['activeEditChart']===_0x354e38;}[_0x533bf2(0x2b8)](_0x2594ed){const _0x277fc9=_0x533bf2;this[_0x277fc9(0x2aa)]['next'](_0x2594ed);}[_0x533bf2(0x2e7)](_0x2fe6b5,_0x3691e2){const _0xc3bf2c=_0x533bf2;this['_panelRoute$'][_0xc3bf2c(0x93)]({'chartId':_0x2fe6b5,'route':_0x3691e2});}[_0x533bf2(0x1fc)](){this['_panelRoute$']['next'](null);}['setDataRange'](_0x1cc77d){let _0xfebf33=this['activeChartModel'];_0xfebf33&&this['_executeChartUpdateSourceConfig']({'chartModelId':_0xfebf33['id'],'range':_0x1cc77d});}[_0x533bf2(0x1ab)](_0x98fcd8){const _0x1f8366=_0x533bf2;var _0x55af18;let _0x15a741=this[_0x1f8366(0x14f)];if(!_0x15a741)return;let _0x482c57=(_0x55af18=this[_0x1f8366(0x168)][_0x1f8366(0x109)](_0x15a741['id']))==null?void 0x0:_0x55af18[_0x1f8366(0x1f9)]();if(!_0x482c57)return;let _0x24f037={..._0x482c57,'isRowDirection':_0x98fcd8===_0x1807ec[_0x1f8366(0x187)]};this[_0x1f8366(0xe9)]({'chartModelId':_0x15a741['id'],'range':_0x24f037});}[_0x533bf2(0x1a9)](_0x3d1d48){const _0x271dd1=_0x533bf2;var _0x1e5e1d;this[_0x271dd1(0x90)][_0x271dd1(0x19c)](_0x32b2ba['id'],{..._0x3d1d48,'unitId':((_0x1e5e1d=this[_0x271dd1(0x19e)][_0x271dd1(0x270)]())==null?void 0x0:_0x1e5e1d[_0x271dd1(0x23a)]())??''});}['_executeChartUpdateSourceConfig'](_0x167c49){const _0x7c675e=_0x533bf2;var _0x3a2381;this['_commandService']['executeCommand'](_0x575ee3['id'],{..._0x167c49,'unitId':((_0x3a2381=this[_0x7c675e(0x19e)][_0x7c675e(0x270)]())==null?void 0x0:_0x3a2381[_0x7c675e(0x23a)]())??''});}['dispose'](){const _0x382a62=_0x533bf2;this[_0x382a62(0x2e2)][_0x382a62(0x193)](),this['_selectedElement$'][_0x382a62(0x193)](),this['_panelRoute$'][_0x382a62(0x193)](),super[_0x382a62(0x27b)]();}};Xr=J([q(0x0,_0x28410f(_0x538c99)),q(0x1,_0x28410f(_0x1d97a8)),q(0x2,_0x413077),q(0x3,_0x28410f(_0x3f8b07)),q(0x4,_0x371c5e),q(0x5,_0x28410f(_0x513507))],Xr);const Zr=_0xac39e4[_0x533bf2(0x129)];var Qr=class extends _0xa3de1f{constructor(_0x3adb09,_0x5abfb5){const _0x119523=_0x533bf2;super(_0x3adb09),this['_rect']=_0x5abfb5,W(this,_0x119523(0x25e),0x0),W(this,'_image',void 0x0),W(this,_0x119523(0x1c9),{});}[_0x533bf2(0x207)](){return this['_rect'];}['setStyle'](_0x36ac1c){const _0xa842b0=_0x533bf2;this[_0xa842b0(0x1c9)]=_0x36ac1c;}[_0x533bf2(0x1dc)](){const _0x5de4c9=_0x533bf2;return++this[_0x5de4c9(0x25e)];}['commitSnapshot'](_0x38e88c,_0x573598){const _0x38fd48=_0x533bf2;return _0x573598===this[_0x38fd48(0x25e)]?(G(this[_0x38fd48(0x12a)]),this[_0x38fd48(0x12a)]=_0x38e88c,!0x0):(G(_0x38e88c),!0x1);}[_0x533bf2(0x2dc)](){}[_0x533bf2(0x99)](){const _0x2ec146=_0x533bf2;this[_0x2ec146(0x25e)]+=0x1;}[_0x533bf2(0x307)](){const _0x536a3e=_0x533bf2;let _0x4579ac=this[_0x536a3e(0x12a)];return this[_0x536a3e(0x12a)]=void 0x0,_0x4579ac;}[_0x533bf2(0x27b)](){const _0x1a2c48=_0x533bf2;G(this[_0x1a2c48(0x12a)]),this['_image']=void 0x0,super['dispose']();}};function $r(_0x3dd3c9,_0x3aeea7,_0x50b83f){const _0x26a92b=_0x533bf2;let _0x2558a3=_0x3dd3c9['getRuntimeContext'](_0x3aeea7);return _0x5634d6({..._0x3dd3c9[_0x26a92b(0x1c9)],'runtime':{..._0x2558a3,'layoutInset':0x8,..._0x50b83f===void 0x0?{}:{'addWatermark':_0x50b83f}},'direction':_0x3aeea7},_0x3dd3c9[_0x26a92b(0x237)]);}let X=class extends _0x1b05ef{constructor(_0x19592f,_0x3d7afd,_0x5e2b2f,_0x31b22d,_0x2d6c0c,_0x101b5d,_0x39056e,_0x223417,_0x2a1a5c,_0x5580d7,_0xbf4457,_0x105414,_0x4a0102,_0x541e65){const _0x22bd40=_0x533bf2;super(),this['_chartHostProvider']=_0x19592f,this[_0x22bd40(0x106)]=_0x3d7afd,this[_0x22bd40(0x2d7)]=_0x5e2b2f,this['_drawingManagerService']=_0x31b22d,this[_0x22bd40(0x19e)]=_0x2d6c0c,this[_0x22bd40(0x2a9)]=_0x101b5d,this[_0x22bd40(0x1e9)]=_0x39056e,this['_chartUIService']=_0x223417,this[_0x22bd40(0x226)]=_0x2a1a5c,this[_0x22bd40(0xb0)]=_0x5580d7,this[_0x22bd40(0x194)]=_0xbf4457,this[_0x22bd40(0x2ea)]=_0x105414,this['_chartSnapshotStoreService']=_0x4a0102,this[_0x22bd40(0x114)]=_0x541e65,W(this,_0x22bd40(0x2ac),new Map()),W(this,'_chartEventHandlers',new Map()),W(this,_0x22bd40(0x262),new Map()),W(this,_0x22bd40(0x296),new Map()),W(this,'_renderDebounceMap',new Map()),W(this,_0x22bd40(0x183),new Map()),W(this,_0x22bd40(0x13a),void 0x0),W(this,_0x22bd40(0xe3),void 0x0),W(this,'_lastRenderInputMap',new Map()),W(this,_0x22bd40(0x245),null),W(this,'_lastActiveSheet',null);let _0x23c7b7=_0x4b9dc3(this[_0x22bd40(0x226)]),_0x446fc6=this['_configService'][_0x22bd40(0x8f)](_0x40c528);this[_0x22bd40(0x13a)]=(_0x446fc6==null?void 0x0:_0x446fc6[_0x22bd40(0x152)])??Zr,this[_0x22bd40(0xe3)]=_0x23c7b7[_0x22bd40(0x221)]!==0x1||_0x23c7b7[0x0]!=='all',this[_0x22bd40(0x198)](),this[_0x22bd40(0x306)](),this[_0x22bd40(0x2c7)](),this[_0x22bd40(0x286)](),this[_0x22bd40(0x171)]();}[_0x533bf2(0xd7)](_0x418be2){const _0xd36fde=_0x533bf2;let _0xb42d47=this['_getChartSnapshotKey'](_0x418be2);return _0xb42d47?this[_0xd36fde(0x2f6)]['getImage'](_0xb42d47):void 0x0;}[_0x533bf2(0x2fe)](_0x1545fc){const _0x309703=_0x533bf2;var _0x57eec4;return((_0x57eec4=this[_0x309703(0x2d7)][_0x309703(0x14f)])==null?void 0x0:_0x57eec4['id'])===_0x1545fc?_0xac39e4[_0x309703(0x144)]:this[_0x309703(0x13a)];}[_0x533bf2(0x122)](_0x2ef21e){const _0x522b2a=_0x533bf2;let _0x241adb=this[_0x522b2a(0x106)][_0x522b2a(0x20c)](_0x2ef21e);return _0x241adb?{'unitId':_0x241adb[_0x522b2a(0x17e)],'subUnitId':_0x241adb[_0x522b2a(0x1f7)],'chartId':_0x2ef21e}:null;}[_0x533bf2(0x198)](){const _0x57d96d=_0x533bf2;this[_0x57d96d(0x13a)]===_0xac39e4[_0x57d96d(0x129)]&&this[_0x57d96d(0x269)](this[_0x57d96d(0x106)][_0x57d96d(0x1e2)](_0xc2a308[_0x57d96d(0xcb)],({key:_0x53b810,config:_0x3dd8b3,unitId:_0x50f23b,subUnitId:_0x21c6d6,drawingId:_0x5956a9})=>new Br(_0x53b810,_0x3dd8b3,()=>this[_0x57d96d(0x2f6)]['getImage']({'unitId':_0x50f23b,'subUnitId':_0x21c6d6,'chartId':_0x5956a9}),()=>this['_chartHostProvider'][_0x57d96d(0xa4)](_0x5956a9))));}[_0x533bf2(0x306)](){const _0x2b5d49=_0x533bf2;this['disposeWithMe'](this[_0x2b5d49(0x2d7)][_0x2b5d49(0x241)][_0x2b5d49(0x28f)](_0x60cca1=>{const _0x4200ef=_0x2b5d49;let _0x4a2927=(_0x60cca1==null?void 0x0:_0x60cca1['id'])??null,_0xc97c57=this[_0x4200ef(0x245)];_0xc97c57!==_0x4a2927&&(_0xc97c57&&(this[_0x4200ef(0x294)][_0x4200ef(0x197)](_0xc97c57),this[_0x4200ef(0x2d0)](_0xc97c57),this['_disposeChartDomInstance'](_0xc97c57),this[_0x4200ef(0x240)](_0xc97c57)),this[_0x4200ef(0x245)]=_0x4a2927,_0x4a2927&&(this[_0x4200ef(0x294)][_0x4200ef(0x197)](_0x4a2927),this['_applyActiveChartRuntimeZIndex'](_0x4a2927),this[_0x4200ef(0x240)](_0x4a2927)));}));}[_0x533bf2(0x2c7)](){const _0x42e0f1=_0x533bf2;this[_0x42e0f1(0x269)](this[_0x42e0f1(0x305)]['featurePluginGroupUpdate$'][_0x42e0f1(0x28f)](_0x22778f=>{const _0x4fb871=_0x42e0f1;var _0x51b373;let _0x51fde9=(_0x51b373=this['_chartModelService'][_0x4fb871(0x14f)])==null?void 0x0:_0x51b373['id'];_0x51fde9&&_0x22778f[_0x4fb871(0x1f0)](_0x1a7437=>_0x1a7437[_0x4fb871(0x2cd)]['some'](_0x1ea43a=>_0x1ea43a['drawingId']===_0x51fde9))&&this[_0x4fb871(0x2d7)][_0x4fb871(0x219)](null);})),this[_0x42e0f1(0x269)](this[_0x42e0f1(0x305)][_0x42e0f1(0x2e0)]['subscribe'](_0x36150b=>{const _0xa1a48c=_0x42e0f1;var _0xe1503a;let _0x42767d=(_0xe1503a=this[_0xa1a48c(0x2d7)][_0xa1a48c(0x14f)])==null?void 0x0:_0xe1503a['id'];_0x42767d&&_0x36150b[_0xa1a48c(0x1f0)](_0x210336=>_0x210336[_0xa1a48c(0xad)][_0xa1a48c(0x1ae)]===_0x42767d||_0x210336[_0xa1a48c(0x2cd)][_0xa1a48c(0x1f0)](_0x118f14=>_0x118f14[_0xa1a48c(0x1ae)]===_0x42767d))&&this[_0xa1a48c(0x2d7)][_0xa1a48c(0x219)](null);}));}[_0x533bf2(0x286)](){const _0x22e115=_0x533bf2;this[_0x22e115(0x269)](this['_drawingManagerService'][_0x22e115(0x201)][_0x22e115(0x28f)](_0x5423df=>{const _0x2e81c7=_0x22e115;var _0x2d1466;let _0x12cbd8=(_0x2d1466=this[_0x2e81c7(0x2d7)][_0x2e81c7(0x14f)])==null?void 0x0:_0x2d1466['id'];if(!_0x12cbd8){_0x5423df[_0x2e81c7(0x1ff)]['forEach'](_0x10dd66=>{const _0x4d69c2=_0x2e81c7;this[_0x4d69c2(0x2d7)]['getChartModel'](_0x10dd66)&&this[_0x4d69c2(0x2d0)](_0x10dd66);});return;}let _0x1a62e6=this[_0x2e81c7(0x106)][_0x2e81c7(0x20c)](_0x12cbd8);(_0x1a62e6==null?void 0x0:_0x1a62e6[_0x2e81c7(0x17e)])===_0x5423df[_0x2e81c7(0x17e)]&&_0x1a62e6['subUnitId']===_0x5423df['subUnitId']&&this[_0x2e81c7(0x164)](_0x12cbd8);})),this[_0x22e115(0x269)](this[_0x22e115(0x305)][_0x22e115(0x1d8)][_0x22e115(0x28f)](_0x26fb76=>{const _0x5103ba=_0x22e115;var _0x2d40d;let _0x193be9=(_0x2d40d=this['_chartModelService']['activeChartModel'])==null?void 0x0:_0x2d40d['id'];if(!_0x193be9)return;let _0x2ce9ff=this[_0x5103ba(0x106)][_0x5103ba(0x20c)](_0x193be9);_0x2ce9ff&&_0x26fb76[_0x5103ba(0x1f0)](_0x3e3dd8=>_0x3e3dd8[_0x5103ba(0x17e)]===_0x2ce9ff[_0x5103ba(0x17e)]&&_0x3e3dd8[_0x5103ba(0x1f7)]===_0x2ce9ff['subUnitId'])&&this[_0x5103ba(0x164)](_0x193be9);})),this['disposeWithMe'](this[_0x22e115(0x2d7)][_0x22e115(0x1a2)]['subscribe'](_0x4c999d=>{const _0x4138a5=_0x22e115;var _0x10eab5;this[_0x4138a5(0x1db)][_0x4138a5(0x1fd)](_0x4c999d),this[_0x4138a5(0x2f6)][_0x4138a5(0xe8)](_0x4c999d),this[_0x4138a5(0x178)](_0x4c999d),this[_0x4138a5(0x294)][_0x4138a5(0x197)](_0x4c999d),((_0x10eab5=this[_0x4138a5(0x2d7)][_0x4138a5(0x14f)])==null?void 0x0:_0x10eab5['id'])===_0x4c999d?this[_0x4138a5(0x2d7)][_0x4138a5(0x219)](null):this['_resetChartRuntimeZIndex'](_0x4c999d),this[_0x4138a5(0x2a5)](_0x4c999d);}));}[_0x533bf2(0x240)](_0x3d4620){const _0x107f00=_0x533bf2;let _0x19a697=this[_0x107f00(0x1db)][_0x107f00(0x125)](_0x3d4620);_0x19a697&&this['render'](_0x3d4620,_0x19a697[_0x107f00(0x215)],_0x19a697[_0x107f00(0x1c9)]);}[_0x533bf2(0x2af)](_0x474365){const _0x520553=_0x533bf2;let _0x150c46=this[_0x520553(0x2ac)][_0x520553(0x125)](_0x474365);(_0x150c46==null?void 0x0:_0x150c46[_0x520553(0x2c8)])===_0x520553(0x1cb)&&(this['_disposeChartEventSubscriptions'](_0x474365),_0x150c46[_0x520553(0x27b)](),this[_0x520553(0x2ac)][_0x520553(0x1fd)](_0x474365)),this[_0x520553(0x294)][_0x520553(0x197)](_0x474365),this[_0x520553(0x294)][_0x520553(0x132)](_0x474365);}[_0x533bf2(0x2a5)](_0x6e0447){const _0x45cc99=_0x533bf2;let _0x5f0807=this['_chartInstanceMap']['get'](_0x6e0447);_0x5f0807&&(this[_0x45cc99(0x17c)](_0x6e0447),_0x5f0807['dispose'](),this[_0x45cc99(0x2ac)][_0x45cc99(0x1fd)](_0x6e0447)),this[_0x45cc99(0x294)][_0x45cc99(0x197)](_0x6e0447),this[_0x45cc99(0x294)][_0x45cc99(0x132)](_0x6e0447);}[_0x533bf2(0x178)](_0x4df0b9){const _0x3d4e1c=_0x533bf2;var _0x9f09be,_0x2389af;(_0x9f09be=this[_0x3d4e1c(0x114)][_0x3d4e1c(0x2d8)](_0x5f5aa4))==null||(_0x2389af=_0x9f09be['clearRuntimeCache'])==null||_0x2389af[_0x3d4e1c(0xc0)](_0x9f09be,_0x4df0b9);}[_0x533bf2(0x29c)](_0x5b2948,_0x12774a){const _0x47f3ea=_0x533bf2;let _0x7b6cc6=this[_0x47f3ea(0x305)][_0x47f3ea(0x1a0)](_0x5b2948,_0x12774a);Object[_0x47f3ea(0x281)](_0x7b6cc6??{})[_0x47f3ea(0x1cf)](_0x3c4985=>{const _0xd33fbc=_0x47f3ea;_0x3c4985[_0xd33fbc(0x24f)]===_0xc2a308[_0xd33fbc(0xcb)]&&this[_0xd33fbc(0x178)](_0x3c4985['drawingId']);});}['_getChartRenderObject'](_0x54ddcf,_0x42b4da){const _0xe3e89=_0x533bf2;var _0x2ff419;return((_0x2ff419=_0x54ddcf[_0xe3e89(0x297)])==null?void 0x0:_0x2ff419[_0xe3e89(0xc0)](_0x54ddcf,_0x42b4da))??_0x54ddcf[_0xe3e89(0xb5)](_0x42b4da)??null;}[_0x533bf2(0x25c)](_0x33e50d){const _0x298a01=_0x533bf2;var _0x5d79a5;let _0xd2d517=this['_sheetCanvasFloatDomManagerService'][_0x298a01(0x20c)](_0x33e50d);if(!_0xd2d517)return null;let _0x33f962=(_0x5d79a5=this['_renderManagerService'][_0x298a01(0x27c)](_0xd2d517[_0x298a01(0x17e)]))==null?void 0x0:_0x5d79a5[_0x298a01(0x244)];if(!_0x33f962)return null;let _0x5854e0=this[_0x298a01(0x277)](_0x33f962,_0x57c728({'unitId':_0xd2d517['unitId'],'subUnitId':_0xd2d517['subUnitId'],'drawingId':_0x33e50d}));return _0x5854e0?{'info':_0xd2d517,'scene':_0x33f962,'chartObject':_0x5854e0}:null;}[_0x533bf2(0x251)](_0x46e3d3,_0x2741a3){const _0x5d105a=_0x533bf2;var _0xb9962b,_0x1ed8da,_0x4c3642,_0x358ed7;let _0x13cad8=this[_0x5d105a(0x25c)](_0x46e3d3);_0x13cad8&&((_0xb9962b=(_0x1ed8da=_0x13cad8[_0x5d105a(0x92)])['setProps'])==null||_0xb9962b[_0x5d105a(0xc0)](_0x1ed8da,{'zIndex':_0x2741a3}),(_0x4c3642=(_0x358ed7=_0x13cad8[_0x5d105a(0x92)])['makeDirty'])==null||_0x4c3642[_0x5d105a(0xc0)](_0x358ed7,!0x0),_0x13cad8[_0x5d105a(0x244)][_0x5d105a(0x112)](!0x0));}[_0x533bf2(0x164)](_0x524666){const _0x3fd090=_0x533bf2;let _0x36c205=this[_0x3fd090(0x106)]['getFloatDomInfo'](_0x524666);if(!_0x36c205)return;let _0x1a3add=this['_drawingManagerService'][_0x3fd090(0x170)](_0x36c205['unitId'],_0x36c205['subUnitId']);this[_0x3fd090(0x251)](_0x524666,_0x1a3add[_0x3fd090(0x221)]);}[_0x533bf2(0x2d0)](_0x41f5a5){const _0x2bd419=_0x533bf2;let _0x171ab0=this['_sheetCanvasFloatDomManagerService'][_0x2bd419(0x20c)](_0x41f5a5);if(!_0x171ab0)return;let _0xce3eb2=this[_0x2bd419(0x305)]['getDrawingOrder'](_0x171ab0[_0x2bd419(0x17e)],_0x171ab0[_0x2bd419(0x1f7)]),_0x45f80d=_0xce3eb2[_0x2bd419(0x24a)](_0x41f5a5);this[_0x2bd419(0x251)](_0x41f5a5,_0x45f80d===-0x1?Math['max'](_0xce3eb2[_0x2bd419(0x221)]-0x1,0x0):_0x45f80d);}[_0x533bf2(0x2b2)](_0x5a3b51,_0x2f7647){const _0x4bf84e=_0x533bf2;let _0x3f8814=this['_sheetCanvasFloatDomManagerService'][_0x4bf84e(0x20c)](_0x5a3b51);if(_0x2f7647[_0x4bf84e(0x289)]!==void 0x0&&_0x2f7647[_0x4bf84e(0x10e)]!==void 0x0&&_0x3f8814){var _0xc0f44e;let {subUnitId:_0x34613c}=_0x3f8814,_0x1948b5=(_0xc0f44e=this[_0x4bf84e(0x19e)]['getCurrentUnitOfType'](_0x1302ff['UNIVER_SHEET']))==null?void 0x0:_0xc0f44e[_0x4bf84e(0x120)]();if((_0x1948b5==null?void 0x0:_0x1948b5[_0x4bf84e(0x30b)]())===_0x34613c){let {width:_0x18a8f6,height:_0x22ab0e}=_0x2f7647,_0x197b7c=this[_0x4bf84e(0x2d7)][_0x4bf84e(0x154)](_0x5a3b51),_0x1d9ab0=_0x197b7c==null?void 0x0:_0x197b7c[_0x4bf84e(0x1c9)];if(Math[_0x4bf84e(0xb4)](_0x18a8f6-((_0x1d9ab0==null?void 0x0:_0x1d9ab0['width'])||0x0))>0x1||Math[_0x4bf84e(0xb4)](_0x22ab0e-((_0x1d9ab0==null?void 0x0:_0x1d9ab0[_0x4bf84e(0x10e)])||0x0))>0x1){_0x197b7c==null||_0x197b7c[_0x4bf84e(0x248)]({..._0x1d9ab0,'width':_0x18a8f6,'height':_0x22ab0e});let _0x55218d=this['_chartInstanceMap']['get'](_0x5a3b51);_0x55218d&&(this[_0x4bf84e(0x294)]['syncHostLayout'](_0x5a3b51),_0x55218d[_0x4bf84e(0x1d5)]());}}}}[_0x533bf2(0x18f)](_0x4536ea,_0x50ee9a,_0x25c6c8=0x0){const _0x9adf4e=_0x533bf2;let _0xe99ef2=this[_0x9adf4e(0x183)][_0x9adf4e(0x125)](_0x4536ea);_0xe99ef2||(_0xe99ef2=_0xe22d45(_0x6e66bb=>{this['_resizeChart'](_0x4536ea,_0x6e66bb);},_0x25c6c8),this[_0x9adf4e(0x183)][_0x9adf4e(0x1aa)](_0x4536ea,_0xe99ef2)),_0xe99ef2(_0x50ee9a);}[_0x533bf2(0x171)](){const _0x2c2fef=_0x533bf2;let _0x24266b=this[_0x2c2fef(0x1de)],_0x192429=_0x50ea4a=>{const _0x24a645=_0x2c2fef;if(!_0x24266b['has'](_0x50ea4a)){let _0x46b5c0=_0xe22d45((_0x592c06,_0xbdade,_0x47e84a,_0x16a021)=>{const _0x4166e4=_0x4f81;var _0x310426,_0x469041;if(!_0x47e84a)return;(_0x310426=_0x47e84a['category'])==null||_0x310426[_0x4166e4(0xf2)][_0x4166e4(0x1cf)]((_0x536840,_0xdd63f2)=>{const _0x197871=_0x4166e4;_0x536840[_0x197871(0x2c5)]||=this['_localeService']['t'](_0x197871(0x213))+'\x20'+(_0xdd63f2+0x1);}),_0x47e84a[_0x4166e4(0xab)][_0x4166e4(0x1cf)]((_0x8f14ae,_0x11cd0f)=>{const _0x888d95=_0x4166e4;_0x8f14ae[_0x888d95(0xfb)]||=this[_0x888d95(0x1e9)]['t'](_0x888d95(0x94))+'\x20'+(_0x11cd0f+0x1);});let _0x2c3bc5=this[_0x4166e4(0x2ed)](_0x592c06,_0x16a021),_0x3a5581=(_0x469041=this['_univerInstanceService']['getCurrentUnitOfType'](_0x1302ff[_0x4166e4(0x135)]))==null?void 0x0:_0x469041[_0x4166e4(0x120)]();(_0x3a5581==null?void 0x0:_0x3a5581['getSheetId']())===_0xbdade&&this[_0x4166e4(0x2ee)](_0x592c06['id'],_0x47e84a,_0x2c3bc5);},0x11);_0x24266b[_0x24a645(0x1aa)](_0x50ea4a,_0x46b5c0);}return _0x24266b[_0x24a645(0x125)](_0x50ea4a);};this[_0x2c2fef(0x269)](this[_0x2c2fef(0x19e)][_0x2c2fef(0x228)]['subscribe'](_0x10b52e=>{const _0x2aaada=_0x2c2fef;let _0x3d4f36=this[_0x2aaada(0x19e)][_0x2aaada(0x184)](_0x1302ff[_0x2aaada(0x135)]);if(_0x10b52e&&_0x3d4f36&&_0x3d4f36[_0x2aaada(0x23a)]()===_0x10b52e){var _0x1b2fb9;let _0x427d25=_0x3d4f36[_0x2aaada(0x120)]()[_0x2aaada(0x30b)]();this['_lastActiveSheet']&&(this['_lastActiveSheet'][_0x2aaada(0x17e)]!==_0x10b52e||this[_0x2aaada(0x238)][_0x2aaada(0x1f7)]!==_0x427d25)&&this['_clearSheetChartRuntimeCaches'](this[_0x2aaada(0x238)]['unitId'],this[_0x2aaada(0x238)]['subUnitId']),this[_0x2aaada(0x238)]={'unitId':_0x10b52e,'subUnitId':_0x427d25};let _0x13a251=this[_0x2aaada(0x305)][_0x2aaada(0x1a0)](_0x10b52e,_0x427d25);if(!((_0x1b2fb9=this['_renderManagerService'][_0x2aaada(0x27c)](_0x10b52e))!=null&&_0x1b2fb9[_0x2aaada(0xc7)](_0x52bd5f)[_0x2aaada(0x22d)](_0x427d25)))return;if(_0x13a251)for(let _0x2f4652 in _0x13a251){let {drawingId:_0x1caf5c}=_0x13a251[_0x2f4652],_0x4afd91=this[_0x2aaada(0x2d7)][_0x2aaada(0x154)](_0x1caf5c);_0x4afd91&&_0x192429(_0x4afd91['id'])(_0x4afd91,_0x427d25,_0x4afd91[_0x2aaada(0x215)],this[_0x2aaada(0x1e9)][_0x2aaada(0x1e4)]());}}})),this['disposeWithMe'](this[_0x2c2fef(0x194)][_0x2c2fef(0xb2)][_0x2c2fef(0x28f)](()=>{const _0x47c0e3=_0x2c2fef;var _0x218c2a;let _0x281e22=this[_0x47c0e3(0x19e)][_0x47c0e3(0x184)](_0x1302ff['UNIVER_SHEET']);if(!_0x281e22)return;let _0x139685=_0x281e22[_0x47c0e3(0x23a)](),_0x408ae3=_0x281e22[_0x47c0e3(0x120)]()[_0x47c0e3(0x30b)](),_0x57eda0=this['_drawingManagerService'][_0x47c0e3(0x1a0)](_0x139685,_0x408ae3);if((_0x218c2a=this[_0x47c0e3(0x2a9)][_0x47c0e3(0x27c)](_0x139685))!=null&&_0x218c2a[_0x47c0e3(0xc7)](_0x52bd5f)[_0x47c0e3(0x22d)](_0x408ae3)&&_0x57eda0)for(let _0x5734d5 in _0x57eda0){let {drawingId:_0x362bb4}=_0x57eda0[_0x5734d5],_0x5ef537=this[_0x47c0e3(0x2d7)][_0x47c0e3(0x154)](_0x362bb4);_0x5ef537&&_0x192429(_0x5ef537['id'])(_0x5ef537,_0x408ae3,_0x5ef537['config'],this['_localeService'][_0x47c0e3(0x1e4)]());}})),this[_0x2c2fef(0x269)](this[_0x2c2fef(0x305)][_0x2c2fef(0x1d8)][_0x2c2fef(0x28f)](_0x196522=>{const _0x2d2990=_0x2c2fef;_0x196522[_0x2d2990(0x1cf)](_0x188341=>{const _0x53a5d5=_0x2d2990;var _0x5d9048,_0x23bc6c;let {drawingId:_0x48c972,unitId:_0x3e8eea,subUnitId:_0xd396d1}=_0x188341;if(!((_0x5d9048=this[_0x53a5d5(0x2a9)][_0x53a5d5(0x27c)](_0x3e8eea))!=null&&_0x5d9048[_0x53a5d5(0xc7)](_0x52bd5f)[_0x53a5d5(0x22d)](_0xd396d1)))return;let {drawingType:_0x3b0cea}=this['_drawingManagerService']['getDrawingByParam'](_0x188341);if(_0x3b0cea!==_0xc2a308['DRAWING_CHART'])return;let _0x44389a=this[_0x53a5d5(0x106)][_0x53a5d5(0x20c)](_0x48c972),_0x50d55c=(_0x44389a==null?void 0x0:_0x44389a[_0x53a5d5(0x1bc)])??_0x48c972,_0x3260e8=_0x44389a==null?void 0x0:_0x44389a[_0x53a5d5(0x11a)],_0x41c9df=(_0x23bc6c=this[_0x53a5d5(0x2a9)][_0x53a5d5(0x27c)](_0x3e8eea))==null?void 0x0:_0x23bc6c[_0x53a5d5(0x244)];_0x3260e8&&this[_0x53a5d5(0x269)](_0x3260e8==null?void 0x0:_0x3260e8[_0x53a5d5(0x1a4)]['subscribeEvent'](_0x4f6d62=>{const _0x58201a=_0x53a5d5;let {type:_0xd9f37d,value:_0x221406}=_0x4f6d62;if(_0x540203[_0x58201a(0x1d5)]===_0xd9f37d||_0x540203[_0x58201a(0x2bd)]===_0xd9f37d){let {width:_0x30a084,height:_0x51b4fa}=_0x221406;this[_0x58201a(0x18f)](_0x48c972,{'width':_0x30a084,'height':_0x51b4fa},0x64);}})),_0x41c9df&&this['disposeWithMe'](_0x41c9df[_0x53a5d5(0x1a4)][_0x53a5d5(0x1bb)](_0x5c49d4=>{const _0x3c601a=_0x53a5d5;var _0x5985c2;_0x5c49d4[_0x3c601a(0x20a)]===_0x540203[_0x3c601a(0x167)]&&(_0x5985c2=document[_0x3c601a(0x206)](_0x50d55c))!=null&&_0x5985c2[_0x3c601a(0x2fc)](_0x3c601a(0x95))&&this['_chartHostProvider'][_0x3c601a(0x121)](_0x48c972);}));let _0x19d4bf=this[_0x53a5d5(0x2d7)][_0x53a5d5(0x154)](_0x48c972);_0x19d4bf&&this[_0x53a5d5(0x269)](_0x50f064([_0x19d4bf[_0x53a5d5(0x250)],_0x19d4bf[_0x53a5d5(0x146)],this[_0x53a5d5(0x1e9)][_0x53a5d5(0x15d)]])[_0x53a5d5(0x28f)](([_0x3d2299,_0x46568c,_0x33041e])=>{_0x192429(_0x19d4bf['id'])(_0x19d4bf,_0xd396d1,_0x3d2299,_0x33041e);}));});})),this[_0x2c2fef(0x269)](_0x50f064([this[_0x2c2fef(0x305)][_0x2c2fef(0x26b)]])[_0x2c2fef(0x28f)](([_0x488294])=>{const _0x1f7df2=_0x2c2fef;_0x488294[_0x1f7df2(0x1cf)](_0x64dfda=>{const _0x343c56=_0x1f7df2;var _0x2a5228;let {drawingId:_0x35e1ae}=_0x64dfda;((_0x2a5228=this[_0x343c56(0x2d7)][_0x343c56(0x14f)])==null?void 0x0:_0x2a5228['id'])===_0x35e1ae&&this['_chartModelService'][_0x343c56(0x219)](null),this[_0x343c56(0x17c)](_0x35e1ae),this[_0x343c56(0x9d)][_0x343c56(0x1fd)](_0x35e1ae),this[_0x343c56(0x294)][_0x343c56(0x197)](_0x35e1ae),this['_resetChartRuntimeZIndex'](_0x35e1ae),this[_0x343c56(0x2a5)](_0x35e1ae),this[_0x343c56(0x2f6)]['clearChart'](_0x35e1ae),this[_0x343c56(0x178)](_0x35e1ae),this['_lastRenderInputMap'][_0x343c56(0x1fd)](_0x35e1ae),this['_chartElementEditMode'][_0x343c56(0x1fd)](_0x35e1ae);});}));}[_0x533bf2(0x151)](_0x5ab594,_0xb62061){const _0x533ff0=_0x533bf2;var _0x2bad20;_0xb62061?this[_0x533ff0(0x296)][_0x533ff0(0x1aa)](_0x5ab594,!0x0):this[_0x533ff0(0x296)][_0x533ff0(0x1fd)](_0x5ab594),(_0x2bad20=this[_0x533ff0(0x2ac)]['get'](_0x5ab594))==null||_0x2bad20[_0x533ff0(0x151)](_0xb62061);}async[_0x533bf2(0x266)](_0x2b999c){const _0x364dfb=_0x533bf2;let _0x2375bc=this[_0x364dfb(0x2ac)][_0x364dfb(0x125)](_0x2b999c);if(_0x2375bc){let _0x55f700=this[_0x364dfb(0x296)][_0x364dfb(0x125)](_0x2b999c)===!0x0;_0x55f700&&_0x2375bc[_0x364dfb(0x151)](!0x1);try{let _0x551b2b=await _0x2375bc[_0x364dfb(0x1ac)]();if(_0x551b2b)return _0x551b2b;}finally{_0x55f700&&this[_0x364dfb(0x2ac)][_0x364dfb(0x125)](_0x2b999c)===_0x2375bc&&_0x2375bc[_0x364dfb(0x151)](!0x0);}}let _0x2ecd52=this[_0x364dfb(0x1b6)](_0x2b999c);return _0x2ecd52?_0x4077ba(_0x2ecd52):void 0x0;}['on'](_0x45e5a4,_0x404635,_0x3747e4){const _0xec852=_0x533bf2;let _0x544af6=this[_0xec852(0x9d)][_0xec852(0x125)](_0x45e5a4);_0x544af6||(_0x544af6=new Map(),this[_0xec852(0x9d)][_0xec852(0x1aa)](_0x45e5a4,_0x544af6));let _0x5ef43f=_0x544af6[_0xec852(0x125)](_0x404635);_0x5ef43f||(_0x5ef43f=new Set(),_0x544af6[_0xec852(0x1aa)](_0x404635,_0x5ef43f)),_0x5ef43f['add'](_0x3747e4);let _0x47161d=this[_0xec852(0x2ac)]['get'](_0x45e5a4);return _0x47161d&&this[_0xec852(0x16f)](_0x45e5a4,_0x47161d,_0x404635,_0x3747e4),{'dispose':()=>{const _0x349b48=_0xec852;var _0x321aa9;(_0x321aa9=this[_0x349b48(0x9d)][_0x349b48(0x125)](_0x45e5a4))==null||(_0x321aa9=_0x321aa9[_0x349b48(0x125)](_0x404635))==null||_0x321aa9['delete'](_0x3747e4),this[_0x349b48(0x28d)](_0x45e5a4,_0x404635,_0x3747e4);}};}[_0x533bf2(0x1b6)](_0x3c21b6){const _0x2871aa=_0x533bf2;let _0xbf769a=this[_0x2871aa(0x19e)][_0x2871aa(0x184)](_0x1302ff[_0x2871aa(0x135)]),_0x17b8d3=_0xbf769a==null?void 0x0:_0xbf769a[_0x2871aa(0x120)](),_0x3c7dae=_0xbf769a==null?void 0x0:_0xbf769a[_0x2871aa(0x23a)](),_0x2a76b6=_0x17b8d3==null?void 0x0:_0x17b8d3[_0x2871aa(0x30b)]();if(!(!_0x3c7dae||!_0x2a76b6))return this[_0x2871aa(0x2f6)][_0x2871aa(0x133)]({'unitId':_0x3c7dae,'subUnitId':_0x2a76b6,'chartId':_0x3c21b6});}['_bindChartEventHandlers'](_0x4475c0,_0x11a0fc){const _0xde28cd=_0x533bf2;let _0x5c75e0=this[_0xde28cd(0x9d)][_0xde28cd(0x125)](_0x4475c0);_0x5c75e0&&_0x5c75e0[_0xde28cd(0x1cf)]((_0x1cabd9,_0x589e15)=>{const _0xe9a8de=_0xde28cd;_0x1cabd9['forEach'](_0x5dbc56=>this[_0xe9a8de(0x16f)](_0x4475c0,_0x11a0fc,_0x589e15,_0x5dbc56));});}[_0x533bf2(0x16f)](_0x1f223d,_0x499722,_0x311465,_0x15c2ce){const _0x58b934=_0x533bf2;let _0x2aade4=this[_0x58b934(0x262)][_0x58b934(0x125)](_0x1f223d);_0x2aade4||(_0x2aade4=new Map(),this[_0x58b934(0x262)][_0x58b934(0x1aa)](_0x1f223d,_0x2aade4));let _0x5c90f1=_0x2aade4[_0x58b934(0x125)](_0x311465);_0x5c90f1||(_0x5c90f1=new Map(),_0x2aade4['set'](_0x311465,_0x5c90f1)),!_0x5c90f1[_0x58b934(0xc4)](_0x15c2ce)&&_0x5c90f1[_0x58b934(0x1aa)](_0x15c2ce,_0x499722['on'](_0x311465,_0x15c2ce));}[_0x533bf2(0x28d)](_0x165f45,_0x251ac9,_0x15e44a){const _0x11d707=_0x533bf2;var _0x1618ed,_0x251715;let _0x19a5eb=(_0x1618ed=this[_0x11d707(0x262)][_0x11d707(0x125)](_0x165f45))==null?void 0x0:_0x1618ed[_0x11d707(0x125)](_0x251ac9);_0x19a5eb==null||(_0x251715=_0x19a5eb['get'](_0x15e44a))==null||_0x251715['dispose'](),_0x19a5eb==null||_0x19a5eb[_0x11d707(0x1fd)](_0x15e44a);}[_0x533bf2(0x17c)](_0x1de01b){const _0x49952c=_0x533bf2;let _0x3e7d25=this[_0x49952c(0x262)]['get'](_0x1de01b);_0x3e7d25==null||_0x3e7d25[_0x49952c(0x1cf)](_0x55f722=>{const _0x152b9e=_0x49952c;_0x55f722[_0x152b9e(0x1cf)](_0x170f2c=>_0x170f2c[_0x152b9e(0x27b)]()),_0x55f722[_0x152b9e(0x13e)]();}),this[_0x49952c(0x262)][_0x49952c(0x1fd)](_0x1de01b);}[_0x533bf2(0x2ed)](_0x430b09,_0xf3b9db){const _0x33b979=_0x533bf2;return $r(_0x430b09,_0xf3b9db,this[_0x33b979(0xe3)]);}[_0x533bf2(0x309)](_0x2ef86a){const _0x44fef8=_0x533bf2;return this[_0x44fef8(0x24d)](_0x2ef86a)==null;}[_0x533bf2(0x24d)](_0xc46e20){const _0x56822a=_0x533bf2;var _0x316996;let _0x4389da=this[_0x56822a(0x106)]['getFloatDomInfo'](_0xc46e20);if(!_0x4389da)return _0x56822a(0x1f6);let {subUnitId:_0x385ec8}=_0x4389da,_0x6d439b=(_0x316996=this[_0x56822a(0x19e)][_0x56822a(0x184)](_0x1302ff[_0x56822a(0x135)]))==null?void 0x0:_0x316996['getActiveSheet']();if(!_0x6d439b)return'missing-active-sheet';if(_0x6d439b['getSheetId']()!==_0x385ec8)return _0x56822a(0x2e3);}async[_0x533bf2(0x2ee)](_0x283b2a,_0x3dd11b,_0x5d3fba){const _0x4aab43=_0x533bf2;let _0xfd667f=this[_0x4aab43(0x114)][_0x4aab43(0x2d8)](_0x5f5aa4);if(!_0xfd667f||(this[_0x4aab43(0x1db)]['set'](_0x283b2a,{'config':_0x3dd11b,'style':_0x5d3fba}),this[_0x4aab43(0x24d)](_0x283b2a)))return;let _0x5ad006=this['_resolveChartRenderMode'](_0x283b2a);if(_0x5ad006===_0xac39e4[_0x4aab43(0x129)])this['_disposeChartDomInstance'](_0x283b2a);else{var _0x110ce6;this['_chartHostProvider'][_0x4aab43(0x99)](_0x283b2a),((_0x110ce6=this['_chartModelService'][_0x4aab43(0x14f)])==null?void 0x0:_0x110ce6['id'])===_0x283b2a&&this[_0x4aab43(0x164)](_0x283b2a);}let _0x22ec16=_0x5ad006===_0xac39e4[_0x4aab43(0x129)]?_0x41159f['Image']:_0x41159f[_0x4aab43(0x144)],_0x94d4aa=await this[_0x4aab43(0x294)][_0x4aab43(0x145)](_0x283b2a,_0x22ec16);if(!_0x94d4aa)return;let _0x386bbd=this[_0x4aab43(0x298)](_0x283b2a,_0x22ec16,_0xfd667f);_0x386bbd[_0x4aab43(0x2da)](_0x94d4aa);try{await _0x386bbd[_0x4aab43(0x2ee)]({'chartId':_0x283b2a,'config':_0x3dd11b,'style':_0x5d3fba});}catch(_0x554925){if(_0x5ad006!==_0xac39e4[_0x4aab43(0x129)])throw _0x554925;}}async[_0x533bf2(0x204)](_0x35ed53,_0x4ccb60,_0x3bc2af){const _0x5bacc5=_0x533bf2;let _0x14e37e=this[_0x5bacc5(0x305)][_0x5bacc5(0x1a0)](_0x35ed53,_0x4ccb60),_0x239fe5=this['_drawingManagerService'][_0x5bacc5(0x170)](_0x35ed53,_0x4ccb60),_0x8f9062=Object[_0x5bacc5(0x281)](_0x14e37e??{})['filter'](_0x478b7c=>_0x478b7c[_0x5bacc5(0x24f)]===_0xc2a308[_0x5bacc5(0xcb)]&&_0x478b7c['hidden']!==!0x0);await Promise['allSettled'](_0x8f9062[_0x5bacc5(0x26c)](async _0x239dde=>{const _0x50c5cb=_0x5bacc5;let _0x74a9e0=await this[_0x50c5cb(0xcc)](_0x239dde,_0x239fe5);_0x74a9e0&&(_0x3bc2af[_0x50c5cb(0x2f9)](_0x74a9e0,_0xaa2b67),_0x239dde[_0x50c5cb(0x10f)]&&_0x4bfe7a({'drawingId':_0x239dde[_0x50c5cb(0x10f)],'unitId':_0x35ed53,'subUnitId':_0x4ccb60},_0x74a9e0,_0x3bc2af,this['_drawingManagerService']));}));}async['_createPrintingChartObject'](_0x4c9a3e,_0x5bc1d6){const _0x385bde=_0x533bf2;let _0x332858=this[_0x385bde(0x2d7)][_0x385bde(0x154)](_0x4c9a3e['drawingId']),_0x33eb21=this['_renderModelManager'][_0x385bde(0x2d8)](_0x5f5aa4),_0x172b58=_0x4c9a3e['transform'],_0x3278b3=_0x332858==null?void 0x0:_0x332858['config'];if(!_0x332858||!_0x33eb21||!_0x172b58||!_0x3278b3||_0x172b58[_0x385bde(0x289)]==null||_0x172b58[_0x385bde(0x10e)]==null)return null;let _0x1d51c8=new Qr(_0x4c9a3e[_0x385bde(0x1ae)],{'width':_0x172b58[_0x385bde(0x289)],'height':_0x172b58['height']}),_0x1c2b5e=_0x33eb21[_0x385bde(0x163)](_0x41159f['Image'],this[_0x385bde(0x2a8)]());_0x1c2b5e[_0x385bde(0x2da)](_0x1d51c8);let _0x935780;try{await _0x1c2b5e['render']({'chartId':_0x4c9a3e['drawingId'],'config':_0x3278b3,'style':this[_0x385bde(0x2ed)](_0x332858,this[_0x385bde(0x1e9)][_0x385bde(0x1e4)]())});}catch(_0x21b008){console[_0x385bde(0x2fd)](_0x385bde(0x1ef),_0x21b008);}finally{_0x935780=_0x1d51c8[_0x385bde(0x307)](),_0x1c2b5e['dispose'](),_0x1d51c8[_0x385bde(0x27b)]();}let _0x4defad=this[_0x385bde(0x2f6)]['getImage']({'unitId':_0x4c9a3e[_0x385bde(0x17e)],'subUnitId':_0x4c9a3e[_0x385bde(0x1f7)],'chartId':_0x4c9a3e['drawingId']}),_0x53003a=_0x935780??_0x4defad;if(!_0x53003a)return null;let _0x13863e=_0x5bc1d6['indexOf'](_0x4c9a3e[_0x385bde(0x1ae)]);return new Br(_0x57c728(_0x4c9a3e),{..._0x172b58,..._0x15b37e,...qr(_0x1d51c8[_0x385bde(0x1c9)]),'visible':!0x0,'zIndex':_0x13863e===-0x1?Math['max'](_0x5bc1d6[_0x385bde(0x221)]-0x1,0x0):_0x13863e},()=>_0x53003a,void 0x0,_0x935780?()=>G(_0x935780):void 0x0);}[_0x533bf2(0x298)](_0x5bcf96,_0x2fb468,_0x5dd0f3){const _0x6f4d0e=_0x533bf2;let _0x430ffd=this[_0x6f4d0e(0x2ac)][_0x6f4d0e(0x125)](_0x5bcf96);if((_0x430ffd==null?void 0x0:_0x430ffd[_0x6f4d0e(0x2c8)])===_0x2fb468)return _0x430ffd;_0x430ffd&&(this[_0x6f4d0e(0x17c)](_0x5bcf96),_0x430ffd['dispose'](),this[_0x6f4d0e(0x2ac)][_0x6f4d0e(0x1fd)](_0x5bcf96));let _0x35cd85=_0x5dd0f3['createChartInstance'](_0x2fb468,this[_0x6f4d0e(0x2a8)]());return this[_0x6f4d0e(0x2ac)][_0x6f4d0e(0x1aa)](_0x5bcf96,_0x35cd85),_0x35cd85[_0x6f4d0e(0x151)](this[_0x6f4d0e(0x296)][_0x6f4d0e(0x125)](_0x5bcf96)===!0x0),this['_bindChartEventHandlers'](_0x5bcf96,_0x35cd85),_0x35cd85;}['_createChartRenderInstanceContext'](){const _0x2781ae=_0x533bf2;return{'resolveHostStyle':({style:_0x9c5953})=>_0x1aa3f2({'style':_0x9c5953,'getRenderColor':_0x23e92f=>this[_0x2781ae(0xb0)][_0x2781ae(0x162)](_0x23e92f)}),'resolveRenderBackgroundColor':({style:_0x224bac})=>this['_chartThemeService'][_0x2781ae(0x162)](_0x1a5353(_0x224bac))};}[_0x533bf2(0x11e)](){const _0x2733df=_0x533bf2;this[_0x2733df(0x1de)][_0x2733df(0x1cf)](_0x27e8f8=>_0x27e8f8['cancel']()),this['_renderDebounceMap'][_0x2733df(0x13e)](),this[_0x2733df(0x183)][_0x2733df(0x1cf)](_0x566179=>_0x566179['cancel']()),this[_0x2733df(0x183)]['clear']();}['dispose'](){const _0x2f2156=_0x533bf2;Array['from'](this[_0x2f2156(0x2ac)]['keys']())[_0x2f2156(0x1cf)](_0x2048a0=>this[_0x2f2156(0x2a5)](_0x2048a0)),this[_0x2f2156(0x296)][_0x2f2156(0x13e)](),this['_cancelDebouncedCallbacks'](),this[_0x2f2156(0x1db)][_0x2f2156(0x13e)](),this['_activeChartId']=null,this[_0x2f2156(0x238)]=null,super[_0x2f2156(0x27b)]();}};X=J([q(0x0,Yr),q(0x1,_0x28410f(_0x10c864)),q(0x2,_0x28410f(_0x538c99)),q(0x3,_0x32f0cf),q(0x4,_0x371c5e),q(0x5,_0x28410f(_0x4c69ff)),q(0x6,_0x28410f(_0x3f8b07)),q(0x7,Y),q(0x8,_0x28410f(_0x4b92dd)),q(0x9,_0x28410f(_0x39ff0a)),q(0xa,_0x28410f(_0x3801a3)),q(0xb,_0x5d6e79),q(0xc,_0x28410f(Ur)),q(0xd,_0x3e474b)],X);var ei;const ti={'axis':{..._0x1bdd05,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x276dc8,'heatmap':_0x532e7e,'indicatorLine':_0xb6da10,'legend':_0x521853,'lineAndArea':_0x8d9db6,'pareto':_0x27a98e,'pie':{..._0x338243,'doughnutHole':0.5,'pieHole':0x0},'relation':{..._0x231633,'useValueAsSymbolSize':!0x0},'radar':_0x313059,'series':{..._0x3d7d3a,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((ei=_0x2d121a[_0x533bf2(0x2dd)])==null?void 0x0:ei[_0x533bf2(0xf5)])??!0x1}},'style':_0x514eb1,'titles':_0x172fb1,'trendline':_0x4ba913,'waterfall':{..._0x15f353,'useSubtotal':!0x0},'waterfallStyle':_0x578664,'wordCloud':_0x5f4dcd},ni=_0x558520=>_0x558520[_0x533bf2(0x184)](_0x1302ff[_0x533bf2(0x135)])[_0x533bf2(0x23a)](),ri=_0x97bea0=>{const _0x2f0862=_0x533bf2;var _0x5bd8d1;return(_0x5bd8d1=_0x97bea0['getCurrentUnitOfType'](_0x1302ff[_0x2f0862(0x135)])[_0x2f0862(0x120)]())==null?void 0x0:_0x5bd8d1[_0x2f0862(0x30b)]();},ii=[_0x52497a[_0x533bf2(0x18d)],_0x52497a[_0x533bf2(0x202)],_0x52497a[_0x533bf2(0x259)],_0x52497a[_0x533bf2(0x9c)],_0x52497a[_0x533bf2(0x16a)],_0x52497a['Relation'],_0x52497a['Sankey'],_0x52497a[_0x533bf2(0x12b)],_0x52497a['Boxplot'],_0x52497a[_0x533bf2(0x243)],_0x52497a['Histogram'],_0x52497a[_0x533bf2(0x288)],_0x52497a[_0x533bf2(0x28c)],_0x52497a[_0x533bf2(0x11d)],_0x52497a[_0x533bf2(0x119)]];function ai(){let _0x4be186=_0x375724();return _0x5d0c77(_0x3ea491,{'visible':ii['every'](_0x4a8868=>!_0x49703d['baseOn'](_0x4be186,_0x4a8868))});}const oi=_0x2d3bc9=>{const _0x28ccfe=_0x533bf2;let _0x11feb5=_0x7a1354(Y),_0x37d093=_0x7a1354(_0x3f8b07),_0x3c9cef=_0x4b9dc3(_0x7a1354(_0x4b92dd)),_0xafbb97=_0x37be06(()=>_0x116915(wr(Sr[_0x28ccfe(0xc8)](),_0x3c9cef)['map'](_0x36aef8=>({'id':_0x36aef8['id'],'label':_0x37d093['t']('sheets-chart-ui.chartTypes.'+_0x36aef8[_0x28ccfe(0x2e6)]),'pieSecondaryPlotType':_0x36aef8[_0x28ccfe(0x1ee)],'value':_0x36aef8[_0x28ccfe(0x2b3)]}))),[_0x3c9cef,_0x37d093]),_0x4d3a2b=_0x3f23d3(_0x11feb5[_0x28ccfe(0x241)],_0x11feb5[_0x28ccfe(0x14f)]),_0xd062ff=_0x3f23d3(_0x4d3a2b==null?void 0x0:_0x4d3a2b['dataSource'][_0x28ccfe(0x273)],_0x4d3a2b==null?void 0x0:_0x4d3a2b[_0x28ccfe(0x166)][_0x28ccfe(0x1f9)]()),_0x5b9b1a=_0xd062ff&&!Array[_0x28ccfe(0x24c)](_0xd062ff)&&_0xd062ff[_0x28ccfe(0x21d)]?_0x1807ec['Row']:_0x1807ec[_0x28ccfe(0x29a)];return _0x57606b(_0x28ccfe(0x1ad),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-5','children':[_0x5d0c77(_0x4438a5,{'options':_0xafbb97}),_0x5d0c77(_0xf9cfb0,{}),_0x5d0c77(_0x1a3dd9,{}),_0x5d0c77(ai,{}),_0x5d0c77(_0x2673ca,{}),_0x5d0c77(si,{'dataRange':_0xd062ff}),_0x5d0c77(_0x3fd79a,{'categoryToggleLabel':_0x37d093['t'](_0x28ccfe(0x190),_0x5b9b1a===_0x1807ec[_0x28ccfe(0x187)]?_0x5b9b1a+'\x20'+(((_0xd062ff==null?void 0x0:_0xd062ff[_0x28ccfe(0xa1)][_0x28ccfe(0x258)][_0x28ccfe(0x105)])??0x0)+0x1):_0x5b9b1a+'\x20'+_0x287b1b((_0xd062ff==null?void 0x0:_0xd062ff[_0x28ccfe(0xa1)][_0x28ccfe(0x258)][_0x28ccfe(0x2f3)])??0x0)),'orientationControl':_0x5d0c77(_0x4de9e3,{'size':_0x28ccfe(0x1b3),'onClick':()=>_0x11feb5[_0x28ccfe(0x1ab)](_0x5b9b1a===_0x1807ec['Row']?_0x1807ec[_0x28ccfe(0x29a)]:_0x1807ec[_0x28ccfe(0x187)]),'children':_0x37d093['t'](_0x28ccfe(0x18b))})}),_0x5d0c77(_0xef3110,{}),_0x5d0c77(_0x54a27f,{'defaultValues':_0x2d3bc9[_0x28ccfe(0x2bf)][_0x28ccfe(0x302)]})]});};function si(_0x36b14b){const _0x5178c8=_0x533bf2;let {dataRange:_0x575ee7}=_0x36b14b,_0x5ca8ea=_0x7a1354(Y),_0x43eaed=_0x7a1354(_0x3f8b07),_0x5868d2=_0x7a1354(_0x371c5e),[_0x1611f2,_0x7e58a0]=_0x15ee11(!0x1),[_0x41fab2,_0x139867]=_0x15ee11(!0x1),_0x1ea138=ni(_0x5868d2),_0x39ecf2=ri(_0x5868d2);_0x48969d(()=>{const _0x1eb503=_0x4f81;_0x5ca8ea[_0x1eb503(0x264)](_0x1611f2);},[_0x1611f2,_0x5ca8ea]);let _0x4deb25=_0x37be06(()=>_0xe22d45(async _0x1fd2b2=>{const _0x2092c5=_0x4f81;var _0x3d5305;if(yr(_0x575ee7,_0x5868d2)===_0x1fd2b2)return;let _0x281ee2=_0x1fd2b2[_0x2092c5(0xc1)](',')['filter'](Boolean)[_0x2092c5(0x26c)](_0x3e25b6)[0x0];if(!_0x281ee2)return;let {unitId:_0x3066c6,sheetName:_0x4fc664,range:_0x5d0f0b}=_0x281ee2,_0x112940=_0x3066c6||_0x1ea138,_0x532f68=((_0x3d5305=_0x5868d2[_0x2092c5(0x275)](_0x112940)[_0x2092c5(0x224)](_0x4fc664))==null?void 0x0:_0x3d5305[_0x2092c5(0x30b)]())||(_0x575ee7==null?void 0x0:_0x575ee7['rangeInfo'][_0x2092c5(0x1f7)]);_0x5ca8ea['setDataRange']({'rangeInfo':{'range':_0x5d0f0b,'unitId':_0x112940,'subUnitId':_0x532f68},'isRowDirection':!0x0});},0x12c,{'leading':!0x1,'maxWait':0x3e8,'trailing':!0x0}),[_0x575ee7,_0x5ca8ea,_0x1ea138,_0x5868d2]);return _0x48969d(()=>()=>_0x4deb25[_0x5178c8(0x30a)](),[_0x4deb25]),_0x5d0c77(_0x5178c8(0x1ad),{'className':_0x5178c8(0x130),'children':_0x57606b(_0x5178c8(0x1ad),{'children':[_0x5d0c77(_0x20d267,{'title':_0x43eaed['t'](_0x5178c8(0xde))}),_0x5d0c77(_0xe63180,{'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'maxRangeCount':0x1,'unitId':_0x1ea138,'subUnitId':_0x39ecf2,'initialValue':_0x575ee7?yr(_0x575ee7,_0x5868d2):'','onChange':(_0x24b16b,_0x31744b)=>_0x4deb25(_0x31744b),'onFocusChange':_0x1a4001=>{_0x41fab2||_0x7e58a0(_0x1a4001);},'onRangeSelectorDialogVisibleChange':_0x55c141=>{_0x139867(_0x55c141),_0x7e58a0(_0x55c141);}})]})});}function Z(_0x178fc5){const _0x22fa23=_0x533bf2;return _0x57606b(_0x30fdf4,{'id':_0x178fc5['id'],'children':[_0x5d0c77(_0x27417e,{'children':_0x178fc5[_0x22fa23(0x2c5)]}),_0x5d0c77(_0x17d4dc,{'children':_0x178fc5[_0x22fa23(0x2cd)]})]});}const ci=_0x932949=>{const _0x237d49=_0x533bf2;let _0x1e8ade=_0x7a1354(_0x3f8b07),_0x327c0f=_0x7a1354(Y),_0x80ddae=_0x3f23d3(_0x327c0f[_0x237d49(0x1e3)],null),_0x4147e4=_0x3f23d3(_0x327c0f['panelRoute$'],null),_0x28d3ac=(_0x4147e4==null?void 0x0:_0x4147e4[_0x237d49(0xbe)])===_0x80ddae?_0x4147e4[_0x237d49(0x2cc)]:null,_0x738cca=_0x375724(),_0x1e900f=_0x3a0738(),[_0x41d684,_0x58a868]=_0x15ee11(null);_0x48969d(()=>{const _0x18ebee=_0x237d49;_0x28d3ac!=null&&_0x28d3ac[_0x18ebee(0x118)]&&_0x58a868(_0x28d3ac[_0x18ebee(0x118)]);},[_0x28d3ac]);let _0x58e217=_0x49703d['baseOn'](_0x738cca,_0x52497a[_0x237d49(0x16d)]),_0x2f0d46=_0x738cca===_0x52497a['Radar'],_0x14c435=_0x738cca===_0x52497a[_0x237d49(0x259)],_0xfa312a=_0x738cca===_0x52497a[_0x237d49(0x16a)],_0x426081=_0x49703d['baseOn'](_0x738cca,_0x52497a[_0x237d49(0xda)]),_0x4351ed=_0x738cca===_0x52497a[_0x237d49(0x2ba)],_0xce8fb5=_0x738cca===_0x52497a[_0x237d49(0xa7)],_0x120cc3=_0x738cca===_0x52497a[_0x237d49(0x2ce)],_0x478cd3=_0x738cca===_0x52497a[_0x237d49(0x12b)],_0x17c4c5,_0x141902;switch(_0x738cca){case _0x52497a[_0x237d49(0x243)]:_0x17c4c5=_0x42e819['Candlestick'],_0x141902=_0x1e8ade['t']('sheets-chart-ui.section.candlestick');break;case _0x52497a[_0x237d49(0x1f3)]:_0x17c4c5=_0x42e819[_0x237d49(0x1f3)],_0x141902=_0x1e8ade['t'](_0x237d49(0x158));break;case _0x52497a[_0x237d49(0x288)]:_0x17c4c5=_0x42e819[_0x237d49(0x288)],_0x141902=_0x1e8ade['t']('sheets-chart-ui.section.treemap');break;case _0x52497a[_0x237d49(0x28c)]:_0x17c4c5=_0x42e819[_0x237d49(0x28c)],_0x141902=_0x1e8ade['t'](_0x237d49(0xec));break;case _0x52497a[_0x237d49(0x11d)]:_0x17c4c5=_0x42e819[_0x237d49(0x11d)],_0x141902=_0x1e8ade['t'](_0x237d49(0x10b));break;case _0x52497a[_0x237d49(0x119)]:_0x17c4c5=_0x42e819[_0x237d49(0x119)],_0x141902=_0x1e8ade['t'](_0x237d49(0xa8));break;}let _0x3737e6=_0x12072f(_0x738cca,_0x2a232a['GeneralSeries'])&&!_0x426081&&!_0x120cc3;return _0x57606b(_0x582859,{'value':_0x41d684,'onChange':_0x58a868,'children':[_0x5d0c77(Z,{'id':_0x42e819[_0x237d49(0x138)],'label':_0x1e8ade['t'](_0x237d49(0x26a)),'children':_0x5d0c77(_0x1016f6,{'defaultValues':_0x932949['defaultValues'][_0x237d49(0x1c9)],'showBodyFont':!0x0})}),_0x5d0c77(Z,{'id':_0x42e819[_0x237d49(0xdf)],'label':_0x1e8ade['t']('sheets-chart-ui.common.chartAndAxisTitles'),'children':_0x5d0c77(_0x479bc2,{'commitMode':'blur','defaultValues':_0x932949[_0x237d49(0x2bf)][_0x237d49(0x186)],'selectedTitleKey':_0x28d3ac==null?void 0x0:_0x28d3ac[_0x237d49(0xc5)]})}),_0x3737e6&&_0x5d0c77(Z,{'id':_0x42e819[_0x237d49(0xfa)],'label':_0x1e8ade['t'](_0x237d49(0x2a6)),'children':_0x5d0c77(_0x5b7d74,{'defaultValues':_0x932949[_0x237d49(0x2bf)][_0x237d49(0xab)],'NumberFormatField':_0x5598d0,'selectedSeriesId':_0x28d3ac==null?void 0x0:_0x28d3ac[_0x237d49(0x185)]})}),_0xce8fb5&&_0x5d0c77(Z,{'id':_0x42e819[_0x237d49(0x161)],'label':_0x1e8ade['t'](_0x237d49(0x261)),'children':_0x5d0c77(_0x39d84c,{'defaultValues':_0x932949[_0x237d49(0x2bf)][_0x237d49(0x20f)],'getDefaultBucketName':({seriesName:_0x3d228b,target:_0x40717d})=>_0x40717d===_0x256130[_0x237d49(0xbd)]?_0x1e8ade['t'](_0x237d49(0x8d)):_0x3d228b?_0x3d228b+'-('+_0x1e8ade['t'](_0x40717d===_0x256130[_0x237d49(0x212)]?_0x237d49(0x111):_0x237d49(0x2ad))+')':'','NumberFormatField':_0x5598d0,'selectedSeriesId':_0x28d3ac==null?void 0x0:_0x28d3ac[_0x237d49(0x185)]})}),_0x120cc3&&_0x57606b(_0x291abc,{'children':[_0x5d0c77(Z,{'id':_0x42e819['ParetoBarSeries'],'label':_0x1e8ade['t']('sheets-chart-ui.section.paretoBar'),'children':_0x5d0c77(_0x47bc27,{'defaultValues':_0x932949[_0x237d49(0x2bf)]['pareto'],'NumberFormatField':_0x5598d0,'showDataPointEditor':!0x0,'target':_0x237d49(0xbc)})}),_0x5d0c77(Z,{'id':_0x42e819[_0x237d49(0x96)],'label':_0x1e8ade['t'](_0x237d49(0x147)),'children':_0x5d0c77(_0x47bc27,{'defaultValues':_0x932949[_0x237d49(0x2bf)][_0x237d49(0x1fa)],'NumberFormatField':_0x5598d0,'showDataPointEditor':!0x1,'target':_0x237d49(0x9f)})})]}),_0x58e217&&_0x5d0c77(Z,{'id':_0x42e819[_0x237d49(0x268)],'label':_0x1e8ade['t'](_0x237d49(0xfe)),'children':_0x5d0c77(_0x311049,{'defaultValues':_0x932949[_0x237d49(0x2bf)]['pie'],'NumberFormatField':_0x5598d0})}),_0x14c435&&_0x5d0c77(Z,{'id':_0x42e819[_0x237d49(0x259)],'label':_0x1e8ade['t'](_0x237d49(0x21e)),'children':_0x5d0c77(_0x3aee00,{'defaultValues':_0x932949['defaultValues'][_0x237d49(0xf1)]})}),_0x2f0d46&&_0x5d0c77(Z,{'id':_0x42e819[_0x237d49(0x202)],'label':_0x1e8ade['t'](_0x237d49(0x17d)),'children':_0x5d0c77(_0x5bfdce,{'defaultValues':_0x932949[_0x237d49(0x2bf)][_0x237d49(0x160)]})}),_0xfa312a&&_0x5d0c77(Z,{'id':_0x42e819[_0x237d49(0x16a)],'label':_0x1e8ade['t'](_0x237d49(0xf8)),'children':_0x5d0c77(_0x1a78cf,{'defaultValues':_0x932949[_0x237d49(0x2bf)][_0x237d49(0xb1)],'gapControl':_0x237d49(0x1f4)})}),_0x478cd3&&_0x5d0c77(Z,{'id':_0x42e819[_0x237d49(0x12b)],'label':_0x1e8ade['t'](_0x237d49(0x18a)),'children':_0x5d0c77(_0x3d4d63,{'defaultValues':_0x932949[_0x237d49(0x2bf)]['heatmap']})}),_0x4351ed&&_0x5d0c77(Z,{'id':_0x42e819[_0x237d49(0x2ba)],'label':_0x1e8ade['t'](_0x237d49(0x128)),'children':_0x5d0c77(_0x34b1f3,{'defaultValues':_0x932949[_0x237d49(0x2bf)][_0x237d49(0x2eb)]})}),_0x5721ec(_0x738cca)&&_0x5d0c77(Z,{'id':_0x42e819[_0x237d49(0x1ce)],'label':_0x1e8ade['t'](_0x237d49(0x2c9)),'children':_0x5d0c77(_0x23621b,{'defaultValues':_0x932949[_0x237d49(0x2bf)][_0x237d49(0x98)],'lineStyleControl':'segmented'})}),_0x12072f(_0x738cca,_0x2a232a[_0x237d49(0x1a7)])&&_0x5d0c77(Z,{'id':_0x42e819[_0x237d49(0x1a7)],'label':_0x1e8ade['t'](_0x237d49(0x271)),'children':_0x5d0c77(_0x53779d,{'defaultValues':_0x932949[_0x237d49(0x2bf)][_0x237d49(0x13f)]})}),_0x12072f(_0x738cca,_0x2a232a[_0x237d49(0x110)])&&_0x57606b(_0x291abc,{'children':[_0x5d0c77(Z,{'id':_0x42e819[_0x237d49(0x209)],'label':_0x1e8ade['t'](_0x237d49(0xa3)),'children':_0x5d0c77(_0xf67165,{'axis':'x','defaultValues':_0x932949['defaultValues'][_0x237d49(0x2e4)],'NumberFormatField':_0x5598d0})}),_0x5d0c77(Z,{'id':_0x42e819[_0x237d49(0x299)],'label':_0x1e8ade['t'](_0x237d49(0x1cd)),'children':_0x5d0c77(_0xf67165,{'axis':'y','defaultValues':_0x932949['defaultValues']['axis'],'NumberFormatField':_0x5598d0})}),_0x1e900f&&_0x5d0c77(Z,{'id':_0x42e819['RightVerticalAxis'],'label':_0x1e8ade['t'](_0x237d49(0x20d)),'children':_0x5d0c77(_0xf67165,{'axis':_0x237d49(0x1ea),'defaultValues':_0x932949[_0x237d49(0x2bf)][_0x237d49(0x2e4)],'NumberFormatField':_0x5598d0})}),_0x5d0c77(Z,{'id':_0x42e819['GridlinesAndTicks'],'label':_0x1e8ade['t'](_0x237d49(0xdd)),'children':_0x5d0c77(_0xecb0d5,{'defaultValues':_0x932949[_0x237d49(0x2bf)][_0x237d49(0x2e4)]})})]}),_0x12072f(_0x738cca,_0x2a232a[_0x237d49(0x2d3)])&&_0x5d0c77(Z,{'id':_0x42e819['IndicatorLine'],'label':_0x1e8ade['t'](_0x237d49(0xb9)),'children':_0x5d0c77(_0x1044fc,{'defaultValues':_0x932949[_0x237d49(0x2bf)]['indicatorLine']})}),_0x36d4f2(_0x738cca)&&_0x5d0c77(Z,{'id':_0x42e819[_0x237d49(0x2a0)],'label':_0x1e8ade['t'](_0x237d49(0x19a)),'children':_0x5d0c77(_0x55acbb,{'defaultValues':_0x932949[_0x237d49(0x2bf)]['trendline']})}),_0x17c4c5&&_0x141902&&_0x5d0c77(Z,{'id':_0x17c4c5,'label':_0x141902,'children':_0x5d0c77(_0x2c390c,{})})]});};function li(_0x14488a){const _0x3b2529=_0x533bf2;let {className:_0x2953ae}=_0x14488a,[_0x164842,_0x3b4525]=_0x15ee11(_0x655832['Data']),_0x149335=_0x7a1354(_0x4b92dd),_0x58e632=_0x7a1354(_0x3f8b07),_0x1f4557=_0x7a1354(Y),_0x5e6146=_0x3f23d3(_0x1f4557[_0x3b2529(0x1e3)],null),_0x5bd68b=_0x3f23d3(_0x1f4557[_0x3b2529(0x241)],null),_0x95fb2b=_0x3f23d3(_0x1f4557['panelRoute$'],null),_0x3ecd38=_0x37be06(()=>{const _0x152131=_0x3b2529;var _0x5182d1;if(!_0x5bd68b)return null;let _0x4ee4d5=_0x5bd68b[_0x152131(0x166)][_0x152131(0x1f9)](),_0x97be6d=Array['isArray'](_0x4ee4d5)?(_0x5182d1=_0x4ee4d5[0x0])==null?void 0x0:_0x5182d1[_0x152131(0x258)]:_0x4ee4d5[_0x152131(0xa1)];return _0x97be6d?new _0x5e57e2(_0x5bd68b,new _0x2f4014({'unitId':_0x97be6d[_0x152131(0x17e)],'subUnitId':_0x97be6d[_0x152131(0x1f7)],'chartId':_0x5bd68b['id'],'injector':_0x149335})):null;},[_0x5bd68b,_0x149335]);return _0x48969d(()=>{const _0x29ee67=_0x3b2529;var _0x5d9efa,_0x3c6f34;(_0x95fb2b==null?void 0x0:_0x95fb2b['chartId'])===_0x5e6146&&(((_0x5d9efa=_0x95fb2b[_0x29ee67(0x2cc)])==null?void 0x0:_0x5d9efa[_0x29ee67(0x123)])===_0x655832['Style']&&_0x3b4525(_0x655832['Style']),((_0x3c6f34=_0x95fb2b[_0x29ee67(0x2cc)])==null?void 0x0:_0x3c6f34[_0x29ee67(0x123)])===_0x655832['Data']&&_0x3b4525(_0x655832[_0x29ee67(0xbb)]));},[_0x5e6146,_0x95fb2b]),_0x3ecd38?_0x5d0c77(_0x7043e2,{'chartUIService':_0x1f4557,'hostAdapter':_0x3ecd38,'children':_0x57606b(_0x3b2529(0x1ad),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-0\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-0\x0a\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'+(_0x164842===_0x655832[_0x3b2529(0xb8)]?_0x3b2529(0x203):_0x3b2529(0x1f1))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2953ae??'')+_0x3b2529(0x16e),'children':[_0x5d0c77(_0xe40130,{'ariaLabel':_0x58e632['t'](_0x3b2529(0x169)),'className':_0x3b2529(0x9b),'items':[{'label':_0x58e632['t'](_0x3b2529(0x1d4)),'panelId':di,'value':_0x655832[_0x3b2529(0xbb)]},{'label':_0x58e632['t'](_0x3b2529(0x17b)),'panelId':fi,'value':_0x655832[_0x3b2529(0xb8)]}],'value':_0x164842,'onChange':_0x3b4525}),_0x164842===_0x655832[_0x3b2529(0xbb)]?_0x5d0c77(_0x3d03fa,{'id':di,'label':_0x58e632['t']('sheets-chart-ui.common.setup'),'children':_0x5d0c77(oi,{'defaultValues':ti})}):_0x5d0c77(_0x3d03fa,{'id':fi,'className':_0x3b2529(0x1e5),'label':_0x58e632['t'](_0x3b2529(0x17b)),'children':_0x5d0c77(ci,{'defaultValues':ti})})]})}):null;}const ui=_0x533bf2(0x256),di=_0x533bf2(0x310),fi=_0x533bf2(0xd8);function pi(_0x519f7e){const _0x1339dc=_0x533bf2;if(_0x519f7e[_0x1339dc(0x221)]!==0x1)return!0x1;let _0x3e3437=_0x519f7e[0x0];return _0x3e3437[_0x1339dc(0x24f)]===_0xc2a308[_0x1339dc(0xcb)]&&!_0x3e3437[_0x1339dc(0x10f)];}let Q=class extends _0x1b05ef{constructor(_0x59549b,_0x37609a,_0x2726f3,_0x20c327,_0x176e0e,_0x4d2dfa,_0x47091f,_0xa87f82,_0x43b8b8,_0x4db207,_0x20c7bc,_0x32c34a,_0x224b9e,_0x16dbef){const _0x5f48db=_0x533bf2;var _0x549fe1;super(),this['_drawingManagerService']=_0x59549b,this['_univerInstanceService']=_0x37609a,this[_0x5f48db(0x2d7)]=_0x2726f3,this['_chartRenderService']=_0x20c327,this[_0x5f48db(0xe0)]=_0x176e0e,this[_0x5f48db(0x23b)]=_0x4d2dfa,this['_menuManagerService']=_0x47091f,this['_sheetCanvasFloatDomManagerService']=_0xa87f82,this[_0x5f48db(0x208)]=_0x43b8b8,this[_0x5f48db(0x90)]=_0x4db207,this['_sheetsChartUIService']=_0x20c7bc,this[_0x5f48db(0x22c)]=_0x32c34a,this['_localeService']=_0x224b9e,W(this,_0x5f48db(0xd1),null),W(this,_0x5f48db(0x117),void 0x0),this['_isChartElementEditEnabled']=((_0x549fe1=_0x16dbef[_0x5f48db(0x8f)](_0x5f48db(0x1b4)))==null?void 0x0:_0x549fe1[_0x5f48db(0x2ff)])===!0x0,this['_initMenus'](),this[_0x5f48db(0x269)](this[_0x5f48db(0x19e)]['getCurrentTypeOfUnit$'](_0x1302ff[_0x5f48db(0x135)])[_0x5f48db(0x28f)](_0x4511f3=>{var _0x4d86dc;_0x4511f3||(_0x4d86dc=this['_sidebarDisposable'])==null||_0x4d86dc['dispose']();})),this[_0x5f48db(0x269)](_0x1f864f(this[_0x5f48db(0xe0)]['onDoubleClick$'][_0x5f48db(0x28f)](async({drawing:_0x1fbfac})=>{const _0x145b19=_0x5f48db;await this[_0x145b19(0x148)](_0x1fbfac);})));}[_0x533bf2(0x29b)](){const _0x9cde2=_0x533bf2;this[_0x9cde2(0xd1)]=this['_sidebarService']['open']({'id':ui,'header':{'title':this['_localeService']['t'](_0x9cde2(0x169))},'width':0x154,'children':{'label':ui},'onClose':()=>{const _0xf69593=_0x9cde2;this['_deactivateEditPanelState'](),this[_0xf69593(0x2d7)][_0xf69593(0x219)](null),this[_0xf69593(0x305)][_0xf69593(0x165)](null),this[_0xf69593(0x22c)][_0xf69593(0x15b)](_0x11a249,!0x1),this[_0xf69593(0xd1)]=null;}});}[_0x533bf2(0x150)](){const _0x419ac1=_0x533bf2;var _0x1e7341;this[_0x419ac1(0x22f)](),this['_chartModelService'][_0x419ac1(0x219)](null),(_0x1e7341=this[_0x419ac1(0xd1)])==null||_0x1e7341['dispose']();}[_0x533bf2(0x285)](){const _0x49e80a=_0x533bf2;let _0x4c7bc6=this[_0x49e80a(0x19e)][_0x49e80a(0x184)](_0x1302ff[_0x49e80a(0x135)]);this[_0x49e80a(0x269)](this[_0x49e80a(0x23b)][_0x49e80a(0x1eb)]['subscribe'](_0x32f9a0=>{const _0x47dc17=_0x49e80a;_0x32f9a0['id']===_0x47dc17(0x256)&&(_0x32f9a0[_0x47dc17(0x15f)]||this[_0x47dc17(0x23b)]['sidebarOptions$']['next']({'visible':!0x1}));})),this['disposeWithMe'](this[_0x49e80a(0x2d7)][_0x49e80a(0x241)][_0x49e80a(0x28f)](_0x22e75e=>{const _0x5dd2f0=_0x49e80a;!_0x22e75e&&this[_0x5dd2f0(0xdb)]['activeEditChart']&&this[_0x5dd2f0(0x150)]();})),this[_0x49e80a(0x269)](this[_0x49e80a(0x90)][_0x49e80a(0x29f)](_0x3895a3=>{const _0x570b59=_0x49e80a;if(_0x3895a3['id']===V['id']){let _0x132f04=_0x3895a3['params'];this[_0x570b59(0x28a)](_0x132f04[_0x570b59(0x1ae)],_0x132f04['route']);}if(_0x3895a3['id']===fr['id']&&this[_0x570b59(0x150)](),_0x3895a3['id']===_0x4ceb47['id']){var _0x2a2275;_0x3895a3[_0x570b59(0x1c2)][_0x570b59(0xbe)]===((_0x2a2275=this[_0x570b59(0x2d7)][_0x570b59(0x14f)])==null?void 0x0:_0x2a2275['id'])&&this[_0x570b59(0x150)](),this[_0x570b59(0x22c)][_0x570b59(0xe5)](_0x11a249)&&(this[_0x570b59(0x22c)][_0x570b59(0x15b)](_0x11a249,!0x1),this[_0x570b59(0x305)][_0x570b59(0x165)](null));}})),this[_0x49e80a(0x269)](this['_sheetCanvasFloatDomManagerService'][_0x49e80a(0x26b)][_0x49e80a(0x28f)](({id:_0x3b3a0c})=>{const _0x195a97=_0x49e80a;_0x3b3a0c===this[_0x195a97(0xdb)][_0x195a97(0x2c1)]&&this[_0x195a97(0x150)]();})),this[_0x49e80a(0x269)](this['_sheetCanvasFloatDomManagerService'][_0x49e80a(0x199)][_0x49e80a(0x28f)](({id:_0x14aa16})=>{const _0x55b704=_0x49e80a;_0x14aa16===this[_0x55b704(0xdb)]['activeEditChart']&&(this[_0x55b704(0xdb)][_0x55b704(0x2b8)](null),this[_0x55b704(0xdb)]['clearPanelRoute'](),this[_0x55b704(0x15e)][_0x55b704(0x151)](_0x14aa16,!0x1),this[_0x55b704(0xfd)](_0x14aa16)&&this['_chartRenderService'][_0x55b704(0x151)](_0x14aa16,!0x0));})),this['disposeWithMe'](this[_0x49e80a(0x305)][_0x49e80a(0x2f0)][_0x49e80a(0x28f)](_0x4b7598=>{const _0x5e77ea=_0x49e80a;let _0x56807c=_0x4b7598[0x0];if(!this[_0x5e77ea(0xdb)][_0x5e77ea(0x246)]){if(pi(_0x4b7598)){var _0x56cacc;let _0x253e74=this['_chartModelService']['getChartModel'](_0x56807c[_0x5e77ea(0x1ae)]);_0x253e74&&((_0x56cacc=this[_0x5e77ea(0x2d7)][_0x5e77ea(0x14f)])==null?void 0x0:_0x56cacc['id'])!==_0x253e74['id']&&this['_chartModelService'][_0x5e77ea(0x219)](_0x253e74);return;}this[_0x5e77ea(0x2d7)][_0x5e77ea(0x14f)]&&this[_0x5e77ea(0x2d7)][_0x5e77ea(0x219)](null),!_0x56807c&&!this['_sheetsChartUIService'][_0x5e77ea(0x246)]&&this[_0x5e77ea(0x150)]();}})),_0x4c7bc6&&(this['disposeWithMe'](_0x4c7bc6[_0x49e80a(0x13d)]['subscribe'](()=>{const _0x25b1ac=_0x49e80a;this[_0x25b1ac(0x150)]();})),this[_0x49e80a(0x269)](_0x4c7bc6[_0x49e80a(0xf0)][_0x49e80a(0x28f)](()=>{const _0x1af6df=_0x49e80a;this[_0x1af6df(0x150)]();})));}async[_0x533bf2(0x148)](_0x2a956a){const _0x1a1725=_0x533bf2;this['_sheetsChartUIService'][_0x1a1725(0x2c1)]||_0x2a956a[_0x1a1725(0x24f)]===_0xc2a308[_0x1a1725(0xcb)]&&await this[_0x1a1725(0xb6)](_0x2a956a[_0x1a1725(0x17e)],_0x2a956a['subUnitId'],_0x2a956a[_0x1a1725(0x1ae)]);}async[_0x533bf2(0xb6)](_0x551816,_0xdb6880,_0x332947){const _0x2dbbb7=_0x533bf2;let _0x8a107=this[_0x2dbbb7(0x2d7)][_0x2dbbb7(0x154)](_0x332947);_0x8a107&&(this[_0x2dbbb7(0x2d7)][_0x2dbbb7(0x219)](_0x8a107),await this[_0x2dbbb7(0x90)][_0x2dbbb7(0x19c)](V['id'],{'unitId':_0x551816,'subUnitId':_0xdb6880,'drawingId':_0x332947}));}[_0x533bf2(0x28a)](_0xa68212,_0x537c90){const _0xf1efd1=_0x533bf2;let _0x2e5a1e=this['_chartModelService'][_0xf1efd1(0x154)](_0xa68212);_0x2e5a1e&&(this[_0xf1efd1(0x2d7)][_0xf1efd1(0x219)](_0x2e5a1e),this[_0xf1efd1(0x29b)](),this['_activateEditPanelState'](_0xa68212,_0x537c90??null));}[_0x533bf2(0xc9)](_0x3a292f,_0x54b969){const _0x55f182=_0x533bf2;let _0x36c3f6=this[_0x55f182(0xdb)][_0x55f182(0x2c1)];_0x36c3f6&&_0x36c3f6!==_0x3a292f&&(this[_0x55f182(0x15e)][_0x55f182(0x151)](_0x36c3f6,!0x1),this['_sheetsChartUIService'][_0x55f182(0x2b8)](null)),this['_sheetsChartUIService']['setActiveEditChart'](_0x3a292f),this[_0x55f182(0xdb)]['setPanelRoute'](_0x3a292f,_0x54b969),this[_0x55f182(0x15e)][_0x55f182(0x151)](_0x3a292f,this['_shouldEnableChartElementEdit'](_0x3a292f));}['_deactivateEditPanelState'](){const _0x36e96a=_0x533bf2;let _0x2d7aa2=this['_sheetsChartUIService'][_0x36e96a(0x2c1)];_0x2d7aa2&&this[_0x36e96a(0x15e)][_0x36e96a(0x151)](_0x2d7aa2,!0x1),this[_0x36e96a(0xdb)][_0x36e96a(0xf4)](null),this[_0x36e96a(0xdb)][_0x36e96a(0x2b8)](null),this[_0x36e96a(0xdb)][_0x36e96a(0x1fc)]();}[_0x533bf2(0x24e)](){const _0x427db4=_0x533bf2;this[_0x427db4(0x295)][_0x427db4(0x1bd)](jr),this['_sheetCanvasPopManagerService'][_0x427db4(0x276)](_0xc2a308[_0x427db4(0xcb)],this[_0x427db4(0x290)][_0x427db4(0x2da)](this));}['_shouldEnableChartElementEdit'](_0x2ebf49){const _0x20d578=_0x533bf2;let _0x38630a=this['_chartModelService']['getChartModel'](_0x2ebf49);return!this['_isChartElementEditEnabled']||!_0x38630a?!0x1:Nr(_0x38630a[_0x20d578(0x237)]);}['getChartPopupMenus'](_0x146f06,_0x7b8bfb,_0x125ab,_0x2c970b){const _0x793264=_0x533bf2;return[{'label':this['_localeService']['t'](_0x793264(0x2f4)),'index':0x0,'commandId':V['id'],'commandParams':{'unitId':_0x146f06,'subUnitId':_0x7b8bfb,'drawingId':_0x125ab},'disable':_0x2c970b!==_0xc2a308[_0x793264(0xcb)]},{'label':this[_0x793264(0x1e9)]['t'](_0x793264(0xd6)),'index':0x1,'commandId':_0xf80612['id'],'commandParams':{'unitId':_0x146f06,'drawings':[{'unitId':_0x146f06,'subUnitId':_0x7b8bfb,'drawingId':_0x125ab,'drawingType':_0x2c970b}]},'disable':!0x1},{'label':this[_0x793264(0x1e9)]['t'](_0x793264(0x18e)),'index':0x2,'commandId':fr['id'],'commandParams':{'unitId':_0x146f06,'subUnitId':_0x7b8bfb,'drawingId':_0x125ab},'disable':!0x1}];}};Q=J([q(0x0,_0x32f0cf),q(0x1,_0x371c5e),q(0x2,_0x28410f(_0x538c99)),q(0x3,_0x28410f(X)),q(0x4,_0x28410f(_0x3fcfc9)),q(0x5,_0x28410f(_0x315d34)),q(0x6,_0x542957),q(0x7,_0x28410f(_0x10c864)),q(0x8,_0x28410f(_0x199d2a)),q(0x9,_0x413077),q(0xa,Y),q(0xb,_0x263bb6),q(0xc,_0x28410f(_0x3f8b07)),q(0xd,_0x5d6e79)],Q);var mi=_0x533bf2(0x1d3),hi='1.0.0-beta.1';const gi={'scaleX':0x1,'scaleY':0x1};function _i(_0x4383fe){const _0x484eed=_0x533bf2;let _0x4714bd=_0x4383fe[_0x484eed(0x1d2)];return _0x4714bd instanceof MouseEvent?_0x4714bd:void 0x0;}function vi(_0x445093){const _0x1c6f13=_0x533bf2;let _0x10e705=_0x445093[_0x1c6f13(0x1d2)],_0x11d8fb=_0x10e705==null?void 0x0:_0x10e705[_0x1c6f13(0x26f)];return _0x11d8fb instanceof Element?_0x11d8fb:void 0x0;}function yi(_0x25165c){var _0x60a58d;return(_0x60a58d=vi(_0x25165c))==null?void 0x0:_0x60a58d['getBoundingClientRect']();}function bi(_0xfc660a){const _0x1cf20b=_0x533bf2;return _0xfc660a['width']||_0xfc660a['right']-_0xfc660a[_0x1cf20b(0x234)];}function xi(_0x149d7b){const _0xfe0d96=_0x533bf2;return _0x149d7b['height']||_0x149d7b[_0xfe0d96(0x263)]-_0x149d7b[_0xfe0d96(0x291)];}function Si(_0x2da02b,_0xde9597){const _0x155fe1=_0x533bf2;let _0x645790=_0x2da02b['clientWidth']||(_0x2da02b instanceof HTMLElement?_0x2da02b[_0x155fe1(0x14a)]:0x0),_0x6b61b8=_0x2da02b['clientHeight']||(_0x2da02b instanceof HTMLElement?_0x2da02b[_0x155fe1(0xe6)]:0x0),_0x5cfdf5=bi(_0xde9597),_0x1fa8d9=xi(_0xde9597);return{'scaleX':_0x645790>0x0&&_0x5cfdf5>0x0?_0x5cfdf5/_0x645790:gi[_0x155fe1(0xc2)],'scaleY':_0x6b61b8>0x0&&_0x1fa8d9>0x0?_0x1fa8d9/_0x6b61b8:gi[_0x155fe1(0x19d)]};}function Ci(_0x5f7b59,_0x1077ff,_0x24b8ce){const _0x2d63b3=_0x533bf2;return{'left':_0x5f7b59[_0x2d63b3(0x234)]+_0x1077ff['left']*_0x24b8ce['scaleX'],'right':_0x5f7b59[_0x2d63b3(0x234)]+_0x1077ff[_0x2d63b3(0x1e6)]*_0x24b8ce[_0x2d63b3(0xc2)],'top':_0x5f7b59[_0x2d63b3(0x291)]+_0x1077ff[_0x2d63b3(0x291)]*_0x24b8ce[_0x2d63b3(0x19d)],'bottom':_0x5f7b59['top']+_0x1077ff[_0x2d63b3(0x263)]*_0x24b8ce[_0x2d63b3(0x19d)]};}function wi(_0x5c0a81){const _0x5bf657=_0x533bf2;let _0x29ad53=vi(_0x5c0a81),_0x6ca30e=_0x5c0a81[_0x5bf657(0xcd)][_0x5bf657(0x29d)];return _0x29ad53&&_0x6ca30e?()=>{let _0x38cae8=_0x29ad53['getBoundingClientRect']();return Ci(_0x38cae8,_0x6ca30e,Si(_0x29ad53,_0x38cae8));}:()=>{const _0x1df82d=_0x5bf657;let _0x44e754=yi(_0x5c0a81);if(_0x44e754&&_0x6ca30e)return Ci(_0x44e754,_0x6ca30e,_0x29ad53?Si(_0x29ad53,_0x44e754):gi);let _0x52dbaf=_i(_0x5c0a81),_0x58edd2=_0x29ad53&&_0x44e754?Si(_0x29ad53,_0x44e754):gi,_0x45ad91=(_0x52dbaf==null?void 0x0:_0x52dbaf[_0x1df82d(0x2b4)])??(_0x44e754?_0x44e754[_0x1df82d(0x234)]+_0x5c0a81['localPoint']['x']*_0x58edd2[_0x1df82d(0xc2)]:_0x5c0a81[_0x1df82d(0x2b9)]['x']),_0x3f5c30=(_0x52dbaf==null?void 0x0:_0x52dbaf[_0x1df82d(0x282)])??(_0x44e754?_0x44e754[_0x1df82d(0x291)]+_0x5c0a81[_0x1df82d(0x2b9)]['y']*_0x58edd2[_0x1df82d(0x19d)]:_0x5c0a81['localPoint']['y']);return{'left':_0x45ad91,'right':_0x45ad91+0x1,'top':_0x3f5c30,'bottom':_0x3f5c30+0x1};};}function Ti(_0x53fa57){const _0xc4eca3=_0x533bf2;return typeof _0x53fa57==_0xc4eca3(0x239)&&Number[_0xc4eca3(0x252)](_0x53fa57);}function Ei(_0x197f6b){const _0x8e1e0f=_0x533bf2;if(!_0x197f6b||typeof _0x197f6b!=_0x8e1e0f(0x27a))return!0x0;let {startX:_0x42b229,endX:_0x45b519,startY:_0x19f97a,endY:_0x3e5f68}=_0x197f6b;return!Ti(_0x42b229)||!Ti(_0x45b519)||!Ti(_0x19f97a)||!Ti(_0x3e5f68)||_0x45b519-_0x42b229>0x2&&_0x3e5f68-_0x19f97a>0x2;}function Di(_0x3b6527){const _0x27fa3f=_0x533bf2;return _0x3b6527[_0x27fa3f(0x1e6)]<=_0x3b6527[_0x27fa3f(0x234)]||_0x3b6527[_0x27fa3f(0x263)]<=_0x3b6527[_0x27fa3f(0x291)]?!0x1:typeof window>'u'||_0x3b6527[_0x27fa3f(0x1e6)]>0x0&&_0x3b6527[_0x27fa3f(0x263)]>0x0&&_0x3b6527[_0x27fa3f(0x234)]<window[_0x27fa3f(0x210)]&&_0x3b6527[_0x27fa3f(0x291)]<window[_0x27fa3f(0x27f)];}function Oi(_0x11cabc){const _0x511799=_0x533bf2;var _0x5937f4;return _0x11cabc==null||(_0x5937f4=_0x11cabc[_0x511799(0x27d)])==null?void 0x0:_0x5937f4[_0x511799(0xc0)](_0x11cabc);}function ki(_0x2b57e3,_0x4b3388,_0x1373d2){const _0x4bc684=_0x533bf2;let _0x468642=wi(_0x2b57e3),_0x36a5e1=Oi(_0x4b3388),_0x1ec60f=_0x468642(),_0x31714d=new _0x53aede(_0x1ec60f),_0x34f821=new _0xbb67f(),_0x5edea2=!0x1,_0x4dfc97=!0x1,_0x3b3200=_0x3ff02e=>Ei(_0x36a5e1)&&Di(_0x3ff02e),_0x55ac47=()=>{_0x4dfc97||_0x5edea2||(_0x4dfc97=!0x0,queueMicrotask(()=>{const _0x4e276d=_0x4f81;if(_0x4dfc97=!0x1,!_0x5edea2){let _0x1f4bde=_0x468642();if(!_0x3b3200(_0x1f4bde)){_0x1373d2();return;}_0x31714d[_0x4e276d(0x93)](_0x1f4bde);}}));};return _0x4b3388&&_0x34f821[_0x4bc684(0x2db)](_0x4b3388[_0x4bc684(0x28f)](_0x441c44=>{_0x36a5e1=_0x441c44,_0x55ac47();})),typeof window<'u'&&_0x34f821[_0x4bc684(0x2db)](_0x3a8e71(_0x50fa50(window,'scroll',{'capture':!0x0}),_0x50fa50(window,'resize'))[_0x4bc684(0xaf)](_0x442c3b(0x10))[_0x4bc684(0x28f)](_0x55ac47)),{'initialRect':_0x1ec60f,'anchorRect$':_0x31714d[_0x4bc684(0x2ae)](),'visible':_0x3b3200(_0x1ec60f),'dispose':()=>{const _0x38b328=_0x4bc684;_0x5edea2=!0x0,_0x34f821['dispose'](),_0x31714d[_0x38b328(0x193)]();}};}const Ai=_0x533bf2(0x17f);let ji=class extends _0x1b05ef{constructor(_0x489bad,_0x90cbb6,_0xbc821f,_0x1512ad,_0x48ba6c,_0x1b38bc,_0x5d2239,_0x366294,_0xd3fce){const _0xc0917b=_0x533bf2;super(),this['_chartModelService']=_0x489bad,this[_0xc0917b(0x15e)]=_0x90cbb6,this[_0xc0917b(0x294)]=_0xbc821f,this[_0xc0917b(0x208)]=_0x1512ad,this[_0xc0917b(0x106)]=_0x48ba6c,this[_0xc0917b(0xff)]=_0x1b38bc,this[_0xc0917b(0x173)]=_0x5d2239,this['_commandService']=_0x366294,this[_0xc0917b(0x226)]=_0xd3fce,W(this,_0xc0917b(0xae),null),W(this,_0xc0917b(0x13b),null),this[_0xc0917b(0x10a)](),this[_0xc0917b(0x287)]();}['dispose'](){const _0x26c942=_0x533bf2;this['_closePopup'](),super[_0x26c942(0x27b)]();}[_0x533bf2(0x10a)](){const _0x1a5cb1=_0x533bf2;let _0x90be43=_0x2c1df6({'chartUIService':this[_0x1a5cb1(0xff)],'getHostAdapter':_0x45fbe9=>{const _0x58b8cc=_0x1a5cb1;this['_setActiveChart'](_0x45fbe9[_0x58b8cc(0xbe)]);let _0x34c04d=this[_0x58b8cc(0x2d7)]['getChartModel'](_0x45fbe9[_0x58b8cc(0xbe)]);if(!(!_0x34c04d||!_0x45fbe9['subUnitId']))return new _0x5e57e2(_0x34c04d,new _0x2f4014({'unitId':_0x45fbe9[_0x58b8cc(0x17e)],'subUnitId':_0x45fbe9['subUnitId'],'chartId':_0x45fbe9[_0x58b8cc(0xbe)],'injector':this['_injector']}));},'close':()=>this['_closePopup'](),'openFullPanel':_0x183f61=>{const _0x4f026c=_0x1a5cb1;let {unitId:_0x5a21e1,subUnitId:_0x2e3a16,drawingId:_0x199bf2,chartId:_0x47c500}=_0x183f61,_0x4b3b99=_0x44a37b(_0x183f61[_0x4f026c(0x26f)]);this[_0x4f026c(0x90)][_0x4f026c(0x19c)](V['id'],{'unitId':_0x5a21e1,'subUnitId':_0x2e3a16??'','drawingId':_0x199bf2??_0x47c500,..._0x4b3b99?{'route':_0x4b3b99}:{}});}});this['disposeWithMe'](this[_0x1a5cb1(0x173)][_0x1a5cb1(0x159)](Ai,_0x90be43));}[_0x533bf2(0x287)](){const _0x40a81a=_0x533bf2;this['disposeWithMe'](this[_0x40a81a(0x2d7)]['chartModelAdded$']['subscribe'](_0x4b77bd=>{const _0x45916d=_0x40a81a;let _0x840f70=new _0xbb67f();_0x840f70[_0x45916d(0x2db)](this[_0x45916d(0x15e)]['on'](_0x4b77bd['id'],_0x45916d(0x1c8),_0x555132=>{const _0x233bb5=_0x45916d;this[_0x233bb5(0x2ec)](_0x4b77bd['id'],_0x555132);})),_0x840f70[_0x45916d(0x2db)](this[_0x45916d(0x15e)]['on'](_0x4b77bd['id'],_0x45916d(0xa9),()=>{const _0x4b2ed8=_0x45916d;this[_0x4b2ed8(0xb6)](_0x4b77bd['id']);})),_0x4b77bd[_0x45916d(0x205)](()=>{const _0x2f7eb0=_0x45916d;_0x840f70[_0x2f7eb0(0x27b)](),this[_0x2f7eb0(0x11f)](_0x4b77bd['id']);}),this['disposeWithMe'](_0x840f70);})),this[_0x40a81a(0x269)](this[_0x40a81a(0xff)]['activeEditChart$']['subscribe'](_0x485033=>{const _0xb84ed1=_0x40a81a;(!_0x485033||this['_popupChartId']&&_0x485033!==this[_0xb84ed1(0x13b)])&&this[_0xb84ed1(0x2d9)]();})),this['disposeWithMe'](this['_sheetCanvasFloatDomManagerService'][_0x40a81a(0x199)][_0x40a81a(0x28f)](({id:_0x1c72f9})=>{this['_clearSelectedTarget'](_0x1c72f9);})),this[_0x40a81a(0x269)](this['_sheetCanvasFloatDomManagerService'][_0x40a81a(0x26b)][_0x40a81a(0x28f)](({id:_0x104186})=>{const _0x182217=_0x40a81a;this[_0x182217(0x11f)](_0x104186);})),this[_0x40a81a(0x269)](this[_0x40a81a(0x294)]['removeHost$'][_0x40a81a(0x28f)](_0x437cf0=>{const _0x4c9734=_0x40a81a;this[_0x4c9734(0x11f)](_0x437cf0);}));}[_0x533bf2(0xb6)](_0x7c30c3){const _0x395585=_0x533bf2;if(this[_0x395585(0xff)]['activeEditChart'])return;let _0x14aea8=this[_0x395585(0x2d7)]['getChartModel'](_0x7c30c3),_0x50179b=this['_sheetCanvasFloatDomManagerService']['getFloatDomInfo'](_0x7c30c3);!_0x14aea8||!_0x50179b||(this[_0x395585(0x2d7)]['setActiveChartModel'](_0x14aea8),this[_0x395585(0x90)][_0x395585(0x19c)](V['id'],{'unitId':_0x50179b[_0x395585(0x17e)],'subUnitId':_0x50179b[_0x395585(0x1f7)]??'','drawingId':_0x7c30c3}));}['_setActiveChart'](_0x38028c){const _0xbd0832=_0x533bf2;let _0x2ca18e=this[_0xbd0832(0x2d7)][_0xbd0832(0x154)](_0x38028c);_0x2ca18e&&this['_chartModelService'][_0xbd0832(0x219)](_0x2ca18e);}[_0x533bf2(0x2ec)](_0x44fda6,_0x37be5b){const _0x14dcfb=_0x533bf2;if(!this[_0x14dcfb(0xff)][_0x14dcfb(0x12c)](_0x44fda6))return;let _0x23f478=this[_0x14dcfb(0x2d7)]['getChartModel'](_0x44fda6),_0x4512c9=_0x23f478?Pr(_0x23f478,_0x37be5b[_0x14dcfb(0xcd)]):void 0x0;if(!_0x4512c9){this[_0x14dcfb(0xff)][_0x14dcfb(0x2b8)](null),this[_0x14dcfb(0xff)][_0x14dcfb(0x1fc)](),this['_closePopup']();return;}let _0x459ccd=this['_sheetCanvasFloatDomManagerService'][_0x14dcfb(0x20c)](_0x44fda6);if(!_0x23f478||!_0x459ccd){this['_chartUIService'][_0x14dcfb(0x2b8)](null),this[_0x14dcfb(0xff)]['clearPanelRoute'](),this[_0x14dcfb(0x2d9)]();return;}if(this['_chartModelService'][_0x14dcfb(0x219)](_0x23f478),this['_chartUIService'][_0x14dcfb(0x2b8)]({'chartId':_0x44fda6,'element':_0x37be5b['hit'],'target':_0x4512c9['target'],'route':_0x4512c9[_0x14dcfb(0x2cc)]}),this[_0x14dcfb(0xff)][_0x14dcfb(0x2e7)](_0x44fda6,_0x4512c9[_0x14dcfb(0x2cc)]),this[_0x14dcfb(0x2d9)](),!_0x4512c9[_0x14dcfb(0x311)])return;let _0xe6fb47=ki(_0x37be5b,_0x459ccd[_0x14dcfb(0x1e8)],()=>this[_0x14dcfb(0x1b5)](_0x44fda6));if(!_0xe6fb47['visible']){_0xe6fb47[_0x14dcfb(0x27b)]();return;}let _0x54a87c=this[_0x14dcfb(0x208)][_0x14dcfb(0x1a5)](_0xe6fb47[_0x14dcfb(0xe4)],_0xe6fb47['anchorRect$'],{'componentKey':_0xa436e2,'constrainToCanvas':!0x0,'direction':'top-center','offset':[0x0,0x8],'extraProps':{'unitId':_0x459ccd['unitId'],'subUnitId':_0x459ccd[_0x14dcfb(0x1f7)],'chartId':_0x44fda6,'drawingId':_0x44fda6,'element':_0x37be5b[_0x14dcfb(0xcd)],'target':_0x4512c9['target'],'adapterKey':Ai}},_0x459ccd[_0x14dcfb(0x17e)],_0x459ccd['subUnitId'])??null;if(!_0x54a87c){_0xe6fb47[_0x14dcfb(0x27b)]();return;}let _0x1ad0be=new _0xbb67f();_0x1ad0be[_0x14dcfb(0x2db)](_0x54a87c),_0x1ad0be[_0x14dcfb(0x2db)](_0xe6fb47),this['_popupDisposable']=_0x1ad0be,this['_popupChartId']=_0x44fda6;}[_0x533bf2(0x2d9)](){var _0x49a7d6;(_0x49a7d6=this['_popupDisposable'])==null||_0x49a7d6['dispose'](),this['_popupDisposable']=null,this['_popupChartId']=null;}[_0x533bf2(0x11f)](_0x1942de){const _0x12acff=_0x533bf2;!this[_0x12acff(0xff)][_0x12acff(0x12c)](_0x1942de)&&this[_0x12acff(0x13b)]!==_0x1942de||(this['_chartUIService'][_0x12acff(0x2b8)](null),this[_0x12acff(0xff)]['clearPanelRoute'](),this['_popupChartId']===_0x1942de&&this['_closePopup']());}[_0x533bf2(0x1b5)](_0x2eb821){const _0x48c3e2=_0x533bf2;this[_0x48c3e2(0x11f)](_0x2eb821),this['_chartUIService'][_0x48c3e2(0x12c)](_0x2eb821)&&(this[_0x48c3e2(0x15e)][_0x48c3e2(0x151)](_0x2eb821,!0x1),this[_0x48c3e2(0x15e)][_0x48c3e2(0x151)](_0x2eb821,!0x0));}};ji=J([q(0x0,_0x28410f(_0x538c99)),q(0x1,_0x28410f(X)),q(0x2,Yr),q(0x3,_0x28410f(_0x199d2a)),q(0x4,_0x28410f(_0x10c864)),q(0x5,Y),q(0x6,_0x28410f(_0x1d0732)),q(0x7,_0x413077),q(0x8,_0x28410f(_0x4b92dd))],ji);let Mi=class extends _0x1b05ef{constructor(_0x3d5a66,_0x30f553){const _0x54f068=_0x533bf2;super(),this[_0x54f068(0xc6)]=_0x3d5a66,this[_0x54f068(0x2d7)]=_0x30f553,this[_0x54f068(0x14d)]();}[_0x533bf2(0x14d)](){const _0x4005d2=_0x533bf2;this['disposeWithMe'](this[_0x4005d2(0xc6)][_0x4005d2(0x20b)][_0x4005d2(0x28f)](_0x9db24=>{const _0x25df0d=_0x4005d2;this[_0x25df0d(0x2d7)][_0x25df0d(0x1dd)](_0x9db24);}));}};Mi=J([q(0x0,Yr),q(0x1,_0x28410f(_0x538c99))],Mi);let Ni=class extends _0x1b05ef{constructor(_0x43fdcc,_0xb3ae04,_0x4596ff,_0x525acf,_0x215613,_0x1f4b33){const _0x34bc88=_0x533bf2;super(),this[_0x34bc88(0x2d7)]=_0x43fdcc,this['_chartRenderService']=_0xb3ae04,this['_localeService']=_0x4596ff,this[_0x34bc88(0xff)]=_0x525acf,this[_0x34bc88(0x90)]=_0x215613,this['_sheetPrintInterceptorService']=_0x1f4b33,W(this,_0x34bc88(0xac),new Map()),this[_0x34bc88(0x14d)](),this[_0x34bc88(0x2f1)](),this[_0x34bc88(0x28b)]();}[_0x533bf2(0x28b)](){const _0x35f291=_0x533bf2;this['disposeWithMe'](this[_0x35f291(0x1ba)][_0x35f291(0x153)]['intercept'](this['_sheetPrintInterceptorService'][_0x35f291(0x153)]['getInterceptPoints']()[_0x35f291(0xbf)],{'handler':(_0x42c0ba,_0x3e976c,_0x377484)=>{const _0x3cf9c1=_0x35f291;let _0x38b742=this[_0x3cf9c1(0x15e)][_0x3cf9c1(0x204)](_0x3e976c[_0x3cf9c1(0x17e)],_0x3e976c[_0x3cf9c1(0x1f7)],_0x3e976c[_0x3cf9c1(0x244)]);return _0x3e976c[_0x3cf9c1(0x1c4)][_0x3cf9c1(0x2db)](_0x38b742),_0x377484(_0x42c0ba);}}));}[_0x533bf2(0x14d)](){const _0x76056=_0x533bf2;this[_0x76056(0x269)](this[_0x76056(0x2d7)][_0x76056(0x23d)][_0x76056(0x28f)](_0x59468b=>{const _0x4ef1af=_0x76056;if(_0x59468b){let _0x1d0f82=new _0xbb67f();_0x1d0f82['add'](_0x59468b[_0x4ef1af(0x250)]['pipe'](_0x445cf1(_0x59468b['style$']),_0x445cf1(this[_0x4ef1af(0x1e9)][_0x4ef1af(0x15d)]),_0x35a815(0x64))[_0x4ef1af(0x28f)](([[_0x277666,_0x9c5225],_0x916cc3])=>{const _0x2f646c=_0x4ef1af;var _0x1091bd;if(!_0x277666)return;(_0x1091bd=_0x277666[_0x2f646c(0x12e)])==null||_0x1091bd[_0x2f646c(0xf2)][_0x2f646c(0x1cf)]((_0x4823ed,_0x147a30)=>{const _0x260bd9=_0x2f646c;_0x4823ed[_0x260bd9(0x2c5)]||=this[_0x260bd9(0x1e9)]['t']('sheets-chart-ui.common.category')+'\x20'+(_0x147a30+0x1);}),_0x277666[_0x2f646c(0xab)][_0x2f646c(0x1cf)]((_0x5d741d,_0xf41cb8)=>{const _0x22a1dc=_0x2f646c;_0x5d741d['name']||=this[_0x22a1dc(0x1e9)]['t']('sheets-chart-ui.chord.target')+'\x20'+(_0xf41cb8+0x1);});let _0x1ecc50=this['_chartRenderService'][_0x2f646c(0x2ed)](_0x59468b,_0x916cc3);this[_0x2f646c(0x15e)][_0x2f646c(0x2ee)](_0x59468b['id'],_0x277666,_0x1ecc50);})),_0x59468b['onDispose'](()=>{const _0x3cc96e=_0x4ef1af;_0x1d0f82[_0x3cc96e(0x27b)]();});}}));}[_0x533bf2(0x2f1)](){const _0x1b08c5=_0x533bf2;this[_0x1b08c5(0x269)](this['_commandService'][_0x1b08c5(0x29f)](_0x20576e=>{const _0xac89d0=_0x1b08c5;if(_0x20576e['id']!==_0xdd60ff['id'])return;let _0x532f2a=_0x20576e[_0xac89d0(0x1c2)];_0x532f2a!=null&&_0x532f2a['chartModelId']&&Promise[_0xac89d0(0x2f2)]()['then'](()=>this[_0xac89d0(0x23f)](_0x532f2a));}));}[_0x533bf2(0x23f)](_0x2769ea){const _0x4ff567=_0x533bf2;let _0x10a28b=this[_0x4ff567(0x2d7)][_0x4ff567(0x154)](_0x2769ea[_0x4ff567(0x116)]);if(!_0x10a28b||_0x10a28b[_0x4ff567(0x237)]!==_0x52497a[_0x4ff567(0x259)])return;let _0x5e59c1=_0x10a28b[_0x4ff567(0x215)];if(!_0x5e59c1){this[_0x4ff567(0x2c3)](_0x10a28b);return;}this[_0x4ff567(0xf3)](_0x10a28b,_0x5e59c1);}[_0x533bf2(0x2c3)](_0x4ae045){const _0x3c46e9=_0x533bf2;if(this[_0x3c46e9(0xac)]['get'](_0x4ae045['id']))return;let _0x396b96=_0x4ae045[_0x3c46e9(0x250)][_0x3c46e9(0xaf)](_0x1fcd24(_0x4f483d=>_0x4f483d!=null),_0x57056f(0x1))[_0x3c46e9(0x28f)](_0x3264e0=>{const _0x3386dc=_0x3c46e9;this[_0x3386dc(0xac)]['delete'](_0x4ae045['id']),this['_renderChartModel'](_0x4ae045,_0x3264e0);});this[_0x3c46e9(0xac)]['set'](_0x4ae045['id'],_0x396b96),_0x4ae045['onDispose'](()=>{const _0xd26373=_0x3c46e9;_0x396b96[_0xd26373(0x216)](),this[_0xd26373(0xac)]['delete'](_0x4ae045['id']);});}[_0x533bf2(0xf3)](_0x426bc3,_0x3e0ee7){const _0x5084b8=_0x533bf2;let _0x48c085=this['_chartRenderService'][_0x5084b8(0x2ed)](_0x426bc3,this[_0x5084b8(0x1e9)]['getDirection']());this['_chartRenderService'][_0x5084b8(0x2ee)](_0x426bc3['id'],_0x3e0ee7,_0x48c085);}};Ni=J([q(0x0,_0x28410f(_0x538c99)),q(0x1,_0x28410f(X)),q(0x2,_0x28410f(_0x3f8b07)),q(0x3,Y),q(0x4,_0x413077),q(0x5,_0x28410f(_0x55853b))],Ni);let Pi=class extends _0x1b05ef{constructor(_0x16e864,_0x1e3d1b,_0x3c522c,_0x44c948){const _0x48d105=_0x533bf2;super(),this[_0x48d105(0x19e)]=_0x16e864,this['_sheetInterceptorService']=_0x1e3d1b,this['_sheetDrawingService']=_0x3c522c,this[_0x48d105(0x2d7)]=_0x44c948,this[_0x48d105(0x192)]();}[_0x533bf2(0x192)](){const _0x1f791c=_0x533bf2;this['disposeWithMe'](this[_0x1f791c(0x1df)]['interceptCommand']({'getMutations':_0x19ae8a=>{const _0x2e7c88=_0x1f791c;if(_0x19ae8a['id']===_0x200288['id']){let _0x43b54b=_0x4774b5(this[_0x2e7c88(0x19e)],_0x19ae8a[_0x2e7c88(0x1c2)]);if(!_0x43b54b)return{'redos':[],'undos':[]};let {unitId:_0x1d229a,subUnitId:_0x187b2e}=_0x43b54b,_0x3bc97f=this[_0x2e7c88(0x23c)]['getDrawingData'](_0x1d229a,_0x187b2e),_0x4ab46e=Object[_0x2e7c88(0x281)](_0x3bc97f)[_0x2e7c88(0xaa)](_0x663d9b=>_0x663d9b[_0x2e7c88(0x24f)]===_0xc2a308[_0x2e7c88(0xcb)]);if(_0x4ab46e[_0x2e7c88(0x221)]===0x0)return{'redos':[],'undos':[]};let _0x5b8638=[],_0x151aa7=[];for(let _0xd39d97=0x0;_0xd39d97<_0x4ab46e['length'];_0xd39d97++){let _0xb7f945=_0x4ab46e[_0xd39d97],_0x778fe3=this[_0x2e7c88(0x2d7)][_0x2e7c88(0x154)](_0xb7f945[_0x2e7c88(0x1ae)]);if(!_0x778fe3)continue;let _0x2d0eba=_0x778fe3[_0x2e7c88(0x166)][_0x2e7c88(0x1f9)](),{chartType:_0x3b8241,context:_0x2e7914,style:_0x3311ae,dataAggregation:_0x1e5683}=_0x778fe3[_0x2e7c88(0x12f)](),{redo:_0x1dbe9f,undo:_0x4124a5,objects:_0x37a338}=this[_0x2e7c88(0x23c)][_0x2e7c88(0x28e)]([_0xb7f945]);_0x5b8638[_0x2e7c88(0x1d7)]({'id':_0x4ceb47['id'],'params':{'unitId':_0x1d229a,'subUnitId':_0x187b2e,'chartId':_0xb7f945[_0x2e7c88(0x1ae)]}}),_0x5b8638['push']({'id':_0x1ee14a['id'],'params':{'unitId':_0x1d229a,'subUnitId':_0x187b2e,'type':_0x4ef90d[_0x2e7c88(0xd2)],'op':_0x1dbe9f,'objects':_0x37a338}}),_0x151aa7[_0x2e7c88(0x1d7)]({'id':_0x1ee14a['id'],'params':{'unitId':_0x1d229a,'subUnitId':_0x187b2e,'type':_0x4ef90d[_0x2e7c88(0x189)],'op':_0x4124a5,'objects':_0x37a338}}),_0x151aa7['push']({'id':_0x8740fa['id'],'params':{'unitId':_0x1d229a,'subUnitId':_0x187b2e,'chartId':_0xb7f945[_0x2e7c88(0x1ae)],'chartType':_0x3b8241,..._0x5c5743(_0x2d0eba),'context':_0x2e7914,'style':_0x3311ae,'dataAggregation':_0x1e5683}});}return{'redos':_0x5b8638,'undos':_0x151aa7};}else{if(_0x19ae8a['id']===_0x12f458['id']){let {unitId:_0x413206,subUnitId:_0x3b2f04,targetSubUnitId:_0x23af96}=_0x19ae8a[_0x2e7c88(0x1c2)];if(!_0x413206||!_0x3b2f04||!_0x23af96)return{'redos':[],'undos':[]};let _0x562372=this[_0x2e7c88(0x23c)][_0x2e7c88(0x1a0)](_0x413206,_0x3b2f04),_0x1cf7bb=Object[_0x2e7c88(0x281)](_0x562372)[_0x2e7c88(0xaa)](_0xe57b4b=>_0xe57b4b[_0x2e7c88(0x24f)]===_0xc2a308['DRAWING_CHART']);if(_0x1cf7bb[_0x2e7c88(0x221)]===0x0)return{'redos':[],'undos':[]};let _0x47c2ea=[],_0x2f8305=[];for(let _0x5efd52=0x0;_0x5efd52<_0x1cf7bb[_0x2e7c88(0x221)];_0x5efd52++){let _0x2ea382=_0x1cf7bb[_0x5efd52],_0x2cca27=this[_0x2e7c88(0x2d7)][_0x2e7c88(0x154)](_0x2ea382[_0x2e7c88(0x1ae)]);if(!_0x2cca27)continue;let _0x5e944c=_0x3a6851(),_0x4e3e0c={..._0x2ea382,'unitId':_0x413206,'subUnitId':_0x23af96,'drawingId':_0x5e944c},_0x7474ae=_0x2cca27['dataSource'][_0x2e7c88(0x1f9)](),_0x338997=Array[_0x2e7c88(0x24c)](_0x7474ae)?_0x7474ae[_0x2e7c88(0x26c)](_0x476fa0=>({..._0x476fa0,..._0x476fa0[_0x2e7c88(0xca)]?{'header':{..._0x476fa0['header'],'subUnitId':_0x23af96}}:{},'range':{..._0x476fa0[_0x2e7c88(0x258)],'subUnitId':_0x23af96}})):{..._0x7474ae,'rangeInfo':{..._0x7474ae['rangeInfo'],'subUnitId':_0x23af96}},{chartType:_0x2d755e,context:_0x49f9b1,style:_0x486bbd,dataAggregation:_0x11a143}=_0x2cca27[_0x2e7c88(0x12f)](),{redo:_0x1cf896,undo:_0x4ceea2,objects:_0x2eba8e}=this[_0x2e7c88(0x23c)][_0x2e7c88(0x1ca)]([_0x4e3e0c]);_0x47c2ea[_0x2e7c88(0x1d7)]({'id':_0x1ee14a['id'],'params':{'unitId':_0x413206,'subUnitId':_0x23af96,'type':_0x4ef90d[_0x2e7c88(0x189)],'op':_0x1cf896,'objects':_0x2eba8e}}),_0x47c2ea[_0x2e7c88(0x1d7)]({'id':_0x8740fa['id'],'params':{'unitId':_0x413206,'subUnitId':_0x23af96,'chartId':_0x5e944c,'chartType':_0x2d755e,..._0x5c5743(_0x338997),'context':_0x49f9b1,'style':_0x486bbd,'dataAggregation':_0x11a143}}),_0x2f8305[_0x2e7c88(0x1d7)]({'id':_0x4ceb47['id'],'params':{'unitId':_0x413206,'subUnitId':_0x23af96,'chartId':_0x5e944c}}),_0x2f8305[_0x2e7c88(0x1d7)]({'id':_0x1ee14a['id'],'params':{'unitId':_0x413206,'subUnitId':_0x23af96,'type':_0x4ef90d['REMOVE'],'op':_0x4ceea2,'objects':_0x2eba8e}});}return{'redos':_0x47c2ea,'undos':_0x2f8305};}}return{'redos':[],'undos':[]};}}));}};Pi=J([q(0x0,_0x28410f(_0x371c5e)),q(0x1,_0x28410f(_0x2dd957)),q(0x2,_0x28410f(_0x49382d)),q(0x3,_0x28410f(_0x538c99))],Pi);let Fi=class extends _0x1b05ef{constructor(_0x31edc8,_0x52638f){const _0x369ba6=_0x533bf2;super(),this[_0x369ba6(0x1b2)]=_0x31edc8,this[_0x369ba6(0x1c6)]=_0x52638f,this[_0x369ba6(0x18c)](),this[_0x369ba6(0x25b)]();}['_registerIcons'](){const _0x539e59=_0x533bf2;this[_0x539e59(0x269)](this[_0x539e59(0x1c6)]['register']({'PenIcon':_0x3f19de}));}[_0x533bf2(0x25b)](){const _0x1075dd=_0x533bf2;[[ui,li]][_0x1075dd(0x1cf)](([_0x9a341a,_0x180b43])=>{const _0x28450e=_0x1075dd;this[_0x28450e(0x269)](this[_0x28450e(0x1b2)][_0x28450e(0x159)](_0x9a341a,_0x180b43));});}};Fi=J([q(0x0,_0x28410f(_0x53334b)),q(0x1,_0x28410f(_0x1edf8a))],Fi);let Ii=class extends _0x1b05ef{constructor(_0x461c23,_0x163790,_0x3d582b,_0x27ad15){const _0xa6783a=_0x533bf2;super(),this[_0xa6783a(0x1cc)]=_0x461c23,this[_0xa6783a(0x229)]=_0x163790,this[_0xa6783a(0x23c)]=_0x3d582b,this['_chartModelService']=_0x27ad15,W(this,_0xa6783a(0x1a6),void 0x0),this[_0xa6783a(0x2cb)]();}get[_0x533bf2(0x15c)](){const _0x587c92=_0x533bf2;return this[_0x587c92(0x23c)][_0x587c92(0x1f2)]();}[_0x533bf2(0x2cb)](){const _0x14c4d2=_0x533bf2;this['disposeWithMe'](this[_0x14c4d2(0x229)][_0x14c4d2(0x156)]({'id':_0x159303,'onBeforeCopy':(_0x28a963,_0x51d328,_0x4e59e9,_0xf134ad)=>{const _0x4e7295=_0x14c4d2;this[_0x4e7295(0x1a6)]=null;let _0x2d7fa7=this[_0x4e7295(0x15c)];if(_0x2d7fa7['length']){let _0x527790=_0x2d7fa7[_0x4e7295(0xaa)](_0x111cfb=>_0x111cfb['drawingType']===_0xc2a308[_0x4e7295(0xcb)]);if(_0x527790[_0x4e7295(0x221)]===0x0)return;this[_0x4e7295(0x1a6)]={'unitId':_0x28a963,'subUnitId':_0x51d328,'copyType':_0xf134ad,'drawings':_0x527790};}else this[_0x4e7295(0x272)](_0x28a963,_0x51d328,_0x4e59e9,_0xf134ad);},'onPasteCells':(_0x3ee72d,_0x5673a2,_0x1cbdbb,_0x1b823a)=>{const _0x49ed93=_0x14c4d2;if(!this[_0x49ed93(0x1a6)])return{'redos':[],'undos':[]};let {pasteType:_0x8043a}=_0x1b823a;return _0x8043a===_0x41cea3['DEFAULT_PASTE']?this[_0x49ed93(0x218)](_0x5673a2,this[_0x49ed93(0x1a6)][_0x49ed93(0x2e5)]===_0x3eadd3['CUT']):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x3b4547=>this[_0x14c4d2(0x1a6)]?this[_0x14c4d2(0x218)](_0x3b4547,this[_0x14c4d2(0x1a6)][_0x14c4d2(0x2e5)]===_0x3eadd3[_0x14c4d2(0x174)]):{'redos':[],'undos':[]}}));}[_0x533bf2(0x272)](_0x3f586e,_0x5ba47b,_0x54be6c,_0x1d4cf4){const _0x451692=_0x533bf2;let _0xbc5aab=this[_0x451692(0x1cc)][_0x451692(0x22d)](_0x3f586e,_0x5ba47b);if(!_0xbc5aab)return;let _0x4066f8=_0x170817(_0xbc5aab,_0x54be6c);if(!_0x4066f8)return;let {startX:_0x1b3bbe,endX:_0x5b7ff5,startY:_0x162fb6,endY:_0x21cb0e}=_0x4066f8,_0x558fb9=this[_0x451692(0x23c)][_0x451692(0x1a0)](_0x3f586e,_0x5ba47b),_0x3faf03=this['_focusedDrawings'][_0x451692(0x304)]();for(let [_0xaee730,_0x52e5c5]of Object[_0x451692(0x2b0)](_0x558fb9)){if(_0x52e5c5['drawingType']!==_0xc2a308[_0x451692(0xcb)])continue;let {transform:_0x1f8a7e}=_0x52e5c5;if(!_0x1f8a7e)continue;let {left:_0x17551a=0x0,top:_0x21f912=0x0,width:_0x49724b=0x0,height:_0x10d68a=0x0}=_0x1f8a7e;_0x1b3bbe<=_0x17551a&&_0x5b7ff5>=_0x17551a+_0x49724b&&_0x162fb6<=_0x21f912&&_0x21cb0e>=_0x21f912+_0x10d68a&&_0x3faf03['push'](_0x52e5c5);}_0x3faf03['length']>0x0&&(this[_0x451692(0x1a6)]={'unitId':_0x3f586e,'subUnitId':_0x5ba47b,'copyType':_0x1d4cf4,'copyRange':_0x54be6c,'drawings':_0x3faf03});}[_0x533bf2(0x218)](_0x46a4b4,_0x3caa59){const _0x3faf10=_0x533bf2;let {unitId:_0xf7e99f,subUnitId:_0x1b0a32,range:_0x2b5ccd}=_0x46a4b4,_0x5f0e2f=this[_0x3faf10(0x1cc)][_0x3faf10(0x22d)](_0xf7e99f,_0x1b0a32);if(!_0x5f0e2f)return{'redos':[],'undos':[]};let _0x2ac51d=_0x3a930d(_0x2b5ccd),{unitId:_0x2cccb6,subUnitId:_0x3837dc,copyRange:_0x173674,drawings:_0xc424f8}=this[_0x3faf10(0x1a6)],_0x20c6fb=this[_0x3faf10(0x1cc)][_0x3faf10(0x22d)](_0x2cccb6,_0x3837dc);if(!_0x20c6fb)return{'redos':[],'undos':[]};let _0x473fff=[],_0x1a5764=[];for(let _0x48967d of _0xc424f8){let {drawingId:_0x2dad2b,transform:_0x5a7a93,sheetTransform:_0x108fac}=_0x48967d,_0x25ff45=this[_0x3faf10(0x2d7)][_0x3faf10(0x154)](_0x2dad2b);if(!_0x25ff45||!_0x5a7a93||!_0x108fac)continue;let _0x25f650=this[_0x3faf10(0x30e)]({'transform':_0x5a7a93,'sheetTransform':_0x108fac},{'skeleton':_0x20c6fb,'range':_0x173674},{'skeleton':_0x5f0e2f,'range':_0x2ac51d});if(_0x3caa59){let {redos:_0x4a0c3d,undos:_0x4ac7d4}=this['_generateCutPasteMutations']({'fromUnitId':_0x2cccb6,'fromSubUnitId':_0x3837dc,'toUnitId':_0xf7e99f,'toSubUnitId':_0x1b0a32,'drawing':_0x48967d,'newTransforms':_0x25f650},_0x25ff45);_0x473fff['push'](..._0x4a0c3d),_0x1a5764[_0x3faf10(0x1d7)](..._0x4ac7d4);continue;}let {redos:_0x28e62b,undos:_0x299ea0}=this[_0x3faf10(0xd5)]({'toUnitId':_0xf7e99f,'toSubUnitId':_0x1b0a32,'drawing':_0x48967d,'newTransforms':_0x25f650},_0x25ff45);_0x473fff[_0x3faf10(0x1d7)](..._0x28e62b),_0x1a5764[_0x3faf10(0x1d7)](..._0x299ea0);}return{'redos':_0x473fff,'undos':_0x1a5764};}['_generateCutPasteMutations'](_0x1779a9,_0x5e965b){const _0x361072=_0x533bf2;let {fromUnitId:_0x4459f4,fromSubUnitId:_0x3e9265,toUnitId:_0x5a9509,toSubUnitId:_0x4ce83e,drawing:_0x4aeb29,newTransforms:_0x4f0645}=_0x1779a9,_0x3dafe2={..._0x4aeb29,'unitId':_0x5a9509,'subUnitId':_0x4ce83e,'transform':_0x4f0645[_0x361072(0x2d2)],'sheetTransform':_0x4f0645['sheetTransform']};if(_0x5a9509===_0x4459f4&&_0x4ce83e===_0x3e9265){let {redo:_0x4de2bc,undo:_0x2eac61,objects:_0x23f4b9}=this[_0x361072(0x23c)][_0x361072(0xee)]([_0x3dafe2]);return{'redos':[{'id':_0x1ee14a['id'],'params':{'unitId':_0x5a9509,'subUnitId':_0x4ce83e,'type':_0x4ef90d[_0x361072(0x2ca)],'op':_0x4de2bc,'objects':_0x23f4b9}}],'undos':[{'id':_0x1ee14a['id'],'params':{'unitId':_0x5a9509,'subUnitId':_0x4ce83e,'type':_0x4ef90d['UPDATE'],'op':_0x2eac61,'objects':_0x23f4b9}}]};}else{let _0x33a630=this['_sheetDrawingService'][_0x361072(0x28e)]([_0x4aeb29]),_0x2248c8=this[_0x361072(0x23c)]['getBatchAddOp']([_0x3dafe2]),_0xa48958=_0x5e965b[_0x361072(0x166)][_0x361072(0x1f9)](),{chartType:_0x2e13e3,context:_0x2889ae,style:_0x24bdf5,dataAggregation:_0x163512}=_0x5e965b[_0x361072(0x12f)]();return{'redos':[{'id':_0x1ee14a['id'],'params':{'unitId':_0x4459f4,'subUnitId':_0x3e9265,'type':_0x4ef90d['REMOVE'],'op':_0x33a630[_0x361072(0xc3)],'objects':_0x33a630[_0x361072(0x157)]}},{'id':_0x4ceb47['id'],'params':{'unitId':_0x4459f4,'subUnitId':_0x3e9265,'chartId':_0x4aeb29[_0x361072(0x1ae)]}},{'id':_0x1ee14a['id'],'params':{'unitId':_0x5a9509,'subUnitId':_0x4ce83e,'type':_0x4ef90d[_0x361072(0x189)],'op':_0x2248c8['redo'],'objects':_0x2248c8[_0x361072(0x157)]}},{'id':_0x8740fa['id'],'params':{'unitId':_0x5a9509,'subUnitId':_0x4ce83e,'chartId':_0x4aeb29['drawingId'],'chartType':_0x2e13e3,..._0x5c5743(_0xa48958),'context':_0x2889ae,'style':_0x24bdf5,'dataAggregation':_0x163512}}],'undos':[{'id':_0x1ee14a['id'],'params':{'unitId':_0x4459f4,'subUnitId':_0x3e9265,'type':_0x4ef90d['INSERT'],'op':_0x33a630[_0x361072(0x1a8)],'objects':_0x33a630[_0x361072(0x157)]}},{'id':_0x8740fa['id'],'params':{'unitId':_0x4459f4,'subUnitId':_0x3e9265,'chartId':_0x4aeb29[_0x361072(0x1ae)],'chartType':_0x2e13e3,..._0x5c5743(_0xa48958),'context':_0x2889ae,'style':_0x24bdf5,'dataAggregation':_0x163512}},{'id':_0x1ee14a['id'],'params':{'unitId':_0x5a9509,'subUnitId':_0x4ce83e,'type':_0x4ef90d[_0x361072(0xd2)],'op':_0x2248c8[_0x361072(0x1a8)],'objects':_0x2248c8[_0x361072(0x157)]}},{'id':_0x4ceb47['id'],'params':{'unitId':_0x5a9509,'subUnitId':_0x4ce83e,'chartId':_0x4aeb29['drawingId']}}]};}}[_0x533bf2(0xd5)](_0x31f7dd,_0x34b19c){const _0x2adffe=_0x533bf2;let {toUnitId:_0x43b0bc,toSubUnitId:_0x107ac0,drawing:_0x2177a9,newTransforms:_0x293eb5}=_0x31f7dd,_0x148d30=_0x3a6851(),_0x263f1d={..._0x2177a9,'unitId':_0x43b0bc,'subUnitId':_0x107ac0,'drawingId':_0x148d30,'transform':_0x293eb5[_0x2adffe(0x2d2)],'sheetTransform':_0x293eb5[_0x2adffe(0x181)]},{redo:_0x4e58d4,undo:_0x2c50cc,objects:_0xae7c67}=this[_0x2adffe(0x23c)][_0x2adffe(0x1ca)]([_0x263f1d]),_0x349dc0=_0x34b19c['dataSource'][_0x2adffe(0x1f9)](),{chartType:_0x2969b4,context:_0x3a0046,style:_0x56a815,dataAggregation:_0x3c2d7c}=_0x34b19c[_0x2adffe(0x12f)]();return{'redos':[{'id':_0x1ee14a['id'],'params':{'unitId':_0x43b0bc,'subUnitId':_0x107ac0,'type':_0x4ef90d[_0x2adffe(0x189)],'op':_0x4e58d4,'objects':_0xae7c67}},{'id':_0x8740fa['id'],'params':{'unitId':_0x43b0bc,'subUnitId':_0x107ac0,'chartId':_0x148d30,'chartType':_0x2969b4,..._0x5c5743(_0x349dc0),'context':_0x3a0046,'style':_0x56a815,'dataAggregation':_0x3c2d7c}}],'undos':[{'id':_0x1ee14a['id'],'params':{'unitId':_0x43b0bc,'subUnitId':_0x107ac0,'type':_0x4ef90d[_0x2adffe(0xd2)],'op':_0x2c50cc,'objects':_0xae7c67}},{'id':_0x4ceb47['id'],'params':{'unitId':_0x43b0bc,'subUnitId':_0x107ac0,'chartId':_0x148d30}}]};}[_0x533bf2(0x30e)](_0x584d3e,_0x3ea9d0,_0x48781a){const _0x1f2e67=_0x533bf2;let {range:_0x4ac8d9,skeleton:_0x110bbf}=_0x3ea9d0,{range:_0x59eb0b,skeleton:_0x34f7b4}=_0x48781a,{transform:_0x12276c,sheetTransform:_0x4bb165}=_0x584d3e,_0x5cfa75={..._0x12276c};if(_0x4ac8d9){let _0x3f707c=_0x170817(_0x110bbf,_0x4ac8d9),_0x1cc845=_0x170817(_0x34f7b4,_0x59eb0b);if(_0x3f707c&&_0x1cc845){let _0x5475b2=_0x1cc845['startX']-_0x3f707c[_0x1f2e67(0x2ef)],_0xb33979=_0x1cc845[_0x1f2e67(0x1c7)]-_0x3f707c['startY'];_0x5cfa75[_0x1f2e67(0x234)]=(_0x5cfa75[_0x1f2e67(0x234)]??0x0)+_0x5475b2,_0x5cfa75[_0x1f2e67(0x291)]=(_0x5cfa75['top']??0x0)+_0xb33979;}}else{let _0x372c11=_0x170817(_0x34f7b4,_0x59eb0b);_0x5cfa75[_0x1f2e67(0x234)]=_0x372c11==null?void 0x0:_0x372c11[_0x1f2e67(0x2ef)],_0x5cfa75[_0x1f2e67(0x291)]=_0x372c11==null?void 0x0:_0x372c11[_0x1f2e67(0x1c7)];}return{'transform':_0x5cfa75,'sheetTransform':_0x1a36ef(_0x5cfa75,_0x34f7b4)??_0x4bb165};}};Ii=J([q(0x0,_0x28410f(_0x5cd6cc)),q(0x1,_0x28410f(_0x2933d1)),q(0x2,_0x28410f(_0x49382d)),q(0x3,_0x28410f(_0x538c99))],Ii);let Li=class extends _0x1b05ef{constructor(_0x3f78d3,_0x3a3ac9,_0x459b09,_0x417cb9){const _0x2c6dfd=_0x533bf2;super(),this[_0x2c6dfd(0x90)]=_0x3f78d3,this[_0x2c6dfd(0x1e9)]=_0x3a3ac9,this[_0x2c6dfd(0x2f7)]=_0x459b09,this[_0x2c6dfd(0x168)]=_0x417cb9,this['_initPermission']();}[_0x533bf2(0x104)](){const _0x42e110=_0x533bf2;this['disposeWithMe'](this[_0x42e110(0x90)]['beforeCommandExecuted'](_0x392fd8=>{const _0x285a6c=_0x42e110;let _0x5f05b0,_0x297bc5;if(_0x392fd8['id']===_0x17d872['id']){let _0x26baea=_0x392fd8[_0x285a6c(0x1c2)];_0x5f05b0=_0x26baea[_0x285a6c(0x17e)],_0x297bc5=_0x26baea[_0x285a6c(0x1f7)];}else{if(_0x392fd8['id']===_0x32b2ba['id']||_0x392fd8['id']===_0x575ee3['id']){let _0x31ef9f=_0x392fd8[_0x285a6c(0x1c2)];_0x5f05b0=_0x31ef9f['unitId'],_0x297bc5=this[_0x285a6c(0x168)]['getSubUnitId'](_0x31ef9f[_0x285a6c(0x17e)],_0x31ef9f[_0x285a6c(0x116)]);}}!_0x5f05b0||!_0x297bc5||this[_0x285a6c(0x2f7)][_0x285a6c(0xeb)]({'workbookTypes':[_0x5572e0],'worksheetTypes':[_0x3d338d]},_0x5f05b0,_0x297bc5)||this[_0x285a6c(0x2f7)][_0x285a6c(0x137)](this[_0x285a6c(0x1e9)]['t'](_0x285a6c(0x242)));}));}};Li=J([q(0x0,_0x28410f(_0x413077)),q(0x1,_0x28410f(_0x3f8b07)),q(0x2,_0x28410f(_0x7e07e)),q(0x3,_0x28410f(_0x1d97a8))],Li);let Ri=class extends _0x1b05ef{constructor(_0x5b7a74,_0x3ea765){const _0x27951c=_0x533bf2;super(),this[_0x27951c(0x308)]=_0x3ea765,this[_0x27951c(0x269)](_0x5b7a74[_0x27951c(0x159)](this));}['supports'](_0x4d997f){const _0x499978=_0x533bf2;return _0x499978(0x17e)in _0x4d997f&&_0x499978(0x1f7)in _0x4d997f;}['exportImage'](_0x528041){const _0x47f614=_0x533bf2;return this[_0x47f614(0x308)][_0x47f614(0x266)](_0x528041['getId']());}};Ri=J([q(0x0,_0x28410f(_0x4755ef)),q(0x1,_0x28410f(X))],Ri);let $=class extends _0x470b7e{constructor(_0x5ebb84=dr,_0x50fa54,_0x409706,_0x145d4f){const _0xe3ce63=_0x533bf2;super(),this[_0xe3ce63(0x233)]=_0x5ebb84,this['_injector']=_0x50fa54,this[_0xe3ce63(0x2ea)]=_0x409706,this[_0xe3ce63(0x90)]=_0x145d4f,W(this,_0xe3ce63(0xa0),void 0x0);let {..._0x513069}=_0x4a99a7({},dr,this[_0xe3ce63(0x233)]);this[_0xe3ce63(0xa0)]=_0x513069,this[_0xe3ce63(0x2ea)][_0xe3ce63(0x1b8)](ur,_0x513069),this[_0xe3ce63(0xba)]();}[_0x533bf2(0x2f5)](){const _0x136d5c=_0x533bf2;this[_0x136d5c(0x226)][_0x136d5c(0x2db)]([Fi]),this['_injector'][_0x136d5c(0x125)](Fi);let _0x3f1fd4=this[_0x136d5c(0x226)],_0x4e86b2=[[Y,{'useClass':Xr}],[Yr,{'useClass':Jr}],[Ur],[X],[Ri],[Q],[Mi],[Ni],[Ii],[Pi],[Li]],_0x5b1a26=[[Q],[Ni],[Mi],[Ri],[Y],[Ii],[Pi],[Li]];this[_0x136d5c(0xa0)][_0x136d5c(0x2ff)]&&(_0x4e86b2[_0x136d5c(0x1d7)]([ji]),_0x5b1a26[_0x136d5c(0x1d7)]([ji])),_0x4e86b2[_0x136d5c(0x1cf)](_0x267d72=>_0x3f1fd4['add'](_0x267d72)),_0x5b8dfc(this[_0x136d5c(0x226)],_0x5b1a26);}['onRendered'](){const _0x111afa=_0x533bf2;var _0x293ea6;(_0x293ea6=this[_0x111afa(0x226)][_0x111afa(0x125)](Q))==null||_0x293ea6[_0x111afa(0x285)]();}[_0x533bf2(0xba)](){const _0x58a02a=_0x533bf2;[vr,mr,hr,gr,_r,V,fr][_0x58a02a(0x1cf)](_0x28f2ee=>this[_0x58a02a(0x269)](this[_0x58a02a(0x90)][_0x58a02a(0x232)](_0x28f2ee)));}};W($,_0x533bf2(0x20a),_0x1302ff[_0x533bf2(0x135)]),W($,_0x533bf2(0x236),_0x533bf2(0x19f)),W($,_0x533bf2(0x2c0),mi),W($,'version',hi),$=J([_0x17c104(_0x409320,_0x1fab36,_0x2ac6a0,_0x459686,_0x36aab4,_0x2a6dc3,_0x1c2f0a,_0xb7a1e7,_0x20ed54),q(0x1,_0x28410f(_0x4b92dd)),q(0x2,_0x5d6e79),q(0x3,_0x413077)],$);export{Y as ISheetsChartUIService,ur as SHEETS_CHART_UI_PLUGIN_CONFIG_KEY,Q as SheetsChartUIController,jr as SheetsChartUIMenuSchema,Xr as SheetsChartUIService,$ as UniverSheetsChartUIPlugin};
|
|
1
|
+
const _0x2e596f=_0x4926;(function(_0x5be052,_0x88ba7b){const _0x5c28ab=_0x4926,_0x4a9ecc=_0x5be052();while(!![]){try{const _0x146ccf=-parseInt(_0x5c28ab(0x373))/0x1+-parseInt(_0x5c28ab(0x3c9))/0x2+-parseInt(_0x5c28ab(0x240))/0x3*(parseInt(_0x5c28ab(0x27a))/0x4)+parseInt(_0x5c28ab(0x255))/0x5*(-parseInt(_0x5c28ab(0x2d0))/0x6)+parseInt(_0x5c28ab(0x18d))/0x7+parseInt(_0x5c28ab(0x180))/0x8*(parseInt(_0x5c28ab(0x18f))/0x9)+parseInt(_0x5c28ab(0x40b))/0xa;if(_0x146ccf===_0x88ba7b)break;else _0x4a9ecc['push'](_0x4a9ecc['shift']());}catch(_0x1333cb){_0x4a9ecc['push'](_0x4a9ecc['shift']());}}}(_0x4890,0x871f2));import{ChartModelService as _0x507ffa,ChartRenderMode as _0x3330c2,ChartUpdateConfigCommand as _0xc54c6,ChartUpdateConfigMutation as _0x5abdbf,ChartUpdateSourceCommand as _0x56a07d,InsertChartCommand as _0x4488a9,InsertSheetsChartMutation as _0x130a2a,RemoveSheetsChartMutation as _0x3ce90c,SHEETS_CHART_PLUGIN_CONFIG_KEY as _0x5b4a64,SHEETS_CHART_PLUGIN_NAME as _0x16e896,SheetChartConfigAdapter as _0x57abae,SheetsChartService as _0xa0b5c7,UniverSheetsChartPlugin as _0x1eb87a,getAllowedChartTypes as _0x1491d5,toInsertChartMutationSource as _0x3da013}from'@univerjs-pro/sheets-chart';import{CommandType as _0x2dfd2e,DependentOn as _0x364b5c,Disposable as _0x119f54,DisposableCollection as _0x490fdc,DrawingTypeEnum as _0x170c77,FOCUSING_COMMON_DRAWINGS as _0x2ac415,ICommandService as _0x345ee8,IConfigService as _0x4fe135,IContextService as _0x3ca8bf,IUniverInstanceService as _0x24beef,Inject as _0x12d10b,Injector as _0x4b0ab7,LocaleService as _0x1c8aa5,Plugin as _0x4efaff,ThemeService as _0x20968c,UniverInstanceType as _0x3f0a52,createIdentifier as _0x596b63,debounce as _0x205802,generateRandomId as _0x2647cf,merge as _0x21371b,numberToABC as _0xf06431,toDisposable as _0x1f7c49,touchDependencies as _0x215680}from'@univerjs/core';import{IDrawingManagerService as _0x2a5fe1,UniverDrawingPlugin as _0x284986,getDrawingShapeKeyByDrawingSearch as _0x150543,getOrCreateDrawingCopyPlan as _0x28a624}from'@univerjs/drawing';import{DrawingApplyType as _0x2dd28f,ISheetDrawingService as _0x4ed76e,RemoveSheetDrawingCommand as _0x337d92,SetDrawingApplyMutation as _0x4d5f02,UniverSheetsDrawingPlugin as _0x168322,transformToDrawingPosition as _0x325c7a}from'@univerjs/sheets-drawing';import{SHEET_CHART_RENDER_OBJECT_CONFIG as _0x3d5658,SheetCanvasFloatDomManagerService as _0x1c815e,SheetDrawingHitTestService as _0x941ca0,UniverSheetsDrawingUIPlugin as _0x5e791d}from'@univerjs/sheets-drawing-ui';import{COPY_TYPE as _0x335f99,ISheetClipboardService as _0x9e1cc3,PREDEFINED_HOOK_NAME as _0x2224fe,SheetCanvasPopManagerService as _0x17e9aa,SheetCopyCommand as _0x5ce5b3,SheetPrintInterceptorService as _0x2795e9,SheetSkeletonManagerService as _0xe66fcb,UniverSheetsUIPlugin as _0x2795c6,deriveStateFromActiveSheet$ as _0x605c55,getCurrentRangeDisable$ as _0x50f730}from'@univerjs/sheets-ui';import{CanvasFloatDomService as _0x54f983,ComponentManager as _0x24bd5c,ContextMenuGroup as _0x1e8f0a,ContextMenuPosition as _0x57479b,IMenuManagerService as _0x2076f6,ISidebarService as _0x121f63,IconManager as _0x4a1260,MenuItemType as _0x2daa1f,RibbonInsertGroup as _0x412b1a,getMenuHiddenObservable as _0x26dffb,useDependency as _0x269cb5,useObservable as _0x4de0}from'@univerjs/ui';import{BehaviorSubject as _0x56dbf5,Observable as _0xbec06c,Subject as _0x4dd856,combineLatest as _0x10d7e5,combineLatestWith as _0x2b95f5,debounceTime as _0x5a3b05,distinctUntilChanged as _0x1c1222,filter as _0x3a73f0,fromEvent as _0x97493f,map as _0x18f3e7,merge as _0x423d97,pairwise as _0x4002ba,startWith as _0x3f2689,take as _0x42ca26,throttleTime as _0x117785,withLatestFrom as _0x3fa0a4}from'rxjs';import{CHART_ELEMENT_FLOAT_MENU_COMPONENT as _0xa1e7b4,CHART_HOST_BORDER_RADIUS as _0x50ccb8,CHART_TYPE_CATALOG as _0x36867b,ChartAxisSection as _0x5e2811,ChartCommonDataMappingSection as _0xf27855,ChartDomFrame as _0x3415b0,ChartEditBlockTitle as _0x360880,ChartEditPanel as _0x52f866,ChartEditPanelSection as _0x2528ea,ChartEditPanelTab as _0x43bb40,ChartEditPanelTabs as _0x315d66,ChartEditorCapability as _0x11951b,ChartEditorProvider as _0x2ccb5f,ChartElementFloatMenuAdapterRegistry as _0x208369,ChartFrameContentMode as _0x3b72d3,ChartFrameLayout as _0xeb21ed,ChartFunnelStyleSection as _0x5209d4,ChartGradientFillField as _0xe42b82,ChartGridlinesAndTicksSection as _0x4e9346,ChartHeatmapStyleSection as _0x4bb14b,ChartHostAdapter as _0x54094c,ChartImageExportService as _0xed83df,ChartIndicatorLineSection as _0xc7b730,ChartLegendSection as _0x3078a8,ChartLineAndAreaSection as _0x2fbe17,ChartNumberFormatAtom as _0x24ad5e,ChartParetoSeriesSection as _0x2969b2,ChartPieStyleSection as _0x2b8fe5,ChartRadarStyleSection as _0x3d02f5,ChartRelationStyleSection as _0x358627,ChartSectionAccordion as _0x1c9092,ChartSectionAccordionContent as _0x2a06fc,ChartSectionAccordionItem as _0x44dc78,ChartSectionAccordionTrigger as _0x755ed7,ChartSeriesSection as _0x4d341e,ChartStackField as _0x8d351a,ChartStyleSection as _0x1bb3ef,ChartThemeField as _0x2102d7,ChartTitlesSection as _0xd66997,ChartTrendlineSection as _0x3f73a8,ChartTypeField as _0x3113bb,ChartTypeSpecificDataSection as _0x4201bf,ChartTypeSpecificSetupSection as _0x543930,ChartTypeSpecificStyleSection as _0x1bd224,ChartUIService as _0x36ad4e,ChartViewStateRegistry as _0x14c209,ChartWaterfallSetupFields as _0x2000df,ChartWaterfallStyleSection as _0x39e65f,ChartWordCloudStyleSection as _0x5b42de,DEFAULT_CHART_AXIS_VALUES as _0x42d872,DEFAULT_CHART_FUNNEL_VALUES as _0x5dd7e0,DEFAULT_CHART_HEATMAP_VALUES as _0x4619ed,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x3e1518,DEFAULT_CHART_LEGEND_VALUES as _0x3b2ff6,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x49fb68,DEFAULT_CHART_PARETO_VALUES as _0xe329af,DEFAULT_CHART_PIE_VALUES as _0x54a77c,DEFAULT_CHART_RADAR_VALUES as _0x40d58b,DEFAULT_CHART_RELATION_VALUES as _0x1b7334,DEFAULT_CHART_SERIES_VALUES as _0x54184b,DEFAULT_CHART_STYLE_VALUES as _0x32b076,DEFAULT_CHART_TITLE_VALUES as _0xcfc0d5,DEFAULT_CHART_TRENDLINE_VALUES as _0x59022d,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x5a1c4f,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x25f19d,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x3441af,UniverChartUIPlugin as _0x1e799b,buildChartTypeSelectOptions as _0x739a83,chartTypeSupportsCapability as _0x1ed116,chartTypeSupportsLineAndAreaStyle as _0xb74abc,createChartElementFloatMenuAdapter as _0x512b6b,resolveChartCreationIntent as _0x428428,resolveChartEditPanelRoute as _0x22f32a,resolveChartElementSelection as _0x37e82c,useChartEditorChartType as _0x353c59,useChartEditorHasRightAxis as _0xe34ffc}from'@univerjs-pro/chart-ui';import{ChartHostRenderMode as _0x285902,ChartImageExportFormat as _0x4f5c1f,ChartImageSourceType as _0xadfb37,ChartThemeService as _0x39abcc,ChartTypeBits as _0xde80c8,ChartWaterfallStyleTarget as _0x47184e,DataOrientation as _0x525dbd,EChartRenderEngineName as _0x413b24,IChartRenderModelManagerService as _0x5967a8,ImageChartHost as _0x3a79e8,PieSecondaryPlotType as _0x9a69e7,RTLChartStyle as _0x586cc2,chartBitsUtils as _0xf61598,chartImageSourceToDataUrl as _0x50cd98,chartTypeCanUseTrendLine as _0x507a6f,resolveChartRuntimeStyle as _0xc518db,resolveChartStyleBackgroundColor as _0x30a932,resolveDefaultChartHostFrameStyle as _0x294d70}from'@univerjs-pro/engine-chart';import{CopySheetCommand as _0x51d576,RemoveSheetCommand as _0xc6c2a3,SheetInterceptorService as _0x41d15e,SheetPermissionCheckController as _0x44c591,SheetSkeletonService as _0x464840,SheetsSelectionsService as _0x40163a,UniverSheetsPlugin as _0x6f0551,WorkbookEditablePermission as _0x1d1023,WorksheetEditPermission as _0x1bf9d3,attachRangeWithCoord as _0x11ff37,discreteRangeToRange as _0x4e4ce1,getSheetCommandTarget as _0x3391c1}from'@univerjs/sheets';import{deserializeRangeWithSheet as _0x16dd67,serializeRangeWithSheet as _0x570c69}from'@univerjs/engine-formula';function _0x4926(_0x2ac8c4,_0x5675a7){_0x2ac8c4=_0x2ac8c4-0x17b;const _0x4890c6=_0x4890();let _0x49267d=_0x4890c6[_0x2ac8c4];return _0x49267d;}import{insertGroupObject as _0x1eac21}from'@univerjs/drawing-ui';import{DRAWING_OBJECT_LAYER_INDEX as _0x4acfab,IRenderManagerService as _0x570cdb,ObjectType as _0x46fbe5,RENDER_CLASS_TYPE as _0x3f686e,Rect as _0x57eec8,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2e173c,Transform as _0x33a51b,UniverRenderEnginePlugin as _0x2df3f8}from'@univerjs/engine-render';import{useEffect as _0x30cd0a,useMemo as _0x1feebc,useState as _0x4f4a37}from'react';import{Button as _0x248e71}from'@univerjs/design';import{RangeSelector as _0x38c69b}from'@univerjs/sheets-formula-ui';import{Fragment as _0x5783c9,jsx as _0x133ca3,jsxs as _0x487b78}from'react/jsx-runtime';import{UniverLicensePlugin as _0xdfcdf7}from'@univerjs-pro/license';import{PenIcon as _0x4a2cd3}from'@univerjs/icons';const hr=_0x2e596f(0x27d),gr={'enableChartElementFloatMenu':!0x0},_r={'type':_0x2dfd2e[_0x2e596f(0x374)],'id':_0x2e596f(0x228),'handler'(){return!0x0;}},V={'type':_0x2dfd2e['OPERATION'],'id':_0x2e596f(0x2d3),'handler'(){return!0x0;}};function H(_0x470290){const _0x4d30cf=_0x2e596f;let _0x33dc76=_0x470290[_0x4d30cf(0x3ae)](_0x4ed76e)['getFocusDrawings']();if(_0x33dc76[_0x4d30cf(0x211)]!==0x1)return null;let _0x441add=_0x33dc76[0x0];return _0x441add[_0x4d30cf(0x2ef)]===_0x170c77[_0x4d30cf(0x30b)]?_0x441add:null;}function vr(_0x35812b,_0x8356e3){const _0x3fd0bd=_0x2e596f;let _0x3306e6=document[_0x3fd0bd(0x288)]('a');_0x3306e6[_0x3fd0bd(0x2ac)]=_0x35812b,_0x3306e6[_0x3fd0bd(0x257)]=_0x8356e3,_0x3306e6['click']();}const yr={'id':_0x2e596f(0x248),'type':_0x2dfd2e[_0x2e596f(0x19d)],'handler':(_0x48c8a5,_0x6f47b6)=>{const _0x4c5e82=_0x2e596f;let _0x364022=H(_0x48c8a5);return _0x364022?_0x48c8a5['get'](_0x345ee8)[_0x4c5e82(0x275)](V['id'],{'unitId':_0x364022[_0x4c5e82(0x226)],'subUnitId':_0x364022[_0x4c5e82(0x370)],'drawingId':_0x364022[_0x4c5e82(0x2ed)],..._0x6f47b6!=null&&_0x6f47b6[_0x4c5e82(0x356)]?{'route':_0x6f47b6[_0x4c5e82(0x356)]}:{}}):!0x1;}},br={'id':_0x2e596f(0x2fb),'type':_0x2dfd2e[_0x2e596f(0x19d)],'handler':_0x12d981=>H(_0x12d981)?_0x12d981[_0x2e596f(0x3ae)](_0x345ee8)['executeCommand'](_0x5ce5b3['id']):!0x1},xr={'id':_0x2e596f(0x1d4),'type':_0x2dfd2e['COMMAND'],'handler':async _0x39828c=>{const _0xbc88ba=_0x2e596f;let _0x29f7b6=H(_0x39828c);if(!_0x29f7b6)return!0x1;let _0x149eef=await _0x39828c[_0xbc88ba(0x3ae)](_0xed83df)[_0xbc88ba(0x3bc)]({'unitId':_0x29f7b6[_0xbc88ba(0x226)],'subUnitId':_0x29f7b6[_0xbc88ba(0x370)],'getId':()=>_0x29f7b6[_0xbc88ba(0x2ed)]});return _0x149eef?(vr(_0x149eef,_0x29f7b6[_0xbc88ba(0x2ed)]+'.png'),!0x0):!0x1;}},Sr={'id':_0x2e596f(0x280),'type':_0x2dfd2e[_0x2e596f(0x19d)],'handler':_0x3847ac=>{const _0x3ad75f=_0x2e596f;let _0x247c39=H(_0x3847ac);return _0x247c39?_0x3847ac[_0x3ad75f(0x3ae)](_0x345ee8)[_0x3ad75f(0x275)](_0x337d92['id'],{'unitId':_0x247c39[_0x3ad75f(0x226)],'drawings':[{'unitId':_0x247c39['unitId'],'subUnitId':_0x247c39[_0x3ad75f(0x370)],'drawingId':_0x247c39[_0x3ad75f(0x2ed)],'drawingType':_0x170c77['DRAWING_CHART']}]}):!0x1;}},Cr={'type':_0x2dfd2e[_0x2e596f(0x19d)],'id':'sheet.command.menu-insert-chart','handler':async(_0x314dfe,_0x6c1a53)=>{const _0x495cea=_0x2e596f;let _0x3acd94=_0x3391c1(_0x314dfe[_0x495cea(0x3ae)](_0x24beef));if(!_0x3acd94)return!0x1;let _0x2cea6d=_0x314dfe[_0x495cea(0x3ae)](_0x40163a)[_0x495cea(0x1d9)]();if(!_0x2cea6d)return!0x1;let {range:_0x33b35b}=_0x2cea6d,_0x278cd3=_0x314dfe[_0x495cea(0x3ae)](_0x345ee8),{unitId:_0x58a268,subUnitId:_0x37c48b}=_0x3acd94,{pieSecondaryPlotType:_0x4c66a9,value:_0x4b822b}=_0x6c1a53,_0x3fb16a=_0x4c66a9!==void 0x0;if(_0x3fb16a&&(_0x4b822b!==_0xde80c8['Pie']||_0x4c66a9!==_0x9a69e7[_0x495cea(0x3b4)]&&_0x4c66a9!==_0x9a69e7[_0x495cea(0x31c)]))return!0x1;let _0x2d1441=_0x3fb16a?_0x2647cf():void 0x0;return _0x278cd3[_0x495cea(0x275)](_0x4488a9['id'],{'unitId':_0x58a268,'subUnitId':_0x37c48b,'chartType':_0x4b822b,..._0x2d1441&&_0x4c66a9?{'chartId':_0x2d1441,'config':{'unitId':_0x58a268,'chartModelId':_0x2d1441,'style':{'pie':{'composite':{'enabled':!0x0,'secondaryPlot':{'type':_0x4c66a9}}}}}}:{},'source':{'rangeInfo':{'unitId':_0x33b35b[_0x495cea(0x226)]??_0x58a268,'subUnitId':_0x33b35b[_0x495cea(0x28c)]??_0x37c48b,'range':_0x33b35b}}});}};function wr(_0x320b2f,_0x24b219){const _0x411ac1=_0x2e596f;return _0x320b2f==null||Array[_0x411ac1(0x37e)](_0x320b2f)?'':Tr(_0x320b2f[_0x411ac1(0x286)],_0x24b219);}function Tr(_0x289ac1,_0x20de82){const _0x217d60=_0x2e596f;var _0x22f443;let {unitId:_0x355b35,subUnitId:_0x23c5c1,range:_0x57ba3f}=_0x289ac1,_0xdb7905=(_0x22f443=_0x20de82[_0x217d60(0x247)](_0x355b35))==null?void 0x0:_0x22f443[_0x217d60(0x22d)](_0x23c5c1);return _0xdb7905?_0x570c69(_0xdb7905['getName'](),_0x57ba3f):'';}const Er=new Set([_0x2e596f(0x301),_0x2e596f(0x3c7)]),Dr=_0x36867b[_0x2e596f(0x3fa)](_0x48c464=>!Er[_0x2e596f(0x1ee)](_0x48c464[_0x2e596f(0x309)]))[_0x2e596f(0x26c)](_0xc9dc12=>({'id':'id'in _0xc9dc12?_0xc9dc12['id']:void 0x0,'labelId':_0xc9dc12[_0x2e596f(0x309)],'pieSecondaryPlotType':_0x2e596f(0x406)in _0xc9dc12?_0xc9dc12[_0x2e596f(0x406)]:void 0x0,'value':_0xc9dc12[_0x2e596f(0x3dd)],'icon':_0xc9dc12[_0x2e596f(0x34a)]}));function Or(_0x3ba6e5=Dr){const _0x3d96c0=_0x2e596f;return _0x3ba6e5[_0x3d96c0(0x26c)](({id:_0x355c80,icon:_0x42ee59,value:_0x5a0104})=>{let _0x5effaf=_0x428428(_0x355c80??String(_0x5a0104)),_0x4a9606=_0x5effaf?{'value':_0x5effaf['chartType'],..._0x5effaf['pieSecondaryPlotType']?{'pieSecondaryPlotType':_0x5effaf['pieSecondaryPlotType']}:{}}:{'value':_0x5a0104};return{'icon':_0x42ee59,'value':_0x355c80??_0x5a0104,'params':_0x4a9606};});}const kr=(_0x2969a8,_0x175b4f)=>{const _0x345593=_0x2e596f;if(_0x175b4f[_0x345593(0x211)]===0x1&&_0x175b4f[0x0]===_0x345593(0x212))return _0x2969a8;if(_0x175b4f['length']>0x1){let _0x3dc2a4=new Set();for(let _0x408383 of _0x175b4f)_0x3dc2a4[_0x345593(0x30c)](Number(_0x408383));return _0x2969a8[_0x345593(0x3fa)](_0x5c5a8a=>_0x3dc2a4[_0x345593(0x1ee)](_0x5c5a8a[_0x345593(0x3dd)]));}return[];};function Ar(_0x43ea1c){const _0x357195=_0x2e596f;let _0x55dc7d=_0x43ea1c[_0x357195(0x3ae)](_0x24beef),_0x4f72f4=_0x1491d5(_0x43ea1c),_0x59d054=kr(Dr[_0x357195(0x250)](),_0x4f72f4),_0x37ec69=Or(_0x59d054)[_0x357195(0x26c)]((_0x427a95,_0x3efac3)=>({'icon':_0x427a95[_0x357195(0x282)],'value':_0x427a95[_0x357195(0x3dd)],'params':_0x427a95[_0x357195(0x1a5)],'label':'sheets-chart-ui.chartTypes.'+_0x59d054[_0x3efac3][_0x357195(0x309)]}));return{'id':Cr['id'],'type':_0x2daa1f[_0x357195(0x2ee)],'selectionsCommandId':Cr['id'],'selections':_0x37ec69,'icon':_0x357195(0x397),'tooltip':_0x357195(0x2e3),'activated$':_0x605c55(_0x55dc7d,!0x1,()=>new _0xbec06c(_0x677100=>{const _0x439d68=_0x357195;_0x677100[_0x439d68(0x289)](!0x1);})),'hidden$':_0x26dffb(_0x43ea1c,_0x3f0a52[_0x357195(0x295)]),'disabled$':_0x50f730(_0x43ea1c)};}function jr(_0x2675ab){const _0x3a4157=_0x2e596f;let _0x39ba2d=_0x2675ab[_0x3a4157(0x3ae)](_0x4ed76e);return _0x39ba2d[_0x3a4157(0x197)][_0x3a4157(0x377)](_0x3f2689(_0x39ba2d[_0x3a4157(0x31a)]()),_0x18f3e7(()=>H(_0x2675ab)==null));}function Mr(_0x3959d0){const _0x3ac7d5=_0x2e596f;return{'id':yr['id'],'commandId':yr['id'],'type':_0x2daa1f['BUTTON'],'title':_0x3959d0[_0x3ac7d5(0x3ae)](_0x1c8aa5)['t'](_0x3ac7d5(0x17d)),'icon':_0x3ac7d5(0x394),'hidden$':jr(_0x3959d0)};}function Nr(_0x8e6075){const _0x1253fd=_0x2e596f;return{'id':br['id'],'commandId':br['id'],'type':_0x2daa1f[_0x1253fd(0x34f)],'title':_0x8e6075[_0x1253fd(0x3ae)](_0x1c8aa5)['t'](_0x1253fd(0x2aa)),'icon':_0x1253fd(0x23b),'hidden$':jr(_0x8e6075)};}function Pr(_0x45d719){const _0x3d9871=_0x2e596f;return{'id':xr['id'],'commandId':xr['id'],'type':_0x2daa1f[_0x3d9871(0x34f)],'title':_0x45d719[_0x3d9871(0x3ae)](_0x1c8aa5)['t'](_0x3d9871(0x2d6)),'icon':_0x3d9871(0x39e),'hidden$':jr(_0x45d719)};}function Fr(_0x386ba1){const _0x4369d8=_0x2e596f;return{'id':Sr['id'],'commandId':Sr['id'],'type':_0x2daa1f[_0x4369d8(0x34f)],'title':_0x386ba1[_0x4369d8(0x3ae)](_0x1c8aa5)['t'](_0x4369d8(0x1d8)),'icon':'DeleteIcon','hidden$':jr(_0x386ba1)};}const Ir={[_0x412b1a[_0x2e596f(0x2e8)]]:{[Cr['id']]:{'order':0x4,'menuItemFactory':Ar}},[_0x57479b[_0x2e596f(0x327)]]:{[_0x1e8f0a[_0x2e596f(0x25f)]]:{[yr['id']]:{'order':0x0,'menuItemFactory':Mr},[br['id']]:{'order':0x1,'menuItemFactory':Nr},[xr['id']]:{'order':0x3,'menuItemFactory':Pr},[Sr['id']]:{'order':0x4,'menuItemFactory':Fr}}}};function Lr(_0x386769){const _0x3cbacd=_0x2e596f;return _0x386769===_0xde80c8[_0x3cbacd(0x1c3)]||_0x386769===_0xde80c8[_0x3cbacd(0x40e)]||_0x386769===_0xde80c8['Boxplot']||_0xf61598['baseOn'](_0x386769,_0xde80c8[_0x3cbacd(0x201)])||_0xf61598[_0x3cbacd(0x3d2)](_0x386769,_0xde80c8['Column'])||_0xf61598[_0x3cbacd(0x3d2)](_0x386769,_0xde80c8[_0x3cbacd(0x204)])||_0xf61598[_0x3cbacd(0x3d2)](_0x386769,_0xde80c8[_0x3cbacd(0x36d)]);}function Rr(_0x21e19d){const _0x1cb612=_0x2e596f;return Lr(_0x21e19d)||_0xf61598[_0x1cb612(0x3d2)](_0x21e19d,_0xde80c8[_0x1cb612(0x3b4)])||_0xf61598[_0x1cb612(0x3d2)](_0x21e19d,_0xde80c8[_0x1cb612(0x19e)])||_0xf61598[_0x1cb612(0x3d2)](_0x21e19d,_0xde80c8[_0x1cb612(0x404)]);}function zr(_0x14a2f5,_0x51f2f0){const _0x4922ef=_0x2e596f;let _0x57f049=_0x37e82c(_0x14a2f5,_0x51f2f0),_0x42ef40=_0x57f049?_0x22f32a(_0x57f049['target']):void 0x0;if(!(!_0x57f049||!_0x42ef40))return{..._0x57f049,'route':_0x42ef40,'showFloatMenu':Rr(_0x14a2f5[_0x4922ef(0x1f2)])&&_0x57f049['showFloatMenu']};}function Br(_0x5b29f3,_0x1fc806=0x1){const _0x1bd915=_0x2e596f;return{'width':Math[_0x1bd915(0x1ef)](_0x1fc806,_0x5b29f3['width']),'height':Math[_0x1bd915(0x1ef)](_0x1fc806,_0x5b29f3['height'])};}function Vr(_0x1e80ca,_0x4614ec={},_0x18901c={'left':0x0,'top':0x0}){const _0xc55780=_0x2e596f;let _0x2fe8a5=_0x4614ec['scaleX']??0x1,_0x49e6a7=_0x4614ec[_0xc55780(0x319)]??0x1,_0x222bda=_0xeb21ed[_0xc55780(0x349)]({'logicalOuterRect':{'left':_0x18901c[_0xc55780(0x3a6)]>0x0?-_0x18901c[_0xc55780(0x3a6)]:0x0,'top':_0x18901c[_0xc55780(0x338)]>0x0?-_0x18901c['top']:0x0,...Br(_0x1e80ca)},'scale':{'scaleX':_0x2fe8a5,'scaleY':_0x49e6a7},'hostStyle':{},'contentMode':_0x3b72d3['Overlay']});return{'left':_0x222bda[_0xc55780(0x342)][_0xc55780(0x3a6)],'top':_0x222bda[_0xc55780(0x342)][_0xc55780(0x338)],'width':_0x222bda[_0xc55780(0x342)][_0xc55780(0x363)],'height':_0x222bda[_0xc55780(0x342)]['height'],'scaleX':_0x2fe8a5,'scaleY':_0x49e6a7};}function U(_0xc2b0d5){'@babel/helpers - typeof';const _0x1396eb=_0x2e596f;return U=typeof Symbol==_0x1396eb(0x2cc)&&typeof Symbol[_0x1396eb(0x3f7)]==_0x1396eb(0x1f1)?function(_0x2ba372){return typeof _0x2ba372;}:function(_0x3a94f4){const _0x5cde0a=_0x1396eb;return _0x3a94f4&&typeof Symbol==_0x5cde0a(0x2cc)&&_0x3a94f4[_0x5cde0a(0x367)]===Symbol&&_0x3a94f4!==Symbol[_0x5cde0a(0x284)]?'symbol':typeof _0x3a94f4;},U(_0xc2b0d5);}function Hr(_0x407d85,_0x27cd9c){const _0x54142b=_0x2e596f;if(U(_0x407d85)!=_0x54142b(0x379)||!_0x407d85)return _0x407d85;var _0x5d53cd=_0x407d85[Symbol[_0x54142b(0x1f4)]];if(_0x5d53cd!==void 0x0){var _0x5ddc2f=_0x5d53cd[_0x54142b(0x341)](_0x407d85,_0x27cd9c||_0x54142b(0x33f));if(U(_0x5ddc2f)!='object')return _0x5ddc2f;throw TypeError(_0x54142b(0x23e));}return(_0x27cd9c===_0x54142b(0x2c9)?String:Number)(_0x407d85);}function Ur(_0x561e6a){const _0x5a080b=_0x2e596f;var _0x14ebaf=Hr(_0x561e6a,_0x5a080b(0x2c9));return U(_0x14ebaf)=='symbol'?_0x14ebaf:_0x14ebaf+'';}function W(_0x9c7af,_0x2fbf75,_0x2a9af7){return(_0x2fbf75=Ur(_0x2fbf75))in _0x9c7af?Object['defineProperty'](_0x9c7af,_0x2fbf75,{'value':_0x2a9af7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x9c7af[_0x2fbf75]=_0x2a9af7,_0x9c7af;}function Wr(_0x44fc78){const _0x13a0b5=_0x2e596f;switch(_0x44fc78['type']){case _0xadfb37[_0x13a0b5(0x17e)]:return _0x44fc78[_0x13a0b5(0x3af)];case _0xadfb37[_0x13a0b5(0x1c1)]:return _0x44fc78['imageBitmap'];default:return;}}var Gr=class extends _0x57eec8{constructor(_0x5d8dcd,_0x14f557,_0x5c7077,_0x3853de=()=>!0x1,_0x492d53=()=>{}){const _0x3b80f3=_0x2e596f;super(_0x5d8dcd,{..._0x14f557,'evented':_0x14f557[_0x3b80f3(0x3f6)]??!0x0}),this['_getImage']=_0x5c7077,this[_0x3b80f3(0x2bf)]=_0x3853de,this[_0x3b80f3(0x2bc)]=_0x492d53,W(this,_0x3b80f3(0x344),null),W(this,_0x3b80f3(0x24d),null),this[_0x3b80f3(0x2cb)](_0x46fbe5[_0x3b80f3(0x2a8)]);}[_0x2e596f(0x19b)](){const _0xf33741=_0x2e596f;this[_0xf33741(0x2bc)](),super[_0xf33741(0x19b)]();}['render'](_0x4bcf14,_0x111e60){const _0x4c5058=_0x2e596f;if(!this[_0x4c5058(0x1d3)]||this[_0x4c5058(0x2bf)]())return this[_0x4c5058(0x1cb)](!0x1),this;if(!this['transform'])return this;let {width:_0x616bf3,height:_0x1ec090,left:_0x107b63,top:_0x59e244}=this['getRealBound']();if(this[_0x4c5058(0x2db)](_0x111e60)){let {top:_0x8cd198,left:_0x71d702,bottom:_0x340a94,right:_0x5b26e1}=_0x111e60[_0x4c5058(0x2ec)];if(_0x616bf3+this[_0x4c5058(0x243)]+_0x107b63<_0x71d702||_0x5b26e1<_0x107b63||_0x1ec090+this[_0x4c5058(0x243)]+_0x59e244<_0x8cd198||_0x340a94<_0x59e244)return this;}let _0x1ed4d9=this['transform']['getMatrix']();_0x4bcf14[_0x4c5058(0x2bb)]();let _0x13d9b1=_0x107b63+_0x616bf3/0x2,_0x162128=_0x59e244+_0x1ec090/0x2;return _0x4bcf14[_0x4c5058(0x287)](_0x1ed4d9[0x0],_0x1ed4d9[0x1],_0x1ed4d9[0x2],_0x1ed4d9[0x3],_0x13d9b1,_0x162128),this[_0x4c5058(0x219)]!==0x1&&(_0x4bcf14[_0x4c5058(0x401)]=this['opacity']),this[_0x4c5058(0x269)](_0x4bcf14,void 0x0,_0x616bf3,_0x1ec090),_0x4bcf14['restore'](),this[_0x4c5058(0x1cb)](!0x1),this;}[_0x2e596f(0x269)](_0x40dcb6,_0x40d898,_0x277f30=this[_0x2e596f(0x363)],_0x2f5791=this[_0x2e596f(0x391)]){const _0x3a372c=_0x2e596f;this[_0x3a372c(0x285)](_0x40dcb6,_0x277f30,_0x2f5791,{'stroke':void 0x0,'strokeWidth':0x0}),this[_0x3a372c(0x2eb)](_0x40dcb6,_0x277f30,_0x2f5791),this[_0x3a372c(0x285)](_0x40dcb6,_0x277f30,_0x2f5791,{'fill':void 0x0});}[_0x2e596f(0x285)](_0x319dfc,_0x3e75c4,_0x5894a1,_0x2f6ba4){const _0x12d329=_0x2e596f;_0x319dfc['save'](),_0x319dfc[_0x12d329(0x408)](-_0x3e75c4/0x2,-_0x5894a1/0x2),_0x57eec8['drawWith'](_0x319dfc,Kr(this,_0x3e75c4,_0x5894a1,_0x2f6ba4)),_0x319dfc[_0x12d329(0x1c9)]();}[_0x2e596f(0x3b2)](_0x16adb4){const _0x3aafd3=_0x2e596f;let {left:_0x23ac31,top:_0x409d4a,width:_0x2d7841,height:_0x10ca9e}=this[_0x3aafd3(0x3b9)](),_0x45c8da=_0x23ac31+_0x2d7841/0x2,_0x3fe550=_0x409d4a+_0x10ca9e/0x2,_0x1a69c2=this['transform']['getMatrix'](),_0x1e5006=new _0x33a51b([_0x1a69c2[0x0],_0x1a69c2[0x1],_0x1a69c2[0x2],_0x1a69c2[0x3],_0x45c8da,_0x3fe550]),_0x5ea2d0=this[_0x3aafd3(0x372)](),_0x4c9188=(this[_0x3aafd3(0x270)]&&(_0x5ea2d0==null?void 0x0:_0x5ea2d0[_0x3aafd3(0x22c)])===_0x3f686e[_0x3aafd3(0x313)]?_0x5ea2d0[_0x3aafd3(0x389)]['multiply'](_0x1e5006):_0x1e5006)[_0x3aafd3(0x3e7)]()[_0x3aafd3(0x1cd)](_0x16adb4),_0x3aecd8=_0x2d7841/0x2,_0x38e11=_0x10ca9e/0x2;return _0x4c9188['x']>=-_0x3aecd8-this['strokeWidth']/0x2&&_0x4c9188['x']<=_0x3aecd8+this[_0x3aafd3(0x243)]/0x2&&_0x4c9188['y']>=-_0x38e11-this[_0x3aafd3(0x243)]/0x2&&_0x4c9188['y']<=_0x38e11+this[_0x3aafd3(0x243)]/0x2;}[_0x2e596f(0x2eb)](_0x493830,_0x53b009,_0x304feb){const _0x169422=_0x2e596f;let _0xf9519e=this[_0x169422(0x1a1)](),_0x148622=_0xf9519e?this[_0x169422(0x222)](_0xf9519e):void 0x0;if(!_0x148622)return;let {width:_0xe1ef2c,height:_0x444b8b}=Br({'width':_0x53b009,'height':_0x304feb},0x0);_0xe1ef2c!==0x0&&_0x444b8b!==0x0&&(_0x493830['save'](),_0x493830[_0x169422(0x408)](-_0x53b009/0x2,-_0x304feb/0x2),qr(_0x493830,_0xe1ef2c,_0x444b8b,this[_0x169422(0x246)]),_0x493830[_0x169422(0x1b6)](),_0x493830[_0x169422(0x1f6)](_0x148622,0x0,0x0,_0xe1ef2c,_0x444b8b),_0x493830[_0x169422(0x1c9)]());}[_0x2e596f(0x222)](_0x385667){const _0x5436ed=_0x2e596f;var _0x15b606;let _0xd3fdf0=Wr(_0x385667);if(_0xd3fdf0)return _0xd3fdf0;if(_0x385667[_0x5436ed(0x34e)]===_0xadfb37[_0x5436ed(0x2e2)]&&(this[_0x5436ed(0x24d)]!==_0x385667[_0x5436ed(0x209)]&&(this[_0x5436ed(0x24d)]=_0x385667[_0x5436ed(0x209)],this[_0x5436ed(0x344)]=document[_0x5436ed(0x288)](_0x5436ed(0x1eb)),this['_urlImage'][_0x5436ed(0x40c)]='anonymous',this[_0x5436ed(0x344)][_0x5436ed(0x3c3)]=()=>this['makeDirty'](!0x0),this[_0x5436ed(0x344)][_0x5436ed(0x1b9)]=_0x385667[_0x5436ed(0x209)]),(_0x15b606=this[_0x5436ed(0x344)])!=null&&_0x15b606['complete']&&this[_0x5436ed(0x344)][_0x5436ed(0x376)]>0x0&&this[_0x5436ed(0x344)][_0x5436ed(0x345)]>0x0))return this['_urlImage'];}};function Kr(_0x11d448,_0x1ee7cb,_0x472427,_0xeafa35){const _0x5cd01a=_0x2e596f;let _0x98061f=Object[_0x5cd01a(0x3f9)](_0x11d448);return Object['defineProperty'](_0x98061f,_0x5cd01a(0x363),{'value':_0x1ee7cb}),Object[_0x5cd01a(0x276)](_0x98061f,_0x5cd01a(0x391),{'value':_0x472427}),Object[_0x5cd01a(0x215)](_0xeafa35)[_0x5cd01a(0x399)](_0xa626b7=>{const _0x127870=_0x5cd01a;Object[_0x127870(0x276)](_0x98061f,_0xa626b7,{'value':_0xeafa35[_0xa626b7]});}),_0x98061f;}function qr(_0x4b73a7,_0x3ff65c,_0x1c91af,_0x58ca28){const _0x44ffab=_0x2e596f;let _0x3f3883=Math[_0x44ffab(0x1ad)](_0x58ca28||0x0,_0x3ff65c/0x2,_0x1c91af/0x2);if(_0x4b73a7[_0x44ffab(0x305)](),!_0x3f3883){_0x4b73a7[_0x44ffab(0x232)](0x0,0x0,_0x3ff65c,_0x1c91af),_0x4b73a7[_0x44ffab(0x2d1)]();return;}_0x4b73a7[_0x44ffab(0x221)](_0x3f3883,0x0),_0x4b73a7[_0x44ffab(0x1af)](_0x3ff65c-_0x3f3883,0x0),_0x4b73a7[_0x44ffab(0x37f)](_0x3ff65c-_0x3f3883,_0x3f3883,_0x3f3883,Math['PI']*0x3/0x2,0x0,!0x1),_0x4b73a7[_0x44ffab(0x1af)](_0x3ff65c,_0x1c91af-_0x3f3883),_0x4b73a7[_0x44ffab(0x37f)](_0x3ff65c-_0x3f3883,_0x1c91af-_0x3f3883,_0x3f3883,0x0,Math['PI']/0x2,!0x1),_0x4b73a7[_0x44ffab(0x1af)](_0x3f3883,_0x1c91af),_0x4b73a7[_0x44ffab(0x37f)](_0x3f3883,_0x1c91af-_0x3f3883,_0x3f3883,Math['PI']/0x2,Math['PI'],!0x1),_0x4b73a7[_0x44ffab(0x1af)](0x0,_0x3f3883),_0x4b73a7[_0x44ffab(0x37f)](_0x3f3883,_0x3f3883,_0x3f3883,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4b73a7[_0x44ffab(0x2d1)]();}function G(_0xc05d2){const _0x58fd51=_0x2e596f;(_0xc05d2==null?void 0x0:_0xc05d2[_0x58fd51(0x34e)])===_0xadfb37['ImageBitmap']&&_0xc05d2[_0x58fd51(0x2ce)]['close']();}function K(_0x20d7ba){const _0x1a373a=_0x2e596f;return _0x20d7ba[_0x1a373a(0x226)]+_0x1a373a(0x1fb)+_0x20d7ba[_0x1a373a(0x370)]+_0x1a373a(0x1fb)+_0x20d7ba[_0x1a373a(0x1e1)];}var Jr=class extends _0x119f54{constructor(..._0x3d509c){const _0x22345a=_0x2e596f;super(..._0x3d509c),W(this,_0x22345a(0x3b7),new Map());}[_0x2e596f(0x1cf)](_0x5c3b2d){const _0x26dc80=_0x2e596f;let _0x205f11=K(_0x5c3b2d),_0x2768e1=this['_entries']['get'](_0x205f11)??{'version':0x0};return _0x2768e1[_0x26dc80(0x36f)]+=0x1,this[_0x26dc80(0x3b7)][_0x26dc80(0x1a9)](_0x205f11,_0x2768e1),_0x2768e1['version'];}[_0x2e596f(0x3de)](_0x167bfd,_0x4f3add){const _0x1bd02d=_0x2e596f;var _0x519c65;return((_0x519c65=this['_entries'][_0x1bd02d(0x3ae)](K(_0x167bfd)))==null?void 0x0:_0x519c65[_0x1bd02d(0x36f)])===_0x4f3add;}[_0x2e596f(0x202)](_0x5702aa,_0x39c4ec,_0x28f511){const _0x431dd9=_0x2e596f;if(!this[_0x431dd9(0x3de)](_0x5702aa,_0x28f511))return G(_0x39c4ec),!0x1;let _0x5baa25=K(_0x5702aa),_0x48f684=this['_entries'][_0x431dd9(0x3ae)](_0x5baa25)??{'version':_0x28f511},_0x31b641=_0x48f684[_0x431dd9(0x30a)];return _0x48f684[_0x431dd9(0x30a)]=_0x39c4ec,_0x48f684[_0x431dd9(0x36f)]=_0x28f511,this[_0x431dd9(0x3b7)][_0x431dd9(0x1a9)](_0x5baa25,_0x48f684),_0x31b641!==_0x39c4ec&&G(_0x31b641),!0x0;}[_0x2e596f(0x2ca)](_0x3c2fe6){const _0x481554=_0x2e596f;var _0x1ce682;return(_0x1ce682=this[_0x481554(0x3b7)][_0x481554(0x3ae)](K(_0x3c2fe6)))==null?void 0x0:_0x1ce682[_0x481554(0x30a)];}[_0x2e596f(0x333)](_0x89ac50){const _0x1900cd=_0x2e596f;let _0x2ea2fa=K(_0x89ac50),_0x151a8a=this[_0x1900cd(0x3b7)][_0x1900cd(0x3ae)](_0x2ea2fa);_0x151a8a&&(G(_0x151a8a['image']),this[_0x1900cd(0x3b7)][_0x1900cd(0x40a)](_0x2ea2fa));}['clearChart'](_0x42330a){const _0x392f07=_0x2e596f;for(let [_0xdbf2a1,_0x2ccaea]of this['_entries'])_0xdbf2a1['endsWith'](_0x392f07(0x1fb)+_0x42330a)&&(G(_0x2ccaea[_0x392f07(0x30a)]),this[_0x392f07(0x3b7)]['delete'](_0xdbf2a1));}['dispose'](){const _0x2c64de=_0x2e596f;this['_entries'][_0x2c64de(0x399)](_0x28a524=>G(_0x28a524[_0x2c64de(0x30a)])),this[_0x2c64de(0x3b7)]['clear'](),super[_0x2c64de(0x19b)]();}};function Yr(_0x15cd05,_0x5ddd32=0x7d0){let _0x1e06ae=null,_0x58582c=null,_0x4b673a=!0x1,_0x30bf55=()=>{},_0x3dafd4=()=>{_0x1e06ae!=null&&(clearInterval(_0x1e06ae),_0x1e06ae=null),_0x58582c!=null&&(clearTimeout(_0x58582c),_0x58582c=null);};return{'promise':new Promise((_0x5e85c2,_0x8f2025)=>{_0x30bf55=_0x8f2025;let _0x13b82b=()=>{const _0x4f2662=_0x4926;let _0x22d26b=document[_0x4f2662(0x28e)](_0x15cd05);!_0x22d26b||_0x4b673a||(_0x4b673a=!0x0,_0x3dafd4(),_0x5e85c2(_0x22d26b));};_0x13b82b(),!_0x4b673a&&(_0x1e06ae=setInterval(_0x13b82b,16.666666666666668),_0x58582c=setTimeout(()=>{_0x4b673a||(_0x4b673a=!0x0,_0x3dafd4(),_0x8f2025(Error('Timed\x20out\x20waiting\x20for\x20float\x20dom\x20host\x20\x22'+_0x15cd05+'\x22.')));},_0x5ddd32));}),'cancel':()=>{const _0x480994=_0x4926;_0x4b673a||(_0x4b673a=!0x0,_0x3dafd4(),_0x30bf55(Error(_0x480994(0x28f)+_0x15cd05+'\x22.')));}};}var Xr=class extends _0x119f54{constructor(_0x206cce,_0x539653,_0x5e88c8,_0x24a564,_0x1b3760,_0x3dbc3b,_0x4f8aea){const _0x5b3b80=_0x2e596f;super(),this[_0x5b3b80(0x1e1)]=_0x206cce,this[_0x5b3b80(0x23a)]=_0x539653,this[_0x5b3b80(0x2ab)]=_0x5e88c8,this['_setHostStyle']=_0x24a564,this[_0x5b3b80(0x3ff)]=_0x1b3760,this['_markReady']=_0x3dbc3b,this['_markNotReady']=_0x4f8aea,W(this,_0x5b3b80(0x2fc),_0x285902[_0x5b3b80(0x3f0)]),W(this,_0x5b3b80(0x26e),null),W(this,_0x5b3b80(0x3ee),!0x1),W(this,_0x5b3b80(0x28b),null),W(this,_0x5b3b80(0x2ad),null),W(this,_0x5b3b80(0x1c7),null),W(this,_0x5b3b80(0x2e9),{}),W(this,_0x5b3b80(0x207),null);}['isManaged'](){const _0x3a2053=_0x2e596f;return this[_0x3a2053(0x3ee)];}[_0x2e596f(0x3a8)](){const _0x4292c8=_0x2e596f;this[_0x4292c8(0x3ee)]=!0x1;}[_0x2e596f(0x244)](){const _0x552087=_0x2e596f;let _0x45a82a=this[_0x552087(0x2ab)]();return _0x45a82a?{'width':_0x45a82a[_0x552087(0x363)],'height':_0x45a82a[_0x552087(0x391)]}:null;}[_0x2e596f(0x2b0)](_0x5b9256){const _0x38922e=_0x2e596f;this[_0x38922e(0x2e9)]=_0x5b9256,this[_0x38922e(0x37d)](_0x5b9256),this[_0x38922e(0x40f)]();}async['ensureHandle'](){const _0x420756=_0x2e596f;if(this[_0x420756(0x24c)]||this[_0x420756(0x3ff)]())throw Error(_0x420756(0x1f0));let _0x4b039c=this[_0x420756(0x23a)](),_0x551e49=(_0x4b039c==null?void 0x0:_0x4b039c['domId'])??this[_0x420756(0x1e1)],_0x44df89=document[_0x420756(0x28e)](_0x551e49);if(this[_0x420756(0x26e)]&&_0x44df89!=null&&_0x44df89[_0x420756(0x3b8)](this['_domFrame'][_0x420756(0x2a5)]))return{'mountNode':this[_0x420756(0x26e)]['mountNode'],'dispose':()=>{const _0x19e6ff=_0x420756;this[_0x19e6ff(0x19b)](),_0x4b039c==null||_0x4b039c[_0x19e6ff(0x19b)][_0x19e6ff(0x19b)]();}};if(this[_0x420756(0x2ad)])return this[_0x420756(0x2ad)];let _0x18a2ea=this[_0x420756(0x1e5)]();return this[_0x420756(0x2ad)]=_0x18a2ea,_0x18a2ea[_0x420756(0x271)](()=>{const _0x5deda1=_0x420756;this['_pendingHost']===_0x18a2ea&&(this[_0x5deda1(0x2ad)]=null);},()=>{const _0x3ab4b1=_0x420756;this[_0x3ab4b1(0x2ad)]===_0x18a2ea&&(this[_0x3ab4b1(0x2ad)]=null);}),_0x18a2ea;}async[_0x2e596f(0x2a9)](){const _0x2dfa36=_0x2e596f;try{return(await this['ensureHandle']())[_0x2dfa36(0x2a5)];}catch{return null;}}[_0x2e596f(0x3e6)](){const _0x1af470=_0x2e596f;let _0x317b63=this[_0x1af470(0x23a)](),_0x43687c=(_0x317b63==null?void 0x0:_0x317b63['domId'])??this['chartId'],_0x139999=document[_0x1af470(0x28e)](_0x43687c);return!!(this[_0x1af470(0x26e)]&&_0x139999!=null&&_0x139999[_0x1af470(0x3b8)](this['_domFrame']['mountNode']));}[_0x2e596f(0x35b)](){const _0x3dfd02=_0x2e596f;if(!this[_0x3dfd02(0x26e)])return;let _0x40efd4=this[_0x3dfd02(0x2ab)]();_0x40efd4&&this[_0x3dfd02(0x26e)][_0x3dfd02(0x302)](this['_resolveLayout'](_0x40efd4),this[_0x3dfd02(0x223)]());}[_0x2e596f(0x34d)](){const _0x3e0154=_0x2e596f;this[_0x3e0154(0x1b7)]();}[_0x2e596f(0x279)](){const _0x1a459f=_0x2e596f;this[_0x1a459f(0x326)]();}[_0x2e596f(0x19b)](){const _0x1e612c=_0x2e596f;var _0x5b9495;this['_disposed']||(this[_0x1e612c(0x279)](),this[_0x1e612c(0x28b)]=null,this[_0x1e612c(0x2ad)]=null,this[_0x1e612c(0x31f)](),this[_0x1e612c(0x3ee)]=!0x1,(_0x5b9495=this[_0x1e612c(0x26e)])==null||_0x5b9495[_0x1e612c(0x19b)](),this['_domFrame']=null,this[_0x1e612c(0x264)](),super[_0x1e612c(0x19b)]());}async['_createHost'](){const _0x18ec28=_0x2e596f;let _0x27fe65=this['_getFloatDomInfo']();if(!_0x27fe65)throw Error(_0x18ec28(0x1f0));let _0x226a1d=_0x27fe65[_0x18ec28(0x2a3)]??this['chartId'],_0x354444=Yr(_0x226a1d),_0x358263=Symbol(this[_0x18ec28(0x1e1)]);this[_0x18ec28(0x28b)]=_0x358263,this[_0x18ec28(0x1c7)]=_0x354444;try{let _0x24b91b=await _0x354444[_0x18ec28(0x35f)],_0x23c147=this['_getFloatDomInfo'](),_0x211efb=(_0x23c147==null?void 0x0:_0x23c147[_0x18ec28(0x2a3)])??this[_0x18ec28(0x1e1)];if(this[_0x18ec28(0x24c)]||this[_0x18ec28(0x3ff)]()||this[_0x18ec28(0x28b)]!==_0x358263||!_0x23c147||_0x211efb!==_0x226a1d||document[_0x18ec28(0x28e)](_0x226a1d)!==_0x24b91b||!_0x24b91b[_0x18ec28(0x2f5)])throw Error(_0x18ec28(0x1f0));let _0x575779=this[_0x18ec28(0x2ab)]();if(!_0x575779)throw Error('Fail\x20to\x20create\x20float\x20dom');let _0x360e8d=new _0x3415b0(_0x24b91b);return _0x360e8d['update'](this['_resolveLayout'](_0x575779),this['_frameStyle']()),this[_0x18ec28(0x2c4)](_0x24b91b),this[_0x18ec28(0x26e)]=_0x360e8d,this['_managed']=!0x0,{'mountNode':_0x360e8d[_0x18ec28(0x2a5)],'dispose':()=>{const _0x530376=_0x18ec28;this['dispose'](),_0x27fe65[_0x530376(0x19b)][_0x530376(0x19b)]();}};}finally{this[_0x18ec28(0x1c7)]===_0x354444&&(this[_0x18ec28(0x1c7)]=null),this['_pendingToken']===_0x358263&&(this[_0x18ec28(0x28b)]=null);}}[_0x2e596f(0x31f)](){const _0x12b971=_0x2e596f;let _0x3298c3=this['_waiter'];_0x3298c3&&(_0x3298c3['cancel'](),this[_0x12b971(0x1c7)]=null);}[_0x2e596f(0x40f)](){const _0x3c2c8b=_0x2e596f;let _0x3eec61=this[_0x3c2c8b(0x2ab)]();this[_0x3c2c8b(0x26e)]&&_0x3eec61&&this[_0x3c2c8b(0x26e)]['update'](this[_0x3c2c8b(0x1d5)](_0x3eec61),this[_0x3c2c8b(0x223)]());}[_0x2e596f(0x1d5)](_0x444a62){const _0x571f0c=_0x2e596f;return _0xeb21ed['resolve']({'logicalOuterRect':{'left':_0x444a62['left'],'top':_0x444a62['top'],'width':_0x444a62['width'],'height':_0x444a62[_0x571f0c(0x391)]},'scale':{'scaleX':_0x444a62[_0x571f0c(0x1ff)],'scaleY':_0x444a62[_0x571f0c(0x319)]},'hostStyle':this[_0x571f0c(0x223)](),'contentMode':_0x3b72d3[_0x571f0c(0x398)]});}[_0x2e596f(0x223)](){const _0x1a40d8=_0x2e596f;return{...this[_0x1a40d8(0x2e9)],'radius':_0x50ccb8};}[_0x2e596f(0x2c4)](_0x24cc75){const _0x1a923f=_0x2e596f;let _0x1eb533=_0x24cc75['parentElement'];_0x1eb533&&(this[_0x1a923f(0x207)]||={'zIndex':_0x1eb533['style'][_0x1a923f(0x3c0)],'pointerEvents':_0x1eb533['style'][_0x1a923f(0x2e4)]},_0x1eb533[_0x1a923f(0x2c0)][_0x1a923f(0x3c0)]=_0x1a923f(0x273),_0x1eb533[_0x1a923f(0x2c0)][_0x1a923f(0x2e4)]='auto');}[_0x2e596f(0x264)](){const _0x3cd9f7=_0x2e596f;var _0x2d10b7;if(!this[_0x3cd9f7(0x207)])return;let _0x50c46d=this[_0x3cd9f7(0x23a)](),_0x341edd=(_0x50c46d==null?void 0x0:_0x50c46d[_0x3cd9f7(0x2a3)])??this[_0x3cd9f7(0x1e1)],_0x3c3793=(_0x2d10b7=document[_0x3cd9f7(0x28e)](_0x341edd))==null?void 0x0:_0x2d10b7[_0x3cd9f7(0x18c)];_0x3c3793&&(_0x3c3793[_0x3cd9f7(0x2c0)][_0x3cd9f7(0x3c0)]=this[_0x3cd9f7(0x207)]['zIndex'],_0x3c3793['style'][_0x3cd9f7(0x2e4)]=this[_0x3cd9f7(0x207)][_0x3cd9f7(0x2e4)]),this[_0x3cd9f7(0x207)]=null;}},Zr=class extends _0x3a79e8{constructor(_0x5c4e98,_0x2b2860,_0x4ba949,_0x58c565,_0x36a438,_0x4976db){const _0xb6fcc2=_0x2e596f;super(_0x5c4e98),this[_0xb6fcc2(0x3dc)]=_0x2b2860,this[_0xb6fcc2(0x37d)]=_0x4ba949,this[_0xb6fcc2(0x29d)]=_0x58c565,this[_0xb6fcc2(0x2b3)]=_0x36a438,this[_0xb6fcc2(0x3ea)]=_0x4976db;}[_0x2e596f(0x244)](){const _0x309086=_0x2e596f;let _0x1e1fa0=this[_0x309086(0x3dc)]();return _0x1e1fa0?Br(_0x1e1fa0):null;}[_0x2e596f(0x2b0)](_0x493041){const _0x2c8608=_0x2e596f;this[_0x2c8608(0x37d)](_0x493041);}['nextVersion'](){const _0x34effa=_0x2e596f;return this[_0x34effa(0x2b3)][_0x34effa(0x1cf)](this[_0x34effa(0x29d)]);}[_0x2e596f(0x3f5)](_0x1e4cfb,_0x318b66){const _0x1e86d0=_0x2e596f;return this[_0x1e86d0(0x2b3)][_0x1e86d0(0x202)](this[_0x1e86d0(0x29d)],_0x1e4cfb,_0x318b66);}[_0x2e596f(0x3d8)](){this['_requestPaint']();}[_0x2e596f(0x236)](){const _0x37f65f=_0x2e596f;this[_0x37f65f(0x2b3)]['nextVersion'](this['_snapshotKey']);}};function q(_0x57b961,_0x2bbf01){return function(_0x142487,_0x50601a){_0x2bbf01(_0x142487,_0x50601a,_0x57b961);};}function J(_0x181b59,_0x197b1b,_0x2044ab,_0x5ba417){const _0x45f09=_0x2e596f;var _0x43c86b=arguments[_0x45f09(0x211)],_0x365d5c=_0x43c86b<0x3?_0x197b1b:_0x5ba417===null?_0x5ba417=Object['getOwnPropertyDescriptor'](_0x197b1b,_0x2044ab):_0x5ba417,_0x2b6bb1;if(typeof Reflect==_0x45f09(0x379)&&typeof Reflect[_0x45f09(0x1df)]=='function')_0x365d5c=Reflect[_0x45f09(0x1df)](_0x181b59,_0x197b1b,_0x2044ab,_0x5ba417);else{for(var _0xe2f46d=_0x181b59[_0x45f09(0x211)]-0x1;_0xe2f46d>=0x0;_0xe2f46d--)(_0x2b6bb1=_0x181b59[_0xe2f46d])&&(_0x365d5c=(_0x43c86b<0x3?_0x2b6bb1(_0x365d5c):_0x43c86b>0x3?_0x2b6bb1(_0x197b1b,_0x2044ab,_0x365d5c):_0x2b6bb1(_0x197b1b,_0x2044ab))||_0x365d5c);}return _0x43c86b>0x3&&_0x365d5c&&Object[_0x45f09(0x276)](_0x197b1b,_0x2044ab,_0x365d5c),_0x365d5c;}const Qr=0.5;function _0x4890(){const _0x18198f=['_sidebarDisposable','_registerChartImageRenderObjectFactory','_closePopup','isConnected','_sidebarService','cancel','unsubscribe','_renderService','ChartStyle','sheet.command.chart.copy-focused-chart','mode','removeHost','bottom','push','right','columnStacked','update','ensureHandle','getChartModel','beginPath','_clearSelectedTarget','_getOrCreateChartRenderInstance','sheets-chart-ui.section.wordCloud','labelId','image','DRAWING_CHART','add','chartEditorOpen','_chartRenderMode','position$','engine','innerWidth','permissionCheckWithoutRange','GROUP','getRangeInfo','series','clear','registerFeatureMenu','sheets-chart-ui.section.gridlinesAndTicks','scaleY','getFocusDrawings','pluginName','Bar','CUT','IndicatorLine','_cancelHostWait','_cancelDebouncedCallbacks','initialRect','_image','axis','complete','showFloatMenu','_markNotReady','DRAWING','chartModelAdded$','sheets-chart-ui.common.editChart','createChartInstance','getCanvasElement','funnel','Histogram','sheets-chart-ui.section.histogram','_createCopyInfoByRange','redo','_clearChartRuntimeCache','syncHostLayout','clearImage','_addWatermark','executeChartUpdateConfig','format','Data','top','clientX','_chartUIService','getChartSnapshotImage','Funnel','setBorder','clientHeight','default','name','call','logicalOuterRect','direction$','_urlImage','naturalHeight','-univer-mx-4','_setChartRuntimeZIndex','setOrientation','resolve','iconName','_panelRoute$','stringify','markReady','type','BUTTON','sheets-chart-ui.common.useAsCategoryLabels','_sheetSkeletonService','mergeMenu','setConfig','_init','resourceCollector','route','Boxplot','UniverSheetsChartUIPlugin','setDataRange','getSkeleton','syncLayout','getObject','register','ParetoLineSeries','promise','onStarting','_sheetDrawingService','_menuManagerService','width','asObservable','Chord','target','constructor','setActiveChartModel','getObjectIncludeInGroup','_focusedDrawings','LineAndArea','_disposeChartDomInstance','Scatter','relation','version','subUnitId','sheets-chart-ui.common.chartAndAxisTitles','getParent','781527NaaAXp','OPERATION','_getChartRenderObjectContext','naturalWidth','pipe','univer-overflow-hidden','object','hidden','beforeCommandExecuted','univer-shrink-0','_setHostStyle','isArray','arc','_activeChartId','Gauge','_alignFloatDomPositionWithSceneRender','interceptCommand','sheets-chart-ui.section.chord','updateFloatDom','_sheetCanvasPopManagerService','endX','attachPopupToDynamicAbsolutePosition','ancestorTransform','_sheetsChartService','_chartHostMap','getHostSize','Sunburst','sheets-chart-ui.common.customize','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','hasOwnProperty','height','sheets-chart-ui.host.provider','dataSource','PenIcon','missing-float-dom','_sheetClipboardService','ChartIcon','Overlay','forEach','_registerComponents','_initPrinting','setElementEditMode','absolute','DownloadImageIcon','getDrawingByParam','PieStyle','getFloatDomInfo','_config','isElementEditModeActive','startY','Positive','left','onDispose','markUnmanaged','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-0\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-0\x0a\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','_initActiveChartModelListener','Column','startX','focused$','get','canvas','_renderAfterChartUpdateMutation','_chartSnapshotStoreService','isHit','parent','Pie','pie','getValue','_entries','contains','getRealBound','from','_activeDomReadyChartIds','exportImage','pareto','_chartEditorOpen$','_activateEditPanelState','zIndex','_popupSessionKey','_sheetPrintInterceptorService','onload','_createPrintingChartObject','_localeService','_debounceHandleMap','columnPercentStacked','getBatchAddOp','1764686CfxTwc','clearPanelRoute','_chartEventHandlers','1.0.0-beta.2','sheets-chart-ui.common.chartStyle','onCommandExecuted','rightYAxis','_sheetsChartUIService','_listenChartUpdateMutations','baseOn','clearChart','tab','serialize','_chartThemeService','Trendline','requestPaint','univer-overflow-visible','range','_getSceneAndTransformerByDrawingSearch','_getOuterRect','value','isLatest','_restoreFloatDomPositionStream','getChartPopupMenus','_resolveChartRenderMode','_syncActiveEditChart','_lastRenderInputMap','header','with','checkMounted','invert','sheets-chart-ui.section.funnel','trendline','_requestPaint','sheets-chart-ui.section.gauge','.chart-host','_getCurrentSnapshotImage','_managed','_configService','Dom','getInterceptPoints','WaterfallSeries','_initMenus','cumulativeLineStyle','commitSnapshot','evented','iterator','updateFloatDomProps','create','filter','sheets-chart-ui.section.relation','defaultValues','_chartRenderService','startRow','_isProviderDisposed','querySelector','globalAlpha','_initPermission','sidebarOptions$','Waterfall','sheets-chart.ui.service','pieSecondaryPlotType','_getChartRenderObject','translate','DEFAULT_PASTE','delete','22989330mVMBws','crossOrigin','lineAndArea','Radar','_applyHostStyle','anchorRect$','_themeService','sheets-chart-ui.common.openChartPanel','Canvas','_executeChartUpdateSourceConfig','84216BKpsiM','getSheetId','UPDATE','abs','_commandService','_registerAdapter','blur','_disposeChartEventSubscription','_initActiveRuntimeLayerListener','RightVerticalAxis','Sankey','copyType','parentElement','1372665IEcXVe','_updateTransform','810bOBrib','heatmap','_rect','sheets-chart-ui.section.paretoBar','_popupChartId','INSERT','_sheetDrawingHitTestService','sheet-chart-setup-panel','focus$','sheets-chart-ui.section.treemap','disposeWithMe','hidePanel','dispose','[ChartRender]\x20Failed\x20to\x20render\x20chart\x20snapshot\x20for\x20printing','COMMAND','Pareto','number','sheet.chart.edit.panel','_getImage','sheets-chart-ui.waterfall.subtotal','setPanelRoute','afterRender$','params','every','_renderModelManager','activeChartModel$','set','initPanel','WordCloud','sheetDisposed$','min','_getOrCreateSheetChartHost','lineTo','sheetTransform','_generateCutPasteMutations','GridlinesAndTicks','remove$','isDomReady','getDirection','clip','_markReady','allSeriesStyle','src','_registerIcons','sheets-chart-ui.common.switchRowColumn','_getChartRenderSkipReason','_initDrawingDeactivationListener','sheets-chart-ui.common.legend','sheets-chart-ui.section.indicatorLine','_chartInstanceMap','ImageBitmap','scroll','Combination','VerticalAxis','sheets-chart-ui.common.setup','titles','_waiter','intercept','restore','_iconManager','makeDirty','sheets-chart-ui.waterfall.negative','applyPoint','_univerInstanceService','nextVersion','div','handleActiveSubUnitChange','Candlestick','visible','sheet.command.chart.export-focused-image','_resolveLayout','getSubUnitId','_clearSheetChartRuntimeCaches','sheets-chart-ui.common.deleteChart','getCurrentLastSelection','_chartModelService','_popupDisposable','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_initCommands','resize','decorate','sheets-chart-ui.common.dataRange','chartId','_chartHostProvider','render','HorizontalAxis','_createHost','setChartEditorOpen','_initCopyPaste','isFinite','createRuntimeChartStyle','_getHostPlacement','img','removeChartModel','setHostStyle','has','max','Fail\x20to\x20create\x20float\x20dom','symbol','chartType','click','toPrimitive','some','drawImage','children','subscribeEvent','_chartEventSubscriptions','REMOVE','#-#','sheets-chart-ui.common.series','segmented','PRINTING_COMPONENT_COLLECT','scaleX','featurePluginUngroupUpdate$','Line','setImage','getChartDataSource','Area','config$','renderChartsForPrinting','_savedWrapperStyle','setContextValue','url','_debounceHandle','markHostNotReady','Row','ensureHost','_removeHost$','sheets-chart-ui.common.verticalAxis','_isChartElementEditEnabled','length','all','blockExecuteWithoutPermission','getUnitId','keys','sheets-chart-ui.permission.editErr','offsetHeight','ChartAndAxisTitles','opacity','_createImageChartHost','sheets-chart-ui.waterfall.positive','_rangeSelectMode','_version','_openPanel','Relation','allSettled','moveTo','_getDrawable','_frameStyle','transformChange$','registerRenderObjectFactory','unitId','sheets-chart-ui.common.hideChartPanel','sheet.operation.hide-chart-panel','getRenderColor','localPoint','rangeSelectMode','classType','getSheetBySheetId','_applyActiveChartRuntimeZIndex','_chartHostProviderService','packageName','_canvasFloatDomService','rect','getRenderUnitById','sheet-chart-style-panel','Style','invalidateSnapshot','focusDrawing','activeSheet$','_resetChartRuntimeZIndex','_getFloatDomInfo','CopyDoubleIcon','category','assignStyle','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_componentManager','3IpQhIQ','_resolvedConfig','_renderChartModel','strokeWidth','getRect','getTransformerByCreate','radius','getUnit','sheet.command.chart.open-focused-panel','color','_subscribeChartEvents','_drawingManagerService','_disposed','_url','_requestChartCanvasRender','startColumn','concat','activeRuntimeModel','_rerenderLatest','getBatchUpdateOp','dataUrl','4042565iFYEPY','sheets-chart-ui.section.sunburst','download','_renderWhenConfigReady','featurePluginOrderUpdate$','activeChartModel','_bindChartEventHandler','_openEditPanelByDoubleClick','openChartPanelById','bind','OTHERS','_getChartSnapshotKey','getSheetBySheetName','wordCloud','offsetLeft','_restoreHostWrapper','label','getRenderModel','addObject','scene','_draw','_copyInfo','chartEditorOpen$','map','offsetTop','_domFrame','getConfig','isInGroup','then','_createChartRenderInstanceContext','1000','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-5','executeCommand','defineProperty','rightY','Heatmap','markNotReady','1666468sJEcTB','style$','chartObject','sheets-chart-ui.config','sheets-chart-ui.chord.target','sheets-chart-ui.common.trendline','sheet.command.chart.delete-focused-chart','_deactivateEditPanelState','icon','indexOf','prototype','_drawChartFrame','rangeInfo','transform','createElement','next','getFocusedUnit','_pendingToken','sheetId','sheets-chart-ui.section.radar','getElementById','Canceled\x20waiting\x20for\x20float\x20dom\x20host\x20\x22','enableChartElementFloatMenu','getDrawingOrder','featurePluginGroupUpdate$','rangeInfo$','_generatePasteMutations','UNIVER_SHEET','transparent','@univerjs-pro/sheets-chart-ui','_initSheetChange','_pendingMutationConfigRenders','undo','config','sheets-chart-ui.common.rightVerticalAxis','_snapshotKey','takeSnapshot','_generateCopyPasteMutations','chartModelId','_renderManagerService','getActiveSheet','domId','_sheetPermissionCheckController','mountNode','getDrawingData','titleKey','CHART','ensureMount','sheets-chart-ui.common.copy','_getPlacement','href','_pendingHost','_disposeChartEventSubscriptions','endY','setStyle','_handleDrawingDoubleClick','values','_snapshotStore','getId','seriesId','_clearHiddenSelectedTarget','_sheetCanvasFloatDomManagerService','Image','section','_renderDebounceMap','save','_disposeImage','_bindChartEventHandlers','panelRoute$','_shouldSuppressRender','style','onTransformChange$','idMap','clientY','_activateHostWrapper','getBoundingClientRect','objects','clearRuntimeCache','_openFloatMenu','string','getImage','setObjectType','function','groupId','imageBitmap','_sheetInterceptorService','6byNFUs','closePath','radar','sheet.operation.open-chart-panel','_injector','_lastActiveSheet','sheets-chart-ui.common.exportImage','_disposeChartRenderInstance','setRangeSelectMode','Treemap','nativeEvent','isRender','getCurrentUnitOfType','select','_adapterRegistry','_resizeChart','_markHostReady','_shouldEnableChartElementEdit','Url','sheets-chart-ui.common.insertChart','pointerEvents','add$','subscribe','_chartElementEditMode','MEDIA','_hostStyle','removeHost$','_drawChartImage','viewBound','drawingId','SELECTOR','drawingType','bounds','isManaged'];_0x4890=function(){return _0x18198f;};return _0x4890();}function $r(_0x27a053){const _0x404f86=_0x2e596f;let _0x42004b=Math[_0x404f86(0x1ef)](_0x27a053[_0x404f86(0x387)]-_0x27a053['startX'],0x0),_0x127ae2=Math[_0x404f86(0x1ef)](_0x27a053[_0x404f86(0x2af)]-_0x27a053[_0x404f86(0x3a4)],0x0),_0x53e8c2=_0x27a053[_0x404f86(0x39d)][_0x404f86(0x3a6)]&&_0x27a053[_0x404f86(0x363)]-_0x42004b>Qr,_0x323f2f=_0x27a053[_0x404f86(0x39d)][_0x404f86(0x338)]&&_0x27a053['height']-_0x127ae2>Qr;return!_0x53e8c2&&!_0x323f2f?_0x27a053:{..._0x27a053,'absolute':{'left':!_0x53e8c2&&_0x27a053[_0x404f86(0x39d)]['left'],'top':!_0x323f2f&&_0x27a053['absolute']['top']}};}function ei(_0x257baf){const _0x3f2d32=_0x2e596f;if(!Object[_0x3f2d32(0x284)][_0x3f2d32(0x390)][_0x3f2d32(0x341)](_0x257baf,'border'))return _0x257baf;let {border:_0x11b74f,..._0x175dd8}=_0x257baf;return{..._0x175dd8,'stroke':(_0x11b74f==null?void 0x0:_0x11b74f[_0x3f2d32(0x249)])??_0x3f2d32(0x296),'strokeWidth':(_0x11b74f==null?void 0x0:_0x11b74f['width'])??0x0};}let ti=class extends _0x119f54{constructor(_0x161d08,_0x50bc54,_0x5bed75,_0x44bd29){const _0x333e74=_0x2e596f;super(),this[_0x333e74(0x2b7)]=_0x161d08,this[_0x333e74(0x2a1)]=_0x50bc54,this['_chartSnapshotStoreService']=_0x5bed75,this[_0x333e74(0x231)]=_0x44bd29,W(this,_0x333e74(0x38b),new Map()),W(this,_0x333e74(0x3bb),new Set()),W(this,'_removeHost$',new _0x4dd856()),W(this,_0x333e74(0x2ea),this[_0x333e74(0x20e)][_0x333e74(0x364)]()),this[_0x333e74(0x199)](this[_0x333e74(0x2b7)]['remove$'][_0x333e74(0x2e6)](_0x5aa2ce=>{const _0x313dd8=_0x333e74;let _0x1305e3=this['_chartHostMap'][_0x313dd8(0x3ae)](_0x5aa2ce['id']);_0x1305e3!=null&&_0x1305e3[_0x313dd8(0x2f1)]()&&(_0x1305e3[_0x313dd8(0x3a8)](),this[_0x313dd8(0x20e)][_0x313dd8(0x289)](_0x5aa2ce['id']));}));}[_0x2e596f(0x3db)](_0x50404b){const _0x57014b=_0x2e596f;if(_0x50404b==null)return;let _0x4216c1=this[_0x57014b(0x2a1)][_0x57014b(0x233)](_0x50404b),_0x1e8a8d=_0x4216c1==null?void 0x0:_0x4216c1[_0x57014b(0x268)];return _0x4216c1==null||_0x1e8a8d==null?null:{'scene':_0x1e8a8d,'transformer':_0x1e8a8d[_0x57014b(0x245)](),'renderUnit':_0x4216c1,'canvas':_0x4216c1[_0x57014b(0x310)][_0x57014b(0x32b)]()};}[_0x2e596f(0x33d)](_0x27e4a9,_0x35b7f1){const _0x416646=_0x2e596f;let _0x50b185=this[_0x416646(0x2b7)],_0x36029c=_0x35b7f1||_0x416646(0x296),_0x755daa=_0x50b185['getFloatDomInfo'](_0x27e4a9);if(_0x755daa){let {unitId:_0x534e8c,subUnitId:_0x4504ad}=_0x755daa;_0x50b185[_0x416646(0x3f8)](_0x534e8c,_0x4504ad,_0x27e4a9,{'stroke':_0x36029c});}}['setHostStyle'](_0x3e879a,_0x480063){const _0x40a302=_0x2e596f;let _0x4125ce=this[_0x40a302(0x2b7)],_0x1058e=_0x4125ce['getFloatDomInfo'](_0x3e879a);if(_0x1058e){let {unitId:_0x480f08,subUnitId:_0x119ae2}=_0x1058e;_0x4125ce['updateFloatDomProps'](_0x480f08,_0x119ae2,_0x3e879a,ei(_0x480063));}}['getHostSize'](_0x450b6e){const _0x82404=_0x2e596f;let _0x356d02=this[_0x82404(0x2b7)][_0x82404(0x3a1)](_0x450b6e);return _0x356d02?_0x356d02['rect']:null;}['checkHost'](_0x52e86d){const _0x348797=_0x2e596f;var _0x1282de;return((_0x1282de=this[_0x348797(0x38b)][_0x348797(0x3ae)](_0x52e86d))==null?void 0x0:_0x1282de[_0x348797(0x3e6)]())??!0x1;}['syncHostLayout'](_0x2ce453){const _0x4d0df9=_0x2e596f;var _0x35a265;(_0x35a265=this['_chartHostMap']['get'](_0x2ce453))==null||_0x35a265[_0x4d0df9(0x35b)]();}[_0x2e596f(0x2fd)](_0x4dcf62){const _0x1b5050=_0x2e596f;let _0x5372dc=this[_0x1b5050(0x38b)]['get'](_0x4dcf62);_0x5372dc==null||_0x5372dc['dispose'](),this[_0x1b5050(0x38b)]['delete'](_0x4dcf62);}async[_0x2e596f(0x20d)](_0x472e2c,_0x4caea8){const _0x4cc427=_0x2e596f;if(_0x4caea8===_0x285902['Image'])return this[_0x4cc427(0x21a)](_0x472e2c);if(_0x4caea8===_0x285902['Dom'])return this[_0x4cc427(0x1ae)](_0x472e2c);let _0x4c90b6=this['_getOrCreateSheetChartHost'](_0x472e2c);if(!_0x4c90b6)throw Error(_0x4cc427(0x1f0));return _0x4c90b6[_0x4cc427(0x303)]();}[_0x2e596f(0x1b4)](_0x2f4159){const _0x527a8b=_0x2e596f;var _0x145625;return this[_0x527a8b(0x3bb)][_0x527a8b(0x1ee)](_0x2f4159)?(_0x145625=this[_0x527a8b(0x38b)]['get'](_0x2f4159))!=null&&_0x145625['checkMounted']()?!0x0:(this[_0x527a8b(0x3bb)][_0x527a8b(0x40a)](_0x2f4159),this[_0x527a8b(0x3df)](_0x2f4159),!0x1):!0x1;}[_0x2e596f(0x20b)](_0x3fac68){this['_activeDomReadyChartIds']['delete'](_0x3fac68)&&(this['_restoreFloatDomPositionStream'](_0x3fac68),this['_requestChartCanvasRender'](_0x3fac68));}[_0x2e596f(0x236)](_0x3b9013){const _0x8dcad3=_0x2e596f;let _0x4c0153=this[_0x8dcad3(0x260)](_0x3b9013);_0x4c0153&&this['_chartSnapshotStoreService'][_0x8dcad3(0x1cf)](_0x4c0153);}[_0x2e596f(0x21a)](_0x479b5e){const _0x567d0f=_0x2e596f;let _0x3d3710=this[_0x567d0f(0x260)](_0x479b5e);return!_0x3d3710||!this['getHostSize'](_0x479b5e)?null:new Zr(_0x479b5e,()=>this[_0x567d0f(0x38c)](_0x479b5e),_0x26341a=>this[_0x567d0f(0x1ed)](_0x479b5e,_0x26341a),_0x3d3710,this[_0x567d0f(0x3b1)],()=>this['_requestChartCanvasRender'](_0x479b5e));}['_getOrCreateSheetChartHost'](_0x40aa5e){const _0x178404=_0x2e596f;if(!this['getHostSize'](_0x40aa5e))return null;this[_0x178404(0x231)]['updateFloatDom'](_0x40aa5e,{'contentBox':{'wrapperInset':0x0,'contentInset':0x0}});let _0x29b528=this[_0x178404(0x38b)]['get'](_0x40aa5e);if(_0x29b528)return _0x29b528;let _0x178c7f=new Xr(_0x40aa5e,()=>this[_0x178404(0x2b7)][_0x178404(0x3a1)](_0x40aa5e),()=>this[_0x178404(0x1ea)](_0x40aa5e),_0x57d032=>this[_0x178404(0x1ed)](_0x40aa5e,_0x57d032),()=>this[_0x178404(0x24c)],()=>this[_0x178404(0x2e0)](_0x40aa5e),()=>this[_0x178404(0x20b)](_0x40aa5e));return this[_0x178404(0x38b)][_0x178404(0x1a9)](_0x40aa5e,_0x178c7f),_0x178c7f;}['_markHostReady'](_0x54a443){const _0x1b580e=_0x2e596f;this[_0x1b580e(0x3bb)]['has'](_0x54a443)||(this[_0x1b580e(0x3bb)][_0x1b580e(0x30c)](_0x54a443),this[_0x1b580e(0x382)](_0x54a443),this['_requestChartCanvasRender'](_0x54a443));}['_alignFloatDomPositionWithSceneRender'](_0x12bbe4){const _0x78ec8f=_0x2e596f;var _0x5a7d52;let _0x5807eb=this[_0x78ec8f(0x2b7)]['getFloatDomInfo'](_0x12bbe4),_0xc0ebf6=_0x5807eb?(_0x5a7d52=this[_0x78ec8f(0x2a1)]['getRenderUnitById'](_0x5807eb[_0x78ec8f(0x226)]))==null?void 0x0:_0x5a7d52[_0x78ec8f(0x268)]:null;if(!_0x5807eb||!_0xc0ebf6)return;let _0x3c31ef=_0x423d97(_0x5807eb['position$'][_0x78ec8f(0x377)](_0x42ca26(0x1)),_0xc0ebf6[_0x78ec8f(0x1a4)][_0x78ec8f(0x377)](_0x3fa0a4(_0x5807eb[_0x78ec8f(0x30f)]),_0x18f3e7(([,_0x32544d])=>_0x32544d)))['pipe'](_0x1c1222(),_0x18f3e7($r));this[_0x78ec8f(0x231)][_0x78ec8f(0x385)](_0x12bbe4,{'position$':_0x3c31ef});}['_restoreFloatDomPositionStream'](_0x2330ce){const _0x2688b8=_0x2e596f;let _0x418248=this[_0x2688b8(0x2b7)][_0x2688b8(0x3a1)](_0x2330ce);_0x418248&&this[_0x2688b8(0x231)][_0x2688b8(0x385)](_0x2330ce,{'position$':_0x418248[_0x2688b8(0x30f)]});}[_0x2e596f(0x260)](_0x28b614){const _0x5a1014=_0x2e596f;let _0x559162=this['_sheetCanvasFloatDomManagerService'][_0x5a1014(0x3a1)](_0x28b614);return _0x559162?{'unitId':_0x559162['unitId'],'subUnitId':_0x559162[_0x5a1014(0x370)],'chartId':_0x28b614}:null;}[_0x2e596f(0x24e)](_0x53cee1){const _0x14d19e=_0x2e596f;var _0x2ab86a,_0x1757e3,_0x18d790;let _0x19cefd=this[_0x14d19e(0x2b7)][_0x14d19e(0x3a1)](_0x53cee1);if(!_0x19cefd)return;let _0x44f7ab=(_0x2ab86a=this[_0x14d19e(0x2a1)][_0x14d19e(0x233)](_0x19cefd[_0x14d19e(0x226)]))==null?void 0x0:_0x2ab86a['scene'],_0x227cf0=(_0x44f7ab==null||(_0x1757e3=_0x44f7ab[_0x14d19e(0x369)])==null?void 0x0:_0x1757e3[_0x14d19e(0x341)](_0x44f7ab,_0x150543({'unitId':_0x19cefd[_0x14d19e(0x226)],'subUnitId':_0x19cefd[_0x14d19e(0x370)],'drawingId':_0x53cee1})))??(_0x44f7ab==null?void 0x0:_0x44f7ab[_0x14d19e(0x35c)](_0x150543({'unitId':_0x19cefd[_0x14d19e(0x226)],'subUnitId':_0x19cefd[_0x14d19e(0x370)],'drawingId':_0x53cee1})))??null;_0x227cf0==null||(_0x18d790=_0x227cf0[_0x14d19e(0x1cb)])==null||_0x18d790[_0x14d19e(0x341)](_0x227cf0,!0x0),_0x44f7ab==null||_0x44f7ab[_0x14d19e(0x1cb)](!0x0);}[_0x2e596f(0x1ea)](_0x577bc5){const _0x82f132=_0x2e596f;let _0x33ddb5=this[_0x82f132(0x2b7)][_0x82f132(0x3a1)](_0x577bc5);if(!_0x33ddb5)return null;let _0x14c5ba=this[_0x82f132(0x3db)](_0x33ddb5['unitId']),_0x32a75b=_0x14c5ba==null?void 0x0:_0x14c5ba[_0x82f132(0x268)],_0x34a02d=document[_0x82f132(0x28e)](_0x33ddb5[_0x82f132(0x2a3)]??_0x577bc5);return Vr(_0x33ddb5[_0x82f132(0x232)],{'scaleX':(_0x32a75b==null?void 0x0:_0x32a75b[_0x82f132(0x1ff)])??0x1,'scaleY':(_0x32a75b==null?void 0x0:_0x32a75b[_0x82f132(0x319)])??0x1},_0x34a02d?{'left':_0x34a02d[_0x82f132(0x263)],'top':_0x34a02d[_0x82f132(0x26d)]}:void 0x0);}['dispose'](){const _0x2c286c=_0x2e596f;this[_0x2c286c(0x24c)]||(this['_chartHostMap'][_0x2c286c(0x399)](_0x1b5f65=>_0x1b5f65[_0x2c286c(0x19b)]()),this[_0x2c286c(0x38b)]['clear'](),this['_activeDomReadyChartIds'][_0x2c286c(0x316)](),this[_0x2c286c(0x20e)]['complete'](),super[_0x2c286c(0x19b)]());}};ti=J([q(0x0,_0x12d10b(_0x1c815e)),q(0x1,_0x12d10b(_0x570cdb)),q(0x2,_0x12d10b(Jr)),q(0x3,_0x12d10b(_0x54f983))],ti);const ni=_0x596b63(_0x2e596f(0x392)),Y=_0x596b63(_0x2e596f(0x405));let ri=class extends _0x36ad4e{constructor(_0x45685e,_0x1f4fb7,_0x5a7da1,_0x220fa1,_0xb9adbd){const _0x5355c6=_0x2e596f;super(_0xb9adbd),this['_chartModelService']=_0x45685e,this[_0x5355c6(0x38a)]=_0x1f4fb7,this['_commandService']=_0x5a7da1,this[_0x5355c6(0x1ce)]=_0x220fa1,W(this,_0x5355c6(0x21c),!0x1),W(this,_0x5355c6(0x3be),new _0x56dbf5(!0x1)),W(this,'_panelRoute$',new _0x56dbf5(null)),W(this,_0x5355c6(0x26b),this[_0x5355c6(0x3be)]['asObservable']()),W(this,'panelRoute$',this[_0x5355c6(0x34b)][_0x5355c6(0x364)]());}get[_0x2e596f(0x251)](){const _0x593e76=_0x2e596f;return this[_0x593e76(0x1da)]['activeChartModel']??null;}get[_0x2e596f(0x30d)](){const _0x5a94b2=_0x2e596f;return this[_0x5a94b2(0x3be)][_0x5a94b2(0x3b6)]();}get[_0x2e596f(0x22b)](){const _0x2e3899=_0x2e596f;return this[_0x2e3899(0x21c)];}['setRangeSelectMode'](_0x7258c1){this['_rangeSelectMode']=_0x7258c1;}[_0x2e596f(0x1e6)](_0x1045c7){const _0x4530f0=_0x2e596f;this[_0x4530f0(0x3be)][_0x4530f0(0x3b6)]()!==_0x1045c7&&this[_0x4530f0(0x3be)]['next'](_0x1045c7);}[_0x2e596f(0x3a3)](_0xb6955c){const _0x5d1328=_0x2e596f;var _0x52caf1;return this[_0x5d1328(0x30d)]&&((_0x52caf1=this[_0x5d1328(0x1da)][_0x5d1328(0x25a)])==null?void 0x0:_0x52caf1['id'])===_0xb6955c;}[_0x2e596f(0x1a3)](_0x275a33,_0x483c91){const _0x5805b2=_0x2e596f;this[_0x5805b2(0x34b)][_0x5805b2(0x289)]({'chartId':_0x275a33,'route':_0x483c91});}['clearPanelRoute'](){const _0x3cea84=_0x2e596f;this[_0x3cea84(0x34b)]['next'](null);}['setDataRange'](_0x26980a){const _0x21a9e2=_0x2e596f;let _0x5b3e46=this[_0x21a9e2(0x1da)]['activeChartModel'];_0x5b3e46&&this['_executeChartUpdateSourceConfig']({'chartModelId':_0x5b3e46['id'],'range':_0x26980a});}[_0x2e596f(0x348)](_0x10ac26){const _0x40eb41=_0x2e596f;var _0x4e17bd;let _0x119958=this[_0x40eb41(0x1da)][_0x40eb41(0x25a)];if(!_0x119958)return;let _0xa2fca6=(_0x4e17bd=this[_0x40eb41(0x38a)][_0x40eb41(0x203)](_0x119958['id']))==null?void 0x0:_0x4e17bd['getRangeInfo']();if(!_0xa2fca6)return;let _0x296d9a={..._0xa2fca6,'isRowDirection':_0x10ac26===_0x525dbd['Row']};this[_0x40eb41(0x17f)]({'chartModelId':_0x119958['id'],'range':_0x296d9a});}[_0x2e596f(0x335)](_0x535f97){const _0x426e7a=_0x2e596f;var _0x409c3a;this['_commandService'][_0x426e7a(0x275)](_0xc54c6['id'],{..._0x535f97,'unitId':((_0x409c3a=this['_univerInstanceService'][_0x426e7a(0x28a)]())==null?void 0x0:_0x409c3a[_0x426e7a(0x214)]())??''});}['_executeChartUpdateSourceConfig'](_0x27c845){const _0x18f3a5=_0x2e596f;var _0x4040ff;this[_0x18f3a5(0x184)][_0x18f3a5(0x275)](_0x56a07d['id'],{..._0x27c845,'unitId':((_0x4040ff=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x4040ff[_0x18f3a5(0x214)]())??''});}[_0x2e596f(0x19b)](){const _0x535b69=_0x2e596f;this['_chartEditorOpen$'][_0x535b69(0x324)](),this[_0x535b69(0x34b)][_0x535b69(0x324)](),super[_0x535b69(0x19b)]();}};ri=J([q(0x0,_0x12d10b(_0x507ffa)),q(0x1,_0x12d10b(_0xa0b5c7)),q(0x2,_0x345ee8),q(0x3,_0x24beef),q(0x4,_0x12d10b(_0x14c209))],ri);const ii=_0x3330c2['Image'];var ai=class extends _0x3a79e8{constructor(_0x25d74f,_0x68fe43){const _0xe38630=_0x2e596f;super(_0x25d74f),this[_0xe38630(0x191)]=_0x68fe43,W(this,_0xe38630(0x21d),0x0),W(this,_0xe38630(0x322),void 0x0),W(this,_0xe38630(0x2c0),{});}[_0x2e596f(0x244)](){const _0x476db2=_0x2e596f;return this[_0x476db2(0x191)];}[_0x2e596f(0x2b0)](_0x42b3e4){const _0x5e72fd=_0x2e596f;this[_0x5e72fd(0x2c0)]=_0x42b3e4;}[_0x2e596f(0x1cf)](){const _0x5c891f=_0x2e596f;return++this[_0x5c891f(0x21d)];}[_0x2e596f(0x3f5)](_0x3a5515,_0x1705f7){const _0x4b00e7=_0x2e596f;return _0x1705f7===this[_0x4b00e7(0x21d)]?(G(this[_0x4b00e7(0x322)]),this[_0x4b00e7(0x322)]=_0x3a5515,!0x0):(G(_0x3a5515),!0x1);}[_0x2e596f(0x3d8)](){}[_0x2e596f(0x236)](){const _0x53e7b5=_0x2e596f;this[_0x53e7b5(0x21d)]+=0x1;}[_0x2e596f(0x29e)](){const _0x198931=_0x2e596f;let _0x276a24=this[_0x198931(0x322)];return this[_0x198931(0x322)]=void 0x0,_0x276a24;}[_0x2e596f(0x19b)](){const _0x17e046=_0x2e596f;G(this[_0x17e046(0x322)]),this[_0x17e046(0x322)]=void 0x0,super[_0x17e046(0x19b)]();}};function oi(_0x414d49,_0x17e3e7,_0x1ffec4){const _0x5e63a7=_0x2e596f;let _0x1ff25c=_0x414d49['getRuntimeContext'](_0x17e3e7);return _0xc518db({..._0x414d49[_0x5e63a7(0x2c0)],'runtime':{..._0x1ff25c,'layoutInset':0x8,..._0x1ffec4===void 0x0?{}:{'addWatermark':_0x1ffec4}},'direction':_0x17e3e7},_0x414d49[_0x5e63a7(0x1f2)]);}let X=class extends _0x119f54{constructor(_0x5f405e,_0x2e1a5a,_0x82a032,_0xf1e024,_0x3b23b1,_0x5bd261,_0x473d30,_0x100a6d,_0xa0b747,_0x276930,_0x62c359,_0x32dd46,_0x2e5b2c,_0x33ca91){const _0x1b6423=_0x2e596f;super(),this[_0x1b6423(0x1e2)]=_0x5f405e,this[_0x1b6423(0x2b7)]=_0x2e1a5a,this[_0x1b6423(0x1da)]=_0x82a032,this[_0x1b6423(0x24b)]=_0xf1e024,this[_0x1b6423(0x1ce)]=_0x3b23b1,this[_0x1b6423(0x2a1)]=_0x5bd261,this[_0x1b6423(0x3c5)]=_0x473d30,this[_0x1b6423(0x33a)]=_0x100a6d,this[_0x1b6423(0x2d4)]=_0xa0b747,this[_0x1b6423(0x3d6)]=_0x276930,this[_0x1b6423(0x17c)]=_0x62c359,this[_0x1b6423(0x3ef)]=_0x32dd46,this[_0x1b6423(0x3b1)]=_0x2e5b2c,this[_0x1b6423(0x1a7)]=_0x33ca91,W(this,_0x1b6423(0x1c0),new Map()),W(this,_0x1b6423(0x3cb),new Map()),W(this,_0x1b6423(0x1f9),new Map()),W(this,_0x1b6423(0x2e7),new Map()),W(this,_0x1b6423(0x2ba),new Map()),W(this,'_debounceHandleMap',new Map()),W(this,_0x1b6423(0x30e),void 0x0),W(this,'_addWatermark',void 0x0),W(this,'_lastRenderInputMap',new Map()),W(this,_0x1b6423(0x380),null),W(this,_0x1b6423(0x2d5),null);let _0x49539b=_0x1491d5(this['_injector']),_0x311f87=this[_0x1b6423(0x3ef)][_0x1b6423(0x26f)](_0x5b4a64);this['_chartRenderMode']=(_0x311f87==null?void 0x0:_0x311f87['chartRenderMode'])??ii,this[_0x1b6423(0x334)]=_0x49539b[_0x1b6423(0x211)]!==0x1||_0x49539b[0x0]!=='all',this[_0x1b6423(0x2f3)](),this[_0x1b6423(0x3aa)](),this[_0x1b6423(0x1bd)](),this[_0x1b6423(0x188)](),this['handleActiveSubUnitChange']();}[_0x2e596f(0x33b)](_0x302a08){const _0x5ec5f1=_0x2e596f;let _0x3df44a=this[_0x5ec5f1(0x260)](_0x302a08);return _0x3df44a?this['_chartSnapshotStoreService']['getImage'](_0x3df44a):void 0x0;}[_0x2e596f(0x3e1)](_0x49da0f){const _0x2b486f=_0x2e596f;var _0x1e46ab;return((_0x1e46ab=this[_0x2b486f(0x1da)]['activeChartModel'])==null?void 0x0:_0x1e46ab['id'])===_0x49da0f?_0x3330c2['Dom']:this[_0x2b486f(0x30e)];}[_0x2e596f(0x260)](_0x3e317b){const _0x3d1a7c=_0x2e596f;let _0x47a34f=this[_0x3d1a7c(0x2b7)][_0x3d1a7c(0x3a1)](_0x3e317b);return _0x47a34f?{'unitId':_0x47a34f[_0x3d1a7c(0x226)],'subUnitId':_0x47a34f[_0x3d1a7c(0x370)],'chartId':_0x3e317b}:null;}[_0x2e596f(0x2f3)](){const _0xd3e361=_0x2e596f;this['_chartRenderMode']===_0x3330c2['Image']&&this[_0xd3e361(0x199)](this[_0xd3e361(0x2b7)][_0xd3e361(0x225)](_0x170c77[_0xd3e361(0x30b)],({key:_0x14a666,config:_0x1ff3dc,unitId:_0x37e2b4,subUnitId:_0x34f979,drawingId:_0x4cf133})=>new Gr(_0x14a666,_0x1ff3dc,()=>this['_chartSnapshotStoreService']['getImage']({'unitId':_0x37e2b4,'subUnitId':_0x34f979,'chartId':_0x4cf133}),()=>this['_chartHostProvider']['isDomReady'](_0x4cf133))));}[_0x2e596f(0x3aa)](){const _0x20cd0c=_0x2e596f;this[_0x20cd0c(0x199)](this['_chartModelService']['activeChartModel$'][_0x20cd0c(0x2e6)](_0x5c2528=>{const _0x3c301d=_0x20cd0c;let _0x363583=(_0x5c2528==null?void 0x0:_0x5c2528['id'])??null,_0x550f76=this[_0x3c301d(0x380)];_0x550f76!==_0x363583&&(_0x550f76&&(this[_0x3c301d(0x1e2)][_0x3c301d(0x20b)](_0x550f76),this['_resetChartRuntimeZIndex'](_0x550f76),this[_0x3c301d(0x36c)](_0x550f76),this[_0x3c301d(0x252)](_0x550f76)),this['_activeChartId']=_0x363583,_0x363583&&(this[_0x3c301d(0x1e2)][_0x3c301d(0x20b)](_0x363583),this[_0x3c301d(0x22e)](_0x363583),this[_0x3c301d(0x252)](_0x363583)));}));}[_0x2e596f(0x1bd)](){const _0x45292f=_0x2e596f;this[_0x45292f(0x199)](this[_0x45292f(0x24b)][_0x45292f(0x292)][_0x45292f(0x2e6)](_0x5afae2=>{const _0x161681=_0x45292f;var _0x3ee222;let _0x515da4=(_0x3ee222=this['_chartModelService'][_0x161681(0x25a)])==null?void 0x0:_0x3ee222['id'];_0x515da4&&_0x5afae2[_0x161681(0x1f5)](_0x1df035=>_0x1df035[_0x161681(0x1f7)][_0x161681(0x1f5)](_0x21e6f4=>_0x21e6f4['drawingId']===_0x515da4))&&this[_0x161681(0x1da)][_0x161681(0x368)](null);})),this['disposeWithMe'](this['_drawingManagerService'][_0x45292f(0x200)]['subscribe'](_0x401e1d=>{const _0xaabda7=_0x45292f;var _0x2a8e80;let _0x3d9fc3=(_0x2a8e80=this[_0xaabda7(0x1da)][_0xaabda7(0x25a)])==null?void 0x0:_0x2a8e80['id'];_0x3d9fc3&&_0x401e1d[_0xaabda7(0x1f5)](_0x15f8f4=>_0x15f8f4[_0xaabda7(0x3b3)][_0xaabda7(0x2ed)]===_0x3d9fc3||_0x15f8f4[_0xaabda7(0x1f7)]['some'](_0x1e7186=>_0x1e7186['drawingId']===_0x3d9fc3))&&this[_0xaabda7(0x1da)]['setActiveChartModel'](null);}));}[_0x2e596f(0x188)](){const _0x3fe65f=_0x2e596f;this['disposeWithMe'](this['_drawingManagerService'][_0x3fe65f(0x259)]['subscribe'](_0x38b43d=>{const _0x42ebd8=_0x3fe65f;var _0xd37d94;let _0x4806a8=(_0xd37d94=this[_0x42ebd8(0x1da)]['activeChartModel'])==null?void 0x0:_0xd37d94['id'];if(!_0x4806a8){_0x38b43d['drawingIds']['forEach'](_0x49f44e=>{const _0x5c57f9=_0x42ebd8;this[_0x5c57f9(0x1da)]['getChartModel'](_0x49f44e)&&this[_0x5c57f9(0x239)](_0x49f44e);});return;}let _0x3458b7=this[_0x42ebd8(0x2b7)][_0x42ebd8(0x3a1)](_0x4806a8);(_0x3458b7==null?void 0x0:_0x3458b7[_0x42ebd8(0x226)])===_0x38b43d[_0x42ebd8(0x226)]&&_0x3458b7[_0x42ebd8(0x370)]===_0x38b43d['subUnitId']&&this[_0x42ebd8(0x22e)](_0x4806a8);})),this['disposeWithMe'](this[_0x3fe65f(0x24b)]['add$'][_0x3fe65f(0x2e6)](_0x5966fb=>{const _0x5ee742=_0x3fe65f;var _0x66c0af;let _0x426bf5=(_0x66c0af=this['_chartModelService'][_0x5ee742(0x25a)])==null?void 0x0:_0x66c0af['id'];if(!_0x426bf5)return;let _0x2b9aed=this[_0x5ee742(0x2b7)][_0x5ee742(0x3a1)](_0x426bf5);_0x2b9aed&&_0x5966fb['some'](_0x1ee748=>_0x1ee748['unitId']===_0x2b9aed[_0x5ee742(0x226)]&&_0x1ee748[_0x5ee742(0x370)]===_0x2b9aed[_0x5ee742(0x370)])&&this[_0x5ee742(0x22e)](_0x426bf5);})),this['disposeWithMe'](this['_chartModelService']['chartModelRemoved$'][_0x3fe65f(0x2e6)](_0x4ade49=>{const _0x3194a3=_0x3fe65f;var _0x337b4f;this['_lastRenderInputMap']['delete'](_0x4ade49),this[_0x3194a3(0x3b1)][_0x3194a3(0x3d3)](_0x4ade49),this['_clearChartRuntimeCache'](_0x4ade49),this[_0x3194a3(0x1e2)][_0x3194a3(0x20b)](_0x4ade49),((_0x337b4f=this[_0x3194a3(0x1da)][_0x3194a3(0x25a)])==null?void 0x0:_0x337b4f['id'])===_0x4ade49?this[_0x3194a3(0x1da)][_0x3194a3(0x368)](null):this[_0x3194a3(0x239)](_0x4ade49),this['_disposeChartRenderInstance'](_0x4ade49);}));}[_0x2e596f(0x252)](_0x3a7272){const _0x52df0a=_0x2e596f;let _0x3845b2=this[_0x52df0a(0x3e3)][_0x52df0a(0x3ae)](_0x3a7272);_0x3845b2&&this[_0x52df0a(0x1e3)](_0x3a7272,_0x3845b2[_0x52df0a(0x29b)],_0x3845b2['style']);}['_disposeChartDomInstance'](_0x352756){const _0x58ff92=_0x2e596f;let _0x531b77=this[_0x58ff92(0x1c0)][_0x58ff92(0x3ae)](_0x352756);(_0x531b77==null?void 0x0:_0x531b77[_0x58ff92(0x2fc)])==='dom'&&(this['_disposeChartEventSubscriptions'](_0x352756),_0x531b77[_0x58ff92(0x19b)](),this[_0x58ff92(0x1c0)][_0x58ff92(0x40a)](_0x352756)),this[_0x58ff92(0x1e2)]['markHostNotReady'](_0x352756),this[_0x58ff92(0x1e2)][_0x58ff92(0x2fd)](_0x352756);}[_0x2e596f(0x2d7)](_0x27224a){const _0xdcc1da=_0x2e596f;let _0x3c50ff=this['_chartInstanceMap'][_0xdcc1da(0x3ae)](_0x27224a);_0x3c50ff&&(this[_0xdcc1da(0x2ae)](_0x27224a),_0x3c50ff[_0xdcc1da(0x19b)](),this[_0xdcc1da(0x1c0)]['delete'](_0x27224a)),this[_0xdcc1da(0x1e2)][_0xdcc1da(0x20b)](_0x27224a),this[_0xdcc1da(0x1e2)][_0xdcc1da(0x2fd)](_0x27224a);}[_0x2e596f(0x331)](_0x248520){const _0x608ce5=_0x2e596f;var _0x2c3ce5,_0x484a86;(_0x2c3ce5=this[_0x608ce5(0x1a7)]['getRenderModel'](_0x413b24))==null||(_0x484a86=_0x2c3ce5[_0x608ce5(0x2c7)])==null||_0x484a86['call'](_0x2c3ce5,_0x248520);}['_clearSheetChartRuntimeCaches'](_0x377936,_0x4dc0c5){const _0xeb7dc2=_0x2e596f;let _0x2d928c=this[_0xeb7dc2(0x24b)][_0xeb7dc2(0x2a6)](_0x377936,_0x4dc0c5);Object[_0xeb7dc2(0x2b2)](_0x2d928c??{})[_0xeb7dc2(0x399)](_0x5ba6f7=>{const _0x282530=_0xeb7dc2;_0x5ba6f7[_0x282530(0x2ef)]===_0x170c77[_0x282530(0x30b)]&&this[_0x282530(0x331)](_0x5ba6f7['drawingId']);});}['_getChartRenderObject'](_0x5abfa9,_0x20808e){const _0x363406=_0x2e596f;var _0x5ed81a;return((_0x5ed81a=_0x5abfa9['getObjectIncludeInGroup'])==null?void 0x0:_0x5ed81a['call'](_0x5abfa9,_0x20808e))??_0x5abfa9[_0x363406(0x35c)](_0x20808e)??null;}[_0x2e596f(0x375)](_0x5cd45f){const _0x4d0933=_0x2e596f;var _0x265922;let _0x3640f1=this['_sheetCanvasFloatDomManagerService'][_0x4d0933(0x3a1)](_0x5cd45f);if(!_0x3640f1)return null;let _0x5e40bf=(_0x265922=this[_0x4d0933(0x2a1)][_0x4d0933(0x233)](_0x3640f1['unitId']))==null?void 0x0:_0x265922[_0x4d0933(0x268)];if(!_0x5e40bf)return null;let _0x249e94=this[_0x4d0933(0x407)](_0x5e40bf,_0x150543({'unitId':_0x3640f1[_0x4d0933(0x226)],'subUnitId':_0x3640f1[_0x4d0933(0x370)],'drawingId':_0x5cd45f}));return _0x249e94?{'info':_0x3640f1,'scene':_0x5e40bf,'chartObject':_0x249e94}:null;}[_0x2e596f(0x347)](_0x24d66e,_0x5df6ac){const _0x54bff2=_0x2e596f;var _0x5f37c0,_0x4dd579,_0x402432,_0x58b73b;let _0x4a5007=this[_0x54bff2(0x375)](_0x24d66e);_0x4a5007&&((_0x5f37c0=(_0x4dd579=_0x4a5007['chartObject'])['setProps'])==null||_0x5f37c0[_0x54bff2(0x341)](_0x4dd579,{'zIndex':_0x5df6ac}),(_0x402432=(_0x58b73b=_0x4a5007[_0x54bff2(0x27c)])['makeDirty'])==null||_0x402432[_0x54bff2(0x341)](_0x58b73b,!0x0),_0x4a5007['scene'][_0x54bff2(0x1cb)](!0x0));}[_0x2e596f(0x22e)](_0xef28e8){const _0x100ae5=_0x2e596f;let _0x1dfab2=this[_0x100ae5(0x2b7)][_0x100ae5(0x3a1)](_0xef28e8);if(!_0x1dfab2)return;let _0x10558d=this['_drawingManagerService'][_0x100ae5(0x291)](_0x1dfab2[_0x100ae5(0x226)],_0x1dfab2[_0x100ae5(0x370)]);this[_0x100ae5(0x347)](_0xef28e8,_0x10558d[_0x100ae5(0x211)]);}[_0x2e596f(0x239)](_0x4140f9){const _0x6cf727=_0x2e596f;let _0x54140c=this[_0x6cf727(0x2b7)][_0x6cf727(0x3a1)](_0x4140f9);if(!_0x54140c)return;let _0x465673=this[_0x6cf727(0x24b)][_0x6cf727(0x291)](_0x54140c[_0x6cf727(0x226)],_0x54140c['subUnitId']),_0x4b22db=_0x465673['indexOf'](_0x4140f9);this['_setChartRuntimeZIndex'](_0x4140f9,_0x4b22db===-0x1?Math[_0x6cf727(0x1ef)](_0x465673[_0x6cf727(0x211)]-0x1,0x0):_0x4b22db);}['_resizeChart'](_0x5c0809,_0x3e4955){const _0x256f9e=_0x2e596f;let _0x127fb8=this[_0x256f9e(0x2b7)][_0x256f9e(0x3a1)](_0x5c0809);if(_0x3e4955['width']!==void 0x0&&_0x3e4955[_0x256f9e(0x391)]!==void 0x0&&_0x127fb8){var _0x24ed60;let {subUnitId:_0x17c2cb}=_0x127fb8,_0x1d7990=(_0x24ed60=this[_0x256f9e(0x1ce)][_0x256f9e(0x2dc)](_0x3f0a52[_0x256f9e(0x295)]))==null?void 0x0:_0x24ed60['getActiveSheet']();if((_0x1d7990==null?void 0x0:_0x1d7990[_0x256f9e(0x181)]())===_0x17c2cb){let {width:_0x1d6a94,height:_0x1bc6b7}=_0x3e4955,_0x3e8518=this[_0x256f9e(0x1da)][_0x256f9e(0x304)](_0x5c0809),_0x20a34d=_0x3e8518==null?void 0x0:_0x3e8518['style'];if(Math[_0x256f9e(0x183)](_0x1d6a94-((_0x20a34d==null?void 0x0:_0x20a34d[_0x256f9e(0x363)])||0x0))>0x1||Math[_0x256f9e(0x183)](_0x1bc6b7-((_0x20a34d==null?void 0x0:_0x20a34d[_0x256f9e(0x391)])||0x0))>0x1){_0x3e8518==null||_0x3e8518[_0x256f9e(0x23d)]({..._0x20a34d,'width':_0x1d6a94,'height':_0x1bc6b7});let _0x4ce3ec=this['_chartInstanceMap'][_0x256f9e(0x3ae)](_0x5c0809);_0x4ce3ec&&(this[_0x256f9e(0x1e2)][_0x256f9e(0x332)](_0x5c0809),_0x4ce3ec[_0x256f9e(0x1de)]());}}}}[_0x2e596f(0x20a)](_0x47dff2,_0x53658f,_0x531cd2=0x0){const _0x16eb69=_0x2e596f;let _0x1af5d1=this['_debounceHandleMap']['get'](_0x47dff2);_0x1af5d1||(_0x1af5d1=_0x205802(_0x3d9cb8=>{const _0x1200cb=_0x4926;this[_0x1200cb(0x2df)](_0x47dff2,_0x3d9cb8);},_0x531cd2),this['_debounceHandleMap'][_0x16eb69(0x1a9)](_0x47dff2,_0x1af5d1)),_0x1af5d1(_0x53658f);}[_0x2e596f(0x1d1)](){const _0x23242e=_0x2e596f;let _0x970514=this[_0x23242e(0x2ba)],_0x20caaf=_0x4ce335=>{const _0x495c5e=_0x23242e;if(!_0x970514[_0x495c5e(0x1ee)](_0x4ce335)){let _0x5d354e=_0x205802((_0x168e5f,_0x38156e,_0x2a1ed2,_0x1b8f60)=>{const _0x1f7b52=_0x495c5e;var _0x10b943,_0x127e93;if(!_0x2a1ed2)return;(_0x10b943=_0x2a1ed2[_0x1f7b52(0x23c)])==null||_0x10b943['items'][_0x1f7b52(0x399)]((_0x3d4687,_0x3bf769)=>{const _0x50f5fd=_0x1f7b52;_0x3d4687['label']||=this[_0x50f5fd(0x3c5)]['t']('sheets-chart-ui.common.category')+'\x20'+(_0x3bf769+0x1);}),_0x2a1ed2[_0x1f7b52(0x315)]['forEach']((_0x3b066d,_0xcab78c)=>{const _0x44a6d9=_0x1f7b52;_0x3b066d[_0x44a6d9(0x340)]||=this[_0x44a6d9(0x3c5)]['t'](_0x44a6d9(0x27e))+'\x20'+(_0xcab78c+0x1);});let _0x300182=this['createRuntimeChartStyle'](_0x168e5f,_0x1b8f60),_0x251ef4=(_0x127e93=this[_0x1f7b52(0x1ce)]['getCurrentUnitOfType'](_0x3f0a52[_0x1f7b52(0x295)]))==null?void 0x0:_0x127e93['getActiveSheet']();(_0x251ef4==null?void 0x0:_0x251ef4[_0x1f7b52(0x181)]())===_0x38156e&&this[_0x1f7b52(0x1e3)](_0x168e5f['id'],_0x2a1ed2,_0x300182);},0x11);_0x970514[_0x495c5e(0x1a9)](_0x4ce335,_0x5d354e);}return _0x970514[_0x495c5e(0x3ae)](_0x4ce335);};this[_0x23242e(0x199)](this['_univerInstanceService'][_0x23242e(0x3ad)][_0x23242e(0x2e6)](_0x5df70e=>{const _0x13fb0b=_0x23242e;let _0x2128eb=this['_univerInstanceService'][_0x13fb0b(0x2dc)](_0x3f0a52['UNIVER_SHEET']);if(_0x5df70e&&_0x2128eb&&_0x2128eb[_0x13fb0b(0x214)]()===_0x5df70e){var _0x494cc2;let _0x4eea11=_0x2128eb[_0x13fb0b(0x2a2)]()[_0x13fb0b(0x181)]();this[_0x13fb0b(0x2d5)]&&(this[_0x13fb0b(0x2d5)]['unitId']!==_0x5df70e||this[_0x13fb0b(0x2d5)][_0x13fb0b(0x370)]!==_0x4eea11)&&this[_0x13fb0b(0x1d7)](this['_lastActiveSheet']['unitId'],this[_0x13fb0b(0x2d5)][_0x13fb0b(0x370)]),this[_0x13fb0b(0x2d5)]={'unitId':_0x5df70e,'subUnitId':_0x4eea11};let _0x44d600=this[_0x13fb0b(0x24b)][_0x13fb0b(0x2a6)](_0x5df70e,_0x4eea11);if(!((_0x494cc2=this['_renderManagerService'][_0x13fb0b(0x233)](_0x5df70e))!=null&&_0x494cc2[_0x13fb0b(0x3e5)](_0xe66fcb)[_0x13fb0b(0x35a)](_0x4eea11)))return;if(_0x44d600)for(let _0x6bd050 in _0x44d600){let {drawingId:_0x633c54}=_0x44d600[_0x6bd050],_0x18f838=this[_0x13fb0b(0x1da)][_0x13fb0b(0x304)](_0x633c54);_0x18f838&&_0x20caaf(_0x18f838['id'])(_0x18f838,_0x4eea11,_0x18f838[_0x13fb0b(0x29b)],this[_0x13fb0b(0x3c5)][_0x13fb0b(0x1b5)]());}}})),this[_0x23242e(0x199)](this[_0x23242e(0x17c)]['darkMode$']['subscribe'](()=>{const _0x181153=_0x23242e;var _0x5b4bd6;let _0x366d29=this['_univerInstanceService']['getCurrentUnitOfType'](_0x3f0a52['UNIVER_SHEET']);if(!_0x366d29)return;let _0x26dd65=_0x366d29[_0x181153(0x214)](),_0x4967f4=_0x366d29['getActiveSheet']()[_0x181153(0x181)](),_0x3b2c9a=this[_0x181153(0x24b)][_0x181153(0x2a6)](_0x26dd65,_0x4967f4);if((_0x5b4bd6=this[_0x181153(0x2a1)][_0x181153(0x233)](_0x26dd65))!=null&&_0x5b4bd6['with'](_0xe66fcb)['getSkeleton'](_0x4967f4)&&_0x3b2c9a)for(let _0x1b92e5 in _0x3b2c9a){let {drawingId:_0x30699c}=_0x3b2c9a[_0x1b92e5],_0x331715=this[_0x181153(0x1da)]['getChartModel'](_0x30699c);_0x331715&&_0x20caaf(_0x331715['id'])(_0x331715,_0x4967f4,_0x331715[_0x181153(0x29b)],this[_0x181153(0x3c5)][_0x181153(0x1b5)]());}})),this[_0x23242e(0x199)](this[_0x23242e(0x24b)][_0x23242e(0x2e5)][_0x23242e(0x2e6)](_0x30b0c6=>{const _0x137a4b=_0x23242e;_0x30b0c6[_0x137a4b(0x399)](_0x2ac0cd=>{const _0x3f9815=_0x137a4b;var _0x423909;let {drawingId:_0x29dec1,unitId:_0xe425e6,subUnitId:_0x117c27}=_0x2ac0cd,_0x51f629=this[_0x3f9815(0x2a1)][_0x3f9815(0x233)](_0xe425e6);if((_0x51f629==null?void 0x0:_0x51f629[_0x3f9815(0x34e)])!==_0x3f0a52['UNIVER_SHEET']||!_0x51f629[_0x3f9815(0x3e5)](_0xe66fcb)[_0x3f9815(0x35a)](_0x117c27))return;let {drawingType:_0x26212f}=this[_0x3f9815(0x24b)][_0x3f9815(0x39f)](_0x2ac0cd);if(_0x26212f!==_0x170c77[_0x3f9815(0x30b)])return;let _0x5d0016=this['_sheetCanvasFloatDomManagerService'][_0x3f9815(0x3a1)](_0x29dec1),_0x57b510=(_0x5d0016==null?void 0x0:_0x5d0016[_0x3f9815(0x2a3)])??_0x29dec1,_0x50ba40=_0x5d0016==null?void 0x0:_0x5d0016[_0x3f9815(0x232)],_0x254bef=(_0x423909=this[_0x3f9815(0x2a1)][_0x3f9815(0x233)](_0xe425e6))==null?void 0x0:_0x423909[_0x3f9815(0x268)];_0x50ba40&&this[_0x3f9815(0x199)](_0x50ba40==null?void 0x0:_0x50ba40[_0x3f9815(0x2c1)][_0x3f9815(0x1f8)](_0x9d2eff=>{const _0xc424f2=_0x3f9815;let {type:_0x24b12d,value:_0x4e853a}=_0x9d2eff;if(_0x2e173c['resize']===_0x24b12d||_0x2e173c[_0xc424f2(0x212)]===_0x24b12d){let {width:_0x5340e0,height:_0x5bb2f5}=_0x4e853a;this[_0xc424f2(0x20a)](_0x29dec1,{'width':_0x5340e0,'height':_0x5bb2f5},0x64);}})),_0x254bef&&this[_0x3f9815(0x199)](_0x254bef[_0x3f9815(0x2c1)]['subscribeEvent'](_0x3a4006=>{const _0x2c5ca1=_0x3f9815;var _0x590c7e;_0x3a4006[_0x2c5ca1(0x34e)]===_0x2e173c['scale']&&(_0x590c7e=document[_0x2c5ca1(0x28e)](_0x57b510))!=null&&_0x590c7e[_0x2c5ca1(0x400)](_0x2c5ca1(0x3ec))&&this[_0x2c5ca1(0x1e2)][_0x2c5ca1(0x332)](_0x29dec1);}));let _0x769da0=this[_0x3f9815(0x1da)][_0x3f9815(0x304)](_0x29dec1);_0x769da0&&this['disposeWithMe'](_0x10d7e5([_0x769da0[_0x3f9815(0x205)],_0x769da0[_0x3f9815(0x27b)],this[_0x3f9815(0x3c5)][_0x3f9815(0x343)]])[_0x3f9815(0x2e6)](([_0x5621d3,_0x5aef2e,_0x1f7923])=>{_0x20caaf(_0x769da0['id'])(_0x769da0,_0x117c27,_0x5621d3,_0x1f7923);}));});})),this['disposeWithMe'](_0x10d7e5([this['_drawingManagerService'][_0x23242e(0x1b3)]])[_0x23242e(0x2e6)](([_0x3a35e9])=>{const _0x43809e=_0x23242e;_0x3a35e9[_0x43809e(0x399)](_0x1172e0=>{const _0x483b26=_0x43809e;var _0x1ec6c5;let {drawingId:_0x1a4213}=_0x1172e0;((_0x1ec6c5=this[_0x483b26(0x1da)][_0x483b26(0x25a)])==null?void 0x0:_0x1ec6c5['id'])===_0x1a4213&&this[_0x483b26(0x1da)][_0x483b26(0x368)](null),this[_0x483b26(0x2ae)](_0x1a4213),this[_0x483b26(0x3cb)][_0x483b26(0x40a)](_0x1a4213),this[_0x483b26(0x1e2)][_0x483b26(0x20b)](_0x1a4213),this[_0x483b26(0x239)](_0x1a4213),this[_0x483b26(0x2d7)](_0x1a4213),this[_0x483b26(0x3b1)][_0x483b26(0x3d3)](_0x1a4213),this[_0x483b26(0x331)](_0x1a4213),this[_0x483b26(0x3e3)]['delete'](_0x1a4213),this[_0x483b26(0x2e7)][_0x483b26(0x40a)](_0x1a4213);});}));}[_0x2e596f(0x39c)](_0x58d4f1,_0x4a8702){const _0x27dc88=_0x2e596f;var _0x46fe78;_0x4a8702?this[_0x27dc88(0x2e7)][_0x27dc88(0x1a9)](_0x58d4f1,!0x0):this['_chartElementEditMode'][_0x27dc88(0x40a)](_0x58d4f1),(_0x46fe78=this[_0x27dc88(0x1c0)][_0x27dc88(0x3ae)](_0x58d4f1))==null||_0x46fe78['setElementEditMode'](_0x4a8702);}async[_0x2e596f(0x3bc)](_0x3fce96,_0x58fb7b){const _0x5ddecc=_0x2e596f;var _0x3b524c;let _0x60cf81=this[_0x5ddecc(0x3e3)][_0x5ddecc(0x3ae)](_0x3fce96),_0x220c63=(_0x3b524c=this['_sheetCanvasFloatDomManagerService'][_0x5ddecc(0x3a1)](_0x3fce96))==null?void 0x0:_0x3b524c[_0x5ddecc(0x232)];if(_0x60cf81&&_0x220c63)return(await this[_0x5ddecc(0x1a7)][_0x5ddecc(0x3bc)]({'chartId':_0x3fce96,'config':_0x60cf81[_0x5ddecc(0x29b)],'style':_0x60cf81['style'],'width':_0x220c63['width'],'height':_0x220c63[_0x5ddecc(0x391)]},_0x58fb7b))[_0x5ddecc(0x254)];if((_0x58fb7b==null?void 0x0:_0x58fb7b[_0x5ddecc(0x336)])===_0x4f5c1f['SVG'])return;let _0x49310b=this[_0x5ddecc(0x3ed)](_0x3fce96);return _0x49310b?_0x50cd98(_0x49310b):void 0x0;}['on'](_0x108333,_0x1a9382,_0x3b67a5){const _0x39bc05=_0x2e596f;let _0x1e18d9=this[_0x39bc05(0x3cb)]['get'](_0x108333);_0x1e18d9||(_0x1e18d9=new Map(),this[_0x39bc05(0x3cb)][_0x39bc05(0x1a9)](_0x108333,_0x1e18d9));let _0x269e4f=_0x1e18d9[_0x39bc05(0x3ae)](_0x1a9382);_0x269e4f||(_0x269e4f=new Set(),_0x1e18d9[_0x39bc05(0x1a9)](_0x1a9382,_0x269e4f)),_0x269e4f['add'](_0x3b67a5);let _0x17d2ce=this['_chartInstanceMap'][_0x39bc05(0x3ae)](_0x108333);return _0x17d2ce&&this['_bindChartEventHandler'](_0x108333,_0x17d2ce,_0x1a9382,_0x3b67a5),{'dispose':()=>{const _0x55bc63=_0x39bc05;var _0x3eb03f;(_0x3eb03f=this['_chartEventHandlers']['get'](_0x108333))==null||(_0x3eb03f=_0x3eb03f[_0x55bc63(0x3ae)](_0x1a9382))==null||_0x3eb03f[_0x55bc63(0x40a)](_0x3b67a5),this[_0x55bc63(0x187)](_0x108333,_0x1a9382,_0x3b67a5);}};}[_0x2e596f(0x3ed)](_0x544a6c){const _0x20e21b=_0x2e596f;let _0x19dccd=this['_univerInstanceService']['getCurrentUnitOfType'](_0x3f0a52['UNIVER_SHEET']),_0x3abe18=_0x19dccd==null?void 0x0:_0x19dccd[_0x20e21b(0x2a2)](),_0x3f10a6=_0x19dccd==null?void 0x0:_0x19dccd[_0x20e21b(0x214)](),_0x106aec=_0x3abe18==null?void 0x0:_0x3abe18[_0x20e21b(0x181)]();if(!(!_0x3f10a6||!_0x106aec))return this[_0x20e21b(0x3b1)][_0x20e21b(0x2ca)]({'unitId':_0x3f10a6,'subUnitId':_0x106aec,'chartId':_0x544a6c});}[_0x2e596f(0x2bd)](_0x234aab,_0x384742){const _0x5d8518=_0x2e596f;let _0xbb05e=this[_0x5d8518(0x3cb)]['get'](_0x234aab);_0xbb05e&&_0xbb05e[_0x5d8518(0x399)]((_0x4f59cf,_0x5898a8)=>{const _0x30d6bd=_0x5d8518;_0x4f59cf['forEach'](_0x5a322a=>this[_0x30d6bd(0x25b)](_0x234aab,_0x384742,_0x5898a8,_0x5a322a));});}[_0x2e596f(0x25b)](_0x2b0bd4,_0x4e6da0,_0x2ff6ee,_0x2fc6f7){const _0x304538=_0x2e596f;let _0x5cb503=this[_0x304538(0x1f9)][_0x304538(0x3ae)](_0x2b0bd4);_0x5cb503||(_0x5cb503=new Map(),this['_chartEventSubscriptions'][_0x304538(0x1a9)](_0x2b0bd4,_0x5cb503));let _0x2d8546=_0x5cb503['get'](_0x2ff6ee);_0x2d8546||(_0x2d8546=new Map(),_0x5cb503[_0x304538(0x1a9)](_0x2ff6ee,_0x2d8546)),!_0x2d8546[_0x304538(0x1ee)](_0x2fc6f7)&&_0x2d8546['set'](_0x2fc6f7,_0x4e6da0['on'](_0x2ff6ee,_0x2fc6f7));}['_disposeChartEventSubscription'](_0x463343,_0x12b23,_0x19be9d){const _0x10be78=_0x2e596f;var _0x2bc433,_0x1fe5c5;let _0x5288fd=(_0x2bc433=this[_0x10be78(0x1f9)][_0x10be78(0x3ae)](_0x463343))==null?void 0x0:_0x2bc433[_0x10be78(0x3ae)](_0x12b23);_0x5288fd==null||(_0x1fe5c5=_0x5288fd[_0x10be78(0x3ae)](_0x19be9d))==null||_0x1fe5c5[_0x10be78(0x19b)](),_0x5288fd==null||_0x5288fd[_0x10be78(0x40a)](_0x19be9d);}[_0x2e596f(0x2ae)](_0x413ec5){const _0x23b68d=_0x2e596f;let _0x3cc24a=this[_0x23b68d(0x1f9)][_0x23b68d(0x3ae)](_0x413ec5);_0x3cc24a==null||_0x3cc24a[_0x23b68d(0x399)](_0xb3a64c=>{const _0x2d89bf=_0x23b68d;_0xb3a64c[_0x2d89bf(0x399)](_0x59890e=>_0x59890e[_0x2d89bf(0x19b)]()),_0xb3a64c[_0x2d89bf(0x316)]();}),this[_0x23b68d(0x1f9)][_0x23b68d(0x40a)](_0x413ec5);}['createRuntimeChartStyle'](_0x16958f,_0x48b8e3){const _0x3e49a3=_0x2e596f;return oi(_0x16958f,_0x48b8e3,this[_0x3e49a3(0x334)]);}['checkChartCanRender'](_0x32eb3b){return this['_getChartRenderSkipReason'](_0x32eb3b)==null;}[_0x2e596f(0x1bc)](_0x28a87c){const _0x33609d=_0x2e596f;var _0x42bb89;let _0x358a90=this[_0x33609d(0x2b7)]['getFloatDomInfo'](_0x28a87c);if(!_0x358a90)return _0x33609d(0x395);let {subUnitId:_0x9ab359}=_0x358a90,_0x44dfad=(_0x42bb89=this[_0x33609d(0x1ce)]['getCurrentUnitOfType'](_0x3f0a52[_0x33609d(0x295)]))==null?void 0x0:_0x42bb89[_0x33609d(0x2a2)]();if(!_0x44dfad)return'missing-active-sheet';if(_0x44dfad[_0x33609d(0x181)]()!==_0x9ab359)return'inactive-sheet';}async['render'](_0x4c7cf5,_0x4d5932,_0x4a686b){const _0x411e1e=_0x2e596f;let _0x3f962c=this[_0x411e1e(0x1a7)]['getRenderModel'](_0x413b24);if(!_0x3f962c||(this[_0x411e1e(0x3e3)][_0x411e1e(0x1a9)](_0x4c7cf5,{'config':_0x4d5932,'style':_0x4a686b}),this[_0x411e1e(0x1bc)](_0x4c7cf5)))return;let _0x58eadc=this['_resolveChartRenderMode'](_0x4c7cf5);if(_0x58eadc===_0x3330c2[_0x411e1e(0x2b8)])this[_0x411e1e(0x36c)](_0x4c7cf5);else{var _0x38e638;this['_chartHostProvider'][_0x411e1e(0x236)](_0x4c7cf5),((_0x38e638=this[_0x411e1e(0x1da)][_0x411e1e(0x25a)])==null?void 0x0:_0x38e638['id'])===_0x4c7cf5&&this[_0x411e1e(0x22e)](_0x4c7cf5);}let _0x372de5=_0x58eadc===_0x3330c2[_0x411e1e(0x2b8)]?_0x285902[_0x411e1e(0x2b8)]:_0x285902[_0x411e1e(0x3f0)],_0x2a86ca=await this[_0x411e1e(0x1e2)][_0x411e1e(0x20d)](_0x4c7cf5,_0x372de5);if(!_0x2a86ca)return;let _0x1dd23a=this[_0x411e1e(0x307)](_0x4c7cf5,_0x372de5,_0x3f962c);_0x1dd23a[_0x411e1e(0x25e)](_0x2a86ca);try{await _0x1dd23a[_0x411e1e(0x1e3)]({'chartId':_0x4c7cf5,'config':_0x4d5932,'style':_0x4a686b});}catch(_0x2e43ee){if(_0x58eadc!==_0x3330c2[_0x411e1e(0x2b8)])throw _0x2e43ee;}}async[_0x2e596f(0x206)](_0x194045,_0x5cb937,_0x389d84){const _0x3479f7=_0x2e596f;let _0xc85bbe=this[_0x3479f7(0x24b)][_0x3479f7(0x2a6)](_0x194045,_0x5cb937),_0x1ccd54=this[_0x3479f7(0x24b)][_0x3479f7(0x291)](_0x194045,_0x5cb937),_0x34081e=Object[_0x3479f7(0x2b2)](_0xc85bbe??{})['filter'](_0x4b4493=>_0x4b4493[_0x3479f7(0x2ef)]===_0x170c77['DRAWING_CHART']&&_0x4b4493[_0x3479f7(0x37a)]!==!0x0);await Promise[_0x3479f7(0x220)](_0x34081e[_0x3479f7(0x26c)](async _0x47960e=>{const _0x322b8f=_0x3479f7;let _0x54ab03=await this[_0x322b8f(0x3c4)](_0x47960e,_0x1ccd54);_0x54ab03&&(_0x389d84[_0x322b8f(0x267)](_0x54ab03,_0x4acfab),_0x47960e['groupId']&&_0x1eac21({'drawingId':_0x47960e['groupId'],'unitId':_0x194045,'subUnitId':_0x5cb937},_0x54ab03,_0x389d84,this[_0x322b8f(0x24b)]));}));}async[_0x2e596f(0x3c4)](_0x50021c,_0x46b816){const _0x2f4ff0=_0x2e596f;let _0x230b1f=this[_0x2f4ff0(0x1da)][_0x2f4ff0(0x304)](_0x50021c[_0x2f4ff0(0x2ed)]),_0x3ac083=this['_renderModelManager'][_0x2f4ff0(0x266)](_0x413b24),_0x2496cd=_0x50021c['transform'],_0x261daf=_0x230b1f==null?void 0x0:_0x230b1f[_0x2f4ff0(0x29b)];if(!_0x230b1f||!_0x3ac083||!_0x2496cd||!_0x261daf||_0x2496cd['width']==null||_0x2496cd['height']==null)return null;let _0x225179=new ai(_0x50021c[_0x2f4ff0(0x2ed)],{'width':_0x2496cd[_0x2f4ff0(0x363)],'height':_0x2496cd['height']}),_0x18bf49=_0x3ac083[_0x2f4ff0(0x32a)](_0x285902[_0x2f4ff0(0x2b8)],this[_0x2f4ff0(0x272)]());_0x18bf49['bind'](_0x225179);let _0x474100;try{await _0x18bf49[_0x2f4ff0(0x1e3)]({'chartId':_0x50021c[_0x2f4ff0(0x2ed)],'config':_0x261daf,'style':this[_0x2f4ff0(0x1e9)](_0x230b1f,this[_0x2f4ff0(0x3c5)][_0x2f4ff0(0x1b5)]())});}catch(_0x38a703){console['error'](_0x2f4ff0(0x19c),_0x38a703);}finally{_0x474100=_0x225179[_0x2f4ff0(0x29e)](),_0x18bf49[_0x2f4ff0(0x19b)](),_0x225179[_0x2f4ff0(0x19b)]();}let _0xdc5aa7=this[_0x2f4ff0(0x3b1)][_0x2f4ff0(0x2ca)]({'unitId':_0x50021c['unitId'],'subUnitId':_0x50021c[_0x2f4ff0(0x370)],'chartId':_0x50021c[_0x2f4ff0(0x2ed)]}),_0x3a0155=_0x474100??_0xdc5aa7;if(!_0x3a0155)return null;let _0x219204=_0x46b816[_0x2f4ff0(0x283)](_0x50021c['drawingId']);return new Gr(_0x150543(_0x50021c),{..._0x2496cd,..._0x3d5658,...ei(_0x225179[_0x2f4ff0(0x2c0)]),'visible':!0x0,'zIndex':_0x219204===-0x1?Math[_0x2f4ff0(0x1ef)](_0x46b816[_0x2f4ff0(0x211)]-0x1,0x0):_0x219204},()=>_0x3a0155,void 0x0,_0x474100?()=>G(_0x474100):void 0x0);}[_0x2e596f(0x307)](_0x112e11,_0x409526,_0x322e16){const _0x24691a=_0x2e596f;let _0x3d0efa=this[_0x24691a(0x1c0)][_0x24691a(0x3ae)](_0x112e11);if((_0x3d0efa==null?void 0x0:_0x3d0efa[_0x24691a(0x2fc)])===_0x409526)return _0x3d0efa;_0x3d0efa&&(this[_0x24691a(0x2ae)](_0x112e11),_0x3d0efa[_0x24691a(0x19b)](),this[_0x24691a(0x1c0)][_0x24691a(0x40a)](_0x112e11));let _0x2ad171=_0x322e16[_0x24691a(0x32a)](_0x409526,this['_createChartRenderInstanceContext']());return this[_0x24691a(0x1c0)][_0x24691a(0x1a9)](_0x112e11,_0x2ad171),_0x2ad171[_0x24691a(0x39c)](this[_0x24691a(0x2e7)][_0x24691a(0x3ae)](_0x112e11)===!0x0),this[_0x24691a(0x2bd)](_0x112e11,_0x2ad171),_0x2ad171;}[_0x2e596f(0x272)](){const _0x5e8261=_0x2e596f;return{'resolveHostStyle':({style:_0x29cd4c})=>_0x294d70({'style':_0x29cd4c,'getRenderColor':_0x3d2afa=>this['_chartThemeService'][_0x5e8261(0x229)](_0x3d2afa)}),'resolveRenderBackgroundColor':({style:_0x2541d7})=>this[_0x5e8261(0x3d6)][_0x5e8261(0x229)](_0x30a932(_0x2541d7))};}[_0x2e596f(0x320)](){const _0x56a759=_0x2e596f;this[_0x56a759(0x2ba)][_0x56a759(0x399)](_0x16cb82=>_0x16cb82[_0x56a759(0x2f7)]()),this[_0x56a759(0x2ba)]['clear'](),this[_0x56a759(0x3c6)]['forEach'](_0x760cd9=>_0x760cd9[_0x56a759(0x2f7)]()),this[_0x56a759(0x3c6)]['clear']();}[_0x2e596f(0x19b)](){const _0x1c9b70=_0x2e596f;Array[_0x1c9b70(0x3ba)](this['_chartInstanceMap']['keys']())[_0x1c9b70(0x399)](_0x164ec4=>this['_disposeChartRenderInstance'](_0x164ec4)),this['_chartElementEditMode'][_0x1c9b70(0x316)](),this[_0x1c9b70(0x320)](),this['_lastRenderInputMap'][_0x1c9b70(0x316)](),this[_0x1c9b70(0x380)]=null,this[_0x1c9b70(0x2d5)]=null,super[_0x1c9b70(0x19b)]();}};X=J([q(0x0,ni),q(0x1,_0x12d10b(_0x1c815e)),q(0x2,_0x12d10b(_0x507ffa)),q(0x3,_0x2a5fe1),q(0x4,_0x24beef),q(0x5,_0x12d10b(_0x570cdb)),q(0x6,_0x12d10b(_0x1c8aa5)),q(0x7,Y),q(0x8,_0x12d10b(_0x4b0ab7)),q(0x9,_0x12d10b(_0x39abcc)),q(0xa,_0x12d10b(_0x20968c)),q(0xb,_0x4fe135),q(0xc,_0x12d10b(Jr)),q(0xd,_0x5967a8)],X);var si;const ci={'axis':{..._0x42d872,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x5dd7e0,'heatmap':_0x4619ed,'indicatorLine':_0x3e1518,'legend':_0x3b2ff6,'lineAndArea':_0x49fb68,'pareto':_0xe329af,'pie':_0x54a77c,'relation':{..._0x1b7334,'useValueAsSymbolSize':!0x0},'radar':_0x40d58b,'series':{..._0x54184b,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((si=_0x586cc2[_0x2e596f(0x1b8)])==null?void 0x0:si[_0x2e596f(0x3cf)])??!0x1}},'style':_0x32b076,'titles':_0xcfc0d5,'trendline':_0x59022d,'waterfall':{..._0x5a1c4f,'useSubtotal':!0x0},'waterfallStyle':_0x25f19d,'wordCloud':_0x3441af},li=_0x1530dc=>_0x1530dc[_0x2e596f(0x2dc)](_0x3f0a52[_0x2e596f(0x295)])[_0x2e596f(0x214)](),ui=_0x327d1e=>{const _0x884f1b=_0x2e596f;var _0x40e889;return(_0x40e889=_0x327d1e[_0x884f1b(0x2dc)](_0x3f0a52['UNIVER_SHEET'])[_0x884f1b(0x2a2)]())==null?void 0x0:_0x40e889['getSheetId']();},di=[_0xde80c8[_0x2e596f(0x201)],_0xde80c8[_0x2e596f(0x40e)],_0xde80c8[_0x2e596f(0x1ab)],_0xde80c8[_0x2e596f(0x36d)],_0xde80c8[_0x2e596f(0x33c)],_0xde80c8['Relation'],_0xde80c8[_0x2e596f(0x18a)],_0xde80c8[_0x2e596f(0x278)],_0xde80c8[_0x2e596f(0x357)],_0xde80c8[_0x2e596f(0x1d2)],_0xde80c8[_0x2e596f(0x32d)],_0xde80c8[_0x2e596f(0x2d9)],_0xde80c8[_0x2e596f(0x38d)],_0xde80c8[_0x2e596f(0x381)],_0xde80c8['Chord']];function fi(){const _0x2c0c76=_0x2e596f;let _0x4047c6=_0x353c59();return _0x133ca3(_0xe42b82,{'visible':di[_0x2c0c76(0x1a6)](_0x208744=>!_0xf61598[_0x2c0c76(0x3d2)](_0x4047c6,_0x208744))});}const pi=_0x3749bc=>{const _0x3989b5=_0x2e596f;let _0x3e629b=_0x269cb5(Y),_0x5f0cbe=_0x269cb5(_0x507ffa),_0x41581a=_0x269cb5(_0x1c8aa5),_0x2724c9=_0x1491d5(_0x269cb5(_0x4b0ab7)),_0x1da693=_0x1feebc(()=>_0x739a83(kr(Dr['concat'](),_0x2724c9)[_0x3989b5(0x26c)](_0x3f126b=>({'id':_0x3f126b['id'],'label':_0x41581a['t']('sheets-chart-ui.chartTypes.'+_0x3f126b['labelId']),'pieSecondaryPlotType':_0x3f126b[_0x3989b5(0x406)],'value':_0x3f126b[_0x3989b5(0x3dd)]}))),[_0x2724c9,_0x41581a]),_0x6bf2ac=_0x4de0(_0x5f0cbe[_0x3989b5(0x1a8)],_0x5f0cbe[_0x3989b5(0x25a)]),_0x1dc5cf=_0x4de0(_0x6bf2ac==null?void 0x0:_0x6bf2ac['dataSource'][_0x3989b5(0x293)],_0x6bf2ac==null?void 0x0:_0x6bf2ac[_0x3989b5(0x393)][_0x3989b5(0x314)]()),_0xee6d7a=_0x1dc5cf&&!Array['isArray'](_0x1dc5cf)&&_0x1dc5cf['isRowDirection']?_0x525dbd[_0x3989b5(0x20c)]:_0x525dbd['Column'];return _0x487b78(_0x3989b5(0x1d0),{'className':_0x3989b5(0x274),'children':[_0x133ca3(_0x3113bb,{'options':_0x1da693}),_0x133ca3(_0x543930,{}),_0x133ca3(_0x2102d7,{}),_0x133ca3(fi,{}),_0x133ca3(_0x8d351a,{}),_0x133ca3(mi,{'dataRange':_0x1dc5cf}),_0x133ca3(_0xf27855,{'categoryToggleLabel':_0x41581a['t'](_0x3989b5(0x350),_0xee6d7a===_0x525dbd[_0x3989b5(0x20c)]?_0xee6d7a+'\x20'+(((_0x1dc5cf==null?void 0x0:_0x1dc5cf['rangeInfo']['range'][_0x3989b5(0x3fe)])??0x0)+0x1):_0xee6d7a+'\x20'+_0xf06431((_0x1dc5cf==null?void 0x0:_0x1dc5cf[_0x3989b5(0x286)][_0x3989b5(0x3da)][_0x3989b5(0x24f)])??0x0)),'orientationControl':_0x133ca3(_0x248e71,{'size':'small','onClick':()=>_0x3e629b[_0x3989b5(0x348)](_0xee6d7a===_0x525dbd[_0x3989b5(0x20c)]?_0x525dbd[_0x3989b5(0x3ab)]:_0x525dbd['Row']),'children':_0x41581a['t'](_0x3989b5(0x1bb))})}),_0x133ca3(_0x4201bf,{}),_0x133ca3(_0x2000df,{'defaultValues':_0x3749bc[_0x3989b5(0x3fc)]['waterfall']})]});};function mi(_0x334b21){const _0xf54de8=_0x2e596f;let {dataRange:_0x27aa0a}=_0x334b21,_0x46d3be=_0x269cb5(Y),_0x4ec805=_0x269cb5(_0x1c8aa5),_0x44f81a=_0x269cb5(_0x24beef),[_0x123dfb,_0x348c57]=_0x4f4a37(!0x1),[_0x42ea2c,_0x6ffc69]=_0x4f4a37(!0x1),_0x27be48=li(_0x44f81a),_0x2c1724=ui(_0x44f81a);_0x30cd0a(()=>{const _0x3ac2cb=_0x4926;_0x46d3be[_0x3ac2cb(0x2d8)](_0x123dfb);},[_0x123dfb,_0x46d3be]);let _0x4eb523=_0x1feebc(()=>_0x205802(async _0x4f7877=>{const _0x385ead=_0x4926;var _0x423f89;if(wr(_0x27aa0a,_0x44f81a)===_0x4f7877)return;let _0x2dde80=_0x4f7877['split'](',')[_0x385ead(0x3fa)](Boolean)[_0x385ead(0x26c)](_0x16dd67)[0x0];if(!_0x2dde80)return;let {unitId:_0x2e78a8,sheetName:_0x447f9d,range:_0x158cf1}=_0x2dde80,_0x252937=_0x2e78a8||_0x27be48,_0x4c10cb=((_0x423f89=_0x44f81a['getUnit'](_0x252937)[_0x385ead(0x261)](_0x447f9d))==null?void 0x0:_0x423f89[_0x385ead(0x181)]())||(_0x27aa0a==null?void 0x0:_0x27aa0a[_0x385ead(0x286)][_0x385ead(0x370)]);_0x46d3be[_0x385ead(0x359)]({'rangeInfo':{'range':_0x158cf1,'unitId':_0x252937,'subUnitId':_0x4c10cb}});},0x12c,{'leading':!0x1,'maxWait':0x3e8,'trailing':!0x0}),[_0x27aa0a,_0x46d3be,_0x27be48,_0x44f81a]);return _0x30cd0a(()=>()=>_0x4eb523['cancel'](),[_0x4eb523]),_0x133ca3(_0xf54de8(0x1d0),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':_0x487b78(_0xf54de8(0x1d0),{'children':[_0x133ca3(_0x360880,{'title':_0x4ec805['t'](_0xf54de8(0x1e0))}),_0x133ca3(_0x38c69b,{'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'maxRangeCount':0x1,'unitId':_0x27be48,'subUnitId':_0x2c1724,'initialValue':_0x27aa0a?wr(_0x27aa0a,_0x44f81a):'','onChange':(_0x92c2ce,_0x59d442)=>_0x4eb523(_0x59d442),'onFocusChange':_0x222b31=>{_0x42ea2c||_0x348c57(_0x222b31);},'onRangeSelectorDialogVisibleChange':_0x241026=>{_0x6ffc69(_0x241026),_0x348c57(_0x241026);}})]})});}function Z(_0x1d76ef){const _0x4c44e3=_0x2e596f;return _0x487b78(_0x44dc78,{'id':_0x1d76ef['id'],'children':[_0x133ca3(_0x755ed7,{'children':_0x1d76ef[_0x4c44e3(0x265)]}),_0x133ca3(_0x2a06fc,{'children':_0x1d76ef[_0x4c44e3(0x1f7)]})]});}const hi=_0xdd9bfe=>{const _0x459dd2=_0x2e596f;let _0x4be05f=_0x269cb5(_0x1c8aa5),_0x4d9ae8=_0x269cb5(Y),_0x35582f=_0x269cb5(_0x507ffa),_0x21560e=_0x4de0(_0x35582f['activeChartModel$'],_0x35582f['activeChartModel']),_0x3ead0f=_0x4de0(_0x4d9ae8[_0x459dd2(0x2be)],null),_0xc01043=_0x3ead0f&&_0x3ead0f[_0x459dd2(0x1e1)]===(_0x21560e==null?void 0x0:_0x21560e['id'])?_0x3ead0f[_0x459dd2(0x356)]:null,_0x176769=_0x353c59(),_0x22d5dc=_0xe34ffc(),[_0xa5ba50,_0x22a7b1]=_0x4f4a37(null);_0x30cd0a(()=>{const _0x1cc28f=_0x459dd2;_0xc01043!=null&&_0xc01043[_0x1cc28f(0x2b9)]&&_0x22a7b1(_0xc01043[_0x1cc28f(0x2b9)]);},[_0xc01043]);let _0xb8717f=_0xf61598[_0x459dd2(0x3d2)](_0x176769,_0xde80c8[_0x459dd2(0x3b4)]),_0x376b4e=_0x176769===_0xde80c8['Radar'],_0x43eee1=_0x176769===_0xde80c8[_0x459dd2(0x1ab)],_0x1bf17d=_0x176769===_0xde80c8[_0x459dd2(0x33c)],_0x8e830a=_0xf61598['baseOn'](_0x176769,_0xde80c8['Bubble']),_0x32595b=_0x176769===_0xde80c8[_0x459dd2(0x21f)],_0x2f1c17=_0x176769===_0xde80c8['Waterfall'],_0x10e824=_0x176769===_0xde80c8[_0x459dd2(0x19e)],_0x2e58a4=_0x176769===_0xde80c8[_0x459dd2(0x278)],_0x198778,_0x9679d;switch(_0x176769){case _0xde80c8[_0x459dd2(0x1d2)]:_0x198778=_0x2528ea[_0x459dd2(0x1d2)],_0x9679d=_0x4be05f['t']('sheets-chart-ui.section.candlestick');break;case _0xde80c8[_0x459dd2(0x32d)]:_0x198778=_0x2528ea[_0x459dd2(0x32d)],_0x9679d=_0x4be05f['t'](_0x459dd2(0x32e));break;case _0xde80c8[_0x459dd2(0x2d9)]:_0x198778=_0x2528ea[_0x459dd2(0x2d9)],_0x9679d=_0x4be05f['t'](_0x459dd2(0x198));break;case _0xde80c8[_0x459dd2(0x38d)]:_0x198778=_0x2528ea['Sunburst'],_0x9679d=_0x4be05f['t'](_0x459dd2(0x256));break;case _0xde80c8['Gauge']:_0x198778=_0x2528ea[_0x459dd2(0x381)],_0x9679d=_0x4be05f['t'](_0x459dd2(0x3eb));break;case _0xde80c8['Chord']:_0x198778=_0x2528ea[_0x459dd2(0x365)],_0x9679d=_0x4be05f['t'](_0x459dd2(0x384));break;}let _0xe34342=_0x1ed116(_0x176769,_0x11951b['GeneralSeries'])&&!_0x8e830a&&!_0x10e824;return _0x487b78(_0x1c9092,{'value':_0xa5ba50,'onChange':_0x22a7b1,'children':[_0x133ca3(Z,{'id':_0x2528ea[_0x459dd2(0x2fa)],'label':_0x4be05f['t'](_0x459dd2(0x3cd)),'children':_0x133ca3(_0x1bb3ef,{'defaultValues':_0xdd9bfe[_0x459dd2(0x3fc)][_0x459dd2(0x2c0)],'showBodyFont':!0x0})}),_0x133ca3(Z,{'id':_0x2528ea[_0x459dd2(0x218)],'label':_0x4be05f['t'](_0x459dd2(0x371)),'children':_0x133ca3(_0xd66997,{'commitMode':_0x459dd2(0x186),'defaultValues':_0xdd9bfe[_0x459dd2(0x3fc)][_0x459dd2(0x1c6)],'selectedTitleKey':_0xc01043==null?void 0x0:_0xc01043[_0x459dd2(0x2a7)]})}),_0xe34342&&_0x133ca3(Z,{'id':_0x2528ea['Series'],'label':_0x4be05f['t'](_0x459dd2(0x1fc)),'children':_0x133ca3(_0x4d341e,{'defaultValues':_0xdd9bfe[_0x459dd2(0x3fc)]['series'],'NumberFormatField':_0x24ad5e,'selectedSeriesId':_0xc01043==null?void 0x0:_0xc01043[_0x459dd2(0x2b5)]})}),_0x2f1c17&&_0x133ca3(Z,{'id':_0x2528ea[_0x459dd2(0x3f2)],'label':_0x4be05f['t']('sheets-chart-ui.section.waterfall'),'children':_0x133ca3(_0x39e65f,{'defaultValues':_0xdd9bfe[_0x459dd2(0x3fc)]['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x8e1438,target:_0x4d36c6})=>_0x4d36c6===_0x47184e['Subtotal']?_0x4be05f['t'](_0x459dd2(0x1a2)):_0x8e1438?_0x8e1438+'-('+_0x4be05f['t'](_0x4d36c6===_0x47184e[_0x459dd2(0x3a5)]?_0x459dd2(0x21b):_0x459dd2(0x1cc))+')':'','NumberFormatField':_0x24ad5e,'selectedSeriesId':_0xc01043==null?void 0x0:_0xc01043['seriesId']})}),_0x10e824&&_0x487b78(_0x5783c9,{'children':[_0x133ca3(Z,{'id':_0x2528ea['ParetoBarSeries'],'label':_0x4be05f['t'](_0x459dd2(0x192)),'children':_0x133ca3(_0x2969b2,{'defaultValues':_0xdd9bfe[_0x459dd2(0x3fc)][_0x459dd2(0x3bd)],'NumberFormatField':_0x24ad5e,'showDataPointEditor':!0x0,'target':'barStyle'})}),_0x133ca3(Z,{'id':_0x2528ea[_0x459dd2(0x35e)],'label':_0x4be05f['t']('sheets-chart-ui.section.paretoLine'),'children':_0x133ca3(_0x2969b2,{'defaultValues':_0xdd9bfe['defaultValues'][_0x459dd2(0x3bd)],'NumberFormatField':_0x24ad5e,'showDataPointEditor':!0x1,'target':_0x459dd2(0x3f4)})})]}),_0xb8717f&&_0x133ca3(Z,{'id':_0x2528ea[_0x459dd2(0x3a0)],'label':_0x4be05f['t']('sheets-chart-ui.section.pie'),'children':_0x133ca3(_0x2b8fe5,{'defaultValues':_0xdd9bfe['defaultValues'][_0x459dd2(0x3b5)],'NumberFormatField':_0x24ad5e})}),_0x43eee1&&_0x133ca3(Z,{'id':_0x2528ea[_0x459dd2(0x1ab)],'label':_0x4be05f['t'](_0x459dd2(0x308)),'children':_0x133ca3(_0x5b42de,{'defaultValues':_0xdd9bfe[_0x459dd2(0x3fc)][_0x459dd2(0x262)]})}),_0x376b4e&&_0x133ca3(Z,{'id':_0x2528ea['Radar'],'label':_0x4be05f['t'](_0x459dd2(0x28d)),'children':_0x133ca3(_0x3d02f5,{'defaultValues':_0xdd9bfe[_0x459dd2(0x3fc)][_0x459dd2(0x2d2)]})}),_0x1bf17d&&_0x133ca3(Z,{'id':_0x2528ea['Funnel'],'label':_0x4be05f['t'](_0x459dd2(0x3e8)),'children':_0x133ca3(_0x5209d4,{'defaultValues':_0xdd9bfe['defaultValues'][_0x459dd2(0x32c)],'gapControl':_0x459dd2(0x2dd)})}),_0x2e58a4&&_0x133ca3(Z,{'id':_0x2528ea['Heatmap'],'label':_0x4be05f['t']('sheets-chart-ui.common.heatmap'),'children':_0x133ca3(_0x4bb14b,{'defaultValues':_0xdd9bfe[_0x459dd2(0x3fc)][_0x459dd2(0x190)]})}),_0x32595b&&_0x133ca3(Z,{'id':_0x2528ea[_0x459dd2(0x21f)],'label':_0x4be05f['t'](_0x459dd2(0x3fb)),'children':_0x133ca3(_0x358627,{'defaultValues':_0xdd9bfe[_0x459dd2(0x3fc)][_0x459dd2(0x36e)]})}),_0xb74abc(_0x176769)&&_0x133ca3(Z,{'id':_0x2528ea[_0x459dd2(0x36b)],'label':_0x4be05f['t']('sheets-chart-ui.section.lineAndArea'),'children':_0x133ca3(_0x2fbe17,{'defaultValues':_0xdd9bfe[_0x459dd2(0x3fc)][_0x459dd2(0x40d)],'lineStyleControl':_0x459dd2(0x1fd)})}),_0x1ed116(_0x176769,_0x11951b['Legend'])&&_0x133ca3(Z,{'id':_0x2528ea['Legend'],'label':_0x4be05f['t'](_0x459dd2(0x1be)),'children':_0x133ca3(_0x3078a8,{'defaultValues':_0xdd9bfe[_0x459dd2(0x3fc)]['legend']})}),_0x1ed116(_0x176769,_0x11951b['Axes'])&&_0x487b78(_0x5783c9,{'children':[_0x133ca3(Z,{'id':_0x2528ea[_0x459dd2(0x1e4)],'label':_0x4be05f['t']('sheets-chart-ui.common.horizontalAxis'),'children':_0x133ca3(_0x5e2811,{'axis':'x','defaultValues':_0xdd9bfe[_0x459dd2(0x3fc)][_0x459dd2(0x323)],'NumberFormatField':_0x24ad5e})}),_0x133ca3(Z,{'id':_0x2528ea[_0x459dd2(0x1c4)],'label':_0x4be05f['t'](_0x459dd2(0x20f)),'children':_0x133ca3(_0x5e2811,{'axis':'y','defaultValues':_0xdd9bfe[_0x459dd2(0x3fc)][_0x459dd2(0x323)],'NumberFormatField':_0x24ad5e})}),_0x22d5dc&&_0x133ca3(Z,{'id':_0x2528ea[_0x459dd2(0x189)],'label':_0x4be05f['t'](_0x459dd2(0x29c)),'children':_0x133ca3(_0x5e2811,{'axis':_0x459dd2(0x277),'defaultValues':_0xdd9bfe[_0x459dd2(0x3fc)][_0x459dd2(0x323)],'NumberFormatField':_0x24ad5e})}),_0x133ca3(Z,{'id':_0x2528ea[_0x459dd2(0x1b2)],'label':_0x4be05f['t'](_0x459dd2(0x318)),'children':_0x133ca3(_0x4e9346,{'defaultValues':_0xdd9bfe[_0x459dd2(0x3fc)][_0x459dd2(0x323)]})})]}),_0x1ed116(_0x176769,_0x11951b[_0x459dd2(0x31e)])&&_0x133ca3(Z,{'id':_0x2528ea['IndicatorLine'],'label':_0x4be05f['t'](_0x459dd2(0x1bf)),'children':_0x133ca3(_0xc7b730,{'defaultValues':_0xdd9bfe[_0x459dd2(0x3fc)]['indicatorLine']})}),_0x507a6f(_0x176769)&&_0x133ca3(Z,{'id':_0x2528ea[_0x459dd2(0x3d7)],'label':_0x4be05f['t'](_0x459dd2(0x27f)),'children':_0x133ca3(_0x3f73a8,{'defaultValues':_0xdd9bfe['defaultValues'][_0x459dd2(0x3e9)]})}),_0x198778&&_0x9679d&&_0x133ca3(Z,{'id':_0x198778,'label':_0x9679d,'children':_0x133ca3(_0x1bd224,{})})]});};function gi(_0x23d5be){const _0x36395e=_0x2e596f;let {className:_0x1cfb09}=_0x23d5be,[_0x16daa0,_0x5110fe]=_0x4f4a37(_0x43bb40['Data']),_0x15a157=_0x269cb5(_0x4b0ab7),_0xc0b4f3=_0x269cb5(_0x1c8aa5),_0x5d41f4=_0x269cb5(Y),_0x141b25=_0x269cb5(_0x507ffa),_0xf04f52=_0x4de0(_0x141b25['activeChartModel$'],_0x141b25['activeChartModel']),_0x34f4d1=_0x4de0(_0x5d41f4[_0x36395e(0x2be)],null),_0x5e8d75=_0x1feebc(()=>{const _0x3a66b4=_0x36395e;var _0x18c7b2;if(!_0xf04f52)return null;let _0x447d34=_0xf04f52[_0x3a66b4(0x393)][_0x3a66b4(0x314)](),_0x2ecaa3=Array[_0x3a66b4(0x37e)](_0x447d34)?(_0x18c7b2=_0x447d34[0x0])==null?void 0x0:_0x18c7b2[_0x3a66b4(0x3da)]:_0x447d34['rangeInfo'];return _0x2ecaa3?new _0x54094c(_0xf04f52,new _0x57abae({'unitId':_0x2ecaa3[_0x3a66b4(0x226)],'subUnitId':_0x2ecaa3[_0x3a66b4(0x370)],'chartId':_0xf04f52['id'],'injector':_0x15a157})):null;},[_0xf04f52,_0x15a157]);return _0x30cd0a(()=>{const _0x4bf2e6=_0x36395e;var _0x57ff59,_0x4faf80;!_0xf04f52||(_0x34f4d1==null?void 0x0:_0x34f4d1[_0x4bf2e6(0x1e1)])!==_0xf04f52['id']||(((_0x57ff59=_0x34f4d1[_0x4bf2e6(0x356)])==null?void 0x0:_0x57ff59[_0x4bf2e6(0x3d4)])===_0x43bb40[_0x4bf2e6(0x235)]&&_0x5110fe(_0x43bb40[_0x4bf2e6(0x235)]),((_0x4faf80=_0x34f4d1[_0x4bf2e6(0x356)])==null?void 0x0:_0x4faf80[_0x4bf2e6(0x3d4)])===_0x43bb40[_0x4bf2e6(0x337)]&&_0x5110fe(_0x43bb40[_0x4bf2e6(0x337)]));},[_0xf04f52,_0x34f4d1]),_0x5e8d75?_0x133ca3(_0x2ccb5f,{'chartUIService':_0x5d41f4,'hostAdapter':_0x5e8d75,'children':_0x487b78(_0x36395e(0x1d0),{'className':_0x36395e(0x3a9)+(_0x16daa0===_0x43bb40[_0x36395e(0x235)]?_0x36395e(0x3d9):_0x36395e(0x378))+_0x36395e(0x1dc)+(_0x1cfb09??'')+_0x36395e(0x38f),'children':[_0x133ca3(_0x315d66,{'ariaLabel':_0xc0b4f3['t']('sheets-chart-ui.common.editChart'),'className':_0x36395e(0x37c),'items':[{'label':_0xc0b4f3['t'](_0x36395e(0x1c5)),'panelId':vi,'value':_0x43bb40[_0x36395e(0x337)]},{'label':_0xc0b4f3['t'](_0x36395e(0x38e)),'panelId':yi,'value':_0x43bb40['Style']}],'value':_0x16daa0,'onChange':_0x5110fe}),_0x16daa0===_0x43bb40[_0x36395e(0x337)]?_0x133ca3(_0x52f866,{'id':vi,'label':_0xc0b4f3['t']('sheets-chart-ui.common.setup'),'children':_0x133ca3(pi,{'defaultValues':ci})}):_0x133ca3(_0x52f866,{'id':yi,'className':_0x36395e(0x346),'label':_0xc0b4f3['t'](_0x36395e(0x38e)),'children':_0x133ca3(hi,{'defaultValues':ci})})]})}):null;}const _i='sheet.chart.edit.panel',vi=_0x2e596f(0x196),yi=_0x2e596f(0x234);function bi(_0x5d2c98){const _0x845840=_0x2e596f;if(_0x5d2c98[_0x845840(0x211)]!==0x1)return!0x1;let _0x5bb8bc=_0x5d2c98[0x0];return _0x5bb8bc[_0x845840(0x2ef)]===_0x170c77['DRAWING_CHART']&&!_0x5bb8bc[_0x845840(0x2cd)];}let Q=class extends _0x119f54{constructor(_0x2e7d39,_0x169ba9,_0x4167b6,_0x15756b,_0x14b07c,_0x4c84cf,_0x41c841,_0x453bd9,_0x3a157b,_0x3e3235,_0x464d6b,_0x3fffbc,_0x5f3feb,_0x48549e){const _0x4de806=_0x2e596f;var _0x2fb007;super(),this[_0x4de806(0x24b)]=_0x2e7d39,this[_0x4de806(0x1ce)]=_0x169ba9,this[_0x4de806(0x1da)]=_0x4167b6,this['_chartRenderService']=_0x15756b,this[_0x4de806(0x195)]=_0x14b07c,this[_0x4de806(0x2f6)]=_0x4c84cf,this[_0x4de806(0x362)]=_0x41c841,this[_0x4de806(0x2b7)]=_0x453bd9,this[_0x4de806(0x386)]=_0x3a157b,this['_commandService']=_0x3e3235,this['_sheetsChartUIService']=_0x464d6b,this['_contextService']=_0x3fffbc,this['_localeService']=_0x5f3feb,W(this,'_sidebarDisposable',null),W(this,_0x4de806(0x210),void 0x0),this['_isChartElementEditEnabled']=((_0x2fb007=_0x48549e[_0x4de806(0x26f)]('sheets-chart-ui.config'))==null?void 0x0:_0x2fb007[_0x4de806(0x290)])===!0x0,this[_0x4de806(0x3f3)](),this['disposeWithMe'](this[_0x4de806(0x1ce)]['getCurrentTypeOfUnit$'](_0x3f0a52[_0x4de806(0x295)])[_0x4de806(0x2e6)](_0x5211ba=>{const _0x4c8cec=_0x4de806;var _0x300982;_0x5211ba||(_0x300982=this[_0x4c8cec(0x2f2)])==null||_0x300982[_0x4c8cec(0x19b)]();})),this[_0x4de806(0x199)](_0x1f7c49(this[_0x4de806(0x195)]['onDoubleClick$'][_0x4de806(0x2e6)](async({drawing:_0x5276a0})=>{const _0x43a73c=_0x4de806;await this[_0x43a73c(0x2b1)](_0x5276a0);})));}[_0x2e596f(0x21e)](){const _0x348bf2=_0x2e596f;this[_0x348bf2(0x2f2)]=this[_0x348bf2(0x2f6)]['open']({'id':_i,'header':{'title':this[_0x348bf2(0x3c5)]['t'](_0x348bf2(0x329))},'width':0x154,'children':{'label':_i},'onClose':()=>{const _0x277cee=_0x348bf2;this[_0x277cee(0x2f2)]=null,this[_0x277cee(0x281)](),this['_chartModelService'][_0x277cee(0x25a)]&&this['_chartModelService'][_0x277cee(0x368)](null),this[_0x277cee(0x24b)][_0x277cee(0x237)](null),this['_contextService'][_0x277cee(0x208)](_0x2ac415,!0x1);}});}[_0x2e596f(0x19a)](){const _0x49c31f=_0x2e596f;let _0x566b62=this[_0x49c31f(0x2f2)];this['_sidebarDisposable']=null,this[_0x49c31f(0x281)](),this[_0x49c31f(0x1da)]['activeChartModel']&&this[_0x49c31f(0x1da)][_0x49c31f(0x368)](null),_0x566b62==null||_0x566b62[_0x49c31f(0x19b)]();}[_0x2e596f(0x1aa)](){const _0xf44379=_0x2e596f;let _0x48c5d0=this['_univerInstanceService'][_0xf44379(0x2dc)](_0x3f0a52[_0xf44379(0x295)]);this[_0xf44379(0x199)](this['_sidebarService'][_0xf44379(0x403)][_0xf44379(0x2e6)](_0x4d074b=>{const _0x116b87=_0xf44379;_0x4d074b['id']===_0x116b87(0x1a0)&&(_0x4d074b[_0x116b87(0x1d3)]||this['_sidebarService'][_0x116b87(0x403)][_0x116b87(0x289)]({'visible':!0x1}));})),this['disposeWithMe'](_0x10d7e5([this[_0xf44379(0x1da)]['activeChartModel$'],this[_0xf44379(0x3d0)][_0xf44379(0x26b)]])[_0xf44379(0x377)](_0x18f3e7(([_0xf082cb,_0x533aaa])=>_0x533aaa?(_0xf082cb==null?void 0x0:_0xf082cb['id'])??null:null),_0x1c1222(),_0x3f2689(null),_0x4002ba())['subscribe'](([_0x401ec4,_0xf7500a])=>{this['_syncActiveEditChart'](_0x401ec4,_0xf7500a);})),this[_0xf44379(0x199)](this[_0xf44379(0x1da)][_0xf44379(0x1a8)][_0xf44379(0x2e6)](_0x2846e4=>{const _0x2bcd89=_0xf44379;!_0x2846e4&&this[_0x2bcd89(0x2f2)]&&this[_0x2bcd89(0x19a)]();})),this['disposeWithMe'](this['_commandService'][_0xf44379(0x3ce)](_0x1faf2b=>{const _0x12c6b=_0xf44379;if(_0x1faf2b['id']===V['id']){let _0x15c925=_0x1faf2b[_0x12c6b(0x1a5)];this[_0x12c6b(0x25d)](_0x15c925[_0x12c6b(0x2ed)],_0x15c925[_0x12c6b(0x356)]);}if(_0x1faf2b['id']===_r['id']&&this['hidePanel'](),_0x1faf2b['id']===_0x3ce90c['id']){var _0x4e609a;_0x1faf2b[_0x12c6b(0x1a5)]['chartId']===((_0x4e609a=this['_chartModelService']['activeChartModel'])==null?void 0x0:_0x4e609a['id'])&&this['hidePanel'](),this['_contextService']['getContextValue'](_0x2ac415)&&(this['_contextService'][_0x12c6b(0x208)](_0x2ac415,!0x1),this['_drawingManagerService']['focusDrawing'](null));}})),this[_0xf44379(0x199)](this['_sheetCanvasFloatDomManagerService']['remove$'][_0xf44379(0x2e6)](({id:_0x31ade6})=>{const _0x506839=_0xf44379;this[_0x506839(0x3d0)][_0x506839(0x3a3)](_0x31ade6)&&this[_0x506839(0x19a)]();})),this[_0xf44379(0x199)](this[_0xf44379(0x2b7)]['transformChange$'][_0xf44379(0x2e6)](({id:_0x33a041})=>{const _0xdd4439=_0xf44379;this[_0xdd4439(0x3d0)][_0xdd4439(0x3a3)](_0x33a041)&&(this[_0xdd4439(0x3d0)][_0xdd4439(0x3ca)](),this[_0xdd4439(0x3fd)][_0xdd4439(0x39c)](_0x33a041,!0x1),this[_0xdd4439(0x2e1)](_0x33a041)&&this[_0xdd4439(0x3fd)][_0xdd4439(0x39c)](_0x33a041,!0x0));})),this[_0xf44379(0x199)](this[_0xf44379(0x24b)][_0xf44379(0x197)]['subscribe'](_0x22936b=>{const _0x398de8=_0xf44379;let _0x4c2d91=_0x22936b[0x0];if(!this[_0x398de8(0x3d0)][_0x398de8(0x22b)]){if(bi(_0x22936b)){var _0xc913a7;let _0x22334d=this[_0x398de8(0x1da)][_0x398de8(0x304)](_0x4c2d91[_0x398de8(0x2ed)]);_0x22334d&&((_0xc913a7=this['_chartModelService'][_0x398de8(0x25a)])==null?void 0x0:_0xc913a7['id'])!==_0x22334d['id']&&this[_0x398de8(0x1da)]['setActiveChartModel'](_0x22334d);return;}this[_0x398de8(0x1da)][_0x398de8(0x25a)]&&this[_0x398de8(0x1da)][_0x398de8(0x368)](null),!_0x4c2d91&&!this[_0x398de8(0x3d0)][_0x398de8(0x22b)]&&this[_0x398de8(0x19a)]();}})),_0x48c5d0&&(this[_0xf44379(0x199)](_0x48c5d0[_0xf44379(0x1ac)][_0xf44379(0x2e6)](()=>{this['hidePanel']();})),this['disposeWithMe'](_0x48c5d0[_0xf44379(0x238)][_0xf44379(0x2e6)](()=>{this['hidePanel']();})));}async[_0x2e596f(0x2b1)](_0x29d421){const _0x260438=_0x2e596f;this[_0x260438(0x3d0)]['chartEditorOpen']||_0x29d421[_0x260438(0x2ef)]===_0x170c77[_0x260438(0x30b)]&&await this[_0x260438(0x25c)](_0x29d421[_0x260438(0x226)],_0x29d421['subUnitId'],_0x29d421[_0x260438(0x2ed)]);}async[_0x2e596f(0x25c)](_0x3e56cd,_0xa969e0,_0x466056){const _0xc5b60e=_0x2e596f;let _0x4b3f59=this[_0xc5b60e(0x1da)][_0xc5b60e(0x304)](_0x466056);_0x4b3f59&&(this['_chartModelService'][_0xc5b60e(0x368)](_0x4b3f59),await this[_0xc5b60e(0x184)][_0xc5b60e(0x275)](V['id'],{'unitId':_0x3e56cd,'subUnitId':_0xa969e0,'drawingId':_0x466056}));}[_0x2e596f(0x25d)](_0x59956f,_0x4a545f){const _0x2169ff=_0x2e596f;let _0x2a33aa=this[_0x2169ff(0x1da)][_0x2169ff(0x304)](_0x59956f);_0x2a33aa&&(this[_0x2169ff(0x1da)][_0x2169ff(0x368)](_0x2a33aa),this[_0x2169ff(0x21e)](),this['_activateEditPanelState'](_0x59956f,_0x4a545f??null));}[_0x2e596f(0x3bf)](_0x44905f,_0x3be801){const _0x48b77e=_0x2e596f;this[_0x48b77e(0x3d0)][_0x48b77e(0x1e6)](!0x0),this[_0x48b77e(0x3d0)][_0x48b77e(0x1a3)](_0x44905f,_0x3be801);}[_0x2e596f(0x281)](){const _0x489f37=_0x2e596f;this[_0x489f37(0x3d0)][_0x489f37(0x1e6)](!0x1);}[_0x2e596f(0x3e2)](_0x460c7f,_0x2c21ba){const _0x834b3a=_0x2e596f;_0x460c7f!==_0x2c21ba&&(_0x460c7f&&this['_chartRenderService'][_0x834b3a(0x39c)](_0x460c7f,!0x1),this[_0x834b3a(0x3d0)][_0x834b3a(0x3ca)](),_0x2c21ba&&(this['_sheetsChartUIService'][_0x834b3a(0x1a3)](_0x2c21ba,null),this[_0x834b3a(0x3fd)][_0x834b3a(0x39c)](_0x2c21ba,this[_0x834b3a(0x2e1)](_0x2c21ba))));}['_initMenus'](){const _0x4e64b2=_0x2e596f;this['_menuManagerService'][_0x4e64b2(0x352)](Ir),this[_0x4e64b2(0x386)][_0x4e64b2(0x317)](_0x170c77[_0x4e64b2(0x30b)],this[_0x4e64b2(0x3e0)][_0x4e64b2(0x25e)](this));}[_0x2e596f(0x2e1)](_0x21578f){const _0x16becb=_0x2e596f;let _0x7dd9a6=this[_0x16becb(0x1da)]['getChartModel'](_0x21578f);return!this[_0x16becb(0x210)]||!_0x7dd9a6?!0x1:Rr(_0x7dd9a6['chartType']);}[_0x2e596f(0x3e0)](_0x4285ed,_0x3cd652,_0x166fc3,_0x95caf9){const _0x258197=_0x2e596f;return[{'label':this[_0x258197(0x3c5)]['t'](_0x258197(0x17d)),'index':0x0,'commandId':V['id'],'commandParams':{'unitId':_0x4285ed,'subUnitId':_0x3cd652,'drawingId':_0x166fc3},'disable':_0x95caf9!==_0x170c77['DRAWING_CHART']},{'label':this[_0x258197(0x3c5)]['t'](_0x258197(0x1d8)),'index':0x1,'commandId':_0x337d92['id'],'commandParams':{'unitId':_0x4285ed,'drawings':[{'unitId':_0x4285ed,'subUnitId':_0x3cd652,'drawingId':_0x166fc3,'drawingType':_0x95caf9}]},'disable':!0x1},{'label':this[_0x258197(0x3c5)]['t'](_0x258197(0x227)),'index':0x2,'commandId':_r['id'],'commandParams':{'unitId':_0x4285ed,'subUnitId':_0x3cd652,'drawingId':_0x166fc3},'disable':!0x1}];}};Q=J([q(0x0,_0x2a5fe1),q(0x1,_0x24beef),q(0x2,_0x12d10b(_0x507ffa)),q(0x3,_0x12d10b(X)),q(0x4,_0x12d10b(_0x941ca0)),q(0x5,_0x12d10b(_0x121f63)),q(0x6,_0x2076f6),q(0x7,_0x12d10b(_0x1c815e)),q(0x8,_0x12d10b(_0x17e9aa)),q(0x9,_0x345ee8),q(0xa,Y),q(0xb,_0x3ca8bf),q(0xc,_0x12d10b(_0x1c8aa5)),q(0xd,_0x4fe135)],Q);var xi=_0x2e596f(0x297),Si=_0x2e596f(0x3cc);const Ci={'scaleX':0x1,'scaleY':0x1};function wi(_0x4095fe){const _0x426d39=_0x2e596f;let _0x3cf356=_0x4095fe[_0x426d39(0x2da)];return _0x3cf356 instanceof MouseEvent?_0x3cf356:void 0x0;}function Ti(_0x3db0df){const _0x54a47f=_0x2e596f;let _0x2547cc=_0x3db0df[_0x54a47f(0x2da)],_0x463859=_0x2547cc==null?void 0x0:_0x2547cc[_0x54a47f(0x366)];return _0x463859 instanceof Element?_0x463859:void 0x0;}function Ei(_0x3f134b){const _0x5405b5=_0x2e596f;var _0x3a340f;return(_0x3a340f=Ti(_0x3f134b))==null?void 0x0:_0x3a340f[_0x5405b5(0x2c5)]();}function Di(_0x281780){const _0x23d16c=_0x2e596f;return _0x281780['width']||_0x281780['right']-_0x281780[_0x23d16c(0x3a6)];}function Oi(_0x553520){const _0x434ba5=_0x2e596f;return _0x553520[_0x434ba5(0x391)]||_0x553520[_0x434ba5(0x2fe)]-_0x553520['top'];}function ki(_0x1cff6c,_0x4ae0f6){const _0x36fdb8=_0x2e596f;let _0x2bff81=_0x1cff6c['clientWidth']||(_0x1cff6c instanceof HTMLElement?_0x1cff6c['offsetWidth']:0x0),_0x19034e=_0x1cff6c[_0x36fdb8(0x33e)]||(_0x1cff6c instanceof HTMLElement?_0x1cff6c[_0x36fdb8(0x217)]:0x0),_0x17ea89=Di(_0x4ae0f6),_0x5f2e33=Oi(_0x4ae0f6);return{'scaleX':_0x2bff81>0x0&&_0x17ea89>0x0?_0x17ea89/_0x2bff81:Ci[_0x36fdb8(0x1ff)],'scaleY':_0x19034e>0x0&&_0x5f2e33>0x0?_0x5f2e33/_0x19034e:Ci[_0x36fdb8(0x319)]};}function Ai(_0x1b1012,_0x371c3c,_0x52dd56){const _0x2f324d=_0x2e596f;return{'left':_0x1b1012['left']+_0x371c3c[_0x2f324d(0x3a6)]*_0x52dd56[_0x2f324d(0x1ff)],'right':_0x1b1012[_0x2f324d(0x3a6)]+_0x371c3c[_0x2f324d(0x300)]*_0x52dd56['scaleX'],'top':_0x1b1012[_0x2f324d(0x338)]+_0x371c3c[_0x2f324d(0x338)]*_0x52dd56[_0x2f324d(0x319)],'bottom':_0x1b1012[_0x2f324d(0x338)]+_0x371c3c['bottom']*_0x52dd56[_0x2f324d(0x319)]};}function ji(_0x120d33){const _0x416799=_0x2e596f;let _0x468e5f=Ti(_0x120d33),_0x16a98b=_0x120d33['hit'][_0x416799(0x2f0)];return _0x468e5f&&_0x16a98b?()=>{const _0x33443a=_0x416799;let _0x2284b4=_0x468e5f[_0x33443a(0x2c5)]();return Ai(_0x2284b4,_0x16a98b,ki(_0x468e5f,_0x2284b4));}:()=>{const _0x3b5d85=_0x416799;let _0x3a6c58=Ei(_0x120d33);if(_0x3a6c58&&_0x16a98b)return Ai(_0x3a6c58,_0x16a98b,_0x468e5f?ki(_0x468e5f,_0x3a6c58):Ci);let _0x5c8b08=wi(_0x120d33),_0x16b406=_0x468e5f&&_0x3a6c58?ki(_0x468e5f,_0x3a6c58):Ci,_0xaebddb=(_0x5c8b08==null?void 0x0:_0x5c8b08[_0x3b5d85(0x339)])??(_0x3a6c58?_0x3a6c58['left']+_0x120d33['localPoint']['x']*_0x16b406['scaleX']:_0x120d33[_0x3b5d85(0x22a)]['x']),_0x3c8214=(_0x5c8b08==null?void 0x0:_0x5c8b08[_0x3b5d85(0x2c3)])??(_0x3a6c58?_0x3a6c58['top']+_0x120d33[_0x3b5d85(0x22a)]['y']*_0x16b406[_0x3b5d85(0x319)]:_0x120d33['localPoint']['y']);return{'left':_0xaebddb,'right':_0xaebddb+0x1,'top':_0x3c8214,'bottom':_0x3c8214+0x1};};}function Mi(_0x397e04){const _0x43cc5f=_0x2e596f;return typeof _0x397e04==_0x43cc5f(0x19f)&&Number[_0x43cc5f(0x1e8)](_0x397e04);}function Ni(_0x1f89cd){const _0x487c76=_0x2e596f;if(!_0x1f89cd||typeof _0x1f89cd!=_0x487c76(0x379))return!0x0;let {startX:_0x3785d3,endX:_0x4b010f,startY:_0x492796,endY:_0x339b86}=_0x1f89cd;return!Mi(_0x3785d3)||!Mi(_0x4b010f)||!Mi(_0x492796)||!Mi(_0x339b86)||_0x4b010f-_0x3785d3>0x2&&_0x339b86-_0x492796>0x2;}function Pi(_0x4c5ff9){const _0x269cec=_0x2e596f;return _0x4c5ff9[_0x269cec(0x300)]<=_0x4c5ff9[_0x269cec(0x3a6)]||_0x4c5ff9[_0x269cec(0x2fe)]<=_0x4c5ff9[_0x269cec(0x338)]?!0x1:typeof window>'u'||_0x4c5ff9[_0x269cec(0x300)]>0x0&&_0x4c5ff9[_0x269cec(0x2fe)]>0x0&&_0x4c5ff9[_0x269cec(0x3a6)]<window[_0x269cec(0x311)]&&_0x4c5ff9['top']<window['innerHeight'];}function Fi(_0x2a088f){const _0x1cd1ac=_0x2e596f;var _0x4dcf56;return _0x2a088f==null||(_0x4dcf56=_0x2a088f[_0x1cd1ac(0x3b6)])==null?void 0x0:_0x4dcf56[_0x1cd1ac(0x341)](_0x2a088f);}function Ii(_0x369c49,_0x46239f,_0x43f567){const _0x565466=_0x2e596f;let _0x4aa4bf=ji(_0x369c49),_0x4ed0d8=Fi(_0x46239f),_0x2946c9=_0x4aa4bf(),_0x423c7a=new _0x56dbf5(_0x2946c9),_0x368acc=new _0x490fdc(),_0x30553d=!0x1,_0x476c37=!0x1,_0x481c7c=_0x3e6b37=>Ni(_0x4ed0d8)&&Pi(_0x3e6b37),_0x47e69e=()=>{_0x476c37||_0x30553d||(_0x476c37=!0x0,queueMicrotask(()=>{const _0xb18b11=_0x4926;if(_0x476c37=!0x1,!_0x30553d){let _0x5bca51=_0x4aa4bf();if(!_0x481c7c(_0x5bca51)){_0x43f567();return;}_0x423c7a[_0xb18b11(0x289)](_0x5bca51);}}));};return _0x46239f&&_0x368acc[_0x565466(0x30c)](_0x46239f[_0x565466(0x2e6)](_0x14208a=>{_0x4ed0d8=_0x14208a,_0x47e69e();})),typeof window<'u'&&_0x368acc[_0x565466(0x30c)](_0x423d97(_0x97493f(window,_0x565466(0x1c2),{'capture':!0x0}),_0x97493f(window,_0x565466(0x1de)))[_0x565466(0x377)](_0x117785(0x10))['subscribe'](_0x47e69e)),{'initialRect':_0x2946c9,'anchorRect$':_0x423c7a[_0x565466(0x364)](),'visible':_0x481c7c(_0x2946c9),'dispose':()=>{const _0x4f1a18=_0x565466;_0x30553d=!0x0,_0x368acc[_0x4f1a18(0x19b)](),_0x423c7a[_0x4f1a18(0x324)]();}};}const Li='sheets-chart-element-float-menu';let Ri=class extends _0x119f54{constructor(_0x19435e,_0x3f0de6,_0x559cea,_0x52831f,_0x543b58,_0x2d61c5,_0x4d2ed9,_0x5b6be,_0x121596){const _0xc97427=_0x2e596f;super(),this['_chartModelService']=_0x19435e,this[_0xc97427(0x3fd)]=_0x3f0de6,this['_chartHostProvider']=_0x559cea,this[_0xc97427(0x386)]=_0x52831f,this['_sheetCanvasFloatDomManagerService']=_0x543b58,this[_0xc97427(0x33a)]=_0x2d61c5,this[_0xc97427(0x2de)]=_0x4d2ed9,this[_0xc97427(0x184)]=_0x5b6be,this[_0xc97427(0x2d4)]=_0x121596,W(this,_0xc97427(0x1db),null),W(this,_0xc97427(0x193),null),W(this,_0xc97427(0x3c1),null),this[_0xc97427(0x185)](),this[_0xc97427(0x24a)]();}['dispose'](){const _0x1c7172=_0x2e596f;this[_0x1c7172(0x2f4)](),super[_0x1c7172(0x19b)]();}['_registerAdapter'](){const _0x217063=_0x2e596f;let _0x52b25e=_0x512b6b({'chartUIService':this[_0x217063(0x33a)],'getHostAdapter':_0x23bec9=>{const _0x1efe44=_0x217063;let _0x3f41fa=this['_chartModelService']['getChartModel'](_0x23bec9[_0x1efe44(0x1e1)]);if(!(!_0x3f41fa||!_0x23bec9['subUnitId']))return new _0x54094c(_0x3f41fa,new _0x57abae({'unitId':_0x23bec9['unitId'],'subUnitId':_0x23bec9[_0x1efe44(0x370)],'chartId':_0x23bec9[_0x1efe44(0x1e1)],'injector':this[_0x1efe44(0x2d4)]}));},'close':()=>this[_0x217063(0x2f4)](),'openFullPanel':_0x21fa16=>{const _0x2fdccd=_0x217063;let {unitId:_0x1378ec,subUnitId:_0x52f733,drawingId:_0x285625,chartId:_0x1869ff}=_0x21fa16,_0x22f0da=_0x22f32a(_0x21fa16['target']);this[_0x2fdccd(0x184)][_0x2fdccd(0x275)](V['id'],{'unitId':_0x1378ec,'subUnitId':_0x52f733??'','drawingId':_0x285625??_0x1869ff,..._0x22f0da?{'route':_0x22f0da}:{}});}});this[_0x217063(0x199)](this['_adapterRegistry'][_0x217063(0x35d)](Li,_0x52b25e));}[_0x2e596f(0x24a)](){const _0x466f7f=_0x2e596f;this['disposeWithMe'](this[_0x466f7f(0x1da)]['chartModelAdded$']['subscribe'](_0x694648=>{const _0x5e2f43=_0x466f7f;let _0x24a50c=new _0x490fdc();_0x24a50c[_0x5e2f43(0x30c)](this[_0x5e2f43(0x3fd)]['on'](_0x694648['id'],_0x5e2f43(0x1f3),_0x48a77c=>{const _0x33f79e=_0x5e2f43;this[_0x33f79e(0x2c8)](_0x694648['id'],_0x48a77c);})),_0x24a50c[_0x5e2f43(0x30c)](this[_0x5e2f43(0x3fd)]['on'](_0x694648['id'],'dblclick',()=>{const _0x463684=_0x5e2f43;this[_0x463684(0x25c)](_0x694648['id']);})),_0x694648['onDispose'](()=>{const _0x5b8326=_0x5e2f43;_0x24a50c[_0x5b8326(0x19b)](),this['_clearSelectedTarget'](_0x694648['id']);}),this[_0x5e2f43(0x199)](_0x24a50c);})),this[_0x466f7f(0x199)](_0x10d7e5([this['_chartModelService'][_0x466f7f(0x1a8)],this[_0x466f7f(0x33a)]['chartEditorOpen$']])[_0x466f7f(0x2e6)](([_0x2ebb7c,_0x4685bf])=>{const _0x277742=_0x466f7f;(!_0x4685bf||this[_0x277742(0x193)]&&(_0x2ebb7c==null?void 0x0:_0x2ebb7c['id'])!==this['_popupChartId'])&&this[_0x277742(0x2f4)]();})),this[_0x466f7f(0x199)](this[_0x466f7f(0x2b7)][_0x466f7f(0x224)][_0x466f7f(0x2e6)](({id:_0x20a5af})=>{this['_clearSelectedTarget'](_0x20a5af);})),this[_0x466f7f(0x199)](this[_0x466f7f(0x2b7)]['remove$'][_0x466f7f(0x2e6)](({id:_0x29ec1a})=>{const _0x55129a=_0x466f7f;this[_0x55129a(0x306)](_0x29ec1a);})),this['disposeWithMe'](this[_0x466f7f(0x1e2)][_0x466f7f(0x2ea)][_0x466f7f(0x2e6)](_0x1e5c86=>{const _0x3440b1=_0x466f7f;this[_0x3440b1(0x306)](_0x1e5c86);}));}[_0x2e596f(0x25c)](_0x363c7e){const _0x21fff8=_0x2e596f;if(this['_chartUIService'][_0x21fff8(0x30d)])return;let _0x22076b=this[_0x21fff8(0x1da)][_0x21fff8(0x304)](_0x363c7e),_0xf953bb=this['_sheetCanvasFloatDomManagerService'][_0x21fff8(0x3a1)](_0x363c7e);!_0x22076b||!_0xf953bb||this[_0x21fff8(0x184)]['executeCommand'](V['id'],{'unitId':_0xf953bb[_0x21fff8(0x226)],'subUnitId':_0xf953bb[_0x21fff8(0x370)]??'','drawingId':_0x363c7e});}['_openFloatMenu'](_0x2b645c,_0xfb6ac4){const _0x1985b2=_0x2e596f;if(!this[_0x1985b2(0x33a)]['isElementEditModeActive'](_0x2b645c))return;let _0x529ea6=this[_0x1985b2(0x1da)]['getChartModel'](_0x2b645c),_0x1ca22b=_0x529ea6?zr(_0x529ea6,_0xfb6ac4['hit']):void 0x0;if(!_0x1ca22b){this[_0x1985b2(0x33a)][_0x1985b2(0x3ca)](),this['_closePopup']();return;}let _0x250562=this[_0x1985b2(0x2b7)][_0x1985b2(0x3a1)](_0x2b645c);if(!_0x529ea6||!_0x250562){this[_0x1985b2(0x33a)][_0x1985b2(0x3ca)](),this[_0x1985b2(0x2f4)]();return;}let _0x1f0242=JSON[_0x1985b2(0x34c)]([_0x250562[_0x1985b2(0x226)],_0x250562[_0x1985b2(0x370)],_0x2b645c,_0x1ca22b[_0x1985b2(0x366)]]);if(this[_0x1985b2(0x1db)]&&this[_0x1985b2(0x3c1)]===_0x1f0242||(this[_0x1985b2(0x33a)][_0x1985b2(0x1a3)](_0x2b645c,_0x1ca22b[_0x1985b2(0x356)]),this[_0x1985b2(0x2f4)](),!_0x1ca22b[_0x1985b2(0x325)]))return;let _0xfb59f5=Ii(_0xfb6ac4,_0x250562[_0x1985b2(0x30f)],()=>this[_0x1985b2(0x2b6)](_0x2b645c));if(!_0xfb59f5[_0x1985b2(0x1d3)]){_0xfb59f5[_0x1985b2(0x19b)]();return;}let _0x4b8939=this[_0x1985b2(0x386)][_0x1985b2(0x388)](_0xfb59f5[_0x1985b2(0x321)],_0xfb59f5[_0x1985b2(0x17b)],{'componentKey':_0xa1e7b4,'constrainToCanvas':!0x0,'direction':'top-center','offset':[0x0,0x8],'extraProps':{'unitId':_0x250562[_0x1985b2(0x226)],'subUnitId':_0x250562['subUnitId'],'chartId':_0x2b645c,'drawingId':_0x2b645c,'element':_0xfb6ac4['hit'],'target':_0x1ca22b[_0x1985b2(0x366)],'adapterKey':Li}},_0x250562[_0x1985b2(0x226)],_0x250562['subUnitId'])??null;if(!_0x4b8939){_0xfb59f5[_0x1985b2(0x19b)]();return;}let _0x360d6b=new _0x490fdc();_0x360d6b[_0x1985b2(0x30c)](_0x4b8939),_0x360d6b['add'](_0xfb59f5),this[_0x1985b2(0x1db)]=_0x360d6b,this[_0x1985b2(0x193)]=_0x2b645c,this[_0x1985b2(0x3c1)]=_0x1f0242;}[_0x2e596f(0x2f4)](){const _0x485599=_0x2e596f;var _0x553f69;(_0x553f69=this[_0x485599(0x1db)])==null||_0x553f69[_0x485599(0x19b)](),this[_0x485599(0x1db)]=null,this[_0x485599(0x193)]=null,this[_0x485599(0x3c1)]=null;}[_0x2e596f(0x306)](_0x5a983e){const _0x5bb435=_0x2e596f;!this[_0x5bb435(0x33a)][_0x5bb435(0x3a3)](_0x5a983e)&&this[_0x5bb435(0x193)]!==_0x5a983e||(this['_chartUIService'][_0x5bb435(0x3ca)](),this[_0x5bb435(0x193)]===_0x5a983e&&this[_0x5bb435(0x2f4)]());}[_0x2e596f(0x2b6)](_0x24e229){const _0x3df81d=_0x2e596f;this['_clearSelectedTarget'](_0x24e229),this[_0x3df81d(0x33a)][_0x3df81d(0x3a3)](_0x24e229)&&(this[_0x3df81d(0x3fd)][_0x3df81d(0x39c)](_0x24e229,!0x1),this['_chartRenderService'][_0x3df81d(0x39c)](_0x24e229,!0x0));}};Ri=J([q(0x0,_0x12d10b(_0x507ffa)),q(0x1,_0x12d10b(X)),q(0x2,ni),q(0x3,_0x12d10b(_0x17e9aa)),q(0x4,_0x12d10b(_0x1c815e)),q(0x5,Y),q(0x6,_0x12d10b(_0x208369)),q(0x7,_0x345ee8),q(0x8,_0x12d10b(_0x4b0ab7))],Ri);let zi=class extends _0x119f54{constructor(_0x47de5a,_0x58241e){const _0x299fbb=_0x2e596f;super(),this[_0x299fbb(0x22f)]=_0x47de5a,this[_0x299fbb(0x1da)]=_0x58241e,this['_init']();}[_0x2e596f(0x354)](){const _0x2ca247=_0x2e596f;this[_0x2ca247(0x199)](this[_0x2ca247(0x22f)][_0x2ca247(0x2ea)]['subscribe'](_0x1e1492=>{const _0x5e6b1f=_0x2ca247;this[_0x5e6b1f(0x1da)][_0x5e6b1f(0x1ec)](_0x1e1492);}));}};zi=J([q(0x0,ni),q(0x1,_0x12d10b(_0x507ffa))],zi);let Bi=class extends _0x119f54{constructor(_0x197b8b,_0xbce6c6,_0x4b127e,_0x451b62,_0x17efdd,_0x2b7892){const _0x455ad4=_0x2e596f;super(),this[_0x455ad4(0x1da)]=_0x197b8b,this['_chartRenderService']=_0xbce6c6,this[_0x455ad4(0x3c5)]=_0x4b127e,this[_0x455ad4(0x33a)]=_0x451b62,this[_0x455ad4(0x184)]=_0x17efdd,this[_0x455ad4(0x3c2)]=_0x2b7892,W(this,_0x455ad4(0x299),new Map()),this[_0x455ad4(0x354)](),this['_listenChartUpdateMutations'](),this[_0x455ad4(0x39b)]();}['_initPrinting'](){const _0x2c8217=_0x2e596f;this['disposeWithMe'](this[_0x2c8217(0x3c2)]['interceptor'][_0x2c8217(0x1c8)](this[_0x2c8217(0x3c2)]['interceptor'][_0x2c8217(0x3f1)]()[_0x2c8217(0x1fe)],{'handler':(_0x51e1d6,_0x4e19c2,_0x21a384)=>{const _0x4161c2=_0x2c8217;let _0x47e2f4=this[_0x4161c2(0x3fd)][_0x4161c2(0x206)](_0x4e19c2['unitId'],_0x4e19c2[_0x4161c2(0x370)],_0x4e19c2[_0x4161c2(0x268)]);return _0x4e19c2[_0x4161c2(0x355)]['add'](_0x47e2f4),_0x21a384(_0x51e1d6);}}));}[_0x2e596f(0x354)](){const _0x5a5bf2=_0x2e596f;this['disposeWithMe'](this[_0x5a5bf2(0x1da)][_0x5a5bf2(0x328)]['subscribe'](_0x1ab2e7=>{const _0x3efe55=_0x5a5bf2;if(_0x1ab2e7){let _0x5dd7ea=new _0x490fdc();_0x5dd7ea['add'](_0x1ab2e7[_0x3efe55(0x205)][_0x3efe55(0x377)](_0x2b95f5(_0x1ab2e7[_0x3efe55(0x27b)]),_0x2b95f5(this[_0x3efe55(0x3c5)][_0x3efe55(0x343)]),_0x5a3b05(0x64))[_0x3efe55(0x2e6)](([[_0x3e1e51,_0x2a94d0],_0x293268])=>{const _0x12f478=_0x3efe55;var _0x34f84e;if(!_0x3e1e51)return;(_0x34f84e=_0x3e1e51[_0x12f478(0x23c)])==null||_0x34f84e['items'][_0x12f478(0x399)]((_0x137f30,_0x5d9776)=>{const _0x37499e=_0x12f478;_0x137f30[_0x37499e(0x265)]||=this[_0x37499e(0x3c5)]['t']('sheets-chart-ui.common.category')+'\x20'+(_0x5d9776+0x1);}),_0x3e1e51[_0x12f478(0x315)][_0x12f478(0x399)]((_0x3dfa60,_0x159d68)=>{const _0x9b51ad=_0x12f478;_0x3dfa60[_0x9b51ad(0x340)]||=this[_0x9b51ad(0x3c5)]['t'](_0x9b51ad(0x27e))+'\x20'+(_0x159d68+0x1);});let _0xc3c5f9=this['_chartRenderService'][_0x12f478(0x1e9)](_0x1ab2e7,_0x293268);this[_0x12f478(0x3fd)]['render'](_0x1ab2e7['id'],_0x3e1e51,_0xc3c5f9);})),_0x1ab2e7['onDispose'](()=>{const _0xdcbf48=_0x3efe55;_0x5dd7ea[_0xdcbf48(0x19b)]();});}}));}[_0x2e596f(0x3d1)](){const _0x208777=_0x2e596f;this[_0x208777(0x199)](this[_0x208777(0x184)][_0x208777(0x3ce)](_0x6c428e=>{const _0x41d025=_0x208777;if(_0x6c428e['id']!==_0x5abdbf['id'])return;let _0x5d7c11=_0x6c428e[_0x41d025(0x1a5)];_0x5d7c11!=null&&_0x5d7c11['chartModelId']&&Promise[_0x41d025(0x349)]()[_0x41d025(0x271)](()=>this[_0x41d025(0x3b0)](_0x5d7c11));}));}[_0x2e596f(0x3b0)](_0x381706){const _0x10bbfa=_0x2e596f;let _0x2e6a43=this[_0x10bbfa(0x1da)]['getChartModel'](_0x381706[_0x10bbfa(0x2a0)]);if(!_0x2e6a43||_0x2e6a43[_0x10bbfa(0x1f2)]!==_0xde80c8[_0x10bbfa(0x1ab)])return;let _0x51a06a=_0x2e6a43['config'];if(!_0x51a06a){this['_renderWhenConfigReady'](_0x2e6a43);return;}this[_0x10bbfa(0x242)](_0x2e6a43,_0x51a06a);}[_0x2e596f(0x258)](_0x3e2672){const _0x4aeb53=_0x2e596f;if(this[_0x4aeb53(0x299)]['get'](_0x3e2672['id']))return;let _0x432311=_0x3e2672[_0x4aeb53(0x205)]['pipe'](_0x3a73f0(_0x5091cf=>_0x5091cf!=null),_0x42ca26(0x1))[_0x4aeb53(0x2e6)](_0x13421f=>{const _0x441a0f=_0x4aeb53;this[_0x441a0f(0x299)][_0x441a0f(0x40a)](_0x3e2672['id']),this[_0x441a0f(0x242)](_0x3e2672,_0x13421f);});this['_pendingMutationConfigRenders'][_0x4aeb53(0x1a9)](_0x3e2672['id'],_0x432311),_0x3e2672[_0x4aeb53(0x3a7)](()=>{const _0x585d78=_0x4aeb53;_0x432311[_0x585d78(0x2f8)](),this['_pendingMutationConfigRenders'][_0x585d78(0x40a)](_0x3e2672['id']);});}[_0x2e596f(0x242)](_0x4d8f26,_0x5e3b0b){const _0x5371f7=_0x2e596f;let _0x1ff3fb=this[_0x5371f7(0x3fd)][_0x5371f7(0x1e9)](_0x4d8f26,this[_0x5371f7(0x3c5)][_0x5371f7(0x1b5)]());this['_chartRenderService'][_0x5371f7(0x1e3)](_0x4d8f26['id'],_0x5e3b0b,_0x1ff3fb);}};Bi=J([q(0x0,_0x12d10b(_0x507ffa)),q(0x1,_0x12d10b(X)),q(0x2,_0x12d10b(_0x1c8aa5)),q(0x3,Y),q(0x4,_0x345ee8),q(0x5,_0x12d10b(_0x2795e9))],Bi);function Vi(_0x90af4,_0x4c29bf,_0x1810c0,_0x42316e){const _0x41d5e2=_0x2e596f;let _0x128be5=_0x28a624(_0x90af4,_0x4c29bf,_0x1810c0),_0x5c1dd3=[];for(let _0x75aed9 of _0x4c29bf){let _0x3eb8c0=_0x128be5[_0x41d5e2(0x2c2)][_0x41d5e2(0x3ae)](_0x75aed9[_0x41d5e2(0x2ed)]),_0x5a8e12=_0x42316e(_0x75aed9);!_0x3eb8c0||!_0x5a8e12||_0x5c1dd3[_0x41d5e2(0x2ff)]({'targetChartId':_0x3eb8c0,'source':_0x5a8e12});}return _0x5c1dd3;}let Hi=class extends _0x119f54{constructor(_0x8e7c4a,_0x292b4a,_0x53da85,_0x7a9140){const _0x4313ed=_0x2e596f;super(),this['_univerInstanceService']=_0x8e7c4a,this[_0x4313ed(0x2cf)]=_0x292b4a,this[_0x4313ed(0x361)]=_0x53da85,this[_0x4313ed(0x1da)]=_0x7a9140,this['_initSheetChange']();}[_0x2e596f(0x298)](){const _0x118a3c=_0x2e596f;this[_0x118a3c(0x199)](this[_0x118a3c(0x2cf)][_0x118a3c(0x383)]({'getMutations':_0x4c5a70=>{const _0x38336c=_0x118a3c;if(_0x4c5a70['id']===_0xc6c2a3['id']){let _0x1e7fc1=_0x3391c1(this['_univerInstanceService'],_0x4c5a70[_0x38336c(0x1a5)]);if(!_0x1e7fc1)return{'redos':[],'undos':[]};let {unitId:_0x5ce749,subUnitId:_0x2c6166}=_0x1e7fc1,_0x1b5ea7=this['_sheetDrawingService'][_0x38336c(0x2a6)](_0x5ce749,_0x2c6166),_0x46dd9b=Object[_0x38336c(0x2b2)](_0x1b5ea7)[_0x38336c(0x3fa)](_0xec1432=>_0xec1432['drawingType']===_0x170c77[_0x38336c(0x30b)]);if(_0x46dd9b[_0x38336c(0x211)]===0x0)return{'redos':[],'undos':[]};let _0x1476fb=[],_0xd0761b=[];for(let _0x4876b5=0x0;_0x4876b5<_0x46dd9b[_0x38336c(0x211)];_0x4876b5++){let _0xdebb22=_0x46dd9b[_0x4876b5],_0x50a6ac=this[_0x38336c(0x1da)]['getChartModel'](_0xdebb22[_0x38336c(0x2ed)]);if(!_0x50a6ac)continue;let _0x3ffa77=_0x50a6ac[_0x38336c(0x393)][_0x38336c(0x314)](),{chartType:_0x1b93b2,context:_0x336d3e,style:_0x300136,dataAggregation:_0x100f7c}=_0x50a6ac[_0x38336c(0x3d5)]();_0x1476fb[_0x38336c(0x2ff)]({'id':_0x3ce90c['id'],'params':{'unitId':_0x5ce749,'subUnitId':_0x2c6166,'chartId':_0xdebb22['drawingId']}}),_0xd0761b[_0x38336c(0x2ff)]({'id':_0x130a2a['id'],'params':{'unitId':_0x5ce749,'subUnitId':_0x2c6166,'chartId':_0xdebb22[_0x38336c(0x2ed)],'chartType':_0x1b93b2,..._0x3da013(_0x3ffa77),'context':_0x336d3e,'style':_0x300136,'dataAggregation':_0x100f7c}});}return{'redos':_0x1476fb,'undos':_0xd0761b};}else{if(_0x4c5a70['id']===_0x51d576['id']){let {unitId:_0xb3cd15,subUnitId:_0x177516,targetSubUnitId:_0x56e11f,copyContext:_0x1a409f}=_0x4c5a70[_0x38336c(0x1a5)];if(!_0xb3cd15||!_0x177516||!_0x56e11f)return{'redos':[],'undos':[]};let _0x334d16=this[_0x38336c(0x361)]['getDrawingData'](_0xb3cd15,_0x177516),_0xf4c31c=Object[_0x38336c(0x2b2)](_0x334d16)[_0x38336c(0x3fa)](_0x4ad558=>_0x4ad558[_0x38336c(0x2ef)]===_0x170c77[_0x38336c(0x30b)]);if(_0xf4c31c['length']===0x0)return{'redos':[],'undos':[]};let _0x38e714=Vi(_0x1a409f,_0xf4c31c,{'unitId':_0xb3cd15,'sourceSubUnitId':_0x177516,'targetSubUnitId':_0x56e11f},_0x29c087=>{const _0x4fb0cf=_0x38336c;let _0x50e059=this[_0x4fb0cf(0x1da)][_0x4fb0cf(0x304)](_0x29c087[_0x4fb0cf(0x2ed)]);if(!_0x50e059)return;let _0xe610b5=_0x50e059[_0x4fb0cf(0x393)][_0x4fb0cf(0x314)](),_0x2e8bca=Array['isArray'](_0xe610b5)?_0xe610b5['map'](_0x27792f=>({..._0x27792f,..._0x27792f[_0x4fb0cf(0x3e4)]?{'header':{..._0x27792f[_0x4fb0cf(0x3e4)],'subUnitId':_0x56e11f}}:{},'range':{..._0x27792f[_0x4fb0cf(0x3da)],'subUnitId':_0x56e11f}})):{..._0xe610b5,'rangeInfo':{..._0xe610b5[_0x4fb0cf(0x286)],'subUnitId':_0x56e11f}},{chartType:_0x1ac986,context:_0x481c77,style:_0x188343,dataAggregation:_0x2114ce}=_0x50e059['serialize']();return{'rangeInfo':_0x2e8bca,'chartType':_0x1ac986,'context':_0x481c77,'style':_0x188343,'dataAggregation':_0x2114ce};}),_0x156c19=[],_0x4706bc=[];for(let {targetChartId:_0x545f02,source:_0x513575}of _0x38e714){let {rangeInfo:_0x3e50a4,chartType:_0x3c7598,context:_0x5090f7,style:_0x3f1988,dataAggregation:_0x27f7b3}=_0x513575;_0x156c19[_0x38336c(0x2ff)]({'id':_0x130a2a['id'],'params':{'unitId':_0xb3cd15,'subUnitId':_0x56e11f,'chartId':_0x545f02,'chartType':_0x3c7598,..._0x3da013(_0x3e50a4),'context':_0x5090f7,'style':_0x3f1988,'dataAggregation':_0x27f7b3}}),_0x4706bc[_0x38336c(0x2ff)]({'id':_0x3ce90c['id'],'params':{'unitId':_0xb3cd15,'subUnitId':_0x56e11f,'chartId':_0x545f02}});}return{'redos':_0x156c19,'undos':_0x4706bc};}}return{'redos':[],'undos':[]};}}));}};Hi=J([q(0x0,_0x12d10b(_0x24beef)),q(0x1,_0x12d10b(_0x41d15e)),q(0x2,_0x12d10b(_0x4ed76e)),q(0x3,_0x12d10b(_0x507ffa))],Hi);let Ui=class extends _0x119f54{constructor(_0x8da385,_0x4046fb){const _0x1573b4=_0x2e596f;super(),this[_0x1573b4(0x23f)]=_0x8da385,this[_0x1573b4(0x1ca)]=_0x4046fb,this[_0x1573b4(0x1ba)](),this[_0x1573b4(0x39a)]();}[_0x2e596f(0x1ba)](){const _0x40c80b=_0x2e596f;this[_0x40c80b(0x199)](this['_iconManager']['register']({'PenIcon':_0x4a2cd3}));}[_0x2e596f(0x39a)](){[[_i,gi]]['forEach'](([_0x237a4c,_0x2c19d9])=>{const _0x677d1b=_0x4926;this['disposeWithMe'](this[_0x677d1b(0x23f)]['register'](_0x237a4c,_0x2c19d9));});}};Ui=J([q(0x0,_0x12d10b(_0x24bd5c)),q(0x1,_0x12d10b(_0x4a1260))],Ui);let Wi=class extends _0x119f54{constructor(_0x31738b,_0x5c2508,_0x5e4145,_0x4f8ce4){const _0x1a20ec=_0x2e596f;super(),this['_sheetSkeletonService']=_0x31738b,this[_0x1a20ec(0x396)]=_0x5c2508,this[_0x1a20ec(0x361)]=_0x5e4145,this[_0x1a20ec(0x1da)]=_0x4f8ce4,W(this,_0x1a20ec(0x26a),void 0x0),this[_0x1a20ec(0x1e7)]();}get[_0x2e596f(0x36a)](){const _0x32b4a5=_0x2e596f;return this['_sheetDrawingService'][_0x32b4a5(0x31a)]();}[_0x2e596f(0x1e7)](){const _0x15c33f=_0x2e596f;this[_0x15c33f(0x199)](this[_0x15c33f(0x396)]['addClipboardHook']({'id':_0x16e896,'onBeforeCopy':(_0x23ea68,_0x6340c7,_0x59c42a,_0x2d75ae)=>{const _0x420d75=_0x15c33f;this['_copyInfo']=null;let _0x18beac=this[_0x420d75(0x36a)];if(_0x18beac[_0x420d75(0x211)]){let _0x1870f3=_0x18beac[_0x420d75(0x3fa)](_0x359027=>_0x359027[_0x420d75(0x2ef)]===_0x170c77[_0x420d75(0x30b)]);if(_0x1870f3['length']===0x0)return;this[_0x420d75(0x26a)]={'unitId':_0x23ea68,'subUnitId':_0x6340c7,'copyType':_0x2d75ae,'drawings':_0x1870f3};}else this[_0x420d75(0x32f)](_0x23ea68,_0x6340c7,_0x59c42a,_0x2d75ae);},'onPasteCells':(_0x144839,_0x26065f,_0x5bdbf3,_0x10177e)=>{const _0x53faab=_0x15c33f;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x360677}=_0x10177e;return _0x360677===_0x2224fe[_0x53faab(0x409)]?this[_0x53faab(0x294)](_0x26065f,this[_0x53faab(0x26a)][_0x53faab(0x18b)]===_0x335f99[_0x53faab(0x31d)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x47399b=>this[_0x15c33f(0x26a)]?this[_0x15c33f(0x294)](_0x47399b,this[_0x15c33f(0x26a)][_0x15c33f(0x18b)]===_0x335f99[_0x15c33f(0x31d)]):{'redos':[],'undos':[]}}));}[_0x2e596f(0x32f)](_0x291822,_0x553eb3,_0x2b2662,_0x3ad534){const _0x244c1c=_0x2e596f;let _0x165236=this[_0x244c1c(0x351)][_0x244c1c(0x35a)](_0x291822,_0x553eb3);if(!_0x165236)return;let _0x3efc5c=_0x11ff37(_0x165236,_0x2b2662);if(!_0x3efc5c)return;let {startX:_0x55a3fa,endX:_0xc3e7b6,startY:_0x29a643,endY:_0x16d608}=_0x3efc5c,_0x377144=this[_0x244c1c(0x361)][_0x244c1c(0x2a6)](_0x291822,_0x553eb3),_0x2a72bf=this[_0x244c1c(0x36a)]['slice']();for(let [_0x307ab1,_0x47a2e2]of Object['entries'](_0x377144)){if(_0x47a2e2['drawingType']!==_0x170c77[_0x244c1c(0x30b)])continue;let {transform:_0x2f67d2}=_0x47a2e2;if(!_0x2f67d2)continue;let {left:_0x5f1800=0x0,top:_0x2fa816=0x0,width:_0x122340=0x0,height:_0x3f83dc=0x0}=_0x2f67d2;_0x55a3fa<=_0x5f1800&&_0xc3e7b6>=_0x5f1800+_0x122340&&_0x29a643<=_0x2fa816&&_0x16d608>=_0x2fa816+_0x3f83dc&&_0x2a72bf[_0x244c1c(0x2ff)](_0x47a2e2);}_0x2a72bf[_0x244c1c(0x211)]>0x0&&(this[_0x244c1c(0x26a)]={'unitId':_0x291822,'subUnitId':_0x553eb3,'copyType':_0x3ad534,'copyRange':_0x2b2662,'drawings':_0x2a72bf});}['_generatePasteMutations'](_0x51eaec,_0x3e7222){const _0x48aa42=_0x2e596f;let {unitId:_0x358307,subUnitId:_0x2de717,range:_0x3306f8}=_0x51eaec,_0x3dcf10=this[_0x48aa42(0x351)][_0x48aa42(0x35a)](_0x358307,_0x2de717);if(!_0x3dcf10)return{'redos':[],'undos':[]};let _0x21f9e1=_0x4e4ce1(_0x3306f8),{unitId:_0xad6be0,subUnitId:_0x922aca,copyRange:_0xf62cd0,drawings:_0x22c54c}=this[_0x48aa42(0x26a)],_0x48c265=this[_0x48aa42(0x351)][_0x48aa42(0x35a)](_0xad6be0,_0x922aca);if(!_0x48c265)return{'redos':[],'undos':[]};let _0x43af70=[],_0x30e58b=[];for(let _0x5e7b51 of _0x22c54c){let {drawingId:_0x2e9da6,transform:_0x1626da,sheetTransform:_0x35072c}=_0x5e7b51,_0x2ab2a7=this[_0x48aa42(0x1da)][_0x48aa42(0x304)](_0x2e9da6);if(!_0x2ab2a7||!_0x1626da||!_0x35072c)continue;let _0x2adb3f=this[_0x48aa42(0x18e)]({'transform':_0x1626da,'sheetTransform':_0x35072c},{'skeleton':_0x48c265,'range':_0xf62cd0},{'skeleton':_0x3dcf10,'range':_0x21f9e1});if(_0x3e7222){let {redos:_0x264680,undos:_0x5484d4}=this[_0x48aa42(0x1b1)]({'fromUnitId':_0xad6be0,'fromSubUnitId':_0x922aca,'toUnitId':_0x358307,'toSubUnitId':_0x2de717,'drawing':_0x5e7b51,'newTransforms':_0x2adb3f},_0x2ab2a7);_0x43af70[_0x48aa42(0x2ff)](..._0x264680),_0x30e58b[_0x48aa42(0x2ff)](..._0x5484d4);continue;}let {redos:_0x4ce33f,undos:_0x2466ff}=this[_0x48aa42(0x29f)]({'toUnitId':_0x358307,'toSubUnitId':_0x2de717,'drawing':_0x5e7b51,'newTransforms':_0x2adb3f},_0x2ab2a7);_0x43af70[_0x48aa42(0x2ff)](..._0x4ce33f),_0x30e58b[_0x48aa42(0x2ff)](..._0x2466ff);}return{'redos':_0x43af70,'undos':_0x30e58b};}[_0x2e596f(0x1b1)](_0x47932a,_0x4adb28){const _0x3d69c6=_0x2e596f;let {fromUnitId:_0x95d219,fromSubUnitId:_0x432fc5,toUnitId:_0x41487a,toSubUnitId:_0x3e2e8d,drawing:_0x421896,newTransforms:_0x35b9b6}=_0x47932a,_0x23431c={..._0x421896,'unitId':_0x41487a,'subUnitId':_0x3e2e8d,'transform':_0x35b9b6[_0x3d69c6(0x287)],'sheetTransform':_0x35b9b6[_0x3d69c6(0x1b0)]};if(_0x41487a===_0x95d219&&_0x3e2e8d===_0x432fc5){let {redo:_0x14931b,undo:_0x49b112,objects:_0x45ed20}=this[_0x3d69c6(0x361)][_0x3d69c6(0x253)]([_0x23431c]);return{'redos':[{'id':_0x4d5f02['id'],'params':{'unitId':_0x41487a,'subUnitId':_0x3e2e8d,'type':_0x2dd28f[_0x3d69c6(0x182)],'op':_0x14931b,'objects':_0x45ed20}}],'undos':[{'id':_0x4d5f02['id'],'params':{'unitId':_0x41487a,'subUnitId':_0x3e2e8d,'type':_0x2dd28f[_0x3d69c6(0x182)],'op':_0x49b112,'objects':_0x45ed20}}]};}else{let _0x6dc3da=this[_0x3d69c6(0x361)]['getBatchRemoveOp']([_0x421896]),_0x1e438b=this[_0x3d69c6(0x361)][_0x3d69c6(0x3c8)]([_0x23431c]),_0x457956=_0x4adb28[_0x3d69c6(0x393)]['getRangeInfo'](),{chartType:_0x59fcdd,context:_0x30770d,style:_0x51c0d2,dataAggregation:_0x4fa2f7}=_0x4adb28['serialize']();return{'redos':[{'id':_0x4d5f02['id'],'params':{'unitId':_0x95d219,'subUnitId':_0x432fc5,'type':_0x2dd28f[_0x3d69c6(0x1fa)],'op':_0x6dc3da[_0x3d69c6(0x330)],'objects':_0x6dc3da['objects']}},{'id':_0x3ce90c['id'],'params':{'unitId':_0x95d219,'subUnitId':_0x432fc5,'chartId':_0x421896['drawingId']}},{'id':_0x4d5f02['id'],'params':{'unitId':_0x41487a,'subUnitId':_0x3e2e8d,'type':_0x2dd28f[_0x3d69c6(0x194)],'op':_0x1e438b['redo'],'objects':_0x1e438b[_0x3d69c6(0x2c6)]}},{'id':_0x130a2a['id'],'params':{'unitId':_0x41487a,'subUnitId':_0x3e2e8d,'chartId':_0x421896[_0x3d69c6(0x2ed)],'chartType':_0x59fcdd,..._0x3da013(_0x457956),'context':_0x30770d,'style':_0x51c0d2,'dataAggregation':_0x4fa2f7}}],'undos':[{'id':_0x4d5f02['id'],'params':{'unitId':_0x95d219,'subUnitId':_0x432fc5,'type':_0x2dd28f['INSERT'],'op':_0x6dc3da[_0x3d69c6(0x29a)],'objects':_0x6dc3da['objects']}},{'id':_0x130a2a['id'],'params':{'unitId':_0x95d219,'subUnitId':_0x432fc5,'chartId':_0x421896['drawingId'],'chartType':_0x59fcdd,..._0x3da013(_0x457956),'context':_0x30770d,'style':_0x51c0d2,'dataAggregation':_0x4fa2f7}},{'id':_0x4d5f02['id'],'params':{'unitId':_0x41487a,'subUnitId':_0x3e2e8d,'type':_0x2dd28f[_0x3d69c6(0x1fa)],'op':_0x1e438b['undo'],'objects':_0x1e438b[_0x3d69c6(0x2c6)]}},{'id':_0x3ce90c['id'],'params':{'unitId':_0x41487a,'subUnitId':_0x3e2e8d,'chartId':_0x421896[_0x3d69c6(0x2ed)]}}]};}}['_generateCopyPasteMutations'](_0x2a0161,_0x579531){const _0x298b4b=_0x2e596f;let {toUnitId:_0x584a04,toSubUnitId:_0x26893c,drawing:_0x3c3a46,newTransforms:_0x4c85fe}=_0x2a0161,_0x5428ad=_0x2647cf(),_0x36033c={..._0x3c3a46,'unitId':_0x584a04,'subUnitId':_0x26893c,'drawingId':_0x5428ad,'transform':_0x4c85fe[_0x298b4b(0x287)],'sheetTransform':_0x4c85fe[_0x298b4b(0x1b0)]},{redo:_0x1260d1,undo:_0x1776a2,objects:_0x1f3415}=this[_0x298b4b(0x361)]['getBatchAddOp']([_0x36033c]),_0x120ebd=_0x579531[_0x298b4b(0x393)][_0x298b4b(0x314)](),{chartType:_0x30e09b,context:_0x4655cf,style:_0x50b1c1,dataAggregation:_0x22fb36}=_0x579531['serialize']();return{'redos':[{'id':_0x4d5f02['id'],'params':{'unitId':_0x584a04,'subUnitId':_0x26893c,'type':_0x2dd28f['INSERT'],'op':_0x1260d1,'objects':_0x1f3415}},{'id':_0x130a2a['id'],'params':{'unitId':_0x584a04,'subUnitId':_0x26893c,'chartId':_0x5428ad,'chartType':_0x30e09b,..._0x3da013(_0x120ebd),'context':_0x4655cf,'style':_0x50b1c1,'dataAggregation':_0x22fb36}}],'undos':[{'id':_0x4d5f02['id'],'params':{'unitId':_0x584a04,'subUnitId':_0x26893c,'type':_0x2dd28f[_0x298b4b(0x1fa)],'op':_0x1776a2,'objects':_0x1f3415}},{'id':_0x3ce90c['id'],'params':{'unitId':_0x584a04,'subUnitId':_0x26893c,'chartId':_0x5428ad}}]};}['_updateTransform'](_0x29395b,_0x487d7f,_0x2f6800){const _0x1c765f=_0x2e596f;let {range:_0xcb34df,skeleton:_0x15a133}=_0x487d7f,{range:_0x46abb7,skeleton:_0x4e9c43}=_0x2f6800,{transform:_0x1315cc,sheetTransform:_0x299c56}=_0x29395b,_0x499acb={..._0x1315cc};if(_0xcb34df){let _0x108373=_0x11ff37(_0x15a133,_0xcb34df),_0x271641=_0x11ff37(_0x4e9c43,_0x46abb7);if(_0x108373&&_0x271641){let _0x3fc3da=_0x271641[_0x1c765f(0x3ac)]-_0x108373['startX'],_0x348985=_0x271641[_0x1c765f(0x3a4)]-_0x108373['startY'];_0x499acb[_0x1c765f(0x3a6)]=(_0x499acb[_0x1c765f(0x3a6)]??0x0)+_0x3fc3da,_0x499acb['top']=(_0x499acb[_0x1c765f(0x338)]??0x0)+_0x348985;}}else{let _0x494214=_0x11ff37(_0x4e9c43,_0x46abb7);_0x499acb[_0x1c765f(0x3a6)]=_0x494214==null?void 0x0:_0x494214['startX'],_0x499acb[_0x1c765f(0x338)]=_0x494214==null?void 0x0:_0x494214['startY'];}return{'transform':_0x499acb,'sheetTransform':_0x325c7a(_0x499acb,_0x4e9c43)??_0x299c56};}};Wi=J([q(0x0,_0x12d10b(_0x464840)),q(0x1,_0x12d10b(_0x9e1cc3)),q(0x2,_0x12d10b(_0x4ed76e)),q(0x3,_0x12d10b(_0x507ffa))],Wi);let Gi=class extends _0x119f54{constructor(_0x98ce92,_0x5a2dda,_0x4c63d7,_0x6b7dd5){const _0x10c76d=_0x2e596f;super(),this[_0x10c76d(0x184)]=_0x98ce92,this[_0x10c76d(0x3c5)]=_0x5a2dda,this[_0x10c76d(0x2a4)]=_0x4c63d7,this['_sheetsChartService']=_0x6b7dd5,this[_0x10c76d(0x402)]();}[_0x2e596f(0x402)](){const _0x399538=_0x2e596f;this[_0x399538(0x199)](this['_commandService'][_0x399538(0x37b)](_0x2a9524=>{const _0x463625=_0x399538;let _0xadcb4e,_0x52d168;if(_0x2a9524['id']===_0x4488a9['id']){let _0x4d65a8=_0x2a9524[_0x463625(0x1a5)];_0xadcb4e=_0x4d65a8[_0x463625(0x226)],_0x52d168=_0x4d65a8[_0x463625(0x370)];}else{if(_0x2a9524['id']===_0xc54c6['id']||_0x2a9524['id']===_0x56a07d['id']){let _0x3f6e64=_0x2a9524[_0x463625(0x1a5)];_0xadcb4e=_0x3f6e64[_0x463625(0x226)],_0x52d168=this[_0x463625(0x38a)][_0x463625(0x1d6)](_0x3f6e64[_0x463625(0x226)],_0x3f6e64[_0x463625(0x2a0)]);}}!_0xadcb4e||!_0x52d168||this[_0x463625(0x2a4)][_0x463625(0x312)]({'workbookTypes':[_0x1d1023],'worksheetTypes':[_0x1bf9d3]},_0xadcb4e,_0x52d168)||this[_0x463625(0x2a4)][_0x463625(0x213)](this['_localeService']['t'](_0x463625(0x216)));}));}};Gi=J([q(0x0,_0x12d10b(_0x345ee8)),q(0x1,_0x12d10b(_0x1c8aa5)),q(0x2,_0x12d10b(_0x44c591)),q(0x3,_0x12d10b(_0xa0b5c7))],Gi);let Ki=class extends _0x119f54{constructor(_0x1d6a4e,_0x39874a){const _0x3a304b=_0x2e596f;super(),this[_0x3a304b(0x2f9)]=_0x39874a,this[_0x3a304b(0x199)](_0x1d6a4e[_0x3a304b(0x35d)](this));}['supports'](_0x22f65f){const _0x50ee87=_0x2e596f;return _0x50ee87(0x226)in _0x22f65f&&'subUnitId'in _0x22f65f;}[_0x2e596f(0x3bc)](_0x556fc8,_0x86dbd){const _0x190414=_0x2e596f;return this[_0x190414(0x2f9)]['exportImage'](_0x556fc8[_0x190414(0x2b4)](),_0x86dbd);}};Ki=J([q(0x0,_0x12d10b(_0xed83df)),q(0x1,_0x12d10b(X))],Ki);let $=class extends _0x4efaff{constructor(_0x3fd15b=gr,_0x50b97e,_0x39fba3,_0x24871e){const _0x36145e=_0x2e596f;super(),this[_0x36145e(0x3a2)]=_0x3fd15b,this[_0x36145e(0x2d4)]=_0x50b97e,this[_0x36145e(0x3ef)]=_0x39fba3,this[_0x36145e(0x184)]=_0x24871e,W(this,_0x36145e(0x241),void 0x0);let {..._0x1a5b64}=_0x21371b({},gr,this[_0x36145e(0x3a2)]);this[_0x36145e(0x241)]=_0x1a5b64,this['_configService'][_0x36145e(0x353)](hr,_0x1a5b64),this['_initCommands']();}[_0x2e596f(0x360)](){const _0x159039=_0x2e596f;this[_0x159039(0x2d4)]['add']([Ui]),this[_0x159039(0x2d4)][_0x159039(0x3ae)](Ui);let _0x210152=this['_injector'],_0x1f7b7f=[[Y,{'useClass':ri}],[ni,{'useClass':ti}],[Jr],[X],[Ki],[Q],[zi],[Bi],[Wi],[Hi],[Gi]],_0x258ca2=[[Q],[Bi],[zi],[Ki],[Y],[Wi],[Hi],[Gi]];this['_resolvedConfig']['enableChartElementFloatMenu']&&(_0x1f7b7f[_0x159039(0x2ff)]([Ri]),_0x258ca2['push']([Ri])),_0x1f7b7f[_0x159039(0x399)](_0x2b7336=>_0x210152[_0x159039(0x30c)](_0x2b7336)),_0x215680(this[_0x159039(0x2d4)],_0x258ca2);}['onRendered'](){const _0x35cafc=_0x2e596f;var _0x337b46;(_0x337b46=this[_0x35cafc(0x2d4)][_0x35cafc(0x3ae)](Q))==null||_0x337b46[_0x35cafc(0x1aa)]();}[_0x2e596f(0x1dd)](){const _0x1904bf=_0x2e596f;[Cr,yr,br,xr,Sr,V,_r][_0x1904bf(0x399)](_0x573e3f=>this[_0x1904bf(0x199)](this[_0x1904bf(0x184)]['registerCommand'](_0x573e3f)));}};W($,_0x2e596f(0x34e),_0x3f0a52[_0x2e596f(0x295)]),W($,_0x2e596f(0x31b),_0x2e596f(0x358)),W($,_0x2e596f(0x230),xi),W($,_0x2e596f(0x36f),Si),$=J([_0x364b5c(_0xdfcdf7,_0x284986,_0x2df3f8,_0x6f0551,_0x168322,_0x1e799b,_0x1eb87a,_0x5e791d,_0x2795c6),q(0x1,_0x12d10b(_0x4b0ab7)),q(0x2,_0x4fe135),q(0x3,_0x345ee8)],$);export{Y as ISheetsChartUIService,hr as SHEETS_CHART_UI_PLUGIN_CONFIG_KEY,Q as SheetsChartUIController,Ir as SheetsChartUIMenuSchema,ri as SheetsChartUIService,$ as UniverSheetsChartUIPlugin};
|