vue-data-ui 3.28.6 → 3.28.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BaseDraggableDialog-BK7dj9O6.js +1 -0
- package/dist/BaseIcon-CoY0vuL3.js +1 -0
- package/dist/{BaseLegendToggle-aT9fOoGO.js → BaseLegendToggle-BIzyyI1h.js} +1 -1
- package/dist/{BaseZoomControls-1OdFWrHW.js → BaseZoomControls-JSk9zW3D.js} +1 -1
- package/dist/ColorPicker-CwYfNvwH.js +1 -0
- package/dist/{DataTable-5Ug6gMAX.js → DataTable-Dof6yhO7.js} +1 -1
- package/dist/{HillActions-C8am4I5c.js → HillActions-BMH9pSmQ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-CawVDtNj.js → NonSvgPenAndPaper-DXdAh1Sz.js} +1 -1
- package/dist/{PackageVersion-u-p5bCcj.js → PackageVersion-Bczw6rsP.js} +1 -1
- package/dist/PenAndPaper-DoNTA-SV.js +1 -0
- package/dist/SlicerPreview-ChKbdZSU.js +1 -0
- package/dist/UserOptions-DW84OKKr.js +1 -0
- package/dist/XyAnalysisOptions-U4UJx51x.js +1 -0
- package/dist/annotationSlots-OLiW25XN.js +1 -0
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-graph.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/package-CNWVs68D.js +1 -0
- package/dist/{render-common-CTaC-_Nw.js → render-common-DY4sNXDz.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +96 -0
- package/dist/types/vue-ui-xy.d.ts +4 -0
- package/dist/useConfig-By3Vb5kz.js +1 -0
- package/dist/{useObjectBindings-BCi3Az41.js → useObjectBindings-0vvvimYP.js} +1 -1
- package/dist/usePanZoom-CE6Ofyy8.js +1 -0
- package/dist/utils.js +1 -1
- package/dist/vue-data-ui-BWqplouA.js +1 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DmRrbXjK.js +19 -0
- package/dist/{vue-ui-accordion-D4FHxzsL.js → vue-ui-accordion-DFxSW8ET.js} +1 -1
- package/dist/vue-ui-age-pyramid-CJJIp5gY.js +1 -0
- package/dist/{vue-ui-annotator-DuAQovkf.js → vue-ui-annotator-BnR2XnsL.js} +1 -1
- package/dist/vue-ui-bullet-Br7H7FSM.js +34 -0
- package/dist/vue-ui-bump-DCDHNvWE.js +8 -0
- package/dist/vue-ui-candlestick-C_swW8gM.js +22 -0
- package/dist/{vue-ui-carousel-table-CDgmtbuI.js → vue-ui-carousel-table-BP_yVdDm.js} +1 -1
- package/dist/vue-ui-chestnut-CIGNqBsT.js +1 -0
- package/dist/vue-ui-chord-DZRFBkRJ.js +21 -0
- package/dist/vue-ui-circle-pack-CtdPeMsY.js +13 -0
- package/dist/{vue-ui-cursor-9khzj4l-.js → vue-ui-cursor-DRQc_V2R.js} +1 -1
- package/dist/vue-ui-dag-Cj0CcntI.js +9 -0
- package/dist/vue-ui-dashboard-HyzHqAtX.js +1 -0
- package/dist/{vue-ui-digits-DdrPl8eP.js → vue-ui-digits-CfdB0vaP.js} +1 -1
- package/dist/vue-ui-donut-Cv-bYyBN.js +47 -0
- package/dist/{vue-ui-donut-BbJFmKZh.js → vue-ui-donut-Dy4j7B9b.js} +1 -1
- package/dist/vue-ui-donut-evolution-DL112anx.js +2 -0
- package/dist/vue-ui-dumbbell-owG24VsQ.js +9 -0
- package/dist/vue-ui-flow-BMNIydqI.js +3 -0
- package/dist/vue-ui-funnel-BsVS3vuI.js +1 -0
- package/dist/vue-ui-galaxy-B8HgdBjc.js +1 -0
- package/dist/vue-ui-gauge-B1A_NFY6.js +1 -0
- package/dist/vue-ui-geo-_TG4jaV9.js +1 -0
- package/dist/{vue-ui-gizmo-kebiFGRl.js → vue-ui-gizmo-D0QjzIGt.js} +1 -1
- package/dist/vue-ui-graph-DScVnTzu.js +7 -0
- package/dist/vue-ui-heatmap-BbQseEbM.js +1 -0
- package/dist/vue-ui-hill-D3V84h_t.js +1 -0
- package/dist/vue-ui-history-plot-Bx4WYG6U.js +2 -0
- package/dist/vue-ui-horizontal-bar-Do0HJy4f.js +4 -0
- package/dist/{vue-ui-kpi-D4q8R7Uq.js → vue-ui-kpi-CF7pAl08.js} +1 -1
- package/dist/{vue-ui-label-0lSeoxvv.js → vue-ui-label-W0oz08pp.js} +1 -1
- package/dist/{vue-ui-mini-loader-C6vhrfx3.js → vue-ui-mini-loader-OLYDdN3T.js} +1 -1
- package/dist/vue-ui-molecule-bAMGCA2Y.js +1 -0
- package/dist/vue-ui-mood-radar-CFpgxjuR.js +1 -0
- package/dist/vue-ui-nested-donuts-CWY26iKX.js +19 -0
- package/dist/vue-ui-onion-DsBUqL_c.js +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-BF3gO85b.js +9 -0
- package/dist/vue-ui-quadrant-BkNG2LGm.js +2 -0
- package/dist/vue-ui-quick-chart-CYxvgVpD.js +17 -0
- package/dist/vue-ui-radar-0H8CiLmc.js +1 -0
- package/dist/{vue-ui-rating-7RAJA7I4.js → vue-ui-rating-B9HeTCLa.js} +1 -1
- package/dist/vue-ui-relation-circle-B0BM4xf8.js +1 -0
- package/dist/vue-ui-ridgeline-D-fDuE3y.js +2 -0
- package/dist/vue-ui-rings-UtlBiaZZ.js +1 -0
- package/dist/vue-ui-scatter-CduaARRt.js +9 -0
- package/dist/{vue-ui-skeleton-C0oElPXz.js → vue-ui-skeleton-an0peDis.js} +1 -1
- package/dist/{vue-ui-smiley-BdhxsPGW.js → vue-ui-smiley-Cht1imV-.js} +1 -1
- package/dist/{vue-ui-spark-trend-CRQ5JfVc.js → vue-ui-spark-trend-DCP7blHB.js} +1 -1
- package/dist/{vue-ui-sparkbar-BTclK0-F.js → vue-ui-sparkbar-DT3sDgda.js} +1 -1
- package/dist/{vue-ui-sparkgauge-zNl9Xmt3.js → vue-ui-sparkgauge-AQt2L5dI.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-ynyE3DOc.js → vue-ui-sparkhistogram-a_jc2Dv2.js} +1 -1
- package/dist/{vue-ui-sparkline-CtsijvdW.js → vue-ui-sparkline-D2-KcHAU.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-RHlqUD-0.js → vue-ui-sparkstackbar-CBI4S5cu.js} +1 -1
- package/dist/vue-ui-stackbar-DS_31-a3.js +29 -0
- package/dist/vue-ui-stackline-CuxohB0U.js +39 -0
- package/dist/vue-ui-strip-plot-bYGhsPA5.js +2 -0
- package/dist/{vue-ui-table-heatmap-IYPQ7LMg.js → vue-ui-table-heatmap-D6gpmHg8.js} +1 -1
- package/dist/{vue-ui-table-BetuN-ZS.js → vue-ui-table-lzolsJ_n.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Fdjb-U1P.js → vue-ui-table-sparkline-By319cB8.js} +1 -1
- package/dist/vue-ui-thermometer-B3Uv3aWc.js +1 -0
- package/dist/{vue-ui-timer-BKqG5HxS.js → vue-ui-timer-C6Pevf4N.js} +2 -2
- package/dist/vue-ui-tiremarks-DeNdCFVD.js +1 -0
- package/dist/vue-ui-treemap-Ck9_llHA.js +1 -0
- package/dist/vue-ui-waffle-BW2SacnV.js +1 -0
- package/dist/vue-ui-wheel-BXDhx5bf.js +1 -0
- package/dist/vue-ui-word-cloud-DKPtoruY.js +4 -0
- package/dist/vue-ui-world-D9vpDbN7.js +19 -0
- package/dist/vue-ui-xy-CMckdUft.js +27 -0
- package/dist/{vue-ui-xy-Y_rIBQj0.js → vue-ui-xy-Df5gIADT.js} +1 -1
- package/dist/vue-ui-xy-canvas-CBrKi3nN.js +9 -0
- package/package.json +1 -1
- package/dist/BaseDraggableDialog-9d30Yx8c.js +0 -1
- package/dist/BaseIcon-fYK0iID8.js +0 -1
- package/dist/ColorPicker-DEJOjcmD.js +0 -1
- package/dist/PenAndPaper-r50tK3S4.js +0 -1
- package/dist/SlicerPreview-DYuyE9u9.js +0 -1
- package/dist/UserOptions-Em_JgDXM.js +0 -1
- package/dist/annotationSlots-RvQBEO9-.js +0 -1
- package/dist/package-BdTnZDoM.js +0 -1
- package/dist/useConfig-D3ZfFSE5.js +0 -1
- package/dist/usePanZoom-BdjP5Suc.js +0 -1
- package/dist/vue-data-ui-DRkivgOZ.js +0 -1
- package/dist/vue-ui-3d-bar-BeM22sZn.js +0 -19
- package/dist/vue-ui-age-pyramid-BpkEVmpT.js +0 -1
- package/dist/vue-ui-bullet-Cx9Noxp_.js +0 -34
- package/dist/vue-ui-bump-DIjSKk8F.js +0 -8
- package/dist/vue-ui-candlestick-Cfd63wqQ.js +0 -22
- package/dist/vue-ui-chestnut-24bmc5Rq.js +0 -1
- package/dist/vue-ui-chord-fQZQ9hjU.js +0 -21
- package/dist/vue-ui-circle-pack-C1CbpBNe.js +0 -13
- package/dist/vue-ui-dag-B6QkUUCe.js +0 -9
- package/dist/vue-ui-dashboard-BBaAZBSj.js +0 -1
- package/dist/vue-ui-donut-H65cwWN-.js +0 -47
- package/dist/vue-ui-donut-evolution-DeHbG9Rx.js +0 -2
- package/dist/vue-ui-dumbbell-ClCVHsrR.js +0 -9
- package/dist/vue-ui-flow-DyrpRWOP.js +0 -3
- package/dist/vue-ui-funnel-bjH_hFeX.js +0 -1
- package/dist/vue-ui-galaxy-BTgZs4Le.js +0 -1
- package/dist/vue-ui-gauge-CXZklQPg.js +0 -1
- package/dist/vue-ui-geo-0_HimFX5.js +0 -1
- package/dist/vue-ui-graph-NTeJASbv.js +0 -7
- package/dist/vue-ui-heatmap-aiEMlbZm.js +0 -1
- package/dist/vue-ui-hill-ZpLv0IMP.js +0 -1
- package/dist/vue-ui-history-plot-4xG3oQtO.js +0 -2
- package/dist/vue-ui-horizontal-bar-DMyL8GM6.js +0 -4
- package/dist/vue-ui-molecule-4t84pqvx.js +0 -1
- package/dist/vue-ui-mood-radar-BGuw0U8y.js +0 -1
- package/dist/vue-ui-nested-donuts-BTTJ6KAx.js +0 -19
- package/dist/vue-ui-onion-BUbI3uaY.js +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-Bn3Y28ZQ.js +0 -9
- package/dist/vue-ui-quadrant-CVKEUWqI.js +0 -2
- package/dist/vue-ui-quick-chart-BgH0Arb4.js +0 -17
- package/dist/vue-ui-radar-Bb0u6tqk.js +0 -1
- package/dist/vue-ui-relation-circle-Csx30ROI.js +0 -1
- package/dist/vue-ui-ridgeline-Ce1ZrE0B.js +0 -2
- package/dist/vue-ui-rings-DgILqhz8.js +0 -1
- package/dist/vue-ui-scatter-CX_rE0cU.js +0 -9
- package/dist/vue-ui-stackbar-Zhl3to0r.js +0 -29
- package/dist/vue-ui-stackline-8JRhuHTg.js +0 -39
- package/dist/vue-ui-strip-plot-DL7Ulgpz.js +0 -2
- package/dist/vue-ui-thermometer-6kfYImU-.js +0 -1
- package/dist/vue-ui-tiremarks-D_ps9th8.js +0 -1
- package/dist/vue-ui-treemap-BfOdhGl7.js +0 -1
- package/dist/vue-ui-waffle-BL0zzw6B.js +0 -1
- package/dist/vue-ui-wheel-v1o2eN3I.js +0 -1
- package/dist/vue-ui-word-cloud-HUnuPCyQ.js +0 -4
- package/dist/vue-ui-world-BagJihbJ.js +0 -19
- package/dist/vue-ui-xy-D948j7de.js +0 -24
- package/dist/vue-ui-xy-canvas-CjrbWdJJ.js +0 -9
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as n}from"./img-D4RQwASc.js";import{t as r}from"./BaseIcon-fYK0iID8.js";import{t as i}from"./vClickOutside-BxNzkY17.js";import{Fragment as a,computed as o,createBlock as s,createCommentVNode as c,createElementBlock as l,createElementVNode as u,createVNode as d,guardReactiveProps as ee,nextTick as f,normalizeClass as p,normalizeProps as m,normalizeStyle as h,onBeforeUnmount as g,onMounted as te,openBlock as _,ref as v,renderList as ne,renderSlot as y,toDisplayString as b,unref as x,watch as S,withDirectives as C,withKeys as w,withModifiers as T}from"vue";var re={beforeMount(e,t){let n=()=>typeof t.value==`function`?{handler:t.value,targets:[e],disabled:!1,scrollGuardMs:250,moveThreshold:10}:{handler:t.value?.handler,targets:t.value?.targets??[e],disabled:!!t.value?.disabled,scrollGuardMs:t.value?.scrollGuardMs??250,moveThreshold:t.value?.moveThreshold??10},r={lastScrollTs:0,pointerId:null,startX:0,startY:0,moved:!1},i=()=>{r.lastScrollTs=performance.now()},a=e=>{r.pointerId=e.pointerId??null,r.startX=e.clientX??0,r.startY=e.clientY??0,r.moved=!1},o=e=>{if(r.pointerId===null||(e.pointerId??null)!==r.pointerId)return;let t=(e.clientX??0)-r.startX,i=(e.clientY??0)-r.startY,{moveThreshold:a}=n();t*t+i*i>=a*a&&(r.moved=!0)},s=e=>{r.pointerId!==null&&(e.pointerId??null)===r.pointerId&&(r.pointerId=null)},c=(e,t)=>{let n=e.composedPath?e.composedPath():[];for(let r of t){let t=r&&typeof r==`object`&&`value`in r?r.value:r;if(t&&(t===e.target||t.contains&&t.contains(e.target)||n.length&&n.includes(t)))return!0}return!1},l=e=>{let{handler:t,targets:i,disabled:a,scrollGuardMs:o}=n();a||typeof t==`function`&&(performance.now()-r.lastScrollTs<o||r.moved||c(e,i)||t(e))};e.__vPopoverClickOutside__={onScrollCapture:i,onPointerDownCapture:a,onPointerMoveCapture:o,onPointerUpCapture:s,onClickCapture:l},window.addEventListener(`scroll`,i,!0),document.addEventListener(`pointerdown`,a,!0),document.addEventListener(`pointermove`,o,!0),document.addEventListener(`pointerup`,s,!0),document.addEventListener(`click`,l,!0)},unmounted(e){let t=e.__vPopoverClickOutside__;t&&(window.removeEventListener(`scroll`,t.onScrollCapture,!0),document.removeEventListener(`pointerdown`,t.onPointerDownCapture,!0),document.removeEventListener(`pointermove`,t.onPointerMoveCapture,!0),document.removeEventListener(`pointerup`,t.onPointerUpCapture,!0),document.removeEventListener(`click`,t.onClickCapture,!0),delete e.__vPopoverClickOutside__)}},E=/* @__PURE__ */ e({default:()=>D}),ie=[`title`,`onKeydown`],ae=[`popover`,`data-open`],oe=[`onClick`,`onMouseenter`,`onMouseout`],se=[`title`],ce=[`data-open`],le=[`onClick`,`onMouseenter`,`onMouseout`],D=/*#__PURE__*/ t({__name:`UserOptions`,props:{hasPdf:{type:Boolean,default:!0},hasXls:{type:Boolean,default:!0},hasImg:{type:Boolean,default:!1},hasSvg:{type:Boolean,default:!1},hasLabel:{type:Boolean,default:!1},isLabelActive:{type:Boolean,default:!1},hasTable:{type:Boolean,default:!1},hasSort:{type:Boolean,default:!1},hasStack:{type:Boolean,default:!1},hasTooltip:{type:Boolean,default:!1},color:{type:String},backgroundColor:{type:String},isPrinting:{type:Boolean,default:!1},isImaging:{type:Boolean,default:!1},title:{type:String},uid:{type:String},hasFullscreen:{type:Boolean,default:!1},chartElement:{type:HTMLElement,default:null},isFullscreen:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1},isTooltip:{type:Boolean,default:!1},hasAnimation:{type:Boolean,default:!1},isAnimation:{type:Boolean,default:!1},titles:{type:Object,default(){return{}}},showTooltips:{type:Boolean,default:!0},zIndex:{type:Number,default:1},noOffset:{type:Boolean,default:!0},position:{type:String,default:`right`},offsetX:{type:Number,default:0},hasAnnotator:{type:Boolean,default:!1},isAnnotation:{type:Boolean,default:!1},callbacks:{type:Object,default(){return{}}},printScale:{type:Number,default:2},tableDialog:{type:Boolean,default:!1},hasZoom:{type:Boolean,default:!1},isZoom:{type:Boolean,default:!1},isCursorPointer:{type:Boolean,default:!1},hasAltCopy:{type:Boolean,default:!1}},emits:[`generatePdf`,`generateCsv`,`generateImage`,`toggleTable`,`toggleLabels`,`toggleSort`,`toggleFullscreen`,`toggleStack`,`toggleTooltip`,`toggleAnimation`,`toggleAnnotator`,`generateSvg`,`toggleZoom`,`copyAlt`],setup(e,{expose:t,emit:E}){let D=e,O=E,k=v(null),A=v(null),j=v(null),M=v(!1),N=o(()=>typeof window<`u`&&typeof HTMLElement<`u`&&`popover`in HTMLElement.prototype);async function ue(){if(D.callbacks.pdf){let{imageUri:e,base64:t}=await n({domElement:D.chartElement,base64:!0,img:!0,scale:D.printScale});D.callbacks.pdf({domElement:D.chartElement,base64:t,imageUri:e})}else O(`generatePdf`)}function de(){O(`generateCsv`,D.callbacks.csv)}async function fe(){if(D.callbacks.img){O(`generateImage`,{stage:`start`});try{let{imageUri:e,base64:t}=await n({domElement:D.chartElement,base64:!0,img:!0,scale:D.printScale});await Promise.resolve(D.callbacks.img({domElement:D.chartElement,imageUri:e,base64:t}))}finally{O(`generateImage`,{stage:`end`})}}else O(`generateImage`)}function pe(){O(`generateSvg`,{isCb:!!D.callbacks.svg})}let P=v(!1);function me(){D.callbacks.table?D.callbacks.table():(P.value=!P.value,O(`toggleTable`))}function he(e){P.value=e}t({setTableIconState:he,setTooltipIconState:ye});let F=v(D.isLabelActive);function ge(){D.callbacks.labels?D.callbacks.labels():(F.value=!F.value,O(`toggleLabels`))}let I=v(D.isAnimation);function L(){D.callbacks.animation?D.callbacks.animation():(I.value=!I.value,O(`toggleAnimation`))}let R=v(D.isZoom);function z(){D.callbacks.zoom?D.callbacks.zoom():(R.value=!R.value,O(`toggleZoom`))}let B=o({get:()=>D.isAnnotation,set:e=>e});function V(){D.callbacks.annotator?D.callbacks.annotator():(B.value=!B.value,O(`toggleAnnotator`))}function _e(){D.callbacks.sort?D.callbacks.sort():O(`toggleSort`)}function H(){O(`copyAlt`)}let U=v(D.isStacked);function ve(){D.callbacks.stack?D.callbacks.stack():(U.value=!U.value,O(`toggleStack`))}let W=v(D.isTooltip);function ye(e){W.value=e}function be(){D.callbacks.tooltip?D.callbacks.tooltip():(W.value=!W.value,O(`toggleTooltip`))}let xe=o({get:()=>D.isFullscreen,set:e=>O(`toggleFullscreen`,e)});function G(){if(!D.chartElement)return;let e=!D.isFullscreen;xe.value=e,e?D.chartElement.requestFullscreen():document.exitFullscreen()}function K(){let e=!!document.fullscreenElement;O(`toggleFullscreen`,e)}te(()=>{document.addEventListener(`fullscreenchange`,K)}),g(()=>{document.removeEventListener(`fullscreenchange`,K)});let q=v(window.innerWidth>600),J=v({tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1,annotator:!1,svg:!1,zoom:!1,altCopy:!1}),Se=v(!0);function Ce(){q.value=window.innerWidth>600,M.value=!M.value,M.value&&(Se.value=!1)}function we(){D.isPrinting||D.isImaging||(M.value=!1)}function Te(){M.value&&we()}let Y=v(0);function Ee(){Y.value=performance.now()+50}function X(){D.isPrinting||D.isImaging||(N.value&&Q(),M.value=!1)}function De(){performance.now()<Y.value||X()}function Oe(){if(q.value=window.innerWidth>600,!N.value){M.value||Ee(),M.value=!M.value;return}let e=j.value;e&&e.matches&&e.matches(`:popover-open`)||M.value?(M.value=!1,Q()):(Ee(),M.value=!0)}function ke(){Oe()}function Ae(e,t,n,r){let i=window.devicePixelRatio||1,a=e=>Math.round(e*i)/i;e.style.position=`fixed`,e.style.top=`${a(t)}px`,e.style.left=`${a(n)}px`,e.style.right=`auto`,e.style.width=`${a(r)}px`}function je(e){if(e.style.width=``,e.style.left=``,e.style.right=``,e.style.top=``,e.style.position=`absolute`,e.style.top=`36px`,D.position===`right`){let t=D.offsetX?D.offsetX:D.noOffset?0:4;e.style.right=`${t}px`,e.style.left=`auto`}else{let t=D.noOffset?0:4;e.style.left=`${t}px`,e.style.right=`auto`}e.style.display=`flex`,e.style.visibility=`hidden`,e.style.pointerEvents=`none`}function Me(){if(!N.value||!M.value||!k.value||!j.value)return;let e=k.value.getBoundingClientRect(),t=j.value.getBoundingClientRect(),n=e.top+38;if(D.position===`right`){let r=D.offsetX?D.offsetX:D.noOffset?0:4,i=e.right-r-t.width;Ae(j.value,n,i,t.width)}else{let r=D.noOffset?0:4,i=e.left+r;Ae(j.value,n,i,t.width)}}let Ne=0;function Pe(){cancelAnimationFrame(Ne),Ne=requestAnimationFrame(()=>{Me()})}function Z(){N.value&&M.value&&Pe()}function Fe(e,t){let n=window.devicePixelRatio||1,r=e=>Math.round(e*n)/n;e.style.position=`fixed`,e.style.top=`${r(t.top)}px`,e.style.left=`${r(t.left)}px`,e.style.right=`auto`,e.style.width=`${r(t.width)}px`}async function Ie(e=!1){if(!N.value)return;let t=j.value;if(!t)return;let n=t.getAttribute(`style`)||``,r=t.getAttribute(`data-open`);t.setAttribute(`popover`,`manual`);try{t.setAttribute(`data-open`,`true`),je(t),await f();let i=t.getBoundingClientRect();t.setAttribute(`style`,n),r===null?t.removeAttribute(`data-open`):t.setAttribute(`data-open`,r),Fe(t,i),e||(typeof t.showPopover==`function`?t.showPopover():t.style.display=`flex`)}catch{if(!e)try{typeof t.showPopover==`function`?t.showPopover():t.style.display=`flex`}catch{}}}function Q(){if(!N.value)return;let e=j.value;if(e){e.setAttribute(`popover`,`manual`);try{typeof e.hidePopover==`function`?e.hidePopover():e.style.display=`none`}catch{e.style.display=`none`}e.style.position=``,e.style.top=``,e.style.left=``,e.style.right=``,e.style.width=``,e.style.inset=``}}function Le(){if(!N.value)return;let e=j.value;e&&(M.value&&=typeof e.matches==`function`&&(()=>{try{return e.matches(`:popover-open`)}catch{return!1}})())}function Re(e){if(!N.value||!M.value||performance.now()<Y.value)return;let t=e.composedPath?e.composedPath():[],n=A.value?t.includes(A.value):!1,r=j.value?t.includes(j.value):!1;!n&&!r&&X()}S(()=>D.isFullscreen,async()=>{N.value&&(await f(),M.value&&Ie())}),S(()=>M.value,async e=>{N.value&&(await f(),e?(await Ie(!1),Me()):Q())});function ze(e){e.key===`Escape`&&k.value&&k.value.contains(document.activeElement)&&(e.preventDefault(),e.stopPropagation(),X(),A.value?.focus())}te(()=>{window.addEventListener(`pointerdown`,Re,!0),window.addEventListener(`resize`,Z,{passive:!0}),window.addEventListener(`scroll`,Z,{passive:!0,capture:!0}),j.value&&j.value.addEventListener(`toggle`,Le)}),g(()=>{window.removeEventListener(`pointerdown`,Re,!0),window.removeEventListener(`resize`,Z),window.removeEventListener(`scroll`,Z,!0),j.value&&j.value.removeEventListener(`toggle`,Le)});let Be=o(()=>[{key:`pdf`,visible:D.hasPdf,slot:`optionPdf`,testId:`user-options-pdf`,run:ue,icon:`filePdf`,alternate:D.isPrinting,alternateIcon:`hourglass`,spin:!0},{key:`csv`,visible:D.hasXls,slot:`optionCsv`,testId:`user-options-xls`,run:de,icon:`fileCsv`},{key:`img`,visible:D.hasImg,slot:`optionImg`,testId:`user-options-img`,run:fe,icon:`filePng`,alternate:D.isImaging,alternateIcon:`hourglass`,spin:!0},{key:`svg`,visible:D.hasSvg,slot:`optionSvg`,testId:`user-options-svg`,run:pe,icon:`fileSvg`},{key:`tooltip`,visible:D.hasTooltip,slot:`optionTooltip`,testId:`user-options-tooltip`,run:be,icon:`tooltipDisabled`,alternate:W.value,alternateIcon:`tooltip`},{key:`table`,visible:D.hasTable,slot:`optionTable`,testId:`user-options-table`,run:me,icon:P.value?`tableClose`:`tableOpen`,alternate:D.tableDialog,alternateIcon:P.value?`tableDialogClose`:`tableDialogOpen`},{key:`labels`,visible:D.hasLabel,slot:`optionLabels`,testId:`user-options-label`,run:ge,icon:F.value?`labelClose`:`labelOpen`},{key:`sort`,visible:D.hasSort,slot:`optionSort`,testId:`user-options-sort`,run:_e,icon:`sort`},{key:`stack`,visible:D.hasStack,slot:`optionStack`,testId:`user-options-stack`,run:ve,icon:`stack`,alternate:U.value,alternateIcon:`unstack`,slotProps:{first:{name:`isStack`,value:U.value}}},{key:`fullscreen`,visible:D.hasFullscreen,slot:`optionFullscreen`,testId:`user-options-fullscreen`,run:()=>G(D.isFullscreen?`out`:`in`),icon:`fullscreen`,alternate:D.isFullscreen,alternateIcon:`exitFullscreen`,slotProps:{first:{name:`toggleFullscreen`,value:G},second:{name:`isFullscreen`,value:D.isFullscreen}}},{key:`zoom`,visible:D.hasZoom,slot:`optionZoom`,testId:`user-options-fullscreen`,run:()=>z(),icon:`zoomLock`,alternate:D.isZoom,alternateIcon:`zoomUnlock`,slotProps:{first:{name:`toggleZoom`,value:z},second:{name:`isZoomLocked`,value:!D.isZoom}}},{key:`animation`,visible:D.hasAnimation,slot:`optionAnimation`,testId:`user-options-anim`,run:L,icon:`pause`,alternate:I.value,alternateIcon:`play`,slotProps:{first:{name:`toggleAnimation`,value:L},second:{name:`isAnimated`,value:I.value}}},{key:`annotator`,visible:D.hasAnnotator,slot:`optionAnnotator`,testId:`user-options-annotator`,run:V,icon:`annotator`,alternate:B.value,alternateIcon:`annotatorDisabled`,slotProps:{first:{name:`toggleAnnotator`,value:V},second:{name:`isAnnotator`,value:B.value}}},{key:`altCopy`,visible:D.hasAltCopy,slot:`optionAltCopy`,testId:`user-options-alt-copy`,run:H,icon:`accessibility`,slotProps:{first:{name:`copyAlt`,value:H}}}]);function $(e){let t={"button-info-left":D.position===`left`,"button-info-right":D.position===`right`},n=D.position===`left`&&J.value[e],r=D.position===`right`&&J.value[e];return e===`tooltip`?{...t,"button-info-left-visible":n,"button-info-right-visible":r}:{...t,"button-info-right-visible":r,"button-info-left-visible":n}}return(t,n)=>N.value?C((_(),l(`div`,{key:0,ref_key:`rootRef`,ref:k,"data-dom-to-png-ignore":``,class:`vue-ui-user-options`,style:h(`z-index: ${e.zIndex}; height: 34px; position: ${e.isFullscreen?`fixed`:`absolute`}; top: 0; ${e.position===`right`?`right:${e.isFullscreen?`12px`:`0`}`:`left:${e.isFullscreen?`12px`:`0`}`}; padding: 4px; background:transparent;`),onKeydown:ze},[u(`div`,{ref_key:`triggerRef`,ref:A,tabindex:`0`,role:`button`,title:M.value?e.titles.close||``:e.titles.open||``,style:h(`width:32px; position: absolute; top: 0;${e.position===`right`?`right: ${e.offsetX?e.offsetX:e.noOffset?0:4}px`:`left: ${e.noOffset?0:4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:${e.isCursorPointer?`pointer`:`default`}; background:transparent`),onPointerdown:T(Oe,[`stop`,`prevent`]),onKeydown:w(T(ke,[`stop`,`prevent`]),[`enter`])},[y(t.$slots,`menuIcon`,m(ee({isOpen:M.value,color:e.color})),()=>[d(r,{name:M.value?`close`:`menu`,stroke:e.color,"stroke-width":2},null,8,[`name`,`stroke`])],!0)],44,ie),u(`div`,{ref_key:`drawerRef`,ref:j,popover:N.value?`manual`:null,"data-open":N.value?null:M.value,class:p({"vue-ui-user-options-drawer":!0}),style:h(N.value?{background:e.backgroundColor}:`background:${e.backgroundColor}; ${e.position===`right`?`right: ${e.offsetX?e.offsetX:e.noOffset?0:4}px`:`left: ${e.noOffset?0:4}px`}`)},[y(t.$slots,`custom-menu-before`,{},void 0,!0),(_(!0),l(a,null,ne(Be.value,n=>(_(),l(a,{key:n.key},[n.visible?(_(),l(`button`,{key:0,tabindex:`0`,class:`vue-ui-user-options-button`,onClick:n.run,onMouseenter:e=>J.value[n.key]=!0,onMouseout:e=>J.value[n.key]=!1,style:h({cursor:e.isCursorPointer?`pointer`:`default`})},[t.$slots[n.slot]?(_(),l(a,{key:0},[n.slotProps?n.slotProps.second?y(t.$slots,n.slot,m({[n.slotProps.first.name||``]:n.slotProps.first.value,[n.slotProps.second.name||``]:n.slotProps.second.value}),void 0,!0,2):y(t.$slots,n.slot,m({[n.slotProps.first.name||``]:n.slotProps.first.value}),void 0,!0,1):y(t.$slots,n.slot,{},void 0,!0,0)],64)):(_(),l(a,{key:1},[n.alternate?(_(),s(r,{key:0,name:n.alternateIcon,isSpin:n.spin,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`isSpin`,`stroke`])):(_(),s(r,{key:1,name:n.icon,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`stroke`]))],64)),q.value&&e.titles[n.key===`animation`?`fullscreen`:n.key]?(_(),l(`div`,{key:2,dir:`auto`,class:p($(n.key)),style:h({background:e.backgroundColor,color:e.color})},b(e.titles[n.key]),7)):c(``,!0)],44,oe)):c(``,!0)],64))),128)),y(t.$slots,`custom-menu-after`,{},void 0,!0)],12,ae)],36)),[[x(re),N.value?null:{targets:[k.value,j.value,A.value],handler:De}]]):C((_(),l(`div`,{key:1,ref_key:`rootRef`,ref:k,"data-dom-to-png-ignore":``,class:`vue-ui-user-options`,style:h(`z-index: ${e.zIndex}; height: 34px; position: ${e.isFullscreen?`fixed`:`absolute`}; top: 0; ${e.position===`right`?`right:${e.isFullscreen?`12px`:`0`}`:`left:${e.isFullscreen?`12px`:`0`}`}; padding: 4px; background:transparent;`),onKeydown:ze},[u(`div`,{ref_key:`triggerRef`,ref:A,tabindex:`0`,title:M.value?e.titles.close||``:e.titles.open||``,style:h(`width:32px; position: absolute; top: 0;${e.position===`right`?`right: ${e.offsetX?e.offsetX:e.noOffset?0:4}px`:`left: ${e.noOffset?0:4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`),onClick:T(Ce,[`stop`]),onKeypress:w(Ce,[`enter`])},[y(t.$slots,`menuIcon`,m(ee({isOpen:M.value,color:e.color})),()=>[d(r,{name:M.value?`close`:`menu`,stroke:e.color,"stroke-width":2},null,8,[`name`,`stroke`])],!0)],44,se),u(`div`,{ref_key:`drawerRef`,ref:j,"data-open":M.value,class:p({"vue-ui-user-options-drawer":!0}),style:h(`background:${e.backgroundColor}; ${e.position===`right`?`right: ${e.offsetX?e.offsetX:e.noOffset?0:4}px`:`left: ${e.noOffset?0:4}px`}`)},[y(t.$slots,`custom-menu-before`,{},void 0,!0),(_(!0),l(a,null,ne(Be.value,n=>(_(),l(a,{key:n.key},[n.visible?(_(),l(`button`,{key:0,tabindex:`0`,class:`vue-ui-user-options-button`,onClick:e=>n.run(e),onMouseenter:e=>J.value[n.key]=!0,onMouseout:e=>J.value[n.key]=!1},[t.$slots[n.slot]?(_(),l(a,{key:0},[n.slotProps?n.slotProps.second?y(t.$slots,n.slot,m({[n.slotProps.first.name||``]:n.slotProps.first.value,[n.slotProps.second.name||``]:n.slotProps.second.value}),void 0,!0,2):y(t.$slots,n.slot,m({[n.slotProps.first.name||``]:n.slotProps.first.value}),void 0,!0,1):y(t.$slots,n.slot,{},void 0,!0,0)],64)):(_(),l(a,{key:1},[n.alternate?(_(),s(r,{key:0,name:n.alternateIcon,isSpin:n.spin,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`isSpin`,`stroke`])):(_(),s(r,{key:1,name:n.icon,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`stroke`]))],64)),q.value&&e.titles[n.key===`animation`?`fullscreen`:n.key]?(_(),l(`div`,{key:2,dir:`auto`,class:p($(n.key)),style:h({background:e.backgroundColor,color:e.color})},b(e.titles[n.key]),7)):c(``,!0)],40,le)):c(``,!0)],64))),128)),y(t.$slots,`custom-menu-actions`,{},void 0,!0)],12,ce)],36)),[[x(i),Te]])}},[[`__scopeId`,`data-v-5fb3e5b9`]]);export{E as n,D as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=[`annotator-action-close`,`annotator-action-color`,`annotator-action-draw`,`annotator-action-undo`,`annotator-action-redo`,`annotator-action-delete`,`annotator-action-select-multiple`,`annotator-action-group`,`annotator-action-ungroup`];function t(e,t){switch(e){case`annotator-action-color`:return{color:t.color};case`annotator-action-draw`:return{mode:t.mode};case`annotator-action-select-multiple`:return{isSelecting:t.isSelecting};case`annotator-action-group`:case`annotator-action-ungroup`:case`annotator-action-undo`:case`annotator-action-redo`:case`annotator-action-delete`:return{disabled:t.disabled};default:return{}}}export{t as n,e as t};
|
package/dist/package-BdTnZDoM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=`3.28.6`;export{e as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{et as e}from"./lib-rPeBMZrn.js";var t={responsive:!1,theme:``,a11y:{translations:{keyboardNavigation:`Use arrow keys to navigate nodes, Home or End to jump, Enter or Space to select, and Escape to clear selection.`}},loading:!1,skeletonDataset:null,skeletonConfig:null,debug:!1,devHints:{enable:!1},customPalette:[],events:{datapointEnter:null,datapointLeave:null,datapointClick:null},style:{chart:{width:600,height:600,padding:36,backgroundColor:`#FFFFFF`,color:`#2D353C`,fontFamily:`inherit`,title:{text:``},controls:{position:`bottom`,show:!0,backgroundColor:`#e1e5e8`,buttonColor:`#e1e5e8`,color:`#2D353C`,fontSize:14,border:`1px solid #e1e5e8`,padding:`0.5rem`,borderRadius:`0.25rem`},nodes:{radius:7,minRadius:4,maxRadius:24,sizeByValue:!0,sizeByDegree:!1,colorByGroup:!0,color:`#42A5F5`,opacity:1,strokeWidth:1,stroke:`#FFFFFF`,gradient:!0,gradientColor:`#FFFFFF`,glow:{show:!1,blur:6,opacity:.6},hover:{stroke:`#2D353C`,strokeWidth:3},selected:{stroke:`#FFB74D`,strokeWidth:3},labels:{show:!0,strokeWidth:3,fontSize:11,color:`#2D353C`,position:`bottom`,offsetY:0,hoverOnly:!1,selectedOnly:!1,maxCount:150,minZoom:0,maxLength:40}},links:{color:`#A1A1A1`,opacity:.5,width:1,widthByValue:!1,maxWidth:6,arrows:{show:!1,showOnHover:!0},pulses:{show:!1,showOnHover:!1,reverse:!1,colorBySource:!0,color:`#FFB74D`,radius:2,opacity:1,duration:1500},glow:!1}}},layout:{chargeStrength:-120,linkDistance:80,linkStrength:.08,centerStrength:.015,collisionPadding:3,friction:.85,clusterStrength:0,iterations:300,strength:1,theta:.8},interaction:{zoom:{enabled:!0,min:.2,max:5,fitOnDoubleClick:!0},pan:{enabled:!0},drag:{enabled:!0,pinOnRelease:!1},highlight:{enabled:!0,neighbors:!0,keepSelection:!0,dimOpacity:.12}},tooltip:{show:!0,backgroundColor:`#FFFFFF`,color:`#2D353C`,borderColor:`#CCCCCC`,fontSize:13,showMetadata:!1,customFormat:null},animation:{enabled:!0,duration:300},userOptions:{show:!0,useCursorPointer:!0},viewport:{initialFit:!0,fitOnResize:!1,fitOnUpdate:!1},performance:{effectThreshold:300,stepsPerFrame:1,nodeBatchThreshold:300}};function n(n={}){let r=`#2D353C`,i=`#A1A1A1`,a=`#e1e5e8`,o=`#CCCCCC`,s=`#4A4A4A`,c=`#FFFFFF`,l=`#fafafa`,u=`#1f77b4`,d=`#d62728`,f=`#2ca02c`,p=`#42d392`,m=`#FFD055`,h=[`#000000`,`#FFFFFF`,`#FF5733`,`#33FF57`,`#3357FF`,`#FFC300`,`#800080`,`#FF1493`,`#00CED1`],g=n.colorBackground??c,_=n.colorTextPrimary??r,v=n.colorTextSecondary??i,y=n.colorGrid??a,b=n.colorBorder??a,x={translations:{keyboardNavigation:`Use the left and right arrow keys to move between data points.`,tableAvailable:`A data table for this chart is available below.`,tableCaption:`Chart data table`}},S={_6:6,_8:8,_10:10,_12:12,_14:14,_16:16,_18:18,_20:20,_24:24,_32:32,_48:48},C=S._6,w={LINE:`line`,SQUARE:`square`,ROUND:`round`,CIRCLE:`circle`,CURVED:`curved`,BAR:`bar`,STAR:`star`},T={LEFT:`left`,CENTER:`center`,RIGHT:`right`,BOTTOM:`bottom`,TOP:`top`},ee={ASC:`asc`,DESC:`desc`,NONE:`none`},E={threshold:1095},D={enable:!1},O={showValueFirst:!0,usePercentageParens:!0,useValueParens:!1},k={text:``,color:_,fontSize:S._20,bold:!0,textAlign:T.CENTER,paddingLeft:0,paddingRight:0,subtitle:{color:v,text:``,fontSize:S._16,bold:!1}},A={show:!0,bold:!1,backgroundColor:g,color:_,fontSize:S._14,selectAllToggle:{show:!1,backgroundColor:b,color:_}},j={show:!0,color:_,backgroundColor:g,fontSize:S._14,customFormat:null,borderRadius:4,borderColor:b,borderWidth:1,backgroundOpacity:100,position:T.CENTER,offsetX:0,offsetY:24,smooth:!0,backdropFilter:!0,smoothForce:.18,smoothSnapThreshold:.25,teleportTo:`body`},M={enable:!0,pauseOnLoad:!0,pauseOnDatasetChange:!1,activationDelayMs:300},N={enable:!1,locale:`en`,useUTC:!1,januaryAsYear:!1,options:{year:`yyyy`,month:`MMM 'yy`,day:`dd MMM`,hour:`HH:mm`,minute:`HH:mm:ss`,second:`HH:mm:ss`}},P=({tooltip:e=!1,pdf:t=!1,csv:n=!1,img:r=!1,table:i=!1,labels:a=!1,fullscreen:o=!1,sort:s=!1,stack:c=!1,animation:l=!1,annotator:u=!1,svg:d=!1,zoom:f=!1,altCopy:p=!1})=>{let m={open:`Open options`,close:`Close options`,tooltip:`Toggle tooltip`,pdf:`Download PDF`,csv:`Download CSV`,img:`Download PNG`,table:`Toggle table`,labels:`Toggle labels`,fullscreen:`Toggle fullscreen`,sort:`Toggle sort`,stack:`Toggle stack mode`,animation:`Toggle animation`,annotator:`Toggle annotator`,svg:`Download SVG`,zoom:`Toggle zoom lock`,altCopy:`Copy alt text`};return e||delete m.tooltip,t||delete m.pdf,n||delete m.csv,r||delete m.img,i||delete m.table,a||delete m.labels,o||delete m.fullscreen,s||delete m.sort,c||delete m.stack,l||delete m.animation,u||delete m.annotator,d||delete m.svg,f||delete m.zoom,{show:!0,showOnChartHover:!1,keepStateOnChartLeave:!0,position:`right`,buttons:{tooltip:e,pdf:t,csv:n,img:r,table:i,labels:a,fullscreen:o,sort:s,stack:c,animation:l,annotator:u,svg:d,zoom:f,altCopy:p},callbacks:{animation:null,annotator:null,csv:null,fullscreen:null,img:null,labels:null,pdf:null,sort:null,stack:null,table:null,tooltip:null,svg:null,zoom:null,altCopy:null},buttonTitles:m,print:{scale:2,orientation:`auto`,overflowTolerance:.2},useCursorPointer:!1,annotatorPalette:h,annotator:{showGroupActions:!0,followZoom:!0}}},F=e=>({top:e[0],right:e[1],bottom:e[2],left:e[3]}),I={backgroundColor:g,color:_,outline:`none`},L={backgroundColor:g,color:_,outline:`none`},R={show:!1,responsiveBreakpoint:400},z={show:!0,autoFit:!1,color:o,highlightColor:s,fontSize:S._14,useResetSlot:!1,startIndex:null,endIndex:null,enableRangeHandles:!0,enableSelectionDrag:!0,focusOnDrag:!1,focusRangeRatio:.2,maxWidth:null,keepState:!1,dragToZoom:{show:!1,selection:{fill:u,stroke:i,fillOpacity:.2,strokeOpacity:.5,strokeWidth:1,strokeDasharray:0}}},B={show:!1,selectedColor:u,selectedColorOpacity:.2,indicatorColor:r,verticalHandles:!1,compact:!0,frameColor:i,additionalHeight:0,handleIconColor:null,handleBorderWidth:1,handleBorderColor:null,handleFill:null,handleWidth:20,handleType:`grab`},V={...B,smooth:!1,lineColor:r,selectionRadius:2,merged:!1},te={devHints:D,loading:!1,readonly:!1,editing:!1,theme:``,customPalette:[],transitions:M,userOptions:P({tooltip:!1,pdf:!0,csv:!0,img:!0,table:!1,labels:!1,fullscreen:!0,annotator:!0,svg:!0}),a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right arrow keys to adjust the selected datapoint.`,topOfHill:`Top of the hill`}},events:{edit:null,save:null,cancel:null,change:null,dragStart:null,dragEnd:null,datapointEnter:null,datapointLeave:null,selectDatapoint:null},interaction:{keyboardStep:.01,peakTolerance:.005},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:800,height:300,title:k,toolbar:{show:!0,status:{lastUpdated:`Last updated just now`,editInstruction:`Drag each dot to adjust its position`,color:_,fontSize:S._14,bold:!1,lineHeight:1.3},buttons:{translations:{edit:`Edit`,cancel:`Cancel`,save:`Save`}}},layout:{hill:{geometry:{horizontalPaddingRatio:.05,topPaddingRatio:.15,bottomPaddingRatio:.15,curvature:.7},baseline:{show:!0,stroke:o,strokeWidth:1,strokeDasharray:0},midline:{show:!0,stroke:o,strokeWidth:1,strokeDasharray:`2.5 3.5`},curve:{stroke:i,strokeWidth:1.5,strokeDasharray:0}},plots:{radius:10,hitRadius:10,stroke:g,strokeWidth:2,mutedOpacity:.4,disabledOpacity:.4,shadow:{show:!0,color:_,offsetX:0,offsetY:.5,blur:.4},stacking:{show:!0,overlapThresholdRatio:.8,gap:5,overflow:{show:!0,transitionDuration:300,marker:{radius:10,stroke:g,strokeWidth:1,labelColor:_,labelOffsetY:0,fontSize:S._14,bold:!1,fill:o},menu:{width:220,maxHeight:220,backgroundColor:g,color:_,borderColor:`transparent`,borderRadius:3,title:``}}},dragMarker:{show:!0,strokeWidth:1.5,crossPath:`M-5 0H5M0-5V5`,positionIndicator:{show:!0,useSerieColor:!0,color:a,strokeWidth:1,strokeDasharray:`2 4`,circle:{show:!0,radius:3,stroke:g,strokeWidth:1},value:{show:!0,offsetY:0,fontSize:S._12,useSerieColor:!1,color:_,formatter:null,rounding:0}}}},labels:{item:{ellipsisThresholdChars:24,show:!0,useSerieColor:!1,color:_,fontSize:S._14,bold:!1,offsetX:0,offsetY:0,autoSideThreshold:.75,stroke:g,strokeWidth:5},phases:{show:!0,color:v,fontSize:S._14,bold:!0,letterSpacing:`0.1em`,offsetY:0,left:{text:`FIGURING THINGS OUT`},right:{text:`MAKING IT HAPPEN`}}},stackbar:{show:!0,paddingTop:0,paddingBottom:12,height:14,stroke:g,strokeWidth:1.5,gutterColor:a,label:{show:!0,color:_,fontSize:S._12,formatter:null}}}}}},ne={devHints:D,skeletonDataset:null,skeletonConfig:null,loading:!1,debug:!1,theme:``,responsive:!1,a11y:x,transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},customPalette:[],useCssAnimation:!1,table:{...R,useDialog:!1,columnNames:{period:`Period`,total:`Total`},th:I,td:{...L,roundingValue:0}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:500,width:800,padding:F([12,12,12,12]),title:k,legend:{...A,position:`bottom`},zoom:{...z,minimap:B,preview:{enable:!0,fill:`#CCCCCC50`,stroke:`#6A6A6A`,strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},highlighter:{color:_,opacity:5,useLine:!1,lineDasharray:2,lineWidth:1},tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,showTimeLabel:!0,showTotal:!1,totalTranslation:`Total`,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`},grid:{scale:{ticks:10,scaleMin:null,scaleMax:null},frame:{show:!1,stroke:y,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,strokeDasharray:0},x:{showAxis:!0,showHorizontalLines:!1,axisColor:y,linesColor:y,linesThickness:1,linesStrokeDasharray:0,axisThickness:2,axisName:{show:!0,text:``,fontSize:S._14,color:_,bold:!1,offsetY:0},timeLabels:{show:!0,values:[],datetimeFormatter:N,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30},fontSize:S._14,color:_,bold:!1,showOnlyFirstAndLast:!1,showFirstAndLast:!0,showOnlyAtModulo:!1,modulo:2}},y:{position:`left`,showAxis:!0,showVerticalLines:!1,linesColor:y,linesThickness:1,linesStrokeDasharray:0,axisColor:y,axisThickness:2,axisName:{show:!0,text:``,fontSize:S._14,color:_,bold:!1,offsetX:0},axisLabels:{formatter:null,show:!0,color:_,fontSize:S._14,bold:!1,rounding:0}}},lines:{useArea:!0,smooth:!1,areaOpacity:.5,distributed:!1,showDistributedPercentage:!0,strokeWidth:1,gradient:{show:!0,intensity:40},path:{useSerieColor:!0,stroke:c},dot:{hideAboveMaxSerieLength:62,useSerieColor:!0,fill:c,stroke:c,strokeWidth:.5,radius:4},totalValues:{show:!0,offsetY:0,fontSize:S._16,bold:!0,color:_},dataLabels:{hideAboveMaxSerieLength:62,offsetY:0,show:!0,hideEmptyValues:!0,hideUnderValue:null,hideEmptyPercentages:!0,hideUnderPercentage:null,color:_,fontSize:S._14,bold:!1,rounding:0,prefix:``,suffix:``,formatter:null}}}}},re={devHints:D,skeletonDataset:null,skeletonConfig:null,loading:!1,debug:!1,theme:``,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},customPalette:[],useCssAnimation:!1,orientation:`vertical`,table:{...R,useDialog:!1,columnNames:{period:`Period`,total:`Total`},th:I,td:{...L,roundingValue:0}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:500,width:800,padding:F([12,12,12,12]),title:k,legend:{...A,position:`bottom`},waterfall:{bars:{gapRatio:.5,borderRadius:0,strokeWidth:1,stroke:g,gradient:{show:!0,intensity:20}},colors:{useSeriesColor:!0,positive:`#36A783`,negative:`#E76F51`,total:`#4C7899`,subtotal:`#8192B0`,neutral:`#A3A3A3`},connectors:{show:!0,stroke:`#8B8B8B`,strokeWidth:1,strokeDasharray:`3 3`,adaptToRadius:!1,inset:0},categoryLabels:{show:!0,fontSize:S._14,color:r,bold:!1,rotation:0,offsetY:0},segmentLabels:{show:!0,fontSize:S._14,bold:!1,color:r,adaptColorToBackground:!0,minHeight:14,minWidth:26,showZero:!1,prefix:``,suffix:``,rounding:0,formatter:null},stepLabels:{show:!0,fontSize:S._14,color:r,bold:!1,prefix:``,suffix:``,rounding:0,offset:0,showPlusSign:!1,showZero:!0,useBalanceForTotals:!0,formatter:null},tooltip:{showBalance:!0,showChange:!0,showStart:!1,balanceTranslation:`Balance`,changeTranslation:`Change`,startTranslation:`Previous balance`,totalTranslation:`Total`,subtotalTranslation:`Subtotal`,rounding:0},table:{showKind:!0,showBalance:!0,kindTranslation:`Type`,balanceTranslation:`Balance`,changeTranslation:`Change`}},zoom:{...z,minimap:B,preview:{enable:!0,fill:`#CCCCCC50`,stroke:`#6A6A6A`,strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,showTimeLabel:!0,showTotal:!1,totalTranslation:`Total`,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`},highlighter:{color:_,opacity:5},bars:{gapRatio:.5,distributed:!1,showDistributedPercentage:!0,borderRadius:0,strokeWidth:1,gradient:{show:!0,intensity:20},totalValues:{show:!0,offsetY:0,offsetX:0,fontSize:S._16,bold:!1,color:_},dataLabels:{show:!0,hideEmptyValues:!1,hideUnderValue:null,hideEmptyPercentages:!1,hideUnderPercentage:null,adaptColorToBackground:!0,color:_,fontSize:S._14,bold:!1,rounding:0,prefix:``,suffix:``,formatter:null}},grid:{scale:{ticks:10,scaleMin:null,scaleMax:null},frame:{show:!1,stroke:y,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,strokeDasharray:0},x:{showAxis:!0,showHorizontalLines:!1,axisColor:y,linesColor:y,linesThickness:1,linesStrokeDasharray:0,axisThickness:2,axisName:{show:!0,text:``,fontSize:S._14,color:_,bold:!1,offsetY:0},timeLabels:{show:!0,values:[],datetimeFormatter:N,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30},fontSize:S._14,color:_,bold:!1,showOnlyFirstAndLast:!1,showFirstAndLast:!0,showOnlyAtModulo:!1,modulo:2}},y:{position:`left`,showAxis:!0,showVerticalLines:!1,linesColor:y,linesThickness:1,linesStrokeDasharray:0,axisColor:y,axisThickness:2,axisName:{show:!0,text:``,fontSize:S._14,color:_,bold:!1,offsetX:0},axisLabels:{formatter:null,show:!0,color:_,fontSize:S._14,bold:!1,rounding:0}}}}}},H={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,theme:``,responsive:!1,loading:!1,a11y:x,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,customPalette:[],useCssAnimation:!1,downsample:E,transitions:M,chart:{fontFamily:`inherit`,backgroundColor:g,color:_,height:600,width:1e3,annotations:[{show:!1,yAxis:{yTop:null,yBottom:null,label:{text:``,textAnchor:`start`,position:`start`,offsetX:0,offsetY:0,padding:F([12,12,12,12]),border:{stroke:c,strokeWidth:1,rx:0,ry:0},fontSize:14,color:_,backgroundColor:y},line:{stroke:r,strokeWidth:1,strokeDasharray:0},area:{fill:y,opacity:30}}}],zoom:{...z,minimap:V,preview:{enable:!0,fill:`#CCCCCC50`,stroke:`#6A6A6A`,strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},padding:F([12,12,6,6]),highlighter:{color:_,opacity:5,useLine:!1,lineDasharray:2,lineWidth:1,crosshairs:{show:!1,stroke:r,strokeWidth:1,strokeDasharray:3,stopOnPoint:!1,dot:{radius:2,fill:r,stroke:c,strokeWidth:1}}},highlightArea:{show:!1,from:0,to:0,color:r,opacity:20,caption:{text:``,fontSize:S._10,color:_,bold:!1,offsetY:0,width:`auto`,padding:3,textAlign:T.CENTER}},timeTag:{show:!1,backgroundColor:y,color:_,fontSize:S._12,circleMarker:{radius:3,color:_},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},grid:{stroke:y,showVerticalLines:!1,showHorizontalLines:!1,position:`middle`,frame:{show:!1,stroke:y,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,strokeDasharray:0},labels:{show:!0,color:_,fontSize:S._16,axis:{yLabel:``,yLabelOffsetX:0,xLabel:``,xLabelOffsetY:0,fontSize:S._14},zeroLine:{show:!0},xAxis:{showBaseline:!1,showCrosshairs:!0,crosshairsAlwaysAtZero:!1,crosshairSize:6,commonScaleSteps:10,useNiceScale:!0,scaleMin:null,scaleMax:null,rounding:1,formatter:null,reverse:!1},yAxis:{reverse:!1,position:`left`,showBaseline:!0,showCrosshairs:!0,crosshairSize:6,commonScaleSteps:10,useIndividualScale:!1,useNiceScale:!1,stacked:!1,gap:12,labelWidth:64,formatter:null,scaleMin:null,scaleMax:null,groupColor:null,scaleLabelOffsetX:0,scaleValueOffsetX:0,rounding:1,serieNameFormatter:null},xAxisLabels:{color:_,show:!0,values:[],datetimeFormatter:N,fontSize:S._14,showOnlyFirstAndLast:!1,showFirstAndLast:!0,showOnlyAtModulo:!1,modulo:2,yOffset:24,rotation:0,autoRotate:{enable:!0,angle:-30}}}},comments:{show:!0,showInTooltip:!0,width:200,offsetX:0,offsetY:0},labels:{fontSize:S._10,prefix:``,suffix:``},legend:{color:_,show:!0,fontSize:S._14,position:`bottom`,selectAllToggle:{show:!1,backgroundColor:b,color:_}},title:{...k,show:!0},tooltip:{...j,showTimeLabel:!0,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,stack:!0,annotator:!0,svg:!0})},bar:{showTransition:!0,transitionDurationMs:300,borderRadius:2,useGradient:!0,periodGap:.1,innerGap:0,border:{useSerieColor:!1,strokeWidth:0,stroke:c},labels:{show:!1,offsetY:-6,offsetX:0,rotation:0,textAnchor:null,alwaysOnTop:!1,rounding:0,color:_,formatter:null},serieName:{show:!1,offsetY:-6,useAbbreviation:!0,abbreviationSize:3,useSerieColor:!0,color:_,bold:!1}},line:{showTransition:!0,transitionDurationMs:300,radius:3,useGradient:!0,strokeWidth:3,cutNullValues:!1,nullDashes:{show:!1},interLine:{pairs:[],colors:[],fillOpacity:.25},dot:{selectedRadius:4.5,hideAboveMaxSerieLength:62,useSerieColor:!0,fill:c,strokeWidth:.5},labels:{show:!1,offsetY:-6,offsetX:0,rotation:0,rounding:0,color:_,formatter:null,textAnchor:null,alwaysOnTop:!1},area:{useGradient:!0,opacity:30},tag:{followValue:!0,formatter:null,fontSize:S._14}},plot:{showTransition:!0,transitionDurationMs:300,radius:3,useGradient:!0,dot:{useSerieColor:!0,fill:c,strokeWidth:.5},labels:{show:!1,offsetY:-6,offsetX:0,rotation:0,rounding:0,color:_,formatter:null,textAnchor:null,alwaysOnTop:!1},tag:{followValue:!0,formatter:null,fontSize:S._14}},table:{useDialog:!1,responsiveBreakpoint:400,rounding:0,sparkline:!0,showSum:!0,columnNames:{period:`Period`,total:`Total`},th:I,td:L,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`},showTable:!1},U={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,type:`classic`,loading:!1,pie:!1,autoSize:!0,responsive:!1,theme:``,customPalette:[],useCssAnimation:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},serieToggleAnimation:{show:!0,durationMs:500},startAnimation:{show:!1,durationMs:1e3,staggerMs:50},useBlurOnHover:!0,userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{total:`Total`,average:`Average`},table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0,roundingPercentage:0},columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`}},style:{fontFamily:`inherit`,chart:{useGradient:!0,gradientIntensity:40,backgroundColor:g,color:_,padding:F([0,0,0,0]),width:512,height:360,layout:{curvedMarkers:!1,labels:{dataLabels:{...O,show:!0,useLabelSlots:!1,hideUnderValue:3,smallArcClusterThreshold:8,smallArcClusterFontSize:S._12,oneLine:!1,prefix:``,suffix:``},value:{rounding:0,show:!0,formatter:null},percentage:{show:!0,color:_,bold:!0,fontSize:S._18,minFontSize:C,rounding:0,formatter:null},name:{show:!0,color:_,bold:!1,fontSize:S._14,minFontSize:C},hollow:{show:!0,total:{show:!0,bold:!1,fontSize:S._18,color:_,text:`Total`,offsetY:0,value:{color:_,fontSize:S._18,bold:!0,suffix:``,prefix:``,offsetY:0,rounding:0,formatter:null}},average:{show:!0,bold:!1,fontSize:S._18,color:v,text:`Average`,offsetY:0,value:{color:_,fontSize:S._18,bold:!0,suffix:``,prefix:``,offsetY:0,rounding:0,formatter:null}}}},donut:{radiusRatio:.3,strokeWidth:64,borderWidth:1,useShadow:!1,shadowColor:r,emptyFill:y,selectedColor:`#0000001A`,borderColorAuto:!0,borderColor:b}},comments:{show:!0,showInTooltip:!0,width:100,offsetY:0,offsetX:0},legend:{...A,...O,roundingValue:0,roundingPercentage:0,showPercentage:!0,showValue:!0,position:`bottom`},tooltip:{...j,...O,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0},title:k}}},W={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0,zoom:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:500,width:800,padding:F([0,0,0,0]),layout:{sorted:!0,rects:{stroke:y,strokeWidth:1,borderRadius:0,colorRatio:.3,gradient:{show:!0,intensity:30},group:{stroke:y,strokeWidth:1,useSeriesBackgroundColor:!1,backgroundLighterRatio:.4,label:{adaptColorToBackground:!1,color:_}},selected:{stroke:y,strokeWidth:1,unselectedOpacity:.6}},labels:{showDefaultLabels:!0,fontSize:S._24,fontSizeZoomFactor:6,minFontSize:S._10,hideUnderProportion:0,prefix:``,suffix:``,rounding:0,formatter:null,name:{show:!0,bold:!0},value:{show:!0,bold:!1}}},legend:{...A,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`},title:k,tooltip:{...j,roundingValue:1},zoom:{show:!1}}},table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},G={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,transitions:M,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useBlurOnHover:!0,useCustomCells:!1,useAnimation:!0,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,layout:{labels:{dataLabels:{...O,prefix:``,suffix:``,formatter:null},captions:{show:!1,showSerieName:!1,serieNameAbbreviation:!0,serieNameMaxAbbreviationSize:3,fontSize:S._12,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,offsetX:0,offsetY:0}},grid:{size:10,spaceBetween:2,vertical:!1},rect:{rounded:!0,rounding:2,stroke:_,strokeWidth:1,useGradient:!0,gradientIntensity:40,merged:!1,selection:{unselectedOpacity:.6,wrap:{show:!0,stroke:_,strokeWidth:3,strokeLinejoin:`round`}}}},title:k,tooltip:{...j,...O,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0},legend:{...A,...O,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},K={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,layout:{scaleToAxisMax:!1,targetReference:{show:!1,stroke:r,strokeWidth:1,strokeDasharray:4,showInLegend:!0,legendLabel:`Target`},plots:{show:!0,radius:2},outerPolygon:{stroke:o,strokeWidth:1},dataPolygon:{strokeWidth:1,transparent:!1,opacity:20,useGradient:!0},grid:{show:!0,rotation:0,stroke:y,strokeWidth:.5,graduations:5},labels:{dataLabels:{show:!0,fontSize:S._12,color:_,offset:0}}},title:k,tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,animation:{show:!0,animationFrames:60}},legend:{...A,roundingPercentage:0,position:`bottom`}}},table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0,roundingPercentage:0}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{target:`Target`,value:`Value`,datapoint:`Datapoint`}},q={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,zoomAnimationFrames:20,zoomEnabled:!0,downsample:E,style:{fontFamily:`inherit`,chart:{height:512,width:512,backgroundColor:g,color:_,layout:{labels:{quadrantLabels:{show:!0,tl:{text:``,color:_,fontSize:S._16,bold:!0},tr:{text:``,color:_,fontSize:S._16,bold:!0},br:{text:``,color:_,fontSize:S._16,bold:!0},bl:{text:``,color:_,fontSize:S._16,bold:!0}},plotLabels:{showAsTag:!1,show:!0,fontSize:S._10,color:_,offsetY:8,rounding:0,x:{formatter:null},y:{formatter:null}},axisLabels:{show:!0,fontSize:S._14,color:{positive:_,negative:_}}},grid:{stroke:y,strokeWidth:1.5,showArrows:!0,graduations:{stroke:y,strokeWidth:.5,show:!0,steps:5,fill:!0,color:y,roundingForce:10},xAxis:{min:-100,max:100,auto:!0,name:``,show:!0},yAxis:{min:-100,max:100,auto:!0,name:``,show:!0}},plots:{radius:6,outline:!0,outlineColor:c,outlineWidth:1},areas:{show:!0,opacity:40,useGradient:!0}},title:k,tooltip:{...j,roundingValue:0,showShape:!0},legend:{...A,position:`bottom`}}},table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{category:`Category`,item:`Item`,side:`Side`}},J={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:``,customPalette:[],style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,animation:{use:!0,speed:1,acceleration:1},layout:{radiusRatio:1,track:{size:1,useGradient:!0,gradientIntensity:20},markers:{show:!0,color:_,bold:!0,fontSizeRatio:1,offsetY:0,roundingValue:0,formatter:null,prefix:``,suffix:``},segmentSeparators:{show:!1,offsetOut:0,offsetIn:0,stroke:r,strokeWidth:2},segmentNames:{show:!0,curved:!0,offsetRatio:1.1,fontSize:S._16,minFontSize:C,useSerieColor:!0,color:_,bold:!1},indicatorArc:{show:!1,radius:123,fill:y},pointer:{show:!0,type:`pointy`,size:1,stroke:c,strokeWidth:12,useRatingColor:!0,color:o,circle:{radius:10,stroke:r,strokeWidth:2,color:c}}},legend:{show:!0,fontSize:S._48,prefix:``,suffix:``,roundingValue:1,showPlusSymbol:!0,useRatingColor:!0,color:_,formatter:null},title:k}},userOptions:P({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{base:`Base`}},Y={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:``,layout:`classic`,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,animation:{use:!0,speed:.5,acceleration:1},layout:{wheel:{radiusRatio:1,tiltAngle3d:50,ticks:{type:`classic`,rounded:!0,inactiveColor:y,activeColor:u,sizeRatio:.9,quantity:100,strokeWidth:5,stroke:`transparent`,spacingRatio3d:1,shadeColorRatio3d:.15,depth3d:0,gradient:{show:!0,shiftHueIntensity:100}}},innerCircle:{show:!0,stroke:y,strokeWidth:1,radiusRatio:1},percentage:{show:!0,fontSize:S._48,rounding:1,bold:!0,formatter:null,offsetX:0,offsetY:0,stroke:`transparent`,strokeWidth:0}},title:k}},userOptions:P({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0})},X={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:``,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:312,height:56,animation:{use:!0,speed:.5,acceleration:1},layout:{display:`horizontal`,crescendo:!1,curved:!1,curveAngleX:10,curveAngleY:10,activeColor:u,inactiveColor:y,ticks:{gradient:{show:!0,shiftHueIntensity:100}}},percentage:{show:!0,useGradientColor:!0,color:u,fontSize:S._16,bold:!0,rounding:1,verticalPosition:T.BOTTOM,horizontalPosition:T.LEFT,formatter:null},title:k}},userOptions:P({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0})},ie={devHints:D,debug:!1,loading:!1,theme:``,customPalette:[],a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,layout:{grandTotal:{show:!0,fontSize:S._20,bold:!0,prefix:``,suffix:``,roundingValue:0,color:_,text:`Grand total`,offsetY:0,formatter:null},roots:{stroke:c,strokeWidth:5,useGradient:!0,gradientIntensity:20,underlayerColor:c,labels:{show:!0,fontSize:S._16,adaptColorToBackground:!0,color:c,bold:!0,roundingValue:0,prefix:``,suffix:``,formatter:null,name:{color:_,fontSize:S._16,bold:!0}}},verticalSeparator:{stroke:c,strokeWidth:5},links:{opacity:10},branches:{stroke:c,strokeWidth:0,borderRadius:6,useGradient:!0,gradientIntensity:20,underlayerColor:c,widthRatio:1.5,labels:{show:!0,fontSize:S._14,color:_,bold:!0,dataLabels:{show:!0,hideUnderValue:5,fontSize:S._14,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``,formatter:null}}},nuts:{offsetX:20,useGradient:!0,gradientIntensity:30,selected:{useMotion:!0,useGradient:!0,gradientIntensity:40,roundingValue:0,roundingPercentage:0,labels:{dataLabels:{hideUnderValue:5,color:_,fontSize:S._12,bold:!0,prefix:``,suffix:``,formatter:null},core:{total:{color:_,fontSize:S._24,bold:!1},value:{color:_,fontSize:S._24,bold:!0,prefix:``,suffix:``}}}}},legend:{fontSize:S._16,color:_,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``},title:{...k,offsetY:0,subtitle:{...k.subtitle,offsetY:0}}}}},table:{...R,useDialog:!1,th:{...I,translations:{rootName:`root name`,rootValue:`root value`,rootToTotal:`%/total`,branchName:`branch name`,branchValue:`branch value`,branchToRoot:`%/root`,branchToTotal:`%/total`,nutName:`nut name`,nutValue:`nut value`,nutToBranch:`%/branch`,nutToRoot:`%/root`,nutToTotal:`%/total`}},td:{...L,roundingValue:0,roundingPercentage:0}},userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{total:`Total`,proportionToTree:`of grand total`,of:`of`}},ae={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,useStartAnimation:!0,useBlurOnHover:!0,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,useGradient:!0,gradientIntensity:20,layout:{maxThickness:64,gutter:{color:y,width:.62},track:{width:.62},labels:{...O,show:!0,fontSize:S._14,minFontSize:C,color:_,roundingValue:0,roundingPercentage:0,bold:!0,offsetX:0,offsetY:0,value:{show:!0,formatter:null},percentage:{show:!0}}},title:k,legend:{...A,...O,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`},tooltip:{...j,...O,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0,roundingPercentage:0},translations:{value:`Value`,percentage:`Percentage`,serie:`Serie`}}},Z={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,autoSize:!0,responsive:!1,theme:``,customPalette:[],useCssAnimation:!1,transitions:M,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:512,height:316,layout:{bars:{rowColor:null,rowRadius:4,sort:ee.DESC,useStroke:!1,strokeWidth:2,height:32,gap:6,borderRadius:4,offsetX:12,paddingRight:0,useGradient:!0,gradientIntensity:20,fillOpacity:90,underlayerColor:c,dataLabels:{color:_,bold:!0,fontSize:S._14,value:{show:!0,roundingValue:0,prefix:``,suffix:``,formatter:null},percentage:{show:!0,roundingPercentage:0},offsetX:0},nameLabels:{show:!0,color:_,bold:!1,fontSize:S._14,offsetX:0},parentLabels:{show:!0,color:_,bold:!1,fontSize:S._14,offsetX:0,paddingBottom:0}},highlighter:{color:r,opacity:5},separators:{show:!1,color:y,strokeWidth:1,fullWidth:!0}},title:k,legend:{...A,position:T.TOP,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``,showValue:!0},tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,sort:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``}},translations:{parentName:`Serie`,childName:`Child`,value:`value`,percentageToTotal:`%/total`,percentageToSerie:`%/serie`}},oe=Z,se={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,style:{fontFamily:`inherit`,backgroundColor:g,color:_,layout:{height:300,width:1e3,padding:F([0,0,0,0]),crosshairs:{show:!1,stroke:r,strokeWidth:1,strokeDasharray:0},cells:{scaleMax:null,scaleMin:null,rowTotal:{value:{show:!1},color:{show:!1}},columnTotal:{value:{show:!1,rotation:0,autoRotate:{enable:!0,angle:-30},offsetX:0,offsetY:0},color:{show:!1}},value:{show:!1,fontSize:S._18,bold:!1,roundingValue:0,color:_,formatter:null},colors:{hot:d,cold:u,underlayer:c},spacing:2,selected:{border:4,color:r}},dataLabels:{prefix:``,suffix:``,xAxis:{show:!0,values:[],datetimeFormatter:N,showOnlyAtModulo:null,rotation:0,autoRotate:{enable:!0,angle:-30},fontSize:S._10,color:_,bold:!1,offsetX:0,offsetY:0},yAxis:{show:!0,values:[],datetimeFormatter:N,fontSize:S._10,color:_,bold:!1,offsetX:0,offsetY:0}}},title:k,legend:{...A,fontSize:S._12,roundingValue:0,width:24},tooltip:{...j,roundingValue:0}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,colNames:{xAxis:`X`},th:I,td:{...L,roundingValue:0}}},ce={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,downsample:E,usePerformanceMode:!1,style:{fontFamily:`inherit`,backgroundColor:g,color:_,layout:{height:316,width:512,padding:F([0,0,0,0]),axis:{show:!0,stroke:y,strokeWidth:1,xMin:null,xMax:null,yMin:null,yMax:null},marginalBars:{show:!1,size:40,tranches:20,opacity:.6,fill:r,strokeWidth:1,offset:20,borderRadius:2,useGradient:!0,showLines:!1,linesStrokeWidth:1,highlighter:{show:!0,opacity:.1,color:r,stroke:r,strokeWidth:.5,strokeDasharray:2,highlightBothAxes:!1}},plots:{radius:2,hoverRadiusRatio:2,stroke:c,strokeWidth:.3,opacity:.6,opacityNotSelected:.6,name:{show:!1,fontSize:12,offsetY:0,color:r},significance:{show:!0,useDistanceOpacity:!1,deviationThreshold:10,opacity:.3},deviation:{translation:`deviation`,roundingValue:1},giftWrap:{show:!1,strokeWidth:1,strokeDasharray:0,fillOpacity:.2},selectors:{show:!0,stroke:r,strokeWidth:.7,strokeDasharray:0,labels:{fontSize:S._12,color:_,rounding:2,bold:!1,showName:!0,prefix:``,suffix:``,x:{formatter:null},y:{formatter:null}},markers:{radius:1.5,stroke:c,strokeWidth:.5,fill:r}}},correlation:{show:!0,strokeDasharray:2,strokeWidth:1,label:{show:!0,fontSize:S._12,color:_,bold:!0,roundingValue:2,useSerieColor:!0}},dataLabels:{reverseAxisLabels:!1,xAxis:{name:``,show:!0,fontSize:S._10,color:_,bold:!1,offsetX:0,offsetY:0,roundingValue:0,showValue:!0,scales:{show:!1,steps:10,useNiceScale:!0,labels:{formatter:null,color:r,fontSize:12,offsetY:0},verticalLines:{show:!1,stroke:a,strokeWidth:1}}},yAxis:{name:``,show:!0,fontSize:S._10,color:_,bold:!1,offsetX:0,offsetY:0,roundingValue:0,showValue:!0,scales:{show:!1,steps:10,useNiceScale:!0,labels:{formatter:null,color:r,fontSize:12,offsetX:0},horizontalLines:{show:!1,stroke:a,strokeWidth:1}}}}},title:k,legend:{...A,roundingValue:0,position:`bottom`},tooltip:{...j,roundingValue:2,showShape:!0,prefix:``,suffix:``}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:2,roundingAverage:1},translations:{correlationCoefficient:`Correlation Coef.`,nbrPlots:`Nbr plots`,average:`Average`,series:`Series`}}},le={devHints:D,skeletonDataset:null,skeletonConfig:null,type:`candlestick`,debug:!1,loading:!1,responsive:!1,responsiveProportionalSizing:!0,a11y:x,transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,useCssAnimation:!1,style:{fontFamily:`inherit`,backgroundColor:g,color:_,height:316,width:512,layout:{padding:F([0,0,0,0]),selector:{color:y,opacity:10},grid:{show:!0,stroke:y,strokeWidth:.5,verticalLines:{show:!1,strokeDasharray:0,strokeWidth:.5,stroke:y},horizontalLines:{show:!1,strokeDasharray:0,strokeWidth:.5,stroke:y},xAxis:{ticks:{show:!0},dataLabels:{show:!0,fontSize:S._10,color:_,offsetY:0,bold:!1,rotation:0,autoRotate:{enable:!0,angle:-30},datetimeFormatter:N,showOnlyFirstAndLast:!1,showFirstAndLast:!0,showOnlyAtModulo:!1,modulo:2}},yAxis:{position:`left`,scale:{min:null,max:null},dataLabels:{show:!0,fontSize:S._12,color:_,roundingValue:0,offsetX:0,bold:!1,steps:10,prefix:``,suffix:``}}},wick:{stroke:r,strokeWidth:.5,extremity:{shape:w.LINE,size:`auto`,color:r}},candle:{borderRadius:1,stroke:r,strokeWidth:.5,colors:{bearish:d,bullish:f},gradient:{show:!0,underlayer:c},widthRatio:.5}},zoom:{...z,minimap:B,preview:{enable:!0,fill:`#CCCCCC50`,stroke:`#6A6A6A`,strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},title:k,tooltip:{...j,roundingValue:0,prefix:``,suffix:``,showChart:!0,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`}},translations:{period:`Period`,open:`Open`,high:`High`,low:`Low`,last:`Close`,volume:`Volume`},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,th:I,useDialog:!1,td:{...L,roundingValue:2,prefix:``,suffix:``}}},ue={useCursorPointer:!1,devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,theme:``,responsive:!1,type:w.LINE,downsample:E,a11y:x,translations:{period:`period`,value:`value`},gradientPath:{show:!1,segments:256,colors:{high:`#34eb96`,low:`#eb4034`}},temperatureColors:{show:!1,colors:[`#34eb96`,`#eb4034`]},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},style:{chartWidth:290,animation:{show:!1,animationFrames:360},padding:F([12,12,3,0]),fontFamily:`inherit`,backgroundColor:g,scaleMin:null,scaleMax:null,line:{color:u,strokeWidth:2,smooth:!1,cutNullValues:!1,nullDashes:{show:!1},dashIndices:[],dashArray:4,pulse:{show:!1,loop:!0,color:c,durationMs:4e3,easing:`ease-in-out`,radius:2,cubicBezier:[.45,.45,.55,.55],trail:{show:!1,length:6,opacity:.75}}},bar:{borderRadius:3,color:u},zeroLine:{color:r,strokeWidth:1},plot:{show:!0,radius:4,stroke:c,strokeWidth:1},verticalIndicator:{show:!0,strokeWidth:1.5,color:u,strokeDasharray:3},dataLabel:{show:!0,position:T.LEFT,offsetX:0,offsetY:0,fontSize:S._20,bold:!0,color:_,roundingValue:0,valueType:`latest`,prefix:``,suffix:``,formatter:null,datetimeFormatter:N},title:{show:!0,textAlign:T.LEFT,color:_,fontSize:S._16,bold:!0,text:``},tooltip:{show:!1,fontSize:S._14,color:_,backgroundColor:g,offsetY:0,borderWidth:0,borderColor:b,borderRadius:2,backgroundOpacity:100},area:{show:!0,useGradient:!0,opacity:30,color:u},zoom:{show:!1,selection:{fill:r,stroke:`transparent`,fillOpacity:.1,strokeOpacity:.5,strokeWidth:1,strokeDasharray:0},resetButton:{show:!0,title:`Reset zoom · double-click chart or press Esc`,ariaLabel:`Reset zoom`,color:r}}}},de={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],style:{fontFamily:`inherit`,backgroundColor:g,animation:{show:!0,animationFrames:60},layout:{independant:!0,percentage:!0,target:0,showTargetValue:!1,targetValueText:``},gutter:{backgroundColor:y,opacity:100},bar:{borderRadius:null,gradient:{show:!0,intensity:40,underlayerColor:c}},labels:{fontSize:S._16,name:{position:`top-left`,width:`100%`,color:_,bold:!1},value:{show:!0,bold:!0}},title:{text:``,color:_,fontSize:S._16,bold:!0,textAlign:T.LEFT,margin:`0 0 6px 0`,subtitle:{color:v,text:``,fontSize:S._12,bold:!1}},gap:4}},fe={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,useCursorPointer:!1,a11y:{...x,translations:{...x.translations,series:`Series`,percentage:`Percentage`,value:`Value`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],style:{fontFamily:`inherit`,backgroundColor:g,animation:{show:!0,animationFrames:60},bar:{borderRadius:null,gradient:{show:!0,intensity:40,underlayerColor:c}},legend:{show:!0,textAlign:T.LEFT,fontSize:S._12,margin:`6px 0 0 0`,name:{color:_,bold:!1},value:{show:!0,bold:!1,color:_,prefix:``,suffix:``,rounding:0,formatter:null},percentage:{show:!0,bold:!0,color:_,rounding:1},selectAllToggle:{show:!1,backgroundColor:b,color:_}},title:{...k,textAlign:T.LEFT,margin:`0 0 6px 0`},tooltip:{...j}}},pe={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,series:`Series`,time:`Time`,value:`Value`,label:`Label`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,style:{fontFamily:`inherit`,backgroundColor:g,animation:{show:!0,speedMs:500},layout:{height:96,width:640,padding:F([24,0,36,0])},bars:{shape:w.SQUARE,strokeWidth:0,colors:{positive:u,negative:d,gradient:{show:!0}},borderRadius:24,gap:12},labels:{value:{show:!0,fontSize:S._14,minFontSize:C,color:_,bold:!0,rounding:1,prefix:``,suffix:``,offsetY:0,formatter:null},valueLabel:{show:!0,fontSize:S._14,minFontSize:C,color:_,bold:!1,rounding:0},timeLabel:{show:!0,fontSize:S._12,minFontSize:C,color:_,bold:!1}},selector:{stroke:u,fill:`#2D353C10`,strokeWidth:2,strokeDasharray:0,borderRadius:2},title:{text:``,color:_,fontSize:S._16,bold:!0,textAlign:T.LEFT,subtitle:{color:v,text:``,fontSize:S._12,bold:!1},margin:`0 0 6px 0`}}},me={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,theme:``,style:{fontFamily:`inherit`,background:c,height:84,basePosition:72,animation:{show:!0,speedMs:150},title:{show:!0,fontSize:S._12,position:T.TOP,textAlign:T.CENTER,bold:!1,color:_},dataLabel:{fontSize:S._20,autoColor:!0,color:_,offsetY:0,bold:!0,rounding:0,prefix:``,suffix:``,formatter:null},colors:{min:d,max:f,showGradient:!0},track:{autoColor:!0,color:u,strokeLinecap:w.ROUND},gutter:{color:y,strokeLinecap:w.ROUND}}},he={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,theme:``,downsample:E,style:{fontFamily:`inherit`,backgroundColor:g,height:80,width:300,animation:{show:!0,animationFrames:20},line:{stroke:r,strokeWidth:2,strokeLinecap:w.ROUND,strokeLinejoin:w.ROUND,smooth:!0,useColorTrend:!0},area:{show:!0,useGradient:!0,opacity:20},dataLabel:{show:!0,useColorTrend:!0,color:_,fontSize:S._14,bold:!1,prefix:``,suffix:``,rounding:0,formatter:null},trendLabel:{trendType:`global`,useColorTrend:!0,color:_,fontSize:S._14,bold:!0,rounding:0},arrow:{colors:{positive:f,neutral:i,negative:d}},padding:F([12,12,12,82])}},ge={annotatorPalette:h,devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,a11y:x,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},transitions:M,responsive:!1,theme:``,axisLabelsFontSize:S._12,backgroundColor:g,barGap:12,barAnimated:!0,barStrokeWidth:1,blurOnHover:!0,chartIsBarUnderDatasetLength:6,color:_,customPalette:[],dataLabelFontSize:S._14,dataLabelRoundingPercentage:1,dataLabelRoundingValue:0,donutHideLabelUnderPercentage:3,donutCurvedMarkers:!0,donutLabelMarkerStrokeWidth:1,donutRadiusRatio:.4,donutShowTotal:!0,donutStrokeWidth:2,donutStroke:g,donutThicknessRatio:.18,donutTotalLabelFontSize:S._24,donutTotalLabelOffsetY:0,donutTotalLabelText:`Total`,donutUseShadow:!1,donutShadowColor:r,fontFamily:`inherit`,formatter:null,height:338,legendFontSize:S._12,legendIcon:`circleFill`,legendIconSize:S._12,legendPosition:`bottom`,showLegendSelectAllToggle:!1,legendSelectAllToggleBackgroundColor:b,legendSelectAllToggleColor:_,lineAnimated:!0,lineSmooth:!0,lineStrokeWidth:2,paletteStartIndex:0,showDataLabels:!0,showLegend:!0,showTooltip:!0,showUserOptions:!0,userOptionsPosition:`right`,showUserOptionsOnChartHover:!1,keepUserOptionsStateOnChartLeave:!0,useCursorPointer:!1,userOptionsAnnotator:{showGroupActions:!0,followZoom:!0},userOptionsButtons:{tooltip:!0,pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0,altCopy:!1},userOptionsButtonTitles:{open:`Open options`,close:`Close options`,tooltip:`Toggle tooltip`,pdf:`Download PDF`,img:`Download PNG`,fullscreen:`Toggle fullscreen`,annotator:`Toggle annotator`,svg:`Download SVG`,altCopy:`Copy alt text`},userOptionsPrint:{overflowTolerance:.2,orientation:`auto`,scale:2},userOptionsCallbacks:{tooltip:null,pdf:null,img:null,fullscreen:null,annotator:null,svg:null,altCopy:null},title:``,titleBold:!0,titleFontSize:S._16,titleTextAlign:`center`,tooltipTeleportTo:`body`,tooltipCustomFormat:null,tooltipBackgroundOpacity:100,tooltipBorderRadius:4,tooltipBorderColor:a,tooltipBorderWidth:1,tooltipFontSize:S._14,tooltipPosition:T.CENTER,tooltipOffsetX:0,tooltipOffsetY:24,tooltipSmooth:!0,tooltipSmoothForce:.18,tooltipSmoothSnapThreshold:.25,tooltipBackdropFilter:!0,useCustomLegend:!1,valuePrefix:``,valueSuffix:``,width:512,xAxisLabel:``,xyAxisStroke:y,xyAxisStrokeWidth:1,xyGridStroke:y,xyGridStrokeWidth:.5,xyHighlighterColor:r,xyHighlighterOpacity:.05,xyLabelsXFontSize:S._10,xyLabelsYFontSize:S._12,xyPaddingBottom:12,xyPaddingLeft:12,xyPaddingRight:12,xyPaddingTop:12,xyPeriodLabelsRotation:0,xyPeriodLabelsAutoRotate:{enable:!0,angle:-30},xyPeriods:[],datetimeFormatter:N,xyPeriodsShowOnlyAtModulo:!1,xyPeriodsModulo:12,xyScaleSegments:15,xyShowAxis:!0,xyShowGrid:!0,xyShowScale:!0,yAxisLabel:``,zoomXy:!0,zoomXyAutoFit:!1,zoomColor:o,zoomHighlightColor:s,zoomFontSize:S._14,zoomUseResetSlot:!1,zoomMinimap:V,zoomStartIndex:null,zoomEndIndex:null,zoomEnableRangeHandles:!0,zoomEnableSelectionDrag:!0,zoomFocusOnDrag:!1,zoomFocusRangeRatio:.2,zoomMaxWidth:null,dragToZoom:{show:!1,selection:{fill:u,stroke:i,fillOpacity:.2,strokeOpacity:.5,strokeWidth:1,strokeDasharray:0}}},_e={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,style:{fontFamily:`inherit`,backgroundColor:g,color:_,height:500,width:500,layout:{padding:F([12,12,36,12]),grid:{show:!0,stroke:y,strokeWidth:1},dataLabels:{sideTitles:{show:!0,fontSize:S._18,color:_,useSideColor:!0,bold:!1,offsetY:0},xAxis:{show:!0,fontSize:S._12,color:_,bold:!1,scale:1e3,translation:`in thousands`,formatter:null,rotation:0,autoRotate:{enable:!0,angle:-30}},yAxis:{show:!0,display:`age`,fontSize:S._12,color:_,bold:!1,showEvery:5,formatter:null}},centerSlit:{width:20},bars:{gap:2,borderRadius:2,left:{color:d},right:{color:u},gradient:{show:!0,underlayer:c,intensity:60,shiftHue:.05},labels:{show:!0,showOnHover:!0,fontSize:S._12,color:_,bold:!1,formatter:null,offsetX:0}}},highlighter:{color:r,opacity:5},title:k,tooltip:{...j,roundingValue:0}},translations:{age:`age`,male:`male`,female:`female`,total:`total`,year:`year`},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:L}},ve={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,theme:``,customPalette:[],style:{fontFamily:`inherit`,backgroundColor:g,color:_,size:400,limit:50,animation:{show:!0,speedMs:300},labels:{color:_,fontSize:S._14,minFontSize:C},weightLabels:{size:8,show:!0,formatter:null,prefix:``,suffix:``,rounding:0},links:{curved:!1,maxWidth:3},circle:{radiusProportion:.2,stroke:o,strokeWidth:1,offsetY:0},plot:{radius:3,useSerieColor:!0,color:r},title:k},userOptions:P({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0})},ye={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:``,customPalette:[],style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:360,width:256,thermometer:{width:48},padding:{top:12,bottom:12},graduations:{show:!0,sides:`both`,height:2,stroke:y,strokeWidth:1,showIntermediate:!0,gradient:{show:!0,intensity:20}},animation:{use:!0,speedMs:1e3},label:{show:!0,fontSize:S._20,minFontSize:C,rounding:1,bold:!0,color:_,prefix:``,suffix:``,formatter:null}},title:k},userOptions:P({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0})},be={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,useBlurOnHover:!0,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,size:360,layout:{labels:{dataLabels:{...O,prefix:``,suffix:``,formatter:null,show:!1,offsetX:0,fontSize:10,color:_,bold:!1,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,markers:{stroke:`#8A8A8A`,strokeWidth:1,radius:3,position:`right`}}},rings:{strokeWidth:2,stroke:y,gradient:{show:!0,intensity:40,underlayerColor:c},useShadow:!0}},legend:{...A,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`},title:k,tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0,labels:!0}),table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},xe={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,theme:``,a11y:x,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},transitions:M,customPalette:[],style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,zoom:z,donuts:{hover:{hideLabelsUnderValue:5}},dialog:{show:!0,backgroundColor:g,color:_,header:{backgroundColor:g,color:_},donutChart:{...U,responsive:!0,userOptions:{...U.userOptions,buttons:{...U.userOptions.buttons,pdf:!1}},style:{...U.style,chart:{...U.style.chart,layout:{...U.style.chart.layout,donut:{...U.style.chart.layout.donut,strokeWidth:64},labels:{...U.style.chart.layout.labels,percentage:{...U.style.chart.layout.labels.percentage,fontSize:16},name:{...U.style.chart.layout.labels.name,fontSize:12},hollow:{...U.style.chart.layout.labels.hollow,average:{...U.style.chart.layout.labels.hollow.average,show:!1}}}}}}}},layout:{height:316,width:512,padding:F([5,10,5,10]),grid:{show:!0,stroke:y,strokeWidth:.7,showVerticalLines:!0,axis:{yLabel:``,yLabelOffsetX:0,xLabel:``,xLabelOffsetY:0,fontSize:S._14,color:_},yAxis:{position:`left`,scaleMin:null,scaleMax:null,autoScale:!1,dataLabels:{show:!0,fontSize:S._10,color:_,roundingValue:0,offsetX:0,bold:!1,steps:10}},xAxis:{dataLabels:{show:!0,values:[],datetimeFormatter:N,fontSize:S._10,showOnlyFirstAndLast:!1,color:_,rotation:0,autoRotate:{enable:!0,angle:-30},offsetY:0}}},line:{show:!0,stroke:o,strokeWidth:4},highlighter:{color:r,opacity:5},dataLabels:{show:!0,fontSize:S._10,color:_,bold:!1,rounding:0,prefix:``,suffix:``,offsetY:0,formatter:null}},title:k,legend:{...A,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`}}},userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,columnNames:{period:`Period`,total:`Total`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},Se={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,layout:{grid:{show:!0,stroke:y,strokeWidth:.5},outerPolygon:{stroke:y,strokeWidth:1},dataPolygon:{color:u,opacity:60,gradient:{show:!0,intensity:1},stroke:u,strokeWidth:0},smileys:{strokeWidth:1,colors:{1:`#e20001`,2:`#ff9f03`,3:`#ffd004`,4:`#9ac900`,5:`#059f00`}},dataLabel:{color:_,roundingValue:0,roundingPercentage:0,bold:!0,prefix:``,suffix:``,formatter:null}},title:k,legend:{...A,roundingValue:0,roundingPercentage:0,position:`bottom`}}},userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},Ce={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,nodes:{stroke:c,strokeHovered:r},links:{stroke:o,strokeWidth:2,useChildColor:!1},title:k,tooltip:j,zoom:{show:!0,speed:1}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0,zoom:!0}),table:{...R,useDialog:!1,th:I,td:L,translations:{nodeName:`Node name`,details:`Details`,ancestor:`Parent node`}}},we={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,theme:``,customPalette:[],useCssAnimation:!1,useBlurOnHover:!0,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},serieToggleAnimation:{show:!0,durationMs:500},startAnimation:{show:!1,durationMs:1e3,staggerMs:50},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,useGradient:!0,gradientIntensity:40,padding:F([0,0,0,0]),width:512,height:512,layout:{labels:{dataLabels:{...O,show:!0,prefix:``,suffix:``,hideUnderValue:3,fontSize:S._14,offsetX:4,offsetY:12,useSerieColor:!1,color:_,showValue:!0,showPercentage:!0,boldValue:!1,boldPercentage:!0,roundingValue:0,roundingPercentage:0,showDonutName:!0,boldDonutName:!0,curvedDonutName:!0,donutNameAbbreviation:!1,donutNameMaxAbbreviationSize:3,donutNameOffsetY:0,formatter:null}},donut:{strokeWidth:200,borderWidth:2,spacingRatio:.5,useShadow:!1,shadowColor:r,emptyFill:y,selectedColor:`#0000001A`,borderColorAuto:!0,borderColor:b}},legend:{...A,...O,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`},title:k,tooltip:{...j,...O,showAllItemsAtIndex:!0,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},Te={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,useBlurOnHover:!0,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,layout:{arcs:{strokeWidth:24,borderWidth:12,offsetX:0,offsetY:0,hoverEffect:{show:!0,multiplicator:1.1},gradient:{show:!0,intensity:30,color:c}},labels:{dataLabels:{...O,prefix:``,suffix:``,formatter:null}}},legend:{...A,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`},title:k,tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},Ee={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,type:0,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,theme:``,customPalette:[],useCssAnimation:!0,userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:600,width:600,padding:F([12,12,12,12]),grid:{show:!0,stroke:o,strokeWidth:1,scaleSteps:10,scaleMin:null,scaleMax:null,horizontalGrid:{show:!0,stroke:o,strokeWidth:.5,strokeDasharray:4},verticalGrid:{show:!0,stroke:o,strokeWidth:.5,strokeDasharray:4}},plots:{opacity:.9,radius:4,stroke:c,strokeWidth:1,shape:w.CIRCLE,gradient:{show:!0,intensity:40}},violin:{widthRatio:1,strokeWidth:1,opacity:.2,strokeOpacity:.35,useSerieColor:!0,stroke:`#5A5A5A`,fill:`#5A5A5A`,boxPlot:{show:!0,widthRatio:1,useSerieColor:!0,color:`#5A5A5A`,medianCircleRadiusRatio:1,medianCircleFill:c},tooltipLabels:{upperAdjacent:`Upper adjacent`,q3:`Q3`,median:`Median`,q1:`Q1`,lowerAdjacent:`Lower adjacent`,iqr:`IQR`,count:`Count`}},labels:{prefix:``,suffix:``,formatter:null,bestPlotLabel:{show:!0,showValue:!0,fontSize:S._14,color:_,rounding:0,offsetY:0},axis:{xLabel:``,xLabelOffsetY:0,yLabel:``,yLabelOffsetX:0,fontSize:S._14,color:_},xAxisLabels:{show:!0,color:_,fontSize:S._14,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30}},yAxisLabels:{show:!0,color:_,fontSize:S._14,rounding:0,offsetX:0}},title:k,tooltip:{...j,roundingValue:0}}},table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`},th:I,td:{...L,roundingValue:0}}},De={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,useAnimation:!1,animationSpeed:2,userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:600,rowHeight:48,padding:F([12,24,12,12]),plots:{startColor:d,endColor:u,evaluationColors:{enable:!1,positive:`#2ca02c`,negative:`#d62728`,neutral:`#c7c7c7`},radius:6,stroke:c,strokeWidth:1,link:{strokeWidth:2,type:w.CURVED},gradient:{show:!0,intensity:40}},grid:{strokeWidth:1,scaleSteps:10,scaleMin:null,scaleMax:null,horizontalGrid:{show:!0,stroke:o,strokeWidth:.5,strokeDasharray:0},verticalGrid:{show:!0,stroke:o,strokeWidth:.5,strokeDasharray:0}},comparisonLines:{show:!0,strokeWidth:1,strokeDasharray:4,showRect:!0,rectColor:r,rectOpacity:5,showLabel:!0,labelColor:r,labelFontSize:S._12},highlighter:{color:r,opacity:5},labels:{prefix:``,suffix:``,formatter:null,axis:{yLabel:``,yLabelOffsetX:0,xLabel:``,xLabelOffsetY:0,fontSize:S._14,color:_},yAxisLabels:{show:!0,fontSize:S._14,color:_,offsetX:0,bold:!0,showProgression:!0,rounding:1,formatter:null},xAxisLabels:{show:!0,fontSize:S._14,color:_,offsetY:0,bold:!1,rounding:0,rotation:0,autoRotate:{enable:!0,angle:-30}},startLabels:{show:!0,fontSize:S._10,color:_,offsetY:0,rounding:0,useStartColor:!0,useEvaluationColor:!0},endLabels:{show:!0,fontSize:S._10,color:_,offsetY:0,rounding:0,useEndColor:!0,useEvaluationColor:!0}},legend:{...A,labelStart:`start`,labelEnd:`end`,labelPositive:`positive`,labelNegative:`negative`,labelNeutral:`neutral`,position:`bottom`},title:k}},table:{...R,useDialog:!1,columnNames:{series:`Series`,start:`Start value`,end:`End value`,progression:`Progression`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},Oe={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,style:{fontFamily:`inherit`,shape:w.BAR,chart:{animation:{use:!0,speed:1,acceleration:1},backgroundColor:g,color:_,bar:{color:u,stroke:u,strokeWidth:.7,shadeColor:r},box:{stroke:o,strokeWidth:.7,strokeDasharray:2,dimensions:{width:128,height:256,top:27,bottom:9,left:24,right:24,perspective:18}},title:k,legend:{showDefault:!0,fontSize:S._10,color:_,bold:!1,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``,hideUnderPercentage:3},dataLabel:{show:!0,bold:!0,color:u,fontSize:S._12,rounding:1,formatter:null}}},userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},ke={debug:!1,devHints:D,theme:``,customPalette:[],responsiveBreakpoint:500,showAverage:!0,showMedian:!0,showTotal:!0,roundingAverage:0,roundingMedian:0,roundingValues:0,roundingTotal:0,prefix:``,suffix:``,formatter:null,showSparklines:!0,fontFamily:`inherit`,colNames:[],sortedDataColumnIndices:[],sortedSeriesName:!1,sortedSum:!1,sortedAverage:!1,sortedMedian:!1,resetSortOnClickOutside:!1,sparkline:{useGradient:!0,showArea:!0,strokeWidth:3,type:w.LINE,smooth:!0,cutNullValues:!1,dimensions:{width:150,heightRatio:1},animation:{show:!0,animationFrames:360}},translations:{serie:`Serie`,total:`Total`,average:`Average`,median:`Median`,chart:`Evolution`},title:{text:``,color:_,fontSize:S._20,bold:!0,textAlign:`center`,backgroundColor:g,subtitle:{color:v,text:``,fontSize:S._16,bold:!1}},thead:{backgroundColor:g,color:_,fontSize:S._14,outline:`none`,textAlign:T.LEFT,bold:!1},tbody:{showColorMarker:!0,backgroundColor:g,color:_,fontSize:S._14,outline:`none`,textAlign:T.LEFT,bold:!1,selectedColor:{useSerieColor:!0,fallback:y}},userOptions:P({pdf:!0,csv:!0,img:!0,fullscreen:!0})},Ae={debug:!1,devHints:D,theme:``,style:{fontFamily:`inherit`,backgroundColor:g,color:_,shapeSize:S._14,heatmapColors:{useIndividualScale:!1,min:c,max:u}},table:{responsiveBreakpoint:400,borderWidth:1,showSum:!1,showAverage:!1,showMedian:!1,head:{backgroundColor:g,color:_,values:[]}},userOptions:P({pdf:!0,csv:!0,img:!0,fullscreen:!0})},je={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,animationDelayMs:20,quality:`fast`,strictPixelPadding:!0,userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0,zoom:!0}),nodeCategories:{},nodeCategoryColors:{},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:512,width:512,zoom:{show:!0},controls:{position:`bottom`,show:!0,backgroundColor:y,buttonColor:y,color:_,fontSize:14,border:`1px solid ${b}`,padding:`0.5rem`,borderRadius:`0.25rem`},words:{maxFontSize:100,minFontSize:S._10,bold:!1,proximity:0,packingWeight:1,color:_,usePalette:!0,hoverOpacity:.5,selectedStroke:`transparent`},title:k,tooltip:{...j,roundingValue:0}}},table:{...R,useDialog:!1,columnNames:{series:`Word`,value:`Value`},th:I,td:{...L,roundingValue:0,prefix:``,suffix:``}}},Me={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:``,customPalette:[],a11y:x,downsample:{threshold:1e4},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,stack:!0,annotator:!0}),events:{datapointEnter:null,datapointLeave:null,datapointClick:null},style:{fontFamily:`Arial`,chart:{backgroundColor:g,color:_,aspectRatio:`12 / 9`,stacked:!1,stackGap:20,scale:{ticks:10,min:null,max:null},zoom:{...z,minimap:V,preview:{enable:!1,fill:`#CCCCCC50`,stroke:`#6A6A6A`,strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},selector:{show:!0,color:r,dashed:!0,showHorizontalSelector:!1},tooltip:{...j,showTimeLabel:!0,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`},legend:{...A,position:`bottom`},title:k,grid:{y:{showAxis:!0,axisColor:r,axisThickness:2,axisName:``,axisLabels:{show:!0,fontSizeRatio:1,color:_,offsetX:0,rounding:1,prefix:``,suffix:``,bold:!1},verticalLines:{show:!0,color:o,hideUnderXLength:20,position:`middle`}},x:{showAxis:!0,axisColor:r,axisThickness:2,axisName:``,horizontalLines:{show:!0,color:o,alternate:!0,opacity:20},timeLabels:{show:!0,showMarker:!0,fontSizeRatio:.8,values:[],datetimeFormatter:N,rotation:0,offsetY:30,color:_,modulo:12,bold:!1}},zeroLine:{show:!0,color:r,dashed:!0}},line:{cutNullValues:!0,plots:{show:!0,radiusRatio:1}},bar:{gradient:{show:!0}},area:{opacity:60},dataLabels:{show:!0,fontSizeRatio:1,useSerieColor:!0,color:_,offsetY:-12,formatter:null,bold:!0},paddingProportions:{top:.1,right:.05,bottom:.1,left:.1}}},table:{...R,useDialog:!1,rounding:1,columnNames:{period:`Period`,total:`Total`},th:I,td:L}},Ne={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,tooltip:!0,svg:!0}),nodeCategories:{},nodeCategoryColors:{},style:{fontFamily:`inherit`,chart:{backgroundColor:g,width:1e3,height:600,color:_,padding:F([12,12,12,12]),title:k,tooltip:{...j,showPercentage:!0,roundingPercentage:0,translations:{from:`From:`,to:`To:`,percentOfTotal:`Percent of total:`}},legend:{...A,position:`bottom`},nodes:{gap:10,width:40,labels:{show:!0,showValue:!0,fontSize:S._14,abbreviation:{use:!0,length:3},prefix:``,suffix:``,rounding:0,formatter:null},stroke:c,strokeWidth:1,borderRadius:0},links:{opacity:.8,stroke:c,strokeWidth:1,smooth:!0}}},table:{...R,useDialog:!1,columnNames:{source:`Source`,target:`Target`,value:`Value`},th:I,td:L}},Pe={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,theme:``,useCssAnimation:!1,customPalette:[],userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:600,width:1e3,padding:F([0,0,0,0]),comments:{show:!0,showInTooltip:!0,width:200,offsetX:0,offsetY:0},lines:{smooth:!0,strokeWidth:2,opacity:.8},plots:{show:!0,radius:6,opacity:.8},yAxis:{scaleTicks:10,stroke:r,strokeWidth:1,labels:{showAxisNames:!0,axisNames:[],axisNamesRotation:0,axisNamesAutoRotate:{enable:!0,angle:-30},axisNamesColor:_,axisNamesFontSize:S._16,axisNamesBold:!0,roundings:[],prefixes:[],suffixes:[],formatters:[],ticks:{show:!0,fontSize:S._14,color:_,bold:!1,offsetX:0,offsetY:0},datapoints:{show:!0,fontSize:S._14,useSerieColor:!0,color:_,offsetX:0,offsetY:0,bold:!0}}},title:k,legend:{...A,position:`bottom`},tooltip:j}},table:{...R,useDialog:!1,columnNames:{series:`Series`,item:`Item`},th:I,td:L}},Fe={devHints:D,type:`stopwatch`,responsive:!1,responsiveProportionalSizing:!0,useCursorPointer:!1,style:{fontFamily:`inherit`,backgroundColor:g,height:300,width:300,title:k},stopwatch:{showHours:!1,showHundredth:!0,cycleSeconds:5,track:{radiusRatio:1,stroke:y,fill:c,strokeWidth:2},tracker:{radiusRatio:1,stroke:c,strokeWidth:1,fill:r,gradient:{show:!0,color:c},aura:{show:!0,radiusRatio:1,fill:r,stroke:c,strokeWidth:0}},cycleTrack:{show:!0,stroke:r,strokeWidth:3},label:{fontSize:S._24,color:_,bold:!1},legend:{backgroundColor:g,buttons:{start:!0,pause:!0,reset:!0,restart:!0,lap:!0,iconColor:r},buttonTitles:{start:`Start`,pause:`Pause`,resume:`Resume`,reset:`Reset`,restart:`Restart`,lap:`Lap`}}}},Ie={bubbleEffect:!0,bubbleEffectColor:c,bubbleEffectOpacity:.1,centerCircleColor:c,centerCircleDasharray:0,centerCircleOpacity:0,centerCircleRadius:50,centerCircleStroke:o,centerCircleStrokeWidth:.5,coordinatesColor:o,coordinatesFontSize:S._10,coordinatesOffset:0,crosshairDasharray:0,crosshairStroke:o,crosshairStrokeWidth:.5,intersectCirclesFill:o,intersectCirclesRadius:2,isLoading:!1,parentId:``,showCenterCircle:!0,showCoordinates:!0,showCrosshair:!0,showIntersectCircles:!0,useWaveOnClick:!0},Le={open:!1,maxHeight:2e3,useCursorPointer:!1,head:{useArrowSlot:!1,backgroundColor:g,color:_,iconColor:u,iconSize:20,icon:`arrowRight`,padding:`12px 6px`},body:{backgroundColor:g,color:_}},Re={devHints:D,debug:!1,animationFrames:60,animationValueStart:0,backgroundColor:g,fontFamily:`inherit`,layoutClass:``,layoutCss:``,prefix:``,suffix:``,title:``,titleBold:!0,titleColor:_,titleClass:``,titleCss:``,titleFontSize:S._16,useAnimation:!0,valueBold:!0,valueColor:u,valueClass:``,valueCss:``,valueFontSize:S._32,valueRounding:0,formatter:null,analogDigits:{show:!1,height:40,color:_,skeletonColor:y}},ze={devHints:D,type:`onion`,onion:{gutterColor:o,gutterOpacity:.3,gutterBlur:0,trackHueRotate:20,trackBlur:1,trackColor:p},line:{gutterColor:o,gutterOpacity:.3,gutterBlur:0,trackHueRotate:20,trackBlur:1,trackColor:p},bar:{gutterColor:o,gutterOpacity:.3,gutterBlur:0,trackHueRotate:20,trackBlur:1,trackColor:p}},Be={debug:!1,devHints:D,readonly:!1,useCursorPointer:!1,style:{fontFamily:`inherit`,itemSize:32,backgroundColor:g,colors:{activeReadonly:[`#e20001`,`#ff9f03`,`#ffd004`,`#61c900`,`#059f00`],active:[`#e20001`,`#ff9f03`,`#ffd004`,`#61c900`,`#059f00`],inactive:[y,y,y,y,y]},icons:{filled:!1,useGradient:!0},title:{...k,textAlign:T.CENTER,offsetY:6,subtitle:{...k.subtitle,offsetY:12}},rating:{show:!0,fontSize:S._24,bold:!0,roundingValue:1,position:T.BOTTOM,offsetX:0,offsetY:0,formatter:null},tooltip:{show:!0,fontSize:S._14,offsetY:0,color:_,bold:!0,backgroundColor:g,borderColor:b,borderRadius:4,boxShadow:`0 6px 12px -6px rgba(0,0,0,0.2)`,roundingValue:0,formatter:null}}},Ve={debug:!1,devHints:D,type:w.STAR,readonly:!1,from:1,to:5,useCursorPointer:!1,style:{fontFamily:`inherit`,animated:!0,itemSize:32,backgroundColor:g,star:{activeColor:m,borderColor:m,borderWidth:3,apexes:5,inactiveColor:y,useGradient:!0},image:{src:``,inactiveOpacity:.3,alt:`rating image`},title:{textAlign:T.CENTER,fontSize:S._20,color:_,bold:!0,text:``,offsetY:6,subtitle:{fontSize:S._14,color:o,bold:!1,text:``,offsetY:12}},rating:{show:!0,fontSize:S._24,bold:!0,roundingValue:1,position:T.BOTTOM,offsetY:0,offsetX:0,formatter:null},tooltip:{show:!0,fontSize:S._14,offsetY:0,color:_,bold:!0,backgroundColor:g,borderColor:b,borderRadius:4,boxShadow:`0 6px 12px -6px rgba(0,0,0,0.2)`,roundingValue:0,formatter:null}}},He={devHints:D,alwaysVisible:!1,useCursorPointer:!1,style:{backgroundColor:g,color:_,fontFamily:`inherit`,showPrint:!1,showSave:!0,showImage:!0,showTooltips:!0,paletteColor:`#2D353C`,palette:h,buttons:{borderRadius:6,controls:{backgroundColor:g,color:_,border:`1px solid #262626`,selected:{backgroundColor:r,color:l,border:`1px solid ${b}`}},shapes:{backgroundColor:g,color:_,border:`1px solid #262626`,selected:{backgroundColor:_,color:g,border:`1px solid ${b}`}}},tooltips:{backgroundColor:l,color:_,border:`1px solid ${b}`,borderRadius:6,boxShadow:`0 6px 12px -6px rgba(0,0,0,0.2)`}},translations:{colorAlpha:`Color alpha`,dashedLines:`Dashed lines`,filled:`Filled`,fontSize:`Font size`,thickness:`Thickness`,title:`Annotations`,tooltipGroup:`Select & group`,tooltipDelete:`Delete`,tooltipMove:`Move`,tooltipResize:`Resize`,tooltipBringToFront:`Bring to front`,tooltipBringToBack:`Bring to back`,tooltipDuplicate:`Duplicate`,tooltipUndo:`Undo last shape`,tooltipRedo:`Redo last shape`,tooltipPdf:`Save pdf`,tooltipSave:`Save annotations`,tooltipShapeCircle:`Draw circle`,tooltipShapeRect:`Draw rect`,tooltipShapeArrow:`Draw arrow`,tooltipShapeFreehand:`Freehand line`,tooltipShapeText:`Text mode`,tooltipShapeTextLeft:`Align left`,tooltipShapeTextCenter:`Align center`,tooltipShapeTextRight:`Align right`,tooltipShapeTextBullet:`Bullet points`,tooltipShapeTextBold:`Bold`,tooltipShapeTextItalic:`Italic`,tooltipShapeTextUnderline:`Underlined`,tooltipShapeColor:`Color`,tooltipImage:`Download PNG`}},Ue={devHints:D,locked:!1,style:{board:{backgroundColor:g,color:_,aspectRatio:`1/1.4141`,border:`none`},item:{backgroundColor:g,borderColor:b},resizeHandles:{backgroundColor:_}},userOptions:{annotator:{showGroupActions:!0},show:!0,useCursorPointer:!1,showOnChartHover:!1,keepStateOnChartLeave:!0,position:`right`,buttons:{pdf:!0,img:!0,annotator:!0,altCopy:!1},callbacks:{pdf:null,img:null,annotator:null,altCopy:null},buttonTitles:{pdf:`Download PDF`,img:`Download PNG`,annotator:`Toggle annotator`,altCopy:`Copy alt text`},print:{scale:2,filename:``}}},We={devHints:D,type:w.LINE,style:{backgroundColor:g,color:_,maxHeight:500,animated:!0,chord:{color:y},ridgeline:{color:y},circlePack:{color:y},historyPlot:{color:y},bullet:{color:y},flow:{color:y},parallelCoordinatePlot:{color:y},treemap:{color:y},dumbbell:{color:y},stripPlot:{color:y},galaxy:{color:y},bar3d:{color:y},sparkHistogram:{color:y},sparkStackbar:{color:y},sparkbar:{color:y},thermometer:{color:y},relationCircle:{color:y},molecule:{color:y},tiremarks:{color:y},chestnut:{color:y},sparkline:{color:y,strokeWidth:.7},donutEvolution:{axis:{show:!0,color:y,strokeWidth:.5},donuts:{strokeWidth:.5,color:y}},line:{axis:{show:!0,color:y,strokeWidth:.5},path:{color:y,strokeWidth:1,showPlots:!0}},bar:{axis:{show:!0,color:y,strokeWidth:.5},borderRadius:.5,color:y,barWidth:9},donut:{color:y,strokeWidth:64},onion:{color:y},gauge:{color:y},quadrant:{grid:{color:y,strokeWidth:.5},plots:{radius:1.5,color:y}},radar:{grid:{color:y,strokeWidth:.5},shapes:{color:y}},waffle:{color:y},table:{th:{color:y},td:{color:y,strokeWidth:.5}},rating:{useSmiley:!1,color:y,filled:!0,strokeWidth:1,maxWidth:200},verticalBar:{axis:{show:!0,color:y,strokeWidth:.5},borderRadius:.5,color:y},heatmap:{cellsX:26,cellsY:7,color:y},candlesticks:{axis:{show:!0,color:y,strokeWidth:.5},candle:{color:y,strokeWidth:1}},pyramid:{color:y},wheel:{color:y},rings:{color:y}}},Ge={devHints:D,fontFamily:`inherit`,maxHeight:500,rowsPerPage:25,useCursorPointer:!1,style:{title:{...k,backgroundColor:g},th:{backgroundColor:y,color:_,outline:`1px solid ${c}`,selected:{backgroundColor:u,color:c},buttons:{filter:{inactive:{backgroundColor:y,color:_},active:{backgroundColor:u,color:c}},cancel:{inactive:{backgroundColor:y,color:r},active:{backgroundColor:`#F17171`,color:c}}}},rows:{outline:`1px solid ${g}`,even:{backgroundColor:`#f3f5f7`,color:_,selectedCell:{backgroundColor:`#1f77b45b`,color:_},selectedNeighbors:{backgroundColor:`#63dd821e`,color:_}},odd:{backgroundColor:g,color:_,selectedCell:{backgroundColor:`#1f77b45b`,color:_},selectedNeighbors:{backgroundColor:`#63dd821e`,color:_}}},inputs:{backgroundColor:g,color:_,border:`1px solid ${b}`,accentColor:u},dropdowns:{backgroundColor:y,color:_,icons:{selected:{color:f,unicode:`✔`},unselected:{color:d,unicode:`✖`}}},infoBar:{backgroundColor:y,color:_},pagination:{buttons:{backgroundColor:y,color:_,opacityDisabled:.5},navigationIndicator:{backgroundColor:u}},exportMenu:{show:!0,backgroundColor:y,color:_,buttons:{backgroundColor:l,color:_},filename:``},closeButtons:{backgroundColor:`transparent`,color:_,borderRadius:`50%`},chart:{modal:{backgroundColor:y,color:_,buttons:{selected:{backgroundColor:u,color:c},unselected:{backgroundColor:g,color:_}}},layout:{backgroundColor:g,axis:{stroke:`#ccd1d4`,strokeWidth:2},bar:{fill:u,stroke:c},line:{smooth:!0,useArea:!1,stroke:u,strokeWidth:4,plot:{fill:u,stroke:c,strokeWidth:1,radius:{selected:6,unselected:4}},selector:{stroke:`#ccc`,strokeWidth:1,strokeDasharray:5}},labels:{color:_},progression:{stroke:r,strokeWidth:2,strokeDasharray:4,arrowSize:7},timeLabels:{showOnlyAtModulo:!0,modulo:2},datetimeFormatter:{...N,enable:!0},zoom:{show:!0,autoFit:!0}}}},translations:{average:`Average`,by:`by`,chooseCategoryColumn:`Choose category column`,exportAllButton:`CSV all`,exportAllLabel:`Export all rows of your current filtered dataset`,exportPageButton:`CSV page`,exportPageLabel:`Export rows of the current page`,from:`From`,inputPlaceholder:`Search...`,makeDonut:`Generate`,nb:`Nb`,page:`Page`,paginatorLabel:`Rows per page`,sizeWarning:`Displaying too many rows at a time can lead to slower performance`,sum:`Sum`,to:`To`,total:`Total`,totalRows:`Total rows`,filename:`File name`,xAxisLabels:`X axis labels`},useChart:!0},Ke={devHints:D,height:`100%`,width:null,backgroundColor:g,digits:{color:_,skeletonColor:y,thickness:1}},qe={debug:!1,devHints:D,responsiveBreakpoint:400,userOptions:P({tooltip:!1,pdf:!0,csv:!0,img:!0,table:!1,labels:!1,fullscreen:!0,stack:!1,animation:!0}),animation:{type:`scroll`,use:!0,speedMs:1e3,pauseOnHover:!0},style:{backgroundColor:g,color:_,fontFamily:`inherit`},border:{size:0,color:r},caption:{text:``,padding:F([12,12,12,12]),style:{backgroundColor:g,color:_,fontSize:`${S._16}px`,fontWeight:`bold`,textAlign:`left`}},scrollbar:{showOnlyOnHover:!1,hide:!1},thead:{style:{verticalAlign:`middle`},tr:{height:32,border:{size:0,color:r},style:{backgroundColor:g,color:_,boxShadow:`0px 6px 12px -6px ${r}50`},th:{border:{size:0,color:r},padding:F([0,12,0,0]),style:{borderSpacing:0,border:`none`,textAlign:`right`,fontVariantNumeric:`tabular-nums`}}}},tbody:{backgroundColor:g,tr:{visible:5,height:32,border:{size:0,color:r},style:{backgroundColor:g,color:_},td:{alternateColor:!0,alternateOpacity:.5,border:{size:0,color:r},padding:F([0,12,0,0]),style:{fontVariantNumeric:`tabular-nums`,textAlign:`right`,backgroundColor:y}}}}},Je={devHints:D,a11y:{translations:{label:`Progress`}},skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,type:`battery`,size:64,stroke:o,color:u,useGradient:!0,gradientColor:`#9db5ed`,showPercentage:!0,textColor:r,fontFamily:`inherit`,formatter:null},Ye={devHints:D,debug:!1,loading:!1,responsive:!1,theme:``,userOptions:P({tooltip:!1,pdf:!0,csv:!1,img:!0,table:!1,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:96,width:600,padding:F([24,24,24,12]),animation:{show:!0,animationFrames:60},segments:{baseColor:`#9A9A9A`,dataLabels:{show:!0,color:_,fontSize:S._10,formatter:null,bold:!1,prefix:``,suffix:``,rounding:0,offsetY:0},ticks:{show:!0,divisions:10,stroke:`#8A8A8A`}},target:{show:!0,onTop:!0,color:_,rounded:!0,heightRatio:.8,stroke:c,strokeWidth:1,width:6},valueBar:{color:`#3A3A3A`,heightRatio:.33,stroke:c,strokeWidth:1,label:{show:!0,color:_,fontSize:S._14,bold:!0,offsetY:0}},title:{...k,textAlign:T.LEFT,paddingLeft:12},legend:{...A,roundingValue:0,position:`bottom`}}}},Q={debug:!1,devHints:D,theme:``,responsive:!1,responsiveProportionalSizing:!0,useCssAnimation:!0,table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0,roundingPercentage:0},columnNames:{series:`Step`,value:`Value`,percentage:`Percentage`}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:600,height:500,title:k,padding:F([12,128,24,24]),barCircleSpacingRatio:.05,circles:{stroke:c,strokeWidth:1,dataLabels:{formatter:null,fontSize:S._16,offsetY:0,adaptColorToBackground:!0,color:_,rounding:1,bold:!0}},circleLinks:{show:!0,color:y,widthRatio:1},area:{show:!0,color:y},bars:{stroke:c,defaultColor:u,strokeWidth:1,gapRatio:.2,borderRadius:3,dataLabels:{name:{fontSize:S._16,color:_,bold:!0,offsetX:0,offsetY:0},value:{formatter:null,fontSize:S._16,rounding:0,bold:!1,color:_,prefix:``,suffix:``,offsetX:0,offsetY:0}}}}}},Xe={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,theme:``,customPalette:[],useCssAnimation:!1,userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0},columnNames:{series:`Series`,datapoint:`Datapoint`,x:`x`,y:`y`}},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:500,width:600,padding:F([12,12,12,12]),grid:{xAxis:{show:!0,stroke:y,strokeWidth:1},horizontalLines:{show:!0,stroke:y,strokeWidth:.6},yAxis:{show:!0,stroke:y,strokeWidth:1},verticalLines:{show:!0,stroke:y,strokeWidth:.6}},axes:{x:{scaleMin:null,scaleMax:null,ticks:10,labels:{show:!0,fontSize:S._16,color:_,bold:!1,rounding:1,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30},formatter:null,prefix:``,suffix:``},name:{text:``,fontSize:S._16,offsetX:0,offsetY:0,bold:!1,color:_}},y:{scaleMin:null,scaleMax:null,ticks:10,labels:{show:!0,fontSize:S._16,color:_,bold:!1,rounding:1,offsetX:0,formatter:null,prefix:``,suffix:``},name:{text:``,fontSize:S._16,offsetX:0,offsetY:0,bold:!1,color:_}}},plots:{radius:16,stroke:c,strokeWidth:1,unselectedOpacity:.1,gradient:{show:!0,intensity:40},indexLabels:{show:!0,startAtZero:!1,adaptColorToBackground:!0,color:_,fontSize:S._16,bold:!1,offsetY:0,offsetX:0},labels:{show:!0,fontSize:S._10,color:_,bold:!1,offsetY:0,offsetX:0}},paths:{show:!0,strokeWidth:1.6,useSerieColor:!0,stroke:r},legend:{...A,position:`bottom`},title:k,tooltip:j}}},Ze={devHints:D,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0,zoom:!0}),table:{...R,useDialog:!1,th:I,td:L,columnNames:{datapoint:`Datapoint`,parent:`Parent`,depth:`Depth`,value:`Value`}},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,title:k,width:512,height:316,circles:{stroke:c,strokeWidth:1,selectedShadowColor:r,gradient:{show:!0,intensity:40},labels:{parents:{show:!1},children:{show:!0},name:{fontSizeRatio:1,show:!0,bold:!1,offsetY:0,color:`auto`},value:{fontSizeRatio:1,show:!0,color:`auto`,rounding:0,prefix:``,suffix:``,formatter:null,bold:!1,offsetY:0}}},parentTooltips:{show:!0,fontSizeRatio:1,borderRadiusRatio:1,color:r,filter:`drop-shadow(0 2px 4px #2D353C30)`,backgroundColor:c,strokeWidth:1,useSerieColor:!0,stroke:r,link:{strokeWidth:1,strokeDasharray:0,opacity:.6,useSerieColor:!1,stroke:r}},tooltip:j,zoom:{show:!0,speed:1}}}},Qe={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),customPalette:[],projection:`globe`,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,padding:F([12,12,12,12]),dataLabels:{prefix:``,suffix:``,rounding:0,formatter:null},dimensions:{height:null,width:null},globe:{center:{x:0,y:0},waterColor:u},territory:{stroke:`#666666`,emptyColor:`#E0E0E0`,strokeWidth:.5,strokeWidthSelected:2,colors:{min:`#E0E0E0`,max:null},showTaiwanAsPartOfChina:!1},tooltip:{...j,showMinimap:!0},title:k,legend:{...A,position:`bottom`}}},table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0},columnNames:{series:`Country`,value:`Value`,category:`Category`}}},$e={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,userOptions:P({tooltip:!1,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0},columnNames:{series:`Series`}},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,padding:F([12,0,0,12]),title:k,legend:A,dialog:{show:!0,backgroundColor:g,color:_,header:{backgroundColor:y,color:_},xyChart:{...H,responsive:!0,line:{...H.line,showTransition:!1,labels:{...H.line.labels,show:!0}},chart:{...H.chart,tooltip:{...H.chart.tooltip,showPercentage:!1},userOptions:{...H.chart.userOptions,buttons:{...H.chart.userOptions.buttons,pdf:!1,fullscreen:!1}},zoom:{...H.chart.zoom,autoFit:!0,minimap:{...H.chart.zoom.minimap,show:!0}}}}},areas:{height:60,rowHeight:30,strokeWidth:1,stroke:{useSerieColor:!1,color:c},smooth:!0,opacity:.9,useCommonColor:!1,useGradient:!0,maxPoint:{show:!0,adaptStrokeToBackground:!0,stroke:r,strokeWidth:1,strokeDasharray:4}},selector:{show:!0,stroke:o,strokeWidth:1,strokeDasharray:2,labels:{fontSize:12,formatter:null,rounding:0,color:_,showLast:!1},dot:{radius:4,useDatapointColor:!0,fill:o,stroke:c,strokeWidth:.5}},zeroLine:{show:!0,strokeWidth:1,strokeDasharray:0,useSerieColor:!1,stroke:o},xAxis:{labels:{prefix:``,suffix:``,rotation:0,autoRotate:{enable:!0,angle:-30},values:[],datetimeFormatter:N,color:_,fontSize:14,bold:!1,showOnlyAtModulo:!1,modulo:2,showOnlyFirstAndLast:!1,offsetY:0}},yAxis:{labels:{fontSize:16,bold:!1,color:_,offsetX:0,offsetY:0,centered:!1}}}}},et={devHints:D,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],enableRotation:!0,initialRotation:0,useCssAnimation:!1,userOptions:P({tooltip:!1,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:L},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,legend:{...A,position:`bottom`},title:k,arcs:{innerRadiusRatio:1,outerRadiusRatio:1,padAngle:5,stroke:c,strokeWidth:1,labels:{show:!0,fontSize:14,bold:!1,curved:!1,adaptColorToBackground:!0,color:_,offset:0,showPercentage:!0,roundingPercentage:0}},ribbons:{stroke:c,strokeWidth:1,underlayerOpacity:1,labels:{show:!0,formatter:null,prefix:``,suffix:``,rounding:0,fontSize:14,bold:!1,useSerieColor:!1,color:_,offset:0,minSeparationDeg:3,connector:{stroke:r,strokeWidth:1},marker:{show:!0,radius:3,stroke:c,strokeWidth:1}}}}}},tt={devHints:D,skeletonConfig:null,skeletonDataset:null,loading:!1,debug:!1,responsive:!1,theme:``,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},userOptions:P({tooltip:!1,pdf:!0,csv:!1,img:!0,fullscreen:!0,annotator:!0,svg:!0,zoom:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:null,height:null,backgroundPattern:{show:!1,spacingRatio:3,dotRadiusRatio:5,dotColor:y,opacity:1},layout:{rankDirection:`TB`,rankSeparation:60,nodeSeparation:50,edgeSeparation:30,nodeWidth:100,nodeHeight:40,curvedEdges:!0,padding:48,arrowShape:`vee`,arrowSize:8,align:void 0},nodes:{stroke:o,strokeWidth:1,borderRadius:3,backgroundColor:g,labels:{color:_,fontSize:S._12,bold:!1},tooltip:{showOnClick:!1,backgroundColor:y,color:_,maxWidth:`300px`},selected:{stroke:null,strokeWidth:null,backgroundColor:null,labelColor:null,downstreamEdges:{stroke:null,animated:null},upstreamEdges:{stroke:null,animated:null}}},edges:{stroke:o,strokeWidth:1,animations:{dasharray:`2 6`,animationDurationMs:1e3}},midpoints:{show:!1,radius:4,stroke:o,fill:c,strokeWidth:1,tooltip:{maxWidth:`300px`,backgroundColor:y,color:_},selectedEdge:{stroke:null,animated:null}},controls:{position:`bottom`,show:!0,backgroundColor:y,buttonColor:y,color:_,fontSize:14,border:`1px solid ${b}`,padding:`0.5rem`,borderRadius:`0.25rem`},zoom:{active:!0},title:k}}},nt={devHints:D,skeletonDataset:null,skeletonConfig:null,loading:!1,debug:!1,responsive:!1,projection:`equirectangular`,theme:``,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},userOptions:P({tooltip:!0,pdf:!0,csv:!1,img:!0,svg:!0,table:!1,labels:!1,fullscreen:!0,annotator:!0,zoom:!0}),map:{geoJson:null,center:[0,0],fitPadding:0},events:{datapointEnter:null,datapointLeave:null,datapointClick:null,territoryEnter:null,territoryLeave:null,territoryClick:null},style:{fontFamily:`inherit`,chart:{dimensions:{width:null,height:null},backgroundColor:g,color:_,territory:{fill:`#F2F3F5`,stroke:`#D0D4D8`,strokeWidth:1,hover:{enabledWhenEmpty:!1,fill:y,stroke:o,strokeWidth:1.5}},points:{radius:1,stroke:c,strokeWidth:1,fill:s,hoverRadiusRatio:1.2,labels:{show:!0,fontSizeRatio:1,color:_,offsetY:0}},controls:{position:`bottom`,show:!0,backgroundColor:y,buttonColor:y,color:_,fontSize:14,border:`1px solid ${b}`,padding:`0.5rem`,borderRadius:`0.25rem`},title:k,tooltip:j,zoom:{active:!0}}}},rt={devHints:D,skeletonConfig:null,skeletonDataset:null,loading:!1,debug:!1,responsive:!1,theme:``,customPalette:[],useCssAnimation:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},userOptions:P({tooltip:!1,pdf:!0,csv:!0,img:!0,svg:!0,table:!0,labels:!1,fullscreen:!0,sort:!1,stack:!1,animation:!1,annotator:!0,zoom:!1}),table:{...R,useDialog:!1,columnNames:{series:`Series`,period:`Period`,values:`Values`,ranking:`Ranking`},th:I,td:{...L,roundingValue:0}},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:500,width:800,layout:{timeLabels:{show:!0,values:[],datetimeFormatter:N,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30},fontSize:S._14,color:_,bold:!1,showOnlyFirstAndLast:!1,showOnlyAtModulo:!1,modulo:2},lines:{smooth:!0,strokeWidth:4,coatingColor:c},plots:{stroke:c,strokeWidth:1,radius:12,labels:{color:`auto`,show:!0,bold:!0,displayedValue:`value`,fontSize:S._12,prefix:``,suffix:``,rounding:0,formatter:null}},nameLabels:{fontSize:S._14,color:_,useSerieColor:!1,bold:!1,offsetX:0,leftLabels:{show:!0},rightLabels:{show:!0}}},padding:F([12,12,12,12]),title:k}}},it={theme:``,a11y:{translations:{keyboardNavigation:`Use the arrow keys to move this label. Hold Shift while pressing an arrow key to move it by a larger step.`}},title:{text:``,color:_,fontSize:14,lineHeight:14,bold:!1,textAlign:`left`,gap:6,marker:{color:null,shape:`circle`,beforeText:!0,size:14,offsetY:0}},content:{text:``,color:_,fontSize:12,lineHeight:12,bold:!1,textAlign:`left`},position:`auto`,link:{show:!0,stroke:_,strokeWidth:1,strokeDasharray:`0`,length:20,targetPlot:{show:!0,radius:2,stroke:g,strokeWidth:1}},box:{show:!0,backgroundColor:g,borderColor:_,borderWidth:1,borderRadius:3,padding:F([8,8,8,8]),maxWidth:200},drag:{enable:!0,handlePosition:`left`,handleWidth:18,showSeparator:!1,iconColor:_,iconOpacity:.6,iconSize:16},overflow:!1,overlap:!1,collisionGap:0},$=e(t);return{vue_ui_graph:{...$,tooltip:{...j,...$.tooltip},userOptions:{...P({pdf:!0,csv:!0,img:!0,svg:!0,table:!0,fullscreen:!0,zoom:!0,tooltip:!0,annotator:!0}),useCursorPointer:$.userOptions.useCursorPointer},table:{...R,useDialog:!1,columnNames:{nodes:`Nodes`,links:`Links`,id:`ID`,label:`Label`,group:`Group`,value:`Value`,connections:`Connections`,source:`Source`,target:`Target`,directed:`Directed`,metadata:`Metadata`},th:{...I},td:{...L}},style:{...$.style,chart:{...$.style.chart,title:{...k,subtitle:{...k.subtitle}}}}},vue_ui_xy:H,vue_ui_donut:U,vue_ui_treemap:W,vue_ui_waffle:G,vue_ui_radar:K,vue_ui_quadrant:q,vue_ui_gauge:J,vue_ui_wheel:Y,vue_ui_tiremarks:X,vue_ui_chestnut:ie,vue_ui_onion:ae,vue_ui_vertical_bar:Z,vue_ui_horizontal_bar:oe,vue_ui_heatmap:se,vue_ui_scatter:ce,vue_ui_candlestick:le,vue_ui_sparkline:ue,vue_ui_sparkbar:de,vue_ui_sparkstackbar:fe,vue_ui_sparkhistogram:pe,vue_ui_sparkgauge:me,vue_ui_spark_trend:he,vue_ui_quick_chart:ge,vue_ui_age_pyramid:_e,vue_ui_relation_circle:ve,vue_ui_thermometer:ye,vue_ui_rings:be,vue_ui_donut_evolution:xe,vue_ui_mood_radar:Se,vue_ui_molecule:Ce,vue_ui_nested_donuts:we,vue_ui_galaxy:Te,vue_ui_strip_plot:Ee,vue_ui_dumbbell:De,vue_ui_3d_bar:Oe,vue_ui_table_sparkline:ke,vue_ui_table_heatmap:Ae,vue_ui_word_cloud:je,vue_ui_xy_canvas:Me,vue_ui_flow:Ne,vue_ui_parallel_coordinate_plot:Pe,vue_ui_timer:Fe,vue_ui_carousel_table:qe,vue_ui_gizmo:Je,vue_ui_stackbar:re,vue_ui_bullet:Ye,vue_ui_funnel:Q,vue_ui_history_plot:Xe,vue_ui_world:Qe,vue_ui_ridgeline:$e,vue_ui_chord:et,vue_ui_stackline:ne,vue_ui_dag:tt,vue_ui_geo:nt,vue_ui_bump:rt,vue_ui_circle_pack:Ze,vue_ui_cursor:Ie,vue_ui_accordion:Le,vue_ui_kpi:Re,vue_ui_mini_loader:ze,vue_ui_smiley:Be,vue_ui_rating:Ve,vue_ui_annotator:He,vue_ui_dashboard:Ue,vue_ui_skeleton:We,vue_ui_table:Ge,vue_ui_digits:Ke,vue_ui_hill:te,vue_ui_label:it}}export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{computed as e,onMounted as t,onUnmounted as n,ref as r,watch as i,watchEffect as a}from"vue";function o(o,s={x:0,y:0,width:100,height:100},c=1,l,u=null){let d=r({...s}),f=r({...d.value}),p=r(1),m=r(!1),h=r(!1),g=r(0),_=r(null),v=r(1),y=r({x:0,y:0}),b=e(()=>f.value.x!==d.value.x||f.value.y!==d.value.y||f.value.width!==d.value.width||f.value.height!==d.value.height),x=null;function S(e){if(e.length<2)return 0;let t=e[0].clientX-e[1].clientX,n=e[0].clientY-e[1].clientY;return Math.hypot(t,n)}function C(e){let t=o.value;if(!t)return{x:0,y:0};let n=t.createSVGPoint();n.x=e.clientX,n.y=e.clientY;let r=t.getScreenCTM()?.inverse();return r?n.matrixTransform(r):{x:0,y:0}}function w(e,t){let n=o.value;if(!n)return{dx:0,dy:0};let r=Math.max(1,n.clientWidth),i=Math.max(1,n.clientHeight),a=f.value.width/r,s=f.value.height/i;return{dx:e*a,dy:t*s}}function T(e){m.value=!0;let t=e.touches?.[0]||e;y.value={x:t.clientX,y:t.clientY},o.value&&(o.value.style.cursor=`grabbing`)}function E(e){if(!m.value)return;let t=e.touches?.[0]||e,n=t.clientX-y.value.x,r=t.clientY-y.value.y;if(n===0&&r===0)return;let{dx:i,dy:a}=w(n,r);f.value.x-=i,f.value.y-=a,y.value={x:t.clientX,y:t.clientY}}function D(){m.value=!1,o.value&&(o.value.style.cursor=``)}function O(e){u&&u(),e.preventDefault(),j(e.deltaY>0?.9:1.1,C(e))}function k(e){e.preventDefault();let t=C(e);A(1.5*(1+c/100),t)}function A(e,t){x&&cancelAnimationFrame(x);let n=p.value,r=n*e,i=null,a=e=>e<.5?2*e*e:-1+(4-2*e)*e,o=e=>{i??=e;let s=Math.min((e-i)/200,1);j((n+(r-n)*a(s))/p.value,t),x=s<1?requestAnimationFrame(o):null};requestAnimationFrame(o)}function j(e,t){let n=p.value*e,r=n/p.value,i=f.value.width/r,a=f.value.height/r,o=(t.x-f.value.x)*(1-1/r),s=(t.y-f.value.y)*(1-1/r);f.value.x+=o,f.value.y+=s,f.value.width=i,f.value.height=a,p.value=n}function M(e){e.touches.length===2?(h.value=!0,g.value=S(e.touches),_.value={...f.value},v.value=p.value):(e.preventDefault(),T(e))}function N(e){if(h.value&&e.touches.length===2){e.preventDefault();let t=S(e.touches);if(!g.value||!t)return;let n=t/g.value,r=v.value*n/p.value,i=C({clientX:(e.touches[0].clientX+e.touches[1].clientX)/2,clientY:(e.touches[0].clientY+e.touches[1].clientY)/2});f.value={..._.value},p.value=v.value,j(r,i)}else e.preventDefault(),E(e)}function P(e){e.touches.length<2&&(h.value=!1),D()}function F(e=!1){if(!e){f.value={...d.value},p.value=1;return}let t={...f.value},n=p.value,r=null,i=e=>{r??=e;let a=Math.min((e-r)/300,1);f.value={x:t.x+(d.value.x-t.x)*a,y:t.y+(d.value.y-t.y)*a,width:t.width+(d.value.width-t.width)*a,height:t.height+(d.value.height-t.height)*a},p.value=n+(1-n)*a,a<1&&requestAnimationFrame(i)};requestAnimationFrame(i)}function I(e,t={}){let{overwriteCurrentIfNotZoomed:n=!0}=t,r=f.value.x!==d.value.x||f.value.y!==d.value.y||f.value.width!==d.value.width||f.value.height!==d.value.height;d.value={...e},!r&&n&&(f.value={...d.value},p.value=1)}function L(){let e=o.value;e&&(e.addEventListener(`mousedown`,T),e.addEventListener(`mousemove`,E),e.addEventListener(`mouseup`,D),e.addEventListener(`mouseleave`,D),e.addEventListener(`wheel`,O,{passive:!1}),e.addEventListener(`dblclick`,k),e.addEventListener(`touchstart`,M,{passive:!1}),e.addEventListener(`touchmove`,N,{passive:!1}),e.addEventListener(`touchend`,P),e.addEventListener(`touchcancel`,P))}function R(){let e=o.value;e&&(e.removeEventListener(`mousedown`,T),e.removeEventListener(`mousemove`,E),e.removeEventListener(`mouseup`,D),e.removeEventListener(`mouseleave`,D),e.removeEventListener(`wheel`,O),e.removeEventListener(`dblclick`,k),e.removeEventListener(`touchstart`,M),e.removeEventListener(`touchmove`,N),e.removeEventListener(`touchend`,P),e.removeEventListener(`touchcancel`,P))}t(()=>{(!l||l.value)&&L()}),n(R),a(()=>{if(l)return l.value?L():R(),()=>R()}),i(o,()=>{R(),(!l||l.value)&&L()});function z(e,t=!1){let n={x:f.value.x+f.value.width/2,y:f.value.y+f.value.height/2};t?A(e,n):j(e,n)}return{viewBox:f,resetZoom:F,isZoom:b,setInitialViewBox:I,scale:p,zoomByFactor:z}}export{o as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./BaseIcon-fYK0iID8.js";import{computed as n,createBlock as r,createCommentVNode as i,createElementBlock as a,createElementVNode as o,createSlots as s,createTextVNode as c,defineAsyncComponent as l,guardReactiveProps as u,mergeProps as d,normalizeProps as f,normalizeStyle as p,onMounted as m,openBlock as h,ref as g,renderList as _,renderSlot as v,resolveDynamicComponent as y,toDisplayString as b,useAttrs as x,watch as S,withCtx as C}from"vue";var w=/* @__PURE__ */ e({default:()=>E}),T={style:{width:`36px`}},E=/*@__PURE__*/ Object.assign({inheritAttrs:!1},{__name:`vue-data-ui`,props:{component:{type:String},dataset:{type:[Object,Array,Number,String]},config:{type:Object}},setup(e,{expose:w}){let E=e,D=x(),O={VueUiGraph:l(()=>import(`./vue-ui-graph-NTeJASbv.js`).then(e=>e.n)),VueUi3dBar:l(()=>import(`./vue-ui-3d-bar-BeM22sZn.js`).then(e=>e.n)),VueUiAgePyramid:l(()=>import(`./vue-ui-age-pyramid-BpkEVmpT.js`).then(e=>e.n)),VueUiAnnotator:l(()=>import(`./vue-ui-annotator-DuAQovkf.js`).then(e=>e.n)),VueUiCandlestick:l(()=>import(`./vue-ui-candlestick-Cfd63wqQ.js`).then(e=>e.n)),VueUiChestnut:l(()=>import(`./vue-ui-chestnut-24bmc5Rq.js`).then(e=>e.n)),VueUiDashboard:l(()=>import(`./vue-ui-dashboard-BBaAZBSj.js`).then(e=>e.n)),VueUiDigits:l(()=>import(`./vue-ui-digits-DdrPl8eP.js`).then(e=>e.n)),VueUiDonut:l(()=>import(`./vue-ui-donut-H65cwWN-.js`).then(e=>e.n)),VueUiDonutEvolution:l(()=>import(`./vue-ui-donut-evolution-DeHbG9Rx.js`).then(e=>e.n)),VueUiGalaxy:l(()=>import(`./vue-ui-galaxy-BTgZs4Le.js`).then(e=>e.n)),VueUiGauge:l(()=>import(`./vue-ui-gauge-CXZklQPg.js`).then(e=>e.n)),VueUiHeatmap:l(()=>import(`./vue-ui-heatmap-aiEMlbZm.js`).then(e=>e.n)),VueUiKpi:l(()=>import(`./vue-ui-kpi-D4q8R7Uq.js`).then(e=>e.n)),VueUiMiniLoader:l(()=>import(`./vue-ui-mini-loader-C6vhrfx3.js`).then(e=>e.n)),VueUiMolecule:l(()=>import(`./vue-ui-molecule-4t84pqvx.js`).then(e=>e.n)),VueUiMoodRadar:l(()=>import(`./vue-ui-mood-radar-BGuw0U8y.js`).then(e=>e.n)),VueUiNestedDonuts:l(()=>import(`./vue-ui-nested-donuts-BTTJ6KAx.js`).then(e=>e.n)),VueUiOnion:l(()=>import(`./vue-ui-onion-BUbI3uaY.js`).then(e=>e.n)),VueUiQuadrant:l(()=>import(`./vue-ui-quadrant-CVKEUWqI.js`).then(e=>e.n)),VueUiRadar:l(()=>import(`./vue-ui-radar-Bb0u6tqk.js`).then(e=>e.n)),VueUiRating:l(()=>import(`./vue-ui-rating-7RAJA7I4.js`).then(e=>e.n)),VueUiRelationCircle:l(()=>import(`./vue-ui-relation-circle-Csx30ROI.js`).then(e=>e.n)),VueUiRings:l(()=>import(`./vue-ui-rings-DgILqhz8.js`).then(e=>e.n)),VueUiScatter:l(()=>import(`./vue-ui-scatter-CX_rE0cU.js`).then(e=>e.n)),VueUiSkeleton:l(()=>import(`./vue-ui-skeleton-C0oElPXz.js`).then(e=>e.n)),VueUiSmiley:l(()=>import(`./vue-ui-smiley-BdhxsPGW.js`).then(e=>e.n)),VueUiSparkbar:l(()=>import(`./vue-ui-sparkbar-BTclK0-F.js`).then(e=>e.n)),VueUiSparkgauge:l(()=>import(`./vue-ui-sparkgauge-zNl9Xmt3.js`).then(e=>e.n)),VueUiSparkHistogram:l(()=>import(`./vue-ui-sparkhistogram-ynyE3DOc.js`).then(e=>e.n)),VueUiSparkline:l(()=>import(`./vue-ui-sparkline-CtsijvdW.js`).then(e=>e.n)),VueUiSparkStackbar:l(()=>import(`./vue-ui-sparkstackbar-RHlqUD-0.js`).then(e=>e.n)),VueUiTable:l(()=>import(`./vue-ui-table-BetuN-ZS.js`).then(e=>e.n)),VueUiTableSparkline:l(()=>import(`./vue-ui-table-sparkline-Fdjb-U1P.js`).then(e=>e.n)),VueUiThermometer:l(()=>import(`./vue-ui-thermometer-6kfYImU-.js`).then(e=>e.n)),VueUiTiremarks:l(()=>import(`./vue-ui-tiremarks-D_ps9th8.js`).then(e=>e.n)),VueUiTreemap:l(()=>import(`./vue-ui-treemap-BfOdhGl7.js`).then(e=>e.n)),VueUiVerticalBar:l(()=>import(`./vue-ui-horizontal-bar-DMyL8GM6.js`).then(e=>e.n)),VueUiHorizontalBar:l(()=>import(`./vue-ui-horizontal-bar-DMyL8GM6.js`).then(e=>e.n)),VueUiWaffle:l(()=>import(`./vue-ui-waffle-BL0zzw6B.js`).then(e=>e.n)),VueUiWheel:l(()=>import(`./vue-ui-wheel-v1o2eN3I.js`).then(e=>e.n)),VueUiXy:l(()=>import(`./vue-ui-xy-D948j7de.js`).then(e=>e.n)),VueUiTableHeatmap:l(()=>import(`./vue-ui-table-heatmap-IYPQ7LMg.js`).then(e=>e.n)),VueUiAccordion:l(()=>import(`./vue-ui-accordion-D4FHxzsL.js`).then(e=>e.n)),VueUiQuickChart:l(()=>import(`./vue-ui-quick-chart-BgH0Arb4.js`).then(e=>e.n)),VueUiCursor:l(()=>import(`./vue-ui-cursor-9khzj4l-.js`).then(e=>e.n)),VueUiSparkTrend:l(()=>import(`./vue-ui-spark-trend-CRQ5JfVc.js`).then(e=>e.n)),VueUiStripPlot:l(()=>import(`./vue-ui-strip-plot-DL7Ulgpz.js`).then(e=>e.n)),VueUiDumbbell:l(()=>import(`./vue-ui-dumbbell-ClCVHsrR.js`).then(e=>e.n)),VueUiWordCloud:l(()=>import(`./vue-ui-word-cloud-HUnuPCyQ.js`).then(e=>e.n)),VueUiXyCanvas:l(()=>import(`./vue-ui-xy-canvas-CjrbWdJJ.js`).then(e=>e.n)),VueUiFlow:l(()=>import(`./vue-ui-flow-DyrpRWOP.js`).then(e=>e.n)),VueUiParallelCoordinatePlot:l(()=>import(`./vue-ui-parallel-coordinate-plot-Bn3Y28ZQ.js`).then(e=>e.n)),VueUiTimer:l(()=>import(`./vue-ui-timer-BKqG5HxS.js`).then(e=>e.n)),VueUiCarouselTable:l(()=>import(`./vue-ui-carousel-table-CDgmtbuI.js`).then(e=>e.n)),VueUiGizmo:l(()=>import(`./vue-ui-gizmo-kebiFGRl.js`).then(e=>e.n)),VueUiStackbar:l(()=>import(`./vue-ui-stackbar-Zhl3to0r.js`).then(e=>e.n)),VueUiStackline:l(()=>import(`./vue-ui-stackline-8JRhuHTg.js`).then(e=>e.n)),VueUiBullet:l(()=>import(`./vue-ui-bullet-Cx9Noxp_.js`).then(e=>e.n)),VueUiFunnel:l(()=>import(`./vue-ui-funnel-bjH_hFeX.js`).then(e=>e.n)),VueUiHistoryPlot:l(()=>import(`./vue-ui-history-plot-4xG3oQtO.js`).then(e=>e.n)),VueUiCirclePack:l(()=>import(`./vue-ui-circle-pack-C1CbpBNe.js`).then(e=>e.n)),VueUiWorld:l(()=>import(`./vue-ui-world-BagJihbJ.js`).then(e=>e.n)),VueUiRidgeline:l(()=>import(`./vue-ui-ridgeline-Ce1ZrE0B.js`).then(e=>e.n)),VueUiChord:l(()=>import(`./vue-ui-chord-fQZQ9hjU.js`).then(e=>e.n)),VueUiDag:l(()=>import(`./vue-ui-dag-B6QkUUCe.js`).then(e=>e.n)),VueUiGeo:l(()=>import(`./vue-ui-geo-0_HimFX5.js`).then(e=>e.n)),VueUiBump:l(()=>import(`./vue-ui-bump-DIjSKk8F.js`).then(e=>e.n)),VueUiHill:l(()=>import(`./vue-ui-hill-ZpLv0IMP.js`).then(e=>e.n)),VueUiLabel:l(()=>import(`./vue-ui-label-0lSeoxvv.js`).then(e=>e.n))},k=/* @__PURE__ */ new Set([`VueUiMiniLoader`,`VueUiSkeleton`,`VueUiAccordion`,`VueUiCursor`,`VueUiTimer`]),A=/* @__PURE__ */ `fitToView.focusNode.resetLayout.autoSize.cancel.close.copyAlt.focusLocation.generateCsv.generateImage.generatePdf.generateSvg.getItemsPositions.hideSeries.lap.pause.pauseAnimation.recalculateHeight.reset.resetZoom.restart.restoreOrder.resumeAnimation.save.selectGroup.selectNode.selectRibbon.setZoomState.shoot.showSeries.start.switchOrientation.toggleAnimation.toggleAnnotator.toggleLabels.toggleLock.toggleReadonly.toggleSort.toggleStack.toggleTable.toggleFullscreen.toggleTooltip.toggleZoom.zoomIn.zoomOut`.split(`.`),j=g(null),M=n(()=>!O[E.component]),N=n(()=>O[E.component]||null);function P(){let e={...D,config:E.config};return k.has(E.component)||(e.dataset=E.dataset),e}let F=[];function I(e,t){return new Promise((n,r)=>{F.push({method:e,args:t,resolve:n,reject:r})})}function L(e){return/* @__PURE__ */ Error(`Method "${e}" not found on ${E.component}`)}function R(e,t){let n=j.value;if(!n)return null;let r=n[e];return typeof r==`function`?r.apply(n,t):null}function z(e,t){let n=j.value;if(!n)return I(e,t);let r=n[e];return typeof r==`function`?r.apply(n,t):Promise.reject(L(e))}S(j,e=>{if(e)for(;F.length;){let{method:t,args:n,resolve:r,reject:i}=F.shift(),a=e[t];typeof a==`function`?Promise.resolve().then(()=>a.apply(e,n)).then(r).catch(i):i(L(t))}}),w({getData(...e){return z(`getData`,e)},getImage(e={}){let{scale:t=2}=e;return z(`getImage`,[{scale:t}])},...Object.fromEntries(A.map(e=>[e,(...t)=>R(e,t)]))}),m(()=>{M.value&&console.error(`\n\nVue Data UI exception:\nThe provided component "${E.component}" does not exist. Check the spelling.\n\nAvailable components:\n\n${Object.keys(O).map(e=>`. ${e}\n`).join(``)}`)});let B=n(()=>{let e=`The provided component ${E.component} does not exist.`;return[`VueUiIcon`,`VueUiPattern`,`Arrow`].includes(E.component)?(e=`${E.component} is not supported by the VueDataUi universal component. You must import it individually.`,console.warn(e),{status:`notSupported`,message:e}):(console.warn(e),{status:`unknown`,message:e})});return(e,n)=>M.value?(h(),a(`div`,{key:0,style:p({width:`100%`,display:`flex`,gap:`6px`,alignItems:`center`,color:B.value.status===`notSupported`?`#FF9000`:`#FF0000`})},[o(`div`,T,[B.value.status===`unknown`?(h(),r(t,{key:0,name:`moodFlat`,stroke:`#FF0000`})):i(``,!0),B.value.status===`notSupported`?(h(),r(t,{key:1,name:`circleExclamation`,stroke:`#FF9000`})):i(``,!0)]),c(` `+b(B.value.message),1)],4)):(h(),r(y(N.value),d({key:1,ref_key:`currentComponentRef`,ref:j},P()),s({_:2},[_(e.$slots,(t,n)=>({name:n,fn:C(t=>[v(e.$slots,n,f(u(t)))])}))]),1040))}});export{w as n,E as t};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-D3ZfFSE5.js";import{$ as n,D as r,Ft as i,Ht as a,It as o,Jt as s,Q as c,S as l,X as u,at as d,b as f,f as p,h as m,i as h,in as ee,nt as te,p as g,t as ne,w as re,yt as ie,zt as ae}from"./lib-rPeBMZrn.js";import{n as oe,t as se}from"./BaseScanner-8NdoBs7B.js";import{n as ce}from"./useHints-C-TwxM0Y.js";import{t as le}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as ue}from"./resolveChartConfig-CIhClE5R.js";import{t as de}from"./img-D4RQwASc.js";import{n as fe}from"./Title-BliHuXfT.js";import{t as pe}from"./useChartExport-BZts4KFb.js";import{n as me,t as he}from"./tableIntegration-CNoJ1CIY.js";import{n as ge,t as _e}from"./annotationSlots-RvQBEO9-.js";import{n as ve,t as ye}from"./userOptionsSlots-DYuo-E5m.js";import{t as be}from"./usePrinter-DVf3YcG5.js";import{c as xe}from"./canvas-lib-22VpOI4_.js";import{t as Se}from"./useResponsive-CENUxfEL.js";import{t as _}from"./DefGrad-DKMq1REY.js";import{t as Ce}from"./A11yDataTable-DWNlWXzs.js";import{t as we}from"./useUserOptionState-CXlFnwPv.js";import{t as Te}from"./useChartAccessibility-DOMuYJfm.js";import{t as Ee}from"./vue_ui_3d_bar-DmAve5Ri.js";import{Fragment as v,computed as y,createBlock as b,createCommentVNode as x,createElementBlock as S,createElementVNode as C,createSlots as De,createTextVNode as Oe,createVNode as w,defineAsyncComponent as T,guardReactiveProps as ke,mergeProps as Ae,nextTick as je,normalizeClass as Me,normalizeProps as Ne,normalizeStyle as E,onMounted as Pe,openBlock as D,ref as O,renderList as k,renderSlot as A,resolveDynamicComponent as Fe,toDisplayString as j,toRefs as Ie,unref as M,watch as Le,withCtx as N,withKeys as Re,withModifiers as ze}from"vue";var Be=/* @__PURE__ */ e({default:()=>sn}),Ve=[`id`],He=[`id`],Ue={"aria-live":`polite`,class:`sr-only`},We={style:{position:`relative`}},Ge=[`xmlns`,`viewBox`,`aria-describedby`],Ke=[`width`,`height`],qe={key:1},Je=[`x`,`y`,`font-size`,`font-weight`,`fill`],Ye=[`x`,`y`],Xe=[`cx`,`cy`,`stroke`,`opacity`],Ze=[`d`,`stroke`],Qe=[`d`,`stroke`],$e={key:4},et={key:0},tt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],nt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],rt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],it=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],at={key:1},ot=[`d`,`stroke`,`stroke-width`,`fill`],st=[`d`,`stroke`,`stroke-width`,`fill`],ct=[`d`,`stroke`,`stroke-width`,`fill`],lt={key:2},ut=[`aria-label`],dt=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],ft=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],pt=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],mt=[`d`,`onMouseenter`,`onClick`,`onMouseout`],ht=[`d`],gt=[`d`,`stroke`],_t=[`onClick`],vt=[`stroke`,`d`],yt=[`cx`,`cy`,`fill`,`stroke`],bt=[`x`,`y`,`width`,`height`],xt=[`x`,`y`,`width`,`height`],St={key:3},Ct=[`d`,`stroke`],wt=[`d`,`fill`,`stroke`],Tt={key:0},Et=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],Dt=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],Ot={key:4},kt=[`d`,`fill`,`stroke`],At={key:5},jt={key:0},Mt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Nt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Pt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Ft=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],It=[`d`,`stroke`,`stroke-width`,`fill`],Lt=[`d`,`stroke`,`stroke-width`,`fill`],Rt=[`d`],zt={key:1},Bt=[`aria-label`],Vt=[`onMouseenter`,`onClick`,`onMouseout`,`d`,`fill`],Ht=[`onMouseenter`,`onClick`,`onMouseout`,`d`],Ut=[`onMouseenter`,`onClick`,`onMouseout`,`d`,`fill`],Wt=[`onClick`],Gt=[`stroke`,`d`],Kt=[`cx`,`cy`,`fill`,`stroke`],qt=[`x`,`y`,`width`,`height`],Jt=[`x`,`y`,`width`,`height`],Yt={key:3},Xt=[`d`,`stroke`],Zt=[`d`,`fill`,`stroke`],Qt={key:0},$t=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],en=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],tn={key:4},nn=[`d`,`fill`,`stroke`],rn={key:4,class:`vue-data-ui-watermark`},an={key:0},on={key:1},sn=/*#__PURE__*/ le({__name:`vue-ui-3d-bar`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:[`selectDatapoint`,`copyAlt`],setup(e,{expose:le,emit:Be}){let sn=T(()=>import(`./BaseIcon-fYK0iID8.js`).then(e=>e.n)),cn=T(()=>import(`./vue-ui-accordion-D4FHxzsL.js`).then(e=>e.n)),ln=T(()=>import(`./DataTable-5Ug6gMAX.js`)),un=T(()=>import(`./PenAndPaper-r50tK3S4.js`).then(e=>e.t)),dn=T(()=>import(`./UserOptions-Em_JgDXM.js`).then(e=>e.n)),fn=T(()=>import(`./PackageVersion-u-p5bCcj.js`).then(e=>e.t)),pn=T(()=>import(`./BaseDraggableDialog-9d30Yx8c.js`).then(e=>e.n)),{vue_ui_3d_bar:mn}=t(),P=e,hn=Be,gn=y(()=>!!P.dataset&&Object.keys(P.dataset).length),F=O(u()),I=O(null),L=O(!1),_n=O(0),vn=O(0),yn=O(null),bn=O(null),xn=O(null),Sn=O(null),R=O(!1),Cn=O(null),wn=O(null),z=O(null),B=O(``),V=O(Nn()),Tn=y(()=>V.value.style),H=y(()=>V.value.style.chart),U=y(()=>V.value.userOptions);ce({config:()=>V.value,dataset:()=>P.dataset,component:`VueUi3dBar`,rules:[{test:e=>e?.series&&e.series.length>8,message:[`👀 The number of series is > 8. Consider:`,``,`▶️ Grouping small values dynamically into a single "Other" series.`,``,`▶️ Using filters to let users choose a maximum number of series to display.`,``,`▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read.`]},{test:e=>e?.series&&e.series.some(e=>e?.breakdown&&e.breakdown.length>6),message:[`👀 Some donut breakdowns have > 6 data points. Consider:`,``,`▶️ Grouping small values dynamically into a single "Other" data point.`]}]});let En=y(()=>V.value.userOptions.useCursorPointer),Dn=y(()=>ee({defaultConfig:{customPalette:[`#808080`,`#ADADAD`,`#DBDBDB`],userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,color:`#6A6A6A`,bar:{color:`#ADADAD`,stroke:`#6A6A6A`},box:{stroke:`#6A6A6A`}}}},userConfig:V.value.skeletonConfig??{}})),{loading:On,FINAL_DATASET:W}=oe({...Ie(P),FINAL_CONFIG:V,prepareConfig:Nn,callback:()=>{Promise.resolve().then(async()=>{await je(),Hn()})},skeletonDataset:P.config?.skeletonDataset??{series:[{name:`_`,value:21,breakdown:[{name:`_`,value:13},{name:`_`,value:8}]},{name:`_`,value:13,breakdown:[{name:`_`,value:8},{name:`_`,value:5}]},{name:`_`,value:8,breakdown:[{name:`_`,value:5},{name:`_`,value:3}]}]},skeletonConfig:ee({defaultConfig:V.value,userConfig:Dn.value})}),{userOptionsVisible:kn,setUserOptionsVisibility:An,keepUserOptionState:jn}=we({config:V.value}),{svgRef:Mn}=Te({config:V.value.style.chart.title});function Nn(){return ue(P.config,mn,Ee)}Le(()=>P.config,e=>{On.value||(V.value=Nn()),kn.value=!V.value.userOptions.showOnChartHover,Gn(),_n.value+=1,vn.value+=1,G.value.showTable=V.value.table.show},{deep:!0});let{isPrinting:Pn,isImaging:Fn,generatePdf:In,generateImage:Ln}=be({elementId:`3d_bar_${F.value}`,fileName:H.value.title.text||`vue-ui-3d-bar`,options:V.value.userOptions.print}),Rn=y(()=>re(V.value.customPalette)),G=O({showTable:V.value.table.show});Le(V,()=>{G.value={showTable:V.value.table.show}},{immediate:!0});let K=y(()=>W.value.series&&W.value.series.length),zn=O(H.value.box.dimensions.width*(K.value?2:1)),Bn=O(H.value.box.dimensions.height),q=y(()=>({height:Bn.value,width:zn.value,absoluteWidth:zn.value,top:H.value.box.dimensions.top,bottom:H.value.box.dimensions.bottom,left:H.value.box.dimensions.left,right:H.value.box.dimensions.right,perspective:H.value.box.dimensions.perspective})),J=y(()=>{if(K.value){let e=W.value.series.map(e=>e.value||0).reduce((e,t)=>e+t,0),t=W.value.series.map((t,n)=>({...t,seriesIndex:n,id:u(),proportion:(t.value||0)/e,color:l(t.color)||Rn.value[n]||a[n]||a[n%a.length],breakdown:t.breakdown?t.breakdown.sort((e,t)=>t.value-e.value):null})).sort((e,t)=>t.value-e.value),n=[],r=0;for(let e=0;e<t.length;e+=1)n.push({...t[e],fill:qn(r,t[e].proportion,t[e].breakdown,t[e].color)}),r+=t[e].proportion;return n}return null}),Y=y(()=>{let e=q.value.width/2,t=q.value;return{right:`M${e},${t.top} ${t.width-t.right}, ${t.top+t.perspective} ${t.width-t.right},${t.height-t.bottom-t.perspective} ${e},${t.height-t.bottom}`,left:`M${e},${t.top} ${t.left},${t.top+t.perspective} ${t.left},${t.height-t.bottom-t.perspective} ${e},${t.height-t.bottom}`,side:`M${e},${t.height-t.bottom} ${e},${t.top+t.perspective*2}`,topSides:`M${t.left},${t.top+t.perspective} ${e},${t.top+t.perspective*2} ${t.width-t.right},${t.top+t.perspective}`,tubeTop:`M${t.left},${t.top+t.perspective} C ${t.left},${t.top-t.perspective/3} ${t.width-t.right},${t.top-t.perspective/3} ${t.width-t.right},${t.top+t.perspective} C ${t.width-t.right},${t.top+t.perspective*2.3} ${t.left},${t.top+t.perspective*2.3} ${t.left},${t.top+t.perspective}`,tubeLeft:`M${t.left},${t.top+t.perspective} ${t.left},${t.height-t.bottom-t.perspective}`,tubeRight:`M${t.width-t.right},${t.top+t.perspective} ${t.width-t.right},${t.height-t.bottom-t.perspective}`,tubeBottom:`M${t.width-t.right},${t.height-t.bottom-t.perspective} C ${t.width-t.right},${t.height} ${t.left},${t.height} ${t.left},${t.height-t.bottom-t.perspective}`}}),Vn=O(H.value.animation.use?0:W.value.percentage);function Hn(){let e=0,t=H.value.animation.speed,n=.005*H.value.animation.acceleration;function r(){Vn.value+=t+e,e+=n,Vn.value<W.value.percentage?requestAnimationFrame(r):Vn.value=W.value.percentage}H.value.animation.use&&(Vn.value=0,r())}Pe(()=>{Gn(),Hn()});let Un=y(()=>V.value.debug);function Wn(){Un.value&&(ae(P.dataset)?d({componentName:`VueUi3dBar`,type:`dataset`,debug:Un.value}):P.dataset.series?P.dataset.series.forEach((e,t)=>{ie({datasetObject:e,requiredAttributes:[`name`,`value`]}).forEach(e=>{d({componentName:`VueUi3dBar`,type:`datasetSerieAttribute`,property:e,index:t,debug:Un.value})}),e.breakdown&&e.breakdown.forEach((e,n)=>{ie({datasetObject:e,requiredAttributes:[`name`,`value`]}).forEach(e=>{d({componentName:`VueUi3dBar`,type:`datasetSerieAttribute`,property:e,index:`${t} - ${n}`,debug:Un.value})})})}):ie({datasetObject:P.dataset,requiredAttributes:[`percentage`]}).forEach(e=>{d({componentName:`VueUi3dBar`,type:`datasetAttribute`,property:e,debug:Un.value})}))}function Gn(){if(Wn(),V.value.responsive){let e=xe(()=>{let{width:e,height:t}=Se({chart:I.value,title:H.value.title.text?yn.value:null,source:Sn.value});requestAnimationFrame(()=>{Bn.value=t-12,zn.value=e})});bn.value&&(xn.value&&bn.value.unobserve(xn.value),bn.value.disconnect()),bn.value=new ResizeObserver(e),xn.value=I.value.parentNode,bn.value.observe(xn.value)}}let Kn=y(()=>q.value.width/4);function qn(e,t,n,r){let a=q.value.height-q.value.bottom-q.value.top-q.value.perspective*2,{width:s,height:c,bottom:l,right:u,left:d,perspective:f}=q.value,p=K.value?s/4:s/2,m=p*2+d,h=l+a*e,ee=c-h-f-a*t/2,te=ee>q.value.height/2?`top`:`bottom`,g=c*.25,ne=!!n,re=null,ie=null;return ne&&(n=n.map((e,t)=>({...e,value:e.value||0,color:i(r,t/n.length)})),re=o({series:n},s/2+s/5,te===`top`?ee-g:ee+g,s/10,s/10,1.99999,2,1,360,105.25,s/20),ie=o({series:n},s-m+s/14,c-h-f-a*t/2,s/40,s/40,1.99999,2,1,360,105.25,s/40)),{donut:re,miniDonut:ie,donutR:s/20,CENTER_X:p,sidePointer:{x:s-m,x2:s-m+s/14,xText:s-m+s/9,y:c-h-f-a*t/2,topY:c-h-f-a*t,height:a*t},apexBottom:{y:c-h,x:p},apexTop:{y:c-h-a*t,x:p},right:`M${p},${c-h} ${p},${c-h-a*t} ${s-m},${c-h-f-a*t} ${s-m},${c-h-f}Z`,left:`M${p},${c-h} ${p},${c-h-a*t} ${d}, ${c-h-f-a*t} ${d},${c-h-f}Z`,liningTop:`M${d},${c-h-f-a*t} ${p},${c-h-a*t} ${s-m},${c-h-f-a*t}`,liningTopShade:`M${d},${c-h-f-a*t-.5} ${p},${c-h-a*t-.5} ${s-m},${c-h-f-a*t-.5}`,top:`M${p},${c-h-a*t} ${d},${c-h-f-a*t} ${p},${c-h-f*2-a*t} ${s-m},${c-h-f-a*t} Z`,tubeTop:`M${d},${c-h-a*t-f} C ${d},${c-h-a*t-f*2.5} ${s-m},${c-h-a*t-f*2.5} ${s-m},${c-h-a*t-f} C ${s-m},${c-h-a*t+f/2} ${d},${c-h-a*t+f/2} ${d},${c-h-a*t-f}`,bottomTubeTop:`M ${s-m-.5},${c-h-f} C ${s-m-.5},${c-h+f/2} ${d},${c-h+f/2} ${d+.5},${c-h-f}`,tubeBody:`M
|
|
2
|
-
${d},${c-h-a*t-f}
|
|
3
|
-
C ${d},${c-h-a*t+f/2}
|
|
4
|
-
${s-m},${c-h-a*t+f/2}
|
|
5
|
-
${s-m},${c-h-a*t-f}
|
|
6
|
-
L${s-m},${c-h-f}
|
|
7
|
-
C
|
|
8
|
-
${s-m},${c-h+f/2}
|
|
9
|
-
${d},${c-h+f/2}
|
|
10
|
-
${d},${c-h-f}Z`}}let Jn=y(()=>{let e=f(Vn.value/100),t=q.value.height-q.value.bottom-q.value.top-q.value.perspective*2,{width:n,height:r,bottom:i,right:a,left:o,perspective:s}=q.value,c=K.value?n/4:n/2,l=K.value?c*2+o:a,u=i+t*0;return{right:`M${c},${r-u} ${c},${r-u-t*e} ${n-l},${r-u-s-t*e} ${n-l},${r-u-s}Z`,left:`M${c},${r-u} ${c},${r-u-t*e} ${o}, ${r-u-s-t*e} ${o},${r-u-s}Z`,top:`M${c},${r-u-t*e} ${o},${r-u-s-t*e} ${c},${r-u-s*2-t*e} ${n-l},${r-u-s-t*e} Z`,tubeTop:`M${o},${r-u-t*e-s} C ${o},${r-u-t*e-s*2.5} ${n-l},${r-u-t*e-s*2.5} ${n-l},${r-u-t*e-s} C ${n-l},${r-u-t*e+s/2} ${o},${r-u-t*e+s/2} ${o},${r-u-t*e-s}`,tubeBody:`M
|
|
11
|
-
${o},${r-u-t*e-s}
|
|
12
|
-
C ${o},${r-u-t*e+s/2}
|
|
13
|
-
${n-l},${r-u-t*e+s/2}
|
|
14
|
-
${n-l},${r-u-t*e-s}
|
|
15
|
-
L${n-l},${r-s*1.5}
|
|
16
|
-
C
|
|
17
|
-
${n-l},${r}
|
|
18
|
-
${o},${r}
|
|
19
|
-
${o},${r-u-s}Z`}}),X=O(null);function Z(e,t=!1){V.value.events.datapointEnter&&!t&&V.value.events.datapointEnter({datapoint:e,seriesIndex:e.seriesIndex}),V.value.events.datapointClick&&t&&V.value.events.datapointClick({datapoint:e,seriesIndex:e.seriesIndex}),hn(`selectDatapoint`,e);let n=J.value?.findIndex(t=>t.id===e.id)??null;n!==null&&n!==-1&&(z.value=n,B.value=gr(e)),t||(X.value=e.id),t&&L.value&&(L.value=!1),t&&!L.value&&(L.value=!0)}function Q(e){V.value.events.datapointLeave&&V.value.events.datapointLeave({datapoint:e,seriesIndex:e.seriesIndex}),!L.value&&(X.value=null,z.value=null,B.value=``)}function Yn(e,t,n=!1){let r=W.value.series.map(e=>e.value||0).reduce((e,t)=>e+t,0),i=isNaN(e.value/r)?0:e.value/r*100,a=isNaN(e.value/Xn(t))?0:e.value/Xn(t)*100;return n?a:i.toFixed(0)+`%`}function Xn(e){return[...e].map(e=>e.value).reduce((e,t)=>e+t,0)}let Zn=O(!1);function Qn(e){Zn.value=e}function $n(){return K.value?J.value:W.value.percentage}let er=y(()=>K.value?{head:J.value.flatMap(e=>e.breakdown&&e.breakdown.length?[{name:e.name,color:e.color},...e.breakdown.map((t,n)=>({name:t.name,color:i(e.color,n/e.breakdown.length)}))]:{name:e.name,color:e.color}),body:J.value.flatMap(e=>e.breakdown&&e.breakdown.length?[e.value,...e.breakdown.map(e=>e.value)]:e.value)}:null);function tr(e=null){K.value?je(()=>{let t=J.value.map(e=>e.value).reduce((e,t)=>e+t,0),n=er.value.head.map((e,n)=>[[e.name],[er.value.body[n]],[isNaN(er.value.body[n]/t)?`-`:er.value.body[n]/t*100]]),i=[[H.value.title.text],[H.value.title.subtitle.text],[[``],[`val`],[`%`]]].concat(n),a=r(i);e?e(a):te({csvContent:a,title:H.value.title.text||`vue-ui-3d-bar`})}):console.warn(`VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)`)}let $=y(()=>{if(!K.value||!Array.isArray(J.value)||!J.value.length)return{colNames:[],head:[],body:[],a11yBody:[],config:{th:{backgroundColor:V.value.table.th.backgroundColor,color:V.value.table.th.color,outline:V.value.table.th.outline},td:{backgroundColor:V.value.table.td.backgroundColor,color:V.value.table.td.color,outline:V.value.table.td.outline},breakpoint:V.value.table.responsiveBreakpoint,shape:V.value.style.shape===`tube`?`circle`:`square`}};let e=J.value.reduce((e,t)=>e+t.value,0),t=[`__SUM__`,n({p:H.value.legend.prefix,v:e,s:H.value.legend.suffix,r:V.value.table.td.roundingValue}),`100%`],r=er.value.head.map((t,r)=>{let i=er.value.body[r];return[{color:t.color,name:t.name},n({p:H.value.legend.prefix,v:i,s:H.value.legend.suffix,r:V.value.table.td.roundingValue}),isNaN(i/e)?`-`:n({v:i/e*100,s:`%`,r:V.value.table.td.roundingPercentage})]}),i=r.map(e=>e.map((e,t)=>t===0?e.name:e));return{colNames:[V.value.table.columnNames.series,V.value.table.columnNames.value,V.value.table.columnNames.percentage],head:t,body:r,a11yBody:i,config:{th:{backgroundColor:V.value.table.th.backgroundColor,color:V.value.table.th.color,outline:V.value.table.th.outline},td:{backgroundColor:V.value.table.td.backgroundColor,color:V.value.table.td.color,outline:V.value.table.td.outline},breakpoint:V.value.table.responsiveBreakpoint,shape:V.value.style.shape===`tube`?`circle`:`square`}}});function nr(){G.value.showTable=!G.value.showTable}let rr=O(!1);function ir(){rr.value=!rr.value}async function ar({scale:e=2}={}){if(!I.value)return;let{width:t,height:n}=I.value.getBoundingClientRect(),r=t/n,{imageUri:i,base64:a}=await de({domElement:I.value,base64:!0,img:!0,scale:e});return{imageUri:i,base64:a,title:H.value.title.text,width:t,height:n,aspectRatio:r}}let or=y(()=>he({config:V,style:H,mutableConfig:G,dialog:pn,accordion:cn,isFullscreen:Zn,parent:I,maxWidth:800}));Le(()=>G.value.showTable,e=>me(e,V,Cn));function sr(){G.value.showTable=!1,wn.value&&wn.value.setTableIconState(!1)}let cr=y(()=>V.value.style.chart.backgroundColor),lr=y(()=>V.value.style.chart.title),{isCallbackImaging:ur,isCallbackSvg:dr,generateSvg:fr,onGenerateImage:pr}=pe({svg:Mn,title:lr,legend:null,legendItems:null,backgroundColor:cr,getSvgCallback:()=>V.value.userOptions.callbacks.svg,generateImage:Ln});async function mr(){hn(`copyAlt`,{config:V.value,dataset:W.value}),V.value.userOptions.callbacks.altCopy?await Promise.resolve(V.value.userOptions.callbacks.altCopy({config:V.value,dataset:W.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function hr(){z.value=null,B.value=``,L.value=!1,X.value=null}function gr(e){if(!e)return``;let t=n({p:H.value.legend.prefix,v:e.value,s:H.value.legend.suffix,r:H.value.legend.roundingValue}),r=n({v:e.proportion*100,s:`%`,r:H.value.legend.roundingPercentage});return`${e.name}: ${t}, ${r}`}function _r(e){if(!K.value||!J.value?.length)return;let t=J.value[e];t&&(z.value=e,X.value=t.id,B.value=gr(t))}function vr(){R.value=!0,K.value&&J.value?.length&&z.value===null&&_r(0)}function yr(){R.value=!1,L.value||(z.value=null,X.value=null,B.value=``)}function br(e){if(!K.value||!J.value?.length||!Mn.value||document.activeElement!==Mn.value)return;let t=[`ArrowLeft`,`ArrowDown`].includes(e.key),n=[`ArrowRight`,`ArrowUp`].includes(e.key),r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){hr();return}if(r){if(z.value===null)return;let e=J.value[z.value];if(!e)return;Z(e,!0),B.value=`${gr(e)} selected`;return}let a=z.value;a===null||a<0||a>=J.value.length?a=n?0:J.value.length-1:n?(a+=1,a>=J.value.length&&(a=0)):t&&(--a,a<0&&(a=J.value.length-1)),_r(a)}let xr=y(()=>({headers:$.value?.colNames??[],rows:$.value?.a11yBody??[]}));return le({getImage:ar,generateCsv:tr,generatePdf:In,generateImage:Ln,generateSvg:fr,getData:$n,toggleTable:nr,toggleAnnotator:ir,toggleFullscreen:Qn,copyAlt:mr}),(e,t)=>(D(),S(`div`,{ref_key:`bar3dChart`,ref:I,class:Me(`vue-data-ui-component vue-ui-3d-bar`),style:E(`font-family:${Tn.value.fontFamily};width:100%; text-align:center;background:${H.value.backgroundColor}`),id:`3d_bar_${F.value}`,onMouseenter:t[8]||=()=>M(An)(!0),onMouseleave:t[9]||=()=>M(An)(!1)},[C(`div`,{id:`chart-instructions-${F.value}`,class:`sr-only`},[C(`p`,null,j(V.value.a11y.translations.keyboardNavigation),1)],8,He),C(`div`,Ue,j(B.value),1),xr.value?.rows?.length?(D(),b(Ce,{key:0,uid:F.value,head:xr.value.headers,body:xr.value.rows,notice:V.value.a11y.translations.tableAvailable,caption:V.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):x(``,!0),U.value.buttons.annotator?(D(),b(M(un),{key:1,showGroupActions:U.value.annotator?.showGroupActions??!0,svgRef:M(Mn),backgroundColor:H.value.backgroundColor,color:H.value.color,active:rr.value,isCursorPointer:En.value,palette:U.value.annotatorPalette,onClose:ir},De({_:2},[k(M(_e),t=>({name:t,fn:N(n=>[A(e.$slots,t,Ne(ke(M(ge)(t,n))),void 0,!0)])}))]),1032,[`showGroupActions`,`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):x(``,!0),H.value.title.text?(D(),S(`div`,{key:2,ref_key:`chartTitle`,ref:yn,style:`width:100%;background:transparent`},[(D(),b(fe,{key:`title_${_n.value}`,config:{title:{cy:`3dBar-div-title`,...H.value.title},subtitle:{cy:`3dBar-div-subtitle`,...H.value.title.subtitle}}},null,8,[`config`]))],512)):x(``,!0),U.value.show&&gn.value&&(M(jn)||M(kn))?(D(),b(M(dn),{key:3,ref_key:`userOptionsRef`,ref:wn,backgroundColor:H.value.backgroundColor,color:H.value.color,isPrinting:M(Pn),isImaging:M(Fn),uid:F.value,hasPdf:U.value.buttons.pdf,hasTable:!!K.value&&U.value.buttons.table,hasXls:!!K.value&&U.value.buttons.csv,hasImg:U.value.buttons.img,hasSvg:U.value.buttons.svg,hasFullscreen:U.value.buttons.fullscreen,hasAltCopy:U.value.buttons.altCopy,titles:{...U.value.buttonTitles},chartElement:I.value,position:U.value.position,hasAnnotator:U.value.buttons.annotator,isAnnotation:rr.value,callbacks:U.value.callbacks,printScale:U.value.print.scale,tableDialog:V.value.table.useDialog,isCursorPointer:En.value,onToggleFullscreen:Qn,onGeneratePdf:M(In),onGenerateCsv:tr,onGenerateImage:M(pr),onGenerateSvg:M(fr),onToggleTable:nr,onToggleAnnotator:ir,onCopyAlt:mr,style:E({visibility:M(jn)?M(kn)?`visible`:`hidden`:`visible`})},De({_:2},[k(M(ve)(e.$slots,`menuIcon optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:N(n=>[A(e.$slots,t,Ne(ke(M(ye)(t,n))),void 0,!0)])}))]),1032,[`backgroundColor`,`color`,`isPrinting`,`isImaging`,`uid`,`hasPdf`,`hasTable`,`hasXls`,`hasImg`,`hasSvg`,`hasFullscreen`,`hasAltCopy`,`titles`,`chartElement`,`position`,`hasAnnotator`,`isAnnotation`,`callbacks`,`printScale`,`tableDialog`,`isCursorPointer`,`onGeneratePdf`,`onGenerateImage`,`onGenerateSvg`,`style`])):x(``,!0),C(`div`,We,[(D(),S(`svg`,{ref_key:`svgRef`,ref:Mn,xmlns:M(ne),class:Me({"vue-data-ui-fullscreen--on":Zn.value,"vue-data-ui-fulscreen--off":!Zn.value}),viewBox:`0 0 ${q.value.absoluteWidth} ${q.value.height}`,style:E(`max-width:100%; overflow: visible; background:transparent;color:${H.value.color}`),tabindex:`0`,"aria-describedby":`chart-instructions-${F.value}`,onFocus:vr,onBlur:yr,onKeydown:br},[w(M(fn)),A(e.$slots,`svg-underlayer`,{svg:{...q.value,isPrintingImg:M(Pn)||M(Fn)||M(ur),isPrintingSvg:M(dr)}},void 0,!0),e.$slots[`chart-background`]?(D(),S(`foreignObject`,{key:0,x:0,y:0,width:q.value.absoluteWidth,height:q.value.height,style:{pointerEvents:`none`}},[A(e.$slots,`chart-background`,{},void 0,!0)],8,Ke)):x(``,!0),C(`defs`,null,[w(_,{t:`radial`,id:`gradient_top${F.value}`,stops:[[`0%`,M(s)(H.value.backgroundColor,0),1],[`100%`,H.value.bar.color,1]]},null,8,[`id`,`stops`]),w(_,{t:`radial`,id:`gradient_tube_top${F.value}`,stops:[[`0%`,M(s)(M(i)(H.value.bar.color,.5),80),1],[`100%`,M(s)(M(c)(H.value.bar.color,.1),80),1]]},null,8,[`id`,`stops`]),w(_,{t:`radial`,id:`gradient_left${F.value}`,stops:[[`0%`,M(s)(H.value.backgroundColor,0),1],[`100%`,M(s)(H.value.bar.color,20),1]]},null,8,[`id`,`stops`]),w(_,{t:`radial`,id:`gradient_right${F.value}`,stops:[[`0%`,M(s)(H.value.backgroundColor,0),1],[`100%`,M(s)(H.value.bar.color,20),1]]},null,8,[`id`,`stops`]),w(_,{t:`linear`,id:`gradient_tube_body${F.value}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,H.value.bar.color,1],[`10%`,M(s)(M(c)(H.value.bar.color,.7),100),1],[`25%`,M(s)(M(c)(H.value.bar.color,.5),100),1],[`75%`,M(s)(H.value.bar.color,80),1],[`100%`,M(s)(M(i)(H.value.bar.color,.7),100),1]]},null,8,[`id`,`stops`])]),K.value?(D(),S(`defs`,qe,[(D(!0),S(v,null,k(J.value,e=>(D(),b(_,{t:`radial`,id:`grad_top_${e.id}`,key:`grad_top_${e.id}`,stops:[[`0%`,M(s)(M(i)(e.color,.5),80),1],[`100%`,e.color,1]]},null,8,[`id`,`stops`]))),128)),(D(!0),S(v,null,k(J.value,e=>(D(),b(_,{t:`linear`,id:`grad_left_${e.id}`,key:`grad_left_${e.id}`,stops:[[`0%`,M(s)(e.color,80),1],[`100%`,M(s)(M(c)(e.color,.5),100),1]]},null,8,[`id`,`stops`]))),128)),(D(!0),S(v,null,k(J.value,e=>(D(),b(_,{t:`linear`,id:`grad_right_${e.id}`,key:`grad_right_${e.id}`,stops:[[`2%`,M(s)(M(i)(e.color,.5),100),1],[`100%`,M(s)(e.color,80),1]]},null,8,[`id`,`stops`]))),128)),w(_,{t:`linear`,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`,id:`vertical_line_${F.value}`,stops:[[`0%`,`#FFFFFF`,1],[`100%`,`#FFFFFF33`,1]]},null,8,[`id`])])):x(``,!0),H.value.dataLabel.show&&![null,void 0].includes(M(W).percentage)&&[null,void 0].includes(M(W).series)?(D(),S(`text`,{key:2,x:q.value.width/2,y:q.value.top-H.value.dataLabel.fontSize/2,"font-size":H.value.dataLabel.fontSize,"font-weight":H.value.dataLabel.bold?`bold`:`normal`,fill:H.value.dataLabel.color,"text-anchor":`middle`},j(M(n)({v:Vn.value,s:`%`,r:H.value.dataLabel.rounding})),9,Je)):x(``,!0),L.value?(D(),S(`g`,{key:3,role:`button`,tabindex:`0`,"aria-label":`Clear selection`,onClick:t[0]||=e=>{L.value=!1,X.value=null},onKeydown:[t[1]||=Re(ze(e=>{L.value=!1,X.value=null},[`prevent`]),[`enter`]),t[2]||=Re(ze(e=>{L.value=!1,X.value=null},[`prevent`]),[`space`])],onFocus:t[3]||=e=>R.value=!0,onBlur:t[4]||=e=>R.value=!1,onMouseenter:t[5]||=e=>R.value=!0,onMouseleave:t[6]||=e=>R.value=!1,class:`svg-btn`,"data-dom-to-png-ignore":``,style:E({cursor:En.value?`pointer`:`default`,outline:`none`})},[t[10]||=C(`title`,null,`Clear selection`,-1),C(`rect`,{x:Kn.value-12,y:q.value.top-24,width:24,height:24,fill:`transparent`,"pointer-events":`all`},null,8,Ye),C(`circle`,{cx:Kn.value,cy:q.value.top-12,r:`10`,fill:`none`,stroke:H.value.color,"stroke-width":`2`,"vector-effect":`non-scaling-stroke`,opacity:R.value?.5:0},null,8,Xe),C(`path`,{d:`M${Kn.value-6},${q.value.top-18} ${Kn.value+6},${q.value.top-6}`,stroke:H.value.color,"stroke-linecap":`round`,"stroke-width":`2`,"vector-effect":`non-scaling-stroke`},null,8,Ze),C(`path`,{d:`M${Kn.value+6},${q.value.top-18} ${Kn.value-6},${q.value.top-6}`,stroke:H.value.color,"stroke-linecap":`round`,"stroke-width":`2`,"vector-effect":`non-scaling-stroke`},null,8,Qe)],36)):x(``,!0),!Tn.value.shape||Tn.value.shape===`bar`?(D(),S(`g`,$e,[K.value?x(``,!0):(D(),S(`g`,et,[C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.right,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,tt),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.left,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,nt),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.side,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,rt),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.topSides,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,it)])),K.value?x(``,!0):(D(),S(`g`,at,[C(`path`,{d:Jn.value.right,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_right${F.value})`},null,8,ot),C(`path`,{d:Jn.value.left,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_left${F.value})`},null,8,st),C(`path`,{d:Jn.value.top,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_top${F.value})`},null,8,ct)])),K.value?(D(),S(`g`,lt,[(D(!0),S(v,null,k(J.value,(e,t)=>(D(),S(`g`,{style:E(`opacity:${X.value?X.value===e.id?1:.3:1}`),class:`vue-ui-3d-bar-stack`,role:`img`,"aria-label":gr(e)},[C(`path`,{d:e.fill.right,fill:`url(#grad_right_${e.id})`,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e)},null,40,dt),C(`path`,{d:e.fill.left,fill:`url(#grad_left_${e.id})`,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e)},null,40,ft),C(`path`,{d:e.fill.top,fill:`url(#grad_top_${e.id})`,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e)},null,40,pt),C(`path`,{d:e.fill.liningTop,stroke:`#FFFFFF`,"stroke-width":`0.5`,"stroke-linecap":`round`,fill:`none`,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e)},null,40,mt),C(`path`,{d:`M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,stroke:`#FFFFFF`,"stroke-width":`0.5`,"stroke-linecap":`round`},null,8,ht)],12,ut))),256)),(D(!0),S(v,null,k(J.value,(e,t)=>(D(),S(`g`,null,[t===J.value.length-1?x(``,!0):(D(),S(`path`,{key:0,d:e.fill.liningTopShade,stroke:H.value.bar.shadeColor,"stroke-width":`0.5`,"stroke-linecap":`round`,fill:`none`,style:{"pointer-events":`none`}},null,8,gt))]))),256)),(D(!0),S(v,null,k(J.value,(t,r)=>(D(),S(`g`,{style:E(`opacity:${X.value?+(X.value===t.id):+(t.proportion*100>H.value.legend.hideUnderPercentage)}`),onClick:e=>hn(`selectDatapoint`,t)},[C(`path`,{stroke:H.value.color,"stroke-dasharray":`1`,"stroke-width":`0.5`,"stroke-linecap":`round`,d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`},null,8,vt),!t.fill.miniDonut||X.value?(D(),S(`circle`,{key:0,cx:t.fill.sidePointer.x2,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:H.value.backgroundColor},null,8,yt)):x(``,!0),M(On)?(D(),S(`rect`,{key:1,x:t.fill.sidePointer.xText,y:t.fill.sidePointer.y-H.value.legend.fontSize/2,width:q.value.width/3,height:H.value.legend.fontSize,fill:`#6A6A6A80`,rx:`3`},null,8,bt)):x(``,!0),M(On)?x(``,!0):(D(),S(`foreignObject`,{key:2,x:t.fill.sidePointer.xText,y:t.fill.sidePointer.y-H.value.legend.fontSize,width:q.value.absoluteWidth/3,height:H.value.legend.fontSize*2,style:{overflow:`visible`,position:`relative`}},[H.value.legend.showDefault?(D(),S(`div`,{key:0,style:E(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${H.value.legend.fontSize}px; text-align:left; line-height: ${H.value.legend.fontSize}px; color:${H.value.legend.color}; font-weight:${H.value.legend.bold?`bold`:`normal`}`)},j(M(h)(H.value.dataLabel.formatter,t.value,`${t.name}: ${M(n)({v:t.proportion*100,s:`%`,r:H.value.legend.roundingPercentage})} (${M(n)({p:H.value.legend.prefix,v:t.value,s:H.value.legend.suffix,r:H.value.legend.roundingValue})})`,{datapoint:t,seriesIndex:r,type:`barDatapoint`})),5)):x(``,!0),A(e.$slots,`legend`,Ae({ref_for:!0},{datapoint:t,config:V.value,dataset:J.value}),void 0,!0)],8,xt)),t.fill.donut&&X.value===t.id?(D(),S(`g`,St,[(D(!0),S(v,null,k(t.fill.donut,(e,n)=>(D(),S(`g`,null,[Yn(e,t.fill.donut,!0)>6?(D(),S(`path`,{key:0,d:M(m)(e,{x:e.cx,y:e.cy},0,8,!1,!0,10),stroke:e.color,class:`vue-ui-donut-arc-path`,"stroke-width":`0.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},null,8,Ct)):x(``,!0)]))),256)),(D(!0),S(v,null,k(t.fill.donut,(e,t)=>(D(),S(`path`,{class:`vue-ui-donut-arc-path`,d:e.arcSlice,fill:`${e.color}`,stroke:H.value.backgroundColor,"stroke-width":1},null,8,wt))),256)),(D(!0),S(v,null,k(t.fill.donut,(e,r)=>(D(),S(`g`,null,[Yn(e,t.fill.donut,!0)>6?(D(),S(`g`,Tt,[C(`text`,{"text-anchor":M(p)(e,!0,0).anchor,x:M(p)(e,!0,2).x,y:M(g)(e,12,12),fill:H.value.legend.color,"font-size":H.value.legend.fontSize/1.5,"font-weight":H.value.legend.bold?`bold`:`normal`},j(M(h)(H.value.dataLabel.formatter,e.value,`${Yn(e,t.fill.donut)} (${M(n)({p:V.value.style.chart.legend.prefix,v:e.value,s:V.value.style.chart.legend.suffix,r:V.value.style.chart.legend.roundingValue})})`,{datapoint:e,seriesIndex:r,type:`donutDatapoint`})),9,Et),C(`text`,{"text-anchor":M(p)(e).anchor,x:M(p)(e,!0,2).x,y:M(g)(e,12,12)+H.value.legend.fontSize/1.5,fill:H.value.legend.color,"font-size":H.value.legend.fontSize/1.5,"font-weight":H.value.legend.bold?`bold`:`normal`},j(e.name),9,Dt)])):x(``,!0)]))),256))])):x(``,!0),t.fill.miniDonut&&!X.value?(D(),S(`g`,Ot,[(D(!0),S(v,null,k(t.fill.miniDonut,(e,t)=>(D(),S(`path`,{class:`vue-ui-donut-arc-path`,d:e.arcSlice,fill:`${e.color}`,stroke:H.value.backgroundColor,"stroke-width":.5},null,8,kt))),256))])):x(``,!0)],12,_t))),256))])):x(``,!0)])):x(``,!0),Tn.value.shape===`tube`?(D(),S(`g`,At,[K.value?x(``,!0):(D(),S(`g`,jt,[C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.tubeTop,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,Mt),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.tubeLeft,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,Nt),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.tubeRight,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,Pt),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.tubeBottom,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,Ft),C(`path`,{d:Jn.value.tubeTop,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_tube_top${F.value})`},null,8,It),C(`path`,{d:Jn.value.tubeBody,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_tube_body${F.value})`},null,8,Lt),C(`path`,{d:Jn.value.tubeTop,stroke:`#FFFFFF`,"stroke-width":.5,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,Rt)])),K.value?(D(),S(`g`,zt,[(D(!0),S(v,null,k(J.value,(e,t)=>(D(),S(`g`,{style:E(`opacity:${X.value?X.value===e.id?1:.3:1}`),class:`vue-ui-3d-bar-stack`,role:`img`,"aria-label":gr(e)},[C(`defs`,null,[w(_,{t:`radial`,id:`gradient_tube_top_${e.id}`,fx:`10%`,cy:`55%`,stops:[[`0%`,M(s)(M(i)(e.color,.5),80),1],[`100%`,M(s)(M(c)(e.color,.1),80),1]]},null,8,[`id`,`stops`]),w(_,{t:`linear`,id:`gradient_tube_body_${e.id}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,e.color,1],[`10%`,M(s)(M(c)(e.color,.7),100),1],[`25%`,M(s)(M(c)(e.color,.5),100),1],[`75%`,M(s)(e.color,80),1],[`100%`,M(s)(M(i)(e.color,.7),100),1]]},null,8,[`id`,`stops`])]),C(`path`,{onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e),d:e.fill.tubeBody,stroke:`#FFFFFF`,"stroke-width":.5,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_tube_body_${e.id})`},null,40,Vt),t>0?(D(),S(`path`,{key:0,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e),d:e.fill.bottomTubeTop,stroke:`#000000`,"stroke-width":.5,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,40,Ht)):x(``,!0),C(`path`,{onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e),d:e.fill.tubeTop,stroke:`#FFFFFF`,"stroke-width":.5,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_tube_top_${e.id})`},null,40,Ut)],12,Bt))),256)),(D(!0),S(v,null,k(J.value,(t,r)=>(D(),S(`g`,{style:E(`opacity:${X.value?+(X.value===t.id):+(t.proportion*100>H.value.legend.hideUnderPercentage)}`),onClick:e=>hn(`selectDatapoint`,t)},[C(`path`,{stroke:H.value.color,"stroke-dasharray":`1`,"stroke-width":`0.5`,"stroke-linecap":`round`,d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`},null,8,Gt),!t.fill.miniDonut||X.value?(D(),S(`circle`,{key:0,cx:t.fill.sidePointer.x2,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:H.value.backgroundColor},null,8,Kt)):x(``,!0),M(On)?(D(),S(`rect`,{key:1,x:t.fill.sidePointer.xText,y:t.fill.sidePointer.y-H.value.legend.fontSize/2,width:q.value.width/3,height:H.value.legend.fontSize,fill:`#6A6A6A80`,rx:`3`},null,8,qt)):x(``,!0),M(On)?x(``,!0):(D(),S(`foreignObject`,{key:2,x:t.fill.sidePointer.xText,y:t.fill.sidePointer.y-H.value.legend.fontSize,width:q.value.absoluteWidth/3,height:H.value.legend.fontSize*2,style:{overflow:`visible`,position:`relative`}},[H.value.legend.showDefault?(D(),S(`div`,{key:0,style:E(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${H.value.legend.fontSize}px; text-align:left; line-height: ${H.value.legend.fontSize}px; color:${H.value.legend.color};font-weight:${H.value.legend.bold?`bold`:`normal`}`)},j(M(h)(H.value.dataLabel.formatter,t.value,`${t.name}: ${M(n)({v:t.proportion*100,s:`%`,r:H.value.legend.roundingPercentage})} (${M(n)({p:H.value.legend.prefix,v:t.value,s:H.value.legend.suffix,r:H.value.legend.roundingValue})})`,{datapoint:t,seriesIndex:r,type:`barDatapoint`})),5)):x(``,!0),A(e.$slots,`legend`,Ae({ref_for:!0},{datapoint:t,config:V.value,dataset:J.value}),void 0,!0)],8,Jt)),t.fill.donut&&X.value===t.id?(D(),S(`g`,Yt,[(D(!0),S(v,null,k(t.fill.donut,(e,n)=>(D(),S(`g`,null,[Yn(e,t.fill.donut,!0)>6?(D(),S(`path`,{key:0,d:M(m)(e,{x:e.cx,y:e.cy},0,8,!1,!0,10),stroke:e.color,class:`vue-ui-donut-arc-path`,"stroke-width":`0.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},null,8,Xt)):x(``,!0)]))),256)),(D(!0),S(v,null,k(t.fill.donut,(e,t)=>(D(),S(`path`,{class:`vue-ui-donut-arc-path`,d:e.arcSlice,fill:`${e.color}`,stroke:H.value.backgroundColor,"stroke-width":1},null,8,Zt))),256)),(D(!0),S(v,null,k(t.fill.donut,(e,r)=>(D(),S(`g`,null,[Yn(e,t.fill.donut,!0)>6?(D(),S(`g`,Qt,[C(`text`,{"text-anchor":M(p)(e,!0,0).anchor,x:M(p)(e,!0,2).x,y:M(g)(e,12,12),fill:H.value.legend.color,"font-size":H.value.legend.fontSize/1.5,"font-weight":H.value.legend.bold?`bold`:`normal`},j(M(h)(H.value.dataLabel.formatter,e.value,`${Yn(e,t.fill.donut)} (${M(n)({p:V.value.style.chart.legend.prefix,v:e.value,s:V.value.style.chart.legend.suffix,r:V.value.style.chart.legend.roundingValue})})`,{datapoint:e,seriesIndex:r,type:`donutDatapoint`})),9,$t),C(`text`,{"text-anchor":M(p)(e).anchor,x:M(p)(e,!0,2).x,y:M(g)(e,12,12)+H.value.legend.fontSize/1.5,fill:H.value.legend.color,"font-size":H.value.legend.fontSize/1.5,"font-weight":H.value.legend.bold?`bold`:`normal`},j(e.name),9,en)])):x(``,!0)]))),256))])):x(``,!0),t.fill.miniDonut&&!X.value?(D(),S(`g`,tn,[(D(!0),S(v,null,k(t.fill.miniDonut,(e,t)=>(D(),S(`path`,{class:`vue-ui-donut-arc-path`,d:e.arcSlice,fill:`${e.color}`,stroke:H.value.backgroundColor,"stroke-width":.5},null,8,nn))),256))])):x(``,!0)],12,Wt))),256))])):x(``,!0)])):x(``,!0),A(e.$slots,`svg`,{svg:{...q.value,isPrintingImg:M(Pn)||M(Fn)||M(ur),isPrintingSvg:M(dr)}},void 0,!0)],46,Ge))]),e.$slots.watermark?(D(),S(`div`,rn,[A(e.$slots,`watermark`,Ne(ke({isPrinting:M(Pn)||M(Fn)||M(dr)||M(ur)})),void 0,!0)])):x(``,!0),e.$slots.source?(D(),S(`div`,{key:5,ref_key:`source`,ref:Sn,dir:`auto`},[A(e.$slots,`source`,{},void 0,!0)],512)):x(``,!0),gn.value&&K.value&&U.value.buttons.table?(D(),b(Fe(or.value.component),Ae({key:6},or.value.props,{ref_key:`tableUnit`,ref:Cn,onClose:sr}),De({content:N(()=>[(D(),b(M(ln),{key:`table_${vn.value}`,colNames:$.value.colNames,head:$.value.head,body:$.value.body,config:$.value.config,title:V.value.table.useDialog?``:or.value.title,withCloseButton:!V.value.table.useDialog,isCursorPointer:En.value,onClose:sr},{th:N(({th:e})=>[e===`__SUM__`?(D(),S(`div`,an,[w(M(sn),{name:`sigma`,stroke:$.value.config.th.color,size:16},null,8,[`stroke`])])):(D(),S(`div`,on,j(e),1))]),td:N(({td:e})=>[Oe(j(e.name||e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[V.value.table.useDialog?{name:`title`,fn:N(()=>[Oe(j(or.value.title),1)]),key:`0`}:void 0,V.value.table.useDialog?{name:`actions`,fn:N(()=>[C(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:t[7]||=e=>tr(U.value.callbacks.csv)},[w(M(sn),{name:`fileCsv`,stroke:or.value.props.color},null,8,[`stroke`])])]),key:`1`}:void 0]),1040)):x(``,!0),A(e.$slots,`skeleton`,{},()=>[M(On)?(D(),b(se,{key:0})):x(``,!0)],!0)],44,Ve))}},[[`__scopeId`,`data-v-a94462fe`]]);export{Be as n,sn as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-D3ZfFSE5.js";import{$ as n,D as r,Dt as i,Jt as a,X as o,Yt as ee,at as te,b as s,et as ne,i as c,in as re,nt as ie,pt as ae,t as oe,tn as se,zt as ce}from"./lib-rPeBMZrn.js";import{n as le,t as ue}from"./BaseScanner-8NdoBs7B.js";import{n as de,t as fe}from"./useHints-C-TwxM0Y.js";import{t as pe}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as me}from"./resolveChartConfig-CIhClE5R.js";import{t as he}from"./img-D4RQwASc.js";import{n as ge}from"./Title-BliHuXfT.js";import{t as _e}from"./useChartExport-BZts4KFb.js";import{n as ve,t as ye}from"./tableIntegration-CNoJ1CIY.js";import{n as be,t as xe}from"./annotationSlots-RvQBEO9-.js";import{n as Se,t as Ce}from"./userOptionsSlots-DYuo-E5m.js";import{t as we}from"./usePrinter-DVf3YcG5.js";import{t as Te}from"./useSvgLabelLayout-42Kats14.js";import{t as Ee}from"./useTimeLabelCollider-BTybMUFi.js";import{t as De}from"./useResponsive-CENUxfEL.js";import{t as Oe}from"./DefGrad-DKMq1REY.js";import{t as ke}from"./A11yDataTable-DWNlWXzs.js";import{t as Ae}from"./useUserOptionState-CXlFnwPv.js";import{t as je}from"./useChartAccessibility-DOMuYJfm.js";import{t as Me}from"./vue_ui_age_pyramid-CL0Ef8Ov.js";import{Fragment as l,computed as u,createBlock as d,createCommentVNode as f,createElementBlock as p,createElementVNode as m,createSlots as Ne,createTextVNode as Pe,createVNode as h,defineAsyncComponent as g,guardReactiveProps as _,mergeProps as Fe,nextTick as Ie,normalizeClass as Le,normalizeProps as v,normalizeStyle as Re,onBeforeUnmount as ze,onMounted as Be,openBlock as y,ref as b,renderList as x,renderSlot as S,resolveDynamicComponent as Ve,shallowRef as He,toDisplayString as C,toRefs as Ue,unref as w,watch as T,withCtx as E}from"vue";var We=/* @__PURE__ */ e({default:()=>yt}),Ge=[`id`],Ke=[`id`],qe={style:{position:`relative`}},Je=[`xmlns`,`viewBox`,`aria-describedby`],Ye=[`x`,`y`,`width`,`height`],Xe=[`x`,`y`,`width`,`height`,`fill`,`rx`],Ze=[`x`,`y`,`width`,`height`,`fill`,`rx`],Qe=[`x`,`y`,`width`,`height`,`fill`,`rx`],$e=[`x`,`y`,`width`,`height`,`fill`,`rx`],et=[`x`,`y`,`font-size`,`font-weight`,`fill`,`stroke`],tt=[`x`,`y`,`font-size`,`font-weight`,`fill`,`stroke`],nt={key:0},rt=[`x`,`y`,`fill`,`font-size`,`font-weight`],it=[`x`,`y`,`fill`,`font-size`,`font-weight`],at={key:1},ot=[`x`,`y`,`font-size`,`fill`,`font-weight`],st={key:2},ct={key:0},lt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],ut=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],dt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],ft=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],pt=[`font-size`,`fill`,`text-anchor`,`font-weight`,`transform`],mt=[`font-size`,`fill`,`text-anchor`,`font-weight`,`transform`],ht=[`x`,`y`,`font-size`,`fill`,`font-weight`],gt=[`x`,`y`,`width`,`height`,`fill`,`onMouseover`,`onMouseleave`,`onClick`],_t={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},vt={key:5,class:`vue-data-ui-watermark`},yt=/*#__PURE__*/ pe({__name:`vue-ui-age-pyramid`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`copyAlt`],setup(e,{expose:pe,emit:We}){let yt=g(()=>import(`./Tooltip-C1q0Qoh7.js`)),bt=g(()=>import(`./BaseIcon-fYK0iID8.js`).then(e=>e.n)),xt=g(()=>import(`./vue-ui-accordion-D4FHxzsL.js`).then(e=>e.n)),St=g(()=>import(`./DataTable-5Ug6gMAX.js`)),Ct=g(()=>import(`./PenAndPaper-r50tK3S4.js`).then(e=>e.t)),wt=g(()=>import(`./UserOptions-Em_JgDXM.js`).then(e=>e.n)),Tt=g(()=>import(`./PackageVersion-u-p5bCcj.js`).then(e=>e.t)),Et=g(()=>import(`./BaseDraggableDialog-9d30Yx8c.js`).then(e=>e.n)),{vue_ui_age_pyramid:Dt}=t(),D=e,Ot=We,kt=u(()=>!!D.dataset&&D.dataset.length),O=b(o()),k=b(!1),At=b(``),A=b(null),jt=b(0),j=b(null),Mt=b(null),Nt=b(null),Pt=b(null),Ft=b(0),It=b(0),Lt=b(null),Rt=b(null),zt=b(null),M=b(null),Bt=b({x:0,y:0}),N=b(`pointer`),Vt=b(!1),P=b(Yt()),F=u(()=>P.value.style),I=u(()=>P.value.style.layout.dataLabels),L=u(()=>P.value.style.layout.bars),R=u(()=>P.value.style.layout.bars.labels);de({config:()=>P.value,dataset:()=>D.dataset,component:`VueUiAgePyramid`,rules:[fe.emptyArray,{test:e=>e.length>130,message:[`👀 Dataset has > 130 points. Consider:`,``,`▶️ Grouping small values into aggregated categories.`,``,`▶️ Using VueUiStackline to display data in a more compact way.`]}]});let z=u(()=>P.value.userOptions.useCursorPointer),Ht=u(()=>re({defaultConfig:{userOptions:{show:!1},table:{show:!1},translations:{male:``,female:``},style:{backgroundColor:`#99999930`,layout:{bars:{left:{color:`#CACACA`},right:{color:`#999999`}},dataLabels:{xAxis:{fontSize:0,scale:1e3,translation:``},yAxis:{show:!1}},grid:{stroke:`#6A6A6A`}}}},userConfig:P.value.skeletonConfig??{}})),{loading:Ut,FINAL_DATASET:Wt,manualLoading:Gt}=le({...Ue(D),FINAL_CONFIG:P,prepareConfig:Yt,skeletonDataset:D.config?.skeletonDataset??[[`_`,9,2,2],[`_`,8,3,3],[`_`,7,5,5],[`_`,6,8,8],[`_`,5,13,13],[`_`,4,21,21],[`_`,3,34,34],[`_`,2,55,55],[`_`,1,89,89],[`_`,0,144,144]],skeletonConfig:re({defaultConfig:P.value,userConfig:Ht.value})}),{userOptionsVisible:Kt,setUserOptionsVisibility:qt,keepUserOptionState:Jt}=Ae({config:P.value}),{svgRef:B}=je({config:P.value.style.title});function Yt(){return me(D.config,Dt,Me)}function Xt(e){let t=ne(e);return t?.style?.chart&&delete t.style.tooltip,JSON.stringify(t)}let Zt=Xt(D.config);T(()=>D.config,(e,t)=>{let n=Xt(e),r=n!==Zt;Zt=n;let i=Yt();r?(Ut.value||(P.value=i),Kt.value=!P.value.userOptions.showOnChartHover,tn(),Ft.value+=1,It.value+=1,U.value.showTable=P.value.table.show,U.value.showTooltip=P.value.style.tooltip.show):(P.value.style.tooltip=i.style.tooltip,U.value.showTooltip=P.value.style.tooltip.show)},{deep:!0}),T(()=>D.dataset,e=>{Array.isArray(e)&&e.length>0&&(Gt.value=!1)},{deep:!0});let V=He(null),H=He(null),Qt=b(!1),$t=0;Be(()=>{tn()});let en=u(()=>P.value.debug);function tn(){ce(D.dataset)&&(te({componentName:`VueUiAgePyramid`,type:`dataset`,debug:en.value}),Gt.value=!0),ce(D.dataset)||(Gt.value=P.value.loading),P.value.responsive&&(V.value&&(H.value&&V.value.unobserve(H.value),V.value.disconnect()),V.value=new ResizeObserver(()=>{let{width:e,height:t}=De({chart:j.value,title:F.value.title.text?Mt.value:null,source:Nt.value,noTitle:Pt.value});cancelAnimationFrame($t),$t=requestAnimationFrame(()=>{W.value.width=e,W.value.height=t,Qt.value=!0})}),H.value=j.value.parentNode,V.value.observe(H.value))}ze(()=>{cancelAnimationFrame($t),V.value&&(H.value&&V.value.unobserve(H.value),V.value.disconnect())});let{isPrinting:nn,isImaging:rn,generatePdf:an,generateImage:on}=we({elementId:`vue-ui-age-pyramid_${O.value}`,fileName:F.value.title.text||`vue-ui-age-pyramid`,options:P.value.userOptions.print}),sn=u(()=>P.value.userOptions.show&&!F.value.title.text),U=b({showTable:P.value.table.show,showTooltip:F.value.tooltip.show});T(P,()=>{U.value={showTable:P.value.table.show,showTooltip:F.value.tooltip.show}},{immediate:!0});let W=b({height:F.value.height,width:F.value.width}),cn=u(()=>W.value.width),ln=u(()=>W.value.height),{metrics:un,ready:dn,settling:fn,update:pn}=Te({svgRef:B,canMeasure:()=>!P.value.responsive||Qt.value,initialMetrics:{bottom:0},measure:e=>({bottom:e(Lt.value).height})}),mn=u(()=>un.value.bottom),G=u(()=>{let e=W.value.width-F.value.layout.padding.right-F.value.layout.padding.left,t=F.value.layout.padding.left,n=W.value.width-F.value.layout.padding.right;return{top:F.value.layout.padding.top+I.value.sideTitles.fontSize+I.value.sideTitles.offsetY+12,left:t,right:n,bottom:W.value.height-F.value.layout.padding.bottom-mn.value,width:e,height:W.value.height-F.value.layout.padding.top-F.value.layout.padding.bottom-mn.value-I.value.sideTitles.fontSize-I.value.sideTitles.offsetY-12,centerX:F.value.layout.padding.left+e/2,leftChart:{width:e/2-F.value.layout.centerSlit.width,right:t+e/2-F.value.layout.centerSlit.width},rightChart:{width:e/2-F.value.layout.centerSlit.width,left:t+e/2+F.value.layout.centerSlit.width}}}),hn=u(()=>Wt.value.map(e=>I.value.yAxis.display===`age`?e[1]:e[0])),K=u(()=>{let e=gn(q.value/5),t=[],n=[];for(let r=0;r<=5;r+=1){let i=e*r,a=e*(r-5);t.push({value:i,x:G.value.left+G.value.width/2+F.value.layout.centerSlit.width+i/q.value*G.value.leftChart.width}),n.push({value:Math.abs(a),x:G.value.left+G.value.width/2+a/q.value*G.value.leftChart.width-F.value.layout.centerSlit.width})}return{right:t,left:n}});function gn(e){if(e===0)return 0;let t=10**Math.floor(Math.log10(Math.abs(e))),n;return n=Math.round(e/t)*t,n}let q=u(()=>Math.max(...Wt.value.flatMap(e=>e.slice(-2).map(e=>s(e))))),J=u(()=>Wt.value.length),_n=u(()=>Wt.value.map(e=>({segment:e[0],age:e[1],left:{value:e[2],proportionToMax:e[2]/q.value},right:{value:e[3],proportionToMax:e[3]/q.value}}))),Y=u(()=>_n.value.map((e,t)=>{let n=G.value.top+G.value.height/J.value*t,r=G.value.height/J.value-L.value.gap;return{segment:e.segment,age:e.age,left:{...e.left,y:n,color:L.value.left.color,x:G.value.leftChart.right-e.left.proportionToMax*G.value.leftChart.width,width:s(e.left.proportionToMax*G.value.leftChart.width),height:r},right:{...e.right,y:n,color:L.value.right.color,x:G.value.rightChart.left,width:s(e.right.proportionToMax*G.value.rightChart.width),height:r}}})),vn=b(null);function yn(e){let[t,n,r,i]=e;return{segment:t,index:n,left:r,right:i}}function bn(e,t){P.value.events.datapointClick&&P.value.events.datapointClick({datapoint:yn(t),seriesIndex:e})}function xn(e,t){P.value.events.datapointLeave&&P.value.events.datapointLeave({datapoint:yn(t),seriesIndex:e}),(N.value!==`keyboard`||M.value!==e)&&(A.value=null,k.value=!1)}function Sn(e){if(!B.value)return;let t=Y.value[e];if(!t)return;let n=se(G.value.left+G.value.width/2,t.left.y+t.left.height/2,B.value);n&&(Bt.value=n)}function Cn(e,t,r=`pointer`){P.value.events.datapointEnter&&P.value.events.datapointEnter({datapoint:yn(t),seriesIndex:e}),A.value=e,M.value=e,N.value=r,vn.value={datapoint:t,seriesIndex:e,series:Y.value,config:P.value};let a=F.value.tooltip.customFormat;if(i(a)&&ae(()=>a({seriesIndex:e,datapoint:{segment:t[0],index:t[1],left:t[2],right:t[3]},series:Y.value,config:P.value})))At.value=a({seriesIndex:e,datapoint:{segment:t[0],index:t[1],left:t[2],right:t[3]},series:Y.value,config:P.value});else{let r=``,i=Y.value[e];r+=`<div><b>${i.segment}</b></div>`,r+=`<div>${P.value.translations.age}: ${c(I.value.yAxis.formatter,s(i.age),n({v:s(i.age)}),{datapoint:t,seriesIndex:e})}</div>`,r+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.tooltip.borderColor}">`,r+=`<div style="display:flex; flex-direction:row;gap:12px">`,r+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.show?`url(#age_pyramid_left_${O.value})`:L.value.left.color}"/></svg><div>${P.value.translations.female}</div><div><b>${c(I.value.xAxis.formatter,s(i.left.value),n({v:s(i.left.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,r+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.show?`url(#age_pyramid_right_${O.value})`:L.value.right.color}"/></svg><div>${P.value.translations.male}</div><div><b>${c(I.value.xAxis.formatter,s(i.right.value),n({v:s(i.right.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,r+=`</div>`,r+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.tooltip.borderColor}"><div>${P.value.translations.total}</div><div><b>${c(I.value.xAxis.formatter,s(i.right.value)+s(i.left.value),n({v:s(i.right.value)+s(i.left.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,r+=`</div>`,At.value=`<div>${r}</div>`}k.value=!0,r===`keyboard`&&Ie(()=>{Sn(e)})}function wn(e=null){Ie(()=>{let t=[P.value.translations.year,P.value.translations.age,P.value.translations.female,P.value.translations.male,P.value.translations.total],n=D.dataset.map(e=>[e[0],e[1],e[2],e[3],e[2]??0+e[3]??0]),i=[[F.value.title.text],[F.value.title.subtitle.text],[[``],[``],[``]],t].concat(n),a=r(i);e?e(a):ie({csvContent:a,title:F.value.title.text||`vue-ui-heatmap`})})}let X=u(()=>{let e=[P.value.translations.year,P.value.translations.age,P.value.translations.female,P.value.translations.male,P.value.translations.total];return{head:e,body:D.dataset.map(e=>[e[0],e[1],e[2]==null?``:e[2].toLocaleString(),e[3]==null?``:e[3].toLocaleString(),(e[2]??0+e[3]??0).toLocaleString()]),config:{th:{backgroundColor:P.value.table.th.backgroundColor,color:P.value.table.th.color,outline:P.value.table.th.outline},td:{backgroundColor:P.value.table.td.backgroundColor,color:P.value.table.td.color,outline:P.value.table.td.outline},breakpoint:P.value.table.responsiveBreakpoint},colNames:e}}),Z=b(!1);function Tn(e){Z.value=e,jt.value+=1}function En(){U.value.showTable=!U.value.showTable}function Dn(){U.value.showTooltip=!U.value.showTooltip}let Q=b(!1);function On(){Q.value=!Q.value}async function kn({scale:e=2}={}){if(!j.value)return;let{width:t,height:n}=j.value.getBoundingClientRect(),r=t/n,{imageUri:i,base64:a}=await he({domElement:j.value,base64:!0,img:!0,scale:e});return{imageUri:i,base64:a,title:F.value.title.text,width:t,height:n,aspectRatio:r}}let An=b([]),jn=b({start:0,end:Y.value.length});Ee({timeLabelsEls:Lt,timeLabels:An,slicer:jn,configRef:P,rotationPath:[`style`,`layout`,`dataLabels`,`xAxis`,`rotation`],autoRotatePath:[`style`,`layout`,`dataLabels`,`xAxis`,`autoRotate`,`enable`],isAutoSize:!1,width:cn,height:ln,targetClass:`.vue-ui-age-pyramid-x-axis-label`,rotation:F.value.layout.dataLabels.xAxis.autoRotate.angle});let $=u(()=>ye({config:P,style:F,mutableConfig:U,dialog:Et,accordion:xt,isFullscreen:Z,parent:j,maxWidth:800,isCursorPointer:z}));T(()=>U.value.showTable,e=>ve(e,P,Rt));function Mn(){U.value.showTable=!1,zt.value&&zt.value.setTableIconState(!1)}let Nn=u(()=>P.value.style.backgroundColor),Pn=u(()=>P.value.style.title),{isCallbackImaging:Fn,isCallbackSvg:In,generateSvg:Ln,onGenerateImage:Rn}=_e({svg:B,title:Pn,legend:null,legendItems:null,backgroundColor:Nn,getSvgCallback:()=>P.value.userOptions.callbacks.svg,generateImage:on});async function zn(){Ot(`copyAlt`,{config:P.value,dataset:Y.value}),P.value.userOptions.callbacks.altCopy?await Promise.resolve(P.value.userOptions.callbacks.altCopy({config:P.value,dataset:Y.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function Bn(){Vt.value=!0}function Vn(){A.value=null,M.value=null,N.value=`pointer`,k.value=!1,Vt.value=!1}function Hn(e){if(!B.value||Q.value||document.activeElement!==B.value||!Y.value.length)return;let t=[`ArrowUp`,`ArrowLeft`].includes(e.key),n=[`ArrowDown`,`ArrowRight`].includes(e.key),r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){A.value=null,M.value=null,N.value=`pointer`,k.value=!1;return}if(r){if(M.value===null)return;let e=D.dataset[M.value];if(!e)return;bn(M.value,e);return}let a=M.value,o=A.value,ee=a!==null&&a>=0&&a<Y.value.length,te=o!==null&&o>=0&&o<Y.value.length;ee?t?a=a-1<0?Y.value.length-1:a-1:n&&(a=a+1>Y.value.length-1?0:a+1):te?(a=n?o+1:o-1,a>=Y.value.length&&(a=0),a<0&&(a=Y.value.length-1)):a=n?0:Y.value.length-1;let s=D.dataset[a];s&&Cn(a,s,`keyboard`)}return pe({getImage:kn,generatePdf:an,generateCsv:wn,generateImage:on,generateSvg:Ln,toggleTable:En,toggleTooltip:Dn,toggleAnnotator:On,toggleFullscreen:Tn,copyAlt:zn}),T(()=>[W.value,I.value,Lt.value,D.dataset,Qt.value,P.value.style.fontFamily],pn,{flush:`post`,deep:!0}),(t,r)=>(y(),p(`div`,{class:Le(`vue-data-ui-component vue-ui-age-pyramid ${Z.value?`vue-data-ui-wrapper-fullscreen`:``}`),ref_key:`agePyramid`,ref:j,id:`vue-ui-age-pyramid_${O.value}`,style:Re(`font-family:${F.value.fontFamily};width:100%; text-align:center;background:${F.value.backgroundColor};${P.value.responsive?`height:100%`:``}`),onMouseenter:r[1]||=()=>w(qt)(!0),onMouseleave:r[2]||=()=>w(qt)(!1)},[m(`div`,{id:`chart-instructions-${O.value}`,class:`sr-only`},[m(`p`,null,C(P.value.a11y.translations.keyboardNavigation),1)],8,Ke),X.value?.body?.length?(y(),d(ke,{key:0,uid:O.value,head:X.value.head,body:X.value.body,notice:P.value.a11y.translations.tableAvailable,caption:P.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):f(``,!0),P.value.userOptions.buttons.annotator?(y(),d(w(Ct),{key:1,showGroupActions:P.value.userOptions.annotator?.showGroupActions??!0,svgRef:w(B),backgroundColor:F.value.backgroundColor,color:F.value.color,active:Q.value,isCursorPointer:z.value,palette:P.value.userOptions.annotatorPalette,onClose:On},Ne({_:2},[x(w(xe),e=>({name:e,fn:E(n=>[S(t.$slots,e,v(_(w(be)(e,n))),void 0,!0)])}))]),1032,[`showGroupActions`,`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):f(``,!0),sn.value?(y(),p(`div`,{key:2,ref_key:`noTitle`,ref:Pt,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):f(``,!0),F.value.title.text?(y(),p(`div`,{key:3,ref_key:`chartTitle`,ref:Mt,style:`width:100%;background:transparent`},[(y(),d(ge,{key:`title_${Ft.value}`,config:{title:{cy:`pyramid-div-title`,...F.value.title},subtitle:{cy:`pyramid-div-subtitle`,...F.value.title.subtitle}}},null,8,[`config`]))],512)):f(``,!0),P.value.userOptions.show&&kt.value&&(w(Jt)||w(Kt))?(y(),d(w(wt),{ref_key:`userOptionsRef`,ref:zt,key:`user_options_${jt.value}`,backgroundColor:F.value.backgroundColor,color:F.value.color,isImaging:w(rn),isPrinting:w(nn),uid:O.value,hasTooltip:P.value.userOptions.buttons.tooltip&&F.value.tooltip.show,hasPdf:P.value.userOptions.buttons.pdf,hasXls:P.value.userOptions.buttons.csv,hasImg:P.value.userOptions.buttons.img,hasSvg:P.value.userOptions.buttons.svg,hasTable:P.value.userOptions.buttons.table,hasFullscreen:P.value.userOptions.buttons.fullscreen,hasAltCopy:P.value.userOptions.buttons.altCopy,isFullscreen:Z.value,isTooltip:U.value.showTooltip,titles:{...P.value.userOptions.buttonTitles},chartElement:j.value,position:P.value.userOptions.position,hasAnnotator:P.value.userOptions.buttons.annotator,isAnnotation:Q.value,callbacks:P.value.userOptions.callbacks,printScale:P.value.userOptions.print.scale,tableDialog:P.value.table.useDialog,isCursorPointer:z.value,onToggleFullscreen:Tn,onGeneratePdf:w(an),onGenerateCsv:wn,onGenerateImage:w(Rn),onGenerateSvg:w(Ln),onToggleTable:En,onToggleTooltip:Dn,onToggleAnnotator:On,onCopyAlt:zn,style:Re({visibility:w(Jt)?w(Kt)?`visible`:`hidden`:`visible`})},Ne({_:2},[x(w(Se)(t.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),e=>({name:e,fn:E(n=>[S(t.$slots,e,v(_(w(Ce)(e,n))),void 0,!0)])}))]),1032,/* @__PURE__ */ `backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style`.split(`.`))):f(``,!0),m(`div`,qe,[(y(),p(`svg`,{ref_key:`svgRef`,ref:B,xmlns:w(oe),class:Le({"vue-data-ui-fullscreen--on":Z.value,"vue-data-ui-fulscreen--off":!Z.value}),viewBox:`0 0 ${W.value.width<=0?10:W.value.width} ${W.value.height<=0?10:W.value.height}`,style:Re(`max-width:100%;overflow:visible;background:transparent;color:${F.value.color};visibility:${w(dn)?`visible`:`hidden`}`),tabindex:`0`,"aria-describedby":`chart-instructions-${O.value}`,onFocus:Bn,onBlur:Vn,onKeydown:Hn},[h(w(Tt)),S(t.$slots,`svg-underlayer`,{svg:{...W.value,drawingArea:G.value,isPrintingImg:w(nn)||w(rn)||w(Fn),isPrintingSvg:w(In)}},void 0,!0),t.$slots[`chart-background`]?(y(),p(`foreignObject`,{key:0,x:G.value.left,y:G.value.top,width:Math.max(.1,G.value.width),height:Math.max(.1,G.value.height),style:{pointerEvents:`none`}},[S(t.$slots,`chart-background`,{},void 0,!0)],8,Ye)):f(``,!0),m(`defs`,null,[h(Oe,{t:`linear`,id:`age_pyramid_left_${O.value}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,L.value.left.color,1],[`100%`,w(a)(w(ee)(L.value.left.color,L.value.gradient.shiftHue),100-L.value.gradient.intensity),1]]},null,8,[`id`,`stops`]),h(Oe,{t:`linear`,id:`age_pyramid_right_${O.value}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,w(a)(w(ee)(L.value.right.color,L.value.gradient.shiftHue),100-L.value.gradient.intensity),1],[`100%`,L.value.right.color,1]]},null,8,[`id`,`stops`])]),(y(!0),p(l,null,x(Y.value,(e,t)=>(y(),p(`g`,null,[m(`rect`,{x:e.left.x,y:e.left.y,width:w(s)(e.left.width<=0?1e-4:e.left.width),height:e.left.height<=0?1e-4:e.left.height,fill:L.value.gradient.underlayer,rx:L.value.borderRadius},null,8,Xe),m(`rect`,{x:e.left.x,y:e.left.y,width:e.left.width<=0?1e-4:e.left.width,height:e.left.height<=0?1e-4:e.left.height,fill:L.value.gradient.show?`url(#age_pyramid_left_${O.value})`:e.left.color,rx:L.value.borderRadius},null,8,Ze),m(`rect`,{x:e.right.x,y:e.right.y,width:e.right.width<=0?1e-4:e.right.width,height:e.right.height<=0?1e-4:e.right.height,fill:L.value.gradient.underlayer,rx:L.value.borderRadius},null,8,Qe),m(`rect`,{x:e.right.x,y:e.right.y,width:e.right.width<=0?1e-4:e.right.width,height:e.right.height<=0?1e-4:e.right.height,fill:L.value.gradient.show?`url(#age_pyramid_right_${O.value})`:e.right.color,rx:L.value.borderRadius},null,8,$e)]))),256)),(y(!0),p(l,null,x(Y.value,(e,t)=>(y(),p(`g`,null,[R.value.show?(y(),p(l,{key:0},[!R.value.showOnHover||R.value.showOnHover&&A.value===t?(y(),p(`text`,{key:0,x:e.left.x+Math.max(1e-4,e.left.width)-R.value.offsetX-6,y:e.left.y+Math.max(1e-4,e.left.height/2)+L.value.gap/2,"text-anchor":`end`,"dominant-baseline":`middle`,"font-size":R.value.fontSize,"font-weight":R.value.bold?`bold`:`normal`,fill:R.value.color,stroke:F.value.backgroundColor,"paint-order":`stroke fill`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`},C(w(c)(R.value.formatter,e.left.value,w(n)({v:e.left.value}),{datapoint:e.left,seriesIndex:t})),9,et)):f(``,!0)],64)):f(``,!0),R.value.show?(y(),p(l,{key:1},[!R.value.showOnHover||R.value.showOnHover&&A.value===t?(y(),p(`text`,{key:0,x:e.right.x+R.value.offsetX+6,y:e.right.y+Math.max(1e-4,e.right.height/2)+L.value.gap/2,"text-anchor":`start`,"dominant-baseline":`middle`,"font-size":R.value.fontSize,"font-weight":R.value.bold?`bold`:`normal`,fill:R.value.color,stroke:F.value.backgroundColor,"paint-order":`stroke fill`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`},C(w(c)(R.value.formatter,e.right.value,w(n)({v:e.right.value}),{datapoint:e.right,seriesIndex:t})),9,tt)):f(``,!0)],64)):f(``,!0)]))),256)),m(`g`,null,[I.value.sideTitles.show?(y(),p(`g`,nt,[m(`text`,{x:G.value.left,y:I.value.sideTitles.fontSize,fill:I.value.sideTitles.useSideColor?L.value.left.color:I.value.sideTitles.color,"font-size":I.value.sideTitles.fontSize,"text-anchor":`start`,"font-weight":I.value.sideTitles.bold?`bold`:`normal`},C(P.value.translations.female),9,rt),m(`text`,{x:G.value.right,y:I.value.sideTitles.fontSize,fill:I.value.sideTitles.useSideColor?L.value.right.color:I.value.sideTitles.color,"font-size":I.value.sideTitles.fontSize,"text-anchor":`end`,"font-weight":I.value.sideTitles.bold?`bold`:`normal`},C(P.value.translations.male),9,it)])):f(``,!0),I.value.yAxis.show?(y(),p(`g`,at,[(y(!0),p(l,null,x(hn.value,(e,t)=>(y(),p(l,null,[t%I.value.yAxis.showEvery===0&&(!R.value.show||R.value.showOnHover&&A.value===t||A.value===null)||(R.value.show||R.value.showOnHover)&&A.value===t?(y(),p(`text`,{key:0,x:G.value.centerX,y:G.value.top+G.value.height/J.value/2+G.value.height/J.value*t,"dominant-baseline":`middle`,"text-anchor":`middle`,"font-size":I.value.yAxis.fontSize,fill:I.value.yAxis.color,"font-weight":I.value.yAxis.bold?`bold`:`normal`},C(w(c)(I.value.yAxis.formatter,e,w(n)({v:e}),{datapoint:e,seriesIndex:t})),9,ot)):f(``,!0)],64))),256))])):f(``,!0),I.value.xAxis.show?(y(),p(`g`,st,[F.value.layout.grid.show?(y(),p(`g`,ct,[m(`line`,{x1:K.value.right[0].x,x2:K.value.right.at(-1).x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,lt),m(`line`,{x1:K.value.left[0].x,x2:K.value.left.at(-1).x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,ut)])):f(``,!0),(y(!0),p(l,null,x(K.value.right,(e,t)=>(y(),p(`g`,null,[F.value.layout.grid.show?(y(),p(`line`,{key:0,x1:e.x,x2:e.x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2+4,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,dt)):f(``,!0)]))),256)),(y(!0),p(l,null,x(K.value.left,(e,t)=>(y(),p(`g`,null,[F.value.layout.grid.show?(y(),p(`line`,{key:0,x1:e.x,x2:e.x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2+4,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,ft)):f(``,!0)]))),256)),m(`g`,{ref_key:`xAxisLabels`,ref:Lt},[(y(!0),p(l,null,x(K.value.right,(e,t)=>(y(),p(`text`,{class:`vue-ui-age-pyramid-x-axis-label`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"text-anchor":I.value.xAxis.rotation>0?`start`:I.value.xAxis.rotation<0?`end`:`middle`,"font-weight":I.value.xAxis.bold?`bold`:`normal`,transform:`translate(${e.x}, ${G.value.bottom+I.value.xAxis.fontSize*2}) rotate(${I.value.xAxis.rotation})`},C(w(c)(I.value.xAxis.formatter,e.value/I.value.xAxis.scale,w(n)({v:e.value/F.value.layout.dataLabels.xAxis.scale}),{datapoint:e,seriesIndex:t})),9,pt))),256)),(y(!0),p(l,null,x(K.value.left,(e,t)=>(y(),p(`text`,{class:`vue-ui-age-pyramid-x-axis-label`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"text-anchor":I.value.xAxis.rotation>0?`start`:I.value.xAxis.rotation<0?`end`:`middle`,"font-weight":I.value.xAxis.bold?`bold`:`normal`,transform:`translate(${e.x}, ${G.value.bottom+I.value.xAxis.fontSize*2}) rotate(${I.value.xAxis.rotation})`},C(w(c)(I.value.xAxis.formatter,e.value/I.value.xAxis.scale,w(n)({v:e.value/F.value.layout.dataLabels.xAxis.scale}),{datapoint:e,seriesIndex:t})),9,mt))),256))],512),m(`text`,{x:G.value.right,y:W.value.height,"text-anchor":`end`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"font-weight":I.value.xAxis.bold?`bold`:`normal`},C(I.value.xAxis.translation),9,ht)])):f(``,!0)]),(y(!0),p(l,null,x(e.dataset,(e,t)=>(y(),p(`g`,null,[m(`rect`,{x:G.value.left,y:G.value.top+G.value.height/J.value*t-L.value.gap/2,width:G.value.width<=0?1e-4:G.value.width,height:G.value.height/J.value<=0?1e-4:G.value.height/J.value,fill:A.value!==null&&A.value===t?w(a)(F.value.highlighter.color,F.value.highlighter.opacity):`transparent`,onMouseover:n=>Cn(t,e,`pointer`),onMouseleave:n=>xn(t,e),onClick:n=>bn(t,e)},null,40,gt)]))),256)),S(t.$slots,`svg`,{svg:{...W.value,drawingArea:G.value,isPrintingImg:w(nn)||w(rn)||w(Fn),isPrintingSvg:w(In)}},void 0,!0)],46,Je)),t.$slots.hint?(y(),p(`div`,_t,[S(t.$slots,`hint`,v(_({hint:P.value.a11y.translations.keyboardNavigation,isVisible:Vt.value})),void 0,!0)])):f(``,!0)]),t.$slots.watermark?(y(),p(`div`,vt,[S(t.$slots,`watermark`,v(_({isPrinting:w(nn)||w(rn)||w(Fn)||w(In)})),void 0,!0)])):f(``,!0),S(t.$slots,`legend`,{legend:Y.value},void 0,!0),t.$slots.source?(y(),p(`div`,{key:6,ref_key:`source`,ref:Nt,dir:`auto`},[S(t.$slots,`source`,{},void 0,!0)],512)):f(``,!0),h(w(yt),{teleportTo:F.value.tooltip.teleportTo,show:U.value.showTooltip&&k.value,backgroundColor:F.value.tooltip.backgroundColor,color:F.value.tooltip.color,borderRadius:F.value.tooltip.borderRadius,borderColor:F.value.tooltip.borderColor,borderWidth:F.value.tooltip.borderWidth,fontSize:F.value.tooltip.fontSize,backgroundOpacity:F.value.tooltip.backgroundOpacity,position:F.value.tooltip.position,offsetX:F.value.tooltip.offsetX,offsetY:F.value.tooltip.offsetY,parent:j.value,content:At.value,isFullscreen:Z.value,isCustom:F.value.tooltip.customFormat&&typeof F.value.tooltip.customFormat==`function`,smooth:F.value.tooltip.smooth,backdropFilter:F.value.tooltip.backdropFilter,smoothForce:F.value.tooltip.smoothForce,smoothSnapThreshold:F.value.tooltip.smoothSnapThreshold,isA11yMode:N.value===`keyboard`,a11yPosition:Bt.value},{"tooltip-before":E(()=>[S(t.$slots,`tooltip-before`,v(_({...vn.value})),void 0,!0)]),tooltip:E(()=>[S(t.$slots,`tooltip`,v(_({...vn.value})),void 0,!0)]),"tooltip-after":E(()=>[S(t.$slots,`tooltip-after`,v(_({...vn.value})),void 0,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`borderRadius`,`borderColor`,`borderWidth`,`fontSize`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isFullscreen`,`isCustom`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`]),kt.value&&P.value.userOptions.buttons.table?(y(),d(Ve($.value.component),Fe({key:7},$.value.props,{ref_key:`tableUnit`,ref:Rt,onClose:Mn}),Ne({content:E(()=>[(y(),d(w(St),{key:`table_${It.value}`,colNames:X.value.colNames,head:X.value.head,body:X.value.body,config:X.value.config,title:P.value.table.useDialog?``:$.value.title,withCloseButton:!P.value.table.useDialog,isCursorPointer:z.value,onClose:Mn},{th:E(({th:e})=>[Pe(C(e),1)]),td:E(({td:e})=>[Pe(C(e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[P.value.table.useDialog?{name:`title`,fn:E(()=>[Pe(C($.value.title),1)]),key:`0`}:void 0,P.value.table.useDialog?{name:`actions`,fn:E(()=>[m(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:r[0]||=e=>wn(P.value.userOptions.callbacks.csv),style:Re({cursor:z.value?`pointer`:`default`})},[h(w(bt),{name:`fileCsv`,stroke:$.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):f(``,!0),S(t.$slots,`skeleton`,{},()=>[w(Ut)?(y(),d(ue,{key:0})):f(``,!0)],!0)],46,Ge))}},[[`__scopeId`,`data-v-888d4aa4`]]);export{We as n,yt as t};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-D3ZfFSE5.js";import{$ as n,Ft as r,S as i,X as a,_ as ee,at as te,i as o,in as ne,t as re,yt as ie,zt as ae}from"./lib-rPeBMZrn.js";import{n as oe,t as se}from"./BaseScanner-8NdoBs7B.js";import{n as ce}from"./useHints-C-TwxM0Y.js";import{t as le}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as ue}from"./resolveChartConfig-CIhClE5R.js";import{t as de}from"./chartImage-DPGnEuYM.js";import{n as fe}from"./Title-BliHuXfT.js";import{t as pe}from"./useChartExport-BZts4KFb.js";import{n as me,t as he}from"./annotationSlots-RvQBEO9-.js";import{n as ge,t as _e}from"./userOptionsSlots-DYuo-E5m.js";import{t as ve}from"./usePrinter-DVf3YcG5.js";import{c as ye}from"./canvas-lib-22VpOI4_.js";import{t as be}from"./useResponsive-CENUxfEL.js";import{t as xe}from"./useUserOptionState-CXlFnwPv.js";import{t as Se}from"./useChartAccessibility-DOMuYJfm.js";import{t as Ce}from"./Legend-DM0ClX3D.js";import{t as we}from"./vue_ui_bullet-CwVYkpjd.js";import{Fragment as s,Teleport as Te,computed as c,createBlock as l,createCommentVNode as u,createElementBlock as d,createElementVNode as f,createSlots as Ee,createVNode as De,defineAsyncComponent as p,guardReactiveProps as m,normalizeClass as Oe,normalizeProps as h,normalizeStyle as g,onBeforeUnmount as ke,onMounted as Ae,openBlock as _,ref as v,renderList as y,renderSlot as b,toDisplayString as x,toRefs as je,unref as S,watch as Me,withCtx as C}from"vue";var Ne=/* @__PURE__ */ e({default:()=>w}),Pe=[`id`],Fe={key:1,ref:`noTitle`,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},Ie=[`id`],Le=[`xmlns`,`viewBox`,`aria-labelledby`,`aria-describedby`],Re=[`id`],ze=[`id`],Be=[`width`,`height`],Ve={key:1},He=[`x`,`y`,`height`,`width`,`fill`,`stroke`],Ue=[`x`,`y`,`height`,`width`,`rx`,`fill`,`stroke`,`stroke-width`],We=[`x`,`y`,`height`,`width`,`fill`,`stroke`,`stroke-width`],Ge=[`x`,`y`,`font-size`,`font-weight`,`fill`],Ke=[`x`,`y`,`height`,`width`,`rx`,`fill`,`stroke`,`stroke-width`],qe={key:3},Je=[`x`,`y`,`fill`,`font-size`,`font-weight`],Ye={key:4},Xe=[`x1`,`x2`,`y1`,`y2`,`stroke`],Ze={key:4,class:`vue-data-ui-watermark`},Qe=[`id`],$e={key:0,class:`vue-ui-bullet-legend-item`,dir:`auto`},et={style:{"margin-right":`2px`}},w=/*#__PURE__*/ le({__name:`vue-ui-bullet`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:[`copyAlt`],setup(e,{expose:le,emit:Ne}){let w=p(()=>import(`./PackageVersion-u-p5bCcj.js`).then(e=>e.t)),tt=p(()=>import(`./PenAndPaper-r50tK3S4.js`).then(e=>e.t)),nt=p(()=>import(`./UserOptions-Em_JgDXM.js`).then(e=>e.n)),{vue_ui_bullet:rt}=t(),T=e,it=Ne,E=v(null),at=v(null),ot=v(0),st=v(null),ct=v(null),lt=v(0),D=v(null),O=v(null),ut=v(!1),k=c({get:()=>B.value.hasOwnProperty(`value`),set:e=>e}),A=v(R()),j=c(()=>A.value.debug),M=c(()=>A.value.style.chart.target),N=c(()=>A.value.style.chart.segments),P=c(()=>A.value.style.chart),F=c(()=>A.value.userOptions),I=c(()=>B.value.segments?Array.isArray(B.value.segments)?B.value.segments.length?!0:(j.value&&console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
2
|
-
|
|
3
|
-
segments: [
|
|
4
|
-
{
|
|
5
|
-
name: string;
|
|
6
|
-
from: number;
|
|
7
|
-
to: number;
|
|
8
|
-
color?: string;
|
|
9
|
-
},
|
|
10
|
-
{...}
|
|
11
|
-
]
|
|
12
|
-
`),k.value=!1,!1):(j.value&&console.warn(`VueUiBullet: dataset segments must be an array of objects with this datastructure:
|
|
13
|
-
|
|
14
|
-
segments: [
|
|
15
|
-
{
|
|
16
|
-
name: string;
|
|
17
|
-
from: number;
|
|
18
|
-
to: number;
|
|
19
|
-
color?: string;
|
|
20
|
-
},
|
|
21
|
-
{...}
|
|
22
|
-
]
|
|
23
|
-
`),k.value=!1,!1):(j.value&&console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
24
|
-
|
|
25
|
-
segments: [
|
|
26
|
-
{
|
|
27
|
-
name: string;
|
|
28
|
-
from: number;
|
|
29
|
-
to: number;
|
|
30
|
-
color?: string;
|
|
31
|
-
},
|
|
32
|
-
{...}
|
|
33
|
-
]
|
|
34
|
-
`),k.value=!1,!1)),dt=c(()=>{let{top:e,right:t,bottom:n,left:r}=P.value.padding;return{top:e,right:t,bottom:n,left:r}});function ft(){if(ae(B.value)?(te({componentName:`VueUiBullet`,type:`dataset`,debug:j.value}),V.value=!0):I.value?B.value.segments.forEach((e,t)=>{ie({datasetObject:e,requiredAttributes:[`name`,`from`,`to`]}).forEach(e=>{k.value=!1,te({componentName:`VueUiBullet segment`,type:`datasetSerieAttribute`,property:e,index:t,debug:j.value})})}):(k.value=!1,V.value=!0),ae(B.value)||(V.value=A.value.loading),A.value.responsive){let e=ye(()=>{let{width:e,height:t}=be({chart:E.value,title:P.value.title.text?at.value:null,legend:P.value.legend.show?st.value:null,source:ct.value,padding:dt.value}),n=(P.value.legend.show?24:0)||12;requestAnimationFrame(()=>{W.value.width=e,W.value.height=t-n})});D.value&&(O.value&&D.value.unobserve(O.value),D.value.disconnect()),D.value=new ResizeObserver(e),O.value=E.value.parentNode,D.value.observe(O.value)}P.value.animation.show&&!z.value&&St(B.value.value||0)}Ae(()=>{ut.value=!0,ft()});let L=v(a());function R(){return ue(T.config,rt,we)}ce({config:()=>A.value,dataset:()=>T.dataset,component:`VueUiBullet`,rules:[{test:e=>e?.segments&&e?.segments.length>8,message:[`👀 The number of target segments is > 8, which can make the chart hard to read and a large legend. Consider:`,``,`▶️ Using broader segments.`]}]});let pt=c(()=>A.value.userOptions.useCursorPointer),mt=c(()=>ne({defaultConfig:{userOptions:{show:!1},style:{chart:{backgroundColor:`#99999930`,segments:{dataLabels:{show:!1},ticks:{stroke:`#8A8A8A`}},valueBar:{label:{show:!1}}}}},userConfig:A.value.skeletonConfig??{}})),{loading:z,FINAL_DATASET:B,manualLoading:V}=oe({...je(T),FINAL_CONFIG:A,prepareConfig:R,skeletonDataset:T.config?.skeletonDataset??{value:100,target:100,segments:[{name:``,from:0,to:33,color:`#AAAAAA`},{name:``,from:33,to:66,color:`#BABABA`},{name:``,from:66,to:100,color:`#CACACA`}]},skeletonConfig:ne({defaultConfig:A.value,userConfig:mt.value})}),{userOptionsVisible:H,setUserOptionsVisibility:ht,keepUserOptionState:gt}=xe({config:A.value}),{svgRef:U}=Se({config:P.value.title}),W=v({width:P.value.width,height:P.value.height}),_t=c(()=>W.value.width),vt=c(()=>W.value.height);Me(()=>T.config,e=>{z.value||(A.value=R()),H.value=!A.value.userOptions.showOnChartHover,W.value.width=P.value.width,W.value.height=P.value.height,ft(),ot.value+=1},{deep:!0});let G=c(()=>{let e=vt.value,t=_t.value,n=P.value.padding.left,r=t-P.value.padding.right,i=P.value.padding.top,a=e-P.value.padding.bottom;return{height:Math.max(.001,e),width:Math.max(.001,t),left:n,right:r,top:i,bottom:a,chartWidth:Math.max(.001,r-n),chartHeight:Math.max(.001,a-i)}}),yt=c(()=>{if(!I.value)return[];let e=[];for(let t=0;t<B.value.segments.length;t+=1)e.push(r(N.value.baseColor,t/B.value.segments.length));return e}),K=c(()=>I.value?{min:Math.min(...B.value.segments.map(e=>e.from)),max:Math.max(...B.value.segments.map(e=>e.to))}:{min:0,max:1}),q=v(bt());Me(()=>B.value,e=>{e.hasOwnProperty(`value`)&&(V.value=!1),P.value.animation.show&&!z.value?St(e.value||0):q.value=e.value||0},{deep:!0});function bt(){return P.value.animation.show&&!z.value?K.value.min:B.value.value||0}let xt=v(null);function St(e){let t=Math.abs(e-q.value)/P.value.animation.animationFrames;function n(){q.value<e?q.value=Math.min(q.value+t,e):q.value>e&&(q.value=Math.max(q.value-t,e)),q.value!==e&&(xt.value=requestAnimationFrame(n))}n()}ke(()=>{cancelAnimationFrame(xt.value)});let J=c(()=>{if(!I.value)return[];let e=ee(K.value.min,K.value.max,N.value.ticks.divisions),t=e.min>=0?0:Math.abs(e.min);return{scale:e,target:{x:G.value.left+(B.value.target+t)/(e.max+t)*G.value.chartWidth-M.value.width/2},value:{width:(q.value+t)/(e.max+t)*G.value.chartWidth},ticks:e.ticks.map(n=>({value:n,y:G.value.bottom+N.value.dataLabels.fontSize+3+N.value.dataLabels.offsetY,x:G.value.left+(n+t)/(e.max+t)*G.value.chartWidth})),chunks:B.value.segments.map((n,r)=>({...n,color:n.color?i(n.color):yt.value[r],x:G.value.left+G.value.chartWidth*((n.from+t)/(e.max+t)),y:G.value.top,height:G.value.chartHeight,width:G.value.chartWidth*(Math.abs(n.to-n.from)/(e.max+t))}))}}),Y=c(()=>!J.value||!J.value.chunks||!J.value.chunks.length?[]:J.value.chunks.map(e=>{let t=`${o(N.value.dataLabels.formatter,e.from,n({p:N.value.dataLabels.prefix,v:e.from,s:N.value.dataLabels.suffix,r:N.value.dataLabels.rounding}))} — ${o(N.value.dataLabels.formatter,e.to,n({p:N.value.dataLabels.prefix,v:e.to,s:N.value.dataLabels.suffix,r:N.value.dataLabels.rounding}))}`;return{...e,shape:`square`,value:t,display:`${e.name}: ${t}`}})),Ct=c(()=>({cy:`bullet-div-legend`,backgroundColor:`transparent`,color:P.value.legend.color,fontSize:P.value.legend.fontSize,paddingBottom:6,fontWeight:P.value.legend.bold?`bold`:``})),{isPrinting:X,isImaging:Z,generatePdf:wt,generateImage:Tt}=ve({elementId:`bullet_${L.value}`,fileName:P.value.title.text||`vue-ui-bullet`,options:A.value.userOptions.print}),Et=c(()=>A.value.userOptions.show&&!P.value.title.text),Q=v(!1);function Dt(e){Q.value=e,lt.value+=1}function Ot(){return J.value}let $=v(!1);function kt(){$.value=!$.value}let At=de(E,()=>P.value.title.text),jt=c(()=>Y.value.map(e=>({...e,name:e.display}))),Mt=c(()=>P.value.backgroundColor),Nt=c(()=>P.value.legend),Pt=c(()=>P.value.title),{isCallbackImaging:Ft,isCallbackSvg:It,generateSvg:Lt,onGenerateImage:Rt}=pe({svg:U,title:Pt,legend:Nt,legendItems:jt,backgroundColor:Mt,getSvgCallback:()=>A.value.userOptions.callbacks.svg,generateImage:Tt});async function zt(){it(`copyAlt`,{config:A.value,dataset:B.value}),A.value.userOptions.callbacks.altCopy?await Promise.resolve(A.value.userOptions.callbacks.altCopy({config:A.value,dataset:B.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}return le({getData:Ot,getImage:At,generatePdf:wt,generateImage:Tt,generateSvg:Lt,toggleAnnotator:kt,toggleFullscreen:Dt,copyAlt:zt}),(e,t)=>(_(),d(`div`,{ref_key:`bulletChart`,ref:E,class:Oe(`vue-data-ui-component vue-ui-bullet ${Q.value?`vue-data-ui-wrapper-fullscreen`:``}`),style:g(`font-family:${A.value.style.fontFamily};width:100%;background:${P.value.backgroundColor};${A.value.responsive?`height:100%`:``}`),id:`bullet_${L.value}`,onMouseenter:t[0]||=()=>S(ht)(!0),onMouseleave:t[1]||=()=>S(ht)(!1)},[F.value.buttons.annotator?(_(),l(S(tt),{key:0,showGroupActions:F.value.annotator?.showGroupActions??!0,svgRef:S(U),backgroundColor:P.value.backgroundColor,color:P.value.color,active:$.value,isCursorPointer:pt.value,palette:F.value.annotatorPalette,onClose:kt},Ee({_:2},[y(S(he),t=>({name:t,fn:C(n=>[b(e.$slots,t,h(m(S(me)(t,n))),void 0,!0)])}))]),1032,[`showGroupActions`,`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):u(``,!0),Et.value?(_(),d(`div`,Fe,null,512)):u(``,!0),P.value.title.text?(_(),d(`div`,{key:2,ref_key:`chartTitle`,ref:at,style:`width:100%;background:transparent;`},[(_(),l(fe,{lineHeight:`1.3rem`,key:`title_${ot.value}`,config:{title:{cy:`bullet-div-title`,...P.value.title},subtitle:{cy:`bullet-div-subtitle`,...P.value.title.subtitle}}},null,8,[`config`]))],512)):u(``,!0),f(`div`,{id:`legend-top-${L.value}`},null,8,Ie),F.value.show&&k.value&&(S(gt)||S(H))?(_(),l(S(nt),{key:3,ref:`details`,backgroundColor:P.value.backgroundColor,color:P.value.color,isPrinting:S(X),isImaging:S(Z),uid:L.value,hasTooltip:!1,hasPdf:F.value.buttons.pdf,hasImg:F.value.buttons.img,hasSvg:F.value.buttons.svg,hasXls:!1,hasTable:!1,hasLabel:!1,hasFullscreen:F.value.buttons.fullscreen,hasAltCopy:F.value.buttons.altCopy,isFullscreen:Q.value,chartElement:E.value,position:F.value.position,titles:{...F.value.buttonTitles},hasAnnotator:F.value.buttons.annotator,isAnnotation:$.value,callbacks:F.value.callbacks,printScale:F.value.print.scale,isCursorPointer:pt.value,onToggleFullscreen:Dt,onGeneratePdf:S(wt),onGenerateImage:S(Rt),onGenerateSvg:S(Lt),onToggleAnnotator:kt,onCopyAlt:zt,style:g({visibility:S(gt)?S(H)?`visible`:`hidden`:`visible`})},Ee({_:2},[y(S(ge)(e.$slots,`menuIcon optionPdf optionImg optionSvg optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:C(n=>[b(e.$slots,t,h(m(S(_e)(t,n))),void 0,!0)])}))]),1032,[`backgroundColor`,`color`,`isPrinting`,`isImaging`,`uid`,`hasPdf`,`hasImg`,`hasSvg`,`hasFullscreen`,`hasAltCopy`,`isFullscreen`,`chartElement`,`position`,`titles`,`hasAnnotator`,`isAnnotation`,`callbacks`,`printScale`,`isCursorPointer`,`onGeneratePdf`,`onGenerateImage`,`onGenerateSvg`,`style`])):u(``,!0),(_(),d(`svg`,{ref_key:`svgRef`,ref:U,xmlns:S(re),class:Oe({"vue-data-ui-fullscreen--on":Q.value,"vue-data-ui-fulscreen--off":!Q.value,"vue-ui-bullet-svg":!0}),viewBox:`0 0 ${G.value.width} ${G.value.height}`,style:g(`width: 100%; overflow: visible; background:transparent;color:${P.value.color}`),"aria-labelledby":`bullet-svg-title-${L.value}`,"aria-describedby":`bullet-svg-desc-${L.value}`},[De(S(w)),b(e.$slots,`svg-underlayer`,{svg:{...G.value,isPrintingImg:S(X)||S(Z)||S(Ft),isPrintingSvg:S(It)}},void 0,!0),f(`title`,{id:`bullet-svg-title-${L.value}`},x(P.value.title.text||`Bullet chart`),9,Re),f(`desc`,{id:`bullet-svg-desc-${L.value}`},` Value: `+x(q.value)+`, Target: `+x(J.value.target?.value),9,ze),e.$slots[`chart-background`]?(_(),d(`foreignObject`,{key:0,x:0,y:0,width:G.value.width,height:G.value.height,style:{pointerEvents:`none`}},[b(e.$slots,`chart-background`,{},void 0,!0)],8,Be)):u(``,!0),I.value?(_(),d(`g`,Ve,[(_(!0),d(s,null,y(J.value.chunks,e=>(_(),d(`rect`,{x:e.x,y:e.y,height:e.height,width:e.width,fill:e.color,"stroke-width":1,stroke:P.value.backgroundColor,style:{transition:`x 0.3s ease-in-out, width 0.3s ease-in-out`}},null,8,He))),256)),!M.value.onTop&&M.value.show?(_(),d(`rect`,{key:0,x:J.value.target.x,y:G.value.top+(G.value.chartHeight-G.value.chartHeight*M.value.heightRatio)/2,height:G.value.chartHeight*M.value.heightRatio,width:M.value.width,rx:M.value.rounded?M.value.width/2:0,fill:M.value.color,stroke:M.value.stroke,"stroke-width":M.value.strokeWidth},null,8,Ue)):u(``,!0),f(`rect`,{x:G.value.left,y:G.value.top+(G.value.chartHeight-G.value.chartHeight*P.value.valueBar.heightRatio)/2,height:G.value.chartHeight*P.value.valueBar.heightRatio,width:J.value.value.width,fill:P.value.valueBar.color,stroke:P.value.valueBar.stroke,"stroke-width":P.value.valueBar.strokeWidth},null,8,We),P.value.valueBar.label.show?(_(),d(`text`,{key:1,x:G.value.left+J.value.value.width,y:G.value.top-6+P.value.valueBar.label.offsetY,"font-size":P.value.valueBar.label.fontSize,"font-weight":P.value.valueBar.label.bold?`bold`:`normal`,fill:P.value.valueBar.label.color,"text-anchor":`middle`},x(S(o)(N.value.dataLabels.formatter,q.value,S(n)({p:N.value.dataLabels.prefix,v:q.value,s:N.value.dataLabels.suffix,r:N.value.dataLabels.rounding}))),9,Ge)):u(``,!0),M.value.onTop&&M.value.show?(_(),d(`rect`,{key:2,x:J.value.target.x,y:G.value.top+(G.value.chartHeight-G.value.chartHeight*M.value.heightRatio)/2,height:G.value.chartHeight*M.value.heightRatio,width:M.value.width,rx:M.value.rounded?M.value.width/2:0,fill:M.value.color,stroke:M.value.stroke,"stroke-width":M.value.strokeWidth,style:{transition:`x 0.3s ease-in-out`}},null,8,Ke)):u(``,!0),N.value.dataLabels.show?(_(),d(`g`,qe,[(_(!0),d(s,null,y(J.value.ticks,e=>(_(),d(`text`,{x:e.x,y:e.y,"text-anchor":`middle`,fill:N.value.dataLabels.color,"font-size":N.value.dataLabels.fontSize+`px`,"font-weight":N.value.dataLabels.bold?`bold`:`normal`},x(S(o)(N.value.dataLabels.formatter,e.value,S(n)({p:N.value.dataLabels.prefix,v:e.value,s:N.value.dataLabels.suffix,r:N.value.dataLabels.rounding}))),9,Je))),256))])):u(``,!0),N.value.dataLabels.show&&N.value.ticks.show?(_(),d(`g`,Ye,[(_(!0),d(s,null,y(J.value.ticks,e=>(_(),d(`line`,{x1:e.x,x2:e.x,y1:G.value.bottom,y2:G.value.bottom+3,stroke:N.value.ticks.stroke,"stroke-width":1,"stroke-linecap":`round`},null,8,Xe))),256))])):u(``,!0)])):u(``,!0),b(e.$slots,`svg`,{svg:{...G.value,isPrintingImg:S(X)||S(Z)||S(Ft),isPrintingSvg:S(It)}},void 0,!0)],14,Le)),e.$slots.watermark?(_(),d(`div`,Ze,[b(e.$slots,`watermark`,h(m({isPrinting:S(X)||S(Z)||S(Ft)||S(It)})),void 0,!0)])):u(``,!0),f(`div`,{id:`legend-bottom-${L.value}`},null,8,Qe),ut.value&&(P.value.legend.show||e.$slots.legend)?(_(),l(Te,{key:5,to:P.value.legend.position===`top`?`#legend-top-${L.value}`:`#legend-bottom-${L.value}`},[f(`div`,{ref_key:`chartLegend`,ref:st},[b(e.$slots,`legend`,{legend:Y.value},()=>[P.value.legend.show?(_(),l(Ce,{key:0,clickable:!1,legendSet:Y.value,config:Ct.value},{item:C(({legend:e})=>[S(z)?u(``,!0):(_(),d(`div`,$e,[f(`span`,et,x(e.name)+`:`,1),f(`span`,null,x(e.value),1)]))]),_:1},8,[`legendSet`,`config`])):u(``,!0)],!0)],512)],8,[`to`])):u(``,!0),e.$slots.source?(_(),d(`div`,{key:6,ref_key:`source`,ref:ct,dir:`auto`},[b(e.$slots,`source`,{},void 0,!0)],512)):u(``,!0),b(e.$slots,`skeleton`,{},()=>[S(z)?(_(),l(se,{key:0})):u(``,!0)],!0)],46,Pe))}},[[`__scopeId`,`data-v-5f0c1b8a`]]);export{Ne as n,w as t};
|