"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[5084],{77076:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c});var n=r(79765),a=r(68285),o=r(2211),i=r(2774),l=r.n(i),s=r(45099),u=r(74758),d=function(){return d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},d.apply(this,arguments)},f=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=function(){var e,t,r,i=(0,a.Z6)();if(i.data){var c=function(e){var t=null===(r=i.data)||void 0===r?void 0:r[e];(0,u.assert)(!!t,"no country found for "+e),t.data=t.data.map((function(r){var n=r.deltaDeaths/s.q[e].population*1e5;return isNaN(n)&&console.log({d:r,c:e,country:t,delta:n}),d(d({},r),{y:n<=0?0:n})}))};try{for(var y=f(Object.keys(i.data)),v=y.next();!v.done;v=y.next()){c(v.value)}}catch(t){e={error:t}}finally{try{v&&!v.done&&(t=y.return)&&t.call(y)}finally{if(e)throw e.error}}}return(0,n.jsx)(o.Z,{heading:"Daily Increase in deaths",xAxisLabel:"Days since first reported death",yAxisLabel:"Increase in deaths from previous day (per 100,000 people)",result:i,labels:function(e){var t=e.datum;return l()(null==t?void 0:t.x).format("DD/MM/YY")+"\n total deaths = "+t.deaths+"\n daily increase = "+t.deltaDeaths}},void 0)}}}]);
//# sourceMappingURL=src-components-IncreseFromPreviousDay-ad1f2c58d820af084d5e.js.map