!function(t){"use strict";var a=function(){this.$body=t("body"),this.charts=[]};a.prototype.respChart=function(a,e,r,o){var s=Chart.controllers.line.prototype.draw;Chart.controllers.line.prototype.draw=function(){s.apply(this,arguments);var t=this.chart.chart.ctx,a=t.stroke;t.stroke=function(){t.save(),t.shadowColor="rgba(0,0,0,0.01)",t.shadowBlur=20,t.shadowOffsetX=0,t.shadowOffsetY=5,a.apply(this,arguments),t.restore()}};var n=a.get(0).getContext("2d"),i=t(a).parent();return function(){var s;switch(a.attr("width",t(i).width()),e){case"Line":s=new Chart(n,{type:"line",data:r,options:o});break;case"Doughnut":s=new Chart(n,{type:"doughnut",data:r,options:o});break;case"Pie":s=new Chart(n,{type:"pie",data:r,options:o});break;case"Bar":s=new Chart(n,{type:"bar",data:r,options:o});break;case"Radar":s=new Chart(n,{type:"radar",data:r,options:o});break;case"PolarArea":s=new Chart(n,{data:r,type:"polarArea",options:o})}return s}()},a.prototype.initCharts=function(){var a=[];if(t("#line-chart-example").length>0){a.push(this.respChart(t("#line-chart-example"),"Line",{labels:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],datasets:[{label:"Completed Tasks",backgroundColor:"rgba(10, 207, 151, 0.3)",borderColor:"#0acf97",data:[32,42,42,62,52,75,62]},{label:"Plan Tasks",fill:!0,backgroundColor:"transparent",borderColor:"#727cf5",borderDash:[5,5],data:[42,58,66,93,82,105,92]}]},{maintainAspectRatio:!1,legend:{display:!1},tooltips:{intersect:!1},hover:{intersect:!0},plugins:{filler:{propagate:!1}},scales:{xAxes:[{reverse:!0,gridLines:{color:"rgba(0,0,0,0.05)"}}],yAxes:[{ticks:{stepSize:20},display:!0,borderDash:[5,5],gridLines:{color:"rgba(0,0,0,0)",fontColor:"#fff"}}]}}))}return a},a.prototype.init=function(){var a=this;Chart.defaults.global.defaultFontFamily='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',a.charts=this.initCharts(),t(window).on("resize",function(e){t.each(a.charts,function(t,a){try{a.destroy()}catch(t){}}),a.charts=a.initCharts()})},t.ChartJs=new a,t.ChartJs.Constructor=a}(window.jQuery),function(t){"use strict";t.ChartJs.init()}(window.jQuery);