@kong-ui-public/analytics-chart 10.16.8 → 10.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zoom-timerange-container[data-v-4fa681cf]{line-height:16px;line-height:var(--kui-line-height-20, 16px);margin:0 4px;margin:0 var(--kui-space-20, 4px)}.zoom-timerange-container .zoom-timerange-details[data-v-4fa681cf]{display:grid;font-size:12px;font-size:var(--kui-font-size-20, 12px);gap:2px;gap:var(--kui-space-10, 2px);grid-template-columns:35px 1fr;margin:6px 2px;margin:var(--kui-space-30, 6px) var(--kui-space-10, 2px)}.zoom-timerange-container .zoom-timerange-details .label[data-v-4fa681cf]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e)}.zoom-actions-container[data-v-179abac7]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;flex-direction:column;line-height:16px;line-height:var(--kui-line-height-20, 16px)}.zoom-actions-container .zoom-actions-heading[data-v-179abac7]{align-items:top;display:flex}.zoom-actions-container .zoom-actions-heading .zoom-actions-close-icon[data-v-179abac7]{cursor:pointer;margin-right:6px;margin-right:var(--kui-space-30, 6px);margin-top:6px;margin-top:var(--kui-space-30, 6px)}.zoom-actions-container .zoom-actions-heading-divider[data-v-179abac7]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);margin:0 4px;margin:0 var(--kui-space-20, 4px)}.zoom-actions-container .zoom-action-select .zoom-action-item[data-v-179abac7]:first-child{margin-top:4px;margin-top:var(--kui-space-20, 4px)}.zoom-actions-container .zoom-action-item[data-v-179abac7]{color:#000933;color:var(--kui-color-text, #000933);cursor:pointer;font-size:12px;font-size:var(--kui-font-size-20, 12px);padding:4px 8px;padding:var(--kui-space-20, 4px) var(--kui-space-40, 8px);transition:background-color .2s}.zoom-actions-container .zoom-action-item[data-v-179abac7]:last-of-type{border-bottom-left-radius:4px;border-bottom-left-radius:var(--kui-border-radius-20, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--kui-border-radius-20, 4px);margin-bottom:4px;margin-bottom:var(--kui-space-20, 4px)}.zoom-actions-container .zoom-action-item .zoom-action-link[data-v-179abac7]{color:#000933;color:var(--kui-color-text, #000933);display:block;text-decoration:none}.zoom-actions-container .zoom-action-item.disabled[data-v-179abac7]{color:#afb7c5;color:var(--kui-color-text-disabled, #afb7c5);pointer-events:none}.zoom-actions-container .zoom-action-item.disabled a[data-v-179abac7]{color:#afb7c5;color:var(--kui-color-text-disabled, #afb7c5)}.zoom-actions-container .zoom-action-item[data-v-179abac7]:hover{background-color:#e0e4ea;background-color:var(--kui-color-background-neutral-weaker, #e0e4ea)}.locked[data-v-b449481c]{cursor:move}.tooltip-container[data-v-b449481c]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);box-shadow:0 5px 15px #0000001f,0 5px 10px #0000003d;max-width:425px;position:fixed;transition:all .2s cubic-bezier(.25,.8,.25,1);z-index:1}.tooltip-container .tooltip-title[data-v-b449481c]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);display:flex;flex-direction:column;margin:6px 6px 0;margin:var(--kui-space-30, 6px) var(--kui-space-30, 6px) 0 var(--kui-space-30, 6px);min-height:24px;padding-bottom:4px;padding-bottom:var(--kui-space-20, 4px)}.tooltip-container .tooltip-title .title[data-v-b449481c]{display:flex;font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);justify-content:space-between}.tooltip-container .tooltip-title .title .drag-icon[data-v-b449481c]{margin-top:6px;margin-top:var(--kui-space-30, 6px);right:0;top:0}.tooltip-container .tooltip-title .subtitle[data-v-b449481c]{display:flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);gap:8px;gap:var(--kui-space-40, 8px);justify-content:space-between;margin-top:6px;margin-top:var(--kui-space-30, 6px)}.tooltip-container .tooltip[data-v-b449481c]{list-style:none;margin:6px;margin:var(--kui-space-30, 6px);max-height:300px;min-width:250px;overflow-y:auto;overflow-y:var(--kui-space-auto, auto);padding-left:0;padding-left:var(--kui-space-0, 0px)}.tooltip-container .tooltip[data-v-b449481c]{-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-color:var(--kui-color-background-disabled, #e0e4ea) var(--kui-color-background-transparent, transparent);scrollbar-width:auto}.tooltip-container .tooltip[data-v-b449481c] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.tooltip-container .tooltip[data-v-b449481c] ::-webkit-scrollbar-track{background:transparent}.tooltip-container .tooltip[data-v-b449481c] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.tooltip-container .tooltip li[data-v-b449481c]{align-items:center;display:flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:20px;line-height:var(--kui-line-height-30, 20px)}.tooltip-container .tooltip .display-label[data-v-b449481c]{flex:1;max-width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tooltip-container .tooltip .display-label.empty[data-v-b449481c]{font-style:italic}.tooltip-container .tooltip .display-value[data-v-b449481c]{margin-left:auto;margin-left:var(--kui-space-auto, auto);padding-left:8px;padding-left:var(--kui-space-40, 8px);white-space:nowrap}.tooltip-container .tooltip .square-marker[data-v-b449481c]{display:inline-flex;flex-direction:row;height:12px;margin-right:6px;margin-right:var(--kui-space-30, 6px);width:12px}.no-select{-webkit-user-select:none;user-select:none}.legend-container[data-v-27d1c6d3]{box-sizing:border-box;display:flex;flex-grow:1;flex-wrap:wrap;gap:8px 9px;justify-content:center;margin:0;max-height:inherit;overflow:auto;-ms-overflow-style:thin;padding:8px calc(5% + 4px);padding:var(--kui-space-40, 8px) calc(5% + var(--kui-space-20, 4px));width:100%}.legend-container[data-v-27d1c6d3]{-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-color:var(--kui-color-background-disabled, #e0e4ea) var(--kui-color-background-transparent, transparent);scrollbar-width:auto}.legend-container[data-v-27d1c6d3] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.legend-container[data-v-27d1c6d3] ::-webkit-scrollbar-track{background:transparent}.legend-container[data-v-27d1c6d3] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.legend-container li[data-v-27d1c6d3]{align-items:center;cursor:pointer;display:flex;line-height:1;margin:0}.legend-container li .square-marker[data-v-27d1c6d3]{height:8px;margin:0;margin:var(--kui-space-0, 0px);margin-right:6px;margin-right:var(--kui-space-30, 6px);width:8px}.legend-container li .label[data-v-27d1c6d3]{font-size:12px;font-size:var(--kui-font-size-20, 12px);white-space:nowrap}.legend-container li .label.truncate-label[data-v-27d1c6d3]{max-width:20ch;overflow:hidden;text-overflow:ellipsis}.legend-container li .sub-label[data-v-27d1c6d3]{font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);word-break:none}.legend-container li .strike-through[data-v-27d1c6d3]{text-decoration:line-through}.legend-container li .empty[data-v-27d1c6d3]{font-style:italic}.legend-container li .tooltip-content[data-v-27d1c6d3]{max-width:40ch}.chart-parent[data-v-60e5a1a7]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-60e5a1a7]{flex-direction:column}.chart-parent.column .chart-container[data-v-60e5a1a7]{flex-shrink:0;height:calc(100% - 49px);height:calc(100% - calc(var(--kui-space-110, 48px) + 1px));width:100%}.chart-parent .chart-container[data-v-60e5a1a7]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-60e5a1a7]{height:calc(100% - 80px);height:calc(100% - var(--kui-space-140, 80px))}.chart-container[data-v-60e5a1a7]{overflow:auto}.chart-container[data-v-60e5a1a7]{-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-color:var(--kui-color-background-disabled, #e0e4ea) var(--kui-color-background-transparent, transparent);scrollbar-width:auto}.chart-container[data-v-60e5a1a7] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.chart-container[data-v-60e5a1a7] ::-webkit-scrollbar-track{background:transparent}.chart-container[data-v-60e5a1a7] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.chart-container .chart-body[data-v-60e5a1a7]{height:100%}.chart-container[data-v-60e5a1a7]::-webkit-scrollbar-track{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.chart-container[data-v-60e5a1a7]::-webkit-scrollbar{width:10px}.chart-container[data-v-60e5a1a7]::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.axis[data-v-60e5a1a7]{left:0;pointer-events:none;position:absolute;top:0;z-index:99}.axis-tooltip[data-v-60e5a1a7]{background-color:#000933;background-color:var(--kui-color-background-inverse, #000933);border:none;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);color:#fff;color:var(--kui-color-text-inverse, #ffffff);max-width:40ch;padding:4px 8px;padding:var(--kui-space-20, 4px) var(--kui-space-40, 8px);position:absolute;width:max-content;z-index:100}.axis-tooltip .axis-tooltip-content[data-v-60e5a1a7]{color:#fff;color:var(--kui-color-text-inverse, #ffffff);font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif);font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);line-height:16px;line-height:var(--kui-line-height-20, 16px)}.tooltip-boundary[data-v-60e5a1a7]{height:100%;left:0;position:relative;top:0;width:100%}.chart-parent[data-v-d44955a3]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-d44955a3]{flex-direction:column}.chart-parent.column .chart-container[data-v-d44955a3]{flex-shrink:0;height:calc(100% - 49px);height:calc(100% - calc(var(--kui-space-110, 48px) + 1px));width:100%}.chart-parent .chart-container[data-v-d44955a3]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-d44955a3]{height:calc(100% - 80px);height:calc(100% - var(--kui-space-140, 80px))}.chart-center-metric[data-v-d44955a3]{align-items:center;display:flex;flex-direction:column;justify-content:center;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.chart-center-metric .chart-center-total[data-v-d44955a3]{color:#000933;color:var(--kui-color-text, #000933);font-size:24px;font-size:var(--kui-font-size-70, 24px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:1.1}.chart-center-metric .chart-center-unit[data-v-d44955a3]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);margin-top:2px;margin-top:var(--kui-space-10, 2px)}.chart-parent[data-v-ac6e8bbc]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-ac6e8bbc]{flex-direction:column}.chart-parent.column .chart-container[data-v-ac6e8bbc]{flex-shrink:0;height:calc(100% - 49px);height:calc(100% - calc(var(--kui-space-110, 48px) + 1px));width:100%}.chart-parent .chart-container[data-v-ac6e8bbc]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-ac6e8bbc]{height:calc(100% - 80px);height:calc(100% - var(--kui-space-140, 80px))}.analytics-chart-shell[data-v-0f65cbd1],.simple-chart-shell[data-v-0f65cbd1]{border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;flex-direction:column}.analytics-chart-shell .chart-empty-state[data-v-0f65cbd1],.simple-chart-shell .chart-empty-state[data-v-0f65cbd1]{display:flex;flex-direction:column;height:100%;justify-content:center}.analytics-chart-shell[data-v-0f65cbd1]{height:100%;position:relative;width:100%}.analytics-chart-shell .analytics-chart-parent[data-v-0f65cbd1]{height:inherit;width:inherit}.analytics-chart-shell .chart-empty-state[data-v-0f65cbd1]{padding:20px 0 16px;padding:var(--kui-space-70, 20px) var(--kui-space-0, 0px) var(--kui-space-60, 16px) var(--kui-space-0, 0px)}.analytics-chart-shell .chart-truncation-warning[data-v-0f65cbd1]{align-items:center;background-color:#fff;display:flex;justify-content:flex-start;left:0;position:absolute;top:0;transform:translate(-4px);z-index:999}.chart-parent[data-v-c461b83f]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-c461b83f]{flex-direction:column}.chart-parent.column .chart-container[data-v-c461b83f]{flex-shrink:0;height:calc(100% - 49px);height:calc(100% - calc(var(--kui-space-110, 48px) + 1px));width:100%}.chart-parent .chart-container[data-v-c461b83f]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-c461b83f]{height:calc(100% - 80px);height:calc(100% - var(--kui-space-140, 80px))}.chart-parent[data-v-c461b83f]{height:auto;margin:0;margin:var(--kui-space-0, 0px);padding:0;padding:var(--kui-space-0, 0px);width:auto}.chart-parent .chart-container[data-v-c461b83f]{margin:0;margin:var(--kui-space-0, 0px);max-height:100px;max-width:100px;padding:0;padding:var(--kui-space-0, 0px)}.chart-parent .chart-totals-flex[data-v-c461b83f]{align-items:center;display:flex;flex-direction:column;height:100px;justify-content:center;padding:24px 0 0;padding:var(--kui-space-80, 24px) var(--kui-space-0, 0px) var(--kui-space-0, 0px);position:absolute;width:100px;z-index:2}.chart-parent .chart-totals-flex .metric-large[data-v-c461b83f]{font-size:20px;font-size:var(--kui-font-size-60, 20px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);line-height:28px;line-height:var(--kui-line-height-50, 28px)}.chart-parent .chart-totals-flex .metric-small[data-v-c461b83f]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:10px;font-size:var(--kui-font-size-10, 10px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:12px;line-height:var(--kui-line-height-10, 12px)}.chart-parent[data-v-645383c7]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-645383c7]{flex-direction:column}.chart-parent.column .chart-container[data-v-645383c7]{flex-shrink:0;height:calc(100% - 49px);height:calc(100% - calc(var(--kui-space-110, 48px) + 1px));width:100%}.chart-parent .chart-container[data-v-645383c7]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-645383c7]{height:calc(100% - 80px);height:calc(100% - var(--kui-space-140, 80px))}.chart-parent[data-v-645383c7]{container-type:inline-size}.chart-parent.align-left[data-v-645383c7]{justify-content:flex-start}.chart-parent.align-center[data-v-645383c7]{justify-content:center}.chart-parent.align-right[data-v-645383c7]{justify-content:flex-end}.chart-parent.align-between[data-v-645383c7]{justify-content:space-between}.chart-parent.align-around[data-v-645383c7]{justify-content:space-around}.chart-parent.align-evenly[data-v-645383c7]{justify-content:space-evenly}.chart-parent .single-value-error[data-v-645383c7] .empty-state-title{font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);margin:0;margin:var(--kui-space-0, 0px)}.chart-parent .single-value-wrapper[data-v-645383c7]{display:flex;flex-direction:column;gap:12px;margin-top:-4px}.chart-parent .single-value-wrapper .single-value-metric[data-v-645383c7]{align-items:center;display:flex;flex-direction:column}.chart-parent .single-value-wrapper .single-value-metric-name[data-v-645383c7]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:10px;font-size:var(--kui-font-size-10, 10px);line-height:12px;line-height:var(--kui-line-height-10, 12px)}.chart-parent .single-value-wrapper .single-value[data-v-645383c7]{color:#000933;color:var(--kui-color-text, #000933);font-size:24px;font-size:var(--kui-font-size-70, 24px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:36px;line-height:var(--kui-line-height-70, 36px)}.chart-parent .single-value-wrapper .single-value-unit[data-v-645383c7]{color:#000933;color:var(--kui-color-text, #000933);font-size:20px;font-size:var(--kui-font-size-60, 20px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:32px;line-height:var(--kui-line-height-60, 32px)}.chart-parent .single-value-wrapper .single-value-trend[data-v-645383c7]{align-items:center;column-gap:8px;column-gap:var(--kui-space-40, 8px);display:flex}.chart-parent .single-value-wrapper .single-value-trend .trend-change[data-v-645383c7]{align-items:center;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;flex-direction:row;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);padding:4px 8px;padding:var(--kui-space-20, 4px) var(--kui-space-40, 8px)}.chart-parent .single-value-wrapper .single-value-trend .trend-change .kui-icon[data-v-645383c7]{margin-right:4px;margin-right:var(--kui-space-20, 4px)}.chart-parent .single-value-wrapper .single-value-trend .trend-change.positive[data-v-645383c7]{background-color:#ecfffb;background-color:var(--kui-color-background-success-weakest, #ecfffb);color:#007d60;color:var(--kui-color-text-success, #007d60)}.chart-parent .single-value-wrapper .single-value-trend .trend-change.negative[data-v-645383c7]{background-color:#ffe5e5;background-color:var(--kui-color-background-danger-weakest, #ffe5e5);color:#ad000e;color:var(--kui-color-text-danger-strong, #ad000e)}.chart-parent .single-value-wrapper .single-value-trend .trend-change.neutral[data-v-645383c7]{background-color:#e0e4ea;background-color:var(--kui-color-background-neutral-weaker, #e0e4ea);color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e)}.chart-parent .single-value-wrapper .single-value-trend .single-value-trend-range[data-v-645383c7]{color:#000933;color:var(--kui-color-text, #000933);font-size:12px;font-size:var(--kui-font-size-20, 12px)}@container (min-width: 300px){.chart-parent .single-value-wrapper .single-value[data-v-645383c7]{font-size:48px;font-size:var(--kui-font-size-100, 48px);line-height:56px;line-height:var(--kui-line-height-100, 56px)}.chart-parent .single-value-wrapper .single-value-unit[data-v-645383c7]{font-size:40px;font-size:var(--kui-font-size-90, 40px);line-height:48px;line-height:var(--kui-line-height-90, 48px)}.chart-parent .single-value-wrapper .single-value-metric-name[data-v-645383c7]{font-size:10px;font-size:var(--kui-font-size-10, 10px);line-height:12px;line-height:var(--kui-line-height-10, 12px)}}@container (min-width: 500px){.chart-parent .single-value-wrapper .single-value[data-v-645383c7]{font-size:56px;line-height:64px}.chart-parent .single-value-wrapper .single-value-unit[data-v-645383c7]{font-size:48px;font-size:var(--kui-font-size-100, 48px);line-height:56px;line-height:var(--kui-line-height-100, 56px)}.chart-parent .single-value-wrapper .single-value-metric-name[data-v-645383c7]{font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px)}}@container (min-width: 700px){.chart-parent .single-value-wrapper .single-value[data-v-645383c7]{font-size:64px;line-height:72px}.chart-parent .single-value-wrapper .single-value-unit[data-v-645383c7]{font-size:56px;line-height:64px}.chart-parent .single-value-wrapper .single-value-metric-name[data-v-645383c7]{font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px)}}@container (min-width: 1000px){.chart-parent .single-value-wrapper .single-value[data-v-645383c7]{font-size:80px;line-height:88px}.chart-parent .single-value-wrapper .single-value-unit[data-v-645383c7]{font-size:64px;line-height:72px}.chart-parent .single-value-wrapper .single-value-metric-name[data-v-645383c7]{font-size:16px;font-size:var(--kui-font-size-40, 16px);line-height:24px;line-height:var(--kui-line-height-40, 24px)}}@container (min-width: 1200px){.chart-parent .single-value-wrapper .single-value[data-v-645383c7]{font-size:96px;line-height:104px}.chart-parent .single-value-wrapper .single-value-unit[data-v-645383c7]{font-size:80px;line-height:88px}.chart-parent .single-value-wrapper .single-value-metric-name[data-v-645383c7]{font-size:16px;font-size:var(--kui-font-size-40, 16px);line-height:24px;line-height:var(--kui-line-height-40, 24px)}}.analytics-chart-shell[data-v-56837d34],.simple-chart-shell[data-v-56837d34]{border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;flex-direction:column}.analytics-chart-shell .chart-empty-state[data-v-56837d34],.simple-chart-shell .chart-empty-state[data-v-56837d34]{display:flex;flex-direction:column;height:100%;justify-content:center}.simple-chart-shell[data-v-56837d34]{margin:0;margin:var(--kui-space-0, 0px);padding:0;padding:var(--kui-space-0, 0px);width:100%}.simple-chart-shell .chart-empty-state[data-v-56837d34]{display:flex;flex-direction:column;justify-content:center}.simple-chart-shell .chart-empty-state[data-v-56837d34] .empty-state-title{font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-top-n-table[data-v-f05687f1]{border:none!important;max-height:100%;padding:0!important;width:100%}.kong-ui-public-top-n-table .top-n-card-description[data-v-f05687f1]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-size:var(--kui-font-size-20, 12px);text-align:right}.kong-ui-public-top-n-table[data-v-f05687f1] .k-card-actions{align-self:baseline;display:flex;line-height:22px}.kong-ui-public-top-n-table[data-v-f05687f1] .card-content{overflow-y:auto}.kong-ui-public-top-n-table[data-v-f05687f1] .card-content{-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-color:var(--kui-color-background-disabled, #e0e4ea) var(--kui-color-background-transparent, transparent);scrollbar-width:auto}.kong-ui-public-top-n-table[data-v-f05687f1] .card-content ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.kong-ui-public-top-n-table[data-v-f05687f1] .card-content ::-webkit-scrollbar-track{background:transparent}.kong-ui-public-top-n-table[data-v-f05687f1] .card-content ::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.kong-ui-public-top-n-table .top-n-table[data-v-f05687f1]{display:flex;flex-direction:column;max-height:100%;overflow-x:auto}.kong-ui-public-top-n-table .top-n-table-table[data-v-f05687f1]{border-collapse:collapse;table-layout:auto}.kong-ui-public-top-n-table .top-n-table-header-row[data-v-f05687f1]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea)}.kong-ui-public-top-n-table .top-n-table-header-cell[data-v-f05687f1]{padding:0 24px 12px 0;padding:0 var(--kui-space-80, 24px) var(--kui-space-50, 12px) 0;text-align:left}.kong-ui-public-top-n-table .top-n-table-header-cell[data-v-f05687f1]:last-child{padding-right:0}.kong-ui-public-top-n-table .top-n-table-header-cell .table-header-label[data-v-f05687f1]{color:#000933;color:var(--kui-color-text, #000933);font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:24px;line-height:var(--kui-line-height-40, 24px)}.kong-ui-public-top-n-table .top-n-table-row[data-v-f05687f1]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea)}.kong-ui-public-top-n-table .top-n-table-row[data-v-f05687f1]:first-of-type{border-top:1px solid #e0e4ea;border-top:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea)}.kong-ui-public-top-n-table .top-n-table-row[data-v-f05687f1]:last-of-type{border-bottom:none}.kong-ui-public-top-n-table .top-n-table-header-cell-metric[data-v-f05687f1],.kong-ui-public-top-n-table .top-n-table-cell-metric[data-v-f05687f1]{white-space:nowrap;width:1%}.kong-ui-public-top-n-table .top-n-table-cell[data-v-f05687f1]{min-width:110px;padding:12px 0;padding:var(--kui-space-50, 12px) var(--kui-space-0, 0px)}.kong-ui-public-top-n-table .top-n-table-cell--name[data-v-f05687f1]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);font-size:14px;font-size:var(--kui-font-size-30, 14px);min-width:200px;padding-right:24px;padding-right:var(--kui-space-80, 24px)}.kong-ui-public-top-n-table[data-v-f05687f1] a{color:#0044f4;color:var(--kui-color-text-primary, #0044f4);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);text-decoration:none}.kong-ui-public-csv-export-modal .modal-container{min-width:580px}.kong-ui-public-csv-export-modal .modal-container .selected-range{font-size:14px;font-size:var(--kui-font-size-30, 14px)}.kong-ui-public-csv-export-modal .modal-container .text-muted{color:#00000073!important;font-size:14px;font-size:var(--kui-font-size-30, 14px)}.kong-ui-public-csv-export-modal .modal-container .vitals-table{font-size:14px;font-size:var(--kui-font-size-30, 14px);margin-bottom:20px;margin-bottom:var(--kui-space-70, 20px);margin-top:6px;margin-top:var(--kui-space-30, 6px);width:100%}.kong-ui-public-csv-export-modal .modal-container .k-table thead{border-top:1px solid #e0e4ea;border-top:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);height:auto}.kong-ui-public-csv-export-modal .modal-container .modal-footer .vitals-report-export-button{display:inline-flex}.kong-ui-public-csv-export-modal .modal-container .preview-tooltip{display:inline-flex;margin:auto 0 auto 4px;margin:var(--kui-space-auto, auto) var(--kui-space-0, 0px) var(--kui-space-auto, auto) var(--kui-space-20, 4px);vertical-align:middle}.container[data-v-ae8259b6]{align-items:center;border:1px solid #e0e4ea;border:1px solid var(--kui-color-border-neutral-weaker, #e0e4ea);border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;height:30px;justify-content:center;overflow:hidden;padding-top:1px;position:relative}.container .no-data[data-v-ae8259b6]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:default;font-size:12px;font-size:var(--kui-font-size-20, 12px);-webkit-user-select:none;user-select:none}.container .label[data-v-ae8259b6]{background-color:#ecfcff;background-color:var(--kui-method-color-background-patch, #ecfcff);border-bottom:1px solid #e0e4ea;border-bottom:1px solid var(--kui-color-border-neutral-weaker, #e0e4ea);border-bottom-left-radius:0;border-bottom-right-radius:4px;border-bottom-right-radius:var(--kui-border-radius-20, 4px);border-right:1px solid #e0e4ea;border-right:1px solid var(--kui-color-border-neutral-weaker, #e0e4ea);border-top-left-radius:4px;border-top-left-radius:var(--kui-border-radius-20, 4px);border-top-right-radius:0;color:#0044f4;color:var(--kui-color-text-primary, #0044f4);cursor:default;font-size:10px;left:0;line-height:9px;max-width:90%;overflow:hidden;padding:2px 6px;position:absolute;text-overflow:ellipsis;top:0;-webkit-user-select:none;user-select:none;white-space:nowrap}.container .tooltip[data-v-ae8259b6]{z-index:10}
|
|
1
|
+
.zoom-timerange-container[data-v-4fa681cf]{line-height:16px;line-height:var(--kui-line-height-20, 16px);margin:0 4px;margin:0 var(--kui-space-20, 4px)}.zoom-timerange-container .zoom-timerange-details[data-v-4fa681cf]{display:grid;font-size:12px;font-size:var(--kui-font-size-20, 12px);gap:2px;gap:var(--kui-space-10, 2px);grid-template-columns:35px 1fr;margin:6px 2px;margin:var(--kui-space-30, 6px) var(--kui-space-10, 2px)}.zoom-timerange-container .zoom-timerange-details .label[data-v-4fa681cf]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e)}.zoom-actions-container[data-v-179abac7]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;flex-direction:column;line-height:16px;line-height:var(--kui-line-height-20, 16px)}.zoom-actions-container .zoom-actions-heading[data-v-179abac7]{align-items:top;display:flex}.zoom-actions-container .zoom-actions-heading .zoom-actions-close-icon[data-v-179abac7]{cursor:pointer;margin-right:6px;margin-right:var(--kui-space-30, 6px);margin-top:6px;margin-top:var(--kui-space-30, 6px)}.zoom-actions-container .zoom-actions-heading-divider[data-v-179abac7]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);margin:0 4px;margin:0 var(--kui-space-20, 4px)}.zoom-actions-container .zoom-action-select .zoom-action-item[data-v-179abac7]:first-child{margin-top:4px;margin-top:var(--kui-space-20, 4px)}.zoom-actions-container .zoom-action-item[data-v-179abac7]{color:#000933;color:var(--kui-color-text, #000933);cursor:pointer;font-size:12px;font-size:var(--kui-font-size-20, 12px);padding:4px 8px;padding:var(--kui-space-20, 4px) var(--kui-space-40, 8px);transition:background-color .2s}.zoom-actions-container .zoom-action-item[data-v-179abac7]:last-of-type{border-bottom-left-radius:4px;border-bottom-left-radius:var(--kui-border-radius-20, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--kui-border-radius-20, 4px);margin-bottom:4px;margin-bottom:var(--kui-space-20, 4px)}.zoom-actions-container .zoom-action-item .zoom-action-link[data-v-179abac7]{color:#000933;color:var(--kui-color-text, #000933);display:block;text-decoration:none}.zoom-actions-container .zoom-action-item.disabled[data-v-179abac7]{color:#afb7c5;color:var(--kui-color-text-disabled, #afb7c5);pointer-events:none}.zoom-actions-container .zoom-action-item.disabled a[data-v-179abac7]{color:#afb7c5;color:var(--kui-color-text-disabled, #afb7c5)}.zoom-actions-container .zoom-action-item[data-v-179abac7]:hover{background-color:#e0e4ea;background-color:var(--kui-color-background-neutral-weaker, #e0e4ea)}.locked[data-v-ef584c53]{cursor:move}.tooltip-container[data-v-ef584c53]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);box-shadow:0 5px 15px #0000001f,0 5px 10px #0000003d;max-width:425px;position:fixed;transition:all .2s cubic-bezier(.25,.8,.25,1);z-index:1}.tooltip-container .tooltip-title[data-v-ef584c53]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);display:flex;flex-direction:column;margin:6px 6px 0;margin:var(--kui-space-30, 6px) var(--kui-space-30, 6px) 0 var(--kui-space-30, 6px);min-height:24px;padding-bottom:4px;padding-bottom:var(--kui-space-20, 4px)}.tooltip-container .tooltip-title .title[data-v-ef584c53]{display:flex;font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);justify-content:space-between}.tooltip-container .tooltip-title .title .drag-icon[data-v-ef584c53]{margin-top:6px;margin-top:var(--kui-space-30, 6px);right:0;top:0}.tooltip-container .tooltip-title .subtitle[data-v-ef584c53]{display:flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);gap:8px;gap:var(--kui-space-40, 8px);justify-content:space-between;margin-top:6px;margin-top:var(--kui-space-30, 6px)}.tooltip-container .tooltip[data-v-ef584c53]{list-style:none;margin:6px;margin:var(--kui-space-30, 6px);max-height:300px;min-width:250px;overflow-y:auto;overflow-y:var(--kui-space-auto, auto);padding-left:0;padding-left:var(--kui-space-0, 0px)}.tooltip-container .tooltip[data-v-ef584c53]{-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-color:var(--kui-color-background-disabled, #e0e4ea) var(--kui-color-background-transparent, transparent);scrollbar-width:auto}.tooltip-container .tooltip[data-v-ef584c53] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.tooltip-container .tooltip[data-v-ef584c53] ::-webkit-scrollbar-track{background:transparent}.tooltip-container .tooltip[data-v-ef584c53] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.tooltip-container .tooltip li[data-v-ef584c53]{align-items:center;display:flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:20px;line-height:var(--kui-line-height-30, 20px)}.tooltip-container .tooltip .display-label[data-v-ef584c53]{flex:1;max-width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tooltip-container .tooltip .display-label.empty[data-v-ef584c53]{font-style:italic}.tooltip-container .tooltip .display-value[data-v-ef584c53]{font-variant-numeric:tabular-nums;margin-left:auto;margin-left:var(--kui-space-auto, auto);padding-left:8px;padding-left:var(--kui-space-40, 8px);white-space:nowrap}.tooltip-container .tooltip .square-marker[data-v-ef584c53]{display:inline-flex;flex-direction:row;height:12px;margin-right:6px;margin-right:var(--kui-space-30, 6px);width:12px}.no-select{-webkit-user-select:none;user-select:none}.legend-container[data-v-27d1c6d3]{box-sizing:border-box;display:flex;flex-grow:1;flex-wrap:wrap;gap:8px 9px;justify-content:center;margin:0;max-height:inherit;overflow:auto;-ms-overflow-style:thin;padding:8px calc(5% + 4px);padding:var(--kui-space-40, 8px) calc(5% + var(--kui-space-20, 4px));width:100%}.legend-container[data-v-27d1c6d3]{-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-color:var(--kui-color-background-disabled, #e0e4ea) var(--kui-color-background-transparent, transparent);scrollbar-width:auto}.legend-container[data-v-27d1c6d3] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.legend-container[data-v-27d1c6d3] ::-webkit-scrollbar-track{background:transparent}.legend-container[data-v-27d1c6d3] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.legend-container li[data-v-27d1c6d3]{align-items:center;cursor:pointer;display:flex;line-height:1;margin:0}.legend-container li .square-marker[data-v-27d1c6d3]{height:8px;margin:0;margin:var(--kui-space-0, 0px);margin-right:6px;margin-right:var(--kui-space-30, 6px);width:8px}.legend-container li .label[data-v-27d1c6d3]{font-size:12px;font-size:var(--kui-font-size-20, 12px);white-space:nowrap}.legend-container li .label.truncate-label[data-v-27d1c6d3]{max-width:20ch;overflow:hidden;text-overflow:ellipsis}.legend-container li .sub-label[data-v-27d1c6d3]{font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);word-break:none}.legend-container li .strike-through[data-v-27d1c6d3]{text-decoration:line-through}.legend-container li .empty[data-v-27d1c6d3]{font-style:italic}.legend-container li .tooltip-content[data-v-27d1c6d3]{max-width:40ch}.chart-parent[data-v-60e5a1a7]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-60e5a1a7]{flex-direction:column}.chart-parent.column .chart-container[data-v-60e5a1a7]{flex-shrink:0;height:calc(100% - 49px);height:calc(100% - calc(var(--kui-space-110, 48px) + 1px));width:100%}.chart-parent .chart-container[data-v-60e5a1a7]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-60e5a1a7]{height:calc(100% - 80px);height:calc(100% - var(--kui-space-140, 80px))}.chart-container[data-v-60e5a1a7]{overflow:auto}.chart-container[data-v-60e5a1a7]{-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-color:var(--kui-color-background-disabled, #e0e4ea) var(--kui-color-background-transparent, transparent);scrollbar-width:auto}.chart-container[data-v-60e5a1a7] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.chart-container[data-v-60e5a1a7] ::-webkit-scrollbar-track{background:transparent}.chart-container[data-v-60e5a1a7] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.chart-container .chart-body[data-v-60e5a1a7]{height:100%}.chart-container[data-v-60e5a1a7]::-webkit-scrollbar-track{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.chart-container[data-v-60e5a1a7]::-webkit-scrollbar{width:10px}.chart-container[data-v-60e5a1a7]::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.axis[data-v-60e5a1a7]{left:0;pointer-events:none;position:absolute;top:0;z-index:99}.axis-tooltip[data-v-60e5a1a7]{background-color:#000933;background-color:var(--kui-color-background-inverse, #000933);border:none;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);color:#fff;color:var(--kui-color-text-inverse, #ffffff);max-width:40ch;padding:4px 8px;padding:var(--kui-space-20, 4px) var(--kui-space-40, 8px);position:absolute;width:max-content;z-index:100}.axis-tooltip .axis-tooltip-content[data-v-60e5a1a7]{color:#fff;color:var(--kui-color-text-inverse, #ffffff);font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif);font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);line-height:16px;line-height:var(--kui-line-height-20, 16px)}.tooltip-boundary[data-v-60e5a1a7]{height:100%;left:0;position:relative;top:0;width:100%}.chart-parent[data-v-d44955a3]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-d44955a3]{flex-direction:column}.chart-parent.column .chart-container[data-v-d44955a3]{flex-shrink:0;height:calc(100% - 49px);height:calc(100% - calc(var(--kui-space-110, 48px) + 1px));width:100%}.chart-parent .chart-container[data-v-d44955a3]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-d44955a3]{height:calc(100% - 80px);height:calc(100% - var(--kui-space-140, 80px))}.chart-center-metric[data-v-d44955a3]{align-items:center;display:flex;flex-direction:column;justify-content:center;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.chart-center-metric .chart-center-total[data-v-d44955a3]{color:#000933;color:var(--kui-color-text, #000933);font-size:24px;font-size:var(--kui-font-size-70, 24px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:1.1}.chart-center-metric .chart-center-unit[data-v-d44955a3]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);margin-top:2px;margin-top:var(--kui-space-10, 2px)}.chart-parent[data-v-ac6e8bbc]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-ac6e8bbc]{flex-direction:column}.chart-parent.column .chart-container[data-v-ac6e8bbc]{flex-shrink:0;height:calc(100% - 49px);height:calc(100% - calc(var(--kui-space-110, 48px) + 1px));width:100%}.chart-parent .chart-container[data-v-ac6e8bbc]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-ac6e8bbc]{height:calc(100% - 80px);height:calc(100% - var(--kui-space-140, 80px))}.analytics-chart-shell[data-v-0f65cbd1],.simple-chart-shell[data-v-0f65cbd1]{border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;flex-direction:column}.analytics-chart-shell .chart-empty-state[data-v-0f65cbd1],.simple-chart-shell .chart-empty-state[data-v-0f65cbd1]{display:flex;flex-direction:column;height:100%;justify-content:center}.analytics-chart-shell[data-v-0f65cbd1]{height:100%;position:relative;width:100%}.analytics-chart-shell .analytics-chart-parent[data-v-0f65cbd1]{height:inherit;width:inherit}.analytics-chart-shell .chart-empty-state[data-v-0f65cbd1]{padding:20px 0 16px;padding:var(--kui-space-70, 20px) var(--kui-space-0, 0px) var(--kui-space-60, 16px) var(--kui-space-0, 0px)}.analytics-chart-shell .chart-truncation-warning[data-v-0f65cbd1]{align-items:center;background-color:#fff;display:flex;justify-content:flex-start;left:0;position:absolute;top:0;transform:translate(-4px);z-index:999}.chart-parent[data-v-c461b83f]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-c461b83f]{flex-direction:column}.chart-parent.column .chart-container[data-v-c461b83f]{flex-shrink:0;height:calc(100% - 49px);height:calc(100% - calc(var(--kui-space-110, 48px) + 1px));width:100%}.chart-parent .chart-container[data-v-c461b83f]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-c461b83f]{height:calc(100% - 80px);height:calc(100% - var(--kui-space-140, 80px))}.chart-parent[data-v-c461b83f]{height:auto;margin:0;margin:var(--kui-space-0, 0px);padding:0;padding:var(--kui-space-0, 0px);width:auto}.chart-parent .chart-container[data-v-c461b83f]{margin:0;margin:var(--kui-space-0, 0px);max-height:100px;max-width:100px;padding:0;padding:var(--kui-space-0, 0px)}.chart-parent .chart-totals-flex[data-v-c461b83f]{align-items:center;display:flex;flex-direction:column;height:100px;justify-content:center;padding:24px 0 0;padding:var(--kui-space-80, 24px) var(--kui-space-0, 0px) var(--kui-space-0, 0px);position:absolute;width:100px;z-index:2}.chart-parent .chart-totals-flex .metric-large[data-v-c461b83f]{font-size:20px;font-size:var(--kui-font-size-60, 20px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);line-height:28px;line-height:var(--kui-line-height-50, 28px)}.chart-parent .chart-totals-flex .metric-small[data-v-c461b83f]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:10px;font-size:var(--kui-font-size-10, 10px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:12px;line-height:var(--kui-line-height-10, 12px)}.chart-parent[data-v-645383c7]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-645383c7]{flex-direction:column}.chart-parent.column .chart-container[data-v-645383c7]{flex-shrink:0;height:calc(100% - 49px);height:calc(100% - calc(var(--kui-space-110, 48px) + 1px));width:100%}.chart-parent .chart-container[data-v-645383c7]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-645383c7]{height:calc(100% - 80px);height:calc(100% - var(--kui-space-140, 80px))}.chart-parent[data-v-645383c7]{container-type:inline-size}.chart-parent.align-left[data-v-645383c7]{justify-content:flex-start}.chart-parent.align-center[data-v-645383c7]{justify-content:center}.chart-parent.align-right[data-v-645383c7]{justify-content:flex-end}.chart-parent.align-between[data-v-645383c7]{justify-content:space-between}.chart-parent.align-around[data-v-645383c7]{justify-content:space-around}.chart-parent.align-evenly[data-v-645383c7]{justify-content:space-evenly}.chart-parent .single-value-error[data-v-645383c7] .empty-state-title{font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);margin:0;margin:var(--kui-space-0, 0px)}.chart-parent .single-value-wrapper[data-v-645383c7]{display:flex;flex-direction:column;gap:12px;margin-top:-4px}.chart-parent .single-value-wrapper .single-value-metric[data-v-645383c7]{align-items:center;display:flex;flex-direction:column}.chart-parent .single-value-wrapper .single-value-metric-name[data-v-645383c7]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:10px;font-size:var(--kui-font-size-10, 10px);line-height:12px;line-height:var(--kui-line-height-10, 12px)}.chart-parent .single-value-wrapper .single-value[data-v-645383c7]{color:#000933;color:var(--kui-color-text, #000933);font-size:24px;font-size:var(--kui-font-size-70, 24px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:36px;line-height:var(--kui-line-height-70, 36px)}.chart-parent .single-value-wrapper .single-value-unit[data-v-645383c7]{color:#000933;color:var(--kui-color-text, #000933);font-size:20px;font-size:var(--kui-font-size-60, 20px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:32px;line-height:var(--kui-line-height-60, 32px)}.chart-parent .single-value-wrapper .single-value-trend[data-v-645383c7]{align-items:center;column-gap:8px;column-gap:var(--kui-space-40, 8px);display:flex}.chart-parent .single-value-wrapper .single-value-trend .trend-change[data-v-645383c7]{align-items:center;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;flex-direction:row;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);padding:4px 8px;padding:var(--kui-space-20, 4px) var(--kui-space-40, 8px)}.chart-parent .single-value-wrapper .single-value-trend .trend-change .kui-icon[data-v-645383c7]{margin-right:4px;margin-right:var(--kui-space-20, 4px)}.chart-parent .single-value-wrapper .single-value-trend .trend-change.positive[data-v-645383c7]{background-color:#ecfffb;background-color:var(--kui-color-background-success-weakest, #ecfffb);color:#007d60;color:var(--kui-color-text-success, #007d60)}.chart-parent .single-value-wrapper .single-value-trend .trend-change.negative[data-v-645383c7]{background-color:#ffe5e5;background-color:var(--kui-color-background-danger-weakest, #ffe5e5);color:#ad000e;color:var(--kui-color-text-danger-strong, #ad000e)}.chart-parent .single-value-wrapper .single-value-trend .trend-change.neutral[data-v-645383c7]{background-color:#e0e4ea;background-color:var(--kui-color-background-neutral-weaker, #e0e4ea);color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e)}.chart-parent .single-value-wrapper .single-value-trend .single-value-trend-range[data-v-645383c7]{color:#000933;color:var(--kui-color-text, #000933);font-size:12px;font-size:var(--kui-font-size-20, 12px)}@container (min-width: 300px){.chart-parent .single-value-wrapper .single-value[data-v-645383c7]{font-size:48px;font-size:var(--kui-font-size-100, 48px);line-height:56px;line-height:var(--kui-line-height-100, 56px)}.chart-parent .single-value-wrapper .single-value-unit[data-v-645383c7]{font-size:40px;font-size:var(--kui-font-size-90, 40px);line-height:48px;line-height:var(--kui-line-height-90, 48px)}.chart-parent .single-value-wrapper .single-value-metric-name[data-v-645383c7]{font-size:10px;font-size:var(--kui-font-size-10, 10px);line-height:12px;line-height:var(--kui-line-height-10, 12px)}}@container (min-width: 500px){.chart-parent .single-value-wrapper .single-value[data-v-645383c7]{font-size:56px;line-height:64px}.chart-parent .single-value-wrapper .single-value-unit[data-v-645383c7]{font-size:48px;font-size:var(--kui-font-size-100, 48px);line-height:56px;line-height:var(--kui-line-height-100, 56px)}.chart-parent .single-value-wrapper .single-value-metric-name[data-v-645383c7]{font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px)}}@container (min-width: 700px){.chart-parent .single-value-wrapper .single-value[data-v-645383c7]{font-size:64px;line-height:72px}.chart-parent .single-value-wrapper .single-value-unit[data-v-645383c7]{font-size:56px;line-height:64px}.chart-parent .single-value-wrapper .single-value-metric-name[data-v-645383c7]{font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px)}}@container (min-width: 1000px){.chart-parent .single-value-wrapper .single-value[data-v-645383c7]{font-size:80px;line-height:88px}.chart-parent .single-value-wrapper .single-value-unit[data-v-645383c7]{font-size:64px;line-height:72px}.chart-parent .single-value-wrapper .single-value-metric-name[data-v-645383c7]{font-size:16px;font-size:var(--kui-font-size-40, 16px);line-height:24px;line-height:var(--kui-line-height-40, 24px)}}@container (min-width: 1200px){.chart-parent .single-value-wrapper .single-value[data-v-645383c7]{font-size:96px;line-height:104px}.chart-parent .single-value-wrapper .single-value-unit[data-v-645383c7]{font-size:80px;line-height:88px}.chart-parent .single-value-wrapper .single-value-metric-name[data-v-645383c7]{font-size:16px;font-size:var(--kui-font-size-40, 16px);line-height:24px;line-height:var(--kui-line-height-40, 24px)}}.analytics-chart-shell[data-v-56837d34],.simple-chart-shell[data-v-56837d34]{border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;flex-direction:column}.analytics-chart-shell .chart-empty-state[data-v-56837d34],.simple-chart-shell .chart-empty-state[data-v-56837d34]{display:flex;flex-direction:column;height:100%;justify-content:center}.simple-chart-shell[data-v-56837d34]{margin:0;margin:var(--kui-space-0, 0px);padding:0;padding:var(--kui-space-0, 0px);width:100%}.simple-chart-shell .chart-empty-state[data-v-56837d34]{display:flex;flex-direction:column;justify-content:center}.simple-chart-shell .chart-empty-state[data-v-56837d34] .empty-state-title{font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-top-n-table[data-v-f05687f1]{border:none!important;max-height:100%;padding:0!important;width:100%}.kong-ui-public-top-n-table .top-n-card-description[data-v-f05687f1]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-size:var(--kui-font-size-20, 12px);text-align:right}.kong-ui-public-top-n-table[data-v-f05687f1] .k-card-actions{align-self:baseline;display:flex;line-height:22px}.kong-ui-public-top-n-table[data-v-f05687f1] .card-content{overflow-y:auto}.kong-ui-public-top-n-table[data-v-f05687f1] .card-content{-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-color:var(--kui-color-background-disabled, #e0e4ea) var(--kui-color-background-transparent, transparent);scrollbar-width:auto}.kong-ui-public-top-n-table[data-v-f05687f1] .card-content ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.kong-ui-public-top-n-table[data-v-f05687f1] .card-content ::-webkit-scrollbar-track{background:transparent}.kong-ui-public-top-n-table[data-v-f05687f1] .card-content ::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.kong-ui-public-top-n-table .top-n-table[data-v-f05687f1]{display:flex;flex-direction:column;max-height:100%;overflow-x:auto}.kong-ui-public-top-n-table .top-n-table-table[data-v-f05687f1]{border-collapse:collapse;table-layout:auto}.kong-ui-public-top-n-table .top-n-table-header-row[data-v-f05687f1]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea)}.kong-ui-public-top-n-table .top-n-table-header-cell[data-v-f05687f1]{padding:0 24px 12px 0;padding:0 var(--kui-space-80, 24px) var(--kui-space-50, 12px) 0;text-align:left}.kong-ui-public-top-n-table .top-n-table-header-cell[data-v-f05687f1]:last-child{padding-right:0}.kong-ui-public-top-n-table .top-n-table-header-cell .table-header-label[data-v-f05687f1]{color:#000933;color:var(--kui-color-text, #000933);font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:24px;line-height:var(--kui-line-height-40, 24px)}.kong-ui-public-top-n-table .top-n-table-row[data-v-f05687f1]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea)}.kong-ui-public-top-n-table .top-n-table-row[data-v-f05687f1]:first-of-type{border-top:1px solid #e0e4ea;border-top:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea)}.kong-ui-public-top-n-table .top-n-table-row[data-v-f05687f1]:last-of-type{border-bottom:none}.kong-ui-public-top-n-table .top-n-table-header-cell-metric[data-v-f05687f1],.kong-ui-public-top-n-table .top-n-table-cell-metric[data-v-f05687f1]{white-space:nowrap;width:1%}.kong-ui-public-top-n-table .top-n-table-cell[data-v-f05687f1]{min-width:110px;padding:12px 0;padding:var(--kui-space-50, 12px) var(--kui-space-0, 0px)}.kong-ui-public-top-n-table .top-n-table-cell--name[data-v-f05687f1]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);font-size:14px;font-size:var(--kui-font-size-30, 14px);min-width:200px;padding-right:24px;padding-right:var(--kui-space-80, 24px)}.kong-ui-public-top-n-table[data-v-f05687f1] a{color:#0044f4;color:var(--kui-color-text-primary, #0044f4);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);text-decoration:none}.kong-ui-public-csv-export-modal .modal-container{min-width:580px}.kong-ui-public-csv-export-modal .modal-container .selected-range{font-size:14px;font-size:var(--kui-font-size-30, 14px)}.kong-ui-public-csv-export-modal .modal-container .text-muted{color:#00000073!important;font-size:14px;font-size:var(--kui-font-size-30, 14px)}.kong-ui-public-csv-export-modal .modal-container .vitals-table{font-size:14px;font-size:var(--kui-font-size-30, 14px);margin-bottom:20px;margin-bottom:var(--kui-space-70, 20px);margin-top:6px;margin-top:var(--kui-space-30, 6px);width:100%}.kong-ui-public-csv-export-modal .modal-container .k-table thead{border-top:1px solid #e0e4ea;border-top:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);height:auto}.kong-ui-public-csv-export-modal .modal-container .modal-footer .vitals-report-export-button{display:inline-flex}.kong-ui-public-csv-export-modal .modal-container .preview-tooltip{display:inline-flex;margin:auto 0 auto 4px;margin:var(--kui-space-auto, auto) var(--kui-space-0, 0px) var(--kui-space-auto, auto) var(--kui-space-20, 4px);vertical-align:middle}.container[data-v-ae8259b6]{align-items:center;border:1px solid #e0e4ea;border:1px solid var(--kui-color-border-neutral-weaker, #e0e4ea);border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;height:30px;justify-content:center;overflow:hidden;padding-top:1px;position:relative}.container .no-data[data-v-ae8259b6]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:default;font-size:12px;font-size:var(--kui-font-size-20, 12px);-webkit-user-select:none;user-select:none}.container .label[data-v-ae8259b6]{background-color:#ecfcff;background-color:var(--kui-method-color-background-patch, #ecfcff);border-bottom:1px solid #e0e4ea;border-bottom:1px solid var(--kui-color-border-neutral-weaker, #e0e4ea);border-bottom-left-radius:0;border-bottom-right-radius:4px;border-bottom-right-radius:var(--kui-border-radius-20, 4px);border-right:1px solid #e0e4ea;border-right:1px solid var(--kui-color-border-neutral-weaker, #e0e4ea);border-top-left-radius:4px;border-top-left-radius:var(--kui-border-radius-20, 4px);border-top-right-radius:0;color:#0044f4;color:var(--kui-color-text-primary, #0044f4);cursor:default;font-size:10px;left:0;line-height:9px;max-width:90%;overflow:hidden;padding:2px 6px;position:absolute;text-overflow:ellipsis;top:0;-webkit-user-select:none;user-select:none;white-space:nowrap}.container .tooltip[data-v-ae8259b6]{z-index:10}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chart-plugins/ChartTooltip.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChartTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chart-plugins/ChartTooltip.vue"],"names":[],"mappings":"AA2OA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAWjG,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,YAAY,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAA;IAClC,WAAW,CAAC,EAAE,iBAAiB,CAAA;CAChC,CAAC;AAoPF,QAAA,MAAM,YAAY;;;eAjQuB,MAAM;gBAAU,MAAM;;;;;eAAtB,MAAM;gBAAU,MAAM;;;iBAY/C,iBAAiB;qBADb,cAAc,EAAE;kBAJnB,MAAM;kBACN,MAAM;iBACP,MAAM;mBACJ,mBAAmB;6EA2PnC,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
package/dist/vitals-chart.es.js
CHANGED
|
@@ -19243,7 +19243,7 @@ const eC = { class: "zoom-timerange-container" }, nC = { class: "zoom-timerange-
|
|
|
19243
19243
|
], 6)) : Nt("", !0);
|
|
19244
19244
|
};
|
|
19245
19245
|
}
|
|
19246
|
-
}), no = /* @__PURE__ */ Ye(SC, [["__scopeId", "data-v-
|
|
19246
|
+
}), no = /* @__PURE__ */ Ye(SC, [["__scopeId", "data-v-ef584c53"]]), TC = {
|
|
19247
19247
|
key: 0,
|
|
19248
19248
|
class: "legend-container",
|
|
19249
19249
|
"data-testid": "legend"
|
package/dist/vitals-chart.umd.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* https://www.chartjs.org/chartjs-plugin-annotation/index
|
|
21
21
|
* (c) 2024 chartjs-plugin-annotation Contributors
|
|
22
22
|
* Released under the MIT License
|
|
23
|
-
*/const If={modes:{point(n,t){return oa(n,t,{intersect:!0})},nearest(n,t,e){return sk(n,t,e)},x(n,t,e){return oa(n,t,{intersect:e.intersect,axis:"x"})},y(n,t,e){return oa(n,t,{intersect:e.intersect,axis:"y"})}}};function yl(n,t,e){return(If.modes[e.mode]||If.modes.nearest)(n,t,e)}function nk(n,t,e){return e!=="x"&&e!=="y"?n.inRange(t.x,t.y,"x",!0)||n.inRange(t.x,t.y,"y",!0):n.inRange(t.x,t.y,e,!0)}function ik(n,t,e){return e==="x"?{x:n.x,y:t.y}:e==="y"?{x:t.x,y:n.y}:t}function oa(n,t,e){return n.filter(i=>e.intersect?i.inRange(t.x,t.y):nk(i,t,e.axis))}function sk(n,t,e){let i=Number.POSITIVE_INFINITY;return oa(n,t,e).reduce((s,r)=>{const a=r.getCenterPoint(),o=ik(t,a,e.axis),l=pi(t,o);return l<i?(s=[r],i=l):l===i&&s.push(r),s},[]).sort((s,r)=>s._index-r._index).slice(0,1)}function ni(n,t,e){const i=Math.cos(e),s=Math.sin(e),r=t.x,a=t.y;return{x:r+i*(n.x-r)-s*(n.y-a),y:a+s*(n.x-r)+i*(n.y-a)}}const rk=(n,t)=>t>n||n.length>t.length&&n.slice(0,t.length)===t,ii=.001,la=(n,t,e)=>Math.min(e,Math.max(t,n)),Lf=(n,t)=>n.value>=n.start-t&&n.value<=n.end+t;function ak(n,t,e){for(const i of Object.keys(n))n[i]=la(n[i],t,e);return n}function ok(n,t,e,i){return!n||!t||e<=0?!1:Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2)<=Math.pow(e+i,2)}function Nf(n,{x:t,y:e,x2:i,y2:s},r,{borderWidth:a,hitTolerance:o}){const l=(a+o)/2,c=n.x>=t-l-ii&&n.x<=i+l+ii,u=n.y>=e-l-ii&&n.y<=s+l+ii;return r==="x"?c:(r==="y"||c)&&u}function Ff(n,{rect:t,center:e},i,{rotation:s,borderWidth:r,hitTolerance:a}){const o=ni(n,e,Vt(-s));return Nf(o,t,i,{borderWidth:r,hitTolerance:a})}function si(n,t){const{centerX:e,centerY:i}=n.getProps(["centerX","centerY"],t);return{x:e,y:i}}function lk(n,t,e,i=!0){const s=e.split(".");let r=0;for(const a of t.split(".")){const o=s[r++];if(parseInt(a,10)<parseInt(o,10))break;if(rk(o,a)){if(i)throw new Error(`${n} v${e} is not supported. v${t} or newer is required.`);return!1}}return!0}const Bf=n=>typeof n=="string"&&n.endsWith("%"),zf=n=>parseFloat(n)/100,Uf=n=>la(zf(n),0,1),Ys=(n,t)=>({x:n,y:t,x2:n,y2:t,width:0,height:0}),ck={box:n=>Ys(n.centerX,n.centerY),doughnutLabel:n=>Ys(n.centerX,n.centerY),ellipse:n=>({centerX:n.centerX,centerY:n.centerX,radius:0,width:0,height:0}),label:n=>Ys(n.centerX,n.centerY),line:n=>Ys(n.x,n.y),point:n=>({centerX:n.centerX,centerY:n.centerY,radius:0,width:0,height:0}),polygon:n=>Ys(n.centerX,n.centerY)};function bl(n,t){return t==="start"?0:t==="end"?n:Bf(t)?Uf(t)*n:n/2}function An(n,t,e=!0){return typeof t=="number"?t:Bf(t)?(e?Uf(t):zf(t))*n:n}function uk(n,t){const{x:e,width:i}=n,s=t.textAlign;return s==="center"?e+i/2:s==="end"||s==="right"?e+i:e}function Hf(n,t,{borderWidth:e,position:i,xAdjust:s,yAdjust:r},a){const o=ht(a),l=t.width+(o?a.width:0)+e,c=t.height+(o?a.height:0)+e,u=_l(i),h=$f(n.x,l,s,u.x),f=$f(n.y,c,r,u.y);return{x:h,y:f,x2:h+l,y2:f+c,width:l,height:c,centerX:h+l/2,centerY:f+c/2}}function _l(n,t="center"){return ht(n)?{x:st(n.x,t),y:st(n.y,t)}:(n=st(n,t),{x:n,y:n})}const Wf=(n,t)=>n&&n.autoFit&&t<1;function Vf(n,t){const e=n.font,i=wt(e)?e:[e];return Wf(n,t)?i.map(function(s){const r=Rt(s);return r.size=Math.floor(s.size*t),r.lineHeight=s.lineHeight,Rt(r)}):i.map(s=>Rt(s))}function Yf(n){return n&&(ge(n.xValue)||ge(n.yValue))}function $f(n,t,e=0,i){return n-bl(t,i)+e}function Ii(n,t,e){const i=e.init;if(i){if(i===!0)return qf(t,e)}else return;return dk(n,t,e)}function jf(n,t,e){let i=!1;return t.forEach(s=>{pe(n[s])?(i=!0,e[s]=n[s]):ge(e[s])&&delete e[s]}),i}function qf(n,t){const e=t.type||"line";return ck[e](n)}function dk(n,t,e){const i=Tt(e.init,[{chart:n,properties:t,options:e}]);if(i===!0)return qf(t,e);if(ht(i))return i}const xl=new Map,hk=n=>isNaN(n)||n<=0,fk=n=>n.reduce(function(t,e){return t+=e.string,t},"");function ca(n){if(n&&typeof n=="object"){const t=n.toString();return t==="[object HTMLImageElement]"||t==="[object HTMLCanvasElement]"}}function ua(n,{x:t,y:e},i){i&&(n.translate(t,e),n.rotate(Vt(i)),n.translate(-t,-e))}function on(n,t){if(t&&t.borderWidth)return n.lineCap=t.borderCapStyle||"butt",n.setLineDash(t.borderDash),n.lineDashOffset=t.borderDashOffset,n.lineJoin=t.borderJoinStyle||"miter",n.lineWidth=t.borderWidth,n.strokeStyle=t.borderColor,!0}function Li(n,t){n.shadowColor=t.backgroundShadowColor,n.shadowBlur=t.shadowBlur,n.shadowOffsetX=t.shadowOffsetX,n.shadowOffsetY=t.shadowOffsetY}function da(n,t){const e=t.content;if(ca(e))return{width:An(e.width,t.width),height:An(e.height,t.height)};const i=Vf(t),s=t.textStrokeWidth,r=wt(e)?e:[e],a=r.join()+fk(i)+s+(n._measureText?"-spriting":"");return xl.has(a)||xl.set(a,yk(n,r,i,s)),xl.get(a)}function Gf(n,t,e){const{x:i,y:s,width:r,height:a}=t;n.save(),Li(n,e);const o=on(n,e);n.fillStyle=e.backgroundColor,n.beginPath(),yi(n,{x:i,y:s,w:r,h:a,radius:ak(wn(e.borderRadius),0,Math.min(r,a)/2)}),n.closePath(),n.fill(),o&&(n.shadowColor=e.borderShadowColor,n.stroke()),n.restore()}function Xf(n,t,e,i){const s=e.content;if(ca(s)){n.save(),n.globalAlpha=xk(e.opacity,s.style.opacity),n.drawImage(s,t.x,t.y,t.width,t.height),n.restore();return}const r=wt(s)?s:[s],a=Vf(e,i),o=e.color,l=wt(o)?o:[o],c=uk(t,e),u=t.y+e.textStrokeWidth/2;n.save(),n.textBaseline="middle",n.textAlign=e.textAlign,mk(n,e)&&bk(n,{x:c,y:u},r,a),_k(n,{x:c,y:u},r,{fonts:a,colors:l}),n.restore()}function mk(n,t){if(t.textStrokeWidth>0)return n.lineJoin="round",n.miterLimit=2,n.lineWidth=t.textStrokeWidth,n.strokeStyle=t.textStrokeColor,!0}function gk(n,t,e,i){const{radius:s,options:r}=t,a=r.pointStyle,o=r.rotation;let l=(o||0)*Ha;if(ca(a)){n.save(),n.translate(e,i),n.rotate(l),n.drawImage(a,-a.width/2,-a.height/2,a.width,a.height),n.restore();return}hk(s)||pk(n,{x:e,y:i,radius:s,rotation:o,style:a,rad:l})}function pk(n,{x:t,y:e,radius:i,rotation:s,style:r,rad:a}){let o,l,c,u;switch(n.beginPath(),r){default:n.arc(t,e,i,0,Ct),n.closePath();break;case"triangle":n.moveTo(t+Math.sin(a)*i,e-Math.cos(a)*i),a+=fr,n.lineTo(t+Math.sin(a)*i,e-Math.cos(a)*i),a+=fr,n.lineTo(t+Math.sin(a)*i,e-Math.cos(a)*i),n.closePath();break;case"rectRounded":u=i*.516,c=i-u,o=Math.cos(a+Ee)*c,l=Math.sin(a+Ee)*c,n.arc(t-o,e-l,u,a-ct,a-Et),n.arc(t+l,e-o,u,a-Et,a),n.arc(t+o,e+l,u,a,a+Et),n.arc(t-l,e+o,u,a+Et,a+ct),n.closePath();break;case"rect":if(!s){c=Math.SQRT1_2*i,n.rect(t-c,e-c,2*c,2*c);break}a+=Ee;case"rectRot":o=Math.cos(a)*i,l=Math.sin(a)*i,n.moveTo(t-o,e-l),n.lineTo(t+l,e-o),n.lineTo(t+o,e+l),n.lineTo(t-l,e+o),n.closePath();break;case"crossRot":a+=Ee;case"cross":o=Math.cos(a)*i,l=Math.sin(a)*i,n.moveTo(t-o,e-l),n.lineTo(t+o,e+l),n.moveTo(t+l,e-o),n.lineTo(t-l,e+o);break;case"star":o=Math.cos(a)*i,l=Math.sin(a)*i,n.moveTo(t-o,e-l),n.lineTo(t+o,e+l),n.moveTo(t+l,e-o),n.lineTo(t-l,e+o),a+=Ee,o=Math.cos(a)*i,l=Math.sin(a)*i,n.moveTo(t-o,e-l),n.lineTo(t+o,e+l),n.moveTo(t+l,e-o),n.lineTo(t-l,e+o);break;case"line":o=Math.cos(a)*i,l=Math.sin(a)*i,n.moveTo(t-o,e-l),n.lineTo(t+o,e+l);break;case"dash":n.moveTo(t,e),n.lineTo(t+Math.cos(a)*i,e+Math.sin(a)*i);break}n.fill()}function yk(n,t,e,i){n.save();const s=t.length;let r=0,a=i;for(let o=0;o<s;o++){const l=e[Math.min(o,e.length-1)];n.font=l.string;const c=t[o];r=Math.max(r,n.measureText(c).width+i),a+=l.lineHeight}return n.restore(),{width:r,height:a}}function bk(n,{x:t,y:e},i,s){n.beginPath();let r=0;i.forEach(function(a,o){const l=s[Math.min(o,s.length-1)],c=l.lineHeight;n.font=l.string,n.strokeText(a,t,e+c/2+r),r+=c}),n.stroke()}function _k(n,{x:t,y:e},i,{fonts:s,colors:r}){let a=0;i.forEach(function(o,l){const c=r[Math.min(l,r.length-1)],u=s[Math.min(l,s.length-1)],h=u.lineHeight;n.beginPath(),n.font=u.string,n.fillStyle=c,n.fillText(o,t,e+h/2+a),a+=h,n.fill()})}function xk(n,t){const e=xn(n)?n:t;return xn(e)?la(e,0,1):1}const Kf=["left","bottom","top","right"];function wk(n,t){const{pointX:e,pointY:i,options:s}=t,r=s.callout,a=r&&r.display&&kk(t,r);if(!a||Ck(t,r,a))return;if(n.save(),n.beginPath(),!on(n,r))return n.restore();const{separatorStart:l,separatorEnd:c}=Sk(t,a),{sideStart:u,sideEnd:h}=Tk(t,a,l);(r.margin>0||s.borderWidth===0)&&(n.moveTo(l.x,l.y),n.lineTo(c.x,c.y)),n.moveTo(u.x,u.y),n.lineTo(h.x,h.y);const f=ni({x:e,y:i},t.getCenterPoint(),Vt(-t.rotation));n.lineTo(f.x,f.y),n.stroke(),n.restore()}function Sk(n,t){const{x:e,y:i,x2:s,y2:r}=n,a=vk(n,t);let o,l;return t==="left"||t==="right"?(o={x:e+a,y:i},l={x:o.x,y:r}):(o={x:e,y:i+a},l={x:s,y:o.y}),{separatorStart:o,separatorEnd:l}}function vk(n,t){const{width:e,height:i,options:s}=n,r=s.callout.margin+s.borderWidth/2;return t==="right"?e+r:t==="bottom"?i+r:-r}function Tk(n,t,e){const{y:i,width:s,height:r,options:a}=n,o=a.callout.start,l=Mk(t,a.callout);let c,u;return t==="left"||t==="right"?(c={x:e.x,y:i+An(r,o)},u={x:c.x+l,y:c.y}):(c={x:e.x+An(s,o),y:e.y},u={x:c.x,y:c.y+l}),{sideStart:c,sideEnd:u}}function Mk(n,t){const e=t.side;return n==="left"||n==="top"?-e:e}function kk(n,t){const e=t.position;return Kf.includes(e)?e:Dk(n,t)}function Dk(n,t){const{x:e,y:i,x2:s,y2:r,width:a,height:o,pointX:l,pointY:c,centerX:u,centerY:h,rotation:f}=n,m={x:u,y:h},p=t.start,_=An(a,p),x=An(o,p),S=[e,e+_,e+_,s],M=[i+x,r,i,r],O=[];for(let A=0;A<4;A++){const E=ni({x:S[A],y:M[A]},m,Vt(f));O.push({position:Kf[A],distance:pi(E,{x:l,y:c})})}return O.sort((A,E)=>A.distance-E.distance)[0].position}function Ck(n,t,e){const{pointX:i,pointY:s}=n,r=t.margin;let a=i,o=s;return e==="left"?a+=r:e==="right"?a-=r:e==="top"?o+=r:e==="bottom"&&(o-=r),n.inRange(a,o)}const Zf={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function Ni(n,t,e){return t=typeof t=="number"?t:n.parse(t),Pt(t)?n.getPixelForValue(t):e}function ri(n,t,e){const i=t[e];if(i||e==="scaleID")return i;const s=e.charAt(0),r=Object.values(n).filter(a=>a.axis&&a.axis===s);return r.length?r[0].id:s}function Qf(n,t){if(n){const e=n.options.reverse,i=Ni(n,t.min,e?t.end:t.start),s=Ni(n,t.max,e?t.start:t.end);return{start:i,end:s}}}function Jf(n,t){const{chartArea:e,scales:i}=n,s=i[ri(i,t,"xScaleID")],r=i[ri(i,t,"yScaleID")];let a=e.width/2,o=e.height/2;return s&&(a=Ni(s,t.xValue,s.left+s.width/2)),r&&(o=Ni(r,t.yValue,r.top+r.height/2)),{x:a,y:o}}function wl(n,t){const e=n.scales,i=e[ri(e,t,"xScaleID")],s=e[ri(e,t,"yScaleID")];if(!i&&!s)return{};let{left:r,right:a}=i||n.chartArea,{top:o,bottom:l}=s||n.chartArea;const c=nm(i,{min:t.xMin,max:t.xMax,start:r,end:a});r=c.start,a=c.end;const u=nm(s,{min:t.yMin,max:t.yMax,start:l,end:o});return o=u.start,l=u.end,{x:r,y:o,x2:a,y2:l,width:a-r,height:l-o,centerX:r+(a-r)/2,centerY:o+(l-o)/2}}function tm(n,t){if(!Yf(t)){const e=wl(n,t);let i=t.radius;(!i||isNaN(i))&&(i=Math.min(e.width,e.height)/2,t.radius=i);const s=i*2,r=e.centerX+t.xAdjust,a=e.centerY+t.yAdjust;return{x:r-i,y:a-i,x2:r+i,y2:a+i,centerX:r,centerY:a,width:s,height:s,radius:i}}return Ek(n,t)}function Ok(n,t){const{scales:e,chartArea:i}=n,s=e[t.scaleID],r={x:i.left,y:i.top,x2:i.right,y2:i.bottom};return s?Ak(s,r,t):Pk(e,r,t),r}function em(n,t){const e=wl(n,t);return e.initProperties=Ii(n,e,t),e.elements=[{type:"label",optionScope:"label",properties:Lk(n,e,t),initProperties:e.initProperties}],e}function Ek(n,t){const e=Jf(n,t),i=t.radius*2;return{x:e.x-t.radius+t.xAdjust,y:e.y-t.radius+t.yAdjust,x2:e.x+t.radius+t.xAdjust,y2:e.y+t.radius+t.yAdjust,centerX:e.x+t.xAdjust,centerY:e.y+t.yAdjust,radius:t.radius,width:i,height:i}}function nm(n,t){const e=Qf(n,t)||t;return{start:Math.min(e.start,e.end),end:Math.max(e.start,e.end)}}function Ak(n,t,e){const i=Ni(n,e.value,NaN),s=Ni(n,e.endValue,i);n.isHorizontal()?(t.x=i,t.x2=s):(t.y=i,t.y2=s)}function Pk(n,t,e){for(const i of Object.keys(Zf)){const s=n[ri(n,e,i)];if(s){const{min:r,max:a,start:o,end:l,startProp:c,endProp:u}=Zf[i],h=Qf(s,{min:e[r],max:e[a],start:s[o],end:s[l]});t[c]=h.start,t[u]=h.end}}}function Rk({properties:n,options:t},e,i,s){const{x:r,x2:a,width:o}=n;return im({start:r,end:a,borderWidth:t.borderWidth},{position:i.x,padding:{start:s.left,end:s.right},adjust:t.label.xAdjust,size:e.width})}function Ik({properties:n,options:t},e,i,s){const{y:r,y2:a,height:o}=n;return im({start:r,end:a,borderWidth:t.borderWidth},{position:i.y,padding:{start:s.top,end:s.bottom},adjust:t.label.yAdjust,size:e.height})}function im(n,t){const{start:e,end:i,borderWidth:s}=n,{position:r,padding:{start:a,end:o},adjust:l}=t,c=i-s-e-a-o-t.size;return e+s/2+l+bl(c,r)}function Lk(n,t,e){const i=e.label;i.backgroundColor="transparent",i.callout.display=!1;const s=_l(i.position),r=Yt(i.padding),a=da(n.ctx,i),o=Rk({properties:t,options:e},a,s,r),l=Ik({properties:t,options:e},a,s,r),c=a.width+r.width,u=a.height+r.height;return{x:o,y:l,x2:o+c,y2:l+u,width:c,height:u,centerX:o+c/2,centerY:l+u/2,rotation:i.rotation}}const Sl=["enter","leave"],vl=Sl.concat("click");function Nk(n,t,e){t.listened=jf(e,vl,t.listeners),t.moveListened=!1,Sl.forEach(i=>{pe(e[i])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(i=>{!t.listened&&pe(i.click)&&(t.listened=!0),t.moveListened||Sl.forEach(s=>{pe(i[s])&&(t.listened=!0,t.moveListened=!0)})})}function Fk(n,t,e){if(n.listened)switch(t.type){case"mousemove":case"mouseout":return Bk(n,t,e);case"click":return zk(n,t,e)}}function Bk(n,t,e){if(!n.moveListened)return;let i;t.type==="mousemove"?i=yl(n.visibleElements,t,e.interaction):i=[];const s=n.hovered;n.hovered=i;const r={state:n,event:t};let a=sm(r,"leave",s,i);return sm(r,"enter",i,s)||a}function sm({state:n,event:t},e,i,s){let r;for(const a of i)s.indexOf(a)<0&&(r=rm(a.options[e]||n.listeners[e],a,t)||r);return r}function zk(n,t,e){const i=n.listeners,s=yl(n.visibleElements,t,e.interaction);let r;for(const a of s)r=rm(a.options.click||i.click,a,t)||r;return r}function rm(n,t,e){return Tt(n,[t.$context,e])===!0}const ha=["afterDraw","beforeDraw"];function Uk(n,t,e){const i=t.visibleElements;t.hooked=jf(e,ha,t.hooks),t.hooked||i.forEach(s=>{t.hooked||ha.forEach(r=>{pe(s.options[r])&&(t.hooked=!0)})})}function am(n,t,e){if(n.hooked){const i=t.options[e]||n.hooks[e];return Tt(i,[t.$context])}}function Hk(n,t,e){const i=jk(n.scales,t,e);let s=om(t,i,"min","suggestedMin");s=om(t,i,"max","suggestedMax")||s,s&&pe(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function Wk(n,t){for(const e of n)Yk(e,t)}function om(n,t,e,i){if(Pt(t[e])&&!Vk(n.options,e,i)){const s=n[e]!==t[e];return n[e]=t[e],s}}function Vk(n,t,e){return ge(n[t])||ge(n[e])}function Yk(n,t){for(const e of["scaleID","xScaleID","yScaleID"]){const i=ri(t,n,e);i&&!t[i]&&$k(n,e)&&console.warn(`No scale found with id '${i}' for annotation '${n.id}'`)}}function $k(n,t){if(t==="scaleID")return!0;const e=t.charAt(0);for(const i of["Min","Max","Value"])if(ge(n[e+i]))return!0;return!1}function jk(n,t,e){const i=t.axis,s=t.id,r=i+"ScaleID",a={min:st(t.min,Number.NEGATIVE_INFINITY),max:st(t.max,Number.POSITIVE_INFINITY)};for(const o of e)o.scaleID===s?lm(o,t,["value","endValue"],a):ri(n,o,r)===s&&lm(o,t,[i+"Min",i+"Max",i+"Value"],a);return a}function lm(n,t,e,i){for(const s of e){const r=n[s];if(ge(r)){const a=t.parse(r);i.min=Math.min(i.min,a),i.max=Math.max(i.max,a)}}}class Fi extends Zt{inRange(t,e,i,s){const{x:r,y:a}=ni({x:t,y:e},this.getCenterPoint(s),Vt(-this.options.rotation));return Nf({x:r,y:a},this.getProps(["x","y","x2","y2"],s),i,this.options)}getCenterPoint(t){return si(this,t)}draw(t){t.save(),ua(t,this.getCenterPoint(),this.options.rotation),Gf(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return em(t,e)}}Fi.id="boxAnnotation",Fi.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,hitTolerance:0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Fi.defaultRoutes={borderColor:"color",backgroundColor:"color"},Fi.descriptors={label:{_fallback:!0}};class fa extends Zt{inRange(t,e,i,s){return Ff({x:t,y:e},{rect:this.getProps(["x","y","x2","y2"],s),center:this.getCenterPoint(s)},i,{rotation:this.rotation,borderWidth:0,hitTolerance:this.options.hitTolerance})}getCenterPoint(t){return si(this,t)}draw(t){const e=this.options;!e.display||!e.content||(Qk(t,this),t.save(),ua(t,this.getCenterPoint(),this.rotation),Xf(t,this,e,this._fitRatio),t.restore())}resolveElementProperties(t,e){const i=qk(t,e);if(!i)return{};const{controllerMeta:s,point:r,radius:a}=Xk(t,e,i);let o=da(t.ctx,e);const l=Kk(o,a);Wf(e,l)&&(o={width:o.width*l,height:o.height*l});const{position:c,xAdjust:u,yAdjust:h}=e,f=Hf(r,o,{borderWidth:0,position:c,xAdjust:u,yAdjust:h});return{initProperties:Ii(t,f,e),...f,...s,rotation:e.rotation,_fitRatio:l}}}fa.id="doughnutLabelAnnotation",fa.defaults={autoFit:!0,autoHide:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderColor:"transparent",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:0,color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,spacing:1,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0},fa.defaultRoutes={};function qk(n,t){return n.getSortedVisibleDatasetMetas().reduce(function(e,i){const s=i.controller;return s instanceof sn&&Gk(n,t,i.data)&&(!e||s.innerRadius<e.controller.innerRadius)&&s.options.circumference>=90?i:e},void 0)}function Gk(n,t,e){if(!t.autoHide)return!0;for(let i=0;i<e.length;i++)if(!e[i].hidden&&n.getDataVisibility(i))return!0}function Xk({chartArea:n},t,e){const{left:i,top:s,right:r,bottom:a}=n,{innerRadius:o,offsetX:l,offsetY:c}=e.controller,u=(i+r)/2+l,h=(s+a)/2+c,f={left:Math.max(u-o,i),right:Math.min(u+o,r),top:Math.max(h-o,s),bottom:Math.min(h+o,a)},m={x:(f.left+f.right)/2,y:(f.top+f.bottom)/2},p=t.spacing+t.borderWidth/2,_=o-p,x=m.y>h,S=x?s+p:a-p,M=Zk(S,u,h,_);return{controllerMeta:{_centerX:u,_centerY:h,_radius:_,_counterclockwise:x,...M},point:m,radius:Math.min(o,Math.min(f.right-f.left,f.bottom-f.top)/2)}}function Kk({width:n,height:t},e){const i=Math.sqrt(Math.pow(n,2)+Math.pow(t,2));return e*2/i}function Zk(n,t,e,i){const s=Math.pow(e-n,2),r=Math.pow(i,2),a=t*-2,o=Math.pow(t,2)+s-r,l=Math.pow(a,2)-4*o;if(l<=0)return{_startAngle:0,_endAngle:Ct};const c=(-a-Math.sqrt(l))/2,u=(-a+Math.sqrt(l))/2;return{_startAngle:gr({x:t,y:e},{x:c,y:n}).angle,_endAngle:gr({x:t,y:e},{x:u,y:n}).angle}}function Qk(n,t){const{_centerX:e,_centerY:i,_radius:s,_startAngle:r,_endAngle:a,_counterclockwise:o,options:l}=t;n.save();const c=on(n,l);n.fillStyle=l.backgroundColor,n.beginPath(),n.arc(e,i,s,r,a,o),n.closePath(),n.fill(),c&&n.stroke(),n.restore()}class $s extends Zt{inRange(t,e,i,s){return Ff({x:t,y:e},{rect:this.getProps(["x","y","x2","y2"],s),center:this.getCenterPoint(s)},i,{rotation:this.rotation,borderWidth:this.options.borderWidth,hitTolerance:this.options.hitTolerance})}getCenterPoint(t){return si(this,t)}draw(t){const e=this.options,i=!ge(this._visible)||this._visible;!e.display||!e.content||!i||(t.save(),ua(t,this.getCenterPoint(),this.rotation),wk(t,this),Gf(t,this,e),Xf(t,Jk(this),e),t.restore())}resolveElementProperties(t,e){let i;if(Yf(e))i=Jf(t,e);else{const{centerX:o,centerY:l}=wl(t,e);i={x:o,y:l}}const s=Yt(e.padding),r=da(t.ctx,e),a=Hf(i,r,e,s);return{initProperties:Ii(t,a,e),pointX:i.x,pointY:i.y,...a,rotation:e.rotation}}}$s.id="labelAnnotation",$s.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},$s.defaultRoutes={borderColor:"color"};function Jk({x:n,y:t,width:e,height:i,options:s}){const r=s.borderWidth/2,a=Yt(s.padding);return{x:n+a.left+r,y:t+a.top+r,width:e-a.left-a.right-s.borderWidth,height:i-a.top-a.bottom-s.borderWidth}}const Tl=(n,t,e)=>({x:n.x+e*(t.x-n.x),y:n.y+e*(t.y-n.y)}),Ml=(n,t,e)=>Tl(t,e,Math.abs((n-t.y)/(e.y-t.y))).x,cm=(n,t,e)=>Tl(t,e,Math.abs((n-t.x)/(e.x-t.x))).y,js=n=>n*n,tD=(n,t,{x:e,y:i,x2:s,y2:r},a)=>a==="y"?{start:Math.min(i,r),end:Math.max(i,r),value:t}:{start:Math.min(e,s),end:Math.max(e,s),value:n},um=(n,t,e,i)=>(1-i)*(1-i)*n+2*(1-i)*i*t+i*i*e,kl=(n,t,e,i)=>({x:um(n.x,t.x,e.x,i),y:um(n.y,t.y,e.y,i)}),dm=(n,t,e,i)=>2*(1-i)*(t-n)+2*i*(e-t),hm=(n,t,e,i)=>-Math.atan2(dm(n.x,t.x,e.x,i),dm(n.y,t.y,e.y,i))+.5*ct;class qs extends Zt{inRange(t,e,i,s){const r=(this.options.borderWidth+this.options.hitTolerance)/2;if(i!=="x"&&i!=="y"){const a={mouseX:t,mouseY:e},{path:o,ctx:l}=this;if(o){on(l,this.options),l.lineWidth+=this.options.hitTolerance;const{chart:u}=this.$context,h=t*u.currentDevicePixelRatio,f=e*u.currentDevicePixelRatio,m=l.isPointInStroke(o,h,f)||Dl(this,a,s);return l.restore(),m}const c=js(r);return sD(this,a,c,s)||Dl(this,a,s)}return eD(this,{mouseX:t,mouseY:e},i,{hitSize:r,useFinalPosition:s})}getCenterPoint(t){return si(this,t)}draw(t){const{x:e,y:i,x2:s,y2:r,cp:a,options:o}=this;if(t.save(),!on(t,o))return t.restore();Li(t,o);const l=Math.sqrt(Math.pow(s-e,2)+Math.pow(r-i,2));if(o.curve&&a)return hD(t,this,a,l),t.restore();const{startOpts:c,endOpts:u,startAdjust:h,endAdjust:f}=ym(this),m=Math.atan2(r-i,s-e);t.translate(e,i),t.rotate(m),t.beginPath(),t.moveTo(0+h,0),t.lineTo(l-f,0),t.shadowColor=o.borderShadowColor,t.stroke(),Cl(t,0,h,c),Cl(t,l,-f,u),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){const i=Ok(t,e),{x:s,y:r,x2:a,y2:o}=i,l=nD(i,t.chartArea),c=l?iD({x:s,y:r},{x:a,y:o},t.chartArea):{x:s,y:r,x2:a,y2:o,width:Math.abs(a-s),height:Math.abs(o-r)};if(c.centerX=(a+s)/2,c.centerY=(o+r)/2,c.initProperties=Ii(t,c,e),e.curve){const h={x:c.x,y:c.y},f={x:c.x2,y:c.y2};c.cp=dD(c,e,pi(h,f))}const u=rD(t,c,e.label);return u._visible=l,c.elements=[{type:"label",optionScope:"label",properties:u,initProperties:c.initProperties}],c}}qs.id="lineAnnotation";const fm={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};qs.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},fm),fill:!1,length:12,start:Object.assign({},fm),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,hitTolerance:0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},$s.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},qs.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},qs.defaultRoutes={borderColor:"color"};function eD(n,{mouseX:t,mouseY:e},i,{hitSize:s,useFinalPosition:r}){const a=tD(t,e,n.getProps(["x","y","x2","y2"],r),i);return Lf(a,s)||Dl(n,{mouseX:t,mouseY:e},r,i)}function nD({x:n,y:t,x2:e,y2:i},{top:s,right:r,bottom:a,left:o}){return!(n<o&&e<o||n>r&&e>r||t<s&&i<s||t>a&&i>a)}function mm({x:n,y:t},e,{top:i,right:s,bottom:r,left:a}){return n<a&&(t=cm(a,{x:n,y:t},e),n=a),n>s&&(t=cm(s,{x:n,y:t},e),n=s),t<i&&(n=Ml(i,{x:n,y:t},e),t=i),t>r&&(n=Ml(r,{x:n,y:t},e),t=r),{x:n,y:t}}function iD(n,t,e){const{x:i,y:s}=mm(n,t,e),{x:r,y:a}=mm(t,n,e);return{x:i,y:s,x2:r,y2:a,width:Math.abs(r-i),height:Math.abs(a-s)}}function sD(n,{mouseX:t,mouseY:e},i=ii,s){const{x:r,y:a,x2:o,y2:l}=n.getProps(["x","y","x2","y2"],s),c=o-r,u=l-a,h=js(c)+js(u),f=h===0?-1:((t-r)*c+(e-a)*u)/h;let m,p;return f<0?(m=r,p=a):f>1?(m=o,p=l):(m=r+f*c,p=a+f*u),js(t-m)+js(e-p)<=i}function Dl(n,{mouseX:t,mouseY:e},i,s){const r=n.label;return r.options.display&&r.inRange(t,e,s,i)}function rD(n,t,e){const i=e.borderWidth,s=Yt(e.padding),r=da(n.ctx,e),a=r.width+s.width+i,o=r.height+s.height+i;return oD(t,e,{width:a,height:o,padding:s},n.chartArea)}function aD(n){const{x:t,y:e,x2:i,y2:s}=n,r=Math.atan2(s-e,i-t);return r>ct/2?r-ct:r<ct/-2?r+ct:r}function oD(n,t,e,i){const{width:s,height:r,padding:a}=e,{xAdjust:o,yAdjust:l}=t,c={x:n.x,y:n.y},u={x:n.x2,y:n.y2},h=t.rotation==="auto"?aD(n):Vt(t.rotation),f=lD(s,r,h),m=cD(n,t,{labelSize:f,padding:a},i),p=n.cp?kl(c,n.cp,u,m):Tl(c,u,m),_={size:f.w,min:i.left,max:i.right,padding:a.left},x={size:f.h,min:i.top,max:i.bottom,padding:a.top},S=pm(p.x,_)+o,M=pm(p.y,x)+l;return{x:S-s/2,y:M-r/2,x2:S+s/2,y2:M+r/2,centerX:S,centerY:M,pointX:p.x,pointY:p.y,width:s,height:r,rotation:mr(h)}}function lD(n,t,e){const i=Math.cos(e),s=Math.sin(e);return{w:Math.abs(n*i)+Math.abs(t*s),h:Math.abs(n*s)+Math.abs(t*i)}}function cD(n,t,e,i){let s;const r=uD(n,i);return t.position==="start"?s=gm({w:n.x2-n.x,h:n.y2-n.y},e,t,r):t.position==="end"?s=1-gm({w:n.x-n.x2,h:n.y-n.y2},e,t,r):s=bl(1,t.position),s}function gm(n,t,e,i){const{labelSize:s,padding:r}=t,a=n.w*i.dx,o=n.h*i.dy,l=a>0&&(s.w/2+r.left-i.x)/a,c=o>0&&(s.h/2+r.top-i.y)/o;return la(Math.max(l,c),0,.25)}function uD(n,t){const{x:e,x2:i,y:s,y2:r}=n,a=Math.min(s,r)-t.top,o=Math.min(e,i)-t.left,l=t.bottom-Math.max(s,r),c=t.right-Math.max(e,i);return{x:Math.min(o,c),y:Math.min(a,l),dx:o<=c?1:-1,dy:a<=l?1:-1}}function pm(n,t){const{size:e,min:i,max:s,padding:r}=t,a=e/2;return e>s-i?(s+i)/2:(i>=n-r-a&&(n=i+r+a),s<=n+r+a&&(n=s-r-a),n)}function ym(n){const t=n.options,e=t.arrowHeads&&t.arrowHeads.start,i=t.arrowHeads&&t.arrowHeads.end;return{startOpts:e,endOpts:i,startAdjust:bm(n,e),endAdjust:bm(n,i)}}function bm(n,t){if(!t||!t.display)return 0;const{length:e,width:i}=t,s=n.options.borderWidth/2,r={x:e,y:i+s};return Math.abs(Ml(0,r,{x:0,y:s}))}function Cl(n,t,e,i){if(!i||!i.display)return;const{length:s,width:r,fill:a,backgroundColor:o,borderColor:l}=i,c=Math.abs(t-s)+e;n.beginPath(),Li(n,i),on(n,i),n.moveTo(c,-r),n.lineTo(t+e,0),n.lineTo(c,r),a===!0?(n.fillStyle=o||l,n.closePath(),n.fill(),n.shadowColor="transparent"):n.shadowColor=i.borderShadowColor,n.stroke()}function dD(n,t,e){const{x:i,y:s,x2:r,y2:a,centerX:o,centerY:l}=n,c=Math.atan2(a-s,r-i),u=_l(t.controlPoint,0),h={x:o+An(e,u.x,!1),y:l+An(e,u.y,!1)};return ni(h,{x:o,y:l},c)}function _m(n,{x:t,y:e},{angle:i,adjust:s},r){!r||!r.display||(n.save(),n.translate(t,e),n.rotate(i),Cl(n,0,-s,r),n.restore())}function hD(n,t,e,i){const{x:s,y:r,x2:a,y2:o,options:l}=t,{startOpts:c,endOpts:u,startAdjust:h,endAdjust:f}=ym(t),m={x:s,y:r},p={x:a,y:o},_=hm(m,e,p,0),x=hm(m,e,p,1)-ct,S=kl(m,e,p,h/i),M=kl(m,e,p,1-f/i),O=new Path2D;n.beginPath(),O.moveTo(S.x,S.y),O.quadraticCurveTo(e.x,e.y,M.x,M.y),n.shadowColor=l.borderShadowColor,n.stroke(O),t.path=O,t.ctx=n,_m(n,S,{angle:_,adjust:h},c),_m(n,M,{angle:x,adjust:f},u)}class Gs extends Zt{inRange(t,e,i,s){const r=this.options.rotation,a=(this.options.borderWidth+this.options.hitTolerance)/2;if(i!=="x"&&i!=="y")return fD({x:t,y:e},this.getProps(["width","height","centerX","centerY"],s),r,a);const{x:o,y:l,x2:c,y2:u}=this.getProps(["x","y","x2","y2"],s),h=i==="y"?{start:l,end:u}:{start:o,end:c},f=ni({x:t,y:e},this.getCenterPoint(s),Vt(-r));return f[i]>=h.start-a-ii&&f[i]<=h.end+a+ii}getCenterPoint(t){return si(this,t)}draw(t){const{width:e,height:i,centerX:s,centerY:r,options:a}=this;t.save(),ua(t,this.getCenterPoint(),a.rotation),Li(t,this.options),t.beginPath(),t.fillStyle=a.backgroundColor;const o=on(t,a);t.ellipse(s,r,i/2,e/2,ct/2,0,2*ct),t.fill(),o&&(t.shadowColor=a.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return em(t,e)}}Gs.id="ellipseAnnotation",Gs.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,label:Object.assign({},Fi.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Gs.defaultRoutes={borderColor:"color",backgroundColor:"color"},Gs.descriptors={label:{_fallback:!0}};function fD(n,t,e,i){const{width:s,height:r,centerX:a,centerY:o}=t,l=s/2,c=r/2;if(l<=0||c<=0)return!1;const u=Vt(e||0),h=Math.cos(u),f=Math.sin(u),m=Math.pow(h*(n.x-a)+f*(n.y-o),2),p=Math.pow(f*(n.x-a)-h*(n.y-o),2);return m/Math.pow(l+i,2)+p/Math.pow(c+i,2)<=1.0001}class ma extends Zt{inRange(t,e,i,s){const{x:r,y:a,x2:o,y2:l,width:c}=this.getProps(["x","y","x2","y2","width"],s),u=(this.options.borderWidth+this.options.hitTolerance)/2;return i!=="x"&&i!=="y"?ok({x:t,y:e},this.getCenterPoint(s),c/2,u):Lf(i==="y"?{start:a,end:l,value:e}:{start:r,end:o,value:t},u)}getCenterPoint(t){return si(this,t)}draw(t){const e=this.options,i=e.borderWidth;if(e.radius<.1)return;t.save(),t.fillStyle=e.backgroundColor,Li(t,e);const s=on(t,e);gk(t,this,this.centerX,this.centerY),s&&!ca(e.pointStyle)&&(t.shadowColor=e.borderShadowColor,t.stroke()),t.restore(),e.borderWidth=i}resolveElementProperties(t,e){const i=tm(t,e);return i.initProperties=Ii(t,i,e),i}}ma.id="pointAnnotation",ma.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},ma.defaultRoutes={borderColor:"color",backgroundColor:"color"};class ga extends Zt{inRange(t,e,i,s){if(i!=="x"&&i!=="y")return this.options.radius>=.1&&this.elements.length>1&&gD(this.elements,t,e,s);const r=ni({x:t,y:e},this.getCenterPoint(s),Vt(-this.options.rotation)),a=this.elements.map(c=>i==="y"?c.bY:c.bX),o=Math.min(...a),l=Math.max(...a);return r[i]>=o&&r[i]<=l}getCenterPoint(t){return si(this,t)}draw(t){const{elements:e,options:i}=this;t.save(),t.beginPath(),t.fillStyle=i.backgroundColor,Li(t,i);const s=on(t,i);let r=!0;for(const a of e)r?(t.moveTo(a.x,a.y),r=!1):t.lineTo(a.x,a.y);t.closePath(),t.fill(),s&&(t.shadowColor=i.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,e){const i=tm(t,e),{sides:s,rotation:r}=e,a=[],o=2*ct/s;let l=r*Ha;for(let c=0;c<s;c++,l+=o){const u=mD(i,e,l);u.initProperties=Ii(t,i,e),a.push(u)}return i.elements=a,i}}ga.id="polygonAnnotation",ga.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},ga.defaultRoutes={borderColor:"color",backgroundColor:"color"};function mD({centerX:n,centerY:t},{radius:e,borderWidth:i,hitTolerance:s},r){const a=(i+s)/2,o=Math.sin(r),l=Math.cos(r),c={x:n+o*e,y:t-l*e};return{type:"point",optionScope:"point",properties:{x:c.x,y:c.y,centerX:c.x,centerY:c.y,bX:n+o*(e+a),bY:t-l*(e+a)}}}function gD(n,t,e,i){let s=!1,r=n[n.length-1].getProps(["bX","bY"],i);for(const a of n){const o=a.getProps(["bX","bY"],i);o.bY>e!=r.bY>e&&t<(r.bX-o.bX)*(e-o.bY)/(r.bY-o.bY)+o.bX&&(s=!s),r=o}return s}const Pn={box:Fi,doughnutLabel:fa,ellipse:Gs,label:$s,line:qs,point:ma,polygon:ga};Object.keys(Pn).forEach(n=>{At.describe(`elements.${Pn[n].id}`,{_fallback:"plugins.annotation.common"})});const pD={update:Object.assign},yD=vl.concat(ha),xm=(n,t)=>ht(t)?Al(n,t):n,Ol=n=>n==="color"||n==="font";function El(n="line"){return Pn[n]?n:(console.warn(`Unknown annotation type: '${n}', defaulting to 'line'`),"line")}function bD(n,t,e,i){const s=xD(n,e.animations,i),r=t.annotations,a=vD(t.elements,r);for(let o=0;o<r.length;o++){const l=r[o],c=wm(a,o,l.type),u=l.setContext(SD(n,c,a,l)),h=c.resolveElementProperties(n,u);h.skip=_D(h),"elements"in h&&(wD(c,h.elements,u,s),delete h.elements),ge(c.x)||Object.assign(c,h),Object.assign(c,h.initProperties),h.options=Sm(u),s.update(c,h)}}function _D(n){return isNaN(n.x)||isNaN(n.y)}function xD(n,t,e){return e==="reset"||e==="none"||e==="resize"?pD:new no(n,t)}function wD(n,t,e,i){const s=n.elements||(n.elements=[]);s.length=t.length;for(let r=0;r<t.length;r++){const a=t[r],o=a.properties,l=wm(s,r,a.type,a.initProperties),c=e[a.optionScope].override(a);o.options=Sm(c),i.update(l,o)}}function wm(n,t,e,i){const s=Pn[El(e)];let r=n[t];return(!r||!(r instanceof s))&&(r=n[t]=new s,Object.assign(r,i)),r}function Sm(n){const t=Pn[El(n.type)],e={};e.id=n.id,e.type=n.type,e.drawTime=n.drawTime,Object.assign(e,Al(n,t.defaults),Al(n,t.defaultRoutes));for(const i of yD)e[i]=n[i];return e}function Al(n,t){const e={};for(const i of Object.keys(t)){const s=t[i],r=n[i];Ol(i)&&wt(r)?e[i]=r.map(a=>xm(a,s)):e[i]=xm(r,s)}return e}function SD(n,t,e,i){return t.$context||(t.$context=Object.assign(Object.create(n.getContext()),{element:t,get elements(){return e.filter(s=>s&&s.options)},id:i.id,type:"annotation"}))}function vD(n,t){const e=t.length,i=n.length;if(i<e){const s=e-i;n.splice(i,0,...new Array(s))}else i>e&&n.splice(e,i-e);return n}var TD="3.1.0";const Rn=new Map,vm=n=>n.type!=="doughnutLabel",MD=vl.concat(ha);var Tm={id:"annotation",version:TD,beforeRegister(){lk("chart.js","4.0",ye.version)},afterRegister(){ye.register(Pn)},afterUnregister(){ye.unregister(Pn)},beforeInit(n){Rn.set(n,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(n,t,e){const i=Rn.get(n),s=i.annotations=[];let r=e.annotations;ht(r)?Object.keys(r).forEach(a=>{const o=r[a];ht(o)&&(o.id=a,s.push(o))}):wt(r)&&s.push(...r),Wk(s.filter(vm),n.scales)},afterDataLimits(n,t){const e=Rn.get(n);Hk(n,t.scale,e.annotations.filter(vm).filter(i=>i.display&&i.adjustScaleRange))},afterUpdate(n,t,e){const i=Rn.get(n);Nk(n,i,e),bD(n,i,e,t.mode),i.visibleElements=i.elements.filter(s=>!s.skip&&s.options.display),Uk(n,i,e)},beforeDatasetsDraw(n,t,e){Xs(n,"beforeDatasetsDraw",e.clip)},afterDatasetsDraw(n,t,e){Xs(n,"afterDatasetsDraw",e.clip)},beforeDatasetDraw(n,t,e){Xs(n,t.index,e.clip)},beforeDraw(n,t,e){Xs(n,"beforeDraw",e.clip)},afterDraw(n,t,e){Xs(n,"afterDraw",e.clip)},beforeEvent(n,t,e){const i=Rn.get(n);Fk(i,t.event,e)&&(t.changed=!0)},afterDestroy(n){Rn.delete(n)},getAnnotations(n){const t=Rn.get(n);return t?t.elements:[]},_getAnnotationElementsAtEventForMode(n,t,e){return yl(n,t,e)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"},colors:{properties:["backgroundColor","borderColor"],type:"color"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:n=>!MD.includes(n)&&n!=="init",annotations:{_allKeys:!1,_fallback:(n,t)=>`elements.${Pn[El(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:Ol,_fallback:!0},_indexable:Ol}},additionalOptionScopes:[""]};function Xs(n,t,e){const{ctx:i,chartArea:s}=n,r=Rn.get(n);e&&as(i,s);const a=kD(r.visibleElements,t).sort((o,l)=>o.element.options.z-l.element.options.z);for(const o of a)DD(i,s,r,o);e&&os(i)}function kD(n,t){const e=[];for(const i of n)if(i.options.drawTime===t&&e.push({element:i,main:!0}),i.elements&&i.elements.length)for(const s of i.elements)s.options.display&&s.options.drawTime===t&&e.push({element:s});return e}function DD(n,t,e,i){const s=i.element;i.main?(am(e,s,"beforeDraw"),s.draw(n,t),am(e,s,"afterDraw")):s.draw(n,t)}const CD={class:"zoom-timerange-container"},OD={class:"zoom-timerange-details"},ED={class:"label","data-testid":"zoom-timerange-from"},AD={class:"label","data-testid":"zoom-timerange-to"},PD=d.defineComponent({__name:"ZoomTimerange",props:{start:{},end:{},granularity:{}},setup(n){const t=n,{i18n:e}=ft.useI18n(),i=d.ref(Bs({tickValue:t.start,granularity:t.granularity})),s=d.ref(Bs({tickValue:t.end,granularity:t.granularity})),r=(a,o)=>{tf(()=>{i.value=Bs({tickValue:a,granularity:t.granularity}),s.value=Bs({tickValue:o,granularity:t.granularity})},100)()};return d.watch(()=>[t.start,t.end],([a,o])=>{r(a,o)},{immediate:!0}),(a,o)=>(d.openBlock(),d.createElementBlock("div",CD,[d.createElementVNode("div",OD,[d.createElementVNode("div",ED,d.toDisplayString(d.unref(e).t("zoom_time_range.from")),1),d.createElementVNode("div",null,d.toDisplayString(i.value),1),d.createElementVNode("div",AD,d.toDisplayString(d.unref(e).t("zoom_time_range.to")),1),d.createElementVNode("div",null,d.toDisplayString(s.value),1)])]))}}),Ce=(n,t)=>{const e=n.__vccOpts||n;for(const[i,s]of t)e[i]=s;return e},Mm=Ce(PD,[["__scopeId","data-v-4fa681cf"]]),RD={class:"zoom-actions-container"},ID={class:"zoom-actions-heading"},LD={class:"zoom-action-select"},ND=["data-testid"],FD=["aria-disabled","href"],BD=["onClick"],zD=Ce(d.defineComponent({__name:"ZoomActions",props:{zoomActionItems:{},newTimeRange:{},granularity:{}},emits:["onAction"],setup(n,{emit:t}){const e=n,i=t,s=r=>{r.action&&(r.action(e.newTimeRange),i("onAction"))};return(r,a)=>(d.openBlock(),d.createElementBlock("div",RD,[d.createElementVNode("div",ID,[d.createVNode(Mm,{end:n.newTimeRange.end,granularity:n.granularity,start:n.newTimeRange.start},null,8,["end","granularity","start"]),d.createVNode(d.unref(Gi.CloseIcon),{class:"zoom-actions-close-icon",color:d.unref(tl),size:d.unref(Ns),onClick:a[0]||(a[0]=o=>r.$emit("onAction"))},null,8,["color","size"])]),a[2]||(a[2]=d.createElementVNode("div",{class:"zoom-actions-heading-divider"},null,-1)),d.createElementVNode("div",LD,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.zoomActionItems,o=>(d.openBlock(),d.createElementBlock("div",{key:o.key,class:d.normalizeClass(["zoom-action-item",{disabled:o.disabled}]),"data-testid":`zoom-action-item-${o.key}`},[o.href?(d.openBlock(),d.createElementBlock("a",{key:0,"aria-disabled":o.disabled,class:"zoom-action-link",href:o.href,onClick:a[1]||(a[1]=l=>r.$emit("onAction"))},d.toDisplayString(o.label),9,FD)):(d.openBlock(),d.createElementBlock("div",{key:1,onClick:l=>s(o)},d.toDisplayString(o.label),9,BD))],10,ND))),128))])]))}}),[["__scopeId","data-v-179abac7"]]),UD={key:2},HD={class:"tooltip-title"},WD={class:"title"},VD={key:0,class:"subtitle"},YD={class:"context"},$D={class:"metric"},jD={class:"tooltip"},qD={key:0},GD={class:"display-value"},pa=Ce(d.defineComponent({__name:"ChartTooltip",props:{state:{},tooltipTitle:{default:""},absoluteLeft:{default:"0px"},absoluteTop:{default:"0px"},zoomTimeRange:{default:void 0},zoomActionItems:{default:void 0},granularity:{default:void 0}},emits:["dimensions","onAction"],setup(n,{emit:t}){const e=t,i=n,s=d.ref(null),{x:r,y:a,isDragging:o}=GM(s,{initialValue:{x:parseFloat(i.absoluteLeft),y:parseFloat(i.absoluteTop)}}),l=d.computed(()=>`${a.value}px`),c=d.computed(()=>`${r.value}px`),u=d.computed(()=>i.state.tooltipContext),h=d.computed(()=>i.state.metricDisplay),f=d.computed(()=>["interactive","zoom-interactive"].includes(i.state.interactionMode));return d.watch(()=>[i.absoluteLeft,i.absoluteTop],([m,p])=>{o.value||(r.value=parseFloat(m),a.value=parseFloat(p))}),d.watch(o,m=>{m?document.body.classList.add("no-select"):document.body.classList.remove("no-select")}),d.watch(s,m=>{if(m){const{width:p,height:_}=m.getBoundingClientRect();e("dimensions",{width:p,height:_})}}),(m,p)=>{var _,x;return n.state.showTooltip?(d.openBlock(),d.createElementBlock("div",{key:0,ref_key:"tooltipEl",ref:s,class:d.normalizeClass(["tooltip-container",{locked:n.state.interactionMode==="interactive"}]),style:d.normalizeStyle({transform:f.value?`translate(${c.value}, ${l.value})`:`translate(${n.absoluteLeft}, ${n.absoluteTop})`,left:"0",top:"0",pointerEvents:f.value?"all":"none"})},[n.state.interactionMode==="selecting-chart-area"&&n.granularity&&n.zoomTimeRange&&n.zoomTimeRange.end&&n.zoomTimeRange.start?(d.openBlock(),d.createBlock(Mm,{key:0,end:(_=n.zoomTimeRange)==null?void 0:_.end,granularity:n.granularity,start:(x=n.zoomTimeRange)==null?void 0:x.start},null,8,["end","granularity","start"])):n.state.interactionMode==="zoom-interactive"&&n.zoomTimeRange&&n.zoomActionItems&&n.granularity?(d.openBlock(),d.createBlock(zD,{key:1,granularity:n.granularity,"new-time-range":n.zoomTimeRange,"zoom-action-items":n.zoomActionItems,onOnAction:p[0]||(p[0]=S=>e("onAction"))},null,8,["granularity","new-time-range","zoom-action-items"])):(d.openBlock(),d.createElementBlock("div",UD,[d.createElementVNode("div",HD,[d.createElementVNode("div",WD,[d.createElementVNode("div",null,d.toDisplayString(n.tooltipTitle),1),f.value?(d.openBlock(),d.createBlock(d.unref(Gi.DragIcon),{key:0,class:"drag-icon",color:d.unref(tl),size:d.unref(Ns)},null,8,["color","size"])):d.createCommentVNode("",!0)]),u.value||h.value?(d.openBlock(),d.createElementBlock("div",VD,[d.createElementVNode("div",YD,d.toDisplayString(u.value),1),d.createElementVNode("div",$D,d.toDisplayString(h.value),1)])):d.createCommentVNode("",!0)]),d.createElementVNode("ul",jD,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.state.tooltipSeries,({backgroundColor:S,borderColor:M,label:O,value:A,isSegmentEmpty:E},D)=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:O+D},[n.state.tooltipSeries.length?(d.openBlock(),d.createElementBlock("li",qD,[d.createElementVNode("div",{class:"square-marker",style:d.normalizeStyle({background:String(S),borderColor:String(M)})},null,4),d.createElementVNode("span",{class:d.normalizeClass(["display-label",{empty:E}])},d.toDisplayString(O),3),d.createElementVNode("span",GD,d.toDisplayString(A),1)])):d.createCommentVNode("",!0)],64))),128))])]))],6)):d.createCommentVNode("",!0)}}}),[["__scopeId","data-v-b449481c"]]),XD={key:0,class:"legend-container","data-testid":"legend"},KD=["onClick"],ZD=["title"],QD={class:"label truncate-label"},JD={key:0,class:"sub-label"},tC={class:"tooltip-content"},Pl=Ce(d.defineComponent({__name:"ChartLegend",props:{id:{type:String,required:!0},items:{type:Object,required:!0},chartInstance:{type:Object,required:!1,default:()=>null}},setup(n){const t=n,{i18n:e}=ft.useI18n(),i=d.inject("showLegendValues",!1),s=d.inject("legendPosition",d.ref(xe.Bottom)),r=(o=0,l)=>{if(t.chartInstance===null)return;const c=t.chartInstance instanceof ye?t.chartInstance:t.chartInstance.chart;a(o,l)?c.hide(o,l):c.show(o,l),c.update()},a=(o=0,l)=>{if(t.chartInstance===null||t.chartInstance.chart===null)return!0;const c=t.chartInstance instanceof ye?t.chartInstance:t.chartInstance.chart,u=c.getDatasetMeta(o);return u.dataset||l===void 0?c.isDatasetVisible(o):!(u.data.length&&u.data[l].hidden)};return(o,l)=>{const c=d.resolveComponent("KTooltip");return d.unref(s)!==d.unref(xe).Hidden?(d.openBlock(),d.createElementBlock("ul",XD,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.items,({fillStyle:u,strokeStyle:h,text:f,datasetIndex:m,index:p,value:_,isSegmentEmpty:x})=>(d.openBlock(),d.createElementBlock("li",{key:f,onClick:S=>r(m,p)},[d.createElementVNode("div",{class:"square-marker",style:d.normalizeStyle({background:u,"border-color":h})},null,4),d.createVNode(c,null,d.createSlots({default:d.withCtx(()=>[d.createElementVNode("div",{class:d.normalizeClass(["label-container",{"strike-through":!a(m,p)}]),title:_&&d.unref(i)?`${f}: ${_.formatted}`:f},[d.createElementVNode("div",QD,d.toDisplayString(f),1),_&&d.unref(i)?(d.openBlock(),d.createElementBlock("div",JD,d.toDisplayString(_.formatted),1)):d.createCommentVNode("",!0)],10,ZD)]),_:2},[x?{name:"content",fn:d.withCtx(()=>[d.createElementVNode("div",tC,d.toDisplayString(d.unref(e).t("emptyEntityInfo")),1)]),key:"0"}:void 0]),1024)],8,KD))),128))])):d.createCommentVNode("",!0)}}}),[["__scopeId","data-v-27d1c6d3"]]),te=[];for(let n=0;n<256;++n)te.push((n+256).toString(16).slice(1));function eC(n,t=0){return(te[n[t+0]]+te[n[t+1]]+te[n[t+2]]+te[n[t+3]]+"-"+te[n[t+4]]+te[n[t+5]]+"-"+te[n[t+6]]+te[n[t+7]]+"-"+te[n[t+8]]+te[n[t+9]]+"-"+te[n[t+10]]+te[n[t+11]]+te[n[t+12]]+te[n[t+13]]+te[n[t+14]]+te[n[t+15]]).toLowerCase()}const nC=new Uint8Array(16);function iC(){return crypto.getRandomValues(nC)}function Rl(n,t,e){return crypto.randomUUID?crypto.randomUUID():sC(n)}function sC(n,t,e){var s;n=n||{};const i=n.random??((s=n.rng)==null?void 0:s.call(n))??iC();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,eC(i)}const km=(n,t)=>{const e=n.ctx,i=n.scales.y,s=n.scales.x,r=t[t.length-1].element;e.save(),e.strokeStyle="rgba(100, 100, 100, 1)",e.lineWidth=3,n.options.indexAxis==="x"?e.strokeRect(r.x-r.width/2,r.y,r.width,i.bottom-r.y):e.strokeRect(s.left,r.y-r.height/2,r.x-s.left,r.height),e.restore()};class Dm{constructor(){P(this,"id","highlightPlugin");P(this,"_clickedElements");P(this,"_previousHoverOption");P(this,"_clicked",!1);P(this,"_pause",!1);P(this,"_suppressNextClick",!1)}afterDatasetsDraw(t){this._clickedElements&&this._clickedElements.length&&!this._pause&&km(t,this._clickedElements)}afterEvent(t,{event:e}){var r;if(e.type==="click"&&this._suppressNextClick){this._suppressNextClick=!1;return}if(e.type!=="click"||!e.native||this._pause)return;this._clicked=!this._clicked;const i=((r=t.options.interaction)==null?void 0:r.mode)||"index",s=t.getElementsAtEventForMode(e.native,i,{intersect:!1},!0);s.length&&this._clicked?(this._clickedElements=s,km(t,this._clickedElements),this._previousHoverOption=t.options.hover,t.options.hover={mode:null}):(delete this._clickedElements,t.options.hover=this._previousHoverOption||t.options.hover,this._clicked=!1)}beforeDestroy(t){delete this._clickedElements,t.options.hover=this._previousHoverOption||t.options.hover,this._clicked=!1}pause(){this._pause=!0}get isPaused(){return this._pause}resume(t=!1){this._pause=!1,t&&(this._suppressNextClick=!0)}}const rC=["id"],aC=["id"],oC={class:"axis-tooltip-content"},lC="100%",cC="100%",uC=20,dC=20,Cm=6,hC=0,fC=10,mC=10,gC=1,pC=Ce(d.defineComponent({__name:"StackedBarChart",props:{chartData:{},tooltipTitle:{default:""},legendValues:{default:void 0},metricUnit:{default:""},orientation:{default:"horizontal"},annotations:{type:Boolean,default:!0},metricAxesTitle:{default:void 0},dimensionAxesTitle:{default:void 0},stacked:{type:Boolean,default:!0},syntheticsDataKey:{default:""},chartLegendSortFn:{type:Function,default:(n,t)=>n.value&&t.value&&t.value.raw-n.value.raw},chartTooltipSortFn:{type:Function,default:(n,t)=>t.rawValue-n.rawValue},tooltipMetricDisplay:{default:""}},setup(n){const t=n,{i18n:e}=ft.useI18n(),{translateUnit:i}=ft.useTranslatedUnits(),s=crypto.randomUUID(),r=crypto.randomUUID(),a=new Dm,o=d.useTemplateRef("chartContainer"),l=d.useTemplateRef("chartParent"),c=({chart:W},U)=>{var Z;const G=W.data,K=(Z=G.labels)==null?void 0:Z.indexOf(U);return G.datasets.reduce((X,mt,St)=>{if(W.isDatasetVisible(St)){const rt=mt.data[K];return isNaN(rt)?X:X+rt}else return X},0)},u=(W,U,G,K)=>{const Z=K==="horizontal";U===null&&(U=e.t("entityNoName"));const X={type:"label",yValue:rt=>Z?U:c(rt,U),xValue:rt=>Z?c(rt,U):U},mt={...X,position:Z?{x:"start",y:"center"}:{x:"center",y:"end"},yAdjust:()=>Z?0:-Math.abs(RT()),content:rt=>lf(c(rt,U),G)},St={...X,content:rt=>LT(c(rt,U),IT(rt.chart,W)),position:Z?{x:"start",y:"center"}:{x:"center",y:"end"},xAdjust:rt=>Z?PT(lf(c(rt,U),G)):0,color:MT};return{[`${U}-value`]:mt,[`${U}-percent`]:St}},h=d.useTemplateRef("canvas"),f=d.useTemplateRef("axis"),m=Rl(),p=Rl(),_=d.ref([]),x=d.inject("legendPosition",xe.Bottom),S=d.reactive({show:!1,top:"0px",left:"0px",text:"",offset:-50}),M=d.toRef(t,"metricUnit"),O=d.computed(()=>t.orientation==="horizontal"),A=d.reactive({showTooltip:!1,tooltipContext:"",metricDisplay:d.toRef(t,"tooltipMetricDisplay"),dimensionDisplay:d.toRef(t,"dimensionAxesTitle"),tooltipSeries:[],left:"",top:"",units:d.toRef(t,"metricUnit"),translateUnit:i,offsetX:0,offsetY:0,width:0,height:0,interactionMode:"idle",chartType:O.value?"horizontal_bar":"vertical_bar",chartID:r,chartTooltipSortFn:t.chartTooltipSortFn}),{tooltipAbsoluteLeft:E,tooltipAbsoluteTop:D}=ft.useTooltipAbsolutePosition(l,A),T=d.ref(0),g=()=>{var W;return t.annotations&&((W=t.chartData.labels)==null?void 0:W.reduce((U,G)=>Object.assign(U,u(t.chartData,G,M.value,t.orientation)),{}))},y={id:m,afterUpdate(W){T.value+=1,_.value=ef(W,t.legendValues,t.chartLegendSortFn)}},v={id:p,afterUpdate(W){W.options.plugins.annotation.annotations=t.annotations?g():{}}},R=[y,{id:"axisHover",afterEvent(W,U){var G;if(S.show=!1,U.event.type==="mousemove"){const K=U.event,Z=W.options.indexAxis,X=W.scales,mt=W.scales[Z].getLabelForValue(Number(W.scales[Z].getValueForPixel(K[Z]))),rt=W.scales[Z].getLabels().indexOf(mt),yt=(G=t.chartData.isLabelEmpty)==null?void 0:G[rt];if(($t=>$t==="x"?K.y>X.x.top:K.x<X.y.right)(Z)){A.interactionMode!=="interactive"&&(A.showTooltip=!1);const at=W.canvas.getContext("2d").measureText(mt).width,vt=Math.abs(Math.round(K.x-at*.5)),ee=Math.round(K.x+at*.5),le=W.canvas.getBoundingClientRect(),jt=40;S.left=Z==="x"?`${(vt>0?vt:ee)-S.offset+le.left}px`:`${K.x-at*.5-S.offset+le.left}px`,S.top=`${K.y-jt+le.top}px`,mt.length>ia?(S.show=!0,S.text=mt):yt?(S.text=e.t("emptyEntityInfo"),S.show=!0):S.show=!1}else S.show=!1}}},a,...t.annotations?[v]:[]],I=d.computed(()=>t.chartData.labels&&t.chartData.labels.length||0),F=d.ref(0),Y=d.ref(0),Q=new ResizeObserver(tf(W=>{F.value=W[0].contentRect.width,Y.value=W[0].contentRect.height},100)),V=d.computed(()=>{var U,G;const W=(G=(U=t.chartData)==null?void 0:U.labels)==null?void 0:G.length;return h.value&&W&&!O.value?`${Math.max(W*(uC+Cm),F.value)}px`:lC}),ot=d.computed(()=>{var U,G;const W=(G=(U=t.chartData)==null?void 0:U.labels)==null?void 0:G.length;return h.value&&W&&O.value?`${Math.max(W*(dC+Cm),Y.value)}px`:cC});ft.useReportChartDataForSynthetics(d.toRef(t,"chartData"),d.toRef(t,"syntheticsDataKey")),d.onMounted(()=>{t.annotations&&ye.register(Tm),o.value&&(F.value=o.value.offsetWidth,Y.value=o.value.offsetHeight,Q.observe(o.value))}),d.onUnmounted(()=>{o.value&&Q.unobserve(o.value)});const j=d.computed(()=>{const W=ft.useBarChartOptions({tooltipState:A,legendID:m,stacked:d.toRef(t,"stacked"),metricAxesTitle:d.toRef(t,"metricAxesTitle"),dimensionAxesTitle:d.toRef(t,"dimensionAxesTitle"),indexAxis:O.value?"y":"x",numLabels:I});return{...W.value,plugins:{...W.value.plugins,annotation:{annotations:g(),clip:!1}}}}),z=ft.useChartJSCommon("bar",h,d.toRef(t,"chartData"),R,j);d.onBeforeUnmount(()=>{ye.unregister(Tm)});const q={[xe.Bottom]:"column"},J=d.computed(()=>{if(f.value&&z.value){const W=window.devicePixelRatio,U=z.value,G=U.scales.y.width*W+gC,K=(U.scales.y.height+U.scales.y.top+U.scales.x.height)*W,Z=f.value.getContext("2d");return Z.scale(W,W),Z.canvas.width=G,Z.canvas.height=K,Z.canvas.style.width=`${G/W}px`,Z.canvas.style.height=`${K/W}px`,{scale:W,width:G*W,height:K*W,targetCtx:Z}}return null}),$=W=>{const U=W.target;if(J.value&&z.value&&!O.value){const G=J.value.scale,K=J.value.targetCtx,Z=J.value.width,X=J.value.height,mt=z.value,St=mt.canvas;K.fillStyle="white",U.scrollLeft>=hC&&U.scrollLeft<=fC?(K.globalCompositeOperation="source-over",K.clearRect(0,0,Z,X),K.drawImage(St,0,0,Z,X,0,0,Z,X),K.globalCompositeOperation="destination-over",K.fillRect(0,0,Z,X)):(K.globalCompositeOperation="source-over",K.fillRect(0,(mt.scales.y.height+mt.scales.y.top+mC)*G,Z,mt.scales.x.height*G))}A.offsetY=U.scrollTop,A.offsetX=U.scrollLeft,S.offset=U.scrollLeft},pt=({width:W,height:U})=>{A.width=W,A.height=U};d.watch(()=>t.orientation,()=>{var W;if(f.value&&J.value){const U=J.value.width,G=J.value.height;((W=f.value)==null?void 0:W.getContext("2d")).clearRect(0,0,U,G)}A.showTooltip=!1,A.interactionMode="idle"}),d.watch(()=>t.annotations,W=>{z.value&&(W?z.value.options.plugins.annotation.annotations=g(t.chartData):delete z.value.options.plugins.annotation.annotations)});const bt=()=>{A.showTooltip&&(A.interactionMode!=="idle"?A.interactionMode="idle":A.interactionMode="interactive")};return(W,U)=>(d.openBlock(),d.createElementBlock("div",{ref:"chartParent",class:d.normalizeClass(["chart-parent",q[d.unref(x)]])},[d.createElementVNode("canvas",{id:d.unref(s),ref:"axis",class:"axis"},null,8,rC),d.createElementVNode("div",{ref:"chartContainer",class:"chart-container",onClick:U[0]||(U[0]=G=>bt()),onScroll:$},[d.createElementVNode("div",{class:"chart-body",style:d.normalizeStyle({width:V.value,height:ot.value})},[d.createElementVNode("canvas",{id:d.unref(r),ref:"canvas",class:"chart-canvas"},null,8,aC)],4)],544),(d.openBlock(),d.createBlock(d.Teleport,{to:"body"},[S.show?(d.openBlock(),d.createElementBlock("div",{key:0,class:"axis-tooltip",style:d.normalizeStyle({top:S.top,left:S.left}),width:"auto"},[d.createElementVNode("div",oC,d.toDisplayString(S.text),1)],4)):d.createCommentVNode("",!0),d.createVNode(pa,{"absolute-left":d.unref(E),"absolute-top":d.unref(D),"chart-parent-ref":l.value,state:A,"tooltip-title":n.tooltipTitle,onDimensions:pt},null,8,["absolute-left","absolute-top","chart-parent-ref","state","tooltip-title"])])),d.createVNode(Pl,{id:d.unref(m),"chart-instance":d.unref(z),items:_.value},null,8,["id","chart-instance","items"])],2))}}),[["__scopeId","data-v-60e5a1a7"]]);/*!
|
|
23
|
+
*/const If={modes:{point(n,t){return oa(n,t,{intersect:!0})},nearest(n,t,e){return sk(n,t,e)},x(n,t,e){return oa(n,t,{intersect:e.intersect,axis:"x"})},y(n,t,e){return oa(n,t,{intersect:e.intersect,axis:"y"})}}};function yl(n,t,e){return(If.modes[e.mode]||If.modes.nearest)(n,t,e)}function nk(n,t,e){return e!=="x"&&e!=="y"?n.inRange(t.x,t.y,"x",!0)||n.inRange(t.x,t.y,"y",!0):n.inRange(t.x,t.y,e,!0)}function ik(n,t,e){return e==="x"?{x:n.x,y:t.y}:e==="y"?{x:t.x,y:n.y}:t}function oa(n,t,e){return n.filter(i=>e.intersect?i.inRange(t.x,t.y):nk(i,t,e.axis))}function sk(n,t,e){let i=Number.POSITIVE_INFINITY;return oa(n,t,e).reduce((s,r)=>{const a=r.getCenterPoint(),o=ik(t,a,e.axis),l=pi(t,o);return l<i?(s=[r],i=l):l===i&&s.push(r),s},[]).sort((s,r)=>s._index-r._index).slice(0,1)}function ni(n,t,e){const i=Math.cos(e),s=Math.sin(e),r=t.x,a=t.y;return{x:r+i*(n.x-r)-s*(n.y-a),y:a+s*(n.x-r)+i*(n.y-a)}}const rk=(n,t)=>t>n||n.length>t.length&&n.slice(0,t.length)===t,ii=.001,la=(n,t,e)=>Math.min(e,Math.max(t,n)),Lf=(n,t)=>n.value>=n.start-t&&n.value<=n.end+t;function ak(n,t,e){for(const i of Object.keys(n))n[i]=la(n[i],t,e);return n}function ok(n,t,e,i){return!n||!t||e<=0?!1:Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2)<=Math.pow(e+i,2)}function Nf(n,{x:t,y:e,x2:i,y2:s},r,{borderWidth:a,hitTolerance:o}){const l=(a+o)/2,c=n.x>=t-l-ii&&n.x<=i+l+ii,u=n.y>=e-l-ii&&n.y<=s+l+ii;return r==="x"?c:(r==="y"||c)&&u}function Ff(n,{rect:t,center:e},i,{rotation:s,borderWidth:r,hitTolerance:a}){const o=ni(n,e,Vt(-s));return Nf(o,t,i,{borderWidth:r,hitTolerance:a})}function si(n,t){const{centerX:e,centerY:i}=n.getProps(["centerX","centerY"],t);return{x:e,y:i}}function lk(n,t,e,i=!0){const s=e.split(".");let r=0;for(const a of t.split(".")){const o=s[r++];if(parseInt(a,10)<parseInt(o,10))break;if(rk(o,a)){if(i)throw new Error(`${n} v${e} is not supported. v${t} or newer is required.`);return!1}}return!0}const Bf=n=>typeof n=="string"&&n.endsWith("%"),zf=n=>parseFloat(n)/100,Uf=n=>la(zf(n),0,1),Ys=(n,t)=>({x:n,y:t,x2:n,y2:t,width:0,height:0}),ck={box:n=>Ys(n.centerX,n.centerY),doughnutLabel:n=>Ys(n.centerX,n.centerY),ellipse:n=>({centerX:n.centerX,centerY:n.centerX,radius:0,width:0,height:0}),label:n=>Ys(n.centerX,n.centerY),line:n=>Ys(n.x,n.y),point:n=>({centerX:n.centerX,centerY:n.centerY,radius:0,width:0,height:0}),polygon:n=>Ys(n.centerX,n.centerY)};function bl(n,t){return t==="start"?0:t==="end"?n:Bf(t)?Uf(t)*n:n/2}function An(n,t,e=!0){return typeof t=="number"?t:Bf(t)?(e?Uf(t):zf(t))*n:n}function uk(n,t){const{x:e,width:i}=n,s=t.textAlign;return s==="center"?e+i/2:s==="end"||s==="right"?e+i:e}function Hf(n,t,{borderWidth:e,position:i,xAdjust:s,yAdjust:r},a){const o=ht(a),l=t.width+(o?a.width:0)+e,c=t.height+(o?a.height:0)+e,u=_l(i),h=$f(n.x,l,s,u.x),f=$f(n.y,c,r,u.y);return{x:h,y:f,x2:h+l,y2:f+c,width:l,height:c,centerX:h+l/2,centerY:f+c/2}}function _l(n,t="center"){return ht(n)?{x:st(n.x,t),y:st(n.y,t)}:(n=st(n,t),{x:n,y:n})}const Wf=(n,t)=>n&&n.autoFit&&t<1;function Vf(n,t){const e=n.font,i=wt(e)?e:[e];return Wf(n,t)?i.map(function(s){const r=Rt(s);return r.size=Math.floor(s.size*t),r.lineHeight=s.lineHeight,Rt(r)}):i.map(s=>Rt(s))}function Yf(n){return n&&(ge(n.xValue)||ge(n.yValue))}function $f(n,t,e=0,i){return n-bl(t,i)+e}function Ii(n,t,e){const i=e.init;if(i){if(i===!0)return qf(t,e)}else return;return dk(n,t,e)}function jf(n,t,e){let i=!1;return t.forEach(s=>{pe(n[s])?(i=!0,e[s]=n[s]):ge(e[s])&&delete e[s]}),i}function qf(n,t){const e=t.type||"line";return ck[e](n)}function dk(n,t,e){const i=Tt(e.init,[{chart:n,properties:t,options:e}]);if(i===!0)return qf(t,e);if(ht(i))return i}const xl=new Map,hk=n=>isNaN(n)||n<=0,fk=n=>n.reduce(function(t,e){return t+=e.string,t},"");function ca(n){if(n&&typeof n=="object"){const t=n.toString();return t==="[object HTMLImageElement]"||t==="[object HTMLCanvasElement]"}}function ua(n,{x:t,y:e},i){i&&(n.translate(t,e),n.rotate(Vt(i)),n.translate(-t,-e))}function on(n,t){if(t&&t.borderWidth)return n.lineCap=t.borderCapStyle||"butt",n.setLineDash(t.borderDash),n.lineDashOffset=t.borderDashOffset,n.lineJoin=t.borderJoinStyle||"miter",n.lineWidth=t.borderWidth,n.strokeStyle=t.borderColor,!0}function Li(n,t){n.shadowColor=t.backgroundShadowColor,n.shadowBlur=t.shadowBlur,n.shadowOffsetX=t.shadowOffsetX,n.shadowOffsetY=t.shadowOffsetY}function da(n,t){const e=t.content;if(ca(e))return{width:An(e.width,t.width),height:An(e.height,t.height)};const i=Vf(t),s=t.textStrokeWidth,r=wt(e)?e:[e],a=r.join()+fk(i)+s+(n._measureText?"-spriting":"");return xl.has(a)||xl.set(a,yk(n,r,i,s)),xl.get(a)}function Gf(n,t,e){const{x:i,y:s,width:r,height:a}=t;n.save(),Li(n,e);const o=on(n,e);n.fillStyle=e.backgroundColor,n.beginPath(),yi(n,{x:i,y:s,w:r,h:a,radius:ak(wn(e.borderRadius),0,Math.min(r,a)/2)}),n.closePath(),n.fill(),o&&(n.shadowColor=e.borderShadowColor,n.stroke()),n.restore()}function Xf(n,t,e,i){const s=e.content;if(ca(s)){n.save(),n.globalAlpha=xk(e.opacity,s.style.opacity),n.drawImage(s,t.x,t.y,t.width,t.height),n.restore();return}const r=wt(s)?s:[s],a=Vf(e,i),o=e.color,l=wt(o)?o:[o],c=uk(t,e),u=t.y+e.textStrokeWidth/2;n.save(),n.textBaseline="middle",n.textAlign=e.textAlign,mk(n,e)&&bk(n,{x:c,y:u},r,a),_k(n,{x:c,y:u},r,{fonts:a,colors:l}),n.restore()}function mk(n,t){if(t.textStrokeWidth>0)return n.lineJoin="round",n.miterLimit=2,n.lineWidth=t.textStrokeWidth,n.strokeStyle=t.textStrokeColor,!0}function gk(n,t,e,i){const{radius:s,options:r}=t,a=r.pointStyle,o=r.rotation;let l=(o||0)*Ha;if(ca(a)){n.save(),n.translate(e,i),n.rotate(l),n.drawImage(a,-a.width/2,-a.height/2,a.width,a.height),n.restore();return}hk(s)||pk(n,{x:e,y:i,radius:s,rotation:o,style:a,rad:l})}function pk(n,{x:t,y:e,radius:i,rotation:s,style:r,rad:a}){let o,l,c,u;switch(n.beginPath(),r){default:n.arc(t,e,i,0,Ct),n.closePath();break;case"triangle":n.moveTo(t+Math.sin(a)*i,e-Math.cos(a)*i),a+=fr,n.lineTo(t+Math.sin(a)*i,e-Math.cos(a)*i),a+=fr,n.lineTo(t+Math.sin(a)*i,e-Math.cos(a)*i),n.closePath();break;case"rectRounded":u=i*.516,c=i-u,o=Math.cos(a+Ee)*c,l=Math.sin(a+Ee)*c,n.arc(t-o,e-l,u,a-ct,a-Et),n.arc(t+l,e-o,u,a-Et,a),n.arc(t+o,e+l,u,a,a+Et),n.arc(t-l,e+o,u,a+Et,a+ct),n.closePath();break;case"rect":if(!s){c=Math.SQRT1_2*i,n.rect(t-c,e-c,2*c,2*c);break}a+=Ee;case"rectRot":o=Math.cos(a)*i,l=Math.sin(a)*i,n.moveTo(t-o,e-l),n.lineTo(t+l,e-o),n.lineTo(t+o,e+l),n.lineTo(t-l,e+o),n.closePath();break;case"crossRot":a+=Ee;case"cross":o=Math.cos(a)*i,l=Math.sin(a)*i,n.moveTo(t-o,e-l),n.lineTo(t+o,e+l),n.moveTo(t+l,e-o),n.lineTo(t-l,e+o);break;case"star":o=Math.cos(a)*i,l=Math.sin(a)*i,n.moveTo(t-o,e-l),n.lineTo(t+o,e+l),n.moveTo(t+l,e-o),n.lineTo(t-l,e+o),a+=Ee,o=Math.cos(a)*i,l=Math.sin(a)*i,n.moveTo(t-o,e-l),n.lineTo(t+o,e+l),n.moveTo(t+l,e-o),n.lineTo(t-l,e+o);break;case"line":o=Math.cos(a)*i,l=Math.sin(a)*i,n.moveTo(t-o,e-l),n.lineTo(t+o,e+l);break;case"dash":n.moveTo(t,e),n.lineTo(t+Math.cos(a)*i,e+Math.sin(a)*i);break}n.fill()}function yk(n,t,e,i){n.save();const s=t.length;let r=0,a=i;for(let o=0;o<s;o++){const l=e[Math.min(o,e.length-1)];n.font=l.string;const c=t[o];r=Math.max(r,n.measureText(c).width+i),a+=l.lineHeight}return n.restore(),{width:r,height:a}}function bk(n,{x:t,y:e},i,s){n.beginPath();let r=0;i.forEach(function(a,o){const l=s[Math.min(o,s.length-1)],c=l.lineHeight;n.font=l.string,n.strokeText(a,t,e+c/2+r),r+=c}),n.stroke()}function _k(n,{x:t,y:e},i,{fonts:s,colors:r}){let a=0;i.forEach(function(o,l){const c=r[Math.min(l,r.length-1)],u=s[Math.min(l,s.length-1)],h=u.lineHeight;n.beginPath(),n.font=u.string,n.fillStyle=c,n.fillText(o,t,e+h/2+a),a+=h,n.fill()})}function xk(n,t){const e=xn(n)?n:t;return xn(e)?la(e,0,1):1}const Kf=["left","bottom","top","right"];function wk(n,t){const{pointX:e,pointY:i,options:s}=t,r=s.callout,a=r&&r.display&&kk(t,r);if(!a||Ck(t,r,a))return;if(n.save(),n.beginPath(),!on(n,r))return n.restore();const{separatorStart:l,separatorEnd:c}=Sk(t,a),{sideStart:u,sideEnd:h}=Tk(t,a,l);(r.margin>0||s.borderWidth===0)&&(n.moveTo(l.x,l.y),n.lineTo(c.x,c.y)),n.moveTo(u.x,u.y),n.lineTo(h.x,h.y);const f=ni({x:e,y:i},t.getCenterPoint(),Vt(-t.rotation));n.lineTo(f.x,f.y),n.stroke(),n.restore()}function Sk(n,t){const{x:e,y:i,x2:s,y2:r}=n,a=vk(n,t);let o,l;return t==="left"||t==="right"?(o={x:e+a,y:i},l={x:o.x,y:r}):(o={x:e,y:i+a},l={x:s,y:o.y}),{separatorStart:o,separatorEnd:l}}function vk(n,t){const{width:e,height:i,options:s}=n,r=s.callout.margin+s.borderWidth/2;return t==="right"?e+r:t==="bottom"?i+r:-r}function Tk(n,t,e){const{y:i,width:s,height:r,options:a}=n,o=a.callout.start,l=Mk(t,a.callout);let c,u;return t==="left"||t==="right"?(c={x:e.x,y:i+An(r,o)},u={x:c.x+l,y:c.y}):(c={x:e.x+An(s,o),y:e.y},u={x:c.x,y:c.y+l}),{sideStart:c,sideEnd:u}}function Mk(n,t){const e=t.side;return n==="left"||n==="top"?-e:e}function kk(n,t){const e=t.position;return Kf.includes(e)?e:Dk(n,t)}function Dk(n,t){const{x:e,y:i,x2:s,y2:r,width:a,height:o,pointX:l,pointY:c,centerX:u,centerY:h,rotation:f}=n,m={x:u,y:h},p=t.start,_=An(a,p),x=An(o,p),S=[e,e+_,e+_,s],M=[i+x,r,i,r],O=[];for(let A=0;A<4;A++){const E=ni({x:S[A],y:M[A]},m,Vt(f));O.push({position:Kf[A],distance:pi(E,{x:l,y:c})})}return O.sort((A,E)=>A.distance-E.distance)[0].position}function Ck(n,t,e){const{pointX:i,pointY:s}=n,r=t.margin;let a=i,o=s;return e==="left"?a+=r:e==="right"?a-=r:e==="top"?o+=r:e==="bottom"&&(o-=r),n.inRange(a,o)}const Zf={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function Ni(n,t,e){return t=typeof t=="number"?t:n.parse(t),Pt(t)?n.getPixelForValue(t):e}function ri(n,t,e){const i=t[e];if(i||e==="scaleID")return i;const s=e.charAt(0),r=Object.values(n).filter(a=>a.axis&&a.axis===s);return r.length?r[0].id:s}function Qf(n,t){if(n){const e=n.options.reverse,i=Ni(n,t.min,e?t.end:t.start),s=Ni(n,t.max,e?t.start:t.end);return{start:i,end:s}}}function Jf(n,t){const{chartArea:e,scales:i}=n,s=i[ri(i,t,"xScaleID")],r=i[ri(i,t,"yScaleID")];let a=e.width/2,o=e.height/2;return s&&(a=Ni(s,t.xValue,s.left+s.width/2)),r&&(o=Ni(r,t.yValue,r.top+r.height/2)),{x:a,y:o}}function wl(n,t){const e=n.scales,i=e[ri(e,t,"xScaleID")],s=e[ri(e,t,"yScaleID")];if(!i&&!s)return{};let{left:r,right:a}=i||n.chartArea,{top:o,bottom:l}=s||n.chartArea;const c=nm(i,{min:t.xMin,max:t.xMax,start:r,end:a});r=c.start,a=c.end;const u=nm(s,{min:t.yMin,max:t.yMax,start:l,end:o});return o=u.start,l=u.end,{x:r,y:o,x2:a,y2:l,width:a-r,height:l-o,centerX:r+(a-r)/2,centerY:o+(l-o)/2}}function tm(n,t){if(!Yf(t)){const e=wl(n,t);let i=t.radius;(!i||isNaN(i))&&(i=Math.min(e.width,e.height)/2,t.radius=i);const s=i*2,r=e.centerX+t.xAdjust,a=e.centerY+t.yAdjust;return{x:r-i,y:a-i,x2:r+i,y2:a+i,centerX:r,centerY:a,width:s,height:s,radius:i}}return Ek(n,t)}function Ok(n,t){const{scales:e,chartArea:i}=n,s=e[t.scaleID],r={x:i.left,y:i.top,x2:i.right,y2:i.bottom};return s?Ak(s,r,t):Pk(e,r,t),r}function em(n,t){const e=wl(n,t);return e.initProperties=Ii(n,e,t),e.elements=[{type:"label",optionScope:"label",properties:Lk(n,e,t),initProperties:e.initProperties}],e}function Ek(n,t){const e=Jf(n,t),i=t.radius*2;return{x:e.x-t.radius+t.xAdjust,y:e.y-t.radius+t.yAdjust,x2:e.x+t.radius+t.xAdjust,y2:e.y+t.radius+t.yAdjust,centerX:e.x+t.xAdjust,centerY:e.y+t.yAdjust,radius:t.radius,width:i,height:i}}function nm(n,t){const e=Qf(n,t)||t;return{start:Math.min(e.start,e.end),end:Math.max(e.start,e.end)}}function Ak(n,t,e){const i=Ni(n,e.value,NaN),s=Ni(n,e.endValue,i);n.isHorizontal()?(t.x=i,t.x2=s):(t.y=i,t.y2=s)}function Pk(n,t,e){for(const i of Object.keys(Zf)){const s=n[ri(n,e,i)];if(s){const{min:r,max:a,start:o,end:l,startProp:c,endProp:u}=Zf[i],h=Qf(s,{min:e[r],max:e[a],start:s[o],end:s[l]});t[c]=h.start,t[u]=h.end}}}function Rk({properties:n,options:t},e,i,s){const{x:r,x2:a,width:o}=n;return im({start:r,end:a,borderWidth:t.borderWidth},{position:i.x,padding:{start:s.left,end:s.right},adjust:t.label.xAdjust,size:e.width})}function Ik({properties:n,options:t},e,i,s){const{y:r,y2:a,height:o}=n;return im({start:r,end:a,borderWidth:t.borderWidth},{position:i.y,padding:{start:s.top,end:s.bottom},adjust:t.label.yAdjust,size:e.height})}function im(n,t){const{start:e,end:i,borderWidth:s}=n,{position:r,padding:{start:a,end:o},adjust:l}=t,c=i-s-e-a-o-t.size;return e+s/2+l+bl(c,r)}function Lk(n,t,e){const i=e.label;i.backgroundColor="transparent",i.callout.display=!1;const s=_l(i.position),r=Yt(i.padding),a=da(n.ctx,i),o=Rk({properties:t,options:e},a,s,r),l=Ik({properties:t,options:e},a,s,r),c=a.width+r.width,u=a.height+r.height;return{x:o,y:l,x2:o+c,y2:l+u,width:c,height:u,centerX:o+c/2,centerY:l+u/2,rotation:i.rotation}}const Sl=["enter","leave"],vl=Sl.concat("click");function Nk(n,t,e){t.listened=jf(e,vl,t.listeners),t.moveListened=!1,Sl.forEach(i=>{pe(e[i])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(i=>{!t.listened&&pe(i.click)&&(t.listened=!0),t.moveListened||Sl.forEach(s=>{pe(i[s])&&(t.listened=!0,t.moveListened=!0)})})}function Fk(n,t,e){if(n.listened)switch(t.type){case"mousemove":case"mouseout":return Bk(n,t,e);case"click":return zk(n,t,e)}}function Bk(n,t,e){if(!n.moveListened)return;let i;t.type==="mousemove"?i=yl(n.visibleElements,t,e.interaction):i=[];const s=n.hovered;n.hovered=i;const r={state:n,event:t};let a=sm(r,"leave",s,i);return sm(r,"enter",i,s)||a}function sm({state:n,event:t},e,i,s){let r;for(const a of i)s.indexOf(a)<0&&(r=rm(a.options[e]||n.listeners[e],a,t)||r);return r}function zk(n,t,e){const i=n.listeners,s=yl(n.visibleElements,t,e.interaction);let r;for(const a of s)r=rm(a.options.click||i.click,a,t)||r;return r}function rm(n,t,e){return Tt(n,[t.$context,e])===!0}const ha=["afterDraw","beforeDraw"];function Uk(n,t,e){const i=t.visibleElements;t.hooked=jf(e,ha,t.hooks),t.hooked||i.forEach(s=>{t.hooked||ha.forEach(r=>{pe(s.options[r])&&(t.hooked=!0)})})}function am(n,t,e){if(n.hooked){const i=t.options[e]||n.hooks[e];return Tt(i,[t.$context])}}function Hk(n,t,e){const i=jk(n.scales,t,e);let s=om(t,i,"min","suggestedMin");s=om(t,i,"max","suggestedMax")||s,s&&pe(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function Wk(n,t){for(const e of n)Yk(e,t)}function om(n,t,e,i){if(Pt(t[e])&&!Vk(n.options,e,i)){const s=n[e]!==t[e];return n[e]=t[e],s}}function Vk(n,t,e){return ge(n[t])||ge(n[e])}function Yk(n,t){for(const e of["scaleID","xScaleID","yScaleID"]){const i=ri(t,n,e);i&&!t[i]&&$k(n,e)&&console.warn(`No scale found with id '${i}' for annotation '${n.id}'`)}}function $k(n,t){if(t==="scaleID")return!0;const e=t.charAt(0);for(const i of["Min","Max","Value"])if(ge(n[e+i]))return!0;return!1}function jk(n,t,e){const i=t.axis,s=t.id,r=i+"ScaleID",a={min:st(t.min,Number.NEGATIVE_INFINITY),max:st(t.max,Number.POSITIVE_INFINITY)};for(const o of e)o.scaleID===s?lm(o,t,["value","endValue"],a):ri(n,o,r)===s&&lm(o,t,[i+"Min",i+"Max",i+"Value"],a);return a}function lm(n,t,e,i){for(const s of e){const r=n[s];if(ge(r)){const a=t.parse(r);i.min=Math.min(i.min,a),i.max=Math.max(i.max,a)}}}class Fi extends Zt{inRange(t,e,i,s){const{x:r,y:a}=ni({x:t,y:e},this.getCenterPoint(s),Vt(-this.options.rotation));return Nf({x:r,y:a},this.getProps(["x","y","x2","y2"],s),i,this.options)}getCenterPoint(t){return si(this,t)}draw(t){t.save(),ua(t,this.getCenterPoint(),this.options.rotation),Gf(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return em(t,e)}}Fi.id="boxAnnotation",Fi.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,hitTolerance:0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Fi.defaultRoutes={borderColor:"color",backgroundColor:"color"},Fi.descriptors={label:{_fallback:!0}};class fa extends Zt{inRange(t,e,i,s){return Ff({x:t,y:e},{rect:this.getProps(["x","y","x2","y2"],s),center:this.getCenterPoint(s)},i,{rotation:this.rotation,borderWidth:0,hitTolerance:this.options.hitTolerance})}getCenterPoint(t){return si(this,t)}draw(t){const e=this.options;!e.display||!e.content||(Qk(t,this),t.save(),ua(t,this.getCenterPoint(),this.rotation),Xf(t,this,e,this._fitRatio),t.restore())}resolveElementProperties(t,e){const i=qk(t,e);if(!i)return{};const{controllerMeta:s,point:r,radius:a}=Xk(t,e,i);let o=da(t.ctx,e);const l=Kk(o,a);Wf(e,l)&&(o={width:o.width*l,height:o.height*l});const{position:c,xAdjust:u,yAdjust:h}=e,f=Hf(r,o,{borderWidth:0,position:c,xAdjust:u,yAdjust:h});return{initProperties:Ii(t,f,e),...f,...s,rotation:e.rotation,_fitRatio:l}}}fa.id="doughnutLabelAnnotation",fa.defaults={autoFit:!0,autoHide:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderColor:"transparent",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:0,color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,spacing:1,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0},fa.defaultRoutes={};function qk(n,t){return n.getSortedVisibleDatasetMetas().reduce(function(e,i){const s=i.controller;return s instanceof sn&&Gk(n,t,i.data)&&(!e||s.innerRadius<e.controller.innerRadius)&&s.options.circumference>=90?i:e},void 0)}function Gk(n,t,e){if(!t.autoHide)return!0;for(let i=0;i<e.length;i++)if(!e[i].hidden&&n.getDataVisibility(i))return!0}function Xk({chartArea:n},t,e){const{left:i,top:s,right:r,bottom:a}=n,{innerRadius:o,offsetX:l,offsetY:c}=e.controller,u=(i+r)/2+l,h=(s+a)/2+c,f={left:Math.max(u-o,i),right:Math.min(u+o,r),top:Math.max(h-o,s),bottom:Math.min(h+o,a)},m={x:(f.left+f.right)/2,y:(f.top+f.bottom)/2},p=t.spacing+t.borderWidth/2,_=o-p,x=m.y>h,S=x?s+p:a-p,M=Zk(S,u,h,_);return{controllerMeta:{_centerX:u,_centerY:h,_radius:_,_counterclockwise:x,...M},point:m,radius:Math.min(o,Math.min(f.right-f.left,f.bottom-f.top)/2)}}function Kk({width:n,height:t},e){const i=Math.sqrt(Math.pow(n,2)+Math.pow(t,2));return e*2/i}function Zk(n,t,e,i){const s=Math.pow(e-n,2),r=Math.pow(i,2),a=t*-2,o=Math.pow(t,2)+s-r,l=Math.pow(a,2)-4*o;if(l<=0)return{_startAngle:0,_endAngle:Ct};const c=(-a-Math.sqrt(l))/2,u=(-a+Math.sqrt(l))/2;return{_startAngle:gr({x:t,y:e},{x:c,y:n}).angle,_endAngle:gr({x:t,y:e},{x:u,y:n}).angle}}function Qk(n,t){const{_centerX:e,_centerY:i,_radius:s,_startAngle:r,_endAngle:a,_counterclockwise:o,options:l}=t;n.save();const c=on(n,l);n.fillStyle=l.backgroundColor,n.beginPath(),n.arc(e,i,s,r,a,o),n.closePath(),n.fill(),c&&n.stroke(),n.restore()}class $s extends Zt{inRange(t,e,i,s){return Ff({x:t,y:e},{rect:this.getProps(["x","y","x2","y2"],s),center:this.getCenterPoint(s)},i,{rotation:this.rotation,borderWidth:this.options.borderWidth,hitTolerance:this.options.hitTolerance})}getCenterPoint(t){return si(this,t)}draw(t){const e=this.options,i=!ge(this._visible)||this._visible;!e.display||!e.content||!i||(t.save(),ua(t,this.getCenterPoint(),this.rotation),wk(t,this),Gf(t,this,e),Xf(t,Jk(this),e),t.restore())}resolveElementProperties(t,e){let i;if(Yf(e))i=Jf(t,e);else{const{centerX:o,centerY:l}=wl(t,e);i={x:o,y:l}}const s=Yt(e.padding),r=da(t.ctx,e),a=Hf(i,r,e,s);return{initProperties:Ii(t,a,e),pointX:i.x,pointY:i.y,...a,rotation:e.rotation}}}$s.id="labelAnnotation",$s.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},$s.defaultRoutes={borderColor:"color"};function Jk({x:n,y:t,width:e,height:i,options:s}){const r=s.borderWidth/2,a=Yt(s.padding);return{x:n+a.left+r,y:t+a.top+r,width:e-a.left-a.right-s.borderWidth,height:i-a.top-a.bottom-s.borderWidth}}const Tl=(n,t,e)=>({x:n.x+e*(t.x-n.x),y:n.y+e*(t.y-n.y)}),Ml=(n,t,e)=>Tl(t,e,Math.abs((n-t.y)/(e.y-t.y))).x,cm=(n,t,e)=>Tl(t,e,Math.abs((n-t.x)/(e.x-t.x))).y,js=n=>n*n,tD=(n,t,{x:e,y:i,x2:s,y2:r},a)=>a==="y"?{start:Math.min(i,r),end:Math.max(i,r),value:t}:{start:Math.min(e,s),end:Math.max(e,s),value:n},um=(n,t,e,i)=>(1-i)*(1-i)*n+2*(1-i)*i*t+i*i*e,kl=(n,t,e,i)=>({x:um(n.x,t.x,e.x,i),y:um(n.y,t.y,e.y,i)}),dm=(n,t,e,i)=>2*(1-i)*(t-n)+2*i*(e-t),hm=(n,t,e,i)=>-Math.atan2(dm(n.x,t.x,e.x,i),dm(n.y,t.y,e.y,i))+.5*ct;class qs extends Zt{inRange(t,e,i,s){const r=(this.options.borderWidth+this.options.hitTolerance)/2;if(i!=="x"&&i!=="y"){const a={mouseX:t,mouseY:e},{path:o,ctx:l}=this;if(o){on(l,this.options),l.lineWidth+=this.options.hitTolerance;const{chart:u}=this.$context,h=t*u.currentDevicePixelRatio,f=e*u.currentDevicePixelRatio,m=l.isPointInStroke(o,h,f)||Dl(this,a,s);return l.restore(),m}const c=js(r);return sD(this,a,c,s)||Dl(this,a,s)}return eD(this,{mouseX:t,mouseY:e},i,{hitSize:r,useFinalPosition:s})}getCenterPoint(t){return si(this,t)}draw(t){const{x:e,y:i,x2:s,y2:r,cp:a,options:o}=this;if(t.save(),!on(t,o))return t.restore();Li(t,o);const l=Math.sqrt(Math.pow(s-e,2)+Math.pow(r-i,2));if(o.curve&&a)return hD(t,this,a,l),t.restore();const{startOpts:c,endOpts:u,startAdjust:h,endAdjust:f}=ym(this),m=Math.atan2(r-i,s-e);t.translate(e,i),t.rotate(m),t.beginPath(),t.moveTo(0+h,0),t.lineTo(l-f,0),t.shadowColor=o.borderShadowColor,t.stroke(),Cl(t,0,h,c),Cl(t,l,-f,u),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){const i=Ok(t,e),{x:s,y:r,x2:a,y2:o}=i,l=nD(i,t.chartArea),c=l?iD({x:s,y:r},{x:a,y:o},t.chartArea):{x:s,y:r,x2:a,y2:o,width:Math.abs(a-s),height:Math.abs(o-r)};if(c.centerX=(a+s)/2,c.centerY=(o+r)/2,c.initProperties=Ii(t,c,e),e.curve){const h={x:c.x,y:c.y},f={x:c.x2,y:c.y2};c.cp=dD(c,e,pi(h,f))}const u=rD(t,c,e.label);return u._visible=l,c.elements=[{type:"label",optionScope:"label",properties:u,initProperties:c.initProperties}],c}}qs.id="lineAnnotation";const fm={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};qs.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},fm),fill:!1,length:12,start:Object.assign({},fm),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,hitTolerance:0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},$s.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},qs.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},qs.defaultRoutes={borderColor:"color"};function eD(n,{mouseX:t,mouseY:e},i,{hitSize:s,useFinalPosition:r}){const a=tD(t,e,n.getProps(["x","y","x2","y2"],r),i);return Lf(a,s)||Dl(n,{mouseX:t,mouseY:e},r,i)}function nD({x:n,y:t,x2:e,y2:i},{top:s,right:r,bottom:a,left:o}){return!(n<o&&e<o||n>r&&e>r||t<s&&i<s||t>a&&i>a)}function mm({x:n,y:t},e,{top:i,right:s,bottom:r,left:a}){return n<a&&(t=cm(a,{x:n,y:t},e),n=a),n>s&&(t=cm(s,{x:n,y:t},e),n=s),t<i&&(n=Ml(i,{x:n,y:t},e),t=i),t>r&&(n=Ml(r,{x:n,y:t},e),t=r),{x:n,y:t}}function iD(n,t,e){const{x:i,y:s}=mm(n,t,e),{x:r,y:a}=mm(t,n,e);return{x:i,y:s,x2:r,y2:a,width:Math.abs(r-i),height:Math.abs(a-s)}}function sD(n,{mouseX:t,mouseY:e},i=ii,s){const{x:r,y:a,x2:o,y2:l}=n.getProps(["x","y","x2","y2"],s),c=o-r,u=l-a,h=js(c)+js(u),f=h===0?-1:((t-r)*c+(e-a)*u)/h;let m,p;return f<0?(m=r,p=a):f>1?(m=o,p=l):(m=r+f*c,p=a+f*u),js(t-m)+js(e-p)<=i}function Dl(n,{mouseX:t,mouseY:e},i,s){const r=n.label;return r.options.display&&r.inRange(t,e,s,i)}function rD(n,t,e){const i=e.borderWidth,s=Yt(e.padding),r=da(n.ctx,e),a=r.width+s.width+i,o=r.height+s.height+i;return oD(t,e,{width:a,height:o,padding:s},n.chartArea)}function aD(n){const{x:t,y:e,x2:i,y2:s}=n,r=Math.atan2(s-e,i-t);return r>ct/2?r-ct:r<ct/-2?r+ct:r}function oD(n,t,e,i){const{width:s,height:r,padding:a}=e,{xAdjust:o,yAdjust:l}=t,c={x:n.x,y:n.y},u={x:n.x2,y:n.y2},h=t.rotation==="auto"?aD(n):Vt(t.rotation),f=lD(s,r,h),m=cD(n,t,{labelSize:f,padding:a},i),p=n.cp?kl(c,n.cp,u,m):Tl(c,u,m),_={size:f.w,min:i.left,max:i.right,padding:a.left},x={size:f.h,min:i.top,max:i.bottom,padding:a.top},S=pm(p.x,_)+o,M=pm(p.y,x)+l;return{x:S-s/2,y:M-r/2,x2:S+s/2,y2:M+r/2,centerX:S,centerY:M,pointX:p.x,pointY:p.y,width:s,height:r,rotation:mr(h)}}function lD(n,t,e){const i=Math.cos(e),s=Math.sin(e);return{w:Math.abs(n*i)+Math.abs(t*s),h:Math.abs(n*s)+Math.abs(t*i)}}function cD(n,t,e,i){let s;const r=uD(n,i);return t.position==="start"?s=gm({w:n.x2-n.x,h:n.y2-n.y},e,t,r):t.position==="end"?s=1-gm({w:n.x-n.x2,h:n.y-n.y2},e,t,r):s=bl(1,t.position),s}function gm(n,t,e,i){const{labelSize:s,padding:r}=t,a=n.w*i.dx,o=n.h*i.dy,l=a>0&&(s.w/2+r.left-i.x)/a,c=o>0&&(s.h/2+r.top-i.y)/o;return la(Math.max(l,c),0,.25)}function uD(n,t){const{x:e,x2:i,y:s,y2:r}=n,a=Math.min(s,r)-t.top,o=Math.min(e,i)-t.left,l=t.bottom-Math.max(s,r),c=t.right-Math.max(e,i);return{x:Math.min(o,c),y:Math.min(a,l),dx:o<=c?1:-1,dy:a<=l?1:-1}}function pm(n,t){const{size:e,min:i,max:s,padding:r}=t,a=e/2;return e>s-i?(s+i)/2:(i>=n-r-a&&(n=i+r+a),s<=n+r+a&&(n=s-r-a),n)}function ym(n){const t=n.options,e=t.arrowHeads&&t.arrowHeads.start,i=t.arrowHeads&&t.arrowHeads.end;return{startOpts:e,endOpts:i,startAdjust:bm(n,e),endAdjust:bm(n,i)}}function bm(n,t){if(!t||!t.display)return 0;const{length:e,width:i}=t,s=n.options.borderWidth/2,r={x:e,y:i+s};return Math.abs(Ml(0,r,{x:0,y:s}))}function Cl(n,t,e,i){if(!i||!i.display)return;const{length:s,width:r,fill:a,backgroundColor:o,borderColor:l}=i,c=Math.abs(t-s)+e;n.beginPath(),Li(n,i),on(n,i),n.moveTo(c,-r),n.lineTo(t+e,0),n.lineTo(c,r),a===!0?(n.fillStyle=o||l,n.closePath(),n.fill(),n.shadowColor="transparent"):n.shadowColor=i.borderShadowColor,n.stroke()}function dD(n,t,e){const{x:i,y:s,x2:r,y2:a,centerX:o,centerY:l}=n,c=Math.atan2(a-s,r-i),u=_l(t.controlPoint,0),h={x:o+An(e,u.x,!1),y:l+An(e,u.y,!1)};return ni(h,{x:o,y:l},c)}function _m(n,{x:t,y:e},{angle:i,adjust:s},r){!r||!r.display||(n.save(),n.translate(t,e),n.rotate(i),Cl(n,0,-s,r),n.restore())}function hD(n,t,e,i){const{x:s,y:r,x2:a,y2:o,options:l}=t,{startOpts:c,endOpts:u,startAdjust:h,endAdjust:f}=ym(t),m={x:s,y:r},p={x:a,y:o},_=hm(m,e,p,0),x=hm(m,e,p,1)-ct,S=kl(m,e,p,h/i),M=kl(m,e,p,1-f/i),O=new Path2D;n.beginPath(),O.moveTo(S.x,S.y),O.quadraticCurveTo(e.x,e.y,M.x,M.y),n.shadowColor=l.borderShadowColor,n.stroke(O),t.path=O,t.ctx=n,_m(n,S,{angle:_,adjust:h},c),_m(n,M,{angle:x,adjust:f},u)}class Gs extends Zt{inRange(t,e,i,s){const r=this.options.rotation,a=(this.options.borderWidth+this.options.hitTolerance)/2;if(i!=="x"&&i!=="y")return fD({x:t,y:e},this.getProps(["width","height","centerX","centerY"],s),r,a);const{x:o,y:l,x2:c,y2:u}=this.getProps(["x","y","x2","y2"],s),h=i==="y"?{start:l,end:u}:{start:o,end:c},f=ni({x:t,y:e},this.getCenterPoint(s),Vt(-r));return f[i]>=h.start-a-ii&&f[i]<=h.end+a+ii}getCenterPoint(t){return si(this,t)}draw(t){const{width:e,height:i,centerX:s,centerY:r,options:a}=this;t.save(),ua(t,this.getCenterPoint(),a.rotation),Li(t,this.options),t.beginPath(),t.fillStyle=a.backgroundColor;const o=on(t,a);t.ellipse(s,r,i/2,e/2,ct/2,0,2*ct),t.fill(),o&&(t.shadowColor=a.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return em(t,e)}}Gs.id="ellipseAnnotation",Gs.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,label:Object.assign({},Fi.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Gs.defaultRoutes={borderColor:"color",backgroundColor:"color"},Gs.descriptors={label:{_fallback:!0}};function fD(n,t,e,i){const{width:s,height:r,centerX:a,centerY:o}=t,l=s/2,c=r/2;if(l<=0||c<=0)return!1;const u=Vt(e||0),h=Math.cos(u),f=Math.sin(u),m=Math.pow(h*(n.x-a)+f*(n.y-o),2),p=Math.pow(f*(n.x-a)-h*(n.y-o),2);return m/Math.pow(l+i,2)+p/Math.pow(c+i,2)<=1.0001}class ma extends Zt{inRange(t,e,i,s){const{x:r,y:a,x2:o,y2:l,width:c}=this.getProps(["x","y","x2","y2","width"],s),u=(this.options.borderWidth+this.options.hitTolerance)/2;return i!=="x"&&i!=="y"?ok({x:t,y:e},this.getCenterPoint(s),c/2,u):Lf(i==="y"?{start:a,end:l,value:e}:{start:r,end:o,value:t},u)}getCenterPoint(t){return si(this,t)}draw(t){const e=this.options,i=e.borderWidth;if(e.radius<.1)return;t.save(),t.fillStyle=e.backgroundColor,Li(t,e);const s=on(t,e);gk(t,this,this.centerX,this.centerY),s&&!ca(e.pointStyle)&&(t.shadowColor=e.borderShadowColor,t.stroke()),t.restore(),e.borderWidth=i}resolveElementProperties(t,e){const i=tm(t,e);return i.initProperties=Ii(t,i,e),i}}ma.id="pointAnnotation",ma.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},ma.defaultRoutes={borderColor:"color",backgroundColor:"color"};class ga extends Zt{inRange(t,e,i,s){if(i!=="x"&&i!=="y")return this.options.radius>=.1&&this.elements.length>1&&gD(this.elements,t,e,s);const r=ni({x:t,y:e},this.getCenterPoint(s),Vt(-this.options.rotation)),a=this.elements.map(c=>i==="y"?c.bY:c.bX),o=Math.min(...a),l=Math.max(...a);return r[i]>=o&&r[i]<=l}getCenterPoint(t){return si(this,t)}draw(t){const{elements:e,options:i}=this;t.save(),t.beginPath(),t.fillStyle=i.backgroundColor,Li(t,i);const s=on(t,i);let r=!0;for(const a of e)r?(t.moveTo(a.x,a.y),r=!1):t.lineTo(a.x,a.y);t.closePath(),t.fill(),s&&(t.shadowColor=i.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,e){const i=tm(t,e),{sides:s,rotation:r}=e,a=[],o=2*ct/s;let l=r*Ha;for(let c=0;c<s;c++,l+=o){const u=mD(i,e,l);u.initProperties=Ii(t,i,e),a.push(u)}return i.elements=a,i}}ga.id="polygonAnnotation",ga.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},ga.defaultRoutes={borderColor:"color",backgroundColor:"color"};function mD({centerX:n,centerY:t},{radius:e,borderWidth:i,hitTolerance:s},r){const a=(i+s)/2,o=Math.sin(r),l=Math.cos(r),c={x:n+o*e,y:t-l*e};return{type:"point",optionScope:"point",properties:{x:c.x,y:c.y,centerX:c.x,centerY:c.y,bX:n+o*(e+a),bY:t-l*(e+a)}}}function gD(n,t,e,i){let s=!1,r=n[n.length-1].getProps(["bX","bY"],i);for(const a of n){const o=a.getProps(["bX","bY"],i);o.bY>e!=r.bY>e&&t<(r.bX-o.bX)*(e-o.bY)/(r.bY-o.bY)+o.bX&&(s=!s),r=o}return s}const Pn={box:Fi,doughnutLabel:fa,ellipse:Gs,label:$s,line:qs,point:ma,polygon:ga};Object.keys(Pn).forEach(n=>{At.describe(`elements.${Pn[n].id}`,{_fallback:"plugins.annotation.common"})});const pD={update:Object.assign},yD=vl.concat(ha),xm=(n,t)=>ht(t)?Al(n,t):n,Ol=n=>n==="color"||n==="font";function El(n="line"){return Pn[n]?n:(console.warn(`Unknown annotation type: '${n}', defaulting to 'line'`),"line")}function bD(n,t,e,i){const s=xD(n,e.animations,i),r=t.annotations,a=vD(t.elements,r);for(let o=0;o<r.length;o++){const l=r[o],c=wm(a,o,l.type),u=l.setContext(SD(n,c,a,l)),h=c.resolveElementProperties(n,u);h.skip=_D(h),"elements"in h&&(wD(c,h.elements,u,s),delete h.elements),ge(c.x)||Object.assign(c,h),Object.assign(c,h.initProperties),h.options=Sm(u),s.update(c,h)}}function _D(n){return isNaN(n.x)||isNaN(n.y)}function xD(n,t,e){return e==="reset"||e==="none"||e==="resize"?pD:new no(n,t)}function wD(n,t,e,i){const s=n.elements||(n.elements=[]);s.length=t.length;for(let r=0;r<t.length;r++){const a=t[r],o=a.properties,l=wm(s,r,a.type,a.initProperties),c=e[a.optionScope].override(a);o.options=Sm(c),i.update(l,o)}}function wm(n,t,e,i){const s=Pn[El(e)];let r=n[t];return(!r||!(r instanceof s))&&(r=n[t]=new s,Object.assign(r,i)),r}function Sm(n){const t=Pn[El(n.type)],e={};e.id=n.id,e.type=n.type,e.drawTime=n.drawTime,Object.assign(e,Al(n,t.defaults),Al(n,t.defaultRoutes));for(const i of yD)e[i]=n[i];return e}function Al(n,t){const e={};for(const i of Object.keys(t)){const s=t[i],r=n[i];Ol(i)&&wt(r)?e[i]=r.map(a=>xm(a,s)):e[i]=xm(r,s)}return e}function SD(n,t,e,i){return t.$context||(t.$context=Object.assign(Object.create(n.getContext()),{element:t,get elements(){return e.filter(s=>s&&s.options)},id:i.id,type:"annotation"}))}function vD(n,t){const e=t.length,i=n.length;if(i<e){const s=e-i;n.splice(i,0,...new Array(s))}else i>e&&n.splice(e,i-e);return n}var TD="3.1.0";const Rn=new Map,vm=n=>n.type!=="doughnutLabel",MD=vl.concat(ha);var Tm={id:"annotation",version:TD,beforeRegister(){lk("chart.js","4.0",ye.version)},afterRegister(){ye.register(Pn)},afterUnregister(){ye.unregister(Pn)},beforeInit(n){Rn.set(n,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(n,t,e){const i=Rn.get(n),s=i.annotations=[];let r=e.annotations;ht(r)?Object.keys(r).forEach(a=>{const o=r[a];ht(o)&&(o.id=a,s.push(o))}):wt(r)&&s.push(...r),Wk(s.filter(vm),n.scales)},afterDataLimits(n,t){const e=Rn.get(n);Hk(n,t.scale,e.annotations.filter(vm).filter(i=>i.display&&i.adjustScaleRange))},afterUpdate(n,t,e){const i=Rn.get(n);Nk(n,i,e),bD(n,i,e,t.mode),i.visibleElements=i.elements.filter(s=>!s.skip&&s.options.display),Uk(n,i,e)},beforeDatasetsDraw(n,t,e){Xs(n,"beforeDatasetsDraw",e.clip)},afterDatasetsDraw(n,t,e){Xs(n,"afterDatasetsDraw",e.clip)},beforeDatasetDraw(n,t,e){Xs(n,t.index,e.clip)},beforeDraw(n,t,e){Xs(n,"beforeDraw",e.clip)},afterDraw(n,t,e){Xs(n,"afterDraw",e.clip)},beforeEvent(n,t,e){const i=Rn.get(n);Fk(i,t.event,e)&&(t.changed=!0)},afterDestroy(n){Rn.delete(n)},getAnnotations(n){const t=Rn.get(n);return t?t.elements:[]},_getAnnotationElementsAtEventForMode(n,t,e){return yl(n,t,e)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"},colors:{properties:["backgroundColor","borderColor"],type:"color"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:n=>!MD.includes(n)&&n!=="init",annotations:{_allKeys:!1,_fallback:(n,t)=>`elements.${Pn[El(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:Ol,_fallback:!0},_indexable:Ol}},additionalOptionScopes:[""]};function Xs(n,t,e){const{ctx:i,chartArea:s}=n,r=Rn.get(n);e&&as(i,s);const a=kD(r.visibleElements,t).sort((o,l)=>o.element.options.z-l.element.options.z);for(const o of a)DD(i,s,r,o);e&&os(i)}function kD(n,t){const e=[];for(const i of n)if(i.options.drawTime===t&&e.push({element:i,main:!0}),i.elements&&i.elements.length)for(const s of i.elements)s.options.display&&s.options.drawTime===t&&e.push({element:s});return e}function DD(n,t,e,i){const s=i.element;i.main?(am(e,s,"beforeDraw"),s.draw(n,t),am(e,s,"afterDraw")):s.draw(n,t)}const CD={class:"zoom-timerange-container"},OD={class:"zoom-timerange-details"},ED={class:"label","data-testid":"zoom-timerange-from"},AD={class:"label","data-testid":"zoom-timerange-to"},PD=d.defineComponent({__name:"ZoomTimerange",props:{start:{},end:{},granularity:{}},setup(n){const t=n,{i18n:e}=ft.useI18n(),i=d.ref(Bs({tickValue:t.start,granularity:t.granularity})),s=d.ref(Bs({tickValue:t.end,granularity:t.granularity})),r=(a,o)=>{tf(()=>{i.value=Bs({tickValue:a,granularity:t.granularity}),s.value=Bs({tickValue:o,granularity:t.granularity})},100)()};return d.watch(()=>[t.start,t.end],([a,o])=>{r(a,o)},{immediate:!0}),(a,o)=>(d.openBlock(),d.createElementBlock("div",CD,[d.createElementVNode("div",OD,[d.createElementVNode("div",ED,d.toDisplayString(d.unref(e).t("zoom_time_range.from")),1),d.createElementVNode("div",null,d.toDisplayString(i.value),1),d.createElementVNode("div",AD,d.toDisplayString(d.unref(e).t("zoom_time_range.to")),1),d.createElementVNode("div",null,d.toDisplayString(s.value),1)])]))}}),Ce=(n,t)=>{const e=n.__vccOpts||n;for(const[i,s]of t)e[i]=s;return e},Mm=Ce(PD,[["__scopeId","data-v-4fa681cf"]]),RD={class:"zoom-actions-container"},ID={class:"zoom-actions-heading"},LD={class:"zoom-action-select"},ND=["data-testid"],FD=["aria-disabled","href"],BD=["onClick"],zD=Ce(d.defineComponent({__name:"ZoomActions",props:{zoomActionItems:{},newTimeRange:{},granularity:{}},emits:["onAction"],setup(n,{emit:t}){const e=n,i=t,s=r=>{r.action&&(r.action(e.newTimeRange),i("onAction"))};return(r,a)=>(d.openBlock(),d.createElementBlock("div",RD,[d.createElementVNode("div",ID,[d.createVNode(Mm,{end:n.newTimeRange.end,granularity:n.granularity,start:n.newTimeRange.start},null,8,["end","granularity","start"]),d.createVNode(d.unref(Gi.CloseIcon),{class:"zoom-actions-close-icon",color:d.unref(tl),size:d.unref(Ns),onClick:a[0]||(a[0]=o=>r.$emit("onAction"))},null,8,["color","size"])]),a[2]||(a[2]=d.createElementVNode("div",{class:"zoom-actions-heading-divider"},null,-1)),d.createElementVNode("div",LD,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.zoomActionItems,o=>(d.openBlock(),d.createElementBlock("div",{key:o.key,class:d.normalizeClass(["zoom-action-item",{disabled:o.disabled}]),"data-testid":`zoom-action-item-${o.key}`},[o.href?(d.openBlock(),d.createElementBlock("a",{key:0,"aria-disabled":o.disabled,class:"zoom-action-link",href:o.href,onClick:a[1]||(a[1]=l=>r.$emit("onAction"))},d.toDisplayString(o.label),9,FD)):(d.openBlock(),d.createElementBlock("div",{key:1,onClick:l=>s(o)},d.toDisplayString(o.label),9,BD))],10,ND))),128))])]))}}),[["__scopeId","data-v-179abac7"]]),UD={key:2},HD={class:"tooltip-title"},WD={class:"title"},VD={key:0,class:"subtitle"},YD={class:"context"},$D={class:"metric"},jD={class:"tooltip"},qD={key:0},GD={class:"display-value"},pa=Ce(d.defineComponent({__name:"ChartTooltip",props:{state:{},tooltipTitle:{default:""},absoluteLeft:{default:"0px"},absoluteTop:{default:"0px"},zoomTimeRange:{default:void 0},zoomActionItems:{default:void 0},granularity:{default:void 0}},emits:["dimensions","onAction"],setup(n,{emit:t}){const e=t,i=n,s=d.ref(null),{x:r,y:a,isDragging:o}=GM(s,{initialValue:{x:parseFloat(i.absoluteLeft),y:parseFloat(i.absoluteTop)}}),l=d.computed(()=>`${a.value}px`),c=d.computed(()=>`${r.value}px`),u=d.computed(()=>i.state.tooltipContext),h=d.computed(()=>i.state.metricDisplay),f=d.computed(()=>["interactive","zoom-interactive"].includes(i.state.interactionMode));return d.watch(()=>[i.absoluteLeft,i.absoluteTop],([m,p])=>{o.value||(r.value=parseFloat(m),a.value=parseFloat(p))}),d.watch(o,m=>{m?document.body.classList.add("no-select"):document.body.classList.remove("no-select")}),d.watch(s,m=>{if(m){const{width:p,height:_}=m.getBoundingClientRect();e("dimensions",{width:p,height:_})}}),(m,p)=>{var _,x;return n.state.showTooltip?(d.openBlock(),d.createElementBlock("div",{key:0,ref_key:"tooltipEl",ref:s,class:d.normalizeClass(["tooltip-container",{locked:n.state.interactionMode==="interactive"}]),style:d.normalizeStyle({transform:f.value?`translate(${c.value}, ${l.value})`:`translate(${n.absoluteLeft}, ${n.absoluteTop})`,left:"0",top:"0",pointerEvents:f.value?"all":"none"})},[n.state.interactionMode==="selecting-chart-area"&&n.granularity&&n.zoomTimeRange&&n.zoomTimeRange.end&&n.zoomTimeRange.start?(d.openBlock(),d.createBlock(Mm,{key:0,end:(_=n.zoomTimeRange)==null?void 0:_.end,granularity:n.granularity,start:(x=n.zoomTimeRange)==null?void 0:x.start},null,8,["end","granularity","start"])):n.state.interactionMode==="zoom-interactive"&&n.zoomTimeRange&&n.zoomActionItems&&n.granularity?(d.openBlock(),d.createBlock(zD,{key:1,granularity:n.granularity,"new-time-range":n.zoomTimeRange,"zoom-action-items":n.zoomActionItems,onOnAction:p[0]||(p[0]=S=>e("onAction"))},null,8,["granularity","new-time-range","zoom-action-items"])):(d.openBlock(),d.createElementBlock("div",UD,[d.createElementVNode("div",HD,[d.createElementVNode("div",WD,[d.createElementVNode("div",null,d.toDisplayString(n.tooltipTitle),1),f.value?(d.openBlock(),d.createBlock(d.unref(Gi.DragIcon),{key:0,class:"drag-icon",color:d.unref(tl),size:d.unref(Ns)},null,8,["color","size"])):d.createCommentVNode("",!0)]),u.value||h.value?(d.openBlock(),d.createElementBlock("div",VD,[d.createElementVNode("div",YD,d.toDisplayString(u.value),1),d.createElementVNode("div",$D,d.toDisplayString(h.value),1)])):d.createCommentVNode("",!0)]),d.createElementVNode("ul",jD,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.state.tooltipSeries,({backgroundColor:S,borderColor:M,label:O,value:A,isSegmentEmpty:E},D)=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:O+D},[n.state.tooltipSeries.length?(d.openBlock(),d.createElementBlock("li",qD,[d.createElementVNode("div",{class:"square-marker",style:d.normalizeStyle({background:String(S),borderColor:String(M)})},null,4),d.createElementVNode("span",{class:d.normalizeClass(["display-label",{empty:E}])},d.toDisplayString(O),3),d.createElementVNode("span",GD,d.toDisplayString(A),1)])):d.createCommentVNode("",!0)],64))),128))])]))],6)):d.createCommentVNode("",!0)}}}),[["__scopeId","data-v-ef584c53"]]),XD={key:0,class:"legend-container","data-testid":"legend"},KD=["onClick"],ZD=["title"],QD={class:"label truncate-label"},JD={key:0,class:"sub-label"},tC={class:"tooltip-content"},Pl=Ce(d.defineComponent({__name:"ChartLegend",props:{id:{type:String,required:!0},items:{type:Object,required:!0},chartInstance:{type:Object,required:!1,default:()=>null}},setup(n){const t=n,{i18n:e}=ft.useI18n(),i=d.inject("showLegendValues",!1),s=d.inject("legendPosition",d.ref(xe.Bottom)),r=(o=0,l)=>{if(t.chartInstance===null)return;const c=t.chartInstance instanceof ye?t.chartInstance:t.chartInstance.chart;a(o,l)?c.hide(o,l):c.show(o,l),c.update()},a=(o=0,l)=>{if(t.chartInstance===null||t.chartInstance.chart===null)return!0;const c=t.chartInstance instanceof ye?t.chartInstance:t.chartInstance.chart,u=c.getDatasetMeta(o);return u.dataset||l===void 0?c.isDatasetVisible(o):!(u.data.length&&u.data[l].hidden)};return(o,l)=>{const c=d.resolveComponent("KTooltip");return d.unref(s)!==d.unref(xe).Hidden?(d.openBlock(),d.createElementBlock("ul",XD,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.items,({fillStyle:u,strokeStyle:h,text:f,datasetIndex:m,index:p,value:_,isSegmentEmpty:x})=>(d.openBlock(),d.createElementBlock("li",{key:f,onClick:S=>r(m,p)},[d.createElementVNode("div",{class:"square-marker",style:d.normalizeStyle({background:u,"border-color":h})},null,4),d.createVNode(c,null,d.createSlots({default:d.withCtx(()=>[d.createElementVNode("div",{class:d.normalizeClass(["label-container",{"strike-through":!a(m,p)}]),title:_&&d.unref(i)?`${f}: ${_.formatted}`:f},[d.createElementVNode("div",QD,d.toDisplayString(f),1),_&&d.unref(i)?(d.openBlock(),d.createElementBlock("div",JD,d.toDisplayString(_.formatted),1)):d.createCommentVNode("",!0)],10,ZD)]),_:2},[x?{name:"content",fn:d.withCtx(()=>[d.createElementVNode("div",tC,d.toDisplayString(d.unref(e).t("emptyEntityInfo")),1)]),key:"0"}:void 0]),1024)],8,KD))),128))])):d.createCommentVNode("",!0)}}}),[["__scopeId","data-v-27d1c6d3"]]),te=[];for(let n=0;n<256;++n)te.push((n+256).toString(16).slice(1));function eC(n,t=0){return(te[n[t+0]]+te[n[t+1]]+te[n[t+2]]+te[n[t+3]]+"-"+te[n[t+4]]+te[n[t+5]]+"-"+te[n[t+6]]+te[n[t+7]]+"-"+te[n[t+8]]+te[n[t+9]]+"-"+te[n[t+10]]+te[n[t+11]]+te[n[t+12]]+te[n[t+13]]+te[n[t+14]]+te[n[t+15]]).toLowerCase()}const nC=new Uint8Array(16);function iC(){return crypto.getRandomValues(nC)}function Rl(n,t,e){return crypto.randomUUID?crypto.randomUUID():sC(n)}function sC(n,t,e){var s;n=n||{};const i=n.random??((s=n.rng)==null?void 0:s.call(n))??iC();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,eC(i)}const km=(n,t)=>{const e=n.ctx,i=n.scales.y,s=n.scales.x,r=t[t.length-1].element;e.save(),e.strokeStyle="rgba(100, 100, 100, 1)",e.lineWidth=3,n.options.indexAxis==="x"?e.strokeRect(r.x-r.width/2,r.y,r.width,i.bottom-r.y):e.strokeRect(s.left,r.y-r.height/2,r.x-s.left,r.height),e.restore()};class Dm{constructor(){P(this,"id","highlightPlugin");P(this,"_clickedElements");P(this,"_previousHoverOption");P(this,"_clicked",!1);P(this,"_pause",!1);P(this,"_suppressNextClick",!1)}afterDatasetsDraw(t){this._clickedElements&&this._clickedElements.length&&!this._pause&&km(t,this._clickedElements)}afterEvent(t,{event:e}){var r;if(e.type==="click"&&this._suppressNextClick){this._suppressNextClick=!1;return}if(e.type!=="click"||!e.native||this._pause)return;this._clicked=!this._clicked;const i=((r=t.options.interaction)==null?void 0:r.mode)||"index",s=t.getElementsAtEventForMode(e.native,i,{intersect:!1},!0);s.length&&this._clicked?(this._clickedElements=s,km(t,this._clickedElements),this._previousHoverOption=t.options.hover,t.options.hover={mode:null}):(delete this._clickedElements,t.options.hover=this._previousHoverOption||t.options.hover,this._clicked=!1)}beforeDestroy(t){delete this._clickedElements,t.options.hover=this._previousHoverOption||t.options.hover,this._clicked=!1}pause(){this._pause=!0}get isPaused(){return this._pause}resume(t=!1){this._pause=!1,t&&(this._suppressNextClick=!0)}}const rC=["id"],aC=["id"],oC={class:"axis-tooltip-content"},lC="100%",cC="100%",uC=20,dC=20,Cm=6,hC=0,fC=10,mC=10,gC=1,pC=Ce(d.defineComponent({__name:"StackedBarChart",props:{chartData:{},tooltipTitle:{default:""},legendValues:{default:void 0},metricUnit:{default:""},orientation:{default:"horizontal"},annotations:{type:Boolean,default:!0},metricAxesTitle:{default:void 0},dimensionAxesTitle:{default:void 0},stacked:{type:Boolean,default:!0},syntheticsDataKey:{default:""},chartLegendSortFn:{type:Function,default:(n,t)=>n.value&&t.value&&t.value.raw-n.value.raw},chartTooltipSortFn:{type:Function,default:(n,t)=>t.rawValue-n.rawValue},tooltipMetricDisplay:{default:""}},setup(n){const t=n,{i18n:e}=ft.useI18n(),{translateUnit:i}=ft.useTranslatedUnits(),s=crypto.randomUUID(),r=crypto.randomUUID(),a=new Dm,o=d.useTemplateRef("chartContainer"),l=d.useTemplateRef("chartParent"),c=({chart:W},U)=>{var Z;const G=W.data,K=(Z=G.labels)==null?void 0:Z.indexOf(U);return G.datasets.reduce((X,mt,St)=>{if(W.isDatasetVisible(St)){const rt=mt.data[K];return isNaN(rt)?X:X+rt}else return X},0)},u=(W,U,G,K)=>{const Z=K==="horizontal";U===null&&(U=e.t("entityNoName"));const X={type:"label",yValue:rt=>Z?U:c(rt,U),xValue:rt=>Z?c(rt,U):U},mt={...X,position:Z?{x:"start",y:"center"}:{x:"center",y:"end"},yAdjust:()=>Z?0:-Math.abs(RT()),content:rt=>lf(c(rt,U),G)},St={...X,content:rt=>LT(c(rt,U),IT(rt.chart,W)),position:Z?{x:"start",y:"center"}:{x:"center",y:"end"},xAdjust:rt=>Z?PT(lf(c(rt,U),G)):0,color:MT};return{[`${U}-value`]:mt,[`${U}-percent`]:St}},h=d.useTemplateRef("canvas"),f=d.useTemplateRef("axis"),m=Rl(),p=Rl(),_=d.ref([]),x=d.inject("legendPosition",xe.Bottom),S=d.reactive({show:!1,top:"0px",left:"0px",text:"",offset:-50}),M=d.toRef(t,"metricUnit"),O=d.computed(()=>t.orientation==="horizontal"),A=d.reactive({showTooltip:!1,tooltipContext:"",metricDisplay:d.toRef(t,"tooltipMetricDisplay"),dimensionDisplay:d.toRef(t,"dimensionAxesTitle"),tooltipSeries:[],left:"",top:"",units:d.toRef(t,"metricUnit"),translateUnit:i,offsetX:0,offsetY:0,width:0,height:0,interactionMode:"idle",chartType:O.value?"horizontal_bar":"vertical_bar",chartID:r,chartTooltipSortFn:t.chartTooltipSortFn}),{tooltipAbsoluteLeft:E,tooltipAbsoluteTop:D}=ft.useTooltipAbsolutePosition(l,A),T=d.ref(0),g=()=>{var W;return t.annotations&&((W=t.chartData.labels)==null?void 0:W.reduce((U,G)=>Object.assign(U,u(t.chartData,G,M.value,t.orientation)),{}))},y={id:m,afterUpdate(W){T.value+=1,_.value=ef(W,t.legendValues,t.chartLegendSortFn)}},v={id:p,afterUpdate(W){W.options.plugins.annotation.annotations=t.annotations?g():{}}},R=[y,{id:"axisHover",afterEvent(W,U){var G;if(S.show=!1,U.event.type==="mousemove"){const K=U.event,Z=W.options.indexAxis,X=W.scales,mt=W.scales[Z].getLabelForValue(Number(W.scales[Z].getValueForPixel(K[Z]))),rt=W.scales[Z].getLabels().indexOf(mt),yt=(G=t.chartData.isLabelEmpty)==null?void 0:G[rt];if(($t=>$t==="x"?K.y>X.x.top:K.x<X.y.right)(Z)){A.interactionMode!=="interactive"&&(A.showTooltip=!1);const at=W.canvas.getContext("2d").measureText(mt).width,vt=Math.abs(Math.round(K.x-at*.5)),ee=Math.round(K.x+at*.5),le=W.canvas.getBoundingClientRect(),jt=40;S.left=Z==="x"?`${(vt>0?vt:ee)-S.offset+le.left}px`:`${K.x-at*.5-S.offset+le.left}px`,S.top=`${K.y-jt+le.top}px`,mt.length>ia?(S.show=!0,S.text=mt):yt?(S.text=e.t("emptyEntityInfo"),S.show=!0):S.show=!1}else S.show=!1}}},a,...t.annotations?[v]:[]],I=d.computed(()=>t.chartData.labels&&t.chartData.labels.length||0),F=d.ref(0),Y=d.ref(0),Q=new ResizeObserver(tf(W=>{F.value=W[0].contentRect.width,Y.value=W[0].contentRect.height},100)),V=d.computed(()=>{var U,G;const W=(G=(U=t.chartData)==null?void 0:U.labels)==null?void 0:G.length;return h.value&&W&&!O.value?`${Math.max(W*(uC+Cm),F.value)}px`:lC}),ot=d.computed(()=>{var U,G;const W=(G=(U=t.chartData)==null?void 0:U.labels)==null?void 0:G.length;return h.value&&W&&O.value?`${Math.max(W*(dC+Cm),Y.value)}px`:cC});ft.useReportChartDataForSynthetics(d.toRef(t,"chartData"),d.toRef(t,"syntheticsDataKey")),d.onMounted(()=>{t.annotations&&ye.register(Tm),o.value&&(F.value=o.value.offsetWidth,Y.value=o.value.offsetHeight,Q.observe(o.value))}),d.onUnmounted(()=>{o.value&&Q.unobserve(o.value)});const j=d.computed(()=>{const W=ft.useBarChartOptions({tooltipState:A,legendID:m,stacked:d.toRef(t,"stacked"),metricAxesTitle:d.toRef(t,"metricAxesTitle"),dimensionAxesTitle:d.toRef(t,"dimensionAxesTitle"),indexAxis:O.value?"y":"x",numLabels:I});return{...W.value,plugins:{...W.value.plugins,annotation:{annotations:g(),clip:!1}}}}),z=ft.useChartJSCommon("bar",h,d.toRef(t,"chartData"),R,j);d.onBeforeUnmount(()=>{ye.unregister(Tm)});const q={[xe.Bottom]:"column"},J=d.computed(()=>{if(f.value&&z.value){const W=window.devicePixelRatio,U=z.value,G=U.scales.y.width*W+gC,K=(U.scales.y.height+U.scales.y.top+U.scales.x.height)*W,Z=f.value.getContext("2d");return Z.scale(W,W),Z.canvas.width=G,Z.canvas.height=K,Z.canvas.style.width=`${G/W}px`,Z.canvas.style.height=`${K/W}px`,{scale:W,width:G*W,height:K*W,targetCtx:Z}}return null}),$=W=>{const U=W.target;if(J.value&&z.value&&!O.value){const G=J.value.scale,K=J.value.targetCtx,Z=J.value.width,X=J.value.height,mt=z.value,St=mt.canvas;K.fillStyle="white",U.scrollLeft>=hC&&U.scrollLeft<=fC?(K.globalCompositeOperation="source-over",K.clearRect(0,0,Z,X),K.drawImage(St,0,0,Z,X,0,0,Z,X),K.globalCompositeOperation="destination-over",K.fillRect(0,0,Z,X)):(K.globalCompositeOperation="source-over",K.fillRect(0,(mt.scales.y.height+mt.scales.y.top+mC)*G,Z,mt.scales.x.height*G))}A.offsetY=U.scrollTop,A.offsetX=U.scrollLeft,S.offset=U.scrollLeft},pt=({width:W,height:U})=>{A.width=W,A.height=U};d.watch(()=>t.orientation,()=>{var W;if(f.value&&J.value){const U=J.value.width,G=J.value.height;((W=f.value)==null?void 0:W.getContext("2d")).clearRect(0,0,U,G)}A.showTooltip=!1,A.interactionMode="idle"}),d.watch(()=>t.annotations,W=>{z.value&&(W?z.value.options.plugins.annotation.annotations=g(t.chartData):delete z.value.options.plugins.annotation.annotations)});const bt=()=>{A.showTooltip&&(A.interactionMode!=="idle"?A.interactionMode="idle":A.interactionMode="interactive")};return(W,U)=>(d.openBlock(),d.createElementBlock("div",{ref:"chartParent",class:d.normalizeClass(["chart-parent",q[d.unref(x)]])},[d.createElementVNode("canvas",{id:d.unref(s),ref:"axis",class:"axis"},null,8,rC),d.createElementVNode("div",{ref:"chartContainer",class:"chart-container",onClick:U[0]||(U[0]=G=>bt()),onScroll:$},[d.createElementVNode("div",{class:"chart-body",style:d.normalizeStyle({width:V.value,height:ot.value})},[d.createElementVNode("canvas",{id:d.unref(r),ref:"canvas",class:"chart-canvas"},null,8,aC)],4)],544),(d.openBlock(),d.createBlock(d.Teleport,{to:"body"},[S.show?(d.openBlock(),d.createElementBlock("div",{key:0,class:"axis-tooltip",style:d.normalizeStyle({top:S.top,left:S.left}),width:"auto"},[d.createElementVNode("div",oC,d.toDisplayString(S.text),1)],4)):d.createCommentVNode("",!0),d.createVNode(pa,{"absolute-left":d.unref(E),"absolute-top":d.unref(D),"chart-parent-ref":l.value,state:A,"tooltip-title":n.tooltipTitle,onDimensions:pt},null,8,["absolute-left","absolute-top","chart-parent-ref","state","tooltip-title"])])),d.createVNode(Pl,{id:d.unref(m),"chart-instance":d.unref(z),items:_.value},null,8,["id","chart-instance","items"])],2))}}),[["__scopeId","data-v-60e5a1a7"]]);/*!
|
|
24
24
|
* chartjs-adapter-date-fns v3.0.0
|
|
25
25
|
* https://www.chartjs.org
|
|
26
26
|
* (c) 2022 chartjs-adapter-date-fns Contributors
|