@kong-ui-public/analytics-chart 10.8.1-pr.2637.b25f7e003.0 → 10.8.1-pr.2637.f703f4556.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-0e972e3c]{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-0e972e3c]{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-0e972e3c]{color:#52596e;color:var(--kui-color-text-netural-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-078294a6]{cursor:move}.tooltip-container[data-v-078294a6]{background-color:#fff;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-078294a6]{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-078294a6]{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-078294a6]{margin-top:6px;margin-top:var(--kui-space-30, 6px);right:0;top:0}.tooltip-container .tooltip-title .subtitle[data-v-078294a6]{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-078294a6]{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-078294a6]{-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-078294a6] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.tooltip-container .tooltip[data-v-078294a6] ::-webkit-scrollbar-track{background:transparent}.tooltip-container .tooltip[data-v-078294a6] ::-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-078294a6]{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-078294a6]{flex:1;max-width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tooltip-container .tooltip .display-label.empty[data-v-078294a6]{font-style:italic}.tooltip-container .tooltip .display-value[data-v-078294a6]{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-078294a6]{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-2e13ddb3]{display:flex;margin:6px 0 0;max-height:inherit;-ms-overflow-style:thin;overflow-x:hidden;overflow-y:auto;padding-left:0}.legend-container[data-v-2e13ddb3]{-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-2e13ddb3] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.legend-container[data-v-2e13ddb3] ::-webkit-scrollbar-track{background:transparent}.legend-container[data-v-2e13ddb3] ::-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.vertical[data-v-2e13ddb3]{flex-direction:column;justify-content:flex-start;max-height:90%;max-width:15%;min-width:10%;padding-left:12px;row-gap:16px}.legend-container.vertical .truncate-label[data-v-2e13ddb3]{max-width:12ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-container.vertical li .legend[data-v-2e13ddb3]{margin-top:4px}@media (max-width: 767px){.legend-container.vertical[data-v-2e13ddb3]{column-gap:12px;display:grid;grid-template-columns:repeat(auto-fit,12ch);height:40px;justify-content:center;max-width:99%!important}.legend-container.vertical .sub-label[data-v-2e13ddb3]{display:none}}.legend-container.horizontal[data-v-2e13ddb3]{column-gap:12px;display:grid;height:var(--v6d3f1170);justify-content:center;width:99%}.legend-container.horizontal .truncate-label[data-v-2e13ddb3]{max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-container.horizontal li[data-v-2e13ddb3]{align-items:center;margin:0}.legend-container.horizontal li .label[data-v-2e13ddb3]{line-height:24px;padding-right:2px;white-space:nowrap}.legend-container li[data-v-2e13ddb3]{align-items:start;cursor:pointer;display:flex;line-height:1}.legend-container li .square-marker[data-v-2e13ddb3]{height:8px;margin:0 6px 0 0;width:8px}.legend-container li .label[data-v-2e13ddb3]{font-size:12px}.legend-container li .sub-label[data-v-2e13ddb3]{font-size:12px;line-height:16px;word-break:none}.legend-container li .strike-through[data-v-2e13ddb3]{text-decoration:line-through}.legend-container li .empty[data-v-2e13ddb3]{font-style:italic}.legend-container li .tooltip-content[data-v-2e13ddb3]{max-width:40ch}.chart-parent[data-v-acf2a980]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-acf2a980]{flex-direction:column}.chart-parent.column .chart-container[data-v-acf2a980]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-acf2a980]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-acf2a980]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-acf2a980]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-acf2a980]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-acf2a980]{flex:1 1 auto;position:relative}.chart-container[data-v-acf2a980]{overflow:auto}.chart-container[data-v-acf2a980]{-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-acf2a980] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.chart-container[data-v-acf2a980] ::-webkit-scrollbar-track{background:transparent}.chart-container[data-v-acf2a980] ::-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-acf2a980]{height:100%}.chart-container[data-v-acf2a980]::-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-acf2a980]::-webkit-scrollbar{width:10px}.chart-container[data-v-acf2a980]::-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-acf2a980]{left:0;pointer-events:none;position:absolute;top:0;z-index:99}.axis-tooltip[data-v-acf2a980]{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-acf2a980]{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-acf2a980]{height:100%;left:0;position:relative;top:0;width:100%}.chart-parent[data-v-f3942f91]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-f3942f91]{flex-direction:column}.chart-parent.column .chart-container[data-v-f3942f91]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-f3942f91]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-f3942f91]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-f3942f91]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-f3942f91]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-f3942f91]{flex:1 1 auto;position:relative}.chart-parent[data-v-45406bb2]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-45406bb2]{flex-direction:column}.chart-parent.column .chart-container[data-v-45406bb2]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-45406bb2]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-45406bb2]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-45406bb2]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-45406bb2]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-45406bb2]{flex:1 1 auto;position:relative}.analytics-chart-shell[data-v-8b37cc76],.simple-chart-shell[data-v-8b37cc76]{border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;flex-direction:column}.analytics-chart-shell .chart-empty-state[data-v-8b37cc76],.simple-chart-shell .chart-empty-state[data-v-8b37cc76]{display:flex;flex-direction:column;height:100%;justify-content:center}.analytics-chart-shell[data-v-8b37cc76]{height:100%;position:relative;width:100%}.analytics-chart-shell .analytics-chart-parent[data-v-8b37cc76]{height:inherit;width:inherit}.analytics-chart-shell .chart-empty-state[data-v-8b37cc76]{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-header[data-v-8b37cc76]{align-items:center;display:flex;justify-content:flex-start;width:100%;z-index:999}.analytics-chart-shell .tooltip[data-v-8b37cc76]{display:flex;margin-left:12px;margin-left:var(--kui-space-50, 12px);margin-top:2px;margin-top:var(--kui-space-10, 2px)}.analytics-chart-shell .tooltip .tooltip-content[data-v-8b37cc76]{max-width:40vw}.chart-parent[data-v-32e7f9e0]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-32e7f9e0]{flex-direction:column}.chart-parent.column .chart-container[data-v-32e7f9e0]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-32e7f9e0]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-32e7f9e0]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-32e7f9e0]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-32e7f9e0]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-32e7f9e0]{flex:1 1 auto;position:relative}.chart-parent[data-v-32e7f9e0]{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-32e7f9e0]{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-32e7f9e0]{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-32e7f9e0]{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-32e7f9e0]{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-caf2e305]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-caf2e305]{flex-direction:column}.chart-parent.column .chart-container[data-v-caf2e305]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-caf2e305]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-caf2e305]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-caf2e305]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-caf2e305]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-caf2e305]{flex:1 1 auto;position:relative}.chart-parent[data-v-caf2e305]{container-type:inline-size}.chart-parent .single-value-error[data-v-caf2e305] .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-caf2e305]{align-items:baseline}.chart-parent .single-value-wrapper .single-value[data-v-caf2e305]{color:#000933;font-size:24px;font-weight:700;line-height:36px}.chart-parent .single-value-wrapper .single-value-unit[data-v-caf2e305]{color:#000933;font-size:20px;font-weight:700;line-height:32px}.chart-parent .single-value-wrapper .single-value-trend[data-v-caf2e305]{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-caf2e305]{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-caf2e305]{margin-right:4px;margin-right:var(--kui-space-20, 4px)}.chart-parent .single-value-wrapper .single-value-trend .trend-change.positive[data-v-caf2e305]{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-caf2e305]{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-caf2e305]{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-caf2e305]{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-caf2e305]{font-size:48px;line-height:56px}.chart-parent .single-value-wrapper .single-value-unit[data-v-caf2e305]{font-size:40px;line-height:48px}}@container (min-width: 500px){.chart-parent .single-value-wrapper .single-value[data-v-caf2e305]{font-size:56px;line-height:64px}.chart-parent .single-value-wrapper .single-value-unit[data-v-caf2e305]{font-size:48px;line-height:56px}}@container (min-width: 700px){.chart-parent .single-value-wrapper .single-value[data-v-caf2e305]{font-size:64px;line-height:72px}.chart-parent .single-value-wrapper .single-value-unit[data-v-caf2e305]{font-size:56px;line-height:64px}}@container (min-width: 1000px){.chart-parent .single-value-wrapper .single-value[data-v-caf2e305]{font-size:80px;line-height:88px}.chart-parent .single-value-wrapper .single-value-unit[data-v-caf2e305]{font-size:64px;line-height:72px}}@container (min-width: 1200px){.chart-parent .single-value-wrapper .single-value[data-v-caf2e305]{font-size:96px;line-height:104px}.chart-parent .single-value-wrapper .single-value-unit[data-v-caf2e305]{font-size:80px;line-height:88px}}.left-align[data-v-caf2e305]{justify-content:flex-start}.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-665e7735]{border:none!important;max-height:100%;padding:0!important}.kong-ui-public-top-n-table .top-n-card-description[data-v-665e7735]{color:#6c7489;font-size:12px;text-align:right}.kong-ui-public-top-n-table[data-v-665e7735] .k-card-actions{align-self:baseline;display:flex;line-height:22px}.kong-ui-public-top-n-table[data-v-665e7735] .card-content{overflow-y:auto}.kong-ui-public-top-n-table[data-v-665e7735] .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-665e7735] .card-content ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.kong-ui-public-top-n-table[data-v-665e7735] .card-content ::-webkit-scrollbar-track{background:transparent}.kong-ui-public-top-n-table[data-v-665e7735] .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-665e7735]{display:flex;flex-direction:column;max-height:100%;width:100%}.kong-ui-public-top-n-table .top-n-table .table-headings[data-v-665e7735]{flex-shrink:0;font-size:14px;font-weight:600;line-height:24px}.kong-ui-public-top-n-table .top-n-table .table-row[data-v-665e7735]{align-self:stretch;border-bottom:1px solid #e0e4ea;display:flex;justify-content:space-between}.kong-ui-public-top-n-table .top-n-table .table-row[data-v-665e7735]:last-of-type{border-bottom:none}.kong-ui-public-top-n-table .top-n-table .column-1[data-v-665e7735]{flex:1;padding:0 24px 12px 0}.kong-ui-public-top-n-table .top-n-table .column-2[data-v-665e7735]{flex:1;max-width:110px;padding:0 0 12px}.kong-ui-public-top-n-table .top-n-table .table-body[data-v-665e7735]{overflow-y:auto}.kong-ui-public-top-n-table .top-n-table .table-body .table-row[data-v-665e7735]:first-of-type{border-top:1px solid #e0e4ea}.kong-ui-public-top-n-table .top-n-table .table-body .column-1[data-v-665e7735],.kong-ui-public-top-n-table .top-n-table .table-body .column-2[data-v-665e7735]{padding-top:12px}.kong-ui-public-top-n-table .top-n-table .table-body .column-1[data-v-665e7735]{color:#3a3f51;font-size:14px}.kong-ui-public-top-n-table .top-n-table .table-body .column-1[data-v-665e7735] a{color:#0044f4;font-weight:700;text-decoration:none}.kong-ui-public-top-n-table.kong-card.border{border-radius:4px;padding:20px}.kong-ui-public-top-n-table.kong-card.border .k-card-header{align-items:baseline;margin-bottom:0!important}.kong-ui-public-top-n-table.kong-card.border .k-card-header .k-card-title{margin-bottom:16px}.kong-ui-public-top-n-table.kong-card.border .k-card-header .k-card-title h4{font-size:16px;font-weight:600}.kong-ui-public-csv-export-modal .modal-container{min-width:580px}.kong-ui-public-csv-export-modal .modal-container .selected-range{font-size:14px}.kong-ui-public-csv-export-modal .modal-container .text-muted{color:#00000073!important;font-size:14px}.kong-ui-public-csv-export-modal .modal-container .vitals-table{font-size:14px;margin-bottom:20px;margin-top:6px;width:100%}.kong-ui-public-csv-export-modal .modal-container .k-table thead{border-top:1px solid #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-e18e899f]{align-items:center;border:1px solid #e0e4ea;border-radius:4px;display:flex;height:30px;justify-content:center;overflow:hidden;padding-top:1px;position:relative}.container .no-data[data-v-e18e899f]{color:#6c7489;cursor:default;font-size:12px;-webkit-user-select:none;user-select:none}.container .label[data-v-e18e899f]{background-color:#ecfcff;border-bottom:1px solid #e0e4ea;border-radius:4px 0;border-right:1px solid #e0e4ea;color:#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-e18e899f]{z-index:10}
1
+ .zoom-timerange-container[data-v-0e972e3c]{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-0e972e3c]{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-0e972e3c]{color:#52596e;color:var(--kui-color-text-netural-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-078294a6]{cursor:move}.tooltip-container[data-v-078294a6]{background-color:#fff;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-078294a6]{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-078294a6]{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-078294a6]{margin-top:6px;margin-top:var(--kui-space-30, 6px);right:0;top:0}.tooltip-container .tooltip-title .subtitle[data-v-078294a6]{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-078294a6]{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-078294a6]{-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-078294a6] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.tooltip-container .tooltip[data-v-078294a6] ::-webkit-scrollbar-track{background:transparent}.tooltip-container .tooltip[data-v-078294a6] ::-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-078294a6]{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-078294a6]{flex:1;max-width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tooltip-container .tooltip .display-label.empty[data-v-078294a6]{font-style:italic}.tooltip-container .tooltip .display-value[data-v-078294a6]{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-078294a6]{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-2e13ddb3]{display:flex;margin:6px 0 0;max-height:inherit;-ms-overflow-style:thin;overflow-x:hidden;overflow-y:auto;padding-left:0}.legend-container[data-v-2e13ddb3]{-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-2e13ddb3] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.legend-container[data-v-2e13ddb3] ::-webkit-scrollbar-track{background:transparent}.legend-container[data-v-2e13ddb3] ::-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.vertical[data-v-2e13ddb3]{flex-direction:column;justify-content:flex-start;max-height:90%;max-width:15%;min-width:10%;padding-left:12px;row-gap:16px}.legend-container.vertical .truncate-label[data-v-2e13ddb3]{max-width:12ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-container.vertical li .legend[data-v-2e13ddb3]{margin-top:4px}@media (max-width: 767px){.legend-container.vertical[data-v-2e13ddb3]{column-gap:12px;display:grid;grid-template-columns:repeat(auto-fit,12ch);height:40px;justify-content:center;max-width:99%!important}.legend-container.vertical .sub-label[data-v-2e13ddb3]{display:none}}.legend-container.horizontal[data-v-2e13ddb3]{column-gap:12px;display:grid;height:var(--v6d3f1170);justify-content:center;width:99%}.legend-container.horizontal .truncate-label[data-v-2e13ddb3]{max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-container.horizontal li[data-v-2e13ddb3]{align-items:center;margin:0}.legend-container.horizontal li .label[data-v-2e13ddb3]{line-height:24px;padding-right:2px;white-space:nowrap}.legend-container li[data-v-2e13ddb3]{align-items:start;cursor:pointer;display:flex;line-height:1}.legend-container li .square-marker[data-v-2e13ddb3]{height:8px;margin:0 6px 0 0;width:8px}.legend-container li .label[data-v-2e13ddb3]{font-size:12px}.legend-container li .sub-label[data-v-2e13ddb3]{font-size:12px;line-height:16px;word-break:none}.legend-container li .strike-through[data-v-2e13ddb3]{text-decoration:line-through}.legend-container li .empty[data-v-2e13ddb3]{font-style:italic}.legend-container li .tooltip-content[data-v-2e13ddb3]{max-width:40ch}.chart-parent[data-v-acf2a980]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-acf2a980]{flex-direction:column}.chart-parent.column .chart-container[data-v-acf2a980]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-acf2a980]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-acf2a980]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-acf2a980]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-acf2a980]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-acf2a980]{flex:1 1 auto;position:relative}.chart-container[data-v-acf2a980]{overflow:auto}.chart-container[data-v-acf2a980]{-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-acf2a980] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.chart-container[data-v-acf2a980] ::-webkit-scrollbar-track{background:transparent}.chart-container[data-v-acf2a980] ::-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-acf2a980]{height:100%}.chart-container[data-v-acf2a980]::-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-acf2a980]::-webkit-scrollbar{width:10px}.chart-container[data-v-acf2a980]::-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-acf2a980]{left:0;pointer-events:none;position:absolute;top:0;z-index:99}.axis-tooltip[data-v-acf2a980]{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-acf2a980]{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-acf2a980]{height:100%;left:0;position:relative;top:0;width:100%}.chart-parent[data-v-f3942f91]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-f3942f91]{flex-direction:column}.chart-parent.column .chart-container[data-v-f3942f91]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-f3942f91]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-f3942f91]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-f3942f91]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-f3942f91]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-f3942f91]{flex:1 1 auto;position:relative}.chart-parent[data-v-45406bb2]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-45406bb2]{flex-direction:column}.chart-parent.column .chart-container[data-v-45406bb2]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-45406bb2]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-45406bb2]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-45406bb2]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-45406bb2]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-45406bb2]{flex:1 1 auto;position:relative}.analytics-chart-shell[data-v-8b37cc76],.simple-chart-shell[data-v-8b37cc76]{border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;flex-direction:column}.analytics-chart-shell .chart-empty-state[data-v-8b37cc76],.simple-chart-shell .chart-empty-state[data-v-8b37cc76]{display:flex;flex-direction:column;height:100%;justify-content:center}.analytics-chart-shell[data-v-8b37cc76]{height:100%;position:relative;width:100%}.analytics-chart-shell .analytics-chart-parent[data-v-8b37cc76]{height:inherit;width:inherit}.analytics-chart-shell .chart-empty-state[data-v-8b37cc76]{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-header[data-v-8b37cc76]{align-items:center;display:flex;justify-content:flex-start;width:100%;z-index:999}.analytics-chart-shell .tooltip[data-v-8b37cc76]{display:flex;margin-left:12px;margin-left:var(--kui-space-50, 12px);margin-top:2px;margin-top:var(--kui-space-10, 2px)}.analytics-chart-shell .tooltip .tooltip-content[data-v-8b37cc76]{max-width:40vw}.chart-parent[data-v-32e7f9e0]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-32e7f9e0]{flex-direction:column}.chart-parent.column .chart-container[data-v-32e7f9e0]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-32e7f9e0]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-32e7f9e0]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-32e7f9e0]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-32e7f9e0]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-32e7f9e0]{flex:1 1 auto;position:relative}.chart-parent[data-v-32e7f9e0]{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-32e7f9e0]{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-32e7f9e0]{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-32e7f9e0]{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-32e7f9e0]{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-4b062a7d]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-4b062a7d]{flex-direction:column}.chart-parent.column .chart-container[data-v-4b062a7d]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-4b062a7d]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-4b062a7d]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-4b062a7d]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-4b062a7d]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-4b062a7d]{flex:1 1 auto;position:relative}.chart-parent[data-v-4b062a7d]{container-type:inline-size}.chart-parent .single-value-error[data-v-4b062a7d] .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-4b062a7d]{align-items:baseline}.chart-parent .single-value-wrapper .single-value[data-v-4b062a7d]{color:#000933;font-size:24px;font-weight:700;line-height:36px}.chart-parent .single-value-wrapper .single-value-unit[data-v-4b062a7d]{color:#000933;font-size:20px;font-weight:700;line-height:32px}.chart-parent .single-value-wrapper .single-value-trend[data-v-4b062a7d]{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-4b062a7d]{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-4b062a7d]{margin-right:4px;margin-right:var(--kui-space-20, 4px)}.chart-parent .single-value-wrapper .single-value-trend .trend-change.positive[data-v-4b062a7d]{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-4b062a7d]{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-4b062a7d]{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-4b062a7d]{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-4b062a7d]{font-size:48px;line-height:56px}.chart-parent .single-value-wrapper .single-value-unit[data-v-4b062a7d]{font-size:40px;line-height:48px}}@container (min-width: 500px){.chart-parent .single-value-wrapper .single-value[data-v-4b062a7d]{font-size:56px;line-height:64px}.chart-parent .single-value-wrapper .single-value-unit[data-v-4b062a7d]{font-size:48px;line-height:56px}}@container (min-width: 700px){.chart-parent .single-value-wrapper .single-value[data-v-4b062a7d]{font-size:64px;line-height:72px}.chart-parent .single-value-wrapper .single-value-unit[data-v-4b062a7d]{font-size:56px;line-height:64px}}@container (min-width: 1000px){.chart-parent .single-value-wrapper .single-value[data-v-4b062a7d]{font-size:80px;line-height:88px}.chart-parent .single-value-wrapper .single-value-unit[data-v-4b062a7d]{font-size:64px;line-height:72px}}@container (min-width: 1200px){.chart-parent .single-value-wrapper .single-value[data-v-4b062a7d]{font-size:96px;line-height:104px}.chart-parent .single-value-wrapper .single-value-unit[data-v-4b062a7d]{font-size:80px;line-height:88px}}.left-align[data-v-4b062a7d]{justify-content:flex-start}.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-665e7735]{border:none!important;max-height:100%;padding:0!important}.kong-ui-public-top-n-table .top-n-card-description[data-v-665e7735]{color:#6c7489;font-size:12px;text-align:right}.kong-ui-public-top-n-table[data-v-665e7735] .k-card-actions{align-self:baseline;display:flex;line-height:22px}.kong-ui-public-top-n-table[data-v-665e7735] .card-content{overflow-y:auto}.kong-ui-public-top-n-table[data-v-665e7735] .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-665e7735] .card-content ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.kong-ui-public-top-n-table[data-v-665e7735] .card-content ::-webkit-scrollbar-track{background:transparent}.kong-ui-public-top-n-table[data-v-665e7735] .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-665e7735]{display:flex;flex-direction:column;max-height:100%;width:100%}.kong-ui-public-top-n-table .top-n-table .table-headings[data-v-665e7735]{flex-shrink:0;font-size:14px;font-weight:600;line-height:24px}.kong-ui-public-top-n-table .top-n-table .table-row[data-v-665e7735]{align-self:stretch;border-bottom:1px solid #e0e4ea;display:flex;justify-content:space-between}.kong-ui-public-top-n-table .top-n-table .table-row[data-v-665e7735]:last-of-type{border-bottom:none}.kong-ui-public-top-n-table .top-n-table .column-1[data-v-665e7735]{flex:1;padding:0 24px 12px 0}.kong-ui-public-top-n-table .top-n-table .column-2[data-v-665e7735]{flex:1;max-width:110px;padding:0 0 12px}.kong-ui-public-top-n-table .top-n-table .table-body[data-v-665e7735]{overflow-y:auto}.kong-ui-public-top-n-table .top-n-table .table-body .table-row[data-v-665e7735]:first-of-type{border-top:1px solid #e0e4ea}.kong-ui-public-top-n-table .top-n-table .table-body .column-1[data-v-665e7735],.kong-ui-public-top-n-table .top-n-table .table-body .column-2[data-v-665e7735]{padding-top:12px}.kong-ui-public-top-n-table .top-n-table .table-body .column-1[data-v-665e7735]{color:#3a3f51;font-size:14px}.kong-ui-public-top-n-table .top-n-table .table-body .column-1[data-v-665e7735] a{color:#0044f4;font-weight:700;text-decoration:none}.kong-ui-public-top-n-table.kong-card.border{border-radius:4px;padding:20px}.kong-ui-public-top-n-table.kong-card.border .k-card-header{align-items:baseline;margin-bottom:0!important}.kong-ui-public-top-n-table.kong-card.border .k-card-header .k-card-title{margin-bottom:16px}.kong-ui-public-top-n-table.kong-card.border .k-card-header .k-card-title h4{font-size:16px;font-weight:600}.kong-ui-public-csv-export-modal .modal-container{min-width:580px}.kong-ui-public-csv-export-modal .modal-container .selected-range{font-size:14px}.kong-ui-public-csv-export-modal .modal-container .text-muted{color:#00000073!important;font-size:14px}.kong-ui-public-csv-export-modal .modal-container .vitals-table{font-size:14px;margin-bottom:20px;margin-top:6px;width:100%}.kong-ui-public-csv-export-modal .modal-container .k-table thead{border-top:1px solid #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-e18e899f]{align-items:center;border:1px solid #e0e4ea;border-radius:4px;display:flex;height:30px;justify-content:center;overflow:hidden;padding-top:1px;position:relative}.container .no-data[data-v-e18e899f]{color:#6c7489;cursor:default;font-size:12px;-webkit-user-select:none;user-select:none}.container .label[data-v-e18e899f]{background-color:#ecfcff;border-bottom:1px solid #e0e4ea;border-radius:4px 0;border-right:1px solid #e0e4ea;color:#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-e18e899f]{z-index:10}
@@ -1 +1 @@
1
- {"version":3,"file":"SingleValue.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chart-types/SingleValue.vue"],"names":[],"mappings":"AA6XA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAA0B,eAAe,EAAmB,MAAM,qCAAqC,CAAA;;;cA+Y/F,QAAQ,CAAC,eAAe,CAAC;;;IAG3C;;OAEG;;;;;;;;;;;;;;;;;;cAkBe,QAAQ,CAAC,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;;;;;cAvBvE,QAAQ,CAAC,eAAe,CAAC;;;IAG3C;;OAEG;;;;;;;;;;;;;;;;;;cAkBe,QAAQ,CAAC,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;;;;;;;;;;AA5B3F,wBAgCG"}
1
+ {"version":3,"file":"SingleValue.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chart-types/SingleValue.vue"],"names":[],"mappings":"AAuXA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAA0B,eAAe,EAAmB,MAAM,qCAAqC,CAAA;;;cAyY/F,QAAQ,CAAC,eAAe,CAAC;;;IAG3C;;OAEG;;;;;;;;;;;;;;;;;;cAkBe,QAAQ,CAAC,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;;;;;cAvBvE,QAAQ,CAAC,eAAe,CAAC;;;IAG3C;;OAEG;;;;;;;;;;;;;;;;;;cAkBe,QAAQ,CAAC,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;;;;;;;;;;AA5B3F,wBAgCG"}
@@ -256,7 +256,10 @@ const Dp = "No data in the current time frame", kp = "Once there is traffic, it
256
256
  metricNames: "Error: 'metricNames' response incorrectly formatted (must have at least one entry)"
257
257
  }
258
258
  }, $p = {
259
- valueError: "Invalid configuration"
259
+ valueError: "Invalid configuration",
260
+ trend: {
261
+ not_available: "Not available"
262
+ }
260
263
  }, jp = "Time range", Up = "No data", Vp = {
261
264
  zoom: "Zoom in",
262
265
  view_requests: "View requests",
@@ -20857,19 +20860,18 @@ function qm(e, t, n) {
20857
20860
  const { i18n: i } = rs.useI18n();
20858
20861
  return L(() => {
20859
20862
  var s, r, a;
20860
- if (!e.value)
20861
- return "";
20862
- if (((s = t == null ? void 0 : t.value) == null ? void 0 : s.type) === "relative")
20863
- return i.t(`trendRange.${t.value.time_range}`);
20864
- let o, l;
20865
- if ((r = n == null ? void 0 : n.value) != null && r.start_ms && n.value.end_ms)
20866
- o = n.value.start_ms, l = n.value.end_ms;
20867
- else if (((a = t == null ? void 0 : t.value) == null ? void 0 : a.type) === "absolute" && t.value.start && t.value.end)
20868
- o = new Date(t.value.start).getTime(), l = new Date(t.value.end).getTime();
20869
- else
20870
- return "";
20871
- let c = (l - o) / (1e3 * 60 * 60 * 24), u = (l - o) / (1e3 * 60 * 60), d = (l - o) / (1e3 * 60);
20872
- return e.value && (c /= 2, u /= 2, d /= 2), c >= 1 ? i.t("trendRange.custom_days", { numDays: Math.round(c) }) : u >= 1 ? i.t("trendRange.custom_hours", { numHours: Math.round(u) }) : d >= 1 ? i.t("trendRange.custom_minutes", { numMinutes: Math.round(d) }) : i.t("trendRange.custom_days", { numDays: Math.round(c) });
20863
+ if (((s = t == null ? void 0 : t.value) == null ? void 0 : s.type) === "absolute") {
20864
+ let o, l;
20865
+ if ((r = n == null ? void 0 : n.value) != null && r.start_ms && n.value.end_ms)
20866
+ o = n.value.start_ms, l = n.value.end_ms;
20867
+ else if (t.value.start && t.value.end)
20868
+ o = new Date(t.value.start).getTime(), l = new Date(t.value.end).getTime();
20869
+ else
20870
+ return "";
20871
+ let c = (l - o) / (1e3 * 60 * 60 * 24), u = (l - o) / (1e3 * 60 * 60), d = (l - o) / (1e3 * 60);
20872
+ return e.value && (c /= 2, u /= 2, d /= 2), c >= 1 ? i.t("trendRange.custom_days", { numDays: Math.round(c) }) : u >= 1 ? i.t("trendRange.custom_hours", { numHours: Math.round(u) }) : d >= 1 ? i.t("trendRange.custom_minutes", { numMinutes: Math.round(d) }) : i.t("trendRange.custom_days", { numDays: Math.round(c) });
20873
+ }
20874
+ return ((a = t == null ? void 0 : t.value) == null ? void 0 : a.type) === "relative" && e.value ? i.t(`trendRange.${t.value.time_range}`) : "";
20873
20875
  });
20874
20876
  }
20875
20877
  var Ll = /* @__PURE__ */ new WeakMap(), rf = 0;
@@ -21688,9 +21690,7 @@ const SP = {
21688
21690
  }
21689
21691
  const P = i.decimalPoints && typeof i.decimalPoints == "number" ? i.decimalPoints : Ch;
21690
21692
  return S.toLocaleString("en-US", { maximumFractionDigits: P });
21691
- }), f = L(() => Jm(d.value ?? 0, u.value ?? 0) || 0), g = L(() => Zm(f.value, !0, i.increaseIsBad)), m = L(() => tp(g.value)), v = L(() => Qm(f.value, !0, "not available")), w = L(() => ({
21692
- justifyContent: s[r.value] ?? "space-evenly"
21693
- })), x = qm(L(() => i.showTrend), void 0, L(() => i.data.meta)), M = (S) => S > 0 ? "positive" : S < 0 ? "negative" : "neutral", D = (S) => S > 0 ? eT : S < 0 ? tT : uh;
21693
+ }), f = L(() => Jm(d.value ?? 0, u.value ?? 0) || 0), g = L(() => Zm(f.value, !0, i.increaseIsBad)), m = L(() => tp(g.value)), v = L(() => Qm(f.value, !0, t.t("singleValue.trend.not_available"))), w = L(() => ({ justifyContent: s[r.value] ?? "space-evenly" })), x = qm(L(() => i.showTrend), void 0, L(() => i.data.meta)), M = (S) => S > 0 ? "positive" : S < 0 ? "negative" : "neutral", D = (S) => S > 0 ? eT : S < 0 ? tT : uh;
21694
21694
  return mn(() => {
21695
21695
  var S, P, C, p;
21696
21696
  !i.showTrend && ((P = (S = i.data) == null ? void 0 : S.data) == null ? void 0 : P.length) > 1 ? console.warn("SingleValue chart should only be used with a single data point. Data length:", i.data.data.length) : i.showTrend && ((p = (C = i.data) == null ? void 0 : C.data) == null ? void 0 : p.length) !== 2 && console.warn("SingleValue with trend expects exactly 2 data points. Data length:", i.data.data.length);
@@ -21734,7 +21734,7 @@ const SP = {
21734
21734
  ], 4);
21735
21735
  };
21736
21736
  }
21737
- }), PP = /* @__PURE__ */ je(OP, [["__scopeId", "data-v-caf2e305"]]), EP = { class: "simple-chart-shell" }, AP = {
21737
+ }), PP = /* @__PURE__ */ je(OP, [["__scopeId", "data-v-4b062a7d"]]), EP = { class: "simple-chart-shell" }, AP = {
21738
21738
  key: 1,
21739
21739
  class: "analytics-chart-parent"
21740
21740
  }, RP = /* @__PURE__ */ ie({
@@ -1,4 +1,4 @@
1
- (function(ot,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("vue"),require("@kong-ui-public/i18n"),require("@kong/icons"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/i18n","@kong/icons","axios"],d):(ot=typeof globalThis<"u"?globalThis:ot||self,d(ot["kong-ui-publicvitals-chart"]={},ot.Vue,ot["kong-ui-public-i18n"],ot.KongIcons))})(this,function(ot,d,Qe,ne){"use strict";var aO=Object.defineProperty;var oO=(ot,d,Qe)=>d in ot?aO(ot,d,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):ot[d]=Qe;var R=(ot,d,Qe)=>oO(ot,typeof d!="symbol"?d+"":d,Qe);var zn;const kg={noDataAvailableTitle:"No data in the current time frame",noDataAvailableDescription:"Once there is traffic, it will display here",limitedResultsShown:"Not all data is shown in the below report. Reports are currently limited to a maximum of {maxReturned} entities.",entityNoName:"no-name",debug:"debug",total:"Total",jumpToExplore:"Open in explorer",more_actions:"More actions",emptyEntityInfo:"Requests that do not have a value for the selected group",chartUnits:{ms:"ms",bytes:"Byte{plural}",count:"request{plural}","count/minute":"rpm",requests:"request{plural}","token count":"token{plural}"},csvExport:{dataError:"Error loading data",noDataRange:"No data in selected range",noDataRetry:"Please adjust the time period and try again",timeRangeSelected:"selected",exportPreview:"Export preview",exportAsCsv:"Export as CSV",exportTimeRange:"Time range",exportDescription:"Exports a CSV of the data represented in the chart.",maximumRecordAmount:"The number of groups is limited to {value}",previewRows:"Previewing {rowsMax} of {rowsTotal} row{plural}",downloadButton:"Export",cancelButton:"Cancel",UtcOffset:"UTC offset",Timestamp:"Timestamp"},query_errors:{forbidden:{message:"Data request forbidden",details:"To access this data, either filter for an entity you have access to or request analytics viewer access from your administrator."},time_range_exceeded:{message:"Time range exceeded",details:"The time range for this report is outside of your organization's data retention period"},timeout:{message:"Data request timed out",details:"We're sorry, the request timed out. Please consider using a shorter time period or try again later."},other:{message:"Bad request"}},legend:{datapointValueDisplay:"{value} {unit}"},chartLabels:{ai_count:"LLM request count",ai_plugin:"AI plugin",ai_provider:"Provider",ai_request_model:"Request model",ai_response_model:"Response model",request_count:"Request count",request_per_minute:"Requests per minute",requests_per_minute:"Requests per minute",response_latency_average:"Response latency (avg)",response_latency_p99:"Response latency (p99)",response_latency_p95:"Response latency (p95)",response_latency_p50:"Response latency (p50)",kong_latency_average:"Kong latency (avg)",kong_latency_p99:"Kong latency (p99)",kong_latency_p95:"Kong latency (p95)",kong_latency_p50:"Kong latency (p50)",llm_cache_status:"Cache status",llm_embeddings_model:"Embeddings model",llm_embeddings_provider:"Embeddings provider",upstream_latency_average:"Upstream latency (avg)",upstream_latency_p99:"Upstream latency (p99)",upstream_latency_p95:"Upstream latency (p95)",upstream_latency_p50:"Upstream latency (p50)",response_size_p99:"Response size (p99)",response_size_p95:"Response size (p95)",response_size_p50:"Response size (p50)",response_size_average:"Response size (avg)",response_size_sum:"Response size (sum)",response_source:"Response source",request_size_p99:"Request size (p99)",request_size_p95:"Request size (p95)",request_size_p50:"Request size (p50)",request_size_average:"Request size (avg)",request_size_sum:"Request size (sum)",control_plane:"Control plane",control_plane_group:"Control plane group",consumer:"Consumer",country_code:"Country",country:"Country",data_plane_node:"Data plane node",data_plane_node_version:"Data plane node version",api_product:"API product",api_product_version:"API product version",portal:"Portal",realm:"Realm",runtime_group:"Runtime group",gateway_service:"Gateway service",route:"Route",application:"Application",status_code:"Status code",status_code_grouped:"Status code (grouped)",upstream_status_code:"Upstream status code",upstream_status_code_grouped:"Upstream status code group",time:"Time",Service:"Service",ServiceVersion:"Service version",Route:"Route",Application:"Application",RuntimeGroup:"Runtime group",GatewayService:"Gateway service",StatusCode:"Status code",CodeClass:"Status code (grouped)",Time:"Time",API_PRODUCT:"Api product",API_PRODUCT_VERSION:"Api product version",RUNTIME_GROUP:"Runtime group",GATEWAY_SERVICE:"Gateway service",ROUTE:"Route",APPLICATION:"Application",STATUS_CODE:"Status code",STATUS_CODE_GROUPED:"Status code (grouped)",TIME:"Time",ORGANIZATION:"Organization",TotalRequests:"Request count",RequestsPerMinute:"Requests per minute",LatencyP99:"Response latency (p99)",LatencyP95:"Response latency (p95)",LatencyP50:"Response latency (p50)",LatencyAverage:"Response latency (avg)",UpstreamLatencyP99:"Upstream latency (p99)",UpstreamLatencyP95:"Upstream latency (p95)",UpstreamLatencyP50:"Upstream latency (p50)",UpstreamLatencyAverage:"Upstream latency (avg)",KongLatencyP99:"Kong latency (p99)",KongLatencyP95:"Kong latency (p95)",KongLatencyP50:"Kong latency (p50)",KongLatencyAverage:"Kong latency (avg)",ResponseSizeP99:"Response size (p99)",ResponseSizeP95:"Response size (p95)",ResponseSizeP50:"Response size (p50)",RequestSizeP99:"Request size (p99)",RequestSizeP95:"Request size (p95)",RequestSizeP50:"Request size (p50)",SuccessfulRequests:"Successful requests",SUCCESS:"Successful requests",FailedRequests:"Failed requests",FAILURE:"Failed requests","5XX":"5xx","4XX":"4xx","3XX":"3xx","2XX":"2xx","1XX":"1xx",REQUEST_COUNT:"Request count",REQUEST_PER_MINUTE:"Requests per minute",RESPONSE_LATENCY_P99:"Response latency",RESPONSE_LATENCY_P95:"Response latency",RESPONSE_LATENCY_P50:"Response latency",RESPONSE_SIZE_P99:"Response size (p99)",RESPONSE_SIZE_P95:"Response size (p95)",RESPONSE_SIZE_P50:"Response size (p50)",REQUEST_SIZE_P99:"Request size (p99)",REQUEST_SIZE_P95:"Request size (p95)",REQUEST_SIZE_P50:"Request size (p50)",CONTROL_PLANE:"Control plane",____OTHER____:"Others",ai_request_count:"Request count",total_tokens:"Total token count",prompt_tokens:"Prompt token count",completion_tokens:"Completion token count",cost:"Costs",llm_cache_embeddings_latency_average:"Embeddings latency (avg)",llm_cache_fetch_latency_average:"Fetch latency (avg)",llm_latency_average:"Llm latency (avg)","threshold-warning":"Warning threshold: {value}","threshold-error":"Error threshold: {value}","thatreshold-neutral":"Alert threshold: {value}",api:"API",vulnerability_count:"Vulnerability count"},metricAxisTitles:{request_count:"Request count",requests_per_minute:"Requests per minute",latency_in:"Latency in {unit}",size_in:"Size in {unit}",response_latency_p99:"Response latency (p99) in {unit}",response_latency_p95:"Response latency (p95) in {unit}",response_latency_p50:"Response latency (p50) in {unit}",upstream_latency_p99:"Upstream latency (p99) in {unit}",upstream_latency_p95:"Upstream latency (p95) in {unit}",upstream_latency_p50:"Upstream latency (p50) in {unit}",kong_latency_p99:"Kong latency (p99) in {unit}",kong_latency_p95:"Kong latency (p95) in {unit}",kong_latency_p50:"Kong latency (p50) in {unit}",response_size_p99:"Response size (p99) in {unit}",response_size_p95:"Response size (p95) in {unit}",response_size_p50:"Response size (p50) in {unit}",request_size_p99:"Request size (p99) in {unit}",request_size_p95:"Request size (p95) in {unit}",request_size_p50:"Request size (p50) in {unit}",REQUEST_COUNT:"Request count",REQUEST_PER_MINUTE:"Requests per minute",RESPONSE_LATENCY_P99:"Response latency (p99) in {unit}",RESPONSE_LATENCY_P95:"Response latency (p95) in {unit}",RESPONSE_LATENCY_P50:"Response latency (p50) in {unit}",RESPONSE_SIZE_P99:"Response size (p99) in {unit}",RESPONSE_SIZE_P95:"Response size (p95) in {unit}",RESPONSE_SIZE_P50:"Response size (p50) in {unit}",REQUEST_SIZE_P99:"Request size (p99) in {unit}",REQUEST_SIZE_P95:"Request size (p95) in {unit}",REQUEST_SIZE_P50:"Request size (p50) in {unit}",TotalRequests:"Request count",RequestsPerMinute:"Requests per minute",LatencyP99:"Response latency (p99) in {unit}",LatencyP95:"Response latency (p95) in {unit}",LatencyP50:"Response latency (p50) in {unit}",LatencyAverage:"Response latency (avg) in {unit}",UpstreamLatencyP99:"Upstream latency (p99) in {unit}",UpstreamLatencyP95:"Upstream latency (p95) in {unit}",UpstreamLatencyP50:"Upstream latency (p50) in {unit}",UpstreamLatencyAverage:"Upstream latency (avg) in {unit}",KongLatencyP99:"Kong latency (p99) in {unit}",KongLatencyP95:"Kong latency (p95) in {unit}",KongLatencyP50:"Kong latency (p50) in {unit}",KongLatencyAverage:"Kong latency (avg) in {unit}",ResponseSizeP99:"Response size (p99) in {unit}",ResponseSizeP95:"Response size (p95) in {unit}",ResponseSizeP50:"Response size (p50) in {unit}",RequestSizeP99:"Request size (p99) in {unit}",RequestSizeP95:"Request size (p95) in {unit}",RequestSizeP50:"Request size (p50) in {unit}",ai_request_count:"Request count",total_tokens:"Total token count",prompt_tokens:"Prompt token count",completion_tokens:"Completion token count",cost:"Costs",llm_cache_embeddings_latency_average:"Embeddings latency (avg)",llm_cache_fetch_latency_average:"Fetch latency (avg)",llm_latency_average:"Llm latency (avg)",api:"API"},granularityAxisTitles:{tenSecondly:"@timestamp per 10 seconds",thirtySecondly:"@timestamp per 30 seconds",minutely:"@timestamp per minute",fiveMinutely:"@timestamp per 5 minutes",tenMinutely:"@timestamp per 10 minutes",thirtyMinutely:"@timestamp per 30 minutes",hourly:"@timestamp per hour",twoHourly:"@timestamp per 2 hours",twelveHourly:"@timestamp per 12 hours",daily:"@timestamp per day",weekly:"@timestamp per week"},topNTable:{nameLabel:"Name",defaultEmptyStateTitle:"No data to display",defaultErrorStateTitle:"Something went wrong",errors:{meta:"Error: response must contain 'meta'",display:"Error: 'display' response incorrectly formatted (must have at least one key)",metricNames:"Error: 'metricNames' response incorrectly formatted (must have at least one entry)"}},singleValue:{valueError:"Invalid configuration"},new_timerange_label:"Time range",sparkline_no_data:"No data",zoom_action_items:{zoom:"Zoom in",view_requests:"View requests",cancel:"Cancel",explore:"Explore"},zoom_time_range:{from:"From",to:"To"}};function Mg(){const e=Qe.createI18n("en-us",kg);return{i18n:e,i18nT:Qe.i18nTComponent(e)}}/*!
1
+ (function(ot,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("vue"),require("@kong-ui-public/i18n"),require("@kong/icons"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/i18n","@kong/icons","axios"],d):(ot=typeof globalThis<"u"?globalThis:ot||self,d(ot["kong-ui-publicvitals-chart"]={},ot.Vue,ot["kong-ui-public-i18n"],ot.KongIcons))})(this,function(ot,d,Qe,ne){"use strict";var aO=Object.defineProperty;var oO=(ot,d,Qe)=>d in ot?aO(ot,d,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):ot[d]=Qe;var R=(ot,d,Qe)=>oO(ot,typeof d!="symbol"?d+"":d,Qe);var zn;const kg={noDataAvailableTitle:"No data in the current time frame",noDataAvailableDescription:"Once there is traffic, it will display here",limitedResultsShown:"Not all data is shown in the below report. Reports are currently limited to a maximum of {maxReturned} entities.",entityNoName:"no-name",debug:"debug",total:"Total",jumpToExplore:"Open in explorer",more_actions:"More actions",emptyEntityInfo:"Requests that do not have a value for the selected group",chartUnits:{ms:"ms",bytes:"Byte{plural}",count:"request{plural}","count/minute":"rpm",requests:"request{plural}","token count":"token{plural}"},csvExport:{dataError:"Error loading data",noDataRange:"No data in selected range",noDataRetry:"Please adjust the time period and try again",timeRangeSelected:"selected",exportPreview:"Export preview",exportAsCsv:"Export as CSV",exportTimeRange:"Time range",exportDescription:"Exports a CSV of the data represented in the chart.",maximumRecordAmount:"The number of groups is limited to {value}",previewRows:"Previewing {rowsMax} of {rowsTotal} row{plural}",downloadButton:"Export",cancelButton:"Cancel",UtcOffset:"UTC offset",Timestamp:"Timestamp"},query_errors:{forbidden:{message:"Data request forbidden",details:"To access this data, either filter for an entity you have access to or request analytics viewer access from your administrator."},time_range_exceeded:{message:"Time range exceeded",details:"The time range for this report is outside of your organization's data retention period"},timeout:{message:"Data request timed out",details:"We're sorry, the request timed out. Please consider using a shorter time period or try again later."},other:{message:"Bad request"}},legend:{datapointValueDisplay:"{value} {unit}"},chartLabels:{ai_count:"LLM request count",ai_plugin:"AI plugin",ai_provider:"Provider",ai_request_model:"Request model",ai_response_model:"Response model",request_count:"Request count",request_per_minute:"Requests per minute",requests_per_minute:"Requests per minute",response_latency_average:"Response latency (avg)",response_latency_p99:"Response latency (p99)",response_latency_p95:"Response latency (p95)",response_latency_p50:"Response latency (p50)",kong_latency_average:"Kong latency (avg)",kong_latency_p99:"Kong latency (p99)",kong_latency_p95:"Kong latency (p95)",kong_latency_p50:"Kong latency (p50)",llm_cache_status:"Cache status",llm_embeddings_model:"Embeddings model",llm_embeddings_provider:"Embeddings provider",upstream_latency_average:"Upstream latency (avg)",upstream_latency_p99:"Upstream latency (p99)",upstream_latency_p95:"Upstream latency (p95)",upstream_latency_p50:"Upstream latency (p50)",response_size_p99:"Response size (p99)",response_size_p95:"Response size (p95)",response_size_p50:"Response size (p50)",response_size_average:"Response size (avg)",response_size_sum:"Response size (sum)",response_source:"Response source",request_size_p99:"Request size (p99)",request_size_p95:"Request size (p95)",request_size_p50:"Request size (p50)",request_size_average:"Request size (avg)",request_size_sum:"Request size (sum)",control_plane:"Control plane",control_plane_group:"Control plane group",consumer:"Consumer",country_code:"Country",country:"Country",data_plane_node:"Data plane node",data_plane_node_version:"Data plane node version",api_product:"API product",api_product_version:"API product version",portal:"Portal",realm:"Realm",runtime_group:"Runtime group",gateway_service:"Gateway service",route:"Route",application:"Application",status_code:"Status code",status_code_grouped:"Status code (grouped)",upstream_status_code:"Upstream status code",upstream_status_code_grouped:"Upstream status code group",time:"Time",Service:"Service",ServiceVersion:"Service version",Route:"Route",Application:"Application",RuntimeGroup:"Runtime group",GatewayService:"Gateway service",StatusCode:"Status code",CodeClass:"Status code (grouped)",Time:"Time",API_PRODUCT:"Api product",API_PRODUCT_VERSION:"Api product version",RUNTIME_GROUP:"Runtime group",GATEWAY_SERVICE:"Gateway service",ROUTE:"Route",APPLICATION:"Application",STATUS_CODE:"Status code",STATUS_CODE_GROUPED:"Status code (grouped)",TIME:"Time",ORGANIZATION:"Organization",TotalRequests:"Request count",RequestsPerMinute:"Requests per minute",LatencyP99:"Response latency (p99)",LatencyP95:"Response latency (p95)",LatencyP50:"Response latency (p50)",LatencyAverage:"Response latency (avg)",UpstreamLatencyP99:"Upstream latency (p99)",UpstreamLatencyP95:"Upstream latency (p95)",UpstreamLatencyP50:"Upstream latency (p50)",UpstreamLatencyAverage:"Upstream latency (avg)",KongLatencyP99:"Kong latency (p99)",KongLatencyP95:"Kong latency (p95)",KongLatencyP50:"Kong latency (p50)",KongLatencyAverage:"Kong latency (avg)",ResponseSizeP99:"Response size (p99)",ResponseSizeP95:"Response size (p95)",ResponseSizeP50:"Response size (p50)",RequestSizeP99:"Request size (p99)",RequestSizeP95:"Request size (p95)",RequestSizeP50:"Request size (p50)",SuccessfulRequests:"Successful requests",SUCCESS:"Successful requests",FailedRequests:"Failed requests",FAILURE:"Failed requests","5XX":"5xx","4XX":"4xx","3XX":"3xx","2XX":"2xx","1XX":"1xx",REQUEST_COUNT:"Request count",REQUEST_PER_MINUTE:"Requests per minute",RESPONSE_LATENCY_P99:"Response latency",RESPONSE_LATENCY_P95:"Response latency",RESPONSE_LATENCY_P50:"Response latency",RESPONSE_SIZE_P99:"Response size (p99)",RESPONSE_SIZE_P95:"Response size (p95)",RESPONSE_SIZE_P50:"Response size (p50)",REQUEST_SIZE_P99:"Request size (p99)",REQUEST_SIZE_P95:"Request size (p95)",REQUEST_SIZE_P50:"Request size (p50)",CONTROL_PLANE:"Control plane",____OTHER____:"Others",ai_request_count:"Request count",total_tokens:"Total token count",prompt_tokens:"Prompt token count",completion_tokens:"Completion token count",cost:"Costs",llm_cache_embeddings_latency_average:"Embeddings latency (avg)",llm_cache_fetch_latency_average:"Fetch latency (avg)",llm_latency_average:"Llm latency (avg)","threshold-warning":"Warning threshold: {value}","threshold-error":"Error threshold: {value}","thatreshold-neutral":"Alert threshold: {value}",api:"API",vulnerability_count:"Vulnerability count"},metricAxisTitles:{request_count:"Request count",requests_per_minute:"Requests per minute",latency_in:"Latency in {unit}",size_in:"Size in {unit}",response_latency_p99:"Response latency (p99) in {unit}",response_latency_p95:"Response latency (p95) in {unit}",response_latency_p50:"Response latency (p50) in {unit}",upstream_latency_p99:"Upstream latency (p99) in {unit}",upstream_latency_p95:"Upstream latency (p95) in {unit}",upstream_latency_p50:"Upstream latency (p50) in {unit}",kong_latency_p99:"Kong latency (p99) in {unit}",kong_latency_p95:"Kong latency (p95) in {unit}",kong_latency_p50:"Kong latency (p50) in {unit}",response_size_p99:"Response size (p99) in {unit}",response_size_p95:"Response size (p95) in {unit}",response_size_p50:"Response size (p50) in {unit}",request_size_p99:"Request size (p99) in {unit}",request_size_p95:"Request size (p95) in {unit}",request_size_p50:"Request size (p50) in {unit}",REQUEST_COUNT:"Request count",REQUEST_PER_MINUTE:"Requests per minute",RESPONSE_LATENCY_P99:"Response latency (p99) in {unit}",RESPONSE_LATENCY_P95:"Response latency (p95) in {unit}",RESPONSE_LATENCY_P50:"Response latency (p50) in {unit}",RESPONSE_SIZE_P99:"Response size (p99) in {unit}",RESPONSE_SIZE_P95:"Response size (p95) in {unit}",RESPONSE_SIZE_P50:"Response size (p50) in {unit}",REQUEST_SIZE_P99:"Request size (p99) in {unit}",REQUEST_SIZE_P95:"Request size (p95) in {unit}",REQUEST_SIZE_P50:"Request size (p50) in {unit}",TotalRequests:"Request count",RequestsPerMinute:"Requests per minute",LatencyP99:"Response latency (p99) in {unit}",LatencyP95:"Response latency (p95) in {unit}",LatencyP50:"Response latency (p50) in {unit}",LatencyAverage:"Response latency (avg) in {unit}",UpstreamLatencyP99:"Upstream latency (p99) in {unit}",UpstreamLatencyP95:"Upstream latency (p95) in {unit}",UpstreamLatencyP50:"Upstream latency (p50) in {unit}",UpstreamLatencyAverage:"Upstream latency (avg) in {unit}",KongLatencyP99:"Kong latency (p99) in {unit}",KongLatencyP95:"Kong latency (p95) in {unit}",KongLatencyP50:"Kong latency (p50) in {unit}",KongLatencyAverage:"Kong latency (avg) in {unit}",ResponseSizeP99:"Response size (p99) in {unit}",ResponseSizeP95:"Response size (p95) in {unit}",ResponseSizeP50:"Response size (p50) in {unit}",RequestSizeP99:"Request size (p99) in {unit}",RequestSizeP95:"Request size (p95) in {unit}",RequestSizeP50:"Request size (p50) in {unit}",ai_request_count:"Request count",total_tokens:"Total token count",prompt_tokens:"Prompt token count",completion_tokens:"Completion token count",cost:"Costs",llm_cache_embeddings_latency_average:"Embeddings latency (avg)",llm_cache_fetch_latency_average:"Fetch latency (avg)",llm_latency_average:"Llm latency (avg)",api:"API"},granularityAxisTitles:{tenSecondly:"@timestamp per 10 seconds",thirtySecondly:"@timestamp per 30 seconds",minutely:"@timestamp per minute",fiveMinutely:"@timestamp per 5 minutes",tenMinutely:"@timestamp per 10 minutes",thirtyMinutely:"@timestamp per 30 minutes",hourly:"@timestamp per hour",twoHourly:"@timestamp per 2 hours",twelveHourly:"@timestamp per 12 hours",daily:"@timestamp per day",weekly:"@timestamp per week"},topNTable:{nameLabel:"Name",defaultEmptyStateTitle:"No data to display",defaultErrorStateTitle:"Something went wrong",errors:{meta:"Error: response must contain 'meta'",display:"Error: 'display' response incorrectly formatted (must have at least one key)",metricNames:"Error: 'metricNames' response incorrectly formatted (must have at least one entry)"}},singleValue:{valueError:"Invalid configuration",trend:{not_available:"Not available"}},new_timerange_label:"Time range",sparkline_no_data:"No data",zoom_action_items:{zoom:"Zoom in",view_requests:"View requests",cancel:"Cancel",explore:"Explore"},zoom_time_range:{from:"From",to:"To"}};function Mg(){const e=Qe.createI18n("en-us",kg);return{i18n:e,i18nT:Qe.i18nTComponent(e)}}/*!
2
2
  * @kurkle/color v0.3.4
3
3
  * https://github.com/kurkle/color#readme
4
4
  * (c) 2024 Jukka Kurkela
@@ -29,7 +29,7 @@
29
29
  * pinia v2.1.7
30
30
  * (c) 2023 Eduardo San Martin Morote
31
31
  * @license MIT
32
- */process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();var tg;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(tg||(tg={}));const ZD=typeof window<"u";process.env.NODE_ENV!=="production"&&process.env.NODE_ENV,process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();const QD={notAvailable:"N/A"},JD={small:{traffic:"Requests",errorRate:"Error rate",averageLatency:"Avg. latency",p99Latency:"P99 latency"},short:{traffic:"Requests",errorRate:"Error rate",averageLatency:"Average latency",p99Latency:"P99 latency"},long:{traffic:"Number of requests",errorRate:"Average error rate",averageLatency:"Average latency",p99Latency:"P99 latency"}},tC={custom_days:"vs previous {numDays, plural, =1 {day} other {# days}}",custom_hours:"vs previous {numHours, plural, =1 {hour} other {# hours}}",custom_minutes:"vs previous {numMinutes, plural, =1 {minute} other {# minutes}}","15m":"vs previous 15 minutes","1h":"vs previous hour","6h":"vs previous 6 hours","12h":"vs previous 12 hours","24h":"vs previous 24 hours","7d":"vs previous 7 days","30d":"vs previous 30 days",current_week:"vs previous week",current_month:"vs previous month",current_quarter:"vs previous quarter",previous_week:"vs previous time period",previous_month:"vs previous time period",previous_quarter:"vs previous quarter"},eC={general:QD,metricCard:JD,trendRange:tC};function nC(){const e=Qe.createI18n("en-us",eC);return{i18n:e,i18nT:Qe.i18nTComponent(e)}}const iC=2,Ul=["1XX","2XX","3XX","4XX","5XX"],eg=["4XX","5XX"];var ng=(e=>(e.VALIDATING="VALIDATING",e.VALIDATING_HAS_DATA="VALIDATING_HAS_DATA",e.PENDING="PENDING",e.SUCCESS="SUCCESS",e.SUCCESS_HAS_DATA="SUCCESS_HAS_DATA",e.ERROR="ERROR",e.STALE_IF_ERROR="STALE_IF_ERROR",e))(ng||{});const rC=e=>{var t,n,i,r,s;return e?!!((t=Object.keys(e))!=null&&t.length||(n=e.data)!=null&&n.length||(r=(i=e.data)==null?void 0:i.data)!=null&&r.length||!((s=e.data)!=null&&s.data)&&typeof e.data=="object"&&Object.keys(e==null?void 0:e.data).length):!1};function sC(e=d.ref({}),t,n,i=rC){const r=d.ref("PENDING");return d.watchEffect(()=>{const s=i(e.value);if(e.value&&s&&n.value){r.value="VALIDATING_HAS_DATA";return}if(e.value&&n.value){r.value="VALIDATING";return}if(e.value&&t.value){r.value="STALE_IF_ERROR";return}if(e.value===void 0&&!t.value){r.value="PENDING";return}if(e.value&&!t.value&&s){r.value="SUCCESS_HAS_DATA";return}if(e.value&&!t.value){r.value="SUCCESS";return}e.value===void 0&&t&&(r.value="ERROR")}),{state:r,swrvState:ng}}const Bn=Symbol("default"),ql="status_code_grouped",ig=(e,t,n,i,r)=>{e[t][n]||(e[t][n]={}),e[t][n][i]=r};function aC(e,t){var n;const i=((n=e.meta.metric_names)==null?void 0:n[0])||"",r=e.meta.start_ms,s=Object.keys(e.meta.display||{}),a=!!s.find(l=>l===ql),o=s.find(l=>l!==ql);return s.length>2||s.length>1&&!a?(console.error("Don't know how to work with provided dimensions:",s),{previous:{[Bn]:{[Bn]:0}},current:{[Bn]:{[Bn]:0}}}):e.data.reduce((l,c)=>{const u=c.event[i],h=o?c.event[o]:Bn,f=a?c.event[ql]:Bn;return new Date(c.timestamp).getTime()===r&&t?ig(l,"previous",h,f,u):ig(l,"current",h,f,u),l},{previous:{},current:{}})}function oC(e){e.queryReady===void 0&&(e.queryReady=d.computed(()=>!0));const t=d.computed(()=>{var u,h;return{metrics:e.metrics.value,dimensions:[...(u=e.dimensions)!=null&&u.length?[...e.dimensions]:[],...e.withTrend.value?["time"]:[]],granularity:e.withTrend.value?"trend":void 0,...(h=e.filter.value)!=null&&h.length?{filters:e.filter.value}:{},time_range:e.timeRange.value}}),n=d.computed(()=>{var u,h,f,m;if(!((u=e.queryReady)!=null&&u.value))return null;const g=(h=e.filter)!=null&&h.value?JSON.stringify(e.filter.value):"";return`metric-fetcher-${JSON.stringify(e.timeRange.value)}-${(f=e.dimensions)==null?void 0:f.join("-")}-${(m=e.metrics.value)==null?void 0:m.join("-")}-${g}-${e.refreshCounter.value}`}),{response:i,error:r,isValidating:s}=Vi.useRequest(()=>n.value,()=>e.queryFn({datasource:e.datasource.value,query:t.value},e.abortController??new AbortController),{refreshInterval:e.refreshInterval,revalidateOnFocus:!1,errorRetryCount:iC}),{state:a,swrvState:o}=sC(i,r,s),l=d.computed(()=>{var u,h,f,m,g,p,x;return!((h=(u=i.value)==null?void 0:u.data)!=null&&h.length)||!((m=(f=i.value)==null?void 0:f.meta)!=null&&m.display)||!((x=(p=(g=i.value)==null?void 0:g.meta)==null?void 0:p.metric_names)!=null&&x.length)?{current:{},previous:{}}:aC(i.value,e.withTrend.value)}),c=Vi.useTrendRange(e.withTrend,e.timeRange,d.computed(()=>{var u;return(u=i.value)==null?void 0:u.meta}));return{isLoading:d.computed(()=>o.PENDING===a.value),hasError:d.computed(()=>o.ERROR===a.value),raw:i,mapped:l,trendRange:c}}const Bi=(e,t,n=Bn,i)=>(i??[Bn]).reduce((r,s)=>{const a=e[t][n];return a?r+(a[s]||0):r},0);function lC(e){const{cardType:t,title:n,description:i,record:r,hasError:s,increaseIsBad:a,formatValueFn:o,trendRange:l}=e;return d.computed(()=>{let c=0,u=0;if(r!=null&&r.value)try{c=Bi(r.value,"current",e.lookupKey,e.sumGroupedValues),u=Bi(r.value,"previous",e.lookupKey,e.sumGroupedValues)}catch(h){console.error("Metric card data doesn't have the expected structure:",h)}return{cardType:t,hasError:s.value,currentValue:c,previousValue:u,title:n.value,description:i,increaseIsBad:!!a,formatValueFn:o,trendRange:l==null?void 0:l.value}})}function rg(e,t,n){const{i18n:i}=Vi.useI18n();return d.computed(()=>{var r,s,a;if(!e.value)return"";if(((r=t==null?void 0:t.value)==null?void 0:r.type)==="relative")return i.t(`trendRange.${t.value.time_range}`);let o,l;if((s=n==null?void 0:n.value)!=null&&s.start_ms&&n.value.end_ms)o=n.value.start_ms,l=n.value.end_ms;else if(((a=t==null?void 0:t.value)==null?void 0:a.type)==="absolute"&&t.value.start&&t.value.end)o=new Date(t.value.start).getTime(),l=new Date(t.value.end).getTime();else return"";let c=(l-o)/(1e3*60*60*24),u=(l-o)/(1e3*60*60),h=(l-o)/(1e3*60);return e.value&&(c/=2,u/=2,h/=2),c>=1?i.t("trendRange.custom_days",{numDays:Math.round(c)}):u>=1?i.t("trendRange.custom_hours",{numHours:Math.round(u)}):h>=1?i.t("trendRange.custom_minutes",{numMinutes:Math.round(h)}):i.t("trendRange.custom_days",{numDays:Math.round(c)})})}var Xl=new WeakMap,sg=0;function cC(e){if(!e.length)return"";for(var t="arg",n=0;n<e.length;++n){var i=void 0;e[n]===null||typeof e[n]!="object"&&typeof e[n]!="function"?typeof e[n]=="string"?i='"'+e[n]+'"':i=String(e[n]):Xl.has(e[n])?i=Xl.get(e[n]):(i=sg,Xl.set(e[n],sg++)),t+="@"+i}return t}function uC(e){if(typeof e=="function")try{e=e()}catch{e=""}return Array.isArray(e)?e=cC(e):e=String(e||""),e}var Gl=function(){function e(t){t===void 0&&(t=0),this.items=new Map,this.ttl=t}return e.prototype.serializeKey=function(t){return uC(t)},e.prototype.get=function(t){var n=this.serializeKey(t);return this.items.get(n)},e.prototype.set=function(t,n,i){var r=this.serializeKey(t),s=i||this.ttl,a=Date.now(),o={data:n,createdAt:a,expiresAt:s?a+s:1/0};this.dispatchExpire(s,o,r),this.items.set(r,o)},e.prototype.dispatchExpire=function(t,n,i){var r=this;t&&setTimeout(function(){var s=Date.now(),a=s>=n.expiresAt;a&&r.delete(i)},t)},e.prototype.delete=function(t){this.items.delete(t)},e}();function dC(){return typeof navigator.onLine<"u"?navigator.onLine:!0}function hC(){return typeof document<"u"&&typeof document.visibilityState<"u"?document.visibilityState!=="hidden":!0}var fC=function(e){return fetch(e).then(function(t){return t.json()})};const Kl={isOnline:dC,isDocumentVisible:hC,fetcher:fC};var hn=function(){return hn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},hn.apply(this,arguments)},zi=function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(u){try{c(i.next(u))}catch(h){a(h)}}function l(u){try{c(i.throw(u))}catch(h){a(h)}}function c(u){u.done?s(u.value):r(u.value).then(o,l)}c((i=i.apply(e,[])).next())})},Hi=function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(u){return l([c,u])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,r&&(s=c[0]&2?r.return:c[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,c[1])).done)return s;switch(r=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,r=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],r=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},mC=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,s=[],a;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(o){a={error:o}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s},gC=function(e,t,n){if(arguments.length===2)for(var i=0,r=t.length,s;i<r;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))},ag=new Gl,wa=new Gl,Zl=new Gl,og={cache:ag,refreshInterval:0,ttl:0,serverTTL:1e3,dedupingInterval:2e3,revalidateOnFocus:!0,revalidateDebounce:0,shouldRetryOnError:!0,errorRetryInterval:5e3,errorRetryCount:5,fetcher:Kl.fetcher,isOnline:Kl.isOnline,isDocumentVisible:Kl.isDocumentVisible};function pC(e,t,n){var i=wa.get(e);if(i)i.data.push(t);else{var r=5e3;wa.set(e,[t],n>0?n+r:n)}}function yC(e,t,n){if(n.isDocumentVisible()&&!(n.errorRetryCount!==void 0&&t>n.errorRetryCount)){var i=Math.min(t||0,n.errorRetryCount),r=i*n.errorRetryInterval;setTimeout(function(){e(null,{errorRetryCount:i+1,shouldRetryOnError:!0})},r)}}var lg=function(e,t,n,i){return n===void 0&&(n=ag),i===void 0&&(i=og.ttl),zi(void 0,void 0,void 0,function(){var r,s,a,o,l,c,u;return Hi(this,function(h){switch(h.label){case 0:if(!_C(t))return[3,5];h.label=1;case 1:return h.trys.push([1,3,,4]),[4,t];case 2:return r=h.sent(),[3,4];case 3:return o=h.sent(),s=o,[3,4];case 4:return[3,6];case 5:r=t,h.label=6;case 6:if(a=!1,l={data:r,error:s,isValidating:a},typeof r<"u")try{n.set(e,l,i)}catch(f){console.error("swrv(mutate): failed to set cache",f)}return c=wa.get(e),c&&c.data.length&&(u=c.data.filter(function(f){return f.key===e}),u.forEach(function(f,m){typeof l.data<"u"&&(f.data=l.data),f.error=l.error,f.isValidating=l.isValidating,f.isLoading=l.isValidating;var g=m===u.length-1;g||delete u[m]}),u=u.filter(Boolean)),[2,l]}})})};function bC(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i,r,s=hn({},og),a=!1,o=!1,l=d.getCurrentInstance(),c=(l==null?void 0:l.proxy)||l;if(!c)return console.error("Could not get current instance, check to make sure that `useSwrv` is declared in the top level of the setup function."),null;var u=(c==null?void 0:c.$isServer)||!1;t.length>=1&&(i=t[0]),t.length>=2&&(r=t[1]),t.length>2&&(s=hn(hn({},s),t[2]));var h=u?s.serverTTL:s.ttl,f=typeof i=="function"?i:d.ref(i);typeof r>"u"&&(r=s.fetcher);var m=null;m||(m=d.reactive({data:void 0,error:void 0,isValidating:!0,isLoading:!0,key:null}));var g=function(v,k){return zi(e,void 0,void 0,function(){var D,M,P,E,y,_,T,O=this;return Hi(this,function(A){switch(A.label){case 0:return D=m.data===void 0,M=f.value,M?(P=s.cache.get(M),E=P&&P.data,m.isValidating=!0,m.isLoading=!E,E&&(m.data=E.data,m.error=E.error),y=v||r,!y||!s.isDocumentVisible()&&!D||(k==null?void 0:k.forceRevalidate)!==void 0&&!(k!=null&&k.forceRevalidate)?(m.isValidating=!1,m.isLoading=!1,[2]):P&&(_=!!(Date.now()-P.createdAt>=s.dedupingInterval||k!=null&&k.forceRevalidate),!_)?(m.isValidating=!1,m.isLoading=!1,[2]):(T=function(){return zi(O,void 0,void 0,function(){var I,B,q,G;return Hi(this,function(V){switch(V.label){case 0:return I=Zl.get(M),I?[3,2]:(B=Array.isArray(M)?M:[M],q=y.apply(void 0,gC([],mC(B),!1)),Zl.set(M,q,s.dedupingInterval),[4,lg(M,q,s.cache,h)]);case 1:return V.sent(),[3,4];case 2:return[4,lg(M,I.data,s.cache,h)];case 3:V.sent(),V.label=4;case 4:return m.isValidating=!1,m.isLoading=!1,Zl.delete(M),m.error!==void 0&&(G=!a&&s.shouldRetryOnError&&(k?k.shouldRetryOnError:!0),G&&yC(g,k?k.errorRetryCount:1,s)),[2]}})})},E&&s.revalidateDebounce?(setTimeout(function(){return zi(O,void 0,void 0,function(){return Hi(this,function(I){switch(I.label){case 0:return a?[3,2]:[4,T()];case 1:I.sent(),I.label=2;case 2:return[2]}})})},s.revalidateDebounce),[3,3]):[3,1])):[2];case 1:return[4,T()];case 2:A.sent(),A.label=3;case 3:return[2]}})})},p=function(){return zi(e,void 0,void 0,function(){return Hi(this,function(v){return[2,g(null,{shouldRetryOnError:!1})]})})},x=null;d.onMounted(function(){var v=function(){return zi(e,void 0,void 0,function(){return Hi(this,function(k){switch(k.label){case 0:return!m.error&&s.isOnline()?[4,g()]:[3,2];case 1:return k.sent(),[3,3];case 2:x&&clearTimeout(x),k.label=3;case 3:return s.refreshInterval&&!a&&(x=setTimeout(v,s.refreshInterval)),[2]}})})};s.refreshInterval&&(x=setTimeout(v,s.refreshInterval)),s.revalidateOnFocus&&(document.addEventListener("visibilitychange",p,!1),window.addEventListener("focus",p,!1))}),d.onUnmounted(function(){a=!0,x&&clearTimeout(x),s.revalidateOnFocus&&(document.removeEventListener("visibilitychange",p,!1),window.removeEventListener("focus",p,!1));var v=wa.get(f.value);v&&(v.data=v.data.filter(function(k){return k!==m}))});try{d.watch(f,function(v){d.isReadonly(f)||(f.value=v),m.key=v,m.isValidating=!!v,pC(f.value,m,h),!u&&!o&&f.value&&g(),o=!1},{immediate:!0})}catch{}var S=hn(hn({},d.toRefs(m)),{mutate:function(v,k){return g(v,hn(hn({},k),{forceRevalidate:!0}))}});return S}function _C(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}function xC(e,t,n){const{data:i,error:r,isValidating:s,mutate:a}=bC(e,t,{revalidateDebounce:500,revalidateOnFocus:!1,dedupingInterval:100,...n});return{data:d.computed(()=>i.value),response:i,error:r,isValidating:s,revalidate:a}}const Vi={useI18n:nC,useMetricCardBuilder:lC,useMetricFetcher:oC,useTrendRange:rg,useRequest:xC},wC=Symbol("METRICS_PROVIDER_KEY");function vC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cg={exports:{}};(function(e){(function(){function t(c,u){if(u.separator===!1||c<1e3)return c.toString();var h=typeof u.separator=="string"?u.separator:",",f=[],m=Math.round(c).toString().split("");return m.reverse().forEach(function(g,p){p&&p%3===0&&f.push(h),f.push(g)}),f.reverse().join("")}function n(c,u,h){var f=c/u,m=h.round?"round":"floor";return h.decimal===!1?(c=Math[m](f),c.toString()):(h.precision?c=f:c=f<10?Math[m](f*10)/10:Math[m](f),c=c.toString(),typeof h.decimal=="string"&&(c=c.replace(".",h.decimal)),c)}var i=1e3,r=1e4,s=1e6,a=1e9,o=1e12;function l(c,u){var h;u=u||{};var f=c<0;f&&(c=Math.abs(c)),u.precision&&(c=parseFloat(c.toPrecision(u.precision)));var m=u.min10k?r:i;return c<m||u.precision&&u.precision>Math.log10(c)?h=t(n(c,1,u),u):c<s?h=n(c,i,u)+"k":c<a?h=n(c,s,u)+"m":c<o?h=t(n(c,a,u),u)+"b":h=t(n(c,o,u),u)+"t",f&&(h="-"+h),u.capital&&(h=h.toUpperCase()),u.prefix&&(h=u.prefix+h),u.suffix&&(h=h+u.suffix),h}l.addCommas=t,e.exports=l})()})(cg);var SC=cg.exports;const kC=vC(SC);var fn=(e=>(e.GENERIC_COUNT="GenericCount",e.TRAFFIC="Traffic",e.ERROR_RATE="ErrorRate",e.LATENCY="Latency",e))(fn||{}),Ge=(e=>(e.Small="sm",e.Medium="md",e.Large="lg",e.ExtraLarge="xl",e))(Ge||{});const Ql=2,ug=Ql+2,dg=(e,t,n=!1)=>{let i=!t||Number(e.toFixed(ug))===0?0:Number(e.toFixed(ug))>0?1:-1;return n&&(i*=-1),i},hg=(e,t,n)=>t?`${Math.abs(e*100).toFixed(Ql)}%`:n,fg=(e,t)=>t===0?0:e/t-1,mg=(e,t=!1)=>(t&&(e*=-1),e>0?ne.TrendUpIcon:e<0?ne.TrendDownIcon:ne.IndeterminateSmallIcon),MC="#ad000e",Jl="#6c7489",gg="#52596e",TC="#007d60",va="16px",DC="20px",CC={key:0,class:"metricscard-description"},EC={class:"metricscard-valuetrend"},OC={key:0,class:"metricscard-error"},PC={key:2,class:"metricscard-trend"},RC={"data-testid":"metric-trend-change"},AC={key:0,class:"metricscard-trend-range"},IC=d.defineComponent({__name:"MetricsCard",props:{cardType:{type:String,required:!0,default:fn.GENERIC_COUNT},title:{type:String,default:"0%",required:!0},description:{type:String,default:"",required:!1},tooltip:{type:String,required:!1,default:""},timeframe:{type:String,required:!1,default:""},metricValue:{type:String,default:""},metricChange:{type:String,required:!0},changePolarity:{type:Number,required:!0},trendIcon:{type:Object,default:ne.IndeterminateSmallIcon},trendRange:{type:String,default:""},hasError:{type:Boolean,default:!1},errorMessage:{type:String,default:"Vitals data error"},cardSize:{type:String,required:!1,default:()=>Ge.Large},hasContainerTitle:{type:Boolean,required:!1,default:!1},titleTag:{type:String,default:"span"}},setup(e){const t=new Map([[fn.GENERIC_COUNT,ne.VitalsIcon],[fn.TRAFFIC,ne.CloudUploadIcon],[fn.ERROR_RATE,ne.WarningOutlineIcon],[fn.LATENCY,ne.ResponseIcon]]),n=e,i=o=>{const l={red:`var(--kui-color-text-danger-strong, ${MC})`,green:`var(--kui-color-text-success, ${TC})`,grey:`var(--kui-color-text-neutral-strong, ${gg})`};return o>0?l.green:o<0?l.red:l.grey},r=o=>o>0?"positive":o<0?"negative":"neutral",s=[Ge.Medium,Ge.Large].includes(n.cardSize),a=[Ge.Small].includes(n.cardSize);return(o,l)=>{const c=d.resolveComponent("KTooltip");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["metricscard",e.cardSize])},[d.createElementVNode("div",{class:d.normalizeClass(["metricscard-title",e.cardSize])},[d.unref(a)?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(d.resolveDynamicComponent(d.unref(t).get(e.cardType)),{key:0,class:"metricscard-icon",color:`var(--kui-color-text-neutral, ${d.unref(Jl)})`,size:d.unref(va)},null,8,["color","size"])),(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.titleTag),null,{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.title),1)]),_:1})),e.tooltip?(d.openBlock(),d.createBlock(c,{key:1,class:"metricscard-tooltip",placement:"right",text:e.tooltip},{default:d.withCtx(()=>[d.createVNode(d.unref(ne.InfoIcon),{color:`var(--kui-color-text-neutral, ${d.unref(Jl)})`,size:d.unref(va)},null,8,["color","size"])]),_:1},8,["text"])):d.createCommentVNode("",!0)],2),e.description&&d.unref(s)?(d.openBlock(),d.createElementBlock("div",CC,[d.createElementVNode("span",null,d.toDisplayString(e.description),1)])):d.createCommentVNode("",!0),d.createElementVNode("div",EC,[e.hasError?(d.openBlock(),d.createElementBlock("div",OC,[d.createVNode(d.unref(ne.WarningIcon),{color:`var(--kui-color-text-neutral, ${d.unref(Jl)})`,size:d.unref(DC)},null,8,["color","size"]),d.createElementVNode("div",null," "+d.toDisplayString(e.errorMessage),1)])):(d.openBlock(),d.createElementBlock("div",{key:1,class:d.normalizeClass(["metricscard-value",e.cardSize]),"data-testid":"metric-value"},d.toDisplayString(e.metricValue),3)),d.unref(s)?(d.openBlock(),d.createElementBlock("div",PC,[d.createElementVNode("div",{class:d.normalizeClass(["metricscard-trend-change",r(e.changePolarity)]),"data-testid":"metric-trend-parent"},[e.changePolarity!==0?(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.trendIcon),{key:0,color:i(e.changePolarity),size:d.unref(va)},null,8,["color","size"])):(d.openBlock(),d.createBlock(d.unref(ne.EqualIcon),{key:1,color:`var(--kui-color-text-neutral-strong, ${d.unref(gg)})`,size:d.unref(va)},null,8,["color","size"])),d.createElementVNode("div",RC,d.toDisplayString(e.metricChange),1)],2),e.trendRange?(d.openBlock(),d.createElementBlock("div",AC,d.toDisplayString(e.trendRange),1)):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0)])],2)}}}),tc=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},LC=tc(IC,[["__scopeId","data-v-b1513f6f"]]),NC={},FC={class:"loading-tabs"};function BC(e,t){const n=d.resolveComponent("KSkeletonBox");return d.openBlock(),d.createElementBlock("div",FC,[d.createVNode(n,{width:"100"}),d.createVNode(n,{width:"75"})])}const zC=tc(NC,[["render",BC],["__scopeId","data-v-9c7113d7"]]),HC={key:0,class:"container-title"},VC={key:0,class:"container-description"},WC={key:1,class:"error-display"},YC={key:0,class:"error-display-message"},$C={key:2,class:"cards-wrapper"},jC=d.defineComponent({__name:"MetricCardContainer",props:{fallbackDisplayText:{type:String,required:!0},cards:{type:Array,required:!0},errorMessage:{type:String,required:!1,default:""},loading:{type:Boolean,required:!1,default:!1},hasTrendAccess:{type:Boolean,required:!1,default:!0},cardSize:{type:String,required:!1,default:()=>Ge.Large},containerTitle:{type:String,required:!1,default:""},containerDescription:{type:String,required:!1,default:""}},setup(e){const t=e,n=d.computed(()=>t.cards.every(r=>(r==null?void 0:r.hasError)===!0)),i=r=>{const s=fg(r.currentValue,r.previousValue)||0,a=dg(s,t.hasTrendAccess,r.increaseIsBad);return{metricValue:r.formatValueFn?r.formatValueFn(r.currentValue):kC(r.currentValue,{capital:!0,round:!0})||"0",metricChange:r.formatChangeFn?r.formatChangeFn(s):hg(s,t.hasTrendAccess,t.fallbackDisplayText),changePolarity:a,trendIcon:mg(a,r.increaseIsBad),cardSize:t.cardSize,hasContainerTitle:!!t.containerTitle}};return(r,s)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["kong-ui-public-metric-card-container",e.cardSize])},[t.containerTitle||t.containerDescription?(d.openBlock(),d.createElementBlock("div",HC,[d.createTextVNode(d.toDisplayString(t.containerTitle)+" ",1),t.containerDescription?(d.openBlock(),d.createElementBlock("div",VC,d.toDisplayString(t.containerDescription),1)):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0),n.value?(d.openBlock(),d.createElementBlock("div",WC,[d.createVNode(d.unref(ne.WarningIcon),{class:"error-display-icon"}),e.errorMessage?(d.openBlock(),d.createElementBlock("div",YC,d.toDisplayString(e.errorMessage),1)):d.createCommentVNode("",!0)])):(d.openBlock(),d.createElementBlock("div",$C,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(e.cards,(a,o)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[e.loading?(d.openBlock(),d.createElementBlock("div",{key:`skeleton-${o}`,class:"loading-tab"},[d.createVNode(zC,{class:d.normalizeClass(e.cardSize===d.unref(Ge).Small?"loading-tabs-small":"loading-tabs-large")},null,8,["class"])])):(d.openBlock(),d.createBlock(LC,d.mergeProps({key:o},{ref_for:!0},i(a),{"card-size":e.cardSize,"card-type":a.cardType,description:a.description,"error-message":e.errorMessage,"has-error":a.hasError,title:a.title,"title-tag":a.titleTag,tooltip:a.tooltip,"trend-range":a.trendRange}),null,16,["card-size","card-type","description","error-message","has-error","title","title-tag","tooltip","trend-range"]))],64))),256))]))],2))}}),UC=tc(jC,[["__scopeId","data-v-7080ba56"]]);Ge.Large;const qC={key:1,class:"single-value-wrapper"},XC={class:"single-value","data-testid":"single-value-chart"},GC={key:0,class:"single-value-unit"},KC={key:1,class:"single-value-trend"},ZC={key:0,class:"single-value-trend-range"},QC=Ee(d.defineComponent({__name:"SingleValue",props:{data:{type:Object,required:!0},decimalPoints:{type:Number,default:$f},leftAlign:{type:Boolean,default:!1},showTrend:{type:Boolean,default:!1},increaseIsBad:{type:Boolean,default:!1},alignX:{type:String,default:"space-evenly"}},setup(e){const{i18n:t}=pt.useI18n(),{formatBytes:n}=Br({i18n:t}),i=e,r={left:"flex-start",center:"center",right:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly"},s=d.ref(i.leftAlign?"left":i.alignX),a=d.computed(()=>i.data.data),o=d.computed(()=>{var M,P;return(P=(M=i.data.meta)==null?void 0:M.metric_names)==null?void 0:P[0]}),l=d.computed(()=>{var P,E;const M=o.value?(E=(P=i.data.meta)==null?void 0:P.metric_units)==null?void 0:E[o.value]:void 0;if(M)return t.t(`chartUnits.${M}`,{plural:""})}),c=d.computed(()=>{var M;return o.value==="request_per_minute"||!!((M=o.value)!=null&&M.includes("_latency_"))}),u=d.computed(()=>!i.showTrend||a.value.length<2||!o.value?null:a.value[0].event[o.value]??null),h=d.computed(()=>{if(!o.value)return null;const M=i.showTrend?1:0;return a.value.length<=M?null:a.value[M].event[o.value]??null}),f=d.computed(()=>{var E;const M=h.value;if(M===null)return"";if((E=o.value)!=null&&E.includes("_size_"))return n(M);if(M>=1e9){const y=(M/1e9).toFixed(1);return y.endsWith(".0")?`${Math.floor(M/1e9)}B`:`${y}B`}if(M>=1e7){const y=(M/1e6).toFixed(1);return y.endsWith(".0")?`${Math.floor(M/1e6)}M`:`${y}M`}const P=i.decimalPoints&&typeof i.decimalPoints=="number"?i.decimalPoints:$f;return M.toLocaleString("en-US",{maximumFractionDigits:P})}),m=d.computed(()=>fg(h.value??0,u.value??0)||0),g=d.computed(()=>dg(m.value,!0,i.increaseIsBad)),p=d.computed(()=>mg(g.value)),x=d.computed(()=>hg(m.value,!0,"not available")),S=d.computed(()=>({justifyContent:r[s.value]??"space-evenly"})),v=rg(d.computed(()=>i.showTrend),void 0,d.computed(()=>i.data.meta)),k=M=>M>0?"positive":M<0?"negative":"neutral",D=M=>M>0?MS:M<0?kS:yf;return d.onMounted(()=>{var M,P,E,y;!i.showTrend&&((P=(M=i.data)==null?void 0:M.data)==null?void 0:P.length)>1?console.warn("SingleValue chart should only be used with a single data point. Data length:",i.data.data.length):i.showTrend&&((y=(E=i.data)==null?void 0:E.data)==null?void 0:y.length)!==2&&console.warn("SingleValue with trend expects exactly 2 data points. Data length:",i.data.data.length)}),d.watch(d.toRef(i,"alignX"),M=>{M&&(s.value=M)}),(M,P)=>{const E=d.resolveComponent("KEmptyState");return d.openBlock(),d.createElementBlock("div",{class:"chart-parent","data-testid":"single-value-parent",style:d.normalizeStyle(S.value)},[h.value===null?(d.openBlock(),d.createBlock(E,{key:0,class:"single-value-error","data-testid":"single-value-error","icon-variant":"error",title:d.unref(t).t("singleValue.valueError")},null,8,["title"])):(d.openBlock(),d.createElementBlock("div",qC,[d.createElementVNode("span",XC,d.toDisplayString(f.value),1),c.value?(d.openBlock(),d.createElementBlock("span",GC,"  "+d.toDisplayString(l.value),1)):d.createCommentVNode("",!0),e.showTrend?(d.openBlock(),d.createElementBlock("div",KC,[d.createElementVNode("div",{class:d.normalizeClass(["trend-change",k(g.value)]),"data-testid":"single-value-trend"},[g.value!==0?(d.openBlock(),d.createBlock(d.resolveDynamicComponent(p.value),{key:0,color:D(g.value),size:d.unref(zr)},null,8,["color","size"])):(d.openBlock(),d.createBlock(d.unref(ne.EqualIcon),{key:1,color:`var(--kui-color-text-neutral-strong, ${d.unref(yf)})`,size:d.unref(zr)},null,8,["color","size"])),d.createElementVNode("div",null,d.toDisplayString(x.value),1)],2),d.unref(v)?(d.openBlock(),d.createElementBlock("div",ZC,d.toDisplayString(d.unref(v)),1)):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0)]))],4)}}}),[["__scopeId","data-v-caf2e305"]]),JC={class:"simple-chart-shell"},tE={key:1,class:"analytics-chart-parent"},eE=Ee(d.defineComponent({__name:"SimpleChart",props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,required:!0},emptyStateTitle:{type:String,required:!1,default:""},syntheticsDataKey:{type:String,required:!1,default:""},height:{type:String,required:!1,default:"400px",validator:e=>/(\d *)(px|%)/.test(e)},width:{type:String,required:!1,default:"100%",validator:e=>/(\d *)(px|%)/.test(e)}},setup(e){const t=e,{i18n:n}=pt.useI18n(),i=d.computed(()=>{var u;const c=pt.useExploreResultToDatasets({colorPalette:t.chartOptions.chartDatasetColors||un},d.toRef(t,"chartData")).value;return(u=t.chartOptions)!=null&&u.reverseDataset&&(c==null||c.datasets.reverse()),c}),r=d.computed(()=>{var c;return(c=t.chartData.meta)!=null&&c.metric_units?Object.values(t.chartData.meta.metric_units)[0]:""}),s=d.computed(()=>t.chartOptions.type==="gauge"),a=d.computed(()=>t.chartOptions.type==="single_value"),o=d.computed(()=>t.emptyStateTitle||n.t("noDataAvailableTitle")),l=d.computed(()=>{var u,h;const c=t.chartData&&t.chartData.meta&&t.chartData.data.length;if(a.value){const f=(h=(u=t.chartData.meta)==null?void 0:u.metric_names)==null?void 0:h[0];return t.chartOptions.showTrend?c&&t.chartData.data.length>=2&&t.chartData.data[1].event[f]!==null:c&&t.chartData.data[0].event[f]!==null}return c});return(c,u)=>{const h=d.resolveComponent("KEmptyState");return d.openBlock(),d.createElementBlock("div",JC,[l.value?(d.openBlock(),d.createElementBlock("div",tE,[s.value?(d.openBlock(),d.createBlock(KD,{key:0,"chart-data":i.value,"dataset-colors":e.chartOptions.chartDatasetColors,"is-simple":"","metric-display":e.chartOptions.metricDisplay,"metric-unit":r.value,numerator:e.chartOptions.numerator,"synthetics-data-key":e.syntheticsDataKey,width:e.width},null,8,["chart-data","dataset-colors","metric-display","metric-unit","numerator","synthetics-data-key","width"])):d.createCommentVNode("",!0),a.value?(d.openBlock(),d.createBlock(QC,{key:1,"align-x":e.chartOptions.alignX,data:e.chartData,"decimal-points":e.chartOptions.decimalPoints,"increase-is-bad":e.chartOptions.increaseIsBad,"show-trend":e.chartOptions.showTrend},null,8,["align-x","data","decimal-points","increase-is-bad","show-trend"])):d.createCommentVNode("",!0)])):(d.openBlock(),d.createBlock(h,{key:0,"action-button-visible":!0,class:"chart-empty-state","data-testid":"no-data-in-report"},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.value),1)]),_:1}))])}}}),[["__scopeId","data-v-56837d34"]]),nE={class:"top-n-card-title","data-testid":"top-n-card-title"},iE={class:"top-n-card-description","data-testid":"top-n-card-description"},rE={key:3,class:"top-n-table","data-testid":"top-n-table"},sE={class:"table-headings"},aE={class:"table-row"},oE={class:"column-1"},lE={class:"column-2"},cE={class:"table-body","data-testid":"top-n-data"},uE=["data-testid"],dE={class:"column-1"},hE={class:"column-2"},fE=Ee(d.defineComponent({__name:"TopNTable",props:{title:{default:""},description:{default:""},data:{},emptyStateTitle:{default:""},isLoading:{type:Boolean,default:!1},titleTag:{default:"h2"}},setup(e){const t=e,{i18n:n}=pt.useI18n(),i=d.computed(()=>t.data.data),r=d.computed(()=>{var g;return!!((g=i.value)!=null&&g.length)}),s=d.computed(()=>{var g,p;return(g=t.data.meta)!=null&&g.display&&((p=Object.keys(t.data.meta.display))==null?void 0:p[0])||""}),a=d.computed(()=>s.value?t.data.meta.display[s.value]:{}),o=d.computed(()=>{var g,p;return(p=(g=t.data.meta)==null?void 0:g.metric_names)!=null&&p.length?t.data.meta.metric_names[0]:""}),l=d.computed(()=>o.value?n.t(`chartLabels.${o.value}`)||o.value:""),c=d.computed(()=>{if(!r.value)return"";if(t.data.meta){if(a.value&&!Object.keys(a.value).length)return n.t("topNTable.errors.display");if(!o.value)return n.t("topNTable.errors.metricNames")}else return n.t("topNTable.errors.meta");return""}),u=g=>{const p=g.event;return String(p[s.value])},h=g=>{const p=u(g),x=a.value&&a.value[p];return x?x.name:"-"},f=g=>{const p=u(g),x=a.value&&a.value[p];return x?!!x.deleted:!1},m=g=>{if(!o.value)return"–";const x=g.event[o.value];return x?Yr(x,{capital:!0,round:!0}):"–"};return(g,p)=>{const x=d.resolveComponent("KEmptyState"),S=d.resolveComponent("KSkeleton"),v=d.resolveComponent("KCard");return d.openBlock(),d.createBlock(v,{class:"kong-ui-public-top-n-table","title-tag":e.titleTag},d.createSlots({default:d.withCtx(()=>[c.value?(d.openBlock(),d.createBlock(x,{key:0,"action-button-visible":!1,"data-testid":"top-n-error-state","icon-variant":"error"},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(n).t("topNTable.defaultErrorStateTitle")),1)]),default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(c.value),1)]),_:1})):e.isLoading?(d.openBlock(),d.createBlock(S,{key:1,"table-columns":2,type:"table"})):r.value?(d.openBlock(),d.createElementBlock("div",rE,[d.createElementVNode("div",sE,[d.createElementVNode("div",aE,[d.createElementVNode("div",oE,d.toDisplayString(d.unref(n).t("topNTable.nameLabel")),1),d.createElementVNode("div",lE,d.toDisplayString(l.value),1)])]),d.createElementVNode("div",cE,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(i.value,(k,D)=>(d.openBlock(),d.createElementBlock("div",{key:`entry-${D}`,class:"table-row","data-testid":`row-${u(k)}`},[d.createElementVNode("div",dE,[d.renderSlot(g.$slots,"name",{record:{id:u(k),name:h(k),deleted:f(k),dimension:s.value}},()=>[d.createTextVNode(d.toDisplayString(h(k)),1)],!0)]),d.createElementVNode("div",hE,"   "+d.toDisplayString(m(k)),1)],8,uE))),128))])])):(d.openBlock(),d.createBlock(x,{key:2,"action-button-visible":!1,"data-testid":"top-n-empty-state"},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.emptyStateTitle||d.unref(n).t("topNTable.defaultEmptyStateTitle")),1)]),_:1}))]),_:2},[e.title?{name:"title",fn:d.withCtx(()=>[d.createElementVNode("span",nE,d.toDisplayString(e.title),1)]),key:"0"}:void 0,e.description?{name:"actions",fn:d.withCtx(()=>[d.createElementVNode("div",iE,d.toDisplayString(e.description),1)]),key:"1"}:void 0]),1032,["title-tag"])}}}),[["__scopeId","data-v-665e7735"]]);var Sa={exports:{}};Sa.exports,function(e,t){var n=200,i="Expected a function",r="__lodash_hash_undefined__",s=1,a=2,o=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object Boolean]",h="[object Date]",f="[object Error]",m="[object Function]",g="[object GeneratorFunction]",p="[object Map]",x="[object Number]",S="[object Object]",v="[object Promise]",k="[object RegExp]",D="[object Set]",M="[object String]",P="[object Symbol]",E="[object WeakMap]",y="[object ArrayBuffer]",_="[object DataView]",T="[object Float32Array]",O="[object Float64Array]",A="[object Int8Array]",I="[object Int16Array]",B="[object Int32Array]",q="[object Uint8Array]",G="[object Uint8ClampedArray]",V="[object Uint16Array]",lt="[object Uint32Array]",X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,H=/^\./,U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,xt=/\\(\\)?/g,yt=/^\[object .+?Constructor\]$/,vt=/^(?:0|[1-9]\d*)$/,mt={};mt[T]=mt[O]=mt[A]=mt[I]=mt[B]=mt[q]=mt[G]=mt[V]=mt[lt]=!0,mt[l]=mt[c]=mt[y]=mt[u]=mt[_]=mt[h]=mt[f]=mt[m]=mt[p]=mt[x]=mt[S]=mt[k]=mt[D]=mt[M]=mt[E]=!1;var gt=typeof ve=="object"&&ve&&ve.Object===Object&&ve,z=typeof self=="object"&&self&&self.Object===Object&&self,j=gt||z||Function("return this")(),$=t&&!t.nodeType&&t,J=$&&!0&&e&&!e.nodeType&&e,et=J&&J.exports===$,nt=et&&gt.process,rt=function(){try{return nt&&nt.binding("util")}catch{}}(),it=rt&&rt.isTypedArray;function _t(b,C){for(var N=-1,W=b?b.length:0;++N<W;)if(C(b[N],N,b))return!0;return!1}function ct(b){return function(C){return C==null?void 0:C[b]}}function Et(b,C){for(var N=-1,W=Array(b);++N<b;)W[N]=C(N);return W}function te(b){return function(C){return b(C)}}function ce(b,C){return b==null?void 0:b[C]}function qt(b){var C=!1;if(b!=null&&typeof b.toString!="function")try{C=!!(b+"")}catch{}return C}function Ie(b){var C=-1,N=Array(b.size);return b.forEach(function(W,ht){N[++C]=[ht,W]}),N}function St(b,C){return function(N){return b(C(N))}}function Xt(b){var C=-1,N=Array(b.size);return b.forEach(function(W){N[++C]=W}),N}var zt=Array.prototype,Gt=Function.prototype,re=Object.prototype,Ke=j["__core-js_shared__"],ci=function(){var b=/[^.]+$/.exec(Ke&&Ke.keys&&Ke.keys.IE_PROTO||"");return b?"Symbol(src)_1."+b:""}(),ze=Gt.toString,Ht=re.hasOwnProperty,Se=re.toString,ui=RegExp("^"+ze.call(Ht).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ka=j.Symbol,Ma=j.Uint8Array,Qr=re.propertyIsEnumerable,di=zt.splice,Jr=St(Object.keys,Object),hi=bn(j,"DataView"),mn=bn(j,"Map"),gn=bn(j,"Promise"),ts=bn(j,"Set"),es=bn(j,"WeakMap"),fi=bn(Object,"create"),ic=xn(hi),rc=xn(mn),Ta=xn(gn),Da=xn(ts),pn=xn(es),Wi=ka?ka.prototype:void 0,ns=Wi?Wi.valueOf:void 0,Ca=Wi?Wi.toString:void 0;function yn(b){var C=-1,N=b?b.length:0;for(this.clear();++C<N;){var W=b[C];this.set(W[0],W[1])}}function sc(){this.__data__=fi?fi(null):{}}function He(b){return this.has(b)&&delete this.__data__[b]}function ac(b){var C=this.__data__;if(fi){var N=C[b];return N===r?void 0:N}return Ht.call(C,b)?C[b]:void 0}function oc(b){var C=this.__data__;return fi?C[b]!==void 0:Ht.call(C,b)}function lc(b,C){var N=this.__data__;return N[b]=fi&&C===void 0?r:C,this}yn.prototype.clear=sc,yn.prototype.delete=He,yn.prototype.get=ac,yn.prototype.has=oc,yn.prototype.set=lc;function Ve(b){var C=-1,N=b?b.length:0;for(this.clear();++C<N;){var W=b[C];this.set(W[0],W[1])}}function cc(){this.__data__=[]}function Hn(b){var C=this.__data__,N=ji(C,b);if(N<0)return!1;var W=C.length-1;return N==W?C.pop():di.call(C,N,1),!0}function uc(b){var C=this.__data__,N=ji(C,b);return N<0?void 0:C[N][1]}function dc(b){return ji(this.__data__,b)>-1}function hc(b,C){var N=this.__data__,W=ji(N,b);return W<0?N.push([b,C]):N[W][1]=C,this}Ve.prototype.clear=cc,Ve.prototype.delete=Hn,Ve.prototype.get=uc,Ve.prototype.has=dc,Ve.prototype.set=hc;function We(b){var C=-1,N=b?b.length:0;for(this.clear();++C<N;){var W=b[C];this.set(W[0],W[1])}}function fc(){this.__data__={hash:new yn,map:new(mn||Ve),string:new yn}}function Vn(b){return Xi(this,b).delete(b)}function mc(b){return Xi(this,b).get(b)}function gc(b){return Xi(this,b).has(b)}function pc(b,C){return Xi(this,b).set(b,C),this}We.prototype.clear=fc,We.prototype.delete=Vn,We.prototype.get=mc,We.prototype.has=gc,We.prototype.set=pc;function Yi(b){var C=-1,N=b?b.length:0;for(this.__data__=new We;++C<N;)this.add(b[C])}function yc(b){return this.__data__.set(b,r),this}function bc(b){return this.__data__.has(b)}Yi.prototype.add=Yi.prototype.push=yc,Yi.prototype.has=bc;function Le(b){this.__data__=new Ve(b)}function $i(){this.__data__=new Ve}function _c(b){return this.__data__.delete(b)}function is(b){return this.__data__.get(b)}function xc(b){return this.__data__.has(b)}function wc(b,C){var N=this.__data__;if(N instanceof Ve){var W=N.__data__;if(!mn||W.length<n-1)return W.push([b,C]),this;N=this.__data__=new We(W)}return N.set(b,C),this}Le.prototype.clear=$i,Le.prototype.delete=_c,Le.prototype.get=is,Le.prototype.has=xc,Le.prototype.set=wc;function vc(b,C){var N=w(b)||La(b)?Et(b.length,String):[],W=N.length,ht=!!W;for(var Z in b)Ht.call(b,Z)&&!(ht&&(Z=="length"||ss(Z,W)))&&N.push(Z);return N}function ji(b,C){for(var N=b.length;N--;)if(Ia(b[N][0],C))return N;return-1}var Sc=Ac();function kc(b,C){return b&&Sc(b,C,gi)}function Ui(b,C){C=Gi(C,b)?[C]:Ze(C);for(var N=0,W=C.length;b!=null&&N<W;)b=b[_n(C[N++])];return N&&N==W?b:void 0}function Mc(b){return Se.call(b)}function Tc(b,C){return b!=null&&C in Object(b)}function rs(b,C,N,W,ht){return b===C?!0:b==null||C==null||!Kt(b)&&!ke(C)?b!==b&&C!==C:Dc(b,C,rs,N,W,ht)}function Dc(b,C,N,W,ht,Z){var bt=w(b),Zt=w(C),Vt=c,de=c;bt||(Vt=ue(b),Vt=Vt==l?S:Vt),Zt||(de=ue(C),de=de==l?S:de);var Me=Vt==S&&!qt(b),Te=de==S&&!qt(C),pe=Vt==de;if(pe&&!Me)return Z||(Z=new Le),bt||Na(b)?Pa(b,C,N,W,ht,Z):Ic(b,C,Vt,N,W,ht,Z);if(!(ht&a)){var Ne=Me&&Ht.call(b,"__wrapped__"),Fe=Te&&Ht.call(C,"__wrapped__");if(Ne||Fe){var $n=Ne?b.value():b,wn=Fe?C.value():C;return Z||(Z=new Le),N($n,wn,W,ht,Z)}}return pe?(Z||(Z=new Le),Lc(b,C,N,W,ht,Z)):!1}function Cc(b,C,N,W){var ht=N.length,Z=ht;if(b==null)return!Z;for(b=Object(b);ht--;){var bt=N[ht];if(bt[2]?bt[1]!==b[bt[0]]:!(bt[0]in b))return!1}for(;++ht<Z;){bt=N[ht];var Zt=bt[0],Vt=b[Zt],de=bt[1];if(bt[2]){if(Vt===void 0&&!(Zt in b))return!1}else{var Me=new Le,Te;if(!(Te===void 0?rs(de,Vt,W,s|a,Me):Te))return!1}}return!0}function Ec(b){if(!Kt(b)||Ra(b))return!1;var C=K(b)||qt(b)?ui:yt;return C.test(xn(b))}function Oc(b){return ke(b)&&$t(b.length)&&!!mt[Se.call(b)]}function Ea(b){return typeof b=="function"?b:b==null?Ki:typeof b=="object"?w(b)?qi(b[0],b[1]):Rc(b):sO(b)}function Pc(b){if(!Bc(b))return Jr(b);var C=[];for(var N in Object(b))Ht.call(b,N)&&N!="constructor"&&C.push(N);return C}function Rc(b){var C=Nc(b);return C.length==1&&C[0][2]?os(C[0][0],C[0][1]):function(N){return N===b||Cc(N,b,C)}}function qi(b,C){return Gi(b)&&Aa(C)?os(_n(b),C):function(N){var W=Fa(N,b);return W===void 0&&W===C?Ba(N,b):rs(C,W,void 0,s|a)}}function Wn(b){return function(C){return Ui(C,b)}}function Oa(b){if(typeof b=="string")return b;if(ee(b))return Ca?Ca.call(b):"";var C=b+"";return C=="0"&&1/b==-1/0?"-0":C}function Ze(b){return w(b)?b:zc(b)}function Ac(b){return function(C,N,W){for(var ht=-1,Z=Object(C),bt=W(C),Zt=bt.length;Zt--;){var Vt=bt[++ht];if(N(Z[Vt],Vt,Z)===!1)break}return C}}function Pa(b,C,N,W,ht,Z){var bt=ht&a,Zt=b.length,Vt=C.length;if(Zt!=Vt&&!(bt&&Vt>Zt))return!1;var de=Z.get(b);if(de&&Z.get(C))return de==C;var Me=-1,Te=!0,pe=ht&s?new Yi:void 0;for(Z.set(b,C),Z.set(C,b);++Me<Zt;){var Ne=b[Me],Fe=C[Me];if(W)var $n=bt?W(Fe,Ne,Me,C,b,Z):W(Ne,Fe,Me,b,C,Z);if($n!==void 0){if($n)continue;Te=!1;break}if(pe){if(!_t(C,function(wn,pi){if(!pe.has(pi)&&(Ne===wn||N(Ne,wn,W,ht,Z)))return pe.add(pi)})){Te=!1;break}}else if(!(Ne===Fe||N(Ne,Fe,W,ht,Z))){Te=!1;break}}return Z.delete(b),Z.delete(C),Te}function Ic(b,C,N,W,ht,Z,bt){switch(N){case _:if(b.byteLength!=C.byteLength||b.byteOffset!=C.byteOffset)return!1;b=b.buffer,C=C.buffer;case y:return!(b.byteLength!=C.byteLength||!W(new Ma(b),new Ma(C)));case u:case h:case x:return Ia(+b,+C);case f:return b.name==C.name&&b.message==C.message;case k:case M:return b==C+"";case p:var Zt=Ie;case D:var Vt=Z&a;if(Zt||(Zt=Xt),b.size!=C.size&&!Vt)return!1;var de=bt.get(b);if(de)return de==C;Z|=s,bt.set(b,C);var Me=Pa(Zt(b),Zt(C),W,ht,Z,bt);return bt.delete(b),Me;case P:if(ns)return ns.call(b)==ns.call(C)}return!1}function Lc(b,C,N,W,ht,Z){var bt=ht&a,Zt=gi(b),Vt=Zt.length,de=gi(C),Me=de.length;if(Vt!=Me&&!bt)return!1;for(var Te=Vt;Te--;){var pe=Zt[Te];if(!(bt?pe in C:Ht.call(C,pe)))return!1}var Ne=Z.get(b);if(Ne&&Z.get(C))return Ne==C;var Fe=!0;Z.set(b,C),Z.set(C,b);for(var $n=bt;++Te<Vt;){pe=Zt[Te];var wn=b[pe],pi=C[pe];if(W)var Sg=bt?W(pi,wn,pe,C,b,Z):W(wn,pi,pe,b,C,Z);if(!(Sg===void 0?wn===pi||N(wn,pi,W,ht,Z):Sg)){Fe=!1;break}$n||($n=pe=="constructor")}if(Fe&&!$n){var za=b.constructor,Ha=C.constructor;za!=Ha&&"constructor"in b&&"constructor"in C&&!(typeof za=="function"&&za instanceof za&&typeof Ha=="function"&&Ha instanceof Ha)&&(Fe=!1)}return Z.delete(b),Z.delete(C),Fe}function Xi(b,C){var N=b.__data__;return as(C)?N[typeof C=="string"?"string":"hash"]:N.map}function Nc(b){for(var C=gi(b),N=C.length;N--;){var W=C[N],ht=b[W];C[N]=[W,ht,Aa(ht)]}return C}function bn(b,C){var N=ce(b,C);return Ec(N)?N:void 0}var ue=Mc;(hi&&ue(new hi(new ArrayBuffer(1)))!=_||mn&&ue(new mn)!=p||gn&&ue(gn.resolve())!=v||ts&&ue(new ts)!=D||es&&ue(new es)!=E)&&(ue=function(b){var C=Se.call(b),N=C==S?b.constructor:void 0,W=N?xn(N):void 0;if(W)switch(W){case ic:return _;case rc:return p;case Ta:return v;case Da:return D;case pn:return E}return C});function Fc(b,C,N){C=Gi(C,b)?[C]:Ze(C);for(var W,ht=-1,bt=C.length;++ht<bt;){var Z=_n(C[ht]);if(!(W=b!=null&&N(b,Z)))break;b=b[Z]}if(W)return W;var bt=b?b.length:0;return!!bt&&$t(bt)&&ss(Z,bt)&&(w(b)||La(b))}function ss(b,C){return C=C??o,!!C&&(typeof b=="number"||vt.test(b))&&b>-1&&b%1==0&&b<C}function Gi(b,C){if(w(b))return!1;var N=typeof b;return N=="number"||N=="symbol"||N=="boolean"||b==null||ee(b)?!0:Q.test(b)||!X.test(b)||C!=null&&b in Object(C)}function as(b){var C=typeof b;return C=="string"||C=="number"||C=="symbol"||C=="boolean"?b!=="__proto__":b===null}function Ra(b){return!!ci&&ci in b}function Bc(b){var C=b&&b.constructor,N=typeof C=="function"&&C.prototype||re;return b===N}function Aa(b){return b===b&&!Kt(b)}function os(b,C){return function(N){return N==null?!1:N[b]===C&&(C!==void 0||b in Object(N))}}var zc=mi(function(b){b=Yn(b);var C=[];return H.test(b)&&C.push(""),b.replace(U,function(N,W,ht,Z){C.push(ht?Z.replace(xt,"$1"):W||N)}),C});function _n(b){if(typeof b=="string"||ee(b))return b;var C=b+"";return C=="0"&&1/b==-1/0?"-0":C}function xn(b){if(b!=null){try{return ze.call(b)}catch{}try{return b+""}catch{}}return""}function mi(b,C){if(typeof b!="function"||C&&typeof C!="function")throw new TypeError(i);var N=function(){var W=arguments,ht=C?C.apply(this,W):W[0],Z=N.cache;if(Z.has(ht))return Z.get(ht);var bt=b.apply(this,W);return N.cache=Z.set(ht,bt),bt};return N.cache=new(mi.Cache||We),N}mi.Cache=We;function Ia(b,C){return b===C||b!==b&&C!==C}function La(b){return F(b)&&Ht.call(b,"callee")&&(!Qr.call(b,"callee")||Se.call(b)==l)}var w=Array.isArray;function L(b){return b!=null&&$t(b.length)&&!K(b)}function F(b){return ke(b)&&L(b)}function K(b){var C=Kt(b)?Se.call(b):"";return C==m||C==g}function $t(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=o}function Kt(b){var C=typeof b;return!!b&&(C=="object"||C=="function")}function ke(b){return!!b&&typeof b=="object"}function ee(b){return typeof b=="symbol"||ke(b)&&Se.call(b)==P}var Na=it?te(it):Oc;function Yn(b){return b==null?"":Oa(b)}function Fa(b,C,N){var W=b==null?void 0:Ui(b,C);return W===void 0?N:W}function Ba(b,C){return b!=null&&Fc(b,C,Tc)}function gi(b){return L(b)?vc(b):Pc(b)}function ls(b,C){var N={};return C=Ea(C),kc(b,function(W,ht,Z){N[C(W,ht,Z)]=W}),N}function Ki(b){return b}function sO(b){return Gi(b)?ct(_n(b)):Wn(b)}e.exports=ls}(Sa,Sa.exports);var mE=Sa.exports;const gE=Ml(mE);var pE=9007199254740991,yE="[object Arguments]",bE="[object Function]",_E="[object GeneratorFunction]",xE="[object Symbol]",wE=typeof ve=="object"&&ve&&ve.Object===Object&&ve,vE=typeof self=="object"&&self&&self.Object===Object&&self,SE=wE||vE||Function("return this")();function kE(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ME(e,t){for(var n=-1,i=e?e.length:0,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function TE(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}var ec=Object.prototype,DE=ec.hasOwnProperty,nc=ec.toString,pg=SE.Symbol,CE=ec.propertyIsEnumerable,yg=pg?pg.isConcatSpreadable:void 0,bg=Math.max;function EE(e,t,n,i,r){var s=-1,a=e.length;for(n||(n=AE),r||(r=[]);++s<a;){var o=e[s];n(o)?TE(r,o):r[r.length]=o}return r}function OE(e,t){return e=Object(e),PE(e,t,function(n,i){return i in e})}function PE(e,t,n){for(var i=-1,r=t.length,s={};++i<r;){var a=t[i],o=e[a];n(o,a)&&(s[a]=o)}return s}function RE(e,t){return t=bg(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,r=bg(n.length-t,0),s=Array(r);++i<r;)s[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=s,kE(e,this,a)}}function AE(e){return NE(e)||LE(e)||!!(yg&&e&&e[yg])}function IE(e){if(typeof e=="string"||WE(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function LE(e){return BE(e)&&DE.call(e,"callee")&&(!CE.call(e,"callee")||nc.call(e)==yE)}var NE=Array.isArray;function FE(e){return e!=null&&HE(e.length)&&!zE(e)}function BE(e){return _g(e)&&FE(e)}function zE(e){var t=VE(e)?nc.call(e):"";return t==bE||t==_E}function HE(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=pE}function VE(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function _g(e){return!!e&&typeof e=="object"}function WE(e){return typeof e=="symbol"||_g(e)&&nc.call(e)==xE}var YE=RE(function(e,t){return e==null?{}:OE(e,ME(EE(t),IE))}),$E=YE;const jE=Ml($E);var xg={exports:{}};(function(e,t){(function(n,i){i()})(ve,function(){function n(c,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function i(c,u,h){var f=new XMLHttpRequest;f.open("GET",c),f.responseType="blob",f.onload=function(){l(f.response,u,h)},f.onerror=function(){console.error("could not download file")},f.send()}function r(c){var u=new XMLHttpRequest;u.open("HEAD",c,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function s(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(u)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ve=="object"&&ve.global===ve?ve:void 0,o=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(c,u,h){var f=a.URL||a.webkitURL,m=document.createElement("a");u=u||c.name||"download",m.download=u,m.rel="noopener",typeof c=="string"?(m.href=c,m.origin===location.origin?s(m):r(m.href)?i(c,u,h):s(m,m.target="_blank")):(m.href=f.createObjectURL(c),setTimeout(function(){f.revokeObjectURL(m.href)},4e4),setTimeout(function(){s(m)},0))}:"msSaveOrOpenBlob"in navigator?function(c,u,h){if(u=u||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,h),u);else if(r(c))i(c,u,h);else{var f=document.createElement("a");f.href=c,f.target="_blank",setTimeout(function(){s(f)})}}:function(c,u,h,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof c=="string")return i(c,u,h);var m=c.type==="application/octet-stream",g=/constructor/i.test(a.HTMLElement)||a.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||m&&g||o)&&typeof FileReader<"u"){var x=new FileReader;x.onloadend=function(){var k=x.result;k=p?k:k.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=k:location=k,f=null},x.readAsDataURL(c)}else{var S=a.URL||a.webkitURL,v=S.createObjectURL(c);f?f.location=v:location.href=v,f=null,setTimeout(function(){S.revokeObjectURL(v)},4e4)}});a.saveAs=l.saveAs=l,e.exports=l})})(xg);var UE=xg.exports,wg={exports:{}};/* @license
32
+ */process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();var tg;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(tg||(tg={}));const ZD=typeof window<"u";process.env.NODE_ENV!=="production"&&process.env.NODE_ENV,process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();const QD={notAvailable:"N/A"},JD={small:{traffic:"Requests",errorRate:"Error rate",averageLatency:"Avg. latency",p99Latency:"P99 latency"},short:{traffic:"Requests",errorRate:"Error rate",averageLatency:"Average latency",p99Latency:"P99 latency"},long:{traffic:"Number of requests",errorRate:"Average error rate",averageLatency:"Average latency",p99Latency:"P99 latency"}},tC={custom_days:"vs previous {numDays, plural, =1 {day} other {# days}}",custom_hours:"vs previous {numHours, plural, =1 {hour} other {# hours}}",custom_minutes:"vs previous {numMinutes, plural, =1 {minute} other {# minutes}}","15m":"vs previous 15 minutes","1h":"vs previous hour","6h":"vs previous 6 hours","12h":"vs previous 12 hours","24h":"vs previous 24 hours","7d":"vs previous 7 days","30d":"vs previous 30 days",current_week:"vs previous week",current_month:"vs previous month",current_quarter:"vs previous quarter",previous_week:"vs previous time period",previous_month:"vs previous time period",previous_quarter:"vs previous quarter"},eC={general:QD,metricCard:JD,trendRange:tC};function nC(){const e=Qe.createI18n("en-us",eC);return{i18n:e,i18nT:Qe.i18nTComponent(e)}}const iC=2,Ul=["1XX","2XX","3XX","4XX","5XX"],eg=["4XX","5XX"];var ng=(e=>(e.VALIDATING="VALIDATING",e.VALIDATING_HAS_DATA="VALIDATING_HAS_DATA",e.PENDING="PENDING",e.SUCCESS="SUCCESS",e.SUCCESS_HAS_DATA="SUCCESS_HAS_DATA",e.ERROR="ERROR",e.STALE_IF_ERROR="STALE_IF_ERROR",e))(ng||{});const rC=e=>{var t,n,i,r,s;return e?!!((t=Object.keys(e))!=null&&t.length||(n=e.data)!=null&&n.length||(r=(i=e.data)==null?void 0:i.data)!=null&&r.length||!((s=e.data)!=null&&s.data)&&typeof e.data=="object"&&Object.keys(e==null?void 0:e.data).length):!1};function sC(e=d.ref({}),t,n,i=rC){const r=d.ref("PENDING");return d.watchEffect(()=>{const s=i(e.value);if(e.value&&s&&n.value){r.value="VALIDATING_HAS_DATA";return}if(e.value&&n.value){r.value="VALIDATING";return}if(e.value&&t.value){r.value="STALE_IF_ERROR";return}if(e.value===void 0&&!t.value){r.value="PENDING";return}if(e.value&&!t.value&&s){r.value="SUCCESS_HAS_DATA";return}if(e.value&&!t.value){r.value="SUCCESS";return}e.value===void 0&&t&&(r.value="ERROR")}),{state:r,swrvState:ng}}const Bn=Symbol("default"),ql="status_code_grouped",ig=(e,t,n,i,r)=>{e[t][n]||(e[t][n]={}),e[t][n][i]=r};function aC(e,t){var n;const i=((n=e.meta.metric_names)==null?void 0:n[0])||"",r=e.meta.start_ms,s=Object.keys(e.meta.display||{}),a=!!s.find(l=>l===ql),o=s.find(l=>l!==ql);return s.length>2||s.length>1&&!a?(console.error("Don't know how to work with provided dimensions:",s),{previous:{[Bn]:{[Bn]:0}},current:{[Bn]:{[Bn]:0}}}):e.data.reduce((l,c)=>{const u=c.event[i],h=o?c.event[o]:Bn,f=a?c.event[ql]:Bn;return new Date(c.timestamp).getTime()===r&&t?ig(l,"previous",h,f,u):ig(l,"current",h,f,u),l},{previous:{},current:{}})}function oC(e){e.queryReady===void 0&&(e.queryReady=d.computed(()=>!0));const t=d.computed(()=>{var u,h;return{metrics:e.metrics.value,dimensions:[...(u=e.dimensions)!=null&&u.length?[...e.dimensions]:[],...e.withTrend.value?["time"]:[]],granularity:e.withTrend.value?"trend":void 0,...(h=e.filter.value)!=null&&h.length?{filters:e.filter.value}:{},time_range:e.timeRange.value}}),n=d.computed(()=>{var u,h,f,m;if(!((u=e.queryReady)!=null&&u.value))return null;const g=(h=e.filter)!=null&&h.value?JSON.stringify(e.filter.value):"";return`metric-fetcher-${JSON.stringify(e.timeRange.value)}-${(f=e.dimensions)==null?void 0:f.join("-")}-${(m=e.metrics.value)==null?void 0:m.join("-")}-${g}-${e.refreshCounter.value}`}),{response:i,error:r,isValidating:s}=Vi.useRequest(()=>n.value,()=>e.queryFn({datasource:e.datasource.value,query:t.value},e.abortController??new AbortController),{refreshInterval:e.refreshInterval,revalidateOnFocus:!1,errorRetryCount:iC}),{state:a,swrvState:o}=sC(i,r,s),l=d.computed(()=>{var u,h,f,m,g,p,x;return!((h=(u=i.value)==null?void 0:u.data)!=null&&h.length)||!((m=(f=i.value)==null?void 0:f.meta)!=null&&m.display)||!((x=(p=(g=i.value)==null?void 0:g.meta)==null?void 0:p.metric_names)!=null&&x.length)?{current:{},previous:{}}:aC(i.value,e.withTrend.value)}),c=Vi.useTrendRange(e.withTrend,e.timeRange,d.computed(()=>{var u;return(u=i.value)==null?void 0:u.meta}));return{isLoading:d.computed(()=>o.PENDING===a.value),hasError:d.computed(()=>o.ERROR===a.value),raw:i,mapped:l,trendRange:c}}const Bi=(e,t,n=Bn,i)=>(i??[Bn]).reduce((r,s)=>{const a=e[t][n];return a?r+(a[s]||0):r},0);function lC(e){const{cardType:t,title:n,description:i,record:r,hasError:s,increaseIsBad:a,formatValueFn:o,trendRange:l}=e;return d.computed(()=>{let c=0,u=0;if(r!=null&&r.value)try{c=Bi(r.value,"current",e.lookupKey,e.sumGroupedValues),u=Bi(r.value,"previous",e.lookupKey,e.sumGroupedValues)}catch(h){console.error("Metric card data doesn't have the expected structure:",h)}return{cardType:t,hasError:s.value,currentValue:c,previousValue:u,title:n.value,description:i,increaseIsBad:!!a,formatValueFn:o,trendRange:l==null?void 0:l.value}})}function rg(e,t,n){const{i18n:i}=Vi.useI18n();return d.computed(()=>{var r,s,a;if(((r=t==null?void 0:t.value)==null?void 0:r.type)==="absolute"){let o,l;if((s=n==null?void 0:n.value)!=null&&s.start_ms&&n.value.end_ms)o=n.value.start_ms,l=n.value.end_ms;else if(t.value.start&&t.value.end)o=new Date(t.value.start).getTime(),l=new Date(t.value.end).getTime();else return"";let c=(l-o)/(1e3*60*60*24),u=(l-o)/(1e3*60*60),h=(l-o)/(1e3*60);return e.value&&(c/=2,u/=2,h/=2),c>=1?i.t("trendRange.custom_days",{numDays:Math.round(c)}):u>=1?i.t("trendRange.custom_hours",{numHours:Math.round(u)}):h>=1?i.t("trendRange.custom_minutes",{numMinutes:Math.round(h)}):i.t("trendRange.custom_days",{numDays:Math.round(c)})}return((a=t==null?void 0:t.value)==null?void 0:a.type)==="relative"&&e.value?i.t(`trendRange.${t.value.time_range}`):""})}var Xl=new WeakMap,sg=0;function cC(e){if(!e.length)return"";for(var t="arg",n=0;n<e.length;++n){var i=void 0;e[n]===null||typeof e[n]!="object"&&typeof e[n]!="function"?typeof e[n]=="string"?i='"'+e[n]+'"':i=String(e[n]):Xl.has(e[n])?i=Xl.get(e[n]):(i=sg,Xl.set(e[n],sg++)),t+="@"+i}return t}function uC(e){if(typeof e=="function")try{e=e()}catch{e=""}return Array.isArray(e)?e=cC(e):e=String(e||""),e}var Gl=function(){function e(t){t===void 0&&(t=0),this.items=new Map,this.ttl=t}return e.prototype.serializeKey=function(t){return uC(t)},e.prototype.get=function(t){var n=this.serializeKey(t);return this.items.get(n)},e.prototype.set=function(t,n,i){var r=this.serializeKey(t),s=i||this.ttl,a=Date.now(),o={data:n,createdAt:a,expiresAt:s?a+s:1/0};this.dispatchExpire(s,o,r),this.items.set(r,o)},e.prototype.dispatchExpire=function(t,n,i){var r=this;t&&setTimeout(function(){var s=Date.now(),a=s>=n.expiresAt;a&&r.delete(i)},t)},e.prototype.delete=function(t){this.items.delete(t)},e}();function dC(){return typeof navigator.onLine<"u"?navigator.onLine:!0}function hC(){return typeof document<"u"&&typeof document.visibilityState<"u"?document.visibilityState!=="hidden":!0}var fC=function(e){return fetch(e).then(function(t){return t.json()})};const Kl={isOnline:dC,isDocumentVisible:hC,fetcher:fC};var hn=function(){return hn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},hn.apply(this,arguments)},zi=function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(u){try{c(i.next(u))}catch(h){a(h)}}function l(u){try{c(i.throw(u))}catch(h){a(h)}}function c(u){u.done?s(u.value):r(u.value).then(o,l)}c((i=i.apply(e,[])).next())})},Hi=function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(u){return l([c,u])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,r&&(s=c[0]&2?r.return:c[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,c[1])).done)return s;switch(r=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,r=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],r=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},mC=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,s=[],a;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(o){a={error:o}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s},gC=function(e,t,n){if(arguments.length===2)for(var i=0,r=t.length,s;i<r;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))},ag=new Gl,wa=new Gl,Zl=new Gl,og={cache:ag,refreshInterval:0,ttl:0,serverTTL:1e3,dedupingInterval:2e3,revalidateOnFocus:!0,revalidateDebounce:0,shouldRetryOnError:!0,errorRetryInterval:5e3,errorRetryCount:5,fetcher:Kl.fetcher,isOnline:Kl.isOnline,isDocumentVisible:Kl.isDocumentVisible};function pC(e,t,n){var i=wa.get(e);if(i)i.data.push(t);else{var r=5e3;wa.set(e,[t],n>0?n+r:n)}}function yC(e,t,n){if(n.isDocumentVisible()&&!(n.errorRetryCount!==void 0&&t>n.errorRetryCount)){var i=Math.min(t||0,n.errorRetryCount),r=i*n.errorRetryInterval;setTimeout(function(){e(null,{errorRetryCount:i+1,shouldRetryOnError:!0})},r)}}var lg=function(e,t,n,i){return n===void 0&&(n=ag),i===void 0&&(i=og.ttl),zi(void 0,void 0,void 0,function(){var r,s,a,o,l,c,u;return Hi(this,function(h){switch(h.label){case 0:if(!_C(t))return[3,5];h.label=1;case 1:return h.trys.push([1,3,,4]),[4,t];case 2:return r=h.sent(),[3,4];case 3:return o=h.sent(),s=o,[3,4];case 4:return[3,6];case 5:r=t,h.label=6;case 6:if(a=!1,l={data:r,error:s,isValidating:a},typeof r<"u")try{n.set(e,l,i)}catch(f){console.error("swrv(mutate): failed to set cache",f)}return c=wa.get(e),c&&c.data.length&&(u=c.data.filter(function(f){return f.key===e}),u.forEach(function(f,m){typeof l.data<"u"&&(f.data=l.data),f.error=l.error,f.isValidating=l.isValidating,f.isLoading=l.isValidating;var g=m===u.length-1;g||delete u[m]}),u=u.filter(Boolean)),[2,l]}})})};function bC(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i,r,s=hn({},og),a=!1,o=!1,l=d.getCurrentInstance(),c=(l==null?void 0:l.proxy)||l;if(!c)return console.error("Could not get current instance, check to make sure that `useSwrv` is declared in the top level of the setup function."),null;var u=(c==null?void 0:c.$isServer)||!1;t.length>=1&&(i=t[0]),t.length>=2&&(r=t[1]),t.length>2&&(s=hn(hn({},s),t[2]));var h=u?s.serverTTL:s.ttl,f=typeof i=="function"?i:d.ref(i);typeof r>"u"&&(r=s.fetcher);var m=null;m||(m=d.reactive({data:void 0,error:void 0,isValidating:!0,isLoading:!0,key:null}));var g=function(v,k){return zi(e,void 0,void 0,function(){var D,M,P,E,y,_,T,O=this;return Hi(this,function(A){switch(A.label){case 0:return D=m.data===void 0,M=f.value,M?(P=s.cache.get(M),E=P&&P.data,m.isValidating=!0,m.isLoading=!E,E&&(m.data=E.data,m.error=E.error),y=v||r,!y||!s.isDocumentVisible()&&!D||(k==null?void 0:k.forceRevalidate)!==void 0&&!(k!=null&&k.forceRevalidate)?(m.isValidating=!1,m.isLoading=!1,[2]):P&&(_=!!(Date.now()-P.createdAt>=s.dedupingInterval||k!=null&&k.forceRevalidate),!_)?(m.isValidating=!1,m.isLoading=!1,[2]):(T=function(){return zi(O,void 0,void 0,function(){var I,B,q,G;return Hi(this,function(V){switch(V.label){case 0:return I=Zl.get(M),I?[3,2]:(B=Array.isArray(M)?M:[M],q=y.apply(void 0,gC([],mC(B),!1)),Zl.set(M,q,s.dedupingInterval),[4,lg(M,q,s.cache,h)]);case 1:return V.sent(),[3,4];case 2:return[4,lg(M,I.data,s.cache,h)];case 3:V.sent(),V.label=4;case 4:return m.isValidating=!1,m.isLoading=!1,Zl.delete(M),m.error!==void 0&&(G=!a&&s.shouldRetryOnError&&(k?k.shouldRetryOnError:!0),G&&yC(g,k?k.errorRetryCount:1,s)),[2]}})})},E&&s.revalidateDebounce?(setTimeout(function(){return zi(O,void 0,void 0,function(){return Hi(this,function(I){switch(I.label){case 0:return a?[3,2]:[4,T()];case 1:I.sent(),I.label=2;case 2:return[2]}})})},s.revalidateDebounce),[3,3]):[3,1])):[2];case 1:return[4,T()];case 2:A.sent(),A.label=3;case 3:return[2]}})})},p=function(){return zi(e,void 0,void 0,function(){return Hi(this,function(v){return[2,g(null,{shouldRetryOnError:!1})]})})},x=null;d.onMounted(function(){var v=function(){return zi(e,void 0,void 0,function(){return Hi(this,function(k){switch(k.label){case 0:return!m.error&&s.isOnline()?[4,g()]:[3,2];case 1:return k.sent(),[3,3];case 2:x&&clearTimeout(x),k.label=3;case 3:return s.refreshInterval&&!a&&(x=setTimeout(v,s.refreshInterval)),[2]}})})};s.refreshInterval&&(x=setTimeout(v,s.refreshInterval)),s.revalidateOnFocus&&(document.addEventListener("visibilitychange",p,!1),window.addEventListener("focus",p,!1))}),d.onUnmounted(function(){a=!0,x&&clearTimeout(x),s.revalidateOnFocus&&(document.removeEventListener("visibilitychange",p,!1),window.removeEventListener("focus",p,!1));var v=wa.get(f.value);v&&(v.data=v.data.filter(function(k){return k!==m}))});try{d.watch(f,function(v){d.isReadonly(f)||(f.value=v),m.key=v,m.isValidating=!!v,pC(f.value,m,h),!u&&!o&&f.value&&g(),o=!1},{immediate:!0})}catch{}var S=hn(hn({},d.toRefs(m)),{mutate:function(v,k){return g(v,hn(hn({},k),{forceRevalidate:!0}))}});return S}function _C(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}function xC(e,t,n){const{data:i,error:r,isValidating:s,mutate:a}=bC(e,t,{revalidateDebounce:500,revalidateOnFocus:!1,dedupingInterval:100,...n});return{data:d.computed(()=>i.value),response:i,error:r,isValidating:s,revalidate:a}}const Vi={useI18n:nC,useMetricCardBuilder:lC,useMetricFetcher:oC,useTrendRange:rg,useRequest:xC},wC=Symbol("METRICS_PROVIDER_KEY");function vC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cg={exports:{}};(function(e){(function(){function t(c,u){if(u.separator===!1||c<1e3)return c.toString();var h=typeof u.separator=="string"?u.separator:",",f=[],m=Math.round(c).toString().split("");return m.reverse().forEach(function(g,p){p&&p%3===0&&f.push(h),f.push(g)}),f.reverse().join("")}function n(c,u,h){var f=c/u,m=h.round?"round":"floor";return h.decimal===!1?(c=Math[m](f),c.toString()):(h.precision?c=f:c=f<10?Math[m](f*10)/10:Math[m](f),c=c.toString(),typeof h.decimal=="string"&&(c=c.replace(".",h.decimal)),c)}var i=1e3,r=1e4,s=1e6,a=1e9,o=1e12;function l(c,u){var h;u=u||{};var f=c<0;f&&(c=Math.abs(c)),u.precision&&(c=parseFloat(c.toPrecision(u.precision)));var m=u.min10k?r:i;return c<m||u.precision&&u.precision>Math.log10(c)?h=t(n(c,1,u),u):c<s?h=n(c,i,u)+"k":c<a?h=n(c,s,u)+"m":c<o?h=t(n(c,a,u),u)+"b":h=t(n(c,o,u),u)+"t",f&&(h="-"+h),u.capital&&(h=h.toUpperCase()),u.prefix&&(h=u.prefix+h),u.suffix&&(h=h+u.suffix),h}l.addCommas=t,e.exports=l})()})(cg);var SC=cg.exports;const kC=vC(SC);var fn=(e=>(e.GENERIC_COUNT="GenericCount",e.TRAFFIC="Traffic",e.ERROR_RATE="ErrorRate",e.LATENCY="Latency",e))(fn||{}),Ge=(e=>(e.Small="sm",e.Medium="md",e.Large="lg",e.ExtraLarge="xl",e))(Ge||{});const Ql=2,ug=Ql+2,dg=(e,t,n=!1)=>{let i=!t||Number(e.toFixed(ug))===0?0:Number(e.toFixed(ug))>0?1:-1;return n&&(i*=-1),i},hg=(e,t,n)=>t?`${Math.abs(e*100).toFixed(Ql)}%`:n,fg=(e,t)=>t===0?0:e/t-1,mg=(e,t=!1)=>(t&&(e*=-1),e>0?ne.TrendUpIcon:e<0?ne.TrendDownIcon:ne.IndeterminateSmallIcon),MC="#ad000e",Jl="#6c7489",gg="#52596e",TC="#007d60",va="16px",DC="20px",CC={key:0,class:"metricscard-description"},EC={class:"metricscard-valuetrend"},OC={key:0,class:"metricscard-error"},PC={key:2,class:"metricscard-trend"},RC={"data-testid":"metric-trend-change"},AC={key:0,class:"metricscard-trend-range"},IC=d.defineComponent({__name:"MetricsCard",props:{cardType:{type:String,required:!0,default:fn.GENERIC_COUNT},title:{type:String,default:"0%",required:!0},description:{type:String,default:"",required:!1},tooltip:{type:String,required:!1,default:""},timeframe:{type:String,required:!1,default:""},metricValue:{type:String,default:""},metricChange:{type:String,required:!0},changePolarity:{type:Number,required:!0},trendIcon:{type:Object,default:ne.IndeterminateSmallIcon},trendRange:{type:String,default:""},hasError:{type:Boolean,default:!1},errorMessage:{type:String,default:"Vitals data error"},cardSize:{type:String,required:!1,default:()=>Ge.Large},hasContainerTitle:{type:Boolean,required:!1,default:!1},titleTag:{type:String,default:"span"}},setup(e){const t=new Map([[fn.GENERIC_COUNT,ne.VitalsIcon],[fn.TRAFFIC,ne.CloudUploadIcon],[fn.ERROR_RATE,ne.WarningOutlineIcon],[fn.LATENCY,ne.ResponseIcon]]),n=e,i=o=>{const l={red:`var(--kui-color-text-danger-strong, ${MC})`,green:`var(--kui-color-text-success, ${TC})`,grey:`var(--kui-color-text-neutral-strong, ${gg})`};return o>0?l.green:o<0?l.red:l.grey},r=o=>o>0?"positive":o<0?"negative":"neutral",s=[Ge.Medium,Ge.Large].includes(n.cardSize),a=[Ge.Small].includes(n.cardSize);return(o,l)=>{const c=d.resolveComponent("KTooltip");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["metricscard",e.cardSize])},[d.createElementVNode("div",{class:d.normalizeClass(["metricscard-title",e.cardSize])},[d.unref(a)?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(d.resolveDynamicComponent(d.unref(t).get(e.cardType)),{key:0,class:"metricscard-icon",color:`var(--kui-color-text-neutral, ${d.unref(Jl)})`,size:d.unref(va)},null,8,["color","size"])),(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.titleTag),null,{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.title),1)]),_:1})),e.tooltip?(d.openBlock(),d.createBlock(c,{key:1,class:"metricscard-tooltip",placement:"right",text:e.tooltip},{default:d.withCtx(()=>[d.createVNode(d.unref(ne.InfoIcon),{color:`var(--kui-color-text-neutral, ${d.unref(Jl)})`,size:d.unref(va)},null,8,["color","size"])]),_:1},8,["text"])):d.createCommentVNode("",!0)],2),e.description&&d.unref(s)?(d.openBlock(),d.createElementBlock("div",CC,[d.createElementVNode("span",null,d.toDisplayString(e.description),1)])):d.createCommentVNode("",!0),d.createElementVNode("div",EC,[e.hasError?(d.openBlock(),d.createElementBlock("div",OC,[d.createVNode(d.unref(ne.WarningIcon),{color:`var(--kui-color-text-neutral, ${d.unref(Jl)})`,size:d.unref(DC)},null,8,["color","size"]),d.createElementVNode("div",null," "+d.toDisplayString(e.errorMessage),1)])):(d.openBlock(),d.createElementBlock("div",{key:1,class:d.normalizeClass(["metricscard-value",e.cardSize]),"data-testid":"metric-value"},d.toDisplayString(e.metricValue),3)),d.unref(s)?(d.openBlock(),d.createElementBlock("div",PC,[d.createElementVNode("div",{class:d.normalizeClass(["metricscard-trend-change",r(e.changePolarity)]),"data-testid":"metric-trend-parent"},[e.changePolarity!==0?(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.trendIcon),{key:0,color:i(e.changePolarity),size:d.unref(va)},null,8,["color","size"])):(d.openBlock(),d.createBlock(d.unref(ne.EqualIcon),{key:1,color:`var(--kui-color-text-neutral-strong, ${d.unref(gg)})`,size:d.unref(va)},null,8,["color","size"])),d.createElementVNode("div",RC,d.toDisplayString(e.metricChange),1)],2),e.trendRange?(d.openBlock(),d.createElementBlock("div",AC,d.toDisplayString(e.trendRange),1)):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0)])],2)}}}),tc=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},LC=tc(IC,[["__scopeId","data-v-b1513f6f"]]),NC={},FC={class:"loading-tabs"};function BC(e,t){const n=d.resolveComponent("KSkeletonBox");return d.openBlock(),d.createElementBlock("div",FC,[d.createVNode(n,{width:"100"}),d.createVNode(n,{width:"75"})])}const zC=tc(NC,[["render",BC],["__scopeId","data-v-9c7113d7"]]),HC={key:0,class:"container-title"},VC={key:0,class:"container-description"},WC={key:1,class:"error-display"},YC={key:0,class:"error-display-message"},$C={key:2,class:"cards-wrapper"},jC=d.defineComponent({__name:"MetricCardContainer",props:{fallbackDisplayText:{type:String,required:!0},cards:{type:Array,required:!0},errorMessage:{type:String,required:!1,default:""},loading:{type:Boolean,required:!1,default:!1},hasTrendAccess:{type:Boolean,required:!1,default:!0},cardSize:{type:String,required:!1,default:()=>Ge.Large},containerTitle:{type:String,required:!1,default:""},containerDescription:{type:String,required:!1,default:""}},setup(e){const t=e,n=d.computed(()=>t.cards.every(r=>(r==null?void 0:r.hasError)===!0)),i=r=>{const s=fg(r.currentValue,r.previousValue)||0,a=dg(s,t.hasTrendAccess,r.increaseIsBad);return{metricValue:r.formatValueFn?r.formatValueFn(r.currentValue):kC(r.currentValue,{capital:!0,round:!0})||"0",metricChange:r.formatChangeFn?r.formatChangeFn(s):hg(s,t.hasTrendAccess,t.fallbackDisplayText),changePolarity:a,trendIcon:mg(a,r.increaseIsBad),cardSize:t.cardSize,hasContainerTitle:!!t.containerTitle}};return(r,s)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["kong-ui-public-metric-card-container",e.cardSize])},[t.containerTitle||t.containerDescription?(d.openBlock(),d.createElementBlock("div",HC,[d.createTextVNode(d.toDisplayString(t.containerTitle)+" ",1),t.containerDescription?(d.openBlock(),d.createElementBlock("div",VC,d.toDisplayString(t.containerDescription),1)):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0),n.value?(d.openBlock(),d.createElementBlock("div",WC,[d.createVNode(d.unref(ne.WarningIcon),{class:"error-display-icon"}),e.errorMessage?(d.openBlock(),d.createElementBlock("div",YC,d.toDisplayString(e.errorMessage),1)):d.createCommentVNode("",!0)])):(d.openBlock(),d.createElementBlock("div",$C,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(e.cards,(a,o)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[e.loading?(d.openBlock(),d.createElementBlock("div",{key:`skeleton-${o}`,class:"loading-tab"},[d.createVNode(zC,{class:d.normalizeClass(e.cardSize===d.unref(Ge).Small?"loading-tabs-small":"loading-tabs-large")},null,8,["class"])])):(d.openBlock(),d.createBlock(LC,d.mergeProps({key:o},{ref_for:!0},i(a),{"card-size":e.cardSize,"card-type":a.cardType,description:a.description,"error-message":e.errorMessage,"has-error":a.hasError,title:a.title,"title-tag":a.titleTag,tooltip:a.tooltip,"trend-range":a.trendRange}),null,16,["card-size","card-type","description","error-message","has-error","title","title-tag","tooltip","trend-range"]))],64))),256))]))],2))}}),UC=tc(jC,[["__scopeId","data-v-7080ba56"]]);Ge.Large;const qC={key:1,class:"single-value-wrapper"},XC={class:"single-value","data-testid":"single-value-chart"},GC={key:0,class:"single-value-unit"},KC={key:1,class:"single-value-trend"},ZC={key:0,class:"single-value-trend-range"},QC=Ee(d.defineComponent({__name:"SingleValue",props:{data:{type:Object,required:!0},decimalPoints:{type:Number,default:$f},leftAlign:{type:Boolean,default:!1},showTrend:{type:Boolean,default:!1},increaseIsBad:{type:Boolean,default:!1},alignX:{type:String,default:"space-evenly"}},setup(e){const{i18n:t}=pt.useI18n(),{formatBytes:n}=Br({i18n:t}),i=e,r={left:"flex-start",center:"center",right:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly"},s=d.ref(i.leftAlign?"left":i.alignX),a=d.computed(()=>i.data.data),o=d.computed(()=>{var M,P;return(P=(M=i.data.meta)==null?void 0:M.metric_names)==null?void 0:P[0]}),l=d.computed(()=>{var P,E;const M=o.value?(E=(P=i.data.meta)==null?void 0:P.metric_units)==null?void 0:E[o.value]:void 0;if(M)return t.t(`chartUnits.${M}`,{plural:""})}),c=d.computed(()=>{var M;return o.value==="request_per_minute"||!!((M=o.value)!=null&&M.includes("_latency_"))}),u=d.computed(()=>!i.showTrend||a.value.length<2||!o.value?null:a.value[0].event[o.value]??null),h=d.computed(()=>{if(!o.value)return null;const M=i.showTrend?1:0;return a.value.length<=M?null:a.value[M].event[o.value]??null}),f=d.computed(()=>{var E;const M=h.value;if(M===null)return"";if((E=o.value)!=null&&E.includes("_size_"))return n(M);if(M>=1e9){const y=(M/1e9).toFixed(1);return y.endsWith(".0")?`${Math.floor(M/1e9)}B`:`${y}B`}if(M>=1e7){const y=(M/1e6).toFixed(1);return y.endsWith(".0")?`${Math.floor(M/1e6)}M`:`${y}M`}const P=i.decimalPoints&&typeof i.decimalPoints=="number"?i.decimalPoints:$f;return M.toLocaleString("en-US",{maximumFractionDigits:P})}),m=d.computed(()=>fg(h.value??0,u.value??0)||0),g=d.computed(()=>dg(m.value,!0,i.increaseIsBad)),p=d.computed(()=>mg(g.value)),x=d.computed(()=>hg(m.value,!0,t.t("singleValue.trend.not_available"))),S=d.computed(()=>({justifyContent:r[s.value]??"space-evenly"})),v=rg(d.computed(()=>i.showTrend),void 0,d.computed(()=>i.data.meta)),k=M=>M>0?"positive":M<0?"negative":"neutral",D=M=>M>0?MS:M<0?kS:yf;return d.onMounted(()=>{var M,P,E,y;!i.showTrend&&((P=(M=i.data)==null?void 0:M.data)==null?void 0:P.length)>1?console.warn("SingleValue chart should only be used with a single data point. Data length:",i.data.data.length):i.showTrend&&((y=(E=i.data)==null?void 0:E.data)==null?void 0:y.length)!==2&&console.warn("SingleValue with trend expects exactly 2 data points. Data length:",i.data.data.length)}),d.watch(d.toRef(i,"alignX"),M=>{M&&(s.value=M)}),(M,P)=>{const E=d.resolveComponent("KEmptyState");return d.openBlock(),d.createElementBlock("div",{class:"chart-parent","data-testid":"single-value-parent",style:d.normalizeStyle(S.value)},[h.value===null?(d.openBlock(),d.createBlock(E,{key:0,class:"single-value-error","data-testid":"single-value-error","icon-variant":"error",title:d.unref(t).t("singleValue.valueError")},null,8,["title"])):(d.openBlock(),d.createElementBlock("div",qC,[d.createElementVNode("span",XC,d.toDisplayString(f.value),1),c.value?(d.openBlock(),d.createElementBlock("span",GC,"  "+d.toDisplayString(l.value),1)):d.createCommentVNode("",!0),e.showTrend?(d.openBlock(),d.createElementBlock("div",KC,[d.createElementVNode("div",{class:d.normalizeClass(["trend-change",k(g.value)]),"data-testid":"single-value-trend"},[g.value!==0?(d.openBlock(),d.createBlock(d.resolveDynamicComponent(p.value),{key:0,color:D(g.value),size:d.unref(zr)},null,8,["color","size"])):(d.openBlock(),d.createBlock(d.unref(ne.EqualIcon),{key:1,color:`var(--kui-color-text-neutral-strong, ${d.unref(yf)})`,size:d.unref(zr)},null,8,["color","size"])),d.createElementVNode("div",null,d.toDisplayString(x.value),1)],2),d.unref(v)?(d.openBlock(),d.createElementBlock("div",ZC,d.toDisplayString(d.unref(v)),1)):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0)]))],4)}}}),[["__scopeId","data-v-4b062a7d"]]),JC={class:"simple-chart-shell"},tE={key:1,class:"analytics-chart-parent"},eE=Ee(d.defineComponent({__name:"SimpleChart",props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,required:!0},emptyStateTitle:{type:String,required:!1,default:""},syntheticsDataKey:{type:String,required:!1,default:""},height:{type:String,required:!1,default:"400px",validator:e=>/(\d *)(px|%)/.test(e)},width:{type:String,required:!1,default:"100%",validator:e=>/(\d *)(px|%)/.test(e)}},setup(e){const t=e,{i18n:n}=pt.useI18n(),i=d.computed(()=>{var u;const c=pt.useExploreResultToDatasets({colorPalette:t.chartOptions.chartDatasetColors||un},d.toRef(t,"chartData")).value;return(u=t.chartOptions)!=null&&u.reverseDataset&&(c==null||c.datasets.reverse()),c}),r=d.computed(()=>{var c;return(c=t.chartData.meta)!=null&&c.metric_units?Object.values(t.chartData.meta.metric_units)[0]:""}),s=d.computed(()=>t.chartOptions.type==="gauge"),a=d.computed(()=>t.chartOptions.type==="single_value"),o=d.computed(()=>t.emptyStateTitle||n.t("noDataAvailableTitle")),l=d.computed(()=>{var u,h;const c=t.chartData&&t.chartData.meta&&t.chartData.data.length;if(a.value){const f=(h=(u=t.chartData.meta)==null?void 0:u.metric_names)==null?void 0:h[0];return t.chartOptions.showTrend?c&&t.chartData.data.length>=2&&t.chartData.data[1].event[f]!==null:c&&t.chartData.data[0].event[f]!==null}return c});return(c,u)=>{const h=d.resolveComponent("KEmptyState");return d.openBlock(),d.createElementBlock("div",JC,[l.value?(d.openBlock(),d.createElementBlock("div",tE,[s.value?(d.openBlock(),d.createBlock(KD,{key:0,"chart-data":i.value,"dataset-colors":e.chartOptions.chartDatasetColors,"is-simple":"","metric-display":e.chartOptions.metricDisplay,"metric-unit":r.value,numerator:e.chartOptions.numerator,"synthetics-data-key":e.syntheticsDataKey,width:e.width},null,8,["chart-data","dataset-colors","metric-display","metric-unit","numerator","synthetics-data-key","width"])):d.createCommentVNode("",!0),a.value?(d.openBlock(),d.createBlock(QC,{key:1,"align-x":e.chartOptions.alignX,data:e.chartData,"decimal-points":e.chartOptions.decimalPoints,"increase-is-bad":e.chartOptions.increaseIsBad,"show-trend":e.chartOptions.showTrend},null,8,["align-x","data","decimal-points","increase-is-bad","show-trend"])):d.createCommentVNode("",!0)])):(d.openBlock(),d.createBlock(h,{key:0,"action-button-visible":!0,class:"chart-empty-state","data-testid":"no-data-in-report"},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.value),1)]),_:1}))])}}}),[["__scopeId","data-v-56837d34"]]),nE={class:"top-n-card-title","data-testid":"top-n-card-title"},iE={class:"top-n-card-description","data-testid":"top-n-card-description"},rE={key:3,class:"top-n-table","data-testid":"top-n-table"},sE={class:"table-headings"},aE={class:"table-row"},oE={class:"column-1"},lE={class:"column-2"},cE={class:"table-body","data-testid":"top-n-data"},uE=["data-testid"],dE={class:"column-1"},hE={class:"column-2"},fE=Ee(d.defineComponent({__name:"TopNTable",props:{title:{default:""},description:{default:""},data:{},emptyStateTitle:{default:""},isLoading:{type:Boolean,default:!1},titleTag:{default:"h2"}},setup(e){const t=e,{i18n:n}=pt.useI18n(),i=d.computed(()=>t.data.data),r=d.computed(()=>{var g;return!!((g=i.value)!=null&&g.length)}),s=d.computed(()=>{var g,p;return(g=t.data.meta)!=null&&g.display&&((p=Object.keys(t.data.meta.display))==null?void 0:p[0])||""}),a=d.computed(()=>s.value?t.data.meta.display[s.value]:{}),o=d.computed(()=>{var g,p;return(p=(g=t.data.meta)==null?void 0:g.metric_names)!=null&&p.length?t.data.meta.metric_names[0]:""}),l=d.computed(()=>o.value?n.t(`chartLabels.${o.value}`)||o.value:""),c=d.computed(()=>{if(!r.value)return"";if(t.data.meta){if(a.value&&!Object.keys(a.value).length)return n.t("topNTable.errors.display");if(!o.value)return n.t("topNTable.errors.metricNames")}else return n.t("topNTable.errors.meta");return""}),u=g=>{const p=g.event;return String(p[s.value])},h=g=>{const p=u(g),x=a.value&&a.value[p];return x?x.name:"-"},f=g=>{const p=u(g),x=a.value&&a.value[p];return x?!!x.deleted:!1},m=g=>{if(!o.value)return"–";const x=g.event[o.value];return x?Yr(x,{capital:!0,round:!0}):"–"};return(g,p)=>{const x=d.resolveComponent("KEmptyState"),S=d.resolveComponent("KSkeleton"),v=d.resolveComponent("KCard");return d.openBlock(),d.createBlock(v,{class:"kong-ui-public-top-n-table","title-tag":e.titleTag},d.createSlots({default:d.withCtx(()=>[c.value?(d.openBlock(),d.createBlock(x,{key:0,"action-button-visible":!1,"data-testid":"top-n-error-state","icon-variant":"error"},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(n).t("topNTable.defaultErrorStateTitle")),1)]),default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(c.value),1)]),_:1})):e.isLoading?(d.openBlock(),d.createBlock(S,{key:1,"table-columns":2,type:"table"})):r.value?(d.openBlock(),d.createElementBlock("div",rE,[d.createElementVNode("div",sE,[d.createElementVNode("div",aE,[d.createElementVNode("div",oE,d.toDisplayString(d.unref(n).t("topNTable.nameLabel")),1),d.createElementVNode("div",lE,d.toDisplayString(l.value),1)])]),d.createElementVNode("div",cE,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(i.value,(k,D)=>(d.openBlock(),d.createElementBlock("div",{key:`entry-${D}`,class:"table-row","data-testid":`row-${u(k)}`},[d.createElementVNode("div",dE,[d.renderSlot(g.$slots,"name",{record:{id:u(k),name:h(k),deleted:f(k),dimension:s.value}},()=>[d.createTextVNode(d.toDisplayString(h(k)),1)],!0)]),d.createElementVNode("div",hE,"   "+d.toDisplayString(m(k)),1)],8,uE))),128))])])):(d.openBlock(),d.createBlock(x,{key:2,"action-button-visible":!1,"data-testid":"top-n-empty-state"},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.emptyStateTitle||d.unref(n).t("topNTable.defaultEmptyStateTitle")),1)]),_:1}))]),_:2},[e.title?{name:"title",fn:d.withCtx(()=>[d.createElementVNode("span",nE,d.toDisplayString(e.title),1)]),key:"0"}:void 0,e.description?{name:"actions",fn:d.withCtx(()=>[d.createElementVNode("div",iE,d.toDisplayString(e.description),1)]),key:"1"}:void 0]),1032,["title-tag"])}}}),[["__scopeId","data-v-665e7735"]]);var Sa={exports:{}};Sa.exports,function(e,t){var n=200,i="Expected a function",r="__lodash_hash_undefined__",s=1,a=2,o=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object Boolean]",h="[object Date]",f="[object Error]",m="[object Function]",g="[object GeneratorFunction]",p="[object Map]",x="[object Number]",S="[object Object]",v="[object Promise]",k="[object RegExp]",D="[object Set]",M="[object String]",P="[object Symbol]",E="[object WeakMap]",y="[object ArrayBuffer]",_="[object DataView]",T="[object Float32Array]",O="[object Float64Array]",A="[object Int8Array]",I="[object Int16Array]",B="[object Int32Array]",q="[object Uint8Array]",G="[object Uint8ClampedArray]",V="[object Uint16Array]",lt="[object Uint32Array]",X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,H=/^\./,U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,xt=/\\(\\)?/g,yt=/^\[object .+?Constructor\]$/,vt=/^(?:0|[1-9]\d*)$/,mt={};mt[T]=mt[O]=mt[A]=mt[I]=mt[B]=mt[q]=mt[G]=mt[V]=mt[lt]=!0,mt[l]=mt[c]=mt[y]=mt[u]=mt[_]=mt[h]=mt[f]=mt[m]=mt[p]=mt[x]=mt[S]=mt[k]=mt[D]=mt[M]=mt[E]=!1;var gt=typeof ve=="object"&&ve&&ve.Object===Object&&ve,z=typeof self=="object"&&self&&self.Object===Object&&self,j=gt||z||Function("return this")(),$=t&&!t.nodeType&&t,J=$&&!0&&e&&!e.nodeType&&e,et=J&&J.exports===$,nt=et&&gt.process,rt=function(){try{return nt&&nt.binding("util")}catch{}}(),it=rt&&rt.isTypedArray;function _t(b,C){for(var N=-1,W=b?b.length:0;++N<W;)if(C(b[N],N,b))return!0;return!1}function ct(b){return function(C){return C==null?void 0:C[b]}}function Et(b,C){for(var N=-1,W=Array(b);++N<b;)W[N]=C(N);return W}function te(b){return function(C){return b(C)}}function ce(b,C){return b==null?void 0:b[C]}function qt(b){var C=!1;if(b!=null&&typeof b.toString!="function")try{C=!!(b+"")}catch{}return C}function Ie(b){var C=-1,N=Array(b.size);return b.forEach(function(W,ht){N[++C]=[ht,W]}),N}function St(b,C){return function(N){return b(C(N))}}function Xt(b){var C=-1,N=Array(b.size);return b.forEach(function(W){N[++C]=W}),N}var zt=Array.prototype,Gt=Function.prototype,re=Object.prototype,Ke=j["__core-js_shared__"],ci=function(){var b=/[^.]+$/.exec(Ke&&Ke.keys&&Ke.keys.IE_PROTO||"");return b?"Symbol(src)_1."+b:""}(),ze=Gt.toString,Ht=re.hasOwnProperty,Se=re.toString,ui=RegExp("^"+ze.call(Ht).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ka=j.Symbol,Ma=j.Uint8Array,Qr=re.propertyIsEnumerable,di=zt.splice,Jr=St(Object.keys,Object),hi=bn(j,"DataView"),mn=bn(j,"Map"),gn=bn(j,"Promise"),ts=bn(j,"Set"),es=bn(j,"WeakMap"),fi=bn(Object,"create"),ic=xn(hi),rc=xn(mn),Ta=xn(gn),Da=xn(ts),pn=xn(es),Wi=ka?ka.prototype:void 0,ns=Wi?Wi.valueOf:void 0,Ca=Wi?Wi.toString:void 0;function yn(b){var C=-1,N=b?b.length:0;for(this.clear();++C<N;){var W=b[C];this.set(W[0],W[1])}}function sc(){this.__data__=fi?fi(null):{}}function He(b){return this.has(b)&&delete this.__data__[b]}function ac(b){var C=this.__data__;if(fi){var N=C[b];return N===r?void 0:N}return Ht.call(C,b)?C[b]:void 0}function oc(b){var C=this.__data__;return fi?C[b]!==void 0:Ht.call(C,b)}function lc(b,C){var N=this.__data__;return N[b]=fi&&C===void 0?r:C,this}yn.prototype.clear=sc,yn.prototype.delete=He,yn.prototype.get=ac,yn.prototype.has=oc,yn.prototype.set=lc;function Ve(b){var C=-1,N=b?b.length:0;for(this.clear();++C<N;){var W=b[C];this.set(W[0],W[1])}}function cc(){this.__data__=[]}function Hn(b){var C=this.__data__,N=ji(C,b);if(N<0)return!1;var W=C.length-1;return N==W?C.pop():di.call(C,N,1),!0}function uc(b){var C=this.__data__,N=ji(C,b);return N<0?void 0:C[N][1]}function dc(b){return ji(this.__data__,b)>-1}function hc(b,C){var N=this.__data__,W=ji(N,b);return W<0?N.push([b,C]):N[W][1]=C,this}Ve.prototype.clear=cc,Ve.prototype.delete=Hn,Ve.prototype.get=uc,Ve.prototype.has=dc,Ve.prototype.set=hc;function We(b){var C=-1,N=b?b.length:0;for(this.clear();++C<N;){var W=b[C];this.set(W[0],W[1])}}function fc(){this.__data__={hash:new yn,map:new(mn||Ve),string:new yn}}function Vn(b){return Xi(this,b).delete(b)}function mc(b){return Xi(this,b).get(b)}function gc(b){return Xi(this,b).has(b)}function pc(b,C){return Xi(this,b).set(b,C),this}We.prototype.clear=fc,We.prototype.delete=Vn,We.prototype.get=mc,We.prototype.has=gc,We.prototype.set=pc;function Yi(b){var C=-1,N=b?b.length:0;for(this.__data__=new We;++C<N;)this.add(b[C])}function yc(b){return this.__data__.set(b,r),this}function bc(b){return this.__data__.has(b)}Yi.prototype.add=Yi.prototype.push=yc,Yi.prototype.has=bc;function Le(b){this.__data__=new Ve(b)}function $i(){this.__data__=new Ve}function _c(b){return this.__data__.delete(b)}function is(b){return this.__data__.get(b)}function xc(b){return this.__data__.has(b)}function wc(b,C){var N=this.__data__;if(N instanceof Ve){var W=N.__data__;if(!mn||W.length<n-1)return W.push([b,C]),this;N=this.__data__=new We(W)}return N.set(b,C),this}Le.prototype.clear=$i,Le.prototype.delete=_c,Le.prototype.get=is,Le.prototype.has=xc,Le.prototype.set=wc;function vc(b,C){var N=w(b)||La(b)?Et(b.length,String):[],W=N.length,ht=!!W;for(var Z in b)Ht.call(b,Z)&&!(ht&&(Z=="length"||ss(Z,W)))&&N.push(Z);return N}function ji(b,C){for(var N=b.length;N--;)if(Ia(b[N][0],C))return N;return-1}var Sc=Ac();function kc(b,C){return b&&Sc(b,C,gi)}function Ui(b,C){C=Gi(C,b)?[C]:Ze(C);for(var N=0,W=C.length;b!=null&&N<W;)b=b[_n(C[N++])];return N&&N==W?b:void 0}function Mc(b){return Se.call(b)}function Tc(b,C){return b!=null&&C in Object(b)}function rs(b,C,N,W,ht){return b===C?!0:b==null||C==null||!Kt(b)&&!ke(C)?b!==b&&C!==C:Dc(b,C,rs,N,W,ht)}function Dc(b,C,N,W,ht,Z){var bt=w(b),Zt=w(C),Vt=c,de=c;bt||(Vt=ue(b),Vt=Vt==l?S:Vt),Zt||(de=ue(C),de=de==l?S:de);var Me=Vt==S&&!qt(b),Te=de==S&&!qt(C),pe=Vt==de;if(pe&&!Me)return Z||(Z=new Le),bt||Na(b)?Pa(b,C,N,W,ht,Z):Ic(b,C,Vt,N,W,ht,Z);if(!(ht&a)){var Ne=Me&&Ht.call(b,"__wrapped__"),Fe=Te&&Ht.call(C,"__wrapped__");if(Ne||Fe){var $n=Ne?b.value():b,wn=Fe?C.value():C;return Z||(Z=new Le),N($n,wn,W,ht,Z)}}return pe?(Z||(Z=new Le),Lc(b,C,N,W,ht,Z)):!1}function Cc(b,C,N,W){var ht=N.length,Z=ht;if(b==null)return!Z;for(b=Object(b);ht--;){var bt=N[ht];if(bt[2]?bt[1]!==b[bt[0]]:!(bt[0]in b))return!1}for(;++ht<Z;){bt=N[ht];var Zt=bt[0],Vt=b[Zt],de=bt[1];if(bt[2]){if(Vt===void 0&&!(Zt in b))return!1}else{var Me=new Le,Te;if(!(Te===void 0?rs(de,Vt,W,s|a,Me):Te))return!1}}return!0}function Ec(b){if(!Kt(b)||Ra(b))return!1;var C=K(b)||qt(b)?ui:yt;return C.test(xn(b))}function Oc(b){return ke(b)&&$t(b.length)&&!!mt[Se.call(b)]}function Ea(b){return typeof b=="function"?b:b==null?Ki:typeof b=="object"?w(b)?qi(b[0],b[1]):Rc(b):sO(b)}function Pc(b){if(!Bc(b))return Jr(b);var C=[];for(var N in Object(b))Ht.call(b,N)&&N!="constructor"&&C.push(N);return C}function Rc(b){var C=Nc(b);return C.length==1&&C[0][2]?os(C[0][0],C[0][1]):function(N){return N===b||Cc(N,b,C)}}function qi(b,C){return Gi(b)&&Aa(C)?os(_n(b),C):function(N){var W=Fa(N,b);return W===void 0&&W===C?Ba(N,b):rs(C,W,void 0,s|a)}}function Wn(b){return function(C){return Ui(C,b)}}function Oa(b){if(typeof b=="string")return b;if(ee(b))return Ca?Ca.call(b):"";var C=b+"";return C=="0"&&1/b==-1/0?"-0":C}function Ze(b){return w(b)?b:zc(b)}function Ac(b){return function(C,N,W){for(var ht=-1,Z=Object(C),bt=W(C),Zt=bt.length;Zt--;){var Vt=bt[++ht];if(N(Z[Vt],Vt,Z)===!1)break}return C}}function Pa(b,C,N,W,ht,Z){var bt=ht&a,Zt=b.length,Vt=C.length;if(Zt!=Vt&&!(bt&&Vt>Zt))return!1;var de=Z.get(b);if(de&&Z.get(C))return de==C;var Me=-1,Te=!0,pe=ht&s?new Yi:void 0;for(Z.set(b,C),Z.set(C,b);++Me<Zt;){var Ne=b[Me],Fe=C[Me];if(W)var $n=bt?W(Fe,Ne,Me,C,b,Z):W(Ne,Fe,Me,b,C,Z);if($n!==void 0){if($n)continue;Te=!1;break}if(pe){if(!_t(C,function(wn,pi){if(!pe.has(pi)&&(Ne===wn||N(Ne,wn,W,ht,Z)))return pe.add(pi)})){Te=!1;break}}else if(!(Ne===Fe||N(Ne,Fe,W,ht,Z))){Te=!1;break}}return Z.delete(b),Z.delete(C),Te}function Ic(b,C,N,W,ht,Z,bt){switch(N){case _:if(b.byteLength!=C.byteLength||b.byteOffset!=C.byteOffset)return!1;b=b.buffer,C=C.buffer;case y:return!(b.byteLength!=C.byteLength||!W(new Ma(b),new Ma(C)));case u:case h:case x:return Ia(+b,+C);case f:return b.name==C.name&&b.message==C.message;case k:case M:return b==C+"";case p:var Zt=Ie;case D:var Vt=Z&a;if(Zt||(Zt=Xt),b.size!=C.size&&!Vt)return!1;var de=bt.get(b);if(de)return de==C;Z|=s,bt.set(b,C);var Me=Pa(Zt(b),Zt(C),W,ht,Z,bt);return bt.delete(b),Me;case P:if(ns)return ns.call(b)==ns.call(C)}return!1}function Lc(b,C,N,W,ht,Z){var bt=ht&a,Zt=gi(b),Vt=Zt.length,de=gi(C),Me=de.length;if(Vt!=Me&&!bt)return!1;for(var Te=Vt;Te--;){var pe=Zt[Te];if(!(bt?pe in C:Ht.call(C,pe)))return!1}var Ne=Z.get(b);if(Ne&&Z.get(C))return Ne==C;var Fe=!0;Z.set(b,C),Z.set(C,b);for(var $n=bt;++Te<Vt;){pe=Zt[Te];var wn=b[pe],pi=C[pe];if(W)var Sg=bt?W(pi,wn,pe,C,b,Z):W(wn,pi,pe,b,C,Z);if(!(Sg===void 0?wn===pi||N(wn,pi,W,ht,Z):Sg)){Fe=!1;break}$n||($n=pe=="constructor")}if(Fe&&!$n){var za=b.constructor,Ha=C.constructor;za!=Ha&&"constructor"in b&&"constructor"in C&&!(typeof za=="function"&&za instanceof za&&typeof Ha=="function"&&Ha instanceof Ha)&&(Fe=!1)}return Z.delete(b),Z.delete(C),Fe}function Xi(b,C){var N=b.__data__;return as(C)?N[typeof C=="string"?"string":"hash"]:N.map}function Nc(b){for(var C=gi(b),N=C.length;N--;){var W=C[N],ht=b[W];C[N]=[W,ht,Aa(ht)]}return C}function bn(b,C){var N=ce(b,C);return Ec(N)?N:void 0}var ue=Mc;(hi&&ue(new hi(new ArrayBuffer(1)))!=_||mn&&ue(new mn)!=p||gn&&ue(gn.resolve())!=v||ts&&ue(new ts)!=D||es&&ue(new es)!=E)&&(ue=function(b){var C=Se.call(b),N=C==S?b.constructor:void 0,W=N?xn(N):void 0;if(W)switch(W){case ic:return _;case rc:return p;case Ta:return v;case Da:return D;case pn:return E}return C});function Fc(b,C,N){C=Gi(C,b)?[C]:Ze(C);for(var W,ht=-1,bt=C.length;++ht<bt;){var Z=_n(C[ht]);if(!(W=b!=null&&N(b,Z)))break;b=b[Z]}if(W)return W;var bt=b?b.length:0;return!!bt&&$t(bt)&&ss(Z,bt)&&(w(b)||La(b))}function ss(b,C){return C=C??o,!!C&&(typeof b=="number"||vt.test(b))&&b>-1&&b%1==0&&b<C}function Gi(b,C){if(w(b))return!1;var N=typeof b;return N=="number"||N=="symbol"||N=="boolean"||b==null||ee(b)?!0:Q.test(b)||!X.test(b)||C!=null&&b in Object(C)}function as(b){var C=typeof b;return C=="string"||C=="number"||C=="symbol"||C=="boolean"?b!=="__proto__":b===null}function Ra(b){return!!ci&&ci in b}function Bc(b){var C=b&&b.constructor,N=typeof C=="function"&&C.prototype||re;return b===N}function Aa(b){return b===b&&!Kt(b)}function os(b,C){return function(N){return N==null?!1:N[b]===C&&(C!==void 0||b in Object(N))}}var zc=mi(function(b){b=Yn(b);var C=[];return H.test(b)&&C.push(""),b.replace(U,function(N,W,ht,Z){C.push(ht?Z.replace(xt,"$1"):W||N)}),C});function _n(b){if(typeof b=="string"||ee(b))return b;var C=b+"";return C=="0"&&1/b==-1/0?"-0":C}function xn(b){if(b!=null){try{return ze.call(b)}catch{}try{return b+""}catch{}}return""}function mi(b,C){if(typeof b!="function"||C&&typeof C!="function")throw new TypeError(i);var N=function(){var W=arguments,ht=C?C.apply(this,W):W[0],Z=N.cache;if(Z.has(ht))return Z.get(ht);var bt=b.apply(this,W);return N.cache=Z.set(ht,bt),bt};return N.cache=new(mi.Cache||We),N}mi.Cache=We;function Ia(b,C){return b===C||b!==b&&C!==C}function La(b){return F(b)&&Ht.call(b,"callee")&&(!Qr.call(b,"callee")||Se.call(b)==l)}var w=Array.isArray;function L(b){return b!=null&&$t(b.length)&&!K(b)}function F(b){return ke(b)&&L(b)}function K(b){var C=Kt(b)?Se.call(b):"";return C==m||C==g}function $t(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=o}function Kt(b){var C=typeof b;return!!b&&(C=="object"||C=="function")}function ke(b){return!!b&&typeof b=="object"}function ee(b){return typeof b=="symbol"||ke(b)&&Se.call(b)==P}var Na=it?te(it):Oc;function Yn(b){return b==null?"":Oa(b)}function Fa(b,C,N){var W=b==null?void 0:Ui(b,C);return W===void 0?N:W}function Ba(b,C){return b!=null&&Fc(b,C,Tc)}function gi(b){return L(b)?vc(b):Pc(b)}function ls(b,C){var N={};return C=Ea(C),kc(b,function(W,ht,Z){N[C(W,ht,Z)]=W}),N}function Ki(b){return b}function sO(b){return Gi(b)?ct(_n(b)):Wn(b)}e.exports=ls}(Sa,Sa.exports);var mE=Sa.exports;const gE=Ml(mE);var pE=9007199254740991,yE="[object Arguments]",bE="[object Function]",_E="[object GeneratorFunction]",xE="[object Symbol]",wE=typeof ve=="object"&&ve&&ve.Object===Object&&ve,vE=typeof self=="object"&&self&&self.Object===Object&&self,SE=wE||vE||Function("return this")();function kE(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ME(e,t){for(var n=-1,i=e?e.length:0,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function TE(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}var ec=Object.prototype,DE=ec.hasOwnProperty,nc=ec.toString,pg=SE.Symbol,CE=ec.propertyIsEnumerable,yg=pg?pg.isConcatSpreadable:void 0,bg=Math.max;function EE(e,t,n,i,r){var s=-1,a=e.length;for(n||(n=AE),r||(r=[]);++s<a;){var o=e[s];n(o)?TE(r,o):r[r.length]=o}return r}function OE(e,t){return e=Object(e),PE(e,t,function(n,i){return i in e})}function PE(e,t,n){for(var i=-1,r=t.length,s={};++i<r;){var a=t[i],o=e[a];n(o,a)&&(s[a]=o)}return s}function RE(e,t){return t=bg(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,r=bg(n.length-t,0),s=Array(r);++i<r;)s[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=s,kE(e,this,a)}}function AE(e){return NE(e)||LE(e)||!!(yg&&e&&e[yg])}function IE(e){if(typeof e=="string"||WE(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function LE(e){return BE(e)&&DE.call(e,"callee")&&(!CE.call(e,"callee")||nc.call(e)==yE)}var NE=Array.isArray;function FE(e){return e!=null&&HE(e.length)&&!zE(e)}function BE(e){return _g(e)&&FE(e)}function zE(e){var t=VE(e)?nc.call(e):"";return t==bE||t==_E}function HE(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=pE}function VE(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function _g(e){return!!e&&typeof e=="object"}function WE(e){return typeof e=="symbol"||_g(e)&&nc.call(e)==xE}var YE=RE(function(e,t){return e==null?{}:OE(e,ME(EE(t),IE))}),$E=YE;const jE=Ml($E);var xg={exports:{}};(function(e,t){(function(n,i){i()})(ve,function(){function n(c,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function i(c,u,h){var f=new XMLHttpRequest;f.open("GET",c),f.responseType="blob",f.onload=function(){l(f.response,u,h)},f.onerror=function(){console.error("could not download file")},f.send()}function r(c){var u=new XMLHttpRequest;u.open("HEAD",c,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function s(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(u)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ve=="object"&&ve.global===ve?ve:void 0,o=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(c,u,h){var f=a.URL||a.webkitURL,m=document.createElement("a");u=u||c.name||"download",m.download=u,m.rel="noopener",typeof c=="string"?(m.href=c,m.origin===location.origin?s(m):r(m.href)?i(c,u,h):s(m,m.target="_blank")):(m.href=f.createObjectURL(c),setTimeout(function(){f.revokeObjectURL(m.href)},4e4),setTimeout(function(){s(m)},0))}:"msSaveOrOpenBlob"in navigator?function(c,u,h){if(u=u||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,h),u);else if(r(c))i(c,u,h);else{var f=document.createElement("a");f.href=c,f.target="_blank",setTimeout(function(){s(f)})}}:function(c,u,h,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof c=="string")return i(c,u,h);var m=c.type==="application/octet-stream",g=/constructor/i.test(a.HTMLElement)||a.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||m&&g||o)&&typeof FileReader<"u"){var x=new FileReader;x.onloadend=function(){var k=x.result;k=p?k:k.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=k:location=k,f=null},x.readAsDataURL(c)}else{var S=a.URL||a.webkitURL,v=S.createObjectURL(c);f?f.location=v:location.href=v,f=null,setTimeout(function(){S.revokeObjectURL(v)},4e4)}});a.saveAs=l.saveAs=l,e.exports=l})})(xg);var UE=xg.exports,wg={exports:{}};/* @license
33
33
  Papa Parse
34
34
  v5.5.3
35
35
  https://github.com/mholt/PapaParse
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/analytics-chart",
3
- "version": "10.8.1-pr.2637.b25f7e003.0",
3
+ "version": "10.8.1-pr.2637.f703f4556.0",
4
4
  "type": "module",
5
5
  "main": "./dist/vitals-chart.umd.js",
6
6
  "module": "./dist/vitals-chart.es.js",
@@ -64,7 +64,7 @@
64
64
  "date-fns-tz": "^3.2.0",
65
65
  "uuid": "^11.1.0",
66
66
  "vue-chartjs": "^5.3.2",
67
- "@kong-ui-public/analytics-metric-provider": "^11.0.2-pr.2637.b25f7e003.0",
67
+ "@kong-ui-public/analytics-metric-provider": "^11.0.3-pr.2637.f703f4556.0",
68
68
  "@kong-ui-public/analytics-utilities": "^12.1.3"
69
69
  },
70
70
  "distSizeChecker": {