@spinnaker/kayenta 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +0,0 @@
1
- import*as t from"react";import e from"react";import n from"prop-types";import r from"react-dom";import{a as i,b as o,s as a,c as s}from"./index-6303bdf8.js";import{Annotation as l,OrdinalFrame as c,Axis as u,XYFrame as f,MinimapXYFrame as d}from"semiotic";import{DateTime as h}from"luxon";import{SETTINGS as p,timestamp as m}from"@spinnaker/core";import{G as b}from"./lazy-063c0421.js";import"angular";import"lodash";import"react-select";import"@uirouter/react";import"react-bootstrap";import"@uirouter/core";import"formik";var g=i((function(t){(t.exports={}).forEach=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n]);if(r)return r}}})),v=i((function(t){var e=t.exports={};e.isIE=function(t){return(-1!==(e=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==e.indexOf("trident")||-1!==e.indexOf(" edge/"))&&(!t||t===function(){var t=3,e=document.createElement("div"),n=e.getElementsByTagName("i");do{e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(n[0]);return t>4?t:undefined}());var e},e.isLegacyOpera=function(){return!!window.opera}})),y=i((function(t){(t.exports={}).getOption=function(t,e,n){var r=t[e];if(null==r&&void 0!==n)return n;return r}})),x=function(t){var e=(t=t||{}).reporter,n=y.getOption(t,"async",!0),r=y.getOption(t,"auto",!0);r&&!n&&(e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var i,o=w(),a=!1;function s(){for(a=!0;o.size();){var t=o;o=w(),t.process()}a=!1}function l(){var t;t=s,i=setTimeout(t,0)}return{add:function(t,e){!a&&r&&n&&0===o.size()&&l(),o.add(t,e)},force:function(t){a||(void 0===t&&(t=n),i&&(clearTimeout(i),i=null),t?l():s())}}};function w(){var t={},e=0,n=0,r=0;return{add:function(i,o){o||(o=i,i=0),i>n?n=i:i<r&&(r=i),t[i]||(t[i]=[]),t[i].push(o),e++},process:function(){for(var e=r;e<=n;e++)for(var i=t[e],o=0;o<i.length;o++){(0,i[o])()}},size:function(){return e}}}function _(t){return t._erd}var E={initState:function(t){return t._erd={},_(t)},getState:_,cleanState:function(t){delete t._erd}},M=g.forEach,T=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,r=t.stateHandler.getState;t.stateHandler.hasState;var i=t.idHandler;if(!n)throw new Error("Missing required dependency: batchProcessor");if(!e)throw new Error("Missing required dependency: reporter.");var o=function(){var t=500,e=500,n=document.createElement("div");n.style.cssText="position: absolute; width: 1000px; height: 1000px; visibility: hidden; margin: 0; padding: 0;";var r=document.createElement("div");r.style.cssText="position: absolute; width: 500px; height: 500px; overflow: scroll; visibility: none; top: -1500px; left: -1500px; visibility: hidden; margin: 0; padding: 0;",r.appendChild(n),document.body.insertBefore(r,document.body.firstChild);var i=t-r.clientWidth,o=e-r.clientHeight;return document.body.removeChild(r),{width:i,height:o}}(),a="erd_scroll_detection_container";function s(t,n,r){if(t.addEventListener)t.addEventListener(n,r);else{if(!t.attachEvent)return e.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+n,r)}}function l(t,n,r){if(t.removeEventListener)t.removeEventListener(n,r);else{if(!t.detachEvent)return e.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+n,r)}}function c(t){return r(t).container.childNodes[0].childNodes[0].childNodes[0]}function u(t){return r(t).container.childNodes[0].childNodes[0].childNodes[1]}return function(t,e){if(!document.getElementById(t)){var n=e+"_animation",r="/* Created by the element-resize-detector library. */\n";r+="."+e+" > div::-webkit-scrollbar { display: none; }\n\n",r+="."+(e+"_animation_active")+" { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+n+"; animation-name: "+n+"; }\n",r+="@-webkit-keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(e,n){n=n||function(t){document.head.appendChild(t)};var r=document.createElement("style");r.innerHTML=e,r.id=t,n(r)}(r+="@keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}("erd_scroll_detection_scrollbar_style",a),{makeDetectable:function(t,l,f){function d(){if(t.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(i.get(l),"Scroll: "),e.log.apply)e.log.apply(null,n);else for(var r=0;r<n.length;r++)e.log(n[r])}}function h(t){var e=r(t).container.childNodes[0],n=window.getComputedStyle(e);return!n.width||-1===n.width.indexOf("px")}function p(){var t=window.getComputedStyle(l),e={};return e.position=t.position,e.width=l.offsetWidth,e.height=l.offsetHeight,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.widthCSS=t.width,e.heightCSS=t.height,e}function m(){if(d("storeStyle invoked."),r(l)){var t=p();r(l).style=t}else d("Aborting because element has been uninstalled")}function b(t,e,n){r(t).lastWidth=e,r(t).lastHeight=n}function g(){return 2*o.width+1}function v(){return 2*o.height+1}function y(t){return t+10+g()}function x(t){return t+10+v()}function w(t,e,n){var r=c(t),i=u(t),o=y(e),a=x(n),s=function(t){return 2*t+g()}(e),l=function(t){return 2*t+v()}(n);r.scrollLeft=o,r.scrollTop=a,i.scrollLeft=s,i.scrollTop=l}function _(){var t=r(l).container;if(!t){(t=document.createElement("div")).className=a,t.style.cssText="visibility: hidden; display: inline; width: 0px; height: 0px; z-index: -1; overflow: hidden; margin: 0; padding: 0;",r(l).container=t,function(t){t.className+=" "+a+"_animation_active"}(t),l.appendChild(t);var e=function(){r(l).onRendered&&r(l).onRendered()};s(t,"animationstart",e),r(l).onAnimationStart=e}return t}function E(){if(d("Injecting elements"),r(l)){!function(){var t=r(l).style;if("static"===t.position){l.style.position="relative";var n=function(t,e,n,r){var i=n[r];"auto"!==i&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(i)&&(t.warn("An element that is positioned static has style."+r+"="+i+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",e),e.style[r]=0)};n(e,l,t,"top"),n(e,l,t,"right"),n(e,l,t,"bottom"),n(e,l,t,"left")}}();var t=r(l).container;t||(t=_());var n,i,c,u,f=o.width,h=o.height,p="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; "+("left: "+(n=(n=-(1+f))?n+"px":"0")+"; top: "+(i=(i=-(1+h))?i+"px":"0")+"; right: "+(u=(u=-f)?u+"px":"0")+"; bottom: "+(c=(c=-h)?c+"px":"0")+";"),m=document.createElement("div"),b=document.createElement("div"),g=document.createElement("div"),v=document.createElement("div"),y=document.createElement("div"),x=document.createElement("div");m.dir="ltr",m.style.cssText="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; width: 100%; height: 100%; left: 0px; top: 0px;",m.className=a,b.className=a,b.style.cssText=p,g.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",v.style.cssText="position: absolute; left: 0; top: 0;",y.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",x.style.cssText="position: absolute; width: 200%; height: 200%;",g.appendChild(v),y.appendChild(x),b.appendChild(g),b.appendChild(y),m.appendChild(b),t.appendChild(m),s(g,"scroll",w),s(y,"scroll",E),r(l).onExpandScroll=w,r(l).onShrinkScroll=E}else d("Aborting because element has been uninstalled");function w(){r(l).onExpand&&r(l).onExpand()}function E(){r(l).onShrink&&r(l).onShrink()}}function T(){function o(t,e,n){var r=function(t){return c(t).childNodes[0]}(t),i=y(e),o=x(n);r.style.width=i+"px",r.style.height=o+"px"}function a(a){var c=l.offsetWidth,u=l.offsetHeight;d("Storing current size",c,u),b(l,c,u),n.add(0,(function(){if(r(l))if(s()){if(t.debug){var n=l.offsetWidth,a=l.offsetHeight;n===c&&a===u||e.warn(i.get(l),"Scroll: Size changed before updating detector elements.")}o(l,c,u)}else d("Aborting because element container has not been initialized");else d("Aborting because element has been uninstalled")})),n.add(1,(function(){r(l)?s()?w(l,c,u):d("Aborting because element container has not been initialized"):d("Aborting because element has been uninstalled")})),a&&n.add(2,(function(){r(l)?s()?a():d("Aborting because element container has not been initialized"):d("Aborting because element has been uninstalled")}))}function s(){return!!r(l).container}function f(){d("notifyListenersIfNeeded invoked");var t=r(l);return void 0===r(l).lastNotifiedWidth&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?d("Not notifying: Size is the same as the start size, and there has been no notification yet."):t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight?d("Not notifying: Size already notified"):(d("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void M(r(l).listeners,(function(t){t(l)})))}function p(){if(d("Scroll detected."),h(l))d("Scroll event fired while unrendered. Ignoring...");else{var t=l.offsetWidth,e=l.offsetHeight;t!==r(l).lastWidth||e!==r(l).lastHeight?(d("Element size changed."),a(f)):d("Element size has not changed ("+t+"x"+e+").")}}if(d("registerListenersAndPositionElements invoked."),r(l)){r(l).onRendered=function(){if(d("startanimation triggered."),h(l))d("Ignoring since element is still unrendered...");else{d("Element rendered.");var t=c(l),e=u(l);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(d("Scrollbars out of sync. Updating detector elements..."),a(f))}},r(l).onExpand=p,r(l).onShrink=p;var m=r(l).style;o(l,m.width,m.height)}else d("Aborting because element has been uninstalled")}function k(){if(d("finalizeDomMutation invoked."),r(l)){var t=r(l).style;b(l,t.width,t.height),w(l,t.width,t.height)}else d("Aborting because element has been uninstalled")}function S(){f(l)}function A(){d("Installing..."),r(l).listeners=[],function(){var t=p();r(l).startSize={width:t.width,height:t.height},d("Element start size",r(l).startSize)}(),n.add(0,m),n.add(1,E),n.add(2,T),n.add(3,k),n.add(4,S)}f||(f=l,l=t,t=null),t=t||{},d("Making detectable..."),!function(t){return!function(t){return t===t.ownerDocument.body||t.ownerDocument.body.contains(t)}(t)||null===window.getComputedStyle(t)}(l)?A():(d("Element is detached"),_(),d("Waiting until element is attached..."),r(l).onRendered=function(){d("Element is now attached"),A()})},addListener:function(t,e){if(!r(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");r(t).listeners.push(e)},uninstall:function(t){var e=r(t);e&&(e.onExpandScroll&&l(c(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&l(u(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&l(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))}}},k=g.forEach;function S(t){return Array.isArray(t)||void 0!==t.length}function A(t){if(Array.isArray(t))return t;var e=[];return k(t,(function(t){e.push(t)})),e}function C(t){return t&&1===t.nodeType}function N(t,e,n){var r=t[e];return null==r&&void 0!==n?n:r}var L=function(t,e,n,r,i,o,a,s){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;(l=new Error(e.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}},P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},O=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),D=R(e),H=R(n),U=R(r),j=R((function(t){var e,n;if((t=t||{}).idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var r=function(t){var e=t.idGenerator,n=t.stateHandler.getState;return{get:function(t){var e=n(t);return e&&void 0!==e.id?e.id:null},set:function(t){var r=n(t);if(!r)throw new Error("setId required the element to have a resize detection state.");var i=e.generate();return r.id=i,i}}}({idGenerator:(n=1,{generate:function(){return n++}}),stateHandler:E});e=r}var i=t.reporter;i||(i=function(t){function e(){}var n={log:e,warn:e,error:e};if(!t&&window.console){var r=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var n=0;n<arguments.length;n++)t(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}(!1===i));var o=N(t,"batchProcessor",x({reporter:i})),a={};a.callOnAdd=!!N(t,"callOnAdd",!0),a.debug=!!N(t,"debug",!1);var s,l=function(t){var e={};function n(n){var r=t.get(n);return void 0===r?[]:e[r]||[]}return{get:n,add:function(n,r){var i=t.get(n);e[i]||(e[i]=[]),e[i].push(r)},removeListener:function(t,e){for(var r=n(t),i=0,o=r.length;i<o;++i)if(r[i]===e){r.splice(i,1);break}},removeAllListeners:function(t){var e=n(t);e&&(e.length=0)}}}(e),c=function(t){var e=t.stateHandler.getState;return{isDetectable:function(t){var n=e(t);return n&&!!n.isDetectable},markAsDetectable:function(t){e(t).isDetectable=!0},isBusy:function(t){return!!e(t).busy},markBusy:function(t,n){e(t).busy=!!n}}}({stateHandler:E}),u=N(t,"strategy","object"),f={reporter:i,batchProcessor:o,stateHandler:E,idHandler:e};if("scroll"===u&&(v.isLegacyOpera()?(i.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),u="object"):v.isIE(9)&&(i.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),u="object")),"scroll"===u)s=T(f);else{if("object"!==u)throw new Error("Invalid strategy name: "+u);s=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,r=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function i(t){return r(t).object}return{makeDetectable:function(t,i,o){o||(o=i,i=t,t=null),(t=t||{}).debug,v.isIE(8)?o(i):function(t,i){var o=!1,a=window.getComputedStyle(t),s=t.offsetWidth,l=t.offsetHeight;function c(){function n(){if("static"===a.position){t.style.position="relative";var n=function(t,e,n,r){var i=n[r];"auto"!==i&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(i)&&(t.warn("An element that is positioned static has style."+r+"="+i+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",e),e.style[r]=0)};n(e,t,a,"top"),n(e,t,a,"right"),n(e,t,a,"bottom"),n(e,t,a,"left")}}""!==a.position&&(n(),o=!0);var s=document.createElement("object");s.style.cssText="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",s.tabIndex=-1,s.type="text/html",s.setAttribute("aria-hidden","true"),s.onload=function(){o||n(),function t(e,n){e.contentDocument?n(e.contentDocument):setTimeout((function(){t(e,n)}),100)}(this,(function(e){i(t)}))},v.isIE()||(s.data="about:blank"),t.appendChild(s),r(t).object=s,v.isIE()&&(s.data="about:blank")}r(t).startSize={width:s,height:l},n?n.add(c):c()}(i,o)},addListener:function(t,e){if(!i(t))throw new Error("Element is not detectable by this strategy.");function n(){e(t)}v.isIE(8)?(r(t).object={proxy:n},t.attachEvent("onresize",n)):i(t).contentDocument.defaultView.addEventListener("resize",n)},uninstall:function(t){v.isIE(8)?t.detachEvent("onresize",r(t).object.proxy):t.removeChild(i(t)),delete r(t).object}}}(f)}var d={};return{listenTo:function(t,n,r){function o(t){var e=l.get(t);k(e,(function(e){e(t)}))}function u(t,e,n){l.add(e,n),t&&n(e)}if(r||(r=n,n=t,t={}),!n)throw new Error("At least one element required.");if(!r)throw new Error("Listener required.");if(C(n))n=[n];else{if(!S(n))return i.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=A(n)}var f=0,h=N(t,"callOnAdd",a.callOnAdd),p=N(t,"onReady",(function(){})),m=N(t,"debug",a.debug);k(n,(function(t){E.getState(t)||(E.initState(t),e.set(t));var a=e.get(t);if(m&&i.log("Attaching listener to element",a,t),!c.isDetectable(t))return m&&i.log(a,"Not detectable."),c.isBusy(t)?(m&&i.log(a,"System busy making it detectable"),u(h,t,r),d[a]=d[a]||[],void d[a].push((function(){++f===n.length&&p()}))):(m&&i.log(a,"Making detectable..."),c.markBusy(t,!0),s.makeDetectable({debug:m},t,(function(t){if(m&&i.log(a,"onElementDetectable"),E.getState(t)){c.markAsDetectable(t),c.markBusy(t,!1),s.addListener(t,o),u(h,t,r);var e=E.getState(t);if(e&&e.startSize){var l=t.offsetWidth,b=t.offsetHeight;e.startSize.width===l&&e.startSize.height===b||o(t)}d[a]&&k(d[a],(function(t){t()}))}else m&&i.log(a,"Element uninstalled before being detectable.");delete d[a],++f===n.length&&p()})));m&&i.log(a,"Already detecable, adding listener."),u(h,t,r),f++})),f===n.length&&p()},removeListener:l.removeListener,removeAllListeners:l.removeAllListeners,uninstall:function(t){if(!t)return i.error("At least one element is required.");if(C(t))t=[t];else{if(!S(t))return i.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=A(t)}k(t,(function(t){l.removeAllListeners(t),s.uninstall(t),E.cleanState(t)}))}}})),z=R(L);function R(t){return t&&t.__esModule?t:{default:t}}var B=function(t){function n(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.state={initiated:!1},t.onResize=t.onResize.bind(t),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,e.Component),O(n,null,[{key:"getDomNodeDimensions",value:function(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}}]),O(n,[{key:"componentDidMount",value:function(){this.parentNode=U.default.findDOMNode(this).parentNode,this.elementResizeDetector=(0,j.default)({strategy:"scroll",callOnAdd:!1}),this.elementResizeDetector.listenTo(this.parentNode,this.onResize),this.componentIsMounted=!0,this.onResize()}},{key:"componentWillUnmount",value:function(){this.componentIsMounted=!1,this.elementResizeDetector.uninstall(this.parentNode)}},{key:"onResize",value:function(){var t=n.getDomNodeDimensions(this.parentNode);this.componentIsMounted&&this.setState(P({initiated:!0},t))}},{key:"render",value:function(){if((0,z.default)(this.props.children,"Expected children to be one of function or React.Element"),!this.state.initiated)return D.default.createElement("div",null);if("function"==typeof this.props.children){var t=this.props.children(this.state);return t&&e.Children.only(t)}return e.Children.only(D.default.cloneElement(this.props.children,this.state))}}]),n}();B.propTypes={children:H.default.oneOfType([H.default.element,H.default.func]).isRequired};var I=B;function F(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var W,q,Y=(1===(W=F).length&&(q=W,W=function(t,e){return F(q(t),e)}),{left:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n<r;){var i=n+r>>>1;W(t[i],e)<0?n=i+1:r=i}return n},right:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n<r;){var i=n+r>>>1;W(t[i],e)>0?r=i:n=i+1}return n}}).right;function G(t,e){var n,r,i,o=t.length,a=-1;if(null==e){for(;++a<o;)if(null!=(n=t[a])&&n>=n)for(r=i=n;++a<o;)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=i=n;++a<o;)null!=(n=e(t[a],a,t))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]}var $=Array.prototype.slice;function V(t){return function(){return t}}function X(t){return t}var Z=Math.sqrt(50),K=Math.sqrt(10),J=Math.sqrt(2);function Q(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function tt(){var t=X,e=G,n=Q;function r(r){var i,o,a=r.length,s=new Array(a);for(i=0;i<a;++i)s[i]=t(r[i],i,r);var l,c,u,f,d,h,p=e(s),m=p[0],b=p[1],g=n(s,m,b);Array.isArray(g)||(l=m,c=b,u=g,f=Math.abs(c-l)/Math.max(0,u),d=Math.pow(10,Math.floor(Math.log(f)/Math.LN10)),(h=f/d)>=Z?d*=10:h>=K?d*=5:h>=J&&(d*=2),g=c<l?-d:d,g=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}(Math.ceil(m/g)*g,b,g));for(var v=g.length;g[0]<=m;)g.shift(),--v;for(;g[v-1]>b;)g.pop(),--v;var y,x=new Array(v+1);for(i=0;i<=v;++i)(y=x[i]=[]).x0=i>0?g[i-1]:m,y.x1=i<v?g[i]:b;for(i=0;i<a;++i)m<=(o=s[i])&&o<=b&&x[Y(g,o,0,v)].push(r[i]);return x}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:V(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:V([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?V($.call(t)):V(t),r):n},r}var et=i((function(t,e){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports={Node:n(1),Force:n(2),Distributor:n(3),Renderer:n(10)}},function(t,e){function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,r,i){n(this,t),this.idealPos=e,this.currentPos=e,this.width=r,this.data=i,this.layerIndex=0}return r(t,[{key:"distanceFrom",value:function(t){var e=this.width/2,n=t.width/2;return Math.max(this.currentPos-e,t.currentPos-n)-Math.min(this.currentPos+e,t.currentPos+n)}},{key:"moveToIdealPosition",value:function(){return this.currentPos=this.idealPos,this}},{key:"displacement",value:function(){return this.idealPos-this.currentPos}},{key:"overlapWithNode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.distanceFrom(t)-e<0}},{key:"overlapWithPoint",value:function(t){var e=this.width/2;return t>=this.currentPos-e&&t<=this.currentPos+e}},{key:"positionBefore",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.currentLeft()-this.width/2-e}},{key:"positionAfter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.currentRight()+this.width/2+e}},{key:"currentRight",value:function(){return this.currentPos+this.width/2}},{key:"currentLeft",value:function(){return this.currentPos-this.width/2}},{key:"idealRight",value:function(){return this.idealPos+this.width/2}},{key:"idealLeft",value:function(){return this.idealPos-this.width/2}},{key:"createStub",value:function(e){var n=new t(this.idealPos,e,this.data);return n.currentPos=this.currentPos,n.child=this,this.parent=n,n}},{key:"removeStub",value:function(){return this.parent&&(this.parent.child=null,this.parent=null),this}},{key:"isStub",value:function(){return!!this.child}},{key:"getPathToRoot",value:function(){for(var t=[],e=this;e;)t.push(e),e=e.parent;return t}},{key:"getPathFromRoot",value:function(){return this.getPathToRoot().reverse()}},{key:"getPathToRootLength",value:function(){for(var t=0,e=this;e;){var n=e.parent?e.parent.currentPos:e.idealPos;t+=Math.abs(e.currentPos-n),e=e.parent}return t}},{key:"getRoot",value:function(){for(var t=this,e=this;e;)t=e,e=e.parent;return t}},{key:"getLayerIndex",value:function(){return this.layerIndex}},{key:"clone",value:function(){var e=new t(this.idealPos,this.width,this.data);return e.currentPos=this.currentPos,e.layerIndex=this.layerIndex,e}}]),t}();t.exports=i},function(t,e,n){var r=n(3),i=n(4),o=n(8),a={nodeSpacing:3,minPos:0,maxPos:null,algorithm:"overlap",removeOverlap:!0,density:.85,stubWidth:1},s=function(t){var e={},n=i.extend({},a),s=new r,l=[],c=null;return e.nodes=function(t){return arguments.length?(l=t,c=[t.concat()],e):l},e.getLayers=function(){return c},e.options=function(t){if(!arguments.length)return n;n=i.extend(n,t);var o=i.pick(n,Object.keys(r.DEFAULT_OPTIONS));return i.isDefined(n.minPos)&&i.isDefined(n.maxPos)?o.layerWidth=n.maxPos-n.minPos:o.layerWidth=null,s.options(o),e},e.options(t),e.compute=function(){var t=i.pick(n,Object.keys(o.DEFAULT_OPTIONS));return l.forEach((function(t){t.removeStub()})),(c=s.distribute(l)).map((function(e,r){e.forEach((function(t){t.layerIndex=r})),n.removeOverlap&&o(e,t)})),e},e.start=function(){console.log("[warning] force.start() is deprecated. Please use force.compute() instead.")},e};s.DEFAULT_OPTIONS=a,t.exports=s},function(t,e,n){var r=n(4),i=n(6),o={algorithm:"overlap",layerWidth:1e3,density:.75,nodeSpacing:3,stubWidth:1},a=function(t){var e={};t=r.extend({},o,t),e.options=function(n){return arguments.length?(t=r.extend(t,n),e):t},e.computeRequiredWidth=function(e){return r.sum(e,(function(e){return e.width+t.nodeSpacing}))-t.nodeSpacing},e.maxWidthPerLayer=function(){return t.density*t.layerWidth},e.needToSplit=function(t){return e.estimateRequiredLayers(t)>1},e.estimateRequiredLayers=function(n){return t.layerWidth?Math.ceil(e.computeRequiredWidth(n)/e.maxWidthPerLayer()):1};var n={simple:function(n){for(var r=e.estimateRequiredLayers(n),i=[],o=0;o<r;o++)i.push([]);return n.forEach((function(e,n){var o=n%r;i[o].push(e);for(var a=e,s=o-1;s>=0;s--)a=a.createStub(t.stubWidth),i[s].push(a)})),i},roundRobin:function(t){return[]},overlap:function(n){for(var r=[],i=e.maxWidthPerLayer(),o=n.concat(),a=e.computeRequiredWidth(o);a>i;){e.countIdealOverlaps(o);var s=o.concat(),l=a;for(o=[];s.length>2&&l>i;){s.sort((function(t,e){return e.overlapCount-t.overlapCount}));var c=s.shift();l-=c.width,l+=t.stubWidth,c.overlaps.forEach((function(t){t.overlapCount--})),o.push(c)}r.push(s),a=e.computeRequiredWidth(o)}o.length>0&&r.push(o);for(var u=r.length-1;u>=1;u--)for(var f=r[u],d=0;d<f.length;d++){var h=f[d];if(!h.isStub())for(var p=h,m=u-1;m>=0;m--)p=p.createStub(t.stubWidth),r[m].push(p)}return r}};return e.countIdealOverlaps=function(e){var n=new i(t.layerWidth/2);return e.forEach((function(t){n.add([t.idealLeft(),t.idealRight(),t])})),e.forEach((function(t){var e=n.search(t.idealLeft(),t.idealRight());t.overlaps=e.map((function(t){return t.data[2]})),t.overlapCount=e.length})),e},e.distribute=function(i){if(!i||0===i.length)return[];if("none"==t.algorithm||!r.isDefined(t.algorithm))return[i];if(!e.needToSplit(i))return[i];var o=i.concat().sort((function(t,e){return t.idealPos-e.idealPos}));if("function"==typeof t.algorithm)return t.algorithm(o,t);if(n.hasOwnProperty(t.algorithm))return n[t.algorithm](o);throw"Unknown algorithm: "+t.algorithm},e};a.DEFAULT_OPTIONS=o,t.exports=a},function(t,e,n){var r={isDefined:function(t){return null!=t},last:function(t){return t.length>0?t[t.length-1]:null},pick:function(t,e){return e.reduce((function(e,n){return e[n]=t[n],e}),{})},sum:function(t,e){return t.map(e).reduce((function(t,e){return t+e}),0)}};r.extend=n(5),t.exports=r},function(t,e){var 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},r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===i.call(t)},a=function(t){if(!t||"[object Object]"!==i.call(t))return!1;var e,n=r.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&r.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!o)return!1;for(e in t);return void 0===e||r.call(t,e)};t.exports=function t(){var e,r,i,s,l,c,u=arguments[0],f=1,d=arguments.length,h=!1;for("boolean"==typeof u?(h=u,u=arguments[1]||{},f=2):("object"!==(void 0===u?"undefined":n(u))&&"function"!=typeof u||null==u)&&(u={});f<d;++f)if(null!=(e=arguments[f]))for(r in e)i=u[r],u!==(s=e[r])&&(h&&s&&(a(s)||(l=o(s)))?(l?(l=!1,c=i&&o(i)?i:[]):c=i&&a(i)?i:{},u[r]=t(h,c,s)):void 0!==s&&(u[r]=s));return u}},function(t,e,n){function r(t,e){if(e||(e={}),this.startKey=e.startKey||0,this.endKey=e.endKey||1,this.intervalHash={},this.pointTree=new c({compare:function(t,e){if(null==t)return-1;if(null==e)return 1;var n=t[0]-e[0];return n>0?1:0==n?0:-1}}),this._autoIncrement=0,!t||"number"!=typeof t)throw new Error("you must specify center index as the 2nd argument.");this.root=new s(t,this)}function i(t,e){return e.end<t.idx?(t.left||(t.left=new s(e.start+e.end>>1,this)),i.call(this,t.left,e)):t.idx<e.start?(t.right||(t.right=new s(e.start+e.end>>1,this)),i.call(this,t.right,e)):t.insert(e)}function o(t,e,n){if(t)return e<t.idx?(t.starts.every((function(t){var r=t.start<=e;return r&&n.push(t.result()),r})),o.call(this,t.left,e,n)):e>t.idx?(t.ends.every((function(t){var r=t.end>=e;return r&&n.push(t.result()),r})),o.call(this,t.right,e,n)):void t.starts.map((function(t){n.push(t.result())}))}function a(t,e,n){if(e-t<=0)throw new Error("end must be greater than start. start: "+t+", end: "+e);var r={},i=[];o.call(this,this.root,t+e>>1,i,!0),i.forEach((function(t){r[t.id]=!0}));for(var a=this.pointTree.bsearch([t,null]),s=this.pointTree;a>=0&&s[a][0]==t;)a--;var l=this.pointTree.bsearch([e,null]);if(l>=0){for(var c=s.length-1;l<=c&&s[l][0]<=e;)l++;s.slice(a+1,l).forEach((function(t){var e=t[1];r[e]=!0}),this),Object.keys(r).forEach((function(r){var i=this.intervalHash[r];n.push(i.result(t,e))}),this)}}function s(t){this.idx=t,this.starts=new c({compare:function(t,e){if(null==t)return-1;if(null==e)return 1;var n=t.start-e.start;return n>0?1:0==n?0:-1}}),this.ends=new c({compare:function(t,e){if(null==t)return-1;if(null==e)return 1;var n=t.end-e.end;return n<0?1:0==n?0:-1}})}function l(t,e,n,r){if(this.id=e,this.start=t[n],this.end=t[r],this.data=t,"number"!=typeof this.start||"number"!=typeof this.end)throw new Error("start, end must be number. start: "+this.start+", end: "+this.end);if(this.start>=this.end)throw new Error("start must be smaller than end. start: "+this.start+", end: "+this.end)}var c=n(7);r.prototype.add=function(t,e){if(this.intervalHash[e])throw new Error("id "+e+" is already registered.");if(null==e){for(;this.intervalHash[this._autoIncrement];)this._autoIncrement++;e=this._autoIncrement}var n=new l(t,e,this.startKey,this.endKey);this.pointTree.insert([n.start,e]),this.pointTree.insert([n.end,e]),this.intervalHash[e]=n,this._autoIncrement++,i.call(this,this.root,n)},r.prototype.search=function(t,e){var n=[];if("number"!=typeof t)throw new Error(t+": invalid input");if(null==e)o.call(this,this.root,t,n);else{if("number"!=typeof e)throw new Error(t+","+e+": invalid input");a.call(this,t,e,n)}return n},r.prototype.remove=function(t){},s.prototype.insert=function(t){this.starts.insert(t),this.ends.insert(t)},l.prototype.result=function(t,e){var n={id:this.id,data:this.data};if("number"==typeof t&&"number"==typeof e){var r=Math.max(this.start,t),i=Math.min(this.end,e)-r;n.rate1=i/(e-t),n.rate2=i/(this.end-this.start)}return n},t.exports=r},function(t,e){var 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},r=function t(){var e=null,r={},i=arguments;["0","1"].forEach((function(t){var o=i[t];Array.isArray(o)?e=o:o&&"object"==(void 0===o?"undefined":n(o))&&(r=o)})),"function"==typeof r.filter&&(this._filter=r.filter),"function"==typeof r.compare?this._compare=r.compare:"string"==typeof r.compare&&t.compares[r.compare]&&(this._compare=t.compares[r.compare]),this._unique=!!r.unique,r.resume&&e?e.forEach((function(t,e){this.push(t)}),this):e&&this.insert.apply(this,e)};r.create=function(t,e){return new r(t,e)},r.prototype=new Array,r.prototype.constructor=Array.prototype.constructor,r.prototype.insertOne=function(t){var e=this.bsearch(t);return(!this._unique||null==this.key(t,e))&&!!this._filter(t,e)&&(this.splice(e+1,0,t),e+1)},r.prototype.insert=function(){return Array.prototype.map.call(arguments,(function(t){return this.insertOne(t)}),this)},r.prototype.remove=function(t){return this.splice(t,1),this},r.prototype.bsearch=function(t){if(!this.length)return-1;for(var e,n=0,r=this.length;r-n>1;){var i=this[e=Math.floor((n+r)/2)],o=this._compare(t,i);if(0==o)return e;o>0?n=e:r=e}return 0==n&&this._compare(this[0],t)>0?-1:n},r.prototype.key=function(t,e){null==e&&(e=this.bsearch(t));var n=e;if(-1==n||this._compare(this[n],t)<0)return n+1<this.length&&0==this._compare(this[n+1],t)?n+1:null;for(;n>=1&&0==this._compare(this[n-1],t);)n--;return n},r.prototype.keys=function(t,e){var n=[];null==e&&(e=this.bsearch(t));for(var r=e;r>=0&&0==this._compare(this[r],t);)n.push(r),r--;var i=this.length;for(r=e+1;r<i&&0==this._compare(this[r],t);)n.push(r),r++;return n.length?n:null},r.prototype.unique=function(t){if(t)return this.filter((function(t,e){return 0==e||0!=this._compare(this[e-1],t)}),this);var e=0;return this.map((function(t,n){return 0==n||0!=this._compare(this[n-1],t)?null:n-e++}),this).forEach((function(t){null!=t&&this.remove(t)}),this),this},r.prototype.toArray=function(){return this.slice()},r.prototype._filter=function(t,e){return!0},r.compares={number:function(t,e){var n=t-e;return n>0?1:0==n?0:-1},string:function(t,e){return t>e?1:t==e?0:-1}},r.prototype._compare=r.compares.string,t.exports=r},function(t,e,n){function r(t){var e=new a.Variable(t.targetPos);return e.node=t,e}function i(t,e){if(t.length>0){e=o.extend(s,e),t.forEach((function(t,e){t.targetPos=t.parent?t.parent.currentPos:t.idealPos,t.index=e}));for(var n=t.concat().sort((function(t,e){var n=t.targetPos-e.targetPos;if(0!==n)return n;var r=t.isStub()-e.isStub();return 0!==r?r:t.index-e.index})).map(r),i=[],l=1;l<n.length;l++){var c=n[l-1],u=n[l],f=void 0;f=c.node.isStub()&&u.node.isStub()?(c.node.width+u.node.width)/2+e.lineSpacing:(c.node.width+u.node.width)/2+e.nodeSpacing,i.push(new a.Constraint(c,u,f))}if(o.isDefined(e.minPos)){var d=new a.Variable(e.minPos,1e10),h=n[0];i.push(new a.Constraint(d,h,h.node.width/2)),n.unshift(d)}if(o.isDefined(e.maxPos)){var p=new a.Variable(e.maxPos,1e10),m=o.last(n);i.push(new a.Constraint(m,p,m.node.width/2)),n.push(p)}new a.Solver(n,i).solve(),n.filter((function(t){return t.node})).map((function(t){return t.node.currentPos=Math.round(t.position()),t}))}return t}var o=n(4),a=n(9),s={lineSpacing:2,nodeSpacing:3,minPos:0,maxPos:null};i.DEFAULT_OPTIONS=s,t.exports=i},function(t,e){var n={},r=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,n=t.offset/t.scale,r=t.weight;this.AB+=r*e*n,this.AD+=r*e*t.desiredPosition,this.A2+=r*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();n.PositionStats=r;var i=function(){function t(t,e,n,r){void 0===r&&(r=!1),this.left=t,this.right=e,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=n,this.equality=r}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();n.Constraint=i;var o=function(){function t(t,e,n){void 0===e&&(e=1),void 0===n&&(n=1),this.desiredPosition=t,this.weight=e,this.scale=n,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var n=function(n,r){return n.active&&t!==r&&e(n,r)};this.cOut.forEach((function(t){return n(t,t.right)})),this.cIn.forEach((function(t){return n(t,t.left)}))},t}();n.Variable=o;var a=function(){function t(t){this.vars=[],t.offset=0,this.ps=new r(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t<e;++t)this.ps.addVariable(this.vars[t]);this.posn=this.ps.getPosn()},t.prototype.compute_lm=function(t,e,n){var r=this,i=t.dfdv();return t.visitNeighbours(e,(function(e,o){var a=r.compute_lm(o,t,n);o===e.right?(i+=a*e.left.scale,e.lm=a):(i+=a*e.right.scale,e.lm=-a),n(e)})),i/t.scale},t.prototype.populateSplitBlock=function(t,e){var n=this;t.visitNeighbours(e,(function(e,r){r.offset=t.offset+(r===e.right?e.gap:-e.gap),n.addVariable(r),n.populateSplitBlock(r,t)}))},t.prototype.traverse=function(t,e,n,r){var i=this;void 0===n&&(n=this.vars[0]),void 0===r&&(r=null),n.visitNeighbours(r,(function(r,o){e.push(t(r)),i.traverse(t,e,o,n)}))},t.prototype.findMinLM=function(){var t=null;return this.compute_lm(this.vars[0],null,(function(e){!e.equality&&(null===t||e.lm<t.lm)&&(t=e)})),t},t.prototype.findMinLMBetween=function(t,e){this.compute_lm(t,null,(function(){}));var n=null;return this.findPath(t,null,e,(function(t,e){!t.equality&&t.right===e&&(null===n||t.lm<n.lm)&&(n=t)})),n},t.prototype.findPath=function(t,e,n,r){var i=this,o=!1;return t.visitNeighbours(e,(function(e,a){o||a!==n&&!i.findPath(a,t,n,r)||(o=!0,r(e,a))})),o},t.prototype.isActiveDirectedPathBetween=function(t,e){if(t===e)return!0;for(var n=t.cOut.length;n--;){var r=t.cOut[n];if(r.active&&this.isActiveDirectedPathBetween(r.right,e))return!0}return!1},t.split=function(e){return e.active=!1,[t.createSplitBlock(e.left),t.createSplitBlock(e.right)]},t.createSplitBlock=function(e){var n=new t(e);return n.populateSplitBlock(e,null),n},t.prototype.splitBetween=function(e,n){var r=this.findMinLMBetween(e,n);if(null!==r){var i=t.split(r);return{constraint:r,lb:i[0],rb:i[1]}}return null},t.prototype.mergeAcross=function(t,e,n){e.active=!0;for(var r=0,i=t.vars.length;r<i;++r){var o=t.vars[r];o.offset+=n,this.addVariable(o)}this.posn=this.ps.getPosn()},t.prototype.cost=function(){for(var t=0,e=this.vars.length;e--;){var n=this.vars[e],r=n.position()-n.desiredPosition;t+=r*r*n.weight}return t},t}();n.Block=a;var s=function(){function t(t){this.vs=t;var e=t.length;for(this.list=new Array(e);e--;){var n=new a(t[e]);this.list[e]=n,n.blockInd=e}}return t.prototype.cost=function(){for(var t=0,e=this.list.length;e--;)t+=this.list[e].cost();return t},t.prototype.insert=function(t){t.blockInd=this.list.length,this.list.push(t)},t.prototype.remove=function(t){var e=this.list.length-1,n=this.list[e];this.list.length=e,t!==n&&(this.list[t.blockInd]=n,n.blockInd=t.blockInd)},t.prototype.merge=function(t){var e=t.left.block,n=t.right.block,r=t.right.offset-t.left.offset-t.gap;e.vars.length<n.vars.length?(n.mergeAcross(e,t,r),this.remove(e)):(e.mergeAcross(n,t,-r),this.remove(n))},t.prototype.forEach=function(t){this.list.forEach(t)},t.prototype.updateBlockPositions=function(){this.list.forEach((function(t){return t.updateWeightedPosition()}))},t.prototype.split=function(t){var e=this;this.updateBlockPositions(),this.list.forEach((function(n){var r=n.findMinLM();null!==r&&r.lm<l.LAGRANGIAN_TOLERANCE&&(n=r.left.block,a.split(r).forEach((function(t){return e.insert(t)})),e.remove(n),t.push(r))}))},t}();n.Blocks=s;var l=function(){function t(t,e){this.vs=t,this.cs=e,this.vs=t,t.forEach((function(t){t.cIn=[],t.cOut=[]})),this.cs=e,e.forEach((function(t){t.left.cOut.push(t),t.right.cIn.push(t)})),this.inactive=e.map((function(t){return t.active=!1,t})),this.bs=null}return t.prototype.cost=function(){return this.bs.cost()},t.prototype.setStartingPositions=function(t){this.inactive=this.cs.map((function(t){return t.active=!1,t})),this.bs=new s(this.vs),this.bs.forEach((function(e,n){return e.posn=t[n]}))},t.prototype.setDesiredPositions=function(t){this.vs.forEach((function(e,n){return e.desiredPosition=t[n]}))},t.prototype.mostViolated=function(){for(var e=Number.MAX_VALUE,n=null,r=this.inactive,i=r.length,o=i,a=0;a<i;++a){var s=r[a];if(!s.unsatisfiable){var l=s.slack();if((s.equality||l<e)&&(e=l,n=s,o=a,s.equality))break}}return o!==i&&(e<t.ZERO_UPPERBOUND&&!n.active||n.equality)&&(r[o]=r[i-1],r.length=i-1),n},t.prototype.satisfy=function(){null==this.bs&&(this.bs=new s(this.vs)),this.bs.split(this.inactive);for(var e=null;(e=this.mostViolated())&&(e.equality||e.slack()<t.ZERO_UPPERBOUND&&!e.active);){var n=e.left.block;if(n!==e.right.block)this.bs.merge(e);else{if(n.isActiveDirectedPathBetween(e.right,e.left)){e.unsatisfiable=!0;continue}var r=n.splitBetween(e.left,e.right);if(null===r){e.unsatisfiable=!0;continue}this.bs.insert(r.lb),this.bs.insert(r.rb),this.bs.remove(n),this.inactive.push(r.constraint),e.slack()>=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();n.Solver=l,t.exports=n},function(t,e,n){function r(t){this.options=c.extend({layerGap:60,nodeHeight:10,direction:"down"},t)}function i(t){return"L "+t.join(" ")}function o(t){return"M "+t.join(" ")}function a(t,e,n){return"C "+t.join(" ")+" "+e.join(" ")+" "+n.join(" ")}function s(t,e){var n=(t[1]+e[1])/2;return a([t[0],n],[e[0],n],e)}function l(t,e){var n=(t[0]+e[0])/2;return a([n,t[1]],[n,e[1]],e)}var c=n(4);r.lineTo=i,r.moveTo=o,r.curveTo=a,r.vCurveBetween=s,r.hCurveBetween=l,r.prototype.getWaypoints=function(t){var e=this.options,n=e.direction,r=t.getPathFromRoot(),i=e.nodeHeight+e.layerGap;return"left"===n?[[[0,r[0].idealPos]]].concat(r.map((function(t,n){var r=i*(n+1)*-1;return[[r+e.nodeHeight,t.currentPos],[r,t.currentPos]]}))):"right"===n?[[[0,r[0].idealPos]]].concat(r.map((function(t,n){var r=i*(n+1);return[[r-e.nodeHeight,t.currentPos],[r,t.currentPos]]}))):"up"===n?[[[r[0].idealPos,0]]].concat(r.map((function(t,n){var r=i*(n+1)*-1;return[[t.currentPos,r+e.nodeHeight],[t.currentPos,r]]}))):[[[r[0].idealPos,0]]].concat(r.map((function(t,n){var r=i*(n+1);return[[t.currentPos,r-e.nodeHeight],[t.currentPos,r]]})))},r.prototype.layout=function(t){var e=this.options,n=e.layerGap+e.nodeHeight;switch(e.direction){case"left":t.forEach((function(t){var r=t.getLayerIndex()*n+e.layerGap;t.x=-r-e.nodeHeight,t.y=t.currentPos,t.dx=e.nodeHeight,t.dy=t.width}));break;case"right":t.forEach((function(t){var r=t.getLayerIndex()*n+e.layerGap;t.x=r,t.y=t.currentPos,t.dx=e.nodeHeight,t.dy=t.width}));break;case"up":t.forEach((function(t){var r=t.getLayerIndex()*n+e.layerGap;t.x=t.currentPos,t.y=-r-e.nodeHeight,t.dx=t.width,t.dy=e.nodeHeight}));break;default:case"down":t.forEach((function(t){var r=t.getLayerIndex()*n+e.layerGap;t.x=t.currentPos,t.y=r,t.dx=t.width,t.dy=e.nodeHeight}))}return t},r.prototype.generatePath=function(t){var e=this.options.direction,n=this.getWaypoints(t,e),r=[o(n[0][0])];return"left"===e||"right"===e?n.reduce((function(t,e,o){return r.push(l(t[t.length-1],e[0])),o<n.length-1&&r.push(i(e[1])),e})):n.reduce((function(t,e,o){return r.push(s(t[t.length-1],e[0])),o<n.length-1&&r.push(i(e[1])),e})),r.join(" ")},t.exports=r}])})),nt=({metric:e})=>t.createElement("div",{className:"chart-header"},t.createElement("h6",{className:"heading-6 color-text-primary"},t.createElement("span",{className:"uppercase prefix"},"metric name:"),t.createElement("span",null," ",e)));const rt={colors:{baseline:"#52b3d9",canary:"#e26a6a",background:"#f8f8f8"},height:400,timeSeries:{minimapDataPointsThreshold:240,minimapHeight:40,axisTickLineHeight:4,axisTickLabelHeight:32,axisLabelHeight:16},dataGroupMap:{baseline:"control",canary:"experiment"}};a(".chart-legend {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n height: 24px;\n margin-top: 4px;\n}\n.chart-legend .legend-item {\n display: flex;\n align-items: center;\n margin: 0px 40px;\n font-size: 12px;\n}\n.chart-legend .clickable {\n cursor: pointer;\n}\n.chart-legend .deselected {\n opacity: 0.5;\n}\n.chart-legend .legend-icon {\n height: 12px;\n width: 40px;\n border-radius: 6px;\n margin-right: 8px;\n}\n");var it,ot=e=>{const{onClickHandler:n,showGroup:r={baseline:!0,canary:!0},isClickable:i=!1}=e,o={backgroundColor:rt.colors.baseline},a={backgroundColor:rt.colors.canary},l=t=>n?()=>n(t):void 0,c=s("legend-item",{clickable:i}),u=s(c,{deselected:!r.canary}),f=s(c,{deselected:!r.baseline});return t.createElement("div",{className:"chart-legend"},t.createElement("div",{className:f,onClick:l("baseline")},t.createElement("div",{className:"legend-icon",style:o}),t.createElement("div",null,"Baseline")),t.createElement("div",{className:u,onClick:l("canary")},t.createElement("div",{className:"legend-icon",style:a}),t.createElement("div",null,"Canary")))},at=({group:e})=>{const n={color:rt.colors[e],paddingRight:4};return t.createElement("i",{className:"fas fa-circle",style:n})},st=Object.defineProperty({default:{GLOBAL:{HIDE:"__react_tooltip_hide_event",REBUILD:"__react_tooltip_rebuild_event",SHOW:"__react_tooltip_show_event"}}},"__esModule",{value:!0}),lt=(it=st)&&it.__esModule?it:{default:it};var ct=function(t,e){var n=void 0;"function"==typeof window.CustomEvent?n=new window.CustomEvent(t,{detail:e}):((n=document.createEvent("Event")).initEvent(t,!1,!0),n.detail=e),window.dispatchEvent(n)},ut=Object.defineProperty({default:function(t){t.hide=function(t){ct(lt.default.GLOBAL.HIDE,{target:t})},t.rebuild=function(){ct(lt.default.GLOBAL.REBUILD)},t.show=function(t){ct(lt.default.GLOBAL.SHOW,{target:t})},t.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},t.prototype.globalShow=function(t){if(this.mount){var e={currentTarget:t.detail.target};this.showTooltip(e,!0)}},t.prototype.globalHide=function(t){if(this.mount){var e=!!(t&&t.detail&&t.detail.target);this.hideTooltip({currentTarget:e&&t.detail.target},e)}}}},"__esModule",{value:!0}),ft=function(t){return t&&t.__esModule?t:{default:t}}(st);var dt=Object.defineProperty({default:function(t){t.prototype.bindWindowEvents=function(t){window.removeEventListener(ft.default.GLOBAL.HIDE,this.globalHide),window.addEventListener(ft.default.GLOBAL.HIDE,this.globalHide,!1),window.removeEventListener(ft.default.GLOBAL.REBUILD,this.globalRebuild),window.addEventListener(ft.default.GLOBAL.REBUILD,this.globalRebuild,!1),window.removeEventListener(ft.default.GLOBAL.SHOW,this.globalShow),window.addEventListener(ft.default.GLOBAL.SHOW,this.globalShow,!1),t&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},t.prototype.unbindWindowEvents=function(){window.removeEventListener(ft.default.GLOBAL.HIDE,this.globalHide),window.removeEventListener(ft.default.GLOBAL.REBUILD,this.globalRebuild),window.removeEventListener(ft.default.GLOBAL.SHOW,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},t.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}},"__esModule",{value:!0});function ht(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pt=function(t,e){var n=this.state.show,r=this.props.id,i=e.currentTarget.getAttribute("data-iscapture"),o=i&&"true"===i||this.props.isCapture,a=e.currentTarget.getAttribute("currentItem");o||e.stopPropagation(),n&&"true"===a?t||this.hideTooltip(e):(e.currentTarget.setAttribute("currentItem","true"),mt(e.currentTarget,this.getTargetArray(r)),this.showTooltip(e))},mt=function(t,e){for(var n=0;n<e.length;n++)t!==e[n]?e[n].setAttribute("currentItem","false"):e[n].setAttribute("currentItem","true")},bt={id:"9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",set:function(t,e,n){this.id in t?t[this.id][e]=n:Object.defineProperty(t,this.id,{configurable:!0,value:ht({},e,n)})},get:function(t,e){var n=t[this.id];if(void 0!==n)return n[e]}},gt=Object.defineProperty({default:function(t){t.prototype.isCustomEvent=function(t){return this.state.event||!!t.getAttribute("data-event")},t.prototype.customBindListener=function(t){var e=this,n=this.state,r=n.event,i=n.eventOff,o=t.getAttribute("data-event")||r,a=t.getAttribute("data-event-off")||i;o.split(" ").forEach((function(n){t.removeEventListener(n,bt.get(t,n));var r=pt.bind(e,a);bt.set(t,n,r),t.addEventListener(n,r,!1)})),a&&a.split(" ").forEach((function(n){t.removeEventListener(n,e.hideTooltip),t.addEventListener(n,e.hideTooltip,!1)}))},t.prototype.customUnbindListener=function(t){var e=this.state,n=e.event,r=e.eventOff,i=n||t.getAttribute("data-event"),o=r||t.getAttribute("data-event-off");t.removeEventListener(i,bt.get(t,n)),o&&t.removeEventListener(o,this.hideTooltip)}}},"__esModule",{value:!0}),vt=Object.defineProperty({default:function(t){t.prototype.isCapture=function(t){return t&&"true"===t.getAttribute("data-iscapture")||this.props.isCapture||!1}}},"__esModule",{value:!0}),yt=Object.defineProperty({default:function(t){t.prototype.getEffect=function(t){return t.getAttribute("data-effect")||this.props.effect||"float"}}},"__esModule",{value:!0}),xt=function(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver},wt=Object.defineProperty({default:function(t){t.prototype.bindRemovalTracker=function(){var t=this,e=xt();if(null!=e){var n=new e((function(e){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.removedNodes.length;i++){if(r.removedNodes[i]===t.state.currentTarget)return void t.hideTooltip()}}));n.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=n}},t.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)}}},"__esModule",{value:!0}),_t=function(t){var e=t.getBoundingClientRect(),n=e.height,r=e.width;return{height:parseInt(n,10),width:parseInt(r,10)}},Et=function(t,e,n){var r=e.getBoundingClientRect(),i=r.top,o=r.left,a=_t(e),s=a.width,l=a.height;return"float"===n?{mouseX:t.clientX,mouseY:t.clientY}:{mouseX:o+s/2,mouseY:i+l/2}},Mt=function(t,e,n,r,i){var o=void 0,a=void 0,s=void 0,l=void 0;return"float"===t?(o={l:-r/2,r:r/2,t:-(i+3+2),b:-3},s={l:-r/2,r:r/2,t:15,b:i+3+2+12},l={l:-(r+3+2),r:-3,t:-i/2,b:i/2},a={l:3,r:r+3+2,t:-i/2,b:i/2}):"solid"===t&&(o={l:-r/2,r:r/2,t:-(n/2+i+2),b:-n/2},s={l:-r/2,r:r/2,t:n/2,b:n/2+i+2},l={l:-(r+e/2+2),r:-e/2,t:-i/2,b:i/2},a={l:e/2,r:r+e/2+2,t:-i/2,b:i/2}),{top:o,bottom:s,left:l,right:a}},Tt=function(t){var e=0,n=0;for(var r in"[object String]"===Object.prototype.toString.apply(t)&&(t=JSON.parse(t.toString().replace(/\'/g,'"'))),t)"top"===r?n-=parseInt(t[r],10):"bottom"===r?n+=parseInt(t[r],10):"left"===r?e-=parseInt(t[r],10):"right"===r&&(e+=parseInt(t[r],10));return{extraOffset_X:e,extraOffset_Y:n}},kt=function(t){for(var e=t;e&&"none"===window.getComputedStyle(e).getPropertyValue("transform");)e=e.parentElement;return{parentTop:e&&e.getBoundingClientRect().top||0,parentLeft:e&&e.getBoundingClientRect().left||0}},St=Object.defineProperty({default:function(t,e,n,r,i,o,a){for(var s=_t(n),l=s.width,c=s.height,u=_t(e),f=u.width,d=u.height,h=Et(t,e,o),p=h.mouseX,m=h.mouseY,b=Mt(o,f,d,l,c),g=Tt(a),v=g.extraOffset_X,y=g.extraOffset_Y,x=window.innerWidth,w=window.innerHeight,_=kt(n),E=_.parentTop,M=_.parentLeft,T=function(t){var e=b[t].l;return p+e+v},k=function(t){var e=b[t].t;return m+e+y},S=function(t){return function(t){var e=b[t].r;return p+e+v}(t)>x},A=function(t){return function(t){var e=b[t].b;return m+e+y}(t)>w},C=function(t){return function(t){return T(t)<0}(t)||S(t)||function(t){return k(t)<0}(t)||A(t)},N=function(t){return!C(t)},L=["top","bottom","left","right"],P=[],O=0;O<4;O++){var D=L[O];N(D)&&P.push(D)}var H=!1,U=void 0;return N(i)&&i!==r?(H=!0,U=i):P.length>0&&C(i)&&C(r)&&(H=!0,U=P[0]),H?{isNewState:!0,newState:{place:U}}:{isNewState:!1,position:{left:parseInt(T(r)-M,10),top:parseInt(k(r)-E,10)}}}},"__esModule",{value:!0}),At=function(t){return t&&t.__esModule?t:{default:t}}(e);var Ct=Object.defineProperty({default:function(t,e,n,r){if(e)return e;if(null!=n)return n;if(null===n)return null;var i=/<br\s*\/?>/;return r&&"false"!==r&&i.test(t)?t.split(i).map((function(t,e){return At.default.createElement("span",{key:e,className:"multi-line"},t)})):t}},"__esModule",{value:!0}),Nt=function(t){var e={};return Object.keys(t).filter((function(t){return/(^aria-\w+$|^role$)/.test(t)})).forEach((function(n){e[n]=t[n]})),e};var Lt,Pt,Ot,Dt=Object.defineProperty({parseAria:Nt},"__esModule",{value:!0}),Ht=Object.defineProperty({default:function(t){var e=t.length;return t.hasOwnProperty?Array.prototype.slice.call(t):new Array(e).fill().map((function(e){return t[e]}))}},"__esModule",{value:!0}),Ut=Object.defineProperty({default:'.__react_component_tooltip{border-radius:3px;display:inline-block;font-size:13px;left:-999em;opacity:0;padding:8px 21px;position:fixed;pointer-events:none;transition:opacity 0.3s ease-out;top:-999em;visibility:hidden;z-index:999}.__react_component_tooltip.allow_hover,.__react_component_tooltip.allow_click{pointer-events:auto}.__react_component_tooltip:before,.__react_component_tooltip:after{content:"";width:0;height:0;position:absolute}.__react_component_tooltip.show{opacity:0.9;margin-top:0px;margin-left:0px;visibility:visible}.__react_component_tooltip.type-dark{color:#fff;background-color:#222}.__react_component_tooltip.type-dark.place-top:after{border-top-color:#222;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-dark.place-bottom:after{border-bottom-color:#222;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-dark.place-left:after{border-left-color:#222;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-dark.place-right:after{border-right-color:#222;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-dark.border{border:1px solid #fff}.__react_component_tooltip.type-dark.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-dark.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-dark.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-dark.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-success{color:#fff;background-color:#8DC572}.__react_component_tooltip.type-success.place-top:after{border-top-color:#8DC572;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-success.place-bottom:after{border-bottom-color:#8DC572;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-success.place-left:after{border-left-color:#8DC572;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-success.place-right:after{border-right-color:#8DC572;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-success.border{border:1px solid #fff}.__react_component_tooltip.type-success.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-success.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-success.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-success.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-warning{color:#fff;background-color:#F0AD4E}.__react_component_tooltip.type-warning.place-top:after{border-top-color:#F0AD4E;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-warning.place-bottom:after{border-bottom-color:#F0AD4E;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-warning.place-left:after{border-left-color:#F0AD4E;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-warning.place-right:after{border-right-color:#F0AD4E;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-warning.border{border:1px solid #fff}.__react_component_tooltip.type-warning.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-warning.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-warning.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-warning.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-error{color:#fff;background-color:#BE6464}.__react_component_tooltip.type-error.place-top:after{border-top-color:#BE6464;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-error.place-bottom:after{border-bottom-color:#BE6464;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-error.place-left:after{border-left-color:#BE6464;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-error.place-right:after{border-right-color:#BE6464;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-error.border{border:1px solid #fff}.__react_component_tooltip.type-error.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-error.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-error.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-error.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-info{color:#fff;background-color:#337AB7}.__react_component_tooltip.type-info.place-top:after{border-top-color:#337AB7;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-info.place-bottom:after{border-bottom-color:#337AB7;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-info.place-left:after{border-left-color:#337AB7;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-info.place-right:after{border-right-color:#337AB7;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-info.border{border:1px solid #fff}.__react_component_tooltip.type-info.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-info.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-info.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-info.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-light{color:#222;background-color:#fff}.__react_component_tooltip.type-light.place-top:after{border-top-color:#fff;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-light.place-bottom:after{border-bottom-color:#fff;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-light.place-left:after{border-left-color:#fff;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-light.place-right:after{border-right-color:#fff;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-light.border{border:1px solid #222}.__react_component_tooltip.type-light.border.place-top:before{border-top:8px solid #222}.__react_component_tooltip.type-light.border.place-bottom:before{border-bottom:8px solid #222}.__react_component_tooltip.type-light.border.place-left:before{border-left:8px solid #222}.__react_component_tooltip.type-light.border.place-right:before{border-right:8px solid #222}.__react_component_tooltip.place-top{margin-top:-10px}.__react_component_tooltip.place-top:before{border-left:10px solid transparent;border-right:10px solid transparent;bottom:-8px;left:50%;margin-left:-10px}.__react_component_tooltip.place-top:after{border-left:8px solid transparent;border-right:8px solid transparent;bottom:-6px;left:50%;margin-left:-8px}.__react_component_tooltip.place-bottom{margin-top:10px}.__react_component_tooltip.place-bottom:before{border-left:10px solid transparent;border-right:10px solid transparent;top:-8px;left:50%;margin-left:-10px}.__react_component_tooltip.place-bottom:after{border-left:8px solid transparent;border-right:8px solid transparent;top:-6px;left:50%;margin-left:-8px}.__react_component_tooltip.place-left{margin-left:-10px}.__react_component_tooltip.place-left:before{border-top:6px solid transparent;border-bottom:6px solid transparent;right:-8px;top:50%;margin-top:-5px}.__react_component_tooltip.place-left:after{border-top:5px solid transparent;border-bottom:5px solid transparent;right:-6px;top:50%;margin-top:-4px}.__react_component_tooltip.place-right{margin-left:10px}.__react_component_tooltip.place-right:before{border-top:6px solid transparent;border-bottom:6px solid transparent;left:-8px;top:50%;margin-top:-5px}.__react_component_tooltip.place-right:after{border-top:5px solid transparent;border-bottom:5px solid transparent;left:-6px;top:50%;margin-top:-4px}.__react_component_tooltip .multi-line{display:block;padding:2px 0px;text-align:center}'},"__esModule",{value:!0}),jt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},zt=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Rt=Qt(e),Bt=Qt(n),It=Qt(r),Ft=Qt(s),Wt=Qt(ut),qt=Qt(dt),Yt=Qt(gt),Gt=Qt(vt),$t=Qt(yt),Vt=Qt(wt),Xt=Qt(St),Zt=Qt(Ct),Kt=Qt(Ht),Jt=Qt(Ut);function Qt(t){return t&&t.__esModule?t:{default:t}}var te=(0,Wt.default)(Lt=(0,qt.default)(Lt=(0,Yt.default)(Lt=(0,Gt.default)(Lt=(0,$t.default)(Lt=(0,Vt.default)((Ot=Pt=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={place:t.place||"top",desiredPlace:t.place||"top",type:"dark",effect:"float",show:!1,border:!1,offset:{},extraClass:"",html:!1,delayHide:0,delayShow:0,event:t.event||null,eventOff:t.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:(0,Dt.parseAria)(t),isEmptyTip:!1,disable:!1,originTooltip:null,isMultiline:!1},n.bind(["showTooltip","updateTooltip","hideTooltip","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),n.mount=!0,n.delayShowLoop=null,n.delayHideLoop=null,n.delayReshow=null,n.intervalUpdateContent=null,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,Rt.default.Component),zt(e,[{key:"bind",value:function(t){var e=this;t.forEach((function(t){e[t]=e[t].bind(e)}))}},{key:"componentDidMount",value:function(){var t=this.props,e=t.insecure,n=t.resizeHide;e&&this.setStyleHeader(),this.bindListener(),this.bindWindowEvents(n)}},{key:"componentWillReceiveProps",value:function(t){var e=this.state.ariaProps,n=(0,Dt.parseAria)(t);Object.keys(n).some((function(t){return n[t]!==e[t]}))&&this.setState({ariaProps:n})}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(),this.unbindWindowEvents()}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(t){var e=void 0;if(t){var n=t.replace(/\\/g,"\\\\").replace(/"/g,'\\"');e=document.querySelectorAll('[data-tip][data-for="'+n+'"]')}else e=document.querySelectorAll("[data-tip]:not([data-for])");return(0,Kt.default)(e)}},{key:"bindListener",value:function(){var t=this,e=this.props,n=e.id,r=e.globalEventOff,i=e.isCapture;this.getTargetArray(n).forEach((function(e){var n=t.isCapture(e),r=t.getEffect(e);null===e.getAttribute("currentItem")&&e.setAttribute("currentItem","false"),t.unbindBasicListener(e),t.isCustomEvent(e)?t.customBindListener(e):(e.addEventListener("mouseenter",t.showTooltip,n),"float"===r&&e.addEventListener("mousemove",t.updateTooltip,n),e.addEventListener("mouseleave",t.hideTooltip,n))})),r&&(window.removeEventListener(r,this.hideTooltip),window.addEventListener(r,this.hideTooltip,i)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var t=this,e=this.props,n=e.id,r=e.globalEventOff;this.getTargetArray(n).forEach((function(e){t.unbindBasicListener(e),t.isCustomEvent(e)&&t.customUnbindListener(e)})),r&&window.removeEventListener(r,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(t){var e=this.isCapture(t);t.removeEventListener("mouseenter",this.showTooltip,e),t.removeEventListener("mousemove",this.updateTooltip,e),t.removeEventListener("mouseleave",this.hideTooltip,e)}},{key:"getTooltipContent",value:function(){var t=this.props,e=t.getContent,n=t.children,r=void 0;return e&&(r=Array.isArray(e)?e[0]&&e[0](this.state.originTooltip):e(this.state.originTooltip)),(0,Zt.default)(this.state.originTooltip,n,r,this.state.isMultiline)}},{key:"isEmptyTip",value:function(t){return"string"==typeof t&&""===t||null===t}},{key:"showTooltip",value:function(t,e){if(e&&!this.getTargetArray(this.props.id).some((function(e){return e===t.currentTarget})))return;var n=this.props,r=n.multiline,i=n.getContent,o=t.currentTarget.getAttribute("data-tip"),a=t.currentTarget.getAttribute("data-multiline")||r||!1,s=t instanceof window.FocusEvent||e,l=!0;t.currentTarget.getAttribute("data-scroll-hide")?l="true"===t.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(l=this.props.scrollHide);var c=t.currentTarget.getAttribute("data-place")||this.props.place||"top",u=s?"solid":this.getEffect(t.currentTarget),f=t.currentTarget.getAttribute("data-offset")||this.props.offset||{},d=(0,Xt.default)(t,t.currentTarget,It.default.findDOMNode(this),c,c,u,f),h=d.isNewState?d.newState.place:c;this.clearTimer();var p=t.currentTarget,m=this.state.show?p.getAttribute("data-delay-update")||this.props.delayUpdate:0,b=this,g=function(){b.setState({originTooltip:o,isMultiline:a,desiredPlace:c,place:h,type:p.getAttribute("data-type")||b.props.type||"dark",effect:u,offset:f,html:p.getAttribute("data-html")?"true"===p.getAttribute("data-html"):b.props.html||!1,delayShow:p.getAttribute("data-delay-show")||b.props.delayShow||0,delayHide:p.getAttribute("data-delay-hide")||b.props.delayHide||0,delayUpdate:p.getAttribute("data-delay-update")||b.props.delayUpdate||0,border:p.getAttribute("data-border")?"true"===p.getAttribute("data-border"):b.props.border||!1,extraClass:p.getAttribute("data-class")||b.props.class||b.props.className||"",disable:p.getAttribute("data-tip-disable")?"true"===p.getAttribute("data-tip-disable"):b.props.disable||!1,currentTarget:p},(function(){l&&b.addScrollListener(b.state.currentTarget),b.updateTooltip(t),i&&Array.isArray(i)&&(b.intervalUpdateContent=setInterval((function(){if(b.mount){var t=b.props.getContent,e=(0,Zt.default)(o,"",t[0](),a),n=b.isEmptyTip(e);b.setState({isEmptyTip:n}),b.updatePosition()}}),i[1]))}))};m?this.delayReshow=setTimeout(g,m):g()}},{key:"updateTooltip",value:function(t){var e=this,n=this.state,r=n.delayShow,i=n.disable,o=this.props.afterShow,a=this.getTooltipContent(),s=parseInt(r,10),l=t.currentTarget||t.target;if(!this.mouseOnToolTip()&&!this.isEmptyTip(a)&&!i){var c=function(){if(Array.isArray(a)&&a.length>0||a){var n=!e.state.show;e.setState({currentEvent:t,currentTarget:l,show:!0},(function(){e.updatePosition(),n&&o&&o(t)}))}};clearTimeout(this.delayShowLoop),r?this.delayShowLoop=setTimeout(c,s):c()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(t,e){var n=this,r=this.state,i=r.delayHide,o=r.disable,a=this.props.afterHide,s=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(s)&&!o){if(e)if(!this.getTargetArray(this.props.id).some((function(e){return e===t.currentTarget}))||!this.state.show)return;var l=function(){var e=n.state.show;n.mouseOnToolTip()?n.listenForTooltipExit():(n.removeListenerForTooltipExit(),n.setState({show:!1},(function(){n.removeScrollListener(),e&&a&&a(t)})))};this.clearTimer(),i?this.delayHideLoop=setTimeout(l,parseInt(i,10)):l()}}},{key:"addScrollListener",value:function(t){var e=this.isCapture(t);window.addEventListener("scroll",this.hideTooltip,e)}},{key:"removeScrollListener",value:function(){window.removeEventListener("scroll",this.hideTooltip)}},{key:"updatePosition",value:function(){var t=this,e=this.state,n=e.currentEvent,r=e.currentTarget,i=e.place,o=e.desiredPlace,a=e.effect,s=e.offset,l=It.default.findDOMNode(this),c=(0,Xt.default)(n,r,l,i,o,a,s);if(c.isNewState)return this.setState(c.newState,(function(){t.updatePosition()}));l.style.left=c.position.left+"px",l.style.top=c.position.top+"px"}},{key:"setStyleHeader",value:function(){var t=document.getElementsByTagName("head")[0];if(!t.querySelector('style[id="react-tooltip"]')){var e=document.createElement("style");e.id="react-tooltip",e.innerHTML=Jt.default,"undefined"!=typeof __webpack_nonce__&&__webpack_nonce__&&e.setAttribute("nonce",__webpack_nonce__),t.insertBefore(e,t.firstChild)}}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"render",value:function(){var t=this,n=this.state,r=n.extraClass,i=n.html,o=n.ariaProps,a=n.disable,s=this.getTooltipContent(),l=this.isEmptyTip(s),c=(0,Ft.default)("__react_component_tooltip",{show:this.state.show&&!a&&!l},{border:this.state.border},{"place-top":"top"===this.state.place},{"place-bottom":"bottom"===this.state.place},{"place-left":"left"===this.state.place},{"place-right":"right"===this.state.place},{"type-dark":"dark"===this.state.type},{"type-success":"success"===this.state.type},{"type-warning":"warning"===this.state.type},{"type-error":"error"===this.state.type},{"type-info":"info"===this.state.type},{"type-light":"light"===this.state.type},{allow_hover:this.props.delayUpdate},{allow_click:this.props.clickable}),u=this.props.wrapper;return e.supportedWrappers.indexOf(u)<0&&(u=e.defaultProps.wrapper),i?Rt.default.createElement(u,jt({className:c+" "+r,id:this.props.id,ref:function(e){return t.tooltipRef=e}},o,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:s}})):Rt.default.createElement(u,jt({className:c+" "+r,id:this.props.id},o,{ref:function(e){return t.tooltipRef=e},"data-id":"tooltip"}),s)}}]),e}(),Pt.propTypes={children:Bt.default.any,place:Bt.default.string,type:Bt.default.string,effect:Bt.default.string,offset:Bt.default.object,multiline:Bt.default.bool,border:Bt.default.bool,insecure:Bt.default.bool,class:Bt.default.string,className:Bt.default.string,id:Bt.default.string,html:Bt.default.bool,delayHide:Bt.default.number,delayUpdate:Bt.default.number,delayShow:Bt.default.number,event:Bt.default.string,eventOff:Bt.default.string,watchWindow:Bt.default.bool,isCapture:Bt.default.bool,globalEventOff:Bt.default.string,getContent:Bt.default.any,afterShow:Bt.default.func,afterHide:Bt.default.func,disable:Bt.default.bool,scrollHide:Bt.default.bool,resizeHide:Bt.default.bool,wrapper:Bt.default.string,clickable:Bt.default.bool},Pt.defaultProps={insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1},Pt.supportedWrappers=["div","span"],Pt.displayName="ReactTooltip",Lt=Ot))||Lt)||Lt)||Lt)||Lt)||Lt)||Lt;class ee extends t.Component{componentDidUpdate(t){const e=this.tooltipTarget;t.content&&!this.props.content?te.hide(e):this.props.content&&te.show(e)}render(){const{x:e,y:n,content:r,id:i="tooltip"}=this.props,o={left:e||0,top:n||0,height:1,width:1,opacity:0,pointerEvents:"none",position:"absolute",zIndex:10};return t.createElement("div",{style:{pointerEvents:"none"}},t.createElement("div",{"data-tip":!0,"data-for":i,style:o,ref:t=>this.tooltipTarget=t}),t.createElement(te,{id:i,type:"light",border:!0},r||null))}}function ne(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function re(t){return(t=ne(Math.abs(t)))?t[1]:NaN}var ie,oe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ae(t){if(!(e=oe.exec(t)))throw new Error("invalid format: "+t);var e;return new se({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function se(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function le(t,e){var n=ne(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}ae.prototype=se.prototype,se.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ce={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return le(100*t,e)},r:le,s:function(t,e){var n=ne(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(ie=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ne(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function ue(t){return t}var fe,de,he,pe=Array.prototype.map,me=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function be(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?ue:(e=pe.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?ue:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(pe.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=ae(t)).fill,n=t.align,f=t.sign,d=t.symbol,h=t.zero,p=t.width,m=t.comma,b=t.precision,g=t.trim,v=t.type;"n"===v?(m=!0,v="g"):ce[v]||(void 0===b&&(b=12),g=!0,v="g"),(h||"0"===e&&"="===n)&&(h=!0,e="0",n="=");var y="$"===d?i:"#"===d&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",x="$"===d?o:/[%p]/.test(v)?l:"",w=ce[v],_=/[defgprs%]/.test(v);function E(t){var i,o,l,d=y,E=x;if("c"===v)E=w(t)+E,t="";else{var M=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:w(Math.abs(t),b),g&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),M&&0==+t&&"+"!==f&&(M=!1),d=(M?"("===f?f:c:"-"===f||"("===f?"":f)+d,E=("s"===v?me[8+ie/3]:"")+E+(M&&"("===f?")":""),_)for(i=-1,o=t.length;++i<o;)if(48>(l=t.charCodeAt(i))||l>57){E=(46===l?a+t.slice(i+1):t.slice(i))+E,t=t.slice(0,i);break}}m&&!h&&(t=r(t,1/0));var T=d.length+t.length+E.length,k=T<p?new Array(p-T+1).join(e):"";switch(m&&h&&(t=r(k+t,k.length?p-E.length:1/0),k=""),n){case"<":t=d+t+E+k;break;case"=":t=d+k+t+E;break;case"^":t=k.slice(0,T=k.length>>1)+d+t+E+k.slice(T);break;default:t=k+d+t+E}return s(t)}return b=void 0===b?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),E.toString=function(){return t+""},E}return{format:f,formatPrefix:function(t,e){var n=f(((t=ae(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(re(e)/3))),i=Math.pow(10,-r),o=me[8+r/3];return function(t){return n(i*t)+o}}}}function ge(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function ve(t){return 1===t.length&&(t=function(t){return function(e,n){return ge(t(e),n)}}(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}fe=be({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),de=fe.format,he=fe.formatPrefix;var ye=ve(ge).right,xe=Math.sqrt(50),we=Math.sqrt(10),_e=Math.sqrt(2);function Ee(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=xe?10:o>=we?5:o>=_e?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=xe?10:o>=we?5:o>=_e?2:1)}function Me(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=xe?i*=10:o>=we?i*=5:o>=_e&&(i*=2),e<t?-i:i}function Te(){}function ke(t,e){var n=new Te;if(t instanceof Te)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)for(;++i<o;)n.set(i,t[i]);else for(;++i<o;)n.set(e(r=t[i],i,t),r)}else if(t)for(var a in t)n.set(a,t[a]);return n}function Se(){}Te.prototype=ke.prototype={constructor:Te,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var Ae=ke.prototype;Se.prototype={constructor:Se,has:Ae.has,add:function(t){return this["$"+(t+="")]=t,this},remove:Ae.remove,clear:Ae.clear,values:Ae.keys,size:Ae.size,empty:Ae.empty,each:Ae.each};var Ce=Array.prototype,Ne=Ce.map,Le=Ce.slice;function Pe(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Oe(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function De(){}var He=1/.7,Ue="\\s*([+-]?\\d+)\\s*",je="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ze="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Re=/^#([0-9a-f]{3,8})$/,Be=new RegExp("^rgb\\("+[Ue,Ue,Ue]+"\\)$"),Ie=new RegExp("^rgb\\("+[ze,ze,ze]+"\\)$"),Fe=new RegExp("^rgba\\("+[Ue,Ue,Ue,je]+"\\)$"),We=new RegExp("^rgba\\("+[ze,ze,ze,je]+"\\)$"),qe=new RegExp("^hsl\\("+[je,ze,ze]+"\\)$"),Ye=new RegExp("^hsla\\("+[je,ze,ze,je]+"\\)$"),Ge={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function $e(){return this.rgb().formatHex()}function Ve(){return this.rgb().formatRgb()}function Xe(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Re.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Ze(e):3===n?new tn(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Ke(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Ke(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Be.exec(t))?new tn(e[1],e[2],e[3],1):(e=Ie.exec(t))?new tn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Fe.exec(t))?Ke(e[1],e[2],e[3],e[4]):(e=We.exec(t))?Ke(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=qe.exec(t))?on(e[1],e[2]/100,e[3]/100,1):(e=Ye.exec(t))?on(e[1],e[2]/100,e[3]/100,e[4]):Ge.hasOwnProperty(t)?Ze(Ge[t]):"transparent"===t?new tn(NaN,NaN,NaN,0):null}function Ze(t){return new tn(t>>16&255,t>>8&255,255&t,1)}function Ke(t,e,n,r){return r<=0&&(t=e=n=NaN),new tn(t,e,n,r)}function Je(t){return t instanceof De||(t=Xe(t)),t?new tn((t=t.rgb()).r,t.g,t.b,t.opacity):new tn}function Qe(t,e,n,r){return 1===arguments.length?Je(t):new tn(t,e,n,null==r?1:r)}function tn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function en(){return"#"+rn(this.r)+rn(this.g)+rn(this.b)}function nn(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function rn(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function on(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new sn(t,e,n,r)}function an(t){if(t instanceof sn)return new sn(t.h,t.s,t.l,t.opacity);if(t instanceof De||(t=Xe(t)),!t)return new sn;if(t instanceof sn)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new sn(a,s,l,t.opacity)}function sn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ln(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Pe(De,Xe,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:$e,formatHex:$e,formatHsl:function(){return an(this).formatHsl()},formatRgb:Ve,toString:Ve}),Pe(tn,Qe,Oe(De,{brighter:function(t){return t=null==t?He:Math.pow(He,t),new tn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new tn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:en,formatHex:en,formatRgb:nn,toString:nn})),Pe(sn,(function(t,e,n,r){return 1===arguments.length?an(t):new sn(t,e,n,null==r?1:r)}),Oe(De,{brighter:function(t){return t=null==t?He:Math.pow(He,t),new sn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new sn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new tn(ln(t>=240?t-240:t+120,i,r),ln(t,i,r),ln(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var cn=Math.PI/180,un=180/Math.PI,fn=-.14861,dn=1.78277,hn=-.29227,pn=-.90649,mn=1.97294,bn=mn*pn,gn=mn*dn,vn=dn*hn-pn*fn;function yn(t){if(t instanceof wn)return new wn(t.h,t.s,t.l,t.opacity);t instanceof tn||(t=Je(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(vn*r+bn*e-gn*n)/(vn+bn-gn),o=r-i,a=(mn*(n-i)-hn*o)/pn,s=Math.sqrt(a*a+o*o)/(mn*i*(1-i)),l=s?Math.atan2(a,o)*un-120:NaN;return new wn(l<0?l+360:l,s,i,t.opacity)}function xn(t,e,n,r){return 1===arguments.length?yn(t):new wn(t,e,n,null==r?1:r)}function wn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function _n(t){return function(){return t}}function En(t,e){return function(n){return t+n*e}}function Mn(t){return 1==(t=+t)?Tn:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):_n(isNaN(e)?n:e)}}function Tn(t,e){var n=e-t;return n?En(t,n):_n(isNaN(t)?e:t)}Pe(wn,xn,Oe(De,{brighter:function(t){return t=null==t?He:Math.pow(He,t),new wn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new wn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*cn,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new tn(255*(e+n*(fn*r+dn*i)),255*(e+n*(hn*r+pn*i)),255*(e+n*(mn*r)),this.opacity)}}));var kn=function t(e){var n=Mn(e);function r(t,e){var r=n((t=Qe(t)).r,(e=Qe(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Tn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Sn(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(r),a=new Array(r);for(n=0;n<i;++n)o[n]=Dn(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function An(t,e){var n=new Date;return e-=t=+t,function(r){return n.setTime(t+e*r),n}}function Cn(t,e){return e-=t=+t,function(n){return t+e*n}}function Nn(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Dn(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var Ln=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Pn=new RegExp(Ln.source,"g");function On(t,e){var n,r,i,o=Ln.lastIndex=Pn.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=Ln.exec(t))&&(r=Pn.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Cn(n,r)})),o=Pn.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function Dn(t,e){var n,r=typeof e;return null==e||"boolean"===r?_n(e):("number"===r?Cn:"string"===r?(n=Xe(e))?(e=n,kn):On:e instanceof Xe?kn:e instanceof Date?An:Array.isArray(e)?Sn:isNaN(e)?Nn:Cn)(t,e)}function Hn(t,e){return e-=t=+t,function(n){return Math.round(t+e*n)}}function Un(t){return function e(n){function r(e,r){var i=t((e=xn(e)).h,(r=xn(r)).h),o=Tn(e.s,r.s),a=Tn(e.l,r.l),s=Tn(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=a(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}Un((function(t,e){var n=e-t;return n?En(t,n>180||n<-180?n-360*Math.round(n/360):n):_n(isNaN(t)?e:t)}));var jn=Un(Tn);function zn(t){return+t}var Rn=[0,1];function Bn(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=e,function(){return n});var n}function In(t,e,n,r){var i=t[0],o=t[1],a=e[0],s=e[1];return o<i?(i=n(o,i),a=r(s,a)):(i=n(i,o),a=r(a,s)),function(t){return a(i(t))}}function Fn(t,e,n,r){var i=Math.min(t.length,e.length)-1,o=new Array(i),a=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)o[s]=n(t[s],t[s+1]),a[s]=r(e[s],e[s+1]);return function(e){var n=ye(t,e,1,i)-1;return a[n](o[n](e))}}function Wn(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function qn(t,e){var n,r,i,o=Rn,a=Rn,s=Dn,l=!1;function c(){return n=Math.min(o.length,a.length)>2?Fn:In,r=i=null,u}function u(e){return(r||(r=n(o,a,l?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}(t):t,s)))(+e)}return u.invert=function(t){return(i||(i=n(a,o,Bn,l?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}(e):e)))(+t)},u.domain=function(t){return arguments.length?(o=Ne.call(t,zn),c()):o.slice()},u.range=function(t){return arguments.length?(a=Le.call(t),c()):a.slice()},u.rangeRound=function(t){return a=Le.call(t),s=Hn,c()},u.clamp=function(t){return arguments.length?(l=!!t,c()):l},u.interpolate=function(t){return arguments.length?(s=t,c()):s},c()}function Yn(t,e,n){var r,i=t[0],o=t[t.length-1],a=Me(i,o,null==e?10:e);switch((n=ae(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(i),Math.abs(o));return null!=n.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(re(e)/3)))-re(Math.abs(t)))}(a,s))||(n.precision=r),he(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,re(e)-re(t))+1}(a,Math.max(Math.abs(i),Math.abs(o))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(t){return Math.max(0,-re(Math.abs(t)))}(a))||(n.precision=r-2*("%"===n.type))}return de(n)}function Gn(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=Ee(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(t+s)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(t-s)/a;return r&&o.reverse(),o}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return Yn(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(r=s,s=l,l=r,r=o,o=a,a=r),(r=Ee(s,l,n))>0?r=Ee(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Ee(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,e(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,e(i)),t},t}function $n(){var t=qn(Bn,Cn);return t.copy=function(){return Wn(t,$n())},Gn(t)}var Vn=new Date,Xn=new Date;function Zn(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<r);return s},i.filter=function(n){return Zn((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Vn.setTime(+e),Xn.setTime(+r),t(Vn),t(Xn),Math.floor(n(Vn,Xn))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Kn=Zn((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));Kn.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Zn((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Kn:null};var Jn=Zn((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()})),Qn=Zn((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1}));function tr(t){return Zn((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var er=tr(0),nr=tr(1);tr(2),tr(3);var rr=tr(4);tr(5),tr(6);var ir=Zn((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));ir.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zn((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var or=Zn((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()})),ar=Zn((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()})),sr=Zn((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1}));function lr(t){return Zn((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var cr=lr(0),ur=lr(1);lr(2),lr(3);var fr=lr(4);lr(5),lr(6);var dr=Zn((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),hr=Zn((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));function pr(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function mr(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function br(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}hr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zn((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var gr,vr,yr={"-":"",_:" ",0:"0"},xr=/^\s*\d+/,wr=/^%/,_r=/[\\^$*+?|[\]().{}]/g;function Er(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Mr(t){return t.replace(_r,"\\$&")}function Tr(t){return new RegExp("^(?:"+t.map(Mr).join("|")+")","i")}function kr(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function Sr(t,e,n){var r=xr.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=xr.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=xr.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=xr.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=xr.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Pr(t,e,n){var r=xr.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=xr.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Dr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Hr(t,e,n){var r=xr.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Ur(t,e,n){var r=xr.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function jr(t,e,n){var r=xr.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function zr(t,e,n){var r=xr.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Rr(t,e,n){var r=xr.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Br(t,e,n){var r=xr.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=xr.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=xr.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=xr.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function qr(t,e,n){var r=wr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Yr(t,e,n){var r=xr.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Gr(t,e,n){var r=xr.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function $r(t,e){return Er(t.getDate(),e,2)}function Vr(t,e){return Er(t.getHours(),e,2)}function Xr(t,e){return Er(t.getHours()%12||12,e,2)}function Zr(t,e){return Er(1+Qn.count(ir(t),t),e,3)}function Kr(t,e){return Er(t.getMilliseconds(),e,3)}function Jr(t,e){return Kr(t,e)+"000"}function Qr(t,e){return Er(t.getMonth()+1,e,2)}function ti(t,e){return Er(t.getMinutes(),e,2)}function ei(t,e){return Er(t.getSeconds(),e,2)}function ni(t){var e=t.getDay();return 0===e?7:e}function ri(t,e){return Er(er.count(ir(t)-1,t),e,2)}function ii(t){var e=t.getDay();return e>=4||0===e?rr(t):rr.ceil(t)}function oi(t,e){return t=ii(t),Er(rr.count(ir(t),t)+(4===ir(t).getDay()),e,2)}function ai(t){return t.getDay()}function si(t,e){return Er(nr.count(ir(t)-1,t),e,2)}function li(t,e){return Er(t.getFullYear()%100,e,2)}function ci(t,e){return Er((t=ii(t)).getFullYear()%100,e,2)}function ui(t,e){return Er(t.getFullYear()%1e4,e,4)}function fi(t,e){var n=t.getDay();return Er((t=n>=4||0===n?rr(t):rr.ceil(t)).getFullYear()%1e4,e,4)}function di(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Er(e/60|0,"0",2)+Er(e%60,"0",2)}function hi(t,e){return Er(t.getUTCDate(),e,2)}function pi(t,e){return Er(t.getUTCHours(),e,2)}function mi(t,e){return Er(t.getUTCHours()%12||12,e,2)}function bi(t,e){return Er(1+sr.count(hr(t),t),e,3)}function gi(t,e){return Er(t.getUTCMilliseconds(),e,3)}function vi(t,e){return gi(t,e)+"000"}function yi(t,e){return Er(t.getUTCMonth()+1,e,2)}function xi(t,e){return Er(t.getUTCMinutes(),e,2)}function wi(t,e){return Er(t.getUTCSeconds(),e,2)}function _i(t){var e=t.getUTCDay();return 0===e?7:e}function Ei(t,e){return Er(cr.count(hr(t)-1,t),e,2)}function Mi(t){var e=t.getUTCDay();return e>=4||0===e?fr(t):fr.ceil(t)}function Ti(t,e){return t=Mi(t),Er(fr.count(hr(t),t)+(4===hr(t).getUTCDay()),e,2)}function ki(t){return t.getUTCDay()}function Si(t,e){return Er(ur.count(hr(t)-1,t),e,2)}function Ai(t,e){return Er(t.getUTCFullYear()%100,e,2)}function Ci(t,e){return Er((t=Mi(t)).getUTCFullYear()%100,e,2)}function Ni(t,e){return Er(t.getUTCFullYear()%1e4,e,4)}function Li(t,e){var n=t.getUTCDay();return Er((t=n>=4||0===n?fr(t):fr.ceil(t)).getUTCFullYear()%1e4,e,4)}function Pi(){return"+0000"}function Oi(){return"%"}function Di(t){return+t}function Hi(t){return Math.floor(+t/1e3)}!function(t){(gr=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,c=Tr(i),u=kr(i),f=Tr(o),d=kr(o),h=Tr(a),p=kr(a),m=Tr(s),b=kr(s),g=Tr(l),v=kr(l),y={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:$r,e:$r,f:Jr,g:ci,G:fi,H:Vr,I:Xr,j:Zr,L:Kr,m:Qr,M:ti,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Di,s:Hi,S:ei,u:ni,U:ri,V:oi,w:ai,W:si,x:null,X:null,y:li,Y:ui,Z:di,"%":Oi},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:hi,e:hi,f:vi,g:Ci,G:Li,H:pi,I:mi,j:bi,L:gi,m:yi,M:xi,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Di,s:Hi,S:wi,u:_i,U:Ei,V:Ti,w:ki,W:Si,x:null,X:null,y:Ai,Y:Ni,Z:Pi,"%":Oi},w={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=b[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return M(t,e,n,r)},d:jr,e:jr,f:Wr,g:Or,G:Pr,H:Rr,I:Rr,j:zr,L:Fr,m:Ur,M:Br,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=u[r[0].toLowerCase()],n+r[0].length):-1},q:Hr,Q:Yr,s:Gr,S:Ir,u:Ar,U:Cr,V:Nr,w:Sr,W:Lr,x:function(t,e,r){return M(t,n,e,r)},X:function(t,e,n){return M(t,r,e,n)},y:Or,Y:Pr,Z:Dr,"%":qr};function _(t,e){return function(n){var r,i,o,a=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(i=yr[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function E(t,e){return function(n){var r,i,o=br(1900,void 0,1);if(M(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=mr(br(o.y,0,1))).getUTCDay(),r=i>4||0===i?ur.ceil(r):ur(r),r=sr.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=pr(br(o.y,0,1))).getDay(),r=i>4||0===i?nr.ceil(r):nr(r),r=Qn.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?mr(br(o.y,0,1)).getUTCDay():pr(br(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,mr(o)):pr(o)}}function M(t,e,n,r){for(var i,o,a=0,s=e.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=w[i in yr?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return y.x=_(n,y),y.X=_(r,y),y.c=_(e,y),x.x=_(n,x),x.X=_(r,x),x.c=_(e,x),{format:function(t){var e=_(t+="",y);return e.toString=function(){return t},e},parse:function(t){var e=E(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=_(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=E(t+="",!0);return e.toString=function(){return t},e}}}(t)).format,gr.parse,vr=gr.utcFormat,gr.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ui(t){return new Date(t)}function ji(t){return t instanceof Date?+t:+new Date(+t)}function zi(t,e,n,r,i,o,a,s,l){var c=qn(Bn,Cn),u=c.invert,f=c.domain,d=l(".%L"),h=l(":%S"),p=l("%I:%M"),m=l("%I %p"),b=l("%a %d"),g=l("%b %d"),v=l("%B"),y=l("%Y"),x=[[a,1,1e3],[a,5,5e3],[a,15,15e3],[a,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function w(s){return(a(s)<s?d:o(s)<s?h:i(s)<s?p:r(s)<s?m:e(s)<s?n(s)<s?b:g:t(s)<s?v:y)(s)}function _(e,n,r,i){if(null==e&&(e=10),"number"==typeof e){var o=Math.abs(r-n)/e,a=ve((function(t){return t[2]})).right(x,o);a===x.length?(i=Me(n/31536e6,r/31536e6,e),e=t):a?(i=(a=x[o/x[a-1][2]<x[a][2]/o?a-1:a])[1],e=a[0]):(i=Math.max(Me(n,r,e),1),e=s)}return null==i?e:e.every(i)}return c.invert=function(t){return new Date(u(t))},c.domain=function(t){return arguments.length?f(Ne.call(t,ji)):f().map(Ui)},c.ticks=function(t,e){var n,r=f(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=_(t,i,o,e))?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(t,e){return null==e?w:l(e)},c.nice=function(t,e){var n=f();return(t=_(t,n[0],n[n.length-1],e))?f(function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}(n,t)):c},c.copy=function(){return Wn(c,zi(t,e,n,r,i,o,a,s,l))},c}function Ri(){return zi(hr,dr,cr,sr,ar,or,Jn,Kn,vr).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function Bi(t){return t.match(/.{6}/g).map((function(t){return"#"+t}))}function Ii(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}Bi("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Bi("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Bi("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Bi("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),jn(xn(300,.5,0),xn(-240,.5,1)),jn(xn(-100,.75,.35),xn(80,1.5,.8)),jn(xn(260,.75,.35),xn(80,1.5,.8)),xn(),Ii(Bi("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Ii(Bi("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Ii(Bi("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Ii(Bi("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));const Fi=t=>"number"!=typeof t||isNaN(t)?"N/A":Math.abs(t)>=Math.pow(10,25)?de("-.3~e")(t):de("-.3~s")(t),Wi=t=>{const e=p.feature.displayTimestampsInUserLocalTime?void 0:{zone:p.defaultTimeZone};return h.fromMillis(t,e)},qi=t=>{const e=t[0],n=t[t.length-1],r=6e4*Wi(e).offset,i=e+r,o=n+r;return Ri().domain([new Date(i),new Date(o)]).ticks(6).map((t=>t.valueOf()-r))};a(".boxplot .tooltip-container .columns {\n display: flex;\n flex-direction: row;\n}\n.boxplot .tooltip-container .columns .column {\n padding: 10px;\n}\n.boxplot .tooltip-container .columns .column .header {\n font-weight: 600;\n padding-left: 0px;\n}\n.boxplot .boxplot-annotation text {\n fill: var(--color-text-primary);\n font-size: 12px;\n font-weight: 600;\n}\n.boxplot .boxplot-annotation .annotation-connector {\n display: none;\n}\n.boxplot .boxplot-annotation .note-line {\n display: none;\n}\n.boxplot .boxplot-chart .boxplot-summary g {\n opacity: 0.8;\n}\n.boxplot .boxplot-chart .boxplot-summary g:nth-child(1),\n.boxplot .boxplot-chart .boxplot-summary g:nth-child(2),\n.boxplot .boxplot-chart .boxplot-summary g:nth-child(3) {\n opacity: 0.3;\n}\n.boxplot .boxplot-chart g.pieces {\n shape-rendering: geometricprecision;\n}\n");class Yi extends t.Component{constructor(){super(...arguments),this.state={tooltip:null},this.margin={top:10,bottom:20,left:60,right:40},this.decorateData=(t,e)=>t.map((t=>({group:e,value:t,color:rt.colors[e]}))),this.generateChartData=()=>{const{metricSetPair:t}=this.props,e=this.decorateData(t.values.control,"baseline"),n=this.decorateData(t.values.experiment,"canary");return e.concat(n).filter((t=>"number"==typeof t.value))},this.createChartHoverHandler=()=>e=>{if(e&&"frame-hover"===e.type){const n=e.points,r={baseline:[],canary:[]};n.forEach((t=>{r[t.key].push({label:t.label,value:t.value})}));const i=r.baseline.map((t=>t.label)),o=[t.createElement("div",{className:"header",key:"summary"},"Summary"),...i.map((e=>t.createElement("div",{key:e},e)))],a=[t.createElement("div",{className:"header",key:"baseline"},t.createElement(at,{group:"baseline"}),"Baseline"),r.baseline.map(((e,n)=>t.createElement("div",{key:n},Fi(e.value))))],s=[t.createElement("div",{className:"header",key:"canary"},t.createElement(at,{group:"canary"}),"Canary"),r.canary.map(((e,n)=>t.createElement("div",{key:n},Fi(e.value))))],l=t.createElement("div",{className:"tooltip-container"},t.createElement("div",{className:"columns"},t.createElement("div",{className:"column"},o),t.createElement("div",{className:"column"},a),t.createElement("div",{className:"column"},s)));this.setState({tooltip:{content:l,x:e.x+this.margin.left,y:e.y+this.margin.top}})}else this.setState({tooltip:null})},this.defineAnnotations=()=>["baseline","canary"].map((t=>({type:"summary-custom",group:t,summaryKeys:["q1area","median","q3area"]}))),this.customAnnotationFunction=e=>{const{d:n,orFrameState:{pieceDataXY:r},categories:i}=e;if("summary-custom"===n.type){if(!i[n.group])return null;const e=r.filter((t=>t.key===n.group)),o=i[n.group].width,a={median:"median",q1area:"25th %-ile",q3area:"75th %-ile"},s=(e,n)=>{const r=n.summaryPieceName,i=a[r],s={x:n.x,y:e,dx:o/2,dy:0,note:{label:`${i}: ${Fi(n.value)}`,wrap:100,lineType:"vertical",align:"middle",orientation:"topBottom",padding:10},className:"boxplot-annotation"};return t.createElement(l,{key:r,noteData:s})},c=n.summaryKeys.map((t=>{const n=e.find((e=>e.summaryPieceName===t));return n?new et.Node(n.y,20,n):null})).map((t=>t)),u={minPos:this.margin.top,maxPos:rt.height-this.margin.bottom};return new et.Force(u).nodes(c).compute().nodes().map((t=>s(t.currentPos,t.data)))}return null},this.getChartProps=()=>{const{parentWidth:t}=this.props,e=this.generateChartData();return{size:[t,rt.height],margin:this.margin,projection:"vertical",summaryType:"boxplot",oLabel:!1,oPadding:160,style:t=>({fill:t.color,fillOpacity:.7}),summaryStyle:t=>({fill:t.color,fillOpacity:.4,stroke:"#6a6a6a",strokeWidth:2}),pieceClass:t=>`piece ${t.group}`,type:{type:"swarm",r:3,iterations:50},rExtent:G(e.map((t=>t.value))),customHoverBehavior:this.createChartHoverHandler(),hoverAnnotation:!1,annotations:this.defineAnnotations(),summaryHoverAnnotation:[],data:e,oAccessor:t=>t.group,rAccessor:t=>t.value,svgAnnotationRules:this.customAnnotationFunction,summaryClass:"boxplot-summary",axis:{orient:"left",label:"metric value",tickFormat:t=>Fi(t)}}}}render(){const{metricSetPair:e}=this.props;return t.createElement("div",{className:"boxplot"},t.createElement(nt,{metric:e.name}),t.createElement(ot,null),t.createElement("div",{className:"graph-container"},t.createElement("div",{className:"boxplot-chart"},t.createElement(c,Object.assign({},this.getChartProps()))),t.createElement(ee,Object.assign({},this.state.tooltip))))}}a(".histogram .graph-container {\n position: relative;\n}\n.histogram .graph-container .bar-annotation text {\n font-size: 12px;\n font-weight: 600;\n}\n.histogram .graph-container .bar-annotation .annotation-connector {\n display: none;\n}\n.histogram .graph-container .bar-annotation .note-line {\n display: none;\n}\n.histogram .graph-container g.ordinal-labels {\n stroke: var(--color-text-primary);\n font-size: 12px;\n font-weight: 200;\n}\n");class Gi extends t.Component{constructor(){super(...arguments),this.state={tooltip:null},this.margin={top:20,bottom:20,left:60,right:10},this.decorateData=(t,e)=>t.map((t=>({group:e,value:t}))),this.generateChartData=()=>{const{metricSetPair:t}=this.props,e=this.decorateData(t.values.control,"baseline"),n=this.decorateData(t.values.experiment,"canary"),r=e.concat(n).filter((t=>"number"==typeof t.value)),i=$n().domain(G(r.map((t=>t.value)))).nice().domain(),o=tt().domain(i).value((t=>t.value))(r),a=[];return o.forEach((t=>{const{x0:e,x1:n}=t,r={group:"baseline",x0:e,x1:n,count:0},i={group:"canary",x0:e,x1:n,count:0};t.forEach((t=>"baseline"===t.group?r.count++:i.count++)),a.push(r),a.push(i)})),a},this.createChartHoverHandler=e=>n=>{if(n&&"column-hover"===n.type){const r=Math.max(...e.map((t=>t.x1))),i=n.column.xyData,o=i[1].xy.x+this.margin.left,a=i[0].xy.height/2,s=i[1].xy.height/2,l=rt.height-this.margin.bottom-Math.min(a,s),{x0:c,x1:u}=n.summary[0].data,f=n.summary.map((e=>{const{group:n,count:r}=e.data;return t.createElement("div",{key:n},t.createElement(at,{group:n}),t.createElement("span",null,` ${n} count: `),t.createElement("span",{style:{fontWeight:"bold"}},r))}));let d=`For metric value more than / equal to ${Fi(c)} `;d+=u===r?`and less than / equal to ${Fi(u)}`:`and less than ${Fi(u)}`;const h=t.createElement("div",null,t.createElement("div",null,d),f);this.setState({tooltip:{content:h,x:o,y:l}})}else this.setState({tooltip:null})},this.defineAnnotations=t=>{const e=[];return t.forEach((t=>{t.count>0&&e.push(Object.assign({type:"bar-value-custom"},t))})),e},this.customAnnotationFunction=e=>{const{d:n,i:r,categories:i}=e;if("bar-value-custom"===n.type){const{x:e,y:o,width:a}=i[n.x1].xyData.find((t=>t.piece.data.group===n.group)).xy,s={x:e+a/2,y:o,nx:e+a/2,ny:o-1,note:{label:`${n.count}`,wrap:100,align:"middle",orientation:"topBottom",padding:0,color:rt.colors[n.group],lineType:"horizontal"},className:"bar-annotation"};return t.createElement(l,{key:r,noteData:s})}return null},this.getChartProps=()=>{const{parentWidth:e}=this.props,n=this.generateChartData();return{size:[e,rt.height],margin:this.margin,projection:"vertical",type:"clusterbar",oLabel:e=>t.createElement("text",{textAnchor:"middle"},Fi(parseFloat(e))),oPadding:20,oAccessor:t=>t.x1,style:t=>({fill:rt.colors[t.group],strokeWidth:1,stroke:rt.colors.background,strokeOpacity:1}),customHoverBehavior:this.createChartHoverHandler(n),data:this.generateChartData(),axis:[{orient:"left",label:"measurement count",tickFormat:t=>0===t?null:Math.abs(t)}],rAccessor:t=>t.count,annotations:this.defineAnnotations(n),svgAnnotationRules:this.customAnnotationFunction,hoverAnnotation:[]}}}render(){const{metricSetPair:e}=this.props;return t.createElement("div",{className:"histogram"},t.createElement(nt,{metric:e.name}),t.createElement(ot,null),t.createElement("div",{className:"graph-container"},t.createElement("div",{className:"canary-chart"},t.createElement(c,Object.assign({},this.getChartProps()))),t.createElement(ee,Object.assign({},this.state.tooltip))))}}a(".no-data-sign {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n");var $i=()=>t.createElement("div",{style:{height:rt.height},className:"no-data-sign"},"No Valid Data is Available for This Metric");function Vi(t,e){this._context=t,this._t=e}function Xi(t){return new Vi(t,1)}Vi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var Zi=({millis:e})=>{const n=(t=>{const e=Wi(t);return 0===e.hour&&0===e.minute?[e.toFormat("HH:mm"),e.toFormat("MMM DD")]:[e.toFormat("HH:mm")]})(e).map(((e,n)=>t.createElement("text",{textAnchor:"middle",className:"axis-label",key:n},e)));return t.createElement("g",{className:"axis-label"},n)};a(".secondary-ts-x-axis {\n position: absolute;\n}\n.secondary-ts-x-axis g.axis-title.x.axis.bottom text {\n transform: translateY(-8px);\n}\n");class Ki extends t.Component{render(){const{margin:e,width:n,millisSet:r,axisLabel:i,bottomOffset:o}=this.props,{axisTickLineHeight:a,axisTickLabelHeight:s,axisLabelHeight:l}=rt.timeSeries,c=[r[0],r[r.length-1]].map((t=>new Date(t))),f=s+a+(i?l:0),d=n-e.left-e.right,h=[0,d],p={bottom:o},m={transform:`translateX(${e.left}px)`};return t.createElement("svg",{className:"axis secondary-ts-x-axis",width:n,height:f,style:p},t.createElement("g",{className:"wrapper",style:m},t.createElement(u,{className:"x axis bottom canary-dual-axis",size:[d,a],scale:Ri().domain(c).range(h),orient:"bottom",label:"Canary",tickValues:qi(r),tickFormat:e=>t.createElement(Zi,{millis:e})})))}}a(".difference-area {\n margin-top: 20px;\n}\n.difference-area .visualization-layer g.axis.x.bottom line.axis-baseline {\n stroke: none;\n}\n.difference-area .secondary-ts-x-axis g.axis.x.bottom line.axis-baseline {\n stroke: none;\n}\n");class Ji extends t.Component{constructor(){super(...arguments),this.margin={left:60,right:20,top:8},this.chartHeight=40,this.headerHeight=17,this.getChartData=()=>{const{metricSetPair:t}=this.props,{values:{experiment:e,control:n},scopes:r}=t,i=r.control.stepMillis,o=Math.max(e.length,n.length),a=Array(o).fill(0).map(((t,o)=>{const a=e[o],s=n[o];return{timestamp:r.control.startTimeMillis+o*i,canary:a,baseline:s}})),s=a.map((t=>({timestampMillis:t.timestamp,value:0}))),l=a.map((t=>({timestampMillis:t.timestamp,value:"number"==typeof t.canary&&"number"==typeof t.baseline?t.canary-t.baseline:0})));return{chartData:[{label:"difference",color:rt.colors.canary,coordinates:l},{label:"baselineReference",color:rt.colors.baseline,coordinates:s}]}},this.getSecondaryAxis=(e,n)=>{const{parentWidth:r}=this.props,i=n.map((t=>t+e));return t.createElement(Ki,{margin:{left:this.margin.left,right:this.margin.right,top:0,bottom:0},width:r,millisSet:i,axisLabel:"canary",bottomOffset:0})},this.getXAxisTotalHeight=t=>{const{axisTickLineHeight:e,axisTickLabelHeight:n,axisLabelHeight:r}=rt.timeSeries;return t?2*(r+n)+e:n}}render(){const{metricSetPair:e,parentWidth:n,millisSetBaseline:r}=this.props,{scopes:i}=e,{chartData:o}=this.getChartData(),a=i.experiment.startTimeMillis-i.control.startTimeMillis,s=0!==a,l=this.getXAxisTotalHeight(s),c={lines:o,size:[n,this.chartHeight+l],margin:Object.assign(Object.assign({},this.margin),{bottom:l}),lineType:{type:"area",interpolator:Xi},lineStyle:t=>"difference"===t.label?{fill:t.color,fillOpacity:.6}:{stroke:t.color,strokeOpacity:1,strokeWidth:2,strokeDasharray:5},xAccessor:t=>new Date(t.timestampMillis),yAccessor:"value",xScaleType:Ri(),axes:[{orient:"left",tickFormat:()=>"Δ = 0",tickValues:[0]},{orient:"bottom",tickValues:qi(r),tickFormat:e=>t.createElement(Zi,{millis:e}),label:s?"Baseline":void 0,className:s?"baseline-dual-axis":""}],xExtent:[r[0],r[r.length-1]]};return t.createElement("div",{className:"difference-area"},t.createElement("div",{className:"chart-title",style:{height:this.headerHeight}},"Canary Value Differences from Baseline"),t.createElement(f,Object.assign({},c)),s?this.getSecondaryAxis(a,r):null)}}a(".time-series .xyframe-matte {\n fill: var(--color-alabaster);\n}\n.time-series .zoom-icon {\n bottom: 10px;\n left: 30px;\n position: absolute;\n color: var(--color-dove-gray);\n}\n.time-series .tooltip-dual-axis-row {\n margin-bottom: 10px;\n}\n.time-series .tooltip-ts {\n font-weight: 600;\n}\n.time-series .axis-title.x.axis.bottom text {\n transform: translateY(-8px);\n}\n.time-series .canary-dual-axis .axis-label,\n.time-series .canary-dual-axis .axis-title text {\n fill: #e26a6a;\n}\n.time-series .baseline-dual-axis .axis-label,\n.time-series .baseline-dual-axis .axis-title text {\n fill: #52b3d9;\n}\n");class Qi extends t.Component{constructor(){super(...arguments),this.state={tooltip:null,userBrushExtent:null,showGroup:{baseline:!0,canary:!0},graphs:{line:null,differenceArea:null}},this.mainMinimapHeight=320,this.marginMain={top:10,left:60,right:20},this.marginMinimap={top:0,bottom:0,left:60,right:20},this.getChartData=(t,e)=>{const{maxDataCount:n}=t,{showGroup:r}=this.state,{dataGroupMap:i,colors:o}=rt,{scopes:a,values:s}=e,{userBrushExtent:l}=this.state,c=r.canary&&!r.baseline,u=a.control.stepMillis,f=["baseline","canary"].map((t=>{const e=Array(n).fill(0).map(((e,n)=>{const r=i[t];return{timestampMillisActual:a[r].startTimeMillis+n*u,timestampMillisNormalizedMain:c?a[i.canary].startTimeMillis+n*u:a[i.baseline].startTimeMillis+n*u,timestampMillisNormalizedMinimap:a[i.baseline].startTimeMillis+n*u,value:s[r][n]}}));return{label:t,color:o[t],coordinates:e.filter((t=>"number"==typeof t.value)),coordinatesUnfiltered:e}})),d=f[0].coordinatesUnfiltered.map((t=>t.timestampMillisNormalizedMinimap)),h=(l?f[0].coordinatesUnfiltered.filter((t=>t.timestampMillisNormalizedMinimap>=l[0].valueOf()&&t.timestampMillisNormalizedMinimap<=l[1].valueOf())):f[0].coordinatesUnfiltered).map((t=>t.timestampMillisNormalizedMain));return{dataSets:f,millisSetNormalizedMain:h,millisSetNormalizedMinimap:d,xExtentNormalizedMain:[h[0],h[h.length-1]],xExtentNormalizedMinimap:[d[0],d[d.length-1]]}},this.createCommonChartProps=()=>({lineType:{type:"line",interpolator:Xi},lineStyle:t=>({stroke:t.color,strokeWidth:2,strokeOpacity:.8}),yAccessor:"value",xScaleType:Ri(),baseMarkProps:{transitionDuration:{default:200,fill:200}}}),this.createLineChartProps=(e,n,r)=>{const{axisTickLineHeight:i,axisTickLabelHeight:o,axisLabelHeight:a,minimapHeight:s}=rt.timeSeries,{parentWidth:l}=this.props,{showGroup:c}=this.state,{shouldUseSecondaryXAxis:u,shouldDisplayMinimap:f}=n,{dataSets:d,xExtentNormalizedMain:h,xExtentNormalizedMinimap:p,millisSetNormalizedMain:m}=e,b=u?2*(o+a)+i:o,g=Object.assign(Object.assign({},r),{lines:d.filter((t=>c[t.label])),hoverAnnotation:[{type:"x",disable:["connector","note"]},{type:"vertical-points",threshold:.1,r:()=>5}],customHoverBehavior:this.createChartHoverHandler(d,n),xExtent:h,axes:[{orient:"left",label:"metric value",tickFormat:t=>Fi(t)},{orient:"bottom",label:u?"Baseline":void 0,tickValues:qi(m),tickFormat:e=>t.createElement(Zi,{millis:e}),className:u?"baseline-dual-axis":""}],margin:Object.assign(Object.assign({},this.marginMain),{bottom:b}),matte:!0,size:[l,f?this.mainMinimapHeight-s:this.mainMinimapHeight],xAccessor:t=>new Date(t.timestampMillisNormalizedMain)});return f?Object.assign(Object.assign({},g),{minimap:Object.assign(Object.assign({},r),{lines:d,yBrushable:!1,brushEnd:this.onBrushEnd,size:[l,s],axes:[{orient:"left",tickFormat:()=>null},{orient:"bottom"}],margin:this.marginMinimap,xAccessor:t=>new Date(t.timestampMillisNormalizedMinimap),xExtent:p})}):g},this.createGraphs=()=>{const{metricSetPair:e,parentWidth:n}=this.props,{showGroup:r}=this.state,{minimapDataPointsThreshold:i,minimapHeight:o}=rt.timeSeries,a=e.scopes.control.startTimeMillis,s=e.scopes.experiment.startTimeMillis,l=a===s,c={startTimeMillisOffset:s-a,maxDataCount:Math.max(e.values.control.length,e.values.experiment.length),shouldDisplayMinimap:e.values.control.length>i,shouldUseSecondaryXAxis:!l&&r.canary&&r.baseline},u=this.getChartData(c,e),h=this.createCommonChartProps(),p=this.createLineChartProps(u,c,h),m=t.createElement(t.Fragment,null,t.createElement("div",{className:"time-series-chart"},c.shouldDisplayMinimap?t.createElement(d,Object.assign({},p)):t.createElement(f,Object.assign({},p))),c.shouldUseSecondaryXAxis?t.createElement(Ki,{margin:{left:this.marginMain.left,right:this.marginMain.right,top:0,bottom:0},width:n,millisSet:u.millisSetNormalizedMain.map((t=>t+c.startTimeMillisOffset)),axisLabel:"canary",bottomOffset:c.shouldDisplayMinimap?o:0}):null,c.shouldDisplayMinimap?t.createElement("div",{className:"zoom-icon"},t.createElement("i",{className:"fas fa-search-plus"})):null),b=r.baseline&&r.canary?t.createElement(Ji,Object.assign({},this.props,{millisSetBaseline:u.millisSetNormalizedMinimap})):null;this.setState({graphs:{line:m,differenceArea:b}})},this.onLegendClickHandler=t=>{const e=this.state.showGroup;this.setState({showGroup:Object.assign(Object.assign({},e),{[t]:!e[t]})})},this.createChartHoverHandler=(e,n)=>{const{shouldUseSecondaryXAxis:r}=n;return n=>{if(n&&n.timestampMillisNormalizedMain){const i=e.map((t=>{const e=t.coordinatesUnfiltered.find((t=>t.timestampMillisNormalizedMain===n.timestampMillisNormalizedMain));return{color:t.color,label:t.label,ts:e.timestampMillisActual,value:e.value}}));let o=i.concat().sort(((t,e)=>e.value-t.value)).map((e=>{const n=r?t.createElement("div",{className:"tooltip-ts"},m(e.ts)):null;return t.createElement("div",{key:e.label,className:s({"tooltip-dual-axis-row":r})},n,t.createElement("div",{id:e.label},t.createElement(at,{group:e.label}),t.createElement("span",null,`${e.label}: `),t.createElement("span",null,Fi(e.value))))}));if(2===i.length){const e=i[1].value-i[0].value;o=o.concat([t.createElement("div",{id:"diff",key:"diff",className:"tooltip-row"},t.createElement("span",null,"Canary - Baseline: "),t.createElement("span",null,Fi(e)))])}const a=t.createElement("div",null,r?null:t.createElement("div",{key:"ts",className:"tooltip-ts"},m(i[0].ts)),o);this.setState({tooltip:{content:a,x:n.voronoiX+this.marginMain.left,y:n.voronoiY+this.marginMain.top}})}else this.setState({tooltip:null})}},this.onBrushEnd=t=>{this.setState({userBrushExtent:t})}}componentDidMount(){this.createGraphs()}componentDidUpdate(t,e){const{metricSetPair:n,parentWidth:r}=this.props,{userBrushExtent:i,showGroup:o}=this.state;n===t.metricSetPair&&r===t.parentWidth&&i===e.userBrushExtent&&o===e.showGroup||this.createGraphs()}render(){const{metricSetPair:e}=this.props,{showGroup:n,tooltip:r}=this.state,{line:i,differenceArea:o}=this.state.graphs;return t.createElement("div",{className:"time-series"},t.createElement(nt,{metric:e.name}),t.createElement(ot,{showGroup:n,isClickable:!0,onClickHandler:this.onLegendClickHandler}),t.createElement("div",{className:"graph-container"},i,t.createElement(ee,Object.assign({},r))),o)}}a(".semiotic-graph {\n margin-bottom: 8px;\n}\n.semiotic-graph .visualization-layer {\n shape-rendering: crispedges;\n}\n.semiotic-graph .visualization-layer .background-graphics .axis-tick-lines {\n stroke: var(--color-dovegray);\n opacity: 0.1;\n}\n.semiotic-graph .visualization-layer .background-graphics .axis-title text {\n letter-spacing: 1.5px;\n}\n.semiotic-graph .axis {\n font-size: 12px;\n font-weight: 400;\n fill: var(--color-text-primary);\n}\n.semiotic-graph .axis .axis-title.left.y text {\n letter-spacing: 1.5px;\n}\n.semiotic-graph .axis .x.axis.bottom text.axis-label {\n transform: translateY(-10px);\n}\n.semiotic-graph .axis .x.axis.bottom text.axis-label:nth-child(2) {\n transform: translateY(5px);\n}\n.semiotic-graph .chart-header {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.semiotic-graph .chart-header .prefix {\n font-weight: 600;\n}\n.semiotic-graph .chart-title {\n display: flex;\n justify-content: center;\n flex-direction: row;\n font-size: 12px;\n}\n.semiotic-graph .graph-container {\n position: relative;\n}\n");class to extends t.Component{constructor(){super(...arguments),this.fetchChart=e=>{const{type:n,metricSetPair:{values:{control:r,experiment:i}}}=this.props,o=Object.assign(Object.assign({},this.props),{parentWidth:e}),a=t=>t.filter((t=>"number"==typeof t));if(0===a(r).length&&0===a(i).length)return t.createElement($i,null);switch(n){case b.TimeSeries:return t.createElement(Qi,Object.assign({},o));case b.Histogram:return t.createElement(Gi,Object.assign({},o));case b.BoxPlot:return t.createElement(Yi,Object.assign({},o));default:return null}}}render(){return t.createElement("div",{className:"semiotic-graph"},t.createElement(I,null,(({width:t})=>this.fetchChart(t))))}}export default to;
2
- //# sourceMappingURL=semioticGraph-2e43ef84.js.map