@univerjs-pro/docs-chart-ui 1.0.0-alpha.8 → 1.0.0-beta.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 (107) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -0
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -0
  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 -0
  10. package/lib/cjs/locale/it-IT.js +1 -0
  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 -0
  14. package/lib/cjs/locale/pt-BR.js +1 -0
  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 -0
  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 -0
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -0
  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 -0
  30. package/lib/es/locale/it-IT.js +1 -0
  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 -0
  34. package/lib/es/locale/pt-BR.js +1 -0
  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 -0
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.css +23 -66
  42. package/lib/index.js +1 -1
  43. package/lib/locale/ar-SA.js +1 -0
  44. package/lib/locale/ca-ES.js +1 -1
  45. package/lib/locale/de-DE.js +1 -0
  46. package/lib/locale/en-US.js +1 -1
  47. package/lib/locale/es-ES.js +1 -1
  48. package/lib/locale/fa-IR.js +1 -1
  49. package/lib/locale/fr-FR.js +1 -1
  50. package/lib/locale/id-ID.js +1 -0
  51. package/lib/locale/it-IT.js +1 -0
  52. package/lib/locale/ja-JP.js +1 -1
  53. package/lib/locale/ko-KR.js +1 -1
  54. package/lib/locale/pl-PL.js +1 -0
  55. package/lib/locale/pt-BR.js +1 -0
  56. package/lib/locale/ru-RU.js +1 -1
  57. package/lib/locale/sk-SK.js +1 -1
  58. package/lib/locale/vi-VN.js +1 -1
  59. package/lib/locale/zh-CN.js +1 -1
  60. package/lib/locale/zh-HK.js +1 -0
  61. package/lib/locale/zh-TW.js +1 -1
  62. package/lib/types/commands/operations/chart-dialog.operation.d.ts +2 -3
  63. package/lib/types/components/DocChartDataEditor.d.ts +4 -4
  64. package/lib/types/components/DocChartEditPanel.d.ts +87 -16
  65. package/lib/types/components/DocChartEditorDialog.d.ts +2 -3
  66. package/lib/types/components/DocChartPreview.d.ts +3 -4
  67. package/lib/types/controllers/components.controller.d.ts +2 -4
  68. package/lib/types/controllers/doc-chart-clipboard.controller.d.ts +2 -2
  69. package/lib/types/index.d.ts +5 -6
  70. package/lib/types/locale/ar-SA.d.ts +3 -0
  71. package/lib/types/locale/de-DE.d.ts +3 -0
  72. package/lib/types/locale/en-US.d.ts +108 -61
  73. package/lib/types/locale/id-ID.d.ts +3 -0
  74. package/lib/types/locale/it-IT.d.ts +3 -0
  75. package/lib/types/locale/pl-PL.d.ts +3 -0
  76. package/lib/types/locale/pt-BR.d.ts +3 -0
  77. package/lib/types/locale/zh-HK.d.ts +3 -0
  78. package/lib/types/menu/chart.menu.d.ts +4 -7
  79. package/lib/types/services/doc-chart-data-edit.service.d.ts +3 -8
  80. package/lib/types/services/doc-chart-host.d.ts +2 -14
  81. package/lib/types/services/doc-chart-insert.service.d.ts +4 -4
  82. package/lib/types/services/doc-chart-render.service.d.ts +6 -11
  83. package/lib/types/services/doc-chart-snapshot-render.service.d.ts +8 -51
  84. package/lib/types/services/doc-chart-ui.service.d.ts +21 -0
  85. package/lib/types/utils/ChartPanelOptions.d.ts +1 -9
  86. package/lib/umd/index.js +1 -1
  87. package/lib/umd/locale/ar-SA.js +1 -0
  88. package/lib/umd/locale/ca-ES.js +1 -1
  89. package/lib/umd/locale/de-DE.js +1 -0
  90. package/lib/umd/locale/en-US.js +1 -1
  91. package/lib/umd/locale/es-ES.js +1 -1
  92. package/lib/umd/locale/fa-IR.js +1 -1
  93. package/lib/umd/locale/fr-FR.js +1 -1
  94. package/lib/umd/locale/id-ID.js +1 -0
  95. package/lib/umd/locale/it-IT.js +1 -0
  96. package/lib/umd/locale/ja-JP.js +1 -1
  97. package/lib/umd/locale/ko-KR.js +1 -1
  98. package/lib/umd/locale/pl-PL.js +1 -0
  99. package/lib/umd/locale/pt-BR.js +1 -0
  100. package/lib/umd/locale/ru-RU.js +1 -1
  101. package/lib/umd/locale/sk-SK.js +1 -1
  102. package/lib/umd/locale/vi-VN.js +1 -1
  103. package/lib/umd/locale/zh-CN.js +1 -1
  104. package/lib/umd/locale/zh-HK.js +1 -0
  105. package/lib/umd/locale/zh-TW.js +1 -1
  106. package/package.json +17 -17
  107. package/lib/types/components/DocChartInlineTableEditor.d.ts +0 -11
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4152cc=_0xfc4a;(function(_0x3ca8b2,_0xb753fc){const _0x48487d=_0xfc4a,_0x4f1d33=_0x3ca8b2();while(!![]){try{const _0x7fc123=parseInt(_0x48487d(0x1c7))/0x1*(-parseInt(_0x48487d(0x448))/0x2)+-parseInt(_0x48487d(0x4a5))/0x3+-parseInt(_0x48487d(0x4dc))/0x4*(-parseInt(_0x48487d(0x1d9))/0x5)+parseInt(_0x48487d(0x27b))/0x6*(parseInt(_0x48487d(0x390))/0x7)+-parseInt(_0x48487d(0x419))/0x8+-parseInt(_0x48487d(0x1b1))/0x9*(parseInt(_0x48487d(0x3a7))/0xa)+parseInt(_0x48487d(0x2d0))/0xb;if(_0x7fc123===_0xb753fc)break;else _0x4f1d33['push'](_0x4f1d33['shift']());}catch(_0x4a0680){_0x4f1d33['push'](_0x4f1d33['shift']());}}}(_0x56f3,0xd31ad),Object[_0x4152cc(0x33c)](exports,Symbol[_0x4152cc(0x308)],{'value':'Module'}));let e=require('@univerjs/core'),t=require('@univerjs/design'),n=require('@univerjs/ui'),r=require('react'),i=require('@univerjs-pro/chart-ui'),a=require('@univerjs-pro/docs-chart'),o=require('react/jsx-runtime'),s=require('@univerjs-pro/engine-chart'),c=require('@univerjs/icons'),l=require('@univerjs/docs'),u=require('@univerjs/docs-ui'),d=require('@univerjs/docs-drawing'),f=require('@univerjs/docs-drawing-ui'),p=require('rxjs'),m=require('@univerjs-pro/license'),h=require('@univerjs/drawing'),g=require('@univerjs/engine-render');const _={'id':'doc.operation.open-doc-chart-insert-dialog','type':e['CommandType'][_0x4152cc(0x399)],'handler'(){return!0x0;}},v={'id':_0x4152cc(0x4d8),'type':e['CommandType'][_0x4152cc(0x399)],'handler'(){return!0x0;}};function y(_0x2c1ed2,_0x3ee798,_0x2db7f9=0x1,_0x309ceb=0x1){const _0x7a1d98=_0x4152cc;return(0x0,i[_0x7a1d98(0x425)])(_0x3ee798,a['parseInlineTable'],_0x2db7f9,_0x309ceb);}function ee(_0x16e6af){const _0x4f03ba=_0x4152cc;return(0x0,o['jsx'])(i[_0x4f03ba(0x1be)],{'values':_0x16e6af[_0x4f03ba(0x1ab)],'minRows':_0x16e6af[_0x4f03ba(0x3e7)],'minColumns':_0x16e6af[_0x4f03ba(0x379)],'parsePastedText':a[_0x4f03ba(0x41e)],'onChange':_0x16e6af['onChange']});}const b=_0x4152cc(0x4e1);let x=function(_0x141550){const _0x323c9e=_0x4152cc;return _0x141550[_0x323c9e(0x4bf)]=_0x323c9e(0x327),_0x141550[_0x323c9e(0x229)]=_0x323c9e(0x3f6),_0x141550;}({});function te(_0x565030){const _0x1701a9=_0x4152cc;let _0x24bff4=(0x0,n[_0x1701a9(0x21a)])(e[_0x1701a9(0x333)]),{values:_0x5a1c02,sharingCount:_0x4db50c=0x1,onCancel:_0x136639,onChange:_0xc0f9f0,onSubmit:_0xb905c0}=_0x565030,[_0x4d1f4a,_0x30decf]=(0x0,r[_0x1701a9(0x4c6)])(()=>_0x5a1c02[_0x1701a9(0x1c8)](_0x1677e0=>[..._0x1677e0])),[_0x3ddde3,_0x5e1466]=(0x0,r['useState'])(null),_0x39de99=_0x4db50c>0x1,_0x45c13d=_0x4c4bbd=>{_0x30decf(_0x4c4bbd),_0xc0f9f0==null||_0xc0f9f0(_0x4c4bbd);},_0x2ca735=_0x4d3f52=>{const _0x5559d0=_0x1701a9;let _0x31a322=(0x0,i['compactInlineTableValues'])(_0x4d1f4a);if(_0x31a322[_0x5559d0(0x29c)]===0x0){_0x5e1466(_0x24bff4['t'](_0x5559d0(0x445)));return;}_0x5e1466(null),_0xb905c0(_0x31a322,_0x4d3f52);};return(0x0,o[_0x1701a9(0x3d7)])('div',{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','children':[(0x0,o[_0x1701a9(0x450)])('div',{'className':_0x1701a9(0x2b4),'children':(0x0,o[_0x1701a9(0x450)])(ee,{'values':_0x4d1f4a,'onChange':_0x45c13d})}),_0x3ddde3&&(0x0,o[_0x1701a9(0x450)])(_0x1701a9(0x3d1),{'className':_0x1701a9(0x251),'children':_0x3ddde3}),(0x0,o[_0x1701a9(0x3d7)])(_0x1701a9(0x3d1),{'className':_0x1701a9(0x4b4),'children':[_0x136639&&(0x0,o[_0x1701a9(0x450)])(t[_0x1701a9(0x387)],{'type':'button','variant':'default','onClick':_0x136639,'children':_0x24bff4['t'](_0x1701a9(0x2e6))}),_0x39de99&&(0x0,o[_0x1701a9(0x450)])(t[_0x1701a9(0x387)],{'type':_0x1701a9(0x23a),'variant':_0x1701a9(0x349),'onClick':()=>_0x2ca735('duplicate'),'children':_0x24bff4['t']('docs-chart-ui.duplicate')}),(0x0,o[_0x1701a9(0x450)])(t[_0x1701a9(0x387)],{'type':_0x1701a9(0x23a),'variant':_0x1701a9(0x213),'onClick':()=>_0x2ca735('shared'),'children':_0x24bff4['t'](_0x1701a9(0x25d))})]})]});}function S(_0x3c8b23,_0x596090){return function(_0x20bd32,_0x114e4c){_0x596090(_0x20bd32,_0x114e4c,_0x3c8b23);};}function C(_0x14c41c,_0x9c4465,_0x51fd21,_0x283a3c){const _0x5ed372=_0x4152cc;var _0x452802=arguments['length'],_0x26f16f=_0x452802<0x3?_0x9c4465:_0x283a3c===null?_0x283a3c=Object['getOwnPropertyDescriptor'](_0x9c4465,_0x51fd21):_0x283a3c,_0x4b276b;if(typeof Reflect==_0x5ed372(0x2b8)&&typeof Reflect[_0x5ed372(0x35e)]==_0x5ed372(0x3ba))_0x26f16f=Reflect['decorate'](_0x14c41c,_0x9c4465,_0x51fd21,_0x283a3c);else{for(var _0x353e28=_0x14c41c['length']-0x1;_0x353e28>=0x0;_0x353e28--)(_0x4b276b=_0x14c41c[_0x353e28])&&(_0x26f16f=(_0x452802<0x3?_0x4b276b(_0x26f16f):_0x452802>0x3?_0x4b276b(_0x9c4465,_0x51fd21,_0x26f16f):_0x4b276b(_0x9c4465,_0x51fd21))||_0x26f16f);}return _0x452802>0x3&&_0x26f16f&&Object[_0x5ed372(0x33c)](_0x9c4465,_0x51fd21,_0x26f16f),_0x26f16f;}let w=class{constructor(_0x192c8c,_0x4fd6a3){const _0x2b5e52=_0x4152cc;this[_0x2b5e52(0x45a)]=_0x192c8c,this[_0x2b5e52(0x2ab)]=_0x4fd6a3;}[_0x4152cc(0x27d)](_0x2d0b93,_0x2e929d){const _0x328e21=_0x4152cc;let _0x2fecfe=this[_0x328e21(0x2ab)][_0x328e21(0x267)](_0x2d0b93,_0x2e929d),_0x4d5957=_0x2fecfe?this[_0x328e21(0x2ab)]['getDataSource'](_0x2d0b93,_0x2fecfe['dataSourceId']):void 0x0;return!_0x2fecfe||!_0x4d5957?null:{'unitId':_0x2d0b93,'chartId':_0x2e929d,'dataSourceId':_0x4d5957['id'],'values':_0x4d5957[_0x328e21(0x1ab)][_0x328e21(0x1c8)](_0x5495be=>[..._0x5495be]),'sharingCount':this['_resourceService'][_0x328e21(0x1db)](_0x2d0b93,_0x4d5957['id'])};}[_0x4152cc(0x2a6)](_0x245803,_0x1918ed,_0x578a0e){const _0x383a3e=_0x4152cc;return this['_resourceService']['getChart'](_0x245803,_0x1918ed)?this[_0x383a3e(0x45a)]['syncExecuteCommand'](a[_0x383a3e(0x21d)]['id'],{'unitId':_0x245803,'chartId':_0x1918ed,'chartType':_0x578a0e}):!0x1;}[_0x4152cc(0x480)](_0x1f78ae,_0x22439c,_0xe36611){const _0x461128=_0x4152cc;return this[_0x461128(0x2ab)][_0x461128(0x267)](_0x1f78ae,_0x22439c)?this[_0x461128(0x45a)][_0x461128(0x311)](a['UpdateDocChartConfigCommand']['id'],{'unitId':_0x1f78ae,'chartId':_0x22439c,'style':_0xe36611}):!0x1;}[_0x4152cc(0x2ae)](_0x507c3c,_0x397fd2,_0x5bb6fc){const _0x2bd47a=_0x4152cc;return this[_0x2bd47a(0x2ab)][_0x2bd47a(0x267)](_0x507c3c,_0x397fd2)?this[_0x2bd47a(0x45a)]['syncExecuteCommand'](a['UpdateDocChartConfigCommand']['id'],{'unitId':_0x507c3c,'chartId':_0x397fd2,'patch':{'context':_0x5bb6fc}}):!0x1;}[_0x4152cc(0x350)](_0x3abadf,_0x54f8c7,_0x3f7da4){const _0x2725b2=_0x4152cc;return this['_resourceService']['getChart'](_0x3abadf,_0x54f8c7)?this[_0x2725b2(0x45a)][_0x2725b2(0x311)](a['UpdateDocChartConfigCommand']['id'],{'unitId':_0x3abadf,'chartId':_0x54f8c7,'dataAggregation':_0x3f7da4}):!0x1;}[_0x4152cc(0x394)](_0x3aefa8,_0x441664,_0x1cf29b,_0x1459b6){const _0x2c7608=_0x4152cc;let _0x3615ca=(0x0,a[_0x2c7608(0x41e)])(_0x1cf29b);return _0x3615ca['length']!==0x0&&this['updateData'](_0x3aefa8,_0x441664,_0x3615ca,_0x1459b6);}[_0x4152cc(0x3a1)](_0x5712c6,_0x593325,_0x4a2f7c,_0x3feca0){const _0x22b94f=_0x4152cc;var _0xef393b;let _0x4b548e=this[_0x22b94f(0x27d)](_0x5712c6,_0x593325);if(!_0x4b548e||_0x4a2f7c[_0x22b94f(0x29c)]===0x0)return!0x1;let _0x4daba0=(_0xef393b=this[_0x22b94f(0x2ab)][_0x22b94f(0x267)](_0x5712c6,_0x593325))==null?void 0x0:_0xef393b[_0x22b94f(0x310)];if(_0x4daba0===void 0x0)return!0x1;let _0x352da2=(0x0,s[_0x22b94f(0x46e)])(_0x4daba0,_0x4a2f7c);if(!_0x352da2)return!0x1;let _0x49e05d=_0x4b548e[_0x22b94f(0x204)];if(_0x3feca0==='duplicate'&&_0x4b548e[_0x22b94f(0x391)]>0x1){if(!this[_0x22b94f(0x45a)][_0x22b94f(0x311)](a[_0x22b94f(0x344)]['id'],{'unitId':_0x5712c6,'chartId':_0x593325}))return!0x1;let _0x5e3d50=this['_resourceService'][_0x22b94f(0x267)](_0x5712c6,_0x593325);if(!_0x5e3d50)return!0x1;_0x49e05d=_0x5e3d50['dataSourceId'];}return this[_0x22b94f(0x45a)][_0x22b94f(0x311)](a['UpdateDocChartDataSourceCommand']['id'],{'unitId':_0x5712c6,'dataSourceId':_0x49e05d,'values':_0x352da2});}};w=C([S(0x0,e[_0x4152cc(0x3cd)]),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(a[_0x4152cc(0x1b0)]))],w);const ne=[{'label':_0x4152cc(0x3d5),'value':s['ChartTypeBits']['Line']},{'label':'docs-chart-ui.chartTypes.column','value':s[_0x4152cc(0x30e)][_0x4152cc(0x49d)]},{'label':_0x4152cc(0x231),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x1e2)]},{'label':_0x4152cc(0x2a8),'value':s['ChartTypeBits'][_0x4152cc(0x370)]},{'label':_0x4152cc(0x293),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x4a9)]},{'label':'docs-chart-ui.chartTypes.barPercentStacked','value':s[_0x4152cc(0x30e)]['BarPercentStacked']},{'label':_0x4152cc(0x42a),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x17a)]},{'label':'docs-chart-ui.chartTypes.areaStacked','value':s[_0x4152cc(0x30e)][_0x4152cc(0x286)]},{'label':_0x4152cc(0x22f),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x195)]},{'label':_0x4152cc(0x37a),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x330)]},{'label':'docs-chart-ui.chartTypes.combination','value':s[_0x4152cc(0x30e)][_0x4152cc(0x41a)]},{'label':_0x4152cc(0x4c0),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x383)]},{'label':_0x4152cc(0x4a0),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x1e3)]},{'label':_0x4152cc(0x4ba),'value':s['ChartTypeBits']['Funnel']},{'label':'docs-chart-ui.chartTypes.bubble','value':s[_0x4152cc(0x30e)][_0x4152cc(0x4bb)]},{'label':_0x4152cc(0x4aa),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x190)]},{'label':_0x4152cc(0x31c),'value':s[_0x4152cc(0x30e)]['Waterfall']},{'label':_0x4152cc(0x424),'value':s['ChartTypeBits']['Pareto']},{'label':_0x4152cc(0x3dd),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x3e4)]},{'label':'docs-chart-ui.chartTypes.heatmap','value':s['ChartTypeBits'][_0x4152cc(0x33b)]},{'label':_0x4152cc(0x19a),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x3d8)]},{'label':_0x4152cc(0x36e),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x332)]},{'label':_0x4152cc(0x357),'value':s['ChartTypeBits'][_0x4152cc(0x27e)]},{'label':_0x4152cc(0x1c0),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x1f6)]}],T=[s[_0x4152cc(0x30e)][_0x4152cc(0x4a9)],s['ChartTypeBits'][_0x4152cc(0x218)],s[_0x4152cc(0x30e)][_0x4152cc(0x286)],s[_0x4152cc(0x30e)]['AreaPercentStacked'],s[_0x4152cc(0x30e)][_0x4152cc(0x1ec)]],re=ne[_0x4152cc(0x3b0)](_0xde61d5=>!T[_0x4152cc(0x331)](_0xde61d5[_0x4152cc(0x3e8)])),ie=[{'label':_0x4152cc(0x2e5),'value':s['LegendPositionEnum'][_0x4152cc(0x2e5)]},{'label':_0x4152cc(0x3b7),'value':s['LegendPositionEnum'][_0x4152cc(0x3b7)]},{'label':_0x4152cc(0x47d),'value':s[_0x4152cc(0x3a4)][_0x4152cc(0x47d)]},{'label':'Left','value':s[_0x4152cc(0x3a4)][_0x4152cc(0x1d7)]},{'label':_0x4152cc(0x3ca),'value':s['LegendPositionEnum'][_0x4152cc(0x34a)]}],ae=[{'label':'Top','value':s[_0x4152cc(0x2c4)][_0x4152cc(0x2e5)]},{'label':'Right','value':s[_0x4152cc(0x2c4)][_0x4152cc(0x3b7)]},{'label':'Bottom','value':s[_0x4152cc(0x2c4)][_0x4152cc(0x47d)]},{'label':_0x4152cc(0x1d7),'value':s[_0x4152cc(0x2c4)][_0x4152cc(0x1d7)]},{'label':'None','value':s['TitlePositionEnum'][_0x4152cc(0x34a)]}],oe=[{'label':'Auto','value':s[_0x4152cc(0x477)][_0x4152cc(0x323)]},{'label':_0x4152cc(0x284),'value':s[_0x4152cc(0x477)]['Inside']},{'label':_0x4152cc(0x1d7),'value':s['SeriesLabelPosition']['Left']},{'label':'Right','value':s['SeriesLabelPosition'][_0x4152cc(0x3b7)]},{'label':_0x4152cc(0x2e5),'value':s[_0x4152cc(0x477)][_0x4152cc(0x2e5)]},{'label':_0x4152cc(0x47d),'value':s[_0x4152cc(0x477)][_0x4152cc(0x47d)]}],se=[{'label':_0x4152cc(0x284),'value':s[_0x4152cc(0x17b)][_0x4152cc(0x284)]},{'label':'Outside','value':s[_0x4152cc(0x17b)][_0x4152cc(0x3eb)]}],ce=[{'label':_0x4152cc(0x3ca),'value':''},{'label':'Stacked','value':s[_0x4152cc(0x407)][_0x4152cc(0x1e5)]},{'label':_0x4152cc(0x2ad),'value':s[_0x4152cc(0x407)]['Percent']}],E=[{'label':'Single','value':s[_0x4152cc(0x382)][_0x4152cc(0x408)]},{'label':_0x4152cc(0x233),'value':s[_0x4152cc(0x382)][_0x4152cc(0x233)]},{'label':_0x4152cc(0x1cd),'value':s[_0x4152cc(0x382)][_0x4152cc(0x418)]}],le=[{'label':_0x4152cc(0x304),'value':s['ChartBorderDashType'][_0x4152cc(0x304)]},{'label':_0x4152cc(0x3ff),'value':s['ChartBorderDashType'][_0x4152cc(0x3ff)]},{'label':_0x4152cc(0x4b1),'value':s[_0x4152cc(0x288)]['Dotted']}],ue=[0x1,0.9,0.7,0.5,0.3,0.1]['map'](_0x5689a0=>({'label':_0x5689a0*0x64+'%','value':String(_0x5689a0)})),de=[0x0,0x1,0x2,0x4,0x8]['map'](_0x3b479f=>({'label':_0x3b479f+'px','value':String(_0x3b479f)})),fe=[{'label':_0x4152cc(0x47b),'value':s[_0x4152cc(0x1fe)][_0x4152cc(0x47b)]},{'label':_0x4152cc(0x236),'value':s['LinePointShape'][_0x4152cc(0x236)]},{'label':_0x4152cc(0x25b),'value':s['LinePointShape'][_0x4152cc(0x25b)]},{'label':_0x4152cc(0x43b),'value':s[_0x4152cc(0x1fe)]['Diamond']},{'label':_0x4152cc(0x3ca),'value':s['LinePointShape'][_0x4152cc(0x3ca)]}],pe=[0x0,0x2,0x5,0x7,0xa,0xe]['map'](_0x3d7e80=>({'label':_0x3d7e80+'px','value':String(_0x3d7e80)})),me=[{'label':'Category','value':s['LabelContentType']['CategoryName']},{'label':_0x4152cc(0x4bc),'value':s['LabelContentType'][_0x4152cc(0x3c9)]},{'label':_0x4152cc(0x35d),'value':s[_0x4152cc(0x2ba)][_0x4152cc(0x35d)]},{'label':'Percentage','value':s[_0x4152cc(0x2ba)][_0x4152cc(0x3b3)]}],he=Object[_0x4152cc(0x1ab)](s[_0x4152cc(0x1b5)])[_0x4152cc(0x1c8)](_0x14dd5d=>({'label':_0x14dd5d,'value':_0x14dd5d})),ge=[{'label':_0x4152cc(0x1f1),'value':s['RadarShape'][_0x4152cc(0x1f1)]},{'label':'Circle','value':s['RadarShape'][_0x4152cc(0x47b)]}],_e=[{'label':_0x4152cc(0x358),'value':s[_0x4152cc(0x328)][_0x4152cc(0x358)]},{'label':_0x4152cc(0x1e5),'value':s[_0x4152cc(0x328)]['Stacked']}],ve=[{'label':_0x4152cc(0x2b2),'value':_0x4152cc(0x4c7)},{'label':_0x4152cc(0x363),'value':_0x4152cc(0x202)}],ye=[{'label':_0x4152cc(0x323),'value':s['RelationChartLayoutEnum'][_0x4152cc(0x3ca)]},{'label':_0x4152cc(0x459),'value':s[_0x4152cc(0x415)]['Circular']},{'label':'Force','value':s[_0x4152cc(0x415)][_0x4152cc(0x403)]}];function be(_0x4165c4){const _0x541445=_0x4152cc;let _0x414a34=!!(_0x4165c4&&s['chartBitsUtils'][_0x541445(0x206)](_0x4165c4,s['ChartTypeBits'][_0x541445(0x1e3)])),_0x30667d=!!(_0x4165c4&&s[_0x541445(0x341)][_0x541445(0x206)](_0x4165c4,s[_0x541445(0x30e)]['Pie'])),_0x308190=!!(_0x4165c4&&s[_0x541445(0x341)]['baseOn'](_0x4165c4,s[_0x541445(0x30e)][_0x541445(0x330)])),_0x49d861=!!(_0x4165c4&&s[_0x541445(0x341)]['baseOn'](_0x4165c4,s[_0x541445(0x30e)][_0x541445(0x491)])),_0x67d14e=!!(_0x4165c4&&s['chartBitsUtils'][_0x541445(0x206)](_0x4165c4,s['ChartTypeBits'][_0x541445(0x43c)])),_0x3815d7=!!(_0x4165c4&&s[_0x541445(0x341)]['baseOn'](_0x4165c4,s[_0x541445(0x30e)][_0x541445(0x1ec)])),_0x1a97d7=!!(_0x4165c4&&s['chartBitsUtils'][_0x541445(0x206)](_0x4165c4,s[_0x541445(0x30e)][_0x541445(0x332)])),_0x5c3156=_0x4165c4===s[_0x541445(0x30e)][_0x541445(0x27e)],_0x2c0eae=_0x4165c4===s['ChartTypeBits'][_0x541445(0x1f6)],_0xe521f7=!!(_0x4165c4&&s[_0x541445(0x341)][_0x541445(0x206)](_0x4165c4,s[_0x541445(0x30e)][_0x541445(0x190)])),_0x25b512=!!(_0x4165c4&&s[_0x541445(0x341)][_0x541445(0x206)](_0x4165c4,s[_0x541445(0x30e)]['Sankey'])),_0x2a2364=!!(_0x4165c4&&s[_0x541445(0x341)][_0x541445(0x206)](_0x4165c4,s[_0x541445(0x30e)][_0x541445(0x33b)])),_0x7e8aef=!!(_0x4165c4&&[s[_0x541445(0x30e)][_0x541445(0x3ef)],s[_0x541445(0x30e)][_0x541445(0x17a)],s[_0x541445(0x30e)][_0x541445(0x286)],s[_0x541445(0x30e)][_0x541445(0x195)],s['ChartTypeBits'][_0x541445(0x383)],s['ChartTypeBits'][_0x541445(0x41a)]][_0x541445(0x1d4)](_0x5dde63=>s[_0x541445(0x341)]['baseOn'](_0x4165c4,_0x5dde63))),_0x1d7b44=['chartStyle',_0x541445(0x489)];return _0x414a34&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x496)),!_0x414a34&&!_0x30667d&&!_0xe521f7&&!_0x25b512&&!_0x2a2364&&!_0x67d14e&&!_0x3815d7&&!_0x1a97d7&&!_0x2c0eae&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x188)),_0x7e8aef&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x45d)),_0x308190&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x1ea)),_0x67d14e&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x3d9)),_0x30667d&&_0x1d7b44[_0x541445(0x201)]('pie'),_0x49d861&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x396)),_0x2a2364&&_0x1d7b44[_0x541445(0x201)]('heatmap'),_0xe521f7&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x289)),!_0x414a34&&!_0x25b512&&!_0x2c0eae&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x32f)),!_0x414a34&&!_0x30667d&&!_0x308190&&!_0x49d861&&!_0xe521f7&&!_0x25b512&&!_0x2a2364&&!_0x2c0eae&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x482),_0x541445(0x423),_0x541445(0x228)),!_0x414a34&&!_0x30667d&&!_0x49d861&&!_0xe521f7&&!_0x25b512&&!_0x1a97d7&&!_0x5c3156&&!_0x2c0eae&&_0x1d7b44['push'](_0x541445(0x365)),_0x1d7b44;}function xe(_0xddea68){const _0x394a46=_0x4152cc;return!!(_0xddea68&&[s['ChartTypeBits'][_0x394a46(0x17a)],s[_0x394a46(0x30e)][_0x394a46(0x370)],s[_0x394a46(0x30e)]['AreaStacked'],s[_0x394a46(0x30e)][_0x394a46(0x4a9)],s['ChartTypeBits'][_0x394a46(0x195)],s[_0x394a46(0x30e)][_0x394a46(0x218)]][_0x394a46(0x1d4)](_0x23cf60=>s[_0x394a46(0x341)][_0x394a46(0x206)](_0xddea68,_0x23cf60)));}function Se(_0x5bbe17){const _0x22f4e2=_0x4152cc;return _0x5bbe17?s['chartBitsUtils'][_0x22f4e2(0x364)](_0x5bbe17,s[_0x22f4e2(0x3c7)]['PercentStack'])?s[_0x22f4e2(0x407)]['Percent']:s[_0x22f4e2(0x341)][_0x22f4e2(0x364)](_0x5bbe17,s['ChartAttributeBits'][_0x22f4e2(0x3bc)])?s['StackType']['Stacked']:'':'';}function Ce(_0x522970,_0x233407){const _0x145fb1=_0x4152cc;let _0x3053c1=s[_0x145fb1(0x341)][_0x145fb1(0x3a3)](_0x522970,s[_0x145fb1(0x3c7)][_0x145fb1(0x1ef)]|s[_0x145fb1(0x3c7)][_0x145fb1(0x3bc)]);return _0x233407===s[_0x145fb1(0x407)][_0x145fb1(0x1e5)]?_0x3053c1|s['ChartAttributeBits'][_0x145fb1(0x3bc)]:_0x233407===s[_0x145fb1(0x407)]['Percent']?_0x3053c1|s[_0x145fb1(0x3c7)][_0x145fb1(0x1ef)]:_0x3053c1;}function D(_0x3e4c62,_0x3b0695){const _0x171083=_0x4152cc;return(_0x3e4c62==null?'':String(_0x3e4c62)[_0x171083(0x28c)]())||_0x3b0695;}function we(_0x550a7b,_0x31af93){const _0x5afc18=_0x4152cc;var _0x42f30e;let _0x20f3df=(_0x42f30e=_0x31af93[_0x5afc18(0x4db)])==null?'row':_0x42f30e,_0xa64b7a=_0x550a7b[_0x5afc18(0x29c)],_0x468568=Math[_0x5afc18(0x404)](0x0,..._0x550a7b['map'](_0x28bf99=>_0x28bf99[_0x5afc18(0x29c)]));return _0x20f3df===_0x5afc18(0x47e)?Array['from']({'length':_0xa64b7a},(_0x32d13c,_0x3af9af)=>{const _0xec1b04=_0x5afc18;var _0x219b42;return{'label':D(_0x31af93[_0xec1b04(0x26b)]===!0x1||(_0x219b42=_0x550a7b[_0x3af9af])==null?void 0x0:_0x219b42[0x0],_0xec1b04(0x2f5)+(_0x3af9af+0x1)),'value':String(_0x3af9af)};}):Array[_0x5afc18(0x3d4)]({'length':_0x468568},(_0x356524,_0x2dd32a)=>{const _0x3c87b9=_0x5afc18;var _0x4ca86e;return{'label':D(_0x31af93[_0x3c87b9(0x2c5)]===!0x1||(_0x4ca86e=_0x550a7b[0x0])==null?void 0x0:_0x4ca86e[_0x2dd32a],'Column\x20'+(_0x2dd32a+0x1)),'value':String(_0x2dd32a)};});}function Te(_0x4de4c8,_0x19b1b1){const _0x496be3=_0x4152cc;let _0x1252b6=_0x4de4c8==null?s[_0x496be3(0x1b3)][_0x496be3(0x437)]:_0x4de4c8;return(_0x1252b6&_0x19b1b1)===_0x19b1b1?_0x1252b6&~_0x19b1b1:_0x1252b6|_0x19b1b1;}function Ee(_0x427f72){const _0x173078=_0x4152cc;var _0x125dad,_0x2ba00b,_0x5df6f7,_0x148ee5,_0x4dba9a,_0x19ca87,_0x5a2b60,_0x426ab2,_0x205ec1,_0x2ff76b,_0x264293,_0x50aed5,_0x2b9a2f,_0x3d98a9,_0x4d0fad,_0x4359b1,_0x2c7d61,_0x2e3805,_0x11cbbe,_0x429ed4,_0x871eb3,_0x13479c,_0x195fbb,_0xc98a48,_0x1af4a5,_0x25600f,_0x348a2b,_0x1eaef8,_0x2ab616,_0x44b10c,_0x2395f7,_0x2000f2,_0x29ca03,_0x44b7ba,_0x59cb4a,_0x28c229,_0xc78eb3,_0x3fa49f,_0x218fbc,_0x4c7592,_0x56294f,_0x35c6e1,_0x26c56c,_0x15c063,_0x5bd8f7,_0xb9cc26,_0x2374e1,_0x3181b5,_0x23edd3,_0x95151c,_0x2b6b8c,_0x257a7b,_0x1f4117,_0x24fecd,_0xf59abe,_0x47393e,_0x5acca5,_0x11094c,_0x7ccd47,_0x5832b6,_0x5820e1,_0x32a876,_0x303972,_0x50f826,_0x5e4174,_0x128f30,_0x4c38fd,_0x357175,_0x3a8772,_0x34b6f7,_0x1888c5,_0xd3b261,_0x3052a0,_0x5a50e9,_0x393be7,_0x16638f,_0x411e3d,_0x3aec6c,_0x72b4f,_0x1cb870,_0x1bd28a,_0x573d71,_0x253b75,_0x5e3b4b,_0x424d78,_0xd23c59,_0x3d3c60,_0x15eb86,_0x240977,_0x146d69,_0x2e3ea9,_0x30c5aa,_0x28569f,_0x4e7e38,_0x20833d,_0x1b10ed,_0x56dbe2,_0x1d4070,_0x1f6e9d,_0x2114cf,_0x339916,_0x480b4,_0x3f42e0,_0x18c96a,_0x14549f,_0x1dd3db,_0x3dbd8d,_0x308eed,_0x1f3f99,_0x116cb8,_0x1872fc,_0x371af0,_0x508a23,_0x1e87b4,_0x4fbe09,_0x2b534c,_0x34b5e6,_0x3d9d02,_0x40d0bc,_0xe886b4,_0x59de66,_0x2c61dd,_0x208906,_0x4bcda9,_0x4218cc,_0xcce4e0,_0x3cc9a9,_0x5acdd4,_0x3d2022,_0x3197ad,_0x4e71d2,_0x55e64b,_0x254511,_0x3e9a22,_0x526774,_0x14169f,_0x32953b,_0x474fab,_0x1b31e5,_0x3c62df,_0x522726,_0x49d57a,_0x38a172,_0x1d076a,_0x54e5f7,_0x25acee;let _0x1b7141=(0x0,n[_0x173078(0x21a)])(e[_0x173078(0x333)]),_0x2e95f3=(0x0,n[_0x173078(0x21a)])(s[_0x173078(0x1f8)]),[_0xfa7abc,_0x50a76d]=(0x0,r[_0x173078(0x4c6)])((_0x125dad=_0x427f72['initialTab'])==null?0x0:_0x125dad),_0x31a49c=(0x0,r[_0x173078(0x3c0)])(()=>(0x0,i[_0x173078(0x2c2)])(ne[_0x173078(0x1c8)](_0x3efe78=>({..._0x3efe78,'label':_0x1b7141['t'](_0x3efe78[_0x173078(0x2f0)])}))),[_0x1b7141]),_0x15f7df=(0x0,r[_0x173078(0x3c0)])(()=>(0x0,i[_0x173078(0x1f0)])(_0x2e95f3[_0x173078(0x2e3)](),_0x20eea4=>_0x2e95f3[_0x173078(0x2e7)](_0x20eea4)),[_0x2e95f3]),_0x401b00=(_0x2ba00b=(_0x5df6f7=_0x427f72[_0x173078(0x41f)])==null?void 0x0:_0x5df6f7['backgroundColor'])==null?s[_0x173078(0x1b3)][_0x173078(0x32b)]:_0x2ba00b,_0x3119c3=(_0x148ee5=(_0x4dba9a=_0x427f72[_0x173078(0x41f)])==null?void 0x0:_0x4dba9a[_0x173078(0x3bf)])==null?_0x173078(0x2fb):_0x148ee5,_0x4336ab=be(_0x427f72[_0x173078(0x310)]),_0x1b91c7=(_0x19ca87=_0x427f72[_0x173078(0x246)])==null?{}:_0x19ca87,_0x184db2=(_0x5a2b60=_0x1b91c7[_0x173078(0x3da)])==null?{}:_0x5a2b60,_0x350c10=xe(_0x427f72[_0x173078(0x310)]),_0x564c7e=!!(_0x427f72[_0x173078(0x310)]&&s['chartBitsUtils']['baseOn'](_0x427f72['chartType'],s['ChartTypeBits'][_0x173078(0x332)])),_0x548ada=(0x0,i[_0x173078(0x4c2)])(_0x427f72['chartType']),_0x307095=(_0x426ab2=_0x427f72[_0x173078(0x41f)])==null?void 0x0:_0x426ab2[_0x173078(0x2e1)],_0x293caa=typeof(_0x307095==null?void 0x0:_0x307095['color'])==_0x173078(0x1cc)?_0x307095[_0x173078(0x413)]:void 0x0,_0x560508=(0x0,r[_0x173078(0x3c0)])(()=>we(_0x427f72['values'],_0x1b91c7),[_0x1b91c7,_0x427f72[_0x173078(0x1ab)]]),_0x3d23a6=(_0x205ec1=_0x184db2[_0x173078(0x245)])==null?0x0:_0x205ec1,_0x36303c=(_0x2ff76b=_0x184db2[_0x173078(0x49e)])==null?_0x560508['map'](_0x2743dd=>Number(_0x2743dd[_0x173078(0x3e8)]))[_0x173078(0x3b0)](_0x30a79=>_0x30a79!==_0x3d23a6):_0x2ff76b,_0x2f18a4=_0x560508[_0x173078(0x3b0)](_0x282cb6=>Number(_0x282cb6['value'])!==_0x3d23a6),_0xf3eb68=(_0x451891,_0x1909de)=>{const _0x12323b=_0x173078;let _0x32d2c6=_0x36303c[_0x12323b(0x36a)]();_0x32d2c6[_0x451891]=Number(_0x1909de),_0x427f72['onContextChange']({'chartContext':{'seriesIndexes':_0x32d2c6}});},_0x5f309c=_0x202a19=>{const _0xa3df14=_0x173078;_0x427f72[_0xa3df14(0x268)]({'chartContext':{'seriesIndexes':_0x36303c['filter']((_0x42fb1e,_0x4270f6)=>_0x4270f6!==_0x202a19)}});},_0x66f1f0=new Map([[_0x173078(0x4ae),{'label':_0x1b7141['t'](_0x173078(0x410)),'children':(0x0,o['jsxs'])(_0x173078(0x3d1),{'className':_0x173078(0x3fc),'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x238),'value':(_0x264293=(_0x50aed5=_0x427f72['style'])==null?void 0x0:_0x50aed5[_0x173078(0x39d)])==null?(_0x2b9a2f=_0x15f7df[0x0])==null?void 0x0:_0x2b9a2f[_0x173078(0x3e8)]:_0x264293,'options':_0x15f7df,'onChange':_0x1953fd=>_0x427f72[_0x173078(0x2e9)]({'theme':_0x1953fd})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x2c3)],{'label':_0x1b7141['t']('docs-chart-ui.fill'),'value':_0x401b00,'onChange':_0x4062b6=>_0x427f72['onStyleChange']({'backgroundColor':_0x4062b6==null?void 0x0:_0x4062b6})}),(0x0,o['jsx'])(i['ChartColorField'],{'label':_0x1b7141['t'](_0x173078(0x406)),'value':_0x3119c3,'onChange':_0x15e64f=>_0x427f72['onStyleChange']({'borderColor':_0x15e64f==null?void 0x0:_0x15e64f})}),!_0x564c7e&&(0x0,o['jsx'])(i[_0x173078(0x234)],{'checked':(_0x3d98a9=(_0x4d0fad=_0x427f72[_0x173078(0x41f)])==null?void 0x0:_0x4d0fad[_0x173078(0x340)])!=null&&_0x3d98a9,'label':'Gradient\x20fill','onChange':_0x2de6a7=>_0x427f72['onStyleChange']({'gradientFill':_0x2de6a7})})]})}],[_0x173078(0x489),{'label':_0x1b7141['t'](_0x173078(0x385)),'children':(0x0,o['jsxs'])(_0x173078(0x3d1),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-3','children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x45f),'value':(_0x4359b1=(_0x2c7d61=_0x427f72[_0x173078(0x41f)])==null||(_0x2c7d61=_0x2c7d61['titles'])==null?void 0x0:_0x2c7d61[_0x173078(0x4a8)])==null?s[_0x173078(0x2c4)][_0x173078(0x2e5)]:_0x4359b1,'options':ae,'onChange':_0xf266f6=>_0x427f72[_0x173078(0x2e9)]({'titles':{'titlePosition':_0xf266f6}})}),(0x0,o[_0x173078(0x450)])(i['ChartTextField'],{'label':_0x1b7141['t'](_0x173078(0x4b5)),'value':(_0x2e3805=(_0x11cbbe=_0x427f72[_0x173078(0x41f)])==null||(_0x11cbbe=_0x11cbbe[_0x173078(0x196)])==null||(_0x11cbbe=_0x11cbbe[_0x173078(0x30c)])==null?void 0x0:_0x11cbbe[_0x173078(0x227)])==null?'':_0x2e3805,'onChange':_0xeca33d=>_0x427f72[_0x173078(0x2e9)]({'titles':{'title':{'content':_0xeca33d}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x393)],{'label':_0x1b7141['t']('docs-chart-ui.subtitle'),'value':(_0x429ed4=(_0x871eb3=_0x427f72[_0x173078(0x41f)])==null||(_0x871eb3=_0x871eb3[_0x173078(0x196)])==null||(_0x871eb3=_0x871eb3[_0x173078(0x1ac)])==null?void 0x0:_0x871eb3[_0x173078(0x227)])==null?'':_0x429ed4,'onChange':_0x39f1db=>_0x427f72[_0x173078(0x2e9)]({'titles':{'subtitle':{'content':_0x39f1db}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x393)],{'label':_0x1b7141['t'](_0x173078(0x1e6)),'value':(_0x13479c=(_0x195fbb=_0x427f72['style'])==null||(_0x195fbb=_0x195fbb[_0x173078(0x196)])==null||(_0x195fbb=_0x195fbb[_0x173078(0x338)])==null?void 0x0:_0x195fbb[_0x173078(0x227)])==null?'':_0x13479c,'onChange':_0x3c7ca4=>_0x427f72[_0x173078(0x2e9)]({'titles':{'xAxisTitle':{'content':_0x3c7ca4}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x393)],{'label':_0x1b7141['t']('docs-chart-ui.verticalAxisTitle'),'value':(_0xc98a48=(_0x1af4a5=_0x427f72['style'])==null||(_0x1af4a5=_0x1af4a5['titles'])==null||(_0x1af4a5=_0x1af4a5[_0x173078(0x2c6)])==null?void 0x0:_0x1af4a5[_0x173078(0x227)])==null?'':_0xc98a48,'onChange':_0x66965a=>_0x427f72[_0x173078(0x2e9)]({'titles':{'yAxisTitle':{'content':_0x66965a}}})}),(0x0,o[_0x173078(0x450)])(i['ChartTextField'],{'label':_0x173078(0x487),'value':(_0x25600f=(_0x348a2b=_0x427f72[_0x173078(0x41f)])==null||(_0x348a2b=_0x348a2b[_0x173078(0x196)])==null||(_0x348a2b=_0x348a2b[_0x173078(0x1a8)])==null?void 0x0:_0x348a2b['content'])==null?'':_0x25600f,'onChange':_0x1b04d1=>_0x427f72[_0x173078(0x2e9)]({'titles':{'rightYAxisTitle':{'content':_0x1b04d1}}})}),(0x0,o[_0x173078(0x3d7)])(i[_0x173078(0x497)],{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':_0x173078(0x3bd),'min':0x8,'value':(_0x1eaef8=(_0x2ab616=_0x427f72[_0x173078(0x41f)])==null||(_0x2ab616=_0x2ab616[_0x173078(0x196)])==null||(_0x2ab616=_0x2ab616[_0x173078(0x30c)])==null?void 0x0:_0x2ab616[_0x173078(0x4b2)])==null?s[_0x173078(0x1b3)][_0x173078(0x24e)]:_0x1eaef8,'onChange':_0x180030=>_0x427f72[_0x173078(0x2e9)]({'titles':{'title':{'fontSize':_0x180030}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':_0x173078(0x4cc),'min':0x8,'value':(_0x44b10c=(_0x2395f7=_0x427f72['style'])==null||(_0x2395f7=_0x2395f7[_0x173078(0x196)])==null||(_0x2395f7=_0x2395f7[_0x173078(0x338)])==null?void 0x0:_0x2395f7[_0x173078(0x4b2)])==null?s['defaultChartConfig']['textStyle']['fontSize']:_0x44b10c,'onChange':_0x478f3d=>_0x427f72['onStyleChange']({'titles':{'xAxisTitle':{'fontSize':_0x478f3d},'yAxisTitle':{'fontSize':_0x478f3d},'rightYAxisTitle':{'fontSize':_0x478f3d}}})})]})]})}],[_0x173078(0x188),{'label':_0x1b7141['t'](_0x173078(0x380)),'children':(0x0,o[_0x173078(0x3d7)])('div',{'className':_0x173078(0x254),'children':[(0x0,o['jsx'])(i['ChartEditBlockTitle'],{'title':_0x173078(0x461)}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x2c3)],{'label':_0x173078(0x1eb),'value':_0x293caa,'onChange':_0x47c5dd=>_0x427f72[_0x173078(0x2e9)]({'allSeriesStyle':{'color':_0x47c5dd==null?void 0x0:_0x47c5dd}})}),(0x0,o[_0x173078(0x3d7)])(i[_0x173078(0x497)],{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x33d),'value':String((_0x2000f2=_0x307095==null?void 0x0:_0x307095[_0x173078(0x441)])==null?0x1:_0x2000f2),'options':ue,'onChange':_0x272f2c=>_0x427f72['onStyleChange']({'allSeriesStyle':{'fillOpacity':Number(_0x272f2c)}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x1e4),'value':String((_0x29ca03=(_0x44b7ba=_0x427f72[_0x173078(0x41f)])==null||(_0x44b7ba=_0x44b7ba[_0x173078(0x2e1)])==null||(_0x44b7ba=_0x44b7ba['border'])==null?void 0x0:_0x44b7ba['width'])==null?s['defaultChartConfig']['borderStyle']['width']:_0x29ca03),'options':de,'onChange':_0x5a3812=>_0x427f72[_0x173078(0x2e9)]({'allSeriesStyle':{'border':{'width':Number(_0x5a3812)}}})})]}),(0x0,o[_0x173078(0x3d7)])(i['ChartPropertyRow'],{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x1bb),'value':(_0x59cb4a=(_0x28c229=_0x427f72[_0x173078(0x41f)])==null||(_0x28c229=_0x28c229[_0x173078(0x2e1)])==null||(_0x28c229=_0x28c229['border'])==null?void 0x0:_0x28c229['dashType'])==null?s[_0x173078(0x1b3)][_0x173078(0x3d0)][_0x173078(0x3e3)]:_0x59cb4a,'options':le,'onChange':_0x22e49a=>_0x427f72[_0x173078(0x2e9)]({'allSeriesStyle':{'border':{'dashType':_0x22e49a}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x314),'value':(_0xc78eb3=(_0x3fa49f=_0x427f72[_0x173078(0x41f)])==null||(_0x3fa49f=_0x3fa49f['allSeriesStyle'])==null||(_0x3fa49f=_0x3fa49f[_0x173078(0x38a)])==null?void 0x0:_0x3fa49f[_0x173078(0x2eb)])==null?s[_0x173078(0x1b3)][_0x173078(0x38a)][_0x173078(0x2eb)]:_0xc78eb3,'options':fe,'onChange':_0x498925=>_0x427f72[_0x173078(0x2e9)]({'allSeriesStyle':{'point':{'shape':_0x498925}}})})]}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x3f0),'value':String((_0x218fbc=(_0x4c7592=_0x427f72['style'])==null||(_0x4c7592=_0x4c7592[_0x173078(0x2e1)])==null||(_0x4c7592=_0x4c7592[_0x173078(0x38a)])==null?void 0x0:_0x4c7592[_0x173078(0x1c4)])==null?s['defaultChartConfig'][_0x173078(0x38a)][_0x173078(0x1c4)]:_0x218fbc),'options':pe,'onChange':_0x4f44cf=>_0x427f72[_0x173078(0x2e9)]({'allSeriesStyle':{'point':{'size':Number(_0x4f44cf)}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x56294f=(_0x35c6e1=_0x427f72[_0x173078(0x41f)])==null||(_0x35c6e1=_0x35c6e1[_0x173078(0x2e1)])==null||(_0x35c6e1=_0x35c6e1[_0x173078(0x2f0)])==null?void 0x0:_0x35c6e1[_0x173078(0x405)])!=null&&_0x56294f,'label':_0x1b7141['t'](_0x173078(0x3b6)),'onChange':_0x54cc2e=>_0x427f72[_0x173078(0x2e9)]({'allSeriesStyle':{'label':{'visible':_0x54cc2e}}})}),(0x0,o[_0x173078(0x450)])(i['ChartSelectField'],{'label':_0x173078(0x1fc),'value':(_0x26c56c=(_0x15c063=_0x427f72[_0x173078(0x41f)])==null||(_0x15c063=_0x15c063[_0x173078(0x2e1)])==null||(_0x15c063=_0x15c063['label'])==null?void 0x0:_0x15c063[_0x173078(0x465)])==null?s[_0x173078(0x477)][_0x173078(0x323)]:_0x26c56c,'options':oe,'onChange':_0x1e0d07=>_0x427f72[_0x173078(0x2e9)]({'allSeriesStyle':{'label':{'position':_0x1e0d07}}})}),(0x0,o['jsx'])(i[_0x173078(0x31d)],{'label':_0x173078(0x22b),'min':0x8,'value':(_0x5bd8f7=(_0xb9cc26=_0x427f72[_0x173078(0x41f)])==null||(_0xb9cc26=_0xb9cc26[_0x173078(0x2e1)])==null||(_0xb9cc26=_0xb9cc26[_0x173078(0x2f0)])==null?void 0x0:_0xb9cc26['fontSize'])==null?s[_0x173078(0x1b3)][_0x173078(0x4a2)][_0x173078(0x4b2)]:_0x5bd8f7,'onChange':_0x5ce0be=>_0x427f72[_0x173078(0x2e9)]({'allSeriesStyle':{'label':{'fontSize':_0x5ce0be}}})})]})}],['lineAndArea',{'label':_0x173078(0x2a9),'children':(0x0,o[_0x173078(0x450)])(_0x173078(0x3d1),{'className':_0x173078(0x254),'children':(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x199),'value':(_0x2374e1=(_0x3181b5=_0x427f72[_0x173078(0x41f)])==null||(_0x3181b5=_0x3181b5[_0x173078(0x336)])==null?void 0x0:_0x3181b5['lineStyle'])==null?s[_0x173078(0x337)]['Line']:_0x2374e1,'options':[{'label':'Line','value':s[_0x173078(0x337)][_0x173078(0x3ef)]},{'label':_0x173078(0x2f8),'value':s['AreaLineStyle'][_0x173078(0x2f8)]},{'label':'Step','value':s[_0x173078(0x337)][_0x173078(0x241)]}],'onChange':_0xc14219=>_0x427f72['onStyleChange']({'area':{'lineStyle':_0xc14219}})})})}],['pie',{'label':_0x1b7141['t'](_0x173078(0x231)),'children':(0x0,o[_0x173078(0x3d7)])('div',{'className':_0x173078(0x254),'children':[(0x0,o[_0x173078(0x450)])(i['ChartSelectField'],{'label':_0x173078(0x4e2),'value':String((_0x23edd3=(_0x95151c=_0x427f72[_0x173078(0x41f)])==null||(_0x95151c=_0x95151c[_0x173078(0x446)])==null?void 0x0:_0x95151c[_0x173078(0x372)])==null?0x0:_0x23edd3),'options':[0x0,0.25,0.5,0.75][_0x173078(0x1c8)](_0x42a850=>({'label':_0x42a850*0x64+'%','value':String(_0x42a850)})),'onChange':_0x598cda=>_0x427f72[_0x173078(0x2e9)]({'pie':{'doughnutHole':Number(_0x598cda)}})}),(0x0,o['jsx'])(i[_0x173078(0x234)],{'checked':(_0x2b6b8c=(_0x257a7b=_0x427f72[_0x173078(0x41f)])==null||(_0x257a7b=_0x257a7b[_0x173078(0x446)])==null||(_0x257a7b=_0x257a7b[_0x173078(0x29b)])==null?void 0x0:_0x257a7b[_0x173078(0x405)])==null||_0x2b6b8c,'label':_0x1b7141['t']('docs-chart-ui.showDataLabels'),'onChange':_0x19584f=>_0x427f72[_0x173078(0x2e9)]({'pie':{'labelStyle':{'visible':_0x19584f}}})}),(0x0,o['jsx'])(i['ChartSelectField'],{'label':_0x173078(0x1fc),'value':(_0x1f4117=(_0x24fecd=_0x427f72[_0x173078(0x41f)])==null||(_0x24fecd=_0x24fecd[_0x173078(0x446)])==null||(_0x24fecd=_0x24fecd[_0x173078(0x29b)])==null?void 0x0:_0x24fecd['position'])==null?s[_0x173078(0x17b)]['Outside']:_0x1f4117,'options':se,'onChange':_0x6be09c=>_0x427f72[_0x173078(0x2e9)]({'pie':{'labelStyle':{'position':_0x6be09c}}})}),(0x0,o['jsx'])('div',{'className':_0x173078(0x488),'children':me[_0x173078(0x3b0)](_0xb0a33c=>_0xb0a33c[_0x173078(0x3e8)]!==s[_0x173078(0x2ba)][_0x173078(0x3c9)])[_0x173078(0x1c8)](_0x26bfcc=>{const _0x52da5b=_0x173078;var _0x37a931,_0x58f421;let _0x44ea81=(_0x37a931=(_0x58f421=_0x427f72['style'])==null||(_0x58f421=_0x58f421[_0x52da5b(0x446)])==null||(_0x58f421=_0x58f421['labelStyle'])==null?void 0x0:_0x58f421[_0x52da5b(0x221)])==null?s[_0x52da5b(0x1b3)][_0x52da5b(0x446)]['labelContentType']:_0x37a931;return(0x0,o[_0x52da5b(0x450)])(t[_0x52da5b(0x1d2)],{'checked':(_0x44ea81&_0x26bfcc['value'])===_0x26bfcc[_0x52da5b(0x3e8)],'onChange':()=>_0x427f72[_0x52da5b(0x2e9)]({'pie':{'labelStyle':{'contentType':Te(_0x44ea81,_0x26bfcc[_0x52da5b(0x3e8)])}}}),'children':_0x26bfcc[_0x52da5b(0x2f0)]},_0x26bfcc[_0x52da5b(0x3e8)]);})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0xf59abe=(_0x47393e=_0x427f72[_0x173078(0x41f)])==null||(_0x47393e=_0x47393e[_0x173078(0x446)])==null?void 0x0:_0x47393e['showLabelLine'])==null||_0xf59abe,'label':_0x173078(0x2cc),'onChange':_0x33e0a1=>_0x427f72[_0x173078(0x2e9)]({'pie':{'showLabelLine':_0x33e0a1}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x5acca5=(_0x11094c=_0x427f72[_0x173078(0x41f)])==null||(_0x11094c=_0x11094c[_0x173078(0x446)])==null?void 0x0:_0x11094c[_0x173078(0x1dd)])!=null&&_0x5acca5,'label':'Rose\x20pie','onChange':_0x2d2bd7=>_0x427f72[_0x173078(0x2e9)]({'pie':{'rosePie':_0x2d2bd7}})}),(0x0,o[_0x173078(0x450)])(i['ChartCheckboxField'],{'checked':(_0x7ccd47=(_0x5832b6=_0x427f72[_0x173078(0x41f)])==null||(_0x5832b6=_0x5832b6[_0x173078(0x446)])==null?void 0x0:_0x5832b6[_0x173078(0x19c)])!=null&&_0x7ccd47,'label':_0x173078(0x26c),'onChange':_0x564dac=>_0x427f72[_0x173078(0x2e9)]({'pie':{'isHalfPie':_0x564dac}})})]})}],[_0x173078(0x396),{'label':_0x1b7141['t']('docs-chart-ui.chartTypes.funnel'),'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x254),'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':_0x173078(0x34e),'value':(_0x5820e1=(_0x32a876=_0x427f72[_0x173078(0x41f)])==null||(_0x32a876=_0x32a876['funnel'])==null?void 0x0:_0x32a876['gap'])==null?s[_0x173078(0x1b3)][_0x173078(0x396)]['gap']:_0x5820e1,'min':0x0,'onChange':_0x3445ea=>_0x427f72[_0x173078(0x2e9)]({'funnel':{'gap':_0x3445ea}})}),(0x0,o['jsx'])(i[_0x173078(0x234)],{'checked':(_0x303972=(_0x50f826=_0x427f72[_0x173078(0x41f)])==null||(_0x50f826=_0x50f826[_0x173078(0x396)])==null?void 0x0:_0x50f826[_0x173078(0x1ca)])!=null&&_0x303972,'label':_0x1b7141['t']('docs-chart-ui.useAbsoluteValue'),'onChange':_0x33dd07=>_0x427f72['onStyleChange']({'funnel':{'useAbsValue':_0x33dd07}})})]})}],[_0x173078(0x496),{'label':_0x1b7141['t'](_0x173078(0x4a0)),'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x254),'children':[(0x0,o['jsx'])(i['ChartSelectField'],{'label':'Shape','value':(_0x5e4174=(_0x128f30=_0x427f72[_0x173078(0x41f)])==null||(_0x128f30=_0x128f30[_0x173078(0x496)])==null?void 0x0:_0x128f30[_0x173078(0x2eb)])==null?s[_0x173078(0x1b3)][_0x173078(0x496)][_0x173078(0x2eb)]:_0x5e4174,'options':he,'onChange':_0x150941=>_0x427f72[_0x173078(0x2e9)]({'wordCloud':{'shape':_0x150941,'maskImage':_0x150941}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x4c38fd=(_0x357175=_0x427f72[_0x173078(0x41f)])==null||(_0x357175=_0x357175[_0x173078(0x496)])==null?void 0x0:_0x357175[_0x173078(0x1c6)])==null?s[_0x173078(0x1b3)]['wordCloud']['repeat']:_0x4c38fd,'label':_0x173078(0x2be),'onChange':_0x4e1475=>_0x427f72['onStyleChange']({'wordCloud':{'repeat':_0x4e1475}})})]})}],[_0x173078(0x1ea),{'label':_0x1b7141['t'](_0x173078(0x37a)),'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-3','children':[(0x0,o[_0x173078(0x450)])(i['ChartSelectField'],{'label':'Shape','value':(_0x3a8772=(_0x34b6f7=_0x427f72['style'])==null||(_0x34b6f7=_0x34b6f7[_0x173078(0x1ea)])==null?void 0x0:_0x34b6f7[_0x173078(0x2eb)])==null?s[_0x173078(0x1b3)][_0x173078(0x1ea)]['shape']:_0x3a8772,'options':ge,'onChange':_0x48ea68=>_0x427f72[_0x173078(0x2e9)]({'radar':{'shape':_0x48ea68}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x1888c5=(_0xd3b261=_0x427f72[_0x173078(0x41f)])==null||(_0xd3b261=_0xd3b261[_0x173078(0x1ea)])==null?void 0x0:_0xd3b261[_0x173078(0x48b)])!=null&&_0x1888c5,'label':_0x173078(0x306),'onChange':_0x344c2a=>_0x427f72[_0x173078(0x2e9)]({'radar':{'fill':_0x344c2a}})})]})}],[_0x173078(0x3d9),{'label':_0x1b7141['t'](_0x173078(0x31c)),'children':(0x0,o['jsxs'])(_0x173078(0x3d1),{'className':_0x173078(0x254),'children':[(0x0,o[_0x173078(0x450)])(i['ChartSelectField'],{'label':'Stack','value':(_0x3052a0=(_0x5a50e9=_0x427f72[_0x173078(0x41f)])==null||(_0x5a50e9=_0x5a50e9[_0x173078(0x3d9)])==null?void 0x0:_0x5a50e9[_0x173078(0x3f2)])==null?s[_0x173078(0x1b3)][_0x173078(0x3d9)][_0x173078(0x3f2)]:_0x3052a0,'options':_e,'onChange':_0x12663e=>_0x427f72[_0x173078(0x2e9)]({'waterfall':{'stackType':_0x12663e}})}),(0x0,o[_0x173078(0x450)])(i['ChartCheckboxField'],{'checked':(_0x393be7=(_0x16638f=_0x427f72['style'])==null||(_0x16638f=_0x16638f['waterfall'])==null?void 0x0:_0x16638f[_0x173078(0x40b)])==null?s[_0x173078(0x1b3)]['waterfall'][_0x173078(0x40b)]:_0x393be7,'label':'Use\x20subtotal','onChange':_0x49868c=>_0x427f72[_0x173078(0x2e9)]({'waterfall':{'useSubtotal':_0x49868c}})})]})}],['heatmap',{'label':_0x1b7141['t'](_0x173078(0x39e)),'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x254),'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x4b0),'value':(_0x411e3d=(_0x3aec6c=_0x427f72[_0x173078(0x41f)])==null||(_0x3aec6c=_0x3aec6c['heatmap'])==null?void 0x0:_0x3aec6c[_0x173078(0x39f)])==null?s[_0x173078(0x1b3)][_0x173078(0x2a3)]['visualMapType']:_0x411e3d,'options':ve,'onChange':_0xb7e6ab=>_0x427f72['onStyleChange']({'heatmap':{'visualMapType':_0xb7e6ab}})}),(0x0,o['jsxs'])(i[_0x173078(0x497)],{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':_0x173078(0x440),'value':(_0x72b4f=_0x427f72['style'])==null||(_0x72b4f=_0x72b4f[_0x173078(0x2a3)])==null?void 0x0:_0x72b4f[_0x173078(0x2bf)],'onChange':_0x8a73e1=>_0x427f72[_0x173078(0x2e9)]({'heatmap':{'min':_0x8a73e1}})}),(0x0,o['jsx'])(i[_0x173078(0x31d)],{'label':_0x173078(0x435),'value':(_0x1cb870=_0x427f72[_0x173078(0x41f)])==null||(_0x1cb870=_0x1cb870[_0x173078(0x2a3)])==null?void 0x0:_0x1cb870[_0x173078(0x404)],'onChange':_0xae266=>_0x427f72['onStyleChange']({'heatmap':{'max':_0xae266}})})]})]})}],[_0x173078(0x289),{'label':_0x1b7141['t'](_0x173078(0x4aa)),'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x254),'children':[(0x0,o[_0x173078(0x450)])(i['ChartSelectField'],{'label':_0x173078(0x2bd),'value':(_0x1bd28a=(_0x573d71=_0x427f72[_0x173078(0x41f)])==null||(_0x573d71=_0x573d71[_0x173078(0x289)])==null?void 0x0:_0x573d71[_0x173078(0x17f)])==null?s['RelationChartLayoutEnum'][_0x173078(0x3ca)]:_0x1bd28a,'options':ye,'onChange':_0x4db239=>_0x427f72[_0x173078(0x2e9)]({'relation':{'layout':_0x4db239}})}),(0x0,o['jsx'])(i[_0x173078(0x47a)],{'label':_0x173078(0x1d3),'value':(_0x253b75=(_0x5e3b4b=_0x427f72['style'])==null||(_0x5e3b4b=_0x5e3b4b['relation'])==null?void 0x0:_0x5e3b4b[_0x173078(0x2ce)])==null?s[_0x173078(0x1b3)][_0x173078(0x289)][_0x173078(0x2ce)]:_0x253b75,'options':fe,'onChange':_0x37de8c=>_0x427f72[_0x173078(0x2e9)]({'relation':{'nodeShape':_0x37de8c}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x424d78=(_0xd23c59=_0x427f72[_0x173078(0x41f)])==null||(_0xd23c59=_0xd23c59[_0x173078(0x289)])==null?void 0x0:_0xd23c59[_0x173078(0x20e)])!=null&&_0x424d78,'label':_0x173078(0x29a),'onChange':_0x35f83a=>_0x427f72[_0x173078(0x2e9)]({'relation':{'useValueAsSymbolSize':_0x35f83a}})})]})}],[_0x173078(0x32f),{'label':_0x1b7141['t'](_0x173078(0x429)),'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x254),'children':[(0x0,o[_0x173078(0x450)])(i['ChartSelectField'],{'label':_0x173078(0x25f),'value':(_0x3d3c60=(_0x15eb86=_0x427f72[_0x173078(0x41f)])==null||(_0x15eb86=_0x15eb86[_0x173078(0x32f)])==null?void 0x0:_0x15eb86[_0x173078(0x465)])==null?s[_0x173078(0x3a4)][_0x173078(0x47d)]:_0x3d3c60,'options':ie,'onChange':_0x23c19b=>_0x427f72[_0x173078(0x2e9)]({'legend':{'position':_0x23c19b}})}),(0x0,o[_0x173078(0x450)])(i['ChartLegendWrapField'],{'chartType':_0x427f72[_0x173078(0x310)],'position':(_0x240977=_0x427f72['style'])==null||(_0x240977=_0x240977[_0x173078(0x32f)])==null?void 0x0:_0x240977[_0x173078(0x465)],'wrap':(_0x146d69=_0x427f72[_0x173078(0x41f)])==null||(_0x146d69=_0x146d69[_0x173078(0x32f)])==null?void 0x0:_0x146d69[_0x173078(0x401)],'onChange':_0x2eef42=>_0x427f72['onStyleChange']({'legend':{'wrap':_0x2eef42}})}),(0x0,o['jsx'])(i[_0x173078(0x47a)],{'label':_0x173078(0x1e0),'value':(_0x2e3ea9=(_0x30c5aa=_0x427f72['style'])==null||(_0x30c5aa=_0x30c5aa[_0x173078(0x32f)])==null?void 0x0:_0x30c5aa[_0x173078(0x29f)])==null?s[_0x173078(0x1b3)]['legend'][_0x173078(0x29f)]:_0x2e3ea9,'options':E,'onChange':_0x5f3463=>_0x427f72['onStyleChange']({'legend':{'selectMode':_0x5f3463}})}),(0x0,o['jsx'])(i[_0x173078(0x31d)],{'label':'Label\x20font\x20size','min':0x8,'value':(_0x28569f=(_0x4e7e38=_0x427f72[_0x173078(0x41f)])==null||(_0x4e7e38=_0x4e7e38['legend'])==null||(_0x4e7e38=_0x4e7e38[_0x173078(0x2f0)])==null?void 0x0:_0x4e7e38[_0x173078(0x4b2)])==null?s[_0x173078(0x1b3)][_0x173078(0x4a2)][_0x173078(0x4b2)]:_0x28569f,'onChange':_0x485e86=>_0x427f72[_0x173078(0x2e9)]({'legend':{'label':{'fontSize':_0x485e86}}})})]})}],[_0x173078(0x482),{'label':_0x1b7141['t'](_0x173078(0x45e)),'children':(0x0,o['jsxs'])('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-3','children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x20833d=(_0x1b10ed=_0x427f72['style'])==null||(_0x1b10ed=_0x1b10ed[_0x173078(0x2c9)])==null?void 0x0:_0x1b10ed['lineVisible'])==null||_0x20833d,'label':_0x1b7141['t'](_0x173078(0x272)),'onChange':_0x3694ad=>_0x427f72['onStyleChange']({'xAxis':{'lineVisible':_0x3694ad}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x56dbe2=(_0x1d4070=_0x427f72['style'])==null||(_0x1d4070=_0x1d4070['xAxis'])==null||(_0x1d4070=_0x1d4070['label'])==null?void 0x0:_0x1d4070['visible'])==null||_0x56dbe2,'label':_0x1b7141['t'](_0x173078(0x335)),'onChange':_0x4cfe10=>_0x427f72[_0x173078(0x2e9)]({'xAxis':{'label':{'visible':_0x4cfe10}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x1f6e9d=(_0x2114cf=_0x427f72[_0x173078(0x41f)])==null||(_0x2114cf=_0x2114cf[_0x173078(0x2c9)])==null?void 0x0:_0x2114cf['reverse'])!=null&&_0x1f6e9d,'label':_0x1b7141['t'](_0x173078(0x1c9)),'onChange':_0x2b1a35=>_0x427f72[_0x173078(0x2e9)]({'xAxis':{'reverse':_0x2b1a35}})}),(0x0,o[_0x173078(0x3d7)])(i['ChartPropertyRow'],{'children':[(0x0,o[_0x173078(0x450)])(i['ChartNumberField'],{'label':_0x173078(0x440),'value':(_0x339916=(_0x480b4=_0x427f72['style'])==null||(_0x480b4=_0x480b4[_0x173078(0x2c9)])==null?void 0x0:_0x480b4[_0x173078(0x2bf)])==null?void 0x0:_0x339916,'onChange':_0x29e144=>_0x427f72[_0x173078(0x2e9)]({'xAxis':{'min':_0x29e144}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':_0x173078(0x435),'value':(_0x3f42e0=(_0x18c96a=_0x427f72[_0x173078(0x41f)])==null||(_0x18c96a=_0x18c96a[_0x173078(0x2c9)])==null?void 0x0:_0x18c96a[_0x173078(0x404)])==null?void 0x0:_0x3f42e0,'onChange':_0x14e45d=>_0x427f72[_0x173078(0x2e9)]({'xAxis':{'max':_0x14e45d}})})]}),(0x0,o[_0x173078(0x450)])(i['ChartTextField'],{'label':_0x173078(0x42e),'value':(_0x14549f=(_0x1dd3db=_0x427f72[_0x173078(0x41f)])==null||(_0x1dd3db=_0x1dd3db[_0x173078(0x2c9)])==null?void 0x0:_0x1dd3db['format'])==null?'':_0x14549f,'placeholder':_0x173078(0x242),'onChange':_0x3bdb38=>_0x427f72[_0x173078(0x2e9)]({'xAxis':{'format':_0x3bdb38}})}),(0x0,o[_0x173078(0x3d7)])(i['ChartPropertyRow'],{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':'Label\x20rotate','value':(_0x3dbd8d=(_0x308eed=_0x427f72['style'])==null||(_0x308eed=_0x308eed[_0x173078(0x2c9)])==null||(_0x308eed=_0x308eed['label'])==null?void 0x0:_0x308eed[_0x173078(0x260)])==null?0x0:_0x3dbd8d,'onChange':_0x19d99b=>_0x427f72['onStyleChange']({'xAxis':{'label':{'rotate':_0x19d99b}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':_0x173078(0x22b),'min':0x8,'value':(_0x1f3f99=(_0x116cb8=_0x427f72[_0x173078(0x41f)])==null||(_0x116cb8=_0x116cb8[_0x173078(0x2c9)])==null||(_0x116cb8=_0x116cb8[_0x173078(0x2f0)])==null?void 0x0:_0x116cb8['fontSize'])==null?s[_0x173078(0x1b3)][_0x173078(0x4a2)]['fontSize']:_0x1f3f99,'onChange':_0x160d4e=>_0x427f72['onStyleChange']({'xAxis':{'label':{'fontSize':_0x160d4e}}})})]}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x1872fc=(_0x371af0=_0x427f72[_0x173078(0x41f)])==null||(_0x371af0=_0x371af0[_0x173078(0x2c9)])==null||(_0x371af0=_0x371af0['tick'])==null?void 0x0:_0x371af0[_0x173078(0x405)])!=null&&_0x1872fc,'label':_0x173078(0x35b),'onChange':_0x55aaa1=>_0x427f72[_0x173078(0x2e9)]({'xAxis':{'tick':{'visible':_0x55aaa1}}})})]})}],[_0x173078(0x423),{'label':_0x1b7141['t'](_0x173078(0x1fa)),'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x254),'children':[(0x0,o[_0x173078(0x450)])(i['ChartCheckboxField'],{'checked':(_0x508a23=(_0x1e87b4=_0x427f72[_0x173078(0x41f)])==null||(_0x1e87b4=_0x1e87b4[_0x173078(0x18b)])==null?void 0x0:_0x1e87b4['lineVisible'])==null||_0x508a23,'label':_0x1b7141['t'](_0x173078(0x272)),'onChange':_0x462b55=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'lineVisible':_0x462b55}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x4fbe09=(_0x2b534c=_0x427f72[_0x173078(0x41f)])==null||(_0x2b534c=_0x2b534c[_0x173078(0x18b)])==null||(_0x2b534c=_0x2b534c[_0x173078(0x2f0)])==null?void 0x0:_0x2b534c[_0x173078(0x405)])==null||_0x4fbe09,'label':_0x1b7141['t'](_0x173078(0x335)),'onChange':_0x207ce6=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'label':{'visible':_0x207ce6}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x34b5e6=(_0x3d9d02=_0x427f72[_0x173078(0x41f)])==null||(_0x3d9d02=_0x3d9d02['yAxis'])==null?void 0x0:_0x3d9d02[_0x173078(0x471)])!=null&&_0x34b5e6,'label':_0x1b7141['t'](_0x173078(0x1c9)),'onChange':_0x2963ea=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'reverse':_0x2963ea}})}),(0x0,o[_0x173078(0x3d7)])(i[_0x173078(0x497)],{'children':[(0x0,o[_0x173078(0x450)])(i['ChartNumberField'],{'label':_0x173078(0x440),'value':(_0x40d0bc=(_0xe886b4=_0x427f72[_0x173078(0x41f)])==null||(_0xe886b4=_0xe886b4['yAxis'])==null?void 0x0:_0xe886b4[_0x173078(0x2bf)])==null?void 0x0:_0x40d0bc,'onChange':_0x52ba0a=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'min':_0x52ba0a}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':_0x173078(0x435),'value':(_0x59de66=(_0x2c61dd=_0x427f72['style'])==null||(_0x2c61dd=_0x2c61dd['yAxis'])==null?void 0x0:_0x2c61dd[_0x173078(0x404)])==null?void 0x0:_0x59de66,'onChange':_0x95164c=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'max':_0x95164c}})})]}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x393)],{'label':'Number/date\x20format','value':(_0x208906=(_0x4bcda9=_0x427f72[_0x173078(0x41f)])==null||(_0x4bcda9=_0x4bcda9['yAxis'])==null?void 0x0:_0x4bcda9['format'])==null?'':_0x208906,'placeholder':_0x173078(0x242),'onChange':_0x5b910b=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'format':_0x5b910b}})}),(0x0,o[_0x173078(0x3d7)])(i[_0x173078(0x497)],{'children':[(0x0,o[_0x173078(0x450)])(i['ChartNumberField'],{'label':_0x173078(0x1a9),'value':(_0x4218cc=(_0xcce4e0=_0x427f72[_0x173078(0x41f)])==null||(_0xcce4e0=_0xcce4e0[_0x173078(0x18b)])==null||(_0xcce4e0=_0xcce4e0['label'])==null?void 0x0:_0xcce4e0[_0x173078(0x260)])==null?0x0:_0x4218cc,'onChange':_0x3d8553=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'label':{'rotate':_0x3d8553}}})}),(0x0,o['jsx'])(i[_0x173078(0x31d)],{'label':_0x173078(0x22b),'min':0x8,'value':(_0x3cc9a9=(_0x5acdd4=_0x427f72[_0x173078(0x41f)])==null||(_0x5acdd4=_0x5acdd4[_0x173078(0x18b)])==null||(_0x5acdd4=_0x5acdd4[_0x173078(0x2f0)])==null?void 0x0:_0x5acdd4[_0x173078(0x4b2)])==null?s['defaultChartConfig'][_0x173078(0x4a2)][_0x173078(0x4b2)]:_0x3cc9a9,'onChange':_0x39135f=>_0x427f72['onStyleChange']({'yAxis':{'label':{'fontSize':_0x39135f}}})})]}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x3d2022=(_0x3197ad=_0x427f72[_0x173078(0x41f)])==null||(_0x3197ad=_0x3197ad['yAxis'])==null||(_0x3197ad=_0x3197ad['tick'])==null?void 0x0:_0x3197ad['visible'])!=null&&_0x3d2022,'label':_0x173078(0x35b),'onChange':_0x2f5400=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'tick':{'visible':_0x2f5400}}})})]})}],['gridlinesAndTicks',{'label':_0x1b7141['t'](_0x173078(0x474)),'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x1aa),'children':[(0x0,o['jsx'])(i[_0x173078(0x234)],{'checked':(_0x4e71d2=(_0x55e64b=_0x427f72[_0x173078(0x41f)])==null||(_0x55e64b=_0x55e64b[_0x173078(0x2c9)])==null||(_0x55e64b=_0x55e64b[_0x173078(0x1e1)])==null?void 0x0:_0x55e64b['visible'])==null||_0x4e71d2,'label':_0x1b7141['t'](_0x173078(0x45e)),'onChange':_0x207e40=>_0x427f72[_0x173078(0x2e9)]({'xAxis':{'gridLine':{'visible':_0x207e40}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x254511=(_0x3e9a22=_0x427f72['style'])==null||(_0x3e9a22=_0x3e9a22[_0x173078(0x18b)])==null||(_0x3e9a22=_0x3e9a22[_0x173078(0x1e1)])==null?void 0x0:_0x3e9a22[_0x173078(0x405)])==null||_0x254511,'label':_0x1b7141['t'](_0x173078(0x1fa)),'onChange':_0x343f26=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'gridLine':{'visible':_0x343f26}}})}),(0x0,o[_0x173078(0x3d7)])(i[_0x173078(0x497)],{'children':[(0x0,o[_0x173078(0x450)])(i['ChartNumberField'],{'label':_0x173078(0x3f3),'min':0x0,'value':(_0x526774=(_0x14169f=_0x427f72[_0x173078(0x41f)])==null||(_0x14169f=_0x14169f[_0x173078(0x2c9)])==null||(_0x14169f=_0x14169f[_0x173078(0x1e1)])==null?void 0x0:_0x14169f[_0x173078(0x447)])==null?0x1:_0x526774,'onChange':_0x32c47f=>_0x427f72[_0x173078(0x2e9)]({'xAxis':{'gridLine':{'width':_0x32c47f}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':_0x173078(0x398),'min':0x0,'value':(_0x32953b=(_0x474fab=_0x427f72['style'])==null||(_0x474fab=_0x474fab[_0x173078(0x18b)])==null||(_0x474fab=_0x474fab['gridLine'])==null?void 0x0:_0x474fab[_0x173078(0x447)])==null?0x1:_0x32953b,'onChange':_0x440c4e=>_0x427f72['onStyleChange']({'yAxis':{'gridLine':{'width':_0x440c4e}}})})]})]})}],[_0x173078(0x365),{'label':_0x1b7141['t']('docs-chart-ui.indicatorLine'),'children':(0x0,o['jsxs'])(_0x173078(0x3d1),{'className':_0x173078(0x1aa),'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x2c3)],{'label':'Color','value':(_0x1b31e5=_0x427f72['style'])==null||(_0x1b31e5=_0x1b31e5[_0x173078(0x4ab)])==null?void 0x0:_0x1b31e5[_0x173078(0x28a)],'onChange':_0x205756=>_0x427f72[_0x173078(0x2e9)]({'tooltip':{'indicatorLineColor':_0x205756==null?'#666666':_0x205756}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':'Line\x20type','value':(_0x3c62df=(_0x522726=_0x427f72[_0x173078(0x41f)])==null||(_0x522726=_0x522726['tooltip'])==null?void 0x0:_0x522726[_0x173078(0x309)])==null?s[_0x173078(0x1b3)][_0x173078(0x309)]:_0x3c62df,'options':le,'onChange':_0x56262f=>_0x427f72[_0x173078(0x2e9)]({'tooltip':{'indicatorLineType':_0x56262f}})})]})}]]),_0x49df5e=_0x4336ab['map'](_0x2424de=>_0x66f1f0[_0x173078(0x4bd)](_0x2424de))[_0x173078(0x3b0)](_0x4904dd=>!!_0x4904dd);return(0x0,o['jsx'])(i[_0x173078(0x276)],{'contentClassName':_0x173078(0x232),'tab':_0xfa7abc,'items':[{'label':_0x1b7141['t'](_0x173078(0x456)),'value':0x0},{'label':_0x1b7141['t'](_0x173078(0x1da)),'value':0x1}],'footer':_0x427f72[_0x173078(0x277)]&&(0x0,o[_0x173078(0x450)])(_0x173078(0x3d1),{'className':_0x173078(0x3c2),'children':(0x0,o[_0x173078(0x450)])(t['Button'],{'type':_0x173078(0x23a),'variant':'default','onClick':_0x427f72['onClose'],'children':_0x1b7141['t'](_0x173078(0x3c1))})}),'onTabChange':_0x50a76d,'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x4ad),'children':[_0xfa7abc===0x0&&(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-px-1','children':[(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x374)],{'title':_0x1b7141['t'](_0x173078(0x366))}),(0x0,o[_0x173078(0x450)])(t['Select'],{'className':_0x173078(0x3e6),'value':String(_0x427f72[_0x173078(0x310)]),'options':_0x31a49c,'onChange':_0x3f0056=>_0x427f72[_0x173078(0x4d6)](Number(_0x3f0056))})]}),(0x0,o['jsxs'])('div',{'children':[(0x0,o['jsx'])(i[_0x173078(0x374)],{'title':_0x173078(0x2b7)}),(0x0,o[_0x173078(0x450)])(t[_0x173078(0x2d2)],{'className':_0x173078(0x3e6),'value':(_0x49d57a=(_0x38a172=_0x427f72['style'])==null?void 0x0:_0x38a172[_0x173078(0x39d)])==null?(_0x1d076a=_0x15f7df[0x0])==null?void 0x0:_0x1d076a[_0x173078(0x3e8)]:_0x49d57a,'options':_0x15f7df,'onChange':_0x574746=>_0x427f72[_0x173078(0x2e9)]({'theme':_0x574746})})]}),!_0x564c7e&&(0x0,o[_0x173078(0x450)])(_0x173078(0x3d1),{'className':_0x173078(0x46b),'children':(0x0,o[_0x173078(0x450)])(t[_0x173078(0x1d2)],{'checked':(_0x54e5f7=(_0x25acee=_0x427f72['style'])==null?void 0x0:_0x25acee[_0x173078(0x340)])!=null&&_0x54e5f7,'onChange':_0x14982d=>_0x427f72[_0x173078(0x2e9)]({'gradientFill':!!_0x14982d}),'children':_0x173078(0x2f7)})}),_0x350c10&&(0x0,o['jsxs'])(_0x173078(0x3d1),{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x374)],{'title':_0x173078(0x3bc)}),(0x0,o['jsx'])(t[_0x173078(0x2d2)],{'className':_0x173078(0x3e6),'value':Se(_0x427f72[_0x173078(0x310)]),'options':ce,'onChange':_0xf11970=>_0x427f72[_0x173078(0x4d6)](Ce(_0x427f72[_0x173078(0x310)],_0xf11970))})]}),(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x374)],{'title':_0x1b7141['t'](_0x173078(0x296))}),(0x0,o['jsx'])(t[_0x173078(0x387)],{'type':_0x173078(0x23a),'variant':_0x173078(0x349),'className':_0x173078(0x2cb),'onClick':_0x427f72['onModifyData'],'children':_0x1b7141['t'](_0x173078(0x1af))})]}),_0x548ada!==_0x173078(0x23b)&&(0x0,o['jsx'])(i[_0x173078(0x20c)],{'chartType':_0x427f72[_0x173078(0x310)],'context':_0x184db2,'fields':_0x560508,'labels':{'candlestick':{'category':_0x1b7141['t'](_0x173078(0x2ac)),'close':_0x1b7141['t'](_0x173078(0x249)),'high':_0x1b7141['t']('docs-chart-ui.candlestick.high'),'low':_0x1b7141['t'](_0x173078(0x285)),'open':_0x1b7141['t'](_0x173078(0x359))},'histogramValue':_0x1b7141['t']('docs-chart-ui.histogram.value'),'treemapHierarchy':_0x1b7141['t']('docs-chart-ui.treemap.hierarchy'),'treemapValue':_0x1b7141['t']('docs-chart-ui.treemap.value')},'onChange':_0xd95e22=>_0x427f72[_0x173078(0x268)]({..._0x1b91c7,'chartContext':{..._0x184db2,..._0xd95e22}})}),_0x548ada===_0x173078(0x23b)&&(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x374)],{'title':'Category'}),(0x0,o[_0x173078(0x450)])(t[_0x173078(0x2d2)],{'className':_0x173078(0x3e6),'value':String(_0x3d23a6),'options':_0x560508,'onChange':_0x5f36e7=>_0x427f72[_0x173078(0x268)]({'chartContext':{'categoryIndex':Number(_0x5f36e7)}})})]}),_0x548ada==='category-series'&&(0x0,o[_0x173078(0x3d7)])('div',{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x374)],{'title':_0x1b7141['t'](_0x173078(0x380))}),(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x3de),'children':[_0x36303c[_0x173078(0x1c8)]((_0x186380,_0x189f28)=>(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':'univer-mb-2\x20univer-flex\x20univer-items-center','children':[(0x0,o['jsx'])(t['Select'],{'className':_0x173078(0x3e6),'value':String(_0x186380),'options':_0x2f18a4,'onChange':_0x34f223=>_0xf3eb68(_0x189f28,_0x34f223)}),(0x0,o[_0x173078(0x450)])(_0x173078(0x3d1),{'className':_0x173078(0x225),'onClick':()=>_0x5f309c(_0x189f28),'children':(0x0,o['jsx'])(c[_0x173078(0x351)],{})})]},_0x186380+'-'+_0x189f28)),(0x0,o[_0x173078(0x450)])(t[_0x173078(0x49c)],{'className':_0x173078(0x270),'items':_0x2f18a4[_0x173078(0x3b0)](_0x30d689=>!_0x36303c['includes'](Number(_0x30d689[_0x173078(0x3e8)])))['map'](_0x47f1e1=>({'type':'item','children':_0x47f1e1[_0x173078(0x2f0)],'onSelect':()=>{const _0xc45e32=_0x173078;_0x427f72[_0xc45e32(0x268)]({'chartContext':{'seriesIndexes':[..._0x36303c,Number(_0x47f1e1[_0xc45e32(0x3e8)])]}});}})),'children':(0x0,o[_0x173078(0x3d7)])('a',{'className':'univer-mb-2\x20univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-text-primary-600','children':[(0x0,o[_0x173078(0x450)])(c[_0x173078(0x4d5)],{'className':_0x173078(0x469)}),(0x0,o[_0x173078(0x450)])('span',{'className':_0x173078(0x32c),'children':'Add\x20series'})]})})]})]}),_0x548ada==='category-series'&&(0x0,o[_0x173078(0x450)])(_0x173078(0x3d1),{'className':'univer-mt-2-base','children':(0x0,o[_0x173078(0x450)])(t[_0x173078(0x387)],{'size':_0x173078(0x34c),'onClick':()=>{const _0x1ff4e5=_0x173078;_0x427f72[_0x1ff4e5(0x268)]({'orient':_0x1b91c7[_0x1ff4e5(0x4db)]===_0x1ff4e5(0x262)?'column':_0x1ff4e5(0x262)});},'children':'Switch\x20to\x20row/column'})})]}),_0xfa7abc===0x1&&(0x0,o[_0x173078(0x450)])(t[_0x173078(0x3a8)],{'className':_0x173078(0x219),'items':_0x49df5e})]})});}function O(_0x4d53f6){'@babel/helpers - typeof';const _0x22883c=_0x4152cc;return O=typeof Symbol==_0x22883c(0x3ba)&&typeof Symbol['iterator']==_0x22883c(0x4c3)?function(_0x34f8a6){return typeof _0x34f8a6;}:function(_0x22130c){const _0x98ddf2=_0x22883c;return _0x22130c&&typeof Symbol==_0x98ddf2(0x3ba)&&_0x22130c[_0x98ddf2(0x2dc)]===Symbol&&_0x22130c!==Symbol[_0x98ddf2(0x1a3)]?'symbol':typeof _0x22130c;},O(_0x4d53f6);}function De(_0x142328,_0x4998d0){const _0x3f538b=_0x4152cc;if(O(_0x142328)!=_0x3f538b(0x2b8)||!_0x142328)return _0x142328;var _0x4042a0=_0x142328[Symbol['toPrimitive']];if(_0x4042a0!==void 0x0){var _0x19023e=_0x4042a0[_0x3f538b(0x203)](_0x142328,_0x4998d0||_0x3f538b(0x349));if(O(_0x19023e)!=_0x3f538b(0x2b8))return _0x19023e;throw TypeError(_0x3f538b(0x38c));}return(_0x4998d0===_0x3f538b(0x1cc)?String:Number)(_0x142328);}function _0xfc4a(_0x19fe44,_0x146f3d){_0x19fe44=_0x19fe44-0x17a;const _0x56f308=_0x56f3();let _0xfc4af3=_0x56f308[_0x19fe44];return _0xfc4af3;}function Oe(_0x42e8f8){const _0x1838d8=_0x4152cc;var _0xe75e1e=De(_0x42e8f8,_0x1838d8(0x1cc));return O(_0xe75e1e)==_0x1838d8(0x4c3)?_0xe75e1e:_0xe75e1e+'';}function k(_0x4af180,_0x47bd24,_0x41fdb5){const _0x1f7ecd=_0x4152cc;return(_0x47bd24=Oe(_0x47bd24))in _0x4af180?Object[_0x1f7ecd(0x33c)](_0x4af180,_0x47bd24,{'value':_0x41fdb5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4af180[_0x47bd24]=_0x41fdb5,_0x4af180;}var A=class extends s[_0x4152cc(0x2a0)]{constructor(_0x6eb94e,_0x2a1b25){const _0x43d97f=_0x4152cc;super(_0x6eb94e),this['_rect']=_0x2a1b25,k(this,_0x43d97f(0x449),void 0x0);}[_0x4152cc(0x409)](){const _0x53b67a=_0x4152cc;return{'width':Math[_0x53b67a(0x404)](0x1,this[_0x53b67a(0x460)][_0x53b67a(0x447)]),'height':Math[_0x53b67a(0x404)](0x1,this['_rect'][_0x53b67a(0x1ad)])};}[_0x4152cc(0x3f1)](_0x3f4431){}['nextVersion'](){return 0x1;}['commitSnapshot'](_0x1eabcb,_0x1ebe8e){return this['_dataUrl']=(0x0,s['chartImageSourceToDataUrl'])(_0x1eabcb),!0x0;}[_0x4152cc(0x1a4)](){}[_0x4152cc(0x1ed)](){const _0x1b4a42=_0x4152cc;this[_0x1b4a42(0x449)]=void 0x0;}['getDataUrl'](){const _0x141b5a=_0x4152cc;return this[_0x141b5a(0x449)];}},ke=class extends e[_0x4152cc(0x3fd)]{constructor(_0x3a8e23,_0x5d7d65,_0x137ad4,_0x31cf9f,_0x35023f=!0x0){const _0x29d8f9=_0x4152cc;super(),this[_0x29d8f9(0x4ca)]=_0x3a8e23,this['_host']=_0x5d7d65,this['_applyHostStyle']=_0x137ad4,this['_getRenderRect']=_0x31cf9f,this[_0x29d8f9(0x2dd)]=_0x35023f,k(this,_0x29d8f9(0x381),s[_0x29d8f9(0x420)][_0x29d8f9(0x2e2)]),k(this,_0x29d8f9(0x1a2),null),k(this,'_hostStyle',{});}[_0x4152cc(0x409)](){const _0x1eec02=_0x4152cc;var _0x3a19ca;let _0x1b5a5a=(_0x3a19ca=this[_0x1eec02(0x189)])==null?void 0x0:_0x3a19ca[_0x1eec02(0x203)](this);if(_0x1b5a5a)return{'width':Math[_0x1eec02(0x404)](0x1,_0x1b5a5a['width']),'height':Math[_0x1eec02(0x404)](0x1,_0x1b5a5a[_0x1eec02(0x1ad)])};let _0x1cd990=this[_0x1eec02(0x23e)]['getBoundingClientRect']();return{'width':Math[_0x1eec02(0x404)](0x1,_0x1cd990[_0x1eec02(0x447)]),'height':Math[_0x1eec02(0x404)](0x1,_0x1cd990[_0x1eec02(0x1ad)])};}[_0x4152cc(0x3f1)](_0x315ba8){const _0x4feef0=_0x4152cc;this[_0x4feef0(0x43f)]=_0x315ba8,this[_0x4feef0(0x411)](this[_0x4feef0(0x23e)],_0x315ba8);}async[_0x4152cc(0x20d)](){const _0x470b1c=_0x4152cc;if(!this[_0x470b1c(0x1a2)]){let _0x209c77=document[_0x470b1c(0x384)](_0x470b1c(0x3d1));_0x209c77[_0x470b1c(0x41f)][_0x470b1c(0x465)]=_0x470b1c(0x1b4),_0x209c77[_0x470b1c(0x41f)]['border']='0',_0x209c77[_0x470b1c(0x41f)][_0x470b1c(0x4b8)]='content-box',_0x209c77['style'][_0x470b1c(0x4b7)]='hidden',_0x209c77[_0x470b1c(0x388)]=_0x470b1c(0x361),this[_0x470b1c(0x1a2)]=_0x209c77,this[_0x470b1c(0x23e)]['appendChild'](_0x209c77);}return this['syncLayout'](),this[_0x470b1c(0x1a2)];}['checkMounted'](){const _0xf28263=_0x4152cc;return!!(this[_0xf28263(0x1a2)]&&this[_0xf28263(0x23e)][_0xf28263(0x3e2)](this['_mountNode']));}[_0x4152cc(0x495)](){const _0x3d5311=_0x4152cc;let _0x2def0e=this[_0x3d5311(0x409)]();this['_manageHostSize']&&this['_setElementSize'](this['_host'],_0x2def0e),this[_0x3d5311(0x1a2)]&&this['_setElementSize'](this['_mountNode'],this['_getContentRect'](_0x2def0e));}[_0x4152cc(0x37b)](){}[_0x4152cc(0x4ac)](){}[_0x4152cc(0x397)](){const _0x4c639b=_0x4152cc;var _0x1c98f8;(_0x1c98f8=this[_0x4c639b(0x1a2)])==null||_0x1c98f8[_0x4c639b(0x3a3)](),this['_mountNode']=null,super[_0x4c639b(0x397)]();}[_0x4152cc(0x3f9)](_0x92df5b,_0x556618){const _0x2c0f6f=_0x4152cc;_0x92df5b[_0x2c0f6f(0x41f)][_0x2c0f6f(0x447)]=_0x556618[_0x2c0f6f(0x447)]+'px',_0x92df5b['style'][_0x2c0f6f(0x1ad)]=_0x556618['height']+'px';}[_0x4152cc(0x38b)](_0x3db078){const _0x330c9e=_0x4152cc;if(!(0x0,s[_0x330c9e(0x34b)])(this['_hostStyle']))return _0x3db078;let _0x51128e=(0x0,s[_0x330c9e(0x3a2)])(_0x3db078,this['_hostStyle']);return{'width':_0x51128e[_0x330c9e(0x447)],'height':_0x51128e[_0x330c9e(0x1ad)]};}};const j=(0x0,e[_0x4152cc(0x181)])(_0x4152cc(0x346));function Ae(_0x591e35){const _0x971497=_0x4152cc;var _0x1e9809;let _0x1275af=(_0x1e9809=_0x591e35[_0x971497(0x1b9)](/^#([\da-f]{3}|[\da-f]{6})$/i))==null?void 0x0:_0x1e9809[0x1];if(_0x1275af){let _0x4d8e52=_0x1275af['length']===0x3?_0x1275af[_0x971497(0x180)]('')[_0x971497(0x1c8)](_0x25a3d1=>''+_0x25a3d1+_0x25a3d1)[_0x971497(0x17d)](''):_0x1275af;return _0x971497(0x4c8)+Number[_0x971497(0x432)](_0x4d8e52[_0x971497(0x36a)](0x0,0x2),0x10)+',\x20'+Number[_0x971497(0x432)](_0x4d8e52[_0x971497(0x36a)](0x2,0x4),0x10)+',\x20'+Number[_0x971497(0x432)](_0x4d8e52[_0x971497(0x36a)](0x4,0x6),0x10)+')';}let _0x30a6f0=document[_0x971497(0x384)](_0x971497(0x292));return _0x30a6f0[_0x971497(0x41f)]['color']=_0x591e35,_0x30a6f0[_0x971497(0x41f)][_0x971497(0x413)]||_0x591e35;}let M=class extends e[_0x4152cc(0x3fd)]{constructor(_0x2e9470,_0x461248,_0x2a2808,_0x51d867){const _0x1e8026=_0x4152cc;super(),this[_0x1e8026(0x4df)]=_0x2e9470,this[_0x1e8026(0x2ec)]=_0x461248,k(this,'_renderModelManager',void 0x0),this[_0x1e8026(0x36f)]=_0x2a2808,(_0x51d867||!this[_0x1e8026(0x36f)]['getRenderModel'](s['EChartRenderEngineName']))&&this['registerRenderModel'](s[_0x1e8026(0x2b1)],_0x51d867==null?new s[(_0x1e8026(0x23d))](!0x1,{'wordCloudRenderConfig':a[_0x1e8026(0x44b)]}):_0x51d867);}[_0x4152cc(0x2a4)](_0x214655,_0x45d572){const _0x5f549c=_0x4152cc;this[_0x5f549c(0x36f)][_0x5f549c(0x2a4)](_0x214655,_0x45d572);}[_0x4152cc(0x280)](_0x528c9e){const _0x410c17=_0x4152cc;this[_0x410c17(0x36f)]['setRenderModel'](_0x528c9e);}['getRenderModel'](_0x5411d8=s[_0x4152cc(0x2b1)]){const _0x271d6f=_0x4152cc;return this['_renderModelManager'][_0x271d6f(0x3b9)](_0x5411d8);}['createChartInstance'](_0x647cfb){const _0x475ba3=_0x4152cc;return _0x647cfb?this[_0x475ba3(0x36f)][_0x475ba3(0x307)](_0x647cfb,this['_createChartRenderInstanceContext']()):this[_0x475ba3(0x36f)]['createChartInstance']();}[_0x4152cc(0x2ee)](_0x3157d3){const _0x47cd43=_0x4152cc;let _0x56e9b8=_0x3157d3[_0x47cd43(0x4c9)][_0x47cd43(0x3af)];if(!_0x56e9b8)throw Error(_0x47cd43(0x479)+_0x3157d3['chartId']+'\x20has\x20no\x20render\x20config.');let _0x55bcd6=this[_0x47cd43(0x4df)][_0x47cd43(0x352)]();return{'chartConfig':_0x56e9b8,'chartStyle':(0x0,s[_0x47cd43(0x318)])({..._0x3157d3[_0x47cd43(0x4c9)][_0x47cd43(0x41f)],'runtime':_0x3157d3[_0x47cd43(0x4c9)][_0x47cd43(0x20b)](_0x55bcd6),'direction':_0x55bcd6},_0x56e9b8[_0x47cd43(0x27a)])};}[_0x4152cc(0x2b0)](_0x1be960,_0x560d11,_0x34ff84){const _0x5ee527=_0x4152cc;let {chartConfig:_0x367334,chartStyle:_0x5a56f8}=this['createRenderInput'](_0x1be960),_0x5d32ec=this[_0x5ee527(0x36f)][_0x5ee527(0x3ea)]();return{'spec':_0x5d32ec[_0x5ee527(0x38e)](_0x5d32ec['toSpec'](_0x367334,_0x5a56f8),{'chartConfig':_0x367334,'chartStyle':_0x5a56f8,'chartInstance':_0x34ff84},_0x560d11),'chartConfig':_0x367334,'chartStyle':_0x5a56f8,'hostStyle':this[_0x5ee527(0x1f7)](_0x5a56f8)};}[_0x4152cc(0x1f7)](_0x21b614){const _0x11b58f=_0x4152cc;return(0x0,s[_0x11b58f(0x3a6)])({'style':_0x21b614,'getRenderColor':_0x16e7c9=>this['_chartThemeService'][_0x11b58f(0x454)](_0x16e7c9)});}[_0x4152cc(0x3cf)](_0x444131,_0x4f6634){const _0x373b04=_0x4152cc;var _0x179e95;let _0x3ebc84=(_0x179e95=_0x4f6634[_0x373b04(0x3b4)])!=null&&_0x179e95['color']&&_0x4f6634['border'][_0x373b04(0x447)]?_0x4f6634[_0x373b04(0x3b4)][_0x373b04(0x447)]+_0x373b04(0x3c5)+Ae(_0x4f6634[_0x373b04(0x3b4)][_0x373b04(0x413)]):'';_0x444131['style']['border']=_0x3ebc84,_0x444131[_0x373b04(0x41f)][_0x373b04(0x32b)]=_0x4f6634[_0x373b04(0x48b)]?Ae(_0x4f6634[_0x373b04(0x48b)]):'transparent',_0x444131[_0x373b04(0x41f)][_0x373b04(0x428)]=_0x4f6634[_0x373b04(0x35a)]?_0x4f6634[_0x373b04(0x35a)]+'px':'',_0x444131[_0x373b04(0x41f)][_0x373b04(0x4b7)]='hidden',_0x444131[_0x373b04(0x41f)][_0x373b04(0x4b8)]=_0x373b04(0x324);}[_0x4152cc(0x4a3)](){const _0x56a176=_0x4152cc;return{'resolveHostStyle':({style:_0x120159})=>this[_0x56a176(0x1f7)](_0x120159),'resolveRenderBackgroundColor':({hostStyle:_0x3bf5ab})=>_0x3bf5ab[_0x56a176(0x48b)],'prepareSpec':({mode:_0x11a4d0,spec:_0x3a5217})=>_0x11a4d0===_0x56a176(0x17e)?{..._0x3a5217,'animation':!0x1,'tooltip':{'show':!0x1}}:_0x3a5217};}[_0x4152cc(0x397)](){const _0xe2f072=_0x4152cc;super[_0xe2f072(0x397)]();}};M=C([S(0x0,(0x0,e[_0x4152cc(0x2d6)])(e['LocaleService'])),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(s[_0x4152cc(0x1f8)])),S(0x2,s[_0x4152cc(0x305)]),S(0x3,(0x0,e[_0x4152cc(0x34f)])(j))],M);function je(_0x18150e,_0x51de42,_0x378dbf,_0x55c99f,_0x4a157f,_0x4159f0,_0x452ab0){const _0x36dae2=_0x4152cc;let _0x199ae7=new s['StaticChartSource'](),_0x274b32=new s['ChartModel'](_0x18150e,{'chartType':_0x378dbf,'context':_0x55c99f==null?void 0x0:_0x55c99f[_0x36dae2(0x3da)],'dataAggregation':_0x4a157f,'dataSource':_0x199ae7,'style':_0x4159f0},_0x452ab0);_0x274b32[_0x36dae2(0x3c8)](),_0x199ae7[_0x36dae2(0x24c)]((0x0,a['buildInlineTableDataSet'])((0x0,i[_0x36dae2(0x1ff)])(_0x51de42)),(_0x55c99f==null?void 0x0:_0x55c99f[_0x36dae2(0x4db)])!==_0x36dae2(0x47e));let _0x564d22=(0x0,s['generateChartModelContextByOperators'])(_0x274b32,_0x199ae7);return _0x564d22&&_0x274b32[_0x36dae2(0x42c)](_0x564d22),{'unitId':'doc-chart-preview','chartId':_0x18150e,'dataSourceId':_0x18150e+_0x36dae2(0x3aa),'model':_0x274b32,'source':_0x199ae7};}function Me(_0x2e4100){const _0x1f6aeb=_0x4152cc;let _0x191179=(0x0,n[_0x1f6aeb(0x21a)])(e[_0x1f6aeb(0x333)]),_0x5124db=(0x0,n[_0x1f6aeb(0x21a)])(e[_0x1f6aeb(0x360)]),_0x4026e2=(0x0,n[_0x1f6aeb(0x21a)])(M),_0x494471=(0x0,r['useRef'])(null),_0x1ddaac=(0x0,r[_0x1f6aeb(0x326)])(null),_0x342a8c=(0x0,r['useRef'])(_0x1f6aeb(0x2b3)+(0x0,e['generateRandomId'])(0x8)),[_0x7ce6fd,_0x4dc65a]=(0x0,r['useState'])(null);return(0x0,r[_0x1f6aeb(0x48a)])(()=>{const _0xe9003=_0x1f6aeb;let _0x3f5eae=_0x494471['current'];if(!_0x3f5eae)return;_0x4dc65a(null),_0x3f5eae[_0xe9003(0x2de)](),_0x1ddaac[_0xe9003(0x19e)]=N(_0x3f5eae);let _0x36278d=!0x1,_0x3d8ab8=_0x21c40a=>{_0x36278d||_0x4dc65a(_0x21c40a);},_0x31e4f8=null,_0x4531f4=null,_0x1ced7a=null;try{_0x31e4f8=je(_0x342a8c[_0xe9003(0x19e)],_0x2e4100['values'],_0x2e4100[_0xe9003(0x310)],_0x2e4100['context'],_0x2e4100['dataAggregation'],_0x2e4100[_0xe9003(0x41f)],_0x5124db),_0x4531f4=new ke(_0x31e4f8[_0xe9003(0x4ca)],_0x3f5eae,(_0x8f0f16,_0x3fcadf)=>_0x4026e2[_0xe9003(0x3cf)](_0x8f0f16,_0x3fcadf),()=>{const _0x625e5f=_0xe9003;var _0x1faf5c;return(_0x1faf5c=_0x1ddaac[_0x625e5f(0x19e)])==null?N(_0x3f5eae):_0x1faf5c;},!0x1),_0x1ced7a=_0x4026e2[_0xe9003(0x307)](s[_0xe9003(0x420)][_0xe9003(0x2e2)]),_0x1ced7a[_0xe9003(0x2f4)](_0x4531f4);}catch(_0xcb3f8b){return _0x3d8ab8(_0xcb3f8b),()=>{const _0xb1a49e=_0xe9003;_0x36278d=!0x0,_0x3f5eae[_0xb1a49e(0x2de)]();};}if(!_0x31e4f8||!_0x4531f4||!_0x1ced7a)return()=>{const _0x444319=_0xe9003;_0x36278d=!0x0,_0x3f5eae[_0x444319(0x2de)]();};let _0x1ad955=_0x31e4f8,_0x46882a=_0x4531f4,_0x4f6a53=_0x1ced7a,_0x392649=()=>{const _0x34e2c3=_0xe9003;let _0x1c5be0,_0x86dd16;try{({chartConfig:_0x1c5be0,chartStyle:_0x86dd16}=_0x4026e2[_0x34e2c3(0x2ee)](_0x1ad955));}catch(_0x51fb78){_0x3d8ab8(_0x51fb78);return;}_0x4f6a53[_0x34e2c3(0x43e)]({'chartId':_0x1ad955[_0x34e2c3(0x4ca)],'config':_0x1c5be0,'style':_0x86dd16})[_0x34e2c3(0x1a0)](()=>{_0x36278d||_0x4dc65a(null);})[_0x34e2c3(0x3db)](_0x3d8ab8);},_0x47289b=_0x1ad955[_0xe9003(0x4c9)][_0xe9003(0x23c)][_0xe9003(0x3a0)](_0x332d4d=>{_0x332d4d&&_0x392649();}),_0x426bdb=typeof ResizeObserver>'u'?null:new ResizeObserver(_0x47ec4f=>{const _0x43b494=_0xe9003;var _0x5a3804;let _0xf48c50=(_0x5a3804=_0x47ec4f[0x0])==null?void 0x0:_0x5a3804[_0x43b494(0x191)];_0x1ddaac[_0x43b494(0x19e)]=_0xf48c50&&_0xf48c50[_0x43b494(0x447)]>0x0&&_0xf48c50['height']>0x0?{'width':_0xf48c50[_0x43b494(0x447)],'height':_0xf48c50[_0x43b494(0x1ad)]}:N(_0x3f5eae),_0x392649();});return _0x426bdb==null||_0x426bdb[_0xe9003(0x452)](_0x3f5eae),()=>{const _0x1ea5f=_0xe9003;_0x36278d=!0x0,_0x47289b[_0x1ea5f(0x458)](),_0x426bdb==null||_0x426bdb[_0x1ea5f(0x2fa)](),_0x4f6a53[_0x1ea5f(0x397)](),_0x46882a[_0x1ea5f(0x397)](),_0x1ad955[_0x1ea5f(0x4c9)]['dispose'](),_0x1ad955[_0x1ea5f(0x43a)][_0x1ea5f(0x397)](),_0x3f5eae[_0x1ea5f(0x2de)]();};},[_0x5124db,_0x2e4100[_0x1f6aeb(0x310)],_0x2e4100[_0x1f6aeb(0x246)],_0x2e4100[_0x1f6aeb(0x329)],_0x2e4100['style'],_0x2e4100[_0x1f6aeb(0x1ab)],_0x4026e2]),(0x0,o[_0x1f6aeb(0x3d7)])(_0x1f6aeb(0x3d1),{'className':'univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-min-w-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-bg-white\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[(0x0,o[_0x1f6aeb(0x450)])('div',{'ref':_0x494471,'className':_0x1f6aeb(0x442)}),_0x7ce6fd!=null&&(0x0,o[_0x1f6aeb(0x450)])('div',{'className':_0x1f6aeb(0x23f),'children':_0x191179['t']('docs-chart-ui.previewRenderFailed')})]});}function N(_0x5b0eec){const _0x3b505d=_0x4152cc;let _0x49a50c=_0x5b0eec[_0x3b505d(0x35c)]();return _0x49a50c[_0x3b505d(0x447)]<=0x0||_0x49a50c[_0x3b505d(0x1ad)]<=0x0?null:{'width':_0x49a50c['width'],'height':_0x49a50c[_0x3b505d(0x1ad)]};}const Ne=_0x4152cc(0x319),P=_0x4152cc(0x470);function Pe(_0x5b5f00){const _0x1ae42f=_0x4152cc;var _0x2642ef;let {unitId:_0x2fcc82,chartId:_0x242676,onClose:_0x976525}=_0x5b5f00,_0x21abbf=(0x0,n[_0x1ae42f(0x21a)])(e['LocaleService']),_0x32030e=(0x0,n[_0x1ae42f(0x21a)])(a['DocChartResourceService']),_0x312f34=(0x0,n[_0x1ae42f(0x21a)])(w),_0x323a36=(0x0,r[_0x1ae42f(0x3c0)])(()=>_0x312f34[_0x1ae42f(0x27d)](_0x2fcc82,_0x242676),[_0x242676,_0x312f34,_0x2fcc82]),_0x4a62a1=_0x32030e[_0x1ae42f(0x267)](_0x2fcc82,_0x242676),[_0x54c6c9,_0x30048a]=(0x0,r[_0x1ae42f(0x4c6)])(_0x323a36),[_0xede898,_0x19ffa0]=(0x0,r[_0x1ae42f(0x4c6)])(()=>{const _0xff9114=_0x1ae42f;var _0x5ba4fa;return(_0x5ba4fa=_0x323a36==null?void 0x0:_0x323a36[_0xff9114(0x1ab)][_0xff9114(0x1c8)](_0x35296f=>[..._0x35296f]))==null?[]:_0x5ba4fa;}),[_0x38be1e,_0x11aa82]=(0x0,r['useState'])(()=>{const _0x1a2371=_0x1ae42f;var _0x3cbe76;return(_0x3cbe76=_0x323a36==null?void 0x0:_0x323a36[_0x1a2371(0x1ab)][_0x1a2371(0x1c8)](_0x13c372=>[..._0x13c372]))==null?[]:_0x3cbe76;}),[_0xa43fae,_0x1cd9eb]=(0x0,r['useState'])(()=>_0x4a62a1==null?void 0x0:_0x4a62a1[_0x1ae42f(0x310)]),[_0x1984e7,_0x1cf65d]=(0x0,r[_0x1ae42f(0x4c6)])(()=>_0x4a62a1==null?void 0x0:_0x4a62a1[_0x1ae42f(0x41f)]),[_0x9a62f9,_0x442367]=(0x0,r['useState'])(()=>_0x4a62a1==null?void 0x0:_0x4a62a1[_0x1ae42f(0x246)]),[_0x20dc8e,_0x57cea7]=(0x0,r['useState'])(()=>_0x4a62a1==null?void 0x0:_0x4a62a1[_0x1ae42f(0x329)]),[_0x43d853,_0x3e9a9d]=(0x0,r[_0x1ae42f(0x4c6)])(()=>{const _0x496d7e=_0x1ae42f;var _0xcd22ab;return((_0xcd22ab=_0x5b5f00[_0x496d7e(0x421)])==null?void 0x0:_0xcd22ab[_0x496d7e(0x2f2)])==='data'?_0x496d7e(0x40f):'chart';}),[_0x5f30b2,_0x578dbb]=(0x0,r[_0x1ae42f(0x4c6)])(null);return!_0x54c6c9||!_0x4a62a1?(0x0,o[_0x1ae42f(0x450)])(_0x1ae42f(0x3d1),{'className':_0x1ae42f(0x1f9),'children':_0x21abbf['t'](_0x1ae42f(0x1c5))}):(0x0,o[_0x1ae42f(0x3d7)])(_0x1ae42f(0x3d1),{'className':_0x1ae42f(0x298),'style':{'height':_0x1ae42f(0x37f)},'children':[(0x0,o[_0x1ae42f(0x450)])(i[_0x1ae42f(0x468)],{'className':_0x1ae42f(0x4c1),'value':_0x43d853,'items':[{'label':_0x21abbf['t'](_0x1ae42f(0x1bd)),'value':_0x1ae42f(0x2ea)},{'label':_0x21abbf['t'](_0x1ae42f(0x296)),'value':'data'}],'variant':'segmented','onChange':_0x3e9a9d}),(0x0,o['jsxs'])(_0x1ae42f(0x3d1),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-pt-4','children':[_0x43d853==='data'?(0x0,o[_0x1ae42f(0x450)])(te,{'values':_0xede898,'sharingCount':_0x54c6c9[_0x1ae42f(0x391)],'onCancel':()=>_0x3e9a9d(_0x1ae42f(0x2ea)),'onSubmit':(_0x4c51ea,_0x84fda9)=>{const _0x2a7685=_0x1ae42f;var _0x535ef5,_0x134bff;if(!_0x312f34['updateData'](_0x2fcc82,_0x242676,_0x4c51ea,_0x84fda9)){_0x578dbb(_0x21abbf['t'](_0x2a7685(0x235)));return;}_0x578dbb(null);let _0x2123f0=_0x312f34['getEditorState'](_0x2fcc82,_0x242676);_0x30048a(_0x2123f0==null?_0x54c6c9:_0x2123f0),_0x19ffa0((_0x535ef5=_0x2123f0==null?void 0x0:_0x2123f0[_0x2a7685(0x1ab)])==null?_0x4c51ea:_0x535ef5),_0x11aa82((_0x134bff=_0x2123f0==null?void 0x0:_0x2123f0[_0x2a7685(0x1ab)])==null?_0x4c51ea:_0x134bff),_0x3e9a9d('chart');}}):(0x0,o['jsxs'])('div',{'className':_0x1ae42f(0x264),'children':[(0x0,o['jsx'])(_0x1ae42f(0x3d1),{'className':_0x1ae42f(0x208),'children':(0x0,o[_0x1ae42f(0x450)])(Me,{'values':_0x38be1e,'chartType':_0xa43fae==null?_0x4a62a1[_0x1ae42f(0x310)]:_0xa43fae,'context':_0x9a62f9,'dataAggregation':_0x20dc8e,'style':_0x1984e7})}),(0x0,o[_0x1ae42f(0x3d7)])(_0x1ae42f(0x3d1),{'className':_0x1ae42f(0x1c3),'children':[(0x0,o[_0x1ae42f(0x450)])('div',{'className':_0x1ae42f(0x299),'children':(0x0,o[_0x1ae42f(0x450)])(Ee,{'chartType':_0xa43fae==null?_0x4a62a1['chartType']:_0xa43fae,'values':_0xede898,'context':_0x9a62f9,'dataAggregation':_0x20dc8e,'style':_0x1984e7,'initialTab':+(((_0x2642ef=_0x5b5f00[_0x1ae42f(0x421)])==null?void 0x0:_0x2642ef[_0x1ae42f(0x2f2)])==='style'),'onChartTypeChange':_0xd68720=>{const _0x5cd080=_0x1ae42f;if(!_0x312f34['updateChartType'](_0x2fcc82,_0x242676,_0xd68720)){_0x578dbb(_0x21abbf['t'](_0x5cd080(0x235)));return;}_0x578dbb(null),_0x1cd9eb(_0xd68720);},'onContextChange':_0x2552fc=>{const _0x5d378f=_0x1ae42f;var _0x5774b2;if(!_0x312f34[_0x5d378f(0x2ae)](_0x2fcc82,_0x242676,_0x2552fc)){_0x578dbb(_0x21abbf['t'](_0x5d378f(0x235)));return;}_0x578dbb(null),_0x442367((_0x5774b2=_0x32030e[_0x5d378f(0x267)](_0x2fcc82,_0x242676))==null?void 0x0:_0x5774b2['context']);},'onDataAggregationChange':_0x3e3044=>{const _0x462dd9=_0x1ae42f;var _0x381600;if(!_0x312f34[_0x462dd9(0x350)](_0x2fcc82,_0x242676,_0x3e3044)){_0x578dbb(_0x21abbf['t'](_0x462dd9(0x235)));return;}_0x578dbb(null),_0x57cea7((_0x381600=_0x32030e['getChart'](_0x2fcc82,_0x242676))==null?void 0x0:_0x381600[_0x462dd9(0x329)]);},'onStyleChange':_0x11c96c=>{const _0x1ac755=_0x1ae42f;var _0x219602;if(!_0x312f34['updateChartStyle'](_0x2fcc82,_0x242676,_0x11c96c)){_0x578dbb(_0x21abbf['t'](_0x1ac755(0x235)));return;}_0x578dbb(null),_0x1cf65d((_0x219602=_0x32030e[_0x1ac755(0x267)](_0x2fcc82,_0x242676))==null?void 0x0:_0x219602['style']);},'onModifyData':()=>_0x3e9a9d('data'),'onClose':_0x976525})}),_0x5f30b2&&(0x0,o['jsx'])(_0x1ae42f(0x3d1),{'className':_0x1ae42f(0x251),'children':_0x5f30b2})]})]}),_0x43d853===_0x1ae42f(0x40f)&&_0x5f30b2&&(0x0,o[_0x1ae42f(0x450)])(_0x1ae42f(0x3d1),{'className':_0x1ae42f(0x244),'children':_0x5f30b2})]})]});}function F(_0x1edc5c,_0x122c54){const _0x2ae022=_0x4152cc;var _0x28ad20,_0x2cfc4b;if(!(_0x122c54!=null&&_0x122c54[_0x2ae022(0x266)])||_0x122c54[_0x2ae022(0x1dc)]==null)return null;let _0x1bbb3b=(_0x28ad20=_0x122c54[_0x2ae022(0x209)])==null?'':_0x28ad20;if(_0x1bbb3b!=='')return null;let _0x12515d=(_0x2cfc4b=_0x1edc5c[_0x2ae022(0x2fd)](_0x1bbb3b))==null?void 0x0:_0x2cfc4b['getBody']();if(!_0x12515d)return null;let _0x5b37da=Fe(_0x12515d,_0x122c54[_0x2ae022(0x1dc)]);if(!I(_0x12515d,_0x5b37da))return null;let _0x21a50c=Le(_0x12515d,_0x5b37da);return _0x21a50c?{'unitId':_0x1edc5c[_0x2ae022(0x21c)](),'index':_0x21a50c[_0x2ae022(0x261)],'segmentId':_0x1bbb3b,'breakOffsets':_0x21a50c[_0x2ae022(0x426)]}:null;}function Fe(_0x3511fc,_0xd99fed){const _0x49fa4d=_0x4152cc;return _0xd99fed===0x0&&_0x3511fc[_0x49fa4d(0x290)][0x0]===e['DataStreamTreeTokenType']['PARAGRAPH']?0x1:_0xd99fed;}function I(_0x7490fe,_0x318d3d){const _0x991af=_0x4152cc;return!(ze(_0x7490fe['tables'],_0x318d3d)||Be(_0x7490fe['blockRanges'],_0x318d3d)||Ve(_0x7490fe[_0x991af(0x2d9)],_0x318d3d));}function Ie(_0x1bcbc2,_0x522bdf){const _0x5cc47b=_0x4152cc;let {dataStream:_0x3083e3}=_0x1bcbc2;if(!_0x3083e3||_0x522bdf<0x0||_0x522bdf>=_0x3083e3['length'])return!0x1;let _0x341d6f=Re(_0x3083e3,_0x522bdf)+0x1,_0x236b4e=L(_0x3083e3,_0x522bdf);return _0x341d6f<=_0x236b4e&&_0x3083e3[_0x5cc47b(0x36a)](_0x341d6f,_0x236b4e)[_0x5cc47b(0x29c)]===0x0;}function Le(_0x76efa0,_0x4733ca){let {dataStream:_0x282474}=_0x76efa0;if(!_0x282474||_0x4733ca<0x0||_0x4733ca>=_0x282474['length'])return null;if(Ie(_0x76efa0,_0x4733ca))return{'index':_0x4733ca,'breakOffsets':[]};let _0x5a3062=Re(_0x282474,_0x4733ca)+0x1,_0x417ac3=L(_0x282474,_0x4733ca);return _0x4733ca<=_0x5a3062?{'index':_0x4733ca,'breakOffsets':[_0x4733ca]}:_0x4733ca>=_0x417ac3?{'index':_0x4733ca+0x1,'breakOffsets':[_0x4733ca]}:{'index':_0x4733ca+0x1,'breakOffsets':[_0x4733ca,_0x4733ca+0x1]};}function Re(_0x130322,_0x2a6893){const _0x4f176f=_0x4152cc;let _0x552677=Math[_0x4f176f(0x404)](0x0,Math[_0x4f176f(0x2bf)](_0x2a6893-0x1,_0x130322[_0x4f176f(0x29c)]-0x1));return Math['max'](_0x130322['lastIndexOf'](e[_0x4f176f(0x2b9)][_0x4f176f(0x303)],_0x552677),_0x130322[_0x4f176f(0x354)](e[_0x4f176f(0x2b9)][_0x4f176f(0x253)],_0x552677));}function L(_0x358de4,_0x2f0c08){const _0x3cf290=_0x4152cc;let _0x225281=Math[_0x3cf290(0x404)](0x0,Math[_0x3cf290(0x2bf)](_0x2f0c08,_0x358de4[_0x3cf290(0x29c)]-0x1)),_0x2618d0=_0x358de4[_0x3cf290(0x41b)](e['DataStreamTreeTokenType'][_0x3cf290(0x303)],_0x225281),_0x1239e9=_0x358de4[_0x3cf290(0x41b)](e[_0x3cf290(0x2b9)][_0x3cf290(0x253)],_0x225281);return _0x2618d0===-0x1&&_0x1239e9===-0x1?_0x358de4[_0x3cf290(0x29c)]:_0x2618d0===-0x1?_0x1239e9:_0x1239e9===-0x1?_0x2618d0:Math[_0x3cf290(0x2bf)](_0x2618d0,_0x1239e9);}function ze(_0x3b9265,_0x48485e){const _0x24cc34=_0x4152cc;return!!(_0x3b9265!=null&&_0x3b9265[_0x24cc34(0x1d4)](_0x5d536d=>_0x5d536d[_0x24cc34(0x41d)]<=_0x48485e&&_0x48485e<_0x5d536d[_0x24cc34(0x47f)]));}function Be(_0x1fdfe0,_0x30a2aa){const _0x22dd99=_0x4152cc;return!!(_0x1fdfe0!=null&&_0x1fdfe0[_0x22dd99(0x1d4)](_0x111b0e=>_0x111b0e['startIndex']<=_0x30a2aa&&_0x30a2aa<=_0x111b0e['endIndex']));}function Ve(_0x20f01a,_0x2dfc75){const _0x3d1ae9=_0x4152cc;return!!(_0x20f01a!=null&&_0x20f01a['some'](_0x45eb2c=>_0x45eb2c[_0x3d1ae9(0x41d)]===_0x2dfc75));}let R=class{constructor(_0xbe2ea6,_0x5f18da,_0x25bdf1,_0x42faac){const _0x299e1f=_0x4152cc;this['_instanceService']=_0xbe2ea6,this[_0x299e1f(0x45a)]=_0x5f18da,this[_0x299e1f(0x281)]=_0x25bdf1,this[_0x299e1f(0x414)]=_0x42faac;}[_0x4152cc(0x367)](_0x33ec3b,_0x2f392a,_0x10dadd){const _0x3b876d=_0x4152cc;let _0x9cf67b=(0x0,a[_0x3b876d(0x41e)])(_0x33ec3b);return _0x9cf67b[_0x3b876d(0x29c)]!==0x0&&this['insertChart'](_0x9cf67b,_0x2f392a,_0x10dadd);}[_0x4152cc(0x392)](_0x1be858,_0x66262b,_0x4cdf41={}){const _0x50731f=_0x4152cc;if(_0x1be858[_0x50731f(0x29c)]===0x0)return!0x1;let _0x4eb7ac=(0x0,s[_0x50731f(0x46e)])(_0x66262b,_0x1be858);if(!_0x4eb7ac)return!0x1;let _0x55dccd=this[_0x50731f(0x484)][_0x50731f(0x197)](e[_0x50731f(0x4d3)][_0x50731f(0x1b2)]);if(!_0x55dccd)return!0x1;let _0x16977a=this[_0x50731f(0x3e9)](_0x55dccd,_0x4cdf41[_0x50731f(0x439)]);if(!_0x16977a||!this[_0x50731f(0x30f)](_0x16977a[_0x50731f(0x426)],_0x16977a[_0x50731f(0x209)]))return!0x1;let _0x43f6af=_0x16977a['unitId'],_0x3e976d={'chartType':_0x66262b};_0x4cdf41[_0x50731f(0x246)]&&(_0x3e976d[_0x50731f(0x246)]=_0x4cdf41[_0x50731f(0x246)]),_0x4cdf41[_0x50731f(0x329)]&&(_0x3e976d['dataAggregation']=_0x4cdf41[_0x50731f(0x329)]),_0x4cdf41['style']&&(_0x3e976d[_0x50731f(0x41f)]=_0x4cdf41[_0x50731f(0x41f)]);let _0x41ccfd=this[_0x50731f(0x45a)][_0x50731f(0x311)](a['InsertDocChartCommand']['id'],{'unitId':_0x43f6af,'index':_0x16977a[_0x50731f(0x261)],'segmentId':_0x16977a[_0x50731f(0x209)],'chart':_0x3e976d,'dataSource':{'values':_0x4eb7ac},'width':_0x4cdf41['width'],'height':_0x4cdf41[_0x50731f(0x1ad)],'focus':_0x4cdf41[_0x50731f(0x4a7)]});return _0x41ccfd?{..._0x41ccfd,'unitId':_0x43f6af}:!0x1;}['_resolveInsertPosition'](_0x440216,_0x2f43ad){const _0x467f5a=_0x4152cc;if(_0x2f43ad)return F(_0x440216,_0x2f43ad);let _0x4dc85e=_0x440216[_0x467f5a(0x21c)](),_0x5007d3=null;try{_0x5007d3=this['_docContentInsertService'][_0x467f5a(0x462)](_0x4dc85e);}catch{_0x5007d3=null;}if(_0x5007d3){var _0x52f991;return F(_0x440216,{'startOffset':_0x5007d3[_0x467f5a(0x1dc)],'endOffset':_0x5007d3[_0x467f5a(0x31f)],'collapsed':_0x5007d3[_0x467f5a(0x1dc)]===_0x5007d3['endOffset'],'segmentId':(_0x52f991=_0x5007d3[_0x467f5a(0x209)])==null?'':_0x52f991});}return F(_0x440216,He(this[_0x467f5a(0x281)][_0x467f5a(0x294)]()));}['_prepareStandaloneInsertLine'](_0x23b322,_0x221fbb){const _0x12f8f7=_0x4152cc;for(let _0x2d9eec of _0x23b322)if(!this[_0x12f8f7(0x45a)]['syncExecuteCommand'](u[_0x12f8f7(0x230)]['id'],{'textRange':{'startOffset':_0x2d9eec,'endOffset':_0x2d9eec,'collapsed':!0x0,'segmentId':_0x221fbb}}))return!0x1;return!0x0;}};R=C([S(0x0,e[_0x4152cc(0x4d4)]),S(0x1,e['ICommandService']),S(0x2,(0x0,e[_0x4152cc(0x2d6)])(l['DocSelectionManagerService'])),S(0x3,(0x0,e['Inject'])(l[_0x4152cc(0x4cd)]))],R);function He(_0x29217e){return!_0x29217e||typeof _0x29217e!='object'?null:_0x29217e;}const Ue='doc-chart.insert-panel',We=[_0x4152cc(0x4b6),_0x4152cc(0x30a),_0x4152cc(0x28b),_0x4152cc(0x322)][_0x4152cc(0x17d)]('\x0a');function z(_0x4898ba){const _0x13296f=_0x4152cc;let _0x423c87=(0x0,n[_0x13296f(0x21a)])(R),_0x53c2e3=(0x0,n[_0x13296f(0x21a)])(e[_0x13296f(0x333)]),{defaultChartType:_0x5caee1=s[_0x13296f(0x30e)][_0x13296f(0x49d)],defaultTableText:_0x57d3ce=We,insertOptions:_0x2ab677,onCancel:_0x9cc9fb,onInserted:_0x106592}=_0x4898ba,_0x176645=(0x0,r[_0x13296f(0x3c0)])(()=>(0x0,i[_0x13296f(0x2c2)])(ne[_0x13296f(0x1c8)](_0x445e0d=>({..._0x445e0d,'label':_0x53c2e3['t'](_0x445e0d['label'])}))),[_0x53c2e3]),[_0x4f95ad,_0x3cf3ae]=(0x0,r[_0x13296f(0x4c6)])(_0x5caee1),_0x5d8b83=_0x39a078=>(0x0,i['createChartInlineStarterData'])(_0x39a078,_0x3e604d=>_0x53c2e3['t'](_0x13296f(0x2b5)+_0x3e604d)),[_0x4ec844,_0xf402ef]=(0x0,r[_0x13296f(0x4c6)])(()=>{const _0x497687=_0x13296f;var _0x52eadd;return _0x4898ba['defaultTableText']===void 0x0?(_0x52eadd=_0x5d8b83(_0x5caee1))==null?(0x0,a[_0x497687(0x41e)])(_0x57d3ce):_0x52eadd:(0x0,a[_0x497687(0x41e)])(_0x57d3ce);}),[_0x16f504,_0x4baf26]=(0x0,r[_0x13296f(0x4c6)])(null);return(0x0,o[_0x13296f(0x3d7)])('div',{'className':_0x13296f(0x373),'children':[(0x0,o['jsxs'])('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':[(0x0,o[_0x13296f(0x450)])(_0x13296f(0x3d1),{'className':'univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x53c2e3['t'](_0x13296f(0x366))}),(0x0,o['jsx'])(t[_0x13296f(0x2d2)],{'className':_0x13296f(0x3e6),'value':String(_0x4f95ad),'options':_0x176645,'onChange':_0x216f37=>{let _0x179cc7=Number(_0x216f37);_0x3cf3ae(_0x179cc7);let _0x364806=_0x5d8b83(_0x179cc7);_0x364806&&_0xf402ef(_0x364806);}})]}),(0x0,o[_0x13296f(0x3d7)])(_0x13296f(0x3d1),{'className':_0x13296f(0x37e),'children':[(0x0,o['jsx'])(_0x13296f(0x3d1),{'className':_0x13296f(0x214),'children':_0x53c2e3['t'](_0x13296f(0x1d6))}),(0x0,o['jsx'])(ee,{'values':_0x4ec844,'minColumns':(0x0,i[_0x13296f(0x2e8)])(_0x4f95ad),'onChange':_0xf402ef})]}),_0x16f504&&(0x0,o['jsx'])(_0x13296f(0x3d1),{'className':'univer-text-xs\x20univer-text-red-600','children':_0x16f504}),(0x0,o[_0x13296f(0x3d7)])('div',{'className':_0x13296f(0x1a1),'children':[_0x9cc9fb&&(0x0,o[_0x13296f(0x450)])(t[_0x13296f(0x387)],{'type':'button','variant':_0x13296f(0x349),'onClick':_0x9cc9fb,'children':_0x53c2e3['t'](_0x13296f(0x2e6))}),(0x0,o[_0x13296f(0x450)])(t[_0x13296f(0x387)],{'type':'button','variant':'primary','onClick':()=>{const _0x2b9969=_0x13296f;let _0x24922d=(0x0,i[_0x2b9969(0x1ff)])(_0x4ec844);if(_0x24922d[_0x2b9969(0x29c)]===0x0){_0x4baf26(_0x53c2e3['t']('docs-chart-ui.tableDataEmpty'));return;}if(!(0x0,s[_0x2b9969(0x46e)])(_0x4f95ad,_0x24922d)){_0x4baf26(_0x53c2e3['t']('docs-chart-ui.candlestickColumnsError'));return;}let _0x3a6ac5=_0x423c87[_0x2b9969(0x392)](_0x24922d,_0x4f95ad,_0x2ab677);if(!_0x3a6ac5){_0x4baf26(_0x53c2e3['t']('docs-chart-ui.insertChartFailed'));return;}_0x4baf26(null),_0x106592==null||_0x106592(_0x3a6ac5);},'children':_0x53c2e3['t'](_0x13296f(0x1b8))})]})]});}const Ge='docs-chart-ui.config',B={},Ke='__docsChartResource';let V=class extends e[_0x4152cc(0x3fd)]{constructor(_0x47b18e,_0x52d42e,_0x84555d){const _0x4072bd=_0x4152cc;super(),this[_0x4072bd(0x4d9)]=_0x47b18e,this[_0x4072bd(0x1ba)]=_0x52d42e,this[_0x4072bd(0x2ab)]=_0x84555d,this[_0x4072bd(0x1e9)]();}[_0x4152cc(0x1e9)](){const _0x516b88=_0x4152cc;this[_0x516b88(0x3d3)](this[_0x516b88(0x4d9)][_0x516b88(0x3ce)]({'onCopyDocData':(_0x587e4f,_0x2f6aa7)=>this['_appendChartResources'](_0x587e4f,_0x2f6aa7[_0x516b88(0x492)])})),this[_0x516b88(0x3d3)](this['_pasteAdapterService'][_0x516b88(0x1bc)]({'getPasteMutationInfos':_0x4ae2fb=>this['_getPasteMutationInfos'](_0x4ae2fb)}));}['_appendChartResources'](_0x293e88,_0x477ea3){const _0x55cd3e=_0x4152cc;var _0x113356,_0x989e99;let _0x54e952=(_0x113356=_0x477ea3[0x0])==null?void 0x0:_0x113356['id'];if(!_0x54e952)return _0x293e88;let _0x3d9ce8=Object[_0x55cd3e(0x1ab)]((_0x989e99=_0x293e88[_0x55cd3e(0x463)])==null?{}:_0x989e99)[_0x55cd3e(0x3b0)](_0xbf33a8=>this[_0x55cd3e(0x1d0)](_0xbf33a8));if(_0x3d9ce8[_0x55cd3e(0x29c)]===0x0)return _0x293e88;let _0x299307={'version':0x1,'dataSources':{},'charts':{}};return _0x3d9ce8[_0x55cd3e(0x2c1)](_0x2ee69e=>{const _0x196aba=_0x55cd3e;let _0x155da1=this[_0x196aba(0x2ab)]['getChart'](_0x54e952,_0x2ee69e[_0x196aba(0x4ca)]);if(!_0x155da1)return;let _0x4cfa42=this[_0x196aba(0x2ab)][_0x196aba(0x2af)](_0x54e952,_0x155da1[_0x196aba(0x204)]);_0x4cfa42&&(_0x299307[_0x196aba(0x46f)][_0x155da1['id']]=e['Tools']['deepClone'](_0x155da1),_0x299307['dataSources'][_0x4cfa42['id']]=e[_0x196aba(0x2c0)]['deepClone'](_0x4cfa42));}),Object[_0x55cd3e(0x48f)](_0x299307['charts'])[_0x55cd3e(0x29c)]===0x0?_0x293e88:{..._0x293e88,[Ke]:_0x299307};}[_0x4152cc(0x494)](_0x31ec24){const _0xc66b54=_0x4152cc;let _0x2f810d=_0x31ec24[_0xc66b54(0x25a)][Ke];if(!_0x2f810d)return{'redoMutations':[],'undoMutations':[]};let _0xe0bf73=new Map(),_0x942589=[],_0x2e2c4f=[],_0x22dbfa=[],_0x5b8450=[];return _0x31ec24[_0xc66b54(0x29d)][_0xc66b54(0x2c1)](_0x10ae60=>{const _0x3a3c4c=_0xc66b54;if(!this[_0x3a3c4c(0x1d0)](_0x10ae60[_0x3a3c4c(0x4de)])||!this[_0x3a3c4c(0x1d0)](_0x10ae60[_0x3a3c4c(0x22e)]))return;let _0x34cf3=_0x2f810d[_0x3a3c4c(0x46f)][_0x10ae60[_0x3a3c4c(0x4de)][_0x3a3c4c(0x4ca)]];if(!_0x34cf3)return;let _0x244ddb=_0x2f810d['dataSources'][_0x34cf3[_0x3a3c4c(0x204)]];if(!_0x244ddb)return;let _0x8c5c66=this['_getOrCreatePastedDataSourceId'](_0x31ec24[_0x3a3c4c(0x342)],_0x244ddb,_0xe0bf73,_0x942589,_0x2e2c4f),_0x4d773f=(0x0,e[_0x3a3c4c(0x44f)])(),_0x1890ae={...e[_0x3a3c4c(0x2c0)][_0x3a3c4c(0x25c)](_0x34cf3),'id':_0x4d773f,'dataSourceId':_0x8c5c66};_0x10ae60[_0x3a3c4c(0x22e)][_0x3a3c4c(0x4ca)]=_0x4d773f,_0x22dbfa[_0x3a3c4c(0x201)]({'id':a[_0x3a3c4c(0x223)]['id'],'params':{'unitId':_0x31ec24[_0x3a3c4c(0x342)],'chart':_0x1890ae}}),_0x5b8450[_0x3a3c4c(0x201)]({'id':a[_0x3a3c4c(0x321)]['id'],'params':{'unitId':_0x31ec24['unitId'],'chartId':_0x4d773f}});}),{'redoMutations':[..._0x942589,..._0x22dbfa],'undoMutations':[..._0x5b8450,..._0x2e2c4f]};}[_0x4152cc(0x30b)](_0xe6ebed,_0x21548b,_0x3db307,_0x4369c2,_0x52cd86){const _0x428da0=_0x4152cc;let _0x26699e=_0x3db307['get'](_0x21548b['id']);if(_0x26699e)return _0x26699e;let _0x459f59=(0x0,e[_0x428da0(0x44f)])();return _0x3db307['set'](_0x21548b['id'],_0x459f59),_0x4369c2[_0x428da0(0x201)]({'id':a[_0x428da0(0x248)]['id'],'params':{'unitId':_0xe6ebed,'dataSource':{...e['Tools'][_0x428da0(0x25c)](_0x21548b),'id':_0x459f59}}}),_0x52cd86[_0x428da0(0x201)]({'id':a[_0x428da0(0x1cf)]['id'],'params':{'unitId':_0xe6ebed,'dataSourceId':_0x459f59}}),_0x459f59;}[_0x4152cc(0x1d0)](_0x44ae07){const _0x3a48b4=_0x4152cc;let _0x4d08f8=_0x44ae07;return(_0x4d08f8==null?void 0x0:_0x4d08f8[_0x3a48b4(0x2f3)])===e[_0x3a48b4(0x377)]['DRAWING_CHART']&&typeof _0x4d08f8[_0x3a48b4(0x4ca)]==_0x3a48b4(0x1cc);}};V=C([S(0x0,(0x0,e[_0x4152cc(0x2d6)])(u[_0x4152cc(0x42b)])),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(u[_0x4152cc(0x212)])),S(0x2,(0x0,e[_0x4152cc(0x2d6)])(a[_0x4152cc(0x1b0)]))],V);let H=class extends e[_0x4152cc(0x3fd)]{constructor(_0x348bbc,_0x77cc05,_0x2cac9d,_0x34e5c3){const _0x39685b=_0x4152cc;super(),this['_drawingAdapterService']=_0x348bbc,this['_floatingToolbarAdapterService']=_0x77cc05,this[_0x39685b(0x2ab)]=_0x2cac9d,this[_0x39685b(0x4df)]=_0x34e5c3,this['_initAdapter']();}[_0x4152cc(0x3f4)](){const _0x2f179c=_0x4152cc;this['disposeWithMe'](this[_0x2f179c(0x2cd)][_0x2f179c(0x1bc)]({'getEditDrawingCommandInfo':({unitId:_0x1277eb,drawing:_0x28985e})=>{const _0x552b86=_0x2f179c;let _0x2616e6=qe(_0x28985e);return _0x2616e6?{'label':_0x552b86(0x2d7),'commandId':v['id'],'commandParams':{'unitId':_0x1277eb,'chartId':_0x2616e6['chartId'],'drawingId':_0x2616e6[_0x552b86(0x222)]}}:null;}})),this[_0x2f179c(0x3d3)](this['_floatingToolbarAdapterService'][_0x2f179c(0x1bc)]({'getItems':({unitId:_0x21e096,subUnitId:_0x4434f0,drawing:_0x17ff8f})=>{const _0x282745=_0x2f179c;var _0x365645;let _0x36e7ca=qe(_0x17ff8f);if(!_0x36e7ca)return null;let _0x21659f=this[_0x282745(0x2ab)]['getChart'](_0x21e096,_0x36e7ca[_0x282745(0x4ca)]),_0x106c49=(_0x365645=_0x21659f==null?void 0x0:_0x21659f[_0x282745(0x310)])==null?s['ChartTypeBits'][_0x282745(0x49d)]:_0x365645;return[{'type':_0x282745(0x26e),'label':'docs-chart-ui.chartType','index':0x0,'commandId':a[_0x282745(0x21d)]['id'],'commandParamsFactory':_0x192f76=>({'unitId':_0x21e096,'chartId':_0x36e7ca['chartId'],'chartType':Number(_0x192f76)}),'disable':!_0x21659f,'value':String(_0x106c49),'options':(0x0,i[_0x282745(0x2c2)])(re[_0x282745(0x1c8)](_0x37208c=>({..._0x37208c,'label':this['_localeService']['t'](_0x37208c[_0x282745(0x2f0)])})))},{'type':_0x282745(0x23a),'label':_0x282745(0x2d7),'index':0x1,'commandId':v['id'],'commandParams':{'unitId':_0x21e096,'chartId':_0x36e7ca['chartId'],'drawingId':_0x36e7ca[_0x282745(0x222)]},'disable':!0x1,'hideOnClick':!0x0,'icon':_0x282745(0x42f)},{'type':'button','label':_0x282745(0x3c3),'index':0x2,'commandId':d[_0x282745(0x472)]['id'],'commandParams':{'unitId':_0x21e096,'drawings':[{'unitId':_0x21e096,'subUnitId':_0x4434f0,'drawingId':_0x36e7ca[_0x282745(0x222)]}]},'disable':!0x1,'icon':'DrawingDeleteIcon'}];}}));}};H=C([S(0x0,d[_0x4152cc(0x412)]),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(f[_0x4152cc(0x259)])),S(0x2,(0x0,e['Inject'])(a['DocChartResourceService'])),S(0x3,(0x0,e[_0x4152cc(0x2d6)])(e[_0x4152cc(0x333)]))],H);function qe(_0x2b7622){const _0x1720a2=_0x4152cc;let _0x5d034e=_0x2b7622;return(_0x5d034e==null?void 0x0:_0x5d034e[_0x1720a2(0x2f3)])===e['DrawingTypeEnum'][_0x1720a2(0x18d)]&&typeof _0x5d034e[_0x1720a2(0x4ca)]==_0x1720a2(0x1cc)?_0x5d034e:null;}const Je=(0x0,e['createIdentifier'])(_0x4152cc(0x498));var Ye=class{constructor(_0x2af029){const _0x22638a=_0x4152cc;this[_0x22638a(0x21b)]=_0x2af029;}async[_0x4152cc(0x43e)](_0x2db6b4,_0x44cf4b){const _0x31a313=_0x4152cc;if(typeof document>'u')throw TypeError(_0x31a313(0x34d));let _0x31d382=new A(_0x44cf4b[_0x31a313(0x4ca)],{'width':_0x2db6b4[_0x31a313(0x447)],'height':_0x2db6b4[_0x31a313(0x1ad)]}),_0x41d266=this[_0x31a313(0x21b)]['createChartInstance'](s['ChartHostRenderMode'][_0x31a313(0x2e0)]);try{let {chartConfig:_0x350405,chartStyle:_0xc0d6e0}=this[_0x31a313(0x21b)]['createRenderInput'](_0x44cf4b);_0x41d266['bind'](_0x31d382),await _0x41d266['render']({'chartId':_0x44cf4b[_0x31a313(0x4ca)],'config':_0x350405,'style':_0xc0d6e0});let _0x3ce580=_0x31d382[_0x31a313(0x4ce)]();if(!_0x3ce580)throw Error(_0x31a313(0x40d)+_0x44cf4b[_0x31a313(0x342)]+'/'+_0x44cf4b[_0x31a313(0x4ca)]);return _0x3ce580;}finally{_0x41d266[_0x31a313(0x397)](),_0x31d382[_0x31a313(0x397)]();}}};let U=class extends e['Disposable']{constructor(_0x4ce590,_0x5cf5ae,_0x3610fc,_0x4c2714){const _0x56fd00=_0x4152cc;super(),this['_localeService']=_0x4ce590,this[_0x56fd00(0x4c4)]=_0x5cf5ae,k(this,'snapshotUpdated$',new p[(_0x56fd00(0x467))]()),k(this,_0x56fd00(0x475),new p[(_0x56fd00(0x467))]()),k(this,_0x56fd00(0x422),new Map()),k(this,_0x56fd00(0x2d1),[]),k(this,'_configWaitKeys',new Map()),k(this,_0x56fd00(0x258),!0x1),k(this,_0x56fd00(0x26a),null),k(this,'_renderer',void 0x0),this[_0x56fd00(0x3f5)]=_0x4c2714==null?new Ye(_0x3610fc):_0x4c2714,this[_0x56fd00(0x3d3)](this[_0x56fd00(0x4df)]['direction$']['pipe']((0x0,p['skip'])(0x1))[_0x56fd00(0x3a0)](()=>{const _0x560d25=_0x56fd00;this[_0x560d25(0x451)]();}));}[_0x4152cc(0x490)](_0x54cf1){const _0x153da0=_0x4152cc;let _0x3cd31a=this[_0x153da0(0x18a)](_0x54cf1),_0x5a0c9a=this['_cache'][_0x153da0(0x4bd)](_0x3cd31a);if(_0x5a0c9a&&_0x5a0c9a[_0x153da0(0x3fe)]!=='error')return _0x5a0c9a;let _0x4ac69d={'key':_0x3cd31a,'status':_0x153da0(0x224)};return this['_cache']['set'](_0x3cd31a,_0x4ac69d),this['_queue']['push'](_0x54cf1),this[_0x153da0(0x4dd)](),_0x4ac69d;}[_0x4152cc(0x3b1)](_0x13b790){const _0x454559=_0x4152cc;return this[_0x454559(0x422)][_0x454559(0x4bd)](this[_0x454559(0x18a)](_0x13b790));}[_0x4152cc(0x2a5)](_0x30ca65,_0x5e8187,_0x569362){const _0x120c96=_0x4152cc;let _0x4462e2=_0x30ca65+'::'+_0x5e8187+'::';if(Array[_0x120c96(0x3d4)](this[_0x120c96(0x422)][_0x120c96(0x48f)]())[_0x120c96(0x2c1)](_0x303ae6=>{const _0x11ab75=_0x120c96;_0x303ae6[_0x11ab75(0x369)](_0x4462e2)&&this[_0x11ab75(0x422)][_0x11ab75(0x3fa)](_0x303ae6);}),_0x569362!=null&&_0x569362[_0x120c96(0x395)]){let _0x4d0db2=this[_0x120c96(0x2ff)](_0x30ca65,_0x5e8187);this[_0x120c96(0x4af)]['set'](this['_getChartKey'](_0x30ca65,_0x5e8187),_0x4d0db2==null?void 0x0:_0x4d0db2[_0x120c96(0x4c9)][_0x120c96(0x3af)]);}this[_0x120c96(0x475)][_0x120c96(0x18c)]({'unitId':_0x30ca65,'chartId':_0x5e8187});}['getCacheKey'](_0xe9bd0){const _0x1b4d21=_0x4152cc;var _0x319491,_0xfe91b6;return[_0xe9bd0['unitId'],_0xe9bd0[_0x1b4d21(0x4ca)],Math[_0x1b4d21(0x22a)](_0xe9bd0[_0x1b4d21(0x447)]),Math[_0x1b4d21(0x22a)](_0xe9bd0[_0x1b4d21(0x1ad)]),(_0x319491=_0xe9bd0['dpr'])==null?0x1:_0x319491,this[_0x1b4d21(0x4df)][_0x1b4d21(0x352)](),(_0xfe91b6=_0xe9bd0[_0x1b4d21(0x381)])==null?_0x1b4d21(0x185):_0xfe91b6][_0x1b4d21(0x17d)]('::');}async[_0x4152cc(0x49a)](){const _0x1163d9=_0x4152cc;for(;this[_0x1163d9(0x2d1)][_0x1163d9(0x29c)]>0x0||this['_rendering']||this[_0x1163d9(0x26a)];){var _0x3385d6;await((_0x3385d6=this[_0x1163d9(0x26a)])==null?Promise[_0x1163d9(0x46c)]():_0x3385d6),await Promise['resolve']();}}[_0x4152cc(0x397)](){const _0x2a38ab=_0x4152cc;this['_cache'][_0x2a38ab(0x3e1)](),this[_0x2a38ab(0x2d1)][_0x2a38ab(0x29c)]=0x0,this[_0x2a38ab(0x4af)][_0x2a38ab(0x3e1)](),this[_0x2a38ab(0x44d)][_0x2a38ab(0x278)](),this['chartInvalidated$'][_0x2a38ab(0x278)](),super[_0x2a38ab(0x397)]();}[_0x4152cc(0x4dd)](){const _0x5b10f3=_0x4152cc;this['_rendering']||(this[_0x5b10f3(0x26a)]=this[_0x5b10f3(0x2df)]()['finally'](()=>{const _0x23c572=_0x5b10f3;this[_0x23c572(0x26a)]=null;}));}['_invalidateSnapshotsForDirectionChange'](){const _0x20dd60=_0x4152cc;let _0x3c6ff2=new Map();Array[_0x20dd60(0x3d4)](this[_0x20dd60(0x422)][_0x20dd60(0x48f)]())[_0x20dd60(0x2c1)](_0x196db1=>{const _0x5d8679=_0x20dd60;let [_0x18953e,_0x2b60a0]=_0x196db1[_0x5d8679(0x180)]('::');_0x18953e&&_0x2b60a0&&_0x3c6ff2['set'](_0x18953e+'::'+_0x2b60a0,{'unitId':_0x18953e,'chartId':_0x2b60a0});}),this[_0x20dd60(0x422)][_0x20dd60(0x3e1)](),_0x3c6ff2['forEach'](_0x5b1be7=>{const _0x51062e=_0x20dd60;this[_0x51062e(0x475)][_0x51062e(0x18c)](_0x5b1be7);});}async['_runQueue'](){const _0x42c1a3=_0x4152cc;if(!this['_rendering']){this['_rendering']=!0x0;try{for(;this['_queue']['length']>0x0;){let _0x3933d7=this[_0x42c1a3(0x2d1)][_0x42c1a3(0x24b)]();await this[_0x42c1a3(0x3f7)](_0x3933d7);}}finally{this[_0x42c1a3(0x258)]=!0x1;}}}async[_0x4152cc(0x3f7)](_0xae58e6){const _0x22d056=_0x4152cc;let _0x45080b=this[_0x22d056(0x18a)](_0xae58e6),_0x23168e=this['_cache'][_0x22d056(0x4bd)](_0x45080b);if(!_0x23168e||_0x23168e['status']!==_0x22d056(0x224))return;let _0x3055ec=this[_0x22d056(0x4c4)][_0x22d056(0x46a)](_0xae58e6['unitId'],_0xae58e6['chartId']);if(!_0x3055ec){_0x23168e[_0x22d056(0x3fe)]=_0x22d056(0x29e),_0x23168e[_0x22d056(0x29e)]=Error(_0x22d056(0x334)+_0xae58e6[_0x22d056(0x342)]+'/'+_0xae58e6['chartId']),this[_0x22d056(0x44d)][_0x22d056(0x18c)](_0x23168e);return;}try{if(await this[_0x22d056(0x45c)](_0x3055ec),this[_0x22d056(0x422)][_0x22d056(0x4bd)](_0x45080b)!==_0x23168e||_0x23168e[_0x22d056(0x3fe)]!==_0x22d056(0x224))return;_0x23168e['dataUrl']=await this[_0x22d056(0x3f5)]['render'](_0xae58e6,_0x3055ec),_0x23168e[_0x22d056(0x3fe)]=_0x22d056(0x18e);}catch(_0x25613b){_0x23168e[_0x22d056(0x3fe)]=_0x22d056(0x29e),_0x23168e[_0x22d056(0x29e)]=_0x25613b;}this[_0x22d056(0x44d)][_0x22d056(0x18c)](_0x23168e);}async[_0x4152cc(0x45c)](_0x4b4417){const _0x2c0e12=_0x4152cc;let _0x5ab35f=_0x4b4417['model'];if(!_0x5ab35f||!_0x5ab35f[_0x2c0e12(0x23c)])return;let _0x1c636d=this[_0x2c0e12(0x4e0)](_0x4b4417['unitId'],_0x4b4417[_0x2c0e12(0x4ca)]);if(this[_0x2c0e12(0x4af)][_0x2c0e12(0x364)](_0x1c636d)){let _0x4bc9f9=this['_configWaitKeys']['get'](_0x1c636d);if(_0x5ab35f[_0x2c0e12(0x3af)]&&_0x5ab35f[_0x2c0e12(0x3af)]!==_0x4bc9f9){this['_configWaitKeys'][_0x2c0e12(0x3fa)](_0x1c636d);return;}try{await(0x0,p[_0x2c0e12(0x486)])(_0x5ab35f[_0x2c0e12(0x23c)][_0x2c0e12(0x378)]((0x0,p['filter'])(_0x5e64ee=>_0x5e64ee!=null&&_0x5e64ee!==_0x4bc9f9),(0x0,p[_0x2c0e12(0x476)])(0x1),(0x0,p['timeout'])({'first':0x3e8})));}catch{}finally{this[_0x2c0e12(0x4af)][_0x2c0e12(0x3fa)](_0x1c636d);}return;}_0x5ab35f[_0x2c0e12(0x3af)]||await(0x0,p[_0x2c0e12(0x486)])(_0x5ab35f[_0x2c0e12(0x23c)][_0x2c0e12(0x378)]((0x0,p[_0x2c0e12(0x3b0)])(_0x373bb5=>_0x373bb5!=null),(0x0,p['take'])(0x1),(0x0,p['timeout'])({'first':0x3e8})));}[_0x4152cc(0x4e0)](_0x4d9342,_0x4b6d62){return _0x4d9342+'::'+_0x4b6d62;}[_0x4152cc(0x2ff)](_0x93f6c7,_0x334bef){var _0x1faaa4;return(_0x1faaa4=this['_modelService']['getChartModel'](_0x93f6c7,_0x334bef))==null?this['_modelService']['ensureChartModel'](_0x93f6c7,_0x334bef):_0x1faaa4;}};U=C([S(0x0,(0x0,e[_0x4152cc(0x2d6)])(e['LocaleService'])),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(a[_0x4152cc(0x250)])),S(0x2,(0x0,e[_0x4152cc(0x2d6)])(M)),S(0x3,(0x0,e['Optional'])(Je))],U);let W=class extends e[_0x4152cc(0x3fd)]{constructor(_0x5ded23,_0x186220,_0x3e416f,_0x2f00bf){const _0x5c896b=_0x4152cc;super(),this[_0x5c896b(0x45a)]=_0x5ded23,this[_0x5c896b(0x3be)]=_0x186220,this[_0x5c896b(0x2ab)]=_0x3e416f,this[_0x5c896b(0x4c4)]=_0x2f00bf,this[_0x5c896b(0x297)]();}[_0x4152cc(0x297)](){const _0x41947e=_0x4152cc;this['disposeWithMe'](this[_0x41947e(0x45a)]['onCommandExecuted'](_0x365f50=>{const _0x250959=_0x41947e;if(_0x365f50['id']===a[_0x250959(0x223)]['id']){var _0x403630;let _0x358477=_0x365f50[_0x250959(0x375)];_0x358477!=null&&_0x358477[_0x250959(0x342)]&&(_0x403630=_0x358477[_0x250959(0x2ea)])!=null&&_0x403630['id']&&(this[_0x250959(0x3c4)](_0x358477)?this[_0x250959(0x3be)][_0x250959(0x2a5)](_0x358477[_0x250959(0x342)],_0x358477[_0x250959(0x2ea)]['id'],{'waitForConfig':!0x0}):this[_0x250959(0x3be)][_0x250959(0x2a5)](_0x358477[_0x250959(0x342)],_0x358477[_0x250959(0x2ea)]['id']));return;}if(_0x365f50['id']===a[_0x250959(0x248)]['id']){var _0x1a5282;let _0xa2b117=_0x365f50[_0x250959(0x375)];if(!(_0xa2b117!=null&&_0xa2b117[_0x250959(0x342)])||!((_0x1a5282=_0xa2b117[_0x250959(0x443)])!=null&&_0x1a5282['id']))return;this[_0x250959(0x2ab)][_0x250959(0x1f4)](_0xa2b117['unitId'],_0xa2b117[_0x250959(0x443)]['id'])[_0x250959(0x2c1)](_0x5e6157=>this['_snapshotService']['invalidateChart'](_0xa2b117[_0x250959(0x342)],_0x5e6157,{'waitForConfig':!0x0}));}}));}[_0x4152cc(0x3c4)](_0x349ef4){const _0x4bb3d8=_0x4152cc;var _0x23486d;let _0x26ca19=(_0x23486d=this['_modelService'][_0x4bb3d8(0x1e8)](_0x349ef4[_0x4bb3d8(0x342)],_0x349ef4[_0x4bb3d8(0x2ea)]['id']))==null||(_0x23486d=_0x23486d[_0x4bb3d8(0x4c9)][_0x4bb3d8(0x3af)])==null?void 0x0:_0x23486d[_0x4bb3d8(0x27a)];return _0x26ca19!=null&&_0x26ca19!==_0x349ef4[_0x4bb3d8(0x2ea)][_0x4bb3d8(0x310)];}};W=C([S(0x0,e[_0x4152cc(0x3cd)]),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(U)),S(0x2,(0x0,e[_0x4152cc(0x2d6)])(a[_0x4152cc(0x1b0)])),S(0x3,(0x0,e[_0x4152cc(0x2d6)])(a['DocChartModelService']))],W);const G=_['id'],Xe=G+_0x4152cc(0x31e),Ze=[{'label':_0x4152cc(0x3d5),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x3ef)],'icon':'LineChartIcon'},{'label':_0x4152cc(0x400),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x49d)],'icon':_0x4152cc(0x4be)},{'label':_0x4152cc(0x231),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x1e2)],'icon':'PieChartIcon'},{'label':'docs-chart-ui.chartTypes.bar','value':s[_0x4152cc(0x30e)][_0x4152cc(0x370)],'icon':_0x4152cc(0x313)},{'label':_0x4152cc(0x293),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x4a9)],'icon':'BarChartIcon'},{'label':'docs-chart-ui.chartTypes.barPercentStacked','value':s[_0x4152cc(0x30e)][_0x4152cc(0x218)],'icon':_0x4152cc(0x313)},{'label':_0x4152cc(0x42a),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x17a)],'icon':_0x4152cc(0x2c7)},{'label':_0x4152cc(0x200),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x286)],'icon':'AreaChartIcon'},{'label':_0x4152cc(0x22f),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x195)],'icon':_0x4152cc(0x2c7)},{'label':_0x4152cc(0x37a),'value':s['ChartTypeBits']['Radar'],'icon':'RadarChartIcon'},{'label':_0x4152cc(0x26d),'value':s['ChartTypeBits'][_0x4152cc(0x41a)],'icon':_0x4152cc(0x1fd)},{'label':_0x4152cc(0x4c0),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x383)],'icon':_0x4152cc(0x1bf)},{'label':'docs-chart-ui.chartTypes.wordCloud','value':s[_0x4152cc(0x30e)][_0x4152cc(0x1e3)],'icon':_0x4152cc(0x283)},{'label':_0x4152cc(0x4ba),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x491)],'icon':'FunnelIcon'},{'label':_0x4152cc(0x343),'value':s[_0x4152cc(0x30e)]['Bubble'],'icon':_0x4152cc(0x416)},{'label':_0x4152cc(0x4aa),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x190)],'icon':'RelationshipIcon'},{'label':_0x4152cc(0x31c),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x43c)],'icon':_0x4152cc(0x386)},{'label':_0x4152cc(0x424),'value':s['ChartTypeBits'][_0x4152cc(0x1ec)],'icon':_0x4152cc(0x1fd)},{'label':'docs-chart-ui.chartTypes.sankey','value':s[_0x4152cc(0x30e)][_0x4152cc(0x3e4)],'icon':_0x4152cc(0x44e)},{'label':_0x4152cc(0x39e),'value':s[_0x4152cc(0x30e)]['Heatmap'],'icon':_0x4152cc(0x444)},{'label':_0x4152cc(0x19a),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x3d8)],'icon':_0x4152cc(0x26f)},{'label':_0x4152cc(0x36e),'value':s[_0x4152cc(0x30e)]['Candlestick'],'icon':_0x4152cc(0x347)},{'label':_0x4152cc(0x357),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x27e)],'icon':_0x4152cc(0x31b)},{'label':_0x4152cc(0x1c0),'value':s['ChartTypeBits'][_0x4152cc(0x1f6)],'icon':_0x4152cc(0x3b2)}];function _0x56f3(){const _0x45830a=['PARAGRAPH','Solid','IChartRenderModelManagerService','Fill\x20area','createChartInstance','toStringTag','indicatorLineType','A\x0912','_getOrCreatePastedDataSourceId','title','DOCS_CHART_UI_PLUGIN_CONFIG_KEY','ChartTypeBits','_prepareStandaloneInsertLine','chartType','syncExecuteCommand','_renderCharts','BarChartIcon','Point\x20shape','_initMenus','hide','_activate','resolveChartRuntimeStyle','doc-chart.editor-dialog','canva','HistogramChartIcon','docs-chart-ui.chartTypes.waterfall','ChartNumberField','.below','endOffset','block','RemoveDocChartSnapshotMutation','C\x099','Auto','border-box','add','useRef','shared','WaterfallStackTypeEnum','dataAggregation','_drawingManagerService','backgroundColor','univer-margin-left-[1.5px]\x20univer-font-weight-500\x20univer-text-xs','_handleFocus','clientHeight','legend','Radar','includes','Candlestick','LocaleService','Missing\x20runtime\x20document\x20chart\x20model:\x20','docs-chart-ui.showLabels','area','AreaLineStyle','xAxisTitle','combineLatest','_dialogService','Heatmap','defineProperty','Opacity','DOC_CHART_DATA_EDITOR_COMPONENT','_componentManager','gradientFill','chartBitsUtils','unitId','docs-chart-ui.chartTypes.bubble','DuplicateDocChartDataSourceCommand','pluginName','doc-chart.render-model','CandlestickChartIcon','_configService','default','Hide','shouldComposeChartHostFrame','small','Document\x20chart\x20snapshot\x20rendering\x20requires\x20a\x20browser\x20document.','Gap','Optional','updateDataAggregation','DeleteEmptyIcon','getDirection','DocImageChartHost','lastIndexOf','executeCommand','_createImageShape','docs-chart-ui.chartTypes.histogram','Arrangement','docs-chart-ui.candlestick.open','radius','Show\x20ticks','getBoundingClientRect','Value','decorate','dblclick','Injector','doc-chart-host','setActiveDomReady','Piecewise','has','indicatorLine','docs-chart-ui.chartType','insertChartFromText','IDialogService','startsWith','slice','onStarting','_renderEntry','DOC_CONTENT_INSERT_MENU_ID','docs-chart-ui.chartTypes.candlestick','_renderModelManager','Bar','_registerDialogOperations','doughnutHole','univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','ChartEditBlockTitle','params','IDrawingManagerService','DrawingTypeEnum','pipe','minColumns','docs-chart-ui.chartTypes.radar','markReady','RadarChartIcon','_staticRenderController','univer-flex\x20univer-flex-col\x20univer-gap-2','min(560px,\x20calc(100vh\x20-\x20180px))','docs-chart-ui.series','mode','SelectModeEnum','Scatter','createElement','docs-chart-ui.chartAndAxisTitles','WaterfallChartIcon','Button','className','normalizeInlineTableValues','point','_getContentRect','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_activeLayer','stylizeSpec','engine','8807827ICgPFH','sharingCount','insertChart','ChartTextField','updateDataFromText','waitForConfig','funnel','dispose','Vertical\x20width','OPERATION','_getChartDrawing','doc-chart.dialog.data-editor','DocChartInsertRibbonMenuItemFactory','theme','docs-chart-ui.chartTypes.heatmap','visualMapType','subscribe','updateData','getChartHostFrameContentRect','remove','LegendPositionEnum','mountChart','resolveDefaultChartHostFrameStyle','4075470PkMPWB','Accordion','mark','-data-source','register','transformerConfig','getDrawingShapeKeyByDrawingSearch','_forEachChartDrawing','config','filter','getSnapshot','TreemapChartIcon','Percentage','border','hit','docs-chart-ui.showDataLabels','Right','transformByState','getRenderModel','function','key','Stack','Title\x20font\x20size','_snapshotService','borderColor','useMemo','docs-chart-ui.close','univer-flex\x20univer-justify-end\x20univer-px-1\x20univer-pb-4\x20univer-pt-4','docs-chart-ui.delete','_shouldWaitForChartConfig','px\x20solid\x20','addFloatDom','ChartAttributeBits','_init','SeriesName','None','_requestSnapshotsForUnit','_removeRenderedCharts','ICommandService','addClipboardHook','applyHostStyle','borderStyle','div','#ffffff','disposeWithMe','from','docs-chart-ui.chartTypes.line','setActiveChartById','jsxs','Boxplot','waterfall','chartContext','catch','DocChartInsertService','docs-chart-ui.chartTypes.sankey','univer-mt-2','docs-chart-ui.active-chart','UniverLicensePlugin','clear','contains','dashType','Sankey','RibbonInsertGroup','univer-w-full\x20!univer-min-w-0','minRows','value','_resolveInsertPosition','getCurrentRenderModel','Outside','DocChartInsertBelowMenuItemFactory','textSelection$','transform','Line','Point\x20size','setStyle','stackType','Horizontal\x20width','_initAdapter','_renderer','duplicate','_renderOne','_syncRenderedChartVisibility','_setElementSize','delete','MEDIA','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pb-3','Disposable','status','Dashed','docs-chart-ui.chartTypes.column','wrap','_getActiveRenderRect','Force','max','visible','docs-chart-ui.border','StackType','Single','getRect','getCurrentTypeOfUnit$','useSubtotal','DocChartDataEditService','Failed\x20to\x20render\x20document\x20chart\x20snapshot:\x20','_registerComponents','data','docs-chart-ui.chartStyle','_applyHostStyle','IDocDrawingAdapterService','color','_docContentInsertService','RelationChartLayoutEnum','BubbleIcon','_registerIcons','Close','4135152lxTjqy','Combination','indexOf','DocsChartUIMenuSchema','startIndex','parseInlineTable','style','ChartHostRenderMode','route','_cache','verticalAxis','docs-chart-ui.chartTypes.pareto','applyInlineTablePaste','breakOffsets','DOC_CHART_INSERT_BELOW_MENU_ID','borderRadius','docs-chart-ui.legend','docs-chart-ui.chartTypes.area','IDocClipboardService','assignChartContext','_isActiveLayer','Number/date\x20format','DrawingEditIcon','_refreshActivePosition','_initCommands','parseInt','DependentOn','Observable','Max','getMenuHiddenObservable','labelContentType','_subscribeRender','insertRange','source','Diamond','Waterfall','_activeDomReadyDrawingKeys','render','_hostStyle','Min','fillOpacity','univer-absolute\x20univer-inset-0\x20univer-min-h-0\x20univer-min-w-0\x20univer-overflow-hidden\x20univer-rounded-lg','dataSource','HeatmapChartIcon','docs-chart-ui.tableDataEmpty','pie','width','168agXPZz','_dataUrl','UniverUIPlugin','DOC_WORD_CLOUD_RENDER_CONFIG','toDisposable','snapshotUpdated$','SankeyChartIcon','generateRandomId','jsx','_invalidateSnapshotsForDirectionChange','observe','_getPositionState','getRenderColor','_getDrawingRect','docs-chart-ui.setupChart','UniverRenderEnginePlugin','unsubscribe','Circular','_commandService','getAncestorScale','_waitForRuntimeConfig','lineAndArea','docs-chart-ui.horizontalAxis','Title\x20position','_rect','Series\x20style','consumeInsertRange','drawings','initTransformer','position','number','Subject','ChartEditPanelTabs','univer-text-xs','ensureChartModel','univer-mt-2\x20univer-text-sm\x20univer-leading-4\x20univer-text-gray-900\x20dark:!univer-text-white','resolve','getCanvasElement','normalizeCandlestickInlineTable','charts','doc-chart.dialog.editor','reverse','RemoveDocDrawingCommand','DOC_CHART_EDITOR_DIALOG_ID','docs-chart-ui.gridlinesAndTicks','chartInvalidated$','take','SeriesLabelPosition','_syncChartImageVisibility','Document\x20chart\x20','ChartSelectField','Circle','_renderManagerService','Bottom','column','endIndex','updateChartStyle','order','horizontalAxis','DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID','_instanceService','SankeyIcon','firstValueFrom','Right\x20vertical\x20axis\x20title','univer-flex\x20univer-flex-wrap\x20univer-gap-2','chartAndAxisTitles','useEffect','fill','DOC_CHART_INSERT_MENU_OPTIONS','IRenderManagerService','mergeMenu','keys','requestSnapshot','Funnel','sourceDocuments','DOC_CHART_CLIPBOARD_RESOURCE_KEY','_getPasteMutationInfos','syncLayout','wordCloud','ChartPropertyRow','doc-chart.snapshot-renderer','positionObserver','flushForTests','LineChartIcon','DropdownMenu','Column','seriesIndexes','hidden','docs-chart-ui.chartTypes.wordCloud','IconManager','textStyle','_createChartRenderInstanceContext','MenuItemType','4992966qTcIrB','imageContentHidden','focus','titlePosition','BarStacked','docs-chart-ui.chartTypes.relation','tooltip','markNotReady','univer-min-h-full','chartStyle','_configWaitKeys','Visual\x20map','Dotted','fontSize','LAYOUT','univer-flex\x20univer-shrink-0\x20univer-justify-end\x20univer-gap-2','docs-chart-ui.title','Category\x09Value','overflow','boxSizing','left','docs-chart-ui.chartTypes.funnel','Bubble','Series','get','ColumnChartIcon','SHARED','docs-chart-ui.chartTypes.scatter','univer-shrink-0','getChartSemanticDataFieldKind','symbol','_modelService','setImageContentHidden','useState','continuous','rgb(','model','chartId','ChartIcon','Axis\x20title\x20font\x20size','DocContentInsertService','getDataUrl','top','openInsertDialog','dataUrl','dispatchEvent','UniverInstanceType','IUniverInstanceService','IncreaseIcon','onChartTypeChange','IMenuManagerService','doc.operation.open-doc-chart-editor-dialog','_docClipboardService','OpenDocChartEditorDialogOperation','orient','3254860mrkuiA','_drainQueue','sourceDrawing','_localeService','_getChartKey','doc-chart.data-editor','Doughnut\x20hole','Area','PieLabelPosition','DocActiveChart','join','image','layout','split','createIdentifier','direction$','getViewport','getDrawingEditable','main','UniverDocsPlugin','textRanges','series','_getRenderRect','getCacheKey','yAxis','next','DRAWING_CHART','ready','DocChartSnapshotRenderService','Relation','contentRect','DocChartEditorDialog','packageName','position$','AreaPercentStacked','titles','getCurrentUnitOfType','_captureInsertRange','Line\x20style','docs-chart-ui.chartTypes.boxplot','DocChartInsertPanel','isHalfPie','_iconManager','current','PieChartIcon','then','univer-flex\x20univer-justify-end\x20univer-gap-2','_mountNode','prototype','requestPaint','Plugin','removeFloatDom','RelationshipIcon','rightYAxisTitle','Label\x20rotate','univer-flex\x20univer-flex-col\x20univer-gap-2\x20univer-pb-3','values','subtitle','height','getDrawingDataForUnit','docs-chart-ui.editData','DocChartResourceService','27LLVvje','UNIVER_DOC','defaultChartConfig','relative','WordCloudShapeEnum','makeDirty','setConfig','docs-chart-ui.insert','match','_pasteAdapterService','Border\x20dash','registerAdapter','docs-chart-ui.chart','ChartInlineTableEditor','ScatterChartIcon','docs-chart-ui.chartTypes.treemap','_config','click','univer-flex\x20univer-min-h-0\x20univer-w-[388px]\x20univer-shrink-0\x20univer-flex-col\x20univer-gap-4\x20univer-overflow-hidden\x20univer-overscroll-contain','size','docs-chart-ui.chartNotFound','repeat','4126YXVkqw','map','docs-chart-ui.reverseAxis','useAbsValue','UniverDocsDrawingPlugin','string','Disabled','_imageContentHidden','RemoveDocChartDataSourceMutation','_isDocChartDrawing','docs-chart-ui.insertChart','Checkbox','Node\x20shape','some','DocChartActiveRenderService','docs-chart-ui.inlineData','Left','_snapshotRenderService','10jgUnks','docs-chart-ui.customizeChart','getDataSourceSharingCount','startOffset','rosePie','print','@univerjs-pro/docs-chart-ui','Select\x20mode','gridLine','Pie','WordCloud','Border\x20width','Stacked','docs-chart-ui.horizontalAxisTitle','ContextMenuPosition','getChartModel','_initClipboardHooks','radar','Color','Pareto','invalidateSnapshot','right','PercentStack','buildChartThemeSelectOptions','Polygon','DocChartInlineTableEditor','alt','getChartIdsByDataSource','DocChartDataEditor','Treemap','getHostStyle','ChartThemeService','univer-p-4\x20univer-text-sm\x20univer-text-gray-500\x20dark:!univer-text-gray-400','docs-chart-ui.verticalAxis','_draw','Label\x20position','ComboChartIcon','LinePointShape','compactInlineTableValues','docs-chart-ui.chartTypes.areaStacked','push','piecewise','call','dataSourceId','DocChartRenderService','baseOn','_requestSnapshot','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1\x20univer-overflow-hidden','segmentId','getTextRanges','getRuntimeContext','ChartSemanticDataFields','ensureMount','useValueAsSymbolSize','DocChartSnapshotRefreshController','setClipBounds','UniverDocsChartPlugin','IDocClipboardPasteAdapterService','primary','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','DRAWING_OBJECT_LAYER_INDEX','_deactivate','DOC_PARAGRAPH_T_INSERT_MENU_ID','BarPercentStacked','univer-mx-0\x20univer-mt-0','useDependency','_renderService','getUnitId','UpdateDocChartConfigCommand','DocChartPrintService','subscribeEvent','DocSelectionManagerService','contentType','drawingId','SetDocChartSnapshotMutation','pending','univer-ml-2\x20univer-flex\x20univer-size-6\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-sm\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','defaultTableText','content','gridlinesAndTicks','DUPLICATE','round','Label\x20font\x20size','isFinite','_getDrawing','targetDrawing','docs-chart-ui.chartTypes.areaPercentStacked','BreakLineCommand','docs-chart-ui.chartTypes.pie','univer-pr-1','Multiple','ChartCheckboxField','docs-chart-ui.updateChartFailed','Square','subUnitId','Theme','UniverDrawingPlugin','button','category-series','config$','EChartRenderModel','_host','univer-bg-white/90\x20dark:!univer-bg-gray-900/90\x20univer-absolute\x20univer-bottom-3\x20univer-left-3\x20univer-rounded\x20univer-px-2\x20univer-py-1\x20univer-text-xs\x20univer-text-red-600','_canvasFloatDomService','Step','e.g.\x200.00…','DocChartInsertMenuItemFactory','univer-mt-2\x20univer-text-xs\x20univer-text-red-600','categoryIndex','context','_injector','SetDocChartDataSourceMutation','docs-chart-ui.candlestick.close','_retryActivateFocusedChart','shift','initData','changeSource','titleFontSize','angle','DocChartModelService','univer-text-xs\x20univer-text-red-600','VIEWPORT_KEY','SECTION_BREAK','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-3','DOC_CHART_DATA_EDITOR_DIALOG_ID','doc-chart.dialog.insert','renderRect','_rendering','DocDrawingFloatingToolbarAdapterService','doc','Triangle','deepClone','docs-chart-ui.apply','root','Position','rotate','index','row','appendInlineTableRow','univer-flex\x20univer-size-full\x20univer-min-w-0\x20univer-gap-5','100%','collapsed','getChart','onContextChange','DOC_CHART_EDITOR_DIALOG_COMPONENT','_activeDrain','firstColumnAsCategory','Half\x20pie','docs-chart-ui.chartTypes.combination','select','BoxplotIcon','univer-w-[--radix-popper-anchor-width]','display','docs-chart-ui.visible','refreshTransform$','bottom','HeatmapIcon','ChartEditPanelScaffold','onClose','complete','style$','type','6fVObrR','openEditorDialog','getEditorState','Histogram','registerCommand','setRenderModel','_docSelectionManagerService','UniverDocsChartUIPlugin','CloudOutlineIcon','Inside','docs-chart-ui.candlestick.low','AreaStacked','getRealBound','ChartBorderDashType','relation','indicatorLineColor','B\x0918','trim','clipBounds','getObjectIncludeInGroup','parseFloat','dataStream','onReady','span','docs-chart-ui.chartTypes.barStacked','getActiveTextRange','removeObject','docs-chart-ui.data','_listenChartResourceMutations','univer-flex\x20univer-w-full\x20univer-min-w-0\x20univer-flex-col\x20univer-overflow-hidden\x20univer-overscroll-contain','univer-min-h-0\x20univer-flex-1','Use\x20values\x20as\x20node\x20size','labelStyle','length','customBlockMappings','error','selectMode','ImageChartHost','getFocusDrawings','touchDependencies','heatmap','registerRenderModel','invalidateChart','updateChartType','sceneRect','docs-chart-ui.chartTypes.bar','Line\x20and\x20area','UniverDocsDrawingUIPlugin','_resourceService','docs-chart-ui.candlestick.category','100%\x20stacked','updateChartContext','getDataSource','createRenderSpec','EChartRenderEngineName','Continuous','doc-chart-preview-','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto\x20univer-overscroll-contain\x20univer-pr-1','docs-chart-ui.','getRenderUnitById','Themes','object','DataStreamTreeTokenType','LabelContentType','OpenDocChartInsertDialogOperation','scene','Layout','Repeat\x20words','min','Tools','forEach','buildChartTypeSelectOptions','ChartColorField','TitlePositionEnum','firstRowAsHeader','yAxisTitle','AreaChartIcon','open','xAxis','_univerInstanceService','univer-w-full\x20univer-justify-start','Show\x20label\x20line','_drawingAdapterService','nodeShape','DocChartClipboardController','19023785rnsFZL','_queue','Select','INSERT_BELLOW_MENU_ID','_requestSnapshotsForSearches','img','Inject','docs-chart-ui.editChart','appendInlineTableColumn','customBlocks','DocChartDataEditorSubmitMode','getDrawingByParam','constructor','_manageHostSize','replaceChildren','_runQueue','Image','allSeriesStyle','Dom','getRegisteredThemes','VIEW_MAIN','Top','docs-chart-ui.cancel','getColors','getChartInlineTableMinColumns','onStyleChange','chart','shape','_chartThemeService','#4086f4','createRenderInput','ContextMenuGroup','label','_layoutChanged$','tab','drawingType','bind','Row\x20','DOC_CHART_INSERT_MENU_ID','Gradient\x20fill','Smooth','_getDrawingSearch','disconnect','#d1d5db','docTransform','getSelfOrHeaderFooterModel','BUTTON','_getRuntimeModel','_renderDrawing','_updatePosition','focus$'];_0x56f3=function(){return _0x45830a;};return _0x56f3();}function Qe(_0x1c6c59){const _0x1fe92b=_0x4152cc;return(0x0,p[_0x1fe92b(0x339)])([(0x0,u['disableMenuWhenHeaderFooterEditing'])(_0x1c6c59),$e(_0x1c6c59)])[_0x1fe92b(0x378)]((0x0,p[_0x1fe92b(0x1c8)])(([_0x290e27,_0x4b71d4])=>_0x290e27||_0x4b71d4));}function $e(_0x479cbf){const _0x4fa8d0=_0x4152cc;let _0x3cb208=_0x479cbf[_0x4fa8d0(0x4bd)](l['DocSelectionManagerService']),_0xa26126=_0x479cbf[_0x4fa8d0(0x4bd)](e[_0x4fa8d0(0x4d4)]);return new p[(_0x4fa8d0(0x434))](_0x58da22=>{const _0x344d00=_0x4fa8d0;let _0x4d37c9=_0x270499=>{const _0x4b4a13=_0xfc4a;var _0x2cfb44,_0x17547f,_0x8432b1,_0x1ca5f8,_0x409afd;let _0x18488d=_0xa26126[_0x4b4a13(0x197)](e['UniverInstanceType'][_0x4b4a13(0x1b2)]);if(!_0x18488d){_0x58da22[_0x4b4a13(0x18c)](!0x0);return;}let _0x4a7aa9=(_0x2cfb44=_0x270499==null?void 0x0:_0x270499[_0x4b4a13(0x187)])==null?[...(_0x17547f=_0x3cb208[_0x4b4a13(0x20a)]())==null?[]:_0x17547f]:_0x2cfb44;if(_0x4a7aa9[_0x4b4a13(0x29c)]!==0x1){_0x58da22[_0x4b4a13(0x18c)](!0x0);return;}let _0x3bd35e=(_0x8432b1=_0x3cb208['getActiveTextRange']())==null?_0x4a7aa9[0x0]:_0x8432b1;if(!_0x3bd35e||!_0x3bd35e['collapsed']||_0x3bd35e[_0x4b4a13(0x1dc)]==null){_0x58da22['next'](!0x0);return;}let _0x508f7c=F(_0x18488d,{..._0x3bd35e,'segmentId':(_0x1ca5f8=(_0x409afd=_0x3bd35e[_0x4b4a13(0x209)])==null?_0x270499==null?void 0x0:_0x270499[_0x4b4a13(0x209)]:_0x409afd)==null?'':_0x1ca5f8});_0x58da22[_0x4b4a13(0x18c)](_0x508f7c==null);};_0x4d37c9();let _0x25a25f=_0x3cb208[_0x344d00(0x3ed)][_0x344d00(0x3a0)](_0x2ec565=>_0x4d37c9(_0x2ec565));return()=>_0x25a25f[_0x344d00(0x458)]();});}function et(_0x57bcce){return K(_0x57bcce);}function K(_0x1ac90f){const _0x385ae7=_0x4152cc;return{'id':G,'commandId':_['id'],'type':n[_0x385ae7(0x4a4)][_0x385ae7(0x2fe)],'icon':_0x385ae7(0x4cb),'title':'docs-chart-ui.insertChart','tooltip':_0x385ae7(0x1d1),'disabled$':Qe(_0x1ac90f),'hidden$':(0x0,n['getMenuHiddenObservable'])(_0x1ac90f,e[_0x385ae7(0x4d3)][_0x385ae7(0x1b2)])};}function tt(_0x45067a){const _0x2b8756=_0x4152cc;return{'id':Xe,'commandId':_['id'],'type':n['MenuItemType'][_0x2b8756(0x2fe)],'icon':_0x2b8756(0x4cb),'title':_0x2b8756(0x1d1),'tooltip':_0x2b8756(0x1d1),'disabled$':Qe(_0x45067a),'hidden$':(0x0,n[_0x2b8756(0x436)])(_0x45067a,e['UniverInstanceType'][_0x2b8756(0x1b2)])};}const nt={[n[_0x4152cc(0x3e5)][_0x4152cc(0x3fb)]]:{[G]:{'order':2.5,'menuItemFactory':et}},[n[_0x4152cc(0x1e7)]['PARAGRAPH']]:{[n['ContextMenuGroup'][_0x4152cc(0x4b3)]]:{[u[_0x4152cc(0x2d3)]]:{[G]:{'order':4.5,'menuItemFactory':K}}},[u['EMPTY_PARAGRAPH_MENU_ID']]:{[n[_0x4152cc(0x2ef)][_0x4152cc(0x4b3)]]:{[G]:{'order':5.5,'menuItemFactory':K}}},[u[_0x4152cc(0x36d)]]:{[n[_0x4152cc(0x2ef)]['LAYOUT']]:{[G]:{'order':4.5,'menuItemFactory':K}}},[u[_0x4152cc(0x217)]]:{'insert':{[G]:{'order':1.5,'menuItemFactory':K}}},[u[_0x4152cc(0x483)]]:{'insert':{[Xe]:{'order':1.5,'menuItemFactory':tt}}}}};var rt=_0x4152cc(0x1df),it='1.0.0-alpha.8',at=class extends g['Image']{constructor(..._0x2404ee){const _0x5deae4=_0x4152cc;super(..._0x2404ee),k(this,_0x5deae4(0x1ce),!0x1);}get[_0x4152cc(0x4a6)](){return this['_imageContentHidden'];}[_0x4152cc(0x4c5)](_0x508106){const _0x504c08=_0x4152cc;this[_0x504c08(0x1ce)]!==_0x508106&&(this[_0x504c08(0x1ce)]=_0x508106,this[_0x504c08(0x1b6)](!0x0));}[_0x4152cc(0x1fb)](_0x15d081,_0x273e80,_0x22b150,_0x24ab32){const _0x5af0bf=_0x4152cc;this[_0x5af0bf(0x1ce)]||super[_0x5af0bf(0x1fb)](_0x15d081,_0x273e80,_0x22b150,_0x24ab32);}};const ot={'borderEnabled':!0x0,'borderStroke':_0x4152cc(0x2ed),'borderStrokeWidth':0x1,'borderSpacing':0x2,'anchorFill':_0x4152cc(0x3d2),'anchorStroke':_0x4152cc(0x2ed),'anchorStrokeWidth':1.5,'anchorSize':0x8,'anchorCornerRadius':0x2,'anchorStyle':_0x4152cc(0x31a),'rotateEnabled':!0x0,'rotateSize':0x12,'rotateCornerRadius':0x9,'rotateAnchorOffset':0x1c,'rotateAnchorPosition':_0x4152cc(0x274),'rotateLineEnabled':!0x1,'rotateFill':'#ffffff','rotateStroke':_0x4152cc(0x2ed),'rotateStrokeWidth':0x1,'rotateIconEnabled':!0x0,'rotateIconStroke':_0x4152cc(0x2ed),'rotateIconStrokeWidth':1.25,'resizeEnabled':!0x0,'keepRatio':!0x1,'moveBoundaryEnabled':!0x1},st={...ot,'rotateEnabled':!0x1};let ct=class extends e[_0x4152cc(0x3fd)]{constructor(_0x34376d,_0x10cf89,_0x5d2863){const _0x5ec93a=_0x4152cc;super(),this[_0x5ec93a(0x32a)]=_0x34376d,this[_0x5ec93a(0x47c)]=_0x10cf89,this[_0x5ec93a(0x1d8)]=_0x5d2863,k(this,_0x5ec93a(0x43d),new Set()),this[_0x5ec93a(0x3c8)]();}[_0x4152cc(0x362)](_0x682e87,_0x457b25){const _0x480688=_0x4152cc;let _0x549655=(0x0,h['getDrawingShapeKeyByDrawingSearch'])(_0x682e87);_0x457b25?this['_activeDomReadyDrawingKeys'][_0x480688(0x325)](_0x549655):this[_0x480688(0x43d)][_0x480688(0x3fa)](_0x549655),this['_syncRenderedChartVisibility'](_0x682e87);}['_init'](){const _0x54266b=_0x4152cc;this['disposeWithMe'](this[_0x54266b(0x32a)]['add$'][_0x54266b(0x3a0)](_0x57dc46=>{const _0x1e91bd=_0x54266b;this[_0x1e91bd(0x2d4)](_0x57dc46);})),this['disposeWithMe'](this[_0x54266b(0x32a)][_0x54266b(0x273)][_0x54266b(0x3a0)](_0x5c5043=>{const _0x4fd54b=_0x54266b;this[_0x4fd54b(0x2d4)](_0x5c5043);})),this[_0x54266b(0x3d3)](this[_0x54266b(0x32a)]['remove$'][_0x54266b(0x3a0)](_0x105177=>{const _0x5bdcd6=_0x54266b;this[_0x5bdcd6(0x3cc)](_0x105177);})),this[_0x54266b(0x3d3)](this['_snapshotRenderService']['chartInvalidated$']['subscribe'](({unitId:_0x220289,chartId:_0x1c5fad})=>{const _0x3ecf8e=_0x54266b;this[_0x3ecf8e(0x3cb)](_0x220289,_0x1c5fad);})),this['disposeWithMe'](this['_snapshotRenderService'][_0x54266b(0x44d)][_0x54266b(0x3a0)](_0x10212f=>{const _0x96425a=_0x54266b;if(_0x10212f[_0x96425a(0x3fe)]!==_0x96425a(0x18e)||!_0x10212f[_0x96425a(0x4d1)])return;let [_0x530e3f,_0xf055ca]=_0x10212f['key']['split']('::');!_0x530e3f||!_0xf055ca||this[_0x96425a(0x312)](_0x530e3f,_0xf055ca,_0x10212f[_0x96425a(0x4d1)]);}));}[_0x4152cc(0x2d4)](_0x397bf9){const _0x445240=_0x4152cc;_0x397bf9[_0x445240(0x2c1)](_0x519d53=>{const _0x35da78=_0x445240;let _0x3089f7=this[_0x35da78(0x39a)](_0x519d53);_0x3089f7&&this['_requestSnapshot'](_0x3089f7);});}['_requestSnapshotsForUnit'](_0x3c2a04,_0x1ebdd5){const _0x4bac36=_0x4152cc;this[_0x4bac36(0x3ae)](_0x3c2a04,_0x26916f=>{const _0x5ed4b0=_0x4bac36;(_0x1ebdd5==null||_0x26916f['chartId']===_0x1ebdd5)&&this[_0x5ed4b0(0x207)](_0x26916f);});}[_0x4152cc(0x207)](_0x3f5cdd){const _0x2d966a=_0x4152cc;let _0x1eb99b=this[_0x2d966a(0x455)](_0x3f5cdd);if(!_0x1eb99b)return;let _0x21e7a7=this[_0x2d966a(0x1d8)]['requestSnapshot']({'unitId':_0x3f5cdd['unitId'],'chartId':_0x3f5cdd[_0x2d966a(0x4ca)],'width':_0x1eb99b['width'],'height':_0x1eb99b['height'],'dpr':typeof window>'u'?0x1:window['devicePixelRatio']||0x1,'mode':'main'});_0x21e7a7[_0x2d966a(0x3fe)]===_0x2d966a(0x18e)&&_0x21e7a7[_0x2d966a(0x4d1)]&&this['_renderDrawing'](_0x3f5cdd,_0x21e7a7[_0x2d966a(0x4d1)]);}['_renderCharts'](_0x323391,_0x4df1aa,_0x2bbc64){const _0x34b13b=_0x4152cc;this[_0x34b13b(0x3ae)](_0x323391,_0x3c67e5=>{const _0x36909f=_0x34b13b;_0x3c67e5[_0x36909f(0x4ca)]===_0x4df1aa&&this[_0x36909f(0x300)](_0x3c67e5,_0x2bbc64);});}['_renderDrawing'](_0x12ed2d,_0x17e96c){const _0x25aeec=_0x4152cc;let _0x56b675=this[_0x25aeec(0x47c)][_0x25aeec(0x2b6)](_0x12ed2d['unitId']),_0x5c1733=_0x56b675==null?void 0x0:_0x56b675['scene'];if(!_0x5c1733||!this[_0x25aeec(0x455)](_0x12ed2d))return;this[_0x25aeec(0x32a)][_0x25aeec(0x184)]()&&_0x5c1733[_0x25aeec(0x464)](ot);let _0x5b5d3d=(0x0,h[_0x25aeec(0x3ad)])(_0x12ed2d),_0x40d8a6=_0x5c1733[_0x25aeec(0x28e)](_0x5b5d3d);if(_0x40d8a6!=null&&_0x40d8a6['changeSource']){var _0x3797a0,_0xbe597b,_0xd87711,_0xce9be5;_0x40d8a6[_0x25aeec(0x3ac)]={..._0x40d8a6[_0x25aeec(0x3ac)],...st},_0x40d8a6[_0x25aeec(0x24d)](_0x17e96c),(_0x3797a0=_0x40d8a6[_0x25aeec(0x3b8)])==null||_0x3797a0[_0x25aeec(0x203)](_0x40d8a6,_0x12ed2d['transform']),(_0xbe597b=_0x40d8a6[_0x25aeec(0x210)])==null||_0xbe597b[_0x25aeec(0x203)](_0x40d8a6,(_0xd87711=_0x12ed2d[_0x25aeec(0x3ee)])==null?void 0x0:_0xd87711[_0x25aeec(0x28d)]),this[_0x25aeec(0x478)](_0x40d8a6,_0x12ed2d,_0x5b5d3d),(_0xce9be5=_0x40d8a6[_0x25aeec(0x1b6)])==null||_0xce9be5[_0x25aeec(0x203)](_0x40d8a6,!0x0);return;}this['_createImageShape'](_0x12ed2d,_0x17e96c,_0x5c1733,_0x5b5d3d);}[_0x4152cc(0x356)](_0x3ad71b,_0x370113,_0x422a61,_0x149d8c){const _0x18a09e=_0x4152cc;let _0x53e6e6=_0x3ad71b[_0x18a09e(0x3ee)];if(!_0x53e6e6)return;let _0x1216a6=this[_0x18a09e(0x32a)]['getDrawingOrder'](_0x3ad71b[_0x18a09e(0x342)],_0x3ad71b['subUnitId']),_0x3454ca=_0x1216a6[_0x18a09e(0x41b)](_0x3ad71b[_0x18a09e(0x222)]),_0x311b97={..._0x53e6e6,'zIndex':_0x3454ca===-0x1?_0x1216a6['length']-0x1:_0x3454ca,'clipBounds':_0x53e6e6[_0x18a09e(0x28d)],'printable':!0x0,'rotateEnabled':!0x1,'transformerConfig':st,'url':_0x370113};_0x3ad71b['hidden']&&(_0x311b97[_0x18a09e(0x405)]=!0x1);let _0x22f65f=new at(_0x149d8c,_0x311b97);_0x22f65f[_0x18a09e(0x4c5)](this[_0x18a09e(0x43d)][_0x18a09e(0x364)](_0x149d8c)),_0x422a61['addObject'](_0x22f65f,g[_0x18a09e(0x215)]),this[_0x18a09e(0x32a)][_0x18a09e(0x184)]()&&_0x422a61['attachTransformerTo'](_0x22f65f);}[_0x4152cc(0x3cc)](_0x4bc209){const _0x15517a=_0x4152cc;_0x4bc209[_0x15517a(0x2c1)](_0x299eea=>{const _0x81b841=_0x15517a;this[_0x81b841(0x43d)][_0x81b841(0x3fa)]((0x0,h[_0x81b841(0x3ad)])(_0x299eea));let _0x3f4d64=this[_0x81b841(0x47c)][_0x81b841(0x2b6)](_0x299eea[_0x81b841(0x342)]),_0x4928b4=_0x3f4d64==null?void 0x0:_0x3f4d64[_0x81b841(0x2bc)];if(!_0x4928b4)return;let _0x3ca0d1=_0x4928b4[_0x81b841(0x28e)]((0x0,h[_0x81b841(0x3ad)])(_0x299eea));_0x3ca0d1&&_0x4928b4[_0x81b841(0x295)](_0x3ca0d1);});}[_0x4152cc(0x3f8)](_0x101349){const _0x3b1326=_0x4152cc;let _0x9829e9=this[_0x3b1326(0x47c)][_0x3b1326(0x2b6)](_0x101349[_0x3b1326(0x342)]),_0x5d57d6=_0x9829e9==null?void 0x0:_0x9829e9[_0x3b1326(0x2bc)];if(!_0x5d57d6)return;let _0x24e090=(0x0,h[_0x3b1326(0x3ad)])(_0x101349),_0x2bbc90=_0x5d57d6[_0x3b1326(0x28e)](_0x24e090);if(!_0x2bbc90)return;let _0x25b548=this[_0x3b1326(0x32a)][_0x3b1326(0x2db)](_0x101349);this[_0x3b1326(0x478)](_0x2bbc90,_0x25b548,_0x24e090);}['_syncChartImageVisibility'](_0x5c3d7c,_0x4c7564,_0x4c6904){const _0x516180=_0x4152cc;var _0x55830a,_0x48f6fb;let _0xe361a4=this[_0x516180(0x43d)][_0x516180(0x364)](_0x4c6904);if(_0x5c3d7c[_0x516180(0x4c5)]){var _0x529bc5,_0x523d7c;_0x5c3d7c[_0x516180(0x4c5)](_0xe361a4),(_0x4c7564==null?void 0x0:_0x4c7564[_0x516180(0x49f)])===!0x0?(_0x529bc5=_0x5c3d7c[_0x516180(0x316)])==null||_0x529bc5[_0x516180(0x203)](_0x5c3d7c):(_0x523d7c=_0x5c3d7c['show'])==null||_0x523d7c[_0x516180(0x203)](_0x5c3d7c);return;}(_0x4c7564==null?void 0x0:_0x4c7564[_0x516180(0x49f)])===!0x0?(_0x55830a=_0x5c3d7c[_0x516180(0x316)])==null||_0x55830a[_0x516180(0x203)](_0x5c3d7c):(_0x48f6fb=_0x5c3d7c['show'])==null||_0x48f6fb[_0x516180(0x203)](_0x5c3d7c);}[_0x4152cc(0x39a)](_0x46bbd1){const _0x7106ab=_0x4152cc;let _0xbe3cb7=this[_0x7106ab(0x32a)][_0x7106ab(0x2db)](_0x46bbd1);return lt(_0xbe3cb7)?_0xbe3cb7:null;}['_forEachChartDrawing'](_0x1b4458,_0xcf0369){const _0x59f9f9=_0x4152cc;let _0x4ad2d5=this[_0x59f9f9(0x32a)][_0x59f9f9(0x1ae)](_0x1b4458),_0x523623=_0x4ad2d5==null?void 0x0:_0x4ad2d5[_0x1b4458];_0x523623&&_0x523623[_0x59f9f9(0x481)]['forEach'](_0x3f18a3=>{const _0x7492a3=_0x59f9f9;let _0x7ebf99=_0x523623[_0x7492a3(0x40f)][_0x3f18a3];lt(_0x7ebf99)&&_0xcf0369(_0x7ebf99);});}[_0x4152cc(0x455)](_0x49b7ed){const _0x1ab6e8=_0x4152cc;var _0x4baa5c,_0x3e3548,_0x27a314,_0x4bb6b0,_0x3cb533,_0x17e522,_0xc11db5,_0x310690;let _0x593463=(_0x4baa5c=(_0x3e3548=(_0x27a314=_0x49b7ed[_0x1ab6e8(0x3ee)])==null?void 0x0:_0x27a314[_0x1ab6e8(0x447)])==null?(_0x4bb6b0=_0x49b7ed[_0x1ab6e8(0x2fc)])==null||(_0x4bb6b0=_0x4bb6b0[_0x1ab6e8(0x1c4)])==null?void 0x0:_0x4bb6b0[_0x1ab6e8(0x447)]:_0x3e3548)==null?0x0:_0x4baa5c,_0x3acd83=(_0x3cb533=(_0x17e522=(_0xc11db5=_0x49b7ed[_0x1ab6e8(0x3ee)])==null?void 0x0:_0xc11db5[_0x1ab6e8(0x1ad)])==null?(_0x310690=_0x49b7ed[_0x1ab6e8(0x2fc)])==null||(_0x310690=_0x310690[_0x1ab6e8(0x1c4)])==null?void 0x0:_0x310690[_0x1ab6e8(0x1ad)]:_0x17e522)==null?0x0:_0x3cb533;return _0x593463<=0x0||_0x3acd83<=0x0?null:{'width':Math['max'](0x1,Math['round'](_0x593463)),'height':Math[_0x1ab6e8(0x404)](0x1,Math['round'](_0x3acd83))};}};ct=C([S(0x0,h[_0x4152cc(0x376)]),S(0x1,g[_0x4152cc(0x48d)]),S(0x2,(0x0,e[_0x4152cc(0x2d6)])(U))],ct);function lt(_0xd0ccea){const _0x20be63=_0x4152cc;let _0x14904e=_0xd0ccea;return(_0x14904e==null?void 0x0:_0x14904e[_0x20be63(0x2f3)])===e['DrawingTypeEnum'][_0x20be63(0x18d)]&&typeof _0x14904e['chartId']==_0x20be63(0x1cc);}function ut(_0xba3b16,_0x5dfe87,_0x1ebb84=0x1,_0x39f4ea=0x0){const _0x3c7c01=_0x4152cc;let {top:_0x364d9c,left:_0x77acb3,bottom:_0xf23963,right:_0x5c9f9c}=_0xba3b16,_0x3c6fc3=_0x5c9f9c-_0x77acb3,_0xbcbee9=_0xf23963-_0x364d9c,{viewportScrollX:_0x397466,viewportScrollY:_0x119639}=_0x5dfe87[_0x3c7c01(0x183)](u[_0x3c7c01(0x252)]['VIEW_MAIN']),{scaleX:_0x2e7448,scaleY:_0x2ea000}=_0x5dfe87[_0x3c7c01(0x45b)](),_0x3f326a=(_0x77acb3-_0x397466)*_0x2e7448,_0x2a628a=(_0x364d9c-_0x119639)*_0x2ea000,_0x27aed7=_0x3c6fc3*_0x2e7448,_0x3881ec=_0xbcbee9*_0x2ea000;return{'startX':_0x3f326a,'startY':_0x2a628a,'endX':_0x3f326a+_0x27aed7,'endY':_0x2a628a+_0x3881ec,'width':_0x27aed7,'height':_0x3881ec,'rotate':_0x39f4ea,'absolute':{'left':!0x1,'top':!0x1},'opacity':_0x1ebb84};}function q(_0x180a95,_0xd8ad87){const _0x387b96=_0x4152cc;var _0x4ecd38,_0x763f80;return _0x180a95[_0x387b96(0x342)]===_0xd8ad87[_0x387b96(0x342)]&&((_0x4ecd38=_0x180a95[_0x387b96(0x237)])==null?_0x180a95[_0x387b96(0x342)]:_0x4ecd38)===((_0x763f80=_0xd8ad87[_0x387b96(0x237)])==null?_0xd8ad87['unitId']:_0x763f80)&&_0x180a95[_0x387b96(0x222)]===_0xd8ad87[_0x387b96(0x222)];}function dt(_0x423076,_0x48cc2c=0x0){const _0x16619=_0x4152cc;var _0x26b729;return(_0x26b729=_0x423076['find'](_0x3307a9=>typeof _0x3307a9==_0x16619(0x466)&&Number[_0x16619(0x22c)](_0x3307a9)))==null?_0x48cc2c:_0x26b729;}function ft(_0x4a47ee,_0xcb0c80){const _0x4689c2=_0x4152cc;var _0x135885,_0x56ab92,_0x250270,_0x3e7084,_0x1d99ed,_0x46c970,_0x2e579c;let _0x4cbc2c=_0xcb0c80==null||(_0x135885=_0xcb0c80[_0x4689c2(0x287)])==null?void 0x0:_0x135885['call'](_0xcb0c80),_0x188381=dt([_0x4cbc2c==null?void 0x0:_0x4cbc2c['width'],(_0x56ab92=_0x4a47ee[_0x4689c2(0x3ee)])==null?void 0x0:_0x56ab92[_0x4689c2(0x447)],(_0x250270=_0x4a47ee[_0x4689c2(0x2fc)])==null||(_0x250270=_0x250270['size'])==null?void 0x0:_0x250270['width']]),_0x325d93=dt([_0x4cbc2c==null?void 0x0:_0x4cbc2c[_0x4689c2(0x1ad)],(_0x3e7084=_0x4a47ee[_0x4689c2(0x3ee)])==null?void 0x0:_0x3e7084[_0x4689c2(0x1ad)],(_0x1d99ed=_0x4a47ee['docTransform'])==null||(_0x1d99ed=_0x1d99ed[_0x4689c2(0x1c4)])==null?void 0x0:_0x1d99ed[_0x4689c2(0x1ad)]]),_0x2eef81=dt([_0x4cbc2c==null?void 0x0:_0x4cbc2c[_0x4689c2(0x4b9)],(_0x46c970=_0x4a47ee[_0x4689c2(0x3ee)])==null?void 0x0:_0x46c970['left']]),_0x35c815=dt([_0x4cbc2c==null?void 0x0:_0x4cbc2c[_0x4689c2(0x4cf)],(_0x2e579c=_0x4a47ee[_0x4689c2(0x3ee)])==null?void 0x0:_0x2e579c[_0x4689c2(0x4cf)]]);return{'left':_0x2eef81,'top':_0x35c815,'right':_0x2eef81+_0x188381,'bottom':_0x35c815+_0x325d93};}function pt(_0x56cea5,_0x2fa80f){const _0x4fc1f3=_0x4152cc;if(!_0x56cea5||typeof _0x56cea5!='object')return;let _0x1da9df=_0x56cea5;if(typeof _0x1da9df['subscribeEvent']=='function'){let _0x326a7b=_0x1da9df[_0x4fc1f3(0x21f)](_0x2fa80f);return(0x0,e[_0x4fc1f3(0x44c)])(()=>{const _0x2a66cf=_0x4fc1f3;var _0x8ce0f3;if(typeof _0x326a7b['dispose']==_0x2a66cf(0x3ba)){_0x326a7b['dispose']();return;}(_0x8ce0f3=_0x326a7b['unsubscribe'])==null||_0x8ce0f3[_0x2a66cf(0x203)](_0x326a7b);});}let _0x12e2fb=_0x56cea5;if(typeof _0x12e2fb[_0x4fc1f3(0x3a0)]=='function'){let _0x854657=_0x12e2fb[_0x4fc1f3(0x3a0)](_0x2fa80f);return(0x0,e[_0x4fc1f3(0x44c)])(()=>{const _0x5999ea=_0x4fc1f3;var _0x664a06;return(_0x664a06=_0x854657['unsubscribe'])==null?void 0x0:_0x664a06[_0x5999ea(0x203)](_0x854657);});}}let J=class extends e[_0x4152cc(0x3fd)]{constructor(_0x1e9786,_0x1c220c,_0x5821d1,_0x3056bc,_0x43bbaf,_0x342696,_0x4bc28f,_0x276205,_0x2a0a1c,_0x312000){const _0x25210d=_0x4152cc;super(),this[_0x25210d(0x32a)]=_0x1e9786,this[_0x25210d(0x47c)]=_0x1c220c,this['_canvasFloatDomService']=_0x5821d1,this[_0x25210d(0x4c4)]=_0x3056bc,this[_0x25210d(0x21b)]=_0x43bbaf,this['_snapshotRenderService']=_0x342696,this[_0x25210d(0x45a)]=_0x4bc28f,this['_univerInstanceService']=_0x276205,this['_localeService']=_0x2a0a1c,this[_0x25210d(0x37d)]=_0x312000,k(this,_0x25210d(0x38d),null),k(this,_0x25210d(0x2f1),new p['Subject']()),this[_0x25210d(0x3c8)]();}['mountChart'](_0x540291){const _0x2e9efc=_0x4152cc;let _0x315c6a=this[_0x2e9efc(0x4c4)][_0x2e9efc(0x46a)](_0x540291[_0x2e9efc(0x342)],_0x540291[_0x2e9efc(0x4ca)]);if(!_0x315c6a)return(0x0,e[_0x2e9efc(0x44c)])(()=>{});let _0x2b0afb=new ke(_0x540291['chartId'],_0x540291['root'],(_0x1cd3e4,_0x34b9ff)=>this['_renderService'][_0x2e9efc(0x3cf)](_0x1cd3e4,_0x34b9ff),()=>this['_getActiveRenderRect'](_0x540291)),_0x213037=this[_0x2e9efc(0x21b)][_0x2e9efc(0x307)](s['ChartHostRenderMode'][_0x2e9efc(0x2e2)]);_0x213037[_0x2e9efc(0x2f4)](_0x2b0afb);let _0x5b670e=[_0x213037['on'](_0x2e9efc(0x1c2),_0x4e1132=>{const _0x37e6d2=_0x2e9efc;_0x315c6a[_0x37e6d2(0x4c9)][_0x37e6d2(0x310)]===s[_0x37e6d2(0x30e)][_0x37e6d2(0x1f6)]&&_0x4e1132[_0x37e6d2(0x3b5)]['kind']===_0x37e6d2(0x3a9)&&this[_0x37e6d2(0x45a)][_0x37e6d2(0x355)](v['id'],{'unitId':_0x540291['unitId'],'chartId':_0x540291['chartId'],'drawingId':_0x540291[_0x37e6d2(0x222)],'route':{'tab':_0x37e6d2(0x40f)}});}),_0x213037['on'](_0x2e9efc(0x35f),()=>{const _0x1e7b2b=_0x2e9efc;this[_0x1e7b2b(0x45a)][_0x1e7b2b(0x355)](v['id'],{'unitId':_0x540291[_0x1e7b2b(0x342)],'chartId':_0x540291[_0x1e7b2b(0x4ca)],'drawingId':_0x540291[_0x1e7b2b(0x222)]});})],_0x1b0be2=!0x0;return _0x5b670e[_0x2e9efc(0x201)](this[_0x2e9efc(0x438)](_0x315c6a,_0x213037,_0x540291,()=>_0x1b0be2)),(0x0,e[_0x2e9efc(0x44c)])(()=>{const _0x19c05e=_0x2e9efc;_0x1b0be2=!0x1,this[_0x19c05e(0x37d)][_0x19c05e(0x362)](this[_0x19c05e(0x2f9)](_0x540291),!0x1),_0x5b670e[_0x19c05e(0x2c1)](_0x3dd572=>_0x3dd572[_0x19c05e(0x397)]()),_0x213037[_0x19c05e(0x397)](),_0x2b0afb[_0x19c05e(0x397)]();});}['dispose'](){const _0x1a804b=_0x4152cc;this[_0x1a804b(0x216)](),this[_0x1a804b(0x2f1)][_0x1a804b(0x278)](),super['dispose']();}[_0x4152cc(0x3c8)](){const _0x37c3f2=_0x4152cc;this[_0x37c3f2(0x3d3)](this[_0x37c3f2(0x32a)][_0x37c3f2(0x302)][_0x37c3f2(0x3a0)](_0x577506=>{const _0xcfeada=_0x37c3f2;this[_0xcfeada(0x32d)](_0x577506);})),this[_0x37c3f2(0x3d3)](this['_drawingManagerService']['remove$']['subscribe'](_0x30b8f6=>{const _0x25b49c=_0x37c3f2;let _0x2e92a6=this[_0x25b49c(0x38d)];_0x2e92a6&&_0x30b8f6[_0x25b49c(0x1d4)](_0xcfa408=>q(_0xcfa408,_0x2e92a6))&&this[_0x25b49c(0x216)]();})),this['disposeWithMe'](this[_0x37c3f2(0x32a)][_0x37c3f2(0x273)][_0x37c3f2(0x3a0)](_0x288da3=>{const _0x45503a=_0x37c3f2;let _0xe59b04=this['_activeLayer'];if(!_0xe59b04){this[_0x45503a(0x24a)](_0x288da3);return;}let _0x36bd29=_0x288da3['find'](_0x13330a=>q(_0x13330a,_0xe59b04));if(_0x36bd29){let _0x1d2a62=this[_0x45503a(0x32a)][_0x45503a(0x2db)]({'unitId':_0x36bd29['unitId'],'subUnitId':_0x36bd29[_0x45503a(0x237)],'drawingId':_0x36bd29[_0x45503a(0x222)]});this[_0x45503a(0x1d0)](_0x1d2a62)&&this[_0x45503a(0x301)](_0x1d2a62);}})),this[_0x37c3f2(0x3d3)](this[_0x37c3f2(0x2ca)][_0x37c3f2(0x40a)](e[_0x37c3f2(0x4d3)][_0x37c3f2(0x1b2)])[_0x37c3f2(0x3a0)](_0x10d211=>{const _0x113323=_0x37c3f2;let _0x59a2fe=this[_0x113323(0x38d)];_0x59a2fe&&(_0x10d211==null?void 0x0:_0x10d211[_0x113323(0x21c)]())!==_0x59a2fe['unitId']&&this['_deactivate']();}));}['_subscribeRender'](_0x2953ae,_0x4fe7c8,_0x258005,_0x5d17c1){const _0x46f444=_0x4152cc;let _0x49cfa4=()=>{const _0x3a7007=_0xfc4a;let {chartConfig:_0x4518c2,chartStyle:_0x3355cc}=this[_0x3a7007(0x21b)][_0x3a7007(0x2ee)](_0x2953ae);Promise[_0x3a7007(0x46c)](_0x4fe7c8[_0x3a7007(0x43e)]({'chartId':_0x2953ae[_0x3a7007(0x4ca)],'config':_0x4518c2,'style':_0x3355cc}))[_0x3a7007(0x1a0)](()=>{const _0x4b2719=_0x3a7007;_0x5d17c1()&&this[_0x4b2719(0x42d)](_0x258005)&&this['_staticRenderController'][_0x4b2719(0x362)](this[_0x4b2719(0x2f9)](_0x258005),!0x0);},()=>{});},_0x5c0811=(0x0,p['combineLatest'])([_0x2953ae['model'][_0x46f444(0x23c)],_0x2953ae[_0x46f444(0x4c9)][_0x46f444(0x279)],this['_localeService'][_0x46f444(0x182)]])[_0x46f444(0x378)]((0x0,p[_0x46f444(0x3b0)])(([_0x566424])=>_0x566424!=null))[_0x46f444(0x3a0)](_0x49cfa4),_0x46a89f=this[_0x46f444(0x2f1)][_0x46f444(0x378)]((0x0,p[_0x46f444(0x3b0)])(_0x596669=>_0x596669===_0x258005['drawingId']))[_0x46f444(0x3a0)](_0x49cfa4);return(0x0,e[_0x46f444(0x44c)])(()=>{const _0xd85097=_0x46f444;_0x5c0811[_0xd85097(0x458)](),_0x46a89f[_0xd85097(0x458)]();});}[_0x4152cc(0x32d)](_0x4d1965){const _0x373a76=_0x4152cc;let _0x1bde16=(_0x4d1965==null?[]:_0x4d1965)['filter'](_0x540eaa=>this[_0x373a76(0x1d0)](_0x540eaa));if(_0x1bde16['length']!==0x1){this[_0x373a76(0x216)]();return;}this[_0x373a76(0x317)](_0x1bde16[0x0]);}[_0x4152cc(0x317)](_0xe7c2f8){const _0x3e74ed=_0x4152cc;var _0x546cae,_0x299cd4,_0x1a8d37,_0x58abc5,_0x475424;let _0x489560=this[_0x3e74ed(0x453)](_0xe7c2f8),_0x1afb20=this[_0x3e74ed(0x189)](_0xe7c2f8),_0x3c9494=(_0x546cae=_0xe7c2f8['subUnitId'])==null?_0xe7c2f8[_0x3e74ed(0x342)]:_0x546cae;if(!_0x489560||!_0x1afb20){this[_0x3e74ed(0x216)]();return;}if(((_0x299cd4=this[_0x3e74ed(0x38d)])==null?void 0x0:_0x299cd4[_0x3e74ed(0x342)])===_0xe7c2f8[_0x3e74ed(0x342)]&&this[_0x3e74ed(0x38d)][_0x3e74ed(0x237)]===_0x3c9494&&this[_0x3e74ed(0x38d)][_0x3e74ed(0x222)]===_0xe7c2f8['drawingId']&&this[_0x3e74ed(0x38d)]['chartId']===_0xe7c2f8[_0x3e74ed(0x4ca)]){this[_0x3e74ed(0x38d)][_0x3e74ed(0x2bc)]=_0x489560[_0x3e74ed(0x2bc)],this[_0x3e74ed(0x38d)]['sceneRect']=_0x489560[_0x3e74ed(0x2a7)],this['_activeLayer'][_0x3e74ed(0x24f)]=_0x489560[_0x3e74ed(0x24f)],this[_0x3e74ed(0x38d)][_0x3e74ed(0x257)]=_0x1afb20,this[_0x3e74ed(0x38d)][_0x3e74ed(0x194)][_0x3e74ed(0x18c)](_0x489560['position']);return;}this[_0x3e74ed(0x216)]();let _0x50e184=new p['BehaviorSubject'](_0x489560[_0x3e74ed(0x465)]),_0x48f39c=this[_0x3e74ed(0x47c)]['getRenderUnitById'](_0xe7c2f8[_0x3e74ed(0x342)]),_0x4c737a=_0x48f39c==null||(_0x58abc5=(_0x1a8d37=_0x48f39c[_0x3e74ed(0x38f)])[_0x3e74ed(0x46d)])==null?void 0x0:_0x58abc5[_0x3e74ed(0x203)](_0x1a8d37);this[_0x3e74ed(0x240)][_0x3e74ed(0x3c6)]({'id':_0xe7c2f8[_0x3e74ed(0x222)],'componentKey':mt,'position$':_0x50e184,'unitId':_0xe7c2f8['unitId'],'contentBox':{'wrapperInset':0x0,'contentInset':0x0},'props':{'chartId':_0xe7c2f8[_0x3e74ed(0x4ca)],'subUnitId':_0x3c9494},'onPointerDown':_0xae1947=>_0x4c737a==null?void 0x0:_0x4c737a[_0x3e74ed(0x4d2)](new PointerEvent(_0xae1947[_0x3e74ed(0x27a)],_0xae1947)),'onPointerMove':_0x38dd3a=>_0x4c737a==null?void 0x0:_0x4c737a[_0x3e74ed(0x4d2)](new PointerEvent(_0x38dd3a[_0x3e74ed(0x27a)],_0x38dd3a)),'onPointerUp':_0x3b182c=>_0x4c737a==null?void 0x0:_0x4c737a[_0x3e74ed(0x4d2)](new PointerEvent(_0x3b182c[_0x3e74ed(0x27a)],_0x3b182c)),'onWheel':_0x5908b5=>_0x4c737a==null?void 0x0:_0x4c737a[_0x3e74ed(0x4d2)](new WheelEvent(_0x5908b5[_0x3e74ed(0x27a)],_0x5908b5))}),this['_modelService'][_0x3e74ed(0x3d6)](_0xe7c2f8['unitId'],_0xe7c2f8[_0x3e74ed(0x4ca)]);let _0x31d285={'unitId':_0xe7c2f8[_0x3e74ed(0x342)],'subUnitId':_0x3c9494,'drawingId':_0xe7c2f8[_0x3e74ed(0x222)],'chartId':_0xe7c2f8[_0x3e74ed(0x4ca)],'scene':_0x489560[_0x3e74ed(0x2bc)],'sceneRect':_0x489560[_0x3e74ed(0x2a7)],'angle':_0x489560['angle'],'renderRect':_0x1afb20,'position$':_0x50e184,'positionObserver':(0x0,e['toDisposable'])(()=>{})};this[_0x3e74ed(0x38d)]=_0x31d285;let _0x5228ff=_0x48f39c==null||(_0x475424=_0x48f39c[_0x3e74ed(0x2bc)])==null?void 0x0:_0x475424[_0x3e74ed(0x183)](u[_0x3e74ed(0x252)][_0x3e74ed(0x2e4)]),_0x4f36fd=pt(_0x5228ff==null?void 0x0:_0x5228ff['onScrollAfter$'],()=>{const _0x5f08b6=_0x3e74ed;this[_0x5f08b6(0x430)](_0xe7c2f8[_0x5f08b6(0x342)],_0xe7c2f8['drawingId'],_0xe7c2f8['chartId']);});_0x31d285[_0x3e74ed(0x499)]=_0x4f36fd==null?(0x0,e['toDisposable'])(()=>{}):_0x4f36fd;}[_0x4152cc(0x216)](){const _0x3316d0=_0x4152cc;let _0x211b7b=this[_0x3316d0(0x38d)];_0x211b7b&&(this['_activeLayer']=null,_0x211b7b['positionObserver'][_0x3316d0(0x397)](),this[_0x3316d0(0x37d)][_0x3316d0(0x362)]({'unitId':_0x211b7b['unitId'],'subUnitId':_0x211b7b[_0x3316d0(0x237)],'drawingId':_0x211b7b[_0x3316d0(0x222)]},!0x1),this[_0x3316d0(0x240)][_0x3316d0(0x1a6)](_0x211b7b[_0x3316d0(0x222)]),this['_modelService']['setActiveChartRuntime'](null),this[_0x3316d0(0x1d8)][_0x3316d0(0x2a5)](_0x211b7b['unitId'],_0x211b7b[_0x3316d0(0x4ca)],{'waitForConfig':!0x0}),_0x211b7b['position$']['complete']());}[_0x4152cc(0x430)](_0x124753,_0xd2cf09,_0x3527c3){const _0x3abda4=_0x4152cc;let _0x5e77ce=this[_0x3abda4(0x38d)];(_0x5e77ce==null?void 0x0:_0x5e77ce[_0x3abda4(0x342)])===_0x124753&&_0x5e77ce[_0x3abda4(0x222)]===_0xd2cf09&&_0x5e77ce[_0x3abda4(0x4ca)]===_0x3527c3&&_0x5e77ce['position$']['next'](ut(_0x5e77ce[_0x3abda4(0x2a7)],_0x5e77ce['scene'],0x1,_0x5e77ce[_0x3abda4(0x24f)]));}[_0x4152cc(0x301)](_0x46c551){const _0x327e9d=_0x4152cc;let _0xdad716=this['_getPositionState'](_0x46c551),_0x3fa6ee=this[_0x327e9d(0x189)](_0x46c551);if(_0xdad716&&_0x3fa6ee){var _0x2ab33f;this[_0x327e9d(0x38d)]&&(this['_activeLayer'][_0x327e9d(0x2bc)]=_0xdad716[_0x327e9d(0x2bc)],this[_0x327e9d(0x38d)][_0x327e9d(0x2a7)]=_0xdad716['sceneRect'],this[_0x327e9d(0x38d)][_0x327e9d(0x24f)]=_0xdad716[_0x327e9d(0x24f)],this[_0x327e9d(0x38d)][_0x327e9d(0x257)]=_0x3fa6ee),(_0x2ab33f=this[_0x327e9d(0x38d)])==null||_0x2ab33f['position$'][_0x327e9d(0x18c)](_0xdad716['position']),this[_0x327e9d(0x2f1)][_0x327e9d(0x18c)](_0x46c551[_0x327e9d(0x222)]);}}[_0x4152cc(0x24a)](_0x5eba8d){const _0x1d1b38=_0x4152cc;let _0xdf271=this[_0x1d1b38(0x32a)][_0x1d1b38(0x2a1)]()[_0x1d1b38(0x3b0)](_0x5ca278=>this[_0x1d1b38(0x1d0)](_0x5ca278));_0xdf271[_0x1d1b38(0x29c)]===0x1&&_0x5eba8d[_0x1d1b38(0x1d4)](_0x23c2c3=>q(_0x23c2c3,_0xdf271[0x0]))&&this[_0x1d1b38(0x317)](_0xdf271[0x0]);}[_0x4152cc(0x453)](_0x547474){const _0x4e81c1=_0x4152cc;let _0x43d58f=_0x547474[_0x4e81c1(0x3ee)];if(!_0x43d58f)return null;let _0x3cdbdc=this[_0x4e81c1(0x47c)][_0x4e81c1(0x2b6)](_0x547474['unitId']);if(!(_0x3cdbdc!=null&&_0x3cdbdc['scene']))return null;let _0x1a0b56=(0x0,h['getDrawingShapeKeyByDrawingSearch'])(_0x547474),_0x589604=_0x3cdbdc['scene']['getObjectIncludeInGroup'](_0x1a0b56),_0x113485=ft(_0x547474,_0x589604),_0x54ddf4=_0x113485[_0x4e81c1(0x1ee)]-_0x113485[_0x4e81c1(0x4b9)],_0x391853=_0x113485['bottom']-_0x113485['top'];if(_0x54ddf4<=0x0||_0x391853<=0x0)return null;let _0x197850=dt([_0x589604==null?void 0x0:_0x589604[_0x4e81c1(0x24f)],_0x43d58f['angle']]);return{'scene':_0x3cdbdc['scene'],'sceneRect':_0x113485,'angle':_0x197850,'position':ut(_0x113485,_0x3cdbdc['scene'],0x1,_0x197850)};}[_0x4152cc(0x189)](_0xc5d358){const _0x2f3feb=_0x4152cc;var _0x25d183,_0x247ebb,_0x1fe1df,_0x515008,_0x4d8562,_0x321ba5,_0x267bb9,_0x44b768;let _0x25337f=(_0x25d183=(_0x247ebb=(_0x1fe1df=_0xc5d358[_0x2f3feb(0x3ee)])==null?void 0x0:_0x1fe1df['width'])==null?(_0x515008=_0xc5d358[_0x2f3feb(0x2fc)])==null||(_0x515008=_0x515008[_0x2f3feb(0x1c4)])==null?void 0x0:_0x515008['width']:_0x247ebb)==null?0x0:_0x25d183,_0x452aae=(_0x4d8562=(_0x321ba5=(_0x267bb9=_0xc5d358[_0x2f3feb(0x3ee)])==null?void 0x0:_0x267bb9[_0x2f3feb(0x1ad)])==null?(_0x44b768=_0xc5d358[_0x2f3feb(0x2fc)])==null||(_0x44b768=_0x44b768[_0x2f3feb(0x1c4)])==null?void 0x0:_0x44b768[_0x2f3feb(0x1ad)]:_0x321ba5)==null?0x0:_0x4d8562;return _0x25337f<=0x0||_0x452aae<=0x0?null:{'width':Math[_0x2f3feb(0x404)](0x1,Math[_0x2f3feb(0x22a)](_0x25337f)),'height':Math[_0x2f3feb(0x404)](0x1,Math[_0x2f3feb(0x22a)](_0x452aae))};}[_0x4152cc(0x402)](_0x5b8159){const _0x421372=_0x4152cc;var _0xbe65b3;let _0xf8d775=this[_0x421372(0x38d)];if((_0xf8d775==null?void 0x0:_0xf8d775['unitId'])===_0x5b8159[_0x421372(0x342)]&&_0xf8d775[_0x421372(0x237)]===((_0xbe65b3=_0x5b8159[_0x421372(0x237)])==null?_0x5b8159['unitId']:_0xbe65b3)&&_0xf8d775[_0x421372(0x222)]===_0x5b8159[_0x421372(0x222)]&&_0xf8d775[_0x421372(0x4ca)]===_0x5b8159[_0x421372(0x4ca)])return _0xf8d775['renderRect'];let _0x23db7b=this['_drawingManagerService']['getDrawingByParam'](this[_0x421372(0x2f9)](_0x5b8159));return this['_isDocChartDrawing'](_0x23db7b)?this[_0x421372(0x189)](_0x23db7b):null;}[_0x4152cc(0x2f9)](_0x5d3e88){const _0x554e1e=_0x4152cc;var _0x16ad50;return{'unitId':_0x5d3e88[_0x554e1e(0x342)],'subUnitId':(_0x16ad50=_0x5d3e88[_0x554e1e(0x237)])==null?_0x5d3e88[_0x554e1e(0x342)]:_0x16ad50,'drawingId':_0x5d3e88['drawingId']};}[_0x4152cc(0x42d)](_0x555a9b){const _0x569c3f=_0x4152cc;var _0x17040e;let _0x1a4cf2=this[_0x569c3f(0x38d)];return(_0x1a4cf2==null?void 0x0:_0x1a4cf2[_0x569c3f(0x342)])===_0x555a9b['unitId']&&_0x1a4cf2['subUnitId']===((_0x17040e=_0x555a9b[_0x569c3f(0x237)])==null?_0x555a9b[_0x569c3f(0x342)]:_0x17040e)&&_0x1a4cf2[_0x569c3f(0x222)]===_0x555a9b[_0x569c3f(0x222)]&&_0x1a4cf2[_0x569c3f(0x4ca)]===_0x555a9b['chartId'];}[_0x4152cc(0x1d0)](_0x16f7f7){const _0x524958=_0x4152cc;let _0x4d4418=_0x16f7f7;return(_0x4d4418==null?void 0x0:_0x4d4418['drawingType'])===e['DrawingTypeEnum']['DRAWING_CHART']&&typeof _0x4d4418['chartId']==_0x524958(0x1cc);}};J=C([S(0x0,h[_0x4152cc(0x376)]),S(0x1,g[_0x4152cc(0x48d)]),S(0x2,(0x0,e[_0x4152cc(0x2d6)])(n['CanvasFloatDomService'])),S(0x3,(0x0,e['Inject'])(a['DocChartModelService'])),S(0x4,(0x0,e[_0x4152cc(0x2d6)])(M)),S(0x5,(0x0,e[_0x4152cc(0x2d6)])(U)),S(0x6,e[_0x4152cc(0x3cd)]),S(0x7,e['IUniverInstanceService']),S(0x8,(0x0,e[_0x4152cc(0x2d6)])(e['LocaleService'])),S(0x9,(0x0,e['Inject'])(ct))],J);const mt=_0x4152cc(0x3df),ht=_0x57ecdc=>{const _0x58712f=_0x4152cc;let {unitId:_0x344b92,subUnitId:_0x30cbd8,floatDomId:_0x3cd2a2,chartId:_0x1b468f,context:_0x46d20d}=_0x57ecdc,_0x5d0484=(0x0,n[_0x58712f(0x21a)])(J);return(0x0,r[_0x58712f(0x48a)])(()=>{const _0x126b9e=_0x58712f;let _0x2482e3=_0x46d20d[_0x126b9e(0x25e)][_0x126b9e(0x19e)];if(!_0x2482e3)return;let _0x259b83=_0x5d0484[_0x126b9e(0x3a5)]({'unitId':_0x344b92,'subUnitId':_0x30cbd8,'drawingId':_0x3cd2a2,'chartId':_0x1b468f,'root':_0x2482e3});return()=>_0x259b83[_0x126b9e(0x397)]();},[_0x5d0484,_0x1b468f,_0x46d20d['root'],_0x3cd2a2,_0x30cbd8,_0x344b92]),null;};let Y=class extends e[_0x4152cc(0x3fd)]{constructor(_0x325e97,_0x389e97){const _0x2dcd13=_0x4152cc;super(),this[_0x2dcd13(0x32a)]=_0x325e97,this[_0x2dcd13(0x1d8)]=_0x389e97;}['printChart'](_0x22046c,_0x54c46a,_0x1164d3,_0x499e5a){const _0x193ba1=_0x4152cc;let _0x5bc61f=this[_0x193ba1(0x22d)](_0x22046c,_0x54c46a);if(_0x1164d3['replaceChildren'](),!_0x5bc61f)return{'dispose':()=>_0x1164d3[_0x193ba1(0x2de)]()};let _0x58f6ea={'unitId':_0x22046c,'chartId':_0x5bc61f['chartId'],'width':Math[_0x193ba1(0x404)](0x1,Math[_0x193ba1(0x22a)](_0x499e5a[_0x193ba1(0x447)])),'height':Math[_0x193ba1(0x404)](0x1,Math[_0x193ba1(0x22a)](_0x499e5a[_0x193ba1(0x1ad)])),'mode':_0x193ba1(0x1de)},_0x174149=this[_0x193ba1(0x1d8)]['requestSnapshot'](_0x58f6ea);this[_0x193ba1(0x36c)](_0x1164d3,_0x174149);let _0xe6311=this[_0x193ba1(0x1d8)][_0x193ba1(0x44d)][_0x193ba1(0x3a0)](_0x2f5608=>{const _0x59fdd2=_0x193ba1;_0x2f5608[_0x59fdd2(0x3bb)]===_0x174149[_0x59fdd2(0x3bb)]&&this[_0x59fdd2(0x36c)](_0x1164d3,_0x2f5608);});return{'dispose':()=>{const _0x94be27=_0x193ba1;_0xe6311[_0x94be27(0x458)](),_0x1164d3['replaceChildren']();}};}[_0x4152cc(0x22d)](_0xbf15ba,_0x2680cc){const _0x32c848=_0x4152cc;let _0x1a46dd={'unitId':_0xbf15ba,'subUnitId':_0xbf15ba,'drawingId':_0x2680cc},_0xd6edd7=this[_0x32c848(0x32a)][_0x32c848(0x2db)](_0x1a46dd);return!_0xd6edd7||_0xd6edd7['drawingType']!==e[_0x32c848(0x377)]['DRAWING_CHART']||!_0xd6edd7['chartId']?null:_0xd6edd7;}[_0x4152cc(0x36c)](_0x273864,_0x4945cb){const _0x3590eb=_0x4152cc;if(_0x4945cb['status']!==_0x3590eb(0x18e)||!_0x4945cb[_0x3590eb(0x4d1)])return;let _0x2c6e28=document[_0x3590eb(0x384)](_0x3590eb(0x2d5));_0x2c6e28['src']=_0x4945cb[_0x3590eb(0x4d1)],_0x2c6e28[_0x3590eb(0x1f3)]='',_0x2c6e28[_0x3590eb(0x41f)][_0x3590eb(0x271)]=_0x3590eb(0x320),_0x2c6e28[_0x3590eb(0x41f)][_0x3590eb(0x447)]=_0x3590eb(0x265),_0x2c6e28[_0x3590eb(0x41f)]['height']='100%',_0x273864[_0x3590eb(0x2de)](_0x2c6e28);}};Y=C([S(0x0,h[_0x4152cc(0x376)]),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(U))],Y);const gt=_0x45b912=>{const _0x38b104=_0x4152cc;let {unitId:_0x412334,floatDomId:_0x19735e,context:_0x52e93a}=_0x45b912,_0x6c03d4=(0x0,n['useDependency'])(Y);return(0x0,r[_0x38b104(0x48a)])(()=>{const _0x11d1fa=_0x38b104;let _0x3a4c69=_0x52e93a[_0x11d1fa(0x25e)][_0x11d1fa(0x19e)];if(!_0x3a4c69)return;let _0x26b6c8={'width':Number[_0x11d1fa(0x28f)](_0x3a4c69['style'][_0x11d1fa(0x447)])||_0x3a4c69['clientWidth']||0x1,'height':Number[_0x11d1fa(0x28f)](_0x3a4c69[_0x11d1fa(0x41f)][_0x11d1fa(0x1ad)])||_0x3a4c69[_0x11d1fa(0x32e)]||0x1},_0x76e0f9=_0x6c03d4['printChart'](_0x412334,_0x19735e,_0x3a4c69,_0x26b6c8);return()=>_0x76e0f9[_0x11d1fa(0x397)]();},[_0x52e93a[_0x38b104(0x25e)],_0x19735e,_0x6c03d4,_0x412334]),null;};let X=class extends e[_0x4152cc(0x3fd)]{constructor(_0x4a0e6d,_0x2d9c43){const _0x102006=_0x4152cc;super(),this[_0x102006(0x33f)]=_0x4a0e6d,this[_0x102006(0x19d)]=_0x2d9c43,this[_0x102006(0x417)](),this[_0x102006(0x40e)]();}[_0x4152cc(0x417)](){const _0x59d938=_0x4152cc;this['disposeWithMe'](this[_0x59d938(0x19d)][_0x59d938(0x3ab)]({'ChartIcon':c['ChartIcon'],'AreaChartIcon':c[_0x59d938(0x2c7)],'BarChartIcon':c[_0x59d938(0x313)],'ColumnChartIcon':c[_0x59d938(0x4be)],'ComboChartIcon':c[_0x59d938(0x1fd)],'LineChartIcon':c[_0x59d938(0x49b)],'PieChartIcon':c[_0x59d938(0x19f)],'RadarChartIcon':c[_0x59d938(0x37c)],'ScatterChartIcon':c[_0x59d938(0x1bf)],'FunnelIcon':c['FunnelIcon'],'CloudIcon':c[_0x59d938(0x283)],'BubbleIcon':c[_0x59d938(0x416)],'RelationshipIcon':c[_0x59d938(0x1a7)],'WaterfallChartIcon':c['WaterfallChartIcon'],'SankeyChartIcon':c[_0x59d938(0x485)],'HeatmapChartIcon':c[_0x59d938(0x275)],'BoxplotIcon':c[_0x59d938(0x26f)],'CandlestickChartIcon':c[_0x59d938(0x347)],'HistogramChartIcon':c[_0x59d938(0x31b)],'TreemapChartIcon':c['TreemapChartIcon']}));}['_registerComponents'](){const _0x4bf563=_0x4152cc;this[_0x4bf563(0x3d3)](this['_componentManager']['register'](Ue,z)),this[_0x4bf563(0x3d3)](this['_componentManager'][_0x4bf563(0x3ab)](b,te)),this[_0x4bf563(0x3d3)](this[_0x4bf563(0x33f)][_0x4bf563(0x3ab)](Ne,Pe)),this['disposeWithMe'](this[_0x4bf563(0x33f)][_0x4bf563(0x3ab)](e['DOC_DRAWING_PRINTING_COMPONENT_KEY'],gt)),this[_0x4bf563(0x3d3)](this[_0x4bf563(0x33f)][_0x4bf563(0x3ab)](mt,ht));}};X=C([S(0x0,(0x0,e[_0x4152cc(0x2d6)])(n['ComponentManager'])),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(n[_0x4152cc(0x4a1)]))],X);let Z=class extends e['Disposable']{constructor(_0x121545,_0x28c0c7,_0x1011fb,_0x1cf9af,_0x3494c6,_0x4b87b0,_0x637c4a){const _0x4de4d9=_0x4152cc;super(),this['_dialogService']=_0x121545,this[_0x4de4d9(0x4df)]=_0x28c0c7,this[_0x4de4d9(0x484)]=_0x1011fb,this[_0x4de4d9(0x281)]=_0x1cf9af,this[_0x4de4d9(0x414)]=_0x3494c6,this['_menuManagerService']=_0x4b87b0,this['_commandService']=_0x637c4a,this['_initMenus'](),this['_registerDialogOperations']();}['openInsertDialog'](_0x323fdd){const _0x1ea756=_0x4152cc;var _0x3df60,_0x1d598d;let _0x1ddb62=null,_0x1295ee=()=>{_0x1ddb62==null||_0x1ddb62['dispose'](),_0x1ddb62=null;};return _0x1ddb62=this[_0x1ea756(0x33a)][_0x1ea756(0x2c8)]({'id':_0x1ea756(0x256),'title':{'title':_0x1ea756(0x2d7)},'width':0x2a8,'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'children':{'label':{'name':Ue,'props':{'defaultChartType':(_0x3df60=_0x323fdd==null?void 0x0:_0x323fdd['defaultChartType'])==null?_0x323fdd==null?void 0x0:_0x323fdd['value']:_0x3df60,'defaultTableText':_0x323fdd==null?void 0x0:_0x323fdd[_0x1ea756(0x226)],'insertOptions':{'insertRange':(_0x1d598d=_0x323fdd==null?void 0x0:_0x323fdd[_0x1ea756(0x439)])==null?this[_0x1ea756(0x198)]():_0x1d598d},'onCancel':_0x1295ee,'onInserted':_0x1295ee}}},'onClose':_0x1295ee}),!0x0;}[_0x4152cc(0x27c)](_0x287eb3){const _0x511026=_0x4152cc;let _0x255ee9=null,_0x14c293=()=>{const _0x5081eb=_0xfc4a;_0x255ee9==null||_0x255ee9[_0x5081eb(0x397)](),_0x255ee9=null;};return _0x255ee9=this[_0x511026(0x33a)][_0x511026(0x2c8)]({'id':P,'title':{'title':'docs-chart-ui.editChart'},'width':0x3d4,'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'children':{'label':{'name':Ne,'props':{..._0x287eb3,'onClose':_0x14c293}}},'onClose':_0x14c293}),!0x0;}[_0x4152cc(0x315)](){const _0x22ab97=_0x4152cc;this['_menuManagerService'][_0x22ab97(0x48e)](nt);}[_0x4152cc(0x371)](){const _0x10e827=_0x4152cc;this[_0x10e827(0x3d3)](this[_0x10e827(0x45a)]['onCommandExecuted'](_0x5ad7e8=>{const _0x56e61e=_0x10e827;if(_0x5ad7e8['id']===_['id']){this[_0x56e61e(0x4d0)](_0x5ad7e8[_0x56e61e(0x375)]);return;}if(_0x5ad7e8['id']===v['id']){let _0x21416f=_0x5ad7e8['params'];_0x21416f&&this[_0x56e61e(0x27c)](_0x21416f);}}));}[_0x4152cc(0x198)](){const _0x62fe2c=_0x4152cc;var _0x390f2d,_0x49f4f1,_0x3f250a;let _0x513334=this[_0x62fe2c(0x484)][_0x62fe2c(0x197)](e[_0x62fe2c(0x4d3)]['UNIVER_DOC']);if(!_0x513334)return;let _0x3f44c8=_0x513334['getUnitId'](),_0x2fb37b=null;try{_0x2fb37b=this[_0x62fe2c(0x414)][_0x62fe2c(0x462)](_0x3f44c8);}catch{_0x2fb37b=null;}if(_0x2fb37b){var _0x591e93;let _0xacded6={'startOffset':_0x2fb37b[_0x62fe2c(0x1dc)],'endOffset':_0x2fb37b[_0x62fe2c(0x31f)],'collapsed':_0x2fb37b[_0x62fe2c(0x1dc)]===_0x2fb37b['endOffset'],'segmentId':(_0x591e93=_0x2fb37b[_0x62fe2c(0x209)])==null?'':_0x591e93};return F(_0x513334,_0xacded6)?_0xacded6:void 0x0;}let _0x53501f=[...(_0x390f2d=this[_0x62fe2c(0x281)][_0x62fe2c(0x20a)]())==null?[]:_0x390f2d];if(_0x53501f[_0x62fe2c(0x29c)]!==0x1)return;let _0x5c0bf0=(_0x49f4f1=this['_docSelectionManagerService'][_0x62fe2c(0x294)]())==null?_0x53501f[0x0]:_0x49f4f1;if(!_0x5c0bf0||!_0x5c0bf0[_0x62fe2c(0x266)]||_0x5c0bf0[_0x62fe2c(0x1dc)]==null)return;let _0x3b7689={..._0x5c0bf0,'segmentId':(_0x3f250a=_0x5c0bf0[_0x62fe2c(0x209)])==null?'':_0x3f250a};return F(_0x513334,_0x3b7689)?_0x3b7689:void 0x0;}};Z=C([S(0x0,(0x0,e[_0x4152cc(0x2d6)])(n[_0x4152cc(0x368)])),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(e[_0x4152cc(0x333)])),S(0x2,e[_0x4152cc(0x4d4)]),S(0x3,(0x0,e[_0x4152cc(0x2d6)])(l[_0x4152cc(0x220)])),S(0x4,(0x0,e['Inject'])(l[_0x4152cc(0x4cd)])),S(0x5,n[_0x4152cc(0x4d7)]),S(0x6,e[_0x4152cc(0x3cd)])],Z);let Q=class extends e[_0x4152cc(0x1a5)]{constructor(_0x31b5c6=B,_0x429e89,_0x562b84,_0xb38af4){const _0x6bc31f=_0x4152cc;super(),this[_0x6bc31f(0x1c1)]=_0x31b5c6,this[_0x6bc31f(0x247)]=_0x429e89,this[_0x6bc31f(0x348)]=_0x562b84,this['_commandService']=_0xb38af4;let {..._0x76d153}=(0x0,e['merge'])({},B,this['_config']);this[_0x6bc31f(0x348)][_0x6bc31f(0x1b7)](Ge,_0x76d153),this[_0x6bc31f(0x431)](),(0x0,s['registerWordCloudChart'])(s['echarts']);}[_0x4152cc(0x36b)](){const _0x570927=_0x4152cc;let _0x2b5d70=this[_0x570927(0x247)];[[X],[R],[w],[J],[Y],[M],[U],[W],[ct],[V],[H],[Z]]['forEach'](_0x550e66=>_0x2b5d70[_0x570927(0x325)](_0x550e66)),(0x0,e[_0x570927(0x2a2)])(_0x2b5d70,[[R],[w],[J],[Y],[M],[U],[V],[H]]),this[_0x570927(0x247)][_0x570927(0x4bd)](X);}[_0x4152cc(0x291)](){const _0x1c456e=_0x4152cc;this[_0x1c456e(0x247)][_0x1c456e(0x4bd)](W),this[_0x1c456e(0x247)][_0x1c456e(0x4bd)](ct),this[_0x1c456e(0x247)][_0x1c456e(0x4bd)](V),this[_0x1c456e(0x247)][_0x1c456e(0x4bd)](H),this[_0x1c456e(0x247)][_0x1c456e(0x4bd)](Z);}[_0x4152cc(0x431)](){[_,v]['forEach'](_0x3b2d29=>{const _0x1d24fa=_0xfc4a;this[_0x1d24fa(0x3d3)](this[_0x1d24fa(0x45a)][_0x1d24fa(0x27f)](_0x3b2d29));});}};k(Q,_0x4152cc(0x27a),e[_0x4152cc(0x4d3)]['UNIVER_DOC']),k(Q,_0x4152cc(0x345),_0x4152cc(0x282)),k(Q,_0x4152cc(0x193),rt),k(Q,'version',it),Q=C([(0x0,e[_0x4152cc(0x433)])(m[_0x4152cc(0x3e0)],l[_0x4152cc(0x186)],h[_0x4152cc(0x239)],g[_0x4152cc(0x457)],d[_0x4152cc(0x1cb)],u['UniverDocsUIPlugin'],n[_0x4152cc(0x44a)],a[_0x4152cc(0x211)],f[_0x4152cc(0x2aa)]),S(0x1,(0x0,e['Inject'])(e[_0x4152cc(0x360)])),S(0x2,e['IConfigService']),S(0x3,e['ICommandService'])],Q),exports[_0x4152cc(0x30d)]=Ge,exports['DOC_ACTIVE_CHART_COMPONENT']=mt,exports[_0x4152cc(0x493)]=Ke,exports[_0x4152cc(0x33e)]=b,exports[_0x4152cc(0x255)]=_0x4152cc(0x39b),exports[_0x4152cc(0x269)]=Ne,exports[_0x4152cc(0x473)]=P,exports[_0x4152cc(0x427)]=Xe,exports[_0x4152cc(0x2f6)]=G,exports[_0x4152cc(0x48c)]=Ze,exports['DOC_CHART_INSERT_PANEL_COMPONENT']=Ue,exports[_0x4152cc(0x17c)]=ht,Object[_0x4152cc(0x33c)](exports,_0x4152cc(0x1d5),{'enumerable':!0x0,'get':function(){return J;}}),Object['defineProperty'](exports,_0x4152cc(0x2cf),{'enumerable':!0x0,'get':function(){return V;}}),Object['defineProperty'](exports,_0x4152cc(0x40c),{'enumerable':!0x0,'get':function(){return w;}}),exports[_0x4152cc(0x1f5)]=te,exports[_0x4152cc(0x2da)]=x,Object[_0x4152cc(0x33c)](exports,'DocChartDrawingEditController',{'enumerable':!0x0,'get':function(){return H;}}),exports['DocChartEditPanel']=Ee,exports[_0x4152cc(0x192)]=Pe,exports[_0x4152cc(0x1f2)]=ee,exports[_0x4152cc(0x3ec)]=tt,exports[_0x4152cc(0x243)]=K,exports[_0x4152cc(0x19b)]=z,exports[_0x4152cc(0x39c)]=et,Object[_0x4152cc(0x33c)](exports,_0x4152cc(0x3dc),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x4152cc(0x33c)](exports,_0x4152cc(0x21e),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x4152cc(0x33c)](exports,_0x4152cc(0x205),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x4152cc(0x33c)](exports,_0x4152cc(0x20f),{'enumerable':!0x0,'get':function(){return W;}}),Object[_0x4152cc(0x33c)](exports,_0x4152cc(0x18f),{'enumerable':!0x0,'get':function(){return U;}}),exports['DocDomChartHost']=ke,exports[_0x4152cc(0x353)]=A,exports['DocPrintChart']=gt,exports[_0x4152cc(0x41c)]=nt,exports['IDocChartRenderModelService']=j,exports['IDocChartSnapshotRendererService']=Je,exports[_0x4152cc(0x4da)]=v,exports[_0x4152cc(0x2bb)]=_,Object['defineProperty'](exports,_0x4152cc(0x282),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x4152cc(0x2d8)]=i[_0x4152cc(0x2d8)],exports[_0x4152cc(0x263)]=i['appendInlineTableRow'],exports[_0x4152cc(0x425)]=y,exports[_0x4152cc(0x1ff)]=i[_0x4152cc(0x1ff)],exports['defaultPluginConfig']=B,exports['getDocChartInsertDisabledObservable']=Qe,exports['normalizeInlineTableValues']=i[_0x4152cc(0x389)];
1
+ const _0x4b37c8=_0x395d;(function(_0x311b2b,_0x390303){const _0xe303c8=_0x395d,_0x144cfb=_0x311b2b();while(!![]){try{const _0x242b9d=-parseInt(_0xe303c8(0xa8))/0x1+parseInt(_0xe303c8(0x25a))/0x2+parseInt(_0xe303c8(0x295))/0x3+-parseInt(_0xe303c8(0x213))/0x4+-parseInt(_0xe303c8(0x186))/0x5+-parseInt(_0xe303c8(0x2cb))/0x6+parseInt(_0xe303c8(0x1bb))/0x7*(parseInt(_0xe303c8(0xa2))/0x8);if(_0x242b9d===_0x390303)break;else _0x144cfb['push'](_0x144cfb['shift']());}catch(_0x496645){_0x144cfb['push'](_0x144cfb['shift']());}}}(_0x2343,0x33ec9),Object[_0x4b37c8(0x88)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs/core'),t=require('@univerjs-pro/chart-ui'),n=require('@univerjs-pro/engine-chart'),r=require('@univerjs/design'),i=require('@univerjs/ui'),a=require('react'),o=require('react/jsx-runtime'),s=require('@univerjs-pro/docs-chart'),c=require('@univerjs/docs'),l=require('@univerjs/docs-ui'),u=require('@univerjs/docs-drawing'),d=require('@univerjs/docs-drawing-ui'),f=require('rxjs'),p=require('@univerjs-pro/license'),m=require('@univerjs/drawing'),h=require('@univerjs/engine-render');const g={'id':_0x4b37c8(0x113),'type':e['CommandType'][_0x4b37c8(0x15e)],'handler'(){return!0x0;}},_={'id':_0x4b37c8(0xff),'type':e['CommandType']['OPERATION'],'handler'(){return!0x0;}},v=_0x4b37c8(0x2dc);let y=function(_0x14fd9c){const _0x1f6415=_0x4b37c8;return _0x14fd9c[_0x1f6415(0x141)]=_0x1f6415(0x117),_0x14fd9c['DUPLICATE']='duplicate',_0x14fd9c;}({});function b(_0x35e614){const _0x9b1f22=_0x4b37c8;let _0x5870df=(0x0,i[_0x9b1f22(0x252)])(e[_0x9b1f22(0x300)]),{values:_0x52d58b,sharingCount:_0x277f78=0x1,onCancel:_0x3588fa,onChange:_0x5c08a8,onSubmit:_0x37ae7d}=_0x35e614,[_0x5673f1,_0x53b8b4]=(0x0,a[_0x9b1f22(0x1c4)])(()=>_0x52d58b['map'](_0x2ae559=>[..._0x2ae559])),[_0x17c53f,_0x3abf7c]=(0x0,a[_0x9b1f22(0x1c4)])(null),_0x1b2c87=_0x277f78>0x1,_0x503096=_0x58512c=>{_0x53b8b4(_0x58512c),_0x5c08a8==null||_0x5c08a8(_0x58512c);},_0x3464c6=_0x2abeff=>{const _0x264967=_0x9b1f22;let _0x265891=(0x0,t[_0x264967(0x2a3)])(_0x5673f1);if(_0x265891[_0x264967(0x34d)]===0x0){_0x3abf7c(_0x5870df['t'](_0x264967(0x2b0)));return;}_0x3abf7c(null),_0x37ae7d(_0x265891,_0x2abeff);};return(0x0,o[_0x9b1f22(0x2c2)])(_0x9b1f22(0x14f),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','children':[(0x0,o['jsx'])(_0x9b1f22(0x14f),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto\x20univer-overscroll-contain\x20univer-pr-1','children':(0x0,o[_0x9b1f22(0x148)])(t['ChartInlineTableEditor'],{'values':_0x5673f1,'parsePastedText':n[_0x9b1f22(0x319)],'onChange':_0x503096})}),_0x17c53f&&(0x0,o[_0x9b1f22(0x148)])(_0x9b1f22(0x14f),{'className':_0x9b1f22(0x1b0),'children':_0x17c53f}),(0x0,o[_0x9b1f22(0x2c2)])(_0x9b1f22(0x14f),{'className':_0x9b1f22(0x1e6),'children':[_0x3588fa&&(0x0,o[_0x9b1f22(0x148)])(r['Button'],{'type':_0x9b1f22(0x24e),'variant':_0x9b1f22(0xac),'onClick':_0x3588fa,'children':_0x5870df['t'](_0x9b1f22(0x244))}),_0x1b2c87&&(0x0,o[_0x9b1f22(0x148)])(r[_0x9b1f22(0xd7)],{'type':_0x9b1f22(0x24e),'variant':'default','onClick':()=>_0x3464c6('duplicate'),'children':_0x5870df['t'](_0x9b1f22(0x1fd))}),(0x0,o[_0x9b1f22(0x148)])(r[_0x9b1f22(0xd7)],{'type':_0x9b1f22(0x24e),'variant':'primary','onClick':()=>_0x3464c6(_0x9b1f22(0x117)),'children':_0x5870df['t'](_0x9b1f22(0x27d))})]})]});}function _0x395d(_0x255be7,_0x48bcfc){_0x255be7=_0x255be7-0x87;const _0x2343a8=_0x2343();let _0x395d10=_0x2343a8[_0x255be7];return _0x395d10;}function x(_0x174e5c,_0x29aeb4){return function(_0x22a0a1,_0x27c7d9){_0x29aeb4(_0x22a0a1,_0x27c7d9,_0x174e5c);};}function S(_0x3476ad,_0x390e8e,_0x3fdeb3,_0x399ae7){const _0x335951=_0x4b37c8;var _0x359950=arguments[_0x335951(0x34d)],_0x35d45f=_0x359950<0x3?_0x390e8e:_0x399ae7===null?_0x399ae7=Object[_0x335951(0x23e)](_0x390e8e,_0x3fdeb3):_0x399ae7,_0x3035c7;if(typeof Reflect=='object'&&typeof Reflect[_0x335951(0x299)]==_0x335951(0xa0))_0x35d45f=Reflect[_0x335951(0x299)](_0x3476ad,_0x390e8e,_0x3fdeb3,_0x399ae7);else{for(var _0x2cfb86=_0x3476ad[_0x335951(0x34d)]-0x1;_0x2cfb86>=0x0;_0x2cfb86--)(_0x3035c7=_0x3476ad[_0x2cfb86])&&(_0x35d45f=(_0x359950<0x3?_0x3035c7(_0x35d45f):_0x359950>0x3?_0x3035c7(_0x390e8e,_0x3fdeb3,_0x35d45f):_0x3035c7(_0x390e8e,_0x3fdeb3))||_0x35d45f);}return _0x359950>0x3&&_0x35d45f&&Object[_0x335951(0x88)](_0x390e8e,_0x3fdeb3,_0x35d45f),_0x35d45f;}let C=class{constructor(_0x3c4030,_0x501464){const _0x43c7d3=_0x4b37c8;this['_commandService']=_0x3c4030,this[_0x43c7d3(0x163)]=_0x501464;}[_0x4b37c8(0x2e9)](_0x589187,_0x1becbe){const _0x354980=_0x4b37c8;let _0x21e743=this[_0x354980(0x163)][_0x354980(0x29b)](_0x589187,_0x1becbe),_0x535da8=_0x21e743?this[_0x354980(0x163)][_0x354980(0x27c)](_0x589187,_0x21e743[_0x354980(0x1ff)]):void 0x0;return!_0x21e743||!_0x535da8?null:{'unitId':_0x589187,'chartId':_0x1becbe,'dataSourceId':_0x535da8['id'],'values':_0x535da8[_0x354980(0x2d1)][_0x354980(0x277)](_0x4b5a76=>[..._0x4b5a76]),'sharingCount':this[_0x354980(0x163)][_0x354980(0x13b)](_0x589187,_0x535da8['id'])};}[_0x4b37c8(0x177)](_0x4845e4,_0x5d6a27,_0x43be07,_0x213407){const _0x45a1f5=_0x4b37c8;let _0x53d388=(0x0,n[_0x45a1f5(0x319)])(_0x43be07);return _0x53d388[_0x45a1f5(0x34d)]!==0x0&&this[_0x45a1f5(0x1fa)](_0x4845e4,_0x5d6a27,_0x53d388,_0x213407);}[_0x4b37c8(0x1fa)](_0x54c651,_0x101d0f,_0x3c5aba,_0x455cfb){const _0x159e65=_0x4b37c8;var _0x17997c;let _0x5d83cb=this[_0x159e65(0x2e9)](_0x54c651,_0x101d0f);if(!_0x5d83cb||_0x3c5aba[_0x159e65(0x34d)]===0x0)return!0x1;let _0x402d16=(_0x17997c=this[_0x159e65(0x163)][_0x159e65(0x29b)](_0x54c651,_0x101d0f))==null?void 0x0:_0x17997c[_0x159e65(0x2fd)];if(_0x402d16===void 0x0)return!0x1;let _0x2f1db3=(0x0,t[_0x159e65(0x26d)])(_0x402d16,_0x3c5aba);if(!_0x2f1db3['ok'])return!0x1;let _0x4c58d0=_0x5d83cb[_0x159e65(0x1ff)];if(_0x455cfb===_0x159e65(0x20d)&&_0x5d83cb[_0x159e65(0x11a)]>0x1){if(!this[_0x159e65(0x20b)][_0x159e65(0x1df)](s[_0x159e65(0x110)]['id'],{'unitId':_0x54c651,'chartId':_0x101d0f}))return!0x1;let _0x2488c5=this[_0x159e65(0x163)][_0x159e65(0x29b)](_0x54c651,_0x101d0f);if(!_0x2488c5)return!0x1;_0x4c58d0=_0x2488c5['dataSourceId'];}return this[_0x159e65(0x20b)][_0x159e65(0x1df)](s[_0x159e65(0x23d)]['id'],{'unitId':_0x54c651,'dataSourceId':_0x4c58d0,'values':_0x2f1db3[_0x159e65(0x2d1)]});}};C=S([x(0x0,e['ICommandService']),x(0x1,(0x0,e[_0x4b37c8(0x195)])(s[_0x4b37c8(0x153)]))],C);const w=(0x0,e['createIdentifier'])('doc-chart.ui.service');let T=class extends t[_0x4b37c8(0x175)]{constructor(_0xcb4a4e,_0xdeaab,_0x1aae18){const _0x1cffb8=_0x4b37c8;super(_0x1aae18),this[_0x1cffb8(0x26e)]=_0xcb4a4e,this[_0x1cffb8(0x20b)]=_0xdeaab;}get[_0x4b37c8(0x2ec)](){const _0x541232=_0x4b37c8;return this['_modelService'][_0x541232(0x2ec)];}[_0x4b37c8(0x30d)](_0x1abfef){const _0xdd51b3=_0x4b37c8;let _0x249afb=this[_0xdd51b3(0x2ec)],_0x37ab23=_0x1abfef[_0xdd51b3(0x205)]??(_0x249afb==null?void 0x0:_0x249afb[_0xdd51b3(0x205)]),_0x3a50f7=_0x1abfef[_0xdd51b3(0x98)]??(_0x249afb==null?void 0x0:_0x249afb[_0xdd51b3(0x98)]);!_0x37ab23||!_0x3a50f7||this['_commandService'][_0xdd51b3(0xae)](s[_0xdd51b3(0x134)]['id'],{..._0x1abfef,'unitId':_0x37ab23,'chartId':_0x3a50f7});}};T=S([x(0x0,(0x0,e['Inject'])(s[_0x4b37c8(0xca)])),x(0x1,e[_0x4b37c8(0x356)]),x(0x2,(0x0,e[_0x4b37c8(0x195)])(t[_0x4b37c8(0x95)]))],T);const E={'axis':{...t['DEFAULT_CHART_AXIS_VALUES'],'primaryGridLineVisible':!0x0,'secondaryGridLineVisible':!0x0},'legend':t['DEFAULT_CHART_LEGEND_VALUES'],'lineAndArea':t[_0x4b37c8(0xb5)],'pareto':t[_0x4b37c8(0x301)],'funnel':t[_0x4b37c8(0xe0)],'heatmap':t[_0x4b37c8(0x2d4)],'indicatorLine':t['DEFAULT_CHART_INDICATOR_LINE_VALUES'],'pie':{...t[_0x4b37c8(0x262)],'doughnutHole':0x0,'pieHole':0x0},'relation':{...t[_0x4b37c8(0x187)],'useValueAsSymbolSize':!0x1},'radar':t[_0x4b37c8(0x23a)],'series':{...t['DEFAULT_CHART_SERIES_VALUES'],'radarFillOpacity':0x1,'rightAxis':{'ltr':!0x1,'rtl':!0x1}},'style':t['DEFAULT_CHART_STYLE_VALUES'],'titles':t['DEFAULT_CHART_TITLE_VALUES'],'waterfall':{...t[_0x4b37c8(0x24c)],'useSubtotal':!0x0},'waterfallStyle':t[_0x4b37c8(0x31a)],'wordCloud':t[_0x4b37c8(0x100)]},ee=[n[_0x4b37c8(0x28d)][_0x4b37c8(0xc5)],n['ChartTypeBits']['Histogram'],n[_0x4b37c8(0x28d)]['Treemap'],n[_0x4b37c8(0x28d)][_0x4b37c8(0x166)],n[_0x4b37c8(0x28d)][_0x4b37c8(0x324)],n[_0x4b37c8(0x28d)]['Chord']];function te(){const _0x31e7bf=_0x4b37c8;let _0x2ead18=(0x0,t[_0x31e7bf(0xfb)])();return(0x0,o[_0x31e7bf(0x148)])(t[_0x31e7bf(0xf0)],{'visible':ee[_0x31e7bf(0x351)](_0x1e4e17=>!n[_0x31e7bf(0x26c)][_0x31e7bf(0x32b)](_0x2ead18,_0x1e4e17))});}function D(_0x17a4f6){const _0x1137bb=_0x4b37c8;return(0x0,o[_0x1137bb(0x2c2)])(t[_0x1137bb(0x1aa)],{'id':_0x17a4f6['id'],'children':[(0x0,o[_0x1137bb(0x148)])(t['ChartSectionAccordionTrigger'],{'children':_0x17a4f6['label']}),(0x0,o[_0x1137bb(0x148)])(t[_0x1137bb(0xc1)],{'children':_0x17a4f6[_0x1137bb(0x2ca)]})]});}function ne(_0x57fb9d,_0x4fbaf7=!0x1){const _0x569202=_0x4b37c8;let _0x36b99a=_0x57fb9d===n[_0x569202(0x28d)][_0x569202(0x1c2)],_0x427f67=n[_0x569202(0x26c)][_0x569202(0x32b)](_0x57fb9d,n['ChartTypeBits'][_0x569202(0x1bc)]),_0x3f8b91=_0x57fb9d===n['ChartTypeBits'][_0x569202(0x291)],_0x15f78d=_0x57fb9d===n[_0x569202(0x28d)][_0x569202(0xb7)],_0x1e9abc=_0x57fb9d===n[_0x569202(0x28d)][_0x569202(0x1de)],_0x55230a=_0x57fb9d===n[_0x569202(0x28d)][_0x569202(0x18c)],_0x57877c=_0x57fb9d===n[_0x569202(0x28d)][_0x569202(0xc5)],_0x5389a3=_0x57fb9d===n[_0x569202(0x28d)][_0x569202(0x2bc)],_0x42e1c5=_0x57fb9d===n['ChartTypeBits']['Treemap'],_0x17db6a=_0x57fb9d===n[_0x569202(0x28d)][_0x569202(0x166)],_0x570e16=_0x57fb9d===n[_0x569202(0x28d)][_0x569202(0x324)],_0x4bd21f=_0x57fb9d===n[_0x569202(0x28d)]['Chord'],_0x5174fb=_0x57fb9d===n['ChartTypeBits'][_0x569202(0x305)],_0x412c4e=_0x57fb9d===n['ChartTypeBits'][_0x569202(0x12e)],_0x145d44=[t[_0x569202(0x297)][_0x569202(0x2ff)],t[_0x569202(0x297)][_0x569202(0x189)]];return _0x36b99a&&_0x145d44[_0x569202(0x353)](t[_0x569202(0x297)]['WordCloud']),(0x0,t[_0x569202(0x237)])(_0x57fb9d,t[_0x569202(0x154)][_0x569202(0x173)])&&!_0x55230a&&_0x145d44[_0x569202(0x353)](t[_0x569202(0x297)][_0x569202(0x1c0)]),(0x0,t[_0x569202(0x138)])(_0x57fb9d)&&_0x145d44[_0x569202(0x353)](t[_0x569202(0x297)]['LineAndArea']),_0x3f8b91&&_0x145d44['push'](t[_0x569202(0x297)][_0x569202(0x291)]),_0x1e9abc&&_0x145d44['push'](t['ChartEditPanelSection'][_0x569202(0x309)]),_0x55230a&&_0x145d44[_0x569202(0x353)](t[_0x569202(0x297)][_0x569202(0x312)],t[_0x569202(0x297)][_0x569202(0x1ab)]),_0x427f67&&_0x145d44['push'](t[_0x569202(0x297)]['PieStyle']),_0x15f78d&&_0x145d44[_0x569202(0x353)](t['ChartEditPanelSection'][_0x569202(0xb7)]),_0x412c4e&&_0x145d44[_0x569202(0x353)](t[_0x569202(0x297)][_0x569202(0x12e)]),_0x5174fb&&_0x145d44[_0x569202(0x353)](t[_0x569202(0x297)][_0x569202(0x305)]),_0x57877c&&_0x145d44[_0x569202(0x353)](t[_0x569202(0x297)]['Candlestick']),_0x5389a3&&_0x145d44[_0x569202(0x353)](t[_0x569202(0x297)]['Histogram']),_0x42e1c5&&_0x145d44[_0x569202(0x353)](t[_0x569202(0x297)][_0x569202(0x24a)]),_0x17db6a&&_0x145d44['push'](t['ChartEditPanelSection']['Sunburst']),_0x570e16&&_0x145d44[_0x569202(0x353)](t[_0x569202(0x297)][_0x569202(0x324)]),_0x4bd21f&&_0x145d44[_0x569202(0x353)](t[_0x569202(0x297)]['Chord']),(0x0,t[_0x569202(0x237)])(_0x57fb9d,t[_0x569202(0x154)][_0x569202(0x1bf)])&&_0x145d44[_0x569202(0x353)](t[_0x569202(0x297)][_0x569202(0x1bf)]),(0x0,t[_0x569202(0x237)])(_0x57fb9d,t[_0x569202(0x154)][_0x569202(0xf5)])&&(_0x145d44['push'](t[_0x569202(0x297)][_0x569202(0x168)],t[_0x569202(0x297)]['VerticalAxis']),_0x4fbaf7&&_0x145d44[_0x569202(0x353)](t[_0x569202(0x297)][_0x569202(0x8f)]),_0x145d44['push'](t[_0x569202(0x297)][_0x569202(0x121)])),(0x0,t[_0x569202(0x237)])(_0x57fb9d,t['ChartEditorCapability'][_0x569202(0x29c)])&&_0x145d44[_0x569202(0x353)](t[_0x569202(0x297)]['IndicatorLine']),_0x145d44;}function O(_0x2ba9ae){const _0x2f9fa7=_0x4b37c8;return(0x0,o[_0x2f9fa7(0x2c2)])(_0x2f9fa7(0x14f),{'className':_0x2f9fa7(0x2b6),'children':[(0x0,o[_0x2f9fa7(0x148)])(t[_0x2f9fa7(0x2d9)],{'axis':_0x2ba9ae['axis'],'defaultValues':E['axis']}),(0x0,o[_0x2f9fa7(0x148)])(t[_0x2f9fa7(0x13a)],{'axis':_0x2ba9ae[_0x2f9fa7(0x33a)],'defaultValues':E[_0x2f9fa7(0x33a)]}),(0x0,o[_0x2f9fa7(0x148)])(t[_0x2f9fa7(0x287)],{'axis':_0x2ba9ae[_0x2f9fa7(0x33a)],'defaultValues':E['axis']}),(0x0,o[_0x2f9fa7(0x148)])(t['ChartAxisBoundsFields'],{'axis':_0x2ba9ae[_0x2f9fa7(0x33a)]}),(0x0,o[_0x2f9fa7(0x148)])(t[_0x2f9fa7(0xc0)],{'axis':_0x2ba9ae[_0x2f9fa7(0x33a)]}),(0x0,o['jsx'])(t[_0x2f9fa7(0x103)],{'axis':_0x2ba9ae[_0x2f9fa7(0x33a)],'defaultValues':E[_0x2f9fa7(0x33a)]}),(0x0,o[_0x2f9fa7(0x148)])(t[_0x2f9fa7(0x1a0)],{'axis':_0x2ba9ae[_0x2f9fa7(0x33a)],'defaultValues':E[_0x2f9fa7(0x33a)]})]});}function re(_0x431abb){const _0xac871d=_0x4b37c8;var _0x6b0d54,_0x1fa4ab;let _0x577afd=(0x0,i[_0xac871d(0x252)])(e[_0xac871d(0x300)]),_0xa31dd7=(0x0,t[_0xac871d(0xfb)])(),_0x578c8a=(0x0,t['useChartEditorHasRightAxis'])(),[_0x4ecf17,_0x109036]=(0x0,a[_0xac871d(0x1c4)])(null),_0x36f1ba=(0x0,o[_0xac871d(0x148)])(t[_0xac871d(0x313)],{}),_0x1c0ba5={[t[_0xac871d(0x297)]['Candlestick']]:_0x577afd['t'](_0xac871d(0x317)),[t[_0xac871d(0x297)][_0xac871d(0x189)]]:_0x577afd['t'](_0xac871d(0x25b)),[t[_0xac871d(0x297)][_0xac871d(0x2ff)]]:_0x577afd['t']('docs-chart-ui.common.chartStyle'),[t[_0xac871d(0x297)][_0xac871d(0x21b)]]:_0x577afd['t'](_0xac871d(0x27b)),[t[_0xac871d(0x297)][_0xac871d(0xb7)]]:_0x577afd['t']('docs-chart-ui.section.funnel'),[t[_0xac871d(0x297)][_0xac871d(0x324)]]:_0x577afd['t'](_0xac871d(0x32a)),[t[_0xac871d(0x297)][_0xac871d(0x121)]]:_0x577afd['t'](_0xac871d(0x170)),[t[_0xac871d(0x297)]['Heatmap']]:_0x577afd['t'](_0xac871d(0x17b)),[t[_0xac871d(0x297)][_0xac871d(0x2bc)]]:_0x577afd['t']('docs-chart-ui.section.histogram'),[t['ChartEditPanelSection'][_0xac871d(0x168)]]:_0x577afd['t'](_0xac871d(0x1d8)),[t[_0xac871d(0x297)]['IndicatorLine']]:_0x577afd['t'](_0xac871d(0x149)),[t[_0xac871d(0x297)]['Legend']]:_0x577afd['t'](_0xac871d(0x2cc)),[t[_0xac871d(0x297)]['LineAndArea']]:_0x577afd['t'](_0xac871d(0x9c)),[t[_0xac871d(0x297)][_0xac871d(0x312)]]:_0x577afd['t']('docs-chart-ui.section.paretoBar'),[t['ChartEditPanelSection'][_0xac871d(0x1ab)]]:_0x577afd['t'](_0xac871d(0x19e)),[t['ChartEditPanelSection'][_0xac871d(0xd8)]]:_0x577afd['t'](_0xac871d(0x2f6)),[t['ChartEditPanelSection'][_0xac871d(0x291)]]:_0x577afd['t'](_0xac871d(0x19b)),[t[_0xac871d(0x297)][_0xac871d(0x305)]]:_0x577afd['t'](_0xac871d(0xc3)),[t[_0xac871d(0x297)][_0xac871d(0x8f)]]:_0x577afd['t'](_0xac871d(0x303)),[t[_0xac871d(0x297)][_0xac871d(0x1c0)]]:_0x577afd['t'](_0xac871d(0x28e)),[t[_0xac871d(0x297)][_0xac871d(0x166)]]:_0x577afd['t']('docs-chart-ui.section.sunburst'),[t[_0xac871d(0x297)]['Treemap']]:_0x577afd['t'](_0xac871d(0x1f0)),[t[_0xac871d(0x297)][_0xac871d(0x34c)]]:_0x577afd['t'](_0xac871d(0x1c8)),[t['ChartEditPanelSection'][_0xac871d(0x33d)]]:_0x577afd['t'](_0xac871d(0x1a9)),[t['ChartEditPanelSection']['WaterfallSeries']]:_0x577afd['t'](_0xac871d(0x2fb)),[t[_0xac871d(0x297)][_0xac871d(0x1c2)]]:_0x577afd['t']('docs-chart-ui.section.wordCloud')};(0x0,a[_0xac871d(0xcf)])(()=>{const _0x2cd6d2=_0xac871d;var _0x1ca5b6;(_0x1ca5b6=_0x431abb['route'])!=null&&_0x1ca5b6[_0x2cd6d2(0x241)]&&_0x109036(_0x431abb['route'][_0x2cd6d2(0x241)]);},[_0x431abb[_0xac871d(0x228)]]);let _0x5b2661={[t[_0xac871d(0x297)][_0xac871d(0x2ff)]]:(0x0,o[_0xac871d(0x148)])(t[_0xac871d(0x161)],{'defaultValues':E[_0xac871d(0x308)],'showBodyFont':!0x1,'children':(0x0,o[_0xac871d(0x148)])(te,{})}),[t[_0xac871d(0x297)][_0xac871d(0x189)]]:(0x0,o[_0xac871d(0x2c2)])(_0xac871d(0x14f),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':[(0x0,o[_0xac871d(0x148)])(t[_0xac871d(0x25d)],{'commitMode':_0xac871d(0x194),'defaultValues':E['titles'],'showFont':!0x1}),(0x0,o[_0xac871d(0x148)])(t[_0xac871d(0x1b6)],{'commitMode':_0xac871d(0x194),'defaultValues':E['titles'],'showFont':!0x1}),(0x0,o[_0xac871d(0x148)])(t['ChartAxisTitleFields'],{'axis':'x','commitMode':_0xac871d(0x194),'defaultValues':E['titles'],'showAlignment':!0x1,'showFont':!0x1}),(0x0,o['jsx'])(t['ChartAxisTitleFields'],{'axis':'y','commitMode':'change','defaultValues':E[_0xac871d(0x155)],'showAlignment':!0x1,'showFont':!0x1}),(0x0,o['jsx'])(t[_0xac871d(0xcd)],{'axis':_0xac871d(0x118),'commitMode':_0xac871d(0x194),'defaultValues':E[_0xac871d(0x155)],'showAlignment':!0x1,'showFont':!0x1}),(0x0,o[_0xac871d(0x148)])(t['ChartTitleFontSizeFields'],{'defaultValues':E[_0xac871d(0x155)]})]}),[t[_0xac871d(0x297)]['Series']]:(0x0,o[_0xac871d(0x2c2)])(t[_0xac871d(0x14c)],{'defaultValues':E[_0xac871d(0x139)],'NumberFormatField':t[_0xac871d(0x9f)],'selectedSeriesId':(_0x6b0d54=_0x431abb[_0xac871d(0x228)])==null?void 0x0:_0x6b0d54[_0xac871d(0x2b2)],'children':[(0x0,o[_0xac871d(0x148)])(t[_0xac871d(0xf8)],{}),(0x0,o['jsx'])(t[_0xac871d(0x19d)],{'showColor':!0x1,'showOpacity':!0x1}),(0x0,o['jsx'])(t[_0xac871d(0x21c)],{'showColor':!0x1}),(0x0,o['jsx'])(t[_0xac871d(0xa9)],{}),(0x0,o['jsx'])(t['ChartSeriesLabelPositionField'],{}),(0x0,o[_0xac871d(0x148)])(t['ChartSeriesLabelFontSizeField'],{})]}),[t[_0xac871d(0x297)]['LineAndArea']]:(0x0,o[_0xac871d(0x148)])(t[_0xac871d(0xd4)],{'defaultValues':E[_0xac871d(0x99)],'lineStyleControl':'select'}),[t[_0xac871d(0x297)]['WordCloud']]:(0x0,o[_0xac871d(0x2c2)])(t[_0xac871d(0x339)],{'children':[(0x0,o['jsx'])(t[_0xac871d(0x33c)],{'defaultValues':E[_0xac871d(0x9e)]}),(0x0,o[_0xac871d(0x148)])(t[_0xac871d(0x2e0)],{'defaultValues':E['wordCloud']})]}),[t[_0xac871d(0x297)][_0xac871d(0x291)]]:(0x0,o[_0xac871d(0x148)])(t[_0xac871d(0xbf)],{'defaultValues':E['radar']}),[t[_0xac871d(0x297)][_0xac871d(0x309)]]:(0x0,o[_0xac871d(0x148)])(t['ChartWaterfallStyleSection'],{'defaultValues':E[_0xac871d(0x10b)],'NumberFormatField':t[_0xac871d(0x9f)],'selectedSeriesId':(_0x1fa4ab=_0x431abb[_0xac871d(0x228)])==null?void 0x0:_0x1fa4ab[_0xac871d(0x2b2)]}),[t[_0xac871d(0x297)]['ParetoBarSeries']]:(0x0,o[_0xac871d(0x148)])(t[_0xac871d(0x270)],{'defaultValues':E[_0xac871d(0x18e)],'NumberFormatField':t[_0xac871d(0x9f)],'showDataPointEditor':!0x0,'target':_0xac871d(0x90)}),[t[_0xac871d(0x297)][_0xac871d(0x1ab)]]:(0x0,o[_0xac871d(0x148)])(t[_0xac871d(0x270)],{'defaultValues':E[_0xac871d(0x18e)],'NumberFormatField':t[_0xac871d(0x9f)],'showDataPointEditor':!0x0,'target':_0xac871d(0x2be)}),[t[_0xac871d(0x297)][_0xac871d(0xd8)]]:(0x0,o[_0xac871d(0x148)])(t['ChartPieStyleSection'],{'defaultValues':E['pie'],'NumberFormatField':t[_0xac871d(0x9f)]}),[t[_0xac871d(0x297)]['Funnel']]:(0x0,o[_0xac871d(0x148)])(t['ChartFunnelStyleSection'],{'defaultValues':E[_0xac871d(0x1b4)],'gapControl':_0xac871d(0xa7)}),[t['ChartEditPanelSection']['Heatmap']]:(0x0,o[_0xac871d(0x148)])(t[_0xac871d(0x192)],{'defaultValues':E['heatmap']}),[t['ChartEditPanelSection']['Relation']]:(0x0,o[_0xac871d(0x148)])(t[_0xac871d(0x126)],{'defaultValues':E[_0xac871d(0x215)]}),[t[_0xac871d(0x297)][_0xac871d(0x1bf)]]:(0x0,o[_0xac871d(0x148)])(t['ChartLegendRoot'],{'defaultValues':E[_0xac871d(0x340)],'children':(0x0,o['jsxs'])(_0xac871d(0x14f),{'className':_0xac871d(0x2b6),'children':[(0x0,o['jsx'])(t[_0xac871d(0x16a)],{}),(0x0,o[_0xac871d(0x148)])(t[_0xac871d(0x1d1)],{}),(0x0,o[_0xac871d(0x148)])(t['ChartLegendSelectModeField'],{}),(0x0,o[_0xac871d(0x148)])(t['ChartLegendFontSizeField'],{})]})}),[t[_0xac871d(0x297)]['HorizontalAxis']]:(0x0,o[_0xac871d(0x148)])(O,{'axis':'x'}),[t[_0xac871d(0x297)][_0xac871d(0x33d)]]:(0x0,o[_0xac871d(0x148)])(O,{'axis':'y'}),[t[_0xac871d(0x297)][_0xac871d(0x8f)]]:(0x0,o[_0xac871d(0x148)])(O,{'axis':_0xac871d(0x118)}),[t[_0xac871d(0x297)][_0xac871d(0x121)]]:(0x0,o['jsxs'])(_0xac871d(0x14f),{'className':_0xac871d(0x2e1),'children':[(0x0,o[_0xac871d(0x148)])(t['ChartGridlineVisibilityField'],{'axis':'x','defaultValues':E['axis'],'label':_0x577afd['t'](_0xac871d(0x1d8))}),(0x0,o['jsx'])(t[_0xac871d(0x243)],{'axis':'y','defaultValues':E[_0xac871d(0x33a)],'label':_0x577afd['t'](_0xac871d(0x1a9))}),(0x0,o['jsxs'])(_0xac871d(0x14f),{'className':'univer-grid\x20univer-grid-cols-2\x20univer-gap-2','children':[(0x0,o[_0xac871d(0x148)])(t['ChartGridlineWidthField'],{'axis':'x','defaultValues':E['axis']}),(0x0,o['jsx'])(t[_0xac871d(0x315)],{'axis':'y','defaultValues':E[_0xac871d(0x33a)]})]})]}),[t['ChartEditPanelSection'][_0xac871d(0x29c)]]:(0x0,o['jsxs'])(_0xac871d(0x14f),{'className':_0xac871d(0x2e1),'children':[(0x0,o[_0xac871d(0x148)])(t[_0xac871d(0x314)],{'defaultValues':E['indicatorLine']}),(0x0,o[_0xac871d(0x148)])(t['ChartIndicatorLineTypeField'],{'defaultValues':E['indicatorLine']})]}),[t['ChartEditPanelSection']['Candlestick']]:_0x36f1ba,[t['ChartEditPanelSection'][_0xac871d(0x2bc)]]:_0x36f1ba,[t[_0xac871d(0x297)]['Treemap']]:_0x36f1ba,[t[_0xac871d(0x297)]['Sunburst']]:_0x36f1ba,[t[_0xac871d(0x297)]['Gauge']]:_0x36f1ba,[t['ChartEditPanelSection'][_0xac871d(0x21b)]]:_0x36f1ba};return(0x0,o[_0xac871d(0x148)])(t[_0xac871d(0x19c)],{'value':_0x4ecf17,'onChange':_0x109036,'children':ne(_0xa31dd7,_0x578c8a)[_0xac871d(0x277)](_0xc67311=>(0x0,o[_0xac871d(0x148)])(D,{'id':_0xc67311,'label':_0x1c0ba5[_0xc67311],'children':_0x5b2661[_0xc67311]},_0xc67311))});}function ie(_0x48d09e){const _0x259cb0=_0x4b37c8;var _0x24ac31;let _0xdce4fe=(0x0,i['useDependency'])(e[_0x259cb0(0x300)]),[_0x3c6c32,_0x54d2f1]=(0x0,a['useState'])(((_0x24ac31=_0x48d09e['initialRoute'])==null?void 0x0:_0x24ac31[_0x259cb0(0x23b)])??t['ChartEditPanelTab'][_0x259cb0(0xe6)]),_0xd1d3f2=(0x0,a[_0x259cb0(0x131)])(()=>(0x0,t['buildChartTypeSelectOptions'])(t['STATIC_CHART_TYPE_CATALOG'][_0x259cb0(0x277)](_0x5857cc=>({..._0x5857cc,'label':_0xdce4fe['t']('docs-chart-ui.chartTypes.'+_0x5857cc[_0x259cb0(0x284)])}))),[_0xdce4fe]);return(0x0,a['useEffect'])(()=>{const _0x3efe11=_0x259cb0;var _0x4cc1b0;(_0x4cc1b0=_0x48d09e[_0x3efe11(0x13c)])!=null&&_0x4cc1b0[_0x3efe11(0x23b)]&&_0x54d2f1(_0x48d09e[_0x3efe11(0x13c)][_0x3efe11(0x23b)]);},[_0x48d09e['initialRoute']]),(0x0,o[_0x259cb0(0x2c2)])('div',{'className':_0x259cb0(0x17e),'children':[(0x0,o[_0x259cb0(0x148)])(t[_0x259cb0(0x1f8)],{'ariaLabel':_0xdce4fe['t'](_0x259cb0(0x255)),'className':_0x259cb0(0x209),'items':[{'label':_0xdce4fe['t'](_0x259cb0(0x26b)),'panelId':ae,'value':t[_0x259cb0(0x1c5)]['Data']},{'label':_0xdce4fe['t'](_0x259cb0(0x1ee)),'panelId':oe,'value':t[_0x259cb0(0x1c5)][_0x259cb0(0x347)]}],'value':_0x3c6c32,'onChange':_0x54d2f1}),_0x3c6c32===t[_0x259cb0(0x1c5)][_0x259cb0(0xe6)]?(0x0,o[_0x259cb0(0x148)])(t['ChartEditPanel'],{'id':ae,'label':_0xdce4fe['t'](_0x259cb0(0x26b)),'children':(0x0,o[_0x259cb0(0x2c2)])(_0x259cb0(0x14f),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[(0x0,o['jsx'])(t['ChartTypeField'],{'options':_0xd1d3f2,'onChange':_0x48d09e['onPreviewChartTypeChange']}),(0x0,o[_0x259cb0(0x148)])(t[_0x259cb0(0x225)],{}),(0x0,o['jsx'])(t[_0x259cb0(0x29e)],{}),(0x0,o[_0x259cb0(0x148)])(te,{}),(0x0,o[_0x259cb0(0x148)])(t[_0x259cb0(0x2e8)],{}),(0x0,o[_0x259cb0(0x2c2)])(_0x259cb0(0x14f),{'children':[(0x0,o['jsx'])(t[_0x259cb0(0x1a6)],{'title':_0xdce4fe['t']('docs-chart-ui.common.data')}),(0x0,o[_0x259cb0(0x148)])(r[_0x259cb0(0xd7)],{'className':_0x259cb0(0x2c1),'onClick':_0x48d09e[_0x259cb0(0x344)],'children':_0xdce4fe['t'](_0x259cb0(0x2eb))})]}),(0x0,o[_0x259cb0(0x148)])(t[_0x259cb0(0x1d0)],{}),(0x0,o[_0x259cb0(0x148)])(t['ChartTypeSpecificDataSection'],{}),(0x0,o[_0x259cb0(0x148)])(t[_0x259cb0(0x1e3)],{'defaultValues':E[_0x259cb0(0x22f)]})]})}):(0x0,o['jsx'])(t[_0x259cb0(0x34a)],{'id':oe,'label':_0xdce4fe['t'](_0x259cb0(0x1ee)),'children':(0x0,o[_0x259cb0(0x148)])(re,{'route':_0x48d09e[_0x259cb0(0x13c)]})}),_0x48d09e[_0x259cb0(0x325)]&&(0x0,o[_0x259cb0(0x148)])(_0x259cb0(0x14f),{'className':'univer-flex\x20univer-shrink-0\x20univer-justify-end\x20univer-px-1\x20univer-pb-4\x20univer-pt-4','children':(0x0,o[_0x259cb0(0x148)])(r[_0x259cb0(0xd7)],{'type':_0x259cb0(0x24e),'variant':_0x259cb0(0xac),'onClick':_0x48d09e[_0x259cb0(0x325)],'children':_0xdce4fe['t'](_0x259cb0(0xb4))})})]});}const ae=_0x4b37c8(0x132),oe=_0x4b37c8(0x167);function k(_0x3138ba){'@babel/helpers - typeof';const _0x3283b6=_0x4b37c8;return k=typeof Symbol==_0x3283b6(0xa0)&&typeof Symbol[_0x3283b6(0x16c)]=='symbol'?function(_0x3dabdf){return typeof _0x3dabdf;}:function(_0x514284){const _0x51330f=_0x3283b6;return _0x514284&&typeof Symbol==_0x51330f(0xa0)&&_0x514284[_0x51330f(0x183)]===Symbol&&_0x514284!==Symbol[_0x51330f(0x188)]?_0x51330f(0xef):typeof _0x514284;},k(_0x3138ba);}function se(_0x8a40,_0x250616){const _0xd52a51=_0x4b37c8;if(k(_0x8a40)!=_0xd52a51(0xb1)||!_0x8a40)return _0x8a40;var _0x4a275b=_0x8a40[Symbol['toPrimitive']];if(_0x4a275b!==void 0x0){var _0x461edb=_0x4a275b['call'](_0x8a40,_0x250616||'default');if(k(_0x461edb)!='object')return _0x461edb;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x250616==='string'?String:Number)(_0x8a40);}function A(_0x20f2ba){const _0x4a5d62=_0x4b37c8;var _0x1b0012=se(_0x20f2ba,_0x4a5d62(0x2aa));return k(_0x1b0012)==_0x4a5d62(0xef)?_0x1b0012:_0x1b0012+'';}function _0x2343(){const _0x30392c=['docs-chart-ui.common.editChart','getCurrentUnitOfType','has','target','display','762610vZNJzo','docs-chart-ui.common.chartAndAxisTitles','_getPasteMutationInfos','ChartMainTitleFields','defaultPluginConfig','packageName','toDisposable','snapshotUpdated$','DEFAULT_CHART_PIE_VALUES','stylizeSpec','parseInt','_removeRenderedCharts','IDocChartSnapshotRendererService','resolveChartRuntimeStyle','data','model','UniverRenderEnginePlugin','docs-chart-ui.common.setup','chartBitsUtils','tryPrepareInlineChartData','_modelService','replaceChildren','ChartParetoSeriesSection','getUnit','doc-chart.editor-dialog','delete','getDataUrl','docs-chart-ui.candlestick.high','univer-min-h-0\x20univer-flex-1\x20univer-pt-4','map','disconnect','UnknownOption','_pasteAdapterService','docs-chart-ui.section.chord','getDataSource','docs-chart-ui.common.apply','initTransformer','chart','onCommandExecuted','slice','enabled','_refreshActivePosition','labelId','_renderEntry','drawingType','ChartAxisReverseField','univer-absolute\x20univer-inset-0\x20univer-min-h-0\x20univer-min-w-0\x20univer-overflow-hidden\x20univer-rounded-lg','doc-chart-editor-panel','univer-mt-2\x20univer-text-xs\x20univer-text-red-600','lastIndexOf','pipe','ChartTypeBits','docs-chart-ui.common.series','UniverDocsChartPlugin','issue','Radar','bind','startOffset','DataStreamTreeTokenType','413562TFQHbA','_getRenderRect','ChartEditPanelSection','pieSecondaryPlotType','decorate','px\x20solid\x20','getChart','IndicatorLine','createChartInstance','ChartThemeField','getViewport','overflow','borderRadius','render','compactInlineTableValues','getActiveTextRange','angle','select','DocChartInsertPanel','INSERT_BELLOW_MENU_ID','_shouldWaitForChartConfig','string','touchDependencies','devicePixelRatio','register','doc-chart.dialog.editor','docs-chart-ui.previewRenderFailed','docs-chart-ui.common.tableDataEmpty','IRenderManagerService','seriesId','height','position','customBlockMappings','univer-flex\x20univer-flex-col\x20univer-gap-3','docs-chart-ui.common.label','_createImageShape','_docClipboardService','AreaStacked','_appendChartResources','Histogram','breakOffsets','cumulativeLineStyle','combineLatest','createIdentifier','univer-w-full\x20univer-justify-start','jsxs','docs-chart-ui.common.chartType','_requestSnapshotsForSearches','_prepareStandaloneInsertLine','value','IDocDrawingAdapterService','DOC_CHART_DATA_EDITOR_COMPONENT','relative','children','754014hfBXvx','docs-chart-ui.common.legend','getChartInlineTableMinColumns','createRenderSpec','RemoveDocChartDataSourceMutation','univer-flex\x20univer-justify-end\x20univer-gap-2','values','buildInlineChartTableDataSet','docs-chart-ui.common.data','DEFAULT_CHART_HEATMAP_VALUES','_getActiveRenderRect','dispatchEvent','transformerConfig','_forEachChartDrawing','ChartAxisLineVisibilityField','syncLayout','version','doc-chart.data-editor','getMenuHiddenObservable','forEach','status','ChartWordCloudRepeatField','univer-flex\x20univer-flex-col\x20univer-gap-2','top','config','docs-chart-ui.common.inlineData','deepClone','docs-chart-ui.common.value','_snapshotService','ChartStackField','getEditorState','plan','docs-chart-ui.common.editData','activeRuntimeModel','_hostStyle','key','Image','image','RemoveDocDrawingCommand','consumeInsertRange','ready','docs-chart-ui.chartNotFound','echarts','docs-chart-ui.section.pie','MEDIA','A\x0912','config$','getHostStyle','docs-chart-ui.section.waterfall','add$','chartType','DocChartInsertBelowMenuItemFactory','ChartStyle','LocaleService','DEFAULT_CHART_PARETO_VALUES','useObservable','docs-chart-ui.common.rightVerticalAxis','DOC_CHART_EDITOR_DIALOG_ID','Relation','_renderService','DocChartDataEditService','style','WaterfallSeries','_subscribeRender','DOC_CONTENT_INSERT_MENU_ID','primary','executeChartUpdateConfig','createRenderInput','disableMenuWhenHeaderFooterEditing','_drawingManagerService','call','ParetoBarSeries','ChartTypeSpecificStyleSection','ChartIndicatorLineColorField','ChartGridlineWidthField','position$','docs-chart-ui.section.candlestick','RemoveDocChartSnapshotMutation','parseInlineChartTable','DEFAULT_CHART_WATERFALL_STYLE_VALUES','IChartRenderModelManagerService','min(560px,\x20calc(100vh\x20-\x20180px))','docs-chart-ui.sunburst.hierarchy','filter','createChartInlineStarterData','DocChartDataEditorSubmitMode','direction$','_localeService','defaultTableText','Gauge','onClose','#4086f4','UNIVER_DOC','_univerInstanceService','_renderManagerService','docs-chart-ui.section.gauge','baseOn','onScrollAfter$','STATIC_CHART_TYPE_CATALOG','-data-source','docs-chart-ui.common.deleteChart','fill','DOCS_CHART_UI_PLUGIN_CONFIG_KEY','docs-chart-ui.active-chart','BarStacked','setActiveChartById','DocSelectionManagerService','EmptyData','get','docs-chart-ui.updateChartFailed','ChartWordCloudRoot','axis','split','ChartWordCloudShapeField','VerticalAxis','dataUrl','hide','legend','_chartThemeService','_getChartDrawing','scene','onModifyData','PARAGRAPH','MenuItemType','Style','composite','createElement','ChartEditPanel','visible','Trendline','length','tables','getUnitId','min','every','DRAWING_CHART','push','addObject','boxSizing','ICommandService','-tab','defineProperty','root','textSelection$','next','_getPositionState','univer-flex\x20univer-min-h-0\x20univer-w-[388px]\x20univer-shrink-0\x20univer-flex-col\x20univer-gap-4\x20univer-overflow-hidden\x20univer-overscroll-contain','appendChild','RightVerticalAxis','barStyle','type','_registerComponents','DocDomChartHost','getDrawingDataForUnit','ChartViewStateRegistry','doc-chart-preview','params','chartId','lineAndArea','SECTION_BREAK','orient','docs-chart-ui.section.lineAndArea','backgroundColor','wordCloud','ChartNumberFormatTextField','function','Dom','8fEpvRG','onStarting','getTextRanges','tryBuildInlineChartCreationPlan','complete','number','311625antElo','ChartSeriesLabelVisibilityField','markNotReady','parseFloat','default','BehaviorSubject','executeCommand','DocContentInsertService','getChartIdsByDataSource','object','dataSource','@univerjs-pro/docs-chart-ui','docs-chart-ui.close','DEFAULT_CHART_LINE_AND_AREA_VALUES','useRef','Funnel','_listenChartResourceMutations','refreshTransform$','_requestSnapshotsForUnit','getAncestorScale','_config','engine','_getDrawingSearch','ChartRadarStyleSection','ChartAxisFormatTextField','ChartSectionAccordionContent','docs-chart-ui.common.insertChartFailed','docs-chart-ui.section.relation','doc-chart-data-panel','Candlestick','buildChartTypeSelectOptions','_floatingToolbarAdapterService','docs-chart-ui.common.valueField','_renderModelManager','DocChartModelService','DOC_PARAGRAPH_T_INSERT_MENU_ID','univer-bg-white/90\x20dark:!univer-bg-gray-900/90\x20univer-absolute\x20univer-bottom-3\x20univer-left-3\x20univer-rounded\x20univer-px-2\x20univer-py-1\x20univer-text-xs\x20univer-text-red-600','ChartAxisTitleFields','IDialogService','useEffect','_retryActivateFocusedChart','SetDocChartSnapshotMutation','indexOf','DocChartEditorDialog','ChartLineAndAreaSection','DocChartSnapshotRenderService','match','Button','PieStyle','_activate','drawingId','getRect','DOC_ACTIVE_CHART_COMPONENT','_imageContentHidden','Document\x20chart\x20','DocChartClipboardController','DEFAULT_CHART_FUNNEL_VALUES','pluginName','univer-min-h-0\x20univer-flex-1','getDrawings','subscribeEvent','_getDrawing','Data','ChartEditorProvider','code','current','docs-chart-ui.chord.source','IDocChartUIService','drawings','DocChartInsertRibbonMenuItemFactory','_initCommands','symbol','ChartGradientFillField','_initMenus','registerAdapter','Document\x20chart\x20snapshot\x20rendering\x20requires\x20a\x20browser\x20document.','IDrawingManagerService','Axes','_componentManager','customBlocks','ChartSeriesFillFields','getObjectIncludeInGroup','applyHostStyle','useChartEditorChartType','_applyHostStyle','_staticRenderController','mountChart','doc.operation.open-doc-chart-editor-dialog','DEFAULT_CHART_WORD_CLOUD_VALUES','.below','_initAdapter','ChartAxisLabelStyleFields','dispose','ChartSnapshotQueue','DocsChartUIMenuSchema','setActiveChartRuntime','shouldComposeChartHostFrame','Select','sourceDocuments','waterfallStyle','LAYOUT','ensureChartModel','_getOrCreatePastedDataSourceId','left','DuplicateDocChartDataSourceCommand','endIndex','getDrawingEditable','doc.operation.open-doc-chart-insert-dialog','_syncChartImageVisibility','InvalidCandlestickData','pie','shared','rightY','subscribe','sharingCount','getDrawingOrder','getSelfOrHeaderFooterModel','_isDocChartDrawing','IConfigService','transparent','border','GridlinesAndTicks','getCanvasElement','_activeDomReadyDrawingKeys','renderRect','chartInvalidated$','ChartRelationStyleSection','docs-chart-ui.common.insertChart','getBody','AreaPercentStacked','secondaryPlot','univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','focus$','UniverDocsDrawingPlugin','Heatmap','ChartInlineTableEditor','UniverDocsUIPlugin','useMemo','doc-chart-setup-panel','endOffset','UpdateDocChartConfigCommand','_registerDialogOperations','ChartHostAdapter','blockRanges','chartTypeSupportsLineAndAreaStyle','series','ChartAxisLabelVisibilityField','getDataSourceSharingCount','initialRoute','transform','100%','DOC_CHART_CLIPBOARD_RESOURCE_KEY','collapsed','SHARED','_handleFocus','attachTransformerTo','univer-w-full\x20!univer-min-w-0','segmentId','find','DOC_DRAWING_PRINTING_COMPONENT_KEY','jsx','docs-chart-ui.section.indicatorLine','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1\x20univer-overflow-hidden','_updatePosition','ChartSeriesRoot','dataSources','openInsertDialog','div','markReady','setConfig','_drawingAdapterService','DocChartResourceService','ChartEditorCapability','titles','_docContentInsertService','clipBounds','targetDrawing','src','context','DependentOn','_layoutChanged$','_resolveInsertPosition','OPERATION','Optional','DRAWING_OBJECT_LAYER_INDEX','ChartStyleSection','getBoundingClientRect','_resourceService','createStaticChartRuntime','join','Sunburst','doc-chart-style-panel','HorizontalAxis','addClipboardHook','ChartLegendPositionField','B\x0918','iterator','then','_menuManagerService','_captureInsertRange','docs-chart-ui.section.gridlinesAndTicks','img','setImageContentHidden','GeneralSeries','positionObserver','ChartUIService','docs-chart-ui.chartTypes.','updateDataFromText','Subject','Column','makeDirty','docs-chart-ui.common.heatmap','DocChartDataEditor','changeSource','univer-flex\x20univer-h-0\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-overflow-hidden\x20univer-bg-white\x20dark:!univer-bg-gray-900','getDirection','some','remove$','sceneRect','constructor','insertChart','disposeWithMe','1233970WkiHew','DEFAULT_CHART_RELATION_VALUES','prototype','ChartAndAxisTitles','Plugin','print','Pareto','_docSelectionManagerService','pareto','Injector','getDrawingShapeKeyByDrawingSearch','addFloatDom','ChartHeatmapStyleSection','_canvasFloatDomService','change','Inject','OpenDocChartInsertDialogOperation','doc-chart.dialog.insert','dblclick','content-box','unsubscribe','docs-chart-ui.section.radar','ChartSectionAccordion','ChartSeriesBorderFields','docs-chart-ui.section.paretoLine','#ffffff','ChartAxisTickVisibilityField','column','tabpanel','DocChartDrawingEditController','_requestSnapshot','DOC_CHART_INSERT_PANEL_COMPONENT','ChartEditBlockTitle','textRanges','subUnitId','docs-chart-ui.common.verticalAxis','ChartSectionAccordionItem','ParetoLineSeries','rgb(','generateRandomId','_snapshotRenderService','alt','univer-text-xs\x20univer-text-red-600','BarPercentStacked','sourceDrawing','Disposable','funnel','BUTTON','ChartSubtitleFields','setClipBounds','DocChartUIService','resolveDefaultChartHostFrameStyle','startIndex','3374511JPAlss','Pie','docs-chart-ui.candlestick.columnsError','toSpec','Legend','Series','getDrawingByParam','WordCloud','ChartHostRenderMode','useState','ChartEditPanelTab','IMenuManagerService','style$','docs-chart-ui.common.trendline','getRenderUnitById','_setElementSize','doc','round','context$','charts','IUniverInstanceService','ChartCommonDataMappingSection','ChartLegendWrapField','clientHeight','UniverDocsChartUIPlugin','openEditorDialog','_renderDrawing','border-box','VIEWPORT_KEY','docs-chart-ui.common.horizontalAxis','hit','radius','DataUrlImageChartHost','chartContext','Category\x09Value','Waterfall','syncExecuteCommand','_instanceService','index','getCurrentTypeOfUnit$','ChartWaterfallSetupFields','hidden','isFinite','univer-flex\x20univer-shrink-0\x20univer-justify-end\x20univer-gap-2','registerWordCloudChart','univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-min-w-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-bg-white\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','_init','open','Tools','docs-chart-ui.common.insert','_renderCharts','docs-chart-ui.common.customize','add','docs-chart-ui.section.treemap','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','_draw','show','doc-chart.dialog.data-editor','_configService','_manageHostSize','DocumentChartBuilderAdapter','ChartEditPanelTabs','VIEW_MAIN','updateData','docTransform','setActiveDomReady','docs-chart-ui.common.duplicate','_host','dataSourceId','EMPTY_PARAGRAPH_MENU_ID','C\x099','_dialogService','invalidateChart','block','unitId','CanvasFloatDomService','resolve','merge','univer-shrink-0\x20univer-px-3','BreakLineCommand','_commandService','docs-chart-ui.floatMenu.menuTitle.chart','duplicate','segmented','univer-p-4\x20univer-text-sm\x20univer-text-gray-500','DrawingDeleteIcon','UniverInstanceType','ContextMenuGroup','417852otSzKW','getCurrentRenderModel','relation','_createChartRenderInstanceContext','_injector','contentRect','insertRange','catch','Chord','ChartSeriesPointFields','main','dataAggregation','univer-shrink-0','color','removeObject','_activeLayer','1.0.0-beta.0','size','ChartTypeSpecificSetupSection','DOC_CHART_EDITOR_DIALOG_COMPONENT','focus','route','InlineChartCreationIssueCode','DrawingTypeEnum','checkMounted','keys','doc-chart-host','resolveChartEditPanelRoute','waterfall','doc-chart.snapshot-renderer','ensureMount','resolveChartElementSelection','Observable','univer-flex\x20univer-size-full\x20univer-min-w-0\x20univer-gap-5','removeFloatDom','ChartIcon','chartTypeSupportsCapability','printChart','transformByState','DEFAULT_CHART_RADAR_VALUES','tab','width','UpdateDocChartDataSourceCommand','getOwnPropertyDescriptor','span','_getDrawingRect','section','className','ChartGridlineVisibilityField','docs-chart-ui.common.cancel','_deactivate','\x20has\x20no\x20render\x20config.','_mountNode','click','_getContentRect','Treemap','_initClipboardHooks','DEFAULT_CHART_WATERFALL_SETUP_VALUES','getRealBound','button','IDocClipboardPasteAdapterService','order','DocDrawingFloatingToolbarAdapterService','useDependency','max','univer-p-4\x20univer-text-sm\x20univer-text-gray-500\x20dark:!univer-text-gray-400'];_0x2343=function(){return _0x30392c;};return _0x2343();}function j(_0x32d55e,_0x3b817c,_0x580c0e){const _0x31f875=_0x4b37c8;return(_0x3b817c=A(_0x3b817c))in _0x32d55e?Object[_0x31f875(0x88)](_0x32d55e,_0x3b817c,{'value':_0x580c0e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x32d55e[_0x3b817c]=_0x580c0e,_0x32d55e;}var M=class extends e[_0x4b37c8(0x1b3)]{constructor(_0x3a7dd0,_0x397fce,_0x33e775,_0x10b745,_0x1ec697=!0x0){const _0x221ada=_0x4b37c8;super(),this[_0x221ada(0x98)]=_0x3a7dd0,this['_host']=_0x397fce,this[_0x221ada(0xfc)]=_0x33e775,this['_getRenderRect']=_0x10b745,this[_0x221ada(0x1f6)]=_0x1ec697,j(this,'mode',n[_0x221ada(0x1c3)][_0x221ada(0xa1)]),j(this,_0x221ada(0x247),null),j(this,_0x221ada(0x2ed),{});}['getRect'](){const _0x4f7042=_0x4b37c8;var _0x298bec;let _0xa5db69=(_0x298bec=this['_getRenderRect'])==null?void 0x0:_0x298bec['call'](this);if(_0xa5db69)return{'width':Math[_0x4f7042(0x253)](0x1,_0xa5db69[_0x4f7042(0x23c)]),'height':Math[_0x4f7042(0x253)](0x1,_0xa5db69[_0x4f7042(0x2b3)])};let _0x1714ea=this[_0x4f7042(0x1fe)]['getBoundingClientRect']();return{'width':Math[_0x4f7042(0x253)](0x1,_0x1714ea[_0x4f7042(0x23c)]),'height':Math[_0x4f7042(0x253)](0x1,_0x1714ea[_0x4f7042(0x2b3)])};}['setStyle'](_0x569f2b){const _0x2f40fb=_0x4b37c8;this[_0x2f40fb(0x2ed)]=_0x569f2b,this['_applyHostStyle'](this[_0x2f40fb(0x1fe)],_0x569f2b);}async[_0x4b37c8(0x231)](){const _0x10b0e2=_0x4b37c8;if(!this[_0x10b0e2(0x247)]){let _0x3970c5=document[_0x10b0e2(0x349)](_0x10b0e2(0x14f));_0x3970c5[_0x10b0e2(0x308)][_0x10b0e2(0x2b4)]=_0x10b0e2(0x2c9),_0x3970c5['style']['border']='0',_0x3970c5[_0x10b0e2(0x308)][_0x10b0e2(0x355)]=_0x10b0e2(0x199),_0x3970c5['style'][_0x10b0e2(0x2a0)]=_0x10b0e2(0x1e4),_0x3970c5[_0x10b0e2(0x242)]=_0x10b0e2(0x22d),this['_mountNode']=_0x3970c5,this[_0x10b0e2(0x1fe)][_0x10b0e2(0x8e)](_0x3970c5);}return this['syncLayout'](),this['_mountNode'];}[_0x4b37c8(0x22b)](){const _0x18449e=_0x4b37c8;return!!(this[_0x18449e(0x247)]&&this[_0x18449e(0x1fe)]['contains'](this['_mountNode']));}[_0x4b37c8(0x2da)](){const _0x3dab1f=_0x4b37c8;let _0x2c29a1=this[_0x3dab1f(0xdb)]();this['_manageHostSize']&&this['_setElementSize'](this[_0x3dab1f(0x1fe)],_0x2c29a1),this[_0x3dab1f(0x247)]&&this[_0x3dab1f(0x1ca)](this[_0x3dab1f(0x247)],this[_0x3dab1f(0x249)](_0x2c29a1));}[_0x4b37c8(0x150)](){}[_0x4b37c8(0xaa)](){}[_0x4b37c8(0x104)](){const _0x1d204e=_0x4b37c8;var _0x5187ba;(_0x5187ba=this[_0x1d204e(0x247)])==null||_0x5187ba['remove'](),this[_0x1d204e(0x247)]=null,super[_0x1d204e(0x104)]();}[_0x4b37c8(0x1ca)](_0x4ac1c2,_0x5e5d71){const _0x309630=_0x4b37c8;_0x4ac1c2[_0x309630(0x308)]['width']=_0x5e5d71[_0x309630(0x23c)]+'px',_0x4ac1c2['style'][_0x309630(0x2b3)]=_0x5e5d71['height']+'px';}[_0x4b37c8(0x249)](_0x5a822f){const _0x10d63e=_0x4b37c8;if(!(0x0,n[_0x10d63e(0x108)])(this[_0x10d63e(0x2ed)]))return _0x5a822f;let _0x4e36e1=(0x0,n['getChartHostFrameContentRect'])(_0x5a822f,this[_0x10d63e(0x2ed)]);return{'width':_0x4e36e1[_0x10d63e(0x23c)],'height':_0x4e36e1[_0x10d63e(0x2b3)]};}};function N(_0x90d904){const _0x3351cb=_0x4b37c8;var _0x190454;let _0x561681=(_0x190454=_0x90d904[_0x3351cb(0xd6)](/^#([\da-f]{3}|[\da-f]{6})$/i))==null?void 0x0:_0x190454[0x1];if(_0x561681){let _0x43be30=_0x561681['length']===0x3?_0x561681[_0x3351cb(0x33b)]('')[_0x3351cb(0x277)](_0x2160a4=>''+_0x2160a4+_0x2160a4)[_0x3351cb(0x165)](''):_0x561681;return _0x3351cb(0x1ac)+Number[_0x3351cb(0x264)](_0x43be30['slice'](0x0,0x2),0x10)+',\x20'+Number[_0x3351cb(0x264)](_0x43be30[_0x3351cb(0x281)](0x2,0x4),0x10)+',\x20'+Number[_0x3351cb(0x264)](_0x43be30[_0x3351cb(0x281)](0x4,0x6),0x10)+')';}let _0x109d65=document['createElement'](_0x3351cb(0x23f));return _0x109d65[_0x3351cb(0x308)][_0x3351cb(0x220)]=_0x90d904,_0x109d65[_0x3351cb(0x308)][_0x3351cb(0x220)]||_0x90d904;}let P=class extends e[_0x4b37c8(0x1b3)]{constructor(_0x7c0872,_0x26b25b,_0x377fc0){const _0x390d4b=_0x4b37c8;super(),this['_localeService']=_0x7c0872,this[_0x390d4b(0x341)]=_0x26b25b,this[_0x390d4b(0xc9)]=_0x377fc0;}[_0x4b37c8(0x29d)](_0x51a6cc){const _0x133681=_0x4b37c8;return _0x51a6cc?this[_0x133681(0xc9)][_0x133681(0x29d)](_0x51a6cc,this[_0x133681(0x216)]()):this[_0x133681(0xc9)]['createChartInstance']();}[_0x4b37c8(0x30e)](_0x12e666){const _0x46918c=_0x4b37c8;let _0xa55791=_0x12e666[_0x46918c(0x269)][_0x46918c(0x2e3)];if(!_0xa55791)throw Error(_0x46918c(0xde)+_0x12e666[_0x46918c(0x98)]+_0x46918c(0x246));let _0x5e781b=this[_0x46918c(0x322)][_0x46918c(0x17f)]();return{'chartConfig':_0xa55791,'chartStyle':(0x0,n[_0x46918c(0x267)])({..._0x12e666['model'][_0x46918c(0x308)],'runtime':_0x12e666['model']['getRuntimeContext'](_0x5e781b),'direction':_0x5e781b},_0xa55791['type'])};}[_0x4b37c8(0x2ce)](_0x28e9c1,_0xe32dbb,_0x76d409){const _0x245154=_0x4b37c8;let {chartConfig:_0x4cf1d0,chartStyle:_0x32ea2e}=this[_0x245154(0x30e)](_0x28e9c1),_0x1078ee=this[_0x245154(0xc9)][_0x245154(0x214)]();return{'spec':_0x1078ee[_0x245154(0x263)](_0x1078ee[_0x245154(0x1be)](_0x4cf1d0,_0x32ea2e),{'chartConfig':_0x4cf1d0,'chartStyle':_0x32ea2e,'chartInstance':_0x76d409},_0xe32dbb),'chartConfig':_0x4cf1d0,'chartStyle':_0x32ea2e,'hostStyle':this[_0x245154(0x2fa)](_0x32ea2e)};}['getHostStyle'](_0x4987f8){const _0x4f68ec=_0x4b37c8;return(0x0,n[_0x4f68ec(0x1b9)])({'style':_0x4987f8,'getRenderColor':_0x52dea9=>this[_0x4f68ec(0x341)]['getRenderColor'](_0x52dea9)});}[_0x4b37c8(0xfa)](_0x932da9,_0x4e9a46){const _0x2fa170=_0x4b37c8;var _0x1946ad;let _0x2f3d03=(_0x1946ad=_0x4e9a46[_0x2fa170(0x120)])!=null&&_0x1946ad[_0x2fa170(0x220)]&&_0x4e9a46[_0x2fa170(0x120)][_0x2fa170(0x23c)]?_0x4e9a46[_0x2fa170(0x120)][_0x2fa170(0x23c)]+_0x2fa170(0x29a)+N(_0x4e9a46[_0x2fa170(0x120)]['color']):'';_0x932da9['style'][_0x2fa170(0x120)]=_0x2f3d03,_0x932da9['style'][_0x2fa170(0x9d)]=_0x4e9a46[_0x2fa170(0x330)]?N(_0x4e9a46[_0x2fa170(0x330)]):_0x2fa170(0x11f),_0x932da9[_0x2fa170(0x308)][_0x2fa170(0x2a1)]=_0x4e9a46[_0x2fa170(0x1da)]?_0x4e9a46['radius']+'px':'',_0x932da9[_0x2fa170(0x308)]['overflow']='hidden',_0x932da9['style'][_0x2fa170(0x355)]=_0x2fa170(0x1d6);}[_0x4b37c8(0x216)](){const _0x3895a0=_0x4b37c8;return{'resolveHostStyle':({style:_0x2c4f9d})=>this[_0x3895a0(0x2fa)](_0x2c4f9d),'resolveRenderBackgroundColor':({hostStyle:_0x3bd079})=>_0x3bd079[_0x3895a0(0x330)],'prepareSpec':({mode:_0x1dd660,spec:_0x199e57})=>_0x1dd660===_0x3895a0(0x2f0)?{..._0x199e57,'animation':!0x1,'tooltip':{'show':!0x1}}:_0x199e57};}[_0x4b37c8(0x104)](){const _0x89cfaa=_0x4b37c8;super[_0x89cfaa(0x104)]();}};P=S([x(0x0,(0x0,e[_0x4b37c8(0x195)])(e[_0x4b37c8(0x300)])),x(0x1,(0x0,e['Inject'])(n['ChartThemeService'])),x(0x2,n[_0x4b37c8(0x31b)])],P);function ce(_0x18a0f1,_0xed4fca,_0x250ef4,_0x450207,_0x15a1b3,_0x1facbf,_0x1ecba5){const _0x5994de=_0x4b37c8;let {model:_0x23f058,source:_0x343dd4}=(0x0,n[_0x5994de(0x164)])({'id':_0x18a0f1,'chartType':_0x250ef4,'dataSet':(0x0,n[_0x5994de(0x2d2)])((0x0,t['compactInlineTableValues'])(_0xed4fca)),'isRowDirection':(_0x450207==null?void 0x0:_0x450207[_0x5994de(0x9b)])!==_0x5994de(0x1a1),'context':_0x450207==null?void 0x0:_0x450207['chartContext'],'dataAggregation':_0x15a1b3,'style':_0x1facbf,'injector':_0x1ecba5});return{'unitId':_0x5994de(0x96),'chartId':_0x18a0f1,'dataSourceId':_0x18a0f1+_0x5994de(0x32e),'model':_0x23f058,'source':_0x343dd4};}function le(_0xec25dc){const _0x2156df=_0x4b37c8;let _0x5036d8=(0x0,i[_0x2156df(0x252)])(e[_0x2156df(0x300)]),_0x371065=(0x0,i['useDependency'])(e[_0x2156df(0x18f)]),_0x688107=(0x0,i[_0x2156df(0x252)])(P),_0x194276=(0x0,a[_0x2156df(0xb6)])(null),_0x21a91a=(0x0,a[_0x2156df(0xb6)])(null),_0x245a41=(0x0,a[_0x2156df(0xb6)])('doc-chart-preview-'+(0x0,e[_0x2156df(0x1ad)])(0x8)),[_0x27689f,_0x128c11]=(0x0,a[_0x2156df(0x1c4)])(null);return(0x0,a[_0x2156df(0xcf)])(()=>{const _0x72233d=_0x2156df;let _0x4c40b4=_0x194276[_0x72233d(0xe9)];if(!_0x4c40b4)return;_0x128c11(null),_0x4c40b4['replaceChildren'](),_0x21a91a[_0x72233d(0xe9)]=F(_0x4c40b4);let _0xdcbd8c=!0x1,_0x1f78ee=_0xaa4c8=>{_0xdcbd8c||_0x128c11(_0xaa4c8);},_0x3011ab=null,_0x165a73=null,_0x444e71=null;try{_0x3011ab=ce(_0x245a41[_0x72233d(0xe9)],_0xec25dc[_0x72233d(0x2d1)],_0xec25dc[_0x72233d(0x2fd)],_0xec25dc['context'],_0xec25dc['dataAggregation'],_0xec25dc['style'],_0x371065),_0x165a73=new M(_0x3011ab[_0x72233d(0x98)],_0x4c40b4,(_0x30141c,_0x55f94c)=>_0x688107[_0x72233d(0xfa)](_0x30141c,_0x55f94c),()=>_0x21a91a[_0x72233d(0xe9)]??F(_0x4c40b4),!0x1),_0x444e71=_0x688107[_0x72233d(0x29d)](n[_0x72233d(0x1c3)][_0x72233d(0xa1)]),_0x444e71['bind'](_0x165a73);}catch(_0x318f11){return _0x1f78ee(_0x318f11),()=>{const _0xe78bde=_0x72233d;_0xdcbd8c=!0x0,_0x4c40b4[_0xe78bde(0x26f)]();};}if(!_0x3011ab||!_0x165a73||!_0x444e71)return()=>{_0xdcbd8c=!0x0,_0x4c40b4['replaceChildren']();};let _0x21fa22=_0x3011ab,_0x5d0512=_0x165a73,_0x390504=_0x444e71,_0x410bda=()=>{const _0xab12dd=_0x72233d;let _0x5854a6,_0x65980c;try{({chartConfig:_0x5854a6,chartStyle:_0x65980c}=_0x688107[_0xab12dd(0x30e)](_0x21fa22));}catch(_0x5510b1){_0x1f78ee(_0x5510b1);return;}_0x390504['render']({'chartId':_0x21fa22[_0xab12dd(0x98)],'config':_0x5854a6,'style':_0x65980c})[_0xab12dd(0x16d)](()=>{_0xdcbd8c||_0x128c11(null);})[_0xab12dd(0x21a)](_0x1f78ee);},_0x536e32=_0x21fa22[_0x72233d(0x269)][_0x72233d(0x2f9)][_0x72233d(0x119)](_0x631bc6=>{_0x631bc6&&_0x410bda();}),_0x21e502=typeof ResizeObserver>'u'?null:new ResizeObserver(_0x5e5124=>{const _0x42ca1f=_0x72233d;var _0x36c8a7;let _0x30727e=(_0x36c8a7=_0x5e5124[0x0])==null?void 0x0:_0x36c8a7[_0x42ca1f(0x218)];_0x21a91a[_0x42ca1f(0xe9)]=_0x30727e&&_0x30727e[_0x42ca1f(0x23c)]>0x0&&_0x30727e[_0x42ca1f(0x2b3)]>0x0?{'width':_0x30727e[_0x42ca1f(0x23c)],'height':_0x30727e[_0x42ca1f(0x2b3)]}:F(_0x4c40b4),_0x410bda();});return _0x21e502==null||_0x21e502['observe'](_0x4c40b4),()=>{const _0x20fdfb=_0x72233d;_0xdcbd8c=!0x0,_0x536e32[_0x20fdfb(0x19a)](),_0x21e502==null||_0x21e502[_0x20fdfb(0x278)](),_0x390504[_0x20fdfb(0x104)](),_0x5d0512[_0x20fdfb(0x104)](),_0x21fa22[_0x20fdfb(0x269)][_0x20fdfb(0x104)](),_0x21fa22['source'][_0x20fdfb(0x104)](),_0x4c40b4[_0x20fdfb(0x26f)]();};},[_0x371065,_0xec25dc[_0x2156df(0x2fd)],_0xec25dc[_0x2156df(0x15a)],_0xec25dc[_0x2156df(0x21e)],_0xec25dc[_0x2156df(0x308)],_0xec25dc['values'],_0x688107]),(0x0,o[_0x2156df(0x2c2)])('div',{'className':_0x2156df(0x1e8),'children':[(0x0,o[_0x2156df(0x148)])(_0x2156df(0x14f),{'ref':_0x194276,'className':_0x2156df(0x288)}),_0x27689f!=null&&(0x0,o[_0x2156df(0x148)])('div',{'className':_0x2156df(0xcc),'children':_0x5036d8['t'](_0x2156df(0x2af))})]});}function F(_0x52b824){const _0x37469f=_0x4b37c8;let _0x295aa5=_0x52b824[_0x37469f(0x162)]();return _0x295aa5['width']<=0x0||_0x295aa5[_0x37469f(0x2b3)]<=0x0?null:{'width':_0x295aa5[_0x37469f(0x23c)],'height':_0x295aa5[_0x37469f(0x2b3)]};}const ue=_0x4b37c8(0x272),de=_0x4b37c8(0x2ae);function fe(_0x293449){const _0x1f43e7=_0x4b37c8;var _0x1d42d7;let {unitId:_0xc7e4a6,chartId:_0x1034d5,drawingId:_0x1931ea}=_0x293449,_0x421959=(0x0,i[_0x1f43e7(0x252)])(e[_0x1f43e7(0x300)]),_0x52aa8b=(0x0,i[_0x1f43e7(0x252)])(e[_0x1f43e7(0x18f)]),_0x23fa62=(0x0,i['useDependency'])(e[_0x1f43e7(0x1cf)]),_0x5c8dd2=(0x0,i[_0x1f43e7(0x252)])(s[_0x1f43e7(0x153)]),_0x555312=(0x0,i[_0x1f43e7(0x252)])(s[_0x1f43e7(0xca)]),_0x1a174f=(0x0,i['useDependency'])(C),_0x13ab31=(0x0,i[_0x1f43e7(0x252)])(w),_0x446407=(0x0,a[_0x1f43e7(0x131)])(()=>_0x1a174f[_0x1f43e7(0x2e9)](_0xc7e4a6,_0x1034d5),[_0x1034d5,_0x1a174f,_0xc7e4a6]),_0x478580=_0x5c8dd2[_0x1f43e7(0x29b)](_0xc7e4a6,_0x1034d5),_0x227f59=(0x0,a[_0x1f43e7(0x131)])(()=>_0x555312==null?void 0x0:_0x555312[_0x1f43e7(0x10d)](_0xc7e4a6,_0x1034d5),[_0x1034d5,_0x555312,_0xc7e4a6]),_0x36b26b=(0x0,i['useObservable'])(_0x227f59==null?void 0x0:_0x227f59[_0x1f43e7(0x269)]['chartType$'],(_0x227f59==null?void 0x0:_0x227f59[_0x1f43e7(0x269)][_0x1f43e7(0x2fd)])??(_0x478580==null?void 0x0:_0x478580[_0x1f43e7(0x2fd)])),_0x5ea3e2=(0x0,i['useObservable'])(_0x227f59==null?void 0x0:_0x227f59[_0x1f43e7(0x269)][_0x1f43e7(0x1cd)],(_0x227f59==null?void 0x0:_0x227f59[_0x1f43e7(0x269)]['context'])??(_0x478580==null||(_0x1d42d7=_0x478580['context'])==null?void 0x0:_0x1d42d7[_0x1f43e7(0x1dc)])),_0x243a10=(0x0,i[_0x1f43e7(0x302)])(_0x227f59==null?void 0x0:_0x227f59['model']['dataAggregation$'],(_0x227f59==null?void 0x0:_0x227f59['model'][_0x1f43e7(0x21e)])??(_0x478580==null?void 0x0:_0x478580[_0x1f43e7(0x21e)])),_0x1eb753=(0x0,i[_0x1f43e7(0x302)])(_0x227f59==null?void 0x0:_0x227f59[_0x1f43e7(0x269)][_0x1f43e7(0x1c7)],(_0x227f59==null?void 0x0:_0x227f59['model'][_0x1f43e7(0x308)])??(_0x478580==null?void 0x0:_0x478580['style'])),_0x2af4d8=(0x0,a['useMemo'])(()=>({..._0x478580==null?void 0x0:_0x478580[_0x1f43e7(0x15a)],'chartContext':_0x5ea3e2}),[_0x478580==null?void 0x0:_0x478580[_0x1f43e7(0x15a)],_0x5ea3e2]),[_0x3d4086,_0x46c992]=(0x0,a[_0x1f43e7(0x1c4)])(_0x446407),[_0x3e13a9,_0x57a4ba]=(0x0,a[_0x1f43e7(0x1c4)])(()=>(_0x446407==null?void 0x0:_0x446407[_0x1f43e7(0x2d1)][_0x1f43e7(0x277)](_0x2934b3=>[..._0x2934b3]))??[]),[_0x5d65ac,_0x55be43]=(0x0,a[_0x1f43e7(0x1c4)])(()=>(_0x446407==null?void 0x0:_0x446407['values'][_0x1f43e7(0x277)](_0x1a0e0e=>[..._0x1a0e0e]))??[]),[_0x453ea6,_0x414891]=(0x0,a[_0x1f43e7(0x1c4)])(()=>_0x478580==null?void 0x0:_0x478580[_0x1f43e7(0x2fd)]),[_0x4c5ccd,_0x2fc578]=(0x0,a[_0x1f43e7(0x1c4)])(()=>{const _0x59690a=_0x1f43e7;var _0x186225;return((_0x186225=_0x293449[_0x59690a(0x228)])==null?void 0x0:_0x186225[_0x59690a(0x23b)])===t[_0x59690a(0x1c5)][_0x59690a(0xe6)]?_0x59690a(0x268):_0x59690a(0x27f);}),[_0x50a041,_0x3e63e8]=(0x0,a[_0x1f43e7(0x1c4)])(null),_0x238aed=(0x0,a[_0x1f43e7(0x131)])(()=>{const _0x256236=_0x1f43e7;var _0x1c097f;let _0x2726f0=_0x23fa62[_0x256236(0x271)](_0xc7e4a6,e[_0x256236(0x211)][_0x256236(0x327)]);if(!_0x227f59||!_0x2726f0)return null;let _0x36e312=_0x1931ea??((_0x1c097f=Object['values'](_0x2726f0[_0x256236(0xe3)]()??{})[_0x256236(0x146)](_0x1e815f=>_0x1e815f[_0x256236(0x98)]===_0x1034d5))==null?void 0x0:_0x1c097f[_0x256236(0xda)]);return _0x36e312?new t[(_0x256236(0x136))](_0x227f59[_0x256236(0x269)],new s[(_0x256236(0x1f7))]({'unitId':_0xc7e4a6,'chartId':_0x1034d5,'drawingId':_0x36e312,'documentDataModel':_0x2726f0,'injector':_0x52aa8b})):null;},[_0x1034d5,_0x1931ea,_0x52aa8b,_0x227f59,_0xc7e4a6,_0x23fa62]);return!_0x3d4086||!_0x478580?(0x0,o[_0x1f43e7(0x148)])(_0x1f43e7(0x14f),{'className':_0x1f43e7(0x254),'children':_0x421959['t'](_0x1f43e7(0x2f4))}):(0x0,o[_0x1f43e7(0x2c2)])(_0x1f43e7(0x14f),{'className':'univer-flex\x20univer-w-full\x20univer-min-w-0\x20univer-flex-col\x20univer-overflow-hidden\x20univer-overscroll-contain','style':{'height':_0x1f43e7(0x31c)},'children':[(0x0,o[_0x1f43e7(0x148)])(t[_0x1f43e7(0x1f8)],{'ariaLabel':_0x421959['t']('docs-chart-ui.common.editChart'),'className':_0x1f43e7(0x21f),'value':_0x4c5ccd,'items':[{'label':_0x421959['t'](_0x1f43e7(0x20c)),'panelId':pe,'value':_0x1f43e7(0x27f)},{'label':_0x421959['t'](_0x1f43e7(0x2d3)),'panelId':I,'value':_0x1f43e7(0x268)}],'variant':_0x1f43e7(0x20e),'onChange':_0x2fc578}),(0x0,o['jsxs'])(_0x1f43e7(0x14f),{'id':_0x4c5ccd===_0x1f43e7(0x268)?I:pe,'aria-labelledby':(_0x4c5ccd===_0x1f43e7(0x268)?I:pe)+_0x1f43e7(0x87),'className':_0x1f43e7(0x276),'role':_0x1f43e7(0x1a2),'children':[_0x4c5ccd===_0x1f43e7(0x268)?(0x0,o[_0x1f43e7(0x148)])(b,{'values':_0x3e13a9,'sharingCount':_0x3d4086[_0x1f43e7(0x11a)],'onCancel':()=>_0x2fc578('chart'),'onSubmit':(_0x6d1a47,_0x4d045c)=>{const _0x2e59b8=_0x1f43e7;if(!_0x1a174f[_0x2e59b8(0x1fa)](_0xc7e4a6,_0x1034d5,_0x6d1a47,_0x4d045c)){_0x3e63e8(_0x421959['t'](_0x2e59b8(0x338)));return;}_0x3e63e8(null);let _0x4e1d60=_0x1a174f['getEditorState'](_0xc7e4a6,_0x1034d5);_0x46c992(_0x4e1d60??_0x3d4086),_0x57a4ba((_0x4e1d60==null?void 0x0:_0x4e1d60['values'])??_0x6d1a47),_0x55be43((_0x4e1d60==null?void 0x0:_0x4e1d60[_0x2e59b8(0x2d1)])??_0x6d1a47),_0x2fc578('chart');}}):(0x0,o[_0x1f43e7(0x2c2)])(_0x1f43e7(0x14f),{'className':_0x1f43e7(0x234),'children':[(0x0,o[_0x1f43e7(0x148)])(_0x1f43e7(0x14f),{'className':_0x1f43e7(0x14a),'children':(0x0,o['jsx'])(le,{'values':_0x5d65ac,'chartType':_0x36b26b??_0x453ea6??_0x478580[_0x1f43e7(0x2fd)],'context':_0x2af4d8,'dataAggregation':_0x243a10,'style':_0x1eb753})}),(0x0,o[_0x1f43e7(0x2c2)])('div',{'className':_0x1f43e7(0x8d),'children':[(0x0,o[_0x1f43e7(0x148)])(_0x1f43e7(0x14f),{'className':_0x1f43e7(0xe2),'children':_0x238aed?(0x0,o[_0x1f43e7(0x148)])(t[_0x1f43e7(0xe7)],{'chartUIService':_0x13ab31,'hostAdapter':_0x238aed,'children':(0x0,o['jsx'])(ie,{'initialRoute':_0x293449[_0x1f43e7(0x228)],'onClose':_0x293449['onClose'],'onPreviewChartTypeChange':_0x414891,'onModifyData':()=>_0x2fc578('data')})}):(0x0,o['jsx'])(_0x1f43e7(0x14f),{'className':_0x1f43e7(0x20f),'children':_0x421959['t']('docs-chart-ui.chartNotFound')})}),_0x50a041&&(0x0,o[_0x1f43e7(0x148)])(_0x1f43e7(0x14f),{'className':_0x1f43e7(0x1b0),'children':_0x50a041})]})]}),_0x4c5ccd===_0x1f43e7(0x268)&&_0x50a041&&(0x0,o[_0x1f43e7(0x148)])('div',{'className':_0x1f43e7(0x28a),'children':_0x50a041})]})]});}const pe=_0x4b37c8(0x289),I=_0x4b37c8(0xc4);function L(_0x5c317f,_0x359e8b){const _0x380637=_0x4b37c8;var _0x5d8754;if(!(_0x359e8b!=null&&_0x359e8b[_0x380637(0x140)])||_0x359e8b[_0x380637(0x293)]==null)return null;let _0x588990=_0x359e8b['segmentId']??'';if(_0x588990!=='')return null;let _0x16fe57=(_0x5d8754=_0x5c317f[_0x380637(0x11c)](_0x588990))==null?void 0x0:_0x5d8754[_0x380637(0x128)]();if(!_0x16fe57)return null;let _0x16949b=me(_0x16fe57,_0x359e8b[_0x380637(0x293)]);if(!he(_0x16fe57,_0x16949b))return null;let _0x380d6c=_e(_0x16fe57,_0x16949b);return _0x380d6c?{'unitId':_0x5c317f[_0x380637(0x34f)](),'index':_0x380d6c['index'],'segmentId':_0x588990,'breakOffsets':_0x380d6c[_0x380637(0x2bd)]}:null;}function me(_0x44f84b,_0x1448b1){const _0x3bf91c=_0x4b37c8;return _0x1448b1===0x0&&_0x44f84b['dataStream'][0x0]===e[_0x3bf91c(0x294)][_0x3bf91c(0x345)]?0x1:_0x1448b1;}function he(_0x34089a,_0x6b0220){const _0x3faab6=_0x4b37c8;return!(be(_0x34089a[_0x3faab6(0x34e)],_0x6b0220)||xe(_0x34089a[_0x3faab6(0x137)],_0x6b0220)||Se(_0x34089a[_0x3faab6(0xf7)],_0x6b0220));}function ge(_0x4f36f4,_0x55ff16){const _0x41edcd=_0x4b37c8;let {dataStream:_0x37c074}=_0x4f36f4;if(!_0x37c074||_0x55ff16<0x0||_0x55ff16>=_0x37c074['length'])return!0x1;let _0x72305b=ve(_0x37c074,_0x55ff16)+0x1,_0x33d542=ye(_0x37c074,_0x55ff16);return _0x72305b<=_0x33d542&&_0x37c074[_0x41edcd(0x281)](_0x72305b,_0x33d542)[_0x41edcd(0x34d)]===0x0;}function _e(_0x262af8,_0x30e156){const _0xc1419d=_0x4b37c8;let {dataStream:_0x4791f4}=_0x262af8;if(!_0x4791f4||_0x30e156<0x0||_0x30e156>=_0x4791f4[_0xc1419d(0x34d)])return null;if(ge(_0x262af8,_0x30e156))return{'index':_0x30e156,'breakOffsets':[]};let _0x4750cd=ve(_0x4791f4,_0x30e156)+0x1,_0x44e406=ye(_0x4791f4,_0x30e156);return _0x30e156<=_0x4750cd?{'index':_0x30e156,'breakOffsets':[_0x30e156]}:_0x30e156>=_0x44e406?{'index':_0x30e156+0x1,'breakOffsets':[_0x30e156]}:{'index':_0x30e156+0x1,'breakOffsets':[_0x30e156,_0x30e156+0x1]};}function ve(_0x27b588,_0x2f50f5){const _0x59bd45=_0x4b37c8;let _0x1b17c3=Math[_0x59bd45(0x253)](0x0,Math[_0x59bd45(0x350)](_0x2f50f5-0x1,_0x27b588[_0x59bd45(0x34d)]-0x1));return Math[_0x59bd45(0x253)](_0x27b588[_0x59bd45(0x28b)](e[_0x59bd45(0x294)][_0x59bd45(0x345)],_0x1b17c3),_0x27b588[_0x59bd45(0x28b)](e[_0x59bd45(0x294)][_0x59bd45(0x9a)],_0x1b17c3));}function ye(_0xb8cc58,_0x24f7ab){const _0x2c2b29=_0x4b37c8;let _0xb9ed42=Math[_0x2c2b29(0x253)](0x0,Math[_0x2c2b29(0x350)](_0x24f7ab,_0xb8cc58[_0x2c2b29(0x34d)]-0x1)),_0x5bf591=_0xb8cc58['indexOf'](e[_0x2c2b29(0x294)][_0x2c2b29(0x345)],_0xb9ed42),_0x202d4b=_0xb8cc58[_0x2c2b29(0xd2)](e[_0x2c2b29(0x294)][_0x2c2b29(0x9a)],_0xb9ed42);return _0x5bf591===-0x1&&_0x202d4b===-0x1?_0xb8cc58[_0x2c2b29(0x34d)]:_0x5bf591===-0x1?_0x202d4b:_0x202d4b===-0x1?_0x5bf591:Math[_0x2c2b29(0x350)](_0x5bf591,_0x202d4b);}function be(_0x51985c,_0x2fb7d6){const _0x441d5f=_0x4b37c8;return!!(_0x51985c!=null&&_0x51985c[_0x441d5f(0x180)](_0x34df99=>_0x34df99[_0x441d5f(0x1ba)]<=_0x2fb7d6&&_0x2fb7d6<_0x34df99[_0x441d5f(0x111)]));}function xe(_0x2deea4,_0x4305f4){const _0x22a4d9=_0x4b37c8;return!!(_0x2deea4!=null&&_0x2deea4[_0x22a4d9(0x180)](_0x30126c=>_0x30126c['startIndex']<=_0x4305f4&&_0x4305f4<=_0x30126c[_0x22a4d9(0x111)]));}function Se(_0x446957,_0x1dab25){return!!(_0x446957!=null&&_0x446957['some'](_0x46ec2d=>_0x46ec2d['startIndex']===_0x1dab25));}let R=class{constructor(_0x5a1447,_0x456c3f,_0x212b8e,_0x247ea4){const _0x3e597c=_0x4b37c8;this[_0x3e597c(0x1e0)]=_0x5a1447,this[_0x3e597c(0x20b)]=_0x456c3f,this[_0x3e597c(0x18d)]=_0x212b8e,this['_docContentInsertService']=_0x247ea4;}['insertChartFromText'](_0x2d2513,_0x56c766,_0x28459c){const _0x2de876=_0x4b37c8;let _0x2668ed=(0x0,n[_0x2de876(0x319)])(_0x2d2513);return _0x2668ed[_0x2de876(0x34d)]!==0x0&&this['insertChart'](_0x2668ed,_0x56c766,_0x28459c);}[_0x4b37c8(0x184)](_0x41c193,_0xc8ca58,_0x4f021e={}){const _0x243ae8=_0x4b37c8;if(_0x41c193[_0x243ae8(0x34d)]===0x0)return!0x1;let _0x299e8f=(0x0,t[_0x243ae8(0x26d)])(_0xc8ca58,_0x41c193);if(!_0x299e8f['ok'])return!0x1;let _0x253ac9=this['_instanceService']['getCurrentUnitOfType'](e[_0x243ae8(0x211)][_0x243ae8(0x327)]);if(!_0x253ac9)return!0x1;let _0x1933d3=this[_0x243ae8(0x15d)](_0x253ac9,_0x4f021e[_0x243ae8(0x219)]);if(!_0x1933d3||!this[_0x243ae8(0x2c5)](_0x1933d3[_0x243ae8(0x2bd)],_0x1933d3[_0x243ae8(0x145)]))return!0x1;let _0xfa5d02=_0x1933d3[_0x243ae8(0x205)],_0xf5f260={'chartType':_0xc8ca58};_0x4f021e[_0x243ae8(0x15a)]&&(_0xf5f260[_0x243ae8(0x15a)]=_0x4f021e[_0x243ae8(0x15a)]),_0x4f021e[_0x243ae8(0x21e)]&&(_0xf5f260[_0x243ae8(0x21e)]=_0x4f021e['dataAggregation']),_0x4f021e[_0x243ae8(0x308)]&&(_0xf5f260[_0x243ae8(0x308)]=_0x4f021e[_0x243ae8(0x308)]);let _0x378501=this['_commandService'][_0x243ae8(0x1df)](s['InsertDocChartCommand']['id'],{'unitId':_0xfa5d02,'index':_0x1933d3[_0x243ae8(0x1e1)],'segmentId':_0x1933d3[_0x243ae8(0x145)],'chart':_0xf5f260,'dataSource':{'values':_0x299e8f['values']},'width':_0x4f021e[_0x243ae8(0x23c)],'height':_0x4f021e[_0x243ae8(0x2b3)],'focus':_0x4f021e[_0x243ae8(0x227)]});return _0x378501?{..._0x378501,'unitId':_0xfa5d02}:!0x1;}[_0x4b37c8(0x15d)](_0x1d8e2a,_0x1fea3c){const _0x23a721=_0x4b37c8;if(_0x1fea3c)return L(_0x1d8e2a,_0x1fea3c);let _0x432d50=_0x1d8e2a[_0x23a721(0x34f)](),_0x53f326=null;try{_0x53f326=this[_0x23a721(0x156)][_0x23a721(0x2f2)](_0x432d50);}catch{_0x53f326=null;}return _0x53f326?L(_0x1d8e2a,{'startOffset':_0x53f326[_0x23a721(0x293)],'endOffset':_0x53f326['endOffset'],'collapsed':_0x53f326['startOffset']===_0x53f326[_0x23a721(0x133)],'segmentId':_0x53f326['segmentId']??''}):L(_0x1d8e2a,Ce(this[_0x23a721(0x18d)]['getActiveTextRange']()));}['_prepareStandaloneInsertLine'](_0x2380fe,_0x4279f8){const _0x27acec=_0x4b37c8;for(let _0x4891f7 of _0x2380fe)if(!this[_0x27acec(0x20b)]['syncExecuteCommand'](l[_0x27acec(0x20a)]['id'],{'textRange':{'startOffset':_0x4891f7,'endOffset':_0x4891f7,'collapsed':!0x0,'segmentId':_0x4279f8}}))return!0x1;return!0x0;}};R=S([x(0x0,e['IUniverInstanceService']),x(0x1,e[_0x4b37c8(0x356)]),x(0x2,(0x0,e[_0x4b37c8(0x195)])(c[_0x4b37c8(0x335)])),x(0x3,(0x0,e[_0x4b37c8(0x195)])(c[_0x4b37c8(0xaf)]))],R);function Ce(_0x50b338){const _0x4340d3=_0x4b37c8;return!_0x50b338||typeof _0x50b338!=_0x4340d3(0xb1)?null:_0x50b338;}const z='doc-chart.insert-panel',we=[_0x4b37c8(0x1dd),_0x4b37c8(0x2f8),_0x4b37c8(0x16b),_0x4b37c8(0x201)]['join']('\x0a');function Te(_0xecd1fb){const _0x255d5f=_0x4b37c8;let _0x3fe420=(0x0,i['useDependency'])(R),_0x2612e7=(0x0,i['useDependency'])(e['LocaleService']),{defaultChartType:_0x38dbc2=n['ChartTypeBits'][_0x255d5f(0x179)],defaultTableText:_0x25afd2=we,insertOptions:_0x3b9083,onCancel:_0x3b15c6,onInserted:_0x1913e8}=_0xecd1fb,_0x21a03e=(0x0,a['useMemo'])(()=>(0x0,t[_0x255d5f(0xc6)])(t[_0x255d5f(0x32d)][_0x255d5f(0x277)](_0x1bf53b=>({..._0x1bf53b,'label':_0x2612e7['t'](_0x255d5f(0x176)+_0x1bf53b[_0x255d5f(0x284)])}))),[_0x2612e7]),[_0x5d0de4,_0x350c10]=(0x0,a[_0x255d5f(0x1c4)])(String(_0x38dbc2)),_0x52ac93=_0x21a03e[_0x255d5f(0x146)](_0xf16a6f=>_0xf16a6f[_0x255d5f(0x2c6)]===_0x5d0de4),_0x3c265d=(_0x52ac93==null?void 0x0:_0x52ac93[_0x255d5f(0x2fd)])??_0x38dbc2,_0x29900b=_0x17ee80=>(0x0,t[_0x255d5f(0x31f)])(_0x17ee80,{'candlestickClose':_0x2612e7['t']('docs-chart-ui.candlestick.close'),'candlestickHigh':_0x2612e7['t'](_0x255d5f(0x275)),'candlestickLow':_0x2612e7['t']('docs-chart-ui.candlestick.low'),'candlestickOpen':_0x2612e7['t']('docs-chart-ui.candlestick.open'),'category':_0x2612e7['t']('docs-chart-ui.common.category'),'chordSource':_0x2612e7['t'](_0x255d5f(0xea)),'chordTarget':_0x2612e7['t']('docs-chart-ui.chord.target'),'label':_0x2612e7['t'](_0x255d5f(0x2b7)),'sunburstHierarchy':_0x2612e7['t'](_0x255d5f(0x31d)),'value':_0x2612e7['t'](_0x255d5f(0x2e6)),'valueField':_0x2612e7['t'](_0x255d5f(0xc8))}),[_0x5c981e,_0x3a5cc4]=(0x0,a[_0x255d5f(0x1c4)])(()=>_0xecd1fb[_0x255d5f(0x323)]===void 0x0?_0x29900b(_0x38dbc2)??(0x0,n[_0x255d5f(0x319)])(_0x25afd2):(0x0,n[_0x255d5f(0x319)])(_0x25afd2)),[_0x4ec961,_0x5d9d1c]=(0x0,a[_0x255d5f(0x1c4)])(null),_0x121876={[t[_0x255d5f(0x229)][_0x255d5f(0x279)]]:_0x2612e7['t'](_0x255d5f(0xc2)),[t[_0x255d5f(0x229)][_0x255d5f(0x336)]]:_0x2612e7['t']('docs-chart-ui.common.tableDataEmpty'),[t[_0x255d5f(0x229)][_0x255d5f(0x115)]]:_0x2612e7['t'](_0x255d5f(0x1bd))};return(0x0,o[_0x255d5f(0x2c2)])(_0x255d5f(0x14f),{'className':_0x255d5f(0x12b),'children':[(0x0,o['jsxs'])(_0x255d5f(0x14f),{'className':_0x255d5f(0x2e1),'children':[(0x0,o[_0x255d5f(0x148)])('div',{'className':'univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x2612e7['t'](_0x255d5f(0x2c3))}),(0x0,o['jsx'])(r[_0x255d5f(0x109)],{'className':_0x255d5f(0x144),'value':_0x5d0de4,'options':_0x21a03e,'onChange':_0x559841=>{const _0x2583cc=_0x255d5f;var _0x35d40d;_0x350c10(_0x559841);let _0x11692c=((_0x35d40d=_0x21a03e[_0x2583cc(0x146)](_0x199178=>_0x199178[_0x2583cc(0x2c6)]===_0x559841))==null?void 0x0:_0x35d40d[_0x2583cc(0x2fd)])??Number(_0x559841),_0x4741b0=_0x29900b(_0x11692c);_0x4741b0&&_0x3a5cc4(_0x4741b0);}})]}),(0x0,o['jsxs'])(_0x255d5f(0x14f),{'className':_0x255d5f(0x2e1),'children':[(0x0,o['jsx'])(_0x255d5f(0x14f),{'className':_0x255d5f(0x1f1),'children':_0x2612e7['t'](_0x255d5f(0x2e4))}),(0x0,o['jsx'])(t[_0x255d5f(0x12f)],{'values':_0x5c981e,'minColumns':(0x0,t[_0x255d5f(0x2cd)])(_0x3c265d),'parsePastedText':n[_0x255d5f(0x319)],'onChange':_0x3a5cc4})]}),_0x4ec961&&(0x0,o[_0x255d5f(0x148)])(_0x255d5f(0x14f),{'className':_0x255d5f(0x1b0),'children':_0x4ec961}),(0x0,o[_0x255d5f(0x2c2)])('div',{'className':_0x255d5f(0x2d0),'children':[_0x3b15c6&&(0x0,o[_0x255d5f(0x148)])(r[_0x255d5f(0xd7)],{'type':_0x255d5f(0x24e),'variant':_0x255d5f(0xac),'onClick':_0x3b15c6,'children':_0x2612e7['t']('docs-chart-ui.common.cancel')}),(0x0,o['jsx'])(r[_0x255d5f(0xd7)],{'type':_0x255d5f(0x24e),'variant':_0x255d5f(0x30c),'onClick':()=>{const _0x30dbeb=_0x255d5f;var _0x3baee2;let _0x43621c=(0x0,t[_0x30dbeb(0xa5)])({'optionId':_0x5d0de4,'values':_0x5c981e});if(!_0x43621c['ok']){_0x5d9d1c(_0x121876[_0x43621c[_0x30dbeb(0x290)][_0x30dbeb(0xe8)]]);return;}let _0x5376c1=_0x43621c[_0x30dbeb(0x2ea)]['style']?{..._0x3b9083,'style':{..._0x3b9083==null?void 0x0:_0x3b9083[_0x30dbeb(0x308)],'pie':{..._0x3b9083==null||(_0x3baee2=_0x3b9083[_0x30dbeb(0x308)])==null?void 0x0:_0x3baee2['pie'],..._0x43621c[_0x30dbeb(0x2ea)][_0x30dbeb(0x308)][_0x30dbeb(0x116)]}}}:_0x3b9083,_0x1376e9=_0x3fe420[_0x30dbeb(0x184)](_0x43621c[_0x30dbeb(0x2ea)][_0x30dbeb(0x2d1)],_0x43621c[_0x30dbeb(0x2ea)][_0x30dbeb(0x2fd)],_0x5376c1);if(!_0x1376e9){_0x5d9d1c(_0x2612e7['t'](_0x30dbeb(0xc2)));return;}_0x5d9d1c(null),_0x1913e8==null||_0x1913e8(_0x1376e9);},'children':_0x2612e7['t'](_0x255d5f(0x1ec))})]})]});}const Ee='docs-chart-ui.config',B={},De='__docsChartResource';let V=class extends e[_0x4b37c8(0x1b3)]{constructor(_0x9bd21c,_0x582547,_0x3bbc75){const _0xdae0e1=_0x4b37c8;super(),this[_0xdae0e1(0x2b9)]=_0x9bd21c,this[_0xdae0e1(0x27a)]=_0x582547,this['_resourceService']=_0x3bbc75,this['_initClipboardHooks']();}[_0x4b37c8(0x24b)](){const _0x48c294=_0x4b37c8;this[_0x48c294(0x185)](this['_docClipboardService'][_0x48c294(0x169)]({'onCopyDocData':(_0x330af6,_0x140ab6)=>this[_0x48c294(0x2bb)](_0x330af6,_0x140ab6[_0x48c294(0x10a)])})),this[_0x48c294(0x185)](this[_0x48c294(0x27a)][_0x48c294(0xf2)]({'getPasteMutationInfos':_0x2c9a4c=>this[_0x48c294(0x25c)](_0x2c9a4c)}));}['_appendChartResources'](_0x417756,_0xdb4c46){const _0x1b5d0d=_0x4b37c8;var _0x510950;let _0x4eb7ba=(_0x510950=_0xdb4c46[0x0])==null?void 0x0:_0x510950['id'];if(!_0x4eb7ba)return _0x417756;let _0x71ff93=Object['values'](_0x417756[_0x1b5d0d(0xec)]??{})[_0x1b5d0d(0x31e)](_0x4a9b0e=>this[_0x1b5d0d(0x11d)](_0x4a9b0e));if(_0x71ff93[_0x1b5d0d(0x34d)]===0x0)return _0x417756;let _0x7a6279={'version':0x1,'dataSources':{},'charts':{}};return _0x71ff93['forEach'](_0x1cc5e4=>{const _0x25efe2=_0x1b5d0d;let _0x100cd6=this[_0x25efe2(0x163)][_0x25efe2(0x29b)](_0x4eb7ba,_0x1cc5e4['chartId']);if(!_0x100cd6)return;let _0x1a0eb0=this[_0x25efe2(0x163)][_0x25efe2(0x27c)](_0x4eb7ba,_0x100cd6['dataSourceId']);_0x1a0eb0&&(_0x7a6279[_0x25efe2(0x1ce)][_0x100cd6['id']]=e[_0x25efe2(0x1eb)][_0x25efe2(0x2e5)](_0x100cd6),_0x7a6279['dataSources'][_0x1a0eb0['id']]=e[_0x25efe2(0x1eb)]['deepClone'](_0x1a0eb0));}),Object[_0x1b5d0d(0x22c)](_0x7a6279[_0x1b5d0d(0x1ce)])[_0x1b5d0d(0x34d)]===0x0?_0x417756:{..._0x417756,[De]:_0x7a6279};}['_getPasteMutationInfos'](_0x22dd21){const _0x39630d=_0x4b37c8;let _0x16f2f3=_0x22dd21[_0x39630d(0x1cb)][De];if(!_0x16f2f3)return{'redoMutations':[],'undoMutations':[]};let _0x16ec82=new Map(),_0x3ccdae=[],_0x4175bc=[],_0x35fd8e=[],_0x198295=[];return _0x22dd21[_0x39630d(0x2b5)]['forEach'](_0x1f7ca6=>{const _0x760062=_0x39630d;if(!this[_0x760062(0x11d)](_0x1f7ca6[_0x760062(0x1b2)])||!this[_0x760062(0x11d)](_0x1f7ca6['targetDrawing']))return;let _0x2800ca=_0x16f2f3[_0x760062(0x1ce)][_0x1f7ca6[_0x760062(0x1b2)][_0x760062(0x98)]];if(!_0x2800ca)return;let _0x4b3cf7=_0x16f2f3[_0x760062(0x14d)][_0x2800ca[_0x760062(0x1ff)]];if(!_0x4b3cf7)return;let _0x3209fd=this[_0x760062(0x10e)](_0x22dd21['unitId'],_0x4b3cf7,_0x16ec82,_0x3ccdae,_0x4175bc),_0x4c14bd=(0x0,e[_0x760062(0x1ad)])(),_0x20c903={...e[_0x760062(0x1eb)][_0x760062(0x2e5)](_0x2800ca),'id':_0x4c14bd,'dataSourceId':_0x3209fd};_0x1f7ca6[_0x760062(0x158)]['chartId']=_0x4c14bd,_0x35fd8e[_0x760062(0x353)]({'id':s[_0x760062(0xd1)]['id'],'params':{'unitId':_0x22dd21[_0x760062(0x205)],'chart':_0x20c903}}),_0x198295[_0x760062(0x353)]({'id':s[_0x760062(0x318)]['id'],'params':{'unitId':_0x22dd21[_0x760062(0x205)],'chartId':_0x4c14bd}});}),{'redoMutations':[..._0x3ccdae,..._0x35fd8e],'undoMutations':[..._0x198295,..._0x4175bc]};}['_getOrCreatePastedDataSourceId'](_0x204c0f,_0xd7fa41,_0x3cfa59,_0x525bf7,_0x45d1dd){const _0x37fe72=_0x4b37c8;let _0x554562=_0x3cfa59[_0x37fe72(0x337)](_0xd7fa41['id']);if(_0x554562)return _0x554562;let _0x3e5170=(0x0,e['generateRandomId'])();return _0x3cfa59['set'](_0xd7fa41['id'],_0x3e5170),_0x525bf7[_0x37fe72(0x353)]({'id':s['SetDocChartDataSourceMutation']['id'],'params':{'unitId':_0x204c0f,'dataSource':{...e[_0x37fe72(0x1eb)][_0x37fe72(0x2e5)](_0xd7fa41),'id':_0x3e5170}}}),_0x45d1dd[_0x37fe72(0x353)]({'id':s[_0x37fe72(0x2cf)]['id'],'params':{'unitId':_0x204c0f,'dataSourceId':_0x3e5170}}),_0x3e5170;}[_0x4b37c8(0x11d)](_0x1973e5){const _0xc715cc=_0x4b37c8;let _0x45df07=_0x1973e5;return(_0x45df07==null?void 0x0:_0x45df07[_0xc715cc(0x286)])===e['DrawingTypeEnum'][_0xc715cc(0x352)]&&typeof _0x45df07['chartId']=='string';}};V=S([x(0x0,(0x0,e[_0x4b37c8(0x195)])(l['IDocClipboardService'])),x(0x1,(0x0,e[_0x4b37c8(0x195)])(l[_0x4b37c8(0x24f)])),x(0x2,(0x0,e[_0x4b37c8(0x195)])(s[_0x4b37c8(0x153)]))],V);const Oe=new Set([n[_0x4b37c8(0x28d)][_0x4b37c8(0x333)],n[_0x4b37c8(0x28d)][_0x4b37c8(0x1b1)],n[_0x4b37c8(0x28d)][_0x4b37c8(0x2ba)],n['ChartTypeBits'][_0x4b37c8(0x129)],n[_0x4b37c8(0x28d)]['Pareto']]),ke=t['STATIC_CHART_TYPE_CATALOG'][_0x4b37c8(0x31e)](_0x4b802b=>!Oe[_0x4b37c8(0x257)](_0x4b802b[_0x4b37c8(0x2c6)]));let H=class extends e[_0x4b37c8(0x1b3)]{constructor(_0x29e1ed,_0x368a23,_0x9f825a,_0x58043b){const _0xbaa7d1=_0x4b37c8;super(),this[_0xbaa7d1(0x152)]=_0x29e1ed,this[_0xbaa7d1(0xc7)]=_0x368a23,this[_0xbaa7d1(0x163)]=_0x9f825a,this[_0xbaa7d1(0x322)]=_0x58043b,this[_0xbaa7d1(0x102)]();}['_initAdapter'](){const _0x5df76c=_0x4b37c8;this['disposeWithMe'](this[_0x5df76c(0x152)][_0x5df76c(0xf2)]({'getEditDrawingCommandInfo':({unitId:_0x376b6e,drawing:_0x4cb6f4})=>{const _0x50f453=_0x5df76c;let _0x14a643=Ae(_0x4cb6f4);return _0x14a643?{'label':this['_localeService']['t'](_0x50f453(0x255)),'commandId':_['id'],'commandParams':{'unitId':_0x376b6e,'chartId':_0x14a643[_0x50f453(0x98)],'drawingId':_0x14a643[_0x50f453(0xda)]}}:null;}})),this[_0x5df76c(0x185)](this[_0x5df76c(0xc7)]['registerAdapter']({'getItems':({unitId:_0x5e4206,subUnitId:_0x18fd20,drawing:_0x8feeca})=>{const _0x45cc57=_0x5df76c;var _0x5762a9,_0x45ccd7;let _0x4e55fd=Ae(_0x8feeca);if(!_0x4e55fd)return null;let _0x4d1a47=this['_resourceService']['getChart'](_0x5e4206,_0x4e55fd[_0x45cc57(0x98)]),_0x1f1b5e=(_0x4d1a47==null?void 0x0:_0x4d1a47[_0x45cc57(0x2fd)])??n['ChartTypeBits'][_0x45cc57(0x179)],_0x49a9b2=(0x0,t[_0x45cc57(0xc6)])(ke[_0x45cc57(0x277)](_0x30c8a8=>({..._0x30c8a8,'label':this[_0x45cc57(0x322)]['t'](_0x45cc57(0x176)+_0x30c8a8['labelId'])}))),_0x9250aa=(_0x4d1a47==null||(_0x5762a9=_0x4d1a47[_0x45cc57(0x308)])==null||(_0x5762a9=_0x5762a9[_0x45cc57(0x116)])==null||(_0x5762a9=_0x5762a9[_0x45cc57(0x348)])==null?void 0x0:_0x5762a9[_0x45cc57(0x282)])===!0x0?(_0x45ccd7=_0x4d1a47[_0x45cc57(0x308)][_0x45cc57(0x116)][_0x45cc57(0x348)][_0x45cc57(0x12a)])==null?void 0x0:_0x45ccd7['type']:void 0x0,_0x2cb71c=_0x9250aa?_0x49a9b2[_0x45cc57(0x146)](_0x54d852=>_0x54d852['pieSecondaryPlotType']===_0x9250aa):void 0x0;return[{'type':_0x45cc57(0x2a6),'label':this['_localeService']['t'](_0x45cc57(0x2c3)),'index':0x0,'commandId':s[_0x45cc57(0x134)]['id'],'commandParamsFactory':_0x3f3b42=>{const _0x560755=_0x45cc57;var _0x452109;let _0x543bf5=_0x49a9b2[_0x560755(0x146)](_0x2728cc=>_0x2728cc[_0x560755(0x2c6)]===_0x3f3b42),_0x21c339=(_0x543bf5==null?void 0x0:_0x543bf5[_0x560755(0x2fd)])??Number(_0x3f3b42),_0x3c1f4d=_0x4d1a47==null||(_0x452109=_0x4d1a47[_0x560755(0x308)])==null||(_0x452109=_0x452109[_0x560755(0x116)])==null?void 0x0:_0x452109[_0x560755(0x348)],_0x208fee={'unitId':_0x5e4206,'chartId':_0x4e55fd[_0x560755(0x98)],'chartType':_0x21c339};if(_0x543bf5!=null&&_0x543bf5[_0x560755(0x298)]){var _0x53b7f4;return{..._0x208fee,'style':{..._0x4d1a47==null?void 0x0:_0x4d1a47[_0x560755(0x308)],'pie':{..._0x4d1a47==null||(_0x53b7f4=_0x4d1a47[_0x560755(0x308)])==null?void 0x0:_0x53b7f4[_0x560755(0x116)],'composite':{..._0x3c1f4d,'enabled':!0x0,'secondaryPlot':{..._0x3c1f4d==null?void 0x0:_0x3c1f4d[_0x560755(0x12a)],'type':_0x543bf5[_0x560755(0x298)]}}}}};}if(_0x21c339===n[_0x560755(0x28d)]['Pie']&&_0x3c1f4d){var _0x2604f9;return{..._0x208fee,'style':{..._0x4d1a47==null?void 0x0:_0x4d1a47[_0x560755(0x308)],'pie':{..._0x4d1a47==null||(_0x2604f9=_0x4d1a47[_0x560755(0x308)])==null?void 0x0:_0x2604f9[_0x560755(0x116)],'composite':{..._0x3c1f4d,'enabled':!0x1}}}};}return _0x208fee;},'disable':!_0x4d1a47,'value':(_0x2cb71c==null?void 0x0:_0x2cb71c[_0x45cc57(0x2c6)])??String(_0x1f1b5e),'options':_0x49a9b2},{'type':_0x45cc57(0x24e),'label':this[_0x45cc57(0x322)]['t'](_0x45cc57(0x255)),'index':0x1,'commandId':_['id'],'commandParams':{'unitId':_0x5e4206,'chartId':_0x4e55fd['chartId'],'drawingId':_0x4e55fd[_0x45cc57(0xda)]},'disable':!0x1,'hideOnClick':!0x0,'icon':'DrawingEditIcon'},{'type':'button','label':this['_localeService']['t'](_0x45cc57(0x32f)),'index':0x2,'commandId':u[_0x45cc57(0x2f1)]['id'],'commandParams':{'unitId':_0x5e4206,'drawings':[{'unitId':_0x5e4206,'subUnitId':_0x18fd20,'drawingId':_0x4e55fd[_0x45cc57(0xda)]}]},'disable':!0x1,'icon':_0x45cc57(0x210)}];}}));}};H=S([x(0x0,u[_0x4b37c8(0x2c7)]),x(0x1,(0x0,e[_0x4b37c8(0x195)])(d[_0x4b37c8(0x251)])),x(0x2,(0x0,e['Inject'])(s[_0x4b37c8(0x153)])),x(0x3,(0x0,e[_0x4b37c8(0x195)])(e[_0x4b37c8(0x300)]))],H);function Ae(_0xf1e8bf){const _0x2cb50e=_0x4b37c8;let _0x4bba12=_0xf1e8bf;return(_0x4bba12==null?void 0x0:_0x4bba12[_0x2cb50e(0x286)])===e[_0x2cb50e(0x22a)][_0x2cb50e(0x352)]&&typeof _0x4bba12[_0x2cb50e(0x98)]=='string'?_0x4bba12:null;}const je=(0x0,e[_0x4b37c8(0x2c0)])(_0x4b37c8(0x230));var Me=class{constructor(_0xd30188){const _0xfede49=_0x4b37c8;this[_0xfede49(0x306)]=_0xd30188;}async[_0x4b37c8(0x2a2)](_0x2e6d5c,_0x3c162d){const _0x470bec=_0x4b37c8;if(typeof document>'u')throw TypeError(_0x470bec(0xf3));let _0x541141=new n[(_0x470bec(0x1db))](_0x3c162d[_0x470bec(0x98)],{'width':_0x2e6d5c['width'],'height':_0x2e6d5c[_0x470bec(0x2b3)]}),_0x40f581=this['_renderService'][_0x470bec(0x29d)](n[_0x470bec(0x1c3)][_0x470bec(0x2ef)]);try{let {chartConfig:_0x25e05c,chartStyle:_0xcadf59}=this['_renderService'][_0x470bec(0x30e)](_0x3c162d);_0x40f581[_0x470bec(0x292)](_0x541141),await _0x40f581[_0x470bec(0x2a2)]({'chartId':_0x3c162d[_0x470bec(0x98)],'config':_0x25e05c,'style':_0xcadf59});let _0x6f6d50=_0x541141[_0x470bec(0x274)]();if(!_0x6f6d50)throw Error('Failed\x20to\x20render\x20document\x20chart\x20snapshot:\x20'+_0x3c162d[_0x470bec(0x205)]+'/'+_0x3c162d[_0x470bec(0x98)]);return _0x6f6d50;}finally{_0x40f581[_0x470bec(0x104)](),_0x541141['dispose']();}}};let U=class extends t[_0x4b37c8(0x105)]{constructor(_0x49a743,_0x23c51c,_0x6d1e66,_0x328b1d){super(_0x49a743,_0x23c51c,_0x328b1d??new Me(_0x6d1e66));}};U=S([x(0x0,(0x0,e[_0x4b37c8(0x195)])(e['LocaleService'])),x(0x1,(0x0,e[_0x4b37c8(0x195)])(s[_0x4b37c8(0xca)])),x(0x2,(0x0,e[_0x4b37c8(0x195)])(P)),x(0x3,(0x0,e[_0x4b37c8(0x15f)])(je))],U);let W=class extends e[_0x4b37c8(0x1b3)]{constructor(_0x4828a7,_0x4ad5b2,_0x347619,_0x215318){const _0x1348fa=_0x4b37c8;super(),this[_0x1348fa(0x20b)]=_0x4828a7,this[_0x1348fa(0x2e7)]=_0x4ad5b2,this[_0x1348fa(0x163)]=_0x347619,this[_0x1348fa(0x26e)]=_0x215318,this['_listenChartResourceMutations']();}[_0x4b37c8(0xb8)](){const _0x12dcc0=_0x4b37c8;this[_0x12dcc0(0x185)](this[_0x12dcc0(0x20b)][_0x12dcc0(0x280)](_0x1269d0=>{const _0x37e3dc=_0x12dcc0;if(_0x1269d0['id']===s[_0x37e3dc(0xd1)]['id']){var _0x49eb86;let _0x41f122=_0x1269d0[_0x37e3dc(0x97)];_0x41f122!=null&&_0x41f122['unitId']&&(_0x49eb86=_0x41f122[_0x37e3dc(0x27f)])!=null&&_0x49eb86['id']&&(this[_0x37e3dc(0x2a9)](_0x41f122)?this[_0x37e3dc(0x2e7)][_0x37e3dc(0x203)](_0x41f122[_0x37e3dc(0x205)],_0x41f122['chart']['id'],{'waitForConfig':!0x0}):this[_0x37e3dc(0x2e7)][_0x37e3dc(0x203)](_0x41f122['unitId'],_0x41f122[_0x37e3dc(0x27f)]['id']));return;}if(_0x1269d0['id']===s['SetDocChartDataSourceMutation']['id']){var _0x5450a2;let _0x100949=_0x1269d0['params'];if(!(_0x100949!=null&&_0x100949[_0x37e3dc(0x205)])||!((_0x5450a2=_0x100949['dataSource'])!=null&&_0x5450a2['id']))return;this[_0x37e3dc(0x163)][_0x37e3dc(0xb0)](_0x100949[_0x37e3dc(0x205)],_0x100949[_0x37e3dc(0xb2)]['id'])[_0x37e3dc(0x2de)](_0x56aa30=>this[_0x37e3dc(0x2e7)]['invalidateChart'](_0x100949[_0x37e3dc(0x205)],_0x56aa30,{'waitForConfig':!0x0}));}}));}[_0x4b37c8(0x2a9)](_0x1483fb){const _0x4a3839=_0x4b37c8;var _0x3e2dd0;let _0x5e0880=(_0x3e2dd0=this[_0x4a3839(0x26e)]['getChartModel'](_0x1483fb[_0x4a3839(0x205)],_0x1483fb[_0x4a3839(0x27f)]['id']))==null||(_0x3e2dd0=_0x3e2dd0['model'][_0x4a3839(0x2e3)])==null?void 0x0:_0x3e2dd0['type'];return _0x5e0880!=null&&_0x5e0880!==_0x1483fb[_0x4a3839(0x27f)][_0x4a3839(0x2fd)];}};W=S([x(0x0,e['ICommandService']),x(0x1,(0x0,e[_0x4b37c8(0x195)])(U)),x(0x2,(0x0,e['Inject'])(s[_0x4b37c8(0x153)])),x(0x3,(0x0,e[_0x4b37c8(0x195)])(s[_0x4b37c8(0xca)]))],W);const G=g['id'],Ne=G+_0x4b37c8(0x101);function Pe(_0x323e1b){const _0x1346a6=_0x4b37c8;return(0x0,f[_0x1346a6(0x2bf)])([(0x0,l[_0x1346a6(0x30f)])(_0x323e1b),Fe(_0x323e1b)])['pipe']((0x0,f[_0x1346a6(0x277)])(([_0x25913e,_0x5608d9])=>_0x25913e||_0x5608d9));}function Fe(_0x586cc9){const _0x1b4b1d=_0x4b37c8;let _0x1bbe0d=_0x586cc9[_0x1b4b1d(0x337)](c['DocSelectionManagerService']),_0x39b400=_0x586cc9[_0x1b4b1d(0x337)](e[_0x1b4b1d(0x1cf)]);return new f[(_0x1b4b1d(0x233))](_0x109a06=>{const _0x4dcedf=_0x1b4b1d;let _0x267ec5=_0x5031b4=>{const _0x582681=_0x395d;let _0x58400d=_0x39b400[_0x582681(0x256)](e[_0x582681(0x211)][_0x582681(0x327)]);if(!_0x58400d){_0x109a06[_0x582681(0x8b)](!0x0);return;}let _0x5b3add=(_0x5031b4==null?void 0x0:_0x5031b4[_0x582681(0x1a7)])??[..._0x1bbe0d[_0x582681(0xa4)]()??[]];if(_0x5b3add['length']!==0x1){_0x109a06['next'](!0x0);return;}let _0xc2e929=_0x1bbe0d[_0x582681(0x2a4)]()??_0x5b3add[0x0];if(!_0xc2e929||!_0xc2e929[_0x582681(0x140)]||_0xc2e929[_0x582681(0x293)]==null){_0x109a06[_0x582681(0x8b)](!0x0);return;}let _0x3768de=L(_0x58400d,{..._0xc2e929,'segmentId':_0xc2e929['segmentId']??(_0x5031b4==null?void 0x0:_0x5031b4[_0x582681(0x145)])??''});_0x109a06['next'](_0x3768de==null);};_0x267ec5();let _0x1f5f07=_0x1bbe0d[_0x4dcedf(0x8a)]['subscribe'](_0x265b4d=>_0x267ec5(_0x265b4d));return()=>_0x1f5f07[_0x4dcedf(0x19a)]();});}function Ie(_0x75460c){return K(_0x75460c);}function K(_0x55c84c){const _0x49437d=_0x4b37c8;let _0x57b80e=_0x55c84c[_0x49437d(0x337)](e['LocaleService'])['t'](_0x49437d(0x127));return{'id':G,'commandId':g['id'],'type':i[_0x49437d(0x346)][_0x49437d(0x1b5)],'icon':'ChartIcon','title':_0x57b80e,'tooltip':_0x57b80e,'disabled$':Pe(_0x55c84c),'hidden$':(0x0,i[_0x49437d(0x2dd)])(_0x55c84c,e[_0x49437d(0x211)][_0x49437d(0x327)])};}function Le(_0x4b0ba6){const _0x1f50f4=_0x4b37c8;let _0x1b8c93=_0x4b0ba6[_0x1f50f4(0x337)](e['LocaleService'])['t'](_0x1f50f4(0x127));return{'id':Ne,'commandId':g['id'],'type':i[_0x1f50f4(0x346)][_0x1f50f4(0x1b5)],'icon':_0x1f50f4(0x236),'title':_0x1b8c93,'tooltip':_0x1b8c93,'disabled$':Pe(_0x4b0ba6),'hidden$':(0x0,i['getMenuHiddenObservable'])(_0x4b0ba6,e[_0x1f50f4(0x211)]['UNIVER_DOC'])};}const Re={[i['RibbonInsertGroup'][_0x4b37c8(0x2f7)]]:{[G]:{'order':2.5,'menuItemFactory':Ie}},[i['ContextMenuPosition']['PARAGRAPH']]:{[i['ContextMenuGroup'][_0x4b37c8(0x10c)]]:{[l[_0x4b37c8(0x2a8)]]:{[G]:{'order':4.5,'menuItemFactory':K}}},[l[_0x4b37c8(0x200)]]:{[i[_0x4b37c8(0x212)][_0x4b37c8(0x10c)]]:{[G]:{'order':5.5,'menuItemFactory':K}}},[l[_0x4b37c8(0x30b)]]:{[i[_0x4b37c8(0x212)]['LAYOUT']]:{[G]:{'order':4.5,'menuItemFactory':K}}},[l[_0x4b37c8(0xcb)]]:{'insert':{[G]:{'order':1.5,'menuItemFactory':K}}},[l['DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID']]:{'insert':{[Ne]:{'order':1.5,'menuItemFactory':Le}}}}};var ze=_0x4b37c8(0xb3),Be=_0x4b37c8(0x223),Ve=class extends h[_0x4b37c8(0x2ef)]{constructor(..._0x4942f9){const _0xc8ade7=_0x4b37c8;super(..._0x4942f9),j(this,_0xc8ade7(0xdd),!0x1);}get['imageContentHidden'](){const _0x4ec4ac=_0x4b37c8;return this[_0x4ec4ac(0xdd)];}[_0x4b37c8(0x172)](_0x5e3489){const _0xdcd12c=_0x4b37c8;this[_0xdcd12c(0xdd)]!==_0x5e3489&&(this[_0xdcd12c(0xdd)]=_0x5e3489,this[_0xdcd12c(0x17a)](!0x0));}['_draw'](_0x1367f6,_0x4ca66a,_0x4118c0,_0x197431){const _0x3aa3a1=_0x4b37c8;this[_0x3aa3a1(0xdd)]||super[_0x3aa3a1(0x1f2)](_0x1367f6,_0x4ca66a,_0x4118c0,_0x197431);}};const He={'borderEnabled':!0x0,'borderStroke':_0x4b37c8(0x326),'borderStrokeWidth':0x1,'borderSpacing':0x2,'anchorFill':'#ffffff','anchorStroke':'#4086f4','anchorStrokeWidth':1.5,'anchorSize':0x8,'anchorCornerRadius':0x2,'anchorStyle':'canva','rotateEnabled':!0x0,'rotateSize':0x12,'rotateCornerRadius':0x9,'rotateAnchorOffset':0x1c,'rotateAnchorPosition':'bottom','rotateLineEnabled':!0x1,'rotateFill':_0x4b37c8(0x19f),'rotateStroke':_0x4b37c8(0x326),'rotateStrokeWidth':0x1,'rotateIconEnabled':!0x0,'rotateIconStroke':_0x4b37c8(0x326),'rotateIconStrokeWidth':1.25,'resizeEnabled':!0x0,'keepRatio':!0x1,'moveBoundaryEnabled':!0x1},Ue={...He,'rotateEnabled':!0x1};let q=class extends e[_0x4b37c8(0x1b3)]{constructor(_0x161fec,_0x38ee7d,_0x1195de){const _0x2f9a33=_0x4b37c8;super(),this['_drawingManagerService']=_0x161fec,this[_0x2f9a33(0x329)]=_0x38ee7d,this['_snapshotRenderService']=_0x1195de,j(this,_0x2f9a33(0x123),new Set()),this[_0x2f9a33(0x1e9)]();}[_0x4b37c8(0x1fc)](_0x42b338,_0x407388){const _0x141cfc=_0x4b37c8;let _0x47c73d=(0x0,m['getDrawingShapeKeyByDrawingSearch'])(_0x42b338);_0x407388?this[_0x141cfc(0x123)][_0x141cfc(0x1ef)](_0x47c73d):this[_0x141cfc(0x123)][_0x141cfc(0x273)](_0x47c73d),this['_syncRenderedChartVisibility'](_0x42b338);}[_0x4b37c8(0x1e9)](){const _0xc73708=_0x4b37c8;this[_0xc73708(0x185)](this[_0xc73708(0x310)][_0xc73708(0x2fc)][_0xc73708(0x119)](_0x313867=>{this['_requestSnapshotsForSearches'](_0x313867);})),this[_0xc73708(0x185)](this['_drawingManagerService'][_0xc73708(0xb9)][_0xc73708(0x119)](_0x12f771=>{const _0x53ce47=_0xc73708;this[_0x53ce47(0x2c4)](_0x12f771);})),this[_0xc73708(0x185)](this['_drawingManagerService'][_0xc73708(0x181)][_0xc73708(0x119)](_0x481457=>{const _0xbfc4f=_0xc73708;this[_0xbfc4f(0x265)](_0x481457);})),this[_0xc73708(0x185)](this[_0xc73708(0x1ae)][_0xc73708(0x125)][_0xc73708(0x119)](({unitId:_0x5f1539,chartId:_0x2272c7})=>{this['_requestSnapshotsForUnit'](_0x5f1539,_0x2272c7);})),this[_0xc73708(0x185)](this['_snapshotRenderService'][_0xc73708(0x261)][_0xc73708(0x119)](_0x58445a=>{const _0xc6b772=_0xc73708;if(_0x58445a[_0xc6b772(0x2df)]!=='ready'||!_0x58445a['dataUrl'])return;let [_0x3ac2a1,_0xfeb7e8]=_0x58445a[_0xc6b772(0x2ee)]['split']('::');!_0x3ac2a1||!_0xfeb7e8||this[_0xc6b772(0x1ed)](_0x3ac2a1,_0xfeb7e8,_0x58445a[_0xc6b772(0x33e)]);}));}['_requestSnapshotsForSearches'](_0x3cb6c7){const _0x4caff9=_0x4b37c8;_0x3cb6c7[_0x4caff9(0x2de)](_0x207b6a=>{const _0x3dc651=_0x4caff9;let _0xfbf177=this[_0x3dc651(0x342)](_0x207b6a);_0xfbf177&&this[_0x3dc651(0x1a4)](_0xfbf177);});}[_0x4b37c8(0xba)](_0x34033b,_0x496101){this['_forEachChartDrawing'](_0x34033b,_0x3122f9=>{const _0xcb338a=_0x395d;(_0x496101==null||_0x3122f9[_0xcb338a(0x98)]===_0x496101)&&this['_requestSnapshot'](_0x3122f9);});}['_requestSnapshot'](_0x1f57d1){const _0x599f92=_0x4b37c8;let _0x32ff2a=this[_0x599f92(0x240)](_0x1f57d1);if(!_0x32ff2a)return;let _0x4ba15c=this[_0x599f92(0x1ae)]['requestSnapshot']({'unitId':_0x1f57d1[_0x599f92(0x205)],'chartId':_0x1f57d1[_0x599f92(0x98)],'width':_0x32ff2a[_0x599f92(0x23c)],'height':_0x32ff2a[_0x599f92(0x2b3)],'dpr':typeof window>'u'?0x1:window[_0x599f92(0x2ac)]||0x1,'mode':_0x599f92(0x21d)});_0x4ba15c['status']===_0x599f92(0x2f3)&&_0x4ba15c['dataUrl']&&this[_0x599f92(0x1d5)](_0x1f57d1,_0x4ba15c['dataUrl']);}['_renderCharts'](_0xbad9f7,_0x5387d6,_0x13c659){const _0x285f33=_0x4b37c8;this[_0x285f33(0x2d8)](_0xbad9f7,_0x74164=>{const _0x404cdd=_0x285f33;_0x74164[_0x404cdd(0x98)]===_0x5387d6&&this['_renderDrawing'](_0x74164,_0x13c659);});}[_0x4b37c8(0x1d5)](_0x4dffeb,_0x46e1fd){const _0x1e8711=_0x4b37c8;let _0x1a4a0a=this[_0x1e8711(0x329)][_0x1e8711(0x1c9)](_0x4dffeb[_0x1e8711(0x205)]),_0x3b1527=_0x1a4a0a==null?void 0x0:_0x1a4a0a[_0x1e8711(0x343)];if(!_0x3b1527||!this[_0x1e8711(0x240)](_0x4dffeb))return;this['_drawingManagerService'][_0x1e8711(0x112)]()&&_0x3b1527[_0x1e8711(0x27e)](He);let _0x695a18=(0x0,m[_0x1e8711(0x190)])(_0x4dffeb),_0x38e4f9=_0x3b1527['getObjectIncludeInGroup'](_0x695a18);if(_0x38e4f9!=null&&_0x38e4f9[_0x1e8711(0x17d)]){var _0x21b6b6,_0x5e346c,_0x430136,_0xf4232f;_0x38e4f9[_0x1e8711(0x2d7)]={..._0x38e4f9[_0x1e8711(0x2d7)],...Ue},_0x38e4f9[_0x1e8711(0x17d)](_0x46e1fd),(_0x21b6b6=_0x38e4f9[_0x1e8711(0x239)])==null||_0x21b6b6[_0x1e8711(0x311)](_0x38e4f9,_0x4dffeb[_0x1e8711(0x13d)]),(_0x5e346c=_0x38e4f9[_0x1e8711(0x1b7)])==null||_0x5e346c['call'](_0x38e4f9,(_0x430136=_0x4dffeb[_0x1e8711(0x13d)])==null?void 0x0:_0x430136[_0x1e8711(0x157)]),this[_0x1e8711(0x114)](_0x38e4f9,_0x4dffeb,_0x695a18),(_0xf4232f=_0x38e4f9[_0x1e8711(0x17a)])==null||_0xf4232f[_0x1e8711(0x311)](_0x38e4f9,!0x0);return;}this[_0x1e8711(0x2b8)](_0x4dffeb,_0x46e1fd,_0x3b1527,_0x695a18);}[_0x4b37c8(0x2b8)](_0x20516b,_0x1f4a37,_0x1da82e,_0x28f317){const _0x9f67bd=_0x4b37c8;let _0x2b5bf0=_0x20516b[_0x9f67bd(0x13d)];if(!_0x2b5bf0)return;let _0x558ee3=this[_0x9f67bd(0x310)][_0x9f67bd(0x11b)](_0x20516b[_0x9f67bd(0x205)],_0x20516b[_0x9f67bd(0x1a8)]),_0x3caeff=_0x558ee3[_0x9f67bd(0xd2)](_0x20516b[_0x9f67bd(0xda)]),_0x43bf9b={..._0x2b5bf0,'zIndex':_0x3caeff===-0x1?_0x558ee3[_0x9f67bd(0x34d)]-0x1:_0x3caeff,'clipBounds':_0x2b5bf0['clipBounds'],'printable':!0x0,'rotateEnabled':!0x1,'transformerConfig':Ue,'url':_0x1f4a37};_0x20516b[_0x9f67bd(0x1e4)]&&(_0x43bf9b[_0x9f67bd(0x34b)]=!0x1);let _0x1997cb=new Ve(_0x28f317,_0x43bf9b);_0x1997cb[_0x9f67bd(0x172)](this['_activeDomReadyDrawingKeys']['has'](_0x28f317)),_0x1da82e[_0x9f67bd(0x354)](_0x1997cb,h[_0x9f67bd(0x160)]),this['_drawingManagerService'][_0x9f67bd(0x112)]()&&_0x1da82e[_0x9f67bd(0x143)](_0x1997cb);}[_0x4b37c8(0x265)](_0x2de84a){const _0x59b5e3=_0x4b37c8;_0x2de84a[_0x59b5e3(0x2de)](_0x120505=>{const _0x50d90d=_0x59b5e3;this[_0x50d90d(0x123)]['delete']((0x0,m['getDrawingShapeKeyByDrawingSearch'])(_0x120505));let _0x2f8aea=this['_renderManagerService'][_0x50d90d(0x1c9)](_0x120505[_0x50d90d(0x205)]),_0x3d8594=_0x2f8aea==null?void 0x0:_0x2f8aea[_0x50d90d(0x343)];if(!_0x3d8594)return;let _0x1de835=_0x3d8594[_0x50d90d(0xf9)]((0x0,m[_0x50d90d(0x190)])(_0x120505));_0x1de835&&_0x3d8594[_0x50d90d(0x221)](_0x1de835);});}['_syncRenderedChartVisibility'](_0x35c894){const _0x79ea5a=_0x4b37c8;let _0x3e60bd=this[_0x79ea5a(0x329)][_0x79ea5a(0x1c9)](_0x35c894[_0x79ea5a(0x205)]),_0x232893=_0x3e60bd==null?void 0x0:_0x3e60bd['scene'];if(!_0x232893)return;let _0xb8bef2=(0x0,m[_0x79ea5a(0x190)])(_0x35c894),_0x5ef1bb=_0x232893['getObjectIncludeInGroup'](_0xb8bef2);if(!_0x5ef1bb)return;let _0x421693=this[_0x79ea5a(0x310)][_0x79ea5a(0x1c1)](_0x35c894);this[_0x79ea5a(0x114)](_0x5ef1bb,_0x421693,_0xb8bef2);}[_0x4b37c8(0x114)](_0x2c7c2d,_0x2cc4cd,_0xf119ee){const _0x3e7d1e=_0x4b37c8;var _0x2f986f,_0x311408;let _0x3dea69=this[_0x3e7d1e(0x123)]['has'](_0xf119ee);if(_0x2c7c2d['setImageContentHidden']){var _0x5dd343,_0x5cd027;_0x2c7c2d[_0x3e7d1e(0x172)](_0x3dea69),(_0x2cc4cd==null?void 0x0:_0x2cc4cd[_0x3e7d1e(0x1e4)])===!0x0?(_0x5dd343=_0x2c7c2d[_0x3e7d1e(0x33f)])==null||_0x5dd343[_0x3e7d1e(0x311)](_0x2c7c2d):(_0x5cd027=_0x2c7c2d[_0x3e7d1e(0x1f3)])==null||_0x5cd027[_0x3e7d1e(0x311)](_0x2c7c2d);return;}(_0x2cc4cd==null?void 0x0:_0x2cc4cd[_0x3e7d1e(0x1e4)])===!0x0?(_0x2f986f=_0x2c7c2d['hide'])==null||_0x2f986f[_0x3e7d1e(0x311)](_0x2c7c2d):(_0x311408=_0x2c7c2d['show'])==null||_0x311408[_0x3e7d1e(0x311)](_0x2c7c2d);}[_0x4b37c8(0x342)](_0xe144e2){const _0x51f345=_0x4b37c8;let _0x26dbf2=this[_0x51f345(0x310)]['getDrawingByParam'](_0xe144e2);return We(_0x26dbf2)?_0x26dbf2:null;}[_0x4b37c8(0x2d8)](_0x2e8625,_0x5ee828){const _0xc29696=_0x4b37c8;let _0xab5aa4=this[_0xc29696(0x310)][_0xc29696(0x94)](_0x2e8625),_0x28c9f1=_0xab5aa4==null?void 0x0:_0xab5aa4[_0x2e8625];_0x28c9f1&&_0x28c9f1[_0xc29696(0x250)][_0xc29696(0x2de)](_0x391af9=>{const _0x2ca2c2=_0xc29696;let _0x50af1a=_0x28c9f1[_0x2ca2c2(0x268)][_0x391af9];We(_0x50af1a)&&_0x5ee828(_0x50af1a);});}['_getDrawingRect'](_0x17e55d){const _0x4bb62e=_0x4b37c8;var _0x4ab5a1,_0x163782,_0x3d8975,_0x491258;let _0x12699e=((_0x4ab5a1=_0x17e55d[_0x4bb62e(0x13d)])==null?void 0x0:_0x4ab5a1[_0x4bb62e(0x23c)])??((_0x163782=_0x17e55d[_0x4bb62e(0x1fb)])==null||(_0x163782=_0x163782[_0x4bb62e(0x224)])==null?void 0x0:_0x163782[_0x4bb62e(0x23c)])??0x0,_0x2478bd=((_0x3d8975=_0x17e55d['transform'])==null?void 0x0:_0x3d8975['height'])??((_0x491258=_0x17e55d['docTransform'])==null||(_0x491258=_0x491258[_0x4bb62e(0x224)])==null?void 0x0:_0x491258['height'])??0x0;return _0x12699e<=0x0||_0x2478bd<=0x0?null:{'width':Math[_0x4bb62e(0x253)](0x1,Math['round'](_0x12699e)),'height':Math['max'](0x1,Math['round'](_0x2478bd))};}};q=S([x(0x0,m[_0x4b37c8(0xf4)]),x(0x1,h[_0x4b37c8(0x2b1)]),x(0x2,(0x0,e[_0x4b37c8(0x195)])(U))],q);function We(_0x51c45b){const _0xd5736=_0x4b37c8;let _0x51fb4e=_0x51c45b;return(_0x51fb4e==null?void 0x0:_0x51fb4e['drawingType'])===e[_0xd5736(0x22a)][_0xd5736(0x352)]&&typeof _0x51fb4e[_0xd5736(0x98)]==_0xd5736(0x2aa);}function Ge(_0x541c74,_0x3ea6c5,_0x576317=0x1,_0x4be7b1=0x0){const _0x28eddf=_0x4b37c8;let {top:_0x35209d,left:_0x29a6d4,bottom:_0x356e5e,right:_0x457135}=_0x541c74,_0x35e8cb=_0x457135-_0x29a6d4,_0x2267be=_0x356e5e-_0x35209d,{viewportScrollX:_0x25274d,viewportScrollY:_0x443f7f}=_0x3ea6c5[_0x28eddf(0x29f)](l[_0x28eddf(0x1d7)][_0x28eddf(0x1f9)]),{scaleX:_0x4bba8a,scaleY:_0x287811}=_0x3ea6c5[_0x28eddf(0xbb)](),_0x59977b=(_0x29a6d4-_0x25274d)*_0x4bba8a,_0x219d0e=(_0x35209d-_0x443f7f)*_0x287811,_0x2ec284=_0x35e8cb*_0x4bba8a,_0x84db5b=_0x2267be*_0x287811;return{'startX':_0x59977b,'startY':_0x219d0e,'endX':_0x59977b+_0x2ec284,'endY':_0x219d0e+_0x84db5b,'width':_0x2ec284,'height':_0x84db5b,'rotate':_0x4be7b1,'absolute':{'left':!0x1,'top':!0x1},'opacity':_0x576317};}function Ke(_0x25e362,_0xbb22b8){const _0x25dd5a=_0x4b37c8;return _0x25e362[_0x25dd5a(0x205)]===_0xbb22b8[_0x25dd5a(0x205)]&&(_0x25e362['subUnitId']??_0x25e362['unitId'])===(_0xbb22b8[_0x25dd5a(0x1a8)]??_0xbb22b8[_0x25dd5a(0x205)])&&_0x25e362[_0x25dd5a(0xda)]===_0xbb22b8[_0x25dd5a(0xda)];}function J(_0x50c8fe,_0x50c24e=0x0){const _0x27ccda=_0x4b37c8;return _0x50c8fe[_0x27ccda(0x146)](_0x18a4ca=>typeof _0x18a4ca=='number'&&Number[_0x27ccda(0x1e5)](_0x18a4ca))??_0x50c24e;}function qe(_0x358d9e,_0x3de20d){const _0x4b6b60=_0x4b37c8;var _0x4db177,_0x39e880,_0x5601a4,_0xa98948,_0x37b209,_0x17f37c,_0x415df8;let _0x2ebfb6=_0x3de20d==null||(_0x4db177=_0x3de20d[_0x4b6b60(0x24d)])==null?void 0x0:_0x4db177[_0x4b6b60(0x311)](_0x3de20d),_0x5169e9=J([_0x2ebfb6==null?void 0x0:_0x2ebfb6['width'],(_0x39e880=_0x358d9e[_0x4b6b60(0x13d)])==null?void 0x0:_0x39e880[_0x4b6b60(0x23c)],(_0x5601a4=_0x358d9e[_0x4b6b60(0x1fb)])==null||(_0x5601a4=_0x5601a4[_0x4b6b60(0x224)])==null?void 0x0:_0x5601a4[_0x4b6b60(0x23c)]]),_0x2992f3=J([_0x2ebfb6==null?void 0x0:_0x2ebfb6[_0x4b6b60(0x2b3)],(_0xa98948=_0x358d9e[_0x4b6b60(0x13d)])==null?void 0x0:_0xa98948[_0x4b6b60(0x2b3)],(_0x37b209=_0x358d9e[_0x4b6b60(0x1fb)])==null||(_0x37b209=_0x37b209[_0x4b6b60(0x224)])==null?void 0x0:_0x37b209['height']]),_0x51899b=J([_0x2ebfb6==null?void 0x0:_0x2ebfb6[_0x4b6b60(0x10f)],(_0x17f37c=_0x358d9e[_0x4b6b60(0x13d)])==null?void 0x0:_0x17f37c[_0x4b6b60(0x10f)]]),_0x119e15=J([_0x2ebfb6==null?void 0x0:_0x2ebfb6[_0x4b6b60(0x2e2)],(_0x415df8=_0x358d9e['transform'])==null?void 0x0:_0x415df8[_0x4b6b60(0x2e2)]]);return{'left':_0x51899b,'top':_0x119e15,'right':_0x51899b+_0x5169e9,'bottom':_0x119e15+_0x2992f3};}function Je(_0x5be46a,_0x938384){const _0x7d2a11=_0x4b37c8;if(!_0x5be46a||typeof _0x5be46a!='object')return;let _0x193cd9=_0x5be46a;if(typeof _0x193cd9[_0x7d2a11(0xe4)]==_0x7d2a11(0xa0)){let _0xe4b1b4=_0x193cd9['subscribeEvent'](_0x938384);return(0x0,e[_0x7d2a11(0x260)])(()=>{const _0x10d248=_0x7d2a11;var _0x18e1f6;if(typeof _0xe4b1b4[_0x10d248(0x104)]==_0x10d248(0xa0)){_0xe4b1b4[_0x10d248(0x104)]();return;}(_0x18e1f6=_0xe4b1b4[_0x10d248(0x19a)])==null||_0x18e1f6['call'](_0xe4b1b4);});}let _0xcec99=_0x5be46a;if(typeof _0xcec99[_0x7d2a11(0x119)]==_0x7d2a11(0xa0)){let _0x3e6221=_0xcec99[_0x7d2a11(0x119)](_0x938384);return(0x0,e['toDisposable'])(()=>{const _0x1ff1e1=_0x7d2a11;var _0x35a5aa;return(_0x35a5aa=_0x3e6221[_0x1ff1e1(0x19a)])==null?void 0x0:_0x35a5aa[_0x1ff1e1(0x311)](_0x3e6221);});}}let Y=class extends e['Disposable']{constructor(_0x325cc0,_0xb209f6,_0x4f10fb,_0x1d971f,_0x45cdcc,_0x56e458,_0x4c7858,_0x53a389,_0x1f9605,_0x464b07){const _0x2a3c86=_0x4b37c8;super(),this[_0x2a3c86(0x310)]=_0x325cc0,this[_0x2a3c86(0x329)]=_0xb209f6,this['_canvasFloatDomService']=_0x4f10fb,this[_0x2a3c86(0x26e)]=_0x1d971f,this[_0x2a3c86(0x306)]=_0x45cdcc,this[_0x2a3c86(0x1ae)]=_0x56e458,this[_0x2a3c86(0x20b)]=_0x4c7858,this[_0x2a3c86(0x328)]=_0x53a389,this['_localeService']=_0x1f9605,this['_staticRenderController']=_0x464b07,j(this,'_activeLayer',null),j(this,'_layoutChanged$',new f[(_0x2a3c86(0x178))]()),this['_init']();}[_0x4b37c8(0xfe)](_0x31f8e5){const _0x1baf34=_0x4b37c8;let _0x117967=this['_modelService'][_0x1baf34(0x10d)](_0x31f8e5['unitId'],_0x31f8e5['chartId']);if(!_0x117967)return(0x0,e[_0x1baf34(0x260)])(()=>{});let _0x15cc35=new M(_0x31f8e5[_0x1baf34(0x98)],_0x31f8e5[_0x1baf34(0x89)],(_0x45f9a7,_0x16a424)=>this[_0x1baf34(0x306)][_0x1baf34(0xfa)](_0x45f9a7,_0x16a424),()=>this['_getActiveRenderRect'](_0x31f8e5)),_0x32eb36=this[_0x1baf34(0x306)][_0x1baf34(0x29d)](n[_0x1baf34(0x1c3)]['Dom']);_0x32eb36[_0x1baf34(0x292)](_0x15cc35);let _0xd949cd=[_0x32eb36['on'](_0x1baf34(0x248),_0x3ade55=>{const _0xe7d085=_0x1baf34;let _0x5a1742=(0x0,t[_0xe7d085(0x232)])(_0x117967[_0xe7d085(0x269)],_0x3ade55[_0xe7d085(0x1d9)]);if(!_0x5a1742)return;let _0x3ac726=(0x0,t[_0xe7d085(0x22e)])(_0x5a1742[_0xe7d085(0x258)]);_0x3ac726&&this[_0xe7d085(0x20b)][_0xe7d085(0xae)](_['id'],{'unitId':_0x31f8e5[_0xe7d085(0x205)],'chartId':_0x31f8e5['chartId'],'drawingId':_0x31f8e5[_0xe7d085(0xda)],'route':_0x3ac726});}),_0x32eb36['on'](_0x1baf34(0x198),()=>{const _0x174bcb=_0x1baf34;this[_0x174bcb(0x20b)]['executeCommand'](_['id'],{'unitId':_0x31f8e5['unitId'],'chartId':_0x31f8e5[_0x174bcb(0x98)],'drawingId':_0x31f8e5[_0x174bcb(0xda)]});})],_0x46ba1d=!0x0;return _0xd949cd[_0x1baf34(0x353)](this['_subscribeRender'](_0x117967,_0x32eb36,_0x31f8e5,()=>_0x46ba1d)),(0x0,e['toDisposable'])(()=>{const _0x4a624f=_0x1baf34;_0x46ba1d=!0x1,this[_0x4a624f(0xfd)][_0x4a624f(0x1fc)](this[_0x4a624f(0xbe)](_0x31f8e5),!0x1),_0xd949cd['forEach'](_0x130934=>_0x130934[_0x4a624f(0x104)]()),_0x32eb36[_0x4a624f(0x104)](),_0x15cc35[_0x4a624f(0x104)]();});}[_0x4b37c8(0x104)](){const _0x1351a0=_0x4b37c8;this[_0x1351a0(0x245)](),this['_layoutChanged$'][_0x1351a0(0xa6)](),super[_0x1351a0(0x104)]();}[_0x4b37c8(0x1e9)](){const _0x352132=_0x4b37c8;this[_0x352132(0x185)](this[_0x352132(0x310)][_0x352132(0x12c)][_0x352132(0x119)](_0x354fdc=>{this['_handleFocus'](_0x354fdc);})),this['disposeWithMe'](this[_0x352132(0x310)]['remove$']['subscribe'](_0x13c522=>{const _0x4ae0bb=_0x352132;let _0x386440=this[_0x4ae0bb(0x222)];_0x386440&&_0x13c522[_0x4ae0bb(0x180)](_0xdc09cd=>Ke(_0xdc09cd,_0x386440))&&this[_0x4ae0bb(0x245)]();})),this[_0x352132(0x185)](this[_0x352132(0x310)][_0x352132(0xb9)][_0x352132(0x119)](_0x3a4ede=>{const _0x3a0320=_0x352132;let _0x34def6=this[_0x3a0320(0x222)];if(!_0x34def6){this[_0x3a0320(0xd0)](_0x3a4ede);return;}let _0x263938=_0x3a4ede[_0x3a0320(0x146)](_0x39574d=>Ke(_0x39574d,_0x34def6));if(_0x263938){let _0x1d9f08=this[_0x3a0320(0x310)]['getDrawingByParam']({'unitId':_0x263938['unitId'],'subUnitId':_0x263938[_0x3a0320(0x1a8)],'drawingId':_0x263938[_0x3a0320(0xda)]});this['_isDocChartDrawing'](_0x1d9f08)&&this[_0x3a0320(0x14b)](_0x1d9f08);}})),this[_0x352132(0x185)](this[_0x352132(0x328)][_0x352132(0x1e2)](e[_0x352132(0x211)]['UNIVER_DOC'])['subscribe'](_0x41480a=>{const _0x4cb8f1=_0x352132;let _0x4c9e21=this[_0x4cb8f1(0x222)];_0x4c9e21&&(_0x41480a==null?void 0x0:_0x41480a[_0x4cb8f1(0x34f)]())!==_0x4c9e21[_0x4cb8f1(0x205)]&&this['_deactivate']();}));}[_0x4b37c8(0x30a)](_0x1eb61a,_0x445c02,_0x2a415b,_0x197213){const _0x43e07c=_0x4b37c8;let _0x284fd1=()=>{const _0x292569=_0x395d;let {chartConfig:_0x54f336,chartStyle:_0x510bd4}=this['_renderService'][_0x292569(0x30e)](_0x1eb61a);Promise[_0x292569(0x207)](_0x445c02[_0x292569(0x2a2)]({'chartId':_0x1eb61a[_0x292569(0x98)],'config':_0x54f336,'style':_0x510bd4}))[_0x292569(0x16d)](()=>{const _0x4a31c2=_0x292569;_0x197213()&&this['_isActiveLayer'](_0x2a415b)&&this[_0x4a31c2(0xfd)][_0x4a31c2(0x1fc)](this[_0x4a31c2(0xbe)](_0x2a415b),!0x0);},()=>{});},_0x2fd0b7=(0x0,f[_0x43e07c(0x2bf)])([_0x1eb61a[_0x43e07c(0x269)][_0x43e07c(0x2f9)],_0x1eb61a[_0x43e07c(0x269)][_0x43e07c(0x1c7)],this[_0x43e07c(0x322)][_0x43e07c(0x321)]])['pipe']((0x0,f[_0x43e07c(0x31e)])(([_0x5e60fc])=>_0x5e60fc!=null))[_0x43e07c(0x119)](_0x284fd1),_0x118325=this[_0x43e07c(0x15c)][_0x43e07c(0x28c)]((0x0,f[_0x43e07c(0x31e)])(_0xe11f2c=>_0xe11f2c===_0x2a415b[_0x43e07c(0xda)]))[_0x43e07c(0x119)](_0x284fd1);return(0x0,e[_0x43e07c(0x260)])(()=>{const _0x5ae71e=_0x43e07c;_0x2fd0b7[_0x5ae71e(0x19a)](),_0x118325[_0x5ae71e(0x19a)]();});}[_0x4b37c8(0x142)](_0x102ea5){const _0x72d989=_0x4b37c8;let _0x397ea9=(_0x102ea5??[])[_0x72d989(0x31e)](_0x5658ab=>this[_0x72d989(0x11d)](_0x5658ab));if(_0x397ea9[_0x72d989(0x34d)]!==0x1){this['_deactivate']();return;}this[_0x72d989(0xd9)](_0x397ea9[0x0]);}[_0x4b37c8(0xd9)](_0x4be84b){const _0x1dc36e=_0x4b37c8;var _0x263448,_0x3cdaf5,_0x269082,_0x2e204b;let _0x40fec2=this[_0x1dc36e(0x8c)](_0x4be84b),_0x2bceaf=this['_getRenderRect'](_0x4be84b),_0x3dcf66=_0x4be84b[_0x1dc36e(0x1a8)]??_0x4be84b['unitId'];if(!_0x40fec2||!_0x2bceaf){this[_0x1dc36e(0x245)]();return;}if(((_0x263448=this[_0x1dc36e(0x222)])==null?void 0x0:_0x263448[_0x1dc36e(0x205)])===_0x4be84b[_0x1dc36e(0x205)]&&this[_0x1dc36e(0x222)][_0x1dc36e(0x1a8)]===_0x3dcf66&&this[_0x1dc36e(0x222)]['drawingId']===_0x4be84b['drawingId']&&this[_0x1dc36e(0x222)][_0x1dc36e(0x98)]===_0x4be84b[_0x1dc36e(0x98)]){this['_activeLayer']['scene']=_0x40fec2[_0x1dc36e(0x343)],this[_0x1dc36e(0x222)][_0x1dc36e(0x182)]=_0x40fec2[_0x1dc36e(0x182)],this['_activeLayer']['angle']=_0x40fec2[_0x1dc36e(0x2a5)],this[_0x1dc36e(0x222)][_0x1dc36e(0x124)]=_0x2bceaf,this[_0x1dc36e(0x222)]['position$'][_0x1dc36e(0x8b)](_0x40fec2[_0x1dc36e(0x2b4)]);return;}this[_0x1dc36e(0x245)]();let _0x2a727d=new f[(_0x1dc36e(0xad))](_0x40fec2['position']),_0x4104e9=this[_0x1dc36e(0x329)][_0x1dc36e(0x1c9)](_0x4be84b[_0x1dc36e(0x205)]),_0x22a761=_0x4104e9==null||(_0x269082=(_0x3cdaf5=_0x4104e9[_0x1dc36e(0xbd)])[_0x1dc36e(0x122)])==null?void 0x0:_0x269082[_0x1dc36e(0x311)](_0x3cdaf5);this[_0x1dc36e(0x193)][_0x1dc36e(0x191)]({'id':_0x4be84b['drawingId'],'componentKey':Ye,'position$':_0x2a727d,'unitId':_0x4be84b[_0x1dc36e(0x205)],'contentBox':{'wrapperInset':0x0,'contentInset':0x0},'props':{'chartId':_0x4be84b[_0x1dc36e(0x98)],'subUnitId':_0x3dcf66},'onPointerDown':_0x4cdeb3=>_0x22a761==null?void 0x0:_0x22a761[_0x1dc36e(0x2d6)](new PointerEvent(_0x4cdeb3['type'],_0x4cdeb3)),'onPointerMove':_0x31c937=>_0x22a761==null?void 0x0:_0x22a761[_0x1dc36e(0x2d6)](new PointerEvent(_0x31c937[_0x1dc36e(0x91)],_0x31c937)),'onPointerUp':_0x1e4353=>_0x22a761==null?void 0x0:_0x22a761[_0x1dc36e(0x2d6)](new PointerEvent(_0x1e4353[_0x1dc36e(0x91)],_0x1e4353)),'onWheel':_0x36b0d8=>_0x22a761==null?void 0x0:_0x22a761[_0x1dc36e(0x2d6)](new WheelEvent(_0x36b0d8[_0x1dc36e(0x91)],_0x36b0d8))}),this['_modelService'][_0x1dc36e(0x334)](_0x4be84b[_0x1dc36e(0x205)],_0x4be84b[_0x1dc36e(0x98)]);let _0x2ba4c1={'unitId':_0x4be84b['unitId'],'subUnitId':_0x3dcf66,'drawingId':_0x4be84b[_0x1dc36e(0xda)],'chartId':_0x4be84b[_0x1dc36e(0x98)],'scene':_0x40fec2[_0x1dc36e(0x343)],'sceneRect':_0x40fec2[_0x1dc36e(0x182)],'angle':_0x40fec2[_0x1dc36e(0x2a5)],'renderRect':_0x2bceaf,'position$':_0x2a727d,'positionObserver':(0x0,e[_0x1dc36e(0x260)])(()=>{})};this[_0x1dc36e(0x222)]=_0x2ba4c1;let _0x3f4c07=_0x4104e9==null||(_0x2e204b=_0x4104e9[_0x1dc36e(0x343)])==null?void 0x0:_0x2e204b[_0x1dc36e(0x29f)](l[_0x1dc36e(0x1d7)][_0x1dc36e(0x1f9)]);_0x2ba4c1[_0x1dc36e(0x174)]=Je(_0x3f4c07==null?void 0x0:_0x3f4c07[_0x1dc36e(0x32c)],()=>{const _0x3ec8d7=_0x1dc36e;this[_0x3ec8d7(0x283)](_0x4be84b[_0x3ec8d7(0x205)],_0x4be84b['drawingId'],_0x4be84b[_0x3ec8d7(0x98)]);})??(0x0,e[_0x1dc36e(0x260)])(()=>{});}[_0x4b37c8(0x245)](){const _0x1878e7=_0x4b37c8;let _0x41b143=this[_0x1878e7(0x222)];_0x41b143&&(this['_activeLayer']=null,_0x41b143[_0x1878e7(0x174)][_0x1878e7(0x104)](),this[_0x1878e7(0xfd)][_0x1878e7(0x1fc)]({'unitId':_0x41b143[_0x1878e7(0x205)],'subUnitId':_0x41b143[_0x1878e7(0x1a8)],'drawingId':_0x41b143[_0x1878e7(0xda)]},!0x1),this['_canvasFloatDomService'][_0x1878e7(0x235)](_0x41b143[_0x1878e7(0xda)]),this[_0x1878e7(0x26e)][_0x1878e7(0x107)](null),this[_0x1878e7(0x1ae)]['invalidateChart'](_0x41b143[_0x1878e7(0x205)],_0x41b143[_0x1878e7(0x98)],{'waitForConfig':!0x0}),_0x41b143['position$']['complete']());}[_0x4b37c8(0x283)](_0x7bdd01,_0x2e65a3,_0x13b496){const _0x100943=_0x4b37c8;let _0x1f8f8c=this['_activeLayer'];(_0x1f8f8c==null?void 0x0:_0x1f8f8c[_0x100943(0x205)])===_0x7bdd01&&_0x1f8f8c['drawingId']===_0x2e65a3&&_0x1f8f8c[_0x100943(0x98)]===_0x13b496&&_0x1f8f8c[_0x100943(0x316)][_0x100943(0x8b)](Ge(_0x1f8f8c[_0x100943(0x182)],_0x1f8f8c[_0x100943(0x343)],0x1,_0x1f8f8c[_0x100943(0x2a5)]));}[_0x4b37c8(0x14b)](_0x3bb8db){const _0x2a4a62=_0x4b37c8;let _0x491f84=this[_0x2a4a62(0x8c)](_0x3bb8db),_0xa157d3=this[_0x2a4a62(0x296)](_0x3bb8db);if(_0x491f84&&_0xa157d3){var _0x5bf13f;this[_0x2a4a62(0x222)]&&(this['_activeLayer'][_0x2a4a62(0x343)]=_0x491f84[_0x2a4a62(0x343)],this[_0x2a4a62(0x222)][_0x2a4a62(0x182)]=_0x491f84['sceneRect'],this[_0x2a4a62(0x222)][_0x2a4a62(0x2a5)]=_0x491f84[_0x2a4a62(0x2a5)],this[_0x2a4a62(0x222)][_0x2a4a62(0x124)]=_0xa157d3),(_0x5bf13f=this[_0x2a4a62(0x222)])==null||_0x5bf13f['position$'][_0x2a4a62(0x8b)](_0x491f84[_0x2a4a62(0x2b4)]),this[_0x2a4a62(0x15c)][_0x2a4a62(0x8b)](_0x3bb8db[_0x2a4a62(0xda)]);}}[_0x4b37c8(0xd0)](_0x508e88){const _0xbe16fa=_0x4b37c8;let _0x3be131=this['_drawingManagerService']['getFocusDrawings']()[_0xbe16fa(0x31e)](_0x544136=>this[_0xbe16fa(0x11d)](_0x544136));_0x3be131[_0xbe16fa(0x34d)]===0x1&&_0x508e88['some'](_0x32ee67=>Ke(_0x32ee67,_0x3be131[0x0]))&&this[_0xbe16fa(0xd9)](_0x3be131[0x0]);}[_0x4b37c8(0x8c)](_0x1d74f1){const _0x41755c=_0x4b37c8;let _0x3b6d20=_0x1d74f1[_0x41755c(0x13d)];if(!_0x3b6d20)return null;let _0x2e513b=this[_0x41755c(0x329)]['getRenderUnitById'](_0x1d74f1['unitId']);if(!(_0x2e513b!=null&&_0x2e513b['scene']))return null;let _0x20f9af=(0x0,m[_0x41755c(0x190)])(_0x1d74f1),_0x5cb7db=_0x2e513b['scene']['getObjectIncludeInGroup'](_0x20f9af),_0x51edb7=qe(_0x1d74f1,_0x5cb7db),_0x1d72a3=_0x51edb7['right']-_0x51edb7['left'],_0x382052=_0x51edb7['bottom']-_0x51edb7[_0x41755c(0x2e2)];if(_0x1d72a3<=0x0||_0x382052<=0x0)return null;let _0x4f6b9c=J([_0x5cb7db==null?void 0x0:_0x5cb7db['angle'],_0x3b6d20[_0x41755c(0x2a5)]]);return{'scene':_0x2e513b['scene'],'sceneRect':_0x51edb7,'angle':_0x4f6b9c,'position':Ge(_0x51edb7,_0x2e513b[_0x41755c(0x343)],0x1,_0x4f6b9c)};}[_0x4b37c8(0x296)](_0xf0403){const _0x3f740f=_0x4b37c8;var _0x1d8617,_0x112891,_0x5ed0bd,_0x1de62a;let _0x32103c=((_0x1d8617=_0xf0403[_0x3f740f(0x13d)])==null?void 0x0:_0x1d8617[_0x3f740f(0x23c)])??((_0x112891=_0xf0403[_0x3f740f(0x1fb)])==null||(_0x112891=_0x112891[_0x3f740f(0x224)])==null?void 0x0:_0x112891[_0x3f740f(0x23c)])??0x0,_0x587919=((_0x5ed0bd=_0xf0403[_0x3f740f(0x13d)])==null?void 0x0:_0x5ed0bd[_0x3f740f(0x2b3)])??((_0x1de62a=_0xf0403[_0x3f740f(0x1fb)])==null||(_0x1de62a=_0x1de62a[_0x3f740f(0x224)])==null?void 0x0:_0x1de62a['height'])??0x0;return _0x32103c<=0x0||_0x587919<=0x0?null:{'width':Math['max'](0x1,Math['round'](_0x32103c)),'height':Math[_0x3f740f(0x253)](0x1,Math[_0x3f740f(0x1cc)](_0x587919))};}[_0x4b37c8(0x2d5)](_0x299368){const _0x5ecb9c=_0x4b37c8;let _0x191b19=this[_0x5ecb9c(0x222)];if((_0x191b19==null?void 0x0:_0x191b19['unitId'])===_0x299368['unitId']&&_0x191b19['subUnitId']===(_0x299368[_0x5ecb9c(0x1a8)]??_0x299368[_0x5ecb9c(0x205)])&&_0x191b19[_0x5ecb9c(0xda)]===_0x299368[_0x5ecb9c(0xda)]&&_0x191b19[_0x5ecb9c(0x98)]===_0x299368[_0x5ecb9c(0x98)])return _0x191b19['renderRect'];let _0x25da46=this[_0x5ecb9c(0x310)][_0x5ecb9c(0x1c1)](this['_getDrawingSearch'](_0x299368));return this[_0x5ecb9c(0x11d)](_0x25da46)?this[_0x5ecb9c(0x296)](_0x25da46):null;}[_0x4b37c8(0xbe)](_0xf48222){const _0x47ef35=_0x4b37c8;return{'unitId':_0xf48222[_0x47ef35(0x205)],'subUnitId':_0xf48222[_0x47ef35(0x1a8)]??_0xf48222[_0x47ef35(0x205)],'drawingId':_0xf48222[_0x47ef35(0xda)]};}['_isActiveLayer'](_0x30229b){const _0x51a408=_0x4b37c8;let _0x591b73=this[_0x51a408(0x222)];return(_0x591b73==null?void 0x0:_0x591b73['unitId'])===_0x30229b[_0x51a408(0x205)]&&_0x591b73['subUnitId']===(_0x30229b[_0x51a408(0x1a8)]??_0x30229b['unitId'])&&_0x591b73[_0x51a408(0xda)]===_0x30229b['drawingId']&&_0x591b73['chartId']===_0x30229b[_0x51a408(0x98)];}[_0x4b37c8(0x11d)](_0xfaa98a){const _0x35f7b9=_0x4b37c8;let _0xa3a00b=_0xfaa98a;return(_0xa3a00b==null?void 0x0:_0xa3a00b[_0x35f7b9(0x286)])===e[_0x35f7b9(0x22a)][_0x35f7b9(0x352)]&&typeof _0xa3a00b[_0x35f7b9(0x98)]==_0x35f7b9(0x2aa);}};Y=S([x(0x0,m[_0x4b37c8(0xf4)]),x(0x1,h[_0x4b37c8(0x2b1)]),x(0x2,(0x0,e['Inject'])(i[_0x4b37c8(0x206)])),x(0x3,(0x0,e[_0x4b37c8(0x195)])(s[_0x4b37c8(0xca)])),x(0x4,(0x0,e['Inject'])(P)),x(0x5,(0x0,e['Inject'])(U)),x(0x6,e[_0x4b37c8(0x356)]),x(0x7,e[_0x4b37c8(0x1cf)]),x(0x8,(0x0,e[_0x4b37c8(0x195)])(e['LocaleService'])),x(0x9,(0x0,e[_0x4b37c8(0x195)])(q))],Y);const Ye=_0x4b37c8(0x332),Xe=_0x4fe949=>{const _0x28a109=_0x4b37c8;let {unitId:_0x4a9088,subUnitId:_0x93b496,floatDomId:_0xce198c,chartId:_0x43a786,context:_0x18123a}=_0x4fe949,_0x2f3855=(0x0,i[_0x28a109(0x252)])(Y);return(0x0,a[_0x28a109(0xcf)])(()=>{const _0x37aac4=_0x28a109;let _0x599337=_0x18123a[_0x37aac4(0x89)][_0x37aac4(0xe9)];if(!_0x599337)return;let _0x5d229c=_0x2f3855[_0x37aac4(0xfe)]({'unitId':_0x4a9088,'subUnitId':_0x93b496,'drawingId':_0xce198c,'chartId':_0x43a786,'root':_0x599337});return()=>_0x5d229c[_0x37aac4(0x104)]();},[_0x2f3855,_0x43a786,_0x18123a[_0x28a109(0x89)],_0xce198c,_0x93b496,_0x4a9088]),null;};let X=class extends e['Disposable']{constructor(_0x4e801d,_0x3849e2){const _0x4da014=_0x4b37c8;super(),this[_0x4da014(0x310)]=_0x4e801d,this[_0x4da014(0x1ae)]=_0x3849e2;}[_0x4b37c8(0x238)](_0x4cfde5,_0x5d8e6b,_0x19a14e,_0x372745){const _0x26cbd1=_0x4b37c8;let _0xd33e2a=this[_0x26cbd1(0xe5)](_0x4cfde5,_0x5d8e6b);if(_0x19a14e[_0x26cbd1(0x26f)](),!_0xd33e2a)return{'dispose':()=>_0x19a14e[_0x26cbd1(0x26f)]()};let _0x2d6d34={'unitId':_0x4cfde5,'chartId':_0xd33e2a[_0x26cbd1(0x98)],'width':Math[_0x26cbd1(0x253)](0x1,Math['round'](_0x372745[_0x26cbd1(0x23c)])),'height':Math[_0x26cbd1(0x253)](0x1,Math[_0x26cbd1(0x1cc)](_0x372745[_0x26cbd1(0x2b3)])),'mode':_0x26cbd1(0x18b)},_0x4a75c7=this['_snapshotRenderService']['requestSnapshot'](_0x2d6d34);this[_0x26cbd1(0x285)](_0x19a14e,_0x4a75c7);let _0xc03b0b=this[_0x26cbd1(0x1ae)][_0x26cbd1(0x261)][_0x26cbd1(0x119)](_0x20078f=>{const _0x40d453=_0x26cbd1;_0x20078f[_0x40d453(0x2ee)]===_0x4a75c7[_0x40d453(0x2ee)]&&this[_0x40d453(0x285)](_0x19a14e,_0x20078f);});return{'dispose':()=>{const _0x111695=_0x26cbd1;_0xc03b0b['unsubscribe'](),_0x19a14e[_0x111695(0x26f)]();}};}['_getDrawing'](_0x560287,_0x16411f){const _0x38ed49=_0x4b37c8;let _0x18c054={'unitId':_0x560287,'subUnitId':_0x560287,'drawingId':_0x16411f},_0x344f3a=this['_drawingManagerService']['getDrawingByParam'](_0x18c054);return!_0x344f3a||_0x344f3a[_0x38ed49(0x286)]!==e[_0x38ed49(0x22a)][_0x38ed49(0x352)]||!_0x344f3a['chartId']?null:_0x344f3a;}['_renderEntry'](_0x3799fe,_0x1678cf){const _0xa6ed32=_0x4b37c8;if(_0x1678cf[_0xa6ed32(0x2df)]!=='ready'||!_0x1678cf[_0xa6ed32(0x33e)])return;let _0x43f9f9=document[_0xa6ed32(0x349)](_0xa6ed32(0x171));_0x43f9f9[_0xa6ed32(0x159)]=_0x1678cf[_0xa6ed32(0x33e)],_0x43f9f9[_0xa6ed32(0x1af)]='',_0x43f9f9['style'][_0xa6ed32(0x259)]=_0xa6ed32(0x204),_0x43f9f9[_0xa6ed32(0x308)][_0xa6ed32(0x23c)]=_0xa6ed32(0x13e),_0x43f9f9[_0xa6ed32(0x308)][_0xa6ed32(0x2b3)]=_0xa6ed32(0x13e),_0x3799fe[_0xa6ed32(0x26f)](_0x43f9f9);}};X=S([x(0x0,m['IDrawingManagerService']),x(0x1,(0x0,e[_0x4b37c8(0x195)])(U))],X);const Ze=_0x1e7add=>{const _0x152104=_0x4b37c8;let {unitId:_0x3413ab,floatDomId:_0xd8f67b,context:_0x56c427}=_0x1e7add,_0x47dee3=(0x0,i[_0x152104(0x252)])(X);return(0x0,a[_0x152104(0xcf)])(()=>{const _0x37e3ba=_0x152104;let _0x3b70e4=_0x56c427['root'][_0x37e3ba(0xe9)];if(!_0x3b70e4)return;let _0x2b434a={'width':Number[_0x37e3ba(0xab)](_0x3b70e4[_0x37e3ba(0x308)][_0x37e3ba(0x23c)])||_0x3b70e4['clientWidth']||0x1,'height':Number[_0x37e3ba(0xab)](_0x3b70e4[_0x37e3ba(0x308)]['height'])||_0x3b70e4[_0x37e3ba(0x1d2)]||0x1},_0x358220=_0x47dee3[_0x37e3ba(0x238)](_0x3413ab,_0xd8f67b,_0x3b70e4,_0x2b434a);return()=>_0x358220[_0x37e3ba(0x104)]();},[_0x56c427[_0x152104(0x89)],_0xd8f67b,_0x47dee3,_0x3413ab]),null;};let Z=class extends e[_0x4b37c8(0x1b3)]{constructor(_0x5dd6da){const _0x1d2108=_0x4b37c8;super(),this[_0x1d2108(0xf6)]=_0x5dd6da,this[_0x1d2108(0x92)]();}[_0x4b37c8(0x92)](){const _0x588665=_0x4b37c8;this['disposeWithMe'](this[_0x588665(0xf6)]['register'](z,Te)),this['disposeWithMe'](this['_componentManager'][_0x588665(0x2ad)](v,b)),this[_0x588665(0x185)](this['_componentManager'][_0x588665(0x2ad)](ue,fe)),this[_0x588665(0x185)](this[_0x588665(0xf6)]['register'](e[_0x588665(0x147)],Ze)),this['disposeWithMe'](this['_componentManager'][_0x588665(0x2ad)](Ye,Xe));}};Z=S([x(0x0,(0x0,e[_0x4b37c8(0x195)])(i['ComponentManager']))],Z);let Q=class extends e[_0x4b37c8(0x1b3)]{constructor(_0x1c744a,_0x5a3f66,_0x2ac0f8,_0x4c6ffd,_0xcd42,_0x302e87,_0x32566f){const _0x70afba=_0x4b37c8;super(),this[_0x70afba(0x202)]=_0x1c744a,this[_0x70afba(0x322)]=_0x5a3f66,this[_0x70afba(0x1e0)]=_0x2ac0f8,this['_docSelectionManagerService']=_0x4c6ffd,this[_0x70afba(0x156)]=_0xcd42,this[_0x70afba(0x16e)]=_0x302e87,this[_0x70afba(0x20b)]=_0x32566f,this[_0x70afba(0xf1)](),this[_0x70afba(0x135)]();}[_0x4b37c8(0x14e)](_0x34d718){const _0x328512=_0x4b37c8;let _0x44dec2=null,_0x63c374=()=>{const _0x1ea03e=_0x395d;_0x44dec2==null||_0x44dec2[_0x1ea03e(0x104)](),_0x44dec2=null;};return _0x44dec2=this[_0x328512(0x202)][_0x328512(0x1ea)]({'id':_0x328512(0x197),'title':{'title':this[_0x328512(0x322)]['t'](_0x328512(0x255))},'width':0x2a8,'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'children':{'label':{'name':z,'props':{'defaultChartType':(_0x34d718==null?void 0x0:_0x34d718['defaultChartType'])??(_0x34d718==null?void 0x0:_0x34d718[_0x328512(0x2c6)]),'defaultTableText':_0x34d718==null?void 0x0:_0x34d718[_0x328512(0x323)],'insertOptions':{'insertRange':(_0x34d718==null?void 0x0:_0x34d718[_0x328512(0x219)])??this[_0x328512(0x16f)]()},'onCancel':_0x63c374,'onInserted':_0x63c374}}},'onClose':_0x63c374}),!0x0;}[_0x4b37c8(0x1d4)](_0x180fc0){const _0x54a9a8=_0x4b37c8;let _0x3ce8e8=null,_0x216503=()=>{const _0x4749df=_0x395d;_0x3ce8e8==null||_0x3ce8e8[_0x4749df(0x104)](),_0x3ce8e8=null;};return _0x3ce8e8=this[_0x54a9a8(0x202)][_0x54a9a8(0x1ea)]({'id':de,'title':{'title':this[_0x54a9a8(0x322)]['t'](_0x54a9a8(0x255))},'width':0x3d4,'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'children':{'label':{'name':ue,'props':{..._0x180fc0,'onClose':_0x216503}}},'onClose':_0x216503}),!0x0;}[_0x4b37c8(0xf1)](){const _0x418ed7=_0x4b37c8;this[_0x418ed7(0x16e)]['mergeMenu'](Re);}[_0x4b37c8(0x135)](){const _0x3a54e6=_0x4b37c8;this[_0x3a54e6(0x185)](this[_0x3a54e6(0x20b)][_0x3a54e6(0x280)](_0x347970=>{const _0x4a8209=_0x3a54e6;if(_0x347970['id']===g['id']){this['openInsertDialog'](_0x347970[_0x4a8209(0x97)]);return;}if(_0x347970['id']===_['id']){let _0x3f209b=_0x347970[_0x4a8209(0x97)];_0x3f209b&&this['openEditorDialog'](_0x3f209b);}}));}[_0x4b37c8(0x16f)](){const _0x343f54=_0x4b37c8;let _0x21e707=this[_0x343f54(0x1e0)][_0x343f54(0x256)](e['UniverInstanceType'][_0x343f54(0x327)]);if(!_0x21e707)return;let _0x90659d=_0x21e707[_0x343f54(0x34f)](),_0x5733f5=null;try{_0x5733f5=this[_0x343f54(0x156)][_0x343f54(0x2f2)](_0x90659d);}catch{_0x5733f5=null;}if(_0x5733f5){let _0x3a1dea={'startOffset':_0x5733f5['startOffset'],'endOffset':_0x5733f5['endOffset'],'collapsed':_0x5733f5[_0x343f54(0x293)]===_0x5733f5['endOffset'],'segmentId':_0x5733f5['segmentId']??''};return L(_0x21e707,_0x3a1dea)?_0x3a1dea:void 0x0;}let _0x455f19=[...this[_0x343f54(0x18d)][_0x343f54(0xa4)]()??[]];if(_0x455f19['length']!==0x1)return;let _0x4c8523=this['_docSelectionManagerService'][_0x343f54(0x2a4)]()??_0x455f19[0x0];if(!_0x4c8523||!_0x4c8523['collapsed']||_0x4c8523['startOffset']==null)return;let _0x28e230={..._0x4c8523,'segmentId':_0x4c8523[_0x343f54(0x145)]??''};return L(_0x21e707,_0x28e230)?_0x28e230:void 0x0;}};Q=S([x(0x0,(0x0,e['Inject'])(i[_0x4b37c8(0xce)])),x(0x1,(0x0,e[_0x4b37c8(0x195)])(e[_0x4b37c8(0x300)])),x(0x2,e['IUniverInstanceService']),x(0x3,(0x0,e[_0x4b37c8(0x195)])(c[_0x4b37c8(0x335)])),x(0x4,(0x0,e[_0x4b37c8(0x195)])(c['DocContentInsertService'])),x(0x5,i[_0x4b37c8(0x1c6)]),x(0x6,e[_0x4b37c8(0x356)])],Q);let $=class extends e[_0x4b37c8(0x18a)]{constructor(_0x318cca=B,_0x2f8cdc,_0x5734f5,_0x3e3eab){const _0x150dad=_0x4b37c8;super(),this[_0x150dad(0xbc)]=_0x318cca,this[_0x150dad(0x217)]=_0x2f8cdc,this[_0x150dad(0x1f5)]=_0x5734f5,this[_0x150dad(0x20b)]=_0x3e3eab;let {..._0x2be5f2}=(0x0,e[_0x150dad(0x208)])({},B,this['_config']);this[_0x150dad(0x1f5)][_0x150dad(0x151)](Ee,_0x2be5f2),this[_0x150dad(0xee)](),(0x0,n[_0x150dad(0x1e7)])(n[_0x150dad(0x2f5)]);}[_0x4b37c8(0xa3)](){const _0x10b224=_0x4b37c8;let _0x577dbe=this[_0x10b224(0x217)];[[Z],[R],[C],[w,{'useClass':T}],[Y],[X],[P],[U],[W],[q],[V],[H],[Q]][_0x10b224(0x2de)](_0x50615d=>_0x577dbe[_0x10b224(0x1ef)](_0x50615d)),(0x0,e[_0x10b224(0x2ab)])(_0x577dbe,[[R],[C],[w],[Y],[X],[P],[U],[V],[H]]),this[_0x10b224(0x217)][_0x10b224(0x337)](Z);}['onReady'](){const _0x1fc531=_0x4b37c8;this[_0x1fc531(0x217)][_0x1fc531(0x337)](W),this[_0x1fc531(0x217)]['get'](q),this['_injector'][_0x1fc531(0x337)](V),this[_0x1fc531(0x217)][_0x1fc531(0x337)](H),this[_0x1fc531(0x217)][_0x1fc531(0x337)](Q);}[_0x4b37c8(0xee)](){const _0x9f3616=_0x4b37c8;[g,_][_0x9f3616(0x2de)](_0x1a827a=>{const _0x4c83be=_0x9f3616;this[_0x4c83be(0x185)](this[_0x4c83be(0x20b)]['registerCommand'](_0x1a827a));});}};j($,_0x4b37c8(0x91),e[_0x4b37c8(0x211)][_0x4b37c8(0x327)]),j($,_0x4b37c8(0xe1),_0x4b37c8(0x1d3)),j($,_0x4b37c8(0x25f),ze),j($,_0x4b37c8(0x2db),Be),$=S([(0x0,e[_0x4b37c8(0x15b)])(p['UniverLicensePlugin'],c['UniverDocsPlugin'],m['UniverDrawingPlugin'],h[_0x4b37c8(0x26a)],u[_0x4b37c8(0x12d)],l[_0x4b37c8(0x130)],t['UniverChartUIPlugin'],s[_0x4b37c8(0x28f)],d['UniverDocsDrawingUIPlugin']),x(0x1,(0x0,e[_0x4b37c8(0x195)])(e['Injector'])),x(0x2,e[_0x4b37c8(0x11e)]),x(0x3,e[_0x4b37c8(0x356)])],$),exports[_0x4b37c8(0x331)]=Ee,exports[_0x4b37c8(0xdc)]=Ye,exports[_0x4b37c8(0x13f)]=De,exports[_0x4b37c8(0x2c8)]=v,exports['DOC_CHART_DATA_EDITOR_DIALOG_ID']=_0x4b37c8(0x1f4),exports[_0x4b37c8(0x226)]=ue,exports[_0x4b37c8(0x304)]=de,exports['DOC_CHART_INSERT_BELOW_MENU_ID']=Ne,exports['DOC_CHART_INSERT_MENU_ID']=G,exports[_0x4b37c8(0x1a5)]=z,exports['DocActiveChart']=Xe,Object[_0x4b37c8(0x88)](exports,'DocChartActiveRenderService',{'enumerable':!0x0,'get':function(){return Y;}}),Object['defineProperty'](exports,_0x4b37c8(0xdf),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x4b37c8(0x88)](exports,_0x4b37c8(0x307),{'enumerable':!0x0,'get':function(){return C;}}),exports[_0x4b37c8(0x17c)]=b,exports[_0x4b37c8(0x320)]=y,Object[_0x4b37c8(0x88)](exports,_0x4b37c8(0x1a3),{'enumerable':!0x0,'get':function(){return H;}}),exports['DocChartEditPanel']=ie,exports[_0x4b37c8(0xd3)]=fe,exports[_0x4b37c8(0x2fe)]=Le,exports['DocChartInsertMenuItemFactory']=K,exports[_0x4b37c8(0x2a7)]=Te,exports[_0x4b37c8(0xed)]=Ie,Object[_0x4b37c8(0x88)](exports,'DocChartInsertService',{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x4b37c8(0x88)](exports,'DocChartPrintService',{'enumerable':!0x0,'get':function(){return X;}}),Object[_0x4b37c8(0x88)](exports,'DocChartRenderService',{'enumerable':!0x0,'get':function(){return P;}}),Object['defineProperty'](exports,'DocChartSnapshotRefreshController',{'enumerable':!0x0,'get':function(){return W;}}),Object[_0x4b37c8(0x88)](exports,_0x4b37c8(0xd5),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x4b37c8(0x88)](exports,_0x4b37c8(0x1b8),{'enumerable':!0x0,'get':function(){return T;}}),exports[_0x4b37c8(0x93)]=M,exports['DocPrintChart']=Ze,exports[_0x4b37c8(0x106)]=Re,exports[_0x4b37c8(0x266)]=je,exports[_0x4b37c8(0xeb)]=w,exports['OpenDocChartEditorDialogOperation']=_,exports[_0x4b37c8(0x196)]=g,Object['defineProperty'](exports,'UniverDocsChartUIPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x4b37c8(0x25e)]=B,exports['getDocChartInsertDisabledObservable']=Pe;