@univerjs-pro/sheets-chart-ui 1.0.3 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/types/locale/en-US.d.ts +11 -0
  62. package/lib/types/services/chart-geometry-subscription.d.ts +14 -0
  63. package/lib/types/services/chart-render.service.d.ts +2 -2
  64. package/lib/types/services/sheet-chart-host.d.ts +4 -1
  65. package/lib/types/services/sheet-chart-pointer-events.d.ts +16 -0
  66. package/lib/types/services/sheets-chart-host-provider.service.d.ts +1 -0
  67. package/lib/umd/index.js +1 -1
  68. package/lib/umd/locale/ar-SA.js +1 -1
  69. package/lib/umd/locale/ca-ES.js +1 -1
  70. package/lib/umd/locale/de-DE.js +1 -1
  71. package/lib/umd/locale/en-US.js +1 -1
  72. package/lib/umd/locale/es-ES.js +1 -1
  73. package/lib/umd/locale/fa-IR.js +1 -1
  74. package/lib/umd/locale/fr-FR.js +1 -1
  75. package/lib/umd/locale/id-ID.js +1 -1
  76. package/lib/umd/locale/it-IT.js +1 -1
  77. package/lib/umd/locale/ja-JP.js +1 -1
  78. package/lib/umd/locale/ko-KR.js +1 -1
  79. package/lib/umd/locale/pl-PL.js +1 -1
  80. package/lib/umd/locale/pt-BR.js +1 -1
  81. package/lib/umd/locale/ru-RU.js +1 -1
  82. package/lib/umd/locale/sk-SK.js +1 -1
  83. package/lib/umd/locale/vi-VN.js +1 -1
  84. package/lib/umd/locale/zh-CN.js +1 -1
  85. package/lib/umd/locale/zh-HK.js +1 -1
  86. package/lib/umd/locale/zh-TW.js +1 -1
  87. package/package.json +21 -21
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x58e4e4=_0x29f5;(function(_0x346cfa,_0x20d307){const _0x3829c2=_0x29f5,_0x153f00=_0x346cfa();while(!![]){try{const _0x19f0f1=-parseInt(_0x3829c2(0x32e))/0x1+-parseInt(_0x3829c2(0x117))/0x2*(-parseInt(_0x3829c2(0x291))/0x3)+-parseInt(_0x3829c2(0x382))/0x4+-parseInt(_0x3829c2(0x36e))/0x5*(parseInt(_0x3829c2(0x229))/0x6)+-parseInt(_0x3829c2(0x24c))/0x7*(-parseInt(_0x3829c2(0x1bc))/0x8)+parseInt(_0x3829c2(0x2b3))/0x9*(parseInt(_0x3829c2(0x3b6))/0xa)+-parseInt(_0x3829c2(0x27e))/0xb;if(_0x19f0f1===_0x20d307)break;else _0x153f00['push'](_0x153f00['shift']());}catch(_0x2681fb){_0x153f00['push'](_0x153f00['shift']());}}}(_0x3cf9,0xce2d9));import{CommandType as _0x19398e,DependentOn as _0x39613b,Disposable as _0x7b52dc,DisposableCollection as _0x2329d0,DrawingTypeEnum as _0x43df04,FOCUSING_COMMON_DRAWINGS as _0x654e75,FOCUSING_PANEL_EDITOR as _0x4b847,ICommandService as _0x10f119,IConfigService as _0x58cb4f,IContextService as _0x2eb5c4,IUniverInstanceService as _0x5b54fc,Inject as _0x569e33,Injector as _0x56051b,LocaleService as _0x37903c,Plugin as _0x5bf473,ThemeService as _0x3d87f5,UniverInstanceType as _0xaf509f,createIdentifier as _0x2fa213,debounce as _0x1569e2,generateRandomId as _0x5120c1,isValidRange as _0xbde51a,merge as _0x11a014,numberToABC as _0x47d2a3,toDisposable as _0x43ce57,touchDependencies as _0x1942f9}from'@univerjs/core';import{ChartModelService as _0x1e33a9,ChartUpdateConfigCommand as _0x22f7cc,ChartUpdateConfigMutation as _0x364aee,ChartUpdateSourceCommand as _0x112901,InsertChartCommand as _0x467e05,InsertSheetsChartMutation as _0x550a74,RemoveSheetsChartMutation as _0x13af68,SHEETS_CHART_PLUGIN_CONFIG_KEY as _0x2b0dc7,SHEETS_CHART_PLUGIN_NAME as _0x1a849f,SheetChartConfigAdapter as _0x4cd08c,SheetsChartService as _0x5b7264,UniverSheetsChartPlugin as _0x67f924,getAllowedChartTypes as _0x1fd812,toInsertChartMutationSource as _0x589193}from'@univerjs-pro/sheets-chart';import{IDrawingManagerService as _0x1e7a38,UniverDrawingPlugin as _0x868a1c,getDrawingShapeKeyByDrawingSearch as _0x14acce,getOrCreateDrawingCopyPlan as _0x4ce057}from'@univerjs/drawing';import{DrawingApplyType as _0x398764,ISheetDrawingService as _0xcf65a5,RemoveSheetDrawingCommand as _0x52fe4a,SetDrawingApplyMutation as _0x189847,UniverSheetsDrawingPlugin as _0x4288b5,transformToDrawingPosition as _0x53cf80}from'@univerjs/sheets-drawing';import{SHEET_CHART_RENDER_OBJECT_CONFIG as _0x38aa53,SheetCanvasFloatDomManagerService as _0x351035,SheetDrawingHitTestService as _0x9d629b,UniverSheetsDrawingMobileUIPlugin as _0x4484cc,UniverSheetsDrawingUIPlugin as _0x5941b2}from'@univerjs/sheets-drawing-ui';import{COPY_TYPE as _0x5d9d74,ISheetClipboardService as _0x246f06,PREDEFINED_HOOK_NAME as _0x105d29,SheetCanvasPopManagerService as _0x4b4fef,SheetCopyCommand as _0x172363,SheetPrintInterceptorService as _0x38c41d,SheetSkeletonManagerService as _0x4bbaee,UniverSheetsMobileUIPlugin as _0x27b4b2,UniverSheetsUIPlugin as _0x2fb4ea,deriveStateFromActiveSheet$ as _0x2eadaf,getCurrentRangeDisable$ as _0x59d29f}from'@univerjs/sheets-ui';import{CanvasFloatDomService as _0x7e60e8,ComponentManager as _0x122d09,ContextMenuGroup as _0x1d6826,ContextMenuPosition as _0x587e60,IMenuManagerService as _0x26ea5c,ISidebarService as _0x14cdc6,IconManager as _0x501d02,KeyCode as _0x33a6fb,MenuItemType as _0x40ad65,NativeTextEditorShortcutBehavior as _0xb02455,RibbonInsertGroup as _0x134022,UniverMobileUIPlugin as _0x2c7e38,getMenuHiddenObservable as _0x1fa6a2,useDependency as _0x341106,useObservable as _0x169faa}from'@univerjs/ui';import{BehaviorSubject as _0x251b31,Observable as _0x382ded,Subject as _0x456331,combineLatest as _0x485af5,combineLatestWith as _0x53855c,debounceTime as _0xd01ebe,distinctUntilChanged as _0x23f42d,filter as _0x24a54a,fromEvent as _0x1c4ba6,map as _0x587f1,merge as _0x3f8f2e,pairwise as _0x76194f,skip as _0x587be2,startWith as _0x4f483a,switchMap as _0x31738a,take as _0x315267,throttleTime as _0xc9a711,withLatestFrom as _0x3fe11d}from'rxjs';import{CHART_ELEMENT_FLOAT_MENU_COMPONENT as _0x99cfd,CHART_HOST_BORDER_RADIUS as _0x5af627,CHART_TYPE_CATALOG as _0x85502f,ChartAxisSection as _0x28695d,ChartDomFrame as _0x1af803,ChartEditBlockTitle as _0x5bbce0,ChartEditPanelSection as _0xacfab2,ChartEditPanelTab as _0x305e77,ChartEditorCapability as _0x1146fb,ChartEditorProvider as _0x1673a5,ChartEditorTabs as _0x60d2ef,ChartElementFloatMenuAdapterRegistry as _0x1995df,ChartFrameContentMode as _0x5ddbd5,ChartFrameLayout as _0x16653f,ChartFunnelStyleSection as _0x2b6c2e,ChartGridlinesAndTicksSection as _0x6840bc,ChartHeatmapStyleSection as _0x464207,ChartHostAdapter as _0x47dff2,ChartImageExportService as _0x105d73,ChartIndicatorLineSection as _0x1be756,ChartLegendSection as _0x399936,ChartLineAndAreaSection as _0x5cce89,ChartNumberFormatAtom as _0x54c9b4,ChartParetoSeriesSection as _0x1e47fa,ChartPieStyleSection as _0x5ca595,ChartRadarStyleSection as _0x49accc,ChartRelationStyleSection as _0x17770f,ChartSectionAccordion as _0x3e0e80,ChartSectionAccordionContent as _0x52594e,ChartSectionAccordionItem as _0x33d6de,ChartSectionAccordionTrigger as _0x5043ee,ChartSeriesSection as _0x1e64ca,ChartSetupPanel as _0x239fe1,ChartStyleSection as _0x35f468,ChartTitlesSection as _0x38bcb8,ChartTrendlineSection as _0x322608,ChartTypeSpecificStyleSection as _0x21b296,ChartUIService as _0x1eef01,ChartViewStateRegistry as _0x7cd67c,ChartWaterfallStyleSection as _0x41a5e3,ChartWordCloudStyleSection as _0x318410,DEFAULT_CHART_AXIS_VALUES as _0x473cc5,DEFAULT_CHART_FUNNEL_VALUES as _0x3c4c8b,DEFAULT_CHART_HEATMAP_VALUES as _0x1cd218,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x1f1171,DEFAULT_CHART_LEGEND_VALUES as _0x35dc7a,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x486b7d,DEFAULT_CHART_PARETO_VALUES as _0x3d84e3,DEFAULT_CHART_PIE_VALUES as _0x5881e2,DEFAULT_CHART_RADAR_VALUES as _0x5704fa,DEFAULT_CHART_RELATION_VALUES as _0x10b920,DEFAULT_CHART_SERIES_VALUES as _0x5bf23e,DEFAULT_CHART_STYLE_VALUES as _0x1cd657,DEFAULT_CHART_TITLE_VALUES as _0x2a6745,DEFAULT_CHART_TRENDLINE_VALUES as _0x57534a,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x3dd03e,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x154301,MobileChartEditorProvider as _0x441e57,UniverChartMobileUIPlugin as _0x29b95c,UniverChartUIPlugin as _0x690a4d,buildChartTypeSelectOptions as _0x99c448,chartTypeSupportsCapability as _0x24b610,chartTypeSupportsLineAndAreaStyle as _0x1c7739,createChartElementFloatMenuAdapter as _0xb3abd,resolveChartCreationIntent as _0x924dc9,resolveChartEditPanelRoute as _0xb7f32b,resolveChartElementSelection as _0x10d2ee,useChartEditorChartType as _0x33d88d,useChartEditorHasRightAxis as _0x3503bf}from'@univerjs-pro/chart-ui';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x4c1e3b,ChartImageExportFormat as _0x3f3eb8,ChartImageSourceType as _0x385294,ChartRenderMode as _0x3f6e51,ChartSourceHeaderTitleType as _0x4265c5,ChartThemeService as _0x3a2489,ChartTypeBits as _0x5ec5cb,ChartWaterfallStyleTarget as _0x498f80,DataOrientation as _0x28717b,EChartRenderEngineName as _0x1a63a8,IChartRenderModelManagerService as _0x1c66b2,ImageChartHost as _0xeb5e8c,PieSecondaryPlotType as _0x3e9108,RTLChartStyle as _0x40d6b3,chartBitsUtils as _0x31bb43,chartImageSourceToDataUrl as _0x25ae08,chartTypeCanUseTrendLine as _0x1a1c3c,resolveChartRuntimeStyle as _0x56bf83,resolveChartStyleBackgroundColor as _0x445815,resolveDefaultChartHostFrameStyle as _0x16cfdd}from'@univerjs-pro/engine-chart';import{CopySheetCommand as _0x242788,RemoveSheetCommand as _0x54620f,SheetInterceptorService as _0x2cb268,SheetPermissionCheckController as _0x47e334,SheetSkeletonService as _0x2f70f2,SheetsSelectionsService as _0x3699f1,UniverSheetsPlugin as _0x1dcfa0,WorkbookEditablePermission as _0x554cec,WorksheetEditPermission as _0x32625b,attachRangeWithCoord as _0x5067a4,discreteRangeToRange as _0x5ebcb8,getSheetCommandTarget as _0x130794}from'@univerjs/sheets';import{deserializeRangeWithSheet as _0x404b59,matchToken as _0x3b02a9,serializeRangeWithSheet as _0x1e8e5e}from'@univerjs/engine-formula';import{insertGroupObject as _0x1aaef1}from'@univerjs/drawing-ui';import{DRAWING_OBJECT_LAYER_INDEX as _0x2521be,IRenderManagerService as _0x11bbe7,ObjectType as _0x274d57,RENDER_CLASS_TYPE as _0x349e8f,Rect as _0x45ef13,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0xda7662,Transform as _0x4325f2,UniverRenderEnginePlugin as _0x15fe35}from'@univerjs/engine-render';import{useCallback as _0x5b263f,useEffect as _0x34e514,useMemo as _0x207894,useRef as _0x33bb4f,useState as _0x5b2f59}from'react';import{Button as _0x3e78e8,Checkbox as _0x2a16f3}from'@univerjs/design';import{MobileRangeSelector as _0x5f3f11,RangeSelector as _0x1311f6}from'@univerjs/sheets-formula-ui';import{Fragment as _0x5a0c00,jsx as _0x4200cc,jsxs as _0x3d17e9}from'react/jsx-runtime';import{UniverLicensePlugin as _0x28eac2}from'@univerjs-pro/license';import{PenIcon as _0x463fa8}from'@univerjs/icons';const H={'type':_0x19398e[_0x58e4e4(0x177)],'id':_0x58e4e4(0x38e),'handler'(){return!0x0;}},Sr=_0x58e4e4(0x2fe),Cr={'enableChartElementFloatMenu':!0x0},wr={'type':_0x19398e['OPERATION'],'id':_0x58e4e4(0x2f8),'handler'(){return!0x0;}};function Tr(_0x2bb87d){const _0x49d5e5=_0x58e4e4;let _0x2ece5c=_0x2bb87d[_0x49d5e5(0x368)](_0xcf65a5)['getFocusDrawings']();if(_0x2ece5c[_0x49d5e5(0x334)]!==0x1)return null;let _0x189ebc=_0x2ece5c[0x0];return _0x189ebc[_0x49d5e5(0x2c2)]===_0x43df04[_0x49d5e5(0x1aa)]?_0x189ebc:null;}function Er(_0x1985f7,_0x3bf782){const _0x1be72b=_0x58e4e4;let _0x255e0d=document[_0x1be72b(0x127)]('a');_0x255e0d[_0x1be72b(0x369)]=_0x1985f7,_0x255e0d[_0x1be72b(0x180)]=_0x3bf782,_0x255e0d[_0x1be72b(0x1cf)]();}const Dr={'id':_0x58e4e4(0x2d1),'type':_0x19398e[_0x58e4e4(0x1f1)],'handler':(_0x490333,_0x2c010c)=>{const _0x151409=_0x58e4e4;let _0x36c5fa=Tr(_0x490333);return _0x36c5fa?_0x490333[_0x151409(0x368)](_0x10f119)[_0x151409(0x1ee)](H['id'],{'unitId':_0x36c5fa[_0x151409(0x380)],'subUnitId':_0x36c5fa['subUnitId'],'drawingId':_0x36c5fa[_0x151409(0x2dc)],..._0x2c010c!=null&&_0x2c010c[_0x151409(0x2fb)]?{'route':_0x2c010c['route']}:{}}):!0x1;}},Or={'id':_0x58e4e4(0x139),'type':_0x19398e['COMMAND'],'handler':_0x514a5f=>Tr(_0x514a5f)?_0x514a5f['get'](_0x10f119)['executeCommand'](_0x172363['id']):!0x1},kr={'id':_0x58e4e4(0x3d4),'type':_0x19398e[_0x58e4e4(0x1f1)],'handler':async _0x3cd84e=>{const _0x1d71a9=_0x58e4e4;let _0x18a266=Tr(_0x3cd84e);if(!_0x18a266)return!0x1;let _0x2c749c=await _0x3cd84e[_0x1d71a9(0x368)](_0x105d73)[_0x1d71a9(0x2a4)]({'unitId':_0x18a266['unitId'],'subUnitId':_0x18a266[_0x1d71a9(0x28c)],'getId':()=>_0x18a266[_0x1d71a9(0x2dc)]});return _0x2c749c?(Er(_0x2c749c,_0x18a266[_0x1d71a9(0x2dc)]+_0x1d71a9(0x1ac)),!0x0):!0x1;}},Ar={'id':_0x58e4e4(0x3cd),'type':_0x19398e[_0x58e4e4(0x1f1)],'handler':_0x241168=>{const _0x3e3505=_0x58e4e4;let _0x1178c7=Tr(_0x241168);return _0x1178c7?_0x241168[_0x3e3505(0x368)](_0x10f119)[_0x3e3505(0x1ee)](_0x52fe4a['id'],{'unitId':_0x1178c7[_0x3e3505(0x380)],'drawings':[{'unitId':_0x1178c7[_0x3e3505(0x380)],'subUnitId':_0x1178c7[_0x3e3505(0x28c)],'drawingId':_0x1178c7['drawingId'],'drawingType':_0x43df04[_0x3e3505(0x1aa)]}]}):!0x1;}},U={'type':_0x19398e['COMMAND'],'id':_0x58e4e4(0x21a),'handler':async(_0x3c6b1f,_0x1bdfcf)=>{const _0x22d97d=_0x58e4e4;let _0x32f2de=_0x130794(_0x3c6b1f['get'](_0x5b54fc));if(!_0x32f2de)return!0x1;let _0x193bb4=_0x3c6b1f['get'](_0x3699f1)['getCurrentLastSelection']();if(!_0x193bb4)return!0x1;let {range:_0x10581c}=_0x193bb4,_0x2e6fac=_0x3c6b1f['get'](_0x10f119),{unitId:_0x74667d,subUnitId:_0x5081c2}=_0x32f2de,{pieSecondaryPlotType:_0x461575,value:_0x7609bb}=_0x1bdfcf,_0x36a7df=_0x461575!==void 0x0;if(_0x36a7df&&(_0x7609bb!==_0x5ec5cb[_0x22d97d(0x2e0)]||_0x461575!==_0x3e9108['Pie']&&_0x461575!==_0x3e9108[_0x22d97d(0x20b)]))return!0x1;let _0x348f18=_0x36a7df?_0x5120c1():void 0x0;return _0x2e6fac[_0x22d97d(0x1ee)](_0x467e05['id'],{'unitId':_0x74667d,'subUnitId':_0x5081c2,'chartType':_0x7609bb,..._0x348f18&&_0x461575?{'chartId':_0x348f18,'config':{'unitId':_0x74667d,'chartModelId':_0x348f18,'style':{'pie':{'composite':{'enabled':!0x0,'secondaryPlot':{'type':_0x461575}}}}}}:{},'source':{'rangeInfo':{'unitId':_0x10581c[_0x22d97d(0x380)]??_0x74667d,'subUnitId':_0x10581c[_0x22d97d(0x1cc)]??_0x5081c2,'range':_0x10581c}}});}};function jr(_0x584b81,_0x58a23a){const _0x32fbf9=_0x58e4e4;if(_0x584b81==null)return'';if(Array[_0x32fbf9(0x10d)](_0x584b81)){var _0x556089;let _0x2970fa=(_0x556089=_0x584b81[0x0])==null?void 0x0:_0x556089[_0x32fbf9(0x3b2)];return _0x2970fa?Mr(_0x2970fa,_0x58a23a):'';}return Mr(_0x584b81[_0x32fbf9(0x18a)],_0x58a23a);}function Mr(_0x4ab168,_0x19bb8b){const _0x30b4de=_0x58e4e4;var _0x449de7;let {unitId:_0x5dbf00,subUnitId:_0x588cb5,range:_0x2abdb3}=_0x4ab168,_0x2c06ad=(_0x449de7=_0x19bb8b['getUnit'](_0x5dbf00))==null?void 0x0:_0x449de7[_0x30b4de(0x2d3)](_0x588cb5);if(!_0x2c06ad)return'';let _0x1a547e=_0x2c06ad[_0x30b4de(0x254)]();return _0x1e8e5e(_0x1a547e,_0x2abdb3);}const Nr=_0x85502f['map'](_0x14856f=>({'id':'id'in _0x14856f?_0x14856f['id']:void 0x0,'labelId':_0x14856f['labelId'],'pieSecondaryPlotType':'pieSecondaryPlotType'in _0x14856f?_0x14856f[_0x58e4e4(0x17d)]:void 0x0,'value':_0x14856f[_0x58e4e4(0x256)],'icon':_0x14856f[_0x58e4e4(0x1b7)]}));function Pr(_0x44cfef=Nr){return _0x44cfef['map'](({id:_0x567279,icon:_0x28226c,value:_0x59a462})=>{const _0x3b0654=_0x29f5;let _0x5abd4d=_0x924dc9(_0x567279??String(_0x59a462)),_0x472215=_0x5abd4d?{'value':_0x5abd4d[_0x3b0654(0x341)],..._0x5abd4d[_0x3b0654(0x17d)]?{'pieSecondaryPlotType':_0x5abd4d[_0x3b0654(0x17d)]}:{}}:{'value':_0x59a462};return{'icon':_0x28226c,'value':_0x567279??_0x59a462,'params':_0x472215};});}const Fr=(_0x53d9e7,_0x27667c)=>{const _0x1a1fa5=_0x58e4e4;if(_0x27667c[_0x1a1fa5(0x334)]===0x1&&_0x27667c[0x0]==='all')return _0x53d9e7;if(_0x27667c[_0x1a1fa5(0x334)]>0x1){let _0x151099=new Set();for(let _0x16dfb4 of _0x27667c)_0x151099[_0x1a1fa5(0x1c7)](Number(_0x16dfb4));return _0x53d9e7[_0x1a1fa5(0x19e)](_0x5dcad4=>_0x151099[_0x1a1fa5(0x39b)](_0x5dcad4[_0x1a1fa5(0x256)]));}return[];};function Ir(_0x2f54ec){const _0x1cd9ae=_0x58e4e4;let _0xbbb808=_0x2f54ec['get'](_0x5b54fc),_0x4a7b04=_0x1fd812(_0x2f54ec),_0x37fb69=Fr(Nr[_0x1cd9ae(0x2fc)](),_0x4a7b04),_0x12ecf9=Pr(_0x37fb69)[_0x1cd9ae(0x3b3)]((_0x223b2f,_0x12f6f2)=>({'icon':_0x223b2f[_0x1cd9ae(0x3bb)],'value':_0x223b2f[_0x1cd9ae(0x256)],'params':_0x223b2f['params'],'label':_0x1cd9ae(0x27a)+_0x37fb69[_0x12f6f2][_0x1cd9ae(0x2af)]}));return{'id':U['id'],'type':_0x40ad65[_0x1cd9ae(0x280)],'selectionsCommandId':U['id'],'selections':_0x12ecf9,'icon':_0x1cd9ae(0x2ab),'tooltip':_0x1cd9ae(0x31c),'activated$':_0x2eadaf(_0xbbb808,!0x1,()=>new _0x382ded(_0x2d23da=>{const _0x472d9e=_0x1cd9ae;_0x2d23da[_0x472d9e(0x31b)](!0x1);})),'hidden$':_0x1fa6a2(_0x2f54ec,_0xaf509f[_0x1cd9ae(0x16d)]),'disabled$':_0x59d29f(_0x2f54ec)};}function Lr(_0x4b1778){const _0x11b31a=_0x58e4e4;let _0x397264=_0x4b1778[_0x11b31a(0x368)](_0xcf65a5);return _0x397264[_0x11b31a(0x328)][_0x11b31a(0x3b1)](_0x4f483a(_0x397264[_0x11b31a(0x321)]()),_0x587f1(()=>Tr(_0x4b1778)==null));}function Rr(_0x41609e){const _0x5d269a=_0x58e4e4;return{'id':Dr['id'],'commandId':Dr['id'],'type':_0x40ad65[_0x5d269a(0x30f)],'title':_0x41609e['get'](_0x37903c)['t'](_0x5d269a(0x111)),'icon':_0x5d269a(0x30d),'hidden$':Lr(_0x41609e)};}function zr(_0x1c62c8){const _0x1d02b3=_0x58e4e4;return{'id':Or['id'],'commandId':Or['id'],'type':_0x40ad65[_0x1d02b3(0x30f)],'title':_0x1c62c8[_0x1d02b3(0x368)](_0x37903c)['t'](_0x1d02b3(0x2d7)),'icon':_0x1d02b3(0x27b),'hidden$':Lr(_0x1c62c8)};}function Br(_0x1bd382){const _0x4ea40e=_0x58e4e4;return{'id':kr['id'],'commandId':kr['id'],'type':_0x40ad65[_0x4ea40e(0x30f)],'title':_0x1bd382[_0x4ea40e(0x368)](_0x37903c)['t'](_0x4ea40e(0x1b8)),'icon':'DownloadImageIcon','hidden$':Lr(_0x1bd382)};}function Vr(_0xef6eae){const _0x46fce2=_0x58e4e4;return{'id':Ar['id'],'commandId':Ar['id'],'type':_0x40ad65[_0x46fce2(0x30f)],'title':_0xef6eae[_0x46fce2(0x368)](_0x37903c)['t']('sheets-chart-ui.common.deleteChart'),'icon':_0x46fce2(0x223),'hidden$':Lr(_0xef6eae)};}const Hr={[_0x134022[_0x58e4e4(0x312)]]:{[U['id']]:{'order':0x4,'menuItemFactory':Ir}},[_0x587e60[_0x58e4e4(0x1e0)]]:{[_0x1d6826[_0x58e4e4(0x2cf)]]:{[Dr['id']]:{'order':0x0,'menuItemFactory':Rr},[Or['id']]:{'order':0x1,'menuItemFactory':zr},[kr['id']]:{'order':0x3,'menuItemFactory':Br},[Ar['id']]:{'order':0x4,'menuItemFactory':Vr}}}};function Ur(_0x5d0062){const _0x4b26ad=_0x58e4e4;return _0x5d0062===_0x5ec5cb[_0x4b26ad(0x28a)]||_0x5d0062===_0x5ec5cb[_0x4b26ad(0x33a)]||_0x5d0062===_0x5ec5cb[_0x4b26ad(0x15b)]||_0x31bb43[_0x4b26ad(0x300)](_0x5d0062,_0x5ec5cb['Line'])||_0x31bb43[_0x4b26ad(0x300)](_0x5d0062,_0x5ec5cb[_0x4b26ad(0x186)])||_0x31bb43[_0x4b26ad(0x300)](_0x5d0062,_0x5ec5cb[_0x4b26ad(0x2be)])||_0x31bb43[_0x4b26ad(0x300)](_0x5d0062,_0x5ec5cb[_0x4b26ad(0x38c)]);}function Wr(_0x3b5b3c){const _0x1ac299=_0x58e4e4;return Ur(_0x3b5b3c)||_0x31bb43[_0x1ac299(0x300)](_0x3b5b3c,_0x5ec5cb[_0x1ac299(0x2e0)])||_0x31bb43['baseOn'](_0x3b5b3c,_0x5ec5cb['Pareto'])||_0x31bb43[_0x1ac299(0x300)](_0x3b5b3c,_0x5ec5cb[_0x1ac299(0x31e)]);}function Gr(_0x1648dc,_0xe045ed){const _0x3dca60=_0x58e4e4;let _0xbfac78=_0x10d2ee(_0x1648dc,_0xe045ed),_0x4fe8de=_0xbfac78?_0xb7f32b(_0xbfac78[_0x3dca60(0x11f)]):void 0x0;if(_0xbfac78&&_0x4fe8de)return{..._0xbfac78,'route':_0x4fe8de,'showFloatMenu':Wr(_0x1648dc[_0x3dca60(0x341)])&&_0xbfac78['showFloatMenu']};}function Kr(_0x15a723,_0x106016=0x1){const _0x215064=_0x58e4e4;return{'width':Math['max'](_0x106016,_0x15a723[_0x215064(0x384)]),'height':Math['max'](_0x106016,_0x15a723['height'])};}function qr(_0x14f7e6,_0x23f9f5={},_0x1fe7bf={'left':0x0,'top':0x0}){const _0x44f526=_0x58e4e4;let _0x44d527=_0x23f9f5['scaleX']??0x1,_0x5155b9=_0x23f9f5[_0x44f526(0x263)]??0x1,_0x30e3be=_0x16653f[_0x44f526(0x2f6)]({'logicalOuterRect':{'left':_0x1fe7bf[_0x44f526(0x270)]>0x0?-_0x1fe7bf[_0x44f526(0x270)]:0x0,'top':_0x1fe7bf[_0x44f526(0x23a)]>0x0?-_0x1fe7bf[_0x44f526(0x23a)]:0x0,...Kr(_0x14f7e6)},'scale':{'scaleX':_0x44d527,'scaleY':_0x5155b9},'hostStyle':{},'contentMode':_0x5ddbd5[_0x44f526(0x119)]});return{'left':_0x30e3be['logicalOuterRect'][_0x44f526(0x270)],'top':_0x30e3be[_0x44f526(0x1c1)]['top'],'width':_0x30e3be[_0x44f526(0x1c1)][_0x44f526(0x384)],'height':_0x30e3be[_0x44f526(0x1c1)][_0x44f526(0x1d7)],'scaleX':_0x44d527,'scaleY':_0x5155b9};}function Jr(_0x596874){'@babel/helpers - typeof';const _0x2beebe=_0x58e4e4;return Jr=typeof Symbol==_0x2beebe(0x2de)&&typeof Symbol[_0x2beebe(0x21b)]==_0x2beebe(0x1e6)?function(_0x1c3d6f){return typeof _0x1c3d6f;}:function(_0x2fc70b){const _0x180f71=_0x2beebe;return _0x2fc70b&&typeof Symbol==_0x180f71(0x2de)&&_0x2fc70b[_0x180f71(0x354)]===Symbol&&_0x2fc70b!==Symbol['prototype']?_0x180f71(0x1e6):typeof _0x2fc70b;},Jr(_0x596874);}function Yr(_0xf2ca3b,_0x242419){const _0x5f4077=_0x58e4e4;if(Jr(_0xf2ca3b)!=_0x5f4077(0x36d)||!_0xf2ca3b)return _0xf2ca3b;var _0x2cdef7=_0xf2ca3b[Symbol[_0x5f4077(0x315)]];if(_0x2cdef7!==void 0x0){var _0x12ba68=_0x2cdef7[_0x5f4077(0x29e)](_0xf2ca3b,_0x242419||'default');if(Jr(_0x12ba68)!=_0x5f4077(0x36d))return _0x12ba68;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x242419===_0x5f4077(0x1a2)?String:Number)(_0xf2ca3b);}function Xr(_0x5b7860){const _0x5f1f56=_0x58e4e4;var _0x35282e=Yr(_0x5b7860,_0x5f1f56(0x1a2));return Jr(_0x35282e)==_0x5f1f56(0x1e6)?_0x35282e:_0x35282e+'';}function W(_0x2e2ce9,_0x216614,_0x4c893b){const _0x274d6f=_0x58e4e4;return(_0x216614=Xr(_0x216614))in _0x2e2ce9?Object[_0x274d6f(0x12d)](_0x2e2ce9,_0x216614,{'value':_0x4c893b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2e2ce9[_0x216614]=_0x4c893b,_0x2e2ce9;}function Zr(_0x14f1a2){const _0x4071cb=_0x58e4e4;switch(_0x14f1a2['type']){case _0x385294[_0x4071cb(0x32a)]:return _0x14f1a2[_0x4071cb(0x305)];case _0x385294['ImageBitmap']:return _0x14f1a2['imageBitmap'];default:return;}}var Qr=class extends _0x45ef13{constructor(_0x64cc9a,_0x1fa63f,_0x65fa6d,_0x556feb=()=>!0x1,_0x5dbf17=()=>{}){const _0x993a89=_0x58e4e4;super(_0x64cc9a,{..._0x1fa63f,'evented':_0x1fa63f[_0x993a89(0x35c)]??!0x0}),this[_0x993a89(0x2ce)]=_0x65fa6d,this[_0x993a89(0x23d)]=_0x556feb,this[_0x993a89(0x146)]=_0x5dbf17,W(this,_0x993a89(0x133),null),W(this,'_url',null),W(this,'_requestedUrl',null),W(this,_0x993a89(0x35d),null),this[_0x993a89(0x2d9)](_0x274d57[_0x993a89(0x1d2)]);}[_0x58e4e4(0x125)](){const _0x1dc7c7=_0x58e4e4;this[_0x1dc7c7(0x340)](),this[_0x1dc7c7(0x133)]=null,this[_0x1dc7c7(0x214)]=null,this[_0x1dc7c7(0x30c)]=null,this[_0x1dc7c7(0x146)](),super[_0x1dc7c7(0x125)]();}['render'](_0x2d72c3,_0x4b6482){const _0x370ade=_0x58e4e4;if(!this[_0x370ade(0x2cd)])return this[_0x370ade(0x293)](!0x1),this;if(this[_0x370ade(0x23d)]()){let _0x81adaa=this['_getImage']();return _0x81adaa&&this[_0x370ade(0x2f4)](_0x81adaa),this[_0x370ade(0x293)](!0x1),this;}if(!this['transform'])return this;let {width:_0x53e8ea,height:_0x13166d,left:_0x2c88db,top:_0x229abe}=this[_0x370ade(0x2bf)]();if(this[_0x370ade(0x261)](_0x4b6482)){let {top:_0x12ec07,left:_0x385720,bottom:_0x26b796,right:_0x20f19d}=_0x4b6482[_0x370ade(0x323)];if(_0x53e8ea+this[_0x370ade(0x199)]+_0x2c88db<_0x385720||_0x20f19d<_0x2c88db||_0x13166d+this['strokeWidth']+_0x229abe<_0x12ec07||_0x26b796<_0x229abe)return this;}let _0x541837=this[_0x370ade(0x361)]['getMatrix']();_0x2d72c3[_0x370ade(0x24d)]();let _0x4bdd59=_0x2c88db+_0x53e8ea/0x2,_0x2198ec=_0x229abe+_0x13166d/0x2;return _0x2d72c3[_0x370ade(0x361)](_0x541837[0x0],_0x541837[0x1],_0x541837[0x2],_0x541837[0x3],_0x4bdd59,_0x2198ec),this[_0x370ade(0x207)]!==0x1&&(_0x2d72c3[_0x370ade(0x12a)]=this['opacity']),this[_0x370ade(0x165)](_0x2d72c3,void 0x0,_0x53e8ea,_0x13166d),_0x2d72c3['restore'](),this[_0x370ade(0x293)](!0x1),this;}['_draw'](_0xf537f6,_0x5ecbc4,_0x4f83e4=this[_0x58e4e4(0x384)],_0x327e73=this['height']){const _0x24e592=_0x58e4e4;this[_0x24e592(0x26d)](_0xf537f6,_0x4f83e4,_0x327e73,{'stroke':void 0x0,'strokeWidth':0x0}),this[_0x24e592(0x231)](_0xf537f6,_0x4f83e4,_0x327e73),this[_0x24e592(0x26d)](_0xf537f6,_0x4f83e4,_0x327e73,{'fill':void 0x0});}['_drawChartFrame'](_0x372a67,_0x56497d,_0x1e7265,_0x286b5c){const _0x514917=_0x58e4e4;_0x372a67[_0x514917(0x24d)](),_0x372a67[_0x514917(0x196)](-_0x56497d/0x2,-_0x1e7265/0x2),_0x45ef13['drawWith'](_0x372a67,$r(this,_0x56497d,_0x1e7265,_0x286b5c)),_0x372a67[_0x514917(0x108)]();}[_0x58e4e4(0x1bd)](_0x58f4b5){const _0x3ac57f=_0x58e4e4;let {left:_0x47280b,top:_0x3f9e62,width:_0x142611,height:_0x18bc0e}=this[_0x3ac57f(0x2bf)](),_0x2e31f7=_0x47280b+_0x142611/0x2,_0x1306d9=_0x3f9e62+_0x18bc0e/0x2,_0x3570d1=this['transform'][_0x3ac57f(0x3bc)](),_0xe987eb=new _0x4325f2([_0x3570d1[0x0],_0x3570d1[0x1],_0x3570d1[0x2],_0x3570d1[0x3],_0x2e31f7,_0x1306d9]),_0xf84502=this[_0x3ac57f(0x3b7)](),_0x612de1=(this[_0x3ac57f(0x2ac)]&&(_0xf84502==null?void 0x0:_0xf84502['classType'])===_0x349e8f[_0x3ac57f(0x2ef)]?_0xf84502[_0x3ac57f(0x362)][_0x3ac57f(0x190)](_0xe987eb):_0xe987eb)[_0x3ac57f(0x3ad)]()[_0x3ac57f(0x26f)](_0x58f4b5),_0x2f3f87=_0x142611/0x2,_0x27f791=_0x18bc0e/0x2;return _0x612de1['x']>=-_0x2f3f87-this[_0x3ac57f(0x199)]/0x2&&_0x612de1['x']<=_0x2f3f87+this[_0x3ac57f(0x199)]/0x2&&_0x612de1['y']>=-_0x27f791-this['strokeWidth']/0x2&&_0x612de1['y']<=_0x27f791+this['strokeWidth']/0x2;}[_0x58e4e4(0x231)](_0x2d3000,_0x5268b9,_0x59acbf){const _0x30efef=_0x58e4e4;let _0xccec2e=this[_0x30efef(0x2ce)](),_0x4980de=_0xccec2e?this['_getDrawable'](_0xccec2e):void 0x0;if(!_0x4980de)return;let {width:_0x75781e,height:_0x1115a0}=Kr({'width':_0x5268b9,'height':_0x59acbf},0x0);_0x75781e!==0x0&&_0x1115a0!==0x0&&(_0x2d3000[_0x30efef(0x24d)](),_0x2d3000[_0x30efef(0x196)](-_0x5268b9/0x2,-_0x59acbf/0x2),ei(_0x2d3000,_0x75781e,_0x1115a0,this[_0x30efef(0x14d)]),_0x2d3000[_0x30efef(0x29c)](),_0x2d3000['drawImage'](_0x4980de,0x0,0x0,_0x75781e,_0x1115a0),_0x2d3000[_0x30efef(0x108)]());}[_0x58e4e4(0x2f4)](_0x1ce95c){const _0x3955b7=_0x58e4e4;var _0x49b402;let _0x4da3be=Zr(_0x1ce95c);if(_0x4da3be)return _0x4da3be;if(_0x1ce95c['type']===_0x385294[_0x3955b7(0x37e)]&&(this[_0x3955b7(0x30c)]!==_0x1ce95c['url']&&(this['_requestedUrl']=_0x1ce95c[_0x3955b7(0x155)],this[_0x3955b7(0x340)](),this[_0x3955b7(0x214)]!==_0x1ce95c['url']&&this[_0x3955b7(0x34f)](_0x1ce95c['url'])),(_0x49b402=this['_urlImage'])!=null&&_0x49b402['complete']&&this[_0x3955b7(0x133)][_0x3955b7(0x2ed)]>0x0&&this[_0x3955b7(0x133)][_0x3955b7(0x1fd)]>0x0))return this[_0x3955b7(0x133)];}[_0x58e4e4(0x34f)](_0xac5f87){const _0x1b0b5a=_0x58e4e4;let _0xbc975a=document[_0x1b0b5a(0x127)]('img');this[_0x1b0b5a(0x35d)]=_0xbc975a,_0xbc975a[_0x1b0b5a(0x366)]=_0x1b0b5a(0x1fa),_0xbc975a['onload']=()=>{const _0x14bf8f=_0x1b0b5a;this[_0x14bf8f(0x30c)]===_0xac5f87&&this[_0x14bf8f(0x35d)]===_0xbc975a&&(_0xbc975a[_0x14bf8f(0x2ed)]>0x0&&_0xbc975a['naturalHeight']>0x0&&(this[_0x14bf8f(0x214)]=_0xac5f87,this[_0x14bf8f(0x133)]=_0xbc975a),this[_0x14bf8f(0x340)](),this[_0x14bf8f(0x293)](!0x0));},_0xbc975a['onerror']=()=>{const _0x363286=_0x1b0b5a;this[_0x363286(0x35d)]===_0xbc975a&&this[_0x363286(0x340)]();},_0xbc975a[_0x1b0b5a(0x12f)]=_0xac5f87;}[_0x58e4e4(0x340)](){const _0x2b92b0=_0x58e4e4;this[_0x2b92b0(0x35d)]&&=(this[_0x2b92b0(0x35d)][_0x2b92b0(0x28b)]=null,this[_0x2b92b0(0x35d)]['onerror']=null,null);}};function $r(_0x4193a7,_0x2ecebe,_0x444127,_0x6b7aff){const _0x27edcd=_0x58e4e4;let _0x674cc1=Object['create'](_0x4193a7);return Object[_0x27edcd(0x12d)](_0x674cc1,'width',{'value':_0x2ecebe}),Object[_0x27edcd(0x12d)](_0x674cc1,'height',{'value':_0x444127}),Object[_0x27edcd(0x1ce)](_0x6b7aff)[_0x27edcd(0x2db)](_0x19f85f=>{const _0x3a67db=_0x27edcd;Object[_0x3a67db(0x12d)](_0x674cc1,_0x19f85f,{'value':_0x6b7aff[_0x19f85f]});}),_0x674cc1;}function ei(_0xfc5043,_0x1193a6,_0x25022b,_0x2d4f93){const _0x3df7b2=_0x58e4e4;let _0xd096a3=Math[_0x3df7b2(0x227)](_0x2d4f93||0x0,_0x1193a6/0x2,_0x25022b/0x2);if(_0xfc5043[_0x3df7b2(0x2bc)](),!_0xd096a3){_0xfc5043[_0x3df7b2(0x148)](0x0,0x0,_0x1193a6,_0x25022b),_0xfc5043[_0x3df7b2(0x142)]();return;}_0xfc5043['moveTo'](_0xd096a3,0x0),_0xfc5043['lineTo'](_0x1193a6-_0xd096a3,0x0),_0xfc5043[_0x3df7b2(0x203)](_0x1193a6-_0xd096a3,_0xd096a3,_0xd096a3,Math['PI']*0x3/0x2,0x0,!0x1),_0xfc5043[_0x3df7b2(0x2ad)](_0x1193a6,_0x25022b-_0xd096a3),_0xfc5043[_0x3df7b2(0x203)](_0x1193a6-_0xd096a3,_0x25022b-_0xd096a3,_0xd096a3,0x0,Math['PI']/0x2,!0x1),_0xfc5043[_0x3df7b2(0x2ad)](_0xd096a3,_0x25022b),_0xfc5043[_0x3df7b2(0x203)](_0xd096a3,_0x25022b-_0xd096a3,_0xd096a3,Math['PI']/0x2,Math['PI'],!0x1),_0xfc5043['lineTo'](0x0,_0xd096a3),_0xfc5043[_0x3df7b2(0x203)](_0xd096a3,_0xd096a3,_0xd096a3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xfc5043['closePath']();}function G(_0x68ece8){const _0x3a0620=_0x58e4e4;(_0x68ece8==null?void 0x0:_0x68ece8[_0x3a0620(0x2e2)])===_0x385294[_0x3a0620(0x276)]&&_0x68ece8['imageBitmap'][_0x3a0620(0x1f2)]();}function ti(_0x26ce41){const _0x165d57=_0x58e4e4;return _0x26ce41['unitId']+_0x165d57(0x16f)+_0x26ce41[_0x165d57(0x28c)]+'#-#'+_0x26ce41[_0x165d57(0x1f8)];}var ni=class extends _0x7b52dc{constructor(..._0x245b6f){const _0x22545b=_0x58e4e4;super(..._0x245b6f),W(this,_0x22545b(0x174),new Map());}[_0x58e4e4(0x23c)](_0x3d9fc2){const _0x402ec9=_0x58e4e4;let _0x173f0a=ti(_0x3d9fc2),_0x119129=this['_entries'][_0x402ec9(0x368)](_0x173f0a)??{'version':0x0};return _0x119129[_0x402ec9(0x2f7)]+=0x1,this[_0x402ec9(0x174)]['set'](_0x173f0a,_0x119129),_0x119129[_0x402ec9(0x2f7)];}[_0x58e4e4(0x356)](_0x3d9f50,_0x542bb9){const _0x2f73c4=_0x58e4e4;var _0x53dc27;return((_0x53dc27=this[_0x2f73c4(0x174)][_0x2f73c4(0x368)](ti(_0x3d9f50)))==null?void 0x0:_0x53dc27[_0x2f73c4(0x2f7)])===_0x542bb9;}['setImage'](_0x36e448,_0x2abd8b,_0x2e9a40){const _0x18377b=_0x58e4e4;if(!this['isLatest'](_0x36e448,_0x2e9a40))return G(_0x2abd8b),!0x1;let _0x20e329=ti(_0x36e448),_0x33e4f6=this[_0x18377b(0x174)][_0x18377b(0x368)](_0x20e329)??{'version':_0x2e9a40},_0x5de05b=_0x33e4f6['image'];return _0x33e4f6[_0x18377b(0x236)]=_0x2abd8b,_0x33e4f6['version']=_0x2e9a40,this[_0x18377b(0x174)][_0x18377b(0x37a)](_0x20e329,_0x33e4f6),_0x5de05b!==_0x2abd8b&&G(_0x5de05b),!0x0;}[_0x58e4e4(0x3d2)](_0x189349){const _0xf972f2=_0x58e4e4;var _0x5d109c;return(_0x5d109c=this['_entries'][_0xf972f2(0x368)](ti(_0x189349)))==null?void 0x0:_0x5d109c[_0xf972f2(0x236)];}[_0x58e4e4(0x1ab)](_0x9b01c1){const _0x6c40cf=_0x58e4e4;let _0x32ab65=ti(_0x9b01c1),_0x1bb16c=this[_0x6c40cf(0x174)]['get'](_0x32ab65);_0x1bb16c&&(G(_0x1bb16c[_0x6c40cf(0x236)]),this['_entries'][_0x6c40cf(0x25c)](_0x32ab65));}['clearChart'](_0x2f9987){const _0x184fee=_0x58e4e4;for(let [_0x461482,_0x12cd5b]of this['_entries'])_0x461482[_0x184fee(0x349)](_0x184fee(0x16f)+_0x2f9987)&&(G(_0x12cd5b[_0x184fee(0x236)]),this[_0x184fee(0x174)]['delete'](_0x461482));}[_0x58e4e4(0x125)](){const _0x5308ad=_0x58e4e4;this[_0x5308ad(0x174)]['forEach'](_0x527090=>G(_0x527090['image'])),this[_0x5308ad(0x174)]['clear'](),super['dispose']();}};function ri(_0x1388d3,_0x568e5b=0x7d0){let _0x14a4ba=null,_0x2dd598=null,_0x5a377f=!0x1,_0x4df966=()=>{},_0x4b78a0=()=>{_0x14a4ba!=null&&(clearInterval(_0x14a4ba),_0x14a4ba=null),_0x2dd598!=null&&(clearTimeout(_0x2dd598),_0x2dd598=null);};return{'promise':new Promise((_0x2a5c32,_0x4f5c70)=>{_0x4df966=_0x4f5c70;let _0x27b3cd=()=>{let _0x190b20=document['getElementById'](_0x1388d3);_0x190b20&&!_0x5a377f&&(_0x5a377f=!0x0,_0x4b78a0(),_0x2a5c32(_0x190b20));};_0x27b3cd(),!_0x5a377f&&(_0x14a4ba=setInterval(_0x27b3cd,16.666666666666668),_0x2dd598=setTimeout(()=>{const _0x59c749=_0x29f5;_0x5a377f||(_0x5a377f=!0x0,_0x4b78a0(),_0x4f5c70(Error(_0x59c749(0x1ae)+_0x1388d3+'\x22.')));},_0x568e5b));}),'cancel':()=>{_0x5a377f||(_0x5a377f=!0x0,_0x4b78a0(),_0x4df966(Error('Canceled\x20waiting\x20for\x20float\x20dom\x20host\x20\x22'+_0x1388d3+'\x22.')));}};}var ii=class extends _0x7b52dc{constructor(_0x4619b1,_0x275443,_0x5d48d5,_0x5d205f,_0x24675c,_0xf5411f,_0x2244b9){const _0x535502=_0x58e4e4;super(),this[_0x535502(0x1f8)]=_0x4619b1,this[_0x535502(0x342)]=_0x275443,this[_0x535502(0x1f0)]=_0x5d48d5,this[_0x535502(0x1ad)]=_0x5d205f,this['_isProviderDisposed']=_0x24675c,this[_0x535502(0x131)]=_0xf5411f,this[_0x535502(0x1d4)]=_0x2244b9,W(this,_0x535502(0x26e),_0x3f6e51[_0x535502(0x166)]),W(this,'_domFrame',null),W(this,_0x535502(0x3cc),!0x1),W(this,'_pendingToken',null),W(this,_0x535502(0x2ba),null),W(this,_0x535502(0x3ba),null),W(this,'_hostStyle',{}),W(this,'_savedWrapperStyle',null),W(this,_0x535502(0x2df),null);}[_0x58e4e4(0x182)](){const _0x3005de=_0x58e4e4;return this[_0x3005de(0x3cc)];}[_0x58e4e4(0x123)](){const _0x49925d=_0x58e4e4;this[_0x49925d(0x3cc)]=!0x1;}['getRect'](){const _0x5d4d84=_0x58e4e4;let _0x20daa6=this[_0x5d4d84(0x1f0)]();return _0x20daa6?{'width':_0x20daa6[_0x5d4d84(0x384)],'height':_0x20daa6['height']}:null;}['setStyle'](_0x52523e){const _0x52f8c8=_0x58e4e4;this[_0x52f8c8(0x2c4)]=_0x52523e,this[_0x52f8c8(0x1ad)](_0x52523e),this[_0x52f8c8(0x20f)]();}async[_0x58e4e4(0x388)](){const _0x1f3381=_0x58e4e4;if(this['_disposed']||this[_0x1f3381(0x3a4)]())throw Error(_0x1f3381(0x3cb));let _0x51a196=this[_0x1f3381(0x342)](),_0x16b75c=(_0x51a196==null?void 0x0:_0x51a196[_0x1f3381(0x2ca)])??this[_0x1f3381(0x1f8)],_0x316cdc=document[_0x1f3381(0x1e4)](_0x16b75c);if(this[_0x1f3381(0x2ff)]&&_0x316cdc!=null&&_0x316cdc['contains'](this[_0x1f3381(0x2ff)][_0x1f3381(0x252)]))return{'mountNode':this['_domFrame'][_0x1f3381(0x252)],'dispose':()=>{const _0x3e0926=_0x1f3381;this[_0x3e0926(0x125)](),_0x51a196==null||_0x51a196['dispose'][_0x3e0926(0x125)]();}};if(this[_0x1f3381(0x2ba)])return this[_0x1f3381(0x2ba)];let _0x457edf=this[_0x1f3381(0x329)]();return this['_pendingHost']=_0x457edf,_0x457edf['then'](()=>{const _0x3a0f73=_0x1f3381;this[_0x3a0f73(0x2ba)]===_0x457edf&&(this[_0x3a0f73(0x2ba)]=null);},()=>{const _0x498282=_0x1f3381;this[_0x498282(0x2ba)]===_0x457edf&&(this['_pendingHost']=null);}),_0x457edf;}async[_0x58e4e4(0x3ae)](){const _0x289762=_0x58e4e4;try{return(await this[_0x289762(0x388)]())[_0x289762(0x252)];}catch{return null;}}[_0x58e4e4(0x2a2)](){const _0x3e38e3=_0x58e4e4;let _0x350d08=this[_0x3e38e3(0x342)](),_0x4010f0=(_0x350d08==null?void 0x0:_0x350d08['domId'])??this[_0x3e38e3(0x1f8)],_0x53d4c7=document[_0x3e38e3(0x1e4)](_0x4010f0);return!!(this[_0x3e38e3(0x2ff)]&&_0x53d4c7!=null&&_0x53d4c7[_0x3e38e3(0x1ba)](this[_0x3e38e3(0x2ff)]['mountNode']));}[_0x58e4e4(0x12b)](){const _0x52e1a1=_0x58e4e4;if(!this['_domFrame'])return;let _0x4c1884=this['_getPlacement']();_0x4c1884&&this[_0x52e1a1(0x2ff)][_0x52e1a1(0x2cc)](this[_0x52e1a1(0x365)](_0x4c1884),this[_0x52e1a1(0x15a)]());}['markReady'](){const _0x253afb=_0x58e4e4;this[_0x253afb(0x131)]();}['markNotReady'](){this['_markNotReady']();}['setDataUpdateAnimation'](_0x55d2f6){const _0x45260c=_0x58e4e4;this['_dataUpdateAnimationDuration']=_0x55d2f6;let _0x1546cb=this['_getFloatDomInfo'](),_0x3c9c89=document[_0x45260c(0x1e4)]((_0x1546cb==null?void 0x0:_0x1546cb[_0x45260c(0x2ca)])??this[_0x45260c(0x1f8)]);_0x3c9c89&&this['_applyHostInteractionState'](_0x3c9c89);}[_0x58e4e4(0x125)](){const _0x323336=_0x58e4e4;var _0x17ec34;this[_0x323336(0x2c6)]||(this[_0x323336(0x217)](),this[_0x323336(0x21f)]=null,this[_0x323336(0x2ba)]=null,this[_0x323336(0x34c)](),this[_0x323336(0x3cc)]=!0x1,this[_0x323336(0x2df)]=null,(_0x17ec34=this[_0x323336(0x2ff)])==null||_0x17ec34[_0x323336(0x125)](),this[_0x323336(0x2ff)]=null,this[_0x323336(0x353)](),super['dispose']());}async[_0x58e4e4(0x329)](){const _0x31d291=_0x58e4e4;let _0x5aa94f=this['_getFloatDomInfo']();if(!_0x5aa94f)throw Error('Fail\x20to\x20create\x20float\x20dom');let _0x19f904=_0x5aa94f[_0x31d291(0x2ca)]??this[_0x31d291(0x1f8)],_0x5b4972=ri(_0x19f904),_0x44a00d=Symbol(this[_0x31d291(0x1f8)]);this[_0x31d291(0x21f)]=_0x44a00d,this[_0x31d291(0x3ba)]=_0x5b4972;try{let _0x2e7e81=await _0x5b4972[_0x31d291(0x297)],_0x252b5b=this[_0x31d291(0x342)](),_0x22d38b=(_0x252b5b==null?void 0x0:_0x252b5b[_0x31d291(0x2ca)])??this[_0x31d291(0x1f8)];if(this[_0x31d291(0x2c6)]||this[_0x31d291(0x3a4)]()||this['_pendingToken']!==_0x44a00d||!_0x252b5b||_0x22d38b!==_0x19f904||document['getElementById'](_0x19f904)!==_0x2e7e81||!_0x2e7e81[_0x31d291(0x38a)])throw Error('Fail\x20to\x20create\x20float\x20dom');let _0x1bddd4=this[_0x31d291(0x1f0)]();if(!_0x1bddd4)throw Error(_0x31d291(0x3cb));let _0x383e33=new _0x1af803(_0x2e7e81);return _0x383e33[_0x31d291(0x2cc)](this[_0x31d291(0x365)](_0x1bddd4),this['_frameStyle']()),this[_0x31d291(0x32c)](_0x2e7e81),this['_domFrame']=_0x383e33,this['_managed']=!0x0,{'mountNode':_0x383e33['mountNode'],'dispose':()=>{const _0x18f48e=_0x31d291;this['dispose'](),_0x5aa94f[_0x18f48e(0x125)][_0x18f48e(0x125)]();}};}finally{this['_waiter']===_0x5b4972&&(this['_waiter']=null),this[_0x31d291(0x21f)]===_0x44a00d&&(this['_pendingToken']=null);}}['_cancelHostWait'](){const _0x3930c6=_0x58e4e4;let _0x1514fb=this[_0x3930c6(0x3ba)];_0x1514fb&&(_0x1514fb[_0x3930c6(0x28d)](),this[_0x3930c6(0x3ba)]=null);}[_0x58e4e4(0x20f)](){const _0x42c67b=_0x58e4e4;let _0x1c415f=this[_0x42c67b(0x1f0)]();this[_0x42c67b(0x2ff)]&&_0x1c415f&&this[_0x42c67b(0x2ff)][_0x42c67b(0x2cc)](this[_0x42c67b(0x365)](_0x1c415f),this[_0x42c67b(0x15a)]());}[_0x58e4e4(0x365)](_0x1ec2b7){const _0x9b0fcc=_0x58e4e4;return _0x16653f['resolve']({'logicalOuterRect':{'left':_0x1ec2b7[_0x9b0fcc(0x270)],'top':_0x1ec2b7[_0x9b0fcc(0x23a)],'width':_0x1ec2b7['width'],'height':_0x1ec2b7[_0x9b0fcc(0x1d7)]},'scale':{'scaleX':_0x1ec2b7[_0x9b0fcc(0x2a6)],'scaleY':_0x1ec2b7['scaleY']},'hostStyle':this['_frameStyle'](),'contentMode':_0x5ddbd5[_0x9b0fcc(0x119)]});}['_frameStyle'](){return{...this['_hostStyle'],'radius':_0x5af627};}[_0x58e4e4(0x32c)](_0x201a83){const _0x1fb6b7=_0x58e4e4;let _0x4e5af8=_0x201a83[_0x1fb6b7(0x24f)];_0x4e5af8&&(this[_0x1fb6b7(0x3c7)]||={'zIndex':_0x4e5af8[_0x1fb6b7(0x2dd)][_0x1fb6b7(0x179)],'pointerEvents':_0x4e5af8[_0x1fb6b7(0x2dd)][_0x1fb6b7(0x2b6)]},_0x4e5af8[_0x1fb6b7(0x2dd)][_0x1fb6b7(0x179)]=_0x1fb6b7(0x27f),this[_0x1fb6b7(0x201)](_0x201a83));}[_0x58e4e4(0x201)](_0xb0a359){const _0x2ce144=_0x58e4e4;let _0x8f5f3a=_0xb0a359[_0x2ce144(0x24f)];if(!_0x8f5f3a)return;let _0x3910ac=this['_dataUpdateAnimationDuration'];if(_0x3910ac!=null){_0xb0a359[_0x2ce144(0x202)][_0x2ce144(0x13e)]=_0x2ce144(0x1c6),_0xb0a359[_0x2ce144(0x202)][_0x2ce144(0x126)]=String(_0x3910ac),_0x8f5f3a['style'][_0x2ce144(0x2b6)]=_0x2ce144(0x234);return;}delete _0xb0a359[_0x2ce144(0x202)][_0x2ce144(0x13e)],delete _0xb0a359['dataset'][_0x2ce144(0x126)],_0x8f5f3a[_0x2ce144(0x2dd)][_0x2ce144(0x2b6)]=_0x2ce144(0x2e8);}[_0x58e4e4(0x353)](){const _0x4ecde0=_0x58e4e4;if(!this[_0x4ecde0(0x3c7)])return;let _0x4f369f=this[_0x4ecde0(0x342)](),_0x20c830=(_0x4f369f==null?void 0x0:_0x4f369f['domId'])??this['chartId'],_0x34ae6e=document[_0x4ecde0(0x1e4)](_0x20c830);_0x34ae6e==null||delete _0x34ae6e['dataset']['sheetChartDataAnimation'],_0x34ae6e==null||delete _0x34ae6e[_0x4ecde0(0x202)][_0x4ecde0(0x126)];let _0x326bda=_0x34ae6e==null?void 0x0:_0x34ae6e['parentElement'];_0x326bda&&(_0x326bda[_0x4ecde0(0x2dd)][_0x4ecde0(0x179)]=this['_savedWrapperStyle'][_0x4ecde0(0x179)],_0x326bda[_0x4ecde0(0x2dd)]['pointerEvents']=this[_0x4ecde0(0x3c7)][_0x4ecde0(0x2b6)]),this[_0x4ecde0(0x3c7)]=null;}},ai=class extends _0xeb5e8c{constructor(_0x3f5e0f,_0x4b90d1,_0x2ebf7f,_0x3c5c8b,_0x201e3a,_0x226595){const _0x29dbe3=_0x58e4e4;super(_0x3f5e0f),this[_0x29dbe3(0x24e)]=_0x4b90d1,this[_0x29dbe3(0x1ad)]=_0x2ebf7f,this[_0x29dbe3(0x16a)]=_0x3c5c8b,this['_snapshotStore']=_0x201e3a,this[_0x29dbe3(0x37f)]=_0x226595;}[_0x58e4e4(0x307)](){const _0x373ef7=_0x58e4e4;let _0x15ccf2=this[_0x373ef7(0x24e)]();return _0x15ccf2?Kr(_0x15ccf2):null;}['setStyle'](_0x305cd1){const _0x51cc2b=_0x58e4e4;this[_0x51cc2b(0x1ad)](_0x305cd1);}['nextVersion'](){const _0x37a6a5=_0x58e4e4;return this[_0x37a6a5(0x1a6)][_0x37a6a5(0x23c)](this[_0x37a6a5(0x16a)]);}['commitSnapshot'](_0x42245d,_0x14d22c){const _0x3bdc02=_0x58e4e4;return this[_0x3bdc02(0x1a6)][_0x3bdc02(0x2f2)](this[_0x3bdc02(0x16a)],_0x42245d,_0x14d22c);}[_0x58e4e4(0x100)](){const _0x312e36=_0x58e4e4;this[_0x312e36(0x37f)]();}['invalidateSnapshot'](){const _0x5a105b=_0x58e4e4;this[_0x5a105b(0x1a6)][_0x5a105b(0x23c)](this['_snapshotKey']);}};function K(_0x34f329,_0x369889){return function(_0x793a5f,_0x5bee1f){_0x369889(_0x793a5f,_0x5bee1f,_0x34f329);};}function q(_0x3a23d7,_0x55cc55,_0x151f43,_0x41e3d6){const _0x36aadd=_0x58e4e4;var _0x5bd004=arguments[_0x36aadd(0x334)],_0xebb8ed=_0x5bd004<0x3?_0x55cc55:_0x41e3d6===null?_0x41e3d6=Object[_0x36aadd(0x168)](_0x55cc55,_0x151f43):_0x41e3d6,_0x56950e;if(typeof Reflect=='object'&&typeof Reflect[_0x36aadd(0x372)]==_0x36aadd(0x2de))_0xebb8ed=Reflect[_0x36aadd(0x372)](_0x3a23d7,_0x55cc55,_0x151f43,_0x41e3d6);else{for(var _0x53516b=_0x3a23d7[_0x36aadd(0x334)]-0x1;_0x53516b>=0x0;_0x53516b--)(_0x56950e=_0x3a23d7[_0x53516b])&&(_0xebb8ed=(_0x5bd004<0x3?_0x56950e(_0xebb8ed):_0x5bd004>0x3?_0x56950e(_0x55cc55,_0x151f43,_0xebb8ed):_0x56950e(_0x55cc55,_0x151f43))||_0xebb8ed);}return _0x5bd004>0x3&&_0xebb8ed&&Object[_0x36aadd(0x12d)](_0x55cc55,_0x151f43,_0xebb8ed),_0xebb8ed;}const oi=0.5;function si(_0x4f2b5d){const _0x6291e6=_0x58e4e4;let _0x5d9f5a=Math[_0x6291e6(0x20e)](_0x4f2b5d[_0x6291e6(0x313)]-_0x4f2b5d[_0x6291e6(0x11c)],0x0),_0x25afa0=Math[_0x6291e6(0x20e)](_0x4f2b5d[_0x6291e6(0x14e)]-_0x4f2b5d[_0x6291e6(0x2e3)],0x0),_0x584976=_0x4f2b5d[_0x6291e6(0x3a7)]['left']&&_0x4f2b5d['width']-_0x5d9f5a>oi,_0xd4f1bc=_0x4f2b5d['absolute'][_0x6291e6(0x23a)]&&_0x4f2b5d['height']-_0x25afa0>oi;return!_0x584976&&!_0xd4f1bc?_0x4f2b5d:{..._0x4f2b5d,'absolute':{'left':!_0x584976&&_0x4f2b5d[_0x6291e6(0x3a7)][_0x6291e6(0x270)],'top':!_0xd4f1bc&&_0x4f2b5d['absolute'][_0x6291e6(0x23a)]}};}function ci(_0x1fa05c){const _0x2aeff7=_0x58e4e4;if(!Object[_0x2aeff7(0x27d)][_0x2aeff7(0x2eb)]['call'](_0x1fa05c,_0x2aeff7(0x2b8)))return _0x1fa05c;let {border:_0x5e8363,..._0xbe3d25}=_0x1fa05c;return{..._0xbe3d25,'stroke':(_0x5e8363==null?void 0x0:_0x5e8363[_0x2aeff7(0x374)])??_0x2aeff7(0x156),'strokeWidth':(_0x5e8363==null?void 0x0:_0x5e8363['width'])??0x0};}function _0x3cf9(){const _0x2397e2=['isFinite','_disposed','Reference','UniverSheetsChartUIPlugin','_clearSelectedTarget','domId','resourceCollector','update','visible','_getImage','OTHERS','intercept','sheet.command.chart.open-focused-panel','undo','getSheetBySheetId','OVERRIDE_NATIVE','WaterfallSeries','getUnit','sheets-chart-ui.common.copy','_chartHostProviderService','setObjectType','_listenChartUpdateMutations','forEach','drawingId','style','function','_dataUpdateAnimationDuration','Pie','_initPermission','type','startY','Axes','sheets-chart-element-float-menu','params','innerHeight','auto','setChartEditorOpen','engine','hasOwnProperty','setOrientation','naturalWidth','div','GROUP','_updateTransform','_initDrawingDeactivationListener','setImage','_openPanel','_getDrawable','redo','resolve','version','sheet.operation.hide-chart-panel','_deactivateDataUpdateAnimation','_registerChartImageRenderObjectFactory','route','concat','_adapterRegistry','sheets-chart-ui.config','_domFrame','baseOn','-univer-mx-4\x20univer-overflow-visible','_sheetCanvasPopManagerService','clientHeight','_getChartRenderSkipReason','canvas','_shouldEnableChartElementEdit','getRect','_registerComponents','_config','_initSheetChange','all','_requestedUrl','PenIcon','chartObject','BUTTON','ParetoBarSeries','entries','MEDIA','endX','_closePopup','toPrimitive','sheets-chart-ui.waterfall.positive','takeSnapshot','afterRender$','clearPanelRoute','funnel','next','sheets-chart-ui.common.insertChart','featurePluginUngroupUpdate$','Waterfall','defaultValues','getActiveSheet','getFocusDrawings','format','viewBound','initialRect','_initMenus','sheets-chart.ui.service','top-center','focus$','_createHost','Canvas','sheets-chart-ui.section.chord','_activateHostWrapper','getValue','552415EDLCPb','_pendingDataUpdateChartIds','addObject','position$','setContextValue','Legend','length','registerRenderObjectFactory','(prefers-reduced-motion:\x20reduce)','_addWatermark','assignStyle','_sheetsChartUIService','Radar','sheet-chart-style-panel','error','univer-flex\x20univer-flex-col\x20univer-gap-3','open','getChartSnapshotImage','_clearPendingUrlImage','chartType','_getFloatDomInfo','then','_getOrCreateSheetChartHost','bind','_panelInitialized','setHostStyle','univer-my-1\x20univer-text-xs\x20univer-text-red-500','endsWith','_popupChartId','_sheetDrawingHitTestService','_cancelHostWait','checkHost','Subtotal','_loadUrlImage','_clearChartRuntimeCache','_isChartElementEditEnabled','source','_restoreHostWrapper','constructor','attachPopupToDynamicAbsolutePosition','isLatest','COMMA','getSheetId','SVG','_version','some','evented','_pendingUrlImage','-univer-mx-4','bottom','blockExecuteWithoutPermission','transform','ancestorTransform','ChartAndAxisTitles','remove$','_resolveLayout','crossOrigin','sheets-chart-ui.section.paretoLine','get','href','_syncActiveEditChart','select','_sidebarService','object','2736845jyukAD','clientX','getChartSourceSpec','featurePluginOrderUpdate$','decorate','serialize','color','offsetHeight','_sheetClipboardService','sheets-chart-ui.common.verticalAxis','openChartPanelById','panelRoute$','set','trendline','getDrawingOrder','getRenderUnitById','Url','_requestPaint','unitId','segmented','2944676MApSYU','_chartRenderMode','width','removeHost$','sheets-chart-ui.common.switchRowColumn','_componentManager','ensureHandle','univer-shrink-0','isConnected','_subscribeChartEvents','Scatter','Heatmap','sheet.operation.open-chart-panel','sheets-chart-ui.common.deleteChart','subscribeEvent','executeChartUpdateConfig','_sheetsChartService','_generatePasteMutations','getDirection','visibilityState','_initCopyPaste','name','sheets-chart-ui.common.dataRange','clear','indexOf','has','chartModelRemoved$','_resolveChartRenderMode','_pendingMutationConfigRenders','_clearHiddenSelectedTarget','dataSource$','sheets-chart-ui.waterfall.negative','_openEditPanelByDoubleClick','_activateEditPanelState','_isProviderDisposed','sheets-chart-ui.section.radar','header','absolute','_rangeSelectMode','_chartHostMap','getContextValue','setDataRange','ENTER','invert','ensureMount','_rect','_renderManagerService','pipe','range','map','onDispose','matchMedia','63430brwuLL','getParent','number','animateDataUpdate','_waiter','icon','getMatrix','register','sheetDisposed$','sheets-chart-ui.common.chart','setElementEditMode','_prepareDataUpdateRender','stringify','Relation','.chart-host','missing-float-dom','getRenderModel','_savedWrapperStyle','renderTransition','_isOwnedChart','_chartChangeSubscriptions','Fail\x20to\x20create\x20float\x20dom','_managed','sheet.command.chart.delete-focused-chart','Trendline','getRenderColor','legend','_panelRoute$','getImage','_cancelDebouncedCallbacks','sheet.command.chart.export-focused-image','rangeSelectMode','getBoundingClientRect','requestPaint','_debounceHandle','interceptCommand','sheets-chart-ui.common.customize','_lastRenderInputMap','disposeWithMe','_disposeChartEventSubscription','onCommandExecuted','restore','sheets-chart-ui.section.waterfall','syncHostLayout','scene','removeHost','isArray','univer-overflow-hidden','onRendered','_createChartRenderInstanceContext','sheets-chart-ui.common.openChartPanel','_resetChartRuntimeZIndex','_alignFloatDomPositionWithSceneRender','activeSheet$','relation','_commandService','359378lVQzCc','sheets-chart-ui.section.sunburst','Overlay','_cacheActiveDomChartSnapshot','getCurrentTypeOfUnit$','startX','REMOVE','Gauge','target','series','sheets-chart-ui.section.gridlinesAndTicks','_registerAdapter','markUnmanaged','univer-sticky\x20-univer-top-3\x20univer-z-10\x20-univer-mx-4\x20-univer-mt-3\x20univer-shrink-0\x20univer-bg-gray-0\x20univer-px-4\x20univer-pt-3\x20dark:!univer-bg-gray-900','dispose','sheetChartDataAnimationDuration','createElement','_resolvedConfig','offsetLeft','globalAlpha','syncLayout','_scheduleDataUpdateAnimationEnd','defineProperty','ChartStyle','src','_sheetSkeletonService','_markReady','_chartEventHandlers','_urlImage','small','@univerjs-pro/sheets-chart-ui','Chord','direction$','getChartPopupMenus','sheet.command.chart.copy-focused-chart','Candlestick','setConfig','rightY','_chartElementEditMode','sheetChartDataAnimation','sidebarOptions$','_chartHostProvider','getSubUnitId','closePath','_disposeChartChangeListeners','bounds','idMap','_disposeImage','HorizontalAxis','rect','_menuManagerService','push','sheets-chart-ui.common.invalidDataRange','_generateCopyPasteMutations','radius','endY','registerFeatureMenu','rangeInfo$','allSettled','univer-overflow-visible','renderChartsForPrinting','sheets-chart-ui.common.series','url','transparent','_canAnimateDataUpdate','_clearSheetChartRuntimeCaches','trim','_frameStyle','Boxplot','sheets-chart-ui.chord.target','sheets-chart-ui.common.horizontalAxis','Sunburst','_deactivateEditPanelState','_themeService','clientY','_sheetPrintInterceptorService','chartModelId','section','_draw','Dom','_canvasFloatDomService','getOwnPropertyDescriptor','getBatchUpdateOp','_snapshotKey','matches','getFocusedUnit','UNIVER_SHEET','_markHostReady','#-#','_initPrinting','_renderService','_injector','createRuntimeChartStyle','_entries','removeChartModel','_initCommands','OPERATION','dom','zIndex','innerWidth','_requestChartCanvasRender','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-5','pieSecondaryPlotType','category','_image','download','univer-flex\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','isManaged','_chartThemeService','[ChartRender]\x20Failed\x20to\x20render\x20chart\x20snapshot\x20for\x20printing','current','Column','_handleDrawingDoubleClick','_copyInfo','_chartSnapshotStoreService','rangeInfo','chartEditorOpen','WordCloud','checkChartCanRender','onTransformChange$','sourceSubUnitId','multiply','_renderChartModel','CUT','context','offsetTop','_renderWhenConfigReady','translate','Treemap','_initActiveChartModelListener','strokeWidth','_getOrCreateChartRenderInstance','chartRenderMode','_univerInstanceService','sheet.chart.edit.panel','filter','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','setStyle','sheets-chart-ui.common.rightVerticalAxis','string','_createPrintingChartObject','_chartEditorOpen$','_sheetInterceptorService','_snapshotStore','_renderModelManager','getSkeleton','Data','DRAWING_CHART','clearImage','.png','_setHostStyle','Timed\x20out\x20waiting\x20for\x20float\x20dom\x20host\x20\x22','onDoubleClick$','sheets-chart-ui.section.gauge','Row','_initActiveRuntimeLayerListener','copyId','getConfig','_contextService','_clearPanelState','iconName','sheets-chart-ui.common.exportImage','_activateDataUpdateAnimation','contains','_getHostPlacement','9204088tvZjEe','isHit','_drawingManagerService','_registerIcons','getFloatDomInfo','logicalOuterRect','items','mobile-sheet-chart-setup-panel','_restoreFloatDomPositionStream','sheets-chart-ui.common.setup','true','add','_dataUpdateAnimationChartIds','_sheetCanvasFloatDomManagerService','subscribe','Funnel','sheetId','_activeDomReadyChartIds','keys','click','sheets-chart-ui.common.editChart','titleKey','CHART','objects','_markNotReady','enableChartElementFloatMenu','_getSceneAndTransformerByDrawingSearch','height','_getCurrentSnapshotImage','_getChartRenderObject','Histogram','IndicatorLine','_bindChartEventHandlers','hidePanel','Image','render','DRAWING','pareto','sheets-chart-ui.waterfall.subtotal','_bindChartEventHandler','getElementById','missing-active-sheet','symbol','config$','transformChange$','sheets-chart-ui.common.legend','getBatchAddOp','nativeEvent','DEFAULT_PASTE','focusDrawing','executeCommand','setActiveChartModel','_getPlacement','COMMAND','close','VerticalAxis','showFloatMenu','pie','initPanel','getHostSize','chartId','complete','anonymous','querySelector','axis','naturalHeight','sheets-chart-ui.section.wordCloud','_disposeChartEventSubscriptions','PRINTING_COMPONENT_COLLECT','_applyHostInteractionState','dataset','arc','style$','startRow','getTransformerByCreate','opacity','fromEntries','supports','INSERT','Bar','sheets-chart-ui.section.histogram','groupId','max','_applyHostStyle','sheets-chart-ui.common.hideChartPanel','_configService','_createCopyInfoByRange','right','_url','mergeMenu','_focusedDrawings','markNotReady','getRangeInfo','interceptor','sheet.command.menu-insert-chart','iterator','offsetWidth','sheets-chart-ui.common.useAsCategoryLabels','add$','_pendingToken','getObjectIncludeInGroup','label','beforeCommandExecuted','DeleteIcon','sheets-chart-ui.section.paretoBar','setBorder','values','min','ParetoLineSeries','12bJQBml','updateFloatDom','onStarting','RightVerticalAxis','sheets-chart-ui.section.treemap','\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','_applyActiveChartRuntimeZIndex','_createImageChartHost','_drawChartImage','sheets-chart-ui.common.chartStyle','_chartEventSubscriptions','none','sheets-chart-ui.common.trendline','image','Pareto','getInterceptPoints','allSeriesStyle','top','GridlinesAndTicks','nextVersion','_shouldSuppressRender','Literals','invalidateSnapshot','activeChartModel','_activeChartId','_localeService','_sidebarDisposable','clearChart','_sheetPermissionCheckController','getObject','darkMode$','pluginName','getRuntimeContext','titles','_setChartRuntimeZIndex','7HwgqUm','save','_getOuterRect','parentElement','_chartUIService','seriesId','mountNode','isDomReady','getName','chartEditorOpen$','value','_lastActiveSheet','sheets-chart-ui.section.funnel','tab','resize','config','delete','_chartModelService','copyType','scroll','_getChartSnapshotKey','isRender','getBatchRemoveOp','scaleY','Series','activeRuntimeModel','getCanvasElement','setPanelRoute','sheet-chart-setup-panel','addClipboardHook','_generateCutPasteMutations','_chartInstanceMap','localPoint','_drawChartFrame','mode','applyPoint','left','dataUrl','_popupSessionKey','commitSnapshot','ensureHost','_resizeChart','ImageBitmap','markHostNotReady','_rerenderLatest','_renderDebounceMap','sheets-chart-ui.chartTypes.','CopyDoubleIcon','print','prototype','3195852imtNye','1000','SELECTOR','hit','UPDATE','chartModelAdded$','unsubscribe','packageName','updateFloatDomProps','_executeChartUpdateSourceConfig','activeChartModel$','children','Combination','onload','subUnitId','cancel','getDrawingData','_chartRenderService','_dataUpdateAnimationTimers','21TJYOGJ','rightYAxis','makeDirty','_removeHost$','dblclick','setRangeSelectMode','promise','abs','barStyle','getCurrentUnitOfType','Style','clip','split','call','dataSource','_disposeChartDomInstance','getDrawingByParam','checkMounted','createChartInstance','exportImage','isElementEditModeActive','scaleX','setDataUpdateAnimation','sheetTransform','_popupDisposable','getChartModel','ChartIcon','isInGroup','lineTo','data$','labelId','_init','_debounceHandleMap','isRowDirection','1575JKDMxR','drawingIds','context$','pointerEvents','_iconManager','border','sheets-chart-ui.section.candlestick','_pendingHost','registerCommand','beginPath','_disposeChartRenderInstance','Area','getRealBound','wordCloud','_sheetDrawingService','drawingType','getUnitId','_hostStyle'];_0x3cf9=function(){return _0x2397e2;};return _0x3cf9();}let li=class extends _0x7b52dc{constructor(_0x311083,_0x5542e1,_0x558d5a,_0x387afb){const _0x57f2f7=_0x58e4e4;super(),this['_sheetCanvasFloatDomManagerService']=_0x311083,this['_renderManagerService']=_0x5542e1,this[_0x57f2f7(0x189)]=_0x558d5a,this[_0x57f2f7(0x167)]=_0x387afb,W(this,_0x57f2f7(0x3a9),new Map()),W(this,'_activeDomReadyChartIds',new Set()),W(this,_0x57f2f7(0x294),new _0x456331()),W(this,_0x57f2f7(0x385),this['_removeHost$']['asObservable']()),this[_0x57f2f7(0x105)](this[_0x57f2f7(0x1c9)]['remove$']['subscribe'](_0x5bd0c1=>{const _0x56410f=_0x57f2f7;let _0x523ccd=this['_chartHostMap'][_0x56410f(0x368)](_0x5bd0c1['id']);_0x523ccd!=null&&_0x523ccd[_0x56410f(0x182)]()&&(_0x523ccd[_0x56410f(0x123)](),this[_0x56410f(0x294)][_0x56410f(0x31b)](_0x5bd0c1['id']));}));}['_getSceneAndTransformerByDrawingSearch'](_0x15a338){const _0x450317=_0x58e4e4;if(_0x15a338==null)return;let _0xeb2bd7=this[_0x450317(0x3b0)][_0x450317(0x37d)](_0x15a338),_0x529dbe=_0xeb2bd7==null?void 0x0:_0xeb2bd7[_0x450317(0x10b)];return _0xeb2bd7==null||_0x529dbe==null?null:{'scene':_0x529dbe,'transformer':_0x529dbe[_0x450317(0x206)](),'renderUnit':_0xeb2bd7,'canvas':_0xeb2bd7[_0x450317(0x2ea)][_0x450317(0x266)]()};}[_0x58e4e4(0x225)](_0x3f0320,_0x3044a4){const _0x1319fd=_0x58e4e4;let _0x101ab=this[_0x1319fd(0x1c9)],_0x538318=_0x3044a4||_0x1319fd(0x156),_0x2645cb=_0x101ab[_0x1319fd(0x1c0)](_0x3f0320);if(_0x2645cb){let {unitId:_0x2bd959,subUnitId:_0x5d54e8}=_0x2645cb;_0x101ab[_0x1319fd(0x286)](_0x2bd959,_0x5d54e8,_0x3f0320,{'stroke':_0x538318});}}['setHostStyle'](_0x5753cf,_0x22bcfc){const _0x8d6c=_0x58e4e4;let _0x533cf7=this['_sheetCanvasFloatDomManagerService'],_0x4f6439=_0x533cf7[_0x8d6c(0x1c0)](_0x5753cf);if(_0x4f6439){let {unitId:_0xad1710,subUnitId:_0x4d3a62}=_0x4f6439;_0x533cf7[_0x8d6c(0x286)](_0xad1710,_0x4d3a62,_0x5753cf,ci(_0x22bcfc));}}[_0x58e4e4(0x1f7)](_0x1b6979){const _0x42b451=_0x58e4e4;let _0x203c0d=this['_sheetCanvasFloatDomManagerService'][_0x42b451(0x1c0)](_0x1b6979);return _0x203c0d?_0x203c0d[_0x42b451(0x148)]:null;}['getHostClientRect'](_0x334811){const _0x55b748=_0x58e4e4;let _0x33c8e3=this['_sheetCanvasFloatDomManagerService'][_0x55b748(0x1c0)](_0x334811),_0x47887d=document['getElementById']((_0x33c8e3==null?void 0x0:_0x33c8e3['domId'])??_0x334811);return(_0x47887d==null?void 0x0:_0x47887d[_0x55b748(0xff)]())??null;}[_0x58e4e4(0x2a7)](_0x5f22eb,_0x2d6928){const _0x374033=_0x58e4e4;var _0x1b9bef;(_0x1b9bef=this[_0x374033(0x3a9)][_0x374033(0x368)](_0x5f22eb))==null||_0x1b9bef[_0x374033(0x2a7)](_0x2d6928);}[_0x58e4e4(0x34d)](_0x1049c0){const _0x1e78f1=_0x58e4e4;var _0x388484;return((_0x388484=this[_0x1e78f1(0x3a9)][_0x1e78f1(0x368)](_0x1049c0))==null?void 0x0:_0x388484[_0x1e78f1(0x2a2)]())??!0x1;}[_0x58e4e4(0x10a)](_0x25b9ab){const _0x3dda62=_0x58e4e4;var _0x598e58;(_0x598e58=this[_0x3dda62(0x3a9)][_0x3dda62(0x368)](_0x25b9ab))==null||_0x598e58[_0x3dda62(0x12b)]();}['removeHost'](_0x3c6e6d){const _0x9b1e78=_0x58e4e4;let _0x368f3d=this['_chartHostMap'][_0x9b1e78(0x368)](_0x3c6e6d);_0x368f3d==null||_0x368f3d[_0x9b1e78(0x125)](),this[_0x9b1e78(0x3a9)][_0x9b1e78(0x25c)](_0x3c6e6d);}async[_0x58e4e4(0x274)](_0x2337f4,_0x4901d2){const _0x1053af=_0x58e4e4;if(_0x4901d2===_0x3f6e51[_0x1053af(0x1de)])return this[_0x1053af(0x230)](_0x2337f4);if(_0x4901d2===_0x3f6e51[_0x1053af(0x166)])return this['_getOrCreateSheetChartHost'](_0x2337f4);let _0x4826c8=this[_0x1053af(0x344)](_0x2337f4);if(!_0x4826c8)throw Error(_0x1053af(0x3cb));return _0x4826c8[_0x1053af(0x388)]();}[_0x58e4e4(0x253)](_0x52bf5b){const _0x59fbe3=_0x58e4e4;var _0x2b86ba;return this['_activeDomReadyChartIds'][_0x59fbe3(0x39b)](_0x52bf5b)?(_0x2b86ba=this['_chartHostMap'][_0x59fbe3(0x368)](_0x52bf5b))!=null&&_0x2b86ba[_0x59fbe3(0x2a2)]()?!0x0:(this[_0x59fbe3(0x1cd)][_0x59fbe3(0x25c)](_0x52bf5b),this[_0x59fbe3(0x1c4)](_0x52bf5b),!0x1):!0x1;}[_0x58e4e4(0x277)](_0x49e822){const _0xc680ec=_0x58e4e4;this[_0xc680ec(0x1cd)][_0xc680ec(0x25c)](_0x49e822)&&(this['_restoreFloatDomPositionStream'](_0x49e822),this['_requestChartCanvasRender'](_0x49e822));}[_0x58e4e4(0x23f)](_0x3b0867){const _0xd2a430=_0x58e4e4;let _0x1490ac=this[_0xd2a430(0x260)](_0x3b0867);_0x1490ac&&this[_0xd2a430(0x189)]['nextVersion'](_0x1490ac);}[_0x58e4e4(0x230)](_0x4a52bc){const _0x4879e3=_0x58e4e4;let _0x411ffc=this[_0x4879e3(0x260)](_0x4a52bc);return!_0x411ffc||!this[_0x4879e3(0x1f7)](_0x4a52bc)?null:new ai(_0x4a52bc,()=>this[_0x4879e3(0x1f7)](_0x4a52bc),_0x5dee82=>this[_0x4879e3(0x347)](_0x4a52bc,_0x5dee82),_0x411ffc,this[_0x4879e3(0x189)],()=>this['_requestChartCanvasRender'](_0x4a52bc));}[_0x58e4e4(0x344)](_0x5bea9e){const _0x3c2ba2=_0x58e4e4;if(!this[_0x3c2ba2(0x1f7)](_0x5bea9e))return null;this[_0x3c2ba2(0x167)][_0x3c2ba2(0x22a)](_0x5bea9e,{'contentBox':{'wrapperInset':0x0,'contentInset':0x0}});let _0x1a5873=this[_0x3c2ba2(0x3a9)][_0x3c2ba2(0x368)](_0x5bea9e);if(_0x1a5873)return _0x1a5873;let _0x1eaeaa=new ii(_0x5bea9e,()=>this['_sheetCanvasFloatDomManagerService'][_0x3c2ba2(0x1c0)](_0x5bea9e),()=>this['_getHostPlacement'](_0x5bea9e),_0x2148ee=>this[_0x3c2ba2(0x347)](_0x5bea9e,_0x2148ee),()=>this['_disposed'],()=>this[_0x3c2ba2(0x16e)](_0x5bea9e),()=>this[_0x3c2ba2(0x277)](_0x5bea9e));return this['_chartHostMap']['set'](_0x5bea9e,_0x1eaeaa),_0x1eaeaa;}[_0x58e4e4(0x16e)](_0x45b6ba){const _0x2b1516=_0x58e4e4;this[_0x2b1516(0x1cd)][_0x2b1516(0x39b)](_0x45b6ba)||(this[_0x2b1516(0x1cd)][_0x2b1516(0x1c7)](_0x45b6ba),this[_0x2b1516(0x113)](_0x45b6ba),this['_requestChartCanvasRender'](_0x45b6ba));}[_0x58e4e4(0x113)](_0x4d808e){const _0x1a775a=_0x58e4e4;var _0x5a0981;let _0x3195f8=this['_sheetCanvasFloatDomManagerService'][_0x1a775a(0x1c0)](_0x4d808e),_0x12d0a0=_0x3195f8?(_0x5a0981=this['_renderManagerService']['getRenderUnitById'](_0x3195f8['unitId']))==null?void 0x0:_0x5a0981[_0x1a775a(0x10b)]:null;if(!_0x3195f8||!_0x12d0a0)return;let _0xffaf7=_0x3f8f2e(_0x3195f8[_0x1a775a(0x331)]['pipe'](_0x315267(0x1)),_0x12d0a0[_0x1a775a(0x318)]['pipe'](_0x3fe11d(_0x3195f8[_0x1a775a(0x331)]),_0x587f1(([,_0x5f3aff])=>_0x5f3aff)))[_0x1a775a(0x3b1)](_0x23f42d(),_0x587f1(si));this['_canvasFloatDomService'][_0x1a775a(0x22a)](_0x4d808e,{'position$':_0xffaf7});}[_0x58e4e4(0x1c4)](_0xe4bb4c){const _0x2dc3db=_0x58e4e4;let _0x3759cc=this[_0x2dc3db(0x1c9)][_0x2dc3db(0x1c0)](_0xe4bb4c);_0x3759cc&&this['_canvasFloatDomService'][_0x2dc3db(0x22a)](_0xe4bb4c,{'position$':_0x3759cc[_0x2dc3db(0x331)]});}[_0x58e4e4(0x260)](_0x2e2e32){const _0x5e5086=_0x58e4e4;let _0x1dd1f7=this['_sheetCanvasFloatDomManagerService'][_0x5e5086(0x1c0)](_0x2e2e32);return _0x1dd1f7?{'unitId':_0x1dd1f7[_0x5e5086(0x380)],'subUnitId':_0x1dd1f7[_0x5e5086(0x28c)],'chartId':_0x2e2e32}:null;}[_0x58e4e4(0x17b)](_0x2860c8){const _0x9b85c8=_0x58e4e4;var _0xd4b0b,_0x1b108b,_0x5863b9;let _0x10a36a=this[_0x9b85c8(0x1c9)][_0x9b85c8(0x1c0)](_0x2860c8);if(!_0x10a36a)return;let _0x41b3d1=(_0xd4b0b=this[_0x9b85c8(0x3b0)][_0x9b85c8(0x37d)](_0x10a36a['unitId']))==null?void 0x0:_0xd4b0b[_0x9b85c8(0x10b)],_0x21d4fa=(_0x41b3d1==null||(_0x1b108b=_0x41b3d1['getObjectIncludeInGroup'])==null?void 0x0:_0x1b108b['call'](_0x41b3d1,_0x14acce({'unitId':_0x10a36a[_0x9b85c8(0x380)],'subUnitId':_0x10a36a[_0x9b85c8(0x28c)],'drawingId':_0x2860c8})))??(_0x41b3d1==null?void 0x0:_0x41b3d1['getObject'](_0x14acce({'unitId':_0x10a36a['unitId'],'subUnitId':_0x10a36a[_0x9b85c8(0x28c)],'drawingId':_0x2860c8})))??null;_0x21d4fa==null||(_0x5863b9=_0x21d4fa[_0x9b85c8(0x293)])==null||_0x5863b9['call'](_0x21d4fa,!0x0),_0x41b3d1==null||_0x41b3d1[_0x9b85c8(0x293)](!0x0);}[_0x58e4e4(0x1bb)](_0x4597d6){const _0x5d4f5d=_0x58e4e4;let _0x1123e7=this[_0x5d4f5d(0x1c9)][_0x5d4f5d(0x1c0)](_0x4597d6);if(!_0x1123e7)return null;let _0x3129ae=this[_0x5d4f5d(0x1d6)](_0x1123e7[_0x5d4f5d(0x380)]),_0x2723e0=_0x3129ae==null?void 0x0:_0x3129ae[_0x5d4f5d(0x10b)],_0x4eed6e=document[_0x5d4f5d(0x1e4)](_0x1123e7['domId']??_0x4597d6);return qr(_0x1123e7[_0x5d4f5d(0x148)],{'scaleX':(_0x2723e0==null?void 0x0:_0x2723e0[_0x5d4f5d(0x2a6)])??0x1,'scaleY':(_0x2723e0==null?void 0x0:_0x2723e0['scaleY'])??0x1},_0x4eed6e?{'left':_0x4eed6e[_0x5d4f5d(0x129)],'top':_0x4eed6e[_0x5d4f5d(0x194)]}:void 0x0);}[_0x58e4e4(0x125)](){const _0x18e31b=_0x58e4e4;this['_disposed']||(this[_0x18e31b(0x3a9)]['forEach'](_0x1edcc6=>_0x1edcc6[_0x18e31b(0x125)]()),this[_0x18e31b(0x3a9)]['clear'](),this['_activeDomReadyChartIds'][_0x18e31b(0x399)](),this[_0x18e31b(0x294)][_0x18e31b(0x1f9)](),super[_0x18e31b(0x125)]());}};li=q([K(0x0,_0x569e33(_0x351035)),K(0x1,_0x569e33(_0x11bbe7)),K(0x2,_0x569e33(ni)),K(0x3,_0x569e33(_0x7e60e8))],li);const ui=_0x2fa213('sheets-chart-ui.host.provider'),di=_0x3f6e51[_0x58e4e4(0x1de)];var fi=class extends _0xeb5e8c{constructor(_0x42e494,_0x253387){const _0x3d3465=_0x58e4e4;super(_0x42e494),this['_rect']=_0x253387,W(this,_0x3d3465(0x35a),0x0),W(this,_0x3d3465(0x17f),void 0x0),W(this,'style',{});}[_0x58e4e4(0x307)](){const _0x2e6409=_0x58e4e4;return this[_0x2e6409(0x3af)];}[_0x58e4e4(0x1a0)](_0x323a02){const _0x1bbb10=_0x58e4e4;this[_0x1bbb10(0x2dd)]=_0x323a02;}[_0x58e4e4(0x23c)](){const _0x51cac6=_0x58e4e4;return++this[_0x51cac6(0x35a)];}[_0x58e4e4(0x273)](_0x47e873,_0x44b208){const _0x4a7f38=_0x58e4e4;return _0x44b208===this[_0x4a7f38(0x35a)]?(G(this['_image']),this[_0x4a7f38(0x17f)]=_0x47e873,!0x0):(G(_0x47e873),!0x1);}[_0x58e4e4(0x100)](){}[_0x58e4e4(0x23f)](){const _0x500fcc=_0x58e4e4;this[_0x500fcc(0x35a)]+=0x1;}[_0x58e4e4(0x317)](){const _0x5a8e36=_0x58e4e4;let _0x403cec=this[_0x5a8e36(0x17f)];return this[_0x5a8e36(0x17f)]=void 0x0,_0x403cec;}['dispose'](){const _0x19a052=_0x58e4e4;G(this[_0x19a052(0x17f)]),this['_image']=void 0x0,super[_0x19a052(0x125)]();}};function pi(_0x5eb532,_0x4500ed,_0x4ef046){const _0x2d1fd9=_0x58e4e4;let _0x598d1f=_0x5eb532[_0x2d1fd9(0x249)](_0x4500ed),_0xf436e3={..._0x5eb532[_0x2d1fd9(0x2dd)],'runtime':{..._0x598d1f,'layoutInset':0x8,..._0x4ef046===void 0x0?{}:{'addWatermark':_0x4ef046}},'direction':_0x4500ed};return _0x56bf83(_0xf436e3,_0x5eb532[_0x2d1fd9(0x341)]);}let J=class extends _0x7b52dc{constructor(_0x1a5369,_0x190def,_0x29cd39,_0x1c6184,_0x392ddf,_0x338b07,_0x443890,_0x1fe97c,_0x514cae,_0x1bd2f1,_0x4f87a2,_0x36b37b,_0x357cc9){const _0x3f4202=_0x58e4e4;super(),this['_chartHostProvider']=_0x1a5369,this[_0x3f4202(0x1c9)]=_0x190def,this[_0x3f4202(0x25d)]=_0x29cd39,this[_0x3f4202(0x1be)]=_0x1c6184,this['_univerInstanceService']=_0x392ddf,this['_renderManagerService']=_0x338b07,this[_0x3f4202(0x242)]=_0x443890,this[_0x3f4202(0x172)]=_0x1fe97c,this[_0x3f4202(0x183)]=_0x514cae,this['_themeService']=_0x1bd2f1,this['_configService']=_0x4f87a2,this[_0x3f4202(0x189)]=_0x36b37b,this[_0x3f4202(0x1a7)]=_0x357cc9,W(this,'_chartInstanceMap',new Map()),W(this,_0x3f4202(0x132),new Map()),W(this,_0x3f4202(0x233),new Map()),W(this,_0x3f4202(0x13d),new Map()),W(this,_0x3f4202(0x279),new Map()),W(this,_0x3f4202(0x2b1),new Map()),W(this,_0x3f4202(0x3ca),new Map()),W(this,_0x3f4202(0x383),void 0x0),W(this,_0x3f4202(0x337),void 0x0),W(this,_0x3f4202(0x104),new Map()),W(this,_0x3f4202(0x1c8),new Set()),W(this,_0x3f4202(0x290),new Map()),W(this,_0x3f4202(0x241),null),W(this,_0x3f4202(0x257),null);let _0x1c7db8=_0x1fd812(this[_0x3f4202(0x172)]),_0x3a34a0=this['_configService'][_0x3f4202(0x1b4)](_0x2b0dc7);this[_0x3f4202(0x383)]=(_0x3a34a0==null?void 0x0:_0x3a34a0[_0x3f4202(0x19b)])??di,this[_0x3f4202(0x337)]=_0x1c7db8['length']!==0x1||_0x1c7db8[0x0]!=='all',this[_0x3f4202(0x2fa)](),this[_0x3f4202(0x198)](),this[_0x3f4202(0x2f1)](),this[_0x3f4202(0x1b2)](),this['handleActiveSubUnitChange']();}[_0x58e4e4(0x33f)](_0x23b484){const _0x247a82=_0x58e4e4;let _0x5a33b6=this[_0x247a82(0x260)](_0x23b484);return _0x5a33b6?this['_chartSnapshotStoreService'][_0x247a82(0x3d2)](_0x5a33b6):void 0x0;}[_0x58e4e4(0x39d)](_0x182b99){const _0xcb5b43=_0x58e4e4;var _0x551b1f;return((_0x551b1f=this[_0xcb5b43(0x25d)][_0xcb5b43(0x240)])==null?void 0x0:_0x551b1f['id'])===_0x182b99?_0x3f6e51[_0xcb5b43(0x166)]:this[_0xcb5b43(0x383)];}['_getChartSnapshotKey'](_0x51ecbc){const _0x267637=_0x58e4e4;let _0x1a08f0=this[_0x267637(0x1c9)][_0x267637(0x1c0)](_0x51ecbc);return _0x1a08f0?{'unitId':_0x1a08f0[_0x267637(0x380)],'subUnitId':_0x1a08f0[_0x267637(0x28c)],'chartId':_0x51ecbc}:null;}[_0x58e4e4(0x2fa)](){const _0x22fd34=_0x58e4e4;this[_0x22fd34(0x383)]===_0x3f6e51['Image']&&this[_0x22fd34(0x105)](this['_sheetCanvasFloatDomManagerService'][_0x22fd34(0x335)](_0x43df04['DRAWING_CHART'],({key:_0x4c7968,config:_0x19fc8f,unitId:_0x170de3,subUnitId:_0x2618e7,drawingId:_0x1017b1})=>new Qr(_0x4c7968,_0x19fc8f,()=>this[_0x22fd34(0x189)][_0x22fd34(0x3d2)]({'unitId':_0x170de3,'subUnitId':_0x2618e7,'chartId':_0x1017b1}),()=>this['_chartHostProvider'][_0x22fd34(0x253)](_0x1017b1))));}[_0x58e4e4(0x198)](){const _0x58b019=_0x58e4e4;this[_0x58b019(0x105)](this[_0x58b019(0x25d)]['activeChartModel$'][_0x58b019(0x1ca)](_0x19e4d7=>{const _0x349dde=_0x58b019;let _0x5b7b4a=(_0x19e4d7==null?void 0x0:_0x19e4d7['id'])??null,_0x1f1630=this['_activeChartId'];_0x1f1630!==_0x5b7b4a&&(_0x1f1630&&(this[_0x349dde(0x140)]['markHostNotReady'](_0x1f1630),this[_0x349dde(0x112)](_0x1f1630),this[_0x349dde(0x2a0)](_0x1f1630)),this[_0x349dde(0x241)]=_0x5b7b4a,_0x5b7b4a&&(this[_0x349dde(0x2f9)](_0x5b7b4a),this[_0x349dde(0x140)]['markHostNotReady'](_0x5b7b4a),this[_0x349dde(0x22f)](_0x5b7b4a),this[_0x349dde(0x278)](_0x5b7b4a)));}));}[_0x58e4e4(0x2f1)](){const _0xb1e8e9=_0x58e4e4;this['disposeWithMe'](this[_0xb1e8e9(0x1be)]['featurePluginGroupUpdate$']['subscribe'](_0x145e57=>{const _0x58acbc=_0xb1e8e9;var _0xf264ff;let _0x4c129e=(_0xf264ff=this[_0x58acbc(0x25d)]['activeChartModel'])==null?void 0x0:_0xf264ff['id'];_0x4c129e&&_0x145e57[_0x58acbc(0x35b)](_0x57d3fe=>_0x57d3fe[_0x58acbc(0x289)][_0x58acbc(0x35b)](_0x3d636b=>_0x3d636b['drawingId']===_0x4c129e))&&this[_0x58acbc(0x25d)][_0x58acbc(0x1ef)](null);})),this['disposeWithMe'](this[_0xb1e8e9(0x1be)][_0xb1e8e9(0x31d)][_0xb1e8e9(0x1ca)](_0x104498=>{const _0x139198=_0xb1e8e9;var _0x445379;let _0x1ef62c=(_0x445379=this[_0x139198(0x25d)][_0x139198(0x240)])==null?void 0x0:_0x445379['id'];_0x1ef62c&&_0x104498[_0x139198(0x35b)](_0x25b60d=>_0x25b60d['parent'][_0x139198(0x2dc)]===_0x1ef62c||_0x25b60d[_0x139198(0x289)]['some'](_0x2ed25a=>_0x2ed25a[_0x139198(0x2dc)]===_0x1ef62c))&&this[_0x139198(0x25d)]['setActiveChartModel'](null);}));}[_0x58e4e4(0x1b2)](){const _0x56047c=_0x58e4e4;this[_0x56047c(0x105)](this[_0x56047c(0x1be)][_0x56047c(0x371)][_0x56047c(0x1ca)](_0x3374bf=>{const _0x3165=_0x56047c;var _0x5d1f6e;let _0x2f96aa=(_0x5d1f6e=this[_0x3165(0x25d)][_0x3165(0x240)])==null?void 0x0:_0x5d1f6e['id'];if(!_0x2f96aa){_0x3374bf[_0x3165(0x2b4)][_0x3165(0x2db)](_0x506291=>{const _0xff7400=_0x3165;this[_0xff7400(0x25d)][_0xff7400(0x2aa)](_0x506291)&&this[_0xff7400(0x112)](_0x506291);});return;}let _0x2ac52a=this[_0x3165(0x1c9)][_0x3165(0x1c0)](_0x2f96aa);(_0x2ac52a==null?void 0x0:_0x2ac52a[_0x3165(0x380)])===_0x3374bf['unitId']&&_0x2ac52a['subUnitId']===_0x3374bf[_0x3165(0x28c)]&&this[_0x3165(0x22f)](_0x2f96aa);})),this[_0x56047c(0x105)](this['_drawingManagerService'][_0x56047c(0x21e)][_0x56047c(0x1ca)](_0x405132=>{const _0xadf0bf=_0x56047c;var _0x42b0d0;let _0x469fc8=(_0x42b0d0=this['_chartModelService'][_0xadf0bf(0x240)])==null?void 0x0:_0x42b0d0['id'];if(!_0x469fc8)return;let _0x29e7e4=this[_0xadf0bf(0x1c9)][_0xadf0bf(0x1c0)](_0x469fc8);_0x29e7e4&&_0x405132['some'](_0x2fd064=>_0x2fd064['unitId']===_0x29e7e4['unitId']&&_0x2fd064[_0xadf0bf(0x28c)]===_0x29e7e4[_0xadf0bf(0x28c)])&&this['_applyActiveChartRuntimeZIndex'](_0x469fc8);})),this['disposeWithMe'](this[_0x56047c(0x25d)][_0x56047c(0x39c)][_0x56047c(0x1ca)](_0x2018c5=>{const _0x46ed17=_0x56047c;var _0x582d0b;this[_0x46ed17(0x143)](_0x2018c5),this['_deactivateDataUpdateAnimation'](_0x2018c5),this[_0x46ed17(0x104)]['delete'](_0x2018c5),this['_chartSnapshotStoreService']['clearChart'](_0x2018c5),this['_clearChartRuntimeCache'](_0x2018c5),this['_chartHostProvider'][_0x46ed17(0x277)](_0x2018c5),((_0x582d0b=this['_chartModelService'][_0x46ed17(0x240)])==null?void 0x0:_0x582d0b['id'])===_0x2018c5?this[_0x46ed17(0x25d)][_0x46ed17(0x1ef)](null):this[_0x46ed17(0x112)](_0x2018c5),this[_0x46ed17(0x2bd)](_0x2018c5);}));}[_0x58e4e4(0x278)](_0x5c55c2){const _0x5f1d7c=_0x58e4e4;let _0x1fde5c=this[_0x5f1d7c(0x104)][_0x5f1d7c(0x368)](_0x5c55c2);_0x1fde5c&&this[_0x5f1d7c(0x1df)](_0x5c55c2,_0x1fde5c[_0x5f1d7c(0x25b)],_0x1fde5c['style']);}[_0x58e4e4(0x2a0)](_0x4de041){const _0x3b7efc=_0x58e4e4;let _0x4ed3c3=this[_0x3b7efc(0x26b)][_0x3b7efc(0x368)](_0x4de041);(_0x4ed3c3==null?void 0x0:_0x4ed3c3[_0x3b7efc(0x26e)])===_0x3b7efc(0x178)&&(this[_0x3b7efc(0x1ff)](_0x4de041),_0x4ed3c3['dispose'](),this[_0x3b7efc(0x26b)]['delete'](_0x4de041)),this[_0x3b7efc(0x140)][_0x3b7efc(0x277)](_0x4de041),this[_0x3b7efc(0x140)][_0x3b7efc(0x10c)](_0x4de041);}[_0x58e4e4(0x2bd)](_0x2d1e69){const _0x5b12b2=_0x58e4e4;let _0x2dff96=this[_0x5b12b2(0x26b)]['get'](_0x2d1e69);_0x2dff96&&(this[_0x5b12b2(0x1ff)](_0x2d1e69),_0x2dff96[_0x5b12b2(0x125)](),this[_0x5b12b2(0x26b)][_0x5b12b2(0x25c)](_0x2d1e69)),this[_0x5b12b2(0x140)][_0x5b12b2(0x277)](_0x2d1e69),this[_0x5b12b2(0x140)][_0x5b12b2(0x10c)](_0x2d1e69);}[_0x58e4e4(0x350)](_0x34fd28){const _0xb34bcc=_0x58e4e4;var _0x3feefa,_0x3697bf;(_0x3feefa=this['_renderModelManager'][_0xb34bcc(0x3c6)](_0x1a63a8))==null||(_0x3697bf=_0x3feefa['clearRuntimeCache'])==null||_0x3697bf['call'](_0x3feefa,_0x34fd28);}['_clearSheetChartRuntimeCaches'](_0x5e2b3c,_0x223fe8){const _0x167f39=_0x58e4e4;let _0xfffa1e=this[_0x167f39(0x1be)][_0x167f39(0x28e)](_0x5e2b3c,_0x223fe8);Object[_0x167f39(0x226)](_0xfffa1e??{})[_0x167f39(0x2db)](_0x4a82ac=>{const _0x4b10fc=_0x167f39;_0x4a82ac[_0x4b10fc(0x2c2)]===_0x43df04[_0x4b10fc(0x1aa)]&&this[_0x4b10fc(0x350)](_0x4a82ac[_0x4b10fc(0x2dc)]);});}['_getChartRenderObject'](_0x213838,_0x921d77){const _0x18c5b7=_0x58e4e4;var _0x3c209c;return((_0x3c209c=_0x213838[_0x18c5b7(0x220)])==null?void 0x0:_0x3c209c['call'](_0x213838,_0x921d77))??_0x213838[_0x18c5b7(0x246)](_0x921d77)??null;}['_getChartRenderObjectContext'](_0x30beb9){const _0x41f6e0=_0x58e4e4;var _0x3ff69e;let _0x4ca008=this['_sheetCanvasFloatDomManagerService'][_0x41f6e0(0x1c0)](_0x30beb9);if(!_0x4ca008)return null;let _0x2caf69=(_0x3ff69e=this[_0x41f6e0(0x3b0)][_0x41f6e0(0x37d)](_0x4ca008[_0x41f6e0(0x380)]))==null?void 0x0:_0x3ff69e[_0x41f6e0(0x10b)];if(!_0x2caf69)return null;let _0x435ed6=this[_0x41f6e0(0x1d9)](_0x2caf69,_0x14acce({'unitId':_0x4ca008[_0x41f6e0(0x380)],'subUnitId':_0x4ca008[_0x41f6e0(0x28c)],'drawingId':_0x30beb9}));return _0x435ed6?{'info':_0x4ca008,'scene':_0x2caf69,'chartObject':_0x435ed6}:null;}['_setChartRuntimeZIndex'](_0x109a7a,_0x256509){const _0x5f3c60=_0x58e4e4;var _0x1a5f98,_0x15b948,_0x1af30c,_0x27989;let _0x4d95aa=this['_getChartRenderObjectContext'](_0x109a7a);_0x4d95aa&&((_0x1a5f98=(_0x15b948=_0x4d95aa[_0x5f3c60(0x30e)])['setProps'])==null||_0x1a5f98[_0x5f3c60(0x29e)](_0x15b948,{'zIndex':_0x256509}),(_0x1af30c=(_0x27989=_0x4d95aa[_0x5f3c60(0x30e)])[_0x5f3c60(0x293)])==null||_0x1af30c[_0x5f3c60(0x29e)](_0x27989,!0x0),_0x4d95aa['scene'][_0x5f3c60(0x293)](!0x0));}[_0x58e4e4(0x22f)](_0x4a3a15){const _0x58b2af=_0x58e4e4;let _0x820fc9=this[_0x58b2af(0x1c9)][_0x58b2af(0x1c0)](_0x4a3a15);if(!_0x820fc9)return;let _0x2c707f=this[_0x58b2af(0x1be)]['getDrawingOrder'](_0x820fc9['unitId'],_0x820fc9[_0x58b2af(0x28c)]);this[_0x58b2af(0x24b)](_0x4a3a15,_0x2c707f[_0x58b2af(0x334)]);}['_resetChartRuntimeZIndex'](_0x2c625a){const _0x4df2bd=_0x58e4e4;let _0x1cff88=this[_0x4df2bd(0x1c9)][_0x4df2bd(0x1c0)](_0x2c625a);if(!_0x1cff88)return;let _0x17d944=this['_drawingManagerService'][_0x4df2bd(0x37c)](_0x1cff88[_0x4df2bd(0x380)],_0x1cff88[_0x4df2bd(0x28c)]),_0x4c8b52=_0x17d944[_0x4df2bd(0x39a)](_0x2c625a);this['_setChartRuntimeZIndex'](_0x2c625a,_0x4c8b52===-0x1?Math[_0x4df2bd(0x20e)](_0x17d944[_0x4df2bd(0x334)]-0x1,0x0):_0x4c8b52);}[_0x58e4e4(0x275)](_0x1b1273,_0x43e037){const _0x4f879d=_0x58e4e4;let _0x9e3340=this[_0x4f879d(0x1c9)]['getFloatDomInfo'](_0x1b1273);if(_0x43e037[_0x4f879d(0x384)]!==void 0x0&&_0x43e037[_0x4f879d(0x1d7)]!==void 0x0&&_0x9e3340){var _0x4f2c8c;let {subUnitId:_0x170cfd}=_0x9e3340,_0x28f1f0=(_0x4f2c8c=this[_0x4f879d(0x19c)]['getCurrentUnitOfType'](_0xaf509f[_0x4f879d(0x16d)]))==null?void 0x0:_0x4f2c8c['getActiveSheet']();if((_0x28f1f0==null?void 0x0:_0x28f1f0[_0x4f879d(0x358)]())===_0x170cfd){let {width:_0x14008c,height:_0x593a9d}=_0x43e037,_0x36c9bb=this[_0x4f879d(0x25d)][_0x4f879d(0x2aa)](_0x1b1273),_0x438bba=_0x36c9bb==null?void 0x0:_0x36c9bb[_0x4f879d(0x2dd)];if(Math[_0x4f879d(0x298)](_0x14008c-((_0x438bba==null?void 0x0:_0x438bba[_0x4f879d(0x384)])||0x0))>0x1||Math[_0x4f879d(0x298)](_0x593a9d-((_0x438bba==null?void 0x0:_0x438bba[_0x4f879d(0x1d7)])||0x0))>0x1){_0x36c9bb==null||_0x36c9bb[_0x4f879d(0x338)]({..._0x438bba,'width':_0x14008c,'height':_0x593a9d});let _0x57c226=this[_0x4f879d(0x26b)][_0x4f879d(0x368)](_0x1b1273);_0x57c226&&(this[_0x4f879d(0x140)]['syncHostLayout'](_0x1b1273),_0x57c226[_0x4f879d(0x25a)]());}}}}[_0x58e4e4(0x101)](_0x5b8844,_0x3e86c7,_0x4a6d00=0x0){const _0x3d5540=_0x58e4e4;let _0x231247=this[_0x3d5540(0x2b1)][_0x3d5540(0x368)](_0x5b8844);_0x231247||(_0x231247=_0x1569e2(_0x17c866=>{const _0x3284be=_0x3d5540;this[_0x3284be(0x275)](_0x5b8844,_0x17c866);},_0x4a6d00),this[_0x3d5540(0x2b1)]['set'](_0x5b8844,_0x231247)),_0x231247(_0x3e86c7);}['handleActiveSubUnitChange'](){const _0xe7b64c=_0x58e4e4;let _0x28c48b=this['_renderDebounceMap'],_0x17dfa8=_0x24ec75=>{const _0x330edd=_0x29f5;if(!_0x28c48b['has'](_0x24ec75)){let _0x3272f7=_0x1569e2((_0x57bd86,_0x47da91,_0x1f1d39,_0x5e605c)=>{const _0x45404c=_0x29f5;var _0x188652,_0x219041;if(!_0x1f1d39)return;(_0x188652=_0x1f1d39[_0x45404c(0x17e)])==null||_0x188652[_0x45404c(0x1c2)][_0x45404c(0x2db)]((_0x4cae86,_0x591d26)=>{const _0x1c0275=_0x45404c;_0x4cae86[_0x1c0275(0x221)]||=this[_0x1c0275(0x242)]['t']('sheets-chart-ui.common.category')+'\x20'+(_0x591d26+0x1);}),_0x1f1d39[_0x45404c(0x120)][_0x45404c(0x2db)]((_0x11bb9a,_0x27d303)=>{const _0x5b8ceb=_0x45404c;_0x11bb9a[_0x5b8ceb(0x397)]||=this[_0x5b8ceb(0x242)]['t'](_0x5b8ceb(0x15c))+'\x20'+(_0x27d303+0x1);});let _0x4bc805=this['createRuntimeChartStyle'](_0x57bd86,_0x5e605c),_0xf2ed9f=(_0x219041=this['_univerInstanceService'][_0x45404c(0x29a)](_0xaf509f['UNIVER_SHEET']))==null?void 0x0:_0x219041['getActiveSheet']();(_0xf2ed9f==null?void 0x0:_0xf2ed9f['getSheetId']())===_0x47da91&&this[_0x45404c(0x1df)](_0x57bd86['id'],_0x1f1d39,_0x4bc805);},0x11);_0x28c48b['set'](_0x24ec75,_0x3272f7);}return _0x28c48b[_0x330edd(0x368)](_0x24ec75);};this['disposeWithMe'](this[_0xe7b64c(0x19c)]['focused$']['subscribe'](_0x560c84=>{const _0x217066=_0xe7b64c;let _0x2ed6b6=this['_univerInstanceService']['getCurrentUnitOfType'](_0xaf509f[_0x217066(0x16d)]);if(_0x560c84&&_0x2ed6b6&&_0x2ed6b6[_0x217066(0x2c3)]()===_0x560c84){var _0x525e76;let _0x36ed1b=_0x2ed6b6[_0x217066(0x320)]()[_0x217066(0x358)]();this['_lastActiveSheet']&&(this[_0x217066(0x257)][_0x217066(0x380)]!==_0x560c84||this[_0x217066(0x257)]['subUnitId']!==_0x36ed1b)&&this[_0x217066(0x158)](this[_0x217066(0x257)][_0x217066(0x380)],this['_lastActiveSheet'][_0x217066(0x28c)]),this[_0x217066(0x257)]={'unitId':_0x560c84,'subUnitId':_0x36ed1b};let _0x14eb17=this[_0x217066(0x1be)]['getDrawingData'](_0x560c84,_0x36ed1b);if(!((_0x525e76=this[_0x217066(0x3b0)][_0x217066(0x37d)](_0x560c84))!=null&&_0x525e76['with'](_0x4bbaee)[_0x217066(0x1a8)](_0x36ed1b)))return;if(_0x14eb17)for(let _0x23d652 in _0x14eb17){let {drawingId:_0x505c47}=_0x14eb17[_0x23d652],_0x39b7b6=this[_0x217066(0x25d)][_0x217066(0x2aa)](_0x505c47);_0x39b7b6&&_0x17dfa8(_0x39b7b6['id'])(_0x39b7b6,_0x36ed1b,_0x39b7b6[_0x217066(0x25b)],this[_0x217066(0x242)]['getDirection']());}}})),this[_0xe7b64c(0x105)](this[_0xe7b64c(0x160)][_0xe7b64c(0x247)][_0xe7b64c(0x1ca)](()=>{const _0x1dc4b2=_0xe7b64c;var _0x4b64b1;let _0x1808e2=this[_0x1dc4b2(0x19c)][_0x1dc4b2(0x29a)](_0xaf509f['UNIVER_SHEET']);if(!_0x1808e2)return;let _0x559d7d=_0x1808e2[_0x1dc4b2(0x2c3)](),_0x20abae=_0x1808e2['getActiveSheet']()[_0x1dc4b2(0x358)](),_0x17dfef=this[_0x1dc4b2(0x1be)][_0x1dc4b2(0x28e)](_0x559d7d,_0x20abae);if((_0x4b64b1=this[_0x1dc4b2(0x3b0)][_0x1dc4b2(0x37d)](_0x559d7d))!=null&&_0x4b64b1['with'](_0x4bbaee)[_0x1dc4b2(0x1a8)](_0x20abae)&&_0x17dfef)for(let _0x18cf1c in _0x17dfef){let {drawingId:_0x478a84}=_0x17dfef[_0x18cf1c],_0x4ea202=this[_0x1dc4b2(0x25d)][_0x1dc4b2(0x2aa)](_0x478a84);_0x4ea202&&_0x17dfa8(_0x4ea202['id'])(_0x4ea202,_0x20abae,_0x4ea202[_0x1dc4b2(0x25b)],this[_0x1dc4b2(0x242)]['getDirection']());}})),this[_0xe7b64c(0x105)](this[_0xe7b64c(0x1be)]['add$'][_0xe7b64c(0x1ca)](_0x2383ba=>{const _0x14167b=_0xe7b64c;_0x2383ba[_0x14167b(0x2db)](_0x308fdf=>{const _0x98fb98=_0x14167b;var _0x5a972e;let {drawingId:_0x2eae85,unitId:_0x26e5c4,subUnitId:_0x3b163b}=_0x308fdf,_0x53f1b4=this['_renderManagerService'][_0x98fb98(0x37d)](_0x26e5c4);if((_0x53f1b4==null?void 0x0:_0x53f1b4[_0x98fb98(0x2e2)])!==_0xaf509f[_0x98fb98(0x16d)]||!_0x53f1b4['with'](_0x4bbaee)[_0x98fb98(0x1a8)](_0x3b163b))return;let {drawingType:_0x493f54}=this[_0x98fb98(0x1be)][_0x98fb98(0x2a1)](_0x308fdf);if(_0x493f54!==_0x43df04[_0x98fb98(0x1aa)])return;let _0x25d440=this[_0x98fb98(0x1c9)][_0x98fb98(0x1c0)](_0x2eae85);this[_0x98fb98(0x143)](_0x2eae85);let _0x1e9d89=new _0x7b52dc();this[_0x98fb98(0x3ca)][_0x98fb98(0x37a)](_0x2eae85,_0x1e9d89);let _0x176c5e=(_0x25d440==null?void 0x0:_0x25d440[_0x98fb98(0x2ca)])??_0x2eae85,_0x2cebf7=_0x25d440==null?void 0x0:_0x25d440['rect'],_0x3aff63=(_0x5a972e=this[_0x98fb98(0x3b0)][_0x98fb98(0x37d)](_0x26e5c4))==null?void 0x0:_0x5a972e[_0x98fb98(0x10b)];_0x2cebf7&&_0x1e9d89[_0x98fb98(0x105)](_0x2cebf7[_0x98fb98(0x18e)][_0x98fb98(0x390)](_0x4eaace=>{const _0x4f2dc3=_0x98fb98;let {type:_0x5f33e9,value:_0x4b596c}=_0x4eaace;if(_0xda7662[_0x4f2dc3(0x25a)]===_0x5f33e9||_0xda7662[_0x4f2dc3(0x30b)]===_0x5f33e9){let {width:_0x5f4133,height:_0x2c3a22}=_0x4b596c;this[_0x4f2dc3(0x101)](_0x2eae85,{'width':_0x5f4133,'height':_0x2c3a22},0x64);}})),_0x3aff63&&_0x1e9d89[_0x98fb98(0x105)](_0x3aff63[_0x98fb98(0x18e)][_0x98fb98(0x390)](_0x5ca415=>{const _0x495478=_0x98fb98;var _0x10d0c9;_0x5ca415[_0x495478(0x2e2)]===_0xda7662['scale']&&(_0x10d0c9=document[_0x495478(0x1e4)](_0x176c5e))!=null&&_0x10d0c9[_0x495478(0x1fb)](_0x495478(0x3c4))&&this[_0x495478(0x140)][_0x495478(0x10a)](_0x2eae85);}));let _0x4ad535=this['_chartModelService'][_0x98fb98(0x2aa)](_0x2eae85);_0x4ad535&&_0x1e9d89[_0x98fb98(0x105)](_0x485af5([_0x4ad535[_0x98fb98(0x1e7)],_0x4ad535[_0x98fb98(0x204)],this[_0x98fb98(0x242)]['direction$']])[_0x98fb98(0x1ca)](([_0x14f000,_0xb6bc77,_0x3302a2])=>{_0x17dfa8(_0x4ad535['id'])(_0x4ad535,_0x3b163b,_0x14f000,_0x3302a2);}));});})),this[_0xe7b64c(0x105)](_0x485af5([this[_0xe7b64c(0x1be)][_0xe7b64c(0x364)]])[_0xe7b64c(0x1ca)](([_0x5515e6])=>{const _0x25043d=_0xe7b64c;_0x5515e6[_0x25043d(0x2db)](_0x123bd5=>{const _0x479523=_0x25043d;var _0x24816d;let {drawingId:_0x45f5ff}=_0x123bd5;this[_0x479523(0x143)](_0x45f5ff),((_0x24816d=this[_0x479523(0x25d)][_0x479523(0x240)])==null?void 0x0:_0x24816d['id'])===_0x45f5ff&&this[_0x479523(0x25d)][_0x479523(0x1ef)](null),this[_0x479523(0x1ff)](_0x45f5ff),this[_0x479523(0x132)][_0x479523(0x25c)](_0x45f5ff),this[_0x479523(0x140)][_0x479523(0x277)](_0x45f5ff),this[_0x479523(0x112)](_0x45f5ff),this[_0x479523(0x2bd)](_0x45f5ff),this[_0x479523(0x189)][_0x479523(0x244)](_0x45f5ff),this[_0x479523(0x350)](_0x45f5ff),this[_0x479523(0x104)][_0x479523(0x25c)](_0x45f5ff),this[_0x479523(0x13d)][_0x479523(0x25c)](_0x45f5ff);});}));}[_0x58e4e4(0x3c0)](_0x3722e8,_0x5e33c1){const _0x56786c=_0x58e4e4;var _0x5afd27;_0x5e33c1?this[_0x56786c(0x13d)]['set'](_0x3722e8,!0x0):this[_0x56786c(0x13d)][_0x56786c(0x25c)](_0x3722e8),(_0x5afd27=this[_0x56786c(0x26b)][_0x56786c(0x368)](_0x3722e8))==null||_0x5afd27[_0x56786c(0x3c0)](_0x5e33c1);}async['exportImage'](_0x4d88e1,_0x2c8f03){const _0x2fa065=_0x58e4e4;var _0x12346b;let _0xc11fc4=this[_0x2fa065(0x104)][_0x2fa065(0x368)](_0x4d88e1),_0x55655d=(_0x12346b=this[_0x2fa065(0x1c9)][_0x2fa065(0x1c0)](_0x4d88e1))==null?void 0x0:_0x12346b['rect'];if(_0xc11fc4&&_0x55655d)return(await this[_0x2fa065(0x1a7)][_0x2fa065(0x2a4)]({'chartId':_0x4d88e1,'config':_0xc11fc4[_0x2fa065(0x25b)],'style':_0xc11fc4[_0x2fa065(0x2dd)],'width':_0x55655d[_0x2fa065(0x384)],'height':_0x55655d[_0x2fa065(0x1d7)]},_0x2c8f03))[_0x2fa065(0x271)];if((_0x2c8f03==null?void 0x0:_0x2c8f03[_0x2fa065(0x322)])===_0x3f3eb8[_0x2fa065(0x359)])return;let _0x52fc83=this['_getCurrentSnapshotImage'](_0x4d88e1);return _0x52fc83?_0x25ae08(_0x52fc83):void 0x0;}['on'](_0x18ee4b,_0xddafc1,_0x3eaace){const _0x353875=_0x58e4e4;let _0x4c2945=this[_0x353875(0x132)][_0x353875(0x368)](_0x18ee4b);_0x4c2945||(_0x4c2945=new Map(),this[_0x353875(0x132)][_0x353875(0x37a)](_0x18ee4b,_0x4c2945));let _0xe80137=_0x4c2945[_0x353875(0x368)](_0xddafc1);_0xe80137||(_0xe80137=new Set(),_0x4c2945[_0x353875(0x37a)](_0xddafc1,_0xe80137)),_0xe80137[_0x353875(0x1c7)](_0x3eaace);let _0x2758dc=this[_0x353875(0x26b)][_0x353875(0x368)](_0x18ee4b);return _0x2758dc&&this['_bindChartEventHandler'](_0x18ee4b,_0x2758dc,_0xddafc1,_0x3eaace),{'dispose':()=>{const _0x6efcd7=_0x353875;var _0x4cff5b;(_0x4cff5b=this[_0x6efcd7(0x132)][_0x6efcd7(0x368)](_0x18ee4b))==null||(_0x4cff5b=_0x4cff5b[_0x6efcd7(0x368)](_0xddafc1))==null||_0x4cff5b[_0x6efcd7(0x25c)](_0x3eaace),this[_0x6efcd7(0x106)](_0x18ee4b,_0xddafc1,_0x3eaace);}};}[_0x58e4e4(0x1d8)](_0x3e2465){const _0x30c257=_0x58e4e4;let _0x22488a=this[_0x30c257(0x19c)]['getCurrentUnitOfType'](_0xaf509f['UNIVER_SHEET']),_0x5284f5=_0x22488a==null?void 0x0:_0x22488a[_0x30c257(0x320)](),_0x143513=_0x22488a==null?void 0x0:_0x22488a[_0x30c257(0x2c3)](),_0x3fd6a4=_0x5284f5==null?void 0x0:_0x5284f5['getSheetId']();if(_0x143513&&_0x3fd6a4)return this[_0x30c257(0x189)][_0x30c257(0x3d2)]({'unitId':_0x143513,'subUnitId':_0x3fd6a4,'chartId':_0x3e2465});}[_0x58e4e4(0x1dc)](_0x68840a,_0x129819){const _0x1de20d=_0x58e4e4;let _0xa21eff=this[_0x1de20d(0x132)][_0x1de20d(0x368)](_0x68840a);_0xa21eff&&_0xa21eff[_0x1de20d(0x2db)]((_0xe55d81,_0x6ff48b)=>{_0xe55d81['forEach'](_0x49bae4=>this['_bindChartEventHandler'](_0x68840a,_0x129819,_0x6ff48b,_0x49bae4));});}[_0x58e4e4(0x1e3)](_0x580116,_0x552173,_0x401d1d,_0x57f213){const _0x3687a1=_0x58e4e4;let _0xa7c291=this[_0x3687a1(0x233)][_0x3687a1(0x368)](_0x580116);_0xa7c291||(_0xa7c291=new Map(),this['_chartEventSubscriptions'][_0x3687a1(0x37a)](_0x580116,_0xa7c291));let _0x4fb655=_0xa7c291['get'](_0x401d1d);_0x4fb655||(_0x4fb655=new Map(),_0xa7c291['set'](_0x401d1d,_0x4fb655)),!_0x4fb655[_0x3687a1(0x39b)](_0x57f213)&&_0x4fb655[_0x3687a1(0x37a)](_0x57f213,_0x552173['on'](_0x401d1d,_0x57f213));}[_0x58e4e4(0x106)](_0x47f4f5,_0x2b9195,_0x42bc36){const _0x4a3d03=_0x58e4e4;var _0x29c712,_0x27b81;let _0x1afd82=(_0x29c712=this[_0x4a3d03(0x233)]['get'](_0x47f4f5))==null?void 0x0:_0x29c712[_0x4a3d03(0x368)](_0x2b9195);_0x1afd82==null||(_0x27b81=_0x1afd82[_0x4a3d03(0x368)](_0x42bc36))==null||_0x27b81[_0x4a3d03(0x125)](),_0x1afd82==null||_0x1afd82[_0x4a3d03(0x25c)](_0x42bc36);}[_0x58e4e4(0x1ff)](_0x393598){const _0x2e1c20=_0x58e4e4;let _0x506951=this[_0x2e1c20(0x233)][_0x2e1c20(0x368)](_0x393598);_0x506951==null||_0x506951['forEach'](_0x552cfb=>{_0x552cfb['forEach'](_0x6f465=>_0x6f465['dispose']()),_0x552cfb['clear']();}),this[_0x2e1c20(0x233)][_0x2e1c20(0x25c)](_0x393598);}['createRuntimeChartStyle'](_0x5bbbb5,_0x300d67){const _0x12812a=_0x58e4e4;return pi(_0x5bbbb5,_0x300d67,this[_0x12812a(0x337)]);}[_0x58e4e4(0x18d)](_0x380c6d){const _0x6c331d=_0x58e4e4;return this[_0x6c331d(0x304)](_0x380c6d)==null;}[_0x58e4e4(0x304)](_0x4a1ff3){const _0x96a117=_0x58e4e4;var _0x1c2901;let _0x1064dc=this['_sheetCanvasFloatDomManagerService'][_0x96a117(0x1c0)](_0x4a1ff3);if(!_0x1064dc)return _0x96a117(0x3c5);let {subUnitId:_0x28ff2b}=_0x1064dc,_0x1a6b5a=(_0x1c2901=this['_univerInstanceService'][_0x96a117(0x29a)](_0xaf509f['UNIVER_SHEET']))==null?void 0x0:_0x1c2901['getActiveSheet']();if(!_0x1a6b5a)return _0x96a117(0x1e5);if(_0x1a6b5a[_0x96a117(0x358)]()!==_0x28ff2b)return'inactive-sheet';}async[_0x58e4e4(0x1df)](_0x131ebf,_0x3b4618,_0x5b0285,_0x4f699a={}){const _0x470b2a=_0x58e4e4;let _0x1e469a=this['_renderModelManager'][_0x470b2a(0x3c6)](_0x1a63a8);if(!_0x1e469a)return;let _0x52b318=this[_0x470b2a(0x104)][_0x470b2a(0x368)](_0x131ebf);if(this[_0x470b2a(0x104)][_0x470b2a(0x37a)](_0x131ebf,{'config':_0x3b4618,'style':_0x5b0285}),this[_0x470b2a(0x304)](_0x131ebf))return;let {canAnimate:_0x52f502,renderMode:_0x5b1b57,shouldStartTransientAnimation:_0x52f72c,transientAnimationActive:_0x40f7ad}=this['_prepareDataUpdateRender'](_0x131ebf,_0x52b318!=null,_0x4f699a[_0x470b2a(0x3b9)]===!0x0);if(_0x5b1b57===_0x3f6e51['Image'])this['_disposeChartDomInstance'](_0x131ebf);else{var _0x924cfd;this[_0x470b2a(0x140)][_0x470b2a(0x23f)](_0x131ebf),((_0x924cfd=this[_0x470b2a(0x25d)][_0x470b2a(0x240)])==null?void 0x0:_0x924cfd['id'])===_0x131ebf&&this[_0x470b2a(0x22f)](_0x131ebf);}let _0x2ebae5=_0x5b1b57===_0x3f6e51[_0x470b2a(0x1de)]?_0x3f6e51[_0x470b2a(0x1de)]:_0x3f6e51[_0x470b2a(0x166)],_0x49cf16=await this[_0x470b2a(0x140)][_0x470b2a(0x274)](_0x131ebf,_0x2ebae5);if(!_0x49cf16){_0x52f72c&&this['_deactivateDataUpdateAnimation'](_0x131ebf);return;}this[_0x470b2a(0x140)][_0x470b2a(0x2a7)](_0x131ebf,_0x40f7ad?_0x4c1e3b:null);let _0x4c1e=this['_getOrCreateChartRenderInstance'](_0x131ebf,_0x2ebae5,_0x1e469a);_0x4c1e[_0x470b2a(0x345)](_0x49cf16);try{let _0x388548={'chartId':_0x131ebf,'config':_0x3b4618,'style':_0x5b0285};_0x52f502&&_0x52b318&&_0x4c1e[_0x470b2a(0x3c8)]?await _0x4c1e[_0x470b2a(0x3c8)]({'chartId':_0x131ebf,'config':_0x52b318['config'],'style':_0x52b318[_0x470b2a(0x2dd)]},_0x388548,{'duration':_0x4c1e3b}):await _0x4c1e['render'](_0x388548),await this[_0x470b2a(0x11a)](_0x131ebf,_0x5b1b57,_0x4c1e),_0x52f502&&_0x40f7ad&&this[_0x470b2a(0x12c)](_0x131ebf);}catch(_0x234644){if(_0x52f72c&&this['_deactivateDataUpdateAnimation'](_0x131ebf),_0x5b1b57!==_0x3f6e51[_0x470b2a(0x1de)])throw _0x234644;}}async[_0x58e4e4(0x11a)](_0x5e0592,_0x4cc50e,_0x3d6bc8){const _0x56866a=_0x58e4e4;var _0x5479d4;if(_0x4cc50e!==_0x3f6e51[_0x56866a(0x166)]||((_0x5479d4=this['_chartModelService']['activeChartModel'])==null?void 0x0:_0x5479d4['id'])!==_0x5e0592)return;let _0x388d83=await this[_0x56866a(0x140)]['ensureHost'](_0x5e0592,_0x3f6e51[_0x56866a(0x1de)]);if(!_0x388d83)return;let _0xf8a8a8=_0x388d83[_0x56866a(0x23c)]();try{let _0x216dc8=await _0x3d6bc8['exportImg']();_0x216dc8&&_0x388d83[_0x56866a(0x273)]({'type':_0x385294['Url'],'url':_0x216dc8},_0xf8a8a8)&&_0x388d83['requestPaint']();}catch{}}[_0x58e4e4(0x3c1)](_0x332841,_0x5f502d,_0x2a486f){const _0x5c66f8=_0x58e4e4;let _0x4cf9c1=this[_0x5c66f8(0x39d)](_0x332841),_0x19ad03=_0x4cf9c1===_0x3f6e51[_0x5c66f8(0x166)]&&_0x2a486f&&_0x5f502d&&this[_0x5c66f8(0x157)](_0x332841),_0x2a35dc=this[_0x5c66f8(0x1c8)][_0x5c66f8(0x39b)](_0x332841);return{'canAnimate':_0x19ad03,'renderMode':_0x2a35dc?_0x3f6e51[_0x5c66f8(0x166)]:_0x4cf9c1,'shouldStartTransientAnimation':!0x1,'transientAnimationActive':_0x2a35dc};}[_0x58e4e4(0x157)](_0x57542e){const _0x412ce3=_0x58e4e4;var _0x76e843,_0x42cbba,_0x382684,_0x2e4b1f;if(typeof document>'u'||typeof window>'u'||document[_0x412ce3(0x395)]==='hidden'||(_0x76e843=(_0x42cbba=window)[_0x412ce3(0x3b5)])!=null&&(_0x76e843=_0x76e843[_0x412ce3(0x29e)](_0x42cbba,_0x412ce3(0x336)))!=null&&_0x76e843[_0x412ce3(0x16b)]||(_0x382684=(_0x2e4b1f=window)[_0x412ce3(0x3b5)])!=null&&(_0x382684=_0x382684[_0x412ce3(0x29e)](_0x2e4b1f,_0x412ce3(0x27c)))!=null&&_0x382684[_0x412ce3(0x16b)])return!0x1;let _0x42d0b9=this[_0x412ce3(0x140)]['getHostClientRect'](_0x57542e);return _0x42d0b9!=null&&_0x42d0b9[_0x412ce3(0x384)]>0x0&&_0x42d0b9[_0x412ce3(0x1d7)]>0x0&&_0x42d0b9[_0x412ce3(0x213)]>0x0&&_0x42d0b9[_0x412ce3(0x35f)]>0x0&&_0x42d0b9[_0x412ce3(0x270)]<window[_0x412ce3(0x17a)]&&_0x42d0b9[_0x412ce3(0x23a)]<window[_0x412ce3(0x2e7)];}[_0x58e4e4(0x1b9)](_0x1b0dfd){const _0x225b44=_0x58e4e4;let _0x176941=this[_0x225b44(0x290)]['get'](_0x1b0dfd);_0x176941&&(clearTimeout(_0x176941),this['_dataUpdateAnimationTimers'][_0x225b44(0x25c)](_0x1b0dfd)),this[_0x225b44(0x1c8)][_0x225b44(0x1c7)](_0x1b0dfd),this[_0x225b44(0x140)][_0x225b44(0x2a7)](_0x1b0dfd,_0x4c1e3b);}[_0x58e4e4(0x12c)](_0xc6bb70){const _0x32c1ad=_0x58e4e4;let _0x36634a=this[_0x32c1ad(0x290)][_0x32c1ad(0x368)](_0xc6bb70);_0x36634a&&clearTimeout(_0x36634a);let _0x3acc3b=setTimeout(()=>{const _0x30f406=_0x32c1ad;this['_dataUpdateAnimationTimers']['delete'](_0xc6bb70),this[_0x30f406(0x1c8)][_0x30f406(0x25c)](_0xc6bb70)&&(this[_0x30f406(0x140)][_0x30f406(0x2a7)](_0xc6bb70,null),this[_0x30f406(0x2a0)](_0xc6bb70),this[_0x30f406(0x278)](_0xc6bb70));},_0x4c1e3b);this[_0x32c1ad(0x290)][_0x32c1ad(0x37a)](_0xc6bb70,_0x3acc3b);}[_0x58e4e4(0x2f9)](_0x3f78c7){const _0x5aab75=_0x58e4e4;let _0x30233e=this[_0x5aab75(0x290)][_0x5aab75(0x368)](_0x3f78c7);_0x30233e&&(clearTimeout(_0x30233e),this['_dataUpdateAnimationTimers']['delete'](_0x3f78c7)),this[_0x5aab75(0x1c8)][_0x5aab75(0x25c)](_0x3f78c7),this[_0x5aab75(0x140)][_0x5aab75(0x2a7)](_0x3f78c7,null);}async[_0x58e4e4(0x153)](_0x18fa7e,_0x3eb321,_0x455be6){const _0x526269=_0x58e4e4;let _0x5456d0=this['_drawingManagerService']['getDrawingData'](_0x18fa7e,_0x3eb321),_0x449c66=this[_0x526269(0x1be)][_0x526269(0x37c)](_0x18fa7e,_0x3eb321),_0x2f2043=Object[_0x526269(0x226)](_0x5456d0??{})[_0x526269(0x19e)](_0x410e02=>_0x410e02[_0x526269(0x2c2)]===_0x43df04[_0x526269(0x1aa)]&&_0x410e02['hidden']!==!0x0);await Promise[_0x526269(0x151)](_0x2f2043[_0x526269(0x3b3)](async _0x4223d1=>{const _0x1740fc=_0x526269;let _0x4387bc=await this['_createPrintingChartObject'](_0x4223d1,_0x449c66);_0x4387bc&&(_0x455be6[_0x1740fc(0x330)](_0x4387bc,_0x2521be),_0x4223d1['groupId']&&_0x1aaef1({'drawingId':_0x4223d1[_0x1740fc(0x20d)],'unitId':_0x18fa7e,'subUnitId':_0x3eb321},_0x4387bc,_0x455be6,this[_0x1740fc(0x1be)]));}));}async[_0x58e4e4(0x1a3)](_0x495731,_0xa0dfcc){const _0x43d611=_0x58e4e4;let _0x4d41a8=this[_0x43d611(0x25d)][_0x43d611(0x2aa)](_0x495731['drawingId']),_0x36ef2c=this[_0x43d611(0x1a7)][_0x43d611(0x3c6)](_0x1a63a8),_0x25b3a0=_0x495731['transform'],_0x4ec851=_0x4d41a8==null?void 0x0:_0x4d41a8[_0x43d611(0x25b)];if(!_0x4d41a8||!_0x36ef2c||!_0x25b3a0||!_0x4ec851||_0x25b3a0[_0x43d611(0x384)]==null||_0x25b3a0[_0x43d611(0x1d7)]==null)return null;let _0x10e549=new fi(_0x495731[_0x43d611(0x2dc)],{'width':_0x25b3a0['width'],'height':_0x25b3a0[_0x43d611(0x1d7)]}),_0x2864cf=_0x36ef2c[_0x43d611(0x2a3)](_0x3f6e51[_0x43d611(0x1de)],this[_0x43d611(0x110)]());_0x2864cf[_0x43d611(0x345)](_0x10e549);let _0x685bc1;try{await _0x2864cf[_0x43d611(0x1df)]({'chartId':_0x495731[_0x43d611(0x2dc)],'config':_0x4ec851,'style':this[_0x43d611(0x173)](_0x4d41a8,this[_0x43d611(0x242)][_0x43d611(0x394)]())});}catch(_0x1b83e1){console[_0x43d611(0x33c)](_0x43d611(0x184),_0x1b83e1);}finally{_0x685bc1=_0x10e549[_0x43d611(0x317)](),_0x2864cf[_0x43d611(0x125)](),_0x10e549['dispose']();}let _0x39d861=this['_chartSnapshotStoreService'][_0x43d611(0x3d2)]({'unitId':_0x495731['unitId'],'subUnitId':_0x495731[_0x43d611(0x28c)],'chartId':_0x495731[_0x43d611(0x2dc)]}),_0x5ade07=_0x685bc1??_0x39d861;if(!_0x5ade07)return null;let _0xaa2f40=_0xa0dfcc[_0x43d611(0x39a)](_0x495731['drawingId']);return new Qr(_0x14acce(_0x495731),{..._0x25b3a0,..._0x38aa53,...ci(_0x10e549[_0x43d611(0x2dd)]),'visible':!0x0,'zIndex':_0xaa2f40===-0x1?Math[_0x43d611(0x20e)](_0xa0dfcc[_0x43d611(0x334)]-0x1,0x0):_0xaa2f40},()=>_0x5ade07,void 0x0,_0x685bc1?()=>G(_0x685bc1):void 0x0);}[_0x58e4e4(0x19a)](_0x301767,_0x53b2c7,_0x43d373){const _0x908b23=_0x58e4e4;let _0x3b6dcf=this[_0x908b23(0x26b)][_0x908b23(0x368)](_0x301767);if((_0x3b6dcf==null?void 0x0:_0x3b6dcf[_0x908b23(0x26e)])===_0x53b2c7)return _0x3b6dcf;_0x3b6dcf&&(this[_0x908b23(0x1ff)](_0x301767),_0x3b6dcf[_0x908b23(0x125)](),this['_chartInstanceMap'][_0x908b23(0x25c)](_0x301767));let _0x35b5f2=_0x43d373['createChartInstance'](_0x53b2c7,this[_0x908b23(0x110)]());return this[_0x908b23(0x26b)][_0x908b23(0x37a)](_0x301767,_0x35b5f2),_0x35b5f2[_0x908b23(0x3c0)](this[_0x908b23(0x13d)][_0x908b23(0x368)](_0x301767)===!0x0),this[_0x908b23(0x1dc)](_0x301767,_0x35b5f2),_0x35b5f2;}[_0x58e4e4(0x110)](){const _0x5a4401=_0x58e4e4;return{'resolveHostStyle':({style:_0x30e148})=>_0x16cfdd({'style':_0x30e148,'getRenderColor':_0x5a6aed=>this[_0x5a4401(0x183)]['getRenderColor'](_0x5a6aed)}),'resolveRenderBackgroundColor':({style:_0x1caeff})=>this[_0x5a4401(0x183)][_0x5a4401(0x3cf)](_0x445815(_0x1caeff))};}[_0x58e4e4(0x143)](_0x3a5b97){const _0x399aab=_0x58e4e4;var _0x493009,_0x245a2d,_0x297167;(_0x493009=this[_0x399aab(0x3ca)][_0x399aab(0x368)](_0x3a5b97))==null||_0x493009[_0x399aab(0x125)](),this[_0x399aab(0x3ca)][_0x399aab(0x25c)](_0x3a5b97),(_0x245a2d=this[_0x399aab(0x279)][_0x399aab(0x368)](_0x3a5b97))==null||_0x245a2d[_0x399aab(0x28d)](),this[_0x399aab(0x279)][_0x399aab(0x25c)](_0x3a5b97),(_0x297167=this[_0x399aab(0x2b1)][_0x399aab(0x368)](_0x3a5b97))==null||_0x297167[_0x399aab(0x28d)](),this[_0x399aab(0x2b1)]['delete'](_0x3a5b97);}[_0x58e4e4(0x3d3)](){const _0x29f77c=_0x58e4e4;this[_0x29f77c(0x279)]['forEach'](_0x3da9c1=>_0x3da9c1['cancel']()),this[_0x29f77c(0x279)][_0x29f77c(0x399)](),this[_0x29f77c(0x2b1)][_0x29f77c(0x2db)](_0x2650cc=>_0x2650cc['cancel']()),this[_0x29f77c(0x2b1)][_0x29f77c(0x399)]();}[_0x58e4e4(0x125)](){const _0x1d4856=_0x58e4e4;this[_0x1d4856(0x3ca)][_0x1d4856(0x2db)](_0x221a0a=>_0x221a0a[_0x1d4856(0x125)]()),this[_0x1d4856(0x3ca)]['clear'](),this[_0x1d4856(0x290)][_0x1d4856(0x2db)](_0x42c79b=>clearTimeout(_0x42c79b)),this['_dataUpdateAnimationTimers'][_0x1d4856(0x399)](),this[_0x1d4856(0x1c8)][_0x1d4856(0x399)](),Array['from'](this[_0x1d4856(0x26b)][_0x1d4856(0x1ce)]())[_0x1d4856(0x2db)](_0x1b727c=>this['_disposeChartRenderInstance'](_0x1b727c)),this[_0x1d4856(0x13d)][_0x1d4856(0x399)](),this[_0x1d4856(0x3d3)](),this[_0x1d4856(0x104)][_0x1d4856(0x399)](),this[_0x1d4856(0x241)]=null,this[_0x1d4856(0x257)]=null,super[_0x1d4856(0x125)]();}};J=q([K(0x0,ui),K(0x1,_0x569e33(_0x351035)),K(0x2,_0x569e33(_0x1e33a9)),K(0x3,_0x1e7a38),K(0x4,_0x5b54fc),K(0x5,_0x569e33(_0x11bbe7)),K(0x6,_0x569e33(_0x37903c)),K(0x7,_0x569e33(_0x56051b)),K(0x8,_0x569e33(_0x3a2489)),K(0x9,_0x569e33(_0x3d87f5)),K(0xa,_0x58cb4f),K(0xb,_0x569e33(ni)),K(0xc,_0x1c66b2)],J);const Y=_0x2fa213(_0x58e4e4(0x326));let mi=class extends _0x1eef01{constructor(_0xe4ac28,_0x3398a1,_0x495bd2,_0x2156f6,_0x5d1833){const _0x498e5f=_0x58e4e4;super(_0x5d1833),this[_0x498e5f(0x25d)]=_0xe4ac28,this[_0x498e5f(0x392)]=_0x3398a1,this[_0x498e5f(0x116)]=_0x495bd2,this[_0x498e5f(0x19c)]=_0x2156f6,W(this,_0x498e5f(0x3a8),!0x1),W(this,_0x498e5f(0x1a4),new _0x251b31(!0x1)),W(this,_0x498e5f(0x3d1),new _0x251b31(null)),W(this,_0x498e5f(0x255),this['_chartEditorOpen$']['asObservable']()),W(this,'panelRoute$',this['_panelRoute$']['asObservable']());}get[_0x58e4e4(0x265)](){const _0x1411d0=_0x58e4e4;return this[_0x1411d0(0x25d)]['activeChartModel']??null;}get[_0x58e4e4(0x18b)](){const _0x421e43=_0x58e4e4;return this[_0x421e43(0x1a4)][_0x421e43(0x32d)]();}get[_0x58e4e4(0x3d5)](){const _0x66c226=_0x58e4e4;return this[_0x66c226(0x3a8)];}[_0x58e4e4(0x296)](_0x568cc3){const _0xc92b09=_0x58e4e4;this[_0xc92b09(0x3a8)]=_0x568cc3;}[_0x58e4e4(0x2e9)](_0x1c3b25){const _0x460346=_0x58e4e4;this[_0x460346(0x1a4)][_0x460346(0x32d)]()!==_0x1c3b25&&this['_chartEditorOpen$'][_0x460346(0x31b)](_0x1c3b25);}[_0x58e4e4(0x2a5)](_0xbc040b){const _0x4c6bd9=_0x58e4e4;var _0x70e2c5;return this['chartEditorOpen']&&((_0x70e2c5=this[_0x4c6bd9(0x25d)][_0x4c6bd9(0x240)])==null?void 0x0:_0x70e2c5['id'])===_0xbc040b;}['setPanelRoute'](_0x1fd30d,_0x17295c){const _0x5eca7f=_0x58e4e4;this[_0x5eca7f(0x3d1)][_0x5eca7f(0x31b)]({'chartId':_0x1fd30d,'route':_0x17295c});}[_0x58e4e4(0x319)](){const _0x659a9d=_0x58e4e4;this[_0x659a9d(0x3d1)]['next'](null);}[_0x58e4e4(0x3ab)](_0x3da4c2){const _0x2650fa=_0x58e4e4;let _0x3cfed8=this[_0x2650fa(0x25d)][_0x2650fa(0x240)];_0x3cfed8&&this['_executeChartUpdateSourceConfig']({'chartModelId':_0x3cfed8['id'],'range':_0x3da4c2});}[_0x58e4e4(0x2ec)](_0x379c4f){const _0x43b024=_0x58e4e4;let _0x273d41=this[_0x43b024(0x25d)][_0x43b024(0x240)];if(!_0x273d41)return;let _0x5bd6e2=this['_sheetsChartService'][_0x43b024(0x370)](_0x273d41['id']);if(!_0x5bd6e2||Array[_0x43b024(0x10d)](_0x5bd6e2))return;let _0x32de64={..._0x5bd6e2,'isRowDirection':_0x379c4f===_0x28717b[_0x43b024(0x1b1)]};this[_0x43b024(0x287)]({'chartModelId':_0x273d41['id'],'range':_0x32de64});}[_0x58e4e4(0x391)](_0x35c3c9){const _0xcef51=_0x58e4e4;var _0x5da427;this[_0xcef51(0x116)]['executeCommand'](_0x22f7cc['id'],{..._0x35c3c9,'unitId':((_0x5da427=this['_univerInstanceService'][_0xcef51(0x16c)]())==null?void 0x0:_0x5da427[_0xcef51(0x2c3)]())??''});}[_0x58e4e4(0x287)](_0x1cf51a){const _0x25ab9a=_0x58e4e4;var _0x4fdd5c;this['_commandService'][_0x25ab9a(0x1ee)](_0x112901['id'],{..._0x1cf51a,'unitId':((_0x4fdd5c=this[_0x25ab9a(0x19c)][_0x25ab9a(0x16c)]())==null?void 0x0:_0x4fdd5c['getUnitId']())??''});}[_0x58e4e4(0x125)](){const _0x14cbf1=_0x58e4e4;this['_chartEditorOpen$'][_0x14cbf1(0x1f9)](),this[_0x14cbf1(0x3d1)][_0x14cbf1(0x1f9)](),super[_0x14cbf1(0x125)]();}};mi=q([K(0x0,_0x569e33(_0x1e33a9)),K(0x1,_0x569e33(_0x5b7264)),K(0x2,_0x10f119),K(0x3,_0x5b54fc),K(0x4,_0x569e33(_0x7cd67c))],mi);var hi;function _0x29f5(_0x8e27ea,_0x30832c){_0x8e27ea=_0x8e27ea-0xff;const _0x3cf939=_0x3cf9();let _0x29f5f7=_0x3cf939[_0x8e27ea];return _0x29f5f7;}const gi={'axis':{..._0x473cc5,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x3c4c8b,'heatmap':_0x1cd218,'indicatorLine':_0x1f1171,'legend':_0x35dc7a,'lineAndArea':_0x486b7d,'pareto':_0x3d84e3,'pie':_0x5881e2,'relation':{..._0x10b920,'useValueAsSymbolSize':!0x0},'radar':_0x5704fa,'series':{..._0x5bf23e,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((hi=_0x40d6b3[_0x58e4e4(0x239)])==null?void 0x0:hi[_0x58e4e4(0x292)])??!0x1}},'style':_0x1cd657,'titles':_0x2a6745,'trendline':_0x57534a,'waterfallStyle':_0x3dd03e,'wordCloud':_0x154301},_i=_0x4b7fb3=>_0x4b7fb3[_0x58e4e4(0x29a)](_0xaf509f[_0x58e4e4(0x16d)])[_0x58e4e4(0x2c3)](),vi=_0x2e0c2d=>{const _0x5b9cbd=_0x58e4e4;var _0x4507fb;return(_0x4507fb=_0x2e0c2d['getCurrentUnitOfType'](_0xaf509f[_0x5b9cbd(0x16d)])['getActiveSheet']())==null?void 0x0:_0x4507fb[_0x5b9cbd(0x358)]();},yi=()=>{const _0x55f22d=_0x58e4e4;var _0x36a28e;let _0x1fa679=_0x341106(Y),_0x423323=_0x341106(_0x1e33a9),_0x6a7be=_0x341106(_0x37903c),_0x14a4a3=_0x341106(_0x56051b),_0x4a20e4=_0x1fd812(_0x14a4a3),_0x5e80ed=_0x207894(()=>{const _0x367b9f=_0x29f5;let _0x5aa8bc=Fr(Nr[_0x367b9f(0x2fc)](),_0x4a20e4);return _0x99c448(_0x5aa8bc['map'](_0x33abaf=>({'id':_0x33abaf['id'],'label':_0x6a7be['t'](_0x367b9f(0x27a)+_0x33abaf[_0x367b9f(0x2af)]),'pieSecondaryPlotType':_0x33abaf[_0x367b9f(0x17d)],'value':_0x33abaf[_0x367b9f(0x256)]})));},[_0x4a20e4,_0x6a7be]),_0x3432a1=_0x169faa(_0x423323[_0x55f22d(0x288)],_0x423323[_0x55f22d(0x240)]),_0xe8a483=_0x169faa(_0x3432a1==null?void 0x0:_0x3432a1[_0x55f22d(0x2b5)],_0x3432a1==null?void 0x0:_0x3432a1[_0x55f22d(0x193)]),_0x18ec2e=_0x169faa(_0x3432a1==null?void 0x0:_0x3432a1[_0x55f22d(0x3a0)],_0x3432a1==null?void 0x0:_0x3432a1[_0x55f22d(0x29f)]),_0x2d8d3c=_0x169faa(_0x18ec2e==null?void 0x0:_0x18ec2e['rangeInfo$'],_0x18ec2e==null?void 0x0:_0x18ec2e[_0x55f22d(0x218)]()),_0x3536a8=Array[_0x55f22d(0x10d)](_0x2d8d3c),_0x2f8520=_0x2d8d3c&&!_0x3536a8&&_0x2d8d3c[_0x55f22d(0x2b2)]?_0x28717b[_0x55f22d(0x1b1)]:_0x28717b[_0x55f22d(0x186)],_0x15db5c=_0x3536a8?(_0x36a28e=_0x2d8d3c[0x0])==null?void 0x0:_0x36a28e[_0x55f22d(0x3b2)]:_0x2d8d3c==null?void 0x0:_0x2d8d3c[_0x55f22d(0x18a)];return _0x3d17e9(_0x55f22d(0x2ee),{'className':_0x55f22d(0x17c),'children':[_0x4200cc(_0x239fe1,{'chartTypeOptions':_0x5e80ed,'dataSourceControl':_0x4200cc(bi,{'dataRange':_0x2d8d3c,'primaryRange':_0x15db5c}),'categoryToggleLabel':_0x6a7be['t']('sheets-chart-ui.common.useAsCategoryLabels',_0x2f8520===_0x28717b[_0x55f22d(0x1b1)]?_0x2f8520+'\x20'+(((_0x15db5c==null?void 0x0:_0x15db5c[_0x55f22d(0x3b2)][_0x55f22d(0x205)])??0x0)+0x1):_0x2f8520+'\x20'+_0x47d2a3((_0x15db5c==null?void 0x0:_0x15db5c['range']['startColumn'])??0x0)),'orientationControl':_0x3536a8?void 0x0:_0x4200cc(_0x3e78e8,{'size':_0x55f22d(0x134),'onClick':()=>_0x1fa679[_0x55f22d(0x2ec)](_0x2f8520===_0x28717b['Row']?_0x28717b[_0x55f22d(0x186)]:_0x28717b[_0x55f22d(0x1b1)]),'children':_0x6a7be['t'](_0x55f22d(0x386))})}),_0x4200cc(_0x2a16f3,{'checked':(_0xe8a483==null?void 0x0:_0xe8a483['plotVisibleOnly'])===!0x1,'disabled':!_0x3432a1,'onChange':_0x445792=>{const _0x45b52f=_0x55f22d;_0x3432a1&&_0x1fa679[_0x45b52f(0x391)]({'chartModelId':_0x3432a1['id'],'context':{'plotVisibleOnly':!_0x445792}});},'children':_0x6a7be['t']('sheets-chart-ui.common.showHiddenData')})]});};function bi(_0x15d72e){const _0xebd840=_0x58e4e4;let {dataRange:_0x389be9,primaryRange:_0x10a581}=_0x15d72e,_0x18bbab=_0x341106(Y),_0x942bf6=_0x341106(_0x37903c),_0x3a4d8f=_0x341106(_0x5b54fc),_0x3f89de=_0x341106(_0x2eb5c4),[_0x19cc5d,_0x109821]=_0x5b2f59(!0x1),[_0x59a855,_0x54674e]=_0x5b2f59(!0x1),[_0x375300,_0x38c33f]=_0x5b2f59(),_0x421389=_i(_0x3a4d8f),_0x10f365=vi(_0x3a4d8f),_0x4fb5d3=_0x389be9?jr(_0x389be9,_0x3a4d8f):'',_0x36b10e=_0x33bb4f(_0x4fb5d3),_0x59f985=_0x33bb4f(void 0x0),_0x3ae7ad=_0x33bb4f(null);_0x34e514(()=>{const _0x56129f=_0x29f5;_0x18bbab['setRangeSelectMode'](_0x19cc5d),_0x3f89de[_0x56129f(0x332)](_0x4b847,_0x19cc5d);},[_0x3f89de,_0x19cc5d,_0x18bbab]),_0x34e514(()=>()=>{const _0x13877e=_0x29f5;_0x18bbab[_0x13877e(0x296)](!0x1),_0x3f89de[_0x13877e(0x332)](_0x4b847,!0x1);},[_0x3f89de,_0x18bbab]);let _0x3afcfc=_0x5b263f(_0x4a58c3=>{const _0x42f8ca=_0x29f5;var _0x457d9c;if(jr(_0x389be9,_0x3a4d8f)===_0x4a58c3)return _0x38c33f(void 0x0),!0x0;let _0x16b585=_0x4a58c3[_0x42f8ca(0x29d)](_0x3b02a9[_0x42f8ca(0x357)]);if(!_0x4a58c3[_0x42f8ca(0x159)]()||_0x16b585[_0x42f8ca(0x334)]!==0x1||!((_0x457d9c=_0x3ae7ad[_0x42f8ca(0x185)])!=null&&_0x457d9c['verify']()))return _0x38c33f(_0x942bf6['t']('sheets-chart-ui.common.invalidDataRange')),!0x1;let {unitId:_0x37c138,sheetName:_0x2c7623,range:_0x478285}=_0x404b59(_0x16b585[0x0]),_0x3e7631=_0x37c138||_0x421389,_0x25c30c=_0x3a4d8f[_0x42f8ca(0x2d6)](_0x3e7631),_0x48b763=(_0x10a581==null?void 0x0:_0x10a581[_0x42f8ca(0x380)])===_0x3e7631?_0x10a581['subUnitId']:_0x10f365,_0x2b2b9c=_0x2c7623?_0x25c30c==null?void 0x0:_0x25c30c['getSheetBySheetName'](_0x2c7623):_0x25c30c==null?void 0x0:_0x25c30c[_0x42f8ca(0x2d3)](_0x48b763??'');return!_0x25c30c||!_0x2b2b9c||!_0xbde51a(_0x478285,_0x2b2b9c)?(_0x38c33f(_0x942bf6['t'](_0x42f8ca(0x14b))),!0x1):(_0x38c33f(void 0x0),_0x18bbab[_0x42f8ca(0x3ab)]({'rangeInfo':{'range':_0x478285,'unitId':_0x3e7631,'subUnitId':_0x2b2b9c[_0x42f8ca(0x358)]()}}),!0x0);},[_0x389be9,_0x942bf6,_0x10a581,_0x18bbab,_0x10f365,_0x421389,_0x3a4d8f]),_0x21fa63=_0x207894(()=>({'keyCodes':[{'keyCode':_0x33a6fb['ENTER'],'nativeTextEditorBehavior':_0xb02455[_0xebd840(0x2d4)]}],'handler':_0x558a9c=>{const _0x220cde=_0xebd840;_0x558a9c===_0x33a6fb[_0x220cde(0x3ac)]&&_0x3afcfc(_0x36b10e[_0x220cde(0x185)])&&(_0x59f985[_0x220cde(0x185)]=_0x36b10e[_0x220cde(0x185)]);}}),[_0x3afcfc]);return _0x4200cc(_0xebd840(0x2ee),{'className':_0xebd840(0x33d),'children':_0x3d17e9('div',{'children':[_0x4200cc(_0x5bbce0,{'title':_0x942bf6['t'](_0xebd840(0x398))}),_0x4200cc(_0x1311f6,{'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'maxRangeCount':0x1,'unitId':_0x421389,'subUnitId':_0x10f365,'initialValue':_0x4fb5d3,'keyboardEventConfig':_0x21fa63,'selectorRef':_0x3ae7ad,'onChange':(_0x32d0d8,_0x511cfa)=>{const _0xd736ff=_0xebd840;_0x36b10e['current']=_0x511cfa,_0x59a855&&_0x59f985[_0xd736ff(0x185)]!==_0x511cfa&&_0x3afcfc(_0x511cfa)&&(_0x59f985[_0xd736ff(0x185)]=_0x511cfa);},'onFocusChange':(_0x22f498,_0x402daa)=>{const _0x42f20b=_0xebd840;if(_0x402daa!==void 0x0&&(_0x36b10e[_0x42f20b(0x185)]=_0x402daa),_0x59a855||_0x109821(_0x22f498),_0x22f498)_0x59f985[_0x42f20b(0x185)]=_0x36b10e[_0x42f20b(0x185)];else{let _0x85d8a9=_0x59f985[_0x42f20b(0x185)];_0x59f985[_0x42f20b(0x185)]=void 0x0,_0x85d8a9!==void 0x0&&_0x36b10e[_0x42f20b(0x185)]!==_0x85d8a9&&_0x3afcfc(_0x36b10e[_0x42f20b(0x185)]);}},'onRangeSelectorDialogVisibleChange':_0x46e7a9=>{_0x54674e(_0x46e7a9),_0x109821(_0x46e7a9);}}),_0x375300?_0x4200cc('div',{'className':_0xebd840(0x348),'children':_0x375300}):null]})});}function X(_0x1facb1){const _0x18a693=_0x58e4e4;return _0x3d17e9(_0x33d6de,{'id':_0x1facb1['id'],'children':[_0x4200cc(_0x5043ee,{'children':_0x1facb1[_0x18a693(0x221)]}),_0x4200cc(_0x52594e,{'children':_0x1facb1[_0x18a693(0x289)]})]});}const xi=_0x359dee=>{const _0x17e196=_0x58e4e4;let _0xee715b=_0x341106(_0x37903c),_0x171b43=_0x341106(Y),_0x4741ef=_0x341106(_0x1e33a9),_0x1ccc85=_0x169faa(_0x4741ef[_0x17e196(0x288)],_0x4741ef[_0x17e196(0x240)]),_0x10f32c=_0x169faa(_0x171b43['panelRoute$'],null),_0x282784=_0x10f32c&&_0x10f32c[_0x17e196(0x1f8)]===(_0x1ccc85==null?void 0x0:_0x1ccc85['id'])?_0x10f32c[_0x17e196(0x2fb)]:null,_0x5b0086=_0x33d88d(),_0x419a4c=_0x3503bf(),[_0x4bc977,_0x37a7b5]=_0x5b2f59(null);_0x34e514(()=>{const _0x49a8a1=_0x17e196;_0x282784!=null&&_0x282784[_0x49a8a1(0x164)]&&_0x37a7b5(_0x282784[_0x49a8a1(0x164)]);},[_0x282784]);let _0x2ecf80=_0x31bb43['baseOn'](_0x5b0086,_0x5ec5cb[_0x17e196(0x2e0)]),_0x1bbbb1=_0x5b0086===_0x5ec5cb[_0x17e196(0x33a)],_0x2f14c0=_0x5b0086===_0x5ec5cb[_0x17e196(0x18c)],_0x142f54=_0x5b0086===_0x5ec5cb[_0x17e196(0x1cb)],_0x310f92=_0x31bb43[_0x17e196(0x300)](_0x5b0086,_0x5ec5cb['Bubble']),_0x4e9f13=_0x5b0086===_0x5ec5cb[_0x17e196(0x3c3)],_0x5ad89b=_0x5b0086===_0x5ec5cb[_0x17e196(0x31e)],_0x1f45b5=_0x5b0086===_0x5ec5cb[_0x17e196(0x237)],_0x5dcdf6=_0x5b0086===_0x5ec5cb[_0x17e196(0x38d)],_0x64673e,_0x1e21f;switch(_0x5b0086){case _0x5ec5cb[_0x17e196(0x13a)]:_0x64673e=_0xacfab2[_0x17e196(0x13a)],_0x1e21f=_0xee715b['t'](_0x17e196(0x2b9));break;case _0x5ec5cb[_0x17e196(0x1da)]:_0x64673e=_0xacfab2[_0x17e196(0x1da)],_0x1e21f=_0xee715b['t'](_0x17e196(0x20c));break;case _0x5ec5cb[_0x17e196(0x197)]:_0x64673e=_0xacfab2[_0x17e196(0x197)],_0x1e21f=_0xee715b['t'](_0x17e196(0x22d));break;case _0x5ec5cb['Sunburst']:_0x64673e=_0xacfab2[_0x17e196(0x15e)],_0x1e21f=_0xee715b['t'](_0x17e196(0x118));break;case _0x5ec5cb[_0x17e196(0x11e)]:_0x64673e=_0xacfab2[_0x17e196(0x11e)],_0x1e21f=_0xee715b['t'](_0x17e196(0x1b0));break;case _0x5ec5cb[_0x17e196(0x136)]:_0x64673e=_0xacfab2[_0x17e196(0x136)],_0x1e21f=_0xee715b['t'](_0x17e196(0x32b));}let _0x321dfc=_0x24b610(_0x5b0086,_0x1146fb['GeneralSeries'])&&!_0x310f92&&!_0x1f45b5;return _0x3d17e9(_0x3e0e80,{'value':_0x4bc977,'onChange':_0x37a7b5,'children':[_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x12e)],'label':_0xee715b['t'](_0x17e196(0x232)),'children':_0x4200cc(_0x35f468,{'defaultValues':_0x359dee[_0x17e196(0x31f)][_0x17e196(0x2dd)]})}),_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x363)],'label':_0xee715b['t']('sheets-chart-ui.common.chartAndAxisTitles'),'children':_0x4200cc(_0x38bcb8,{'commitMode':'blur','defaultValues':_0x359dee['defaultValues'][_0x17e196(0x24a)],'selectedTitleKey':_0x282784==null?void 0x0:_0x282784[_0x17e196(0x1d1)]})}),_0x321dfc&&_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x264)],'label':_0xee715b['t'](_0x17e196(0x154)),'children':_0x4200cc(_0x1e64ca,{'defaultValues':_0x359dee[_0x17e196(0x31f)]['series'],'NumberFormatField':_0x54c9b4,'selectedSeriesId':_0x282784==null?void 0x0:_0x282784[_0x17e196(0x251)]})}),_0x5ad89b&&_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x2d5)],'label':_0xee715b['t'](_0x17e196(0x109)),'children':_0x4200cc(_0x41a5e3,{'defaultValues':_0x359dee[_0x17e196(0x31f)]['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x4f3cd5,target:_0x51764e})=>_0x51764e===_0x498f80[_0x17e196(0x34e)]?_0xee715b['t'](_0x17e196(0x1e2)):_0x4f3cd5?_0x4f3cd5+'-('+_0xee715b['t'](_0x51764e===_0x498f80['Positive']?_0x17e196(0x316):_0x17e196(0x3a1))+')':'','NumberFormatField':_0x54c9b4,'selectedSeriesId':_0x282784==null?void 0x0:_0x282784['seriesId']})}),_0x1f45b5&&_0x3d17e9(_0x5a0c00,{'children':[_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x310)],'label':_0xee715b['t'](_0x17e196(0x224)),'children':_0x4200cc(_0x1e47fa,{'defaultValues':_0x359dee[_0x17e196(0x31f)][_0x17e196(0x1e1)],'NumberFormatField':_0x54c9b4,'showDataPointEditor':!0x0,'target':_0x17e196(0x299)})}),_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x228)],'label':_0xee715b['t'](_0x17e196(0x367)),'children':_0x4200cc(_0x1e47fa,{'defaultValues':_0x359dee[_0x17e196(0x31f)][_0x17e196(0x1e1)],'NumberFormatField':_0x54c9b4,'showDataPointEditor':!0x1,'target':'cumulativeLineStyle'})})]}),_0x2ecf80&&_0x4200cc(X,{'id':_0xacfab2['PieStyle'],'label':_0xee715b['t']('sheets-chart-ui.section.pie'),'children':_0x4200cc(_0x5ca595,{'defaultValues':_0x359dee[_0x17e196(0x31f)][_0x17e196(0x1f5)],'NumberFormatField':_0x54c9b4})}),_0x2f14c0&&_0x4200cc(X,{'id':_0xacfab2['WordCloud'],'label':_0xee715b['t'](_0x17e196(0x1fe)),'children':_0x4200cc(_0x318410,{'defaultValues':_0x359dee['defaultValues'][_0x17e196(0x2c0)]})}),_0x1bbbb1&&_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x33a)],'label':_0xee715b['t'](_0x17e196(0x3a5)),'children':_0x4200cc(_0x49accc,{'defaultValues':_0x359dee[_0x17e196(0x31f)]['radar']})}),_0x142f54&&_0x4200cc(X,{'id':_0xacfab2['Funnel'],'label':_0xee715b['t'](_0x17e196(0x258)),'children':_0x4200cc(_0x2b6c2e,{'defaultValues':_0x359dee[_0x17e196(0x31f)][_0x17e196(0x31a)],'gapControl':_0x17e196(0x36b)})}),_0x5dcdf6&&_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x38d)],'label':_0xee715b['t']('sheets-chart-ui.common.heatmap'),'children':_0x4200cc(_0x464207,{'defaultValues':_0x359dee[_0x17e196(0x31f)]['heatmap']})}),_0x4e9f13&&_0x4200cc(X,{'id':_0xacfab2['Relation'],'label':_0xee715b['t']('sheets-chart-ui.section.relation'),'children':_0x4200cc(_0x17770f,{'defaultValues':_0x359dee['defaultValues'][_0x17e196(0x115)]})}),_0x1c7739(_0x5b0086)&&_0x4200cc(X,{'id':_0xacfab2['LineAndArea'],'label':_0xee715b['t']('sheets-chart-ui.section.lineAndArea'),'children':_0x4200cc(_0x5cce89,{'defaultValues':_0x359dee[_0x17e196(0x31f)]['lineAndArea'],'lineStyleControl':_0x17e196(0x381)})}),_0x24b610(_0x5b0086,_0x1146fb['Legend'])&&_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x333)],'label':_0xee715b['t'](_0x17e196(0x1e9)),'children':_0x4200cc(_0x399936,{'defaultValues':_0x359dee[_0x17e196(0x31f)][_0x17e196(0x3d0)]})}),_0x24b610(_0x5b0086,_0x1146fb[_0x17e196(0x2e4)])&&_0x3d17e9(_0x5a0c00,{'children':[_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x147)],'label':_0xee715b['t'](_0x17e196(0x15d)),'children':_0x4200cc(_0x28695d,{'axis':'x','defaultValues':_0x359dee[_0x17e196(0x31f)]['axis'],'NumberFormatField':_0x54c9b4})}),_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x1f3)],'label':_0xee715b['t'](_0x17e196(0x377)),'children':_0x4200cc(_0x28695d,{'axis':'y','defaultValues':_0x359dee[_0x17e196(0x31f)][_0x17e196(0x1fc)],'NumberFormatField':_0x54c9b4})}),_0x419a4c&&_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x22c)],'label':_0xee715b['t'](_0x17e196(0x1a1)),'children':_0x4200cc(_0x28695d,{'axis':_0x17e196(0x13c),'defaultValues':_0x359dee[_0x17e196(0x31f)]['axis'],'NumberFormatField':_0x54c9b4})}),_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x23b)],'label':_0xee715b['t'](_0x17e196(0x121)),'children':_0x4200cc(_0x6840bc,{'defaultValues':_0x359dee['defaultValues'][_0x17e196(0x1fc)]})})]}),_0x24b610(_0x5b0086,_0x1146fb['IndicatorLine'])&&_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x1db)],'label':_0xee715b['t']('sheets-chart-ui.section.indicatorLine'),'children':_0x4200cc(_0x1be756,{'defaultValues':_0x359dee[_0x17e196(0x31f)]['indicatorLine']})}),_0x1a1c3c(_0x5b0086)&&_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x3ce)],'label':_0xee715b['t'](_0x17e196(0x235)),'children':_0x4200cc(_0x322608,{'defaultValues':_0x359dee[_0x17e196(0x31f)][_0x17e196(0x37b)]})}),_0x64673e&&_0x1e21f&&_0x4200cc(X,{'id':_0x64673e,'label':_0x1e21f,'children':_0x4200cc(_0x21b296,{})})]});};function Si(_0x3f0106){const _0x5e4ff9=_0x58e4e4;let {className:_0x53a8fe}=_0x3f0106,[_0x4ef5d2,_0x50d7d6]=_0x5b2f59(_0x305e77[_0x5e4ff9(0x1a9)]),_0x4b5e21=_0x341106(_0x56051b),_0x8c37cb=_0x341106(_0x37903c),_0x30a602=_0x341106(Y),_0x3f4e6c=_0x341106(_0x1e33a9),_0x35aa8b=_0x341106(_0x5b7264),_0x39ee5=_0x169faa(_0x3f4e6c['activeChartModel$'],_0x3f4e6c[_0x5e4ff9(0x240)]),_0x4468d1=_0x169faa(_0x30a602[_0x5e4ff9(0x379)],null),_0x1e8985=_0x207894(()=>{const _0x446b72=_0x5e4ff9;var _0x526c3b;if(!_0x39ee5)return null;let _0xac2d71=_0x35aa8b[_0x446b72(0x370)](_0x39ee5['id']);if(!_0xac2d71)return null;let _0x4bc2ae=Array[_0x446b72(0x10d)](_0xac2d71)?(_0x526c3b=_0xac2d71[0x0])==null?void 0x0:_0x526c3b[_0x446b72(0x3b2)]:_0xac2d71['rangeInfo'];return _0x4bc2ae?new _0x47dff2(_0x39ee5,new _0x4cd08c({'unitId':_0x4bc2ae[_0x446b72(0x380)],'subUnitId':_0x4bc2ae['subUnitId'],'chartId':_0x39ee5['id'],'injector':_0x4b5e21})):null;},[_0x39ee5,_0x4b5e21,_0x35aa8b]);if(_0x34e514(()=>{const _0x3a9964=_0x5e4ff9;var _0x25f8c4,_0x27d3d0;_0x39ee5&&(_0x4468d1==null?void 0x0:_0x4468d1[_0x3a9964(0x1f8)])===_0x39ee5['id']&&(((_0x25f8c4=_0x4468d1[_0x3a9964(0x2fb)])==null?void 0x0:_0x25f8c4[_0x3a9964(0x259)])===_0x305e77[_0x3a9964(0x29b)]&&_0x50d7d6(_0x305e77[_0x3a9964(0x29b)]),((_0x27d3d0=_0x4468d1[_0x3a9964(0x2fb)])==null?void 0x0:_0x27d3d0[_0x3a9964(0x259)])===_0x305e77[_0x3a9964(0x1a9)]&&_0x50d7d6(_0x305e77['Data']));},[_0x39ee5,_0x4468d1]),!_0x1e8985)return null;let _0x132521=_0x4200cc('div',{'className':_0x5e4ff9(0x22e)+(_0x4ef5d2===_0x305e77[_0x5e4ff9(0x29b)]?_0x5e4ff9(0x152):_0x5e4ff9(0x10e))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x53a8fe??'')+_0x5e4ff9(0x19f),'children':_0x4200cc(_0x60d2ef,{'ariaLabel':_0x8c37cb['t']('sheets-chart-ui.common.editChart'),'activeTab':_0x4ef5d2,'onTabChange':_0x50d7d6,'tabListClassName':_0x5e4ff9(0x389),'panelClassName':_0x4ef5d2===_0x305e77[_0x5e4ff9(0x29b)]?_0x5e4ff9(0x35e):void 0x0,'tabs':[{'id':_0x305e77[_0x5e4ff9(0x1a9)],'panelId':wi,'title':_0x8c37cb['t'](_0x5e4ff9(0x1c5)),'content':_0x4200cc(yi,{})},{'id':_0x305e77['Style'],'panelId':Ti,'title':_0x8c37cb['t'](_0x5e4ff9(0x103)),'content':_0x4200cc(xi,{'defaultValues':gi})}]})});return _0x4200cc(_0x1673a5,{'chartUIService':_0x30a602,'hostAdapter':_0x1e8985,'children':_0x132521});}const Ci=_0x58e4e4(0x19d),wi=_0x58e4e4(0x268),Ti=_0x58e4e4(0x33b);function Ei(_0xe3ce78){const _0x2485c4=_0x58e4e4;return _0xe3ce78[_0x2485c4(0x334)]===0x1&&Di(_0xe3ce78[0x0]);}function Di(_0x27995f){const _0x3d2b8c=_0x58e4e4;return(_0x27995f==null?void 0x0:_0x27995f[_0x3d2b8c(0x2c2)])===_0x43df04[_0x3d2b8c(0x1aa)]&&!_0x27995f[_0x3d2b8c(0x20d)];}let Oi=class extends _0x7b52dc{constructor(_0xf9718e,_0x26cf5f,_0x44e1d2,_0x2237a6,_0x2b6049,_0x3f01dc,_0x2a5b75,_0xf9ee02,_0x3ea4b5,_0x132e9b,_0x5ca31c,_0x4ee41c,_0x268bee,_0x3e11e1,_0x38f5d2){const _0x20aa6a=_0x58e4e4;var _0x58ef19;super(),this[_0x20aa6a(0x1be)]=_0xf9718e,this[_0x20aa6a(0x19c)]=_0x26cf5f,this[_0x20aa6a(0x25d)]=_0x44e1d2,this[_0x20aa6a(0x392)]=_0x2237a6,this[_0x20aa6a(0x28f)]=_0x2b6049,this[_0x20aa6a(0x34b)]=_0x3f01dc,this[_0x20aa6a(0x36c)]=_0x2a5b75,this[_0x20aa6a(0x149)]=_0xf9ee02,this[_0x20aa6a(0x1c9)]=_0x3ea4b5,this[_0x20aa6a(0x302)]=_0x132e9b,this[_0x20aa6a(0x116)]=_0x5ca31c,this['_sheetsChartUIService']=_0x4ee41c,this['_contextService']=_0x268bee,this['_localeService']=_0x3e11e1,W(this,'_sidebarDisposable',null),W(this,_0x20aa6a(0x351),void 0x0),this[_0x20aa6a(0x351)]=((_0x58ef19=_0x38f5d2[_0x20aa6a(0x1b4)](_0x20aa6a(0x2fe)))==null?void 0x0:_0x58ef19['enableChartElementFloatMenu'])===!0x0,this[_0x20aa6a(0x325)](),this[_0x20aa6a(0x105)](this[_0x20aa6a(0x19c)][_0x20aa6a(0x11b)](_0xaf509f[_0x20aa6a(0x16d)])[_0x20aa6a(0x1ca)](_0x48c80c=>{const _0x3e8af9=_0x20aa6a;var _0x4fa36b;_0x48c80c||(_0x4fa36b=this[_0x3e8af9(0x243)])==null||_0x4fa36b['dispose']();})),this[_0x20aa6a(0x105)](_0x43ce57(this[_0x20aa6a(0x34b)][_0x20aa6a(0x1af)]['subscribe'](async({drawing:_0x100193})=>{const _0x3db610=_0x20aa6a;await this[_0x3db610(0x187)](_0x100193);})));}[_0x58e4e4(0x2f3)](){const _0x3f748c=_0x58e4e4;this[_0x3f748c(0x243)]=this[_0x3f748c(0x36c)][_0x3f748c(0x33e)]({'id':Ci,'header':{'title':this['_localeService']['t'](_0x3f748c(0x1d0))},'width':0x154,'children':{'label':Ci},'onClose':()=>{const _0x10c1ff=_0x3f748c;this['_sidebarDisposable']=null,this[_0x10c1ff(0x15f)](),this['_chartModelService'][_0x10c1ff(0x240)]&&this[_0x10c1ff(0x25d)][_0x10c1ff(0x1ef)](null),this[_0x10c1ff(0x1be)][_0x10c1ff(0x1ed)](null),this['_contextService'][_0x10c1ff(0x332)](_0x654e75,!0x1);}});}[_0x58e4e4(0x1dd)](){const _0x2c8a38=_0x58e4e4;let _0x39f85e=this[_0x2c8a38(0x243)];this[_0x2c8a38(0x243)]=null,this[_0x2c8a38(0x15f)](),this[_0x2c8a38(0x25d)][_0x2c8a38(0x240)]&&this[_0x2c8a38(0x25d)][_0x2c8a38(0x1ef)](null),_0x39f85e==null||_0x39f85e['dispose']();}[_0x58e4e4(0x1f6)](){const _0x306640=_0x58e4e4;let _0x304708=this[_0x306640(0x19c)][_0x306640(0x29a)](_0xaf509f[_0x306640(0x16d)]);this[_0x306640(0x105)](this[_0x306640(0x36c)][_0x306640(0x13f)]['subscribe'](_0x515ae3=>{const _0x50ef64=_0x306640;_0x515ae3['id']===_0x50ef64(0x19d)&&(_0x515ae3[_0x50ef64(0x2cd)]||this[_0x50ef64(0x36c)][_0x50ef64(0x13f)]['next']({'visible':!0x1}));})),this['disposeWithMe'](_0x485af5([this['_chartModelService'][_0x306640(0x288)],this[_0x306640(0x339)][_0x306640(0x255)]])[_0x306640(0x3b1)](_0x587f1(([_0x35e052,_0x56f91f])=>_0x56f91f?(_0x35e052==null?void 0x0:_0x35e052['id'])??null:null),_0x23f42d(),_0x4f483a(null),_0x76194f())['subscribe'](([_0x3086b1,_0x234486])=>{const _0x5b262a=_0x306640;this[_0x5b262a(0x36a)](_0x3086b1,_0x234486);})),this['disposeWithMe'](this[_0x306640(0x25d)]['activeChartModel$'][_0x306640(0x1ca)](_0x4d9677=>{const _0x18e767=_0x306640;!_0x4d9677&&this[_0x18e767(0x243)]&&this['hidePanel']();})),this[_0x306640(0x105)](this['_commandService'][_0x306640(0x107)](_0x4bd048=>{const _0x1b71a3=_0x306640;if(_0x4bd048['id']===H['id']){let _0x1ef6f1=_0x4bd048[_0x1b71a3(0x2e6)];if(!Di(this['_drawingManagerService'][_0x1b71a3(0x2a1)]({'unitId':_0x1ef6f1['unitId'],'subUnitId':_0x1ef6f1[_0x1b71a3(0x28c)],'drawingId':_0x1ef6f1[_0x1b71a3(0x2dc)]})))return;this[_0x1b71a3(0x378)](_0x1ef6f1[_0x1b71a3(0x2dc)],_0x1ef6f1[_0x1b71a3(0x2fb)]);}if(_0x4bd048['id']===wr['id']&&this[_0x1b71a3(0x1dd)](),_0x4bd048['id']===_0x13af68['id']){var _0x1cf649;_0x4bd048[_0x1b71a3(0x2e6)][_0x1b71a3(0x1f8)]===((_0x1cf649=this[_0x1b71a3(0x25d)][_0x1b71a3(0x240)])==null?void 0x0:_0x1cf649['id'])&&this[_0x1b71a3(0x1dd)](),this['_contextService'][_0x1b71a3(0x3aa)](_0x654e75)&&(this['_contextService'][_0x1b71a3(0x332)](_0x654e75,!0x1),this[_0x1b71a3(0x1be)]['focusDrawing'](null));}})),this[_0x306640(0x105)](this[_0x306640(0x1c9)][_0x306640(0x364)][_0x306640(0x1ca)](({id:_0x160b3e})=>{const _0x521060=_0x306640;this[_0x521060(0x339)][_0x521060(0x2a5)](_0x160b3e)&&this[_0x521060(0x1dd)]();})),this[_0x306640(0x105)](this[_0x306640(0x1c9)][_0x306640(0x1e8)][_0x306640(0x1ca)](({id:_0x4936a3})=>{const _0x195b27=_0x306640;this[_0x195b27(0x339)][_0x195b27(0x2a5)](_0x4936a3)&&(this['_sheetsChartUIService']['clearPanelRoute'](),this[_0x195b27(0x28f)]['setElementEditMode'](_0x4936a3,!0x1),this[_0x195b27(0x306)](_0x4936a3)&&this['_chartRenderService'][_0x195b27(0x3c0)](_0x4936a3,!0x0));})),this[_0x306640(0x105)](this[_0x306640(0x1be)][_0x306640(0x328)][_0x306640(0x1ca)](_0x40a57f=>{const _0x100eea=_0x306640;let _0x36a119=_0x40a57f[0x0];if(!this[_0x100eea(0x339)][_0x100eea(0x3d5)]){if(Ei(_0x40a57f)){var _0x5a106c;let _0x383f8f=this[_0x100eea(0x25d)]['getChartModel'](_0x36a119['drawingId']);_0x383f8f&&this[_0x100eea(0x3c9)](_0x383f8f['id'])&&((_0x5a106c=this[_0x100eea(0x25d)]['activeChartModel'])==null?void 0x0:_0x5a106c['id'])!==_0x383f8f['id']&&this['_chartModelService']['setActiveChartModel'](_0x383f8f);return;}this['_chartModelService'][_0x100eea(0x240)]&&this[_0x100eea(0x25d)][_0x100eea(0x1ef)](null),!_0x36a119&&!this[_0x100eea(0x339)][_0x100eea(0x3d5)]&&this[_0x100eea(0x1dd)]();}})),_0x304708&&(this[_0x306640(0x105)](_0x304708[_0x306640(0x3be)][_0x306640(0x1ca)](()=>{const _0x32a22f=_0x306640;this[_0x32a22f(0x1dd)]();})),this[_0x306640(0x105)](_0x304708[_0x306640(0x114)][_0x306640(0x1ca)](()=>{const _0x26d559=_0x306640;this[_0x26d559(0x1dd)]();})));}async[_0x58e4e4(0x187)](_0xa29f4d){const _0x41663a=_0x58e4e4;this[_0x41663a(0x339)]['chartEditorOpen']||Di(_0xa29f4d)&&this[_0x41663a(0x3c9)](_0xa29f4d[_0x41663a(0x2dc)])&&await this['_openEditPanelByDoubleClick'](_0xa29f4d[_0x41663a(0x380)],_0xa29f4d[_0x41663a(0x28c)],_0xa29f4d[_0x41663a(0x2dc)]);}async[_0x58e4e4(0x3a2)](_0x260318,_0x5d3981,_0x2d9ef7){const _0x22ef6a=_0x58e4e4;this[_0x22ef6a(0x25d)][_0x22ef6a(0x2aa)](_0x2d9ef7)&&this[_0x22ef6a(0x3c9)](_0x2d9ef7)&&await this[_0x22ef6a(0x116)][_0x22ef6a(0x1ee)](H['id'],{'unitId':_0x260318,'subUnitId':_0x5d3981,'drawingId':_0x2d9ef7});}[_0x58e4e4(0x378)](_0x3ff514,_0x3bd5a6){const _0x324a8c=_0x58e4e4;let _0xf16633=this[_0x324a8c(0x25d)][_0x324a8c(0x2aa)](_0x3ff514);_0xf16633&&this[_0x324a8c(0x3c9)](_0x3ff514)&&(this[_0x324a8c(0x25d)][_0x324a8c(0x1ef)](_0xf16633),this[_0x324a8c(0x2f3)](),this['_activateEditPanelState'](_0x3ff514,_0x3bd5a6??null));}[_0x58e4e4(0x3a3)](_0x16e737,_0x4cd168){const _0x3c869e=_0x58e4e4;this['_sheetsChartUIService'][_0x3c869e(0x2e9)](!0x0),this[_0x3c869e(0x339)][_0x3c869e(0x267)](_0x16e737,_0x4cd168);}['_deactivateEditPanelState'](){const _0x22d91f=_0x58e4e4;this[_0x22d91f(0x339)][_0x22d91f(0x2e9)](!0x1);}[_0x58e4e4(0x36a)](_0xa649ad,_0x401026){const _0x21e92b=_0x58e4e4;_0xa649ad!==_0x401026&&(_0xa649ad&&this['_chartRenderService'][_0x21e92b(0x3c0)](_0xa649ad,!0x1),this[_0x21e92b(0x339)][_0x21e92b(0x319)](),_0x401026&&(this[_0x21e92b(0x339)][_0x21e92b(0x267)](_0x401026,null),this[_0x21e92b(0x28f)][_0x21e92b(0x3c0)](_0x401026,this[_0x21e92b(0x306)](_0x401026))));}['_initMenus'](){const _0x306232=_0x58e4e4;this[_0x306232(0x149)][_0x306232(0x215)](Hr),this[_0x306232(0x302)][_0x306232(0x14f)](_0x43df04['DRAWING_CHART'],this[_0x306232(0x138)][_0x306232(0x345)](this));}[_0x58e4e4(0x306)](_0x294621){const _0x1e33bb=_0x58e4e4;let _0x49a31d=this[_0x1e33bb(0x25d)][_0x1e33bb(0x2aa)](_0x294621);return!this['_isChartElementEditEnabled']||!_0x49a31d||!this[_0x1e33bb(0x3c9)](_0x294621)?!0x1:Wr(_0x49a31d['chartType']);}['getChartPopupMenus'](_0x34a847,_0x128d80,_0x430b96,_0x175a98){const _0x48f850=_0x58e4e4;if(!this['_chartModelService'][_0x48f850(0x2aa)](_0x430b96))return[];let _0x3ea601=[{'label':this[_0x48f850(0x242)]['t']('sheets-chart-ui.common.openChartPanel'),'index':0x0,'commandId':H['id'],'commandParams':{'unitId':_0x34a847,'subUnitId':_0x128d80,'drawingId':_0x430b96},'disable':_0x175a98!==_0x43df04[_0x48f850(0x1aa)]}];return this['_isOwnedChart'](_0x430b96)?[..._0x3ea601,{'label':this[_0x48f850(0x242)]['t'](_0x48f850(0x38f)),'index':0x1,'commandId':_0x52fe4a['id'],'commandParams':{'unitId':_0x34a847,'drawings':[{'unitId':_0x34a847,'subUnitId':_0x128d80,'drawingId':_0x430b96,'drawingType':_0x175a98}]},'disable':!0x1},{'label':this[_0x48f850(0x242)]['t'](_0x48f850(0x210)),'index':0x2,'commandId':wr['id'],'commandParams':{'unitId':_0x34a847,'subUnitId':_0x128d80,'drawingId':_0x430b96},'disable':!0x1}]:_0x3ea601;}['_isOwnedChart'](_0x370b30){const _0x483c92=_0x58e4e4;return this[_0x483c92(0x392)][_0x483c92(0x370)](_0x370b30)!==void 0x0;}};Oi=q([K(0x0,_0x1e7a38),K(0x1,_0x5b54fc),K(0x2,_0x569e33(_0x1e33a9)),K(0x3,_0x569e33(_0x5b7264)),K(0x4,_0x569e33(J)),K(0x5,_0x569e33(_0x9d629b)),K(0x6,_0x569e33(_0x14cdc6)),K(0x7,_0x26ea5c),K(0x8,_0x569e33(_0x351035)),K(0x9,_0x569e33(_0x4b4fef)),K(0xa,_0x10f119),K(0xb,Y),K(0xc,_0x2eb5c4),K(0xd,_0x569e33(_0x37903c)),K(0xe,_0x58cb4f)],Oi);var ki=_0x58e4e4(0x135),Ai='1.0.3';let ji=class extends _0x7b52dc{constructor(_0x11cab6,_0x4528a4){const _0x1366f0=_0x58e4e4;super(),this[_0x1366f0(0x2d8)]=_0x11cab6,this[_0x1366f0(0x25d)]=_0x4528a4,this['_init']();}[_0x58e4e4(0x2b0)](){const _0x43325f=_0x58e4e4;this[_0x43325f(0x105)](this['_chartHostProviderService'][_0x43325f(0x385)][_0x43325f(0x1ca)](_0x4d6e8c=>{const _0x5a0b99=_0x43325f;this[_0x5a0b99(0x25d)][_0x5a0b99(0x175)](_0x4d6e8c);}));}};ji=q([K(0x0,ui),K(0x1,_0x569e33(_0x1e33a9))],ji);let Mi=class extends _0x7b52dc{constructor(_0x125952,_0x2f7327,_0x1b54d6,_0x2a2f15,_0x561ec0,_0xb8902e){const _0x18a496=_0x58e4e4;super(),this['_chartModelService']=_0x125952,this[_0x18a496(0x28f)]=_0x2f7327,this[_0x18a496(0x242)]=_0x1b54d6,this[_0x18a496(0x250)]=_0x2a2f15,this['_commandService']=_0x561ec0,this[_0x18a496(0x162)]=_0xb8902e,W(this,_0x18a496(0x39e),new Map()),W(this,_0x18a496(0x32f),new Set()),this[_0x18a496(0x2b0)](),this[_0x18a496(0x2da)](),this[_0x18a496(0x170)]();}[_0x58e4e4(0x170)](){const _0x3c1436=_0x58e4e4;this[_0x3c1436(0x105)](this[_0x3c1436(0x162)]['interceptor'][_0x3c1436(0x2d0)](this['_sheetPrintInterceptorService'][_0x3c1436(0x219)][_0x3c1436(0x238)]()[_0x3c1436(0x200)],{'handler':(_0x2c65c3,_0x140212,_0x31c781)=>{const _0x57153f=_0x3c1436;let _0x4c11f5=this[_0x57153f(0x28f)][_0x57153f(0x153)](_0x140212['unitId'],_0x140212[_0x57153f(0x28c)],_0x140212[_0x57153f(0x10b)]);return _0x140212[_0x57153f(0x2cb)][_0x57153f(0x1c7)](_0x4c11f5),_0x31c781(_0x2c65c3);}}));}[_0x58e4e4(0x2b0)](){const _0x4cb5fa=_0x58e4e4;this[_0x4cb5fa(0x105)](this[_0x4cb5fa(0x25d)][_0x4cb5fa(0x283)][_0x4cb5fa(0x1ca)](_0x1e2885=>{const _0x70699=_0x4cb5fa;if(_0x1e2885){let _0x1bccf2=new _0x2329d0();_0x1bccf2[_0x70699(0x1c7)](_0x1e2885[_0x70699(0x3a0)][_0x70699(0x3b1)](_0x31738a(_0x5c8324=>_0x5c8324[_0x70699(0x2ae)][_0x70699(0x3b1)](_0x587be2(0x1))))[_0x70699(0x1ca)](()=>{const _0x205437=_0x70699;this[_0x205437(0x32f)]['add'](_0x1e2885['id']);})),_0x1bccf2['add'](_0x1e2885[_0x70699(0x1e7)][_0x70699(0x3b1)](_0x53855c(_0x1e2885[_0x70699(0x204)]),_0x53855c(this[_0x70699(0x242)][_0x70699(0x137)]),_0xd01ebe(0x64))[_0x70699(0x1ca)](([[_0x55e150,_0x5b4e7d],_0x40a4fb])=>{const _0x1c3941=_0x70699;var _0x617eaa;if(!_0x55e150)return;(_0x617eaa=_0x55e150[_0x1c3941(0x17e)])==null||_0x617eaa[_0x1c3941(0x1c2)][_0x1c3941(0x2db)]((_0x364802,_0x123df1)=>{const _0x48dcdc=_0x1c3941;_0x364802[_0x48dcdc(0x221)]||=this['_localeService']['t']('sheets-chart-ui.common.category')+'\x20'+(_0x123df1+0x1);}),_0x55e150['series'][_0x1c3941(0x2db)]((_0x325c3a,_0x295635)=>{const _0x4bc95d=_0x1c3941;_0x325c3a[_0x4bc95d(0x397)]||=this[_0x4bc95d(0x242)]['t'](_0x4bc95d(0x15c))+'\x20'+(_0x295635+0x1);});let _0x58fc06=this[_0x1c3941(0x28f)][_0x1c3941(0x173)](_0x1e2885,_0x40a4fb),_0x1dc627=this[_0x1c3941(0x32f)][_0x1c3941(0x25c)](_0x1e2885['id']);this[_0x1c3941(0x28f)][_0x1c3941(0x1df)](_0x1e2885['id'],_0x55e150,_0x58fc06,{'animateDataUpdate':_0x1dc627});})),_0x1e2885[_0x70699(0x3b4)](()=>{const _0x53eaf2=_0x70699;this['_pendingDataUpdateChartIds'][_0x53eaf2(0x25c)](_0x1e2885['id']),_0x1bccf2['dispose']();});}}));}[_0x58e4e4(0x2da)](){const _0x1d7d57=_0x58e4e4;this[_0x1d7d57(0x105)](this[_0x1d7d57(0x116)][_0x1d7d57(0x107)](_0x44dc85=>{const _0x27b22c=_0x1d7d57;if(_0x44dc85['id']!==_0x364aee['id'])return;let _0x4a2daa=_0x44dc85['params'];_0x4a2daa!=null&&_0x4a2daa['chartModelId']&&Promise[_0x27b22c(0x2f6)]()[_0x27b22c(0x343)](()=>this['_renderAfterChartUpdateMutation'](_0x4a2daa));}));}['_renderAfterChartUpdateMutation'](_0x4aa729){const _0x45f23c=_0x58e4e4;let _0x426fc4=this[_0x45f23c(0x25d)][_0x45f23c(0x2aa)](_0x4aa729[_0x45f23c(0x163)]);if(!_0x426fc4||_0x426fc4['chartType']!==_0x5ec5cb[_0x45f23c(0x18c)])return;let _0x2f4cbb=_0x426fc4['config'];if(!_0x2f4cbb){this[_0x45f23c(0x195)](_0x426fc4);return;}this[_0x45f23c(0x191)](_0x426fc4,_0x2f4cbb);}[_0x58e4e4(0x195)](_0x1b9fab){const _0x3a42bf=_0x58e4e4;if(this[_0x3a42bf(0x39e)][_0x3a42bf(0x368)](_0x1b9fab['id']))return;let _0x3e092e=_0x1b9fab[_0x3a42bf(0x1e7)]['pipe'](_0x24a54a(_0x564ad1=>_0x564ad1!=null),_0x315267(0x1))[_0x3a42bf(0x1ca)](_0x53ac36=>{const _0x4b9bbb=_0x3a42bf;this['_pendingMutationConfigRenders']['delete'](_0x1b9fab['id']),this[_0x4b9bbb(0x191)](_0x1b9fab,_0x53ac36);});this[_0x3a42bf(0x39e)][_0x3a42bf(0x37a)](_0x1b9fab['id'],_0x3e092e),_0x1b9fab[_0x3a42bf(0x3b4)](()=>{const _0x1aac7e=_0x3a42bf;_0x3e092e[_0x1aac7e(0x284)](),this[_0x1aac7e(0x39e)][_0x1aac7e(0x25c)](_0x1b9fab['id']);});}[_0x58e4e4(0x191)](_0x1bd6e3,_0x1f0d22){const _0x2850bf=_0x58e4e4;let _0x263794=this[_0x2850bf(0x28f)][_0x2850bf(0x173)](_0x1bd6e3,this['_localeService'][_0x2850bf(0x394)]());this['_chartRenderService']['render'](_0x1bd6e3['id'],_0x1f0d22,_0x263794);}};Mi=q([K(0x0,_0x569e33(_0x1e33a9)),K(0x1,_0x569e33(J)),K(0x2,_0x569e33(_0x37903c)),K(0x3,Y),K(0x4,_0x10f119),K(0x5,_0x569e33(_0x38c41d))],Mi);function Ni(_0x102ca6,_0x2f42e6){const _0x156c62=_0x58e4e4;return _0x102ca6['unitId']!==_0x2f42e6[_0x156c62(0x380)]||_0x102ca6[_0x156c62(0x28c)]!==_0x2f42e6[_0x156c62(0x18f)]?_0x102ca6:{..._0x102ca6,'subUnitId':_0x2f42e6['targetSubUnitId']};}function Pi(_0x4bfaf6,_0x9982b0){const _0xfc1605=_0x58e4e4;return(_0x4bfaf6==null?void 0x0:_0x4bfaf6[_0xfc1605(0x2e2)])===_0x4265c5[_0xfc1605(0x2c7)]?{..._0x4bfaf6,'source':Ni(_0x4bfaf6[_0xfc1605(0x352)],_0x9982b0)}:_0x4bfaf6;}function Fi(_0x7ae460,_0x22cfa9){const _0x5f296e=_0x58e4e4;let {rangeInfo:_0x163f43}=_0x7ae460;return Array[_0x5f296e(0x10d)](_0x163f43)?{..._0x7ae460,'rangeInfo':_0x163f43[_0x5f296e(0x3b3)](_0x39b546=>({..._0x39b546,..._0x39b546[_0x5f296e(0x3a6)]?{'header':Pi(_0x39b546['header'],_0x22cfa9)}:{},'range':Ni(_0x39b546['range'],_0x22cfa9)}))}:{..._0x7ae460,'rangeInfo':{..._0x163f43,..._0x163f43[_0x5f296e(0x3a6)]?{'header':{..._0x163f43[_0x5f296e(0x3a6)],..._0x163f43[_0x5f296e(0x3a6)][_0x5f296e(0x24a)]?{'titles':Ii(_0x163f43[_0x5f296e(0x3a6)][_0x5f296e(0x24a)],_0x22cfa9)}:{}}}:{},'rangeInfo':Ni(_0x163f43['rangeInfo'],_0x22cfa9)}};}function Ii(_0x226c2d,_0x5307a0){const _0x50bf64=_0x58e4e4;return _0x226c2d[_0x50bf64(0x2e2)]===_0x4265c5[_0x50bf64(0x23e)]?{..._0x226c2d,'values':{..._0x226c2d['values']}}:_0x226c2d['type']===_0x4265c5['References']?{..._0x226c2d,'values':Object[_0x50bf64(0x208)](Object[_0x50bf64(0x311)](_0x226c2d[_0x50bf64(0x226)])[_0x50bf64(0x3b3)](([_0x1cb50b,_0x28e739])=>[_0x1cb50b,_0x28e739&&Ni(_0x28e739,_0x5307a0)]))}:{..._0x226c2d,'values':Object[_0x50bf64(0x208)](Object[_0x50bf64(0x311)](_0x226c2d[_0x50bf64(0x226)])[_0x50bf64(0x3b3)](([_0x55df0e,_0xcb7975])=>[_0x55df0e,_0xcb7975&&Pi(_0xcb7975,_0x5307a0)]))};}function Li(_0x5b7e78,_0x5e15f7,_0x241d76,_0x481565){const _0x9e4053=_0x58e4e4;let _0x13ef6f=_0x4ce057(_0x5b7e78,_0x5e15f7,_0x241d76),_0x436baf=[];for(let _0x25f66f of _0x5e15f7){let _0x4ae408=_0x13ef6f[_0x9e4053(0x145)][_0x9e4053(0x368)](_0x25f66f[_0x9e4053(0x2dc)]),_0x5ce299=_0x481565(_0x25f66f);_0x4ae408&&_0x5ce299&&_0x436baf['push']({'targetChartId':_0x4ae408,'source':Fi(_0x5ce299,_0x241d76)});}return _0x436baf;}let Ri=class extends _0x7b52dc{constructor(_0xa38e11,_0x2d8be8,_0x98eb8,_0x45de97,_0x13fe63){const _0x258b97=_0x58e4e4;super(),this[_0x258b97(0x19c)]=_0xa38e11,this[_0x258b97(0x1a5)]=_0x2d8be8,this['_sheetDrawingService']=_0x98eb8,this[_0x258b97(0x25d)]=_0x45de97,this[_0x258b97(0x392)]=_0x13fe63,this[_0x258b97(0x30a)]();}[_0x58e4e4(0x30a)](){const _0x2f65eb=_0x58e4e4;this[_0x2f65eb(0x105)](this['_sheetInterceptorService'][_0x2f65eb(0x102)]({'getMutations':_0x4dbecc=>{const _0x59b1ad=_0x2f65eb;if(_0x4dbecc['id']===_0x54620f['id']){let _0x126ccb=_0x130794(this[_0x59b1ad(0x19c)],_0x4dbecc[_0x59b1ad(0x2e6)]);if(!_0x126ccb)return{'redos':[],'undos':[]};let {unitId:_0x276da6,subUnitId:_0x30e488}=_0x126ccb,_0xdd1901=this[_0x59b1ad(0x2c1)]['getDrawingData'](_0x276da6,_0x30e488),_0x29f7ef=Object[_0x59b1ad(0x226)](_0xdd1901)['filter'](_0x4b6e94=>_0x4b6e94[_0x59b1ad(0x2c2)]===_0x43df04[_0x59b1ad(0x1aa)]);if(_0x29f7ef['length']===0x0)return{'redos':[],'undos':[]};let _0x3863a3=[],_0x151303=[];for(let _0x440482=0x0;_0x440482<_0x29f7ef['length'];_0x440482++){let _0x5be21d=_0x29f7ef[_0x440482],_0x2bea6b=this['_chartModelService'][_0x59b1ad(0x2aa)](_0x5be21d['drawingId']);if(!_0x2bea6b)continue;let _0x296d95=this[_0x59b1ad(0x392)][_0x59b1ad(0x370)](_0x2bea6b['id']);if(!_0x296d95)continue;let {chartType:_0x12e7a9,context:_0x93c311,style:_0x5917d8,dataAggregation:_0x51a959}=_0x2bea6b[_0x59b1ad(0x373)]();_0x3863a3[_0x59b1ad(0x14a)]({'id':_0x13af68['id'],'params':{'unitId':_0x276da6,'subUnitId':_0x30e488,'chartId':_0x5be21d[_0x59b1ad(0x2dc)]}}),_0x151303[_0x59b1ad(0x14a)]({'id':_0x550a74['id'],'params':{'unitId':_0x276da6,'subUnitId':_0x30e488,'chartId':_0x5be21d[_0x59b1ad(0x2dc)],'chartType':_0x12e7a9,..._0x589193(_0x296d95),'context':_0x93c311,'style':_0x5917d8,'dataAggregation':_0x51a959}});}return{'redos':_0x3863a3,'undos':_0x151303};}if(_0x4dbecc['id']===_0x242788['id']){let {unitId:_0x47b4b7,subUnitId:_0x36a693,targetSubUnitId:_0x12bf3b,copyContext:_0x5b0180}=_0x4dbecc[_0x59b1ad(0x2e6)];if(!_0x47b4b7||!_0x36a693||!_0x12bf3b)return{'redos':[],'undos':[]};let _0x3532dd=this['_sheetDrawingService']['getDrawingData'](_0x47b4b7,_0x36a693),_0x3c49df=Object[_0x59b1ad(0x226)](_0x3532dd)[_0x59b1ad(0x19e)](_0x28f9fb=>_0x28f9fb[_0x59b1ad(0x2c2)]===_0x43df04['DRAWING_CHART']);if(_0x3c49df[_0x59b1ad(0x334)]===0x0)return{'redos':[],'undos':[]};let _0x24fa6a=Li(_0x5b0180,_0x3c49df,{'unitId':_0x47b4b7,'sourceSubUnitId':_0x36a693,'targetSubUnitId':_0x12bf3b},_0x7627a1=>{const _0x2ae128=_0x59b1ad;let _0x55395f=this['_chartModelService'][_0x2ae128(0x2aa)](_0x7627a1[_0x2ae128(0x2dc)]);if(!_0x55395f)return;let _0x56b2b3=this[_0x2ae128(0x392)]['getChartSourceSpec'](_0x55395f['id']);if(!_0x56b2b3)return;let {chartType:_0x4e54ee,context:_0x3fe9f8,style:_0x21d393,dataAggregation:_0x1ec007}=_0x55395f[_0x2ae128(0x373)]();return{'rangeInfo':_0x56b2b3,'chartType':_0x4e54ee,'context':_0x3fe9f8,'style':_0x21d393,'dataAggregation':_0x1ec007};}),_0x23e180=[],_0x5cd57d=[];for(let {targetChartId:_0xe3e692,source:_0x44ce65}of _0x24fa6a){let {rangeInfo:_0xca3c09,chartType:_0x1a6f5a,context:_0x23f4d6,style:_0x165e92,dataAggregation:_0x363897}=_0x44ce65;_0x23e180[_0x59b1ad(0x14a)]({'id':_0x550a74['id'],'params':{'unitId':_0x47b4b7,'subUnitId':_0x12bf3b,'chartId':_0xe3e692,'chartType':_0x1a6f5a,..._0x589193(_0xca3c09),'context':_0x23f4d6,'style':_0x165e92,'dataAggregation':_0x363897}}),_0x5cd57d[_0x59b1ad(0x14a)]({'id':_0x13af68['id'],'params':{'unitId':_0x47b4b7,'subUnitId':_0x12bf3b,'chartId':_0xe3e692}});}return{'redos':_0x23e180,'undos':_0x5cd57d};}return{'redos':[],'undos':[]};}}));}};Ri=q([K(0x0,_0x569e33(_0x5b54fc)),K(0x1,_0x569e33(_0x2cb268)),K(0x2,_0x569e33(_0xcf65a5)),K(0x3,_0x569e33(_0x1e33a9)),K(0x4,_0x569e33(_0x5b7264))],Ri);const zi=_0x3b6236=>_0x3b6236[_0x58e4e4(0x29a)](_0xaf509f[_0x58e4e4(0x16d)])['getUnitId'](),Bi=_0x4b7297=>{const _0x4dab1d=_0x58e4e4;var _0x4ca812;return(_0x4ca812=_0x4b7297['getCurrentUnitOfType'](_0xaf509f['UNIVER_SHEET'])[_0x4dab1d(0x320)]())==null?void 0x0:_0x4ca812[_0x4dab1d(0x358)]();};function Vi(){const _0x433d9c=_0x58e4e4;var _0x1645c3;let _0x4f6d23=_0x341106(Y),_0x401465=_0x341106(_0x1e33a9),_0x20be33=_0x341106(_0x5b7264),_0x18e33d=_0x341106(_0x37903c),_0x9604e8=_0x341106(_0x56051b),_0x474379=_0x1fd812(_0x9604e8),_0xce813e=_0x207894(()=>{const _0x5cbff0=_0x29f5;let _0x11b3e5=Fr(Nr['concat'](),_0x474379);return _0x99c448(_0x11b3e5[_0x5cbff0(0x3b3)](_0x4ef759=>({'id':_0x4ef759['id'],'label':_0x18e33d['t'](_0x5cbff0(0x27a)+_0x4ef759[_0x5cbff0(0x2af)]),'pieSecondaryPlotType':_0x4ef759[_0x5cbff0(0x17d)],'value':_0x4ef759[_0x5cbff0(0x256)]})));},[_0x474379,_0x18e33d]),_0x237ab7=_0x169faa(_0x401465[_0x433d9c(0x288)],_0x401465['activeChartModel']),_0x5b65b0=_0x237ab7?_0x20be33['getChartDataSource'](_0x237ab7['id']):void 0x0,_0x3681dc=_0x169faa(_0x5b65b0==null?void 0x0:_0x5b65b0[_0x433d9c(0x150)],_0x5b65b0==null?void 0x0:_0x5b65b0['getRangeInfo']()),_0x23c9f1=Array['isArray'](_0x3681dc),_0x3bd5c1=_0x3681dc&&!_0x23c9f1&&_0x3681dc[_0x433d9c(0x2b2)]?_0x28717b[_0x433d9c(0x1b1)]:_0x28717b[_0x433d9c(0x186)],_0x789bb4=_0x23c9f1?(_0x1645c3=_0x3681dc[0x0])==null?void 0x0:_0x1645c3[_0x433d9c(0x3b2)]:_0x3681dc==null?void 0x0:_0x3681dc['rangeInfo'];return _0x4200cc(_0x433d9c(0x2ee),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-5','children':_0x4200cc(_0x239fe1,{'chartTypeOptions':_0xce813e,'dataSourceControl':_0x4200cc(Hi,{'dataRange':_0x3681dc,'primaryRange':_0x789bb4}),'categoryToggleLabel':_0x18e33d['t'](_0x433d9c(0x21d),_0x3bd5c1===_0x28717b[_0x433d9c(0x1b1)]?_0x3bd5c1+'\x20'+(((_0x789bb4==null?void 0x0:_0x789bb4[_0x433d9c(0x3b2)]['startRow'])??0x0)+0x1):_0x3bd5c1+'\x20'+_0x47d2a3((_0x789bb4==null?void 0x0:_0x789bb4[_0x433d9c(0x3b2)]['startColumn'])??0x0)),'orientationControl':_0x23c9f1?void 0x0:_0x4200cc(_0x3e78e8,{'size':_0x433d9c(0x134),'onClick':()=>_0x4f6d23['setOrientation'](_0x3bd5c1===_0x28717b[_0x433d9c(0x1b1)]?_0x28717b[_0x433d9c(0x186)]:_0x28717b[_0x433d9c(0x1b1)]),'children':_0x18e33d['t'](_0x433d9c(0x386))})})});}function Hi(_0x3f358f){const _0x3282e2=_0x58e4e4;let {dataRange:_0x222944,primaryRange:_0xb95159}=_0x3f358f,_0x50d021=_0x341106(Y),_0x4d888f=_0x341106(_0x37903c),_0x134abe=_0x341106(_0x5b54fc),[_0x30aec1,_0x114bb1]=_0x5b2f59(!0x1),[_0x10b734,_0x5e0148]=_0x5b2f59(!0x1),_0x4894d6=zi(_0x134abe),_0x1ad692=Bi(_0x134abe);_0x34e514(()=>{_0x50d021['setRangeSelectMode'](_0x30aec1);},[_0x30aec1,_0x50d021]);let _0x612ada=_0x207894(()=>_0x1569e2(async _0x14586b=>{const _0x301f38=_0x29f5;var _0x439eb1;if(jr(_0x222944,_0x134abe)===_0x14586b)return;let _0x35e573=_0x14586b[_0x301f38(0x29d)](',')[_0x301f38(0x19e)](Boolean)['map'](_0x404b59)[0x0];if(!_0x35e573)return;let {unitId:_0x42fb11,sheetName:_0x5ef0a2,range:_0x15b5a3}=_0x35e573,_0x575080=_0x42fb11||_0x4894d6,_0x1bbd25=((_0x439eb1=_0x134abe['getUnit'](_0x575080)['getSheetBySheetName'](_0x5ef0a2))==null?void 0x0:_0x439eb1[_0x301f38(0x358)]())||(_0xb95159==null?void 0x0:_0xb95159[_0x301f38(0x28c)])||_0x1ad692;_0x1bbd25&&_0x50d021[_0x301f38(0x3ab)]({'rangeInfo':{'range':_0x15b5a3,'unitId':_0x575080,'subUnitId':_0x1bbd25}});},0x12c,{'leading':!0x1,'maxWait':0x3e8,'trailing':!0x0}),[_0x222944,_0xb95159,_0x50d021,_0x1ad692,_0x4894d6,_0x134abe]);return _0x34e514(()=>()=>_0x612ada['cancel'](),[_0x612ada]),_0x4200cc('div',{'className':_0x3282e2(0x33d),'children':_0x3d17e9(_0x3282e2(0x2ee),{'children':[_0x4200cc(_0x5bbce0,{'title':_0x4d888f['t'](_0x3282e2(0x398))}),_0x4200cc(_0x5f3f11,{'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'maxRangeCount':0x1,'unitId':_0x4894d6,'subUnitId':_0x1ad692,'initialValue':_0x222944?jr(_0x222944,_0x134abe):'','onChange':(_0x248cef,_0x35e8a1)=>_0x612ada(_0x35e8a1),'onFocusChange':_0xc50a6e=>{_0x10b734||_0x114bb1(_0xc50a6e);},'onRangeSelectorDialogVisibleChange':_0x2673e5=>{_0x5e0148(_0x2673e5),_0x114bb1(_0x2673e5);}})]})});}function Ui(){const _0x49241e=_0x58e4e4;let [_0xff068d,_0xe92e04]=_0x5b2f59(_0x305e77['Data']),_0x68cbe3=_0x341106(_0x56051b),_0x30431e=_0x341106(_0x37903c),_0x3f6e50=_0x341106(Y),_0x43f74b=_0x341106(_0x1e33a9),_0x4b027e=_0x341106(_0x5b7264),_0x5143fc=_0x169faa(_0x43f74b['activeChartModel$'],_0x43f74b['activeChartModel']),_0x5357d0=_0x169faa(_0x3f6e50['panelRoute$'],null),_0x1934cd=_0x207894(()=>{const _0x326917=_0x29f5;var _0x30be75;if(!_0x5143fc)return null;let _0x1be03b=_0x4b027e['getChartSourceSpec'](_0x5143fc['id']);if(!_0x1be03b)return null;let _0xe88b2=Array[_0x326917(0x10d)](_0x1be03b)?(_0x30be75=_0x1be03b[0x0])==null?void 0x0:_0x30be75[_0x326917(0x3b2)]:_0x1be03b['rangeInfo'];return _0xe88b2?new _0x47dff2(_0x5143fc,new _0x4cd08c({'unitId':_0xe88b2['unitId'],'subUnitId':_0xe88b2['subUnitId'],'chartId':_0x5143fc['id'],'injector':_0x68cbe3})):null;},[_0x5143fc,_0x68cbe3,_0x4b027e]);if(_0x34e514(()=>{const _0xae7191=_0x29f5;var _0x333682,_0x350847;_0x5143fc&&(_0x5357d0==null?void 0x0:_0x5357d0[_0xae7191(0x1f8)])===_0x5143fc['id']&&(((_0x333682=_0x5357d0[_0xae7191(0x2fb)])==null?void 0x0:_0x333682[_0xae7191(0x259)])===_0x305e77[_0xae7191(0x29b)]&&_0xe92e04(_0x305e77[_0xae7191(0x29b)]),((_0x350847=_0x5357d0[_0xae7191(0x2fb)])==null?void 0x0:_0x350847[_0xae7191(0x259)])===_0x305e77['Data']&&_0xe92e04(_0x305e77[_0xae7191(0x1a9)]));},[_0x5143fc,_0x5357d0]),!_0x1934cd)return null;let _0x999e7=_0x4200cc(_0x49241e(0x2ee),{'className':_0x49241e(0x181),'children':_0x4200cc(_0x60d2ef,{'ariaLabel':_0x30431e['t'](_0x49241e(0x1d0)),'activeTab':_0xff068d,'onTabChange':_0xe92e04,'tabListClassName':_0x49241e(0x124),'panelClassName':_0xff068d===_0x305e77[_0x49241e(0x29b)]?_0x49241e(0x301):_0x49241e(0x152),'tabs':[{'id':_0x305e77[_0x49241e(0x1a9)],'panelId':_0x49241e(0x1c3),'title':_0x30431e['t'](_0x49241e(0x1c5)),'content':_0x4200cc(Vi,{})},{'id':_0x305e77[_0x49241e(0x29b)],'panelId':'mobile-sheet-chart-style-panel','title':_0x30431e['t'](_0x49241e(0x103)),'content':_0x4200cc(xi,{'defaultValues':gi})}]})});return _0x4200cc(_0x441e57,{'chartUIService':_0x3f6e50,'hostAdapter':_0x1934cd,'children':_0x999e7});}let Wi=class extends _0x7b52dc{constructor(_0x470a0c){const _0x484895=_0x58e4e4;super(),this[_0x484895(0x105)](_0x470a0c[_0x484895(0x3bd)](Ci,Ui));}};Wi=q([K(0x0,_0x569e33(_0x122d09))],Wi);let Gi=class extends _0x7b52dc{constructor(_0x14aa3f,_0x676c44,_0x5789a7,_0xf1f60f,_0x2499cb,_0x171a9f,_0x6a907e,_0x4ca951,_0x40c408){const _0x42ba53=_0x58e4e4;super(),this[_0x42ba53(0x1be)]=_0x14aa3f,this[_0x42ba53(0x25d)]=_0x676c44,this[_0x42ba53(0x36c)]=_0x5789a7,this['_menuManagerService']=_0xf1f60f,this[_0x42ba53(0x302)]=_0x2499cb,this['_commandService']=_0x171a9f,this['_sheetsChartUIService']=_0x6a907e,this[_0x42ba53(0x1b5)]=_0x4ca951,this['_localeService']=_0x40c408,W(this,_0x42ba53(0x243),null),W(this,_0x42ba53(0x346),!0x1),this[_0x42ba53(0x325)]();}[_0x58e4e4(0x125)](){const _0x46d4c1=_0x58e4e4;this[_0x46d4c1(0x1dd)](),super[_0x46d4c1(0x125)]();}[_0x58e4e4(0x1f6)](){const _0x1b1e8e=_0x58e4e4;this[_0x1b1e8e(0x346)]||(this[_0x1b1e8e(0x346)]=!0x0,this[_0x1b1e8e(0x105)](this[_0x1b1e8e(0x116)]['onCommandExecuted'](_0x4eab79=>{const _0x31b3a9=_0x1b1e8e;if(_0x4eab79['id']!==H['id'])return;let _0x1d0059=_0x4eab79[_0x31b3a9(0x2e6)];this[_0x31b3a9(0x378)](_0x1d0059[_0x31b3a9(0x2dc)],_0x1d0059[_0x31b3a9(0x2fb)]);})));}['openChartPanelById'](_0x45e375,_0x5aeb3e){const _0x19fe79=_0x58e4e4;let _0x4d271d=this[_0x19fe79(0x25d)]['getChartModel'](_0x45e375);_0x4d271d&&(this[_0x19fe79(0x25d)][_0x19fe79(0x1ef)](_0x4d271d),this[_0x19fe79(0x2f3)](),this[_0x19fe79(0x339)]['setChartEditorOpen'](!0x0),this[_0x19fe79(0x339)][_0x19fe79(0x267)](_0x45e375,_0x5aeb3e??null));}[_0x58e4e4(0x1dd)](){const _0x3133b8=_0x58e4e4;let _0x1d28c0=this[_0x3133b8(0x243)];this[_0x3133b8(0x243)]=null,this[_0x3133b8(0x1b6)](),_0x1d28c0==null||_0x1d28c0[_0x3133b8(0x125)]();}[_0x58e4e4(0x325)](){const _0x339c06=_0x58e4e4;this['_menuManagerService'][_0x339c06(0x215)]({[_0x134022[_0x339c06(0x312)]]:{[U['id']]:{'order':0x4,'menuItemFactory':Ir}}}),this[_0x339c06(0x302)]['registerFeatureMenu'](_0x43df04[_0x339c06(0x1aa)],(_0x3b66b1,_0x234881,_0x1503ee,_0x193848)=>[{'label':this['_localeService']['t']('sheets-chart-ui.common.editChart'),'index':0x0,'commandId':H['id'],'commandParams':{'unitId':_0x3b66b1,'subUnitId':_0x234881,'drawingId':_0x1503ee},'disable':_0x193848!==_0x43df04[_0x339c06(0x1aa)]},{'label':this['_localeService']['t'](_0x339c06(0x38f)),'index':0x1,'commandId':_0x52fe4a['id'],'commandParams':{'unitId':_0x3b66b1,'drawings':[{'unitId':_0x3b66b1,'subUnitId':_0x234881,'drawingId':_0x1503ee,'drawingType':_0x193848}]},'disable':!0x1}],_0x339c06(0x3bf));}[_0x58e4e4(0x2f3)](){const _0x5b9546=_0x58e4e4;this[_0x5b9546(0x243)]=this[_0x5b9546(0x36c)]['open']({'id':Ci,'header':{'title':this[_0x5b9546(0x242)]['t']('sheets-chart-ui.common.editChart')},'children':{'label':Ci},'onClose':()=>{this['_sidebarDisposable']=null,this['_clearPanelState']();}});}[_0x58e4e4(0x1b6)](){const _0x4c3332=_0x58e4e4;this[_0x4c3332(0x339)]['setChartEditorOpen'](!0x1),this[_0x4c3332(0x339)]['clearPanelRoute'](),this[_0x4c3332(0x25d)]['activeChartModel']&&this[_0x4c3332(0x25d)][_0x4c3332(0x1ef)](null),this['_drawingManagerService'][_0x4c3332(0x1ed)](null),this[_0x4c3332(0x1b5)][_0x4c3332(0x332)](_0x654e75,!0x1);}};Gi=q([K(0x0,_0x1e7a38),K(0x1,_0x569e33(_0x1e33a9)),K(0x2,_0x569e33(_0x14cdc6)),K(0x3,_0x26ea5c),K(0x4,_0x569e33(_0x4b4fef)),K(0x5,_0x10f119),K(0x6,Y),K(0x7,_0x2eb5c4),K(0x8,_0x569e33(_0x37903c))],Gi);let Ki=class extends _0x7b52dc{constructor(_0x568490,_0x1c4521,_0x2ab6a1,_0x16d124,_0xee0ae9){const _0x129188=_0x58e4e4;super(),this['_sheetSkeletonService']=_0x568490,this[_0x129188(0x376)]=_0x1c4521,this['_sheetDrawingService']=_0x2ab6a1,this['_chartModelService']=_0x16d124,this[_0x129188(0x392)]=_0xee0ae9,W(this,_0x129188(0x188),void 0x0),this[_0x129188(0x396)]();}get[_0x58e4e4(0x216)](){const _0x513ca8=_0x58e4e4;return this[_0x513ca8(0x2c1)]['getFocusDrawings']();}[_0x58e4e4(0x396)](){const _0x4a9b44=_0x58e4e4;this[_0x4a9b44(0x105)](this[_0x4a9b44(0x376)][_0x4a9b44(0x269)]({'id':_0x1a849f,'onBeforeCopyFocusedObject':(_0x45ae04,_0xb9b814,_0x2be47c)=>{const _0x35369f=_0x4a9b44;this[_0x35369f(0x188)]=null;let _0x1b2ac1=this[_0x35369f(0x216)]['filter'](_0x4b9f17=>this['_isOwnedChart'](_0x4b9f17));return _0x1b2ac1['length']!==0x0&&(this[_0x35369f(0x188)]={'unitId':_0x45ae04,'subUnitId':_0xb9b814,'copyType':_0x2be47c,'drawings':_0x1b2ac1},!0x0);},'onBeforeCopy':(_0x409c44,_0x181c45,_0x32c76b,_0x57cde8)=>{const _0x3c6a7b=_0x4a9b44;this['_copyInfo']=null,this[_0x3c6a7b(0x212)](_0x409c44,_0x181c45,_0x32c76b,_0x57cde8);},'onPasteCells':(_0x388ebc,_0x18da43,_0x5a7c3c,_0x51a585)=>{const _0x3d413c=_0x4a9b44;if(!_0x51a585[_0x3d413c(0x1b3)]||!_0x388ebc||!this[_0x3d413c(0x188)])return{'redos':[],'undos':[]};let {pasteType:_0x333071}=_0x51a585;return _0x333071===_0x105d29[_0x3d413c(0x1ec)]?this['_generatePasteMutations'](_0x18da43,this[_0x3d413c(0x188)][_0x3d413c(0x25e)]===_0x5d9d74[_0x3d413c(0x192)]):{'redos':[],'undos':[]};}}));}[_0x58e4e4(0x212)](_0x71f907,_0x485c6e,_0x1f51c6,_0x36363b){const _0x48eb6a=_0x58e4e4;let _0x37c82b=this[_0x48eb6a(0x130)]['getSkeleton'](_0x71f907,_0x485c6e);if(!_0x37c82b)return;let _0x2f7ca6=_0x5067a4(_0x37c82b,_0x1f51c6);if(!_0x2f7ca6)return;let {startX:_0x26e1da,endX:_0x529c1d,startY:_0x287de1,endY:_0x1997f3}=_0x2f7ca6,_0x4b0406=this[_0x48eb6a(0x2c1)][_0x48eb6a(0x28e)](_0x71f907,_0x485c6e),_0x110e5c=[];for(let [_0x7a1c50,_0x1020bd]of Object[_0x48eb6a(0x311)](_0x4b0406)){if(!this['_isOwnedChart'](_0x1020bd))continue;let {transform:_0x140226}=_0x1020bd;if(!_0x140226)continue;let {left:_0x39f628=0x0,top:_0x594b38=0x0,width:_0x58534b=0x0,height:_0x456b8c=0x0}=_0x140226;_0x26e1da<=_0x39f628&&_0x529c1d>=_0x39f628+_0x58534b&&_0x287de1<=_0x594b38&&_0x1997f3>=_0x594b38+_0x456b8c&&_0x110e5c[_0x48eb6a(0x14a)](_0x1020bd);}_0x110e5c[_0x48eb6a(0x334)]>0x0&&(this[_0x48eb6a(0x188)]={'unitId':_0x71f907,'subUnitId':_0x485c6e,'copyType':_0x36363b,'copyRange':_0x1f51c6,'drawings':_0x110e5c});}['_isOwnedChart'](_0x1919ea){const _0x5de08a=_0x58e4e4;return _0x1919ea[_0x5de08a(0x2c2)]===_0x43df04[_0x5de08a(0x1aa)]&&this[_0x5de08a(0x392)][_0x5de08a(0x141)](_0x1919ea[_0x5de08a(0x380)],_0x1919ea['drawingId'])===_0x1919ea[_0x5de08a(0x28c)];}[_0x58e4e4(0x393)](_0x3fc118,_0x10a7f5){const _0x36587f=_0x58e4e4;let {unitId:_0x1e14ad,subUnitId:_0x5bb887,range:_0x3da128}=_0x3fc118,_0x1e3dce=this[_0x36587f(0x130)][_0x36587f(0x1a8)](_0x1e14ad,_0x5bb887);if(!_0x1e3dce)return{'redos':[],'undos':[]};let _0x40f56a=_0x5ebcb8(_0x3da128),{unitId:_0x4445ea,subUnitId:_0x41b72f,copyRange:_0xa62d79,drawings:_0xc94191}=this[_0x36587f(0x188)],_0x4b72c5=this[_0x36587f(0x130)]['getSkeleton'](_0x4445ea,_0x41b72f);if(!_0x4b72c5)return{'redos':[],'undos':[]};let _0x4b4769=[],_0x45e7cc=[];for(let _0x1572d7 of _0xc94191){let {drawingId:_0xc98f43,transform:_0x210195,sheetTransform:_0x652d90}=_0x1572d7,_0x58e6c6=this['_chartModelService']['getChartModel'](_0xc98f43);if(!_0x58e6c6||!_0x210195||!_0x652d90)continue;let _0x3f8120=this[_0x36587f(0x2f0)]({'transform':_0x210195,'sheetTransform':_0x652d90},{'skeleton':_0x4b72c5,'range':_0xa62d79},{'skeleton':_0x1e3dce,'range':_0x40f56a});if(_0x10a7f5){let {redos:_0x129f54,undos:_0x553e3e}=this['_generateCutPasteMutations']({'fromUnitId':_0x4445ea,'fromSubUnitId':_0x41b72f,'toUnitId':_0x1e14ad,'toSubUnitId':_0x5bb887,'drawing':_0x1572d7,'newTransforms':_0x3f8120},_0x58e6c6);_0x4b4769[_0x36587f(0x14a)](..._0x129f54),_0x45e7cc[_0x36587f(0x14a)](..._0x553e3e);continue;}let {redos:_0x23f8a6,undos:_0x1f72bd}=this[_0x36587f(0x14c)]({'toUnitId':_0x1e14ad,'toSubUnitId':_0x5bb887,'drawing':_0x1572d7,'newTransforms':_0x3f8120},_0x58e6c6);_0x4b4769['push'](..._0x23f8a6),_0x45e7cc['push'](..._0x1f72bd);}return{'redos':_0x4b4769,'undos':_0x45e7cc};}[_0x58e4e4(0x26a)](_0x14fd3f,_0x507eba){const _0x379140=_0x58e4e4;let {fromUnitId:_0x547142,fromSubUnitId:_0x3f23b7,toUnitId:_0x458e5b,toSubUnitId:_0x2a9f23,drawing:_0x49b947,newTransforms:_0x10aa41}=_0x14fd3f,_0x11a46f={..._0x49b947,'unitId':_0x458e5b,'subUnitId':_0x2a9f23,'transform':_0x10aa41[_0x379140(0x361)],'sheetTransform':_0x10aa41[_0x379140(0x2a8)]};if(_0x458e5b===_0x547142&&_0x2a9f23===_0x3f23b7){let {redo:_0x3f81a5,undo:_0x5928b1,objects:_0x5d398f}=this[_0x379140(0x2c1)][_0x379140(0x169)]([_0x11a46f]);return{'redos':[{'id':_0x189847['id'],'params':{'unitId':_0x458e5b,'subUnitId':_0x2a9f23,'type':_0x398764[_0x379140(0x282)],'op':_0x3f81a5,'objects':_0x5d398f}}],'undos':[{'id':_0x189847['id'],'params':{'unitId':_0x458e5b,'subUnitId':_0x2a9f23,'type':_0x398764[_0x379140(0x282)],'op':_0x5928b1,'objects':_0x5d398f}}]};}{let _0x2b73fd=this['_sheetDrawingService'][_0x379140(0x262)]([_0x49b947]),_0x4efb46=this[_0x379140(0x2c1)][_0x379140(0x1ea)]([_0x11a46f]),_0x57e7eb=this[_0x379140(0x392)][_0x379140(0x370)](_0x507eba['id']);if(!_0x57e7eb)return{'redos':[],'undos':[]};let {chartType:_0x3c990a,context:_0x3e98a6,style:_0x53bfe8,dataAggregation:_0x3c7a89}=_0x507eba['serialize']();return{'redos':[{'id':_0x189847['id'],'params':{'unitId':_0x547142,'subUnitId':_0x3f23b7,'type':_0x398764[_0x379140(0x11d)],'op':_0x2b73fd[_0x379140(0x2f5)],'objects':_0x2b73fd[_0x379140(0x1d3)]}},{'id':_0x13af68['id'],'params':{'unitId':_0x547142,'subUnitId':_0x3f23b7,'chartId':_0x49b947['drawingId']}},{'id':_0x189847['id'],'params':{'unitId':_0x458e5b,'subUnitId':_0x2a9f23,'type':_0x398764[_0x379140(0x20a)],'op':_0x4efb46[_0x379140(0x2f5)],'objects':_0x4efb46['objects']}},{'id':_0x550a74['id'],'params':{'unitId':_0x458e5b,'subUnitId':_0x2a9f23,'chartId':_0x49b947[_0x379140(0x2dc)],'chartType':_0x3c990a,..._0x589193(_0x57e7eb),'context':_0x3e98a6,'style':_0x53bfe8,'dataAggregation':_0x3c7a89}}],'undos':[{'id':_0x189847['id'],'params':{'unitId':_0x547142,'subUnitId':_0x3f23b7,'type':_0x398764[_0x379140(0x20a)],'op':_0x2b73fd[_0x379140(0x2d2)],'objects':_0x2b73fd[_0x379140(0x1d3)]}},{'id':_0x550a74['id'],'params':{'unitId':_0x547142,'subUnitId':_0x3f23b7,'chartId':_0x49b947[_0x379140(0x2dc)],'chartType':_0x3c990a,..._0x589193(_0x57e7eb),'context':_0x3e98a6,'style':_0x53bfe8,'dataAggregation':_0x3c7a89}},{'id':_0x189847['id'],'params':{'unitId':_0x458e5b,'subUnitId':_0x2a9f23,'type':_0x398764['REMOVE'],'op':_0x4efb46['undo'],'objects':_0x4efb46['objects']}},{'id':_0x13af68['id'],'params':{'unitId':_0x458e5b,'subUnitId':_0x2a9f23,'chartId':_0x49b947['drawingId']}}]};}}[_0x58e4e4(0x14c)](_0x31bc9b,_0x300d8e){const _0x1ea222=_0x58e4e4;let {toUnitId:_0x1e6b8e,toSubUnitId:_0x27b205,drawing:_0x8f4c92,newTransforms:_0xb686af}=_0x31bc9b,_0x329e96=_0x5120c1(),_0x1d9b76={..._0x8f4c92,'unitId':_0x1e6b8e,'subUnitId':_0x27b205,'drawingId':_0x329e96,'transform':_0xb686af['transform'],'sheetTransform':_0xb686af[_0x1ea222(0x2a8)]},{redo:_0xcea574,undo:_0x3df2c8,objects:_0x5aaa1b}=this['_sheetDrawingService'][_0x1ea222(0x1ea)]([_0x1d9b76]),_0x535430=this['_sheetsChartService'][_0x1ea222(0x370)](_0x300d8e['id']);if(!_0x535430)return{'redos':[],'undos':[]};let {chartType:_0x4dc561,context:_0x11d4fe,style:_0x3e36dc,dataAggregation:_0x536441}=_0x300d8e[_0x1ea222(0x373)]();return{'redos':[{'id':_0x189847['id'],'params':{'unitId':_0x1e6b8e,'subUnitId':_0x27b205,'type':_0x398764[_0x1ea222(0x20a)],'op':_0xcea574,'objects':_0x5aaa1b}},{'id':_0x550a74['id'],'params':{'unitId':_0x1e6b8e,'subUnitId':_0x27b205,'chartId':_0x329e96,'chartType':_0x4dc561,..._0x589193(_0x535430),'context':_0x11d4fe,'style':_0x3e36dc,'dataAggregation':_0x536441}}],'undos':[{'id':_0x189847['id'],'params':{'unitId':_0x1e6b8e,'subUnitId':_0x27b205,'type':_0x398764[_0x1ea222(0x11d)],'op':_0x3df2c8,'objects':_0x5aaa1b}},{'id':_0x13af68['id'],'params':{'unitId':_0x1e6b8e,'subUnitId':_0x27b205,'chartId':_0x329e96}}]};}[_0x58e4e4(0x2f0)](_0x2b6106,_0x484986,_0x31a937){const _0x537ff7=_0x58e4e4;let {range:_0x337bbf,skeleton:_0x3f6059}=_0x484986,{range:_0x139093,skeleton:_0x39723a}=_0x31a937,{transform:_0x5c1dfc,sheetTransform:_0x453bf1}=_0x2b6106,_0x3dfc59={..._0x5c1dfc};if(_0x337bbf){let _0x4a1a9b=_0x5067a4(_0x3f6059,_0x337bbf),_0x4fc488=_0x5067a4(_0x39723a,_0x139093);if(_0x4a1a9b&&_0x4fc488){let _0xc24fd5=_0x4fc488[_0x537ff7(0x11c)]-_0x4a1a9b['startX'],_0x50ac2c=_0x4fc488[_0x537ff7(0x2e3)]-_0x4a1a9b[_0x537ff7(0x2e3)];_0x3dfc59['left']=(_0x3dfc59['left']??0x0)+_0xc24fd5,_0x3dfc59[_0x537ff7(0x23a)]=(_0x3dfc59['top']??0x0)+_0x50ac2c;}}else{let _0x1a89dc=_0x5067a4(_0x39723a,_0x139093);_0x3dfc59[_0x537ff7(0x270)]=_0x1a89dc==null?void 0x0:_0x1a89dc['startX'],_0x3dfc59['top']=_0x1a89dc==null?void 0x0:_0x1a89dc[_0x537ff7(0x2e3)];}return{'transform':_0x3dfc59,'sheetTransform':_0x53cf80(_0x3dfc59,_0x39723a)??_0x453bf1};}};Ki=q([K(0x0,_0x569e33(_0x2f70f2)),K(0x1,_0x569e33(_0x246f06)),K(0x2,_0x569e33(_0xcf65a5)),K(0x3,_0x569e33(_0x1e33a9)),K(0x4,_0x569e33(_0x5b7264))],Ki);let qi=class extends _0x7b52dc{constructor(_0x42bd26,_0x2d5edf,_0x1d67d9,_0x2d3dad){const _0x4a5ec8=_0x58e4e4;super(),this[_0x4a5ec8(0x116)]=_0x42bd26,this[_0x4a5ec8(0x242)]=_0x2d5edf,this[_0x4a5ec8(0x245)]=_0x1d67d9,this[_0x4a5ec8(0x392)]=_0x2d3dad,this['_initPermission']();}[_0x58e4e4(0x2e1)](){const _0x23b9d5=_0x58e4e4;this[_0x23b9d5(0x105)](this[_0x23b9d5(0x116)][_0x23b9d5(0x222)](_0x44b526=>{const _0x1937ea=_0x23b9d5;let _0x1c8354,_0x16eba7;if(_0x44b526['id']===_0x467e05['id']){let _0x350acd=_0x44b526[_0x1937ea(0x2e6)];_0x1c8354=_0x350acd['unitId'],_0x16eba7=_0x350acd[_0x1937ea(0x28c)];}else{if(_0x44b526['id']===_0x22f7cc['id']||_0x44b526['id']===_0x112901['id']){let _0x53f5e9=_0x44b526[_0x1937ea(0x2e6)];_0x1c8354=_0x53f5e9['unitId'],_0x16eba7=this[_0x1937ea(0x392)][_0x1937ea(0x141)](_0x53f5e9[_0x1937ea(0x380)],_0x53f5e9[_0x1937ea(0x163)]);}}_0x1c8354&&_0x16eba7&&(this['_sheetPermissionCheckController']['permissionCheckWithoutRange']({'workbookTypes':[_0x554cec],'worksheetTypes':[_0x32625b]},_0x1c8354,_0x16eba7)||this[_0x1937ea(0x245)][_0x1937ea(0x360)](this[_0x1937ea(0x242)]['t']('sheets-chart-ui.permission.editErr')));}));}};qi=q([K(0x0,_0x569e33(_0x10f119)),K(0x1,_0x569e33(_0x37903c)),K(0x2,_0x569e33(_0x47e334)),K(0x3,_0x569e33(_0x5b7264))],qi);let Z=class extends _0x7b52dc{constructor(_0x5e5315,_0x32f971){const _0x58d169=_0x58e4e4;super(),this[_0x58d169(0x171)]=_0x32f971,this[_0x58d169(0x105)](_0x5e5315['register'](this));}[_0x58e4e4(0x209)](_0x3b0a18){const _0x5d6299=_0x58e4e4;return _0x5d6299(0x380)in _0x3b0a18&&'subUnitId'in _0x3b0a18;}[_0x58e4e4(0x2a4)](_0x28fdb8,_0x1d57f6){const _0x27a773=_0x58e4e4;return this[_0x27a773(0x171)][_0x27a773(0x2a4)](_0x28fdb8['getId'](),_0x1d57f6);}};Z=q([K(0x0,_0x569e33(_0x105d73)),K(0x1,_0x569e33(J))],Z);let Q=class extends _0x5bf473{constructor(_0x48ecba=Cr,_0x4a1e56,_0x133aa2,_0x34144d){const _0x478423=_0x58e4e4;super(),this['_config']=_0x48ecba,this[_0x478423(0x172)]=_0x4a1e56,this[_0x478423(0x211)]=_0x133aa2,this[_0x478423(0x116)]=_0x34144d;let {..._0xf0083e}=_0x11a014({},Cr,this[_0x478423(0x309)]);this[_0x478423(0x211)][_0x478423(0x13b)](Sr,_0xf0083e),this[_0x478423(0x176)]();}['onStarting'](){const _0x112e99=_0x58e4e4;let _0x3e4a42=[[Wi],[Y,{'useClass':mi}],[ui,{'useClass':li}],[ni],[J],[Z],[Gi],[ji],[Mi],[Ki],[Ri],[qi]],_0xc8cd1e=[[Wi],[Gi],[Mi],[ji],[Z],[Y],[Ki],[Ri],[qi]];_0x3e4a42['forEach'](_0x3a337c=>this[_0x112e99(0x172)]['add'](_0x3a337c)),_0x1942f9(this[_0x112e99(0x172)],_0xc8cd1e);}['onRendered'](){const _0x1d7e17=_0x58e4e4;var _0x1d80b1;(_0x1d80b1=this[_0x1d7e17(0x172)]['get'](Gi))==null||_0x1d80b1['initPanel']();}['_initCommands'](){const _0x44976f=_0x58e4e4;[U,H]['forEach'](_0x51cf8b=>this[_0x44976f(0x105)](this[_0x44976f(0x116)][_0x44976f(0x2bb)](_0x51cf8b)));}};W(Q,_0x58e4e4(0x2e2),_0xaf509f['UNIVER_SHEET']),W(Q,_0x58e4e4(0x248),_0x58e4e4(0x2c8)),W(Q,'packageName',ki),W(Q,_0x58e4e4(0x2f7),Ai),Q=q([_0x39613b(_0x28eac2,_0x868a1c,_0x15fe35,_0x1dcfa0,_0x4288b5,_0x29b95c,_0x67f924,_0x4484cc,_0x27b4b2,_0x2c7e38),K(0x1,_0x569e33(_0x56051b)),K(0x2,_0x58cb4f),K(0x3,_0x10f119)],Q);const Ji={'scaleX':0x1,'scaleY':0x1};function Yi(_0x36e4e7){const _0xc0bd36=_0x58e4e4;let _0x233857=_0x36e4e7[_0xc0bd36(0x1eb)];return _0x233857 instanceof MouseEvent?_0x233857:void 0x0;}function Xi(_0x14643e){const _0x46b799=_0x58e4e4;let _0x3fa723=_0x14643e[_0x46b799(0x1eb)],_0x1449b5=_0x3fa723==null?void 0x0:_0x3fa723[_0x46b799(0x11f)];return _0x1449b5 instanceof Element?_0x1449b5:void 0x0;}function Zi(_0x55199c){const _0x35ffa1=_0x58e4e4;var _0x5c239a;return(_0x5c239a=Xi(_0x55199c))==null?void 0x0:_0x5c239a[_0x35ffa1(0xff)]();}function Qi(_0x17bf67){const _0x4e4f5e=_0x58e4e4;return _0x17bf67[_0x4e4f5e(0x384)]||_0x17bf67[_0x4e4f5e(0x213)]-_0x17bf67[_0x4e4f5e(0x270)];}function $i(_0x26d55f){const _0x4b0300=_0x58e4e4;return _0x26d55f['height']||_0x26d55f[_0x4b0300(0x35f)]-_0x26d55f['top'];}function ea(_0x403e4d,_0x27f46a){const _0x557a89=_0x58e4e4;let _0x319c2a=_0x403e4d['clientWidth']||(_0x403e4d instanceof HTMLElement?_0x403e4d[_0x557a89(0x21c)]:0x0),_0x251b98=_0x403e4d[_0x557a89(0x303)]||(_0x403e4d instanceof HTMLElement?_0x403e4d[_0x557a89(0x375)]:0x0),_0x4d2d8b=Qi(_0x27f46a),_0x171b61=$i(_0x27f46a);return{'scaleX':_0x319c2a>0x0&&_0x4d2d8b>0x0?_0x4d2d8b/_0x319c2a:Ji[_0x557a89(0x2a6)],'scaleY':_0x251b98>0x0&&_0x171b61>0x0?_0x171b61/_0x251b98:Ji['scaleY']};}function ta(_0x3683ea,_0x17348c,_0x3e7792){const _0x4cc5a5=_0x58e4e4;return{'left':_0x3683ea[_0x4cc5a5(0x270)]+_0x17348c['left']*_0x3e7792['scaleX'],'right':_0x3683ea[_0x4cc5a5(0x270)]+_0x17348c[_0x4cc5a5(0x213)]*_0x3e7792[_0x4cc5a5(0x2a6)],'top':_0x3683ea['top']+_0x17348c[_0x4cc5a5(0x23a)]*_0x3e7792[_0x4cc5a5(0x263)],'bottom':_0x3683ea['top']+_0x17348c[_0x4cc5a5(0x35f)]*_0x3e7792[_0x4cc5a5(0x263)]};}function na(_0xb67c3a){const _0x301210=_0x58e4e4;let _0x506a00=Xi(_0xb67c3a),_0x1b0d1f=_0xb67c3a[_0x301210(0x281)][_0x301210(0x144)];return _0x506a00&&_0x1b0d1f?()=>{let _0x340d42=_0x506a00['getBoundingClientRect']();return ta(_0x340d42,_0x1b0d1f,ea(_0x506a00,_0x340d42));}:()=>{const _0x259abf=_0x301210;let _0x517d2c=Zi(_0xb67c3a);if(_0x517d2c&&_0x1b0d1f)return ta(_0x517d2c,_0x1b0d1f,_0x506a00?ea(_0x506a00,_0x517d2c):Ji);let _0x56bf82=Yi(_0xb67c3a),_0x16ee67=_0x506a00&&_0x517d2c?ea(_0x506a00,_0x517d2c):Ji,_0x1baa26=(_0x56bf82==null?void 0x0:_0x56bf82[_0x259abf(0x36f)])??(_0x517d2c?_0x517d2c['left']+_0xb67c3a[_0x259abf(0x26c)]['x']*_0x16ee67['scaleX']:_0xb67c3a[_0x259abf(0x26c)]['x']),_0xfe09c3=(_0x56bf82==null?void 0x0:_0x56bf82[_0x259abf(0x161)])??(_0x517d2c?_0x517d2c[_0x259abf(0x23a)]+_0xb67c3a[_0x259abf(0x26c)]['y']*_0x16ee67[_0x259abf(0x263)]:_0xb67c3a[_0x259abf(0x26c)]['y']);return{'left':_0x1baa26,'right':_0x1baa26+0x1,'top':_0xfe09c3,'bottom':_0xfe09c3+0x1};};}function ra(_0x7940ed){const _0xad3816=_0x58e4e4;return typeof _0x7940ed==_0xad3816(0x3b8)&&Number[_0xad3816(0x2c5)](_0x7940ed);}function ia(_0x15703d){const _0x25c8e1=_0x58e4e4;if(!_0x15703d||typeof _0x15703d!=_0x25c8e1(0x36d))return!0x0;let {startX:_0x4aab9b,endX:_0x2fee5e,startY:_0x21c362,endY:_0x5c71d9}=_0x15703d;return!ra(_0x4aab9b)||!ra(_0x2fee5e)||!ra(_0x21c362)||!ra(_0x5c71d9)||_0x2fee5e-_0x4aab9b>0x2&&_0x5c71d9-_0x21c362>0x2;}function aa(_0x52e625){const _0x4b0e5a=_0x58e4e4;return _0x52e625[_0x4b0e5a(0x213)]<=_0x52e625[_0x4b0e5a(0x270)]||_0x52e625[_0x4b0e5a(0x35f)]<=_0x52e625[_0x4b0e5a(0x23a)]?!0x1:typeof window>'u'||_0x52e625['right']>0x0&&_0x52e625['bottom']>0x0&&_0x52e625[_0x4b0e5a(0x270)]<window['innerWidth']&&_0x52e625[_0x4b0e5a(0x23a)]<window['innerHeight'];}function oa(_0x18ee35){var _0x52d523;return _0x18ee35==null||(_0x52d523=_0x18ee35['getValue'])==null?void 0x0:_0x52d523['call'](_0x18ee35);}function sa(_0x3e6e4a,_0x2efcd0,_0x4ede13){const _0x152084=_0x58e4e4;let _0x8afbb3=na(_0x3e6e4a),_0x1b145a=oa(_0x2efcd0),_0x2f8eb6=_0x8afbb3(),_0x48d3f7=new _0x251b31(_0x2f8eb6),_0x40be4c=new _0x2329d0(),_0x189a13=!0x1,_0x2398ae=!0x1,_0x501527=_0xc6f781=>ia(_0x1b145a)&&aa(_0xc6f781),_0x378160=()=>{_0x2398ae||_0x189a13||(_0x2398ae=!0x0,queueMicrotask(()=>{if(_0x2398ae=!0x1,!_0x189a13){let _0x59a026=_0x8afbb3();if(!_0x501527(_0x59a026)){_0x4ede13();return;}_0x48d3f7['next'](_0x59a026);}}));};return _0x2efcd0&&_0x40be4c['add'](_0x2efcd0[_0x152084(0x1ca)](_0x1db3b8=>{_0x1b145a=_0x1db3b8,_0x378160();})),typeof window<'u'&&_0x40be4c[_0x152084(0x1c7)](_0x3f8f2e(_0x1c4ba6(window,_0x152084(0x25f),{'capture':!0x0}),_0x1c4ba6(window,_0x152084(0x25a)))[_0x152084(0x3b1)](_0xc9a711(0x10))[_0x152084(0x1ca)](_0x378160)),{'initialRect':_0x2f8eb6,'anchorRect$':_0x48d3f7['asObservable'](),'visible':_0x501527(_0x2f8eb6),'dispose':()=>{const _0x3c3f7e=_0x152084;_0x189a13=!0x0,_0x40be4c['dispose'](),_0x48d3f7[_0x3c3f7e(0x1f9)]();}};}const ca=_0x58e4e4(0x2e5);let la=class extends _0x7b52dc{constructor(_0x3a599c,_0x5d3611,_0x43bb17,_0x2bd7f9,_0x1a7cf8,_0x319f92,_0x4dc87e,_0x33b3bf,_0x2e49d9){const _0x299c73=_0x58e4e4;super(),this['_chartModelService']=_0x3a599c,this[_0x299c73(0x28f)]=_0x5d3611,this[_0x299c73(0x140)]=_0x43bb17,this['_sheetCanvasPopManagerService']=_0x2bd7f9,this[_0x299c73(0x1c9)]=_0x1a7cf8,this[_0x299c73(0x250)]=_0x319f92,this['_adapterRegistry']=_0x4dc87e,this[_0x299c73(0x116)]=_0x33b3bf,this[_0x299c73(0x172)]=_0x2e49d9,W(this,'_popupDisposable',null),W(this,'_popupChartId',null),W(this,'_popupSessionKey',null),this[_0x299c73(0x122)](),this[_0x299c73(0x38b)]();}[_0x58e4e4(0x125)](){const _0x41170e=_0x58e4e4;this[_0x41170e(0x314)](),super[_0x41170e(0x125)]();}[_0x58e4e4(0x122)](){const _0x5c81bb=_0x58e4e4;let _0x57e2ec=_0xb3abd({'chartUIService':this['_chartUIService'],'getHostAdapter':_0x5a4dba=>{const _0x3badff=_0x29f5;let _0x39d0e7=this[_0x3badff(0x25d)][_0x3badff(0x2aa)](_0x5a4dba['chartId']);if(_0x39d0e7&&_0x5a4dba['subUnitId'])return new _0x47dff2(_0x39d0e7,new _0x4cd08c({'unitId':_0x5a4dba[_0x3badff(0x380)],'subUnitId':_0x5a4dba[_0x3badff(0x28c)],'chartId':_0x5a4dba[_0x3badff(0x1f8)],'injector':this[_0x3badff(0x172)]}));},'close':()=>this['_closePopup'](),'openFullPanel':_0x4f93e6=>{const _0x2b02f0=_0x29f5;let {unitId:_0x34274e,subUnitId:_0x3b600c,drawingId:_0x2213e9,chartId:_0x1a7f34}=_0x4f93e6,_0x3a7173=_0xb7f32b(_0x4f93e6[_0x2b02f0(0x11f)]);this[_0x2b02f0(0x116)][_0x2b02f0(0x1ee)](H['id'],{'unitId':_0x34274e,'subUnitId':_0x3b600c??'','drawingId':_0x2213e9??_0x1a7f34,..._0x3a7173?{'route':_0x3a7173}:{}});}});this[_0x5c81bb(0x105)](this[_0x5c81bb(0x2fd)][_0x5c81bb(0x3bd)](ca,_0x57e2ec));}['_subscribeChartEvents'](){const _0x318b8b=_0x58e4e4;this[_0x318b8b(0x105)](this[_0x318b8b(0x25d)][_0x318b8b(0x283)][_0x318b8b(0x1ca)](_0x212ea6=>{const _0x436457=_0x318b8b;let _0x517d4b=new _0x2329d0();_0x517d4b[_0x436457(0x1c7)](this[_0x436457(0x28f)]['on'](_0x212ea6['id'],_0x436457(0x1cf),_0x145bf6=>{this['_openFloatMenu'](_0x212ea6['id'],_0x145bf6);})),_0x517d4b[_0x436457(0x1c7)](this[_0x436457(0x28f)]['on'](_0x212ea6['id'],_0x436457(0x295),()=>{const _0x46315b=_0x436457;this[_0x46315b(0x3a2)](_0x212ea6['id']);})),_0x212ea6['onDispose'](()=>{const _0x2b83d5=_0x436457;_0x517d4b[_0x2b83d5(0x125)](),this[_0x2b83d5(0x2c9)](_0x212ea6['id']);}),this[_0x436457(0x105)](_0x517d4b);})),this['disposeWithMe'](_0x485af5([this[_0x318b8b(0x25d)][_0x318b8b(0x288)],this[_0x318b8b(0x250)][_0x318b8b(0x255)]])[_0x318b8b(0x1ca)](([_0x42f0b3,_0x30b7ef])=>{const _0x46e3db=_0x318b8b;(!_0x30b7ef||this[_0x46e3db(0x34a)]&&(_0x42f0b3==null?void 0x0:_0x42f0b3['id'])!==this[_0x46e3db(0x34a)])&&this['_closePopup']();})),this[_0x318b8b(0x105)](this['_sheetCanvasFloatDomManagerService'][_0x318b8b(0x1e8)][_0x318b8b(0x1ca)](({id:_0x1ca026})=>{this['_clearSelectedTarget'](_0x1ca026);})),this[_0x318b8b(0x105)](this[_0x318b8b(0x1c9)][_0x318b8b(0x364)][_0x318b8b(0x1ca)](({id:_0x478500})=>{this['_clearSelectedTarget'](_0x478500);})),this[_0x318b8b(0x105)](this[_0x318b8b(0x140)][_0x318b8b(0x385)][_0x318b8b(0x1ca)](_0x982758=>{const _0x1371f3=_0x318b8b;this[_0x1371f3(0x2c9)](_0x982758);}));}['_openEditPanelByDoubleClick'](_0xdb21d9){const _0x31ced8=_0x58e4e4;if(this[_0x31ced8(0x250)]['chartEditorOpen'])return;let _0x3b4b16=this['_chartModelService']['getChartModel'](_0xdb21d9),_0xfef217=this['_sheetCanvasFloatDomManagerService'][_0x31ced8(0x1c0)](_0xdb21d9);_0x3b4b16&&_0xfef217&&this[_0x31ced8(0x116)][_0x31ced8(0x1ee)](H['id'],{'unitId':_0xfef217[_0x31ced8(0x380)],'subUnitId':_0xfef217['subUnitId']??'','drawingId':_0xdb21d9});}['_openFloatMenu'](_0x91515e,_0x476609){const _0x5dd236=_0x58e4e4;if(!this[_0x5dd236(0x250)][_0x5dd236(0x2a5)](_0x91515e))return;let _0x2e5f38=this[_0x5dd236(0x25d)][_0x5dd236(0x2aa)](_0x91515e),_0x5156d3=_0x2e5f38?Gr(_0x2e5f38,_0x476609['hit']):void 0x0;if(!_0x5156d3){this['_chartUIService'][_0x5dd236(0x319)](),this['_closePopup']();return;}let _0x3cbcaf=this[_0x5dd236(0x1c9)][_0x5dd236(0x1c0)](_0x91515e);if(!_0x2e5f38||!_0x3cbcaf){this['_chartUIService'][_0x5dd236(0x319)](),this[_0x5dd236(0x314)]();return;}let _0x241b05=JSON[_0x5dd236(0x3c2)]([_0x3cbcaf[_0x5dd236(0x380)],_0x3cbcaf[_0x5dd236(0x28c)],_0x91515e,_0x5156d3[_0x5dd236(0x11f)]]);if(this[_0x5dd236(0x2a9)]&&this['_popupSessionKey']===_0x241b05||(this[_0x5dd236(0x250)][_0x5dd236(0x267)](_0x91515e,_0x5156d3[_0x5dd236(0x2fb)]),this[_0x5dd236(0x314)](),!_0x5156d3[_0x5dd236(0x1f4)]))return;let _0x54efd0=sa(_0x476609,_0x3cbcaf['position$'],()=>this[_0x5dd236(0x39f)](_0x91515e));if(!_0x54efd0['visible']){_0x54efd0[_0x5dd236(0x125)]();return;}let _0x585ab2=this[_0x5dd236(0x302)][_0x5dd236(0x355)](_0x54efd0[_0x5dd236(0x324)],_0x54efd0['anchorRect$'],{'componentKey':_0x99cfd,'constrainToCanvas':!0x0,'direction':_0x5dd236(0x327),'offset':[0x0,0x8],'extraProps':{'unitId':_0x3cbcaf[_0x5dd236(0x380)],'subUnitId':_0x3cbcaf[_0x5dd236(0x28c)],'chartId':_0x91515e,'drawingId':_0x91515e,'element':_0x476609['hit'],'target':_0x5156d3['target'],'adapterKey':ca}},_0x3cbcaf[_0x5dd236(0x380)],_0x3cbcaf[_0x5dd236(0x28c)])??null;if(!_0x585ab2){_0x54efd0[_0x5dd236(0x125)]();return;}let _0x5ef71f=new _0x2329d0();_0x5ef71f['add'](_0x585ab2),_0x5ef71f['add'](_0x54efd0),this[_0x5dd236(0x2a9)]=_0x5ef71f,this[_0x5dd236(0x34a)]=_0x91515e,this[_0x5dd236(0x272)]=_0x241b05;}[_0x58e4e4(0x314)](){const _0x925358=_0x58e4e4;var _0x34c82a;(_0x34c82a=this[_0x925358(0x2a9)])==null||_0x34c82a[_0x925358(0x125)](),this[_0x925358(0x2a9)]=null,this[_0x925358(0x34a)]=null,this[_0x925358(0x272)]=null;}[_0x58e4e4(0x2c9)](_0x245293){const _0x12467f=_0x58e4e4;(this[_0x12467f(0x250)][_0x12467f(0x2a5)](_0x245293)||this['_popupChartId']===_0x245293)&&(this[_0x12467f(0x250)]['clearPanelRoute'](),this[_0x12467f(0x34a)]===_0x245293&&this[_0x12467f(0x314)]());}[_0x58e4e4(0x39f)](_0x5f2a59){const _0x25be77=_0x58e4e4;this['_clearSelectedTarget'](_0x5f2a59),this['_chartUIService'][_0x25be77(0x2a5)](_0x5f2a59)&&(this['_chartRenderService']['setElementEditMode'](_0x5f2a59,!0x1),this[_0x25be77(0x28f)]['setElementEditMode'](_0x5f2a59,!0x0));}};la=q([K(0x0,_0x569e33(_0x1e33a9)),K(0x1,_0x569e33(J)),K(0x2,ui),K(0x3,_0x569e33(_0x4b4fef)),K(0x4,_0x569e33(_0x351035)),K(0x5,Y),K(0x6,_0x569e33(_0x1995df)),K(0x7,_0x10f119),K(0x8,_0x569e33(_0x56051b))],la);let ua=class extends _0x7b52dc{constructor(_0x59c231,_0x1eea01){const _0xf64a58=_0x58e4e4;super(),this[_0xf64a58(0x387)]=_0x59c231,this[_0xf64a58(0x2b7)]=_0x1eea01,this['_registerIcons'](),this[_0xf64a58(0x308)]();}[_0x58e4e4(0x1bf)](){const _0x15f05c=_0x58e4e4;this[_0x15f05c(0x105)](this['_iconManager']['register']({'PenIcon':_0x463fa8}));}[_0x58e4e4(0x308)](){const _0x145fd0=_0x58e4e4;[[Ci,Si]][_0x145fd0(0x2db)](([_0x2260f2,_0x3dc024])=>{const _0x160831=_0x145fd0;this['disposeWithMe'](this[_0x160831(0x387)][_0x160831(0x3bd)](_0x2260f2,_0x3dc024));});}};ua=q([K(0x0,_0x569e33(_0x122d09)),K(0x1,_0x569e33(_0x501d02))],ua);let $=class extends _0x5bf473{constructor(_0x9f51ad=Cr,_0x3ae84d,_0x127ceb,_0x2c58e4){const _0x1852ab=_0x58e4e4;super(),this['_config']=_0x9f51ad,this[_0x1852ab(0x172)]=_0x3ae84d,this[_0x1852ab(0x211)]=_0x127ceb,this[_0x1852ab(0x116)]=_0x2c58e4,W(this,_0x1852ab(0x128),void 0x0);let {..._0xfbd542}=_0x11a014({},Cr,this[_0x1852ab(0x309)]);this[_0x1852ab(0x128)]=_0xfbd542,this['_configService'][_0x1852ab(0x13b)](Sr,_0xfbd542),this[_0x1852ab(0x176)]();}[_0x58e4e4(0x22b)](){const _0x1e3e1a=_0x58e4e4;this[_0x1e3e1a(0x172)][_0x1e3e1a(0x1c7)]([ua]),this[_0x1e3e1a(0x172)][_0x1e3e1a(0x368)](ua);let _0x8f25f8=this['_injector'],_0xe151a9=[[Y,{'useClass':mi}],[ui,{'useClass':li}],[ni],[J],[Z],[Oi],[ji],[Mi],[Ki],[Ri],[qi]],_0x50e3d6=[[Oi],[Mi],[ji],[Z],[Y],[Ki],[Ri],[qi]];this['_resolvedConfig'][_0x1e3e1a(0x1d5)]&&(_0xe151a9['push']([la]),_0x50e3d6[_0x1e3e1a(0x14a)]([la])),_0xe151a9['forEach'](_0x4be033=>_0x8f25f8[_0x1e3e1a(0x1c7)](_0x4be033)),_0x1942f9(this[_0x1e3e1a(0x172)],_0x50e3d6);}[_0x58e4e4(0x10f)](){const _0x5be627=_0x58e4e4;var _0x571cd9;(_0x571cd9=this[_0x5be627(0x172)][_0x5be627(0x368)](Oi))==null||_0x571cd9[_0x5be627(0x1f6)]();}['_initCommands'](){const _0x18acf0=_0x58e4e4;[U,Dr,Or,kr,Ar,H,wr][_0x18acf0(0x2db)](_0x51e7c6=>this[_0x18acf0(0x105)](this[_0x18acf0(0x116)][_0x18acf0(0x2bb)](_0x51e7c6)));}};W($,_0x58e4e4(0x2e2),_0xaf509f[_0x58e4e4(0x16d)]),W($,_0x58e4e4(0x248),'UniverSheetsChartUIPlugin'),W($,_0x58e4e4(0x285),ki),W($,_0x58e4e4(0x2f7),Ai),$=q([_0x39613b(_0x28eac2,_0x868a1c,_0x15fe35,_0x1dcfa0,_0x4288b5,_0x690a4d,_0x67f924,_0x5941b2,_0x2fb4ea),K(0x1,_0x569e33(_0x56051b)),K(0x2,_0x58cb4f),K(0x3,_0x10f119)],$);export{H as ChartOpenPanelOperation,J as ChartRenderService,Y as ISheetsChartUIService,Sr as SHEETS_CHART_UI_PLUGIN_CONFIG_KEY,Oi as SheetsChartUIController,Hr as SheetsChartUIMenuSchema,mi as SheetsChartUIService,Q as UniverSheetsChartMobileUIPlugin,$ as UniverSheetsChartUIPlugin,sa as createChartElementPopupAnchorObserver};
1
+ const _0x69a5c7=_0x20d6;(function(_0x2b3d9a,_0x5bd475){const _0x279198=_0x20d6,_0x475286=_0x2b3d9a();while(!![]){try{const _0x59d28c=-parseInt(_0x279198(0x2c1))/0x1+-parseInt(_0x279198(0x2e4))/0x2*(-parseInt(_0x279198(0x275))/0x3)+-parseInt(_0x279198(0x2aa))/0x4*(parseInt(_0x279198(0x47a))/0x5)+-parseInt(_0x279198(0x450))/0x6+parseInt(_0x279198(0x407))/0x7+-parseInt(_0x279198(0x3cd))/0x8*(parseInt(_0x279198(0x329))/0x9)+parseInt(_0x279198(0x3ca))/0xa;if(_0x59d28c===_0x5bd475)break;else _0x475286['push'](_0x475286['shift']());}catch(_0x24d971){_0x475286['push'](_0x475286['shift']());}}}(_0xfb25,0x3e75b));import{CommandType as _0x2dc398,DependentOn as _0x29ad3a,Disposable as _0x5f44fb,DisposableCollection as _0x2ae904,DrawingTypeEnum as _0x56b014,FOCUSING_COMMON_DRAWINGS as _0x23d889,FOCUSING_PANEL_EDITOR as _0x2d0220,ICommandService as _0xb35996,IConfigService as _0x250254,IContextService as _0x3387ab,IUniverInstanceService as _0x1534cf,Inject as _0x345df3,Injector as _0x21bd92,LocaleService as _0x332fea,Plugin as _0x5a6cd9,ThemeService as _0x596b6e,UniverInstanceType as _0x3cb846,createIdentifier as _0x2e14a3,debounce as _0x32b3ce,generateRandomId as _0x202a60,isValidRange as _0x409d0d,merge as _0x43ed0f,numberToABC as _0x29488d,toDisposable as _0x354ba0,touchDependencies as _0x13e92b}from'@univerjs/core';import{ChartModelService as _0xfc5243,ChartUpdateConfigCommand as _0x2ebcde,ChartUpdateConfigMutation as _0x2147c7,ChartUpdateSourceCommand as _0x50e31b,InsertChartCommand as _0x5a5e08,InsertSheetsChartMutation as _0x1af921,RemoveSheetsChartMutation as _0x3c244d,SHEETS_CHART_PLUGIN_CONFIG_KEY as _0x4c1a80,SHEETS_CHART_PLUGIN_NAME as _0x112fc2,SheetChartConfigAdapter as _0x3bea97,SheetsChartService as _0x186c61,UniverSheetsChartPlugin as _0x222f25,getAllowedChartTypes as _0x119e1e,toInsertChartMutationSource as _0x270522}from'@univerjs-pro/sheets-chart';import{IDrawingManagerService as _0x6f6e55,UniverDrawingPlugin as _0x5660da,getDrawingShapeKeyByDrawingSearch as _0x558e11,getOrCreateDrawingCopyPlan as _0x469840}from'@univerjs/drawing';import{DrawingApplyType as _0x51d5ba,ISheetDrawingService as _0x1ae351,RemoveSheetDrawingCommand as _0xa337c1,SetDrawingApplyMutation as _0x558242,UniverSheetsDrawingPlugin as _0x4da14f,transformToDrawingPosition as _0x3fe23c}from'@univerjs/sheets-drawing';import{SHEET_CHART_RENDER_OBJECT_CONFIG as _0x235aca,SheetCanvasFloatDomManagerService as _0x5a2ef7,SheetDrawingHitTestService as _0x57df2c,UniverSheetsDrawingMobileUIPlugin as _0x4372aa,UniverSheetsDrawingUIPlugin as _0x1ad69a}from'@univerjs/sheets-drawing-ui';import{COPY_TYPE as _0x2edb47,ISheetClipboardService as _0x917367,PREDEFINED_HOOK_NAME as _0x1ff07e,SheetCanvasPopManagerService as _0xd20d74,SheetCopyCommand as _0x19a0dd,SheetPrintInterceptorService as _0x24e67d,SheetSkeletonManagerService as _0x3b1fb0,UniverSheetsMobileUIPlugin as _0x50420e,UniverSheetsUIPlugin as _0x5dca7f,deriveStateFromActiveSheet$ as _0x204fe4,getCurrentRangeDisable$ as _0x11f8e3}from'@univerjs/sheets-ui';import{CanvasFloatDomService as _0x9fa0b5,ComponentManager as _0x78a75,ContextMenuGroup as _0x2998c7,ContextMenuPosition as _0x1b52d1,IMenuManagerService as _0x31d4ae,ISidebarService as _0x147114,IconManager as _0x1e722e,KeyCode as _0x26f9ff,MenuItemType as _0x289a88,NativeTextEditorShortcutBehavior as _0x958064,RibbonInsertGroup as _0x15dc3c,UniverMobileUIPlugin as _0x3e8082,getMenuHiddenObservable as _0x4a35db,useDependency as _0x29d6b7,useObservable as _0x293efe}from'@univerjs/ui';import{BehaviorSubject as _0x4b7bf6,Observable as _0xd8e52b,Subject as _0x8138ee,combineLatest as _0x491efe,combineLatestWith as _0x3f98ea,debounceTime as _0x5117d2,distinctUntilChanged as _0x4ad411,filter as _0x501dd5,fromEvent as _0x528341,map as _0x398f6c,merge as _0x597287,pairwise as _0x3861e1,skip as _0x1b1665,startWith as _0x453064,switchMap as _0x3c1160,take as _0x11684a,throttleTime as _0x3de94d,withLatestFrom as _0x17c793}from'rxjs';import{CHART_ELEMENT_FLOAT_MENU_COMPONENT as _0x4a8725,CHART_HOST_BORDER_RADIUS as _0x2b1964,CHART_TYPE_CATALOG as _0x28af22,ChartAxisSection as _0x511d6a,ChartDomFrame as _0x3fc8d5,ChartEditBlockTitle as _0x33cfc0,ChartEditPanelSection as _0x189941,ChartEditPanelTab as _0x1f97c4,ChartEditorCapability as _0x2b2428,ChartEditorProvider as _0xbe9ad0,ChartEditorTabs as _0x2aef1e,ChartElementFloatMenuAdapterRegistry as _0x39aee3,ChartFrameContentMode as _0x46d290,ChartFrameLayout as _0x45f261,ChartFunnelStyleSection as _0x15c403,ChartGridlinesAndTicksSection as _0x4f0962,ChartHeatmapStyleSection as _0x54df14,ChartHostAdapter as _0x68520,ChartImageExportService as _0x16b7e0,ChartIndicatorLineSection as _0x5188b5,ChartLegendSection as _0x52cf08,ChartLineAndAreaSection as _0x20f957,ChartNumberFormatAtom as _0x16c936,ChartParetoSeriesSection as _0x388c4c,ChartPieStyleSection as _0x4d83dd,ChartRadarStyleSection as _0x33c557,ChartRelationStyleSection as _0x3e4c84,ChartSectionAccordion as _0x305079,ChartSectionAccordionContent as _0x511db8,ChartSectionAccordionItem as _0x23cb6b,ChartSectionAccordionTrigger as _0x2305ff,ChartSeriesSection as _0x594dcf,ChartSetupPanel as _0x175816,ChartStyleSection as _0x933573,ChartThreeDSection as _0x3e41f1,ChartTitlesSection as _0x517690,ChartTrendlineSection as _0x37fa4b,ChartTypeSpecificStyleSection as _0x49c80e,ChartUIService as _0x1d0c18,ChartViewStateRegistry as _0x45f903,ChartWaterfallStyleSection as _0x5c7b23,ChartWordCloudStyleSection as _0x28e719,DEFAULT_CHART_AXIS_VALUES as _0x20a172,DEFAULT_CHART_FUNNEL_VALUES as _0x251037,DEFAULT_CHART_HEATMAP_VALUES as _0x1d78a8,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x5eae0d,DEFAULT_CHART_LEGEND_VALUES as _0x1eaeba,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x432b2b,DEFAULT_CHART_PARETO_VALUES as _0x5540c1,DEFAULT_CHART_PIE_VALUES as _0x183bbc,DEFAULT_CHART_RADAR_VALUES as _0x41c0bd,DEFAULT_CHART_RELATION_VALUES as _0x3ab465,DEFAULT_CHART_SERIES_VALUES as _0x333ef3,DEFAULT_CHART_STYLE_VALUES as _0x39d4a9,DEFAULT_CHART_TITLE_VALUES as _0x1b6863,DEFAULT_CHART_TRENDLINE_VALUES as _0x174c0d,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x58db5f,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x9f7cea,MobileChartEditorProvider as _0x19c27e,UniverChartMobileUIPlugin as _0xedd2d6,UniverChartUIPlugin as _0x4258cf,buildChartTypeSelectOptions as _0x2e6d09,chartTypeSupportsCapability as _0x348fa8,chartTypeSupportsLineAndAreaStyle as _0x23d2ec,createChartElementFloatMenuAdapter as _0x52faeb,resolveChartCreationIntent as _0x20751a,resolveChartEditPanelRoute as _0x14da42,resolveChartElementSelection as _0x5544c6,useChartEditorChartType as _0x16eed1,useChartEditorHasRightAxis as _0x3640db}from'@univerjs-pro/chart-ui';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x27627e,ChartImageExportFormat as _0x38cf3f,ChartImageSourceType as _0x5c1e70,ChartRenderMode as _0x339cde,ChartSourceHeaderTitleType as _0x427e12,ChartThemeService as _0x56cc75,ChartTypeBits as _0x5c9c9b,ChartWaterfallStyleTarget as _0x165144,DataOrientation as _0x364c6a,EChartRenderEngineName as _0x22ce5a,IChartRenderModelManagerService as _0x4a6d3a,ImageChartHost as _0x29f4ac,PieSecondaryPlotType as _0x2191f5,RTLChartStyle as _0x497b2d,chartBitsUtils as _0x8e9e65,chartImageSourceToDataUrl as _0x2eb5b6,chartTypeCanUseTrendLine as _0x3af596,resolveChartRuntimeStyle as _0x3b9cac,resolveChartStyleBackgroundColor as _0xdd049b,resolveDefaultChartHostFrameStyle as _0x526b52}from'@univerjs-pro/engine-chart';import{CopySheetCommand as _0x3e7429,RemoveSheetCommand as _0xa9c809,SheetInterceptorService as _0x60328a,SheetPermissionCheckController as _0x582ab5,SheetSkeletonService as _0x38e42c,SheetsSelectionsService as _0x358ca5,UniverSheetsPlugin as _0x404a8f,WorkbookEditablePermission as _0x49772b,WorksheetEditPermission as _0x42fea3,attachRangeWithCoord as _0x191702,discreteRangeToRange as _0x55eda6,getSheetCommandTarget as _0x1fa958}from'@univerjs/sheets';import{deserializeRangeWithSheet as _0x77b34e,matchToken as _0x477ba7,serializeRangeWithSheet as _0x2e0b70}from'@univerjs/engine-formula';import{insertGroupObject as _0x55d117}from'@univerjs/drawing-ui';import{DRAWING_OBJECT_LAYER_INDEX as _0x427904,IRenderManagerService as _0x3a5b98,ObjectType as _0x14842c,RENDER_CLASS_TYPE as _0x5059bd,Rect as _0x442b9f,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x111a6e,Transform as _0x235067,UniverRenderEnginePlugin as _0x2e4d79}from'@univerjs/engine-render';import{useCallback as _0x16d356,useEffect as _0x434cb3,useMemo as _0x6c0456,useRef as _0x3ebae9,useState as _0x11eb2f}from'react';import{Button as _0x43a6c9,Checkbox as _0x134911}from'@univerjs/design';import{MobileRangeSelector as _0x5901f0,RangeSelector as _0x1f1e9d}from'@univerjs/sheets-formula-ui';import{Fragment as _0x4328e0,jsx as _0x39cd6c,jsxs as _0x1b1cd9}from'react/jsx-runtime';import{UniverLicensePlugin as _0x1820fc}from'@univerjs-pro/license';import{PenIcon as _0x1980bd}from'@univerjs/icons';const H={'type':_0x2dc398[_0x69a5c7(0x285)],'id':_0x69a5c7(0x472),'handler'(){return!0x0;}},Cr=_0x69a5c7(0x4b3),wr={'enableChartElementFloatMenu':!0x0},Tr={'type':_0x2dc398[_0x69a5c7(0x285)],'id':'sheet.operation.hide-chart-panel','handler'(){return!0x0;}};function Er(_0x12c814){const _0x2fffaa=_0x69a5c7;let _0x53f625=_0x12c814[_0x2fffaa(0x39d)](_0x1ae351)['getFocusDrawings']();if(_0x53f625[_0x2fffaa(0x44b)]!==0x1)return null;let _0x3c06a0=_0x53f625[0x0];return _0x3c06a0['drawingType']===_0x56b014[_0x2fffaa(0x464)]?_0x3c06a0:null;}function Dr(_0xd1de89,_0x50c872){const _0x5c6122=_0x69a5c7;let _0xe945ba=document['createElement']('a');_0xe945ba[_0x5c6122(0x355)]=_0xd1de89,_0xe945ba['download']=_0x50c872,_0xe945ba[_0x5c6122(0x306)]();}const Or={'id':'sheet.command.chart.open-focused-panel','type':_0x2dc398[_0x69a5c7(0x25d)],'handler':(_0x58205c,_0xc6bc3f)=>{const _0x49ac0b=_0x69a5c7;let _0x314af5=Er(_0x58205c);return _0x314af5?_0x58205c['get'](_0xb35996)[_0x49ac0b(0x37e)](H['id'],{'unitId':_0x314af5[_0x49ac0b(0x1ee)],'subUnitId':_0x314af5[_0x49ac0b(0x419)],'drawingId':_0x314af5[_0x49ac0b(0x3c1)],..._0xc6bc3f!=null&&_0xc6bc3f[_0x49ac0b(0x3a6)]?{'route':_0xc6bc3f['route']}:{}}):!0x1;}},kr={'id':_0x69a5c7(0x1f9),'type':_0x2dc398[_0x69a5c7(0x25d)],'handler':_0xca98e9=>Er(_0xca98e9)?_0xca98e9[_0x69a5c7(0x39d)](_0xb35996)[_0x69a5c7(0x37e)](_0x19a0dd['id']):!0x1},Ar={'id':_0x69a5c7(0x3d7),'type':_0x2dc398['COMMAND'],'handler':async _0xd1f046=>{const _0x21f712=_0x69a5c7;let _0xa0010b=Er(_0xd1f046);if(!_0xa0010b)return!0x1;let _0x232a1e=await _0xd1f046[_0x21f712(0x39d)](_0x16b7e0)[_0x21f712(0x352)]({'unitId':_0xa0010b[_0x21f712(0x1ee)],'subUnitId':_0xa0010b[_0x21f712(0x419)],'getId':()=>_0xa0010b[_0x21f712(0x3c1)]});return _0x232a1e?(Dr(_0x232a1e,_0xa0010b[_0x21f712(0x3c1)]+_0x21f712(0x41c)),!0x0):!0x1;}},jr={'id':_0x69a5c7(0x2b4),'type':_0x2dc398['COMMAND'],'handler':_0x4bffe2=>{const _0x376929=_0x69a5c7;let _0xfd933a=Er(_0x4bffe2);return _0xfd933a?_0x4bffe2[_0x376929(0x39d)](_0xb35996)[_0x376929(0x37e)](_0xa337c1['id'],{'unitId':_0xfd933a[_0x376929(0x1ee)],'drawings':[{'unitId':_0xfd933a['unitId'],'subUnitId':_0xfd933a[_0x376929(0x419)],'drawingId':_0xfd933a[_0x376929(0x3c1)],'drawingType':_0x56b014[_0x376929(0x464)]}]}):!0x1;}},U={'type':_0x2dc398[_0x69a5c7(0x25d)],'id':_0x69a5c7(0x431),'handler':async(_0x5bea40,_0x4f7838)=>{const _0x2a4948=_0x69a5c7;let _0xe2b6c8=_0x1fa958(_0x5bea40[_0x2a4948(0x39d)](_0x1534cf));if(!_0xe2b6c8)return!0x1;let _0x33893c=_0x5bea40[_0x2a4948(0x39d)](_0x358ca5)['getCurrentLastSelection']();if(!_0x33893c)return!0x1;let {range:_0x246c4f}=_0x33893c,_0x26ea6b=_0x5bea40[_0x2a4948(0x39d)](_0xb35996),{unitId:_0x406c17,subUnitId:_0xaf1823}=_0xe2b6c8,{pieSecondaryPlotType:_0x1d4c88,value:_0x70708e}=_0x4f7838,_0x56afac=_0x1d4c88!==void 0x0;if(_0x56afac&&(_0x70708e!==_0x5c9c9b[_0x2a4948(0x1e1)]||_0x1d4c88!==_0x2191f5[_0x2a4948(0x1e1)]&&_0x1d4c88!==_0x2191f5[_0x2a4948(0x2ff)]))return!0x1;let _0x3858a6=_0x56afac?_0x202a60():void 0x0;return _0x26ea6b[_0x2a4948(0x37e)](_0x5a5e08['id'],{'unitId':_0x406c17,'subUnitId':_0xaf1823,'chartType':_0x70708e,..._0x3858a6&&_0x1d4c88?{'chartId':_0x3858a6,'config':{'unitId':_0x406c17,'chartModelId':_0x3858a6,'style':{'pie':{'composite':{'enabled':!0x0,'secondaryPlot':{'type':_0x1d4c88}}}}}}:{},'source':{'rangeInfo':{'unitId':_0x246c4f['unitId']??_0x406c17,'subUnitId':_0x246c4f['sheetId']??_0xaf1823,'range':_0x246c4f}}});}};function Mr(_0x2b621b,_0x3861a4){const _0x1c7af4=_0x69a5c7;if(_0x2b621b==null)return'';if(Array[_0x1c7af4(0x3c3)](_0x2b621b)){var _0x4b633f;let _0x4ae339=(_0x4b633f=_0x2b621b[0x0])==null?void 0x0:_0x4b633f[_0x1c7af4(0x4cc)];return _0x4ae339?Nr(_0x4ae339,_0x3861a4):'';}return Nr(_0x2b621b['rangeInfo'],_0x3861a4);}function Nr(_0x3cb05a,_0x27bc98){const _0x2cff25=_0x69a5c7;var _0x3cb053;let {unitId:_0x1d395a,subUnitId:_0x4370f4,range:_0x2cc6ce}=_0x3cb05a,_0x4da1b0=(_0x3cb053=_0x27bc98[_0x2cff25(0x49d)](_0x1d395a))==null?void 0x0:_0x3cb053[_0x2cff25(0x460)](_0x4370f4);if(!_0x4da1b0)return'';let _0x2203ec=_0x4da1b0[_0x2cff25(0x3e5)]();return _0x2e0b70(_0x2203ec,_0x2cc6ce);}const Pr=_0x28af22[_0x69a5c7(0x44e)](_0x5e89ce=>({'id':'id'in _0x5e89ce?_0x5e89ce['id']:void 0x0,'labelId':_0x5e89ce[_0x69a5c7(0x46e)],'pieSecondaryPlotType':_0x69a5c7(0x3e6)in _0x5e89ce?_0x5e89ce['pieSecondaryPlotType']:void 0x0,'value':_0x5e89ce['value'],'icon':_0x5e89ce['iconName']}));function Fr(_0x302ad5=Pr){const _0x25bc58=_0x69a5c7;return _0x302ad5[_0x25bc58(0x44e)](({id:_0x1d1d4e,icon:_0x36649b,value:_0x3c27c6})=>{const _0x38df54=_0x25bc58;let _0x4ca8e2=_0x20751a(_0x1d1d4e??String(_0x3c27c6)),_0x4ef2d8=_0x4ca8e2?{'value':_0x4ca8e2['chartType'],..._0x4ca8e2['pieSecondaryPlotType']?{'pieSecondaryPlotType':_0x4ca8e2[_0x38df54(0x3e6)]}:{}}:{'value':_0x3c27c6};return{'icon':_0x36649b,'value':_0x1d1d4e??_0x3c27c6,'params':_0x4ef2d8};});}const Ir=(_0x1da2d5,_0xd47976)=>{const _0x41d533=_0x69a5c7;if(_0xd47976['length']===0x1&&_0xd47976[0x0]==='all')return _0x1da2d5;if(_0xd47976['length']>0x1){let _0x545ff9=new Set();for(let _0x26a84e of _0xd47976)_0x545ff9[_0x41d533(0x337)](Number(_0x26a84e));return _0x1da2d5[_0x41d533(0x1de)](_0x5ef50f=>_0x545ff9[_0x41d533(0x29a)](_0x5ef50f[_0x41d533(0x305)]));}return[];};function Lr(_0x5f2066){const _0x61abbb=_0x69a5c7;let _0x14181a=_0x5f2066[_0x61abbb(0x39d)](_0x1534cf),_0x1ad844=_0x119e1e(_0x5f2066),_0x4ba70a=Ir(Pr[_0x61abbb(0x461)](),_0x1ad844),_0x540a4f=Fr(_0x4ba70a)[_0x61abbb(0x44e)]((_0x401e33,_0x13d0c0)=>({'icon':_0x401e33['icon'],'value':_0x401e33[_0x61abbb(0x305)],'params':_0x401e33[_0x61abbb(0x3cc)],'label':'sheets-chart-ui.chartTypes.'+_0x4ba70a[_0x13d0c0][_0x61abbb(0x46e)]}));return{'id':U['id'],'type':_0x289a88[_0x61abbb(0x2ea)],'selectionsCommandId':U['id'],'selections':_0x540a4f,'icon':_0x61abbb(0x3ee),'tooltip':'sheets-chart-ui.common.insertChart','activated$':_0x204fe4(_0x14181a,!0x1,()=>new _0xd8e52b(_0x26c487=>{const _0x345df8=_0x61abbb;_0x26c487[_0x345df8(0x2ab)](!0x1);})),'hidden$':_0x4a35db(_0x5f2066,_0x3cb846['UNIVER_SHEET']),'disabled$':_0x11f8e3(_0x5f2066)};}function Rr(_0x4c2bb5){const _0x2127a8=_0x69a5c7;let _0x4cd42d=_0x4c2bb5[_0x2127a8(0x39d)](_0x1ae351);return _0x4cd42d[_0x2127a8(0x43f)]['pipe'](_0x453064(_0x4cd42d[_0x2127a8(0x331)]()),_0x398f6c(()=>Er(_0x4c2bb5)==null));}function zr(_0x416edc){const _0x1bccb7=_0x69a5c7;return{'id':Or['id'],'commandId':Or['id'],'type':_0x289a88[_0x1bccb7(0x4a8)],'title':_0x416edc['get'](_0x332fea)['t']('sheets-chart-ui.common.openChartPanel'),'icon':_0x1bccb7(0x3a5),'hidden$':Rr(_0x416edc)};}function Br(_0x168f74){const _0x593e55=_0x69a5c7;return{'id':kr['id'],'commandId':kr['id'],'type':_0x289a88['BUTTON'],'title':_0x168f74[_0x593e55(0x39d)](_0x332fea)['t']('sheets-chart-ui.common.copy'),'icon':'CopyDoubleIcon','hidden$':Rr(_0x168f74)};}function Vr(_0x5311cb){const _0x4a1a4d=_0x69a5c7;return{'id':Ar['id'],'commandId':Ar['id'],'type':_0x289a88[_0x4a1a4d(0x4a8)],'title':_0x5311cb['get'](_0x332fea)['t'](_0x4a1a4d(0x4b8)),'icon':_0x4a1a4d(0x2af),'hidden$':Rr(_0x5311cb)};}function Hr(_0x1a5fb2){const _0x3d8b9a=_0x69a5c7;return{'id':jr['id'],'commandId':jr['id'],'type':_0x289a88[_0x3d8b9a(0x4a8)],'title':_0x1a5fb2[_0x3d8b9a(0x39d)](_0x332fea)['t'](_0x3d8b9a(0x490)),'icon':'DeleteIcon','hidden$':Rr(_0x1a5fb2)};}const Ur={[_0x15dc3c[_0x69a5c7(0x268)]]:{[U['id']]:{'order':0x4,'menuItemFactory':Lr}},[_0x1b52d1['DRAWING']]:{[_0x2998c7['OTHERS']]:{[Or['id']]:{'order':0x0,'menuItemFactory':zr},[kr['id']]:{'order':0x1,'menuItemFactory':Br},[Ar['id']]:{'order':0x3,'menuItemFactory':Vr},[jr['id']]:{'order':0x4,'menuItemFactory':Hr}}}};function Wr(_0x32ca10){const _0x19d905=_0x69a5c7;return _0x32ca10===_0x5c9c9b[_0x19d905(0x492)]||_0x32ca10===_0x5c9c9b[_0x19d905(0x4c4)]||_0x32ca10===_0x5c9c9b[_0x19d905(0x341)]||_0x8e9e65[_0x19d905(0x411)](_0x32ca10,_0x5c9c9b['Line'])||_0x8e9e65['baseOn'](_0x32ca10,_0x5c9c9b['Column'])||_0x8e9e65[_0x19d905(0x411)](_0x32ca10,_0x5c9c9b['Area'])||_0x8e9e65['baseOn'](_0x32ca10,_0x5c9c9b[_0x19d905(0x20c)]);}function Gr(_0x334bc9){const _0x4716a5=_0x69a5c7;return Wr(_0x334bc9)||_0x8e9e65[_0x4716a5(0x411)](_0x334bc9,_0x5c9c9b[_0x4716a5(0x1e1)])||_0x8e9e65[_0x4716a5(0x411)](_0x334bc9,_0x5c9c9b[_0x4716a5(0x31a)])||_0x8e9e65['baseOn'](_0x334bc9,_0x5c9c9b['Waterfall']);}function Kr(_0x16c463,_0x53e91a){const _0x672651=_0x69a5c7;let _0x2eea28=_0x5544c6(_0x16c463,_0x53e91a),_0x51ac1e=_0x2eea28?_0x14da42(_0x2eea28['target']):void 0x0;if(_0x2eea28&&_0x51ac1e)return{..._0x2eea28,'route':_0x51ac1e,'showFloatMenu':Gr(_0x16c463[_0x672651(0x24f)])&&_0x2eea28[_0x672651(0x423)]};}function qr(_0x3191bb){'@babel/helpers - typeof';const _0x28a83f=_0x69a5c7;return qr=typeof Symbol==_0x28a83f(0x2f8)&&typeof Symbol['iterator']==_0x28a83f(0x245)?function(_0x1f02e3){return typeof _0x1f02e3;}:function(_0x53820c){const _0x3a1087=_0x28a83f;return _0x53820c&&typeof Symbol==_0x3a1087(0x2f8)&&_0x53820c[_0x3a1087(0x4ad)]===Symbol&&_0x53820c!==Symbol[_0x3a1087(0x211)]?_0x3a1087(0x245):typeof _0x53820c;},qr(_0x3191bb);}function Jr(_0x590d67,_0x105345){const _0x492bd2=_0x69a5c7;if(qr(_0x590d67)!=_0x492bd2(0x47f)||!_0x590d67)return _0x590d67;var _0x4d2687=_0x590d67[Symbol['toPrimitive']];if(_0x4d2687!==void 0x0){var _0x1543e9=_0x4d2687[_0x492bd2(0x4b0)](_0x590d67,_0x105345||'default');if(qr(_0x1543e9)!=_0x492bd2(0x47f))return _0x1543e9;throw TypeError(_0x492bd2(0x2dd));}return(_0x105345===_0x492bd2(0x3c6)?String:Number)(_0x590d67);}function Yr(_0x1fc5fd){const _0x3706ba=_0x69a5c7;var _0x3fae22=Jr(_0x1fc5fd,'string');return qr(_0x3fae22)==_0x3706ba(0x245)?_0x3fae22:_0x3fae22+'';}function W(_0x30028b,_0x42f2b5,_0x343b5b){const _0x98bf6b=_0x69a5c7;return(_0x42f2b5=Yr(_0x42f2b5))in _0x30028b?Object[_0x98bf6b(0x2f0)](_0x30028b,_0x42f2b5,{'value':_0x343b5b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x30028b[_0x42f2b5]=_0x343b5b,_0x30028b;}var Xr=class extends _0x5f44fb{constructor(_0x108c7d,_0x5eb08c){const _0x1b4e14=_0x69a5c7;super(),this[_0x1b4e14(0x2e2)]=_0x108c7d,this[_0x1b4e14(0x3a8)]=_0x5eb08c,W(this,_0x1b4e14(0x248),null),W(this,_0x1b4e14(0x3b2),void 0x0),this[_0x1b4e14(0x3b2)]=this[_0x1b4e14(0x366)](),this[_0x1b4e14(0x237)](_0x108c7d[_0x1b4e14(0x426)][_0x1b4e14(0x436)](()=>{this['_frame']===null&&(this['_frame']=requestAnimationFrame(()=>this['flush']()));}));}[_0x69a5c7(0x1f8)](){const _0x4ee164=_0x69a5c7;if(this[_0x4ee164(0x239)](),this[_0x4ee164(0x204)])return;let _0x540aa5=this[_0x4ee164(0x366)](),_0xfa12aa=this[_0x4ee164(0x3b2)],_0x479bad=_0x540aa5[_0x4ee164(0x3fd)]!==_0xfa12aa[_0x4ee164(0x3fd)]||_0x540aa5[_0x4ee164(0x452)]!==_0xfa12aa[_0x4ee164(0x452)];(_0x479bad||_0x540aa5[_0x4ee164(0x213)]!==_0xfa12aa['left']||_0x540aa5[_0x4ee164(0x3db)]!==_0xfa12aa[_0x4ee164(0x3db)])&&(this['_geometry']=_0x540aa5,this[_0x4ee164(0x3a8)](_0x479bad));}[_0x69a5c7(0x239)](){const _0x4a963d=_0x69a5c7;this[_0x4a963d(0x248)]!==null&&(cancelAnimationFrame(this[_0x4a963d(0x248)]),this[_0x4a963d(0x248)]=null);}[_0x69a5c7(0x393)](){this['cancelPending'](),super['dispose']();}[_0x69a5c7(0x366)](){const _0x3498ac=_0x69a5c7;let {left:_0x926ae3,top:_0x3a5d3f,width:_0x309e01,height:_0x3553d2}=this[_0x3498ac(0x2e2)];return{'left':_0x926ae3,'top':_0x3a5d3f,'width':_0x309e01,'height':_0x3553d2};}};function Zr(_0x322716,_0x3b2ceb=0x1){const _0x292923=_0x69a5c7;return{'width':Math[_0x292923(0x2dc)](_0x3b2ceb,_0x322716['width']),'height':Math['max'](_0x3b2ceb,_0x322716[_0x292923(0x452)])};}function _0xfb25(){const _0x3b3712=['classType','_generateCutPasteMutations','groupId','removeHost','sheets-chart-ui.section.paretoLine','chartModelAdded$','ancestorTransform','sheets-chart-ui.section.funnel','barStyle','REMOVE','Sunburst','getSheetBySheetId','concat','Axes','_createPrintingChartObject','DRAWING_CHART','_commandService','UniverSheetsChartUIPlugin','getChartPopupMenus','radius','getActiveSheet','Fail\x20to\x20create\x20float\x20dom','sheets-chart-ui.common.trendline','set','_renderAfterChartUpdateMutation','labelId','promise','_initActiveChartModelListener','GROUP','sheet.operation.open-chart-panel','asObservable','getDrawingByParam','scale','rangeInfo$','_getHostPlacement','WordCloud','getParent','25YqiKfR','clientY','_removeHost$','_sheetDrawingService','LineAndArea','object','scaleY','activeSheet$','decorate','_isChartElementEditEnabled','sheets-chart-ui.common.editChart','drawImage','print','pluginName','HorizontalAxis','Chord','_cancelGesture','_adapterRegistry','_drawChartImage','open','syncHostLayout','_setChartRuntimeZIndex','sheets-chart-ui.common.deleteChart','getBatchAddOp','Combination','_getFloatDomInfo','_createCopyInfoByRange','_initCommands','onDoubleClick$','activeRuntimeModel','cumulativeLineStyle','titles','Image','sheets-chart-ui.common.heatmap','(prefers-reduced-motion:\x20reduce)','getUnit','sheet-chart-setup-panel','_draw','_pendingHost','_createHost','sheets-chart-ui.section.pie','viewBound','_activeDomReadyChartIds','_activateEditPanelState','pie','_getChartSnapshotKey','BUTTON','_drawingManagerService','naturalHeight','ImageBitmap','removeChartModel','constructor','version','sheets-chart-ui.section.candlestick','call','add$','Funnel','sheets-chart-ui.config','_renderModelManager','getRealBound','sheets-chart-ui.common.useAsCategoryLabels','Treemap','sheets-chart-ui.common.exportImage','_image','Style','clear','engine','_getImage','isConnected','_addWatermark','offsetLeft','inactive-sheet','url','_resolveLayout','Radar','oKey','keys','sheets-chart-ui.common.rightVerticalAxis','legend','_keepChartCapture','addEventListener','section','range','Series','indexOf','_getChartRenderSkipReason','setProps','_debounceHandle','missing-active-sheet','filter','_deactivateDataUpdateAnimation','pointerId','Pie','sheets-chart-ui.waterfall.negative','activeChartModel$','_version','radar','logicalOuterRect','_chartRenderService','ensureHandle','Reference','naturalWidth','getContextValue','_disposeChartEventSubscription','PieStyle','unitId','_domFrame','_initPrinting','_componentManager','changing$','_panelInitialized','_initPermission','_menuManagerService','removeHost$','setHostStyle','flush','sheet.command.chart.copy-focused-chart','_cacheActiveDomChartSnapshot','transformChange$','Waterfall','sheet-chart-style-panel','moveY','commitSnapshot','_panelRoute$','nativeEvent','_contextService','_injector','_disposed','context$','_chartElementEditMode','_resolvedConfig','UPDATE','chartObject','_url','checkMounted','Scatter','sheets-chart-ui.section.chord','pareto','syncLayout','Gauge','prototype','Dom','left','_chartHostProviderService','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','UNIVER_SHEET','header','save','ENTER','removeEventListener','delete','_pendingToken','sheetChartDataAnimationDuration','chartModelRemoved$','_resetChartRuntimeZIndex','setChartEditorOpen','_restoreHostWrapper','_dataUpdateAnimationDuration','sheetDisposed$','segmented','clearPanelRoute','chartModelId','close','targetSubUnitId','onerror','ChartAndAxisTitles','_sheetPermissionCheckController','Relation','_chartHostMap','releasePointerCapture','remove$','_chartHostProvider','Canvas','parentElement','remove','setElementEditMode','getOwnPropertyDescriptor','abs','disposeWithMe','source','cancelPending','fromEntries','sheetChartDataAnimation','_activateHostWrapper','getConfig','crossOrigin','clip','translate','idMap','mountNode','bounds','setObjectType','symbol','_sidebarDisposable','getDrawingData','_frame','assignStyle','items','_bindChartPointerEvents','error','1000','_pendingDataUpdateChartIds','chartType','_pendingUrlImage','markHostNotReady','_rerenderLatest','getChartSourceSpec','_sheetClipboardService','position$','_getOuterRect','onload','matchMedia','setActiveChartModel','getTransformerByCreate','setDataUpdateAnimation','format','COMMAND','clientWidth','allSeriesStyle','sheets-chart-ui.common.hideChartPanel','_initMenus','animateDataUpdate','sheets-chart.ui.service','getSubUnitId','moveTo','featurePluginGroupUpdate$','getSkeleton','MEDIA','_managed','_requestPaint','initPanel','_generatePasteMutations','sheets-chart-ui.permission.editErr','_clearHiddenSelectedTarget','CUT','getRenderColor','_deactivateEditPanelState','startRow','_dataUpdateAnimationTimers','COMMA','207QdvPwE','sheets-chart-ui.chartTypes.','current','sheets-chart-ui.common.showHiddenData','_snapshotKey','verify','drawingIds','domLayers','Column','getCanvasElement','mobile-sheet-chart-setup-panel','_urlImage','_chartChangeSubscriptions','_renderService','Area','defaultValues','OPERATION','pointercancel','setPanelRoute','supports','target','_popupDisposable','ParetoBarSeries','_lastActiveSheet','_initCopyPaste','_entries','INSERT','renderTransition','sheets-chart-ui.common.series','_themeService','_cancelHostWait','_initSheetChange','_chartInstanceMap','packageName','type','takeSnapshot','_sheetCanvasPopManagerService','has','restore','_getOrCreateSheetChartHost','IndicatorLine','isFinite','_cancelDebouncedCallbacks','GridlinesAndTicks','scene','min','_original','_isProviderDisposed','_init','visibilityState','_savedWrapperStyle','clientX','Bubble','235452XArWEL','next','_sheetPrintInterceptorService','_activeChartId','isInGroup','DownloadImageIcon','_sheetCanvasFloatDomManagerService','arc','setOrientation','domId','sheet.command.chart.delete-focused-chart','style$','_clearPendingUrlImage','pipe','markUnmanaged','dataSource$','true','innerHeight','titleKey','isManaged','getHostClientRect','blockExecuteWithoutPermission','visible','221458rANpsV','ensureMount','_sheetsChartUIService','activeChartModel','getElementById','getHostSize','sheets-chart-ui.common.verticalAxis','transparent','beginPath','darkMode$','univer-sticky\x20-univer-top-3\x20univer-z-10\x20-univer-mx-4\x20-univer-mt-3\x20univer-shrink-0\x20univer-bg-gray-0\x20univer-px-4\x20univer-pt-3\x20dark:!univer-bg-gray-900','beforeCommandExecuted','sheets-chart-ui.common.category','wordCloud','sheets-chart-ui.common.dataRange','\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','getObject','_sheetsChartService','mobile-sheet-chart-style-panel','relation','hidden','_markNotReady','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-5','ensureHost','focused$','_popupSessionKey','_restoreFloatDomPositionStream','max','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','clearImage','querySelector','children','isRowDirection','_rect','DEFAULT_PASTE','8204vNdxMI','renderChartsForPrinting','_listenChartUpdateMutations','Data','sheets-chart-ui.common.legend','scaleX','SELECTOR','hasPointerCapture','_canAnimateDataUpdate','isDomReady','_openFloatMenu','endX','defineProperty','nextVersion','univer-flex\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','_univerInstanceService','setPointerCapture','then','bottom','onPointerMove','function','sheets-chart-ui.section.waterfall','innerWidth','sheets-chart-ui.common.chartAndAxisTitles','_disposeChartEventSubscriptions','registerCommand','_prepareDataUpdateRender','Bar','with','_closePopup','markReady','allSettled','getDrawingOrder','value','click','getUnitId','Positive','_disposeChartRenderInstance','sheets-chart-ui.section.relation','_releaseGesture','absolute','_applyHostStyle','startY','img','sheet.chart.edit.panel','isRender','updateFloatDom','featurePluginOrderUpdate$','getRuntimeContext','_handleDrawingDoubleClick','_chartEditorOpen$','auto','objects','direction$','Pareto','copyId','sourceSubUnitId','sheets-chart-ui.common.customize','_copyInfo','_subscribeChartEvents','_debounceHandleMap','find','univer-overflow-visible','_createChartRenderInstanceContext','_registerAdapter','image','sheets-chart-ui.section.indicatorLine','push','_isOwnedChart','115821gvBQNZ','sheets-chart-ui.section.gauge','ChartStyle','_notifyChartRemoved','getBatchUpdateOp','subscribe','Candlestick','forEach','getFocusDrawings','_pointerEvents','getMatrix','opacity','getValue','scroll','add','style','dataset','#-#','requestPaint','ParetoLineSeries','_suppressClick','register','drawingType','chartEditorOpen$','Boxplot','localPoint','moveX','addClipboardHook','handleActiveSubUnitChange','rangeInfo','_disposeChartChangeListeners','_clearSelectedTarget','_bindChartEventHandler','rangeSelectMode','intercept','onCommandExecuted','_focusedDrawings','@univerjs-pro/sheets-chart-ui','_syncActiveEditChart','_configService','_getChartRenderObjectContext','exportImage','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','GeneralSeries','href','createElement','startX','sheets-chart-ui.host.provider','enableChartElementFloatMenu','.chart-host','anonymous','small','panelRoute$','rect','_initActiveRuntimeLayerListener','_popupChartId','setRangeSelectMode','_notifySheetChartsDetached','_alignFloatDomPositionWithSceneRender','entries','_createImageChartHost','_readGeometry','heatmap','applyPoint','lineTo','_localeService','_renderDebounceMap','getSheetId','setContextValue','render','_disposeImage','sheets-chart-ui.section.treemap','category','_renderChartModel','getBoundingClientRect','updateFloatDomProps','multiply','makeDirty','color','hit','sheets-chart-ui.section.wordCloud','tab','getId','_registerIcons','dblclick','executeCommand','complete','right','_dataUpdateAnimationChartIds','div','sheets-chart-ui.section.radar','globalAlpha','setBorder','label','endsWith','_executeChartUpdateSourceConfig','_getOrCreateChartRenderInstance','Histogram','VerticalAxis','univer-flex\x20univer-flex-col\x20univer-gap-3','_markHostReady','interceptor','clearChart','_renderWhenConfigReady','resize','Timed\x20out\x20waiting\x20for\x20float\x20dom\x20host\x20\x22','dispose','createRuntimeChartStyle','_shouldSuppressRender','onPointerUp','none','all','_sheetSkeletonService','trendline','split','onStarting','get','chartRenderMode','PRINTING_COMPONENT_COLLECT','serialize','setStyle','_markReady','getObjectIncludeInGroup','getChartModel','PenIcon','route','_initDrawingDeactivationListener','_onChange','bind','onRendered','getCurrentTypeOfUnit$','_sheetDrawingHitTestService','_shouldEnableChartElementEdit','Row','WaterfallSeries','setConfig','_disposeChartDomInstance','_geometry','lostpointercapture','_snapshotStore','_clearPanelState','_bindChartEventHandlers','src','axis','_registerChartImageRenderObjectFactory','onPointerDown','getImage','_config','addObject','_applyActiveChartRuntimeZIndex','_drawChartFrame','openChartPanelById','drawingId','sheets-chart-ui.section.paretoBar','isArray','_getDrawable','_chartModelService','string','transform','onDispose','_activateDataUpdateAnimation','7865860ltlkTq','_lastRenderInputMap','params','176vOVaIo','setImage','detach','_canvasFloatDomService','sheetTransform','_openPanel','invalidateSnapshot','getChartDataSource','missing-float-dom','_chartSnapshotStoreService','sheet.command.chart.export-focused-image','hasOwnProperty','startColumn','Literals','top','setDataRange','_chartUIService','_resizeChart','getRect','strokeWidth','isLatest','_openEditPanelByDoubleClick','event','_chartEventSubscriptions','getName','pieSecondaryPlotType','univer-shrink-0','_pendingMutationConfigRenders','_bindPointerEvents','_sheetInterceptorService','_resolveChartRenderMode','_sidebarService','chartId','ChartIcon','getRenderModel','undo','sheets-chart-ui.common.horizontalAxis','Overlay','_frameStyle','_updateTransform','_setHostStyle','top-center','invert','name','_getSceneAndTransformerByDrawingSearch','sheets-chart-ui.waterfall.subtotal','_hostStyle','exportImg','width','seriesId','OVERRIDE_NATIVE','some','getCurrentUnitOfType','hidePanel','getDirection','isElementEditModeActive','rightYAxis','getBatchRemoveOp','2408154LRWIXQ','Url','_applyHostInteractionState','_getChartRenderObject','sheets-chart-ui.chartTypes.line','_registerComponents','afterRender$','dom','rightY','_renderManagerService','baseOn','_chartEventHandlers','_getPlacement','focusDrawing','series','_generateCopyPasteMutations','sheets-chart-ui.section.gridlinesAndTicks','transformer','subUnitId','Trendline','_requestedUrl','.png','sheets-chart-ui.common.chartStyle','pointerEvents','initialRect','getRenderUnitById','update','zIndex','showFloatMenu','_gesture','_iconManager','onTransformChange$','getRangeInfo','changeEnd$','executeChartUpdateConfig','RightVerticalAxis','mergeMenu','create','config','values','createChartInstance','1.1.0','sheet.command.menu-insert-chart','_waiter','Heatmap','_requestChartCanvasRender','sheets-chart-ui.common.setup','subscribeEvent','offsetWidth','featurePluginUngroupUpdate$','_chartRenderMode','chartEditorOpen','resolve','_loadUrlImage','sheets-chart-ui.common.switchRowColumn','imageBitmap','focus$','cancel','univer-my-1\x20univer-text-xs\x20univer-text-red-500','sheets-chart-ui.section.histogram','markNotReady','Canceled\x20waiting\x20for\x20float\x20dom\x20host\x20\x22','from','config$','dataSource','waterfallStyle','isHit','contains','length','Legend','data$','map','sheets-chart-ui.chord.target','2153520IcByxq','getFocusedUnit','height','_chartThemeService','getFloatDomInfo'];_0xfb25=function(){return _0x3b3712;};return _0xfb25();}function Qr(_0x19be26,_0x1fca36={},_0x18e4a2={'left':0x0,'top':0x0}){const _0x295bbd=_0x69a5c7;let _0x29afa9=_0x1fca36[_0x295bbd(0x2e9)]??0x1,_0x3966b6=_0x1fca36['scaleY']??0x1,_0x5553cc=_0x45f261['resolve']({'logicalOuterRect':{'left':_0x18e4a2[_0x295bbd(0x213)]>0x0?-_0x18e4a2[_0x295bbd(0x213)]:0x0,'top':_0x18e4a2[_0x295bbd(0x3db)]>0x0?-_0x18e4a2[_0x295bbd(0x3db)]:0x0,...Zr(_0x19be26)},'scale':{'scaleX':_0x29afa9,'scaleY':_0x3966b6},'hostStyle':{},'contentMode':_0x46d290[_0x295bbd(0x3f2)]});return{'left':_0x5553cc[_0x295bbd(0x1e6)][_0x295bbd(0x213)],'top':_0x5553cc[_0x295bbd(0x1e6)][_0x295bbd(0x3db)],'width':_0x5553cc[_0x295bbd(0x1e6)][_0x295bbd(0x3fd)],'height':_0x5553cc[_0x295bbd(0x1e6)][_0x295bbd(0x452)],'scaleX':_0x29afa9,'scaleY':_0x3966b6};}function $r(_0x20ee36){const _0x14829c=_0x69a5c7;switch(_0x20ee36[_0x14829c(0x297)]){case _0x5c1e70[_0x14829c(0x231)]:return _0x20ee36['canvas'];case _0x5c1e70['ImageBitmap']:return _0x20ee36[_0x14829c(0x43e)];default:return;}}var ei=class extends _0x442b9f{constructor(_0x1cc2c8,_0x2084e1,_0x244813,_0x4e131b=()=>!0x1,_0x40a10e=()=>{}){const _0x218ca7=_0x69a5c7;super(_0x1cc2c8,{..._0x2084e1,'evented':_0x2084e1['evented']??!0x0}),this[_0x218ca7(0x4bd)]=_0x244813,this[_0x218ca7(0x395)]=_0x4e131b,this[_0x218ca7(0x36f)]=_0x40a10e,W(this,_0x218ca7(0x280),null),W(this,'_url',null),W(this,'_requestedUrl',null),W(this,_0x218ca7(0x250),null),this[_0x218ca7(0x244)](_0x14842c['CHART']);}[_0x69a5c7(0x393)](){const _0x17b324=_0x69a5c7;this[_0x17b324(0x2b6)](),this[_0x17b324(0x280)]=null,this['_url']=null,this[_0x17b324(0x41b)]=null,this['_disposeImage'](),super[_0x17b324(0x393)]();}[_0x69a5c7(0x36e)](_0x4f01c6,_0x12f931){const _0x1898bf=_0x69a5c7;if(!this[_0x1898bf(0x2c0)])return this[_0x1898bf(0x376)](!0x1),this;if(this[_0x1898bf(0x395)]()){let _0x245073=this[_0x1898bf(0x4bd)]();return _0x245073&&this['_getDrawable'](_0x245073),this['makeDirty'](!0x1),this;}if(!this['transform'])return this;let {width:_0xb405b8,height:_0x57f001,left:_0x9b8a3f,top:_0x1036c7}=this[_0x1898bf(0x4b5)]();if(this[_0x1898bf(0x311)](_0x12f931)){let {top:_0x3a1403,left:_0x54e950,bottom:_0x467022,right:_0x2bca3e}=_0x12f931[_0x1898bf(0x4a3)];if(_0xb405b8+this[_0x1898bf(0x3e0)]+_0x9b8a3f<_0x54e950||_0x2bca3e<_0x9b8a3f||_0x57f001+this[_0x1898bf(0x3e0)]+_0x1036c7<_0x3a1403||_0x467022<_0x1036c7)return this;}let _0xd0b8f2=this['transform'][_0x1898bf(0x333)]();_0x4f01c6[_0x1898bf(0x218)]();let _0x1283b8=_0x9b8a3f+_0xb405b8/0x2,_0x318d47=_0x1036c7+_0x57f001/0x2;return _0x4f01c6[_0x1898bf(0x3c7)](_0xd0b8f2[0x0],_0xd0b8f2[0x1],_0xd0b8f2[0x2],_0xd0b8f2[0x3],_0x1283b8,_0x318d47),this['opacity']!==0x1&&(_0x4f01c6[_0x1898bf(0x384)]=this[_0x1898bf(0x334)]),this['_draw'](_0x4f01c6,void 0x0,_0xb405b8,_0x57f001),_0x4f01c6['restore'](),this[_0x1898bf(0x376)](!0x1),this;}[_0x69a5c7(0x49f)](_0x5034d3,_0x378c4f,_0x1a7ff7=this[_0x69a5c7(0x3fd)],_0x35d094=this[_0x69a5c7(0x452)]){const _0x5a3f57=_0x69a5c7;this[_0x5a3f57(0x3bf)](_0x5034d3,_0x1a7ff7,_0x35d094,{'stroke':void 0x0,'strokeWidth':0x0}),this[_0x5a3f57(0x48c)](_0x5034d3,_0x1a7ff7,_0x35d094),this[_0x5a3f57(0x3bf)](_0x5034d3,_0x1a7ff7,_0x35d094,{'fill':void 0x0});}[_0x69a5c7(0x3bf)](_0x16b556,_0x6cdc4e,_0x2d28c7,_0x2db352){const _0x31498e=_0x69a5c7;_0x16b556[_0x31498e(0x218)](),_0x16b556['translate'](-_0x6cdc4e/0x2,-_0x2d28c7/0x2),_0x442b9f['drawWith'](_0x16b556,ti(this,_0x6cdc4e,_0x2d28c7,_0x2db352)),_0x16b556[_0x31498e(0x29b)]();}[_0x69a5c7(0x449)](_0x79345c){const _0x276379=_0x69a5c7;let {left:_0x2f22dc,top:_0x5cab83,width:_0x2a4c8c,height:_0x1967e6}=this['getRealBound'](),_0x4f81e2=_0x2f22dc+_0x2a4c8c/0x2,_0x49d5d7=_0x5cab83+_0x1967e6/0x2,_0x4f7dbf=this[_0x276379(0x3c7)][_0x276379(0x333)](),_0x120618=new _0x235067([_0x4f7dbf[0x0],_0x4f7dbf[0x1],_0x4f7dbf[0x2],_0x4f7dbf[0x3],_0x4f81e2,_0x49d5d7]),_0x161466=this[_0x276379(0x479)](),_0x1156cc=(this[_0x276379(0x2ae)]&&(_0x161466==null?void 0x0:_0x161466[_0x276379(0x455)])===_0x5059bd[_0x276379(0x471)]?_0x161466[_0x276379(0x45b)][_0x276379(0x375)](_0x120618):_0x120618)[_0x276379(0x3f7)]()[_0x276379(0x368)](_0x79345c),_0x10ad61=_0x2a4c8c/0x2,_0x1145f2=_0x1967e6/0x2;return _0x1156cc['x']>=-_0x10ad61-this[_0x276379(0x3e0)]/0x2&&_0x1156cc['x']<=_0x10ad61+this['strokeWidth']/0x2&&_0x1156cc['y']>=-_0x1145f2-this['strokeWidth']/0x2&&_0x1156cc['y']<=_0x1145f2+this[_0x276379(0x3e0)]/0x2;}[_0x69a5c7(0x48c)](_0x4e4612,_0x7ca275,_0x193392){const _0x18fc85=_0x69a5c7;let _0x5b45a6=this[_0x18fc85(0x4bd)](),_0x5645de=_0x5b45a6?this[_0x18fc85(0x3c4)](_0x5b45a6):void 0x0;if(!_0x5645de)return;let {width:_0x3b8789,height:_0x23d45e}=Zr({'width':_0x7ca275,'height':_0x193392},0x0);_0x3b8789!==0x0&&_0x23d45e!==0x0&&(_0x4e4612['save'](),_0x4e4612[_0x18fc85(0x240)](-_0x7ca275/0x2,-_0x193392/0x2),ni(_0x4e4612,_0x3b8789,_0x23d45e,this[_0x18fc85(0x468)]),_0x4e4612[_0x18fc85(0x23f)](),_0x4e4612[_0x18fc85(0x485)](_0x5645de,0x0,0x0,_0x3b8789,_0x23d45e),_0x4e4612['restore']());}[_0x69a5c7(0x3c4)](_0x2fa506){const _0x4a5698=_0x69a5c7;var _0x239055;let _0x421227=$r(_0x2fa506);if(_0x421227)return _0x421227;if(_0x2fa506[_0x4a5698(0x297)]===_0x5c1e70[_0x4a5698(0x408)]&&(this[_0x4a5698(0x41b)]!==_0x2fa506['url']&&(this['_requestedUrl']=_0x2fa506['url'],this[_0x4a5698(0x2b6)](),this[_0x4a5698(0x20a)]!==_0x2fa506[_0x4a5698(0x4c2)]&&this[_0x4a5698(0x43c)](_0x2fa506[_0x4a5698(0x4c2)])),(_0x239055=this[_0x4a5698(0x280)])!=null&&_0x239055['complete']&&this[_0x4a5698(0x280)][_0x4a5698(0x1ea)]>0x0&&this[_0x4a5698(0x280)][_0x4a5698(0x4aa)]>0x0))return this['_urlImage'];}['_loadUrlImage'](_0x47227d){const _0x2c1aad=_0x69a5c7;let _0x31d290=document[_0x2c1aad(0x356)](_0x2c1aad(0x30f));this['_pendingUrlImage']=_0x31d290,_0x31d290[_0x2c1aad(0x23e)]=_0x2c1aad(0x35b),_0x31d290[_0x2c1aad(0x257)]=()=>{const _0x401086=_0x2c1aad;this[_0x401086(0x41b)]===_0x47227d&&this[_0x401086(0x250)]===_0x31d290&&(_0x31d290[_0x401086(0x1ea)]>0x0&&_0x31d290[_0x401086(0x4aa)]>0x0&&(this[_0x401086(0x20a)]=_0x47227d,this[_0x401086(0x280)]=_0x31d290),this[_0x401086(0x2b6)](),this[_0x401086(0x376)](!0x0));},_0x31d290[_0x2c1aad(0x229)]=()=>{const _0x4d3440=_0x2c1aad;this[_0x4d3440(0x250)]===_0x31d290&&this[_0x4d3440(0x2b6)]();},_0x31d290[_0x2c1aad(0x3b7)]=_0x47227d;}[_0x69a5c7(0x2b6)](){const _0x5a774b=_0x69a5c7;this[_0x5a774b(0x250)]&&=(this['_pendingUrlImage'][_0x5a774b(0x257)]=null,this[_0x5a774b(0x250)][_0x5a774b(0x229)]=null,null);}};function ti(_0x7f90a4,_0x312f42,_0x131130,_0x21a628){const _0x4bd973=_0x69a5c7;let _0x4a8104=Object[_0x4bd973(0x42c)](_0x7f90a4);return Object[_0x4bd973(0x2f0)](_0x4a8104,_0x4bd973(0x3fd),{'value':_0x312f42}),Object['defineProperty'](_0x4a8104,_0x4bd973(0x452),{'value':_0x131130}),Object[_0x4bd973(0x4c6)](_0x21a628)[_0x4bd973(0x330)](_0x2f1119=>{const _0xad6f7b=_0x4bd973;Object[_0xad6f7b(0x2f0)](_0x4a8104,_0x2f1119,{'value':_0x21a628[_0x2f1119]});}),_0x4a8104;}function ni(_0x409b4d,_0x3d9234,_0x4fbdfd,_0x594c48){const _0x5afa1b=_0x69a5c7;let _0x50edb7=Math[_0x5afa1b(0x2a2)](_0x594c48||0x0,_0x3d9234/0x2,_0x4fbdfd/0x2);_0x409b4d[_0x5afa1b(0x2c9)](),_0x50edb7?(_0x409b4d[_0x5afa1b(0x265)](_0x50edb7,0x0),_0x409b4d[_0x5afa1b(0x369)](_0x3d9234-_0x50edb7,0x0),_0x409b4d['arc'](_0x3d9234-_0x50edb7,_0x50edb7,_0x50edb7,Math['PI']*0x3/0x2,0x0,!0x1),_0x409b4d[_0x5afa1b(0x369)](_0x3d9234,_0x4fbdfd-_0x50edb7),_0x409b4d['arc'](_0x3d9234-_0x50edb7,_0x4fbdfd-_0x50edb7,_0x50edb7,0x0,Math['PI']/0x2,!0x1),_0x409b4d[_0x5afa1b(0x369)](_0x50edb7,_0x4fbdfd),_0x409b4d['arc'](_0x50edb7,_0x4fbdfd-_0x50edb7,_0x50edb7,Math['PI']/0x2,Math['PI'],!0x1),_0x409b4d[_0x5afa1b(0x369)](0x0,_0x50edb7),_0x409b4d[_0x5afa1b(0x2b1)](_0x50edb7,_0x50edb7,_0x50edb7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x409b4d['closePath']()):(_0x409b4d[_0x5afa1b(0x35e)](0x0,0x0,_0x3d9234,_0x4fbdfd),_0x409b4d['closePath']());}function G(_0x472a7d){const _0x5f48be=_0x69a5c7;(_0x472a7d==null?void 0x0:_0x472a7d[_0x5f48be(0x297)])===_0x5c1e70[_0x5f48be(0x4ab)]&&_0x472a7d[_0x5f48be(0x43e)][_0x5f48be(0x227)]();}function ri(_0x36422b){const _0x429166=_0x69a5c7;return _0x36422b['unitId']+_0x429166(0x33a)+_0x36422b['subUnitId']+_0x429166(0x33a)+_0x36422b[_0x429166(0x3ed)];}var ii=class extends _0x5f44fb{constructor(..._0x1a0d0d){super(..._0x1a0d0d),W(this,'_entries',new Map());}[_0x69a5c7(0x2f1)](_0xd8b7c6){const _0x14a5d2=_0x69a5c7;let _0x5bd696=ri(_0xd8b7c6),_0x308f93=this[_0x14a5d2(0x28e)][_0x14a5d2(0x39d)](_0x5bd696)??{'version':0x0};return _0x308f93[_0x14a5d2(0x4ae)]+=0x1,this[_0x14a5d2(0x28e)][_0x14a5d2(0x46c)](_0x5bd696,_0x308f93),_0x308f93[_0x14a5d2(0x4ae)];}[_0x69a5c7(0x3e1)](_0x3576a9,_0xb74c79){const _0x3ccc8e=_0x69a5c7;var _0x39651d;return((_0x39651d=this[_0x3ccc8e(0x28e)]['get'](ri(_0x3576a9)))==null?void 0x0:_0x39651d[_0x3ccc8e(0x4ae)])===_0xb74c79;}[_0x69a5c7(0x3ce)](_0x165832,_0x377255,_0x42e7ee){const _0x3491ee=_0x69a5c7;if(!this[_0x3491ee(0x3e1)](_0x165832,_0x42e7ee))return G(_0x377255),!0x1;let _0x138a89=ri(_0x165832),_0x434962=this[_0x3491ee(0x28e)][_0x3491ee(0x39d)](_0x138a89)??{'version':_0x42e7ee},_0x21f06b=_0x434962[_0x3491ee(0x325)];return _0x434962['image']=_0x377255,_0x434962[_0x3491ee(0x4ae)]=_0x42e7ee,this['_entries'][_0x3491ee(0x46c)](_0x138a89,_0x434962),_0x21f06b!==_0x377255&&G(_0x21f06b),!0x0;}[_0x69a5c7(0x3bb)](_0x44757b){const _0x439f19=_0x69a5c7;var _0x1517b3;return(_0x1517b3=this['_entries']['get'](ri(_0x44757b)))==null?void 0x0:_0x1517b3[_0x439f19(0x325)];}[_0x69a5c7(0x2de)](_0x1b1bfd){const _0x358c09=_0x69a5c7;let _0x91207d=ri(_0x1b1bfd),_0x58320b=this[_0x358c09(0x28e)][_0x358c09(0x39d)](_0x91207d);_0x58320b&&(G(_0x58320b[_0x358c09(0x325)]),this[_0x358c09(0x28e)][_0x358c09(0x21b)](_0x91207d));}[_0x69a5c7(0x38f)](_0x40c140){const _0x23d21d=_0x69a5c7;for(let [_0x42d6a3,_0x3229ab]of this['_entries'])_0x42d6a3[_0x23d21d(0x387)](_0x23d21d(0x33a)+_0x40c140)&&(G(_0x3229ab[_0x23d21d(0x325)]),this['_entries'][_0x23d21d(0x21b)](_0x42d6a3));}[_0x69a5c7(0x393)](){const _0x176e25=_0x69a5c7;this[_0x176e25(0x28e)][_0x176e25(0x330)](_0x1d54f2=>G(_0x1d54f2['image'])),this['_entries'][_0x176e25(0x4bb)](),super['dispose']();}};function ai(_0x40de36,_0x50f780=0x7d0){let _0x49cdf6=null,_0xcd75e1=null,_0x187df3=!0x1,_0x25959f=()=>{},_0x359164=()=>{_0x49cdf6!=null&&(clearInterval(_0x49cdf6),_0x49cdf6=null),_0xcd75e1!=null&&(clearTimeout(_0xcd75e1),_0xcd75e1=null);};return{'promise':new Promise((_0x49ad1c,_0x3828b3)=>{_0x25959f=_0x3828b3;let _0x50dfe2=()=>{const _0x47e93d=_0x20d6;let _0x32f463=document[_0x47e93d(0x2c5)](_0x40de36);_0x32f463&&!_0x187df3&&(_0x187df3=!0x0,_0x359164(),_0x49ad1c(_0x32f463));};_0x50dfe2(),!_0x187df3&&(_0x49cdf6=setInterval(_0x50dfe2,16.666666666666668),_0xcd75e1=setTimeout(()=>{const _0x2b92d6=_0x20d6;_0x187df3||(_0x187df3=!0x0,_0x359164(),_0x3828b3(Error(_0x2b92d6(0x392)+_0x40de36+'\x22.')));},_0x50f780));}),'cancel':()=>{const _0x1bbecd=_0x20d6;_0x187df3||(_0x187df3=!0x0,_0x359164(),_0x25959f(Error(_0x1bbecd(0x444)+_0x40de36+'\x22.')));}};}var oi=class extends _0x5f44fb{constructor(_0x54c342,_0x51a80a,_0x5b7e28,_0x421c61,_0x5f2602,_0xf00ff0,_0x5de690,_0x2a5e64){const _0x223618=_0x69a5c7;super(),this[_0x223618(0x3ed)]=_0x54c342,this[_0x223618(0x493)]=_0x51a80a,this['_getPlacement']=_0x5b7e28,this[_0x223618(0x3f5)]=_0x421c61,this['_isProviderDisposed']=_0x5f2602,this[_0x223618(0x3a2)]=_0xf00ff0,this['_markNotReady']=_0x5de690,this[_0x223618(0x3e9)]=_0x2a5e64,W(this,'mode',_0x339cde[_0x223618(0x212)]),W(this,_0x223618(0x1ef),null),W(this,_0x223618(0x269),!0x1),W(this,_0x223618(0x21c),null),W(this,_0x223618(0x4a0),null),W(this,_0x223618(0x432),null),W(this,'_hostStyle',{}),W(this,_0x223618(0x2a7),null),W(this,_0x223618(0x222),null),W(this,'_pointerEvents',null);}['isManaged'](){const _0x38fc4a=_0x69a5c7;return this[_0x38fc4a(0x269)];}[_0x69a5c7(0x2b8)](){const _0x5802ff=_0x69a5c7;this[_0x5802ff(0x269)]=!0x1;}[_0x69a5c7(0x3df)](){const _0x573685=_0x69a5c7;let _0x5ac069=this[_0x573685(0x413)]();return _0x5ac069?{'width':_0x5ac069[_0x573685(0x3fd)],'height':_0x5ac069[_0x573685(0x452)]}:null;}[_0x69a5c7(0x3a1)](_0x308d11){const _0x6ac6ff=_0x69a5c7;this['_hostStyle']=_0x308d11,this[_0x6ac6ff(0x3f5)](_0x308d11),this[_0x6ac6ff(0x30d)]();}async[_0x69a5c7(0x1e8)](){const _0x3e3b86=_0x69a5c7;if(this[_0x3e3b86(0x204)]||this[_0x3e3b86(0x2a4)]())throw Error(_0x3e3b86(0x46a));let _0x5b186b=this[_0x3e3b86(0x493)](),_0x508e2c=(_0x5b186b==null?void 0x0:_0x5b186b[_0x3e3b86(0x2b3)])??this[_0x3e3b86(0x3ed)],_0x3879a1=document[_0x3e3b86(0x2c5)](_0x508e2c);if(this['_domFrame']&&_0x3879a1!=null&&_0x3879a1[_0x3e3b86(0x44a)](this['_domFrame'][_0x3e3b86(0x242)]))return{'mountNode':this['_domFrame'][_0x3e3b86(0x242)],'dispose':()=>{const _0x1aca3b=_0x3e3b86;this[_0x1aca3b(0x393)](),_0x5b186b==null||_0x5b186b['dispose']['dispose']();}};if(this[_0x3e3b86(0x4a0)])return this['_pendingHost'];let _0x58d4ba=this[_0x3e3b86(0x4a1)]();return this['_pendingHost']=_0x58d4ba,_0x58d4ba['then'](()=>{const _0x347277=_0x3e3b86;this[_0x347277(0x4a0)]===_0x58d4ba&&(this[_0x347277(0x4a0)]=null);},()=>{const _0x117461=_0x3e3b86;this['_pendingHost']===_0x58d4ba&&(this[_0x117461(0x4a0)]=null);}),_0x58d4ba;}async[_0x69a5c7(0x2c2)](){const _0x3c0ba1=_0x69a5c7;try{return(await this['ensureHandle']())[_0x3c0ba1(0x242)];}catch{return null;}}['checkMounted'](){const _0x4b2989=_0x69a5c7;let _0x5f11fa=this[_0x4b2989(0x493)](),_0x199f93=(_0x5f11fa==null?void 0x0:_0x5f11fa['domId'])??this[_0x4b2989(0x3ed)],_0x377727=document[_0x4b2989(0x2c5)](_0x199f93);return!!(this[_0x4b2989(0x1ef)]&&_0x377727!=null&&_0x377727[_0x4b2989(0x44a)](this[_0x4b2989(0x1ef)][_0x4b2989(0x242)]));}[_0x69a5c7(0x20f)](){const _0x5a440b=_0x69a5c7;if(!this[_0x5a440b(0x1ef)])return;let _0x4f6b2c=this[_0x5a440b(0x413)]();_0x4f6b2c&&this[_0x5a440b(0x1ef)][_0x5a440b(0x421)](this[_0x5a440b(0x4c3)](_0x4f6b2c),this[_0x5a440b(0x3f3)]());}[_0x69a5c7(0x302)](){const _0x188380=_0x69a5c7;this[_0x188380(0x3a2)]();}['markNotReady'](){const _0x20a16e=_0x69a5c7;this[_0x20a16e(0x2d6)]();}['setDataUpdateAnimation'](_0x354766){const _0xa5108c=_0x69a5c7;this[_0xa5108c(0x222)]=_0x354766;let _0x17fe49=this[_0xa5108c(0x493)](),_0x5ef069=document[_0xa5108c(0x2c5)]((_0x17fe49==null?void 0x0:_0x17fe49['domId'])??this['chartId']);_0x5ef069&&this[_0xa5108c(0x409)](_0x5ef069);}[_0x69a5c7(0x393)](){const _0x3ba499=_0x69a5c7;var _0xd09717,_0x5c2d8b;this[_0x3ba499(0x204)]||(this[_0x3ba499(0x443)](),this[_0x3ba499(0x21c)]=null,this[_0x3ba499(0x4a0)]=null,this['_cancelHostWait'](),this[_0x3ba499(0x269)]=!0x1,this['_dataUpdateAnimationDuration']=null,(_0xd09717=this[_0x3ba499(0x332)])==null||_0xd09717['dispose'](),this[_0x3ba499(0x332)]=null,(_0x5c2d8b=this[_0x3ba499(0x1ef)])==null||_0x5c2d8b[_0x3ba499(0x393)](),this[_0x3ba499(0x1ef)]=null,this[_0x3ba499(0x221)](),super[_0x3ba499(0x393)]());}async[_0x69a5c7(0x4a1)](){const _0x36ba77=_0x69a5c7;let _0x5cc27d=this[_0x36ba77(0x493)]();if(!_0x5cc27d)throw Error(_0x36ba77(0x46a));let _0x286906=_0x5cc27d[_0x36ba77(0x2b3)]??this[_0x36ba77(0x3ed)],_0xfaf73f=ai(_0x286906),_0x598157=Symbol(this[_0x36ba77(0x3ed)]);this[_0x36ba77(0x21c)]=_0x598157,this['_waiter']=_0xfaf73f;try{var _0x1c1cdd;let _0x39cd11=await _0xfaf73f[_0x36ba77(0x46f)],_0x557745=this[_0x36ba77(0x493)](),_0x49e94e=(_0x557745==null?void 0x0:_0x557745['domId'])??this[_0x36ba77(0x3ed)];if(this[_0x36ba77(0x204)]||this['_isProviderDisposed']()||this['_pendingToken']!==_0x598157||!_0x557745||_0x49e94e!==_0x286906||document[_0x36ba77(0x2c5)](_0x286906)!==_0x39cd11||!_0x39cd11[_0x36ba77(0x4be)])throw Error(_0x36ba77(0x46a));let _0x425e22=this[_0x36ba77(0x413)]();if(!_0x425e22)throw Error(_0x36ba77(0x46a));let _0x54677e=new _0x3fc8d5(_0x39cd11);return _0x54677e['update'](this[_0x36ba77(0x4c3)](_0x425e22),this['_frameStyle']()),this[_0x36ba77(0x23c)](_0x39cd11),this['_domFrame']=_0x54677e,(_0x1c1cdd=this[_0x36ba77(0x332)])==null||_0x1c1cdd[_0x36ba77(0x393)](),this[_0x36ba77(0x332)]=this['_bindPointerEvents'](_0x39cd11),this[_0x36ba77(0x269)]=!0x0,{'mountNode':_0x54677e['mountNode'],'dispose':()=>{const _0x55a171=_0x36ba77;this[_0x55a171(0x393)](),_0x5cc27d['dispose'][_0x55a171(0x393)]();}};}finally{this[_0x36ba77(0x432)]===_0xfaf73f&&(this[_0x36ba77(0x432)]=null),this[_0x36ba77(0x21c)]===_0x598157&&(this['_pendingToken']=null);}}[_0x69a5c7(0x293)](){const _0x3f0951=_0x69a5c7;let _0x54c107=this['_waiter'];_0x54c107&&(_0x54c107['cancel'](),this[_0x3f0951(0x432)]=null);}[_0x69a5c7(0x30d)](){const _0x5f59d6=_0x69a5c7;let _0x187f10=this[_0x5f59d6(0x413)]();this[_0x5f59d6(0x1ef)]&&_0x187f10&&this['_domFrame'][_0x5f59d6(0x421)](this['_resolveLayout'](_0x187f10),this[_0x5f59d6(0x3f3)]());}[_0x69a5c7(0x4c3)](_0x195f7c){const _0x39ab83=_0x69a5c7;return _0x45f261[_0x39ab83(0x43b)]({'logicalOuterRect':{'left':_0x195f7c[_0x39ab83(0x213)],'top':_0x195f7c[_0x39ab83(0x3db)],'width':_0x195f7c[_0x39ab83(0x3fd)],'height':_0x195f7c['height']},'scale':{'scaleX':_0x195f7c[_0x39ab83(0x2e9)],'scaleY':_0x195f7c[_0x39ab83(0x480)]},'hostStyle':this['_frameStyle'](),'contentMode':_0x46d290[_0x39ab83(0x3f2)]});}[_0x69a5c7(0x3f3)](){const _0x3008fc=_0x69a5c7;return{...this[_0x3008fc(0x3fb)],'radius':_0x2b1964};}['_activateHostWrapper'](_0x430dd6){const _0x376a8a=_0x69a5c7;let _0x1bfc9f=_0x430dd6[_0x376a8a(0x232)];_0x1bfc9f&&(this[_0x376a8a(0x2a7)]||={'zIndex':_0x1bfc9f[_0x376a8a(0x338)][_0x376a8a(0x422)],'pointerEvents':_0x1bfc9f[_0x376a8a(0x338)][_0x376a8a(0x41e)]},_0x1bfc9f[_0x376a8a(0x338)]['zIndex']=_0x376a8a(0x24d),this[_0x376a8a(0x409)](_0x430dd6));}['_applyHostInteractionState'](_0x3b52e6){const _0xa4702f=_0x69a5c7;let _0x272491=_0x3b52e6[_0xa4702f(0x232)];if(!_0x272491)return;let _0x37d5dd=this[_0xa4702f(0x222)];_0x37d5dd==null?(delete _0x3b52e6[_0xa4702f(0x339)][_0xa4702f(0x23b)],delete _0x3b52e6[_0xa4702f(0x339)][_0xa4702f(0x21d)],_0x272491['style'][_0xa4702f(0x41e)]=_0xa4702f(0x317)):(_0x3b52e6[_0xa4702f(0x339)]['sheetChartDataAnimation']=_0xa4702f(0x2ba),_0x3b52e6[_0xa4702f(0x339)][_0xa4702f(0x21d)]=String(_0x37d5dd),_0x272491['style'][_0xa4702f(0x41e)]=_0xa4702f(0x397));}['_restoreHostWrapper'](){const _0xb18b1e=_0x69a5c7;if(!this[_0xb18b1e(0x2a7)])return;let _0x330454=this['_getFloatDomInfo'](),_0x2e625c=(_0x330454==null?void 0x0:_0x330454['domId'])??this[_0xb18b1e(0x3ed)],_0x4a0203=document[_0xb18b1e(0x2c5)](_0x2e625c);_0x4a0203==null||delete _0x4a0203[_0xb18b1e(0x339)]['sheetChartDataAnimation'],_0x4a0203==null||delete _0x4a0203[_0xb18b1e(0x339)]['sheetChartDataAnimationDuration'];let _0x5d12b7=_0x4a0203==null?void 0x0:_0x4a0203['parentElement'];_0x5d12b7&&(_0x5d12b7['style'][_0xb18b1e(0x422)]=this[_0xb18b1e(0x2a7)][_0xb18b1e(0x422)],_0x5d12b7['style'][_0xb18b1e(0x41e)]=this['_savedWrapperStyle'][_0xb18b1e(0x41e)]),this[_0xb18b1e(0x2a7)]=null;}},si=class extends _0x5f44fb{constructor(_0x1fd62c,_0x3121a4,_0x48509e,_0x1d32eb){const _0x17da95=_0x69a5c7;super(),this[_0x17da95(0x2a3)]=_0x3121a4,W(this,'_gesture',null),W(this,_0x17da95(0x33d),!0x1);let _0x4598bd=_0x208a11=>{const _0x464bb6=_0x17da95;this[_0x464bb6(0x33d)]&&(_0x208a11['preventDefault'](),_0x208a11['stopImmediatePropagation']());},_0x37b2d1=_0x22ce48=>{const _0x6f4058=_0x17da95;let _0x5359a0=this[_0x6f4058(0x424)];(_0x5359a0==null?void 0x0:_0x5359a0[_0x6f4058(0x3e3)][_0x6f4058(0x1e0)])===_0x22ce48['pointerId']&&!_0x5359a0[_0x6f4058(0x289)]['hasPointerCapture'](_0x22ce48[_0x6f4058(0x1e0)])&&this['_cancelGesture']();};_0x1fd62c[_0x17da95(0x4ca)](_0x17da95(0x306),_0x4598bd,!0x0),_0x1fd62c[_0x17da95(0x4ca)](_0x17da95(0x37d),_0x4598bd,!0x0),_0x1fd62c['addEventListener'](_0x17da95(0x3b3),_0x37b2d1),this['disposeWithMe'](_0x354ba0(()=>{const _0x26c5c2=_0x17da95;_0x1fd62c[_0x26c5c2(0x21a)](_0x26c5c2(0x306),_0x4598bd,!0x0),_0x1fd62c['removeEventListener'](_0x26c5c2(0x37d),_0x4598bd,!0x0),_0x1fd62c[_0x26c5c2(0x21a)](_0x26c5c2(0x3b3),_0x37b2d1),_0x1d32eb(_0x3121a4);})),this['disposeWithMe'](_0x48509e[_0x17da95(0x32e)](()=>{const _0x413aeb=_0x17da95;this[_0x413aeb(0x424)]&&(this[_0x413aeb(0x33d)]=!0x0);})),_0x1d32eb({'onPointerDown':_0x3bbfc7=>{const _0x1c115c=_0x17da95;this[_0x1c115c(0x33d)]=!0x1,_0x3bbfc7 instanceof PointerEvent&&_0x3bbfc7[_0x1c115c(0x289)]instanceof Element&&_0x1fd62c[_0x1c115c(0x44a)](_0x3bbfc7[_0x1c115c(0x289)])&&(this['_gesture']={'target':_0x3bbfc7[_0x1c115c(0x289)],'event':_0x3bbfc7}),_0x3121a4[_0x1c115c(0x3ba)](_0x3bbfc7),this[_0x1c115c(0x4c9)](_0x3bbfc7);},'onPointerMove':_0x314ffa=>{const _0x3e1e1f=_0x17da95;_0x3121a4[_0x3e1e1f(0x2f7)](_0x314ffa),this[_0x3e1e1f(0x4c9)](_0x314ffa);},'onPointerUp':_0x510b92=>{const _0x9924a6=_0x17da95;try{_0x3121a4[_0x9924a6(0x396)](_0x510b92);}finally{var _0xafe176;_0x510b92 instanceof PointerEvent&&((_0xafe176=this[_0x9924a6(0x424)])==null?void 0x0:_0xafe176['event']['pointerId'])===_0x510b92['pointerId']&&this[_0x9924a6(0x30b)]();}}});}[_0x69a5c7(0x393)](){const _0x2dfd8c=_0x69a5c7;this[_0x2dfd8c(0x204)]||(this[_0x2dfd8c(0x48a)](),super[_0x2dfd8c(0x393)]());}[_0x69a5c7(0x4c9)](_0x36c572){const _0x5061d2=_0x69a5c7;let _0x431174=this['_gesture'];_0x36c572 instanceof PointerEvent&&(_0x431174==null?void 0x0:_0x431174[_0x5061d2(0x3e3)][_0x5061d2(0x1e0)])===_0x36c572[_0x5061d2(0x1e0)]&&(_0x431174['event']=_0x36c572,_0x431174[_0x5061d2(0x289)][_0x5061d2(0x4be)]?_0x431174[_0x5061d2(0x289)][_0x5061d2(0x2f4)](_0x36c572[_0x5061d2(0x1e0)]):this[_0x5061d2(0x48a)]());}[_0x69a5c7(0x30b)](){const _0x48cc86=_0x69a5c7;let _0x35a6cc=this['_gesture'];this[_0x48cc86(0x424)]=null,_0x35a6cc!=null&&_0x35a6cc[_0x48cc86(0x289)][_0x48cc86(0x2eb)](_0x35a6cc['event'][_0x48cc86(0x1e0)])&&_0x35a6cc[_0x48cc86(0x289)][_0x48cc86(0x22e)](_0x35a6cc[_0x48cc86(0x3e3)][_0x48cc86(0x1e0)]);}[_0x69a5c7(0x48a)](){const _0x5f383b=_0x69a5c7;let _0x1f17ed=this[_0x5f383b(0x424)];this[_0x5f383b(0x30b)](),_0x1f17ed&&this[_0x5f383b(0x2a3)][_0x5f383b(0x396)](new PointerEvent(_0x5f383b(0x286),_0x1f17ed['event']));}},ci=class extends _0x29f4ac{constructor(_0x587eaf,_0x31ab04,_0x358083,_0x45a510,_0x44d9a2,_0x226491){const _0x3315ee=_0x69a5c7;super(_0x587eaf),this[_0x3315ee(0x256)]=_0x31ab04,this[_0x3315ee(0x3f5)]=_0x358083,this['_snapshotKey']=_0x45a510,this['_snapshotStore']=_0x44d9a2,this[_0x3315ee(0x26a)]=_0x226491;}[_0x69a5c7(0x3df)](){const _0x41a36f=_0x69a5c7;let _0x1fa891=this[_0x41a36f(0x256)]();return _0x1fa891?Zr(_0x1fa891):null;}[_0x69a5c7(0x3a1)](_0x675abe){const _0x255377=_0x69a5c7;this[_0x255377(0x3f5)](_0x675abe);}[_0x69a5c7(0x2f1)](){const _0x1d8d33=_0x69a5c7;return this[_0x1d8d33(0x3b4)][_0x1d8d33(0x2f1)](this['_snapshotKey']);}[_0x69a5c7(0x1ff)](_0xf2181d,_0x2d44f2){const _0x41fdb3=_0x69a5c7;return this[_0x41fdb3(0x3b4)][_0x41fdb3(0x3ce)](this[_0x41fdb3(0x279)],_0xf2181d,_0x2d44f2);}['requestPaint'](){const _0x2dc6f8=_0x69a5c7;this[_0x2dc6f8(0x26a)]();}[_0x69a5c7(0x3d3)](){const _0x54aeb3=_0x69a5c7;this[_0x54aeb3(0x3b4)][_0x54aeb3(0x2f1)](this[_0x54aeb3(0x279)]);}};function K(_0x827730,_0xbcb7a0){return function(_0x29072b,_0x25ecd5){_0xbcb7a0(_0x29072b,_0x25ecd5,_0x827730);};}function q(_0x3a8942,_0x252389,_0xf03a54,_0x4ab359){const _0x591742=_0x69a5c7;var _0x2c5cbd=arguments[_0x591742(0x44b)],_0x4c28c1=_0x2c5cbd<0x3?_0x252389:_0x4ab359===null?_0x4ab359=Object[_0x591742(0x235)](_0x252389,_0xf03a54):_0x4ab359,_0x4fe3b8;if(typeof Reflect=='object'&&typeof Reflect[_0x591742(0x482)]==_0x591742(0x2f8))_0x4c28c1=Reflect['decorate'](_0x3a8942,_0x252389,_0xf03a54,_0x4ab359);else{for(var _0x3d47dd=_0x3a8942[_0x591742(0x44b)]-0x1;_0x3d47dd>=0x0;_0x3d47dd--)(_0x4fe3b8=_0x3a8942[_0x3d47dd])&&(_0x4c28c1=(_0x2c5cbd<0x3?_0x4fe3b8(_0x4c28c1):_0x2c5cbd>0x3?_0x4fe3b8(_0x252389,_0xf03a54,_0x4c28c1):_0x4fe3b8(_0x252389,_0xf03a54))||_0x4c28c1);}return _0x2c5cbd>0x3&&_0x4c28c1&&Object[_0x591742(0x2f0)](_0x252389,_0xf03a54,_0x4c28c1),_0x4c28c1;}const li=0.5;function ui(_0x27adb7){const _0x85fdb7=_0x69a5c7;let _0x38fa52=Math[_0x85fdb7(0x2dc)](_0x27adb7[_0x85fdb7(0x2ef)]-_0x27adb7[_0x85fdb7(0x357)],0x0),_0x1e0556=Math[_0x85fdb7(0x2dc)](_0x27adb7['endY']-_0x27adb7[_0x85fdb7(0x30e)],0x0),_0x48236a=_0x27adb7[_0x85fdb7(0x30c)]['left']&&_0x27adb7['width']-_0x38fa52>li,_0x1802b5=_0x27adb7['absolute'][_0x85fdb7(0x3db)]&&_0x27adb7[_0x85fdb7(0x452)]-_0x1e0556>li;return!_0x48236a&&!_0x1802b5?_0x27adb7:{..._0x27adb7,'absolute':{'left':!_0x48236a&&_0x27adb7['absolute'][_0x85fdb7(0x213)],'top':!_0x1802b5&&_0x27adb7['absolute'][_0x85fdb7(0x3db)]}};}function di(_0x526fb2){const _0x50fff6=_0x69a5c7;if(!Object[_0x50fff6(0x211)][_0x50fff6(0x3d8)]['call'](_0x526fb2,'border'))return _0x526fb2;let {border:_0xfb76a1,..._0xcb8c5f}=_0x526fb2;return{..._0xcb8c5f,'stroke':(_0xfb76a1==null?void 0x0:_0xfb76a1[_0x50fff6(0x377)])??'transparent','strokeWidth':(_0xfb76a1==null?void 0x0:_0xfb76a1[_0x50fff6(0x3fd)])??0x0};}let fi=class extends _0x5f44fb{constructor(_0x2ddb22,_0x1a1f9c,_0x249117,_0x59482d){const _0x491ded=_0x69a5c7;super(),this[_0x491ded(0x2b0)]=_0x2ddb22,this[_0x491ded(0x410)]=_0x1a1f9c,this[_0x491ded(0x3d6)]=_0x249117,this[_0x491ded(0x3d0)]=_0x59482d,W(this,'_chartHostMap',new Map()),W(this,_0x491ded(0x4a4),new Set()),W(this,_0x491ded(0x47c),new _0x8138ee()),W(this,'removeHost$',this[_0x491ded(0x47c)][_0x491ded(0x473)]()),this['disposeWithMe'](this['_sheetCanvasFloatDomManagerService'][_0x491ded(0x22f)][_0x491ded(0x32e)](_0x54d722=>{const _0x2a8a16=_0x491ded;let _0x4b501e=this[_0x2a8a16(0x22d)][_0x2a8a16(0x39d)](_0x54d722['id']);_0x4b501e!=null&&_0x4b501e[_0x2a8a16(0x2bd)]()&&(_0x4b501e[_0x2a8a16(0x2b8)](),this[_0x2a8a16(0x47c)][_0x2a8a16(0x2ab)](_0x54d722['id']));}));}[_0x69a5c7(0x3f9)](_0x59e264){const _0x2bf608=_0x69a5c7;if(_0x59e264==null)return;let _0x34c245=this[_0x2bf608(0x410)][_0x2bf608(0x420)](_0x59e264),_0x2a75b0=_0x34c245==null?void 0x0:_0x34c245[_0x2bf608(0x2a1)];return _0x34c245==null||_0x2a75b0==null?null:{'scene':_0x2a75b0,'transformer':_0x2a75b0[_0x2bf608(0x25a)](),'renderUnit':_0x34c245,'canvas':_0x34c245[_0x2bf608(0x4bc)][_0x2bf608(0x27e)]()};}[_0x69a5c7(0x385)](_0x1dd75f,_0xf13b9f){const _0x5de4ca=_0x69a5c7;let _0x3f3259=this[_0x5de4ca(0x2b0)],_0x482756=_0xf13b9f||_0x5de4ca(0x2c8),_0xf98473=_0x3f3259['getFloatDomInfo'](_0x1dd75f);if(_0xf98473){let {unitId:_0x542f37,subUnitId:_0x264876}=_0xf98473;_0x3f3259[_0x5de4ca(0x374)](_0x542f37,_0x264876,_0x1dd75f,{'stroke':_0x482756});}}[_0x69a5c7(0x1f7)](_0x5135fb,_0x4e6b06){const _0x53da6a=_0x69a5c7;let _0x61f1ff=this[_0x53da6a(0x2b0)],_0x25e97b=_0x61f1ff[_0x53da6a(0x454)](_0x5135fb);if(_0x25e97b){let {unitId:_0x3256bd,subUnitId:_0x319110}=_0x25e97b;_0x61f1ff['updateFloatDomProps'](_0x3256bd,_0x319110,_0x5135fb,di(_0x4e6b06));}}[_0x69a5c7(0x2c6)](_0x184ac4){const _0x21b4b3=_0x69a5c7;let _0x9e1776=this['_sheetCanvasFloatDomManagerService'][_0x21b4b3(0x454)](_0x184ac4);return _0x9e1776?_0x9e1776['rect']:null;}[_0x69a5c7(0x2be)](_0x28a7d8){const _0x21ce97=_0x69a5c7;let _0x422baf=this[_0x21ce97(0x2b0)][_0x21ce97(0x454)](_0x28a7d8),_0x1fc88d=document[_0x21ce97(0x2c5)]((_0x422baf==null?void 0x0:_0x422baf[_0x21ce97(0x2b3)])??_0x28a7d8);return(_0x1fc88d==null?void 0x0:_0x1fc88d['getBoundingClientRect']())??null;}[_0x69a5c7(0x25b)](_0x302f34,_0x19037c){const _0x442050=_0x69a5c7;var _0x1011ab;(_0x1011ab=this['_chartHostMap']['get'](_0x302f34))==null||_0x1011ab[_0x442050(0x25b)](_0x19037c);}['checkHost'](_0x1f3fcd){const _0x3aaeab=_0x69a5c7;var _0x1a1258;return((_0x1a1258=this[_0x3aaeab(0x22d)][_0x3aaeab(0x39d)](_0x1f3fcd))==null?void 0x0:_0x1a1258['checkMounted']())??!0x1;}[_0x69a5c7(0x48e)](_0x2a0027){const _0x1d66e8=_0x69a5c7;var _0x3c1d42;(_0x3c1d42=this[_0x1d66e8(0x22d)][_0x1d66e8(0x39d)](_0x2a0027))==null||_0x3c1d42[_0x1d66e8(0x20f)]();}['removeHost'](_0x2649bd){const _0x45a6f5=_0x69a5c7;let _0x29bd1d=this[_0x45a6f5(0x22d)][_0x45a6f5(0x39d)](_0x2649bd);_0x29bd1d&&(_0x29bd1d[_0x45a6f5(0x393)](),this[_0x45a6f5(0x3d0)][_0x45a6f5(0x312)](_0x2649bd,{'eventPassThrough':!0x0})),this[_0x45a6f5(0x22d)][_0x45a6f5(0x21b)](_0x2649bd);}async[_0x69a5c7(0x2d8)](_0x374723,_0x5843c7){const _0x5e0ef0=_0x69a5c7;if(_0x5843c7===_0x339cde[_0x5e0ef0(0x49a)])return this['_createImageChartHost'](_0x374723);if(_0x5843c7===_0x339cde['Dom'])return this[_0x5e0ef0(0x29c)](_0x374723);let _0x38f7ec=this['_getOrCreateSheetChartHost'](_0x374723);if(!_0x38f7ec)throw Error(_0x5e0ef0(0x46a));return _0x38f7ec[_0x5e0ef0(0x1e8)]();}[_0x69a5c7(0x2ed)](_0x25ff51){const _0x104e4b=_0x69a5c7;var _0x2eb743;return this[_0x104e4b(0x4a4)][_0x104e4b(0x29a)](_0x25ff51)?(_0x2eb743=this[_0x104e4b(0x22d)][_0x104e4b(0x39d)](_0x25ff51))!=null&&_0x2eb743[_0x104e4b(0x20b)]()?!0x0:(this[_0x104e4b(0x4a4)][_0x104e4b(0x21b)](_0x25ff51),this['_restoreFloatDomPositionStream'](_0x25ff51),!0x1):!0x1;}[_0x69a5c7(0x251)](_0x317e67){const _0x49dee3=_0x69a5c7;this[_0x49dee3(0x4a4)][_0x49dee3(0x21b)](_0x317e67)&&(this[_0x49dee3(0x2db)](_0x317e67),this[_0x49dee3(0x434)](_0x317e67));}['invalidateSnapshot'](_0x4f19e6){const _0x89c81e=_0x69a5c7;let _0x5964eb=this['_getChartSnapshotKey'](_0x4f19e6);_0x5964eb&&this[_0x89c81e(0x3d6)][_0x89c81e(0x2f1)](_0x5964eb);}[_0x69a5c7(0x365)](_0x4068b5){const _0x479bc5=_0x69a5c7;let _0x6f81c3=this[_0x479bc5(0x4a7)](_0x4068b5);return!_0x6f81c3||!this[_0x479bc5(0x2c6)](_0x4068b5)?null:new ci(_0x4068b5,()=>this['getHostSize'](_0x4068b5),_0x4cb92f=>this[_0x479bc5(0x1f7)](_0x4068b5,_0x4cb92f),_0x6f81c3,this[_0x479bc5(0x3d6)],()=>this['_requestChartCanvasRender'](_0x4068b5));}['_getOrCreateSheetChartHost'](_0x24c9a8){const _0x2380cb=_0x69a5c7;if(!this['getHostSize'](_0x24c9a8))return null;this['_canvasFloatDomService']['updateFloatDom'](_0x24c9a8,{'eventPassThrough':!0x0,'contentBox':{'wrapperInset':0x0,'contentInset':0x0}});let _0x3b919a=this['_chartHostMap'][_0x2380cb(0x39d)](_0x24c9a8);if(_0x3b919a)return _0x3b919a;let _0xbfedc7=new oi(_0x24c9a8,()=>this['_sheetCanvasFloatDomManagerService']['getFloatDomInfo'](_0x24c9a8),()=>this[_0x2380cb(0x477)](_0x24c9a8),_0x5d1328=>this[_0x2380cb(0x1f7)](_0x24c9a8,_0x5d1328),()=>this[_0x2380cb(0x204)],()=>this[_0x2380cb(0x38d)](_0x24c9a8),()=>this['markHostNotReady'](_0x24c9a8),_0x183968=>this[_0x2380cb(0x24b)](_0x24c9a8,_0x183968));return this[_0x2380cb(0x22d)]['set'](_0x24c9a8,_0xbfedc7),_0xbfedc7;}[_0x69a5c7(0x24b)](_0x3f2de5,_0x597614){const _0x526a98=_0x69a5c7;var _0x4401ec;let _0x29d7a5=this[_0x526a98(0x2b0)][_0x526a98(0x454)](_0x3f2de5),_0x155686=(_0x4401ec=this[_0x526a98(0x3d0)][_0x526a98(0x27c)][_0x526a98(0x321)](([_0x46d59e])=>_0x46d59e===_0x3f2de5))==null?void 0x0:_0x4401ec[0x1],_0x2c0095=_0x29d7a5?this[_0x526a98(0x3f9)](_0x29d7a5[_0x526a98(0x1ee)]):null;if(!_0x29d7a5||!_0x155686||!_0x2c0095)return _0x354ba0(()=>{});let _0x330b8f=_0x558e11({'unitId':_0x29d7a5['unitId'],'subUnitId':_0x29d7a5['subUnitId'],'drawingId':_0x3f2de5});return new si(_0x597614,{'onPointerDown':_0x155686[_0x526a98(0x3ba)],'onPointerMove':_0x155686['onPointerMove'],'onPointerUp':_0x155686[_0x526a98(0x396)]},_0x2c0095[_0x526a98(0x418)][_0x526a98(0x1f2)][_0x526a98(0x2b7)](_0x501dd5(_0x4467d9=>_0x4467d9[_0x526a98(0x318)][_0x526a98(0x29a)](_0x330b8f)&&((_0x4467d9[_0x526a98(0x343)]??0x0)!==0x0||(_0x4467d9[_0x526a98(0x1fe)]??0x0)!==0x0))),_0xc40edf=>this[_0x526a98(0x3d0)][_0x526a98(0x312)](_0x3f2de5,_0xc40edf));}[_0x69a5c7(0x38d)](_0x291b13){const _0x501841=_0x69a5c7;this[_0x501841(0x4a4)]['has'](_0x291b13)||(this[_0x501841(0x4a4)][_0x501841(0x337)](_0x291b13),this[_0x501841(0x363)](_0x291b13),this['_requestChartCanvasRender'](_0x291b13));}['_alignFloatDomPositionWithSceneRender'](_0xbe06ef){const _0x2f6bd1=_0x69a5c7;var _0x15326d;let _0x2a063d=this['_sheetCanvasFloatDomManagerService']['getFloatDomInfo'](_0xbe06ef),_0x431566=_0x2a063d?(_0x15326d=this[_0x2f6bd1(0x410)][_0x2f6bd1(0x420)](_0x2a063d[_0x2f6bd1(0x1ee)]))==null?void 0x0:_0x15326d[_0x2f6bd1(0x2a1)]:null;if(!_0x2a063d||!_0x431566)return;let _0x18f9b4=_0x597287(_0x2a063d[_0x2f6bd1(0x255)][_0x2f6bd1(0x2b7)](_0x11684a(0x1)),_0x431566[_0x2f6bd1(0x40d)]['pipe'](_0x17c793(_0x2a063d[_0x2f6bd1(0x255)]),_0x398f6c(([,_0x29bd93])=>_0x29bd93)))[_0x2f6bd1(0x2b7)](_0x4ad411(),_0x398f6c(ui));this[_0x2f6bd1(0x3d0)][_0x2f6bd1(0x312)](_0xbe06ef,{'position$':_0x18f9b4});}['_restoreFloatDomPositionStream'](_0x1a775e){const _0x1db293=_0x69a5c7;let _0x53b42a=this[_0x1db293(0x2b0)][_0x1db293(0x454)](_0x1a775e);_0x53b42a&&this[_0x1db293(0x3d0)][_0x1db293(0x312)](_0x1a775e,{'position$':_0x53b42a['position$']});}[_0x69a5c7(0x4a7)](_0x83e716){const _0x2c2a7c=_0x69a5c7;let _0x2304ba=this[_0x2c2a7c(0x2b0)][_0x2c2a7c(0x454)](_0x83e716);return _0x2304ba?{'unitId':_0x2304ba[_0x2c2a7c(0x1ee)],'subUnitId':_0x2304ba[_0x2c2a7c(0x419)],'chartId':_0x83e716}:null;}[_0x69a5c7(0x434)](_0x58f85c){const _0x7e5aca=_0x69a5c7;var _0x3dfb7e,_0x2bafcb,_0x54a11c;let _0xcf78cc=this[_0x7e5aca(0x2b0)]['getFloatDomInfo'](_0x58f85c);if(!_0xcf78cc)return;let _0x165a30=(_0x3dfb7e=this[_0x7e5aca(0x410)]['getRenderUnitById'](_0xcf78cc[_0x7e5aca(0x1ee)]))==null?void 0x0:_0x3dfb7e[_0x7e5aca(0x2a1)],_0x53fe1f=(_0x165a30==null||(_0x2bafcb=_0x165a30[_0x7e5aca(0x3a3)])==null?void 0x0:_0x2bafcb['call'](_0x165a30,_0x558e11({'unitId':_0xcf78cc[_0x7e5aca(0x1ee)],'subUnitId':_0xcf78cc['subUnitId'],'drawingId':_0x58f85c})))??(_0x165a30==null?void 0x0:_0x165a30[_0x7e5aca(0x2d1)](_0x558e11({'unitId':_0xcf78cc[_0x7e5aca(0x1ee)],'subUnitId':_0xcf78cc[_0x7e5aca(0x419)],'drawingId':_0x58f85c})))??null;_0x53fe1f==null||(_0x54a11c=_0x53fe1f['makeDirty'])==null||_0x54a11c[_0x7e5aca(0x4b0)](_0x53fe1f,!0x0),_0x165a30==null||_0x165a30[_0x7e5aca(0x376)](!0x0);}[_0x69a5c7(0x477)](_0x316865){const _0x354fc9=_0x69a5c7;let _0x3924e4=this[_0x354fc9(0x2b0)]['getFloatDomInfo'](_0x316865);if(!_0x3924e4)return null;let _0x16cc77=this[_0x354fc9(0x3f9)](_0x3924e4['unitId']),_0x3075d4=_0x16cc77==null?void 0x0:_0x16cc77[_0x354fc9(0x2a1)],_0x473db2=document[_0x354fc9(0x2c5)](_0x3924e4['domId']??_0x316865);return Qr(_0x3924e4[_0x354fc9(0x35e)],{'scaleX':(_0x3075d4==null?void 0x0:_0x3075d4['scaleX'])??0x1,'scaleY':(_0x3075d4==null?void 0x0:_0x3075d4[_0x354fc9(0x480)])??0x1},_0x473db2?{'left':_0x473db2[_0x354fc9(0x4c0)],'top':_0x473db2['offsetTop']}:void 0x0);}[_0x69a5c7(0x393)](){const _0x1a5864=_0x69a5c7;this[_0x1a5864(0x204)]||(Array[_0x1a5864(0x445)](this['_chartHostMap']['keys']())[_0x1a5864(0x330)](_0x20120c=>this[_0x1a5864(0x458)](_0x20120c)),this[_0x1a5864(0x4a4)][_0x1a5864(0x4bb)](),this[_0x1a5864(0x47c)][_0x1a5864(0x37f)](),super[_0x1a5864(0x393)]());}};fi=q([K(0x0,_0x345df3(_0x5a2ef7)),K(0x1,_0x345df3(_0x3a5b98)),K(0x2,_0x345df3(ii)),K(0x3,_0x345df3(_0x9fa0b5))],fi);const pi=_0x2e14a3(_0x69a5c7(0x358)),mi=_0x339cde[_0x69a5c7(0x49a)];var hi=class extends _0x29f4ac{constructor(_0x1cf43a,_0x4c5a19){const _0x49eecf=_0x69a5c7;super(_0x1cf43a),this[_0x49eecf(0x2e2)]=_0x4c5a19,W(this,_0x49eecf(0x1e4),0x0),W(this,'_image',void 0x0),W(this,_0x49eecf(0x338),{});}[_0x69a5c7(0x3df)](){const _0x36f3d6=_0x69a5c7;return this[_0x36f3d6(0x2e2)];}[_0x69a5c7(0x3a1)](_0x4c05a8){const _0x41c5b5=_0x69a5c7;this[_0x41c5b5(0x338)]=_0x4c05a8;}[_0x69a5c7(0x2f1)](){const _0x2f31b1=_0x69a5c7;return++this[_0x2f31b1(0x1e4)];}['commitSnapshot'](_0x2a209c,_0x2b5a4e){const _0x2adbbc=_0x69a5c7;return _0x2b5a4e===this['_version']?(G(this[_0x2adbbc(0x4b9)]),this['_image']=_0x2a209c,!0x0):(G(_0x2a209c),!0x1);}[_0x69a5c7(0x33b)](){}[_0x69a5c7(0x3d3)](){const _0x185605=_0x69a5c7;this[_0x185605(0x1e4)]+=0x1;}[_0x69a5c7(0x298)](){const _0x53926f=_0x69a5c7;let _0x43c88f=this[_0x53926f(0x4b9)];return this[_0x53926f(0x4b9)]=void 0x0,_0x43c88f;}[_0x69a5c7(0x393)](){const _0x58315b=_0x69a5c7;G(this[_0x58315b(0x4b9)]),this[_0x58315b(0x4b9)]=void 0x0,super['dispose']();}};function gi(_0x4731dc,_0x387b58,_0x3ec335){const _0xd1a349=_0x69a5c7;let _0x127223=_0x4731dc[_0xd1a349(0x314)](_0x387b58),_0x37758d={..._0x4731dc[_0xd1a349(0x338)],'runtime':{..._0x127223,'layoutInset':0x8,..._0x3ec335===void 0x0?{}:{'addWatermark':_0x3ec335}},'direction':_0x387b58};return _0x3b9cac(_0x37758d,_0x4731dc[_0xd1a349(0x24f)]);}let J=class extends _0x5f44fb{constructor(_0x242e23,_0x2cb032,_0x5d71bc,_0x337b08,_0x4ae55f,_0x50bb9f,_0x1238ed,_0x5b23d6,_0x3f8263,_0x45e25b,_0x1062a2,_0x50515f,_0x35b129){const _0x28d744=_0x69a5c7;super(),this['_chartHostProvider']=_0x242e23,this[_0x28d744(0x2b0)]=_0x2cb032,this['_chartModelService']=_0x5d71bc,this['_drawingManagerService']=_0x337b08,this[_0x28d744(0x2f3)]=_0x4ae55f,this[_0x28d744(0x410)]=_0x50bb9f,this[_0x28d744(0x36a)]=_0x1238ed,this['_injector']=_0x5b23d6,this[_0x28d744(0x453)]=_0x3f8263,this[_0x28d744(0x292)]=_0x45e25b,this[_0x28d744(0x350)]=_0x1062a2,this[_0x28d744(0x3d6)]=_0x50515f,this['_renderModelManager']=_0x35b129,W(this,_0x28d744(0x295),new Map()),W(this,_0x28d744(0x412),new Map()),W(this,'_chartEventSubscriptions',new Map()),W(this,_0x28d744(0x206),new Map()),W(this,_0x28d744(0x36b),new Map()),W(this,'_debounceHandleMap',new Map()),W(this,_0x28d744(0x281),new Map()),W(this,_0x28d744(0x439),void 0x0),W(this,_0x28d744(0x4bf),void 0x0),W(this,_0x28d744(0x3cb),new Map()),W(this,_0x28d744(0x381),new Set()),W(this,'_dataUpdateAnimationTimers',new Map()),W(this,_0x28d744(0x2ad),null),W(this,_0x28d744(0x28c),null);let _0x127d78=_0x119e1e(this[_0x28d744(0x203)]),_0x3a792d=this['_configService'][_0x28d744(0x23d)](_0x4c1a80);this[_0x28d744(0x439)]=(_0x3a792d==null?void 0x0:_0x3a792d[_0x28d744(0x39e)])??mi,this['_addWatermark']=_0x127d78['length']!==0x1||_0x127d78[0x0]!==_0x28d744(0x398),this['_registerChartImageRenderObjectFactory'](),this[_0x28d744(0x470)](),this[_0x28d744(0x3a7)](),this[_0x28d744(0x35f)](),this['handleActiveSubUnitChange']();}['getChartSnapshotImage'](_0x46fb07){const _0x164754=_0x69a5c7;let _0xbd77ca=this['_getChartSnapshotKey'](_0x46fb07);return _0xbd77ca?this[_0x164754(0x3d6)][_0x164754(0x3bb)](_0xbd77ca):void 0x0;}[_0x69a5c7(0x3eb)](_0x4a17c8){const _0x109fbc=_0x69a5c7;var _0x53ee14;return((_0x53ee14=this[_0x109fbc(0x3c5)][_0x109fbc(0x2c4)])==null?void 0x0:_0x53ee14['id'])===_0x4a17c8?_0x339cde[_0x109fbc(0x212)]:this[_0x109fbc(0x439)];}[_0x69a5c7(0x4a7)](_0x350574){const _0x4ef4ee=_0x69a5c7;let _0x23a55a=this[_0x4ef4ee(0x2b0)][_0x4ef4ee(0x454)](_0x350574);return _0x23a55a?{'unitId':_0x23a55a[_0x4ef4ee(0x1ee)],'subUnitId':_0x23a55a[_0x4ef4ee(0x419)],'chartId':_0x350574}:null;}[_0x69a5c7(0x3b9)](){const _0x28cc18=_0x69a5c7;this[_0x28cc18(0x439)]===_0x339cde[_0x28cc18(0x49a)]&&this[_0x28cc18(0x237)](this[_0x28cc18(0x2b0)]['registerRenderObjectFactory'](_0x56b014['DRAWING_CHART'],({key:_0x5690c3,config:_0x44b98d,unitId:_0x3c3737,subUnitId:_0x153003,drawingId:_0x2de0de})=>new ei(_0x5690c3,_0x44b98d,()=>this[_0x28cc18(0x3d6)]['getImage']({'unitId':_0x3c3737,'subUnitId':_0x153003,'chartId':_0x2de0de}),()=>this['_chartHostProvider'][_0x28cc18(0x2ed)](_0x2de0de))));}[_0x69a5c7(0x470)](){const _0x2595c4=_0x69a5c7;this[_0x2595c4(0x237)](this[_0x2595c4(0x3c5)][_0x2595c4(0x1e3)][_0x2595c4(0x32e)](_0x5f5760=>{const _0x1e20aa=_0x2595c4;let _0x43a168=(_0x5f5760==null?void 0x0:_0x5f5760['id'])??null,_0x55fa09=this[_0x1e20aa(0x2ad)];_0x55fa09!==_0x43a168&&(_0x55fa09&&(this[_0x1e20aa(0x230)][_0x1e20aa(0x251)](_0x55fa09),this[_0x1e20aa(0x21f)](_0x55fa09),this[_0x1e20aa(0x3b1)](_0x55fa09)),this[_0x1e20aa(0x2ad)]=_0x43a168,_0x43a168&&(this['_deactivateDataUpdateAnimation'](_0x43a168),this[_0x1e20aa(0x230)][_0x1e20aa(0x251)](_0x43a168),this[_0x1e20aa(0x3be)](_0x43a168),this[_0x1e20aa(0x252)](_0x43a168)));}));}['_initDrawingDeactivationListener'](){const _0x56ca16=_0x69a5c7;this[_0x56ca16(0x237)](this[_0x56ca16(0x4a9)][_0x56ca16(0x266)][_0x56ca16(0x32e)](_0x52a8ac=>{const _0x24a6b4=_0x56ca16;var _0x3ee70c;let _0x25623b=(_0x3ee70c=this[_0x24a6b4(0x3c5)][_0x24a6b4(0x2c4)])==null?void 0x0:_0x3ee70c['id'];_0x25623b&&_0x52a8ac['some'](_0x3f41e9=>_0x3f41e9['children'][_0x24a6b4(0x400)](_0x457a15=>_0x457a15[_0x24a6b4(0x3c1)]===_0x25623b))&&this[_0x24a6b4(0x3c5)][_0x24a6b4(0x259)](null);})),this['disposeWithMe'](this[_0x56ca16(0x4a9)][_0x56ca16(0x438)][_0x56ca16(0x32e)](_0x3b0100=>{const _0x117dd7=_0x56ca16;var _0xc39b10;let _0x8bd95a=(_0xc39b10=this[_0x117dd7(0x3c5)]['activeChartModel'])==null?void 0x0:_0xc39b10['id'];_0x8bd95a&&_0x3b0100['some'](_0x5d0d80=>_0x5d0d80['parent'][_0x117dd7(0x3c1)]===_0x8bd95a||_0x5d0d80[_0x117dd7(0x2e0)]['some'](_0x13214c=>_0x13214c[_0x117dd7(0x3c1)]===_0x8bd95a))&&this[_0x117dd7(0x3c5)][_0x117dd7(0x259)](null);}));}[_0x69a5c7(0x35f)](){const _0x328b87=_0x69a5c7;this[_0x328b87(0x237)](this['_drawingManagerService'][_0x328b87(0x313)][_0x328b87(0x32e)](_0x32b91f=>{const _0x2efd53=_0x328b87;var _0x2d2215;let _0x546bb1=(_0x2d2215=this[_0x2efd53(0x3c5)][_0x2efd53(0x2c4)])==null?void 0x0:_0x2d2215['id'];if(!_0x546bb1){_0x32b91f[_0x2efd53(0x27b)][_0x2efd53(0x330)](_0x51479c=>{const _0x18ecd2=_0x2efd53;this[_0x18ecd2(0x3c5)][_0x18ecd2(0x3a4)](_0x51479c)&&this['_resetChartRuntimeZIndex'](_0x51479c);});return;}let _0x5587df=this[_0x2efd53(0x2b0)][_0x2efd53(0x454)](_0x546bb1);(_0x5587df==null?void 0x0:_0x5587df['unitId'])===_0x32b91f[_0x2efd53(0x1ee)]&&_0x5587df[_0x2efd53(0x419)]===_0x32b91f[_0x2efd53(0x419)]&&this[_0x2efd53(0x3be)](_0x546bb1);})),this[_0x328b87(0x237)](this[_0x328b87(0x4a9)][_0x328b87(0x4b1)][_0x328b87(0x32e)](_0x215819=>{const _0xd6b23b=_0x328b87;var _0x2a960a;let _0x362641=(_0x2a960a=this[_0xd6b23b(0x3c5)][_0xd6b23b(0x2c4)])==null?void 0x0:_0x2a960a['id'];if(!_0x362641)return;let _0x19a72e=this['_sheetCanvasFloatDomManagerService'][_0xd6b23b(0x454)](_0x362641);_0x19a72e&&_0x215819[_0xd6b23b(0x400)](_0x29ae20=>_0x29ae20[_0xd6b23b(0x1ee)]===_0x19a72e[_0xd6b23b(0x1ee)]&&_0x29ae20['subUnitId']===_0x19a72e[_0xd6b23b(0x419)])&&this[_0xd6b23b(0x3be)](_0x362641);})),this[_0x328b87(0x237)](this['_chartModelService'][_0x328b87(0x21e)][_0x328b87(0x32e)](_0x212288=>{const _0x1b94ee=_0x328b87;var _0x4e0172;this[_0x1b94ee(0x347)](_0x212288),this[_0x1b94ee(0x2fc)](_0x212288),this[_0x1b94ee(0x412)]['delete'](_0x212288),this['_deactivateDataUpdateAnimation'](_0x212288),this[_0x1b94ee(0x3cb)][_0x1b94ee(0x21b)](_0x212288),this[_0x1b94ee(0x3d6)]['clearChart'](_0x212288),this[_0x1b94ee(0x32c)](_0x212288),this[_0x1b94ee(0x230)][_0x1b94ee(0x251)](_0x212288),((_0x4e0172=this[_0x1b94ee(0x3c5)]['activeChartModel'])==null?void 0x0:_0x4e0172['id'])===_0x212288?this[_0x1b94ee(0x3c5)][_0x1b94ee(0x259)](null):this[_0x1b94ee(0x21f)](_0x212288),this[_0x1b94ee(0x309)](_0x212288);}));}[_0x69a5c7(0x252)](_0x51172f){const _0x4a4cc0=_0x69a5c7;let _0x22c0e7=this[_0x4a4cc0(0x3cb)]['get'](_0x51172f);_0x22c0e7&&this[_0x4a4cc0(0x36e)](_0x51172f,_0x22c0e7[_0x4a4cc0(0x42d)],_0x22c0e7[_0x4a4cc0(0x338)]);}[_0x69a5c7(0x3b1)](_0x5108d2){const _0x4a090f=_0x69a5c7;let _0x2b1c7b=this[_0x4a090f(0x295)]['get'](_0x5108d2);(_0x2b1c7b==null?void 0x0:_0x2b1c7b['mode'])===_0x4a090f(0x40e)&&(this[_0x4a090f(0x2fc)](_0x5108d2),_0x2b1c7b['dispose'](),this[_0x4a090f(0x295)][_0x4a090f(0x21b)](_0x5108d2)),this[_0x4a090f(0x230)][_0x4a090f(0x251)](_0x5108d2),this[_0x4a090f(0x230)][_0x4a090f(0x458)](_0x5108d2);}[_0x69a5c7(0x309)](_0x157ac4){const _0x53dd52=_0x69a5c7;let _0x2ec2c5=this[_0x53dd52(0x295)][_0x53dd52(0x39d)](_0x157ac4);_0x2ec2c5&&(this[_0x53dd52(0x2fc)](_0x157ac4),_0x2ec2c5[_0x53dd52(0x393)](),this[_0x53dd52(0x295)][_0x53dd52(0x21b)](_0x157ac4)),this[_0x53dd52(0x230)][_0x53dd52(0x251)](_0x157ac4),this[_0x53dd52(0x230)][_0x53dd52(0x458)](_0x157ac4);}[_0x69a5c7(0x32c)](_0x4b6d1b){const _0x13112c=_0x69a5c7;var _0x207861,_0x53797c;(_0x207861=this[_0x13112c(0x4b4)][_0x13112c(0x3ef)](_0x22ce5a))==null||(_0x53797c=_0x207861['emitChartEvent'])==null||_0x53797c[_0x13112c(0x4b0)](_0x207861,{'type':_0x13112c(0x233),'chartId':_0x4b6d1b});}[_0x69a5c7(0x362)](_0x529659,_0x3c3ad0){const _0x2d1053=_0x69a5c7;let _0x58f8c7=this['_drawingManagerService'][_0x2d1053(0x247)](_0x529659,_0x3c3ad0);Object[_0x2d1053(0x42e)](_0x58f8c7??{})['forEach'](_0x1008f4=>{const _0x2feacf=_0x2d1053;if(_0x1008f4[_0x2feacf(0x33f)]===_0x56b014['DRAWING_CHART']){var _0x4dd1fc,_0x35dbff;(_0x4dd1fc=this[_0x2feacf(0x4b4)][_0x2feacf(0x3ef)](_0x22ce5a))==null||(_0x35dbff=_0x4dd1fc['emitChartEvent'])==null||_0x35dbff[_0x2feacf(0x4b0)](_0x4dd1fc,{'type':_0x2feacf(0x3cf),'chartId':_0x1008f4['drawingId']});}});}[_0x69a5c7(0x40a)](_0x69073,_0x48fd3f){const _0x9978f4=_0x69a5c7;var _0x37ad44;return((_0x37ad44=_0x69073[_0x9978f4(0x3a3)])==null?void 0x0:_0x37ad44[_0x9978f4(0x4b0)](_0x69073,_0x48fd3f))??_0x69073[_0x9978f4(0x2d1)](_0x48fd3f)??null;}[_0x69a5c7(0x351)](_0x18ea2a){const _0x1bee2b=_0x69a5c7;var _0x1aadbd;let _0x354855=this[_0x1bee2b(0x2b0)]['getFloatDomInfo'](_0x18ea2a);if(!_0x354855)return null;let _0x252e78=(_0x1aadbd=this[_0x1bee2b(0x410)][_0x1bee2b(0x420)](_0x354855[_0x1bee2b(0x1ee)]))==null?void 0x0:_0x1aadbd[_0x1bee2b(0x2a1)];if(!_0x252e78)return null;let _0x3e214a=this[_0x1bee2b(0x40a)](_0x252e78,_0x558e11({'unitId':_0x354855['unitId'],'subUnitId':_0x354855['subUnitId'],'drawingId':_0x18ea2a}));return _0x3e214a?{'info':_0x354855,'scene':_0x252e78,'chartObject':_0x3e214a}:null;}[_0x69a5c7(0x48f)](_0x2a4ae7,_0x13d16a){const _0x2edaf0=_0x69a5c7;var _0x1c3d56,_0x5af58b,_0x543a00,_0xc965c1;let _0x4a5882=this[_0x2edaf0(0x351)](_0x2a4ae7);_0x4a5882&&((_0x1c3d56=(_0x5af58b=_0x4a5882[_0x2edaf0(0x209)])[_0x2edaf0(0x1db)])==null||_0x1c3d56[_0x2edaf0(0x4b0)](_0x5af58b,{'zIndex':_0x13d16a}),(_0x543a00=(_0xc965c1=_0x4a5882['chartObject'])['makeDirty'])==null||_0x543a00['call'](_0xc965c1,!0x0),_0x4a5882[_0x2edaf0(0x2a1)][_0x2edaf0(0x376)](!0x0));}[_0x69a5c7(0x3be)](_0x56abaf){const _0x2f6faf=_0x69a5c7;let _0x5a4d79=this[_0x2f6faf(0x2b0)]['getFloatDomInfo'](_0x56abaf);if(!_0x5a4d79)return;let _0x330515=this['_drawingManagerService'][_0x2f6faf(0x304)](_0x5a4d79[_0x2f6faf(0x1ee)],_0x5a4d79['subUnitId']);this['_setChartRuntimeZIndex'](_0x56abaf,_0x330515[_0x2f6faf(0x44b)]);}[_0x69a5c7(0x21f)](_0x27de51){const _0x187673=_0x69a5c7;let _0x14f4f5=this[_0x187673(0x2b0)]['getFloatDomInfo'](_0x27de51);if(!_0x14f4f5)return;let _0x383874=this[_0x187673(0x4a9)]['getDrawingOrder'](_0x14f4f5['unitId'],_0x14f4f5[_0x187673(0x419)]),_0x2968ff=_0x383874['indexOf'](_0x27de51);this[_0x187673(0x48f)](_0x27de51,_0x2968ff===-0x1?Math[_0x187673(0x2dc)](_0x383874[_0x187673(0x44b)]-0x1,0x0):_0x2968ff);}[_0x69a5c7(0x3de)](_0x443a85,_0x5f10cf){const _0x4e23dc=_0x69a5c7;let _0x1da764=this['_sheetCanvasFloatDomManagerService']['getFloatDomInfo'](_0x443a85);if(_0x5f10cf[_0x4e23dc(0x3fd)]!==void 0x0&&_0x5f10cf[_0x4e23dc(0x452)]!==void 0x0&&_0x1da764){var _0x3677a2;let {subUnitId:_0x56113f}=_0x1da764,_0x5b375a=(_0x3677a2=this[_0x4e23dc(0x2f3)][_0x4e23dc(0x401)](_0x3cb846[_0x4e23dc(0x216)]))==null?void 0x0:_0x3677a2['getActiveSheet']();if((_0x5b375a==null?void 0x0:_0x5b375a[_0x4e23dc(0x36c)]())===_0x56113f){let {width:_0x2f5eb1,height:_0x15bc30}=_0x5f10cf,_0x16f313=this['_chartModelService'][_0x4e23dc(0x3a4)](_0x443a85),_0x13feaf=_0x16f313==null?void 0x0:_0x16f313[_0x4e23dc(0x338)];(Math[_0x4e23dc(0x236)](_0x2f5eb1-((_0x13feaf==null?void 0x0:_0x13feaf['width'])||0x0))>0x1||Math[_0x4e23dc(0x236)](_0x15bc30-((_0x13feaf==null?void 0x0:_0x13feaf[_0x4e23dc(0x452)])||0x0))>0x1)&&(_0x16f313==null||_0x16f313[_0x4e23dc(0x249)]({..._0x13feaf,'width':_0x2f5eb1,'height':_0x15bc30}));}}}[_0x69a5c7(0x1dc)](_0x2c8952,_0x486bbc,_0x4fbdfe=0x0){const _0x50def5=_0x69a5c7;let _0x448b41=this[_0x50def5(0x320)][_0x50def5(0x39d)](_0x2c8952);_0x448b41||(_0x448b41=_0x32b3ce(_0x3b27b7=>{const _0x3905a5=_0x50def5;this[_0x3905a5(0x3de)](_0x2c8952,_0x3b27b7);},_0x4fbdfe),this[_0x50def5(0x320)][_0x50def5(0x46c)](_0x2c8952,_0x448b41)),_0x448b41(_0x486bbc);}[_0x69a5c7(0x345)](){const _0x46aaee=_0x69a5c7;let _0xff87e=this[_0x46aaee(0x36b)],_0x4c711b=_0x23d3af=>{const _0x5d1b0b=_0x46aaee;if(!_0xff87e[_0x5d1b0b(0x29a)](_0x23d3af)){let _0x19b243=_0x32b3ce((_0x4c0ca5,_0x12bd77,_0x2ab59c,_0x20376a)=>{const _0x253f06=_0x5d1b0b;var _0x24dce9,_0x162598;if(!_0x2ab59c)return;(_0x24dce9=_0x2ab59c[_0x253f06(0x371)])==null||_0x24dce9[_0x253f06(0x24a)]['forEach']((_0x8996c7,_0x3b2d7b)=>{const _0x37bd3a=_0x253f06;_0x8996c7[_0x37bd3a(0x386)]||=this['_localeService']['t'](_0x37bd3a(0x2cd))+'\x20'+(_0x3b2d7b+0x1);}),_0x2ab59c[_0x253f06(0x415)][_0x253f06(0x330)]((_0x1af503,_0x1f4249)=>{const _0x2ea794=_0x253f06;_0x1af503[_0x2ea794(0x3f8)]||=this[_0x2ea794(0x36a)]['t'](_0x2ea794(0x44f))+'\x20'+(_0x1f4249+0x1);});let _0x59d80c=this['createRuntimeChartStyle'](_0x4c0ca5,_0x20376a),_0x26cb19=(_0x162598=this[_0x253f06(0x2f3)][_0x253f06(0x401)](_0x3cb846[_0x253f06(0x216)]))==null?void 0x0:_0x162598[_0x253f06(0x469)]();(_0x26cb19==null?void 0x0:_0x26cb19[_0x253f06(0x36c)]())===_0x12bd77&&this['render'](_0x4c0ca5['id'],_0x2ab59c,_0x59d80c);},0x11);_0xff87e[_0x5d1b0b(0x46c)](_0x23d3af,_0x19b243);}return _0xff87e['get'](_0x23d3af);};this[_0x46aaee(0x237)](this[_0x46aaee(0x2f3)]['focused$'][_0x46aaee(0x32e)](_0x2685ce=>{const _0x432743=_0x46aaee;let _0x486d8e=this[_0x432743(0x2f3)][_0x432743(0x401)](_0x3cb846[_0x432743(0x216)]);if(_0x2685ce&&_0x486d8e&&_0x486d8e['getUnitId']()===_0x2685ce){var _0x8bca73;let _0x3fbcf6=_0x486d8e['getActiveSheet']()['getSheetId']();this[_0x432743(0x28c)]&&(this[_0x432743(0x28c)][_0x432743(0x1ee)]!==_0x2685ce||this[_0x432743(0x28c)][_0x432743(0x419)]!==_0x3fbcf6)&&this[_0x432743(0x362)](this['_lastActiveSheet'][_0x432743(0x1ee)],this[_0x432743(0x28c)][_0x432743(0x419)]),this[_0x432743(0x28c)]={'unitId':_0x2685ce,'subUnitId':_0x3fbcf6};let _0x4ccee8=this[_0x432743(0x4a9)]['getDrawingData'](_0x2685ce,_0x3fbcf6);if(!((_0x8bca73=this[_0x432743(0x410)][_0x432743(0x420)](_0x2685ce))!=null&&_0x8bca73['with'](_0x3b1fb0)[_0x432743(0x267)](_0x3fbcf6)))return;if(_0x4ccee8)for(let _0x21d90d in _0x4ccee8){let {drawingId:_0x316501}=_0x4ccee8[_0x21d90d],_0x3dd488=this[_0x432743(0x3c5)][_0x432743(0x3a4)](_0x316501);_0x3dd488&&_0x4c711b(_0x3dd488['id'])(_0x3dd488,_0x3fbcf6,_0x3dd488[_0x432743(0x42d)],this['_localeService'][_0x432743(0x403)]());}}})),this[_0x46aaee(0x237)](this['_themeService'][_0x46aaee(0x2ca)][_0x46aaee(0x32e)](()=>{const _0x99a76a=_0x46aaee;var _0x4f355a;let _0x4308f6=this[_0x99a76a(0x2f3)][_0x99a76a(0x401)](_0x3cb846[_0x99a76a(0x216)]);if(!_0x4308f6)return;let _0x5322d3=_0x4308f6[_0x99a76a(0x307)](),_0x9fa46e=_0x4308f6[_0x99a76a(0x469)]()[_0x99a76a(0x36c)](),_0x36d0ea=this['_drawingManagerService'][_0x99a76a(0x247)](_0x5322d3,_0x9fa46e);if((_0x4f355a=this[_0x99a76a(0x410)]['getRenderUnitById'](_0x5322d3))!=null&&_0x4f355a[_0x99a76a(0x300)](_0x3b1fb0)[_0x99a76a(0x267)](_0x9fa46e)&&_0x36d0ea)for(let _0x4d027e in _0x36d0ea){let {drawingId:_0x267d73}=_0x36d0ea[_0x4d027e],_0x2fda4b=this[_0x99a76a(0x3c5)][_0x99a76a(0x3a4)](_0x267d73);_0x2fda4b&&_0x4c711b(_0x2fda4b['id'])(_0x2fda4b,_0x9fa46e,_0x2fda4b[_0x99a76a(0x42d)],this['_localeService'][_0x99a76a(0x403)]());}})),this['disposeWithMe'](this[_0x46aaee(0x4a9)][_0x46aaee(0x4b1)][_0x46aaee(0x32e)](_0x2dbb86=>{_0x2dbb86['forEach'](_0x575da=>{const _0x3d4175=_0x20d6;var _0x32b739;let {drawingId:_0x463a15,unitId:_0x3f3d0c,subUnitId:_0x95ec73}=_0x575da,_0x2840ee=this[_0x3d4175(0x410)]['getRenderUnitById'](_0x3f3d0c);if((_0x2840ee==null?void 0x0:_0x2840ee[_0x3d4175(0x297)])!==_0x3cb846['UNIVER_SHEET']||!_0x2840ee[_0x3d4175(0x300)](_0x3b1fb0)['getSkeleton'](_0x95ec73))return;let {drawingType:_0x45c219}=this[_0x3d4175(0x4a9)][_0x3d4175(0x474)](_0x575da);if(_0x45c219!==_0x56b014[_0x3d4175(0x464)])return;let _0x49b3aa=this[_0x3d4175(0x2b0)]['getFloatDomInfo'](_0x463a15);this[_0x3d4175(0x347)](_0x463a15);let _0x3a6ab2=new _0x5f44fb();this[_0x3d4175(0x281)][_0x3d4175(0x46c)](_0x463a15,_0x3a6ab2);let _0x413f70=(_0x49b3aa==null?void 0x0:_0x49b3aa[_0x3d4175(0x2b3)])??_0x463a15,_0x24c88e=_0x49b3aa==null?void 0x0:_0x49b3aa[_0x3d4175(0x35e)],_0x3469ef=(_0x32b739=this['_renderManagerService']['getRenderUnitById'](_0x3f3d0c))==null?void 0x0:_0x32b739['scene'];if(_0x24c88e){let _0x1eb1a2=new Xr(_0x24c88e,_0x4171f1=>{const _0x4ca195=_0x3d4175;var _0x1133ed;let _0xb6621e=this[_0x4ca195(0x2f3)][_0x4ca195(0x401)](_0x3cb846[_0x4ca195(0x216)]);if((_0xb6621e==null?void 0x0:_0xb6621e['getUnitId']())===_0x3f3d0c&&((_0x1133ed=_0xb6621e['getActiveSheet']())==null?void 0x0:_0x1133ed['getSheetId']())===_0x95ec73&&(this[_0x4ca195(0x230)]['syncHostLayout'](_0x463a15),_0x4171f1)){var _0x4e3b72;(_0x4e3b72=this[_0x4ca195(0x295)][_0x4ca195(0x39d)](_0x463a15))==null||_0x4e3b72[_0x4ca195(0x391)](),this[_0x4ca195(0x1dc)](_0x463a15,{'width':_0x24c88e[_0x4ca195(0x3fd)],'height':_0x24c88e[_0x4ca195(0x452)]},0x64);}});_0x3a6ab2[_0x3d4175(0x237)](_0x1eb1a2),_0x3a6ab2[_0x3d4175(0x237)](this[_0x3d4175(0x2f3)][_0x3d4175(0x2d9)][_0x3d4175(0x32e)](()=>_0x1eb1a2[_0x3d4175(0x239)]())),_0x3469ef&&_0x3a6ab2[_0x3d4175(0x237)](_0x3469ef['getTransformerByCreate']()[_0x3d4175(0x428)][_0x3d4175(0x32e)](({objects:_0xc0c06e})=>{const _0x349bd2=_0x3d4175;if(_0xc0c06e[_0x349bd2(0x29a)](_0x24c88e[_0x349bd2(0x4c5)])){var _0x287d53;_0x1eb1a2['flush'](),(_0x287d53=this[_0x349bd2(0x320)][_0x349bd2(0x39d)](_0x463a15))==null||_0x287d53['flush']();}}));}_0x3469ef&&_0x3a6ab2[_0x3d4175(0x237)](_0x3469ef['onTransformChange$'][_0x3d4175(0x436)](_0x36eabc=>{const _0x55bae2=_0x3d4175;var _0x2706c4;_0x36eabc[_0x55bae2(0x297)]===_0x111a6e[_0x55bae2(0x475)]&&(_0x2706c4=document['getElementById'](_0x413f70))!=null&&_0x2706c4[_0x55bae2(0x2df)](_0x55bae2(0x35a))&&this[_0x55bae2(0x230)][_0x55bae2(0x48e)](_0x463a15);}));let _0x25dd12=this[_0x3d4175(0x3c5)][_0x3d4175(0x3a4)](_0x463a15);_0x25dd12&&_0x3a6ab2[_0x3d4175(0x237)](_0x491efe([_0x25dd12[_0x3d4175(0x446)],_0x25dd12[_0x3d4175(0x2b5)],this[_0x3d4175(0x36a)][_0x3d4175(0x319)]])[_0x3d4175(0x32e)](([_0x87630,_0x88d63b,_0x390b80])=>{_0x4c711b(_0x25dd12['id'])(_0x25dd12,_0x95ec73,_0x87630,_0x390b80);}));});})),this[_0x46aaee(0x237)](_0x491efe([this[_0x46aaee(0x4a9)][_0x46aaee(0x22f)]])[_0x46aaee(0x32e)](([_0xbeb2aa])=>{const _0x3a9987=_0x46aaee;_0xbeb2aa[_0x3a9987(0x330)](_0x4d1069=>{const _0xa7f54f=_0x3a9987;var _0x42138b;let {drawingId:_0x20cdf8}=_0x4d1069;this[_0xa7f54f(0x347)](_0x20cdf8),((_0x42138b=this[_0xa7f54f(0x3c5)]['activeChartModel'])==null?void 0x0:_0x42138b['id'])===_0x20cdf8&&this[_0xa7f54f(0x3c5)]['setActiveChartModel'](null),this[_0xa7f54f(0x2fc)](_0x20cdf8),this[_0xa7f54f(0x230)]['markHostNotReady'](_0x20cdf8),this[_0xa7f54f(0x21f)](_0x20cdf8),this[_0xa7f54f(0x309)](_0x20cdf8),this[_0xa7f54f(0x3d6)][_0xa7f54f(0x38f)](_0x20cdf8),this[_0xa7f54f(0x32c)](_0x20cdf8),this['_lastRenderInputMap'][_0xa7f54f(0x21b)](_0x20cdf8),this[_0xa7f54f(0x206)][_0xa7f54f(0x21b)](_0x20cdf8);});}));}['setElementEditMode'](_0x12ed3a,_0x2d1e99){const _0x2945a7=_0x69a5c7;var _0xe43610;_0x2d1e99?this[_0x2945a7(0x206)]['set'](_0x12ed3a,!0x0):this[_0x2945a7(0x206)]['delete'](_0x12ed3a),(_0xe43610=this[_0x2945a7(0x295)][_0x2945a7(0x39d)](_0x12ed3a))==null||_0xe43610['setElementEditMode'](_0x2d1e99);}async['exportImage'](_0x550388,_0x1af9f6){const _0x1af40d=_0x69a5c7;var _0x237f53;let _0x5237eb=this[_0x1af40d(0x3cb)][_0x1af40d(0x39d)](_0x550388),_0x15a0bb=(_0x237f53=this[_0x1af40d(0x2b0)][_0x1af40d(0x454)](_0x550388))==null?void 0x0:_0x237f53[_0x1af40d(0x35e)];if(_0x5237eb&&_0x15a0bb)return(await this[_0x1af40d(0x4b4)][_0x1af40d(0x352)]({'chartId':_0x550388,'config':_0x5237eb['config'],'style':_0x5237eb[_0x1af40d(0x338)],'width':_0x15a0bb[_0x1af40d(0x3fd)],'height':_0x15a0bb[_0x1af40d(0x452)]},_0x1af9f6))['dataUrl'];if((_0x1af9f6==null?void 0x0:_0x1af9f6[_0x1af40d(0x25c)])===_0x38cf3f['SVG'])return;let _0x196c50=this['_getCurrentSnapshotImage'](_0x550388);return _0x196c50?_0x2eb5b6(_0x196c50):void 0x0;}['on'](_0x3eb67e,_0x5093de,_0x25fbbe){const _0x3e8696=_0x69a5c7;let _0x441c3f=this[_0x3e8696(0x412)][_0x3e8696(0x39d)](_0x3eb67e);_0x441c3f||(_0x441c3f=new Map(),this[_0x3e8696(0x412)][_0x3e8696(0x46c)](_0x3eb67e,_0x441c3f));let _0x1217bc=_0x441c3f[_0x3e8696(0x39d)](_0x5093de);_0x1217bc||(_0x1217bc=new Set(),_0x441c3f[_0x3e8696(0x46c)](_0x5093de,_0x1217bc)),_0x1217bc[_0x3e8696(0x337)](_0x25fbbe);let _0x438876=this[_0x3e8696(0x295)]['get'](_0x3eb67e);return _0x438876&&this[_0x3e8696(0x349)](_0x3eb67e,_0x438876,_0x5093de,_0x25fbbe),{'dispose':()=>{const _0x508456=_0x3e8696;var _0x2f0925;(_0x2f0925=this[_0x508456(0x412)][_0x508456(0x39d)](_0x3eb67e))==null||(_0x2f0925=_0x2f0925[_0x508456(0x39d)](_0x5093de))==null||_0x2f0925[_0x508456(0x21b)](_0x25fbbe),this[_0x508456(0x1ec)](_0x3eb67e,_0x5093de,_0x25fbbe);}};}['_getCurrentSnapshotImage'](_0x32798b){const _0x18830c=_0x69a5c7;let _0x1c25e8=this[_0x18830c(0x2f3)][_0x18830c(0x401)](_0x3cb846[_0x18830c(0x216)]),_0x3e9fe7=_0x1c25e8==null?void 0x0:_0x1c25e8[_0x18830c(0x469)](),_0xba352d=_0x1c25e8==null?void 0x0:_0x1c25e8[_0x18830c(0x307)](),_0x157f64=_0x3e9fe7==null?void 0x0:_0x3e9fe7[_0x18830c(0x36c)]();if(_0xba352d&&_0x157f64)return this[_0x18830c(0x3d6)][_0x18830c(0x3bb)]({'unitId':_0xba352d,'subUnitId':_0x157f64,'chartId':_0x32798b});}[_0x69a5c7(0x3b6)](_0x5cb3dc,_0x30890e){const _0x25e868=_0x69a5c7;let _0x180eaf=this[_0x25e868(0x412)]['get'](_0x5cb3dc);_0x180eaf&&_0x180eaf['forEach']((_0x5725c3,_0x298eae)=>{const _0x3ac14d=_0x25e868;_0x5725c3['forEach'](_0x59576e=>this[_0x3ac14d(0x349)](_0x5cb3dc,_0x30890e,_0x298eae,_0x59576e));});}[_0x69a5c7(0x349)](_0x1df58f,_0x2250ff,_0x5b1adf,_0x141604){const _0x5045fb=_0x69a5c7;let _0x5c1b37=this['_chartEventSubscriptions'][_0x5045fb(0x39d)](_0x1df58f);_0x5c1b37||(_0x5c1b37=new Map(),this['_chartEventSubscriptions'][_0x5045fb(0x46c)](_0x1df58f,_0x5c1b37));let _0x2bbba4=_0x5c1b37[_0x5045fb(0x39d)](_0x5b1adf);_0x2bbba4||(_0x2bbba4=new Map(),_0x5c1b37['set'](_0x5b1adf,_0x2bbba4)),!_0x2bbba4[_0x5045fb(0x29a)](_0x141604)&&_0x2bbba4[_0x5045fb(0x46c)](_0x141604,_0x2250ff['on'](_0x5b1adf,_0x141604));}[_0x69a5c7(0x1ec)](_0x508db1,_0x2a323a,_0x397a21){const _0x5a430f=_0x69a5c7;var _0xd67d5,_0x583696;let _0xa1cbd5=(_0xd67d5=this[_0x5a430f(0x3e4)][_0x5a430f(0x39d)](_0x508db1))==null?void 0x0:_0xd67d5['get'](_0x2a323a);_0xa1cbd5==null||(_0x583696=_0xa1cbd5[_0x5a430f(0x39d)](_0x397a21))==null||_0x583696['dispose'](),_0xa1cbd5==null||_0xa1cbd5[_0x5a430f(0x21b)](_0x397a21);}['_disposeChartEventSubscriptions'](_0x2a977f){const _0x6c9cf4=_0x69a5c7;let _0x54a6b0=this['_chartEventSubscriptions'][_0x6c9cf4(0x39d)](_0x2a977f);_0x54a6b0==null||_0x54a6b0[_0x6c9cf4(0x330)](_0x2b8a4d=>{const _0x348b78=_0x6c9cf4;_0x2b8a4d[_0x348b78(0x330)](_0x380a48=>_0x380a48[_0x348b78(0x393)]()),_0x2b8a4d[_0x348b78(0x4bb)]();}),this['_chartEventSubscriptions'][_0x6c9cf4(0x21b)](_0x2a977f);}[_0x69a5c7(0x394)](_0x307ebe,_0x4520a0){return gi(_0x307ebe,_0x4520a0,this['_addWatermark']);}['checkChartCanRender'](_0x7346cc){const _0x3488a4=_0x69a5c7;return this[_0x3488a4(0x1da)](_0x7346cc)==null;}['_getChartRenderSkipReason'](_0xb5556){const _0x22f309=_0x69a5c7;var _0x59c620;let _0x36d7a3=this[_0x22f309(0x2b0)]['getFloatDomInfo'](_0xb5556);if(!_0x36d7a3)return _0x22f309(0x3d5);let {subUnitId:_0x55624b}=_0x36d7a3,_0x320afc=(_0x59c620=this[_0x22f309(0x2f3)][_0x22f309(0x401)](_0x3cb846[_0x22f309(0x216)]))==null?void 0x0:_0x59c620[_0x22f309(0x469)]();if(!_0x320afc)return _0x22f309(0x1dd);if(_0x320afc[_0x22f309(0x36c)]()!==_0x55624b)return _0x22f309(0x4c1);}async['render'](_0x5cc106,_0x46d8b7,_0x138183,_0x3a97de={}){const _0xc17145=_0x69a5c7;let _0x5dcba9=this[_0xc17145(0x4b4)][_0xc17145(0x3ef)](_0x22ce5a);if(!_0x5dcba9)return;let _0x251e9c=this[_0xc17145(0x3cb)][_0xc17145(0x39d)](_0x5cc106);if(this[_0xc17145(0x3cb)][_0xc17145(0x46c)](_0x5cc106,{'config':_0x46d8b7,'style':_0x138183}),this[_0xc17145(0x1da)](_0x5cc106))return;let {canAnimate:_0xa6b601,renderMode:_0x5a0325,shouldStartTransientAnimation:_0x5bede3,transientAnimationActive:_0x4ed532}=this['_prepareDataUpdateRender'](_0x5cc106,_0x251e9c!=null,_0x3a97de[_0xc17145(0x262)]===!0x0);if(_0x5a0325===_0x339cde[_0xc17145(0x49a)])this[_0xc17145(0x3b1)](_0x5cc106);else{var _0x18bf85;this['_chartHostProvider'][_0xc17145(0x3d3)](_0x5cc106),((_0x18bf85=this[_0xc17145(0x3c5)][_0xc17145(0x2c4)])==null?void 0x0:_0x18bf85['id'])===_0x5cc106&&this[_0xc17145(0x3be)](_0x5cc106);}let _0x25a676=_0x5a0325===_0x339cde[_0xc17145(0x49a)]?_0x339cde[_0xc17145(0x49a)]:_0x339cde[_0xc17145(0x212)],_0x3950d8=await this[_0xc17145(0x230)]['ensureHost'](_0x5cc106,_0x25a676);if(!_0x3950d8){_0x5bede3&&this[_0xc17145(0x1df)](_0x5cc106);return;}this[_0xc17145(0x230)][_0xc17145(0x25b)](_0x5cc106,_0x4ed532?_0x27627e:null);let _0x4a0e6a=this[_0xc17145(0x389)](_0x5cc106,_0x25a676,_0x5dcba9);_0x4a0e6a[_0xc17145(0x3a9)](_0x3950d8);try{let _0x37581a={'chartId':_0x5cc106,'config':_0x46d8b7,'style':_0x138183};_0xa6b601&&_0x251e9c&&_0x4a0e6a[_0xc17145(0x290)]?await _0x4a0e6a[_0xc17145(0x290)]({'chartId':_0x5cc106,'config':_0x251e9c[_0xc17145(0x42d)],'style':_0x251e9c[_0xc17145(0x338)]},_0x37581a,{'duration':_0x27627e}):await _0x4a0e6a[_0xc17145(0x36e)](_0x37581a),await this[_0xc17145(0x1fa)](_0x5cc106,_0x5a0325,_0x4a0e6a),_0xa6b601&&_0x4ed532&&this['_scheduleDataUpdateAnimationEnd'](_0x5cc106);}catch(_0x1ddd35){if(_0x5bede3&&this[_0xc17145(0x1df)](_0x5cc106),_0x5a0325!==_0x339cde[_0xc17145(0x49a)])throw _0x1ddd35;}}async[_0x69a5c7(0x1fa)](_0x21b259,_0xb83a3,_0x237477){const _0x38d20b=_0x69a5c7;var _0x89376c;if(_0xb83a3!==_0x339cde[_0x38d20b(0x212)]||((_0x89376c=this['_chartModelService']['activeChartModel'])==null?void 0x0:_0x89376c['id'])!==_0x21b259)return;let _0x2a478b=await this[_0x38d20b(0x230)][_0x38d20b(0x2d8)](_0x21b259,_0x339cde['Image']);if(!_0x2a478b)return;let _0x21e42a=_0x2a478b[_0x38d20b(0x2f1)]();try{let _0x3f4efc=await _0x237477[_0x38d20b(0x3fc)]();_0x3f4efc&&_0x2a478b['commitSnapshot']({'type':_0x5c1e70[_0x38d20b(0x408)],'url':_0x3f4efc},_0x21e42a)&&_0x2a478b[_0x38d20b(0x33b)]();}catch{}}[_0x69a5c7(0x2fe)](_0x606b94,_0x2ade13,_0x2acaa6){const _0x189e24=_0x69a5c7;let _0x5e1249=this[_0x189e24(0x3eb)](_0x606b94),_0x5a3414=_0x5e1249===_0x339cde[_0x189e24(0x212)]&&_0x2acaa6&&_0x2ade13&&this[_0x189e24(0x2ec)](_0x606b94),_0xdbd71b=this['_dataUpdateAnimationChartIds'][_0x189e24(0x29a)](_0x606b94);return{'canAnimate':_0x5a3414,'renderMode':_0xdbd71b?_0x339cde[_0x189e24(0x212)]:_0x5e1249,'shouldStartTransientAnimation':!0x1,'transientAnimationActive':_0xdbd71b};}['_canAnimateDataUpdate'](_0x3a8255){const _0x1b0411=_0x69a5c7;var _0xee76be,_0x307611,_0xd882c5,_0x3aca8d;if(typeof document>'u'||typeof window>'u'||document[_0x1b0411(0x2a6)]===_0x1b0411(0x2d5)||(_0xee76be=(_0x307611=window)[_0x1b0411(0x258)])!=null&&(_0xee76be=_0xee76be[_0x1b0411(0x4b0)](_0x307611,_0x1b0411(0x49c)))!=null&&_0xee76be['matches']||(_0xd882c5=(_0x3aca8d=window)[_0x1b0411(0x258)])!=null&&(_0xd882c5=_0xd882c5[_0x1b0411(0x4b0)](_0x3aca8d,_0x1b0411(0x486)))!=null&&_0xd882c5['matches'])return!0x1;let _0x1b580a=this[_0x1b0411(0x230)]['getHostClientRect'](_0x3a8255);return _0x1b580a!=null&&_0x1b580a[_0x1b0411(0x3fd)]>0x0&&_0x1b580a[_0x1b0411(0x452)]>0x0&&_0x1b580a[_0x1b0411(0x380)]>0x0&&_0x1b580a[_0x1b0411(0x2f6)]>0x0&&_0x1b580a[_0x1b0411(0x213)]<window[_0x1b0411(0x2fa)]&&_0x1b580a[_0x1b0411(0x3db)]<window[_0x1b0411(0x2bb)];}[_0x69a5c7(0x3c9)](_0x4848fd){const _0x3ec7e3=_0x69a5c7;let _0x36a7e9=this[_0x3ec7e3(0x273)][_0x3ec7e3(0x39d)](_0x4848fd);_0x36a7e9&&(clearTimeout(_0x36a7e9),this[_0x3ec7e3(0x273)]['delete'](_0x4848fd)),this[_0x3ec7e3(0x381)][_0x3ec7e3(0x337)](_0x4848fd),this[_0x3ec7e3(0x230)][_0x3ec7e3(0x25b)](_0x4848fd,_0x27627e);}['_scheduleDataUpdateAnimationEnd'](_0x26cab5){const _0x10edb8=_0x69a5c7;let _0x5e9683=this[_0x10edb8(0x273)][_0x10edb8(0x39d)](_0x26cab5);_0x5e9683&&clearTimeout(_0x5e9683);let _0x3d4cbd=setTimeout(()=>{const _0x448a20=_0x10edb8;this[_0x448a20(0x273)]['delete'](_0x26cab5),this[_0x448a20(0x381)][_0x448a20(0x21b)](_0x26cab5)&&(this['_chartHostProvider'][_0x448a20(0x25b)](_0x26cab5,null),this[_0x448a20(0x3b1)](_0x26cab5),this['_rerenderLatest'](_0x26cab5));},_0x27627e);this[_0x10edb8(0x273)][_0x10edb8(0x46c)](_0x26cab5,_0x3d4cbd);}[_0x69a5c7(0x1df)](_0x50002b){const _0x3d0be0=_0x69a5c7;let _0x4ed412=this[_0x3d0be0(0x273)]['get'](_0x50002b);_0x4ed412&&(clearTimeout(_0x4ed412),this['_dataUpdateAnimationTimers'][_0x3d0be0(0x21b)](_0x50002b)),this[_0x3d0be0(0x381)][_0x3d0be0(0x21b)](_0x50002b),this[_0x3d0be0(0x230)][_0x3d0be0(0x25b)](_0x50002b,null);}async[_0x69a5c7(0x2e5)](_0x37df5d,_0x134cec,_0x3b6c08){const _0x213f97=_0x69a5c7;let _0x490027=this[_0x213f97(0x4a9)]['getDrawingData'](_0x37df5d,_0x134cec),_0x556f86=this[_0x213f97(0x4a9)][_0x213f97(0x304)](_0x37df5d,_0x134cec),_0x1202db=Object[_0x213f97(0x42e)](_0x490027??{})['filter'](_0xb97c31=>_0xb97c31[_0x213f97(0x33f)]===_0x56b014[_0x213f97(0x464)]&&_0xb97c31[_0x213f97(0x2d5)]!==!0x0);await Promise[_0x213f97(0x303)](_0x1202db['map'](async _0x1fe160=>{const _0x3a724b=_0x213f97;let _0x306dc6=await this[_0x3a724b(0x463)](_0x1fe160,_0x556f86);_0x306dc6&&(_0x3b6c08[_0x3a724b(0x3bd)](_0x306dc6,_0x427904),_0x1fe160[_0x3a724b(0x457)]&&_0x55d117({'drawingId':_0x1fe160[_0x3a724b(0x457)],'unitId':_0x37df5d,'subUnitId':_0x134cec},_0x306dc6,_0x3b6c08,this[_0x3a724b(0x4a9)]));}));}async[_0x69a5c7(0x463)](_0x4ed422,_0xffed09){const _0x3c7463=_0x69a5c7;let _0x322ce6=this[_0x3c7463(0x3c5)]['getChartModel'](_0x4ed422[_0x3c7463(0x3c1)]),_0x24259e=this['_renderModelManager'][_0x3c7463(0x3ef)](_0x22ce5a),_0x9fc7b0=_0x4ed422[_0x3c7463(0x3c7)],_0x5eb018=_0x322ce6==null?void 0x0:_0x322ce6[_0x3c7463(0x42d)];if(!_0x322ce6||!_0x24259e||!_0x9fc7b0||!_0x5eb018||_0x9fc7b0[_0x3c7463(0x3fd)]==null||_0x9fc7b0['height']==null)return null;let _0x21cd2b=new hi(_0x4ed422[_0x3c7463(0x3c1)],{'width':_0x9fc7b0[_0x3c7463(0x3fd)],'height':_0x9fc7b0['height']}),_0x4dae3f=_0x24259e[_0x3c7463(0x42f)](_0x339cde[_0x3c7463(0x49a)],this[_0x3c7463(0x323)]());_0x4dae3f[_0x3c7463(0x3a9)](_0x21cd2b);let _0x3d7ad0;try{await _0x4dae3f[_0x3c7463(0x36e)]({'chartId':_0x4ed422[_0x3c7463(0x3c1)],'config':_0x5eb018,'style':this[_0x3c7463(0x394)](_0x322ce6,this[_0x3c7463(0x36a)][_0x3c7463(0x403)]())});}catch(_0x3b9a90){console[_0x3c7463(0x24c)]('[ChartRender]\x20Failed\x20to\x20render\x20chart\x20snapshot\x20for\x20printing',_0x3b9a90);}finally{_0x3d7ad0=_0x21cd2b[_0x3c7463(0x298)](),_0x4dae3f[_0x3c7463(0x393)](),_0x21cd2b[_0x3c7463(0x393)]();}let _0x25b9a9=this[_0x3c7463(0x3d6)]['getImage']({'unitId':_0x4ed422[_0x3c7463(0x1ee)],'subUnitId':_0x4ed422['subUnitId'],'chartId':_0x4ed422['drawingId']}),_0x2a4830=_0x3d7ad0??_0x25b9a9;if(!_0x2a4830)return null;let _0x16fcd0=_0xffed09[_0x3c7463(0x4ce)](_0x4ed422[_0x3c7463(0x3c1)]);return new ei(_0x558e11(_0x4ed422),{..._0x9fc7b0,..._0x235aca,...di(_0x21cd2b[_0x3c7463(0x338)]),'visible':!0x0,'zIndex':_0x16fcd0===-0x1?Math['max'](_0xffed09[_0x3c7463(0x44b)]-0x1,0x0):_0x16fcd0},()=>_0x2a4830,void 0x0,_0x3d7ad0?()=>G(_0x3d7ad0):void 0x0);}[_0x69a5c7(0x389)](_0x15d784,_0x56e6df,_0x2828fd){const _0x30c5e8=_0x69a5c7;let _0x13c5b6=this['_chartInstanceMap'][_0x30c5e8(0x39d)](_0x15d784);if((_0x13c5b6==null?void 0x0:_0x13c5b6['mode'])===_0x56e6df)return _0x13c5b6;_0x13c5b6&&(this[_0x30c5e8(0x2fc)](_0x15d784),_0x13c5b6[_0x30c5e8(0x393)](),this[_0x30c5e8(0x295)][_0x30c5e8(0x21b)](_0x15d784));let _0xa278cc=_0x2828fd['createChartInstance'](_0x56e6df,this[_0x30c5e8(0x323)]());return this['_chartInstanceMap'][_0x30c5e8(0x46c)](_0x15d784,_0xa278cc),_0xa278cc['setElementEditMode'](this['_chartElementEditMode'][_0x30c5e8(0x39d)](_0x15d784)===!0x0),this['_bindChartEventHandlers'](_0x15d784,_0xa278cc),_0xa278cc;}[_0x69a5c7(0x323)](){const _0x46ed39=_0x69a5c7;return{'resolveHostStyle':({style:_0x3bfcc9})=>_0x526b52({'style':_0x3bfcc9,'getRenderColor':_0x4f8c4e=>this[_0x46ed39(0x453)][_0x46ed39(0x270)](_0x4f8c4e)}),'resolveRenderBackgroundColor':({style:_0x76a169})=>this['_chartThemeService'][_0x46ed39(0x270)](_0xdd049b(_0x76a169))};}[_0x69a5c7(0x347)](_0x545ece){const _0x4f0fad=_0x69a5c7;var _0x2f27cb,_0x2a0377,_0x48a7d1;(_0x2f27cb=this[_0x4f0fad(0x281)][_0x4f0fad(0x39d)](_0x545ece))==null||_0x2f27cb[_0x4f0fad(0x393)](),this[_0x4f0fad(0x281)][_0x4f0fad(0x21b)](_0x545ece),(_0x2a0377=this['_renderDebounceMap'][_0x4f0fad(0x39d)](_0x545ece))==null||_0x2a0377[_0x4f0fad(0x440)](),this[_0x4f0fad(0x36b)][_0x4f0fad(0x21b)](_0x545ece),(_0x48a7d1=this[_0x4f0fad(0x320)][_0x4f0fad(0x39d)](_0x545ece))==null||_0x48a7d1[_0x4f0fad(0x440)](),this[_0x4f0fad(0x320)][_0x4f0fad(0x21b)](_0x545ece);}[_0x69a5c7(0x29f)](){const _0x99a8ac=_0x69a5c7;this[_0x99a8ac(0x36b)]['forEach'](_0x2f287c=>_0x2f287c['cancel']()),this[_0x99a8ac(0x36b)][_0x99a8ac(0x4bb)](),this[_0x99a8ac(0x320)][_0x99a8ac(0x330)](_0x30b7fe=>_0x30b7fe[_0x99a8ac(0x440)]()),this[_0x99a8ac(0x320)][_0x99a8ac(0x4bb)]();}[_0x69a5c7(0x393)](){const _0x576db9=_0x69a5c7;this[_0x576db9(0x281)]['forEach'](_0x436a02=>_0x436a02[_0x576db9(0x393)]()),this['_chartChangeSubscriptions']['clear'](),this['_dataUpdateAnimationTimers'][_0x576db9(0x330)](_0x5a2898=>clearTimeout(_0x5a2898)),this['_dataUpdateAnimationTimers']['clear'](),this[_0x576db9(0x381)]['clear'](),Array[_0x576db9(0x445)](this[_0x576db9(0x295)]['keys']())[_0x576db9(0x330)](_0x2a7706=>this[_0x576db9(0x309)](_0x2a7706)),this[_0x576db9(0x412)][_0x576db9(0x4bb)](),this[_0x576db9(0x206)]['clear'](),this[_0x576db9(0x29f)](),this[_0x576db9(0x3cb)]['clear'](),this[_0x576db9(0x2ad)]=null,this['_lastActiveSheet']=null,super[_0x576db9(0x393)]();}};J=q([K(0x0,pi),K(0x1,_0x345df3(_0x5a2ef7)),K(0x2,_0x345df3(_0xfc5243)),K(0x3,_0x6f6e55),K(0x4,_0x1534cf),K(0x5,_0x345df3(_0x3a5b98)),K(0x6,_0x345df3(_0x332fea)),K(0x7,_0x345df3(_0x21bd92)),K(0x8,_0x345df3(_0x56cc75)),K(0x9,_0x345df3(_0x596b6e)),K(0xa,_0x250254),K(0xb,_0x345df3(ii)),K(0xc,_0x4a6d3a)],J);const Y=_0x2e14a3(_0x69a5c7(0x263));let _i=class extends _0x1d0c18{constructor(_0x120c2b,_0x463b45,_0x4f0f5b,_0x24e979,_0x2a32b1){const _0x378319=_0x69a5c7;super(_0x2a32b1),this['_chartModelService']=_0x120c2b,this[_0x378319(0x2d2)]=_0x463b45,this['_commandService']=_0x4f0f5b,this['_univerInstanceService']=_0x24e979,W(this,'_rangeSelectMode',!0x1),W(this,_0x378319(0x316),new _0x4b7bf6(!0x1)),W(this,_0x378319(0x200),new _0x4b7bf6(null)),W(this,_0x378319(0x340),this[_0x378319(0x316)]['asObservable']()),W(this,_0x378319(0x35d),this[_0x378319(0x200)][_0x378319(0x473)]());}get[_0x69a5c7(0x497)](){const _0x235ceb=_0x69a5c7;return this[_0x235ceb(0x3c5)][_0x235ceb(0x2c4)]??null;}get[_0x69a5c7(0x43a)](){const _0x1e1d42=_0x69a5c7;return this[_0x1e1d42(0x316)][_0x1e1d42(0x335)]();}get['rangeSelectMode'](){return this['_rangeSelectMode'];}[_0x69a5c7(0x361)](_0x3746ef){this['_rangeSelectMode']=_0x3746ef;}[_0x69a5c7(0x220)](_0x189e38){const _0x45fe02=_0x69a5c7;this[_0x45fe02(0x316)][_0x45fe02(0x335)]()!==_0x189e38&&this[_0x45fe02(0x316)][_0x45fe02(0x2ab)](_0x189e38);}['isElementEditModeActive'](_0xfc875c){const _0x513630=_0x69a5c7;var _0x29c9c9;return this[_0x513630(0x43a)]&&((_0x29c9c9=this[_0x513630(0x3c5)][_0x513630(0x2c4)])==null?void 0x0:_0x29c9c9['id'])===_0xfc875c;}[_0x69a5c7(0x287)](_0x5404d8,_0x1ff901){const _0x4f0a51=_0x69a5c7;this[_0x4f0a51(0x200)]['next']({'chartId':_0x5404d8,'route':_0x1ff901});}[_0x69a5c7(0x225)](){const _0x64fe94=_0x69a5c7;this[_0x64fe94(0x200)][_0x64fe94(0x2ab)](null);}['setDataRange'](_0x2213f9){const _0x4e3aba=_0x69a5c7;let _0x560dca=this[_0x4e3aba(0x3c5)][_0x4e3aba(0x2c4)];_0x560dca&&this[_0x4e3aba(0x388)]({'chartModelId':_0x560dca['id'],'range':_0x2213f9});}[_0x69a5c7(0x2b2)](_0xe31ab8){const _0x40322d=_0x69a5c7;let _0x2a73cf=this[_0x40322d(0x3c5)][_0x40322d(0x2c4)];if(!_0x2a73cf)return;let _0x5d3ad9=this[_0x40322d(0x2d2)][_0x40322d(0x253)](_0x2a73cf['id']);if(!_0x5d3ad9||Array[_0x40322d(0x3c3)](_0x5d3ad9))return;let _0x170076={..._0x5d3ad9,'isRowDirection':_0xe31ab8===_0x364c6a[_0x40322d(0x3ae)]};this[_0x40322d(0x388)]({'chartModelId':_0x2a73cf['id'],'range':_0x170076});}[_0x69a5c7(0x429)](_0x368a84){const _0xb37410=_0x69a5c7;var _0x5cd94d;this[_0xb37410(0x465)][_0xb37410(0x37e)](_0x2ebcde['id'],{..._0x368a84,'unitId':((_0x5cd94d=this[_0xb37410(0x2f3)]['getFocusedUnit']())==null?void 0x0:_0x5cd94d[_0xb37410(0x307)]())??''});}['_executeChartUpdateSourceConfig'](_0xe621aa){const _0x200067=_0x69a5c7;var _0x36a5d3;this['_commandService'][_0x200067(0x37e)](_0x50e31b['id'],{..._0xe621aa,'unitId':((_0x36a5d3=this['_univerInstanceService'][_0x200067(0x451)]())==null?void 0x0:_0x36a5d3[_0x200067(0x307)]())??''});}['dispose'](){const _0x4c52e9=_0x69a5c7;this[_0x4c52e9(0x316)]['complete'](),this[_0x4c52e9(0x200)]['complete'](),super[_0x4c52e9(0x393)]();}};_i=q([K(0x0,_0x345df3(_0xfc5243)),K(0x1,_0x345df3(_0x186c61)),K(0x2,_0xb35996),K(0x3,_0x1534cf),K(0x4,_0x345df3(_0x45f903))],_i);var vi;const yi={'axis':{..._0x20a172,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x251037,'heatmap':_0x1d78a8,'indicatorLine':_0x5eae0d,'legend':_0x1eaeba,'lineAndArea':_0x432b2b,'pareto':_0x5540c1,'pie':_0x183bbc,'relation':{..._0x3ab465,'useValueAsSymbolSize':!0x0},'radar':_0x41c0bd,'series':{..._0x333ef3,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((vi=_0x497b2d[_0x69a5c7(0x25f)])==null?void 0x0:vi[_0x69a5c7(0x405)])??!0x1}},'style':_0x39d4a9,'titles':_0x1b6863,'trendline':_0x174c0d,'waterfallStyle':_0x58db5f,'wordCloud':_0x9f7cea},bi=_0x5df71c=>_0x5df71c[_0x69a5c7(0x401)](_0x3cb846['UNIVER_SHEET'])[_0x69a5c7(0x307)](),xi=_0x3b8f95=>{const _0x6ff558=_0x69a5c7;var _0x1610d1;return(_0x1610d1=_0x3b8f95[_0x6ff558(0x401)](_0x3cb846['UNIVER_SHEET'])[_0x6ff558(0x469)]())==null?void 0x0:_0x1610d1[_0x6ff558(0x36c)]();},Si=()=>{const _0x30354f=_0x69a5c7;var _0x1cdb60;let _0x387338=_0x29d6b7(Y),_0x53786c=_0x29d6b7(_0xfc5243),_0xc1fa65=_0x29d6b7(_0x332fea),_0x44671b=_0x29d6b7(_0x21bd92),_0x3926f5=_0x119e1e(_0x44671b),_0x7677fc=_0x6c0456(()=>{const _0xc954e1=_0x20d6;let _0x5a2410=Ir(Pr[_0xc954e1(0x461)](),_0x3926f5);return _0x2e6d09(_0x5a2410[_0xc954e1(0x44e)](_0x128bda=>({'id':_0x128bda['id'],'label':_0xc1fa65['t'](_0xc954e1(0x276)+_0x128bda[_0xc954e1(0x46e)]),'pieSecondaryPlotType':_0x128bda[_0xc954e1(0x3e6)],'value':_0x128bda[_0xc954e1(0x305)]})));},[_0x3926f5,_0xc1fa65]),_0x140dbe=_0x293efe(_0x53786c[_0x30354f(0x1e3)],_0x53786c['activeChartModel']),_0xecc06=_0x293efe(_0x140dbe==null?void 0x0:_0x140dbe[_0x30354f(0x205)],_0x140dbe==null?void 0x0:_0x140dbe['context']),_0x253ead=_0x293efe(_0x140dbe==null?void 0x0:_0x140dbe[_0x30354f(0x2b9)],_0x140dbe==null?void 0x0:_0x140dbe[_0x30354f(0x447)]),_0x4dec23=_0x293efe(_0x253ead==null?void 0x0:_0x253ead[_0x30354f(0x476)],_0x253ead==null?void 0x0:_0x253ead[_0x30354f(0x427)]()),_0x353b7a=Array[_0x30354f(0x3c3)](_0x4dec23),_0x2876d4=_0x4dec23&&!_0x353b7a&&_0x4dec23['isRowDirection']?_0x364c6a['Row']:_0x364c6a[_0x30354f(0x27d)],_0x2e7ca0=_0x353b7a?(_0x1cdb60=_0x4dec23[0x0])==null?void 0x0:_0x1cdb60[_0x30354f(0x4cc)]:_0x4dec23==null?void 0x0:_0x4dec23['rangeInfo'];return _0x1b1cd9(_0x30354f(0x382),{'className':_0x30354f(0x2d7),'children':[_0x39cd6c(_0x175816,{'chartTypeOptions':_0x7677fc,'dataSourceControl':_0x39cd6c(Ci,{'dataRange':_0x4dec23,'primaryRange':_0x2e7ca0}),'categoryToggleLabel':_0xc1fa65['t'](_0x30354f(0x4b6),_0x2876d4===_0x364c6a['Row']?_0x2876d4+'\x20'+(((_0x2e7ca0==null?void 0x0:_0x2e7ca0[_0x30354f(0x4cc)][_0x30354f(0x272)])??0x0)+0x1):_0x2876d4+'\x20'+_0x29488d((_0x2e7ca0==null?void 0x0:_0x2e7ca0['range'][_0x30354f(0x3d9)])??0x0)),'orientationControl':_0x353b7a?void 0x0:_0x39cd6c(_0x43a6c9,{'size':'small','onClick':()=>_0x387338[_0x30354f(0x2b2)](_0x2876d4===_0x364c6a[_0x30354f(0x3ae)]?_0x364c6a[_0x30354f(0x27d)]:_0x364c6a[_0x30354f(0x3ae)]),'children':_0xc1fa65['t'](_0x30354f(0x43d))})}),_0x39cd6c(_0x134911,{'checked':(_0xecc06==null?void 0x0:_0xecc06['plotVisibleOnly'])===!0x1,'disabled':!_0x140dbe,'onChange':_0x5b8b55=>{const _0x4e1200=_0x30354f;_0x140dbe&&_0x387338[_0x4e1200(0x429)]({'chartModelId':_0x140dbe['id'],'context':{'plotVisibleOnly':!_0x5b8b55}});},'children':_0xc1fa65['t'](_0x30354f(0x278))})]});};function Ci(_0x34d76d){const _0x10de99=_0x69a5c7;let {dataRange:_0x5e476b,primaryRange:_0x36ac63}=_0x34d76d,_0x35dfc6=_0x29d6b7(Y),_0x4c6043=_0x29d6b7(_0x332fea),_0x136a20=_0x29d6b7(_0x1534cf),_0x59f8a4=_0x29d6b7(_0x3387ab),[_0x1c22e2,_0x21d24a]=_0x11eb2f(!0x1),[_0x10f806,_0x299707]=_0x11eb2f(!0x1),[_0x32cdbc,_0x36b3c4]=_0x11eb2f(),_0x18d492=bi(_0x136a20),_0xee25fc=xi(_0x136a20),_0x212987=_0x5e476b?Mr(_0x5e476b,_0x136a20):'',_0xb96d67=_0x3ebae9(_0x212987),_0xac6b72=_0x3ebae9(void 0x0),_0x17e40c=_0x3ebae9(null);_0x434cb3(()=>{const _0x271b58=_0x20d6;_0x35dfc6['setRangeSelectMode'](_0x1c22e2),_0x59f8a4[_0x271b58(0x36d)](_0x2d0220,_0x1c22e2);},[_0x59f8a4,_0x1c22e2,_0x35dfc6]),_0x434cb3(()=>()=>{const _0x333a19=_0x20d6;_0x35dfc6[_0x333a19(0x361)](!0x1),_0x59f8a4[_0x333a19(0x36d)](_0x2d0220,!0x1);},[_0x59f8a4,_0x35dfc6]);let _0x1718c2=_0x16d356(_0x2e274c=>{const _0x4b7e54=_0x20d6;var _0x280631;if(Mr(_0x5e476b,_0x136a20)===_0x2e274c)return _0x36b3c4(void 0x0),!0x0;let _0x2aa6e8=_0x2e274c[_0x4b7e54(0x39b)](_0x477ba7[_0x4b7e54(0x274)]);if(!_0x2e274c['trim']()||_0x2aa6e8[_0x4b7e54(0x44b)]!==0x1||!((_0x280631=_0x17e40c[_0x4b7e54(0x277)])!=null&&_0x280631[_0x4b7e54(0x27a)]()))return _0x36b3c4(_0x4c6043['t']('sheets-chart-ui.common.invalidDataRange')),!0x1;let {unitId:_0xe95e0e,sheetName:_0x5663c8,range:_0x386536}=_0x77b34e(_0x2aa6e8[0x0]),_0x1a6966=_0xe95e0e||_0x18d492,_0x53b379=_0x136a20[_0x4b7e54(0x49d)](_0x1a6966),_0x15a0b5=(_0x36ac63==null?void 0x0:_0x36ac63[_0x4b7e54(0x1ee)])===_0x1a6966?_0x36ac63[_0x4b7e54(0x419)]:_0xee25fc,_0x7acccd=_0x5663c8?_0x53b379==null?void 0x0:_0x53b379['getSheetBySheetName'](_0x5663c8):_0x53b379==null?void 0x0:_0x53b379[_0x4b7e54(0x460)](_0x15a0b5??'');return!_0x53b379||!_0x7acccd||!_0x409d0d(_0x386536,_0x7acccd)?(_0x36b3c4(_0x4c6043['t']('sheets-chart-ui.common.invalidDataRange')),!0x1):(_0x36b3c4(void 0x0),_0x35dfc6[_0x4b7e54(0x3dc)]({'rangeInfo':{'range':_0x386536,'unitId':_0x1a6966,'subUnitId':_0x7acccd['getSheetId']()}}),!0x0);},[_0x5e476b,_0x4c6043,_0x36ac63,_0x35dfc6,_0xee25fc,_0x18d492,_0x136a20]),_0x2d8150=_0x6c0456(()=>({'keyCodes':[{'keyCode':_0x26f9ff['ENTER'],'nativeTextEditorBehavior':_0x958064[_0x10de99(0x3ff)]}],'handler':_0x26e01d=>{const _0x1344b0=_0x10de99;_0x26e01d===_0x26f9ff[_0x1344b0(0x219)]&&_0x1718c2(_0xb96d67[_0x1344b0(0x277)])&&(_0xac6b72[_0x1344b0(0x277)]=_0xb96d67[_0x1344b0(0x277)]);}}),[_0x1718c2]);return _0x39cd6c(_0x10de99(0x382),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':_0x1b1cd9(_0x10de99(0x382),{'children':[_0x39cd6c(_0x33cfc0,{'title':_0x4c6043['t'](_0x10de99(0x2cf))}),_0x39cd6c(_0x1f1e9d,{'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'maxRangeCount':0x1,'unitId':_0x18d492,'subUnitId':_0xee25fc,'initialValue':_0x212987,'keyboardEventConfig':_0x2d8150,'selectorRef':_0x17e40c,'onChange':(_0xa3c587,_0x2ebc1a)=>{const _0x4da76a=_0x10de99;_0xb96d67[_0x4da76a(0x277)]=_0x2ebc1a,_0x10f806&&_0xac6b72[_0x4da76a(0x277)]!==_0x2ebc1a&&_0x1718c2(_0x2ebc1a)&&(_0xac6b72[_0x4da76a(0x277)]=_0x2ebc1a);},'onFocusChange':(_0x5c950e,_0x21281a)=>{const _0x19492e=_0x10de99;if(_0x21281a!==void 0x0&&(_0xb96d67['current']=_0x21281a),_0x10f806||_0x21d24a(_0x5c950e),_0x5c950e)_0xac6b72['current']=_0xb96d67[_0x19492e(0x277)];else{let _0x5aafe7=_0xac6b72['current'];_0xac6b72[_0x19492e(0x277)]=void 0x0,_0x5aafe7!==void 0x0&&_0xb96d67['current']!==_0x5aafe7&&_0x1718c2(_0xb96d67[_0x19492e(0x277)]);}},'onRangeSelectorDialogVisibleChange':_0x20c499=>{_0x299707(_0x20c499),_0x21d24a(_0x20c499);}}),_0x32cdbc?_0x39cd6c(_0x10de99(0x382),{'className':_0x10de99(0x441),'children':_0x32cdbc}):null]})});}function X(_0x35d15f){const _0x586b66=_0x69a5c7;return _0x1b1cd9(_0x23cb6b,{'id':_0x35d15f['id'],'children':[_0x39cd6c(_0x2305ff,{'children':_0x35d15f[_0x586b66(0x386)]}),_0x39cd6c(_0x511db8,{'children':_0x35d15f['children']})]});}const wi=_0x76abbe=>{const _0x286724=_0x69a5c7;let _0x59d10c=_0x29d6b7(_0x332fea),_0x2e4cf6=_0x29d6b7(Y),_0x2f8c0c=_0x29d6b7(_0xfc5243),_0x2a1bfc=_0x293efe(_0x2f8c0c[_0x286724(0x1e3)],_0x2f8c0c[_0x286724(0x2c4)]),_0x7b4c07=_0x293efe(_0x2e4cf6[_0x286724(0x35d)],null),_0x42c619=_0x7b4c07&&_0x7b4c07[_0x286724(0x3ed)]===(_0x2a1bfc==null?void 0x0:_0x2a1bfc['id'])?_0x7b4c07[_0x286724(0x3a6)]:null,_0x4ac77d=_0x16eed1(),_0xffdabd=_0x3640db(),[_0x48aa8d,_0x3a6ae6]=_0x11eb2f(null);_0x434cb3(()=>{const _0x10c90f=_0x286724;_0x42c619!=null&&_0x42c619[_0x10c90f(0x4cb)]&&_0x3a6ae6(_0x42c619[_0x10c90f(0x4cb)]);},[_0x42c619]);let _0x10d0f1=_0x8e9e65['baseOn'](_0x4ac77d,_0x5c9c9b['Pie']),_0xaed0f2=_0x4ac77d===_0x5c9c9b[_0x286724(0x4c4)],_0x73c5da=_0x4ac77d===_0x5c9c9b['WordCloud'],_0x5aa833=_0x4ac77d===_0x5c9c9b[_0x286724(0x4b2)],_0x3cf643=_0x8e9e65[_0x286724(0x411)](_0x4ac77d,_0x5c9c9b[_0x286724(0x2a9)]),_0x568647=_0x4ac77d===_0x5c9c9b['Relation'],_0x2e2c81=_0x4ac77d===_0x5c9c9b[_0x286724(0x1fc)],_0x400449=_0x4ac77d===_0x5c9c9b['Pareto'],_0x22b9f9=_0x4ac77d===_0x5c9c9b[_0x286724(0x433)],_0x5bec6e,_0x5d8a72;switch(_0x4ac77d){case _0x5c9c9b[_0x286724(0x32f)]:_0x5bec6e=_0x189941[_0x286724(0x32f)],_0x5d8a72=_0x59d10c['t'](_0x286724(0x4af));break;case _0x5c9c9b[_0x286724(0x38a)]:_0x5bec6e=_0x189941[_0x286724(0x38a)],_0x5d8a72=_0x59d10c['t'](_0x286724(0x442));break;case _0x5c9c9b[_0x286724(0x4b7)]:_0x5bec6e=_0x189941['Treemap'],_0x5d8a72=_0x59d10c['t'](_0x286724(0x370));break;case _0x5c9c9b[_0x286724(0x45f)]:_0x5bec6e=_0x189941[_0x286724(0x45f)],_0x5d8a72=_0x59d10c['t']('sheets-chart-ui.section.sunburst');break;case _0x5c9c9b[_0x286724(0x210)]:_0x5bec6e=_0x189941[_0x286724(0x210)],_0x5d8a72=_0x59d10c['t'](_0x286724(0x32a));break;case _0x5c9c9b[_0x286724(0x489)]:_0x5bec6e=_0x189941['Chord'],_0x5d8a72=_0x59d10c['t'](_0x286724(0x20d));}let _0x26b438=_0x348fa8(_0x4ac77d,_0x2b2428[_0x286724(0x354)])&&!_0x3cf643&&!_0x400449;return _0x1b1cd9(_0x305079,{'value':_0x48aa8d,'onChange':_0x3a6ae6,'children':[_0x39cd6c(X,{'id':_0x189941[_0x286724(0x32b)],'label':_0x59d10c['t'](_0x286724(0x41d)),'children':_0x39cd6c(_0x933573,{'defaultValues':_0x76abbe[_0x286724(0x284)]['style']})}),_0x39cd6c(X,{'id':_0x189941[_0x286724(0x22a)],'label':_0x59d10c['t'](_0x286724(0x2fb)),'children':_0x39cd6c(_0x517690,{'commitMode':'blur','defaultValues':_0x76abbe[_0x286724(0x284)]['titles'],'selectedTitleKey':_0x42c619==null?void 0x0:_0x42c619[_0x286724(0x2bc)]})}),_0x39cd6c(_0x3e41f1,{'section':'view'}),_0x26b438&&_0x39cd6c(X,{'id':_0x189941[_0x286724(0x4cd)],'label':_0x59d10c['t'](_0x286724(0x291)),'children':_0x39cd6c(_0x594dcf,{'defaultValues':_0x76abbe[_0x286724(0x284)][_0x286724(0x415)],'NumberFormatField':_0x16c936,'selectedSeriesId':_0x42c619==null?void 0x0:_0x42c619[_0x286724(0x3fe)]})}),_0x2e2c81&&_0x39cd6c(X,{'id':_0x189941[_0x286724(0x3af)],'label':_0x59d10c['t'](_0x286724(0x2f9)),'children':_0x39cd6c(_0x5c7b23,{'defaultValues':_0x76abbe[_0x286724(0x284)][_0x286724(0x448)],'getDefaultBucketName':({seriesName:_0x2ca76d,target:_0x2ea408})=>_0x2ea408===_0x165144['Subtotal']?_0x59d10c['t'](_0x286724(0x3fa)):_0x2ca76d?_0x2ca76d+'-('+_0x59d10c['t'](_0x2ea408===_0x165144[_0x286724(0x308)]?'sheets-chart-ui.waterfall.positive':_0x286724(0x1e2))+')':'','NumberFormatField':_0x16c936,'selectedSeriesId':_0x42c619==null?void 0x0:_0x42c619[_0x286724(0x3fe)]})}),_0x400449&&_0x1b1cd9(_0x4328e0,{'children':[_0x39cd6c(X,{'id':_0x189941[_0x286724(0x28b)],'label':_0x59d10c['t'](_0x286724(0x3c2)),'children':_0x39cd6c(_0x388c4c,{'defaultValues':_0x76abbe[_0x286724(0x284)]['pareto'],'NumberFormatField':_0x16c936,'showDataPointEditor':!0x0,'target':_0x286724(0x45d)})}),_0x39cd6c(X,{'id':_0x189941[_0x286724(0x33c)],'label':_0x59d10c['t'](_0x286724(0x459)),'children':_0x39cd6c(_0x388c4c,{'defaultValues':_0x76abbe[_0x286724(0x284)][_0x286724(0x20e)],'NumberFormatField':_0x16c936,'showDataPointEditor':!0x1,'target':_0x286724(0x498)})})]}),_0x10d0f1&&_0x39cd6c(X,{'id':_0x189941[_0x286724(0x1ed)],'label':_0x59d10c['t'](_0x286724(0x4a2)),'children':_0x39cd6c(_0x4d83dd,{'defaultValues':_0x76abbe[_0x286724(0x284)][_0x286724(0x4a6)],'NumberFormatField':_0x16c936})}),_0x73c5da&&_0x39cd6c(X,{'id':_0x189941['WordCloud'],'label':_0x59d10c['t'](_0x286724(0x379)),'children':_0x39cd6c(_0x28e719,{'defaultValues':_0x76abbe[_0x286724(0x284)][_0x286724(0x2ce)]})}),_0xaed0f2&&_0x39cd6c(X,{'id':_0x189941[_0x286724(0x4c4)],'label':_0x59d10c['t'](_0x286724(0x383)),'children':_0x39cd6c(_0x33c557,{'defaultValues':_0x76abbe[_0x286724(0x284)][_0x286724(0x1e5)]})}),_0x5aa833&&_0x39cd6c(X,{'id':_0x189941[_0x286724(0x4b2)],'label':_0x59d10c['t'](_0x286724(0x45c)),'children':_0x39cd6c(_0x15c403,{'defaultValues':_0x76abbe[_0x286724(0x284)]['funnel'],'gapControl':'select'})}),_0x22b9f9&&_0x39cd6c(X,{'id':_0x189941[_0x286724(0x433)],'label':_0x59d10c['t'](_0x286724(0x49b)),'children':_0x39cd6c(_0x54df14,{'defaultValues':_0x76abbe[_0x286724(0x284)][_0x286724(0x367)]})}),_0x568647&&_0x39cd6c(X,{'id':_0x189941[_0x286724(0x22c)],'label':_0x59d10c['t'](_0x286724(0x30a)),'children':_0x39cd6c(_0x3e4c84,{'defaultValues':_0x76abbe['defaultValues'][_0x286724(0x2d4)]})}),_0x23d2ec(_0x4ac77d)&&_0x39cd6c(X,{'id':_0x189941[_0x286724(0x47e)],'label':_0x59d10c['t'](_0x8e9e65['baseOn'](_0x4ac77d,_0x5c9c9b[_0x286724(0x283)])?'sheets-chart-ui.chartTypes.area':_0x286724(0x40b)),'children':_0x39cd6c(_0x20f957,{'defaultValues':_0x76abbe[_0x286724(0x284)]['lineAndArea'],'lineStyleControl':_0x286724(0x224)})}),_0x348fa8(_0x4ac77d,_0x2b2428[_0x286724(0x44c)])&&_0x39cd6c(X,{'id':_0x189941[_0x286724(0x44c)],'label':_0x59d10c['t'](_0x286724(0x2e8)),'children':_0x39cd6c(_0x52cf08,{'defaultValues':_0x76abbe['defaultValues'][_0x286724(0x4c8)]})}),_0x348fa8(_0x4ac77d,_0x2b2428[_0x286724(0x462)])&&_0x1b1cd9(_0x4328e0,{'children':[_0x39cd6c(X,{'id':_0x189941[_0x286724(0x488)],'label':_0x59d10c['t'](_0x286724(0x3f1)),'children':_0x39cd6c(_0x511d6a,{'axis':'x','defaultValues':_0x76abbe[_0x286724(0x284)][_0x286724(0x3b8)],'NumberFormatField':_0x16c936})}),_0x39cd6c(X,{'id':_0x189941[_0x286724(0x38b)],'label':_0x59d10c['t'](_0x286724(0x2c7)),'children':_0x39cd6c(_0x511d6a,{'axis':'y','defaultValues':_0x76abbe[_0x286724(0x284)][_0x286724(0x3b8)],'NumberFormatField':_0x16c936})}),_0x39cd6c(_0x3e41f1,{'section':'depthAxis'}),_0xffdabd&&_0x39cd6c(X,{'id':_0x189941[_0x286724(0x42a)],'label':_0x59d10c['t'](_0x286724(0x4c7)),'children':_0x39cd6c(_0x511d6a,{'axis':_0x286724(0x40f),'defaultValues':_0x76abbe['defaultValues'][_0x286724(0x3b8)],'NumberFormatField':_0x16c936})}),_0x39cd6c(X,{'id':_0x189941[_0x286724(0x2a0)],'label':_0x59d10c['t'](_0x286724(0x417)),'children':_0x39cd6c(_0x4f0962,{'defaultValues':_0x76abbe[_0x286724(0x284)][_0x286724(0x3b8)]})})]}),_0x348fa8(_0x4ac77d,_0x2b2428[_0x286724(0x29d)])&&_0x39cd6c(X,{'id':_0x189941[_0x286724(0x29d)],'label':_0x59d10c['t'](_0x286724(0x326)),'children':_0x39cd6c(_0x5188b5,{'defaultValues':_0x76abbe[_0x286724(0x284)]['indicatorLine']})}),_0x3af596(_0x4ac77d)&&_0x39cd6c(X,{'id':_0x189941[_0x286724(0x41a)],'label':_0x59d10c['t'](_0x286724(0x46b)),'children':_0x39cd6c(_0x37fa4b,{'defaultValues':_0x76abbe[_0x286724(0x284)][_0x286724(0x39a)]})}),_0x5bec6e&&_0x5d8a72&&_0x39cd6c(X,{'id':_0x5bec6e,'label':_0x5d8a72,'children':_0x39cd6c(_0x49c80e,{})})]});};function Ti(_0x309141){const _0x5d9864=_0x69a5c7;let {className:_0x157d8c}=_0x309141,[_0x4071f7,_0x105da6]=_0x11eb2f(_0x1f97c4[_0x5d9864(0x2e7)]),_0x42c6c9=_0x29d6b7(_0x21bd92),_0x38266b=_0x29d6b7(_0x332fea),_0x2e7d68=_0x29d6b7(Y),_0x5c2ce2=_0x29d6b7(_0xfc5243),_0x51bb0e=_0x29d6b7(_0x186c61),_0x5b3dbf=_0x293efe(_0x5c2ce2[_0x5d9864(0x1e3)],_0x5c2ce2['activeChartModel']),_0x4d383a=_0x293efe(_0x2e7d68['panelRoute$'],null),_0x3ce571=_0x6c0456(()=>{const _0x1fdf4f=_0x5d9864;var _0x218133;if(!_0x5b3dbf)return null;let _0x552845=_0x51bb0e['getChartSourceSpec'](_0x5b3dbf['id']);if(!_0x552845)return null;let _0x264246=Array[_0x1fdf4f(0x3c3)](_0x552845)?(_0x218133=_0x552845[0x0])==null?void 0x0:_0x218133[_0x1fdf4f(0x4cc)]:_0x552845['rangeInfo'];return _0x264246?new _0x68520(_0x5b3dbf,new _0x3bea97({'unitId':_0x264246['unitId'],'subUnitId':_0x264246['subUnitId'],'chartId':_0x5b3dbf['id'],'injector':_0x42c6c9})):null;},[_0x5b3dbf,_0x42c6c9,_0x51bb0e]);if(_0x434cb3(()=>{const _0x2e66a6=_0x5d9864;var _0x1ec939,_0x34e43b;_0x5b3dbf&&(_0x4d383a==null?void 0x0:_0x4d383a[_0x2e66a6(0x3ed)])===_0x5b3dbf['id']&&(((_0x1ec939=_0x4d383a['route'])==null?void 0x0:_0x1ec939[_0x2e66a6(0x37a)])===_0x1f97c4[_0x2e66a6(0x4ba)]&&_0x105da6(_0x1f97c4[_0x2e66a6(0x4ba)]),((_0x34e43b=_0x4d383a[_0x2e66a6(0x3a6)])==null?void 0x0:_0x34e43b['tab'])===_0x1f97c4['Data']&&_0x105da6(_0x1f97c4[_0x2e66a6(0x2e7)]));},[_0x5b3dbf,_0x4d383a]),!_0x3ce571)return null;let _0x33f071=_0x39cd6c(_0x5d9864(0x382),{'className':_0x5d9864(0x2d0)+(_0x4071f7===_0x1f97c4[_0x5d9864(0x4ba)]?_0x5d9864(0x322):'univer-overflow-hidden')+_0x5d9864(0x353)+(_0x157d8c??'')+_0x5d9864(0x215),'children':_0x39cd6c(_0x2aef1e,{'ariaLabel':_0x38266b['t'](_0x5d9864(0x484)),'activeTab':_0x4071f7,'onTabChange':_0x105da6,'tabListClassName':_0x5d9864(0x3e7),'panelClassName':_0x4071f7===_0x1f97c4['Style']?'-univer-mx-4':void 0x0,'tabs':[{'id':_0x1f97c4['Data'],'panelId':Di,'title':_0x38266b['t']('sheets-chart-ui.common.setup'),'content':_0x39cd6c(Si,{})},{'id':_0x1f97c4[_0x5d9864(0x4ba)],'panelId':Oi,'title':_0x38266b['t'](_0x5d9864(0x31d)),'content':_0x39cd6c(wi,{'defaultValues':yi})}]})});return _0x39cd6c(_0xbe9ad0,{'chartUIService':_0x2e7d68,'hostAdapter':_0x3ce571,'children':_0x33f071});}const Ei=_0x69a5c7(0x310),Di=_0x69a5c7(0x49e),Oi=_0x69a5c7(0x1fd);function ki(_0xc85eb3){const _0x1b9431=_0x69a5c7;return _0xc85eb3[_0x1b9431(0x44b)]===0x1&&Ai(_0xc85eb3[0x0]);}function Ai(_0x2a24ba){const _0x10fbae=_0x69a5c7;return(_0x2a24ba==null?void 0x0:_0x2a24ba[_0x10fbae(0x33f)])===_0x56b014[_0x10fbae(0x464)]&&!_0x2a24ba[_0x10fbae(0x457)];}function _0x20d6(_0x353d82,_0x920d49){_0x353d82=_0x353d82-0x1da;const _0xfb2565=_0xfb25();let _0x20d6ef=_0xfb2565[_0x353d82];return _0x20d6ef;}let ji=class extends _0x5f44fb{constructor(_0x44bc71,_0x28fd02,_0x47631a,_0x5cdb57,_0x2a81b4,_0x595ee7,_0x2e9025,_0x3ad24a,_0x188410,_0x83dac8,_0x4a89c9,_0x3094d4,_0x3bc394,_0x184017,_0x5e64da){const _0x17edb8=_0x69a5c7;var _0x47f7a7;super(),this[_0x17edb8(0x4a9)]=_0x44bc71,this[_0x17edb8(0x2f3)]=_0x28fd02,this[_0x17edb8(0x3c5)]=_0x47631a,this[_0x17edb8(0x2d2)]=_0x5cdb57,this[_0x17edb8(0x1e7)]=_0x2a81b4,this['_sheetDrawingHitTestService']=_0x595ee7,this[_0x17edb8(0x3ec)]=_0x2e9025,this[_0x17edb8(0x1f5)]=_0x3ad24a,this['_sheetCanvasFloatDomManagerService']=_0x188410,this[_0x17edb8(0x299)]=_0x83dac8,this['_commandService']=_0x4a89c9,this[_0x17edb8(0x2c3)]=_0x3094d4,this[_0x17edb8(0x202)]=_0x3bc394,this[_0x17edb8(0x36a)]=_0x184017,W(this,_0x17edb8(0x246),null),W(this,'_isChartElementEditEnabled',void 0x0),this['_isChartElementEditEnabled']=((_0x47f7a7=_0x5e64da[_0x17edb8(0x23d)](_0x17edb8(0x4b3)))==null?void 0x0:_0x47f7a7[_0x17edb8(0x359)])===!0x0,this[_0x17edb8(0x261)](),this[_0x17edb8(0x237)](this['_univerInstanceService'][_0x17edb8(0x3ab)](_0x3cb846[_0x17edb8(0x216)])[_0x17edb8(0x32e)](_0x46ddb5=>{var _0xe10e1e;_0x46ddb5||(_0xe10e1e=this['_sidebarDisposable'])==null||_0xe10e1e['dispose']();})),this[_0x17edb8(0x237)](_0x354ba0(this[_0x17edb8(0x3ac)][_0x17edb8(0x496)][_0x17edb8(0x32e)](async({drawing:_0xb40361})=>{await this['_handleDrawingDoubleClick'](_0xb40361);})));}[_0x69a5c7(0x3d2)](){const _0x64d715=_0x69a5c7;this[_0x64d715(0x246)]=this[_0x64d715(0x3ec)][_0x64d715(0x48d)]({'id':Ei,'header':{'title':this[_0x64d715(0x36a)]['t'](_0x64d715(0x484))},'width':0x154,'children':{'label':Ei},'onClose':()=>{const _0x19ac66=_0x64d715;this[_0x19ac66(0x246)]=null,this[_0x19ac66(0x271)](),this[_0x19ac66(0x3c5)][_0x19ac66(0x2c4)]&&this['_chartModelService'][_0x19ac66(0x259)](null),this[_0x19ac66(0x4a9)][_0x19ac66(0x414)](null),this[_0x19ac66(0x202)][_0x19ac66(0x36d)](_0x23d889,!0x1);}});}[_0x69a5c7(0x402)](){const _0x1f57df=_0x69a5c7;let _0x3ff78e=this[_0x1f57df(0x246)];this['_sidebarDisposable']=null,this[_0x1f57df(0x271)](),this[_0x1f57df(0x3c5)]['activeChartModel']&&this[_0x1f57df(0x3c5)][_0x1f57df(0x259)](null),_0x3ff78e==null||_0x3ff78e[_0x1f57df(0x393)]();}[_0x69a5c7(0x26b)](){const _0x322b3a=_0x69a5c7;let _0x23b7c4=this['_univerInstanceService'][_0x322b3a(0x401)](_0x3cb846[_0x322b3a(0x216)]);this[_0x322b3a(0x237)](this[_0x322b3a(0x3ec)]['sidebarOptions$'][_0x322b3a(0x32e)](_0x5318fd=>{const _0x43eecd=_0x322b3a;_0x5318fd['id']===_0x43eecd(0x310)&&(_0x5318fd[_0x43eecd(0x2c0)]||this[_0x43eecd(0x3ec)]['sidebarOptions$'][_0x43eecd(0x2ab)]({'visible':!0x1}));})),this[_0x322b3a(0x237)](_0x491efe([this[_0x322b3a(0x3c5)]['activeChartModel$'],this['_sheetsChartUIService'][_0x322b3a(0x340)]])[_0x322b3a(0x2b7)](_0x398f6c(([_0x458225,_0x47d2a2])=>_0x47d2a2?(_0x458225==null?void 0x0:_0x458225['id'])??null:null),_0x4ad411(),_0x453064(null),_0x3861e1())[_0x322b3a(0x32e)](([_0x5e3174,_0x208c1c])=>{const _0xc8f6e3=_0x322b3a;this[_0xc8f6e3(0x34f)](_0x5e3174,_0x208c1c);})),this[_0x322b3a(0x237)](this[_0x322b3a(0x3c5)][_0x322b3a(0x1e3)][_0x322b3a(0x32e)](_0x300e50=>{const _0x38c867=_0x322b3a;!_0x300e50&&this[_0x38c867(0x246)]&&this[_0x38c867(0x402)]();})),this[_0x322b3a(0x237)](this['_commandService'][_0x322b3a(0x34c)](_0x147766=>{const _0x581f98=_0x322b3a;if(_0x147766['id']===H['id']){let _0x210497=_0x147766[_0x581f98(0x3cc)];if(!Ai(this['_drawingManagerService'][_0x581f98(0x474)]({'unitId':_0x210497[_0x581f98(0x1ee)],'subUnitId':_0x210497[_0x581f98(0x419)],'drawingId':_0x210497[_0x581f98(0x3c1)]})))return;this['openChartPanelById'](_0x210497[_0x581f98(0x3c1)],_0x210497[_0x581f98(0x3a6)]);}if(_0x147766['id']===Tr['id']&&this['hidePanel'](),_0x147766['id']===_0x3c244d['id']){var _0x1f9560;_0x147766[_0x581f98(0x3cc)]['chartId']===((_0x1f9560=this[_0x581f98(0x3c5)][_0x581f98(0x2c4)])==null?void 0x0:_0x1f9560['id'])&&this['hidePanel'](),this[_0x581f98(0x202)][_0x581f98(0x1eb)](_0x23d889)&&(this[_0x581f98(0x202)][_0x581f98(0x36d)](_0x23d889,!0x1),this[_0x581f98(0x4a9)][_0x581f98(0x414)](null));}})),this[_0x322b3a(0x237)](this['_sheetCanvasFloatDomManagerService']['remove$']['subscribe'](({id:_0x25c3b5})=>{const _0x3189dd=_0x322b3a;this[_0x3189dd(0x2c3)]['isElementEditModeActive'](_0x25c3b5)&&this[_0x3189dd(0x402)]();})),this[_0x322b3a(0x237)](this[_0x322b3a(0x2b0)][_0x322b3a(0x1fb)][_0x322b3a(0x32e)](({id:_0x49825a})=>{const _0x482de7=_0x322b3a;this[_0x482de7(0x2c3)][_0x482de7(0x404)](_0x49825a)&&(this[_0x482de7(0x2c3)][_0x482de7(0x225)](),this[_0x482de7(0x1e7)][_0x482de7(0x234)](_0x49825a,!0x1),this['_shouldEnableChartElementEdit'](_0x49825a)&&this['_chartRenderService']['setElementEditMode'](_0x49825a,!0x0));})),this[_0x322b3a(0x237)](this[_0x322b3a(0x4a9)][_0x322b3a(0x43f)]['subscribe'](_0x17a20d=>{const _0xee6b4b=_0x322b3a;let _0xe1b466=_0x17a20d[0x0];if(!this['_sheetsChartUIService'][_0xee6b4b(0x34a)]){if(ki(_0x17a20d)){var _0x336f4e;let _0x564d87=this[_0xee6b4b(0x3c5)][_0xee6b4b(0x3a4)](_0xe1b466[_0xee6b4b(0x3c1)]);_0x564d87&&this['_isOwnedChart'](_0x564d87['id'])&&((_0x336f4e=this['_chartModelService'][_0xee6b4b(0x2c4)])==null?void 0x0:_0x336f4e['id'])!==_0x564d87['id']&&this[_0xee6b4b(0x3c5)][_0xee6b4b(0x259)](_0x564d87);}else this[_0xee6b4b(0x3c5)][_0xee6b4b(0x2c4)]&&this[_0xee6b4b(0x3c5)][_0xee6b4b(0x259)](null),!_0xe1b466&&!this['_sheetsChartUIService'][_0xee6b4b(0x34a)]&&this[_0xee6b4b(0x402)]();}})),_0x23b7c4&&(this['disposeWithMe'](_0x23b7c4[_0x322b3a(0x223)][_0x322b3a(0x32e)](()=>{const _0x49b16c=_0x322b3a;this[_0x49b16c(0x402)]();})),this[_0x322b3a(0x237)](_0x23b7c4[_0x322b3a(0x481)][_0x322b3a(0x32e)](()=>{const _0x2499d8=_0x322b3a;this[_0x2499d8(0x402)]();})));}async[_0x69a5c7(0x315)](_0x36626c){const _0x360582=_0x69a5c7;this[_0x360582(0x2c3)]['chartEditorOpen']||Ai(_0x36626c)&&this[_0x360582(0x328)](_0x36626c[_0x360582(0x3c1)])&&await this[_0x360582(0x3e2)](_0x36626c['unitId'],_0x36626c[_0x360582(0x419)],_0x36626c[_0x360582(0x3c1)]);}async['_openEditPanelByDoubleClick'](_0x33286a,_0x1c8dc7,_0x300329){const _0x91a2fa=_0x69a5c7;this[_0x91a2fa(0x3c5)][_0x91a2fa(0x3a4)](_0x300329)&&this[_0x91a2fa(0x328)](_0x300329)&&await this[_0x91a2fa(0x465)][_0x91a2fa(0x37e)](H['id'],{'unitId':_0x33286a,'subUnitId':_0x1c8dc7,'drawingId':_0x300329});}[_0x69a5c7(0x3c0)](_0x67c439,_0x241594){const _0x4097a7=_0x69a5c7;let _0x252661=this[_0x4097a7(0x3c5)]['getChartModel'](_0x67c439);_0x252661&&this['_isOwnedChart'](_0x67c439)&&(this[_0x4097a7(0x3c5)][_0x4097a7(0x259)](_0x252661),this[_0x4097a7(0x3d2)](),this[_0x4097a7(0x4a5)](_0x67c439,_0x241594??null));}[_0x69a5c7(0x4a5)](_0x59b917,_0x332ca9){const _0x36e4c4=_0x69a5c7;this[_0x36e4c4(0x2c3)][_0x36e4c4(0x220)](!0x0),this[_0x36e4c4(0x2c3)][_0x36e4c4(0x287)](_0x59b917,_0x332ca9);}['_deactivateEditPanelState'](){const _0x39a480=_0x69a5c7;this[_0x39a480(0x2c3)]['setChartEditorOpen'](!0x1);}[_0x69a5c7(0x34f)](_0x33f630,_0x1e4fec){const _0x45d355=_0x69a5c7;_0x33f630!==_0x1e4fec&&(_0x33f630&&this[_0x45d355(0x1e7)][_0x45d355(0x234)](_0x33f630,!0x1),this['_sheetsChartUIService']['clearPanelRoute'](),_0x1e4fec&&(this[_0x45d355(0x2c3)][_0x45d355(0x287)](_0x1e4fec,null),this['_chartRenderService'][_0x45d355(0x234)](_0x1e4fec,this[_0x45d355(0x3ad)](_0x1e4fec))));}[_0x69a5c7(0x261)](){const _0x3bd3d2=_0x69a5c7;this[_0x3bd3d2(0x1f5)]['mergeMenu'](Ur),this['_sheetCanvasPopManagerService']['registerFeatureMenu'](_0x56b014['DRAWING_CHART'],this[_0x3bd3d2(0x467)][_0x3bd3d2(0x3a9)](this));}[_0x69a5c7(0x3ad)](_0x5844b2){const _0x483764=_0x69a5c7;let _0x54951f=this[_0x483764(0x3c5)]['getChartModel'](_0x5844b2);return!this[_0x483764(0x483)]||!_0x54951f||!this['_isOwnedChart'](_0x5844b2)?!0x1:Gr(_0x54951f['chartType']);}[_0x69a5c7(0x467)](_0x1c84e4,_0x4c2f7f,_0x4873f7,_0x3eb216){const _0x1a14c9=_0x69a5c7;if(!this[_0x1a14c9(0x3c5)][_0x1a14c9(0x3a4)](_0x4873f7))return[];let _0x179e2d=[{'label':this[_0x1a14c9(0x36a)]['t']('sheets-chart-ui.common.openChartPanel'),'index':0x0,'commandId':H['id'],'commandParams':{'unitId':_0x1c84e4,'subUnitId':_0x4c2f7f,'drawingId':_0x4873f7},'disable':_0x3eb216!==_0x56b014[_0x1a14c9(0x464)]}];return this[_0x1a14c9(0x328)](_0x4873f7)?[..._0x179e2d,{'label':this[_0x1a14c9(0x36a)]['t'](_0x1a14c9(0x490)),'index':0x1,'commandId':_0xa337c1['id'],'commandParams':{'unitId':_0x1c84e4,'drawings':[{'unitId':_0x1c84e4,'subUnitId':_0x4c2f7f,'drawingId':_0x4873f7,'drawingType':_0x3eb216}]},'disable':!0x1},{'label':this[_0x1a14c9(0x36a)]['t'](_0x1a14c9(0x260)),'index':0x2,'commandId':Tr['id'],'commandParams':{'unitId':_0x1c84e4,'subUnitId':_0x4c2f7f,'drawingId':_0x4873f7},'disable':!0x1}]:_0x179e2d;}[_0x69a5c7(0x328)](_0x17f087){const _0x353b79=_0x69a5c7;return this[_0x353b79(0x2d2)]['getChartSourceSpec'](_0x17f087)!==void 0x0;}};ji=q([K(0x0,_0x6f6e55),K(0x1,_0x1534cf),K(0x2,_0x345df3(_0xfc5243)),K(0x3,_0x345df3(_0x186c61)),K(0x4,_0x345df3(J)),K(0x5,_0x345df3(_0x57df2c)),K(0x6,_0x345df3(_0x147114)),K(0x7,_0x31d4ae),K(0x8,_0x345df3(_0x5a2ef7)),K(0x9,_0x345df3(_0xd20d74)),K(0xa,_0xb35996),K(0xb,Y),K(0xc,_0x3387ab),K(0xd,_0x345df3(_0x332fea)),K(0xe,_0x250254)],ji);var Mi=_0x69a5c7(0x34e),Ni=_0x69a5c7(0x430);let Pi=class extends _0x5f44fb{constructor(_0x1a344e,_0xc1fef7){const _0x5b7956=_0x69a5c7;super(),this[_0x5b7956(0x214)]=_0x1a344e,this[_0x5b7956(0x3c5)]=_0xc1fef7,this[_0x5b7956(0x2a5)]();}['_init'](){const _0x1d78f1=_0x69a5c7;this['disposeWithMe'](this[_0x1d78f1(0x214)][_0x1d78f1(0x1f6)][_0x1d78f1(0x32e)](_0x2512cd=>{const _0x589d36=_0x1d78f1;this['_chartModelService'][_0x589d36(0x4ac)](_0x2512cd);}));}};Pi=q([K(0x0,pi),K(0x1,_0x345df3(_0xfc5243))],Pi);let Fi=class extends _0x5f44fb{constructor(_0x59eaa4,_0x2e9337,_0x29866e,_0x3434e6,_0x310911,_0x21ce4f){const _0x1ea0e5=_0x69a5c7;super(),this[_0x1ea0e5(0x3c5)]=_0x59eaa4,this['_chartRenderService']=_0x2e9337,this['_localeService']=_0x29866e,this[_0x1ea0e5(0x3dd)]=_0x3434e6,this['_commandService']=_0x310911,this[_0x1ea0e5(0x2ac)]=_0x21ce4f,W(this,_0x1ea0e5(0x3e8),new Map()),W(this,'_pendingDataUpdateChartIds',new Set()),this[_0x1ea0e5(0x2a5)](),this[_0x1ea0e5(0x2e6)](),this[_0x1ea0e5(0x1f0)]();}[_0x69a5c7(0x1f0)](){const _0x16d438=_0x69a5c7;this['disposeWithMe'](this[_0x16d438(0x2ac)][_0x16d438(0x38e)][_0x16d438(0x34b)](this['_sheetPrintInterceptorService'][_0x16d438(0x38e)]['getInterceptPoints']()[_0x16d438(0x39f)],{'handler':(_0x1327bd,_0x52beb2,_0x405945)=>{const _0x535cf6=_0x16d438;let _0x490635=this[_0x535cf6(0x1e7)][_0x535cf6(0x2e5)](_0x52beb2[_0x535cf6(0x1ee)],_0x52beb2[_0x535cf6(0x419)],_0x52beb2[_0x535cf6(0x2a1)]);return _0x52beb2['resourceCollector'][_0x535cf6(0x337)](_0x490635),_0x405945(_0x1327bd);}}));}[_0x69a5c7(0x2a5)](){const _0x36348b=_0x69a5c7;this[_0x36348b(0x237)](this[_0x36348b(0x3c5)][_0x36348b(0x45a)][_0x36348b(0x32e)](_0x5c8e81=>{const _0x250b38=_0x36348b;if(_0x5c8e81){let _0x38513d=new _0x2ae904();_0x38513d[_0x250b38(0x337)](_0x5c8e81['dataSource$'][_0x250b38(0x2b7)](_0x3c1160(_0x5df48b=>_0x5df48b[_0x250b38(0x44d)]['pipe'](_0x1b1665(0x1))))[_0x250b38(0x32e)](()=>{const _0xfa8a83=_0x250b38;this[_0xfa8a83(0x24e)]['add'](_0x5c8e81['id']);})),_0x38513d[_0x250b38(0x337)](_0x5c8e81[_0x250b38(0x446)][_0x250b38(0x2b7)](_0x3f98ea(_0x5c8e81[_0x250b38(0x2b5)]),_0x3f98ea(this[_0x250b38(0x36a)][_0x250b38(0x319)]),_0x5117d2(0x64))['subscribe'](([[_0x3372f5,_0x17bce8],_0x1dacd6])=>{const _0x1b14dd=_0x250b38;var _0x2c844a;if(!_0x3372f5)return;(_0x2c844a=_0x3372f5[_0x1b14dd(0x371)])==null||_0x2c844a['items'][_0x1b14dd(0x330)]((_0x202754,_0x4aa272)=>{const _0x1f00a0=_0x1b14dd;_0x202754[_0x1f00a0(0x386)]||=this[_0x1f00a0(0x36a)]['t'](_0x1f00a0(0x2cd))+'\x20'+(_0x4aa272+0x1);}),_0x3372f5['series'][_0x1b14dd(0x330)]((_0x782f8f,_0x4dd088)=>{const _0x38588e=_0x1b14dd;_0x782f8f[_0x38588e(0x3f8)]||=this[_0x38588e(0x36a)]['t'](_0x38588e(0x44f))+'\x20'+(_0x4dd088+0x1);});let _0x29d225=this['_chartRenderService'][_0x1b14dd(0x394)](_0x5c8e81,_0x1dacd6),_0x1a98d0=this[_0x1b14dd(0x24e)]['delete'](_0x5c8e81['id']);this[_0x1b14dd(0x1e7)]['render'](_0x5c8e81['id'],_0x3372f5,_0x29d225,{'animateDataUpdate':_0x1a98d0});})),_0x5c8e81[_0x250b38(0x3c8)](()=>{const _0x51b489=_0x250b38;this['_pendingDataUpdateChartIds']['delete'](_0x5c8e81['id']),_0x38513d[_0x51b489(0x393)]();});}}));}[_0x69a5c7(0x2e6)](){const _0x322cb1=_0x69a5c7;this[_0x322cb1(0x237)](this[_0x322cb1(0x465)]['onCommandExecuted'](_0x5706e7=>{const _0x494fed=_0x322cb1;if(_0x5706e7['id']!==_0x2147c7['id'])return;let _0x483fcf=_0x5706e7['params'];_0x483fcf!=null&&_0x483fcf[_0x494fed(0x226)]&&Promise[_0x494fed(0x43b)]()[_0x494fed(0x2f5)](()=>this[_0x494fed(0x46d)](_0x483fcf));}));}[_0x69a5c7(0x46d)](_0x577f1c){const _0x206ece=_0x69a5c7;let _0x1240a1=this[_0x206ece(0x3c5)]['getChartModel'](_0x577f1c[_0x206ece(0x226)]);if(!_0x1240a1||_0x1240a1[_0x206ece(0x24f)]!==_0x5c9c9b[_0x206ece(0x478)])return;let _0x1cea71=_0x1240a1[_0x206ece(0x42d)];_0x1cea71?this[_0x206ece(0x372)](_0x1240a1,_0x1cea71):this[_0x206ece(0x390)](_0x1240a1);}['_renderWhenConfigReady'](_0x5dc424){const _0xe0ebca=_0x69a5c7;if(this[_0xe0ebca(0x3e8)][_0xe0ebca(0x39d)](_0x5dc424['id']))return;let _0x59616a=_0x5dc424[_0xe0ebca(0x446)][_0xe0ebca(0x2b7)](_0x501dd5(_0x4aa7f1=>_0x4aa7f1!=null),_0x11684a(0x1))[_0xe0ebca(0x32e)](_0x5b225c=>{const _0xe1ac29=_0xe0ebca;this[_0xe1ac29(0x3e8)]['delete'](_0x5dc424['id']),this['_renderChartModel'](_0x5dc424,_0x5b225c);});this[_0xe0ebca(0x3e8)][_0xe0ebca(0x46c)](_0x5dc424['id'],_0x59616a),_0x5dc424[_0xe0ebca(0x3c8)](()=>{const _0x39dbd2=_0xe0ebca;_0x59616a['unsubscribe'](),this[_0x39dbd2(0x3e8)]['delete'](_0x5dc424['id']);});}[_0x69a5c7(0x372)](_0x4874bf,_0x2fe0ee){const _0x4ddc69=_0x69a5c7;let _0x3fbadf=this['_chartRenderService'][_0x4ddc69(0x394)](_0x4874bf,this[_0x4ddc69(0x36a)][_0x4ddc69(0x403)]());this[_0x4ddc69(0x1e7)][_0x4ddc69(0x36e)](_0x4874bf['id'],_0x2fe0ee,_0x3fbadf);}};Fi=q([K(0x0,_0x345df3(_0xfc5243)),K(0x1,_0x345df3(J)),K(0x2,_0x345df3(_0x332fea)),K(0x3,Y),K(0x4,_0xb35996),K(0x5,_0x345df3(_0x24e67d))],Fi);function Ii(_0xd0ec60,_0x443b50){const _0x1524fd=_0x69a5c7;return _0xd0ec60[_0x1524fd(0x1ee)]!==_0x443b50[_0x1524fd(0x1ee)]||_0xd0ec60[_0x1524fd(0x419)]!==_0x443b50[_0x1524fd(0x31c)]?_0xd0ec60:{..._0xd0ec60,'subUnitId':_0x443b50[_0x1524fd(0x228)]};}function Li(_0x56c33d,_0xb7dd01){const _0x2e27a2=_0x69a5c7;return(_0x56c33d==null?void 0x0:_0x56c33d[_0x2e27a2(0x297)])===_0x427e12[_0x2e27a2(0x1e9)]?{..._0x56c33d,'source':Ii(_0x56c33d[_0x2e27a2(0x238)],_0xb7dd01)}:_0x56c33d;}function Ri(_0x40c76c,_0x37af80){const _0x323db0=_0x69a5c7;let {rangeInfo:_0x2018df}=_0x40c76c;return Array[_0x323db0(0x3c3)](_0x2018df)?{..._0x40c76c,'rangeInfo':_0x2018df[_0x323db0(0x44e)](_0x51e80c=>({..._0x51e80c,..._0x51e80c[_0x323db0(0x217)]?{'header':Li(_0x51e80c['header'],_0x37af80)}:{},'range':Ii(_0x51e80c[_0x323db0(0x4cc)],_0x37af80)}))}:{..._0x40c76c,'rangeInfo':{..._0x2018df,..._0x2018df[_0x323db0(0x217)]?{'header':{..._0x2018df['header'],..._0x2018df[_0x323db0(0x217)][_0x323db0(0x499)]?{'titles':zi(_0x2018df[_0x323db0(0x217)]['titles'],_0x37af80)}:{}}}:{},'rangeInfo':Ii(_0x2018df[_0x323db0(0x346)],_0x37af80)}};}function zi(_0x4f7235,_0x529c60){const _0x5a9a8d=_0x69a5c7;return _0x4f7235[_0x5a9a8d(0x297)]===_0x427e12[_0x5a9a8d(0x3da)]?{..._0x4f7235,'values':{..._0x4f7235['values']}}:_0x4f7235[_0x5a9a8d(0x297)]===_0x427e12['References']?{..._0x4f7235,'values':Object['fromEntries'](Object[_0x5a9a8d(0x364)](_0x4f7235[_0x5a9a8d(0x42e)])[_0x5a9a8d(0x44e)](([_0x1c0b9f,_0x47bdb1])=>[_0x1c0b9f,_0x47bdb1&&Ii(_0x47bdb1,_0x529c60)]))}:{..._0x4f7235,'values':Object[_0x5a9a8d(0x23a)](Object['entries'](_0x4f7235['values'])['map'](([_0x9a81a1,_0x4dfc8d])=>[_0x9a81a1,_0x4dfc8d&&Li(_0x4dfc8d,_0x529c60)]))};}function Bi(_0x158b31,_0x228206,_0x391bd3,_0xf4f4e1){const _0x48b08c=_0x69a5c7;let _0xb4b638=_0x469840(_0x158b31,_0x228206,_0x391bd3),_0xf60894=[];for(let _0x261b38 of _0x228206){let _0x5eece5=_0xb4b638[_0x48b08c(0x241)]['get'](_0x261b38[_0x48b08c(0x3c1)]),_0x27b640=_0xf4f4e1(_0x261b38);_0x5eece5&&_0x27b640&&_0xf60894[_0x48b08c(0x327)]({'targetChartId':_0x5eece5,'source':Ri(_0x27b640,_0x391bd3)});}return _0xf60894;}let Z=class extends _0x5f44fb{constructor(_0x1f8bf9,_0x3a2b5d,_0x193d8d,_0x469a0e,_0x5585a4){const _0x3ce8cc=_0x69a5c7;super(),this[_0x3ce8cc(0x2f3)]=_0x1f8bf9,this['_sheetInterceptorService']=_0x3a2b5d,this[_0x3ce8cc(0x47d)]=_0x193d8d,this[_0x3ce8cc(0x3c5)]=_0x469a0e,this[_0x3ce8cc(0x2d2)]=_0x5585a4,this[_0x3ce8cc(0x294)]();}['_initSheetChange'](){const _0x1885ed=_0x69a5c7;this[_0x1885ed(0x237)](this[_0x1885ed(0x3ea)]['interceptCommand']({'getMutations':_0x495068=>{const _0x30a057=_0x1885ed;if(_0x495068['id']===_0xa9c809['id']){let _0x422607=_0x1fa958(this[_0x30a057(0x2f3)],_0x495068[_0x30a057(0x3cc)]);if(!_0x422607)return{'redos':[],'undos':[]};let {unitId:_0x435d4f,subUnitId:_0x596761}=_0x422607,_0x138c57=this[_0x30a057(0x47d)][_0x30a057(0x247)](_0x435d4f,_0x596761),_0x123993=Object[_0x30a057(0x42e)](_0x138c57)['filter'](_0x582d57=>_0x582d57[_0x30a057(0x33f)]===_0x56b014[_0x30a057(0x464)]);if(_0x123993[_0x30a057(0x44b)]===0x0)return{'redos':[],'undos':[]};let _0x41a373=[],_0x1b329b=[];for(let _0x58b69b=0x0;_0x58b69b<_0x123993[_0x30a057(0x44b)];_0x58b69b++){let _0x63bcc9=_0x123993[_0x58b69b],_0x346acb=this[_0x30a057(0x3c5)][_0x30a057(0x3a4)](_0x63bcc9[_0x30a057(0x3c1)]);if(!_0x346acb)continue;let _0x1b2bbd=this[_0x30a057(0x2d2)][_0x30a057(0x253)](_0x346acb['id']);if(!_0x1b2bbd)continue;let {chartType:_0x14a906,context:_0x3ca772,style:_0x390f2f,dataAggregation:_0x345151}=_0x346acb[_0x30a057(0x3a0)]();_0x41a373['push']({'id':_0x3c244d['id'],'params':{'unitId':_0x435d4f,'subUnitId':_0x596761,'chartId':_0x63bcc9[_0x30a057(0x3c1)]}}),_0x1b329b[_0x30a057(0x327)]({'id':_0x1af921['id'],'params':{'unitId':_0x435d4f,'subUnitId':_0x596761,'chartId':_0x63bcc9[_0x30a057(0x3c1)],'chartType':_0x14a906,..._0x270522(_0x1b2bbd),'context':_0x3ca772,'style':_0x390f2f,'dataAggregation':_0x345151}});}return{'redos':_0x41a373,'undos':_0x1b329b};}if(_0x495068['id']===_0x3e7429['id']){let {unitId:_0x16f414,subUnitId:_0x3dcf8e,targetSubUnitId:_0x3cbaa6,copyContext:_0x425c36}=_0x495068[_0x30a057(0x3cc)];if(!_0x16f414||!_0x3dcf8e||!_0x3cbaa6)return{'redos':[],'undos':[]};let _0x4bf37b=this[_0x30a057(0x47d)][_0x30a057(0x247)](_0x16f414,_0x3dcf8e),_0x1d6704=Object[_0x30a057(0x42e)](_0x4bf37b)['filter'](_0x384463=>_0x384463[_0x30a057(0x33f)]===_0x56b014[_0x30a057(0x464)]);if(_0x1d6704[_0x30a057(0x44b)]===0x0)return{'redos':[],'undos':[]};let _0x1bcd41=Bi(_0x425c36,_0x1d6704,{'unitId':_0x16f414,'sourceSubUnitId':_0x3dcf8e,'targetSubUnitId':_0x3cbaa6},_0x47069f=>{const _0x127fc6=_0x30a057;let _0x1018b1=this['_chartModelService'][_0x127fc6(0x3a4)](_0x47069f['drawingId']);if(!_0x1018b1)return;let _0x809f8c=this[_0x127fc6(0x2d2)][_0x127fc6(0x253)](_0x1018b1['id']);if(!_0x809f8c)return;let {chartType:_0x1046b8,context:_0x135072,style:_0xb5af3c,dataAggregation:_0x15426c}=_0x1018b1[_0x127fc6(0x3a0)]();return{'rangeInfo':_0x809f8c,'chartType':_0x1046b8,'context':_0x135072,'style':_0xb5af3c,'dataAggregation':_0x15426c};}),_0x279628=[],_0x3b8619=[];for(let {targetChartId:_0x1849c6,source:_0x330caf}of _0x1bcd41){let {rangeInfo:_0x3c9e92,chartType:_0x150154,context:_0x73085f,style:_0x569817,dataAggregation:_0x293646}=_0x330caf;_0x279628['push']({'id':_0x1af921['id'],'params':{'unitId':_0x16f414,'subUnitId':_0x3cbaa6,'chartId':_0x1849c6,'chartType':_0x150154,..._0x270522(_0x3c9e92),'context':_0x73085f,'style':_0x569817,'dataAggregation':_0x293646}}),_0x3b8619[_0x30a057(0x327)]({'id':_0x3c244d['id'],'params':{'unitId':_0x16f414,'subUnitId':_0x3cbaa6,'chartId':_0x1849c6}});}return{'redos':_0x279628,'undos':_0x3b8619};}return{'redos':[],'undos':[]};}}));}};Z=q([K(0x0,_0x345df3(_0x1534cf)),K(0x1,_0x345df3(_0x60328a)),K(0x2,_0x345df3(_0x1ae351)),K(0x3,_0x345df3(_0xfc5243)),K(0x4,_0x345df3(_0x186c61))],Z);const Vi=_0x594228=>_0x594228['getCurrentUnitOfType'](_0x3cb846[_0x69a5c7(0x216)])['getUnitId'](),Hi=_0x39df0a=>{const _0x351b7c=_0x69a5c7;var _0x2485a4;return(_0x2485a4=_0x39df0a[_0x351b7c(0x401)](_0x3cb846['UNIVER_SHEET'])['getActiveSheet']())==null?void 0x0:_0x2485a4[_0x351b7c(0x36c)]();};function Ui(){const _0x37741d=_0x69a5c7;var _0x3d8666;let _0x227a8b=_0x29d6b7(Y),_0x5a6954=_0x29d6b7(_0xfc5243),_0x151735=_0x29d6b7(_0x186c61),_0x5c7038=_0x29d6b7(_0x332fea),_0x57f36=_0x29d6b7(_0x21bd92),_0x142fc4=_0x119e1e(_0x57f36),_0x352577=_0x6c0456(()=>{const _0x389a9c=_0x20d6;let _0x65ddc9=Ir(Pr[_0x389a9c(0x461)](),_0x142fc4);return _0x2e6d09(_0x65ddc9[_0x389a9c(0x44e)](_0x35aa61=>({'id':_0x35aa61['id'],'label':_0x5c7038['t'](_0x389a9c(0x276)+_0x35aa61[_0x389a9c(0x46e)]),'pieSecondaryPlotType':_0x35aa61[_0x389a9c(0x3e6)],'value':_0x35aa61[_0x389a9c(0x305)]})));},[_0x142fc4,_0x5c7038]),_0x45ce6a=_0x293efe(_0x5a6954[_0x37741d(0x1e3)],_0x5a6954['activeChartModel']),_0x1ab9b4=_0x45ce6a?_0x151735[_0x37741d(0x3d4)](_0x45ce6a['id']):void 0x0,_0x9b881f=_0x293efe(_0x1ab9b4==null?void 0x0:_0x1ab9b4[_0x37741d(0x476)],_0x1ab9b4==null?void 0x0:_0x1ab9b4[_0x37741d(0x427)]()),_0x1abb81=Array['isArray'](_0x9b881f),_0x16bdfa=_0x9b881f&&!_0x1abb81&&_0x9b881f[_0x37741d(0x2e1)]?_0x364c6a[_0x37741d(0x3ae)]:_0x364c6a[_0x37741d(0x27d)],_0x41f2da=_0x1abb81?(_0x3d8666=_0x9b881f[0x0])==null?void 0x0:_0x3d8666[_0x37741d(0x4cc)]:_0x9b881f==null?void 0x0:_0x9b881f[_0x37741d(0x346)];return _0x39cd6c('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-5','children':_0x39cd6c(_0x175816,{'chartTypeOptions':_0x352577,'dataSourceControl':_0x39cd6c(Wi,{'dataRange':_0x9b881f,'primaryRange':_0x41f2da}),'categoryToggleLabel':_0x5c7038['t'](_0x37741d(0x4b6),_0x16bdfa===_0x364c6a[_0x37741d(0x3ae)]?_0x16bdfa+'\x20'+(((_0x41f2da==null?void 0x0:_0x41f2da[_0x37741d(0x4cc)][_0x37741d(0x272)])??0x0)+0x1):_0x16bdfa+'\x20'+_0x29488d((_0x41f2da==null?void 0x0:_0x41f2da[_0x37741d(0x4cc)][_0x37741d(0x3d9)])??0x0)),'orientationControl':_0x1abb81?void 0x0:_0x39cd6c(_0x43a6c9,{'size':_0x37741d(0x35c),'onClick':()=>_0x227a8b[_0x37741d(0x2b2)](_0x16bdfa===_0x364c6a[_0x37741d(0x3ae)]?_0x364c6a[_0x37741d(0x27d)]:_0x364c6a['Row']),'children':_0x5c7038['t'](_0x37741d(0x43d))})})});}function Wi(_0x4a6e0e){const _0x593cc6=_0x69a5c7;let {dataRange:_0x192658,primaryRange:_0x4a84cb}=_0x4a6e0e,_0xee4d0f=_0x29d6b7(Y),_0x3942c8=_0x29d6b7(_0x332fea),_0x52a6ff=_0x29d6b7(_0x1534cf),[_0x5dfe65,_0xf16293]=_0x11eb2f(!0x1),[_0x4905bc,_0x5890f0]=_0x11eb2f(!0x1),_0xcaf669=Vi(_0x52a6ff),_0x56385f=Hi(_0x52a6ff);_0x434cb3(()=>{const _0xaa7b2=_0x20d6;_0xee4d0f[_0xaa7b2(0x361)](_0x5dfe65);},[_0x5dfe65,_0xee4d0f]);let _0x71d293=_0x6c0456(()=>_0x32b3ce(async _0x3504b4=>{const _0x12e534=_0x20d6;var _0x2d4b79;if(Mr(_0x192658,_0x52a6ff)===_0x3504b4)return;let _0x2596f9=_0x3504b4['split'](',')[_0x12e534(0x1de)](Boolean)[_0x12e534(0x44e)](_0x77b34e)[0x0];if(!_0x2596f9)return;let {unitId:_0x2f6ed3,sheetName:_0x5578c1,range:_0x492ad6}=_0x2596f9,_0x2f9adf=_0x2f6ed3||_0xcaf669,_0x1d4491=((_0x2d4b79=_0x52a6ff['getUnit'](_0x2f9adf)['getSheetBySheetName'](_0x5578c1))==null?void 0x0:_0x2d4b79['getSheetId']())||(_0x4a84cb==null?void 0x0:_0x4a84cb[_0x12e534(0x419)])||_0x56385f;_0x1d4491&&_0xee4d0f[_0x12e534(0x3dc)]({'rangeInfo':{'range':_0x492ad6,'unitId':_0x2f9adf,'subUnitId':_0x1d4491}});},0x12c,{'leading':!0x1,'maxWait':0x3e8,'trailing':!0x0}),[_0x192658,_0x4a84cb,_0xee4d0f,_0x56385f,_0xcaf669,_0x52a6ff]);return _0x434cb3(()=>()=>_0x71d293['cancel'](),[_0x71d293]),_0x39cd6c(_0x593cc6(0x382),{'className':_0x593cc6(0x38c),'children':_0x1b1cd9(_0x593cc6(0x382),{'children':[_0x39cd6c(_0x33cfc0,{'title':_0x3942c8['t']('sheets-chart-ui.common.dataRange')}),_0x39cd6c(_0x5901f0,{'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'maxRangeCount':0x1,'unitId':_0xcaf669,'subUnitId':_0x56385f,'initialValue':_0x192658?Mr(_0x192658,_0x52a6ff):'','onChange':(_0x3897e9,_0x5ea9c6)=>_0x71d293(_0x5ea9c6),'onFocusChange':_0x4ef7d0=>{_0x4905bc||_0xf16293(_0x4ef7d0);},'onRangeSelectorDialogVisibleChange':_0x3edea8=>{_0x5890f0(_0x3edea8),_0xf16293(_0x3edea8);}})]})});}function Gi(){const _0x372cc1=_0x69a5c7;let [_0x55d5a7,_0x261090]=_0x11eb2f(_0x1f97c4[_0x372cc1(0x2e7)]),_0xd9e73=_0x29d6b7(_0x21bd92),_0x26252c=_0x29d6b7(_0x332fea),_0x4bb8ff=_0x29d6b7(Y),_0x5a39f3=_0x29d6b7(_0xfc5243),_0x5430d7=_0x29d6b7(_0x186c61),_0x6f2c69=_0x293efe(_0x5a39f3[_0x372cc1(0x1e3)],_0x5a39f3['activeChartModel']),_0x58eda2=_0x293efe(_0x4bb8ff[_0x372cc1(0x35d)],null),_0x3c7daf=_0x6c0456(()=>{const _0x5a707b=_0x372cc1;var _0x2c6c73;if(!_0x6f2c69)return null;let _0xc92fa5=_0x5430d7[_0x5a707b(0x253)](_0x6f2c69['id']);if(!_0xc92fa5)return null;let _0x3ca7a5=Array['isArray'](_0xc92fa5)?(_0x2c6c73=_0xc92fa5[0x0])==null?void 0x0:_0x2c6c73[_0x5a707b(0x4cc)]:_0xc92fa5[_0x5a707b(0x346)];return _0x3ca7a5?new _0x68520(_0x6f2c69,new _0x3bea97({'unitId':_0x3ca7a5[_0x5a707b(0x1ee)],'subUnitId':_0x3ca7a5[_0x5a707b(0x419)],'chartId':_0x6f2c69['id'],'injector':_0xd9e73})):null;},[_0x6f2c69,_0xd9e73,_0x5430d7]);if(_0x434cb3(()=>{const _0x520ce6=_0x372cc1;var _0x57fad2,_0x50e69b;_0x6f2c69&&(_0x58eda2==null?void 0x0:_0x58eda2[_0x520ce6(0x3ed)])===_0x6f2c69['id']&&(((_0x57fad2=_0x58eda2['route'])==null?void 0x0:_0x57fad2[_0x520ce6(0x37a)])===_0x1f97c4[_0x520ce6(0x4ba)]&&_0x261090(_0x1f97c4['Style']),((_0x50e69b=_0x58eda2[_0x520ce6(0x3a6)])==null?void 0x0:_0x50e69b[_0x520ce6(0x37a)])===_0x1f97c4['Data']&&_0x261090(_0x1f97c4[_0x520ce6(0x2e7)]));},[_0x6f2c69,_0x58eda2]),!_0x3c7daf)return null;let _0x4e2b63=_0x39cd6c('div',{'className':_0x372cc1(0x2f2),'children':_0x39cd6c(_0x2aef1e,{'ariaLabel':_0x26252c['t'](_0x372cc1(0x484)),'activeTab':_0x55d5a7,'onTabChange':_0x261090,'tabListClassName':_0x372cc1(0x2cb),'panelClassName':_0x55d5a7===_0x1f97c4[_0x372cc1(0x4ba)]?'-univer-mx-4\x20univer-overflow-visible':_0x372cc1(0x322),'tabs':[{'id':_0x1f97c4[_0x372cc1(0x2e7)],'panelId':_0x372cc1(0x27f),'title':_0x26252c['t'](_0x372cc1(0x435)),'content':_0x39cd6c(Ui,{})},{'id':_0x1f97c4[_0x372cc1(0x4ba)],'panelId':_0x372cc1(0x2d3),'title':_0x26252c['t']('sheets-chart-ui.common.customize'),'content':_0x39cd6c(wi,{'defaultValues':yi})}]})});return _0x39cd6c(_0x19c27e,{'chartUIService':_0x4bb8ff,'hostAdapter':_0x3c7daf,'children':_0x4e2b63});}let Ki=class extends _0x5f44fb{constructor(_0x30f9ff){const _0x40003d=_0x69a5c7;super(),this['disposeWithMe'](_0x30f9ff[_0x40003d(0x33e)](Ei,Gi));}};Ki=q([K(0x0,_0x345df3(_0x78a75))],Ki);let qi=class extends _0x5f44fb{constructor(_0x439348,_0x2c77f5,_0x1b587a,_0x18f6c8,_0x38bbf9,_0x12c38d,_0x302832,_0x74cca5,_0x176714){const _0x2c85dd=_0x69a5c7;super(),this['_drawingManagerService']=_0x439348,this['_chartModelService']=_0x2c77f5,this[_0x2c85dd(0x3ec)]=_0x1b587a,this['_menuManagerService']=_0x18f6c8,this[_0x2c85dd(0x299)]=_0x38bbf9,this[_0x2c85dd(0x465)]=_0x12c38d,this['_sheetsChartUIService']=_0x302832,this[_0x2c85dd(0x202)]=_0x74cca5,this[_0x2c85dd(0x36a)]=_0x176714,W(this,_0x2c85dd(0x246),null),W(this,'_panelInitialized',!0x1),this['_initMenus']();}[_0x69a5c7(0x393)](){const _0x3e74e5=_0x69a5c7;this[_0x3e74e5(0x402)](),super[_0x3e74e5(0x393)]();}[_0x69a5c7(0x26b)](){const _0x2a836b=_0x69a5c7;this['_panelInitialized']||(this[_0x2a836b(0x1f3)]=!0x0,this[_0x2a836b(0x237)](this['_commandService'][_0x2a836b(0x34c)](_0x3ce176=>{const _0x4b2668=_0x2a836b;if(_0x3ce176['id']!==H['id'])return;let _0x365818=_0x3ce176[_0x4b2668(0x3cc)];this[_0x4b2668(0x3c0)](_0x365818[_0x4b2668(0x3c1)],_0x365818[_0x4b2668(0x3a6)]);})));}[_0x69a5c7(0x3c0)](_0xdcb717,_0x225a80){const _0x1d40e7=_0x69a5c7;let _0x58b550=this[_0x1d40e7(0x3c5)]['getChartModel'](_0xdcb717);_0x58b550&&(this['_chartModelService'][_0x1d40e7(0x259)](_0x58b550),this[_0x1d40e7(0x3d2)](),this[_0x1d40e7(0x2c3)][_0x1d40e7(0x220)](!0x0),this[_0x1d40e7(0x2c3)]['setPanelRoute'](_0xdcb717,_0x225a80??null));}[_0x69a5c7(0x402)](){const _0x3cf9be=_0x69a5c7;let _0x24c565=this['_sidebarDisposable'];this[_0x3cf9be(0x246)]=null,this['_clearPanelState'](),_0x24c565==null||_0x24c565[_0x3cf9be(0x393)]();}[_0x69a5c7(0x261)](){const _0x1d22a0=_0x69a5c7;this[_0x1d22a0(0x1f5)][_0x1d22a0(0x42b)]({[_0x15dc3c[_0x1d22a0(0x268)]]:{[U['id']]:{'order':0x4,'menuItemFactory':Lr}}}),this[_0x1d22a0(0x299)]['registerFeatureMenu'](_0x56b014[_0x1d22a0(0x464)],(_0x3f413b,_0x305a83,_0x4bcf68,_0x2b558f)=>[{'label':this['_localeService']['t']('sheets-chart-ui.common.editChart'),'index':0x0,'commandId':H['id'],'commandParams':{'unitId':_0x3f413b,'subUnitId':_0x305a83,'drawingId':_0x4bcf68},'disable':_0x2b558f!==_0x56b014[_0x1d22a0(0x464)]},{'label':this[_0x1d22a0(0x36a)]['t'](_0x1d22a0(0x490)),'index':0x1,'commandId':_0xa337c1['id'],'commandParams':{'unitId':_0x3f413b,'drawings':[{'unitId':_0x3f413b,'subUnitId':_0x305a83,'drawingId':_0x4bcf68,'drawingType':_0x2b558f}]},'disable':!0x1}],'sheets-chart-ui.common.chart');}['_openPanel'](){const _0x339c13=_0x69a5c7;this['_sidebarDisposable']=this[_0x339c13(0x3ec)][_0x339c13(0x48d)]({'id':Ei,'header':{'title':this['_localeService']['t']('sheets-chart-ui.common.editChart')},'children':{'label':Ei},'onClose':()=>{const _0x21d9bc=_0x339c13;this[_0x21d9bc(0x246)]=null,this[_0x21d9bc(0x3b5)]();}});}['_clearPanelState'](){const _0x1783e4=_0x69a5c7;this[_0x1783e4(0x2c3)][_0x1783e4(0x220)](!0x1),this[_0x1783e4(0x2c3)][_0x1783e4(0x225)](),this[_0x1783e4(0x3c5)][_0x1783e4(0x2c4)]&&this[_0x1783e4(0x3c5)][_0x1783e4(0x259)](null),this[_0x1783e4(0x4a9)][_0x1783e4(0x414)](null),this[_0x1783e4(0x202)]['setContextValue'](_0x23d889,!0x1);}};qi=q([K(0x0,_0x6f6e55),K(0x1,_0x345df3(_0xfc5243)),K(0x2,_0x345df3(_0x147114)),K(0x3,_0x31d4ae),K(0x4,_0x345df3(_0xd20d74)),K(0x5,_0xb35996),K(0x6,Y),K(0x7,_0x3387ab),K(0x8,_0x345df3(_0x332fea))],qi);let Ji=class extends _0x5f44fb{constructor(_0x423783,_0x29db52,_0x21ef8e,_0x3a6994,_0x10004e){const _0x52efbf=_0x69a5c7;super(),this[_0x52efbf(0x399)]=_0x423783,this[_0x52efbf(0x254)]=_0x29db52,this['_sheetDrawingService']=_0x21ef8e,this[_0x52efbf(0x3c5)]=_0x3a6994,this[_0x52efbf(0x2d2)]=_0x10004e,W(this,'_copyInfo',void 0x0),this[_0x52efbf(0x28d)]();}get['_focusedDrawings'](){const _0x3e76ba=_0x69a5c7;return this[_0x3e76ba(0x47d)][_0x3e76ba(0x331)]();}[_0x69a5c7(0x28d)](){const _0x1bb983=_0x69a5c7;this[_0x1bb983(0x237)](this[_0x1bb983(0x254)][_0x1bb983(0x344)]({'id':_0x112fc2,'onBeforeCopyFocusedObject':(_0x3acf64,_0x1a582b,_0x54eb96)=>{const _0x52d9eb=_0x1bb983;this['_copyInfo']=null;let _0x2411b4=this[_0x52d9eb(0x34d)][_0x52d9eb(0x1de)](_0x5bee0c=>this['_isOwnedChart'](_0x5bee0c));return _0x2411b4['length']!==0x0&&(this['_copyInfo']={'unitId':_0x3acf64,'subUnitId':_0x1a582b,'copyType':_0x54eb96,'drawings':_0x2411b4},!0x0);},'onBeforeCopy':(_0x29e1a0,_0x33dcb5,_0x5f2133,_0x2bf573)=>{const _0x23b3e6=_0x1bb983;this['_copyInfo']=null,this[_0x23b3e6(0x494)](_0x29e1a0,_0x33dcb5,_0x5f2133,_0x2bf573);},'onPasteCells':(_0x566d76,_0x438073,_0x54970b,_0x124346)=>{const _0x5b307e=_0x1bb983;if(!_0x124346[_0x5b307e(0x31b)]||!_0x566d76||!this[_0x5b307e(0x31e)])return{'redos':[],'undos':[]};let {pasteType:_0x13f9ab}=_0x124346;return _0x13f9ab===_0x1ff07e[_0x5b307e(0x2e3)]?this[_0x5b307e(0x26c)](_0x438073,this[_0x5b307e(0x31e)]['copyType']===_0x2edb47[_0x5b307e(0x26f)]):{'redos':[],'undos':[]};}}));}['_createCopyInfoByRange'](_0x105f72,_0x536a52,_0xb4fc3f,_0x1e6d9e){const _0x7551a=_0x69a5c7;let _0x113bf3=this['_sheetSkeletonService'][_0x7551a(0x267)](_0x105f72,_0x536a52);if(!_0x113bf3)return;let _0x2439b1=_0x191702(_0x113bf3,_0xb4fc3f);if(!_0x2439b1)return;let {startX:_0x313b7c,endX:_0x384998,startY:_0xc2fdbf,endY:_0x5d278a}=_0x2439b1,_0x31f041=this[_0x7551a(0x47d)]['getDrawingData'](_0x105f72,_0x536a52),_0x2f31e7=[];for(let [_0x527b42,_0x40ac8e]of Object['entries'](_0x31f041)){if(!this[_0x7551a(0x328)](_0x40ac8e))continue;let {transform:_0x1a7a7b}=_0x40ac8e;if(!_0x1a7a7b)continue;let {left:_0x7b0097=0x0,top:_0x5aed84=0x0,width:_0x12b915=0x0,height:_0x329a19=0x0}=_0x1a7a7b;_0x313b7c<=_0x7b0097&&_0x384998>=_0x7b0097+_0x12b915&&_0xc2fdbf<=_0x5aed84&&_0x5d278a>=_0x5aed84+_0x329a19&&_0x2f31e7[_0x7551a(0x327)](_0x40ac8e);}_0x2f31e7[_0x7551a(0x44b)]>0x0&&(this[_0x7551a(0x31e)]={'unitId':_0x105f72,'subUnitId':_0x536a52,'copyType':_0x1e6d9e,'copyRange':_0xb4fc3f,'drawings':_0x2f31e7});}['_isOwnedChart'](_0x1e994c){const _0x584faf=_0x69a5c7;return _0x1e994c[_0x584faf(0x33f)]===_0x56b014[_0x584faf(0x464)]&&this[_0x584faf(0x2d2)][_0x584faf(0x264)](_0x1e994c[_0x584faf(0x1ee)],_0x1e994c[_0x584faf(0x3c1)])===_0x1e994c[_0x584faf(0x419)];}[_0x69a5c7(0x26c)](_0x28599c,_0x528fec){const _0x2f1b7b=_0x69a5c7;let {unitId:_0x43174c,subUnitId:_0xc6ca6d,range:_0x3e1344}=_0x28599c,_0x574109=this[_0x2f1b7b(0x399)][_0x2f1b7b(0x267)](_0x43174c,_0xc6ca6d);if(!_0x574109)return{'redos':[],'undos':[]};let _0x3e3bdd=_0x55eda6(_0x3e1344),{unitId:_0x436286,subUnitId:_0xae2b7c,copyRange:_0x4cb277,drawings:_0x38ae56}=this[_0x2f1b7b(0x31e)],_0x4d1455=this[_0x2f1b7b(0x399)][_0x2f1b7b(0x267)](_0x436286,_0xae2b7c);if(!_0x4d1455)return{'redos':[],'undos':[]};let _0x24a2f0=[],_0x49429c=[];for(let _0x2edc33 of _0x38ae56){let {drawingId:_0x1f151c,transform:_0x3d1c8a,sheetTransform:_0xf71a16}=_0x2edc33,_0x45371c=this[_0x2f1b7b(0x3c5)][_0x2f1b7b(0x3a4)](_0x1f151c);if(!_0x45371c||!_0x3d1c8a||!_0xf71a16)continue;let _0x139f40=this[_0x2f1b7b(0x3f4)]({'transform':_0x3d1c8a,'sheetTransform':_0xf71a16},{'skeleton':_0x4d1455,'range':_0x4cb277},{'skeleton':_0x574109,'range':_0x3e3bdd});if(_0x528fec){let {redos:_0x2a4375,undos:_0x49ecc9}=this[_0x2f1b7b(0x456)]({'fromUnitId':_0x436286,'fromSubUnitId':_0xae2b7c,'toUnitId':_0x43174c,'toSubUnitId':_0xc6ca6d,'drawing':_0x2edc33,'newTransforms':_0x139f40},_0x45371c);_0x24a2f0[_0x2f1b7b(0x327)](..._0x2a4375),_0x49429c[_0x2f1b7b(0x327)](..._0x49ecc9);continue;}let {redos:_0x1ec973,undos:_0x17f136}=this[_0x2f1b7b(0x416)]({'toUnitId':_0x43174c,'toSubUnitId':_0xc6ca6d,'drawing':_0x2edc33,'newTransforms':_0x139f40},_0x45371c);_0x24a2f0[_0x2f1b7b(0x327)](..._0x1ec973),_0x49429c[_0x2f1b7b(0x327)](..._0x17f136);}return{'redos':_0x24a2f0,'undos':_0x49429c};}[_0x69a5c7(0x456)](_0x5be94a,_0x43f969){const _0x12a4c7=_0x69a5c7;let {fromUnitId:_0x6e6646,fromSubUnitId:_0x2bfb8e,toUnitId:_0x351ead,toSubUnitId:_0x240afb,drawing:_0x519352,newTransforms:_0x5e9633}=_0x5be94a,_0x72ae72={..._0x519352,'unitId':_0x351ead,'subUnitId':_0x240afb,'transform':_0x5e9633[_0x12a4c7(0x3c7)],'sheetTransform':_0x5e9633['sheetTransform']};if(_0x351ead===_0x6e6646&&_0x240afb===_0x2bfb8e){let {redo:_0x54c7c4,undo:_0x4755a6,objects:_0x4e8ab2}=this[_0x12a4c7(0x47d)][_0x12a4c7(0x32d)]([_0x72ae72]);return{'redos':[{'id':_0x558242['id'],'params':{'unitId':_0x351ead,'subUnitId':_0x240afb,'type':_0x51d5ba['UPDATE'],'op':_0x54c7c4,'objects':_0x4e8ab2}}],'undos':[{'id':_0x558242['id'],'params':{'unitId':_0x351ead,'subUnitId':_0x240afb,'type':_0x51d5ba[_0x12a4c7(0x208)],'op':_0x4755a6,'objects':_0x4e8ab2}}]};}{let _0x3ca2ba=this[_0x12a4c7(0x47d)][_0x12a4c7(0x406)]([_0x519352]),_0xc7a5d7=this['_sheetDrawingService'][_0x12a4c7(0x491)]([_0x72ae72]),_0x56c956=this['_sheetsChartService'][_0x12a4c7(0x253)](_0x43f969['id']);if(!_0x56c956)return{'redos':[],'undos':[]};let {chartType:_0x4f4e12,context:_0x41e27d,style:_0x4d5991,dataAggregation:_0x2a41ae}=_0x43f969[_0x12a4c7(0x3a0)]();return{'redos':[{'id':_0x558242['id'],'params':{'unitId':_0x6e6646,'subUnitId':_0x2bfb8e,'type':_0x51d5ba[_0x12a4c7(0x45e)],'op':_0x3ca2ba['redo'],'objects':_0x3ca2ba[_0x12a4c7(0x318)]}},{'id':_0x3c244d['id'],'params':{'unitId':_0x6e6646,'subUnitId':_0x2bfb8e,'chartId':_0x519352['drawingId']}},{'id':_0x558242['id'],'params':{'unitId':_0x351ead,'subUnitId':_0x240afb,'type':_0x51d5ba[_0x12a4c7(0x28f)],'op':_0xc7a5d7['redo'],'objects':_0xc7a5d7['objects']}},{'id':_0x1af921['id'],'params':{'unitId':_0x351ead,'subUnitId':_0x240afb,'chartId':_0x519352['drawingId'],'chartType':_0x4f4e12,..._0x270522(_0x56c956),'context':_0x41e27d,'style':_0x4d5991,'dataAggregation':_0x2a41ae}}],'undos':[{'id':_0x558242['id'],'params':{'unitId':_0x6e6646,'subUnitId':_0x2bfb8e,'type':_0x51d5ba['INSERT'],'op':_0x3ca2ba[_0x12a4c7(0x3f0)],'objects':_0x3ca2ba[_0x12a4c7(0x318)]}},{'id':_0x1af921['id'],'params':{'unitId':_0x6e6646,'subUnitId':_0x2bfb8e,'chartId':_0x519352[_0x12a4c7(0x3c1)],'chartType':_0x4f4e12,..._0x270522(_0x56c956),'context':_0x41e27d,'style':_0x4d5991,'dataAggregation':_0x2a41ae}},{'id':_0x558242['id'],'params':{'unitId':_0x351ead,'subUnitId':_0x240afb,'type':_0x51d5ba[_0x12a4c7(0x45e)],'op':_0xc7a5d7['undo'],'objects':_0xc7a5d7[_0x12a4c7(0x318)]}},{'id':_0x3c244d['id'],'params':{'unitId':_0x351ead,'subUnitId':_0x240afb,'chartId':_0x519352['drawingId']}}]};}}['_generateCopyPasteMutations'](_0x4fa959,_0x42ee6e){const _0x1a666a=_0x69a5c7;let {toUnitId:_0x50f63b,toSubUnitId:_0x5e9eba,drawing:_0x1533bd,newTransforms:_0x1e5757}=_0x4fa959,_0x501e32=_0x202a60(),_0xf6e4b9={..._0x1533bd,'unitId':_0x50f63b,'subUnitId':_0x5e9eba,'drawingId':_0x501e32,'transform':_0x1e5757[_0x1a666a(0x3c7)],'sheetTransform':_0x1e5757[_0x1a666a(0x3d1)]},{redo:_0x220cd4,undo:_0x12ea56,objects:_0x1ce064}=this['_sheetDrawingService'][_0x1a666a(0x491)]([_0xf6e4b9]),_0x254bd7=this['_sheetsChartService'][_0x1a666a(0x253)](_0x42ee6e['id']);if(!_0x254bd7)return{'redos':[],'undos':[]};let {chartType:_0x32b536,context:_0x4379d6,style:_0x1d6eb2,dataAggregation:_0x130588}=_0x42ee6e[_0x1a666a(0x3a0)]();return{'redos':[{'id':_0x558242['id'],'params':{'unitId':_0x50f63b,'subUnitId':_0x5e9eba,'type':_0x51d5ba['INSERT'],'op':_0x220cd4,'objects':_0x1ce064}},{'id':_0x1af921['id'],'params':{'unitId':_0x50f63b,'subUnitId':_0x5e9eba,'chartId':_0x501e32,'chartType':_0x32b536,..._0x270522(_0x254bd7),'context':_0x4379d6,'style':_0x1d6eb2,'dataAggregation':_0x130588}}],'undos':[{'id':_0x558242['id'],'params':{'unitId':_0x50f63b,'subUnitId':_0x5e9eba,'type':_0x51d5ba[_0x1a666a(0x45e)],'op':_0x12ea56,'objects':_0x1ce064}},{'id':_0x3c244d['id'],'params':{'unitId':_0x50f63b,'subUnitId':_0x5e9eba,'chartId':_0x501e32}}]};}[_0x69a5c7(0x3f4)](_0x4dd9a2,_0x2a46d9,_0x55c8b2){const _0x3ccae5=_0x69a5c7;let {range:_0x51f82a,skeleton:_0x1f0406}=_0x2a46d9,{range:_0x1d1bb0,skeleton:_0x3b8c23}=_0x55c8b2,{transform:_0x29c372,sheetTransform:_0x18a4d6}=_0x4dd9a2,_0x295dc0={..._0x29c372};if(_0x51f82a){let _0x15fb70=_0x191702(_0x1f0406,_0x51f82a),_0x5df000=_0x191702(_0x3b8c23,_0x1d1bb0);if(_0x15fb70&&_0x5df000){let _0x42d46a=_0x5df000[_0x3ccae5(0x357)]-_0x15fb70[_0x3ccae5(0x357)],_0x1227a5=_0x5df000[_0x3ccae5(0x30e)]-_0x15fb70[_0x3ccae5(0x30e)];_0x295dc0[_0x3ccae5(0x213)]=(_0x295dc0[_0x3ccae5(0x213)]??0x0)+_0x42d46a,_0x295dc0[_0x3ccae5(0x3db)]=(_0x295dc0[_0x3ccae5(0x3db)]??0x0)+_0x1227a5;}}else{let _0x5ca659=_0x191702(_0x3b8c23,_0x1d1bb0);_0x295dc0[_0x3ccae5(0x213)]=_0x5ca659==null?void 0x0:_0x5ca659[_0x3ccae5(0x357)],_0x295dc0['top']=_0x5ca659==null?void 0x0:_0x5ca659[_0x3ccae5(0x30e)];}return{'transform':_0x295dc0,'sheetTransform':_0x3fe23c(_0x295dc0,_0x3b8c23)??_0x18a4d6};}};Ji=q([K(0x0,_0x345df3(_0x38e42c)),K(0x1,_0x345df3(_0x917367)),K(0x2,_0x345df3(_0x1ae351)),K(0x3,_0x345df3(_0xfc5243)),K(0x4,_0x345df3(_0x186c61))],Ji);let Yi=class extends _0x5f44fb{constructor(_0x163c01,_0x2a4912,_0x1d3555,_0x29fbdd){const _0x5399c4=_0x69a5c7;super(),this[_0x5399c4(0x465)]=_0x163c01,this[_0x5399c4(0x36a)]=_0x2a4912,this[_0x5399c4(0x22b)]=_0x1d3555,this[_0x5399c4(0x2d2)]=_0x29fbdd,this['_initPermission']();}[_0x69a5c7(0x1f4)](){const _0x586331=_0x69a5c7;this[_0x586331(0x237)](this[_0x586331(0x465)][_0x586331(0x2cc)](_0xd46f78=>{const _0x43aa03=_0x586331;let _0xe5f2f2,_0x20c84b;if(_0xd46f78['id']===_0x5a5e08['id']){let _0x171d89=_0xd46f78[_0x43aa03(0x3cc)];_0xe5f2f2=_0x171d89['unitId'],_0x20c84b=_0x171d89[_0x43aa03(0x419)];}else{if(_0xd46f78['id']===_0x2ebcde['id']||_0xd46f78['id']===_0x50e31b['id']){let _0x4dee25=_0xd46f78[_0x43aa03(0x3cc)];_0xe5f2f2=_0x4dee25[_0x43aa03(0x1ee)],_0x20c84b=this['_sheetsChartService'][_0x43aa03(0x264)](_0x4dee25[_0x43aa03(0x1ee)],_0x4dee25[_0x43aa03(0x226)]);}}_0xe5f2f2&&_0x20c84b&&(this[_0x43aa03(0x22b)]['permissionCheckWithoutRange']({'workbookTypes':[_0x49772b],'worksheetTypes':[_0x42fea3]},_0xe5f2f2,_0x20c84b)||this[_0x43aa03(0x22b)][_0x43aa03(0x2bf)](this[_0x43aa03(0x36a)]['t'](_0x43aa03(0x26d))));}));}};Yi=q([K(0x0,_0x345df3(_0xb35996)),K(0x1,_0x345df3(_0x332fea)),K(0x2,_0x345df3(_0x582ab5)),K(0x3,_0x345df3(_0x186c61))],Yi);let Xi=class extends _0x5f44fb{constructor(_0x319c0f,_0x5b61e8){const _0x20b1a0=_0x69a5c7;super(),this[_0x20b1a0(0x282)]=_0x5b61e8,this[_0x20b1a0(0x237)](_0x319c0f[_0x20b1a0(0x33e)](this));}[_0x69a5c7(0x288)](_0xcfc030){const _0x3c3aab=_0x69a5c7;return _0x3c3aab(0x1ee)in _0xcfc030&&_0x3c3aab(0x419)in _0xcfc030;}['exportImage'](_0x470d22,_0x33b24f){const _0x3f0262=_0x69a5c7;return this[_0x3f0262(0x282)]['exportImage'](_0x470d22[_0x3f0262(0x37b)](),_0x33b24f);}};Xi=q([K(0x0,_0x345df3(_0x16b7e0)),K(0x1,_0x345df3(J))],Xi);let Q=class extends _0x5a6cd9{constructor(_0x4fd3e9=wr,_0x36c9ef,_0x2629a4,_0x15178f){const _0x2dfc11=_0x69a5c7;super(),this[_0x2dfc11(0x3bc)]=_0x4fd3e9,this[_0x2dfc11(0x203)]=_0x36c9ef,this[_0x2dfc11(0x350)]=_0x2629a4,this['_commandService']=_0x15178f;let {..._0x133a3d}=_0x43ed0f({},wr,this['_config']);this[_0x2dfc11(0x350)][_0x2dfc11(0x3b0)](Cr,_0x133a3d),this[_0x2dfc11(0x495)]();}[_0x69a5c7(0x39c)](){const _0x340671=_0x69a5c7;let _0xdfc16d=[[Ki],[Y,{'useClass':_i}],[pi,{'useClass':fi}],[ii],[J],[Xi],[qi],[Pi],[Fi],[Ji],[Z],[Yi]],_0x3ca4a3=[[Ki],[qi],[Fi],[Pi],[Xi],[Y],[Ji],[Z],[Yi]];_0xdfc16d[_0x340671(0x330)](_0x1ee971=>this[_0x340671(0x203)]['add'](_0x1ee971)),_0x13e92b(this[_0x340671(0x203)],_0x3ca4a3);}[_0x69a5c7(0x3aa)](){const _0x27fbc0=_0x69a5c7;var _0x4b6999;(_0x4b6999=this['_injector'][_0x27fbc0(0x39d)](qi))==null||_0x4b6999['initPanel']();}[_0x69a5c7(0x495)](){const _0xdb376e=_0x69a5c7;[U,H][_0xdb376e(0x330)](_0x247d75=>this['disposeWithMe'](this[_0xdb376e(0x465)][_0xdb376e(0x2fd)](_0x247d75)));}};W(Q,_0x69a5c7(0x297),_0x3cb846[_0x69a5c7(0x216)]),W(Q,_0x69a5c7(0x487),_0x69a5c7(0x466)),W(Q,'packageName',Mi),W(Q,'version',Ni),Q=q([_0x29ad3a(_0x1820fc,_0x5660da,_0x2e4d79,_0x404a8f,_0x4da14f,_0xedd2d6,_0x222f25,_0x4372aa,_0x50420e,_0x3e8082),K(0x1,_0x345df3(_0x21bd92)),K(0x2,_0x250254),K(0x3,_0xb35996)],Q);const Zi={'scaleX':0x1,'scaleY':0x1};function Qi(_0xf9d1a4){let _0x4f06d5=_0xf9d1a4['nativeEvent'];return _0x4f06d5 instanceof MouseEvent?_0x4f06d5:void 0x0;}function $i(_0x151753){const _0x1e91ed=_0x69a5c7;let _0x3d86f0=_0x151753[_0x1e91ed(0x201)],_0x276333=_0x3d86f0==null?void 0x0:_0x3d86f0[_0x1e91ed(0x289)];return _0x276333 instanceof Element?_0x276333:void 0x0;}function ea(_0x22a813){const _0x137541=_0x69a5c7;var _0x2bd701;return(_0x2bd701=$i(_0x22a813))==null?void 0x0:_0x2bd701[_0x137541(0x373)]();}function ta(_0x201928){const _0x48d7e5=_0x69a5c7;return _0x201928['width']||_0x201928['right']-_0x201928[_0x48d7e5(0x213)];}function na(_0x4b7110){const _0x3ba408=_0x69a5c7;return _0x4b7110[_0x3ba408(0x452)]||_0x4b7110[_0x3ba408(0x2f6)]-_0x4b7110[_0x3ba408(0x3db)];}function ra(_0x57e03c,_0x1491e5){const _0x4c5416=_0x69a5c7;let _0x500b41=_0x57e03c[_0x4c5416(0x25e)]||(_0x57e03c instanceof HTMLElement?_0x57e03c[_0x4c5416(0x437)]:0x0),_0x2608b6=_0x57e03c['clientHeight']||(_0x57e03c instanceof HTMLElement?_0x57e03c['offsetHeight']:0x0),_0x228fdb=ta(_0x1491e5),_0x3ab82c=na(_0x1491e5);return{'scaleX':_0x500b41>0x0&&_0x228fdb>0x0?_0x228fdb/_0x500b41:Zi['scaleX'],'scaleY':_0x2608b6>0x0&&_0x3ab82c>0x0?_0x3ab82c/_0x2608b6:Zi[_0x4c5416(0x480)]};}function ia(_0x5d65dc,_0x3f6157,_0x2a8560){const _0x2d8125=_0x69a5c7;return{'left':_0x5d65dc[_0x2d8125(0x213)]+_0x3f6157['left']*_0x2a8560[_0x2d8125(0x2e9)],'right':_0x5d65dc['left']+_0x3f6157[_0x2d8125(0x380)]*_0x2a8560[_0x2d8125(0x2e9)],'top':_0x5d65dc['top']+_0x3f6157[_0x2d8125(0x3db)]*_0x2a8560[_0x2d8125(0x480)],'bottom':_0x5d65dc[_0x2d8125(0x3db)]+_0x3f6157[_0x2d8125(0x2f6)]*_0x2a8560[_0x2d8125(0x480)]};}function aa(_0xa6f8c3){const _0x3f88c1=_0x69a5c7;let _0xce6de8=$i(_0xa6f8c3),_0x758b7a=_0xa6f8c3[_0x3f88c1(0x378)][_0x3f88c1(0x243)];if(_0xce6de8&&_0x758b7a){let _0x46e5c4=_0xce6de8[_0x3f88c1(0x373)]();return()=>{const _0x54d25d=_0x3f88c1;let _0x35f6bf=_0xce6de8['getBoundingClientRect']();return(_0xce6de8[_0x54d25d(0x4be)]||ta(_0x35f6bf)>0x0||na(_0x35f6bf)>0x0)&&(_0x46e5c4=_0x35f6bf),ia(_0x46e5c4,_0x758b7a,ra(_0xce6de8,_0x46e5c4));};}return()=>{const _0x48189c=_0x3f88c1;let _0x164ea6=ea(_0xa6f8c3);if(_0x164ea6&&_0x758b7a)return ia(_0x164ea6,_0x758b7a,_0xce6de8?ra(_0xce6de8,_0x164ea6):Zi);let _0x5269b3=Qi(_0xa6f8c3),_0x2731fc=_0xce6de8&&_0x164ea6?ra(_0xce6de8,_0x164ea6):Zi,_0x44cfba=(_0x5269b3==null?void 0x0:_0x5269b3[_0x48189c(0x2a8)])??(_0x164ea6?_0x164ea6[_0x48189c(0x213)]+_0xa6f8c3[_0x48189c(0x342)]['x']*_0x2731fc[_0x48189c(0x2e9)]:_0xa6f8c3[_0x48189c(0x342)]['x']),_0x534a87=(_0x5269b3==null?void 0x0:_0x5269b3[_0x48189c(0x47b)])??(_0x164ea6?_0x164ea6[_0x48189c(0x3db)]+_0xa6f8c3[_0x48189c(0x342)]['y']*_0x2731fc[_0x48189c(0x480)]:_0xa6f8c3[_0x48189c(0x342)]['y']);return{'left':_0x44cfba,'right':_0x44cfba+0x1,'top':_0x534a87,'bottom':_0x534a87+0x1};};}function oa(_0x5dca9d){const _0x12defb=_0x69a5c7;return typeof _0x5dca9d=='number'&&Number[_0x12defb(0x29e)](_0x5dca9d);}function sa(_0x544e51){const _0x2e4612=_0x69a5c7;if(!_0x544e51||typeof _0x544e51!=_0x2e4612(0x47f))return!0x0;let {startX:_0x1ecbc3,endX:_0x44f8b6,startY:_0x263480,endY:_0x1111e8}=_0x544e51;return!oa(_0x1ecbc3)||!oa(_0x44f8b6)||!oa(_0x263480)||!oa(_0x1111e8)||_0x44f8b6-_0x1ecbc3>0x2&&_0x1111e8-_0x263480>0x2;}function ca(_0x5900d4){const _0x4b3b23=_0x69a5c7;return _0x5900d4['right']<=_0x5900d4['left']||_0x5900d4['bottom']<=_0x5900d4[_0x4b3b23(0x3db)]?!0x1:typeof window>'u'||_0x5900d4[_0x4b3b23(0x380)]>0x0&&_0x5900d4['bottom']>0x0&&_0x5900d4[_0x4b3b23(0x213)]<window['innerWidth']&&_0x5900d4['top']<window[_0x4b3b23(0x2bb)];}function la(_0x367000){const _0x1b2f3c=_0x69a5c7;var _0x38a289;return _0x367000==null||(_0x38a289=_0x367000[_0x1b2f3c(0x335)])==null?void 0x0:_0x38a289[_0x1b2f3c(0x4b0)](_0x367000);}function ua(_0x28893d,_0x4f85bf,_0x5e423d){const _0x20860f=_0x69a5c7;let _0x41021e=aa(_0x28893d),_0x2ecd8e=la(_0x4f85bf),_0x59982f=_0x41021e(),_0x4b4e6f=new _0x4b7bf6(_0x59982f),_0x32e6b3=new _0x2ae904(),_0x1d8287=!0x1,_0x19cefe=!0x1,_0xd57c5b=_0x75d67=>sa(_0x2ecd8e)&&ca(_0x75d67),_0x57a7be=()=>{_0x19cefe||_0x1d8287||(_0x19cefe=!0x0,queueMicrotask(()=>{if(_0x19cefe=!0x1,!_0x1d8287){let _0x1df171=_0x41021e();if(!_0xd57c5b(_0x1df171)){_0x5e423d();return;}_0x4b4e6f['next'](_0x1df171);}}));};return _0x4f85bf&&_0x32e6b3[_0x20860f(0x337)](_0x4f85bf[_0x20860f(0x32e)](_0x35f151=>{_0x2ecd8e=_0x35f151,_0x57a7be();})),typeof window<'u'&&_0x32e6b3['add'](_0x597287(_0x528341(window,_0x20860f(0x336),{'capture':!0x0}),_0x528341(window,_0x20860f(0x391)))['pipe'](_0x3de94d(0x10))[_0x20860f(0x32e)](_0x57a7be)),{'initialRect':_0x59982f,'anchorRect$':_0x4b4e6f[_0x20860f(0x473)](),'visible':_0xd57c5b(_0x59982f),'dispose':()=>{const _0x23fbbb=_0x20860f;_0x1d8287=!0x0,_0x32e6b3['dispose'](),_0x4b4e6f[_0x23fbbb(0x37f)]();}};}const da='sheets-chart-element-float-menu';let fa=class extends _0x5f44fb{constructor(_0x47f60e,_0x231ea4,_0x1e817a,_0xadf882,_0x5ccec9,_0x557db8,_0x27c589,_0x12e131,_0x59ccc0){const _0x4dd879=_0x69a5c7;super(),this[_0x4dd879(0x3c5)]=_0x47f60e,this['_chartRenderService']=_0x231ea4,this[_0x4dd879(0x230)]=_0x1e817a,this[_0x4dd879(0x299)]=_0xadf882,this[_0x4dd879(0x2b0)]=_0x5ccec9,this[_0x4dd879(0x3dd)]=_0x557db8,this['_adapterRegistry']=_0x27c589,this['_commandService']=_0x12e131,this[_0x4dd879(0x203)]=_0x59ccc0,W(this,_0x4dd879(0x28a),null),W(this,'_popupChartId',null),W(this,_0x4dd879(0x2da),null),this[_0x4dd879(0x324)](),this[_0x4dd879(0x31f)]();}[_0x69a5c7(0x393)](){const _0x9f1907=_0x69a5c7;this[_0x9f1907(0x301)](),super['dispose']();}['_registerAdapter'](){const _0x2104ca=_0x69a5c7;let _0xd1492d=_0x52faeb({'chartUIService':this[_0x2104ca(0x3dd)],'getHostAdapter':_0x99fcca=>{const _0x591bfd=_0x2104ca;let _0x512d77=this[_0x591bfd(0x3c5)][_0x591bfd(0x3a4)](_0x99fcca['chartId']);if(_0x512d77&&_0x99fcca[_0x591bfd(0x419)])return new _0x68520(_0x512d77,new _0x3bea97({'unitId':_0x99fcca[_0x591bfd(0x1ee)],'subUnitId':_0x99fcca[_0x591bfd(0x419)],'chartId':_0x99fcca['chartId'],'injector':this[_0x591bfd(0x203)]}));},'close':()=>this['_closePopup'](),'openFullPanel':_0x4d736d=>{const _0x539c13=_0x2104ca;let {unitId:_0x361ba3,subUnitId:_0x1a1a4c,drawingId:_0x3f8032,chartId:_0x4324df}=_0x4d736d,_0x56251d=_0x14da42(_0x4d736d[_0x539c13(0x289)]);this[_0x539c13(0x465)][_0x539c13(0x37e)](H['id'],{'unitId':_0x361ba3,'subUnitId':_0x1a1a4c??'','drawingId':_0x3f8032??_0x4324df,..._0x56251d?{'route':_0x56251d}:{}});}});this[_0x2104ca(0x237)](this[_0x2104ca(0x48b)][_0x2104ca(0x33e)](da,_0xd1492d));}['_subscribeChartEvents'](){const _0xc6012f=_0x69a5c7;this[_0xc6012f(0x237)](this[_0xc6012f(0x3c5)][_0xc6012f(0x45a)][_0xc6012f(0x32e)](_0x480c57=>{const _0x4caae4=_0xc6012f;let _0x395d54=new _0x2ae904();_0x395d54[_0x4caae4(0x337)](this[_0x4caae4(0x1e7)]['on'](_0x480c57['id'],_0x4caae4(0x306),_0x49006c=>{const _0x22aa89=_0x4caae4;this[_0x22aa89(0x2ee)](_0x480c57['id'],_0x49006c);})),_0x395d54[_0x4caae4(0x337)](this['_chartRenderService']['on'](_0x480c57['id'],_0x4caae4(0x37d),()=>{const _0x7b10ac=_0x4caae4;this[_0x7b10ac(0x3e2)](_0x480c57['id']);})),_0x480c57[_0x4caae4(0x3c8)](()=>{const _0xa9e9e7=_0x4caae4;_0x395d54[_0xa9e9e7(0x393)](),this[_0xa9e9e7(0x348)](_0x480c57['id']);}),this[_0x4caae4(0x237)](_0x395d54);})),this['disposeWithMe'](_0x491efe([this[_0xc6012f(0x3c5)][_0xc6012f(0x1e3)],this[_0xc6012f(0x3dd)]['chartEditorOpen$']])['subscribe'](([_0x5e2c17,_0x3595b8])=>{const _0x16c9eb=_0xc6012f;(!_0x3595b8||this[_0x16c9eb(0x360)]&&(_0x5e2c17==null?void 0x0:_0x5e2c17['id'])!==this[_0x16c9eb(0x360)])&&this['_closePopup']();})),this[_0xc6012f(0x237)](this[_0xc6012f(0x2b0)][_0xc6012f(0x1fb)][_0xc6012f(0x32e)](({id:_0x19a6dd})=>{const _0x17aa12=_0xc6012f;this[_0x17aa12(0x348)](_0x19a6dd);})),this['disposeWithMe'](this[_0xc6012f(0x2b0)][_0xc6012f(0x22f)]['subscribe'](({id:_0x2c0699})=>{const _0x5c0888=_0xc6012f;this[_0x5c0888(0x348)](_0x2c0699);})),this[_0xc6012f(0x237)](this[_0xc6012f(0x230)][_0xc6012f(0x1f6)]['subscribe'](_0x77643d=>{const _0x2ed324=_0xc6012f;this[_0x2ed324(0x348)](_0x77643d);}));}['_openEditPanelByDoubleClick'](_0x3c6bf1){const _0x424d67=_0x69a5c7;if(this[_0x424d67(0x3dd)][_0x424d67(0x43a)])return;let _0x3c9d37=this[_0x424d67(0x3c5)][_0x424d67(0x3a4)](_0x3c6bf1),_0x4eaeb0=this['_sheetCanvasFloatDomManagerService'][_0x424d67(0x454)](_0x3c6bf1);_0x3c9d37&&_0x4eaeb0&&this[_0x424d67(0x465)][_0x424d67(0x37e)](H['id'],{'unitId':_0x4eaeb0[_0x424d67(0x1ee)],'subUnitId':_0x4eaeb0[_0x424d67(0x419)]??'','drawingId':_0x3c6bf1});}[_0x69a5c7(0x2ee)](_0x5544a9,_0x2a0f17){const _0xd310fc=_0x69a5c7;if(!this[_0xd310fc(0x3dd)][_0xd310fc(0x404)](_0x5544a9))return;let _0x3669b6=this[_0xd310fc(0x3c5)][_0xd310fc(0x3a4)](_0x5544a9),_0x4fd575=_0x3669b6?Kr(_0x3669b6,_0x2a0f17[_0xd310fc(0x378)]):void 0x0;if(!_0x4fd575){this['_chartUIService'][_0xd310fc(0x225)](),this[_0xd310fc(0x301)]();return;}let _0x3351e6=this['_sheetCanvasFloatDomManagerService']['getFloatDomInfo'](_0x5544a9);if(!_0x3669b6||!_0x3351e6){this[_0xd310fc(0x3dd)][_0xd310fc(0x225)](),this['_closePopup']();return;}let _0x51aa54=JSON['stringify']([_0x3351e6['unitId'],_0x3351e6[_0xd310fc(0x419)],_0x5544a9,_0x4fd575[_0xd310fc(0x289)]]);if(this[_0xd310fc(0x28a)]&&this[_0xd310fc(0x2da)]===_0x51aa54||(this[_0xd310fc(0x3dd)][_0xd310fc(0x287)](_0x5544a9,_0x4fd575['route']),this[_0xd310fc(0x301)](),!_0x4fd575['showFloatMenu']))return;let _0x593712=ua(_0x2a0f17,_0x3351e6[_0xd310fc(0x255)],()=>this[_0xd310fc(0x26e)](_0x5544a9));if(!_0x593712[_0xd310fc(0x2c0)]){_0x593712[_0xd310fc(0x393)]();return;}let _0x2393f4=this[_0xd310fc(0x299)]['attachPopupToDynamicAbsolutePosition'](_0x593712[_0xd310fc(0x41f)],_0x593712['anchorRect$'],{'componentKey':_0x4a8725,'constrainToCanvas':!0x0,'direction':_0xd310fc(0x3f6),'offset':[0x0,0x8],'extraProps':{'unitId':_0x3351e6['unitId'],'subUnitId':_0x3351e6[_0xd310fc(0x419)],'chartId':_0x5544a9,'drawingId':_0x5544a9,'element':_0x2a0f17[_0xd310fc(0x378)],'target':_0x4fd575[_0xd310fc(0x289)],'adapterKey':da}},_0x3351e6[_0xd310fc(0x1ee)],_0x3351e6['subUnitId'])??null;if(!_0x2393f4){_0x593712[_0xd310fc(0x393)]();return;}let _0x89698=new _0x2ae904();_0x89698[_0xd310fc(0x337)](_0x2393f4),_0x89698[_0xd310fc(0x337)](_0x593712),this['_popupDisposable']=_0x89698,this['_popupChartId']=_0x5544a9,this[_0xd310fc(0x2da)]=_0x51aa54;}[_0x69a5c7(0x301)](){const _0x5f3249=_0x69a5c7;var _0x50a842;(_0x50a842=this[_0x5f3249(0x28a)])==null||_0x50a842[_0x5f3249(0x393)](),this[_0x5f3249(0x28a)]=null,this[_0x5f3249(0x360)]=null,this['_popupSessionKey']=null;}[_0x69a5c7(0x348)](_0x1a0244){const _0xe8ccbb=_0x69a5c7;(this[_0xe8ccbb(0x3dd)][_0xe8ccbb(0x404)](_0x1a0244)||this[_0xe8ccbb(0x360)]===_0x1a0244)&&(this[_0xe8ccbb(0x3dd)]['clearPanelRoute'](),this['_popupChartId']===_0x1a0244&&this[_0xe8ccbb(0x301)]());}[_0x69a5c7(0x26e)](_0x66426f){const _0x1fcccc=_0x69a5c7;this[_0x1fcccc(0x348)](_0x66426f),this[_0x1fcccc(0x3dd)]['isElementEditModeActive'](_0x66426f)&&(this[_0x1fcccc(0x1e7)][_0x1fcccc(0x234)](_0x66426f,!0x1),this[_0x1fcccc(0x1e7)]['setElementEditMode'](_0x66426f,!0x0));}};fa=q([K(0x0,_0x345df3(_0xfc5243)),K(0x1,_0x345df3(J)),K(0x2,pi),K(0x3,_0x345df3(_0xd20d74)),K(0x4,_0x345df3(_0x5a2ef7)),K(0x5,Y),K(0x6,_0x345df3(_0x39aee3)),K(0x7,_0xb35996),K(0x8,_0x345df3(_0x21bd92))],fa);let pa=class extends _0x5f44fb{constructor(_0xb4f27e,_0x4bf2d4){const _0x8322f7=_0x69a5c7;super(),this[_0x8322f7(0x1f1)]=_0xb4f27e,this['_iconManager']=_0x4bf2d4,this[_0x8322f7(0x37c)](),this[_0x8322f7(0x40c)]();}['_registerIcons'](){const _0x2c9947=_0x69a5c7;this['disposeWithMe'](this[_0x2c9947(0x425)][_0x2c9947(0x33e)]({'PenIcon':_0x1980bd}));}[_0x69a5c7(0x40c)](){[[Ei,Ti]]['forEach'](([_0x2183ac,_0x9b88ef])=>{const _0x45ac12=_0x20d6;this[_0x45ac12(0x237)](this['_componentManager'][_0x45ac12(0x33e)](_0x2183ac,_0x9b88ef));});}};pa=q([K(0x0,_0x345df3(_0x78a75)),K(0x1,_0x345df3(_0x1e722e))],pa);let $=class extends _0x5a6cd9{constructor(_0x4781f4=wr,_0xc136f,_0x3dfba4,_0x432d0e){const _0x5e3cac=_0x69a5c7;super(),this[_0x5e3cac(0x3bc)]=_0x4781f4,this[_0x5e3cac(0x203)]=_0xc136f,this[_0x5e3cac(0x350)]=_0x3dfba4,this['_commandService']=_0x432d0e,W(this,_0x5e3cac(0x207),void 0x0);let {..._0x34c5cf}=_0x43ed0f({},wr,this[_0x5e3cac(0x3bc)]);this['_resolvedConfig']=_0x34c5cf,this[_0x5e3cac(0x350)][_0x5e3cac(0x3b0)](Cr,_0x34c5cf),this[_0x5e3cac(0x495)]();}['onStarting'](){const _0x47fb44=_0x69a5c7;this[_0x47fb44(0x203)][_0x47fb44(0x337)]([pa]),this[_0x47fb44(0x203)][_0x47fb44(0x39d)](pa);let _0x4e34ef=this['_injector'],_0x3e6aa7=[[Y,{'useClass':_i}],[pi,{'useClass':fi}],[ii],[J],[Xi],[ji],[Pi],[Fi],[Ji],[Z],[Yi]],_0x9301af=[[ji],[Fi],[Pi],[Xi],[Y],[Ji],[Z],[Yi]];this[_0x47fb44(0x207)][_0x47fb44(0x359)]&&(_0x3e6aa7[_0x47fb44(0x327)]([fa]),_0x9301af[_0x47fb44(0x327)]([fa])),_0x3e6aa7[_0x47fb44(0x330)](_0xa333ba=>_0x4e34ef[_0x47fb44(0x337)](_0xa333ba)),_0x13e92b(this[_0x47fb44(0x203)],_0x9301af);}[_0x69a5c7(0x3aa)](){const _0x3ffe07=_0x69a5c7;var _0x44249b;(_0x44249b=this[_0x3ffe07(0x203)][_0x3ffe07(0x39d)](ji))==null||_0x44249b[_0x3ffe07(0x26b)]();}['_initCommands'](){const _0x5813d9=_0x69a5c7;[U,Or,kr,Ar,jr,H,Tr][_0x5813d9(0x330)](_0x32b556=>this[_0x5813d9(0x237)](this[_0x5813d9(0x465)][_0x5813d9(0x2fd)](_0x32b556)));}};W($,_0x69a5c7(0x297),_0x3cb846[_0x69a5c7(0x216)]),W($,'pluginName','UniverSheetsChartUIPlugin'),W($,_0x69a5c7(0x296),Mi),W($,_0x69a5c7(0x4ae),Ni),$=q([_0x29ad3a(_0x1820fc,_0x5660da,_0x2e4d79,_0x404a8f,_0x4da14f,_0x4258cf,_0x222f25,_0x1ad69a,_0x5dca7f),K(0x1,_0x345df3(_0x21bd92)),K(0x2,_0x250254),K(0x3,_0xb35996)],$);export{H as ChartOpenPanelOperation,J as ChartRenderService,Y as ISheetsChartUIService,Cr as SHEETS_CHART_UI_PLUGIN_CONFIG_KEY,ji as SheetsChartUIController,Ur as SheetsChartUIMenuSchema,_i as SheetsChartUIService,Q as UniverSheetsChartMobileUIPlugin,$ as UniverSheetsChartUIPlugin,ua as createChartElementPopupAnchorObserver};