From e783d9f8815180e8b28fbfc6a3cff8c23a2d3a43 Mon Sep 17 00:00:00 2001 From: Ben Simpson Date: Mon, 5 Feb 2024 10:50:00 +0000 Subject: [PATCH 1/8] [fix] Fix persistence of chart scale selection - Add global time range context - Update chart hook to handle scale selection --- .../ui/src/components/Chart/Chart.hooks.ts | 48 +++++++++++++++---- .../ui/src/components/Chart/Chart.tsx | 1 - .../ui/src/components/Chart/Chart.utils.ts | 29 +++++++---- dashboard/assets/packages/ui/src/main.tsx | 5 +- .../packages/ui/src/store/timeRange.tsx | 44 +++++++++++++++++ 5 files changed, 108 insertions(+), 19 deletions(-) create mode 100644 dashboard/assets/packages/ui/src/store/timeRange.tsx diff --git a/dashboard/assets/packages/ui/src/components/Chart/Chart.hooks.ts b/dashboard/assets/packages/ui/src/components/Chart/Chart.hooks.ts index 3697257..3eb17cc 100644 --- a/dashboard/assets/packages/ui/src/components/Chart/Chart.hooks.ts +++ b/dashboard/assets/packages/ui/src/components/Chart/Chart.hooks.ts @@ -5,20 +5,50 @@ import { useState } from "react" import uPlot, { type Options, type Series } from "uplot" -import { mergeRightProps } from "utils" +import { useTimeRange } from "store/timeRange" +import { createOptions, isDblClickEvent, isZoomEvent, mergeSeries, CreateOptionsProps } from "./Chart.utils" -import { createOptions, CreateOptionsProps } from "./Chart.utils" +const useSeries = (series: Series[]) => { + const [value, setValue] = useState(series) + const newSeries = mergeSeries(series, value) -const mergeRightShowProp = mergeRightProps(["show"]) + const onChange = (uplot: uPlot) => { + setValue(uplot.series) + } -const mergeSeries = (plotSeries: Series[] = [], stateSeries: Series[] = []) => { - return plotSeries.map((series, i) => mergeRightShowProp(series, stateSeries[i])) + return [newSeries, onChange] as const } export const useOptions = ({ plot, theme, width }: CreateOptionsProps): Options => { - const [series, setSeries] = useState(plot.series) - const newPlot = { ...plot, series: mergeSeries(plot.series, series) } - const hooks = { setSeries: [(self: uPlot) => setSeries(self.series)] } + const { timeRange, setTimeRange } = useTimeRange() + const [series, setSeries] = useSeries(plot.series) + const newPlot = { ...plot, series } + const scales = { timestamp: { min: timeRange?.from, max: timeRange?.to } } - return createOptions({ hooks, plot: newPlot, theme, width }) + const handleSelectEvent = (uplot: uPlot) => { + if (!isZoomEvent(uplot.cursor.event)) { + return + } + + const minX = uplot.posToVal(uplot.select.left, "timestamp") + const maxX = uplot.posToVal(uplot.select.left + uplot.select.width, "timestamp") + setTimeRange({ from: minX, to: maxX }) + } + + const handleCursorEvent = (uplot: uPlot) => { + if (isDblClickEvent(uplot.cursor.event)) { + setTimeRange(undefined) + } + } + + const hooks = { + setCursor: [handleCursorEvent], + // setData: [(x) => console.log("setData", x)], + // setScale: [(x) => console.log("setScale", x)], + setSelect: [handleSelectEvent], + setSeries: [setSeries] + // setSize: [(x) => console.log("setSize", x)] + } + + return createOptions({ hooks, plot: newPlot, scales, theme, width }) } diff --git a/dashboard/assets/packages/ui/src/components/Chart/Chart.tsx b/dashboard/assets/packages/ui/src/components/Chart/Chart.tsx index fe30346..329ebbf 100644 --- a/dashboard/assets/packages/ui/src/components/Chart/Chart.tsx +++ b/dashboard/assets/packages/ui/src/components/Chart/Chart.tsx @@ -47,7 +47,6 @@ export default function Chart({ panel, container }: ChartProps) { } } - return ( diff --git a/dashboard/assets/packages/ui/src/components/Chart/Chart.utils.ts b/dashboard/assets/packages/ui/src/components/Chart/Chart.utils.ts index 2fea975..2e3512c 100644 --- a/dashboard/assets/packages/ui/src/components/Chart/Chart.utils.ts +++ b/dashboard/assets/packages/ui/src/components/Chart/Chart.utils.ts @@ -2,10 +2,11 @@ // // SPDX-License-Identifier: AGPL-3.0-only -import uPlot, { type Axis, type Hooks, type Options, type Series } from "uplot" +import uPlot, { type Axis, type Options, type Series } from "uplot" import { type UnitType } from "@xk6-dashboard/model" import { format, tooltipPlugin, SeriesPlot } from "@xk6-dashboard/view" +import { mergeRightProps } from "utils" import { type Theme } from "store/theme" import { common, grey, midnight } from "theme/colors.css" @@ -63,27 +64,39 @@ const createAxis = (colors: ReturnType, length: number) } } -export interface CreateOptionsProps { - hooks: Hooks.Arrays +interface SelectedUplotOptions extends Pick { + height?: number +} + +export interface CreateOptionsProps extends SelectedUplotOptions { plot: Omit & { series: Series[] } theme: Theme - width: number } -export const createOptions = ({ hooks, plot, theme, width }: CreateOptionsProps): Options => { +export const createOptions = ({ height = CHART_HEIGHT, hooks, plot, scales, theme, width }: CreateOptionsProps): Options => { const colors = createChartTheme(theme) const units = plot.samples.units const axes = units.map(createAxis(colors, units.length)) return { class: styles.uplot, - width: width, - height: CHART_HEIGHT, + width, + height, hooks, cursor: { sync: { key: sync.key } }, legend: { live: false }, + scales, series: plot.series as Series[], - axes: axes, + axes, plugins: [tooltipPlugin(colors.tooltip)] } } + +export const mergeRightShowProp = mergeRightProps(["show"]) + +export const mergeSeries = (plotSeries: Series[] = [], stateSeries: Series[] = []) => { + return plotSeries.map((series, i) => mergeRightShowProp(series, stateSeries[i])) +} + +export const isDblClickEvent = (e?: MouseEvent | null) => e?.type === "dblclick" +export const isZoomEvent = (e?: MouseEvent | null) => e != null && !e.ctrlKey && !e.metaKey diff --git a/dashboard/assets/packages/ui/src/main.tsx b/dashboard/assets/packages/ui/src/main.tsx index c10855f..8331a2c 100644 --- a/dashboard/assets/packages/ui/src/main.tsx +++ b/dashboard/assets/packages/ui/src/main.tsx @@ -7,6 +7,7 @@ import ReactDOM from "react-dom/client" import { DigestProvider } from "store/digest" import { ThemeProvider } from "store/theme" +import { TimeRangeProvider } from "store/timeRange" import App from "App" @@ -16,7 +17,9 @@ const rootElement = document.getElementById("root") as HTMLDivElement ReactDOM.createRoot(rootElement).render( - + + + ) diff --git a/dashboard/assets/packages/ui/src/store/timeRange.tsx b/dashboard/assets/packages/ui/src/store/timeRange.tsx new file mode 100644 index 0000000..c3dd7fb --- /dev/null +++ b/dashboard/assets/packages/ui/src/store/timeRange.tsx @@ -0,0 +1,44 @@ +// SPDX-FileCopyrightText: 2023 Raintank, Inc. dba Grafana Labs +// +// SPDX-License-Identifier: AGPL-3.0-only + +import React, { createContext, useContext, useState, type Dispatch, type ReactNode, type SetStateAction } from "react" + +interface TimeRange { + from?: number + to?: number +} + +interface TimeRangeContextProps { + timeRange: TimeRange | undefined + setTimeRange: Dispatch> +} + +const TimeRangeContext = createContext(undefined) + +interface TimeRangeProviderProps { + children: ReactNode +} + +function TimeRangeProvider({ children }: TimeRangeProviderProps) { + const [timeRange, setTimeRange] = useState() + + const context = { + timeRange, + setTimeRange + } + + return {children} +} + +function useTimeRange() { + const context = useContext(TimeRangeContext) + + if (context === undefined) { + throw new Error("useTimeRange must be used within a TimeRangeProvider") + } + + return context as TimeRangeContextProps +} + +export { TimeRangeProvider, useTimeRange } From f1ef5d07331771452b0d834b52e9d5e62ca0e5b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20SZKIBA?= Date: Mon, 5 Feb 2024 14:43:25 +0100 Subject: [PATCH 2/8] generate assets --- .../{index-4796c824.js => index-d358b692.js} | 24 +++++++++---------- dashboard/assets/packages/ui/dist/index.html | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) rename dashboard/assets/packages/ui/dist/assets/{index-4796c824.js => index-d358b692.js} (69%) diff --git a/dashboard/assets/packages/ui/dist/assets/index-4796c824.js b/dashboard/assets/packages/ui/dist/assets/index-d358b692.js similarity index 69% rename from dashboard/assets/packages/ui/dist/assets/index-4796c824.js rename to dashboard/assets/packages/ui/dist/assets/index-d358b692.js index c0baf5d..afa9a26 100644 --- a/dashboard/assets/packages/ui/dist/assets/index-4796c824.js +++ b/dashboard/assets/packages/ui/dist/assets/index-d358b692.js @@ -1,4 +1,4 @@ -var Qv=Object.defineProperty;var Zv=(e,t,n)=>t in e?Qv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ve=(e,t,n)=>(Zv(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();var Jv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var oh={exports:{}},ha={},sh={exports:{}},we={};/** +var Zv=Object.defineProperty;var Jv=(e,t,n)=>t in e?Zv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ve=(e,t,n)=>(Jv(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();var Xv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function eg(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var oh={exports:{}},ha={},sh={exports:{}},we={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var Qv=Object.defineProperty;var Zv=(e,t,n)=>t in e?Qv(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Mo=Symbol.for("react.element"),eg=Symbol.for("react.portal"),tg=Symbol.for("react.fragment"),ng=Symbol.for("react.strict_mode"),rg=Symbol.for("react.profiler"),lg=Symbol.for("react.provider"),ig=Symbol.for("react.context"),og=Symbol.for("react.forward_ref"),sg=Symbol.for("react.suspense"),ag=Symbol.for("react.memo"),ug=Symbol.for("react.lazy"),$d=Symbol.iterator;function cg(e){return e===null||typeof e!="object"?null:(e=$d&&e[$d]||e["@@iterator"],typeof e=="function"?e:null)}var ah={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},uh=Object.assign,ch={};function ci(e,t,n){this.props=e,this.context=t,this.refs=ch,this.updater=n||ah}ci.prototype.isReactComponent={};ci.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ci.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function fh(){}fh.prototype=ci.prototype;function Yc(e,t,n){this.props=e,this.context=t,this.refs=ch,this.updater=n||ah}var Qc=Yc.prototype=new fh;Qc.constructor=Yc;uh(Qc,ci.prototype);Qc.isPureReactComponent=!0;var Hd=Array.isArray,dh=Object.prototype.hasOwnProperty,Zc={current:null},ph={key:!0,ref:!0,__self:!0,__source:!0};function hh(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)dh.call(t,r)&&!ph.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1t in e?Qv(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var mg=U,vg=Symbol.for("react.element"),gg=Symbol.for("react.fragment"),yg=Object.prototype.hasOwnProperty,wg=mg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_g={key:!0,ref:!0,__self:!0,__source:!0};function mh(e,t,n){var r,l={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)yg.call(t,r)&&!_g.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:vg,type:e,key:i,ref:o,props:l,_owner:wg.current}}ha.Fragment=gg;ha.jsx=mh;ha.jsxs=mh;oh.exports=ha;var D=oh.exports,Vu={},vh={exports:{}},un={},gh={exports:{}},yh={};/** + */var vg=H,gg=Symbol.for("react.element"),yg=Symbol.for("react.fragment"),wg=Object.prototype.hasOwnProperty,_g=vg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xg={key:!0,ref:!0,__self:!0,__source:!0};function mh(e,t,n){var r,l={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)wg.call(t,r)&&!xg.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:gg,type:e,key:i,ref:o,props:l,_owner:_g.current}}ha.Fragment=yg;ha.jsx=mh;ha.jsxs=mh;oh.exports=ha;var b=oh.exports,Vu={},vh={exports:{}},un={},gh={exports:{}},yh={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var Qv=Object.defineProperty;var Zv=(e,t,n)=>t in e?Qv(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(q,J){var G=q.length;q.push(J);e:for(;0>>1,Y=q[re];if(0>>1;rel(pe,G))Lel(Ue,pe)?(q[re]=Ue,q[Le]=G,re=Le):(q[re]=pe,q[X]=G,re=X);else if(Lel(Ue,G))q[re]=Ue,q[Le]=G,re=Le;else break e}}return J}function l(q,J){var G=q.sortIndex-J.sortIndex;return G!==0?G:q.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],a=[],c=1,p=null,d=3,g=!1,_=!1,x=!1,P=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(q){for(var J=n(a);J!==null;){if(J.callback===null)r(a);else if(J.startTime<=q)r(a),J.sortIndex=J.expirationTime,t(u,J);else break;J=n(a)}}function T(q){if(x=!1,w(q),!_)if(n(u)!==null)_=!0,fe(O);else{var J=n(a);J!==null&&ne(T,J.startTime-q)}}function O(q,J){_=!1,x&&(x=!1,y(L),L=-1),g=!0;var G=d;try{for(w(J),p=n(u);p!==null&&(!(p.expirationTime>J)||q&&!z());){var re=p.callback;if(typeof re=="function"){p.callback=null,d=p.priorityLevel;var Y=re(p.expirationTime<=J);J=e.unstable_now(),typeof Y=="function"?p.callback=Y:p===n(u)&&r(u),w(J)}else r(u);p=n(u)}if(p!==null)var me=!0;else{var X=n(a);X!==null&&ne(T,X.startTime-J),me=!1}return me}finally{p=null,d=G,g=!1}}var R=!1,M=null,L=-1,I=5,b=-1;function z(){return!(e.unstable_now()-bq||125re?(q.sortIndex=G,t(a,q),n(u)===null&&q===n(a)&&(x?(y(L),L=-1):x=!0,ne(T,G-re))):(q.sortIndex=Y,t(u,q),_||g||(_=!0,fe(O))),q},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(q){var J=d;return function(){var G=d;d=J;try{return q.apply(this,arguments)}finally{d=G}}}})(yh);gh.exports=yh;var xg=gh.exports;/** + */(function(e){function t(q,J){var G=q.length;q.push(J);e:for(;0>>1,Y=q[re];if(0>>1;rel(pe,G))Lel(Ue,pe)?(q[re]=Ue,q[Le]=G,re=Le):(q[re]=pe,q[X]=G,re=X);else if(Lel(Ue,G))q[re]=Ue,q[Le]=G,re=Le;else break e}}return J}function l(q,J){var G=q.sortIndex-J.sortIndex;return G!==0?G:q.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],a=[],c=1,p=null,d=3,g=!1,_=!1,x=!1,P=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(q){for(var J=n(a);J!==null;){if(J.callback===null)r(a);else if(J.startTime<=q)r(a),J.sortIndex=J.expirationTime,t(u,J);else break;J=n(a)}}function T(q){if(x=!1,w(q),!_)if(n(u)!==null)_=!0,fe(O);else{var J=n(a);J!==null&&ne(T,J.startTime-q)}}function O(q,J){_=!1,x&&(x=!1,y(L),L=-1),g=!0;var G=d;try{for(w(J),p=n(u);p!==null&&(!(p.expirationTime>J)||q&&!z());){var re=p.callback;if(typeof re=="function"){p.callback=null,d=p.priorityLevel;var Y=re(p.expirationTime<=J);J=e.unstable_now(),typeof Y=="function"?p.callback=Y:p===n(u)&&r(u),w(J)}else r(u);p=n(u)}if(p!==null)var me=!0;else{var X=n(a);X!==null&&ne(T,X.startTime-J),me=!1}return me}finally{p=null,d=G,g=!1}}var R=!1,M=null,L=-1,I=5,D=-1;function z(){return!(e.unstable_now()-Dq||125re?(q.sortIndex=G,t(a,q),n(u)===null&&q===n(a)&&(x?(y(L),L=-1):x=!0,ne(T,G-re))):(q.sortIndex=Y,t(u,q),_||g||(_=!0,fe(O))),q},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(q){var J=d;return function(){var G=d;d=J;try{return q.apply(this,arguments)}finally{d=G}}}})(yh);gh.exports=yh;var kg=gh.exports;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ var Qv=Object.defineProperty;var Zv=(e,t,n)=>t in e?Qv(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var wh=U,sn=xg;function $(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uu=Object.prototype.hasOwnProperty,kg=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ud={},Wd={};function Sg(e){return Uu.call(Wd,e)?!0:Uu.call(Ud,e)?!1:kg.test(e)?Wd[e]=!0:(Ud[e]=!0,!1)}function Eg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Cg(e,t,n,r){if(t===null||typeof t>"u"||Eg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ut(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Lt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lt[e]=new Ut(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lt[t]=new Ut(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lt[e]=new Ut(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lt[e]=new Ut(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lt[e]=new Ut(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lt[e]=new Ut(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lt[e]=new Ut(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lt[e]=new Ut(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lt[e]=new Ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xc=/[\-:]([a-z])/g;function ef(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Xc,ef);Lt[t]=new Ut(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Xc,ef);Lt[t]=new Ut(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Xc,ef);Lt[t]=new Ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lt[e]=new Ut(e,1,!1,e.toLowerCase(),null,!1,!1)});Lt.xlinkHref=new Ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lt[e]=new Ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function tf(e,t,n,r){var l=Lt.hasOwnProperty(t)?Lt[t]:null;(l!==null?l.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uu=Object.prototype.hasOwnProperty,Sg=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ud={},Wd={};function Eg(e){return Uu.call(Wd,e)?!0:Uu.call(Ud,e)?!1:Sg.test(e)?Wd[e]=!0:(Ud[e]=!0,!1)}function Cg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Tg(e,t,n,r){if(t===null||typeof t>"u"||Cg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ut(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Lt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lt[e]=new Ut(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lt[t]=new Ut(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lt[e]=new Ut(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lt[e]=new Ut(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lt[e]=new Ut(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lt[e]=new Ut(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lt[e]=new Ut(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lt[e]=new Ut(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lt[e]=new Ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xc=/[\-:]([a-z])/g;function ef(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Xc,ef);Lt[t]=new Ut(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Xc,ef);Lt[t]=new Ut(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Xc,ef);Lt[t]=new Ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lt[e]=new Ut(e,1,!1,e.toLowerCase(),null,!1,!1)});Lt.xlinkHref=new Ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lt[e]=new Ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function tf(e,t,n,r){var l=Lt.hasOwnProperty(t)?Lt[t]:null;(l!==null?l.type!==0:r||!(2s||l[o]!==i[s]){var u=` -`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{cu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hi(e):""}function Tg(e){switch(e.tag){case 5:return Hi(e.type);case 16:return Hi("Lazy");case 13:return Hi("Suspense");case 19:return Hi("SuspenseList");case 0:case 2:case 15:return e=fu(e.type,!1),e;case 11:return e=fu(e.type.render,!1),e;case 1:return e=fu(e.type,!0),e;default:return""}}function Gu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ol:return"Fragment";case Pl:return"Portal";case Wu:return"Profiler";case nf:return"StrictMode";case qu:return"Suspense";case Ku:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case kh:return(e.displayName||"Context")+".Consumer";case xh:return(e._context.displayName||"Context")+".Provider";case rf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lf:return t=e.displayName||null,t!==null?t:Gu(e.type)||"Memo";case _r:t=e._payload,e=e._init;try{return Gu(e(t))}catch{}}return null}function Pg(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gu(t);case 8:return t===nf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function br(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Eh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Og(e){var t=Eh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function es(e){e._valueTracker||(e._valueTracker=Og(e))}function Ch(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Eh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Yu(e,t){var n=t.checked;return Ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Kd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=br(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Th(e,t){t=t.checked,t!=null&&tf(e,"checked",t,!1)}function Qu(e,t){Th(e,t);var n=br(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Zu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zu(e,t.type,br(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Zu(e,t,n){(t!=="number"||Fs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vi=Array.isArray;function Il(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=ts.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function uo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ng=["Webkit","ms","Moz","O"];Object.keys(Yi).forEach(function(e){Ng.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yi[t]=Yi[e]})});function Mh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yi.hasOwnProperty(e)&&Yi[e]?(""+t).trim():t+"px"}function Rh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Mh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Mg=Ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ec(e,t){if(t){if(Mg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function tc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nc=null;function of(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rc=null,Bl=null,$l=null;function Zd(e){if(e=jo(e)){if(typeof rc!="function")throw Error($(280));var t=e.stateNode;t&&(t=wa(t),rc(e.stateNode,e.type,t))}}function Lh(e){Bl?$l?$l.push(e):$l=[e]:Bl=e}function jh(){if(Bl){var e=Bl,t=$l;if($l=Bl=null,Zd(e),t)for(e=0;e>>=0,e===0?32:31-($g(e)/Hg|0)|0}var ns=64,rs=4194304;function Ui(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Hs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=Ui(s):(i&=o,i!==0&&(r=Ui(i)))}else o=n&~l,o!==0?r=Ui(o):i!==0&&(r=Ui(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ro(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bn(t),e[t]=n}function qg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Zi),op=String.fromCharCode(32),sp=!1;function Xh(e,t){switch(e){case"keyup":return _y.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function em(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nl=!1;function ky(e,t){switch(e){case"compositionend":return em(t);case"keypress":return t.which!==32?null:(sp=!0,op);case"textInput":return e=t.data,e===op&&sp?null:e;default:return null}}function Sy(e,t){if(Nl)return e==="compositionend"||!hf&&Xh(e,t)?(e=Zh(),Cs=ff=Cr=null,Nl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fp(n)}}function lm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function im(){for(var e=window,t=Fs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fs(e.document)}return t}function mf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ly(e){var t=im(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&lm(n.ownerDocument.documentElement,n)){if(r!==null&&mf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=dp(n,i);var o=dp(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ml=null,uc=null,Xi=null,cc=!1;function pp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cc||Ml==null||Ml!==Fs(r)||(r=Ml,"selectionStart"in r&&mf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xi&&vo(Xi,r)||(Xi=r,r=Ws(uc,"onSelect"),0jl||(e.current=vc[jl],vc[jl]=null,jl--)}function Ae(e,t){jl++,vc[jl]=e.current,e.current=t}var Dr={},zt=Fr(Dr),Gt=Fr(!1),ll=Dr;function Kl(e,t){var n=e.type.contextTypes;if(!n)return Dr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Yt(e){return e=e.childContextTypes,e!=null}function Ks(){Ie(Gt),Ie(zt)}function _p(e,t,n){if(zt.current!==Dr)throw Error($(168));Ae(zt,t),Ae(Gt,n)}function hm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error($(108,Pg(e)||"Unknown",l));return Ye({},n,r)}function Gs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dr,ll=zt.current,Ae(zt,e),Ae(Gt,Gt.current),!0}function xp(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=hm(e,t,ll),r.__reactInternalMemoizedMergedChildContext=e,Ie(Gt),Ie(zt),Ae(zt,e)):Ie(Gt),Ae(Gt,n)}var tr=null,_a=!1,Cu=!1;function mm(e){tr===null?tr=[e]:tr.push(e)}function Uy(e){_a=!0,mm(e)}function Ir(){if(!Cu&&tr!==null){Cu=!0;var e=0,t=Re;try{var n=tr;for(Re=1;e>=o,l-=o,nr=1<<32-bn(t)+l|n<L?(I=M,M=null):I=M.sibling;var b=d(y,M,w[L],T);if(b===null){M===null&&(M=I);break}e&&M&&b.alternate===null&&t(y,M),v=i(b,v,L),R===null?O=b:R.sibling=b,R=b,M=I}if(L===w.length)return n(y,M),Ve&&Wr(y,L),O;if(M===null){for(;LL?(I=M,M=null):I=M.sibling;var z=d(y,M,b.value,T);if(z===null){M===null&&(M=I);break}e&&M&&z.alternate===null&&t(y,M),v=i(z,v,L),R===null?O=z:R.sibling=z,R=z,M=I}if(b.done)return n(y,M),Ve&&Wr(y,L),O;if(M===null){for(;!b.done;L++,b=w.next())b=p(y,b.value,T),b!==null&&(v=i(b,v,L),R===null?O=b:R.sibling=b,R=b);return Ve&&Wr(y,L),O}for(M=r(y,M);!b.done;L++,b=w.next())b=g(M,y,L,b.value,T),b!==null&&(e&&b.alternate!==null&&M.delete(b.key===null?L:b.key),v=i(b,v,L),R===null?O=b:R.sibling=b,R=b);return e&&M.forEach(function(H){return t(y,H)}),Ve&&Wr(y,L),O}function P(y,v,w,T){if(typeof w=="object"&&w!==null&&w.type===Ol&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Xo:e:{for(var O=w.key,R=v;R!==null;){if(R.key===O){if(O=w.type,O===Ol){if(R.tag===7){n(y,R.sibling),v=l(R,w.props.children),v.return=y,y=v;break e}}else if(R.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===_r&&Op(O)===R.type){n(y,R.sibling),v=l(R,w.props),v.ref=Di(y,R,w),v.return=y,y=v;break e}n(y,R);break}else t(y,R);R=R.sibling}w.type===Ol?(v=el(w.props.children,y.mode,T,w.key),v.return=y,y=v):(T=js(w.type,w.key,w.props,null,y.mode,T),T.ref=Di(y,v,w),T.return=y,y=T)}return o(y);case Pl:e:{for(R=w.key;v!==null;){if(v.key===R)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(y,v.sibling),v=l(v,w.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=ju(w,y.mode,T),v.return=y,y=v}return o(y);case _r:return R=w._init,P(y,v,R(w._payload),T)}if(Vi(w))return _(y,v,w,T);if(Ri(w))return x(y,v,w,T);cs(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(y,v.sibling),v=l(v,w),v.return=y,y=v):(n(y,v),v=Lu(w,y.mode,T),v.return=y,y=v),o(y)):n(y,v)}return P}var Yl=Sm(!0),Em=Sm(!1),Ao={},Wn=Fr(Ao),_o=Fr(Ao),xo=Fr(Ao);function Jr(e){if(e===Ao)throw Error($(174));return e}function Ef(e,t){switch(Ae(xo,t),Ae(_o,e),Ae(Wn,Ao),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xu(t,e)}Ie(Wn),Ae(Wn,t)}function Ql(){Ie(Wn),Ie(_o),Ie(xo)}function Cm(e){Jr(xo.current);var t=Jr(Wn.current),n=Xu(t,e.type);t!==n&&(Ae(_o,e),Ae(Wn,n))}function Cf(e){_o.current===e&&(Ie(Wn),Ie(_o))}var Ke=Fr(0);function ea(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Tu=[];function Tf(){for(var e=0;en?n:4,e(!0);var r=Pu.transition;Pu.transition={};try{e(!1),t()}finally{Re=n,Pu.transition=r}}function $m(){return kn().memoizedState}function Gy(e,t,n){var r=jr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Hm(e))Vm(t,n);else if(n=wm(e,t,n,r),n!==null){var l=Ht();Dn(n,e,r,l),Um(n,t,r)}}function Yy(e,t,n){var r=jr(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hm(e))Vm(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,zn(s,o)){var u=t.interleaved;u===null?(l.next=l,kf(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=wm(e,t,l,r),n!==null&&(l=Ht(),Dn(n,e,r,l),Um(n,t,r))}}function Hm(e){var t=e.alternate;return e===Ge||t!==null&&t===Ge}function Vm(e,t){eo=ta=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Um(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,af(e,n)}}var na={readContext:xn,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useInsertionEffect:At,useLayoutEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useMutableSource:At,useSyncExternalStore:At,useId:At,unstable_isNewReconciler:!1},Qy={readContext:xn,useCallback:function(e,t){return Hn().memoizedState=[e,t===void 0?null:t],e},useContext:xn,useEffect:Mp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ns(4194308,4,Dm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ns(4,2,e,t)},useMemo:function(e,t){var n=Hn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Hn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gy.bind(null,Ge,e),[r.memoizedState,e]},useRef:function(e){var t=Hn();return e={current:e},t.memoizedState=e},useState:Np,useDebugValue:Rf,useDeferredValue:function(e){return Hn().memoizedState=e},useTransition:function(){var e=Np(!1),t=e[0];return e=Ky.bind(null,e[1]),Hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ge,l=Hn();if(Ve){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),kt===null)throw Error($(349));ol&30||Om(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Mp(Mm.bind(null,r,i,e),[e]),r.flags|=2048,Eo(9,Nm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Hn(),t=kt.identifierPrefix;if(Ve){var n=rr,r=nr;n=(r&~(1<<32-bn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ko++,0")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{cu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hi(e):""}function Pg(e){switch(e.tag){case 5:return Hi(e.type);case 16:return Hi("Lazy");case 13:return Hi("Suspense");case 19:return Hi("SuspenseList");case 0:case 2:case 15:return e=fu(e.type,!1),e;case 11:return e=fu(e.type.render,!1),e;case 1:return e=fu(e.type,!0),e;default:return""}}function Gu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ol:return"Fragment";case Pl:return"Portal";case Wu:return"Profiler";case nf:return"StrictMode";case qu:return"Suspense";case Ku:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case kh:return(e.displayName||"Context")+".Consumer";case xh:return(e._context.displayName||"Context")+".Provider";case rf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lf:return t=e.displayName||null,t!==null?t:Gu(e.type)||"Memo";case _r:t=e._payload,e=e._init;try{return Gu(e(t))}catch{}}return null}function Og(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gu(t);case 8:return t===nf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function br(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Eh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ng(e){var t=Eh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function es(e){e._valueTracker||(e._valueTracker=Ng(e))}function Ch(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Eh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Yu(e,t){var n=t.checked;return Ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Kd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=br(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Th(e,t){t=t.checked,t!=null&&tf(e,"checked",t,!1)}function Qu(e,t){Th(e,t);var n=br(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Zu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zu(e,t.type,br(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Zu(e,t,n){(t!=="number"||Fs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vi=Array.isArray;function Il(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=ts.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function uo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Mg=["Webkit","ms","Moz","O"];Object.keys(Yi).forEach(function(e){Mg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yi[t]=Yi[e]})});function Mh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yi.hasOwnProperty(e)&&Yi[e]?(""+t).trim():t+"px"}function Rh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Mh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Rg=Ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ec(e,t){if(t){if(Rg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function tc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nc=null;function of(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rc=null,Bl=null,$l=null;function Zd(e){if(e=jo(e)){if(typeof rc!="function")throw Error($(280));var t=e.stateNode;t&&(t=wa(t),rc(e.stateNode,e.type,t))}}function Lh(e){Bl?$l?$l.push(e):$l=[e]:Bl=e}function jh(){if(Bl){var e=Bl,t=$l;if($l=Bl=null,Zd(e),t)for(e=0;e>>=0,e===0?32:31-(Hg(e)/Vg|0)|0}var ns=64,rs=4194304;function Ui(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Hs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=Ui(s):(i&=o,i!==0&&(r=Ui(i)))}else o=n&~l,o!==0?r=Ui(o):i!==0&&(r=Ui(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ro(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bn(t),e[t]=n}function Kg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Zi),op=String.fromCharCode(32),sp=!1;function Xh(e,t){switch(e){case"keyup":return xy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function em(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nl=!1;function Sy(e,t){switch(e){case"compositionend":return em(t);case"keypress":return t.which!==32?null:(sp=!0,op);case"textInput":return e=t.data,e===op&&sp?null:e;default:return null}}function Ey(e,t){if(Nl)return e==="compositionend"||!hf&&Xh(e,t)?(e=Zh(),Cs=ff=Cr=null,Nl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fp(n)}}function lm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function im(){for(var e=window,t=Fs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fs(e.document)}return t}function mf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function jy(e){var t=im(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&lm(n.ownerDocument.documentElement,n)){if(r!==null&&mf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=dp(n,i);var o=dp(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ml=null,uc=null,Xi=null,cc=!1;function pp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cc||Ml==null||Ml!==Fs(r)||(r=Ml,"selectionStart"in r&&mf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xi&&vo(Xi,r)||(Xi=r,r=Ws(uc,"onSelect"),0jl||(e.current=vc[jl],vc[jl]=null,jl--)}function Ae(e,t){jl++,vc[jl]=e.current,e.current=t}var Dr={},zt=Fr(Dr),Gt=Fr(!1),ll=Dr;function Kl(e,t){var n=e.type.contextTypes;if(!n)return Dr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Yt(e){return e=e.childContextTypes,e!=null}function Ks(){Ie(Gt),Ie(zt)}function _p(e,t,n){if(zt.current!==Dr)throw Error($(168));Ae(zt,t),Ae(Gt,n)}function hm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error($(108,Og(e)||"Unknown",l));return Ye({},n,r)}function Gs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dr,ll=zt.current,Ae(zt,e),Ae(Gt,Gt.current),!0}function xp(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=hm(e,t,ll),r.__reactInternalMemoizedMergedChildContext=e,Ie(Gt),Ie(zt),Ae(zt,e)):Ie(Gt),Ae(Gt,n)}var tr=null,_a=!1,Cu=!1;function mm(e){tr===null?tr=[e]:tr.push(e)}function Wy(e){_a=!0,mm(e)}function Ir(){if(!Cu&&tr!==null){Cu=!0;var e=0,t=Re;try{var n=tr;for(Re=1;e>=o,l-=o,nr=1<<32-bn(t)+l|n<L?(I=M,M=null):I=M.sibling;var D=d(y,M,w[L],T);if(D===null){M===null&&(M=I);break}e&&M&&D.alternate===null&&t(y,M),v=i(D,v,L),R===null?O=D:R.sibling=D,R=D,M=I}if(L===w.length)return n(y,M),Ve&&Wr(y,L),O;if(M===null){for(;LL?(I=M,M=null):I=M.sibling;var z=d(y,M,D.value,T);if(z===null){M===null&&(M=I);break}e&&M&&z.alternate===null&&t(y,M),v=i(z,v,L),R===null?O=z:R.sibling=z,R=z,M=I}if(D.done)return n(y,M),Ve&&Wr(y,L),O;if(M===null){for(;!D.done;L++,D=w.next())D=p(y,D.value,T),D!==null&&(v=i(D,v,L),R===null?O=D:R.sibling=D,R=D);return Ve&&Wr(y,L),O}for(M=r(y,M);!D.done;L++,D=w.next())D=g(M,y,L,D.value,T),D!==null&&(e&&D.alternate!==null&&M.delete(D.key===null?L:D.key),v=i(D,v,L),R===null?O=D:R.sibling=D,R=D);return e&&M.forEach(function(V){return t(y,V)}),Ve&&Wr(y,L),O}function P(y,v,w,T){if(typeof w=="object"&&w!==null&&w.type===Ol&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Xo:e:{for(var O=w.key,R=v;R!==null;){if(R.key===O){if(O=w.type,O===Ol){if(R.tag===7){n(y,R.sibling),v=l(R,w.props.children),v.return=y,y=v;break e}}else if(R.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===_r&&Op(O)===R.type){n(y,R.sibling),v=l(R,w.props),v.ref=Di(y,R,w),v.return=y,y=v;break e}n(y,R);break}else t(y,R);R=R.sibling}w.type===Ol?(v=el(w.props.children,y.mode,T,w.key),v.return=y,y=v):(T=js(w.type,w.key,w.props,null,y.mode,T),T.ref=Di(y,v,w),T.return=y,y=T)}return o(y);case Pl:e:{for(R=w.key;v!==null;){if(v.key===R)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(y,v.sibling),v=l(v,w.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=ju(w,y.mode,T),v.return=y,y=v}return o(y);case _r:return R=w._init,P(y,v,R(w._payload),T)}if(Vi(w))return _(y,v,w,T);if(Ri(w))return x(y,v,w,T);cs(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(y,v.sibling),v=l(v,w),v.return=y,y=v):(n(y,v),v=Lu(w,y.mode,T),v.return=y,y=v),o(y)):n(y,v)}return P}var Yl=Sm(!0),Em=Sm(!1),Ao={},Wn=Fr(Ao),_o=Fr(Ao),xo=Fr(Ao);function Jr(e){if(e===Ao)throw Error($(174));return e}function Ef(e,t){switch(Ae(xo,t),Ae(_o,e),Ae(Wn,Ao),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xu(t,e)}Ie(Wn),Ae(Wn,t)}function Ql(){Ie(Wn),Ie(_o),Ie(xo)}function Cm(e){Jr(xo.current);var t=Jr(Wn.current),n=Xu(t,e.type);t!==n&&(Ae(_o,e),Ae(Wn,n))}function Cf(e){_o.current===e&&(Ie(Wn),Ie(_o))}var Ke=Fr(0);function ea(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Tu=[];function Tf(){for(var e=0;en?n:4,e(!0);var r=Pu.transition;Pu.transition={};try{e(!1),t()}finally{Re=n,Pu.transition=r}}function $m(){return kn().memoizedState}function Yy(e,t,n){var r=jr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Hm(e))Vm(t,n);else if(n=wm(e,t,n,r),n!==null){var l=Ht();Dn(n,e,r,l),Um(n,t,r)}}function Qy(e,t,n){var r=jr(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hm(e))Vm(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,zn(s,o)){var u=t.interleaved;u===null?(l.next=l,kf(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=wm(e,t,l,r),n!==null&&(l=Ht(),Dn(n,e,r,l),Um(n,t,r))}}function Hm(e){var t=e.alternate;return e===Ge||t!==null&&t===Ge}function Vm(e,t){eo=ta=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Um(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,af(e,n)}}var na={readContext:xn,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useInsertionEffect:At,useLayoutEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useMutableSource:At,useSyncExternalStore:At,useId:At,unstable_isNewReconciler:!1},Zy={readContext:xn,useCallback:function(e,t){return Hn().memoizedState=[e,t===void 0?null:t],e},useContext:xn,useEffect:Mp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ns(4194308,4,Dm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ns(4,2,e,t)},useMemo:function(e,t){var n=Hn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Hn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Yy.bind(null,Ge,e),[r.memoizedState,e]},useRef:function(e){var t=Hn();return e={current:e},t.memoizedState=e},useState:Np,useDebugValue:Rf,useDeferredValue:function(e){return Hn().memoizedState=e},useTransition:function(){var e=Np(!1),t=e[0];return e=Gy.bind(null,e[1]),Hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ge,l=Hn();if(Ve){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),kt===null)throw Error($(349));ol&30||Om(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Mp(Mm.bind(null,r,i,e),[e]),r.flags|=2048,Eo(9,Nm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Hn(),t=kt.identifierPrefix;if(Ve){var n=rr,r=nr;n=(r&~(1<<32-bn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ko++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Vn]=t,e[wo]=r,Xm(e,t,!1,!1),t.stateNode=e;e:{switch(o=tc(n,r),n){case"dialog":Fe("cancel",e),Fe("close",e),l=r;break;case"iframe":case"object":case"embed":Fe("load",e),l=r;break;case"video":case"audio":for(l=0;lJl&&(t.flags|=128,r=!0,zi(i,!1),t.lanes=4194304)}else{if(!r)if(e=ea(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Ve)return bt(t),null}else 2*et()-i.renderingStartTime>Jl&&n!==1073741824&&(t.flags|=128,r=!0,zi(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=et(),t.sibling=null,n=Ke.current,Ae(Ke,r?n&1|2:n&1),t):(bt(t),null);case 22:case 23:return zf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tn&1073741824&&(bt(t),t.subtreeFlags&6&&(t.flags|=8192)):bt(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function l2(e,t){switch(gf(t),t.tag){case 1:return Yt(t.type)&&Ks(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ql(),Ie(Gt),Ie(zt),Tf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Cf(t),null;case 13:if(Ie(Ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));Gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ie(Ke),null;case 4:return Ql(),null;case 10:return xf(t.type._context),null;case 22:case 23:return zf(),null;case 24:return null;default:return null}}var ds=!1,Dt=!1,i2=typeof WeakSet=="function"?WeakSet:Set,ee=null;function zl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Je(e,t,r)}else n.current=null}function Oc(e,t,n){try{n()}catch(r){Je(e,t,r)}}var Ip=!1;function o2(e,t){if(fc=Vs,e=im(),mf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,a=0,c=0,p=e,d=null;t:for(;;){for(var g;p!==n||l!==0&&p.nodeType!==3||(s=o+l),p!==i||r!==0&&p.nodeType!==3||(u=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(g=p.firstChild)!==null;)d=p,p=g;for(;;){if(p===e)break t;if(d===n&&++a===l&&(s=o),d===i&&++c===r&&(u=o),(g=p.nextSibling)!==null)break;p=d,d=p.parentNode}p=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(dc={focusedElem:e,selectionRange:n},Vs=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var x=_.memoizedProps,P=_.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ln(t.type,x),P);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(T){Je(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return _=Ip,Ip=!1,_}function to(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Oc(t,n,i)}l=l.next}while(l!==r)}}function Sa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Nc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function n1(e){var t=e.alternate;t!==null&&(e.alternate=null,n1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vn],delete t[wo],delete t[mc],delete t[Hy],delete t[Vy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function r1(e){return e.tag===5||e.tag===3||e.tag===4}function Bp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||r1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qs));else if(r!==4&&(e=e.child,e!==null))for(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}function Rc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Rc(e,t,n),e=e.sibling;e!==null;)Rc(e,t,n),e=e.sibling}var Mt=null,jn=!1;function yr(e,t,n){for(n=n.child;n!==null;)l1(e,t,n),n=n.sibling}function l1(e,t,n){if(Un&&typeof Un.onCommitFiberUnmount=="function")try{Un.onCommitFiberUnmount(ma,n)}catch{}switch(n.tag){case 5:Dt||zl(n,t);case 6:var r=Mt,l=jn;Mt=null,yr(e,t,n),Mt=r,jn=l,Mt!==null&&(jn?(e=Mt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Mt.removeChild(n.stateNode));break;case 18:Mt!==null&&(jn?(e=Mt,n=n.stateNode,e.nodeType===8?Eu(e.parentNode,n):e.nodeType===1&&Eu(e,n),ho(e)):Eu(Mt,n.stateNode));break;case 4:r=Mt,l=jn,Mt=n.stateNode.containerInfo,jn=!0,yr(e,t,n),Mt=r,jn=l;break;case 0:case 11:case 14:case 15:if(!Dt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Oc(n,t,o),l=l.next}while(l!==r)}yr(e,t,n);break;case 1:if(!Dt&&(zl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Je(n,t,s)}yr(e,t,n);break;case 21:yr(e,t,n);break;case 22:n.mode&1?(Dt=(r=Dt)||n.memoizedState!==null,yr(e,t,n),Dt=r):yr(e,t,n);break;default:yr(e,t,n)}}function $p(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new i2),t.forEach(function(r){var l=m2.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Mn(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=et()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*a2(r/1960))-r,10e?16:e,Tr===null)var r=!1;else{if(e=Tr,Tr=null,ia=0,Se&6)throw Error($(331));var l=Se;for(Se|=4,ee=e.current;ee!==null;){var i=ee,o=i.child;if(ee.flags&16){var s=i.deletions;if(s!==null){for(var u=0;uet()-bf?Xr(e,0):Af|=n),Qt(e,t)}function d1(e,t){t===0&&(e.mode&1?(t=rs,rs<<=1,!(rs&130023424)&&(rs=4194304)):t=1);var n=Ht();e=ur(e,t),e!==null&&(Ro(e,t,n),Qt(e,n))}function h2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),d1(e,n)}function m2(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error($(314))}r!==null&&r.delete(t),d1(e,n)}var p1;p1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gt.current)Kt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Kt=!1,n2(e,t,n);Kt=!!(e.flags&131072)}else Kt=!1,Ve&&t.flags&1048576&&vm(t,Qs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ms(e,t),e=t.pendingProps;var l=Kl(t,zt.current);Vl(t,n),l=Of(null,t,r,e,l,n);var i=Nf();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Yt(r)?(i=!0,Gs(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Sf(t),l.updater=xa,t.stateNode=l,l._reactInternals=t,xc(t,r,e,n),t=Ec(null,t,r,!0,i,n)):(t.tag=0,Ve&&i&&vf(t),$t(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ms(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=g2(r),e=Ln(r,e),l){case 0:t=Sc(null,t,r,e,n);break e;case 1:t=Dp(null,t,r,e,n);break e;case 11:t=Ap(null,t,r,e,n);break e;case 14:t=bp(null,t,r,Ln(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ln(r,l),Sc(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ln(r,l),Dp(e,t,r,l,n);case 3:e:{if(Qm(t),e===null)throw Error($(387));r=t.pendingProps,i=t.memoizedState,l=i.element,_m(e,t),Xs(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Zl(Error($(423)),t),t=zp(e,t,r,n,l);break e}else if(r!==l){l=Zl(Error($(424)),t),t=zp(e,t,r,n,l);break e}else for(rn=Mr(t.stateNode.containerInfo.firstChild),ln=t,Ve=!0,An=null,n=Em(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gl(),r===l){t=cr(e,t,n);break e}$t(e,t,r,n)}t=t.child}return t;case 5:return Cm(t),e===null&&yc(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,pc(r,l)?o=null:i!==null&&pc(r,i)&&(t.flags|=32),Ym(e,t),$t(e,t,o,n),t.child;case 6:return e===null&&yc(t),null;case 13:return Zm(e,t,n);case 4:return Ef(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yl(t,null,r,n):$t(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ln(r,l),Ap(e,t,r,l,n);case 7:return $t(e,t,t.pendingProps,n),t.child;case 8:return $t(e,t,t.pendingProps.children,n),t.child;case 12:return $t(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,Ae(Zs,r._currentValue),r._currentValue=o,i!==null)if(zn(i.value,o)){if(i.children===l.children&&!Gt.current){t=cr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=lr(-1,n&-n),u.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?u.next=u:(u.next=c.next,c.next=u),a.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),wc(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error($(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),wc(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}$t(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Vl(t,n),l=xn(l),r=r(l),t.flags|=1,$t(e,t,r,n),t.child;case 14:return r=t.type,l=Ln(r,t.pendingProps),l=Ln(r.type,l),bp(e,t,r,l,n);case 15:return Km(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ln(r,l),Ms(e,t),t.tag=1,Yt(r)?(e=!0,Gs(t)):e=!1,Vl(t,n),km(t,r,l),xc(t,r,l,n),Ec(null,t,r,!0,e,n);case 19:return Jm(e,t,n);case 22:return Gm(e,t,n)}throw Error($(156,t.tag))};function h1(e,t){return Bh(e,t)}function v2(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yn(e,t,n,r){return new v2(e,t,n,r)}function If(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g2(e){if(typeof e=="function")return If(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rf)return 11;if(e===lf)return 14}return 2}function Ar(e,t){var n=e.alternate;return n===null?(n=yn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function js(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")If(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ol:return el(n.children,l,i,t);case nf:o=8,l|=8;break;case Wu:return e=yn(12,n,t,l|2),e.elementType=Wu,e.lanes=i,e;case qu:return e=yn(13,n,t,l),e.elementType=qu,e.lanes=i,e;case Ku:return e=yn(19,n,t,l),e.elementType=Ku,e.lanes=i,e;case Sh:return Ca(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xh:o=10;break e;case kh:o=9;break e;case rf:o=11;break e;case lf:o=14;break e;case _r:o=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=yn(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function el(e,t,n,r){return e=yn(7,e,r,t),e.lanes=n,e}function Ca(e,t,n,r){return e=yn(22,e,r,t),e.elementType=Sh,e.lanes=n,e.stateNode={isHidden:!1},e}function Lu(e,t,n){return e=yn(6,e,null,t),e.lanes=n,e}function ju(e,t,n){return t=yn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function y2(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pu(0),this.expirationTimes=pu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pu(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Bf(e,t,n,r,l,i,o,s,u){return e=new y2(e,t,n,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=yn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sf(i),e}function w2(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(y1)}catch(e){console.error(e)}}y1(),vh.exports=un;var w1=vh.exports,Yp=w1;Vu.createRoot=Yp.createRoot,Vu.hydrateRoot=Yp.hydrateRoot;const E2="k6 dashboard",C2=[{sections:[{panels:[{series:[{query:"iterations[?!tags && rate]"}],title:"Iteration Rate",kind:"stat",id:"tab-0.section-0.panel-0",summary:"The iteration rate represents the number of times a VU has executed a test script (the `default` function) over a period of time. The panel can help you ensure that your test iteration rate matches the configuration you have specified in your test script, and that the number of VUs you have allocated matches the test capacity."},{series:[{query:"http_reqs[?!tags && rate]"}],title:"HTTP Request Rate",kind:"stat",id:"tab-0.section-0.panel-1",summary:"The HTTP request rate represents the number of requests over a period of time."},{series:[{query:"http_req_duration[?!tags && avg]"}],title:"HTTP Request Duration",kind:"stat",id:"tab-0.section-0.panel-2",summary:"The HTTP request duration represents the total time for a request. This is an indication of the latency experienced when making HTTP requests against the system under test."},{series:[{query:"http_req_failed[?!tags && rate ]"}],title:"HTTP Request Failed",kind:"stat",id:"tab-0.section-0.panel-3",summary:"The rate of failed requests according to the test configuration. Failed requests can include any number of status codes depending on your test. Refer to setResponseCallback for more details."},{series:[{query:"data_received[?!tags && rate]"}],title:"Received Rate",kind:"stat",id:"tab-0.section-0.panel-4",summary:"The amount of data received over a period of time."},{series:[{query:"data_sent[?!tags && rate]"}],title:"Sent Rate",kind:"stat",id:"tab-0.section-0.panel-5",summary:"The amount of data sent to the system under test. "}],id:"tab-0.section-0"},{panels:[{series:[{query:"http_reqs[?!tags && rate]",legend:"Request Rate"},{query:"http_req_duration[?!tags && p95]",legend:"Request Duration p(95)"},{query:"http_req_failed[?!tags && rate]",legend:"Request Failed"}],title:"HTTP Performance overview",id:"tab-0.section-1.panel-0",summary:"The HTTP request rate represents the number of requests over a period of time. The HTTP request duration 95 percentile represents the total time for 95% of the requests observed. The HTTP request failed rate represents the rate of failed requests according to the test configuration. Failed requests can include any number of status codes depending on your test. Refer to setResponseCallback for more details.",fullWidth:!0,kind:"chart"}],id:"tab-0.section-1"},{panels:[{series:[{query:"vus[?!tags && value]"},{query:"http_reqs[?!tags && rate ]"}],title:"VUs",id:"tab-0.section-2.panel-0",summary:"The number of VUs and the number of requests throughout the test run. This is an indication of how the two metrics correlate, and can help you visualize if you need to increase or decrease the number of VUs for your test.",kind:"chart"},{series:[{query:"data_received[?!tags && rate]"},{query:"data_sent[?!tags && rate]"}],title:"Transfer Rate",id:"tab-0.section-2.panel-1",summary:"The rate at which data is sent to and received from the system under test.",kind:"chart"},{series:[{query:"http_req_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"HTTP Request Duration",id:"tab-0.section-2.panel-2",summary:"The HTTP request duration represents the total time for a request. This is an indication of the latency experienced when making HTTP requests against the system under test.",kind:"chart"},{series:[{query:"iteration_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Iteration Duration",id:"tab-0.section-2.panel-3",summary:"The time to complete one full iteration of the test, including time spent in setup and teardown.",kind:"chart"}],id:"tab-0.section-2"}],title:"Overview",summary:"This chapter provides an overview of the most important metrics of the test run. Graphs plot the value of metrics over time.",id:"tab-0"},{sections:[{panels:[{series:[{query:"http_req_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Duration",id:"tab-1.section-0.panel-0",summary:"The HTTP request duration represents the total time for a request. This is an indication of the latency experienced when making HTTP requests against the system under test.",kind:"chart"},{series:[{query:"http_req_failed[?!tags && rate ]"}],title:"Request Failed Rate",id:"tab-1.section-0.panel-1",summary:"The rate of failed requests according to the test configuration. Failed requests can include any number of status codes depending on your test. Refer to setResponseCallback for more details.",kind:"chart"},{series:[{query:"http_reqs[?!tags && rate]"}],title:"Request Rate",id:"tab-1.section-0.panel-2",summary:"The HTTP request rate represents the number of requests over a period of time.",kind:"chart"},{series:[{query:"http_req_waiting[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Waiting",id:"tab-1.section-0.panel-3",summary:"The time between k6 sending a request and receiving the first byte of information from the remote host. Also known as 'time to first byte' or 'TTFB'.",kind:"chart"},{series:[{query:"http_req_tls_handshaking[?!tags && (avg || p90 || p95 || p99)]"}],title:"TLS handshaking",id:"tab-1.section-0.panel-4",summary:"The time it takes to complete the TLS handshake for the requests.",kind:"chart"},{series:[{query:"http_req_sending[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Sending",id:"tab-1.section-0.panel-5",summary:"The time k6 spends sending data to the remote host.",kind:"chart"},{series:[{query:"http_req_connecting[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Connecting",id:"tab-1.section-0.panel-6",summary:"The time k6 spends establishing a TCP connection to the remote host.",kind:"chart"},{series:[{query:"http_req_receiving[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Receiving",id:"tab-1.section-0.panel-7",summary:"The time k6 spends receiving data from the remote host.",kind:"chart"},{series:[{query:"http_req_blocked[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Blocked",id:"tab-1.section-0.panel-8",summary:"The time k6 spends waiting for a free TCP connection slot before initiating a request.",kind:"chart"}],title:"HTTP",summary:"These metrics are generated only when the test makes HTTP requests.",id:"tab-1.section-0"},{panels:[{series:[{query:"browser_http_req_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Duration",id:"tab-1.section-1.panel-0",summary:"The HTTP request duration represents the total time for a request. This is an indication of the latency experienced when making HTTP requests against the system under test.",kind:"chart"},{series:[{query:"browser_http_req_failed[?!tags && rate ]"}],title:"Request Failed Rate",id:"tab-1.section-1.panel-1",summary:"The rate of failed requests according to the test configuration. Failed requests can include any number of status codes depending on your test. Refer to setResponseCallback for more details.",kind:"chart"},{series:[{query:"browser_web_vital_lcp[?!tags && (avg || p90 || p95 || p99)]"}],title:"Largest Contentful Paint",id:"tab-1.section-1.panel-2",summary:"Largest Contentful Paint (LCP) measures the time it takes for the largest content element on a page to become visible.",kind:"chart"},{series:[{query:"browser_web_vital_fid[?!tags && (avg || p90 || p95 || p99)]"}],title:"First Input Delay",id:"tab-1.section-1.panel-3",summary:"First Input Delay (FID) measures the responsiveness of a web page by quantifying the delay between a user's first interaction, such as clicking a button, and the browser's response.",kind:"chart"},{series:[{query:"browser_web_vital_cls[?!tags && (avg || p90 || p95 || p99)]"}],title:"Cumulative Layout Shift",id:"tab-1.section-1.panel-4",summary:"Cumulative Layout Shift (CLS) measures visual stability on a webpage by quantifying the amount of unexpected layout shift of visible page content.",kind:"chart"},{series:[{query:"browser_web_vital_ttfb[?!tags && (avg || p90 || p95 || p99)]"}],title:"Time to First Byte",id:"tab-1.section-1.panel-5",summary:"Time to First Byte (TTFB) measures the time between the request for a resource and when the first byte of a response begins to arrive.",kind:"chart"},{series:[{query:"browser_web_vital_fcp[?!tags && (avg || p90 || p95 || p99)]"}],title:"First Contentful Paint",id:"tab-1.section-1.panel-6",summary:"First Contentful Paint (FCP) measures the time it takes for the first content element to be painted on the screen.",kind:"chart"},{series:[{query:"browser_web_vital_inp[?!tags && (avg || p90 || p95 || p99)]"}],title:"Interaction to Next Paint",id:"tab-1.section-1.panel-7",summary:"Interaction to Next Paint (INP) measures a page's overall responsiveness to user interactions by observing the latency of all click, tap, and keyboard interactions that occur throughout the lifespan of a user's visit to a page.",kind:"chart"}],title:"Browser",summary:"The k6 browser module emits its own metrics based on the Core Web Vitals and Other Web Vitals.",id:"tab-1.section-1"},{panels:[{series:[{query:"ws_connecting[?!tags && (avg || p90 || p95 || p99)]"}],title:"Connect Duration",id:"tab-1.section-2.panel-0",summary:"The duration of the WebSocket connection request. This is an indication of the latency experienced when connecting to a WebSocket server.",kind:"chart"},{series:[{query:"ws_session_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Session Duration",id:"tab-1.section-2.panel-1",summary:"The time between the start of the connection and the end of the VU execution.",kind:"chart"},{series:[{query:"ws_ping[?!tags && (avg || p90 || p95 || p99)]"}],title:"Ping Duration",id:"tab-1.section-2.panel-2",summary:"The duration between a ping request and its pong reception. This is an indication of the latency experienced during the roundtrip of sending a ping message to a WebSocket server, and waiting for the pong response message to come back.",kind:"chart"},{series:[{query:"ws_msgs_sent[?!tags && rate]"},{query:"ws_msgs_received[?!tags && rate]"}],title:"Transfer Rate",id:"tab-1.section-2.panel-3",summary:"The total number of WebSocket messages sent, and the total number of WebSocket messages received.",kind:"chart"},{series:[{query:"ws_sessions[?!tags && rate]"}],title:"Sessions Rate",id:"tab-1.section-2.panel-4",summary:"The total number of WebSocket sessions started.",kind:"chart"}],title:"WebSocket",summary:"k6 emits the following metrics when interacting with a WebSocket service through the experimental or legacy websockets API.",id:"tab-1.section-2"},{panels:[{series:[{query:"grpc_req_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Duration",id:"tab-1.section-3.panel-0",summary:"The gRPC request duration represents the total time for a gRPC request. This is an indication of the latency experienced when making gRPC requests against the system under test.",kind:"chart"},{series:[{query:"grpc_streams_msgs_sent[?!tags && rate]"},{query:"grpc_streams_msgs_received[?!tags && rate]"}],title:"Transfer Rate",id:"tab-1.section-3.panel-1",summary:"The total number of messages sent to gRPC streams, and the total number of messages received from a gRPC stream.",kind:"chart"},{series:[{query:"grpc_streams[?!tags && rate]"}],title:"Streams Rate",id:"tab-1.section-3.panel-2",summary:"The total number of gRPC streams started.",kind:"chart"}],title:"gRPC",summary:"k6 emits the following metrics when it interacts with a service through the gRPC API.",id:"tab-1.section-3"}],title:"Timings",summary:"This chapter provides an overview of test run HTTP timing metrics. Graphs plot the value of metrics over time.",id:"tab-1"},{sections:[{panels:[{series:[{query:"[?!tags && trend]"}],title:"Trends",kind:"summary",id:"tab-2.section-0.panel-0"}],title:"",id:"tab-2.section-0"},{panels:[{series:[{query:"[?!tags && counter]"}],title:"Counters",kind:"summary",id:"tab-2.section-1.panel-0"},{series:[{query:"[?!tags && rate]"}],title:"Rates",kind:"summary",id:"tab-2.section-1.panel-1"},{series:[{query:"[?!tags && gauge]"}],title:"Gauges",kind:"summary",id:"tab-2.section-1.panel-2"}],title:"",id:"tab-2.section-1"}],title:"Summary",summary:"This chapter provides a summary of the test run metrics. The tables contains the aggregated values of the metrics for the entire test run.",id:"tab-2"}],_1={title:E2,tabs:C2};var x1={};(function(e){(function(t){function n(h){return h!==null?Object.prototype.toString.call(h)==="[object Array]":!1}function r(h){return h!==null?Object.prototype.toString.call(h)==="[object Object]":!1}function l(h,S){if(h===S)return!0;var C=Object.prototype.toString.call(h);if(C!==Object.prototype.toString.call(S))return!1;if(n(h)===!0){if(h.length!==S.length)return!1;for(var j=0;j",9:"Array"},w="EOF",T="UnquotedIdentifier",O="QuotedIdentifier",R="Rbracket",M="Rparen",L="Comma",I="Colon",b="Rbrace",z="Number",H="Current",K="Expref",oe="Pipe",se="Or",fe="And",ne="EQ",q="GT",J="LT",G="GTE",re="LTE",Y="NE",me="Flatten",X="Star",pe="Filter",Le="Dot",Ue="Not",Be="Lbrace",tt="Lbracket",Ct="Lparen",st="Literal",dn={".":Le,"*":X,",":L,":":I,"{":Be,"}":b,"]":R,"(":Ct,")":M,"@":H},Qn={"<":!0,">":!0,"=":!0,"!":!0},pn={" ":!0," ":!0,"\n":!0};function Zn(h){return h>="a"&&h<="z"||h>="A"&&h<="Z"||h==="_"}function Cn(h){return h>="0"&&h<="9"||h==="-"}function hn(h){return h>="a"&&h<="z"||h>="A"&&h<="Z"||h>="0"&&h<="9"||h==="_"}function pt(){}pt.prototype={tokenize:function(h){var S=[];this._current=0;for(var C,j,F;this._current")return h[this._current]==="="?(this._current++,{type:G,value:">=",start:S}):{type:q,value:">",start:S};if(C==="="&&h[this._current]==="=")return this._current++,{type:ne,value:"==",start:S}},_consumeLiteral:function(h){this._current++;for(var S=this._current,C=h.length,j;h[this._current]!=="`"&&this._current=0)return!0;if(C.indexOf(h)>=0)return!0;if(j.indexOf(h[0])>=0)try{return JSON.parse(h),!0}catch{return!1}else return!1}};var ue={};ue[w]=0,ue[T]=0,ue[O]=0,ue[R]=0,ue[M]=0,ue[L]=0,ue[b]=0,ue[z]=0,ue[H]=0,ue[K]=0,ue[oe]=1,ue[se]=2,ue[fe]=3,ue[ne]=5,ue[q]=5,ue[J]=5,ue[G]=5,ue[re]=5,ue[Y]=5,ue[me]=9,ue[X]=20,ue[pe]=21,ue[Le]=40,ue[Ue]=45,ue[Be]=50,ue[tt]=55,ue[Ct]=60;function nt(){}nt.prototype={parse:function(h){this._loadTokens(h),this.index=0;var S=this.expression(0);if(this._lookahead(0)!==w){var C=this._lookaheadToken(0),j=new Error("Unexpected token type: "+C.type+", value: "+C.value);throw j.name="ParserError",j}return S},_loadTokens:function(h){var S=new pt,C=S.tokenize(h);C.push({type:w,value:"",start:h.length}),this.tokens=C},expression:function(h){var S=this._lookaheadToken(0);this._advance();for(var C=this.nud(S),j=this._lookahead(0);h=0)return this.expression(h);if(S===tt)return this._match(tt),this._parseMultiselectList();if(S===Be)return this._match(Be),this._parseMultiselectHash()},_parseProjectionRHS:function(h){var S;if(ue[this._lookahead(0)]<10)S={type:"Identity"};else if(this._lookahead(0)===tt)S=this.expression(h);else if(this._lookahead(0)===pe)S=this.expression(h);else if(this._lookahead(0)===Le)this._match(Le),S=this._parseDotRHS(h);else{var C=this._lookaheadToken(0),j=new Error("Sytanx error, unexpected token: "+C.value+"("+C.type+")");throw j.name="ParserError",j}return S},_parseMultiselectList:function(){for(var h=[];this._lookahead(0)!==R;){var S=this.expression(0);if(h.push(S),this._lookahead(0)===L&&(this._match(L),this._lookahead(0)===R))throw new Error("Unexpected token Rbracket")}return this._match(R),{type:"MultiSelectList",children:h}},_parseMultiselectHash:function(){for(var h=[],S=[T,O],C,j,F,Q;;){if(C=this._lookaheadToken(0),S.indexOf(C.type)<0)throw new Error("Expecting an identifier token, got: "+C.type);if(j=C.value,this._advance(),this._match(I),F=this.expression(0),Q={type:"KeyValuePair",name:j,value:F},h.push(Q),this._lookahead(0)===L)this._match(L);else if(this._lookahead(0)===b){this._match(b);break}}return{type:"MultiSelectHash",children:h}}};function Ft(h){this.runtime=h}Ft.prototype={search:function(h,S){return this.visit(h,S)},visit:function(h,S){var C,j,F,Q,ae,he,at,Qe,We,ce;switch(h.type){case"Field":return S!==null&&r(S)?(he=S[h.name],he===void 0?null:he):null;case"Subexpression":for(F=this.visit(h.children[0],S),ce=1;ce0)for(ce=Fo;ceIo;ce+=de)F.push(S[ce]);return F;case"Projection":var ut=this.visit(h.children[0],S);if(!n(ut))return null;for(We=[],ce=0;ceae;break;case G:F=Q>=ae;break;case J:F=Q=h&&(S=C<0?h-1:h),S}};function ye(h){this._interpreter=h,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[u]}]},avg:{_func:this._functionAvg,_signature:[{types:[P]}]},ceil:{_func:this._functionCeil,_signature:[{types:[u]}]},contains:{_func:this._functionContains,_signature:[{types:[c,p]},{types:[a]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[c]},{types:[c]}]},floor:{_func:this._functionFloor,_signature:[{types:[u]}]},length:{_func:this._functionLength,_signature:[{types:[c,p,d]}]},map:{_func:this._functionMap,_signature:[{types:[_]},{types:[p]}]},max:{_func:this._functionMax,_signature:[{types:[P,y]}]},merge:{_func:this._functionMerge,_signature:[{types:[d],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[p]},{types:[_]}]},sum:{_func:this._functionSum,_signature:[{types:[P]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[c]},{types:[c]}]},min:{_func:this._functionMin,_signature:[{types:[P,y]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[p]},{types:[_]}]},type:{_func:this._functionType,_signature:[{types:[a]}]},keys:{_func:this._functionKeys,_signature:[{types:[d]}]},values:{_func:this._functionValues,_signature:[{types:[d]}]},sort:{_func:this._functionSort,_signature:[{types:[y,P]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[p]},{types:[_]}]},join:{_func:this._functionJoin,_signature:[{types:[c]},{types:[y]}]},reverse:{_func:this._functionReverse,_signature:[{types:[c,p]}]},to_array:{_func:this._functionToArray,_signature:[{types:[a]}]},to_string:{_func:this._functionToString,_signature:[{types:[a]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[a]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[a],variadic:!0}]}}}ye.prototype={callFunction:function(h,S){var C=this.functionTable[h];if(C===void 0)throw new Error("Unknown function: "+h+"()");return this._validateArgs(h,S,C._signature),C._func.call(this,S)},_validateArgs:function(h,S,C){var j;if(C[C.length-1].variadic){if(S.length=0;F--)j+=C[F];return j}else{var Q=h[0].slice(0);return Q.reverse(),Q}},_functionAbs:function(h){return Math.abs(h[0])},_functionCeil:function(h){return Math.ceil(h[0])},_functionAvg:function(h){for(var S=0,C=h[0],j=0;j=0},_functionFloor:function(h){return Math.floor(h[0])},_functionLength:function(h){return r(h[0])?Object.keys(h[0]).length:h[0].length},_functionMap:function(h){for(var S=[],C=this._interpreter,j=h[0],F=h[1],Q=0;Q0){var S=this._getTypeName(h[0][0]);if(S===u)return Math.max.apply(Math,h[0]);for(var C=h[0],j=C[0],F=1;F0){var S=this._getTypeName(h[0][0]);if(S===u)return Math.min.apply(Math,h[0]);for(var C=h[0],j=C[0],F=1;FTn?1:ceF&&(F=ae,Q=C[he]);return Q},_functionMinBy:function(h){for(var S=h[1],C=h[0],j=this.createKeyFunction(S,[u,c]),F=1/0,Q,ae,he=0;he(e.bytes="bytes",e.bps="bps",e.counter="counter",e.rps="rps",e.duration="duration",e.timestamp="timestamp",e.unknown="",e))(Kr||{}),k1=class{constructor(e){ve(this,"name");ve(this,"aggregate");ve(this,"tags");ve(this,"group");ve(this,"scenario");const[t,n]=e.split(".",2);this.aggregate=n,this.name=t;let r="";const l=t.indexOf("{");if(l&&l>0){r=t.substring(l),r=r.substring(1,r.length-1);const i=r.indexOf(":"),o=r.substring(0,i),s=r.substring(i+1);this.tags={[o]:s},o=="group"&&(this.group=s.substring(2)),this.name=t.substring(0,l)}}},Qp="time",Uf=class{constructor({values:e={}}={}){ve(this,"values");this.values=e}onEvent(e){for(const t in e)this.values[t]={...e[t],name:t}}find(e){const t=new k1(e);return this.values[t.name]}unit(e,t){const n=this.find(e);if(!n||!t&&e!=Qp)return"";switch(n.type){case"counter":switch(n.contains){case"data":return t=="count"?"bytes":"bps";default:return t=="count"?"counter":"rps"}case"rate":switch(n.contains){case"data":return"bps";default:return"rps"}case"gauge":switch(n.contains){case"time":return n.name==Qp?"timestamp":"duration";case"data":return"bytes";default:return"counter"}case"trend":switch(n.contains){case"time":return"duration";case"data":return"bps";default:return"rps"}default:return""}}},ms="time",vs=class{constructor({length:e=0,capacity:t=1e4,values:n=new Array,aggregate:r="value",metric:l=void 0,unit:i="",name:o="",tags:s={},group:u=void 0}={}){ve(this,"capacity");ve(this,"aggregate");ve(this,"metric");ve(this,"unit");ve(this,"empty");ve(this,"name");ve(this,"tags");ve(this,"group");ve(this,"values");this.values=e==0?n:new Array(e),this.capacity=t,this.aggregate=r,this.metric=l,this.unit=i,this.empty=this.values.length==0,this.name=o,this.tags=s,this.group=u,Object.defineProperty(this,r,{value:!0,configurable:!0,enumerable:!0,writable:!0})}hasTags(){return this.tags!=null&&Object.keys(this.tags).length!=0}formatTags(){if(!this.hasTags())return"";let e="{";for(const t in this.tags)e+=`${t}:${this.tags[t]}`;return e+="}",e}get legend(){let e=this.aggregate;return this.metric&&this.metric.type!="trend"&&this.name.length!=0&&(e=this.name+this.formatTags()),e}grow(e){this.values[e-1]=void 0}push(...e){let t=!1;if(e.forEach(n=>{this.values.push(n),this.empty=!1,this.values.length==this.capacity&&(this.values.shift(),t=!0)}),t){this.empty=!0;for(let n=0;n{t.unit&&!e.includes(t.unit)&&e.push(t.unit)}),e}},P2=class{constructor({capacity:e=1e4,metrics:t=new Uf}={}){ve(this,"capacity");ve(this,"metrics");ve(this,"values");ve(this,"vectors");ve(this,"lookup");this.capacity=e,this.metrics=t,this.lookup={},this.vectors={},this.values={}}get length(){return this.values[ms]?this.values[ms].values.length:0}_push(e,t,n=void 0){const r=n?e+"."+n:e;let l=this.vectors[r];if(l)l.values.length0){r=e.substring(l),r=r.substring(1,r.length-1);const i=r.indexOf(":"),o=r.substring(0,i),s=r.substring(i+1);n.tags={[o]:s},o=="group"&&(n.group=s.substring(2)),e=e.substring(0,l)}return n.name=e,n.metric=this.metrics.find(e),n.unit=this.metrics.unit(e,t),new vs(n)}onEvent(e){for(const t in e){if(t==ms){this._push(t,Math.floor(e[t].value/1e3));continue}for(const n in e[t]){const r=n;this._push(t,e[t][r],r)}}}annotate(e){this.metrics=e;for(const t in this.values){this.values[t].metric=e.find(t);const n=new k1(t);this.values[t].unit=e.unit(n.name,n.aggregate)}}select(e){const t=new T2(this.values[ms]);if(t.length==0)return t;for(const n of e){const r=this.queryAll(n);r.length>0&&t.push(...r)}return t}query(e){const t=Dc.search(this.lookup,e);if(Array.isArray(t)){const r=t.at(0);return r instanceof vs?r:void 0}return t instanceof vs?t:void 0}queryAll(e){const t=Dc.search(this.lookup,e);if(!Array.isArray(t)||t.length==0)return new Array;const n=t;return n.at(0)instanceof vs?n:new Array}},Zp=class{constructor({values:e,metric:t,name:n}={}){ve(this,"values");ve(this,"metric");ve(this,"name");ve(this,"tags");ve(this,"group");this.values=e,this.metric=t,this.name=n,t&&t.type&&Object.defineProperty(this,t.type,{value:!0,configurable:!0,enumerable:!0,writable:!0});let r="";const l=n.indexOf("{");if(l&&l>0){r=n.substring(l),r=r.substring(1,r.length-1);const i=r.indexOf(":"),o=r.substring(0,i),s=r.substring(i+1);this.tags={[o]:s},o=="group"&&(this.group=s.substring(2)),n=n.substring(0,l)}}},O2="time",N2=class extends Array{constructor(t){super();ve(this,"aggregates");this.aggregates=new Array;for(let n=0;nl))}}get empty(){return this.length==0}},M2=class{constructor({values:t={},metrics:n=new Uf,time:r=0}={}){ve(this,"values");ve(this,"lookup");ve(this,"metrics");ve(this,"time");this.values=t,this.lookup=new Array,this.metrics=n,this.time=r}onEvent(t){const n={};let r=0;for(const i in t){if(i==O2){r=Math.floor(t[i].value/1e3);continue}const o=this.newSummaryRow(i,t[i]);n[i]=o}this.values=n,this.time=r;const l=Array();for(const i in this.values)l.push(this.values[i]);this.lookup=l}newSummaryRow(t,n){const r={};return r.name=t,r.metric=this.metrics.find(t),r.values=n,new Zp(r)}annotate(t){this.metrics=t;for(const n in this.values)this.values[n].metric=t.find(n)}select(t){const n=new Array;for(const r of t){const l=this.queryAll(r);l.length>0&&n.push(...l)}return new N2(n)}queryAll(t){const n=Dc.search(this.lookup,t);if(!Array.isArray(n)||n.length==0)return new Array;const r=n;return r.at(0)instanceof Zp?r:new Array}},R2=class{constructor(e={}){Object.assign(this,e)}},S1=(e=>(e.config="config",e.param="param",e.start="start",e.stop="stop",e.metric="metric",e.snapshot="snapshot",e.cumulative="cumulative",e))(S1||{}),zc=class{constructor({config:e={},param:t={},start:n=void 0,stop:r=void 0,metrics:l=new Uf,samples:i=new P2,summary:o=new M2}={}){ve(this,"config");ve(this,"param");ve(this,"start");ve(this,"stop");ve(this,"metrics");ve(this,"samples");ve(this,"summary");this.config=e,this.param=t,this.start=n,this.stop=r,this.metrics=l,this.samples=i,this.summary=o}handleEvent(e){const t=e.type,n=JSON.parse(e.data);this.onEvent(t,n)}onEvent(e,t){for(const n in t)for(const r in t[n])if(r.indexOf("(")>=0){const l=r.replaceAll("(","").replaceAll(")","");t[n][l]=t[n][r],delete t[n][r]}switch(e){case"config":this.onConfig(t);break;case"param":this.onParam(t);break;case"start":this.onStart(t);break;case"stop":this.onStop(t);break;case"metric":this.onMetric(t);break;case"snapshot":this.onSnapshot(t);break;case"cumulative":this.onCumulative(t);break}}onConfig(e){Object.assign(this.config,e)}onParam(e){Object.assign(this.param,e)}onStart(e){e.time&&e.time.value&&(this.start=new Date(e.time.value))}onStop(e){e.time&&e.time.value&&(this.stop=new Date(e.time.value))}onMetric(e){this.metrics.onEvent(e),this.samples.annotate(this.metrics),this.summary.annotate(this.metrics)}onSnapshot(e){this.samples.onEvent(e),this.samples.annotate(this.metrics)}onCumulative(e){this.summary.onEvent(e),this.summary.annotate(this.metrics)}};const Wf=U.createContext(()=>new zc({config:_1}));Wf.displayName="Digest";function L2({endpoint:e="/events",children:t}){const[n,r]=U.useState(new zc({config:new R2(_1)}));return U.useEffect(()=>{const l=new EventSource(e),i=o=>{n.handleEvent(o),r(new zc(n))};for(const o in S1)l.addEventListener(o,i)},[]),D.jsx(Wf.Provider,{value:()=>n,children:t})}function pl(){const e=U.useContext(Wf);if(e===void 0)throw new Error("useDigest must be used within a DigestProvider");return e()}var j2="_1dwurlb25",A2="_1dwurlb24";globalThis&&globalThis.__awaiter;function E1(){const[e,t]=U.useState(null),[n,r]=U.useState({width:0,height:0}),l=U.useCallback(()=>{r({width:(e==null?void 0:e.offsetWidth)||0,height:(e==null?void 0:e.offsetHeight)||0})},[e==null?void 0:e.offsetHeight,e==null?void 0:e.offsetWidth]);return To("resize",l),qf(()=>{l()},[e==null?void 0:e.offsetHeight,e==null?void 0:e.offsetWidth]),[t,n]}function C1(e){const t=U.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return qf(()=>{t.current=e},[e]),U.useCallback((...n)=>t.current(...n),[t])}function To(e,t,n,r){const l=U.useRef(t);qf(()=>{l.current=t},[t]),U.useEffect(()=>{var i;const o=(i=n==null?void 0:n.current)!==null&&i!==void 0?i:window;if(!(o&&o.addEventListener))return;const s=u=>l.current(u);return o.addEventListener(e,s,r),()=>{o.removeEventListener(e,s,r)}},[e,n,r])}globalThis&&globalThis.__awaiter;const qf=typeof window<"u"?U.useLayoutEffect:U.useEffect;function b2(e){const t=i=>typeof window<"u"?window.matchMedia(i).matches:!1,[n,r]=U.useState(t(e));function l(){r(t(e))}return U.useEffect(()=>{const i=window.matchMedia(e);return l(),i.addListener?i.addListener(l):i.addEventListener("change",l),()=>{i.removeListener?i.removeListener(l):i.removeEventListener("change",l)}},[e]),n}function D2(e,t){const n=U.useCallback(()=>{if(typeof window>"u")return t;try{const s=window.sessionStorage.getItem(e);return s?z2(s):t}catch(s){return console.warn(`Error reading sessionStorage key “${e}”:`,s),t}},[t,e]),[r,l]=U.useState(n),i=C1(s=>{typeof window>"u"&&console.warn(`Tried setting sessionStorage key “${e}” even though environment is not a client`);try{const u=s instanceof Function?s(r):s;window.sessionStorage.setItem(e,JSON.stringify(u)),l(u),window.dispatchEvent(new Event("session-storage"))}catch(u){console.warn(`Error setting sessionStorage key “${e}”:`,u)}});U.useEffect(()=>{l(n())},[]);const o=U.useCallback(s=>{s!=null&&s.key&&s.key!==e||l(n())},[e,n]);return To("storage",o),To("session-storage",o),[r,i]}function z2(e){try{return e==="undefined"?void 0:JSON.parse(e??"")}catch{console.log("parsing error on",{value:e});return}}const T1=U.createContext({});function F2({children:e}){const t=b2("(prefers-color-scheme: dark)"),[n,r]=D2("theme",t?"dark":"light"),l={theme:n,themeClassName:n==="light"?A2:j2,setTheme:r};return D.jsx(T1.Provider,{value:l,children:e})}function pi(){const e=U.useContext(T1);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}var I2={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},B2={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},$2={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"},H2={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"},Au={black:"#000000",white:"#ffffff"},V2={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"},U2={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},W2={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"},q2={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},P1={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},K2={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},G2={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Y2={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"},Q2={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"},Jp={50:"#ffffff",100:"#D6DCFF",200:"#CED4EF",300:"#C2CAEF",400:"#B6C0EF",500:"#AAB6EF",600:"#3f486b",700:"#394160",800:"#2c324b",900:"#1F2537"},Z2={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},J2={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},X2={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ew={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},tw={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},nw={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"};const gs={red:ew,pink:J2,purple:X2,deepPurple:W2,indigo:K2,blue:B2,lightBlue:G2,cyan:V2,teal:tw,green:q2,lightGreen:Y2,lime:Q2,yellow:nw,amber:I2,orange:Z2,deepOrange:U2,brown:H2,grey:P1,blueGrey:$2},rw=["grey","teal","blue","purple","indigo","orange","pink","green","cyan","amber","lime","brown","lightGreen","red","deepPurple","lightBlue","yellow","deepOrange","blueGrey"],O1=e=>rw.map(t=>({stroke:e=="dark"?gs[t][500]:gs[t][800],fill:(e=="dark"?gs[t][300]:gs[t][600])+"20"})),lw=e=>Object.entries(e).reduce((t,[n,r])=>r===void 0?t:{...t,[n]:r},{}),iw=(e,t)=>Object.entries(t).reduce((n,[r,l])=>(e.includes(r)&&(n[r]=l),n),{}),ow=(e,t)=>({...e,...t}),sw=e=>(t,n)=>ow(t,iw(e,n));function Xp(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function aw(e,t){var n=e;for(var r of t){if(!(r in n))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));n=n[r]}return n}function N1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=e.constructor();for(var l in e){var i=e[l],o=[...n,l];typeof i=="string"||typeof i=="number"||i==null?r[l]=t(i,o):typeof i=="object"&&!Array.isArray(i)?r[l]=N1(i,t,o):console.warn('Skipping invalid key "'.concat(o.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"'))}return r}function uw(e,t){var n={};if(typeof t=="object"){var r=e;N1(t,(o,s)=>{var u=aw(r,s);n[Xp(u)]=String(o)})}else{var l=e;for(var i in l)n[Xp(i)]=l[i]}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(s=>"".concat(s,":").concat(this[s])).join(";")},writable:!1}),n}const Yn=(...e)=>e.filter(Boolean).join(" "),cw=(e,t)=>uw(e,lw(t));function fw(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dw(e){var t=fw(e,"string");return typeof t=="symbol"?t:String(t)}function pw(e,t,n){return t=dw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function bu(e){for(var t=1;tfunction(){for(var t=arguments.length,n=new Array(t),r=0;ru.styles)),i=Object.keys(l),o=i.filter(u=>"mappings"in l[u]),s=u=>{var a=[],c={},p=bu({},u),d=!1;for(var g of o){var _=u[g];if(_!=null){var x=l[g];d=!0;for(var P of x.mappings)c[P]=_,p[P]==null&&delete p[P]}}var y=d?bu(bu({},c),p):u,v=function(){var R=y[w],M=l[w];try{if(M.mappings)return"continue";if(typeof R=="string"||typeof R=="number")a.push(M.values[R].defaultClass);else if(Array.isArray(R))for(var L=0;Le,bo=function(){return hw(mw)(...arguments)},vw="wy7gkc15",gw={flexGrow:"var(--wy7gkc10)",flexShrink:"var(--wy7gkc11)",flexBasis:"var(--wy7gkc12)",height:"var(--wy7gkc13)",width:"var(--wy7gkc14)"},yw=bo({conditions:void 0,styles:{flexDirection:{values:{row:{defaultClass:"wy7gkc0"},column:{defaultClass:"wy7gkc1"}}},flexWrap:{values:{nowrap:{defaultClass:"wy7gkc2"},wrap:{defaultClass:"wy7gkc3"},"wrap-reverse":{defaultClass:"wy7gkc4"}}},alignItems:{values:{"flex-start":{defaultClass:"wy7gkc5"},"flex-end":{defaultClass:"wy7gkc6"},stretch:{defaultClass:"wy7gkc7"},center:{defaultClass:"wy7gkc8"},baseline:{defaultClass:"wy7gkc9"},start:{defaultClass:"wy7gkca"},end:{defaultClass:"wy7gkcb"},"self-start":{defaultClass:"wy7gkcc"},"self-end":{defaultClass:"wy7gkcd"}}},justifyContent:{values:{"flex-start":{defaultClass:"wy7gkce"},"flex-end":{defaultClass:"wy7gkcf"},start:{defaultClass:"wy7gkcg"},end:{defaultClass:"wy7gkch"},left:{defaultClass:"wy7gkci"},right:{defaultClass:"wy7gkcj"},center:{defaultClass:"wy7gkck"},"space-between":{defaultClass:"wy7gkcl"},"space-around":{defaultClass:"wy7gkcm"},"space-evenly":{defaultClass:"wy7gkcn"}}},gap:{values:{0:{defaultClass:"wy7gkco"},1:{defaultClass:"wy7gkcp"},2:{defaultClass:"wy7gkcq"},3:{defaultClass:"wy7gkcr"},4:{defaultClass:"wy7gkcs"},5:{defaultClass:"wy7gkct"}}},padding:{values:{0:{defaultClass:"wy7gkcu"},1:{defaultClass:"wy7gkcv"},2:{defaultClass:"wy7gkcw"},3:{defaultClass:"wy7gkcx"},4:{defaultClass:"wy7gkcy"},5:{defaultClass:"wy7gkcz"}}}}});function ww({as:e="div",align:t,basis:n,children:r,className:l,direction:i,gap:o=3,grow:s,height:u,justify:a,padding:c,shrink:p,width:d,wrap:g,..._},x){const P=yw({alignItems:t,flexDirection:i,flexWrap:g,gap:o,justifyContent:a,padding:c}),y=Yn(vw,P,l),v=cw(gw,{flexBasis:n,flexGrow:s,flexShrink:p,height:u,width:d});return D.jsx(e,{ref:x,className:y,style:v,..._,children:r})}const St=U.forwardRef(ww);var _w={fill:"_17y8ldl1 _17y8ldl0",text:"_17y8ldl0"};const xw=({as:e="button",children:t,className:n,variant:r="fill",...l},i)=>D.jsx(e,{ref:i,className:Yn(_w[r],n),...l,children:t}),Ma=U.forwardRef(xw);var kw="_17unuvp0";const Sw=({className:e,...t})=>D.jsx("div",{className:Yn(kw,e),...t}),Ew=e=>U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",...e},U.createElement("rect",{fill:"none",height:24,width:24}),U.createElement("path",{d:"M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36c-0.98,1.37-2.58,2.26-4.4,2.26 c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})),Cw=e=>U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",...e},U.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),U.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),Tw=e=>U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",...e},U.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),U.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})),Pw=e=>U.createElement("svg",{fill:"currentColor",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"24px",viewBox:"796 796 200 200",enableBackground:"new 796 796 200 200",xmlSpace:"preserve",...e},U.createElement("g",null,U.createElement("path",{d:"M939.741,830.286c0.203-1.198-0.133-2.426-0.918-3.354s-1.938-1.461-3.153-1.461h-79.338c-1.214,0-2.365,0.536-3.149,1.463 c-0.784,0.928-1.124,2.155-0.92,3.352c2.866,16.875,12.069,32.797,25.945,42.713c7.737,5.529,13.827,8.003,17.793,8.003 c3.965,0,10.055-2.474,17.793-8.003C927.67,863.083,936.874,847.162,939.741,830.286z"}),U.createElement("path",{d:"M966.478,980.009h-5.074v-11.396c0-23.987-13.375-48.914-35.775-66.679l-7.485-5.936l7.485-5.934 c22.4-17.762,35.775-42.688,35.775-66.678v-11.396h5.074c4.416,0,7.996-3.58,7.996-7.995c0-4.416-3.58-7.996-7.996-7.996H825.521 c-4.415,0-7.995,3.58-7.995,7.996c0,4.415,3.58,7.995,7.995,7.995h5.077v9.202c0,27.228,13.175,53.007,35.243,68.962l8.085,5.843 l-8.085,5.847c-22.068,15.952-35.243,41.732-35.243,68.962v9.202h-5.077c-4.415,0-7.995,3.58-7.995,7.996 c0,4.415,3.58,7.995,7.995,7.995h140.956c4.416,0,7.996-3.58,7.996-7.995C974.474,983.589,970.894,980.009,966.478,980.009z M842.592,970.807c0-23.392,11.318-45.538,30.277-59.242l8.429-6.097c3.03-2.19,4.839-5.729,4.839-9.47 c0-3.739-1.809-7.279-4.84-9.471l-8.429-6.091c-18.958-13.707-30.276-35.853-30.276-59.243v-3.349c0-3.232,2.62-5.853,5.853-5.853 h95.112c3.232,0,5.854,2.621,5.854,5.853v5.543c0,20.36-11.676,41.774-31.232,57.279l-7.792,6.177 c-2.811,2.232-4.422,5.568-4.422,9.155c0,3.588,1.611,6.926,4.425,9.157l7.788,6.177c19.558,15.508,31.233,36.921,31.233,57.28 v5.544c0,3.232-2.621,5.854-5.854,5.854h-95.112c-3.232,0-5.853-2.621-5.853-5.854V970.807z"}))),Ow=e=>U.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},U.createElement("path",{d:"M12 11V16M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),U.createElement("circle",{cx:12,cy:7.5,r:1,fill:"currentColor"})),Nw=e=>U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",...e},U.createElement("rect",{fill:"none",height:24,width:24}),U.createElement("path",{d:"M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0 c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2 c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1 C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06 c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41 l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41 c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36 c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})),Mw=e=>U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:37,height:34,viewBox:"0 0 37 34",fill:"currentColor",...e},U.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.9129 12.4547L29.0217 0L36.6667 33.1967H0L12.2687 6.86803L19.9129 12.4547ZM15.1741 24.4166L17.3529 27.4205L19.6915 27.4198L17.1351 23.8957L19.3864 20.7907L17.8567 19.6768L15.1741 23.3764V17.7248L13.1575 16.2575V27.4205H15.1741V24.4166ZM20.0105 24.1067C20.0105 26.0056 21.5468 27.5452 23.4425 27.5452C25.3396 27.5452 26.8759 26.0056 26.8759 24.1075C26.8746 23.2903 26.5844 22.5003 26.0573 21.8786C25.5301 21.2569 24.8003 20.8441 23.9983 20.714L25.6403 18.45L24.1105 17.3361L20.6675 22.0832C20.2395 22.6699 20.0093 23.379 20.0105 24.1067ZM24.9179 24.1067C24.9179 24.9226 24.2579 25.5843 23.4432 25.5843C23.2499 25.5848 23.0583 25.547 22.8795 25.473C22.7007 25.399 22.5382 25.2903 22.4011 25.153C22.2641 25.0158 22.1553 24.8528 22.081 24.6733C22.0066 24.4937 21.9681 24.3012 21.9677 24.1067C21.9677 23.2908 22.6277 22.6291 23.4432 22.6291C24.2572 22.6291 24.9179 23.2908 24.9179 24.1067Z",fill:"#7D64FF"})),Rw=e=>U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"currentColor",...e},U.createElement("path",{d:"M12 2C12 0.89544 11.1046 0 10 0C8.8954 0 8 0.89544 8 2C8 3.10456 8.8954 4 10 4C11.1046 4 12 3.10456 12 2Z",fill:"currentColor"}),U.createElement("path",{d:"M12 9.33337C12 8.22881 11.1046 7.33337 10 7.33337C8.8954 7.33337 8 8.22881 8 9.33337C8 10.4379 8.8954 11.3334 10 11.3334C11.1046 11.3334 12 10.4379 12 9.33337Z",fill:"currentColor"}),U.createElement("path",{d:"M12 16.6666C12 15.5621 11.1046 14.6666 10 14.6666C8.8954 14.6666 8 15.5621 8 16.6666C8 17.7712 8.8954 18.6666 10 18.6666C11.1046 18.6666 12 17.7712 12 16.6666Z",fill:"currentColor"})),Lw=e=>U.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},U.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},U.createElement("g",{id:"add",fill:"currentColor",transform:"translate(42.666667, 42.666667)"},U.createElement("path",{d:"M291.76704,163.504 C291.76704,177.01952 288.33216,188.82176 281.479253,198.90112 C275.828267,207.371093 266.358187,216.549547 253.042987,226.434987 C245.378987,231.682347 240.331947,236.618667 237.916587,241.257813 C234.87744,246.90624 233.376213,255.371093 233.376213,266.666667 L190.710827,266.666667 C190.710827,249.530027 192.53504,237.027413 196.165333,229.162667 C200.394453,219.679573 209.571627,210.098773 223.686187,200.42048 C230.350293,195.374933 235.188693,190.2368 238.214827,184.994773 C241.839787,179.143253 243.664,172.49216 243.664,165.028693 C243.664,153.13024 240.125013,144.26304 233.070293,138.404907 C227.4336,134.177067 220.56768,132.059947 212.501333,132.059947 C199.39328,132.059947 189.911467,136.398507 184.065067,145.069013 C179.829333,151.518293 177.7056,159.787733 177.7056,169.868587 L177.7056,170.173227 L132.34368,170.173227 C132.34368,143.751253 140.703147,123.790507 157.43488,110.274773 C171.554773,98.9922133 189.007787,93.3346133 209.77344,93.3346133 C227.933653,93.3346133 243.865813,96.86848 257.571627,103.9232 C280.37504,115.62624 291.76704,135.494827 291.76704,163.504 Z M426.666667,213.333333 C426.666667,331.153707 331.153707,426.666667 213.333333,426.666667 C95.51296,426.666667 3.55271368e-14,331.153707 3.55271368e-14,213.333333 C3.55271368e-14,95.51168 95.51296,3.55271368e-14 213.333333,3.55271368e-14 C331.153707,3.55271368e-14 426.666667,95.51168 426.666667,213.333333 Z M384,213.333333 C384,119.226667 307.43872,42.6666667 213.333333,42.6666667 C119.227947,42.6666667 42.6666667,119.226667 42.6666667,213.333333 C42.6666667,307.43872 119.227947,384 213.333333,384 C307.43872,384 384,307.43872 384,213.333333 Z M213.332053,282.666667 C198.60416,282.666667 186.665387,294.60544 186.665387,309.333333 C186.665387,324.061227 198.60416,336 213.332053,336 C228.059947,336 239.99872,324.061227 239.99872,309.333333 C239.99872,294.60544 228.059947,282.666667 213.332053,282.666667 Z",id:"Shape"})))),jw=e=>U.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},U.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"}),U.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12H19C19 15.866 15.866 19 12 19V22Z",fill:"currentColor"}),U.createElement("path",{d:"M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z",fill:"currentColor"})),Aw=e=>U.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:"bi bi-stopwatch",...e},U.createElement("path",{d:"M8.5 5.6a.5.5 0 1 0-1 0v2.9h-3a.5.5 0 0 0 0 1H8a.5.5 0 0 0 .5-.5V5.6z"}),U.createElement("path",{d:"M6.5 1A.5.5 0 0 1 7 .5h2a.5.5 0 0 1 0 1v.57c1.36.196 2.594.78 3.584 1.64a.715.715 0 0 1 .012-.013l.354-.354-.354-.353a.5.5 0 0 1 .707-.708l1.414 1.415a.5.5 0 1 1-.707.707l-.353-.354-.354.354a.512.512 0 0 1-.013.012A7 7 0 1 1 7 2.071V1.5a.5.5 0 0 1-.5-.5zM8 3a6 6 0 1 0 .001 12A6 6 0 0 0 8 3z"}));function bw({className:e,name:t,title:n,...r},l){const i=Dw[t];return D.jsx("span",{ref:l,children:D.jsx(i,{"aria-hidden":"true",className:e,title:n,...r})})}const Dw={"chevron-down":Tw,"chevron-up":Cw,"hour-glass":Pw,info:Ow,options:Rw,logo:Mw,moon:Ew,question:Lw,spinner:jw,"stop-watch":Aw,sun:Nw},Kn=U.forwardRef(bw);var t0=function(t){return t.reduce(function(n,r){var l=r[0],i=r[1];return n[l]=i,n},{})},n0=typeof window<"u"&&window.document&&window.document.createElement?U.useLayoutEffect:U.useEffect,Zt="top",Sn="bottom",En="right",Jt="left",Kf="auto",Do=[Zt,Sn,En,Jt],Xl="start",Po="end",zw="clippingParents",M1="viewport",Ii="popper",Fw="reference",r0=Do.reduce(function(e,t){return e.concat([t+"-"+Xl,t+"-"+Po])},[]),R1=[].concat(Do,[Kf]).reduce(function(e,t){return e.concat([t,t+"-"+Xl,t+"-"+Po])},[]),Iw="beforeRead",Bw="read",$w="afterRead",Hw="beforeMain",Vw="main",Uw="afterMain",Ww="beforeWrite",qw="write",Kw="afterWrite",Gw=[Iw,Bw,$w,Hw,Vw,Uw,Ww,qw,Kw];function Gn(e){return e?(e.nodeName||"").toLowerCase():null}function an(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ul(e){var t=an(e).Element;return e instanceof t||e instanceof Element}function _n(e){var t=an(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Gf(e){if(typeof ShadowRoot>"u")return!1;var t=an(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Yw(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},l=t.attributes[n]||{},i=t.elements[n];!_n(i)||!Gn(i)||(Object.assign(i.style,r),Object.keys(l).forEach(function(o){var s=l[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function Qw(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var l=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=o.reduce(function(u,a){return u[a]="",u},{});!_n(l)||!Gn(l)||(Object.assign(l.style,s),Object.keys(i).forEach(function(u){l.removeAttribute(u)}))})}}const Zw={name:"applyStyles",enabled:!0,phase:"write",fn:Yw,effect:Qw,requires:["computeStyles"]};function qn(e){return e.split("-")[0]}var tl=Math.max,aa=Math.min,ei=Math.round;function Fc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function L1(){return!/^((?!chrome|android).)*safari/i.test(Fc())}function ti(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),l=1,i=1;t&&_n(e)&&(l=e.offsetWidth>0&&ei(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ei(r.height)/e.offsetHeight||1);var o=ul(e)?an(e):window,s=o.visualViewport,u=!L1()&&n,a=(r.left+(u&&s?s.offsetLeft:0))/l,c=(r.top+(u&&s?s.offsetTop:0))/i,p=r.width/l,d=r.height/i;return{width:p,height:d,top:c,right:a+p,bottom:c+d,left:a,x:a,y:c}}function Yf(e){var t=ti(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function j1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Gf(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function fr(e){return an(e).getComputedStyle(e)}function Jw(e){return["table","td","th"].indexOf(Gn(e))>=0}function Br(e){return((ul(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ra(e){return Gn(e)==="html"?e:e.assignedSlot||e.parentNode||(Gf(e)?e.host:null)||Br(e)}function l0(e){return!_n(e)||fr(e).position==="fixed"?null:e.offsetParent}function Xw(e){var t=/firefox/i.test(Fc()),n=/Trident/i.test(Fc());if(n&&_n(e)){var r=fr(e);if(r.position==="fixed")return null}var l=Ra(e);for(Gf(l)&&(l=l.host);_n(l)&&["html","body"].indexOf(Gn(l))<0;){var i=fr(l);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return l;l=l.parentNode}return null}function zo(e){for(var t=an(e),n=l0(e);n&&Jw(n)&&fr(n).position==="static";)n=l0(n);return n&&(Gn(n)==="html"||Gn(n)==="body"&&fr(n).position==="static")?t:n||Xw(e)||t}function Qf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lo(e,t,n){return tl(e,aa(t,n))}function e_(e,t,n){var r=lo(e,t,n);return r>n?n:r}function A1(){return{top:0,right:0,bottom:0,left:0}}function b1(e){return Object.assign({},A1(),e)}function D1(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var t_=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,b1(typeof t!="number"?t:D1(t,Do))};function n_(e){var t,n=e.state,r=e.name,l=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=qn(n.placement),u=Qf(s),a=[Jt,En].indexOf(s)>=0,c=a?"height":"width";if(!(!i||!o)){var p=t_(l.padding,n),d=Yf(i),g=u==="y"?Zt:Jt,_=u==="y"?Sn:En,x=n.rects.reference[c]+n.rects.reference[u]-o[u]-n.rects.popper[c],P=o[u]-n.rects.reference[u],y=zo(i),v=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,w=x/2-P/2,T=p[g],O=v-d[c]-p[_],R=v/2-d[c]/2+w,M=lo(T,R,O),L=u;n.modifiersData[r]=(t={},t[L]=M,t.centerOffset=M-R,t)}}function r_(e){var t=e.state,n=e.options,r=n.element,l=r===void 0?"[data-popper-arrow]":r;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||j1(t.elements.popper,l)&&(t.elements.arrow=l))}const l_={name:"arrow",enabled:!0,phase:"main",fn:n_,effect:r_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ni(e){return e.split("-")[1]}var i_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function o_(e,t){var n=e.x,r=e.y,l=t.devicePixelRatio||1;return{x:ei(n*l)/l||0,y:ei(r*l)/l||0}}function i0(e){var t,n=e.popper,r=e.popperRect,l=e.placement,i=e.variation,o=e.offsets,s=e.position,u=e.gpuAcceleration,a=e.adaptive,c=e.roundOffsets,p=e.isFixed,d=o.x,g=d===void 0?0:d,_=o.y,x=_===void 0?0:_,P=typeof c=="function"?c({x:g,y:x}):{x:g,y:x};g=P.x,x=P.y;var y=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),w=Jt,T=Zt,O=window;if(a){var R=zo(n),M="clientHeight",L="clientWidth";if(R===an(n)&&(R=Br(n),fr(R).position!=="static"&&s==="absolute"&&(M="scrollHeight",L="scrollWidth")),R=R,l===Zt||(l===Jt||l===En)&&i===Po){T=Sn;var I=p&&R===O&&O.visualViewport?O.visualViewport.height:R[M];x-=I-r.height,x*=u?1:-1}if(l===Jt||(l===Zt||l===Sn)&&i===Po){w=En;var b=p&&R===O&&O.visualViewport?O.visualViewport.width:R[L];g-=b-r.width,g*=u?1:-1}}var z=Object.assign({position:s},a&&i_),H=c===!0?o_({x:g,y:x},an(n)):{x:g,y:x};if(g=H.x,x=H.y,u){var K;return Object.assign({},z,(K={},K[T]=v?"0":"",K[w]=y?"0":"",K.transform=(O.devicePixelRatio||1)<=1?"translate("+g+"px, "+x+"px)":"translate3d("+g+"px, "+x+"px, 0)",K))}return Object.assign({},z,(t={},t[T]=v?x+"px":"",t[w]=y?g+"px":"",t.transform="",t))}function s_(e){var t=e.state,n=e.options,r=n.gpuAcceleration,l=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,s=n.roundOffsets,u=s===void 0?!0:s,a={placement:qn(t.placement),variation:ni(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,i0(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,i0(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const a_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:s_,data:{}};var ys={passive:!0};function u_(e){var t=e.state,n=e.instance,r=e.options,l=r.scroll,i=l===void 0?!0:l,o=r.resize,s=o===void 0?!0:o,u=an(t.elements.popper),a=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&a.forEach(function(c){c.addEventListener("scroll",n.update,ys)}),s&&u.addEventListener("resize",n.update,ys),function(){i&&a.forEach(function(c){c.removeEventListener("scroll",n.update,ys)}),s&&u.removeEventListener("resize",n.update,ys)}}const c_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:u_,data:{}};var f_={left:"right",right:"left",bottom:"top",top:"bottom"};function As(e){return e.replace(/left|right|bottom|top/g,function(t){return f_[t]})}var d_={start:"end",end:"start"};function o0(e){return e.replace(/start|end/g,function(t){return d_[t]})}function Zf(e){var t=an(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Jf(e){return ti(Br(e)).left+Zf(e).scrollLeft}function p_(e,t){var n=an(e),r=Br(e),l=n.visualViewport,i=r.clientWidth,o=r.clientHeight,s=0,u=0;if(l){i=l.width,o=l.height;var a=L1();(a||!a&&t==="fixed")&&(s=l.offsetLeft,u=l.offsetTop)}return{width:i,height:o,x:s+Jf(e),y:u}}function h_(e){var t,n=Br(e),r=Zf(e),l=(t=e.ownerDocument)==null?void 0:t.body,i=tl(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),o=tl(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),s=-r.scrollLeft+Jf(e),u=-r.scrollTop;return fr(l||n).direction==="rtl"&&(s+=tl(n.clientWidth,l?l.clientWidth:0)-i),{width:i,height:o,x:s,y:u}}function Xf(e){var t=fr(e),n=t.overflow,r=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+r)}function z1(e){return["html","body","#document"].indexOf(Gn(e))>=0?e.ownerDocument.body:_n(e)&&Xf(e)?e:z1(Ra(e))}function io(e,t){var n;t===void 0&&(t=[]);var r=z1(e),l=r===((n=e.ownerDocument)==null?void 0:n.body),i=an(r),o=l?[i].concat(i.visualViewport||[],Xf(r)?r:[]):r,s=t.concat(o);return l?s:s.concat(io(Ra(o)))}function Ic(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function m_(e,t){var n=ti(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function s0(e,t,n){return t===M1?Ic(p_(e,n)):ul(t)?m_(t,n):Ic(h_(Br(e)))}function v_(e){var t=io(Ra(e)),n=["absolute","fixed"].indexOf(fr(e).position)>=0,r=n&&_n(e)?zo(e):e;return ul(r)?t.filter(function(l){return ul(l)&&j1(l,r)&&Gn(l)!=="body"}):[]}function g_(e,t,n,r){var l=t==="clippingParents"?v_(e):[].concat(t),i=[].concat(l,[n]),o=i[0],s=i.reduce(function(u,a){var c=s0(e,a,r);return u.top=tl(c.top,u.top),u.right=aa(c.right,u.right),u.bottom=aa(c.bottom,u.bottom),u.left=tl(c.left,u.left),u},s0(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function F1(e){var t=e.reference,n=e.element,r=e.placement,l=r?qn(r):null,i=r?ni(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,u;switch(l){case Zt:u={x:o,y:t.y-n.height};break;case Sn:u={x:o,y:t.y+t.height};break;case En:u={x:t.x+t.width,y:s};break;case Jt:u={x:t.x-n.width,y:s};break;default:u={x:t.x,y:t.y}}var a=l?Qf(l):null;if(a!=null){var c=a==="y"?"height":"width";switch(i){case Xl:u[a]=u[a]-(t[c]/2-n[c]/2);break;case Po:u[a]=u[a]+(t[c]/2-n[c]/2);break}}return u}function Oo(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,s=n.boundary,u=s===void 0?zw:s,a=n.rootBoundary,c=a===void 0?M1:a,p=n.elementContext,d=p===void 0?Ii:p,g=n.altBoundary,_=g===void 0?!1:g,x=n.padding,P=x===void 0?0:x,y=b1(typeof P!="number"?P:D1(P,Do)),v=d===Ii?Fw:Ii,w=e.rects.popper,T=e.elements[_?v:d],O=g_(ul(T)?T:T.contextElement||Br(e.elements.popper),u,c,o),R=ti(e.elements.reference),M=F1({reference:R,element:w,strategy:"absolute",placement:l}),L=Ic(Object.assign({},w,M)),I=d===Ii?L:R,b={top:O.top-I.top+y.top,bottom:I.bottom-O.bottom+y.bottom,left:O.left-I.left+y.left,right:I.right-O.right+y.right},z=e.modifiersData.offset;if(d===Ii&&z){var H=z[l];Object.keys(b).forEach(function(K){var oe=[En,Sn].indexOf(K)>=0?1:-1,se=[Zt,Sn].indexOf(K)>=0?"y":"x";b[K]+=H[se]*oe})}return b}function y_(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,a=u===void 0?R1:u,c=ni(r),p=c?s?r0:r0.filter(function(_){return ni(_)===c}):Do,d=p.filter(function(_){return a.indexOf(_)>=0});d.length===0&&(d=p);var g=d.reduce(function(_,x){return _[x]=Oo(e,{placement:x,boundary:l,rootBoundary:i,padding:o})[qn(x)],_},{});return Object.keys(g).sort(function(_,x){return g[_]-g[x]})}function w_(e){if(qn(e)===Kf)return[];var t=As(e);return[o0(e),t,o0(t)]}function __(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var l=n.mainAxis,i=l===void 0?!0:l,o=n.altAxis,s=o===void 0?!0:o,u=n.fallbackPlacements,a=n.padding,c=n.boundary,p=n.rootBoundary,d=n.altBoundary,g=n.flipVariations,_=g===void 0?!0:g,x=n.allowedAutoPlacements,P=t.options.placement,y=qn(P),v=y===P,w=u||(v||!_?[As(P)]:w_(P)),T=[P].concat(w).reduce(function(X,pe){return X.concat(qn(pe)===Kf?y_(t,{placement:pe,boundary:c,rootBoundary:p,padding:a,flipVariations:_,allowedAutoPlacements:x}):pe)},[]),O=t.rects.reference,R=t.rects.popper,M=new Map,L=!0,I=T[0],b=0;b=0,se=oe?"width":"height",fe=Oo(t,{placement:z,boundary:c,rootBoundary:p,altBoundary:d,padding:a}),ne=oe?K?En:Jt:K?Sn:Zt;O[se]>R[se]&&(ne=As(ne));var q=As(ne),J=[];if(i&&J.push(fe[H]<=0),s&&J.push(fe[ne]<=0,fe[q]<=0),J.every(function(X){return X})){I=z,L=!1;break}M.set(z,J)}if(L)for(var G=_?3:1,re=function(pe){var Le=T.find(function(Ue){var Be=M.get(Ue);if(Be)return Be.slice(0,pe).every(function(tt){return tt})});if(Le)return I=Le,"break"},Y=G;Y>0;Y--){var me=re(Y);if(me==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const x_={name:"flip",enabled:!0,phase:"main",fn:__,requiresIfExists:["offset"],data:{_skip:!1}};function a0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function u0(e){return[Zt,En,Sn,Jt].some(function(t){return e[t]>=0})}function k_(e){var t=e.state,n=e.name,r=t.rects.reference,l=t.rects.popper,i=t.modifiersData.preventOverflow,o=Oo(t,{elementContext:"reference"}),s=Oo(t,{altBoundary:!0}),u=a0(o,r),a=a0(s,l,i),c=u0(u),p=u0(a);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:a,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}const S_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:k_};function E_(e,t,n){var r=qn(e),l=[Jt,Zt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*l,[Jt,En].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function C_(e){var t=e.state,n=e.options,r=e.name,l=n.offset,i=l===void 0?[0,0]:l,o=R1.reduce(function(c,p){return c[p]=E_(p,t.rects,i),c},{}),s=o[t.placement],u=s.x,a=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=a),t.modifiersData[r]=o}const T_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:C_};function P_(e){var t=e.state,n=e.name;t.modifiersData[n]=F1({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const O_={name:"popperOffsets",enabled:!0,phase:"read",fn:P_,data:{}};function N_(e){return e==="x"?"y":"x"}function M_(e){var t=e.state,n=e.options,r=e.name,l=n.mainAxis,i=l===void 0?!0:l,o=n.altAxis,s=o===void 0?!1:o,u=n.boundary,a=n.rootBoundary,c=n.altBoundary,p=n.padding,d=n.tether,g=d===void 0?!0:d,_=n.tetherOffset,x=_===void 0?0:_,P=Oo(t,{boundary:u,rootBoundary:a,padding:p,altBoundary:c}),y=qn(t.placement),v=ni(t.placement),w=!v,T=Qf(y),O=N_(T),R=t.modifiersData.popperOffsets,M=t.rects.reference,L=t.rects.popper,I=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,b=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(R){if(i){var K,oe=T==="y"?Zt:Jt,se=T==="y"?Sn:En,fe=T==="y"?"height":"width",ne=R[T],q=ne+P[oe],J=ne-P[se],G=g?-L[fe]/2:0,re=v===Xl?M[fe]:L[fe],Y=v===Xl?-L[fe]:-M[fe],me=t.elements.arrow,X=g&&me?Yf(me):{width:0,height:0},pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:A1(),Le=pe[oe],Ue=pe[se],Be=lo(0,M[fe],X[fe]),tt=w?M[fe]/2-G-Be-Le-b.mainAxis:re-Be-Le-b.mainAxis,Ct=w?-M[fe]/2+G+Be+Ue+b.mainAxis:Y+Be+Ue+b.mainAxis,st=t.elements.arrow&&zo(t.elements.arrow),dn=st?T==="y"?st.clientTop||0:st.clientLeft||0:0,Qn=(K=z==null?void 0:z[T])!=null?K:0,pn=ne+tt-Qn-dn,Zn=ne+Ct-Qn,Cn=lo(g?aa(q,pn):q,ne,g?tl(J,Zn):J);R[T]=Cn,H[T]=Cn-ne}if(s){var hn,pt=T==="x"?Zt:Jt,ue=T==="x"?Sn:En,nt=R[O],Ft=O==="y"?"height":"width",ye=nt+P[pt],te=nt-P[ue],Oe=[Zt,Jt].indexOf(y)!==-1,$e=(hn=z==null?void 0:z[O])!=null?hn:0,h=Oe?ye:nt-M[Ft]-L[Ft]-$e+b.altAxis,S=Oe?nt+M[Ft]+L[Ft]-$e-b.altAxis:te,C=g&&Oe?e_(h,nt,S):lo(g?h:ye,nt,g?S:te);R[O]=C,H[O]=C-nt}t.modifiersData[r]=H}}const R_={name:"preventOverflow",enabled:!0,phase:"main",fn:M_,requiresIfExists:["offset"]};function L_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function j_(e){return e===an(e)||!_n(e)?Zf(e):L_(e)}function A_(e){var t=e.getBoundingClientRect(),n=ei(t.width)/e.offsetWidth||1,r=ei(t.height)/e.offsetHeight||1;return n!==1||r!==1}function b_(e,t,n){n===void 0&&(n=!1);var r=_n(t),l=_n(t)&&A_(t),i=Br(t),o=ti(e,l,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Gn(t)!=="body"||Xf(i))&&(s=j_(t)),_n(t)?(u=ti(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=Jf(i))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function D_(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function l(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var u=t.get(s);u&&l(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||l(i)}),r}function z_(e){var t=D_(e);return Gw.reduce(function(n,r){return n.concat(t.filter(function(l){return l.phase===r}))},[])}function F_(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function I_(e){var t=e.reduce(function(n,r){var l=n[r.name];return n[r.name]=l?Object.assign({},l,r,{options:Object.assign({},l.options,r.options),data:Object.assign({},l.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var c0={placement:"bottom",modifiers:[],strategy:"absolute"};function f0(){for(var e=arguments.length,t=new Array(e),n=0;ne===null&&t===null?null:n=>{d0(e,n),d0(t,n)},[e,t])}const Z_=({children:e,onClickAway:t})=>{const n=U.useRef(document),r=U.useRef(null),l=Q_(r,e.ref),i=C1(o=>{if(!r.current)throw new Error("ClickAwayListener: missing ref");const s=!n.current.contains(o.target)||r.current.contains(o.target);o.type==="keyup"&&"key"in o&&(!["Escape","Tab"].includes(o.key)||o.key==="Tab"&&s)||o.type==="mouseup"&&s||t(o)});return To("mouseup",i,n),To("keyup",i,n),D.jsx(D.Fragment,{children:U.cloneElement(e,{ref:l})})};var J_="iy2n4g0",X_={fill:"iy2n4g1",text:"iy2n4g2"};function e3({className:e,name:t,title:n,variant:r="fill",...l},i){return D.jsx(Ma,{ref:i,className:Yn(J_,e),variant:r,...l,children:D.jsx(Kn,{className:X_[r],name:t,title:n})})}const t3=U.forwardRef(e3);var n3="_1sxwks00";function r3({children:e,className:t,...n},r){return D.jsx("div",{ref:r,className:Yn(n3,t),...n,children:e})}const La=U.forwardRef(r3);var l3="_1x45rmb3",i3={light:"_1x45rmb1 _1x45rmb0",dark:"_1x45rmb2 _1x45rmb0"};function o3({children:e}){const{theme:t}=pi(),[n,r]=U.useState(!1),[l,i]=U.useState(null),[o,s]=U.useState(null),{styles:u,attributes:a}=I1(l,o,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,10]}}]});return D.jsxs(D.Fragment,{children:[D.jsx(t3,{ref:i,"aria-expanded":n?"true":"false","aria-label":"Menu",name:"options",variant:"text",onClick:()=>r(!n)}),n&&D.jsx(Z_,{onClickAway:()=>r(!1),children:D.jsx(La,{...a.popper,ref:s,className:i3[t],style:u.popper,onMouseLeave:()=>r(!1),children:D.jsx(St,{direction:"column",gap:0,children:e})})})]})}function s3({children:e,onClick:t}){return D.jsx(Ma,{variant:"text",onClick:t,children:D.jsx(St,{className:l3,align:"center",gap:2,children:e})})}const Du=Object.assign(o3,{Item:s3});var a3={active:"tz5dd56 tz5dd55",inactive:"tz5dd57 tz5dd55"},u3=bo({conditions:{defaultCondition:"mobile",conditionNames:["mobile","desktop"],responsiveArray:void 0},styles:{display:{values:{none:{conditions:{mobile:"tz5dd51",desktop:"tz5dd52"},defaultClass:"tz5dd51"},block:{conditions:{mobile:"tz5dd53",desktop:"tz5dd54"},defaultClass:"tz5dd53"}}}}}),c3="tz5dd50";function p0({isMobile:e=!1,options:t,value:n,onChange:r}){return D.jsx("nav",{className:Yn(c3,u3({display:{desktop:e?"none":"block",mobile:e?"block":"none"}})),children:D.jsx(St,{gap:2,children:t.map((l,i)=>D.jsx(f3,{label:l.title,index:i,value:n,onChange:r},l.id))})})}function f3({index:e,label:t,value:n,onChange:r,...l}){const i=e===n,o=i?"active":"inactive";return D.jsx(Ma,{"aria-current":i,className:a3[o],variant:"text",onClick:()=>r(e),...l,children:t})}var d3={loading:"_1e0qizf1",default:"_1e0qizf3 _1e0qizf1"},p3="_1e0qizf4",h3="_1e0qizf5";const m3=({children:e,isLoading:t=!1,max:n="100",value:r,...l})=>{const i=t?"loading":"default";return D.jsxs("div",{className:p3,children:[D.jsx("progress",{className:d3[i],max:n,value:r,...l}),e?D.jsx("div",{className:h3,children:e}):null]})},h0=e=>e&&new Date(e).getTime(),B1=(e,t)=>e&&new Date(e.getTime()+t),v3=(e,t,n)=>{const r=h0(e)||0,l=h0(t)||0,i=n.getTime()-r,o=l-r;return i/o*100},g3=(e,t)=>{if(e.stop)return 100;const n=e.param.endOffset,r=B1(e.start,n),l=v3(e.start,r,t);return Math.round(l)},$1=(e=0)=>{const t=Math.round(e),n=Math.round(t%60);return t<0?"-":t<60?`${t}s`:n>0?`${Math.round((e-n)/60)}min ${n}s`:`${Math.round(t/60)}min`},y3=e=>{const t=e.param.period||0;return $1(t/1e3)},w3=e=>{const t=e.start,n=e.param.endOffset||0,r=e.stop||B1(e.start,n);if(!(!t||!r))return $1((r.getTime()-t.getTime())/1e3)};var _3="kfrms71",x3="kfrms73",k3="kfrms70",S3="kfrms74";const E3=e=>{var t;return(t=e==null?void 0:e.popper)==null?void 0:t["data-popper-placement"]},C3=e=>e?e.startsWith("top")?"top":e.startsWith("bottom")?"bottom":e.startsWith("right")?"right":"left":"left";var T3={top:"_1lpb9zp4 _1lpb9zp3",bottom:"_1lpb9zp5 _1lpb9zp3",left:"_1lpb9zp6 _1lpb9zp3",right:"_1lpb9zp7 _1lpb9zp3"},P3={light:"_1lpb9zp1 _1lpb9zp0",dark:"_1lpb9zp2 _1lpb9zp0"};function Bc({children:e,placement:t="bottom-start",title:n}){const[r,l]=U.useState(!1),{theme:i}=pi(),[o,s]=U.useState(null),[u,a]=U.useState(null),[c,p]=U.useState(null),{styles:d,attributes:g}=I1(u,c,{placement:t,modifiers:[{name:"arrow",options:{element:o}},{name:"offset",options:{offset:[0,5]}}]}),_=C3(E3(g));return n?D.jsxs(D.Fragment,{children:[D.jsx("div",{ref:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:e}),r&&D.jsxs("div",{ref:p,className:P3[i],style:d.popper,...g.popper,children:[n,D.jsx("div",{ref:s,className:T3[_],style:d.arrow})]})]}):e}function O3({config:e,tab:t,onTabChange:n}){const r=pl(),l=!r.stop&&g3(r,new Date);return D.jsx(D.Fragment,{children:D.jsxs("header",{className:k3,children:[D.jsxs(St,{className:_3,align:"center",justify:"space-between",children:[D.jsxs(St,{align:"center",gap:4,children:[D.jsx(Kn,{name:"logo"}),D.jsx(p0,{options:e.tabs,value:t,onChange:n})]}),D.jsxs(St,{align:"center",children:[D.jsx(N3,{}),D.jsx(Ma,{onClick:()=>window.open("../report","k6-report"),children:"Report"}),D.jsx(M3,{})]})]}),l?D.jsx(m3,{value:l}):D.jsx(Sw,{className:x3}),D.jsx(p0,{isMobile:!0,options:e.tabs,value:t,onChange:n})]})})}const N3=()=>{const e=pl();return D.jsx("div",{className:S3,children:D.jsxs(St,{align:"center",gap:3,children:[D.jsx(Bc,{placement:"bottom",title:"Refresh rate",children:D.jsxs(St,{align:"center",gap:2,children:[D.jsx(Kn,{name:"stop-watch",width:"12px",height:"12px"}),D.jsx("span",{children:y3(e)})]})}),D.jsx(Bc,{placement:"bottom",title:"Duration",children:D.jsxs(St,{align:"center",gap:2,children:[D.jsx(Kn,{name:"hour-glass",width:"12px",height:"12px"}),D.jsx("span",{children:w3(e)})]})})]})})},M3=()=>{const{theme:e,setTheme:t}=pi();function n(){window.open("https://github.com/grafana/k6/blob/master/SUPPORT.md","_blank")}function r(){t(e==="light"?"dark":"light")}return D.jsxs(Du,{children:[D.jsxs(Du.Item,{onClick:n,children:[D.jsx(Kn,{name:"question"}),D.jsx("span",{children:"Help"})]}),D.jsxs(Du.Item,{onClick:r,children:[D.jsx(Kn,{name:e==="dark"?"sun":"moon"}),D.jsxs("span",{children:[e==="dark"?"Light":"Dark"," mode"]})]})]})};var R3="_1isundr0";function L3({children:e,message:t,isLoading:n}){return n?D.jsxs(St,{align:"center",justify:"center",children:[D.jsx(Kn,{className:R3,name:"spinner"}),D.jsx("h2",{children:t})]}):e}var H1={exports:{}};/*! @preserve +`+i.stack}return{value:e,source:t,stack:l,digest:null}}function Mu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function kc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var e2=typeof WeakMap=="function"?WeakMap:Map;function Wm(e,t,n){n=lr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){la||(la=!0,Lc=r),kc(e,t)},n}function qm(e,t,n){n=lr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){kc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){kc(e,t),typeof r!="function"&&(Lr===null?Lr=new Set([this]):Lr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Rp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new e2;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=h2.bind(null,e,t,n),t.then(e,e))}function Lp(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function jp(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=lr(-1,1),t.tag=2,Rr(n,t,1))),n.lanes|=1),e)}var t2=dr.ReactCurrentOwner,Kt=!1;function $t(e,t,n,r){t.child=e===null?Em(t,null,n,r):Yl(t,e.child,n,r)}function Ap(e,t,n,r,l){n=n.render;var i=t.ref;return Vl(t,l),r=Of(e,t,n,r,i,l),n=Nf(),e!==null&&!Kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,cr(e,t,l)):(Ve&&n&&vf(t),t.flags|=1,$t(e,t,r,l),t.child)}function bp(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!If(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Km(e,t,i,r,l)):(e=js(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:vo,n(o,r)&&e.ref===t.ref)return cr(e,t,l)}return t.flags|=1,e=Ar(i,r),e.ref=t.ref,e.return=t,t.child=e}function Km(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(vo(i,r)&&e.ref===t.ref)if(Kt=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(Kt=!0);else return t.lanes=e.lanes,cr(e,t,l)}return Sc(e,t,n,r,l)}function Gm(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(Fl,tn),tn|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ae(Fl,tn),tn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ae(Fl,tn),tn|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ae(Fl,tn),tn|=r;return $t(e,t,l,n),t.child}function Ym(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Sc(e,t,n,r,l){var i=Yt(n)?ll:zt.current;return i=Kl(t,i),Vl(t,l),n=Of(e,t,n,r,i,l),r=Nf(),e!==null&&!Kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,cr(e,t,l)):(Ve&&r&&vf(t),t.flags|=1,$t(e,t,n,l),t.child)}function Dp(e,t,n,r,l){if(Yt(n)){var i=!0;Gs(t)}else i=!1;if(Vl(t,l),t.stateNode===null)Ms(e,t),km(t,n,r),xc(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,a=n.contextType;typeof a=="object"&&a!==null?a=xn(a):(a=Yt(n)?ll:zt.current,a=Kl(t,a));var c=n.getDerivedStateFromProps,p=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";p||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||u!==a)&&Pp(t,o,r,a),xr=!1;var d=t.memoizedState;o.state=d,Xs(t,r,o,l),u=t.memoizedState,s!==r||d!==u||Gt.current||xr?(typeof c=="function"&&(_c(t,n,c,r),u=t.memoizedState),(s=xr||Tp(t,n,s,r,d,u,a))?(p||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=a,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,_m(e,t),s=t.memoizedProps,a=t.type===t.elementType?s:Ln(t.type,s),o.props=a,p=t.pendingProps,d=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=xn(u):(u=Yt(n)?ll:zt.current,u=Kl(t,u));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==p||d!==u)&&Pp(t,o,r,u),xr=!1,d=t.memoizedState,o.state=d,Xs(t,r,o,l);var _=t.memoizedState;s!==p||d!==_||Gt.current||xr?(typeof g=="function"&&(_c(t,n,g,r),_=t.memoizedState),(a=xr||Tp(t,n,a,r,d,_,u)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,_,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,_,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=_),o.props=r,o.state=_,o.context=u,r=a):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ec(e,t,n,r,i,l)}function Ec(e,t,n,r,l,i){Ym(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&xp(t,n,!1),cr(e,t,i);r=t.stateNode,t2.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Yl(t,e.child,null,i),t.child=Yl(t,null,s,i)):$t(e,t,s,i),t.memoizedState=r.state,l&&xp(t,n,!0),t.child}function Qm(e){var t=e.stateNode;t.pendingContext?_p(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_p(e,t.context,!1),Ef(e,t.containerInfo)}function zp(e,t,n,r,l){return Gl(),yf(l),t.flags|=256,$t(e,t,n,r),t.child}var Cc={dehydrated:null,treeContext:null,retryLane:0};function Tc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zm(e,t,n){var r=t.pendingProps,l=Ke.current,i=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(l&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Ae(Ke,l&1),e===null)return yc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Ca(o,r,0,null),e=el(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Tc(n),t.memoizedState=Cc,e):Lf(t,o));if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null))return n2(e,t,o,r,s,l,n);if(i){i=r.fallback,o=t.mode,l=e.child,s=l.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Ar(l,u),r.subtreeFlags=l.subtreeFlags&14680064),s!==null?i=Ar(s,i):(i=el(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Tc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Cc,r}return i=e.child,e=i.sibling,r=Ar(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Lf(e,t){return t=Ca({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fs(e,t,n,r){return r!==null&&yf(r),Yl(t,e.child,null,n),e=Lf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function n2(e,t,n,r,l,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Mu(Error($(422))),fs(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Ca({mode:"visible",children:r.children},l,0,null),i=el(i,l,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Yl(t,e.child,null,o),t.child.memoizedState=Tc(o),t.memoizedState=Cc,i);if(!(t.mode&1))return fs(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error($(419)),r=Mu(i,r,void 0),fs(e,t,o,r)}if(s=(o&e.childLanes)!==0,Kt||s){if(r=kt,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,ur(e,l),Dn(r,e,l,-1))}return Ff(),r=Mu(Error($(421))),fs(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=m2.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,rn=Mr(l.nextSibling),ln=t,Ve=!0,An=null,e!==null&&(vn[gn++]=nr,vn[gn++]=rr,vn[gn++]=il,nr=e.id,rr=e.overflow,il=t),t=Lf(t,r.children),t.flags|=4096,t)}function Fp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),wc(e.return,t,n)}function Ru(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function Jm(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if($t(e,t,r.children,n),r=Ke.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fp(e,n,t);else if(e.tag===19)Fp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ae(Ke,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&ea(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Ru(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&ea(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Ru(t,!0,n,null,i);break;case"together":Ru(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ms(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function cr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sl|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error($(153));if(t.child!==null){for(e=t.child,n=Ar(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ar(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function r2(e,t,n){switch(t.tag){case 3:Qm(t),Gl();break;case 5:Cm(t);break;case 1:Yt(t.type)&&Gs(t);break;case 4:Ef(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;Ae(Zs,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ae(Ke,Ke.current&1),t.flags|=128,null):n&t.child.childLanes?Zm(e,t,n):(Ae(Ke,Ke.current&1),e=cr(e,t,n),e!==null?e.sibling:null);Ae(Ke,Ke.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Jm(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ae(Ke,Ke.current),r)break;return null;case 22:case 23:return t.lanes=0,Gm(e,t,n)}return cr(e,t,n)}var Xm,Pc,e1,t1;Xm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Pc=function(){};e1=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Jr(Wn.current);var i=null;switch(n){case"input":l=Yu(e,l),r=Yu(e,r),i=[];break;case"select":l=Ye({},l,{value:void 0}),r=Ye({},r,{value:void 0}),i=[];break;case"textarea":l=Ju(e,l),r=Ju(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=qs)}ec(n,r);var o;n=null;for(a in l)if(!r.hasOwnProperty(a)&&l.hasOwnProperty(a)&&l[a]!=null)if(a==="style"){var s=l[a];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(ao.hasOwnProperty(a)?i||(i=[]):(i=i||[]).push(a,null));for(a in r){var u=r[a];if(s=l!=null?l[a]:void 0,r.hasOwnProperty(a)&&u!==s&&(u!=null||s!=null))if(a==="style")if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(i||(i=[]),i.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(i=i||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(ao.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&Fe("scroll",e),i||s===u||(i=[])):(i=i||[]).push(a,u))}n&&(i=i||[]).push("style",n);var a=i;(t.updateQueue=a)&&(t.flags|=4)}};t1=function(e,t,n,r){n!==r&&(t.flags|=4)};function zi(e,t){if(!Ve)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function bt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function l2(e,t,n){var r=t.pendingProps;switch(gf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(t),null;case 1:return Yt(t.type)&&Ks(),bt(t),null;case 3:return r=t.stateNode,Ql(),Ie(Gt),Ie(zt),Tf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(us(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,An!==null&&(bc(An),An=null))),Pc(e,t),bt(t),null;case 5:Cf(t);var l=Jr(xo.current);if(n=t.type,e!==null&&t.stateNode!=null)e1(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error($(166));return bt(t),null}if(e=Jr(Wn.current),us(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Vn]=t,r[wo]=i,e=(t.mode&1)!==0,n){case"dialog":Fe("cancel",r),Fe("close",r);break;case"iframe":case"object":case"embed":Fe("load",r);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Vn]=t,e[wo]=r,Xm(e,t,!1,!1),t.stateNode=e;e:{switch(o=tc(n,r),n){case"dialog":Fe("cancel",e),Fe("close",e),l=r;break;case"iframe":case"object":case"embed":Fe("load",e),l=r;break;case"video":case"audio":for(l=0;lJl&&(t.flags|=128,r=!0,zi(i,!1),t.lanes=4194304)}else{if(!r)if(e=ea(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Ve)return bt(t),null}else 2*et()-i.renderingStartTime>Jl&&n!==1073741824&&(t.flags|=128,r=!0,zi(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=et(),t.sibling=null,n=Ke.current,Ae(Ke,r?n&1|2:n&1),t):(bt(t),null);case 22:case 23:return zf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tn&1073741824&&(bt(t),t.subtreeFlags&6&&(t.flags|=8192)):bt(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function i2(e,t){switch(gf(t),t.tag){case 1:return Yt(t.type)&&Ks(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ql(),Ie(Gt),Ie(zt),Tf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Cf(t),null;case 13:if(Ie(Ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));Gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ie(Ke),null;case 4:return Ql(),null;case 10:return xf(t.type._context),null;case 22:case 23:return zf(),null;case 24:return null;default:return null}}var ds=!1,Dt=!1,o2=typeof WeakSet=="function"?WeakSet:Set,ee=null;function zl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Je(e,t,r)}else n.current=null}function Oc(e,t,n){try{n()}catch(r){Je(e,t,r)}}var Ip=!1;function s2(e,t){if(fc=Vs,e=im(),mf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,a=0,c=0,p=e,d=null;t:for(;;){for(var g;p!==n||l!==0&&p.nodeType!==3||(s=o+l),p!==i||r!==0&&p.nodeType!==3||(u=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(g=p.firstChild)!==null;)d=p,p=g;for(;;){if(p===e)break t;if(d===n&&++a===l&&(s=o),d===i&&++c===r&&(u=o),(g=p.nextSibling)!==null)break;p=d,d=p.parentNode}p=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(dc={focusedElem:e,selectionRange:n},Vs=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var x=_.memoizedProps,P=_.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ln(t.type,x),P);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(T){Je(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return _=Ip,Ip=!1,_}function to(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Oc(t,n,i)}l=l.next}while(l!==r)}}function Sa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Nc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function n1(e){var t=e.alternate;t!==null&&(e.alternate=null,n1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vn],delete t[wo],delete t[mc],delete t[Vy],delete t[Uy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function r1(e){return e.tag===5||e.tag===3||e.tag===4}function Bp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||r1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qs));else if(r!==4&&(e=e.child,e!==null))for(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}function Rc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Rc(e,t,n),e=e.sibling;e!==null;)Rc(e,t,n),e=e.sibling}var Mt=null,jn=!1;function yr(e,t,n){for(n=n.child;n!==null;)l1(e,t,n),n=n.sibling}function l1(e,t,n){if(Un&&typeof Un.onCommitFiberUnmount=="function")try{Un.onCommitFiberUnmount(ma,n)}catch{}switch(n.tag){case 5:Dt||zl(n,t);case 6:var r=Mt,l=jn;Mt=null,yr(e,t,n),Mt=r,jn=l,Mt!==null&&(jn?(e=Mt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Mt.removeChild(n.stateNode));break;case 18:Mt!==null&&(jn?(e=Mt,n=n.stateNode,e.nodeType===8?Eu(e.parentNode,n):e.nodeType===1&&Eu(e,n),ho(e)):Eu(Mt,n.stateNode));break;case 4:r=Mt,l=jn,Mt=n.stateNode.containerInfo,jn=!0,yr(e,t,n),Mt=r,jn=l;break;case 0:case 11:case 14:case 15:if(!Dt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Oc(n,t,o),l=l.next}while(l!==r)}yr(e,t,n);break;case 1:if(!Dt&&(zl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Je(n,t,s)}yr(e,t,n);break;case 21:yr(e,t,n);break;case 22:n.mode&1?(Dt=(r=Dt)||n.memoizedState!==null,yr(e,t,n),Dt=r):yr(e,t,n);break;default:yr(e,t,n)}}function $p(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new o2),t.forEach(function(r){var l=v2.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Mn(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=et()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*u2(r/1960))-r,10e?16:e,Tr===null)var r=!1;else{if(e=Tr,Tr=null,ia=0,Se&6)throw Error($(331));var l=Se;for(Se|=4,ee=e.current;ee!==null;){var i=ee,o=i.child;if(ee.flags&16){var s=i.deletions;if(s!==null){for(var u=0;uet()-bf?Xr(e,0):Af|=n),Qt(e,t)}function d1(e,t){t===0&&(e.mode&1?(t=rs,rs<<=1,!(rs&130023424)&&(rs=4194304)):t=1);var n=Ht();e=ur(e,t),e!==null&&(Ro(e,t,n),Qt(e,n))}function m2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),d1(e,n)}function v2(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error($(314))}r!==null&&r.delete(t),d1(e,n)}var p1;p1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gt.current)Kt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Kt=!1,r2(e,t,n);Kt=!!(e.flags&131072)}else Kt=!1,Ve&&t.flags&1048576&&vm(t,Qs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ms(e,t),e=t.pendingProps;var l=Kl(t,zt.current);Vl(t,n),l=Of(null,t,r,e,l,n);var i=Nf();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Yt(r)?(i=!0,Gs(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Sf(t),l.updater=xa,t.stateNode=l,l._reactInternals=t,xc(t,r,e,n),t=Ec(null,t,r,!0,i,n)):(t.tag=0,Ve&&i&&vf(t),$t(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ms(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=y2(r),e=Ln(r,e),l){case 0:t=Sc(null,t,r,e,n);break e;case 1:t=Dp(null,t,r,e,n);break e;case 11:t=Ap(null,t,r,e,n);break e;case 14:t=bp(null,t,r,Ln(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ln(r,l),Sc(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ln(r,l),Dp(e,t,r,l,n);case 3:e:{if(Qm(t),e===null)throw Error($(387));r=t.pendingProps,i=t.memoizedState,l=i.element,_m(e,t),Xs(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Zl(Error($(423)),t),t=zp(e,t,r,n,l);break e}else if(r!==l){l=Zl(Error($(424)),t),t=zp(e,t,r,n,l);break e}else for(rn=Mr(t.stateNode.containerInfo.firstChild),ln=t,Ve=!0,An=null,n=Em(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gl(),r===l){t=cr(e,t,n);break e}$t(e,t,r,n)}t=t.child}return t;case 5:return Cm(t),e===null&&yc(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,pc(r,l)?o=null:i!==null&&pc(r,i)&&(t.flags|=32),Ym(e,t),$t(e,t,o,n),t.child;case 6:return e===null&&yc(t),null;case 13:return Zm(e,t,n);case 4:return Ef(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yl(t,null,r,n):$t(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ln(r,l),Ap(e,t,r,l,n);case 7:return $t(e,t,t.pendingProps,n),t.child;case 8:return $t(e,t,t.pendingProps.children,n),t.child;case 12:return $t(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,Ae(Zs,r._currentValue),r._currentValue=o,i!==null)if(zn(i.value,o)){if(i.children===l.children&&!Gt.current){t=cr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=lr(-1,n&-n),u.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?u.next=u:(u.next=c.next,c.next=u),a.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),wc(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error($(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),wc(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}$t(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Vl(t,n),l=xn(l),r=r(l),t.flags|=1,$t(e,t,r,n),t.child;case 14:return r=t.type,l=Ln(r,t.pendingProps),l=Ln(r.type,l),bp(e,t,r,l,n);case 15:return Km(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ln(r,l),Ms(e,t),t.tag=1,Yt(r)?(e=!0,Gs(t)):e=!1,Vl(t,n),km(t,r,l),xc(t,r,l,n),Ec(null,t,r,!0,e,n);case 19:return Jm(e,t,n);case 22:return Gm(e,t,n)}throw Error($(156,t.tag))};function h1(e,t){return Bh(e,t)}function g2(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yn(e,t,n,r){return new g2(e,t,n,r)}function If(e){return e=e.prototype,!(!e||!e.isReactComponent)}function y2(e){if(typeof e=="function")return If(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rf)return 11;if(e===lf)return 14}return 2}function Ar(e,t){var n=e.alternate;return n===null?(n=yn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function js(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")If(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ol:return el(n.children,l,i,t);case nf:o=8,l|=8;break;case Wu:return e=yn(12,n,t,l|2),e.elementType=Wu,e.lanes=i,e;case qu:return e=yn(13,n,t,l),e.elementType=qu,e.lanes=i,e;case Ku:return e=yn(19,n,t,l),e.elementType=Ku,e.lanes=i,e;case Sh:return Ca(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xh:o=10;break e;case kh:o=9;break e;case rf:o=11;break e;case lf:o=14;break e;case _r:o=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=yn(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function el(e,t,n,r){return e=yn(7,e,r,t),e.lanes=n,e}function Ca(e,t,n,r){return e=yn(22,e,r,t),e.elementType=Sh,e.lanes=n,e.stateNode={isHidden:!1},e}function Lu(e,t,n){return e=yn(6,e,null,t),e.lanes=n,e}function ju(e,t,n){return t=yn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function w2(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pu(0),this.expirationTimes=pu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pu(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Bf(e,t,n,r,l,i,o,s,u){return e=new w2(e,t,n,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=yn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sf(i),e}function _2(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(y1)}catch(e){console.error(e)}}y1(),vh.exports=un;var w1=vh.exports,Yp=w1;Vu.createRoot=Yp.createRoot,Vu.hydrateRoot=Yp.hydrateRoot;const C2="k6 dashboard",T2=[{sections:[{panels:[{series:[{query:"iterations[?!tags && rate]"}],title:"Iteration Rate",kind:"stat",id:"tab-0.section-0.panel-0",summary:"The iteration rate represents the number of times a VU has executed a test script (the `default` function) over a period of time. The panel can help you ensure that your test iteration rate matches the configuration you have specified in your test script, and that the number of VUs you have allocated matches the test capacity."},{series:[{query:"http_reqs[?!tags && rate]"}],title:"HTTP Request Rate",kind:"stat",id:"tab-0.section-0.panel-1",summary:"The HTTP request rate represents the number of requests over a period of time."},{series:[{query:"http_req_duration[?!tags && avg]"}],title:"HTTP Request Duration",kind:"stat",id:"tab-0.section-0.panel-2",summary:"The HTTP request duration represents the total time for a request. This is an indication of the latency experienced when making HTTP requests against the system under test."},{series:[{query:"http_req_failed[?!tags && rate ]"}],title:"HTTP Request Failed",kind:"stat",id:"tab-0.section-0.panel-3",summary:"The rate of failed requests according to the test configuration. Failed requests can include any number of status codes depending on your test. Refer to setResponseCallback for more details."},{series:[{query:"data_received[?!tags && rate]"}],title:"Received Rate",kind:"stat",id:"tab-0.section-0.panel-4",summary:"The amount of data received over a period of time."},{series:[{query:"data_sent[?!tags && rate]"}],title:"Sent Rate",kind:"stat",id:"tab-0.section-0.panel-5",summary:"The amount of data sent to the system under test. "}],id:"tab-0.section-0"},{panels:[{series:[{query:"http_reqs[?!tags && rate]",legend:"Request Rate"},{query:"http_req_duration[?!tags && p95]",legend:"Request Duration p(95)"},{query:"http_req_failed[?!tags && rate]",legend:"Request Failed"}],title:"HTTP Performance overview",id:"tab-0.section-1.panel-0",summary:"The HTTP request rate represents the number of requests over a period of time. The HTTP request duration 95 percentile represents the total time for 95% of the requests observed. The HTTP request failed rate represents the rate of failed requests according to the test configuration. Failed requests can include any number of status codes depending on your test. Refer to setResponseCallback for more details.",fullWidth:!0,kind:"chart"}],id:"tab-0.section-1"},{panels:[{series:[{query:"vus[?!tags && value]"},{query:"http_reqs[?!tags && rate ]"}],title:"VUs",id:"tab-0.section-2.panel-0",summary:"The number of VUs and the number of requests throughout the test run. This is an indication of how the two metrics correlate, and can help you visualize if you need to increase or decrease the number of VUs for your test.",kind:"chart"},{series:[{query:"data_received[?!tags && rate]"},{query:"data_sent[?!tags && rate]"}],title:"Transfer Rate",id:"tab-0.section-2.panel-1",summary:"The rate at which data is sent to and received from the system under test.",kind:"chart"},{series:[{query:"http_req_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"HTTP Request Duration",id:"tab-0.section-2.panel-2",summary:"The HTTP request duration represents the total time for a request. This is an indication of the latency experienced when making HTTP requests against the system under test.",kind:"chart"},{series:[{query:"iteration_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Iteration Duration",id:"tab-0.section-2.panel-3",summary:"The time to complete one full iteration of the test, including time spent in setup and teardown.",kind:"chart"}],id:"tab-0.section-2"}],title:"Overview",summary:"This chapter provides an overview of the most important metrics of the test run. Graphs plot the value of metrics over time.",id:"tab-0"},{sections:[{panels:[{series:[{query:"http_req_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Duration",id:"tab-1.section-0.panel-0",summary:"The HTTP request duration represents the total time for a request. This is an indication of the latency experienced when making HTTP requests against the system under test.",kind:"chart"},{series:[{query:"http_req_failed[?!tags && rate ]"}],title:"Request Failed Rate",id:"tab-1.section-0.panel-1",summary:"The rate of failed requests according to the test configuration. Failed requests can include any number of status codes depending on your test. Refer to setResponseCallback for more details.",kind:"chart"},{series:[{query:"http_reqs[?!tags && rate]"}],title:"Request Rate",id:"tab-1.section-0.panel-2",summary:"The HTTP request rate represents the number of requests over a period of time.",kind:"chart"},{series:[{query:"http_req_waiting[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Waiting",id:"tab-1.section-0.panel-3",summary:"The time between k6 sending a request and receiving the first byte of information from the remote host. Also known as 'time to first byte' or 'TTFB'.",kind:"chart"},{series:[{query:"http_req_tls_handshaking[?!tags && (avg || p90 || p95 || p99)]"}],title:"TLS handshaking",id:"tab-1.section-0.panel-4",summary:"The time it takes to complete the TLS handshake for the requests.",kind:"chart"},{series:[{query:"http_req_sending[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Sending",id:"tab-1.section-0.panel-5",summary:"The time k6 spends sending data to the remote host.",kind:"chart"},{series:[{query:"http_req_connecting[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Connecting",id:"tab-1.section-0.panel-6",summary:"The time k6 spends establishing a TCP connection to the remote host.",kind:"chart"},{series:[{query:"http_req_receiving[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Receiving",id:"tab-1.section-0.panel-7",summary:"The time k6 spends receiving data from the remote host.",kind:"chart"},{series:[{query:"http_req_blocked[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Blocked",id:"tab-1.section-0.panel-8",summary:"The time k6 spends waiting for a free TCP connection slot before initiating a request.",kind:"chart"}],title:"HTTP",summary:"These metrics are generated only when the test makes HTTP requests.",id:"tab-1.section-0"},{panels:[{series:[{query:"browser_http_req_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Duration",id:"tab-1.section-1.panel-0",summary:"The HTTP request duration represents the total time for a request. This is an indication of the latency experienced when making HTTP requests against the system under test.",kind:"chart"},{series:[{query:"browser_http_req_failed[?!tags && rate ]"}],title:"Request Failed Rate",id:"tab-1.section-1.panel-1",summary:"The rate of failed requests according to the test configuration. Failed requests can include any number of status codes depending on your test. Refer to setResponseCallback for more details.",kind:"chart"},{series:[{query:"browser_web_vital_lcp[?!tags && (avg || p90 || p95 || p99)]"}],title:"Largest Contentful Paint",id:"tab-1.section-1.panel-2",summary:"Largest Contentful Paint (LCP) measures the time it takes for the largest content element on a page to become visible.",kind:"chart"},{series:[{query:"browser_web_vital_fid[?!tags && (avg || p90 || p95 || p99)]"}],title:"First Input Delay",id:"tab-1.section-1.panel-3",summary:"First Input Delay (FID) measures the responsiveness of a web page by quantifying the delay between a user's first interaction, such as clicking a button, and the browser's response.",kind:"chart"},{series:[{query:"browser_web_vital_cls[?!tags && (avg || p90 || p95 || p99)]"}],title:"Cumulative Layout Shift",id:"tab-1.section-1.panel-4",summary:"Cumulative Layout Shift (CLS) measures visual stability on a webpage by quantifying the amount of unexpected layout shift of visible page content.",kind:"chart"},{series:[{query:"browser_web_vital_ttfb[?!tags && (avg || p90 || p95 || p99)]"}],title:"Time to First Byte",id:"tab-1.section-1.panel-5",summary:"Time to First Byte (TTFB) measures the time between the request for a resource and when the first byte of a response begins to arrive.",kind:"chart"},{series:[{query:"browser_web_vital_fcp[?!tags && (avg || p90 || p95 || p99)]"}],title:"First Contentful Paint",id:"tab-1.section-1.panel-6",summary:"First Contentful Paint (FCP) measures the time it takes for the first content element to be painted on the screen.",kind:"chart"},{series:[{query:"browser_web_vital_inp[?!tags && (avg || p90 || p95 || p99)]"}],title:"Interaction to Next Paint",id:"tab-1.section-1.panel-7",summary:"Interaction to Next Paint (INP) measures a page's overall responsiveness to user interactions by observing the latency of all click, tap, and keyboard interactions that occur throughout the lifespan of a user's visit to a page.",kind:"chart"}],title:"Browser",summary:"The k6 browser module emits its own metrics based on the Core Web Vitals and Other Web Vitals.",id:"tab-1.section-1"},{panels:[{series:[{query:"ws_connecting[?!tags && (avg || p90 || p95 || p99)]"}],title:"Connect Duration",id:"tab-1.section-2.panel-0",summary:"The duration of the WebSocket connection request. This is an indication of the latency experienced when connecting to a WebSocket server.",kind:"chart"},{series:[{query:"ws_session_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Session Duration",id:"tab-1.section-2.panel-1",summary:"The time between the start of the connection and the end of the VU execution.",kind:"chart"},{series:[{query:"ws_ping[?!tags && (avg || p90 || p95 || p99)]"}],title:"Ping Duration",id:"tab-1.section-2.panel-2",summary:"The duration between a ping request and its pong reception. This is an indication of the latency experienced during the roundtrip of sending a ping message to a WebSocket server, and waiting for the pong response message to come back.",kind:"chart"},{series:[{query:"ws_msgs_sent[?!tags && rate]"},{query:"ws_msgs_received[?!tags && rate]"}],title:"Transfer Rate",id:"tab-1.section-2.panel-3",summary:"The total number of WebSocket messages sent, and the total number of WebSocket messages received.",kind:"chart"},{series:[{query:"ws_sessions[?!tags && rate]"}],title:"Sessions Rate",id:"tab-1.section-2.panel-4",summary:"The total number of WebSocket sessions started.",kind:"chart"}],title:"WebSocket",summary:"k6 emits the following metrics when interacting with a WebSocket service through the experimental or legacy websockets API.",id:"tab-1.section-2"},{panels:[{series:[{query:"grpc_req_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Duration",id:"tab-1.section-3.panel-0",summary:"The gRPC request duration represents the total time for a gRPC request. This is an indication of the latency experienced when making gRPC requests against the system under test.",kind:"chart"},{series:[{query:"grpc_streams_msgs_sent[?!tags && rate]"},{query:"grpc_streams_msgs_received[?!tags && rate]"}],title:"Transfer Rate",id:"tab-1.section-3.panel-1",summary:"The total number of messages sent to gRPC streams, and the total number of messages received from a gRPC stream.",kind:"chart"},{series:[{query:"grpc_streams[?!tags && rate]"}],title:"Streams Rate",id:"tab-1.section-3.panel-2",summary:"The total number of gRPC streams started.",kind:"chart"}],title:"gRPC",summary:"k6 emits the following metrics when it interacts with a service through the gRPC API.",id:"tab-1.section-3"}],title:"Timings",summary:"This chapter provides an overview of test run HTTP timing metrics. Graphs plot the value of metrics over time.",id:"tab-1"},{sections:[{panels:[{series:[{query:"[?!tags && trend]"}],title:"Trends",kind:"summary",id:"tab-2.section-0.panel-0"}],title:"",id:"tab-2.section-0"},{panels:[{series:[{query:"[?!tags && counter]"}],title:"Counters",kind:"summary",id:"tab-2.section-1.panel-0"},{series:[{query:"[?!tags && rate]"}],title:"Rates",kind:"summary",id:"tab-2.section-1.panel-1"},{series:[{query:"[?!tags && gauge]"}],title:"Gauges",kind:"summary",id:"tab-2.section-1.panel-2"}],title:"",id:"tab-2.section-1"}],title:"Summary",summary:"This chapter provides a summary of the test run metrics. The tables contains the aggregated values of the metrics for the entire test run.",id:"tab-2"}],_1={title:C2,tabs:T2};var x1={};(function(e){(function(t){function n(h){return h!==null?Object.prototype.toString.call(h)==="[object Array]":!1}function r(h){return h!==null?Object.prototype.toString.call(h)==="[object Object]":!1}function l(h,S){if(h===S)return!0;var C=Object.prototype.toString.call(h);if(C!==Object.prototype.toString.call(S))return!1;if(n(h)===!0){if(h.length!==S.length)return!1;for(var j=0;j",9:"Array"},w="EOF",T="UnquotedIdentifier",O="QuotedIdentifier",R="Rbracket",M="Rparen",L="Comma",I="Colon",D="Rbrace",z="Number",V="Current",K="Expref",oe="Pipe",se="Or",fe="And",ne="EQ",q="GT",J="LT",G="GTE",re="LTE",Y="NE",me="Flatten",X="Star",pe="Filter",Le="Dot",Ue="Not",Be="Lbrace",tt="Lbracket",Ct="Lparen",st="Literal",dn={".":Le,"*":X,",":L,":":I,"{":Be,"}":D,"]":R,"(":Ct,")":M,"@":V},Qn={"<":!0,">":!0,"=":!0,"!":!0},pn={" ":!0," ":!0,"\n":!0};function Zn(h){return h>="a"&&h<="z"||h>="A"&&h<="Z"||h==="_"}function Cn(h){return h>="0"&&h<="9"||h==="-"}function hn(h){return h>="a"&&h<="z"||h>="A"&&h<="Z"||h>="0"&&h<="9"||h==="_"}function pt(){}pt.prototype={tokenize:function(h){var S=[];this._current=0;for(var C,j,F;this._current")return h[this._current]==="="?(this._current++,{type:G,value:">=",start:S}):{type:q,value:">",start:S};if(C==="="&&h[this._current]==="=")return this._current++,{type:ne,value:"==",start:S}},_consumeLiteral:function(h){this._current++;for(var S=this._current,C=h.length,j;h[this._current]!=="`"&&this._current=0)return!0;if(C.indexOf(h)>=0)return!0;if(j.indexOf(h[0])>=0)try{return JSON.parse(h),!0}catch{return!1}else return!1}};var ue={};ue[w]=0,ue[T]=0,ue[O]=0,ue[R]=0,ue[M]=0,ue[L]=0,ue[D]=0,ue[z]=0,ue[V]=0,ue[K]=0,ue[oe]=1,ue[se]=2,ue[fe]=3,ue[ne]=5,ue[q]=5,ue[J]=5,ue[G]=5,ue[re]=5,ue[Y]=5,ue[me]=9,ue[X]=20,ue[pe]=21,ue[Le]=40,ue[Ue]=45,ue[Be]=50,ue[tt]=55,ue[Ct]=60;function nt(){}nt.prototype={parse:function(h){this._loadTokens(h),this.index=0;var S=this.expression(0);if(this._lookahead(0)!==w){var C=this._lookaheadToken(0),j=new Error("Unexpected token type: "+C.type+", value: "+C.value);throw j.name="ParserError",j}return S},_loadTokens:function(h){var S=new pt,C=S.tokenize(h);C.push({type:w,value:"",start:h.length}),this.tokens=C},expression:function(h){var S=this._lookaheadToken(0);this._advance();for(var C=this.nud(S),j=this._lookahead(0);h=0)return this.expression(h);if(S===tt)return this._match(tt),this._parseMultiselectList();if(S===Be)return this._match(Be),this._parseMultiselectHash()},_parseProjectionRHS:function(h){var S;if(ue[this._lookahead(0)]<10)S={type:"Identity"};else if(this._lookahead(0)===tt)S=this.expression(h);else if(this._lookahead(0)===pe)S=this.expression(h);else if(this._lookahead(0)===Le)this._match(Le),S=this._parseDotRHS(h);else{var C=this._lookaheadToken(0),j=new Error("Sytanx error, unexpected token: "+C.value+"("+C.type+")");throw j.name="ParserError",j}return S},_parseMultiselectList:function(){for(var h=[];this._lookahead(0)!==R;){var S=this.expression(0);if(h.push(S),this._lookahead(0)===L&&(this._match(L),this._lookahead(0)===R))throw new Error("Unexpected token Rbracket")}return this._match(R),{type:"MultiSelectList",children:h}},_parseMultiselectHash:function(){for(var h=[],S=[T,O],C,j,F,Q;;){if(C=this._lookaheadToken(0),S.indexOf(C.type)<0)throw new Error("Expecting an identifier token, got: "+C.type);if(j=C.value,this._advance(),this._match(I),F=this.expression(0),Q={type:"KeyValuePair",name:j,value:F},h.push(Q),this._lookahead(0)===L)this._match(L);else if(this._lookahead(0)===D){this._match(D);break}}return{type:"MultiSelectHash",children:h}}};function Ft(h){this.runtime=h}Ft.prototype={search:function(h,S){return this.visit(h,S)},visit:function(h,S){var C,j,F,Q,ae,he,at,Qe,We,ce;switch(h.type){case"Field":return S!==null&&r(S)?(he=S[h.name],he===void 0?null:he):null;case"Subexpression":for(F=this.visit(h.children[0],S),ce=1;ce0)for(ce=Fo;ceIo;ce+=de)F.push(S[ce]);return F;case"Projection":var ut=this.visit(h.children[0],S);if(!n(ut))return null;for(We=[],ce=0;ceae;break;case G:F=Q>=ae;break;case J:F=Q=h&&(S=C<0?h-1:h),S}};function ye(h){this._interpreter=h,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[u]}]},avg:{_func:this._functionAvg,_signature:[{types:[P]}]},ceil:{_func:this._functionCeil,_signature:[{types:[u]}]},contains:{_func:this._functionContains,_signature:[{types:[c,p]},{types:[a]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[c]},{types:[c]}]},floor:{_func:this._functionFloor,_signature:[{types:[u]}]},length:{_func:this._functionLength,_signature:[{types:[c,p,d]}]},map:{_func:this._functionMap,_signature:[{types:[_]},{types:[p]}]},max:{_func:this._functionMax,_signature:[{types:[P,y]}]},merge:{_func:this._functionMerge,_signature:[{types:[d],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[p]},{types:[_]}]},sum:{_func:this._functionSum,_signature:[{types:[P]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[c]},{types:[c]}]},min:{_func:this._functionMin,_signature:[{types:[P,y]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[p]},{types:[_]}]},type:{_func:this._functionType,_signature:[{types:[a]}]},keys:{_func:this._functionKeys,_signature:[{types:[d]}]},values:{_func:this._functionValues,_signature:[{types:[d]}]},sort:{_func:this._functionSort,_signature:[{types:[y,P]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[p]},{types:[_]}]},join:{_func:this._functionJoin,_signature:[{types:[c]},{types:[y]}]},reverse:{_func:this._functionReverse,_signature:[{types:[c,p]}]},to_array:{_func:this._functionToArray,_signature:[{types:[a]}]},to_string:{_func:this._functionToString,_signature:[{types:[a]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[a]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[a],variadic:!0}]}}}ye.prototype={callFunction:function(h,S){var C=this.functionTable[h];if(C===void 0)throw new Error("Unknown function: "+h+"()");return this._validateArgs(h,S,C._signature),C._func.call(this,S)},_validateArgs:function(h,S,C){var j;if(C[C.length-1].variadic){if(S.length=0;F--)j+=C[F];return j}else{var Q=h[0].slice(0);return Q.reverse(),Q}},_functionAbs:function(h){return Math.abs(h[0])},_functionCeil:function(h){return Math.ceil(h[0])},_functionAvg:function(h){for(var S=0,C=h[0],j=0;j=0},_functionFloor:function(h){return Math.floor(h[0])},_functionLength:function(h){return r(h[0])?Object.keys(h[0]).length:h[0].length},_functionMap:function(h){for(var S=[],C=this._interpreter,j=h[0],F=h[1],Q=0;Q0){var S=this._getTypeName(h[0][0]);if(S===u)return Math.max.apply(Math,h[0]);for(var C=h[0],j=C[0],F=1;F0){var S=this._getTypeName(h[0][0]);if(S===u)return Math.min.apply(Math,h[0]);for(var C=h[0],j=C[0],F=1;FTn?1:ceF&&(F=ae,Q=C[he]);return Q},_functionMinBy:function(h){for(var S=h[1],C=h[0],j=this.createKeyFunction(S,[u,c]),F=1/0,Q,ae,he=0;he(e.bytes="bytes",e.bps="bps",e.counter="counter",e.rps="rps",e.duration="duration",e.timestamp="timestamp",e.unknown="",e))(Kr||{}),k1=class{constructor(e){ve(this,"name");ve(this,"aggregate");ve(this,"tags");ve(this,"group");ve(this,"scenario");const[t,n]=e.split(".",2);this.aggregate=n,this.name=t;let r="";const l=t.indexOf("{");if(l&&l>0){r=t.substring(l),r=r.substring(1,r.length-1);const i=r.indexOf(":"),o=r.substring(0,i),s=r.substring(i+1);this.tags={[o]:s},o=="group"&&(this.group=s.substring(2)),this.name=t.substring(0,l)}}},Qp="time",Uf=class{constructor({values:e={}}={}){ve(this,"values");this.values=e}onEvent(e){for(const t in e)this.values[t]={...e[t],name:t}}find(e){const t=new k1(e);return this.values[t.name]}unit(e,t){const n=this.find(e);if(!n||!t&&e!=Qp)return"";switch(n.type){case"counter":switch(n.contains){case"data":return t=="count"?"bytes":"bps";default:return t=="count"?"counter":"rps"}case"rate":switch(n.contains){case"data":return"bps";default:return"rps"}case"gauge":switch(n.contains){case"time":return n.name==Qp?"timestamp":"duration";case"data":return"bytes";default:return"counter"}case"trend":switch(n.contains){case"time":return"duration";case"data":return"bps";default:return"rps"}default:return""}}},ms="time",vs=class{constructor({length:e=0,capacity:t=1e4,values:n=new Array,aggregate:r="value",metric:l=void 0,unit:i="",name:o="",tags:s={},group:u=void 0}={}){ve(this,"capacity");ve(this,"aggregate");ve(this,"metric");ve(this,"unit");ve(this,"empty");ve(this,"name");ve(this,"tags");ve(this,"group");ve(this,"values");this.values=e==0?n:new Array(e),this.capacity=t,this.aggregate=r,this.metric=l,this.unit=i,this.empty=this.values.length==0,this.name=o,this.tags=s,this.group=u,Object.defineProperty(this,r,{value:!0,configurable:!0,enumerable:!0,writable:!0})}hasTags(){return this.tags!=null&&Object.keys(this.tags).length!=0}formatTags(){if(!this.hasTags())return"";let e="{";for(const t in this.tags)e+=`${t}:${this.tags[t]}`;return e+="}",e}get legend(){let e=this.aggregate;return this.metric&&this.metric.type!="trend"&&this.name.length!=0&&(e=this.name+this.formatTags()),e}grow(e){this.values[e-1]=void 0}push(...e){let t=!1;if(e.forEach(n=>{this.values.push(n),this.empty=!1,this.values.length==this.capacity&&(this.values.shift(),t=!0)}),t){this.empty=!0;for(let n=0;n{t.unit&&!e.includes(t.unit)&&e.push(t.unit)}),e}},O2=class{constructor({capacity:e=1e4,metrics:t=new Uf}={}){ve(this,"capacity");ve(this,"metrics");ve(this,"values");ve(this,"vectors");ve(this,"lookup");this.capacity=e,this.metrics=t,this.lookup={},this.vectors={},this.values={}}get length(){return this.values[ms]?this.values[ms].values.length:0}_push(e,t,n=void 0){const r=n?e+"."+n:e;let l=this.vectors[r];if(l)l.values.length0){r=e.substring(l),r=r.substring(1,r.length-1);const i=r.indexOf(":"),o=r.substring(0,i),s=r.substring(i+1);n.tags={[o]:s},o=="group"&&(n.group=s.substring(2)),e=e.substring(0,l)}return n.name=e,n.metric=this.metrics.find(e),n.unit=this.metrics.unit(e,t),new vs(n)}onEvent(e){for(const t in e){if(t==ms){this._push(t,Math.floor(e[t].value/1e3));continue}for(const n in e[t]){const r=n;this._push(t,e[t][r],r)}}}annotate(e){this.metrics=e;for(const t in this.values){this.values[t].metric=e.find(t);const n=new k1(t);this.values[t].unit=e.unit(n.name,n.aggregate)}}select(e){const t=new P2(this.values[ms]);if(t.length==0)return t;for(const n of e){const r=this.queryAll(n);r.length>0&&t.push(...r)}return t}query(e){const t=Dc.search(this.lookup,e);if(Array.isArray(t)){const r=t.at(0);return r instanceof vs?r:void 0}return t instanceof vs?t:void 0}queryAll(e){const t=Dc.search(this.lookup,e);if(!Array.isArray(t)||t.length==0)return new Array;const n=t;return n.at(0)instanceof vs?n:new Array}},Zp=class{constructor({values:e,metric:t,name:n}={}){ve(this,"values");ve(this,"metric");ve(this,"name");ve(this,"tags");ve(this,"group");this.values=e,this.metric=t,this.name=n,t&&t.type&&Object.defineProperty(this,t.type,{value:!0,configurable:!0,enumerable:!0,writable:!0});let r="";const l=n.indexOf("{");if(l&&l>0){r=n.substring(l),r=r.substring(1,r.length-1);const i=r.indexOf(":"),o=r.substring(0,i),s=r.substring(i+1);this.tags={[o]:s},o=="group"&&(this.group=s.substring(2)),n=n.substring(0,l)}}},N2="time",M2=class extends Array{constructor(t){super();ve(this,"aggregates");this.aggregates=new Array;for(let n=0;nl))}}get empty(){return this.length==0}},R2=class{constructor({values:t={},metrics:n=new Uf,time:r=0}={}){ve(this,"values");ve(this,"lookup");ve(this,"metrics");ve(this,"time");this.values=t,this.lookup=new Array,this.metrics=n,this.time=r}onEvent(t){const n={};let r=0;for(const i in t){if(i==N2){r=Math.floor(t[i].value/1e3);continue}const o=this.newSummaryRow(i,t[i]);n[i]=o}this.values=n,this.time=r;const l=Array();for(const i in this.values)l.push(this.values[i]);this.lookup=l}newSummaryRow(t,n){const r={};return r.name=t,r.metric=this.metrics.find(t),r.values=n,new Zp(r)}annotate(t){this.metrics=t;for(const n in this.values)this.values[n].metric=t.find(n)}select(t){const n=new Array;for(const r of t){const l=this.queryAll(r);l.length>0&&n.push(...l)}return new M2(n)}queryAll(t){const n=Dc.search(this.lookup,t);if(!Array.isArray(n)||n.length==0)return new Array;const r=n;return r.at(0)instanceof Zp?r:new Array}},L2=class{constructor(e={}){Object.assign(this,e)}},S1=(e=>(e.config="config",e.param="param",e.start="start",e.stop="stop",e.metric="metric",e.snapshot="snapshot",e.cumulative="cumulative",e))(S1||{}),zc=class{constructor({config:e={},param:t={},start:n=void 0,stop:r=void 0,metrics:l=new Uf,samples:i=new O2,summary:o=new R2}={}){ve(this,"config");ve(this,"param");ve(this,"start");ve(this,"stop");ve(this,"metrics");ve(this,"samples");ve(this,"summary");this.config=e,this.param=t,this.start=n,this.stop=r,this.metrics=l,this.samples=i,this.summary=o}handleEvent(e){const t=e.type,n=JSON.parse(e.data);this.onEvent(t,n)}onEvent(e,t){for(const n in t)for(const r in t[n])if(r.indexOf("(")>=0){const l=r.replaceAll("(","").replaceAll(")","");t[n][l]=t[n][r],delete t[n][r]}switch(e){case"config":this.onConfig(t);break;case"param":this.onParam(t);break;case"start":this.onStart(t);break;case"stop":this.onStop(t);break;case"metric":this.onMetric(t);break;case"snapshot":this.onSnapshot(t);break;case"cumulative":this.onCumulative(t);break}}onConfig(e){Object.assign(this.config,e)}onParam(e){Object.assign(this.param,e)}onStart(e){e.time&&e.time.value&&(this.start=new Date(e.time.value))}onStop(e){e.time&&e.time.value&&(this.stop=new Date(e.time.value))}onMetric(e){this.metrics.onEvent(e),this.samples.annotate(this.metrics),this.summary.annotate(this.metrics)}onSnapshot(e){this.samples.onEvent(e),this.samples.annotate(this.metrics)}onCumulative(e){this.summary.onEvent(e),this.summary.annotate(this.metrics)}};const Wf=H.createContext(()=>new zc({config:_1}));Wf.displayName="Digest";function j2({endpoint:e="/events",children:t}){const[n,r]=H.useState(new zc({config:new L2(_1)}));return H.useEffect(()=>{const l=new EventSource(e),i=o=>{n.handleEvent(o),r(new zc(n))};for(const o in S1)l.addEventListener(o,i)},[]),b.jsx(Wf.Provider,{value:()=>n,children:t})}function pl(){const e=H.useContext(Wf);if(e===void 0)throw new Error("useDigest must be used within a DigestProvider");return e()}var A2="_1dwurlb25",b2="_1dwurlb24";globalThis&&globalThis.__awaiter;function E1(){const[e,t]=H.useState(null),[n,r]=H.useState({width:0,height:0}),l=H.useCallback(()=>{r({width:(e==null?void 0:e.offsetWidth)||0,height:(e==null?void 0:e.offsetHeight)||0})},[e==null?void 0:e.offsetHeight,e==null?void 0:e.offsetWidth]);return To("resize",l),qf(()=>{l()},[e==null?void 0:e.offsetHeight,e==null?void 0:e.offsetWidth]),[t,n]}function C1(e){const t=H.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return qf(()=>{t.current=e},[e]),H.useCallback((...n)=>t.current(...n),[t])}function To(e,t,n,r){const l=H.useRef(t);qf(()=>{l.current=t},[t]),H.useEffect(()=>{var i;const o=(i=n==null?void 0:n.current)!==null&&i!==void 0?i:window;if(!(o&&o.addEventListener))return;const s=u=>l.current(u);return o.addEventListener(e,s,r),()=>{o.removeEventListener(e,s,r)}},[e,n,r])}globalThis&&globalThis.__awaiter;const qf=typeof window<"u"?H.useLayoutEffect:H.useEffect;function D2(e){const t=i=>typeof window<"u"?window.matchMedia(i).matches:!1,[n,r]=H.useState(t(e));function l(){r(t(e))}return H.useEffect(()=>{const i=window.matchMedia(e);return l(),i.addListener?i.addListener(l):i.addEventListener("change",l),()=>{i.removeListener?i.removeListener(l):i.removeEventListener("change",l)}},[e]),n}function z2(e,t){const n=H.useCallback(()=>{if(typeof window>"u")return t;try{const s=window.sessionStorage.getItem(e);return s?F2(s):t}catch(s){return console.warn(`Error reading sessionStorage key “${e}”:`,s),t}},[t,e]),[r,l]=H.useState(n),i=C1(s=>{typeof window>"u"&&console.warn(`Tried setting sessionStorage key “${e}” even though environment is not a client`);try{const u=s instanceof Function?s(r):s;window.sessionStorage.setItem(e,JSON.stringify(u)),l(u),window.dispatchEvent(new Event("session-storage"))}catch(u){console.warn(`Error setting sessionStorage key “${e}”:`,u)}});H.useEffect(()=>{l(n())},[]);const o=H.useCallback(s=>{s!=null&&s.key&&s.key!==e||l(n())},[e,n]);return To("storage",o),To("session-storage",o),[r,i]}function F2(e){try{return e==="undefined"?void 0:JSON.parse(e??"")}catch{console.log("parsing error on",{value:e});return}}const T1=H.createContext({});function I2({children:e}){const t=D2("(prefers-color-scheme: dark)"),[n,r]=z2("theme",t?"dark":"light"),l={theme:n,themeClassName:n==="light"?b2:A2,setTheme:r};return b.jsx(T1.Provider,{value:l,children:e})}function pi(){const e=H.useContext(T1);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}const P1=H.createContext(void 0);function B2({children:e}){const[t,n]=H.useState(),r={timeRange:t,setTimeRange:n};return b.jsx(P1.Provider,{value:r,children:e})}function $2(){const e=H.useContext(P1);if(e===void 0)throw new Error("useTimeRange must be used within a TimeRangeProvider");return e}var H2={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},V2={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},U2={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"},W2={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"},Au={black:"#000000",white:"#ffffff"},q2={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"},K2={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},G2={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"},Y2={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},O1={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Q2={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},Z2={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},J2={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"},X2={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"},Jp={50:"#ffffff",100:"#D6DCFF",200:"#CED4EF",300:"#C2CAEF",400:"#B6C0EF",500:"#AAB6EF",600:"#3f486b",700:"#394160",800:"#2c324b",900:"#1F2537"},ew={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},tw={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},nw={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},rw={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},lw={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},iw={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"};const gs={red:rw,pink:tw,purple:nw,deepPurple:G2,indigo:Q2,blue:V2,lightBlue:Z2,cyan:q2,teal:lw,green:Y2,lightGreen:J2,lime:X2,yellow:iw,amber:H2,orange:ew,deepOrange:K2,brown:W2,grey:O1,blueGrey:U2},ow=["grey","teal","blue","purple","indigo","orange","pink","green","cyan","amber","lime","brown","lightGreen","red","deepPurple","lightBlue","yellow","deepOrange","blueGrey"],N1=e=>ow.map(t=>({stroke:e=="dark"?gs[t][500]:gs[t][800],fill:(e=="dark"?gs[t][300]:gs[t][600])+"20"})),sw=e=>Object.entries(e).reduce((t,[n,r])=>r===void 0?t:{...t,[n]:r},{}),aw=(e,t)=>Object.entries(t).reduce((n,[r,l])=>(e.includes(r)&&(n[r]=l),n),{}),uw=(e,t)=>({...e,...t}),cw=e=>(t,n)=>uw(t,aw(e,n));function Xp(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function fw(e,t){var n=e;for(var r of t){if(!(r in n))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));n=n[r]}return n}function M1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=e.constructor();for(var l in e){var i=e[l],o=[...n,l];typeof i=="string"||typeof i=="number"||i==null?r[l]=t(i,o):typeof i=="object"&&!Array.isArray(i)?r[l]=M1(i,t,o):console.warn('Skipping invalid key "'.concat(o.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"'))}return r}function dw(e,t){var n={};if(typeof t=="object"){var r=e;M1(t,(o,s)=>{var u=fw(r,s);n[Xp(u)]=String(o)})}else{var l=e;for(var i in l)n[Xp(i)]=l[i]}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(s=>"".concat(s,":").concat(this[s])).join(";")},writable:!1}),n}const Yn=(...e)=>e.filter(Boolean).join(" "),pw=(e,t)=>dw(e,sw(t));function hw(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mw(e){var t=hw(e,"string");return typeof t=="symbol"?t:String(t)}function vw(e,t,n){return t=mw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function bu(e){for(var t=1;tfunction(){for(var t=arguments.length,n=new Array(t),r=0;ru.styles)),i=Object.keys(l),o=i.filter(u=>"mappings"in l[u]),s=u=>{var a=[],c={},p=bu({},u),d=!1;for(var g of o){var _=u[g];if(_!=null){var x=l[g];d=!0;for(var P of x.mappings)c[P]=_,p[P]==null&&delete p[P]}}var y=d?bu(bu({},c),p):u,v=function(){var R=y[w],M=l[w];try{if(M.mappings)return"continue";if(typeof R=="string"||typeof R=="number")a.push(M.values[R].defaultClass);else if(Array.isArray(R))for(var L=0;Le,bo=function(){return gw(yw)(...arguments)},ww="wy7gkc15",_w={flexGrow:"var(--wy7gkc10)",flexShrink:"var(--wy7gkc11)",flexBasis:"var(--wy7gkc12)",height:"var(--wy7gkc13)",width:"var(--wy7gkc14)"},xw=bo({conditions:void 0,styles:{flexDirection:{values:{row:{defaultClass:"wy7gkc0"},column:{defaultClass:"wy7gkc1"}}},flexWrap:{values:{nowrap:{defaultClass:"wy7gkc2"},wrap:{defaultClass:"wy7gkc3"},"wrap-reverse":{defaultClass:"wy7gkc4"}}},alignItems:{values:{"flex-start":{defaultClass:"wy7gkc5"},"flex-end":{defaultClass:"wy7gkc6"},stretch:{defaultClass:"wy7gkc7"},center:{defaultClass:"wy7gkc8"},baseline:{defaultClass:"wy7gkc9"},start:{defaultClass:"wy7gkca"},end:{defaultClass:"wy7gkcb"},"self-start":{defaultClass:"wy7gkcc"},"self-end":{defaultClass:"wy7gkcd"}}},justifyContent:{values:{"flex-start":{defaultClass:"wy7gkce"},"flex-end":{defaultClass:"wy7gkcf"},start:{defaultClass:"wy7gkcg"},end:{defaultClass:"wy7gkch"},left:{defaultClass:"wy7gkci"},right:{defaultClass:"wy7gkcj"},center:{defaultClass:"wy7gkck"},"space-between":{defaultClass:"wy7gkcl"},"space-around":{defaultClass:"wy7gkcm"},"space-evenly":{defaultClass:"wy7gkcn"}}},gap:{values:{0:{defaultClass:"wy7gkco"},1:{defaultClass:"wy7gkcp"},2:{defaultClass:"wy7gkcq"},3:{defaultClass:"wy7gkcr"},4:{defaultClass:"wy7gkcs"},5:{defaultClass:"wy7gkct"}}},padding:{values:{0:{defaultClass:"wy7gkcu"},1:{defaultClass:"wy7gkcv"},2:{defaultClass:"wy7gkcw"},3:{defaultClass:"wy7gkcx"},4:{defaultClass:"wy7gkcy"},5:{defaultClass:"wy7gkcz"}}}}});function kw({as:e="div",align:t,basis:n,children:r,className:l,direction:i,gap:o=3,grow:s,height:u,justify:a,padding:c,shrink:p,width:d,wrap:g,..._},x){const P=xw({alignItems:t,flexDirection:i,flexWrap:g,gap:o,justifyContent:a,padding:c}),y=Yn(ww,P,l),v=pw(_w,{flexBasis:n,flexGrow:s,flexShrink:p,height:u,width:d});return b.jsx(e,{ref:x,className:y,style:v,..._,children:r})}const St=H.forwardRef(kw);var Sw={fill:"_17y8ldl1 _17y8ldl0",text:"_17y8ldl0"};const Ew=({as:e="button",children:t,className:n,variant:r="fill",...l},i)=>b.jsx(e,{ref:i,className:Yn(Sw[r],n),...l,children:t}),Ma=H.forwardRef(Ew);var Cw="_17unuvp0";const Tw=({className:e,...t})=>b.jsx("div",{className:Yn(Cw,e),...t}),Pw=e=>H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",...e},H.createElement("rect",{fill:"none",height:24,width:24}),H.createElement("path",{d:"M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36c-0.98,1.37-2.58,2.26-4.4,2.26 c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})),Ow=e=>H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",...e},H.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),H.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),Nw=e=>H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",...e},H.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),H.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})),Mw=e=>H.createElement("svg",{fill:"currentColor",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"24px",viewBox:"796 796 200 200",enableBackground:"new 796 796 200 200",xmlSpace:"preserve",...e},H.createElement("g",null,H.createElement("path",{d:"M939.741,830.286c0.203-1.198-0.133-2.426-0.918-3.354s-1.938-1.461-3.153-1.461h-79.338c-1.214,0-2.365,0.536-3.149,1.463 c-0.784,0.928-1.124,2.155-0.92,3.352c2.866,16.875,12.069,32.797,25.945,42.713c7.737,5.529,13.827,8.003,17.793,8.003 c3.965,0,10.055-2.474,17.793-8.003C927.67,863.083,936.874,847.162,939.741,830.286z"}),H.createElement("path",{d:"M966.478,980.009h-5.074v-11.396c0-23.987-13.375-48.914-35.775-66.679l-7.485-5.936l7.485-5.934 c22.4-17.762,35.775-42.688,35.775-66.678v-11.396h5.074c4.416,0,7.996-3.58,7.996-7.995c0-4.416-3.58-7.996-7.996-7.996H825.521 c-4.415,0-7.995,3.58-7.995,7.996c0,4.415,3.58,7.995,7.995,7.995h5.077v9.202c0,27.228,13.175,53.007,35.243,68.962l8.085,5.843 l-8.085,5.847c-22.068,15.952-35.243,41.732-35.243,68.962v9.202h-5.077c-4.415,0-7.995,3.58-7.995,7.996 c0,4.415,3.58,7.995,7.995,7.995h140.956c4.416,0,7.996-3.58,7.996-7.995C974.474,983.589,970.894,980.009,966.478,980.009z M842.592,970.807c0-23.392,11.318-45.538,30.277-59.242l8.429-6.097c3.03-2.19,4.839-5.729,4.839-9.47 c0-3.739-1.809-7.279-4.84-9.471l-8.429-6.091c-18.958-13.707-30.276-35.853-30.276-59.243v-3.349c0-3.232,2.62-5.853,5.853-5.853 h95.112c3.232,0,5.854,2.621,5.854,5.853v5.543c0,20.36-11.676,41.774-31.232,57.279l-7.792,6.177 c-2.811,2.232-4.422,5.568-4.422,9.155c0,3.588,1.611,6.926,4.425,9.157l7.788,6.177c19.558,15.508,31.233,36.921,31.233,57.28 v5.544c0,3.232-2.621,5.854-5.854,5.854h-95.112c-3.232,0-5.853-2.621-5.853-5.854V970.807z"}))),Rw=e=>H.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},H.createElement("path",{d:"M12 11V16M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),H.createElement("circle",{cx:12,cy:7.5,r:1,fill:"currentColor"})),Lw=e=>H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",...e},H.createElement("rect",{fill:"none",height:24,width:24}),H.createElement("path",{d:"M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0 c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2 c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1 C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06 c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41 l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41 c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36 c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})),jw=e=>H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:37,height:34,viewBox:"0 0 37 34",fill:"currentColor",...e},H.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.9129 12.4547L29.0217 0L36.6667 33.1967H0L12.2687 6.86803L19.9129 12.4547ZM15.1741 24.4166L17.3529 27.4205L19.6915 27.4198L17.1351 23.8957L19.3864 20.7907L17.8567 19.6768L15.1741 23.3764V17.7248L13.1575 16.2575V27.4205H15.1741V24.4166ZM20.0105 24.1067C20.0105 26.0056 21.5468 27.5452 23.4425 27.5452C25.3396 27.5452 26.8759 26.0056 26.8759 24.1075C26.8746 23.2903 26.5844 22.5003 26.0573 21.8786C25.5301 21.2569 24.8003 20.8441 23.9983 20.714L25.6403 18.45L24.1105 17.3361L20.6675 22.0832C20.2395 22.6699 20.0093 23.379 20.0105 24.1067ZM24.9179 24.1067C24.9179 24.9226 24.2579 25.5843 23.4432 25.5843C23.2499 25.5848 23.0583 25.547 22.8795 25.473C22.7007 25.399 22.5382 25.2903 22.4011 25.153C22.2641 25.0158 22.1553 24.8528 22.081 24.6733C22.0066 24.4937 21.9681 24.3012 21.9677 24.1067C21.9677 23.2908 22.6277 22.6291 23.4432 22.6291C24.2572 22.6291 24.9179 23.2908 24.9179 24.1067Z",fill:"#7D64FF"})),Aw=e=>H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"currentColor",...e},H.createElement("path",{d:"M12 2C12 0.89544 11.1046 0 10 0C8.8954 0 8 0.89544 8 2C8 3.10456 8.8954 4 10 4C11.1046 4 12 3.10456 12 2Z",fill:"currentColor"}),H.createElement("path",{d:"M12 9.33337C12 8.22881 11.1046 7.33337 10 7.33337C8.8954 7.33337 8 8.22881 8 9.33337C8 10.4379 8.8954 11.3334 10 11.3334C11.1046 11.3334 12 10.4379 12 9.33337Z",fill:"currentColor"}),H.createElement("path",{d:"M12 16.6666C12 15.5621 11.1046 14.6666 10 14.6666C8.8954 14.6666 8 15.5621 8 16.6666C8 17.7712 8.8954 18.6666 10 18.6666C11.1046 18.6666 12 17.7712 12 16.6666Z",fill:"currentColor"})),bw=e=>H.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},H.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},H.createElement("g",{id:"add",fill:"currentColor",transform:"translate(42.666667, 42.666667)"},H.createElement("path",{d:"M291.76704,163.504 C291.76704,177.01952 288.33216,188.82176 281.479253,198.90112 C275.828267,207.371093 266.358187,216.549547 253.042987,226.434987 C245.378987,231.682347 240.331947,236.618667 237.916587,241.257813 C234.87744,246.90624 233.376213,255.371093 233.376213,266.666667 L190.710827,266.666667 C190.710827,249.530027 192.53504,237.027413 196.165333,229.162667 C200.394453,219.679573 209.571627,210.098773 223.686187,200.42048 C230.350293,195.374933 235.188693,190.2368 238.214827,184.994773 C241.839787,179.143253 243.664,172.49216 243.664,165.028693 C243.664,153.13024 240.125013,144.26304 233.070293,138.404907 C227.4336,134.177067 220.56768,132.059947 212.501333,132.059947 C199.39328,132.059947 189.911467,136.398507 184.065067,145.069013 C179.829333,151.518293 177.7056,159.787733 177.7056,169.868587 L177.7056,170.173227 L132.34368,170.173227 C132.34368,143.751253 140.703147,123.790507 157.43488,110.274773 C171.554773,98.9922133 189.007787,93.3346133 209.77344,93.3346133 C227.933653,93.3346133 243.865813,96.86848 257.571627,103.9232 C280.37504,115.62624 291.76704,135.494827 291.76704,163.504 Z M426.666667,213.333333 C426.666667,331.153707 331.153707,426.666667 213.333333,426.666667 C95.51296,426.666667 3.55271368e-14,331.153707 3.55271368e-14,213.333333 C3.55271368e-14,95.51168 95.51296,3.55271368e-14 213.333333,3.55271368e-14 C331.153707,3.55271368e-14 426.666667,95.51168 426.666667,213.333333 Z M384,213.333333 C384,119.226667 307.43872,42.6666667 213.333333,42.6666667 C119.227947,42.6666667 42.6666667,119.226667 42.6666667,213.333333 C42.6666667,307.43872 119.227947,384 213.333333,384 C307.43872,384 384,307.43872 384,213.333333 Z M213.332053,282.666667 C198.60416,282.666667 186.665387,294.60544 186.665387,309.333333 C186.665387,324.061227 198.60416,336 213.332053,336 C228.059947,336 239.99872,324.061227 239.99872,309.333333 C239.99872,294.60544 228.059947,282.666667 213.332053,282.666667 Z",id:"Shape"})))),Dw=e=>H.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},H.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"}),H.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12H19C19 15.866 15.866 19 12 19V22Z",fill:"currentColor"}),H.createElement("path",{d:"M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z",fill:"currentColor"})),zw=e=>H.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:"bi bi-stopwatch",...e},H.createElement("path",{d:"M8.5 5.6a.5.5 0 1 0-1 0v2.9h-3a.5.5 0 0 0 0 1H8a.5.5 0 0 0 .5-.5V5.6z"}),H.createElement("path",{d:"M6.5 1A.5.5 0 0 1 7 .5h2a.5.5 0 0 1 0 1v.57c1.36.196 2.594.78 3.584 1.64a.715.715 0 0 1 .012-.013l.354-.354-.354-.353a.5.5 0 0 1 .707-.708l1.414 1.415a.5.5 0 1 1-.707.707l-.353-.354-.354.354a.512.512 0 0 1-.013.012A7 7 0 1 1 7 2.071V1.5a.5.5 0 0 1-.5-.5zM8 3a6 6 0 1 0 .001 12A6 6 0 0 0 8 3z"}));function Fw({className:e,name:t,title:n,...r},l){const i=Iw[t];return b.jsx("span",{ref:l,children:b.jsx(i,{"aria-hidden":"true",className:e,title:n,...r})})}const Iw={"chevron-down":Nw,"chevron-up":Ow,"hour-glass":Mw,info:Rw,options:Aw,logo:jw,moon:Pw,question:bw,spinner:Dw,"stop-watch":zw,sun:Lw},Kn=H.forwardRef(Fw);var t0=function(t){return t.reduce(function(n,r){var l=r[0],i=r[1];return n[l]=i,n},{})},n0=typeof window<"u"&&window.document&&window.document.createElement?H.useLayoutEffect:H.useEffect,Zt="top",Sn="bottom",En="right",Jt="left",Kf="auto",Do=[Zt,Sn,En,Jt],Xl="start",Po="end",Bw="clippingParents",R1="viewport",Ii="popper",$w="reference",r0=Do.reduce(function(e,t){return e.concat([t+"-"+Xl,t+"-"+Po])},[]),L1=[].concat(Do,[Kf]).reduce(function(e,t){return e.concat([t,t+"-"+Xl,t+"-"+Po])},[]),Hw="beforeRead",Vw="read",Uw="afterRead",Ww="beforeMain",qw="main",Kw="afterMain",Gw="beforeWrite",Yw="write",Qw="afterWrite",Zw=[Hw,Vw,Uw,Ww,qw,Kw,Gw,Yw,Qw];function Gn(e){return e?(e.nodeName||"").toLowerCase():null}function an(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ul(e){var t=an(e).Element;return e instanceof t||e instanceof Element}function _n(e){var t=an(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Gf(e){if(typeof ShadowRoot>"u")return!1;var t=an(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Jw(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},l=t.attributes[n]||{},i=t.elements[n];!_n(i)||!Gn(i)||(Object.assign(i.style,r),Object.keys(l).forEach(function(o){var s=l[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function Xw(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var l=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=o.reduce(function(u,a){return u[a]="",u},{});!_n(l)||!Gn(l)||(Object.assign(l.style,s),Object.keys(i).forEach(function(u){l.removeAttribute(u)}))})}}const e_={name:"applyStyles",enabled:!0,phase:"write",fn:Jw,effect:Xw,requires:["computeStyles"]};function qn(e){return e.split("-")[0]}var tl=Math.max,aa=Math.min,ei=Math.round;function Fc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function j1(){return!/^((?!chrome|android).)*safari/i.test(Fc())}function ti(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),l=1,i=1;t&&_n(e)&&(l=e.offsetWidth>0&&ei(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ei(r.height)/e.offsetHeight||1);var o=ul(e)?an(e):window,s=o.visualViewport,u=!j1()&&n,a=(r.left+(u&&s?s.offsetLeft:0))/l,c=(r.top+(u&&s?s.offsetTop:0))/i,p=r.width/l,d=r.height/i;return{width:p,height:d,top:c,right:a+p,bottom:c+d,left:a,x:a,y:c}}function Yf(e){var t=ti(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function A1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Gf(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function fr(e){return an(e).getComputedStyle(e)}function t_(e){return["table","td","th"].indexOf(Gn(e))>=0}function Br(e){return((ul(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ra(e){return Gn(e)==="html"?e:e.assignedSlot||e.parentNode||(Gf(e)?e.host:null)||Br(e)}function l0(e){return!_n(e)||fr(e).position==="fixed"?null:e.offsetParent}function n_(e){var t=/firefox/i.test(Fc()),n=/Trident/i.test(Fc());if(n&&_n(e)){var r=fr(e);if(r.position==="fixed")return null}var l=Ra(e);for(Gf(l)&&(l=l.host);_n(l)&&["html","body"].indexOf(Gn(l))<0;){var i=fr(l);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return l;l=l.parentNode}return null}function zo(e){for(var t=an(e),n=l0(e);n&&t_(n)&&fr(n).position==="static";)n=l0(n);return n&&(Gn(n)==="html"||Gn(n)==="body"&&fr(n).position==="static")?t:n||n_(e)||t}function Qf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lo(e,t,n){return tl(e,aa(t,n))}function r_(e,t,n){var r=lo(e,t,n);return r>n?n:r}function b1(){return{top:0,right:0,bottom:0,left:0}}function D1(e){return Object.assign({},b1(),e)}function z1(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var l_=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,D1(typeof t!="number"?t:z1(t,Do))};function i_(e){var t,n=e.state,r=e.name,l=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=qn(n.placement),u=Qf(s),a=[Jt,En].indexOf(s)>=0,c=a?"height":"width";if(!(!i||!o)){var p=l_(l.padding,n),d=Yf(i),g=u==="y"?Zt:Jt,_=u==="y"?Sn:En,x=n.rects.reference[c]+n.rects.reference[u]-o[u]-n.rects.popper[c],P=o[u]-n.rects.reference[u],y=zo(i),v=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,w=x/2-P/2,T=p[g],O=v-d[c]-p[_],R=v/2-d[c]/2+w,M=lo(T,R,O),L=u;n.modifiersData[r]=(t={},t[L]=M,t.centerOffset=M-R,t)}}function o_(e){var t=e.state,n=e.options,r=n.element,l=r===void 0?"[data-popper-arrow]":r;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||A1(t.elements.popper,l)&&(t.elements.arrow=l))}const s_={name:"arrow",enabled:!0,phase:"main",fn:i_,effect:o_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ni(e){return e.split("-")[1]}var a_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function u_(e,t){var n=e.x,r=e.y,l=t.devicePixelRatio||1;return{x:ei(n*l)/l||0,y:ei(r*l)/l||0}}function i0(e){var t,n=e.popper,r=e.popperRect,l=e.placement,i=e.variation,o=e.offsets,s=e.position,u=e.gpuAcceleration,a=e.adaptive,c=e.roundOffsets,p=e.isFixed,d=o.x,g=d===void 0?0:d,_=o.y,x=_===void 0?0:_,P=typeof c=="function"?c({x:g,y:x}):{x:g,y:x};g=P.x,x=P.y;var y=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),w=Jt,T=Zt,O=window;if(a){var R=zo(n),M="clientHeight",L="clientWidth";if(R===an(n)&&(R=Br(n),fr(R).position!=="static"&&s==="absolute"&&(M="scrollHeight",L="scrollWidth")),R=R,l===Zt||(l===Jt||l===En)&&i===Po){T=Sn;var I=p&&R===O&&O.visualViewport?O.visualViewport.height:R[M];x-=I-r.height,x*=u?1:-1}if(l===Jt||(l===Zt||l===Sn)&&i===Po){w=En;var D=p&&R===O&&O.visualViewport?O.visualViewport.width:R[L];g-=D-r.width,g*=u?1:-1}}var z=Object.assign({position:s},a&&a_),V=c===!0?u_({x:g,y:x},an(n)):{x:g,y:x};if(g=V.x,x=V.y,u){var K;return Object.assign({},z,(K={},K[T]=v?"0":"",K[w]=y?"0":"",K.transform=(O.devicePixelRatio||1)<=1?"translate("+g+"px, "+x+"px)":"translate3d("+g+"px, "+x+"px, 0)",K))}return Object.assign({},z,(t={},t[T]=v?x+"px":"",t[w]=y?g+"px":"",t.transform="",t))}function c_(e){var t=e.state,n=e.options,r=n.gpuAcceleration,l=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,s=n.roundOffsets,u=s===void 0?!0:s,a={placement:qn(t.placement),variation:ni(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,i0(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,i0(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const f_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:c_,data:{}};var ys={passive:!0};function d_(e){var t=e.state,n=e.instance,r=e.options,l=r.scroll,i=l===void 0?!0:l,o=r.resize,s=o===void 0?!0:o,u=an(t.elements.popper),a=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&a.forEach(function(c){c.addEventListener("scroll",n.update,ys)}),s&&u.addEventListener("resize",n.update,ys),function(){i&&a.forEach(function(c){c.removeEventListener("scroll",n.update,ys)}),s&&u.removeEventListener("resize",n.update,ys)}}const p_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:d_,data:{}};var h_={left:"right",right:"left",bottom:"top",top:"bottom"};function As(e){return e.replace(/left|right|bottom|top/g,function(t){return h_[t]})}var m_={start:"end",end:"start"};function o0(e){return e.replace(/start|end/g,function(t){return m_[t]})}function Zf(e){var t=an(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Jf(e){return ti(Br(e)).left+Zf(e).scrollLeft}function v_(e,t){var n=an(e),r=Br(e),l=n.visualViewport,i=r.clientWidth,o=r.clientHeight,s=0,u=0;if(l){i=l.width,o=l.height;var a=j1();(a||!a&&t==="fixed")&&(s=l.offsetLeft,u=l.offsetTop)}return{width:i,height:o,x:s+Jf(e),y:u}}function g_(e){var t,n=Br(e),r=Zf(e),l=(t=e.ownerDocument)==null?void 0:t.body,i=tl(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),o=tl(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),s=-r.scrollLeft+Jf(e),u=-r.scrollTop;return fr(l||n).direction==="rtl"&&(s+=tl(n.clientWidth,l?l.clientWidth:0)-i),{width:i,height:o,x:s,y:u}}function Xf(e){var t=fr(e),n=t.overflow,r=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+r)}function F1(e){return["html","body","#document"].indexOf(Gn(e))>=0?e.ownerDocument.body:_n(e)&&Xf(e)?e:F1(Ra(e))}function io(e,t){var n;t===void 0&&(t=[]);var r=F1(e),l=r===((n=e.ownerDocument)==null?void 0:n.body),i=an(r),o=l?[i].concat(i.visualViewport||[],Xf(r)?r:[]):r,s=t.concat(o);return l?s:s.concat(io(Ra(o)))}function Ic(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function y_(e,t){var n=ti(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function s0(e,t,n){return t===R1?Ic(v_(e,n)):ul(t)?y_(t,n):Ic(g_(Br(e)))}function w_(e){var t=io(Ra(e)),n=["absolute","fixed"].indexOf(fr(e).position)>=0,r=n&&_n(e)?zo(e):e;return ul(r)?t.filter(function(l){return ul(l)&&A1(l,r)&&Gn(l)!=="body"}):[]}function __(e,t,n,r){var l=t==="clippingParents"?w_(e):[].concat(t),i=[].concat(l,[n]),o=i[0],s=i.reduce(function(u,a){var c=s0(e,a,r);return u.top=tl(c.top,u.top),u.right=aa(c.right,u.right),u.bottom=aa(c.bottom,u.bottom),u.left=tl(c.left,u.left),u},s0(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function I1(e){var t=e.reference,n=e.element,r=e.placement,l=r?qn(r):null,i=r?ni(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,u;switch(l){case Zt:u={x:o,y:t.y-n.height};break;case Sn:u={x:o,y:t.y+t.height};break;case En:u={x:t.x+t.width,y:s};break;case Jt:u={x:t.x-n.width,y:s};break;default:u={x:t.x,y:t.y}}var a=l?Qf(l):null;if(a!=null){var c=a==="y"?"height":"width";switch(i){case Xl:u[a]=u[a]-(t[c]/2-n[c]/2);break;case Po:u[a]=u[a]+(t[c]/2-n[c]/2);break}}return u}function Oo(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,s=n.boundary,u=s===void 0?Bw:s,a=n.rootBoundary,c=a===void 0?R1:a,p=n.elementContext,d=p===void 0?Ii:p,g=n.altBoundary,_=g===void 0?!1:g,x=n.padding,P=x===void 0?0:x,y=D1(typeof P!="number"?P:z1(P,Do)),v=d===Ii?$w:Ii,w=e.rects.popper,T=e.elements[_?v:d],O=__(ul(T)?T:T.contextElement||Br(e.elements.popper),u,c,o),R=ti(e.elements.reference),M=I1({reference:R,element:w,strategy:"absolute",placement:l}),L=Ic(Object.assign({},w,M)),I=d===Ii?L:R,D={top:O.top-I.top+y.top,bottom:I.bottom-O.bottom+y.bottom,left:O.left-I.left+y.left,right:I.right-O.right+y.right},z=e.modifiersData.offset;if(d===Ii&&z){var V=z[l];Object.keys(D).forEach(function(K){var oe=[En,Sn].indexOf(K)>=0?1:-1,se=[Zt,Sn].indexOf(K)>=0?"y":"x";D[K]+=V[se]*oe})}return D}function x_(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,a=u===void 0?L1:u,c=ni(r),p=c?s?r0:r0.filter(function(_){return ni(_)===c}):Do,d=p.filter(function(_){return a.indexOf(_)>=0});d.length===0&&(d=p);var g=d.reduce(function(_,x){return _[x]=Oo(e,{placement:x,boundary:l,rootBoundary:i,padding:o})[qn(x)],_},{});return Object.keys(g).sort(function(_,x){return g[_]-g[x]})}function k_(e){if(qn(e)===Kf)return[];var t=As(e);return[o0(e),t,o0(t)]}function S_(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var l=n.mainAxis,i=l===void 0?!0:l,o=n.altAxis,s=o===void 0?!0:o,u=n.fallbackPlacements,a=n.padding,c=n.boundary,p=n.rootBoundary,d=n.altBoundary,g=n.flipVariations,_=g===void 0?!0:g,x=n.allowedAutoPlacements,P=t.options.placement,y=qn(P),v=y===P,w=u||(v||!_?[As(P)]:k_(P)),T=[P].concat(w).reduce(function(X,pe){return X.concat(qn(pe)===Kf?x_(t,{placement:pe,boundary:c,rootBoundary:p,padding:a,flipVariations:_,allowedAutoPlacements:x}):pe)},[]),O=t.rects.reference,R=t.rects.popper,M=new Map,L=!0,I=T[0],D=0;D=0,se=oe?"width":"height",fe=Oo(t,{placement:z,boundary:c,rootBoundary:p,altBoundary:d,padding:a}),ne=oe?K?En:Jt:K?Sn:Zt;O[se]>R[se]&&(ne=As(ne));var q=As(ne),J=[];if(i&&J.push(fe[V]<=0),s&&J.push(fe[ne]<=0,fe[q]<=0),J.every(function(X){return X})){I=z,L=!1;break}M.set(z,J)}if(L)for(var G=_?3:1,re=function(pe){var Le=T.find(function(Ue){var Be=M.get(Ue);if(Be)return Be.slice(0,pe).every(function(tt){return tt})});if(Le)return I=Le,"break"},Y=G;Y>0;Y--){var me=re(Y);if(me==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const E_={name:"flip",enabled:!0,phase:"main",fn:S_,requiresIfExists:["offset"],data:{_skip:!1}};function a0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function u0(e){return[Zt,En,Sn,Jt].some(function(t){return e[t]>=0})}function C_(e){var t=e.state,n=e.name,r=t.rects.reference,l=t.rects.popper,i=t.modifiersData.preventOverflow,o=Oo(t,{elementContext:"reference"}),s=Oo(t,{altBoundary:!0}),u=a0(o,r),a=a0(s,l,i),c=u0(u),p=u0(a);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:a,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}const T_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:C_};function P_(e,t,n){var r=qn(e),l=[Jt,Zt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*l,[Jt,En].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function O_(e){var t=e.state,n=e.options,r=e.name,l=n.offset,i=l===void 0?[0,0]:l,o=L1.reduce(function(c,p){return c[p]=P_(p,t.rects,i),c},{}),s=o[t.placement],u=s.x,a=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=a),t.modifiersData[r]=o}const N_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:O_};function M_(e){var t=e.state,n=e.name;t.modifiersData[n]=I1({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const R_={name:"popperOffsets",enabled:!0,phase:"read",fn:M_,data:{}};function L_(e){return e==="x"?"y":"x"}function j_(e){var t=e.state,n=e.options,r=e.name,l=n.mainAxis,i=l===void 0?!0:l,o=n.altAxis,s=o===void 0?!1:o,u=n.boundary,a=n.rootBoundary,c=n.altBoundary,p=n.padding,d=n.tether,g=d===void 0?!0:d,_=n.tetherOffset,x=_===void 0?0:_,P=Oo(t,{boundary:u,rootBoundary:a,padding:p,altBoundary:c}),y=qn(t.placement),v=ni(t.placement),w=!v,T=Qf(y),O=L_(T),R=t.modifiersData.popperOffsets,M=t.rects.reference,L=t.rects.popper,I=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,D=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(R){if(i){var K,oe=T==="y"?Zt:Jt,se=T==="y"?Sn:En,fe=T==="y"?"height":"width",ne=R[T],q=ne+P[oe],J=ne-P[se],G=g?-L[fe]/2:0,re=v===Xl?M[fe]:L[fe],Y=v===Xl?-L[fe]:-M[fe],me=t.elements.arrow,X=g&&me?Yf(me):{width:0,height:0},pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:b1(),Le=pe[oe],Ue=pe[se],Be=lo(0,M[fe],X[fe]),tt=w?M[fe]/2-G-Be-Le-D.mainAxis:re-Be-Le-D.mainAxis,Ct=w?-M[fe]/2+G+Be+Ue+D.mainAxis:Y+Be+Ue+D.mainAxis,st=t.elements.arrow&&zo(t.elements.arrow),dn=st?T==="y"?st.clientTop||0:st.clientLeft||0:0,Qn=(K=z==null?void 0:z[T])!=null?K:0,pn=ne+tt-Qn-dn,Zn=ne+Ct-Qn,Cn=lo(g?aa(q,pn):q,ne,g?tl(J,Zn):J);R[T]=Cn,V[T]=Cn-ne}if(s){var hn,pt=T==="x"?Zt:Jt,ue=T==="x"?Sn:En,nt=R[O],Ft=O==="y"?"height":"width",ye=nt+P[pt],te=nt-P[ue],Oe=[Zt,Jt].indexOf(y)!==-1,$e=(hn=z==null?void 0:z[O])!=null?hn:0,h=Oe?ye:nt-M[Ft]-L[Ft]-$e+D.altAxis,S=Oe?nt+M[Ft]+L[Ft]-$e-D.altAxis:te,C=g&&Oe?r_(h,nt,S):lo(g?h:ye,nt,g?S:te);R[O]=C,V[O]=C-nt}t.modifiersData[r]=V}}const A_={name:"preventOverflow",enabled:!0,phase:"main",fn:j_,requiresIfExists:["offset"]};function b_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function D_(e){return e===an(e)||!_n(e)?Zf(e):b_(e)}function z_(e){var t=e.getBoundingClientRect(),n=ei(t.width)/e.offsetWidth||1,r=ei(t.height)/e.offsetHeight||1;return n!==1||r!==1}function F_(e,t,n){n===void 0&&(n=!1);var r=_n(t),l=_n(t)&&z_(t),i=Br(t),o=ti(e,l,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Gn(t)!=="body"||Xf(i))&&(s=D_(t)),_n(t)?(u=ti(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=Jf(i))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function I_(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function l(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var u=t.get(s);u&&l(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||l(i)}),r}function B_(e){var t=I_(e);return Zw.reduce(function(n,r){return n.concat(t.filter(function(l){return l.phase===r}))},[])}function $_(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function H_(e){var t=e.reduce(function(n,r){var l=n[r.name];return n[r.name]=l?Object.assign({},l,r,{options:Object.assign({},l.options,r.options),data:Object.assign({},l.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var c0={placement:"bottom",modifiers:[],strategy:"absolute"};function f0(){for(var e=arguments.length,t=new Array(e),n=0;ne===null&&t===null?null:n=>{d0(e,n),d0(t,n)},[e,t])}const e3=({children:e,onClickAway:t})=>{const n=H.useRef(document),r=H.useRef(null),l=X_(r,e.ref),i=C1(o=>{if(!r.current)throw new Error("ClickAwayListener: missing ref");const s=!n.current.contains(o.target)||r.current.contains(o.target);o.type==="keyup"&&"key"in o&&(!["Escape","Tab"].includes(o.key)||o.key==="Tab"&&s)||o.type==="mouseup"&&s||t(o)});return To("mouseup",i,n),To("keyup",i,n),b.jsx(b.Fragment,{children:H.cloneElement(e,{ref:l})})};var t3="iy2n4g0",n3={fill:"iy2n4g1",text:"iy2n4g2"};function r3({className:e,name:t,title:n,variant:r="fill",...l},i){return b.jsx(Ma,{ref:i,className:Yn(t3,e),variant:r,...l,children:b.jsx(Kn,{className:n3[r],name:t,title:n})})}const l3=H.forwardRef(r3);var i3="_1sxwks00";function o3({children:e,className:t,...n},r){return b.jsx("div",{ref:r,className:Yn(i3,t),...n,children:e})}const La=H.forwardRef(o3);var s3="_1x45rmb3",a3={light:"_1x45rmb1 _1x45rmb0",dark:"_1x45rmb2 _1x45rmb0"};function u3({children:e}){const{theme:t}=pi(),[n,r]=H.useState(!1),[l,i]=H.useState(null),[o,s]=H.useState(null),{styles:u,attributes:a}=B1(l,o,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,10]}}]});return b.jsxs(b.Fragment,{children:[b.jsx(l3,{ref:i,"aria-expanded":n?"true":"false","aria-label":"Menu",name:"options",variant:"text",onClick:()=>r(!n)}),n&&b.jsx(e3,{onClickAway:()=>r(!1),children:b.jsx(La,{...a.popper,ref:s,className:a3[t],style:u.popper,onMouseLeave:()=>r(!1),children:b.jsx(St,{direction:"column",gap:0,children:e})})})]})}function c3({children:e,onClick:t}){return b.jsx(Ma,{variant:"text",onClick:t,children:b.jsx(St,{className:s3,align:"center",gap:2,children:e})})}const Du=Object.assign(u3,{Item:c3});var f3={active:"tz5dd56 tz5dd55",inactive:"tz5dd57 tz5dd55"},d3=bo({conditions:{defaultCondition:"mobile",conditionNames:["mobile","desktop"],responsiveArray:void 0},styles:{display:{values:{none:{conditions:{mobile:"tz5dd51",desktop:"tz5dd52"},defaultClass:"tz5dd51"},block:{conditions:{mobile:"tz5dd53",desktop:"tz5dd54"},defaultClass:"tz5dd53"}}}}}),p3="tz5dd50";function p0({isMobile:e=!1,options:t,value:n,onChange:r}){return b.jsx("nav",{className:Yn(p3,d3({display:{desktop:e?"none":"block",mobile:e?"block":"none"}})),children:b.jsx(St,{gap:2,children:t.map((l,i)=>b.jsx(h3,{label:l.title,index:i,value:n,onChange:r},l.id))})})}function h3({index:e,label:t,value:n,onChange:r,...l}){const i=e===n,o=i?"active":"inactive";return b.jsx(Ma,{"aria-current":i,className:f3[o],variant:"text",onClick:()=>r(e),...l,children:t})}var m3={loading:"_1e0qizf1",default:"_1e0qizf3 _1e0qizf1"},v3="_1e0qizf4",g3="_1e0qizf5";const y3=({children:e,isLoading:t=!1,max:n="100",value:r,...l})=>{const i=t?"loading":"default";return b.jsxs("div",{className:v3,children:[b.jsx("progress",{className:m3[i],max:n,value:r,...l}),e?b.jsx("div",{className:g3,children:e}):null]})},h0=e=>e&&new Date(e).getTime(),$1=(e,t)=>e&&new Date(e.getTime()+t),w3=(e,t,n)=>{const r=h0(e)||0,l=h0(t)||0,i=n.getTime()-r,o=l-r;return i/o*100},_3=(e,t)=>{if(e.stop)return 100;const n=e.param.endOffset,r=$1(e.start,n),l=w3(e.start,r,t);return Math.round(l)},H1=(e=0)=>{const t=Math.round(e),n=Math.round(t%60);return t<0?"-":t<60?`${t}s`:n>0?`${Math.round((e-n)/60)}min ${n}s`:`${Math.round(t/60)}min`},x3=e=>{const t=e.param.period||0;return H1(t/1e3)},k3=e=>{const t=e.start,n=e.param.endOffset||0,r=e.stop||$1(e.start,n);if(!(!t||!r))return H1((r.getTime()-t.getTime())/1e3)};var S3="kfrms71",E3="kfrms73",C3="kfrms70",T3="kfrms74";const P3=e=>{var t;return(t=e==null?void 0:e.popper)==null?void 0:t["data-popper-placement"]},O3=e=>e?e.startsWith("top")?"top":e.startsWith("bottom")?"bottom":e.startsWith("right")?"right":"left":"left";var N3={top:"_1lpb9zp4 _1lpb9zp3",bottom:"_1lpb9zp5 _1lpb9zp3",left:"_1lpb9zp6 _1lpb9zp3",right:"_1lpb9zp7 _1lpb9zp3"},M3={light:"_1lpb9zp1 _1lpb9zp0",dark:"_1lpb9zp2 _1lpb9zp0"};function Bc({children:e,placement:t="bottom-start",title:n}){const[r,l]=H.useState(!1),{theme:i}=pi(),[o,s]=H.useState(null),[u,a]=H.useState(null),[c,p]=H.useState(null),{styles:d,attributes:g}=B1(u,c,{placement:t,modifiers:[{name:"arrow",options:{element:o}},{name:"offset",options:{offset:[0,5]}}]}),_=O3(P3(g));return n?b.jsxs(b.Fragment,{children:[b.jsx("div",{ref:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:e}),r&&b.jsxs("div",{ref:p,className:M3[i],style:d.popper,...g.popper,children:[n,b.jsx("div",{ref:s,className:N3[_],style:d.arrow})]})]}):e}function R3({config:e,tab:t,onTabChange:n}){const r=pl(),l=!r.stop&&_3(r,new Date);return b.jsx(b.Fragment,{children:b.jsxs("header",{className:C3,children:[b.jsxs(St,{className:S3,align:"center",justify:"space-between",children:[b.jsxs(St,{align:"center",gap:4,children:[b.jsx(Kn,{name:"logo"}),b.jsx(p0,{options:e.tabs,value:t,onChange:n})]}),b.jsxs(St,{align:"center",children:[b.jsx(L3,{}),b.jsx(Ma,{onClick:()=>window.open("../report","k6-report"),children:"Report"}),b.jsx(j3,{})]})]}),l?b.jsx(y3,{value:l}):b.jsx(Tw,{className:E3}),b.jsx(p0,{isMobile:!0,options:e.tabs,value:t,onChange:n})]})})}const L3=()=>{const e=pl();return b.jsx("div",{className:T3,children:b.jsxs(St,{align:"center",gap:3,children:[b.jsx(Bc,{placement:"bottom",title:"Refresh rate",children:b.jsxs(St,{align:"center",gap:2,children:[b.jsx(Kn,{name:"stop-watch",width:"12px",height:"12px"}),b.jsx("span",{children:x3(e)})]})}),b.jsx(Bc,{placement:"bottom",title:"Duration",children:b.jsxs(St,{align:"center",gap:2,children:[b.jsx(Kn,{name:"hour-glass",width:"12px",height:"12px"}),b.jsx("span",{children:k3(e)})]})})]})})},j3=()=>{const{theme:e,setTheme:t}=pi();function n(){window.open("https://github.com/grafana/k6/blob/master/SUPPORT.md","_blank")}function r(){t(e==="light"?"dark":"light")}return b.jsxs(Du,{children:[b.jsxs(Du.Item,{onClick:n,children:[b.jsx(Kn,{name:"question"}),b.jsx("span",{children:"Help"})]}),b.jsxs(Du.Item,{onClick:r,children:[b.jsx(Kn,{name:e==="dark"?"sun":"moon"}),b.jsxs("span",{children:[e==="dark"?"Light":"Dark"," mode"]})]})]})};var A3="_1isundr0";function b3({children:e,message:t,isLoading:n}){return n?b.jsxs(St,{align:"center",justify:"center",children:[b.jsx(Kn,{className:A3,name:"spinner"}),b.jsx("h2",{children:t})]}):e}var V1={exports:{}};/*! @preserve * numeral.js * version : 2.0.6 * author : Adam Draper * license : MIT * http://adamwdraper.github.com/Numeral-js/ - */(function(e){(function(t,n){e.exports?e.exports=n():t.numeral=n()})(Jv,function(){var t,n,r="2.0.6",l={},i={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function u(a,c){this._input=a,this._value=c}return t=function(a){var c,p,d,g;if(t.isNumeral(a))c=a.value();else if(a===0||typeof a>"u")c=0;else if(a===null||n.isNaN(a))c=null;else if(typeof a=="string")if(s.zeroFormat&&a===s.zeroFormat)c=0;else if(s.nullFormat&&a===s.nullFormat||!a.replace(/[^0-9]+/g,"").length)c=null;else{for(p in l)if(g=typeof l[p].regexps.unformat=="function"?l[p].regexps.unformat():l[p].regexps.unformat,g&&a.match(g)){d=l[p].unformat;break}d=d||t._.stringToNumber,c=d(a)}else c=Number(a)||null;return new u(a,c)},t.version=r,t.isNumeral=function(a){return a instanceof u},t._=n={numberToFormat:function(a,c,p){var d=i[t.options.currentLocale],g=!1,_=!1,x=0,P="",y=1e12,v=1e9,w=1e6,T=1e3,O="",R=!1,M,L,I,b,z,H,K;if(a=a||0,L=Math.abs(a),t._.includes(c,"(")?(g=!0,c=c.replace(/[\(|\)]/g,"")):(t._.includes(c,"+")||t._.includes(c,"-"))&&(z=t._.includes(c,"+")?c.indexOf("+"):a<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),t._.includes(c,"a")&&(M=c.match(/a(k|m|b|t)?/),M=M?M[1]:!1,t._.includes(c," a")&&(P=" "),c=c.replace(new RegExp(P+"a[kmbt]?"),""),L>=y&&!M||M==="t"?(P+=d.abbreviations.trillion,a=a/y):L=v&&!M||M==="b"?(P+=d.abbreviations.billion,a=a/v):L=w&&!M||M==="m"?(P+=d.abbreviations.million,a=a/w):(L=T&&!M||M==="k")&&(P+=d.abbreviations.thousand,a=a/T)),t._.includes(c,"[.]")&&(_=!0,c=c.replace("[.]",".")),I=a.toString().split(".")[0],b=c.split(".")[1],H=c.indexOf(","),x=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,b?(t._.includes(b,"[")?(b=b.replace("]",""),b=b.split("["),O=t._.toFixed(a,b[0].length+b[1].length,p,b[1].length)):O=t._.toFixed(a,b.length,p),I=O.split(".")[0],t._.includes(O,".")?O=d.delimiters.decimal+O.split(".")[1]:O="",_&&Number(O.slice(1))===0&&(O="")):I=t._.toFixed(a,0,p),P&&!M&&Number(I)>=1e3&&P!==d.abbreviations.trillion)switch(I=String(Number(I)/1e3),P){case d.abbreviations.thousand:P=d.abbreviations.million;break;case d.abbreviations.million:P=d.abbreviations.billion;break;case d.abbreviations.billion:P=d.abbreviations.trillion;break}if(t._.includes(I,"-")&&(I=I.slice(1),R=!0),I.length0;oe--)I="0"+I;return H>-1&&(I=I.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),c.indexOf(".")===0&&(I=""),K=I+O+(P||""),g?K=(g&&R?"(":"")+K+(g&&R?")":""):z>=0?K=z===0?(R?"-":"+")+K:K+(R?"-":"+"):R&&(K="-"+K),K},stringToNumber:function(a){var c=i[s.currentLocale],p=a,d={thousand:3,million:6,billion:9,trillion:12},g,_,x;if(s.zeroFormat&&a===s.zeroFormat)_=0;else if(s.nullFormat&&a===s.nullFormat||!a.replace(/[^0-9]+/g,"").length)_=null;else{_=1,c.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(g in d)if(x=new RegExp("[^a-zA-Z]"+c.abbreviations[g]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),p.match(x)){_*=Math.pow(10,d[g]);break}_*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),_*=Number(a)}return _},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,c){return a.indexOf(c)!==-1},insert:function(a,c,p){return a.slice(0,p)+c+a.slice(p)},reduce:function(a,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var p=Object(a),d=p.length>>>0,g=0,_;if(arguments.length===3)_=arguments[2];else{for(;g=d)throw new TypeError("Reduce of empty array with no initial value");_=p[g++]}for(;gd?c:d},1)},toFixed:function(a,c,p,d){var g=a.toString().split("."),_=c-(d||0),x,P,y,v;return g.length===2?x=Math.min(Math.max(g[1].length,_),c):x=_,y=Math.pow(10,x),v=(p(a+"e+"+x)/y).toFixed(x),d>c-x&&(P=new RegExp("\\.?0{1,"+(d-(c-x))+"}$"),v=v.replace(P,"")),v}},t.options=s,t.formats=l,t.locales=i,t.locale=function(a){return a&&(s.currentLocale=a.toLowerCase()),s.currentLocale},t.localeData=function(a){if(!a)return i[s.currentLocale];if(a=a.toLowerCase(),!i[a])throw new Error("Unknown locale : "+a);return i[a]},t.reset=function(){for(var a in o)s[a]=o[a]},t.zeroFormat=function(a){s.zeroFormat=typeof a=="string"?a:null},t.nullFormat=function(a){s.nullFormat=typeof a=="string"?a:null},t.defaultFormat=function(a){s.defaultFormat=typeof a=="string"?a:"0.0"},t.register=function(a,c,p){if(c=c.toLowerCase(),this[a+"s"][c])throw new TypeError(c+" "+a+" already registered.");return this[a+"s"][c]=p,p},t.validate=function(a,c){var p,d,g,_,x,P,y,v;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{y=t.localeData(c)}catch{y=t.localeData(t.locale())}return g=y.currency.symbol,x=y.abbreviations,p=y.delimiters.decimal,y.delimiters.thousands==="."?d="\\.":d=y.delimiters.thousands,v=a.match(/^[^\d]+/),v!==null&&(a=a.substr(1),v[0]!==g)||(v=a.match(/[^\d]+$/),v!==null&&(a=a.slice(0,-1),v[0]!==x.thousand&&v[0]!==x.million&&v[0]!==x.billion&&v[0]!==x.trillion))?!1:(P=new RegExp(d+"{2}"),a.match(/[^\d.,]/g)?!1:(_=a.split(p),_.length>2?!1:_.length<2?!!_[0].match(/^\d+.*\d$/)&&!_[0].match(P):_[0].length===1?!!_[0].match(/^\d+$/)&&!_[0].match(P)&&!!_[1].match(/^\d+$/):!!_[0].match(/^\d+.*\d$/)&&!_[0].match(P)&&!!_[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(a,c){var p=this._value,d=a||s.defaultFormat,g,_,x;if(c=c||Math.round,p===0&&s.zeroFormat!==null)_=s.zeroFormat;else if(p===null&&s.nullFormat!==null)_=s.nullFormat;else{for(g in l)if(d.match(l[g].regexps.format)){x=l[g].format;break}x=x||t._.numberToFormat,_=x(p,d,c)}return _},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var c=n.correctionFactor.call(null,this._value,a);function p(d,g,_,x){return d+Math.round(c*g)}return this._value=n.reduce([this._value,a],p,0)/c,this},subtract:function(a){var c=n.correctionFactor.call(null,this._value,a);function p(d,g,_,x){return d-Math.round(c*g)}return this._value=n.reduce([a],p,Math.round(this._value*c))/c,this},multiply:function(a){function c(p,d,g,_){var x=n.correctionFactor(p,d);return Math.round(p*x)*Math.round(d*x)/Math.round(x*x)}return this._value=n.reduce([this._value,a],c,1),this},divide:function(a){function c(p,d,g,_){var x=n.correctionFactor(p,d);return Math.round(p*x)/Math.round(d*x)}return this._value=n.reduce([this._value,a],c),this},difference:function(a){return Math.abs(t(this._value).subtract(a).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var c=a%10;return~~(a%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,c,p){var d=t._.includes(c," BPS")?" ":"",g;return a=a*1e4,c=c.replace(/\s?BPS/,""),g=t._.numberToFormat(a,c,p),t._.includes(g,")")?(g=g.split(""),g.splice(-1,0,d+"BPS"),g=g.join("")):g=g+d+"BPS",g},unformat:function(a){return+(t._.stringToNumber(a)*1e-4).toFixed(15)}})}(),function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},p=a.suffixes.concat(c.suffixes.filter(function(g){return a.suffixes.indexOf(g)<0})),d=p.join("|");d="("+d.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(d)},format:function(g,_,x){var P,y=t._.includes(_,"ib")?c:a,v=t._.includes(_," b")||t._.includes(_," ib")?" ":"",w,T,O;for(_=_.replace(/\s?i?b/,""),w=0;w<=y.suffixes.length;w++)if(T=Math.pow(y.base,w),O=Math.pow(y.base,w+1),g===null||g===0||g>=T&&g0&&(g=g/T);break}return P=t._.numberToFormat(g,_,x),P+v},unformat:function(g){var _=t._.stringToNumber(g),x,P;if(_){for(x=a.suffixes.length-1;x>=0;x--){if(t._.includes(g,a.suffixes[x])){P=Math.pow(a.base,x);break}if(t._.includes(g,c.suffixes[x])){P=Math.pow(c.base,x);break}}_*=P||1}return _}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(a,c,p){var d=t.locales[t.options.currentLocale],g={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},_,x,P;for(c=c.replace(/\s?\$\s?/,""),_=t._.numberToFormat(a,c,p),a>=0?(g.before=g.before.replace(/[\-\(]/,""),g.after=g.after.replace(/[\-\)]/,"")):a<0&&!t._.includes(g.before,"-")&&!t._.includes(g.before,"(")&&(g.before="-"+g.before),P=0;P=0;P--)switch(x=g.after[P],x){case"$":_=P===g.after.length-1?_+d.currency.symbol:t._.insert(_,d.currency.symbol,-(g.after.length-(1+P)));break;case" ":_=P===g.after.length-1?_+" ":t._.insert(_," ",-(g.after.length-(1+P)+d.currency.symbol.length-1));break}return _}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,c,p){var d,g=typeof a=="number"&&!t._.isNaN(a)?a.toExponential():"0e+0",_=g.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),d=t._.numberToFormat(Number(_[0]),c,p),d+"e"+_[1]},unformat:function(a){var c=t._.includes(a,"e+")?a.split("e+"):a.split("e-"),p=Number(c[0]),d=Number(c[1]);d=t._.includes(a,"e-")?d*=-1:d;function g(_,x,P,y){var v=t._.correctionFactor(_,x),w=_*v*(x*v)/(v*v);return w}return t._.reduce([p,Math.pow(10,d)],g,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,c,p){var d=t.locales[t.options.currentLocale],g,_=t._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),_+=d.ordinal(a),g=t._.numberToFormat(a,c,p),g+_}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,c,p){var d=t._.includes(c," %")?" ":"",g;return t.options.scalePercentBy100&&(a=a*100),c=c.replace(/\s?\%/,""),g=t._.numberToFormat(a,c,p),t._.includes(g,")")?(g=g.split(""),g.splice(-1,0,d+"%"),g=g.join("")):g=g+d+"%",g},unformat:function(a){var c=t._.stringToNumber(a);return t.options.scalePercentBy100?c*.01:c}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,c,p){var d=Math.floor(a/60/60),g=Math.floor((a-d*60*60)/60),_=Math.round(a-d*60*60-g*60);return d+":"+(g<10?"0"+g:g)+":"+(_<10?"0"+_:_)},unformat:function(a){var c=a.split(":"),p=0;return c.length===3?(p=p+Number(c[0])*60*60,p=p+Number(c[1])*60,p=p+Number(c[2])):c.length===2&&(p=p+Number(c[0])*60,p=p+Number(c[1])),Number(p)}})}(),t})})(H1);var j3=H1.exports;const m0=pa(j3),A3=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],b3=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],D3=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],z3=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],v0=(e,t,n)=>{let r=e;return typeof t=="string"||Array.isArray(t)?r=e.toLocaleString(t,n):(t===!0||n!==void 0)&&(r=e.toLocaleString(void 0,n)),r};function F3(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const n=t.bits?t.binary?z3:D3:t.binary?b3:A3,r=t.space?" ":"";if(t.signed&&e===0)return` 0${r}${n[0]}`;const l=e<0,i=l?"-":t.signed?"+":"";l&&(e=-e);let o;if(t.minimumFractionDigits!==void 0&&(o={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(o={maximumFractionDigits:t.maximumFractionDigits,...o}),e<1){const c=v0(e,t.locale,o);return i+c+r+n[0]}const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=(t.binary?1024:1e3)**s,o||(e=e.toPrecision(3));const u=v0(Number(e),t.locale,o),a=n[s];return i+u+r+a}function I3(e){if(typeof e!="number")throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}}const B3=(e,t)=>t===1?e:`${e}s`,$3=1e-7;function H3(e,t={}){if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const n=[],r=(o,s)=>{const u=Math.floor(o*10**s+$3);return(Math.round(u)/10**s).toFixed(s)},l=(o,s,u,a)=>{if((n.length===0||!t.colonNotation)&&o===0&&!(t.colonNotation&&u==="m"))return;a=(a||o||"0").toString();let c,p;if(t.colonNotation){c=n.length>0?":":"",p="";const d=a.includes(".")?a.split(".")[0].length:a.length,g=n.length>0?2:1;a="0".repeat(Math.max(0,g-d))+a}else c="",p=t.verbose?" "+B3(s,o):u;n.push(c+a+p)},i=I3(e);if(l(Math.trunc(i.days/365),"year","y"),l(i.days%365,"day","d"),l(i.hours,"hour","h"),l(i.minutes,"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(l(i.seconds,"second","s"),t.formatSubMilliseconds)l(i.milliseconds,"millisecond","ms"),l(i.microseconds,"microsecond","µs"),l(i.nanoseconds,"nanosecond","ns");else{const o=i.milliseconds+i.microseconds/1e3+i.nanoseconds/1e6,s=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,u=o>=1?Math.round(o):Math.ceil(o),a=s?o.toFixed(s):u;l(Number.parseFloat(a),"millisecond","ms",a)}else{const o=e/1e3%60,s=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,u=r(o,s),a=t.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");l(Number.parseFloat(a),"second","s",a)}if(n.length===0)return"0"+(t.verbose?" milliseconds":"ms");if(t.compact)return n[0];if(typeof t.unitCount=="number"){const o=t.colonNotation?"":" ";return n.slice(0,Math.max(t.unitCount,1)).join(o)}return t.colonNotation?n.join(""):n.join(" ")}const V3=!0,dt="u-",U3="uplot",W3=dt+"hz",q3=dt+"vt",K3=dt+"title",G3=dt+"wrap",Y3=dt+"under",Q3=dt+"over",Z3=dt+"axis",Yr=dt+"off",J3=dt+"select",X3=dt+"cursor-x",ex=dt+"cursor-y",tx=dt+"cursor-pt",nx=dt+"legend",rx=dt+"live",lx=dt+"inline",ix=dt+"series",ox=dt+"marker",g0=dt+"label",sx=dt+"value",qi="width",Ki="height",Bi="top",y0="bottom",El="left",zu="right",ed="#000",w0=ed+"0",_0="mousemove",x0="mousedown",Fu="mouseup",k0="mouseenter",S0="mouseleave",E0="dblclick",ax="resize",ux="scroll",C0="change",ua="dppxchange",td="--",hi=typeof window<"u",$c=hi?document:null,Wl=hi?window:null,cx=hi?navigator:null;let Te,ws;function Hc(){let e=devicePixelRatio;Te!=e&&(Te=e,ws&&Uc(C0,ws,Hc),ws=matchMedia(`(min-resolution: ${Te-.001}dppx) and (max-resolution: ${Te+.001}dppx)`),nl(C0,ws,Hc),Wl.dispatchEvent(new CustomEvent(ua)))}function en(e,t){if(t!=null){let n=e.classList;!n.contains(t)&&n.add(t)}}function Vc(e,t){let n=e.classList;n.contains(t)&&n.remove(t)}function He(e,t,n){e.style[t]=n+"px"}function Rn(e,t,n,r){let l=$c.createElement(e);return t!=null&&en(l,t),n!=null&&n.insertBefore(l,r),l}function mn(e,t){return Rn("div",e,t)}const T0=new WeakMap;function Cl(e,t,n,r,l){let i="translate("+t+"px,"+n+"px)",o=T0.get(e);i!=o&&(e.style.transform=i,T0.set(e,i),t<0||n<0||t>r||n>l?en(e,Yr):Vc(e,Yr))}const P0=new WeakMap;function fx(e,t,n){let r=t+n,l=P0.get(e);r!=l&&(P0.set(e,r),e.style.background=t,e.style.borderColor=n)}const O0=new WeakMap;function dx(e,t,n,r){let l=t+""+n,i=O0.get(e);l!=i&&(O0.set(e,l),e.style.height=n+"px",e.style.width=t+"px",e.style.marginLeft=r?-t/2+"px":0,e.style.marginTop=r?-n/2+"px":0)}const nd={passive:!0},V1={...nd,capture:!0};function nl(e,t,n,r){t.addEventListener(e,n,r?V1:nd)}function Uc(e,t,n,r){t.removeEventListener(e,n,r?V1:nd)}hi&&Hc();function wr(e,t,n,r){let l;n=n||0,r=r||t.length-1;let i=r<=2147483647;for(;r-n>1;)l=i?n+r>>1:on((n+r)/2),t[l]=t&&l<=n;l+=r)if(e[l]!=null)return l;return-1}function px(e,t,n,r){let l=ke,i=-ke;if(r==1)l=e[t],i=e[n];else if(r==-1)l=e[n],i=e[t];else for(let o=t;o<=n;o++){let s=e[o];s!=null&&(si&&(i=s))}return[l,i]}function hx(e,t,n){let r=ke,l=-ke;for(let i=t;i<=n;i++){let o=e[i];o!=null&&o>0&&(ol&&(l=o))}return[r==ke?1:r,l==-ke?10:l]}function ja(e,t,n,r){let l=R0(e),i=R0(t),o=n==10?ir:U1;e==t&&(l==-1?(e*=n,t/=n):(e/=n,t*=n));let s=l==1?on:li,u=i==1?li:on,a=s(o(_t(e))),c=u(o(_t(t))),p=ii(n,a),d=ii(n,c);return n==10&&(a<0&&(p=je(p,-a)),c<0&&(d=je(d,-c))),r||n==2?(e=p*l,t=d*i):(e=q1(e,p),t=si(t,d)),[e,t]}function rd(e,t,n,r){let l=ja(e,t,n,r);return e==0&&(l[0]=0),t==0&&(l[1]=0),l}const ld=.1,N0={mode:3,pad:ld},oo={pad:0,soft:null,mode:0},mx={min:oo,max:oo};function ca(e,t,n,r){return Aa(n)?M0(e,t,n):(oo.pad=n,oo.soft=r?0:null,oo.mode=r?3:0,M0(e,t,mx))}function Pe(e,t){return e??t}function vx(e,t,n){for(t=Pe(t,0),n=Pe(n,e.length-1);t<=n;){if(e[t]!=null)return!0;t++}return!1}function M0(e,t,n){let r=n.min,l=n.max,i=Pe(r.pad,0),o=Pe(l.pad,0),s=Pe(r.hard,-ke),u=Pe(l.hard,ke),a=Pe(r.soft,ke),c=Pe(l.soft,-ke),p=Pe(r.mode,0),d=Pe(l.mode,0),g=t-e,_=ir(g),x=xt(_t(e),_t(t)),P=ir(x),y=_t(P-_);(g<1e-9||y>10)&&(g=0,(e==0||t==0)&&(g=1e-9,p==2&&a!=ke&&(i=0),d==2&&c!=-ke&&(o=0)));let v=g||x||1e3,w=ir(v),T=ii(10,on(w)),O=v*(g==0?e==0?.1:1:i),R=je(q1(e-O,T/10),9),M=e>=a&&(p==1||p==3&&R<=a||p==2&&R>=a)?a:ke,L=xt(s,R=M?M:nn(M,R)),I=v*(g==0?t==0?.1:1:o),b=je(si(t+I,T/10),9),z=t<=c&&(d==1||d==3&&b>=c||d==2&&b<=c)?c:-ke,H=nn(u,b>z&&t<=z?z:xt(z,b));return L==H&&L==0&&(H=100),[L,H]}const gx=new Intl.NumberFormat(hi?cx.language:"en-US"),id=e=>gx.format(e),fn=Math,Ds=fn.PI,_t=fn.abs,on=fn.floor,Nt=fn.round,li=fn.ceil,nn=fn.min,xt=fn.max,ii=fn.pow,R0=fn.sign,ir=fn.log10,U1=fn.log2,yx=(e,t=1)=>fn.sinh(e)*t,Iu=(e,t=1)=>fn.asinh(e/t),ke=1/0;function L0(e){return(ir((e^e>>31)-(e>>31))|0)+1}function j0(e,t,n){return nn(xt(e,t),n)}function xe(e){return typeof e=="function"?e:()=>e}const wx=()=>{},_x=e=>e,W1=(e,t)=>t,xx=e=>null,A0=e=>!0,b0=(e,t)=>e==t,oi=e=>je(e,14);function Gr(e,t){return oi(je(oi(e/t))*t)}function si(e,t){return oi(li(oi(e/t))*t)}function q1(e,t){return oi(on(oi(e/t))*t)}function je(e,t=0){if(kx(e))return e;let n=10**t,r=e*n*(1+Number.EPSILON);return Nt(r)/n}const ai=new Map;function K1(e){return((""+e).split(".")[1]||"").length}function No(e,t,n,r){let l=[],i=r.map(K1);for(let o=t;o=0&&o>=0?0:s)+(o>=i[a]?0:i[a]),d=je(c,p);l.push(d),ai.set(d,p)}}return l}const so={},G1=[],ui=[null,null],kr=Array.isArray,kx=Number.isInteger,Sx=e=>e===void 0;function D0(e){return typeof e=="string"}function Aa(e){let t=!1;if(e!=null){let n=e.constructor;t=n==null||n==Object}return t}function z0(e){return e!=null&&typeof e=="object"}const Ex=Object.getPrototypeOf(Uint8Array);function rl(e,t=Aa){let n;if(kr(e)){let r=e.find(l=>l!=null);if(kr(r)||t(r)){n=Array(e.length);for(let l=0;li){for(l=o-1;l>=0&&e[l]==null;)e[l--]=null;for(l=o+1;lo-s)],l=r[0].length,i=new Map;for(let o=0;o"u"?e=>Promise.resolve().then(e):queueMicrotask;function Rx(e){let t=e[0],n=t.length,r=Array(n);for(let i=0;it[i]-t[o]);let l=[];for(let i=0;i=r&&e[l]==null;)l--;if(l<=r)return!0;const i=xt(1,on((l-r+1)/t));for(let o=e[r],s=r+i;s<=l;s+=i){const u=e[s];if(u!=null){if(u<=o)return!1;o=u}}return!0}const Y1=["January","February","March","April","May","June","July","August","September","October","November","December"],Q1=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Z1(e){return e.slice(0,3)}const Ax=Q1.map(Z1),bx=Y1.map(Z1),Dx={MMMM:Y1,MMM:bx,WWWW:Q1,WWW:Ax};function $i(e){return(e<10?"0":"")+e}function zx(e){return(e<10?"00":e<100?"0":"")+e}const Fx={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,t)=>t.MMMM[e.getMonth()],MMM:(e,t)=>t.MMM[e.getMonth()],MM:e=>$i(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>$i(e.getDate()),D:e=>e.getDate(),WWWW:(e,t)=>t.WWWW[e.getDay()],WWW:(e,t)=>t.WWW[e.getDay()],HH:e=>$i(e.getHours()),H:e=>e.getHours(),h:e=>{let t=e.getHours();return t==0?12:t>12?t-12:t},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>$i(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>$i(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>zx(e.getMilliseconds())};function od(e,t){t=t||Dx;let n=[],r=/\{([a-z]+)\}|[^{]+/gi,l;for(;l=r.exec(e);)n.push(l[0][0]=="{"?Fx[l[1]]:l[0]);return i=>{let o="";for(let s=0;se%1==0,fa=[1,2,2.5,5],$x=No(10,-16,0,fa),X1=No(10,0,16,fa),Hx=X1.filter(J1),Vx=$x.concat(X1),sd=` -`,ev="{YYYY}",F0=sd+ev,tv="{M}/{D}",Gi=sd+tv,_s=Gi+"/{YY}",nv="{aa}",Ux="{h}:{mm}",Tl=Ux+nv,I0=sd+Tl,B0=":{ss}",Ne=null;function rv(e){let t=e*1e3,n=t*60,r=n*60,l=r*24,i=l*30,o=l*365,u=(e==1?No(10,0,3,fa).filter(J1):No(10,-3,0,fa)).concat([t,t*5,t*10,t*15,t*30,n,n*5,n*10,n*15,n*30,r,r*2,r*3,r*4,r*6,r*8,r*12,l,l*2,l*3,l*4,l*5,l*6,l*7,l*8,l*9,l*10,l*15,i,i*2,i*3,i*4,i*6,o,o*2,o*5,o*10,o*25,o*50,o*100]);const a=[[o,ev,Ne,Ne,Ne,Ne,Ne,Ne,1],[l*28,"{MMM}",F0,Ne,Ne,Ne,Ne,Ne,1],[l,tv,F0,Ne,Ne,Ne,Ne,Ne,1],[r,"{h}"+nv,_s,Ne,Gi,Ne,Ne,Ne,1],[n,Tl,_s,Ne,Gi,Ne,Ne,Ne,1],[t,B0,_s+" "+Tl,Ne,Gi+" "+Tl,Ne,I0,Ne,1],[e,B0+".{fff}",_s+" "+Tl,Ne,Gi+" "+Tl,Ne,I0,Ne,1]];function c(p){return(d,g,_,x,P,y)=>{let v=[],w=P>=o,T=P>=i&&P=l?l:P,b=on(_)-on(R),z=L+b+si(R-L,I);v.push(z);let H=p(z),K=H.getHours()+H.getMinutes()/n+H.getSeconds()/r,oe=P/r,se=d.axes[g]._space,fe=y/se;for(;z=je(z+P,e==1?0:3),!(z>x);)if(oe>1){let ne=on(je(K+oe,6))%24,G=p(z).getHours()-ne;G>1&&(G=-1),z-=G*r,K=(K+oe)%24;let re=v[v.length-1];je((z-re)/P,3)*fe>=.7&&v.push(z)}else v.push(z)}return v}}return[u,a,c]}const[Wx,qx,Kx]=rv(1),[Gx,Yx,Qx]=rv(.001);No(2,-53,53,[1]);function $0(e,t){return e.map(n=>n.map((r,l)=>l==0||l==8||r==null?r:t(l==1||n[8]==0?r:n[1]+r)))}function H0(e,t){return(n,r,l,i,o)=>{let s=t.find(_=>o>=_[0])||t[t.length-1],u,a,c,p,d,g;return r.map(_=>{let x=e(_),P=x.getFullYear(),y=x.getMonth(),v=x.getDate(),w=x.getHours(),T=x.getMinutes(),O=x.getSeconds(),R=P!=u&&s[2]||y!=a&&s[3]||v!=c&&s[4]||w!=p&&s[5]||T!=d&&s[6]||O!=g&&s[7]||s[1];return u=P,a=y,c=v,p=w,d=T,g=O,R(x)})}}function Zx(e,t){let n=od(t);return(r,l,i,o,s)=>l.map(u=>n(e(u)))}function Bu(e,t,n){return new Date(e,t,n)}function V0(e,t){return t(e)}const Jx="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function U0(e,t){return(n,r,l,i)=>i==null?td:t(e(r))}function Xx(e,t){let n=e.series[t];return n.width?n.stroke(e,t):n.points.width?n.points.stroke(e,t):null}function ek(e,t){return e.series[t].fill(e,t)}const tk={show:!0,live:!0,isolate:!1,mount:wx,markers:{show:!0,width:2,stroke:Xx,fill:ek,dash:"solid"},idx:null,idxs:null,values:[]};function nk(e,t){let n=e.cursor.points,r=mn(),l=n.size(e,t);He(r,qi,l),He(r,Ki,l);let i=l/-2;He(r,"marginLeft",i),He(r,"marginTop",i);let o=n.width(e,t,l);return o&&He(r,"borderWidth",o),r}function rk(e,t){let n=e.series[t].points;return n._fill||n._stroke}function lk(e,t){let n=e.series[t].points;return n._stroke||n._fill}function ik(e,t){return e.series[t].points.size}function ok(e,t,n){return n}const $u=[0,0];function sk(e,t,n){return $u[0]=t,$u[1]=n,$u}function xs(e,t,n,r=!0){return l=>{l.button==0&&(!r||l.target==t)&&n(l)}}function Hu(e,t,n,r=!0){return l=>{(!r||l.target==t)&&n(l)}}const ak={show:!0,x:!0,y:!0,lock:!1,move:sk,points:{show:nk,size:ik,width:0,stroke:lk,fill:rk},bind:{mousedown:xs,mouseup:xs,click:xs,dblclick:xs,mousemove:Hu,mouseleave:Hu,mouseenter:Hu},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{prox:-1,bias:0},left:-10,top:-10,idx:null,dataIdx:ok,idxs:null,event:null},lv={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},ad=it({},lv,{filter:W1}),iv=it({},ad,{size:10}),ov=it({},lv,{show:!1}),ud='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',sv="bold "+ud,av=1.5,W0={show:!0,scale:"x",stroke:ed,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:sv,side:2,grid:ad,ticks:iv,border:ov,font:ud,lineGap:av,rotate:0},uk="Value",ck="Time",q0={show:!0,scale:"x",auto:!1,sorted:1,min:ke,max:-ke,idxs:[]};function fk(e,t,n,r,l){return t.map(i=>i==null?"":id(i))}function dk(e,t,n,r,l,i,o){let s=[],u=ai.get(l)||0;n=o?n:je(si(n,l),u);for(let a=n;a<=r;a=je(a+l,u))s.push(Object.is(a,-0)?0:a);return s}function Wc(e,t,n,r,l,i,o){const s=[],u=e.scales[e.axes[t].scale].log,a=u==10?ir:U1,c=on(a(n));l=ii(u,c),u==10&&c<0&&(l=je(l,-c));let p=n;do s.push(p),p=p+l,u==10&&(p=je(p,ai.get(l))),p>=l*u&&(l=p);while(p<=r);return s}function pk(e,t,n,r,l,i,o){let u=e.scales[e.axes[t].scale].asinh,a=r>u?Wc(e,t,xt(u,n),r,l):[u],c=r>=0&&n<=0?[0]:[];return(n<-u?Wc(e,t,xt(u,-r),-n,l):[u]).reverse().map(d=>-d).concat(c,a)}const uv=/./,hk=/[12357]/,mk=/[125]/,K0=/1/,qc=(e,t,n,r)=>e.map((l,i)=>t==4&&l==0||i%r==0&&n.test(l.toExponential()[l<0?1:0])?l:null);function vk(e,t,n,r,l){let i=e.axes[n],o=i.scale,s=e.scales[o],u=e.valToPos,a=i._space,c=u(10,o),p=u(9,o)-c>=a?uv:u(7,o)-c>=a?hk:u(5,o)-c>=a?mk:K0;if(p==K0){let d=_t(u(1,o)-c);if(dl,Q0={show:!0,auto:!0,sorted:0,gaps:cv,alpha:1,facets:[it({},Y0,{scale:"x"}),it({},Y0,{scale:"y"})]},Z0={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:cv,alpha:1,points:{show:_k,filter:null},values:null,min:ke,max:-ke,idxs:[],path:null,clip:null};function xk(e,t,n,r,l){return n/10}const fv={time:V3,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},kk=it({},fv,{time:!1,ori:1}),J0={};function dv(e,t){let n=J0[e];return n||(n={key:e,plots:[],sub(r){n.plots.push(r)},unsub(r){n.plots=n.plots.filter(l=>l!=r)},pub(r,l,i,o,s,u,a){for(let c=0;c{let y=o.pxRound;const v=a.dir*(a.ori==0?1:-1),w=a.ori==0?mi:vi;let T,O;v==1?(T=n,O=r):(T=r,O=n);let R=y(p(s[T],a,x,g)),M=y(d(u[T],c,P,_)),L=y(p(s[O],a,x,g)),I=y(d(i==1?c.max:c.min,c,P,_)),b=new Path2D(l);return w(b,L,I),w(b,R,I),w(b,R,M),b})}function Da(e,t,n,r,l,i){let o=null;if(e.length>0){o=new Path2D;const s=t==0?Ia:fd;let u=n;for(let p=0;pd[0]){let g=d[0]-u;g>0&&s(o,u,r,g,r+i),u=d[1]}}let a=n+l-u,c=10;a>0&&s(o,u,r-c/2,a,r+i+c)}return o}function Ek(e,t,n){let r=e[e.length-1];r&&r[0]==t?r[1]=n:e.push([t,n])}function cd(e,t,n,r,l,i,o){let s=[],u=e.length;for(let a=l==1?n:r;a>=n&&a<=r;a+=l)if(t[a]===null){let p=a,d=a;if(l==1)for(;++a<=r&&t[a]===null;)d=a;else for(;--a>=n&&t[a]===null;)d=a;let g=i(e[p]),_=d==p?g:i(e[d]),x=p-l;g=o<=0&&x>=0&&x=0&&y>=0&&y=g&&s.push([g,_])}return s}function X0(e){return e==0?_x:e==1?Nt:t=>Gr(t,e)}function pv(e){let t=e==0?za:Fa,n=e==0?(l,i,o,s,u,a)=>{l.arcTo(i,o,s,u,a)}:(l,i,o,s,u,a)=>{l.arcTo(o,i,u,s,a)},r=e==0?(l,i,o,s,u)=>{l.rect(i,o,s,u)}:(l,i,o,s,u)=>{l.rect(o,i,u,s)};return(l,i,o,s,u,a=0,c=0)=>{a==0&&c==0?r(l,i,o,s,u):(a=nn(a,s/2,u/2),c=nn(c,s/2,u/2),t(l,i+a,o),n(l,i+s,o,i+s,o+u,a),n(l,i+s,o+u,i,o+u,c),n(l,i,o+u,i,o,c),n(l,i,o,i+s,o,a),l.closePath())}}const za=(e,t,n)=>{e.moveTo(t,n)},Fa=(e,t,n)=>{e.moveTo(n,t)},mi=(e,t,n)=>{e.lineTo(t,n)},vi=(e,t,n)=>{e.lineTo(n,t)},Ia=pv(0),fd=pv(1),hv=(e,t,n,r,l,i)=>{e.arc(t,n,r,l,i)},mv=(e,t,n,r,l,i)=>{e.arc(n,t,r,l,i)},vv=(e,t,n,r,l,i,o)=>{e.bezierCurveTo(t,n,r,l,i,o)},gv=(e,t,n,r,l,i,o)=>{e.bezierCurveTo(n,t,l,r,o,i)};function yv(e){return(t,n,r,l,i)=>hl(t,n,(o,s,u,a,c,p,d,g,_,x,P)=>{let{pxRound:y,points:v}=o,w,T;a.ori==0?(w=za,T=hv):(w=Fa,T=mv);const O=je(v.width*Te,3);let R=(v.size-v.width)/2*Te,M=je(R*2,3),L=new Path2D,I=new Path2D,{left:b,top:z,width:H,height:K}=t.bbox;Ia(I,b-M,z-M,H+M*2,K+M*2);const oe=se=>{if(u[se]!=null){let fe=y(p(s[se],a,x,g)),ne=y(d(u[se],c,P,_));w(L,fe+R,ne),T(L,fe,ne,R,0,Ds*2)}};if(i)i.forEach(oe);else for(let se=r;se<=l;se++)oe(se);return{stroke:O>0?L:null,fill:L,clip:I,flags:cl|da}})}function wv(e){return(t,n,r,l,i,o)=>{r!=l&&(i!=r&&o!=r&&e(t,n,r),i!=l&&o!=l&&e(t,n,l),e(t,n,o))}}const Ck=wv(mi),Tk=wv(vi);function _v(e){const t=Pe(e==null?void 0:e.alignGaps,0);return(n,r,l,i)=>hl(n,r,(o,s,u,a,c,p,d,g,_,x,P)=>{let y=o.pxRound,v=Y=>y(p(Y,a,x,g)),w=Y=>y(d(Y,c,P,_)),T,O;a.ori==0?(T=mi,O=Ck):(T=vi,O=Tk);const R=a.dir*(a.ori==0?1:-1),M={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:cl},L=M.stroke;let I=ke,b=-ke,z,H,K,oe=v(s[R==1?l:i]),se=ri(u,l,i,1*R),fe=ri(u,l,i,-1*R),ne=v(s[se]),q=v(s[fe]),J=!1;for(let Y=R==1?l:i;Y>=l&&Y<=i;Y+=R){let me=v(s[Y]),X=u[Y];me==oe?X!=null?(H=w(X),I==ke&&(T(L,me,H),z=H),I=nn(H,I),b=xt(H,b)):X===null&&(J=!0):(I!=ke&&(O(L,oe,I,b,z,H),K=oe),X!=null?(H=w(X),T(L,me,H),I=b=z=H):(I=ke,b=-ke,X===null&&(J=!0)),oe=me)}I!=ke&&I!=b&&K!=oe&&O(L,oe,I,b,z,H);let[G,re]=ba(n,r);if(o.fill!=null||G!=0){let Y=M.fill=new Path2D(L),me=o.fillTo(n,r,o.min,o.max,G),X=w(me);T(Y,q,X),T(Y,ne,X)}if(!o.spanGaps){let Y=[];J&&Y.push(...cd(s,u,l,i,R,v,t)),M.gaps=Y=o.gaps(n,r,l,i,Y),M.clip=Da(Y,a.ori,g,_,x,P)}return re!=0&&(M.band=re==2?[or(n,r,l,i,L,-1),or(n,r,l,i,L,1)]:or(n,r,l,i,L,re)),M})}function Pk(e){const t=Pe(e.align,1),n=Pe(e.ascDesc,!1),r=Pe(e.alignGaps,0),l=Pe(e.extend,!1);return(i,o,s,u)=>hl(i,o,(a,c,p,d,g,_,x,P,y,v,w)=>{let T=a.pxRound,{left:O,width:R}=i.bbox,M=G=>T(_(G,d,v,P)),L=G=>T(x(G,g,w,y)),I=d.ori==0?mi:vi;const b={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:cl},z=b.stroke,H=d.dir*(d.ori==0?1:-1);s=ri(p,s,u,1),u=ri(p,s,u,-1);let K=L(p[H==1?s:u]),oe=M(c[H==1?s:u]),se=oe,fe=oe;l&&t==-1&&(fe=O,I(z,fe,K)),I(z,oe,K);for(let G=H==1?s:u;G>=s&&G<=u;G+=H){let re=p[G];if(re==null)continue;let Y=M(c[G]),me=L(re);t==1?I(z,Y,K):I(z,se,me),I(z,Y,me),K=me,se=Y}let ne=se;l&&t==1&&(ne=O+R,I(z,ne,K));let[q,J]=ba(i,o);if(a.fill!=null||q!=0){let G=b.fill=new Path2D(z),re=a.fillTo(i,o,a.min,a.max,q),Y=L(re);I(G,ne,Y),I(G,fe,Y)}if(!a.spanGaps){let G=[];G.push(...cd(c,p,s,u,H,M,r));let re=a.width*Te/2,Y=n||t==1?re:-re,me=n||t==-1?-re:re;G.forEach(X=>{X[0]+=Y,X[1]+=me}),b.gaps=G=a.gaps(i,o,s,u,G),b.clip=Da(G,d.ori,P,y,v,w)}return J!=0&&(b.band=J==2?[or(i,o,s,u,z,-1),or(i,o,s,u,z,1)]:or(i,o,s,u,z,J)),b})}function Ok(e){e=e||so;const t=Pe(e.size,[.6,ke,1]),n=e.align||0,r=(e.gap||0)*Te;let l=e.radius;l=l==null?[0,0]:typeof l=="number"?[l,0]:l;const i=xe(l),o=1-t[0],s=Pe(t[1],ke)*Te,u=Pe(t[2],1)*Te,a=Pe(e.disp,so),c=Pe(e.each,g=>{}),{fill:p,stroke:d}=a;return(g,_,x,P)=>hl(g,_,(y,v,w,T,O,R,M,L,I,b,z)=>{let H=y.pxRound,K,oe;T.ori==0?[K,oe]=i(g,_):[oe,K]=i(g,_);const se=T.dir*(T.ori==0?1:-1),fe=O.dir*(O.ori==1?1:-1);let ne=T.ori==0?Ia:fd,q=T.ori==0?c:(te,Oe,$e,h,S,C,j)=>{c(te,Oe,$e,S,h,j,C)},[J,G]=ba(g,_),re=O.distr==3?J==1?O.max:O.min:0,Y=M(re,O,z,I),me,X,pe=H(y.width*Te),Le=!1,Ue=null,Be=null,tt=null,Ct=null;p!=null&&(pe==0||d!=null)&&(Le=!0,Ue=p.values(g,_,x,P),Be=new Map,new Set(Ue).forEach(te=>{te!=null&&Be.set(te,new Path2D)}),pe>0&&(tt=d.values(g,_,x,P),Ct=new Map,new Set(tt).forEach(te=>{te!=null&&Ct.set(te,new Path2D)})));let{x0:st,size:dn}=a,Qn=!0;if(st!=null&&dn!=null){v=st.values(g,_,x,P),st.unit==2&&(v=v.map(Oe=>g.posToVal(L+Oe*b,T.key,!0)));let te=dn.values(g,_,x,P);dn.unit==2?X=te[0]*b:X=R(te[0],T,b,L)-R(0,T,b,L),X=H(X-pe),me=se==1?-pe/2:X+pe/2}else{let te=b;if(v.length>1){let $e=null;for(let h=0,S=1/0;hte&&(Qn=!1)}const pn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:cl|da};let Zn;G!=0&&(pn.band=new Path2D,Zn=H(M(G==1?O.max:O.min,O,z,I)));const Cn=Le?null:new Path2D,hn=pn.band;let{y0:pt,y1:ue}=a,nt=null;pt!=null&&ue!=null&&(w=ue.values(g,_,x,P),nt=pt.values(g,_,x,P));let Ft=K*X,ye=oe*X;for(let te=se==1?x:P;te>=x&&te<=P;te+=se){let Oe=w[te];if(Oe===void 0)continue;let $e=T.distr!=2||a!=null?v[te]:te,h=R($e,T,b,L),S=M(Pe(Oe,re),O,z,I);nt!=null&&Oe!=null&&(Y=M(nt[te],O,z,I));let C=H(h-me),j=H(xt(S,Y)),F=H(nn(S,Y)),Q=j-F;if(Oe!=null){let ae=Oe<0?ye:Ft,he=Oe<0?Ft:ye;Le?(pe>0&&tt[te]!=null&&ne(Ct.get(tt[te]),C,F+on(pe/2),X,xt(0,Q-pe),ae,he),Ue[te]!=null&&ne(Be.get(Ue[te]),C,F+on(pe/2),X,xt(0,Q-pe),ae,he)):ne(Cn,C,F+on(pe/2),X,xt(0,Q-pe),ae,he),q(g,_,te,C-pe/2,F,X+pe,Q)}G!=0&&(Oe!=null||Qn)&&(fe*G==1?(j=F,F=Zn):(F=j,j=Zn),Q=j-F,ne(hn,C-pe/2,F,X+pe,xt(0,Q),0,0))}return pe>0&&(pn.stroke=Le?Ct:Cn),pn.fill=Le?Be:Cn,pn})}function Nk(e,t){const n=Pe(t==null?void 0:t.alignGaps,0);return(r,l,i,o)=>hl(r,l,(s,u,a,c,p,d,g,_,x,P,y)=>{let v=s.pxRound,w=ne=>v(d(ne,c,P,_)),T=ne=>v(g(ne,p,y,x)),O,R,M;c.ori==0?(O=za,M=mi,R=vv):(O=Fa,M=vi,R=gv);const L=c.dir*(c.ori==0?1:-1);i=ri(a,i,o,1),o=ri(a,i,o,-1);let I=w(u[L==1?i:o]),b=I,z=[],H=[];for(let ne=L==1?i:o;ne>=i&&ne<=o;ne+=L)if(a[ne]!=null){let J=u[ne],G=w(J);z.push(b=G),H.push(T(a[ne]))}const K={stroke:e(z,H,O,M,R,v),fill:null,clip:null,band:null,gaps:null,flags:cl},oe=K.stroke;let[se,fe]=ba(r,l);if(s.fill!=null||se!=0){let ne=K.fill=new Path2D(oe),q=s.fillTo(r,l,s.min,s.max,se),J=T(q);M(ne,b,J),M(ne,I,J)}if(!s.spanGaps){let ne=[];ne.push(...cd(u,a,i,o,L,w,n)),K.gaps=ne=s.gaps(r,l,i,o,ne),K.clip=Da(ne,c.ori,_,x,P,y)}return fe!=0&&(K.band=fe==2?[or(r,l,i,o,oe,-1),or(r,l,i,o,oe,1)]:or(r,l,i,o,oe,fe)),K})}function Mk(e){return Nk(Rk,e)}function Rk(e,t,n,r,l,i){const o=e.length;if(o<2)return null;const s=new Path2D;if(n(s,e[0],t[0]),o==2)r(s,e[1],t[1]);else{let u=Array(o),a=Array(o-1),c=Array(o-1),p=Array(o-1);for(let d=0;d0!=a[d]>0?u[d]=0:(u[d]=3*(p[d-1]+p[d])/((2*p[d]+p[d-1])/a[d-1]+(p[d]+2*p[d-1])/a[d]),isFinite(u[d])||(u[d]=0));u[o-1]=a[o-2];for(let d=0;d{Et.pxRatio=Te}));const Lk=_v(),jk=yv();function th(e,t,n,r){return(r?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((i,o)=>Gc(i,o,t,n))}function Ak(e,t){return e.map((n,r)=>r==0?null:it({},t,n))}function Gc(e,t,n,r){return it({},t==0?n:r,e)}function xv(e,t,n){return t==null?ui:[t,n]}const bk=xv;function Dk(e,t,n){return t==null?ui:ca(t,n,ld,!0)}function kv(e,t,n,r){return t==null?ui:ja(t,n,e.scales[r].log,!1)}const zk=kv;function Sv(e,t,n,r){return t==null?ui:rd(t,n,e.scales[r].log,!1)}const Fk=Sv;function Ik(e,t,n,r,l){let i=xt(L0(e),L0(t)),o=t-e,s=wr(l/r*o,n);do{let u=n[s],a=r*u/o;if(a>=l&&i+(u<5?ai.get(u):0)<=17)return[u,a]}while(++s(t=Nt((n=+l)*Te))+"px"),[e,t,n]}function Bk(e){e.show&&[e.font,e.labelFont].forEach(t=>{let n=je(t[2]*Te,1);t[0]=t[0].replace(/[0-9.]+px/,n+"px"),t[1]=n})}function Et(e,t,n){const r={mode:Pe(e.mode,1)},l=r.mode;function i(f,m){return((m.distr==3?ir(f>0?f:m.clamp(r,f,m.min,m.max,m.key)):m.distr==4?Iu(f,m.asinh):f)-m._min)/(m._max-m._min)}function o(f,m,k,E){let N=i(f,m);return E+k*(m.dir==-1?1-N:N)}function s(f,m,k,E){let N=i(f,m);return E+k*(m.dir==-1?N:1-N)}function u(f,m,k,E){return m.ori==0?o(f,m,k,E):s(f,m,k,E)}r.valToPosH=o,r.valToPosV=s;let a=!1;r.status=0;const c=r.root=mn(U3);if(e.id!=null&&(c.id=e.id),en(c,e.class),e.title){let f=mn(K3,c);f.textContent=e.title}const p=Rn("canvas"),d=r.ctx=p.getContext("2d"),g=mn(G3,c);nl("click",g,f=>{f.target===x&&(be!=vl||De!=gl)&&Pt.click(r,f)},!0);const _=r.under=mn(Y3,g);g.appendChild(p);const x=r.over=mn(Q3,g);e=rl(e);const P=+Pe(e.pxAlign,1),y=X0(P);(e.plugins||[]).forEach(f=>{f.opts&&(e=f.opts(r,e)||e)});const v=e.ms||.001,w=r.series=l==1?th(e.series||[],q0,Z0,!1):Ak(e.series||[null],Q0),T=r.axes=th(e.axes||[],W0,G0,!0),O=r.scales={},R=r.bands=e.bands||[];R.forEach(f=>{f.fill=xe(f.fill||null),f.dir=Pe(f.dir,-1)});const M=l==2?w[1].facets[0].scale:w[0].scale,L={axes:bv,series:Mv},I=(e.drawOrder||["axes","series"]).map(f=>L[f]);function b(f){let m=O[f];if(m==null){let k=(e.scales||so)[f]||so;if(k.from!=null)b(k.from),O[f]=it({},O[k.from],k,{key:f});else{m=O[f]=it({},f==M?fv:kk,k),m.key=f;let E=m.time,N=m.range,A=kr(N);if((f!=M||l==2&&!E)&&(A&&(N[0]==null||N[1]==null)&&(N={min:N[0]==null?N0:{mode:1,hard:N[0],soft:N[0]},max:N[1]==null?N0:{mode:1,hard:N[1],soft:N[1]}},A=!1),!A&&Aa(N))){let B=N;N=(W,Z,ie)=>Z==null?ui:ca(Z,ie,B)}m.range=xe(N||(E?bk:f==M?m.distr==3?zk:m.distr==4?Fk:xv:m.distr==3?kv:m.distr==4?Sv:Dk)),m.auto=xe(A?!1:m.auto),m.clamp=xe(m.clamp||xk),m._min=m._max=null}}}b("x"),b("y"),l==1&&w.forEach(f=>{b(f.scale)}),T.forEach(f=>{b(f.scale)});for(let f in e.scales)b(f);const z=O[M],H=z.distr;let K,oe;z.ori==0?(en(c,W3),K=o,oe=s):(en(c,q3),K=s,oe=o);const se={};for(let f in O){let m=O[f];(m.min!=null||m.max!=null)&&(se[f]={min:m.min,max:m.max},m.min=m.max=null)}const fe=e.tzDate||(f=>new Date(Nt(f/v))),ne=e.fmtDate||od,q=v==1?Kx(fe):Qx(fe),J=H0(fe,$0(v==1?qx:Yx,ne)),G=U0(fe,V0(Jx,ne)),re=[],Y=r.legend=it({},tk,e.legend),me=Y.show,X=Y.markers;Y.idxs=re,X.width=xe(X.width),X.dash=xe(X.dash),X.stroke=xe(X.stroke),X.fill=xe(X.fill);let pe,Le,Ue,Be=[],tt=[],Ct,st=!1,dn={};if(Y.live){const f=w[1]?w[1].values:null;st=f!=null,Ct=st?f(r,1,0):{_:0};for(let m in Ct)dn[m]=td}if(me)if(pe=Rn("table",nx,c),Ue=Rn("tbody",null,pe),Y.mount(r,pe),st){Le=Rn("thead",null,pe,Ue);let f=Rn("tr",null,Le);Rn("th",null,f);for(var Qn in Ct)Rn("th",g0,f).textContent=Qn}else en(pe,lx),Y.live&&en(pe,rx);const pn={show:!0},Zn={show:!1};function Cn(f,m){if(m==0&&(st||!Y.live||l==2))return ui;let k=[],E=Rn("tr",ix,Ue,Ue.childNodes[m]);en(E,f.class),f.show||en(E,Yr);let N=Rn("th",null,E);if(X.show){let W=mn(ox,N);if(m>0){let Z=X.width(r,m);Z&&(W.style.border=Z+"px "+X.dash(r,m)+" "+X.stroke(r,m)),W.style.background=X.fill(r,m)}}let A=mn(g0,N);A.textContent=f.label,m>0&&(X.show||(A.style.color=f.width>0?X.stroke(r,m):X.fill(r,m)),pt("click",N,W=>{if(de._lock)return;ut(W);let Z=w.indexOf(f);if((W.ctrlKey||W.metaKey)!=Y.isolate){let ie=w.some((V,le)=>le>0&&le!=Z&&V.show);w.forEach((V,le)=>{le>0&&In(le,ie?le==Z?pn:Zn:pn,!0,rt.setSeries)})}else In(Z,{show:!f.show},!0,rt.setSeries)},!1),pr&&pt(k0,N,W=>{de._lock||(ut(W),In(w.indexOf(f),_l,!0,rt.setSeries))},!1));for(var B in Ct){let W=Rn("td",sx,E);W.textContent="--",k.push(W)}return[E,k]}const hn=new Map;function pt(f,m,k,E=!0){const N=hn.get(m)||{},A=de.bind[f](r,m,k,E);A&&(nl(f,m,N[f]=A),hn.set(m,N))}function ue(f,m,k){const E=hn.get(m)||{};for(let N in E)(f==null||N==f)&&(Uc(N,m,E[N]),delete E[N]);f==null&&hn.delete(m)}let nt=0,Ft=0,ye=0,te=0,Oe=0,$e=0,h=0,S=0,C=0,j=0;r.bbox={};let F=!1,Q=!1,ae=!1,he=!1,at=!1,Qe=!1;function We(f,m,k){(k||f!=r.width||m!=r.height)&&ce(f,m),ki(!1),ae=!0,Q=!0,de.left>=0&&(he=Qe=!0),Hr()}function ce(f,m){r.width=nt=ye=f,r.height=Ft=te=m,Oe=$e=0,Fo(),Io();let k=r.bbox;h=k.left=Gr(Oe*Te,.5),S=k.top=Gr($e*Te,.5),C=k.width=Gr(ye*Te,.5),j=k.height=Gr(te*Te,.5)}const Tn=3;function Ha(){let f=!1,m=0;for(;!f;){m++;let k=jv(m),E=Av(m);f=m==Tn||k&&E,f||(ce(r.width,r.height),Q=!0)}}function gi({width:f,height:m}){We(f,m)}r.setSize=gi;function Fo(){let f=!1,m=!1,k=!1,E=!1;T.forEach((N,A)=>{if(N.show&&N._show){let{side:B,_size:W}=N,Z=B%2,ie=N.label!=null?N.labelSize:0,V=W+ie;V>0&&(Z?(ye-=V,B==3?(Oe+=V,E=!0):k=!0):(te-=V,B==0?($e+=V,f=!0):m=!0))}}),Fn[0]=f,Fn[1]=k,Fn[2]=m,Fn[3]=E,ye-=hr[1]+hr[3],Oe+=hr[3],te-=hr[2]+hr[0],$e+=hr[0]}function Io(){let f=Oe+ye,m=$e+te,k=Oe,E=$e;function N(A,B){switch(A){case 1:return f+=B,f-B;case 2:return m+=B,m-B;case 3:return k-=B,k+B;case 0:return E-=B,E+B}}T.forEach((A,B)=>{if(A.show&&A._show){let W=A.side;A._pos=N(W,A._size),A.label!=null&&(A._lpos=N(W,A.labelSize))}})}const de=r.cursor=it({},ak,{drag:{y:l==2}},e.cursor),ut=f=>{de.event=f};de.idxs=re,de._lock=!1;let Xt=de.points;Xt.show=xe(Xt.show),Xt.size=xe(Xt.size),Xt.stroke=xe(Xt.stroke),Xt.width=xe(Xt.width),Xt.fill=xe(Xt.fill);const Jn=r.focus=it({},e.focus||{alpha:.3},de.focus),pr=Jn.prox>=0;let ht=[null];function yi(f,m){if(m>0){let k=de.points.show(r,m);if(k)return en(k,tx),en(k,f.class),Cl(k,-10,-10,ye,te),x.insertBefore(k,ht[m]),k}}function $r(f,m){if(l==1||m>0){let k=l==1&&O[f.scale].time,E=f.value;f.value=k?D0(E)?U0(fe,V0(E,ne)):E||G:E||yk,f.label=f.label||(k?ck:uk)}if(m>0){f.width=f.width==null?1:f.width,f.paths=f.paths||Lk||xx,f.fillTo=xe(f.fillTo||Sk),f.pxAlign=+Pe(f.pxAlign,P),f.pxRound=X0(f.pxAlign),f.stroke=xe(f.stroke||null),f.fill=xe(f.fill||null),f._stroke=f._fill=f._paths=f._focus=null;let k=wk(xt(1,f.width),1),E=f.points=it({},{size:k,width:xt(1,k*.2),stroke:f.stroke,space:k*2,paths:jk,_stroke:null,_fill:null},f.points);E.show=xe(E.show),E.filter=xe(E.filter),E.fill=xe(E.fill),E.stroke=xe(E.stroke),E.paths=xe(E.paths),E.pxAlign=f.pxAlign}if(me){let k=Cn(f,m);Be.splice(m,0,k[0]),tt.splice(m,0,k[1]),Y.values.push(null)}if(de.show){re.splice(m,0,null);let k=yi(f,m);k&&ht.splice(m,0,k)}Ot("addSeries",m)}function wi(f,m){m=m??w.length,f=l==1?Gc(f,m,q0,Z0):Gc(f,m,null,Q0),w.splice(m,0,f),$r(w[m],m)}r.addSeries=wi;function Bo(f){if(w.splice(f,1),me){Y.values.splice(f,1),tt.splice(f,1);let m=Be.splice(f,1)[0];ue(null,m.firstChild),m.remove()}de.show&&(re.splice(f,1),ht.length>1&&ht.splice(f,1)[0].remove()),Ot("delSeries",f)}r.delSeries=Bo;const Fn=[!1,!1,!1,!1];function Pv(f,m){if(f._show=f.show,f.show){let k=f.side%2,E=O[f.scale];E==null&&(f.scale=k?w[1].scale:M,E=O[f.scale]);let N=E.time;f.size=xe(f.size),f.space=xe(f.space),f.rotate=xe(f.rotate),kr(f.incrs)&&f.incrs.forEach(B=>{!ai.has(B)&&ai.set(B,K1(B))}),f.incrs=xe(f.incrs||(E.distr==2?Hx:N?v==1?Wx:Gx:Vx)),f.splits=xe(f.splits||(N&&E.distr==1?q:E.distr==3?Wc:E.distr==4?pk:dk)),f.stroke=xe(f.stroke),f.grid.stroke=xe(f.grid.stroke),f.ticks.stroke=xe(f.ticks.stroke),f.border.stroke=xe(f.border.stroke);let A=f.values;f.values=kr(A)&&!kr(A[0])?xe(A):N?kr(A)?H0(fe,$0(A,ne)):D0(A)?Zx(fe,A):A||J:A||fk,f.filter=xe(f.filter||(E.distr>=3&&E.log==10?vk:E.distr==3&&E.log==2?gk:W1)),f.font=nh(f.font),f.labelFont=nh(f.labelFont),f._size=f.size(r,null,m,0),f._space=f._rotate=f._incrs=f._found=f._splits=f._values=null,f._size>0&&(Fn[m]=!0,f._el=mn(Z3,g))}}function _i(f,m,k,E){let[N,A,B,W]=k,Z=m%2,ie=0;return Z==0&&(W||A)&&(ie=m==0&&!N||m==2&&!B?Nt(W0.size/3):0),Z==1&&(N||B)&&(ie=m==1&&!A||m==3&&!W?Nt(G0.size/2):0),ie}const dd=r.padding=(e.padding||[_i,_i,_i,_i]).map(f=>xe(Pe(f,_i))),hr=r._padding=dd.map((f,m)=>f(r,m,Fn,0));let Tt,mt=null,vt=null;const $o=l==1?w[0].idxs:null;let Pn=null,Ho=!1;function pd(f,m){if(t=f==null?[]:rl(f,z0),l==2){Tt=0;for(let k=1;k=0,Qe=!0,Hr()}}r.setData=pd;function Va(){Ho=!0;let f,m;l==1&&(Tt>0?(mt=$o[0]=0,vt=$o[1]=Tt-1,f=t[0][mt],m=t[0][vt],H==2?(f=mt,m=vt):f==m&&(H==3?[f,m]=ja(f,f,z.log,!1):H==4?[f,m]=rd(f,f,z.log,!1):z.time?m=f+Nt(86400/v):[f,m]=ca(f,m,ld,!0))):(mt=$o[0]=f=null,vt=$o[1]=m=null)),yl(M,f,m)}let Vo,ml,Ua,Wa,qa,Ka,Ga,Ya,Qa,xi;function hd(f,m,k,E,N,A){f??(f=w0),k??(k=G1),E??(E="butt"),N??(N=w0),A??(A="round"),f!=Vo&&(d.strokeStyle=Vo=f),N!=ml&&(d.fillStyle=ml=N),m!=Ua&&(d.lineWidth=Ua=m),A!=qa&&(d.lineJoin=qa=A),E!=Ka&&(d.lineCap=Ka=E),k!=Wa&&d.setLineDash(Wa=k)}function md(f,m,k,E){m!=ml&&(d.fillStyle=ml=m),f!=Ga&&(d.font=Ga=f),k!=Ya&&(d.textAlign=Ya=k),E!=Qa&&(d.textBaseline=Qa=E)}function Za(f,m,k,E,N=0){if(E.length>0&&f.auto(r,Ho)&&(m==null||m.min==null)){let A=Pe(mt,0),B=Pe(vt,E.length-1),W=k.min==null?f.distr==3?hx(E,A,B):px(E,A,B,N):[k.min,k.max];f.min=nn(f.min,k.min=W[0]),f.max=xt(f.max,k.max=W[1])}}function Ov(){let f=rl(O,z0);for(let E in f){let N=f[E],A=se[E];if(A!=null&&A.min!=null)it(N,A),E==M&&ki(!0);else if(E!=M||l==2)if(Tt==0&&N.from==null){let B=N.range(r,null,null,E);N.min=B[0],N.max=B[1]}else N.min=ke,N.max=-ke}if(Tt>0){w.forEach((E,N)=>{if(l==1){let A=E.scale,B=f[A],W=se[A];if(N==0){let Z=B.range(r,B.min,B.max,A);B.min=Z[0],B.max=Z[1],mt=wr(B.min,t[0]),vt=wr(B.max,t[0]),vt-mt>1&&(t[0][mt]B.max&&vt--),E.min=Pn[mt],E.max=Pn[vt]}else E.show&&E.auto&&Za(B,W,E,t[N],E.sorted);E.idxs[0]=mt,E.idxs[1]=vt}else if(N>0&&E.show&&E.auto){let[A,B]=E.facets,W=A.scale,Z=B.scale,[ie,V]=t[N];Za(f[W],se[W],A,ie,A.sorted),Za(f[Z],se[Z],B,V,B.sorted),E.min=B.min,E.max=B.max}});for(let E in f){let N=f[E],A=se[E];if(N.from==null&&(A==null||A.min==null)){let B=N.range(r,N.min==ke?null:N.min,N.max==-ke?null:N.max,E);N.min=B[0],N.max=B[1]}}}for(let E in f){let N=f[E];if(N.from!=null){let A=f[N.from];if(A.min==null)N.min=N.max=null;else{let B=N.range(r,A.min,A.max,E);N.min=B[0],N.max=B[1]}}}let m={},k=!1;for(let E in f){let N=f[E],A=O[E];if(A.min!=N.min||A.max!=N.max){A.min=N.min,A.max=N.max;let B=A.distr;A._min=B==3?ir(A.min):B==4?Iu(A.min,A.asinh):A.min,A._max=B==3?ir(A.max):B==4?Iu(A.max,A.asinh):A.max,m[E]=k=!0}}if(k){w.forEach((E,N)=>{l==2?N>0&&m.y&&(E._paths=null):m[E.scale]&&(E._paths=null)});for(let E in m)ae=!0,Ot("setScale",E);de.show&&de.left>=0&&(he=Qe=!0)}for(let E in se)se[E]=null}function Nv(f){let m=j0(mt-1,0,Tt-1),k=j0(vt+1,0,Tt-1);for(;f[m]==null&&m>0;)m--;for(;f[k]==null&&k0&&(w.forEach((f,m)=>{if(m>0&&f.show&&f._paths==null){let k=l==2?[0,t[m][0].length-1]:Nv(t[m]);f._paths=f.paths(r,m,k[0],k[1])}}),w.forEach((f,m)=>{if(m>0&&f.show){xi!=f.alpha&&(d.globalAlpha=xi=f.alpha),vd(m,!1),f._paths&&gd(m,!1);{vd(m,!0);let k=f._paths?f._paths.gaps:null,E=f.points.show(r,m,mt,vt,k),N=f.points.filter(r,m,E,k);(E||N)&&(f.points._paths=f.points.paths(r,m,mt,vt,N),gd(m,!0))}xi!=1&&(d.globalAlpha=xi=1),Ot("drawSeries",m)}}))}function vd(f,m){let k=m?w[f].points:w[f];k._stroke=k.stroke(r,f),k._fill=k.fill(r,f)}function gd(f,m){let k=m?w[f].points:w[f],E=k._stroke,N=k._fill,{stroke:A,fill:B,clip:W,flags:Z}=k._paths,ie=null,V=je(k.width*Te,3),le=V%2/2;m&&N==null&&(N=V>0?"#fff":E);let ge=k.pxAlign==1&&le>0;if(ge&&d.translate(le,le),!m){let Ze=h-V/2,_e=S-V/2,Ce=C+V,Ee=j+V;ie=new Path2D,ie.rect(Ze,_e,Ce,Ee)}m?Ja(E,V,k.dash,k.cap,N,A,B,Z,W):Rv(f,E,V,k.dash,k.cap,N,A,B,Z,ie,W),ge&&d.translate(-le,-le)}function Rv(f,m,k,E,N,A,B,W,Z,ie,V){let le=!1;R.forEach((ge,Ze)=>{if(ge.series[0]==f){let _e=w[ge.series[1]],Ce=t[ge.series[1]],Ee=(_e._paths||so).band;kr(Ee)&&(Ee=ge.dir==1?Ee[0]:Ee[1]);let Me,qe=null;_e.show&&Ee&&vx(Ce,mt,vt)?(qe=ge.fill(r,Ze)||A,Me=_e._paths.clip):Ee=null,Ja(m,k,E,N,qe,B,W,Z,ie,V,Me,Ee),le=!0}}),le||Ja(m,k,E,N,A,B,W,Z,ie,V)}const yd=cl|da;function Ja(f,m,k,E,N,A,B,W,Z,ie,V,le){hd(f,m,k,E,N),(Z||ie||le)&&(d.save(),Z&&d.clip(Z),ie&&d.clip(ie)),le?(W&yd)==yd?(d.clip(le),V&&d.clip(V),Wo(N,B),Uo(f,A,m)):W&da?(Wo(N,B),d.clip(le),Uo(f,A,m)):W&cl&&(d.save(),d.clip(le),V&&d.clip(V),Wo(N,B),d.restore(),Uo(f,A,m)):(Wo(N,B),Uo(f,A,m)),(Z||ie||le)&&d.restore()}function Uo(f,m,k){k>0&&(m instanceof Map?m.forEach((E,N)=>{d.strokeStyle=Vo=N,d.stroke(E)}):m!=null&&f&&d.stroke(m))}function Wo(f,m){m instanceof Map?m.forEach((k,E)=>{d.fillStyle=ml=E,d.fill(k)}):m!=null&&f&&d.fill(m)}function Lv(f,m,k,E){let N=T[f],A;if(E<=0)A=[0,0];else{let B=N._space=N.space(r,f,m,k,E),W=N._incrs=N.incrs(r,f,m,k,E,B);A=Ik(m,k,W,E,B)}return N._found=A}function Xa(f,m,k,E,N,A,B,W,Z,ie){let V=B%2/2;P==1&&d.translate(V,V),hd(W,B,Z,ie,W),d.beginPath();let le,ge,Ze,_e,Ce=N+(E==0||E==3?-A:A);k==0?(ge=N,_e=Ce):(le=N,Ze=Ce);for(let Ee=0;Ee{if(!k.show)return;let N=O[k.scale];if(N.min==null){k._show&&(m=!1,k._show=!1,ki(!1));return}else k._show||(m=!1,k._show=!0,ki(!1));let A=k.side,B=A%2,{min:W,max:Z}=N,[ie,V]=Lv(E,W,Z,B==0?ye:te);if(V==0)return;let le=N.distr==2,ge=k._splits=k.splits(r,E,W,Z,ie,V,le),Ze=N.distr==2?ge.map(Me=>Pn[Me]):ge,_e=N.distr==2?Pn[ge[1]]-Pn[ge[0]]:ie,Ce=k._values=k.values(r,k.filter(r,Ze,E,V,_e),E,V,_e);k._rotate=A==2?k.rotate(r,Ce,E,V):0;let Ee=k._size;k._size=li(k.size(r,Ce,E,f)),Ee!=null&&k._size!=Ee&&(m=!1)}),m}function Av(f){let m=!0;return dd.forEach((k,E)=>{let N=k(r,E,Fn,f);N!=hr[E]&&(m=!1),hr[E]=N}),m}function bv(){for(let f=0;fPn[Nn]):_e,Ee=V.distr==2?Pn[_e[1]]-Pn[_e[0]]:Z,Me=m.ticks,qe=m.border,Wt=Me.show?Nt(Me.size*Te):0,ze=m._rotate*-Ds/180,lt=y(m._pos*Te),jt=(Wt+Ze)*W,Xe=lt+jt;A=E==0?Xe:0,N=E==1?Xe:0;let Bt=m.font[0],On=m.align==1?El:m.align==2?zu:ze>0?El:ze<0?zu:E==0?"center":k==3?zu:El,gr=ze||E==1?"middle":k==2?Bi:y0;md(Bt,B,On,gr);let zd=m.font[1]*m.lineGap,Zo=_e.map(Nn=>y(u(Nn,V,le,ge))),Fd=m._values;for(let Nn=0;Nn{k>0&&(m._paths=null,f&&(l==1?(m.min=null,m.max=null):m.facets.forEach(E=>{E.min=null,E.max=null})))})}let eu=!1;function Hr(){eu||(Mx(Dv),eu=!0)}function Dv(){F&&(Ov(),F=!1),ae&&(Ha(),ae=!1),Q&&(He(_,El,Oe),He(_,Bi,$e),He(_,qi,ye),He(_,Ki,te),He(x,El,Oe),He(x,Bi,$e),He(x,qi,ye),He(x,Ki,te),He(g,qi,nt),He(g,Ki,Ft),p.width=Nt(nt*Te),p.height=Nt(Ft*Te),T.forEach(({_el:f,_show:m,_size:k,_pos:E,side:N})=>{if(f!=null)if(m){let A=N===3||N===0?k:0,B=N%2==1;He(f,B?"left":"top",E-A),He(f,B?"width":"height",k),He(f,B?"top":"left",B?$e:Oe),He(f,B?"height":"width",B?te:ye),Vc(f,Yr)}else en(f,Yr)}),Vo=ml=Ua=qa=Ka=Ga=Ya=Qa=Wa=null,xi=1,Oi(!0),Ot("setSize"),Q=!1),nt>0&&Ft>0&&(d.clearRect(0,0,p.width,p.height),Ot("drawClear"),I.forEach(f=>f()),Ot("draw")),It.show&&at&&(Go(It),at=!1),de.show&&he&&(Vr(null,!0,!1),he=!1),Y.show&&Y.live&&Qe&&(lu(),Qe=!1),a||(a=!0,r.status=1,Ot("ready")),Ho=!1,eu=!1}r.redraw=(f,m)=>{ae=m||!1,f!==!1?yl(M,z.min,z.max):Hr()};function tu(f,m){let k=O[f];if(k.from==null){if(Tt==0){let E=k.range(r,m.min,m.max,f);m.min=E[0],m.max=E[1]}if(m.min>m.max){let E=m.min;m.min=m.max,m.max=E}if(Tt>1&&m.min!=null&&m.max!=null&&m.max-m.min<1e-16)return;f==M&&k.distr==2&&Tt>0&&(m.min=wr(m.min,t[0]),m.max=wr(m.max,t[0]),m.min==m.max&&m.max++),se[f]=m,F=!0,Hr()}}r.setScale=tu;let nu,ru,qo,Ko,wd,_d,vl,gl,xd,kd,be,De,mr=!1;const Pt=de.drag;let gt=Pt.x,yt=Pt.y;de.show&&(de.x&&(nu=mn(X3,x)),de.y&&(ru=mn(ex,x)),z.ori==0?(qo=nu,Ko=ru):(qo=ru,Ko=nu),be=de.left,De=de.top);const It=r.select=it({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),Si=It.show?mn(J3,It.over?x:_):null;function Go(f,m){if(It.show){for(let k in f)It[k]=f[k],k in Td&&He(Si,k,f[k]);m!==!1&&Ot("setSelect")}}r.setSelect=Go;function zv(f,m){let k=w[f],E=me?Be[f]:null;k.show?E&&Vc(E,Yr):(E&&en(E,Yr),ht.length>1&&Cl(ht[f],-10,-10,ye,te))}function yl(f,m,k){tu(f,{min:m,max:k})}function In(f,m,k,E){m.focus!=null&&Hv(f),m.show!=null&&w.forEach((N,A)=>{A>0&&(f==A||f==null)&&(N.show=m.show,zv(A,m.show),yl(l==2?N.facets[1].scale:N.scale,null,null),Hr())}),k!==!1&&Ot("setSeries",f,m),E&&Ni("setSeries",r,f,m)}r.setSeries=In;function Fv(f,m){it(R[f],m)}function Iv(f,m){f.fill=xe(f.fill||null),f.dir=Pe(f.dir,-1),m=m??R.length,R.splice(m,0,f)}function Bv(f){f==null?R.length=0:R.splice(f,1)}r.addBand=Iv,r.setBand=Fv,r.delBand=Bv;function $v(f,m){w[f].alpha=m,de.show&&ht[f]&&(ht[f].style.opacity=m),me&&Be[f]&&(Be[f].style.opacity=m)}let wl,Ei,Ci;const _l={focus:!0};function Hv(f){if(f!=Ci){let m=f==null,k=Jn.alpha!=1;w.forEach((E,N)=>{let A=m||N==0||N==f;E._focus=m?null:A,k&&$v(N,A?1:Jn.alpha)}),Ci=f,k&&Hr()}}me&&pr&&pt(S0,pe,f=>{de._lock||(ut(f),Ci!=null&&In(null,_l,!0,rt.setSeries))});function Bn(f,m,k){let E=O[m];k&&(f=f/Te-(E.ori==1?$e:Oe));let N=ye;E.ori==1&&(N=te,f=N-f),E.dir==-1&&(f=N-f);let A=E._min,B=E._max,W=f/N,Z=A+(B-A)*W,ie=E.distr;return ie==3?ii(10,Z):ie==4?yx(Z,E.asinh):Z}function Vv(f,m){let k=Bn(f,M,m);return wr(k,t[0],mt,vt)}r.valToIdx=f=>wr(f,t[0]),r.posToIdx=Vv,r.posToVal=Bn,r.valToPos=(f,m,k)=>O[m].ori==0?o(f,O[m],k?C:ye,k?h:0):s(f,O[m],k?j:te,k?S:0);function Uv(f){f(r),Hr()}r.batch=Uv,r.setCursor=(f,m,k)=>{be=f.left,De=f.top,Vr(null,m,k)};function Sd(f,m){He(Si,El,It.left=f),He(Si,qi,It.width=m)}function Ed(f,m){He(Si,Bi,It.top=f),He(Si,Ki,It.height=m)}let Ti=z.ori==0?Sd:Ed,Pi=z.ori==1?Sd:Ed;function Wv(){if(me&&Y.live)for(let f=l==2?1:0;f{re[E]=k}):Sx(f.idx)||re.fill(f.idx),Y.idx=re[0]);for(let k=0;k0||l==1&&!st)&&qv(k,re[k]);me&&Y.live&&Wv(),Qe=!1,m!==!1&&Ot("setLegend")}r.setLegend=lu;function qv(f,m){let k=w[f],E=f==0&&H==2?Pn:t[f],N;st?N=k.values(r,f,m)??dn:(N=k.value(r,m==null?null:E[m],f,m),N=N==null?dn:{_:N}),Y.values[f]=N}function Vr(f,m,k){xd=be,kd=De,[be,De]=de.move(r,be,De),de.show&&(qo&&Cl(qo,Nt(be),0,ye,te),Ko&&Cl(Ko,0,Nt(De),ye,te));let E,N=mt>vt;wl=ke;let A=z.ori==0?ye:te,B=z.ori==1?ye:te;if(be<0||Tt==0||N){E=null;for(let W=0;W0&&ht.length>1&&Cl(ht[W],-10,-10,ye,te);pr&&In(null,_l,!0,f==null&&rt.setSeries),Y.live&&(re.fill(E),Qe=!0)}else{let W,Z,ie;l==1&&(W=z.ori==0?be:De,Z=Bn(W,M),E=wr(Z,t[0],mt,vt),ie=K(t[0][E],z,A,0));for(let V=l==2?1:0;V0&&le.show){let Me=Ce==null?-10:si(oe(Ce,l==1?O[le.scale]:O[le.facets[1].scale],B,0),1);if(pr&&Me>=0&&l==1){let ze=_t(Me-De);if(ze=0?1:-1,On=Xe>=0?1:-1;On==Bt&&(On==1?lt==1?Ce>=Xe:Ce<=Xe:lt==1?Ce<=Xe:Ce>=Xe)&&(wl=ze,Ei=V)}else wl=ze,Ei=V}}let qe,Wt;if(z.ori==0?(qe=Ee,Wt=Me):(qe=Me,Wt=Ee),Qe&&ht.length>1){fx(ht[V],de.points.fill(r,V),de.points.stroke(r,V));let ze,lt,jt,Xe,Bt=!0,On=de.points.bbox;if(On!=null){Bt=!1;let gr=On(r,V);jt=gr.left,Xe=gr.top,ze=gr.width,lt=gr.height}else jt=qe,Xe=Wt,ze=lt=de.points.size(r,V);dx(ht[V],ze,lt,Bt),Cl(ht[V],jt,Xe,ye,te)}}}}if(de.idx=E,de.left=be,de.top=De,Qe&&(Y.idx=E,lu()),It.show&&mr)if(f!=null){let[W,Z]=rt.scales,[ie,V]=rt.match,[le,ge]=f.cursor.sync.scales,Ze=f.cursor.drag;if(gt=Ze._x,yt=Ze._y,gt||yt){let{left:_e,top:Ce,width:Ee,height:Me}=f.select,qe=f.scales[W].ori,Wt=f.posToVal,ze,lt,jt,Xe,Bt,On=W!=null&&ie(W,le),gr=Z!=null&&V(Z,ge);On&>?(qe==0?(ze=_e,lt=Ee):(ze=Ce,lt=Me),jt=O[W],Xe=K(Wt(ze,le),jt,A,0),Bt=K(Wt(ze+lt,le),jt,A,0),Ti(nn(Xe,Bt),_t(Bt-Xe))):Ti(0,A),gr&&yt?(qe==1?(ze=_e,lt=Ee):(ze=Ce,lt=Me),jt=O[Z],Xe=oe(Wt(ze,ge),jt,B,0),Bt=oe(Wt(ze+lt,ge),jt,B,0),Pi(nn(Xe,Bt),_t(Bt-Xe))):Pi(0,B)}else Yo()}else{let W=_t(xd-wd),Z=_t(kd-_d);if(z.ori==1){let ge=W;W=Z,Z=ge}gt=Pt.x&&W>=Pt.dist,yt=Pt.y&&Z>=Pt.dist;let ie=Pt.uni;ie!=null?gt&&yt&&(gt=W>=ie,yt=Z>=ie,!gt&&!yt&&(Z>W?yt=!0:gt=!0)):Pt.x&&Pt.y&&(gt||yt)&&(gt=yt=!0);let V,le;gt&&(z.ori==0?(V=vl,le=be):(V=gl,le=De),Ti(nn(V,le),_t(le-V)),yt||Pi(0,B)),yt&&(z.ori==1?(V=vl,le=be):(V=gl,le=De),Pi(nn(V,le),_t(le-V)),gt||Ti(0,A)),!gt&&!yt&&(Ti(0,0),Pi(0,0))}if(Pt._x=gt,Pt._y=yt,f==null){if(k){if(Dd!=null){let[W,Z]=rt.scales;rt.values[0]=W!=null?Bn(z.ori==0?be:De,W):null,rt.values[1]=Z!=null?Bn(z.ori==1?be:De,Z):null}Ni(_0,r,be,De,ye,te,E)}if(pr){let W=k&&rt.setSeries,Z=Jn.prox;Ci==null?wl<=Z&&In(Ei,_l,!0,W):wl>Z?In(null,_l,!0,W):Ei!=Ci&&In(Ei,_l,!0,W)}}m!==!1&&Ot("setCursor")}let vr=null;Object.defineProperty(r,"rect",{get(){return vr==null&&Oi(!1),vr}});function Oi(f=!1){f?vr=null:(vr=x.getBoundingClientRect(),Ot("syncRect",vr))}function Cd(f,m,k,E,N,A,B){de._lock||mr&&f!=null&&f.movementX==0&&f.movementY==0||(iu(f,m,k,E,N,A,B,!1,f!=null),f!=null?Vr(null,!0,!0):Vr(m,!0,!1))}function iu(f,m,k,E,N,A,B,W,Z){if(vr==null&&Oi(!1),ut(f),f!=null)k=f.clientX-vr.left,E=f.clientY-vr.top;else{if(k<0||E<0){be=-10,De=-10;return}let[ie,V]=rt.scales,le=m.cursor.sync,[ge,Ze]=le.values,[_e,Ce]=le.scales,[Ee,Me]=rt.match,qe=m.axes[0].side%2==1,Wt=z.ori==0?ye:te,ze=z.ori==1?ye:te,lt=qe?A:N,jt=qe?N:A,Xe=qe?E:k,Bt=qe?k:E;if(_e!=null?k=Ee(ie,_e)?u(ge,O[ie],Wt,0):-10:k=Wt*(Xe/lt),Ce!=null?E=Me(V,Ce)?u(Ze,O[V],ze,0):-10:E=ze*(Bt/jt),z.ori==1){let On=k;k=E,E=On}}Z&&((k<=1||k>=ye-1)&&(k=Gr(k,ye)),(E<=1||E>=te-1)&&(E=Gr(E,te))),W?(wd=k,_d=E,[vl,gl]=de.move(r,k,E)):(be=k,De=E)}const Td={width:0,height:0,left:0,top:0};function Yo(){Go(Td,!1)}let Pd,Od,Nd,Md;function Rd(f,m,k,E,N,A,B){mr=!0,gt=yt=Pt._x=Pt._y=!1,iu(f,m,k,E,N,A,B,!0,!1),f!=null&&(pt(Fu,$c,Ld,!1),Ni(x0,r,vl,gl,ye,te,null));let{left:W,top:Z,width:ie,height:V}=It;Pd=W,Od=Z,Nd=ie,Md=V,Yo()}function Ld(f,m,k,E,N,A,B){mr=Pt._x=Pt._y=!1,iu(f,m,k,E,N,A,B,!1,!0);let{left:W,top:Z,width:ie,height:V}=It,le=ie>0||V>0,ge=Pd!=W||Od!=Z||Nd!=ie||Md!=V;if(le&&ge&&Go(It),Pt.setScale&&le&&ge){let Ze=W,_e=ie,Ce=Z,Ee=V;if(z.ori==1&&(Ze=Z,_e=V,Ce=W,Ee=ie),gt&&yl(M,Bn(Ze,M),Bn(Ze+_e,M)),yt)for(let Me in O){let qe=O[Me];Me!=M&&qe.from==null&&qe.min!=ke&&yl(Me,Bn(Ce+Ee,Me),Bn(Ce,Me))}Yo()}else de.lock&&(de._lock=!de._lock,de._lock||Vr(null,!0,!1));f!=null&&(ue(Fu,$c),Ni(Fu,r,be,De,ye,te,null))}function Kv(f,m,k,E,N,A,B){if(de._lock)return;ut(f);let W=mr;if(mr){let Z=!0,ie=!0,V=10,le,ge;z.ori==0?(le=gt,ge=yt):(le=yt,ge=gt),le&&ge&&(Z=be<=V||be>=ye-V,ie=De<=V||De>=te-V),le&&Z&&(be=be{let N=rt.match[2];k=N(r,m,k),k!=-1&&In(k,E,!0,!1)},de.show&&(pt(x0,x,Rd),pt(_0,x,Cd),pt(k0,x,f=>{ut(f),Oi(!1)}),pt(S0,x,Kv),pt(E0,x,jd),Kc.add(r),r.syncRect=Oi);const Qo=r.hooks=e.hooks||{};function Ot(f,m,k){f in Qo&&Qo[f].forEach(E=>{E.call(null,r,m,k)})}(e.plugins||[]).forEach(f=>{for(let m in f.hooks)Qo[m]=(Qo[m]||[]).concat(f.hooks[m])});const bd=(f,m,k)=>k,rt=it({key:null,setSeries:!1,filters:{pub:A0,sub:A0},scales:[M,w[1]?w[1].scale:null],match:[b0,b0,bd],values:[null,null]},de.sync);rt.match.length==2&&rt.match.push(bd),de.sync=rt;const Dd=rt.key,ou=dv(Dd);function Ni(f,m,k,E,N,A,B){rt.filters.pub(f,m,k,E,N,A,B)&&ou.pub(f,m,k,E,N,A,B)}ou.sub(r);function Gv(f,m,k,E,N,A,B){rt.filters.sub(f,m,k,E,N,A,B)&&xl[f](null,m,k,E,N,A,B)}r.pub=Gv;function Yv(){ou.unsub(r),Kc.delete(r),hn.clear(),Uc(ua,Wl,Ad),c.remove(),pe==null||pe.remove(),Ot("destroy")}r.destroy=Yv;function su(){Ot("init",e,t),pd(t||e.data,!1),se[M]?tu(M,se[M]):Va(),at=It.show,he=Qe=!0,We(e.width,e.height)}return w.forEach($r),T.forEach(Pv),n?n instanceof HTMLElement?(n.appendChild(c),su()):n(r,su):su(),r}Et.assign=it;Et.fmtNum=id;Et.rangeNum=ca;Et.rangeLog=ja;Et.rangeAsinh=rd;Et.orient=hl;Et.pxRatio=Te;Et.join=Nx;Et.fmtDate=od,Et.tzDate=Bx;Et.sync=dv;{Et.addGap=Ek,Et.clipGaps=Da;let e=Et.paths={points:yv};e.linear=_v,e.stepped=Pk,e.bars=Ok,e.spline=Mk}const $k=Object.freeze(Object.defineProperty({__proto__:null,default:Et},Symbol.toStringTag,{value:"Module"}));function Hk(e,t){let[n,r]=H3(e,{formatSubMilliseconds:!0,compact:t}).split(" ").slice(0,2);return n.match(/[0-9]+s/)&&!t?(n=n.replace("s","."),r?r=r.substring(0,1):r="0",n+r+"s"):(r&&(n+=" "+r),n)}function rh(e){return F3(e)}var Vk=Et.fmtDate("{YYYY}-{MM}-{DD} {HH}:{mm}:{ss}");function Ba(e,t,n=!1){switch(e){case Kr.duration:return Hk(t,n);case Kr.bytes:return rh(t);case Kr.bps:return rh(t)+"/s";case Kr.counter:return m0(t).format("0.[0]a");case Kr.rps:return m0(t).format("0.[00]a")+"/s";case Kr.timestamp:return Vk(new Date(t*1e3));default:return isNaN(t)||t==null?"0":t.toFixed(2)}}function Uk(e){return function(t,n,r,l){return l==null?"--":n==null?"":Ba(e,n)}}var Ev=class{constructor(e,t,n){ve(this,"samples");ve(this,"series");const r=t.series.map(l=>l.query);this.samples=e.samples.select(r),this.samples.empty||(this.series=this.buildSeries(t.series,n))}get empty(){return this.samples.empty}get data(){const e=new Array;for(let t=0;t0&&(i=e[r].legend),n.push({stroke:t[l].stroke,fill:t[l].fill,value:Uk(this.samples[r].unit),points:{show:!1},label:i,scale:this.samples[r].unit})}return n}};function Wk(e){let t;function n(i){t=document.createElement("div");const o={display:"none",position:"absolute",padding:"0.2rem",border:"1px solid #7b65fa",zIndex:"10",pointerEvents:"none",margin:"0.5rem",fontSize:"smaller"};Object.assign(t.style,o),i.over.appendChild(t),i.over.onmouseleave=()=>{t.style.display="none"},i.over.onmouseenter=()=>{t.style.display="block"}}function r(i){l(i)}function l(i){const o=i.over.getBoundingClientRect();t.style.background=e;const s=qk(i);if(!s){t.style.display="none";return}t.innerHTML=s;const{left:u,top:a}=i.cursor,c=u??0,p=a??0;t.innerHTML=s,ci.over.focus()}}}function qk(e){const{idx:t}=e.cursor;if(t==null)return"";let n;e.legend.values?n=e.legend.values[0]._:n="";let r=``;for(let l=1;l`}return r+="
${n}
${Kk(i,o)}${s}${u}
",r}function Kk(e,t){return``}var zs=(e=>(e.chart="chart",e.stat="stat",e.summary="summary",e))(zs||{}),Gk=class{constructor(e,t){ve(this,"view");ve(this,"metrics");this.metrics=t.metrics;const n=e.series.map(r=>r.query);this.view=t.summary.select(n)}get empty(){return this.view.empty}get cols(){return this.view.aggregates.length}get header(){return new Array("metric",...this.view.aggregates.map(e=>e))}get body(){const e=new Array;for(let t=0;tthis.format(this.view[t],r))),e.push(n)}return e}format(e,t){var n;const r=this.metrics.unit(((n=e.metric)==null?void 0:n.name)??"",t);return Ba(r,e.values[t],!0)}};function Yk(e,t){for(let n=0;nr.query)).empty}function Jk(e,t){return t.summary.select(e.series.map(r=>r.query)).empty}var Xk=bo({conditions:void 0,styles:{borderRadius:{values:{true:{defaultClass:"_1c9nzq10"},false:{defaultClass:"_1c9nzq11"}}}}}),eS="_1c9nzq14",tS="_1c9nzq12",nS="_1c9nzq13";const rS=({children:e,title:t,isOpen:n,onClick:r})=>D.jsxs("div",{children:[D.jsxs(St,{as:"button",align:"center","aria-expanded":n,className:Yn(tS,Xk({borderRadius:String(n)})),width:"100%",onClick:r,children:[n?D.jsx(Kn,{name:"chevron-up"}):D.jsx(Kn,{name:"chevron-down"}),D.jsx("h2",{className:nS,children:t})]}),n&&D.jsx("div",{className:eS,children:e})]});var lS=bo({conditions:{defaultCondition:"xs",conditionNames:["xs","sm","md","lg","xl","xxl"],responsiveArray:void 0},styles:{gridColumn:{values:{1:{conditions:{xs:"ag5hlo6",sm:"ag5hlo7",md:"ag5hlo8",lg:"ag5hlo9",xl:"ag5hloa",xxl:"ag5hlob"},defaultClass:"ag5hlo6"},2:{conditions:{xs:"ag5hloc",sm:"ag5hlod",md:"ag5hloe",lg:"ag5hlof",xl:"ag5hlog",xxl:"ag5hloh"},defaultClass:"ag5hloc"},3:{conditions:{xs:"ag5hloi",sm:"ag5hloj",md:"ag5hlok",lg:"ag5hlol",xl:"ag5hlom",xxl:"ag5hlon"},defaultClass:"ag5hloi"},4:{conditions:{xs:"ag5hloo",sm:"ag5hlop",md:"ag5hloq",lg:"ag5hlor",xl:"ag5hlos",xxl:"ag5hlot"},defaultClass:"ag5hloo"},5:{conditions:{xs:"ag5hlou",sm:"ag5hlov",md:"ag5hlow",lg:"ag5hlox",xl:"ag5hloy",xxl:"ag5hloz"},defaultClass:"ag5hlou"},6:{conditions:{xs:"ag5hlo10",sm:"ag5hlo11",md:"ag5hlo12",lg:"ag5hlo13",xl:"ag5hlo14",xxl:"ag5hlo15"},defaultClass:"ag5hlo10"},7:{conditions:{xs:"ag5hlo16",sm:"ag5hlo17",md:"ag5hlo18",lg:"ag5hlo19",xl:"ag5hlo1a",xxl:"ag5hlo1b"},defaultClass:"ag5hlo16"},8:{conditions:{xs:"ag5hlo1c",sm:"ag5hlo1d",md:"ag5hlo1e",lg:"ag5hlo1f",xl:"ag5hlo1g",xxl:"ag5hlo1h"},defaultClass:"ag5hlo1c"},9:{conditions:{xs:"ag5hlo1i",sm:"ag5hlo1j",md:"ag5hlo1k",lg:"ag5hlo1l",xl:"ag5hlo1m",xxl:"ag5hlo1n"},defaultClass:"ag5hlo1i"},10:{conditions:{xs:"ag5hlo1o",sm:"ag5hlo1p",md:"ag5hlo1q",lg:"ag5hlo1r",xl:"ag5hlo1s",xxl:"ag5hlo1t"},defaultClass:"ag5hlo1o"},11:{conditions:{xs:"ag5hlo1u",sm:"ag5hlo1v",md:"ag5hlo1w",lg:"ag5hlo1x",xl:"ag5hlo1y",xxl:"ag5hlo1z"},defaultClass:"ag5hlo1u"},12:{conditions:{xs:"ag5hlo20",sm:"ag5hlo21",md:"ag5hlo22",lg:"ag5hlo23",xl:"ag5hlo24",xxl:"ag5hlo25"},defaultClass:"ag5hlo20"}}}}}),lh={root:"ag5hlo1",variants:bo({conditions:void 0,styles:{gap:{values:{1:{defaultClass:"ag5hlo2"},2:{defaultClass:"ag5hlo3"},3:{defaultClass:"ag5hlo4"},4:{defaultClass:"ag5hlo5"}}}}})};function iS({as:e="div",gap:t=3,children:n,className:r,...l},i){return D.jsx(e,{ref:i,className:Yn(r,lh.root,lh.variants({gap:t})),...l,children:n})}function oS({children:e,as:t="div",className:n,xs:r=12,sm:l,md:i,lg:o,xl:s,xxl:u,...a},c){return D.jsx(t,{ref:c,className:Yn(n,lS({gridColumn:{xs:r,sm:l,md:i,lg:o,xl:s,xxl:u}})),...a,children:e})}const $a=Object.assign(U.forwardRef(iS),{Column:U.forwardRef(oS)});var Cv={exports:{}};const sS=Xv($k);(function(e,t){(function(r,l){e.exports=l(U,sS)})(self,(n,r)=>(()=>{var l={"./common/index.ts":(u,a,c)=>{c.r(a),c.d(a,{dataMatch:()=>g,optionsUpdateState:()=>d});var p=function(_,x){var P={};for(var y in _)Object.prototype.hasOwnProperty.call(_,y)&&x.indexOf(y)<0&&(P[y]=_[y]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,y=Object.getOwnPropertySymbols(_);v{u.exports=n},uplot:u=>{u.exports=r}},i={};function o(u){var a=i[u];if(a!==void 0)return a.exports;var c=i[u]={exports:{}};return l[u](c,c.exports,o),c.exports}o.n=u=>{var a=u&&u.__esModule?()=>u.default:()=>u;return o.d(a,{a}),a},o.d=(u,a)=>{for(var c in a)o.o(a,c)&&!o.o(u,c)&&Object.defineProperty(u,c,{enumerable:!0,get:a[c]})},o.o=(u,a)=>Object.prototype.hasOwnProperty.call(u,a),o.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var s={};return(()=>{/*!*******************************!*\ + */(function(e){(function(t,n){e.exports?e.exports=n():t.numeral=n()})(Xv,function(){var t,n,r="2.0.6",l={},i={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function u(a,c){this._input=a,this._value=c}return t=function(a){var c,p,d,g;if(t.isNumeral(a))c=a.value();else if(a===0||typeof a>"u")c=0;else if(a===null||n.isNaN(a))c=null;else if(typeof a=="string")if(s.zeroFormat&&a===s.zeroFormat)c=0;else if(s.nullFormat&&a===s.nullFormat||!a.replace(/[^0-9]+/g,"").length)c=null;else{for(p in l)if(g=typeof l[p].regexps.unformat=="function"?l[p].regexps.unformat():l[p].regexps.unformat,g&&a.match(g)){d=l[p].unformat;break}d=d||t._.stringToNumber,c=d(a)}else c=Number(a)||null;return new u(a,c)},t.version=r,t.isNumeral=function(a){return a instanceof u},t._=n={numberToFormat:function(a,c,p){var d=i[t.options.currentLocale],g=!1,_=!1,x=0,P="",y=1e12,v=1e9,w=1e6,T=1e3,O="",R=!1,M,L,I,D,z,V,K;if(a=a||0,L=Math.abs(a),t._.includes(c,"(")?(g=!0,c=c.replace(/[\(|\)]/g,"")):(t._.includes(c,"+")||t._.includes(c,"-"))&&(z=t._.includes(c,"+")?c.indexOf("+"):a<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),t._.includes(c,"a")&&(M=c.match(/a(k|m|b|t)?/),M=M?M[1]:!1,t._.includes(c," a")&&(P=" "),c=c.replace(new RegExp(P+"a[kmbt]?"),""),L>=y&&!M||M==="t"?(P+=d.abbreviations.trillion,a=a/y):L=v&&!M||M==="b"?(P+=d.abbreviations.billion,a=a/v):L=w&&!M||M==="m"?(P+=d.abbreviations.million,a=a/w):(L=T&&!M||M==="k")&&(P+=d.abbreviations.thousand,a=a/T)),t._.includes(c,"[.]")&&(_=!0,c=c.replace("[.]",".")),I=a.toString().split(".")[0],D=c.split(".")[1],V=c.indexOf(","),x=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,D?(t._.includes(D,"[")?(D=D.replace("]",""),D=D.split("["),O=t._.toFixed(a,D[0].length+D[1].length,p,D[1].length)):O=t._.toFixed(a,D.length,p),I=O.split(".")[0],t._.includes(O,".")?O=d.delimiters.decimal+O.split(".")[1]:O="",_&&Number(O.slice(1))===0&&(O="")):I=t._.toFixed(a,0,p),P&&!M&&Number(I)>=1e3&&P!==d.abbreviations.trillion)switch(I=String(Number(I)/1e3),P){case d.abbreviations.thousand:P=d.abbreviations.million;break;case d.abbreviations.million:P=d.abbreviations.billion;break;case d.abbreviations.billion:P=d.abbreviations.trillion;break}if(t._.includes(I,"-")&&(I=I.slice(1),R=!0),I.length0;oe--)I="0"+I;return V>-1&&(I=I.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),c.indexOf(".")===0&&(I=""),K=I+O+(P||""),g?K=(g&&R?"(":"")+K+(g&&R?")":""):z>=0?K=z===0?(R?"-":"+")+K:K+(R?"-":"+"):R&&(K="-"+K),K},stringToNumber:function(a){var c=i[s.currentLocale],p=a,d={thousand:3,million:6,billion:9,trillion:12},g,_,x;if(s.zeroFormat&&a===s.zeroFormat)_=0;else if(s.nullFormat&&a===s.nullFormat||!a.replace(/[^0-9]+/g,"").length)_=null;else{_=1,c.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(g in d)if(x=new RegExp("[^a-zA-Z]"+c.abbreviations[g]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),p.match(x)){_*=Math.pow(10,d[g]);break}_*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),_*=Number(a)}return _},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,c){return a.indexOf(c)!==-1},insert:function(a,c,p){return a.slice(0,p)+c+a.slice(p)},reduce:function(a,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var p=Object(a),d=p.length>>>0,g=0,_;if(arguments.length===3)_=arguments[2];else{for(;g=d)throw new TypeError("Reduce of empty array with no initial value");_=p[g++]}for(;gd?c:d},1)},toFixed:function(a,c,p,d){var g=a.toString().split("."),_=c-(d||0),x,P,y,v;return g.length===2?x=Math.min(Math.max(g[1].length,_),c):x=_,y=Math.pow(10,x),v=(p(a+"e+"+x)/y).toFixed(x),d>c-x&&(P=new RegExp("\\.?0{1,"+(d-(c-x))+"}$"),v=v.replace(P,"")),v}},t.options=s,t.formats=l,t.locales=i,t.locale=function(a){return a&&(s.currentLocale=a.toLowerCase()),s.currentLocale},t.localeData=function(a){if(!a)return i[s.currentLocale];if(a=a.toLowerCase(),!i[a])throw new Error("Unknown locale : "+a);return i[a]},t.reset=function(){for(var a in o)s[a]=o[a]},t.zeroFormat=function(a){s.zeroFormat=typeof a=="string"?a:null},t.nullFormat=function(a){s.nullFormat=typeof a=="string"?a:null},t.defaultFormat=function(a){s.defaultFormat=typeof a=="string"?a:"0.0"},t.register=function(a,c,p){if(c=c.toLowerCase(),this[a+"s"][c])throw new TypeError(c+" "+a+" already registered.");return this[a+"s"][c]=p,p},t.validate=function(a,c){var p,d,g,_,x,P,y,v;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{y=t.localeData(c)}catch{y=t.localeData(t.locale())}return g=y.currency.symbol,x=y.abbreviations,p=y.delimiters.decimal,y.delimiters.thousands==="."?d="\\.":d=y.delimiters.thousands,v=a.match(/^[^\d]+/),v!==null&&(a=a.substr(1),v[0]!==g)||(v=a.match(/[^\d]+$/),v!==null&&(a=a.slice(0,-1),v[0]!==x.thousand&&v[0]!==x.million&&v[0]!==x.billion&&v[0]!==x.trillion))?!1:(P=new RegExp(d+"{2}"),a.match(/[^\d.,]/g)?!1:(_=a.split(p),_.length>2?!1:_.length<2?!!_[0].match(/^\d+.*\d$/)&&!_[0].match(P):_[0].length===1?!!_[0].match(/^\d+$/)&&!_[0].match(P)&&!!_[1].match(/^\d+$/):!!_[0].match(/^\d+.*\d$/)&&!_[0].match(P)&&!!_[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(a,c){var p=this._value,d=a||s.defaultFormat,g,_,x;if(c=c||Math.round,p===0&&s.zeroFormat!==null)_=s.zeroFormat;else if(p===null&&s.nullFormat!==null)_=s.nullFormat;else{for(g in l)if(d.match(l[g].regexps.format)){x=l[g].format;break}x=x||t._.numberToFormat,_=x(p,d,c)}return _},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var c=n.correctionFactor.call(null,this._value,a);function p(d,g,_,x){return d+Math.round(c*g)}return this._value=n.reduce([this._value,a],p,0)/c,this},subtract:function(a){var c=n.correctionFactor.call(null,this._value,a);function p(d,g,_,x){return d-Math.round(c*g)}return this._value=n.reduce([a],p,Math.round(this._value*c))/c,this},multiply:function(a){function c(p,d,g,_){var x=n.correctionFactor(p,d);return Math.round(p*x)*Math.round(d*x)/Math.round(x*x)}return this._value=n.reduce([this._value,a],c,1),this},divide:function(a){function c(p,d,g,_){var x=n.correctionFactor(p,d);return Math.round(p*x)/Math.round(d*x)}return this._value=n.reduce([this._value,a],c),this},difference:function(a){return Math.abs(t(this._value).subtract(a).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var c=a%10;return~~(a%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,c,p){var d=t._.includes(c," BPS")?" ":"",g;return a=a*1e4,c=c.replace(/\s?BPS/,""),g=t._.numberToFormat(a,c,p),t._.includes(g,")")?(g=g.split(""),g.splice(-1,0,d+"BPS"),g=g.join("")):g=g+d+"BPS",g},unformat:function(a){return+(t._.stringToNumber(a)*1e-4).toFixed(15)}})}(),function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},p=a.suffixes.concat(c.suffixes.filter(function(g){return a.suffixes.indexOf(g)<0})),d=p.join("|");d="("+d.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(d)},format:function(g,_,x){var P,y=t._.includes(_,"ib")?c:a,v=t._.includes(_," b")||t._.includes(_," ib")?" ":"",w,T,O;for(_=_.replace(/\s?i?b/,""),w=0;w<=y.suffixes.length;w++)if(T=Math.pow(y.base,w),O=Math.pow(y.base,w+1),g===null||g===0||g>=T&&g0&&(g=g/T);break}return P=t._.numberToFormat(g,_,x),P+v},unformat:function(g){var _=t._.stringToNumber(g),x,P;if(_){for(x=a.suffixes.length-1;x>=0;x--){if(t._.includes(g,a.suffixes[x])){P=Math.pow(a.base,x);break}if(t._.includes(g,c.suffixes[x])){P=Math.pow(c.base,x);break}}_*=P||1}return _}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(a,c,p){var d=t.locales[t.options.currentLocale],g={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},_,x,P;for(c=c.replace(/\s?\$\s?/,""),_=t._.numberToFormat(a,c,p),a>=0?(g.before=g.before.replace(/[\-\(]/,""),g.after=g.after.replace(/[\-\)]/,"")):a<0&&!t._.includes(g.before,"-")&&!t._.includes(g.before,"(")&&(g.before="-"+g.before),P=0;P=0;P--)switch(x=g.after[P],x){case"$":_=P===g.after.length-1?_+d.currency.symbol:t._.insert(_,d.currency.symbol,-(g.after.length-(1+P)));break;case" ":_=P===g.after.length-1?_+" ":t._.insert(_," ",-(g.after.length-(1+P)+d.currency.symbol.length-1));break}return _}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,c,p){var d,g=typeof a=="number"&&!t._.isNaN(a)?a.toExponential():"0e+0",_=g.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),d=t._.numberToFormat(Number(_[0]),c,p),d+"e"+_[1]},unformat:function(a){var c=t._.includes(a,"e+")?a.split("e+"):a.split("e-"),p=Number(c[0]),d=Number(c[1]);d=t._.includes(a,"e-")?d*=-1:d;function g(_,x,P,y){var v=t._.correctionFactor(_,x),w=_*v*(x*v)/(v*v);return w}return t._.reduce([p,Math.pow(10,d)],g,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,c,p){var d=t.locales[t.options.currentLocale],g,_=t._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),_+=d.ordinal(a),g=t._.numberToFormat(a,c,p),g+_}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,c,p){var d=t._.includes(c," %")?" ":"",g;return t.options.scalePercentBy100&&(a=a*100),c=c.replace(/\s?\%/,""),g=t._.numberToFormat(a,c,p),t._.includes(g,")")?(g=g.split(""),g.splice(-1,0,d+"%"),g=g.join("")):g=g+d+"%",g},unformat:function(a){var c=t._.stringToNumber(a);return t.options.scalePercentBy100?c*.01:c}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,c,p){var d=Math.floor(a/60/60),g=Math.floor((a-d*60*60)/60),_=Math.round(a-d*60*60-g*60);return d+":"+(g<10?"0"+g:g)+":"+(_<10?"0"+_:_)},unformat:function(a){var c=a.split(":"),p=0;return c.length===3?(p=p+Number(c[0])*60*60,p=p+Number(c[1])*60,p=p+Number(c[2])):c.length===2&&(p=p+Number(c[0])*60,p=p+Number(c[1])),Number(p)}})}(),t})})(V1);var D3=V1.exports;const m0=pa(D3),z3=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],F3=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],I3=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],B3=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],v0=(e,t,n)=>{let r=e;return typeof t=="string"||Array.isArray(t)?r=e.toLocaleString(t,n):(t===!0||n!==void 0)&&(r=e.toLocaleString(void 0,n)),r};function $3(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const n=t.bits?t.binary?B3:I3:t.binary?F3:z3,r=t.space?" ":"";if(t.signed&&e===0)return` 0${r}${n[0]}`;const l=e<0,i=l?"-":t.signed?"+":"";l&&(e=-e);let o;if(t.minimumFractionDigits!==void 0&&(o={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(o={maximumFractionDigits:t.maximumFractionDigits,...o}),e<1){const c=v0(e,t.locale,o);return i+c+r+n[0]}const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=(t.binary?1024:1e3)**s,o||(e=e.toPrecision(3));const u=v0(Number(e),t.locale,o),a=n[s];return i+u+r+a}function H3(e){if(typeof e!="number")throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}}const V3=(e,t)=>t===1?e:`${e}s`,U3=1e-7;function W3(e,t={}){if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const n=[],r=(o,s)=>{const u=Math.floor(o*10**s+U3);return(Math.round(u)/10**s).toFixed(s)},l=(o,s,u,a)=>{if((n.length===0||!t.colonNotation)&&o===0&&!(t.colonNotation&&u==="m"))return;a=(a||o||"0").toString();let c,p;if(t.colonNotation){c=n.length>0?":":"",p="";const d=a.includes(".")?a.split(".")[0].length:a.length,g=n.length>0?2:1;a="0".repeat(Math.max(0,g-d))+a}else c="",p=t.verbose?" "+V3(s,o):u;n.push(c+a+p)},i=H3(e);if(l(Math.trunc(i.days/365),"year","y"),l(i.days%365,"day","d"),l(i.hours,"hour","h"),l(i.minutes,"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(l(i.seconds,"second","s"),t.formatSubMilliseconds)l(i.milliseconds,"millisecond","ms"),l(i.microseconds,"microsecond","µs"),l(i.nanoseconds,"nanosecond","ns");else{const o=i.milliseconds+i.microseconds/1e3+i.nanoseconds/1e6,s=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,u=o>=1?Math.round(o):Math.ceil(o),a=s?o.toFixed(s):u;l(Number.parseFloat(a),"millisecond","ms",a)}else{const o=e/1e3%60,s=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,u=r(o,s),a=t.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");l(Number.parseFloat(a),"second","s",a)}if(n.length===0)return"0"+(t.verbose?" milliseconds":"ms");if(t.compact)return n[0];if(typeof t.unitCount=="number"){const o=t.colonNotation?"":" ";return n.slice(0,Math.max(t.unitCount,1)).join(o)}return t.colonNotation?n.join(""):n.join(" ")}const q3=!0,dt="u-",K3="uplot",G3=dt+"hz",Y3=dt+"vt",Q3=dt+"title",Z3=dt+"wrap",J3=dt+"under",X3=dt+"over",ex=dt+"axis",Yr=dt+"off",tx=dt+"select",nx=dt+"cursor-x",rx=dt+"cursor-y",lx=dt+"cursor-pt",ix=dt+"legend",ox=dt+"live",sx=dt+"inline",ax=dt+"series",ux=dt+"marker",g0=dt+"label",cx=dt+"value",qi="width",Ki="height",Bi="top",y0="bottom",El="left",zu="right",ed="#000",w0=ed+"0",_0="mousemove",x0="mousedown",Fu="mouseup",k0="mouseenter",S0="mouseleave",E0="dblclick",fx="resize",dx="scroll",C0="change",ua="dppxchange",td="--",hi=typeof window<"u",$c=hi?document:null,Wl=hi?window:null,px=hi?navigator:null;let Te,ws;function Hc(){let e=devicePixelRatio;Te!=e&&(Te=e,ws&&Uc(C0,ws,Hc),ws=matchMedia(`(min-resolution: ${Te-.001}dppx) and (max-resolution: ${Te+.001}dppx)`),nl(C0,ws,Hc),Wl.dispatchEvent(new CustomEvent(ua)))}function en(e,t){if(t!=null){let n=e.classList;!n.contains(t)&&n.add(t)}}function Vc(e,t){let n=e.classList;n.contains(t)&&n.remove(t)}function He(e,t,n){e.style[t]=n+"px"}function Rn(e,t,n,r){let l=$c.createElement(e);return t!=null&&en(l,t),n!=null&&n.insertBefore(l,r),l}function mn(e,t){return Rn("div",e,t)}const T0=new WeakMap;function Cl(e,t,n,r,l){let i="translate("+t+"px,"+n+"px)",o=T0.get(e);i!=o&&(e.style.transform=i,T0.set(e,i),t<0||n<0||t>r||n>l?en(e,Yr):Vc(e,Yr))}const P0=new WeakMap;function hx(e,t,n){let r=t+n,l=P0.get(e);r!=l&&(P0.set(e,r),e.style.background=t,e.style.borderColor=n)}const O0=new WeakMap;function mx(e,t,n,r){let l=t+""+n,i=O0.get(e);l!=i&&(O0.set(e,l),e.style.height=n+"px",e.style.width=t+"px",e.style.marginLeft=r?-t/2+"px":0,e.style.marginTop=r?-n/2+"px":0)}const nd={passive:!0},U1={...nd,capture:!0};function nl(e,t,n,r){t.addEventListener(e,n,r?U1:nd)}function Uc(e,t,n,r){t.removeEventListener(e,n,r?U1:nd)}hi&&Hc();function wr(e,t,n,r){let l;n=n||0,r=r||t.length-1;let i=r<=2147483647;for(;r-n>1;)l=i?n+r>>1:on((n+r)/2),t[l]=t&&l<=n;l+=r)if(e[l]!=null)return l;return-1}function vx(e,t,n,r){let l=ke,i=-ke;if(r==1)l=e[t],i=e[n];else if(r==-1)l=e[n],i=e[t];else for(let o=t;o<=n;o++){let s=e[o];s!=null&&(si&&(i=s))}return[l,i]}function gx(e,t,n){let r=ke,l=-ke;for(let i=t;i<=n;i++){let o=e[i];o!=null&&o>0&&(ol&&(l=o))}return[r==ke?1:r,l==-ke?10:l]}function ja(e,t,n,r){let l=R0(e),i=R0(t),o=n==10?ir:W1;e==t&&(l==-1?(e*=n,t/=n):(e/=n,t*=n));let s=l==1?on:li,u=i==1?li:on,a=s(o(_t(e))),c=u(o(_t(t))),p=ii(n,a),d=ii(n,c);return n==10&&(a<0&&(p=je(p,-a)),c<0&&(d=je(d,-c))),r||n==2?(e=p*l,t=d*i):(e=K1(e,p),t=si(t,d)),[e,t]}function rd(e,t,n,r){let l=ja(e,t,n,r);return e==0&&(l[0]=0),t==0&&(l[1]=0),l}const ld=.1,N0={mode:3,pad:ld},oo={pad:0,soft:null,mode:0},yx={min:oo,max:oo};function ca(e,t,n,r){return Aa(n)?M0(e,t,n):(oo.pad=n,oo.soft=r?0:null,oo.mode=r?3:0,M0(e,t,yx))}function Pe(e,t){return e??t}function wx(e,t,n){for(t=Pe(t,0),n=Pe(n,e.length-1);t<=n;){if(e[t]!=null)return!0;t++}return!1}function M0(e,t,n){let r=n.min,l=n.max,i=Pe(r.pad,0),o=Pe(l.pad,0),s=Pe(r.hard,-ke),u=Pe(l.hard,ke),a=Pe(r.soft,ke),c=Pe(l.soft,-ke),p=Pe(r.mode,0),d=Pe(l.mode,0),g=t-e,_=ir(g),x=xt(_t(e),_t(t)),P=ir(x),y=_t(P-_);(g<1e-9||y>10)&&(g=0,(e==0||t==0)&&(g=1e-9,p==2&&a!=ke&&(i=0),d==2&&c!=-ke&&(o=0)));let v=g||x||1e3,w=ir(v),T=ii(10,on(w)),O=v*(g==0?e==0?.1:1:i),R=je(K1(e-O,T/10),9),M=e>=a&&(p==1||p==3&&R<=a||p==2&&R>=a)?a:ke,L=xt(s,R=M?M:nn(M,R)),I=v*(g==0?t==0?.1:1:o),D=je(si(t+I,T/10),9),z=t<=c&&(d==1||d==3&&D>=c||d==2&&D<=c)?c:-ke,V=nn(u,D>z&&t<=z?z:xt(z,D));return L==V&&L==0&&(V=100),[L,V]}const _x=new Intl.NumberFormat(hi?px.language:"en-US"),id=e=>_x.format(e),fn=Math,Ds=fn.PI,_t=fn.abs,on=fn.floor,Nt=fn.round,li=fn.ceil,nn=fn.min,xt=fn.max,ii=fn.pow,R0=fn.sign,ir=fn.log10,W1=fn.log2,xx=(e,t=1)=>fn.sinh(e)*t,Iu=(e,t=1)=>fn.asinh(e/t),ke=1/0;function L0(e){return(ir((e^e>>31)-(e>>31))|0)+1}function j0(e,t,n){return nn(xt(e,t),n)}function xe(e){return typeof e=="function"?e:()=>e}const kx=()=>{},Sx=e=>e,q1=(e,t)=>t,Ex=e=>null,A0=e=>!0,b0=(e,t)=>e==t,oi=e=>je(e,14);function Gr(e,t){return oi(je(oi(e/t))*t)}function si(e,t){return oi(li(oi(e/t))*t)}function K1(e,t){return oi(on(oi(e/t))*t)}function je(e,t=0){if(Cx(e))return e;let n=10**t,r=e*n*(1+Number.EPSILON);return Nt(r)/n}const ai=new Map;function G1(e){return((""+e).split(".")[1]||"").length}function No(e,t,n,r){let l=[],i=r.map(G1);for(let o=t;o=0&&o>=0?0:s)+(o>=i[a]?0:i[a]),d=je(c,p);l.push(d),ai.set(d,p)}}return l}const so={},Y1=[],ui=[null,null],kr=Array.isArray,Cx=Number.isInteger,Tx=e=>e===void 0;function D0(e){return typeof e=="string"}function Aa(e){let t=!1;if(e!=null){let n=e.constructor;t=n==null||n==Object}return t}function z0(e){return e!=null&&typeof e=="object"}const Px=Object.getPrototypeOf(Uint8Array);function rl(e,t=Aa){let n;if(kr(e)){let r=e.find(l=>l!=null);if(kr(r)||t(r)){n=Array(e.length);for(let l=0;li){for(l=o-1;l>=0&&e[l]==null;)e[l--]=null;for(l=o+1;lo-s)],l=r[0].length,i=new Map;for(let o=0;o"u"?e=>Promise.resolve().then(e):queueMicrotask;function Ax(e){let t=e[0],n=t.length,r=Array(n);for(let i=0;it[i]-t[o]);let l=[];for(let i=0;i=r&&e[l]==null;)l--;if(l<=r)return!0;const i=xt(1,on((l-r+1)/t));for(let o=e[r],s=r+i;s<=l;s+=i){const u=e[s];if(u!=null){if(u<=o)return!1;o=u}}return!0}const Q1=["January","February","March","April","May","June","July","August","September","October","November","December"],Z1=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function J1(e){return e.slice(0,3)}const zx=Z1.map(J1),Fx=Q1.map(J1),Ix={MMMM:Q1,MMM:Fx,WWWW:Z1,WWW:zx};function $i(e){return(e<10?"0":"")+e}function Bx(e){return(e<10?"00":e<100?"0":"")+e}const $x={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,t)=>t.MMMM[e.getMonth()],MMM:(e,t)=>t.MMM[e.getMonth()],MM:e=>$i(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>$i(e.getDate()),D:e=>e.getDate(),WWWW:(e,t)=>t.WWWW[e.getDay()],WWW:(e,t)=>t.WWW[e.getDay()],HH:e=>$i(e.getHours()),H:e=>e.getHours(),h:e=>{let t=e.getHours();return t==0?12:t>12?t-12:t},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>$i(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>$i(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>Bx(e.getMilliseconds())};function od(e,t){t=t||Ix;let n=[],r=/\{([a-z]+)\}|[^{]+/gi,l;for(;l=r.exec(e);)n.push(l[0][0]=="{"?$x[l[1]]:l[0]);return i=>{let o="";for(let s=0;se%1==0,fa=[1,2,2.5,5],Ux=No(10,-16,0,fa),ev=No(10,0,16,fa),Wx=ev.filter(X1),qx=Ux.concat(ev),sd=` +`,tv="{YYYY}",F0=sd+tv,nv="{M}/{D}",Gi=sd+nv,_s=Gi+"/{YY}",rv="{aa}",Kx="{h}:{mm}",Tl=Kx+rv,I0=sd+Tl,B0=":{ss}",Ne=null;function lv(e){let t=e*1e3,n=t*60,r=n*60,l=r*24,i=l*30,o=l*365,u=(e==1?No(10,0,3,fa).filter(X1):No(10,-3,0,fa)).concat([t,t*5,t*10,t*15,t*30,n,n*5,n*10,n*15,n*30,r,r*2,r*3,r*4,r*6,r*8,r*12,l,l*2,l*3,l*4,l*5,l*6,l*7,l*8,l*9,l*10,l*15,i,i*2,i*3,i*4,i*6,o,o*2,o*5,o*10,o*25,o*50,o*100]);const a=[[o,tv,Ne,Ne,Ne,Ne,Ne,Ne,1],[l*28,"{MMM}",F0,Ne,Ne,Ne,Ne,Ne,1],[l,nv,F0,Ne,Ne,Ne,Ne,Ne,1],[r,"{h}"+rv,_s,Ne,Gi,Ne,Ne,Ne,1],[n,Tl,_s,Ne,Gi,Ne,Ne,Ne,1],[t,B0,_s+" "+Tl,Ne,Gi+" "+Tl,Ne,I0,Ne,1],[e,B0+".{fff}",_s+" "+Tl,Ne,Gi+" "+Tl,Ne,I0,Ne,1]];function c(p){return(d,g,_,x,P,y)=>{let v=[],w=P>=o,T=P>=i&&P=l?l:P,D=on(_)-on(R),z=L+D+si(R-L,I);v.push(z);let V=p(z),K=V.getHours()+V.getMinutes()/n+V.getSeconds()/r,oe=P/r,se=d.axes[g]._space,fe=y/se;for(;z=je(z+P,e==1?0:3),!(z>x);)if(oe>1){let ne=on(je(K+oe,6))%24,G=p(z).getHours()-ne;G>1&&(G=-1),z-=G*r,K=(K+oe)%24;let re=v[v.length-1];je((z-re)/P,3)*fe>=.7&&v.push(z)}else v.push(z)}return v}}return[u,a,c]}const[Gx,Yx,Qx]=lv(1),[Zx,Jx,Xx]=lv(.001);No(2,-53,53,[1]);function $0(e,t){return e.map(n=>n.map((r,l)=>l==0||l==8||r==null?r:t(l==1||n[8]==0?r:n[1]+r)))}function H0(e,t){return(n,r,l,i,o)=>{let s=t.find(_=>o>=_[0])||t[t.length-1],u,a,c,p,d,g;return r.map(_=>{let x=e(_),P=x.getFullYear(),y=x.getMonth(),v=x.getDate(),w=x.getHours(),T=x.getMinutes(),O=x.getSeconds(),R=P!=u&&s[2]||y!=a&&s[3]||v!=c&&s[4]||w!=p&&s[5]||T!=d&&s[6]||O!=g&&s[7]||s[1];return u=P,a=y,c=v,p=w,d=T,g=O,R(x)})}}function ek(e,t){let n=od(t);return(r,l,i,o,s)=>l.map(u=>n(e(u)))}function Bu(e,t,n){return new Date(e,t,n)}function V0(e,t){return t(e)}const tk="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function U0(e,t){return(n,r,l,i)=>i==null?td:t(e(r))}function nk(e,t){let n=e.series[t];return n.width?n.stroke(e,t):n.points.width?n.points.stroke(e,t):null}function rk(e,t){return e.series[t].fill(e,t)}const lk={show:!0,live:!0,isolate:!1,mount:kx,markers:{show:!0,width:2,stroke:nk,fill:rk,dash:"solid"},idx:null,idxs:null,values:[]};function ik(e,t){let n=e.cursor.points,r=mn(),l=n.size(e,t);He(r,qi,l),He(r,Ki,l);let i=l/-2;He(r,"marginLeft",i),He(r,"marginTop",i);let o=n.width(e,t,l);return o&&He(r,"borderWidth",o),r}function ok(e,t){let n=e.series[t].points;return n._fill||n._stroke}function sk(e,t){let n=e.series[t].points;return n._stroke||n._fill}function ak(e,t){return e.series[t].points.size}function uk(e,t,n){return n}const $u=[0,0];function ck(e,t,n){return $u[0]=t,$u[1]=n,$u}function xs(e,t,n,r=!0){return l=>{l.button==0&&(!r||l.target==t)&&n(l)}}function Hu(e,t,n,r=!0){return l=>{(!r||l.target==t)&&n(l)}}const fk={show:!0,x:!0,y:!0,lock:!1,move:ck,points:{show:ik,size:ak,width:0,stroke:sk,fill:ok},bind:{mousedown:xs,mouseup:xs,click:xs,dblclick:xs,mousemove:Hu,mouseleave:Hu,mouseenter:Hu},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{prox:-1,bias:0},left:-10,top:-10,idx:null,dataIdx:uk,idxs:null,event:null},iv={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},ad=it({},iv,{filter:q1}),ov=it({},ad,{size:10}),sv=it({},iv,{show:!1}),ud='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',av="bold "+ud,uv=1.5,W0={show:!0,scale:"x",stroke:ed,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:av,side:2,grid:ad,ticks:ov,border:sv,font:ud,lineGap:uv,rotate:0},dk="Value",pk="Time",q0={show:!0,scale:"x",auto:!1,sorted:1,min:ke,max:-ke,idxs:[]};function hk(e,t,n,r,l){return t.map(i=>i==null?"":id(i))}function mk(e,t,n,r,l,i,o){let s=[],u=ai.get(l)||0;n=o?n:je(si(n,l),u);for(let a=n;a<=r;a=je(a+l,u))s.push(Object.is(a,-0)?0:a);return s}function Wc(e,t,n,r,l,i,o){const s=[],u=e.scales[e.axes[t].scale].log,a=u==10?ir:W1,c=on(a(n));l=ii(u,c),u==10&&c<0&&(l=je(l,-c));let p=n;do s.push(p),p=p+l,u==10&&(p=je(p,ai.get(l))),p>=l*u&&(l=p);while(p<=r);return s}function vk(e,t,n,r,l,i,o){let u=e.scales[e.axes[t].scale].asinh,a=r>u?Wc(e,t,xt(u,n),r,l):[u],c=r>=0&&n<=0?[0]:[];return(n<-u?Wc(e,t,xt(u,-r),-n,l):[u]).reverse().map(d=>-d).concat(c,a)}const cv=/./,gk=/[12357]/,yk=/[125]/,K0=/1/,qc=(e,t,n,r)=>e.map((l,i)=>t==4&&l==0||i%r==0&&n.test(l.toExponential()[l<0?1:0])?l:null);function wk(e,t,n,r,l){let i=e.axes[n],o=i.scale,s=e.scales[o],u=e.valToPos,a=i._space,c=u(10,o),p=u(9,o)-c>=a?cv:u(7,o)-c>=a?gk:u(5,o)-c>=a?yk:K0;if(p==K0){let d=_t(u(1,o)-c);if(dl,Q0={show:!0,auto:!0,sorted:0,gaps:fv,alpha:1,facets:[it({},Y0,{scale:"x"}),it({},Y0,{scale:"y"})]},Z0={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:fv,alpha:1,points:{show:Sk,filter:null},values:null,min:ke,max:-ke,idxs:[],path:null,clip:null};function Ek(e,t,n,r,l){return n/10}const dv={time:q3,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},Ck=it({},dv,{time:!1,ori:1}),J0={};function pv(e,t){let n=J0[e];return n||(n={key:e,plots:[],sub(r){n.plots.push(r)},unsub(r){n.plots=n.plots.filter(l=>l!=r)},pub(r,l,i,o,s,u,a){for(let c=0;c{let y=o.pxRound;const v=a.dir*(a.ori==0?1:-1),w=a.ori==0?mi:vi;let T,O;v==1?(T=n,O=r):(T=r,O=n);let R=y(p(s[T],a,x,g)),M=y(d(u[T],c,P,_)),L=y(p(s[O],a,x,g)),I=y(d(i==1?c.max:c.min,c,P,_)),D=new Path2D(l);return w(D,L,I),w(D,R,I),w(D,R,M),D})}function Da(e,t,n,r,l,i){let o=null;if(e.length>0){o=new Path2D;const s=t==0?Ia:fd;let u=n;for(let p=0;pd[0]){let g=d[0]-u;g>0&&s(o,u,r,g,r+i),u=d[1]}}let a=n+l-u,c=10;a>0&&s(o,u,r-c/2,a,r+i+c)}return o}function Pk(e,t,n){let r=e[e.length-1];r&&r[0]==t?r[1]=n:e.push([t,n])}function cd(e,t,n,r,l,i,o){let s=[],u=e.length;for(let a=l==1?n:r;a>=n&&a<=r;a+=l)if(t[a]===null){let p=a,d=a;if(l==1)for(;++a<=r&&t[a]===null;)d=a;else for(;--a>=n&&t[a]===null;)d=a;let g=i(e[p]),_=d==p?g:i(e[d]),x=p-l;g=o<=0&&x>=0&&x=0&&y>=0&&y=g&&s.push([g,_])}return s}function X0(e){return e==0?Sx:e==1?Nt:t=>Gr(t,e)}function hv(e){let t=e==0?za:Fa,n=e==0?(l,i,o,s,u,a)=>{l.arcTo(i,o,s,u,a)}:(l,i,o,s,u,a)=>{l.arcTo(o,i,u,s,a)},r=e==0?(l,i,o,s,u)=>{l.rect(i,o,s,u)}:(l,i,o,s,u)=>{l.rect(o,i,u,s)};return(l,i,o,s,u,a=0,c=0)=>{a==0&&c==0?r(l,i,o,s,u):(a=nn(a,s/2,u/2),c=nn(c,s/2,u/2),t(l,i+a,o),n(l,i+s,o,i+s,o+u,a),n(l,i+s,o+u,i,o+u,c),n(l,i,o+u,i,o,c),n(l,i,o,i+s,o,a),l.closePath())}}const za=(e,t,n)=>{e.moveTo(t,n)},Fa=(e,t,n)=>{e.moveTo(n,t)},mi=(e,t,n)=>{e.lineTo(t,n)},vi=(e,t,n)=>{e.lineTo(n,t)},Ia=hv(0),fd=hv(1),mv=(e,t,n,r,l,i)=>{e.arc(t,n,r,l,i)},vv=(e,t,n,r,l,i)=>{e.arc(n,t,r,l,i)},gv=(e,t,n,r,l,i,o)=>{e.bezierCurveTo(t,n,r,l,i,o)},yv=(e,t,n,r,l,i,o)=>{e.bezierCurveTo(n,t,l,r,o,i)};function wv(e){return(t,n,r,l,i)=>hl(t,n,(o,s,u,a,c,p,d,g,_,x,P)=>{let{pxRound:y,points:v}=o,w,T;a.ori==0?(w=za,T=mv):(w=Fa,T=vv);const O=je(v.width*Te,3);let R=(v.size-v.width)/2*Te,M=je(R*2,3),L=new Path2D,I=new Path2D,{left:D,top:z,width:V,height:K}=t.bbox;Ia(I,D-M,z-M,V+M*2,K+M*2);const oe=se=>{if(u[se]!=null){let fe=y(p(s[se],a,x,g)),ne=y(d(u[se],c,P,_));w(L,fe+R,ne),T(L,fe,ne,R,0,Ds*2)}};if(i)i.forEach(oe);else for(let se=r;se<=l;se++)oe(se);return{stroke:O>0?L:null,fill:L,clip:I,flags:cl|da}})}function _v(e){return(t,n,r,l,i,o)=>{r!=l&&(i!=r&&o!=r&&e(t,n,r),i!=l&&o!=l&&e(t,n,l),e(t,n,o))}}const Ok=_v(mi),Nk=_v(vi);function xv(e){const t=Pe(e==null?void 0:e.alignGaps,0);return(n,r,l,i)=>hl(n,r,(o,s,u,a,c,p,d,g,_,x,P)=>{let y=o.pxRound,v=Y=>y(p(Y,a,x,g)),w=Y=>y(d(Y,c,P,_)),T,O;a.ori==0?(T=mi,O=Ok):(T=vi,O=Nk);const R=a.dir*(a.ori==0?1:-1),M={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:cl},L=M.stroke;let I=ke,D=-ke,z,V,K,oe=v(s[R==1?l:i]),se=ri(u,l,i,1*R),fe=ri(u,l,i,-1*R),ne=v(s[se]),q=v(s[fe]),J=!1;for(let Y=R==1?l:i;Y>=l&&Y<=i;Y+=R){let me=v(s[Y]),X=u[Y];me==oe?X!=null?(V=w(X),I==ke&&(T(L,me,V),z=V),I=nn(V,I),D=xt(V,D)):X===null&&(J=!0):(I!=ke&&(O(L,oe,I,D,z,V),K=oe),X!=null?(V=w(X),T(L,me,V),I=D=z=V):(I=ke,D=-ke,X===null&&(J=!0)),oe=me)}I!=ke&&I!=D&&K!=oe&&O(L,oe,I,D,z,V);let[G,re]=ba(n,r);if(o.fill!=null||G!=0){let Y=M.fill=new Path2D(L),me=o.fillTo(n,r,o.min,o.max,G),X=w(me);T(Y,q,X),T(Y,ne,X)}if(!o.spanGaps){let Y=[];J&&Y.push(...cd(s,u,l,i,R,v,t)),M.gaps=Y=o.gaps(n,r,l,i,Y),M.clip=Da(Y,a.ori,g,_,x,P)}return re!=0&&(M.band=re==2?[or(n,r,l,i,L,-1),or(n,r,l,i,L,1)]:or(n,r,l,i,L,re)),M})}function Mk(e){const t=Pe(e.align,1),n=Pe(e.ascDesc,!1),r=Pe(e.alignGaps,0),l=Pe(e.extend,!1);return(i,o,s,u)=>hl(i,o,(a,c,p,d,g,_,x,P,y,v,w)=>{let T=a.pxRound,{left:O,width:R}=i.bbox,M=G=>T(_(G,d,v,P)),L=G=>T(x(G,g,w,y)),I=d.ori==0?mi:vi;const D={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:cl},z=D.stroke,V=d.dir*(d.ori==0?1:-1);s=ri(p,s,u,1),u=ri(p,s,u,-1);let K=L(p[V==1?s:u]),oe=M(c[V==1?s:u]),se=oe,fe=oe;l&&t==-1&&(fe=O,I(z,fe,K)),I(z,oe,K);for(let G=V==1?s:u;G>=s&&G<=u;G+=V){let re=p[G];if(re==null)continue;let Y=M(c[G]),me=L(re);t==1?I(z,Y,K):I(z,se,me),I(z,Y,me),K=me,se=Y}let ne=se;l&&t==1&&(ne=O+R,I(z,ne,K));let[q,J]=ba(i,o);if(a.fill!=null||q!=0){let G=D.fill=new Path2D(z),re=a.fillTo(i,o,a.min,a.max,q),Y=L(re);I(G,ne,Y),I(G,fe,Y)}if(!a.spanGaps){let G=[];G.push(...cd(c,p,s,u,V,M,r));let re=a.width*Te/2,Y=n||t==1?re:-re,me=n||t==-1?-re:re;G.forEach(X=>{X[0]+=Y,X[1]+=me}),D.gaps=G=a.gaps(i,o,s,u,G),D.clip=Da(G,d.ori,P,y,v,w)}return J!=0&&(D.band=J==2?[or(i,o,s,u,z,-1),or(i,o,s,u,z,1)]:or(i,o,s,u,z,J)),D})}function Rk(e){e=e||so;const t=Pe(e.size,[.6,ke,1]),n=e.align||0,r=(e.gap||0)*Te;let l=e.radius;l=l==null?[0,0]:typeof l=="number"?[l,0]:l;const i=xe(l),o=1-t[0],s=Pe(t[1],ke)*Te,u=Pe(t[2],1)*Te,a=Pe(e.disp,so),c=Pe(e.each,g=>{}),{fill:p,stroke:d}=a;return(g,_,x,P)=>hl(g,_,(y,v,w,T,O,R,M,L,I,D,z)=>{let V=y.pxRound,K,oe;T.ori==0?[K,oe]=i(g,_):[oe,K]=i(g,_);const se=T.dir*(T.ori==0?1:-1),fe=O.dir*(O.ori==1?1:-1);let ne=T.ori==0?Ia:fd,q=T.ori==0?c:(te,Oe,$e,h,S,C,j)=>{c(te,Oe,$e,S,h,j,C)},[J,G]=ba(g,_),re=O.distr==3?J==1?O.max:O.min:0,Y=M(re,O,z,I),me,X,pe=V(y.width*Te),Le=!1,Ue=null,Be=null,tt=null,Ct=null;p!=null&&(pe==0||d!=null)&&(Le=!0,Ue=p.values(g,_,x,P),Be=new Map,new Set(Ue).forEach(te=>{te!=null&&Be.set(te,new Path2D)}),pe>0&&(tt=d.values(g,_,x,P),Ct=new Map,new Set(tt).forEach(te=>{te!=null&&Ct.set(te,new Path2D)})));let{x0:st,size:dn}=a,Qn=!0;if(st!=null&&dn!=null){v=st.values(g,_,x,P),st.unit==2&&(v=v.map(Oe=>g.posToVal(L+Oe*D,T.key,!0)));let te=dn.values(g,_,x,P);dn.unit==2?X=te[0]*D:X=R(te[0],T,D,L)-R(0,T,D,L),X=V(X-pe),me=se==1?-pe/2:X+pe/2}else{let te=D;if(v.length>1){let $e=null;for(let h=0,S=1/0;hte&&(Qn=!1)}const pn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:cl|da};let Zn;G!=0&&(pn.band=new Path2D,Zn=V(M(G==1?O.max:O.min,O,z,I)));const Cn=Le?null:new Path2D,hn=pn.band;let{y0:pt,y1:ue}=a,nt=null;pt!=null&&ue!=null&&(w=ue.values(g,_,x,P),nt=pt.values(g,_,x,P));let Ft=K*X,ye=oe*X;for(let te=se==1?x:P;te>=x&&te<=P;te+=se){let Oe=w[te];if(Oe===void 0)continue;let $e=T.distr!=2||a!=null?v[te]:te,h=R($e,T,D,L),S=M(Pe(Oe,re),O,z,I);nt!=null&&Oe!=null&&(Y=M(nt[te],O,z,I));let C=V(h-me),j=V(xt(S,Y)),F=V(nn(S,Y)),Q=j-F;if(Oe!=null){let ae=Oe<0?ye:Ft,he=Oe<0?Ft:ye;Le?(pe>0&&tt[te]!=null&&ne(Ct.get(tt[te]),C,F+on(pe/2),X,xt(0,Q-pe),ae,he),Ue[te]!=null&&ne(Be.get(Ue[te]),C,F+on(pe/2),X,xt(0,Q-pe),ae,he)):ne(Cn,C,F+on(pe/2),X,xt(0,Q-pe),ae,he),q(g,_,te,C-pe/2,F,X+pe,Q)}G!=0&&(Oe!=null||Qn)&&(fe*G==1?(j=F,F=Zn):(F=j,j=Zn),Q=j-F,ne(hn,C-pe/2,F,X+pe,xt(0,Q),0,0))}return pe>0&&(pn.stroke=Le?Ct:Cn),pn.fill=Le?Be:Cn,pn})}function Lk(e,t){const n=Pe(t==null?void 0:t.alignGaps,0);return(r,l,i,o)=>hl(r,l,(s,u,a,c,p,d,g,_,x,P,y)=>{let v=s.pxRound,w=ne=>v(d(ne,c,P,_)),T=ne=>v(g(ne,p,y,x)),O,R,M;c.ori==0?(O=za,M=mi,R=gv):(O=Fa,M=vi,R=yv);const L=c.dir*(c.ori==0?1:-1);i=ri(a,i,o,1),o=ri(a,i,o,-1);let I=w(u[L==1?i:o]),D=I,z=[],V=[];for(let ne=L==1?i:o;ne>=i&&ne<=o;ne+=L)if(a[ne]!=null){let J=u[ne],G=w(J);z.push(D=G),V.push(T(a[ne]))}const K={stroke:e(z,V,O,M,R,v),fill:null,clip:null,band:null,gaps:null,flags:cl},oe=K.stroke;let[se,fe]=ba(r,l);if(s.fill!=null||se!=0){let ne=K.fill=new Path2D(oe),q=s.fillTo(r,l,s.min,s.max,se),J=T(q);M(ne,D,J),M(ne,I,J)}if(!s.spanGaps){let ne=[];ne.push(...cd(u,a,i,o,L,w,n)),K.gaps=ne=s.gaps(r,l,i,o,ne),K.clip=Da(ne,c.ori,_,x,P,y)}return fe!=0&&(K.band=fe==2?[or(r,l,i,o,oe,-1),or(r,l,i,o,oe,1)]:or(r,l,i,o,oe,fe)),K})}function jk(e){return Lk(Ak,e)}function Ak(e,t,n,r,l,i){const o=e.length;if(o<2)return null;const s=new Path2D;if(n(s,e[0],t[0]),o==2)r(s,e[1],t[1]);else{let u=Array(o),a=Array(o-1),c=Array(o-1),p=Array(o-1);for(let d=0;d0!=a[d]>0?u[d]=0:(u[d]=3*(p[d-1]+p[d])/((2*p[d]+p[d-1])/a[d-1]+(p[d]+2*p[d-1])/a[d]),isFinite(u[d])||(u[d]=0));u[o-1]=a[o-2];for(let d=0;d{Et.pxRatio=Te}));const bk=xv(),Dk=wv();function th(e,t,n,r){return(r?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((i,o)=>Gc(i,o,t,n))}function zk(e,t){return e.map((n,r)=>r==0?null:it({},t,n))}function Gc(e,t,n,r){return it({},t==0?n:r,e)}function kv(e,t,n){return t==null?ui:[t,n]}const Fk=kv;function Ik(e,t,n){return t==null?ui:ca(t,n,ld,!0)}function Sv(e,t,n,r){return t==null?ui:ja(t,n,e.scales[r].log,!1)}const Bk=Sv;function Ev(e,t,n,r){return t==null?ui:rd(t,n,e.scales[r].log,!1)}const $k=Ev;function Hk(e,t,n,r,l){let i=xt(L0(e),L0(t)),o=t-e,s=wr(l/r*o,n);do{let u=n[s],a=r*u/o;if(a>=l&&i+(u<5?ai.get(u):0)<=17)return[u,a]}while(++s(t=Nt((n=+l)*Te))+"px"),[e,t,n]}function Vk(e){e.show&&[e.font,e.labelFont].forEach(t=>{let n=je(t[2]*Te,1);t[0]=t[0].replace(/[0-9.]+px/,n+"px"),t[1]=n})}function Et(e,t,n){const r={mode:Pe(e.mode,1)},l=r.mode;function i(f,m){return((m.distr==3?ir(f>0?f:m.clamp(r,f,m.min,m.max,m.key)):m.distr==4?Iu(f,m.asinh):f)-m._min)/(m._max-m._min)}function o(f,m,k,E){let N=i(f,m);return E+k*(m.dir==-1?1-N:N)}function s(f,m,k,E){let N=i(f,m);return E+k*(m.dir==-1?N:1-N)}function u(f,m,k,E){return m.ori==0?o(f,m,k,E):s(f,m,k,E)}r.valToPosH=o,r.valToPosV=s;let a=!1;r.status=0;const c=r.root=mn(K3);if(e.id!=null&&(c.id=e.id),en(c,e.class),e.title){let f=mn(Q3,c);f.textContent=e.title}const p=Rn("canvas"),d=r.ctx=p.getContext("2d"),g=mn(Z3,c);nl("click",g,f=>{f.target===x&&(be!=vl||De!=gl)&&Pt.click(r,f)},!0);const _=r.under=mn(J3,g);g.appendChild(p);const x=r.over=mn(X3,g);e=rl(e);const P=+Pe(e.pxAlign,1),y=X0(P);(e.plugins||[]).forEach(f=>{f.opts&&(e=f.opts(r,e)||e)});const v=e.ms||.001,w=r.series=l==1?th(e.series||[],q0,Z0,!1):zk(e.series||[null],Q0),T=r.axes=th(e.axes||[],W0,G0,!0),O=r.scales={},R=r.bands=e.bands||[];R.forEach(f=>{f.fill=xe(f.fill||null),f.dir=Pe(f.dir,-1)});const M=l==2?w[1].facets[0].scale:w[0].scale,L={axes:Dv,series:Rv},I=(e.drawOrder||["axes","series"]).map(f=>L[f]);function D(f){let m=O[f];if(m==null){let k=(e.scales||so)[f]||so;if(k.from!=null)D(k.from),O[f]=it({},O[k.from],k,{key:f});else{m=O[f]=it({},f==M?dv:Ck,k),m.key=f;let E=m.time,N=m.range,A=kr(N);if((f!=M||l==2&&!E)&&(A&&(N[0]==null||N[1]==null)&&(N={min:N[0]==null?N0:{mode:1,hard:N[0],soft:N[0]},max:N[1]==null?N0:{mode:1,hard:N[1],soft:N[1]}},A=!1),!A&&Aa(N))){let B=N;N=(W,Z,ie)=>Z==null?ui:ca(Z,ie,B)}m.range=xe(N||(E?Fk:f==M?m.distr==3?Bk:m.distr==4?$k:kv:m.distr==3?Sv:m.distr==4?Ev:Ik)),m.auto=xe(A?!1:m.auto),m.clamp=xe(m.clamp||Ek),m._min=m._max=null}}}D("x"),D("y"),l==1&&w.forEach(f=>{D(f.scale)}),T.forEach(f=>{D(f.scale)});for(let f in e.scales)D(f);const z=O[M],V=z.distr;let K,oe;z.ori==0?(en(c,G3),K=o,oe=s):(en(c,Y3),K=s,oe=o);const se={};for(let f in O){let m=O[f];(m.min!=null||m.max!=null)&&(se[f]={min:m.min,max:m.max},m.min=m.max=null)}const fe=e.tzDate||(f=>new Date(Nt(f/v))),ne=e.fmtDate||od,q=v==1?Qx(fe):Xx(fe),J=H0(fe,$0(v==1?Yx:Jx,ne)),G=U0(fe,V0(tk,ne)),re=[],Y=r.legend=it({},lk,e.legend),me=Y.show,X=Y.markers;Y.idxs=re,X.width=xe(X.width),X.dash=xe(X.dash),X.stroke=xe(X.stroke),X.fill=xe(X.fill);let pe,Le,Ue,Be=[],tt=[],Ct,st=!1,dn={};if(Y.live){const f=w[1]?w[1].values:null;st=f!=null,Ct=st?f(r,1,0):{_:0};for(let m in Ct)dn[m]=td}if(me)if(pe=Rn("table",ix,c),Ue=Rn("tbody",null,pe),Y.mount(r,pe),st){Le=Rn("thead",null,pe,Ue);let f=Rn("tr",null,Le);Rn("th",null,f);for(var Qn in Ct)Rn("th",g0,f).textContent=Qn}else en(pe,sx),Y.live&&en(pe,ox);const pn={show:!0},Zn={show:!1};function Cn(f,m){if(m==0&&(st||!Y.live||l==2))return ui;let k=[],E=Rn("tr",ax,Ue,Ue.childNodes[m]);en(E,f.class),f.show||en(E,Yr);let N=Rn("th",null,E);if(X.show){let W=mn(ux,N);if(m>0){let Z=X.width(r,m);Z&&(W.style.border=Z+"px "+X.dash(r,m)+" "+X.stroke(r,m)),W.style.background=X.fill(r,m)}}let A=mn(g0,N);A.textContent=f.label,m>0&&(X.show||(A.style.color=f.width>0?X.stroke(r,m):X.fill(r,m)),pt("click",N,W=>{if(de._lock)return;ut(W);let Z=w.indexOf(f);if((W.ctrlKey||W.metaKey)!=Y.isolate){let ie=w.some((U,le)=>le>0&&le!=Z&&U.show);w.forEach((U,le)=>{le>0&&In(le,ie?le==Z?pn:Zn:pn,!0,rt.setSeries)})}else In(Z,{show:!f.show},!0,rt.setSeries)},!1),pr&&pt(k0,N,W=>{de._lock||(ut(W),In(w.indexOf(f),_l,!0,rt.setSeries))},!1));for(var B in Ct){let W=Rn("td",cx,E);W.textContent="--",k.push(W)}return[E,k]}const hn=new Map;function pt(f,m,k,E=!0){const N=hn.get(m)||{},A=de.bind[f](r,m,k,E);A&&(nl(f,m,N[f]=A),hn.set(m,N))}function ue(f,m,k){const E=hn.get(m)||{};for(let N in E)(f==null||N==f)&&(Uc(N,m,E[N]),delete E[N]);f==null&&hn.delete(m)}let nt=0,Ft=0,ye=0,te=0,Oe=0,$e=0,h=0,S=0,C=0,j=0;r.bbox={};let F=!1,Q=!1,ae=!1,he=!1,at=!1,Qe=!1;function We(f,m,k){(k||f!=r.width||m!=r.height)&&ce(f,m),ki(!1),ae=!0,Q=!0,de.left>=0&&(he=Qe=!0),Hr()}function ce(f,m){r.width=nt=ye=f,r.height=Ft=te=m,Oe=$e=0,Fo(),Io();let k=r.bbox;h=k.left=Gr(Oe*Te,.5),S=k.top=Gr($e*Te,.5),C=k.width=Gr(ye*Te,.5),j=k.height=Gr(te*Te,.5)}const Tn=3;function Ha(){let f=!1,m=0;for(;!f;){m++;let k=Av(m),E=bv(m);f=m==Tn||k&&E,f||(ce(r.width,r.height),Q=!0)}}function gi({width:f,height:m}){We(f,m)}r.setSize=gi;function Fo(){let f=!1,m=!1,k=!1,E=!1;T.forEach((N,A)=>{if(N.show&&N._show){let{side:B,_size:W}=N,Z=B%2,ie=N.label!=null?N.labelSize:0,U=W+ie;U>0&&(Z?(ye-=U,B==3?(Oe+=U,E=!0):k=!0):(te-=U,B==0?($e+=U,f=!0):m=!0))}}),Fn[0]=f,Fn[1]=k,Fn[2]=m,Fn[3]=E,ye-=hr[1]+hr[3],Oe+=hr[3],te-=hr[2]+hr[0],$e+=hr[0]}function Io(){let f=Oe+ye,m=$e+te,k=Oe,E=$e;function N(A,B){switch(A){case 1:return f+=B,f-B;case 2:return m+=B,m-B;case 3:return k-=B,k+B;case 0:return E-=B,E+B}}T.forEach((A,B)=>{if(A.show&&A._show){let W=A.side;A._pos=N(W,A._size),A.label!=null&&(A._lpos=N(W,A.labelSize))}})}const de=r.cursor=it({},fk,{drag:{y:l==2}},e.cursor),ut=f=>{de.event=f};de.idxs=re,de._lock=!1;let Xt=de.points;Xt.show=xe(Xt.show),Xt.size=xe(Xt.size),Xt.stroke=xe(Xt.stroke),Xt.width=xe(Xt.width),Xt.fill=xe(Xt.fill);const Jn=r.focus=it({},e.focus||{alpha:.3},de.focus),pr=Jn.prox>=0;let ht=[null];function yi(f,m){if(m>0){let k=de.points.show(r,m);if(k)return en(k,lx),en(k,f.class),Cl(k,-10,-10,ye,te),x.insertBefore(k,ht[m]),k}}function $r(f,m){if(l==1||m>0){let k=l==1&&O[f.scale].time,E=f.value;f.value=k?D0(E)?U0(fe,V0(E,ne)):E||G:E||xk,f.label=f.label||(k?pk:dk)}if(m>0){f.width=f.width==null?1:f.width,f.paths=f.paths||bk||Ex,f.fillTo=xe(f.fillTo||Tk),f.pxAlign=+Pe(f.pxAlign,P),f.pxRound=X0(f.pxAlign),f.stroke=xe(f.stroke||null),f.fill=xe(f.fill||null),f._stroke=f._fill=f._paths=f._focus=null;let k=kk(xt(1,f.width),1),E=f.points=it({},{size:k,width:xt(1,k*.2),stroke:f.stroke,space:k*2,paths:Dk,_stroke:null,_fill:null},f.points);E.show=xe(E.show),E.filter=xe(E.filter),E.fill=xe(E.fill),E.stroke=xe(E.stroke),E.paths=xe(E.paths),E.pxAlign=f.pxAlign}if(me){let k=Cn(f,m);Be.splice(m,0,k[0]),tt.splice(m,0,k[1]),Y.values.push(null)}if(de.show){re.splice(m,0,null);let k=yi(f,m);k&&ht.splice(m,0,k)}Ot("addSeries",m)}function wi(f,m){m=m??w.length,f=l==1?Gc(f,m,q0,Z0):Gc(f,m,null,Q0),w.splice(m,0,f),$r(w[m],m)}r.addSeries=wi;function Bo(f){if(w.splice(f,1),me){Y.values.splice(f,1),tt.splice(f,1);let m=Be.splice(f,1)[0];ue(null,m.firstChild),m.remove()}de.show&&(re.splice(f,1),ht.length>1&&ht.splice(f,1)[0].remove()),Ot("delSeries",f)}r.delSeries=Bo;const Fn=[!1,!1,!1,!1];function Ov(f,m){if(f._show=f.show,f.show){let k=f.side%2,E=O[f.scale];E==null&&(f.scale=k?w[1].scale:M,E=O[f.scale]);let N=E.time;f.size=xe(f.size),f.space=xe(f.space),f.rotate=xe(f.rotate),kr(f.incrs)&&f.incrs.forEach(B=>{!ai.has(B)&&ai.set(B,G1(B))}),f.incrs=xe(f.incrs||(E.distr==2?Wx:N?v==1?Gx:Zx:qx)),f.splits=xe(f.splits||(N&&E.distr==1?q:E.distr==3?Wc:E.distr==4?vk:mk)),f.stroke=xe(f.stroke),f.grid.stroke=xe(f.grid.stroke),f.ticks.stroke=xe(f.ticks.stroke),f.border.stroke=xe(f.border.stroke);let A=f.values;f.values=kr(A)&&!kr(A[0])?xe(A):N?kr(A)?H0(fe,$0(A,ne)):D0(A)?ek(fe,A):A||J:A||hk,f.filter=xe(f.filter||(E.distr>=3&&E.log==10?wk:E.distr==3&&E.log==2?_k:q1)),f.font=nh(f.font),f.labelFont=nh(f.labelFont),f._size=f.size(r,null,m,0),f._space=f._rotate=f._incrs=f._found=f._splits=f._values=null,f._size>0&&(Fn[m]=!0,f._el=mn(ex,g))}}function _i(f,m,k,E){let[N,A,B,W]=k,Z=m%2,ie=0;return Z==0&&(W||A)&&(ie=m==0&&!N||m==2&&!B?Nt(W0.size/3):0),Z==1&&(N||B)&&(ie=m==1&&!A||m==3&&!W?Nt(G0.size/2):0),ie}const dd=r.padding=(e.padding||[_i,_i,_i,_i]).map(f=>xe(Pe(f,_i))),hr=r._padding=dd.map((f,m)=>f(r,m,Fn,0));let Tt,mt=null,vt=null;const $o=l==1?w[0].idxs:null;let Pn=null,Ho=!1;function pd(f,m){if(t=f==null?[]:rl(f,z0),l==2){Tt=0;for(let k=1;k=0,Qe=!0,Hr()}}r.setData=pd;function Va(){Ho=!0;let f,m;l==1&&(Tt>0?(mt=$o[0]=0,vt=$o[1]=Tt-1,f=t[0][mt],m=t[0][vt],V==2?(f=mt,m=vt):f==m&&(V==3?[f,m]=ja(f,f,z.log,!1):V==4?[f,m]=rd(f,f,z.log,!1):z.time?m=f+Nt(86400/v):[f,m]=ca(f,m,ld,!0))):(mt=$o[0]=f=null,vt=$o[1]=m=null)),yl(M,f,m)}let Vo,ml,Ua,Wa,qa,Ka,Ga,Ya,Qa,xi;function hd(f,m,k,E,N,A){f??(f=w0),k??(k=Y1),E??(E="butt"),N??(N=w0),A??(A="round"),f!=Vo&&(d.strokeStyle=Vo=f),N!=ml&&(d.fillStyle=ml=N),m!=Ua&&(d.lineWidth=Ua=m),A!=qa&&(d.lineJoin=qa=A),E!=Ka&&(d.lineCap=Ka=E),k!=Wa&&d.setLineDash(Wa=k)}function md(f,m,k,E){m!=ml&&(d.fillStyle=ml=m),f!=Ga&&(d.font=Ga=f),k!=Ya&&(d.textAlign=Ya=k),E!=Qa&&(d.textBaseline=Qa=E)}function Za(f,m,k,E,N=0){if(E.length>0&&f.auto(r,Ho)&&(m==null||m.min==null)){let A=Pe(mt,0),B=Pe(vt,E.length-1),W=k.min==null?f.distr==3?gx(E,A,B):vx(E,A,B,N):[k.min,k.max];f.min=nn(f.min,k.min=W[0]),f.max=xt(f.max,k.max=W[1])}}function Nv(){let f=rl(O,z0);for(let E in f){let N=f[E],A=se[E];if(A!=null&&A.min!=null)it(N,A),E==M&&ki(!0);else if(E!=M||l==2)if(Tt==0&&N.from==null){let B=N.range(r,null,null,E);N.min=B[0],N.max=B[1]}else N.min=ke,N.max=-ke}if(Tt>0){w.forEach((E,N)=>{if(l==1){let A=E.scale,B=f[A],W=se[A];if(N==0){let Z=B.range(r,B.min,B.max,A);B.min=Z[0],B.max=Z[1],mt=wr(B.min,t[0]),vt=wr(B.max,t[0]),vt-mt>1&&(t[0][mt]B.max&&vt--),E.min=Pn[mt],E.max=Pn[vt]}else E.show&&E.auto&&Za(B,W,E,t[N],E.sorted);E.idxs[0]=mt,E.idxs[1]=vt}else if(N>0&&E.show&&E.auto){let[A,B]=E.facets,W=A.scale,Z=B.scale,[ie,U]=t[N];Za(f[W],se[W],A,ie,A.sorted),Za(f[Z],se[Z],B,U,B.sorted),E.min=B.min,E.max=B.max}});for(let E in f){let N=f[E],A=se[E];if(N.from==null&&(A==null||A.min==null)){let B=N.range(r,N.min==ke?null:N.min,N.max==-ke?null:N.max,E);N.min=B[0],N.max=B[1]}}}for(let E in f){let N=f[E];if(N.from!=null){let A=f[N.from];if(A.min==null)N.min=N.max=null;else{let B=N.range(r,A.min,A.max,E);N.min=B[0],N.max=B[1]}}}let m={},k=!1;for(let E in f){let N=f[E],A=O[E];if(A.min!=N.min||A.max!=N.max){A.min=N.min,A.max=N.max;let B=A.distr;A._min=B==3?ir(A.min):B==4?Iu(A.min,A.asinh):A.min,A._max=B==3?ir(A.max):B==4?Iu(A.max,A.asinh):A.max,m[E]=k=!0}}if(k){w.forEach((E,N)=>{l==2?N>0&&m.y&&(E._paths=null):m[E.scale]&&(E._paths=null)});for(let E in m)ae=!0,Ot("setScale",E);de.show&&de.left>=0&&(he=Qe=!0)}for(let E in se)se[E]=null}function Mv(f){let m=j0(mt-1,0,Tt-1),k=j0(vt+1,0,Tt-1);for(;f[m]==null&&m>0;)m--;for(;f[k]==null&&k0&&(w.forEach((f,m)=>{if(m>0&&f.show&&f._paths==null){let k=l==2?[0,t[m][0].length-1]:Mv(t[m]);f._paths=f.paths(r,m,k[0],k[1])}}),w.forEach((f,m)=>{if(m>0&&f.show){xi!=f.alpha&&(d.globalAlpha=xi=f.alpha),vd(m,!1),f._paths&&gd(m,!1);{vd(m,!0);let k=f._paths?f._paths.gaps:null,E=f.points.show(r,m,mt,vt,k),N=f.points.filter(r,m,E,k);(E||N)&&(f.points._paths=f.points.paths(r,m,mt,vt,N),gd(m,!0))}xi!=1&&(d.globalAlpha=xi=1),Ot("drawSeries",m)}}))}function vd(f,m){let k=m?w[f].points:w[f];k._stroke=k.stroke(r,f),k._fill=k.fill(r,f)}function gd(f,m){let k=m?w[f].points:w[f],E=k._stroke,N=k._fill,{stroke:A,fill:B,clip:W,flags:Z}=k._paths,ie=null,U=je(k.width*Te,3),le=U%2/2;m&&N==null&&(N=U>0?"#fff":E);let ge=k.pxAlign==1&&le>0;if(ge&&d.translate(le,le),!m){let Ze=h-U/2,_e=S-U/2,Ce=C+U,Ee=j+U;ie=new Path2D,ie.rect(Ze,_e,Ce,Ee)}m?Ja(E,U,k.dash,k.cap,N,A,B,Z,W):Lv(f,E,U,k.dash,k.cap,N,A,B,Z,ie,W),ge&&d.translate(-le,-le)}function Lv(f,m,k,E,N,A,B,W,Z,ie,U){let le=!1;R.forEach((ge,Ze)=>{if(ge.series[0]==f){let _e=w[ge.series[1]],Ce=t[ge.series[1]],Ee=(_e._paths||so).band;kr(Ee)&&(Ee=ge.dir==1?Ee[0]:Ee[1]);let Me,qe=null;_e.show&&Ee&&wx(Ce,mt,vt)?(qe=ge.fill(r,Ze)||A,Me=_e._paths.clip):Ee=null,Ja(m,k,E,N,qe,B,W,Z,ie,U,Me,Ee),le=!0}}),le||Ja(m,k,E,N,A,B,W,Z,ie,U)}const yd=cl|da;function Ja(f,m,k,E,N,A,B,W,Z,ie,U,le){hd(f,m,k,E,N),(Z||ie||le)&&(d.save(),Z&&d.clip(Z),ie&&d.clip(ie)),le?(W&yd)==yd?(d.clip(le),U&&d.clip(U),Wo(N,B),Uo(f,A,m)):W&da?(Wo(N,B),d.clip(le),Uo(f,A,m)):W&cl&&(d.save(),d.clip(le),U&&d.clip(U),Wo(N,B),d.restore(),Uo(f,A,m)):(Wo(N,B),Uo(f,A,m)),(Z||ie||le)&&d.restore()}function Uo(f,m,k){k>0&&(m instanceof Map?m.forEach((E,N)=>{d.strokeStyle=Vo=N,d.stroke(E)}):m!=null&&f&&d.stroke(m))}function Wo(f,m){m instanceof Map?m.forEach((k,E)=>{d.fillStyle=ml=E,d.fill(k)}):m!=null&&f&&d.fill(m)}function jv(f,m,k,E){let N=T[f],A;if(E<=0)A=[0,0];else{let B=N._space=N.space(r,f,m,k,E),W=N._incrs=N.incrs(r,f,m,k,E,B);A=Hk(m,k,W,E,B)}return N._found=A}function Xa(f,m,k,E,N,A,B,W,Z,ie){let U=B%2/2;P==1&&d.translate(U,U),hd(W,B,Z,ie,W),d.beginPath();let le,ge,Ze,_e,Ce=N+(E==0||E==3?-A:A);k==0?(ge=N,_e=Ce):(le=N,Ze=Ce);for(let Ee=0;Ee{if(!k.show)return;let N=O[k.scale];if(N.min==null){k._show&&(m=!1,k._show=!1,ki(!1));return}else k._show||(m=!1,k._show=!0,ki(!1));let A=k.side,B=A%2,{min:W,max:Z}=N,[ie,U]=jv(E,W,Z,B==0?ye:te);if(U==0)return;let le=N.distr==2,ge=k._splits=k.splits(r,E,W,Z,ie,U,le),Ze=N.distr==2?ge.map(Me=>Pn[Me]):ge,_e=N.distr==2?Pn[ge[1]]-Pn[ge[0]]:ie,Ce=k._values=k.values(r,k.filter(r,Ze,E,U,_e),E,U,_e);k._rotate=A==2?k.rotate(r,Ce,E,U):0;let Ee=k._size;k._size=li(k.size(r,Ce,E,f)),Ee!=null&&k._size!=Ee&&(m=!1)}),m}function bv(f){let m=!0;return dd.forEach((k,E)=>{let N=k(r,E,Fn,f);N!=hr[E]&&(m=!1),hr[E]=N}),m}function Dv(){for(let f=0;fPn[Nn]):_e,Ee=U.distr==2?Pn[_e[1]]-Pn[_e[0]]:Z,Me=m.ticks,qe=m.border,Wt=Me.show?Nt(Me.size*Te):0,ze=m._rotate*-Ds/180,lt=y(m._pos*Te),jt=(Wt+Ze)*W,Xe=lt+jt;A=E==0?Xe:0,N=E==1?Xe:0;let Bt=m.font[0],On=m.align==1?El:m.align==2?zu:ze>0?El:ze<0?zu:E==0?"center":k==3?zu:El,gr=ze||E==1?"middle":k==2?Bi:y0;md(Bt,B,On,gr);let zd=m.font[1]*m.lineGap,Zo=_e.map(Nn=>y(u(Nn,U,le,ge))),Fd=m._values;for(let Nn=0;Nn{k>0&&(m._paths=null,f&&(l==1?(m.min=null,m.max=null):m.facets.forEach(E=>{E.min=null,E.max=null})))})}let eu=!1;function Hr(){eu||(jx(zv),eu=!0)}function zv(){F&&(Nv(),F=!1),ae&&(Ha(),ae=!1),Q&&(He(_,El,Oe),He(_,Bi,$e),He(_,qi,ye),He(_,Ki,te),He(x,El,Oe),He(x,Bi,$e),He(x,qi,ye),He(x,Ki,te),He(g,qi,nt),He(g,Ki,Ft),p.width=Nt(nt*Te),p.height=Nt(Ft*Te),T.forEach(({_el:f,_show:m,_size:k,_pos:E,side:N})=>{if(f!=null)if(m){let A=N===3||N===0?k:0,B=N%2==1;He(f,B?"left":"top",E-A),He(f,B?"width":"height",k),He(f,B?"top":"left",B?$e:Oe),He(f,B?"height":"width",B?te:ye),Vc(f,Yr)}else en(f,Yr)}),Vo=ml=Ua=qa=Ka=Ga=Ya=Qa=Wa=null,xi=1,Oi(!0),Ot("setSize"),Q=!1),nt>0&&Ft>0&&(d.clearRect(0,0,p.width,p.height),Ot("drawClear"),I.forEach(f=>f()),Ot("draw")),It.show&&at&&(Go(It),at=!1),de.show&&he&&(Vr(null,!0,!1),he=!1),Y.show&&Y.live&&Qe&&(lu(),Qe=!1),a||(a=!0,r.status=1,Ot("ready")),Ho=!1,eu=!1}r.redraw=(f,m)=>{ae=m||!1,f!==!1?yl(M,z.min,z.max):Hr()};function tu(f,m){let k=O[f];if(k.from==null){if(Tt==0){let E=k.range(r,m.min,m.max,f);m.min=E[0],m.max=E[1]}if(m.min>m.max){let E=m.min;m.min=m.max,m.max=E}if(Tt>1&&m.min!=null&&m.max!=null&&m.max-m.min<1e-16)return;f==M&&k.distr==2&&Tt>0&&(m.min=wr(m.min,t[0]),m.max=wr(m.max,t[0]),m.min==m.max&&m.max++),se[f]=m,F=!0,Hr()}}r.setScale=tu;let nu,ru,qo,Ko,wd,_d,vl,gl,xd,kd,be,De,mr=!1;const Pt=de.drag;let gt=Pt.x,yt=Pt.y;de.show&&(de.x&&(nu=mn(nx,x)),de.y&&(ru=mn(rx,x)),z.ori==0?(qo=nu,Ko=ru):(qo=ru,Ko=nu),be=de.left,De=de.top);const It=r.select=it({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),Si=It.show?mn(tx,It.over?x:_):null;function Go(f,m){if(It.show){for(let k in f)It[k]=f[k],k in Td&&He(Si,k,f[k]);m!==!1&&Ot("setSelect")}}r.setSelect=Go;function Fv(f,m){let k=w[f],E=me?Be[f]:null;k.show?E&&Vc(E,Yr):(E&&en(E,Yr),ht.length>1&&Cl(ht[f],-10,-10,ye,te))}function yl(f,m,k){tu(f,{min:m,max:k})}function In(f,m,k,E){m.focus!=null&&Vv(f),m.show!=null&&w.forEach((N,A)=>{A>0&&(f==A||f==null)&&(N.show=m.show,Fv(A,m.show),yl(l==2?N.facets[1].scale:N.scale,null,null),Hr())}),k!==!1&&Ot("setSeries",f,m),E&&Ni("setSeries",r,f,m)}r.setSeries=In;function Iv(f,m){it(R[f],m)}function Bv(f,m){f.fill=xe(f.fill||null),f.dir=Pe(f.dir,-1),m=m??R.length,R.splice(m,0,f)}function $v(f){f==null?R.length=0:R.splice(f,1)}r.addBand=Bv,r.setBand=Iv,r.delBand=$v;function Hv(f,m){w[f].alpha=m,de.show&&ht[f]&&(ht[f].style.opacity=m),me&&Be[f]&&(Be[f].style.opacity=m)}let wl,Ei,Ci;const _l={focus:!0};function Vv(f){if(f!=Ci){let m=f==null,k=Jn.alpha!=1;w.forEach((E,N)=>{let A=m||N==0||N==f;E._focus=m?null:A,k&&Hv(N,A?1:Jn.alpha)}),Ci=f,k&&Hr()}}me&&pr&&pt(S0,pe,f=>{de._lock||(ut(f),Ci!=null&&In(null,_l,!0,rt.setSeries))});function Bn(f,m,k){let E=O[m];k&&(f=f/Te-(E.ori==1?$e:Oe));let N=ye;E.ori==1&&(N=te,f=N-f),E.dir==-1&&(f=N-f);let A=E._min,B=E._max,W=f/N,Z=A+(B-A)*W,ie=E.distr;return ie==3?ii(10,Z):ie==4?xx(Z,E.asinh):Z}function Uv(f,m){let k=Bn(f,M,m);return wr(k,t[0],mt,vt)}r.valToIdx=f=>wr(f,t[0]),r.posToIdx=Uv,r.posToVal=Bn,r.valToPos=(f,m,k)=>O[m].ori==0?o(f,O[m],k?C:ye,k?h:0):s(f,O[m],k?j:te,k?S:0);function Wv(f){f(r),Hr()}r.batch=Wv,r.setCursor=(f,m,k)=>{be=f.left,De=f.top,Vr(null,m,k)};function Sd(f,m){He(Si,El,It.left=f),He(Si,qi,It.width=m)}function Ed(f,m){He(Si,Bi,It.top=f),He(Si,Ki,It.height=m)}let Ti=z.ori==0?Sd:Ed,Pi=z.ori==1?Sd:Ed;function qv(){if(me&&Y.live)for(let f=l==2?1:0;f{re[E]=k}):Tx(f.idx)||re.fill(f.idx),Y.idx=re[0]);for(let k=0;k0||l==1&&!st)&&Kv(k,re[k]);me&&Y.live&&qv(),Qe=!1,m!==!1&&Ot("setLegend")}r.setLegend=lu;function Kv(f,m){let k=w[f],E=f==0&&V==2?Pn:t[f],N;st?N=k.values(r,f,m)??dn:(N=k.value(r,m==null?null:E[m],f,m),N=N==null?dn:{_:N}),Y.values[f]=N}function Vr(f,m,k){xd=be,kd=De,[be,De]=de.move(r,be,De),de.show&&(qo&&Cl(qo,Nt(be),0,ye,te),Ko&&Cl(Ko,0,Nt(De),ye,te));let E,N=mt>vt;wl=ke;let A=z.ori==0?ye:te,B=z.ori==1?ye:te;if(be<0||Tt==0||N){E=null;for(let W=0;W0&&ht.length>1&&Cl(ht[W],-10,-10,ye,te);pr&&In(null,_l,!0,f==null&&rt.setSeries),Y.live&&(re.fill(E),Qe=!0)}else{let W,Z,ie;l==1&&(W=z.ori==0?be:De,Z=Bn(W,M),E=wr(Z,t[0],mt,vt),ie=K(t[0][E],z,A,0));for(let U=l==2?1:0;U0&&le.show){let Me=Ce==null?-10:si(oe(Ce,l==1?O[le.scale]:O[le.facets[1].scale],B,0),1);if(pr&&Me>=0&&l==1){let ze=_t(Me-De);if(ze=0?1:-1,On=Xe>=0?1:-1;On==Bt&&(On==1?lt==1?Ce>=Xe:Ce<=Xe:lt==1?Ce<=Xe:Ce>=Xe)&&(wl=ze,Ei=U)}else wl=ze,Ei=U}}let qe,Wt;if(z.ori==0?(qe=Ee,Wt=Me):(qe=Me,Wt=Ee),Qe&&ht.length>1){hx(ht[U],de.points.fill(r,U),de.points.stroke(r,U));let ze,lt,jt,Xe,Bt=!0,On=de.points.bbox;if(On!=null){Bt=!1;let gr=On(r,U);jt=gr.left,Xe=gr.top,ze=gr.width,lt=gr.height}else jt=qe,Xe=Wt,ze=lt=de.points.size(r,U);mx(ht[U],ze,lt,Bt),Cl(ht[U],jt,Xe,ye,te)}}}}if(de.idx=E,de.left=be,de.top=De,Qe&&(Y.idx=E,lu()),It.show&&mr)if(f!=null){let[W,Z]=rt.scales,[ie,U]=rt.match,[le,ge]=f.cursor.sync.scales,Ze=f.cursor.drag;if(gt=Ze._x,yt=Ze._y,gt||yt){let{left:_e,top:Ce,width:Ee,height:Me}=f.select,qe=f.scales[W].ori,Wt=f.posToVal,ze,lt,jt,Xe,Bt,On=W!=null&&ie(W,le),gr=Z!=null&&U(Z,ge);On&>?(qe==0?(ze=_e,lt=Ee):(ze=Ce,lt=Me),jt=O[W],Xe=K(Wt(ze,le),jt,A,0),Bt=K(Wt(ze+lt,le),jt,A,0),Ti(nn(Xe,Bt),_t(Bt-Xe))):Ti(0,A),gr&&yt?(qe==1?(ze=_e,lt=Ee):(ze=Ce,lt=Me),jt=O[Z],Xe=oe(Wt(ze,ge),jt,B,0),Bt=oe(Wt(ze+lt,ge),jt,B,0),Pi(nn(Xe,Bt),_t(Bt-Xe))):Pi(0,B)}else Yo()}else{let W=_t(xd-wd),Z=_t(kd-_d);if(z.ori==1){let ge=W;W=Z,Z=ge}gt=Pt.x&&W>=Pt.dist,yt=Pt.y&&Z>=Pt.dist;let ie=Pt.uni;ie!=null?gt&&yt&&(gt=W>=ie,yt=Z>=ie,!gt&&!yt&&(Z>W?yt=!0:gt=!0)):Pt.x&&Pt.y&&(gt||yt)&&(gt=yt=!0);let U,le;gt&&(z.ori==0?(U=vl,le=be):(U=gl,le=De),Ti(nn(U,le),_t(le-U)),yt||Pi(0,B)),yt&&(z.ori==1?(U=vl,le=be):(U=gl,le=De),Pi(nn(U,le),_t(le-U)),gt||Ti(0,A)),!gt&&!yt&&(Ti(0,0),Pi(0,0))}if(Pt._x=gt,Pt._y=yt,f==null){if(k){if(Dd!=null){let[W,Z]=rt.scales;rt.values[0]=W!=null?Bn(z.ori==0?be:De,W):null,rt.values[1]=Z!=null?Bn(z.ori==1?be:De,Z):null}Ni(_0,r,be,De,ye,te,E)}if(pr){let W=k&&rt.setSeries,Z=Jn.prox;Ci==null?wl<=Z&&In(Ei,_l,!0,W):wl>Z?In(null,_l,!0,W):Ei!=Ci&&In(Ei,_l,!0,W)}}m!==!1&&Ot("setCursor")}let vr=null;Object.defineProperty(r,"rect",{get(){return vr==null&&Oi(!1),vr}});function Oi(f=!1){f?vr=null:(vr=x.getBoundingClientRect(),Ot("syncRect",vr))}function Cd(f,m,k,E,N,A,B){de._lock||mr&&f!=null&&f.movementX==0&&f.movementY==0||(iu(f,m,k,E,N,A,B,!1,f!=null),f!=null?Vr(null,!0,!0):Vr(m,!0,!1))}function iu(f,m,k,E,N,A,B,W,Z){if(vr==null&&Oi(!1),ut(f),f!=null)k=f.clientX-vr.left,E=f.clientY-vr.top;else{if(k<0||E<0){be=-10,De=-10;return}let[ie,U]=rt.scales,le=m.cursor.sync,[ge,Ze]=le.values,[_e,Ce]=le.scales,[Ee,Me]=rt.match,qe=m.axes[0].side%2==1,Wt=z.ori==0?ye:te,ze=z.ori==1?ye:te,lt=qe?A:N,jt=qe?N:A,Xe=qe?E:k,Bt=qe?k:E;if(_e!=null?k=Ee(ie,_e)?u(ge,O[ie],Wt,0):-10:k=Wt*(Xe/lt),Ce!=null?E=Me(U,Ce)?u(Ze,O[U],ze,0):-10:E=ze*(Bt/jt),z.ori==1){let On=k;k=E,E=On}}Z&&((k<=1||k>=ye-1)&&(k=Gr(k,ye)),(E<=1||E>=te-1)&&(E=Gr(E,te))),W?(wd=k,_d=E,[vl,gl]=de.move(r,k,E)):(be=k,De=E)}const Td={width:0,height:0,left:0,top:0};function Yo(){Go(Td,!1)}let Pd,Od,Nd,Md;function Rd(f,m,k,E,N,A,B){mr=!0,gt=yt=Pt._x=Pt._y=!1,iu(f,m,k,E,N,A,B,!0,!1),f!=null&&(pt(Fu,$c,Ld,!1),Ni(x0,r,vl,gl,ye,te,null));let{left:W,top:Z,width:ie,height:U}=It;Pd=W,Od=Z,Nd=ie,Md=U,Yo()}function Ld(f,m,k,E,N,A,B){mr=Pt._x=Pt._y=!1,iu(f,m,k,E,N,A,B,!1,!0);let{left:W,top:Z,width:ie,height:U}=It,le=ie>0||U>0,ge=Pd!=W||Od!=Z||Nd!=ie||Md!=U;if(le&&ge&&Go(It),Pt.setScale&&le&&ge){let Ze=W,_e=ie,Ce=Z,Ee=U;if(z.ori==1&&(Ze=Z,_e=U,Ce=W,Ee=ie),gt&&yl(M,Bn(Ze,M),Bn(Ze+_e,M)),yt)for(let Me in O){let qe=O[Me];Me!=M&&qe.from==null&&qe.min!=ke&&yl(Me,Bn(Ce+Ee,Me),Bn(Ce,Me))}Yo()}else de.lock&&(de._lock=!de._lock,de._lock||Vr(null,!0,!1));f!=null&&(ue(Fu,$c),Ni(Fu,r,be,De,ye,te,null))}function Gv(f,m,k,E,N,A,B){if(de._lock)return;ut(f);let W=mr;if(mr){let Z=!0,ie=!0,U=10,le,ge;z.ori==0?(le=gt,ge=yt):(le=yt,ge=gt),le&&ge&&(Z=be<=U||be>=ye-U,ie=De<=U||De>=te-U),le&&Z&&(be=be{let N=rt.match[2];k=N(r,m,k),k!=-1&&In(k,E,!0,!1)},de.show&&(pt(x0,x,Rd),pt(_0,x,Cd),pt(k0,x,f=>{ut(f),Oi(!1)}),pt(S0,x,Gv),pt(E0,x,jd),Kc.add(r),r.syncRect=Oi);const Qo=r.hooks=e.hooks||{};function Ot(f,m,k){f in Qo&&Qo[f].forEach(E=>{E.call(null,r,m,k)})}(e.plugins||[]).forEach(f=>{for(let m in f.hooks)Qo[m]=(Qo[m]||[]).concat(f.hooks[m])});const bd=(f,m,k)=>k,rt=it({key:null,setSeries:!1,filters:{pub:A0,sub:A0},scales:[M,w[1]?w[1].scale:null],match:[b0,b0,bd],values:[null,null]},de.sync);rt.match.length==2&&rt.match.push(bd),de.sync=rt;const Dd=rt.key,ou=pv(Dd);function Ni(f,m,k,E,N,A,B){rt.filters.pub(f,m,k,E,N,A,B)&&ou.pub(f,m,k,E,N,A,B)}ou.sub(r);function Yv(f,m,k,E,N,A,B){rt.filters.sub(f,m,k,E,N,A,B)&&xl[f](null,m,k,E,N,A,B)}r.pub=Yv;function Qv(){ou.unsub(r),Kc.delete(r),hn.clear(),Uc(ua,Wl,Ad),c.remove(),pe==null||pe.remove(),Ot("destroy")}r.destroy=Qv;function su(){Ot("init",e,t),pd(t||e.data,!1),se[M]?tu(M,se[M]):Va(),at=It.show,he=Qe=!0,We(e.width,e.height)}return w.forEach($r),T.forEach(Ov),n?n instanceof HTMLElement?(n.appendChild(c),su()):n(r,su):su(),r}Et.assign=it;Et.fmtNum=id;Et.rangeNum=ca;Et.rangeLog=ja;Et.rangeAsinh=rd;Et.orient=hl;Et.pxRatio=Te;Et.join=Lx;Et.fmtDate=od,Et.tzDate=Vx;Et.sync=pv;{Et.addGap=Pk,Et.clipGaps=Da;let e=Et.paths={points:wv};e.linear=xv,e.stepped=Mk,e.bars=Rk,e.spline=jk}const Uk=Object.freeze(Object.defineProperty({__proto__:null,default:Et},Symbol.toStringTag,{value:"Module"}));function Wk(e,t){let[n,r]=W3(e,{formatSubMilliseconds:!0,compact:t}).split(" ").slice(0,2);return n.match(/[0-9]+s/)&&!t?(n=n.replace("s","."),r?r=r.substring(0,1):r="0",n+r+"s"):(r&&(n+=" "+r),n)}function rh(e){return $3(e)}var qk=Et.fmtDate("{YYYY}-{MM}-{DD} {HH}:{mm}:{ss}");function Ba(e,t,n=!1){switch(e){case Kr.duration:return Wk(t,n);case Kr.bytes:return rh(t);case Kr.bps:return rh(t)+"/s";case Kr.counter:return m0(t).format("0.[0]a");case Kr.rps:return m0(t).format("0.[00]a")+"/s";case Kr.timestamp:return qk(new Date(t*1e3));default:return isNaN(t)||t==null?"0":t.toFixed(2)}}function Kk(e){return function(t,n,r,l){return l==null?"--":n==null?"":Ba(e,n)}}var Cv=class{constructor(e,t,n){ve(this,"samples");ve(this,"series");const r=t.series.map(l=>l.query);this.samples=e.samples.select(r),this.samples.empty||(this.series=this.buildSeries(t.series,n))}get empty(){return this.samples.empty}get data(){const e=new Array;for(let t=0;t0&&(i=e[r].legend),n.push({stroke:t[l].stroke,fill:t[l].fill,value:Kk(this.samples[r].unit),points:{show:!1},label:i,scale:this.samples[r].unit})}return n}};function Gk(e){let t;function n(i){t=document.createElement("div");const o={display:"none",position:"absolute",padding:"0.2rem",border:"1px solid #7b65fa",zIndex:"10",pointerEvents:"none",margin:"0.5rem",fontSize:"smaller"};Object.assign(t.style,o),i.over.appendChild(t),i.over.onmouseleave=()=>{t.style.display="none"},i.over.onmouseenter=()=>{t.style.display="block"}}function r(i){l(i)}function l(i){const o=i.over.getBoundingClientRect();t.style.background=e;const s=Yk(i);if(!s){t.style.display="none";return}t.innerHTML=s;const{left:u,top:a}=i.cursor,c=u??0,p=a??0;t.innerHTML=s,ci.over.focus()}}}function Yk(e){const{idx:t}=e.cursor;if(t==null)return"";let n;e.legend.values?n=e.legend.values[0]._:n="";let r=``;for(let l=1;l`}return r+="
${n}
${Qk(i,o)}${s}${u}
",r}function Qk(e,t){return``}var zs=(e=>(e.chart="chart",e.stat="stat",e.summary="summary",e))(zs||{}),Zk=class{constructor(e,t){ve(this,"view");ve(this,"metrics");this.metrics=t.metrics;const n=e.series.map(r=>r.query);this.view=t.summary.select(n)}get empty(){return this.view.empty}get cols(){return this.view.aggregates.length}get header(){return new Array("metric",...this.view.aggregates.map(e=>e))}get body(){const e=new Array;for(let t=0;tthis.format(this.view[t],r))),e.push(n)}return e}format(e,t){var n;const r=this.metrics.unit(((n=e.metric)==null?void 0:n.name)??"",t);return Ba(r,e.values[t],!0)}};function Jk(e,t){for(let n=0;nr.query)).empty}function tS(e,t){return t.summary.select(e.series.map(r=>r.query)).empty}var nS=bo({conditions:void 0,styles:{borderRadius:{values:{true:{defaultClass:"_1c9nzq10"},false:{defaultClass:"_1c9nzq11"}}}}}),rS="_1c9nzq14",lS="_1c9nzq12",iS="_1c9nzq13";const oS=({children:e,title:t,isOpen:n,onClick:r})=>b.jsxs("div",{children:[b.jsxs(St,{as:"button",align:"center","aria-expanded":n,className:Yn(lS,nS({borderRadius:String(n)})),width:"100%",onClick:r,children:[n?b.jsx(Kn,{name:"chevron-up"}):b.jsx(Kn,{name:"chevron-down"}),b.jsx("h2",{className:iS,children:t})]}),n&&b.jsx("div",{className:rS,children:e})]});var sS=bo({conditions:{defaultCondition:"xs",conditionNames:["xs","sm","md","lg","xl","xxl"],responsiveArray:void 0},styles:{gridColumn:{values:{1:{conditions:{xs:"ag5hlo6",sm:"ag5hlo7",md:"ag5hlo8",lg:"ag5hlo9",xl:"ag5hloa",xxl:"ag5hlob"},defaultClass:"ag5hlo6"},2:{conditions:{xs:"ag5hloc",sm:"ag5hlod",md:"ag5hloe",lg:"ag5hlof",xl:"ag5hlog",xxl:"ag5hloh"},defaultClass:"ag5hloc"},3:{conditions:{xs:"ag5hloi",sm:"ag5hloj",md:"ag5hlok",lg:"ag5hlol",xl:"ag5hlom",xxl:"ag5hlon"},defaultClass:"ag5hloi"},4:{conditions:{xs:"ag5hloo",sm:"ag5hlop",md:"ag5hloq",lg:"ag5hlor",xl:"ag5hlos",xxl:"ag5hlot"},defaultClass:"ag5hloo"},5:{conditions:{xs:"ag5hlou",sm:"ag5hlov",md:"ag5hlow",lg:"ag5hlox",xl:"ag5hloy",xxl:"ag5hloz"},defaultClass:"ag5hlou"},6:{conditions:{xs:"ag5hlo10",sm:"ag5hlo11",md:"ag5hlo12",lg:"ag5hlo13",xl:"ag5hlo14",xxl:"ag5hlo15"},defaultClass:"ag5hlo10"},7:{conditions:{xs:"ag5hlo16",sm:"ag5hlo17",md:"ag5hlo18",lg:"ag5hlo19",xl:"ag5hlo1a",xxl:"ag5hlo1b"},defaultClass:"ag5hlo16"},8:{conditions:{xs:"ag5hlo1c",sm:"ag5hlo1d",md:"ag5hlo1e",lg:"ag5hlo1f",xl:"ag5hlo1g",xxl:"ag5hlo1h"},defaultClass:"ag5hlo1c"},9:{conditions:{xs:"ag5hlo1i",sm:"ag5hlo1j",md:"ag5hlo1k",lg:"ag5hlo1l",xl:"ag5hlo1m",xxl:"ag5hlo1n"},defaultClass:"ag5hlo1i"},10:{conditions:{xs:"ag5hlo1o",sm:"ag5hlo1p",md:"ag5hlo1q",lg:"ag5hlo1r",xl:"ag5hlo1s",xxl:"ag5hlo1t"},defaultClass:"ag5hlo1o"},11:{conditions:{xs:"ag5hlo1u",sm:"ag5hlo1v",md:"ag5hlo1w",lg:"ag5hlo1x",xl:"ag5hlo1y",xxl:"ag5hlo1z"},defaultClass:"ag5hlo1u"},12:{conditions:{xs:"ag5hlo20",sm:"ag5hlo21",md:"ag5hlo22",lg:"ag5hlo23",xl:"ag5hlo24",xxl:"ag5hlo25"},defaultClass:"ag5hlo20"}}}}}),lh={root:"ag5hlo1",variants:bo({conditions:void 0,styles:{gap:{values:{1:{defaultClass:"ag5hlo2"},2:{defaultClass:"ag5hlo3"},3:{defaultClass:"ag5hlo4"},4:{defaultClass:"ag5hlo5"}}}}})};function aS({as:e="div",gap:t=3,children:n,className:r,...l},i){return b.jsx(e,{ref:i,className:Yn(r,lh.root,lh.variants({gap:t})),...l,children:n})}function uS({children:e,as:t="div",className:n,xs:r=12,sm:l,md:i,lg:o,xl:s,xxl:u,...a},c){return b.jsx(t,{ref:c,className:Yn(n,sS({gridColumn:{xs:r,sm:l,md:i,lg:o,xl:s,xxl:u}})),...a,children:e})}const $a=Object.assign(H.forwardRef(aS),{Column:H.forwardRef(uS)});var Tv={exports:{}};const cS=eg(Uk);(function(e,t){(function(r,l){e.exports=l(H,cS)})(self,(n,r)=>(()=>{var l={"./common/index.ts":(u,a,c)=>{c.r(a),c.d(a,{dataMatch:()=>g,optionsUpdateState:()=>d});var p=function(_,x){var P={};for(var y in _)Object.prototype.hasOwnProperty.call(_,y)&&x.indexOf(y)<0&&(P[y]=_[y]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,y=Object.getOwnPropertySymbols(_);v{u.exports=n},uplot:u=>{u.exports=r}},i={};function o(u){var a=i[u];if(a!==void 0)return a.exports;var c=i[u]={exports:{}};return l[u](c,c.exports,o),c.exports}o.n=u=>{var a=u&&u.__esModule?()=>u.default:()=>u;return o.d(a,{a}),a},o.d=(u,a)=>{for(var c in a)o.o(a,c)&&!o.o(u,c)&&Object.defineProperty(u,c,{enumerable:!0,get:a[c]})},o.o=(u,a)=>Object.prototype.hasOwnProperty.call(u,a),o.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var s={};return(()=>{/*!*******************************!*\ !*** ./react/uplot-react.tsx ***! - \*******************************/o.r(s),o.d(s,{default:()=>g});var u=o("react"),a=o.n(u),c=o("uplot"),p=o.n(c),d=o("./common/index.ts");function g(_){var x=_.options,P=_.data,y=_.target,v=_.onDelete,w=v===void 0?function(){}:v,T=_.onCreate,O=T===void 0?function(){}:T,R=_.resetScales,M=R===void 0?!0:R,L=(0,u.useRef)(null),I=(0,u.useRef)(null);function b(K){K&&(w(K),K.destroy(),L.current=null)}function z(){var K=new(p())(x,P,y||I.current);L.current=K,O(K)}(0,u.useEffect)(function(){return z(),function(){b(L.current)}},[]);var H=(0,u.useRef)({options:x,data:P,target:y}).current;return(0,u.useEffect)(function(){if(H.options!==x){var K=(0,d.optionsUpdateState)(H.options,x);!L.current||K==="create"?(b(L.current),z()):K==="update"&&L.current.setSize({width:x.width,height:x.height})}return H.data!==P&&(L.current?(0,d.dataMatch)(H.data,P)||(M?L.current.setData(P,!0):(L.current.setData(P,!1),L.current.redraw())):z()),H.target!==y&&(b(L.current),z()),function(){H.options=x,H.data=P,H.target=y}},[x,P,y,M]),y?null:a().createElement("div",{ref:I})}})(),s=s.default,s})())})(Cv);var aS=Cv.exports;const Tv=pa(aS);var uS="_14dhllh0",cS="_14dhllh1",fS="_14dhllh3",dS="_14dhllh2";const pS=1,hS=70,mS=250,vS=Et.sync("chart"),gS=[[3600*24*365,"0",null,null,null,null,null,null,1],[3600*24*28,"0",null,null,null,null,null,null,1],[3600*24,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1],[3600,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1],[60,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1],[1,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1],[.001,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1]],yS=e=>({tooltip:e==="dark"?Jp[900]:Au.white,grid:e==="dark"?Jp[700]:P1[300],axes:e==="dark"?Au.white:Au.black}),wS=(e,t)=>t===0?gS:(n,r)=>r.map(l=>Ba(e,l)),_S=(e,t)=>(n,r)=>{const l={stroke:e.axes,grid:{stroke:e.grid,width:1},ticks:{stroke:e.grid},values:wS(n,r),scale:n,space:n==="timestamp"?60:40};return r===2&&t>2&&(l.side=pS),r!==0&&(l.size=hS),l},xS=({hooks:e,plot:t,theme:n,width:r})=>{const l=yS(n),i=t.samples.units,o=i.map(_S(l,i.length));return{class:dS,width:r,height:mS,hooks:e,cursor:{sync:{key:vS.key}},legend:{live:!1},series:t.series,axes:o,plugins:[Wk(l.tooltip)]}},kS=sw(["show"]),SS=(e=[],t=[])=>e.map((n,r)=>kS(n,t[r])),ES=({plot:e,theme:t,width:n})=>{const[r,l]=U.useState(e.series),i={...e,series:SS(e.series,r)};return xS({hooks:{setSeries:[s=>l(s.series)]},plot:i,theme:t,width:n})};function CS({panel:e,container:t}){const n=pl(),{theme:r}=pi(),[l,{width:i}]=E1(),o=new Ev(n,e,O1(r)),s=!o.empty&&o.data[0].length>1,u=s?o.data:[],a=ES({plot:o,theme:r,width:i}),c=t?U.Fragment:La;function p(d){const g=r=="dark"?"#60606080":"#d0d0d080",_=d.root.querySelector(".u-select");_&&(_.style.background=g)}return D.jsx($a.Column,{xs:12,lg:e.fullWidth?12:6,children:D.jsx(c,{children:D.jsxs("div",{ref:l,children:[D.jsxs(St,{align:"center",gap:1,children:[D.jsx("h3",{className:fS,children:e.title}),D.jsx(Bc,{title:e.summary,children:D.jsx(Kn,{name:"info",width:"20px",height:"20px"})})]}),D.jsxs("div",{className:uS,children:[!s&&D.jsx("p",{className:cS,children:"no data"}),D.jsx(Tv,{options:a,data:u,onCreate:p})]})]})})})}var TS="ova0r31",PS="ova0r32",OS="ova0r30";const NS=32,MS=({digest:e,panel:t,plot:n,width:r})=>{const l=t.series[0].query,i=e.samples.query(l);let o;return i&&Array.isArray(i.values)&&i.values.length!==0&&(o=Ba(i.unit,Number(i.values.slice(-1)),!0)),{class:OS,width:r,height:NS,title:o,series:n.series,axes:[{show:!1},{show:!1}],legend:{show:!1},cursor:{show:!1}}};function RS({panel:e}){const t=pl(),{theme:n}=pi(),[r,{width:l}]=E1(),i=new Ev(t,e,O1(n));if(i.empty)return null;const o=MS({digest:t,panel:e,plot:i,width:l});return D.jsx($a.Column,{xs:6,md:4,lg:2,children:D.jsx(La,{className:TS,children:D.jsxs(St,{direction:"column",justify:"end",gap:0,height:"100%",children:[D.jsx("p",{className:PS,children:e.title}),D.jsx("div",{ref:r,children:D.jsx(Tv,{options:o,data:i.data})})]})})})}var LS="_12owwid0",jS="_12owwid4",AS="_12owwid1",bS={thead:"_12owwid2",tbody:"_12owwid3"};function DS({children:e,...t}){return D.jsx("table",{className:LS,...t,children:e})}function zS({children:e,...t}){return D.jsx("thead",{...t,children:e})}function FS({children:e,...t}){return D.jsx("tbody",{...t,children:e})}function IS({children:e,...t}){return D.jsx("th",{className:AS,...t,children:e})}function BS({children:e,isHead:t=!1,...n}){return D.jsx("tr",{className:bS[t?"thead":"tbody"],...n,children:e})}function $S({children:e,...t}){return D.jsx("td",{className:jS,...t,children:e})}function HS({children:e,...t}){return D.jsx("tfoot",{...t,children:e})}const Ur=Object.assign(DS,{Body:FS,Cell:$S,Footer:HS,Head:zS,Header:IS,Row:BS});var VS="_57i9sh1",US="_57i9sh0";var WS="_1jb2mvv0",qS="_1jb2mvv2",KS="_1jb2mvv1";function GS({children:e,className:t,title:n,...r},l){return D.jsxs(La,{ref:l,className:Yn(WS,t),...r,children:[n&&D.jsx("h3",{className:KS,children:n}),D.jsx("div",{className:qS,children:e})]})}const YS=U.forwardRef(GS);function QS({panel:e}){const t=pl(),n=new Gk(e,t);if(n.empty)return D.jsx("div",{});const r=n.view.aggregates.length,l=r>6?12:r>1?6:3,i=r>6||r>1?12:6;return D.jsx($a.Column,{xs:12,md:i,lg:l,children:D.jsx(YS,{className:US,title:e.title,children:D.jsx("div",{className:VS,children:D.jsxs(Ur,{children:[D.jsx(Ur.Head,{children:D.jsx(Ur.Row,{isHead:!0,children:n.header.map((o,s)=>D.jsx(Ur.Header,{align:s==0?"left":"right",children:o},e.id+"header"+o))})}),D.jsx(Ur.Body,{children:n.body.map((o,s)=>D.jsx(Ur.Row,{children:o.map((u,a)=>D.jsx(Ur.Cell,{align:a==0?"left":"right",children:u},e.id+"_value_"+s+"_"+a))},e.id+"row"+s))})]})})},e.id)})}function ZS({container:e,panel:t}){switch(t.kind){case zs.chart:return D.jsx(CS,{panel:t,container:e});case zs.stat:return D.jsx(RS,{panel:t});case zs.summary:return D.jsx(QS,{panel:t});default:return null}}var JS="_1ls5syl0";function ih({container:e,section:t}){return D.jsx($a,{gap:e?4:3,children:t.panels.map(n=>D.jsx(ZS,{panel:n,container:e},n.id))})}function XS({section:e}){const[t,n]=U.useState(!0),r=pl();return Yk(e,r)?null:e.title?D.jsx(St,{direction:"column",children:D.jsx(rS,{title:e.title,isOpen:t,onClick:()=>n(!t),children:D.jsx(ih,{container:!0,section:e})})}):D.jsxs(St,{direction:"column",children:[e.summary&&D.jsx("p",{className:JS,children:e.summary}),D.jsx(ih,{section:e})]})}var e5="_1t22owt0",t5="_1t22owt1";function n5(){const e=pl(),{themeClassName:t}=pi(),[n,r]=U.useState(0),l=!!e.samples.length;return D.jsxs(St,{className:`${t} ${e5}`,direction:"column",gap:0,children:[D.jsx(O3,{config:e.config,tab:n,onTabChange:r}),D.jsx(St,{as:"main",className:t5,direction:"column",grow:l?0:1,children:D.jsx(L3,{isLoading:!l,message:"Loading...",children:e.config.tabs.map((i,o)=>D.jsx(r5,{active:n,idx:o,children:i.sections.map(s=>D.jsx(XS,{section:s},s.id))},i.id))})})]})}function r5({children:e,active:t,idx:n}){return t!==n?null:D.jsx(St,{direction:"column",gap:3,children:e})}const l5=new URLSearchParams(window.location.search).get("endpoint")||"http://localhost:5665/",i5=document.getElementById("root");Vu.createRoot(i5).render(D.jsx(L2,{endpoint:l5+"events",children:D.jsx(F2,{children:D.jsx(n5,{})})})); + \*******************************/o.r(s),o.d(s,{default:()=>g});var u=o("react"),a=o.n(u),c=o("uplot"),p=o.n(c),d=o("./common/index.ts");function g(_){var x=_.options,P=_.data,y=_.target,v=_.onDelete,w=v===void 0?function(){}:v,T=_.onCreate,O=T===void 0?function(){}:T,R=_.resetScales,M=R===void 0?!0:R,L=(0,u.useRef)(null),I=(0,u.useRef)(null);function D(K){K&&(w(K),K.destroy(),L.current=null)}function z(){var K=new(p())(x,P,y||I.current);L.current=K,O(K)}(0,u.useEffect)(function(){return z(),function(){D(L.current)}},[]);var V=(0,u.useRef)({options:x,data:P,target:y}).current;return(0,u.useEffect)(function(){if(V.options!==x){var K=(0,d.optionsUpdateState)(V.options,x);!L.current||K==="create"?(D(L.current),z()):K==="update"&&L.current.setSize({width:x.width,height:x.height})}return V.data!==P&&(L.current?(0,d.dataMatch)(V.data,P)||(M?L.current.setData(P,!0):(L.current.setData(P,!1),L.current.redraw())):z()),V.target!==y&&(D(L.current),z()),function(){V.options=x,V.data=P,V.target=y}},[x,P,y,M]),y?null:a().createElement("div",{ref:I})}})(),s=s.default,s})())})(Tv);var fS=Tv.exports;const Pv=pa(fS);var dS="_14dhllh0",pS="_14dhllh1",hS="_14dhllh3",mS="_14dhllh2";const vS=1,gS=70,yS=250,wS=Et.sync("chart"),_S=[[3600*24*365,"0",null,null,null,null,null,null,1],[3600*24*28,"0",null,null,null,null,null,null,1],[3600*24,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1],[3600,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1],[60,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1],[1,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1],[.001,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1]],xS=e=>({tooltip:e==="dark"?Jp[900]:Au.white,grid:e==="dark"?Jp[700]:O1[300],axes:e==="dark"?Au.white:Au.black}),kS=(e,t)=>t===0?_S:(n,r)=>r.map(l=>Ba(e,l)),SS=(e,t)=>(n,r)=>{const l={stroke:e.axes,grid:{stroke:e.grid,width:1},ticks:{stroke:e.grid},values:kS(n,r),scale:n,space:n==="timestamp"?60:40};return r===2&&t>2&&(l.side=vS),r!==0&&(l.size=gS),l},ES=({height:e=yS,hooks:t,plot:n,scales:r,theme:l,width:i})=>{const o=xS(l),s=n.samples.units,u=s.map(SS(o,s.length));return{class:mS,width:i,height:e,hooks:t,cursor:{sync:{key:wS.key}},legend:{live:!1},scales:r,series:n.series,axes:u,plugins:[Gk(o.tooltip)]}},CS=cw(["show"]),TS=(e=[],t=[])=>e.map((n,r)=>CS(n,t[r])),PS=e=>(e==null?void 0:e.type)==="dblclick",OS=e=>e!=null&&!e.ctrlKey&&!e.metaKey,NS=e=>{const[t,n]=H.useState(e);return[TS(e,t),i=>{n(i.series)}]},MS=({plot:e,theme:t,width:n})=>{const{timeRange:r,setTimeRange:l}=$2(),[i,o]=NS(e.series),s={...e,series:i},u={timestamp:{min:r==null?void 0:r.from,max:r==null?void 0:r.to}};return ES({hooks:{setCursor:[d=>{PS(d.cursor.event)&&l(void 0)}],setSelect:[d=>{if(!OS(d.cursor.event))return;const g=d.posToVal(d.select.left,"timestamp"),_=d.posToVal(d.select.left+d.select.width,"timestamp");l({from:g,to:_})}],setSeries:[o]},plot:s,scales:u,theme:t,width:n})};function RS({panel:e,container:t}){const n=pl(),{theme:r}=pi(),[l,{width:i}]=E1(),o=new Cv(n,e,N1(r)),s=!o.empty&&o.data[0].length>1,u=s?o.data:[],a=MS({plot:o,theme:r,width:i}),c=t?H.Fragment:La;function p(d){const g=r=="dark"?"#60606080":"#d0d0d080",_=d.root.querySelector(".u-select");_&&(_.style.background=g)}return b.jsx($a.Column,{xs:12,lg:e.fullWidth?12:6,children:b.jsx(c,{children:b.jsxs("div",{ref:l,children:[b.jsxs(St,{align:"center",gap:1,children:[b.jsx("h3",{className:hS,children:e.title}),b.jsx(Bc,{title:e.summary,children:b.jsx(Kn,{name:"info",width:"20px",height:"20px"})})]}),b.jsxs("div",{className:dS,children:[!s&&b.jsx("p",{className:pS,children:"no data"}),b.jsx(Pv,{options:a,data:u,onCreate:p})]})]})})})}var LS="ova0r31",jS="ova0r32",AS="ova0r30";const bS=32,DS=({digest:e,panel:t,plot:n,width:r})=>{const l=t.series[0].query,i=e.samples.query(l);let o;return i&&Array.isArray(i.values)&&i.values.length!==0&&(o=Ba(i.unit,Number(i.values.slice(-1)),!0)),{class:AS,width:r,height:bS,title:o,series:n.series,axes:[{show:!1},{show:!1}],legend:{show:!1},cursor:{show:!1}}};function zS({panel:e}){const t=pl(),{theme:n}=pi(),[r,{width:l}]=E1(),i=new Cv(t,e,N1(n));if(i.empty)return null;const o=DS({digest:t,panel:e,plot:i,width:l});return b.jsx($a.Column,{xs:6,md:4,lg:2,children:b.jsx(La,{className:LS,children:b.jsxs(St,{direction:"column",justify:"end",gap:0,height:"100%",children:[b.jsx("p",{className:jS,children:e.title}),b.jsx("div",{ref:r,children:b.jsx(Pv,{options:o,data:i.data})})]})})})}var FS="_12owwid0",IS="_12owwid4",BS="_12owwid1",$S={thead:"_12owwid2",tbody:"_12owwid3"};function HS({children:e,...t}){return b.jsx("table",{className:FS,...t,children:e})}function VS({children:e,...t}){return b.jsx("thead",{...t,children:e})}function US({children:e,...t}){return b.jsx("tbody",{...t,children:e})}function WS({children:e,...t}){return b.jsx("th",{className:BS,...t,children:e})}function qS({children:e,isHead:t=!1,...n}){return b.jsx("tr",{className:$S[t?"thead":"tbody"],...n,children:e})}function KS({children:e,...t}){return b.jsx("td",{className:IS,...t,children:e})}function GS({children:e,...t}){return b.jsx("tfoot",{...t,children:e})}const Ur=Object.assign(HS,{Body:US,Cell:KS,Footer:GS,Head:VS,Header:WS,Row:qS});var YS="_57i9sh1",QS="_57i9sh0";var ZS="_1jb2mvv0",JS="_1jb2mvv2",XS="_1jb2mvv1";function e5({children:e,className:t,title:n,...r},l){return b.jsxs(La,{ref:l,className:Yn(ZS,t),...r,children:[n&&b.jsx("h3",{className:XS,children:n}),b.jsx("div",{className:JS,children:e})]})}const t5=H.forwardRef(e5);function n5({panel:e}){const t=pl(),n=new Zk(e,t);if(n.empty)return b.jsx("div",{});const r=n.view.aggregates.length,l=r>6?12:r>1?6:3,i=r>6||r>1?12:6;return b.jsx($a.Column,{xs:12,md:i,lg:l,children:b.jsx(t5,{className:QS,title:e.title,children:b.jsx("div",{className:YS,children:b.jsxs(Ur,{children:[b.jsx(Ur.Head,{children:b.jsx(Ur.Row,{isHead:!0,children:n.header.map((o,s)=>b.jsx(Ur.Header,{align:s==0?"left":"right",children:o},e.id+"header"+o))})}),b.jsx(Ur.Body,{children:n.body.map((o,s)=>b.jsx(Ur.Row,{children:o.map((u,a)=>b.jsx(Ur.Cell,{align:a==0?"left":"right",children:u},e.id+"_value_"+s+"_"+a))},e.id+"row"+s))})]})})},e.id)})}function r5({container:e,panel:t}){switch(t.kind){case zs.chart:return b.jsx(RS,{panel:t,container:e});case zs.stat:return b.jsx(zS,{panel:t});case zs.summary:return b.jsx(n5,{panel:t});default:return null}}var l5="_1ls5syl0";function ih({container:e,section:t}){return b.jsx($a,{gap:e?4:3,children:t.panels.map(n=>b.jsx(r5,{panel:n,container:e},n.id))})}function i5({section:e}){const[t,n]=H.useState(!0),r=pl();return Jk(e,r)?null:e.title?b.jsx(St,{direction:"column",children:b.jsx(oS,{title:e.title,isOpen:t,onClick:()=>n(!t),children:b.jsx(ih,{container:!0,section:e})})}):b.jsxs(St,{direction:"column",children:[e.summary&&b.jsx("p",{className:l5,children:e.summary}),b.jsx(ih,{section:e})]})}var o5="_1t22owt0",s5="_1t22owt1";function a5(){const e=pl(),{themeClassName:t}=pi(),[n,r]=H.useState(0),l=!!e.samples.length;return b.jsxs(St,{className:`${t} ${o5}`,direction:"column",gap:0,children:[b.jsx(R3,{config:e.config,tab:n,onTabChange:r}),b.jsx(St,{as:"main",className:s5,direction:"column",grow:l?0:1,children:b.jsx(b3,{isLoading:!l,message:"Loading...",children:e.config.tabs.map((i,o)=>b.jsx(u5,{active:n,idx:o,children:i.sections.map(s=>b.jsx(i5,{section:s},s.id))},i.id))})})]})}function u5({children:e,active:t,idx:n}){return t!==n?null:b.jsx(St,{direction:"column",gap:3,children:e})}const c5=new URLSearchParams(window.location.search).get("endpoint")||"http://localhost:5665/",f5=document.getElementById("root");Vu.createRoot(f5).render(b.jsx(j2,{endpoint:c5+"events",children:b.jsx(I2,{children:b.jsx(B2,{children:b.jsx(a5,{})})})})); diff --git a/dashboard/assets/packages/ui/dist/index.html b/dashboard/assets/packages/ui/dist/index.html index 7b82295..6baaad0 100644 --- a/dashboard/assets/packages/ui/dist/index.html +++ b/dashboard/assets/packages/ui/dist/index.html @@ -11,7 +11,7 @@ k6 dashboard - + From fb61912b14d742ddf2d74bf2d26150831004d113 Mon Sep 17 00:00:00 2001 From: Ben Simpson Date: Fri, 9 Feb 2024 11:44:41 +0000 Subject: [PATCH 3/8] [feat] Add time range reset button - Add time range reset button component - Add footer component - Add rewind-time icon - Update button styles --- dashboard/assets/packages/ui/src/App/App.tsx | 2 ++ .../ui/src/assets/icons/rewind_time.svg | 5 +++ .../ui/src/components/Button/Button.css.ts | 31 +++++++++++++++---- .../ui/src/components/Button/Button.tsx | 2 +- .../ui/src/components/Footer/Footer.css.ts | 12 +++++++ .../ui/src/components/Footer/Footer.tsx | 23 ++++++++++++++ .../ui/src/components/Header/Header.tsx | 8 ++++- .../packages/ui/src/components/Icon/Icon.tsx | 2 ++ .../src/components/TimeRangeResetButton.tsx | 23 ++++++++++++++ .../packages/ui/src/theme/colors.css.ts | 2 +- .../assets/packages/ui/src/theme/theme.css.ts | 21 +++++++++++++ 11 files changed, 122 insertions(+), 9 deletions(-) create mode 100644 dashboard/assets/packages/ui/src/assets/icons/rewind_time.svg create mode 100644 dashboard/assets/packages/ui/src/components/Footer/Footer.css.ts create mode 100644 dashboard/assets/packages/ui/src/components/Footer/Footer.tsx create mode 100644 dashboard/assets/packages/ui/src/components/TimeRangeResetButton.tsx diff --git a/dashboard/assets/packages/ui/src/App/App.tsx b/dashboard/assets/packages/ui/src/App/App.tsx index 275269b..682da72 100644 --- a/dashboard/assets/packages/ui/src/App/App.tsx +++ b/dashboard/assets/packages/ui/src/App/App.tsx @@ -8,6 +8,7 @@ import "theme/global.css" import { useDigest } from "store/digest" import { useTheme } from "store/theme" import { Flex } from "components/Flex" +import { Footer } from "components/Footer/Footer" import { Header } from "components/Header" import { LoadingContainer } from "components/LoadingContainer" import { Section } from "components/Section/Section" @@ -35,6 +36,7 @@ export default function App() { ))} +