File: //opt/netdata/usr/share/netdata/web/v3/7326.7ebb651488a2b24044bd.chunk.js
/*! For license information please see 7326.7ebb651488a2b24044bd.chunk.js.LICENSE.txt */
!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};t.SENTRY_RELEASE={id:"8922de3783e88f1cd90ca2031b9812542c125fed"};var e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="0db6eeaf-1867-4661-8658-cf6da5133a0b",t._sentryDebugIdIdentifier="sentry-dbid-0db6eeaf-1867-4661-8658-cf6da5133a0b")}catch(t){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[7326],{62055(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;m(r(96540));var o=m(r(882)),i=r(78904),a=g(r(99010)),s=m(r(23630)),l=g(r(24652)),u=r(22332),c=r(96380),f=m(r(33640)),d=r(99506),h=r(74848),p=["children","fractionDigits"],b=["children"];function g(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return(g=function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s})(t,e)}function m(t){return t&&t.__esModule?t:{default:t}}function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach(function(e){x(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function x(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return j(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function O(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var _=(0,o.default)(i.Flex).attrs({position:"relative","data-testid":"chartPopover-dimension",padding:[1,0]}).withConfig({displayName:"dimension__GridRow",componentId:"sc-wluvip-0"})(["display:contents;"]),S=(0,o.default)(a.ColorBar).attrs({position:"absolute",top:0,left:0,backgroundOpacity:.4,round:.5}).withConfig({displayName:"dimension__ColorBackground",componentId:"sc-wluvip-1"})([""]),P={ANOMALY_RATE:"arp",default:"value"},M=function(t){var e=t.children,r=t.fractionDigits,n=void 0===r?0:r,o=O(t,p),a=w(e.toString().split("."),2),s=a[0],u=a[1];return(0,h.jsxs)(i.Flex,{alignItems:"center",justifyContent:"end",padding:[0,.5],children:[(0,h.jsx)(l.Value,v(v({},o),{},{textAlign:"right",children:s})),"undefined"!==typeof u&&(0,h.jsx)(l.Value,v(v({},o),{},{children:"."})),(0,h.jsx)(l.Value,v(v({as:i.Flex,flex:!1,width:1.8*n},o),{},{textAlign:"left",children:u}))]})},k=function(t){var e=t.children,r=O(t,b);return(0,h.jsx)(i.Flex,{gap:1,justifyContent:"end",children:Object.keys(e).map(function(t){return(0,h.jsx)(i.Flex,{border:{size:"1px",side:"all",color:e[t]},round:!0,flex:!1,padding:[0,.5],children:(0,h.jsx)(f.default,{content:c.labels[t]||t,children:(0,h.jsx)(l.Value,v(v({},r),{},{color:e[t],children:t}))})},t)})})};e.default=function(t){var e=t.id,r=t.strong,n=t.rowFlavour,o=t.fullCols,c=(0,u.useVisibleDimensionId)(e),f=(0,u.useChart)().getAttribute("unitsConversionFractionDigits");return(0,h.jsxs)(_,{opacity:c?null:"weak",children:[(0,h.jsxs)(i.Flex,{alignItems:"center",gap:1,position:"relative",overflow:"hidden",children:[(0,h.jsx)(S,{id:e,valueKey:P[n]||P.default,height:"100%",children:(0,h.jsx)(a.default,{id:e})}),(0,h.jsx)(s.default,{padding:[.5,1.5],flex:!0,id:e,strong:r,fontSize:"1.1em"})]}),(0,h.jsx)(l.default,{id:e,strong:r,visible:c,Component:M,fractionDigits:f,color:n===d.rowFlavours.default?"text":"textLite",fontSize:"1.1em"}),o&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(l.default,{id:e,strong:r,visible:c,valueKey:"arp",Component:M,fractionDigits:2,color:n===d.rowFlavours.ANOMALY_RATE?"anomalyTextFocus":"anomalyText",fontSize:"1.1em"}),(0,h.jsx)(l.default,{textAlign:"right",id:e,strong:r,visible:c,valueKey:"pa",Component:k,color:n===d.rowFlavours.ANNOTATIONS?"text":"textLite",fontSize:"1.1em"})]})]})}},99506(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.rowFlavours=e.default=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=f(r(882)),a=r(22332),s=r(78904),l=f(r(75010)),u=f(r(62055)),c=r(74848);function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var p=i.default.div.withConfig({displayName:"dimensions__Grid",componentId:"sc-x7v8hd-0"})(["display:grid;width:100%;grid-template-columns:",";gap:",";align-items:center;"],function(t){return"full"===t.cols?"3fr 1fr 1fr 1fr":"5fr 2fr"},function(t){return t.gap||0}),b=[null,null],g=function(t){var e=Math.round((t-70)/18);return e<2?2:e},m=function(t){return g(t)/2},y=e.rowFlavours={ANOMALY_RATE:"ANOMALY_RATE",ANNOTATIONS:"ANNOTATIONS",default:"VALUE"},v={ANOMALY_RATE:"anomalyDesc",ANNOTATIONS:"annotationsDesc",default:"valueDesc"},x=function(t){var e=t.height,r=(0,a.useChart)(),n=d((0,a.useAttributeValue)("hoverX")||b,2),i=n[0],f=n[1],h=(0,a.usePayload)().data,x=(0,o.useMemo)(function(){var t=r.getClosestRow(i)||h.length-1,n=r.onHoverSortDimensions(t,v[f]||r.getAttribute("dimensionsSort",v.default))||[];r.getAttribute("selectedDimensions").length>0&&(n=n.filter(function(t){return r.isDimensionVisible(t)}));var o=n.findIndex(function(t){return t===f}),a=n.length,s=Math.floor(function(t,e,r){return t<g(r)||e<m(r)?0:e>t-m(r)?e-(m(r)+(t-e)):e-m(r)}(a,o,e)),l=Math.ceil(function(t,e,r){return t<g(r)?t:e<m(r)?e+m(r)+(m(r)-e):e>t-m(r)?t:e+m(r)}(a,o,e));return[s,l,a,n.slice(s,l)]},[r,f,i,h,e]),w=d(x,4),j=w[0],O=w[1],_=w[2],S=w[3],P=y[f]||y.default,M=(0,a.useAttributeValue)("cols");return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.TextNano,{fontSize:"1em",color:"textLite",children:j>0?"\u2191".concat(j," more values"):(0,c.jsx)(c.Fragment,{children:"\xa0"})}),(0,c.jsxs)(p,{gap:"2px",column:!0,cols:M,children:[(0,c.jsx)(s.TextMicro,{fontSize:"1em",strong:!0,children:"Dimension"}),(0,c.jsxs)(s.TextMicro,{fontSize:"1em",color:P===y.default?"text":"textLite",textAlign:"right",children:["Value"," ",(0,c.jsx)(l.default,{visible:!0,strong:P===y.default,color:P===y.default?"text":"textLite",fontSize:"1em"})]}),"full"===M&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.TextMicro,{fontSize:"1em",strong:P===y.ANOMALY_RATE,color:P===y.ANOMALY_RATE?"text":"textLite",textAlign:"right",children:"Anomaly%"}),(0,c.jsx)(s.TextMicro,{fontSize:"1em",strong:P===y.ANNOTATIONS,color:P===y.ANNOTATIONS?"text":"textLite",textAlign:"right",children:"Info"})]}),S.map(function(t){return(0,c.jsx)(u.default,{id:t,strong:f===t,rowFlavour:P,fullCols:"full"===M},t)})]}),(0,c.jsx)(s.TextNano,{color:"textLite",fontSize:"1em",children:O<_?"\u2193".concat(_-O," more values"):(0,c.jsx)(c.Fragment,{children:"\xa0"})})]})};e.default=(0,o.memo)(x)},74487(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}e.Ay=void 0;f(r(96540));var o=f(r(74113)),i=r(22332),a=f(r(10534)),s=r(89380),l=f(r(99506)),u=r(74848),c=["uiName","ref"];function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach(function(e){p(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function p(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=function(t){var e=t.uiName,r=t.ref,n=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,c),a=(0,i.useOnResize)(e).height;return(0,u.jsx)(s.ChartWrapper,{ref:r,children:(0,u.jsx)(o.default,h(h({uiName:e,column:!0,gap:.5,position:"relative"},n),{},{children:(0,u.jsx)(l.default,{height:a})}))})};e.Ay=(0,a.default)(b,{tile:!0})},74113(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=r(78904),a=r(22332),s=r(74848),l=["uiName"];function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e.default=function(t){var e=t.uiName,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,l),n=(0,a.useChart)(),f=(0,o.useRef)();return(0,o.useLayoutEffect)(function(){return n.getUI(e).mount(f.current),function(){return n.getUI(e)&&n.getUI(e).unmount()}},[]),(0,s.jsx)(i.Flex,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach(function(e){c(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({"data-testid":"chartContent",ref:f,height:"100%",width:"100%",overflow:"hidden"},r))}},89031(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=r(882))&&o.__esModule?o:{default:o},a=r(78904),s=["height","width"];function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function u(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=(0,i.default)(a.Flex).attrs(function(t){var e=t.height,r=void 0===e?"100%":e,n=t.width,o=void 0===n?"100%":n,i=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,s);return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(e){u(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({"data-testid":"chart","data-type":"chart",column:!0,position:"relative",round:!0,border:{color:"mainChartBorder",side:"all"},background:"mainChartBg",height:"string"===typeof r?r:"".concat(r,"px"),width:"string"===typeof o?o:"".concat(o,"px")},i)}).withConfig({displayName:"container__Container",componentId:"sc-sbp2x3-0"})([""]);e.default=c},95662(t,e,r){"use strict";e.Ay=void 0;f(r(96540));var n=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=d(t)&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a}(t,e)}(r(882)),o=r(78904),i=f(r(74113)),a=r(22332),s=f(r(10534)),l=r(89380),u=r(74848),c=["uiName","ref"];function f(t){return t&&t.__esModule?t:{default:t}}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(e){b(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function b(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=d(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==d(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var g=(0,n.default)(o.Flex).withConfig({displayName:"d3pie__StatsContainer",componentId:"sc-7pf92d-0"})(["font-size:",";"],function(t){return t.fontSize}),m=(0,n.keyframes)(["from{opacity:0.2;}to{opacity:0.6;}"]),y=(0,n.default)(o.Flex).attrs(function(t){return p({background:"panelBg",round:"100%",width:"100%",height:"100%"},t)}).withConfig({displayName:"d3pie__Skeleton",componentId:"sc-7pf92d-1"})(["animation:"," 1.6s ease-in infinite;"],m),v=function(t){var e=t.uiName,r=t.ref,n=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,c),o=(0,a.useAttributeValue)("loaded"),s=(0,a.useOnResize)(e),f=s.width,d=s.height,h=f<d?f:d;return(0,u.jsx)(l.ChartWrapper,p(p({alignItems:"center",justifyContent:"center",column:!0,ref:r},n),{},{children:o?(0,u.jsx)(g,{position:"relative",width:"100%",height:"100%",fontSize:"".concat(h/15,"px"),children:(0,u.jsx)(i.default,{uiName:e})}):(0,u.jsx)(y,{})}))};e.Ay=(0,s.default)(v,{tile:!0})},85546(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;s(r(96540));var n=r(22332),o=s(r(44597)),i=s(r(15321)),a=r(74848);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(){var t=(0,n.useAttributeValue)("contextScope");return(0,a.jsx)(o.default,{title:"Plugin and chart context",color:"key","data-testid":"chartDetails-context",children:(0,a.jsx)(i.default,{title:"Context",children:t.join(", ")})})}},90276(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;s(r(96540));var n=r(78904),o=r(22332),i=s(r(44597)),a=r(74848);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(){var t=(0,o.useTitle)(),e=(0,o.useAttributeValue)("info"),r=(0,o.useAttributeValue)("sectionInfo"),s=(0,o.useChart)(),l=function(t){var e=t.target.hash,r=void 0===e?"":e;r.startsWith("#menu")&&(t.preventDefault(),s.sdk.trigger("goToLink",s,r.substr(1)))};return(0,a.jsxs)(i.default,{title:t,color:"key","data-testid":"cartDetails-description",children:[(0,a.jsx)(n.TextSmall,{color:"textDescription",dangerouslySetInnerHTML:{__html:r},onClick:l}),(0,a.jsx)(n.TextSmall,{color:"textDescription",dangerouslySetInnerHTML:{__html:e},onClick:l})]})}},93693(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;f(r(96540));var n=f(r(882)),o=r(78904),i=r(22332),a=f(r(85546)),s=f(r(760)),l=f(r(90276)),u=f(r(87890)),c=r(74848);function f(t){return t&&t.__esModule?t:{default:t}}var d=(0,n.default)(o.Flex).attrs({column:!0,padding:[3,2],gap:3,overflow:{vertical:"auto"},width:"100%",height:"100%"}).withConfig({displayName:"details__Container",componentId:"sc-etnkd0-0"})([""]);e.default=function(){var t=(0,i.useAttributeValue)("nodeName");return(0,c.jsxs)(d,{"data-testid":"chartDetails",children:[(0,c.jsx)(l.default,{}),t&&(0,c.jsx)(s.default,{}),(0,c.jsx)(a.default,{}),(0,c.jsx)(u.default,{})]})}},15321(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;(n=r(96540))&&n.__esModule;var n,o=r(78904),i=r(74848);e.default=function(t){var e=t.title,r=t.children;return(0,i.jsxs)(o.Flex,{gap:2,children:[(0,i.jsx)(o.TextSmall,{color:"textDescription",children:e}),(0,i.jsx)(o.Flex,{as:o.TextSmall,background:"elementBackground",children:r})]})}},44597(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;(o=r(96540))&&o.__esModule;var o,i=r(78904),a=r(74848),s=["icon","title","children"];function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(e){c(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function c(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e.default=function(t){var e=t.icon,r=t.title,n=t.children,o=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,s);return(0,a.jsxs)(i.Flex,u(u({gap:4},o),{},{children:[e,(0,a.jsxs)(i.Flex,{column:!0,gap:1,flex:"grow",basis:0,children:[(0,a.jsx)(i.Text,{strong:!0,color:"key",children:r}),n&&(0,a.jsx)(i.Flex,{column:!0,gap:1,children:n})]})]}))}},760(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;s(r(96540));var n=r(78904),o=r(22332),i=s(r(44597)),a=r(74848);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(){var t=(0,o.useAttributeValue)("nodeName");return(0,a.jsx)(i.default,{title:"Source",color:"key","data-testid":"chartDetails-source",children:(0,a.jsx)(n.TextSmall,{color:"textDescription",children:t})})}},87890(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;s(r(96540));var n=r(22332),o=s(r(44597)),i=s(r(15321)),a=r(74848);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(){var t=(0,n.useUnitSign)({withoutConversion:!0,long:!0});return(0,a.jsx)(o.default,{title:"Units",color:"key","data-testid":"cartDetails-units",children:(0,a.jsx)(i.default,{title:"Raw data units",children:t})})}},85184(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculateStats=e.calculatePercentageChange=e.calculateComparisons=void 0;var n=r(32770);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(e){s(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e.calculateStats=function(t){var e,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null===t||void 0===t||null===(e=t.data)||void 0===e||!e.length)return null;var i=t.data,s=t.viewUpdateEvery,l=void 0===s?1:s,u=o?i.filter(function(t){var e=t[0],r=1e3*o[0],n=1e3*o[1];return e>=r&&e<=n}):i;if(!u.length)return null;var c=u.reduce(function(t,e){var r=e.slice(1).filter(function(t){return null!==t&&!isNaN(t)&&isFinite(t)});return r.length&&t.push(r.reduce(function(t,e){return t+Math.abs(e)},0)),t},[]);if(!c.length)return null;var f=(null===(r=u[0])||void 0===r?void 0:r.length)-1||0;return a(a({},(0,n.calculateAllStats)(c,c.length,l)),{},{points:u.length,dimensions:f})};var l=e.calculatePercentageChange=function(t,e){if(null==t||null==e)return null;if(0===e)return{value:0,direction:"neutral",formatted:"0.0%"};var r=(t-e)/Math.abs(e)*100;return{value:Math.abs(r),direction:r?r>0?"up":"down":"neutral",formatted:"".concat(Math.abs(r).toFixed(1),"%")}};e.calculateComparisons=function(t){var e=t.find(function(t){return t.isBase});return null!==e&&void 0!==e&&e.stats?t.map(function(t){return t.isBase||!t.stats?t:a(a({},t),{},{changes:{min:l(t.stats.min,e.stats.min),avg:l(t.stats.avg,e.stats.avg),max:l(t.stats.max,e.stats.max),median:l(t.stats.median,e.stats.median),stddev:l(t.stats.stddev,e.stats.stddev),p95:l(t.stats.p95,e.stats.p95),range:l(t.stats.range,e.stats.range),volume:l(t.stats.volume,e.stats.volume)}})}):t}},64437(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;(n=r(96540))&&n.__esModule;var n,o=r(78904),i=r(74848);e.default=function(t){var e=t.change;t.tab;if(!e)return null;var r="neutral"===e.direction?"stale":"up"===e.direction?"secondaryColorAI":"warningText",n="neutral"===e.direction?"=":"up"===e.direction?"\u2191":"\u2193";return(0,i.jsx)(o.Flex,{alignItems:"center",gap:.5,children:(0,i.jsxs)(o.TextMicro,{color:r,whiteSpace:"nowrap",children:[e.formatted," ",n]})})}},73954(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=r(78904),a=r(22332),s=r(74848);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}e.default=function(t){var e=t.onSubmit,r=t.onCancel,n=t.initialValues,u=function(t){var e=t||{},r=e.label,n=void 0===r?"":r,o=e.offsetSeconds,i=void 0===o?0:o,a=Math.floor(i/86400),s=Math.floor(i%86400/3600);return{label:n,days:a?a.toString():"",hours:s?s.toString():""}}(n),c=(0,a.useAttributeValue)("locale"),f=l((0,o.useState)(u.label),2),d=f[0],h=f[1],p=l((0,o.useState)(u.days),2),b=p[0],g=p[1],m=l((0,o.useState)(u.hours),2),y=m[0],v=m[1];return(0,s.jsxs)(i.Flex,{column:!0,gap:2,padding:[3],border:"all",round:!0,width:{min:"200px"},background:"neutral",children:[(0,s.jsx)(i.TextSmall,{strong:!0,children:"Add Custom Period"}),(0,s.jsxs)(i.Flex,{column:!0,gap:1,children:[(0,s.jsx)(i.TextMicro,{children:"Label"}),(0,s.jsx)("input",{type:"text",value:d,onChange:function(t){return h(t.target.value)},placeholder:"e.g. 3 days ago",style:{padding:"4px",fontSize:"12px",border:"1px solid #ddd",borderRadius:"4px"}})]}),(0,s.jsxs)(i.Flex,{gap:2,children:[(0,s.jsxs)(i.Flex,{column:!0,gap:1,flex:1,children:[(0,s.jsx)(i.TextMicro,{children:"Days"}),(0,s.jsx)("input",{type:"number",value:b,onChange:function(t){return g(t.target.value)},min:"0",style:{padding:"4px",fontSize:"12px",border:"1px solid #ddd",borderRadius:"4px"}})]}),(0,s.jsxs)(i.Flex,{column:!0,gap:1,flex:1,children:[(0,s.jsx)(i.TextMicro,{children:"Hours"}),(0,s.jsx)("input",{type:"number",value:y,onChange:function(t){return v(t.target.value)},min:"0",max:"23",style:{padding:"4px",fontSize:"12px",border:"1px solid #ddd",borderRadius:"4px"}})]})]}),(0,s.jsxs)(i.Flex,{gap:2,children:[(0,s.jsx)(i.Button,{tiny:!0,label:n?"Update":"Add",onClick:function(){var t=parseInt(b)||0,r=parseInt(y)||0,o=24*t*60*60+60*r*60;if(!(o<=0)){var i=d.trim()||function(t,e,r){var n=new Intl.RelativeTimeFormat(r||"en",{numeric:"always"});return t>0&&0===e?n.format(-t,"day"):e>0&&0===t?n.format(-e,"hour"):t>0&&e>0?"".concat(n.format(-t,"day")," and ").concat(n.format(-e,"hour")):""}(t,r,c);if(i){var a={id:(null===n||void 0===n?void 0:n.id)||"custom_".concat(Date.now()),label:i,offsetSeconds:o};e(a)}}}}),(0,s.jsx)(i.Button,{tiny:!0,label:"Cancel",onClick:r})]})]})}},95139(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.getCurrentTimeRange=e.getComparisonPeriods=e.getChartAttributes=e.fetchComparisonData=void 0;var o,i=r(21666),a=(o=r(17399))&&o.__esModule?o:{default:o},s=["after","before","comparePeriods","compareLoading","compareError","compareData"];function l(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return u(c,"_invoke",function(r,n,o){var i,s,l,u=0,c=o||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return i=e,s=0,l=t,d.n=r,a}};function h(r,n){for(s=r,l=n,e=0;!f&&u&&!o&&e<c.length;e++){var o,i=c[e],h=d.p,p=i[2];r>3?(o=p===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=r<2&&h<i[1])?(s=0,d.v=n,d.n=i[1]):h<p&&(o=r<3||i[0]>n||n>p)&&(i[4]=r,i[5]=n,d.n=p,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),s=c,l=p;(e=s<2?t:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),h(s,l)):d.n=l:d.v=l);try{if(u=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(f=d.n<0)?l:r.call(n,d))!==a)break}catch(e){i=t,s=1,l=e}finally{u=1}}return{value:e,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function f(){}e=Object.getPrototypeOf;var d=[][n]?e(e([][n]())):(u(e={},n,function(){return this}),e),h=f.prototype=s.prototype=Object.create(d);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,u(t,o,"GeneratorFunction")),t.prototype=Object.create(h),t}return c.prototype=f,u(h,"constructor",f),u(f,"constructor",c),c.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(h),u(h,o,"Generator"),u(h,n,function(){return this}),u(h,"toString",function(){return"[object Generator]"}),(l=function(){return{w:i,m:p}})()}function u(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}u=function(t,e,r,n){function i(e,r){u(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},u(t,e,r,n)}function c(t,e,r,n,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,o)}function f(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,s,"next",t)}function s(t){c(i,n,o,a,s,"throw",t)}a(void 0)})}}function d(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function b(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach(function(e){g(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function g(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var m=e.getCurrentTimeRange=function(t){var e=t.getAttributes(),r=e.after,n=e.before,o=Math.floor(Date.now()/1e3);return{after:r<0?o+r:r,before:n<=0?o:n}},y=(e.getChartAttributes=function(t){var e=t.getAttributes(),r=(e.after,e.before,e.comparePeriods,e.compareLoading,e.compareError,e.compareData,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,s));return r},e.getComparisonPeriods=function(t){var e=t.after,r=t.before,n={id:"selected",label:"Selected timeframe",after:e,before:r,isBase:!0},o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map(function(t){return b(b({},t),{},{after:e-t.offsetSeconds,before:r-t.offsetSeconds})});return[n].concat(d(o))});e.fetchComparisonData=function(){var t=f(l().m(function t(e){var r,n,o,s,u,c;return l().w(function(t){for(;;)switch(t.p=t.n){case 0:return r=m(e),n=e.getAttribute("customPeriods",[]),o=y(r,n),e.updateAttribute("compareLoading",!0),e.updateAttribute("compareError",null),t.p=1,s=o.map(function(){var t=f(l().m(function t(r){var n,o,s,u,c,f;return l().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,(0,i.fetchChartData)(e,{attrs:{after:r.after,before:r.before}});case 1:return n=t.v,o=(0,a.default)(n,e),s=o.result,u=o.viewUpdateEvery,c=b(b({},s),{},{viewUpdateEvery:u}),t.a(2,b(b({},r),{},{payload:c,error:null}));case 2:return t.p=2,f=t.v,t.a(2,b(b({},r),{},{payload:null,error:f.message}))}},t,null,[[0,2]])}));return function(e){return t.apply(this,arguments)}}()),t.n=2,Promise.all(s);case 2:return u=t.v,e.updateAttribute("comparePeriods",u),e.updateAttribute("compareLoading",!1),t.a(2,u);case 3:throw t.p=3,c=t.v,e.updateAttribute("compareError",c.message),e.updateAttribute("compareLoading",!1),c;case 4:return t.a(2)}},t,null,[[1,3]])}));return function(e){return t.apply(this,arguments)}}()},2228(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=g(r(96540)),i=r(78904),a=b(r(882)),s=b(r(33640)),l=g(r(6504)),u=b(r(53607)),c=r(22332),f=b(r(98108)),d=b(r(64437)),h=b(r(73954)),p=r(74848);function b(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return(g=function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s})(t,e)}function m(t){return function(t){if(Array.isArray(t))return x(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||v(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){if(t){if("string"==typeof t)return x(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(t,e):void 0}}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var w=(0,a.default)(i.Flex).withConfig({displayName:"compare__GridContainer",componentId:"sc-1c1r80o-0"})(["display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;"]),j=function(t){var e=t.label,r=t.value,n=t.change,o=t.valueKey,a=void 0===o?"value":o,l=t.tab,u=t.tooltip,f=t.prominent,h=(0,c.useChart)(),b=(0,c.convert)(h,r,{valueKey:a,fractionDigits:2});return f?(0,p.jsx)(s.default,{content:u,children:(0,p.jsxs)(i.Flex,{column:!0,gap:.5,flex:"1 1 0",children:[(0,p.jsx)(i.TextMicro,{color:"textLite",children:e}),(0,p.jsx)(i.Text,{strong:!0,children:b}),(0,p.jsx)(d.default,{change:n,tab:l})]})}):(0,p.jsxs)(i.Flex,{justifyContent:"between",alignItems:"center",children:[(0,p.jsx)(s.default,{content:u,children:(0,p.jsx)(i.TextMicro,{color:"textLite",children:e})}),(0,p.jsxs)(i.Flex,{alignItems:"center",gap:1,flex:"1 1 auto",justifyContent:"end",children:[(0,p.jsx)(i.TextSmall,{strong:!0,textAlign:"right",children:b}),(0,p.jsx)(d.default,{change:n,tab:l})]})]})},O=[{key:"min",label:"Min",tooltip:"Minimum value in the time period"},{key:"avg",label:"Avg",tooltip:"Average (mean) value in the time period"},{key:"max",label:"Max",tooltip:"Maximum value in the time period"}],_=[{key:"median",label:"Median",tooltip:"Middle value when sorted (50th percentile)"},{key:"stddev",label:"StdDev",tooltip:"Standard deviation - measures data spread around the mean"},{key:"p95",label:"P95",tooltip:"95th percentile - 95% of values are below this"},{key:"range",label:"Range",tooltip:"Difference between maximum and minimum values"}],S="Volume",P="Total accumulated value over the time period (rate integrated over time)",M=function(t){var e,r=t.period,n=t.showAdvanced,a=t.showVolume,u=t.tab,d=(0,c.useChart)(),b=function(t,e,r){var n=new Date(1e3*e),o=new Date(1e3*r);return"".concat(t.formatDate(n)," ").concat(t.formatTime(n)," \u2192 ").concat(t.formatDate(o)," ").concat(t.formatTime(o))}(d,r.after,r.before),g=r.payload&&r.stats&&!r.error,m=y((0,o.useState)(!1),2),v=m[0],x=m[1];return(0,p.jsxs)(i.Flex,{column:!0,gap:2,padding:[3],border:"all",round:!0,children:[(0,p.jsx)(s.default,{content:b,children:(0,p.jsxs)(i.Flex,{alignItems:"center",gap:1,justifyContent:"between",children:[(0,p.jsx)(i.TextSmall,{strong:!0,children:r.label}),!r.isBase&&(0,p.jsx)(l.Button,{icon:(0,p.jsx)(l.default,{svg:f.default,size:"10px"}),onClick:function(){return x(!0)},"data-testid":"period-edit","data-track":d.track("period-edit")})]})}),g?v?(0,p.jsx)(h.default,{initialValues:r,onSubmit:function(t){var e=d.getAttribute("customPeriods",[]).map(function(e){return e.id===t.id?t:e});d.updateAttribute("customPeriods",e),x(!1)},onCancel:function(){return x(!1)}}):(0,p.jsxs)(i.Flex,{column:!0,gap:2,children:[(0,p.jsx)(i.Flex,{gap:2,children:O.map(function(t){var e;return(0,p.jsx)(j,{label:t.label,value:r.stats[t.key],change:null===(e=r.changes)||void 0===e?void 0:e[t.key],valueKey:t.key,tab:u,tooltip:t.tooltip,prominent:!0},t.key)})}),n&&(0,p.jsxs)(i.Flex,{column:!0,gap:1,padding:[2,0,0],border:{side:"top",color:"separator"},children:[_.map(function(t){var e;return(0,p.jsx)(j,{label:t.label,value:r.stats[t.key],change:null===(e=r.changes)||void 0===e?void 0:e[t.key],valueKey:t.key,tab:u,tooltip:t.tooltip},t.key)}),a&&(0,p.jsx)(j,{label:S,value:r.stats.volume,change:null===(e=r.changes)||void 0===e?void 0:e.volume,valueKey:"volume",tab:u,tooltip:P})]})]}):(0,p.jsx)(i.Flex,{column:!0,gap:1,children:(0,p.jsx)(i.TextMicro,{color:"textDescription",children:r.error?"Error loading data":"No data available for the selected time range"})})]})};e.default=function(){var t=(0,c.useChart)(),e=(0,u.default)(),r=e.periods,n=(e.loading,e.error),a=y((0,o.useState)(!1),2),l=a[0],f=a[1],d=(0,c.useAttributeValue)("drawer.showAdvancedStats",!1),b=(0,c.useAttributeValue)("drawer.tab","window"),g=function(t){var e=Array.isArray(t)?t[0]:t;return"string"===typeof e&&e.endsWith("/s")}((0,c.useAttributeValue)("units"));return n?(0,p.jsx)(i.Flex,{column:!0,gap:3,children:(0,p.jsxs)(i.TextMicro,{color:"error",children:["Error: ",n]})}):(0,p.jsx)(i.Flex,{column:!0,gap:3,children:(0,p.jsxs)(w,{children:[r.map(function(t){return(0,p.jsx)(M,{period:t,showAdvanced:d,showVolume:g,tab:b},t.id)}),l?(0,p.jsx)(h.default,{onSubmit:function(e){var r=t.getAttribute("customPeriods",[]);t.updateAttribute("customPeriods",[].concat(m(r),[e])),f(!1)},onCancel:function(){return f(!1)}}):(0,p.jsxs)(i.Flex,{column:!0,gap:2,padding:[3],border:{side:"all",type:"dashed"},round:!0,alignItems:"center",justifyContent:"center",height:{min:"142px"},children:[(0,p.jsx)(i.TextSmall,{children:"Custom"}),(0,p.jsx)(s.default,{content:"Add a custom time period for comparison - Choose any specific date range to compare with the current view",children:(0,p.jsx)(i.Button,{tiny:!0,label:"Select a timeframe",onClick:function(){return f(!0)}})})]})]})})}},53607(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(96540),o=r(22332),i=r(95139),a=r(85184);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return u(c,"_invoke",function(r,n,o){var i,s,l,u=0,c=o||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return i=e,s=0,l=t,d.n=r,a}};function h(r,n){for(s=r,l=n,e=0;!f&&u&&!o&&e<c.length;e++){var o,i=c[e],h=d.p,p=i[2];r>3?(o=p===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=r<2&&h<i[1])?(s=0,d.v=n,d.n=i[1]):h<p&&(o=r<3||i[0]>n||n>p)&&(i[4]=r,i[5]=n,d.n=p,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),s=c,l=p;(e=s<2?t:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),h(s,l)):d.n=l:d.v=l);try{if(u=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(f=d.n<0)?l:r.call(n,d))!==a)break}catch(e){i=t,s=1,l=e}finally{u=1}}return{value:e,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function f(){}e=Object.getPrototypeOf;var d=[][n]?e(e([][n]())):(u(e={},n,function(){return this}),e),h=f.prototype=s.prototype=Object.create(d);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,u(t,o,"GeneratorFunction")),t.prototype=Object.create(h),t}return c.prototype=f,u(h,"constructor",f),u(f,"constructor",c),c.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(h),u(h,o,"Generator"),u(h,n,function(){return this}),u(h,"toString",function(){return"[object Generator]"}),(l=function(){return{w:i,m:p}})()}function u(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}u=function(t,e,r,n){function i(e,r){u(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},u(t,e,r,n)}function c(t,e,r,n,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,o)}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach(function(e){h(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e.default=function(){var t,e=(0,o.useChart)(),r=(0,o.useAttributeValue)("comparePeriods"),s=(0,o.useAttributeValue)("compareLoading"),u=(0,o.useAttributeValue)("compareError"),f=(0,o.useAttributeValue)("after"),h=(0,o.useAttributeValue)("before"),p=(0,o.useAttributeValue)("drawer.action"),b=(0,o.useAttributeValue)("drawer.tab"),g=(0,o.useAttributeValue)("overlays"),m=(0,o.useAttributeValue)("customPeriods",[]),y=(0,n.useMemo)(function(){var t;if(null===r||void 0===r||!r.length)return[];var e="selectedArea"===b?null===g||void 0===g||null===(t=g.highlight)||void 0===t?void 0:t.range:null,n=r.map(function(t){var n=e;if(e&&!t.isBase){var o=r.find(function(t){return t.isBase});if(o){var i=o.after-t.after;n=[e[0]-i,e[1]-i]}}return d(d({},t),{},{stats:t.payload?(0,a.calculateStats)(t.payload,n):null})});return(0,a.calculateComparisons)(n)},[r,b,null===g||void 0===g||null===(t=g.highlight)||void 0===t?void 0:t.range]);return(0,n.useEffect)(function(){if("compare"===p&&e){var t=function(){var t,r=(t=l().m(function t(){var r;return l().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,(0,i.fetchComparisonData)(e);case 1:t.n=3;break;case 2:t.p=2,r=t.v,console.error("Failed to fetch comparison data:",r);case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,s,"next",t)}function s(t){c(i,n,o,a,s,"throw",t)}a(void 0)})});return function(){return r.apply(this,arguments)}}();t();var r=e.on("fetch",t);return function(){r()}}},[f,h,p,m]),{periods:y,loading:s,error:u}}},61557(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tabs=e.actions=void 0;e.actions={values:"values",drillDown:"drillDown",compare:"compare",correlate:"correlate"},e.tabs={window:"window",selectedArea:"selectedArea",point:"point"}},76106(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;s(r(96540));var n=r(78904),o=s(r(33640)),i=r(22332),a=r(74848);function s(t){return t&&t.__esModule?t:{default:t}}var l=[{label:"Volume",value:"volume"},{label:"KS2",value:"ks2"}],u=[{label:"Average",value:"average"},{label:"Median",value:"median"},{label:"Min",value:"min"},{label:"Max",value:"max"},{label:"StdDev",value:"stddev"}],c=[{label:"Metrics",value:""},{label:"Anomaly Rate",value:"anomaly-bit"}];e.default=function(){var t=(0,i.useChart)(),e=(0,i.useAttributeValue)("correlate.method","volume"),r=(0,i.useAttributeValue)("correlate.aggregation","average"),s=(0,i.useAttributeValue)("correlate.dataType",""),f=(0,i.useAttributeValue)("correlate.threshold",.01),d=l.find(function(t){return t.value===e}),h=u.find(function(t){return t.value===r}),p=c.find(function(t){return t.value===s});return(0,a.jsxs)(n.Flex,{column:!0,gap:2,children:[(0,a.jsxs)(n.Flex,{gap:2,alignItems:"center",children:[(0,a.jsx)(o.default,{content:"Algorithm used to calculate correlation strength.\\nVolume: Percentage change between periods\\nKS2: Statistical distribution comparison",children:(0,a.jsx)(n.TextSmall,{children:"Method:"})}),(0,a.jsx)(n.Select,{options:l,value:d,onChange:function(e){var r=e.value;return t.updateAttribute("correlate.method",r)},styles:{size:"tiny"}}),(0,a.jsx)(o.default,{content:"How to aggregate data points within the time period.\\nAffects how metrics are summarized before correlation calculation.",children:(0,a.jsx)(n.TextSmall,{children:"Aggregation:"})}),(0,a.jsx)(n.Select,{options:u,value:h,onChange:function(e){var r=e.value;return t.updateAttribute("correlate.aggregation",r)},styles:{size:"tiny"}}),(0,a.jsx)(o.default,{content:"Type of data to correlate.\\nMetrics: Actual metric values\\nAnomaly Rate: Anomaly detection patterns",children:(0,a.jsx)(n.TextSmall,{children:"Data:"})}),(0,a.jsx)(n.Select,{options:c,value:p,onChange:function(e){var r=e.value;return t.updateAttribute("correlate.dataType",r)},styles:{size:"tiny"}})]}),(0,a.jsxs)(n.Flex,{gap:2,alignItems:"center",children:[(0,a.jsx)(o.default,{content:"Filter to show only metrics with correlation weight below this threshold.\\nLower threshold = show only strongest correlations.\\n1% shows only metrics with <1% weight (very strong correlations).",children:(0,a.jsx)(n.TextSmall,{children:"Show top:"})}),(0,a.jsx)(n.Flex,{flex:1,children:(0,a.jsx)(o.default,{content:"Currently showing metrics with correlation weight < ".concat((100*f).toFixed(0),"%"),children:(0,a.jsx)(n.InputRange,{min:.01,max:1,step:.01,value:f,onChange:function(e){return t.updateAttribute("correlate.threshold",parseFloat(e.target.value))}})})}),(0,a.jsx)(o.default,{content:"Showing metrics with correlation weight < ".concat((100*f).toFixed(0),"%"),children:(0,a.jsxs)(n.TextSmall,{children:[(100*f).toFixed(0),"%"]})})]})]})}},27149(t,e){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(e,"__esModule",{value:!0}),e.transformCorrelationData=e.groupByContext=void 0;e.transformCorrelationData=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.01,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return null!==t&&void 0!==t&&t.result&&null!==t&&void 0!==t&&t.v_schema?t.result.map(function(t){var e=r(t.id.split(","),3),n=e[0],i=e[1],a=e[2],s=r(t.nm.split(","),3),l=s[0],u=s[1],c=s[2],f=r(t.v,3),d=f[0],h=f[1],p=f[2],b=d[0],g=d[0],m=d[2],y=h[1],v=h[4],x=p[1];return{dimension:n,dimensionName:l,context:i,contextName:u,nodeId:a,nodeName:c,correlationWeight:b,weightMin:g,weightMax:m,timeframeAvg:y,timeframeCount:v,baselineAvg:x,baselineCount:p[4],percentChange:0!==x?(y-x)/x*100:0,correlationStrength:o(b)}}).filter(function(t){return Math.abs(t.correlationWeight)<e&&!n.includes(t.context)}).sort(function(t,e){return Math.abs(t.correlationWeight)-Math.abs(e.correlationWeight)}):[]};var o=function(t){var e=Math.abs(t);return e<=.05?"Strong":e<=.2?"Moderate":e<=.5?"Weak":"Very Weak"};e.groupByContext=function(t){var e={};return t.forEach(function(t){e[t.context]||(e[t.context]={context:t.context,contextName:t.contextName,dimensions:[],minWeight:1,count:0}),e[t.context].dimensions.push(t),e[t.context].minWeight=Math.min(e[t.context].minWeight,Math.abs(t.correlationWeight)),e[t.context].count++}),Object.values(e).sort(function(t,e){return t.minWeight-e.minWeight})}},18502(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;l(r(96540));var n=r(78904),o=l(r(76106)),i=l(r(21818)),a=l(r(30825)),s=r(74848);function l(t){return t&&t.__esModule?t:{default:t}}e.default=function(){var t=(0,a.default)(),e=t.error,r=t.data;return(0,s.jsxs)(n.Flex,{column:!0,gap:2,children:[(0,s.jsx)(o.default,{}),e&&(0,s.jsx)(n.Flex,{justifyContent:"center",padding:[2,0],children:(0,s.jsxs)(n.Text,{color:"error",children:["Error: ",e]})}),r&&r.length>0&&(0,s.jsx)(i.default,{data:r})]})}},11577(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=c(t)&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a}(t,e)}(r(96540)),o=u(r(36310)),i=r(64131),a=r(22332),s=u(r(81395)),l=r(74848);function u(t){return t&&t.__esModule?t:{default:t}}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach(function(e){h(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p=(0,n.memo)(function(t){var e=t.dimension,r=t.contextName,u=(0,a.useAttributeValue)("after"),c=(0,a.useAttributeValue)("before"),f=(0,a.useAttributeValue)("overlays"),h=(0,a.useAttributeValue)("host"),p=(0,a.useAttributeValue)("points"),b=(0,a.useChart)();return(0,l.jsx)(o.default,{contextScope:(0,n.useMemo)(function(){return[r]},[r]),dimensions:(0,n.useMemo)(function(){return[e.dimensionName]},[e.dimensionName]),nodesScope:(0,n.useMemo)(function(){return[e.nodeId]},[e.nodeId]),after:u,before:c,sdk:b.sdk,height:40,sparkline:!0,host:h,points:p,hasToolbox:!1,hasHoverPopover:!1,expandable:!1,chartType:"stacked",showAnomalies:!1,showAnnotations:!1,colors:s.default[11],overlays:(0,n.useMemo)(function(){return d(d({},!(null===f||void 0===f||!f.highlight)&&{highlight:null===f||void 0===f?void 0:f.highlight}),{},{latestValue:{type:"latestValue"}})},[f]),children:function(t){var e=t.chart;return(0,l.jsx)(i.Line,{chart:e,height:"40px",hasHeader:!1,hasFooter:!1,hasFilters:!1})}})});e.default=p},21818(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;s(r(96540));var n=r(78904),o=r(22332),i=s(r(11577)),a=r(74848);function s(t){return t&&t.__esModule?t:{default:t}}function l(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var c=function(t){var e=Math.abs(t);return e>=.8?"primary":e>=.5?"warning":e>=.2?"textLite":"textDescription"},f=function(t){return(100*(1-t)).toFixed(1)+"%"},d=function(t){return(t>0?"+":"")+t.toFixed(1)+"%"},h=function(t){var e=t.dimension,r=t.contextName,o=c(e.correlationWeight),s=e.percentChange>0?"warning":e.percentChange<0?"primary":"textLite";return(0,a.jsxs)(n.Flex,{justifyContent:"between",alignItems:"center",padding:[1,2],background:"mainChartBg",round:!0,children:[(0,a.jsxs)(n.Flex,{column:!0,gap:.5,flex:1,children:[(0,a.jsx)(n.TextSmall,{title:"Metric: ".concat(e.dimensionName,"\nContext: ").concat(e.context,"\nNode: ").concat(e.nodeName),children:e.dimensionName}),(0,a.jsxs)(n.TextMicro,{color:"textDescription",children:[e.nodeName," \u2022 ",e.context]})]}),(0,a.jsxs)(n.Flex,{gap:2,alignItems:"center",children:[(0,a.jsxs)(n.Flex,{column:!0,alignItems:"end",gap:.5,title:"Correlation strength: ".concat(f(e.correlationWeight),"\nHigher values indicate stronger correlation.\n100% = perfect correlation, 0% = no correlation"),children:[(0,a.jsx)(n.TextSmall,{color:o,children:f(e.correlationWeight)}),(0,a.jsx)(n.TextMicro,{color:"textDescription",children:e.correlationStrength})]}),(0,a.jsxs)(n.Flex,{column:!0,alignItems:"end",gap:.5,title:"Percent change: ".concat(d(e.percentChange),"\nChange in average value between baseline period and selected period.\nPositive = increased, Negative = decreased"),children:[(0,a.jsx)(n.TextSmall,{color:s,children:d(e.percentChange)}),(0,a.jsx)(n.TextMicro,{color:"textDescription",children:"Change"})]}),(0,a.jsx)(n.Flex,{width:"120px",children:(0,a.jsx)(i.default,{dimension:e,contextName:r})})]})]})},p=function(t){var e=t.contextGroup,r=t.isExpanded,o=t.onToggle,i=c(e.minWeight);return(0,a.jsxs)(n.Flex,{column:!0,gap:1,children:[(0,a.jsxs)(n.Flex,{justifyContent:"between",alignItems:"center",padding:[2],onClick:o,cursor:"pointer",border:"bottom",children:[(0,a.jsxs)(n.Flex,{alignItems:"center",gap:1,children:[(0,a.jsx)(n.Icon,{name:r?"chevron_down":"chevron_right",color:"textDescription",size:"small"}),(0,a.jsxs)(n.Flex,{column:!0,gap:.5,children:[(0,a.jsx)(n.TextSmall,{strong:!0,children:e.contextName}),(0,a.jsxs)(n.TextMicro,{color:"textDescription",children:[e.count," correlated dimensions"]})]})]}),(0,a.jsx)(n.Flex,{gap:2,alignItems:"center",children:(0,a.jsx)(n.Flex,{column:!0,alignItems:"end",gap:.5,title:"Strongest correlation in this context: ".concat(f(e.minWeight),"\nShows the most correlated metric within this context.\nClick to expand and see all correlated dimensions."),children:(0,a.jsx)(n.TextSmall,{color:i,children:f(e.minWeight)})})})]}),r&&(0,a.jsx)(n.Flex,{column:!0,gap:1,padding:[0,0,1,0],children:e.dimensions.map(function(t){return(0,a.jsx)(h,{dimension:t,contextName:e.context},"".concat(t.dimension,"-").concat(t.nodeId))})})]})};e.default=function(t){var e=t.data,r=(0,o.useChart)(),i=(0,o.useAttributeValue)("correlate.expandedContexts",[]);return e&&0!==e.length?(0,a.jsxs)(n.Flex,{column:!0,gap:2,children:[(0,a.jsxs)(n.Flex,{justifyContent:"between",alignItems:"center",padding:[1,0],children:[(0,a.jsxs)(n.TextSmall,{color:"textDescription",children:["Found ",e.reduce(function(t,e){return t+e.count},0)," correlated dimensions across"," ",e.length," contexts"]}),(0,a.jsx)(n.Button,{tiny:!0,neutral:!0,label:i.length===e.length?"Collapse all":"Expand all",onClick:function(){var t=i.length===e.length;r.updateAttribute("correlate.expandedContexts",t?[]:e.map(function(t){return t.context}))}})]}),e.map(function(t){return(0,a.jsx)(p,{contextGroup:t,isExpanded:i.includes(t.context),onToggle:function(){return function(t){var e=i.includes(t)?i.filter(function(e){return e!==t}):[].concat(l(i),[t]);r.updateAttribute("correlate.expandedContexts",e)}(t.context)}},t.context)})]}):(0,a.jsx)(n.Flex,{justifyContent:"center",padding:[4,0],children:(0,a.jsx)(n.TextSmall,{color:"textLite",children:"No correlations found"})})}},30825(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(96540),i=r(22332),a=r(21666),s=r(27149);function l(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||g(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,u=Object.create(l.prototype);return c(u,"_invoke",function(r,n,o){var i,s,l,u=0,c=o||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return i=e,s=0,l=t,d.n=r,a}};function h(r,n){for(s=r,l=n,e=0;!f&&u&&!o&&e<c.length;e++){var o,i=c[e],h=d.p,p=i[2];r>3?(o=p===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=r<2&&h<i[1])?(s=0,d.v=n,d.n=i[1]):h<p&&(o=r<3||i[0]>n||n>p)&&(i[4]=r,i[5]=n,d.n=p,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),s=c,l=p;(e=s<2?t:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),h(s,l)):d.n=l:d.v=l);try{if(u=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(f=d.n<0)?l:r.call(n,d))!==a)break}catch(e){i=t,s=1,l=e}finally{u=1}}return{value:e,done:f}}}(r,o,i),!0),u}var a={};function s(){}function l(){}function f(){}e=Object.getPrototypeOf;var d=[][n]?e(e([][n]())):(c(e={},n,function(){return this}),e),h=f.prototype=s.prototype=Object.create(d);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,c(t,o,"GeneratorFunction")),t.prototype=Object.create(h),t}return l.prototype=f,c(h,"constructor",f),c(f,"constructor",l),l.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(h),c(h,o,"Generator"),c(h,n,function(){return this}),c(h,"toString",function(){return"[object Generator]"}),(u=function(){return{w:i,m:p}})()}function c(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}c=function(t,e,r,n){function i(e,r){c(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},c(t,e,r,n)}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach(function(e){h(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(t,e,r,n,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,o)}function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||g(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){if(t){if("string"==typeof t)return m(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}e.default=function(){var t,e=(0,i.useChart)(),r=(0,o.useRef)(null),n=(0,i.useAttributeValue)("drawer.tab","window"),c=(0,i.useAttributeValue)("after"),f=(0,i.useAttributeValue)("before"),h=(0,i.useAttributeValue)("overlays"),g=(0,i.useAttributeValue)("correlate.loading",!1),m=(0,i.useAttributeValue)("correlate.error"),y=(0,i.useAttributeValue)("correlate.data"),v=(0,i.useAttributeValue)("correlate.method","volume"),x=(0,i.useAttributeValue)("correlate.aggregation","average"),w=(0,i.useAttributeValue)("correlate.dataType",""),j=(0,i.useAttributeValue)("correlate.threshold",.01),O=function(){var t;if("selectedArea"===n&&null!==h&&void 0!==h&&null!==(t=h.highlight)&&void 0!==t&&t.range){var r=b(h.highlight.range,2),o=r[0],i=r[1];return{highlightAfter:o,highlightBefore:i,baselineAfter:o-4*(i-o),baselineBefore:o}}var a=c-4*(f-c),s=c;if(c<0){var l=e.getAttributes(),u=l.renderedAt,d=l.fetchStartedAt,p=Math.ceil((u||d||Date.now())/1e3);return{highlightAfter:p+c,highlightBefore:p+f,baselineAfter:p+a,baselineBefore:p+s}}return{highlightAfter:c,highlightBefore:f,baselineAfter:a,baselineBefore:s}},_=function(){var t,r=(t=u().m(function t(r){var n,o,i,s;return u().w(function(t){for(;;)switch(t.p=t.n){case 0:return n=O(),o=e.getFilteredAvailableNodeIds(),t.p=1,t.n=2,(0,a.fetchChartWeights)(e,{attrs:d(d({},n),{},{method:v,aggregationMethod:x,options:w?[w]:[],groupBy:["node","instance","dimension"],contextScope:[],nodesScope:o}),signal:r});case 2:i=t.v,r.aborted||(e.updateAttribute("correlate.data",i),e.updateAttribute("correlate.loading",!1)),t.n=4;break;case 3:t.p=3,s=t.v,r.aborted||(e.updateAttribute("correlate.error",s.message||"Failed to fetch correlations"),e.updateAttribute("correlate.loading",!1));case 4:return t.a(2)}},t,null,[[1,3]])}),function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){p(i,n,o,a,s,"next",t)}function s(t){p(i,n,o,a,s,"throw",t)}a(void 0)})});return function(t){return r.apply(this,arguments)}}(),S=(0,o.useMemo)(function(){if(!y)return[];var t=e.getAttribute("contextScope",[]),r=(0,s.transformCorrelationData)(y,j,t);return(0,s.groupByContext)(r)},[y,j,e]);return(0,o.useEffect)(function(){var t;if("window"===n||"selectedArea"===n&&(null===h||void 0===h||null===(t=h.highlight)||void 0===t?void 0:t.range)){r.current&&r.current.abort(),r.current=new AbortController;var o=r.current.signal;return e.updateAttribute("correlate.loading",!0),e.updateAttribute("correlate.error",null),_(o),function(){r.current&&r.current.abort()}}},[n,v,x,w,c,f].concat(l("selectedArea"===n&&(null===h||void 0===h||null===(t=h.highlight)||void 0===t?void 0:t.range)||[null,null]))),{loading:g,error:m,data:S}}},46139(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.volumeColumn=e.valueColumn=e.stdDevColumn=e.rangeColumn=e.p95Column=e.minColumn=e.medianColumn=e.maxColumn=e.labelColumn=e.avgColumn=e.anomalyColumn=void 0;g(r(96540));var o=r(78904),i=g(r(882)),a=b(r(99010)),s=g(r(23630)),l=b(r(75010)),u=b(r(24652)),c=r(22332),f=g(r(36112)),d=r(67268),h=r(74848),p=["children","fractionDigits"];function b(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return(b=function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s})(t,e)}function g(t){return t&&t.__esModule?t:{default:t}}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach(function(e){v(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function v(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return w(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var j=function(t,e){var r=e.key,n=e.period,o=e.objKey;return function(e,i){var a=e.original,s=i.original,l=c.getValueByPeriod[n]({chart:t,id:a,valueKey:r,objKey:o})-c.getValueByPeriod[n]({chart:t,id:s,valueKey:r,objKey:o});return l?l>0?1:-1:a.localeCompare(s,void 0,{sensitivity:"accent",ignorePunctuation:!0})}},O=(0,i.default)(a.ColorBar).attrs({position:"absolute",top:1.5,left:0,backgroundOpacity:.4,round:.5}).withConfig({displayName:"columns__ColorBackground",componentId:"sc-akihdf-0"})([""]),_={ANOMALY_RATE:"arp",default:"value"},S={dimension:"dimensions",node:"nodes",instance:"instances",label:"labels",value:"values",default:"values"},P=[],M=(e.labelColumn=function(t,e){return{id:"label",header:(0,h.jsx)(o.TextSmall,{strong:!0,children:"Name"}),size:200,minSize:60,renderString:function(e){return t.getDimensionName(e.original)},cell:function(t){var r=t.row,n=r.original,i=r.depth,l=void 0===i?0:i,u=r.getCanExpand,p=r.getToggleExpandedHandler,b=r.getIsExpanded,g=x((0,c.useAttributeValue)("hoverX")||P,2)[1],m=d.rowFlavours[g]||d.rowFlavours.default,y=(0,c.useVisibleDimensionId)(n);return(0,h.jsxs)(o.Flex,{justifyContent:"between",alignItems:"center",padding:[0,0,0,3*l],opacity:y?null:"weak",width:"100%",children:[(0,h.jsxs)(o.Flex,{alignItems:"center",gap:1,position:"relative",width:"100%",children:[y&&(0,h.jsx)(O,{id:n,valueKey:_[m]||_.default,height:"18px",children:(0,h.jsx)(a.default,{id:n})}),(0,h.jsx)(s.default,{padding:[1,2],flex:!0,id:n})]}),u()&&(0,h.jsx)(f.default,{label:S[g.original.value]||S[e]||S.default,onClick:function(t){p()(t),setTimeout(function(){return t.target.scrollIntoView({behavior:"smooth",block:"nearest"})})},iconRotate:b()?2:null,textProps:{fontSize:"10px",color:"textLite"}})]})},sortingFn:function(t,e){var r=t.original,n=e.original;return r.localeCompare(n,void 0,{sensitivity:"accent",ignorePunctuation:!0})}}},function(t){var e=t.children,r=t.fractionDigits,n=void 0===r?0:r,i=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,p),a=x(e.toString().split("."),2),s=a[0],l=a[1];return(0,h.jsxs)(o.Flex,{alignItems:"center",justifyContent:"start",children:[(0,h.jsx)(u.Value,y(y({},i),{},{flex:!1,basis:3*1.6,textAlign:"right",children:s})),"undefined"!==typeof l&&(0,h.jsx)(u.Value,y(y({},i),{},{children:"."})),(0,h.jsx)(u.Value,y(y({as:o.Flex,flex:!1,width:1.6*n},i),{},{textAlign:"left",children:l}))]})});e.valueColumn=function(t){return{id:"value",header:(0,h.jsxs)(o.Flex,{column:!0,children:[(0,h.jsx)(o.TextMicro,{children:"Value"}),(0,h.jsx)(l.default,{visible:!0})]}),headerString:function(){return"Value (".concat(t.getUnitSign({key:"units"}),")")},size:60,minSize:60,renderString:function(e){return(0,c.convert)(t,c.getValueByPeriod.latest({chart:t,id:e.original}),{fractionDigits:t.getAttribute("unitsConversionFractionDigits"),dimensionId:e.original})},cell:function(t){var e=t.row.original,r=(0,c.useVisibleDimensionId)(e),n=(0,c.useChart)();return(0,h.jsx)(u.default,{period:"latest",id:e,visible:r,Component:M,fractionDigits:n.getAttribute("unitsConversionFractionDigits")})},sortingFn:"basic"}},e.anomalyColumn=function(t,e){var r=e.period,n=e.objKey;return{id:n?"".concat(n,"-arp"):"arp",header:(0,h.jsxs)(o.Flex,{column:!0,children:[(0,h.jsx)(o.TextMicro,{children:"AR"}),(0,h.jsx)(l.Value,{children:"%"})]}),headerString:function(){return"Anomaly%"},size:60,minSize:60,renderString:function(e){return(0,c.convert)(t,c.getValueByPeriod[r]({chart:t,id:e.original,valueKey:"arp",objKey:n}),{valueKey:"arp",fractionDigits:t.getAttribute("unitsConversionFractionDigits"),dimensionId:e.original})},cell:function(e){var o=e.row.original,i=(0,c.useVisibleDimensionId)(o);return(0,h.jsx)(u.default,{period:r,objKey:n,textAlign:"right",id:o,visible:i,valueKey:"arp",Component:M,fractionDigits:t.getAttribute("unitsConversionFractionDigits"),color:"anomalyTextFocus"})},sortingFn:"basic"}},e.minColumn=function(t,e){var r=e.period,n=e.objKey;return{id:n?"".concat(n,"-min"):"min",header:(0,h.jsxs)(o.Flex,{column:!0,children:[(0,h.jsx)(o.TextMicro,{children:"Min"}),(0,h.jsx)(l.default,{visible:!0})]}),headerString:function(){return"Min (".concat(t.getUnitSign({key:"units"}),")")},size:60,minSize:60,renderString:function(e){return(0,c.convert)(t,c.getValueByPeriod[r]({chart:t,id:e.original,valueKey:"min",objKey:n}),{valueKey:"min",fractionDigits:t.getAttribute("unitsConversionFractionDigits"),dimensionId:e.original})},cell:function(e){var o=e.row.original,i=(0,c.useVisibleDimensionId)(o);return(0,h.jsx)(u.default,{period:r,objKey:n,textAlign:"right",id:o,visible:i,valueKey:"min",Component:M,fractionDigits:t.getAttribute("unitsConversionFractionDigits")})},sortingFn:j(t,{key:"min",period:r,objKey:n})}},e.avgColumn=function(t,e){var r=e.period,n=e.objKey;return{id:n?"".concat(n,"-avg"):"avg",header:(0,h.jsxs)(o.Flex,{column:!0,children:[(0,h.jsx)(o.TextMicro,{children:"Avg"}),(0,h.jsx)(l.default,{visible:!0})]}),headerString:function(){return"Avg (".concat(t.getUnitSign({key:"units"}),")")},size:60,minSize:60,renderString:function(e){return(0,c.convert)(t,c.getValueByPeriod[r]({chart:t,id:e.original,valueKey:"avg",objKey:n}),{valueKey:"avg",fractionDigits:t.getAttribute("unitsConversionFractionDigits"),dimensionId:e.original})},cell:function(e){var o=e.row.original,i=(0,c.useVisibleDimensionId)(o);return(0,h.jsx)(u.default,{period:r,objKey:n,textAlign:"right",id:o,visible:i,valueKey:"avg",Component:M,fractionDigits:t.getAttribute("unitsConversionFractionDigits")})},sortingFn:j(t,{key:"avg",period:r,objKey:n})}},e.maxColumn=function(t,e){var r=e.period,n=e.objKey;return{id:n?"".concat(n,"-max"):"max",header:(0,h.jsxs)(o.Flex,{column:!0,children:[(0,h.jsx)(o.TextMicro,{children:"Max"}),(0,h.jsx)(l.default,{visible:!0})]}),headerString:function(){return"Max (".concat(t.getUnitSign({key:"units"}),")")},size:60,minSize:60,renderString:function(e){return(0,c.convert)(t,c.getValueByPeriod[r]({chart:t,id:e.original,valueKey:"max",objKey:n}),{valueKey:"max",fractionDigits:t.getAttribute("unitsConversionFractionDigits"),dimensionId:e.original})},cell:function(e){var o=e.row.original,i=(0,c.useVisibleDimensionId)(o);return(0,h.jsx)(u.default,{period:r,objKey:n,textAlign:"right",id:o,visible:i,valueKey:"max",Component:M,fractionDigits:t.getAttribute("unitsConversionFractionDigits")})},sortingFn:j(t,{key:"max",period:r,objKey:n})}},e.medianColumn=function(t,e){var r=e.period,n=e.objKey;return{id:n?"".concat(n,"-median"):"median",header:(0,h.jsxs)(o.Flex,{column:!0,children:[(0,h.jsx)(o.TextMicro,{children:"Median"}),(0,h.jsx)(l.default,{visible:!0})]}),headerString:function(){return"Median (".concat(t.getUnitSign({key:"units"}),")")},size:60,minSize:60,renderString:function(e){return(0,c.convert)(t,c.getValueByPeriod[r]({chart:t,id:e.original,valueKey:"median",objKey:n}),{valueKey:"median",fractionDigits:t.getAttribute("unitsConversionFractionDigits"),dimensionId:e.original})},cell:function(e){var o=e.row.original,i=(0,c.useVisibleDimensionId)(o);return(0,h.jsx)(u.default,{period:r,objKey:n,textAlign:"right",id:o,visible:i,valueKey:"median",Component:M,fractionDigits:t.getAttribute("unitsConversionFractionDigits")})},sortingFn:j(t,{key:"median",period:r,objKey:n})}},e.stdDevColumn=function(t,e){var r=e.period,n=e.objKey;return{id:n?"".concat(n,"-stddev"):"stddev",header:(0,h.jsxs)(o.Flex,{column:!0,children:[(0,h.jsx)(o.TextMicro,{children:"StdDev"}),(0,h.jsx)(l.default,{visible:!0})]}),headerString:function(){return"StdDev (".concat(t.getUnitSign({key:"units"}),")")},size:60,minSize:60,renderString:function(e){return(0,c.convert)(t,c.getValueByPeriod[r]({chart:t,id:e.original,valueKey:"stddev",objKey:n}),{valueKey:"stddev",fractionDigits:t.getAttribute("unitsConversionFractionDigits"),dimensionId:e.original})},cell:function(e){var o=e.row.original,i=(0,c.useVisibleDimensionId)(o);return(0,h.jsx)(u.default,{period:r,objKey:n,textAlign:"right",id:o,visible:i,valueKey:"stddev",Component:M,fractionDigits:t.getAttribute("unitsConversionFractionDigits")})},sortingFn:j(t,{key:"stddev",period:r,objKey:n})}},e.p95Column=function(t,e){var r=e.period,n=e.objKey;return{id:n?"".concat(n,"-p95"):"p95",header:(0,h.jsxs)(o.Flex,{column:!0,children:[(0,h.jsx)(o.TextMicro,{children:"P95"}),(0,h.jsx)(l.default,{visible:!0})]}),headerString:function(){return"95th Percentile (".concat(t.getUnitSign({key:"units"}),")")},size:60,minSize:60,renderString:function(e){return(0,c.convert)(t,c.getValueByPeriod[r]({chart:t,id:e.original,valueKey:"p95",objKey:n}),{valueKey:"p95",fractionDigits:t.getAttribute("unitsConversionFractionDigits"),dimensionId:e.original})},cell:function(e){var o=e.row.original,i=(0,c.useVisibleDimensionId)(o);return(0,h.jsx)(u.default,{period:r,objKey:n,textAlign:"right",id:o,visible:i,valueKey:"p95",Component:M,fractionDigits:t.getAttribute("unitsConversionFractionDigits")})},sortingFn:j(t,{key:"p95",period:r,objKey:n})}},e.rangeColumn=function(t,e){var r=e.period,n=e.objKey;return{id:n?"".concat(n,"-range"):"range",header:(0,h.jsxs)(o.Flex,{column:!0,children:[(0,h.jsx)(o.TextMicro,{children:"Range"}),(0,h.jsx)(l.default,{visible:!0})]}),headerString:function(){return"Range (".concat(t.getUnitSign({key:"units"}),")")},size:60,minSize:60,renderString:function(e){return(0,c.convert)(t,c.getValueByPeriod[r]({chart:t,id:e.original,valueKey:"range",objKey:n}),{valueKey:"range",fractionDigits:t.getAttribute("unitsConversionFractionDigits"),dimensionId:e.original})},cell:function(e){var o=e.row.original,i=(0,c.useVisibleDimensionId)(o);return(0,h.jsx)(u.default,{period:r,objKey:n,textAlign:"right",id:o,visible:i,valueKey:"range",Component:M,fractionDigits:t.getAttribute("unitsConversionFractionDigits")})},sortingFn:j(t,{key:"range",period:r,objKey:n})}},e.volumeColumn=function(t,e){var r=e.period,n=e.objKey;return{id:n?"".concat(n,"-volume"):"volume",header:(0,h.jsxs)(o.Flex,{column:!0,children:[(0,h.jsx)(o.TextMicro,{children:"Volume"}),(0,h.jsx)(l.default,{visible:!0})]}),headerString:function(){return"Volume (".concat(t.getUnitSign({key:"units"}),")")},size:60,minSize:60,renderString:function(e){return(0,c.convert)(t,c.getValueByPeriod[r]({chart:t,id:e.original,valueKey:"volume",objKey:n}),{valueKey:"volume",fractionDigits:1,dimensionId:e.original})},cell:function(t){var e=t.row.original,o=(0,c.useVisibleDimensionId)(e);return(0,h.jsx)(u.default,{period:r,objKey:n,textAlign:"right",id:e,visible:o,valueKey:"volume",Component:M,fractionDigits:1})},sortingFn:j(t,{key:"volume",period:r,objKey:n})}}},66632(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=u(t)&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a}(t,e)}(r(96540)),o=r(78904),i=r(20207),a=r(65562),s=r(46139),l=r(74848);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach(function(e){d(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function d(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h=function(){},p=function(t,e,r){var n;return{cellStyles:f(f(f({},(null===t||void 0===t||null===(n=t.getIsExpanded)||void 0===n?void 0:n.call(t))&&{background:"columnHighlight",backgroundOpacity:.7}),t.depth>0&&{backgroundOpacity:.4}),t.depth>0&&0===r&&{border:{side:"left",size:"4px"}}),bulkActionsStyles:{padding:[1,0]}}};e.default=function(){var t=(0,a.useDimensionIds)(),e="selectedArea"===(0,a.useAttributeValue)("drawer.tab")?"highlight":"window",r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,a.useChart)(),u=(0,a.useAttributeValue)("hoverX");return(0,n.useMemo)(function(){var n=f({period:t},e);return f(f({},n),{},{objKey:"dbDimensions",unitsKey:"dbUnits"}),[{id:"Dimensions",header:function(){return(0,l.jsxs)(o.TextSmall,{children:["Dimension (",u?"hovering":"latest"," value)"]})},headerString:function(){return""},fullWidth:!0,columns:[(0,s.labelColumn)(r),(0,s.valueColumn)(r)]},{id:"visible",header:function(){return(0,l.jsxs)(o.TextSmall,{children:["highlight"===t?"Selected area":(0,i.uppercase)(t)," points"]})},headerString:function(){return""},fullWidth:!0,columns:[(0,s.minColumn)(r,n),(0,s.avgColumn)(r,n),(0,s.maxColumn)(r,n),(0,s.anomalyColumn)(r,n),(0,s.medianColumn)(r,n),(0,s.stdDevColumn)(r,n),(0,s.p95Column)(r,n),(0,s.rangeColumn)(r,n),(0,s.volumeColumn)(r,n)]}]},[t,!!u])}(e),u=(0,a.useAttributeValue)("drawer.showAdvancedStats",!1),c=(0,a.useChart)();(0,n.useMemo)(function(){return c.makeChartUI("custom","bars")},[]);var d=(0,n.useMemo)(function(){return{median:u,stddev:u,p95:u,range:u,volume:u}},[u]),b=(0,n.useMemo)(function(){var t="".concat(c.getAttribute("name")||c.getAttribute("contextScope").join("-").replace(".","_"));return{download:{handleAction:(0,o.downloadCsvAction)(t),tooltipText:"Download as CSV",alwaysEnabled:!0}}},[c]);return(0,l.jsx)(o.Flex,{gap:2,children:(0,l.jsx)(o.Table,{enableSorting:!0,enableColumnVisibility:!0,columnVisibility:d,dataColumns:r,data:t,onSearch:h,meta:p,width:"100%",bulkActions:b},e)})}},97553(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.minColumn=e.maxColumn=e.labelColumn=e.contributionColumn=e.avgColumn=e.anomalyRateColumn=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=r(78904),a=f(r(99010)),s=f(r(75010)),l=r(22332),u=f(r(36112)),c=r(74848);function f(t){return t&&t.__esModule?t:{default:t}}e.labelColumn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{id:"label",header:function(){return(0,c.jsx)(i.TextSmall,{strong:!0,children:"Name"})},headerString:function(){return"Name"},accessorKey:"label",size:200,minSize:60,maxSize:800,cell:function(e){var r,n,s=e.getValue,f=e.row,d=function(t){return(0,o.useMemo)(function(){return{dimension:"dimensions",node:"nodes",instance:t.intl("instance",{count:2}),label:"labels",value:"values",default:"values"}},[])}((0,l.useChart)()),h=f.original.level||0,p=t[h+1],b=p&&d[p]||d.default;return(0,c.jsxs)(i.Flex,{justifyContent:"between",alignItems:"center",padding:[0,0,0,3*f.depth],width:"100%",children:[(0,c.jsxs)(i.Flex,{gap:1,children:[(0,c.jsx)(a.default,{id:f.original.id}),(0,c.jsx)(i.TextSmall,{strong:!0,onClick:function(t){var e,r;t.preventDefault(),t.stopPropagation(),null===(e=f.getToggleExpandedHandler)||void 0===e||null===(r=e.call(f))||void 0===r||r(t),setTimeout(function(){return t.target.scrollIntoView({behavior:"smooth",block:"nearest"})})},cursor:f.original.disabled?"default":"pointer",whiteSpace:"normal",wordBreak:"break-word",children:s()})]}),(null===(r=f.getCanExpand)||void 0===r?void 0:r.call(f))&&(0,c.jsx)(u.default,{label:b,onClick:function(t){var e;t.preventDefault(),t.stopPropagation(),null===(e=f.getToggleExpandedHandler)||void 0===e||e.call(f)(t),setTimeout(function(){return t.target.scrollIntoView({behavior:"smooth",block:"nearest"})})},iconRotate:null!==(n=f.getIsExpanded)&&void 0!==n&&n.call(f)?2:null,textProps:{fontSize:"10px",color:"textLite"},alignItems:"center"})]})}}},e.contributionColumn=function(){return{id:"contribution",header:(0,c.jsx)(i.TextMicro,{strong:!0,children:"Vol %"}),headerString:function(){return"Vol %"},accessorKey:"contribution",size:60,minSize:30,maxSize:300,fullWidth:!0,cell:function(t){var e=(0,t.getValue)()||0,r=Math.round(100*(e+Number.EPSILON))/100;return(0,c.jsxs)(i.Flex,{flex:!0,column:!0,gap:.5,children:[(0,c.jsxs)(i.TextSmall,{color:"primary",children:[r,"%"]}),(0,c.jsx)(i.ProgressBar,{background:"progressBg",color:["green","deyork"],height:2,width:"".concat(Math.min(r,100),"%"),containerWidth:"100%",border:"none"})]})},sortingFn:"basic"}},e.anomalyRateColumn=function(){return{id:"anomalyRate",header:(0,c.jsx)(i.TextMicro,{strong:!0,children:"Anomaly%"}),headerString:function(){return"Anomaly%"},accessorKey:"anomalyRate",size:60,minSize:30,maxSize:300,fullWidth:!0,cell:function(t){var e=(0,t.getValue)()||0,r=Math.round(100*(e+Number.EPSILON))/100;return(0,c.jsxs)(i.Flex,{flex:!0,column:!0,gap:.5,children:[(0,c.jsxs)(i.TextSmall,{color:"textLite",children:[r,"%"]}),(0,c.jsx)(i.ProgressBar,{background:"progressBg",color:"anomalyText",height:2,width:"".concat(Math.min(r,100),"%"),containerWidth:"100%",border:"none"})]})},sortingFn:"basic"}},e.minColumn=function(t){return{id:"min",header:(0,c.jsxs)(i.TextMicro,{strong:!0,children:["Min ",(0,c.jsx)(s.default,{visible:!0})]}),headerString:function(){return"Min (".concat(t.getUnitSign({key:"units"}),")")},accessorFn:function(t){var e;return null===(e=t.timeframe)||void 0===e?void 0:e.min},size:60,minSize:30,maxSize:300,fullWidth:!0,cell:function(t){var e=t.getValue,r=(0,l.useConverted)(e());return(0,c.jsx)(i.TextSmall,{color:"textLite",children:r})},sortingFn:"basic"}},e.avgColumn=function(t){return{id:"avg",header:(0,c.jsxs)(i.TextMicro,{strong:!0,children:["Avg ",(0,c.jsx)(s.default,{visible:!0})]}),headerString:function(){return"Avg (".concat(t.getUnitSign({key:"units"}),")")},accessorFn:function(t){var e;return null===(e=t.timeframe)||void 0===e?void 0:e.avg},size:60,minSize:30,maxSize:300,fullWidth:!0,cell:function(t){var e=t.getValue,r=(0,l.useConverted)(e());return(0,c.jsx)(i.TextSmall,{color:"textLite",children:r})},sortingFn:"basic"}},e.maxColumn=function(t){return{id:"max",header:(0,c.jsxs)(i.TextMicro,{strong:!0,children:["Max ",(0,c.jsx)(s.default,{visible:!0})]}),headerString:function(){return"Max (".concat(t.getUnitSign({key:"units"}),")")},accessorFn:function(t){var e;return null===(e=t.timeframe)||void 0===e?void 0:e.max},size:60,minSize:30,maxSize:300,fullWidth:!0,cell:function(t){var e=t.getValue,r=(0,l.useConverted)(e());return(0,c.jsx)(i.TextSmall,{color:"textLite",children:r})},sortingFn:"basic"}}},13961(t,e){"use strict";function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){o(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function o(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.transformWeightsData=e.buildHierarchicalTree=void 0;var l=function(t){return t!==1/0&&t!==-1/0&&Number.isFinite(t)?t:null},u=(e.transformWeightsData=function(t,e,r){var n,o,i,a;if(null===t||void 0===t||!t.result||null===e||void 0===e||!e.length)return[];var s=t.result,u=t.v_schema,c=null!==(n=null===u||void 0===u||null===(o=u.items)||void 0===o?void 0:o.findIndex(function(t){return"weight"===t.name}))&&void 0!==n?n:0,f=null!==(i=null===u||void 0===u||null===(a=u.items)||void 0===a?void 0:a.findIndex(function(t){return"timeframe"===t.name}))&&void 0!==i?i:1,d=r.getAttribute("nodes",[]);return s.map(function(t){var r=t.id,n=t.nm,o=t.v,i=r.split(","),a=n.split(","),s=o[c]||[],u=o[f]||[],h=e.reduce(function(t,e,r){return t[e]=i[r]||"",t},{}),p=e.reduce(function(t,e,r){var n;return t[e]=a[r]||i[r]||"","node"===e&&(t[e]=(null===(n=d[t[e]])||void 0===n?void 0:n.nm)||t[e]),t},{});return{id:r,nm:n,label:p[e[0]]||n,groupedBy:h,groupedByNames:p,weight:{min:s[0],avg:s[1],max:s[2],sum:s[3],count:s[4]},timeframe:{min:l(u[0]),avg:l(u[1]),max:l(u[2]),sum:l(u[3]),count:l(u[4]),anomaly_count:l(u[5])},anomalyRate:u[4]>0?100*u[5]/u[4]:0,contribution:s[3],level:0,parentId:null}})},function(t,e){if(!t.length)return null;var r=t.filter(function(t){return t&&"object"===s(t)});return r.length?{min:Math.min.apply(Math,i(r.map(function(t){return t.min}).filter(function(t){return null!=t}))),max:Math.max.apply(Math,i(r.map(function(t){return t.max}).filter(function(t){return null!=t}))),sum:r.reduce(function(t,e){return t+(e.sum||0)},0),avg:"weight"===e?r.reduce(function(t,e){return t+(e.sum||0)},0)/r.filter(function(t){return t.count>0}).length||0:r.reduce(function(t,e){return t+(e.avg||0)*(e.count||0)},0)/r.reduce(function(t,e){return t+(e.count||0)},0)||0,count:r.reduce(function(t,e){return t+(e.count||0)},0),anomaly_count:"timeframe"===e?r.reduce(function(t,e){return t+(e.anomaly_count||0)},0):void 0}:null});e.buildHierarchicalTree=function(t,e){if(null===e||void 0===e||!e.length)return t;var r={},o=[];t.forEach(function(t){var i=t.groupedBy,a=t.groupedByNames;e.forEach(function(n,o){var s=e.slice(0,o+1).map(function(t){return i[t]}),l=s.join("|"),u=o>0?s.slice(0,-1).join("|"):null;r[l]||(r[l]={id:l,nm:l,label:a[n],level:o,parentId:u,children:[],isGroupNode:o<e.length-1,groupedBy:e.slice(0,o+1).reduce(function(t,e,r){return t[e]=s[r],t},{}),groupedByNames:e.slice(0,o+1).reduce(function(e,r,i){return e[r]=i===o?a[n]:t.groupedByNames[r],e},{})})});var s=e.map(function(e){return t.groupedBy[e]}).join("|");r[s]=n(n({},t),{},{id:s,label:t.groupedByNames[e[e.length-1]]||t.label,level:e.length-1,parentId:e.length>1?e.slice(0,-1).map(function(e){return t.groupedBy[e]}).join("|"):null,isGroupNode:!1}),o.push(t)}),Object.values(r).forEach(function(t){if(t.isGroupNode){var r=o.filter(function(r){return e.slice(0,t.level+1).every(function(e,n){return t.groupedBy[e]===r.groupedBy[e]})});if(r.length>0){var n=u(r.map(function(t){return t.weight}),"weight"),i=u(r.map(function(t){return t.timeframe}),"timeframe");n&&(t.weight=n,t.contribution=n.sum),i&&(t.timeframe=i,t.anomalyRate=i.count>0?100*i.anomaly_count/i.count:0)}}});var i=[];return Object.values(r).forEach(function(t){t.parentId&&r[t.parentId]?r[t.parentId].children.push(t):t.parentId||i.push(t)}),i}},83978(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;c(r(96540));var n=r(78904),o=r(65562),i=c(r(70933)),a=c(r(71747)),s=c(r(90648)),l=r(97553),u=r(74848);function c(t){return t&&t.__esModule?t:{default:t}}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach(function(e){p(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function p(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=function(){},g=function(t,e,r){var n;return{cellStyles:h(h(h({},(null===t||void 0===t||null===(n=t.getIsExpanded)||void 0===n?void 0:n.call(t))&&{background:"columnHighlight",backgroundOpacity:.7}),t.depth>0&&{backgroundOpacity:.4}),t.depth>0&&0===r&&{border:{side:"left",size:"4px"}}),bulkActionsStyles:{padding:[1,0]}}};e.default=function(){var t=(0,o.useChart)(),e=(0,i.default)(),r=e.hierarchicalData,c=e.loading,f=e.error,d=e.groupedBy,h=(0,o.useAttributeValue)("drilldown.expanded",{}),p=(0,o.useAttributeValue)("drilldown.sortBy",[]),m=[(0,l.labelColumn)(d),(0,l.contributionColumn)(),(0,l.anomalyRateColumn)(),(0,l.minColumn)(t),(0,l.avgColumn)(t),(0,l.maxColumn)(t)];return f?(0,u.jsxs)(n.Flex,{padding:[3],justifyContent:"center",color:"text",children:["Error loading drilldown data: ",f]}):c||r&&0!==r.length?(0,u.jsx)(n.Flex,{children:(0,u.jsx)(n.Table,{enableSorting:!0,enableExpanding:!0,dataColumns:m,data:r,meta:g,sortBy:p,onSearch:b,onSortingChange:function(e){t.updateAttribute("drilldown.sortBy",e)},expanded:h,onExpandedChange:function(e){t.updateAttribute("drilldown.expanded",e)},width:"100%",headerChildren:(0,u.jsx)(s.default,{groupByKey:"drilldown.groupBy",groupByLabelKey:"drilldown.groupByLabel",sortByKey:"drilldown.groupBySortBy",expandedKey:"drilldown.groupByExpanded",onChange:function(e){return(0,a.default)(t,e)},trackingId:"drilldown-group-by",emptyMessage:"Deselecting everything will use GROUP BY NODE, INSTANCE, DIMENSION by default"})})}):(0,u.jsxs)(n.Flex,{padding:[3],justifyContent:"center",alignItems:"center",column:!0,gap:2,children:[(0,u.jsx)(n.Flex,{color:"textLite",fontSize:"14px",children:"No data available for the selected time range"}),(0,u.jsx)(n.Flex,{color:"textLite",fontSize:"12px",children:"Try adjusting the time range or chart settings"})]})}},71747(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,o=(n=r(49628))&&n.__esModule?n:{default:n};e.default=function(t,e){var r=t.baseUpdateGroupBy;if(r){var n=(0,o.default)(t);r(e,{groupByKey:"drilldown.groupBy",groupByLabelKey:"drilldown.groupByLabel",fallbackGroupBy:["node","instance","dimension"],dataKey:"drilldown.data",loadingKey:"drilldown.loading"})&&n({chartAction:"drilldown-groupby-change",value:e})}else console.error("baseUpdateGroupBy not available")}},70933(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(96540),o=r(22332),i=r(21666),a=r(13961);function s(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return u(c,"_invoke",function(r,n,o){var i,s,l,u=0,c=o||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return i=e,s=0,l=t,d.n=r,a}};function h(r,n){for(s=r,l=n,e=0;!f&&u&&!o&&e<c.length;e++){var o,i=c[e],h=d.p,p=i[2];r>3?(o=p===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=r<2&&h<i[1])?(s=0,d.v=n,d.n=i[1]):h<p&&(o=r<3||i[0]>n||n>p)&&(i[4]=r,i[5]=n,d.n=p,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),s=c,l=p;(e=s<2?t:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),h(s,l)):d.n=l:d.v=l);try{if(u=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(f=d.n<0)?l:r.call(n,d))!==a)break}catch(e){i=t,s=1,l=e}finally{u=1}}return{value:e,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function f(){}e=Object.getPrototypeOf;var d=[][n]?e(e([][n]())):(u(e={},n,function(){return this}),e),h=f.prototype=s.prototype=Object.create(d);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,u(t,o,"GeneratorFunction")),t.prototype=Object.create(h),t}return c.prototype=f,u(h,"constructor",f),u(f,"constructor",c),c.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(h),u(h,o,"Generator"),u(h,n,function(){return this}),u(h,"toString",function(){return"[object Generator]"}),(l=function(){return{w:i,m:p}})()}function u(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}u=function(t,e,r,n){function i(e,r){u(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},u(t,e,r,n)}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||f(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){if(t){if("string"==typeof t)return d(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function h(t,e,r,n,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,o)}function p(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){h(i,n,o,a,s,"next",t)}function s(t){h(i,n,o,a,s,"throw",t)}a(void 0)})}}var b=function(){var t=p(l().m(function t(e,r){var n,o,a,s,u,f,d,h,p,b,g;return l().w(function(t){for(;;)switch(t.n){case 0:return o=e.getAttribute("drilldown.groupBy",["node","instance","dimension"]),a=e.getAttribute("drilldown.groupByLabel",[]),s=e.getAttribute("drawer.tab"),u=e.getAttribute("overlays"),e.updateAttribute("drilldown.loading",!0),e.updateAttribute("drilldown.error",null),f=e.getFilteredAvailableNodeIds(),d={groupBy:o,groupByLabel:a,method:"value",nodesScope:f},"selectedArea"===s&&null!==u&&void 0!==u&&null!==(n=u.highlight)&&void 0!==n&&n.range&&(h=c(u.highlight.range,2),p=h[0],b=h[1],d.highlightAfter=p,d.highlightBefore=b,d.baselineAfter=p,d.baselineBefore=b),t.n=1,(0,i.fetchChartWeights)(e,{attrs:d,signal:r});case 1:return g=t.v,e.updateAttribute("drilldown.data",g),e.updateAttribute("drilldown.loading",!1),t.a(2,g)}},t)}));return function(e,r){return t.apply(this,arguments)}}();e.default=function(){var t,e=(0,o.useChart)(),r=(0,o.useAttributeValue)("drilldown.data"),i=(0,o.useAttributeValue)("drilldown.loading",!1),u=(0,o.useAttributeValue)("drilldown.error"),c=(0,o.useAttributeValue)("drilldown.groupBy",["node","instance","dimension"]),f=(0,o.useAttributeValue)("drilldown.groupByLabel",[]),d=(0,o.useAttributeValue)("drawer.action"),h=(0,o.useAttributeValue)("drawer.tab"),g=(0,o.useAttributeValue)("after"),m=(0,o.useAttributeValue)("before"),y=(0,o.useAttributeValue)("overlays"),v=(0,n.useMemo)(function(){var t;if(null===r||void 0===r||!r.result)return{hierarchicalData:[],groupedBy:c};var n=(null===(t=r.request)||void 0===t||null===(t=t.aggregations)||void 0===t||null===(t=t.metrics)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.group_by)||c,o=s(n).reverse(),i=(0,a.transformWeightsData)(r,n,e);return{hierarchicalData:(0,a.buildHierarchicalTree)(i,o),groupedBy:o}},[r,c,e]),x=v.hierarchicalData,w=v.groupedBy;return(0,n.useEffect)(function(){if("drillDown"===d&&e){var t=new AbortController,r=function(){var r=p(l().m(function r(){var n;return l().w(function(r){for(;;)switch(r.p=r.n){case 0:return r.p=0,r.n=1,b(e,t.signal);case 1:r.n=4;break;case 2:if(r.p=2,"AbortError"!==(n=r.v).name){r.n=3;break}return r.a(2);case 3:e.updateAttribute("drilldown.error",n.errorMessage||"Failed to fetch drilldown data"),e.updateAttribute("drilldown.loading",!1);case 4:return r.a(2)}},r,null,[[0,2]])}));return function(){return r.apply(this,arguments)}}();return r(),function(){t.abort()}}},[d,h,c,f,g,m,null===y||void 0===y||null===(t=y.highlight)||void 0===t?void 0:t.range]),{hierarchicalData:x,loading:i,error:u,groupedBy:w}}},51056(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;d(r(96540));var o=r(78904),i=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(6504)),a=d(r(33640)),s=r(22332),l=r(61557),u=d(r(40235)),c=r(74848),f=["onClick"];function d(t){return t&&t.__esModule?t:{default:t}}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(e){b(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function b(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var g={values:!0,drillDown:!1,compare:!0,correlate:!1},m=function(t){var e=t.chart,r=t.selected,n=(0,s.useAttributeValue)("overlays").highlight,i=null===n||void 0===n?void 0:n.range;return(0,c.jsx)(a.default,{content:i?"Selected Area - Analyze data for the highlighted time range":"Select an area on the chart to enable this option",children:(0,c.jsx)(o.Button,{tiny:!0,neutral:!r,label:"Selected area",disabled:!i,onClick:function(){return e.updateAttribute("drawer.tab",l.tabs.selectedArea)}})})};e.default=function(t){t.onClick;var e=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,f),r=(0,s.useChart)(),n=(0,s.useAttributeValue)("drawer.action","compare"),d=(0,s.useAttributeValue)("drawer.tab","window"),h=(0,s.useAttributeValue)("drawer.showAdvancedStats",!1);return(0,c.jsxs)(o.Flex,p(p({justifyContent:"between","data-noprint":!0},e),{},{children:[(0,c.jsxs)(o.Flex,{gap:6,children:[(0,c.jsxs)(o.Flex,{gap:1,children:[(0,c.jsx)(a.default,{content:"Compare - Compare current data with different time periods or baselines",children:(0,c.jsx)(o.Button,{tiny:!0,neutral:l.actions.compare!==n,icon:"weights_compare",onClick:function(){return r.updateAttribute("drawer.action",l.actions.compare)}})}),(0,c.jsx)(a.default,{content:"Chart Values - View dimension values, statistics, and time ranges",children:(0,c.jsx)(o.Button,{tiny:!0,neutral:l.actions.values!==n,icon:"line_chart",onClick:function(){return r.updateAttribute("drawer.action",l.actions.values)}})}),(0,c.jsx)(a.default,{content:"Drill Down - Explore related metrics and child contexts using weights analysis",children:(0,c.jsx)(o.Button,{tiny:!0,neutral:l.actions.drillDown!==n,icon:"weights_drill_down",onClick:function(){return r.updateAttribute("drawer.action",l.actions.drillDown)}})}),(0,c.jsx)(a.default,{content:"Correlate - Find metrics that correlate with the current chart's behavior",children:(0,c.jsx)(o.Button,{tiny:!0,neutral:l.actions.correlate!==n,icon:"correlation_inv",onClick:function(){return r.updateAttribute("drawer.action",l.actions.correlate)}})})]}),(0,c.jsxs)(o.Flex,{gap:1,children:[(0,c.jsx)(a.default,{content:"Window - Analyze data for the entire visible time window",children:(0,c.jsx)(o.Button,{tiny:!0,neutral:l.tabs.window!==d,label:"Window",onClick:function(){return r.updateAttribute("drawer.tab",l.tabs.window)}})}),(0,c.jsx)(m,{chart:r,selected:l.tabs.selectedArea===d})]})]}),g[n]&&(0,c.jsx)(o.Flex,{children:(0,c.jsx)(i.Button,{icon:(0,c.jsx)(i.default,{svg:u.default,size:"16px"}),title:h?"Hide advanced statistics - Click to show only basic stats":"Show advanced statistics - Click to display detailed metrics including min, max, avg, and more",active:h,onClick:function(){return r.updateAttribute("drawer.showAdvancedStats",!h)},"data-testid":"drawer-header-advanced-stats"})})]}))}},65152(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=p(t)&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a}(t,e)}(r(96540)),o=r(78904),i=r(22332),a=h(r(51056)),s=h(r(66632)),l=h(r(83978)),u=h(r(2228)),c=h(r(18502)),f=r(61557),d=r(74848);function h(t){return t&&t.__esModule?t:{default:t}}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function b(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=p(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==p(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var g=b(b(b(b({},f.actions.values,s.default),f.actions.drillDown,l.default),f.actions.compare,u.default),f.actions.correlate,c.default);e.default=function(){var t=(0,i.useAttributeValue)("expandedHeight"),e=(0,i.useAttributeValue)("drawer.action"),r=(0,n.useMemo)(function(){return g[e]||g.compare},[e]);return(0,d.jsxs)(o.Flex,{height:"".concat(t,"px"),flex:!1,column:!0,"data-testid":"drawer",background:"mainChartBg",children:[(0,d.jsx)(a.default,{padding:[0,2,2,2]}),(0,d.jsx)(o.Flex,{flex:!0,column:!0,padding:[0,2,3,2],overflow:{vertical:"scroll"},height:"100%",children:(0,d.jsx)(r,{})})]})}},70435(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),a=(o=r(882))&&o.__esModule?o:{default:o},s=r(78904),l=r(22332),u=r(74848);var c=(0,a.default)(s.Flex).attrs({padding:[3,0],height:2}).withConfig({displayName:"separator__ResizableBar",componentId:"sc-1nvt1gy-0"})(['cursor:row-resize;background:transparent;position:relative;&::before{content:"";position:absolute;top:50%;left:50%;right:0;height:2px;width:30%;background:',";transform:translate(-50%,-50%);transition:height 0.2s ease;}&:hover::before{height:4px;background:",";}"],function(t){var e=t.theme;return(0,s.getColor)("borderSecondary")({theme:e})},function(t){var e=t.theme;return(0,s.getColor)("primary")({theme:e})});e.default=function(){var t=(0,l.useChart)(),e=(0,l.useAttributeValue)("expandedHeight"),r=parseInt(t.getAttribute("height")||"400"),n=(0,i.useRef)(null);return(0,u.jsx)(c,{onMouseDown:function(o){o.preventDefault(),n.current=o.clientY;var i=function(o){var i=o.clientY-n.current,a=Math.max(150,Math.min(600,e-i)),s=Math.max(200,r+i);t.updateAttribute("expandedHeight",a),t.updateAttribute("height",s),t.trigger("resize")},a=function(){document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",a),document.body.style.cursor="",n.current=null};document.addEventListener("mousemove",i),document.addEventListener("mouseup",a),document.body.style.cursor="row-resize"}})}},99891(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}e.Ay=void 0;h(r(96540));var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(882)),i=r(78904),a=h(r(74113)),s=r(22332),l=h(r(10534)),u=r(89380),c=h(r(62841)),f=r(74848),d=["uiName","ref"];function h(t){return t&&t.__esModule?t:{default:t}}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function b(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach(function(e){g(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function g(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var v=(0,o.default)(i.Text).withConfig({displayName:"easyPie__Label",componentId:"sc-1c7qdjs-0"})(["line-height:1;font-size:",";",";"],function(t){return t.fontSize},function(t){return t.isFetching&&c.default}),x=function(){var t=(0,s.useLatestConvertedValue)("selected");return(0,f.jsx)(v,{color:"text",fontSize:"3em",strong:!0,children:t})},w=function(){var t=m((0,s.useDimensionIds)(),1)[0],e=(0,s.useUnitSign)({dimensionId:t});return(0,f.jsx)(v,{color:"textLite",fontSize:"1.5em",children:e})},j=(0,o.default)(i.Flex).attrs({position:"absolute",column:!0,alignContent:"center",justifyContent:"center",gap:2}).withConfig({displayName:"easyPie__StatsContainer",componentId:"sc-1c7qdjs-1"})(["inset:0;text-align:center;font-size:",";"],function(t){return t.fontSize}),O=function(t){var e=t.size;return(0,f.jsxs)(j,{fontSize:"".concat(e/15,"px"),children:[(0,f.jsx)(x,{}),(0,f.jsx)(w,{})]})},_=(0,o.keyframes)(["from{opacity:0.2;}to{opacity:0.6;}"]),S=(0,o.default)(i.Flex).attrs(function(t){return b({background:"borderSecondary",round:"100%",width:"100%",height:"100%"},t)}).withConfig({displayName:"easyPie__Skeleton",componentId:"sc-1c7qdjs-2"})(["animation:"," 1.6s ease-in infinite;"],_),P=function(t){var e=t.uiName,r=t.ref,n=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,d),o=(0,s.useAttributeValue)("loaded"),i=(0,s.useOnResize)(e),l=i.width,c=i.height,h=l<c?l:c;return(0,f.jsx)(u.ChartWrapper,{alignItems:"center",ref:r,children:o?(0,f.jsx)(a.default,b(b({uiName:e,position:"relative",justifyContent:"center",alignItems:"center"},n),{},{children:(0,f.jsx)(O,{size:h})})):(0,f.jsx)(S,{size:h})})};e.Ay=(0,l.default)(P,{tile:!0})},6533(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=r(78904),a=r(22332),s=b(r(34975)),l=b(r(30882)),u=b(r(60863)),c=b(r(52441)),f=b(r(94069)),d=b(r(6504)),h=r(74848),p=["labelProps","defaultMinimal"];function b(t){return t&&t.__esModule?t:{default:t}}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach(function(e){y(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function y(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v=(0,h.jsx)(i.TextMicro,{padding:[0,0,2],color:"textLite",children:"When aggregating multiple source time-series metrics to one visible dimension on the chart, use the following aggregation function"}),x={heading:"Metrics aggregation",body:"View or select the aggregation function applied when multiple source time-series metrics need to be grouped together to be presented as dimensions on this chart."},w=function(t){var e=t.labelProps,r=t.defaultMinimal,n=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,p),i=(0,a.useChart)(),b=(0,a.useAttributeValue)("aggregationMethod"),g=function(t){return(0,o.useMemo)(function(){return[{value:"avg",label:"Average",description:"For each point presented, calculate the average of the metrics contributing to it.",short:"AVG()",icon:(0,h.jsx)(d.default,{svg:s.default,color:"textLite",size:"10px"}),"data-track":t.track("avg")},{value:"sum",label:"Sum",description:"For each point presented, calculate the sum of the metrics contributing to it.",short:"SUM()",icon:(0,h.jsx)(d.default,{svg:l.default,color:"textLite",size:"10px"}),"data-track":t.track("sum")},{value:"min",label:"Minimum",description:"For each point presented, present the minimum of the metrics contributing to it.",short:"MIN()",icon:(0,h.jsx)(d.default,{svg:u.default,color:"textLite",size:"10px"}),"data-track":t.track("min")},{value:"max",label:"Maximum",description:"For each point presented, present the maximum of the metrics contributing to it.",short:"MAX()",icon:(0,h.jsx)(d.default,{svg:c.default,color:"textLite",size:"10px"}),"data-track":t.track("max")}]},[t])}(i),y=(0,a.useIsMinimal)(),w=g.find(function(t){return t.value===b})||g[0],j=w.short,O=w.icon;return(0,h.jsx)(f.default,m(m({value:b,onChange:i.updateAggregationMethodAttribute,items:g,"data-track":i.track("aggregate"),dropTitle:v},n),{},{labelProps:m({chevron:!y&&!r,secondaryLabel:y||r?"":"the",label:y||r?O:j,title:x.heading,tooltipProps:x},e)}))};e.default=(0,o.memo)(w)},35369(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueColumn=e.minColumn=e.metricsColumn=e.maxColumn=e.labelColumn=e.instancesColumn=e.contributionColumn=e.avgColumn=e.anomalyRateColumn=e.alertsColumn=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=r(78904),a=f(r(99010)),s=f(r(75010)),l=r(22332),u=f(r(36112)),c=r(74848);function f(t){return t&&t.__esModule?t:{default:t}}e.labelColumn=function(t){return{id:"label",header:function(){return(0,c.jsx)(i.TextSmall,{strong:!0,children:"Name"})},size:200,minSize:60,maxSize:800,cell:function(e){var r=e.getValue,n=e.row,s=function(t){return(0,o.useMemo)(function(){return{dimension:"dimensions",node:"nodes",instance:t.intl("instance",{count:2}),context:"contexts",label:"labels",value:"values",default:"values"}},[])}((0,l.useChart)());return(0,c.jsxs)(i.Flex,{justifyContent:"between",alignItems:"center",padding:[0,0,0,3*n.depth],width:"100%",children:[(0,c.jsxs)(i.Flex,{gap:1,children:[(0,c.jsx)(a.default,{id:r()}),(0,c.jsx)(i.TextSmall,{strong:!0,onClick:n.original.disabled?void 0:function(t){t.preventDefault(),t.stopPropagation(),n.getToggleSelectedHandler()(t)},cursor:n.original.disabled?"default":"pointer",whiteSpace:"normal",wordBreak:"break-word",children:r()})]}),n.getCanExpand()&&(0,c.jsx)(u.default,{label:s[r()]||s[t]||s.default,onClick:function(t){t.preventDefault(),t.stopPropagation(),n.getToggleExpandedHandler()(t),setTimeout(function(){return t.target.scrollIntoView({behavior:"smooth",block:"nearest"})})},iconRotate:n.getIsExpanded()?2:null,textProps:{fontSize:"10px",color:"textLite"},alignItems:"center"})]})}}},e.uniqueColumn=function(){return{id:"unique",header:(0,c.jsx)(i.TextMicro,{strong:!0,children:"Unique"}),size:45,minSize:30,maxSize:90,cell:function(t){var e=t.getValue;return(0,c.jsx)(i.TextSmall,{color:"textLite",children:e()})},sortingFn:"basic"}},e.minColumn=function(){return{id:"min",header:(0,c.jsxs)(i.TextMicro,{strong:!0,children:["Min ",(0,c.jsx)(s.default,{visible:!0})]}),size:60,minSize:30,maxSize:300,fullWidth:!0,cell:function(t){var e=t.getValue,r=(0,l.useConverted)(e());return(0,c.jsx)(i.TextSmall,{color:"textLite",children:r})},sortingFn:"basic"}},e.avgColumn=function(){return{id:"avg",header:(0,c.jsxs)(i.TextMicro,{strong:!0,children:["Avg ",(0,c.jsx)(s.default,{visible:!0})]}),size:60,minSize:30,maxSize:300,fullWidth:!0,cell:function(t){var e=t.getValue,r=(0,l.useConverted)(e());return(0,c.jsx)(i.TextSmall,{color:"textLite",children:r})},sortingFn:"basic"}},e.maxColumn=function(){return{id:"max",header:(0,c.jsxs)(i.TextMicro,{strong:!0,children:["Max ",(0,c.jsx)(s.default,{visible:!0})]}),size:60,minSize:30,maxSize:300,fullWidth:!0,cell:function(t){var e=t.getValue,r=(0,l.useConverted)(e());return(0,c.jsx)(i.TextSmall,{color:"textLite",children:r})},sortingFn:"basic"}},e.instancesColumn=function(){return{id:"instances",header:(0,c.jsx)(i.TextMicro,{strong:!0,children:"Instances"}),size:60,minSize:30,maxSize:300,fullWidth:!0,cell:function(t){var e,r=t.getValue,n=t.row;if(null===(e=n.original.info)||void 0===e||!e.is)return(0,c.jsx)(i.TextSmall,{color:"textLite",children:r()});var o=n.original.info.is,a=o.qr,s=void 0===a?0:a,l=o.sl,u=void 0===l?0:l,f=o.ex,d=void 0===f?0:f;return(0,c.jsxs)(i.Flex,{flex:!0,column:!0,gap:.5,children:[(0,c.jsxs)(i.TextSmall,{color:"textLite",children:[(0,c.jsx)(i.TextSmall,{color:"primary",children:s})," of ",u+d]}),(0,c.jsx)(i.ProgressBar,{background:"progressBg",color:["green","deyork"],height:2,width:"".concat(s/(u+d)*100,"%"),containerWidth:"100%",border:"none"})]})},sortingFn:"basic"}},e.metricsColumn=function(){return{id:"metrics",header:(0,c.jsx)(i.TextMicro,{strong:!0,children:"Metrics"}),size:60,minSize:30,maxSize:300,fullWidth:!0,cell:function(t){var e,r=t.row,n=t.getValue;if(null===(e=r.original.info)||void 0===e||!e.ds)return(0,c.jsx)(i.TextSmall,{color:"textLite",children:n()});var o=r.original.info.ds,a=o.qr,s=void 0===a?0:a,l=o.sl,u=void 0===l?0:l,f=o.ex,d=void 0===f?0:f;return(0,c.jsxs)(i.Flex,{flex:!0,column:!0,gap:.5,children:[(0,c.jsxs)(i.TextSmall,{color:"textLite",children:[(0,c.jsx)(i.TextSmall,{color:"primary",children:s})," of ",u+d]}),(0,c.jsx)(i.ProgressBar,{background:"progressBg",color:["green","deyork"],height:2,width:"".concat(s/(u+d)*100,"%"),containerWidth:"100%",border:"none"})]})},sortingFn:"basic"}},e.contributionColumn=function(){return{id:"contribution",header:(0,c.jsx)(i.TextMicro,{strong:!0,children:"Vol %"}),size:60,minSize:30,maxSize:300,fullWidth:!0,cell:function(t){var e,r=t.row,n=t.getValue;return null!==(e=r.original.info)&&void 0!==e&&e.sts?(0,c.jsxs)(i.Flex,{flex:!0,column:!0,gap:.5,children:[(0,c.jsxs)(i.TextSmall,{color:"primary",children:[Math.round(100*(n()+Number.EPSILON))/100,"%"]}),(0,c.jsx)(i.ProgressBar,{background:"progressBg",color:["green","deyork"],height:2,width:"".concat(n(),"%"),containerWidth:"100%",border:"none"})]}):(0,c.jsx)(i.TextSmall,{color:"textLite",children:n()})},sortingFn:"basic"}},e.anomalyRateColumn=function(){return{id:"anomalyRate",header:(0,c.jsx)(i.TextMicro,{strong:!0,children:"Anomaly%"}),size:60,minSize:30,maxSize:300,fullWidth:!0,cell:function(t){var e,r=t.row,n=t.getValue;return null!==(e=r.original.info)&&void 0!==e&&e.sts?(0,c.jsxs)(i.Flex,{flex:!0,column:!0,gap:.5,children:[(0,c.jsxs)(i.TextSmall,{color:"textLite",children:[Math.round(100*(n()+Number.EPSILON))/100,"%"]}),(0,c.jsx)(i.ProgressBar,{background:"progressBg",color:"anomalyText",height:2,width:"".concat(n(),"%"),containerWidth:"100%",border:"none"})]}):(0,c.jsx)(i.TextSmall,{color:"textLite",children:n()})},sortingFn:"basic"}},e.alertsColumn=function(){return{id:"alerts",header:(0,c.jsx)(i.TextMicro,{strong:!0,children:"Alerts"}),size:60,minSize:30,maxSize:300,fullWidth:!0,cell:function(t){var e,r=t.row,n=t.getValue;if(null===(e=r.original.info)||void 0===e||!e.al)return(0,c.jsx)(i.TextSmall,{color:"textLite",children:n()});var o=r.original.info.al,a=o.cl,s=void 0===a?0:a,l=o.cr,u=void 0===l?0:l,f=o.wr,d=void 0===f?0:f,h={text:u,flavour:u?"error":"disabledError"},p={text:d,flavour:d?"warning":"disabledWarning"},b={text:s,flavour:s?"clear":"disabledClear"};return(0,c.jsx)(i.Flex,{children:(0,c.jsx)(i.MasterCard,{pillLeft:h,pillRight:p,pillEnd:b})})},sortingFn:"basic"}}},21105(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),a=r(22332),s=(o=r(94069))&&o.__esModule?o:{default:o},l=r(74848),u=["labelProps"];function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach(function(e){d(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function d(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h={heading:"Context",body:"View or select the context applied on this chart."},p=function(t){var e=t.labelProps,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,u),n=(0,a.useChart)(),o=(0,a.useAttributeValue)("contextScope"),i=(0,a.useAttributeValue)("contextItems");if(!i.length)return null;var c=(i.find(function(t){return t.value===o[0]})||i[0]).label;return(0,l.jsx)(s.default,f(f({value:o,onChange:n.updateContextScopeAttribute,items:i,"data-track":n.track("contextScope")},r),{},{labelProps:f({secondaryLabel:"On",label:c,title:h.heading,tooltipProps:h},e)}))};e.default=(0,i.memo)(p)},65877(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),a=r(22332),s=(o=r(34737))&&o.__esModule?o:{default:o},l=r(96659),u=r(35369),c=r(74848),f=["labelProps"];function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var g={heading:"Dimensions",body:"View or filter the original dimensions contributing time-series metrics to this chart. This menu also presents the contribution of each original dimension on the chart, and a break down of the anomaly rate of the data per dimension."},m=[(0,u.labelColumn)(),(0,u.metricsColumn)(),(0,u.contributionColumn)(),(0,u.anomalyRateColumn)(),(0,u.minColumn)(),(0,u.avgColumn)(),(0,u.maxColumn)()],y=function(t){var e=t.labelProps,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,f),n=(0,a.useChart)(),o=(0,a.useAttributeValue)("selectedDimensions"),u=(0,a.useAttributeValue)("dimensions"),b=(0,a.useAttributeValue)("dimensionsTotals"),y=(0,i.useCallback)(function(){return Object.keys(u).map(function(t){var e=o.includes(t);return(0,l.getStats)(n,u[t],{key:"dimensions",props:{selected:e}})})},[u,o]),v=p((0,a.useAttribute)("nodesSortBy"),2),x=v[0],w=v[1];return(0,c.jsx)(s.default,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach(function(e){h(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({title:"Dimensions",resourceName:"dimension","data-track":n.track("dimensions"),labelProps:e,onChange:n.updateDimensionsAttribute,getOptions:y,tooltipProps:g,value:o,columns:m,sortBy:x,onSortByChange:w,totals:b},r))};e.default=(0,i.memo)(y)},94069(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ItemContainer=e.Item=void 0;var n=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=b(t)&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a}(t,e)}(r(96540)),o=p(r(882)),i=r(22332),a=r(78904),s=p(r(97517)),l=p(r(73862)),u=p(r(6504)),c=p(r(33640)),f=p(r(36112)),d=r(74848),h=["labelProps"];function p(t){return t&&t.__esModule?t:{default:t}}function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach(function(e){y(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function y(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=b(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==b(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v=e.ItemContainer=(0,o.default)(a.Flex).attrs(function(t){return m({as:"li",role:"option",padding:[1,2],gap:1,justifyContent:"between"},t)}).withConfig({displayName:"dropdownSingleSelect__ItemContainer",componentId:"sc-u6ous4-0"})(["cursor:",";opacity:",";align-items:",";"," "," ",""],function(t){return t.disabled?"default":"pointer"},function(t){var e=t.disabled,r=t.stale;return t.selected||!r&&!e?1:.7},function(t){return t.alignItems||"center"},function(t){var e=t.selected,r=t.theme;return e&&"\n background-color: ".concat(function(t){var e=t.theme;return("Dark"===e.name?(0,a.getRgbColor)(["green","netdata"],.3):(0,a.getRgbColor)(["green","frostee"]))({theme:e})}({theme:r}),";\n ")},function(t){var e=t.selected,r=t.theme;return!e&&"\n &:hover {\n background-color: ".concat((0,a.getColor)("borderSecondary")({theme:r}),";\n }\n ")},function(t){var e=t.justDesc,r=t.theme;return e&&"\n pointer-events: none;\n border-top: 1px solid ".concat((0,a.getColor)("borderSecondary")({theme:r}),";\n ")}),x=e.Item=function(t){var e=t.value,r=t.item,n=t.onItemClick,o=t.itemProps,i=r.value,f=r.label,h=r.description,p=r.justDesc,b=void 0!==p&&p,g=e===i;return(0,d.jsx)(v,m(m({},o),{},{disabled:g,selected:g,onClick:function(){return n(i)},justDesc:b,children:(0,d.jsxs)(a.Flex,{column:b,padding:[0,1],alignItems:"start",width:"100%",justifyContent:"between",children:[!!f&&(0,d.jsxs)(a.Text,{children:[f,g&&(0,d.jsx)(u.default,{margin:[-.5,2,-.5,0],width:"14px",height:"14px",color:"primary",svg:s.default})]}),!!h&&(b?(0,d.jsx)(a.TextMicro,{color:"textLite",children:h}):(0,d.jsx)(c.default,{content:h,zIndex:9999999,children:(0,d.jsx)("div",{children:(0,d.jsx)(u.default,{width:"14px",height:"14px",color:"textLite",svg:l.default})})}))]})}))},w=function(t){var e=t.labelProps,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,h),n=(0,i.useAttributeValue)("id");return(0,d.jsx)(a.Menu,m(m(m({},r),{},{Item:x,dropProps:{align:{top:"bottom",left:"left"},"data-toolbox":n,width:"460px",zIndex:100},dropdownProps:{padding:[0,0,2,0],height:{max:"60vh"}}},r),{},{children:(0,d.jsx)(f.default,m(m({},e),{},{"data-value":"".concat(r.value||"No selection")}))}))};e.default=(0,n.memo)(w)},34737(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.meta=e.default=void 0;var n=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=p(t)&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a}(t,e)}(r(96540)),o=h(r(882)),i=r(78904),a=r(22332),s=h(r(25772)),l=h(r(36112)),u=h(r(4975)),c=r(74848),f=["getOptions","onItemClick","columns","sortBy","onSortByChange","expanded","onExpandedChange","tableMeta","enableSubRowSelection","value","newValues","totals","emptyMessage","title","filterSelectedCount","sidebar","totalSelected"],d=["label","labelProps","onChange","getOptions","secondaryLabel","tooltipProps","value","columns","sortBy","onSortByChange","expanded","onExpandedChange","tableMeta","enableSubRowSelection","totals","emptyMessage","resourceName","title","filterSelectedCount","sidebar","totalSelected"];function h(t){return t&&t.__esModule?t:{default:t}}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return g(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function m(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach(function(e){x(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function x(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=p(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==p(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var w=(0,o.default)(i.Flex).withConfig({displayName:"dropdownTable__Container",componentId:"sc-194yxs8-0"})(["box-shadow:0 18px 28px ",";list-style-type:none;border-radius:2px;border:1px solid ",";*{box-sizing:border-box;}"],(0,i.getColor)("dropdownShadow"),(0,i.getColor)("borderSecondary")),j=e.meta=function(t,e,r){return{cellStyles:v(v({},t.depth>0&&{backgroundOpacity:.4}),t.depth>0&&0===r&&{border:{side:"left",size:"4px"}}),searchStyles:{autoFocus:!0}}},O=function(){},_=[{id:"contribution",desc:!0}],S={},P=function(t){return t},M=function(t){var e=t.getOptions,r=t.onItemClick,o=t.columns,a=t.sortBy,l=t.onSortByChange,d=t.expanded,h=t.onExpandedChange,p=t.tableMeta,g=void 0===p?j:p,y=t.enableSubRowSelection,x=t.value,_=t.newValues,S=t.totals,M=t.emptyMessage,C=t.title,A=t.filterSelectedCount,D=void 0===A?P:A,T=t.sidebar,I=t.totalSelected,E=m(t,f),F=(0,n.useMemo)(e,[e]),L=b((0,n.useState)(function(){return k(F,{})}),2),z=L[0],N=L[1];(0,n.useEffect)(function(){var t=k(F,{});N(function(e){return(0,s.default)(e,t)?e:t})},[]);var V=(0,n.useMemo)(function(){return!!_&&(0,s.default)(x,_)},[_]),B=(0,n.useMemo)(function(){return null!==_&&void 0!==_&&_.length?D(_).length:0},[_]);return(0,c.jsxs)(w,v(v({role:"listbox",background:"modalTabsBackground",padding:[0],margin:[1,0],column:!0,tabindex:"-1",flex:!0},E),{},{children:[(0,c.jsxs)(i.Flex,{overflow:"hidden",children:[(0,c.jsx)(i.Table,{title:C,enableResizing:!0,enableSorting:!0,enableSelection:!0,dataColumns:o,data:F,onRowSelected:r,onSearch:O,meta:g,sortBy:a,rowSelection:z,onSortingChange:l,expanded:d,onExpandedChange:h,enableSubRowSelection:y,width:{base:250,max:"80vw"}}),T]}),(0,c.jsxs)(i.Flex,{padding:[2],justifyContent:"between",alignItems:"center",border:{side:"top",color:"borderSecondary"},children:[(0,c.jsxs)(i.Flex,{gap:1,alignItems:"center",children:[(0,c.jsxs)(i.TextSmall,{color:"textLite",children:["Selected ",(0,c.jsx)(i.TextSmall,{strong:!0,children:B})," of"," ",(0,c.jsx)(i.TextSmall,{strong:!0,children:((null===S||void 0===S?void 0:S.sl)||0)+((null===S||void 0===S?void 0:S.ex)||0)||F.length})]}),(0,c.jsx)(i.Button,{padding:[0],flavour:"borderless",width:"auto",height:"auto",cursor:"pointer",color:"primary",onClick:function(){N({}),r([])},disabled:!(null!==_&&void 0!==_&&_.length)&&!x.length,label:"clear",small:!0}),(0,c.jsx)(i.Button,{padding:[0],flavour:"borderless",width:"auto",height:"auto",cursor:"pointer",color:"primary",onClick:function(){N(v({},z)),r(x)},disabled:!V,label:"reset",small:!0}),!(null!==_&&void 0!==_&&_.length)&&!!M&&(0,c.jsx)(i.TextSmall,{color:"warningText",children:M})]}),S&&(0,c.jsx)(u.default,v({selected:x,totalSelected:I},S))]})]}))},k=function(t,e,r){return t.reduce(function(t,e,n){return"undefined"!==typeof r&&(n="".concat(r,".").concat(n)),e.selected&&(t[n]=!0),e.children&&k(e.children,t,n),t},e)};e.default=function(t){var e=t.label,r=t.labelProps,o=t.onChange,s=t.getOptions,f=t.secondaryLabel,h=t.tooltipProps,p=t.value,g=t.columns,y=t.sortBy,x=void 0===y?_:y,w=t.onSortByChange,j=t.expanded,O=void 0===j?S:j,P=t.onExpandedChange,k=t.tableMeta,C=t.enableSubRowSelection,A=t.totals,D=t.emptyMessage,T=t.resourceName,I=t.title,E=t.filterSelectedCount,F=t.sidebar,L=t.totalSelected,z=m(t,d),N=b((0,n.useState)(!1),2),V=N[0],B=N[1],R=b((0,n.useState)(),2),W=R[0],H=R[1],U=(0,n.useRef)();(0,n.useEffect)(function(){!V&&W&&(U.current=null,o(W))},[V]),(0,n.useEffect)(function(){return function(){return U.current&&o(U.current)}},[]);var K=(0,a.useAttributeValue)("id");return(0,c.jsx)(i.Menu,v(v({onChange:function(t){U.current=t,H(t)},hasSearch:!1,closeOnClick:!1,Dropdown:M,dropProps:{align:{top:"bottom",left:"left"},"data-toolbox":K,keepHorizontal:!0,stretch:null,zIndex:100},dropdownProps:{height:{max:"60vh"},width:"100%",overflow:"auto",columns:g,getOptions:s,sortBy:x,onSortByChange:w,expanded:O,onExpandedChange:P,tableMeta:k,enableSubRowSelection:C,value:p,totals:A,newValues:W,emptyMessage:D,title:I,filterSelectedCount:E,sidebar:F,totalSelected:L},value:p,onOpen:function(){return B(!0)},onClose:function(){return B(!1)}},z),{},{children:(0,c.jsx)(l.default,v({"data-value":p.join("|")||"".concat(T," all-selected"),secondaryLabel:f,label:e||(0,c.jsx)(u.default,v(v({selected:p,totalSelected:L},A),{},{resourceName:T,teaser:!0})),title:h.heading,tooltipProps:h},r))}))}},67115(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;(o=r(96540))&&o.__esModule;var o,i=r(78904),a=r(22332),s=r(74848),l=["setSelected","testIdPrefix","param","children","border","title"];function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach(function(e){f(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e.default=function(t){var e=t.setSelected,r=t.testIdPrefix,n=t.param,o=t.children,u=t.border,f=void 0===u?{side:"left",color:"borderSecondary"}:u,d=t.title,h=void 0===d?"Filters":d,p=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,l),b=(0,a.useAttributeValue)(n);return(0,s.jsxs)(i.Flex,c(c({"data-testid":"".concat(r,"-filter"),column:!0,padding:[2,2,0],border:f},p),{},{children:[(0,s.jsxs)(i.Flex,{justifyContent:"between",gap:2,cursor:"pointer",children:[(0,s.jsxs)(i.Flex,{alignItems:"center",gap:1,children:[(0,s.jsx)(i.TextSmall,{strong:!0,children:h}),!(null===b||void 0===b||!b.length)&&(0,s.jsx)(i.Pill,{flavour:"neutral",hollow:!0,"data-testid":"".concat(r,"-selected-count"),tiny:!0,children:null===b||void 0===b?void 0:b.length})]}),!(null===b||void 0===b||!b.length)&&(0,s.jsx)(i.Button,{padding:[0],flavour:"borderless",onClick:function(t){t.stopPropagation(),e([])},"data-testid":"".concat(r,"-filter-resetAll"),label:"Reset",small:!0})]}),o]}))}},75157(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;M(r(96540));var n=r(78904),o=r(22753),i=r(22332),a=M(r(6533)),s=M(r(36495)),l=M(r(65877)),u=M(r(55146)),c=M(r(4496)),f=M(r(21105)),d=M(r(90648)),h=M(r(26482)),p=M(r(67231)),b=M(r(88623)),g=M(r(6885)),m=M(r(64776)),y=M(r(34386)),v=M(r(68317)),x=M(r(10120)),w=M(r(31952)),j=M(r(7351)),O=M(r(40813)),_=M(r(49484)),S=M(r(6504)),P=r(74848);function M(t){return t&&t.__esModule?t:{default:t}}function k(t){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k(t)}function C(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?C(Object(r),!0).forEach(function(e){D(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function D(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=k(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==k(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var T={secondaryLabel:"The"},I={},E={groupBy:{icon:(0,P.jsx)(S.default,{svg:j.default,color:"textLite",size:"12px"}),padding:[0]},nodes:{icon:(0,P.jsx)(S.default,{svg:y.default,color:"textLite",size:"16px"}),padding:[0]},instances:{icon:(0,P.jsx)(S.default,{svg:v.default,color:"textLite",size:"16px"}),padding:[0]},dimensions:{icon:(0,P.jsx)(S.default,{svg:x.default,color:"textLite",size:"16px"}),padding:[0]},labels:{icon:(0,P.jsx)(S.default,{svg:w.default,color:"textLite",size:"16px"}),padding:[0]},config:{icon:(0,P.jsx)(S.default,{svg:O.default,color:"textLite",size:"12px"}),padding:[.5]},showPostAggregations:{icon:(0,P.jsx)(S.default,{svg:_.default,color:"textLite",size:"10px"}),padding:[0]}};e.default=function(t){var e=t.plain,r=(0,o.useIsHeatmap)(),y=(0,i.useAttributeValue)("filterElements"),v=(0,i.useAttributeValue)("showPostAggregations"),x=(0,i.useIsMinimal)();return y?y.map(function(t,e){return(0,P.jsx)(t,{showPostAggregations:v},e)}):e?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(d.default,{labelProps:E.groupBy}),(0,P.jsx)(a.default,{labelProps:I,defaultMinimal:!0}),(0,P.jsx)(c.default,{labelProps:E.nodes}),(0,P.jsx)(u.default,{labelProps:E.instances}),(0,P.jsx)(l.default,{labelProps:E.dimensions}),(0,P.jsx)(b.default,{labelProps:E.labels})]}):v?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(n.Flex,{padding:x?[2,.5]:[.5],flexWrap:!0,gap:2,children:[(0,P.jsxs)(n.Flex,{alignItems:"center",children:[(0,P.jsx)(m.default,{labelProps:E.showPostAggregations}),!r&&(0,P.jsx)(f.default,{}),!r&&(0,P.jsx)(h.default,{labelProps:x?E.groupBy:{secondaryLabel:"Group by"}}),(0,P.jsx)(s.default,{labelProps:A({},r?x?I:T:I)}),x?(0,P.jsx)(n.TextSmall,{color:"textNoFocus",children:"<"}):(0,P.jsxs)(n.TextSmall,{color:"textLite",whiteSpace:"nowrap",children:["of the:"," "]})]}),(0,P.jsxs)(n.Flex,{round:!0,border:{side:"all",size:"2px",type:"dashed",color:"border"},alignItems:"center",children:[!r&&(0,P.jsx)(d.default,{labelProps:x?E.groupBy:{secondaryLabel:"Group by"}}),(0,P.jsx)(a.default,{labelProps:r?x?I:T:I}),(0,P.jsx)(c.default,{labelProps:x?E.nodes:I}),(0,P.jsx)(u.default,{labelProps:x?E.instances:I}),(0,P.jsx)(l.default,{labelProps:x?E.dimensions:I}),(0,P.jsx)(b.default,{labelProps:x?E.labels:I})]}),!x&&(0,P.jsx)(p.default,{})]}),(0,P.jsx)(g.default,{})]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(n.Flex,{flexWrap:!0,padding:x?[2,.5]:[.5],children:[(0,P.jsx)(m.default,{labelProps:E.showPostAggregations}),!r&&(0,P.jsx)(f.default,{}),!r&&(0,P.jsx)(d.default,{labelProps:x?E.groupBy:{secondaryLabel:"Group by"}}),(0,P.jsx)(a.default,{labelProps:r?x?I:T:I}),(0,P.jsx)(c.default,{labelProps:x?E.nodes:I}),(0,P.jsx)(u.default,{labelProps:x?E.instances:I}),(0,P.jsx)(l.default,{labelProps:x?E.dimensions:I}),(0,P.jsx)(b.default,{labelProps:x?E.labels:I}),!x&&(0,P.jsx)(p.default,{})]}),(0,P.jsx)(g.default,{})]})}},46874(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,o=(n=r(882))&&n.__esModule?n:{default:n},i=r(78904);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function l(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u=(0,o.default)(i.Flex).attrs(function(t){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach(function(e){l(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({alignItems:"center",border:{side:"bottom",color:"borderSecondary"},overflow:"auto",justifyContent:"between",flex:!1},t)}).withConfig({displayName:"filtersContainer__FiltersContainer",componentId:"sc-1f00tzv-0"})(["&::-webkit-scrollbar{height:0;}"]);e.default=u},90648(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),a=r(22332),s=r(78904),l=(o=r(34737))&&o.__esModule?o:{default:o},u=r(96659),c=r(35369),f=r(74848),d=["groupByKey","groupByLabelKey","sortByKey","expandedKey","onChange","trackingId","emptyMessage","labelProps"];function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||b(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||b(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){if(t){if("string"==typeof t)return g(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach(function(e){v(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function v(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var x={heading:"Group by",body:"Slice and dice the source time-series metrics in multiple ways, to get different viewing angles on them. Multiple groupings can be selected at the same time to fine tune the segmentation."},w=[(0,c.labelColumn)("label"),(0,c.uniqueColumn)(),(0,c.metricsColumn)(),(0,c.contributionColumn)(),(0,c.anomalyRateColumn)(),(0,c.minColumn)(),(0,c.avgColumn)(),(0,c.maxColumn)()],j=function(t){var e,r=t.groupByKey,n=void 0===r?"groupBy":r,o=t.groupByLabelKey,c=void 0===o?"groupByLabel":o,b=t.sortByKey,g=void 0===b?"groupBySortBy":b,m=t.expandedKey,v=void 0===m?"groupByExpanded":m,j=t.onChange,O=t.trackingId,_=void 0===O?"group-by":O,S=t.emptyMessage,P=void 0===S?"Deselecting everything will use GROUP BY DIMENSION by default":S,M=t.labelProps,k=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,d),C=(0,a.useChart)(),A=(0,a.useAttributeValue)(n),D=(0,a.useAttributeValue)(c),T=(0,a.useAttributeValue)("contextScope"),I=(0,a.useAttributeValue)("showPostAggregations"),E=function(t,e){var r=e.groupByKey,n=e.contextScope,o=e.showPostAggregations;return(0,i.useMemo)(function(){var e=n.length>1;return[{nm:"node",id:"node",key:"nodes"},{nm:"".concat(t.intl("instance")," ").concat("instance"===t.intl("instance")?"":"(instance)"),id:"instance",key:"instances"},{nm:"dimension",id:"dimension",key:"dimensions"},(o||"drilldown.groupBy"===r)&&{nm:"percentage of ".concat(t.intl("instance")),id:"percentage-of-instance",key:"instances"},e&&{nm:"context",id:"context",key:"contexts"}].filter(Boolean)},[r,n])}(C,{groupByKey:n,contextScope:T,showPostAggregations:I}),F=(0,i.useCallback)(function(){var t=C.getAttributes(),e=E.map(function(e){var r=A.includes(e.id);return(0,u.getStats)(C,e,y({key:"group-by",childrenKey:"label",props:{contribution:"-",anomalyRate:"-",alerts:"-",min:"-",avg:"-",max:"-",selected:r},childProps:{unique:"-",disabled:"hidden"}},e.key&&{children:Object.values(t[e.key])}))});return[].concat(p(e),p(Object.keys(t.labels).map(function(e){return(0,u.getStats)(C,t.labels[e],{key:"group-by",childrenKey:"label",props:{getLabel:function(t){return"label: ".concat(t.nm||e||t.id)},isLabel:!0,selected:D.includes(e)},childProps:{unique:"-",disabled:"hidden"},children:t.labels[e].vl})})))},[A,D]);e=(0,i.useMemo)(function(){var t=A.filter(function(t){return"node"!==t}),e=t.map(function(t){return"label"===t?D.length>1?"".concat(D.length," labels"):D[0]:t});return t.length<A.length&&e.push("node"),e.join(", ")},[A,D]);var L=(0,i.useMemo)(function(){return[].concat(p(A),p(D))},[A,D]),z=h((0,a.useAttribute)(g),2),N=z[0],V=z[1],B=h((0,a.useAttribute)(v),2),R=B[0],W=B[1],H=(0,i.useCallback)(function(t){return C.updateGroupByAttribute(t)},[C]);return(0,f.jsx)(l.default,y({title:(0,f.jsx)(s.TextBig,{strong:!0,whiteSpace:"nowrap",children:"Group by"}),label:e,"data-track":C.track(_),labelProps:M,onChange:j||H,getOptions:F,secondaryLabel:"Group by",tooltipProps:x,value:L,columns:w,enableSubRowSelection:!1,sortBy:N,onSortByChange:V,expanded:R,onExpandedChange:W,emptyMessage:P},k))};e.default=(0,i.memo)(j)},34578(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;u(r(96540));var o=u(r(46874)),i=u(r(75157)),a=u(r(19751)),s=r(74848),l=["plain"];function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach(function(e){d(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function d(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e.default=(0,a.default)(function(t){var e=t.plain,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,l);return(0,s.jsx)(o.default,f(f({},r),{},{"data-testid":"chartFilters",children:(0,s.jsx)(i.default,{plain:e})}))})},55146(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),a=r(22332),s=r(20207),l=(o=r(34737))&&o.__esModule?o:{default:o},u=r(96659),c=r(35369),f=r(74848),d=["labelProps"];function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return g(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var m=[(0,c.labelColumn)(),(0,c.metricsColumn)(),(0,c.contributionColumn)(),(0,c.anomalyRateColumn)(),(0,c.alertsColumn)(),(0,c.minColumn)(),(0,c.avgColumn)(),(0,c.maxColumn)()],y=function(t){var e=t.labelProps,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,d),n=(0,a.useChart)(),o=(0,a.useAttributeValue)("selectedInstances"),c=(0,a.useAttributeValue)("instances"),g=(0,a.useAttributeValue)("instancesTotals"),y=(0,i.useCallback)(function(){return Object.keys(c).map(function(t){return(0,u.getStats)(n,c[t],{id:t,key:"instances",props:{selected:o.includes(t)}})})},[c,o]),v=b((0,a.useAttribute)("instancesSortBy"),2),x=v[0],w=v[1],j=function(t){return(0,i.useMemo)(function(){return{heading:(0,s.uppercase)(t.intl("instance",{count:2})),body:"View or filter the ".concat(t.intl("instance",{count:2})," contributing time-series metrics to this chart. This menu also provides the contribution of each ").concat(t.intl("instance")," to the volume of the chart, and a break down of the anomaly rate of the queried data per ").concat(t.intl("instance"),".")}},[])}(n);return(0,f.jsx)(l.default,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(e){p(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({title:(0,s.uppercase)(n.intl("instance",{count:2})),resourceName:"instance","data-track":n.track("instances"),labelProps:e,onChange:n.updateInstancesAttribute,getOptions:y,tooltipProps:j,value:o,columns:m,sortBy:x,onSortByChange:w,totals:g},r))};e.default=(0,i.memo)(y)},36112(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Container=void 0;d(r(96540));var o=d(r(882)),i=r(78904),a=d(r(63668)),s=d(r(6504)),l=r(33640),u=r(74848),c=["width","open"],f=["icon","secondaryLabel","tertiaryLabel","label","chevron","iconRotate","textProps","ref"];function d(t){return t&&t.__esModule?t:{default:t}}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(e){b(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function b(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var m=e.Container=(0,o.default)(i.Flex).attrs(function(t){var e=t.width,r=void 0===e?{max:100}:e,n=t.open,o=g(t,c);return p(p({cursor:"pointer",role:"button",padding:[.5],gap:.5,width:r,alignItems:"center"},n&&{background:"selected"}),o)}).withConfig({displayName:"label__Container",componentId:"sc-1lmmfid-0"})(["&:hover{background:",";}"],(0,i.getColor)("selected")),y=(0,o.default)(i.TextSmall).attrs({whiteSpace:"nowrap",truncate:!0}).withConfig({displayName:"label__StyledLabel",componentId:"sc-1lmmfid-1"})(["flex:1;"]);e.default=(0,l.withTooltip)(function(t){var e=t.icon,r=t.secondaryLabel,n=t.tertiaryLabel,o=t.label,l=t.chevron,c=void 0===l||l,d=t.iconRotate,h=t.textProps,b=t.ref,v=g(t,f);return e?(0,u.jsx)(m,p(p({ref:b},v),{},{children:e})):(0,u.jsxs)(m,p(p({ref:b},v),{},{children:[r&&(0,u.jsx)(i.TextSmall,{color:"textLite",whiteSpace:"nowrap",truncate:!0,children:r}),(0,u.jsx)(y,p(p({},h),{},{children:o})),n&&(0,u.jsx)(i.TextSmall,{color:"textLite",whiteSpace:"nowrap",truncate:!0,children:n}),c&&(0,u.jsx)(s.default,{svg:a.default,size:"12px",color:"textNoFocus",rotate:d})]}))},{Content:function(t){var e=t.heading,r=t.body;return(0,u.jsxs)(i.Flex,p(p({column:!0,gap:1},l.tooltipStyleProps),{},{children:[e&&(0,u.jsx)(i.TextSmall,{strong:!0,children:e}),r&&(0,u.jsx)(i.TextSmall,{children:r})]}))},align:"top"})},88623(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),a=r(22332),s=(o=r(34737))&&o.__esModule?o:{default:o},l=r(96659),u=r(35369),c=r(74848),f=["labelProps"];function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var g={heading:"Labels",body:"View or filter the contributing time-series labels to this chart. This menu also presents the contribution of each label on the chart, and a break down of the anomaly rate of the data per label."},m=[(0,u.labelColumn)("value"),(0,u.uniqueColumn)(),(0,u.metricsColumn)(),(0,u.contributionColumn)(),(0,u.anomalyRateColumn)(),(0,u.minColumn)(),(0,u.avgColumn)(),(0,u.maxColumn)()],y=function(t){var e=t.labelProps,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,f),n=(0,a.useChart)(),o=(0,a.useAttributeValue)("selectedLabels"),u=(0,a.useAttributeValue)("labels"),b=(0,a.useAttributeValue)("labelsTotals"),y=(0,i.useCallback)(function(){return Object.keys(u).map(function(t){return(0,l.getStats)(n,u[t],{key:"labels",childrenKey:"values",props:{selected:o.includes(t),unselectable:!0},childProps:{unique:"-",parentId:t,getIsSelected:function(e){return o.includes("".concat(t,":").concat(e.id))},getValue:function(e){return"".concat(t,":").concat(e.id)}},children:u[t].vl})})},[u,o]),v=p((0,a.useAttribute)("labelsSortBy"),2),x=v[0],w=v[1],j=p((0,a.useAttribute)("labelsExpanded"),2),O=j[0],_=j[1],S=(0,i.useCallback)(function(t){return t.filter(function(t){return!!t.parentId})},[]);return(0,c.jsx)(s.default,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach(function(e){h(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({title:"Labels",resourceName:"label","data-track":n.track("labels"),labelProps:e,onChange:n.updateLabelsAttribute,getOptions:y,tooltipProps:g,value:o,columns:m,enableSubRowSelection:!0,sortBy:x,onSortByChange:w,expanded:O,onExpandedChange:_,totals:b,filterSelectedCount:S},r))};e.default=(0,i.memo)(y)},36907(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkboxesDefaultProps=e.ItemContainer=e.CheckboxesContainer=void 0;c(r(96540));var n=c(r(63950)),o=c(r(882)),i=r(78904),a=c(r(54924)),s=r(74848),l=["item","onItemClick","itemProps"],u=["value","disabled","onClick","label","selected","excluded","indeterminate","textColor","iconName","count","actualCount","pill","level","stale"];function c(t){return t&&t.__esModule?t:{default:t}}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function d(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(e){b(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function b(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var g=function(t){return t?t[0].toUpperCase()+t.slice(1):"Unknown"},m=e.ItemContainer=(0,o.default)(i.Flex).attrs(function(t){return p({as:"li",role:"option",padding:[1,2],gap:1,justifyContent:"between",width:"100%"},t)}).withConfig({displayName:"checkboxes__ItemContainer",componentId:"sc-qdo3r-0"})(["cursor:",";opacity:",";align-items:",";"," ",""],function(t){return t.disabled?"default":"pointer"},function(t){var e=t.stale,r=t.disabled,n=t.selected;return!e&&!r||n?1:.6},function(t){return t.alignItems||"center"},function(t){var e=t.multi,r=t.selected,n=t.theme;return!e&&r&&"\n background-color: ".concat(function(t){var e=t.theme;return("Dark"===e.name?(0,i.getRgbColor)(["green","green20"]):(0,i.getRgbColor)(["green","green170"]))({theme:e})}({theme:n}),";\n ")},function(t){var e=t.multi,r=t.selected,n=t.disabled,o=t.theme;return!e&&!r&&!n&&"\n &:hover {\n background-color: ".concat((0,i.getColor)("secondaryHighlight")({theme:o}),";\n }\n ")}),y=(e.CheckboxesContainer=(0,o.default)(i.MenuDropdown).attrs(function(t){return p({background:"transparent",hideShadow:!0,width:{max:"600px"},overflow:"auto"},t)}).withConfig({displayName:"checkboxes__CheckboxesContainer",componentId:"sc-qdo3r-1"})(["-webkit-user-select:none;-ms-user-select:none;user-select:none;"]),function(t){return t});e.checkboxesDefaultProps={itemProps:{padding:[1,.5],multi:!0},itemsProps:{head:{textColor:"textLite"},row:{textColor:"text"}},Item:function(t){var e=t.item,r=t.onItemClick,o=t.itemProps,c=d(t,l),f=e.value,h=e.disabled,b=e.onClick,y=e.label,v=e.selected,x=e.excluded,w=e.indeterminate,j=e.textColor,O=e.iconName,_=e.count,S=e.actualCount,P=e.pill,M=e.level,k=void 0===M?0:M,C=e.stale,A=d(e,u),D=o.capitalized,T=o.multi,I=h||!T&&v,E=function(t){h||(b&&b(t),r({value:f,label:y,checked:!v,item:e}))};return(0,s.jsxs)(m,p(p(p(p({"aria-selected":v,selected:v,disabled:I,stale:0===_||"0"===_||C||x},A),c),o),{},{"data-testid":"".concat(o.testIdPrefix,"-filters-item"),children:[(0,s.jsx)(i.Flex,{gap:2,alignItems:"center",padding:[0,0,0,4*k],width:"100%",overflow:"hidden",children:T?(0,s.jsx)(i.Checkbox,{"data-testid":"".concat(o.testIdPrefix,"-filters-checkbox-").concat(y),checked:v,disabled:I,indeterminate:w,onChange:E,label:(0,s.jsxs)(i.Flex,{gap:1,alignItems:"center",width:"100%",children:[O&&(0,s.jsx)(i.Icon,{name:O,size:"small",color:"textLite"}),(0,s.jsx)(a.default,{Component:i.TextSmall,text:"string"===typeof y&&D?g(y):y.toString(),color:j})]})}):(0,s.jsx)(i.Flex,{flex:!0,gap:1,padding:[0,1],alignItems:"center",onClick:v?n.default:E,"data-testid":"".concat(o.testIdPrefix,"-filters-item-").concat(y),children:(0,s.jsx)(a.default,{Component:i.TextSmall,text:"string"===typeof y&&D?g(y):y.toString(),color:j})})}),(!isNaN(_)||/%/.test(_||"")||P)&&(0,s.jsxs)(i.Pill,{flavour:"neutral",hollow:!0,"data-testid":"".concat(o.testIdPrefix,"-filters-").concat(y,"-count"),size:"small",children:[!!S&&(0,s.jsxs)(i.TextSmall,{children:[S," \u2283\xa0"]}),(P||_).toString()]})]}))},getValue:y,getLabel:y}},9489(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=d(r(66245)),a=r(22332),s=d(r(39131)),l=r(36907),u=d(r(67115)),c=r(74848),f=["testIdPrefix","itemsProps","itemProps","nodesById"];function d(t){return t&&t.__esModule?t:{default:t}}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(e){b(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function b(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||y(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||y(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){if(t){if("string"==typeof t)return v(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var x=["_aclk_available","_aclk_ng_new_cloud_protocol","_aclk_proxy"];e.default=function(t){var e=p(p({},l.checkboxesDefaultProps),t),r=e.testIdPrefix,n=e.itemsProps,d=e.itemProps,h=e.nodesById,b=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,f),y=(0,a.useChart)(),v=(0,a.useAttributeValue)("selectedNodeLabelsFilter"),w=y.updateNodeLabelsFilter,j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,a.useAttributeValue)("nodes"),r=(0,a.useAttributeValue)("selectedNodeLabelsFilter");return(0,o.useMemo)(function(){return Object.entries(Object.keys(e).reduce(function(e,r){var n,o=null===(n=t[r])||void 0===n?void 0:n.labels;return o?(Object.keys(o).forEach(function(t){e[t]=e[t]||{count:0,children:{}},e[t].count=(e[t].count||0)+1,e[t].children[o[t]]=(e[t].children[o[t]]||0)+1}),e):e},{})).reduce(function(t,e){var r=m(e,2),n=r[0],o=r[1],i=o.count,a=o.children;return t.push({id:n,count:i,children:Object.entries(a).map(function(t){var e=m(t,2),r=e[0],o=e[1];return{value:"".concat(n,"|").concat(r),label:r,count:o,level:1}})}),t},[]).sort(function(t,e){return x.includes(t.id)?1:x.includes(e.id)?-1:t.id.localeCompare(e.id,void 0,{sensitivity:"accent",ignorePunctuation:!0})})},[t,r])}(h);(0,s.default)(function(){j.length&&v.length&&w(function(t){return t.filter(function(t){return j.some(function(e){return e.children.some(function(e){return e.value===t})})})})},[j.length,w]);var O=(0,o.useCallback)(function(t){var e=t.value,r=t.checked;w(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?r?g(new Set([].concat(g(t),g(e)))):(0,i.default)(t,e):r?[].concat(g(t),[e]):t.filter(function(t){return t!==e})})},[w]),_=(0,o.useMemo)(function(){return function(t){var e=t.options,r=t.selected,n=t.itemsProps,o=void 0===n?{}:n;if(!e.length)return[];var i=e.flatMap(function(t){return t.children.map(function(t){return t.value})}),a=i.length===r.length,s=!a&&!!r.length;return[p(p({},o.head),{},{label:"Select all",value:i,selected:a,indeterminate:s})].concat(g(e.flatMap(function(t){var e=t.id,n=t.children,i=t.count,a=r.length&&!n.some(function(t){return!r.includes(t.value)}),s=!a&&r.length&&n.some(function(t){return r.includes(t.value)});return n.reduce(function(t,e){var n=r.includes(e.value);return[].concat(g(t),[p(p(p({},o.row),e),{},{selected:n})])},[p(p({},o.head),{},{label:e,value:n.map(function(t){return t.value}),selected:a,indeterminate:s,count:i})])})))}({options:j,selected:v,itemsProps:n})},[v,w,j]);return j.length?(0,c.jsx)(u.default,{title:"Host labels",setSelected:w,param:"selectedNodeLabelsFilter",children:(0,c.jsx)(l.CheckboxesContainer,p({"data-testid":"".concat(r,'-filter-selections"'),searchMargin:[0,0,1],items:_,onItemClick:O,value:v,"data-value":v.join(",")||"all-selected",hasSearch:j.length>3,itemProps:p({testIdPrefix:r},d)},b))}):null}},4496(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=r(22332),a=d(r(34737)),s=r(96659),l=r(35369),u=d(r(9489)),c=r(74848),f=["labelProps"];function d(t){return t&&t.__esModule?t:{default:t}}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||m(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){if(t){if("string"==typeof t)return y(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var v={heading:"Nodes",body:"View or filter the nodes contributing time-series metrics to this chart. This menu also provides the contribution of each node to the volume of the chart, and a break down of the anomaly rate of the queried data per node."},x=[(0,l.labelColumn)("instance"),(0,l.instancesColumn)(),(0,l.metricsColumn)(),(0,l.contributionColumn)(),(0,l.anomalyRateColumn)(),(0,l.alertsColumn)(),(0,l.minColumn)(),(0,l.avgColumn)(),(0,l.maxColumn)()],w=function(t){var e=t.labelProps,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,f),n=(0,i.useChart)(),l=(0,i.useAttributeValue)("selectedNodes"),d=(0,i.useFilteredNodeIds)(),m=(0,i.useAttributeValue)("nodes"),y=(0,i.useAttributeValue)("instances"),w=(0,i.useAttributeValue)("nodesTotals"),j=(0,i.useAttributeValue)("selectedInstances"),O=(0,o.useCallback)(function(){return Object.keys(m).map(function(t){var e=l.includes(t);return(0,s.getStats)(n,m[t],{id:t,key:"nodes",childrenKey:"instances",props:{selected:e},childProps:{isInstance:!0,getValue:function(e){return"".concat(e.id,"@").concat(t)},getIsSelected:function(e){return j.includes("".concat(e.id,"@").concat(t))}},children:Object.keys(y).reduce(function(e,r){return y[r].ni===m[t].ni?[].concat(g(e),[y[r]]):e},[])})})},[m,l,j]),_=b((0,i.useAttribute)("nodesSortBy"),2),S=_[0],P=_[1],M=b((0,i.useAttribute)("nodesExpanded"),2),k=M[0],C=M[1],A=(0,o.useCallback)(function(t){return t.filter(function(t){return!t.isInstance})},[]),D=(0,i.useAttributeValue)("nodesById");return(0,c.jsx)(a.default,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(e){p(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({title:"Nodes",resourceName:"node","data-track":n.track("nodes"),labelProps:e,onChange:n.updateNodesAttribute,getOptions:O,tooltipProps:v,value:l,columns:x,sortBy:S,onSortByChange:P,expanded:k,onExpandedChange:C,enableSubRowSelection:!1,totals:w,filterSelectedCount:A,totalSelected:d,sidebar:!!D&&(0,c.jsx)(u.default,{nodesById:D})},r))};e.default=(0,o.memo)(w)},36495(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=r(22332),a=p(r(34975)),s=p(r(30882)),l=p(r(60863)),u=p(r(52441)),c=p(r(6504)),f=p(r(94069)),d=r(74848),h=["labelProps"];function p(t){return t&&t.__esModule?t:{default:t}}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach(function(e){m(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function m(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var y={heading:"Metrics post aggregation"},v=function(t){var e=t.labelProps,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,h),n=(0,i.useChart)(),p=(0,i.useAttributeValue)("postAggregationMethod"),b=function(t){return(0,o.useMemo)(function(){return[{value:"avg",label:"Average",description:"For each aggregated point, calculate the average of the metrics.",short:"AVG()",icon:(0,d.jsx)(c.default,{svg:a.default,color:"textLite",size:"10px"}),"data-track":t.track("avg")},{value:"sum",label:"Sum",description:"For each aggregated point, calculate the sum of the metrics.",short:"SUM()",icon:(0,d.jsx)(c.default,{svg:s.default,color:"textLite",size:"10px"}),"data-track":t.track("sum")},{value:"min",label:"Minimum",description:"For each aggregated point, present the minimum of the metrics.",short:"MIN()",icon:(0,d.jsx)(c.default,{svg:l.default,color:"textLite",size:"10px"}),"data-track":t.track("min")},{value:"max",label:"Maximum",description:"For each aggregated point, present the maximum of the metrics.",short:"MAX()",icon:(0,d.jsx)(c.default,{svg:u.default,color:"textLite",size:"10px"}),"data-track":t.track("max")}]},[t])}(n),m=(0,i.useIsMinimal)(),v=b.find(function(t){return t.value===p})||b[0],x=v.short,w=v.icon;return(0,d.jsx)(f.default,g(g({value:p,onChange:n.updatePostAggregationMethodAttribute,items:b,"data-track":n.track("post-aggregate")},r),{},{labelProps:g({secondaryLabel:m?"":"the",label:m?w:x,title:y.heading,tooltipProps:y},e)}))};e.default=(0,o.memo)(v)},26482(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),a=r(22332),s=r(78904),l=(o=r(34737))&&o.__esModule?o:{default:o},u=r(96659),c=r(35369),f=r(74848),d=["labelProps"];function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||m(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){if(t){if("string"==typeof t)return y(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var v={heading:"Post group by"},x=[(0,c.labelColumn)("label"),(0,c.uniqueColumn)(),(0,c.metricsColumn)(),(0,c.contributionColumn)(),(0,c.anomalyRateColumn)(),(0,c.minColumn)(),(0,c.avgColumn)(),(0,c.maxColumn)()],w=function(t){var e,r=t.labelProps,n=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,d),o=(0,a.useChart)(),c=(0,a.useAttributeValue)("postGroupBy"),m=(0,a.useAttributeValue)("postGroupByLabel"),y=function(t){return(0,i.useMemo)(function(){return[{nm:"node",id:"node",key:"nodes"},{nm:"".concat(t.intl("instance")," ").concat("instance"===t.intl("instance")?"":"(instance)"),id:"instance",key:"instances"},{nm:"dimension",id:"dimension",key:"dimensions"},{nm:"percentage of ".concat(t.intl("instance")),id:"percentage-of-instance",key:"instances"},{nm:"as single value",id:"selected"}]},[])}(o),w=(0,i.useCallback)(function(){var t=o.getAttributes(),e=y.map(function(e){var r=c.includes(e.id);return(0,u.getStats)(o,e,{key:"group-by",childrenKey:"label",props:{contribution:"-",anomalyRate:"-",alerts:"-",min:"-",avg:"-",max:"-",selected:r},childProps:{unique:"-",disabled:"hidden"},children:t[e.key]?Object.values(t[e.key]):[]})});return[].concat(g(e),g(Object.keys(t.labels).map(function(e){return(0,u.getStats)(o,t.labels[e],{key:"group-by",childrenKey:"label",props:{getLabel:function(t){return"label: ".concat(t.nm||e||t.id)},isLabel:!0,selected:m.includes(e)},childProps:{unique:"-",disabled:"hidden"},children:t.labels[e].vl})})))},[c,m]);e=(0,i.useMemo)(function(){var t=c.filter(function(t){return"node"!==t}),e=t.map(function(t){return"label"===t?m.length>1?"".concat(m.length," labels"):m[0]:t});return t.length<c.length&&e.push("node"),e.join(", ")||"-"},[c,m]);var j=(0,i.useMemo)(function(){return[].concat(g(c),g(m))},[c,m]),O=b((0,a.useAttribute)("groupBySortBy"),2),_=O[0],S=O[1],P=b((0,a.useAttribute)("groupByExpanded"),2),M=P[0],k=P[1];return(0,f.jsx)(l.default,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(e){p(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({title:(0,f.jsx)(s.TextBig,{strong:!0,whiteSpace:"nowrap",children:"Post group by"}),label:e,"data-track":o.track("post-group-by"),labelProps:r,onChange:o.updatePostGroupByAttribute,getOptions:w,secondaryLabel:"Post group by",tooltipProps:v,value:j,columns:x,enableSubRowSelection:!1,sortBy:_,onSortByChange:S,expanded:M,onExpandedChange:k},n))};e.default=(0,i.memo)(w)},6885(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;s(r(96540));var n=s(r(882)),o=r(78904),i=r(65562),a=r(74848);function s(t){return t&&t.__esModule?t:{default:t}}var l=(0,n.default)(o.Button).attrs({flavour:"borderless",label:"Reset",width:"initial",height:"initial",padding:[0,1],title:"Reset Filters",small:!0,neutral:!0}).withConfig({displayName:"reset__StyledButton",componentId:"sc-kilpc3-0"})(["&&{height:initial;font-weight:normal;}"]);e.default=function(){var t=(0,i.useChart)(),e=(0,i.useAttributeValue)("pristine"),r=!Object.keys(e).length;return(0,a.jsx)(l,{"data-noprint":!0,disabled:r,onClick:t.resetPristine,"data-track":t.track("reset")})}},64776(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;a(r(96540));var n=r(65562),o=a(r(36112)),i=r(74848);function a(t){return t&&t.__esModule?t:{default:t}}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(e){c(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function c(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f={heading:"Show/hide post aggregations"};e.default=function(t){var e=t.labelProps,r=(0,n.useChart)(),a=(0,n.useAttributeValue)("showPostAggregations");return(0,i.jsx)(o.default,u(u({},e),{},{onClick:function(){return r.updateAttribute("showPostAggregations",!a)},"data-track":r.track("showPostAggregations"),tooltipProps:f,title:f.heading}))}},70419(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;s(r(96540));var n=r(78904),o=s(r(46874)),i=s(r(36112)),a=r(74848);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(){return(0,a.jsx)(o.default,{children:(0,a.jsxs)(n.Flex,{gap:1,children:[(0,a.jsx)(i.default,{width:"90px",background:"borderSecondary",secondaryLabel:"",label:""}),(0,a.jsx)(i.default,{width:"120px",background:"borderSecondary"}),(0,a.jsx)(i.default,{width:"100px",background:"borderSecondary"})]})})}},67231(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),a=r(78904),s=r(22332),l=(o=r(94069))&&o.__esModule?o:{default:o},u=r(74848),c=["labelProps"];function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach(function(e){h(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(t,e){return v(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||m(t,e)||g()}function b(t){return v(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(t)||g()}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(t,e){if(t){if("string"==typeof t)return y(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function v(t){if(Array.isArray(t))return t}var x={percentile:"95","trimmed-mean":"5","trimmed-median":"5"},w={heading:"Aliases aggregation over time",body:"The percentile or percentage of the data you want to focus for the percentile or trimmed functions selected."},j={heading:"Time aggregation",body:"View or select the aggregation function applied on each time-series metric when the number of points in the database are more than the points your screen resolution provides to present this chart. This function is helpful when viewing long time-frames, like days, weeks or months, to quickly spot anomalies, spikes or dives."},O=(0,u.jsx)(a.TextMicro,{padding:[0,0,2],color:"textLite",children:"When the screen resolution provides less points than the points available of the source time-series metrics, use the following aggregation function over time on each metric to reduce the number of points"}),_=function(t){var e=t.labelProps,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,c),n=(0,s.useChart)(),o=p((0,s.useAttributeValue)("groupingMethod").match(/[\d.]+|\D+/g)||[],2),f=o[0],h=void 0===f?"":f,g=o[1],m=void 0===g?"":g,v=(0,s.useAttributeValue)("viewUpdateEvery"),_=(0,s.useAttributeValue)("perTier"),S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=b(e),n=r[0],o=y(r).slice(1);return(0,i.useMemo)(function(){return[{value:"min",label:"Minimum",description:"Reveal short dives that would otherwise be smoothed out.",short:"MIN()","data-track":t.track("time-aggregation-min")},{value:"max",label:"Maximum",description:"Reveal short spikes that would otherwise be smoothed out.",short:"MAX()","data-track":t.track("time-aggregation-max")},{value:"average",label:"Mean or Average",description:"Calculate the longer term average, as if data were collected at screen resolution.",short:"AVG()","data-track":t.track("time-aggregation-average")},{value:"sum",label:"Sum",description:"Provide the sum of the points that are aggregated over time. Use it when a sense of volume is needed over the aggregation period. It may not be sensible to use this function on all data types.",short:"SUM()","data-track":t.track("time-aggregation-sum")},Array.isArray(o)&&"undefined"!==typeof(null===n||void 0===n?void 0:n.points)&&{justDesc:!0,description:"The functions below lose accuracy when applied on tiered data, compared to high resolution data. Your current query is ".concat(100*n.points/e.reduce(function(t,e){return t+e.points},0),"% high resolution and ").concat(100*o.reduce(function(t,e){return t+e.points},0)/e.reduce(function(t,e){return t+e.points},0).toFixed(2),"% tiered data of lower resolution.")},{value:"percentile",label:"Percentile",description:"Provide the maximum value of a percentage of the aggregated points, having the smaller values. The default is p95, which provides the maximum value of the aggregated points after ignoring the top 5% of them.",short:"PERCENTILE()","data-track":t.track("time-aggregation-percentile95")},{value:"trimmed-mean",label:"Trimmed Average or Trimmed Mean",description:"Like average, but first remove a percentage of the extreme high and low values.",short:"TRIMMEAN()","data-track":t.track("time-aggregation-trimmed-mean5")},{value:"median",label:"Median",description:"The middle value of all points that would otherwise be smoothed out. This function works like average, but short extreme dives and spikes influence it significantly less than average.",short:"MEDIAN()","data-track":t.track("time-aggregation-median")},{value:"trimmed-median",label:"Trimmed Median",description:"Like median, but first remove a percentage of the extreme high and low values.",short:"TRIMMEDIAN()","data-track":t.track("time-aggregation-trimmed-median5")},{value:"stddev",label:"Standard deviation",description:"Reveal how far each point lies from the average. A high standard deviation means that values are generally far from the average, while a low standard deviation indicates that values are clustered close to the mean. The result is again in the original units of the data source metric.",short:"STDDEV()","data-track":t.track("time-aggregation-stddev")},{value:"cv",label:"Coefficient of variation or Relative standard deviation",description:"The ratio of the standard deviation to the average. Its use is the same as standard deviation, but expressed as a percentage related to the average. The units change to %.",short:"CV()","data-track":t.track("time-aggregation-cv")},{value:"incremental-sum",label:"Incremental Sum or Delta",description:"Provide the difference between the newest and the oldest values of the aggregated points. Each point will be positive if the trend grows and negative if the trend shrinks.",short:"DELTA()","data-track":t.track("time-aggregation-incremental-sum")},{value:"ses",label:"Single exponential smoothing",description:"Use the aggregated points to produce a forecast of the next value, and reveal the forecasted value. Use it when there are indications that the trend is more predictable using the more recent points than the older ones.",short:"SES()","data-track":t.track("time-aggregation-ses")},{value:"des",label:"Double exponential smoothing",description:"Like single exponential smoothing, but better suited when the aggregated points may have a strong trend.",short:"DES()","data-track":t.track("time-aggregation-des")}].filter(Boolean)},[t,null===n||void 0===n?void 0:n.points])}(n,_),P=function(t){var e=t.chart,r=t.method;return(0,i.useMemo)(function(){return"percentile"===r?[{value:"25",label:"25th",short:"25th","data-track":e.track("time-aggregation-percentile25")},{value:"50",label:"50th",short:"50th","data-track":e.track("time-aggregation-percentile50")},{value:"75",label:"75th",short:"75th","data-track":e.track("time-aggregation-percentile75")},{value:"80",label:"80th",short:"80th","data-track":e.track("time-aggregation-percentile80")},{value:"90",label:"90th",short:"90th","data-track":e.track("time-aggregation-percentile90")},{value:"95",label:"95th",short:"95th","data-track":e.track("time-aggregation-percentile95")},{value:"97",label:"97th",short:"97th","data-track":e.track("time-aggregation-percentile97")},{value:"98",label:"98th",short:"98th","data-track":e.track("time-aggregation-percentile98")},{value:"99",label:"99th",short:"99th","data-track":e.track("time-aggregation-percentile99")}]:r.includes("trimmed")?[{value:"1",label:"1%",short:"1%","data-track":e.track("time-aggregation-".concat(r,"1"))},{value:"2",label:"2%",short:"2%","data-track":e.track("time-aggregation-".concat(r,"2"))},{value:"3",label:"3%",short:"3%","data-track":e.track("time-aggregation-".concat(r,"3"))},{value:"5",label:"5%",short:"5%","data-track":e.track("time-aggregation-".concat(r,"5"))},{value:"10",label:"10%",short:"10%","data-track":e.track("time-aggregation-".concat(r,"10"))},{value:"15",label:"15%",short:"15%","data-track":e.track("time-aggregation-".concat(r,"15"))},{value:"20",label:"20%",short:"20%","data-track":e.track("time-aggregation-".concat(r,"20"))},{value:"25",label:"25%",short:"25%","data-track":e.track("time-aggregation-".concat(r,"25"))}]:[]},[e,r])}({chart:n,method:h}),M=(S.find(function(t){return t.value===h})||S[0]).short,k=P.find(function(t){return t.value===m})||P[0];return(0,u.jsxs)(a.Flex,{children:[m&&(0,u.jsx)(l.default,d(d({value:m,onChange:function(t){return n.updateTimeAggregationMethodAttribute({alias:t,method:h})},items:P,"data-track":n.track("groupingMethodAlias")},r),{},{labelProps:d({secondaryLabel:"each as",label:k.short,title:w.heading,tooltipProps:w},e)})),(0,u.jsx)(l.default,d(d({value:h,onChange:function(t){return n.updateTimeAggregationMethodAttribute({alias:x[t],method:t})},items:S,"data-track":n.track("groupingMethod"),dropTitle:O},r),{},{labelProps:d({secondaryLabel:!m&&"each as",tertiaryLabel:"every ".concat(v,"s"),label:M,title:j.heading,tooltipProps:j},e)}))]})};e.default=(0,i.memo)(_)},4975(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;u(r(96540));var n=r(78904),o=u(r(97517)),i=u(r(88335)),a=u(r(6504)),s=r(22332),l=r(74848);function u(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){var e=t.selected,r=void 0===e?[]:e,u=t.qr,c=void 0===u?0:u,f=t.fl,d=void 0===f?0:f,h=t.sl,p=void 0===h?0:h,b=t.ex,g=void 0===b?0:b,m=t.teaser,y=void 0!==m&&m,v=t.resourceName,x=t.totalSelected,w=void 0===x?[]:x,j=p+g,O=(null===w||void 0===w?void 0:w.length)||r.length,_=O&&O<c?O:c,S=d>0||y&&c<(O||j),P=(y?O||j:O)||p,M=(0,s.useChart)();return(0,l.jsxs)(n.TextMicro,{color:"textLite",children:[(0,l.jsx)(n.TextMicro,{color:y?"text":"primary",children:_}),y?" ":" queried",!y&&(0,l.jsx)(a.default,{margin:[-.5,1,-.5,0],width:"14px",height:"14px",color:"primary",svg:o.default}),!!d&&(0,l.jsxs)(l.Fragment,{children:[y?(0,l.jsx)(n.TextMicro,{color:"errorLite",children:" +"}):"+ ",(0,l.jsx)(n.TextMicro,{color:"errorLite",children:d}),y?" ":"failed ",(0,l.jsx)(a.default,{margin:[-.5,1,-.5,0],width:"14px",height:"14px",color:"errorLite",svg:i.default})]}),S&&(0,l.jsxs)(l.Fragment,{children:["of ",(0,l.jsx)(n.TextMicro,{color:y?"textLite":"text",children:P}),y?" ":" selected"]}),!y&&c!==j&&(0,l.jsxs)(l.Fragment,{children:["of ",(0,l.jsx)(n.TextMicro,{children:j})," available"]}),v?M.intl(v,{count:S?P:_}):""]})}},96659(t,e){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.getStats=void 0;var n=["getValue","getLabel","getIsSelected"];function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach(function(e){a(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function a(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=function(t,e){return t&&(null===t||void 0===t?void 0:t[e])||0},l=function(t){return t?s(t,"qr")+s(t,"qr")/(s(t,"ex")+s(t,"sl")):"-"},u=function(t){return t?3*s(t,"cr")+2*s(t,"wr")+s(t,"cl"):"-"},c=e.getStats=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.id,a=r.key,f=r.childrenKey,d=r.children,h=void 0===d?[]:d,p=r.childProps,b=r.props,g=b.getValue,m=b.getLabel,y=b.getIsSelected,v=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(b,n);return i(i({label:(null===m||void 0===m?void 0:m(e))||e.nm||o||e.id,value:(null===g||void 0===g?void 0:g(e))||o||e.id,"data-track":t.track("".concat(a,"-").concat(o||e.id||e.nm)),unique:h.length,instances:l(e.is),metrics:l(e.ds),contribution:s(e.sts,"con"),anomalyRate:s(e.sts,"arp"),min:s(e.sts,"min"),avg:s(e.sts,"avg"),max:s(e.sts,"max"),alerts:u(e.al),info:e,selected:(null===y||void 0===y?void 0:y(e))||!1},v),{},{children:h.map(function(e){return c(t,e,{key:"".concat(a,"-").concat(f),props:p})})})}},19751(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;a(r(96540));var n=r(22332),o=a(r(70419)),i=r(74848);function a(t){return t&&t.__esModule?t:{default:t}}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(e){c(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function c(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e.default=function(t){return function(e){return(0,n.useInitialLoading)()?(0,i.jsx)(o.default,u({},e)):(0,i.jsx)(t,u({},e))}}},39360(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}e.Ay=void 0;p(r(96540));var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(882)),i=r(78904),a=p(r(74113)),s=r(22332),l=p(r(10534)),u=r(89380),c=p(r(62841)),f=r(74848),d=["empty","index","uiName"],h=["uiName","ref"];function p(t){return t&&t.__esModule?t:{default:t}}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach(function(e){m(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function m(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return x(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var w=(0,o.default)(i.Text).withConfig({displayName:"gauge__Label",componentId:"sc-1o49axm-0"})(["line-height:1;font-size:",";flex:",";",";"],function(t){return t.fontSize},function(t){var e=t.flex;return void 0===e?0:e},function(t){return t.isFetching&&c.default}),j=(0,o.default)(w).withConfig({displayName:"gauge__StrokeLabel",componentId:"sc-1o49axm-1"})(["text-shadow:0.02em 0 ",",0 0.02em ",",-0.02em 0 ",",0 -0.02em ",";"],(0,i.getColor)("border"),(0,i.getColor)("border"),(0,i.getColor)("border"),(0,i.getColor)("border")),O=function(){var t=(0,s.useLatestConvertedValue)("selected");return(0,f.jsx)(j,{flex:"2",color:"text",fontSize:"2em",strong:!0,children:t})},_=function(){var t=v((0,s.useDimensionIds)(),1)[0],e=(0,s.useUnitSign)({dimensionId:t});return(0,f.jsx)(w,{color:"textLite",fontSize:"1em",children:e})},S=function(t){var e=t.empty,r=t.index,n=t.uiName,o=y(t,d),i=(0,s.useChart)(),a=i.getUI(n).getMinMax();return(0,f.jsx)(w,g(g({color:"textLite",fontSize:"1.3em"},o),{},{children:e?"-":i.getConvertedValue(a[r])}))},P=(0,o.default)(i.Flex).attrs({alignItems:"center",justifyContent:"between",flex:!0}).withConfig({displayName:"gauge__BoundsContainer",componentId:"sc-1o49axm-2"})([""]),M=function(t){var e=t.uiName;return(0,f.jsxs)(P,{children:[(0,f.jsx)(S,{index:0,uiName:e}),(0,f.jsx)(S,{index:1,uiName:e})]})},k=(0,o.default)(i.Flex).attrs({position:"absolute",column:!0,alignContent:"center",justifyContent:"center"}).withConfig({displayName:"gauge__StatsContainer",componentId:"sc-1o49axm-3"})(["inset:",";text-align:center;font-size:",";"],function(t){return t.inset},function(t){return t.fontSize}),C=function(t){var e=t.uiName,r=(0,s.useOnResize)(e),n=r.width,o=r.height,i=n<o?n:o;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(k,{fontSize:"".concat(i/15,"px"),inset:"50% 15% 0%",children:(0,f.jsx)(_,{})}),(0,f.jsx)(k,{fontSize:"".concat(i/15,"px"),inset:"35% 15% 0%",children:(0,f.jsx)(O,{})}),(0,f.jsx)(k,{fontSize:"".concat(i/15,"px"),inset:"80% ".concat((100-.8*i*100/n)/2,"% 0%"),children:(0,f.jsx)(M,{uiName:e})})]})},A=(0,o.keyframes)(["from{opacity:0.2;}to{opacity:0.6;}"]),D=(0,o.default)(i.Flex).attrs(function(t){return g({background:"borderSecondary",round:"100%",width:"100%",height:"100%"},t)}).withConfig({displayName:"gauge__Skeleton",componentId:"sc-1o49axm-4"})(["animation:"," 1.6s ease-in infinite;"],A),T=function(t){var e=t.uiName,r=t.ref,n=y(t,h),o=(0,s.useAttributeValue)("loaded");return(0,f.jsx)(u.ChartWrapper,{alignItems:"center",justifyContent:"center",column:!0,ref:r,gap:0,children:o?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.default,g(g({uiName:e,position:"relative",justifyContent:"center",alignItems:"center",overflow:"hidden"},n),{},{children:(0,f.jsx)("canvas",{})})),(0,f.jsx)(C,{uiName:e})]}):(0,f.jsx)(D,{})})};e.Ay=(0,l.default)(T,{tile:!0})},65010(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.makeGetColor=e.getWidth=e.default=void 0;var n,o=r(16199),i=r(69982),a=r(33862),s=r(41377),l=(n=r(92084))&&n.__esModule?n:{default:n};function u(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,u=Object.create(l.prototype);return c(u,"_invoke",function(r,n,o){var i,s,l,u=0,c=o||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return i=e,s=0,l=t,d.n=r,a}};function h(r,n){for(s=r,l=n,e=0;!f&&u&&!o&&e<c.length;e++){var o,i=c[e],h=d.p,p=i[2];r>3?(o=p===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=r<2&&h<i[1])?(s=0,d.v=n,d.n=i[1]):h<p&&(o=r<3||i[0]>n||n>p)&&(i[4]=r,i[5]=n,d.n=p,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),s=c,l=p;(e=s<2?t:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),h(s,l)):d.n=l:d.v=l);try{if(u=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(f=d.n<0)?l:r.call(n,d))!==a)break}catch(e){i=t,s=1,l=e}finally{u=1}}return{value:e,done:f}}}(r,o,i),!0),u}var a={};function s(){}function l(){}function f(){}e=Object.getPrototypeOf;var d=[][n]?e(e([][n]())):(c(e={},n,function(){return this}),e),h=f.prototype=s.prototype=Object.create(d);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,c(t,o,"GeneratorFunction")),t.prototype=Object.create(h),t}return l.prototype=f,c(h,"constructor",f),c(f,"constructor",l),l.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(h),c(h,o,"Generator"),c(h,n,function(){return this}),c(h,"toString",function(){return"[object Generator]"}),(u=function(){return{w:i,m:p}})()}function c(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}c=function(t,e,r,n){function i(e,r){c(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},c(t,e,r,n)}e.getWidth=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.aspectRatio,n=e.cellSize,o=(0,s.getRows)(t,r),i=(0,s.getColumns)(o,r);return(0,s.getFullWidth)(i,n)};var f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.aspectRatio,n=e.cellSize,o=e.padding,i=(0,s.getRows)(t,r),a=(0,s.getColumns)(i,r);return{width:(0,s.getFullWidth)(a,n),height:(0,s.getFullHeight)(i,n,o),columns:Math.ceil(a)}},d=e.makeGetColor=function(t,e,r){return(0,o.scaleLinear)().domain([t,e]).range(r)};e.default=function(t,e,r){var n=u().m(C),o=r.onMouseenter,c=r.onMouseout,h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},p=h.cellSize,b=h.cellPadding,g=h.cellStroke,m=void 0===g?2:g,y=h.lineWidth,v=void 0===y?1:y,x=h.colorRange,w=void 0===x?[t.getThemeAttribute("themeGroupBoxesMin"),t.getThemeAttribute("themeGroupBoxesMax")]:x,j=e.getContext("2d"),O=(0,a.createCanvas)(j.width,j.height),_=O.getContext("2d"),S=-1,P=function(){},M=function(){},k=function(){};function C(r,g){var y,x,C,A,D,T,I,E,F;return u().w(function(n){for(;;)switch(n.n){case 0:if(y=f(r,h),x=y.width,C=y.height,A=y.columns,x&&C){n.n=2;break}if(!(0,i.unstable_shouldYield)()){n.n=1;break}return void(n.n=1);case 1:return n.a(2);case 2:O.width=parseInt(x),O.height=parseInt(C),_.clearRect(0,0,O.width,O.height),D=t.getAttribute("min"),T=t.getAttribute("max"),I=d(D,T,w),E=function(e,r,n){e.beginPath(),e.fillStyle=I(t.getRowDimensionValue(r,g));var o=(0,s.getXPosition)(A,n,p),i=(0,s.getYPosition)(A,n,p);v&&m&&e.clearRect(o-v,i-v,(0,s.getCellBoxSize)(p,b)+m,(0,s.getCellBoxSize)(p,b)+m),e.fillRect(o,i,(0,s.getCellBoxSize)(p,b),(0,s.getCellBoxSize)(p,b))},F=0;case 3:if(!(F<r.length)){n.n=5;break}if(E(_,r[F],F),!(0,i.unstable_shouldYield)()){n.n=4;break}return void(n.n=4);case 4:++F,n.n=3;break;case 5:P(),k(),(0,a.copyCanvas)(O,e),k=(0,l.default)(e,A,r.length,{onMouseenter:o,onMouseout:c},h),P=function(){return-1!==S&&E(j,r[S],S)},M=function(t){P(),S=t;var e=(0,s.getXPosition)(A,t,p),r=(0,s.getYPosition)(A,t,p);v&&m&&(j.lineWidth=v,j.strokeStyle="#fff",j.strokeRect(e+v,r+v,(0,s.getCellBoxSize)(p,b)-m,(0,s.getCellBoxSize)(p,b)-m))};case 6:return n.a(2)}},n)}return{clear:function(){P(),k(),j.clearRect(0,0,e.width,e.height),_.clearRect(0,0,O.width,O.height)},update:C,activateBox:function(t){return M(t)},deactivateBox:function(){return P()},getElement:function(){return O}}}},92084(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(41377);e.default=function(t,e,r,o){var i=o.onMouseenter,a=o.onMouseout,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},l=s.cellSize,u=s.cellPadding,c=-1,f=function(r){var o=t.getBoundingClientRect(),i=(0,n.getXPosition)(e,r,l),a=(0,n.getYPosition)(e,r,l),s=o.left+i,c=o.top+a,f=(0,n.getCellBoxSize)(l,u);return{index:r,left:s,top:c,right:s+f,bottom:c+f,width:f,height:f,offsetX:i,offsetY:a}},d=function(){a(f(c)),c=-1},h=function(t){var o=t.offsetX,a=t.offsetY,s=(0,n.getOffsetPosition)(o,l),u=(0,n.getOffsetPosition)(a,l)*e+s;u!==c&&(-1!==c&&d(),u>=r||(i(f(u)),c=u))};return t.addEventListener("mousemove",h),t.addEventListener("mouseout",d),function(){t.removeEventListener("mousemove",h),t.removeEventListener("mouseout",d)}}},7365(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Container=void 0;s(r(96540));var n=r(78904),o=s(r(93658)),i=s(r(66788)),a=r(74848);function s(t){return t&&t.__esModule?t:{default:t}}function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f=e.Container=function(t){return(0,a.jsx)(n.Flex,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach(function(e){c(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({border:{side:"top",color:"borderSecondary"},"data-testid":"chartLegend",column:!0,position:"relative"},t))};e.default=function(){return(0,a.jsxs)(f,{children:[(0,a.jsx)(o.default,{}),(0,a.jsx)(n.Flex,{alignItems:"center",padding:[2],children:(0,a.jsx)(i.default,{})})]})}},66788(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;s(r(96540));var n=s(r(882)),o=r(78904),i=r(22332),a=r(74848);function s(t){return t&&t.__esModule?t:{default:t}}var l=(0,n.default)(o.Flex).attrs({width:{max:"320px",base:"100%"},height:"12px",round:!0}).withConfig({displayName:"legend__LinearColorScaleBar",componentId:"sc-1iit0cq-0"})(["background:linear-gradient( to right,",","," );"],function(t){return t.minColor},function(t){return t.maxColor});e.default=function(){var t=(0,i.useChart)(),e=(0,i.useAttributeValue)("min"),r=(0,i.useAttributeValue)("max"),n=(0,i.useUnitSign)(),s=(0,i.useAttributeValue)("selectedContexts").join(", "),u=(0,i.useAttributeValue)("contextScope").join(", ");(0,i.useAttributeValue)("theme");var c=t.getThemeAttribute("themeGroupBoxesMin"),f=t.getThemeAttribute("themeGroupBoxesMax");return(0,a.jsxs)(o.Flex,{"data-testid":"groupBox-legend",gap:4,alignItems:"center",width:"100%",children:[(0,a.jsx)(o.TextNano,{strong:!0,children:s&&"*"!==s?s:u}),(0,a.jsxs)(o.Flex,{gap:2,alignItems:"center",width:"100%",children:[(0,a.jsxs)(o.TextNano,{children:[t.getConvertedValue(e)," ",n]}),(0,a.jsx)(l,{minColor:c,maxColor:f}),(0,a.jsxs)(o.TextNano,{children:[t.getConvertedValue(r)," ",n]})]})]})}},25069(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=r(22332),a=p(r(17531)),s=p(r(65010)),l=p(r(39600)),u=p(r(8367)),c=r(74848),f=["uiName","dimensions","groupLabel"],d=["index"],h=["index"];function p(t){return t&&t.__esModule?t:{default:t}}function b(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(n(t)+" is not iterable")}function g(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,u=Object.create(l.prototype);return m(u,"_invoke",function(r,n,o){var i,s,l,u=0,c=o||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return i=e,s=0,l=t,d.n=r,a}};function h(r,n){for(s=r,l=n,e=0;!f&&u&&!o&&e<c.length;e++){var o,i=c[e],h=d.p,p=i[2];r>3?(o=p===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=r<2&&h<i[1])?(s=0,d.v=n,d.n=i[1]):h<p&&(o=r<3||i[0]>n||n>p)&&(i[4]=r,i[5]=n,d.n=p,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),s=c,l=p;(e=s<2?t:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),h(s,l)):d.n=l:d.v=l);try{if(u=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(f=d.n<0)?l:r.call(n,d))!==a)break}catch(e){i=t,s=1,l=e}finally{u=1}}return{value:e,done:f}}}(r,o,i),!0),u}var a={};function s(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(m(e={},n,function(){return this}),e),f=u.prototype=s.prototype=Object.create(c);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,m(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return l.prototype=u,m(f,"constructor",u),m(u,"constructor",l),l.displayName="GeneratorFunction",m(u,o,"GeneratorFunction"),m(f),m(f,o,"Generator"),m(f,n,function(){return this}),m(f,"toString",function(){return"[object Generator]"}),(g=function(){return{w:i,m:d}})()}function m(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}m=function(t,e,r,n){function i(e,r){m(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},m(t,e,r,n)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return v(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function x(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}e.default=function(t){var e=t.uiName,r=t.dimensions,n=t.groupLabel,p=x(t,f),m=(0,i.useChart)(),v=(0,o.useRef)(),w=(0,o.useRef)(),j=(0,o.useRef)(),O=y((0,o.useState)(null),2),_=O[0],S=O[1],P=(0,o.useRef)(-1),M=(0,o.useRef)();(0,o.useLayoutEffect)(function(){return j.current=(0,s.default)(m,w.current,{onMouseenter:function(t){var e=t.index,r=x(t,d);P.current=e,j.current.activateBox(e),M.current=setTimeout(function(){S({target:{getBoundingClientRect:function(){return r}},index:e})},100)},onMouseout:function(){P.current=-1,clearTimeout(M.current),requestAnimationFrame(function(){S(function(t){return-1===P.current||P.current!==(null===t||void 0===t?void 0:t.index)?(j.current.deactivateBox(),P.current=-1,null):t})})},onClick:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.index,r=x(t,h);P.current=e,j.current.activateBox(e),M.current=setTimeout(function(){S({target:{getBoundingClientRect:function(){return r}},index:e})},100)}},p),function(){return j.current.clear()}},[]);var k=(0,l.default)(e),C=y((0,a.default)(),3),A=C[1],D=C[2],T=(0,i.useAttributeValue)("theme");(0,o.useLayoutEffect)(function(){return A(g().m(function t(){return g().w(function(t){for(;;)switch(t.n){case 0:return _&&v.current&&v.current[_.index]!==r[_.index]&&(j.current.deactivateBox(),S(null),P.current=-1),v.current=r,t.d(b(j.current.update(r,k)),1);case 1:return t.a(2)}},t)})),function(){return D()}},[k,A,D,T]);var I=(0,o.useMemo)(function(){if(_){var t=r[_.index].split(",");return t[t.length-1]}},[r[null===_||void 0===_?void 0:_.index]]);return(0,c.jsxs)(o.Fragment,{children:[(0,c.jsx)("canvas",{"data-testid":"groupBox",ref:w}),_&&(0,c.jsx)(u.default,{target:_.target,label:I,groupLabel:n,data:k,id:r[_.index]})]})}},28805(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SkeletonIcon=void 0;var n=d(r(96540)),o=d(r(882)),i=r(78904),a=r(22332),s=f(r(93693)),l=f(r(25069)),u=f(r(5702)),c=r(74848);function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(d=function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=h(t)&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a})(t,e)}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function p(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach(function(e){y(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function y(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=h(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==h(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v=(0,o.keyframes)(["from{opacity:0.2;}to{opacity:0.6;}"]),x=(0,o.default)(i.Flex).attrs(function(t){return m({background:"borderSecondary",flex:!0,height:50},t)}).withConfig({displayName:"groupBoxes__Skeleton",componentId:"sc-1m75n17-0"})(["animation:"," 1.6s ease-in infinite;"],v),w=e.SkeletonIcon=function(){var t=(0,a.useLoadingColor)();return(0,c.jsx)(x,{background:t})},j=function(t){var e=t.uiName,r=t.subTree,n=t.data,o=t.label,s=t.groupedBy,u=t.hasMore,f=Object.values(r),d=p(s),h=d[0],g=b(d).slice(1),y=(0,a.useColor)("themeBackground");return(0,c.jsxs)(i.Flex,{"data-testid":"groupBoxWrapper",column:!0,alignItems:"start",gap:1,margin:[0,3,3,0],border:!!u&&{color:"borderSecondary",side:"all"},round:u,padding:u?[2]:[0],position:"relative",children:[(0,c.jsx)(i.Box,m(m({},u&&{position:"absolute",top:"-12px",left:1,background:y,padding:[0,1]}),{},{children:(0,c.jsxs)(i.TextMicro,{strong:u,"data-testid":"groupBoxWrapper-title",whiteSpace:"nowrap",children:[o,n.length>3&&(0,c.jsxs)("span",{children:["(",f.length,")"]})]})})),g.length?Object.keys(r).map(function(t){return(0,c.jsx)(j,{label:t,subTree:r[t],data:n,uiName:e,groupedBy:g,hasMore:g.length>1},t)}):(0,c.jsx)(l.default,{dimensions:f,groupLabel:o,uiName:e,groupKey:h})]})},O=function(t){var e=t.uiName,r=(0,u.default)(e),o=r.data,l=r.tree,f=(0,n.useRef)(),d=(0,a.useAttributeValue)("loaded"),h=(0,a.useAttributeValue)("showingInfo"),g=p((0,a.useAttributeValue)("viewDimensions").grouped||[]),m=g[0],y=b(g).slice(1);return d?(0,c.jsx)(i.Flex,{"data-testid":"groupBoxes",flexWrap:!0,flex:!0,position:"relative",height:{min:"150px"},ref:f,children:h?(0,c.jsx)(s.default,{}):y.length?Object.keys(l).map(function(t){return(0,c.jsx)(j,{label:t,subTree:l[t],data:o,uiName:e,groupedBy:y,hasMore:y.length>1},t)}):(0,c.jsx)(j,{label:m,subTree:l,data:o,uiName:e,groupedBy:y},m)}):(0,c.jsx)(w,{})};e.default=(0,n.memo)(O)},25369(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}e.Ay=void 0;g(r(96540));var o=g(r(51365)),i=g(r(18121)),a=g(r(10534)),s=r(22332),l=g(r(74113)),u=g(r(75200)),c=g(r(34578)),f=g(r(89031)),d=g(r(28805)),h=g(r(7365)),p=r(74848),b=["uiName","ref"];function g(t){return t&&t.__esModule?t:{default:t}}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach(function(e){v(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function v(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return w(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var j=function(t){var e=t.uiName,r=t.ref,n=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,b),a=(0,s.useChart)(),g=(0,i.default)({onHover:a.focus,onBlur:a.blur,isOut:function(t){return!t||!t.closest('[data-toolbox="'.concat(a.getId(),'"]'))&&!t.closest('[data-chartid="'.concat(a.getId(),'"]'))}},[a]),m=x((0,o.default)(function(t){g.current=t,r&&(r.current=t)}),2)[1],v=(0,s.useAttributeValue)("showingInfo"),w=(0,s.useAttributeValue)("focused");return(0,p.jsxs)(f.default,y(y({ref:m},n),{},{children:[(0,p.jsx)(u.default,{}),(0,p.jsx)(c.default,{opacity:w?1:.7}),(0,p.jsx)(l.default,{uiName:e,column:!0,gap:4,padding:[4,2],children:(0,p.jsx)(d.default,{uiName:e})}),!v&&(0,p.jsx)(h.default,{})]}))};e.Ay=(0,a.default)(j)},8367(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=d(r(40961)),a=r(22332),s=d(r(93331)),l=d(r(22007)),u=d(r(44862)),c=d(r(9408)),f=r(74848);function d(t){return t&&t.__esModule?t:{default:t}}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var b={right:"left",bottom:"top"},g={right:"left",top:"bottom"},m={left:"right",bottom:"top"},y={left:"right",top:"bottom"};e.default=function(t){var e=t.target,r=t.label,n=t.groupLabel,d=t.data,p=t.id,v=(0,o.useRef)(),x=(0,o.useRef)(),w=h((0,o.useState)(y),2),j=w[0],O=w[1];x.current=(0,l.default)(e,v,j,"width"),(0,o.useEffect)(function(){if(null!==e&&void 0!==e&&e.getBoundingClientRect&&v.current){var t=e.getBoundingClientRect(),r=t.right,n=t.bottom,o=window.innerHeight,i=window.innerWidth,a=v.current.getBoundingClientRect(),s=a.width,l=a.height;O(function(t,e){return t&&e?b:t?g:e?m:y}(r+s>i,n+l>o))}},[e]),(0,o.useEffect)(function(){x.current()},[j]);var _=(0,u.default)(),S=(0,a.useAttributeValue)("id");return i.default.createPortal((0,f.jsx)(s.default,{"data-toolbox":S,ref:v,width:{max:"100%"},column:!0,"data-testid":"drop",sx:{pointerEvents:"none"},children:(0,f.jsx)(c.default,{"data-testid":"chartPopover",label:r,groupLabel:n,data:d,id:p})}),_)}},70741(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;a(r(96540));var n=a(r(882)),o=r(78904),i=r(74848);function a(t){return t&&t.__esModule?t:{default:t}}var s=(0,n.default)(o.Flex).attrs({"data-testid":"chartPopover-label"}).withConfig({displayName:"label__GridRow",componentId:"sc-1j7ox7-0"})(["display:contents;"]);e.default=function(t){var e=t.label,r=t.value;return(0,i.jsxs)(s,{children:[(0,i.jsx)(o.TextMicro,{padding:[1,0],children:e}),(0,i.jsx)(o.TextSmall,{strong:!0,children:(null===r||void 0===r?void 0:r.join(", "))||"-"})]})}},9408(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=f(r(882)),a=r(78904),s=r(22332),l=r(99010),u=f(r(70741)),c=r(74848);function f(t){return t&&t.__esModule?t:{default:t}}var d=(0,i.default)(a.Flex).attrs(function(t){return{round:!0,border:{side:"all",color:"elementBackground"},width:{min:"196px",max:t.maxWidth?"".concat(t.maxWidth,"px"):"80vw"},background:"dropdown",column:!0,padding:[4],gap:1}}).withConfig({displayName:"labels__Container",componentId:"sc-5eymlk-0"})(["box-shadow:0px 8px 12px rgba(9,30,66,0.15),0px 0px 1px rgba(9,30,66,0.31);"]),h=(0,i.default)(l.BaseColorBar).attrs({position:"absolute",top:1,left:0,backgroundOpacity:.4,round:.5}).withConfig({displayName:"labels__ColorBackground",componentId:"sc-5eymlk-1"})([""]),p=i.default.div.withConfig({displayName:"labels__Grid",componentId:"sc-5eymlk-2"})(["display:grid;width:100%;grid-template-columns:auto 2fr;column-gap:8px;align-items:center;"]),b=function(t){var e=t.label,r=t.groupLabel,n=t.data,o=t.id,i=t.ref,l=(0,s.useChart)(),f=l.getAttribute("viewDimensions"),b=l.getDimensionIndex(o),g=(0,s.useAttributeValue)("min"),m=(0,s.useAttributeValue)("max"),y=.9*l.getUI().getChartWidth(),v=l.getRowDimensionValue(o,n),x=(0,s.useConverted)(v),w=(0,s.useUnitSign)();return(0,c.jsxs)(d,{"data-testid":"chartPopover-labels",maxWidth:y,gap:2,ref:i,children:[(0,c.jsxs)(a.Flex,{column:!0,gap:1,children:[(0,c.jsx)(a.TextMicro,{children:r}),(0,c.jsx)(a.TextMicro,{strong:!0,children:e}),(0,c.jsxs)(a.Flex,{alignItems:"center",position:"relative",children:[(0,c.jsx)(h,{value:v,min:g,max:m,bg:l.getThemeAttribute("themeGroupBoxesMax"),height:"18px"}),(0,c.jsxs)(a.TextMicro,{padding:[1.5,2],strong:!0,children:[x," ","-"!==x&&w]})]})]}),!(null===f||void 0===f||!f.labels)&&(0,c.jsx)(p,{gap:1,column:!0,children:Object.keys(f.labels).map(function(t){var e;return(0,c.jsx)(u.default,{label:t,value:null===(e=f.labels[t])||void 0===e?void 0:e[b]},t)})})]})};e.default=(0,o.memo)(b)},5702(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(22332),o=r(42872);e.default=function(t){var e,r,i=(0,n.useChart)(),a=(0,n.useForceUpdate)();return(0,n.useImmediateListener)(function(){return i.getUI(t).on("groupBoxChanged",a)},[i]),(null===(e=(r=i.getUI(t)).getGroupBox)||void 0===e?void 0:e.call(r))||o.initialValue}},39600(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(22332);e.default=function(t){var e=(0,n.useChart)(),r=(0,n.useForceUpdate)();return(0,n.useImmediateListener)(function(){return e.getUI(t).on("groupBoxRowDataChanged",r)},[e]),e.getUI(t).getGroupBoxRowData()}},41377(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getYPosition=e.getXPosition=e.getRows=e.getOffsetPosition=e.getFullWidth=e.getFullHeight=e.getColumns=e.getCellBoxSize=e.defaultPadding=e.defaultCellSize=e.defaultAspectRatio=void 0;var r=e.defaultCellSize=17,n=e.defaultPadding=1,o=e.defaultAspectRatio=Math.round(16/9);e.getCellBoxSize=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r)-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:n)},e.getRows=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return Math.sqrt(t.length/e)||1},e.getColumns=function(t){return t*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:o)||1},e.getXPosition=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;return Math.floor(e%t)*n},e.getYPosition=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;return Math.floor(e/t)*n},e.getFullWidth=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;return Math.ceil(t)*e},e.getFullHeight=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;return Math.ceil(t)*e+n},e.getOffsetPosition=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;return Math.floor(t/e)}},75200(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Container=void 0;var n=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=d(t)&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a}(t,e)}(r(96540)),o=r(78904),i=r(22332),a=f(r(90592)),s=f(r(34578)),l=f(r(99684)),u=r(57513),c=r(74848);function f(t){return t&&t.__esModule?t:{default:t}}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(e){b(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function b(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=d(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==d(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var g=e.Container=function(t){var e=(0,i.useIsMinimal)();return(0,c.jsx)(o.Flex,p(p({alignItems:"center",justifyContent:"start",padding:[1,2],gap:.5,"data-testid":"chartHeader",height:"25px"},!e&&{background:"mainChartHeaderBg",border:{side:"bottom",color:"borderSecondary"}}),t))};e.default=function(t){var e=t.hasFilters,r=(0,i.useIsMinimal)(),o=(0,i.useAttributeValue)("leftHeaderElements"),f=(0,i.useAttributeValue)("focused");return(0,c.jsxs)(g,{children:[o.map(function(t,e,r){return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(t,{}),r[e+1]?(0,c.jsx)(l.default,{}):null]},e)}),(0,c.jsx)(u.Title,{}),r&&e&&(0,c.jsx)(s.default,{opacity:f?1:.7}),(0,c.jsx)(a.default,{})]})}},36310(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,Object.defineProperty(e,"useHeadlessChart",{enumerable:!0,get:function(){return s.default}});var o=f(r(96540)),i=f(r(22332)),a=c(r(24830)),s=c(r(53972)),l=r(74848),u=["children","sdk","chart","getChart","makeTrack"];function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return(f=function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s})(t,e)}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach(function(e){p(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function p(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=function(t){return(0,t.children)((0,s.default)())};e.default=function(t){var e=t.children,r=t.sdk,n=t.chart,s=t.getChart,c=t.makeTrack,f=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,u),d=(0,o.useMemo)(function(){if(n)return n;var t=r||(0,a.default)({chartLibrary:"table"}),e=t.makeChart(h(h({attributes:f},!!s&&{getChart:s}),!!c&&{makeTrack:c}));return t.appendChild(e),e},[r,f]);return(0,i.useImmediateListener)(function(){var t=window.requestAnimationFrame(d.activate);return function(){window.cancelAnimationFrame(t),d.deactivate()}},[d]),"function"===typeof e?(0,l.jsx)(i.default,{chart:d,children:(0,l.jsx)(b,{children:e})}):(0,l.jsx)(i.default,{chart:d,children:e})}},53972(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useHeadlessChart=e.default=void 0;var n=r(96540),o=r(22332);function i(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var s=e.useHeadlessChart=function(){var t=(0,o.useChart)(),e=(0,o.usePayload)(),r=(0,o.useDimensionIds)(),s=(0,o.useAttributeValue)("hoverX"),l=(0,n.useMemo)(function(){return{updateAttribute:t.updateAttribute,getAttribute:t.getAttribute,getDimensionIds:t.getDimensionIds,getVisibleDimensionIds:t.getVisibleDimensionIds,getDimensionValue:t.getDimensionValue,getClosestRow:t.getClosestRow,formatTime:t.formatTime,formatDate:t.formatDate,getConvertedValue:t.getConvertedValue,selectDimensionColor:t.selectDimensionColor,isDimensionVisible:t.isDimensionVisible,focus:t.focus,blur:t.blur,getId:t.getId,trigger:t.trigger,on:t.on,off:t.off,onAttributeChange:t.onAttributeChange,onceAttributeChange:t.onceAttributeChange}},[t]),u=(0,n.useMemo)(function(){var r=e.data,n=void 0===r?[]:r;if(!n.length)return[];var o=t.getVisibleDimensionIds(),l=s?t.getClosestRow(s[0]):n.length-1;return n.map(function(e,r){var n=i(e),s=n[0],u=a(n).slice(1),c=r===l,f=o.map(function(e){var n=t.getDimensionValue(e,r);return{id:e,value:n,convertedValue:t.getConvertedValue(n,{dimensionId:e}),color:t.selectDimensionColor(e),visible:t.isDimensionVisible(e)}});return{timestamp:s,formattedTime:t.formatTime(s),formattedDate:t.formatDate(s),values:u,dimensions:f,isCurrentRow:c,rowIndex:r}})},[e,s,t]),c=(0,n.useMemo)(function(){return u.length?u.find(function(t){return t.isCurrentRow})||u[u.length-1]:null},[u]),f=(0,o.useIsFetching)(),d=(0,o.useEmpty)(),h=(0,o.useAttributeValue)("loaded"),p=(0,o.useAttributeValue)("error"),b=(0,o.useAttributeValue)("showingInfo"),g=(0,o.useAttributeValue)("focused"),m=(0,n.useMemo)(function(){return{loading:f,empty:d,loaded:h,error:p,showingInfo:b,focused:g}},[f,d,h,p,b,g]);return{chart:t,data:u,currentRow:c,dimensionIds:r,hover:s,helpers:l,state:m,attributes:t.getAttributes()}};e.default=s},79881(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(882);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(e){s(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l={default:"default",selectVertical:"row-resize",select:"col-resize",highlight:"crosshair"},u=a(a({},l),{},{pan:"grabbing"});e.default=(0,n.css)(["cursor:",";"," &:active{cursor:",";}"],function(t){return l[t.navigation]||l.default},function(t){var e=u[t.navigation];return e?"\n &:active {\n cursor: ".concat(e,";\n }\n "):""},function(t){return u[t.navigation]||l.default})},56284(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=r(74848),a=["children","Component","maxHeight","maxWidth","maxFontSize","minFontSize","cacheKey"];function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach(function(e){u(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function u(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}e.default=function(t){var e=t.children,r=t.Component,n=void 0===r?"div":r,s=t.maxHeight,u=void 0===s?100:s,f=t.maxWidth,d=void 0===f?100:f,h=t.maxFontSize,p=void 0===h?50:h,b=t.minFontSize,g=void 0===b?10:b,m=(t.cacheKey,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,a)),y=c((0,o.useState)(),2),v=y[0],x=y[1],w=(0,o.useRef)(!1);return(0,o.useEffect)(function(){if(v){var t=setTimeout(function(){w.current=!1;var t=p;for(v.style.animation="font-size 02s",v.style.fontSize=t+"px";!w.current&&t>g&&(v.offsetWidth>d||v.offsetHeight>u);){t-=Math.ceil(t/100),v.style.fontSize=t+"px"}});return function(){w.current=!0,clearTimeout(t)}}},[e,u,d,v]),(0,i.jsx)(n,l(l({truncate:!0,ref:x},m),{},{children:e}))}},62841(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(882),o=(0,n.keyframes)(["from{opacity:0.4;}to{opacity:1;}"]),i=(0,n.css)(["animation:"," 1.6s ease-in infinite;"],o);e.default=i},17531(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(96540),o=r(69982);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}e.default=function(){var t=i((0,n.useState)(!1),2),e=t[0],r=t[1],a=(0,n.useRef)(),s=(0,n.useRef)(),l=(0,n.useCallback)(function(){a.current&&((0,o.unstable_cancelCallback)(a.current),a.current=void 0,r(!1)),s.current&&(s.current(),s.current=void 0)},[]),u=(0,n.useCallback)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.unstable_IdlePriority;l();var n=t(),i=function(){var t=n.next();if(s.current=t.value,!t.done)return i;r(!1)},u=(0,o.unstable_runWithPriority)(e,i);u&&((0,o.unstable_runWithPriority)(o.unstable_ImmediatePriority,function(){return r(!0)}),a.current=(0,o.unstable_scheduleCallback)(e,u))},[]);return(0,n.useEffect)(function(){return l},[]),[e,u,l]}},10534(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;u(r(96540));var n=r(22332),o=u(r(94515)),i=u(r(4357)),a=u(r(14154)),s=u(r(89380)),l=r(74848);function u(t){return t&&t.__esModule?t:{default:t}}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function d(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,o.default)((0,a.default)(t));e.tile&&(r=(0,s.default)(r)),r=(0,n.withChartProvider)((0,i.default)(r));return function(t){return(0,l.jsx)(r,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach(function(e){d(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},t))}}},94515(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,s={__proto__:null,default:t};if(null===t||"object"!=a(t)&&"function"!=typeof t)return s;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(i.get||i.set)?o(s,l,i):s[l]=t[l]);return s}(t,e)}(r(96540)),o=r(22332),i=r(74848);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function l(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e.default=function(t){var e=function(e){var r=(0,o.useChart)();return(0,i.jsx)(t,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach(function(e){l(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({"data-track":r.track("container")},e))};return(0,n.memo)(e)}},14154(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;(o=r(96540))&&o.__esModule;var o,i=r(22332),a=r(74848),s=["isVisible","height","width","ref"];function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function u(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e.default=function(t){return function(e){var r=e.isVisible,n=void 0===r||r,o=e.height,c=void 0===o?"100%":o,f=e.width,d=void 0===f?"100%":f,h=e.ref,p=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,s),b=(0,i.useChart)();return(0,i.useImmediateListener)(function(){if(n&&(!p.uiName||"default"===p.uiName)){var t=window.requestAnimationFrame(b.activate);return function(){window.cancelAnimationFrame(t),b.deactivate()}}},[n,b,p.uiName]),(0,a.jsx)(t,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(e){u(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({ref:h,height:c,width:d},p))}}},4357(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;(n=r(96540))&&n.__esModule;var n,o=r(78904),i=r(22332),a=r(74848);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(e){c(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function c(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f=function(t){var e=t.children;return(0,i.useAttributeValue)("fullscreen")?(0,a.jsx)(o.Layer,{full:!0,children:(0,a.jsx)(o.Flex,{background:"mainBackground",flex:!0,width:{max:"inherit"},padding:[4],children:e})}):e};e.default=function(t){return function(e){var r=(0,i.useAttributeValue)("fullscreen");return(0,a.jsx)(f,{children:(0,a.jsx)(t,u(u({},e),{},{height:r?"100%":e.height}))})}}},89380(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Title=e.HeadWrapper=e.ChartWrapper=void 0;x(r(96540));var o=x(r(882)),i=r(78904),a=x(r(58655)),s=x(r(79045)),l=x(r(6504)),u=x(r(18121)),c=x(r(90592)),f=r(22332),d=x(r(34578)),h=r(99010),p=x(r(33640)),b=x(r(93693)),g=r(74848),m=["size"],y=["children","customChildren","hasFilters"],v=["count","tile","height","width","children","hasFilters"];function x(t){return t&&t.__esModule?t:{default:t}}function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?w(Object(r),!0).forEach(function(e){O(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function O(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var S=(0,o.default)(i.Text).withConfig({displayName:"withTile__Label",componentId:"sc-1oake2r-0"})(["line-height:1;font-size:",";"],function(t){return t.fontSize}),P=(0,o.default)(i.Flex).attrs(function(t){var e=t.size,r=_(t,m);return j({background:"panelBg",round:!0,fontSize:parseInt(e/3,10),height:"100%",width:"100%",position:"relative"},r)}).withConfig({displayName:"withTile__ChartHeadWrapper",componentId:"sc-1oake2r-1"})(["font-size:","px;"],function(t){return t.fontSize>11?11:t.fontSize<8?8:t.fontSize}),M=e.Title=function(){var t=(0,f.useChart)(),e=(0,f.useTitle)();return(0,g.jsx)(S,{fontSize:"1em",textAlign:"center",color:"sectionDescription",width:"80%",onClick:function(e){e.preventDefault(),t.sdk.trigger("goToLink",t)},cursor:"pointer",padding:[2,0,0],children:e})},k=e.HeadWrapper=function(t){var e,r=t.children,n=t.customChildren,o=t.hasFilters,b=void 0===o||o,m=_(t,y),v=(0,f.useOnResize)().width,x=(0,f.useAttributeValue)("focused"),w=null===(e=(0,f.useDimensionIds)())||void 0===e?void 0:e[0],O=(0,f.useAttributeValue)("leftHeaderElements"),S=v;S=S<20?20:S>50?50:S;var k=(0,f.useChart)(),C=(0,u.default)({onHover:k.focus,onBlur:k.blur,isOut:function(t){return!t||!t.closest('[data-toolbox="'.concat(k.getId(),'"]'))&&!t.closest('[data-chartid="'.concat(k.getId(),'"]'))}},[k]),A=(0,f.useAttributeValue)("hasToolbox"),D=(0,f.useAttributeValue)("showAnomalies"),T=(0,f.useColor)("themeShadow"),I=(0,s.default)(x,400),E=(0,f.useLatestValue)("selected",{valueKey:"arp"})||0;return(0,g.jsxs)(P,j(j({size:S},m),{},{ref:C,children:[A&&x&&I&&(0,g.jsx)(c.default,{position:"absolute",top:"-14px",right:"0",background:"mainChartHeaderBg",width:{min:"100%"},padding:[1],sx:{boxShadow:"0px 1px 5px 0px ".concat(T,";")},overflow:"hidden",children:b&&v>400&&(0,g.jsx)(i.Box,{width:"100%",children:(0,g.jsx)(d.default,{border:"none",opacity:x?1:.1,focused:x})})}),(0,g.jsxs)(i.Flex,{column:!0,width:5,padding:[1,0],children:[O.map(function(t,e){return(0,g.jsx)(t,{plain:!0},e)}),b&&v<400&&(0,g.jsx)(i.Flex,{column:!0,width:5,children:(0,g.jsx)(d.default,{column:!0,border:"none",justifyContent:"start",plain:!0,opacity:x?1:.1,focused:x})})]}),(0,g.jsxs)(i.Flex,{column:!0,alignItems:"center",justifyContent:"center",padding:[1,0],height:"100%",width:"100%",position:"relative",overflow:"hidden",children:[(0,g.jsx)(M,{}),r]}),(0,g.jsx)(i.Flex,{column:!0,width:5,alignItems:"center",padding:[4,0],gap:2,children:D&&"selected"===w&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(i.Flex,{column:!0,height:"100%",width:"2px",background:"neutralHighlight",justifyContent:"end",children:(0,g.jsx)(h.ColorBar,{id:"selected",valueKey:"arp",width:"2px",styleDimension:"height",round:.5})}),(0,g.jsx)(p.default,{content:"Anomaly rate for this metric",children:(0,g.jsx)(l.default,{svg:a.default,color:E&&E>0?"anomalyTextLite":"neutralHighlight",size:"14px"})})]})}),n]}))};e.ChartWrapper=(0,o.default)(i.Flex).attrs(function(t){return j({column:!0,justifyContent:"center",alignContent:"center",gap:2,position:"relative",width:"100%",height:"100%",overflow:"hidden"},t)}).withConfig({displayName:"withTile__ChartWrapper",componentId:"sc-1oake2r-2"})([""]),e.default=function(t){return function(e){var r=e.count,n=e.tile,o=void 0===n||n,i=e.height,a=void 0===i?"100%":i,s=e.width,l=void 0===s?"100%":s,u=e.children,c=e.hasFilters,d=void 0===c||c,h=_(e,v),p=(0,f.useAttributeValue)("showingInfo"),m=(0,f.useAttributeValue)("focused"),y=(0,f.useColor)("themeShadow"),x=m?{sx:{boxShadow:"0px 1px 5px 0px ".concat(y,";")}}:{};return o?(0,g.jsx)(k,j(j({count:r,uiName:h.uiName,height:a,width:l,customChildren:u,hasFilters:d},x),{},{children:p?(0,g.jsx)(b.default,{}):(0,g.jsx)(t,j({},h))})):(0,g.jsxs)(P,j(j({size:20,height:a,width:l},x),{},{children:[p?(0,g.jsx)(b.default,{}):(0,g.jsx)(t,j({},h)),u]}))}}},6963(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ContentWrapper=e.Container=void 0;b(r(96540));var n=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=g(t)&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a}(t,e)}(r(882)),o=r(78904),i=r(22332),a=r(18121),s=b(r(74113)),l=b(r(34101)),u=b(r(75029)),c=b(r(31899)),f=b(r(94833)),d=r(48666),h=b(r(79881)),p=r(74848);function b(t){return t&&t.__esModule?t:{default:t}}function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function x(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach(function(e){w(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function w(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=g(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==g(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var j={dygraph:(0,n.css)(["&{.default .dygraph-axis-label{color:#35414a;}.dark .dygraph-axis-label{color:#fff;}.dygraph-label-rotate-right{text-align:center;transform:rotate(-90deg);-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);}.dygraph-annotation{position:absolute;z-index:10;overflow:hidden;border:1px solid;}}",""],h.default)},O=(0,n.default)(o.Flex).withConfig({displayName:"chartContentWrapper__StyledContainer",componentId:"sc-ngouqx-0"})(["",""],function(t){var e=t.chartLibrary;return j[e]||""}),_=(e.ContentWrapper=function(t){return(0,p.jsx)(o.Flex,x({position:"relative",column:!0,flex:!0,overflow:"hidden","data-testid":"contentWrapper"},t))},e.Container=function(t){var e=(0,i.useAttributeValue)("chartLibrary"),r=(0,i.useAttributeValue)("navigation");return(0,p.jsx)(O,x({chartLibrary:e,position:"relative",flex:!0,"data-testid":"chartContentWrapper",height:"100%",width:"100%",overflow:"hidden",navigation:r},t))});e.default=function(t){var e=t.uiName,r=(0,i.useAttributeValue)("id"),n=m((0,a.useHovered)({isOut:function(t){return!t||!t.closest('[data-toolbox="'.concat(r,'"]'))&&!t.closest('[data-chartid="'.concat(r,'"]'))}}),2),o=n[0],h=n[1],b=(0,i.useInitialLoading)(),g=(0,i.useAttributeValue)("hasToolbox"),y=(0,i.useAttributeValue)("hasHoverPopover"),v=(0,i.useAttributeValue)("processing");return(0,p.jsxs)(_,{ref:o,children:[!b&&(0,p.jsx)(s.default,{}),!b&&(0,p.jsx)(f.default,{uiName:e}),b&&(0,p.jsx)(c.default,{}),g&&h&&(0,p.jsx)(u.default,{}),v&&(0,p.jsx)(d.Processing,{}),y&&(0,p.jsx)(l.default,{uiName:e})]})}},98744(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=d(r(96540)),o=r(78904),i=f(r(8001)),a=f(r(9464)),s=f(r(51081)),l=d(r(6504)),u=r(22332),c=r(74848);function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(d=function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=h(t)&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a})(t,e)}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach(function(e){y(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function y(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=h(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==h(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v={as:function(t){return(0,c.jsx)(l.default,m({svg:i.default},t))},size:"16px"},x=function(t){var e=t.item,r=e.value,n=e.label,i=t.value,a=t.onItemClick;return(0,c.jsx)(o.MenuItemContainer,{"data-testid":"chartDimensionFilter-".concat(r),children:(0,c.jsx)(o.RadioButton,{label:(0,c.jsx)(o.TextSmall,{"data-testid":"chartDimensionFilter-label",children:n}),checked:r===i,onChange:function(t){return a(t.target.value)},value:r,"data-testid":"chartDimensionFilter-input",name:"dimensionsSort",iconProps:v})})},w={default:s.default,nameAsc:a.default,nameDesc:s.default,valueAsc:a.default,valueDesc:s.default,anomalyAsc:a.default,anomalyDesc:s.default};e.default=function(t){var e=(0,u.useChart)(),r=p((0,n.useState)(e.getAttribute("dimensionsSort")),2),i=r[0],a=r[1];(0,n.useEffect)(function(){return e.onAttributeChange("dimensionsSort",a)},[e]);var s=function(t){return(0,n.useMemo)(function(){return[{value:"default",label:"Default","data-track":t.track("default")},{value:"nameAsc",label:"Sort by name A\u2192Z","data-track":t.track("nameAsc")},{value:"nameDesc",label:"Sort by name Z\u2192A","data-track":t.track("nameDesc")},{value:"valueAsc",label:"Sort by value Min\u2192Max","data-track":t.track("valueAsc")},{value:"valueDesc",label:"Sort by value Max\u2192Min","data-track":t.track("valueDesc")},{value:"anomalyAsc",label:"Sort by anomaly Min\u2192Max","data-track":t.track("anomalyAsc")},{value:"anomalyDesc",label:"Sort by anomaly Max\u2192Min","data-track":t.track("anomalyDesc")}]},[t])}(e);return(0,c.jsx)(o.Flex,m(m({padding:[0,4,3],"data-testid":"chartDimensionSort"},t),{},{children:(0,c.jsx)(o.Menu,{value:i,items:s,dropProps:{align:{bottom:"top",left:"left"},"data-toolbox":e.getId()},dropdownProps:{width:"200px",padding:[2,0]},Item:x,onChange:function(t){return e.updateAttribute("dimensionsSort",t)},children:(0,c.jsx)(l.Button,{icon:(0,c.jsx)(l.default,{svg:w[i],size:"16px"}),"data-testid":"chartDimensionSort-toggle",title:"Sort dimensions by name or value",small:!0})})}))}},99010(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ColorBar=e.Color=e.BaseColorBar=void 0;var o,i=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),a=(o=r(882))&&o.__esModule?o:{default:o},s=r(78904),l=r(22332),u=r(22753),c=r(74848),f=["bg"],d=["value","min","max","valueKey","bg","styleDimension"],h=["id","partIndex","valueKey"],p=["id","partIndex"];function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach(function(e){m(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function m(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var v=e.Color=(0,a.default)(s.Flex).attrs(function(t){return g({width:"4px",round:!0,"data-testid":"chartDimensions-color",flex:!1,background:t.bg},y(t,f))}).withConfig({displayName:"color__Color",componentId:"sc-1ooxdoy-0"})(["pointer-events:none;"]),x=e.BaseColorBar=function(t){var e=t.value,r=t.min,n=t.max,o=t.valueKey,a=t.bg,s=t.styleDimension,l=void 0===s?"width":s,f=y(t,d),h=(0,i.useRef)();(0,i.useLayoutEffect)(function(){if(h.current){requestAnimationFrame(function(){return h.current&&(h.current.style[l]=e?"".concat(100*(Math.abs(e)-r)/(n-r),"%"):0)})}},[e,o,r,n]);var p=(0,u.useIsHeatmap)(),b=(0,u.useGetColor)(.4);return a?(0,c.jsx)(v,g({ref:h,width:{min:1},bg:a,sx:{background:p?b(e):void 0}},f)):null};e.ColorBar=function(t){var e=t.id,r=t.partIndex,n=t.valueKey,o=y(t,h),i=(0,l.useChart)(),a="arp"===n?"anomalyTextLite":i.selectDimensionColor(e,r),s="arp"===n?0:i.getAttribute("min"),u="arp"===n?100:i.getAttribute("max"),f=Math.abs(s),d=Math.abs(u),p=u>0?s<0?0:s:d,b=(0,l.useLatestValue)(e,{valueKey:n})||0;return(0,c.jsx)(x,g({value:b,min:p,max:d>f?d:f,valueKey:n,bg:a},o))},e.default=function(t){var e=t.id,r=t.partIndex,n=y(t,p),o=(0,l.useChart)().selectDimensionColor(e,r);return o?(0,c.jsx)(v,g({bg:o},n)):null}},23630(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Name=void 0;var o,i=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),a=r(78904),s=r(22332),l=(o=r(54924))&&o.__esModule?o:{default:o},u=r(74848),c=["children","isEmpty","ref"],f=["id","partIndex","fallback"];function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach(function(e){p(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function p(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var g=e.Name=(0,i.memo)(function(t){var e=t.children,r=t.isEmpty,n=t.ref,o=b(t,c);return(0,u.jsx)(l.default,h({text:e,Component:a.TextSmall,color:r?"textNoFocus":"text",whiteSpace:"nowrap",ref:n,"data-testid":"chartDimensions-name"},o))});e.default=function(t){var e=t.id,r=t.partIndex,n=t.fallback,o=void 0===n?"":n,i=b(t,f),a=(0,s.useChart)().getDimensionName(e,r);return(0,u.jsx)(g,h(h({},i),{},{isEmpty:!a,children:a||o}))}},75010(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Value=void 0;var n=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=l(t)&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a}(t,e)}(r(96540)),o=r(78904),i=r(22332),a=r(74848),s=["visible","dimensionId"];function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach(function(e){f(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d=e.Value=function(t){return(0,a.jsx)(o.TextMicro,c({color:"textDescription",whiteSpace:"nowrap",truncate:!0,"data-testid":"chartDimensions-units"},t))},h=function(t){var e=t.visible,r=t.dimensionId,n=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,s),o=(0,i.useUnitSign)({dimensionId:r});return e?(0,a.jsx)(d,c(c({},n),{},{children:o})):null};e.default=(0,n.memo)(h)},24652(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Value=void 0;(n=r(96540))&&n.__esModule;var n,o=r(78904),i=r(22332),a=r(74848),s=["id","visible","valueKey","period","objKey","Component","fractionDigits"];function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach(function(e){f(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d=e.Value=function(t){return(0,a.jsx)(o.TextSmall,c({color:"text","data-testid":"chartDimensions-value"},t))};e.default=function(t){var e=t.id,r=t.visible,n=t.valueKey,o=t.period,l=void 0===o?"latest":o,u=t.objKey,f=t.Component,h=void 0===f?d:f,p=t.fractionDigits,b=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,s),g=(0,i.useConvertedValue)(e,l,{valueKey:n,objKey:u,allowNull:!0,fractionDigits:p});return r?(0,a.jsx)(h,c(c({},b),{},{children:g})):null}},96720(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;c(r(96540));var n=c(r(882)),o=r(78904),i=c(r(30464)),a=c(r(33640)),s=r(22332),l=c(r(6504)),u=r(74848);function c(t){return t&&t.__esModule?t:{default:t}}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p=(0,n.default)(o.Flex).attrs(function(t){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach(function(e){h(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({"data-testid":"chartExpander",alignItems:"center",justifyContent:"center",gap:1},t)}).withConfig({displayName:"expander__Container",componentId:"sc-19kn93v-0"})(["&:hover > *{color:",";fill:",";}"],(0,o.getColor)("text"),(0,o.getColor)("text")),b={values:"View detailed statistics, dimension values, and time ranges",drillDown:"Explore related metrics and child contexts",compare:"Compare data across different time periods",correlate:"Find correlated metrics and patterns"};e.default=function(){var t=(0,s.useChart)(),e=(0,s.useAttributeValue)("expanded"),r=(0,s.useAttributeValue)("drawer.action","compare"),n=e?"Collapse to hide chart analysis tools":"Expand to access chart analysis tools - ".concat(b[r]);return(0,u.jsx)(a.default,{content:n,children:(0,u.jsxs)(p,{"data-noprint":!0,cursor:"pointer",onClick:function(){return t.updateAttribute("expanded",!e)},alignSelf:"center",children:[(0,u.jsx)(l.default,{svg:i.default,color:"textLite",width:"7.5px",height:"5px",rotate:e?2:0}),(0,u.jsx)(o.TextSmall,{color:"textLite",children:e?"Collapse":"Expand - ".concat("compare"===r?"Compare Periods":"values"===r?"Chart Analysis":"drillDown"===r?"Drill Down":"Find Correlations")}),(0,u.jsx)(l.default,{svg:i.default,color:"textLite",width:"7.5px",height:"5px",rotate:e?2:0})]})})}},39591(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Container=void 0;p(r(96540));var n=r(78904),o=p(r(69529)),i=p(r(49941)),a=p(r(98744)),s=r(22332),l=p(r(93658)),u=r(22753),c=p(r(65152)),f=p(r(70435)),d=p(r(96720)),h=r(74848);function p(t){return t&&t.__esModule?t:{default:t}}function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function m(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=b(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==b(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var y=e.Container=function(t){return(0,h.jsx)(n.Flex,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach(function(e){m(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({border:{side:"top",color:"borderSecondary"},"data-testid":"chartLegend",column:!0,position:"relative"},t))};e.default=function(){var t=(0,s.useAttributeValue)("showingInfo"),e=(0,s.useAttributeValue)("expandable"),r=(0,s.useAttributeValue)("expanded"),p=(0,s.useAttributeValue)("legend");(0,s.usePayload)();var b=(0,u.useIsHeatmap)(),g=(0,s.useIsMinimal)();return(0,h.jsxs)(y,{"data-testid":"chartFooter",children:[!g&&(0,h.jsx)(l.default,{}),!t&&p&&(0,h.jsxs)(h.Fragment,{children:[b&&(0,h.jsx)(i.default,{}),(0,h.jsxs)(n.Flex,{alignItems:"center",padding:g?[2]:[0],children:[!g&&!b&&(0,h.jsx)(a.default,{}),(0,h.jsx)(o.default,{padding:b?[0,2]:void 0})]})]}),e&&r&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(f.default,{}),(0,h.jsx)(c.default,{})]}),e&&(0,h.jsx)(n.Flex,{flex:!0,position:"relative",alignItems:"center",justifyContent:"center",border:{side:"top",color:"borderSecondary"},children:(0,h.jsx)(d.default,{})})]})}},64131(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Line=void 0;g(r(96540));var o=g(r(51365)),i=g(r(18121)),a=g(r(10534)),s=r(22332),l=g(r(75200)),u=g(r(93693)),c=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(6963)),f=g(r(34578)),d=g(r(89031)),h=g(r(39591)),p=r(74848),b=["hasHeader","hasFooter","hasFilters","uiName","ref"];function g(t){return t&&t.__esModule?t:{default:t}}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach(function(e){v(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function v(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return w(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var j=e.Line=function(t){var e=t.hasHeader,r=void 0===e||e,n=t.hasFooter,a=void 0===n||n,g=t.hasFilters,m=void 0===g||g,v=t.uiName,w=t.ref,j=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,b),O=(0,s.useChart)(),_=(0,s.useAttributeValue)("showingInfo"),S=(0,s.useAttributeValue)("sparkline"),P=(0,i.default)({onHover:O.focus,onBlur:O.blur,isOut:function(t){return!t||!t.closest('[data-toolbox="'.concat(O.getId(),'"]'))&&!t.closest('[data-chartid="'.concat(O.getId(),'"]'))}},[O]),M=x((0,o.default)(function(t){P.current=t,w&&(w.current=t)}),2)[1],k=(0,s.useAttributeValue)("focused"),C=(0,s.useIsMinimal)();return(0,p.jsxs)(d.default,y(y(y(y({ref:M},S&&{border:!1,background:"transparent"}),j),C&&{border:0}),{},{children:[r&&(0,p.jsx)(l.default,{hasFilters:m}),!C&&m&&(0,p.jsx)(f.default,{opacity:k?1:.7}),(0,p.jsx)(c.ContentWrapper,{children:_?(0,p.jsx)(u.default,{}):(0,p.jsx)(c.default,{uiName:v})}),a&&(0,p.jsx)(h.default,{})]}))};e.default=(0,a.default)(j)},93658(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.getDateDiff=e.default=void 0;(o=r(96540))&&o.__esModule;var o,i=r(78904),a=r(22332),s=r(74848);function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(e){c(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function c(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var h=function(t){var e=t.timestamp,r=(0,a.useFormatTime)(e),n=(0,a.useFormatDate)(e);return(0,s.jsxs)(i.TextNano,{color:"textDescription","data-testid":"chartIndicator-dateTime-latest-value",children:[n," \u2022 ",r]})},p=function(){var t,e=(0,a.useChart)(),r=f((0,a.useAttributeValue)("hoverX")||[],1)[0],n=(0,a.usePayload)().data;if(!n.length)return null;var o=null===(t=n[r?e.getClosestRow(r):n.length-1])||void 0===t?void 0:t[0];return(0,s.jsxs)(i.Flex,{gap:1,children:[(0,s.jsxs)(i.TextNano,{color:"textLite",children:[r?"Hovering":"Latest",":"]}),!!o&&(0,s.jsx)(h,{timestamp:o})]})},b=86400,g=3600,m=e.getDateDiff=function(t,e){var r=o=e-t,n=Math.floor(r/b),o=r-n*b,i=Math.floor(o/g);o-=i*g;var a=Math.floor(o/60);return[{value:n,unit:"d",check:function(){return r>=b&&!!n}},{value:i,unit:"h",check:function(){return r>=g&&!!i}},{value:a,unit:"m",check:function(){return!!a}},{value:o-=60*a,unit:"s",check:function(){return r<g&&!!o}}].reduce(function(t,e){var r=function(t){var e,r=t.value,n=t.unit,o=t.check,i=t.hasPrev;if(null!==o&&void 0!==o&&o())return"".concat(i?(e=r,e>9?e:"0".concat(e)):r).concat(n)}(u(u({},e),{},{hasPrev:!!t[t.length-1]}));return r&&t.push(r),t},[])},y=function(t){var e=t.date,r=t.after,n=t.before,o=(0,a.useFormatTime)(1e3*r),l=(0,a.useFormatTime)(1e3*n),u=m(r,n);return(0,s.jsxs)(i.Flex,{gap:1,children:[(0,s.jsxs)(i.TextNano,{color:"textDescription",children:[e," \u2022"]}),(0,s.jsxs)(i.TextNano,{color:"textLite",children:[o," \u2192 ",l]}),(0,s.jsxs)(i.TextNano,{color:"textDescription",children:["\u2022 ",u]})]})},v=function(t){var e=t.afterDate,r=t.beforeDate,n=t.after,o=t.before,l=(0,a.useFormatTime)(1e3*n),u=(0,a.useFormatTime)(1e3*o),c=m(n,o);return(0,s.jsxs)(i.Flex,{gap:1,children:[(0,s.jsxs)(i.TextNano,{color:"textDescription",children:[e," \u2022"]}),(0,s.jsxs)(i.TextNano,{color:"textLite",children:[l," \u2192"]}),(0,s.jsxs)(i.TextNano,{color:"textDescription",children:[r," \u2022"]}),(0,s.jsx)(i.TextNano,{color:"textLite",children:u}),(0,s.jsxs)(i.TextNano,{color:"textDescription",children:["\u2022 ",c]})]})},x=function(t){var e=t.after,r=t.before,n=(0,a.useFormatDate)(1e3*r),o=(0,a.useFormatDate)(1e3*e);return n===o?(0,s.jsx)(y,{date:o,after:e,before:r}):(0,s.jsx)(v,{afterDate:o,beforeDate:n,after:e,before:r})};e.default=function(t){var e,r=(0,a.useChart)(),n=(0,a.useAttributeValue)("overlays").highlight,o=null===n||void 0===n?void 0:n.range,l=null!==(e=null===n||void 0===n?void 0:n.moveX)&&void 0!==e?e:{},c=l.after,f=l.before;return(0,s.jsxs)(i.Flex,u(u({gap:1,justifyContent:"between",flex:!0},t),{},{children:[o?(0,s.jsxs)(i.Flex,{onClick:function(){f&&c&&r.moveX(c,f)},cursor:"pointer",gap:1,padding:[0,11,0],children:[(0,s.jsx)(i.TextNano,{color:"textLite",children:"Highlight:"}),(0,s.jsx)(x,{after:o[0],before:o[1]})]}):(0,s.jsx)("div",{}),(0,s.jsx)(p,{})]}))}},33949(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SkeletonDimension=e.EmptyDimension=void 0;p(r(96540));var n=r(882),o=r(78904),i=h(r(99010)),a=h(r(23630)),s=h(r(24652)),l=h(r(33640)),u=p(r(75010)),c=r(22332),f=r(22753),d=r(74848);function h(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(h=function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=b(t)&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a})(t,e)}function p(t){return t&&t.__esModule?t:{default:t}}function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach(function(e){y(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function y(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=b(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==b(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v=function(t){return(0,d.jsx)(o.Flex,m({width:{min:22,max:50},flex:!1,gap:.5,"data-testid":"chartLegendDimension"},t))},x=(e.SkeletonDimension=function(){var t=(0,n.useTheme)(),e=(0,c.useIsMinimal)();return(0,d.jsxs)(v,{children:[(0,d.jsx)(i.Color,{bg:(0,o.getColor)("placeholder")({theme:t})}),!e&&(0,d.jsxs)(o.Flex,{flex:!0,gap:1,column:!0,overflow:"hidden","data-testid":"chartLegendDimension-details",children:[(0,d.jsx)(o.Flex,{height:"10px",width:"76px",background:"borderSecondary",round:!0}),(0,d.jsx)(o.Flex,{height:"10px",width:"34px",background:"borderSecondary",round:!0,"data-testid":"chartLegendDimension-valueContainer"})]})]})},e.EmptyDimension=function(){var t=(0,n.useTheme)(),e=(0,c.useIsMinimal)();return(0,d.jsxs)(v,{children:[(0,d.jsx)(i.Color,{bg:(0,o.getColor)("placeholder")({theme:t})}),!e&&(0,d.jsxs)(o.Flex,{flex:!0,gap:.5,column:!0,overflow:"hidden","data-testid":"chartLegendDimension-details",children:[(0,d.jsx)(a.Name,{children:"No data"}),(0,d.jsx)(s.Value,{children:"-"})]})]})},function(t){var e=t.id,r=(0,c.useLatestValue)(e,{valueKey:"arp"});return(0,d.jsx)(o.ProgressBar,{height:.5,color:"anomalyText",width:"".concat(Math.abs(r),"%")})}),w=function(t){return(0,d.jsx)(o.Flex,m(m(m({},l.tooltipStyleProps),t),{},{column:!0,gap:1}))},j=function(t){var e=t.id,r=t.name,n=(0,c.useUnitSign)({long:!0,dimensionId:e,withoutConversion:!0}),i=(0,c.useLatestValue)(e);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o.TextSmall,{strong:!0,wordBreak:"break-word",children:r}),(0,d.jsxs)(o.TextSmall,{whiteSpace:"nowrap",children:[i," ",n]})]})};e.default=function(t){var e=t.id,r=t.ref,n=(0,c.useVisibleDimensionId)(e),h=(0,c.useChart)(),p=h.getDimensionName(e),b=(0,f.useIsHeatmap)(),g=(0,c.useIsMinimal)();return(0,d.jsxs)(v,{ref:r,opacity:n?null:"weak",cursor:"pointer",onClick:function(t){var r=t.shiftKey||t.ctrlKey||t.metaKey;h.toggleDimensionId(e,{merge:r})},"data-track":h.track("dimension-".concat(p)),children:[!b&&(0,d.jsx)(i.default,{id:e}),(0,d.jsx)(l.default,{Content:w,content:n?(0,d.jsx)(j,{id:e,name:p}):null,children:(0,d.jsxs)(o.Flex,{flex:!0,column:!0,overflow:"hidden","data-testid":"chartLegendDimension-details",children:[(0,d.jsx)(a.default,{id:e,noTooltip:!0}),!g&&(0,d.jsx)(x,{id:e}),!g&&(0,d.jsxs)(o.Flex,{gap:1,alignItems:"end","data-testid":"chartLegendDimension-valueContainer",flex:!0,children:[(0,d.jsx)(s.default,{id:e,strong:!0,visible:n,Component:o.TextBig}),(0,d.jsx)(u.default,{visible:n,dimensionId:e})]})]})})]})}},49941(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;s(r(96540));var n=s(r(882)),o=r(78904),i=r(22332),a=r(74848);function s(t){return t&&t.__esModule?t:{default:t}}var l=(0,n.default)(o.Flex).attrs({width:"320px",height:"12px",round:!0}).withConfig({displayName:"heatmapColors__LinearColorScaleBar",componentId:"sc-13fexd8-0"})(["background:linear-gradient( to right,rgb(62,73,137),rgb(49,104,142),rgb(38,130,142),rgb(31,158,137),rgb(53,183,121),rgb(110,206,88),rgb(181,222,43),rgb(253,231,37) );"]);e.default=function(){var t=(0,i.useChart)(),e=(0,i.useAttributeValue)("max"),r=(0,i.useUnitSign)();return(0,i.useAttributeValue)("theme"),(0,a.jsxs)(o.Flex,{"data-testid":"heatmap-legend",gap:2,alignItems:"center",padding:[2],children:[(0,a.jsxs)(o.TextNano,{children:[t.getConvertedValue(0)," ",r]}),(0,a.jsx)(l,{}),(0,a.jsxs)(o.TextNano,{children:[t.getConvertedValue(e)," ",r]})]})}},69529(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=p(r(96540)),o=h(r(882)),i=r(81431),a=r(78904),s=h(r(53965)),l=h(r(14608)),u=r(22332),c=p(r(33949)),f=h(r(6504)),d=r(74848);function h(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(p=function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=b(t)&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a})(t,e)}function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return m(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach(function(e){x(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function x(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=b(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==b(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var w=(0,o.default)(a.Flex).attrs(function(t){return v({gap:.5,padding:[0,0,1],alignItems:"center",flex:!0,"data-testid":"chartLegend"},t)}).withConfig({displayName:"legend__Container",componentId:"sc-czwham-0"})(["overflow-x:auto;overflow-x:overlay;overflow-y:hidden;::-webkit-scrollbar{height:6px;}"]),j=Array.from(Array(5)),O=function(){return(0,d.jsx)(n.Fragment,{children:j.map(function(t,e){return(0,d.jsx)(c.SkeletonDimension,{},e)})})},_=(0,n.memo)(function(t){var e=t.lastItemRef,r=(0,u.useDimensionIds)();return r?(0,d.jsx)(n.Fragment,{children:r.map(function(t,o){return(0,n.createElement)(c.default,v(v({},o===r.length-1&&{ref:e}),{},{key:t,id:t}))})}):null});e.default=function(t){var e=(0,u.useDimensionIds)(),r=(0,u.useChart)(),o=(0,u.useInitialLoading)(),h=(0,u.useEmpty)(),p=(0,u.useAttributeValue)("active"),b=(0,n.useRef)(null),m=(0,n.useRef)(),y=g((0,a.useNavigationArrows)(b,m,e.length,!0),3),x=y[0],j=y[1],S=y[2];(0,n.useEffect)(function(){b.current&&p&&b.current.scrollTo({left:r.getAttribute("legendScroll")})},[b.current,p]),(0,n.useEffect)(function(){var t=function(){var t,e=((t=b.current)?{x:t.scrollLeft}:{x:0}).x;r.updateAttribute("legendScroll",e),S()};t();var e=(0,i.debounce)(300,t);if(e(),window.addEventListener("resize",e),b.current)return b.current.addEventListener("scroll",t),function(){window.removeEventListener("resize",e),b.current&&b.current.removeEventListener("scroll",t)}},[b.current]);return(0,d.jsxs)(a.Flex,{overflow:"hidden",position:"relative",children:[x&&(0,d.jsx)(a.Flex,{"data-testid":"filterTray-arrowLeft",cursor:"pointer",onClick:function(t){t.preventDefault();var e=b.current;e.scrollTo({left:e.scrollLeft-100,behavior:"smooth"})},padding:[0,1],height:"100%",position:"absolute",left:0,background:"mainChartBg",alignItems:"center",children:(0,d.jsx)(f.default,{svg:s.default,color:"key",size:"8px"})}),(0,d.jsxs)(w,v(v({ref:b},t),{},{"data-track":r.track("legend"),children:[!o&&!h&&(0,d.jsx)(_,{lastItemRef:m}),o&&(0,d.jsx)(O,{}),!o&&h&&(0,d.jsx)(c.EmptyDimension,{})]})),j&&(0,d.jsx)(a.Flex,{"data-testid":"filterTray-arrowRight",cursor:"pointer",onClick:function(t){t.preventDefault();var e=b.current;e.scrollTo({left:e.scrollLeft+100,behavior:"smooth"})},padding:[0,1],height:"100%",position:"absolute",right:0,background:"mainChartBg",alignItems:"center",children:(0,d.jsx)(f.default,{svg:l.default,color:"key",size:"8px"})})]})}},75029(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;g(r(96540));var o=g(r(882)),i=r(78904),a=g(r(70922)),s=g(r(58937)),l=g(r(29085)),u=g(r(99444)),c=g(r(83357)),f=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(6504)),d=r(22332),h=g(r(55969)),p=g(r(49628)),b=r(74848);function g(t){return t&&t.__esModule?t:{default:t}}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach(function(e){v(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function v(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return w(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var j=(0,o.default)(i.Flex).attrs({padding:[.5],gap:1,round:!0,border:{side:"all",color:"borderSecondary"}}).withConfig({displayName:"navigationToolbox__Container",componentId:"sc-17lxzh2-0"})(["position:absolute;top:18px;right:8px;background:",";&:hover{background:",";}"],(0,i.getRgbColor)("elementBackground",.5),(0,i.getColor)("elementBackground")),O=function(t){var e=t.log,r=void 0===e?function(){}:e,n=(0,d.useChart)(),o=(0,d.useAttributeValue)("after");if(!n.getAttribute("enabledResetRange"))return null;return(0,b.jsx)(f.Button,{icon:(0,b.jsx)(f.default,{svg:c.default,size:"16px"}),title:"Reset zoom",onClick:function(){n.resetNavigation(),r({chartAction:"chart-toolbox-reset-zoom"})},"data-testid":"chartToolbox-zoomReset","data-track":n.track("zoomReset"),disabled:-900===o,padding:"2px",small:!0})};e.default=function(t){var e=(0,d.useChart)(),r=x((0,d.useAttribute)("navigation"),2),n=r[0],o=r[1],i=(0,d.useAttributeValue)("highlighting"),c=(0,d.useAttributeValue)("panning");if(e.sdk.getRoot().getAttribute("autofetchOnHovering")||i||c)return null;var g=(0,p.default)(e);return(0,b.jsxs)(j,y(y({"data-noprint":!0,"data-testid":"chartToolbox","data-toolbox":e.getId()},t),{},{"data-track":e.track("toolbox"),children:[(0,b.jsx)(f.Button,{icon:(0,b.jsx)(f.default,{svg:a.default,size:"16px"}),title:"Pan",onClick:function(){o("pan"),g({chartAction:"chart-toolbox-pan"})},active:"pan"===n,"data-testid":"chartToolbox-pan",stroked:!0,"data-track":e.track("pan"),padding:"2px",small:!0}),(0,b.jsx)(f.Button,{icon:(0,b.jsx)(f.default,{svg:s.default,size:"16px"}),title:"Highlight",onClick:function(){o("highlight"),g({chartAction:"chart-toolbox-highlight"})},active:"highlight"===n,"data-testid":"chartToolbox-highlight","data-track":e.track("highlight"),padding:"2px",small:!0}),(0,b.jsx)(h.default,{}),(0,b.jsx)(f.Button,{icon:(0,b.jsx)(f.default,{svg:l.default,size:"16px"}),title:"Zoom in",onClick:function(){e.zoomIn(),g({chartAction:"chart-toolbox-zoom-in"})},"data-testid":"chartToolbox-zoomIn","data-track":e.track("zoomIn"),padding:"2px",small:!0}),(0,b.jsx)(f.Button,{icon:(0,b.jsx)(f.default,{svg:u.default,size:"16px"}),title:"Zoom out",onClick:function(){e.zoomOut(),g({chartAction:"chart-toolbox-zoom-out"})},"data-testid":"chartToolbox-zoomOut","data-track":e.track("zoomOut"),padding:"2px",small:!0}),(0,b.jsx)(O,{log:g})]}))}},55969(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=b(r(96540)),i=r(78904),a=p(r(3113)),s=p(r(73983)),l=p(r(20327)),u=p(r(26762)),c=r(22332),f=b(r(6504)),d=r(74848),h=["value","onChange","onClick","open","item","ref"];function p(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return(b=function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s})(t,e)}function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return m(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach(function(e){x(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function x(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var w=function(t){var e=t.value,r=t.onChange,n=t.onClick,o=t.open,a=t.item,s=t.ref,c=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,h),p=a.icon,b=a.value,g=a.title;return(0,d.jsxs)(i.Flex,v(v({ref:s,alignItems:"end"},c),{},{children:[(0,d.jsx)(f.Button,{icon:p,title:g,active:e===b,onClick:function(){return r(b)},padding:"2px",small:!0}),(0,d.jsx)(f.Button,{icon:(0,d.jsx)(f.default,{svg:o?l.default:u.default,size:"12px"}),onClick:n,padding:"2px",stroked:!0,small:!0})]}))},j=function(t){var e=t.onItemClick,r=g(t.items,1)[0],n=r.icon,o=r.value,a=r.title,s=(0,c.useAttributeValue)("id");return(0,d.jsx)(i.Flex,{background:"dropdown",round:{side:"bottom"},border:{side:"bottom",color:"borderSecondary"},padding:[1,0],"data-toolbox":s,children:(0,d.jsx)(f.Button,{title:a,icon:n,onClick:function(){return e(o)},padding:"2px",small:!0})})},O=function(){var t=(0,c.useChart)(),e=g((0,c.useAttribute)("navigation"),2),r=e[0],n=e[1],l=function(t){return(0,o.useMemo)(function(){return[{value:"select",title:"Select and zoom",icon:(0,d.jsx)(f.default,{svg:a.default,size:"16px"}),"data-track":t.track("selectHorizontal")},{value:"selectVertical",title:"Select vertical and zoom",icon:(0,d.jsx)(f.default,{svg:s.default,size:"16px"}),"data-track":t.track("selectVertical")}]},[t])}(t),u=(0,o.useMemo)(function(){return l.reduce(function(t,e){return e.value===r?v(v({},t),{},{selectedItem:e}):v(v({},t),{},{remainingItems:[e]})},{selectedItem:l[0],remainingItems:[]})},[r]),h=u.selectedItem,p=u.remainingItems;return(0,d.jsx)(i.Menu,{value:r,onChange:n,items:p,Dropdown:j,"data-track":"select",children:(0,d.jsx)(w,{value:r,onChange:n,item:h})})};e.default=(0,o.memo)(O)},97556(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=u(r(96540)),i=r(78904),a=r(22332),s=u(r(32464)),l=r(74848);function u(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return(u=function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s})(t,e)}var c={critical:"error",clear:"success"},f=function(t){var e=t.id,r=(0,a.useAttributeValue)("overlays")[e],n=r.status,o=r.value,u=c[n]||n,f=(0,s.getColors)(u).color;return(0,l.jsx)(s.default,{type:u,noBorder:!0,children:(0,l.jsxs)(i.TextSmall,{color:f,children:["Triggered value:"," ",(0,l.jsx)(i.TextSmall,{strong:!0,color:f,children:o})]})})};e.default=(0,o.memo)(f)},74787(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=u(r(96540)),i=r(78904),a=r(22332),s=u(r(32464)),l=r(74848);function u(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return(u=function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s})(t,e)}var c={critical:"error",clear:"success"},f=function(t){var e=t.id,r=(0,a.useAttributeValue)("overlays")[e],n=r.status,o=r.valueTriggered,u=c[n]||n,f=(0,s.getColors)(u).color;return(0,l.jsx)(s.default,{type:u,noBorder:!0,children:(0,l.jsxs)(i.TextSmall,{color:f,children:["Triggered value:"," ",(0,l.jsx)(i.TextSmall,{strong:!0,color:f,children:o})]})})};e.default=(0,o.memo)(f)},78842(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.annotationPriorities=void 0;s(r(96540));var n=s(r(33640)),o=r(78904),i=s(r(882)),a=r(74848);function s(t){return t&&t.__esModule?t:{default:t}}var l=e.annotationPriorities=[{name:"debug",color:"#9E9E9E",label:"Debug"},{name:"info",color:"#0075F2",label:"Info"},{name:"warning",color:"#FFCC26",label:"Warning"},{name:"error",color:"#F95251",label:"Error"},{name:"critical",color:"#D32F2F",label:"Critical"}],u=i.default.div.withConfig({displayName:"colorPicker__ColorOption",componentId:"sc-o8docr-0"})(["width:12px;height:8px;border-radius:2px;cursor:pointer;border:1px solid ",";background-color:",";box-shadow:0 1px 3px rgba(0,0,0,0.2);&:hover{transform:scale(1.1);}"],function(t){return t.selected?"#fff":"transparent"},function(t){return t.color});e.default=function(t){var e=t.selectedColor,r=t.onColorChange;return(0,a.jsx)(o.Flex,{gap:1,alignItems:"center",children:l.map(function(t){return(0,a.jsx)(n.default,{content:t.label,children:(0,a.jsx)(u,{color:t.color,selected:e===t.color,onClick:function(){return r(t.color,t.name)}})},t.name)})})}},22836(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=g(r(96540)),o=g(r(6504)),i=r(22332),a=b(r(33640)),s=r(78904),l=b(r(75116)),u=b(r(9932)),c=b(r(882)),f=r(8586),d=b(r(49628)),h=b(r(57613)),p=r(74848);function b(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(g=function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=m(t)&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a})(t,e)}function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach(function(e){x(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function x(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=m(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==m(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var w=(0,c.default)(s.Flex).attrs({justifyContent:"center",alignItems:"center",gap:2,height:"40px",alignSelf:"center",round:!0,width:{min:"120px"},padding:[1,2],border:{side:"all",color:"borderSecondary",style:"dashed"},background:"mainBackground",backgroundOpacity:.8,zIndex:10}).withConfig({displayName:"draft__StyledDraftAnnotation",componentId:"sc-12pquls-0"})([""]),j=(0,n.memo)(function(t){var e=t.annotation,r=(0,i.useChart)();return(0,p.jsxs)(s.Flex,{column:!0,gap:[.5],children:[(0,p.jsx)(s.TextNano,{strong:!0,color:"textLite",children:"New annotation"}),(0,p.jsxs)(s.TextNano,{color:"textLite",children:[r.formatDate(1e3*e.timestamp)," \u2022"," ",r.formatTime(1e3*e.timestamp)]})]})}),O=(0,n.memo)(function(){var t=(0,i.useChart)(),e=(0,i.useAttributeValue)("draftAnnotation");return"editing"===e.status?(0,p.jsx)(_,{}):(0,p.jsxs)(s.Flex,{gap:1,children:[(0,p.jsx)(a.default,{content:"Add annotation text",children:(0,p.jsx)(o.Button,{icon:(0,p.jsx)(o.default,{svg:l.default,size:"16px"}),onClick:function(){t.updateAttribute("draftAnnotation",v(v({},e),{},{status:"editing"}))},"data-testid":"draft-annotation-add","data-track":t.track("annotation-start-editing")})}),(0,p.jsx)(a.default,{content:"Cancel annotation",children:(0,p.jsx)(o.Button,{icon:(0,p.jsx)(o.default,{svg:u.default,size:"16px"}),onClick:function(){t.updateAttribute("draftAnnotation",null)},"data-testid":"draft-annotation-cancel","data-track":t.track("annotation-draft-cancel")})})]})}),_=(0,n.memo)(function(){var t=(0,i.useChart)(),e=(0,i.useAttributeValue)("draftAnnotation");return(0,p.jsx)(h.default,{placeholder:"Annotation text...",onSave:function(r){t.updateAttribute("draftAnnotation",v(v({},e),{},{status:"saving"}));var n={id:"annotation_".concat(e.timestamp,"_").concat(r.text.toLowerCase().replace(/[^a-z0-9]/g,"").substring(0,8)),type:"annotation",timestamp:e.timestamp,text:r.text,created:(new Date).toISOString(),color:r.color,priority:r.priority};(0,d.default)(t)({event:"annotation_created",annotationId:n.id,timestamp:n.timestamp,textLength:r.text.length,priority:r.priority});var o=t.getAttribute("overlays");t.updateAttribute("overlays",v(v({},o),{},x({},n.id,n))),t.updateAttribute("draftAnnotation",null),t.trigger("annotationCreated",n),t.sdk.trigger("annotationCreated",t,n)},onCancel:function(){return t.updateAttribute("draftAnnotation",null)},autoFocus:!0})});e.default=function(){var t=(0,i.useChart)(),e=(0,i.useAttributeValue)("draftAnnotation");return e?(0,p.jsxs)(w,{"data-track":t.track("annotation-draft-display"),children:[(0,p.jsx)(j,{annotation:e}),(0,p.jsx)(f.Divider,{}),(0,p.jsx)(O,{})]}):null}},57613(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=h(r(96540)),i=h(r(6504)),a=r(78904),s=d(r(9932)),l=d(r(91956)),u=r(22332),c=d(r(78842)),f=r(74848);function d(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return(h=function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s})(t,e)}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}e.default=function(t){var e=t.initialText,r=void 0===e?"":e,n=t.initialColor,d=void 0===n?"#0075F2":n,h=t.initialPriority,b=void 0===h?"info":h,g=t.placeholder,m=void 0===g?"Annotation text...":g,y=t.onSave,v=t.onCancel,x=t.autoFocus,w=void 0===x||x,j=(0,u.useChart)(),O=p((0,o.useState)(r),2),_=O[0],S=O[1],P=p((0,o.useState)(d),2),M=P[0],k=P[1],C=p((0,o.useState)(b),2),A=C[0],D=C[1],T=function(){_.trim()&&y({text:_.trim(),color:M,priority:A})};return(0,f.jsxs)(a.Flex,{column:!0,gap:1,children:[(0,f.jsxs)(a.Flex,{gap:1,alignItems:"center",children:[(0,f.jsx)(a.TextInput,{name:"annotation-text",placeholder:m,value:_,onChange:function(t){return S(t.target.value)},onKeyDown:function(t){"Enter"===t.key?(t.preventDefault(),T()):"Escape"===t.key&&(t.preventDefault(),v())},autoFocus:w,size:"tiny"}),(0,f.jsx)(i.Button,{icon:(0,f.jsx)(i.default,{svg:l.default,size:"16px"}),onClick:T,disabled:!_.trim(),size:"small","data-track":j.track("annotation-save-".concat(r?"edit":"create"))}),(0,f.jsx)(i.Button,{icon:(0,f.jsx)(i.default,{svg:s.default,size:"16px"}),onClick:v,size:"small",variant:"secondary","data-track":j.track("annotation-cancel")})]}),(0,f.jsx)(c.default,{selectedColor:M,onColorChange:function(t,e){k(t),D(e)}})]})}},79263(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=_(r(96540)),o=_(r(6504)),i=r(22332),a=O(r(33640)),s=r(78904),l=O(r(30464)),u=O(r(97701)),c=O(r(35083)),f=O(r(98108)),d=O(r(38860)),h=O(r(9932)),p=O(r(91956)),b=O(r(66427)),g=O(r(882)),m=r(18121),y=r(8586),v=r(78842),x=O(r(49628)),w=O(r(57613)),j=r(74848);function O(t){return t&&t.__esModule?t:{default:t}}function _(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(_=function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=S(t)&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a})(t,e)}function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function P(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,u=Object.create(l.prototype);return M(u,"_invoke",function(r,n,o){var i,s,l,u=0,c=o||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return i=e,s=0,l=t,d.n=r,a}};function h(r,n){for(s=r,l=n,e=0;!f&&u&&!o&&e<c.length;e++){var o,i=c[e],h=d.p,p=i[2];r>3?(o=p===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=r<2&&h<i[1])?(s=0,d.v=n,d.n=i[1]):h<p&&(o=r<3||i[0]>n||n>p)&&(i[4]=r,i[5]=n,d.n=p,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),s=c,l=p;(e=s<2?t:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),h(s,l)):d.n=l:d.v=l);try{if(u=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(f=d.n<0)?l:r.call(n,d))!==a)break}catch(e){i=t,s=1,l=e}finally{u=1}}return{value:e,done:f}}}(r,o,i),!0),u}var a={};function s(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(M(e={},n,function(){return this}),e),f=u.prototype=s.prototype=Object.create(c);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,M(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return l.prototype=u,M(f,"constructor",u),M(u,"constructor",l),l.displayName="GeneratorFunction",M(u,o,"GeneratorFunction"),M(f),M(f,o,"Generator"),M(f,n,function(){return this}),M(f,"toString",function(){return"[object Generator]"}),(P=function(){return{w:i,m:d}})()}function M(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}M=function(t,e,r,n){function i(e,r){M(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},M(t,e,r,n)}function k(t,e,r,n,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,o)}function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return A(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function D(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?D(Object(r),!0).forEach(function(e){I(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function I(t,e,r){return(e=E(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function E(t){var e=function(t,e){if("object"!=S(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==S(e)?e:e+""}var F=(0,g.default)(o.Button).withConfig({displayName:"annotation__UniverseButton",componentId:"sc-1d7hwjx-0"})(["svg{fill:",";}"],function(t){var e=t.theme,r=t.$state;return"global"===r?e.colors.primary:"temp"===r?e.colors.warning:e.colors.textDescription}),L=(0,g.default)(s.Flex).attrs(function(t){var e=t.isSynced;return{justifyContent:"center",alignItems:"center",gap:2,height:"50px",alignSelf:"center",round:!0,width:{min:"120px"},padding:[1,2],border:{side:"all",color:e?"borderPrimary":"borderSecondary"},background:"mainBackground",backgroundOpacity:e?.6:.8,zIndex:20}}).withConfig({displayName:"annotation__StyledAnnotation",componentId:"sc-1d7hwjx-1"})(["",""],function(t){return t.isSynced&&"\n opacity: 0.75;\n border-style: dashed;\n "}),z=(0,n.memo)(function(t){var e=t.annotation,r=(0,i.useChart)(),n=e.text,o=e.timestamp,a=e.author,l=e.color,u=e.priority,c=v.annotationPriorities.find(function(t){return t.color===l||t.name===u});return(0,j.jsxs)(s.Flex,{alignItems:"center",gap:1,children:[(0,j.jsx)("div",{style:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:l||"#0075F2",flexShrink:0}}),(0,j.jsxs)(s.Flex,{column:!0,gap:[.5],title:n,children:[(0,j.jsx)(s.TextSmall,{strong:!0,color:"textLite",ellipsis:!0,children:n}),(0,j.jsxs)(s.TextMicro,{color:"textLite",children:[r.formatDate(1e3*o)," \u2022 ",r.formatTime(1e3*o)," ",c&&"\u2022 ".concat(c.label)," ",a&&"\u2022 ".concat(a)]})]})]})}),N=(0,n.memo)(function(t){var e=t.annotation,r=t.onSave,n=t.onCancel;return(0,j.jsx)(w.default,{initialText:e.text,initialColor:e.color||"#0075F2",initialPriority:e.priority||"info",onSave:function(t){r(T(T({},e),t))},onCancel:n,autoFocus:!0})}),V=(0,n.memo)(function(t){var e=t.id,r=t.annotation,g=t.onEdit,m=(0,i.useChart)(),y=(0,i.useAttributeValue)("hasCorrelation"),v=C((0,n.useState)(!1),2),w=v[0],O=v[1],_=C((0,n.useState)(null),2),S=_[0],M=_[1],A=!!r.originallyFrom,D=!!r.isGlobal,I=A&&!D,L=!A&&!D&&function(t,e){return t.getApplicableNodes({}).some(function(r){if(r.getId()===t.getId())return!1;var n=r.getAttribute("overlays");return Object.keys(n).some(function(r){return r.startsWith("synced_".concat(e,"_from_").concat(t.getId()))})})}(m,e),z=function(){var t=[r.timestamp-150,r.timestamp+150];m.sdk.trigger("correlation",m,t)},N=function(){O(!0)},V=function(){var t=m.getAttribute("overlays"),r=(t[e],function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,[e].map(E)));m.updateAttribute("overlays",r)},B=function(){var t,r=(t=P().m(function t(){return P().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,navigator.clipboard.writeText(window.location.href);case 1:(0,x.default)(m)({event:"annotation_url_copied",annotationId:e}),t.n=3;break;case 2:t.p=2,t.v,(0,x.default)(m)({event:"annotation_url_copy_failed",annotationId:e});case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){k(i,n,o,a,s,"next",t)}function s(t){k(i,n,o,a,s,"throw",t)}a(void 0)})});return function(){return r.apply(this,arguments)}}();if(w)return(0,j.jsxs)(s.Flex,{gap:1,alignItems:"center",children:[(0,j.jsx)(s.TextMicro,{color:"textLite",children:A?"Remove from this chart?":"Are you sure?"}),(0,j.jsx)(o.Button,{icon:(0,j.jsx)(o.default,{svg:p.default,size:"16px"}),onClick:function(){(0,x.default)(m)({event:A?"annotation_sync_removed":"annotation_deleted",annotationId:e}),A?V():(m.trigger("annotationDelete",e,r),m.sdk.trigger("annotationDelete",m,e,r)),O(!1)},"data-testid":"annotation-delete-confirm","data-track":m.track("annotation-delete-confirm-".concat(A?"synced":"local"))}),(0,j.jsx)(o.Button,{icon:(0,j.jsx)(o.default,{svg:h.default,size:"16px"}),onClick:function(){O(!1)},"data-testid":"annotation-delete-cancel","data-track":m.track("annotation-delete-cancel")})]});if(A)return(0,j.jsxs)(s.Flex,{gap:1,children:[(0,j.jsx)(a.default,{content:"Go to source chart",children:(0,j.jsx)(o.Button,{icon:(0,j.jsx)(o.default,{svg:l.default,size:"16px"}),onClick:function(){m.sdk.trigger("goToLink",m,r.originallyFrom)},"data-testid":"annotation-goto-chart","data-track":m.track("annotation-goto-source-chart")})}),y&&(0,j.jsx)(a.default,{content:"Run metrics correlation at this point",children:(0,j.jsx)(o.Button,{icon:(0,j.jsx)(o.default,{svg:c.default,size:"16px"}),onClick:z,"data-testid":"annotation-correlation","data-track":m.track("annotation-correlation")})}),(0,j.jsx)(a.default,{content:"Copy URL to annotation",children:(0,j.jsx)(o.Button,{icon:(0,j.jsx)(o.default,{svg:b.default,size:"16px"}),onClick:B,"data-testid":"annotation-copy-url","data-track":m.track("annotation-copy-url")})}),(0,j.jsx)(a.default,{content:"Remove annotation sync",children:(0,j.jsx)(o.Button,{icon:(0,j.jsx)(o.default,{svg:d.default,size:"16px"}),onClick:N,"data-testid":"annotation-remove-sync","data-track":m.track("annotation-remove-sync")})})]});var R=function(){return D?"global":I||L?"temp":"context"};return(0,j.jsxs)(s.Flex,{gap:1,children:[(0,j.jsx)(a.default,{content:D?"Global annotation \u2022 Double-click to make chart-specific":I||L?"Temporarily synced \u2022 Click: remove sync \u2022 Double-click: make global":"Click: sync temporarily \u2022 Double-click: make global",children:(0,j.jsx)(F,{$state:R(),icon:(0,j.jsx)(o.default,{svg:u.default,size:"16px"}),onClick:function(){if(S)clearTimeout(S),M(null),D?function(){var t=m.getAttribute("contextScope"),n=m.getAttribute("isHead")?m.getAttribute("id"):t.join(","),o=T(T({},r),{},{isGlobal:!1,entity:n});(0,x.default)(m)({event:"annotation_made_chart_specific",annotationId:e}),m.trigger("annotationUpdate",e,o),m.sdk.trigger("annotationUpdate",m,e,o),m.sdk.trigger("clearAnnotationFromOtherCharts",m,e)}():function(){var t=T(T({},r),{},{isGlobal:!0,entity:"global"});(0,x.default)(m)({event:"annotation_made_global",annotationId:e}),m.trigger("annotationUpdate",e,t),m.sdk.trigger("annotationUpdate",m,e,t)}();else{var t=setTimeout(function(){M(null),D||(I||L?function(){if(I&&r.originallyFrom){var t=m.getApplicableNodes({}).find(function(t){return t.getId()===r.originallyFrom});t&&m.sdk.trigger("clearSyncedAnnotations",t)}else m.sdk.trigger("clearSyncedAnnotations",m)}():m.sdk.trigger("syncAnnotation",m,e,r))},300);M(t)}},"data-testid":"annotation-".concat(R()),"data-track":m.track("annotation-".concat(R(),"-action"))})}),y&&(0,j.jsx)(a.default,{content:"Run metrics correlation at this point",children:(0,j.jsx)(o.Button,{icon:(0,j.jsx)(o.default,{svg:c.default,size:"16px"}),onClick:z,"data-testid":"annotation-correlation","data-track":m.track("annotation-correlation")})}),(0,j.jsx)(a.default,{content:"Copy URL to annotation",children:(0,j.jsx)(o.Button,{icon:(0,j.jsx)(o.default,{svg:b.default,size:"16px"}),onClick:B,"data-testid":"annotation-copy-url","data-track":m.track("annotation-copy-url")})}),(0,j.jsx)(a.default,{content:"Edit annotation",children:(0,j.jsx)(o.Button,{icon:(0,j.jsx)(o.default,{svg:f.default,size:"16px"}),onClick:function(){g()},"data-testid":"annotation-edit","data-track":m.track("annotation-edit")})}),(0,j.jsx)(a.default,{content:"Delete annotation",children:(0,j.jsx)(o.Button,{icon:(0,j.jsx)(o.default,{svg:d.default,size:"16px"}),onClick:N,"data-testid":"annotation-delete","data-track":m.track("annotation-delete")})})]})});e.default=function(t){var e=t.id,r=(0,i.useChart)(),o=(0,i.useAttributeValue)("overlays"),a=C((0,m.useHovered)({},[e,o]),2),s=a[0],l=a[1],u=C((0,n.useState)(!1),2),c=u[0],f=u[1],d=C((0,n.useState)(!1),2),h=d[0],p=d[1],b=C((0,n.useState)(!1),2),g=b[0],v=b[1],w=o[e],O=!(null===w||void 0===w||!w.originallyFrom);if((0,n.useEffect)(function(){if(w&&w.timestamp&&r&&"dygraph"===r.getAttribute("chartLibrary")){var t=r.getUI();if(t){var e=t.getDygraph();if(e){var n=function(t){var r=e.canvas_.getBoundingClientRect(),n=t.clientX-r.left,o=e.toDomXCoord(1e3*w.timestamp),i=Math.abs(n-o)<5;f(i)},o=e.canvas_;return o.addEventListener("mousemove",n),o.addEventListener("mouseleave",function(){return f(!1)}),function(){o.removeEventListener("mousemove",n),o.removeEventListener("mouseleave",function(){return f(!1)})}}}}},[w,null===w||void 0===w?void 0:w.timestamp,r,e]),(0,n.useEffect)(function(){if(!(c||l)){var t=setTimeout(function(){return p(!1)},1e3);return function(){return clearTimeout(t)}}p(!0)},[c,l]),!w||"annotation"!==w.type)return null;return c||l||h?(0,j.jsx)(L,{ref:s,isSynced:O,"data-track":r.track("annotation-hover-".concat(O?"synced":"local")),children:g&&!O?(0,j.jsx)(N,{annotation:w,onSave:function(t){(0,x.default)(r)({event:"annotation_updated",annotationId:e}),r.trigger("annotationUpdate",e,t),r.sdk.trigger("annotationUpdate",r,e,t),v(!1)},onCancel:function(){v(!1)}}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(z,{annotation:w}),(0,j.jsx)(y.Divider,{}),(0,j.jsx)(V,{id:e,annotation:w,onEdit:function(){return v(!0)}})]})}):null}},33406(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;f(r(96540));var o=f(r(882)),i=r(78904),a=r(22332),s=f(r(54924)),l=f(r(33640)),u=r(74848),c=["field","normalize"];function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach(function(e){p(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function p(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=(0,o.default)(s.default).withConfig({displayName:"chartName__StyledShortener",componentId:"sc-q7d2de-0"})(["text-shadow:0 18px 28px rgba(9,30,66,0.15),0 0 1px rgba(9,30,66,0.31);pointer-events:none;"]);e.default=function(t){var e=t.field,r=t.normalize,n=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,c),o=(0,a.useAttributeValue)(e),s=(0,a.useChart)();return r&&(o=r(o,s.getAttributes())),o?(0,u.jsx)(l.default,{content:o,children:(0,u.jsx)(b,h({color:"key",text:o,Component:i.TextSmall},n))}):null}},85338(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.alignment=void 0;var n,o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=c(t)&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a}(t,e)}(r(96540)),i=(n=r(882))&&n.__esModule?n:{default:n},a=r(78904),s=r(22332),l=r(74848),u=["id","align","right","fixed","children","uiName"];function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach(function(e){b(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function b(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var g=e.alignment={chartMiddle:"chartMiddle",elementMiddle:"elementMiddle",elementRight:"elementRight",elementLeft:"elementLeft",elementFull:"elementFull"},m=b(b(b(b(b({},g.chartMiddle,function(t){var e,r=t.from,n=t.chartWidth,o=t.element;return[60,Math.min(r-24,60+n/2+(null===(e=o.firstChild)||void 0===e?void 0:e.offsetWidth)/2)]}),g.chartLeft,function(t){var e,r=t.chartWidth;return[0,(null===(e=t.element.firstChild)||void 0===e?void 0:e.offsetWidth)-r]}),g.elementMiddle,function(t){var e,r=t.from;return[r,r+t.width/2+(null===(e=t.element.firstChild)||void 0===e?void 0:e.offsetWidth)/2]}),g.elementRight,function(t){var e=t.from;return[e,e+t.width]}),g.elementLeft,function(t){var e=t.from;return[e,e]}),y=(0,i.default)(a.Flex).withConfig({displayName:"container__HorizontalContainer",componentId:"sc-n9fh2a-0"})(["position:absolute;",";",";",";",";",";",";overflow:hidden;"],function(t){return t.noTransform?"":"transform: translateY(-50%)"},function(t){var e=t.top;return e&&"top: ".concat(e,";")},function(t){var e=t.bottom;return e&&"bottom: ".concat(e,";")},function(t){var e=t.left;return e&&"left: ".concat(e,";")},function(t){var e=t.right;return e&&"right: ".concat(e,";")},function(t){return t.noEvents&&"pointer-events: none;"}),v=function(t){var e=t.id,r=t.align,n=t.right,i=void 0===n?0:n,a=t.fixed,c=t.children,f=t.uiName,p=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,u),b=(0,o.useRef)(),v=h((0,o.useState)(),2),x=v[0],w=v[1],j=(0,s.useChart)(),O=function(t){if(j&&j.getUI(f)&&t&&b.current){var e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.elementMiddle,e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=r.from,a=r.width,s=e.getUI(o).getChartWidth();return(m[t]||m.elementMiddle)({from:i,width:a,chartWidth:s,element:n})}(r,j,t,b.current,f),n=h(e,2)[1];b.current.style.right="calc(100% - ".concat(n+i,"px)")}};return(0,o.useLayoutEffect)(function(){return!a&&j.getUI(f).on("overlayedAreaChanged:".concat(e),function(t){O(t),w(function(e){return!!e!==!!t?t:e})})},[]),(0,o.useLayoutEffect)(function(){return!a&&O(x)},[x]),x||a?(0,l.jsx)(y,d(d({ref:b},p),{},{children:c})):null};e.default=(0,o.memo)(v)},98066(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Period=void 0;d(r(96540));var o=d(r(882)),i=r(78904),a=d(r(35083)),s=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(6504)),l=d(r(33640)),u=r(22332),c=r(93658),f=r(74848);function d(t){return t&&t.__esModule?t:{default:t}}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var b=(0,o.default)(s.Button).withConfig({displayName:"correlation__CorrelationButton",componentId:"sc-a0l0u6-0"})(["pointer-events:all;"]);e.Period=function(t){var e=t.id,r=h((0,u.useAttributeValue)("overlays")[e].range,2),n=r[0],o=r[1],a=(0,c.getDateDiff)(n,o);return(0,f.jsx)(i.TextNano,{strong:!0,children:a})},e.default=function(t){var e=t.id,r=(0,u.useAttributeValue)("overlays")[e].range,n=h(r,2),o=n[0],c=function(t){return t<15?"requires 15 secs minimum selection":""}(n[1]-o),d=(0,u.useChart)();return(0,f.jsx)(l.default,{content:c?"Metrics correlation: ".concat(c):"Run metrics correlation",children:(0,f.jsx)(i.Flex,{children:(0,f.jsx)(b,{"data-track":d.track("metrics-correlation"),icon:(0,f.jsx)(s.default,{svg:a.default,size:"20px"}),onClick:function(){return d.sdk.trigger("correlation",d,r)},"data-testid":"highlight-correlations",disabled:!!c})})})}},8586(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Divider=void 0;var n,o=c(r(96540)),i=(n=r(882))&&n.__esModule?n:{default:n},a=r(78904),s=c(r(98066)),l=r(22332),u=r(74848);function c(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(c=function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=f(t)&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a})(t,e)}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach(function(e){p(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function p(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=(0,i.default)(a.Flex).attrs({justifyContent:"center",alignItems:"center",gap:2,height:"40px",alignSelf:"center",round:!0,width:{min:"70px"},padding:[1,2],border:{side:"all",color:"borderSecondary"}}).withConfig({displayName:"highlight__StyledHighlight",componentId:"sc-e18ttp-0"})(["background-color:","80;"],(0,a.getColor)("mainBackground")),g=e.Divider=(0,i.default)(a.Flex).withConfig({displayName:"highlight__Divider",componentId:"sc-e18ttp-1"})(["background:",";height:16px;width:1px;"],(0,a.getColor)("borderSecondary")),m=(0,o.memo)(function(t){return(0,u.jsxs)(a.Flex,{column:!0,gap:[.5],children:[(0,u.jsx)(a.TextNano,{strong:!0,textTransform:"uppercase",color:"textLite",children:"Range"}),(0,u.jsx)(s.Period,h({},t))]})}),y=function(t){var e=t.id,r=t.correlationProps,n=(0,l.useAttributeValue)("hasCorrelation");return(0,l.useAttributeValue)("focused")?(0,u.jsxs)(b,{children:[(0,u.jsx)(m,{id:e}),n?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(g,{}),(0,u.jsx)(s.default,h({id:e},r))]}):null]}):null};e.default=(0,o.memo)(y)},94833(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),a=r(22332),s=(o=r(71840))&&o.__esModule?o:{default:o},l=r(74848),u=["type"];function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d=function(t){var e=t.uiName,r=(0,a.useAttributeValue)("overlays"),n=(0,a.useAttributeValue)("draftAnnotation");return(0,l.jsxs)(i.Fragment,{children:[n&&(0,l.jsx)(s.default.draftAnnotation,{id:"draftAnnotation",uiName:e}),Object.keys(r).map(function(t){var n=r[t],o=n.type,i=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(n,u),a=s.default[o];return a?(0,l.jsx)(a,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach(function(e){f(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({id:t,uiName:e},i),t):null})]})};e.default=(0,i.memo)(d)},76743(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;c(r(96540));var o=c(r(882)),i=r(78904),a=r(22332),s=r(74848),l=["timestamp"],u=["textProps"];function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(e){b(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function b(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var m=(0,o.default)(i.Text).withConfig({displayName:"latestTime__StrokeLabel",componentId:"sc-1y9qb6d-0"})(["text-shadow:0.02em 0 ",",0 0.02em ",",-0.02em 0 ",",0 -0.02em ",";"],(0,i.getColor)("borderSecondary"),(0,i.getColor)("borderSecondary"),(0,i.getColor)("borderSecondary"),(0,i.getColor)("borderSecondary")),y=(0,o.default)(i.Flex).withConfig({displayName:"latestTime__StyledFlex",componentId:"sc-1y9qb6d-1"})(["pointer-events:none;"]),v=function(t){var e=t.timestamp,r=g(t,l),n=(0,a.useFormatTime)(e),o=(0,a.useFormatDate)(e);return(0,s.jsxs)(m,p(p({color:"text",whiteSpace:"nowrap","data-testid":"chartIndicator-dateTime-latest-value"},r),{},{children:[o," \u2022 ",n]}))};e.default=function(t){var e,r=t.textProps,n=g(t,u),o=(0,a.useChart)(),i=f((0,a.useAttributeValue)("hoverX")||[],1)[0],l=(0,a.usePayload)().data;if(!l.length)return null;var c=null===(e=l[i?o.getClosestRow(i):l.length-1])||void 0===e?void 0:e[0];return c?(0,s.jsx)(y,p(p({round:5,background:"mainBackground",padding:[.5,4]},n),{},{children:(0,s.jsx)(v,p({timestamp:c},r))})):null}},92585(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;c(r(96540));var o=c(r(882)),i=r(78904),a=r(22332),s=c(r(56284)),l=r(74848),u=["dimensionId","textProps"];function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach(function(e){h(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p=(0,o.default)(i.Text).withConfig({displayName:"latestValue__StrokeLabel",componentId:"sc-1x8pqx7-0"})(["text-shadow:0.02em 0 ",",0 0.02em ",",-0.02em 0 ",",0 -0.02em ",";"],(0,i.getColor)("borderSecondary"),(0,i.getColor)("borderSecondary"),(0,i.getColor)("borderSecondary"),(0,i.getColor)("borderSecondary")),b=(0,o.default)(i.Flex).withConfig({displayName:"latestValue__StyledFlex",componentId:"sc-1x8pqx7-1"})(["pointer-events:none;"]),g={color:"text",whiteSpace:"nowrap"};e.default=function(t){var e=t.dimensionId,r=t.textProps,n=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,u),o=(0,a.useUnitSign)({dimensionId:e}),i=(0,a.useLatestConvertedValue)(e),c=(0,a.useOnResize)(),f=c.width,h=c.height;return i&&"-"!==i?(0,l.jsxs)(b,d(d({column:!0},n),{},{children:[(0,l.jsx)(s.default,d(d(d({Component:p,maxHeight:.8*(h-20),maxWidth:f-20,fontSize:"2.1em",lineHeight:"1.1em",strong:!0},g),r),{},{children:i})),(0,l.jsx)(s.default,d(d(d({Component:p,maxHeight:.15*(h-20),maxWidth:.2*(f-20),fontSize:"1.1em",strong:!0},g),{},{color:"textLite"},r),{},{cacheKey:i,children:o}))]})):(0,l.jsx)(s.default,d(d(d(d({Component:p,maxHeight:.9*(h-20),maxWidth:f-20,fontSize:"2.5em",strong:!0},g),r),n),{},{children:"string"!==typeof i?"Loading...":"No data"}))}},48666(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Processing=void 0;u(r(96540));var o=u(r(882)),i=r(78904),a=r(22332),s=r(74848),l=["defaultValue","uiName"];function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach(function(e){d(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function d(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h=(0,o.default)(i.Flex).attrs({column:!0,round:!0,border:{side:"all",color:"borderSecondary"},gap:1,padding:[1,2],flex:!1}).withConfig({displayName:"proceeded__ProceededContainer",componentId:"sc-ac5spo-0"})(["direction:initial;"]),p=function(t){var e=t.defaultValue,r=t.uiName,n=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,l),o=(0,a.useChart)().getUI(r).getChartWidth(),u=(0,a.useChartError)();return o<240?null:u&&e?(0,s.jsx)(h,f(f({},n),{},{children:(0,s.jsx)(i.Text,{textAlign:"center",textTransform:"firstLetter",children:u||e})})):null},b=(0,o.default)(i.Flex).withConfig({displayName:"proceeded__CenterContainer",componentId:"sc-ac5spo-1"})(["z-index:60000;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);"]);e.Processing=function(){return(0,s.jsx)(b,{children:(0,s.jsx)(p,{defaultValue:"Processing"})})},e.default=p},71840(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;S(r(96540));var o=S(r(882)),i=S(r(41956)),a=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(85338)),s=S(r(97556)),l=S(r(74787)),u=S(r(8586)),c=S(r(48666)),f=S(r(33406)),d=S(r(92585)),h=S(r(76743)),p=S(r(79263)),b=S(r(22836)),g=r(22332),m=r(74848),y=["id"],v=["id"],x=["id"],w=["id","uiName"],j=["containerProps"],O=["id"],_=["id"];function S(t){return t&&t.__esModule?t:{default:t}}function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function M(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?P(Object(r),!0).forEach(function(e){k(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function k(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function C(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var A=(0,o.default)(i.default).withConfig({displayName:"types__NoEventsContainer",componentId:"sc-19vz950-0"})(["pointer-events:none;"]);e.default={alarm:function(t){var e=t.id,r=C(t,y);return(0,m.jsx)(a.default,M(M({id:e,top:"20px",margin:[0,2,0,0],align:a.alignment.elementLeft},r),{},{children:(0,m.jsx)(s.default,{id:e})}))},alarmRange:function(t){var e=t.id,r=C(t,v);return(0,m.jsx)(a.default,M(M({id:e,top:"20px",margin:[0,2,0,0],align:a.alignment.elementLeft},r),{},{children:(0,m.jsx)(l.default,{id:e})}))},highlight:function(t){var e=t.id,r=C(t,x);return(0,g.useAttributeValue)("sparkline")?null:(0,m.jsx)(a.default,M(M({id:e,align:a.alignment.elementRight,bottom:"25px",right:100},r),{},{noEvents:!0,children:(0,m.jsx)(u.default,{id:e})}))},proceeded:function(t){var e=t.id,r=t.uiName,n=C(t,w);return(0,m.jsx)(a.default,M(M({id:e,top:"50%",align:a.alignment.chartMiddle,uiName:r},n),{},{children:(0,m.jsx)(c.default,{id:e,uiName:r})}))},name:function(t){var e=t.containerProps,r=C(t,j);return(0,m.jsx)(A,M(M({isAbsolute:!0,position:"top",margin:[2,0,0,0]},e),{},{children:(0,m.jsx)(f.default,M({},r))}))},latestValue:function(t){return(0,m.jsx)(A,{isAbsolute:!0,position:"center",children:(0,m.jsx)(d.default,M({},t))})},latestTime:function(t){return(0,m.jsx)(A,{isAbsolute:!0,position:"center",children:(0,m.jsx)(h.default,M({},t))})},annotation:function(t){var e=t.id,r=C(t,O);return(0,m.jsx)(a.default,M(M({id:e,align:a.alignment.elementRight,top:"25px",right:-5},r),{},{children:(0,m.jsx)(p.default,{id:e})}))},draftAnnotation:function(t){var e=t.id,r=C(t,_);return(0,m.jsx)(a.default,M(M({id:e,align:a.alignment.elementRight,top:"25px",right:-5},r),{},{children:(0,m.jsx)(b.default,{})}))}}},42417(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;m(r(96540));var o=m(r(882)),i=r(78904),a=g(r(99010)),s=m(r(23630)),l=g(r(24652)),u=r(22332),c=r(96380),f=r(22753),d=r(67268),h=r(74848),p=["children","fractionDigits"],b=["children","showFull"];function g(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return(g=function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s})(t,e)}function m(t){return t&&t.__esModule?t:{default:t}}function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach(function(e){x(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function x(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return j(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function O(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var _=(0,o.default)(i.Flex).attrs({position:"relative","data-testid":"chartPopover-dimension",padding:[1,0]}).withConfig({displayName:"dimension__GridRow",componentId:"sc-adzl1v-0"})(["display:contents;"]),S=(0,o.default)(a.ColorBar).attrs({position:"absolute",top:1,left:0,backgroundOpacity:.4,round:.5}).withConfig({displayName:"dimension__ColorBackground",componentId:"sc-adzl1v-1"})([""]),P={ANOMALY_RATE:"arp",default:"value"},M=function(t){var e=t.children,r=t.fractionDigits,n=void 0===r?0:r,o=O(t,p),a=w(e.toString().split("."),2),s=a[0],u=a[1];return(0,h.jsxs)(i.Flex,{alignItems:"center",justifyContent:"end",children:[(0,h.jsx)(l.Value,v(v({},o),{},{textAlign:"right",children:s})),"undefined"!==typeof u&&(0,h.jsx)(l.Value,v(v({},o),{},{children:"."})),(0,h.jsx)(l.Value,v(v({as:i.Flex,flex:!1,width:1.6*n},o),{},{textAlign:"left",children:u}))]})},k=function(t){var e=t.children,r=t.showFull,n=O(t,b);return(0,h.jsx)(i.Flex,{gap:1,justifyContent:"end",children:Object.keys(e).map(function(t){return(0,h.jsx)(i.Flex,{border:{size:"1px",side:"all",color:e[t]},round:!0,flex:!1,padding:[0,.5],children:(0,h.jsx)(l.Value,v(v({},n),{},{color:e[t],children:r&&c.labels[t]||t}))},t)})})};e.default=function(t){var e=t.id,r=t.strong,n=t.rowFlavour,o=(0,u.useVisibleDimensionId)(e),c=(0,u.useChart)().getAttribute("unitsConversionFractionDigits"),p=(0,f.useIsHeatmap)();return(0,h.jsxs)(_,{opacity:o?null:"weak",children:[(0,h.jsxs)(i.Flex,{alignItems:"center",gap:1,position:"relative",children:[(0,h.jsx)(S,{id:e,valueKey:P[n]||P.default,height:"18px",children:!p&&(0,h.jsx)(a.default,{id:e})}),(0,h.jsx)(s.default,{padding:[1,2],flex:!0,id:e,strong:r,noTooltip:!0,color:r?"textFocus":"text"})]}),(0,h.jsx)(l.default,{id:e,strong:r,visible:o,Component:M,fractionDigits:c,color:n===d.rowFlavours.default?r?"textFocus":"text":"textLite"}),(0,h.jsx)(l.default,{id:e,strong:r,visible:o,valueKey:"arp",Component:M,fractionDigits:2,color:n===d.rowFlavours.ANOMALY_RATE?"anomalyTextFocus":"anomalyText"}),(0,h.jsx)(l.default,{textAlign:"right",id:e,strong:r,visible:o,valueKey:"pa",Component:k,color:n===d.rowFlavours.ANNOTATIONS?r?"textFocus":"text":"textLite",showFull:n===d.rowFlavours.ANNOTATIONS})]})}},67268(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.rowFlavours=e.default=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=h(r(882)),a=r(78904),s=r(22332),l=h(r(75010)),u=h(r(24413)),c=h(r(17073)),f=h(r(42417)),d=r(74848);function h(t){return t&&t.__esModule?t:{default:t}}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var g=(0,i.default)(a.Flex).attrs({round:!0,width:{min:"196px",max:"80vw"},background:"dropdown",column:!0,padding:[4],gap:1}).withConfig({displayName:"dimensions__Container",componentId:"sc-172on4u-0"})(["box-shadow:0px 8px 12px rgba(9,30,66,0.15),0px 0px 1px rgba(9,30,66,0.31);"]),m=i.default.div.withConfig({displayName:"dimensions__Grid",componentId:"sc-172on4u-1"})(["display:grid;width:100%;grid-template-columns:minmax(200px,2fr) minmax(80px,1.5fr) minmax(80px,1fr) minmax( 80px,0.5fr );align-items:center;"]),y=i.default.div.withConfig({displayName:"dimensions__GridHeader",componentId:"sc-172on4u-2"})(["display:contents;"]),v=[null,null],x=function(){var t=Math.floor((window.innerHeight-500)/15)||16;return t<5?5:10},w=function(){return x()/2},j=e.rowFlavours={ANOMALY_RATE:"ANOMALY_RATE",ANNOTATIONS:"ANNOTATIONS",default:"VALUE"},O={ANOMALY_RATE:"anomalyDesc",ANNOTATIONS:"annotationsDesc",default:"valueDesc"},_=function(){var t=(0,s.useChart)(),e=p((0,s.useAttributeValue)("hoverX")||v,2),r=e[0],n=e[1],i=(0,o.useMemo)(function(){var e=t.getClosestRow(r),o=t.onHoverSortDimensions(e,O[n]||O.default)||[];t.getAttribute("selectedDimensions").length>0&&(o=o.filter(function(e){return t.isDimensionVisible(e)}));var i=o.findIndex(function(t){return t===n}),a=o.length,s=Math.floor(function(t,e){return t<x()||e<w()?0:e>t-w()?e-(w()+(t-e)):e-w()}(a,i)),l=Math.ceil(function(t,e){return t<x()?t:e<w()?e+w()+(w()-e):e>t-w()?t:e+w()}(a,i));return[s,l,a,o.slice(s,l)]},[t,n,r]),h=p(i,4),b=h[0],_=h[1],S=h[2],P=h[3],M=j[n]||j.default;return(0,d.jsxs)(g,{"data-testid":"chartPopover-dimensions",gap:2,children:[(0,d.jsxs)(a.Flex,{column:!0,gap:1,children:[r&&(0,d.jsx)(c.default,{value:r}),(0,d.jsx)(u.default,{})]}),(0,d.jsx)(a.Flex,{flex:!1,height:3,children:b>0&&(0,d.jsxs)(a.TextNano,{color:"textLite",children:["\u2191",b," more values"]})}),(0,d.jsxs)(m,{gap:1,column:!0,children:[(0,d.jsxs)(y,{children:[(0,d.jsx)(a.TextMicro,{strong:!0,children:"Dimension"}),(0,d.jsxs)(a.TextMicro,{color:M===j.default?"text":"textLite",textAlign:"right",children:["Value","heatmap"!==t.getAttribute("chartType")&&(0,d.jsxs)(d.Fragment,{children:[" ",(0,d.jsx)(l.default,{visible:!0,strong:M===j.default,color:M===j.default?"text":"textLite"})]})]}),(0,d.jsx)(a.TextMicro,{strong:M===j.ANOMALY_RATE,color:M===j.ANOMALY_RATE?"text":"textLite",textAlign:"right",children:"Anomaly%"}),(0,d.jsx)(a.TextMicro,{strong:M===j.ANNOTATIONS,color:M===j.ANNOTATIONS?"text":"textLite",textAlign:"right",children:"Info"})]}),P.map(function(t){return(0,d.jsx)(f.default,{id:t,strong:n===t,rowFlavour:M},t)})]}),(0,d.jsx)(a.Flex,{flex:!1,height:3,children:_<S&&(0,d.jsxs)(a.TextNano,{color:"textLite",margin:[2,0,0],children:["\u2193",S-_," more values"]})})]})};e.default=(0,o.memo)(_)},34101(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=r(78904),a=p(r(40961)),s=p(r(93331)),l=p(r(22007)),u=p(r(44862)),c=r(28973),f=r(22332),d=p(r(67268)),h=r(74848);function p(t){return t&&t.__esModule?t:{default:t}}function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return g(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var m={right:"left",bottom:"top"},y={right:"left",top:"bottom"},v={left:"right",bottom:"top"},x={left:"right",top:"bottom"};e.default=function(t){var e=t.uiName,r=(0,f.useChart)(),n=(0,o.useRef)(),p=b((0,o.useState)(),2),g=p[0],w=p[1],j=(0,o.useRef)(),O=(0,o.useRef)(),_=b((0,o.useState)(!1),2),S=_[0],P=_[1],M=b((0,o.useState)(m),2),k=M[0],C=M[1];j.current=g,O.current=(0,l.default)(g,n,k,"width"),(0,o.useEffect)(function(){return(0,c.unregister)(r.getUI(e).on("mousemove",function(t){if(!(r.sdk.getRoot().getAttribute("autofetchOnHovering")||r.getAttribute("panning")||r.getAttribute("highlighting"))){var e=t.offsetX||t.layerX,o=t.offsetY||t.layerY;if(P(!0),j.current){j.current.style.left="".concat(e,"px"),j.current.style.top="".concat(o,"px"),O.current();var i=n.current.getBoundingClientRect(),a=i.width,s=i.height,l=e+a>window.innerWidth,u=o+s>window.innerHeight;C(function(t,e){return t&&e?m:t?y:e?v:x}(l,u))}}}),r.getUI(e).on("mouseout",function(){return P(!1)}),r.onAttributeChange("panning",function(t){return t&&P(!1)}),r.onAttributeChange("highlighting",function(t){return t&&P(!1)}))},[r]);var A=(0,u.default)();return S?(0,h.jsxs)(o.Fragment,{children:[(0,h.jsx)(i.Flex,{ref:function(t){return w(t)},position:"absolute"}),a.default.createPortal((0,h.jsx)(s.default,{"data-toolbox":r.getId(),margin:[k.top?2:-2,k.right?-2:2],ref:n,width:{max:"100%"},column:!0,"data-testid":"drop",sx:{pointerEvents:"none"},zIndex:101,children:(0,h.jsx)(d.default,{uiName:e,"data-testid":"chartPopover"})}),A)]}):null}},17073(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=r(78904),a=r(22332),s=r(74848);e.default=function(t){var e=t.value,r=(0,a.useChart)(),n=(0,o.useMemo)(function(){return"".concat(r.formatDate(e)," \u2022 ").concat(r.formatTime(e))},[e]);return(0,s.jsx)(i.TextMicro,{color:"textDescription","data-testid":"chartPopover-timestamp",children:n})}},24413(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=r(78904),a=r(22332),s=r(74848);e.default=function(){var t=(0,a.useAttributeValue)("viewUpdateEvery"),e=(0,a.useAttributeValue)("updateEvery"),r=(0,a.useAttributeValue)("groupingMethod");return(0,s.jsxs)(o.Fragment,{children:[(0,s.jsxs)(i.Flex,{gap:1,"data-testid":"chartPopover-collection",children:[(0,s.jsx)(i.TextMicro,{color:"textLite",children:"Granularity:"}),(0,s.jsxs)(i.TextMicro,{color:"textDescription",children:[e,"s"]})]}),t!==e&&(0,s.jsxs)(i.Flex,{gap:1,"data-testid":"chartPopover-collection",children:[(0,s.jsx)(i.TextMicro,{color:"textLite",children:"View point:"}),(0,s.jsxs)(i.TextMicro,{color:"textDescription",children:[r," ",t,"s"]})]})]})}},99684(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;(n=r(96540))&&n.__esModule;var n,o=r(78904),i=r(74848);e.default=function(t){var e=t.disabled;return(0,i.jsx)(o.Flex,{width:"1px",background:e?"disabled":"borderSecondary"})}},31899(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;f(r(96540));var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(882)),i=r(78904),a=r(22332),s=f(r(6504)),l=f(r(42883)),u=r(74848),c=["height"];function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach(function(e){p(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function p(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=(0,o.keyframes)(["from{opacity:0.2;}to{opacity:0.6;}"]),g=(0,o.default)(s.default).attrs({svg:l.default,width:"100%"}).withConfig({displayName:"skeleton__SkeletonIcon",componentId:"sc-x7r6du-0"})(["animation:"," 1.6s ease-in infinite;"],b);e.default=function(t){var e=t.height,r=void 0===e?"90%":e,n=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,c),o=(0,a.useLoadingColor)();return(0,u.jsx)(i.Flex,h(h({flex:!0,padding:[0,0,0,10]},n),{},{children:(0,u.jsx)(g,{color:o,height:r})}))}},49096(t,e,r){"use strict";e.Ay=void 0;f(r(96540));var n=r(78904),o=f(r(74113)),i=r(22332),a=f(r(10534)),s=r(89380),l=f(r(56284)),u=r(74848),c=["uiName","ref"];function f(t){return t&&t.__esModule?t:{default:t}}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach(function(e){m(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function m(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=d(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==d(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var y=function(t){var e=(0,i.useOnResize)(),r=e.width,o=e.height,a=(0,i.useLatestConvertedValue)("selected");return(0,u.jsx)(l.default,g(g({Component:n.Text,maxHeight:.7*(o-20),maxWidth:r-20,lineHeight:"1.1em",strong:!0},t),{},{children:a}))},v=function(t){var e=(0,i.useOnResize)(),r=e.width,o=e.height,a=h((0,i.useDimensionIds)(),1)[0],s=(0,i.useUnitSign)({dimensionId:a});return s?(0,u.jsx)(l.default,g(g({Component:n.Text,maxHeight:.25*(o-20),maxWidth:.7*(r-20),fontSize:"1.1em",strong:!0,color:"textLite"},t),{},{children:s})):null},x=function(t){var e=t.uiName,r=t.ref,n=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,c);return(0,u.jsx)(s.ChartWrapper,{ref:r,children:(0,u.jsxs)(o.default,g(g({uiName:e,column:!0,alignItems:"center",justifyContent:"center",position:"relative"},n),{},{children:[(0,u.jsx)(y,{}),(0,u.jsx)(v,{})]}))})};e.Ay=(0,a.default)(x,{tile:!0})},77024(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.valueColumn=e.labelColumn=void 0;b(r(96540));var o=r(78904),i=b(r(99010)),a=b(r(23630)),s=b(r(75010)),l=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(24652)),u=r(22332),c=b(r(33640)),f=b(r(36112)),d=r(65825),h=r(74848),p=["children","fractionDigits","ref"];function b(t){return t&&t.__esModule?t:{default:t}}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach(function(e){y(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function y(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return x(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var w={dimension:"dimensions",node:"nodes",instance:"instances",label:"labels",value:"values",default:"values"},j=[],O=(e.labelColumn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.fallbackExpandKey,n=e.partIndex,s=e.header,l=void 0===s?"Name":s;return{id:"label".concat(l||"").concat(n||""),name:l,header:function(){return(0,h.jsx)(o.TextSmall,{strong:!0,children:l})},sortingFn:function(e,r){var o,i;return(t.getDimensionName(null===(o=e.original.ids)||void 0===o?void 0:o[0],n)||"-").localeCompare(t.getDimensionName((null!==(i=r.original.ids)&&void 0!==i&&i[0],n||"-")),void 0,{sensitivity:"accent",ignorePunctuation:!0})},fullWidth:!0,size:50,minSize:30,cell:function(t){var e=t.row,s=e.original.ids,l=e.depth,c=void 0===l?0:l,d=e.getCanExpand,p=e.getToggleExpandedHandler,b=e.getIsExpanded,g=v((0,u.useAttributeValue)("hoverX")||j,2)[1],m=(0,u.useChart)(),y=s.some(m.isDimensionVisible),x=v(s,1)[0];return(0,h.jsxs)(o.Flex,{justifyContent:"between",alignItems:"center",padding:[0,0,0,3*c],opacity:y?null:"weak",children:[(0,h.jsxs)(o.Flex,{alignItems:"center",gap:1,position:"relative",width:"100%",children:[y&&(0,h.jsx)(i.default,{id:x,partIndex:n,height:"18px"}),(0,h.jsx)(a.default,{padding:[.5,1.5],flex:!0,id:x,fallback:"[empty]",partIndex:n})]}),d()&&(0,h.jsx)(f.default,{label:w[g.original.value]||w[r]||w.default,onClick:function(t){p()(t),setTimeout(function(){return t.target.scrollIntoView({behavior:"smooth",block:"nearest"})})},iconRotate:b()?2:null,textProps:{fontSize:"10px",color:"textLite"}})]})}}},function(t){var e=t.children,r=t.fractionDigits,n=void 0===r?0:r,i=t.ref,a=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,p),s=v(e.toString().split("."),2),u=s[0],c=s[1];return n=-1===n?4:n,(0,h.jsxs)(o.Flex,{alignItems:"center",justifyContent:"start",ref:i,children:[(0,h.jsx)(l.Value,m(m({},a),{},{flex:!1,basis:3*1.6,textAlign:"right",children:u})),"undefined"!==typeof c&&(0,h.jsx)(l.Value,m(m({},a),{},{children:"."})),(0,h.jsx)(l.Value,m(m({as:o.Flex,flex:!1,width:1.6*n},a),{},{textAlign:"left",children:c}))]})}),_=function(t){var e=t.id,r=(0,u.useUnitSign)({long:!0,dimensionId:e,withoutConversion:!0}),n=(0,u.useLatestValue)(e);return"".concat(n," ").concat(r)};e.valueColumn=function(t,e){var r=e.dimensionLabel,n=void 0===r?"Value":r,i=e.dimensionId,a=e.keys,f=void 0===a?[]:a,p=f.length?f.join("|"):"";return{id:"value".concat(p),name:n,header:function(){return(0,h.jsxs)(o.Flex,{column:!0,children:[(0,h.jsx)(o.TextSmall,{children:n}),(0,h.jsx)(s.default,{visible:!0,dimensionId:i})]})},sortingFn:function(e,r){return n=u.getValueByPeriod.latest({chart:t,id:((0,d.getValue)(p,null,e.original.contextGroups,"|")||e.original.ids).find(function(t){return t.includes(e.original.key)})}),o=u.getValueByPeriod.latest({chart:t,id:((0,d.getValue)(p,null,r.original.contextGroups,"|")||r.original.ids).find(function(t){return t.includes(r.original.key)})}),n===o?0:n>o?1:-1;var n,o},fullWidth:!0,size:50,minSize:30,meta:{tooltip:(0,h.jsxs)(o.TextSmall,{children:[n," in"," ",(0,h.jsx)(o.TextSmall,{strong:!0,children:t.getUnitSign({key:"units",dimensionId:i,long:!0})})]})},cell:function(t){var e=t.row.original,r=e.key,n=e.ids,o=e.contextGroups,i=((0,d.getValue)(p,null,o,"|")||n).find(function(t){return t.includes(r)}),a=(0,u.useVisibleDimensionId)(i),s=(0,u.useChart)().getAttribute("unitsConversionFractionDigits");return(0,h.jsx)(c.default,{content:a?(0,h.jsx)(_,{id:i}):null,children:(0,h.jsx)(l.default,{period:"latest",id:i,visible:a,Component:O,fractionDigits:s,color:"text"})})}}}},45123(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}e.Ay=void 0;var o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var i,a,s={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return s;if(i=e?o:r){if(i.has(t))return i.get(t);i.set(t,s)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?i(s,l,a):s[l]=t[l]);return s}(t,e)}(r(96540)),i=r(78904),a=m(r(18121)),s=m(r(74113)),l=m(r(79045)),u=r(22332),c=m(r(10534)),f=r(89380),d=m(r(90592)),h=m(r(39483)),p=m(r(10827)),b=r(74848),g=["uiName","ref"];function m(t){return t&&t.__esModule?t:{default:t}}function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach(function(e){x(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function x(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return j(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var O=function(){var t=(0,u.useChart)(),e=(0,u.useAttributeValue)("drawer.tab"),r=t.getAttributes().tableSortBy,n=(0,h.default)(),s=n.rowGroups,c=n.contextGroups,f=n.labels,g=n.data,m=n.groups,y=n.dimensionIds,v=(0,p.default)({period:e,groups:m,dimensionIds:y,labels:f,rowGroups:s,contextGroups:c}),x=(0,o.useMemo)(function(){if(!r||r.length>1||!c)return r;var t=w(r,1)[0];return t&&c[t.id]&&Object.keys(c[t.id])?Object.keys(c[t.id]).map(function(e){return{id:"value".concat(t.id).concat(e),desc:t.desc}}):r},[r,c]),j=(0,a.default)({onHover:t.focus,onBlur:t.blur,isOut:function(e){return!e||!e.closest('[data-toolbox="'.concat(t.getId(),'"]'))&&!e.closest('[data-chartid="'.concat(t.getId(),'"]'))}},[t]),O=(0,l.default)(g,300);return(0,b.jsx)(i.Table,{ref:j,enableSorting:!0,enableColumnVisibility:!0,dataColumns:v,data:O||g,enableCustomSearch:!0,sortBy:x,width:"100%",onSearch:function(e){return t.updateAttribute("searchQuery",e)},headerChildren:(0,b.jsx)(d.default,{})})},_=function(t){var e=t.uiName,r=t.ref,n=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,g);return(0,b.jsx)(f.ChartWrapper,{ref:r,children:(0,b.jsx)(s.default,v(v({uiName:e,column:!0,alignItems:"center",justifyContent:"center",position:"relative"},n),{},{children:(0,b.jsx)(O,{})}))})};e.Ay=(0,c.default)(_)},10827(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.useTableColumns=e.default=void 0;var o=r(96540),i=c(r(62193)),a=c(r(66245)),s=r(22332),l=r(20207),u=r(77024);function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function d(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var b=e.useTableColumns=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,s.useChart)(),r=(0,s.useAttributeValue)("contextScope"),n=t.period,c=t.dimensionIds,p=t.groups,b=t.labels,g=t.contextGroups;return(0,o.useMemo)(function(){return[{id:"Instance",header:function(){return e.intl("groupInstance",{fallback:"Instance"})},columns:b.map(function(t){return(0,u.labelColumn)(e,{header:(0,l.uppercase)(t),partIndex:p.findIndex(function(e){return e===t})})}),notFlex:!0,fullWidth:!0,enableResizing:!0}].concat(h(function(t,e){return(0,i.default)(t)?t:(0,i.default)((0,a.default)(t,e))?e:t}(Object.keys(g),r).map(function(r){return{id:"Context-".concat(r),header:function(){return e.intl(r)},headerString:function(){return e.intl(r)},columns:g[r]?Object.keys(g[r]).map(function(n){var o;return(0,u.valueColumn)(e,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach(function(e){d(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({dimensionLabel:e.intl(n),dimensionId:null===(o=g[r][n])||void 0===o?void 0:o[0],keys:[r,n]},t))}):[],labelProps:{textAlign:"center"},notFlex:!0,fullWidth:!0,enableResizing:!0}})))},[e,r,n,c,p,b,g])};e.default=b},39483(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useTableMatrix=e.default=void 0;var n=r(96540),o=r(22332);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var s=e.useTableMatrix=function(){var t=(0,o.useChart)(),e=(0,o.useDimensionIds)(),r=(0,o.useAttributeValue)("searchQuery"),a=(0,o.useAttributeValue)("hoverX"),s=t.getDimensionGroups(),l=t.getAttribute("tableColumns"),u=i((0,n.useMemo)(function(){return t.getTableMatrix()},[t,e,s,l]),3),c=u[0],f=u[1],d=u[2],h=(0,n.useMemo)(function(){return Object.keys(c).reduce(function(t,e){return r&&!new RegExp(r).test(e)||t.push({key:e,ids:r?c[e].filter(function(t){return new RegExp(r).test(t)}):c[e],contextGroups:f}),t},[])},[r,c,a,f]);return{rowGroups:c,contextGroups:f,labels:d,data:h,groups:s,tableColumns:l,dimensionIds:e}};e.default=s},57513(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Title=void 0;(n=r(96540))&&n.__esModule;var n,o=r(78904),i=r(22332),a=r(33640),s=r(74848);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach(function(e){f(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d=(0,a.withTooltip)(o.TextSmall),h=e.Title=function(t){var e=(0,i.useTitle)(),r=(0,i.useUnitSign)({withoutConversion:!0,long:!0}),n=(0,i.useName)(),a=(0,i.useIsMinimal)(),l=(0,i.useAttributeValue)("contextScope");return(0,s.jsxs)(o.Flex,c(c({overflow:"hidden","data-testid":"chartHeaderStatus-title",gap:1,flex:"shrink",justifyContent:"start"},t),{},{children:[(0,s.jsx)(o.TextSmall,{color:"textDescription",truncate:!0,children:e}),!!n&&(!a||!e)&&(0,s.jsx)(o.CopyToClipboard,{text:l&&l.length?l.join(", "):n,children:(0,s.jsxs)(o.TextSmall,{color:"textLite",whiteSpace:"nowrap",children:[e?"\u2022 ":"",n]})}),!!r&&!a&&(0,s.jsxs)(d,{color:"textLite",whiteSpace:"nowrap",title:"Source unit",tooltipProps:{align:"top"},children:["\u2022 [",r,"]"]})]}))};e.default=(0,i.withChartProvider)(h)},90592(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ChartType",{enumerable:!0,get:function(){return a.default}}),e.Container=void 0,Object.defineProperty(e,"Download",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"Fullscreen",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Information",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Separator",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Settings",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;h(r(96540));var n=r(78904),o=r(22332),i=h(r(99684)),a=h(r(13752)),s=h(r(92815)),l=h(r(72582)),u=h(r(82650)),c=h(r(78072)),f=r(74848),d=["children"];function h(t){return t&&t.__esModule?t:{default:t}}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach(function(e){m(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function m(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=p(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==p(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var y=e.Container=function(t){return(0,f.jsx)(n.Flex,g({gap:1,justifyContent:"end",alignItems:"center",flex:!0,"data-testid":"chartHeaderToolbox"},t))};e.default=function(t){var e=t.children,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,d),n=!(0,o.useAttributeValue)("focused"),i=(0,o.useAttributeValue)("toolboxElements");return(0,f.jsxs)(y,g(g({"data-noprint":!0},r),{},{children:[e,i&&i.map(function(t,e){return(0,f.jsx)(t,{disabled:n},e)})]}))}},33862(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCanvas=e.copyCanvas=void 0;e.createCanvas=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r},e.copyCanvas=function(t,e){e.width=t.width,e.height=t.height;var r=e.getContext("2d");r.clearRect(0,0,e.width,e.height),r.drawImage(t,0,0)}},20207(t,e){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach(function(e){i(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function i(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0}),e.uppercase=e.underscoredKeys=e.underscoreToCamel=e.objectTransformator=e.camelizeKeys=e.camelToUnderscore=void 0;e.uppercase=function(t){return t.charAt(0).toUpperCase()+t.slice(1)};var a=e.camelToUnderscore=function(t){return t.replace(/([A-Z])/g,"_$1").toLowerCase()},s=e.underscoreToCamel=function(t){return t.replace(/([_][a-z])/g,function(t){return t[1].toUpperCase()})},l=[],u=function(t,e,r){return o(o({},t),{},i({},a(e),r))},c=function(t,e,r){return o(o({},t),{},i({},s(e),r))},f=e.objectTransformator=function(t,e){var n=e.func,a=e.action,s=e.omit,u=void 0===s?l:s;return Array.isArray(t)?t.map(function(t){return n(t,{omit:u})}):"object"===r(t)&&t?Object.keys(t).reduce(function(e,r){if(u.includes(r))return o(o({},e),{},i({},r,t[r]));var s=n(t[r],{omit:u});return a(e,r,s)},{}):t},d=e.underscoredKeys=function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).omit;return f(t,{func:d,action:u,omit:void 0===e?l:e})},h=e.camelizeKeys=function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).omit;return f(t,{func:h,action:c,omit:void 0===e?l:e})}},93331(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a}(t,e)}(r(882)),i=(n=r(15877))&&n.__esModule?n:{default:n},a=["zIndex"];function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s.apply(null,arguments)}var l=(0,o.keyframes)(["0%{opacity:0.5;transform:scale(0.8);}100%{opacity:1;transform:scale(1);}"]),u=(0,o.css)(["opacity:0;animation:"," 0.1s forwards;animation-delay:0.01s;"],l),c=(0,o.default)(i.default).attrs(function(t){var e=t.zIndex,r=void 0===e?70:e,n=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,a);return s({zIndex:r,position:"fixed"},n)}).withConfig({displayName:"container__Container",componentId:"sc-l6u9ms-0"})(["left:-99999px;"," "," "," backface-visibility:hidden;perspective:1000;transform:translate3d(0,0,0);will-change:left,top,transform;"],function(t){return t.animation&&u},function(t){return!t.hideShadow&&"box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);"},function(t){return!!t.noEvents&&"pointer-events: none;"});e.default=c},22007(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(96540),o=function(t,e,r,n){void 0===n&&(n=!0);var i=function(t,e,r){return"left"===t.left?e.left:"right"===t.left?e.right:"right"===t.right?e.right-r.width:"left"===t.right?e.left-r.width:e.left+e.width/2-r.width/2}(t,e,r),a=Math.max(0,i);return i=Math.min(window.innerWidth-r.width,a),n||a===i?i:o(function(t){return"left"===t.left?{right:"right"}:"right"===t.left?{right:"left"}:"right"===t.right?{left:"left"}:"left"===t.right?{left:"right"}:t}(t),e,r)},i=function(t,e,r,n){void 0===n&&(n=!0);var o=function(t,e,r){if("top"===t.top)return e.top;if("bottom"===t.top)return e.bottom;if("bottom"===t.bottom)return e.bottom-r.height;if("top"===t.bottom){var n=e.top-r.height;return n<0&&e.bottom+r.height<window.innerHeight?e.bottom:n}return e.top+e.height/2-r.height/2}(t,e,r),a=Math.max(0,o);return o=Math.min(window.innerHeight-r.height,a),n||a===o?o:i(function(t){return"top"===t.top?{bottom:"bottom"}:"bottom"===t.top?{bottom:"top"}:"bottom"===t.bottom?{top:"top"}:"top"===t.bottom?{top:"bottom"}:t}(t),e,r)},a=["top","right","bottom","right","width"];e.default=function(t,e,r,s,l,u){return(0,n.useCallback)(function(){if(e.current){var n=t.getBoundingClientRect(),c=e.current.getBoundingClientRect(),f=function(t,e,r){return"align"===t?Math.min(e.width,r.width):"width"===t?Math.max(e.width,r.width):Math.min(r.width,window.innerWidth)}(s,n,c);c.width=f;requestAnimationFrame(function(){if(e.current){a.forEach(function(t){return e.current.style[t]=""});var t=o(r,n,c,l),d=i(r,n,c,l);u&&e.current.style.left||(e.current.style.left=t+"px"),e.current.style.top=d+"px",s&&(e.current.style.width=f+"px")}})}},[t,r,s])}},21290(t,e,r){"use strict";e.__esModule=!0,e.sx=e.default=void 0;var n=k(r(882)),o=k(r(27988)),i=k(r(32305)),a=k(r(36094)),s=k(r(62703)),l=k(r(31886)),u=k(r(25320)),c=k(r(96029)),f=k(r(88725)),d=k(r(86397)),h=k(r(11564)),p=k(r(48488)),b=k(r(26278)),g=k(r(11341)),m=k(r(22318)),y=k(r(97373)),v=k(r(90836)),x=k(r(41311)),w=k(r(7484)),j=k(r(20909)),O=k(r(92108)),_=k(r(48299)),S=r(36350),P=r(50677),M=k(r(50402));function k(t){return t&&t.__esModule?t:{default:t}}var C=e.sx=function(t){return(0,M.default)(t.sx)(t)};e.default=function(t){return(0,n.default)(t).withConfig({displayName:"flex",componentId:"sc-1gtk8kg-0"})(["display:flex;"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ",""],g.default,j.default,m.default,y.default,v.default,x.default,o.default,u.default,i.default,a.default,w.default,h.default,d.default,S.fontColor,b.default,l.default,O.default,s.default,p.default,c.default,f.default,_.default,P.position,C)}},15877(t,e,r){"use strict";var n;e.__esModule=!0,e.default=void 0;var o=(0,((n=r(21290))&&n.__esModule?n:{default:n}).default)("div");e.default=o},41956(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=l(r(882)),o=l(r(97373)),i=l(r(90836)),a=l(r(41311)),s=l(r(37341));function l(t){return t&&t.__esModule?t:{default:t}}var u=function(t,e){return"0"!==t&&"0"!==e?"calc((100% - "+t+") - "+e+")":"0"===t&&"0"===e?"100%":"calc(100% - "+("0"===t?e:t)+")"},c=new Set(["top","center","bottom"]),f=new Set(["bottom-left","left","top-left"]),d=new Set(["right","center","left"]),h=new Set(["top-left","top","top-right"]),p=new Set(["top-right","right","bottom-right"]),b=new Set(["bottom-right","bottom","bottom-left"]),g=n.default.div.attrs(function(t){var e=t.theme,r=t.margin;return{marginDimensions:(0,s.default)(e,r)}}).withConfig({displayName:"container__Container",componentId:"sc-k2hlzf-0"})(["position:",";display:flex;outline:none;pointer-events:all;"," "," "," "," "," "," "," "," "," "," "," ",""],function(t){return t.isAbsolute?"absolute":"fixed"},o.default,i.default,a.default,function(t){var e=t.marginDimensions,r=e.top,n=e.bottom;return"max-height: "+u(r,n)+";"},function(t){var e=t.marginDimensions,r=e.right,n=e.left;return"max-width: "+u(n,r)+";"},function(t){var e=t.position,r=t.full,n=t.marginDimensions;return"vertical"===r||!0===r||h.has(e)?"top: "+n.top+";":d.has(e)?"top: 50%;":""},function(t){var e=t.position,r=t.full,n=t.marginDimensions;return"horizontal"===r||!0===r||p.has(e)?"right: "+n.right+";":""},function(t){var e=t.position,r=t.full,n=t.marginDimensions;return"vertical"===r||!0===r||b.has(e)?"bottom: "+n.bottom+";":""},function(t){var e=t.position,r=t.full,n=t.marginDimensions;return"horizontal"===r||!0===r||f.has(e)?"left: "+n.left+";":c.has(e)?"left: 50%;":""},function(t){var e=t.full,r=t.position,n=function(){var t=!0!==e&&"horizontal"!==e&&c.has(r),n=!0!==e&&"vertical"!==e&&d.has(r);return t||n?t&&!n?"translateX(-50%)":!t&&n?"translateY(-50%)":"translate(-50%, -50%)":""}();return n&&"transform: "+n+";"},function(t){return t.borderShadow&&"box-shadow: 0px 2px 68px rgba(0, 0, 0, 0.288);"},function(t){var e=t.zIndex,r=void 0===e?35:e;return"z-index: "+r+";"});e.default=g},37341(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(48558),o={top:"0",right:"0",bottom:"0",left:"0"};e.default=function(t,e){if(!Array.isArray(e)||e.length<1||e.length>4)return o;var r=e.map(function(e){return(0,n.getDimension)(t,e)});return 1===r.length?{top:r[0],right:r[0],bottom:r[0],left:r[0]}:2===r.length?{top:r[0],right:r[1],bottom:r[0],left:r[1]}:3===r.length?{top:r[0],right:r[1],bottom:r[2],left:r[1]}:{top:r[0],right:r[1],bottom:r[2],left:r[3]}}},90836(t,e){"use strict";e.__esModule=!0,e.default=void 0;var r={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around",stretch:"stretch"};e.default=function(t){var e=t.alignContent;return e in r?"align-content: "+r[e]+";":""}},97373(t,e){"use strict";e.__esModule=!0,e.default=void 0;var r={start:"flex-start",center:"center",end:"flex-end",baseline:"baseline",stretch:"stretch"};e.default=function(t){var e=t.alignItems;return e in r?"align-items: "+r[e]+";":""}},26278(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(41234);e.default=function(t){var e=t.theme,r=t.background,o=t.backgroundOpacity;if(!r)return"";var i=o?(0,n.getRgbColor)(r,o)({theme:e}):(0,n.getColor)(r)({theme:e});return i&&"background-color: "+i+";"}},92108(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(41234);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o.apply(null,arguments)}var i={all:function(t){return"\n border: "+t.size+" "+t.type+" "+t.color+";\n "},horizontal:function(t){var e=t.size,r=t.type,n=t.color;return"\n border-top: "+e+" "+r+" "+n+";\n border-bottom: "+e+" "+r+" "+n+";\n "},vertical:function(t){var e=t.size,r=t.type,n=t.color;return"\n border-left: "+e+" "+r+" "+n+";\n border-right: "+e+" "+r+" "+n+";\n "},top:function(t){return"\n border-top: "+t.size+" "+t.type+" "+t.color+";\n "},right:function(t){return"\n border-right: "+t.size+" "+t.type+" "+t.color+";\n "},bottom:function(t){return"\n border-bottom: "+t.size+" "+t.type+" "+t.color+";\n "},left:function(t){return"\n border-left: "+t.size+" "+t.type+" "+t.color+";\n "}},a=function(t){return{color:(0,n.getColor)("border")({theme:t}),size:"1px",side:"all",type:"solid"}};e.default=function(t){var e=t.theme,r=t.border;if(void 0===r)return"";if(!0===r)return i.all(a(e));if(r in i)return i[r](a(e));if("string"===typeof r||Array.isArray(r))return i.all(o({},a(e),{color:(0,n.getColor)(r||"border")({theme:e})}));if("object"!==typeof r)return"";var s=r.side,l=r.color;return Array.isArray(s)?s.reduce(function(t,s){return s in i?t+i[s](o({},a(e),r,{color:(0,n.getColor)(l||"border")({theme:e})})):t},""):s in i&&i[s](o({},a(e),r,{color:(0,n.getColor)(l||"border")({theme:e})}))}},20909(t,e){"use strict";e.__esModule=!0,e.default=void 0;e.default=function(t){var e=function(t,e,r){return t?"column":e?"column-reverse":r?"row-reverse":"row"}(t.column,t.columnReverse,t.rowReverse);return"flex-direction: "+e+";"}},11341(t,e){"use strict";e.__esModule=!0,e.default=void 0;e.default=function(t){var e=t.flex,r=t.basis;if(void 0===e&&void 0===r)return"";if(r&&void 0===e)return"flex-basis: "+r+";";var n=function(t,e){return void 0===e&&(e="auto"),!0===t?"1 1 "+e:!1===t?"0 0 "+e:"grow"===t?"1 0 "+e:"shrink"===t?"0 1 "+e:"number"===typeof t?t+" 0 "+e:"object"!==typeof t?t:t.grow+" "+t.shrink+" "+e}(e,r);return n?"flex: "+n+";":""}},7484(t,e){"use strict";e.__esModule=!0,e.default=void 0;e.default=function(t){var e=t.theme.constants.SIZE_SUB_UNIT,r=t.gap,n=t.column,o=t.columnReverse,i=t.rowReverse;if("number"!==typeof r)return"";var a=function(t){var e=t.column,r=t.columnReverse,n=t.rowReverse;return e||r?"bottom":n?"left":"right"}({column:n,columnReverse:o,rowReverse:i});return"\n &> *:not(:last-child) {\n margin-"+a+": "+e*r+"px;\n }\n "}},86397(t,e){"use strict";e.__esModule=!0,e.default=void 0;e.default=function(t){var e=t.theme.constants.SIZE_SUB_UNIT,r=t.height;if("object"===typeof r){var n=r.min,o=void 0===n?"":n,i=r.max,a=void 0===i?"":i,s=r.base,l=void 0===s?"":s;return"\n "+(o&&"min-height: "+("number"===typeof o?e*o+"px":o)+";")+"\n "+(a&&"max-height: "+("number"===typeof a?e*a+"px":a)+";")+"\n "+(l&&"height: "+("number"===typeof l?e*l+"px":l)+";")+"\n "}return r&&"height: "+("number"===typeof r?e*r+"px":r)+";"}},41311(t,e){"use strict";e.__esModule=!0,e.default=void 0;var r={start:"start",center:"center",end:"end",between:"space-between",around:"space-around",evenly:"space-evenly",stretch:"stretch"};e.default=function(t){var e=t.justifyContent;return e in r?"justify-content: "+r[e]+";":""}},48488(t,e){"use strict";e.__esModule=!0,e.default=void 0;e.default=function(t){var e=t.overflow;if(!e)return"";if("string"===typeof e)return"overflow: "+e+";";var r=e.vertical,n=void 0===r?"":r,o=e.horizontal,i=void 0===o?"":o;return"\n "+(n&&"overflow-y: "+n+";")+"\n "+(i&&"overflow-x: "+i+";")+"\n "}},48299(t,e,r){"use strict";e.__esModule=!0,e.pseudoSelectors=e.default=e.calculateStyles=void 0;var n=u(r(26278)),o=u(r(92108)),i=r(41234),a=u(r(97373)),s=["theme"],l=["theme"];function u(t){return t&&t.__esModule?t:{default:t}}function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},c.apply(null,arguments)}function f(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}var d={border:o.default,background:n.default,color:function(t){var e=t.theme,r=t.color;return r?"color: "+(0,i.getColor)(r)({theme:e})+";":""},alignItems:a.default},h=e.calculateStyles=function(t){var e=t.theme,r=f(t,s),n="";for(var o in r)if(void 0===d[o]){n=n+(o+":")+r[o]+";"}else{var i=d[o];n+=i&&"function"===typeof i?i(c({theme:e},r)):""}return n},p=e.pseudoSelectors={_before:"&::before",_after:"&::after",_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_focusWithin:"&:focus-within",_visited:"&:visited",_empty:"&:empty",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_checked:"&[aria-checked=true]",_mixed:"&[aria-checked=mixed]",_selected:"&[aria-selected=true], [data-selected] > &",_invalid:"&[aria-invalid=true]",_pressed:"&[aria-pressed=true]",_readOnly:"&[aria-readonly=true], &[readonly]",_first:"&:first-of-type",_last:"&:last-of-type",_expanded:"&[aria-expanded=true]",_grabbed:"&[aria-grabbed=true]",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_groupHover:"[role=group]:hover &",_autofill:"&:-webkit-autofill",_placeholder:"&::placeholder"};e.default=function(t){var e=t.theme,r=f(t,l),n="";for(var o in r)if(o in p){var i=o,a=r[i],s=h(c({theme:e},a));n=n+"\n "+p[i]+"{ \n "+s+" \n }"}return n.replace(/^(?=\n)$|^\s*|\s*$|\n\n+/gm,"")}},11564(t,e){"use strict";e.__esModule=!0,e.default=void 0;e.default=function(t){var e=t.theme.constants.SIZE_SUB_UNIT,r=t.width;if("object"===typeof r){var n=r.min,o=void 0===n?"":n,i=r.max,a=void 0===i?"":i,s=r.base,l=void 0===s?"":s;return"\n "+(o&&"min-width: "+("number"===typeof o?e*o+"px":o)+";")+"\n "+(a&&"max-width: "+("number"===typeof a?e*a+"px":a)+";")+"\n "+(l&&"width: "+("number"===typeof l?e*l+"px":l)+";")+"\n "}return r&&"width: "+("number"===typeof r?e*r+"px":r)+";"}},22318(t,e){"use strict";e.__esModule=!0,e.default=void 0;e.default=function(t){var e=function(t){return!0===t?"wrap":!1===t?"nowrap":"reverse"===t?t:""}(t.flexWrap);return e&&"flex-wrap: "+e+";"}},23234(t,e){"use strict";e.__esModule=!0,e.default=void 0;var r=new Set(["left","center","right"]);e.default=function(t){var e=t.textAlign;return r.has(e)&&"text-align: "+e+";"}},67789(t,e){"use strict";e.__esModule=!0,e.default=void 0;var r=new Set(["underline","none","line-through"]);e.default=function(t){var e=t.textDecoration;return r.has(e)&&"text-decoration: "+e+";"}},610(t,e){"use strict";e.__esModule=!0,e.default=void 0;e.default=function(t){return t.truncate&&"\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n"}},44453(t,e){"use strict";e.__esModule=!0,e.default=void 0;var r=new Set(["normal","nowrap","pre-line","pre-wrap"]);e.default=function(t){var e=t.whiteSpace;return r.has(e)&&"white-space: "+e+";"}},30109(t,e){"use strict";e.__esModule=!0,e.default=void 0;var r=new Set(["normal","break-all","keep-all","break-word"]);e.default=function(t){var e=t.wordBreak;return r.has(e)&&"word-break: "+e+";"}},36350(t,e,r){"use strict";e.__esModule=!0,e.makeTypography=e.makeText=e.makeSmall=e.makeNano=e.makeMicro=e.makeHuge=e.makeH6=e.makeH5=e.makeH4=e.makeH3=e.makeH2=e.makeH1=e.makeH0=e.makeFemto=e.makeBigger=e.makeBig=e.fontColor=e.fontCode=void 0;var n=function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(t,e){if(!e&&t&&t.__esModule)return t;var o,i,a={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return a;if(o=e?n:r){if(o.has(t))return o.get(t);o.set(t,a)}for(var s in t)"default"!==s&&{}.hasOwnProperty.call(t,s)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,s))&&(i.get||i.set)?o(a,s,i):a[s]=t[s]);return a}(t,e)}(r(882)),o=r(41234),i=g(r(27988)),a=g(r(32305)),s=g(r(36094)),l=g(r(60090)),u=g(r(23234)),c=g(r(67789)),f=g(r(610)),d=g(r(44453)),h=g(r(30109)),p=g(r(31886)),b=g(r(88725));function g(t){return t&&t.__esModule?t:{default:t}}var m=e.fontColor=function(t){var e=t.theme,r=t.color,n=void 0===r?"text":r;return"color: "+(0,o.getColor)(n)({theme:e})+";"},y=e.fontCode=function(t){var e=t.background,r=void 0===e?"text":e,n=t.code,i=t.color,a=void 0===i?"elementBackground":i,s=t.theme;return n&&"\n background-color: "+(0,o.getColor)(r)({theme:s})+";\n border-radius: 4px;\n color: "+(0,o.getColor)(a)({theme:s})+";\n padding: 0 6px;\n "},v=(0,n.css)([""," "," "," "," "," "," "," "," "," "," "," "," "," "," ",""],m,y,i.default,u.default,c.default,l.default,f.default,d.default,h.default,a.default,s.default,p.default,b.default,function(t){var e=t.fontSize;return e&&"\n font-size: "+e+";\n line-height: "+e+";\n "},function(t){var e=t.lineHeight;return e&&"\n line-height: "+e+";\n "}),x=e.makeTypography=function(t,e){var r,o,i=e.fontSize,a=e.lineHeight,s=e.strong;return(0,n.default)(t).withConfig({displayName:"typography",componentId:"sc-1lwqv72-0"})(['font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif;font-style:normal;'," "," "," ",""],(o=i,function(){return"font-size: "+o+";"}),function(t){return function(){return"line-height: "+t+";"}}(a),(r=s,function(t){var e=t.strong;return"font-weight: "+((void 0===e?r:e)?"bold":"normal")+";"}),v)};e.makeH0=function(t){return x(t,{fontSize:"26px",lineHeight:"32px",strong:!0})},e.makeH1=function(t){return x(t,{fontSize:"24px",lineHeight:"28px",strong:!0})},e.makeH2=function(t){return x(t,{fontSize:"22px",lineHeight:"24px",strong:!0})},e.makeH3=function(t){return x(t,{fontSize:"20px",lineHeight:"24px",strong:!0})},e.makeH4=function(t){return x(t,{fontSize:"16px",lineHeight:"21px",strong:!0})},e.makeH5=function(t){return x(t,{fontSize:"14px",lineHeight:"18px",strong:!0})},e.makeH6=function(t){return x(t,{fontSize:"12px",lineHeight:"14px",strong:!0})},e.makeFemto=function(t){return x(t,{fontSize:"7px",lineHeight:"8px"})},e.makeNano=function(t){return x(t,{fontSize:"8px",lineHeight:"10px"})},e.makeMicro=function(t){return x(t,{fontSize:"10px",lineHeight:"13px"})},e.makeSmall=function(t){return x(t,{fontSize:"11px",lineHeight:"14px"})},e.makeText=function(t){return x(t,{fontSize:"12px",lineHeight:"16px"})},e.makeBig=function(t){return x(t,{fontSize:"14px",lineHeight:"20px"})},e.makeBigger=function(t){return x(t,{fontSize:"16px",lineHeight:"18px"})},e.makeHuge=function(t){return x(t,{fontSize:"24px",lineHeight:"32px"})}},44048(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(96540);function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}e.default=function(t,e,r){void 0===r&&(r=[]);var i=(0,n.useRef)(t);(0,n.useLayoutEffect)(function(){i.current=t},r),(0,n.useEffect)(function(){var t=setTimeout(function(){return i.current()},e);return function(){return clearTimeout(t)}},[e].concat(o(r)))}},79045(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=r(96540),i=(n=r(44048))&&n.__esModule?n:{default:n};function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}e.default=function(t,e,r){void 0===r&&(r=[]);var n=(0,o.useState)(),s=n[0],l=n[1];return(0,i.default)(function(){return l(t)},e,[t].concat(a(r))),s}},44862(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(96540);e.default=function(){var t=(0,n.useMemo)(function(){var t=document.createElement("div");return document.body.append(t),t},[]);return(0,n.useLayoutEffect)(function(){return function(){try{document.body.removeChild(t)}catch(e){}}},[]),t}},51365(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=r(96540),i=(n=r(68016))&&n.__esModule?n:{default:n};e.default=function(t){var e=(0,o.useRef)(),r=(0,o.useCallback)(function(r){e.current=r,(0,i.default)(t,r)},[]);return[e,r]}},71774(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(96540);e.default=function(){var t=(0,n.useRef)(!1);return(0,n.useEffect)(function(){return t.current=!0,function(){return t.current=!1}},[]),t}},39131(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=r(96540),i=(n=r(71774))&&n.__esModule?n:{default:n};e.default=function(t,e){var r=(0,i.default)();(0,o.useEffect)(function(){if(r.current)return t()},e)}},31886(t,e){"use strict";e.__esModule=!0,e.default=void 0;var r={weak:.3,medium:.4,strong:.8,none:1};e.default=function(t){var e=t.opacity,n=e&&r[e]||e;return n?"opacity: "+n+";":""}},36094(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(48558);e.default=function(t){var e=t.theme,r=t.padding;return r?Array.isArray(r)&&r.length>=1&&r.length<=4?"padding: "+(0,n.getDimensions)(e,r)+";":(console.error("Please provide an array (max 4 elements) for `padding` style helper."),""):""}},25320(t,e){"use strict";e.__esModule=!0,e.default=void 0;var r={static:"static",absolute:"absolute",fixed:"fixed",relative:"relative",sticky:"sticky",initial:"initial",inherit:"inherit"};e.default=function(t){var e=t.position;return e in r?"position: "+e+";":""}},62703(t,e){"use strict";e.__esModule=!0,e.default=void 0;var r=function(t,e){return!0===e?t+"px":"number"===typeof e?t*e+"px":"string"===typeof e?e:""},n=function(t,e){return"border-top-left-radius: "+r(t,e)+";"},o=function(t,e){return"border-top-right-radius: "+r(t,e)+";"},i=function(t,e){return"border-bottom-left-radius: "+r(t,e)+";"},a=function(t,e){return"border-bottom-right-radius: "+r(t,e)+";"},s={top:function(t,e){return"\n "+n(t,e)+"\n "+o(t,e)+"\n "},left:function(t,e){return"\n "+n(t,e)+"\n "+i(t,e)+"\n "},bottom:function(t,e){return"\n "+i(t,e)+"\n "+a(t,e)+"\n "},right:function(t,e){return"\n "+o(t,e)+"\n "+a(t,e)+"\n "},"top-left":n,"top-right":o,"bottom-left":i,"bottom-right":a};e.default=function(t){var e=t.theme.constants.SIZE_SUB_UNIT,n=t.round;if(!n)return"";var o=r(e,n);if(o)return"border-radius: "+o+";";var i=n.side,a=n.size,l=void 0===a?1:a;return i in s?""+s[i](e,l):""}},68016(t,e){"use strict";e.__esModule=!0,e.default=void 0;e.default=function(t,e){"function"===typeof t?t(e):t&&(t.current=e)}},60090(t,e){"use strict";e.__esModule=!0,e.default=void 0;var r={none:"none",capitalize:"capitalize",uppercase:"uppercase",lowercase:"lowercase",firstLetter:"firstLetter",fullWidth:"full-width"};e.default=function(t){var e=(void 0===t?{}:t).textTransform,n=void 0===e?r.none:e;return n===r.firstLetter?"text-transform: lowercase;\n &::first-letter {\n text-transform: uppercase;\n }\n":n in r?"text-transform: "+r[n]+";":"text-transform: "+r.none+";"}},96029(t,e){"use strict";e.__esModule=!0,e.default=void 0;e.default=function(t){var e=t.zIndex;if(e&&"number"===typeof e)return"z-index: "+e+";"}},88055(t,e,r){var n=r(9999);t.exports=function(t){return n(t,5)}},42883(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"skeleton",use:"skeleton-usage",viewBox:"0 0 1225 192",content:'<symbol xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" viewBox="0 0 1225 192" id="skeleton"><path d="M-.464 126.486a.5.5 0 0 0-.036.187V197a.5.5 0 0 0 .5.5h1925.5c.28 0 .5-.224.5-.5V87.914a.5.5 0 0 0-.37-.483l-90.5-24.046a.5.5 0 0 0-.44.091l-88.62 70.036-67.7-75.319a.49.49 0 0 0-.63-.09l-111.22 69.485-102.25-64.143a.51.51 0 0 0-.68.132l-73.12 101.88-88.08-107.247a.505.505 0 0 0-.65-.11l-94.3 57.511-85.73-19.511a.5.5 0 0 0-.22 0l-96.57 22.108-15.8-26.017a.5.5 0 0 0-.33-.23l-71.441-14.668a.5.5 0 0 0-.287.026l-36.471 14.667a.5.5 0 0 0-.15.094l-33.007 30.039-27.171-48.716a.5.5 0 0 0-.814-.085l-51.672 59.467-84.567-55.42a.5.5 0 0 0-.654.094l-38.053 44.679-49.087-58.56-36.95-62.01a.5.5 0 0 0-.911.122l-33.249 120.05-27.307-40.101a.5.5 0 0 0-.819-.012l-33.743 46.692-51.595-20.913a.5.5 0 0 0-.357-.007l-89.706 32.263-80.733-47.642a.5.5 0 0 0-.662.14l-53.702 75.383-52.412-27.689-43.396-104.383a.5.5 0 0 0-.826-.15L82.968 63.1l-37.61-48.07a.5.5 0 0 0-.858.12z" /></symbol>'});a().add(s);const l=s},10120(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"D",use:"D-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="D"><path d="M10.4 2H5.6C3.6 2 2 3.6 2 5.6v4.8c0 2 1.6 3.6 3.6 3.6h4.8c2 0 3.6-1.6 3.6-3.6V5.6c0-2-1.6-3.6-3.6-3.6m2.6 8.4c0 1.4-1.2 2.6-2.6 2.6H5.6C4.2 13 3 11.8 3 10.4V5.6C3 4.2 4.2 3 5.6 3h4.8C11.8 3 13 4.2 13 5.6z" /><path d="M5.81 10.299v-4.7q-.38-.005-.562-.17a.57.57 0 0 1-.182-.433q0-.27.182-.434.188-.17.621-.17l2.514.006q.585 0 1.142.217.562.217.903.551.258.252.533.691.28.44.422.873.14.434.14 1.061v.574q0 .762-.257 1.354-.258.585-.68.96a3.5 3.5 0 0 1-.785.546q-.586.275-1.518.275H5.87q-.434 0-.62-.164a.57.57 0 0 1-.183-.44q0-.263.182-.433.188-.17.563-.164m1.202 0h1.277q.715 0 1.078-.205.475-.27.715-.686t.24-1.078v-.568q0-.57-.216-.996-.34-.668-.768-.914-.422-.252-1.06-.252H7.011z" /></symbol>'});a().add(s);const l=s},68317(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"I",use:"I-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="I"><path d="M10.4 2H5.6C3.6 2 2 3.6 2 5.6v4.8c0 2 1.6 3.6 3.6 3.6h4.8c2 0 3.6-1.6 3.6-3.6V5.6c0-2-1.6-3.6-3.6-3.6m2.6 8.4c0 1.4-1.2 2.6-2.6 2.6H5.6C4.2 13 3 11.8 3 10.4V5.6C3 4.2 4.2 3 5.6 3h4.8C11.8 3 13 4.2 13 5.6z" /><path d="M8.598 5.6v4.699H9.81q.433 0 .615.17.187.165.187.433 0 .264-.187.434-.182.164-.615.164H6.184q-.435 0-.622-.164a.57.57 0 0 1-.181-.44.55.55 0 0 1 .181-.427q.188-.17.622-.17h1.212v-4.7H6.184q-.435 0-.622-.163a.57.57 0 0 1-.181-.44q0-.27.181-.434.188-.17.622-.17l3.627.006q.433 0 .615.165.187.163.187.433t-.187.44q-.182.164-.615.164z" /></symbol>'});a().add(s);const l=s},31952(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"L",use:"L-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="L"><path d="M10.4 2H5.6C3.6 2 2 3.6 2 5.6v4.8c0 2 1.6 3.6 3.6 3.6h4.8c2 0 3.6-1.6 3.6-3.6V5.6c0-2-1.6-3.6-3.6-3.6m2.6 8.4c0 1.4-1.2 2.6-2.6 2.6H5.6C4.2 13 3 11.8 3 10.4V5.6C3 4.2 4.2 3 5.6 3h4.8C11.8 3 13 4.2 13 5.6z" /><path d="M7.496 5.6v4.699h2.59V9.162q0-.434.164-.615a.57.57 0 0 1 .44-.188q.263 0 .427.188.17.182.17.615V11.5h-5.69q-.432 0-.62-.164a.57.57 0 0 1-.182-.44.55.55 0 0 1 .182-.427q.188-.17.62-.17h.698v-4.7h-.697q-.434 0-.621-.163a.57.57 0 0 1-.182-.44q0-.27.182-.434.188-.17.62-.17l2.602.006q.434 0 .615.165.188.163.188.433t-.188.44q-.18.164-.615.164z" /></symbol>'});a().add(s);const l=s},34386(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"N",use:"N-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="N"><path d="M10.4 2H5.6C3.6 2 2 3.6 2 5.6v4.8c0 2 1.6 3.6 3.6 3.6h4.8c2 0 3.6-1.6 3.6-3.6V5.6c0-2-1.6-3.6-3.6-3.6m2.6 8.4c0 1.4-1.2 2.6-2.6 2.6H5.6C4.2 13 3 11.8 3 10.4V5.6C3 4.2 4.2 3 5.6 3h4.8C11.8 3 13 4.2 13 5.6z" /><path d="M6.494 6.666v3.633h.434q.434 0 .615.17.187.165.187.433 0 .264-.187.434-.181.164-.615.164H5.352q-.435 0-.622-.164a.57.57 0 0 1-.181-.44.56.56 0 0 1 .181-.427q.183-.17.563-.17v-4.7h-.188q-.434 0-.62-.163a.57.57 0 0 1-.182-.44q0-.27.181-.434.188-.17.621-.17l1.39.006 3.07 4.817V5.6H9.13q-.434 0-.621-.164a.57.57 0 0 1-.182-.44q0-.27.182-.434.188-.17.62-.17l1.577.006q.434 0 .615.165.188.163.188.433 0 .264-.182.434-.181.17-.556.17v5.9h-1.19z" /></symbol>'});a().add(s);const l=s},34975(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"aggregation_avg",use:"aggregation_avg-usage",viewBox:"0 0 16 12",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 12" id="aggregation_avg"><path d="M15.75 4c0-.41-.34-.75-.75-.75H3.81l1.72-1.72c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0L.19 4.75H15c.41 0 .75-.34.75-.75M1 7.25c-.41 0-.75.34-.75.75s.34.75.75.75h11.19l-1.72 1.72c-.29.29-.29.77 0 1.06.15.15.34.22.53.22s.38-.07.53-.22l4.28-4.28z" /></symbol>'});a().add(s);const l=s},52441(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"aggregation_max",use:"aggregation_max-usage",viewBox:"0 0 15 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 16" id="aggregation_max"><path d="M10.03.97a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06L10.94 4H4.71C2.11 4 0 6.11 0 8.71V16h1.5V8.71c0-1.77 1.44-3.21 3.21-3.21h6.73L8.97 7.97c-.29.29-.29.77 0 1.06.15.15.34.22.53.22s.38-.07.53-.22L14.06 5z" /></symbol>'});a().add(s);const l=s},60863(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"aggregation_min",use:"aggregation_min-usage",viewBox:"0 0 15 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 16" id="aggregation_min"><path d="M10.03 6.97a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l2.47 2.47H4.71c-1.77 0-3.21-1.44-3.21-3.21V0H0v7.29C0 9.89 2.11 12 4.71 12h6.23l-1.97 1.97c-.29.29-.29.77 0 1.06.15.15.34.22.53.22s.38-.07.53-.22L14.06 11z" /></symbol>'});a().add(s);const l=s},30882(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"aggregation_sum",use:"aggregation_sum-usage",viewBox:"0 0 12 14",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 14" id="aggregation_sum"><path d="M12 3V0H0v3l5 4-5 4v3h12v-3h-1.5v1.5h-9v-.78l4.44-3.55L7.4 7 5.94 5.83 1.5 2.28V1.5h9V3z" /></symbol>'});a().add(s);const l=s},58655(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"anomaly_badge",use:"anomaly_badge-usage",viewBox:"0 0 15 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 16" id="anomaly_badge"><path fill-rule="evenodd" d="M13.228 3.296 8.522.579a2.29 2.29 0 0 0-2.294 0L1.522 3.296A2.3 2.3 0 0 0 .375 5.283v5.435c0 .819.437 1.577 1.147 1.986l4.706 2.717a2.29 2.29 0 0 0 2.294 0l4.706-2.717a2.29 2.29 0 0 0 1.147-1.986V5.283c0-.82-.437-1.577-1.147-1.987M7.979 4.761l-.604-1.528-.604 1.528-1.838 4.646H1.375v1.3h4.442l.162-.411 1.396-3.529 1.396 3.529.495 1.253.672-1.168.437-.758.437.758.187.326h2.376v-1.3h-1.624l-.813-1.412-.563-.978-.563.978-.328.57z" clip-rule="evenodd" /></symbol>'});a().add(s);const l=s},91956(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"check",use:"check-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="check"><path fill-rule="evenodd" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z" clip-rule="evenodd" /></symbol>'});a().add(s);const l=s},97517(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"checkmark_s",use:"checkmark_s-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="checkmark_s"><path fill-rule="evenodd" d="m12.956 4.503-6 8.334c-.048.051-.125.163-.22.163-.1 0-.164-.075-.22-.135L3.112 9.32l-.065-.07A.3.3 0 0 1 3 9.101c0-.055.022-.107.047-.149a378.83 378.83 0 0 1 1.096-1.247c.056-.06.104-.14.207-.14.108 0 .177.099.229.155S6.52 9.74 6.52 9.74l4.801-6.676A.24.24 0 0 1 11.472 3a.23.23 0 0 1 .151.06l1.32 1.126a.27.27 0 0 1 .056.163.26.26 0 0 1-.043.154" clip-rule="evenodd" /><mask id="checkmark_s_a" width="10" height="10" x="3" y="3" mask-type="alpha" maskUnits="userSpaceOnUse"><path fill-rule="evenodd" d="m12.956 4.503-6 8.334c-.048.051-.125.163-.22.163-.1 0-.164-.075-.22-.135L3.112 9.32l-.065-.07A.3.3 0 0 1 3 9.101c0-.055.022-.107.047-.149a378.83 378.83 0 0 1 1.096-1.247c.056-.06.104-.14.207-.14.108 0 .177.099.229.155S6.52 9.74 6.52 9.74l4.801-6.676A.24.24 0 0 1 11.472 3a.23.23 0 0 1 .151.06l1.32 1.126a.27.27 0 0 1 .056.163.26.26 0 0 1-.043.154" clip-rule="evenodd" /></mask></symbol>'});a().add(s);const l=s},63668(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"chevron_down",use:"chevron_down-usage",viewBox:"0 0 12 12",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" id="chevron_down"><path d="M3 5c0-.3.1-.5.3-.7.4-.4 1-.4 1.4 0L6 5.6l1.3-1.3c.4-.4 1-.4 1.4 0s.4 1 0 1.4L6 8.4 3.3 5.7C3.1 5.5 3 5.3 3 5" /></symbol>'});a().add(s);const l=s},26762(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"chevron_down_thin",use:"chevron_down_thin-usage",viewBox:"0 0 16 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 24" id="chevron_down_thin"><path d="M6.979 13.813 10.792 10l.541.542-4.083 4.083h-.542l-4.083-4.083.541-.542z" /></symbol>'});a().add(s);const l=s},30464(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"chevron_expand",use:"chevron_expand-usage",viewBox:"0 0 8 6",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 6" id="chevron_expand"><path d="M.632 1.577 4 3.264l3.368-1.687A.593.593 0 0 0 7.632.79a.59.59 0 0 0-.785-.264L4 1.957 1.146.535A.586.586 0 0 0 .36.8a.58.58 0 0 0 .272.778m6.222 1.29L4 4.292 1.146 2.868a.586.586 0 0 0-.786.264.58.58 0 0 0 .264.786L4 5.598 7.368 3.91a.593.593 0 0 0 .264-.786.57.57 0 0 0-.778-.256" /></symbol>'});a().add(s);const l=s},49484(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"chevron_right_end",use:"chevron_right_end-usage",viewBox:"0 0 18 18",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" id="chevron_right_end"><path d="m10 9-5.71 5.71a.996.996 0 1 1-1.41-1.41L7.18 9 2.89 4.71A.996.996 0 1 1 4.3 3.3z" /><path fill-rule="evenodd" d="M14 15a1 1 0 0 1-1-1V4a1 1 0 1 1 2 0v10a1 1 0 0 1-1 1" clip-rule="evenodd" /></symbol>'});a().add(s);const l=s},20327(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"chevron_up_thin",use:"chevron_up_thin-usage",viewBox:"0 0 16 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 24" id="chevron_up_thin"><path d="m7 9.427 3.33 3.331a.58.58 0 1 1-.822.823L7 11.073l-2.503 2.502a.58.58 0 1 1-.822-.822z" /></symbol>'});a().add(s);const l=s},66427(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"copy",use:"copy-usage",viewBox:"0 0 14 14",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" id="copy"><path d="M10.146 14h1.412v-1.5h-1.412zm-2.352 0h1.412v-1.5H7.794zM11 0H0v11h3v.559h1.5V11H11V4.5h.559V3H11zM9.5 9.5h-8v-8h8zM3 14h1.5v-1.5H3zm2.441 0h1.411v-1.5H5.441zm7.059 0H14v-1.5h-1.5zm0-11v1.5H14V3zm0 3.853H14V5.441h-1.5zm0 2.353H14V7.794h-1.5zm0 2.353H14v-1.412h-1.5z" /></symbol>'});a().add(s);const l=s},35083(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"correlations",use:"correlations-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="correlations"><path d="M12.99 15.24 17 17.58V22h2v-5.57l-4.02-2.35zm9.22-9.45L18 1.59 13.79 5.8a.996.996 0 1 0 1.41 1.41l1.8-1.8v4.01l-5 2.92-5-2.91V5.41L8.79 7.2c.2.2.45.29.71.29s.51-.1.71-.29a.996.996 0 0 0 0-1.41L6 1.59l-4.21 4.2A.996.996 0 1 0 3.2 7.2L5 5.41v5.16l5.02 2.93L5 16.43V22h2v-4.43l12-7V5.41l1.79 1.79c.2.2.45.29.71.29s.51-.1.71-.29a.996.996 0 0 0 0-1.41" /></symbol>'});a().add(s);const l=s},8001(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"dot",use:"dot-usage",viewBox:"0 0 10 10",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10" id="dot"><rect width="10" height="10" rx="5" /></symbol>'});a().add(s);const l=s},3113(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"drag_horizontal",use:"drag_horizontal-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="drag_horizontal"><path d="M9 3v8.25H4.373l1.935-1.943L5.25 8.25 1.5 12l3.75 3.75 1.058-1.057-1.936-1.943H9V21h1.5V3zM18.75 8.25l-1.058 1.057 1.936 1.943H15V3h-1.5v18H15v-8.25h4.628l-1.936 1.943 1.058 1.057L22.5 12z" /></symbol>'});a().add(s);const l=s},73983(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"drag_vertical",use:"drag_vertical-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="drag_vertical"><path d="M3 15h8.25v4.628l-1.943-1.936L8.25 18.75 12 22.5l3.75-3.75-1.057-1.058-1.943 1.936V15H21v-1.5H3zM8.25 5.25l1.057 1.058 1.943-1.936V9H3v1.5h18V9h-8.25V4.373l1.943 1.935L15.75 5.25 12 1.5z" /></symbol>'});a().add(s);const l=s},40813(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"gear",use:"gear-usage",viewBox:"0 0 20 20",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" id="gear"><path d="M7.17 7.17a4.004 4.004 0 0 0 0 5.66C7.95 13.61 8.97 14 10 14s2.05-.39 2.83-1.17C13.59 12.07 14 11.07 14 10s-.42-2.07-1.17-2.83a4.01 4.01 0 0 0-5.66 0m4.24 4.24c-.78.78-2.05.78-2.83 0a1.983 1.983 0 0 1 0-2.82c.39-.39.9-.58 1.41-.58s1.02.19 1.41.58c.38.38.59.88.59 1.41s-.2 1.04-.58 1.41m8.5-2.71-.13-.99-.86-.49-.45-.26c-.1-.27-.21-.54-.33-.8l.14-.5.26-.96-.6-.79c-.3-.39-.57-.7-.85-.98-.29-.29-.6-.56-.99-.86l-.79-.6-.96.26-.5.14c-.26-.12-.53-.23-.8-.33l-.26-.45-.49-.86-.99-.13c-.48-.06-.9-.09-1.3-.09s-.82.03-1.3.09l-.99.13-.49.86-.26.45c-.27.1-.54.21-.8.33l-.5-.14-.97-.26-.79.6c-.39.3-.7.57-.98.85-.29.29-.56.6-.86.99l-.6.79.26.96.14.5c-.12.26-.23.53-.33.8l-.45.26-.86.49-.13.99c-.06.48-.09.9-.09 1.3s.03.82.09 1.3l.13.99.86.49.45.26c.1.27.21.54.33.8l-.14.5-.26.96.6.79c.3.39.57.7.85.98.29.29.6.56.99.86l.79.6.96-.26.5-.14c.26.12.53.23.8.33l.26.45.49.86.99.13c.48.06.9.09 1.3.09s.82-.03 1.3-.09l.99-.13.49-.86.26-.45c.27-.1.54-.21.8-.33l.5.14.96.26.79-.6c.39-.3.7-.57.98-.85.29-.29.56-.6.86-.99l.6-.79-.26-.96-.14-.5c.12-.26.23-.53.33-.8l.45-.26.86-.49.13-.99c.06-.48.09-.9.09-1.3s-.02-.82-.08-1.3m-1.99 2.34-1.14.65c-.17.66-.43 1.3-.79 1.91l.35 1.27c-.21.28-.44.54-.68.79-.25.25-.51.47-.79.68L13.6 16c-.6.36-1.24.62-1.91.79l-.65 1.14c-.34.04-.69.08-1.04.08s-.7-.03-1.04-.08l-.65-1.14A7.4 7.4 0 0 1 6.4 16l-1.27.35c-.28-.21-.54-.44-.79-.68-.25-.25-.47-.51-.68-.79L4 13.6c-.36-.6-.62-1.24-.79-1.91l-1.14-.65C2.03 10.7 2 10.35 2 10s.03-.7.08-1.04l1.14-.65c.17-.66.43-1.3.79-1.91l-.35-1.27c.21-.28.44-.54.68-.79.25-.25.51-.47.79-.68L6.4 4c.6-.36 1.24-.62 1.91-.79l.65-1.14c.34-.04.69-.08 1.04-.08s.7.03 1.04.08l.65 1.14c.66.17 1.3.43 1.91.79l1.27-.35c.28.21.54.44.79.68.25.25.47.51.68.79L16 6.4c.36.6.62 1.24.79 1.91l1.14.65c.04.34.08.69.08 1.04s-.04.7-.09 1.04" /></symbol>'});a().add(s);const l=s},7351(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"group_by",use:"group_by-usage",viewBox:"0 0 18 18",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" id="group_by"><path d="M3.5 12H2v4h4v-1.5H3.5zM6 12h2v-2H6zM3.5 3.5H6V2H2v4h1.5zM12 6h-2v2h2zm2.5 8.5H12V16h4v-4h-1.5zM12 2v1.5h2.5V6H16V2zm0 8h-2v2h2zM6 8h2V6H6z" /></symbol>'});a().add(s);const l=s},40235(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"metrics",use:"metrics-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="metrics"><path d="M21.83 5.64C21.29 3.55 19.41 2 17.16 2H6.84C4.17 2 2 4.17 2 6.84v6.94c-.61.55-1 1.34-1 2.22 0 1.65 1.35 3 3 3s3-1.35 3-3c0-.46-.11-.89-.3-1.29l1.01-1.01c.39.19.82.3 1.29.3.87 0 1.65-.38 2.2-.97l1.82.78c0 .06-.02.12-.02.19 0 1.65 1.35 3 3 3s3-1.35 3-3c0-.67-.23-1.29-.61-1.79l.88-1.31c.24.06.48.1.73.1 1.65 0 3-1.35 3-3 0-.96-.46-1.81-1.17-2.36M4 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m5-5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m7 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m1-7c0 .67.23 1.29.61 1.79l-.87 1.31c-.24-.06-.48-.1-.73-.1-.87 0-1.65.38-2.2.97l-1.82-.78c0-.06.02-.12.02-.19 0-1.65-1.35-3-3-3s-3 1.35-3 3c0 .46.11.89.3 1.29L5.29 13.3C4.9 13.11 4.47 13 4 13V6.84C4 5.27 5.28 4 6.84 4h10.31c.89 0 1.68.42 2.2 1.07C18.01 5.37 17 6.57 17 8m3 1c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0 8.16c0 1.57-1.28 2.84-2.84 2.84H6.84c-.46 0-.89-.12-1.28-.32-.48.2-1.01.32-1.56.32-.42 0-.83-.08-1.21-.21A4.84 4.84 0 0 0 6.84 22h10.31c2.67 0 4.84-2.17 4.84-4.84v-5.72c-.59.35-1.27.56-2 .56v5.16z" /></symbol>'});a().add(s);const l=s},53965(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"nav_left",use:"nav_left-usage",viewBox:"0 0 8 10",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 10" id="nav_left"><path d="M4.17 8.67 2.34 5l1.83-3.67a.742.742 0 0 0-.33-1 .745.745 0 0 0-1.01.34L.66 5l2.17 4.33c.19.37.64.52 1.01.34s.52-.63.33-1m1.66-8L3.66 5l2.17 4.33c.19.37.64.52 1.01.34.37-.19.52-.64.34-1.01L5.34 5l1.83-3.67a.742.742 0 0 0-.33-1 .74.74 0 0 0-1.01.34" /></symbol>'});a().add(s);const l=s},14608(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"nav_right",use:"nav_right-usage",viewBox:"0 0 8 10",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 10" id="nav_right"><path d="M3.83 1.33 5.66 5 3.83 8.67a.742.742 0 0 0 .33 1c.37.19.82.04 1.01-.34L7.34 5 5.17.67A.763.763 0 0 0 4.16.33c-.37.18-.52.63-.33 1m-1.66 8L4.34 5 2.17.67A.763.763 0 0 0 1.16.33C.79.52.64.97.82 1.34L2.66 5 .83 8.67a.742.742 0 0 0 .33 1c.38.19.83.04 1.01-.34" /></symbol>'});a().add(s);const l=s},70922(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"pan_tool",use:"pan_tool-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="pan_tool"><path d="m9.893 3.579.42.157.202-.399a1.5 1.5 0 0 1 1.329-.837c.574 0 1.073.337 1.327.85l.202.406.424-.162q.213-.082.48-.083a1.48 1.48 0 0 1 1.471 1.35l.05.572.561-.13q.162-.037.351-.037c.383 0 .756.153 1.049.417.284.296.428.653.428 1.044v8.256c0 3.6-2.851 6.517-6.343 6.517-1.69 0-3.283-.67-4.474-1.91l-.005-.006C6.155 18.36 5.5 16.724 5.5 14.983v-4.706c0-.806.65-1.461 1.477-1.461.112 0 .232.012.347.038l.61.137V4.972c0-.81.655-1.481 1.476-1.481q.248 0 .483.088m1.035.418v7.415c0 .167-.13.284-.27.284a.277.277 0 0 1-.271-.284v-6.42c0-.522-.442-.933-.956-.933-.515 0-.957.411-.957.934v9.804c0 .167-.13.284-.27.284a.277.277 0 0 1-.27-.284v-4.5c0-.22-.09-.459-.265-.638l-.352.343.352-.343a.97.97 0 0 0-.692-.275c-.504 0-.956.382-.956.913v4.706c0 1.584.613 3.082 1.712 4.21 1.1 1.127 2.561 1.76 4.11 1.76 3.129 0 5.667-2.538 5.817-5.676h.047v-8.57a.9.9 0 0 0-.265-.619.97.97 0 0 0-.691-.274c-.495 0-.957.372-.957.872v4.706c0 .167-.13.284-.27.284a.277.277 0 0 1-.27-.284v-6.42c0-.522-.443-.933-.957-.933s-.956.411-.956.934v6.419c0 .167-.13.284-.27.284a.277.277 0 0 1-.271-.284v-7.43c0-.523-.442-.934-.956-.934-.508 0-.967.41-.916.949" /></symbol>'});a().add(s);const l=s},98108(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"pencil_outline",use:"pencil_outline-usage",viewBox:"0 0 14 14",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" id="pencil_outline"><path d="M9.76 0c-1.13 0-2.2.45-3 1.24L6 2 4.94 3.06.5 7.5 0 14l6.5-.5 6.26-6.26a4.242 4.242 0 0 0-3-7.24m1.94 6.18-5.86 5.86-2.26.17c-.21-.43-.49-.82-.84-1.15-.28-.26-.6-.48-.95-.65l.17-2.25L6 4.12 8.38 6.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44L7.06 3.06l.76-.76a2.744 2.744 0 0 1 3.88 3.88" /></symbol>'});a().add(s);const l=s},75116(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"plus",use:"plus-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="plus"><path fill-rule="evenodd" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" clip-rule="evenodd" /></symbol>'});a().add(s);const l=s},58937(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"selected_area",use:"selected_area-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="selected_area"><path d="M15 19.5h3v3h1.5v-3h3V18h-3v-3H18v3h-3zM9 19.5h3V18H9zM6 19.5V18H3v-3H1.5v3A1.5 1.5 0 0 0 3 19.5zM18 12h1.5V9H18zM18 3v3h1.5V3A1.5 1.5 0 0 0 18 1.5h-3V3zM1.5 12H3V9H1.5zM9 3h3V1.5H9zM3 6V3h3V1.5H3A1.5 1.5 0 0 0 1.5 3v3z" /></symbol>'});a().add(s);const l=s},9464(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"sort_ascending",use:"sort_ascending-usage",viewBox:"0 0 18 18",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" id="sort_ascending"><path d="M4.97 6.47c-.29.29-.29.77 0 1.06s.77.29 1.06 0l2.22-2.22V15c0 .41.34.75.75.75s.75-.34.75-.75V5.31l2.22 2.22c.29.29.77.29 1.06 0 .15-.15.22-.34.22-.53s-.07-.38-.22-.53L9 2.44z" /></symbol>'});a().add(s);const l=s},51081(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"sort_descending",use:"sort_descending-usage",viewBox:"0 0 18 18",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" id="sort_descending"><path d="M13.03 11.53c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-2.22 2.22V3c0-.41-.34-.75-.75-.75s-.75.34-.75.75v9.69l-2.22-2.22a.754.754 0 0 0-1.06 0c-.15.15-.22.34-.22.53s.07.38.22.53L9 15.56z" /></symbol>'});a().add(s);const l=s},38860(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"trashcan",use:"trashcan-usage",viewBox:"0 0 14 15",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 15" id="trashcan"><path d="M4.75 5.188v6.75c0 .314.248.562.563.562a.557.557 0 0 0 .562-.562v-6.75a.557.557 0 0 0-.562-.563.557.557 0 0 0-.563.563m3.375 0v6.75c0 .314.248.562.563.562a.557.557 0 0 0 .562-.562v-6.75a.557.557 0 0 0-.562-.563.557.557 0 0 0-.563.563m4.669.73-.259.26.09-1.474v-.068H11.5l-.495 7.92a1.147 1.147 0 0 1-1.147 1.08H4.143a1.147 1.147 0 0 1-1.148-1.08L2.568 5.75 2.433 3.5h10.755a.557.557 0 0 0 .562-.562.557.557 0 0 0-.562-.563H9.25A2.257 2.257 0 0 0 7 .125a2.257 2.257 0 0 0-2.25 2.25H.813a.557.557 0 0 0-.563.563c0 .314.248.562.563.562h.495l.067 1.193.09 1.473-.259-.259a.557.557 0 0 0-.798 0 .557.557 0 0 0 0 .8L1.533 7.83c.01.011.022.011.033.023l.293 4.759A2.286 2.286 0 0 0 4.13 14.75h5.704a2.27 2.27 0 0 0 2.272-2.137l.293-4.748c.011-.011.022-.011.034-.022l1.125-1.125a.557.557 0 0 0 0-.8c-.225-.224-.551-.224-.765 0M7 1.25c.619 0 1.125.506 1.125 1.125h-2.25c0-.619.506-1.125 1.125-1.125" /></symbol>'});a().add(s);const l=s},97701(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"universe",use:"universe-usage",viewBox:"0 0 18 18",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" id="universe"><path d="M9 13.35c.75 0 1.35-.6 1.35-1.35s-.6-1.35-1.35-1.35-1.35.6-1.35 1.35.6 1.35 1.35 1.35m2.23-2.12c.35.35.93.26 1.19-.16.37-.6.58-1.31.58-2.07 0-2.21-1.79-3.97-4-3.98a3.982 3.982 0 0 0-3.42 6.05c.26.43.84.51 1.19.16.25-.25.28-.63.1-.93-.23-.37-.37-.82-.37-1.3 0-1.38 1.12-2.49 2.5-2.49S11.5 7.63 11.5 9c0 .48-.14.93-.37 1.31-.18.29-.15.67.1.92M5.71 5.71c.53-.53.53-1.38 0-1.91s-1.38-.53-1.91 0-.53 1.38 0 1.91 1.38.53 1.91 0M9 10c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1m.42-7.99c-.81-.05-1.58.04-2.31.25-.43.12-.66.59-.49 1.01l.01.01c.14.34.51.53.86.43.89-.26 1.87-.3 2.88-.05 1.98.48 3.57 2.11 4.01 4.1a5.514 5.514 0 0 1-6.6 6.6c-1.99-.44-3.62-2.02-4.1-4-.25-1.01-.21-2 .05-2.89.1-.35-.1-.72-.43-.86 0 0-.01 0-.01-.01a.76.76 0 0 0-1.01.49c-.2.73-.3 1.5-.25 2.3.2 3.59 3.24 6.52 6.84 6.6 3.98.08 7.22-3.15 7.15-7.12-.08-3.59-3.01-6.65-6.6-6.86" /></symbol>'});a().add(s);const l=s},88335(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"warning_triangle_hollow",use:"warning_triangle_hollow-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="warning_triangle_hollow"><path d="M12 15.8c-.66 0-1.2.54-1.2 1.2s.54 1.2 1.2 1.2 1.2-.54 1.2-1.2-.54-1.2-1.2-1.2m-.37-6.69c-.84.2-1.36 1.05-1.15 1.89l.73 3c.07.29.29.53.6.6.44.11.88-.16.99-.6l.73-3c.06-.23.06-.49 0-.74a1.58 1.58 0 0 0-1.9-1.15m10.96 9.19L13.86 3.22A2.14 2.14 0 0 0 12 2.15c-.77 0-1.47.4-1.86 1.07L1.41 18.3c-.45.77-.45 1.69 0 2.47.45.77 1.24 1.23 2.14 1.23h16.91a2.456 2.456 0 0 0 2.13-3.7m-1.73 1.47c-.05.09-.17.23-.4.23H3.54c-.23 0-.35-.15-.4-.23a.45.45 0 0 1 0-.47l8.73-15.08c.01-.02.04-.08.13-.08s.12.06.13.08l8.73 15.08c.12.2.05.38 0 .47" /></symbol>'});a().add(s);const l=s},9932(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"x",use:"x-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="x"><path d="m13.4 12 5.3-5.3c.4-.4.4-1 0-1.4s-1-.4-1.4 0L12 10.6 6.7 5.3c-.4-.4-1-.4-1.4 0s-.4 1 0 1.4l5.3 5.3-5.3 5.3c-.4.4-.4 1 0 1.4.2.2.4.3.7.3s.5-.1.7-.3l5.3-5.3 5.3 5.3c.2.2.5.3.7.3s.5-.1.7-.3c.4-.4.4-1 0-1.4z" /></symbol>'});a().add(s);const l=s},29085(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"zoom_in",use:"zoom_in-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="zoom_in"><path d="M13.5 9h-3V6H9v3H6v1.5h3v3h1.5v-3h3z" /><path d="M16.086 15A8.14 8.14 0 0 0 18 9.75 8.25 8.25 0 1 0 9.75 18 8.14 8.14 0 0 0 15 16.086l5.69 5.664 1.06-1.06zM9.75 16.5a6.75 6.75 0 1 1 6.75-6.75 6.76 6.76 0 0 1-6.75 6.75" /></symbol>'});a().add(s);const l=s},99444(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"zoom_out",use:"zoom_out-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="zoom_out"><path d="M13.5 9H6v1.5h7.5z" /><path d="M16.086 15A8.14 8.14 0 0 0 18 9.75 8.25 8.25 0 1 0 9.75 18 8.14 8.14 0 0 0 15 16.086l5.69 5.664 1.06-1.06zM9.75 16.5a6.75 6.75 0 1 1 6.75-6.75 6.76 6.76 0 0 1-6.75 6.75" /></symbol>'});a().add(s);const l=s},83357(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(12897),o=r.n(n),i=r(55042),a=r.n(i),s=new(o())({id:"zoom_reset",use:"zoom_reset-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="zoom_reset"><path d="M16.836 15.75a8.14 8.14 0 0 0 1.914-5.25A8.242 8.242 0 0 0 4.5 4.85V1.5H3v6h6V6H5.499a6.733 6.733 0 1 1-1.575 6h-1.53a8.26 8.26 0 0 0 8.106 6.75 8.14 8.14 0 0 0 5.25-1.914l5.69 5.664 1.06-1.06z" /></symbol>'});a().add(s);const l=s},16099(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(r(86308));function i(t){if(!t.options.indentation&&!t.options.lineSeparator)return;let e;for(t.content+=t.options.lineSeparator,e=0;e<t.level;e++)t.content+=t.options.indentation}function a(t,e){t.content+=e}function s(t,e,r){if("Element"===t.type)!function(t,e,r){e.path.push(t.name),!r&&e.content.length>0&&i(e);if(a(e,"<"+t.name),function(t,e){Object.keys(e).forEach(function(r){if("single"===t.options.attributeQuotes){const n=e[r].replace(/'/g,"'");a(t," "+r+"='"+n+"'")}else{const n=e[r].replace(/"/g,""");a(t," "+r+'="'+n+'"')}})}(e,t.attributes),null===t.children||e.options.forceSelfClosingEmptyTag&&0===t.children.length){const t=e.options.whiteSpaceAtEndOfSelfclosingTag?" />":"/>";a(e,t)}else if(0===t.children.length)a(e,"></"+t.name+">");else{const n=t.children;a(e,">"),e.level++;let o="preserve"===t.attributes["xml:space"]||r,l=!1;if(!o&&e.options.ignoredPaths&&(l=function(t,e){const r="/"+t.join("/"),n=t[t.length-1];return e.includes(n)||e.includes(r)}(e.path,e.options.ignoredPaths),o=l),!o&&e.options.collapseContent){let t=!1,e=!1,i=!1;n.forEach(function(o,a){"Text"===o.type?(o.content.includes("\n")?(e=!0,o.content=o.content.trim()):0!==a&&a!==n.length-1||r||0===o.content.trim().length&&(o.content=""),(o.content.trim().length>0||1===n.length)&&(t=!0)):"CDATA"===o.type?t=!0:i=!0}),!t||i&&e||(o=!0)}n.forEach(function(t){s(t,e,r||o)}),e.level--,r||o||i(e),l&&function(t){let e;for(t.content=t.content.replace(/ +$/,""),e=0;e<t.level;e++)t.content+=t.options.indentation}(e),a(e,"</"+t.name+">")}e.path.pop()}(t,e,r);else if("ProcessingInstruction"===t.type)l(t,e);else{if("string"!==typeof t.content)throw new Error("Unknown node type: "+t.type);!function(t,e,r){if(!r){const r=t.trim();(e.options.lineSeparator||0===r.length)&&(t=r)}t.length>0&&(!r&&e.content.length>0&&i(e),a(e,t))}(t.content,e,r)}}function l(t,e){e.content.length>0&&i(e),a(e,"<?"+t.name),a(e," "+t.content.trim()),a(e,"?>")}function u(t,e={}){e.indentation="indentation"in e?e.indentation:" ",e.collapseContent=!0===e.collapseContent,e.lineSeparator="lineSeparator"in e?e.lineSeparator:"\r\n",e.whiteSpaceAtEndOfSelfclosingTag=!0===e.whiteSpaceAtEndOfSelfclosingTag,e.throwOnFailure=!1!==e.throwOnFailure,e.attributeQuotes="attributeQuotes"in e?e.attributeQuotes:"double";try{const r=(0,o.default)(t,{filter:e.filter,strictMode:e.strictMode}),n={content:"",level:0,options:e,path:[]};return r.declaration&&l(r.declaration,n),r.children.forEach(function(t){s(t,n,!1)}),e.lineSeparator?n.content.replace(/\r\n/g,"\n").replace(/\n/g,e.lineSeparator):n.content}catch(r){if(e.throwOnFailure)throw r;return t}}u.minify=(t,e={})=>u(t,Object.assign(Object.assign({},e),{indentation:"",lineSeparator:""})),t.exports=u,e.default=u},86308(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParsingError=void 0;class r extends Error{constructor(t,e){super(t),this.cause=e}}let n;function o(){return s(!1)||function(){const t=c(/^([^<]+)/);if(t){const e={type:"Text",content:t[1]};return{excluded:!1===n.options.filter(e),node:e}}}()||l()||function(){if(n.xml.startsWith("<![CDATA[")){const t=n.xml.indexOf("]]>");if(t>-1){const e=t+3,r={type:"CDATA",content:n.xml.substring(0,e)};return n.xml=n.xml.slice(e),{excluded:!1===n.options.filter(r),node:r}}}}()||a()}function i(){return c(/\s*/),s(!0)||l()||function(){const t=c(/^<!DOCTYPE\s+\S+\s+SYSTEM[^>]*>/)||c(/^<!DOCTYPE\s+\S+\s+PUBLIC[^>]*>/)||c(/^<!DOCTYPE\s+\S+\s*\[[^\]]*]>/)||c(/^<!DOCTYPE\s+\S+\s*>/);if(t){const e={type:"DocumentType",content:t[0]};return{excluded:!1===n.options.filter(e),node:e}}}()||a()}function a(){const t=c(/^<\?([\w-:.]+)\s*/);if(!t)return;const e={name:t[1],type:"ProcessingInstruction",content:""},o=n.xml.indexOf("?>");if(!(o>-1))throw new r("Failed to parse XML","ProcessingInstruction closing tag not found");return e.content=n.xml.substring(0,o).trim(),n.xml=n.xml.slice(o),c(/\?>/),{excluded:!1===n.options.filter(e),node:e}}function s(t){const e=c(/^<([^?!</>\s]+)\s*/);if(!e)return;const i={type:"Element",name:e[1],attributes:{},children:[]},a=!t&&!1===n.options.filter(i);for(;!(f()||d(">")||d("?>")||d("/>"));){const t=u();if(!t)return;i.attributes[t.name]=t.value}if(c(/^\s*\/>/))return i.children=null,{excluded:a,node:i};c(/\??>/);let s=o();for(;s;)s.excluded||i.children.push(s.node),s=o();if(n.options.strictMode){const t=`</${i.name}>`;if(!n.xml.startsWith(t))throw new r("Failed to parse XML",`Closing tag not matching "${t}"`);n.xml=n.xml.slice(t.length)}else c(/^<\/[\w-:.\u00C0-\u00FF]+\s*>/);return{excluded:a,node:i}}function l(){const t=c(/^<!--[\s\S]*?-->/);if(t){const e={type:"Comment",content:t[0]};return{excluded:!1===n.options.filter(e),node:e}}}function u(){const t=c(/([^=]+)\s*=\s*("[^"]*"|'[^']*'|[^>\s]+)\s*/);if(t)return{name:t[1].trim(),value:(e=t[2].trim(),e.replace(/^['"]|['"]$/g,""))};var e}function c(t){const e=n.xml.match(t);if(e)return n.xml=n.xml.slice(e[0].length),e}function f(){return 0===n.xml.length}function d(t){return 0===n.xml.indexOf(t)}function h(t,e={}){t=t.trim();const o=e.filter||(()=>!0);return n={xml:t,options:Object.assign(Object.assign({},e),{filter:o,strictMode:!0===e.strictMode})},function(){const t=a(),e=[];let o,s=i();for(;s;){if("Element"===s.node.type){if(o)throw new Error("Found multiple root nodes");o=s.node}s.excluded||e.push(s.node),s=i()}if(!o)throw new r("Failed to parse XML","Root Element not found");if(0!==n.xml.length)throw new r("Failed to parse XML","Not Well-Formed XML");return{declaration:t?t.node:null,root:o,children:e}}()}e.ParsingError=r,t.exports=h,e.default=h},68183(t,e,r){"use strict";var n=r(79504),o=r(91291),i=r(655),a=r(67750),s=n("".charAt),l=n("".charCodeAt),u=n("".slice),c=function(t){return function(e,r){var n,c,f=i(a(e)),d=o(r),h=f.length;return d<0||d>=h?t?"":void 0:(n=l(f,d))<55296||n>56319||d+1===h||(c=l(f,d+1))<56320||c>57343?t?s(f,d):n:t?u(f,d,d+2):c-56320+(n-55296<<10)+65536}};t.exports={codeAt:c(!1),charAt:c(!0)}},78898(t,e,r){"use strict";var n=r(46518),o=r(68183).charAt,i=r(67750),a=r(91291),s=r(655);n({target:"String",proto:!0,forced:!0},{at:function(t){var e=s(i(this)),r=e.length,n=a(t),l=n>=0?n:r+n;return l<0||l>=r?void 0:o(e,l)}})},66118(t,e,r){"use strict";r.d(e,{$L:()=>dn,A6:()=>A,Bs:()=>ge,E8:()=>Ee,FN:()=>Me,Hg:()=>Ot,Jb:()=>D,No:()=>Se,P$:()=>F,PP:()=>Lr,Qw:()=>u,UA:()=>cn,ZT:()=>I,ij:()=>V,ju:()=>T,kc:()=>Vr,m_:()=>Tr,s$:()=>hr,t1:()=>ce});var n=r(81692);class o{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,r,n){const o=e.listeners[n],i=e.duration;o.forEach(n=>n({chart:t,initial:e.initial,numSteps:i,currentStep:Math.min(r-e.start,i)}))}_refresh(){this._request||(this._running=!0,this._request=n.r.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((r,n)=>{if(!r.running||!r.items.length)return;const o=r.items;let i,a=o.length-1,s=!1;for(;a>=0;--a)i=o[a],i._active?(i._total>r.duration&&(r.duration=i._total),i.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(n.draw(),this._notify(n,r,t,"progress")),o.length||(r.running=!1,this._notify(n,r,t,"complete"),r.initial=!1),e+=o.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let r=e.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,r)),r}listen(t,e,r){this._getAnims(t).listeners[e].push(r)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const r=e.items;let n=r.length-1;for(;n>=0;--n)r[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var i=new o;const a="transparent",s={boolean:(t,e,r)=>r>.5?e:t,color(t,e,r){const o=(0,n.c)(t||a),i=o.valid&&(0,n.c)(e||a);return i&&i.valid?i.mix(o,r).hexString():e},number:(t,e,r)=>t+(e-t)*r};class l{constructor(t,e,r,o){const i=e[r];o=(0,n.a)([t.to,o,i,t.from]);const a=(0,n.a)([t.from,i,o]);this._active=!0,this._fn=t.fn||s[t.type||typeof a],this._easing=n.e[t.easing]||n.e.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=r,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(t,e,r){if(this._active){this._notify(!1);const o=this._target[this._prop],i=r-this._start,a=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=(0,n.a)([t.to,e,o,t.from]),this._from=(0,n.a)([t.from,o,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,r=this._duration,n=this._prop,o=this._from,i=this._loop,a=this._to;let s;if(this._active=o!==a&&(i||e<r),!this._active)return this._target[n]=a,void this._notify(!0);e<0?this._target[n]=o:(s=e/r%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[n]=this._fn(o,a,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,r)=>{t.push({res:e,rej:r})})}_notify(t){const e=t?"res":"rej",r=this._promises||[];for(let n=0;n<r.length;n++)r[n][e]()}}class u{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!(0,n.i)(t))return;const e=Object.keys(n.d.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(o=>{const i=t[o];if(!(0,n.i)(i))return;const a={};for(const t of e)a[t]=i[t];((0,n.b)(i.properties)&&i.properties||[o]).forEach(t=>{t!==o&&r.has(t)||r.set(t,a)})})}_animateOptions(t,e){const r=e.options,n=function(t,e){if(!e)return;let r=t.options;if(!r)return void(t.options=e);r.$shared&&(t.options=r=Object.assign({},r,{$shared:!1,$animations:{}}));return r}(t,r);if(!n)return[];const o=this._createAnimations(n,r);return r.$shared&&function(t,e){const r=[],n=Object.keys(e);for(let o=0;o<n.length;o++){const e=t[n[o]];e&&e.active()&&r.push(e.wait())}return Promise.all(r)}(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,e){const r=this._properties,n=[],o=t.$animations||(t.$animations={}),i=Object.keys(e),a=Date.now();let s;for(s=i.length-1;s>=0;--s){const u=i[s];if("$"===u.charAt(0))continue;if("options"===u){n.push(...this._animateOptions(t,e));continue}const c=e[u];let f=o[u];const d=r.get(u);if(f){if(d&&f.active()){f.update(d,c,a);continue}f.cancel()}d&&d.duration?(o[u]=f=new l(d,t,u,c),n.push(f)):t[u]=c}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const r=this._createAnimations(t,e);return r.length?(i.add(this._chart,r),!0):void 0}}function c(t,e){const r=t&&t.options||{},n=r.reverse,o=void 0===r.min?e:0,i=void 0===r.max?e:0;return{start:n?i:o,end:n?o:i}}function f(t,e){const r=[],n=t._getSortedDatasetMetas(e);let o,i;for(o=0,i=n.length;o<i;++o)r.push(n[o].index);return r}function d(t,e,r,o={}){const i=t.keys,a="single"===o.mode;let s,l,u,c;if(null===e)return;let f=!1;for(s=0,l=i.length;s<l;++s){if(u=+i[s],u===r){if(f=!0,o.all)continue;break}c=t.values[u],(0,n.g)(c)&&(a||0===e||(0,n.s)(e)===(0,n.s)(c))&&(e+=c)}return f||o.all?e:0}function h(t,e){const r=t&&t.options.stacked;return r||void 0===r&&void 0!==e.stack}function p(t,e,r){const n=t[e]||(t[e]={});return n[r]||(n[r]={})}function b(t,e,r,n){for(const o of e.getMatchingVisibleMetas(n).reverse()){const e=t[o.index];if(r&&e>0||!r&&e<0)return o.index}return null}function g(t,e){const{chart:r,_cachedMeta:n}=t,o=r._stacks||(r._stacks={}),{iScale:i,vScale:a,index:s}=n,l=i.axis,u=a.axis,c=function(t,e,r){return`${t.id}.${e.id}.${r.stack||r.type}`}(i,a,n),f=e.length;let d;for(let h=0;h<f;++h){const t=e[h],{[l]:r,[u]:i}=t;d=(t._stacks||(t._stacks={}))[u]=p(o,c,r),d[s]=i,d._top=b(d,a,!0,n.type),d._bottom=b(d,a,!1,n.type);(d._visualValues||(d._visualValues={}))[s]=i}}function m(t,e){const r=t.scales;return Object.keys(r).filter(t=>r[t].axis===e).shift()}function y(t,e){const r=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[n]||void 0===e[n][r])return;delete e[n][r],void 0!==e[n]._visualValues&&void 0!==e[n]._visualValues[r]&&delete e[n]._visualValues[r]}}}const v=t=>"reset"===t||"none"===t,x=(t,e)=>e?t:Object.assign({},t);class w{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=h(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&y(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,r=this.getDataset(),o=(t,e,r,n)=>"x"===t?e:"r"===t?n:r,i=e.xAxisID=(0,n.v)(r.xAxisID,m(t,"x")),a=e.yAxisID=(0,n.v)(r.yAxisID,m(t,"y")),s=e.rAxisID=(0,n.v)(r.rAxisID,m(t,"r")),l=e.indexAxis,u=e.iAxisID=o(l,i,a,s),c=e.vAxisID=o(l,a,i,s);e.xScale=this.getScaleForId(i),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(s),e.iScale=this.getScaleForId(u),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&(0,n.u)(this._data,this),t._stacked&&y(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),r=this._data;if((0,n.i)(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:r,vScale:n}=e,o="x"===r.axis?"x":"y",i="x"===n.axis?"x":"y",a=Object.keys(t),s=new Array(a.length);let l,u,c;for(l=0,u=a.length;l<u;++l)c=a[l],s[l]={[o]:c,[i]:t[c]};return s}(e,t)}else if(r!==e){if(r){(0,n.u)(r,this);const t=this._cachedMeta;y(t),t._parsed=[]}e&&Object.isExtensible(e)&&(0,n.l)(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,r=this.getDataset();let n=!1;this._dataCheck();const o=e._stacked;e._stacked=h(e.vScale,e),e.stack!==r.stack&&(n=!0,y(e),e.stack=r.stack),this._resyncElements(t),(n||o!==e._stacked)&&(g(this,e._parsed),e._stacked=h(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:r,_data:o}=this,{iScale:i,_stacked:a}=r,s=i.axis;let l,u,c,f=0===t&&e===o.length||r._sorted,d=t>0&&r._parsed[t-1];if(!1===this._parsing)r._parsed=o,r._sorted=!0,c=o;else{c=(0,n.b)(o[t])?this.parseArrayData(r,o,t,e):(0,n.i)(o[t])?this.parseObjectData(r,o,t,e):this.parsePrimitiveData(r,o,t,e);const i=()=>null===u[s]||d&&u[s]<d[s];for(l=0;l<e;++l)r._parsed[l+t]=u=c[l],f&&(i()&&(f=!1),d=u);r._sorted=f}a&&g(this,c)}parsePrimitiveData(t,e,r,n){const{iScale:o,vScale:i}=t,a=o.axis,s=i.axis,l=o.getLabels(),u=o===i,c=new Array(n);let f,d,h;for(f=0,d=n;f<d;++f)h=f+r,c[f]={[a]:u||o.parse(l[h],h),[s]:i.parse(e[h],h)};return c}parseArrayData(t,e,r,n){const{xScale:o,yScale:i}=t,a=new Array(n);let s,l,u,c;for(s=0,l=n;s<l;++s)u=s+r,c=e[u],a[s]={x:o.parse(c[0],u),y:i.parse(c[1],u)};return a}parseObjectData(t,e,r,o){const{xScale:i,yScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=new Array(o);let c,f,d,h;for(c=0,f=o;c<f;++c)d=c+r,h=e[d],u[c]={x:i.parse((0,n.f)(h,s),d),y:a.parse((0,n.f)(h,l),d)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,r){const n=this.chart,o=this._cachedMeta,i=e[t.axis];return d({keys:f(n,!0),values:e._stacks[t.axis]._visualValues},i,o.index,{mode:r})}updateRangeFromParsed(t,e,r,n){const o=r[e.axis];let i=null===o?NaN:o;const a=n&&r._stacks[e.axis];n&&a&&(n.values=a,i=d(n,o,this._cachedMeta.index)),t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}getMinMax(t,e){const r=this._cachedMeta,o=r._parsed,i=r._sorted&&t===r.iScale,a=o.length,s=this._getOtherScale(t),l=((t,e,r)=>t&&!e.hidden&&e._stacked&&{keys:f(r,!0),values:null})(e,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:r,minDefined:n,maxDefined:o}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:o?r:Number.POSITIVE_INFINITY}}(s);let h,p;function b(){p=o[h];const e=p[s.axis];return!(0,n.g)(p[t.axis])||c>e||d<e}for(h=0;h<a&&(b()||(this.updateRangeFromParsed(u,t,p,l),!i));++h);if(i)for(h=a-1;h>=0;--h)if(!b()){this.updateRangeFromParsed(u,t,p,l);break}return u}getAllParsedValues(t){const e=this._cachedMeta._parsed,r=[];let o,i,a;for(o=0,i=e.length;o<i;++o)a=e[o][t.axis],(0,n.g)(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,r=e.iScale,n=e.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:n?""+n.getLabelForValue(o[n.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,r,o,i;return(0,n.i)(t)?(e=t.top,r=t.right,o=t.bottom,i=t.left):e=r=o=i=t,{top:e,right:r,bottom:o,left:i,disabled:!1===t}}((0,n.v)(this.options.clip,function(t,e,r){if(!1===r)return!1;const n=c(t,r),o=c(e,r);return{top:o.end,right:n.end,bottom:o.start,left:n.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,r=this._cachedMeta,n=r.data||[],o=e.chartArea,i=[],a=this._drawStart||0,s=this._drawCount||n.length-a,l=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(t,o,a,s),u=a;u<a+s;++u){const e=n[u];e.hidden||(e.active&&l?i.push(e):e.draw(t,o))}for(u=0;u<i.length;++u)i[u].draw(t,o)}getStyle(t,e){const r=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,e,r){const o=this.getDataset();let i;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];i=e.$context||(e.$context=function(t,e,r){return(0,n.j)(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:r,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),i.parsed=this.getParsed(t),i.raw=o.data[t],i.index=i.dataIndex=t}else i=this.$context||(this.$context=function(t,e){return(0,n.j)(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),i.dataset=o,i.index=i.datasetIndex=this.index;return i.active=!!e,i.mode=r,i}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",r){const o="active"===e,i=this._cachedDataOpts,a=t+"-"+e,s=i[a],l=this.enableOptionSharing&&(0,n.h)(r);if(s)return x(s,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),f=o?[`${t}Hover`,"hover",t,""]:[t,""],d=u.getOptionScopes(this.getDataset(),c),h=Object.keys(n.d.elements[t]),p=u.resolveNamedOptions(d,h,()=>this.getContext(r,o,e),f);return p.$shared&&(p.$shared=l,i[a]=Object.freeze(x(p,l))),p}_resolveAnimations(t,e,r){const n=this.chart,o=this._cachedDataOpts,i=`animation-${e}`,a=o[i];if(a)return a;let s;if(!1!==n.options.animation){const n=this.chart.config,o=n.datasetAnimationScopeKeys(this._type,e),i=n.getOptionScopes(this.getDataset(),o);s=n.createResolver(i,this.getContext(t,r,e))}const l=new u(n,s&&s.animations);return s&&s._cacheable&&(o[i]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||v(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const r=this.resolveDataElementOptions(t,e),n=this._sharedOptions,o=this.getSharedOptions(r),i=this.includeOptions(e,o)||o!==n;return this.updateSharedOptions(o,e,r),{sharedOptions:o,includeOptions:i}}updateElement(t,e,r,n){v(n)?Object.assign(t,r):this._resolveAnimations(e,n).update(t,r)}updateSharedOptions(t,e,r){t&&!v(e)&&this._resolveAnimations(void 0,e).update(t,r)}_setStyle(t,e,r,n){t.active=n;const o=this.getStyle(e,n);this._resolveAnimations(e,r,n).update(t,{options:!n&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,e,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,r=this._cachedMeta.data;for(const[a,s,l]of this._syncList)this[a](s,l);this._syncList=[];const n=r.length,o=e.length,i=Math.min(o,n);i&&this.parse(0,i),o>n?this._insertElements(n,o-n,t):o<n&&this._removeElements(o,n-o)}_insertElements(t,e,r=!0){const n=this._cachedMeta,o=n.data,i=t+e;let a;const s=t=>{for(t.length+=e,a=t.length-1;a>=i;a--)t[a]=t[a-e]};for(s(o),a=t;a<i;++a)o[a]=new this.dataElementType;this._parsing&&s(n._parsed),this.parse(t,e),r&&this.updateElements(o,t,e,"reset")}updateElements(t,e,r,n){}_removeElements(t,e){const r=this._cachedMeta;if(this._parsing){const n=r._parsed.splice(t,e);r._stacked&&y(r,n)}r.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,r,n]=t;this[e](r,n)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function j(t){const e=t.iScale,r=function(t,e){if(!t._cache.$bar){const r=t.getMatchingVisibleMetas(e);let o=[];for(let e=0,n=r.length;e<n;e++)o=o.concat(r[e].controller.getAllParsedValues(t));t._cache.$bar=(0,n._)(o.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let o,i,a,s,l=e._length;const u=()=>{32767!==a&&-32768!==a&&((0,n.h)(s)&&(l=Math.min(l,Math.abs(a-s)||l)),s=a)};for(o=0,i=r.length;o<i;++o)a=e.getPixelForValue(r[o]),u();for(s=void 0,o=0,i=e.ticks.length;o<i;++o)a=e.getPixelForTick(o),u();return l}function O(t,e,r,o){return(0,n.b)(t)?function(t,e,r,n){const o=r.parse(t[0],n),i=r.parse(t[1],n),a=Math.min(o,i),s=Math.max(o,i);let l=a,u=s;Math.abs(a)>Math.abs(s)&&(l=s,u=a),e[r.axis]=u,e._custom={barStart:l,barEnd:u,start:o,end:i,min:a,max:s}}(t,e,r,o):e[r.axis]=r.parse(t,o),e}function _(t,e,r,n){const o=t.iScale,i=t.vScale,a=o.getLabels(),s=o===i,l=[];let u,c,f,d;for(u=r,c=r+n;u<c;++u)d=e[u],f={},f[o.axis]=s||o.parse(a[u],u),l.push(O(d,f,i,u));return l}function S(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function P(t,e,r,n){let o=e.borderSkipped;const i={};if(!o)return void(t.borderSkipped=i);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:u,bottom:c}=function(t){let e,r,n,o,i;return t.horizontal?(e=t.base>t.x,r="left",n="right"):(e=t.base<t.y,r="bottom",n="top"),e?(o="end",i="start"):(o="start",i="end"),{start:r,end:n,reverse:e,top:o,bottom:i}}(t);"middle"===o&&r&&(t.enableBorderRadius=!0,(r._top||0)===n?o=u:(r._bottom||0)===n?o=c:(i[M(c,a,s,l)]=!0,o=u)),i[M(o,a,s,l)]=!0,t.borderSkipped=i}function M(t,e,r,n){var o,i,a;return n?(a=r,t=k(t=(o=t)===(i=e)?a:o===a?i:o,r,e)):t=k(t,e,r),t}function k(t,e,r){return"start"===t?e:"end"===t?r:t}function C(t,{inflateAmount:e},r){t.inflateAmount="auto"===e?1===r?.33:0:e}class A extends w{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,r,n){return _(t,e,r,n)}parseArrayData(t,e,r,n){return _(t,e,r,n)}parseObjectData(t,e,r,o){const{iScale:i,vScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u="x"===i.axis?s:l,c="x"===a.axis?s:l,f=[];let d,h,p,b;for(d=r,h=r+o;d<h;++d)b=e[d],p={},p[i.axis]=i.parse((0,n.f)(b,u),d),f.push(O((0,n.f)(b,c),p,a,d));return f}updateRangeFromParsed(t,e,r,n){super.updateRangeFromParsed(t,e,r,n);const o=r._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:r,vScale:n}=e,o=this.getParsed(t),i=o._custom,a=S(i)?"["+i.start+", "+i.end+"]":""+n.getLabelForValue(o[n.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,r,o){const i="reset"===o,{index:a,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),u=s.isHorizontal(),c=this._getRuler(),{sharedOptions:f,includeOptions:d}=this._getSharedOptions(e,o);for(let h=e;h<e+r;h++){const e=this.getParsed(h),r=i||(0,n.k)(e[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),p=this._calculateBarIndexPixels(h,c),b=(e._stacks||{})[s.axis],g={horizontal:u,base:r.base,enableBorderRadius:!b||S(e._custom)||a===b._top||a===b._bottom,x:u?r.head:p.center,y:u?p.center:r.head,height:u?p.size:Math.abs(r.size),width:u?Math.abs(r.size):p.size};d&&(g.options=f||this.resolveDataElementOptions(h,t[h].active?"active":o));const m=g.options||t[h].options;P(g,m,b,a),C(g,m,c.ratio),this.updateElement(t[h],h,g,o)}}_getStacks(t,e){const{iScale:r}=this._cachedMeta,o=r.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),i=r.options.stacked,a=[],s=this._cachedMeta.controller.getParsed(e),l=s&&s[r.axis],u=t=>{const e=t._parsed.find(t=>t[r.axis]===l),o=e&&e[t.vScale.axis];if((0,n.k)(o)||isNaN(o))return!0};for(const n of o)if((void 0===e||!u(n))&&((!1===i||-1===a.indexOf(n.stack)||void 0===i&&void 0===n.stack)&&a.push(n.stack),n.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,e=this.chart.options.indexAxis;return Object.keys(t).filter(r=>t[r].axis===e).shift()}_getAxis(){const t={},e=this.getFirstScaleIdForIndexAxis();for(const r of this.chart.data.datasets)t[(0,n.v)("x"===this.chart.options.indexAxis?r.xAxisID:r.yAxisID,e)]=!0;return Object.keys(t)}_getStackIndex(t,e,r){const n=this._getStacks(t,r),o=void 0!==e?n.indexOf(e):-1;return-1===o?n.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,r=e.iScale,n=[];let o,i;for(o=0,i=e.data.length;o<i;++o)n.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const a=t.barThickness;return{min:a||j(e),pixels:n,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:r,index:o},options:{base:i,minBarLength:a}}=this,s=i||0,l=this.getParsed(t),u=l._custom,c=S(u);let f,d,h=l[e.axis],p=0,b=r?this.applyStack(e,l,r):h;b!==h&&(p=b-h,b=h),c&&(h=u.barStart,b=u.barEnd-u.barStart,0!==h&&(0,n.s)(h)!==(0,n.s)(u.barEnd)&&(p=0),p+=h);const g=(0,n.k)(i)||c?p:i;let m=e.getPixelForValue(g);if(f=this.chart.getDataVisibility(t)?e.getPixelForValue(p+b):m,d=f-m,Math.abs(d)<a){d=function(t,e,r){return 0!==t?(0,n.s)(t):(e.isHorizontal()?1:-1)*(e.min>=r?1:-1)}(d,e,s)*a,h===s&&(m-=d/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),u=Math.min(t,i),p=Math.max(t,i);m=Math.max(Math.min(m,p),u),f=m+d,r&&!c&&(l._stacks[e.axis]._visualValues[o]=e.getValueForPixel(f)-e.getValueForPixel(m))}if(m===e.getPixelForValue(s)){const t=(0,n.s)(d)*e.getLineWidthForValue(s)/2;m+=t,d-=t}return{size:d,base:m,head:f,center:f+d/2}}_calculateBarIndexPixels(t,e){const r=e.scale,o=this.options,i=o.skipNull,a=(0,n.v)(o.maxBarThickness,1/0);let s,l;const u=this._getAxisCount();if(e.grouped){const r=i?this._getStackCount(t):e.stackCount,c="flex"===o.barThickness?function(t,e,r,n){const o=e.pixels,i=o[t];let a=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const l=r.categoryPercentage;null===a&&(a=i-(null===s?e.end-e.start:s-i)),null===s&&(s=i+i-a);const u=i-(i-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/n,ratio:r.barPercentage,start:u}}(t,e,o,r*u):function(t,e,r,o){const i=r.barThickness;let a,s;return(0,n.k)(i)?(a=e.min*r.categoryPercentage,s=r.barPercentage):(a=i*o,s=1),{chunk:a/o,ratio:s,start:e.pixels[t]-a/2}}(t,e,o,r*u),f="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,d=this._getAxis().indexOf((0,n.v)(f,this.getFirstScaleIdForIndexAxis())),h=this._getStackIndex(this.index,this._cachedMeta.stack,i?t:void 0)+d;s=c.start+c.chunk*h+c.chunk/2,l=Math.min(a,c.chunk*c.ratio)}else s=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(a,e.min*e.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const t=this._cachedMeta,e=t.vScale,r=t.data,n=r.length;let o=0;for(;o<n;++o)null===this.getParsed(o)[e.axis]||r[o].hidden||r[o].draw(this._ctx)}}class D extends w{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,r,n){const o=super.parsePrimitiveData(t,e,r,n);for(let i=0;i<o.length;i++)o[i]._custom=this.resolveDataElementOptions(i+r).radius;return o}parseArrayData(t,e,r,o){const i=super.parseArrayData(t,e,r,o);for(let a=0;a<i.length;a++){const t=e[r+a];i[a]._custom=(0,n.v)(t[2],this.resolveDataElementOptions(a+r).radius)}return i}parseObjectData(t,e,r,o){const i=super.parseObjectData(t,e,r,o);for(let a=0;a<i.length;a++){const t=e[r+a];i[a]._custom=(0,n.v)(t&&t.r&&+t.r,this.resolveDataElementOptions(a+r).radius)}return i}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let r=t.length-1;r>=0;--r)e=Math.max(e,t[r].size(this.resolveDataElementOptions(r))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,r=this.chart.data.labels||[],{xScale:n,yScale:o}=e,i=this.getParsed(t),a=n.getLabelForValue(i.x),s=o.getLabelForValue(i.y),l=i._custom;return{label:r[t]||"",value:"("+a+", "+s+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,r,n){const o="reset"===n,{iScale:i,vScale:a}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(e,n),u=i.axis,c=a.axis;for(let f=e;f<e+r;f++){const e=t[f],r=!o&&this.getParsed(f),d={},h=d[u]=o?i.getPixelForDecimal(.5):i.getPixelForValue(r[u]),p=d[c]=o?a.getBasePixel():a.getPixelForValue(r[c]);d.skip=isNaN(h)||isNaN(p),l&&(d.options=s||this.resolveDataElementOptions(f,e.active?"active":n),o&&(d.options.radius=0)),this.updateElement(e,f,d,n)}}resolveDataElementOptions(t,e){const r=this.getParsed(t);let o=super.resolveDataElementOptions(t,e);o.$shared&&(o=Object.assign({},o,{$shared:!1}));const i=o.radius;return"active"!==e&&(o.radius=0),o.radius+=(0,n.v)(r&&r._custom,i),o}}class T extends w{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data,{labels:{pointStyle:r,textAlign:n,color:o,useBorderRadius:i,borderRadius:a}}=t.legend.options;return e.labels.length&&e.datasets.length?e.labels.map((e,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:l.backgroundColor,fontColor:o,hidden:!t.getDataVisibility(s),lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:l.borderWidth,strokeStyle:l.borderColor,textAlign:n,pointStyle:r,borderRadius:i&&(a||l.borderRadius),index:s}}):[]}},onClick(t,e,r){r.chart.toggleDataVisibility(e.index),r.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const r=this.getDataset().data,o=this._cachedMeta;if(!1===this._parsing)o._parsed=r;else{let i,a,s=t=>+r[t];if((0,n.i)(r[t])){const{key:t="value"}=this._parsing;s=e=>+(0,n.f)(r[e],t)}for(i=t,a=t+e;i<a;++i)o._parsed[i]=s(i)}}_getRotation(){return(0,n.t)(this.options.rotation-90)}_getCircumference(){return(0,n.t)(this.options.circumference)}_getRotationExtents(){let t=n.T,e=-n.T;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const n=this.chart.getDatasetMeta(r).controller,o=n._getRotation(),i=n._getCircumference();t=Math.min(t,o),e=Math.max(e,o+i)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:r}=e,o=this._cachedMeta,i=o.data,a=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-a)/2,0),l=Math.min((0,n.m)(this.options.cutout,s),1),u=this._getRingWeight(this.index),{circumference:c,rotation:f}=this._getRotationExtents(),{ratioX:d,ratioY:h,offsetX:p,offsetY:b}=function(t,e,r){let o=1,i=1,a=0,s=0;if(e<n.T){const l=t,u=l+e,c=Math.cos(l),f=Math.sin(l),d=Math.cos(u),h=Math.sin(u),p=(t,e,o)=>(0,n.p)(t,l,u,!0)?1:Math.max(e,e*r,o,o*r),b=(t,e,o)=>(0,n.p)(t,l,u,!0)?-1:Math.min(e,e*r,o,o*r),g=p(0,c,d),m=p(n.H,f,h),y=b(n.P,c,d),v=b(n.P+n.H,f,h);o=(g-y)/2,i=(m-v)/2,a=-(g+y)/2,s=-(m+v)/2}return{ratioX:o,ratioY:i,offsetX:a,offsetY:s}}(f,c,l),g=(r.width-a)/d,m=(r.height-a)/h,y=Math.max(Math.min(g,m)/2,0),v=(0,n.n)(this.options.radius,y),x=(v-Math.max(v*l,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*v,this.offsetY=b*v,o.total=this.calculateTotal(),this.outerRadius=v-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*u,0),this.updateElements(i,0,i.length,t)}_circumference(t,e){const r=this.options,o=this._cachedMeta,i=this._getCircumference();return e&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||null===o._parsed[t]||o.data[t].hidden?0:this.calculateCircumference(o._parsed[t]*i/n.T)}updateElements(t,e,r,n){const o="reset"===n,i=this.chart,a=i.chartArea,s=i.options.animation,l=(a.left+a.right)/2,u=(a.top+a.bottom)/2,c=o&&s.animateScale,f=c?0:this.innerRadius,d=c?0:this.outerRadius,{sharedOptions:h,includeOptions:p}=this._getSharedOptions(e,n);let b,g=this._getRotation();for(b=0;b<e;++b)g+=this._circumference(b,o);for(b=e;b<e+r;++b){const e=this._circumference(b,o),r=t[b],i={x:l+this.offsetX,y:u+this.offsetY,startAngle:g,endAngle:g+e,circumference:e,outerRadius:d,innerRadius:f};p&&(i.options=h||this.resolveDataElementOptions(b,r.active?"active":n)),g+=e,this.updateElement(r,b,i,n)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let r,n=0;for(r=0;r<e.length;r++){const o=t._parsed[r];null===o||isNaN(o)||!this.chart.getDataVisibility(r)||e[r].hidden||(n+=Math.abs(o))}return n}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?n.T*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,r=this.chart,o=r.data.labels||[],i=(0,n.o)(e._parsed[t],r.options.locale);return{label:o[t]||"",value:i}}getMaxBorderWidth(t){let e=0;const r=this.chart;let n,o,i,a,s;if(!t)for(n=0,o=r.data.datasets.length;n<o;++n)if(r.isDatasetVisible(n)){i=r.getDatasetMeta(n),t=i.data,a=i.controller;break}if(!t)return 0;for(n=0,o=t.length;n<o;++n)s=a.resolveDataElementOptions(n),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let r=0,n=t.length;r<n;++r){const t=this.resolveDataElementOptions(r);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(e+=this._getRingWeight(r));return e}_getRingWeight(t){return Math.max((0,n.v)(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class I extends w{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:r,data:o=[],_dataset:i}=e,a=this.chart._animationsDisabled;let{start:s,count:l}=(0,n.q)(e,o,a);this._drawStart=s,this._drawCount=l,(0,n.w)(e)&&(s=0,l=o.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!i._decimated,r.points=o;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:u},t),this.updateElements(o,s,l,t)}updateElements(t,e,r,o){const i="reset"===o,{iScale:a,vScale:s,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:f}=this._getSharedOptions(e,o),d=a.axis,h=s.axis,{spanGaps:p,segment:b}=this.options,g=(0,n.x)(p)?p:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||i||"none"===o,y=e+r,v=t.length;let x=e>0&&this.getParsed(e-1);for(let w=0;w<v;++w){const r=t[w],p=m?r:{};if(w<e||w>=y){p.skip=!0;continue}const v=this.getParsed(w),j=(0,n.k)(v[h]),O=p[d]=a.getPixelForValue(v[d],w),_=p[h]=i||j?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,v,l):v[h],w);p.skip=isNaN(O)||isNaN(_)||j,p.stop=w>0&&Math.abs(v[d]-x[d])>g,b&&(p.parsed=v,p.raw=u.data[w]),f&&(p.options=c||this.resolveDataElementOptions(w,r.active?"active":o)),m||this.updateElement(r,w,p,o),x=v}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,r=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return r;const o=n[0].size(this.resolveDataElementOptions(0)),i=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(r,o,i)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}class E extends w{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:r,color:n}}=t.legend.options;return e.labels.map((e,o)=>{const i=t.getDatasetMeta(0).controller.getStyle(o);return{text:e,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:n,lineWidth:i.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,e,r){r.chart.toggleDataVisibility(e.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,r=this.chart,o=r.data.labels||[],i=(0,n.o)(e._parsed[t].r,r.options.locale);return{label:o[t]||"",value:i}}parseObjectData(t,e,r,o){return n.y.bind(this)(t,e,r,o)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,r)=>{const n=this.getParsed(r).r;!isNaN(n)&&this.chart.getDataVisibility(r)&&(n<e.min&&(e.min=n),n>e.max&&(e.max=n))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,r=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(n/2,0),i=(o-Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=o-i*this.index,this.innerRadius=this.outerRadius-i}updateElements(t,e,r,o){const i="reset"===o,a=this.chart,s=a.options.animation,l=this._cachedMeta.rScale,u=l.xCenter,c=l.yCenter,f=l.getIndexAngle(0)-.5*n.P;let d,h=f;const p=360/this.countVisibleElements();for(d=0;d<e;++d)h+=this._computeAngle(d,o,p);for(d=e;d<e+r;d++){const e=t[d];let r=h,n=h+this._computeAngle(d,o,p),b=a.getDataVisibility(d)?l.getDistanceFromCenterForValue(this.getParsed(d).r):0;h=n,i&&(s.animateScale&&(b=0),s.animateRotate&&(r=n=f));const g={x:u,y:c,innerRadius:0,outerRadius:b,startAngle:r,endAngle:n,options:this.resolveDataElementOptions(d,e.active?"active":o)};this.updateElement(e,d,g,o)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((t,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&e++}),e}_computeAngle(t,e,r){return this.chart.getDataVisibility(t)?(0,n.t)(this.resolveDataElementOptions(t,e).angle||r):0}}class F extends T{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}var L=Object.freeze({__proto__:null,BarController:A,BubbleController:D,DoughnutController:T,LineController:I,PieController:F,PolarAreaController:E,RadarController:class extends w{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,r=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(r[e.axis])}}parseObjectData(t,e,r,o){return n.y.bind(this)(t,e,r,o)}update(t){const e=this._cachedMeta,r=e.dataset,n=e.data||[],o=e.iScale.getLabels();if(r.points=n,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const i={_loop:!0,_fullLoop:o.length===n.length,options:e};this.updateElement(r,void 0,i,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,r,n){const o=this._cachedMeta.rScale,i="reset"===n;for(let a=e;a<e+r;a++){const e=t[a],r=this.resolveDataElementOptions(a,e.active?"active":n),s=o.getPointPositionForValue(a,this.getParsed(a).r),l=i?o.xCenter:s.x,u=i?o.yCenter:s.y,c={x:l,y:u,angle:s.angle,skip:isNaN(l)||isNaN(u),options:r};this.updateElement(e,a,c,n)}}},ScatterController:class extends w{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const e=this._cachedMeta,r=this.chart.data.labels||[],{xScale:n,yScale:o}=e,i=this.getParsed(t),a=n.getLabelForValue(i.x),s=o.getLabelForValue(i.y);return{label:r[t]||"",value:"("+a+", "+s+")"}}update(t){const e=this._cachedMeta,{data:r=[]}=e,o=this.chart._animationsDisabled;let{start:i,count:a}=(0,n.q)(e,r,o);if(this._drawStart=i,this._drawCount=a,(0,n.w)(e)&&(i=0,a=r.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:n,_dataset:i}=e;n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!i._decimated,n.points=r;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(n,void 0,{animated:!o,options:a},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(r,i,a,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,r,o){const i="reset"===o,{iScale:a,vScale:s,_stacked:l,_dataset:u}=this._cachedMeta,c=this.resolveDataElementOptions(e,o),f=this.getSharedOptions(c),d=this.includeOptions(o,f),h=a.axis,p=s.axis,{spanGaps:b,segment:g}=this.options,m=(0,n.x)(b)?b:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||i||"none"===o;let v=e>0&&this.getParsed(e-1);for(let x=e;x<e+r;++x){const e=t[x],r=this.getParsed(x),c=y?e:{},b=(0,n.k)(r[p]),w=c[h]=a.getPixelForValue(r[h],x),j=c[p]=i||b?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,r,l):r[p],x);c.skip=isNaN(w)||isNaN(j)||b,c.stop=x>0&&Math.abs(r[h]-v[h])>m,g&&(c.parsed=r,c.raw=u.data[x]),d&&(c.options=f||this.resolveDataElementOptions(x,e.active?"active":o)),y||this.updateElement(e,x,c,o),v=r}this.updateSharedOptions(f,o,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let r=e.length-1;r>=0;--r)t=Math.max(t,e[r].size(this.resolveDataElementOptions(r))/2);return t>0&&t}const r=t.dataset,n=r.options&&r.options.borderWidth||0;if(!e.length)return n;const o=e[0].size(this.resolveDataElementOptions(0)),i=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,o,i)/2}}});function z(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class N{static override(t){Object.assign(N.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return z()}parse(){return z()}format(){return z()}add(){return z()}diff(){return z()}startOf(){return z()}endOf(){return z()}}var V={_date:N};function B(t,e,r,o){const{controller:i,data:a,_sorted:s}=t,l=i._cachedMeta.iScale,u=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(l&&e===l.axis&&"r"!==e&&s&&a.length){const s=l._reversePixels?n.A:n.B;if(!o){const o=s(a,e,r);if(u){const{vScale:e}=i._cachedMeta,{_parsed:r}=t,a=r.slice(0,o.lo+1).reverse().findIndex(t=>!(0,n.k)(t[e.axis]));o.lo-=Math.max(0,a);const s=r.slice(o.hi).findIndex(t=>!(0,n.k)(t[e.axis]));o.hi+=Math.max(0,s)}return o}if(i._sharedOptions){const t=a[0],n="function"===typeof t.getRange&&t.getRange(e);if(n){const t=s(a,e,r-n),o=s(a,e,r+n);return{lo:t.lo,hi:o.hi}}}}return{lo:0,hi:a.length-1}}function R(t,e,r,n,o){const i=t.getSortedVisibleDatasetMetas(),a=r[e];for(let s=0,l=i.length;s<l;++s){const{index:t,data:r}=i[s],{lo:l,hi:u}=B(i[s],e,a,o);for(let e=l;e<=u;++e){const o=r[e];o.skip||n(o,t,e)}}}function W(t,e,r,o,i){const a=[];if(!i&&!t.isPointInArea(e))return a;return R(t,r,e,function(r,s,l){(i||(0,n.C)(r,t.chartArea,0))&&r.inRange(e.x,e.y,o)&&a.push({element:r,datasetIndex:s,index:l})},!0),a}function H(t,e,r,n,o,i){let a=[];const s=function(t){const e=-1!==t.indexOf("x"),r=-1!==t.indexOf("y");return function(t,n){const o=e?Math.abs(t.x-n.x):0,i=r?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(i,2))}}(r);let l=Number.POSITIVE_INFINITY;return R(t,r,e,function(r,u,c){const f=r.inRange(e.x,e.y,o);if(n&&!f)return;const d=r.getCenterPoint(o);if(!(!!i||t.isPointInArea(d))&&!f)return;const h=s(e,d);h<l?(a=[{element:r,datasetIndex:u,index:c}],l=h):h===l&&a.push({element:r,datasetIndex:u,index:c})}),a}function U(t,e,r,o,i,a){return a||t.isPointInArea(e)?"r"!==r||o?H(t,e,r,o,i,a):function(t,e,r,o){let i=[];return R(t,r,e,function(t,r,a){const{startAngle:s,endAngle:l}=t.getProps(["startAngle","endAngle"],o),{angle:u}=(0,n.D)(t,{x:e.x,y:e.y});(0,n.p)(u,s,l)&&i.push({element:t,datasetIndex:r,index:a})}),i}(t,e,r,i):[]}function K(t,e,r,n,o){const i=[],a="x"===r?"inXRange":"inYRange";let s=!1;return R(t,r,e,(t,n,l)=>{t[a]&&t[a](e[r],o)&&(i.push({element:t,datasetIndex:n,index:l}),s=s||t.inRange(e.x,e.y,o))}),n&&!s?[]:i}var $={evaluateInteractionItems:R,modes:{index(t,e,r,o){const i=(0,n.z)(e,t),a=r.axis||"x",s=r.includeInvisible||!1,l=r.intersect?W(t,i,a,o,s):U(t,i,a,!1,o,s),u=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=l[0].index,r=t.data[e];r&&!r.skip&&u.push({element:r,datasetIndex:t.index,index:e})}),u):[]},dataset(t,e,r,o){const i=(0,n.z)(e,t),a=r.axis||"xy",s=r.includeInvisible||!1;let l=r.intersect?W(t,i,a,o,s):U(t,i,a,!1,o,s);if(l.length>0){const e=l[0].datasetIndex,r=t.getDatasetMeta(e).data;l=[];for(let t=0;t<r.length;++t)l.push({element:r[t],datasetIndex:e,index:t})}return l},point:(t,e,r,o)=>W(t,(0,n.z)(e,t),r.axis||"xy",o,r.includeInvisible||!1),nearest(t,e,r,o){const i=(0,n.z)(e,t),a=r.axis||"xy",s=r.includeInvisible||!1;return U(t,i,a,r.intersect,o,s)},x:(t,e,r,o)=>K(t,(0,n.z)(e,t),"x",r.intersect,o),y:(t,e,r,o)=>K(t,(0,n.z)(e,t),"y",r.intersect,o)}};const q=["left","top","right","bottom"];function Y(t,e){return t.filter(t=>t.pos===e)}function G(t,e){return t.filter(t=>-1===q.indexOf(t.pos)&&t.box.axis===e)}function X(t,e){return t.sort((t,r)=>{const n=e?r:t,o=e?t:r;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function Q(t,e){const r=function(t){const e={};for(const r of t){const{stack:t,pos:n,stackWeight:o}=r;if(!t||!q.includes(n))continue;const i=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=o}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:o}=e;let i,a,s;for(i=0,a=t.length;i<a;++i){s=t[i];const{fullSize:a}=s.box,l=r[s.stack],u=l&&s.stackWeight/l.weight;s.horizontal?(s.width=u?u*n:a&&e.availableWidth,s.height=o):(s.width=n,s.height=u?u*o:a&&e.availableHeight)}return r}function Z(t,e,r,n){return Math.max(t[r],e[r])+Math.max(t[n],e[n])}function J(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function tt(t,e,r,o){const{pos:i,box:a}=r,s=t.maxPadding;if(!(0,n.i)(i)){r.size&&(t[i]-=r.size);const e=o[r.stack]||{size:0,count:1};e.size=Math.max(e.size,r.horizontal?a.height:a.width),r.size=e.size/e.count,t[i]+=r.size}a.getPadding&&J(s,a.getPadding());const l=Math.max(0,e.outerWidth-Z(s,t,"left","right")),u=Math.max(0,e.outerHeight-Z(s,t,"top","bottom")),c=l!==t.w,f=u!==t.h;return t.w=l,t.h=u,r.horizontal?{same:c,other:f}:{same:f,other:c}}function et(t,e){const r=e.maxPadding;function n(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{n[t]=Math.max(e[t],r[t])}),n}return n(t?["left","right"]:["top","bottom"])}function rt(t,e,r,n){const o=[];let i,a,s,l,u,c;for(i=0,a=t.length,u=0;i<a;++i){s=t[i],l=s.box,l.update(s.width||e.w,s.height||e.h,et(s.horizontal,e));const{same:a,other:f}=tt(e,r,s,n);u|=a&&o.length,c=c||f,l.fullSize||o.push(s)}return u&&rt(o,e,r,n)||c}function nt(t,e,r,n,o){t.top=r,t.left=e,t.right=e+n,t.bottom=r+o,t.width=n,t.height=o}function ot(t,e,r,o){const i=r.padding;let{x:a,y:s}=e;for(const l of t){const t=l.box,u=o[l.stack]||{count:1,placed:0,weight:1},c=l.stackWeight/u.weight||1;if(l.horizontal){const o=e.w*c,a=u.size||t.height;(0,n.h)(u.start)&&(s=u.start),t.fullSize?nt(t,i.left,s,r.outerWidth-i.right-i.left,a):nt(t,e.left+u.placed,s,o,a),u.start=s,u.placed+=o,s=t.bottom}else{const o=e.h*c,s=u.size||t.width;(0,n.h)(u.start)&&(a=u.start),t.fullSize?nt(t,a,i.top,s,r.outerHeight-i.bottom-i.top):nt(t,a,e.top+u.placed,s,o),u.start=a,u.placed+=o,a=t.right}}e.x=a,e.y=s}var it={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const r=t.boxes?t.boxes.indexOf(e):-1;-1!==r&&t.boxes.splice(r,1)},configure(t,e,r){e.fullSize=r.fullSize,e.position=r.position,e.weight=r.weight},update(t,e,r,o){if(!t)return;const i=(0,n.E)(t.options.layout.padding),a=Math.max(e-i.width,0),s=Math.max(r-i.height,0),l=function(t){const e=function(t){const e=[];let r,n,o,i,a,s;for(r=0,n=(t||[]).length;r<n;++r)o=t[r],({position:i,options:{stack:a,stackWeight:s=1}}=o),e.push({index:r,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&i+a,stackWeight:s});return e}(t),r=X(e.filter(t=>t.box.fullSize),!0),n=X(Y(e,"left"),!0),o=X(Y(e,"right")),i=X(Y(e,"top"),!0),a=X(Y(e,"bottom")),s=G(e,"x"),l=G(e,"y");return{fullSize:r,leftAndTop:n.concat(i),rightAndBottom:o.concat(l).concat(a).concat(s),chartArea:Y(e,"chartArea"),vertical:n.concat(o).concat(l),horizontal:i.concat(a).concat(s)}}(t.boxes),u=l.vertical,c=l.horizontal;(0,n.F)(t.boxes,t=>{"function"===typeof t.beforeLayout&&t.beforeLayout()});const f=u.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:r,padding:i,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/f,hBoxMaxHeight:s/2}),h=Object.assign({},i);J(h,(0,n.E)(o));const p=Object.assign({maxPadding:h,w:a,h:s,x:i.left,y:i.top},i),b=Q(u.concat(c),d);rt(l.fullSize,p,d,b),rt(u,p,d,b),rt(c,p,d,b)&&rt(u,p,d,b),function(t){const e=t.maxPadding;function r(r){const n=Math.max(e[r]-t[r],0);return t[r]+=n,n}t.y+=r("top"),t.x+=r("left"),r("right"),r("bottom")}(p),ot(l.leftAndTop,p,d,b),p.x+=p.w,p.y+=p.h,ot(l.rightAndBottom,p,d,b),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},(0,n.F)(l.chartArea,e=>{const r=e.box;Object.assign(r,t.chartArea),r.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class at{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,r){}removeEventListener(t,e,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,r,n){return e=Math.max(0,e||t.width),r=r||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):r)}}isAttached(t){return!0}updateConfig(t){}}class st extends at{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const lt="$chartjs",ut={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ct=t=>null===t||""===t;const ft=!!n.K&&{passive:!0};function dt(t,e,r){t&&t.canvas&&t.canvas.removeEventListener(e,r,ft)}function ht(t,e){for(const r of t)if(r===e||r.contains(e))return!0}function pt(t,e,r){const n=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const r of t)e=e||ht(r.addedNodes,n),e=e&&!ht(r.removedNodes,n);e&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}function bt(t,e,r){const n=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const r of t)e=e||ht(r.removedNodes,n),e=e&&!ht(r.addedNodes,n);e&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}const gt=new Map;let mt=0;function yt(){const t=window.devicePixelRatio;t!==mt&&(mt=t,gt.forEach((e,r)=>{r.currentDevicePixelRatio!==t&&e()}))}function vt(t,e,r){const o=t.canvas,i=o&&(0,n.I)(o);if(!i)return;const a=(0,n.L)((t,e)=>{const n=i.clientWidth;r(t,e),n<i.clientWidth&&r()},window),s=new ResizeObserver(t=>{const e=t[0],r=e.contentRect.width,n=e.contentRect.height;0===r&&0===n||a(r,n)});return s.observe(i),function(t,e){gt.size||window.addEventListener("resize",yt),gt.set(t,e)}(t,a),s}function xt(t,e,r){r&&r.disconnect(),"resize"===e&&function(t){gt.delete(t),gt.size||window.removeEventListener("resize",yt)}(t)}function wt(t,e,r){const o=t.canvas,i=(0,n.L)(e=>{null!==t.ctx&&r(function(t,e){const r=ut[t.type]||t.type,{x:o,y:i}=(0,n.z)(t,e);return{type:r,chart:e,native:t,x:void 0!==o?o:null,y:void 0!==i?i:null}}(e,t))},t);return function(t,e,r){t&&t.addEventListener(e,r,ft)}(o,e,i),i}class jt extends at{acquireContext(t,e){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(function(t,e){const r=t.style,o=t.getAttribute("height"),i=t.getAttribute("width");if(t[lt]={initial:{height:o,width:i,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",r.boxSizing=r.boxSizing||"border-box",ct(i)){const e=(0,n.J)(t,"width");void 0!==e&&(t.width=e)}if(ct(o))if(""===t.style.height)t.height=t.width/(e||2);else{const e=(0,n.J)(t,"height");void 0!==e&&(t.height=e)}}(t,e),r):null}releaseContext(t){const e=t.canvas;if(!e[lt])return!1;const r=e[lt].initial;["height","width"].forEach(t=>{const o=r[t];(0,n.k)(o)?e.removeAttribute(t):e.setAttribute(t,o)});const o=r.style||{};return Object.keys(o).forEach(t=>{e.style[t]=o[t]}),e.width=e.width,delete e[lt],!0}addEventListener(t,e,r){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),o={attach:pt,detach:bt,resize:vt}[e]||wt;n[e]=o(t,e,r)}removeEventListener(t,e){const r=t.$proxies||(t.$proxies={}),n=r[e];if(!n)return;({attach:xt,detach:xt,resize:xt}[e]||dt)(t,e,n),r[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,r,o){return(0,n.G)(t,e,r,o)}isAttached(t){const e=t&&(0,n.I)(t);return!(!e||!e.isConnected)}}class Ot{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:r}=this.getProps(["x","y"],t);return{x:e,y:r}}hasValue(){return(0,n.x)(this.x)&&(0,n.x)(this.y)}getProps(t,e){const r=this.$animations;if(!e||!r)return this;const n={};return t.forEach(t=>{n[t]=r[t]&&r[t].active()?r[t]._to:this[t]}),n}}function _t(t,e){const r=t.options.ticks,o=function(t){const e=t.options.offset,r=t._tickSize(),n=t._length/r+(e?0:1),o=t._maxLength/r;return Math.floor(Math.min(n,o))}(t),i=Math.min(r.maxTicksLimit||o,o),a=r.major.enabled?function(t){const e=[];let r,n;for(r=0,n=t.length;r<n;r++)t[r].major&&e.push(r);return e}(e):[],s=a.length,l=a[0],u=a[s-1],c=[];if(s>i)return function(t,e,r,n){let o,i=0,a=r[0];for(n=Math.ceil(n),o=0;o<t.length;o++)o===a&&(e.push(t[o]),i++,a=r[i*n])}(e,c,a,s/i),c;const f=function(t,e,r){const o=function(t){const e=t.length;let r,n;if(e<2)return!1;for(n=t[0],r=1;r<e;++r)if(t[r]-t[r-1]!==n)return!1;return n}(t),i=e.length/r;if(!o)return Math.max(i,1);const a=(0,n.N)(o);for(let n=0,s=a.length-1;n<s;n++){const t=a[n];if(t>i)return t}return Math.max(i,1)}(a,e,i);if(s>0){let t,r;const o=s>1?Math.round((u-l)/(s-1)):null;for(St(e,c,f,(0,n.k)(o)?0:l-o,l),t=0,r=s-1;t<r;t++)St(e,c,f,a[t],a[t+1]);return St(e,c,f,u,(0,n.k)(o)?e.length:u+o),c}return St(e,c,f),c}function St(t,e,r,o,i){const a=(0,n.v)(o,0),s=Math.min((0,n.v)(i,t.length),t.length);let l,u,c,f=0;for(r=Math.ceil(r),i&&(l=i-o,r=l/Math.floor(l/r)),c=a;c<0;)f++,c=Math.round(a+f*r);for(u=Math.max(a,0);u<s;u++)u===c&&(e.push(t[u]),f++,c=Math.round(a+f*r))}const Pt=(t,e,r)=>"top"===e||"left"===e?t[e]+r:t[e]-r,Mt=(t,e)=>Math.min(e||t,t);function kt(t,e){const r=[],n=t.length/e,o=t.length;let i=0;for(;i<o;i+=n)r.push(t[Math.floor(i)]);return r}function Ct(t,e,r){const n=t.ticks.length,o=Math.min(e,n-1),i=t._startPixel,a=t._endPixel,s=1e-6;let l,u=t.getPixelForTick(o);if(!(r&&(l=1===n?Math.max(u-i,a-u):0===e?(t.getPixelForTick(1)-u)/2:(u-t.getPixelForTick(o-1))/2,u+=o<e?l:-l,u<i-s||u>a+s)))return u}function At(t){return t.drawTicks?t.tickLength:0}function Dt(t,e){if(!t.display)return 0;const r=(0,n.a0)(t.font,e),o=(0,n.E)(t.padding);return((0,n.b)(t.text)?t.text.length:1)*r.lineHeight+o.height}function Tt(t,e,r){let o=(0,n.a1)(t);return(r&&"right"!==e||!r&&"right"===e)&&(o=(t=>"left"===t?"right":"right"===t?"left":t)(o)),o}class It extends Ot{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:r,_suggestedMax:o}=this;return t=(0,n.O)(t,Number.POSITIVE_INFINITY),e=(0,n.O)(e,Number.NEGATIVE_INFINITY),r=(0,n.O)(r,Number.POSITIVE_INFINITY),o=(0,n.O)(o,Number.NEGATIVE_INFINITY),{min:(0,n.O)(t,r),max:(0,n.O)(e,o),minDefined:(0,n.g)(t),maxDefined:(0,n.g)(e)}}getMinMax(t){let e,{min:r,max:o,minDefined:i,maxDefined:a}=this.getUserBounds();if(i&&a)return{min:r,max:o};const s=this.getMatchingVisibleMetas();for(let n=0,l=s.length;n<l;++n)e=s[n].controller.getMinMax(this,t),i||(r=Math.min(r,e.min)),a||(o=Math.max(o,e.max));return r=a&&r>o?o:r,o=i&&r>o?r:o,{min:(0,n.O)(r,(0,n.O)(o,r)),max:(0,n.O)(o,(0,n.O)(r,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,n.Q)(this.options.beforeUpdate,[this])}update(t,e,r){const{beginAtZero:o,grace:i,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,n.R)(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?kt(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=_t(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,r=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,r=!r),this._startPixel=t,this._endPixel=e,this._reversePixels=r,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){(0,n.Q)(this.options.afterUpdate,[this])}beforeSetDimensions(){(0,n.Q)(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){(0,n.Q)(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),(0,n.Q)(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){(0,n.Q)(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let r,o,i;for(r=0,o=t.length;r<o;r++)i=t[r],i.label=(0,n.Q)(e.callback,[i.value,r,t],this)}afterTickToLabelConversion(){(0,n.Q)(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){(0,n.Q)(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,r=Mt(this.ticks.length,t.ticks.maxTicksLimit),o=e.minRotation||0,i=e.maxRotation;let a,s,l,u=o;if(!this._isVisible()||!e.display||o>=i||r<=1||!this.isHorizontal())return void(this.labelRotation=o);const c=this._getLabelSizes(),f=c.widest.width,d=c.highest.height,h=(0,n.S)(this.chart.width-f,0,this.maxWidth);a=t.offset?this.maxWidth/r:h/(r-1),f+6>a&&(a=h/(r-(t.offset?.5:1)),s=this.maxHeight-At(t.grid)-e.padding-Dt(t.title,this.chart.options.font),l=Math.sqrt(f*f+d*d),u=(0,n.U)(Math.min(Math.asin((0,n.S)((c.highest.height+6)/a,-1,1)),Math.asin((0,n.S)(s/l,-1,1))-Math.asin((0,n.S)(d/l,-1,1)))),u=Math.max(o,Math.min(i,u))),this.labelRotation=u}afterCalculateLabelRotation(){(0,n.Q)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){(0,n.Q)(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:r,title:o,grid:i}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const a=Dt(o,e.options.font);if(s?(t.width=this.maxWidth,t.height=At(i)+a):(t.height=this.maxHeight,t.width=At(i)+a),r.display&&this.ticks.length){const{first:e,last:o,widest:i,highest:a}=this._getLabelSizes(),l=2*r.padding,u=(0,n.t)(this.labelRotation),c=Math.cos(u),f=Math.sin(u);if(s){const e=r.mirror?0:f*i.width+c*a.height;t.height=Math.min(this.maxHeight,t.height+e+l)}else{const e=r.mirror?0:c*i.width+f*a.height;t.width=Math.min(this.maxWidth,t.width+e+l)}this._calculatePadding(e,o,f,c)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,r,n){const{ticks:{align:o,padding:i},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,f=0;s?l?(c=n*t.width,f=r*e.height):(c=r*t.height,f=n*e.width):"start"===o?f=e.width:"end"===o?c=t.width:"inner"!==o&&(c=t.width/2,f=e.width/2),this.paddingLeft=Math.max((c-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((f-u+i)*this.width/(this.width-u),0)}else{let r=e.height/2,n=t.height/2;"start"===o?(r=0,n=t.height):"end"===o&&(r=e.height,n=0),this.paddingTop=r+i,this.paddingBottom=n+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){(0,n.Q)(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,r;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,r=t.length;e<r;e++)(0,n.k)(t[e].label)&&(t.splice(e,1),r--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let r=this.ticks;e<r.length&&(r=kt(r,e)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,r){const{ctx:o,_longestTextCache:i}=this,a=[],s=[],l=Math.floor(e/Mt(e,r));let u,c,f,d,h,p,b,g,m,y,v,x=0,w=0;for(u=0;u<e;u+=l){if(d=t[u].label,h=this._resolveTickFontOptions(u),o.font=p=h.string,b=i[p]=i[p]||{data:{},gc:[]},g=h.lineHeight,m=y=0,(0,n.k)(d)||(0,n.b)(d)){if((0,n.b)(d))for(c=0,f=d.length;c<f;++c)v=d[c],(0,n.k)(v)||(0,n.b)(v)||(m=(0,n.V)(o,b.data,b.gc,m,v),y+=g)}else m=(0,n.V)(o,b.data,b.gc,m,d),y=g;a.push(m),s.push(y),x=Math.max(m,x),w=Math.max(y,w)}!function(t,e){(0,n.F)(t,t=>{const r=t.gc,n=r.length/2;let o;if(n>e){for(o=0;o<n;++o)delete t.data[r[o]];r.splice(0,n)}})}(i,e);const j=a.indexOf(x),O=s.indexOf(w),_=t=>({width:a[t]||0,height:s[t]||0});return{first:_(0),last:_(e-1),widest:_(j),highest:_(O),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return(0,n.W)(this._alignToPixels?(0,n.X)(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const r=e[t];return r.$context||(r.$context=function(t,e,r){return(0,n.j)(t,{tick:r,index:e,type:"tick"})}(this.getContext(),t,r))}return this.$context||(this.$context=(r=this.chart.getContext(),o=this,(0,n.j)(r,{scale:o,type:"scale"})));var r,o}_tickSize(){const t=this.options.ticks,e=(0,n.t)(this.labelRotation),r=Math.abs(Math.cos(e)),o=Math.abs(Math.sin(e)),i=this._getLabelSizes(),a=t.autoSkipPadding||0,s=i?i.widest.width+a:0,l=i?i.highest.height+a:0;return this.isHorizontal()?l*r>s*o?s/r:l/o:l*o<s*r?l/r:s/o}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,r=this.chart,o=this.options,{grid:i,position:a,border:s}=o,l=i.offset,u=this.isHorizontal(),c=this.ticks.length+(l?1:0),f=At(i),d=[],h=s.setContext(this.getContext()),p=h.display?h.width:0,b=p/2,g=function(t){return(0,n.X)(r,t,p)};let m,y,v,x,w,j,O,_,S,P,M,k;if("top"===a)m=g(this.bottom),j=this.bottom-f,_=m-b,P=g(t.top)+b,k=t.bottom;else if("bottom"===a)m=g(this.top),P=t.top,k=g(t.bottom)-b,j=m+b,_=this.top+f;else if("left"===a)m=g(this.right),w=this.right-f,O=m-b,S=g(t.left)+b,M=t.right;else if("right"===a)m=g(this.left),S=t.left,M=g(t.right)-b,w=m+b,O=this.left+f;else if("x"===e){if("center"===a)m=g((t.top+t.bottom)/2+.5);else if((0,n.i)(a)){const t=Object.keys(a)[0],e=a[t];m=g(this.chart.scales[t].getPixelForValue(e))}P=t.top,k=t.bottom,j=m+b,_=j+f}else if("y"===e){if("center"===a)m=g((t.left+t.right)/2);else if((0,n.i)(a)){const t=Object.keys(a)[0],e=a[t];m=g(this.chart.scales[t].getPixelForValue(e))}w=m-b,O=w-f,S=t.left,M=t.right}const C=(0,n.v)(o.ticks.maxTicksLimit,c),A=Math.max(1,Math.ceil(c/C));for(y=0;y<c;y+=A){const t=this.getContext(y),e=i.setContext(t),o=s.setContext(t),a=e.lineWidth,c=e.color,f=o.dash||[],h=o.dashOffset,p=e.tickWidth,b=e.tickColor,g=e.tickBorderDash||[],m=e.tickBorderDashOffset;v=Ct(this,y,l),void 0!==v&&(x=(0,n.X)(r,v,a),u?w=O=S=M=x:j=_=P=k=x,d.push({tx1:w,ty1:j,tx2:O,ty2:_,x1:S,y1:P,x2:M,y2:k,width:a,color:c,borderDash:f,borderDashOffset:h,tickWidth:p,tickColor:b,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=c,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,r=this.options,{position:o,ticks:i}=r,a=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:u,padding:c,mirror:f}=i,d=At(r.grid),h=d+c,p=f?-c:h,b=-(0,n.t)(this.labelRotation),g=[];let m,y,v,x,w,j,O,_,S,P,M,k,C="middle";if("top"===o)j=this.bottom-p,O=this._getXAxisLabelAlignment();else if("bottom"===o)j=this.top+p,O=this._getXAxisLabelAlignment();else if("left"===o){const t=this._getYAxisLabelAlignment(d);O=t.textAlign,w=t.x}else if("right"===o){const t=this._getYAxisLabelAlignment(d);O=t.textAlign,w=t.x}else if("x"===e){if("center"===o)j=(t.top+t.bottom)/2+h;else if((0,n.i)(o)){const t=Object.keys(o)[0],e=o[t];j=this.chart.scales[t].getPixelForValue(e)+h}O=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===o)w=(t.left+t.right)/2-h;else if((0,n.i)(o)){const t=Object.keys(o)[0],e=o[t];w=this.chart.scales[t].getPixelForValue(e)}O=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===l?C="top":"end"===l&&(C="bottom"));const A=this._getLabelSizes();for(m=0,y=s.length;m<y;++m){v=s[m],x=v.label;const t=i.setContext(this.getContext(m));_=this.getPixelForTick(m)+i.labelOffset,S=this._resolveTickFontOptions(m),P=S.lineHeight,M=(0,n.b)(x)?x.length:1;const e=M/2,r=t.color,l=t.textStrokeColor,c=t.textStrokeWidth;let d,h=O;if(a?(w=_,"inner"===O&&(h=m===y-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),k="top"===o?"near"===u||0!==b?-M*P+P/2:"center"===u?-A.highest.height/2-e*P+P:-A.highest.height+P/2:"near"===u||0!==b?P/2:"center"===u?A.highest.height/2-e*P:A.highest.height-M*P,f&&(k*=-1),0===b||t.showLabelBackdrop||(w+=P/2*Math.sin(b))):(j=_,k=(1-M)*P/2),t.showLabelBackdrop){const e=(0,n.E)(t.backdropPadding),r=A.heights[m],o=A.widths[m];let i=k-e.top,a=0-e.left;switch(C){case"middle":i-=r/2;break;case"bottom":i-=r}switch(O){case"center":a-=o/2;break;case"right":a-=o;break;case"inner":m===y-1?a-=o:m>0&&(a-=o/2)}d={left:a,top:i,width:o+e.width,height:r+e.height,color:t.backdropColor}}g.push({label:x,font:S,textOffset:k,options:{rotation:b,color:r,strokeColor:l,strokeWidth:c,textAlign:h,textBaseline:C,translation:[w,j],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-(0,n.t)(this.labelRotation))return"top"===t?"left":"right";let r="center";return"start"===e.align?r="left":"end"===e.align?r="right":"inner"===e.align&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:r,mirror:n,padding:o}}=this.options,i=t+o,a=this._getLabelSizes().widest.width;let s,l;return"left"===e?n?(l=this.right+o,"near"===r?s="left":"center"===r?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-i,"near"===r?s="right":"center"===r?(s="center",l-=a/2):(s="left",l=this.left)):"right"===e?n?(l=this.left+o,"near"===r?s="right":"center"===r?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+i,"near"===r?s="left":"center"===r?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:r,top:n,width:o,height:i}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(r,n,o,i),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const r=this.ticks.findIndex(e=>e.value===t);if(r>=0){return e.setContext(this.getContext(r)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,r=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,i;const a=(t,e,n)=>{n.width&&n.color&&(r.save(),r.lineWidth=n.width,r.strokeStyle=n.color,r.setLineDash(n.borderDash||[]),r.lineDashOffset=n.borderDashOffset,r.beginPath(),r.moveTo(t.x,t.y),r.lineTo(e.x,e.y),r.stroke(),r.restore())};if(e.display)for(o=0,i=n.length;o<i;++o){const t=n[o];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:r,grid:o}}=this,i=r.setContext(this.getContext()),a=r.display?i.width:0;if(!a)return;const s=o.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,f,d;this.isHorizontal()?(u=(0,n.X)(t,this.left,a)-a/2,c=(0,n.X)(t,this.right,s)+s/2,f=d=l):(f=(0,n.X)(t,this.top,a)-a/2,d=(0,n.X)(t,this.bottom,s)+s/2,u=c=l),e.save(),e.lineWidth=i.width,e.strokeStyle=i.color,e.beginPath(),e.moveTo(u,f),e.lineTo(c,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,r=this._computeLabelArea();r&&(0,n.Y)(e,r);const o=this.getLabelItems(t);for(const i of o){const t=i.options,r=i.font,o=i.label,a=i.textOffset;(0,n.Z)(e,o,0,a,r,t)}r&&(0,n.$)(e)}drawTitle(){const{ctx:t,options:{position:e,title:r,reverse:o}}=this;if(!r.display)return;const i=(0,n.a0)(r.font),a=(0,n.E)(r.padding),s=r.align;let l=i.lineHeight/2;"bottom"===e||"center"===e||(0,n.i)(e)?(l+=a.bottom,(0,n.b)(r.text)&&(l+=i.lineHeight*(r.text.length-1))):l+=a.top;const{titleX:u,titleY:c,maxWidth:f,rotation:d}=function(t,e,r,o){const{top:i,left:a,bottom:s,right:l,chart:u}=t,{chartArea:c,scales:f}=u;let d,h,p,b=0;const g=s-i,m=l-a;if(t.isHorizontal()){if(h=(0,n.a2)(o,a,l),(0,n.i)(r)){const t=Object.keys(r)[0],n=r[t];p=f[t].getPixelForValue(n)+g-e}else p="center"===r?(c.bottom+c.top)/2+g-e:Pt(t,r,e);d=l-a}else{if((0,n.i)(r)){const t=Object.keys(r)[0],n=r[t];h=f[t].getPixelForValue(n)-m+e}else h="center"===r?(c.left+c.right)/2-m+e:Pt(t,r,e);p=(0,n.a2)(o,s,i),b="left"===r?-n.H:n.H}return{titleX:h,titleY:p,maxWidth:d,rotation:b}}(this,l,e,s);(0,n.Z)(t,r.text,0,0,i,{color:r.color,maxWidth:f,rotation:d,textAlign:Tt(s,e,o),textBaseline:"middle",translation:[u,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,r=(0,n.v)(t.grid&&t.grid.z,-1),o=(0,n.v)(t.border&&t.border.z,0);return this._isVisible()&&this.draw===It.prototype.draw?[{z:r,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",n=[];let o,i;for(o=0,i=e.length;o<i;++o){const i=e[o];i[r]!==this.id||t&&i.type!==t||n.push(i)}return n}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return(0,n.a0)(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Et{constructor(t,e,r){this.type=t,this.scope=e,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let r;(function(t){return"id"in t&&"defaults"in t})(e)&&(r=this.register(e));const o=this.items,i=t.id,a=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in o||(o[i]=t,function(t,e,r){const o=(0,n.a4)(Object.create(null),[r?n.d.get(r):{},n.d.get(e),t.defaults]);n.d.set(e,o),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(r=>{const o=r.split("."),i=o.pop(),a=[t].concat(o).join("."),s=e[r].split("."),l=s.pop(),u=s.join(".");n.d.route(a,i,u,l)})}(e,t.defaultRoutes);t.descriptors&&n.d.describe(e,t.descriptors)}(t,a,r),this.override&&n.d.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,r=t.id,o=this.scope;r in e&&delete e[r],o&&r in n.d[o]&&(delete n.d[o][r],this.override&&delete n.a3[r])}}class Ft{constructor(){this.controllers=new Et(w,"datasets",!0),this.elements=new Et(Ot,"elements"),this.plugins=new Et(Object,"plugins"),this.scales=new Et(It,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,r){[...e].forEach(e=>{const o=r||this._getRegistryForType(e);r||o.isForType(e)||o===this.plugins&&e.id?this._exec(t,o,e):(0,n.F)(e,e=>{const n=r||this._getRegistryForType(e);this._exec(t,n,e)})})}_exec(t,e,r){const o=(0,n.a5)(t);(0,n.Q)(r["before"+o],[],r),e[t](r),(0,n.Q)(r["after"+o],[],r)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const r=this._typedRegistries[e];if(r.isForType(t))return r}return this.plugins}_get(t,e,r){const n=e.get(t);if(void 0===n)throw new Error('"'+t+'" is not a registered '+r+".");return n}}var Lt=new Ft;class zt{constructor(){this._init=void 0}notify(t,e,r,n){if("beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),void 0===this._init)return;const o=n?this._descriptors(t).filter(n):this._descriptors(t),i=this._notify(o,t,e,r);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),i}_notify(t,e,r,o){o=o||{};for(const i of t){const t=i.plugin,a=t[r],s=[e,o,i.options];if(!1===(0,n.Q)(a,s,t)&&o.cancelable)return!1}return!0}invalidate(){(0,n.k)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const r=t&&t.config,o=(0,n.v)(r.options&&r.options.plugins,{}),i=function(t){const e={},r=[],n=Object.keys(Lt.plugins.items);for(let i=0;i<n.length;i++)r.push(Lt.getPlugin(n[i]));const o=t.plugins||[];for(let i=0;i<o.length;i++){const t=o[i];-1===r.indexOf(t)&&(r.push(t),e[t.id]=!0)}return{plugins:r,localIds:e}}(r);return!1!==o||e?function(t,{plugins:e,localIds:r},n,o){const i=[],a=t.getContext();for(const s of e){const e=s.id,l=Nt(n[e],o);null!==l&&i.push({plugin:s,options:Vt(t.config,{plugin:s,local:r[e]},l,a)})}return i}(t,i,o,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],r=this._cache,n=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(n(e,r),t,"stop"),this._notify(n(r,e),t,"start")}}function Nt(t,e){return e||!1!==t?!0===t?{}:t:null}function Vt(t,{plugin:e,local:r},n,o){const i=t.pluginScopeKeys(e),a=t.getOptionScopes(n,i);return r&&e.defaults&&a.push(e.defaults),t.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Bt(t,e){const r=n.d.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||r.indexAxis||"x"}function Rt(t){if("x"===t||"y"===t||"r"===t)return t}function Wt(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}function Ht(t,...e){if(Rt(t))return t;for(const r of e){const e=r.axis||Wt(r.position)||t.length>1&&Rt(t[0].toLowerCase());if(e)return e}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Ut(t,e,r){if(r[e+"AxisID"]===t)return{axis:e}}function Kt(t,e){const r=n.a3[t.type]||{scales:{}},o=e.scales||{},i=Bt(t.type,e),a=Object.create(null);return Object.keys(o).forEach(e=>{const s=o[e];if(!(0,n.i)(s))return console.error(`Invalid scale configuration for scale: ${e}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const l=Ht(e,s,function(t,e){if(e.data&&e.data.datasets){const r=e.data.datasets.filter(e=>e.xAxisID===t||e.yAxisID===t);if(r.length)return Ut(t,"x",r[0])||Ut(t,"y",r[0])}return{}}(e,t),n.d.scales[s.type]),u=function(t,e){return t===e?"_index_":"_value_"}(l,i),c=r.scales||{};a[e]=(0,n.ab)(Object.create(null),[{axis:l},s,c[l],c[u]])}),t.data.datasets.forEach(r=>{const i=r.type||t.type,s=r.indexAxis||Bt(i,e),l=(n.a3[i]||{}).scales||{};Object.keys(l).forEach(t=>{const e=function(t,e){let r=t;return"_index_"===t?r=e:"_value_"===t&&(r="x"===e?"y":"x"),r}(t,s),i=r[e+"AxisID"]||e;a[i]=a[i]||Object.create(null),(0,n.ab)(a[i],[{axis:e},o[i],l[t]])})}),Object.keys(a).forEach(t=>{const e=a[t];(0,n.ab)(e,[n.d.scales[e.type],n.d.scale])}),a}function $t(t){const e=t.options||(t.options={});e.plugins=(0,n.v)(e.plugins,{}),e.scales=Kt(t,e)}function qt(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Yt=new Map,Gt=new Set;function Xt(t,e){let r=Yt.get(t);return r||(r=e(),Yt.set(t,r),Gt.add(r)),r}const Qt=(t,e,r)=>{const o=(0,n.f)(e,r);void 0!==o&&t.add(o)};class Zt{constructor(t){this._config=function(t){return(t=t||{}).data=qt(t.data),$t(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=qt(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),$t(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Xt(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return Xt(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return Xt(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return Xt(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const r=this._scopeCache;let n=r.get(t);return n&&!e||(n=new Map,r.set(t,n)),n}getOptionScopes(t,e,r){const{options:o,type:i}=this,a=this._cachedScopes(t,r),s=a.get(e);if(s)return s;const l=new Set;e.forEach(e=>{t&&(l.add(t),e.forEach(e=>Qt(l,t,e))),e.forEach(t=>Qt(l,o,t)),e.forEach(t=>Qt(l,n.a3[i]||{},t)),e.forEach(t=>Qt(l,n.d,t)),e.forEach(t=>Qt(l,n.a6,t))});const u=Array.from(l);return 0===u.length&&u.push(Object.create(null)),Gt.has(e)&&a.set(e,u),u}chartOptionScopes(){const{options:t,type:e}=this;return[t,n.a3[e]||{},n.d.datasets[e]||{},{type:e},n.d,n.a6]}resolveNamedOptions(t,e,r,o=[""]){const i={$shared:!0},{resolver:a,subPrefixes:s}=Jt(this._resolverCache,t,o);let l=a;if(function(t,e){const{isScriptable:r,isIndexable:o}=(0,n.aa)(t);for(const i of e){const e=r(i),a=o(i),s=(a||e)&&t[i];if(e&&((0,n.a7)(s)||te(s))||a&&(0,n.b)(s))return!0}return!1}(a,e)){i.$shared=!1,r=(0,n.a7)(r)?r():r;const e=this.createResolver(t,r,s);l=(0,n.a8)(a,r,e)}for(const n of e)i[n]=l[n];return i}createResolver(t,e,r=[""],o){const{resolver:i}=Jt(this._resolverCache,t,r);return(0,n.i)(e)?(0,n.a8)(i,e,void 0,o):i}}function Jt(t,e,r){let o=t.get(e);o||(o=new Map,t.set(e,o));const i=r.join();let a=o.get(i);if(!a){a={resolver:(0,n.a9)(e,r),subPrefixes:r.filter(t=>!t.toLowerCase().includes("hover"))},o.set(i,a)}return a}const te=t=>(0,n.i)(t)&&Object.getOwnPropertyNames(t).some(e=>(0,n.a7)(t[e]));const ee=["top","bottom","left","right","chartArea"];function re(t,e){return"top"===t||"bottom"===t||-1===ee.indexOf(t)&&"x"===e}function ne(t,e){return function(r,n){return r[t]===n[t]?r[e]-n[e]:r[t]-n[t]}}function oe(t){const e=t.chart,r=e.options.animation;e.notifyPlugins("afterRender"),(0,n.Q)(r&&r.onComplete,[t],e)}function ie(t){const e=t.chart,r=e.options.animation;(0,n.Q)(r&&r.onProgress,[t],e)}function ae(t){return(0,n.M)()&&"string"===typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const se={},le=t=>{const e=ae(t);return Object.values(se).filter(t=>t.canvas===e).pop()};function ue(t,e,r){const n=Object.keys(t);for(const o of n){const n=+o;if(n>=e){const i=t[o];delete t[o],(r>0||n>e)&&(t[n+r]=i)}}}class ce{static defaults=n.d;static instances=se;static overrides=n.a3;static registry=Lt;static version="4.5.1";static getChart=le;static register(...t){Lt.add(...t),fe()}static unregister(...t){Lt.remove(...t),fe()}constructor(t,e){const r=this.config=new Zt(e),o=ae(t),a=le(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||function(t){return!(0,n.M)()||"undefined"!==typeof OffscreenCanvas&&t instanceof OffscreenCanvas?st:jt}(o)),this.platform.updateConfig(r);const l=this.platform.acquireContext(o,s.aspectRatio),u=l&&l.canvas,c=u&&u.height,f=u&&u.width;this.id=(0,n.ac)(),this.ctx=l,this.canvas=u,this.width=f,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new zt,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,n.ad)(t=>this.update(t),s.resizeDelay||0),this._dataChanges=[],se[this.id]=this,l&&u?(i.listen(this,"complete",oe),i.listen(this,"progress",ie),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:r,height:o,_aspectRatio:i}=this;return(0,n.k)(t)?e&&i?i:o?r/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Lt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,n.ae)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,n.af)(this.canvas,this.ctx),this}stop(){return i.stop(this),this}resize(t,e){i.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const r=this.options,o=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,e,i),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,(0,n.ae)(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),(0,n.Q)(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};(0,n.F)(t,(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,r=this.scales,o=Object.keys(r).reduce((t,e)=>(t[e]=!1,t),{});let i=[];e&&(i=i.concat(Object.keys(e).map(t=>{const r=e[t],n=Ht(t,r),o="r"===n,i="x"===n;return{options:r,dposition:o?"chartArea":i?"bottom":"left",dtype:o?"radialLinear":i?"category":"linear"}}))),(0,n.F)(i,e=>{const i=e.options,a=i.id,s=Ht(a,i),l=(0,n.v)(i.type,e.dtype);void 0!==i.position&&re(i.position,s)===re(e.dposition)||(i.position=e.dposition),o[a]=!0;let u=null;if(a in r&&r[a].type===l)u=r[a];else{u=new(Lt.getScale(l))({id:a,type:l,ctx:this.ctx,chart:this}),r[u.id]=u}u.init(i,t)}),(0,n.F)(o,(t,e)=>{t||delete r[e]}),(0,n.F)(r,t=>{it.configure(this,t,t.options),it.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,r=t.length;if(t.sort((t,e)=>t.index-e.index),r>e){for(let t=e;t<r;++t)this._destroyDatasetMeta(t);t.splice(e,r-e)}this._sortedMetasets=t.slice(0).sort(ne("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,r)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let r,o;for(this._removeUnreferencedMetasets(),r=0,o=e.length;r<o;r++){const o=e[r];let i=this.getDatasetMeta(r);const a=o.type||this.config.type;if(i.type&&i.type!==a&&(this._destroyDatasetMeta(r),i=this.getDatasetMeta(r)),i.type=a,i.indexAxis=o.indexAxis||Bt(a,this.options),i.order=o.order||0,i.index=r,i.label=""+o.label,i.visible=this.isDatasetVisible(r),i.controller)i.controller.updateIndex(r),i.controller.linkScales();else{const e=Lt.getController(a),{datasetElementType:o,dataElementType:s}=n.d.datasets[a];Object.assign(e,{dataElementType:Lt.getElement(s),datasetElementType:o&&Lt.getElement(o)}),i.controller=new e(this,r),t.push(i.controller)}}return this._updateMetasets(),t}_resetElements(){(0,n.F)(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const r=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let n=0,u=this.data.datasets.length;n<u;n++){const{controller:t}=this.getDatasetMeta(n),e=!o&&-1===i.indexOf(t);t.buildOrUpdateElements(e),a=Math.max(+t.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),o||(0,n.F)(i,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ne("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){(0,n.F)(this.scales,t=>{it.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),r=new Set(t.events);(0,n.ag)(e,r)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:r,start:n,count:o}of e){ue(t,n,"_removeElements"===r?-o:o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,r=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),o=r(0);for(let i=1;i<e;i++)if(!(0,n.ag)(o,r(i)))return;return Array.from(o).map(t=>t.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;it.update(this,this.width,this.height,t);const e=this.chartArea,r=e.width<=0||e.height<=0;this._layers=[],(0,n.F)(this.boxes,t=>{r&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,r=this.data.datasets.length;e<r;++e)this._updateDataset(e,(0,n.a7)(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const r=this.getDatasetMeta(t),n={meta:r,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",n)&&(r.controller._update(e),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(i.has(this)?this.attached&&!i.running(this)&&i.start(this):(this.draw(),oe({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,r=[];let n,o;for(n=0,o=e.length;n<o;++n){const o=e[n];t&&!o.visible||r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,r={meta:t,index:t.index,cancelable:!0},o=(0,n.ah)(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(o&&(0,n.Y)(e,o),t.controller.draw(),o&&(0,n.$)(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return(0,n.C)(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,r,n){const o=$.modes[e];return"function"===typeof o?o(this,t,r,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],r=this._metasets;let n=r.filter(t=>t&&t._dataset===e).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},r.push(n)),n}getContext(){return this.$context||(this.$context=(0,n.j)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const r=this.getDatasetMeta(t);return"boolean"===typeof r.hidden?!r.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,r){const o=r?"show":"hide",i=this.getDatasetMeta(t),a=i.controller._resolveAnimations(void 0,o);(0,n.h)(e)?(i.data[e].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(i,{visible:r}),this.update(e=>e.datasetIndex===t?o:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),i.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),(0,n.af)(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete se[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,r=(r,n)=>{e.addEventListener(this,r,n),t[r]=n},o=(t,e,r)=>{t.offsetX=e,t.offsetY=r,this._eventHandler(t)};(0,n.F)(this.options.events,t=>r(t,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,r=(r,n)=>{e.addEventListener(this,r,n),t[r]=n},n=(r,n)=>{t[r]&&(e.removeEventListener(this,r,n),delete t[r])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let i;const a=()=>{n("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",i)};i=()=>{this.attached=!1,n("resize",o),this._stop(),this._resize(0,0),r("attach",a)},e.isAttached(this.canvas)?a():i()}unbindEvents(){(0,n.F)(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},(0,n.F)(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,r){const n=r?"set":"remove";let o,i,a,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+n+"DatasetHoverStyle"]()),a=0,s=t.length;a<s;++a){i=t[a];const e=i&&this.getDatasetMeta(i.datasetIndex).controller;e&&e[n+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],r=t.map(({datasetIndex:t,index:e})=>{const r=this.getDatasetMeta(t);if(!r)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:r.data[e],index:e}});!(0,n.ai)(r,e)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,e))}notifyPlugins(t,e,r){return this._plugins.notify(this,t,e,r)}isPluginEnabled(t){return 1===this._plugins._cache.filter(e=>e.plugin.id===t).length}_updateHoverStyles(t,e,r){const n=this.options.hover,o=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),i=o(e,t),a=r?t:o(t,e);i.length&&this.updateHoverStyle(i,n.mode,!1),a.length&&n.mode&&this.updateHoverStyle(a,n.mode,!0)}_eventHandler(t,e){const r={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",r,n))return;const o=this._handleEvent(t,e,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,n),(o||r.changed)&&this.render(),this}_handleEvent(t,e,r){const{_active:o=[],options:i}=this,a=e,s=this._getActiveElements(t,o,r,a),l=(0,n.aj)(t),u=function(t,e,r,n){return r&&"mouseout"!==t.type?n?e:t:null}(t,this._lastEvent,r,l);r&&(this._lastEvent=null,(0,n.Q)(i.onHover,[t,s,this],this),l&&(0,n.Q)(i.onClick,[t,s,this],this));const c=!(0,n.ai)(s,o);return(c||e)&&(this._active=s,this._updateHoverStyles(s,o,e)),this._lastEvent=u,c}_getActiveElements(t,e,r,n){if("mouseout"===t.type)return[];if(!r)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,n)}}function fe(){return(0,n.F)(ce.instances,t=>t._plugins.invalidate())}function de(t,e,r,o){const i=(a=t.options.borderRadius,(0,n.am)(a,["outerStart","outerEnd","innerStart","innerEnd"]));var a;const s=(r-e)/2,l=Math.min(s,o*e/2),u=t=>{const e=(r-Math.min(s,t))*o/2;return(0,n.S)(t,0,Math.min(s,e))};return{outerStart:u(i.outerStart),outerEnd:u(i.outerEnd),innerStart:(0,n.S)(i.innerStart,0,l),innerEnd:(0,n.S)(i.innerEnd,0,l)}}function he(t,e,r,n){return{x:r+t*Math.cos(e),y:n+t*Math.sin(e)}}function pe(t,e,r,o,i,a){const{x:s,y:l,startAngle:u,pixelMargin:c,innerRadius:f}=e,d=Math.max(e.outerRadius+o+r-c,0),h=f>0?f+o+r+c:0;let p=0;const b=i-u;if(o){const t=((f>0?f-o:0)+(d>0?d-o:0))/2;p=(b-(0!==t?b*t/(t+o):b))/2}const g=(b-Math.max(.001,b*d-r/n.P)/d)/2,m=u+g+p,y=i-g-p,{outerStart:v,outerEnd:x,innerStart:w,innerEnd:j}=de(e,h,d,y-m),O=d-v,_=d-x,S=m+v/O,P=y-x/_,M=h+w,k=h+j,C=m+w/M,A=y-j/k;if(t.beginPath(),a){const e=(S+P)/2;if(t.arc(s,l,d,S,e),t.arc(s,l,d,e,P),x>0){const e=he(_,P,s,l);t.arc(e.x,e.y,x,P,y+n.H)}const r=he(k,y,s,l);if(t.lineTo(r.x,r.y),j>0){const e=he(k,A,s,l);t.arc(e.x,e.y,j,y+n.H,A+Math.PI)}const o=(y-j/h+(m+w/h))/2;if(t.arc(s,l,h,y-j/h,o,!0),t.arc(s,l,h,o,m+w/h,!0),w>0){const e=he(M,C,s,l);t.arc(e.x,e.y,w,C+Math.PI,m-n.H)}const i=he(O,m,s,l);if(t.lineTo(i.x,i.y),v>0){const e=he(O,S,s,l);t.arc(e.x,e.y,v,m-n.H,S)}}else{t.moveTo(s,l);const e=Math.cos(S)*d+s,r=Math.sin(S)*d+l;t.lineTo(e,r);const n=Math.cos(P)*d+s,o=Math.sin(P)*d+l;t.lineTo(n,o)}t.closePath()}function be(t,e,r,o,i){const{fullCircles:a,startAngle:s,circumference:l,options:u}=e,{borderWidth:c,borderJoinStyle:f,borderDash:d,borderDashOffset:h,borderRadius:p}=u,b="inner"===u.borderAlign;if(!c)return;t.setLineDash(d||[]),t.lineDashOffset=h,b?(t.lineWidth=2*c,t.lineJoin=f||"round"):(t.lineWidth=c,t.lineJoin=f||"bevel");let g=e.endAngle;if(a){pe(t,e,r,o,g,i);for(let e=0;e<a;++e)t.stroke();isNaN(l)||(g=s+(l%n.T||n.T))}b&&function(t,e,r){const{startAngle:o,pixelMargin:i,x:a,y:s,outerRadius:l,innerRadius:u}=e;let c=i/l;t.beginPath(),t.arc(a,s,l,o-c,r+c),u>i?(c=i/u,t.arc(a,s,u,r+c,o-c,!0)):t.arc(a,s,i,r+n.H,o-n.H),t.closePath(),t.clip()}(t,e,g),u.selfJoin&&g-s>=n.P&&0===p&&"miter"!==f&&function(t,e,r){const{startAngle:o,x:i,y:a,outerRadius:s,innerRadius:l,options:u}=e,{borderWidth:c,borderJoinStyle:f}=u,d=Math.min(c/s,(0,n.al)(o-r));if(t.beginPath(),t.arc(i,a,s-c/2,o+d/2,r-d/2),l>0){const e=Math.min(c/l,(0,n.al)(o-r));t.arc(i,a,l+c/2,r-e/2,o+e/2,!0)}else{const e=Math.min(c/2,s*(0,n.al)(o-r));if("round"===f)t.arc(i,a,e,r-n.P/2,o+n.P/2,!0);else if("bevel"===f){const s=2*e*e,l=-s*Math.cos(r+n.P/2)+i,u=-s*Math.sin(r+n.P/2)+a,c=s*Math.cos(o+n.P/2)+i,f=s*Math.sin(o+n.P/2)+a;t.lineTo(l,u),t.lineTo(c,f)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}(t,e,g),a||(pe(t,e,r,o,g,i),t.stroke())}class ge extends Ot{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,r){const o=this.getProps(["x","y"],r),{angle:i,distance:a}=(0,n.D)(o,{x:t,y:e}),{startAngle:s,endAngle:l,innerRadius:u,outerRadius:c,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),d=(this.options.spacing+this.options.borderWidth)/2,h=(0,n.v)(f,l-s),p=(0,n.p)(i,s,l)&&s!==l,b=h>=n.T||p,g=(0,n.ak)(a,u+d,c+d);return b&&g}getCenterPoint(t){const{x:e,y:r,startAngle:n,endAngle:o,innerRadius:i,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:s,spacing:l}=this.options,u=(n+o)/2,c=(i+a+l+s)/2;return{x:e+Math.cos(u)*c,y:r+Math.sin(u)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:r}=this,o=(e.offset||0)/4,i=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=r>n.T?Math.floor(r/n.T):0,0===r||this.innerRadius<0||this.outerRadius<0)return;t.save();const s=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(s)*o,Math.sin(s)*o);const l=o*(1-Math.sin(Math.min(n.P,r||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,r,o,i){const{fullCircles:a,startAngle:s,circumference:l}=e;let u=e.endAngle;if(a){pe(t,e,r,o,u,i);for(let e=0;e<a;++e)t.fill();isNaN(l)||(u=s+(l%n.T||n.T))}pe(t,e,r,o,u,i),t.fill()}(t,this,l,i,a),be(t,this,l,i,a),t.restore()}}function me(t,e,r=e){t.lineCap=(0,n.v)(r.borderCapStyle,e.borderCapStyle),t.setLineDash((0,n.v)(r.borderDash,e.borderDash)),t.lineDashOffset=(0,n.v)(r.borderDashOffset,e.borderDashOffset),t.lineJoin=(0,n.v)(r.borderJoinStyle,e.borderJoinStyle),t.lineWidth=(0,n.v)(r.borderWidth,e.borderWidth),t.strokeStyle=(0,n.v)(r.borderColor,e.borderColor)}function ye(t,e,r){t.lineTo(r.x,r.y)}function ve(t,e,r={}){const n=t.length,{start:o=0,end:i=n-1}=r,{start:a,end:s}=e,l=Math.max(o,a),u=Math.min(i,s),c=o<a&&i<a||o>s&&i>s;return{count:n,start:l,loop:e.loop,ilen:u<l&&!c?n+u-l:u-l}}function xe(t,e,r,o){const{points:i,options:a}=e,{count:s,start:l,loop:u,ilen:c}=ve(i,r,o),f=function(t){return t.stepped?n.at:t.tension||"monotone"===t.cubicInterpolationMode?n.au:ye}(a);let d,h,p,{move:b=!0,reverse:g}=o||{};for(d=0;d<=c;++d)h=i[(l+(g?c-d:d))%s],h.skip||(b?(t.moveTo(h.x,h.y),b=!1):f(t,p,h,g,a.stepped),p=h);return u&&(h=i[(l+(g?c:0))%s],f(t,p,h,g,a.stepped)),!!u}function we(t,e,r,n){const o=e.points,{count:i,start:a,ilen:s}=ve(o,r,n),{move:l=!0,reverse:u}=n||{};let c,f,d,h,p,b,g=0,m=0;const y=t=>(a+(u?s-t:t))%i,v=()=>{h!==p&&(t.lineTo(g,p),t.lineTo(g,h),t.lineTo(g,b))};for(l&&(f=o[y(0)],t.moveTo(f.x,f.y)),c=0;c<=s;++c){if(f=o[y(c)],f.skip)continue;const e=f.x,r=f.y,n=0|e;n===d?(r<h?h=r:r>p&&(p=r),g=(m*g+e)/++m):(v(),t.lineTo(e,r),d=n,m=0,h=p=r),b=r}v()}function je(t){const e=t.options,r=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!r?we:xe}const Oe="function"===typeof Path2D;function _e(t,e,r,n){Oe&&!e.options.segment?function(t,e,r,n){let o=e._path;o||(o=e._path=new Path2D,e.path(o,r,n)&&o.closePath()),me(t,e.options),t.stroke(o)}(t,e,r,n):function(t,e,r,n){const{segments:o,options:i}=e,a=je(e);for(const s of o)me(t,i,s.style),t.beginPath(),a(t,e,s,{start:r,end:r+n-1})&&t.closePath(),t.stroke()}(t,e,r,n)}class Se extends Ot{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const r=this.options;if((r.tension||"monotone"===r.cubicInterpolationMode)&&!r.stepped&&!this._pointsUpdated){const o=r.spanGaps?this._loop:this._fullLoop;(0,n.an)(this._points,r,t,o,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,n.ao)(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,r=t.length;return r&&e[t[r-1].end]}interpolate(t,e){const r=this.options,o=t[e],i=this.points,a=(0,n.ap)(this,{property:e,start:o,end:o});if(!a.length)return;const s=[],l=function(t){return t.stepped?n.aq:t.tension||"monotone"===t.cubicInterpolationMode?n.ar:n.as}(r);let u,c;for(u=0,c=a.length;u<c;++u){const{start:n,end:c}=a[u],f=i[n],d=i[c];if(f===d){s.push(f);continue}const h=l(f,d,Math.abs((o-f[e])/(d[e]-f[e])),r.stepped);h[e]=t[e],s.push(h)}return 1===s.length?s[0]:s}pathSegment(t,e,r){return je(this)(t,this,e,r)}path(t,e,r){const n=this.segments,o=je(this);let i=this._loop;e=e||0,r=r||this.points.length-e;for(const a of n)i&=o(t,this,a,{start:e,end:e+r-1});return!!i}draw(t,e,r,n){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),_e(t,this,r,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Pe(t,e,r,n){const o=t.options,{[r]:i}=t.getProps([r],n);return Math.abs(e-i)<o.radius+o.hitRadius}class Me extends Ot{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,r){const n=this.options,{x:o,y:i}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(e-i,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return Pe(this,t,"x",e)}inYRange(t,e){return Pe(this,t,"y",e)}getCenterPoint(t){const{x:e,y:r}=this.getProps(["x","y"],t);return{x:e,y:r}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const r=this.options;this.skip||r.radius<.1||!(0,n.C)(this,e,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,(0,n.av)(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function ke(t,e){const{x:r,y:n,base:o,width:i,height:a}=t.getProps(["x","y","base","width","height"],e);let s,l,u,c,f;return t.horizontal?(f=a/2,s=Math.min(r,o),l=Math.max(r,o),u=n-f,c=n+f):(f=i/2,s=r-f,l=r+f,u=Math.min(n,o),c=Math.max(n,o)),{left:s,top:u,right:l,bottom:c}}function Ce(t,e,r,o){return t?0:(0,n.S)(e,r,o)}function Ae(t){const e=ke(t),r=e.right-e.left,o=e.bottom-e.top,i=function(t,e,r){const o=t.options.borderWidth,i=t.borderSkipped,a=(0,n.ax)(o);return{t:Ce(i.top,a.top,0,r),r:Ce(i.right,a.right,0,e),b:Ce(i.bottom,a.bottom,0,r),l:Ce(i.left,a.left,0,e)}}(t,r/2,o/2),a=function(t,e,r){const{enableBorderRadius:o}=t.getProps(["enableBorderRadius"]),i=t.options.borderRadius,a=(0,n.ay)(i),s=Math.min(e,r),l=t.borderSkipped,u=o||(0,n.i)(i);return{topLeft:Ce(!u||l.top||l.left,a.topLeft,0,s),topRight:Ce(!u||l.top||l.right,a.topRight,0,s),bottomLeft:Ce(!u||l.bottom||l.left,a.bottomLeft,0,s),bottomRight:Ce(!u||l.bottom||l.right,a.bottomRight,0,s)}}(t,r/2,o/2);return{outer:{x:e.left,y:e.top,w:r,h:o,radius:a},inner:{x:e.left+i.l,y:e.top+i.t,w:r-i.l-i.r,h:o-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function De(t,e,r,o){const i=null===e,a=null===r,s=t&&!(i&&a)&&ke(t,o);return s&&(i||(0,n.ak)(e,s.left,s.right))&&(a||(0,n.ak)(r,s.top,s.bottom))}function Te(t,e){t.rect(e.x,e.y,e.w,e.h)}function Ie(t,e,r={}){const n=t.x!==r.x?-e:0,o=t.y!==r.y?-e:0,i=(t.x+t.w!==r.x+r.w?e:0)-n,a=(t.y+t.h!==r.y+r.h?e:0)-o;return{x:t.x+n,y:t.y+o,w:t.w+i,h:t.h+a,radius:t.radius}}class Ee extends Ot{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:r,backgroundColor:o}}=this,{inner:i,outer:a}=Ae(this),s=(l=a.radius).topLeft||l.topRight||l.bottomLeft||l.bottomRight?n.aw:Te;var l;t.save(),a.w===i.w&&a.h===i.h||(t.beginPath(),s(t,Ie(a,e,i)),t.clip(),s(t,Ie(i,-e,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),s(t,Ie(i,e)),t.fillStyle=o,t.fill(),t.restore()}inRange(t,e,r){return De(this,t,e,r)}inXRange(t,e){return De(this,t,null,e)}inYRange(t,e){return De(this,null,t,e)}getCenterPoint(t){const{x:e,y:r,base:n,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+n)/2:e,y:o?r:(r+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}var Fe=Object.freeze({__proto__:null,ArcElement:ge,BarElement:Ee,LineElement:Se,PointElement:Me});const Le=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],ze=Le.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function Ne(t){return Le[t%Le.length]}function Ve(t){return ze[t%ze.length]}function Be(t){let e=0;return(r,n)=>{const o=t.getDatasetMeta(n).controller;o instanceof T?e=function(t,e){return t.backgroundColor=t.data.map(()=>Ne(e++)),e}(r,e):o instanceof E?e=function(t,e){return t.backgroundColor=t.data.map(()=>Ve(e++)),e}(r,e):o&&(e=function(t,e){return t.borderColor=Ne(e),t.backgroundColor=Ve(e),++e}(r,e))}}function Re(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var We={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,r){if(!r.enabled)return;const{data:{datasets:o},options:i}=t.config,{elements:a}=i,s=Re(o)||(l=i)&&(l.borderColor||l.backgroundColor)||a&&Re(a)||"rgba(0,0,0,0.1)"!==n.d.borderColor||"rgba(0,0,0,0.1)"!==n.d.backgroundColor;var l;if(!r.forceOverride&&s)return;const u=Be(t);o.forEach(u)}};function He(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function Ue(t){t.data.datasets.forEach(t=>{He(t)})}var Ke={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,r)=>{if(!r.enabled)return void Ue(t);const o=t.width;t.data.datasets.forEach((e,i)=>{const{_data:a,indexAxis:s}=e,l=t.getDatasetMeta(i),u=a||e.data;if("y"===(0,n.a)([s,t.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const c=t.scales[l.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let{start:f,count:d}=function(t,e){const r=e.length;let o,i=0;const{iScale:a}=t,{min:s,max:l,minDefined:u,maxDefined:c}=a.getUserBounds();return u&&(i=(0,n.S)((0,n.B)(e,a.axis,s).lo,0,r-1)),o=c?(0,n.S)((0,n.B)(e,a.axis,l).hi+1,i,r)-i:r-i,{start:i,count:o}}(l,u);if(d<=(r.threshold||4*o))return void He(e);let h;switch((0,n.k)(a)&&(e._data=u,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),r.algorithm){case"lttb":h=function(t,e,r,n,o){const i=o.samples||n;if(i>=r)return t.slice(e,e+r);const a=[],s=(r-2)/(i-2);let l=0;const u=e+r-1;let c,f,d,h,p,b=e;for(a[l++]=t[b],c=0;c<i-2;c++){let n,o=0,i=0;const u=Math.floor((c+1)*s)+1+e,g=Math.min(Math.floor((c+2)*s)+1,r)+e,m=g-u;for(n=u;n<g;n++)o+=t[n].x,i+=t[n].y;o/=m,i/=m;const y=Math.floor(c*s)+1+e,v=Math.min(Math.floor((c+1)*s)+1,r)+e,{x:x,y:w}=t[b];for(d=h=-1,n=y;n<v;n++)h=.5*Math.abs((x-o)*(t[n].y-w)-(x-t[n].x)*(i-w)),h>d&&(d=h,f=t[n],p=n);a[l++]=f,b=p}return a[l++]=t[u],a}(u,f,d,o,r);break;case"min-max":h=function(t,e,r,o){let i,a,s,l,u,c,f,d,h,p,b=0,g=0;const m=[],y=e+r-1,v=t[e].x,x=t[y].x-v;for(i=e;i<e+r;++i){a=t[i],s=(a.x-v)/x*o,l=a.y;const e=0|s;if(e===u)l<h?(h=l,c=i):l>p&&(p=l,f=i),b=(g*b+a.x)/++g;else{const r=i-1;if(!(0,n.k)(c)&&!(0,n.k)(f)){const e=Math.min(c,f),n=Math.max(c,f);e!==d&&e!==r&&m.push({...t[e],x:b}),n!==d&&n!==r&&m.push({...t[n],x:b})}i>0&&r!==d&&m.push(t[r]),m.push(a),u=e,g=0,h=p=l,c=f=d=i}}return m}(u,f,d,o);break;default:throw new Error(`Unsupported decimation algorithm '${r.algorithm}'`)}e._decimated=h})},destroy(t){Ue(t)}};function $e(t,e,r,o){if(o)return;let i=e[t],a=r[t];return"angle"===t&&(i=(0,n.al)(i),a=(0,n.al)(a)),{property:t,start:i,end:a}}function qe(t,e,r){for(;e>t;e--){const t=r[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Ye(t,e,r,n){return t&&e?n(t[r],e[r]):t?t[r]:e?e[r]:0}function Ge(t,e){let r=[],o=!1;return(0,n.b)(t)?(o=!0,r=t):r=function(t,e){const{x:r=null,y:n=null}=t||{},o=e.points,i=[];return e.segments.forEach(({start:t,end:e})=>{e=qe(t,e,o);const a=o[t],s=o[e];null!==n?(i.push({x:a.x,y:n}),i.push({x:s.x,y:n})):null!==r&&(i.push({x:r,y:a.y}),i.push({x:r,y:s.y}))}),i}(t,e),r.length?new Se({points:r,options:{tension:0},_loop:o,_fullLoop:o}):null}function Xe(t){return t&&!1!==t.fill}function Qe(t,e,r){let o=t[e].fill;const i=[e];let a;if(!r)return o;for(;!1!==o&&-1===i.indexOf(o);){if(!(0,n.g)(o))return o;if(a=t[o],!a)return!1;if(a.visible)return o;i.push(o),o=a.fill}return!1}function Ze(t,e,r){const o=function(t){const e=t.options,r=e.fill;let o=(0,n.v)(r&&r.target,r);void 0===o&&(o=!!e.backgroundColor);if(!1===o||null===o)return!1;if(!0===o)return"origin";return o}(t);if((0,n.i)(o))return!isNaN(o.value)&&o;let i=parseFloat(o);return(0,n.g)(i)&&Math.floor(i)===i?function(t,e,r,n){"-"!==t&&"+"!==t||(r=e+r);if(r===e||r<0||r>=n)return!1;return r}(o[0],e,i,r):["origin","start","end","stack","shape"].indexOf(o)>=0&&o}function Je(t,e,r){const n=[];for(let o=0;o<r.length;o++){const i=r[o],{first:a,last:s,point:l}=tr(i,e,"x");if(!(!l||a&&s))if(a)n.unshift(l);else if(t.push(l),!s)break}t.push(...n)}function tr(t,e,r){const o=t.interpolate(e,r);if(!o)return{};const i=o[r],a=t.segments,s=t.points;let l=!1,u=!1;for(let c=0;c<a.length;c++){const t=a[c],e=s[t.start][r],o=s[t.end][r];if((0,n.ak)(i,e,o)){l=i===e,u=i===o;break}}return{first:l,last:u,point:o}}class er{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,r){const{x:o,y:i,radius:a}=this;return e=e||{start:0,end:n.T},t.arc(o,i,a,e.end,e.start,!0),!r.bounds}interpolate(t){const{x:e,y:r,radius:n}=this,o=t.angle;return{x:e+Math.cos(o)*n,y:r+Math.sin(o)*n,angle:o}}}function rr(t){const{chart:e,fill:r,line:o}=t;if((0,n.g)(r))return function(t,e){const r=t.getDatasetMeta(e),n=r&&t.isDatasetVisible(e);return n?r.dataset:null}(e,r);if("stack"===r)return function(t){const{scale:e,index:r,line:n}=t,o=[],i=n.segments,a=n.points,s=function(t,e){const r=[],n=t.getMatchingVisibleMetas("line");for(let o=0;o<n.length;o++){const t=n[o];if(t.index===e)break;t.hidden||r.unshift(t.dataset)}return r}(e,r);s.push(Ge({x:null,y:e.bottom},n));for(let l=0;l<i.length;l++){const t=i[l];for(let e=t.start;e<=t.end;e++)Je(o,a[e],s)}return new Se({points:o,options:{}})}(t);if("shape"===r)return!0;const i=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:r}=t,o=e.options,i=e.getLabels().length,a=o.reverse?e.max:e.min,s=function(t,e,r){let o;return o="start"===t?r:"end"===t?e.options.reverse?e.min:e.max:(0,n.i)(t)?t.value:e.getBaseValue(),o}(r,e,a),l=[];if(o.grid.circular){const t=e.getPointPositionForValue(0,a);return new er({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(s)})}for(let n=0;n<i;++n)l.push(e.getPointPositionForValue(n,s));return l}(t);return function(t){const{scale:e={},fill:r}=t,o=function(t,e){let r=null;return"start"===t?r=e.bottom:"end"===t?r=e.top:(0,n.i)(t)?r=e.getPixelForValue(t.value):e.getBasePixel&&(r=e.getBasePixel()),r}(r,e);if((0,n.g)(o)){const t=e.isHorizontal();return{x:t?o:null,y:t?null:o}}return null}(t)}(t);return i instanceof er?i:Ge(i,o)}function nr(t,e,r){const o=rr(e),{chart:i,index:a,line:s,scale:l,axis:u}=e,c=s.options,f=c.fill,d=c.backgroundColor,{above:h=d,below:p=d}=f||{},b=i.getDatasetMeta(a),g=(0,n.ah)(i,b);o&&s.points.length&&((0,n.Y)(t,r),function(t,e){const{line:r,target:n,above:o,below:i,area:a,scale:s,clip:l}=e,u=r._loop?"angle":e.axis;t.save();let c=i;i!==o&&("x"===u?(or(t,n,a.top),ar(t,{line:r,target:n,color:o,scale:s,property:u,clip:l}),t.restore(),t.save(),or(t,n,a.bottom)):"y"===u&&(ir(t,n,a.left),ar(t,{line:r,target:n,color:i,scale:s,property:u,clip:l}),t.restore(),t.save(),ir(t,n,a.right),c=o));ar(t,{line:r,target:n,color:c,scale:s,property:u,clip:l}),t.restore()}(t,{line:s,target:o,above:h,below:p,area:r,scale:l,axis:u,clip:g}),(0,n.$)(t))}function or(t,e,r){const{segments:n,points:o}=e;let i=!0,a=!1;t.beginPath();for(const s of n){const{start:n,end:l}=s,u=o[n],c=o[qe(n,l,o)];i?(t.moveTo(u.x,u.y),i=!1):(t.lineTo(u.x,r),t.lineTo(u.x,u.y)),a=!!e.pathSegment(t,s,{move:a}),a?t.closePath():t.lineTo(c.x,r)}t.lineTo(e.first().x,r),t.closePath(),t.clip()}function ir(t,e,r){const{segments:n,points:o}=e;let i=!0,a=!1;t.beginPath();for(const s of n){const{start:n,end:l}=s,u=o[n],c=o[qe(n,l,o)];i?(t.moveTo(u.x,u.y),i=!1):(t.lineTo(r,u.y),t.lineTo(u.x,u.y)),a=!!e.pathSegment(t,s,{move:a}),a?t.closePath():t.lineTo(r,c.y)}t.lineTo(r,e.first().y),t.closePath(),t.clip()}function ar(t,e){const{line:r,target:o,property:i,color:a,scale:s,clip:l}=e,u=function(t,e,r){const o=t.segments,i=t.points,a=e.points,s=[];for(const l of o){let{start:t,end:o}=l;o=qe(t,o,i);const u=$e(r,i[t],i[o],l.loop);if(!e.segments){s.push({source:l,target:u,start:i[t],end:i[o]});continue}const c=(0,n.ap)(e,u);for(const e of c){const t=$e(r,a[e.start],a[e.end],e.loop),o=(0,n.az)(l,i,t);for(const n of o)s.push({source:n,target:e,start:{[r]:Ye(u,t,"start",Math.max)},end:{[r]:Ye(u,t,"end",Math.min)}})}}return s}(r,o,i);for(const{source:n,target:c,start:f,end:d}of u){const{style:{backgroundColor:e=a}={}}=n,u=!0!==o;t.save(),t.fillStyle=e,sr(t,s,l,u&&$e(i,f,d)),t.beginPath();const h=!!r.pathSegment(t,n);let p;if(u){h?t.closePath():lr(t,o,d,i);const e=!!o.pathSegment(t,c,{move:h,reverse:!0});p=h&&e,p||lr(t,o,f,i)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function sr(t,e,r,n){const o=e.chart.chartArea,{property:i,start:a,end:s}=n||{};if("x"===i||"y"===i){let e,n,l,u;"x"===i?(e=a,n=o.top,l=s,u=o.bottom):(e=o.left,n=a,l=o.right,u=s),t.beginPath(),r&&(e=Math.max(e,r.left),l=Math.min(l,r.right),n=Math.max(n,r.top),u=Math.min(u,r.bottom)),t.rect(e,n,l-e,u-n),t.clip()}}function lr(t,e,r,n){const o=e.interpolate(r,n);o&&t.lineTo(o.x,o.y)}var ur={id:"filler",afterDatasetsUpdate(t,e,r){const n=(t.data.datasets||[]).length,o=[];let i,a,s,l;for(a=0;a<n;++a)i=t.getDatasetMeta(a),s=i.dataset,l=null,s&&s.options&&s instanceof Se&&(l={visible:t.isDatasetVisible(a),index:a,fill:Ze(s,a,n),chart:t,axis:i.controller.options.indexAxis,scale:i.vScale,line:s}),i.$filler=l,o.push(l);for(a=0;a<n;++a)l=o[a],l&&!1!==l.fill&&(l.fill=Qe(o,a,r.propagate))},beforeDraw(t,e,r){const n="beforeDraw"===r.drawTime,o=t.getSortedVisibleDatasetMetas(),i=t.chartArea;for(let a=o.length-1;a>=0;--a){const e=o[a].$filler;e&&(e.line.updateControlPoints(i,e.axis),n&&e.fill&&nr(t.ctx,e,i))}},beforeDatasetsDraw(t,e,r){if("beforeDatasetsDraw"!==r.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let o=n.length-1;o>=0;--o){const e=n[o].$filler;Xe(e)&&nr(t.ctx,e,t.chartArea)}},beforeDatasetDraw(t,e,r){const n=e.meta.$filler;Xe(n)&&"beforeDatasetDraw"===r.drawTime&&nr(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const cr=(t,e)=>{let{boxHeight:r=e,boxWidth:n=e}=t;return t.usePointStyle&&(r=Math.min(r,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:r,itemHeight:Math.max(e,r)}};class fr extends Ot{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,r){this.maxWidth=t,this.maxHeight=e,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=(0,n.Q)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,r)=>t.sort(e,r,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const r=t.labels,o=(0,n.a0)(r.font),i=o.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=cr(r,i);let u,c;e.font=o.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(a,i,s,l)+10):(c=this.maxHeight,u=this._fitCols(a,o,s,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,r,n){const{ctx:o,maxWidth:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],u=n+a;let c=t;o.textAlign="left",o.textBaseline="middle";let f=-1,d=-u;return this.legendItems.forEach((t,h)=>{const p=r+e/2+o.measureText(t.text).width;(0===h||l[l.length-1]+p+2*a>i)&&(c+=u,l[l.length-(h>0?0:1)]=0,d+=u,f++),s[h]={left:0,top:d,row:f,width:p,height:n},l[l.length-1]+=p+a}),c}_fitCols(t,e,r,n){const{ctx:o,maxHeight:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],u=i-t;let c=a,f=0,d=0,h=0,p=0;return this.legendItems.forEach((t,i)=>{const{itemWidth:b,itemHeight:g}=function(t,e,r,n,o){const i=function(t,e,r,n){let o=t.text;o&&"string"!==typeof o&&(o=o.reduce((t,e)=>t.length>e.length?t:e));return e+r.size/2+n.measureText(o).width}(n,t,e,r),a=function(t,e,r){let n=t;"string"!==typeof e.text&&(n=dr(e,r));return n}(o,n,e.lineHeight);return{itemWidth:i,itemHeight:a}}(r,e,o,t,n);i>0&&d+g+2*a>u&&(c+=f+a,l.push({width:f,height:d}),h+=f+a,p++,f=d=0),s[i]={left:h,top:d,col:p,width:b,height:g},f=Math.max(f,b),d+=g+a}),c+=f,l.push({width:f,height:d}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:r,labels:{padding:o},rtl:i}}=this,a=(0,n.aA)(i,this.left,this.width);if(this.isHorizontal()){let i=0,s=(0,n.a2)(r,this.left+o,this.right-this.lineWidths[i]);for(const l of e)i!==l.row&&(i=l.row,s=(0,n.a2)(r,this.left+o,this.right-this.lineWidths[i])),l.top+=this.top+t+o,l.left=a.leftForLtr(a.x(s),l.width),s+=l.width+o}else{let i=0,s=(0,n.a2)(r,this.top+t+o,this.bottom-this.columnSizes[i].height);for(const l of e)l.col!==i&&(i=l.col,s=(0,n.a2)(r,this.top+t+o,this.bottom-this.columnSizes[i].height)),l.top=s,l.left+=this.left+o,l.left=a.leftForLtr(a.x(l.left),l.width),s+=l.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;(0,n.Y)(t,this),this._draw(),(0,n.$)(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:r,ctx:o}=this,{align:i,labels:a}=t,s=n.d.color,l=(0,n.aA)(t.rtl,this.left,this.width),u=(0,n.a0)(a.font),{padding:c}=a,f=u.size,d=f/2;let h;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=u.string;const{boxWidth:p,boxHeight:b,itemHeight:g}=cr(a,f),m=this.isHorizontal(),y=this._computeTitleHeight();h=m?{x:(0,n.a2)(i,this.left+c,this.right-r[0]),y:this.top+c+y,line:0}:{x:this.left+c,y:(0,n.a2)(i,this.top+y+c,this.bottom-e[0].height),line:0},(0,n.aB)(this.ctx,t.textDirection);const v=g+c;this.legendItems.forEach((x,w)=>{o.strokeStyle=x.fontColor,o.fillStyle=x.fontColor;const j=o.measureText(x.text).width,O=l.textAlign(x.textAlign||(x.textAlign=a.textAlign)),_=p+d+j;let S=h.x,P=h.y;l.setWidth(this.width),m?w>0&&S+_+c>this.right&&(P=h.y+=v,h.line++,S=h.x=(0,n.a2)(i,this.left+c,this.right-r[h.line])):w>0&&P+v>this.bottom&&(S=h.x=S+e[h.line].width+c,h.line++,P=h.y=(0,n.a2)(i,this.top+y+c,this.bottom-e[h.line].height));if(function(t,e,r){if(isNaN(p)||p<=0||isNaN(b)||b<0)return;o.save();const i=(0,n.v)(r.lineWidth,1);if(o.fillStyle=(0,n.v)(r.fillStyle,s),o.lineCap=(0,n.v)(r.lineCap,"butt"),o.lineDashOffset=(0,n.v)(r.lineDashOffset,0),o.lineJoin=(0,n.v)(r.lineJoin,"miter"),o.lineWidth=i,o.strokeStyle=(0,n.v)(r.strokeStyle,s),o.setLineDash((0,n.v)(r.lineDash,[])),a.usePointStyle){const s={radius:b*Math.SQRT2/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:i},u=l.xPlus(t,p/2),c=e+d;(0,n.aE)(o,s,u,c,a.pointStyleWidth&&p)}else{const a=e+Math.max((f-b)/2,0),s=l.leftForLtr(t,p),u=(0,n.ay)(r.borderRadius);o.beginPath(),Object.values(u).some(t=>0!==t)?(0,n.aw)(o,{x:s,y:a,w:p,h:b,radius:u}):o.rect(s,a,p,b),o.fill(),0!==i&&o.stroke()}o.restore()}(l.x(S),P,x),S=(0,n.aC)(O,S+p+d,m?S+_:this.right,t.rtl),function(t,e,r){(0,n.Z)(o,r.text,t,e+g/2,u,{strikethrough:r.hidden,textAlign:l.textAlign(r.textAlign)})}(l.x(S),P,x),m)h.x+=_+c;else if("string"!==typeof x.text){const t=u.lineHeight;h.y+=dr(x,t)+c}else h.y+=v}),(0,n.aD)(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,r=(0,n.a0)(e.font),o=(0,n.E)(e.padding);if(!e.display)return;const i=(0,n.aA)(t.rtl,this.left,this.width),a=this.ctx,s=e.position,l=r.size/2,u=o.top+l;let c,f=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+u,f=(0,n.a2)(t.align,f,this.right-d);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=u+(0,n.a2)(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const h=(0,n.a2)(s,f,f+d);a.textAlign=i.textAlign((0,n.a1)(s)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=r.string,(0,n.Z)(a,e.text,h,c,r)}_computeTitleHeight(){const t=this.options.title,e=(0,n.a0)(t.font),r=(0,n.E)(t.padding);return t.display?e.lineHeight+r.height:0}_getLegendItemAt(t,e){let r,o,i;if((0,n.ak)(t,this.left,this.right)&&(0,n.ak)(e,this.top,this.bottom))for(i=this.legendHitBoxes,r=0;r<i.length;++r)if(o=i[r],(0,n.ak)(t,o.left,o.left+o.width)&&(0,n.ak)(e,o.top,o.top+o.height))return this.legendItems[r];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const r=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const a=this._hoveredItem,s=(i=r,null!==(o=a)&&null!==i&&o.datasetIndex===i.datasetIndex&&o.index===i.index);a&&!s&&(0,n.Q)(e.onLeave,[t,a,this],this),this._hoveredItem=r,r&&!s&&(0,n.Q)(e.onHover,[t,r,this],this)}else r&&(0,n.Q)(e.onClick,[t,r,this],this);var o,i}}function dr(t,e){return e*(t.text?t.text.length:0)}var hr={id:"legend",_element:fr,start(t,e,r){const n=t.legend=new fr({ctx:t.ctx,options:r,chart:t});it.configure(t,n,r),it.addBox(t,n)},stop(t){it.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,r){const n=t.legend;it.configure(t,n,r),n.options=r},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,r){const n=e.datasetIndex,o=r.chart;o.isDatasetVisible(n)?(o.hide(n),e.hidden=!0):(o.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:r,pointStyle:o,textAlign:i,color:a,useBorderRadius:s,borderRadius:l}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const u=t.controller.getStyle(r?0:void 0),c=(0,n.E)(u.borderWidth);return{text:e[t.index].label,fillStyle:u.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:o||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:s&&(l||u.borderRadius),datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class pr extends Ot{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const r=this.options;if(this.left=0,this.top=0,!r.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const o=(0,n.b)(r.text)?r.text.length:1;this._padding=(0,n.E)(r.padding);const i=o*(0,n.a0)(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:r,bottom:o,right:i,options:a}=this,s=a.align;let l,u,c,f=0;return this.isHorizontal()?(u=(0,n.a2)(s,r,i),c=e+t,l=i-r):("left"===a.position?(u=r+t,c=(0,n.a2)(s,o,e),f=-.5*n.P):(u=i-t,c=(0,n.a2)(s,e,o),f=.5*n.P),l=o-e),{titleX:u,titleY:c,maxWidth:l,rotation:f}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const r=(0,n.a0)(e.font),o=r.lineHeight/2+this._padding.top,{titleX:i,titleY:a,maxWidth:s,rotation:l}=this._drawArgs(o);(0,n.Z)(t,e.text,0,0,r,{color:e.color,maxWidth:s,rotation:l,textAlign:(0,n.a1)(e.align),textBaseline:"middle",translation:[i,a]})}}var br={id:"title",_element:pr,start(t,e,r){!function(t,e){const r=new pr({ctx:t.ctx,options:e,chart:t});it.configure(t,r,e),it.addBox(t,r),t.titleBlock=r}(t,r)},stop(t){const e=t.titleBlock;it.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,r){const n=t.titleBlock;it.configure(t,n,r),n.options=r},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const gr=new WeakMap;var mr={id:"subtitle",start(t,e,r){const n=new pr({ctx:t.ctx,options:r,chart:t});it.configure(t,n,r),it.addBox(t,n),gr.set(t,n)},stop(t){it.removeBox(t,gr.get(t)),gr.delete(t)},beforeUpdate(t,e,r){const n=gr.get(t);it.configure(t,n,r),n.options=r},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const yr={average(t){if(!t.length)return!1;let e,r,n=new Set,o=0,i=0;for(e=0,r=t.length;e<r;++e){const r=t[e].element;if(r&&r.hasValue()){const t=r.tooltipPosition();n.add(t.x),o+=t.y,++i}}if(0===i||0===n.size)return!1;return{x:[...n].reduce((t,e)=>t+e)/n.size,y:o/i}},nearest(t,e){if(!t.length)return!1;let r,o,i,a=e.x,s=e.y,l=Number.POSITIVE_INFINITY;for(r=0,o=t.length;r<o;++r){const o=t[r].element;if(o&&o.hasValue()){const t=o.getCenterPoint(),r=(0,n.aF)(e,t);r<l&&(l=r,i=o)}}if(i){const t=i.tooltipPosition();a=t.x,s=t.y}return{x:a,y:s}}};function vr(t,e){return e&&((0,n.b)(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function xr(t){return("string"===typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function wr(t,e){const{element:r,datasetIndex:n,index:o}=e,i=t.getDatasetMeta(n).controller,{label:a,value:s}=i.getLabelAndValue(o);return{chart:t,label:a,parsed:i.getParsed(o),raw:t.data.datasets[n].data[o],formattedValue:s,dataset:i.getDataset(),dataIndex:o,datasetIndex:n,element:r}}function jr(t,e){const r=t.chart.ctx,{body:o,footer:i,title:a}=t,{boxWidth:s,boxHeight:l}=e,u=(0,n.a0)(e.bodyFont),c=(0,n.a0)(e.titleFont),f=(0,n.a0)(e.footerFont),d=a.length,h=i.length,p=o.length,b=(0,n.E)(e.padding);let g=b.height,m=0,y=o.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(y+=t.beforeBody.length+t.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),y){g+=p*(e.displayColors?Math.max(l,u.lineHeight):u.lineHeight)+(y-p)*u.lineHeight+(y-1)*e.bodySpacing}h&&(g+=e.footerMarginTop+h*f.lineHeight+(h-1)*e.footerSpacing);let v=0;const x=function(t){m=Math.max(m,r.measureText(t).width+v)};return r.save(),r.font=c.string,(0,n.F)(t.title,x),r.font=u.string,(0,n.F)(t.beforeBody.concat(t.afterBody),x),v=e.displayColors?s+2+e.boxPadding:0,(0,n.F)(o,t=>{(0,n.F)(t.before,x),(0,n.F)(t.lines,x),(0,n.F)(t.after,x)}),v=0,r.font=f.string,(0,n.F)(t.footer,x),r.restore(),m+=b.width,{width:m,height:g}}function Or(t,e,r,n){const{x:o,width:i}=r,{width:a,chartArea:{left:s,right:l}}=t;let u="center";return"center"===n?u=o<=(s+l)/2?"left":"right":o<=i/2?u="left":o>=a-i/2&&(u="right"),function(t,e,r,n){const{x:o,width:i}=n,a=r.caretSize+r.caretPadding;return"left"===t&&o+i+a>e.width||"right"===t&&o-i-a<0||void 0}(u,t,e,r)&&(u="center"),u}function _r(t,e,r){const n=r.yAlign||e.yAlign||function(t,e){const{y:r,height:n}=e;return r<n/2?"top":r>t.height-n/2?"bottom":"center"}(t,r);return{xAlign:r.xAlign||e.xAlign||Or(t,e,r,n),yAlign:n}}function Sr(t,e,r,o){const{caretSize:i,caretPadding:a,cornerRadius:s}=t,{xAlign:l,yAlign:u}=r,c=i+a,{topLeft:f,topRight:d,bottomLeft:h,bottomRight:p}=(0,n.ay)(s);let b=function(t,e){let{x:r,width:n}=t;return"right"===e?r-=n:"center"===e&&(r-=n/2),r}(e,l);const g=function(t,e,r){let{y:n,height:o}=t;return"top"===e?n+=r:n-="bottom"===e?o+r:o/2,n}(e,u,c);return"center"===u?"left"===l?b+=c:"right"===l&&(b-=c):"left"===l?b-=Math.max(f,h)+i:"right"===l&&(b+=Math.max(d,p)+i),{x:(0,n.S)(b,0,o.width-e.width),y:(0,n.S)(g,0,o.height-e.height)}}function Pr(t,e,r){const o=(0,n.E)(r.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-o.right:t.x+o.left}function Mr(t){return vr([],xr(t))}function kr(t,e){const r=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return r?t.override(r):t}const Cr={beforeTitle:n.aG,title(t){if(t.length>0){const e=t[0],r=e.chart.data.labels,n=r?r.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return r[e.dataIndex]}return""},afterTitle:n.aG,beforeBody:n.aG,beforeLabel:n.aG,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const r=t.formattedValue;return(0,n.k)(r)||(e+=r),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:n.aG,afterBody:n.aG,beforeFooter:n.aG,footer:n.aG,afterFooter:n.aG};function Ar(t,e,r,n){const o=t[e].call(r,n);return"undefined"===typeof o?Cr[e].call(r,n):o}class Dr extends Ot{static positioners=yr;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,r=this.options.setContext(this.getContext()),n=r.enabled&&e.options.animation&&r.animations,o=new u(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,r=this._tooltipItems,(0,n.j)(t,{tooltip:e,tooltipItems:r,type:"tooltip"})));var t,e,r}getTitle(t,e){const{callbacks:r}=e,n=Ar(r,"beforeTitle",this,t),o=Ar(r,"title",this,t),i=Ar(r,"afterTitle",this,t);let a=[];return a=vr(a,xr(n)),a=vr(a,xr(o)),a=vr(a,xr(i)),a}getBeforeBody(t,e){return Mr(Ar(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:r}=e,o=[];return(0,n.F)(t,t=>{const e={before:[],lines:[],after:[]},n=kr(r,t);vr(e.before,xr(Ar(n,"beforeLabel",this,t))),vr(e.lines,Ar(n,"label",this,t)),vr(e.after,xr(Ar(n,"afterLabel",this,t))),o.push(e)}),o}getAfterBody(t,e){return Mr(Ar(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:r}=e,n=Ar(r,"beforeFooter",this,t),o=Ar(r,"footer",this,t),i=Ar(r,"afterFooter",this,t);let a=[];return a=vr(a,xr(n)),a=vr(a,xr(o)),a=vr(a,xr(i)),a}_createItems(t){const e=this._active,r=this.chart.data,o=[],i=[],a=[];let s,l,u=[];for(s=0,l=e.length;s<l;++s)u.push(wr(this.chart,e[s]));return t.filter&&(u=u.filter((e,n,o)=>t.filter(e,n,o,r))),t.itemSort&&(u=u.sort((e,n)=>t.itemSort(e,n,r))),(0,n.F)(u,e=>{const r=kr(t.callbacks,e);o.push(Ar(r,"labelColor",this,e)),i.push(Ar(r,"labelPointStyle",this,e)),a.push(Ar(r,"labelTextColor",this,e))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=u,u}update(t,e){const r=this.options.setContext(this.getContext()),n=this._active;let o,i=[];if(n.length){const t=yr[r.position].call(this,n,this._eventPosition);i=this._createItems(r),this.title=this.getTitle(i,r),this.beforeBody=this.getBeforeBody(i,r),this.body=this.getBody(i,r),this.afterBody=this.getAfterBody(i,r),this.footer=this.getFooter(i,r);const e=this._size=jr(this,r),a=Object.assign({},t,e),s=_r(this.chart,r,a),l=Sr(r,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=i,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,r,n){const o=this.getCaretPosition(t,r,n);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,r){const{xAlign:o,yAlign:i}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:f}=(0,n.ay)(s),{x:d,y:h}=t,{width:p,height:b}=e;let g,m,y,v,x,w;return"center"===i?(x=h+b/2,"left"===o?(g=d,m=g-a,v=x+a,w=x-a):(g=d+p,m=g+a,v=x-a,w=x+a),y=g):(m="left"===o?d+Math.max(l,c)+a:"right"===o?d+p-Math.max(u,f)-a:this.caretX,"top"===i?(v=h,x=v-a,g=m-a,y=m+a):(v=h+b,x=v+a,g=m+a,y=m-a),w=v),{x1:g,x2:m,x3:y,y1:v,y2:x,y3:w}}drawTitle(t,e,r){const o=this.title,i=o.length;let a,s,l;if(i){const u=(0,n.aA)(r.rtl,this.x,this.width);for(t.x=Pr(this,r.titleAlign,r),e.textAlign=u.textAlign(r.titleAlign),e.textBaseline="middle",a=(0,n.a0)(r.titleFont),s=r.titleSpacing,e.fillStyle=r.titleColor,e.font=a.string,l=0;l<i;++l)e.fillText(o[l],u.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+s,l+1===i&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,e,r,o,i){const a=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=i,c=(0,n.a0)(i.bodyFont),f=Pr(this,"left",i),d=o.x(f),h=l<c.lineHeight?(c.lineHeight-l)/2:0,p=e.y+h;if(i.usePointStyle){const e={radius:Math.min(u,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},r=o.leftForLtr(d,u)+u/2,c=p+l/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,(0,n.av)(t,e,r,c),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,(0,n.av)(t,e,r,c)}else{t.lineWidth=(0,n.i)(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const e=o.leftForLtr(d,u),r=o.leftForLtr(o.xPlus(d,1),u-2),s=(0,n.ay)(a.borderRadius);Object.values(s).some(t=>0!==t)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,(0,n.aw)(t,{x:e,y:p,w:u,h:l,radius:s}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),(0,n.aw)(t,{x:r,y:p+1,w:u-2,h:l-2,radius:s}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(e,p,u,l),t.strokeRect(e,p,u,l),t.fillStyle=a.backgroundColor,t.fillRect(r,p+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,e,r){const{body:o}=this,{bodySpacing:i,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:u,boxPadding:c}=r,f=(0,n.a0)(r.bodyFont);let d=f.lineHeight,h=0;const p=(0,n.aA)(r.rtl,this.x,this.width),b=function(r){e.fillText(r,p.x(t.x+h),t.y+d/2),t.y+=d+i},g=p.textAlign(a);let m,y,v,x,w,j,O;for(e.textAlign=a,e.textBaseline="middle",e.font=f.string,t.x=Pr(this,g,r),e.fillStyle=r.bodyColor,(0,n.F)(this.beforeBody,b),h=s&&"right"!==g?"center"===a?u/2+c:u+2+c:0,x=0,j=o.length;x<j;++x){for(m=o[x],y=this.labelTextColors[x],e.fillStyle=y,(0,n.F)(m.before,b),v=m.lines,s&&v.length&&(this._drawColorBox(e,t,x,p,r),d=Math.max(f.lineHeight,l)),w=0,O=v.length;w<O;++w)b(v[w]),d=f.lineHeight;(0,n.F)(m.after,b)}h=0,d=f.lineHeight,(0,n.F)(this.afterBody,b),t.y-=i}drawFooter(t,e,r){const o=this.footer,i=o.length;let a,s;if(i){const l=(0,n.aA)(r.rtl,this.x,this.width);for(t.x=Pr(this,r.footerAlign,r),t.y+=r.footerMarginTop,e.textAlign=l.textAlign(r.footerAlign),e.textBaseline="middle",a=(0,n.a0)(r.footerFont),e.fillStyle=r.footerColor,e.font=a.string,s=0;s<i;++s)e.fillText(o[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,e,r,o){const{xAlign:i,yAlign:a}=this,{x:s,y:l}=t,{width:u,height:c}=r,{topLeft:f,topRight:d,bottomLeft:h,bottomRight:p}=(0,n.ay)(o.cornerRadius);e.fillStyle=o.backgroundColor,e.strokeStyle=o.borderColor,e.lineWidth=o.borderWidth,e.beginPath(),e.moveTo(s+f,l),"top"===a&&this.drawCaret(t,e,r,o),e.lineTo(s+u-d,l),e.quadraticCurveTo(s+u,l,s+u,l+d),"center"===a&&"right"===i&&this.drawCaret(t,e,r,o),e.lineTo(s+u,l+c-p),e.quadraticCurveTo(s+u,l+c,s+u-p,l+c),"bottom"===a&&this.drawCaret(t,e,r,o),e.lineTo(s+h,l+c),e.quadraticCurveTo(s,l+c,s,l+c-h),"center"===a&&"left"===i&&this.drawCaret(t,e,r,o),e.lineTo(s,l+f),e.quadraticCurveTo(s,l,s+f,l),e.closePath(),e.fill(),o.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,r=this.$animations,n=r&&r.x,o=r&&r.y;if(n||o){const r=yr[t.position].call(this,this._active,this._eventPosition);if(!r)return;const i=this._size=jr(this,t),a=Object.assign({},r,this._size),s=_r(e,t,a),l=Sr(t,a,s,e);n._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(e);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=(0,n.E)(e.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,o,e),(0,n.aB)(t,e.textDirection),i.y+=a.top,this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),(0,n.aD)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const r=this._active,o=t.map(({datasetIndex:t,index:e})=>{const r=this.chart.getDatasetMeta(t);if(!r)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:r.data[e],index:e}}),i=!(0,n.ai)(r,o),a=this._positionChanged(o,e);(i||a)&&(this._active=o,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,r=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],a=this._getActiveElements(t,i,e,r),s=this._positionChanged(a,t),l=e||!(0,n.ai)(a,i)||s;return l&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,r,n){const o=this.options;if("mouseout"===t.type)return[];if(!n)return e.filter(t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index));const i=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&i.reverse(),i}_positionChanged(t,e){const{caretX:r,caretY:n,options:o}=this,i=yr[o.position].call(this,t,e);return!1!==i&&(r!==i.x||n!==i.y)}}var Tr={id:"tooltip",_element:Dr,positioners:yr,afterInit(t,e,r){r&&(t.tooltip=new Dr({chart:t,options:r}))},beforeUpdate(t,e,r){t.tooltip&&t.tooltip.initialize(r)},reset(t,e,r){t.tooltip&&t.tooltip.initialize(r)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const r={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...r,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",r)}},afterEvent(t,e){if(t.tooltip){const r=e.replay;t.tooltip.handleEvent(e.event,r,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Cr},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Ir=Object.freeze({__proto__:null,Colors:We,Decimation:Ke,Filler:ur,Legend:hr,SubTitle:mr,Title:br,Tooltip:Tr});function Er(t,e,r,n){const o=t.indexOf(e);if(-1===o)return((t,e,r,n)=>("string"===typeof e?(r=t.push(e)-1,n.unshift({index:r,label:e})):isNaN(e)&&(r=null),r))(t,e,r,n);return o!==t.lastIndexOf(e)?r:o}function Fr(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Lr extends It{static id="category";static defaults={ticks:{callback:Fr}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:r,label:n}of e)t[r]===n&&t.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,e){if((0,n.k)(t))return null;const r=this.getLabels();return((t,e)=>null===t?null:(0,n.S)(Math.round(t),0,e))(e=isFinite(e)&&r[e]===t?e:Er(r,t,(0,n.v)(e,t),this._addedLabels),r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:r,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(r=0),e||(n=this.getLabels().length-1)),this.min=r,this.max=n}buildTicks(){const t=this.min,e=this.max,r=this.options.offset,n=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let i=t;i<=e;i++)n.push({value:i});return n}getLabelForValue(t){return Fr.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!==typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function zr(t,e,{horizontal:r,minRotation:o}){const i=(0,n.t)(o),a=(r?Math.sin(i):Math.cos(i))||.001,s=.75*e*(""+t).length;return Math.min(e/a,s)}class Nr extends It{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return(0,n.k)(t)||("number"===typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:r}=this.getUserBounds();let{min:o,max:i}=this;const a=t=>o=e?o:t,s=t=>i=r?i:t;if(t){const t=(0,n.s)(o),e=(0,n.s)(i);t<0&&e<0?s(0):t>0&&e>0&&a(0)}if(o===i){let e=0===i?1:Math.abs(.05*i);s(i+e),t||a(o-e)}this.min=o,this.max=i}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:r,stepSize:n}=t;return n?(e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const o=function(t,e){const r=[],{bounds:o,step:i,min:a,max:s,precision:l,count:u,maxTicks:c,maxDigits:f,includeBounds:d}=t,h=i||1,p=c-1,{min:b,max:g}=e,m=!(0,n.k)(a),y=!(0,n.k)(s),v=!(0,n.k)(u),x=(g-b)/(f+1);let w,j,O,_,S=(0,n.aI)((g-b)/p/h)*h;if(S<1e-14&&!m&&!y)return[{value:b},{value:g}];_=Math.ceil(g/S)-Math.floor(b/S),_>p&&(S=(0,n.aI)(_*S/p/h)*h),(0,n.k)(l)||(w=Math.pow(10,l),S=Math.ceil(S*w)/w),"ticks"===o?(j=Math.floor(b/S)*S,O=Math.ceil(g/S)*S):(j=b,O=g),m&&y&&i&&(0,n.aJ)((s-a)/i,S/1e3)?(_=Math.round(Math.min((s-a)/S,c)),S=(s-a)/_,j=a,O=s):v?(j=m?a:j,O=y?s:O,_=u-1,S=(O-j)/_):(_=(O-j)/S,_=(0,n.aK)(_,Math.round(_),S/1e3)?Math.round(_):Math.ceil(_));const P=Math.max((0,n.aL)(S),(0,n.aL)(j));w=Math.pow(10,(0,n.k)(l)?P:l),j=Math.round(j*w)/w,O=Math.round(O*w)/w;let M=0;for(m&&(d&&j!==a?(r.push({value:a}),j<a&&M++,(0,n.aK)(Math.round((j+M*S)*w)/w,a,zr(a,x,t))&&M++):j<a&&M++);M<_;++M){const t=Math.round((j+M*S)*w)/w;if(y&&t>s)break;r.push({value:t})}return y&&d&&O!==s?r.length&&(0,n.aK)(r[r.length-1].value,s,zr(s,x,t))?r[r.length-1].value=s:r.push({value:s}):y&&O!==s||r.push({value:O}),r}({maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&(0,n.aH)(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let e=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const n=(r-e)/Math.max(t.length-1,1)/2;e-=n,r+=n}this._startValue=e,this._endValue=r,this._valueRange=r-e}getLabelForValue(t){return(0,n.o)(t,this.chart.options.locale,this.options.ticks.format)}}class Vr extends Nr{static id="linear";static defaults={ticks:{callback:n.aM.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,n.g)(t)?t:0,this.max=(0,n.g)(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,r=(0,n.t)(this.options.ticks.minRotation),o=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,i.lineHeight/o))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const Br=t=>Math.floor((0,n.aN)(t)),Rr=(t,e)=>Math.pow(10,Br(t)+e);function Wr(t){return 1===t/Math.pow(10,Br(t))}function Hr(t,e,r){const n=Math.pow(10,r),o=Math.floor(t/n);return Math.ceil(e/n)-o}function Ur(t,{min:e,max:r}){e=(0,n.O)(t.min,e);const o=[],i=Br(e);let a=function(t,e){let r=Br(e-t);for(;Hr(t,e,r)>10;)r++;for(;Hr(t,e,r)<10;)r--;return Math.min(r,Br(t))}(e,r),s=a<0?Math.pow(10,Math.abs(a)):1;const l=Math.pow(10,a),u=i>a?Math.pow(10,i):0,c=Math.round((e-u)*s)/s,f=Math.floor((e-u)/l/10)*l*10;let d=Math.floor((c-f)/Math.pow(10,a)),h=(0,n.O)(t.min,Math.round((u+f+d*Math.pow(10,a))*s)/s);for(;h<r;)o.push({value:h,major:Wr(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,s=a>=0?1:s),h=Math.round((u+f+d*Math.pow(10,a))*s)/s;const p=(0,n.O)(t.max,h);return o.push({value:p,major:Wr(p),significand:d}),o}class Kr extends It{static id="logarithmic";static defaults={ticks:{callback:n.aM.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const r=Nr.prototype.parse.apply(this,[t,e]);if(0!==r)return(0,n.g)(r)&&r>0?r:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,n.g)(t)?Math.max(0,t):null,this.max=(0,n.g)(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!(0,n.g)(this._userMin)&&(this.min=t===Rr(this.min,0)?Rr(this.min,-1):Rr(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let r=this.min,n=this.max;const o=e=>r=t?r:e,i=t=>n=e?n:t;r===n&&(r<=0?(o(1),i(10)):(o(Rr(r,-1)),i(Rr(n,1)))),r<=0&&o(Rr(n,-1)),n<=0&&i(Rr(r,1)),this.min=r,this.max=n}buildTicks(){const t=this.options,e=Ur({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&(0,n.aH)(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":(0,n.o)(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=(0,n.aN)(t),this._valueRange=(0,n.aN)(this.max)-(0,n.aN)(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:((0,n.aN)(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function $r(t){const e=t.ticks;if(e.display&&t.display){const t=(0,n.E)(e.backdropPadding);return(0,n.v)(e.font&&e.font.size,n.d.font.size)+t.height}return 0}function qr(t,e,r){return r=(0,n.b)(r)?r:[r],{w:(0,n.aO)(t,e.string,r),h:r.length*e.lineHeight}}function Yr(t,e,r,n,o){return t===n||t===o?{start:e-r/2,end:e+r/2}:t<n||t>o?{start:e-r,end:e}:{start:e,end:e+r}}function Gr(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},r=Object.assign({},e),o=[],i=[],a=t._pointLabels.length,s=t.options.pointLabels,l=s.centerPointLabels?n.P/a:0;for(let u=0;u<a;u++){const a=s.setContext(t.getPointLabelContext(u));i[u]=a.padding;const c=t.getPointPosition(u,t.drawingArea+i[u],l),f=(0,n.a0)(a.font),d=qr(t.ctx,f,t._pointLabels[u]);o[u]=d;const h=(0,n.al)(t.getIndexAngle(u)+l),p=Math.round((0,n.U)(h));Xr(r,e,h,Yr(p,c.x,d.w,0,180),Yr(p,c.y,d.h,90,270))}t.setCenterPoint(e.l-r.l,r.r-e.r,e.t-r.t,r.b-e.b),t._pointLabelItems=function(t,e,r){const o=[],i=t._pointLabels.length,a=t.options,{centerPointLabels:s,display:l}=a.pointLabels,u={extra:$r(a)/2,additionalAngle:s?n.P/i:0};let c;for(let n=0;n<i;n++){u.padding=r[n],u.size=e[n];const i=Qr(t,n,u);o.push(i),"auto"===l&&(i.visible=Zr(i,c),i.visible&&(c=i))}return o}(t,o,i)}function Xr(t,e,r,n,o){const i=Math.abs(Math.sin(r)),a=Math.abs(Math.cos(r));let s=0,l=0;n.start<e.l?(s=(e.l-n.start)/i,t.l=Math.min(t.l,e.l-s)):n.end>e.r&&(s=(n.end-e.r)/i,t.r=Math.max(t.r,e.r+s)),o.start<e.t?(l=(e.t-o.start)/a,t.t=Math.min(t.t,e.t-l)):o.end>e.b&&(l=(o.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function Qr(t,e,r){const o=t.drawingArea,{extra:i,additionalAngle:a,padding:s,size:l}=r,u=t.getPointPosition(e,o+i+s,a),c=Math.round((0,n.U)((0,n.al)(u.angle+n.H))),f=function(t,e,r){90===r||270===r?t-=e/2:(r>270||r<90)&&(t-=e);return t}(u.y,l.h,c),d=function(t){if(0===t||180===t)return"center";if(t<180)return"left";return"right"}(c),h=function(t,e,r){"right"===r?t-=e:"center"===r&&(t-=e/2);return t}(u.x,l.w,d);return{visible:!0,x:u.x,y:f,textAlign:d,left:h,top:f,right:h+l.w,bottom:f+l.h}}function Zr(t,e){if(!e)return!0;const{left:r,top:o,right:i,bottom:a}=t;return!((0,n.C)({x:r,y:o},e)||(0,n.C)({x:r,y:a},e)||(0,n.C)({x:i,y:o},e)||(0,n.C)({x:i,y:a},e))}function Jr(t,e,r){const{left:o,top:i,right:a,bottom:s}=r,{backdropColor:l}=e;if(!(0,n.k)(l)){const r=(0,n.ay)(e.borderRadius),u=(0,n.E)(e.backdropPadding);t.fillStyle=l;const c=o-u.left,f=i-u.top,d=a-o+u.width,h=s-i+u.height;Object.values(r).some(t=>0!==t)?(t.beginPath(),(0,n.aw)(t,{x:c,y:f,w:d,h:h,radius:r}),t.fill()):t.fillRect(c,f,d,h)}}function tn(t,e,r,o){const{ctx:i}=t;if(r)i.arc(t.xCenter,t.yCenter,e,0,n.T);else{let r=t.getPointPosition(0,e);i.moveTo(r.x,r.y);for(let n=1;n<o;n++)r=t.getPointPosition(n,e),i.lineTo(r.x,r.y)}}class en extends Nr{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:n.aM.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=(0,n.E)($r(this.options)/2),e=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(e,r)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=(0,n.g)(t)&&!isNaN(t)?t:0,this.max=(0,n.g)(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/$r(this.options))}generateTickLabels(t){Nr.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const r=(0,n.Q)(this.options.pointLabels.callback,[t,e],this);return r||0===r?r:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?Gr(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,r,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((r-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,r,n))}getIndexAngle(t){const e=n.T/(this._pointLabels.length||1),r=this.options.startAngle||0;return(0,n.al)(t*e+(0,n.t)(r))}getDistanceFromCenterForValue(t){if((0,n.k)(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if((0,n.k)(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const r=e[t];return function(t,e,r){return(0,n.j)(t,{label:r,index:e,type:"pointLabel"})}(this.getContext(),t,r)}}getPointPosition(t,e,r=0){const o=this.getIndexAngle(t)-n.H+r;return{x:Math.cos(o)*e+this.xCenter,y:Math.sin(o)*e+this.yCenter,angle:o}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:r,right:n,bottom:o}=this._pointLabelItems[t];return{left:e,top:r,right:n,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),tn(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:r,grid:o,border:i}=e,a=this._pointLabels.length;let s,l,u;if(e.pointLabels.display&&function(t,e){const{ctx:r,options:{pointLabels:o}}=t;for(let i=e-1;i>=0;i--){const e=t._pointLabelItems[i];if(!e.visible)continue;const a=o.setContext(t.getPointLabelContext(i));Jr(r,a,e);const s=(0,n.a0)(a.font),{x:l,y:u,textAlign:c}=e;(0,n.Z)(r,t._pointLabels[i],l,u+s.lineHeight/2,s,{color:a.color,textAlign:c,textBaseline:"middle"})}}(this,a),o.display&&this.ticks.forEach((t,e)=>{if(0!==e||0===e&&this.min<0){l=this.getDistanceFromCenterForValue(t.value);const r=this.getContext(e),n=o.setContext(r),s=i.setContext(r);!function(t,e,r,n,o){const i=t.ctx,a=e.circular,{color:s,lineWidth:l}=e;!a&&!n||!s||!l||r<0||(i.save(),i.strokeStyle=s,i.lineWidth=l,i.setLineDash(o.dash||[]),i.lineDashOffset=o.dashOffset,i.beginPath(),tn(t,r,a,n),i.closePath(),i.stroke(),i.restore())}(this,n,l,a,s)}}),r.display){for(t.save(),s=a-1;s>=0;s--){const n=r.setContext(this.getPointLabelContext(s)),{color:o,lineWidth:i}=n;i&&o&&(t.lineWidth=i,t.strokeStyle=o,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,l=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),u=this.getPointPosition(s,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(u.x,u.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,r=e.ticks;if(!r.display)return;const o=this.getIndexAngle(0);let i,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((o,s)=>{if(0===s&&this.min>=0&&!e.reverse)return;const l=r.setContext(this.getContext(s)),u=(0,n.a0)(l.font);if(i=this.getDistanceFromCenterForValue(this.ticks[s].value),l.showLabelBackdrop){t.font=u.string,a=t.measureText(o.label).width,t.fillStyle=l.backdropColor;const e=(0,n.E)(l.backdropPadding);t.fillRect(-a/2-e.left,-i-u.size/2-e.top,a+e.width,u.size+e.height)}(0,n.Z)(t,o.label,0,-i,u,{color:l.color,strokeColor:l.textStrokeColor,strokeWidth:l.textStrokeWidth})}),t.restore()}drawTitle(){}}const rn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},nn=Object.keys(rn);function on(t,e){return t-e}function an(t,e){if((0,n.k)(e))return null;const r=t._adapter,{parser:o,round:i,isoWeekday:a}=t._parseOpts;let s=e;return"function"===typeof o&&(s=o(s)),(0,n.g)(s)||(s="string"===typeof o?r.parse(s,o):r.parse(s)),null===s?null:(i&&(s="week"!==i||!(0,n.x)(a)&&!0!==a?r.startOf(s,i):r.startOf(s,"isoWeek",a)),+s)}function sn(t,e,r,n){const o=nn.length;for(let i=nn.indexOf(t);i<o-1;++i){const t=rn[nn[i]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((r-e)/(o*t.size))<=n)return nn[i]}return nn[o-1]}function ln(t,e,r){if(r){if(r.length){const{lo:o,hi:i}=(0,n.aQ)(r,e);t[r[o]>=e?r[o]:r[i]]=!0}}else t[e]=!0}function un(t,e,r){const n=[],o={},i=e.length;let a,s;for(a=0;a<i;++a)s=e[a],o[s]=a,n.push({value:s,major:!1});return 0!==i&&r?function(t,e,r,n){const o=t._adapter,i=+o.startOf(e[0].value,n),a=e[e.length-1].value;let s,l;for(s=i;s<=a;s=+o.add(s,1,n))l=r[s],l>=0&&(e[l].major=!0);return e}(t,n,o,r):n}class cn extends It{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const r=t.time||(t.time={}),o=this._adapter=new V._date(t.adapters.date);o.init(e),(0,n.ab)(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:an(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,r=t.time.unit||"day";let{min:o,max:i,minDefined:a,maxDefined:s}=this.getUserBounds();function l(t){a||isNaN(t.min)||(o=Math.min(o,t.min)),s||isNaN(t.max)||(i=Math.max(i,t.max))}a&&s||(l(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(this.getMinMax(!1))),o=(0,n.g)(o)&&!isNaN(o)?o:+e.startOf(Date.now(),r),i=(0,n.g)(i)&&!isNaN(i)?i:+e.endOf(Date.now(),r)+1,this.min=Math.min(o,i-1),this.max=Math.max(o+1,i)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],r=t[t.length-1]),{min:e,max:r}}buildTicks(){const t=this.options,e=t.time,r=t.ticks,o="labels"===r.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const i=this.min,a=this.max,s=(0,n.aP)(o,i,a);return this._unit=e.unit||(r.autoSkip?sn(e.minUnit,this.min,this.max,this._getLabelCapacity(i)):function(t,e,r,n,o){for(let i=nn.length-1;i>=nn.indexOf(r);i--){const r=nn[i];if(rn[r].common&&t._adapter.diff(o,n,r)>=e-1)return r}return nn[r?nn.indexOf(r):0]}(this,s.length,e.minUnit,this.min,this.max)),this._majorUnit=r.major.enabled&&"year"!==this._unit?function(t){for(let e=nn.indexOf(t)+1,r=nn.length;e<r;++e)if(rn[nn[e]].common)return nn[e]}(this._unit):void 0,this.initOffsets(o),t.reverse&&s.reverse(),un(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let e,r,o=0,i=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),o=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,r=this.getDecimalForValue(t[t.length-1]),i=1===t.length?r:(r-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;o=(0,n.S)(o,0,a),i=(0,n.S)(i,0,a),this._offsets={start:o,end:i,factor:1/(o+1+i)}}_generate(){const t=this._adapter,e=this.min,r=this.max,o=this.options,i=o.time,a=i.unit||sn(i.minUnit,e,r,this._getLabelCapacity(e)),s=(0,n.v)(o.ticks.stepSize,1),l="week"===a&&i.isoWeekday,u=(0,n.x)(l)||!0===l,c={};let f,d,h=e;if(u&&(h=+t.startOf(h,"isoWeek",l)),h=+t.startOf(h,u?"day":a),t.diff(r,e,a)>1e5*s)throw new Error(e+" and "+r+" are too far apart with stepSize of "+s+" "+a);const p="data"===o.ticks.source&&this.getDataTimestamps();for(f=h,d=0;f<r;f=+t.add(f,s,a),d++)ln(c,f,p);return f!==r&&"ticks"!==o.bounds&&1!==d||ln(c,f,p),Object.keys(c).sort(on).map(t=>+t)}getLabelForValue(t){const e=this._adapter,r=this.options.time;return r.tooltipFormat?e.format(t,r.tooltipFormat):e.format(t,r.displayFormats.datetime)}format(t,e){const r=this.options.time.displayFormats,n=this._unit,o=e||r[n];return this._adapter.format(t,o)}_tickFormatFunction(t,e,r,o){const i=this.options,a=i.ticks.callback;if(a)return(0,n.Q)(a,[t,e,r],this);const s=i.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&s[l],f=u&&s[u],d=r[e],h=u&&f&&d&&d.major;return this._adapter.format(t,o||(h?f:c))}generateTickLabels(t){let e,r,n;for(e=0,r=t.length;e<r;++e)n=t[e],n.label=this._tickFormatFunction(n.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+r)*e.factor)}getValueForPixel(t){const e=this._offsets,r=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,r=this.ctx.measureText(t).width,o=(0,n.t)(this.isHorizontal()?e.maxRotation:e.minRotation),i=Math.cos(o),a=Math.sin(o),s=this._resolveTickFontOptions(0).size;return{w:r*i+s*a,h:r*a+s*i}}_getLabelCapacity(t){const e=this.options.time,r=e.displayFormats,n=r[e.unit]||r.millisecond,o=this._tickFormatFunction(t,0,un(this,[t],this._majorUnit),n),i=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/i.w:this.height/i.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,r=this._cache.data||[];if(r.length)return r;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(t=0,e=n.length;t<e;++t)r=r.concat(n[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(r)}getLabelTimestamps(){const t=this._cache.labels||[];let e,r;if(t.length)return t;const n=this.getLabels();for(e=0,r=n.length;e<r;++e)t.push(an(this,n[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return(0,n._)(t.sort(on))}}function fn(t,e,r){let o,i,a,s,l=0,u=t.length-1;r?(e>=t[l].pos&&e<=t[u].pos&&({lo:l,hi:u}=(0,n.B)(t,"pos",e)),({pos:o,time:a}=t[l]),({pos:i,time:s}=t[u])):(e>=t[l].time&&e<=t[u].time&&({lo:l,hi:u}=(0,n.B)(t,"time",e)),({time:o,pos:a}=t[l]),({time:i,pos:s}=t[u]));const c=i-o;return c?a+(s-a)*(e-o)/c:a}const dn=[L,Fe,Ir,Object.freeze({__proto__:null,CategoryScale:Lr,LinearScale:Vr,LogarithmicScale:Kr,RadialLinearScale:en,TimeScale:cn,TimeSeriesScale:class extends cn{static id="timeseries";static defaults=cn.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=fn(e,this.min),this._tableRange=fn(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:r}=this,n=[],o=[];let i,a,s,l,u;for(i=0,a=t.length;i<a;++i)l=t[i],l>=e&&l<=r&&n.push(l);if(n.length<2)return[{time:e,pos:0},{time:r,pos:1}];for(i=0,a=n.length;i<a;++i)u=n[i+1],s=n[i-1],l=n[i],Math.round((u+s)/2)!==l&&o.push({time:l,pos:i/(a-1)});return o}_generate(){const t=this.min,e=this.max;let r=super.getDataTimestamps();return r.includes(t)&&r.length||r.splice(0,0,t),r.includes(e)&&1!==r.length||r.push(e),r.sort((t,e)=>t-e)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),r=this.getLabelTimestamps();return t=e.length&&r.length?this.normalize(e.concat(r)):e.length?e:r,t=this._cache.all=t,t}getDecimalForValue(t){return(fn(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,r=this.getDecimalForPixel(t)/e.factor-e.end;return fn(this._table,r*this._tableRange+this._minPos,!0)}}})]},81692(t,e,r){"use strict";function n(t){return t+.5|0}r.d(e,{$:()=>_e,A:()=>zt,B:()=>Lt,C:()=>je,D:()=>Mt,E:()=>Ne,F:()=>q,G:()=>yr,H:()=>ht,I:()=>fr,J:()=>wr,K:()=>xr,L:()=>Ut,M:()=>cr,N:()=>xt,O:()=>W,P:()=>lt,Q:()=>$,R:()=>Re,S:()=>Tt,T:()=>ut,U:()=>St,V:()=>ge,W:()=>It,X:()=>ye,Y:()=>Oe,Z:()=>Ce,_:()=>Wt,a:()=>Be,a0:()=>Ve,a1:()=>$t,a2:()=>qt,a3:()=>ce,a4:()=>Z,a5:()=>nt,a6:()=>fe,a7:()=>it,a8:()=>Ue,a9:()=>He,aA:()=>Sr,aB:()=>Pr,aC:()=>Yt,aD:()=>Mr,aE:()=>we,aF:()=>kt,aG:()=>L,aH:()=>Ot,aI:()=>vt,aJ:()=>jt,aK:()=>yt,aL:()=>Pt,aM:()=>ue,aN:()=>gt,aO:()=>me,aP:()=>Nt,aQ:()=>Ft,aa:()=>Ke,ab:()=>J,ac:()=>z,ad:()=>Kt,ae:()=>vr,af:()=>ve,ag:()=>at,ah:()=>zr,ai:()=>Y,aj:()=>st,ak:()=>Et,al:()=>At,am:()=>Fe,an:()=>ur,ao:()=>Tr,ap:()=>Dr,aq:()=>Or,ar:()=>_r,as:()=>jr,at:()=>Se,au:()=>Pe,av:()=>xe,aw:()=>Ae,ax:()=>Le,ay:()=>ze,az:()=>Ar,b:()=>V,b4:()=>dt,b5:()=>pt,b6:()=>bt,c:()=>re,d:()=>be,e:()=>te,f:()=>rt,g:()=>R,h:()=>ot,i:()=>B,j:()=>We,k:()=>N,l:()=>Bt,m:()=>U,n:()=>K,o:()=>se,p:()=>Dt,q:()=>Gt,r:()=>Ht,s:()=>mt,t:()=>_t,u:()=>Rt,v:()=>H,w:()=>Xt,x:()=>wt,y:()=>rr,z:()=>gr});const o=(t,e,r)=>Math.max(Math.min(t,r),e);function i(t){return o(n(2.55*t),0,255)}function a(t){return o(n(255*t),0,255)}function s(t){return o(n(t/2.55)/100,0,1)}function l(t){return o(n(100*t),0,100)}const u={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},c=[..."0123456789ABCDEF"],f=t=>c[15&t],d=t=>c[(240&t)>>4]+c[15&t],h=t=>(240&t)>>4===(15&t);function p(t){var e=(t=>h(t.r)&&h(t.g)&&h(t.b)&&h(t.a))(t)?f:d;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const b=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function g(t,e,r){const n=e*Math.min(r,1-r),o=(e,o=(e+t/30)%12)=>r-n*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function m(t,e,r){const n=(n,o=(n+t/60)%6)=>r-r*e*Math.max(Math.min(o,4-o,1),0);return[n(5),n(3),n(1)]}function y(t,e,r){const n=g(t,1,.5);let o;for(e+r>1&&(o=1/(e+r),e*=o,r*=o),o=0;o<3;o++)n[o]*=1-e-r,n[o]+=e;return n}function v(t){const e=t.r/255,r=t.g/255,n=t.b/255,o=Math.max(e,r,n),i=Math.min(e,r,n),a=(o+i)/2;let s,l,u;return o!==i&&(u=o-i,l=a>.5?u/(2-o-i):u/(o+i),s=function(t,e,r,n,o){return t===o?(e-r)/n+(e<r?6:0):e===o?(r-t)/n+2:(t-e)/n+4}(e,r,n,u,o),s=60*s+.5),[0|s,l||0,a]}function x(t,e,r,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,r,n)).map(a)}function w(t,e,r){return x(g,t,e,r)}function j(t){return(t%360+360)%360}function O(t){const e=b.exec(t);let r,n=255;if(!e)return;e[5]!==r&&(n=e[6]?i(+e[5]):a(+e[5]));const o=j(+e[2]),s=+e[3]/100,l=+e[4]/100;return r="hwb"===e[1]?function(t,e,r){return x(y,t,e,r)}(o,s,l):"hsv"===e[1]?function(t,e,r){return x(m,t,e,r)}(o,s,l):w(o,s,l),{r:r[0],g:r[1],b:r[2],a:n}}const _={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},S={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let P;function M(t){P||(P=function(){const t={},e=Object.keys(S),r=Object.keys(_);let n,o,i,a,s;for(n=0;n<e.length;n++){for(a=s=e[n],o=0;o<r.length;o++)i=r[o],s=s.replace(i,_[i]);i=parseInt(S[a],16),t[s]=[i>>16&255,i>>8&255,255&i]}return t}(),P.transparent=[0,0,0,0]);const e=P[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const k=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const C=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,A=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function D(t,e,r){if(t){let n=v(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*r,0===e?360:1)),n=w(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function T(t,e){return t?Object.assign(e||{},t):t}function I(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=a(t[3]))):(e=T(t,{r:0,g:0,b:0,a:1})).a=a(e.a),e}function E(t){return"r"===t.charAt(0)?function(t){const e=k.exec(t);let r,n,a,s=255;if(e){if(e[7]!==r){const t=+e[7];s=e[8]?i(t):o(255*t,0,255)}return r=+e[1],n=+e[3],a=+e[5],r=255&(e[2]?i(r):o(r,0,255)),n=255&(e[4]?i(n):o(n,0,255)),a=255&(e[6]?i(a):o(a,0,255)),{r:r,g:n,b:a,a:s}}}(t):O(t)}class F{constructor(t){if(t instanceof F)return t;const e=typeof t;let r;"object"===e?r=I(t):"string"===e&&(r=function(t){var e,r=t.length;return"#"===t[0]&&(4===r||5===r?e={r:255&17*u[t[1]],g:255&17*u[t[2]],b:255&17*u[t[3]],a:5===r?17*u[t[4]]:255}:7!==r&&9!==r||(e={r:u[t[1]]<<4|u[t[2]],g:u[t[3]]<<4|u[t[4]],b:u[t[5]]<<4|u[t[6]],a:9===r?u[t[7]]<<4|u[t[8]]:255})),e}(t)||M(t)||E(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=T(this._rgb);return t&&(t.a=s(t.a)),t}set rgb(t){this._rgb=I(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${s(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?p(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=v(t),r=e[0],n=l(e[1]),o=l(e[2]);return t.a<255?`hsla(${r}, ${n}%, ${o}%, ${s(t.a)})`:`hsl(${r}, ${n}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const r=this.rgb,n=t.rgb;let o;const i=e===o?.5:e,a=2*i-1,s=r.a-n.a,l=((a*s===-1?a:(a+s)/(1+a*s))+1)/2;o=1-l,r.r=255&l*r.r+o*n.r+.5,r.g=255&l*r.g+o*n.g+.5,r.b=255&l*r.b+o*n.b+.5,r.a=i*r.a+(1-i)*n.a,this.rgb=r}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,r){const n=A(s(t.r)),o=A(s(t.g)),i=A(s(t.b));return{r:a(C(n+r*(A(s(e.r))-n))),g:a(C(o+r*(A(s(e.g))-o))),b:a(C(i+r*(A(s(e.b))-i))),a:t.a+r*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new F(this.rgb)}alpha(t){return this._rgb.a=a(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=n(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return D(this._rgb,2,t),this}darken(t){return D(this._rgb,2,-t),this}saturate(t){return D(this._rgb,1,t),this}desaturate(t){return D(this._rgb,1,-t),this}rotate(t){return function(t,e){var r=v(t);r[0]=j(r[0]+e),r=w(r),t.r=r[0],t.g=r[1],t.b=r[2]}(this._rgb,t),this}}function L(){}const z=(()=>{let t=0;return()=>t++})();function N(t){return null===t||void 0===t}function V(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function B(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function R(t){return("number"===typeof t||t instanceof Number)&&isFinite(+t)}function W(t,e){return R(t)?t:e}function H(t,e){return"undefined"===typeof t?e:t}const U=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e,K=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function $(t,e,r){if(t&&"function"===typeof t.call)return t.apply(r,e)}function q(t,e,r,n){let o,i,a;if(V(t))if(i=t.length,n)for(o=i-1;o>=0;o--)e.call(r,t[o],o);else for(o=0;o<i;o++)e.call(r,t[o],o);else if(B(t))for(a=Object.keys(t),i=a.length,o=0;o<i;o++)e.call(r,t[a[o]],a[o])}function Y(t,e){let r,n,o,i;if(!t||!e||t.length!==e.length)return!1;for(r=0,n=t.length;r<n;++r)if(o=t[r],i=e[r],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function G(t){if(V(t))return t.map(G);if(B(t)){const e=Object.create(null),r=Object.keys(t),n=r.length;let o=0;for(;o<n;++o)e[r[o]]=G(t[r[o]]);return e}return t}function X(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function Q(t,e,r,n){if(!X(t))return;const o=e[t],i=r[t];B(o)&&B(i)?Z(o,i,n):e[t]=G(i)}function Z(t,e,r){const n=V(e)?e:[e],o=n.length;if(!B(t))return t;const i=(r=r||{}).merger||Q;let a;for(let s=0;s<o;++s){if(a=n[s],!B(a))continue;const e=Object.keys(a);for(let n=0,o=e.length;n<o;++n)i(e[n],t,a,r)}return t}function J(t,e){return Z(t,e,{merger:tt})}function tt(t,e,r){if(!X(t))return;const n=e[t],o=r[t];B(n)&&B(o)?J(n,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=G(o))}const et={"":t=>t,x:t=>t.x,y:t=>t.y};function rt(t,e){const r=et[e]||(et[e]=function(t){const e=function(t){const e=t.split("."),r=[];let n="";for(const o of e)n+=o,n.endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}(t);return t=>{for(const r of e){if(""===r)break;t=t&&t[r]}return t}}(e));return r(t)}function nt(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ot=t=>"undefined"!==typeof t,it=t=>"function"===typeof t,at=(t,e)=>{if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0};function st(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const lt=Math.PI,ut=2*lt,ct=ut+lt,ft=Number.POSITIVE_INFINITY,dt=lt/180,ht=lt/2,pt=lt/4,bt=2*lt/3,gt=Math.log10,mt=Math.sign;function yt(t,e,r){return Math.abs(t-e)<r}function vt(t){const e=Math.round(t);t=yt(t,e,t/1e3)?e:t;const r=Math.pow(10,Math.floor(gt(t))),n=t/r;return(n<=1?1:n<=2?2:n<=5?5:10)*r}function xt(t){const e=[],r=Math.sqrt(t);let n;for(n=1;n<r;n++)t%n===0&&(e.push(n),e.push(t/n));return r===(0|r)&&e.push(r),e.sort((t,e)=>t-e).pop(),e}function wt(t){return!function(t){return"symbol"===typeof t||"object"===typeof t&&null!==t&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function jt(t,e){const r=Math.round(t);return r-e<=t&&r+e>=t}function Ot(t,e,r){let n,o,i;for(n=0,o=t.length;n<o;n++)i=t[n][r],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function _t(t){return t*(lt/180)}function St(t){return t*(180/lt)}function Pt(t){if(!R(t))return;let e=1,r=0;for(;Math.round(t*e)/e!==t;)e*=10,r++;return r}function Mt(t,e){const r=e.x-t.x,n=e.y-t.y,o=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i<-.5*lt&&(i+=ut),{angle:i,distance:o}}function kt(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ct(t,e){return(t-e+ct)%ut-lt}function At(t){return(t%ut+ut)%ut}function Dt(t,e,r,n){const o=At(t),i=At(e),a=At(r),s=At(i-o),l=At(a-o),u=At(o-i),c=At(o-a);return o===i||o===a||n&&i===a||s>l&&u<c}function Tt(t,e,r){return Math.max(e,Math.min(r,t))}function It(t){return Tt(t,-32768,32767)}function Et(t,e,r,n=1e-6){return t>=Math.min(e,r)-n&&t<=Math.max(e,r)+n}function Ft(t,e,r){r=r||(r=>t[r]<e);let n,o=t.length-1,i=0;for(;o-i>1;)n=i+o>>1,r(n)?i=n:o=n;return{lo:i,hi:o}}const Lt=(t,e,r,n)=>Ft(t,r,n?n=>{const o=t[n][e];return o<r||o===r&&t[n+1][e]===r}:n=>t[n][e]<r),zt=(t,e,r)=>Ft(t,r,n=>t[n][e]>=r);function Nt(t,e,r){let n=0,o=t.length;for(;n<o&&t[n]<e;)n++;for(;o>n&&t[o-1]>r;)o--;return n>0||o<t.length?t.slice(n,o):t}const Vt=["push","pop","shift","splice","unshift"];function Bt(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Vt.forEach(e=>{const r="_onData"+nt(e),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const o=n.apply(this,e);return t._chartjs.listeners.forEach(t=>{"function"===typeof t[r]&&t[r](...e)}),o}})}))}function Rt(t,e){const r=t._chartjs;if(!r)return;const n=r.listeners,o=n.indexOf(e);-1!==o&&n.splice(o,1),n.length>0||(Vt.forEach(e=>{delete t[e]}),delete t._chartjs)}function Wt(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Ht="undefined"===typeof window?function(t){return t()}:window.requestAnimationFrame;function Ut(t,e){let r=[],n=!1;return function(...o){r=o,n||(n=!0,Ht.call(window,()=>{n=!1,t.apply(e,r)}))}}function Kt(t,e){let r;return function(...n){return e?(clearTimeout(r),r=setTimeout(t,e,n)):t.apply(this,n),e}}const $t=t=>"start"===t?"left":"end"===t?"right":"center",qt=(t,e,r)=>"start"===t?e:"end"===t?r:(e+r)/2,Yt=(t,e,r,n)=>t===(n?"left":"right")?r:"center"===t?(e+r)/2:e;function Gt(t,e,r){const n=e.length;let o=0,i=n;if(t._sorted){const{iScale:a,vScale:s,_parsed:l}=t,u=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,c=a.axis,{min:f,max:d,minDefined:h,maxDefined:p}=a.getUserBounds();if(h){if(o=Math.min(Lt(l,c,f).lo,r?n:Lt(e,c,a.getPixelForValue(f)).lo),u){const t=l.slice(0,o+1).reverse().findIndex(t=>!N(t[s.axis]));o-=Math.max(0,t)}o=Tt(o,0,n-1)}if(p){let t=Math.max(Lt(l,a.axis,d,!0).hi+1,r?0:Lt(e,c,a.getPixelForValue(d),!0).hi+1);if(u){const e=l.slice(t-1).findIndex(t=>!N(t[s.axis]));t+=Math.max(0,e)}i=Tt(t,o,n)-o}else i=n-o}return{start:o,count:i}}function Xt(t){const{xScale:e,yScale:r,_scaleRanges:n}=t,o={xmin:e.min,xmax:e.max,ymin:r.min,ymax:r.max};if(!n)return t._scaleRanges=o,!0;const i=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,o),i}const Qt=t=>0===t||1===t,Zt=(t,e,r)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*ut/r),Jt=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*ut/r)+1,te={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*ht),easeOutSine:t=>Math.sin(t*ht),easeInOutSine:t=>-.5*(Math.cos(lt*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Qt(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Qt(t)?t:Zt(t,.075,.3),easeOutElastic:t=>Qt(t)?t:Jt(t,.075,.3),easeInOutElastic(t){const e=.1125;return Qt(t)?t:t<.5?.5*Zt(2*t,e,.45):.5+.5*Jt(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-te.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,r=2.75;return t<1/r?e*t*t:t<2/r?e*(t-=1.5/r)*t+.75:t<2.5/r?e*(t-=2.25/r)*t+.9375:e*(t-=2.625/r)*t+.984375},easeInOutBounce:t=>t<.5?.5*te.easeInBounce(2*t):.5*te.easeOutBounce(2*t-1)+.5};function ee(t){if(t&&"object"===typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function re(t){return ee(t)?t:new F(t)}function ne(t){return ee(t)?t:new F(t).saturate(.5).darken(.1).hexString()}const oe=["x","y","borderWidth","radius","tension"],ie=["color","borderColor","backgroundColor"];const ae=new Map;function se(t,e,r){return function(t,e){e=e||{};const r=t+JSON.stringify(e);let n=ae.get(r);return n||(n=new Intl.NumberFormat(t,e),ae.set(r,n)),n}(e,r).format(t)}const le={values:t=>V(t)?t:""+t,numeric(t,e,r){if(0===t)return"0";const n=this.chart.options.locale;let o,i=t;if(r.length>1){const e=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),i=function(t,e){let r=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(r)>=1&&t!==Math.floor(t)&&(r=t-Math.floor(t));return r}(t,r)}const a=gt(Math.abs(i)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),se(t,n,l)},logarithmic(t,e,r){if(0===t)return"0";const n=r[e].significand||t/Math.pow(10,Math.floor(gt(t)));return[1,2,3,5,10,15].includes(n)||e>.8*r.length?le.numeric.call(this,t,e,r):""}};var ue={formatters:le};const ce=Object.create(null),fe=Object.create(null);function de(t,e){if(!e)return t;const r=e.split(".");for(let n=0,o=r.length;n<o;++n){const e=r[n];t=t[e]||(t[e]=Object.create(null))}return t}function he(t,e,r){return"string"===typeof e?Z(de(t,e),r):Z(de(t,""),e)}class pe{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>ne(e.backgroundColor),this.hoverBorderColor=(t,e)=>ne(e.borderColor),this.hoverColor=(t,e)=>ne(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return he(this,t,e)}get(t){return de(this,t)}describe(t,e){return he(fe,t,e)}override(t,e){return he(ce,t,e)}route(t,e,r,n){const o=de(this,t),i=de(this,r),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=i[n];return B(t)?Object.assign({},e,t):H(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach(t=>t(this))}}var be=new pe({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:ie},numbers:{type:"number",properties:oe}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ue.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function ge(t,e,r,n,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,r.push(o)),i>n&&(n=i),n}function me(t,e,r,n){let o=(n=n||{}).data=n.data||{},i=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(o=n.data={},i=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let a=0;const s=r.length;let l,u,c,f,d;for(l=0;l<s;l++)if(f=r[l],void 0===f||null===f||V(f)){if(V(f))for(u=0,c=f.length;u<c;u++)d=f[u],void 0===d||null===d||V(d)||(a=ge(t,o,i,a,d))}else a=ge(t,o,i,a,f);t.restore();const h=i.length/2;if(h>r.length){for(l=0;l<h;l++)delete o[i[l]];i.splice(0,h)}return a}function ye(t,e,r){const n=t.currentDevicePixelRatio,o=0!==r?Math.max(r/2,.5):0;return Math.round((e-o)*n)/n+o}function ve(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function xe(t,e,r,n){we(t,e,r,n,null)}function we(t,e,r,n,o){let i,a,s,l,u,c,f,d;const h=e.pointStyle,p=e.rotation,b=e.radius;let g=(p||0)*dt;if(h&&"object"===typeof h&&(i=h.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return t.save(),t.translate(r,n),t.rotate(g),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void t.restore();if(!(isNaN(b)||b<=0)){switch(t.beginPath(),h){default:o?t.ellipse(r,n,o/2,b,0,0,ut):t.arc(r,n,b,0,ut),t.closePath();break;case"triangle":c=o?o/2:b,t.moveTo(r+Math.sin(g)*c,n-Math.cos(g)*b),g+=bt,t.lineTo(r+Math.sin(g)*c,n-Math.cos(g)*b),g+=bt,t.lineTo(r+Math.sin(g)*c,n-Math.cos(g)*b),t.closePath();break;case"rectRounded":u=.516*b,l=b-u,a=Math.cos(g+pt)*l,f=Math.cos(g+pt)*(o?o/2-u:l),s=Math.sin(g+pt)*l,d=Math.sin(g+pt)*(o?o/2-u:l),t.arc(r-f,n-s,u,g-lt,g-ht),t.arc(r+d,n-a,u,g-ht,g),t.arc(r+f,n+s,u,g,g+ht),t.arc(r-d,n+a,u,g+ht,g+lt),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*b,c=o?o/2:l,t.rect(r-c,n-l,2*c,2*l);break}g+=pt;case"rectRot":f=Math.cos(g)*(o?o/2:b),a=Math.cos(g)*b,s=Math.sin(g)*b,d=Math.sin(g)*(o?o/2:b),t.moveTo(r-f,n-s),t.lineTo(r+d,n-a),t.lineTo(r+f,n+s),t.lineTo(r-d,n+a),t.closePath();break;case"crossRot":g+=pt;case"cross":f=Math.cos(g)*(o?o/2:b),a=Math.cos(g)*b,s=Math.sin(g)*b,d=Math.sin(g)*(o?o/2:b),t.moveTo(r-f,n-s),t.lineTo(r+f,n+s),t.moveTo(r+d,n-a),t.lineTo(r-d,n+a);break;case"star":f=Math.cos(g)*(o?o/2:b),a=Math.cos(g)*b,s=Math.sin(g)*b,d=Math.sin(g)*(o?o/2:b),t.moveTo(r-f,n-s),t.lineTo(r+f,n+s),t.moveTo(r+d,n-a),t.lineTo(r-d,n+a),g+=pt,f=Math.cos(g)*(o?o/2:b),a=Math.cos(g)*b,s=Math.sin(g)*b,d=Math.sin(g)*(o?o/2:b),t.moveTo(r-f,n-s),t.lineTo(r+f,n+s),t.moveTo(r+d,n-a),t.lineTo(r-d,n+a);break;case"line":a=o?o/2:Math.cos(g)*b,s=Math.sin(g)*b,t.moveTo(r-a,n-s),t.lineTo(r+a,n+s);break;case"dash":t.moveTo(r,n),t.lineTo(r+Math.cos(g)*(o?o/2:b),n+Math.sin(g)*b);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function je(t,e,r){return r=r||.5,!e||t&&t.x>e.left-r&&t.x<e.right+r&&t.y>e.top-r&&t.y<e.bottom+r}function Oe(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function _e(t){t.restore()}function Se(t,e,r,n,o){if(!e)return t.lineTo(r.x,r.y);if("middle"===o){const n=(e.x+r.x)/2;t.lineTo(n,e.y),t.lineTo(n,r.y)}else"after"===o!==!!n?t.lineTo(e.x,r.y):t.lineTo(r.x,e.y);t.lineTo(r.x,r.y)}function Pe(t,e,r,n){if(!e)return t.lineTo(r.x,r.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?r.cp2x:r.cp1x,n?r.cp2y:r.cp1y,r.x,r.y)}function Me(t,e,r,n,o){if(o.strikethrough||o.underline){const i=t.measureText(n),a=e-i.actualBoundingBoxLeft,s=e+i.actualBoundingBoxRight,l=r-i.actualBoundingBoxAscent,u=r+i.actualBoundingBoxDescent,c=o.strikethrough?(l+u)/2:u;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(a,c),t.lineTo(s,c),t.stroke()}}function ke(t,e){const r=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=r}function Ce(t,e,r,n,o,i={}){const a=V(e)?e:[e],s=i.strokeWidth>0&&""!==i.strokeColor;let l,u;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),N(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,i),l=0;l<a.length;++l)u=a[l],i.backdrop&&ke(t,i.backdrop),s&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),N(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(u,r,n,i.maxWidth)),t.fillText(u,r,n,i.maxWidth),Me(t,r,n,u,i),n+=Number(o.lineHeight);t.restore()}function Ae(t,e){const{x:r,y:n,w:o,h:i,radius:a}=e;t.arc(r+a.topLeft,n+a.topLeft,a.topLeft,1.5*lt,lt,!0),t.lineTo(r,n+i-a.bottomLeft),t.arc(r+a.bottomLeft,n+i-a.bottomLeft,a.bottomLeft,lt,ht,!0),t.lineTo(r+o-a.bottomRight,n+i),t.arc(r+o-a.bottomRight,n+i-a.bottomRight,a.bottomRight,ht,0,!0),t.lineTo(r+o,n+a.topRight),t.arc(r+o-a.topRight,n+a.topRight,a.topRight,0,-ht,!0),t.lineTo(r+a.topLeft,n)}const De=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Te=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Ie(t,e){const r=(""+t).match(De);if(!r||"normal"===r[1])return 1.2*e;switch(t=+r[2],r[3]){case"px":return t;case"%":t/=100}return e*t}const Ee=t=>+t||0;function Fe(t,e){const r={},n=B(e),o=n?Object.keys(e):e,i=B(t)?n?r=>H(t[r],t[e[r]]):e=>t[e]:()=>t;for(const a of o)r[a]=Ee(i(a));return r}function Le(t){return Fe(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ze(t){return Fe(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ne(t){const e=Le(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ve(t,e){t=t||{},e=e||be.font;let r=H(t.size,e.size);"string"===typeof r&&(r=parseInt(r,10));let n=H(t.style,e.style);n&&!(""+n).match(Te)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const o={family:H(t.family,e.family),lineHeight:Ie(H(t.lineHeight,e.lineHeight),r),size:r,style:n,weight:H(t.weight,e.weight),string:""};return o.string=function(t){return!t||N(t.size)||N(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function Be(t,e,r,n){let o,i,a,s=!0;for(o=0,i=t.length;o<i;++o)if(a=t[o],void 0!==a&&(void 0!==e&&"function"===typeof a&&(a=a(e),s=!1),void 0!==r&&V(a)&&(a=a[r%a.length],s=!1),void 0!==a))return n&&!s&&(n.cacheable=!1),a}function Re(t,e,r){const{min:n,max:o}=t,i=K(e,(o-n)/2),a=(t,e)=>r&&0===t?0:t+e;return{min:a(n,-Math.abs(i)),max:a(o,i)}}function We(t,e){return Object.assign(Object.create(t),e)}function He(t,e=[""],r,n,o=()=>t[0]){const i=r||t;"undefined"===typeof n&&(n=tr("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:o,override:r=>He([r,...t],e,i,n)};return new Proxy(a,{deleteProperty:(e,r)=>(delete e[r],delete e._keys,delete t[0][r],!0),get:(r,n)=>Ye(r,n,()=>function(t,e,r,n){let o;for(const i of e)if(o=tr($e(i,t),r),"undefined"!==typeof o)return qe(t,o)?Ze(r,n,t,o):o}(n,e,t,r)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>er(t).includes(e),ownKeys:t=>er(t),set(t,e,r){const n=t._storage||(t._storage=o());return t[e]=n[e]=r,delete t._keys,!0}})}function Ue(t,e,r,n){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:r,_stack:new Set,_descriptors:Ke(t,n),setContext:e=>Ue(t,e,r,n),override:o=>Ue(t.override(o),e,r,n)};return new Proxy(o,{deleteProperty:(e,r)=>(delete e[r],delete t[r],!0),get:(t,e,r)=>Ye(t,e,()=>function(t,e,r){const{_proxy:n,_context:o,_subProxy:i,_descriptors:a}=t;let s=n[e];it(s)&&a.isScriptable(e)&&(s=function(t,e,r,n){const{_proxy:o,_context:i,_subProxy:a,_stack:s}=r;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=e(i,a||n);s.delete(t),qe(t,l)&&(l=Ze(o._scopes,o,t,l));return l}(e,s,t,r));V(s)&&s.length&&(s=function(t,e,r,n){const{_proxy:o,_context:i,_subProxy:a,_descriptors:s}=r;if("undefined"!==typeof i.index&&n(t))return e[i.index%e.length];if(B(e[0])){const r=e,n=o._scopes.filter(t=>t!==r);e=[];for(const l of r){const r=Ze(n,o,t,l);e.push(Ue(r,i,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));qe(e,s)&&(s=Ue(s,o,i&&i[e],a));return s}(t,e,r)),getOwnPropertyDescriptor:(e,r)=>e._descriptors.allKeys?Reflect.has(t,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,r),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,r)=>Reflect.has(t,r),ownKeys:()=>Reflect.ownKeys(t),set:(e,r,n)=>(t[r]=n,delete e[r],!0)})}function Ke(t,e={scriptable:!0,indexable:!0}){const{_scriptable:r=e.scriptable,_indexable:n=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:r,indexable:n,isScriptable:it(r)?r:()=>r,isIndexable:it(n)?n:()=>n}}const $e=(t,e)=>t?t+nt(e):e,qe=(t,e)=>B(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ye(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const n=r();return t[e]=n,n}function Ge(t,e,r){return it(t)?t(e,r):t}const Xe=(t,e)=>!0===t?e:"string"===typeof t?rt(e,t):void 0;function Qe(t,e,r,n,o){for(const i of e){const e=Xe(r,i);if(e){t.add(e);const i=Ge(e._fallback,r,o);if("undefined"!==typeof i&&i!==r&&i!==n)return i}else if(!1===e&&"undefined"!==typeof n&&r!==n)return null}return!1}function Ze(t,e,r,n){const o=e._rootScopes,i=Ge(e._fallback,r,n),a=[...t,...o],s=new Set;s.add(n);let l=Je(s,a,r,i||r,n);return null!==l&&(("undefined"===typeof i||i===r||(l=Je(s,a,i,l,n),null!==l))&&He(Array.from(s),[""],o,i,()=>function(t,e,r){const n=t._getTarget();e in n||(n[e]={});const o=n[e];if(V(o)&&B(r))return r;return o||{}}(e,r,n)))}function Je(t,e,r,n,o){for(;r;)r=Qe(t,e,r,n,o);return r}function tr(t,e){for(const r of e){if(!r)continue;const e=r[t];if("undefined"!==typeof e)return e}}function er(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const r of t)for(const t of Object.keys(r).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function rr(t,e,r,n){const{iScale:o}=t,{key:i="r"}=this._parsing,a=new Array(n);let s,l,u,c;for(s=0,l=n;s<l;++s)u=s+r,c=e[u],a[s]={r:o.parse(rt(c,i),u)};return a}const nr=Number.EPSILON||1e-14,or=(t,e)=>e<t.length&&!t[e].skip&&t[e],ir=t=>"x"===t?"y":"x";function ar(t,e,r,n){const o=t.skip?e:t,i=e,a=r.skip?e:r,s=kt(i,o),l=kt(a,i);let u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const f=n*u,d=n*c;return{previous:{x:i.x-f*(a.x-o.x),y:i.y-f*(a.y-o.y)},next:{x:i.x+d*(a.x-o.x),y:i.y+d*(a.y-o.y)}}}function sr(t,e="x"){const r=ir(e),n=t.length,o=Array(n).fill(0),i=Array(n);let a,s,l,u=or(t,0);for(a=0;a<n;++a)if(s=l,l=u,u=or(t,a+1),l){if(u){const t=u[e]-l[e];o[a]=0!==t?(u[r]-l[r])/t:0}i[a]=s?u?mt(o[a-1])!==mt(o[a])?0:(o[a-1]+o[a])/2:o[a-1]:o[a]}!function(t,e,r){const n=t.length;let o,i,a,s,l,u=or(t,0);for(let c=0;c<n-1;++c)l=u,u=or(t,c+1),l&&u&&(yt(e[c],0,nr)?r[c]=r[c+1]=0:(o=r[c]/e[c],i=r[c+1]/e[c],s=Math.pow(o,2)+Math.pow(i,2),s<=9||(a=3/Math.sqrt(s),r[c]=o*a*e[c],r[c+1]=i*a*e[c])))}(t,o,i),function(t,e,r="x"){const n=ir(r),o=t.length;let i,a,s,l=or(t,0);for(let u=0;u<o;++u){if(a=s,s=l,l=or(t,u+1),!s)continue;const o=s[r],c=s[n];a&&(i=(o-a[r])/3,s[`cp1${r}`]=o-i,s[`cp1${n}`]=c-i*e[u]),l&&(i=(l[r]-o)/3,s[`cp2${r}`]=o+i,s[`cp2${n}`]=c+i*e[u])}}(t,i,e)}function lr(t,e,r){return Math.max(Math.min(t,r),e)}function ur(t,e,r,n,o){let i,a,s,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)sr(t,o);else{let r=n?t[t.length-1]:t[0];for(i=0,a=t.length;i<a;++i)s=t[i],l=ar(r,s,t[Math.min(i+1,a-(n?0:1))%a],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,r=s}e.capBezierPoints&&function(t,e){let r,n,o,i,a,s=je(t[0],e);for(r=0,n=t.length;r<n;++r)a=i,i=s,s=r<n-1&&je(t[r+1],e),i&&(o=t[r],a&&(o.cp1x=lr(o.cp1x,e.left,e.right),o.cp1y=lr(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=lr(o.cp2x,e.left,e.right),o.cp2y=lr(o.cp2y,e.top,e.bottom)))}(t,r)}function cr(){return"undefined"!==typeof window&&"undefined"!==typeof document}function fr(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function dr(t,e,r){let n;return"string"===typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[r])):n=t,n}const hr=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);const pr=["top","right","bottom","left"];function br(t,e,r){const n={};r=r?"-"+r:"";for(let o=0;o<4;o++){const i=pr[o];n[i]=parseFloat(t[e+"-"+i+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function gr(t,e){if("native"in t)return t;const{canvas:r,currentDevicePixelRatio:n}=e,o=hr(r),i="border-box"===o.boxSizing,a=br(o,"padding"),s=br(o,"border","width"),{x:l,y:u,box:c}=function(t,e){const r=t.touches,n=r&&r.length?r[0]:t,{offsetX:o,offsetY:i}=n;let a,s,l=!1;if(((t,e,r)=>(t>0||e>0)&&(!r||!r.shadowRoot))(o,i,t.target))a=o,s=i;else{const t=e.getBoundingClientRect();a=n.clientX-t.left,s=n.clientY-t.top,l=!0}return{x:a,y:s,box:l}}(t,r),f=a.left+(c&&s.left),d=a.top+(c&&s.top);let{width:h,height:p}=e;return i&&(h-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-f)/h*r.width/n),y:Math.round((u-d)/p*r.height/n)}}const mr=t=>Math.round(10*t)/10;function yr(t,e,r,n){const o=hr(t),i=br(o,"margin"),a=dr(o.maxWidth,t,"clientWidth")||ft,s=dr(o.maxHeight,t,"clientHeight")||ft,l=function(t,e,r){let n,o;if(void 0===e||void 0===r){const i=t&&fr(t);if(i){const t=i.getBoundingClientRect(),a=hr(i),s=br(a,"border","width"),l=br(a,"padding");e=t.width-l.width-s.width,r=t.height-l.height-s.height,n=dr(a.maxWidth,i,"clientWidth"),o=dr(a.maxHeight,i,"clientHeight")}else e=t.clientWidth,r=t.clientHeight}return{width:e,height:r,maxWidth:n||ft,maxHeight:o||ft}}(t,e,r);let{width:u,height:c}=l;if("content-box"===o.boxSizing){const t=br(o,"border","width"),e=br(o,"padding");u-=e.width+t.width,c-=e.height+t.height}u=Math.max(0,u-i.width),c=Math.max(0,n?u/n:c-i.height),u=mr(Math.min(u,a,l.maxWidth)),c=mr(Math.min(c,s,l.maxHeight)),u&&!c&&(c=mr(u/2));return(void 0!==e||void 0!==r)&&n&&l.height&&c>l.height&&(c=l.height,u=mr(Math.floor(c*n))),{width:u,height:c}}function vr(t,e,r){const n=e||1,o=mr(t.height*n),i=mr(t.width*n);t.height=mr(t.height),t.width=mr(t.width);const a=t.canvas;return a.style&&(r||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||a.height!==o||a.width!==i)&&(t.currentDevicePixelRatio=n,a.height=o,a.width=i,t.ctx.setTransform(n,0,0,n,0,0),!0)}const xr=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};cr()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(e){}return t}();function wr(t,e){const r=function(t,e){return hr(t).getPropertyValue(e)}(t,e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function jr(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:t.y+r*(e.y-t.y)}}function Or(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:"middle"===n?r<.5?t.y:e.y:"after"===n?r<1?t.y:e.y:r>0?e.y:t.y}}function _r(t,e,r,n){const o={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},a=jr(t,o,r),s=jr(o,i,r),l=jr(i,e,r),u=jr(a,s,r),c=jr(s,l,r);return jr(u,c,r)}function Sr(t,e,r){return t?function(t,e){return{x:r=>t+t+e-r,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,r):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function Pr(t,e){let r,n;"ltr"!==e&&"rtl"!==e||(r=t.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",e,"important"),t.prevTextDirection=n)}function Mr(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function kr(t){return"angle"===t?{between:Dt,compare:Ct,normalize:At}:{between:Et,compare:(t,e)=>t-e,normalize:t=>t}}function Cr({start:t,end:e,count:r,loop:n,style:o}){return{start:t%r,end:e%r,loop:n&&(e-t+1)%r===0,style:o}}function Ar(t,e,r){if(!r)return[t];const{property:n,start:o,end:i}=r,a=e.length,{compare:s,between:l,normalize:u}=kr(n),{start:c,end:f,loop:d,style:h}=function(t,e,r){const{property:n,start:o,end:i}=r,{between:a,normalize:s}=kr(n),l=e.length;let u,c,{start:f,end:d,loop:h}=t;if(h){for(f+=l,d+=l,u=0,c=l;u<c&&a(s(e[f%l][n]),o,i);++u)f--,d--;f%=l,d%=l}return d<f&&(d+=l),{start:f,end:d,loop:h,style:t.style}}(t,e,r),p=[];let b,g,m,y=!1,v=null;const x=()=>y||l(o,m,b)&&0!==s(o,m),w=()=>!y||0===s(i,b)||l(i,m,b);for(let j=c,O=c;j<=f;++j)g=e[j%a],g.skip||(b=u(g[n]),b!==m&&(y=l(b,o,i),null===v&&x()&&(v=0===s(b,o)?j:O),null!==v&&w()&&(p.push(Cr({start:v,end:j,loop:d,count:a,style:h})),v=null),O=j,m=b));return null!==v&&p.push(Cr({start:v,end:f,loop:d,count:a,style:h})),p}function Dr(t,e){const r=[],n=t.segments;for(let o=0;o<n.length;o++){const i=Ar(n[o],t.points,e);i.length&&r.push(...i)}return r}function Tr(t,e){const r=t.points,n=t.options.spanGaps,o=r.length;if(!o)return[];const i=!!t._loop,{start:a,end:s}=function(t,e,r,n){let o=0,i=e-1;if(r&&!n)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,r&&(i+=o);i>o&&t[i%e].skip;)i--;return i%=e,{start:o,end:i}}(r,o,i,n);if(!0===n)return Ir(t,[{start:a,end:s,loop:i}],r,e);return Ir(t,function(t,e,r,n){const o=t.length,i=[];let a,s=e,l=t[e];for(a=e+1;a<=r;++a){const r=t[a%o];r.skip||r.stop?l.skip||(n=!1,i.push({start:e%o,end:(a-1)%o,loop:n}),e=s=r.stop?a:null):(s=a,l.skip&&(e=a)),l=r}return null!==s&&i.push({start:e%o,end:s%o,loop:n}),i}(r,a,s<a?s+o:s,!!t._fullLoop&&0===a&&s===o-1),r,e)}function Ir(t,e,r,n){return n&&n.setContext&&r?function(t,e,r,n){const o=t._chart.getContext(),i=Er(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,l=r.length,u=[];let c=i,f=e[0].start,d=f;function h(t,e,n,o){const i=s?-1:1;if(t!==e){for(t+=l;r[t%l].skip;)t-=i;for(;r[e%l].skip;)e+=i;t%l!==e%l&&(u.push({start:t%l,end:e%l,loop:n,style:o}),c=o,f=e%l)}}for(const p of e){f=s?f:p.start;let t,e=r[f%l];for(d=f+1;d<=p.end;d++){const i=r[d%l];t=Er(n.setContext(We(o,{type:"segment",p0:e,p1:i,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:a}))),Fr(t,c)&&h(f,d-1,p.loop,c),e=i,c=t}f<d-1&&h(f,d-1,p.loop,c)}return u}(t,e,r,n):e}function Er(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Fr(t,e){if(!e)return!1;const r=[],n=function(t,e){return ee(e)?(r.includes(e)||r.push(e),r.indexOf(e)):e};return JSON.stringify(t,n)!==JSON.stringify(e,n)}function Lr(t,e,r){return t.options.clip?t[r]:e[r]}function zr(t,e){const r=e._clip;if(r.disabled)return!1;const n=function(t,e){const{xScale:r,yScale:n}=t;return r&&n?{left:Lr(r,e,"left"),right:Lr(r,e,"right"),top:Lr(n,e,"top"),bottom:Lr(n,e,"bottom")}:e}(e,t.chartArea);return{left:!1===r.left?0:n.left-(!0===r.left?0:r.left),right:!1===r.right?t.width:n.right+(!0===r.right?0:r.right),top:!1===r.top?0:n.top-(!0===r.top?0:r.top),bottom:!1===r.bottom?t.height:n.bottom+(!0===r.bottom?0:r.bottom)}}},92555(t,e,r){"use strict";function n(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return 0===r?0:r}}r.d(e,{u:()=>n})},42539(t,e,r){"use strict";r.d(e,{W:()=>s});var n=r(16172),o=r(66304),i=r(43329),a=r(29407);function s(t,e,r){const{years:s=0,months:l=0,weeks:u=0,days:c=0,hours:f=0,minutes:d=0,seconds:h=0}=e,p=(0,a.a)(t,r?.in),b=l||s?(0,o.P)(p,l+12*s):p,g=c||u?(0,n.f)(b,c+7*u):b,m=1e3*(h+60*(d+60*f));return(0,i.w)(r?.in||t,+g+m)}},16172(t,e,r){"use strict";r.d(e,{f:()=>i});var n=r(43329),o=r(29407);function i(t,e,r){const i=(0,o.a)(t,r?.in);return isNaN(e)?(0,n.w)(r?.in||t,NaN):e?(i.setDate(i.getDate()+e),i):i}},66304(t,e,r){"use strict";r.d(e,{P:()=>i});var n=r(43329),o=r(29407);function i(t,e,r){const i=(0,o.a)(t,r?.in);if(isNaN(e))return(0,n.w)(r?.in||t,NaN);if(!e)return i;const a=i.getDate(),s=(0,n.w)(r?.in||t,i.getTime());s.setMonth(i.getMonth()+e+1,0);return a>=s.getDate()?s:(i.setFullYear(s.getFullYear(),s.getMonth(),a),i)}},96054(t,e,r){"use strict";r.d(e,{z:()=>o});var n=r(29407);function o(t,e){const r=+(0,n.a)(t)-+(0,n.a)(e);return r<0?-1:r>0?1:r}},84287(t,e,r){"use strict";r.d(e,{k:()=>c});var n=r(75156),o=r(92516),i=r(92555),a=r(1108),s=r(5305),l=r(96054),u=r(61501);function c(t,e,r){const c=(0,o.q)(),f=r?.locale??c.locale??n.c,d=(0,l.z)(t,e);if(isNaN(d))throw new RangeError("Invalid time value");const h=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:d}),[p,b]=(0,s.x)(r?.in,...d>0?[e,t]:[t,e]),g=(0,i.u)(r?.roundingMethod??"round"),m=b.getTime()-p.getTime(),y=m/u.Cg,v=(m-((0,a.G)(b)-(0,a.G)(p)))/u.Cg,x=r?.unit;let w;if(w=x||(y<1?"second":y<60?"minute":y<u.F6?"hour":v<u.Nw?"day":v<u.Ks?"month":"year"),"second"===w){const t=g(m/1e3);return f.formatDistance("xSeconds",t,h)}if("minute"===w){const t=g(y);return f.formatDistance("xMinutes",t,h)}if("hour"===w){const t=g(y/60);return f.formatDistance("xHours",t,h)}if("day"===w){const t=g(v/u.F6);return f.formatDistance("xDays",t,h)}if("month"===w){const t=g(v/u.Nw);return 12===t&&"month"!==x?f.formatDistance("xYears",1,h):f.formatDistance("xMonths",t,h)}{const t=g(v/u.Ks);return f.formatDistance("xYears",t,h)}}},63537(t,e,r){"use strict";r.d(e,{W:()=>o});var n=r(29407);function o(t){return+(0,n.a)(t)}},35047(t,e,r){"use strict";r.d(e,{_:()=>o});var n=r(29407);function o(t){return Math.trunc(+(0,n.a)(t)/1e3)}},92705(t,e,r){"use strict";r.d(e,{u:()=>i});var n=r(32370),o=r(58646);function i(t,e,r){return(0,n.f)((0,o.qg)(t,e,new Date,r))}},58646(t,e,r){"use strict";r.d(e,{qg:()=>gt});var n=r(75156),o=r(78668),i=r(3265),a=r(43329),s=r(92516);function l(){return Object.assign({},(0,s.q)())}var u=r(29407);function c(t,e){const r=function(t){return"function"===typeof t&&t.prototype?.constructor===t}(e)?new e(0):(0,a.w)(e,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),r}class f{subPriority=0;validate(t,e){return!0}}class d extends f{constructor(t,e,r,n,o){super(),this.value=t,this.validateValue=e,this.setValue=r,this.priority=n,o&&(this.subPriority=o)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,r){return this.setValue(t,e,this.value,r)}}class h extends f{priority=10;subPriority=-1;constructor(t,e){super(),this.context=t||(t=>(0,a.w)(e,t))}set(t,e){return e.timestampIsSet?t:(0,a.w)(t,c(t,this.context))}}class p{run(t,e,r,n){const o=this.parse(t,e,r,n);return o?{setter:new d(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(t,e,r){return!0}}var b=r(61501);const g=/^(1[0-2]|0?\d)/,m=/^(3[0-1]|[0-2]?\d)/,y=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,v=/^(5[0-3]|[0-4]?\d)/,x=/^(2[0-3]|[0-1]?\d)/,w=/^(2[0-4]|[0-1]?\d)/,j=/^(1[0-1]|0?\d)/,O=/^(1[0-2]|0?\d)/,_=/^[0-5]?\d/,S=/^[0-5]?\d/,P=/^\d/,M=/^\d{1,2}/,k=/^\d{1,3}/,C=/^\d{1,4}/,A=/^-?\d+/,D=/^-?\d/,T=/^-?\d{1,2}/,I=/^-?\d{1,3}/,E=/^-?\d{1,4}/,F=/^([+-])(\d{2})(\d{2})?|Z/,L=/^([+-])(\d{2})(\d{2})|Z/,z=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,N=/^([+-])(\d{2}):(\d{2})|Z/,V=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function B(t,e){return t?{value:e(t.value),rest:t.rest}:t}function R(t,e){const r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}function W(t,e){const r=e.match(t);if(!r)return null;if("Z"===r[0])return{value:0,rest:e.slice(1)};const n="+"===r[1]?1:-1,o=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,a=r[5]?parseInt(r[5],10):0;return{value:n*(o*b.s0+i*b.Cg+a*b._m),rest:e.slice(r[0].length)}}function H(t){return R(A,t)}function U(t,e){switch(t){case 1:return R(P,e);case 2:return R(M,e);case 3:return R(k,e);case 4:return R(C,e);default:return R(new RegExp("^\\d{1,"+t+"}"),e)}}function K(t,e){switch(t){case 1:return R(D,e);case 2:return R(T,e);case 3:return R(I,e);case 4:return R(E,e);default:return R(new RegExp("^-?\\d{1,"+t+"}"),e)}}function $(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function q(t,e){const r=e>0,n=r?e:1-e;let o;if(n<=50)o=t||100;else{const e=n+50;o=t+100*Math.trunc(e/100)-(t>=e%100?100:0)}return r?o:1-o}function Y(t){return t%400===0||t%4===0&&t%100!==0}var G=r(84485),X=r(80337);var Q=r(22008);var Z=r(65456);function J(t,e,r){const n=(0,u.a)(t,r?.in),o=(0,Z.N)(n,r)-e;return n.setDate(n.getDate()-7*o),(0,u.a)(n,r?.in)}var tt=r(72794);function et(t,e,r){const n=(0,u.a)(t,r?.in),o=(0,tt.s)(n,r)-e;return n.setDate(n.getDate()-7*o),n}const rt=[31,28,31,30,31,30,31,31,30,31,30,31],nt=[31,29,31,30,31,30,31,31,30,31,30,31];var ot=r(16172);function it(t,e,r){const n=(0,s.q)(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=(0,u.a)(t,r?.in),a=i.getDay(),l=7-o,c=e<0||e>6?e-(a+l)%7:((e%7+7)%7+l)%7-(a+l)%7;return(0,ot.f)(i,c,r)}function at(t,e){const r=(0,u.a)(t,e?.in).getDay();return 0===r?7:r}function st(t,e,r){const n=(0,u.a)(t,r?.in),o=e-at(n,r);return(0,ot.f)(n,o,r)}var lt=r(1108);const ut={G:new class extends p{priority=140;parse(t,e,r){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,e,r){return e.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]},y:new class extends p{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,e,r){const n=t=>({year:t,isTwoDigitYear:"yy"===e});switch(e){case"y":return B(U(4,t),n);case"yo":return B(r.ordinalNumber(t,{unit:"year"}),n);default:return B(U(e.length,t),n)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r){const n=t.getFullYear();if(r.isTwoDigitYear){const e=q(r.year,n);return t.setFullYear(e,0,1),t.setHours(0,0,0,0),t}const o="era"in e&&1!==e.era?1-r.year:r.year;return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}},Y:new class extends p{priority=130;parse(t,e,r){const n=t=>({year:t,isTwoDigitYear:"YY"===e});switch(e){case"Y":return B(U(4,t),n);case"Yo":return B(r.ordinalNumber(t,{unit:"year"}),n);default:return B(U(e.length,t),n)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,n){const o=(0,G.h)(t,n);if(r.isTwoDigitYear){const e=q(r.year,o);return t.setFullYear(e,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),(0,X.k)(t,n)}const i="era"in e&&1!==e.era?1-r.year:r.year;return t.setFullYear(i,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),(0,X.k)(t,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends p{priority=130;parse(t,e){return K("R"===e?4:e.length,t)}set(t,e,r){const n=(0,a.w)(t,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),(0,Q.b)(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends p{priority=130;parse(t,e){return K("u"===e?4:e.length,t)}set(t,e,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends p{priority=120;parse(t,e,r){switch(e){case"Q":case"QQ":return U(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth(3*(r-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends p{priority=120;parse(t,e,r){switch(e){case"q":case"qq":return U(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth(3*(r-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends p{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,e,r){const n=t=>t-1;switch(e){case"M":return B(R(g,t),n);case"MM":return B(U(2,t),n);case"Mo":return B(r.ordinalNumber(t,{unit:"month"}),n);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}},L:new class extends p{priority=110;parse(t,e,r){const n=t=>t-1;switch(e){case"L":return B(R(g,t),n);case"LL":return B(U(2,t),n);case"Lo":return B(r.ordinalNumber(t,{unit:"month"}),n);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends p{priority=100;parse(t,e,r){switch(e){case"w":return R(v,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return U(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r,n){return(0,X.k)(J(t,r,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends p{priority=100;parse(t,e,r){switch(e){case"I":return R(v,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return U(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r){return(0,Q.b)(et(t,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends p{priority=90;subPriority=1;parse(t,e,r){switch(e){case"d":return R(m,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return U(e.length,t)}}validate(t,e){const r=Y(t.getFullYear()),n=t.getMonth();return r?e>=1&&e<=nt[n]:e>=1&&e<=rt[n]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends p{priority=90;subpriority=1;parse(t,e,r){switch(e){case"D":case"DD":return R(y,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return U(e.length,t)}}validate(t,e){return Y(t.getFullYear())?e>=1&&e<=366:e>=1&&e<=365}set(t,e,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends p{priority=90;parse(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,n){return(t=it(t,r,n)).setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends p{priority=90;parse(t,e,r,n){const o=t=>{const e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return B(U(e.length,t),o);case"eo":return B(r.ordinalNumber(t,{unit:"day"}),o);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,n){return(t=it(t,r,n)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends p{priority=90;parse(t,e,r,n){const o=t=>{const e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return B(U(e.length,t),o);case"co":return B(r.ordinalNumber(t,{unit:"day"}),o);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,n){return(t=it(t,r,n)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends p{priority=90;parse(t,e,r){const n=t=>0===t?7:t;switch(e){case"i":case"ii":return U(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return B(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return B(r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return B(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);default:return B(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n)}}validate(t,e){return e>=1&&e<=7}set(t,e,r){return(t=st(t,r)).setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends p{priority=80;parse(t,e,r){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours($(r),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends p{priority=80;parse(t,e,r){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours($(r),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends p{priority=80;parse(t,e,r){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours($(r),0,0,0),t}incompatibleTokens=["a","b","t","T"]},h:new class extends p{priority=70;parse(t,e,r){switch(e){case"h":return R(O,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return U(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,r){const n=t.getHours()>=12;return n&&r<12?t.setHours(r+12,0,0,0):n||12!==r?t.setHours(r,0,0,0):t.setHours(0,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]},H:new class extends p{priority=70;parse(t,e,r){switch(e){case"H":return R(x,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return U(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,r){return t.setHours(r,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends p{priority=70;parse(t,e,r){switch(e){case"K":return R(j,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return U(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]},k:new class extends p{priority=70;parse(t,e,r){switch(e){case"k":return R(w,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return U(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,r){const n=r<=24?r%24:r;return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends p{priority=60;parse(t,e,r){switch(e){case"m":return R(_,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return U(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setMinutes(r,0,0),t}incompatibleTokens=["t","T"]},s:new class extends p{priority=50;parse(t,e,r){switch(e){case"s":return R(S,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return U(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setSeconds(r,0),t}incompatibleTokens=["t","T"]},S:new class extends p{priority=30;parse(t,e){return B(U(e.length,t),t=>Math.trunc(t*Math.pow(10,3-e.length)))}set(t,e,r){return t.setMilliseconds(r),t}incompatibleTokens=["t","T"]},X:new class extends p{priority=10;parse(t,e){switch(e){case"X":return W(F,t);case"XX":return W(L,t);case"XXXX":return W(z,t);case"XXXXX":return W(V,t);default:return W(N,t)}}set(t,e,r){return e.timestampIsSet?t:(0,a.w)(t,t.getTime()-(0,lt.G)(t)-r)}incompatibleTokens=["t","T","x"]},x:new class extends p{priority=10;parse(t,e){switch(e){case"x":return W(F,t);case"xx":return W(L,t);case"xxxx":return W(z,t);case"xxxxx":return W(V,t);default:return W(N,t)}}set(t,e,r){return e.timestampIsSet?t:(0,a.w)(t,t.getTime()-(0,lt.G)(t)-r)}incompatibleTokens=["t","T","X"]},t:new class extends p{priority=40;parse(t){return H(t)}set(t,e,r){return[(0,a.w)(t,1e3*r),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends p{priority=20;parse(t){return H(t)}set(t,e,r){return[(0,a.w)(t,r),{timestampIsSet:!0}]}incompatibleTokens="*"}},ct=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ft=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,dt=/^'([^]*?)'?$/,ht=/''/g,pt=/\S/,bt=/[a-zA-Z]/;function gt(t,e,r,s){const c=()=>(0,a.w)(s?.in||r,NaN),f=l(),d=s?.locale??f.locale??n.c,p=s?.firstWeekContainsDate??s?.locale?.options?.firstWeekContainsDate??f.firstWeekContainsDate??f.locale?.options?.firstWeekContainsDate??1,b=s?.weekStartsOn??s?.locale?.options?.weekStartsOn??f.weekStartsOn??f.locale?.options?.weekStartsOn??0;if(!e)return t?c():(0,u.a)(r,s?.in);const g={firstWeekContainsDate:p,weekStartsOn:b,locale:d},m=[new h(s?.in,r)],y=e.match(ft).map(t=>{const e=t[0];if(e in o.m){return(0,o.m[e])(t,d.formatLong)}return t}).join("").match(ct),v=[];for(let n of y){!s?.useAdditionalWeekYearTokens&&(0,i.xM)(n)&&(0,i.Ss)(n,e,t),!s?.useAdditionalDayOfYearTokens&&(0,i.ef)(n)&&(0,i.Ss)(n,e,t);const r=n[0],o=ut[r];if(o){const{incompatibleTokens:e}=o;if(Array.isArray(e)){const t=v.find(t=>e.includes(t.token)||t.token===r);if(t)throw new RangeError(`The format string mustn't contain \`${t.fullToken}\` and \`${n}\` at the same time`)}else if("*"===o.incompatibleTokens&&v.length>0)throw new RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);v.push({token:r,fullToken:n});const i=o.run(t,n,d.match,g);if(!i)return c();m.push(i.setter),t=i.rest}else{if(r.match(bt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");if("''"===n?n="'":"'"===r&&(n=mt(n)),0!==t.indexOf(n))return c();t=t.slice(n.length)}}if(t.length>0&&pt.test(t))return c();const x=m.map(t=>t.priority).sort((t,e)=>e-t).filter((t,e,r)=>r.indexOf(t)===e).map(t=>m.filter(e=>e.priority===t).sort((t,e)=>e.subPriority-t.subPriority)).map(t=>t[0]);let w=(0,u.a)(r,s?.in);if(isNaN(+w))return c();const j={};for(const n of x){if(!n.validate(w,g))return c();const t=n.set(w,j,g);Array.isArray(t)?(w=t[0],Object.assign(j,t[1])):w=t}return w}function mt(t){return t.match(dt)[1].replace(ht,"'")}},44731(t,e,r){"use strict";r.d(e,{nu:()=>b,t1:()=>d,yP:()=>p});var n=r(74848),o=r(96540),i=r(66118);const a="label";function s(t,e){"function"===typeof t?t(e):t&&(t.current=e)}function l(t,e){t.labels=e}function u(t,e,r=a){const n=[];t.datasets=e.map(e=>{const o=t.datasets.find(t=>t[r]===e[r]);return o&&e.data&&!n.includes(o)?(n.push(o),Object.assign(o,e),o):{...e}})}function c(t,e=a){const r={labels:[],datasets:[]};return l(r,t.labels),u(r,t.datasets,e),r}function f(t,e){const{height:r=150,width:a=300,redraw:f=!1,datasetIdKey:d,type:h,data:p,options:b,plugins:g=[],fallbackContent:m,updateMode:y,...v}=t,x=(0,o.useRef)(null),w=(0,o.useRef)(null),j=()=>{x.current&&(w.current=new i.t1(x.current,{type:h,data:c(p,d),options:b&&{...b},plugins:g}),s(e,w.current))},O=()=>{s(e,null),w.current&&(w.current.destroy(),w.current=null)};return(0,o.useEffect)(()=>{!f&&w.current&&b&&function(t,e){const r=t.options;r&&e&&Object.assign(r,e)}(w.current,b)},[f,b]),(0,o.useEffect)(()=>{!f&&w.current&&l(w.current.config.data,p.labels)},[f,p.labels]),(0,o.useEffect)(()=>{!f&&w.current&&p.datasets&&u(w.current.config.data,p.datasets,d)},[f,p.datasets]),(0,o.useEffect)(()=>{w.current&&(f?(O(),setTimeout(j)):w.current.update(y))},[f,b,p.labels,p.datasets,y]),(0,o.useEffect)(()=>{w.current&&(O(),setTimeout(j))},[h]),(0,o.useEffect)(()=>(j(),()=>O()),[]),(0,n.jsx)("canvas",{ref:x,role:"img",height:r,width:a,...v,children:m})}const d=(0,o.forwardRef)(f);function h(t,e){return i.t1.register(e),(0,o.forwardRef)((e,r)=>(0,n.jsx)(d,{...e,ref:r,type:t}))}const p=h("bar",i.A6),b=h("doughnut",i.ju)}}]);