!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=10)}([function(t,e,n){t.exports=n(11)()},function(t,e){t.exports=React},function(t,e,n){var r;
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var a=typeof r;if("string"===a||"number"===a)t.push(r);else if(Array.isArray(r)&&r.length){var o=i.apply(null,r);o&&t.push(o)}else if("object"===a)for(var c in r)n.call(r,c)&&r[c]&&t.push(c)}}return t.join(" ")}void 0!==t&&t.exports?(i.default=i,t.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r)}()},function(t,e,n){"use strict";(function(t){n.d(e,"m",function(){return o}),n.d(e,"e",function(){return c}),n.d(e,"c",function(){return s}),n.d(e,"i",function(){return u}),n.d(e,"l",function(){return l}),n.d(e,"d",function(){return f}),n.d(e,"a",function(){return h}),n.d(e,"k",function(){return p}),n.d(e,"g",function(){return m}),n.d(e,"f",function(){return g}),n.d(e,"h",function(){return y}),n.d(e,"b",function(){return b}),n.d(e,"j",function(){return v});var r=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function c(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(o,c)}s((r=r.apply(t,e||[])).next())})};const i="application/font-woff",a={woff:i,woff2:i,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"},o=function(){let t=0;return()=>(t+=1,`u${`0000${(Math.random()*Math.pow(36,4)<<0).toString(36)}`.slice(-4)}${t}`)}();function c(t){const e=function(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}(t).toLowerCase();return a[e]||""}function s(t){return e=>new Promise(n=>{setTimeout(()=>{n(e)},t)})}function u(t){return-1!==t.search(/^(data:)/)}function l(t,e){return`data:${e};base64,${t}`}function f(t){return t.split(/,/)[1]}function h(t){return t.toBlob?new Promise(e=>t.toBlob(e)):function(t){return new Promise(e=>{const n=window.atob(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r);for(let t=0;t<r;t+=1)i[t]=n.charCodeAt(t);e(new Blob([i],{type:"image/png"}))})}(t)}function p(t){const e=[];for(let n=0,r=t.length;n<r;n+=1)e.push(t[n]);return e}function d(t,e){const n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}function m(t){const e=d(t,"border-left-width"),n=d(t,"border-right-width");return t.scrollWidth+e+n}function g(t){const e=d(t,"border-top-width"),n=d(t,"border-bottom-width");return t.scrollHeight+e+n}function y(){let e,n;try{n=t}catch(t){}const r=n&&n.env?n.env.devicePixelRatio:null;return r&&(e=parseInt(r,10),isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}function b(t){return new Promise((e,n)=>{const r=new Image;r.onload=(()=>e(r)),r.onerror=n,r.crossOrigin="anonymous",r.src=t})}function v(t){return r(this,void 0,void 0,function*(){return Promise.resolve().then(()=>(new XMLSerializer).serializeToString(t)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)})}}).call(this,n(21))},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return jt});var r=n(0),i=n.n(r),a=n(1),o=n.n(a),c=n(6),s=n.n(c);function u(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)}}function l(){return(l=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}).apply(this,arguments)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function d(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}var m="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},g="object"==typeof m&&m&&m.Object===Object&&m,y="object"==typeof self&&self&&self.Object===Object&&self,b=g||y||Function("return this")(),v=b.Symbol,_=Object.prototype,x=_.hasOwnProperty,w=_.toString,k=v?v.toStringTag:void 0;var T=function(t){var e=x.call(t,k),n=t[k];try{t[k]=void 0}catch(t){}var r=w.call(t);return e?t[k]=n:delete t[k],r},O=Object.prototype.toString;var M=function(t){return O.call(t)},E="[object Null]",S="[object Undefined]",N=v?v.toStringTag:void 0;var R=function(t){return null==t?void 0===t?S:E:N&&N in Object(t)?T(t):M(t)};var C=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},P="[object AsyncFunction]",j="[object Function]",A="[object GeneratorFunction]",L="[object Proxy]";var q=function(t){if(!C(t))return!1;var e=R(t);return e==j||e==A||e==P||e==L},F=b["__core-js_shared__"],D=function(){var t=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var z=function(t){return!!D&&D in t},U=Function.prototype.toString;var I=function(t){if(null!=t){try{return U.call(t)}catch(t){}try{return t+""}catch(t){}}return""},W=/^\[object .+?Constructor\]$/,$=Function.prototype,B=Object.prototype,Y=$.toString,V=B.hasOwnProperty,H=RegExp("^"+Y.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var X=function(t){return!(!C(t)||z(t))&&(q(t)?H:W).test(I(t))};var Z=function(t,e){return null==t?void 0:t[e]};var G=function(t,e){var n=Z(t,e);return X(n)?n:void 0},J=G(Object,"create");var Q=function(){this.__data__=J?J(null):{},this.size=0};var K=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},tt="__lodash_hash_undefined__",et=Object.prototype.hasOwnProperty;var nt=function(t){var e=this.__data__;if(J){var n=e[t];return n===tt?void 0:n}return et.call(e,t)?e[t]:void 0},rt=Object.prototype.hasOwnProperty;var it=function(t){var e=this.__data__;return J?void 0!==e[t]:rt.call(e,t)},at="__lodash_hash_undefined__";var ot=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=J&&void 0===e?at:e,this};function ct(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ct.prototype.clear=Q,ct.prototype.delete=K,ct.prototype.get=nt,ct.prototype.has=it,ct.prototype.set=ot;var st=ct;var ut=function(){this.__data__=[],this.size=0};var lt=function(t,e){return t===e||t!=t&&e!=e};var ft=function(t,e){for(var n=t.length;n--;)if(lt(t[n][0],e))return n;return-1},ht=Array.prototype.splice;var pt=function(t){var e=this.__data__,n=ft(e,t);return!(n<0||(n==e.length-1?e.pop():ht.call(e,n,1),--this.size,0))};var dt=function(t){var e=this.__data__,n=ft(e,t);return n<0?void 0:e[n][1]};var mt=function(t){return ft(this.__data__,t)>-1};var gt=function(t,e){var n=this.__data__,r=ft(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function yt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}yt.prototype.clear=ut,yt.prototype.delete=pt,yt.prototype.get=dt,yt.prototype.has=mt,yt.prototype.set=gt;var bt=yt,vt=G(b,"Map");var _t=function(){this.size=0,this.__data__={hash:new st,map:new(vt||bt),string:new st}};var xt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var wt=function(t,e){var n=t.__data__;return xt(e)?n["string"==typeof e?"string":"hash"]:n.map};var kt=function(t){var e=wt(this,t).delete(t);return this.size-=e?1:0,e};var Tt=function(t){return wt(this,t).get(t)};var Ot=function(t){return wt(this,t).has(t)};var Mt=function(t,e){var n=wt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Et(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Et.prototype.clear=_t,Et.prototype.delete=kt,Et.prototype.get=Tt,Et.prototype.has=Ot,Et.prototype.set=Mt;var St=Et,Nt="Expected a function";function Rt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Nt);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Rt.Cache||St),n}Rt.Cache=St;var Ct="__react_svg_text_measurement_id";var Pt=Rt(function(t,e){try{var n=document.getElementById(Ct);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.style.width=0,r.style.height=0,r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",Ct),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,e),n.textContent=t,n.getComputedTextLength()}catch(t){return null}},function(t,e){return"".concat(t,"_").concat(JSON.stringify(e))}),jt=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=d(this,f(e).call(this,t))).state={wordsByLines:[]},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(e,a["Component"]),function(t,e,n){e&&u(t.prototype,e),n&&u(t,n)}(e,[{key:"componentWillMount",value:function(){this.updateWordsByLines(this.props,!0)}},{key:"componentWillReceiveProps",value:function(t){var e=this.props.children!==t.children||this.props.style!==t.style;this.updateWordsByLines(t,e)}},{key:"updateWordsByLines",value:function(t,e){if(t.width||t.scaleToFit){if(e){var n=t.children?t.children.toString().split(/\s+/):[];this.wordsWithComputedWidth=n.map(function(e){return{word:e,width:Pt(e,t.style)}}),this.spaceWidth=Pt(" ",t.style)}var r=this.calculateWordsByLines(this.wordsWithComputedWidth,this.spaceWidth,t.width);this.setState({wordsByLines:r})}else this.updateWordsWithoutCalculate(t)}},{key:"updateWordsWithoutCalculate",value:function(t){var e=t.children?t.children.toString().split(/\s+/):[];this.setState({wordsByLines:[{words:e}]})}},{key:"calculateWordsByLines",value:function(t,e,n){var r=this.props.scaleToFit;return t.reduce(function(t,i){var a=i.word,o=i.width,c=t[t.length-1];if(c&&(null==n||r||c.width+o+e<n))c.words.push(a),c.width+=o+e;else{var s={words:[a],width:o};t.push(s)}return t},[])}},{key:"render",value:function(){var t,e=this.props,n=e.dx,r=e.dy,i=e.textAnchor,a=e.verticalAnchor,c=e.scaleToFit,u=e.angle,f=e.lineHeight,h=e.capHeight,d=e.innerRef,m=p(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","innerRef"]),g=this.state.wordsByLines,y=m.x,b=m.y;switch(a){case"start":t=s()("calc(".concat(h,")"));break;case"middle":t=s()("calc(".concat((g.length-1)/2," * -").concat(f," + (").concat(h," / 2))"));break;default:t=s()("calc(".concat(g.length-1," * -").concat(f,")"))}var v=[];if(c&&g.length){var _=g[0].width,x=this.props.width/_,w=x,k=y-x*y,T=b-w*b;v.push("matrix(".concat(x,", 0, 0, ").concat(w,", ").concat(k,", ").concat(T,")"))}return u&&v.push("rotate(".concat(u,", ").concat(y,", ").concat(b,")")),v.length&&(m.transform=v.join(" ")),o.a.createElement("svg",{ref:d,x:n,y:r,fontSize:m.fontSize,style:{overflow:"visible"}},o.a.createElement("text",l({},m,{textAnchor:i}),g.map(function(e,n){return o.a.createElement("tspan",{x:y,dy:0===n?t:f,key:n},e.words.join(" "))})))}}]),e}();jt.defaultProps={x:0,y:0,dx:0,dy:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"},jt.propTypes={scaleToFit:i.a.bool,angle:i.a.number,textAnchor:i.a.oneOf(["start","middle","end","inherit"]),verticalAnchor:i.a.oneOf(["start","middle","end"]),style:i.a.object,innerRef:i.a.func,x:i.a.oneOfType([i.a.number,i.a.string]),y:i.a.oneOfType([i.a.number,i.a.string]),dx:i.a.oneOfType([i.a.number,i.a.string]),dy:i.a.oneOfType([i.a.number,i.a.string]),lineHeight:i.a.oneOfType([i.a.number,i.a.string]),capHeight:i.a.oneOfType([i.a.number,i.a.string])}}).call(this,n(7))},function(t,e){t.exports=ReactDOM},function(t,e,n){var r,i=n(13),a=n(14),o=n(16),c=100,s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;t.exports=function(t,e){function n(t,a,u){if(r++>c)throw r=0,new Error("Call stack overflow for "+u);if(""===t)throw new Error(a+"(): '"+u+"' must contain a non-whitespace string");var l=function(t){var e=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(t);for(;i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(e.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(t));return e}(t=function(t,e){var r,a="",o=t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(;r=s.exec(o);){r[0].index>0&&(a+=o.substring(0,r[0].index));var c=i("(",")",o.substring([0].index));if(""===c.body)throw new Error("'"+t+"' must contain a non-whitespace string");var u=n(c.body,"",e);a+=c.pre+u,o=c.post}return a+o}(t,u));if(l.length>1||t.indexOf("var(")>-1)return a+"("+t+")";var f=l[0]||"";"%"===f&&(t=t.replace(/\b[0-9\.]+%/g,function(t){return.01*parseFloat(t.slice(0,-1))}));var h,p=t.replace(new RegExp(f,"gi"),"");try{h=o.eval(p)}catch(e){return a+"("+t+")"}return"%"===f&&(h*=100),(a.length||"%"===f)&&(h=Math.round(h*e)/e),h+=f}return r=0,e=Math.pow(10,void 0===e?5:e),t=t.replace(/\n+/g," "),a(t,/((?:\-[a-z]+\-)?calc)\(/,n)}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return function(){function e(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n+=1){var i=r[n];t.call(e,i[1],i[0])}},Object.defineProperties(e.prototype,n),e}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},o=2,c=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,u=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,i=0;function c(){n&&(n=!1,t()),r&&u()}function s(){a(c)}function u(){var t=Date.now();if(n){if(t-i<o)return;r=!0}else n=!0,r=!1,setTimeout(s,e);i=t}return u}(this.refresh.bind(this),20)};u.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},u.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},u.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},u.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},u.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},u.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},u.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e=""),c.some(function(t){return!!~e.indexOf(t)})&&this.refresh()},u.getInstance=function(){return this.instance_||(this.instance_=new u),this.instance_},u.instance_=null;var l=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n+=1){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},f=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},h=b(0,0,0,0);function p(t){return parseFloat(t)||0}function d(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return e.reduce(function(e,n){return e+p(t["border-"+n+"-width"])},0)}function m(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return h;var r=f(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n+=1){var i=r[n],a=t["padding-"+i];e[i]=p(a)}return e}(r),a=i.left+i.right,o=i.top+i.bottom,c=p(r.width),s=p(r.height);if("border-box"===r.boxSizing&&(Math.round(c+a)!==e&&(c-=d(r,"left","right")+a),Math.round(s+o)!==n&&(s-=d(r,"top","bottom")+o)),!function(t){return t===f(t).document.documentElement}(t)){var u=Math.round(c+a)-e,l=Math.round(s+o)-n;1!==Math.abs(u)&&(c-=u),1!==Math.abs(l)&&(s-=l)}return b(i.left,i.top,c,s)}var g="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof f(t).SVGGraphicsElement}:function(t){return t instanceof f(t).SVGElement&&"function"==typeof t.getBBox};function y(t){return r?g(t)?function(t){var e=t.getBBox();return b(0,0,e.width,e.height)}(t):m(t):h}function b(t,e,n,r){return{x:t,y:e,width:n,height:r}}var v=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=t};v.prototype.isActive=function(){var t=y(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},v.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var _=function(t,e){var n=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(a.prototype);return l(o,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),o}(e);l(this,{target:t,contentRect:n})},x=function(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r};x.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new v(t)),this.controller_.addObserver(this),this.controller_.refresh())}},x.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},x.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},x.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},x.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new _(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},x.prototype.clearActive=function(){this.activeObservations_.splice(0)},x.prototype.hasActive=function(){return this.activeObservations_.length>0};var w="undefined"!=typeof WeakMap?new WeakMap:new n,k=function(t){if(!(this instanceof k))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=u.getInstance(),n=new x(t,e,this);w.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){k.prototype[t]=function(){return(e=w.get(this))[t].apply(e,arguments);var e}});var T=void 0!==i.ResizeObserver?i.ResizeObserver:k;e.a=T}).call(this,n(7))},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return J});var r=n(0),i=n.n(r),a=n(8),o=n(1),c=n.n(o);function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(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)}}function l(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(){return(h=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}).apply(this,arguments)}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?y(t):e}i.a.func,i.a.oneOfType([i.a.number,i.a.string]),i.a.oneOfType([i.a.number,i.a.string]),i.a.oneOfType([i.a.number,i.a.string]),i.a.oneOfType([i.a.number,i.a.string]),i.a.string;var v=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},_="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},x="object"==typeof _&&_&&_.Object===Object&&_,w="object"==typeof self&&self&&self.Object===Object&&self,k=x||w||Function("return this")(),T=function(){return k.Date.now()},O=k.Symbol,M=Object.prototype,E=M.hasOwnProperty,S=M.toString,N=O?O.toStringTag:void 0;var R=function(t){var e=E.call(t,N),n=t[N];try{t[N]=void 0}catch(t){}var r=S.call(t);return e?t[N]=n:delete t[N],r},C=Object.prototype.toString;var P=function(t){return C.call(t)},j="[object Null]",A="[object Undefined]",L=O?O.toStringTag:void 0;var q=function(t){return null==t?void 0===t?A:j:L&&L in Object(t)?R(t):P(t)};var F=function(t){return null!=t&&"object"==typeof t},D="[object Symbol]";var z=function(t){return"symbol"==typeof t||F(t)&&q(t)==D},U=NaN,I=/^\s+|\s+$/g,W=/^[-+]0x[0-9a-f]+$/i,$=/^0b[01]+$/i,B=/^0o[0-7]+$/i,Y=parseInt;var V=function(t){if("number"==typeof t)return t;if(z(t))return U;if(v(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=v(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(I,"");var n=$.test(t);return n||B.test(t)?Y(t.slice(2),n?2:8):W.test(t)?U:+t},H="Expected a function",X=Math.max,Z=Math.min;var G=function(t,e,n){var r,i,a,o,c,s,u=0,l=!1,f=!1,h=!0;if("function"!=typeof t)throw new TypeError(H);function p(e){var n=r,a=i;return r=i=void 0,u=e,o=t.apply(a,n)}function d(t){var n=t-s;return void 0===s||n>=e||n<0||f&&t-u>=a}function m(){var t=T();if(d(t))return g(t);c=setTimeout(m,function(t){var n=e-(t-s);return f?Z(n,a-(t-u)):n}(t))}function g(t){return c=void 0,h&&r?p(t):(r=i=void 0,o)}function y(){var t=T(),n=d(t);if(r=arguments,i=this,s=t,n){if(void 0===c)return function(t){return u=t,c=setTimeout(m,e),l?p(t):o}(s);if(f)return c=setTimeout(m,e),p(s)}return void 0===c&&(c=setTimeout(m,e)),o}return e=V(e)||0,v(n)&&(l=!!n.leading,a=(f="maxWait"in n)?X(V(n.maxWait)||0,e):a,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==c&&clearTimeout(c),u=0,r=s=i=c=void 0},y.flush=function(){return void 0===c?o:g(T())},y},J=function(t){function e(t){var n;return s(this,e),(n=b(this,d(e).call(this,t))).state={width:0,height:0,top:0,left:0},n.resize=G(n.resize.bind(y(y(n))),t.debounceTime),n.setTarget=n.setTarget.bind(y(y(n))),n.animationFrameID=null,n}return p(e,c.a.Component),l(e,[{key:"componentDidMount",value:function(){var t=this;this.ro=new a.a(function(e,n){var r=!0,i=!1,a=void 0;try{for(var o,c=function(){var e=o.value.contentRect,n=e.left,r=e.top,i=e.width,a=e.height;t.animationFrameID=window.requestAnimationFrame(function(){t.resize({width:i,height:a,top:r,left:n})})},s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)c()}catch(t){i=!0,a=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}}),this.ro.observe(this.target)}},{key:"componentWillUnmount",value:function(){window.cancelAnimationFrame(this.animationFrameID),this.ro.disconnect()}},{key:"resize",value:function(t){var e=t.width,n=t.height,r=t.top,i=t.left;this.setState(function(){return{width:e,height:n,top:r,left:i}})}},{key:"setTarget",value:function(t){this.target=t}},{key:"render",value:function(){var t=this.props,e=t.className,n=t.children,r=(t.debounceTime,g(t,["className","children","debounceTime"]));return c.a.createElement("div",h({style:{width:"100%",height:"100%"},ref:this.setTarget,className:e},r),n(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){f(t,e,n[e])})}return t}({},this.state,{ref:this.target,resize:this.resize})))}}]),e}();J.defaultProps={debounceTime:300},J.propTypes={className:i.a.string,children:i.a.func.isRequired,debounceTime:i.a.number}}).call(this,n(7))},function(t,e,n){t.exports=n(27)},function(t,e,n){"use strict";var r=n(12);function i(){}t.exports=function(){function t(t,e,n,i,a,o){if(o!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=i,n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e){function n(t,e,n){t instanceof RegExp&&(t=r(t,n)),e instanceof RegExp&&(e=r(e,n));var a=i(t,e,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+t.length,a[1]),post:n.slice(a[1]+e.length)}}function r(t,e){var n=e.match(t);return n?n[0]:null}function i(t,e,n){var r,i,a,o,c,s=n.indexOf(t),u=n.indexOf(e,s+1),l=s;if(s>=0&&u>0){for(r=[],a=n.length;l>=0&&!c;)l==s?(r.push(l),s=n.indexOf(t,l+1)):1==r.length?c=[r.pop(),u]:((i=r.pop())<a&&(a=i,o=u),u=n.indexOf(e,l+1)),l=s<u&&s>=0?s:u;r.length&&(c=[a,o])}return c}t.exports=n,n.range=i},function(t,e,n){var r=n(15);function i(t,e,n){var a=t;return function(t,e){var n=[],i="string"==typeof e?new RegExp("\\b("+e+")\\("):e;do{var a=i.exec(t);if(!a)return n;if(void 0===a[1])throw new Error("Missing the first couple of parenthesis to get the function identifier in "+e);var o=a[1],c=a.index,s=r("(",")",t.substring(c));if(!s||s.start!==a[0].length-1)throw new SyntaxError(o+"(): missing closing ')' in the value '"+t+"'");n.push({matches:s,functionIdentifier:o}),t=s.post}while(i.test(t));return n}(t,e).reduce(function(t,r){return t.replace(r.functionIdentifier+"("+r.matches.body+")",function(t,e,n,r,a){return n(i(t,a,n),e,r)}(r.matches.body,r.functionIdentifier,n,a,e))},t)}t.exports=i},function(t,e){function n(t,e,n){t instanceof RegExp&&(t=r(t,n)),e instanceof RegExp&&(e=r(e,n));var a=i(t,e,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+t.length,a[1]),post:n.slice(a[1]+e.length)}}function r(t,e){var n=e.match(t);return n?n[0]:null}function i(t,e,n){var r,i,a,o,c,s=n.indexOf(t),u=n.indexOf(e,s+1),l=s;if(s>=0&&u>0){for(r=[],a=n.length;l>=0&&!c;)l==s?(r.push(l),s=n.indexOf(t,l+1)):1==r.length?c=[r.pop(),u]:((i=r.pop())<a&&(a=i,o=u),u=n.indexOf(e,l+1)),l=s<u&&s>=0?s:u;r.length&&(c=[a,o])}return c}t.exports=n,n.range=i},function(t,e,n){var r=n(17);r.prototype.formulaEval=function(){"use strict";for(var t,e,n,r=[],i=this.value,a=0;a<i.length;a++)1===i[a].type||3===i[a].type?r.push({value:3===i[a].type?i[a].show:i[a].value,type:1}):13===i[a].type?r.push({value:i[a].show,type:1}):0===i[a].type?r[r.length-1]={value:i[a].show+("-"!=i[a].show?"(":"")+r[r.length-1].value+("-"!=i[a].show?")":""),type:0}:7===i[a].type?r[r.length-1]={value:(1!=r[r.length-1].type?"(":"")+r[r.length-1].value+(1!=r[r.length-1].type?")":"")+i[a].show,type:7}:10===i[a].type?(t=r.pop(),e=r.pop(),"P"===i[a].show||"C"===i[a].show?r.push({value:"<sup>"+e.value+"</sup>"+i[a].show+"<sub>"+t.value+"</sub>",type:10}):r.push({value:(1!=e.type?"(":"")+e.value+(1!=e.type?")":"")+"<sup>"+t.value+"</sup>",type:1})):2===i[a].type||9===i[a].type?(t=r.pop(),e=r.pop(),r.push({value:(1!=e.type?"(":"")+e.value+(1!=e.type?")":"")+i[a].show+(1!=t.type?"(":"")+t.value+(1!=t.type?")":""),type:i[a].type})):12===i[a].type&&(t=r.pop(),e=r.pop(),n=r.pop(),r.push({value:i[a].show+"("+n.value+","+e.value+","+t.value+")",type:12}));return r[0].value},t.exports=r},function(t,e,n){var r=n(18);r.prototype.postfixEval=function(t){"use strict";(t=t||{}).PI=Math.PI,t.E=Math.E;for(var e,n,i,a=[],o=this.value,c=void 0!==t.n,s=0;s<o.length;s++)1===o[s].type?a.push({value:o[s].value,type:1}):3===o[s].type?a.push({value:t[o[s].value],type:1}):0===o[s].type?void 0===a[a.length-1].type?a[a.length-1].value.push(o[s]):a[a.length-1].value=o[s].value(a[a.length-1].value):7===o[s].type?void 0===a[a.length-1].type?a[a.length-1].value.push(o[s]):a[a.length-1].value=o[s].value(a[a.length-1].value):8===o[s].type?(e=a.pop(),n=a.pop(),a.push({type:1,value:o[s].value(n.value,e.value)})):10===o[s].type?(e=a.pop(),void 0===(n=a.pop()).type?(n.value=n.concat(e),n.value.push(o[s]),a.push(n)):void 0===e.type?(e.unshift(n),e.push(o[s]),a.push(e)):a.push({type:1,value:o[s].value(n.value,e.value)})):2===o[s].type||9===o[s].type?(e=a.pop(),void 0===(n=a.pop()).type?(console.log(n),(n=n.concat(e)).push(o[s]),a.push(n)):void 0===e.type?(e.unshift(n),e.push(o[s]),a.push(e)):a.push({type:1,value:o[s].value(n.value,e.value)})):12===o[s].type?(void 0!==(e=a.pop()).type&&(e=[e]),n=a.pop(),i=a.pop(),a.push({type:1,value:o[s].value(i.value,n.value,new r(e))})):13===o[s].type&&(c?a.push({value:t[o[s].value],type:3}):a.push([o[s]]));if(a.length>1)throw new r.exception("Uncaught Syntax error");return a[0].value>1e15?"Infinity":parseFloat(a[0].value.toFixed(15))},r.eval=function(t,e,n){return void 0===e?this.lex(t).toPostfix().postfixEval():void 0===n?void 0!==e.length?this.lex(t,e).toPostfix().postfixEval():this.lex(t).toPostfix().postfixEval(e):this.lex(t,e).toPostfix().postfixEval(n)},t.exports=r},function(t,e,n){var r=n(19);r.prototype.toPostfix=function(){"use strict";for(var t,e,n,i,a,o=[],c=[{value:"(",type:4,pre:0}],s=this.value,u=1;u<s.length;u++)if(1===s[u].type||3===s[u].type||13===s[u].type)1===s[u].type&&(s[u].value=Number(s[u].value)),o.push(s[u]);else if(4===s[u].type)c.push(s[u]);else if(5===s[u].type)for(;4!==(e=c.pop()).type;)o.push(e);else if(11===s[u].type){for(;4!==(e=c.pop()).type;)o.push(e);c.push(e)}else{i=(t=s[u]).pre,n=(a=c[c.length-1]).pre;var l="Math.pow"==a.value&&"Math.pow"==t.value;if(i>n)c.push(t);else{for(;n>=i&&!l||l&&i<n;)e=c.pop(),a=c[c.length-1],o.push(e),n=a.pre,l="Math.pow"==t.value&&"Math.pow"==a.value;c.push(t)}}return new r(o)},t.exports=r},function(t,e,n){var r=n(20);function a(t,e){for(var n=0;n<t.length;n++)t[n]+=e;return t}var o=["sin","cos","tan","pi","(",")","P","C","asin","acos","atan","7","8","9","int","cosh","acosh","ln","^","root","4","5","6","/","!","tanh","atanh","Mod","1","2","3","*","sinh","asinh","e","log","0",".","+","-",",","Sigma","n","Pi","pow"],c=["sin","cos","tan","&pi;","(",")","P","C","asin","acos","atan","7","8","9","Int","cosh","acosh"," ln","^","root","4","5","6","&divide;","!","tanh","atanh"," Mod ","1","2","3","&times;","sinh","asinh","e"," log","0",".","+","-",",","&Sigma;","n","&Pi;","pow"],s=[r.math.sin,r.math.cos,r.math.tan,"PI","(",")",r.math.P,r.math.C,r.math.asin,r.math.acos,r.math.atan,"7","8","9",Math.floor,r.math.cosh,r.math.acosh,Math.log,Math.pow,Math.sqrt,"4","5","6",r.math.div,r.math.fact,r.math.tanh,r.math.atanh,r.math.mod,"1","2","3",r.math.mul,r.math.sinh,r.math.asinh,"E",r.math.log,"0",".",r.math.add,r.math.sub,",",r.math.sigma,"n",r.math.Pi,Math.pow],u={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0},l=[0,0,0,3,4,5,10,10,0,0,0,1,1,1,0,0,0,0,10,0,1,1,1,2,7,0,0,2,1,1,1,2,0,0,3,0,1,6,9,9,11,12,13,12,8],f={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0},h={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0},p={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0},d={},m={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0},g={1:!0},b=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function v(t,e,n,r){for(var i=0;i<r;i++)if(t[n+i]!==e[i])return!1;return!0}r.addToken=function(t){for(i=0;i<t.length;i++){x=t[i].token.length;var e=-1;if(x<b.length)for(y=0;y<b[x].length;y++)if(t[i].token===b[x][y]){e=o.indexOf(b[x][y]);break}-1===e?(o.push(t[i].token),l.push(t[i].type),b.length<=t[i].token.length&&(b[t[i].token.length]=[]),b[t[i].token.length].push(t[i].token),s.push(t[i].value),c.push(t[i].show)):(o[e]=t[i].token,l[e]=t[i].type,s[e]=t[i].value,c[e]=t[i].show)}},r.lex=function(t,e){"use strict";var n,i,y,_,x=[{type:4,value:"(",show:"(",pre:0}],w=[],k=t,T=0,O=f,M=0,E=d,S="";void 0!==e&&r.addToken(e);var N={};for(i=0;i<k.length;i++)if(" "!=k[i]){n="";t:for(y=k.length-i>b.length-2?b.length-1:k.length-i;y>0;y--)for(_=0;_<b[y].length;_++)if(v(k,b[y][_],i,y)){n=b[y][_];break t}if(i+=n.length-1,""===n)throw new r.exception("Can't understand after "+k.slice(i));var R=o.indexOf(n),C=n,P=l[R],j=s[R],A=u[P],L=c[R],q=x[x.length-1];for(F=w.length;F--;)if(0===w[F]&&-1!==[0,2,3,5,9,11,12,13].indexOf(P)){if(!0!==O[P])throw new r.exception(n+" is not allowed after "+S);x.push({value:")",type:5,pre:0,show:")"}),O=h,E=m,a(w,-1).pop()}if(!0!==O[P])throw new r.exception(n+" is not allowed after "+S);if(!0===E[P]&&(P=2,j=r.math.mul,L="&times;",A=3,i-=n.length),N={value:j,type:P,pre:A,show:L},0===P)O=f,E=d,a(w,2).push(2),x.push(N),x.push({value:"(",type:4,pre:0,show:"("});else if(1===P)1===q.type?(q.value+=j,a(w,1)):x.push(N),O=h,E=p;else if(2===P)O=f,E=d,a(w,2),x.push(N);else if(3===P)x.push(N),O=h,E=m;else if(4===P)T+=w.length,w=[],M++,O=f,E=d,x.push(N);else if(5===P){if(!M)throw new r.exception("Closing parenthesis are more than opening one, wait What!!!");for(;T--;)x.push({value:")",type:5,pre:0,show:")"});T=0,M--,O=h,E=m,x.push(N)}else if(6===P){if(q.hasDec)throw new r.exception("Two decimals are not allowed in one number");1!==q.type&&(q={value:0,type:1,pre:0},x.push(q),a(w,-1)),O=g,a(w,1),E=d,q.value+=j,q.hasDec=!0}else 7===P&&(O=h,E=m,a(w,1),x.push(N));8===P?(O=f,E=d,a(w,4).push(4),x.push(N),x.push({value:"(",type:4,pre:0,show:"("})):9===P?(9===q.type?q.value===r.math.add?(q.value=j,q.show=L,a(w,1)):q.value===r.math.sub&&"-"===L&&(q.value=r.math.add,q.show="+",a(w,1)):5!==q.type&&7!==q.type&&1!==q.type&&3!==q.type&&13!==q.type?"-"===C&&(O=f,E=d,a(w,2).push(2),x.push({value:r.math.changeSign,type:0,pre:21,show:"-"}),x.push({value:"(",type:4,pre:0,show:"("})):(x.push(N),a(w,2)),O=f,E=d):10===P?(O=f,E=d,a(w,2),x.push(N)):11===P?(O=f,E=d,x.push(N)):12===P?(O=f,E=d,a(w,6).push(6),x.push(N),x.push({value:"(",type:4,pre:0})):13===P&&(O=h,E=m,x.push(N)),a(w,-1),S=n}for(var F=w.length;F--;)0===w[F]&&(x.push({value:")",show:")",type:5,pre:3}),a(w,-1).pop());if(!0!==O[5])throw new r.exception("complete the expression");for(;M--;)x.push({value:")",show:")",type:5,pre:3});return x.push({type:5,value:")",show:")",pre:0}),new r(x)},t.exports=r},function(t,e){var n=function(t){this.value=t};n.math={isDegree:!0,acos:function(t){return n.math.isDegree?180/Math.PI*Math.acos(t):Math.acos(t)},add:function(t,e){return t+e},asin:function(t){return n.math.isDegree?180/Math.PI*Math.asin(t):Math.asin(t)},atan:function(t){return n.math.isDegree?180/Math.PI*Math.atan(t):Math.atan(t)},acosh:function(t){return Math.log(t+Math.sqrt(t*t-1))},asinh:function(t){return Math.log(t+Math.sqrt(t*t+1))},atanh:function(t){return Math.log((1+t)/(1-t))},C:function(t,e){var r=1,i=t-e,a=e;a<i&&(a=i,i=e);for(var o=a+1;o<=t;o++)r*=o;return r/n.math.fact(i)},changeSign:function(t){return-t},cos:function(t){return n.math.isDegree&&(t=n.math.toRadian(t)),Math.cos(t)},cosh:function(t){return(Math.pow(Math.E,t)+Math.pow(Math.E,-1*t))/2},div:function(t,e){return t/e},fact:function(t){if(t%1!=0)return"NAN";for(var e=1,n=2;n<=t;n++)e*=n;return e},inverse:function(t){return 1/t},log:function(t){return Math.log(t)/Math.log(10)},mod:function(t,e){return t%e},mul:function(t,e){return t*e},P:function(t,e){for(var n=1,r=Math.floor(t)-Math.floor(e)+1;r<=Math.floor(t);r++)n*=r;return n},Pi:function(t,e,n){for(var r=1,i=t;i<=e;i++)r*=Number(n.postfixEval({n:i}));return r},pow10x:function(t){for(var e=1;t--;)e*=10;return e},sigma:function(t,e,n){for(var r=0,i=t;i<=e;i++)r+=Number(n.postfixEval({n:i}));return r},sin:function(t){return n.math.isDegree&&(t=n.math.toRadian(t)),Math.sin(t)},sinh:function(t){return(Math.pow(Math.E,t)-Math.pow(Math.E,-1*t))/2},sub:function(t,e){return t-e},tan:function(t){return n.math.isDegree&&(t=n.math.toRadian(t)),Math.tan(t)},tanh:function(t){return n.sinha(t)/n.cosha(t)},toRadian:function(t){return t*Math.PI/180}},n.exception=function(t){this.message=t},t.exports=n},function(t,e){var n,r,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function c(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var s,u=[],l=!1,f=-1;function h(){l&&s&&(l=!1,s.length?u=s.concat(u):f=-1,u.length&&p())}function p(){if(!l){var t=c(h);l=!0;for(var e=u.length;e;){for(s=u,u=[];++f<e;)s&&s[f].run();f=-1,e=u.length}s=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),1!==u.length||l||c(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){var r=n(23);"string"==typeof r&&(r=[[t.i,r,""]]);var i={transform:void 0};n(25)(r,i);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(24)(!1)).push([t.i,'.dv-select{background-color:#fff;border:1px solid #ddd;border-radius:0;margin:.5rem 0;padding:.5rem 2rem .5rem .5rem;font-size:14px;-webkit-appearance:none;-moz-appearance:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' height=\'20\' width=\'20\' fill=\'%23CCC\'%3E%3Cpath d=\'M4.516 7.548c.436-.446 1.043-.481 1.576 0L10 11.295l3.908-3.747c.533-.481 1.141-.446 1.574 0 .436.445.408 1.197 0 1.615-.406.418-4.695 4.502-4.695 4.502a1.095 1.095 0 0 1-1.576 0S4.924 9.581 4.516 9.163s-.436-1.17 0-1.615z\'/%3E%3C/svg%3E");background-position:top 50% right .5rem;background-origin:padding-box;background-repeat:no-repeat}@-ms-viewport{width:device-width}*,:after,:before{box-sizing:inherit}html{-moz-box-sizing:border-box;-ms-box-sizing:border-box;-ms-overflow-style:scrollbar;box-sizing:border-box}body,html{background:#fff;color:#333;font-family:Circular;margin:0;overflow-x:hidden;padding:0;width:100vw}body.scroll-disabled,body.scroll-md-disabled{overflow:hidden;position:fixed}@media (min-width:992px){body.scroll-md-disabled{overflow:auto;position:static}}body.bg-beige{background-color:#f7f4f2}ol.inline,ol.no-list-style,ul.inline,ul.no-list-style{list-style-type:none;margin:0;padding:0}ol.inline li,ol.no-list-style li,ul.inline li,ul.no-list-style li{padding:0}ol.inline li,ul.inline li{display:inline-block;padding-right:25px}main{min-height:100vh}figure,span.block{display:block}figure{margin:0}iframe{border:0}hr{border:none;border-bottom:1px solid #333}section.beige{background-color:#f7f4f2}@font-face{font-family:Circular;font-style:normal;font-weight:700;src:url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/CircularStd-Black.otf);src:url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/CircularStd-Black.eot#iefix) format("embedded-opentype"),url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/CircularStd-Black.woff) format("woff")}@font-face{font-family:Circular;font-style:normal;font-weight:400;src:url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/CircularStd-Book.ttf);src:url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/CircularStd-Book.eot#iefix) format("embedded-opentype"),url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/CircularStd-Book.woff) format("woff")}@font-face{font-family:Platform;font-weight:700;src:url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/Platform-Medium.otf);src:url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/Platform-Medium.eot#iefix) format("embedded-opentype"),url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/Platform-Medium.woff) format("woff")}@font-face{font-family:Lyon;font-style:none;font-weight:400;src:url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/LyonText-Regular.otf);src:url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/LyonText-Regular.eot#iefix) format("embedded-opentype"),url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/LyonText-Regular.woff) format("woff")}@font-face{font-family:Lyon;font-style:none;font-weight:700;src:url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/LyonText-Bold.otf);src:url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/LyonText-Bold.eot#iefix) format("embedded-opentype"),url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/LyonText-Bold.woff) format("woff")}@font-face{font-family:Lyon;font-style:italic;font-weight:400;src:url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/LyonText-RegularItalic.otf);src:url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/LyonText-RegularItalic.eot#iefix) format("embedded-opentype"),url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/LyonText-RegularItalic.woff) format("woff")}@font-face{font-family:Lyon;font-style:italic;font-weight:700;src:url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/LyonText-BoldItalic.otf);src:url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/LyonText-BoldItalic.eot#iefix) format("embedded-opentype"),url(https://d3fvh0lm0eshry.cloudfront.net/static/fonts/LyonText-BoldItalic.woff) format("woff")}*{-webkit-font-smoothing:antialiased!important}body,html{font-size:16px}a,blockquote,figcaption,h1,h2,h3,h4,h5,h6,label,li,p{color:#333;font-weight:400;text-decoration:none;text-shadow:1px 1px 1px rgba(51,51,51,.004)}h1,h2,h3,h4,h5,h6{font-weight:700}h1.white,h2.white,h3.white,h4.white,h5.white,h6.white{color:#fff!important}h1,h2{font-family:Platform}h3,h4,h5,h6{font-family:Circular}h1:not(.promo){font-size:1.875rem;letter-spacing:.03125rem;line-height:1.875rem}@media (min-width:768px){h1:not(.promo){font-size:2.5rem;line-height:2.5rem}}h1.promo{font-size:2.5rem;line-height:2.65rem}@media (min-width:768px){h1.promo{font-size:4.0625rem;line-height:4.375rem}}h1{margin-bottom:.875rem;margin-top:.875rem}h2{font-size:1.625rem;line-height:2rem;margin-bottom:.75rem;margin-top:.75rem}h3{font-size:1.125rem;line-height:1.35rem;margin-bottom:.625rem;margin-top:.625rem}h4,h5,h6{font-size:.9375rem;line-height:1.125rem}h4.white,h5.white,h6.white{color:#fff}h4.inline,h5.inline,h6.inline{display:inline!important}h5{font-family:Circular;font-size:.625rem;font-variant-numeric:lining-nums;font-weight:700;letter-spacing:.0625rem;line-height:.75rem;text-transform:uppercase}h6{font-weight:400}h6.bold{font-weight:700}h6.caption,h6.subtitle{font-family:Lyon}h6.caption{font-style:italic}h6.subheader{font-size:1.375rem;line-height:1.75rem;margin-bottom:.75rem;margin-top:.75rem}h6.paragraph{line-height:1.25rem}h6.with-separator:after,h6.with-seperator:after{content:"|";display:inline;padding-left:.5em;padding-right:.5em}h6 .rich-text,h6 a,h6 li,h6 p{color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin-bottom:0;margin-top:0;text-decoration:inherit}.rich-text,li,p{font-family:Lyon;font-size:1.125rem;line-height:1.9rem;text-rendering:optimizeLegibility!important}p{margin-bottom:25px;margin-top:25px}p.gray{color:#737378}p.white{color:#fff}li p{margin-bottom:0;margin-top:0}blockquote{margin:2.5rem 50px}blockquote.pullquote{font-family:Lyon;font-size:1.75rem;font-weight:700;line-height:1.875rem;margin-left:0;margin-right:0}blockquote.white{color:#fff}blockquote+blockquote{margin-top:-1.25rem}.subheading,[class*=subheading--]{font-size:1.475rem;font-weight:400;line-height:1.75rem;margin:0}.subheading.white,[class*=subheading--].white{color:#fff!important}.fa{font-weight:300}.fa.padding-5{padding-right:5px}.fa.no-padding{padding-right:0}.fa.xs{font-size:.65rem}.fa.sm{font-size:.78rem}.fa.lg{font-size:1.875rem}.fa.outline{-webkit-text-stroke-color:#737378;-webkit-text-stroke-width:1px;color:#fff}.fa.outline.turquoise{-webkit-text-stroke-color:#22c8a3}.fa.outline:hover{-webkit-text-stroke-width:0}a{color:#22c8a3;font-size:inherit;font-weight:700;line-height:inherit;text-decoration:none}a.inline{display:inline!important}a.block{display:block!important}a.white{color:#fff}a.white.underlined,a.white:hover.underlined--on-hover{box-shadow:0 1.5px 0 #fff}em,u{text-decoration:none}input,label,textarea{color:#333;cursor:inherit;display:inline-block;font-family:Circular;font-size:.9375rem;font-weight:400;line-height:1.125rem;margin-bottom:.625rem;margin-top:.625rem;text-decoration:none}h1>a,h2>a,h3>a,h4>a,h5>a,h6>a{color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin-bottom:0;margin-top:0;text-decoration:inherit}.button,.button--text,.input label,.tag,button{color:#333;display:inline-block;font-family:Circular;font-size:.625rem;font-variant-numeric:lining-nums;font-weight:700;letter-spacing:.0625rem;line-height:.75rem;text-transform:uppercase}.button--text.white,.button.white,.input label.white,.tag.white,button.white{color:#fff}.font-weight-normal{font-weight:400}.centered{text-align:center}.container,[class*=container--]{display:block;margin-left:auto;margin-right:auto;max-width:1200px;padding-left:15px;padding-right:15px;position:relative}.container.beige,[class*=container--].beige{background-color:#f7f4f2}.container.turquoise,[class*=container--].turquoise{background-color:#22c8a3}.container.blue,[class*=container--].blue{background-color:#10355f}.container.purple,[class*=container--].purple{background-color:#9868be}.container.black,[class*=container--].black{background-color:#333}.container.gray,[class*=container--].gray{background-color:#f6f6f6}.container--full-width,.container .container,[class*=container--]:not(.container--full-width) .container{padding-left:0;padding-right:0}.container--full-width{max-width:none;width:100%}.container--1080{max-width:1080px}.container--700{max-width:700px}.container--800{max-width:800px}.container--900{max-width:900px}.row{-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;display:flex;flex-wrap:wrap;margin-left:-15px;margin-right:-15px}@media (min-width:576px){.row{margin-left:-15px;margin-right:-15px}}@media (min-width:768px){.row{margin-left:-15px;margin-right:-15px}}@media (min-width:992px){.row{margin-left:-15px;margin-right:-15px}}@media (min-width:1200px){.row{margin-left:-15px;margin-right:-15px}}.gutter-0,.gutter-10,.gutter-20,.no-gutters{margin-left:0;margin-right:0}.gutter-10{margin-left:-5px;margin-right:-5px}.gutter-15{margin-left:-7.5px;margin-right:-7.5px}.gutter-20{margin-left:-10px;margin-right:-10px}.gutter-30{margin-left:-15px;margin-right:-15px}.gutter-45{margin-left:0;margin-right:0}.gutter-0>.col,.gutter-0>[class*=col-],.no-gutters>.col,.no-gutters>[class*=col-]{padding-left:0;padding-right:0}.gutter-10>.col,.gutter-10>[class*=col-]{padding-left:5px;padding-right:5px}.gutter-20>.col,.gutter-20>[class*=col-]{padding-left:10px;padding-right:10px}.gutter-15>.col,.gutter-15>[class*=col-]{padding-left:7.5px;padding-right:7.5px}.gutter-30>.col,.gutter-30>[class*=col-]{padding-left:15px;padding-right:15px}.gutter-45>.col,.gutter-45>[class*=col-]{padding-left:22.5px;padding-right:22.5px}.col,.col-1,.col-2,.col-3,.col-4,.col-5,.col-5ths,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12,.col-lg,.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-5ths,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-md,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-5ths,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-sm,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-5ths,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-xl,.col-xl-1,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-5ths,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-10,.col-xl-11,.col-xl-12{min-height:1px;padding-left:15px;padding-right:15px;position:relative;width:100%}@media (min-width:576px){.col,.col-1,.col-2,.col-3,.col-4,.col-5,.col-5ths,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12,.col-lg,.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-5ths,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-md,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-5ths,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-sm,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-5ths,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-xl,.col-xl-1,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-5ths,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-10,.col-xl-11,.col-xl-12{padding-left:15px;padding-right:15px}}@media (min-width:768px){.col,.col-1,.col-2,.col-3,.col-4,.col-5,.col-5ths,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12,.col-lg,.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-5ths,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-md,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-5ths,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-sm,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-5ths,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-xl,.col-xl-1,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-5ths,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-10,.col-xl-11,.col-xl-12{padding-left:15px;padding-right:15px}}@media (min-width:992px){.col,.col-1,.col-2,.col-3,.col-4,.col-5,.col-5ths,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12,.col-lg,.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-5ths,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-md,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-5ths,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-sm,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-5ths,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-xl,.col-xl-1,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-5ths,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-10,.col-xl-11,.col-xl-12{padding-left:15px;padding-right:15px}}@media (min-width:1200px){.col,.col-1,.col-2,.col-3,.col-4,.col-5,.col-5ths,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12,.col-lg,.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-5ths,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-md,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-5ths,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-sm,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-5ths,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-xl,.col-xl-1,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-5ths,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-10,.col-xl-11,.col-xl-12{padding-left:15px;padding-right:15px}}.col{-ms-flex-positive:1;-ms-flex-preferred-size:0;-webkit-box-flex:1;-webkit-flex-basis:0;-webkit-flex-grow:1;flex-basis:0;flex-grow:1;max-width:100%}.col-auto{flex:0 0 auto;width:auto}.col-1,.col-auto{-webkit-box-flex:0}.col-1{flex:0 0 8.333333%;max-width:8.333333%}.col-2{flex:0 0 16.666667%;max-width:16.666667%}.col-2,.col-3{-webkit-box-flex:0}.col-3{flex:0 0 25%;max-width:25%}.col-4{flex:0 0 33.333333%;max-width:33.333333%}.col-4,.col-5{-webkit-box-flex:0}.col-5{flex:0 0 41.666667%;max-width:41.666667%}.col-6{flex:0 0 50%;max-width:50%}.col-6,.col-7{-webkit-box-flex:0}.col-7{flex:0 0 58.333333%;max-width:58.333333%}.col-8{flex:0 0 66.666667%;max-width:66.666667%}.col-8,.col-9{-webkit-box-flex:0}.col-9{flex:0 0 75%;max-width:75%}.col-10{flex:0 0 83.333333%;max-width:83.333333%}.col-10,.col-11{-webkit-box-flex:0}.col-11{flex:0 0 91.666667%;max-width:91.666667%}.col-12{flex:0 0 100%;max-width:100%}.col-5ths,.col-12{-webkit-box-flex:0}.col-5ths{flex:0 0 20%;max-width:20%}@media (min-width:576px){.col-sm{-ms-flex-positive:1;-ms-flex-preferred-size:0;-webkit-box-flex:1;-webkit-flex-basis:0;-webkit-flex-grow:1;flex-basis:0;flex-grow:1;max-width:100%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 8.333333%;max-width:8.333333%}.col-sm-2{flex:0 0 16.666667%;max-width:16.666667%}.col-sm-3{flex:0 0 25%;max-width:25%}.col-sm-4{flex:0 0 33.333333%;max-width:33.333333%}.col-sm-5{flex:0 0 41.666667%;max-width:41.666667%}.col-sm-6{flex:0 0 50%;max-width:50%}.col-sm-7{flex:0 0 58.333333%;max-width:58.333333%}.col-sm-8{flex:0 0 66.666667%;max-width:66.666667%}.col-sm-9{flex:0 0 75%;max-width:75%}.col-sm-10{flex:0 0 83.333333%;max-width:83.333333%}.col-sm-11{flex:0 0 91.666667%;max-width:91.666667%}.col-sm-12{flex:0 0 100%;max-width:100%}.col-sm-5ths{flex:0 0 20%;max-width:20%}}@media (min-width:768px){.col-md{-ms-flex-positive:1;-ms-flex-preferred-size:0;-webkit-box-flex:1;-webkit-flex-basis:0;-webkit-flex-grow:1;flex-basis:0;flex-grow:1;max-width:100%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 8.333333%;max-width:8.333333%}.col-md-2{flex:0 0 16.666667%;max-width:16.666667%}.col-md-3{flex:0 0 25%;max-width:25%}.col-md-4{flex:0 0 33.333333%;max-width:33.333333%}.col-md-5{flex:0 0 41.666667%;max-width:41.666667%}.col-md-6{flex:0 0 50%;max-width:50%}.col-md-7{flex:0 0 58.333333%;max-width:58.333333%}.col-md-8{flex:0 0 66.666667%;max-width:66.666667%}.col-md-9{flex:0 0 75%;max-width:75%}.col-md-10{flex:0 0 83.333333%;max-width:83.333333%}.col-md-11{flex:0 0 91.666667%;max-width:91.666667%}.col-md-12{flex:0 0 100%;max-width:100%}.col-md-5ths{flex:0 0 20%;max-width:20%}}@media (min-width:992px){.col-lg{-ms-flex-positive:1;-ms-flex-preferred-size:0;-webkit-box-flex:1;-webkit-flex-basis:0;-webkit-flex-grow:1;flex-basis:0;flex-grow:1;max-width:100%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 8.333333%;max-width:8.333333%}.col-lg-2{flex:0 0 16.666667%;max-width:16.666667%}.col-lg-3{flex:0 0 25%;max-width:25%}.col-lg-4{flex:0 0 33.333333%;max-width:33.333333%}.col-lg-5{flex:0 0 41.666667%;max-width:41.666667%}.col-lg-6{flex:0 0 50%;max-width:50%}.col-lg-7{flex:0 0 58.333333%;max-width:58.333333%}.col-lg-8{flex:0 0 66.666667%;max-width:66.666667%}.col-lg-9{flex:0 0 75%;max-width:75%}.col-lg-10{flex:0 0 83.333333%;max-width:83.333333%}.col-lg-11{flex:0 0 91.666667%;max-width:91.666667%}.col-lg-12{flex:0 0 100%;max-width:100%}.col-lg-5ths{flex:0 0 20%;max-width:20%}}@media (min-width:1200px){.col-xl{-ms-flex-positive:1;-ms-flex-preferred-size:0;-webkit-box-flex:1;-webkit-flex-basis:0;-webkit-flex-grow:1;flex-basis:0;flex-grow:1;max-width:100%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 8.333333%;max-width:8.333333%}.col-xl-2{flex:0 0 16.666667%;max-width:16.666667%}.col-xl-3{flex:0 0 25%;max-width:25%}.col-xl-4{flex:0 0 33.333333%;max-width:33.333333%}.col-xl-5{flex:0 0 41.666667%;max-width:41.666667%}.col-xl-6{flex:0 0 50%;max-width:50%}.col-xl-7{flex:0 0 58.333333%;max-width:58.333333%}.col-xl-8{flex:0 0 66.666667%;max-width:66.666667%}.col-xl-9{flex:0 0 75%;max-width:75%}.col-xl-10{flex:0 0 83.333333%;max-width:83.333333%}.col-xl-11{flex:0 0 91.666667%;max-width:91.666667%}.col-xl-12{flex:0 0 100%;max-width:100%}.col-xl-5ths{flex:0 0 20%;max-width:20%}}.margin-0{margin-bottom:0!important}.margin-0,.margin-top-0{margin-top:0!important}.margin-bottom-0{margin-bottom:0!important}.margin-5{margin-top:5px!important}.margin-5,.margin-bottom-5{margin-bottom:5px!important}.margin-top-5{margin-top:5px!important}.margin-10{margin-bottom:10px!important}.margin-10,.margin-top-10{margin-top:10px!important}.margin-bottom-10{margin-bottom:10px!important}.margin-15{margin-top:15px!important}.margin-15,.margin-bottom-15{margin-bottom:15px!important}.margin-top-15{margin-top:15px!important}.margin-25{margin-top:25px!important}.margin-25,.margin-bottom-25{margin-bottom:25px!important}.margin-top-25{margin-top:25px!important}.margin-35{margin-top:35px!important}.margin-35,.margin-bottom-35{margin-bottom:35px!important}.margin-top-35{margin-top:35px!important}.margin-60{margin-bottom:60px!important}.margin-60,.margin-top-60{margin-top:60px!important}.margin-bottom-60{margin-bottom:60px!important}.margin-80{margin-bottom:80px!important}.margin-80,.margin-top-80{margin-top:80px!important}.margin-bottom-80{margin-bottom:80px!important}.screenshot-in-progress:after{content:"Downloading...";position:fixed;padding-top:50vh;text-align:center;left:0;right:0;top:0;bottom:0;background-color:#fff;z-index:10}h1,h2,h3,h4,h5,h6{margin:0}.dv-dashboard{display:grid;grid-gap:2rem}@media screen and (min-width:800px){.dv-dashboard{height:calc(100vh - 135px);grid-template-columns:1fr 2fr;grid-gap:33px;overflow:hidden}}@media screen and (min-width:800px){.dv-dashboard__column{max-width:100%;height:100%}}@media screen and (min-width:800px){.dv-dashboard__column--data{overflow-y:scroll;padding-top:2.5rem;padding-bottom:2rem}}.dv-dashboard__column--nav{display:flex;flex-direction:column}@media screen and (min-width:800px){.dv-dashboard__column--nav{overflow-y:hidden}}.dv-dashboard__nav-title{flex-shrink:0;margin-top:2rem;margin-bottom:.5rem}.dv-dashboard__nav-heading{flex-shrink:0;margin-top:1rem;margin-bottom:.5rem}@media screen and (min-height:600px){.dv-dashboard__nav-heading{margin-top:1.5rem;margin-bottom:.75rem}}@media screen and (min-height:700px){.dv-dashboard__nav-heading{margin-top:2rem}}.dv-button-group{overflow-y:scroll}.dv-button-group--ol{margin:0}@media screen and (min-height:600px){.dv-button-group--findings{flex-shrink:0;overflow-y:auto;font-size:1.1rem}}.dv-button-group--filters{flex-shrink:2;font-size:.8rem}@media screen and (min-height:600px){.dv-button-group--filters{font-size:.85rem}}@media screen and (min-height:700px){.dv-button-group--filters{font-size:.9rem}}.dv-button-group__li{font:inherit;margin-bottom:.3em}.dv-button-group__li--active::marker{font-weight:700}.dv-button-group__button{padding:0;background:none;border:none;text-transform:none;font-size:1em;line-height:1;letter-spacing:0;font-weight:400;text-align:left;color:inherit}.dv-button-group__button:active,.dv-button-group__button:hover{cursor:pointer;color:#2ebcb3}.dv-button-group--ol .dv-button-group__button{line-height:inherit}.dv-button-group--filters .dv-button-group__button{display:inline-block;padding:.3em .45em;border-radius:.8em;border-radius:0;border:1px solid #abacae;color:#6c6c6c;margin-right:.3em;margin-bottom:.3em}.dv-button-group--filters .dv-button-group__button:active,.dv-button-group--filters .dv-button-group__button:hover{color:#2ebcb3;border-color:#2ebcb3}.dv-button-group__button--active{font-weight:700}.dv-button-group__button--active:active,.dv-button-group__button--active:hover{background:none;cursor:inherit}.dv-button-group--filters .dv-button-group__button--active{font-weight:400;color:#fff;border-color:#6c6c6c;background-color:#6c6c6c}.dv-button-group--filters .dv-button-group__button--active:active,.dv-button-group--filters .dv-button-group__button--active:hover{color:#fff;background-color:#2ebcb3}.dv-individual-chart{background-color:#efefef;padding:1.5rem;max-width:650px}.custom-chart,.datawrapper-chart{margin-top:2rem}.custom-chart--individual-chart,.custom-chart--partial-chart,.datawrapper-chart--individual-chart,.datawrapper-chart--partial-chart,.screenshot-in-progress .custom-chart,.screenshot-in-progress .datawrapper-chart{margin-top:0}.custom-chart--partial-chart .custom-chart__meta,.custom-chart--partial-chart .datawrapper-chart__meta,.datawrapper-chart--partial-chart .custom-chart__meta,.datawrapper-chart--partial-chart .datawrapper-chart__meta{display:none}.screenshot-in-progress .custom-chart--partial-chart .custom-chart__meta,.screenshot-in-progress .custom-chart--partial-chart .datawrapper-chart__meta,.screenshot-in-progress .datawrapper-chart--partial-chart .custom-chart__meta,.screenshot-in-progress .datawrapper-chart--partial-chart .datawrapper-chart__meta{display:block}.custom-chart__title,.datawrapper-chart__title{margin-bottom:.5rem}.custom-chart__title--specific,.datawrapper-chart__title--specific{margin-top:1rem}.custom-chart__message,.datawrapper-chart__message{font-size:1rem;margin:0 0 .5rem;line-height:1;font-style:italic}.custom-chart__footer,.datawrapper-chart__footer{display:flex;justify-content:space-between}.legend{list-style:none;margin:1rem 0;padding:0}.legend__item{display:inline-block;margin-right:.5em;margin-bottom:.5em;padding:.3em .5em .3em .4em;font-size:14px;line-height:1;border-left:.4em solid transparent;background-image:linear-gradient(hsla(0,0%,100%,.8),hsla(0,0%,100%,.8));font-family:Circular;font-variant-numeric:lining-nums}.n-value{display:block;margin-top:-5px;color:#6c6c6c}.download-button{position:relative;top:-5px;z-index:2;color:#6c6c6c;padding:0;border:none;background:#fff;transition:color .2s ease-in-out}.download-button:hover{color:#333}.vx-tooltip-portal{z-index:1000}.tooltip__title{margin:0 0 .3em}.tooltip__subtitle{font-weight:400;color:#6c6c6c}.tooltip-table{border-collapse:collapse;color:#333;max-width:300px}.tooltip-table__tr{background-image:linear-gradient(hsla(0,0%,100%,.9),hsla(0,0%,100%,.9));border-left:.5em solid transparent;transition:border 50ms,background 50ms}.tooltip-table__tr--zero-value{color:#6c6c6c}.tooltip-table__tr--active{border-left-width:.75em;background-image:linear-gradient(hsla(0,0%,100%,.7),hsla(0,0%,100%,.7))}.tooltip-table__td{padding:.4em}.tooltip-table__tr:last-child .tooltip-table__td{padding-bottom:.2em}.tooltip-table__td--datum{text-align:right}.bar__rectangle{transition:fill .2s ease 50ms,stroke-opacity .2s ease 50ms,stroke .2s ease 50ms;stroke-opacity:0}.bar__text{fill:#333;pointer-events:none;font-size:14px;transition:fill .2s ease 50ms}.bar__text--outside{fill:#6c6c6c}.bar--color-0E6DB6 .bar__text--inside,.bar--color-005E57 .bar__text--inside,.bar--color-5A3000 .bar__text--inside,.bar--color-8D4A9B .bar__text--inside,.bar--color-107C74 .bar__text--inside,.bar--color-137A7C .bar__text--inside,.bar--color-209B93 .bar__text--inside,.bar--color-743F03 .bar__text--inside,.bar--color-904E04 .bar__text--inside,.bar--color-3597A0 .bar__text--inside,.bar--color-004275 .bar__text--inside,.bar--color-055795 .bar__text--inside,.bar--color-333333 .bar__text--inside,.bar--color-515151 .bar__text--inside,.bar--color-717171 .bar__text--inside,.bar--color-743083 .bar__text--inside,.bar--color-AB0009 .bar__text--inside,.bar--color-AC5E06 .bar__text--inside,.bar--color-C01E22 .bar__text--inside{fill:#fff}.bars:hover .bar__rectangle{stroke-opacity:1}.bars:hover .bar-group .bar:not(.bar--key-hover) .bar__rectangle,.bars:hover .bar-stack:not(:hover) .bar__rectangle{fill:#fff}.bars:hover .bar-group .bar:not(.bar--key-hover) .bar__text--inside,.bars:hover .bar-stack:not(:hover) .bar__text--inside{fill:#333}.bars:hover .bar--key-hover:not(:hover) .bar__text--outside{font-weight:700}.bar:hover .bar__rectangle{stroke:#333}.bar:hover .bar__text{font-weight:700}.bar:hover .bar__text--outside{fill:#333}.logo-text{font-size:12px;margin-top:10px;text-transform:uppercase}',""])},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(r),a=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(a).concat([i]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var a=this[i][0];"number"==typeof a&&(r[a]=!0)}for(i=0;i<t.length;i++){var o=t[i];"number"==typeof o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o))}},e}},function(t,e,n){var r={},i=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),a=function(t){var e={};return function(t){return void 0===e[t]&&(e[t]=function(t){return document.querySelector(t)}.call(this,t)),e[t]}}(),o=null,c=0,s=[],u=n(26);function l(t,e){for(var n=0;n<t.length;n++){var i=t[n],a=r[i.id];if(a){a.refs++;for(var o=0;o<a.parts.length;o++)a.parts[o](i.parts[o]);for(;o<i.parts.length;o++)a.parts.push(g(i.parts[o],e))}else{var c=[];for(o=0;o<i.parts.length;o++)c.push(g(i.parts[o],e));r[i.id]={id:i.id,refs:1,parts:c}}}}function f(t,e){for(var n=[],r={},i=0;i<t.length;i++){var a=t[i],o=e.base?a[0]+e.base:a[0],c={css:a[1],media:a[2],sourceMap:a[3]};r[o]?r[o].parts.push(c):n.push(r[o]={id:o,parts:[c]})}return n}function h(t,e){var n=a(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=s[s.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),s.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function p(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=s.indexOf(t);e>=0&&s.splice(e,1)}function d(t){var e=document.createElement("style");return t.attrs.type="text/css",m(e,t.attrs),h(t,e),e}function m(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function g(t,e){var n,r,i,a;if(e.transform&&t.css){if(!(a=e.transform(t.css)))return function(){};t.css=a}if(e.singleton){var s=c++;n=o||(o=d(e)),r=b.bind(null,n,s,!1),i=b.bind(null,n,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",m(e,t.attrs),h(t,e),e}(e),r=function(t,e,n){var r=n.css,i=n.sourceMap,a=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||a)&&(r=u(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var o=new Blob([r],{type:"text/css"}),c=t.href;t.href=URL.createObjectURL(o),c&&URL.revokeObjectURL(c)}.bind(null,n,e),i=function(){p(n),n.href&&URL.revokeObjectURL(n.href)}):(n=d(e),r=function(t,e){var n=e.css,r=e.media;r&&t.setAttribute("media",r);if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){p(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=i()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=f(t,e);return l(n,e),function(t){for(var i=[],a=0;a<n.length;a++){var o=n[a];(c=r[o.id]).refs--,i.push(c)}t&&l(f(t,e),e);for(a=0;a<i.length;a++){var c;if(0===(c=i[a]).refs){for(var s=0;s<c.parts.length;s++)c.parts[s]();delete r[c.id]}}}};var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function b(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var a=document.createTextNode(i),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(a,o[e]):t.appendChild(a)}}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var i,a=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(a)?t:(i=0===a.indexOf("//")?a:0===a.indexOf("/")?n+a:r+a.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n.n(r),a=n(5),o=n.n(a),c=n(0),s=n.n(c);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(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)}}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var d=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?p(t):e}(this,f(e).call(this,t))).state={active:n.props.active},n.handleClick=n.handleClick.bind(p(p(n))),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(e,i.a.Component),function(t,e,n){e&&l(t.prototype,e),n&&l(t,n)}(e,[{key:"handleClick",value:function(t){var e=this;t.preventDefault(),this.setState({active:t.target.id},function(){return e.props.onChange(e.state.active)})}},{key:"render",value:function(){var t=this,e=this.props,n=e.options,r=e.style,a=e.className,o=this.state.active;return"ol"==r?i.a.createElement("ol",{className:"dv-button-group ".concat(r&&"dv-button-group--".concat(r)," ").concat(a),role:"group"},n.map(function(e){return i.a.createElement("li",{className:"dv-button-group__li ".concat(o===e.id?"dv-button-group__li--active":"")},i.a.createElement("a",{type:"button",href:"#",className:"dv-button-group__button ".concat(o===e.id?"dv-button-group__button--active":""),onClick:t.handleClick,id:e.id},e.text))})):i.a.createElement("div",{className:"dv-button-group ".concat(this.props.className),role:"group"},n.map(function(e){return i.a.createElement("button",{type:"button",className:"dv-button-group__button ".concat(o===e.id?"dv-button-group__button--active":""),onClick:t.handleClick,id:e.id},e.text)}))}}]),e}();d.propTypes={options:s.a.arrayOf(s.a.shape({text:s.a.string,id:s.a.oneOfType([s.a.string,s.a.number])})).isRequired,onChange:s.a.func.isRequired,active:s.a.oneOfType([s.a.string,s.a.number])};var m=d,g=function(t){var e=t.children,n=t.style,r=t.className,a=t.full,o=t.noBackground;return i.a.createElement("div",{className:"dv-ChartContainer ".concat(o?"dv-ChartContainer-nobg":""," ").concat(r||""),style:n},a?i.a.createElement("div",{className:"dv-ChartContainer__child"},e):e)};g.propTypes={children:s.a.any,style:s.a.object,className:s.a.string,full:s.a.bool,noBackground:s.a.bool},g.defaultProps={full:!1,noBackground:!1};s.a.any,s.a.string,s.a.object;s.a.any,s.a.string,s.a.object;s.a.any,s.a.string,s.a.object;var y=n(9),b=n(2),v=n.n(b);function _(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)}}function x(){return(x=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}).apply(this,arguments)}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function k(t,e){return(k=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function T(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var O={top:0,right:0,bottom:0,left:0,width:0,height:0};s.a.shape({top:s.a.number.isRequired,right:s.a.number.isRequired,bottom:s.a.number.isRequired,left:s.a.number.isRequired,width:s.a.number.isRequired,height:s.a.number.isRequired}),s.a.func;function M(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)}}function E(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function S(){return(S=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}).apply(this,arguments)}function N(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){E(t,e,n[e])})}return t}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function C(t,e){return(C=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function P(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function j(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}s.a.bool,s.a.number,s.a.number,s.a.object,s.a.func,s.a.func,s.a.func;function A(t){var e=t.className,n=t.top,r=t.left,a=t.style,o=t.children,c=P(t,["className","top","left","style","children"]);return i.a.createElement("div",S({className:v()("vx-tooltip-portal",e),style:N({position:"absolute",backgroundColor:"white",color:"#666666",padding:".3rem .5rem",borderRadius:"3px",fontSize:"14px",boxShadow:"0 1px 2px rgba(33,33,33,0.2)",lineHeight:"1em",pointerEvents:"none",top:n,left:r},a)},c),o)}A.propTypes={left:s.a.oneOfType([s.a.number,s.a.string]),top:s.a.oneOfType([s.a.number,s.a.string]),className:s.a.string,style:s.a.object,children:s.a.any};var L=s.a.shape({top:s.a.number.isRequired,right:s.a.number.isRequired,bottom:s.a.number.isRequired,left:s.a.number.isRequired,width:s.a.number.isRequired,height:s.a.number.isRequired}),q=N({},{getRects:s.a.func,rect:L,parentRect:L},{left:s.a.oneOfType([s.a.number,s.a.string]),top:s.a.oneOfType([s.a.number,s.a.string]),className:s.a.string,style:s.a.object,children:s.a.any},{offsetLeft:s.a.number,offsetTop:s.a.number});function F(t){var e=t.left,n=t.top,r=t.offsetLeft,a=void 0===r?10:r,o=t.offsetTop,c=void 0===o?10:o,s=t.rect,u=t.parentRect,l=(t.getRects,t.children),f=t.style,h=P(t,["left","top","offsetLeft","offsetTop","rect","parentRect","getRects","children","style"]),p=e,d=n;return s&&u&&(p=a+s.right>u.right||a+s.right>window.innerWidth?p-s.width-a:p+a,d=c+s.bottom>u.bottom||c+s.bottom>window.innerHeight?d-s.height-c:d+c),p=Math.round(p),d=Math.round(d),i.a.createElement(A,S({style:N({top:0,transform:"translate(".concat(p,"px, ").concat(d,"px)")},f)},h),l)}F.propTypes=q,F.defaultProps={};var D=function(t){var e=function(e){function n(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(e=function(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?T(t):e}(this,w(n).call(this,t))).state={rect:void 0,parentRect:void 0},e.getRects=e.getRects.bind(T(T(e))),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&k(t,e)}(n,i.a.PureComponent),function(t,e,n){e&&_(t.prototype,e),n&&_(t,n)}(n,[{key:"componentDidMount",value:function(){var t=this;this.node=o.a.findDOMNode(this),this.setState(function(){return t.getRects()})}},{key:"getRects",value:function(){if(!this.node)return this.state;var t=this.node,e=this.node.parentNode;return{rect:t.getBoundingClientRect?t.getBoundingClientRect():O,parentRect:e&&e.getBoundingClientRect?e.getBoundingClientRect():O}}},{key:"render",value:function(){return i.a.createElement(t,x({getRects:this.getRects},this.state,this.props))}}]),n}();return e.propTypes=t.propTypes,e.defaultProps=t.defaultProps,e.displayName="withBoundingRects(".concat(t.displayName||"",")"),e}(F);function z(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)}}var U=function(){function t(e){var n=e.x,r=void 0===n?0:n,i=e.y,a=void 0===i?0:i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=r,this.y=a}return function(t,e,n){e&&z(t.prototype,e),n&&z(t,n)}(t,[{key:"value",value:function(){return{x:this.x,y:this.y}}},{key:"toArray",value:function(){return[this.x,this.y]}}]),t}();function I(t,e){if(t){if(t.target)for(t=(e=t).target.ownerSVGElement;t.ownerSVGElement;)t=t.ownerSVGElement;var n=e,r=n.clientX,i=n.clientY;if(e.changedTouches&&(r=e.changedTouches[0].clientX,i=e.changedTouches[0].clientY),t.createSVGPoint){var a=t.createSVGPoint();return a.x=r,a.y=i,a=a.matrixTransform(t.getScreenCTM().inverse()),new U({x:a.x,y:a.y})}var o=t.getBoundingClientRect();return new U({x:r-o.left-t.clientLeft,y:i-o.top-t.clientTop})}}function W(){return(W=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}).apply(this,arguments)}function $(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function B(t){var e=t.top,n=void 0===e?0:e,r=t.left,a=void 0===r?0:r,o=t.transform,c=t.className,s=t.children,u=$(t,["top","left","transform","className","children"]);return i.a.createElement("g",W({className:v()("vx-group",c),transform:o||"translate(".concat(a,", ").concat(n,")")},u),s)}function Y(){return(Y=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}).apply(this,arguments)}function V(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function H(t){var e=t.top,n=void 0===e?0:e,r=t.left,a=void 0===r?0:r,o=t.transform,c=t.className,s=t.children,u=V(t,["top","left","transform","className","children"]);return i.a.createElement("g",Y({className:v()("vx-group",c),transform:o||"translate(".concat(a,", ").concat(n,")")},u),s)}B.propTypes={top:s.a.number,left:s.a.number,transform:s.a.string,className:s.a.string,children:s.a.any};var X=Math.PI,Z=2*X,G=Z-1e-6;function J(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Q(){return new J}J.prototype=Q.prototype={constructor:J,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,c=n-t,s=r-e,u=a-t,l=o-e,f=u*u+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>1e-6)if(Math.abs(l*c-s*u)>1e-6&&i){var h=n-a,p=r-o,d=c*c+s*s,m=h*h+p*p,g=Math.sqrt(d),y=Math.sqrt(f),b=i*Math.tan((X-Math.acos((d+f-m)/(2*g*y)))/2),v=b/y,_=b/g;Math.abs(v-1)>1e-6&&(this._+="L"+(t+v*u)+","+(e+v*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>u*p)+","+(this._x1=t+_*c)+","+(this._y1=e+_*s)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,a){t=+t,e=+e;var o=(n=+n)*Math.cos(r),c=n*Math.sin(r),s=t+o,u=e+c,l=1^a,f=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+s+","+u:(Math.abs(this._x1-s)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+s+","+u),n&&(f<0&&(f=f%Z+Z),f>G?this._+="A"+n+","+n+",0,1,"+l+","+(t-o)+","+(e-c)+"A"+n+","+n+",0,1,"+l+","+(this._x1=s)+","+(this._y1=u):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=X)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var K=Q,tt=function(t){return function(){return t}},et=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,1e-12),nt=Math.PI,rt=2*nt;function it(t){this._context=t}it.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),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:this._context.lineTo(t,e)}}};var at=function(t){return new it(t)};function ot(t){return t[0]}function ct(t){return t[1]}var st=function(){var t=ot,e=ct,n=tt(!0),r=null,i=at,a=null;function o(o){var c,s,u,l=o.length,f=!1;for(null==r&&(a=i(u=K())),c=0;c<=l;++c)!(c<l&&n(s=o[c],c,o))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+t(s,c,o),+e(s,c,o));if(u)return a=null,u+""||null}return o.x=function(e){return arguments.length?(t="function"==typeof e?e:tt(+e),o):t},o.y=function(t){return arguments.length?(e="function"==typeof t?t:tt(+t),o):e},o.defined=function(t){return arguments.length?(n="function"==typeof t?t:tt(!!t),o):n},o.curve=function(t){return arguments.length?(i=t,null!=r&&(a=i(r)),o):i},o.context=function(t){return arguments.length?(null==t?r=a=null:a=i(r=t),o):r},o},ut=function(){var t=ot,e=null,n=tt(0),r=ct,i=tt(!0),a=null,o=at,c=null;function s(s){var u,l,f,h,p,d=s.length,m=!1,g=new Array(d),y=new Array(d);for(null==a&&(c=o(p=K())),u=0;u<=d;++u){if(!(u<d&&i(h=s[u],u,s))===m)if(m=!m)l=u,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),f=u-1;f>=l;--f)c.point(g[f],y[f]);c.lineEnd(),c.areaEnd()}m&&(g[u]=+t(h,u,s),y[u]=+n(h,u,s),c.point(e?+e(h,u,s):g[u],r?+r(h,u,s):y[u]))}if(p)return c=null,p+""||null}function u(){return st().defined(i).curve(o).context(a)}return s.x=function(n){return arguments.length?(t="function"==typeof n?n:tt(+n),e=null,s):t},s.x0=function(e){return arguments.length?(t="function"==typeof e?e:tt(+e),s):t},s.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:tt(+t),s):e},s.y=function(t){return arguments.length?(n="function"==typeof t?t:tt(+t),r=null,s):n},s.y0=function(t){return arguments.length?(n="function"==typeof t?t:tt(+t),s):n},s.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:tt(+t),s):r},s.lineX0=s.lineY0=function(){return u().x(t).y(n)},s.lineY1=function(){return u().x(t).y(r)},s.lineX1=function(){return u().x(e).y(n)},s.defined=function(t){return arguments.length?(i="function"==typeof t?t:tt(!!t),s):i},s.curve=function(t){return arguments.length?(o=t,null!=a&&(c=o(a)),s):o},s.context=function(t){return arguments.length?(null==t?a=c=null:c=o(a=t),s):a},s};ft(at);function lt(t){this._curve=t}function ft(t){function e(e){return new lt(t(e))}return e._curve=t,e}lt.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var ht=Array.prototype.slice;Math.sqrt(1/3);var pt=Math.sin(nt/10)/Math.sin(7*nt/10),dt=(Math.sin(rt/10),Math.cos(rt/10),Math.sqrt(3),Math.sqrt(3),Math.sqrt(12),function(){});function mt(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function gt(t){this._context=t}gt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:mt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:mt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function yt(t){this._context=t}yt.prototype={areaStart:dt,areaEnd:dt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:mt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function bt(t){this._context=t}bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:mt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function vt(t,e){this._basis=new gt(t),this._beta=e}vt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,c=e[n]-a,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+r*o),this._beta*e[s]+(1-this._beta)*(a+r*c));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};(function t(e){function n(t){return 1===e?new gt(t):new vt(t,e)}return n.beta=function(e){return t(+e)},n})(.85);function _t(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function xt(t,e){this._context=t,this._k=(1-e)/6}xt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:_t(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),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,this._x1=t,this._y1=e;break;case 2:this._point=3;default:_t(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new xt(t,e)}return n.tension=function(e){return t(+e)},n})(0);function wt(t,e){this._context=t,this._k=(1-e)/6}wt.prototype={areaStart:dt,areaEnd:dt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:_t(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new wt(t,e)}return n.tension=function(e){return t(+e)},n})(0);function kt(t,e){this._context=t,this._k=(1-e)/6}kt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_t(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new kt(t,e)}return n.tension=function(e){return t(+e)},n})(0);function Tt(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>et){var c=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*c-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,i=(i*c-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>et){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*u+t._x1*t._l23_2a-e*t._l12_2a)/l,o=(o*u+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function Ot(t,e){this._context=t,this._alpha=e}Ot.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(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;break;case 2:this._point=3;default:Tt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return e?new Ot(t,e):new xt(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function Mt(t,e){this._context=t,this._alpha=e}Mt.prototype={areaStart:dt,areaEnd:dt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Tt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return e?new Mt(t,e):new wt(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function Et(t,e){this._context=t,this._alpha=e}Et.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Tt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return e?new Et(t,e):new kt(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function St(t){this._context=t}St.prototype={areaStart:dt,areaEnd:dt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Nt(t){return t<0?-1:1}function Rt(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),c=(a*i+o*r)/(r+i);return(Nt(a)+Nt(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(c))||0}function Ct(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Pt(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,c=(a-r)/3;t._context.bezierCurveTo(r+c,i+c*e,a-c,o-c*n,a,o)}function jt(t){this._context=t}function At(t){this._context=new Lt(t)}function Lt(t){this._context=t}function qt(t){this._context=t}function Ft(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(i[r-1]=o[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}jt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Pt(this,this._t0,Ct(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(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;break;case 2:this._point=3,Pt(this,Ct(this,n=Rt(this,t,e)),n);break;default:Pt(this,this._t0,n=Rt(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(At.prototype=Object.create(jt.prototype)).point=function(t,e){jt.prototype.point.call(this,e,t)},Lt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}},qt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Ft(t),i=Ft(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function Dt(t,e){this._context=t,this._t=e}Dt.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 zt=function(t,e){if((i=t.length)>1)for(var n,r,i,a=1,o=t[e[0]],c=o.length;a<i;++a)for(r=o,o=t[e[a]],n=0;n<c;++n)o[n][1]+=o[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},Ut=function(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n};function It(t,e){return t[e]}var Wt=function(){var t=tt([]),e=Ut,n=zt,r=It;function i(i){var a,o,c=t.apply(this,arguments),s=i.length,u=c.length,l=new Array(u);for(a=0;a<u;++a){for(var f,h=c[a],p=l[a]=new Array(s),d=0;d<s;++d)p[d]=f=[0,+r(i[d],h,d,i)],f.data=i[d];p.key=h}for(a=0,o=e(l);a<u;++a)l[o[a]].index=a;return n(l,o),l}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:tt(ht.call(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:tt(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?Ut:"function"==typeof t?t:tt(ht.call(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?zt:t,i):n},i},$t=function(t,e){if((r=t.length)>0){for(var n,r,i,a=0,o=t[0].length;a<o;++a){for(i=n=0;n<r;++n)i+=t[n][a][1]||0;if(i)for(n=0;n<r;++n)t[n][a][1]/=i}zt(t,e)}},Bt=function(t,e){if((c=t.length)>1)for(var n,r,i,a,o,c,s=0,u=t[e[0]].length;s<u;++s)for(a=o=0,n=0;n<c;++n)(i=(r=t[e[n]][s])[1]-r[0])>=0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):r[0]=a},Yt=function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],a=i.length;r<a;++r){for(var o=0,c=0;o<n;++o)c+=t[o][r][1]||0;i[r][1]+=i[r][0]=-c/2}zt(t,e)}},Vt=function(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,a=0,o=1;o<r;++o){for(var c=0,s=0,u=0;c<i;++c){for(var l=t[e[c]],f=l[o][1]||0,h=(f-(l[o-1][1]||0))/2,p=0;p<c;++p){var d=t[e[p]];h+=(d[o][1]||0)-(d[o-1][1]||0)}s+=f,u+=h*f}n[o-1][1]+=n[o-1][0]=a,s&&(a-=u/s)}n[o-1][1]+=n[o-1][0]=a,zt(t,e)}},Ht=function(t){var e=t.map(Xt);return Ut(t).sort(function(t,n){return e[t]-e[n]})};function Xt(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}var Zt=function(t){return Ht(t).reverse()},Gt=function(t){var e,n,r=t.length,i=t.map(Xt),a=Ut(t).sort(function(t,e){return i[e]-i[t]}),o=0,c=0,s=[],u=[];for(e=0;e<r;++e)n=a[e],o<c?(o+=i[n],s.push(n)):(c+=i[n],u.push(n));return u.reverse().concat(s)},Jt=function(t){return Ut(t).reverse()};function Qt(){return(Qt=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}).apply(this,arguments)}function Kt(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function te(t){var e=t.from,n=void 0===e?new U({x:0,y:0}):e,r=t.to,a=void 0===r?new U({x:1,y:1}):r,o=t.fill,c=void 0===o?"transparent":o,s=t.className,u=void 0===s?"":s,l=t.innerRef,f=Kt(t,["from","to","fill","className","innerRef"]);return i.a.createElement("line",Qt({ref:l,className:v()("vx-line",u),x1:n.x,y1:n.y,x2:a.x,y2:a.y,fill:c},f))}s.a.string,s.a.any,s.a.func,s.a.func,s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.string,s.a.number,s.a.number,s.a.array,s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.func,s.a.func,s.a.func,te.propTypes={className:s.a.string,innerRef:s.a.func,from:s.a.shape({x:s.a.number,y:s.a.number}),to:s.a.shape({x:s.a.number,y:s.a.number})},s.a.func,s.a.array,s.a.func,s.a.oneOf([s.a.func,s.a.bool]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.func,s.a.string,s.a.any,s.a.func,s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.func,s.a.string,s.a.any,s.a.func,s.a.func,s.a.func,s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.func,s.a.string,s.a.any,s.a.func,s.a.func,s.a.func,s.a.func,s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]);var ee={ascending:Ht,descending:Zt,insideout:Gt,none:Ut,reverse:Jt};Object.keys(ee);function ne(t){return ee[t]||ee.none}var re={expand:$t,diverging:Bt,none:zt,silhouette:Yt,wiggle:Vt};Object.keys(re);function ie(t){return re[t]||re.none}function ae(t){var e=t.className,n=t.top,r=t.left,a=t.keys,o=t.data,c=t.curve,s=t.defined,u=t.x,l=t.x0,f=t.x1,h=t.y0,p=t.y1,d=t.value,m=t.order,g=t.offset,y=t.color,b=t.children,_=Kt(t,["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"]),x=Wt();a&&x.keys(a),d&&x.value(d),m&&x.order(ne(m)),g&&x.offset(ie(g));var w=ut();u&&w.x(u),l&&w.x0(l),f&&w.x1(f),h&&w.y0(h),p&&w.y1(p),c&&w.curve(c),s&&w.defined(s);var k=x(o);return b?b({stacks:k,path:w,stack:x}):i.a.createElement(H,{top:n,left:r},k.map(function(t,n){return i.a.createElement("path",Qt({className:v()("vx-stack",e),key:"stack-".concat(n,"-").concat(t.key||""),d:w(t),fill:y(t.key,n)},_))}))}function oe(t){var e=t.className,n=t.innerRef,r=Kt(t,["className","innerRef"]);return i.a.createElement("rect",Qt({ref:n,className:v()("vx-bar",e)},r))}ae.propTypes={data:s.a.array.isRequired,className:s.a.string,top:s.a.number,left:s.a.number,curve:s.a.func,color:s.a.func,keys:s.a.array,children:s.a.func,x:s.a.oneOfType([s.a.func,s.a.number]),x0:s.a.oneOfType([s.a.func,s.a.number]),x1:s.a.oneOfType([s.a.func,s.a.number]),y:s.a.oneOfType([s.a.func,s.a.number]),y0:s.a.oneOfType([s.a.func,s.a.number]),y1:s.a.oneOfType([s.a.func,s.a.number]),value:s.a.oneOfType([s.a.func,s.a.number]),defined:s.a.oneOfType([s.a.func,s.a.bool]),order:s.a.oneOfType([s.a.func,s.a.array,s.a.string]),offset:s.a.oneOfType([s.a.func,s.a.array,s.a.string])},s.a.string,s.a.number,s.a.number,s.a.array,s.a.array,s.a.func,s.a.func,s.a.func,s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.bool]),s.a.oneOfType([s.a.func,s.a.array,s.a.string]),s.a.oneOfType([s.a.func,s.a.array,s.a.string]),oe.propTypes={innerRef:s.a.func,className:s.a.string},s.a.array.isRequired,s.a.func.isRequired,s.a.func.isRequired,s.a.func.isRequired,s.a.func.isRequired,s.a.func.isRequired,s.a.array.isRequired,s.a.number.isRequired,s.a.string,s.a.number,s.a.number,s.a.func,s.a.array.isRequired,s.a.func.isRequired,s.a.func.isRequired,s.a.func.isRequired,s.a.func.isRequired,s.a.func.isRequired,s.a.array.isRequired,s.a.number.isRequired,s.a.string,s.a.func,s.a.number,s.a.number,s.a.func,s.a.array.isRequired,s.a.func.isRequired,s.a.func.isRequired,s.a.func.isRequired,s.a.func.isRequired,s.a.array.isRequired,s.a.string,s.a.number,s.a.number,s.a.func,s.a.func,s.a.func,s.a.oneOfType([s.a.func,s.a.array,s.a.string]),s.a.oneOfType([s.a.func,s.a.array,s.a.string]),s.a.oneOfType([s.a.func,s.a.number]),s.a.array.isRequired,s.a.func.isRequired,s.a.func,s.a.func,s.a.func.isRequired,s.a.func.isRequired,s.a.func.isRequired,s.a.array.isRequired,s.a.string,s.a.number,s.a.number,s.a.oneOfType([s.a.func,s.a.array,s.a.string]),s.a.oneOfType([s.a.func,s.a.array,s.a.string]),s.a.oneOfType([s.a.func,s.a.number]),s.a.func;s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.number,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.number,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.number,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.number,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.number,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.number.isRequired,s.a.number.isRequired,s.a.string,s.a.number,s.a.func,s.a.func,s.a.shape({x:s.a.number,y:s.a.number});s.a.func,s.a.string;var ce=n(4);function se(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ue(){return(ue=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}).apply(this,arguments)}function le(t){return t}var fe={top:"top",left:"left",right:"right",bottom:"bottom"};var he={axisClassName:s.a.string,axisLineClassName:s.a.string,hideAxisLine:s.a.bool,hideTicks:s.a.bool,hideZero:s.a.bool,label:s.a.string,labelClassName:s.a.string,labelOffset:s.a.number,labelProps:s.a.object,left:s.a.number,numTicks:s.a.number,orientation:s.a.oneOf([fe.top,fe.right,fe.bottom,fe.left]),rangePadding:s.a.number,scale:s.a.func.isRequired,stroke:s.a.string,strokeWidth:s.a.number,strokeDasharray:s.a.string,tickClassName:s.a.string,tickFormat:s.a.func,tickLabelProps:s.a.func,tickLength:s.a.number,tickStroke:s.a.string,tickTransform:s.a.string,tickValues:s.a.array,tickComponent:s.a.func,top:s.a.number,children:s.a.func};function pe(t){var e=t.children,n=t.axisClassName,r=t.axisLineClassName,a=t.hideAxisLine,o=void 0!==a&&a,c=t.hideTicks,s=void 0!==c&&c,u=t.hideZero,l=void 0!==u&&u,f=t.label,h=void 0===f?"":f,p=t.labelClassName,d=t.labelOffset,m=void 0===d?14:d,g=t.labelProps,y=void 0===g?{textAnchor:"middle",fontFamily:"Arial",fontSize:10,fill:"black"}:g,b=t.left,_=void 0===b?0:b,x=t.numTicks,w=void 0===x?10:x,k=t.orientation,T=void 0===k?fe.bottom:k,O=t.rangePadding,M=void 0===O?0:O,E=t.scale,S=t.stroke,N=void 0===S?"black":S,R=t.strokeWidth,C=void 0===R?1:R,P=t.strokeDasharray,j=t.tickClassName,A=t.tickFormat,L=t.tickLabelProps,q=void 0===L?function(t,e){return{textAnchor:"middle",fontFamily:"Arial",fontSize:10,fill:"black"}}:L,F=t.tickLength,D=void 0===F?8:F,z=t.tickStroke,I=void 0===z?"black":z,W=t.tickTransform,$=t.tickValues,B=t.tickComponent,Y=t.top,V=void 0===Y?0:Y,X=E.ticks?E.ticks(w):E.domain();$&&(X=$);var Z=E.tickFormat?E.tickFormat():le;A&&(Z=A);var G=E.range(),J=G[0]+.5-M,Q=G[G.length-1]+.5+M,K=T!==fe.left&&T!==fe.right,tt=T===fe.left,et=T===fe.top,nt=tt||et?-1:1,rt=(E.bandwidth?function(t){var e=t.bandwidth()/2;return t.round()&&(e=Math.round(e)),function(n){return t(n)+e}}:le)(E.copy()),it=new U({x:K?J:0,y:K?0:J}),at=new U({x:K?Q:0,y:K?0:Q}),ot=10;return e?i.a.createElement(H,{className:v()("vx-axis",n),top:V,left:_},e({axisFromPoint:it,axisToPoint:at,horizontal:K,tickSign:nt,numTicks:w,label:h,rangePadding:M,tickLength:D,tickFormat:Z,tickPosition:rt,ticks:X.map(function(t,e){return{value:t,index:e,from:new U({x:K?rt(t):0,y:K?0:rt(t)}),to:new U({x:K?rt(t):nt*D,y:K?D*nt:rt(t)}),formattedValue:Z(t,e)}})})):i.a.createElement(H,{className:v()("vx-axis",n),top:V,left:_},X.map(function(t,e){if(l&&0===t)return null;var n=new U({x:K?rt(t):0,y:K?0:rt(t)}),r=new U({x:K?rt(t):nt*D,y:K?D*nt:rt(t)}),a=q(t,e);return ot=Math.max(ot,a.fontSize||0),i.a.createElement(H,{key:"vx-tick-".concat(t,"-").concat(e),className:v()("vx-axis-tick",j),transform:W},!s&&i.a.createElement(te,{from:n,to:r,stroke:I}),B?B(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){se(t,e,n[e])})}return t}({x:r.x,y:r.y+(K&&!et?ot:0),formattedValue:Z(t,e)},a)):i.a.createElement(ce.a,ue({x:r.x,y:r.y+(K&&!et?ot:0)},a),Z(t,e)))}),!o&&i.a.createElement(te,{className:v()("vx-axis-line",r),from:it,to:at,stroke:N,strokeWidth:C,strokeDasharray:P}),h&&i.a.createElement(ce.a,ue({className:v()("vx-axis-label",p)},function(t){var e,n,r=t.labelOffset,i=t.labelProps,a=t.orientation,o=t.range,c=t.tickLabelFontSize,s=t.tickLength,u=a===fe.left||a===fe.top?-1:1,l=null;return a===fe.top||a===fe.bottom?(e=(o[0]+o[o.length-1])/2,n=u*(s+r+c+(a===fe.bottom?i.fontSize:0))):(e=u*((o[0]+o[o.length-1])/2),n=-(s+r),l="rotate(".concat(90*u,")")),{x:e,y:n,transform:l}}({labelOffset:m,labelProps:y,orientation:T,range:G,tickLabelFontSize:ot,tickLength:D}),y),h))}pe.propTypes=he;var de={axisClassName:s.a.string,axisLineClassName:s.a.string,hideAxisLine:s.a.bool,hideTicks:s.a.bool,hideZero:s.a.bool,label:s.a.string,labelClassName:s.a.string,labelOffset:s.a.number,labelProps:s.a.object,left:s.a.number,numTicks:s.a.number,rangePadding:s.a.number,scale:s.a.func.isRequired,stroke:s.a.string,strokeWidth:s.a.number,strokeDasharray:s.a.string,tickClassName:s.a.string,tickFormat:s.a.func,tickLabelProps:s.a.func,tickLength:s.a.number,tickStroke:s.a.string,tickTransform:s.a.string,tickValues:s.a.array,tickComponent:s.a.func,top:s.a.number,children:s.a.func};function me(t){var e=t.children,n=t.axisClassName,r=t.axisLineClassName,a=t.hideAxisLine,o=t.hideTicks,c=t.hideZero,s=t.label,u=t.labelClassName,l=t.labelOffset,f=void 0===l?36:l,h=t.labelProps,p=t.left,d=t.numTicks,m=t.rangePadding,g=t.scale,y=t.stroke,b=t.strokeWidth,_=t.strokeDasharray,x=t.tickClassName,w=t.tickFormat,k=t.tickLabelProps,T=void 0===k?function(t){t.tick,t.index;return{dx:"-0.25em",dy:"0.25em",fill:"black",fontFamily:"Arial",fontSize:10,textAnchor:"end"}}:k,O=t.tickLength,M=void 0===O?8:O,E=t.tickStroke,S=t.tickTransform,N=t.tickValues,R=t.tickComponent,C=t.top;return i.a.createElement(pe,{axisClassName:v()("vx-axis-left",n),axisLineClassName:r,hideAxisLine:a,hideTicks:o,hideZero:c,label:s,labelClassName:u,labelOffset:f,labelProps:h,left:p,numTicks:d,orientation:fe.left,rangePadding:m,scale:g,stroke:y,strokeWidth:b,strokeDasharray:_,tickClassName:x,tickFormat:w,tickLabelProps:T,tickLength:M,tickStroke:E,tickTransform:S,tickValues:N,tickComponent:R,top:C,children:e})}me.propTypes=de;s.a.string,s.a.string,s.a.bool,s.a.bool,s.a.bool,s.a.string,s.a.string,s.a.number,s.a.object,s.a.number,s.a.number,s.a.number,s.a.func.isRequired,s.a.string,s.a.number,s.a.string,s.a.string,s.a.func,s.a.func,s.a.number,s.a.string,s.a.string,s.a.array,s.a.func,s.a.number,s.a.func;s.a.string,s.a.string,s.a.bool,s.a.bool,s.a.bool,s.a.string,s.a.string,s.a.number,s.a.object,s.a.number,s.a.number,s.a.number,s.a.func.isRequired,s.a.string,s.a.number,s.a.string,s.a.string,s.a.func,s.a.func,s.a.number,s.a.string,s.a.string,s.a.array,s.a.func,s.a.number,s.a.func;var ge={axisClassName:s.a.string,axisLineClassName:s.a.string,hideAxisLine:s.a.bool,hideTicks:s.a.bool,hideZero:s.a.bool,label:s.a.string,labelClassName:s.a.string,labelOffset:s.a.number,labelProps:s.a.object,left:s.a.number,numTicks:s.a.number,rangePadding:s.a.number,scale:s.a.func.isRequired,stroke:s.a.string,strokeWidth:s.a.number,strokeDasharray:s.a.string,tickClassName:s.a.string,tickFormat:s.a.func,tickLabelProps:s.a.func,tickLength:s.a.number,tickStroke:s.a.string,tickTransform:s.a.string,tickValues:s.a.array,tickComponent:s.a.func,top:s.a.number,children:s.a.func};function ye(t){var e=t.children,n=t.axisClassName,r=t.axisLineClassName,a=t.hideAxisLine,o=t.hideTicks,c=t.hideZero,s=t.label,u=t.labelClassName,l=t.labelOffset,f=void 0===l?8:l,h=t.labelProps,p=t.left,d=t.numTicks,m=t.rangePadding,g=t.scale,y=t.stroke,b=t.strokeWidth,_=t.strokeDasharray,x=t.tickClassName,w=t.tickFormat,k=t.tickLabelProps,T=void 0===k?function(t){t.tick,t.index;return{dy:"0.25em",fill:"black",fontFamily:"Arial",fontSize:10,textAnchor:"middle"}}:k,O=t.tickLength,M=void 0===O?8:O,E=t.tickStroke,S=t.tickTransform,N=t.tickValues,R=t.tickComponent,C=t.top;return i.a.createElement(pe,{axisClassName:v()("vx-axis-bottom",n),axisLineClassName:r,hideAxisLine:a,hideTicks:o,hideZero:c,label:s,labelClassName:u,labelOffset:f,labelProps:h,left:p,numTicks:d,orientation:fe.bottom,rangePadding:m,scale:g,stroke:y,strokeWidth:b,strokeDasharray:_,tickClassName:x,tickFormat:w,tickLabelProps:T,tickLength:M,tickStroke:E,tickTransform:S,tickValues:N,tickComponent:R,top:C,children:e})}ye.propTypes=ge;var be=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},ve=function(t){return 1===t.length&&(t=function(t){return function(e,n){return be(t(e),n)}}(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)>0?i=a:r=a+1}return r}}};var _e=ve(be),xe=_e.right,we=(_e.left,xe);var ke=function(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o<a;)if(null!=(n=t[o])&&n>=n)for(r=i=n;++o<a;)null!=(n=t[o])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++o<a;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=i=n;++o<a;)null!=(n=e(t[o],o,t))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]},Te=Array.prototype,Oe=(Te.slice,Te.map,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)),a=new Array(i);++r<i;)a[r]=t+r*n;return a}),Me=Math.sqrt(50),Ee=Math.sqrt(10),Se=Math.sqrt(2),Ne=function(t,e,n){var r,i,a,o,c=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(o=Re(t,e,n))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++c<i;)a[c]=(t+c)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++c<i;)a[c]=(t-c)/o;return r&&a.reverse(),a};function Re(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=Me?10:a>=Ee?5:a>=Se?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=Me?10:a>=Ee?5:a>=Se?2:1)}function Ce(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=Me?i*=10:a>=Ee?i*=5:a>=Se&&(i*=2),e<t?-i:i}var Pe=function(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(n=t[a])&&n>=n)for(r=n;++a<i;)null!=(n=t[a])&&n>r&&(r=n)}else for(;++a<i;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=n;++a<i;)null!=(n=e(t[a],a,t))&&n>r&&(r=n);return r};function je(){}function Ae(t,e){var n=new je;if(t instanceof je)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++i<a;)n.set(i,t[i]);else for(;++i<a;)n.set(e(r=t[i],i,t),r)}else if(t)for(var o in t)n.set(o,t[o]);return n}je.prototype=Ae.prototype={constructor:je,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 Le=Ae;function qe(){}var Fe=Le.prototype;function De(t,e){var n=new qe;if(t instanceof qe)t.each(function(t){n.add(t)});else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}qe.prototype=De.prototype={constructor:qe,has:Fe.has,add:function(t){return this["$"+(t+="")]=t,this},remove:Fe.remove,clear:Fe.clear,values:Fe.keys,size:Fe.size,empty:Fe.empty,each:Fe.each};var ze=Array.prototype,Ue=ze.map,Ie=ze.slice,We={name:"implicit"};function $e(t){var e=Le(),n=[],r=We;function i(i){var a=i+"",o=e.get(a);if(!o){if(r!==We)return r;e.set(a,o=n.push(i))}return t[(o-1)%t.length]}return t=null==t?[]:Ie.call(t),i.domain=function(t){if(!arguments.length)return n.slice();n=[],e=Le();for(var r,a,o=-1,c=t.length;++o<c;)e.has(a=(r=t[o])+"")||e.set(a,n.push(r));return i},i.range=function(e){return arguments.length?(t=Ie.call(e),i):t.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return $e().domain(n).range(t).unknown(r)},i}function Be(){var t,e,n=$e().unknown(void 0),r=n.domain,i=n.range,a=[0,1],o=!1,c=0,s=0,u=.5;function l(){var n=r().length,l=a[1]<a[0],f=a[l-0],h=a[1-l];t=(h-f)/Math.max(1,n-c+2*s),o&&(t=Math.floor(t)),f+=(h-f-t*(n-c))*u,e=t*(1-c),o&&(f=Math.round(f),e=Math.round(e));var p=Oe(n).map(function(e){return f+t*e});return i(l?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),l()):r()},n.range=function(t){return arguments.length?(a=[+t[0],+t[1]],l()):a.slice()},n.rangeRound=function(t){return a=[+t[0],+t[1]],o=!0,l()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(o=!!t,l()):o},n.padding=function(t){return arguments.length?(c=s=Math.max(0,Math.min(1,t)),l()):c},n.paddingInner=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),l()):c},n.paddingOuter=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),l()):s},n.align=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),l()):u},n.copy=function(){return Be().domain(r()).range(a).round(o).paddingInner(c).paddingOuter(s).align(u)},l()}var Ye=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Ve(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function He(){}var Xe="\\s*([+-]?\\d+)\\s*",Ze="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ge="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Je=/^#([0-9a-f]{3})$/,Qe=/^#([0-9a-f]{6})$/,Ke=new RegExp("^rgb\\("+[Xe,Xe,Xe]+"\\)$"),tn=new RegExp("^rgb\\("+[Ge,Ge,Ge]+"\\)$"),en=new RegExp("^rgba\\("+[Xe,Xe,Xe,Ze]+"\\)$"),nn=new RegExp("^rgba\\("+[Ge,Ge,Ge,Ze]+"\\)$"),rn=new RegExp("^hsl\\("+[Ze,Ge,Ge]+"\\)$"),an=new RegExp("^hsla\\("+[Ze,Ge,Ge,Ze]+"\\)$"),on={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 cn(t){var e;return t=(t+"").trim().toLowerCase(),(e=Je.exec(t))?new hn((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=Qe.exec(t))?sn(parseInt(e[1],16)):(e=Ke.exec(t))?new hn(e[1],e[2],e[3],1):(e=tn.exec(t))?new hn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=en.exec(t))?un(e[1],e[2],e[3],e[4]):(e=nn.exec(t))?un(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=rn.exec(t))?dn(e[1],e[2]/100,e[3]/100,1):(e=an.exec(t))?dn(e[1],e[2]/100,e[3]/100,e[4]):on.hasOwnProperty(t)?sn(on[t]):"transparent"===t?new hn(NaN,NaN,NaN,0):null}function sn(t){return new hn(t>>16&255,t>>8&255,255&t,1)}function un(t,e,n,r){return r<=0&&(t=e=n=NaN),new hn(t,e,n,r)}function ln(t){return t instanceof He||(t=cn(t)),t?new hn((t=t.rgb()).r,t.g,t.b,t.opacity):new hn}function fn(t,e,n,r){return 1===arguments.length?ln(t):new hn(t,e,n,null==r?1:r)}function hn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function pn(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function dn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new gn(t,e,n,r)}function mn(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof gn)return new gn(t.h,t.s,t.l,t.opacity);if(t instanceof He||(t=cn(t)),!t)return new gn;if(t instanceof gn)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,c=a-i,s=(a+i)/2;return c?(o=e===a?(n-r)/c+6*(n<r):n===a?(r-e)/c+2:(e-n)/c+4,c/=s<.5?a+i:2-a-i,o*=60):c=s>0&&s<1?0:o,new gn(o,c,s,t.opacity)}(t):new gn(t,e,n,null==r?1:r)}function gn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function yn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Ye(He,cn,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Ye(hn,fn,Ve(He,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new hn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new hn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+pn(this.r)+pn(this.g)+pn(this.b)},toString:function(){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+")")}})),Ye(gn,mn,Ve(He,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new gn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new gn(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 hn(yn(t>=240?t-240:t+120,i,r),yn(t,i,r),yn(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}}));var bn=Math.PI/180,vn=180/Math.PI,_n=.96422,xn=1,wn=.82521,kn=4/29,Tn=6/29,On=3*Tn*Tn,Mn=Tn*Tn*Tn;function En(t){if(t instanceof Nn)return new Nn(t.l,t.a,t.b,t.opacity);if(t instanceof qn){if(isNaN(t.h))return new Nn(t.l,0,0,t.opacity);var e=t.h*bn;return new Nn(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof hn||(t=ln(t));var n,r,i=jn(t.r),a=jn(t.g),o=jn(t.b),c=Rn((.2225045*i+.7168786*a+.0606169*o)/xn);return i===a&&a===o?n=r=c:(n=Rn((.4360747*i+.3850649*a+.1430804*o)/_n),r=Rn((.0139322*i+.0971045*a+.7141733*o)/wn)),new Nn(116*c-16,500*(n-c),200*(c-r),t.opacity)}function Sn(t,e,n,r){return 1===arguments.length?En(t):new Nn(t,e,n,null==r?1:r)}function Nn(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Rn(t){return t>Mn?Math.pow(t,1/3):t/On+kn}function Cn(t){return t>Tn?t*t*t:On*(t-kn)}function Pn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function jn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function An(t){if(t instanceof qn)return new qn(t.h,t.c,t.l,t.opacity);if(t instanceof Nn||(t=En(t)),0===t.a&&0===t.b)return new qn(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*vn;return new qn(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Ln(t,e,n,r){return 1===arguments.length?An(t):new qn(t,e,n,null==r?1:r)}function qn(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}Ye(Nn,Sn,Ve(He,{brighter:function(t){return new Nn(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Nn(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new hn(Pn(3.1338561*(e=_n*Cn(e))-1.6168667*(t=xn*Cn(t))-.4906146*(n=wn*Cn(n))),Pn(-.9787684*e+1.9161415*t+.033454*n),Pn(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Ye(qn,Ln,Ve(He,{brighter:function(t){return new qn(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new qn(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return En(this).rgb()}}));var Fn=1.78277,Dn=-.29227,zn=-.90649,Un=1.97294,In=Un*zn,Wn=Un*Fn,$n=Fn*Dn- -.14861*zn;function Bn(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Yn)return new Yn(t.h,t.s,t.l,t.opacity);t instanceof hn||(t=ln(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=($n*r+In*e-Wn*n)/($n+In-Wn),a=r-i,o=(Un*(n-i)-Dn*a)/zn,c=Math.sqrt(o*o+a*a)/(Un*i*(1-i)),s=c?Math.atan2(o,a)*vn-120:NaN;return new Yn(s<0?s+360:s,c,i,t.opacity)}(t):new Yn(t,e,n,null==r?1:r)}function Yn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Vn(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Ye(Yn,Bn,Ve(He,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Yn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Yn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*bn,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new hn(255*(e+n*(-.14861*r+Fn*i)),255*(e+n*(Dn*r+zn*i)),255*(e+n*(Un*r)),this.opacity)}}));var Hn=function(t){return function(){return t}};function Xn(t,e){return function(n){return t+n*e}}function Zn(t,e){var n=e-t;return n?Xn(t,n>180||n<-180?n-360*Math.round(n/360):n):Hn(isNaN(t)?e:t)}function Gn(t){return 1==(t=+t)?Jn: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):Hn(isNaN(e)?n:e)}}function Jn(t,e){var n=e-t;return n?Xn(t,n):Hn(isNaN(t)?e:t)}var Qn=function t(e){var n=Gn(e);function r(t,e){var r=n((t=fn(t)).r,(e=fn(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=Jn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function Kn(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),c=new Array(i);for(n=0;n<i;++n)r=fn(e[n]),a[n]=r.r||0,o[n]=r.g||0,c[n]=r.b||0;return a=t(a),o=t(o),c=t(c),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=c(t),r+""}}}Kn(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,c=r<e-1?t[r+2]:2*a-i;return Vn((n-r/e)*e,o,i,a,c)}}),Kn(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],a=t[r%e],o=t[(r+1)%e],c=t[(r+2)%e];return Vn((n-r/e)*e,i,a,o,c)}});var tr=function(t,e){return e-=t=+t,function(n){return t+e*n}},er=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,nr=new RegExp(er.source,"g");var rr,ir,ar,or,cr=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?Hn(e):("number"===r?tr:"string"===r?(n=cn(e))?(e=n,Qn):function(t,e){var n,r,i,a=er.lastIndex=nr.lastIndex=0,o=-1,c=[],s=[];for(t+="",e+="";(n=er.exec(t))&&(r=nr.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),c[o]?c[o]+=i:c[++o]=i),(n=n[0])===(r=r[0])?c[o]?c[o]+=r:c[++o]=r:(c[++o]=null,s.push({i:o,x:tr(n,r)})),a=nr.lastIndex;return a<e.length&&(i=e.slice(a),c[o]?c[o]+=i:c[++o]=i),c.length<2?s[0]?function(t){return function(e){return t(e)+""}}(s[0].x):function(t){return function(){return t}}(e):(e=s.length,function(t){for(var n,r=0;r<e;++r)c[(n=s[r]).i]=n.x(t);return c.join("")})}:e instanceof cn?Qn:e instanceof Date?function(t,e){var n=new Date;return e-=t=+t,function(r){return n.setTime(t+e*r),n}}:Array.isArray(e)?function(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=cr(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}}:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?function(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]=cr(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}:tr)(t,e)},sr=function(t,e){return e-=t=+t,function(n){return Math.round(t+e*n)}},ur=180/Math.PI,lr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},fr=function(t,e,n,r,i,a){var o,c,s;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(s=t*n+e*r)&&(n-=t*s,r-=e*s),(c=Math.sqrt(n*n+r*r))&&(n/=c,r/=c,s/=c),t*r<e*n&&(t=-t,e=-e,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*ur,skewX:Math.atan(s)*ur,scaleX:o,scaleY:c}};function hr(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var c=[],s=[];return a=t(a),o=t(o),function(t,r,i,a,o,c){if(t!==i||r!==a){var s=o.push("translate(",null,e,null,n);c.push({i:s-4,x:tr(t,i)},{i:s-2,x:tr(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,c,s),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:tr(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,c,s),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:tr(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,c,s),function(t,e,n,r,a,o){if(t!==n||e!==r){var c=a.push(i(a)+"scale(",null,",",null,")");o.push({i:c-4,x:tr(t,n)},{i:c-2,x:tr(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,c,s),a=o=null,function(t){for(var e,n=-1,r=s.length;++n<r;)c[(e=s[n]).i]=e.x(t);return c.join("")}}}hr(function(t){return"none"===t?lr:(rr||(rr=document.createElement("DIV"),ir=document.documentElement,ar=document.defaultView),rr.style.transform=t,t=ar.getComputedStyle(ir.appendChild(rr),null).getPropertyValue("transform"),ir.removeChild(rr),t=t.slice(7,-1).split(","),fr(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),hr(function(t){return null==t?lr:(or||(or=document.createElementNS("http://www.w3.org/2000/svg","g")),or.setAttribute("transform",t),(t=or.transform.baseVal.consolidate())?(t=t.matrix,fr(t.a,t.b,t.c,t.d,t.e,t.f)):lr)},", ",")",")"),Math.SQRT2;function pr(t){return function(e,n){var r=t((e=mn(e)).h,(n=mn(n)).h),i=Jn(e.s,n.s),a=Jn(e.l,n.l),o=Jn(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=a(t),e.opacity=o(t),e+""}}}pr(Zn),pr(Jn);function dr(t){return function(e,n){var r=t((e=Ln(e)).h,(n=Ln(n)).h),i=Jn(e.c,n.c),a=Jn(e.l,n.l),o=Jn(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}dr(Zn),dr(Jn);function mr(t){return function e(n){function r(e,r){var i=t((e=Bn(e)).h,(r=Bn(r)).h),a=Jn(e.s,r.s),o=Jn(e.l,r.l),c=Jn(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(Math.pow(t,n)),e.opacity=c(t),e+""}}return n=+n,r.gamma=e,r}(1)}mr(Zn),mr(Jn);var gr=function(t){return function(){return t}},yr=function(t){return+t},br=[0,1];function vr(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:gr(e)}function _r(t,e,n,r){var i=t[0],a=t[1],o=e[0],c=e[1];return a<i?(i=n(a,i),o=r(c,o)):(i=n(i,a),o=r(o,c)),function(t){return o(i(t))}}function xr(t,e,n,r){var i=Math.min(t.length,e.length)-1,a=new Array(i),o=new Array(i),c=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++c<i;)a[c]=n(t[c],t[c+1]),o[c]=r(e[c],e[c+1]);return function(e){var n=we(t,e,1,i)-1;return o[n](a[n](e))}}function wr(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function kr(t,e){var n,r,i,a=br,o=br,c=cr,s=!1;function u(){return n=Math.min(a.length,o.length)>2?xr:_r,r=i=null,l}function l(e){return(r||(r=n(a,o,s?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,c)))(+e)}return l.invert=function(t){return(i||(i=n(o,a,vr,s?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)},l.domain=function(t){return arguments.length?(a=Ue.call(t,yr),u()):a.slice()},l.range=function(t){return arguments.length?(o=Ie.call(t),u()):o.slice()},l.rangeRound=function(t){return o=Ie.call(t),c=sr,u()},l.clamp=function(t){return arguments.length?(s=!!t,u()):s},l.interpolate=function(t){return arguments.length?(c=t,u()):c},u()}var Tr=function(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)]},Or=function(t){return(t=Tr(Math.abs(t)))?t[1]:NaN},Mr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Er(t){return new Sr(t)}function Sr(t){if(!(e=Mr.exec(t)))throw new Error("invalid format: "+t);var e;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}Er.prototype=Sr.prototype,Sr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Nr,Rr,Cr,Pr,jr=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(i>0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(e+1):t},Ar=function(t,e){var n=Tr(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")},Lr={"%":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.round(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 Ar(100*t,e)},r:Ar,s:function(t,e){var n=Tr(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(Nr=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Tr(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},qr=function(t){return t},Fr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Dr=function(t){var e=t.grouping&&t.thousands?function(t,e){return function(n,r){for(var i=n.length,a=[],o=0,c=t[0],s=0;i>0&&c>0&&(s+c+1>r&&(c=Math.max(1,r-s)),a.push(n.substring(i-=c,i+c)),!((s+=c+1)>r));)c=t[o=(o+1)%t.length];return a.reverse().join(e)}}(t.grouping,t.thousands):qr,n=t.currency,r=t.decimal,i=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):qr,a=t.percent||"%";function o(t){var o=(t=Er(t)).fill,c=t.align,s=t.sign,u=t.symbol,l=t.zero,f=t.width,h=t.comma,p=t.precision,d=t.trim,m=t.type;"n"===m?(h=!0,m="g"):Lr[m]||(null==p&&(p=12),d=!0,m="g"),(l||"0"===o&&"="===c)&&(l=!0,o="0",c="=");var g="$"===u?n[0]:"#"===u&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",y="$"===u?n[1]:/[%p]/.test(m)?a:"",b=Lr[m],v=/[defgprs%]/.test(m);function _(t){var n,a,u,_=g,x=y;if("c"===m)x=b(t)+x,t="";else{var w=(t=+t)<0;if(t=b(Math.abs(t),p),d&&(t=jr(t)),w&&0==+t&&(w=!1),_=(w?"("===s?s:"-":"-"===s||"("===s?"":s)+_,x=("s"===m?Fr[8+Nr/3]:"")+x+(w&&"("===s?")":""),v)for(n=-1,a=t.length;++n<a;)if(48>(u=t.charCodeAt(n))||u>57){x=(46===u?r+t.slice(n+1):t.slice(n))+x,t=t.slice(0,n);break}}h&&!l&&(t=e(t,1/0));var k=_.length+t.length+x.length,T=k<f?new Array(f-k+1).join(o):"";switch(h&&l&&(t=e(T+t,T.length?f-x.length:1/0),T=""),c){case"<":t=_+t+x+T;break;case"=":t=_+T+t+x;break;case"^":t=T.slice(0,k=T.length>>1)+_+t+x+T.slice(k);break;default:t=T+_+t+x}return i(t)}return p=null==p?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),_.toString=function(){return t+""},_}return{format:o,formatPrefix:function(t,e){var n=o(((t=Er(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Or(e)/3))),i=Math.pow(10,-r),a=Fr[8+r/3];return function(t){return n(i*t)+a}}}};!function(t){Rr=Dr(t),Cr=Rr.format,Pr=Rr.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var zr=function(t,e,n){var r,i=t[0],a=t[t.length-1],o=Ce(i,a,null==e?10:e);switch((n=Er(null==n?",f":n)).type){case"s":var c=Math.max(Math.abs(i),Math.abs(a));return null!=n.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Or(e)/3)))-Or(Math.abs(t)))}(o,c))||(n.precision=r),Pr(n,c);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,Or(e)-Or(t))+1}(o,Math.max(Math.abs(i),Math.abs(a))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(t){return Math.max(0,-Or(Math.abs(t)))}(o))||(n.precision=r-2*("%"===n.type))}return Cr(n)};function Ur(t){var e=t.domain;return t.ticks=function(t){var n=e();return Ne(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return zr(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,o=i.length-1,c=i[a],s=i[o];return s<c&&(r=c,c=s,s=r,r=a,a=o,o=r),(r=Re(c,s,n))>0?r=Re(c=Math.floor(c/r)*r,s=Math.ceil(s/r)*r,n):r<0&&(r=Re(c=Math.ceil(c*r)/r,s=Math.floor(s*r)/r,n)),r>0?(i[a]=Math.floor(c/r)*r,i[o]=Math.ceil(s/r)*r,e(i)):r<0&&(i[a]=Math.ceil(c*r)/r,i[o]=Math.floor(s*r)/r,e(i)),t},t}var Ir=new Date,Wr=new Date;function $r(t,e,n,r){function i(e){return t(e=new Date(+e)),e}return i.floor=i,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,a){var o,c=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return c;do{c.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<r);return c},i.filter=function(n){return $r(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 Ir.setTime(+e),Wr.setTime(+r),t(Ir),t(Wr),Math.floor(n(Ir,Wr))},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 Br=$r(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Br.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?$r(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):Br:null};Br.range;var Yr=6e4,Vr=6048e5,Hr=$r(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),Xr=(Hr.range,$r(function(t){t.setTime(Math.floor(t/Yr)*Yr)},function(t,e){t.setTime(+t+e*Yr)},function(t,e){return(e-t)/Yr},function(t){return t.getMinutes()})),Zr=(Xr.range,$r(function(t){var e=t.getTimezoneOffset()*Yr%36e5;e<0&&(e+=36e5),t.setTime(36e5*Math.floor((+t-e)/36e5)+e)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()})),Gr=(Zr.range,$r(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Yr)/864e5},function(t){return t.getDate()-1})),Jr=Gr;Gr.range;function Qr(t){return $r(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-(e.getTimezoneOffset()-t.getTimezoneOffset())*Yr)/Vr})}var Kr=Qr(0),ti=Qr(1),ei=Qr(2),ni=Qr(3),ri=Qr(4),ii=Qr(5),ai=Qr(6),oi=(Kr.range,ti.range,ei.range,ni.range,ri.range,ii.range,ai.range,$r(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),ci=(oi.range,$r(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()}));ci.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$r(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 si=ci,ui=(ci.range,$r(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*Yr)},function(t,e){return(e-t)/Yr},function(t){return t.getUTCMinutes()})),li=(ui.range,$r(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()})),fi=(li.range,$r(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})),hi=fi;fi.range;function pi(t){return $r(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)/Vr})}var di=pi(0),mi=pi(1),gi=pi(2),yi=pi(3),bi=pi(4),vi=pi(5),_i=pi(6),xi=(di.range,mi.range,gi.range,yi.range,bi.range,vi.range,_i.range,$r(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()})),wi=(xi.range,$r(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()}));wi.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$r(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 ki=wi;wi.range;function Ti(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 Oi(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 Mi(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var Ei,Si,Ni,Ri={"-":"",_:" ",0:"0"},Ci=/^\s*\d+/,Pi=/^%/,ji=/[\\^$*+?|[\]().{}]/g;function Ai(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(e)+i:i)}function Li(t){return t.replace(ji,"\\$&")}function qi(t){return new RegExp("^(?:"+t.map(Li).join("|")+")","i")}function Fi(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function Di(t,e,n){var r=Ci.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function zi(t,e,n){var r=Ci.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Ui(t,e,n){var r=Ci.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Ii(t,e,n){var r=Ci.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Wi(t,e,n){var r=Ci.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function $i(t,e,n){var r=Ci.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Bi(t,e,n){var r=Ci.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Yi(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 Vi(t,e,n){var r=Ci.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Hi(t,e,n){var r=Ci.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Xi(t,e,n){var r=Ci.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Zi(t,e,n){var r=Ci.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Gi(t,e,n){var r=Ci.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Ji(t,e,n){var r=Ci.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Qi(t,e,n){var r=Ci.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ki(t,e,n){var r=Ci.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ta(t,e,n){var r=Pi.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function ea(t,e,n){var r=Ci.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function na(t,e,n){var r=Ci.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function ra(t,e){return Ai(t.getDate(),e,2)}function ia(t,e){return Ai(t.getHours(),e,2)}function aa(t,e){return Ai(t.getHours()%12||12,e,2)}function oa(t,e){return Ai(1+Jr.count(si(t),t),e,3)}function ca(t,e){return Ai(t.getMilliseconds(),e,3)}function sa(t,e){return ca(t,e)+"000"}function ua(t,e){return Ai(t.getMonth()+1,e,2)}function la(t,e){return Ai(t.getMinutes(),e,2)}function fa(t,e){return Ai(t.getSeconds(),e,2)}function ha(t){var e=t.getDay();return 0===e?7:e}function pa(t,e){return Ai(Kr.count(si(t),t),e,2)}function da(t,e){var n=t.getDay();return t=n>=4||0===n?ri(t):ri.ceil(t),Ai(ri.count(si(t),t)+(4===si(t).getDay()),e,2)}function ma(t){return t.getDay()}function ga(t,e){return Ai(ti.count(si(t),t),e,2)}function ya(t,e){return Ai(t.getFullYear()%100,e,2)}function ba(t,e){return Ai(t.getFullYear()%1e4,e,4)}function va(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ai(e/60|0,"0",2)+Ai(e%60,"0",2)}function _a(t,e){return Ai(t.getUTCDate(),e,2)}function xa(t,e){return Ai(t.getUTCHours(),e,2)}function wa(t,e){return Ai(t.getUTCHours()%12||12,e,2)}function ka(t,e){return Ai(1+hi.count(ki(t),t),e,3)}function Ta(t,e){return Ai(t.getUTCMilliseconds(),e,3)}function Oa(t,e){return Ta(t,e)+"000"}function Ma(t,e){return Ai(t.getUTCMonth()+1,e,2)}function Ea(t,e){return Ai(t.getUTCMinutes(),e,2)}function Sa(t,e){return Ai(t.getUTCSeconds(),e,2)}function Na(t){var e=t.getUTCDay();return 0===e?7:e}function Ra(t,e){return Ai(di.count(ki(t),t),e,2)}function Ca(t,e){var n=t.getUTCDay();return t=n>=4||0===n?bi(t):bi.ceil(t),Ai(bi.count(ki(t),t)+(4===ki(t).getUTCDay()),e,2)}function Pa(t){return t.getUTCDay()}function ja(t,e){return Ai(mi.count(ki(t),t),e,2)}function Aa(t,e){return Ai(t.getUTCFullYear()%100,e,2)}function La(t,e){return Ai(t.getUTCFullYear()%1e4,e,4)}function qa(){return"+0000"}function Fa(){return"%"}function Da(t){return+t}function za(t){return Math.floor(+t/1e3)}!function(t){Ei=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,c=t.months,s=t.shortMonths,u=qi(i),l=Fi(i),f=qi(a),h=Fi(a),p=qi(o),d=Fi(o),m=qi(c),g=Fi(c),y=qi(s),b=Fi(s),v={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:ra,e:ra,f:sa,H:ia,I:aa,j:oa,L:ca,m:ua,M:la,p:function(t){return i[+(t.getHours()>=12)]},Q:Da,s:za,S:fa,u:ha,U:pa,V:da,w:ma,W:ga,x:null,X:null,y:ya,Y:ba,Z:va,"%":Fa},_={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:_a,e:_a,f:Oa,H:xa,I:wa,j:ka,L:Ta,m:Ma,M:Ea,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:Da,s:za,S:Sa,u:Na,U:Ra,V:Ca,w:Pa,W:ja,x:null,X:null,y:Aa,Y:La,Z:qa,"%":Fa},x={a:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=b[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return T(t,e,n,r)},d:Hi,e:Hi,f:Ki,H:Zi,I:Zi,j:Xi,L:Qi,m:Vi,M:Gi,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1},Q:ea,s:na,S:Ji,u:zi,U:Ui,V:Ii,w:Di,W:Wi,x:function(t,e,r){return T(t,n,e,r)},X:function(t,e,n){return T(t,r,e,n)},y:Bi,Y:$i,Z:Yi,"%":ta};function w(t,e){return function(n){var r,i,a,o=[],c=-1,s=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++c<u;)37===t.charCodeAt(c)&&(o.push(t.slice(s,c)),null!=(i=Ri[r=t.charAt(++c)])?r=t.charAt(++c):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),o.push(r),s=c+1);return o.push(t.slice(s,c)),o.join("")}}function k(t,e){return function(n){var r,i,a=Mi(1900);if(T(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("p"in a&&(a.H=a.H%12+12*a.p),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=(r=Oi(Mi(a.y))).getUTCDay())>4||0===i?mi.ceil(r):mi(r),r=hi.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(i=(r=e(Mi(a.y))).getDay())>4||0===i?ti.ceil(r):ti(r),r=Jr.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?Oi(Mi(a.y)).getUTCDay():e(Mi(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Oi(a)):e(a)}}function T(t,e,n,r){for(var i,a,o=0,c=e.length,s=n.length;o<c;){if(r>=s)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=x[i in Ri?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return v.x=w(n,v),v.X=w(r,v),v.c=w(e,v),_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),{format:function(t){var e=w(t+="",v);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",Ti);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t,Oi);return e.toString=function(){return t},e}}}(t),Ei.format,Ei.parse,Si=Ei.utcFormat,Ni=Ei.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"]});Date.prototype.toISOString||Si("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Ni("%Y-%m-%dT%H:%M:%S.%LZ");var Ua=function(t){var e=t.range,n=t.rangeRound,r=t.domain,i=t.padding,a=t.paddingInner,o=t.paddingOuter,c=t.align,s=t.tickFormat,u=Be();return u.type="band",e&&u.range(e),n&&u.rangeRound(n),r&&u.domain(r),i&&u.padding(i),a&&u.paddingInner(a),o&&u.paddingOuter(o),c&&u.align(c),s&&(u.tickFormat=s),u},Ia=function(t){var e=t.range,n=t.rangeRound,r=t.domain,i=t.nice,a=void 0!==i&&i,o=t.clamp,c=void 0!==o&&o,s=function t(){var e=kr(vr,tr);return e.copy=function(){return wr(e,t())},Ur(e)}();return s.type="linear",e&&s.range(e),n&&s.rangeRound(n),r&&s.domain(r),a&&s.nice(),c&&s.clamp(!0),s},Wa=function(t){var e=t.range,n=t.domain,r=t.unknown,i=$e();return i.type="ordinal",e&&i.range(e),n&&i.domain(n),r&&i.unknown(r),i};Object.prototype.hasOwnProperty;function $a(){return($a=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}).apply(this,arguments)}function Ba(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Ya(t){var e=t.top,n=void 0===e?0:e,r=t.left,a=void 0===r?0:r,o=t.transform,c=t.className,s=t.children,u=Ba(t,["top","left","transform","className","children"]);return i.a.createElement("g",$a({className:v()("vx-group",c),transform:o||"translate(".concat(a,", ").concat(n,")")},u),s)}function Va(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)}}Ya.propTypes={top:s.a.number,left:s.a.number,transform:s.a.string,className:s.a.string,children:s.a.any};var Ha=function(){function t(e){var n=e.x,r=void 0===n?0:n,i=e.y,a=void 0===i?0:i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=r,this.y=a}return function(t,e,n){e&&Va(t.prototype,e),n&&Va(t,n)}(t,[{key:"value",value:function(){return{x:this.x,y:this.y}}},{key:"toArray",value:function(){return[this.x,this.y]}}]),t}();function Xa(){return(Xa=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}).apply(this,arguments)}function Za(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Ga(t){var e=t.from,n=void 0===e?new Ha({x:0,y:0}):e,r=t.to,a=void 0===r?new Ha({x:1,y:1}):r,o=t.fill,c=void 0===o?"transparent":o,s=t.className,u=void 0===s?"":s,l=t.innerRef,f=Za(t,["from","to","fill","className","innerRef"]);return i.a.createElement("line",Xa({ref:l,className:v()("vx-line",u),x1:n.x,y1:n.y,x2:a.x,y2:a.y,fill:c},f))}function Ja(t){var e=t.children,n=t.data,r=t.x,a=t.y,o=t.fill,c=void 0===o?"transparent":o,s=t.className,u=t.curve,l=t.innerRef,f=t.defined,h=void 0===f?function(){return!0}:f,p=Za(t,["children","data","x","y","fill","className","curve","innerRef","defined"]),d=st();return r&&d.x(r),a&&d.y(a),h&&d.defined(h),u&&d.curve(u),e?e({path:d}):i.a.createElement("path",Xa({ref:l,className:v()("vx-linepath",s),d:d(n),fill:c},p))}s.a.string,s.a.any,s.a.func,s.a.func,s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.string,s.a.number,s.a.number,s.a.array,s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.func,s.a.func,s.a.func,Ga.propTypes={className:s.a.string,innerRef:s.a.func,from:s.a.shape({x:s.a.number,y:s.a.number}),to:s.a.shape({x:s.a.number,y:s.a.number})},Ja.propTypes={innerRef:s.a.func,data:s.a.array,curve:s.a.func,defined:s.a.oneOf([s.a.func,s.a.bool]),x:s.a.oneOfType([s.a.func,s.a.number]),y:s.a.oneOfType([s.a.func,s.a.number])},s.a.func,s.a.string,s.a.any,s.a.func,s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.func,s.a.string,s.a.any,s.a.func,s.a.func,s.a.func,s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.func,s.a.string,s.a.any,s.a.func,s.a.func,s.a.func,s.a.func,s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]);var Qa={ascending:Ht,descending:Zt,insideout:Gt,none:Ut,reverse:Jt};Object.keys(Qa);function Ka(t){return Qa[t]||Qa.none}var to={expand:$t,diverging:Bt,none:zt,silhouette:Yt,wiggle:Vt};Object.keys(to);function eo(t){return to[t]||to.none}function no(t){var e=t.className,n=t.top,r=t.left,a=t.keys,o=t.data,c=t.curve,s=t.defined,u=t.x,l=t.x0,f=t.x1,h=t.y0,p=t.y1,d=t.value,m=t.order,g=t.offset,y=t.color,b=t.children,_=Za(t,["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"]),x=Wt();a&&x.keys(a),d&&x.value(d),m&&x.order(Ka(m)),g&&x.offset(eo(g));var w=ut();u&&w.x(u),l&&w.x0(l),f&&w.x1(f),h&&w.y0(h),p&&w.y1(p),c&&w.curve(c),s&&w.defined(s);var k=x(o);return b?b({stacks:k,path:w,stack:x}):i.a.createElement(Ya,{top:n,left:r},k.map(function(t,n){return i.a.createElement("path",Xa({className:v()("vx-stack",e),key:"stack-".concat(n,"-").concat(t.key||""),d:w(t),fill:y(t.key,n)},_))}))}function ro(t){var e=t.className,n=t.innerRef,r=Za(t,["className","innerRef"]);return i.a.createElement("rect",Xa({ref:n,className:v()("vx-bar",e)},r))}function io(t,e){return!!t[e]&&"function"==typeof t[e]}function ao(t){var e=t.data,n=t.className,r=t.top,a=t.left,o=t.x0,c=t.x0Scale,s=t.x1Scale,u=t.yScale,l=t.color,f=t.keys,h=t.height,p=t.children,d=Za(t,["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"]),m=s.range(),g=s.domain(),y=io(s,"bandwidth")?s.bandwidth():Math.abs(m[m.length-1]-m[0])/g.length,b=e.map(function(t,e){return{index:e,x0:c(o(t)),bars:f.map(function(e,n){var r=t[e];return{index:n,key:e,value:r,width:y,x:s(e),y:u(r),color:l(e,n),height:h-u(r)}})}});return p?p(b):i.a.createElement(Ya,{className:v()("vx-bar-group",n),top:r,left:a},b.map(function(t){return i.a.createElement(Ya,{key:"bar-group-".concat(t.index,"-").concat(t.x0),left:t.x0},t.bars.map(function(e){return i.a.createElement(ro,Xa({key:"bar-group-bar-".concat(t.index,"-").concat(e.index,"-").concat(e.value,"-").concat(e.key),x:e.x,y:e.y,width:e.width,height:e.height,fill:e.color},d))}))}))}function oo(t){var e=t.data,n=t.className,r=t.top,a=t.left,o=t.x,c=void 0===o?function(t){return 0}:o,s=t.y0,u=t.y0Scale,l=t.y1Scale,f=t.xScale,h=t.color,p=t.keys,d=t.width,m=t.children,g=Za(t,["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"]),y=l.range(),b=l.domain(),_=io(l,"bandwidth")?l.bandwidth():Math.abs(y[y.length-1]-y[0])/b.length,x=e.map(function(t,e){return{index:e,y0:u(s(t)),bars:p.map(function(e,n){var r=t[e];return{index:n,key:e,value:r,height:_,x:c(r),y:l(e),color:h(e,n),width:d-f(r)}})}});return m?m(x):i.a.createElement(Ya,{className:v()("vx-bar-group-horizontal",n),top:r,left:a},x.map(function(t){return i.a.createElement(Ya,{key:"bar-group-".concat(t.index,"-").concat(t.y0),top:t.y0},t.bars.map(function(e){return i.a.createElement(ro,Xa({key:"bar-group-bar-".concat(t.index,"-").concat(e.index,"-").concat(e.value,"-").concat(e.key),x:e.x,y:e.y,width:e.width,height:e.height,fill:e.color},g))}))}))}function co(t){var e=t.data,n=t.className,r=t.top,a=t.left,o=t.y,c=t.x0,s=void 0===c?function(t){return t[0]}:c,u=t.x1,l=void 0===u?function(t){return t[1]}:u,f=t.xScale,h=t.yScale,p=t.color,d=t.keys,m=t.value,g=t.order,y=t.offset,b=t.children,_=Za(t,["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"]),x=Wt();d&&x.keys(d),m&&x.value(m),g&&x.order(Ka(g)),y&&x.offset(eo(y));var w=x(e),k=h.range(),T=h.domain(),O=io(h,"bandwidth")?h.bandwidth():Math.abs(k[k.length-1]-k[0])/T.length,M=w.map(function(t,e){var n=t.key;return{index:e,key:n,bars:t.map(function(e,r){var i=f(l(e))-f(s(e)),a=f(s(e)),c=io(h,"bandwidth")?h(o(e.data)):Math.max(h(o(e.data))-i/2);return{bar:e,key:n,index:r,height:O,width:i,x:a,y:c,color:p(t.key,r)}})}});return b?b(M):i.a.createElement(Ya,{className:v()("vx-bar-stack-horizontal",n),top:r,left:a},M.map(function(t){return t.bars.map(function(e){return i.a.createElement(ro,Xa({key:"bar-stack-".concat(t.index,"-").concat(e.index),x:e.x,y:e.y,height:e.height,width:e.width,fill:e.color},_))})}))}no.propTypes={data:s.a.array.isRequired,className:s.a.string,top:s.a.number,left:s.a.number,curve:s.a.func,color:s.a.func,keys:s.a.array,children:s.a.func,x:s.a.oneOfType([s.a.func,s.a.number]),x0:s.a.oneOfType([s.a.func,s.a.number]),x1:s.a.oneOfType([s.a.func,s.a.number]),y:s.a.oneOfType([s.a.func,s.a.number]),y0:s.a.oneOfType([s.a.func,s.a.number]),y1:s.a.oneOfType([s.a.func,s.a.number]),value:s.a.oneOfType([s.a.func,s.a.number]),defined:s.a.oneOfType([s.a.func,s.a.bool]),order:s.a.oneOfType([s.a.func,s.a.array,s.a.string]),offset:s.a.oneOfType([s.a.func,s.a.array,s.a.string])},s.a.string,s.a.number,s.a.number,s.a.array,s.a.array,s.a.func,s.a.func,s.a.func,s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.number]),s.a.oneOfType([s.a.func,s.a.bool]),s.a.oneOfType([s.a.func,s.a.array,s.a.string]),s.a.oneOfType([s.a.func,s.a.array,s.a.string]),ro.propTypes={innerRef:s.a.func,className:s.a.string},ao.propTypes={data:s.a.array.isRequired,x0:s.a.func.isRequired,x0Scale:s.a.func.isRequired,x1Scale:s.a.func.isRequired,yScale:s.a.func.isRequired,color:s.a.func.isRequired,keys:s.a.array.isRequired,height:s.a.number.isRequired,className:s.a.string,top:s.a.number,left:s.a.number,children:s.a.func},oo.propTypes={data:s.a.array.isRequired,y0:s.a.func.isRequired,y0Scale:s.a.func.isRequired,y1Scale:s.a.func.isRequired,xScale:s.a.func.isRequired,color:s.a.func.isRequired,keys:s.a.array.isRequired,width:s.a.number.isRequired,className:s.a.string,x:s.a.func,top:s.a.number,left:s.a.number,children:s.a.func},s.a.array.isRequired,s.a.func.isRequired,s.a.func.isRequired,s.a.func.isRequired,s.a.func.isRequired,s.a.array.isRequired,s.a.string,s.a.number,s.a.number,s.a.func,s.a.func,s.a.func,s.a.oneOfType([s.a.func,s.a.array,s.a.string]),s.a.oneOfType([s.a.func,s.a.array,s.a.string]),s.a.oneOfType([s.a.func,s.a.number]),co.propTypes={data:s.a.array.isRequired,y:s.a.func.isRequired,x0:s.a.func,x1:s.a.func,xScale:s.a.func.isRequired,yScale:s.a.func.isRequired,color:s.a.func.isRequired,keys:s.a.array.isRequired,className:s.a.string,top:s.a.number,left:s.a.number,order:s.a.oneOfType([s.a.func,s.a.array,s.a.string]),offset:s.a.oneOfType([s.a.func,s.a.array,s.a.string]),value:s.a.oneOfType([s.a.func,s.a.number]),children:s.a.func};s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.number,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.number,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.number,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.number,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.number,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.number.isRequired,s.a.number.isRequired,s.a.string,s.a.number,s.a.func,s.a.func,s.a.shape({x:s.a.number,y:s.a.number});function so(){return(so=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}).apply(this,arguments)}function uo(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function lo(t){var e=t.top,n=void 0===e?0:e,r=t.left,a=void 0===r?0:r,o=t.scale,c=t.width,s=t.stroke,u=void 0===s?"#eaf0f6":s,l=t.strokeWidth,f=void 0===l?1:l,h=t.strokeDasharray,p=t.className,d=t.numTicks,m=void 0===d?10:d,g=t.lineStyle,y=t.offset,b=t.tickValues,_=uo(t,["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues"]),x=o.ticks?o.ticks(m):o.domain();return b&&(x=b),i.a.createElement(B,{className:v()("vx-rows",p),top:n,left:a},x.map(function(t,e){var n=y?o(t)+y:o(t),r=new U({x:0,y:n}),a=new U({x:c,y:n});return i.a.createElement(Ga,so({key:"row-line-".concat(t,"-").concat(e),from:r,to:a,stroke:u,strokeWidth:f,strokeDasharray:h,style:g},_))}))}function fo(t){var e=t.top,n=void 0===e?0:e,r=t.left,a=void 0===r?0:r,o=t.scale,c=t.height,s=t.stroke,u=void 0===s?"#eaf0f6":s,l=t.strokeWidth,f=void 0===l?1:l,h=t.strokeDasharray,p=t.className,d=t.numTicks,m=void 0===d?10:d,g=t.lineStyle,y=t.offset,b=t.tickValues,_=uo(t,["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues"]),x=o.ticks?o.ticks(m):o.domain();return b&&(x=b),i.a.createElement(B,{className:v()("vx-columns",p),top:n,left:a},x.map(function(t,e){var n=y?o(t)+y:o(t),r=new U({x:n,y:0}),a=new U({x:n,y:c});return i.a.createElement(Ga,so({key:"column-line-".concat(t,"-").concat(e),from:r,to:a,stroke:u,strokeWidth:f,strokeDasharray:h,style:g},_))}))}function ho(t){var e=t.top,n=t.left,r=t.xScale,a=t.yScale,o=t.width,c=t.height,s=t.className,u=t.stroke,l=t.strokeWidth,f=t.strokeDasharray,h=t.numTicksRows,p=t.numTicksColumns,d=t.rowLineStyle,m=t.columnLineStyle,g=t.xOffset,y=t.yOffset,b=t.rowTickValues,_=t.columnTickValues,x=uo(t,["top","left","xScale","yScale","width","height","className","stroke","strokeWidth","strokeDasharray","numTicksRows","numTicksColumns","rowLineStyle","columnLineStyle","xOffset","yOffset","rowTickValues","columnTickValues"]);return i.a.createElement(B,{className:v()("vx-grid",s),top:e,left:n},i.a.createElement(lo,so({className:s,scale:a,width:o,stroke:u,strokeWidth:l,strokeDasharray:f,numTicks:h,style:d,offset:y,tickValues:b},x)),i.a.createElement(fo,so({className:s,scale:r,height:c,stroke:u,strokeWidth:l,strokeDasharray:f,numTicks:p,style:m,offset:g,tickValues:_},x)))}function po(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mo(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)}}function go(t,e,n){return e&&mo(t.prototype,e),n&&mo(t,n),t}function yo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){yo(t,e,n[e])})}return t}function vo(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&function(t,e){(Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}(t,e)}function _o(t){return(_o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function xo(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function wo(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ko(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?wo(t):e}s.a.func,s.a.string,lo.propTypes={top:s.a.number,left:s.a.number,className:s.a.string,stroke:s.a.string,strokeWidth:s.a.oneOfType([s.a.string,s.a.number]),strokeDasharray:s.a.string,numTicks:s.a.number,lineStyle:s.a.object,offset:s.a.number,scale:s.a.func.isRequired,width:s.a.number.isRequired,tickValues:s.a.array},fo.propTypes={top:s.a.number,left:s.a.number,className:s.a.string,stroke:s.a.string,strokeWidth:s.a.oneOfType([s.a.string,s.a.number]),strokeDasharray:s.a.string,numTicks:s.a.number,lineStyle:s.a.object,offset:s.a.number,scale:s.a.func.isRequired,height:s.a.number.isRequired,tickValues:s.a.array},ho.propTypes={top:s.a.number,left:s.a.number,className:s.a.string,stroke:s.a.string,strokeWidth:s.a.oneOfType([s.a.string,s.a.number]),strokeDasharray:s.a.string,numTicksRows:s.a.number,numTicksColumns:s.a.number,rowLineStyle:s.a.object,columnLineStyle:s.a.object,xOffset:s.a.number,yOffset:s.a.number,xScale:s.a.func.isRequired,yScale:s.a.func.isRequired,height:s.a.number.isRequired,width:s.a.number.isRequired,rowTickValues:s.a.array,columnTickValues:s.a.array};var To=function(t){function e(t){var n;return po(this,e),(n=ko(this,_o(e).call(this,t))).handleMouseMove=n.handleMouseMove.bind(wo(wo(n))),n.handleMouseLeave=n.handleMouseLeave.bind(wo(wo(n))),n.tooltipTimeout=null,n}return vo(e,i.a.Component),go(e,[{key:"componentWillUnmount",value:function(){this.tooltipTimeout&&clearTimeout(this.tooltipTimeout)}},{key:"handleMouseMove",value:function(t){var e=t.event,n=t.datum,r=t.coords,i=xo(t,["event","datum","coords"]),a=this.props.showTooltip;this.tooltipTimeout&&clearTimeout(this.tooltipTimeout);var o={x:0,y:0};e&&e.target&&e.target.ownerSVGElement&&(o=I(e.target.ownerSVGElement,e)),a({tooltipLeft:(o=bo({},o,r)).x,tooltipTop:o.y,tooltipData:bo({event:e,datum:n},i)})}},{key:"handleMouseLeave",value:function(){var t=this.props.hideTooltip;this.tooltipTimeout=setTimeout(function(){t()},200)}},{key:"render",value:function(){var t=this.props,e=t.children,n=t.tooltipData,r=t.tooltipOpen,a=t.tooltipLeft,o=t.tooltipTop,c=t.renderTooltip,s=this.handleMouseMove,u=this.handleMouseLeave,l=r&&c(n);return i.a.createElement(i.a.Fragment,null,e({handleMouseMove:s,handleMouseLeave:u,tooltipOpen:r}),r&&i.a.createElement(D,{top:o,left:a,style:{borderRadius:0,boxShadow:"0 2px 5px 0 rgba(0, 0, 0, 0.15), 0 2px 10px 0 rgba(0, 0, 0, 0.1)"}},l))}}]),e}();To.propTypes={children:s.a.func,tooltipData:s.a.object,tooltipOpen:s.a.bool,tooltipLeft:s.a.number,tooltipTop:s.a.number,renderTooltip:s.a.func.isRequired};var Oo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{style:{position:"relative",width:"inherit",height:"inherit"}};return function(n){function r(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(e=function(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?j(t):e}(this,R(r).call(this,t))).state={tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0},e.updateTooltip=e.updateTooltip.bind(j(j(e))),e.showTooltip=e.showTooltip.bind(j(j(e))),e.hideTooltip=e.hideTooltip.bind(j(j(e))),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&C(t,e)}(r,i.a.PureComponent),function(t,e,n){e&&M(t.prototype,e),n&&M(t,n)}(r,[{key:"updateTooltip",value:function(t){var e=t.tooltipOpen,n=t.tooltipLeft,r=t.tooltipTop,i=t.tooltipData;this.setState(function(t){return N({},t,{tooltipOpen:e,tooltipLeft:n,tooltipTop:r,tooltipData:i})})}},{key:"showTooltip",value:function(t){var e=t.tooltipLeft,n=t.tooltipTop,r=t.tooltipData;this.updateTooltip({tooltipOpen:!0,tooltipLeft:e,tooltipTop:n,tooltipData:r})}},{key:"hideTooltip",value:function(){this.updateTooltip({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})}},{key:"render",value:function(){return i.a.createElement("div",e,i.a.createElement(t,S({updateTooltip:this.updateTooltip,showTooltip:this.showTooltip,hideTooltip:this.hideTooltip},this.state,this.props)))}}]),r}()}(To),Mo=function(t){var e=t.maxWidth,n=t.height,r=t.aspectRatio,a=t.renderTooltip,o=t.children,c=xo(t,["maxWidth","height","aspectRatio","renderTooltip","children"]);return i.a.createElement("div",{style:{maxWidth:e,height:n},className:"dv-Chart"},i.a.createElement(y.a,null,function(t){var e=t.width,s=t.height;if(e<10)return null;var u=n?s:e*r;return a?i.a.createElement(Oo,{renderTooltip:a},function(t){var n=t.handleMouseMove,r=t.handleMouseLeave,a=t.tooltipOpen;return i.a.createElement("svg",{width:e,height:u},o(bo({width:e,height:u,handleMouseMove:n,handleMouseLeave:r,tooltipOpen:a},c)))}):i.a.createElement("svg",{width:e,height:u},o(bo({width:e,height:u},c)))}))};Mo.propTypes={maxWidth:s.a.oneOfType([s.a.string,s.a.number]),height:function(t,e,n){return t.height||t.aspectRatio?t.aspectRatio||"string"==typeof t.height||"number"==typeof t.height?void 0:new Error("'".concat(e,"' prop in '").concat(n,"' must be a number or a string.")):new Error("One of props 'height' or 'aspectRatio' was not specified in '".concat(n,"'."))},aspectRatio:function(t,e,n){return t.height||t.aspectRatio?t.height||"number"==typeof t.aspectRatio?void 0:new Error("'".concat(e,"' prop in '").concat(n,"' must be a number.")):new Error("One of props 'height' or 'aspectRatio' was not specified in '".concat(n,"'."))},renderTooltip:s.a.func,renderLegend:s.a.func,renderAnnotation:s.a.func,children:s.a.func.isRequired},Mo.defaultProps={maxWidth:"100%"};var Eo=function(t){var e=t.width,n=t.height,r=t.handleMouseMove,a=t.handleMouseLeave,o=t.data,c=t.x,s=t.y,u=t.xFormat,l=t.yFormat,f=t.xAxisLabel,h=t.yAxisLabel,p=t.numTicksY,d=t.color,m=t.margin,g=e-m.left-m.right,y=n-m.top-m.bottom,b=Ua({rangeRound:[0,g],domain:o.map(function(t){return c(t)}),padding:.2}),v=Ia({rangeRound:[y,0],domain:[0,Pe(o,s)]});return i.a.createElement(B,{top:m.top,left:m.left},i.a.createElement(lo,{scale:v,width:g,numTicks:"function"==typeof p?p(n):p}),i.a.createElement(B,null,o.map(function(t,e){return i.a.createElement("rect",{key:"bar-".concat(e),x:b(c(t)),y:v(s(t)),width:b.bandwidth(),height:y-v(s(t)),fill:d,onMouseMove:function(e){return r?r({event:e,data:o,datum:t}):null},onMouseLeave:a||null})})),i.a.createElement(me,{scale:v,hideTicks:!0,hideAxisLine:!0,numTicks:"function"==typeof p?p(n):p,tickFormat:l,tickLabelProps:function(){return{textAnchor:"end",verticalAnchor:"middle"}},label:h,labelProps:{textAnchor:"middle",verticalAnchor:"end"}}),i.a.createElement(ye,{top:y,scale:b,label:f,hideAxisLine:!1,hideTicks:!1,tickFormat:u,tickLabelProps:function(){return{textAnchor:"middle",width:b.bandwidth(),verticalAnchor:"middle"}},labelProps:{dy:"3em",textAnchor:"middle",y:0}}))};Eo.propTypes={width:s.a.number.isRequired,height:s.a.number.isRequired,handleMouseMove:s.a.func,handleMouseLeave:s.a.func,data:s.a.array.isRequired,x:s.a.func.isRequired,y:s.a.func.isRequired,xFormat:s.a.func,yFormat:s.a.func,xAxisLabel:s.a.string,yAxisLabel:s.a.string,numTicksY:s.a.oneOfType([s.a.number,s.a.func]),color:s.a.string,margin:s.a.shape({top:s.a.number,right:s.a.number,bottom:s.a.number,left:s.a.number})},Eo.defaultProps={numTicksY:5,color:"#22C8A3",margin:{top:10,left:55,right:10,bottom:30}};var So=function(t){var e=t.width,n=t.height,r=t.handleMouseMove,a=t.handleMouseLeave,o=t.data,c=t.x,s=t.y,u=t.xFormat,l=t.yFormat,f=t.xAxisLabel,h=t.yAxisLabel,p=t.yLabelOffset,d=t.numTicksX,m=t.color,g=t.margin,y=e-g.left-g.right,b=n-g.top-g.bottom,v=Ua({rangeRound:[0,b],domain:o.map(s),padding:.2}),_=Ia({rangeRound:[0,y],domain:[0,Pe(o,c)]});return i.a.createElement(B,{top:g.top,left:g.left},i.a.createElement(fo,{scale:_,height:b,numTicks:"function"==typeof d?d(e):d}),i.a.createElement(B,null,o.map(function(t,e){return i.a.createElement(ro,{key:"bar-".concat(e),x:0,y:v(s(t)),width:_(c(t)),height:v.bandwidth(),fill:m,onMouseMove:function(e){return r?r({event:e,data:o,datum:t}):null},onMouseLeave:a||null})})),i.a.createElement(me,{scale:v,hideTicks:!1,hideAxisLine:!1,tickFormat:l,tickLabelProps:function(){return{width:g.left,textAnchor:"end",verticalAnchor:"middle",dx:"-0.3em"}},label:h,labelProps:{dx:p,textAnchor:"middle",verticalAnchor:"end"}}),i.a.createElement(ye,{top:b,scale:_,label:f,hideAxisLine:!0,hideTicks:!0,numTicks:"function"==typeof d?d(e):d,tickFormat:u,tickLabelProps:function(){return{textAnchor:"middle",verticalAnchor:"end"}},labelProps:{dy:"2.5em",textAnchor:"middle",verticalAnchor:"start"}}))};So.propTypes={width:s.a.number.isRequired,height:s.a.number.isRequired,handleMouseMove:s.a.func,handleMouseLeave:s.a.func,data:s.a.array.isRequired,x:s.a.func.isRequired,y:s.a.func.isRequired,xFormat:s.a.func,yFormat:s.a.func,xAxisLabel:s.a.string,yAxisLabel:s.a.string,yLabelOffset:s.a.string,numTicksX:s.a.oneOfType([s.a.number,s.a.func]),color:s.a.string,margin:s.a.shape({top:s.a.number,right:s.a.number,bottom:s.a.number,left:s.a.number})},So.defaultProps={margin:{top:10,left:50,right:10,bottom:20},color:"#22C8A3",numTicksX:6,yLabelOffset:"-0.5em"};var No=function(t){var e=t.width,n=t.height,r=t.handleMouseMove,a=t.handleMouseLeave,o=t.data,c=t.y,s=t.yFormat,u=t.xFormat,l=t.yAxisLabel,f=t.xAxisLabel,h=t.numTicksX,p=t.keys,d=t.colors,m=t.margin,g=o.reduce(function(t,e){var n=p.reduce(function(t,n){return t+ +e[n]},0);return t.push(n),t},[]),y=e-m.left-m.right,b=n-m.top-m.bottom,v=Wa({domain:p,range:d}),_=Ia({rangeRound:[0,y],domain:[0,Pe(g)],nice:!0}),x=Ua({rangeRound:[b,0],domain:o.map(c),padding:.2});return i.a.createElement(B,{top:m.top,left:m.left},i.a.createElement(fo,{scale:_,height:b,numTicks:"function"==typeof h?h(e):h}),i.a.createElement(co,{data:o,keys:p,height:b,y:c,xScale:_,yScale:x,color:v},function(t){return t.map(function(t){return t.bars.map(function(e){return i.a.createElement("rect",{key:"barstack-horizontal-".concat(t.index,"-").concat(e.index),x:e.x,y:e.y,width:e.width,height:e.height,fill:e.color,onMouseLeave:a||null,onMouseMove:function(t){return r?r({event:t,data:o,datum:e}):null}})})})}),i.a.createElement(me,{scale:x,hideAxisLine:!1,hideTicks:!1,tickFormat:s,label:l,tickLabelProps:function(){return{width:m.left,textAnchor:"end",verticalAnchor:"middle",dx:"-0.3em"}}}),i.a.createElement(ye,{scale:_,top:b,hideAxisLine:!0,hideTicks:!0,numTicks:"function"==typeof h?h(e):h,tickFormat:u,tickLabelProps:function(){return{textAnchor:"middle",verticalAnchor:"end"}},label:f,labelProps:{dy:"2.5em",textAnchor:"middle",verticalAnchor:"start"}}))};No.propTypes={width:s.a.number.isRequired,height:s.a.number.isRequired,handleMouseMove:s.a.func,handleMouseLeave:s.a.func,data:s.a.array.isRequired,y:s.a.func.isRequired,keys:s.a.array.isRequired,colors:s.a.array.isRequired,xFormat:s.a.func,yFormat:s.a.func,xAxisLabel:s.a.string,yAxisLabel:s.a.string,numTicksX:s.a.oneOfType([s.a.number,s.a.func]),margin:s.a.shape({top:s.a.number,right:s.a.number,bottom:s.a.number,left:s.a.number})},No.defaultProps={margin:{top:10,left:60,right:40,bottom:40}};var Ro=function(t){var e=t.width,n=t.height,r=t.handleMouseMove,a=t.handleMouseLeave,o=t.data,c=t.x,s=t.keys,u=t.xFormat,l=t.yFormat,f=t.xAxisLabel,h=t.yAxisLabel,p=t.numTicksY,d=t.colors,m=t.margin,g=e-m.left-m.right,y=n-m.top-m.bottom,b=Wa({domain:s,range:d}),v=Ua({rangeRound:[0,g],domain:o.map(c),padding:.2}),_=Ua({rangeRound:[0,v.bandwidth()],domain:s,padding:.1}),x=Ia({rangeRound:[y,0],domain:[0,Pe(o,function(t){return Pe(s,function(e){return t[e]})})]});return i.a.createElement(B,{top:m.top,left:m.left},i.a.createElement(lo,{scale:x,width:g,numTicks:p}),i.a.createElement(ao,{data:o,keys:s,height:y,x0:c,x0Scale:v,x1Scale:_,yScale:x,color:b},function(t){return t.map(function(t){return i.a.createElement(B,{key:"bar-group-".concat(t.index,"-").concat(t.x0),left:t.x0},t.bars.map(function(e){return i.a.createElement("rect",{key:"bar-group-bar-".concat(t.index,"-").concat(e.index,"-").concat(e.value,"-").concat(e.key),x:e.x,y:e.y,width:e.width,height:e.height,fill:e.color,onMouseMove:function(t){return r?r({event:t,data:o,datum:e}):null},onMouseLeave:a||null})}))})}),i.a.createElement(me,{scale:x,hideTicks:!0,hideAxisLine:!0,numTicks:p,tickFormat:l,tickLabelProps:function(t,e){return{textAnchor:"end",verticalAnchor:"middle"}},label:h,labelProps:{textAnchor:"middle",verticalAnchor:"end"}}),i.a.createElement(ye,{top:y,scale:v,label:f,hideAxisLine:!1,hideTicks:!1,tickFormat:u,tickLabelProps:function(){return{textAnchor:"middle",width:v.bandwidth(),verticalAnchor:"middle"}},labelProps:{dy:"3em",textAnchor:"middle",y:0}}))};function Co(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Po(t){this._context=t}function jo(t){return new Po(t)}function Ao(t){return t<0?-1:1}function Lo(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),c=(a*i+o*r)/(r+i);return(Ao(a)+Ao(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(c))||0}function qo(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Fo(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,c=(a-r)/3;t._context.bezierCurveTo(r+c,i+c*e,a-c,o-c*n,a,o)}function Do(t){this._context=t}function zo(t){this._context=t}Ro.propTypes={width:s.a.number.isRequired,height:s.a.number.isRequired,handleMouseMove:s.a.func,handleMouseLeave:s.a.func,tooltipOpen:s.a.bool,data:s.a.array.isRequired,x:s.a.func.isRequired,keys:s.a.array.isRequired,xFormat:s.a.func,yFormat:s.a.func,xAxisLabel:s.a.string,yAxisLabel:s.a.string,numTicksY:s.a.oneOfType([s.a.number,s.a.func]),colors:s.a.array.isRequired,margin:s.a.shape({top:s.a.number,right:s.a.number,bottom:s.a.number,left:s.a.number})},Ro.defaultProps={numTicksY:5,margin:{top:40,left:40,right:40,bottom:40}},Math.PI,Math.PI,Po.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Co(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Co(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Do.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Fo(this,this._t0,qo(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(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;break;case 2:this._point=3,Fo(this,qo(this,n=Lo(this,t,e)),n);break;default:Fo(this,this._t0,n=Lo(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(function(t){this._context=new zo(t)}.prototype=Object.create(Do.prototype)).point=function(t,e){Do.prototype.point.call(this,e,t)},zo.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}};var Uo=function(t){var e=t.top,n=t.bottom,r=t.tooltipLeft,a=t.tooltipTop;return i.a.createElement("g",null,i.a.createElement(Ga,{from:{x:r,y:e},to:{x:r,y:n},stroke:"#ababab",strokeWidth:1,style:{pointerEvents:"none"},strokeDasharray:"2,2"}),i.a.createElement("circle",{cx:r,cy:a,r:8,fill:"#22C8A3",fillOpacity:.2,style:{pointerEvents:"none"}}),i.a.createElement("circle",{cx:r,cy:a,r:4,fill:"#22C8A3",style:{pointerEvents:"none"}}))},Io=function(t){function e(t){var n;return po(this,e),yo(wo(wo(n=ko(this,_o(e).call(this,t)))),"handleMouseEvent",function(t){var e=t.data,r=t.event,i=t.tooltipParentFunc,a=t.xAccessor,o=t.yAccessor,c=t.xScale,s=t.yScale,u=t.margin,l=ve(a).left,f=I(r.target.ownerSVGElement,r).x;f-=u.left;var h=c.invert(f),p=l(e,h);if(!(p>e.length-1||p<1)){var d=e[p-1],m=e[p],g=h-c(a(d))>c(a(m))-h?m:d,y=c(a(g)),b=s(o(g));i({datum:g,coords:{x:y+u.left,y:b+u.top}}),n.setState({x:y,y:b})}}),n.state={x:0,y:0},n.handleMouseEvent=n.handleMouseEvent.bind(wo(wo(n))),n}return vo(e,i.a.Component),go(e,[{key:"render",value:function(){var t,e=this,n=this.props,r=n.width,a=n.height,o=n.handleMouseMove,c=n.handleMouseLeave,s=n.tooltipOpen,u=n.data,l=n.x,f=n.y,h=n.xAxisLabel,p=n.yAxisLabel,d=n.yFormat,m=n.xFormat,g=n.numTicksX,y=n.numTicksY,b=n.margin,v=n.stroke,_=n.strokeWidth,x=r-b.left-b.right,w=a-b.top-b.bottom,k=Ia({domain:ke(u,l),range:[0,x]}),T=Ia({domain:[0,Pe(u,f)],range:[w,0]});return i.a.createElement(B,{top:b.top,left:b.left},i.a.createElement(lo,{scale:T,width:x,numTicks:y}),i.a.createElement(Ja,{data:u,x:function(t){return k(l(t))},y:function(t){return T(f(t))},stroke:v,strokeWidth:_,curve:jo}),i.a.createElement("rect",{x:0,y:0,width:x,height:w,fill:"transparent",onMouseMove:function(t){o&&e.handleMouseEvent({event:t,data:u,xScale:k,yScale:T,margin:b,xAccessor:l,yAccessor:f,tooltipParentFunc:o})},onMouseLeave:c||null}),s&&i.a.createElement(Uo,{top:0,bottom:w,tooltipLeft:this.state.x,tooltipTop:this.state.y}),i.a.createElement(me,{scale:T,hideTicks:!0,hideAxisLine:!0,tickFormat:d,numTicks:y,tickLabelProps:function(){return{textAnchor:"end",verticalAnchor:"middle"}},label:p,labelProps:{textAnchor:"middle",verticalAnchor:"end"}}),i.a.createElement(ye,(yo(t={scale:k,top:w,tickFormat:m,numTicks:"function"==typeof g?g(r):g,tickLabelProps:function(){return{textAnchor:"middle",verticalAnchor:"middle"}}},"tickFormat",function(t){return t}),yo(t,"label",h),yo(t,"labelProps",{dy:"2.5em",textAnchor:"middle",verticalAnchor:"start"}),t)))}}]),e}();Io.propTypes={width:s.a.number.isRequired,height:s.a.number.isRequired,handleMouseMove:s.a.func,handleMouseLeave:s.a.func,tooltipOpen:s.a.bool,data:s.a.array.isRequired,x:s.a.func.isRequired,y:s.a.func.isRequired,xFormat:s.a.func,yFormat:s.a.func,xAxisLabel:s.a.string,yAxisLabel:s.a.string,numTicksY:s.a.oneOfType([s.a.number,s.a.func]),numTicksX:s.a.oneOfType([s.a.number,s.a.func]),stroke:s.a.string,strokeWidth:s.a.number,margin:s.a.shape({top:s.a.number,right:s.a.number,bottom:s.a.number,left:s.a.number})},Io.defaultProps={numTicksX:10,numTicksY:5,stroke:"#22C8A3",strokeWidth:2,margin:{top:10,left:55,bottom:30,right:10}};var Wo=function(t){var e=t.width,n=t.height,r=t.data,a=t.handleMouseMove,o=t.handleMouseLeave,c=t.x,s=t.y,u=t.xAxisLabel,l=t.yAxisLabel,f=t.yFormat,h=t.xFormat,p=t.circleRadius,d=t.numTicksX,m=t.numTicksY,g=t.circleStroke,y=t.circleFill,b=t.margin;if(!(e<100)){var v=e-b.left-b.right,_=n-b.top-b.bottom,x=Pe(r,s),w=Pe(r,c),k=Ia({domain:[0,w],range:[0,v],clamp:!0}),T=Ia({domain:[0,x],range:[_,0],clamp:!0});return i.a.createElement(B,{top:b.top,left:b.left},i.a.createElement(ho,{xScale:k,yScale:T,height:_,width:v,numTicksRows:m,numTicksColumns:"function"==typeof d?d(e):d}),i.a.createElement(B,null,r.map(function(t,e){return i.a.createElement("circle",{className:"dv-scatterplot-point",key:"point-".concat(e),stroke:"function"==typeof g?g(t):g,fill:"function"==typeof y?y(t):y,fillOpacity:.2,cx:k(c(t)),cy:T(s(t)),r:"function"==typeof p?p(t):p,onMouseMove:function(e){return a?a({event:e,data:r,datum:t}):null},onMouseLeave:o||null})})),i.a.createElement(me,{scale:T,hideAxisLine:!1,hideTicks:!0,hideZero:!0,numTicks:"function"==typeof m?m(e):m,tickFormat:f,tickLabelProps:function(){return{textAnchor:"end",verticalAnchor:"middle"}},label:l,labelProps:{textAnchor:"middle",verticalAnchor:"end"}}),i.a.createElement(ye,{scale:k,top:n-b.top-b.bottom,hideAxisLine:!1,hideTicks:!0,tickFormat:h,numTicks:"function"==typeof d?d(e):d,tickLabelProps:function(){return{textAnchor:"middle",verticalAnchor:"end"}},label:u,labelProps:{dy:"2.5em",textAnchor:"middle",verticalAnchor:"start",y:0}}))}};Wo.propTypes={width:s.a.number.isRequired,height:s.a.number.isRequired,handleMouseMove:s.a.func,handleMouseLeave:s.a.func,data:s.a.array.isRequired,x:s.a.func.isRequired,y:s.a.func.isRequired,xFormat:s.a.func,yFormat:s.a.func,xAxisLabel:s.a.string,yAxisLabel:s.a.string,numTicksX:s.a.oneOfType([s.a.number,s.a.func]),numTicksY:s.a.oneOfType([s.a.number,s.a.func]),circleRadius:s.a.oneOfType([s.a.number,s.a.func]),circleStroke:s.a.oneOfType([s.a.string,s.a.func]),circleFill:s.a.oneOfType([s.a.string,s.a.func]),margin:s.a.shape({top:s.a.number,right:s.a.number,bottom:s.a.number,left:s.a.number})},Wo.defaultProps={circleRadius:5,numTicksX:5,numTicksY:5,margin:{top:10,bottom:50,left:55,right:10},circleStroke:"#4C81DB",circleFill:"rgba(76,129,219, 0.4)"};var $o=function(t){var e=t.width,n=t.height,r=t.handleMouseMove,a=t.handleMouseLeave,o=t.data,c=t.y,s=t.yFormat,u=t.yAxisLabel,l=t.keys,f=t.colors,h=t.margin,p=t.questionNumber,d=o.reduce(function(t,e){var n=l.reduce(function(t,n){return t+=+e[n]},0);return t.push(n),t},[]),m=e-h.left-h.right,g=n-h.top-h.bottom,y=Wa({domain:l,range:f}),b=Ia({rangeRound:[0,m],domain:[0,Pe(d)],nice:!0}),v=Ua({rangeRound:[g,0],domain:o.map(c),padding:.2});return i.a.createElement(B,{top:h.top,left:h.left},i.a.createElement(fo,{scale:b,height:g+8,top:-8,tickValues:[25,75],stroke:"#ABACAE"}),i.a.createElement(fo,{scale:b,height:g+8,top:-8,tickValues:[50],lineStyle:{strokeOpacity:"0.5"},stroke:"#333",strokeWidth:"2px"}),i.a.createElement(B,{className:"bars"},i.a.createElement(co,{data:o,keys:l,height:g,y:c,xScale:b,yScale:v,color:y},function(t){return t.map(function(t){return i.a.createElement(B,{className:"bar-stack"},t.bars.map(function(e){return i.a.createElement(B,{className:"\n                      bar\n                      bar--demographic-".concat(e.bar.data.demographic_value.replace(/\s+/g,"-").toLowerCase()," \n                      bar--key-").concat(e.key.replace(/\s+/g,"-").toLowerCase(),"\n                      bar--color-").concat(e.color.slice(1),"\n                    "),key:"barstack-horizontal-".concat(t.index,"-").concat(e.index)},i.a.createElement("rect",{className:"bar__rectangle","clip-path":"url(#clip-".concat(p,"-").concat(t.index,"-").concat(e.index,")"),x:e.x,y:"Total"==e.bar.data.demographic_value?e.y-8:e.y,width:e.width,height:e.height,fill:e.color,stroke:e.color,strokeWidth:"4",onMouseLeave:a||null,onMouseMove:function(t){return r?r({event:t,data:o,datum:e}):null}}),i.a.createElement("clipPath",{id:"clip-".concat(p,"-").concat(t.index,"-").concat(e.index)},i.a.createElement("rect",{x:e.x,y:"Total"==e.bar.data.demographic_value?e.y-8:e.y,width:e.width,height:e.height})),i.a.createElement(ce.a,{x:e.x+5,y:e.y+.5*e.height-("Total"==e.bar.data.demographic_value?8:0),className:"bar__text bar__text--inside",verticalAnchor:"middle"},e.bar.data[e.key]>=6.5&&Math.round(e.bar.data[e.key])+"%"))}))})})),i.a.createElement(me,{scale:v,hideAxisLine:!0,hideTicks:!0,tickFormat:s,label:u,tickLabelProps:function(t){return{width:h.left,textAnchor:"end",verticalAnchor:"middle",fontSize:14,fontWeight:("2023"==t||"Total"==t)&&"bold",dy:"Total"==t&&-8}}}))};$o.propTypes={width:s.a.number.isRequired,height:s.a.number.isRequired,handleMouseMove:s.a.func,handleMouseLeave:s.a.func,data:s.a.array.isRequired,y:s.a.func.isRequired,keys:s.a.array.isRequired,colors:s.a.array.isRequired,xFormat:s.a.func,yFormat:s.a.func,xAxisLabel:s.a.string,yAxisLabel:s.a.string,numTicksX:s.a.oneOfType([s.a.number,s.a.func]),margin:s.a.shape({top:s.a.number,right:s.a.number,bottom:s.a.number,left:s.a.number})},$o.defaultProps={margin:{top:10,left:60,right:40,bottom:40}};var Bo=$o,Yo=function(t){var e=t.width,n=t.height,r=t.handleMouseMove,a=t.handleMouseLeave,o=t.data,c=t.y,s=t.keys,u=t.yFormat,l=t.yAxisLabel,f=t.colors,h=t.margin,p=t.questionNumber,d=e-h.left-h.right,m=d-38,g=n-h.top-h.bottom,y=Wa({domain:s,range:f}),b=Ua({rangeRound:[g,0],domain:o.map(c),padding:.01}),v=Ua({rangeRound:[0,b.bandwidth()],domain:s,padding:0}),_=Ia({rangeRound:[m,0],domain:[0,Pe(o,function(t){return Pe(s,function(e){return t[e]})})]});return i.a.createElement(B,{top:h.top,left:h.left},i.a.createElement(B,{className:"bars"},i.a.createElement(oo,{data:o,keys:s,width:m,y0:c,y0Scale:b,y1Scale:v,xScale:_,color:y},function(t){return t.map(function(t){return i.a.createElement(B,{className:"bar-group",key:"bar-group-".concat(t.index,"-").concat(t.y0),top:t.y0},i.a.createElement("line",{x1:-.5,x2:-.5,y1:2,y2:b.bandwidth()-2,style:{stroke:"#ABACAE",strokeWidth:1}}),t.bars.map(function(e){return i.a.createElement(B,{className:"\n                          bar\n                          bar--key-".concat(e.index,"\n                          bar--color-").concat(e.color.slice(1),"\n                        "),key:"bar-group-bar-".concat(t.index,"-").concat(e.index,"-").concat(e.value,"-").concat(e.key),onMouseMove:function(n){r&&r({event:n,data:o,datum:e,index:t.index}),Array.from(document.getElementsByClassName("bar--key-".concat(e.index))).forEach(function(t){return t.classList.add("bar--key-hover")})},onMouseLeave:function(t){a&&a(),Array.from(document.getElementsByClassName("bar--key-".concat(e.index))).forEach(function(t){return t.classList.remove("bar--key-hover")})}},i.a.createElement("rect",{x:e.x,y:e.y,width:d,height:e.height,fill:"transparent"}),i.a.createElement("rect",{className:"bar__rectangle","clip-path":"url(#clip-".concat(p,"-").concat(t.index,"-").concat(e.index,")"),x:e.x,y:e.y,width:e.width,height:e.height,fill:e.color,stroke:e.color,strokeWidth:"4"}),i.a.createElement("clipPath",{id:"clip-".concat(p,"-").concat(t.index,"-").concat(e.index)},i.a.createElement("rect",{x:e.x,y:e.y,width:e.width,height:e.height})),i.a.createElement(ce.a,{x:e.x+e.width+3,y:e.y+.5*e.height,className:"bar__text bar__text--outside",verticalAnchor:"middle"},e.value<1&&e.value>0?"<1%":"".concat(Math.round(e.value),"%")))}))})})),i.a.createElement(me,{scale:b,label:l,hideAxisLine:!0,hideTicks:!0,tickFormat:u,tickLabelProps:function(t){return{height:b.bandwidth(),width:h.left,textAnchor:"end",verticalAnchor:"middle",fontSize:14,fontWeight:("2023"==t||"Total"==t)&&"bold"}},labelProps:{textAnchor:"middle",verticalAnchor:"end"}}))};Yo.propTypes={width:s.a.number.isRequired,height:s.a.number.isRequired,handleMouseMove:s.a.func,handleMouseLeave:s.a.func,tooltipOpen:s.a.bool,data:s.a.array.isRequired,y:s.a.func.isRequired,keys:s.a.array.isRequired,xFormat:s.a.func,yFormat:s.a.func,xAxisLabel:s.a.string,yAxisLabel:s.a.string,numTicksX:s.a.oneOfType([s.a.number,s.a.func]),colors:s.a.array.isRequired,margin:s.a.shape({top:s.a.number,right:s.a.number,bottom:s.a.number,left:s.a.number})},Yo.defaultProps={numTicksX:5,margin:{top:40,left:40,right:40,bottom:40}};var Vo=Yo,Ho={white:"#FFFFFF",black:"#2c2f35",grey:{chart_background:"#EFEFEF",lightest:"#EAEAEA",light:"#D6D6D6",medium:"#A3A3A3",dark:"#717171",darker:"#515151",darkest:"#333333"},teal:{lightest:"#BAEEEA",light:"#77D6D0",medium:"#2FBCB3",dark:"#209B93",darker:"#107C74",darkest:"#005E57"},blue:{lightest:"#A0CBED",light:"#5DA7E4",medium:"#1185E0",dark:"#0E6DB6",darker:"#055795",darkest:"#004275"},red:{lightest:"#FFB9BC",light:"#FE7F85",medium:"#eb4a52",dark:"#D83136",darker:"#C01E22",darkest:"#AB0009"},purple:{lightest:"#EFD2F5",light:"#D7A8E0",medium:"#BF7ECC",dark:"#A664B3",darker:"#8D4A9B",darkest:"#743083"},brown:{lightest:"#E0BC92",light:"#C99151",medium:"#AC5E06",dark:"#904E04",darker:"#743F03",darkest:"#5A3000"}};var Xo,Zo=Ho.grey.light,Go={base:{on_white:[Ho.grey.lightest,Ho.grey.chart_background,Ho.grey.chart_background],on_grey:[Ho.grey.lightest,Ho.white,Ho.white]},diverging:{positive:[Ho.teal.medium,Ho.teal.light],neutral:[Zo],negative:[Ho.red.medium,Ho.red.light]},diverging_unordered:{positive:[Ho.blue.medium,Ho.blue.light],neutral:[Zo],negative:[Ho.purple.medium,Ho.purple.light]},scale:[Ho.teal.lightest,Ho.teal.light,Ho.teal.medium,Ho.teal.dark,Ho.teal.darker,Ho.teal.darkest,Ho.grey.dark],scale_with_zero:[Ho.grey.medium,Ho.teal.lightest,Ho.teal.light,Ho.teal.medium,Ho.teal.dark,Ho.teal.darker,Ho.teal.darkest,Ho.grey.dark],increasing_many:["#97ded9","#76d2cc","#53c6bf","#2dbab1","#27aba3","#219c95","#1b8e87","#14807a","#0d726d","#066460","#005753"],increasing_income:[Ho.teal.lightest,Ho.teal.light,Ho.teal.medium,Ho.teal.dark,Ho.teal.darker,Ho.blue.lightest,Ho.blue.light,Ho.blue.medium,Ho.blue.dark,Ho.blue.darker,Ho.purple.lightest,Ho.purple.light,Ho.purple.medium,Ho.purple.dark,Ho.purple.darker,Ho.grey.dark],unordered:[Ho.teal.medium,Ho.blue.medium,Ho.purple.medium,Ho.red.light,Ho.brown.light,Ho.teal.light,Ho.blue.light,Ho.purple.light,Ho.red.dark,Ho.brown.medium,Ho.teal.dark,Ho.blue.dark,Ho.purple.dark,Ho.red.medium,Ho.brown.dark]},Jo=n(3);!function(t){(Xo||(Xo={})).clonePseudoElement=function(t,e,n){const r=window.getComputedStyle(t,n),i=r.getPropertyValue("content");if(""===i||"none"===i)return;const a=Object(Jo.m)();try{e.className=`${e.className} ${a}`}catch(t){return}const o=document.createElement("style");o.appendChild(function(t,e,n){const r=`.${t}:${e}`,i=n.cssText?function(t){const e=t.getPropertyValue("content");return`${t.cssText} content: ${e};`}(n):function(t){return Object(Jo.k)(t).map(e=>{const n=t.getPropertyValue(e),r=t.getPropertyPriority(e);return`${e}: ${n}${r?" !important":""};`}).join(" ")}(n);return document.createTextNode(`${r}{${i}}`)}(a,n,r)),e.appendChild(o)}}();var Qo=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function c(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(o,c)}s((r=r.apply(t,e||[])).next())})};function Ko(t){return Qo(this,void 0,void 0,function*(){if(t instanceof HTMLCanvasElement){const e=t.toDataURL();return"data:,"===e?Promise.resolve(t.cloneNode(!1)):Object(Jo.b)(e)}return Promise.resolve(t.cloneNode(!1))})}function tc(t,e){return Qo(this,void 0,void 0,function*(){return e instanceof Element?Promise.resolve().then(()=>(function(t,e){const n=window.getComputedStyle(t),r=e.style;n.cssText?r.cssText=n.cssText:Object(Jo.k)(n).forEach(t=>{r.setProperty(t,n.getPropertyValue(t),n.getPropertyPriority(t))})})(t,e)).then(()=>(function(t,e){[":before",":after"].forEach(n=>Xo.clonePseudoElement(t,e,n))})(t,e)).then(()=>(function(t,e){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value);t instanceof HTMLInputElement&&e.setAttribute("value",t.value)})(t,e)).then(()=>e):e})}function ec(t,e,n){return Qo(this,void 0,void 0,function*(){return n||!e||e(t)?Promise.resolve(t).then(Ko).then(n=>(function(t,e,n){return Qo(this,void 0,void 0,function*(){const r=Object(Jo.k)(t.childNodes);return 0===r.length?Promise.resolve(e):r.reduce((t,r)=>t.then(()=>ec(r,n)).then(t=>{t&&e.appendChild(t)}),Promise.resolve()).then(()=>e)})})(t,n,e)).then(e=>tc(t,e)):Promise.resolve(null)})}const nc=3e4,rc={};function ic(t,e){let n=t.replace(/\?.*/,"");if(function(t){return/ttf|otf|eot|woff2?/i.test(t)}(n)&&(n=n.replace(/.*\//,"")),rc[n])return rc[n];e.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());const r=(window.fetch?window.fetch(t).then(t=>new Promise((e,n)=>{t.blob().then(n=>{e({blob:n,contentType:t.headers.get("Content-Type")})})})).then(({blob:t,contentType:e})=>new Promise((n,r)=>{const i=new FileReader;i.onloadend=(()=>n({contentType:e,blob:i.result})),i.onerror=r,i.readAsDataURL(t)})).then(({blob:t,contentType:e})=>({contentType:e,blob:Object(Jo.d)(t)})).catch(()=>new Promise((t,e)=>e())):new Promise((e,n)=>{const r=new XMLHttpRequest;r.onreadystatechange=(()=>{if(4!==r.readyState)return;if(200!==r.status)return void n(new Error(`Failed to fetch resource: ${t}, status: ${r.status}`));const i=new FileReader;i.onloadend=(()=>{e({blob:Object(Jo.d)(i.result),contentType:r.getResponseHeader("Content-Type")||""})}),i.readAsDataURL(r.response)}),r.ontimeout=(()=>{n(new Error(`Timeout of ${nc}ms occured while fetching resource: ${t}`))}),r.responseType="blob",r.timeout=nc,r.open("GET",t,!0),r.send()})).catch(n=>{let r="";if(e.imagePlaceholder){const t=e.imagePlaceholder.split(/,/);t&&t[1]&&(r=t[1])}let i=`Failed to fetch resource: ${t}`;return n&&(i="string"==typeof n?n:n.message),i&&console.error(i),r});return rc[n]=r,r}const ac=/url\((['"]?)([^'"]+?)\1\)/g,oc=/url\([^)]+\)\s*format\((["'])([^"']+)\1\)/g,cc=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function sc(t){return-1!==t.search(ac)}function uc(t,e,n){if(!sc(t))return Promise.resolve(t);const r=function(t,{preferredFontFormat:e}){return e?t.replace(cc,t=>{for(;;){const[n,,r]=oc.exec(t)||[];if(!r)return"";if(r===e)return`src: ${n};`}}):t}(t,n);return Promise.resolve(r).then(lc).then(t=>t.reduce((t,r)=>t.then(t=>(function(t,e,n,r,i){const a=n?function(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");n.head.appendChild(r),n.body.appendChild(i),e&&(r.href=e);return i.href=t,i.href}(e,n):e;return Promise.resolve(a).then(t=>i?i(t):ic(t,r)).then(t=>"string"==typeof t?Object(Jo.l)(t,Object(Jo.e)(e)):Object(Jo.l)(t.blob,Object(Jo.e)(e)||t.contentType)).then(n=>t.replace(function(t){return new RegExp(`(url\\(['"]?)(${function(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}(t)})(['"]?\\))`,"g")}(e),`$1${n}$3`)).then(t=>t,()=>a)})(t,r,e,n)),Promise.resolve(r)))}function lc(t){const e=[];return t.replace(ac,(t,n,r)=>(e.push(r),t)),e.filter(t=>!Object(Jo.i)(t))}var fc=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function c(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(o,c)}s((r=r.apply(t,e||[])).next())})};function hc(t,e){return fc(this,void 0,void 0,function*(){return t instanceof Element?Promise.resolve(t).then(t=>(function(t,e){return fc(this,void 0,void 0,function*(){const n=t.style.getPropertyValue("background");return n?Promise.resolve(n).then(t=>uc(t,null,e)).then(e=>(t.style.setProperty("background",e,t.style.getPropertyPriority("background")),t)):Promise.resolve(t)})})(t,e)).then(t=>(function(t,e){if(!(t instanceof HTMLImageElement)||Object(Jo.i)(t.src))return Promise.resolve(t);return Promise.resolve(t.src).then(t=>ic(t,e)).then(e=>Object(Jo.l)(e.blob,Object(Jo.e)(t.src)||e.contentType)).then(e=>new Promise((n,r)=>{t.onload=n,t.onerror=r,t.src=e})).then(()=>t,()=>t)})(t,e)).then(t=>(function(t,e){return fc(this,void 0,void 0,function*(){const n=Object(Jo.k)(t.childNodes),r=n.map(t=>hc(t,e));return Promise.all(r).then(()=>t)})})(t,e)):Promise.resolve(t)})}var pc=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function c(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(o,c)}s((r=r.apply(t,e||[])).next())})};const dc={};function mc(t){return pc(this,void 0,void 0,function*(){return new Promise((e,n)=>{t.ownerDocument||n(new Error("Provided element is not within a Document")),e(Object(Jo.k)(t.ownerDocument.styleSheets))}).then(t=>(function(t){return pc(this,void 0,void 0,function*(){const e=[],n=[];return t.forEach(e=>{if("cssRules"in e)try{Object(Jo.k)(e.cssRules).forEach((t,r)=>{if(t.type===CSSRule.IMPORT_RULE){let i=r+1;n.push(vc(t.href,e).then(_c).then(t=>{const n=bc(t);n.forEach(t=>{try{e.insertRule(t,t.startsWith("@import")?i+=1:e.cssRules.length)}catch(e){console.log("Error inserting rule from remote css",{rule:t,error:e})}})}).catch(t=>{console.log("Error loading remote css",t.toString())}))}})}catch(r){const i=t.find(t=>null===t.href)||document.styleSheets[0];null!=e.href&&n.push(vc(e.href,i).then(_c).then(t=>{const n=bc(t);n.forEach(t=>{i.insertRule(t,e.cssRules.length)})}).catch(t=>{console.log("Error loading remote stylesheet",t.toString())})),console.log("Error inlining remote css file",r.toString())}}),Promise.all(n).then(()=>(t.forEach(t=>{if("cssRules"in t)try{Object(Jo.k)(t.cssRules).forEach(t=>{e.push(t)})}catch(e){console.log(`Error while reading CSS rules from ${t.href}`,e.toString())}}),e))})})(t)).then(yc)})}function gc(t,e){return pc(this,void 0,void 0,function*(){return mc(t).then(t=>Promise.all(t.map(t=>{const n=t.parentStyleSheet?t.parentStyleSheet.href:null;return uc(t.cssText,n,e)}))).then(t=>t.join("\n"))})}function yc(t){return t.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>sc(t.style.getPropertyValue("src")))}function bc(t){if(void 0===t)return[];let e=t;const n=[],r=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi;e=e.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");let a;for(;null!==(a=i.exec(e));)n.push(a[0]);e=e.replace(i,"");const o=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){if(null===(a=r.exec(e))){if(null===(a=o.exec(e)))break;r.lastIndex=o.lastIndex}else o.lastIndex=r.lastIndex;n.push(a[0])}return n}function vc(t,e){if(dc[t])return dc[t];const n=fetch(t).then(e=>({url:t,cssText:e.text()}),t=>{console.log("ERROR FETCHING CSS: ",t.toString())});return dc[t]=n,n}function _c(t){return pc(this,void 0,void 0,function*(){return t.cssText.then(e=>{let n=e;const r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(e=>{let i=e.replace(r,"$1");if(!i.startsWith("https://")){const e=t.url;i=new URL(i,e).href}return new Promise((t,r)=>{fetch(i).then(t=>t.blob()).then(r=>{const i=new FileReader;i.addEventListener("load",r=>{n=n.replace(e,`url(${i.result})`),t([e,i.result])}),i.readAsDataURL(r)}).catch(r)})});return Promise.all(i).then(()=>n)})})}var xc=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function c(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(o,c)}s((r=r.apply(t,e||[])).next())})};function wc(t,e={}){return{width:e.width||Object(Jo.g)(t),height:e.height||Object(Jo.f)(t)}}function kc(t,e={}){return xc(this,void 0,void 0,function*(){const{width:n,height:r}=wc(t,e);return ec(t,e.filter,!0).then(t=>(function(t,e){return pc(this,void 0,void 0,function*(){return(null!=e.fontEmbedCss?Promise.resolve(e.fontEmbedCss):gc(t,e)).then(e=>{const n=document.createElement("style"),r=document.createTextNode(e);return n.appendChild(r),t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),t})})})(t,e)).then(t=>hc(t,e)).then(t=>(function(t,e){const{style:n}=t;e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.width&&(n.width=`${e.width}px`),e.height&&(n.height=`${e.height}px`);const r=e.style;return null!=r&&Object.keys(r).forEach(t=>{n[t]=r[t]}),t})(t,e)).then(t=>(function(t,e,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return i.setAttributeNS("","width",`${e}`),i.setAttributeNS("","height",`${n}`),a.setAttributeNS("","width","100%"),a.setAttributeNS("","height","100%"),a.setAttributeNS("","x","0"),a.setAttributeNS("","y","0"),a.setAttributeNS("","externalResourcesRequired","true"),i.appendChild(a),a.appendChild(t),Object(Jo.j)(i)})(t,n,r))})}function Tc(t,e={}){return xc(this,void 0,void 0,function*(){return kc(t,e).then(Jo.b).then(Object(Jo.c)(100)).then(n=>{const r=document.createElement("canvas"),i=r.getContext("2d"),a=e.pixelRatio||Object(Jo.h)(),{width:o,height:c}=wc(t,e),s=e.canvasWidth||o,u=e.canvasHeight||c;return r.width=s*a,r.height=u*a,r.style.width=`${s}`,r.style.height=`${u}`,e.backgroundColor&&(i.fillStyle=e.backgroundColor,i.fillRect(0,0,r.width,r.height)),i.drawImage(n,0,0,r.width,r.height),r})})}function Oc(t){return(Oc="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})(t)}function Mc(){return(Mc=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}).apply(this,arguments)}function Ec(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Sc(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)}}function Nc(t){return(Nc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Rc(t,e){return(Rc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Cc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Pc=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e){return!e||"object"!==Oc(e)&&"function"!=typeof e?Cc(t):e}(this,Nc(e).call(this,t))).question=n.props.question,n.handleFilterDemographicChange=n.handleFilterDemographicChange.bind(Cc(Cc(n))),n.handleScreenshot=n.handleScreenshot.bind(Cc(Cc(n))),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Rc(t,e)}(e,i.a.Component),function(t,e,n){e&&Sc(t.prototype,e),n&&Sc(t,n)}(e,[{key:"handleFilterDemographicChange",value:function(t){this.props.onFilterDemographicChange(t.target.value)}},{key:"download",value:function(t){var e=document.createElement("a"),n="".concat(this.question.number_specific," ").concat(this.props.filter_demographic,".png");e.href=t,e.download=n,e.click()}},{key:"handleScreenshot",value:function(){var t=this,e=document.getElementById("chart--".concat(this.question.number_specific)),n=document.getElementById("dashboard");n.classList.add("screenshot-in-progress"),function(t,e={}){return xc(this,void 0,void 0,function*(){return Tc(t,e).then(t=>t.toDataURL())})}(e,{filter:function(t){return"BUTTON"!=t.tagName},backgroundColor:"white",height:e.offsetHeight+20,width:e.offsetWidth+20,style:{padding:"10px"}}).then(function(e){return t.download(e)}).catch(function(t){console.error("Screenshot download failed",t)}).then(function(){return n.classList.remove("screenshot-in-progress")})}},{key:"render",value:function(){var t=this,e=this.props.filter_demographic,n=e!=this.props.total_demographic,r=this.question.demographic_keys.find(function(t){return t.demographic_key==e}).demographics.filter(function(t){return t.demographic_total>=50}).reverse(),a=(r=n||0==r.length?r.concat(this.question.total):r).length,o=n&&1==a,c=Math.max.apply(Math,Ec(r.map(function(t){return t.demographic_value.length}))),s=r.reduce(function(t,e){return Math.max.apply(Math,[t].concat(Ec(e.demographic_value.split(" ").map(function(t){return t.length}))))},0),u=Math.max(5*c,10*s),l=Object.keys(r[0].data),f=l,h=l.filter(function(e){return t.props.list_of_nonanswers.includes(e)}),p=l.filter(function(e){return!t.props.list_of_nonanswers.includes(e)}).length,d=this.question.colorset,m="grey"==this.props.background_color?Go.base.on_grey:Go.base.on_white;m=m.slice(0,h.length);var g=[],y=g.colorset,b=g.legend_keys,v=g.legend_colorset,_=g.chart_colorset;if(d.includes("diverging")){var x,w,k,T,O,M,E;y=d.includes("unordered")?Go.diverging_unordered:Go.diverging,d.includes("neutral_center")?(M=!0,x=(p-1)/2,w=(p-1)/2,k=(p+1)/2,T=(p+1)/2,O=p):p%2==1?(M=!0,x=(p-1)/2,T=(p-1)/2,O=p-1,w=p-1,k=p):(M=!1,v=y.positive.concat(y.negative),_=y.positive.concat(m,y.negative),x=p/2,T=p/2,O=p);var S=y.positive.slice(0,x),N=y.negative.slice(0,x).reverse(),R=l.slice(0,x),C=l.slice(T,O);M?(v=S.concat(y.neutral,N),_=S.concat(y.neutral,m,N),E=l.slice(w,k),b=R.concat(E,C),f=R.concat(E,h,C)):(v=S.concat(N),_=S.concat(m,N),b=R.concat(C),f=R.concat(h,C))}else d.includes("scale")?(y=Go.scale,d.includes("with_zero")&&(y=Go.scale_with_zero)):y=d?Go[d]:Go.unordered,v=y.slice(0,p),d.includes("decreasing")&&(v=v.reverse()),_=v.concat(m),b=l.slice(0,p);var P=r.map(function(t){return Object.assign.apply(Object,[t].concat(Ec(f.map(function(e){return function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,Math.trunc(1e4*t.data[e]/t.demographic_total)/100)}))))});return i.a.createElement("div",{id:"chart--".concat(this.question.number_specific),className:"\n          custom-chart\n          ".concat(this.props.className,"\n          ").concat(!this.props.display_full_question&&"custom-chart--partial-chart","\n        ")},i.a.createElement("div",{className:"custom-chart__meta"},i.a.createElement("h3",{className:"custom-chart__title"},this.question.content_general),i.a.createElement("ul",{className:"legend"},b.map(function(t,e){return i.a.createElement("li",{className:"legend__item",style:{borderColor:v[e],backgroundColor:v[e]}},t)}))),this.question.content_specific&&i.a.createElement("h4",{className:"custom-chart__title custom-chart__title--specific"},this.question.content_specific),o&&i.a.createElement("p",{class:"custom-chart__message"},this.props.meta.filtered_data_unavailable_text),"grouped_bar"==this.question.chart_type?i.a.createElement(Mo,{maxWidth:758,height:(1==r.length?25:15)*a*f.length,renderTooltip:function(e){var n=e.datum,r=e.data[e.index];return i.a.createElement("div",null,i.a.createElement("h4",{className:"tooltip__title"},r.demographic_value," ",i.a.createElement("small",{className:"tooltip__subtitle"},"n = ","TRUE"==t.props.meta.use_manual_n_sizes?r.n_size:r.demographic_total)),i.a.createElement("table",{className:"tooltip-table"},f.map(function(t,e){var a=r[t]>0;return i.a.createElement("tr",{className:"tooltip-table__tr ".concat(!a&&"tooltip-table__tr--zero-value"," ").concat(n.key==t&&"tooltip-table__tr--active"),style:a?{borderColor:_[e],backgroundColor:_[e]}:{}},i.a.createElement("td",{className:"tooltip-table__td tooltip-table__td--datum"},a&&r[t]<1?"<1":Math.round(r[t]),"%"),i.a.createElement("td",{className:"tooltip-table__td tooltip-table__td--key"},t))})))}},function(e){return i.a.createElement(Vo,Mc({questionNumber:t.question.number_specific,data:P,y:function(t){return t.demographic_value},keys:f,colors:_,margin:{top:n?10:0,left:u,right:0,bottom:0}},e))}):i.a.createElement(Mo,{maxWidth:758,height:50*a+10,renderTooltip:function(e){var n=e.datum;return i.a.createElement("div",null,i.a.createElement("h4",{className:"tooltip__title"},n.bar.data.demographic_value," ",i.a.createElement("small",{className:"tooltip__subtitle"},"n = ","TRUE"==t.props.meta.use_manual_n_sizes?n.bar.data.n_size:n.bar.data.demographic_total)),i.a.createElement("table",{className:"tooltip-table"},f.map(function(t,e){var r=n.bar.data[t]>0;return i.a.createElement("tr",{className:"tooltip-table__tr ".concat(!r&&"tooltip-table__tr--zero-value"," ").concat(n.key==t&&"tooltip-table__tr--active"),style:r?{borderColor:_[e],backgroundColor:_[e]}:{}},i.a.createElement("td",{className:"tooltip-table__td tooltip-table__td--datum"},r&&n.bar.data[t]<1?"<1":Math.round(n.bar.data[t]),"%"),i.a.createElement("td",{className:"tooltip-table__td tooltip-table__td--key"},t))})))}},function(e){return i.a.createElement(Bo,Mc({questionNumber:t.question.number_specific,data:P,y:function(t){return t.demographic_value},keys:f,colors:_,margin:{top:n?10:0,left:u,right:0,bottom:0}},e))}),i.a.createElement("div",{className:"custom-chart__footer"},i.a.createElement("small",{className:"n-value",style:{marginLeft:u}},"n = ",this.question.total.n_size),i.a.createElement("button",{onClick:this.handleScreenshot,className:"download-button"},"Download")))}}]),e}();function jc(t){return(jc="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})(t)}function Ac(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)}}function Lc(t){return(Lc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function qc(t,e){return(qc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Fc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Dc=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e){return!e||"object"!==jc(e)&&"function"!=typeof e?Fc(t):e}(this,Lc(e).call(this,t))).state={filter_demographic:n.props.total_demographic,filter_finding:n.props.data.findings[0].finding_short},n.handleFilterDemographicChange=n.handleFilterDemographicChange.bind(Fc(Fc(n))),n.handleFilterFindingChange=n.handleFilterFindingChange.bind(Fc(Fc(n))),n.data=n.props.data,n.demographics=n.props.data.demographic_keys.filter(function(t){return!t.skip_demographic_key}),n.finding_questions=n.props.data.finding_questions,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qc(t,e)}(e,i.a.Component),function(t,e,n){e&&Ac(t.prototype,e),n&&Ac(t,n)}(e,[{key:"handleFilterDemographicChange",value:function(t){this.setState({filter_demographic:t})}},{key:"handleFilterFindingChange",value:function(t){this.setState({filter_finding:t})}},{key:"render",value:function(){var t,e=this,n=this.data.meta.filter(function(t){return!e.data.meta[2][t]})[0],r=this.finding_questions.filter(function(t){return t.finding==e.state.filter_finding}).map(function(t){return t.question_number});return window.addEventListener("message",function(t){if(void 0!==t.data["datawrapper-height"])for(var e in t.data["datawrapper-height"]){var n=document.getElementById("datawrapper-chart-"+e)||document.querySelector("iframe[src*='"+e+"']");n&&(n.style.height=t.data["datawrapper-height"][e]+"px")}}),i.a.createElement(g,{className:"dv-dashboard"},i.a.createElement("nav",{className:"dv-dashboard__column dv-dashboard__column--nav"},i.a.createElement("h2",{className:"dv-dashboard__nav-title"},n.dashboard_title),i.a.createElement(m,{onChange:this.handleFilterFindingChange,options:this.props.data.findings.map(function(t){return{id:t.finding_short,text:t.finding_title}}),active:this.state.filter_finding,className:"dv-button-group--findings",style:"ol"}),i.a.createElement("h4",{className:"dv-dashboard__nav-heading"},n.filter_heading),i.a.createElement(m,{onChange:this.handleFilterDemographicChange,options:this.demographics.map(function(t){return{id:t.demographic_key,text:t.demographic_key}}),active:this.demographics[0].demographic_key,className:"dv-button-group--filters"})),i.a.createElement("div",{className:"dv-dashboard__column dv-dashboard__column--data"},this.props.questions.map(function(a){if(r.includes(a.number_specific)){var o=a.content_general!=t;return t=a.content_general,a.datawrapper_code?i.a.createElement("div",{className:"datawrapper-chart ".concat(!o&&"custom-chart--partial-chart")},o&&i.a.createElement("h3",{className:"custom-chart__title"},a.content_general),a.content_specific&&i.a.createElement("h4",{className:"custom-chart__title custom-chart__title--specific"},a.content_specific),e.state.filter_demographic!=e.props.total_demographic?i.a.createElement("p",{class:"custom-chart__message"},n.filtered_data_unavailable_text):i.a.createElement("div",null,i.a.createElement("iframe",{"aria-label":"Chart",id:"datawrapper-chart-".concat(a.datawrapper_code),src:"https://datawrapper.dwcdn.net/".concat(a.datawrapper_code,"/"),scrolling:"no",frameborder:"0",style:{width:0,minWidth:"100%",border:"none"},height:"800"}),i.a.createElement("small",{className:"n-value"},"n = ",a.n_size))):i.a.createElement(Pc,{question:a,meta:n,display_full_question:o,filter_demographic:e.state.filter_demographic,total_demographic:e.props.total_demographic,onFilterDemographicChange:e.handleFilterDemographicChange,list_of_nonanswers:e.data.meta.filter(function(t){return t.list_of_nonanswers}).map(function(t){return t.list_of_nonanswers})})}})))}}]),e}();n(22);function zc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Uc(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Ic,Wc=[],$c=null,Bc=null,Yc=null,Vc=null,Hc=Object.assign({dashboard:function(t){o.a.render([i.a.createElement(Dc,{data:$c,questions:Vc,total_demographic:Yc})],t)}});fetch("https://na-data-sheetsstorm.s3.us-west-2.amazonaws.com/prod/epp/varying_degrees_2023.json").then(function(t){return t.json()}).then(function(t){Bc=($c=t).meta[0].comparison_demographic,Yc=$c.meta[0].demographic_key_for_total,Ic=$c.finding_questions.map(function(t){return t.question_number}),Vc=$c.questions.filter(function(t){return Ic.includes(t.number_specific)}).map(function(t){var e=$c.data.filter(function(e){return e["Q Number"]==t.number_specific});return{number_specific:t.number_specific,content_general:t.content_general,content_specific:t.content_specific,colorset:t.colorset,chart_type:t.chart_type,datawrapper_code:t.datawrapper_code,total:{demographic_value:"Total",demographic_total:Object.keys(e).reduce(function(t,n){return t+(Number(e[n][Bc])>0?Number(e[n][Bc]):0)},0),n_size:$c.n_sizes.filter(function(e){return e.number_specific==t.number_specific})[0][Bc],data:Object.assign.apply(Object,Uc(e.map(function(t){return zc({},t.Responses,t[Bc])})))},demographic_keys:Uc($c.demographic_keys.map(function(n){var r=$c.demographic_values.filter(function(t){return t.demographic_key==n.demographic_key}),i=e.map(function(t){return Object.assign.apply(Object,Uc(Object.keys(t).filter(function(t){return r.map(function(t){return t.demographic_full}).includes(t)||"Responses"==t}).map(function(e){return zc({},e,t[e])})))});return{demographic_key:n.demographic_key,demographics:Uc(r.map(function(e){return{demographic_value:e.demographic_value,demographic_total:Object.keys(i).filter(function(t){return"Responses"!=t}).reduce(function(t,n){return t+(Number(i[n][e.demographic_full])>0?Number(i[n][e.demographic_full]):0)},0),n_size:$c.n_sizes.filter(function(e){return e.number_specific==t.number_specific})[0][e.demographic_full],data:Object.assign.apply(Object,Uc(i.map(function(t){return zc({},t.Responses,t[e.demographic_full])})))}}))}}))}});for(var e=0;e<Wc.length;e++)Wc[e]()}),window.renderDataViz=function(t){var e=t.getAttribute("id"),n=Hc[e];n&&($c?n(t):Wc.push(function(){return n(t)}))}}]);