Template:Toronto/js/bundle min js

// ####################################################### // # This js was produced by the igemwiki generator # // # https://github.com/igemuoftATG/generator-igemwiki # // #######################################################

// repo for this wiki: https://github.com/igemuoftATG/wiki17

!function t(e,i,a){function n(o,s){if(!i[o]){if(!e[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(r)return r(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=i[o]={exports:{}};e[o][0].call(u.exports,function(t){var i=e[o][1][t];return n(i?i:t)},u,u.exports,t,e,i,a)}return i[o].exports}for(var r="function"==typeof require&&require,o=0;o<a.length;o++)n(a[o]);return n}({1:[function(t,e,i){(function(a){!function(t){if("object"==typeof i&&"undefined"!=typeof e)e.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof a?a:"undefined"!=typeof self?self:this,n.Chart=t()}}(function(){return function e(i,a,n){function r(s,l){if(!a[s]){if(!i[s]){var c="function"==typeof t&&t;if(!l&&c)return c(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=a[s]={exports:{}};i[s][0].call(d.exports,function(t){var e=i[s][1][t];return r(e?e:t)},d,d.exports,e,i,a,n)}return a[s].exports}for(var o="function"==typeof t&&t,s=0;s<n.length;s++)r(n[s]);return r}({1:[function(t,e,i){},{}],2:[function(t,e,i){function a(t){if(t){var e=/^#([a-fA-F0-9]{3})$/,i=/^#([a-fA-F0-9]{6})$/,a=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,n=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=/(\w+)/,o=[0,0,0],s=1,l=t.match(e);if(l){l=l[1];for(var c=0;c<o.length;c++)o[c]=parseInt(l[c]+l[c],16)}else if(l=t.match(i)){l=l[1];for(var c=0;c<o.length;c++)o[c]=parseInt(l.slice(2*c,2*c+2),16)}else if(l=t.match(a)){for(var c=0;c<o.length;c++)o[c]=parseInt(l[c+1]);s=parseFloat(l[4])}else if(l=t.match(n)){for(var c=0;c<o.length;c++)o[c]=Math.round(2.55*parseFloat(l[c+1]));s=parseFloat(l[4])}else if(l=t.match(r)){if("transparent"==l[1])return[0,0,0,0];if(o=x[l[1]],!o)return}for(var c=0;c<o.length;c++)o[c]=b(o[c],0,255);return s=s||0==s?b(s,0,1):1,o[3]=s,o}}function n(t){if(t){var e=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,i=t.match(e);if(i){var a=parseFloat(i[4]),n=b(parseInt(i[1]),0,360),r=b(parseFloat(i[2]),0,100),o=b(parseFloat(i[3]),0,100),s=b(isNaN(a)?1:a,0,1);return[n,r,o,s]}}}function r(t){if(t){var e=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,i=t.match(e);if(i){var a=parseFloat(i[4]),n=b(parseInt(i[1]),0,360),r=b(parseFloat(i[2]),0,100),o=b(parseFloat(i[3]),0,100),s=b(isNaN(a)?1:a,0,1);return[n,r,o,s]}}}function o(t){var e=a(t);return e&&e.slice(0,3)}function s(t){var e=n(t);return e&&e.slice(0,3)}function l(t){var e=a(t);return e?e[3]:(e=n(t))?e[3]:(e=r(t))?e[3]:void 0}function c(t){return"#"+y(t[0])+y(t[1])+y(t[2])}function u(t,e){return e<1||t[3]&&t[3]<1?d(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"}function d(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function h(t,e){if(e<1||t[3]&&t[3]<1)return f(t,e);var i=Math.round(t[0]/255*100),a=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return"rgb("+i+"%, "+a+"%, "+n+"%)"}function f(t,e){var i=Math.round(t[0]/255*100),a=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return"rgba("+i+"%, "+a+"%, "+n+"%, "+(e||t[3]||1)+")"}function p(t,e){return e<1||t[3]&&t[3]<1?g(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"}function g(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function v(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"}function m(t){return k[t.slice(0,3)]}function b(t,e,i){return Math.min(Math.max(e,t),i)}function y(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var x=t(6);e.exports={getRgba:a,getHsla:n,getRgb:o,getHsl:s,getHwb:r,getAlpha:l,hexString:c,rgbString:u,rgbaString:d,percentString:h,percentaString:f,hslString:p,hslaString:g,hwbString:v,keyword:m};var k={};for(var w in x)k[x[w]]=w},{6:6}],3:[function(t,e,i){var a=t(5),n=t(2),r=function(t){if(t instanceof r)return t;if(!(this instanceof r))return new r(t);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};var e;"string"==typeof t?(e=n.getRgba(t),e?this.setValues("rgb",e):(e=n.getHsla(t))?this.setValues("hsl",e):(e=n.getHwb(t))&&this.setValues("hwb",e)):"object"==typeof t&&(e=t,void 0!==e.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))};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%=360,t=t<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 a=t[i]/255;e[i]=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb,e=(299*t[0]+587*t[1]+114*t[2])/1e3;return e<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,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),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,i=(e[0]+t)%360;return e[0]=i<0?360+i:i,this.setValues("hsl",e),this},mix:function(t,e){var i=this,a=t,n=void 0===e?.5:e,r=2*n-1,o=i.alpha()-a.alpha(),s=((r*o===-1?r:(r+o)/(1+r*o))+1)/2,l=1-s;return this.rgb(s*i.red()+l*a.red(),s*i.green()+l*a.green(),s*i.blue()+l*a.blue()).alpha(i.alpha()*n+a.alpha()*(1-n))},toJSON:function(){return this.rgb()},clone:function(){var t,e,i=new r,a=this.values,n=i.values;for(var o in a)a.hasOwnProperty(o)&&(t=a[o],e={}.toString.call(t),"[object Array]"===e?n[o]=t.slice(0):"[object Number]"===e?n[o]=t:console.error("unexpected color value:",t));return i}},r.prototype.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={},a=0;a<t.length;a++)i[t.charAt(a)]=e[t][a];return 1!==e.alpha&&(i.a=e.alpha),i},r.prototype.setValues=function(t,e){var i,n=this.values,r=this.spaces,o=this.maxes,s=1;if(this.valid=!0,"alpha"===t)s=e;else if(e.length)n[t]=e.slice(0,t.length),s=e[t.length];else if(void 0!==e[t.charAt(0)]){for(i=0;i<t.length;i++)n[t][i]=e[t.charAt(i)];s=e.a}else if(void 0!==e[r[t][0]]){var l=r[t];for(i=0;i<t.length;i++)n[t][i]=e[l[i]];s=e.alpha}if(n.alpha=Math.max(0,Math.min(1,void 0===s?n.alpha:s)),"alpha"===t)return!1;var c;for(i=0;i<t.length;i++)c=Math.max(0,Math.min(o[t][i],n[t][i])),n[t][i]=Math.round(c);for(var u in r)u!==t&&(n[u]=a[t][u](n[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 a=this.values[t];return void 0===i?a[e]:i===a[e]?this:(a[e]=i,this.setValues(t,a),this)},"undefined"!=typeof window&&(window.Color=r),e.exports=r},{2:2,5:5}],4:[function(t,e,i){function a(t){var e,i,a,n=t[0]/255,r=t[1]/255,o=t[2]/255,s=Math.min(n,r,o),l=Math.max(n,r,o),c=l-s;return l==s?e=0:n==l?e=(r-o)/c:r==l?e=2+(o-n)/c:o==l&&(e=4+(n-r)/c),e=Math.min(60*e,360),e<0&&(e+=360),a=(s+l)/2,i=l==s?0:a<=.5?c/(l+s):c/(2-l-s),[e,100*i,100*a]}function n(t){var e,i,a,n=t[0],r=t[1],o=t[2],s=Math.min(n,r,o),l=Math.max(n,r,o),c=l-s;return i=0==l?0:c/l*1e3/10,l==s?e=0:n==l?e=(r-o)/c:r==l?e=2+(o-n)/c:o==l&&(e=4+(n-r)/c),e=Math.min(60*e,360),e<0&&(e+=360),a=l/255*1e3/10,[e,i,a]}function o(t){var e=t[0],i=t[1],n=t[2],r=a(t)[0],o=1/255*Math.min(e,Math.min(i,n)),n=1-1/255*Math.max(e,Math.max(i,n));return[r,100*o,100*n]}function s(t){var e,i,a,n,r=t[0]/255,o=t[1]/255,s=t[2]/255;return n=Math.min(1-r,1-o,1-s),e=(1-r-n)/(1-n)||0,i=(1-o-n)/(1-n)||0,a=(1-s-n)/(1-n)||0,[100*e,100*i,100*a,100*n]}function l(t){return Z[JSON.stringify(t)]}function c(t){var e=t[0]/255,i=t[1]/255,a=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92;var n=.4124*e+.3576*i+.1805*a,r=.2126*e+.7152*i+.0722*a,o=.0193*e+.1192*i+.9505*a;return[100*n,100*r,100*o]}function u(t){var e,i,a,n=c(t),r=n[0],o=n[1],s=n[2];return r/=95.047,o/=100,s/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,e=116*o-16,i=500*(r-o),a=200*(o-s),[e,i,a]}function d(t){return B(u(t))}function h(t){var e,i,a,n,r,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return r=255*l,[r,r,r];i=l<.5?l*(1+s):l+s-l*s,e=2*l-i,n=[0,0,0];for(var c=0;c<3;c++)a=o+1/3*-(c-1),a<0&&a++,a>1&&a--,r=6*a<1?e+6*(i-e)*a:2*a<1?i:3*a<2?e+(i-e)*(2/3-a)*6:e,n[c]=255*r;return n}function f(t){var e,i,a=t[0],n=t[1]/100,r=t[2]/100;return 0===r?[0,0,0]:(r*=2,n*=r<=1?r:2-r,i=(r+n)/2,e=2*n/(r+n),[a,100*e,100*i])}function p(t){return o(h(t))}function v(t){return s(h(t))}function m(t){return l(h(t))}function y(t){var e=t[0]/60,i=t[1]/100,a=t[2]/100,n=Math.floor(e)%6,r=e-Math.floor(e),o=255*a*(1-i),s=255*a*(1-i*r),l=255*a*(1-i*(1-r)),a=255*a;switch(n){case 0:return[a,l,o];case 1:return[s,a,o];case 2:return[o,a,l];case 3:return[o,s,a];case 4:return[l,o,a];case 5:return[a,o,s]}}function x(t){var e,i,a=t[0],n=t[1]/100,r=t[2]/100;return i=(2-n)*r,e=n*r,e/=i<=1?i:2-i,e=e||0,i/=2,[a,100*e,100*i]}function k(t){return o(y(t))}function w(t){return s(y(t))}function M(t){return l(y(t))}function _(t){var e,i,a,n,o=t[0]/360,s=t[1]/100,l=t[2]/100,c=s+l;switch(c>1&&(s/=c,l/=c),e=Math.floor(6*o),i=1-l,a=6*o-e,0!=(1&e)&&(a=1-a),n=s+a*(i-s),e){default:case 6:case 0:r=i,g=n,b=s;break;case 1:r=n,g=i,b=s;break;case 2:r=s,g=i,b=n;break;case 3:r=s,g=n,b=i;break;case 4:r=n,g=s,b=i;break;case 5:r=i,g=s,b=n}return[255*r,255*g,255*b]}function S(t){return a(_(t))}function C(t){return n(_(t))}function A(t){return s(_(t))}function D(t){return l(_(t))}function P(t){var e,i,a,n=t[0]/100,r=t[1]/100,o=t[2]/100,s=t[3]/100;return e=1-Math.min(1,n*(1-s)+s),i=1-Math.min(1,r*(1-s)+s),a=1-Math.min(1,o*(1-s)+s),[255*e,255*i,255*a]}function I(t){return a(P(t))}function F(t){return n(P(t))}function T(t){return o(P(t))}function R(t){return l(P(t))}function z(t){var e,i,a,n=t[0]/100,r=t[1]/100,o=t[2]/100;return e=3.2406*n+r*-1.5372+o*-.4986,i=n*-.9689+1.8758*r+.0415*o,a=.0557*n+r*-.204+1.057*o,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*=12.92,e=Math.min(Math.max(0,e),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[255*e,255*i,255*a]}function L(t){var e,i,a,n=t[0],r=t[1],o=t[2];return n/=95.047,r/=100,o/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,e=116*r-16,i=500*(n-r),a=200*(r-o),[e,i,a]}function O(t){return B(L(t))}function V(t){var e,i,a,n,r=t[0],o=t[1],s=t[2];return r<=8?(i=100*r/903.3,n=7.787*(i/100)+16/116):(i=100*Math.pow((r+16)/116,3),n=Math.pow(i/100,1/3)),e=e/95.047<=.008856?e=95.047*(o/500+n-16/116)/7.787:95.047*Math.pow(o/500+n,3),a=a/108.883<=.008859?a=108.883*(n-s/200-16/116)/7.787:108.883*Math.pow(n-s/200,3),[e,i,a]}function B(t){var e,i,a,n=t[0],r=t[1],o=t[2];return e=Math.atan2(o,r),i=360*e/2/Math.PI,i<0&&(i+=360),a=Math.sqrt(r*r+o*o),[n,a,i]}function W(t){return z(V(t))}function N(t){var e,i,a,n=t[0],r=t[1],o=t[2];return a=o/360*2*Math.PI,e=r*Math.cos(a),i=r*Math.sin(a),[n,e,i]}function E(t){return V(N(t))}function H(t){return W(N(t))}function q(t){return K[t]}function j(t){return a(q(t))}function Y(t){return n(q(t))}function U(t){return o(q(t))}function J(t){return s(q(t))}function X(t){return u(q(t))}function G(t){return c(q(t))}e.exports={rgb2hsl:a,rgb2hsv:n,rgb2hwb:o,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:c,rgb2lab:u,rgb2lch:d,hsl2rgb:h,hsl2hsv:f,hsl2hwb:p,hsl2cmyk:v,hsl2keyword:m,hsv2rgb:y,hsv2hsl:x,hsv2hwb:k,hsv2cmyk:w,hsv2keyword:M,hwb2rgb:_,hwb2hsl:S,hwb2hsv:C,hwb2cmyk:A,hwb2keyword:D,cmyk2rgb:P,cmyk2hsl:I,cmyk2hsv:F,cmyk2hwb:T,cmyk2keyword:R,keyword2rgb:q,keyword2hsl:j,keyword2hsv:Y,keyword2hwb:U,keyword2cmyk:J,keyword2lab:X,keyword2xyz:G,xyz2rgb:z,xyz2lab:L,xyz2lch:O,lab2xyz:V,lab2rgb:W,lab2lch:B,lch2lab:N,lch2xyz:E,lch2rgb:H};var K={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]},Z={};for(var Q in K)Z[JSON.stringify(K[Q])]=Q},{}],5:[function(t,e,i){var a=t(4),n=function(){return new c};for(var r in a){n[r+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),a[t](e)}}(r);var o=/(\w+)2(\w+)/.exec(r),s=o[1],l=o[2];n[s]=n[s]||{},n[s][l]=n[r]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var i=a[t](e);if("string"==typeof i||void 0===i)return i;for(var n=0;n<i.length;n++)i[n]=Math.round(i[n]);return i}}(r)}var c=function(){this.convs={}};c.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))},c.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},c.prototype.getValues=function(t){var e=this.convs[t];if(!e){var i=this.space,a=this.convs[i];e=n[i][t](a),this.convs[t]=e}return e},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(t){c.prototype[t]=function(e){return this.routeSpace(t,arguments)}}),e.exports=n},{4:4}],6:[function(t,e,i){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 a=t(28)();t(26)(a),t(40)(a),t(22)(a),t(25)(a),t(30)(a),t(21)(a),t(23)(a),t(24)(a),t(29)(a),t(32)(a),t(33)(a),t(31)(a),t(27)(a),t(34)(a),t(35)(a),t(36)(a),t(37)(a),t(38)(a),t(46)(a),t(44)(a),t(45)(a),t(47)(a),t(48)(a),t(49)(a),t(15)(a),t(16)(a),t(17)(a),t(18)(a),t(19)(a),t(20)(a),t(8)(a),t(9)(a),t(10)(a),t(11)(a),t(12)(a),t(13)(a),t(14)(a);var n=[];n.push(t(41)(a),t(42)(a),t(43)(a)),a.plugins.register(n),e.exports=a,"undefined"!=typeof window&&(window.Chart=a)},{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,34:34,35:35,36:36,37:37,38:38,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,8:8,9:9}],8:[function(t,e,i){"use strict";e.exports=function(t){t.Bar=function(e,i){return i.type="bar",new t(e,i)}}},{}],9:[function(t,e,i){"use strict";e.exports=function(t){t.Bubble=function(e,i){return i.type="bubble",new t(e,i)}}},{}],10:[function(t,e,i){"use strict";e.exports=function(t){t.Doughnut=function(e,i){return i.type="doughnut",new t(e,i)}}},{}],11:[function(t,e,i){"use strict";e.exports=function(t){t.Line=function(e,i){return i.type="line",new t(e,i)}}},{}],12:[function(t,e,i){"use strict";e.exports=function(t){t.PolarArea=function(e,i){return i.type="polarArea",new t(e,i)}}},{}],13:[function(t,e,i){"use strict";e.exports=function(t){t.Radar=function(e,i){return i.type="radar",new t(e,i)}}},{}],14:[function(t,e,i){"use strict";e.exports=function(t){var e={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}};t.defaults.scatter=e,t.controllers.scatter=t.controllers.line,t.Scatter=function(e,i){return i.type="scatter",new t(e,i)}}},{}],15:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}},t.controllers.bar=t.DatasetController.extend({dataElementType:t.elements.Rectangle,initialize:function(){var e,i=this;t.DatasetController.prototype.initialize.apply(i,arguments),e=i.getMeta(),e.stack=i.getDataset().stack,e.bar=!0},update:function(t){var e,i,a=this,n=a.getMeta().data;for(a._ruler=a.getRuler(),e=0,i=n.length;e<i;++e)a.updateElement(n[e],e,t)},updateElement:function(t,i,a){var n=this,r=n.chart,o=n.getMeta(),s=n.getDataset(),l=t.custom||{},c=r.options.elements.rectangle;t._xScale=n.getScaleForId(o.xAxisID),t._yScale=n.getScaleForId(o.yAxisID),t._datasetIndex=n.index,t._index=i,t._model={datasetLabel:s.label,label:r.data.labels[i],borderSkipped:l.borderSkipped?l.borderSkipped:c.borderSkipped,backgroundColor:l.backgroundColor?l.backgroundColor:e.getValueAtIndexOrDefault(s.backgroundColor,i,c.backgroundColor),borderColor:l.borderColor?l.borderColor:e.getValueAtIndexOrDefault(s.borderColor,i,c.borderColor),borderWidth:l.borderWidth?l.borderWidth:e.getValueAtIndexOrDefault(s.borderWidth,i,c.borderWidth)},n.updateElementGeometry(t,i,a),t.pivot()},updateElementGeometry:function(t,e,i){var a=this,n=t._model,r=a.getValueScale(),o=r.getBasePixel(),s=r.isHorizontal(),l=a._ruler||a.getRuler(),c=a.calculateBarValuePixels(a.index,e),u=a.calculateBarIndexPixels(a.index,e,l);n.horizontal=s,n.base=i?o:c.base,n.x=s?i?o:c.head:u.center,n.y=s?u.center:i?o:c.head,n.height=s?u.size:void 0,n.width=s?void 0:u.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){var e,i,a=this,n=a.chart,r=a.getIndexScale(),o=r.options.stacked,s=void 0===t?n.data.datasets.length:t+1,l=[];for(e=0;e<s;++e)i=n.getDatasetMeta(e),i.bar&&n.isDatasetVisible(e)&&(o===!1||o===!0&&l.indexOf(i.stack)===-1||void 0===o&&(void 0===i.stack||l.indexOf(i.stack)===-1))&&l.push(i.stack);return l.length},getStackIndex:function(t){return this.getStackCount(t)-1},getRuler:function(){var t=this,i=t.getIndexScale(),a=i.options,n=t.getStackCount(),r=i.isHorizontal()?i.width:i.height,o=r/i.ticks.length,s=o*a.categoryPercentage,l=s/n,c=l*a.barPercentage;return c=Math.min(e.getValueOrDefault(a.barThickness,c),e.getValueOrDefault(a.maxBarThickness,1/0)),{stackCount:n,tickSize:o,categorySize:s,categorySpacing:o-s,fullBarSize:l,barSize:c,barSpacing:l-c,scale:i}},calculateBarValuePixels:function(t,e){var i,a,n,r,o,s,l=this,c=l.chart,u=l.getMeta(),d=l.getValueScale(),h=c.data.datasets,f=Number(h[t].data[e]),p=d.options.stacked,g=u.stack,v=0;if(p||void 0===p&&void 0!==g)for(i=0;i<t;++i)a=c.getDatasetMeta(i),a.bar&&a.stack===g&&a.controller.getValueScaleId()===d.id&&c.isDatasetVisible(i)&&(n=Number(h[i].data[e]),(f<0&&n<0||f>=0&&n>0)&&(v+=n));return r=d.getPixelForValue(v),o=d.getPixelForValue(v+f),s=(o-r)/2,{size:s,base:r,head:o,center:o+s/2}},calculateBarIndexPixels:function(t,e,i){var a=this,n=i.scale,r=a.chart.isCombo,o=a.getStackIndex(t),s=n.getPixelForValue(null,e,t,r),l=i.barSize;return s-=r?i.tickSize/2:0,s+=i.fullBarSize*o,s+=i.categorySpacing/2,s+=i.barSpacing/2,{size:l,base:s,head:s+l,center:s+l/2}},draw:function(){var t,i=this,a=i.chart,n=i.getMeta().data,r=i.getDataset(),o=n.length,s=0;for(e.canvas.clipArea(a.ctx,a.chartArea);s<o;++s)t=r.data[s],null===t||void 0===t||isNaN(t)||n[s].draw();e.canvas.unclipArea(a.ctx)},setHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],a=t._index,n=t.custom||{},r=t._model;r.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:e.getValueAtIndexOrDefault(i.hoverBackgroundColor,a,e.getHoverColor(r.backgroundColor)),r.borderColor=n.hoverBorderColor?n.hoverBorderColor:e.getValueAtIndexOrDefault(i.hoverBorderColor,a,e.getHoverColor(r.borderColor)),r.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:e.getValueAtIndexOrDefault(i.hoverBorderWidth,a,r.borderWidth)},removeHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],a=t._index,n=t.custom||{},r=t._model,o=this.chart.options.elements.rectangle;r.backgroundColor=n.backgroundColor?n.backgroundColor:e.getValueAtIndexOrDefault(i.backgroundColor,a,o.backgroundColor),r.borderColor=n.borderColor?n.borderColor:e.getValueAtIndexOrDefault(i.borderColor,a,o.borderColor),r.borderWidth=n.borderWidth?n.borderWidth:e.getValueAtIndexOrDefault(i.borderWidth,a,o.borderWidth)}}),t.defaults.horizontalBar={hover:{mode:"label"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var i="";return t.length>0&&(t[0].yLabel?i=t[0].yLabel:e.labels.length>0&&t[0].index<e.labels.length&&(i=e.labels[t[0].index])),i},label:function(t,e){var i=e.datasets[t.datasetIndex].label||"";return i+": "+t.xLabel}}}},t.controllers.horizontalBar=t.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{}],16:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.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||"",a=e.datasets[t.datasetIndex].data[t.index];return i+": ("+t.xLabel+", "+t.yLabel+", "+a.r+")"}}}},t.controllers.bubble=t.DatasetController.extend({dataElementType:t.elements.Point,update:function(t){var i=this,a=i.getMeta(),n=a.data;e.each(n,function(e,a){i.updateElement(e,a,t)})},updateElement:function(i,a,n){var r=this,o=r.getMeta(),s=r.getScaleForId(o.xAxisID),l=r.getScaleForId(o.yAxisID),c=i.custom||{},u=r.getDataset(),d=u.data[a],h=r.chart.options.elements.point,f=r.index;e.extend(i,{_xScale:s,_yScale:l,_datasetIndex:f,_index:a,_model:{x:n?s.getPixelForDecimal(.5):s.getPixelForValue("object"==typeof d?d:NaN,a,f,r.chart.isCombo),y:n?l.getBasePixel():l.getPixelForValue(d,a,f),radius:n?0:c.radius?c.radius:r.getRadius(d),hitRadius:c.hitRadius?c.hitRadius:e.getValueAtIndexOrDefault(u.hitRadius,a,h.hitRadius)

}}),t.DatasetController.prototype.removeHoverStyle.call(r,i,h);var p=i._model;p.skip=c.skip?c.skip:isNaN(p.x)||isNaN(p.y),i.pivot()},getRadius:function(t){return t.r||this.chart.options.elements.point.radius},setHoverStyle:function(i){var a=this;t.DatasetController.prototype.setHoverStyle.call(a,i);var n=a.chart.data.datasets[i._datasetIndex],r=i._index,o=i.custom||{},s=i._model;s.radius=o.hoverRadius?o.hoverRadius:e.getValueAtIndexOrDefault(n.hoverRadius,r,a.chart.options.elements.point.hoverRadius)+a.getRadius(n.data[r])},removeHoverStyle:function(e){var i=this;t.DatasetController.prototype.removeHoverStyle.call(i,e,i.chart.options.elements.point);var a=i.chart.data.datasets[e._datasetIndex].data[e._index],n=e.custom||{},r=e._model;r.radius=n.radius?n.radius:i.getRadius(a)}})}},{}],17:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults;i.doughnut={animation:{animateRotate:!0,animateScale:!1},aspectRatio:1,hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('
    ');var i=t.data,a=i.datasets,n=i.labels;if(a.length)for(var r=0;r<a[0].data.length;++r)e.push('
  • '),n[r]&&e.push(n[r]),e.push("
  • ");return e.push("
"),e.join("")},legend:{labels:{generateLabels:function(t){var i=t.data;return i.labels.length&&i.datasets.length?i.labels.map(function(a,n){var r=t.getDatasetMeta(0),o=i.datasets[0],s=r.data[n],l=s&&s.custom||{},c=e.getValueAtIndexOrDefault,u=t.options.elements.arc,d=l.backgroundColor?l.backgroundColor:c(o.backgroundColor,n,u.backgroundColor),h=l.borderColor?l.borderColor:c(o.borderColor,n,u.borderColor),f=l.borderWidth?l.borderWidth:c(o.borderWidth,n,u.borderWidth);return{text:a,fillStyle:d,strokeStyle:h,lineWidth:f,hidden:isNaN(o.data[n])||r.data[n].hidden,index:n}}):[]}},onClick:function(t,e){var i,a,n,r=e.index,o=this.chart;for(i=0,a=(o.data.datasets||[]).length;i<a;++i)n=o.getDatasetMeta(i),n.data[r]&&(n.data[r].hidden=!n.data[r].hidden);o.update()}},cutoutPercentage:50,rotation:Math.PI*-.5,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,i){var a=i.labels[t.index],n=": "+i.datasets[t.datasetIndex].data[t.index];return e.isArray(a)?(a=a.slice(),a[0]+=n):a+=n,a}}}},i.pie=e.clone(i.doughnut),e.extend(i.pie,{cutoutPercentage:0}),t.controllers.doughnut=t.controllers.pie=t.DatasetController.extend({dataElementType:t.elements.Arc,linkScales:e.noop,getRingIndex:function(t){for(var e=0,i=0;i<t;++i)this.chart.isDatasetVisible(i)&&++e;return e},update:function(t){var i=this,a=i.chart,n=a.chartArea,r=a.options,o=r.elements.arc,s=n.right-n.left-o.borderWidth,l=n.bottom-n.top-o.borderWidth,c=Math.min(s,l),u={x:0,y:0},d=i.getMeta(),h=r.cutoutPercentage,f=r.circumference;if(f<2*Math.PI){var p=r.rotation%(2*Math.PI);p+=2*Math.PI*(p>=Math.PI?-1:p<-Math.PI?1:0);var g=p+f,v={x:Math.cos(p),y:Math.sin(p)},m={x:Math.cos(g),y:Math.sin(g)},b=p<=0&&0<=g||p<=2*Math.PI&&2*Math.PI<=g,y=p<=.5*Math.PI&&.5*Math.PI<=g||p<=2.5*Math.PI&&2.5*Math.PI<=g,x=p<=-Math.PI&&-Math.PI<=g||p<=Math.PI&&Math.PI<=g,k=p<=.5*-Math.PI&&.5*-Math.PI<=g||p<=1.5*Math.PI&&1.5*Math.PI<=g,w=h/100,M={x:x?-1:Math.min(v.x*(v.x<0?1:w),m.x*(m.x<0?1:w)),y:k?-1:Math.min(v.y*(v.y<0?1:w),m.y*(m.y<0?1:w))},_={x:b?1:Math.max(v.x*(v.x>0?1:w),m.x*(m.x>0?1:w)),y:y?1:Math.max(v.y*(v.y>0?1:w),m.y*(m.y>0?1:w))},S={width:.5*(_.x-M.x),height:.5*(_.y-M.y)};c=Math.min(s/S.width,l/S.height),u={x:(_.x+M.x)*-.5,y:(_.y+M.y)*-.5}}a.borderWidth=i.getMaxBorderWidth(d.data),a.outerRadius=Math.max((c-a.borderWidth)/2,0),a.innerRadius=Math.max(h?a.outerRadius/100*h:0,0),a.radiusLength=(a.outerRadius-a.innerRadius)/a.getVisibleDatasetCount(),a.offsetX=u.x*a.outerRadius,a.offsetY=u.y*a.outerRadius,d.total=i.calculateTotal(),i.outerRadius=a.outerRadius-a.radiusLength*i.getRingIndex(i.index),i.innerRadius=Math.max(i.outerRadius-a.radiusLength,0),e.each(d.data,function(e,a){i.updateElement(e,a,t)})},updateElement:function(t,i,a){var n=this,r=n.chart,o=r.chartArea,s=r.options,l=s.animation,c=(o.left+o.right)/2,u=(o.top+o.bottom)/2,d=s.rotation,h=s.rotation,f=n.getDataset(),p=a&&l.animateRotate?0:t.hidden?0:n.calculateCircumference(f.data[i])*(s.circumference/(2*Math.PI)),g=a&&l.animateScale?0:n.innerRadius,v=a&&l.animateScale?0:n.outerRadius,m=e.getValueAtIndexOrDefault;e.extend(t,{_datasetIndex:n.index,_index:i,_model:{x:c+r.offsetX,y:u+r.offsetY,startAngle:d,endAngle:h,circumference:p,outerRadius:v,innerRadius:g,label:m(f.label,i,r.data.labels[i])}});var b=t._model;this.removeHoverStyle(t),a&&l.animateRotate||(0===i?b.startAngle=s.rotation:b.startAngle=n.getMeta().data[i-1]._model.endAngle,b.endAngle=b.startAngle+b.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,i=this.getDataset(),a=this.getMeta(),n=0;return e.each(a.data,function(e,a){t=i.data[a],isNaN(t)||e.hidden||(n+=Math.abs(t))}),n},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,i,a=0,n=this.index,r=t.length,o=0;o<r;o++)e=t[o]._model?t[o]._model.borderWidth:0,i=t[o]._chart?t[o]._chart.config.data.datasets[n].hoverBorderWidth:0,a=e>a?e:a,a=i>a?i:a;return a}})}},{}],18:[function(t,e,i){"use strict";e.exports=function(t){function e(t,e){return i.getValueOrDefault(t.showLine,e.showLines)}var i=t.helpers;t.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}},t.controllers.line=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,update:function(t){var a,n,r,o=this,s=o.getMeta(),l=s.dataset,c=s.data||[],u=o.chart.options,d=u.elements.line,h=o.getScaleForId(s.yAxisID),f=o.getDataset(),p=e(f,u);for(p&&(r=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=h,l._datasetIndex=o.index,l._children=c,l._model={spanGaps:f.spanGaps?f.spanGaps:u.spanGaps,tension:r.tension?r.tension:i.getValueOrDefault(f.lineTension,d.tension),backgroundColor:r.backgroundColor?r.backgroundColor:f.backgroundColor||d.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:f.borderWidth||d.borderWidth,borderColor:r.borderColor?r.borderColor:f.borderColor||d.borderColor,borderCapStyle:r.borderCapStyle?r.borderCapStyle:f.borderCapStyle||d.borderCapStyle,borderDash:r.borderDash?r.borderDash:f.borderDash||d.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:f.borderDashOffset||d.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:f.borderJoinStyle||d.borderJoinStyle,fill:r.fill?r.fill:void 0!==f.fill?f.fill:d.fill,steppedLine:r.steppedLine?r.steppedLine:i.getValueOrDefault(f.steppedLine,d.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:i.getValueOrDefault(f.cubicInterpolationMode,d.cubicInterpolationMode)},l.pivot()),a=0,n=c.length;a<n;++a)o.updateElement(c[a],a,t);for(p&&0!==l._model.tension&&o.updateBezierControlPoints(),a=0,n=c.length;a<n;++a)c[a].pivot()},getPointBackgroundColor:function(t,e){var a=this.chart.options.elements.point.backgroundColor,n=this.getDataset(),r=t.custom||{};return r.backgroundColor?a=r.backgroundColor:n.pointBackgroundColor?a=i.getValueAtIndexOrDefault(n.pointBackgroundColor,e,a):n.backgroundColor&&(a=n.backgroundColor),a},getPointBorderColor:function(t,e){var a=this.chart.options.elements.point.borderColor,n=this.getDataset(),r=t.custom||{};return r.borderColor?a=r.borderColor:n.pointBorderColor?a=i.getValueAtIndexOrDefault(n.pointBorderColor,e,a):n.borderColor&&(a=n.borderColor),a},getPointBorderWidth:function(t,e){var a=this.chart.options.elements.point.borderWidth,n=this.getDataset(),r=t.custom||{};return isNaN(r.borderWidth)?isNaN(n.pointBorderWidth)?isNaN(n.borderWidth)||(a=n.borderWidth):a=i.getValueAtIndexOrDefault(n.pointBorderWidth,e,a):a=r.borderWidth,a},updateElement:function(t,e,a){var n,r,o=this,s=o.getMeta(),l=t.custom||{},c=o.getDataset(),u=o.index,d=c.data[e],h=o.getScaleForId(s.yAxisID),f=o.getScaleForId(s.xAxisID),p=o.chart.options.elements.point,g=o.chart.data.labels||[],v=1===g.length||1===c.data.length||o.chart.isCombo;void 0!==c.radius&&void 0===c.pointRadius&&(c.pointRadius=c.radius),void 0!==c.hitRadius&&void 0===c.pointHitRadius&&(c.pointHitRadius=c.hitRadius),n=f.getPixelForValue("object"==typeof d?d:NaN,e,u,v),r=a?h.getBasePixel():o.calculatePointY(d,e,u),t._xScale=f,t._yScale=h,t._datasetIndex=u,t._index=e,t._model={x:n,y:r,skip:l.skip||isNaN(n)||isNaN(r),radius:l.radius||i.getValueAtIndexOrDefault(c.pointRadius,e,p.radius),pointStyle:l.pointStyle||i.getValueAtIndexOrDefault(c.pointStyle,e,p.pointStyle),backgroundColor:o.getPointBackgroundColor(t,e),borderColor:o.getPointBorderColor(t,e),borderWidth:o.getPointBorderWidth(t,e),tension:s.dataset._model?s.dataset._model.tension:0,steppedLine:!!s.dataset._model&&s.dataset._model.steppedLine,hitRadius:l.hitRadius||i.getValueAtIndexOrDefault(c.pointHitRadius,e,p.hitRadius)}},calculatePointY:function(t,e,i){var a,n,r,o=this,s=o.chart,l=o.getMeta(),c=o.getScaleForId(l.yAxisID),u=0,d=0;if(c.options.stacked){for(a=0;a<i;a++)if(n=s.data.datasets[a],r=s.getDatasetMeta(a),"line"===r.type&&r.yAxisID===c.id&&s.isDatasetVisible(a)){var h=Number(c.getRightValue(n.data[e]));h<0?d+=h||0:u+=h||0}var f=Number(c.getRightValue(t));return f<0?c.getPixelForValue(d+f):c.getPixelForValue(u+f)}return c.getPixelForValue(t)},updateBezierControlPoints:function(){function t(t,e,i){return Math.max(Math.min(t,i),e)}var e,a,n,r,o,s=this,l=s.getMeta(),c=s.chart.chartArea,u=l.data||[];if(l.dataset._model.spanGaps&&(u=u.filter(function(t){return!t._model.skip})),"monotone"===l.dataset._model.cubicInterpolationMode)i.splineCurveMonotone(u);else for(e=0,a=u.length;e<a;++e)n=u[e],r=n._model,o=i.splineCurve(i.previousItem(u,e)._model,r,i.nextItem(u,e)._model,l.dataset._model.tension),r.controlPointPreviousX=o.previous.x,r.controlPointPreviousY=o.previous.y,r.controlPointNextX=o.next.x,r.controlPointNextY=o.next.y;if(s.chart.options.elements.line.capBezierPoints)for(e=0,a=u.length;e<a;++e)r=u[e]._model,r.controlPointPreviousX=t(r.controlPointPreviousX,c.left,c.right),r.controlPointPreviousY=t(r.controlPointPreviousY,c.top,c.bottom),r.controlPointNextX=t(r.controlPointNextX,c.left,c.right),r.controlPointNextY=t(r.controlPointNextY,c.top,c.bottom)},draw:function(){var i=this,a=i.chart,n=i.getMeta(),r=n.data||[],o=a.chartArea,s=r.length,l=0;for(t.canvasHelpers.clipArea(a.ctx,o),e(i.getDataset(),a.options)&&n.dataset.draw(),t.canvasHelpers.unclipArea(a.ctx);l<s;++l)r[l].draw(o)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],a=t._index,n=t.custom||{},r=t._model;r.radius=n.hoverRadius||i.getValueAtIndexOrDefault(e.pointHoverRadius,a,this.chart.options.elements.point.hoverRadius),r.backgroundColor=n.hoverBackgroundColor||i.getValueAtIndexOrDefault(e.pointHoverBackgroundColor,a,i.getHoverColor(r.backgroundColor)),r.borderColor=n.hoverBorderColor||i.getValueAtIndexOrDefault(e.pointHoverBorderColor,a,i.getHoverColor(r.borderColor)),r.borderWidth=n.hoverBorderWidth||i.getValueAtIndexOrDefault(e.pointHoverBorderWidth,a,r.borderWidth)},removeHoverStyle:function(t){var e=this,a=e.chart.data.datasets[t._datasetIndex],n=t._index,r=t.custom||{},o=t._model;void 0!==a.radius&&void 0===a.pointRadius&&(a.pointRadius=a.radius),o.radius=r.radius||i.getValueAtIndexOrDefault(a.pointRadius,n,e.chart.options.elements.point.radius),o.backgroundColor=e.getPointBackgroundColor(t,n),o.borderColor=e.getPointBorderColor(t,n),o.borderWidth=e.getPointBorderWidth(t,n)}})}},{}],19:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.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,aspectRatio:1,legendCallback:function(t){var e=[];e.push('
    ');var i=t.data,a=i.datasets,n=i.labels;if(a.length)for(var r=0;r<a[0].data.length;++r)e.push('
  • '),n[r]&&e.push(n[r]),e.push("
  • ");return e.push("
"),e.join("")},legend:{labels:{generateLabels:function(t){var i=t.data;return i.labels.length&&i.datasets.length?i.labels.map(function(a,n){var r=t.getDatasetMeta(0),o=i.datasets[0],s=r.data[n],l=s.custom||{},c=e.getValueAtIndexOrDefault,u=t.options.elements.arc,d=l.backgroundColor?l.backgroundColor:c(o.backgroundColor,n,u.backgroundColor),h=l.borderColor?l.borderColor:c(o.borderColor,n,u.borderColor),f=l.borderWidth?l.borderWidth:c(o.borderWidth,n,u.borderWidth);return{text:a,fillStyle:d,strokeStyle:h,lineWidth:f,hidden:isNaN(o.data[n])||r.data[n].hidden,index:n}}):[]}},onClick:function(t,e){var i,a,n,r=e.index,o=this.chart;for(i=0,a=(o.data.datasets||[]).length;i<a;++i)n=o.getDatasetMeta(i),n.data[r].hidden=!n.data[r].hidden;o.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}},t.controllers.polarArea=t.DatasetController.extend({dataElementType:t.elements.Arc,linkScales:e.noop,update:function(t){var i=this,a=i.chart,n=a.chartArea,r=i.getMeta(),o=a.options,s=o.elements.arc,l=Math.min(n.right-n.left,n.bottom-n.top);a.outerRadius=Math.max((l-s.borderWidth/2)/2,0),a.innerRadius=Math.max(o.cutoutPercentage?a.outerRadius/100*o.cutoutPercentage:1,0),a.radiusLength=(a.outerRadius-a.innerRadius)/a.getVisibleDatasetCount(),i.outerRadius=a.outerRadius-a.radiusLength*i.index,i.innerRadius=i.outerRadius-a.radiusLength,r.count=i.countVisibleElements(),e.each(r.data,function(e,a){i.updateElement(e,a,t)})},updateElement:function(t,i,a){for(var n=this,r=n.chart,o=n.getDataset(),s=r.options,l=s.animation,c=r.scale,u=e.getValueAtIndexOrDefault,d=r.data.labels,h=n.calculateCircumference(o.data[i]),f=c.xCenter,p=c.yCenter,g=0,v=n.getMeta(),m=0;m<i;++m)isNaN(o.data[m])||v.data[m].hidden||++g;var b=s.startAngle,y=t.hidden?0:c.getDistanceFromCenterForValue(o.data[i]),x=b+h*g,k=x+(t.hidden?0:h),w=l.animateScale?0:c.getDistanceFromCenterForValue(o.data[i]);e.extend(t,{_datasetIndex:n.index,_index:i,_scale:c,_model:{x:f,y:p,innerRadius:0,outerRadius:a?w:y,startAngle:a&&l.animateRotate?b:x,endAngle:a&&l.animateRotate?b:k,label:u(d,i,d[i])}}),n.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},countVisibleElements:function(){var t=this.getDataset(),i=this.getMeta(),a=0;return e.each(i.data,function(e,i){isNaN(t.data[i])||e.hidden||a++}),a},calculateCircumference:function(t){var e=this.getMeta().count;return e>0&&!isNaN(t)?2*Math.PI/e:0}})}},{}],20:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.radar={aspectRatio:1,scale:{type:"radialLinear"},elements:{line:{tension:0}}},t.controllers.radar=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,linkScales:e.noop,update:function(t){var i=this,a=i.getMeta(),n=a.dataset,r=a.data,o=n.custom||{},s=i.getDataset(),l=i.chart.options.elements.line,c=i.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),e.extend(a.dataset,{_datasetIndex:i.index,_scale:c,_children:r,_loop:!0,_model:{tension:o.tension?o.tension:e.getValueOrDefault(s.lineTension,l.tension),backgroundColor:o.backgroundColor?o.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:s.borderWidth||l.borderWidth,borderColor:o.borderColor?o.borderColor:s.borderColor||l.borderColor,fill:o.fill?o.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:o.borderCapStyle?o.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:o.borderDash?o.borderDash:s.borderDash||l.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),a.dataset.pivot(),e.each(r,function(e,a){i.updateElement(e,a,t)},i),i.updateBezierControlPoints()},updateElement:function(t,i,a){var n=this,r=t.custom||{},o=n.getDataset(),s=n.chart.scale,l=n.chart.options.elements.point,c=s.getPointPositionForValue(i,o.data[i]);void 0!==o.radius&&void 0===o.pointRadius&&(o.pointRadius=o.radius),void 0!==o.hitRadius&&void 0===o.pointHitRadius&&(o.pointHitRadius=o.hitRadius),e.extend(t,{_datasetIndex:n.index,_index:i,_scale:s,_model:{x:a?s.xCenter:c.x,y:a?s.yCenter:c.y,tension:r.tension?r.tension:e.getValueOrDefault(o.lineTension,n.chart.options.elements.line.tension),radius:r.radius?r.radius:e.getValueAtIndexOrDefault(o.pointRadius,i,l.radius),backgroundColor:r.backgroundColor?r.backgroundColor:e.getValueAtIndexOrDefault(o.pointBackgroundColor,i,l.backgroundColor),borderColor:r.borderColor?r.borderColor:e.getValueAtIndexOrDefault(o.pointBorderColor,i,l.borderColor),borderWidth:r.borderWidth?r.borderWidth:e.getValueAtIndexOrDefault(o.pointBorderWidth,i,l.borderWidth),pointStyle:r.pointStyle?r.pointStyle:e.getValueAtIndexOrDefault(o.pointStyle,i,l.pointStyle),hitRadius:r.hitRadius?r.hitRadius:e.getValueAtIndexOrDefault(o.pointHitRadius,i,l.hitRadius)}}),t._model.skip=r.skip?r.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,i=this.getMeta();e.each(i.data,function(a,n){var r=a._model,o=e.splineCurve(e.previousItem(i.data,n,!0)._model,r,e.nextItem(i.data,n,!0)._model,r.tension);r.controlPointPreviousX=Math.max(Math.min(o.previous.x,t.right),t.left),r.controlPointPreviousY=Math.max(Math.min(o.previous.y,t.bottom),t.top),r.controlPointNextX=Math.max(Math.min(o.next.x,t.right),t.left),r.controlPointNextY=Math.max(Math.min(o.next.y,t.bottom),t.top),a.pivot()})},setHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],a=t.custom||{},n=t._index,r=t._model;r.radius=a.hoverRadius?a.hoverRadius:e.getValueAtIndexOrDefault(i.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),r.backgroundColor=a.hoverBackgroundColor?a.hoverBackgroundColor:e.getValueAtIndexOrDefault(i.pointHoverBackgroundColor,n,e.getHoverColor(r.backgroundColor)),r.borderColor=a.hoverBorderColor?a.hoverBorderColor:e.getValueAtIndexOrDefault(i.pointHoverBorderColor,n,e.getHoverColor(r.borderColor)),r.borderWidth=a.hoverBorderWidth?a.hoverBorderWidth:e.getValueAtIndexOrDefault(i.pointHoverBorderWidth,n,r.borderWidth)},removeHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],a=t.custom||{},n=t._index,r=t._model,o=this.chart.options.elements.point;r.radius=a.radius?a.radius:e.getValueAtIndexOrDefault(i.pointRadius,n,o.radius),r.backgroundColor=a.backgroundColor?a.backgroundColor:e.getValueAtIndexOrDefault(i.pointBackgroundColor,n,o.backgroundColor),r.borderColor=a.borderColor?a.borderColor:e.getValueAtIndexOrDefault(i.pointBorderColor,n,o.borderColor),r.borderWidth=a.borderWidth?a.borderWidth:e.getValueAtIndexOrDefault(i.pointBorderWidth,n,o.borderWidth)}})}},{}],21:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:e.noop,onComplete:e.noop},t.Animation=t.Element.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,a){var n,r,o=this.animations;for(e.chart=t,a||(t.animating=!0),n=0,r=o.length;n<r;++n)if(o[n].chart===t)return void(o[n]=e);o.push(e),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var i=e.findIndex(this.animations,function(e){return e.chart===t});i!==-1&&(this.animations.splice(i,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=e.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),i=0;t.dropFrames>1&&(i=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+i);var a=Date.now();t.dropFrames+=(a-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var i,a,n=this.animations,r=0;r<n.length;)i=n[r],a=i.chart,i.currentStep=(i.currentStep||0)+t,i.currentStep=Math.min(i.currentStep,i.numSteps),e.callback(i.render,[a,i],a),e.callback(i.onAnimationProgress,[i],a),i.currentStep>=i.numSteps?(e.callback(i.onAnimationComplete,[i],a),a.animating=!1,n.splice(r,1)):++r}},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}})}},{}],22:[function(t,e,i){"use strict";e.exports=function(t){var e=t.canvasHelpers={};e.drawPoint=function(e,i,a,n,r){var o,s,l,c,u,d;if("object"==typeof i&&(o=i.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return void e.drawImage(i,n-i.width/2,r-i.height/2,i.width,i.height);if(!(isNaN(a)||a<=0)){switch(i){default:e.beginPath(),e.arc(n,r,a,0,2*Math.PI),e.closePath(),e.fill();break;case"triangle":e.beginPath(),s=3*a/Math.sqrt(3),u=s*Math.sqrt(3)/2,e.moveTo(n-s/2,r+u/3),e.lineTo(n+s/2,r+u/3),e.lineTo(n,r-2*u/3),e.closePath(),e.fill();break;case"rect":d=1/Math.SQRT2*a,e.beginPath(),e.fillRect(n-d,r-d,2*d,2*d),e.strokeRect(n-d,r-d,2*d,2*d);break;case"rectRounded":var h=a/Math.SQRT2,f=n-h,p=r-h,g=Math.SQRT2*a;t.helpers.drawRoundedRectangle(e,f,p,g,g,a/2),e.fill();break;case"rectRot":d=1/Math.SQRT2*a,e.beginPath(),e.moveTo(n-d,r),e.lineTo(n,r+d),e.lineTo(n+d,r),e.lineTo(n,r-d),e.closePath(),e.fill();break;case"cross":e.beginPath(),e.moveTo(n,r+a),e.lineTo(n,r-a),e.moveTo(n-a,r),e.lineTo(n+a,r),e.closePath();break;case"crossRot":e.beginPath(),l=Math.cos(Math.PI/4)*a,c=Math.sin(Math.PI/4)*a,e.moveTo(n-l,r-c),e.lineTo(n+l,r+c),e.moveTo(n-l,r+c),e.lineTo(n+l,r-c),e.closePath();break;case"star":e.beginPath(),e.moveTo(n,r+a),e.lineTo(n,r-a),e.moveTo(n-a,r),e.lineTo(n+a,r),l=Math.cos(Math.PI/4)*a,c=Math.sin(Math.PI/4)*a,e.moveTo(n-l,r-c),e.lineTo(n+l,r+c),e.moveTo(n-l,r+c),e.lineTo(n+l,r-c),e.closePath();break;case"line":e.beginPath(),e.moveTo(n-a,r),e.lineTo(n+a,r),e.closePath();break;case"dash":e.beginPath(),e.moveTo(n,r),e.lineTo(n+a,r),e.closePath()}e.stroke()}},e.clipArea=function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},e.unclipArea=function(t){t.restore()},e.lineTo=function(t,e,i,a){return i.steppedLine?("after"===i.steppedLine?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y),void t.lineTo(i.x,i.y)):i.tension?void t.bezierCurveTo(a?e.controlPointPreviousX:e.controlPointNextX,a?e.controlPointPreviousY:e.controlPointNextY,a?i.controlPointNextX:i.controlPointPreviousX,a?i.controlPointNextY:i.controlPointPreviousY,i.x,i.y):void t.lineTo(i.x,i.y)},t.helpers.canvas=e}},{}],23:[function(t,e,i){"use strict";e.exports=function(t){function e(e){e=e||{};var i=e.data=e.data||{};return i.datasets=i.datasets||[],i.labels=i.labels||[],e.options=n.configMerge(t.defaults.global,t.defaults[e.type],e.options||{}),e}function i(t){var e=t.options;e.scale?t.scale.options=e.scale:e.scales&&e.scales.xAxes.concat(e.scales.yAxes).forEach(function(e){t.scales[e.id].options=e}),t.tooltip._options=e.tooltips}function a(t){return"top"===t||"bottom"===t}var n=t.helpers,r=t.plugins,o=t.platform;t.types={},t.instances={},t.controllers={},n.extend(t.prototype,{construct:function(i,a){var r=this;a=e(a);var s=o.acquireContext(i,a),l=s&&s.canvas,c=l&&l.height,u=l&&l.width;return r.id=n.uid(),r.ctx=s,r.canvas=l,r.config=a,r.width=u,r.height=c,r.aspectRatio=c?u/c:null,r.options=a.options,r._bufferedRender=!1,r.chart=r,r.controller=r,t.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(t){r.config.data=t}}),s&&l?(r.initialize(),void r.update()):void console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return r.notify(t,"beforeInit"),n.retinaScale(t),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),r.notify(t,"afterInit"),t},clear:function(){return n.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,i=e.options,a=e.canvas,o=i.maintainAspectRatio&&e.aspectRatio||null,s=Math.floor(n.getMaximumWidth(a)),l=Math.floor(o?s/o:n.getMaximumHeight(a));if((e.width!==s||e.height!==l)&&(a.width=e.width=s,a.height=e.height=l,a.style.width=s+"px",a.style.height=l+"px",n.retinaScale(e),!t)){var c={width:s,height:l};r.notify(e,"resize",[c]),e.options.onResize&&e.options.onResize(e,c),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},i=t.scale;n.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),n.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),i&&(i.id=i.id||"scale")},buildScales:function(){var e=this,i=e.options,r=e.scales={},o=[];i.scales&&(o=o.concat((i.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(i.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),i.scale&&o.push({options:i.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),n.each(o,function(i){var o=i.options,s=n.getValueOrDefault(o.type,i.dtype),l=t.scaleService.getScaleConstructor(s);if(l){a(o.position)!==a(i.dposition)&&(o.position=i.dposition);var c=new l({id:o.id,options:o,ctx:e.ctx,chart:e});r[c.id]=c,i.isDefault&&(e.scale=c)}}),t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,i=[],a=[];if(n.each(e.data.datasets,function(n,r){var o=e.getDatasetMeta(r);if(o.type||(o.type=n.type||e.config.type),i.push(o.type),o.controller)o.controller.updateIndex(r);else{var s=t.controllers[o.type];if(void 0===s)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new s(e,r),a.push(o.controller)}},e),i.length>1)for(var r=1;r<i.length;r++)if(i[r]!==i[r-1]){e.isCombo=!0;break}return a},resetElements:function(){var t=this;n.each(t.data.datasets,function(e,i){t.getDatasetMeta(i).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t,e){var a=this;if(i(a),r.notify(a,"beforeUpdate")!==!1){a.tooltip._data=a.data;var o=a.buildOrUpdateControllers();n.each(a.data.datasets,function(t,e){a.getDatasetMeta(e).controller.buildOrUpdateElements()},a),a.updateLayout(),n.each(o,function(t){t.reset()}),a.updateDatasets(),r.notify(a,"afterUpdate"),a._bufferedRender?a._bufferedRequest={lazy:e,duration:t}:a.render(t,e)}},updateLayout:function(){var e=this;r.notify(e,"beforeLayout")!==!1&&(t.layoutService.update(this,this.width,this.height),r.notify(e,"afterScaleUpdate"),r.notify(e,"afterLayout"))},updateDatasets:function(){var t=this;if(r.notify(t,"beforeDatasetsUpdate")!==!1){for(var e=0,i=t.data.datasets.length;e<i;++e)t.updateDataset(e);r.notify(t,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this,i=e.getDatasetMeta(t),a={meta:i,index:t};r.notify(e,"beforeDatasetUpdate",[a])!==!1&&(i.controller.update(),r.notify(e,"afterDatasetUpdate",[a]))},render:function(e,i){var a=this;if(r.notify(a,"beforeRender")!==!1){var o=a.options.animation,s=function(t){r.notify(a,"afterRender"),n.callback(o&&o.onComplete,[t],a)};if(o&&("undefined"!=typeof e&&0!==e||"undefined"==typeof e&&0!==o.duration)){var l=new t.Animation({numSteps:(e||o.duration)/16.66,easing:o.easing,render:function(t,e){var i=n.easingEffects[e.easing],a=e.currentStep,r=a/e.numSteps;t.draw(i(r),r,a)},onAnimationProgress:o.onProgress,onAnimationComplete:s});t.animationService.addAnimation(a,l,e,i)}else a.draw(),s(new t.Animation({numSteps:0,chart:a}));return a}},draw:function(t){var e=this;e.clear(),void 0!==t&&null!==t||(t=1),e.transition(t),r.notify(e,"beforeDraw",[t])!==!1&&(n.each(e.boxes,function(t){t.draw(e.chartArea)},e),e.scale&&e.scale.draw(),e.drawDatasets(t),e.tooltip.draw(),r.notify(e,"afterDraw",[t]))},transition:function(t){for(var e=this,i=0,a=(e.data.datasets||[]).length;i<a;++i)e.isDatasetVisible(i)&&e.getDatasetMeta(i).controller.transition(t);e.tooltip.transition(t)},drawDatasets:function(t){var e=this;if(r.notify(e,"beforeDatasetsDraw",[t])!==!1){for(var i=(e.data.datasets||[]).length-1;i>=0;--i)e.isDatasetVisible(i)&&e.drawDataset(i,t);r.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var i=this,a=i.getDatasetMeta(t),n={meta:a,index:t,easingValue:e};r.notify(i,"beforeDatasetDraw",[n])!==!1&&(a.controller.draw(e),r.notify(i,"afterDatasetDraw",[n]))},getElementAtEvent:function(e){return t.Interaction.modes.single(this,e)},getElementsAtEvent:function(e){return t.Interaction.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return t.Interaction.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,i,a){var n=t.Interaction.modes[i];return"function"==typeof n?n(this,e,a):[]},getDatasetAtEvent:function(e){return t.Interaction.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(t){var e=this,i=e.data.datasets[t];i._meta||(i._meta={});var a=i._meta[e.id];return a||(a=i._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),a},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)},destroy:function(){var e,i,a,s=this,l=s.canvas;for(s.stop(),i=0,a=s.data.datasets.length;i<a;++i)e=s.getDatasetMeta(i),e.controller&&(e.controller.destroy(),e.controller=null);l&&(s.unbindEvents(),n.clear(s),o.releaseContext(s.ctx),s.canvas=null,s.ctx=null),r.notify(s,"destroy"),delete t.instances[s.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new t.Tooltip({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e),e.tooltip.initialize()},bindEvents:function(){var t=this,e=t._listeners={},i=function(){t.eventHandler.apply(t,arguments)};n.each(t.options.events,function(a){o.addEventListener(t,a,i),e[a]=i}),t.options.responsive&&(i=function(){t.resize()},o.addEventListener(t,"resize",i),e.resize=i)},unbindEvents:function(){var t=this,e=t._listeners;e&&(delete t._listeners,n.each(e,function(e,i){o.removeEventListener(t,i,e)}))},updateHoverStyle:function(t,e,i){var a,n,r,o=i?"setHoverStyle":"removeHoverStyle";for(n=0,r=t.length;n<r;++n)a=t[n],a&&this.getDatasetMeta(a._datasetIndex).controller[o](a)},eventHandler:function(t){var e=this,i=e.tooltip;if(r.notify(e,"beforeEvent",[t])!==!1){e._bufferedRender=!0,e._bufferedRequest=null;var a=e.handleEvent(t);a|=i&&i.handleEvent(t),r.notify(e,"afterEvent",[t]);var n=e._bufferedRequest;return n?e.render(n.duration,n.lazy):a&&!e.animating&&(e.stop(),e.render(e.options.hover.animationDuration,!0)),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e=this,i=e.options||{},a=i.hover,r=!1;return e.lastActive=e.lastActive||[],"mouseout"===t.type?e.active=[]:e.active=e.getElementsAtEventForMode(t,a.mode,a),a.onHover&&a.onHover.call(e,t["native"],e.active),"mouseup"!==t.type&&"click"!==t.type||i.onClick&&i.onClick.call(e,t["native"],e.active),e.lastActive.length&&e.updateHoverStyle(e.lastActive,a.mode,!1),e.active.length&&a.mode&&e.updateHoverStyle(e.active,a.mode,!0),r=!n.arrayEquals(e.active,e.lastActive),e.lastActive=e.active,r}}),t.Controller=t}},{}],24:[function(t,e,i){"use strict";e.exports=function(t){function e(t,e){return t._chartjs?void t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{ listeners:[e]}}),void n.forEach(function(e){var i="onData"+e.charAt(0).toUpperCase()+e.slice(1),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),r=n.apply(this,e);return a.each(t._chartjs.listeners,function(t){"function"==typeof t[i]&&t[i].apply(t,e)}),r}})}))}function i(t,e){var i=t._chartjs;if(i){var a=i.listeners,r=a.indexOf(e);r!==-1&&a.splice(r,1),a.length>0||(n.forEach(function(e){delete t[e]}),delete t._chartjs)}}var a=t.helpers,n=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},a.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var i=this;i.chart=t,i.index=e,i.linkScales(),i.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),i=t.getDataset();null===e.xAxisID&&(e.xAxisID=i.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=i.yAxisID||t.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&&i(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,i=e.dataElementType;return i&&new i({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,i=this,a=i.getMeta(),n=i.getDataset().data||[],r=a.data;for(t=0,e=n.length;t<e;++t)r[t]=r[t]||i.createMetaData(t);a.dataset=a.dataset||i.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var t=this,a=t.getDataset(),n=a.data||(a.data=[]);t._data!==n&&(t._data&&i(t._data,t),e(n,t),t._data=n),t.resyncElements()},update:a.noop,transition:function(t){for(var e=this.getMeta(),i=e.data||[],a=i.length,n=0;n<a;++n)i[n].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],i=e.length,a=0;for(t.dataset&&t.dataset.draw();a<i;++a)e[a].draw()},removeHoverStyle:function(t,e){var i=this.chart.data.datasets[t._datasetIndex],n=t._index,r=t.custom||{},o=a.getValueAtIndexOrDefault,s=t._model;s.backgroundColor=r.backgroundColor?r.backgroundColor:o(i.backgroundColor,n,e.backgroundColor),s.borderColor=r.borderColor?r.borderColor:o(i.borderColor,n,e.borderColor),s.borderWidth=r.borderWidth?r.borderWidth:o(i.borderWidth,n,e.borderWidth)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},r=a.getValueAtIndexOrDefault,o=a.getHoverColor,s=t._model;s.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:r(e.hoverBackgroundColor,i,o(s.backgroundColor)),s.borderColor=n.hoverBorderColor?n.hoverBorderColor:r(e.hoverBorderColor,i,o(s.borderColor)),s.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:r(e.hoverBorderWidth,i,s.borderWidth)},resyncElements:function(){var t=this,e=t.getMeta(),i=t.getDataset().data,a=e.data.length,n=i.length;n<a?e.data.splice(n,a-n):n>a&&t.insertElements(a,n-a)},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=a.inherits}},{}],25:[function(t,e,i){"use strict";var a=t(3);e.exports=function(t){function e(t,e,i,n){var r,o,s,l,c,u,d,h,f,p=Object.keys(i);for(r=0,o=p.length;r<o;++r)if(s=p[r],u=i[s],e.hasOwnProperty(s)||(e[s]=u),l=e[s],l!==u&&"_"!==s[0]){if(t.hasOwnProperty(s)||(t[s]=l),c=t[s],d=typeof u,d===typeof c)if("string"===d){if(h=a(c),h.valid&&(f=a(u),f.valid)){e[s]=f.mix(h,n).rgbString();continue}}else if("number"===d&&isFinite(c)&&isFinite(u)){e[s]=c+(u-c)*n;continue}e[s]=u}}var i=t.helpers;t.elements={},t.Element=function(t){i.extend(this,t),this.initialize.apply(this,arguments)},i.extend(t.Element.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=i.clone(t._model)),t._start={},t},transition:function(t){var i=this,a=i._model,n=i._start,r=i._view;return a&&1!==t?(r||(r=i._view={}),n||(n=i._start={}),e(n,r,a,t),i):(i._view=a,i._start=null,i)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return i.isNumber(this._model.x)&&i.isNumber(this._model.y)}}),t.Element.extend=i.inherits}},{3:3}],26:[function(t,e,i){"use strict";var a=t(3);e.exports=function(t){function e(t,e,i){var a;return"string"==typeof t?(a=parseInt(t,10),t.indexOf("%")!==-1&&(a=a/100*e.parentNode[i])):a=t,a}function i(t){return void 0!==t&&null!==t&&"none"!==t}function n(t,a,n){var r=document.defaultView,o=t.parentNode,s=r.getComputedStyle(t)[a],l=r.getComputedStyle(o)[a],c=i(s),u=i(l),d=Number.POSITIVE_INFINITY;return c||u?Math.min(c?e(s,t,n):d,u?e(l,o,n):d):"none"}var r=t.helpers={};r.each=function(t,e,i,a){var n,o;if(r.isArray(t))if(o=t.length,a)for(n=o-1;n>=0;n--)e.call(i,t[n],n);else for(n=0;n<o;n++)e.call(i,t[n],n);else if("object"==typeof t){var s=Object.keys(t);for(o=s.length,n=0;n<o;n++)e.call(i,t[s[n]],s[n])}},r.clone=function(t){var e={};return r.each(t,function(t,i){r.isArray(t)?e[i]=t.slice(0):"object"==typeof t&&null!==t?e[i]=r.clone(t):e[i]=t}),e},r.extend=function(t){for(var e=function(e,i){t[i]=e},i=1,a=arguments.length;i<a;i++)r.each(arguments[i],e);return t},r.configMerge=function(e){var i=r.clone(e);return r.each(Array.prototype.slice.call(arguments,1),function(e){r.each(e,function(e,a){var n=i.hasOwnProperty(a),o=n?i[a]:{};"scales"===a?i[a]=r.scaleMerge(o,e):"scale"===a?i[a]=r.configMerge(o,t.scaleService.getScaleDefaults(e.type),e):!n||"object"!=typeof o||r.isArray(o)||null===o||"object"!=typeof e||r.isArray(e)?i[a]=e:i[a]=r.configMerge(o,e)})}),i},r.scaleMerge=function(e,i){var a=r.clone(e);return r.each(i,function(e,i){"xAxes"===i||"yAxes"===i?a.hasOwnProperty(i)?r.each(e,function(e,n){var o=r.getValueOrDefault(e.type,"xAxes"===i?"category":"linear"),s=t.scaleService.getScaleDefaults(o);n>=a[i].length||!a[i][n].type?a[i].push(r.configMerge(s,e)):e.type&&e.type!==a[i][n].type?a[i][n]=r.configMerge(a[i][n],s,e):a[i][n]=r.configMerge(a[i][n],e)}):(a[i]=[],r.each(e,function(e){var n=r.getValueOrDefault(e.type,"xAxes"===i?"category":"linear");a[i].push(r.configMerge(t.scaleService.getScaleDefaults(n),e))})):a.hasOwnProperty(i)&&"object"==typeof a[i]&&null!==a[i]&&"object"==typeof e?a[i]=r.configMerge(a[i],e):a[i]=e}),a},r.getValueAtIndexOrDefault=function(t,e,i){return void 0===t||null===t?i:r.isArray(t)?e<t.length?t[e]:i:t},r.getValueOrDefault=function(t,e){return void 0===t?e:t},r.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,a=t.length;i<a;++i)if(t[i]===e)return i;return-1},r.where=function(t,e){if(r.isArray(t)&&Array.prototype.filter)return t.filter(e);var i=[];return r.each(t,function(t){e(t)&&i.push(t)}),i},r.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 a=0,n=t.length;a<n;++a)if(e.call(i,t[a],a,t))return a;return-1},r.findNextWhere=function(t,e,i){void 0!==i&&null!==i||(i=-1);for(var a=i+1;a<t.length;a++){var n=t[a];if(e(n))return n}},r.findPreviousWhere=function(t,e,i){void 0!==i&&null!==i||(i=t.length);for(var a=i-1;a>=0;a--){var n=t[a];if(e(n))return n}},r.inherits=function(t){var e=this,i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},a=function(){this.constructor=i};return a.prototype=e.prototype,i.prototype=new a,i.extend=r.inherits,t&&r.extend(i.prototype,t),i.__super__=e.prototype,i},r.noop=function(){},r.uid=function(){var t=0;return function(){return t++}}(),r.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},r.almostEquals=function(t,e,i){return Math.abs(t-e)<i},r.almostWhole=function(t,e){var i=Math.round(t);return i-e<t&&i+e>t},r.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},r.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},r.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1},r.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},r.toRadians=function(t){return t*(Math.PI/180)},r.toDegrees=function(t){return t*(180/Math.PI)},r.getAngleFromPoint=function(t,e){var i=e.x-t.x,a=e.y-t.y,n=Math.sqrt(i*i+a*a),r=Math.atan2(a,i);return r<-.5*Math.PI&&(r+=2*Math.PI),{angle:r,distance:n}},r.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},r.aliasPixel=function(t){return t%2===0?0:.5},r.splineCurve=function(t,e,i,a){var n=t.skip?e:t,r=e,o=i.skip?e:i,s=Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2)),l=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;var d=a*c,h=a*u;return{previous:{x:r.x-d*(o.x-n.x),y:r.y-d*(o.y-n.y)},next:{x:r.x+h*(o.x-n.x),y:r.y+h*(o.y-n.y)}}},r.EPSILON=Number.EPSILON||1e-14,r.splineCurveMonotone=function(t){var e,i,a,n,o=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),s=o.length;for(e=0;e<s;++e)if(a=o[e],!a.model.skip){if(i=e>0?o[e-1]:null,n=e<s-1?o[e+1]:null,n&&!n.model.skip){var l=n.model.x-a.model.x;a.deltaK=0!==l?(n.model.y-a.model.y)/l:0}!i||i.model.skip?a.mK=a.deltaK:!n||n.model.skip?a.mK=i.deltaK:this.sign(i.deltaK)!==this.sign(a.deltaK)?a.mK=0:a.mK=(i.deltaK+a.deltaK)/2}var c,u,d,h;for(e=0;e<s-1;++e)a=o[e],n=o[e+1],a.model.skip||n.model.skip||(r.almostEquals(a.deltaK,0,this.EPSILON)?a.mK=n.mK=0:(c=a.mK/a.deltaK,u=n.mK/a.deltaK,h=Math.pow(c,2)+Math.pow(u,2),h<=9||(d=3/Math.sqrt(h),a.mK=c*d*a.deltaK,n.mK=u*d*a.deltaK)));var f;for(e=0;e<s;++e)a=o[e],a.model.skip||(i=e>0?o[e-1]:null,n=e<s-1?o[e+1]:null,i&&!i.model.skip&&(f=(a.model.x-i.model.x)/3,a.model.controlPointPreviousX=a.model.x-f,a.model.controlPointPreviousY=a.model.y-f*a.mK),n&&!n.model.skip&&(f=(n.model.x-a.model.x)/3,a.model.controlPointNextX=a.model.x+f,a.model.controlPointNextY=a.model.y+f*a.mK))},r.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]},r.previousItem=function(t,e,i){return i?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},r.niceNum=function(t,e){var i,a=Math.floor(r.log10(t)),n=t/Math.pow(10,a);return i=e?n<1.5?1:n<3?2:n<7?5:10:n<=1?1:n<=2?2:n<=5?5:10,i*Math.pow(10,a)};var o=r.easingEffects={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*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 1*((t=t/1-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-1*((t=t/1-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 1*(t/=1)*t*t*t*t},easeOutQuint:function(t){return 1*((t=t/1-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/1*(Math.PI/2))+1},easeOutSine:function(t){return 1*Math.sin(t/1*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t/1)-1)},easeInExpo:function(t){return 0===t?1:1*Math.pow(2,10*(t/1-1))},easeOutExpo:function(t){return 1===t?1:1*(-Math.pow(2,-10*t/1)+1)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(-Math.pow(2,-10*--t)+2)},easeInCirc:function(t){return t>=1?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-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,a=1;return 0===t?0:1===(t/=1)?1:(i||(i=.3),a<Math.abs(1)?(a=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/a),-(a*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)))},easeOutElastic:function(t){var e=1.70158,i=0,a=1;return 0===t?0:1===(t/=1)?1:(i||(i=.3),a<Math.abs(1)?(a=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/a),a*Math.pow(2,-10*t)*Math.sin((1*t-e)*(2*Math.PI)/i)+1)},easeInOutElastic:function(t){var e=1.70158,i=0,a=1;return 0===t?0:2===(t/=.5)?1:(i||(i=1*(.3*1.5)),a<Math.abs(1)?(a=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/a),t<1?-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)):a*Math.pow(2,-10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)*.5+1)},easeInBack:function(t){var e=1.70158;return 1*(t/=1)*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return 1*((t=t/1-1)*t*((e+1)*t+e)+1)},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:function(t){return 1-o.easeOutBounce(1-t)},easeOutBounce:function(t){return(t/=1)<1/2.75?1*(7.5625*t*t):t<2/2.75?1*(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1*(7.5625*(t-=2.25/2.75)*t+.9375):1*(7.5625*(t-=2.625/2.75)*t+.984375)},easeInOutBounce:function(t){return t<.5?.5*o.easeInBounce(2*t):.5*o.easeOutBounce(2*t-1)+.5}};r.requestAnimFrame=function(){return"undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),r.getRelativePosition=function(t,e){var i,a,n=t.originalEvent||t,o=t.currentTarget||t.srcElement,s=o.getBoundingClientRect(),l=n.touches;l&&l.length>0?(i=l[0].clientX,a=l[0].clientY):(i=n.clientX,a=n.clientY);var c=parseFloat(r.getStyle(o,"padding-left")),u=parseFloat(r.getStyle(o,"padding-top")),d=parseFloat(r.getStyle(o,"padding-right")),h=parseFloat(r.getStyle(o,"padding-bottom")),f=s.right-s.left-c-d,p=s.bottom-s.top-u-h;return i=Math.round((i-s.left-c)/f*o.width/e.currentDevicePixelRatio),a=Math.round((a-s.top-u)/p*o.height/e.currentDevicePixelRatio),{x:i,y:a}},r.addEvent=function(t,e,i){t.addEventListener?t.addEventListener(e,i):t.attachEvent?t.attachEvent("on"+e,i):t["on"+e]=i},r.removeEvent=function(t,e,i){t.removeEventListener?t.removeEventListener(e,i,!1):t.detachEvent?t.detachEvent("on"+e,i):t["on"+e]=r.noop},r.getConstraintWidth=function(t){return n(t,"max-width","clientWidth")},r.getConstraintHeight=function(t){return n(t,"max-height","clientHeight")},r.getMaximumWidth=function(t){var e=t.parentNode,i=parseInt(r.getStyle(e,"padding-left"),10),a=parseInt(r.getStyle(e,"padding-right"),10),n=e.clientWidth-i-a,o=r.getConstraintWidth(t);return isNaN(o)?n:Math.min(n,o)},r.getMaximumHeight=function(t){var e=t.parentNode,i=parseInt(r.getStyle(e,"padding-top"),10),a=parseInt(r.getStyle(e,"padding-bottom"),10),n=e.clientHeight-i-a,o=r.getConstraintHeight(t);return isNaN(o)?n:Math.min(n,o)},r.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},r.retinaScale=function(t){var e=t.currentDevicePixelRatio=window.devicePixelRatio||1;if(1!==e){var i=t.canvas,a=t.height,n=t.width;i.height=a*e,i.width=n*e,t.ctx.scale(e,e),i.style.height=a+"px",i.style.width=n+"px"}},r.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},r.fontString=function(t,e,i){return e+" "+t+"px "+i},r.longestText=function(t,e,i,a){a=a||{};var n=a.data=a.data||{},o=a.garbageCollect=a.garbageCollect||[];a.font!==e&&(n=a.data={},o=a.garbageCollect=[],a.font=e),t.font=e;var s=0;r.each(i,function(e){void 0!==e&&null!==e&&r.isArray(e)!==!0?s=r.measureText(t,n,o,s,e):r.isArray(e)&&r.each(e,function(e){void 0===e||null===e||r.isArray(e)||(s=r.measureText(t,n,o,s,e))})});var l=o.length/2;if(l>i.length){for(var c=0;c<l;c++)delete n[o[c]];o.splice(0,l)}return s},r.measureText=function(t,e,i,a,n){var r=e[n];return r||(r=e[n]=t.measureText(n).width,i.push(n)),r>a&&(a=r),a},r.numberOfLabelLines=function(t){var e=1;return r.each(t,function(t){r.isArray(t)&&t.length>e&&(e=t.length)}),e},r.drawRoundedRectangle=function(t,e,i,a,n,r){t.beginPath(),t.moveTo(e+r,i),t.lineTo(e+a-r,i),t.quadraticCurveTo(e+a,i,e+a,i+r),t.lineTo(e+a,i+n-r),t.quadraticCurveTo(e+a,i+n,e+a-r,i+n),t.lineTo(e+r,i+n),t.quadraticCurveTo(e,i+n,e,i+n-r),t.lineTo(e,i+r),t.quadraticCurveTo(e,i,e+r,i),t.closePath()},r.color=a?function(e){return e instanceof CanvasGradient&&(e=t.defaults.global.defaultColor),a(e)}:function(t){return console.error("Color.js not found!"),t},r.isArray=Array.isArray?function(t){return Array.isArray(t)}:function(t){return"[object Array]"===Object.prototype.toString.call(t)},r.arrayEquals=function(t,e){var i,a,n,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,a=t.length;i<a;++i)if(n=t[i],o=e[i],n instanceof Array&&o instanceof Array){if(!r.arrayEquals(n,o))return!1}else if(n!==o)return!1;return!0},r.callback=function(t,e,i){t&&"function"==typeof t.call&&t.apply(i,e)},r.getHoverColor=function(t){return t instanceof CanvasPattern?t:r.color(t).saturate(.5).darken(.1).rgbString()},r.callCallback=r.callback}},{3:3}],27:[function(t,e,i){"use strict";e.exports=function(t){function e(t,e){return t["native"]?{x:t.x,y:t.y}:o.getRelativePosition(t,e)}function i(t,e){var i,a,n,r,o,s=t.data.datasets;for(a=0,r=s.length;a<r;++a)if(t.isDatasetVisible(a))for(i=t.getDatasetMeta(a),n=0,o=i.data.length;n<o;++n){var l=i.data[n];l._view.skip||e(l)}}function a(t,e){var a=[];return i(t,function(t){t.inRange(e.x,e.y)&&a.push(t)}),a}function n(t,e,a,n){var r=Number.POSITIVE_INFINITY,s=[];return n||(n=o.distanceBetweenPoints),i(t,function(t){if(!a||t.inRange(e.x,e.y)){var i=t.getCenterPoint(),o=n(e,i);o<r?(s=[t],r=o):o===r&&s.push(t)}}),s}function r(t,i,r){var o=e(i,t),s=function(t,e){return Math.abs(t.x-e.x)},l=r.intersect?a(t,o):n(t,o,!1,s),c=[];return l.length?(t.data.datasets.forEach(function(e,i){if(t.isDatasetVisible(i)){var a=t.getDatasetMeta(i),n=a.data[l[0]._index];n&&!n._view.skip&&c.push(n)}}),c):[]}var o=t.helpers;t.Interaction={modes:{single:function(t,a){var n=e(a,t),r=[];return i(t,function(t){if(t.inRange(n.x,n.y))return r.push(t),r}),r.slice(0,1)},label:r,index:r,dataset:function(t,i,r){var o=e(i,t),s=r.intersect?a(t,o):n(t,o,!1);return s.length>0&&(s=t.getDatasetMeta(s[0]._datasetIndex).data),s},"x-axis":function(t,e){return r(t,e,!0)},point:function(t,i){var n=e(i,t);return a(t,n)},nearest:function(t,i,a){var r=e(i,t),o=n(t,r,a.intersect);return o.length>1&&o.sort(function(t,e){var i=t.getArea(),a=e.getArea(),n=i-a;return 0===n&&(n=t._datasetIndex-e._datasetIndex),n}),o.slice(0,1)},x:function(t,a,n){var r=e(a,t),o=[],s=!1;return i(t,function(t){t.inXRange(r.x)&&o.push(t),t.inRange(r.x,r.y)&&(s=!0)}),n.intersect&&!s&&(o=[]),o},y:function(t,a,n){var r=e(a,t),o=[],s=!1;return i(t,function(t){t.inYRange(r.y)&&o.push(t),t.inRange(r.x,r.y)&&(s=!0)}),n.intersect&&!s&&(o=[]),o}}}}},{}],28:[function(t,e,i){"use strict";e.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.defaults={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:{},legendCallback:function(t){var e=[];e.push('
    ');for(var i=0;i<t.data.datasets.length;i++)e.push('
  • '),t.data.datasets[i].label&&e.push(t.data.datasets[i].label),e.push("
  • ");return e.push("
"),e.join("")}}},t.Chart=t,t}},{}],29:[function(t,e,i){"use strict";e.exports=function(t){function e(t,e){return a.where(t,function(t){return t.position===e})}function i(t,e){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,i){var a=e?i:t,n=e?t:i;return a.weight===n.weight?a._tmpIndex_-n._tmpIndex_:a.weight-n.weight}),t.forEach(function(t){delete t._tmpIndex_})}var a=t.helpers;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){var i=t.boxes?t.boxes.indexOf(e):-1;i!==-1&&t.boxes.splice(i,1)},configure:function(t,e,i){for(var a,n=["fullWidth","position","weight"],r=n.length,o=0;o<r;++o)a=n[o],i.hasOwnProperty(a)&&(e[a]=i[a])},update:function(t,n,r){function o(t){var e,i=t.isHorizontal();i?(e=t.update(t.fullWidth?k:A,C),D-=e.height):(e=t.update(S,_),A-=e.width),P.push({horizontal:i,minSize:e,box:t})}function s(t){var e=a.findNextWhere(P,function(e){return e.box===t});if(e)if(t.isHorizontal()){var i={left:Math.max(z,I),right:Math.max(L,F),top:0,bottom:0};t.update(t.fullWidth?k:A,w/2,i)}else t.update(e.minSize.width,D)}function l(t){var e=a.findNextWhere(P,function(e){return e.box===t}),i={left:0,right:0,top:O,bottom:V};e&&t.update(e.minSize.width,D,i)}function c(t){t.isHorizontal()?(t.left=t.fullWidth?h:z,t.right=t.fullWidth?n-f:z+A,t.top=q,t.bottom=q+t.height,q=t.bottom):(t.left=H,t.right=H+t.width,t.top=O,t.bottom=O+D,H=t.right)}if(t){var u=t.options.layout,d=u?u.padding:null,h=0,f=0,p=0,g=0;isNaN(d)?(h=d.left||0,f=d.right||0,p=d.top||0,g=d.bottom||0):(h=d,f=d,p=d,g=d);var v=e(t.boxes,"left"),m=e(t.boxes,"right"),b=e(t.boxes,"top"),y=e(t.boxes,"bottom"),x=e(t.boxes,"chartArea");i(v,!0),i(m,!1),i(b,!0),i(y,!1);var k=n-h-f,w=r-p-g,M=k/2,_=w/2,S=(n-M)/(v.length+m.length),C=(r-_)/(b.length+y.length),A=k,D=w,P=[];a.each(v.concat(m,b,y),o);var I=0,F=0,T=0,R=0;a.each(b.concat(y),function(t){if(t.getPadding){var e=t.getPadding();I=Math.max(I,e.left),F=Math.max(F,e.right)}}),a.each(v.concat(m),function(t){if(t.getPadding){var e=t.getPadding();T=Math.max(T,e.top),R=Math.max(R,e.bottom)}});var z=h,L=f,O=p,V=g;a.each(v.concat(m),s),a.each(v,function(t){z+=t.width}),a.each(m,function(t){L+=t.width}),a.each(b.concat(y),s),a.each(b,function(t){O+=t.height}),a.each(y,function(t){V+=t.height}),a.each(v.concat(m),l),z=h,L=f,O=p,V=g,a.each(v,function(t){z+=t.width}),a.each(m,function(t){L+=t.width}),a.each(b,function(t){O+=t.height}),a.each(y,function(t){V+=t.height});var B=Math.max(I-z,0);z+=B,L+=Math.max(F-L,0);var W=Math.max(T-O,0);O+=W,V+=Math.max(R-V,0);var N=r-O-V,E=n-z-L;E===A&&N===D||(a.each(v,function(t){t.height=N}),a.each(m,function(t){t.height=N}),a.each(b,function(t){t.fullWidth||(t.width=E)}),a.each(y,function(t){t.fullWidth||(t.width=E)}),D=N,A=E);var H=h+B,q=p+W;a.each(v.concat(b),c),H+=A,q+=D,a.each(m,c),a.each(y,c),t.chartArea={left:z,top:O,right:z+A,bottom:O+D},a.each(x,function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(A,D)})}}}}},{}],30:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.global.plugins={},t.plugins={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){e.indexOf(t)===-1&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var i=e.indexOf(t);i!==-1&&e.splice(i,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){var a,n,r,o,s,l=this.descriptors(t),c=l.length;for(a=0;a<c;++a)if(n=l[a],r=n.plugin,s=r[e],"function"==typeof s&&(o=[t].concat(i||[]),o.push(n.options),s.apply(r,o)===!1))return!1;return!0},descriptors:function(i){var a=i._plugins||(i._plugins={});if(a.id===this._cacheId)return a.descriptors;var n=[],r=[],o=i&&i.config||{},s=t.defaults.global.plugins,l=o.options&&o.options.plugins||{};return this._plugins.concat(o.plugins||[]).forEach(function(t){var i=n.indexOf(t);if(i===-1){var a=t.id,o=l[a];o!==!1&&(o===!0&&(o=e.clone(s[a])),n.push(t),r.push({plugin:t,options:o||{}}))}}),a.descriptors=r,a.id=this._cacheId,r}},t.pluginService=t.plugins,t.PluginBase=t.Element.extend({})}},{}],31:[function(t,e,i){"use strict";e.exports=function(t){function e(t,e,i){return a.isArray(e)?a.longestText(t,i,e):t.measureText(e).width}function i(e){var i=a.getValueOrDefault,n=t.defaults.global,r=i(e.fontSize,n.defaultFontSize),o=i(e.fontStyle,n.defaultFontStyle),s=i(e.fontFamily,n.defaultFontFamily);return{size:r,style:o,family:s,font:a.fontString(r,o,s)}}var a=t.helpers;t.defaults.scale={display:!0,position:"left",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:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:t.Ticks.formatters.values}},t.Scale=t.Element.extend({getPadding:function(){var t=this;return{left:t.paddingLeft||0,top:t.paddingTop||0,right:t.paddingRight||0,bottom:t.paddingBottom||0}},beforeUpdate:function(){a.callback(this.options.beforeUpdate,[this])},update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=a.extend({left:0,right:0,top:0,bottom:0},i),n.longestTextCache=n.longestTextCache||{},n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeDataLimits(),n.determineDataLimits(),n.afterDataLimits(),n.beforeBuildTicks(),n.buildTicks(),n.afterBuildTicks(),n.beforeTickToLabelConversion(),n.convertTicksToLabels(),n.afterTickToLabelConversion(),n.beforeCalculateTickRotation(),n.calculateTickRotation(),n.afterCalculateTickRotation(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:function(){a.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){a.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(){a.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){a.callback(this.options.beforeDataLimits,[this])},determineDataLimits:a.noop,afterDataLimits:function(){a.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){a.callback(this.options.beforeBuildTicks,[this])},buildTicks:a.noop,afterBuildTicks:function(){a.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){a.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this,e=t.options.ticks;t.ticks=t.ticks.map(e.userCallback||e.callback)},afterTickToLabelConversion:function(){a.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){a.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,n=t.options.ticks,r=i(n);e.font=r.font;var o=n.minRotation||0;if(t.options.display&&t.isHorizontal())for(var s,l,c=a.longestText(e,r.font,t.ticks,t.longestTextCache),u=c,d=t.getPixelForTick(1)-t.getPixelForTick(0)-6;u>d&&o<n.maxRotation;){var h=a.toRadians(o);if(s=Math.cos(h),l=Math.sin(h),l*c>t.maxHeight){o--;break}o++,u=s*c}t.labelRotation=o},afterCalculateTickRotation:function(){a.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){a.callback(this.options.beforeFit,[this])},fit:function(){var t=this,n=t.minSize={width:0,height:0},r=t.options,o=r.ticks,s=r.scaleLabel,l=r.gridLines,c=r.display,u=t.isHorizontal(),d=i(o),h=1.5*i(s).size,f=r.gridLines.tickMarkLength;if(u?n.width=t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:n.width=c&&l.drawTicks?f:0,u?n.height=c&&l.drawTicks?f:0:n.height=t.maxHeight,s.display&&c&&(u?n.height+=h:n.width+=h),o.display&&c){var p=a.longestText(t.ctx,d.font,t.ticks,t.longestTextCache),g=a.numberOfLabelLines(t.ticks),v=.5*d.size;if(u){t.longestLabelWidth=p;var m=a.toRadians(t.labelRotation),b=Math.cos(m),y=Math.sin(m),x=y*p+d.size*g+v*g;n.height=Math.min(t.maxHeight,n.height+x),t.ctx.font=d.font;var k=t.ticks[0],w=e(t.ctx,k,d.font),M=t.ticks[t.ticks.length-1],_=e(t.ctx,M,d.font);0!==t.labelRotation?(t.paddingLeft="bottom"===r.position?b*w+3:b*v+3,t.paddingRight="bottom"===r.position?b*v+3:b*_+3):(t.paddingLeft=w/2+3,t.paddingRight=_/2+3)}else o.mirror?p=0:p+=t.options.ticks.padding,n.width=Math.min(t.maxWidth,n.width+p),t.paddingTop=d.size/2,t.paddingBottom=d.size/2}t.handleMargins(),t.width=n.width,t.height=n.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(){a.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){return null===t||"undefined"==typeof t?NaN:"number"!=typeof t||isFinite(t)?"object"==typeof t?t instanceof Date||t.isValid?t:this.getRightValue(this.isHorizontal()?t.x:t.y):t:NaN},getLabelForIndex:a.noop,getPixelForValue:a.noop,getValueForPixel:a.noop,getPixelForTick:function(t,e){var i=this;if(i.isHorizontal()){var a=i.width-(i.paddingLeft+i.paddingRight),n=a/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),r=n*t+i.paddingLeft;e&&(r+=n/2);var o=i.left+Math.round(r);return o+=i.isFullWidth()?i.margins.left:0}var s=i.height-(i.paddingTop+i.paddingBottom);return i.top+t*(s/(i.ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),a=i*t+e.paddingLeft,n=e.left+Math.round(a);return n+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,i=t.max;return t.beginAtZero?0:e<0&&i<0?i:e>0&&i>0?e:0},draw:function(e){var n=this,r=n.options;if(r.display){var o,s,l=n.ctx,c=t.defaults.global,u=r.ticks,d=r.gridLines,h=r.scaleLabel,f=0!==n.labelRotation,p=u.autoSkip,g=n.isHorizontal();u.maxTicksLimit&&(s=u.maxTicksLimit);var v=a.getValueOrDefault(u.fontColor,c.defaultFontColor),m=i(u),b=d.drawTicks?d.tickMarkLength:0,y=a.getValueOrDefault(h.fontColor,c.defaultFontColor),x=i(h),k=a.toRadians(n.labelRotation),w=Math.cos(k),M=n.longestLabelWidth*w;l.fillStyle=v;var _=[];if(g){if(o=!1,(M+u.autoSkipPadding)*n.ticks.length>n.width-(n.paddingLeft+n.paddingRight)&&(o=1+Math.floor((M+u.autoSkipPadding)*n.ticks.length/(n.width-(n.paddingLeft+n.paddingRight)))),s&&n.ticks.length>s)for(;!o||n.ticks.length/(o||1)>s;)o||(o=1),o+=1;p||(o=!1)}var S="right"===r.position?n.left:n.right-b,C="right"===r.position?n.left+b:n.right,A="bottom"===r.position?n.top:n.bottom-b,D="bottom"===r.position?n.top+b:n.bottom;if(a.each(n.ticks,function(t,i){if(void 0!==t&&null!==t){var s=n.ticks.length===i+1,l=o>1&&i%o>0||i%o===0&&i+o>=n.ticks.length;if((!l||s)&&void 0!==t&&null!==t){var h,p,v,m;i===("undefined"!=typeof n.zeroLineIndex?n.zeroLineIndex:0)?(h=d.zeroLineWidth,p=d.zeroLineColor,v=d.zeroLineBorderDash,m=d.zeroLineBorderDashOffset):(h=a.getValueAtIndexOrDefault(d.lineWidth,i),p=a.getValueAtIndexOrDefault(d.color,i),v=a.getValueOrDefault(d.borderDash,c.borderDash),m=a.getValueOrDefault(d.borderDashOffset,c.borderDashOffset));

var y,x,w,M,P,I,F,T,R,z,L="middle",O="middle";if(g){"bottom"===r.position?(O=f?"middle":"top",L=f?"right":"center",z=n.top+b):(O=f?"middle":"bottom",L=f?"left":"center",z=n.bottom-b);var V=n.getPixelForTick(i)+a.aliasPixel(h);R=n.getPixelForTick(i,d.offsetGridLines)+u.labelOffset,y=w=P=F=V,x=A,M=D,I=e.top,T=e.bottom}else{var B,W="left"===r.position,N=u.padding;u.mirror?(L=W?"left":"right",B=N):(L=W?"right":"left",B=b+N),R=W?n.right-B:n.left+B;var E=n.getPixelForTick(i);E+=a.aliasPixel(h),z=n.getPixelForTick(i,d.offsetGridLines),y=S,w=C,P=e.left,F=e.right,x=M=I=T=E}_.push({tx1:y,ty1:x,tx2:w,ty2:M,x1:P,y1:I,x2:F,y2:T,labelX:R,labelY:z,glWidth:h,glColor:p,glBorderDash:v,glBorderDashOffset:m,rotation:-1*k,label:t,textBaseline:O,textAlign:L})}}}),a.each(_,function(t){if(d.display&&(l.save(),l.lineWidth=t.glWidth,l.strokeStyle=t.glColor,l.setLineDash&&(l.setLineDash(t.glBorderDash),l.lineDashOffset=t.glBorderDashOffset),l.beginPath(),d.drawTicks&&(l.moveTo(t.tx1,t.ty1),l.lineTo(t.tx2,t.ty2)),d.drawOnChartArea&&(l.moveTo(t.x1,t.y1),l.lineTo(t.x2,t.y2)),l.stroke(),l.restore()),u.display){l.save(),l.translate(t.labelX,t.labelY),l.rotate(t.rotation),l.font=m.font,l.textBaseline=t.textBaseline,l.textAlign=t.textAlign;var e=t.label;if(a.isArray(e))for(var i=0,n=0;i<e.length;++i)l.fillText(""+e[i],0,n),n+=1.5*m.size;else l.fillText(e,0,0);l.restore()}}),h.display){var P,I,F=0;if(g)P=n.left+(n.right-n.left)/2,I="bottom"===r.position?n.bottom-x.size/2:n.top+x.size/2;else{var T="left"===r.position;P=T?n.left+x.size/2:n.right-x.size/2,I=n.top+(n.bottom-n.top)/2,F=T?-.5*Math.PI:.5*Math.PI}l.save(),l.translate(P,I),l.rotate(F),l.textAlign="center",l.textBaseline="middle",l.fillStyle=y,l.font=x.font,l.fillText(h.labelString,0,0),l.restore()}if(d.drawBorder){l.lineWidth=a.getValueAtIndexOrDefault(d.lineWidth,0),l.strokeStyle=a.getValueAtIndexOrDefault(d.color,0);var R=n.left,z=n.right,L=n.top,O=n.bottom,V=a.aliasPixel(l.lineWidth);g?(L=O="top"===r.position?n.bottom:n.top,L+=V,O+=V):(R=z="left"===r.position?n.right:n.left,R+=V,z+=V),l.beginPath(),l.moveTo(R,L),l.lineTo(z,O),l.stroke()}}}})}},{}],32:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.scaleService={constructors:{},defaults:{},registerScaleType:function(t,i,a){this.constructors[t]=i,this.defaults[t]=e.clone(a)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(i){return this.defaults.hasOwnProperty(i)?e.scaleMerge(t.defaults.scale,this.defaults[i]):{}},updateScaleDefaults:function(t,i){var a=this.defaults;a.hasOwnProperty(t)&&(a[t]=e.extend(a[t],i))},addScalesToLayout:function(i){e.each(i.scales,function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,t.layoutService.addBox(i,e)})}}}},{}],33:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.Ticks={generators:{linear:function(t,i){var a,n=[];if(t.stepSize&&t.stepSize>0)a=t.stepSize;else{var r=e.niceNum(i.max-i.min,!1);a=e.niceNum(r/(t.maxTicks-1),!0)}var o=Math.floor(i.min/a)*a,s=Math.ceil(i.max/a)*a;t.min&&t.max&&t.stepSize&&e.almostWhole((t.max-t.min)/t.stepSize,a/1e3)&&(o=t.min,s=t.max);var l=(s-o)/a;l=e.almostEquals(l,Math.round(l),a/1e3)?Math.round(l):Math.ceil(l),n.push(void 0!==t.min?t.min:o);for(var c=1;c<l;++c)n.push(o+c*a);return n.push(void 0!==t.max?t.max:s),n},logarithmic:function(t,i){var a,n,r=[],o=e.getValueOrDefault,s=o(t.min,Math.pow(10,Math.floor(e.log10(i.min)))),l=Math.floor(e.log10(i.max)),c=Math.ceil(i.max/Math.pow(10,l));0===s?(a=Math.floor(e.log10(i.minNotZero)),n=Math.floor(i.minNotZero/Math.pow(10,a)),r.push(s),s=n*Math.pow(10,a)):(a=Math.floor(e.log10(s)),n=Math.floor(s/Math.pow(10,a)));do r.push(s),++n,10===n&&(n=1,++a),s=n*Math.pow(10,a);while(a<l||a===l&&n<c);var u=o(t.max,s);return r.push(u),r}},formatters:{values:function(t){return e.isArray(t)?t:""+t},linear:function(t,i,a){var n=a.length>3?a[2]-a[1]:a[1]-a[0];Math.abs(n)>1&&t!==Math.floor(t)&&(n=t-Math.floor(t));var r=e.log10(Math.abs(n)),o="";if(0!==t){var s=-1*Math.floor(r);s=Math.max(Math.min(s,20),0),o=t.toFixed(s)}else o="0";return o},logarithmic:function(t,i,a){var n=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===n||2===n||5===n||0===i||i===a.length-1?t.toExponential():""}}}}},{}],34:[function(t,e,i){"use strict";e.exports=function(t){function e(t,e){var i=l.color(t);return i.alpha(e*i.alpha()).rgbaString()}function i(t,e){return e&&(l.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function a(t){var e=t._xScale,i=t._yScale||t._scale,a=t._index,n=t._datasetIndex;return{xLabel:e?e.getLabelForIndex(a,n):"",yLabel:i?i.getLabelForIndex(a,n):"",index:a,datasetIndex:n,x:t._model.x,y:t._model.y}}function n(e){var i=t.defaults.global,a=l.getValueOrDefault;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:a(e.bodyFontFamily,i.defaultFontFamily),_bodyFontStyle:a(e.bodyFontStyle,i.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:a(e.bodyFontSize,i.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:a(e.titleFontFamily,i.defaultFontFamily),_titleFontStyle:a(e.titleFontStyle,i.defaultFontStyle),titleFontSize:a(e.titleFontSize,i.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:a(e.footerFontFamily,i.defaultFontFamily),_footerFontStyle:a(e.footerFontStyle,i.defaultFontStyle),footerFontSize:a(e.footerFontSize,i.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function r(t,e){var i=t._chart.ctx,a=2*e.yPadding,n=0,r=e.body,o=r.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);o+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,c=e.footer.length,u=e.titleFontSize,d=e.bodyFontSize,h=e.footerFontSize;a+=s*u,a+=s?(s-1)*e.titleSpacing:0,a+=s?e.titleMarginBottom:0,a+=o*d,a+=o?(o-1)*e.bodySpacing:0,a+=c?e.footerMarginTop:0,a+=c*h,a+=c?(c-1)*e.footerSpacing:0;var f=0,p=function(t){n=Math.max(n,i.measureText(t).width+f)};return i.font=l.fontString(u,e._titleFontStyle,e._titleFontFamily),l.each(e.title,p),i.font=l.fontString(d,e._bodyFontStyle,e._bodyFontFamily),l.each(e.beforeBody.concat(e.afterBody),p),f=e.displayColors?d+2:0,l.each(r,function(t){l.each(t.before,p),l.each(t.lines,p),l.each(t.after,p)}),f=0,i.font=l.fontString(h,e._footerFontStyle,e._footerFontFamily),l.each(e.footer,p),n+=2*e.xPadding,{width:n,height:a}}function o(t,e){var i=t._model,a=t._chart,n=t._chart.chartArea,r="center",o="center";i.y<e.height?o="top":i.y>a.height-e.height&&(o="bottom");var s,l,c,u,d,h=(n.left+n.right)/2,f=(n.top+n.bottom)/2;"center"===o?(s=function(t){return t<=h},l=function(t){return t>h}):(s=function(t){return t<=e.width/2},l=function(t){return t>=a.width-e.width/2}),c=function(t){return t+e.width>a.width},u=function(t){return t-e.width<0},d=function(t){return t<=f?"top":"bottom"},s(i.x)?(r="left",c(i.x)&&(r="center",o=d(i.y))):l(i.x)&&(r="right",u(i.x)&&(r="center",o=d(i.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:r,yAlign:p.yAlign?p.yAlign:o}}function s(t,e,i){var a=t.x,n=t.y,r=t.caretSize,o=t.caretPadding,s=t.cornerRadius,l=i.xAlign,c=i.yAlign,u=r+o,d=s+o;return"right"===l?a-=e.width:"center"===l&&(a-=e.width/2),"top"===c?n+=u:n-="bottom"===c?e.height+u:e.height/2,"center"===c?"left"===l?a+=u:"right"===l&&(a-=u):"left"===l?a-=d:"right"===l&&(a+=d),{x:a,y:n}}var l=t.helpers;t.defaults.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:l.noop,title:function(t,e){var i="",a=e.labels,n=a?a.length:0;if(t.length>0){var r=t[0];r.xLabel?i=r.xLabel:n>0&&r.index<n&&(i=a[r.index])}return i},afterTitle:l.noop,beforeBody:l.noop,beforeLabel:l.noop,label:function(t,e){var i=e.datasets[t.datasetIndex].label||"";return i&&(i+=": "),i+=t.yLabel},labelColor:function(t,e){var i=e.getDatasetMeta(t.datasetIndex),a=i.data[t.index],n=a._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},afterLabel:l.noop,afterBody:l.noop,beforeFooter:l.noop,footer:l.noop,afterFooter:l.noop}},t.Tooltip=t.Element.extend({initialize:function(){this._model=n(this._options)},getTitle:function(){var t=this,e=t._options,a=e.callbacks,n=a.beforeTitle.apply(t,arguments),r=a.title.apply(t,arguments),o=a.afterTitle.apply(t,arguments),s=[];return s=i(s,n),s=i(s,r),s=i(s,o)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return l.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,e){var a=this,n=a._options.callbacks,r=[];return l.each(t,function(t){var o={before:[],lines:[],after:[]};i(o.before,n.beforeLabel.call(a,t,e)),i(o.lines,n.label.call(a,t,e)),i(o.after,n.afterLabel.call(a,t,e)),r.push(o)}),r},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return l.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this,e=t._options.callbacks,a=e.beforeFooter.apply(t,arguments),n=e.footer.apply(t,arguments),r=e.afterFooter.apply(t,arguments),o=[];return o=i(o,a),o=i(o,n),o=i(o,r)},update:function(e){var i,c,u=this,d=u._options,h=u._model,f=u._model=n(d),p=u._active,g=u._data,v={xAlign:h.xAlign,yAlign:h.yAlign},m={x:h.x,y:h.y},b={width:h.width,height:h.height},y={x:h.caretX,y:h.caretY};if(p.length){f.opacity=1;var x=[];y=t.Tooltip.positioners[d.position](p,u._eventPosition);var k=[];for(i=0,c=p.length;i<c;++i)k.push(a(p[i]));d.filter&&(k=k.filter(function(t){return d.filter(t,g)})),d.itemSort&&(k=k.sort(function(t,e){return d.itemSort(t,e,g)})),l.each(k,function(t){x.push(d.callbacks.labelColor.call(u,t,u._chart))}),f.title=u.getTitle(k,g),f.beforeBody=u.getBeforeBody(k,g),f.body=u.getBody(k,g),f.afterBody=u.getAfterBody(k,g),f.footer=u.getFooter(k,g),f.x=Math.round(y.x),f.y=Math.round(y.y),f.caretPadding=d.caretPadding,f.labelColors=x,f.dataPoints=k,b=r(this,f),v=o(this,b),m=s(f,b,v)}else f.opacity=0;return f.xAlign=v.xAlign,f.yAlign=v.yAlign,f.x=m.x,f.y=m.y,f.width=b.width,f.height=b.height,f.caretX=y.x,f.caretY=y.y,u._model=f,e&&d.custom&&d.custom.call(u,f),u},drawCaret:function(t,e){var i=this._chart.ctx,a=this._view,n=this.getCaretPosition(t,e,a);i.lineTo(n.x1,n.y1),i.lineTo(n.x2,n.y2),i.lineTo(n.x3,n.y3)},getCaretPosition:function(t,e,i){var a,n,r,o,s,l,c=i.caretSize,u=i.cornerRadius,d=i.xAlign,h=i.yAlign,f=t.x,p=t.y,g=e.width,v=e.height;if("center"===h)s=p+v/2,"left"===d?(a=f,n=a-c,r=a,o=s+c,l=s-c):(a=f+g,n=a+c,r=a,o=s-c,l=s+c);else if("left"===d?(n=f+u+c,a=n-c,r=n+c):"right"===d?(n=f+g-u-c,a=n-c,r=n+c):(n=f+g/2,a=n-c,r=n+c),"top"===h)o=p,s=o-c,l=o;else{o=p+v,s=o+c,l=o;var m=r;r=a,a=m}return{x1:a,x2:n,x3:r,y1:o,y2:s,y3:l}},drawTitle:function(t,i,a,n){var r=i.title;if(r.length){a.textAlign=i._titleAlign,a.textBaseline="top";var o=i.titleFontSize,s=i.titleSpacing;a.fillStyle=e(i.titleFontColor,n),a.font=l.fontString(o,i._titleFontStyle,i._titleFontFamily);var c,u;for(c=0,u=r.length;c<u;++c)a.fillText(r[c],t.x,t.y),t.y+=o+s,c+1===r.length&&(t.y+=i.titleMarginBottom-s)}},drawBody:function(t,i,a,n){var r=i.bodyFontSize,o=i.bodySpacing,s=i.body;a.textAlign=i._bodyAlign,a.textBaseline="top";var c=e(i.bodyFontColor,n);a.fillStyle=c,a.font=l.fontString(r,i._bodyFontStyle,i._bodyFontFamily);var u=0,d=function(e){a.fillText(e,t.x+u,t.y),t.y+=r+o};l.each(i.beforeBody,d);var h=i.displayColors;u=h?r+2:0,l.each(s,function(o,s){l.each(o.before,d),l.each(o.lines,function(o){h&&(a.fillStyle=e(i.legendColorBackground,n),a.fillRect(t.x,t.y,r,r),a.strokeStyle=e(i.labelColors[s].borderColor,n),a.strokeRect(t.x,t.y,r,r),a.fillStyle=e(i.labelColors[s].backgroundColor,n),a.fillRect(t.x+1,t.y+1,r-2,r-2),a.fillStyle=c),d(o)}),l.each(o.after,d)}),u=0,l.each(i.afterBody,d),t.y-=o},drawFooter:function(t,i,a,n){var r=i.footer;r.length&&(t.y+=i.footerMarginTop,a.textAlign=i._footerAlign,a.textBaseline="top",a.fillStyle=e(i.footerFontColor,n),a.font=l.fontString(i.footerFontSize,i._footerFontStyle,i._footerFontFamily),l.each(r,function(e){a.fillText(e,t.x,t.y),t.y+=i.footerFontSize+i.footerSpacing}))},drawBackground:function(t,i,a,n,r){a.fillStyle=e(i.backgroundColor,r),a.strokeStyle=e(i.borderColor,r),a.lineWidth=i.borderWidth;var o=i.xAlign,s=i.yAlign,l=t.x,c=t.y,u=n.width,d=n.height,h=i.cornerRadius;a.beginPath(),a.moveTo(l+h,c),"top"===s&&this.drawCaret(t,n),a.lineTo(l+u-h,c),a.quadraticCurveTo(l+u,c,l+u,c+h),"center"===s&&"right"===o&&this.drawCaret(t,n),a.lineTo(l+u,c+d-h),a.quadraticCurveTo(l+u,c+d,l+u-h,c+d),"bottom"===s&&this.drawCaret(t,n),a.lineTo(l+h,c+d),a.quadraticCurveTo(l,c+d,l,c+d-h),"center"===s&&"left"===o&&this.drawCaret(t,n),a.lineTo(l,c+h),a.quadraticCurveTo(l,c,l+h,c),a.closePath(),a.fill(),i.borderWidth>0&&a.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i={width:e.width,height:e.height},a={x:e.x,y:e.y},n=Math.abs(e.opacity<.001)?0:e.opacity,r=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&r&&(this.drawBackground(a,e,t,i,n),a.x+=e.xPadding,a.y+=e.yPadding,this.drawTitle(a,e,t,n),this.drawBody(a,e,t,n),this.drawFooter(a,e,t,n))}},handleEvent:function(t){var e=this,i=e._options,a=!1;if(e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,i.mode,i),a=!l.arrayEquals(e._active,e._lastActive),!a)return!1;if(e._lastActive=e._active,i.enabled||i.custom){e._eventPosition={x:t.x,y:t.y};var n=e._model;e.update(!0),e.pivot(),a|=n.x!==e._model.x||n.y!==e._model.y}return a}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,i,a=0,n=0,r=0;for(e=0,i=t.length;e<i;++e){var o=t[e];if(o&&o.hasValue()){var s=o.tooltipPosition();a+=s.x,n+=s.y,++r}}return{x:Math.round(a/r),y:Math.round(n/r)}},nearest:function(t,e){var i,a,n,r=e.x,o=e.y,s=Number.POSITIVE_INFINITY;for(a=0,n=t.length;a<n;++a){var c=t[a];if(c&&c.hasValue()){var u=c.getCenterPoint(),d=l.distanceBetweenPoints(e,u);d<s&&(s=d,i=c)}}if(i){var h=i.tooltipPosition();r=h.x,o=h.y}return{x:r,y:o}}}}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.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,i){var a=this._view;if(a){for(var n=e.getAngleFromPoint(a,{x:t,y:i}),r=n.angle,o=n.distance,s=a.startAngle,l=a.endAngle;l<s;)l+=2*Math.PI;for(;r>l;)r-=2*Math.PI;for(;r<s;)r+=2*Math.PI;var c=r>=s&&r<=l,u=o>=a.innerRadius&&o<=a.outerRadius;return c&&u}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,a=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,a),t.arc(e.x,e.y,e.innerRadius,a,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()}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){var t,a,n,r,o=this,s=o._view,l=o._chart.ctx,c=s.spanGaps,u=o._children.slice(),d=i.elements.line,h=-1;for(o._loop&&u.length&&u.push(u[0]),l.save(),l.lineCap=s.borderCapStyle||d.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||d.borderDash),l.lineDashOffset=s.borderDashOffset||d.borderDashOffset,l.lineJoin=s.borderJoinStyle||d.borderJoinStyle,l.lineWidth=s.borderWidth||d.borderWidth,l.strokeStyle=s.borderColor||i.defaultColor,l.beginPath(),h=-1,t=0;t<u.length;++t)a=u[t],n=e.previousItem(u,t),r=a._view,0===t?r.skip||(l.moveTo(r.x,r.y),h=t):(n=h===-1?n:u[h],r.skip||(h!==t-1&&!c||h===-1?l.moveTo(r.x,r.y):e.canvas.lineTo(l,n._view,a._view),h=t));l.stroke(),l.restore()}})}},{}],37:[function(t,e,i){"use strict";e.exports=function(t){function e(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hitRadius,2)}function i(t){var e=this._view;return!!e&&Math.pow(t-e.y,2)<Math.pow(e.radius+e.hitRadius,2)}var a=t.helpers,n=t.defaults.global,r=n.defaultColor;n.elements.point={radius:3,pointStyle:"circle",backgroundColor:r,borderWidth:1,borderColor:r,hitRadius:1,hoverRadius:4,hoverBorderWidth:1},t.elements.Point=t.Element.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:e,inXRange:e,inYRange:i,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(e){var i=this._view,o=this._model,s=this._chart.ctx,l=i.pointStyle,c=i.radius,u=i.x,d=i.y,h=t.helpers.color,f=1.01,p=0;i.skip||(s.strokeStyle=i.borderColor||r,s.lineWidth=a.getValueOrDefault(i.borderWidth,n.elements.point.borderWidth),s.fillStyle=i.backgroundColor||r,void 0!==e&&(o.x<e.left||e.right*f<o.x||o.y<e.top||e.bottom*f<o.y)&&(o.x<e.left?p=(u-o.x)/(e.left-o.x):e.right*f<o.x?p=(o.x-u)/(o.x-e.right):o.y<e.top?p=(d-o.y)/(e.top-o.y):e.bottom*f<o.y&&(p=(o.y-d)/(o.y-e.bottom)),p=Math.round(100*p)/100,s.strokeStyle=h(s.strokeStyle).alpha(p).rgbString(),s.fillStyle=h(s.fillStyle).alpha(p).rgbString()),t.canvasHelpers.drawPoint(s,l,c,u,d))}})}},{}],38:[function(t,e,i){"use strict";e.exports=function(t){function e(t){return void 0!==t._view.width}function i(t){var i,a,n,r,o=t._view;if(e(t)){var s=o.width/2;i=o.x-s,a=o.x+s,n=Math.min(o.y,o.base),r=Math.max(o.y,o.base)}else{var l=o.height/2;i=Math.min(o.x,o.base),a=Math.max(o.x,o.base),n=o.y-l,r=o.y+l}return{left:i,top:n,right:a,bottom:r}}var a=t.defaults.global;a.elements.rectangle={backgroundColor:a.defaultColor,borderWidth:0,borderColor:a.defaultColor,borderSkipped:"bottom"},t.elements.Rectangle=t.Element.extend({draw:function(){function t(t){return m[(y+t)%4]}var e,i,a,n,r,o,s,l=this._chart.ctx,c=this._view,u=c.borderWidth;if(c.horizontal?(e=c.base,i=c.x,a=c.y-c.height/2,n=c.y+c.height/2,r=i>e?1:-1,o=1,s=c.borderSkipped||"left"):(e=c.x-c.width/2,i=c.x+c.width/2,a=c.y,n=c.base,r=1,o=n>a?1:-1,s=c.borderSkipped||"bottom"),u){var d=Math.min(Math.abs(e-i),Math.abs(a-n));u=u>d?d:u;var h=u/2,f=e+("left"!==s?h*r:0),p=i+("right"!==s?-h*r:0),g=a+("top"!==s?h*o:0),v=n+("bottom"!==s?-h*o:0);f!==p&&(a=g,n=v),g!==v&&(e=f,i=p)}l.beginPath(),l.fillStyle=c.backgroundColor,l.strokeStyle=c.borderColor,l.lineWidth=u;var m=[[e,n],[e,a],[i,a],[i,n]],b=["bottom","left","top","right"],y=b.indexOf(s,0);y===-1&&(y=0);var x=t(0);l.moveTo(x[0],x[1]);for(var k=1;k<4;k++)x=t(k),l.lineTo(x[0],x[1]);l.fill(),u&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var a=!1;if(this._view){var n=i(this);a=t>=n.left&&t<=n.right&&e>=n.top&&e<=n.bottom}return a},inLabelRange:function(t,a){var n=this;if(!n._view)return!1;var r=!1,o=i(n);return r=e(n)?t>=o.left&&t<=o.right:a>=o.top&&a<=o.bottom},inXRange:function(t){var e=i(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=i(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,i,a=this._view;return e(this)?(t=a.x,i=(a.y+a.base)/2):(t=(a.x+a.base)/2,i=a.y),{x:t,y:i}},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}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){function e(t,e){var i=l.getStyle(t,e),a=i&&i.match(/^(\d+)(\.\d+)?px$/);return a?Number(a[1]):void 0}function i(t,i){var a=t.style,n=t.getAttribute("height"),r=t.getAttribute("width");if(t._chartjs={initial:{height:n,width:r,style:{display:a.display,height:a.height,width:a.width}}},a.display=a.display||"block",null===r||""===r){var o=e(t,"width");void 0!==o&&(t.width=o)}if(null===n||""===n)if(""===t.style.height)t.height=t.width/(i.options.aspectRatio||2);else{var s=e(t,"height");void 0!==o&&(t.height=s)}return t}function a(t,e,i,a,n){return{type:t,chart:e,"native":n||null,x:void 0!==i?i:null,y:void 0!==a?a:null}}function n(t,e){var i=c[t.type]||t.type,n=l.getRelativePosition(t,e);return a(i,e,n.x,n.y,t)}function r(t){var e=document.createElement("iframe");return e.className="chartjs-hidden-iframe",e.style.cssText="display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;",e.tabIndex=-1,l.addEvent(e,"load",function(){l.addEvent(e.contentWindow||e,"resize",t),t()}),e}function o(t,e,i){var n=t._chartjs={ticking:!1},o=function(){n.ticking||(n.ticking=!0,l.requestAnimFrame.call(window,function(){if(n.resizer)return n.ticking=!1,e(a("resize",i))}))};n.resizer=r(o),t.insertBefore(n.resizer,t.firstChild)}function s(t){if(t&&t._chartjs){var e=t._chartjs.resizer;e&&(e.parentNode.removeChild(e),t._chartjs.resizer=null),delete t._chartjs}}var l=t.helpers,c={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};return{acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var a=t&&t.getContext&&t.getContext("2d");return a&&a.canvas===t?(i(t,e),a):null},releaseContext:function(t){var e=t.canvas;if(e._chartjs){var i=e._chartjs.initial;["height","width"].forEach(function(t){var a=i[t];void 0===a||null===a?e.removeAttribute(t):e.setAttribute(t,a)}),l.each(i.style||{},function(t,i){e.style[i]=t}),e.width=e.width,delete e._chartjs}},addEventListener:function(t,e,i){var a=t.canvas;if("resize"===e)return void o(a.parentNode,i,t);var r=i._chartjs||(i._chartjs={}),s=r.proxies||(r.proxies={}),c=s[t.id+"_"+e]=function(e){i(n(e,t))};l.addEvent(a,e,c)},removeEventListener:function(t,e,i){var a=t.canvas;if("resize"===e)return void s(a.parentNode,i);var n=i._chartjs||{},r=n.proxies||{},o=r[t.id+"_"+e];o&&l.removeEvent(a,e,o)}}}},{}],40:[function(t,e,i){"use strict";var a=t(39);e.exports=function(t){t.platform={acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},t.helpers.extend(t.platform,a(t))}},{39:39}],41:[function(t,e,i){"use strict";e.exports=function(t){function e(t,e,i){var a,n=t._model||{},r=n.fill;if(void 0===r&&(r=!!n.backgroundColor),r===!1||null===r)return!1;if(r===!0)return"origin";if(a=parseFloat(r,10),isFinite(a)&&Math.floor(a)===a)return"-"!==r[0]&&"+"!==r[0]||(a=e+a),!(a===e||a<0||a>=i)&&a;switch(r){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return r;default:return!1}}function i(t){var e,i=t.el._model||{},a=t.el._scale||{},n=t.fill,r=null;if(isFinite(n))return null;if("start"===n?r=void 0===i.scaleBottom?a.bottom:i.scaleBottom:"end"===n?r=void 0===i.scaleTop?a.top:i.scaleTop:void 0!==i.scaleZero?r=i.scaleZero:a.getBasePosition?r=a.getBasePosition():a.getBasePixel&&(r=a.getBasePixel()),void 0!==r&&null!==r){if(void 0!==r.x&&void 0!==r.y)return r;if("number"==typeof r&&isFinite(r))return e=a.isHorizontal(),{x:e?r:null,y:e?null:r}}return null}function a(t,e,i){var a,n=t[e],r=n.fill,o=[e];if(!i)return r;for(;r!==!1&&o.indexOf(r)===-1;){if(!isFinite(r))return r;if(a=t[r],!a)return!1;if(a.visible)return r;o.push(r),r=a.fill}return!1}function n(t){var e=t.fill,i="dataset";return e===!1?null:(isFinite(e)||(i="boundary"),u[i](t))}function r(t){return t&&!t.skip}function o(t,e,i,a,n){var r;if(a&&n){for(t.moveTo(e[0].x,e[0].y),r=1;r<a;++r)c.canvas.lineTo(t,e[r-1],e[r]);for(t.lineTo(i[n-1].x,i[n-1].y),r=n-1;r>0;--r)c.canvas.lineTo(t,i[r],i[r-1],!0)}}function s(t,e,i,a,n,s){var l,c,u,d,h,f,p,g=e.length,v=a.spanGaps,m=[],b=[],y=0,x=0;for(t.beginPath(),l=0,c=g+!!s;l<c;++l)u=l%g,d=e[u]._view,h=i(d,u,a),f=r(d),p=r(h),f&&p?(y=m.push(d),x=b.push(h)):y&&x&&(v?(f&&m.push(d),p&&b.push(h)):(o(t,m,b,y,x),y=x=0,m=[],b=[]));o(t,m,b,y,x),t.closePath(),t.fillStyle=n,t.fill()}t.defaults.global.plugins.filler={propagate:!0};var l=t.defaults,c=t.helpers,u={dataset:function(t){var e=t.fill,i=t.chart,a=i.getDatasetMeta(e),n=a&&i.isDatasetVisible(e),r=n&&a.dataset._children||[];return r.length?function(t,e){return r[e]._view||null}:null},boundary:function(t){var e=t.boundary,i=e?e.x:null,a=e?e.y:null;return function(t){return{x:null===i?t.x:i,y:null===a?t.y:a}}}};return{id:"filler",afterDatasetsUpdate:function(r,o){var s,l,c,u,d=(r.data.datasets||[]).length,h=o.propagate,f=[];for(l=0;l<d;++l)s=r.getDatasetMeta(l),c=s.dataset,u=null,c&&c._model&&c instanceof t.elements.Line&&(u={visible:r.isDatasetVisible(l),fill:e(c,l,d),chart:r,el:c}),s.$filler=u,f.push(u);for(l=0;l<d;++l)u=f[l],u&&(u.fill=a(f,l,h),u.boundary=i(u),u.mapper=n(u))},beforeDatasetDraw:function(t,e){var i=e.meta.$filler;if(i){var a=i.el,n=a._view,r=a._children||[],o=i.mapper,c=n.backgroundColor||l.global.defaultColor;o&&c&&r.length&&s(t.ctx,r,o,n,c,a._loop)}}}}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function i(e,i){var a=new t.Legend({ctx:e.ctx,options:i,chart:e});n.configure(e,a,i),n.addBox(e,a),e.legend=a}var a=t.helpers,n=t.layoutService,r=a.noop;return t.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var i=e.datasetIndex,a=this.chart,n=a.getDatasetMeta(i);n.hidden=null===n.hidden?!a.data.datasets[i].hidden:null,a.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data;return a.isArray(e.datasets)?e.datasets.map(function(e,i){return{text:e.label,fillStyle:a.isArray(e.backgroundColor)?e.backgroundColor[0]:e.backgroundColor,hidden:!t.isDatasetVisible(i),lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:e.borderWidth,strokeStyle:e.borderColor,pointStyle:e.pointStyle,datasetIndex:i}},this):[]}}},t.Legend=t.Element.extend({initialize:function(t){a.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:r,update:function(t,e,i){var a=this;return a.beforeUpdate(),a.maxWidth=t,a.maxHeight=e,a.margins=i,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeBuildLabels(),a.buildLabels(),a.afterBuildLabels(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:r,beforeSetDimensions:r,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:r,beforeBuildLabels:r,buildLabels:function(){var t=this,e=t.options.labels,i=e.generateLabels.call(t,t.chart);e.filter&&(i=i.filter(function(i){return e.filter(i,t.chart.data)})),t.options.reverse&&i.reverse(),t.legendItems=i},afterBuildLabels:r,beforeFit:r,fit:function(){var i=this,n=i.options,r=n.labels,o=n.display,s=i.ctx,l=t.defaults.global,c=a.getValueOrDefault,u=c(r.fontSize,l.defaultFontSize),d=c(r.fontStyle,l.defaultFontStyle),h=c(r.fontFamily,l.defaultFontFamily),f=a.fontString(u,d,h),p=i.legendHitBoxes=[],g=i.minSize,v=i.isHorizontal();if(v?(g.width=i.maxWidth,g.height=o?10:0):(g.width=o?10:0,g.height=i.maxHeight),o)if(s.font=f,v){var m=i.lineWidths=[0],b=i.legendItems.length?u+r.padding:0;s.textAlign="left",s.textBaseline="top",a.each(i.legendItems,function(t,a){var n=e(r,u),o=n+u/2+s.measureText(t.text).width;m[m.length-1]+o+r.padding>=i.width&&(b+=u+r.padding,m[m.length]=i.left),p[a]={left:0,top:0,width:o,height:u},m[m.length-1]+=o+r.padding}),g.height+=b}else{var y=r.padding,x=i.columnWidths=[],k=r.padding,w=0,M=0,_=u+y;a.each(i.legendItems,function(t,i){var a=e(r,u),n=a+u/2+s.measureText(t.text).width;M+_>g.height&&(k+=w+r.padding,x.push(w),w=0,M=0),w=Math.max(w,n),M+=_,p[i]={left:0,top:0,width:n,height:u}}),k+=w,x.push(w),g.width+=k}i.width=g.width,i.height=g.height},afterFit:r,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var i=this,n=i.options,r=n.labels,o=t.defaults.global,s=o.elements.line,l=i.width,c=i.lineWidths;if(n.display){var u,d=i.ctx,h=a.getValueOrDefault,f=h(r.fontColor,o.defaultFontColor),p=h(r.fontSize,o.defaultFontSize),g=h(r.fontStyle,o.defaultFontStyle),v=h(r.fontFamily,o.defaultFontFamily),m=a.fontString(p,g,v);d.textAlign="left",d.textBaseline="top",d.lineWidth=.5,d.strokeStyle=f,d.fillStyle=f,d.font=m;var b=e(r,p),y=i.legendHitBoxes,x=function(e,i,a){if(!(isNaN(b)||b<=0)){d.save(),d.fillStyle=h(a.fillStyle,o.defaultColor),d.lineCap=h(a.lineCap,s.borderCapStyle),d.lineDashOffset=h(a.lineDashOffset,s.borderDashOffset),d.lineJoin=h(a.lineJoin,s.borderJoinStyle),d.lineWidth=h(a.lineWidth,s.borderWidth),d.strokeStyle=h(a.strokeStyle,o.defaultColor);var r=0===h(a.lineWidth,s.borderWidth);if(d.setLineDash&&d.setLineDash(h(a.lineDash,s.borderDash)),n.labels&&n.labels.usePointStyle){var l=p*Math.SQRT2/2,c=l/Math.SQRT2,u=e+c,f=i+c;t.canvasHelpers.drawPoint(d,a.pointStyle,l,u,f)}else r||d.strokeRect(e,i,b,p),d.fillRect(e,i,b,p);d.restore()}},k=function(t,e,i,a){d.fillText(i.text,b+p/2+t,e),i.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(b+p/2+t,e+p/2),d.lineTo(b+p/2+t+a,e+p/2),d.stroke())},w=i.isHorizontal();u=w?{x:i.left+(l-c[0])/2,y:i.top+r.padding,line:0}:{x:i.left+r.padding,y:i.top+r.padding,line:0};var M=p+r.padding;a.each(i.legendItems,function(t,e){var a=d.measureText(t.text).width,n=b+p/2+a,o=u.x,s=u.y;w?o+n>=l&&(s=u.y+=M,u.line++,o=u.x=i.left+(l-c[u.line])/2):s+M>i.bottom&&(o=u.x=o+i.columnWidths[u.line]+r.padding,s=u.y=i.top+r.padding,u.line++),x(o,s,t),y[e].left=o,y[e].top=s,k(o,s,t,a),w?u.x+=n+r.padding:u.y+=M})}},handleEvent:function(t){var e=this,i=e.options,a="mouseup"===t.type?"click":t.type,n=!1;if("mousemove"===a){if(!i.onHover)return}else{if("click"!==a)return;if(!i.onClick)return}var r=t.x,o=t.y;if(r>=e.left&&r<=e.right&&o>=e.top&&o<=e.bottom)for(var s=e.legendHitBoxes,l=0;l<s.length;++l){var c=s[l];if(r>=c.left&&r<=c.left+c.width&&o>=c.top&&o<=c.top+c.height){if("click"===a){i.onClick.call(e,t["native"],e.legendItems[l]),n=!0;break}if("mousemove"===a){i.onHover.call(e,t["native"],e.legendItems[l]),n=!0;break}}}return n}}),{id:"legend",beforeInit:function(t){var e=t.options.legend;e&&i(t,e)},beforeUpdate:function(e){var r=e.options.legend,o=e.legend;r?(r=a.configMerge(t.defaults.global.legend,r),o?(n.configure(e,o,r),o.options=r):i(e,r)):o&&(n.removeBox(e,o),delete e.legend)},afterEvent:function(t,e){var i=t.legend;i&&i.handleEvent(e)}}}},{}], 43:[function(t,e,i){"use strict";e.exports=function(t){function e(e,i){var n=new t.Title({ctx:e.ctx,options:i,chart:e});a.configure(e,n,i),a.addBox(e,n),e.titleBlock=n}var i=t.helpers,a=t.layoutService,n=i.noop;return t.defaults.global.title={display:!1,position:"top",fullWidth:!0,weight:2e3,fontStyle:"bold",padding:10,text:""},t.Title=t.Element.extend({initialize:function(t){var e=this;i.extend(e,t),e.legendHitBoxes=[]},beforeUpdate:n,update:function(t,e,i){var a=this;return a.beforeUpdate(),a.maxWidth=t,a.maxHeight=e,a.margins=i,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeBuildLabels(),a.buildLabels(),a.afterBuildLabels(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:n,beforeSetDimensions:n,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:n,beforeBuildLabels:n,buildLabels:n,afterBuildLabels:n,beforeFit:n,fit:function(){var e=this,a=i.getValueOrDefault,n=e.options,r=t.defaults.global,o=n.display,s=a(n.fontSize,r.defaultFontSize),l=e.minSize;e.isHorizontal()?(l.width=e.maxWidth,l.height=o?s+2*n.padding:0):(l.width=o?s+2*n.padding:0,l.height=e.maxHeight),e.width=l.width,e.height=l.height},afterFit:n,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var e=this,a=e.ctx,n=i.getValueOrDefault,r=e.options,o=t.defaults.global;if(r.display){var s,l,c,u=n(r.fontSize,o.defaultFontSize),d=n(r.fontStyle,o.defaultFontStyle),h=n(r.fontFamily,o.defaultFontFamily),f=i.fontString(u,d,h),p=0,g=e.top,v=e.left,m=e.bottom,b=e.right;a.fillStyle=n(r.fontColor,o.defaultFontColor),a.font=f,e.isHorizontal()?(s=v+(b-v)/2,l=g+(m-g)/2,c=b-v):(s="left"===r.position?v+u/2:b-u/2,l=g+(m-g)/2,c=m-g,p=Math.PI*("left"===r.position?-.5:.5)),a.save(),a.translate(s,l),a.rotate(p),a.textAlign="center",a.textBaseline="middle",a.fillText(r.text,0,0,c),a.restore()}}}),{id:"title",beforeInit:function(t){var i=t.options.title;i&&e(t,i)},beforeUpdate:function(n){var r=n.options.title,o=n.titleBlock;r?(r=i.configMerge(t.defaults.global.title,r),o?(a.configure(n,o,r),o.options=r):e(n,r)):o&&(t.layoutService.removeBox(n,o),delete n.titleBlock)}}}},{}],44:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},a=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var a;void 0!==t.options.ticks.min&&(a=e.indexOf(i,t.options.ticks.min),t.minIndex=a!==-1?a:t.minIndex),void 0!==t.options.ticks.max&&(a=e.indexOf(i,t.options.ticks.max),t.maxIndex=a!==-1?a:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.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,a=i.chart.data,n=i.isHorizontal();return a.yLabels&&!n?i.getRightValue(a.datasets[e].data[t]):i.ticks[t-i.minIndex]},getPixelForValue:function(t,e,i,a){var n,r=this,o=Math.max(r.maxIndex+1-r.minIndex-(r.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&null!==t&&(n=r.isHorizontal()?t.x:t.y),void 0!==n||void 0!==t&&isNaN(e)){var s=r.getLabels();t=n||t;var l=s.indexOf(t);e=l!==-1?l:e}if(r.isHorizontal()){var c=r.width/o,u=c*(e-r.minIndex);return(r.options.gridLines.offsetGridLines&&a||r.maxIndex===r.minIndex&&a)&&(u+=c/2),r.left+Math.round(u)}var d=r.height/o,h=d*(e-r.minIndex);return r.options.gridLines.offsetGridLines&&a&&(h+=d/2),r.top+Math.round(h)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e,i=this,a=Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),n=i.isHorizontal(),r=(n?i.width:i.height)/a;return t-=n?i.left:i.top,i.options.gridLines.offsetGridLines&&(t-=r/2),e=t<=0?0:Math.round(t/r)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",a,i)}},{}],45:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:t.Ticks.formatters.linear}},a=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,a=i.options,n=i.chart,r=n.data,o=r.datasets,s=i.isHorizontal(),l=0,c=1;i.min=null,i.max=null;var u=a.stacked;if(void 0===u&&e.each(o,function(e,i){if(!u){var a=n.getDatasetMeta(i);n.isDatasetVisible(i)&&t(a)&&void 0!==a.stack&&(u=!0)}}),a.stacked||u){var d={};e.each(o,function(r,o){var s=n.getDatasetMeta(o),l=[s.type,void 0===a.stacked&&void 0===s.stack?o:"",s.stack].join(".");void 0===d[l]&&(d[l]={positiveValues:[],negativeValues:[]});var c=d[l].positiveValues,u=d[l].negativeValues;n.isDatasetVisible(o)&&t(s)&&e.each(r.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||s.data[e].hidden||(c[e]=c[e]||0,u[e]=u[e]||0,a.relativePoints?c[e]=100:n<0?u[e]+=n:c[e]+=n)})}),e.each(d,function(t){var a=t.positiveValues.concat(t.negativeValues),n=e.min(a),r=e.max(a);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?r:Math.max(i.max,r)})}else e.each(o,function(a,r){var o=n.getDatasetMeta(r);n.isDatasetVisible(r)&&t(o)&&e.each(a.data,function(t,e){var a=+i.getRightValue(t);isNaN(a)||o.data[e].hidden||(null===i.min?i.min=a:a<i.min&&(i.min=a),null===i.max?i.max=a:a>i.max&&(i.max=a))})});i.min=isFinite(i.min)?i.min:l,i.max=isFinite(i.max)?i.max:c,this.handleTickRangeOptions()},getTickLimit:function(){var i,a=this,n=a.options.ticks;if(a.isHorizontal())i=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(a.width/50));else{var r=e.getValueOrDefault(n.fontSize,t.defaults.global.defaultFontSize);i=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(a.height/(2*r)))}return i},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,a=i.start,n=+i.getRightValue(t),r=i.end-a;return i.isHorizontal()?(e=i.left+i.width/r*(n-a),Math.round(e)):(e=i.bottom-i.height/r*(n-a),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),a=i?e.width:e.height,n=(i?t-e.left:e.bottom-t)/a;return e.start+(e.end-e.start)*n},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",a,i)}},{}],46:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,a=i.ticks;if(a.beginAtZero){var n=e.sign(t.min),r=e.sign(t.max);n<0&&r<0?t.max=0:n>0&&r>0&&(t.min=0)}void 0!==a.min?t.min=a.min:void 0!==a.suggestedMin&&(null===t.min?t.min=a.suggestedMin:t.min=Math.min(t.min,a.suggestedMin)),void 0!==a.max?t.max=a.max:void 0!==a.suggestedMax&&(null===t.max?t.max=a.suggestedMax:t.max=Math.max(t.max,a.suggestedMax)),t.min===t.max&&(t.max++,a.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var i=this,a=i.options,n=a.ticks,r=i.getTickLimit();r=Math.max(2,r);var o={maxTicks:r,min:n.min,max:n.max,stepSize:e.getValueOrDefault(n.fixedStepSize,n.stepSize)},s=i.ticks=t.Ticks.generators.linear(o,i);i.handleDirectionalChanges(),i.max=e.max(s),i.min=e.min(s),n.reverse?(s.reverse(),i.start=i.max,i.end=i.min):(i.start=i.min,i.end=i.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],47:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:t.Ticks.formatters.logarithmic}},a=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,a=i.options,n=a.ticks,r=i.chart,o=r.data,s=o.datasets,l=e.getValueOrDefault,c=i.isHorizontal();i.min=null,i.max=null,i.minNotZero=null;var u=a.stacked;if(void 0===u&&e.each(s,function(e,i){if(!u){var a=r.getDatasetMeta(i);r.isDatasetVisible(i)&&t(a)&&void 0!==a.stack&&(u=!0)}}),a.stacked||u){var d={};e.each(s,function(n,o){var s=r.getDatasetMeta(o),l=[s.type,void 0===a.stacked&&void 0===s.stack?o:"",s.stack].join(".");r.isDatasetVisible(o)&&t(s)&&(void 0===d[l]&&(d[l]=[]),e.each(n.data,function(t,e){var n=d[l],r=+i.getRightValue(t);isNaN(r)||s.data[e].hidden||(n[e]=n[e]||0,a.relativePoints?n[e]=100:n[e]+=r)}))}),e.each(d,function(t){var a=e.min(t),n=e.max(t);i.min=null===i.min?a:Math.min(i.min,a),i.max=null===i.max?n:Math.max(i.max,n)})}else e.each(s,function(a,n){var o=r.getDatasetMeta(n);r.isDatasetVisible(n)&&t(o)&&e.each(a.data,function(t,e){var a=+i.getRightValue(t);isNaN(a)||o.data[e].hidden||(null===i.min?i.min=a:a<i.min&&(i.min=a),null===i.max?i.max=a:a>i.max&&(i.max=a),0!==a&&(null===i.minNotZero||a<i.minNotZero)&&(i.minNotZero=a))})});i.min=l(n.min,i.min),i.max=l(n.max,i.max),i.min===i.max&&(0!==i.min&&null!==i.min?(i.min=Math.pow(10,Math.floor(e.log10(i.min))-1),i.max=Math.pow(10,Math.floor(e.log10(i.max))+1)):(i.min=1,i.max=10))},buildTicks:function(){var i=this,a=i.options,n=a.ticks,r={min:n.min,max:n.max},o=i.ticks=t.Ticks.generators.logarithmic(r,i);i.isHorizontal()||o.reverse(),i.max=e.max(o),i.min=e.min(o),n.reverse?(o.reverse(),i.start=i.max,i.end=i.min):(i.start=i.min,i.end=i.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 i,a,n,r=this,o=r.start,s=+r.getRightValue(t),l=r.options,c=l.ticks;return r.isHorizontal()?(n=e.log10(r.end)-e.log10(o),0===s?a=r.left:(i=r.width,a=r.left+i/n*(e.log10(s)-e.log10(o)))):(i=r.height,0!==o||c.reverse?0===r.end&&c.reverse?(n=e.log10(r.start)-e.log10(r.minNotZero),a=s===r.end?r.top:s===r.minNotZero?r.top+.02*i:r.top+.02*i+.98*i/n*(e.log10(s)-e.log10(r.minNotZero))):0===s?a=c.reverse?r.top:r.bottom:(n=e.log10(r.end)-e.log10(o),i=r.height,a=r.bottom-i/n*(e.log10(s)-e.log10(o))):(n=e.log10(r.end)-e.log10(r.minNotZero),a=s===o?r.bottom:s===r.minNotZero?r.bottom-.02*i:r.bottom-.02*i-.98*i/n*(e.log10(s)-e.log10(r.minNotZero)))),a},getValueForPixel:function(t){var i,a,n=this,r=e.log10(n.end)-e.log10(n.start);return n.isHorizontal()?(a=n.width,i=n.start*Math.pow(10,(t-n.left)*r/a)):(a=n.height,i=Math.pow(10,(n.bottom-t)*r/a)/n.start),i}});t.scaleService.registerScaleType("logarithmic",a,i)}},{}],48:[function(t,e,i){"use strict";e.exports=function(t){function e(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function i(t){var e=t.options.pointLabels,i=f.getValueOrDefault(e.fontSize,p.defaultFontSize),a=f.getValueOrDefault(e.fontStyle,p.defaultFontStyle),n=f.getValueOrDefault(e.fontFamily,p.defaultFontFamily),r=f.fontString(i,a,n);return{size:i,style:a,family:n,font:r}}function a(t,e,i){return f.isArray(i)?{w:f.longestText(t,t.font,i),h:i.length*e+1.5*(i.length-1)*e}:{w:t.measureText(i).width,h:e}}function n(t,e,i,a,n){return t===a||t===n?{start:e-i/2,end:e+i/2}:t<a||t>n?{start:e-i-5,end:e}:{start:e,end:e+i+5}}function r(t){var r,o,s,l=i(t),c=Math.min(t.height/2,t.width/2),u={r:t.width,l:0,t:t.height,b:0},d={};t.ctx.font=l.font,t._pointLabelSizes=[];var h=e(t);for(r=0;r<h;r++){s=t.getPointPosition(r,c),o=a(t.ctx,l.size,t.pointLabels[r]||""),t._pointLabelSizes[r]=o;var p=t.getIndexAngle(r),g=f.toDegrees(p)%360,v=n(g,s.x,o.w,0,180),m=n(g,s.y,o.h,90,270);v.start<u.l&&(u.l=v.start,d.l=p),v.end>u.r&&(u.r=v.end,d.r=p),m.start<u.t&&(u.t=m.start,d.t=p),m.end>u.b&&(u.b=m.end,d.b=p)}t.setReductions(c,u,d)}function o(t){var e=Math.min(t.height/2,t.width/2);t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)}function s(t){return 0===t||180===t?"center":t<180?"left":"right"}function l(t,e,i,a){if(f.isArray(e))for(var n=i.y,r=1.5*a,o=0;o<e.length;++o)t.fillText(e[o],i.x,n),n+=r;else t.fillText(e,i.x,i.y)}function c(t,e,i){90===t||270===t?i.y-=e.h/2:(t>270||t<90)&&(i.y-=e.h)}function u(t){var a=t.ctx,n=f.getValueOrDefault,r=t.options,o=r.angleLines,u=r.pointLabels;a.lineWidth=o.lineWidth,a.strokeStyle=o.color;var d=t.getDistanceFromCenterForValue(r.reverse?t.min:t.max),h=i(t);a.textBaseline="top";for(var g=e(t)-1;g>=0;g--){if(o.display){var v=t.getPointPosition(g,d);a.beginPath(),a.moveTo(t.xCenter,t.yCenter),a.lineTo(v.x,v.y),a.stroke(),a.closePath()}if(u.display){var m=t.getPointPosition(g,d+5),b=n(u.fontColor,p.defaultFontColor);a.font=h.font,a.fillStyle=b;var y=t.getIndexAngle(g),x=f.toDegrees(y);a.textAlign=s(x),c(x,t._pointLabelSizes[g],m),l(a,t.pointLabels[g]||"",m,h.size)}}}function d(t,i,a,n){var r=t.ctx;if(r.strokeStyle=f.getValueAtIndexOrDefault(i.color,n-1),r.lineWidth=f.getValueAtIndexOrDefault(i.lineWidth,n-1),t.options.gridLines.circular)r.beginPath(),r.arc(t.xCenter,t.yCenter,a,0,2*Math.PI),r.closePath(),r.stroke();else{var o=e(t);if(0===o)return;r.beginPath();var s=t.getPointPosition(0,a);r.moveTo(s.x,s.y);for(var l=1;l<o;l++)s=t.getPointPosition(l,a),r.lineTo(s.x,s.y);r.closePath(),r.stroke()}}function h(t){return f.isNumber(t)?t:0}var f=t.helpers,p=t.defaults.global,g={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:t.Ticks.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}},v=t.LinearScaleBase.extend({setDimensions:function(){var t=this,e=t.options,i=e.ticks;t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2);var a=f.min([t.height,t.width]),n=f.getValueOrDefault(i.fontSize,p.defaultFontSize);t.drawingArea=e.display?a/2-(n/2+i.backdropPaddingY):a/2},determineDataLimits:function(){var t=this,e=t.chart,i=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;f.each(e.data.datasets,function(n,r){if(e.isDatasetVisible(r)){var o=e.getDatasetMeta(r);f.each(n.data,function(e,n){var r=+t.getRightValue(e);isNaN(r)||o.data[n].hidden||(i=Math.min(r,i),a=Math.max(r,a))})}}),t.min=i===Number.POSITIVE_INFINITY?0:i,t.max=a===Number.NEGATIVE_INFINITY?0:a,t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=f.getValueOrDefault(t.fontSize,p.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*e)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){this.options.pointLabels.display?r(this):o(this)},setReductions:function(t,e,i){var a=this,n=e.l/Math.sin(i.l),r=Math.max(e.r-a.width,0)/Math.sin(i.r),o=-e.t/Math.cos(i.t),s=-Math.max(e.b-a.height,0)/Math.cos(i.b);n=h(n),r=h(r),o=h(o),s=h(s),a.drawingArea=Math.min(Math.round(t-(n+r)/2),Math.round(t-(o+s)/2)),a.setCenterPoint(n,r,o,s)},setCenterPoint:function(t,e,i,a){var n=this,r=n.width-e-n.drawingArea,o=t+n.drawingArea,s=i+n.drawingArea,l=n.height-a-n.drawingArea;n.xCenter=Math.round((o+r)/2+n.left),n.yCenter=Math.round((s+l)/2+n.top)},getIndexAngle:function(t){var i=2*Math.PI/e(this),a=this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0,n=a*Math.PI*2/360;return t*i+n},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var i=e.drawingArea/(e.max-e.min);return e.options.reverse?(e.max-t)*i:(t-e.min)*i},getPointPosition:function(t,e){var i=this,a=i.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(a)*e)+i.xCenter,y:Math.round(Math.sin(a)*e)+i.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this,e=t.min,i=t.max;return t.getPointPositionForValue(0,t.beginAtZero?0:e<0&&i<0?i:e>0&&i>0?e:0)},draw:function(){var t=this,e=t.options,i=e.gridLines,a=e.ticks,n=f.getValueOrDefault;if(e.display){var r=t.ctx,o=n(a.fontSize,p.defaultFontSize),s=n(a.fontStyle,p.defaultFontStyle),l=n(a.fontFamily,p.defaultFontFamily),c=f.fontString(o,s,l);f.each(t.ticks,function(s,l){if(l>0||e.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[l]),h=t.yCenter-u;if(i.display&&0!==l&&d(t,i,u,l),a.display){var f=n(a.fontColor,p.defaultFontColor);if(r.font=c,a.showLabelBackdrop){var g=r.measureText(s).width;r.fillStyle=a.backdropColor,r.fillRect(t.xCenter-g/2-a.backdropPaddingX,h-o/2-a.backdropPaddingY,g+2*a.backdropPaddingX,o+2*a.backdropPaddingY)}r.textAlign="center",r.textBaseline="middle",r.fillStyle=f,r.fillText(s,t.xCenter,h)}}}),(e.angleLines.display||e.pointLabels.display)&&u(t)}}});t.scaleService.registerScaleType("radialLinear",v,g)}},{}],49:[function(t,e,i){"use strict";var a=t(1);a="function"==typeof a?a:window.moment,e.exports=function(t){function e(t,e){var i=t.options.time;if("string"==typeof i.parser)return a(e,i.parser);if("function"==typeof i.parser)return i.parser(e);if("function"==typeof e.getMonth||"number"==typeof e)return a(e);if(e.isValid&&e.isValid())return e;var n=i.format;return"string"!=typeof n&&n.call?(console.warn("options.time.format is deprecated and replaced by options.time.parser."),n(e)):a(e,n)}function i(t,e,i,a){for(var n,r=Object.keys(s),o=r.length,l=r.indexOf(t);l<o;l++){n=r[l];var c=s[n],u=c.steps&&c.steps[c.steps.length-1]||c.maxStep;if(void 0===u||Math.ceil((i-e)/(u*c.size))<=a)break}return n}function n(t,e,i,a){var n=s[i],r=n.size,o=Math.ceil((e-t)/r),l=1,c=e-t;if(n.steps)for(var u=n.steps.length,d=0;d<u&&o>a;d++)l=n.steps[d],o=Math.ceil(c/(r*l));else for(;o>a&&a>0;)++l,o=Math.ceil(c/(r*l));return l}function r(t,e,i){var n=[];if(t.maxTicks){var r=t.stepSize;n.push(void 0!==t.min?t.min:i.min);for(var o=a(i.min);o.add(r,t.unit).valueOf()<i.max;)n.push(o.valueOf());var s=t.max||i.max;n[n.length-1]!==s&&n.push(s)}return n}var o=t.helpers,s={millisecond:{size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{size:1e3,steps:[1,2,5,10,30]},minute:{size:6e4,steps:[1,2,5,10,30]},hour:{size:36e5,steps:[1,2,3,6,12]},day:{size:864e5,steps:[1,2,5]},week:{size:6048e5,maxStep:4},month:{size:2628e6,maxStep:3},quarter:{size:7884e6,maxStep:4},year:{size:3154e7,maxStep:!1}},l={position:"bottom",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:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}};t.Ticks.generators.time=function(t,e){var i,n,o=t.isoWeekday;return"week"===t.unit&&o!==!1?(i=a(e.min).startOf("isoWeek").isoWeekday(o).valueOf(),n=a(e.max).startOf("isoWeek").isoWeekday(o),e.max-n>0&&n.add(1,"week"),n=n.valueOf()):(i=a(e.min).startOf(t.unit).valueOf(),n=a(e.max).startOf(t.unit),e.max-n>0&&n.add(1,t.unit),n=n.valueOf()),r(t,e,{min:i,max:n})};var c=t.Scale.extend({initialize:function(){if(!a)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");t.Scale.prototype.initialize.call(this)},determineDataLimits:function(){var t,i=this,a=i.options.time,n=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER,s=i.chart.data,l={labels:[],datasets:[]};o.each(s.labels,function(o,s){var c=e(i,o);c.isValid()&&(a.round&&c.startOf(a.round),t=c.valueOf(),n=Math.min(t,n),r=Math.max(t,r),l.labels[s]=t)}),o.each(s.datasets,function(s,c){var u=[];"object"==typeof s.data[0]&&null!==s.data[0]&&i.chart.isDatasetVisible(c)?o.each(s.data,function(o,s){var l=e(i,i.getRightValue(o));l.isValid()&&(a.round&&l.startOf(a.round),t=l.valueOf(),n=Math.min(t,n),r=Math.max(t,r),u[s]=t)}):u=l.labels.slice(),l.datasets[c]=u}),i.dataMin=n,i.dataMax=r,i._parsedData=l},buildTicks:function(){var a,r,s=this,l=s.options.time,c=s.dataMin,u=s.dataMax;if(l.min){var d=e(s,l.min);l.round&&d.round(l.round),a=d.valueOf()}l.max&&(r=e(s,l.max).valueOf());var h=s.getLabelCapacity(a||c),f=l.unit||i(l.minUnit,a||c,r||u,h);s.displayFormat=l.displayFormats[f];var p=l.stepSize||n(a||c,r||u,f,h);s.ticks=t.Ticks.generators.time({maxTicks:h,min:a,max:r,stepSize:p,unit:f,isoWeekday:l.isoWeekday},{min:c,max:u}),s.max=o.max(s.ticks),s.min=o.min(s.ticks)},getLabelForIndex:function(t,i){var a=this,n=a.chart.data.labels&&t<a.chart.data.labels.length?a.chart.data.labels[t]:"",r=a.chart.data.datasets[i].data[t];return null!==r&&"object"==typeof r&&(n=a.getRightValue(r)),a.options.time.tooltipFormat&&(n=e(a,n).format(a.options.time.tooltipFormat)),n},tickFormatFunction:function(t,e,i){var a=t.format(this.displayFormat),n=this.options.ticks,r=o.getValueOrDefault(n.callback,n.userCallback);return r?r(a,e,i):a},convertTicksToLabels:function(){var t=this;t.ticksAsTimestamps=t.ticks,t.ticks=t.ticks.map(function(t){return a(t)}).map(t.tickFormatFunction,t)},getPixelForOffset:function(t){var e=this,i=e.max-e.min,a=i?(t-e.min)/i:0;if(e.isHorizontal()){var n=e.width*a;return e.left+Math.round(n)}var r=e.height*a;return e.top+Math.round(r)},getPixelForValue:function(t,i,a){var n=this,r=null;if(void 0!==i&&void 0!==a&&(r=n._parsedData.datasets[a][i]),null===r&&(t&&t.isValid||(t=e(n,n.getRightValue(t))),t&&t.isValid&&t.isValid()&&(r=t.valueOf())),null!==r)return n.getPixelForOffset(r)},getPixelForTick:function(t){return this.getPixelForOffset(this.ticksAsTimestamps[t])},getValueForPixel:function(t){var e=this,i=e.isHorizontal()?e.width:e.height,n=(t-(e.isHorizontal()?e.left:e.top))/i;return a(e.min+n*(e.max-e.min))},getLabelWidth:function(e){var i=this,a=i.options.ticks,n=i.ctx.measureText(e).width,r=Math.cos(o.toRadians(a.maxRotation)),s=Math.sin(o.toRadians(a.maxRotation)),l=o.getValueOrDefault(a.fontSize,t.defaults.global.defaultFontSize);return n*r+l*s},getLabelCapacity:function(t){var e=this;e.displayFormat=e.options.time.displayFormats.millisecond;var i=e.tickFormatFunction(a(t),0,[]),n=e.getLabelWidth(i),r=e.isHorizontal()?e.width:e.height,o=r/n;return o}});t.scaleService.registerScaleType("time",c,l)}},{1:1}]},{},[7])(7)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,i){var a;a=function(){function t(){var t,e,i,a,n,r,o,s;for(console.log("initiliazed a ScrollHandler!"),o=["h1","h2","h3","h4","h5","h6"],i=0,n=o.length;i<n;i++)for(e=o[i],s=$(e),a=0,r=s.length;a<r;a++)t=s[a],console.log(e,$(t).attr("id"),$(t).offset().top);$("window").scroll(console.log("scrolling!")),this.handle()}return t.prototype.handle=function(){return this.currentScroll=$("body").scrollTop(),console.log(this.currentScroll)},t}(),e.exports=a},{}],3:[function(t,e,i){var a=document.getElementById("engagementchart");if(null!=a){new Chart(a,{type:"doughnut",data:{labels:["Non Bio Savvy","Bio Savvy"],datasets:[{data:[42,58],backgroundColor:["#FF4C49","#39BAC1"],borderColor:["#fff","#fff"],borderWidth:2}]},options:{cutoutPercentage:70}})}else console.log("No Chart")},{}],4:[function(t,e,i){},{}],5:[function(t,e,i){ScrollHandler=t("./ScrollHandler"),$(document).ready(function(){$("body").scrollspy({target:"#tableofcontents"})})},{"./ScrollHandler":2}],6:[function(t,e,i){function a(t){var e=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;t=t.replace(e,function(t,e,i,a){return e+e+i+i+a+a});var i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return i?{r:parseInt(i[1],16),g:parseInt(i[2],16),b:parseInt(i[3],16)}:null}function n(t,e,i){return Math.min(Math.max(t,e),i)}function r(t,e){return e.indexOf(t)>-1}var o=function(t,e){var i=document.querySelector("#"+t+" > .particles-js-canvas-el");this.pJS={canvas:{el:i,w:i.offsetWidth,h:i.offsetHeight},particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:"#fff"},shape:{type:"circle",stroke:{width:0,color:"#ff0000"},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:"#fff",opacity:1,width:1},move:{enable:!0,speed:2,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}},array:[]},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}},mouse:{}},retina_detect:!1,fn:{interact:{},modes:{},vendors:{}},tmp:{}};var o=this.pJS;e&&Object.deepExtend(o,e),o.tmp.obj={size_value:o.particles.size.value,size_anim_speed:o.particles.size.anim.speed,move_speed:o.particles.move.speed,line_linked_distance:o.particles.line_linked.distance,line_linked_width:o.particles.line_linked.width,mode_grab_distance:o.interactivity.modes.grab.distance,mode_bubble_distance:o.interactivity.modes.bubble.distance,mode_bubble_size:o.interactivity.modes.bubble.size,mode_repulse_distance:o.interactivity.modes.repulse.distance},o.fn.retinaInit=function(){o.retina_detect&&window.devicePixelRatio>1?(o.canvas.pxratio=window.devicePixelRatio,o.tmp.retina=!0):(o.canvas.pxratio=1,o.tmp.retina=!1),o.canvas.w=o.canvas.el.offsetWidth*o.canvas.pxratio,o.canvas.h=o.canvas.el.offsetHeight*o.canvas.pxratio,o.particles.size.value=o.tmp.obj.size_value*o.canvas.pxratio,o.particles.size.anim.speed=o.tmp.obj.size_anim_speed*o.canvas.pxratio,o.particles.move.speed=o.tmp.obj.move_speed*o.canvas.pxratio,o.particles.line_linked.distance=o.tmp.obj.line_linked_distance*o.canvas.pxratio,o.interactivity.modes.grab.distance=o.tmp.obj.mode_grab_distance*o.canvas.pxratio,o.interactivity.modes.bubble.distance=o.tmp.obj.mode_bubble_distance*o.canvas.pxratio,o.particles.line_linked.width=o.tmp.obj.line_linked_width*o.canvas.pxratio,o.interactivity.modes.bubble.size=o.tmp.obj.mode_bubble_size*o.canvas.pxratio,o.interactivity.modes.repulse.distance=o.tmp.obj.mode_repulse_distance*o.canvas.pxratio},o.fn.canvasInit=function(){o.canvas.ctx=o.canvas.el.getContext("2d")},o.fn.canvasSize=function(){o.canvas.el.width=o.canvas.w,o.canvas.el.height=o.canvas.h,o&&o.interactivity.events.resize&&window.addEventListener("resize",function(){o.canvas.w=o.canvas.el.offsetWidth,o.canvas.h=o.canvas.el.offsetHeight,o.tmp.retina&&(o.canvas.w*=o.canvas.pxratio,o.canvas.h*=o.canvas.pxratio),o.canvas.el.width=o.canvas.w,o.canvas.el.height=o.canvas.h,o.particles.move.enable||(o.fn.particlesEmpty(),o.fn.particlesCreate(),o.fn.particlesDraw(),o.fn.vendors.densityAutoParticles()),o.fn.vendors.densityAutoParticles()})},o.fn.canvasPaint=function(){o.canvas.ctx.fillRect(0,0,o.canvas.w,o.canvas.h)},o.fn.canvasClear=function(){o.canvas.ctx.clearRect(0,0,o.canvas.w,o.canvas.h)},o.fn.particle=function(t,e,i){if(this.radius=(o.particles.size.random?Math.random():1)*o.particles.size.value,o.particles.size.anim.enable&&(this.size_status=!1,this.vs=o.particles.size.anim.speed/100,o.particles.size.anim.sync||(this.vs=this.vs*Math.random())),this.x=i?i.x:Math.random()*o.canvas.w,this.y=i?i.y:Math.random()*o.canvas.h,this.x>o.canvas.w-2*this.radius?this.x=this.x-this.radius:this.x<2*this.radius&&(this.x=this.x+this.radius),this.y>o.canvas.h-2*this.radius?this.y=this.y-this.radius:this.y<2*this.radius&&(this.y=this.y+this.radius),o.particles.move.bounce&&o.fn.vendors.checkOverlap(this,i),this.color={},"object"==typeof t.value)if(t.value instanceof Array){var n=t.value[Math.floor(Math.random()*o.particles.color.value.length)];this.color.rgb=a(n)}else void 0!=t.value.r&&void 0!=t.value.g&&void 0!=t.value.b&&(this.color.rgb={r:t.value.r,g:t.value.g,b:t.value.b}),void 0!=t.value.h&&void 0!=t.value.s&&void 0!=t.value.l&&(this.color.hsl={h:t.value.h,s:t.value.s,l:t.value.l});else"random"==t.value?this.color.rgb={r:Math.floor(256*Math.random())+0,g:Math.floor(256*Math.random())+0,b:Math.floor(256*Math.random())+0}:"string"==typeof t.value&&(this.color=t,this.color.rgb=a(this.color.value));this.opacity=(o.particles.opacity.random?Math.random():1)*o.particles.opacity.value,o.particles.opacity.anim.enable&&(this.opacity_status=!1,this.vo=o.particles.opacity.anim.speed/100,o.particles.opacity.anim.sync||(this.vo=this.vo*Math.random()));var r={};switch(o.particles.move.direction){case"top":r={x:0,y:-1};break;case"top-right":r={x:.5,y:-.5};break;case"right":r={x:1,y:-0};break;case"bottom-right":r={x:.5,y:.5};break;case"bottom":r={x:0,y:1};break;case"bottom-left":r={x:-.5,y:1};break;case"left":r={x:-1,y:0};break;case"top-left":r={x:-.5,y:-.5};break;default:r={x:0,y:0}}o.particles.move.straight?(this.vx=r.x,this.vy=r.y,o.particles.move.random&&(this.vx=this.vx*Math.random(),this.vy=this.vy*Math.random())):(this.vx=r.x+Math.random()-.5,this.vy=r.y+Math.random()-.5),this.vx_i=this.vx,this.vy_i=this.vy;var s=o.particles.shape.type;if("object"==typeof s){if(s instanceof Array){var l=s[Math.floor(Math.random()*s.length)];this.shape=l}}else this.shape=s;if("image"==this.shape){var c=o.particles.shape;this.img={src:c.image.src,ratio:c.image.width/c.image.height},this.img.ratio||(this.img.ratio=1),"svg"==o.tmp.img_type&&void 0!=o.tmp.source_svg&&(o.fn.vendors.createSvgImg(this),o.tmp.pushing&&(this.img.loaded=!1))}},o.fn.particle.prototype.draw=function(){function t(){o.canvas.ctx.drawImage(r,e.x-i,e.y-i,2*i,2*i/e.img.ratio)}var e=this;if(void 0!=e.radius_bubble)var i=e.radius_bubble;else var i=e.radius;if(void 0!=e.opacity_bubble)var a=e.opacity_bubble;else var a=e.opacity;if(e.color.rgb)var n="rgba("+e.color.rgb.r+","+e.color.rgb.g+","+e.color.rgb.b+","+a+")";else var n="hsla("+e.color.hsl.h+","+e.color.hsl.s+"%,"+e.color.hsl.l+"%,"+a+")";switch(o.canvas.ctx.fillStyle=n,o.canvas.ctx.beginPath(),e.shape){case"circle":o.canvas.ctx.arc(e.x,e.y,i,0,2*Math.PI,!1);break;case"edge":o.canvas.ctx.rect(e.x-i,e.y-i,2*i,2*i);break;case"triangle":o.fn.vendors.drawShape(o.canvas.ctx,e.x-i,e.y+i/1.66,2*i,3,2);break;case"polygon":o.fn.vendors.drawShape(o.canvas.ctx,e.x-i/(o.particles.shape.polygon.nb_sides/3.5),e.y-i/.76,2.66*i/(o.particles.shape.polygon.nb_sides/3),o.particles.shape.polygon.nb_sides,1);break;case"star":o.fn.vendors.drawShape(o.canvas.ctx,e.x-2*i/(o.particles.shape.polygon.nb_sides/4),e.y-i/1.52,2*i*2.66/(o.particles.shape.polygon.nb_sides/3),o.particles.shape.polygon.nb_sides,2);break;case"image":if("svg"==o.tmp.img_type)var r=e.img.obj;else var r=o.tmp.img_obj;r&&t()}o.canvas.ctx.closePath(),o.particles.shape.stroke.width>0&&(o.canvas.ctx.strokeStyle=o.particles.shape.stroke.color,o.canvas.ctx.lineWidth=o.particles.shape.stroke.width,o.canvas.ctx.stroke()),o.canvas.ctx.fill()},o.fn.particlesCreate=function(){for(var t=0;t<o.particles.number.value;t++)o.particles.array.push(new o.fn.particle(o.particles.color,o.particles.opacity.value))},o.fn.particlesUpdate=function(){for(var t=0;t<o.particles.array.length;t++){var e=o.particles.array[t];if(o.particles.move.enable){var i=o.particles.move.speed/2;e.x+=e.vx*i,e.y+=e.vy*i}if(o.particles.opacity.anim.enable&&(1==e.opacity_status?(e.opacity>=o.particles.opacity.value&&(e.opacity_status=!1),e.opacity+=e.vo):(e.opacity<=o.particles.opacity.anim.opacity_min&&(e.opacity_status=!0),e.opacity-=e.vo),e.opacity<0&&(e.opacity=0)),o.particles.size.anim.enable&&(1==e.size_status?(e.radius>=o.particles.size.value&&(e.size_status=!1),e.radius+=e.vs):(e.radius<=o.particles.size.anim.size_min&&(e.size_status=!0),e.radius-=e.vs),e.radius<0&&(e.radius=0)),"bounce"==o.particles.move.out_mode)var a={x_left:e.radius,x_right:o.canvas.w,y_top:e.radius,y_bottom:o.canvas.h};else var a={x_left:-e.radius,x_right:o.canvas.w+e.radius, y_top:-e.radius,y_bottom:o.canvas.h+e.radius};switch(e.x-e.radius>o.canvas.w?(e.x=a.x_left,e.y=Math.random()*o.canvas.h):e.x+e.radius<0&&(e.x=a.x_right,e.y=Math.random()*o.canvas.h),e.y-e.radius>o.canvas.h?(e.y=a.y_top,e.x=Math.random()*o.canvas.w):e.y+e.radius<0&&(e.y=a.y_bottom,e.x=Math.random()*o.canvas.w),o.particles.move.out_mode){case"bounce":e.x+e.radius>o.canvas.w?e.vx=-e.vx:e.x-e.radius<0&&(e.vx=-e.vx),e.y+e.radius>o.canvas.h?e.vy=-e.vy:e.y-e.radius<0&&(e.vy=-e.vy)}if(r("grab",o.interactivity.events.onhover.mode)&&o.fn.modes.grabParticle(e),(r("bubble",o.interactivity.events.onhover.mode)||r("bubble",o.interactivity.events.onclick.mode))&&o.fn.modes.bubbleParticle(e),(r("repulse",o.interactivity.events.onhover.mode)||r("repulse",o.interactivity.events.onclick.mode))&&o.fn.modes.repulseParticle(e),o.particles.line_linked.enable||o.particles.move.attract.enable)for(var n=t+1;n<o.particles.array.length;n++){var s=o.particles.array[n];o.particles.line_linked.enable&&o.fn.interact.linkParticles(e,s),o.particles.move.attract.enable&&o.fn.interact.attractParticles(e,s),o.particles.move.bounce&&o.fn.interact.bounceParticles(e,s)}}},o.fn.particlesDraw=function(){o.canvas.ctx.clearRect(0,0,o.canvas.w,o.canvas.h),o.fn.particlesUpdate();for(var t=0;t<o.particles.array.length;t++){var e=o.particles.array[t];e.draw()}},o.fn.particlesEmpty=function(){o.particles.array=[]},o.fn.particlesRefresh=function(){cancelRequestAnimFrame(o.fn.checkAnimFrame),cancelRequestAnimFrame(o.fn.drawAnimFrame),o.tmp.source_svg=void 0,o.tmp.img_obj=void 0,o.tmp.count_svg=0,o.fn.particlesEmpty(),o.fn.canvasClear(),o.fn.vendors.start()},o.fn.interact.linkParticles=function(t,e){var i=t.x-e.x,a=t.y-e.y,n=Math.sqrt(i*i+a*a);if(n<=o.particles.line_linked.distance){var r=o.particles.line_linked.opacity-n/(1/o.particles.line_linked.opacity)/o.particles.line_linked.distance;if(r>0){var s=o.particles.line_linked.color_rgb_line;o.canvas.ctx.strokeStyle="rgba("+s.r+","+s.g+","+s.b+","+r+")",o.canvas.ctx.lineWidth=o.particles.line_linked.width,o.canvas.ctx.beginPath(),o.canvas.ctx.moveTo(t.x,t.y),o.canvas.ctx.lineTo(e.x,e.y),o.canvas.ctx.stroke(),o.canvas.ctx.closePath()}}},o.fn.interact.attractParticles=function(t,e){var i=t.x-e.x,a=t.y-e.y,n=Math.sqrt(i*i+a*a);if(n<=o.particles.line_linked.distance){var r=i/(1e3*o.particles.move.attract.rotateX),s=a/(1e3*o.particles.move.attract.rotateY);t.vx-=r,t.vy-=s,e.vx+=r,e.vy+=s}},o.fn.interact.bounceParticles=function(t,e){var i=t.x-e.x,a=t.y-e.y,n=Math.sqrt(i*i+a*a),r=t.radius+e.radius;n<=r&&(t.vx=-t.vx,t.vy=-t.vy,e.vx=-e.vx,e.vy=-e.vy)},o.fn.modes.pushParticles=function(t,e){o.tmp.pushing=!0;for(var i=0;i<t;i++)o.particles.array.push(new o.fn.particle(o.particles.color,o.particles.opacity.value,{x:e?e.pos_x:Math.random()*o.canvas.w,y:e?e.pos_y:Math.random()*o.canvas.h})),i==t-1&&(o.particles.move.enable||o.fn.particlesDraw(),o.tmp.pushing=!1)},o.fn.modes.removeParticles=function(t){o.particles.array.splice(0,t),o.particles.move.enable||o.fn.particlesDraw()},o.fn.modes.bubbleParticle=function(t){function e(){t.opacity_bubble=t.opacity,t.radius_bubble=t.radius}function i(e,i,a,n,r){if(e!=i)if(o.tmp.bubble_duration_end){if(void 0!=a){var l=n-h*(n-e)/o.interactivity.modes.bubble.duration,c=e-l;d=e+c,"size"==r&&(t.radius_bubble=d),"opacity"==r&&(t.opacity_bubble=d)}}else if(s<=o.interactivity.modes.bubble.distance){if(void 0!=a)var u=a;else var u=n;if(u!=e){var d=n-h*(n-e)/o.interactivity.modes.bubble.duration;"size"==r&&(t.radius_bubble=d),"opacity"==r&&(t.opacity_bubble=d)}}else"size"==r&&(t.radius_bubble=void 0),"opacity"==r&&(t.opacity_bubble=void 0)}if(o.interactivity.events.onhover.enable&&r("bubble",o.interactivity.events.onhover.mode)){var a=t.x-o.interactivity.mouse.pos_x,n=t.y-o.interactivity.mouse.pos_y,s=Math.sqrt(a*a+n*n),l=1-s/o.interactivity.modes.bubble.distance;if(s<=o.interactivity.modes.bubble.distance){if(l>=0&&"mousemove"==o.interactivity.status){if(o.interactivity.modes.bubble.size!=o.particles.size.value)if(o.interactivity.modes.bubble.size>o.particles.size.value){var c=t.radius+o.interactivity.modes.bubble.size*l;c>=0&&(t.radius_bubble=c)}else{var u=t.radius-o.interactivity.modes.bubble.size,c=t.radius-u*l;c>0?t.radius_bubble=c:t.radius_bubble=0}if(o.interactivity.modes.bubble.opacity!=o.particles.opacity.value)if(o.interactivity.modes.bubble.opacity>o.particles.opacity.value){var d=o.interactivity.modes.bubble.opacity*l;d>t.opacity&&d<=o.interactivity.modes.bubble.opacity&&(t.opacity_bubble=d)}else{var d=t.opacity-(o.particles.opacity.value-o.interactivity.modes.bubble.opacity)*l;d<t.opacity&&d>=o.interactivity.modes.bubble.opacity&&(t.opacity_bubble=d)}}}else e();"mouseleave"==o.interactivity.status&&e()}else if(o.interactivity.events.onclick.enable&&r("bubble",o.interactivity.events.onclick.mode)){if(o.tmp.bubble_clicking){var a=t.x-o.interactivity.mouse.click_pos_x,n=t.y-o.interactivity.mouse.click_pos_y,s=Math.sqrt(a*a+n*n),h=((new Date).getTime()-o.interactivity.mouse.click_time)/1e3;h>o.interactivity.modes.bubble.duration&&(o.tmp.bubble_duration_end=!0),h>2*o.interactivity.modes.bubble.duration&&(o.tmp.bubble_clicking=!1,o.tmp.bubble_duration_end=!1)}o.tmp.bubble_clicking&&(i(o.interactivity.modes.bubble.size,o.particles.size.value,t.radius_bubble,t.radius,"size"),i(o.interactivity.modes.bubble.opacity,o.particles.opacity.value,t.opacity_bubble,t.opacity,"opacity"))}},o.fn.modes.repulseParticle=function(t){function e(){var e=Math.atan2(p,f);if(t.vx=v*Math.cos(e),t.vy=v*Math.sin(e),"bounce"==o.particles.move.out_mode){var i={x:t.x+t.vx,y:t.y+t.vy};i.x+t.radius>o.canvas.w?t.vx=-t.vx:i.x-t.radius<0&&(t.vx=-t.vx),i.y+t.radius>o.canvas.h?t.vy=-t.vy:i.y-t.radius<0&&(t.vy=-t.vy)}}if(o.interactivity.events.onhover.enable&&r("repulse",o.interactivity.events.onhover.mode)&&"mousemove"==o.interactivity.status){var i=t.x-o.interactivity.mouse.pos_x,a=t.y-o.interactivity.mouse.pos_y,s=Math.sqrt(i*i+a*a),l={x:i/s,y:a/s},c=o.interactivity.modes.repulse.distance,u=100,d=n(1/c*(-1*Math.pow(s/c,2)+1)*c*u,0,50),h={x:t.x+l.x*d,y:t.y+l.y*d};"bounce"==o.particles.move.out_mode?(h.x-t.radius>0&&h.x+t.radius<o.canvas.w&&(t.x=h.x),h.y-t.radius>0&&h.y+t.radius<o.canvas.h&&(t.y=h.y)):(t.x=h.x,t.y=h.y)}else if(o.interactivity.events.onclick.enable&&r("repulse",o.interactivity.events.onclick.mode))if(o.tmp.repulse_finish||(o.tmp.repulse_count++,o.tmp.repulse_count==o.particles.array.length&&(o.tmp.repulse_finish=!0)),o.tmp.repulse_clicking){var c=Math.pow(o.interactivity.modes.repulse.distance/6,3),f=o.interactivity.mouse.click_pos_x-t.x,p=o.interactivity.mouse.click_pos_y-t.y,g=f*f+p*p,v=-c/g*1;g<=c&&e()}else 0==o.tmp.repulse_clicking&&(t.vx=t.vx_i,t.vy=t.vy_i)},o.fn.modes.grabParticle=function(t){if(o.interactivity.events.onhover.enable&&"mousemove"==o.interactivity.status){var e=t.x-o.interactivity.mouse.pos_x,i=t.y-o.interactivity.mouse.pos_y,a=Math.sqrt(e*e+i*i);if(a<=o.interactivity.modes.grab.distance){var n=o.interactivity.modes.grab.line_linked.opacity-a/(1/o.interactivity.modes.grab.line_linked.opacity)/o.interactivity.modes.grab.distance;if(n>0){var r=o.particles.line_linked.color_rgb_line;o.canvas.ctx.strokeStyle="rgba("+r.r+","+r.g+","+r.b+","+n+")",o.canvas.ctx.lineWidth=o.particles.line_linked.width,o.canvas.ctx.beginPath(),o.canvas.ctx.moveTo(t.x,t.y),o.canvas.ctx.lineTo(o.interactivity.mouse.pos_x,o.interactivity.mouse.pos_y),o.canvas.ctx.stroke(),o.canvas.ctx.closePath()}}}},o.fn.vendors.eventsListeners=function(){"window"==o.interactivity.detect_on?o.interactivity.el=window:o.interactivity.el=o.canvas.el,(o.interactivity.events.onhover.enable||o.interactivity.events.onclick.enable)&&(o.interactivity.el.addEventListener("mousemove",function(t){if(o.interactivity.el==window)var e=t.clientX,i=t.clientY;else var e=t.offsetX||t.clientX,i=t.offsetY||t.clientY;o.interactivity.mouse.pos_x=e,o.interactivity.mouse.pos_y=i,o.tmp.retina&&(o.interactivity.mouse.pos_x*=o.canvas.pxratio,o.interactivity.mouse.pos_y*=o.canvas.pxratio),o.interactivity.status="mousemove"}),o.interactivity.el.addEventListener("mouseleave",function(t){o.interactivity.mouse.pos_x=null,o.interactivity.mouse.pos_y=null,o.interactivity.status="mouseleave"})),o.interactivity.events.onclick.enable&&o.interactivity.el.addEventListener("click",function(){if(o.interactivity.mouse.click_pos_x=o.interactivity.mouse.pos_x,o.interactivity.mouse.click_pos_y=o.interactivity.mouse.pos_y,o.interactivity.mouse.click_time=(new Date).getTime(),o.interactivity.events.onclick.enable)switch(o.interactivity.events.onclick.mode){case"push":o.particles.move.enable?o.fn.modes.pushParticles(o.interactivity.modes.push.particles_nb,o.interactivity.mouse):1==o.interactivity.modes.push.particles_nb?o.fn.modes.pushParticles(o.interactivity.modes.push.particles_nb,o.interactivity.mouse):o.interactivity.modes.push.particles_nb>1&&o.fn.modes.pushParticles(o.interactivity.modes.push.particles_nb);break;case"remove":o.fn.modes.removeParticles(o.interactivity.modes.remove.particles_nb);break;case"bubble":o.tmp.bubble_clicking=!0;break;case"repulse":o.tmp.repulse_clicking=!0,o.tmp.repulse_count=0,o.tmp.repulse_finish=!1,setTimeout(function(){o.tmp.repulse_clicking=!1},1e3*o.interactivity.modes.repulse.duration)}})},o.fn.vendors.densityAutoParticles=function(){if(o.particles.number.density.enable){var t=o.canvas.el.width*o.canvas.el.height/1e3;o.tmp.retina&&(t/=2*o.canvas.pxratio);var e=t*o.particles.number.value/o.particles.number.density.value_area,i=o.particles.array.length-e;i<0?o.fn.modes.pushParticles(Math.abs(i)):o.fn.modes.removeParticles(i)}},o.fn.vendors.checkOverlap=function(t,e){for(var i=0;i<o.particles.array.length;i++){var a=o.particles.array[i],n=t.x-a.x,r=t.y-a.y,s=Math.sqrt(n*n+r*r);s<=t.radius+a.radius&&(t.x=e?e.x:Math.random()*o.canvas.w,t.y=e?e.y:Math.random()*o.canvas.h,o.fn.vendors.checkOverlap(t))}},o.fn.vendors.createSvgImg=function(t){var e=o.tmp.source_svg,i=/#([0-9A-F]{3,6})/gi,a=e.replace(i,function(e,i,a,n){if(t.color.rgb)var r="rgba("+t.color.rgb.r+","+t.color.rgb.g+","+t.color.rgb.b+","+t.opacity+")";else var r="hsla("+t.color.hsl.h+","+t.color.hsl.s+"%,"+t.color.hsl.l+"%,"+t.opacity+")";return r}),n=new Blob([a],{type:"image/svg+xml;charset=utf-8"}),r=window.URL||window.webkitURL||window,s=r.createObjectURL(n),l=new Image;l.addEventListener("load",function(){t.img.obj=l,t.img.loaded=!0,r.revokeObjectURL(s),o.tmp.count_svg++}),l.src=s},o.fn.vendors.destroypJS=function(){cancelAnimationFrame(o.fn.drawAnimFrame),i.remove(),pJSDom=null},o.fn.vendors.drawShape=function(t,e,i,a,n,r){var o=n*r,s=n/r,l=180*(s-2)/s,c=Math.PI-Math.PI*l/180;t.save(),t.beginPath(),t.translate(e,i),t.moveTo(0,0);for(var u=0;u<o;u++)t.lineTo(a,0),t.translate(a,0),t.rotate(c);t.fill(),t.restore()},o.fn.vendors.exportImg=function(){window.open(o.canvas.el.toDataURL("image/png"),"_blank")},o.fn.vendors.loadImg=function(t){if(o.tmp.img_error=void 0,""!=o.particles.shape.image.src)if("svg"==t){var e=new XMLHttpRequest;e.open("GET",o.particles.shape.image.src),e.onreadystatechange=function(t){4==e.readyState&&(200==e.status?(o.tmp.source_svg=t.currentTarget.response,o.fn.vendors.checkBeforeDraw()):(console.log("Error pJS - Image not found"),o.tmp.img_error=!0))},e.send()}else{var i=new Image;i.addEventListener("load",function(){o.tmp.img_obj=i,o.fn.vendors.checkBeforeDraw()}),i.src=o.particles.shape.image.src}else console.log("Error pJS - No image.src"),o.tmp.img_error=!0},o.fn.vendors.draw=function(){"image"==o.particles.shape.type?"svg"==o.tmp.img_type?o.tmp.count_svg>=o.particles.number.value?(o.fn.particlesDraw(),o.particles.move.enable?o.fn.drawAnimFrame=requestAnimFrame(o.fn.vendors.draw):cancelRequestAnimFrame(o.fn.drawAnimFrame)):o.tmp.img_error||(o.fn.drawAnimFrame=requestAnimFrame(o.fn.vendors.draw)):void 0!=o.tmp.img_obj?(o.fn.particlesDraw(),o.particles.move.enable?o.fn.drawAnimFrame=requestAnimFrame(o.fn.vendors.draw):cancelRequestAnimFrame(o.fn.drawAnimFrame)):o.tmp.img_error||(o.fn.drawAnimFrame=requestAnimFrame(o.fn.vendors.draw)):(o.fn.particlesDraw(),o.particles.move.enable?o.fn.drawAnimFrame=requestAnimFrame(o.fn.vendors.draw):cancelRequestAnimFrame(o.fn.drawAnimFrame))},o.fn.vendors.checkBeforeDraw=function(){"image"==o.particles.shape.type?"svg"==o.tmp.img_type&&void 0==o.tmp.source_svg?o.tmp.checkAnimFrame=requestAnimFrame(check):(cancelRequestAnimFrame(o.tmp.checkAnimFrame),o.tmp.img_error||(o.fn.vendors.init(),o.fn.vendors.draw())):(o.fn.vendors.init(),o.fn.vendors.draw())},o.fn.vendors.init=function(){o.fn.retinaInit(),o.fn.canvasInit(),o.fn.canvasSize(),o.fn.canvasPaint(),o.fn.particlesCreate(),o.fn.vendors.densityAutoParticles(),o.particles.line_linked.color_rgb_line=a(o.particles.line_linked.color)},o.fn.vendors.start=function(){r("image",o.particles.shape.type)?(o.tmp.img_type=o.particles.shape.image.src.substr(o.particles.shape.image.src.length-3),o.fn.vendors.loadImg(o.tmp.img_type)):o.fn.vendors.checkBeforeDraw()},o.fn.vendors.eventsListeners(),o.fn.vendors.start()};Object.deepExtend=function(t,e){for(var i in e)e[i]&&e[i].constructor&&e[i].constructor===Object?(t[i]=t[i]||{},arguments.callee(t[i],e[i])):t[i]=e[i];return t},window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}(),window.cancelRequestAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout}(),window.pJSDom=[],window.particlesJS=function(t,e){"string"!=typeof t&&(e=t,t="particles-js"),t||(t="particles-js");var i=document.getElementById(t),a="particles-js-canvas-el",n=i.getElementsByClassName(a);if(n.length)for(;n.length>0;)i.removeChild(n[0]);var r=document.createElement("canvas");r.className=a,r.style.width="100%",r.style.height="100%";var s=document.getElementById(t).appendChild(r);null!=s&&pJSDom.push(new o(t,e))},window.particlesJS.load=function(t,e,i){var a=new XMLHttpRequest;a.open("GET",e),a.onreadystatechange=function(e){if(4==a.readyState)if(200==a.status){var n=JSON.parse(e.currentTarget.response);window.particlesJS(t,n),i&&i()}else console.log("Error pJS - XMLHttpRequest status: "+a.status),console.log("Error pJS - File config not found")},a.send()};var s="#39BAC1",l="#367B8C",c="#FF4C49",u="#DFA431",d=function(t,e,i){var a={particles:{number:{value:e,density:{enable:!0,value_area:800}},color:{value:t},shape:{type:"circle",stroke:{width:0,color:"#000000"},polygon:{nb_sides:5},image:{src:"img/github.svg",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:50,random:!0,anim:{enable:!1,speed:40,size_min:.1,sync:!1}},line_linked:{enable:!1,distance:150,color:"#ffffff",opacity:.4,width:1},move:{enable:!0,speed:i,direction:"none",random:!1,straight:!1,out_mode:"bounce",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!1,mode:"repulse"},onclick:{enable:!1,mode:"push"},resize:!0},modes:{grab:{distance:400,line_linked:{opacity:1}},bubble:{distance:400,size:40,duration:2,opacity:8,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0};return a},h=window.location.pathname,f=h.split("/").pop();if("index.html"==f||"Team:Toronto"==f){var p=2,g=1;particlesJS("mustard-orb",d(u,p,g)),particlesJS("pink-orb",d(c,p,g)),particlesJS("turquois-orb",d(s,p,g)),particlesJS("darkTurquois-orb",d(l,p,g))}else console.log("Not home page")},{}]},{},[2,1,3,4,5,6]);