!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=t()}(function(){return function n(o,a,r){function s(i,t){if(!a[i]){if(!o[i]){var e="function"==typeof require&&require;if(!t&&e)return e(i,!0);if(l)return l(i,!0);t=new Error("Cannot find module '"+i+"'");throw t.code="MODULE_NOT_FOUND",t}e=a[i]={exports:{}};o[i][0].call(e.exports,function(t){var e=o[i][1][t];return s(e||t)},e,e.exports,n,o,a,r)}return a[i].exports}for(var l="function"==typeof require&&require,t=0;t<r.length;t++)s(r[t]);return s}({1:[function(t,e,i){},{}],2:[function(t,e,i){var a=t(6);function n(t){if(t){var e=[0,0,0],i=1;if(n=t.match(/^#([a-fA-F0-9]{3})$/i))for(var n=n[1],o=0;o<e.length;o++)e[o]=parseInt(n[o]+n[o],16);else if(n=t.match(/^#([a-fA-F0-9]{6})$/i)){n=n[1];for(o=0;o<e.length;o++)e[o]=parseInt(n.slice(2*o,2*o+2),16)}else if(n=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=parseInt(n[o+1]);i=parseFloat(n[4])}else if(n=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=Math.round(2.55*parseFloat(n[o+1]));i=parseFloat(n[4])}else if(n=t.match(/(\w+)/)){if("transparent"==n[1])return[0,0,0,0];if(!(e=a[n[1]]))return}for(o=0;o<e.length;o++)e[o]=d(e[o],0,255);return i=i||0==i?d(i,0,1):1,e[3]=i,e}}function o(t){var e;if(t)return(t=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/))?(e=parseFloat(t[4]),[d(parseInt(t[1]),0,360),d(parseFloat(t[2]),0,100),d(parseFloat(t[3]),0,100),d(isNaN(e)?1:e,0,1)]):void 0}function r(t){var e;if(t)return(t=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/))?(e=parseFloat(t[4]),[d(parseInt(t[1]),0,360),d(parseFloat(t[2]),0,100),d(parseFloat(t[3]),0,100),d(isNaN(e)?1:e,0,1)]):void 0}function s(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function l(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function u(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function d(t,e,i){return Math.min(Math.max(e,t),i)}function c(t){t=t.toString(16).toUpperCase();return t.length<2?"0"+t:t}e.exports={getRgba:n,getHsla:o,getRgb:function(t){t=n(t);return t&&t.slice(0,3)},getHsl:function(t){t=o(t);return t&&t.slice(0,3)},getHwb:r,getAlpha:function(t){var e=n(t);return(e=(e=e||o(t))||r(t))?e[3]:void 0},hexString:function(t){return"#"+c(t[0])+c(t[1])+c(t[2])},rgbString:function(t,e){if(e<1||t[3]&&t[3]<1)return s(t,e);return"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:s,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return l(t,e);var e=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),t=Math.round(t[2]/255*100);return"rgb("+e+"%, "+i+"%, "+t+"%)"},percentaString:l,hslString:function(t,e){if(e<1||t[3]&&t[3]<1)return u(t,e);return"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:u,hwbString:function(t,e){void 0===e&&(e=void 0!==t[3]?t[3]:1);return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return f[t.slice(0,3)]}};var h,f={};for(h in a)f[a[h]]=h},{6:6}],3:[function(t,e,i){function r(t){var e;return t instanceof r?t:this instanceof r?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof t?(e=n.getRgba(t))?this.setValues("rgb",e):(e=n.getHsla(t))?this.setValues("hsl",e):(e=n.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new r(t)}var d=t(5),n=t(2);(r.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t=t&&((t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return n.hexString(this.values.rgb)},rgbString:function(){return n.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return n.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return n.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return n.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return n.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return n.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return n.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],i=0;i<t.length;i++){var n=t[i]/255;e[i]=n<=.03928?n/12.92:Math.pow((.055+n)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),t=t.luminosity();return t<e?(e+.05)/(t+.05):(t+.05)/(e+.05)},level:function(t){t=this.contrast(t);return 7.1<=t?"AAA":4.5<=t?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,t=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,t=(e[0]+t)%360;return e[0]=t<0?360+t:t,this.setValues("hsl",e),this},mix:function(t,e){var i=this,e=void 0===e?.5:e,n=2*e-1,o=i.alpha()-t.alpha(),n=(1+(n*o==-1?n:(n+o)/(1+n*o)))/2,o=1-n;return this.rgb(n*i.red()+o*t.red(),n*i.green()+o*t.green(),n*i.blue()+o*t.blue()).alpha(i.alpha()*e+t.alpha()*(1-e))},toJSON:function(){return this.rgb()},clone:function(){var t,e,i,n=new r,o=this.values,a=n.values;for(i in o)o.hasOwnProperty(i)&&(t=o[i],"[object Array]"===(e={}.toString.call(t))?a[i]=t.slice(0):"[object Number]"===e?a[i]=t:console.error("unexpected color value:",t));return n}}).spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},r.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},r.prototype.getValues=function(t){for(var e=this.values,i={},n=0;n<t.length;n++)i[t.charAt(n)]=e[t][n];return 1!==e.alpha&&(i.a=e.alpha),i},r.prototype.setValues=function(t,e){var i,n,o=this.values,a=this.spaces,r=this.maxes,s=1;if(this.valid=!0,"alpha"===t)s=e;else if(e.length)o[t]=e.slice(0,t.length),s=e[t.length];else if(void 0!==e[t.charAt(0)]){for(u=0;u<t.length;u++)o[t][u]=e[t.charAt(u)];s=e.a}else if(void 0!==e[a[t][0]]){for(var l=a[t],u=0;u<t.length;u++)o[t][u]=e[l[u]];s=e.alpha}if(o.alpha=Math.max(0,Math.min(1,void 0===s?o.alpha:s)),"alpha"===t)return!1;for(u=0;u<t.length;u++)i=Math.max(0,Math.min(r[t][u],o[t][u])),o[t][u]=Math.round(i);for(n in a)n!==t&&(o[n]=d[t][n](o[t]));return!0},r.prototype.setSpace=function(t,e){var i=e[0];return void 0===i?this.getValues(t):("number"==typeof i&&(i=Array.prototype.slice.call(e)),this.setValues(t,i),this)},r.prototype.setChannel=function(t,e,i){var n=this.values[t];return void 0===i?n[e]:(i!==n[e]&&(n[e]=i,this.setValues(t,n)),this)},"undefined"!=typeof window&&(window.Color=r),e.exports=r},{2:2,5:5}],4:[function(t,e,i){function o(t){var e,i=t[0]/255,n=t[1]/255,t=t[2]/255,o=Math.min(i,n,t),a=Math.max(i,n,t),r=a-o;return a==o?e=0:i==a?e=(n-t)/r:n==a?e=2+(t-i)/r:t==a&&(e=4+(i-n)/r),(e=Math.min(60*e,360))<0&&(e+=360),t=(o+a)/2,[e,100*(a==o?0:t<=.5?r/(a+o):r/(2-a-o)),100*t]}function n(t){var e,i=t[0],n=t[1],t=t[2],o=Math.min(i,n,t),a=Math.max(i,n,t),r=a-o,s=0==a?0:r/a*1e3/10;return a==o?e=0:i==a?e=(n-t)/r:n==a?e=2+(t-i)/r:t==a&&(e=4+(i-n)/r),(e=Math.min(60*e,360))<0&&(e+=360),[e,s,a/255*1e3/10]}function a(t){var e=t[0],i=t[1],n=t[2];return[o(t)[0],100*(1/255*Math.min(e,Math.min(i,n))),100*(1-1/255*Math.max(e,Math.max(i,n)))]}function s(t){var e=t[0]/255,i=t[1]/255,t=t[2]/255,n=Math.min(1-e,1-i,1-t);return[100*((1-e-n)/(1-n)||0),100*((1-i-n)/(1-n)||0),100*((1-t-n)/(1-n)||0),100*n]}function l(t){return _[JSON.stringify(t)]}function u(t){var e=t[0]/255,i=t[1]/255,t=t[2]/255;return[100*(.4124*(e=.04045<e?Math.pow((.055+e)/1.055,2.4):e/12.92)+.3576*(i=.04045<i?Math.pow((.055+i)/1.055,2.4):i/12.92)+.1805*(t=.04045<t?Math.pow((.055+t)/1.055,2.4):t/12.92)),100*(.2126*e+.7152*i+.0722*t),100*(.0193*e+.1192*i+.9505*t)]}function d(t){var t=u(t),e=t[0],i=t[1],t=t[2];return i/=100,t/=108.883,e=.008856<(e/=95.047)?Math.pow(e,1/3):7.787*e+16/116,[116*(i=.008856<i?Math.pow(i,1/3):7.787*i+16/116)-16,500*(e-i),200*(i-(.008856<t?Math.pow(t,1/3):7.787*t+16/116))]}function c(t){var e,i,n=t[0]/360,o=t[1]/100,t=t[2]/100;if(0==o)return[i=255*t,i,i];for(var a,r=2*t-(a=t<.5?t*(1+o):t+o-t*o),s=[0,0,0],l=0;l<3;l++)(e=n+1/3*-(l-1))<0&&e++,1<e&&e--,s[l]=255*(i=6*e<1?r+6*(a-r)*e:2*e<1?a:3*e<2?r+(a-r)*(2/3-e)*6:r);return s}function h(t){var e=t[0]/60,i=t[1]/100,n=t[2]/100,t=Math.floor(e)%6,e=e-Math.floor(e),o=255*n*(1-i),a=255*n*(1-i*e),r=255*n*(1-i*(1-e)),n=255*n;switch(t){case 0:return[n,r,o];case 1:return[a,n,o];case 2:return[o,n,r];case 3:return[o,a,n];case 4:return[r,o,n];case 5:return[n,o,a]}}function f(t){var e,i,n=t[0]/360,o=t[1]/100,t=t[2]/100,a=o+t;switch(1<a&&(o/=a,t/=a),n=6*n-(a=Math.floor(6*n)),i=o+(n=0!=(1&a)?1-n:n)*((e=1-t)-o),a){default:case 6:case 0:r=e,g=i,b=o;break;case 1:r=i,g=e,b=o;break;case 2:r=o,g=e,b=i;break;case 3:r=o,g=i,b=e;break;case 4:r=i,g=o,b=e;break;case 5:r=e,g=o,b=i}return[255*r,255*g,255*b]}function p(t){var e=t[0]/100,i=t[1]/100,n=t[2]/100,t=t[3]/100;return[255*(1-Math.min(1,e*(1-t)+t)),255*(1-Math.min(1,i*(1-t)+t)),255*(1-Math.min(1,n*(1-t)+t))]}function m(t){var e=t[0]/100,i=t[1]/100,t=t[2]/100,n=3.2406*e+-1.5372*i+-.4986*t,o=-.9689*e+1.8758*i+.0415*t,e=.0557*e+-.204*i+1.057*t;return n=.0031308<n?1.055*Math.pow(n,1/2.4)-.055:12.92*n,o=.0031308<o?1.055*Math.pow(o,1/2.4)-.055:12.92*o,e=.0031308<e?1.055*Math.pow(e,1/2.4)-.055:12.92*e,[255*(n=Math.min(Math.max(0,n),1)),255*(o=Math.min(Math.max(0,o),1)),255*(e=Math.min(Math.max(0,e),1))]}function v(t){var e=t[0],i=t[1],t=t[2];return i/=100,t/=108.883,e=.008856<(e/=95.047)?Math.pow(e,1/3):7.787*e+16/116,[116*(i=.008856<i?Math.pow(i,1/3):7.787*i+16/116)-16,500*(e-i),200*(i-(.008856<t?Math.pow(t,1/3):7.787*t+16/116))]}function x(t){var e,i=t[0],n=t[1],t=t[2],i=i<=8?(e=100*i/903.3)/100*7.787+16/116:(e=100*Math.pow((i+16)/116,3),Math.pow(e/100,1/3)),o=o/95.047<=.008856?95.047*(n/500+i-16/116)/7.787:95.047*Math.pow(n/500+i,3),a=a/108.883<=.008859?108.883*(i-t/200-16/116)/7.787:108.883*Math.pow(i-t/200,3);return[o,e,a]}function y(t){var e=t[0],i=t[1],t=t[2],n=360*Math.atan2(t,i)/2/Math.PI;return n<0&&(n+=360),[e,Math.sqrt(i*i+t*t),n]}function k(t){return m(x(t))}function w(t){var e=t[0],i=t[1],t=t[2]/360*2*Math.PI;return[e,i*Math.cos(t),i*Math.sin(t)]}function M(t){return C[t]}e.exports={rgb2hsl:o,rgb2hsv:n,rgb2hwb:a,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:d,rgb2lch:function(t){return y(d(t))},hsl2rgb:c,hsl2hsv:function(t){var e=t[0],i=t[1]/100,t=t[2]/100;return 0!=t?[e,100*(2*(i*=(t*=2)<=1?t:2-t)/(t+i)),100*((t+i)/2)]:[0,0,0]},hsl2hwb:function(t){return a(c(t))},hsl2cmyk:function(t){return s(c(t))},hsl2keyword:function(t){return l(c(t))},hsv2rgb:h,hsv2hsl:function(t){var e,i=t[0],n=t[1]/100,t=t[2]/100;return e=n*t,[i,100*(e=(e/=(i=(2-n)*t)<=1?i:2-i)||0),100*(i/=2)]},hsv2hwb:function(t){return a(h(t))},hsv2cmyk:function(t){return s(h(t))},hsv2keyword:function(t){return l(h(t))},hwb2rgb:f,hwb2hsl:function(t){return o(f(t))},hwb2hsv:function(t){return n(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:p,cmyk2hsl:function(t){return o(p(t))},cmyk2hsv:function(t){return n(p(t))},cmyk2hwb:function(t){return a(p(t))},cmyk2keyword:function(t){return l(p(t))},keyword2rgb:M,keyword2hsl:function(t){return o(M(t))},keyword2hsv:function(t){return n(M(t))},keyword2hwb:function(t){return a(M(t))},keyword2cmyk:function(t){return s(M(t))},keyword2lab:function(t){return d(M(t))},keyword2xyz:function(t){return u(M(t))},xyz2rgb:m,xyz2lab:v,xyz2lch:function(t){return y(v(t))},lab2xyz:x,lab2rgb:k,lab2lch:y,lch2lab:w,lch2xyz:function(t){return x(w(t))},lch2rgb:function(t){return k(w(t))}};var S,C={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},_={};for(S in C)_[JSON.stringify(C[S])]=S},{}],5:[function(t,e,i){function o(){return new l}var n,a=t(4);for(n in a){o[n+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),a[e](t)}}(n);var r=/(\w+)2(\w+)/.exec(n),s=r[1],r=r[2];(o[s]=o[s]||{})[r]=o[n]=function(n){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var e=a[n](t);if("string"!=typeof e&&void 0!==e)for(var i=0;i<e.length;i++)e[i]=Math.round(e[i]);return e}}(n)}var l=function(){this.convs={}};l.prototype.routeSpace=function(t,e){var i=e[0];return void 0===i?this.getValues(t):("number"==typeof i&&(i=Array.prototype.slice.call(e)),this.setValues(t,i))},l.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},l.prototype.getValues=function(t){var e,i,n=this.convs[t];return n||(e=this.space,i=this.convs[e],n=o[e][t](i),this.convs[t]=n),n},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){l.prototype[e]=function(t){return this.routeSpace(e,arguments)}}),e.exports=o},{4:4}],6:[function(t,e,i){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],7:[function(t,e,i){var n=t(29)(),o=(n.helpers=t(45),t(27)(n),n.defaults=t(25),n.Element=t(26),n.elements=t(40),n.Interaction=t(28),n.platform=t(48),t(31)(n),t(22)(n),t(23)(n),t(24)(n),t(30)(n),t(33)(n),t(32)(n),t(35)(n),t(54)(n),t(52)(n),t(53)(n),t(55)(n),t(56)(n),t(57)(n),t(15)(n),t(16)(n),t(17)(n),t(18)(n),t(19)(n),t(20)(n),t(21)(n),t(8)(n),t(9)(n),t(10)(n),t(11)(n),t(12)(n),t(13)(n),t(14)(n),[]);o.push(t(49)(n),t(50)(n),t(51)(n)),n.plugins.register(o),n.platform.initialize(),e.exports=n,"undefined"!=typeof window&&(window.Chart=n),n.canvasHelpers=n.helpers.canvas},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,35:35,40:40,45:45,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,8:8,9:9}],8:[function(t,e,i){"use strict";e.exports=function(i){i.Bar=function(t,e){return e.type="bar",new i(t,e)}}},{}],9:[function(t,e,i){"use strict";e.exports=function(i){i.Bubble=function(t,e){return e.type="bubble",new i(t,e)}}},{}],10:[function(t,e,i){"use strict";e.exports=function(i){i.Doughnut=function(t,e){return e.type="doughnut",new i(t,e)}}},{}],11:[function(t,e,i){"use strict";e.exports=function(i){i.Line=function(t,e){return e.type="line",new i(t,e)}}},{}],12:[function(t,e,i){"use strict";e.exports=function(i){i.PolarArea=function(t,e){return e.type="polarArea",new i(t,e)}}},{}],13:[function(t,e,i){"use strict";e.exports=function(i){i.Radar=function(t,e){return e.type="radar",new i(t,e)}}},{}],14:[function(t,e,i){"use strict";e.exports=function(i){i.Scatter=function(t,e){return e.type="scatter",new i(t,e)}}},{}],15:[function(t,e,i){"use strict";var n=t(25),o=t(40),c=t(45);n._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),n._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var i="";return 0<t.length&&(t[0].yLabel?i=t[0].yLabel:0<e.labels.length&&t[0].index<e.labels.length&&(i=e.labels[t[0].index])),i},label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": "+t.xLabel}},mode:"index",axis:"y"}}),e.exports=function(e){e.controllers.bar=e.DatasetController.extend({dataElementType:o.Rectangle,initialize:function(){var t;e.DatasetController.prototype.initialize.apply(this,arguments),(t=this.getMeta()).stack=this.getDataset().stack,t.bar=!0},update:function(t){var e,i,n=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,i=n.length;e<i;++e)this.updateElement(n[e],e,t)},updateElement:function(t,e,i){var n=this,o=n.chart,a=n.getMeta(),r=n.getDataset(),s=t.custom||{},l=o.options.elements.rectangle;t._xScale=n.getScaleForId(a.xAxisID),t._yScale=n.getScaleForId(a.yAxisID),t._datasetIndex=n.index,t._index=e,t._model={datasetLabel:r.label,label:o.data.labels[e],borderSkipped:s.borderSkipped||l.borderSkipped,backgroundColor:s.backgroundColor||c.valueAtIndexOrDefault(r.backgroundColor,e,l.backgroundColor),borderColor:s.borderColor||c.valueAtIndexOrDefault(r.borderColor,e,l.borderColor),borderWidth:s.borderWidth||c.valueAtIndexOrDefault(r.borderWidth,e,l.borderWidth)},n.updateElementGeometry(t,e,i),t.pivot()},updateElementGeometry:function(t,e,i){var n=this,t=t._model,o=n.getValueScale(),a=o.getBasePixel(),o=o.isHorizontal(),r=n._ruler||n.getRuler(),s=n.calculateBarValuePixels(n.index,e),n=n.calculateBarIndexPixels(n.index,e,r);t.horizontal=o,t.base=i?a:s.base,t.x=o?i?a:s.head:n.center,t.y=o?n.center:i?a:s.head,t.height=o?n.size:void 0,t.width=o?void 0:n.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},getStackCount:function(t){for(var e,i=this.chart,n=this.getIndexScale().options.stacked,o=void 0===t?i.data.datasets.length:t+1,a=[],r=0;r<o;++r)(e=i.getDatasetMeta(r)).bar&&i.isDatasetVisible(r)&&(!1===n||!0===n&&-1===a.indexOf(e.stack)||void 0===n&&(void 0===e.stack||-1===a.indexOf(e.stack)))&&a.push(e.stack);return a.length},getStackIndex:function(t){return this.getStackCount(t)-1},getRuler:function(){for(var t=this.getIndexScale(),e=this.getStackCount(),i=this.index,n=[],o=t.isHorizontal(),a=o?t.left:t.top,o=a+(o?t.width:t.height),r=0,s=this.getMeta().data.length;r<s;++r)n.push(t.getPixelForValue(null,r,i));return{pixels:n,start:a,end:o,stackCount:e,scale:t}},calculateBarValuePixels:function(t,e){var i,n,o,a=this.chart,r=this.getMeta(),s=this.getValueScale(),l=a.data.datasets,u=s.getRightValue(l[t].data[e]),d=s.options.stacked,c=r.stack,h=0;if(d||void 0===d&&void 0!==c)for(i=0;i<t;++i)(n=a.getDatasetMeta(i)).bar&&n.stack===c&&n.controller.getValueScaleId()===s.id&&a.isDatasetVisible(i)&&(n=s.getRightValue(l[i].data[e]),u<0&&n<0||0<=u&&0<n)&&(h+=n);return r=s.getPixelForValue(h),{size:o=((d=s.getPixelForValue(h+u))-r)/2,base:r,head:d,center:d+o/2}},calculateBarIndexPixels:function(t,e,i){var n,o,a=i.scale.options,t=this.getStackIndex(t),r=i.pixels,s=r[e],l=r.length,u=i.start,d=i.end;return 1===l?(n=u<s?s-u:d-s,o=s<d?d-s:s-u):(0<e&&(n=(s-r[e-1])/2,e===l-1)&&(o=n),e<l-1&&(o=(r[e+1]-s)/2,0===e)&&(n=o)),l=(u=((d=n*a.categoryPercentage)+o*a.categoryPercentage)/i.stackCount)*a.barPercentage,{size:l=Math.min(c.valueOrDefault(a.barThickness,l),c.valueOrDefault(a.maxBarThickness,1/0)),base:s=(s-=d)+u*t+(u-l)/2,head:s+l,center:s+l/2}},draw:function(){var t=this.chart,e=this.getValueScale(),i=this.getMeta().data,n=this.getDataset(),o=i.length,a=0;for(c.canvas.clipArea(t.ctx,t.chartArea);a<o;++a)isNaN(e.getRightValue(n.data[a]))||i[a].draw();c.canvas.unclipArea(t.ctx)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},t=t._model;t.backgroundColor=n.hoverBackgroundColor||c.valueAtIndexOrDefault(e.hoverBackgroundColor,i,c.getHoverColor(t.backgroundColor)),t.borderColor=n.hoverBorderColor||c.valueAtIndexOrDefault(e.hoverBorderColor,i,c.getHoverColor(t.borderColor)),t.borderWidth=n.hoverBorderWidth||c.valueAtIndexOrDefault(e.hoverBorderWidth,i,t.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},t=t._model,o=this.chart.options.elements.rectangle;t.backgroundColor=n.backgroundColor||c.valueAtIndexOrDefault(e.backgroundColor,i,o.backgroundColor),t.borderColor=n.borderColor||c.valueAtIndexOrDefault(e.borderColor,i,o.borderColor),t.borderWidth=n.borderWidth||c.valueAtIndexOrDefault(e.borderWidth,i,o.borderWidth)}}),e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{25:25,40:40,45:45}],16:[function(t,e,i){"use strict";var n=t(25),o=t(40),f=t(45);n._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var i=e.datasets[t.datasetIndex].label||"",e=e.datasets[t.datasetIndex].data[t.index];return i+": ("+t.xLabel+", "+t.yLabel+", "+e.r+")"}}}}),e.exports=function(t){t.controllers.bubble=t.DatasetController.extend({dataElementType:o.Point,update:function(i){var n=this,t=n.getMeta().data;f.each(t,function(t,e){n.updateElement(t,e,i)})},updateElement:function(t,e,i){var n=this,o=n.getMeta(),a=t.custom||{},r=n.getScaleForId(o.xAxisID),o=n.getScaleForId(o.yAxisID),s=n._resolveElementOptions(t,e),l=n.getDataset().data[e],n=n.index,u=i?r.getPixelForDecimal(.5):r.getPixelForValue("object"==typeof l?l:NaN,e,n),l=i?o.getBasePixel():o.getPixelForValue(l,e,n);t._xScale=r,t._yScale=o,t._options=s,t._datasetIndex=n,t._index=e,t._model={backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth,hitRadius:s.hitRadius,pointStyle:s.pointStyle,radius:i?0:s.radius,skip:a.skip||isNaN(u)||isNaN(l),x:u,y:l},t.pivot()},setHoverStyle:function(t){var e=t._model,t=t._options;e.backgroundColor=f.valueOrDefault(t.hoverBackgroundColor,f.getHoverColor(t.backgroundColor)),e.borderColor=f.valueOrDefault(t.hoverBorderColor,f.getHoverColor(t.borderColor)),e.borderWidth=f.valueOrDefault(t.hoverBorderWidth,t.borderWidth),e.radius=t.radius+t.hoverRadius},removeHoverStyle:function(t){var e=t._model,t=t._options;e.backgroundColor=t.backgroundColor,e.borderColor=t.borderColor,e.borderWidth=t.borderWidth,e.radius=t.radius},_resolveElementOptions:function(t,e){for(var i,n=this.chart,o=n.data.datasets[this.index],a=t.custom||{},r=n.options.elements.point,s=f.options.resolve,t=o.data[e],l={},u={chart:n,dataIndex:e,dataset:o,datasetIndex:this.index},d=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle"],c=0,h=d.length;c<h;++c)l[i=d[c]]=s([a[i],o[i],r[i]],u,e);return l.radius=s([a.radius,t?t.r:void 0,o.radius,r.radius],u,e),l}})}},{25:25,40:40,45:45}],17:[function(t,e,i){"use strict";var n=t(25),o=t(40),v=t(45);n._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e=[],t=(e.push('<ul class="'+t.id+'-legend">'),t.data),i=t.datasets,n=t.labels;if(i.length)for(var o=0;o<i[0].data.length;++o)e.push('<li><span style="background-color:'+i[0].backgroundColor[o]+'"></span>'),n[o]&&e.push(n[o]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var i=s.getDatasetMeta(0),n=l.datasets[0],o=i.data[e],o=o&&o.custom||{},a=v.valueAtIndexOrDefault,r=s.options.elements.arc;return{text:t,fillStyle:o.backgroundColor||a(n.backgroundColor,e,r.backgroundColor),strokeStyle:o.borderColor||a(n.borderColor,e,r.borderColor),lineWidth:o.borderWidth||a(n.borderWidth,e,r.borderWidth),hidden:isNaN(n.data[e])||i.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var i,n=e.index,o=this.chart,a=0,r=(o.data.datasets||[]).length;a<r;++a)(i=o.getDatasetMeta(a)).data[n]&&(i.data[n].hidden=!i.data[n].hidden);o.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var i=e.labels[t.index],e=": "+e.datasets[t.datasetIndex].data[t.index];return v.isArray(i)?(i=i.slice())[0]+=e:i+=e,i}}}}),n._set("pie",v.clone(n.doughnut)),n._set("pie",{cutoutPercentage:0}),e.exports=function(e){e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:o.Arc,linkScales:v.noop,getRingIndex:function(t){for(var e=0,i=0;i<t;++i)this.chart.isDatasetVisible(i)&&++e;return e},update:function(i){var t,e,n,o,a,r,s,l=this,u=l.chart,d=u.chartArea,c=u.options,h=c.elements.arc,f=d.right-d.left-h.borderWidth,d=d.bottom-d.top-h.borderWidth,h=Math.min(f,d),g={x:0,y:0},p=l.getMeta(),m=c.cutoutPercentage,b=c.circumference;b<2*Math.PI&&(c=c.rotation%(2*Math.PI),b=(c+=2*Math.PI*(c>=Math.PI?-1:c<-Math.PI?1:0))+b,s=Math.cos(c),t=Math.sin(c),e=Math.cos(b),n=Math.sin(b),r=c<=0&&0<=b||c<=2*Math.PI&&2*Math.PI<=b,o=c<=.5*Math.PI&&.5*Math.PI<=b||c<=2.5*Math.PI&&2.5*Math.PI<=b,a=c<=-Math.PI&&-Math.PI<=b||c<=Math.PI&&Math.PI<=b,c=c<=.5*-Math.PI&&.5*-Math.PI<=b||c<=1.5*Math.PI&&1.5*Math.PI<=b,b=m/100,a=a?-1:Math.min(s*(s<0?1:b),e*(e<0?1:b)),c=c?-1:Math.min(t*(t<0?1:b),n*(n<0?1:b)),r=r?1:Math.max(s*(0<s?1:b),e*(0<e?1:b)),s=o?1:Math.max(t*(0<t?1:b),n*(0<n?1:b)),h=Math.min(f/(.5*(r-a)),d/(.5*(s-c))),g={x:-.5*(r+a),y:-.5*(s+c)}),u.borderWidth=l.getMaxBorderWidth(p.data),u.outerRadius=Math.max((h-u.borderWidth)/2,0),u.innerRadius=Math.max(m?u.outerRadius/100*m:0,0),u.radiusLength=(u.outerRadius-u.innerRadius)/u.getVisibleDatasetCount(),u.offsetX=g.x*u.outerRadius,u.offsetY=g.y*u.outerRadius,p.total=l.calculateTotal(),l.outerRadius=u.outerRadius-u.radiusLength*l.getRingIndex(l.index),l.innerRadius=Math.max(l.outerRadius-u.radiusLength,0),v.each(p.data,function(t,e){l.updateElement(t,e,i)})},updateElement:function(t,e,i){var n=this,o=n.chart,a=o.chartArea,r=o.options,s=r.animation,l=(a.left+a.right)/2,a=(a.top+a.bottom)/2,u=r.rotation,d=r.rotation,c=n.getDataset(),h=i&&s.animateRotate||t.hidden?0:n.calculateCircumference(c.data[e])*(r.circumference/(2*Math.PI)),f=i&&s.animateScale?0:n.innerRadius,g=i&&s.animateScale?0:n.outerRadius,p=v.valueAtIndexOrDefault,l=(v.extend(t,{_datasetIndex:n.index,_index:e,_model:{x:l+o.offsetX,y:a+o.offsetY,startAngle:u,endAngle:d,circumference:h,outerRadius:g,innerRadius:f,label:p(c.label,e,o.data.labels[e])}}),t._model);this.removeHoverStyle(t),i&&s.animateRotate||(l.startAngle=0===e?r.rotation:n.getMeta().data[e-1]._model.endAngle,l.endAngle=l.startAngle+l.circumference),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function(){var i,n=this.getDataset(),t=this.getMeta(),o=0;return v.each(t.data,function(t,e){i=n.data[e],isNaN(i)||t.hidden||(o+=Math.abs(i))}),o},calculateCircumference:function(t){var e=this.getMeta().total;return 0<e&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,i=0,n=this.index,o=t.length,a=0;a<o;a++)i=(i=i<(e=t[a]._model?t[a]._model.borderWidth:0)?e:i)<(e=t[a]._chart?t[a]._chart.config.data.datasets[n].hoverBorderWidth:0)?e:i;return i}})}},{25:25,40:40,45:45}],18:[function(t,e,i){"use strict";var n=t(25),o=t(40),f=t(45);n._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function h(t,e){return f.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:o.Line,dataElementType:o.Point,update:function(t){var e,i,n,o=this,a=o.getMeta(),r=a.dataset,s=a.data||[],l=o.chart.options,u=l.elements.line,a=o.getScaleForId(a.yAxisID),d=o.getDataset(),c=h(d,l);for(c&&(n=r.custom||{},void 0!==d.tension&&void 0===d.lineTension&&(d.lineTension=d.tension),r._scale=a,r._datasetIndex=o.index,r._children=s,r._model={spanGaps:d.spanGaps||l.spanGaps,tension:n.tension||f.valueOrDefault(d.lineTension,u.tension),backgroundColor:n.backgroundColor||d.backgroundColor||u.backgroundColor,borderWidth:n.borderWidth||d.borderWidth||u.borderWidth,borderColor:n.borderColor||d.borderColor||u.borderColor,borderCapStyle:n.borderCapStyle||d.borderCapStyle||u.borderCapStyle,borderDash:n.borderDash||d.borderDash||u.borderDash,borderDashOffset:n.borderDashOffset||d.borderDashOffset||u.borderDashOffset,borderJoinStyle:n.borderJoinStyle||d.borderJoinStyle||u.borderJoinStyle,fill:n.fill||(void 0!==d.fill?d:u).fill,steppedLine:n.steppedLine||f.valueOrDefault(d.steppedLine,u.stepped),cubicInterpolationMode:n.cubicInterpolationMode||f.valueOrDefault(d.cubicInterpolationMode,u.cubicInterpolationMode)},r.pivot()),e=0,i=s.length;e<i;++e)o.updateElement(s[e],e,t);for(c&&0!==r._model.tension&&o.updateBezierControlPoints(),e=0,i=s.length;e<i;++e)s[e].pivot()},getPointBackgroundColor:function(t,e){var i=this.chart.options.elements.point.backgroundColor,n=this.getDataset(),t=t.custom||{};return t.backgroundColor?i=t.backgroundColor:n.pointBackgroundColor?i=f.valueAtIndexOrDefault(n.pointBackgroundColor,e,i):n.backgroundColor&&(i=n.backgroundColor),i},getPointBorderColor:function(t,e){var i=this.chart.options.elements.point.borderColor,n=this.getDataset(),t=t.custom||{};return t.borderColor?i=t.borderColor:n.pointBorderColor?i=f.valueAtIndexOrDefault(n.pointBorderColor,e,i):n.borderColor&&(i=n.borderColor),i},getPointBorderWidth:function(t,e){var i=this.chart.options.elements.point.borderWidth,n=this.getDataset(),t=t.custom||{};return isNaN(t.borderWidth)?!isNaN(n.pointBorderWidth)||f.isArray(n.pointBorderWidth)?i=f.valueAtIndexOrDefault(n.pointBorderWidth,e,i):isNaN(n.borderWidth)||(i=n.borderWidth):i=t.borderWidth,i},updateElement:function(t,e,i){var n,o=this,a=o.getMeta(),r=t.custom||{},s=o.getDataset(),l=o.index,u=s.data[e],d=o.getScaleForId(a.yAxisID),c=o.getScaleForId(a.xAxisID),h=o.chart.options.elements.point;void 0!==s.radius&&void 0===s.pointRadius&&(s.pointRadius=s.radius),void 0!==s.hitRadius&&void 0===s.pointHitRadius&&(s.pointHitRadius=s.hitRadius),n=c.getPixelForValue("object"==typeof u?u:NaN,e,l),i=i?d.getBasePixel():o.calculatePointY(u,e,l),t._xScale=c,t._yScale=d,t._datasetIndex=l,t._index=e,t._model={x:n,y:i,skip:r.skip||isNaN(n)||isNaN(i),radius:r.radius||f.valueAtIndexOrDefault(s.pointRadius,e,h.radius),pointStyle:r.pointStyle||f.valueAtIndexOrDefault(s.pointStyle,e,h.pointStyle),backgroundColor:o.getPointBackgroundColor(t,e),borderColor:o.getPointBorderColor(t,e),borderWidth:o.getPointBorderWidth(t,e),tension:a.dataset._model?a.dataset._model.tension:0,steppedLine:!!a.dataset._model&&a.dataset._model.steppedLine,hitRadius:r.hitRadius||f.valueAtIndexOrDefault(s.pointHitRadius,e,h.hitRadius)}},calculatePointY:function(t,e,i){var n,o=this.chart,a=this.getMeta(),r=this.getScaleForId(a.yAxisID),s=0,l=0;if(r.options.stacked){for(n=0;n<i;n++){var u,d=o.data.datasets[n];"line"===(u=o.getDatasetMeta(n)).type&&u.yAxisID===r.id&&o.isDatasetVisible(n)&&((u=Number(r.getRightValue(d.data[e])))<0?l+=u||0:s+=u||0)}a=Number(r.getRightValue(t));return a<0?r.getPixelForValue(l+a):r.getPixelForValue(s+a)}return r.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,i,n,o=this.getMeta(),a=this.chart.chartArea,r=o.data||[];function s(t,e,i){return Math.max(Math.min(t,i),e)}if(o.dataset._model.spanGaps&&(r=r.filter(function(t){return!t._model.skip})),"monotone"===o.dataset._model.cubicInterpolationMode)f.splineCurveMonotone(r);else for(t=0,e=r.length;t<e;++t)i=r[t]._model,n=f.splineCurve(f.previousItem(r,t)._model,i,f.nextItem(r,t)._model,o.dataset._model.tension),i.controlPointPreviousX=n.previous.x,i.controlPointPreviousY=n.previous.y,i.controlPointNextX=n.next.x,i.controlPointNextY=n.next.y;if(this.chart.options.elements.line.capBezierPoints)for(t=0,e=r.length;t<e;++t)(i=r[t]._model).controlPointPreviousX=s(i.controlPointPreviousX,a.left,a.right),i.controlPointPreviousY=s(i.controlPointPreviousY,a.top,a.bottom),i.controlPointNextX=s(i.controlPointNextX,a.left,a.right),i.controlPointNextY=s(i.controlPointNextY,a.top,a.bottom)},draw:function(){var t=this.chart,e=this.getMeta(),i=e.data||[],n=t.chartArea,o=i.length,a=0;for(f.canvas.clipArea(t.ctx,n),h(this.getDataset(),t.options)&&e.dataset.draw(),f.canvas.unclipArea(t.ctx);a<o;++a)i[a].draw(n)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},t=t._model;t.radius=n.hoverRadius||f.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),t.backgroundColor=n.hoverBackgroundColor||f.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,f.getHoverColor(t.backgroundColor)),t.borderColor=n.hoverBorderColor||f.valueAtIndexOrDefault(e.pointHoverBorderColor,i,f.getHoverColor(t.borderColor)),t.borderWidth=n.hoverBorderWidth||f.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,t.borderWidth)},removeHoverStyle:function(t){var e=this,i=e.chart.data.datasets[t._datasetIndex],n=t._index,o=t.custom||{},a=t._model;void 0!==i.radius&&void 0===i.pointRadius&&(i.pointRadius=i.radius),a.radius=o.radius||f.valueAtIndexOrDefault(i.pointRadius,n,e.chart.options.elements.point.radius),a.backgroundColor=e.getPointBackgroundColor(t,n),a.borderColor=e.getPointBorderColor(t,n),a.borderWidth=e.getPointBorderWidth(t,n)}})}},{25:25,40:40,45:45}],19:[function(t,e,i){"use strict";var n=t(25),o=t(40),v=t(45);n._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e=[],t=(e.push('<ul class="'+t.id+'-legend">'),t.data),i=t.datasets,n=t.labels;if(i.length)for(var o=0;o<i[0].data.length;++o)e.push('<li><span style="background-color:'+i[0].backgroundColor[o]+'"></span>'),n[o]&&e.push(n[o]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var i=s.getDatasetMeta(0),n=l.datasets[0],o=i.data[e].custom||{},a=v.valueAtIndexOrDefault,r=s.options.elements.arc;return{text:t,fillStyle:o.backgroundColor||a(n.backgroundColor,e,r.backgroundColor),strokeStyle:o.borderColor||a(n.borderColor,e,r.borderColor),lineWidth:o.borderWidth||a(n.borderWidth,e,r.borderWidth),hidden:isNaN(n.data[e])||i.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var i,n=e.index,o=this.chart,a=0,r=(o.data.datasets||[]).length;a<r;++a)(i=o.getDatasetMeta(a)).data[n].hidden=!i.data[n].hidden;o.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}}),e.exports=function(e){e.controllers.polarArea=e.DatasetController.extend({dataElementType:o.Arc,linkScales:v.noop,update:function(i){var n=this,t=n.chart,e=t.chartArea,o=n.getMeta(),a=t.options,r=a.elements.arc,e=Math.min(e.right-e.left,e.bottom-e.top);t.outerRadius=Math.max((e-r.borderWidth/2)/2,0),t.innerRadius=Math.max(a.cutoutPercentage?t.outerRadius/100*a.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),n.outerRadius=t.outerRadius-t.radiusLength*n.index,n.innerRadius=n.outerRadius-t.radiusLength,o.count=n.countVisibleElements(),v.each(o.data,function(t,e){n.updateElement(t,e,i)})},updateElement:function(t,e,i){for(var n=this,o=n.chart,a=n.getDataset(),r=o.options,s=r.animation,l=o.scale,o=o.data.labels,u=n.calculateCircumference(a.data[e]),d=l.xCenter,c=l.yCenter,h=0,f=n.getMeta(),g=0;g<e;++g)isNaN(a.data[g])||f.data[g].hidden||++h;var r=r.startAngle,p=t.hidden?0:l.getDistanceFromCenterForValue(a.data[e]),m=r+u*h,u=m+(t.hidden?0:u),b=s.animateScale?0:l.getDistanceFromCenterForValue(a.data[e]);v.extend(t,{_datasetIndex:n.index,_index:e,_scale:l,_model:{x:d,y:c,innerRadius:0,outerRadius:i?b:p,startAngle:i&&s.animateRotate?r:m,endAngle:i&&s.animateRotate?r:u,label:v.valueAtIndexOrDefault(o,e,o[e])}}),n.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function(){var i=this.getDataset(),t=this.getMeta(),n=0;return v.each(t.data,function(t,e){isNaN(i.data[e])||t.hidden||n++}),n},calculateCircumference:function(t){var e=this.getMeta().count;return 0<e&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,i){"use strict";var n=t(25),o=t(40),u=t(45);n._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:o.Line,dataElementType:o.Point,linkScales:u.noop,update:function(i){var n=this,t=n.getMeta(),e=t.dataset,o=t.data,e=e.custom||{},a=n.getDataset(),r=n.chart.options.elements.line,s=n.chart.scale;void 0!==a.tension&&void 0===a.lineTension&&(a.lineTension=a.tension),u.extend(t.dataset,{_datasetIndex:n.index,_scale:s,_children:o,_loop:!0,_model:{tension:e.tension||u.valueOrDefault(a.lineTension,r.tension),backgroundColor:e.backgroundColor||a.backgroundColor||r.backgroundColor,borderWidth:e.borderWidth||a.borderWidth||r.borderWidth,borderColor:e.borderColor||a.borderColor||r.borderColor,fill:e.fill||(void 0!==a.fill?a:r).fill,borderCapStyle:e.borderCapStyle||a.borderCapStyle||r.borderCapStyle,borderDash:e.borderDash||a.borderDash||r.borderDash,borderDashOffset:e.borderDashOffset||a.borderDashOffset||r.borderDashOffset,borderJoinStyle:e.borderJoinStyle||a.borderJoinStyle||r.borderJoinStyle}}),t.dataset.pivot(),u.each(o,function(t,e){n.updateElement(t,e,i)},n),n.updateBezierControlPoints()},updateElement:function(t,e,i){var n=this,o=t.custom||{},a=n.getDataset(),r=n.chart.scale,s=n.chart.options.elements.point,l=r.getPointPositionForValue(e,a.data[e]);void 0!==a.radius&&void 0===a.pointRadius&&(a.pointRadius=a.radius),void 0!==a.hitRadius&&void 0===a.pointHitRadius&&(a.pointHitRadius=a.hitRadius),u.extend(t,{_datasetIndex:n.index,_index:e,_scale:r,_model:{x:i?r.xCenter:l.x,y:i?r.yCenter:l.y,tension:o.tension||u.valueOrDefault(a.lineTension,n.chart.options.elements.line.tension),radius:o.radius||u.valueAtIndexOrDefault(a.pointRadius,e,s.radius),backgroundColor:o.backgroundColor||u.valueAtIndexOrDefault(a.pointBackgroundColor,e,s.backgroundColor),borderColor:o.borderColor||u.valueAtIndexOrDefault(a.pointBorderColor,e,s.borderColor),borderWidth:o.borderWidth||u.valueAtIndexOrDefault(a.pointBorderWidth,e,s.borderWidth),pointStyle:o.pointStyle||u.valueAtIndexOrDefault(a.pointStyle,e,s.pointStyle),hitRadius:o.hitRadius||u.valueAtIndexOrDefault(a.pointHitRadius,e,s.hitRadius)}}),t._model.skip=o.skip||isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var n=this.chart.chartArea,o=this.getMeta();u.each(o.data,function(t,e){var i=t._model,e=u.splineCurve(u.previousItem(o.data,e,!0)._model,i,u.nextItem(o.data,e,!0)._model,i.tension);i.controlPointPreviousX=Math.max(Math.min(e.previous.x,n.right),n.left),i.controlPointPreviousY=Math.max(Math.min(e.previous.y,n.bottom),n.top),i.controlPointNextX=Math.max(Math.min(e.next.x,n.right),n.left),i.controlPointNextY=Math.max(Math.min(e.next.y,n.bottom),n.top),t.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t.custom||{},n=t._index,t=t._model;t.radius=i.hoverRadius||u.valueAtIndexOrDefault(e.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),t.backgroundColor=i.hoverBackgroundColor||u.valueAtIndexOrDefault(e.pointHoverBackgroundColor,n,u.getHoverColor(t.backgroundColor)),t.borderColor=i.hoverBorderColor||u.valueAtIndexOrDefault(e.pointHoverBorderColor,n,u.getHoverColor(t.borderColor)),t.borderWidth=i.hoverBorderWidth||u.valueAtIndexOrDefault(e.pointHoverBorderWidth,n,t.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t.custom||{},n=t._index,t=t._model,o=this.chart.options.elements.point;t.radius=i.radius||u.valueAtIndexOrDefault(e.pointRadius,n,o.radius),t.backgroundColor=i.backgroundColor||u.valueAtIndexOrDefault(e.pointBackgroundColor,n,o.backgroundColor),t.borderColor=i.borderColor||u.valueAtIndexOrDefault(e.pointBorderColor,n,o.borderColor),t.borderWidth=i.borderWidth||u.valueAtIndexOrDefault(e.pointBorderWidth,n,o.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,i){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,i){"use strict";var n=t(25),o=t(26),a=t(45);n._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:a.noop,onComplete:a.noop}}),e.exports=function(t){t.Animation=o.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,i,n){var o,a,r=this.animations;for(e.chart=t,n||(t.animating=!0),o=0,a=r.length;o<a;++o)if(r[o].chart===t)return void(r[o]=e);r.push(e),1===r.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=a.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=a.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),i=0,i=(1<t.dropFrames&&(i=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+i),Date.now());t.dropFrames+=(i-e)/t.frameDuration,0<t.animations.length&&t.requestAnimationFrame()},advance:function(t){for(var e,i,n=this.animations,o=0;o<n.length;)i=(e=n[o]).chart,e.currentStep=(e.currentStep||0)+t,e.currentStep=Math.min(e.currentStep,e.numSteps),a.callback(e.render,[i,e],i),a.callback(e.onAnimationProgress,[e],i),e.currentStep>=e.numSteps?(a.callback(e.onAnimationComplete,[e],i),i.animating=!1,n.splice(o,1)):++o}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,i){"use strict";var l=t(25),u=t(45),n=t(28),d=t(48);e.exports=function(r){var s=r.plugins;function a(t){return"top"===t||"bottom"===t}r.types={},r.instances={},r.controllers={},u.extend(r.prototype,{construct:function(t,e){var i=this,n=((n=(o=(o=e)||{}).data=o.data||{}).datasets=n.datasets||[],n.labels=n.labels||[],o.options=u.configMerge(l.global,l[o.type],o.options||{}),e=o,d.acquireContext(t,e)),o=n&&n.canvas,t=o&&o.height,a=o&&o.width;i.id=u.uid(),i.ctx=n,i.canvas=o,i.config=e,i.width=a,i.height=t,i.aspectRatio=t?a/t:null,i.options=e.options,i._bufferedRender=!1,(i.chart=i).controller=i,r.instances[i.id]=i,Object.defineProperty(i,"data",{get:function(){return i.config.data},set:function(t){i.config.data=t}}),n&&o?(i.initialize(),i.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return s.notify(t,"beforeInit"),u.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),s.notify(t,"afterInit"),t},clear:function(){return u.canvas.clear(this),this},stop:function(){return r.animationService.cancelAnimation(this),this},resize:function(t){var e=this,i=e.options,n=e.canvas,o=i.maintainAspectRatio&&e.aspectRatio||null,a=Math.max(0,Math.floor(u.getMaximumWidth(n))),o=Math.max(0,Math.floor(o?a/o:u.getMaximumHeight(n)));e.width===a&&e.height===o||(n.width=e.width=a,n.height=e.height=o,n.style.width=a+"px",n.style.height=o+"px",u.retinaScale(e,i.devicePixelRatio),t)||(s.notify(e,"resize",[n={width:a,height:o}]),e.options.onResize&&e.options.onResize(e,n),e.stop(),e.update(e.options.responsiveAnimationDuration))},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},t=t.scale;u.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),u.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),t&&(t.id=t.id||"scale")},buildScales:function(){var n=this,t=n.options,o=n.scales={},e=[];t.scales&&(e=e.concat((t.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),t.scale&&e.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),u.each(e,function(t){var e=t.options,i=u.valueOrDefault(e.type,t.dtype),i=r.scaleService.getScaleConstructor(i);i&&(a(e.position)!==a(t.dposition)&&(e.position=t.dposition),i=new i({id:e.id,options:e,ctx:n.ctx,chart:n}),(o[i.id]=i).mergeTicksOptions(),t.isDefault)&&(n.scale=i)}),r.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var n=this,o=[],a=[];return u.each(n.data.datasets,function(t,e){var i=n.getDatasetMeta(e),t=t.type||n.config.type;if(i.type&&i.type!==t&&(n.destroyDatasetMeta(e),i=n.getDatasetMeta(e)),i.type=t,o.push(i.type),i.controller)i.controller.updateIndex(e);else{t=r.controllers[i.type];if(void 0===t)throw new Error('"'+i.type+'" is not a chart type.');i.controller=new t(n,e),a.push(i.controller)}},n),a},resetElements:function(){var i=this;u.each(i.data.datasets,function(t,e){i.getDatasetMeta(e).controller.reset()},i)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,i,n=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),(i=(e=n).options).scale?e.scale.options=i.scale:i.scales&&i.scales.xAxes.concat(i.scales.yAxes).forEach(function(t){e.scales[t.id].options=t}),e.tooltip._options=i.tooltips,!1!==s.notify(n,"beforeUpdate")&&(n.tooltip._data=n.data,i=n.buildOrUpdateControllers(),u.each(n.data.datasets,function(t,e){n.getDatasetMeta(e).controller.buildOrUpdateElements()},n),n.updateLayout(),u.each(i,function(t){t.reset()}),n.updateDatasets(),s.notify(n,"afterUpdate"),n._bufferedRender?n._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:n.render(t))},updateLayout:function(){!1!==s.notify(this,"beforeLayout")&&(r.layoutService.update(this,this.width,this.height),s.notify(this,"afterScaleUpdate"),s.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==s.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.updateDataset(t);s.notify(this,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this.getDatasetMeta(t),t={meta:e,index:t};!1!==s.notify(this,"beforeDatasetUpdate",[t])&&(e.controller.update(),s.notify(this,"afterDatasetUpdate",[t]))},render:function(t){var e,i,n=this,o=(t=t&&"object"==typeof t?t:{duration:t,lazy:arguments[1]}).duration,a=t.lazy;if(!1!==s.notify(n,"beforeRender"))return i=function(t){s.notify(n,"afterRender"),u.callback(e&&e.onComplete,[t],n)},(e=n.options.animation)&&(void 0!==o&&0!==o||void 0===o&&0!==e.duration)?(t=new r.Animation({numSteps:(o||e.duration)/16.66,easing:t.easing||e.easing,render:function(t,e){var i=u.easing.effects[e.easing],n=e.currentStep,e=n/e.numSteps;t.draw(i(e),e,n)},onAnimationProgress:e.onProgress,onAnimationComplete:i}),r.animationService.addAnimation(n,t,o,a)):(n.draw(),i(new r.Animation({numSteps:0,chart:n}))),n},draw:function(t){var e=this;e.clear(),u.isNullOrUndef(t)&&(t=1),e.transition(t),!1!==s.notify(e,"beforeDraw",[t])&&(u.each(e.boxes,function(t){t.draw(e.chartArea)},e),e.scale&&e.scale.draw(),e.drawDatasets(t),e.tooltip.draw(),s.notify(e,"afterDraw",[t]))},transition:function(t){for(var e=0,i=(this.data.datasets||[]).length;e<i;++e)this.isDatasetVisible(e)&&this.getDatasetMeta(e).controller.transition(t);this.tooltip.transition(t)},drawDatasets:function(t){var e=this;if(!1!==s.notify(e,"beforeDatasetsDraw",[t])){for(var i=(e.data.datasets||[]).length-1;0<=i;--i)e.isDatasetVisible(i)&&e.drawDataset(i,t);s.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var i=this.getDatasetMeta(t),t={meta:i,index:t,easingValue:e};!1!==s.notify(this,"beforeDatasetDraw",[t])&&(i.controller.draw(e),s.notify(this,"afterDatasetDraw",[t]))},getElementAtEvent:function(t){return n.modes.single(this,t)},getElementsAtEvent:function(t){return n.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return n.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,i){e=n.modes[e];return"function"==typeof e?e(this,t,i):[]},getDatasetAtEvent:function(t){return n.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){t=this.data.datasets[t];return t._meta||(t._meta={}),t._meta[this.id]||(t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null})},getVisibleDatasetCount:function(){for(var t=0,e=0,i=this.data.datasets.length;e<i;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,t=this.data.datasets[t],i=t._meta&&t._meta[e];i&&(i.controller.destroy(),delete t._meta[e])},destroy:function(){var t,e,i=this,n=i.canvas;for(i.stop(),t=0,e=i.data.datasets.length;t<e;++t)i.destroyDatasetMeta(t);n&&(i.unbindEvents(),u.canvas.clear(i),d.releaseContext(i.ctx),i.canvas=null,i.ctx=null),s.notify(i,"destroy"),delete r.instances[i.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new r.Tooltip({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var e=this,i=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};u.each(e.options.events,function(t){d.addEventListener(e,t,n),i[t]=n}),e.options.responsive&&(n=function(){e.resize()},d.addEventListener(e,"resize",n),i.resize=n)},unbindEvents:function(){var i=this,t=i._listeners;t&&(delete i._listeners,u.each(t,function(t,e){d.removeEventListener(i,e,t)}))},updateHoverStyle:function(t,e,i){for(var n,o=i?"setHoverStyle":"removeHoverStyle",a=0,r=t.length;a<r;++a)(n=t[a])&&this.getDatasetMeta(n._datasetIndex).controller[o](n)},eventHandler:function(t){var e,i=this,n=i.tooltip;if(!1!==s.notify(i,"beforeEvent",[t]))return i._bufferedRender=!0,i._bufferedRequest=null,e=i.handleEvent(t),e|=n&&n.handleEvent(t),s.notify(i,"afterEvent",[t]),(n=i._bufferedRequest)?i.render(n):e&&!i.animating&&(i.stop(),i.render(i.options.hover.animationDuration,!0)),i._bufferedRender=!1,i._bufferedRequest=null,i},handleEvent:function(t){var e=this,i=e.options||{},n=i.hover;return e.lastActive=e.lastActive||[],"mouseout"===t.type?e.active=[]:e.active=e.getElementsAtEventForMode(t,n.mode,n),u.callback(i.onHover||i.hover.onHover,[t.native,e.active],e),"mouseup"!==t.type&&"click"!==t.type||i.onClick&&i.onClick.call(e,t.native,e.active),e.lastActive.length&&e.updateHoverStyle(e.lastActive,n.mode,!1),e.active.length&&n.mode&&e.updateHoverStyle(e.active,n.mode,!0),i=!u.arrayEquals(e.active,e.lastActive),e.lastActive=e.active,i}}),r.Controller=r}},{25:25,28:28,45:45,48:48}],24:[function(t,e,i){"use strict";var r=t(45);e.exports=function(t){var n=["push","pop","shift","splice","unshift"];function a(e,t){var i=e._chartjs;i&&(-1!==(t=(i=i.listeners).indexOf(t))&&i.splice(t,1),0<i.length||(n.forEach(function(t){delete e[t]}),delete e._chartjs))}t.DatasetController=function(t,e){this.initialize(t,e)},r.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){this.chart=t,this.index=e,this.linkScales(),this.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this.getMeta(),e=this.getDataset();null===t.xAxisID&&(t.xAxisID=e.xAxisID||this.chart.options.scales.xAxes[0].id),null===t.yAxisID&&(t.yAxisID=e.yAxisID||this.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&a(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){for(var t=this.getMeta(),e=this.getDataset().data||[],i=t.data,n=0,o=e.length;n<o;++n)i[n]=i[n]||this.createMetaData(n);t.dataset=t.dataset||this.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var o,t,e=this,i=e.getDataset(),i=i.data||(i.data=[]);e._data!==i&&(e._data&&a(e._data,e),t=e,(o=i)._chartjs?o._chartjs.listeners.push(t):(Object.defineProperty(o,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),n.forEach(function(t){var i="onData"+t.charAt(0).toUpperCase()+t.slice(1),n=o[t];Object.defineProperty(o,t,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),t=n.apply(this,e);return r.each(o._chartjs.listeners,function(t){"function"==typeof t[i]&&t[i].apply(t,e)}),t}})})),e._data=i),e.resyncElements()},update:r.noop,transition:function(t){for(var e=this.getMeta(),i=e.data||[],n=i.length,o=0;o<n;++o)i[o].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],i=e.length,n=0;for(t.dataset&&t.dataset.draw();n<i;++n)e[n].draw()},removeHoverStyle:function(t,e){var i=this.chart.data.datasets[t._datasetIndex],n=t._index,o=t.custom||{},a=r.valueAtIndexOrDefault,t=t._model;t.backgroundColor=o.backgroundColor||a(i.backgroundColor,n,e.backgroundColor),t.borderColor=o.borderColor||a(i.borderColor,n,e.borderColor),t.borderWidth=o.borderWidth||a(i.borderWidth,n,e.borderWidth)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},o=r.valueAtIndexOrDefault,a=r.getHoverColor,t=t._model;t.backgroundColor=n.hoverBackgroundColor||o(e.hoverBackgroundColor,i,a(t.backgroundColor)),t.borderColor=n.hoverBorderColor||o(e.hoverBorderColor,i,a(t.borderColor)),t.borderWidth=n.hoverBorderWidth||o(e.hoverBorderWidth,i,t.borderWidth)},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,i=t.data.length,e=e.length;e<i?t.data.splice(e,i-e):i<e&&this.insertElements(i,e-i)},insertElements:function(t,e){for(var i=0;i<e;++i)this.addElementAndReset(t+i)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),t.DatasetController.extend=r.inherits}},{45:45}],25:[function(t,e,i){"use strict";var n=t(45);e.exports={_set:function(t,e){return n.merge(this[t]||(this[t]={}),e)}}},{45:45}],26:[function(t,e,i){"use strict";var v=t(3),n=t(45);function o(t){n.extend(this,t),this.initialize.apply(this,arguments)}n.extend(o.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=n.clone(t._model)),t._start={},t},transition:function(t){var e=this,i=e._model,n=e._start,o=e._view;if(i&&1!==t){for(var a,r,s,l,u,d,o=o||(e._view={}),c=n=n||(e._start={}),h=o,f=i,g=t,p=Object.keys(f),m=0,b=p.length;m<b;++m)if(s=f[a=p[m]],h.hasOwnProperty(a)||(h[a]=s),(l=h[a])!==s&&"_"!==a[0]){if(c.hasOwnProperty(a)||(c[a]=l),(l=typeof s)==typeof(r=c[a]))if("string"==l){if((u=v(r)).valid&&(d=v(s)).valid){h[a]=d.mix(u,g).rgbString();continue}}else if("number"==l&&isFinite(r)&&isFinite(s)){h[a]=r+(s-r)*g;continue}h[a]=s}}else e._view=i,e._start=null;return e},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return n.isNumber(this._model.x)&&n.isNumber(this._model.y)}}),o.extend=n.inherits,e.exports=o},{3:3,45:45}],27:[function(t,e,i){"use strict";var n=t(3),o=t(25),h=t(45);e.exports=function(l){function u(t,e,i){var n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}function d(t){return null!=t&&"none"!==t}function e(t,e,i){var n=document.defaultView,o=t.parentNode,a=n.getComputedStyle(t)[e],n=n.getComputedStyle(o)[e],e=d(a),r=d(n),s=Number.POSITIVE_INFINITY;return e||r?Math.min(e?u(a,t,i):s,r?u(n,o,i):s):"none"}h.extend=function(i){for(var t=function(t,e){i[e]=t},e=1,n=arguments.length;e<n;e++)h.each(arguments[e],t);return i},h.configMerge=function(){return h.merge(h.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,e,i,n){var o=e[t]||{},a=i[t];"scales"===t?e[t]=h.scaleMerge(o,a):"scale"===t?e[t]=h.merge(o,[l.scaleService.getScaleDefaults(a.type),a]):h._merger(t,e,i,n)}})},h.scaleMerge=function(){return h.merge(h.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,e,i,n){if("xAxes"===t||"yAxes"===t){var o,a,r,s=i[t].length;for(e[t]||(e[t]=[]),o=0;o<s;++o)r=i[t][o],a=h.valueOrDefault(r.type,"xAxes"===t?"category":"linear"),o>=e[t].length&&e[t].push({}),!e[t][o].type||r.type&&r.type!==e[t][o].type?h.merge(e[t][o],[l.scaleService.getScaleDefaults(a),r]):h.merge(e[t][o],r)}else h._merger(t,e,i,n)}})},h.where=function(t,e){var i;return h.isArray(t)&&Array.prototype.filter?t.filter(e):(i=[],h.each(t,function(t){e(t)&&i.push(t)}),i)},h.findIndex=Array.prototype.findIndex?function(t,e,i){return t.findIndex(e,i)}:function(t,e,i){i=void 0===i?t:i;for(var n=0,o=t.length;n<o;++n)if(e.call(i,t[n],n,t))return n;return-1},h.findNextWhere=function(t,e,i){for(var n=(i=h.isNullOrUndef(i)?-1:i)+1;n<t.length;n++){var o=t[n];if(e(o))return o}},h.findPreviousWhere=function(t,e,i){for(var n=(i=h.isNullOrUndef(i)?t.length:i)-1;0<=n;n--){var o=t[n];if(e(o))return o}},h.inherits=function(t){function e(){this.constructor=n}var i=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return i.apply(this,arguments)};return e.prototype=i.prototype,n.prototype=new e,n.extend=h.inherits,t&&h.extend(n.prototype,t),n.__super__=i.prototype,n},h.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},h.almostEquals=function(t,e,i){return Math.abs(t-e)<i},h.almostWhole=function(t,e){var i=Math.round(t);return i-e<t&&t<i+e},h.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},h.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},h.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0===(t=+t)||isNaN(t)?t:0<t?1:-1},h.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},h.toRadians=function(t){return t*(Math.PI/180)},h.toDegrees=function(t){return t*(180/Math.PI)},h.getAngleFromPoint=function(t,e){var i=e.x-t.x,e=e.y-t.y,t=Math.sqrt(i*i+e*e),e=Math.atan2(e,i);return e<-.5*Math.PI&&(e+=2*Math.PI),{angle:e,distance:t}},h.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},h.aliasPixel=function(t){return t%2==0?0:.5},h.splineCurve=function(t,e,i,n){var t=t.skip?e:t,o=e,e=i.skip?e:i,i=Math.sqrt(Math.pow(o.x-t.x,2)+Math.pow(o.y-t.y,2)),a=Math.sqrt(Math.pow(e.x-o.x,2)+Math.pow(e.y-o.y,2)),r=i/(i+a),i=a/(i+a),a=n*(isNaN(r)?0:r),r=n*(isNaN(i)?0:i);return{previous:{x:o.x-a*(e.x-t.x),y:o.y-a*(e.y-t.y)},next:{x:o.x+r*(e.x-t.x),y:o.y+r*(e.y-t.y)}}},h.EPSILON=Number.EPSILON||1e-14,h.splineCurveMonotone=function(t){for(var e,i,n,o,a,r,s,l,u=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),d=u.length,c=0;c<d;++c)(o=u[c]).model.skip||(i=0<c?u[c-1]:null,(n=c<d-1?u[c+1]:null)&&!n.model.skip&&(e=n.model.x-o.model.x,o.deltaK=0!=e?(n.model.y-o.model.y)/e:0),!i||i.model.skip?o.mK=o.deltaK:!n||n.model.skip?o.mK=i.deltaK:this.sign(i.deltaK)!==this.sign(o.deltaK)?o.mK=0:o.mK=(i.deltaK+o.deltaK)/2);for(c=0;c<d-1;++c)o=u[c],n=u[c+1],o.model.skip||n.model.skip||(h.almostEquals(o.deltaK,0,this.EPSILON)?o.mK=n.mK=0:(a=o.mK/o.deltaK,r=n.mK/o.deltaK,(s=Math.pow(a,2)+Math.pow(r,2))<=9||(s=3/Math.sqrt(s),o.mK=a*s*o.deltaK,n.mK=r*s*o.deltaK)));for(c=0;c<d;++c)(o=u[c]).model.skip||(i=0<c?u[c-1]:null,n=c<d-1?u[c+1]:null,i&&!i.model.skip&&(l=(o.model.x-i.model.x)/3,o.model.controlPointPreviousX=o.model.x-l,o.model.controlPointPreviousY=o.model.y-l*o.mK),n&&!n.model.skip&&(l=(n.model.x-o.model.x)/3,o.model.controlPointNextX=o.model.x+l,o.model.controlPointNextY=o.model.y+l*o.mK))},h.nextItem=function(t,e,i){return i?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},h.previousItem=function(t,e,i){return i?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},h.niceNum=function(t,e){var i=Math.floor(h.log10(t)),t=t/Math.pow(10,i),e=e?t<1.5?1:t<3?2:t<7?5:10:t<=1?1:t<=2?2:t<=5?5:10;return e*Math.pow(10,i)},h.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},h.getRelativePosition=function(t,e){var i=t.originalEvent||t,t=t.currentTarget||t.srcElement,n=t.getBoundingClientRect(),o=i.touches,o=(o&&0<o.length?(l=o[0].clientX,o[0]):(l=i.clientX,i)).clientY,i=parseFloat(h.getStyle(t,"padding-left")),a=parseFloat(h.getStyle(t,"padding-top")),r=parseFloat(h.getStyle(t,"padding-right")),s=parseFloat(h.getStyle(t,"padding-bottom")),r=n.right-n.left-i-r,s=n.bottom-n.top-a-s,l=Math.round((l-n.left-i)/r*t.width/e.currentDevicePixelRatio);return{x:l,y:o=Math.round((o-n.top-a)/s*t.height/e.currentDevicePixelRatio)}},h.getConstraintWidth=function(t){return e(t,"max-width","clientWidth")},h.getConstraintHeight=function(t){return e(t,"max-height","clientHeight")},h.getMaximumWidth=function(t){var e,i,n=t.parentNode;return n?(i=parseInt(h.getStyle(n,"padding-left"),10),e=parseInt(h.getStyle(n,"padding-right"),10),n=n.clientWidth-i-e,i=h.getConstraintWidth(t),isNaN(i)?n:Math.min(n,i)):t.clientWidth},h.getMaximumHeight=function(t){var e,i,n=t.parentNode;return n?(i=parseInt(h.getStyle(n,"padding-top"),10),e=parseInt(h.getStyle(n,"padding-bottom"),10),n=n.clientHeight-i-e,i=h.getConstraintHeight(t),isNaN(i)?n:Math.min(n,i)):t.clientHeight},h.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},h.retinaScale=function(t,e){var i,n,o,e=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;1!==e&&(i=t.canvas,n=t.height,o=t.width,i.height=n*e,i.width=o*e,t.ctx.scale(e,e),i.style.height=n+"px",i.style.width=o+"px")},h.fontString=function(t,e,i){return e+" "+t+"px "+i},h.longestText=function(e,t,i,n){var o=(n=n||{}).data=n.data||{},a=n.garbageCollect=n.garbageCollect||[],r=(n.font!==t&&(o=n.data={},a=n.garbageCollect=[],n.font=t),e.font=t,0),s=(h.each(i,function(t){null!=t&&!0!==h.isArray(t)?r=h.measureText(e,o,a,r,t):h.isArray(t)&&h.each(t,function(t){null==t||h.isArray(t)||(r=h.measureText(e,o,a,r,t))})}),a.length/2);if(s>i.length){for(var l=0;l<s;l++)delete o[a[l]];a.splice(0,s)}return r},h.measureText=function(t,e,i,n,o){var a=e[o];return a||(a=e[o]=t.measureText(o).width,i.push(o)),n=n<a?a:n},h.numberOfLabelLines=function(t){var e=1;return h.each(t,function(t){h.isArray(t)&&t.length>e&&(e=t.length)}),e},h.color=n?function(t){return t instanceof CanvasGradient&&(t=o.global.defaultColor),n(t)}:function(t){return console.error("Color.js not found!"),t},h.getHoverColor=function(t){return t instanceof CanvasPattern?t:h.color(t).saturate(.5).darken(.1).rgbString()}}},{25:25,3:3,45:45}],28:[function(t,e,i){"use strict";var n=t(45);function r(t,e){return t.native?{x:t.x,y:t.y}:n.getRelativePosition(t,e)}function s(t,e){for(var i,n,o,a=0,r=t.data.datasets.length;a<r;++a)if(t.isDatasetVisible(a))for(n=0,o=(i=t.getDatasetMeta(a)).data.length;n<o;++n){var s=i.data[n];s._view.skip||e(s)}}function l(t,e){var i=[];return s(t,function(t){t.inRange(e.x,e.y)&&i.push(t)}),i}function u(t,i,n,o){var a=Number.POSITIVE_INFINITY,r=[];return s(t,function(t){var e;n&&!t.inRange(i.x,i.y)||(e=t.getCenterPoint(),(e=o(i,e))<a?(r=[t],a=e):e===a&&r.push(t))}),r}function d(t){var n=-1!==t.indexOf("x"),o=-1!==t.indexOf("y");return function(t,e){var i=n?Math.abs(t.x-e.x):0,t=o?Math.abs(t.y-e.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(t,2))}}function o(i,t,e){var t=r(t,i),n=(e.axis=e.axis||"x",d(e.axis)),o=e.intersect?l(i,t):u(i,t,!1,n),a=[];return o.length?(i.data.datasets.forEach(function(t,e){i.isDatasetVisible(e)&&(e=i.getDatasetMeta(e).data[o[0]._index])&&!e._view.skip&&a.push(e)}),a):[]}e.exports={modes:{single:function(t,e){var i=r(e,t),n=[];return s(t,function(t){t.inRange(i.x,i.y)&&n.push(t)}),n.slice(0,1)},label:o,index:o,dataset:function(t,e,i){var e=r(e,t),n=(i.axis=i.axis||"xy",d(i.axis)),i=i.intersect?l(t,e):u(t,e,!1,n);return i=0<i.length?t.getDatasetMeta(i[0]._datasetIndex).data:i},"x-axis":function(t,e){return o(t,e,{intersect:!0})},point:function(t,e){return l(t,r(e,t))},nearest:function(t,e,i){var e=r(e,t),n=(i.axis=i.axis||"xy",d(i.axis)),t=u(t,e,i.intersect,n);return 1<t.length&&t.sort(function(t,e){var i=t.getArea()-e.getArea();return i=0===i?t._datasetIndex-e._datasetIndex:i}),t.slice(0,1)},x:function(t,e,i){var n=r(e,t),o=[],a=!1;return s(t,function(t){t.inXRange(n.x)&&o.push(t),t.inRange(n.x,n.y)&&(a=!0)}),o=i.intersect&&!a?[]:o},y:function(t,e,i){var n=r(e,t),o=[],a=!1;return s(t,function(t){t.inYRange(n.y)&&o.push(t),t.inRange(n.x,n.y)&&(a=!0)}),o=i.intersect&&!a?[]:o}}}},{45:45}],29:[function(t,e,i){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){function t(t,e){return this.construct(t,e),this}return t.Chart=t}},{25:25}],30:[function(t,e,i){"use strict";var B=t(45);e.exports=function(t){function L(t,e){return B.where(t,function(t){return t.position===e})}function z(t,n){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,e){var i=n?e:t,t=n?t:e;return i.weight===t.weight?i._tmpIndex_-t._tmpIndex_:i.weight-t.weight}),t.forEach(function(t){delete t._tmpIndex_})}t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){e=t.boxes?t.boxes.indexOf(e):-1;-1!==e&&t.boxes.splice(e,1)},configure:function(t,e,i){for(var n,o=["fullWidth","position","weight"],a=o.length,r=0;r<a;++r)i.hasOwnProperty(n=o[r])&&(e[n]=i[n])},update:function(e,i,t){var n,o,a,r,s,l,u,d,c,h,f,g,p,m,b,v,x,y,k,w,M,S,C,_,D,I,P,A,F,T;function O(e){var t,i=B.findNextWhere(v,function(t){return t.box===e});i&&(e.isHorizontal()?(t={left:Math.max(M,x),right:Math.max(S,y),top:0,bottom:0},e.update(e.fullWidth?c:m,h/2,t)):e.update(i.minSize.width,b))}function R(t){t.isHorizontal()?(t.left=t.fullWidth?n:M,t.right=t.fullWidth?i-o:M+m,t.top=T,t.bottom=T+t.height,T=t.bottom):(t.left=F,t.right=F+t.width,t.top=C,t.bottom=C+b,F=t.right)}e&&(D=e.options.layout||{},D=B.options.toPadding(D.padding),n=D.left,o=D.right,a=D.top,D=D.bottom,r=L(e.boxes,"left"),s=L(e.boxes,"right"),l=L(e.boxes,"top"),u=L(e.boxes,"bottom"),d=L(e.boxes,"chartArea"),z(r,!0),z(s,!1),z(l,!0),z(u,!1),g=(i-(c=i-n-o)/2)/(r.length+s.length),p=(t-(f=(h=t-a-D)/2))/(l.length+u.length),m=c,b=h,v=[],B.each(r.concat(s,l,u),function(t){var e,i=t.isHorizontal();i?(e=t.update(t.fullWidth?c:m,p),b-=e.height):(e=t.update(g,f),m-=e.width),v.push({horizontal:i,minSize:e,box:t})}),w=k=y=x=0,B.each(l.concat(u),function(t){t.getPadding&&(t=t.getPadding(),x=Math.max(x,t.left),y=Math.max(y,t.right))}),B.each(r.concat(s),function(t){t.getPadding&&(t=t.getPadding(),k=Math.max(k,t.top),w=Math.max(w,t.bottom))}),M=n,S=o,C=a,_=D,B.each(r.concat(s),O),B.each(r,function(t){M+=t.width}),B.each(s,function(t){S+=t.width}),B.each(l.concat(u),O),B.each(l,function(t){C+=t.height}),B.each(u,function(t){_+=t.height}),B.each(r.concat(s),function(e){var t=B.findNextWhere(v,function(t){return t.box===e}),i={left:0,right:0,top:C,bottom:_};t&&e.update(t.minSize.width,b,i)}),M=n,S=o,C=a,_=D,B.each(r,function(t){M+=t.width}),B.each(s,function(t){S+=t.width}),B.each(l,function(t){C+=t.height}),B.each(u,function(t){_+=t.height}),D=Math.max(x-M,0),M+=D,S+=Math.max(y-S,0),I=Math.max(k-C,0),C+=I,_+=Math.max(w-_,0),P=t-C-_,(A=i-M-S)===m&&P===b||(B.each(r,function(t){t.height=P}),B.each(s,function(t){t.height=P}),B.each(l,function(t){t.fullWidth||(t.width=A)}),B.each(u,function(t){t.fullWidth||(t.width=A)}),b=P,m=A),F=n+D,T=a+I,B.each(r.concat(l),R),F+=m,T+=b,B.each(s,R),B.each(u,R),e.chartArea={left:M,top:C,right:M+m,bottom:C+b},B.each(d,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(m,b)}))}}}},{45:45}],31:[function(t,e,i){"use strict";var r=t(25),n=t(26),s=t(45);r._set("global",{plugins:{}}),e.exports=function(t){t.plugins={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){t=e.indexOf(t);-1!==t&&e.splice(t,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,i){for(var n,o,a,r,s=this.descriptors(t),l=s.length,u=0;u<l;++u)if("function"==typeof(r=(o=(n=s[u]).plugin)[e])&&((a=[t].concat(i||[])).push(n.options),!1===r.apply(o,a)))return!1;return!0},descriptors:function(t){var n,o,a,e=t._plugins||(t._plugins={});return e.id===this._cacheId?e.descriptors:(n=[],o=[],t=t&&t.config||{},a=t.options&&t.options.plugins||{},this._plugins.concat(t.plugins||[]).forEach(function(t){var e,i;-1===n.indexOf(t)&&(e=t.id,!1!==(i=a[e]))&&(!0===i&&(i=s.clone(r.global.plugins[e])),n.push(t),o.push({plugin:t,options:i||{}}))}),e.descriptors=o,e.id=this._cacheId,o)}},t.pluginService=t.plugins,t.PluginBase=n.extend({})}},{25:25,26:26,45:45}],32:[function(t,e,i){"use strict";var m=t(25),n=t(26),B=t(45),t=t(34);function f(t){for(var e=[],i=0,n=t.length;i<n;++i)e.push(t[i].label);return e}function N(t,e,i){var n=t.getPixelForTick(e);return i&&(n-=0===e?(t.getPixelForTick(1)-n)/2:(n-t.getPixelForTick(e-1))/2),n}m._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:t.formatters.values,minor:{},major:{}}}),e.exports=function(t){function h(t,e,i){return B.isArray(e)?B.longestText(t,i,e):t.measureText(e).width}function g(t){var e=B.valueOrDefault,i=m.global,n=e(t.fontSize,i.defaultFontSize),o=e(t.fontStyle,i.defaultFontStyle),e=e(t.fontFamily,i.defaultFontFamily);return{size:n,style:o,family:e,font:B.fontString(n,o,e)}}function p(t){return B.options.toLineHeight(B.valueOrDefault(t.lineHeight,1.2),B.valueOrDefault(t.fontSize,m.global.defaultFontSize))}t.Scale=n.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var t,e=this.options.ticks;for(t in!1===e.minor&&(e.minor={display:!1}),!1===e.major&&(e.major={display:!1}),e)"major"!==t&&"minor"!==t&&(void 0===e.minor[t]&&(e.minor[t]=e[t]),void 0===e.major[t])&&(e.major[t]=e[t])},beforeUpdate:function(){B.callback(this.options.beforeUpdate,[this])},update:function(t,e,i){var n,o,a,r,s,l,u=this;for(u.beforeUpdate(),u.maxWidth=t,u.maxHeight=e,u.margins=B.extend({left:0,right:0,top:0,bottom:0},i),u.longestTextCache=u.longestTextCache||{},u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),s=u.buildTicks()||[],u.afterBuildTicks(),u.beforeTickToLabelConversion(),a=u.convertTicksToLabels(s)||u.ticks,u.afterTickToLabelConversion(),n=0,o=(u.ticks=a).length;n<o;++n)r=a[n],(l=s[n])?l.label=r:s.push(l={label:r,major:!1});return u._ticks=s,u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u.afterUpdate(),u.minSize},afterUpdate:function(){B.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){B.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){B.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){B.callback(this.options.beforeDataLimits,[this])},determineDataLimits:B.noop,afterDataLimits:function(){B.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){B.callback(this.options.beforeBuildTicks,[this])},buildTicks:B.noop,afterBuildTicks:function(){B.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){B.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this.options.ticks;this.ticks=this.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){B.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){B.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,i=t.options.ticks,n=f(t._ticks),o=g(i),a=(e.font=o.font,i.minRotation||0);if(n.length&&t.options.display&&t.isHorizontal())for(var r=B.longestText(e,o.font,n,t.longestTextCache),s=r,l=t.getPixelForTick(1)-t.getPixelForTick(0)-6;l<s&&a<i.maxRotation;){var u=B.toRadians(a),d=Math.cos(u);if(Math.sin(u)*r>t.maxHeight){a--;break}a++,s=d*r}t.labelRotation=a},afterCalculateTickRotation:function(){B.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){B.callback(this.options.beforeFit,[this])},fit:function(){var t,e=this,i=e.minSize={width:0,height:0},n=f(e._ticks),o=e.options,a=o.ticks,r=o.scaleLabel,s=o.gridLines,l=o.display,u=e.isHorizontal(),d=g(a),c=o.gridLines.tickMarkLength;i.width=u?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:l&&s.drawTicks?c:0,i.height=u?l&&s.drawTicks?c:0:e.maxHeight,r.display&&l&&(s=p(r)+B.options.toPadding(r.padding).height,u?i.height+=s:i.width+=s),a.display&&l&&(c=B.longestText(e.ctx,d.font,n,e.longestTextCache),r=B.numberOfLabelLines(n),s=.5*d.size,l=e.options.ticks.padding,u?(e.longestLabelWidth=c,u=B.toRadians(e.labelRotation),t=Math.cos(u),u=Math.sin(u)*c+d.size*r+s*(r-1)+s,i.height=Math.min(e.maxHeight,i.height+u+l),e.ctx.font=d.font,r=h(e.ctx,n[0],d.font),u=h(e.ctx,n[n.length-1],d.font),0!==e.labelRotation?(e.paddingLeft="bottom"===o.position?t*r+3:t*s+3,e.paddingRight="bottom"===o.position?t*s+3:t*u+3):(e.paddingLeft=r/2+3,e.paddingRight=u/2+3)):(a.mirror?c=0:c+=l+s,i.width=Math.min(e.maxWidth,i.width+c),e.paddingTop=d.size/2,e.paddingBottom=d.size/2)),e.handleMargins(),e.width=i.width,e.height=i.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){B.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(B.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:B.noop,getPixelForValue:B.noop,getValueForPixel:B.noop,getPixelForTick:function(t){var e,i,n=this,o=n.options.offset;return n.isHorizontal()?(i=(e=(n.width-(n.paddingLeft+n.paddingRight))/Math.max(n._ticks.length-(o?0:1),1))*t+n.paddingLeft,o&&(i+=e/2),n.left+Math.round(i)+(n.isFullWidth()?n.margins.left:0)):(o=n.height-(n.paddingTop+n.paddingBottom),n.top+t*(o/(n._ticks.length-1)))},getPixelForDecimal:function(t){var e,i=this;return i.isHorizontal()?(e=(i.width-(i.paddingLeft+i.paddingRight))*t+i.paddingLeft,i.left+Math.round(e)+(i.isFullWidth()?i.margins.left:0)):i.top+t*i.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0},_autoSkip:function(t){var e,i,n,o,a=this,r=a.isHorizontal(),s=a.options.ticks.minor,l=t.length,u=B.toRadians(a.labelRotation),u=Math.cos(u),u=a.longestLabelWidth*u,d=[];for(s.maxTicksLimit&&(o=s.maxTicksLimit),r&&(e=!1,(u+s.autoSkipPadding)*l>a.width-(a.paddingLeft+a.paddingRight)&&(e=1+Math.floor((u+s.autoSkipPadding)*l/(a.width-(a.paddingLeft+a.paddingRight)))),o)&&o<l&&(e=Math.max(e,Math.floor(l/o))),i=0;i<l;i++)n=t[i],((1<e&&0<i%e||i%e==0&&l<=i+e)&&i!==l-1||B.isNullOrUndef(n.label))&&delete n.label,d.push(n);return d},draw:function(k){var o,w,M,S,t,C,_,D,a,r,s,l,I,e,i,P,A,F,T,O,R,n,u,d,c,h,f,L=this,z=L.options;z.display&&(o=L.ctx,w=m.global,M=z.ticks.minor,e=z.ticks.major||M,S=z.gridLines,t=z.scaleLabel,C=0!==L.labelRotation,_=L.isHorizontal(),D=M.autoSkip?L._autoSkip(L.getTicks()):L.getTicks(),a=B.valueOrDefault(M.fontColor,w.defaultFontColor),r=g(M),s=B.valueOrDefault(e.fontColor,w.defaultFontColor),l=g(e),I=S.drawTicks?S.tickMarkLength:0,e=B.valueOrDefault(t.fontColor,w.defaultFontColor),i=g(t),d=B.options.toPadding(t.padding),P=B.toRadians(L.labelRotation),A=[],F="right"===z.position?L.left:L.right-I,T="right"===z.position?L.left+I:L.right,O="bottom"===z.position?L.top:L.bottom-I,R="bottom"===z.position?L.top+I:L.bottom,B.each(D,function(t,e){var i,n,o,a,r,s,l,u,d,c,h,f,g,p,m,b,v,x,y;void 0!==t.label&&(i=t.label,f=e===L.zeroLineIndex&&z.offset===S.offsetGridLines?(n=S.zeroLineWidth,o=S.zeroLineColor,a=S.zeroLineBorderDash,S.zeroLineBorderDashOffset):(n=B.valueAtIndexOrDefault(S.lineWidth,e),o=B.valueAtIndexOrDefault(S.color,e),a=B.valueOrDefault(S.borderDash,w.borderDash),B.valueOrDefault(S.borderDashOffset,w.borderDashOffset)),p=g="middle",v=M.padding,_?(m=I+v,m="bottom"===z.position?(p=C?"middle":"top",g=C?"right":"center",L.top+m):(p=C?"middle":"bottom",g=C?"left":"center",L.bottom-m),(b=N(L,e,S.offsetGridLines&&1<D.length))<L.left&&(o="rgba(0,0,0,0)"),b+=B.aliasPixel(n),x=L.getPixelForTick(e)+M.labelOffset,r=l=d=b=b,s=O,u=R,c=k.top,h=k.bottom):(y="left"===z.position,v=M.mirror?(g=y?"left":"right",v):(g=y?"right":"left",I+v),x=y?L.right-v:L.left+v,(y=N(L,e,S.offsetGridLines&&1<D.length))<L.top&&(o="rgba(0,0,0,0)"),y+=B.aliasPixel(n),m=L.getPixelForTick(e)+M.labelOffset,r=F,l=T,d=k.left,b=k.right,s=u=c=h=y),A.push({tx1:r,ty1:s,tx2:l,ty2:u,x1:d,y1:c,x2:b,y2:h,labelX:x,labelY:m,glWidth:n,glColor:o,glBorderDash:a,glBorderDashOffset:f,rotation:-1*P,label:i,major:t.major,textBaseline:p,textAlign:g}))}),B.each(A,function(t){if(S.display&&(o.save(),o.lineWidth=t.glWidth,o.strokeStyle=t.glColor,o.setLineDash&&(o.setLineDash(t.glBorderDash),o.lineDashOffset=t.glBorderDashOffset),o.beginPath(),S.drawTicks&&(o.moveTo(t.tx1,t.ty1),o.lineTo(t.tx2,t.ty2)),S.drawOnChartArea&&(o.moveTo(t.x1,t.y1),o.lineTo(t.x2,t.y2)),o.stroke(),o.restore()),M.display){o.save(),o.translate(t.labelX,t.labelY),o.rotate(t.rotation),o.font=(t.major?l:r).font,o.fillStyle=t.major?s:a,o.textBaseline=t.textBaseline,o.textAlign=t.textAlign;var e=t.label;if(B.isArray(e))for(var i=0,n=0;i<e.length;++i)o.fillText(""+e[i],0,n),n+=1.5*r.size;else o.fillText(e,0,0);o.restore()}}),t.display&&(n=0,u=p(t)/2,_?(h=L.left+(L.right-L.left)/2,f="bottom"===z.position?L.bottom-u-d.bottom:L.top+u+d.top):(h=(c="left"===z.position)?L.left+u+d.top:L.right-u-d.top,f=L.top+(L.bottom-L.top)/2,n=c?-.5*Math.PI:.5*Math.PI),o.save(),o.translate(h,f),o.rotate(n),o.textAlign="center",o.textBaseline="middle",o.fillStyle=e,o.font=i.font,o.fillText(t.labelString,0,0),o.restore()),S.drawBorder)&&(o.lineWidth=B.valueAtIndexOrDefault(S.lineWidth,0),o.strokeStyle=B.valueAtIndexOrDefault(S.color,0),u=L.left,d=L.right,c=L.top,h=L.bottom,f=B.aliasPixel(o.lineWidth),_?(c=h="top"===z.position?L.bottom:L.top,c+=f,h+=f):(u=d="left"===z.position?L.right:L.left,u+=f,d+=f),o.beginPath(),o.moveTo(u,c),o.lineTo(d,h),o.stroke())}})}},{25:25,26:26,34:34,45:45}],33:[function(t,e,i){"use strict";var n=t(25),o=t(45);e.exports=function(i){i.scaleService={constructors:{},defaults:{},registerScaleType:function(t,e,i){this.constructors[t]=e,this.defaults[t]=o.clone(i)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?o.merge({},[n.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){this.defaults.hasOwnProperty(t)&&(this.defaults[t]=o.extend(this.defaults[t],e))},addScalesToLayout:function(e){o.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,i.layoutService.addBox(e,t)})}}}},{25:25,45:45}],34:[function(t,e,i){"use strict";var u=t(45);e.exports={generators:{linear:function(t,e){var i,n=[],o=(i=t.stepSize&&0<t.stepSize?t.stepSize:(a=u.niceNum(e.max-e.min,!1),u.niceNum(a/(t.maxTicks-1),!0)),Math.floor(e.min/i)*i),a=Math.ceil(e.max/i)*i,r=(t.min&&t.max&&t.stepSize&&u.almostWhole((t.max-t.min)/t.stepSize,i/1e3)&&(o=t.min,a=t.max),(a-o)/i),r=u.almostEquals(r,Math.round(r),i/1e3)?Math.round(r):Math.ceil(r);n.push(void 0!==t.min?t.min:o);for(var s=1;s<r;++s)n.push(o+s*i);return n.push(void 0!==t.max?t.max:a),n},logarithmic:function(t,e){var i,n,o=[],a=u.valueOrDefault,r=a(t.min,Math.pow(10,Math.floor(u.log10(e.min)))),s=Math.floor(u.log10(e.max)),l=Math.ceil(e.max/Math.pow(10,s));for(0===r?(i=Math.floor(u.log10(e.minNotZero)),n=Math.floor(e.minNotZero/Math.pow(10,i)),o.push(r),r=n*Math.pow(10,i)):(i=Math.floor(u.log10(r)),n=Math.floor(r/Math.pow(10,i)));o.push(r),10===++n&&(n=1,++i),r=n*Math.pow(10,i),i<s||i===s&&n<l;);e=a(t.max,r);return o.push(e),o}},formatters:{values:function(t){return u.isArray(t)?t:""+t},linear:function(t,e,i){var i=3<i.length?i[2]-i[1]:i[1]-i[0],i=(1<Math.abs(i)&&t!==Math.floor(t)&&(i=t-Math.floor(t)),u.log10(Math.abs(i)));return 0!==t?(i=-1*Math.floor(i),i=Math.max(Math.min(i,20),0),t.toFixed(i)):"0"},logarithmic:function(t,e,i){var n=t/Math.pow(10,Math.floor(u.log10(t)));return 0===t?"0":1==n||2==n||5==n||0===e||e===i.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,i){"use strict";var n=t(25),o=t(26),z=t(45);n._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:z.noop,title:function(t,e){var i="",e=e.labels,n=e?e.length:0;return 0<t.length&&((t=t[0]).xLabel?i=t.xLabel:0<n&&t.index<n&&(i=e[t.index])),i},afterTitle:z.noop,beforeBody:z.noop,beforeLabel:z.noop,label:function(t,e){e=e.datasets[t.datasetIndex].label||"";return e&&(e+=": "),e+=t.yLabel},labelColor:function(t,e){e=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:e.borderColor,backgroundColor:e.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:z.noop,afterBody:z.noop,beforeFooter:z.noop,footer:z.noop,afterFooter:z.noop}}}),e.exports=function(O){function c(t,e){t=z.color(t);return t.alpha(e*t.alpha()).rgbaString()}function r(t,e){return e&&(z.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function R(t){var e=n.global,i=z.valueOrDefault;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:i(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:i(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:i(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:i(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:i(t.titleFontStyle,e.defaultFontStyle),titleFontSize:i(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:i(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:i(t.footerFontStyle,e.defaultFontStyle),footerFontSize:i(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function L(t,e){function i(t){o=Math.max(o,n.measureText(t).width+h)}var n=t._chart.ctx,t=2*e.yPadding,o=0,a=e.body,r=a.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0),s=(r+=e.beforeBody.length+e.afterBody.length,e.title.length),l=e.footer.length,u=e.titleFontSize,d=e.bodyFontSize,c=e.footerFontSize,h=(t=(t=(t=(t=(t=t+s*u+(s?(s-1)*e.titleSpacing:0))+(s?e.titleMarginBottom:0))+r*d+(r?(r-1)*e.bodySpacing:0))+(l?e.footerMarginTop:0))+l*c+(l?(l-1)*e.footerSpacing:0),0);return n.font=z.fontString(u,e._titleFontStyle,e._titleFontFamily),z.each(e.title,i),n.font=z.fontString(d,e._bodyFontStyle,e._bodyFontFamily),z.each(e.beforeBody.concat(e.afterBody),i),h=e.displayColors?d+2:0,z.each(a,function(t){z.each(t.before,i),z.each(t.lines,i),z.each(t.after,i)}),h=0,n.font=z.fontString(c,e._footerFontStyle,e._footerFontFamily),z.each(e.footer,i),{width:o+=2*e.xPadding,height:t}}O.Tooltip=o.extend({initialize:function(){this._model=R(this._options)},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),i=t.title.apply(this,arguments),t=t.afterTitle.apply(this,arguments),e=r([],e);return e=r(e,i),r(e,t)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return z.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,i){var n=this,o=n._options.callbacks,a=[];return z.each(t,function(t){var e={before:[],lines:[],after:[]};r(e.before,o.beforeLabel.call(n,t,i)),r(e.lines,o.label.call(n,t,i)),r(e.after,o.afterLabel.call(n,t,i)),a.push(e)}),a},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return z.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),i=t.footer.apply(this,arguments),t=t.afterFooter.apply(this,arguments),e=r([],e);return e=r(e,i),r(e,t)},update:function(t){var e,i,n,o,a,r,s,l,u,d,c,h,f,g,p,m,b,v,x=this,y=x._options,k=x._model,w=x._model=R(y),M=x._active,S=x._data,C={xAlign:k.xAlign,yAlign:k.yAlign},_={x:k.x,y:k.y},D={width:k.width,height:k.height},k={x:k.caretX,y:k.caretY};if(M.length){w.opacity=1;for(var I=[],P=[],k=O.Tooltip.positioners[y.position](M,x._eventPosition),A=[],F=0,T=M.length;F<T;++F)A.push((g=M[F],v=b=m=p=void 0,p=g._xScale,m=g._yScale||g._scale,b=g._index,v=g._datasetIndex,{xLabel:p?p.getLabelForIndex(b,v):"",yLabel:m?m.getLabelForIndex(b,v):"",index:b,datasetIndex:v,x:g._model.x,y:g._model.y}));y.filter&&(A=A.filter(function(t){return y.filter(t,S)})),y.itemSort&&(A=A.sort(function(t,e){return y.itemSort(t,e,S)})),z.each(A,function(t){I.push(y.callbacks.labelColor.call(x,t,x._chart)),P.push(y.callbacks.labelTextColor.call(x,t,x._chart))}),w.title=x.getTitle(A,S),w.beforeBody=x.getBeforeBody(A,S),w.body=x.getBody(A,S),w.afterBody=x.getAfterBody(A,S),w.footer=x.getFooter(A,S),w.x=Math.round(k.x),w.y=Math.round(k.y),w.caretPadding=y.caretPadding,w.labelColors=I,w.labelTextColors=P,w.dataPoints=A,D=L(this,w),i=D,n=(e=this)._model,o=e._chart,a=e._chart.chartArea,s=r="center",n.y<i.height?s="top":n.y>o.height-i.height&&(s="bottom"),l=(a.left+a.right)/2,u=(a.top+a.bottom)/2,a="center"===s?(f=function(t){return t<=l},function(t){return l<t}):(f=function(t){return t<=i.width/2},function(t){return t>=o.width-i.width/2}),d=function(t){return t+i.width>o.width},c=function(t){return t-i.width<0},h=function(t){return t<=u?"top":"bottom"},f(n.x)?(r="left",d(n.x)&&(r="center",s=h(n.y))):a(n.x)&&(r="right",c(n.x))&&(r="center",s=h(n.y)),C={xAlign:(f=e._options).xAlign||r,yAlign:f.yAlign||s},d=D,a=C,h=(c=w).x,n=c.y,e=c.caretSize,r=c.caretPadding,c=c.cornerRadius,f=a.xAlign,a=a.yAlign,e+=r,c+=r,"right"===f?h-=d.width:"center"===f&&(h-=d.width/2),"top"===a?n+=e:n-="bottom"===a?d.height+e:d.height/2,"center"===a?"left"===f?h+=e:"right"===f&&(h-=e):"left"===f?h-=c:"right"===f&&(h+=c),_={x:h,y:n}}else w.opacity=0;return w.xAlign=C.xAlign,w.yAlign=C.yAlign,w.x=_.x,w.y=_.y,w.width=D.width,w.height=D.height,w.caretX=k.x,w.caretY=k.y,x._model=w,t&&y.custom&&y.custom.call(x,w),x},drawCaret:function(t,e){var i=this._chart.ctx,n=this._view,t=this.getCaretPosition(t,e,n);i.lineTo(t.x1,t.y1),i.lineTo(t.x2,t.y2),i.lineTo(t.x3,t.y3)},getCaretPosition:function(t,e,i){var n,o,a,r,s,l,u=i.caretSize,d=i.cornerRadius,c=i.xAlign,i=i.yAlign,h=t.x,t=t.y,f=e.width,e=e.height;return"center"===i?(a=t+e/2,r="left"===c?(n=(l=h)-u,s=l,o=a+u,a-u):(n=(l=h+f)+u,s=l,o=a-u,a+u)):(s=(l="left"===c?(n=h+d+u)-u:"right"===c?(n=h+f-d-u)-u:(n=h+f/2)-u,n+u),"top"===i?(a=(o=t)-u,r=o):(a=(o=t+e)+u,r=o,c=s,s=l,l=c)),{x1:l,x2:n,x3:s,y1:o,y2:a,y3:r}},drawTitle:function(t,e,i,n){var o=e.title;if(o.length){i.textAlign=e._titleAlign,i.textBaseline="top";var a,r,s=e.titleFontSize,l=e.titleSpacing;for(i.fillStyle=c(e.titleFontColor,n),i.font=z.fontString(s,e._titleFontStyle,e._titleFontFamily),a=0,r=o.length;a<r;++a)i.fillText(o[a],t.x,t.y),t.y+=s+l,a+1===o.length&&(t.y+=e.titleMarginBottom-l)}},drawBody:function(n,o,a,r){function s(t){a.fillText(t,n.x+i,n.y),n.y+=l+e}var l=o.bodyFontSize,e=o.bodySpacing,t=o.body,i=(a.textAlign=o._bodyAlign,a.textBaseline="top",a.font=z.fontString(l,o._bodyFontStyle,o._bodyFontFamily),0),u=(z.each(o.beforeBody,s),o.displayColors),i=u?l+2:0;z.each(t,function(t,i){z.each(t.before,s),z.each(t.lines,function(t){var e;u&&(a.fillStyle=c(o.legendColorBackground,r),a.fillRect(n.x,n.y,l,l),a.lineWidth=1,a.strokeStyle=c(o.labelColors[i].borderColor,r),a.strokeRect(n.x,n.y,l,l),a.fillStyle=c(o.labelColors[i].backgroundColor,r),a.fillRect(n.x+1,n.y+1,l-2,l-2),e=c(o.labelTextColors[i],r),a.fillStyle=e),s(t)}),z.each(t.after,s)}),i=0,z.each(o.afterBody,s),n.y-=e},drawFooter:function(e,i,n,t){var o=i.footer;o.length&&(e.y+=i.footerMarginTop,n.textAlign=i._footerAlign,n.textBaseline="top",n.fillStyle=c(i.footerFontColor,t),n.font=z.fontString(i.footerFontSize,i._footerFontStyle,i._footerFontFamily),z.each(o,function(t){n.fillText(t,e.x,e.y),e.y+=i.footerFontSize+i.footerSpacing}))},drawBackground:function(t,e,i,n,o){i.fillStyle=c(e.backgroundColor,o),i.strokeStyle=c(e.borderColor,o),i.lineWidth=e.borderWidth;var o=e.xAlign,a=e.yAlign,r=t.x,s=t.y,l=n.width,u=n.height,d=e.cornerRadius;i.beginPath(),i.moveTo(r+d,s),"top"===a&&this.drawCaret(t,n),i.lineTo(r+l-d,s),i.quadraticCurveTo(r+l,s,r+l,s+d),"center"===a&&"right"===o&&this.drawCaret(t,n),i.lineTo(r+l,s+u-d),i.quadraticCurveTo(r+l,s+u,r+l-d,s+u),"bottom"===a&&this.drawCaret(t,n),i.lineTo(r+d,s+u),i.quadraticCurveTo(r,s+u,r,s+u-d),"center"===a&&"left"===o&&this.drawCaret(t,n),i.lineTo(r,s+d),i.quadraticCurveTo(r,s,r+d,s),i.closePath(),i.fill(),0<e.borderWidth&&i.stroke()},draw:function(){var t,e,i,n,o=this._chart.ctx,a=this._view;0!==a.opacity&&(t={width:a.width,height:a.height},e={x:a.x,y:a.y},i=Math.abs(a.opacity<.001)?0:a.opacity,n=a.title.length||a.beforeBody.length||a.body.length||a.afterBody.length||a.footer.length,this._options.enabled)&&n&&(this.drawBackground(e,a,o,t,i),e.x+=a.xPadding,e.y+=a.yPadding,this.drawTitle(e,a,o,i),this.drawBody(e,a,o,i),this.drawFooter(e,a,o,i))},handleEvent:function(t){var e=this,i=e._options,n=!1;return e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,i.mode,i),(n=!z.arrayEquals(e._active,e._lastActive))&&(e._lastActive=e._active,(i.enabled||i.custom)&&(e._eventPosition={x:t.x,y:t.y},i=e._model,e.update(!0),e.pivot(),n|=i.x!==e._model.x||i.y!==e._model.y),n)}}),O.Tooltip.positioners={average:function(t){if(!t.length)return!1;for(var e=0,i=0,n=0,o=0,a=t.length;o<a;++o){var r=t[o];r&&r.hasValue()&&(e+=(r=r.tooltipPosition()).x,i+=r.y,++n)}return{x:Math.round(e/n),y:Math.round(i/n)}},nearest:function(t,e){for(var i,n,o=e.x,a=e.y,r=Number.POSITIVE_INFINITY,s=0,l=t.length;s<l;++s){var u,d=t[s];d&&d.hasValue()&&(u=d.getCenterPoint(),(u=z.distanceBetweenPoints(e,u))<r)&&(r=u,i=d)}return i&&(o=(n=i.tooltipPosition()).x,a=n.y),{x:o,y:a}}}}},{25:25,26:26,45:45}],36:[function(t,e,i){"use strict";var n=t(25),o=t(26),r=t(45);n._set("global",{elements:{arc:{backgroundColor:n.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=o.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var i=this._view;if(i){for(var t=r.getAngleFromPoint(i,{x:t,y:e}),n=t.angle,e=t.distance,o=i.startAngle,a=i.endAngle;a<o;)a+=2*Math.PI;for(;a<n;)n-=2*Math.PI;for(;n<o;)n+=2*Math.PI;t=e>=i.innerRadius&&e<=i.outerRadius;return o<=n&&n<=a&&t}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,i=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,i){"use strict";var n=t(25),o=t(26),d=t(45),c=n.global;n._set("global",{elements:{line:{tension:.4,backgroundColor:c.defaultColor,borderWidth:3,borderColor:c.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=o.extend({draw:function(){var t,e,i,n,o=this._view,a=this._chart.ctx,r=o.spanGaps,s=this._children.slice(),l=c.elements.line,u=-1;for(this._loop&&s.length&&s.push(s[0]),a.save(),a.lineCap=o.borderCapStyle||l.borderCapStyle,a.setLineDash&&a.setLineDash(o.borderDash||l.borderDash),a.lineDashOffset=o.borderDashOffset||l.borderDashOffset,a.lineJoin=o.borderJoinStyle||l.borderJoinStyle,a.lineWidth=o.borderWidth||l.borderWidth,a.strokeStyle=o.borderColor||c.defaultColor,a.beginPath(),u=-1,t=0;t<s.length;++t)e=s[t],i=d.previousItem(s,t),n=e._view,0===t?n.skip||(a.moveTo(n.x,n.y),u=t):(i=-1===u?i:s[u],n.skip||(u!==t-1&&!r||-1===u?a.moveTo(n.x,n.y):d.canvas.lineTo(a,i._view,e._view),u=t));a.stroke(),a.restore()}})},{25:25,26:26,45:45}],38:[function(t,e,i){"use strict";var d=t(25),n=t(26),c=t(45),h=d.global.defaultColor;function o(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hitRadius,2)}d._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:h,borderColor:h,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=n.extend({inRange:function(t,e){var i=this._view;return!!i&&Math.pow(t-i.x,2)+Math.pow(e-i.y,2)<Math.pow(i.hitRadius+i.radius,2)},inLabelRange:o,inXRange:o,inYRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.y,2)<Math.pow(e.radius+e.hitRadius,2)},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,i=this._model,n=this._chart.ctx,o=e.pointStyle,a=e.radius,r=e.x,s=e.y,l=c.color,u=0;e.skip||(n.strokeStyle=e.borderColor||h,n.lineWidth=c.valueOrDefault(e.borderWidth,d.global.elements.point.borderWidth),n.fillStyle=e.backgroundColor||h,void 0!==t&&(i.x<t.left||1.01*t.right<i.x||i.y<t.top||1.01*t.bottom<i.y)&&(i.x<t.left?u=(r-i.x)/(t.left-i.x):1.01*t.right<i.x?u=(i.x-r)/(i.x-t.right):i.y<t.top?u=(s-i.y)/(t.top-i.y):1.01*t.bottom<i.y&&(u=(i.y-s)/(i.y-t.bottom)),u=Math.round(100*u)/100,n.strokeStyle=l(n.strokeStyle).alpha(u).rgbString(),n.fillStyle=l(n.fillStyle).alpha(u).rgbString()),c.canvas.drawPoint(n,o,a,r,s))}})},{25:25,26:26,45:45}],39:[function(t,e,i){"use strict";var n=t(25),t=t(26);function a(t){return void 0!==t._view.width}function o(t){var e,i,n,o=t._view;return o=a(t)?(t=o.width/2,e=o.x-t,i=o.x+t,n=Math.min(o.y,o.base),Math.max(o.y,o.base)):(t=o.height/2,e=Math.min(o.x,o.base),i=Math.max(o.x,o.base),n=o.y-t,o.y+t),{left:e,top:n,right:i,bottom:o}}n._set("global",{elements:{rectangle:{backgroundColor:n.global.defaultColor,borderColor:n.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=t.extend({draw:function(){var t,e,i,n,o,a,r,s,l,u=this._chart.ctx,d=this._view,c=d.borderWidth,h=d.horizontal?(t=d.base,e=d.x,i=d.y-d.height/2,n=d.y+d.height/2,o=t<e?1:-1,l=1,d.borderSkipped||"left"):(t=d.x-d.width/2,e=d.x+d.width/2,o=1,l=(i=d.y)<(n=d.base)?1:-1,d.borderSkipped||"bottom"),f=(c&&(r=(c=(r=Math.min(Math.abs(t-e),Math.abs(i-n)))<c?r:c)/2,s=i+("top"!==h?r*l:0),l=n+("bottom"!==h?-r*l:0),(a=t+("left"!==h?r*o:0))!==(r=e+("right"!==h?-r*o:0))&&(i=s,n=l),s!==l)&&(t=a,e=r),u.beginPath(),u.fillStyle=d.backgroundColor,u.strokeStyle=d.borderColor,u.lineWidth=c,[[t,n],[t,i],[e,i],[e,n]]),g=["bottom","left","top","right"].indexOf(h,0);function p(t){return f[(g+t)%4]}-1===g&&(g=0);var m=p(0);u.moveTo(m[0],m[1]);for(var b=1;b<4;b++)m=p(b),u.lineTo(m[0],m[1]);u.fill(),c&&u.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i,n=!1;return n=this._view?t>=(i=o(this)).left&&t<=i.right&&e>=i.top&&e<=i.bottom:n},inLabelRange:function(t,e){var i;return!!this._view&&(i=o(this),a(this)?t>=i.left&&t<=i.right:e>=i.top&&e<=i.bottom)},inXRange:function(t){var e=o(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=o(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e=this._view,e=a(this)?(t=e.x,(e.y+e.base)/2):(t=(e.x+e.base)/2,e.y);return{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,i){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,i){"use strict";t=t(42),i=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,i,n,o,a){var r;a?(r=Math.min(a,n/2),a=Math.min(a,o/2),t.moveTo(e+r,i),t.lineTo(e+n-r,i),t.quadraticCurveTo(e+n,i,e+n,i+a),t.lineTo(e+n,i+o-a),t.quadraticCurveTo(e+n,i+o,e+n-r,i+o),t.lineTo(e+r,i+o),t.quadraticCurveTo(e,i+o,e,i+o-a),t.lineTo(e,i+a),t.quadraticCurveTo(e,i,e+r,i)):t.rect(e,i,n,o)},drawPoint:function(t,e,i,n,o){var a,r,s,l;if("object"!=typeof e||"[object HTMLImageElement]"!==(a=e.toString())&&"[object HTMLCanvasElement]"!==a){if(!(isNaN(i)||i<=0)){switch(e){default:t.beginPath(),t.arc(n,o,i,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),d=(u=3*i/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(n-u/2,o+d/3),t.lineTo(n+u/2,o+d/3),t.lineTo(n,o-2*d/3),t.closePath(),t.fill();break;case"rect":l=1/Math.SQRT2*i,t.beginPath(),t.fillRect(n-l,o-l,2*l,2*l),t.strokeRect(n-l,o-l,2*l,2*l);break;case"rectRounded":var u=i/Math.SQRT2,d=n-u,u=o-u,c=Math.SQRT2*i;t.beginPath(),this.roundedRect(t,d,u,c,c,i/2),t.closePath(),t.fill();break;case"rectRot":l=1/Math.SQRT2*i,t.beginPath(),t.moveTo(n-l,o),t.lineTo(n,o+l),t.lineTo(n+l,o),t.lineTo(n,o-l),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(n,o+i),t.lineTo(n,o-i),t.moveTo(n-i,o),t.lineTo(n+i,o),t.closePath();break;case"crossRot":t.beginPath(),r=Math.cos(Math.PI/4)*i,s=Math.sin(Math.PI/4)*i,t.moveTo(n-r,o-s),t.lineTo(n+r,o+s),t.moveTo(n-r,o+s),t.lineTo(n+r,o-s),t.closePath();break;case"star":t.beginPath(),t.moveTo(n,o+i),t.lineTo(n,o-i),t.moveTo(n-i,o),t.lineTo(n+i,o),r=Math.cos(Math.PI/4)*i,s=Math.sin(Math.PI/4)*i,t.moveTo(n-r,o-s),t.lineTo(n+r,o+s),t.moveTo(n-r,o+s),t.lineTo(n+r,o-s),t.closePath();break;case"line":t.beginPath(),t.moveTo(n-i,o),t.lineTo(n+i,o),t.closePath();break;case"dash":t.beginPath(),t.moveTo(n,o),t.lineTo(n+i,o),t.closePath()}t.stroke()}}else t.drawImage(e,n-e.width/2,o-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,i,n){i.steppedLine?("after"===i.steppedLine&&!n||"after"!==i.steppedLine&&n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y),t.lineTo(i.x,i.y)):i.tension?t.bezierCurveTo(n?e.controlPointPreviousX:e.controlPointNextX,n?e.controlPointPreviousY:e.controlPointNextY,n?i.controlPointNextX:i.controlPointPreviousX,n?i.controlPointNextY:i.controlPointPreviousY,i.x,i.y):t.lineTo(i.x,i.y)}};t.clear=i.clear,t.drawRoundedRectangle=function(t){t.beginPath(),i.roundedRect.apply(i,arguments),t.closePath()}},{42:42}],42:[function(t,e,i){"use strict";var n,d={noop:function(){},uid:(n=0,function(){return n++}),isNullOrUndef:function(t){return null==t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,i){return d.valueOrDefault(d.isArray(t)?t[e]:t,i)},callback:function(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)},each:function(t,e,i,n){var o,a,r;if(d.isArray(t))if(a=t.length,n)for(o=a-1;0<=o;o--)e.call(i,t[o],o);else for(o=0;o<a;o++)e.call(i,t[o],o);else if(d.isObject(t))for(a=(r=Object.keys(t)).length,o=0;o<a;o++)e.call(i,t[r[o]],r[o])},arrayEquals:function(t,e){var i,n,o,a;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(o=t[i],a=e[i],o instanceof Array&&a instanceof Array){if(!d.arrayEquals(o,a))return!1}else if(o!==a)return!1;return!0},clone:function(t){if(d.isArray(t))return t.map(d.clone);if(d.isObject(t)){for(var e={},i=Object.keys(t),n=i.length,o=0;o<n;++o)e[i[o]]=d.clone(t[i[o]]);return e}return t},_merger:function(t,e,i,n){var o=e[t],i=i[t];d.isObject(o)&&d.isObject(i)?d.merge(o,i,n):e[t]=d.clone(i)},_mergerIf:function(t,e,i){var n=e[t],i=i[t];d.isObject(n)&&d.isObject(i)?d.mergeIf(n,i):e.hasOwnProperty(t)||(e[t]=d.clone(i))},merge:function(t,e,i){var n,o,a,r,s,l=d.isArray(e)?e:[e],u=l.length;if(d.isObject(t))for(n=(i=i||{}).merger||d._merger,o=0;o<u;++o)if(e=l[o],d.isObject(e))for(s=0,r=(a=Object.keys(e)).length;s<r;++s)n(a[s],t,e,i);return t},mergeIf:function(t,e){return d.merge(t,e,{merger:d._mergerIf})}};(e.exports=d).callCallback=d.callback,d.indexOf=function(t,e,i){return Array.prototype.indexOf.call(t,e,i)},d.getValueOrDefault=d.valueOrDefault,d.getValueAtIndexOrDefault=d.valueAtIndexOrDefault},{}],43:[function(t,e,i){"use strict";var t=t(42),n={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return 1<=t?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1===t?1:(i=i||.3,e=n<1?(n=1,i/4):i/(2*Math.PI)*Math.asin(1/n),-(n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/i)))},easeOutElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1===t?1:(i=i||.3,e=n<1?(n=1,i/4):i/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},easeInOutElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:2==(t/=.5)?1:(i=i||.45,e=n<1?(n=1,i/4):i/(2*Math.PI)*Math.asin(1/n),t<1?n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},easeInBack:function(t){return t*t*(2.70158*t-1.70158)},easeOutBack:function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-n.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*n.easeInBounce(2*t):.5*n.easeOutBounce(2*t-1)+.5}};e.exports={effects:n},t.easingEffects=n},{42:42}],44:[function(t,e,i){"use strict";var r=t(42);e.exports={toLineHeight:function(t,e){var i=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,i,n,o;return r.isObject(t)?(e=+t.top||0,i=+t.right||0,n=+t.bottom||0,o=+t.left||0):e=i=n=o=+t||0,{top:e,right:i,bottom:n,left:o,height:e+n,width:o+i}},resolve:function(t,e,i){for(var n,o=0,a=t.length;o<a;++o)if(void 0!==(n=t[o])&&(void 0!==e&&"function"==typeof n&&(n=n(e)),void 0!==(n=void 0!==i&&r.isArray(n)?n[i]:n)))return n}}},{42:42}],45:[function(t,e,i){"use strict";e.exports=t(42),e.exports.easing=t(43),e.exports.canvas=t(41),e.exports.options=t(44)},{41:41,42:42,43:43,44:44}],46:[function(t,e,i){e.exports={acquireContext:function(t){return(t=t&&t.canvas?t.canvas:t)&&t.getContext("2d")||null}}},{}],47:[function(t,e,i){"use strict";var x=t(45),y="$chartjs",k="chartjs-",w=k+"render-monitor",M=k+"render-animation",S=["animationstart","webkitAnimationStart"],r={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function s(t,e){t=x.getStyle(t,e),e=t&&t.match(/^(\d+)(\.\d+)?px$/);return e?Number(e[1]):void 0}var n=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};function C(t,e,i){t.addEventListener(e,i,n)}function a(t,e,i){t.removeEventListener(e,i,n)}function _(t,e,i,n,o){return{type:t,chart:e,native:o||null,x:void 0!==i?i:null,y:void 0!==n?n:null}}function l(e,t,i){var n,o,a,r,s,l,u,d,c,h,f,g,p,m=e[y]||(e[y]={}),b=m.resizer=(h=!(u=function(){if(m.resizer)return t(_("resize",i))}),n=function(){c=Array.prototype.slice.call(arguments),d=d||this,h||(h=!0,x.requestAnimFrame.call(window,function(){h=!1,u.apply(d,c)}))},o=document.createElement("div"),a=k+"size-monitor",r="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;",o.style.cssText=r,o.className=a,o.innerHTML='<div class="'+a+'-expand" style="'+r+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+a+'-shrink" style="'+r+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>',s=o.childNodes[0],l=o.childNodes[1],o._reset=function(){s.scrollLeft=1e6,s.scrollTop=1e6,l.scrollLeft=1e6,l.scrollTop=1e6},C(s,"scroll",v.bind(s,"expand")),C(l,"scroll",v.bind(l,"shrink")),o);function v(){o._reset(),n()}g=function(){var t;m.resizer&&((t=e.parentNode)&&t!==b.parentNode&&t.insertBefore(b,t.firstChild),b._reset())},p=((f=e)[y]||(f[y]={})).renderProxy=function(t){t.animationName===M&&g()},x.each(S,function(t){C(f,t,p)}),f.classList.add(w)}function o(t){var e,i,n=t[y]||{},o=n.resizer;delete n.resizer,n=(e=t)[y]||{},(i=n.renderProxy)&&(x.each(S,function(t){a(e,t,i)}),delete n.renderProxy),e.classList.remove(w),o&&o.parentNode&&o.parentNode.removeChild(o)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t,e,i="from{opacity:0.99}to{opacity:1}";i="@-webkit-keyframes "+M+"{"+i+"}@keyframes "+M+"{"+i+"}."+w+"{-webkit-animation:"+M+" 0.001s;animation:"+M+" 0.001s;}",e=(t=this)._style||document.createElement("style"),t._style||(i="/* Chart.js */\n"+i,(t._style=e).setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(e)),e.appendChild(document.createTextNode(i))},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]);var i,n,o,a,r=(t=t&&t.canvas?t.canvas:t)&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(e=e,n=(t=t).style,o=t.getAttribute("height"),a=t.getAttribute("width"),t[y]={initial:{height:o,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null!==a&&""!==a||void 0!==(i=s(t,"width"))&&(t.width=i),null!==o&&""!==o||(""===t.style.height?t.height=t.width/(e.options.aspectRatio||2):(n=s(t,"height"),void 0!==i&&(t.height=n))),r):null},releaseContext:function(t){var i,n=t.canvas;n[y]&&(i=n[y].initial,["height","width"].forEach(function(t){var e=i[t];x.isNullOrUndef(e)?n.removeAttribute(t):n.setAttribute(t,e)}),x.each(i.style||{},function(t,e){n.style[e]=t}),n.width=n.width,delete n[y])},addEventListener:function(o,t,a){var e=o.canvas;"resize"===t?l(e,a,o):C(e,t,((e=a[y]||(a[y]={})).proxies||(e.proxies={}))[o.id+"_"+t]=function(t){var e,i,n;a((e=o,i=r[(t=t).type]||t.type,n=x.getRelativePosition(t,e),_(i,e,n.x,n.y,t)))})},removeEventListener:function(t,e,i){var n=t.canvas;"resize"===e?o(n):(i=((i[y]||{}).proxies||{})[t.id+"_"+e])&&a(n,e,i)}},x.addEvent=C,x.removeEvent=a},{45:45}],48:[function(t,e,i){"use strict";var n=t(45),o=t(46),t=t(47),t=t._enabled?t:o;e.exports=n.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},t)},{45:45,46:46,47:47}],49:[function(t,e,i){"use strict";var C=t(25),f=t(40),_=t(45);C._set("global",{plugins:{filler:{propagate:!0}}}),e.exports=function(){var h={dataset:function(t){var e=t.fill,t=t.chart,i=t.getDatasetMeta(e),n=i&&t.isDatasetVisible(e)&&i.dataset._children||[],o=n.length||0;return o?function(t,e){return e<o&&n[e]._view||null}:null},boundary:function(t){var t=t.boundary,e=t?t.x:null,i=t?t.y:null;return function(t){return{x:null===e?t.x:e,y:null===i?t.y:i}}}};function M(t){return t&&!t.skip}function S(t,e,i,n,o){var a;if(n&&o){for(t.moveTo(e[0].x,e[0].y),a=1;a<n;++a)_.canvas.lineTo(t,e[a-1],e[a]);for(t.lineTo(i[o-1].x,i[o-1].y),a=o-1;0<a;--a)_.canvas.lineTo(t,i[a],i[a-1],!0)}}return{id:"filler",afterDatasetsUpdate:function(t,e){for(var i,n,o,a,r,s,l=(t.data.datasets||[]).length,u=e.propagate,d=[],c=0;c<l;++c)o=null,(n=(i=t.getDatasetMeta(c)).dataset)&&n._model&&n instanceof f.Line&&(o={visible:t.isDatasetVisible(c),fill:function(t,e,i){var n=(t=t._model||{}).fill;if(!1===(n=void 0===n?!!t.backgroundColor:n)||null===n)return!1;if(!0===n)return"origin";if(t=parseFloat(n,10),isFinite(t)&&Math.floor(t)===t)return!((t="-"!==n[0]&&"+"!==n[0]?t:e+t)===e||t<0||i<=t)&&t;switch(n){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return n;default:return!1}}(n,c,l),chart:t,el:n}),i.$filler=o,d.push(o);for(c=0;c<l;++c)(o=d[c])&&(o.fill=function(t,e,i){var n,o=t[e].fill,a=[e];if(!i)return o;for(;!1!==o&&-1===a.indexOf(o);){if(!isFinite(o))return o;if(!(n=t[o]))return!1;if(n.visible)return o;a.push(o),o=n.fill}return!1}(d,c,u),o.boundary=function(t){var e=t.el._model||{},i=t.el._scale||{},t=t.fill,n=null;if(!isFinite(t)&&("start"===t?n=void 0===e.scaleBottom?i.bottom:e.scaleBottom:"end"===t?n=void 0===e.scaleTop?i.top:e.scaleTop:void 0!==e.scaleZero?n=e.scaleZero:i.getBasePosition?n=i.getBasePosition():i.getBasePixel&&(n=i.getBasePixel()),null!=n)){if(void 0!==n.x&&void 0!==n.y)return n;if("number"==typeof n&&isFinite(n))return{x:(t=i.isHorizontal())?n:null,y:t?null:n}}return null}(o),o.mapper=(s=r=void 0,r=(a=o).fill,!(s="dataset")===r?null:(isFinite(r)||(s="boundary"),h[s](a))))},beforeDatasetDraw:function(t,e){e=e.meta.$filler;if(e){var i=t.ctx,n=e.el,o=n._view,a=n._children||[],e=e.mapper,r=o.backgroundColor||C.global.defaultColor;if(e&&r&&a.length){_.canvas.clipArea(i,t.chartArea);var s,l,u,d,c,h,f=i,g=a,p=e,m=o,t=r,a=n._loop,b=g.length,v=m.spanGaps,x=[],y=[],k=0,w=0;for(f.beginPath(),s=0,l=b+!!a;s<l;++s)d=p(u=g[d=s%b]._view,d,m),c=M(u),h=M(d),c&&h?(k=x.push(u),w=y.push(d)):k&&w&&(v?(c&&x.push(u),h&&y.push(d)):(S(f,x,y,k,w),k=w=0,x=[],y=[]));S(f,x,y,k,w),f.closePath(),f.fillStyle=t,f.fill(),_.canvas.unclipArea(i)}}}}}},{25:25,40:40,45:45}],50:[function(t,e,i){"use strict";var I=t(25),r=t(26),P=t(45);I._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var e=e.datasetIndex,i=this.chart,n=i.getDatasetMeta(e);n.hidden=null===n.hidden?!i.data.datasets[e].hidden:null,i.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(i){var t=i.data;return P.isArray(t.datasets)?t.datasets.map(function(t,e){return{text:t.label,fillStyle:P.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!i.isDatasetVisible(e),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:e}},this):[]}}},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var i=0;i<t.data.datasets.length;i++)e.push('<li><span style="background-color:'+t.data.datasets[i].backgroundColor+'"></span>'),t.data.datasets[i].label&&e.push(t.data.datasets[i].label),e.push("</li>");return e.push("</ul>"),e.join("")}}),e.exports=function(n){var o=n.layoutService,t=P.noop;function D(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function a(t,e){var i=new n.Legend({ctx:t.ctx,options:e,chart:t});o.configure(t,i,e),o.addBox(t,i),t.legend=i}return n.Legend=r.extend({initialize:function(t){P.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:t,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:function(){var e=this,i=e.options.labels||{},t=P.callback(i.generateLabels,[e.chart],e)||[];i.filter&&(t=t.filter(function(t){return i.filter(t,e.chart.data)})),e.options.reverse&&t.reverse(),e.legendItems=t},afterBuildLabels:t,beforeFit:t,fit:function(){var i,n,o,a,r,s,l,u=this,t=u.options,d=t.labels,t=t.display,c=u.ctx,e=I.global,h=P.valueOrDefault,f=h(d.fontSize,e.defaultFontSize),g=h(d.fontStyle,e.defaultFontStyle),h=h(d.fontFamily,e.defaultFontFamily),e=P.fontString(f,g,h),p=u.legendHitBoxes=[],m=u.minSize,g=u.isHorizontal();g?(m.width=u.maxWidth,m.height=t?10:0):(m.width=t?10:0,m.height=u.maxHeight),t&&(c.font=e,g?(i=u.lineWidths=[0],n=u.legendItems.length?f+d.padding:0,c.textAlign="left",c.textBaseline="top",P.each(u.legendItems,function(t,e){t=D(d,f)+f/2+c.measureText(t.text).width;i[i.length-1]+t+d.padding>=u.width&&(n+=f+d.padding,i[i.length]=u.left),p[e]={left:0,top:0,width:t,height:f},i[i.length-1]+=t+d.padding}),m.height+=n):(h=d.padding,o=u.columnWidths=[],a=d.padding,s=r=0,l=f+h,P.each(u.legendItems,function(t,e){t=D(d,f)+f/2+c.measureText(t.text).width;s+l>m.height&&(a+=r+d.padding,o.push(r),s=r=0),r=Math.max(r,t),s+=l,p[e]={left:0,top:0,width:t,height:f}}),a+=r,o.push(r),m.width+=a)),u.width=m.width,u.height=m.height},afterFit:t,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var h,f,t,g,e,i,p,m,b,v,x,y=this,k=y.options,w=k.labels,M=I.global,S=M.elements.line,C=y.width,_=y.lineWidths;k.display&&(h=y.ctx,t=(f=P.valueOrDefault)(w.fontColor,M.defaultFontColor),g=f(w.fontSize,M.defaultFontSize),i=f(w.fontStyle,M.defaultFontStyle),e=f(w.fontFamily,M.defaultFontFamily),i=P.fontString(g,i,e),h.textAlign="left",h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=t,h.fillStyle=t,h.font=i,p=D(w,g),m=y.legendHitBoxes,b=y.isHorizontal(),v=b?{x:y.left+(C-_[0])/2,y:y.top+w.padding,line:0}:{x:y.left+w.padding,y:y.top+w.padding,line:0},x=g+w.padding,P.each(y.legendItems,function(t,e){var i,n,o,a,r,s,l=h.measureText(t.text).width,u=p+g/2+l,d=v.x,c=v.y;b?C<=d+u&&(c=v.y+=x,v.line++,d=v.x=y.left+(C-_[v.line])/2):c+x>y.bottom&&(d=v.x=d+y.columnWidths[v.line]+w.padding,c=v.y=y.top+w.padding,v.line++),n=d,i=c,o=t,isNaN(p)||p<=0||(h.save(),h.fillStyle=f(o.fillStyle,M.defaultColor),h.lineCap=f(o.lineCap,S.borderCapStyle),h.lineDashOffset=f(o.lineDashOffset,S.borderDashOffset),h.lineJoin=f(o.lineJoin,S.borderJoinStyle),h.lineWidth=f(o.lineWidth,S.borderWidth),h.strokeStyle=f(o.strokeStyle,M.defaultColor),s=0===f(o.lineWidth,S.borderWidth),h.setLineDash&&h.setLineDash(f(o.lineDash,S.borderDash)),k.labels&&k.labels.usePointStyle?(r=(a=g*Math.SQRT2/2)/Math.SQRT2,P.canvas.drawPoint(h,o.pointStyle,a,n+r,i+r)):(s||h.strokeRect(n,i,p,g),h.fillRect(n,i,p,g)),h.restore()),m[e].left=d,m[e].top=c,o=c,a=t,r=l,n=p+(s=g/2)+(n=d),o+=s,h.fillText(a.text,n,o),a.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(n,o),h.lineTo(n+r,o),h.stroke()),b?v.x+=u+w.padding:v.y+=x}))},handleEvent:function(t){var e=this,i=e.options,n="mouseup"===t.type?"click":t.type,o=!1;if("mousemove"===n){if(!i.onHover)return}else{if("click"!==n)return;if(!i.onClick)return}var a=t.x,r=t.y;if(a>=e.left&&a<=e.right&&r>=e.top&&r<=e.bottom)for(var s=e.legendHitBoxes,l=0;l<s.length;++l){var u=s[l];if(a>=u.left&&a<=u.left+u.width&&r>=u.top&&r<=u.top+u.height){if("click"===n){i.onClick.call(e,t.native,e.legendItems[l]),o=!0;break}if("mousemove"===n){i.onHover.call(e,t.native,e.legendItems[l]),o=!0;break}}}return o}}),{id:"legend",beforeInit:function(t){var e=t.options.legend;e&&a(t,e)},beforeUpdate:function(t){var e=t.options.legend,i=t.legend;e?(P.mergeIf(e,I.global.legend),i?(o.configure(t,i,e),i.options=e):a(t,e)):i&&(o.removeBox(t,i),delete t.legend)},afterEvent:function(t,e){t=t.legend;t&&t.handleEvent(e)}}}},{25:25,26:26,45:45}],51:[function(t,e,i){"use strict";var x=t(25),r=t(26),y=t(45);x._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),e.exports=function(n){var o=n.layoutService,t=y.noop;function a(t,e){var i=new n.Title({ctx:t.ctx,options:e,chart:t});o.configure(t,i,e),o.addBox(t,i),t.titleBlock=i}return n.Title=r.extend({initialize:function(t){y.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:t,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:t,afterBuildLabels:t,beforeFit:t,fit:function(){var t=this,e=y.valueOrDefault,i=t.options,n=i.display,e=e(i.fontSize,x.global.defaultFontSize),o=t.minSize,a=y.isArray(i.text)?i.text.length:1,e=y.options.toLineHeight(i.lineHeight,e),n=n?a*e+2*i.padding:0;t.isHorizontal()?(o.width=t.maxWidth,o.height=n):(o.width=n,o.height=t.maxHeight),t.width=o.width,t.height=o.height},afterFit:t,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,i=y.valueOrDefault,n=t.options,o=x.global;if(n.display){var a,r,s,l=i(n.fontSize,o.defaultFontSize),u=i(n.fontStyle,o.defaultFontStyle),d=i(n.fontFamily,o.defaultFontFamily),u=y.fontString(l,u,d),c=y.options.toLineHeight(n.lineHeight,l),d=c/2+n.padding,l=0,h=t.top,f=t.left,g=t.bottom,p=t.right,m=(e.fillStyle=i(n.fontColor,o.defaultFontColor),e.font=u,t.isHorizontal()?(r=f+(p-f)/2,s=h+d,a=p-f):(r="left"===n.position?f+d:p-d,s=h+(g-h)/2,a=g-h,l=Math.PI*("left"===n.position?-.5:.5)),e.save(),e.translate(r,s),e.rotate(l),e.textAlign="center",e.textBaseline="middle",n.text);if(y.isArray(m))for(var b=0,v=0;v<m.length;++v)e.fillText(m[v],0,b,a),b+=c;else e.fillText(m,0,0,a);e.restore()}}}),{id:"title",beforeInit:function(t){var e=t.options.title;e&&a(t,e)},beforeUpdate:function(t){var e=t.options.title,i=t.titleBlock;e?(y.mergeIf(e,x.global.title),i?(o.configure(t,i,e),i.options=e):a(t,e)):i&&(n.layoutService.removeBox(t,i),delete t.titleBlock)}}}},{25:25,26:26,45:45}],52:[function(t,e,i){"use strict";e.exports=function(t){var e=t.Scale.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,e=this,i=e.getLabels();e.minIndex=0,e.maxIndex=i.length-1,void 0!==e.options.ticks.min&&(t=i.indexOf(e.options.ticks.min),e.minIndex=-1!==t?t:e.minIndex),void 0!==e.options.ticks.max&&(t=i.indexOf(e.options.ticks.max),e.maxIndex=-1!==t?t:e.maxIndex),e.min=i[e.minIndex],e.max=i[e.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,o=i.isHorizontal();return n.yLabels&&!o?i.getRightValue(n.datasets[e].data[t]):i.ticks[t-i.minIndex]},getPixelForValue:function(t,e){var i,n=this,o=n.options.offset,a=Math.max(n.maxIndex+1-n.minIndex-(o?0:1),1);return(void 0!==(i=null!=t?n.isHorizontal()?t.x:t.y:i)||void 0!==t&&isNaN(e))&&(e=-1!==(i=n.getLabels().indexOf(t=i||t))?i:e),n.isHorizontal()?(i=(t=n.width/a)*(e-n.minIndex),o&&(i+=t/2),n.left+Math.round(i)):(i=(t=n.height/a)*(e-n.minIndex),o&&(i+=t/2),n.top+Math.round(i))},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this,i=e.options.offset,n=Math.max(e._ticks.length-(i?0:1),1),o=e.isHorizontal(),n=(o?e.width:e.height)/n;return t-=o?e.left:e.top,i&&(t-=n/2),(t<=0?0:Math.round(t/n))+e.minIndex},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",e,{position:"bottom"})}},{}],53:[function(t,e,i){"use strict";var n=t(25),c=t(45),o=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:o.formatters.linear}},i=t.LinearScaleBase.extend({determineDataLimits:function(){var r=this,s=r.options,l=r.chart,t=l.data.datasets,e=r.isHorizontal();function u(t){return e?t.xAxisID===r.id:t.yAxisID===r.id}r.min=null,r.max=null;var d,n=s.stacked;void 0===n&&c.each(t,function(t,e){var i;n||(i=l.getDatasetMeta(e),l.isDatasetVisible(e)&&u(i)&&void 0!==i.stack&&(n=!0))}),s.stacked||n?(d={},c.each(t,function(t,e){var i=l.getDatasetMeta(e),n=[i.type,void 0===s.stacked&&void 0===i.stack?e:"",i.stack].join("."),o=(void 0===d[n]&&(d[n]={positiveValues:[],negativeValues:[]}),d[n].positiveValues),a=d[n].negativeValues;l.isDatasetVisible(e)&&u(i)&&c.each(t.data,function(t,e){t=+r.getRightValue(t);isNaN(t)||i.data[e].hidden||(o[e]=o[e]||0,a[e]=a[e]||0,s.relativePoints?o[e]=100:t<0?a[e]+=t:o[e]+=t)})}),c.each(d,function(t){var t=t.positiveValues.concat(t.negativeValues),e=c.min(t),t=c.max(t);r.min=null===r.min?e:Math.min(r.min,e),r.max=null===r.max?t:Math.max(r.max,t)})):c.each(t,function(t,e){var i=l.getDatasetMeta(e);l.isDatasetVisible(e)&&u(i)&&c.each(t.data,function(t,e){t=+r.getRightValue(t);!isNaN(t)&&!i.data[e].hidden&&((null===r.min||t<r.min)&&(r.min=t),null===r.max||t>r.max)&&(r.max=t)})}),r.min=isFinite(r.min)&&!isNaN(r.min)?r.min:0,r.max=isFinite(r.max)&&!isNaN(r.max)?r.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this.options.ticks;return this.isHorizontal()?Math.min(e.maxTicksLimit||11,Math.ceil(this.width/50)):(t=c.valueOrDefault(e.fontSize,n.global.defaultFontSize),Math.min(e.maxTicksLimit||11,Math.ceil(this.height/(2*t))))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i=this,n=i.start,t=+i.getRightValue(t),o=i.end-n;return i.isHorizontal()?e=i.left+i.width/o*(t-n):e=i.bottom-i.height/o*(t-n),Math.round(e)},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=i?e.width:e.height,i=(i?t-e.left:e.bottom-t)/n;return e.start+(e.end-e.start)*i},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",i,e)}},{25:25,34:34,45:45}],54:[function(t,e,i){"use strict";var o=t(45),n=t(34);e.exports=function(e){var t=o.noop;e.LinearScaleBase=e.Scale.extend({getRightValue:function(t){return"string"==typeof t?+t:e.Scale.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks,i=(e.beginAtZero&&(i=o.sign(t.min),n=o.sign(t.max),i<0&&n<0?t.max=0:0<i&&0<n&&(t.min=0)),void 0!==e.min||void 0!==e.suggestedMin),n=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),i!=n&&t.min>=t.max&&(i?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var t=this,e=t.options.ticks,i=t.getTickLimit(),i={maxTicks:Math.max(2,i),min:e.min,max:e.max,stepSize:o.valueOrDefault(e.fixedStepSize,e.stepSize)},i=t.ticks=n.generators.linear(i,t);t.handleDirectionalChanges(),t.max=o.max(i),t.min=o.min(i),e.reverse?(i.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),e.Scale.prototype.convertTicksToLabels.call(t)}})}},{34:34,45:45}],55:[function(t,e,i){"use strict";var d=t(45),n=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:n.formatters.logarithmic}},i=t.Scale.extend({determineDataLimits:function(){var a=this,r=a.options,t=r.ticks,s=a.chart,e=s.data.datasets,i=d.valueOrDefault,n=a.isHorizontal();function l(t){return n?t.xAxisID===a.id:t.yAxisID===a.id}a.min=null,a.max=null,a.minNotZero=null;var u,o=r.stacked;void 0===o&&d.each(e,function(t,e){var i;o||(i=s.getDatasetMeta(e),s.isDatasetVisible(e)&&l(i)&&void 0!==i.stack&&(o=!0))}),r.stacked||o?(u={},d.each(e,function(t,e){var n=s.getDatasetMeta(e),o=[n.type,void 0===r.stacked&&void 0===n.stack?e:"",n.stack].join(".");s.isDatasetVisible(e)&&l(n)&&(void 0===u[o]&&(u[o]=[]),d.each(t.data,function(t,e){var i=u[o],t=+a.getRightValue(t);isNaN(t)||n.data[e].hidden||(i[e]=i[e]||0,r.relativePoints?i[e]=100:i[e]+=t)}))}),d.each(u,function(t){var e=d.min(t),t=d.max(t);a.min=null===a.min?e:Math.min(a.min,e),a.max=null===a.max?t:Math.max(a.max,t)})):d.each(e,function(t,e){var i=s.getDatasetMeta(e);s.isDatasetVisible(e)&&l(i)&&d.each(t.data,function(t,e){t=+a.getRightValue(t);isNaN(t)||i.data[e].hidden||((null===a.min||t<a.min)&&(a.min=t),(null===a.max||t>a.max)&&(a.max=t),0!=t&&(null===a.minNotZero||t<a.minNotZero)&&(a.minNotZero=t))})}),a.min=i(t.min,a.min),a.max=i(t.max,a.max),a.min===a.max&&(0!==a.min&&null!==a.min?(a.min=Math.pow(10,Math.floor(d.log10(a.min))-1),a.max=Math.pow(10,Math.floor(d.log10(a.max))+1)):(a.min=1,a.max=10))},buildTicks:function(){var t=this,e=t.options.ticks,i={min:e.min,max:e.max},i=t.ticks=n.generators.logarithmic(i,t);t.isHorizontal()||i.reverse(),t.max=d.max(i),t.min=d.min(i),e.reverse?(i.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),t.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},getPixelForValue:function(t){var e,i,n=this,o=n.start,t=+n.getRightValue(t),a=n.options.ticks,a=n.isHorizontal()?(i=d.log10(n.end)-d.log10(o),0==t?n.left:(e=n.width,n.left+e/i*(d.log10(t)-d.log10(o)))):(e=n.height,0!==o||a.reverse?0===n.end&&a.reverse?(i=d.log10(n.start)-d.log10(n.minNotZero),t===n.end?n.top:t===n.minNotZero?n.top+.02*e:n.top+.02*e+.98*e/i*(d.log10(t)-d.log10(n.minNotZero))):0==t?a.reverse?n.top:n.bottom:(i=d.log10(n.end)-d.log10(o),e=n.height,n.bottom-e/i*(d.log10(t)-d.log10(o))):(i=d.log10(n.end)-d.log10(n.minNotZero),t===o?n.bottom:t===n.minNotZero?n.bottom-.02*e:n.bottom-.02*e-.98*e/i*(d.log10(t)-d.log10(n.minNotZero))));return a},getValueForPixel:function(t){var e,i=this,n=d.log10(i.end)-d.log10(i.start),t=i.isHorizontal()?(e=i.width,i.start*Math.pow(10,(t-i.left)*n/e)):(e=i.height,Math.pow(10,(i.bottom-t)*n/e)/i.start);return t}});t.scaleService.registerScaleType("logarithmic",i,e)}},{34:34,45:45}],56:[function(t,e,i){"use strict";var a=t(25),w=t(45),s=t(34);e.exports=function(e){var x=a.global,t={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:s.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function y(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function k(t){var t=t.options.pointLabels,e=w.valueOrDefault(t.fontSize,x.defaultFontSize),i=w.valueOrDefault(t.fontStyle,x.defaultFontStyle),t=w.valueOrDefault(t.fontFamily,x.defaultFontFamily);return{size:e,style:i,family:t,font:w.fontString(e,i,t)}}function h(t,e,i,n,o){return t===n||t===o?{start:e-i/2,end:e+i/2}:t<n||o<t?{start:e-i-5,end:e}:{start:e,end:e+i+5}}function i(t){for(var e,i,n=k(t),o=Math.min(t.height/2,t.width/2),a={r:t.width,l:0,t:t.height,b:0},r={},s=(t.ctx.font=n.font,t._pointLabelSizes=[],y(t)),l=0;l<s;l++){e=t.getPointPosition(l,o),i=t.ctx,d=n.size,u=t.pointLabels[l]||"",i=w.isArray(u)?{w:w.longestText(i,i.font,u),h:u.length*d+1.5*(u.length-1)*d}:{w:i.measureText(u).width,h:d},t._pointLabelSizes[l]=i;var u=t.getIndexAngle(l),d=w.toDegrees(u)%360,c=h(d,e.x,i.w,0,180),d=h(d,e.y,i.h,90,270);c.start<a.l&&(a.l=c.start,r.l=u),c.end>a.r&&(a.r=c.end,r.r=u),d.start<a.t&&(a.t=d.start,r.t=u),d.end>a.b&&(a.b=d.end,r.b=u)}t.setReductions(o,a,r)}function n(t){var e=t.ctx,i=w.valueOrDefault,n=t.options,o=n.angleLines,a=n.pointLabels,r=(e.lineWidth=o.lineWidth,e.strokeStyle=o.color,t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max)),s=k(t);e.textBaseline="top";for(var l,u=y(t)-1;0<=u;u--)if(o.display&&(d=t.getPointPosition(u,r),e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(d.x,d.y),e.stroke(),e.closePath()),a.display){var d=t.getPointPosition(u,r+5),c=i(a.fontColor,x.defaultFontColor),c=(e.font=s.font,e.fillStyle=c,t.getIndexAngle(u)),c=w.toDegrees(c),h=(e.textAlign=0===(p=c)||180===p?"center":p<180?"left":"right",p=c,c=t._pointLabelSizes[u],l=d,90===p||270===p?l.y-=c.h/2:(270<p||p<90)&&(l.y-=c.h),v=b=m=p=g=f=h=void 0,e),f=t.pointLabels[u]||"",g=d,p=s.size;if(w.isArray(f))for(var m=g.y,b=1.5*p,v=0;v<f.length;++v)h.fillText(f[v],g.x,m),m+=b;else h.fillText(f,g.x,g.y)}}function r(t){return w.isNumber(t)?t:0}var o=e.LinearScaleBase.extend({setDimensions:function(){var t=this,e=t.options,i=e.ticks,n=(t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2),w.min([t.height,t.width])),o=w.valueOrDefault(i.fontSize,x.defaultFontSize);t.drawingArea=e.display?n/2-(o/2+i.backdropPaddingY):n/2},determineDataLimits:function(){var n=this,o=n.chart,a=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;w.each(o.data.datasets,function(t,e){var i;o.isDatasetVisible(e)&&(i=o.getDatasetMeta(e),w.each(t.data,function(t,e){t=+n.getRightValue(t);isNaN(t)||i.data[e].hidden||(a=Math.min(t,a),r=Math.max(t,r))}))}),n.min=a===Number.POSITIVE_INFINITY?0:a,n.max=r===Number.NEGATIVE_INFINITY?0:r,n.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=w.valueOrDefault(t.fontSize,x.defaultFontSize);return Math.min(t.maxTicksLimit||11,Math.ceil(this.drawingArea/(1.5*e)))},convertTicksToLabels:function(){var t=this;e.LinearScaleBase.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,e;this.options.pointLabels.display?i(this):(t=this,e=Math.min(t.height/2,t.width/2),t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0))},setReductions:function(t,e,i){var n=e.l/Math.sin(i.l),o=Math.max(e.r-this.width,0)/Math.sin(i.r),a=-e.t/Math.cos(i.t),e=-Math.max(e.b-this.height,0)/Math.cos(i.b),n=r(n),o=r(o),a=r(a),e=r(e);this.drawingArea=Math.min(Math.round(t-(n+o)/2),Math.round(t-(a+e)/2)),this.setCenterPoint(n,o,a,e)},setCenterPoint:function(t,e,i,n){var o=this,e=o.width-e-o.drawingArea,t=t+o.drawingArea,i=i+o.drawingArea,n=o.height-n-o.drawingArea;o.xCenter=Math.round((t+e)/2+o.left),o.yCenter=Math.round((i+n)/2+o.top)},getIndexAngle:function(t){return t*(2*Math.PI/y(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e,i=this;return null===t?0:(e=i.drawingArea/(i.max-i.min),i.options.ticks.reverse?(i.max-t)*e:(t-i.min)*e)},getPointPosition:function(t,e){t=this.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(t)*e)+this.xCenter,y:Math.round(Math.sin(t)*e)+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0)},draw:function(){var d,c,h,t,e,f,g=this,i=g.options,p=i.gridLines,m=i.ticks,b=w.valueOrDefault;i.display&&(d=g.ctx,c=this.getIndexAngle(0),h=b(m.fontSize,x.defaultFontSize),t=b(m.fontStyle,x.defaultFontStyle),e=b(m.fontFamily,x.defaultFontFamily),f=w.fontString(h,t,e),w.each(g.ticks,function(t,e){if(0<e||m.reverse){var i=g.getDistanceFromCenterForValue(g.ticksAsNumbers[e]);if(p.display&&0!==e){var n=g,o=p,a=i,r=n.ctx;if(r.strokeStyle=w.valueAtIndexOrDefault(o.color,e-1),r.lineWidth=w.valueAtIndexOrDefault(o.lineWidth,e-1),n.options.gridLines.circular)r.beginPath(),r.arc(n.xCenter,n.yCenter,a,0,2*Math.PI),r.closePath(),r.stroke();else{var s=y(n);if(0!==s){r.beginPath();var l=n.getPointPosition(0,a);r.moveTo(l.x,l.y);for(var u=1;u<s;u++)l=n.getPointPosition(u,a),r.lineTo(l.x,l.y);r.closePath(),r.stroke()}}}m.display&&(o=b(m.fontColor,x.defaultFontColor),d.font=f,d.save(),d.translate(g.xCenter,g.yCenter),d.rotate(c),m.showLabelBackdrop&&(e=d.measureText(t).width,d.fillStyle=m.backdropColor,d.fillRect(-e/2-m.backdropPaddingX,-i-h/2-m.backdropPaddingY,e+2*m.backdropPaddingX,h+2*m.backdropPaddingY)),d.textAlign="center",d.textBaseline="middle",d.fillStyle=o,d.fillText(t,0,-i),d.restore())}}),i.angleLines.display||i.pointLabels.display)&&n(g)}});e.scaleService.registerScaleType("radialLinear",o,t)}},{25:25,34:34,45:45}],57:[function(t,e,i){"use strict";var I="function"==typeof(I=t(1))?I:window.moment,o=t(25),g=t(45),f=Number.MIN_SAFE_INTEGER||-9007199254740991,P=Number.MAX_SAFE_INTEGER||9007199254740991,A={millisecond:{major:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{major:!0,size:1e3,steps:[1,2,5,10,30]},minute:{major:!0,size:6e4,steps:[1,2,5,10,30]},hour:{major:!0,size:36e5,steps:[1,2,3,6,12]},day:{major:!0,size:864e5,steps:[1,2,5]},week:{major:!1,size:6048e5,steps:[1,2,3,4]},month:{major:!0,size:2628e6,steps:[1,2,3]},quarter:{major:!1,size:7884e6,steps:[1,2,3,4]},year:{major:!0,size:3154e7}},F=Object.keys(A);function p(t,e){return t-e}function m(t){for(var e,i={},n=[],o=0,a=t.length;o<a;++o)i[e=t[o]]||(i[e]=!0,n.push(e));return n}function T(t,e,i,n){var o=function(t,e,i){for(var n,o,a,r=0,s=t.length-1;0<=r&&r<=s;){if(o=t[(n=r+s>>1)-1]||null,a=t[n],!o)return{lo:null,hi:a};if(a[e]<i)r=1+n;else{if(!(o[e]>i))return{lo:o,hi:a};s=n-1}}return{lo:a,hi:null}}(t,e,i),a=o.lo?o.hi?o.lo:t[t.length-2]:t[0],o=o.lo?o.hi||t[t.length-1]:t[1],t=o[e]-a[e],i=t?(i-a[e])/t:0,e=(o[n]-a[n])*i;return a[n]+e}function a(t,e){var i=e.parser,e=e.parser||e.format;return"function"==typeof i?i(t):"string"==typeof t&&"string"==typeof e?I(t,e):!(t=t instanceof I?t:I(t)).isValid()&&"function"==typeof e?e(t):t}function O(t,e){var i;return!g.isNullOrUndef(t)&&(i=e.options.time,(e=a(e.getRightValue(t),i)).isValid())?(i.round&&e.startOf(i.round),e.valueOf()):null}function R(t,e,i,n,o,a){var r,s=a.time,l=g.valueOrDefault(s.stepSize,s.unitStepSize),u="week"===i&&s.isoWeekday,a=a.ticks.major.enabled,d=A[i],c=I(t),h=I(e),f=[],l=l||function(t,e,i,n){var o,a,r,s=e-t,l=(e=A[i]).size,u=e.steps;if(!u)return Math.ceil(s/((n||1)*l));for(o=0,a=u.length;o<a&&(r=u[o],!(Math.ceil(s/(l*r))<=n));++o);return r}(t,e,i,o);for(u&&(c=c.isoWeekday(u),h=h.isoWeekday(u)),c=c.startOf(u?"day":i),(h=h.startOf(u?"day":i))<e&&h.add(1,i),r=I(c),a&&n&&!u&&!s.round&&(r.startOf(n),r.add(~~((c-r)/(d.size*l))*l,i));r<h;r.add(l,i))f.push(+r);return f.push(+r),f}e.exports=function(e){var t=e.Scale.extend({initialize:function(){if(!I)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),e.Scale.prototype.initialize.call(this)},update:function(){var t=this.options;return t.time&&t.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),e.Scale.prototype.update.apply(this,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),e.Scale.prototype.getRightValue.call(this,t)},determineDataLimits:function(){for(var t,e,i,n,o=this,a=o.chart,r=o.options.time,s=O(r.min,o)||P,r=O(r.max,o)||f,l=[],u=[],d=[],c=0,h=a.data.labels.length;c<h;++c)d.push(O(a.data.labels[c],o));for(c=0,h=(a.data.datasets||[]).length;c<h;++c)if(a.isDatasetVisible(c))if(i=a.data.datasets[c].data,g.isObject(i[0]))for(u[c]=[],t=0,e=i.length;t<e;++t)n=O(i[t],o),l.push(n),u[c][t]=n;else l.push.apply(l,d),u[c]=d.slice(0);else u[c]=[];d.length&&(d=m(d).sort(p),s=Math.min(s,d[0]),r=Math.max(r,d[d.length-1])),l.length&&(l=m(l).sort(p),s=Math.min(s,l[0]),r=Math.max(r,l[l.length-1])),s=s===P?+I().startOf("day"):s,r=r===f?+I().endOf("day")+1:r,o.min=Math.min(s,r),o.max=Math.max(s+1,r),o._horizontal=o.isHorizontal(),o._table=[],o._timestamps={data:l,datasets:u,labels:d}},buildTicks:function(){var t,e,i,n,o,a,r,s,l,u,d=this,c=d.min,h=d.max,f=d.options,g=f.time,p=g.displayFormats,m=d.getLabelCapacity(c),b=g.unit||function(t,e,i,n){for(var o,a,r=F.length,s=F.indexOf(t);s<r-1;++s)if(a=(o=A[F[s]]).steps?o.steps[o.steps.length-1]:P,Math.ceil((i-e)/(a*o.size))<=n)return F[s];return F[r-1]}(g.minUnit,c,h,m),v=function(t){for(var e=F.indexOf(t)+1,i=F.length;e<i;++e)if(A[F[e]].major)return F[e]}(b),x=[],y=[];switch(f.ticks.source){case"data":x=d._timestamps.data;break;case"labels":x=d._timestamps.labels;break;default:x=R(c,h,b,v,m,f)}for("ticks"===f.bounds&&x.length&&(c=x[0],h=x[x.length-1]),c=O(g.min,d)||c,h=O(g.max,d)||h,t=0,e=x.length;t<e;++t)c<=(i=x[t])&&i<=h&&y.push(i);d.min=c,d.max=h,d._unit=b,d._majorUnit=v,d._minorFormat=p[b],d._majorFormat=p[v],d._table=function(t,e,i,n){if("linear"===n||!t.length)return[{time:e,pos:0},{time:i,pos:1}];for(var o,a,r,s=[],l=[e],u=0,d=t.length;u<d;++u)e<(a=t[u])&&a<i&&l.push(a);for(l.push(i),u=0,d=l.length;u<d;++u)r=l[u+1],a=l[u],void 0!==(o=l[u-1])&&void 0!==r&&Math.round((r+o)/2)===a||s.push({time:a,pos:u/(d-1)});return s}(d._timestamps.data,c,h,f.distribution),d._offsets=(g=d._table,p=y,n=c,o=h,u=l=0,(a=f).offset&&p.length&&(a.time.min||(r=1<p.length?p[1]:o,s=p[0],l=(T(g,"time",r,"pos")-T(g,"time",s,"pos"))/2),a.time.max||(r=p[p.length-1],s=1<p.length?p[p.length-2]:n,u=(T(g,"time",r,"pos")-T(g,"time",s,"pos"))/2)),{left:l,right:u});for(var k,w,M=y,S=v,C=[],_=0,D=M.length;_<D;++_)k=M[_],w=!!S&&k===+I(k).startOf(S),C.push({value:k,major:w});return C},getLabelForIndex:function(t,e){var i=this.chart.data,n=this.options.time,o=i.labels&&t<i.labels.length?i.labels[t]:"",i=i.datasets[e].data[t];return g.isObject(i)&&(o=this.getRightValue(i)),o=n.tooltipFormat?a(o,n).format(n.tooltipFormat):o},tickFormatFunction:function(t,e,i){var n=this,o=n.options,a=t.valueOf(),r=n._majorUnit,s=n._majorFormat,l=t.clone().startOf(n._majorUnit).valueOf(),u=o.ticks.major,r=u.enabled&&r&&s&&a===l,a=t.format(r?s:n._minorFormat),l=r?u:o.ticks.minor,t=g.valueOrDefault(l.callback,l.userCallback);return t?t(a,e,i):a},convertTicksToLabels:function(t){for(var e=[],i=0,n=t.length;i<n;++i)e.push(this.tickFormatFunction(I(t[i].value),i,t));return e},getPixelForOffset:function(t){var e=this,i=e._horizontal?e.width:e.height,n=e._horizontal?e.left:e.top,t=T(e._table,"time",t,"pos");return n+i*(e._offsets.left+t)/(e._offsets.left+1+e._offsets.right)},getPixelForValue:function(t,e,i){var n=null;if(null!==(n=null===(n=void 0!==e&&void 0!==i?this._timestamps.datasets[i][e]:n)?O(t,this):n))return this.getPixelForOffset(n)},getPixelForTick:function(t){var e=this.getTicks();return 0<=t&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,i=e._horizontal?e.width:e.height,n=e._horizontal?e.left:e.top,t=(i?(t-n)/i:0)*(e._offsets.left+1+e._offsets.left)-e._offsets.right,n=T(e._table,"pos",t,"time");return I(n)},getLabelWidth:function(t){var e=this.options.ticks,t=this.ctx.measureText(t).width,i=g.toRadians(e.maxRotation),n=Math.cos(i),i=Math.sin(i);return t*n+g.valueOrDefault(e.fontSize,o.global.defaultFontSize)*i},getLabelCapacity:function(t){var e=this,t=(e._minorFormat=e.options.time.displayFormats.millisecond,e.tickFormatFunction(I(t),0,[])),t=e.getLabelWidth(t),e=e.isHorizontal()?e.width:e.height;return Math.floor(e/t)}});e.scaleService.registerScaleType("time",t,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},{1:1,25:25,45:45}]},{},[7])(7)});