1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8698],{17757:function(t,e,i){var n;n=function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e,i,n={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]},a=((e=function(t){var e={};for(var i in n)n.hasOwnProperty(i)&&(e[n[i]]=i);var a=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var r in a)if(a.hasOwnProperty(r)){if(!("channels"in a[r]))throw Error("missing channels property: "+r);if(!("labels"in a[r]))throw Error("missing channel labels property: "+r);if(a[r].labels.length!==a[r].channels)throw Error("channel and label counts mismatch: "+r);var o=a[r].channels,s=a[r].labels;delete a[r].channels,delete a[r].labels,Object.defineProperty(a[r],"channels",{value:o}),Object.defineProperty(a[r],"labels",{value:s})}function l(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}a.rgb.hsl=function(t){var e,i,n=t[0]/255,a=t[1]/255,r=t[2]/255,o=Math.min(n,a,r),s=Math.max(n,a,r),l=s-o;return s===o?e=0:n===s?e=(a-r)/l:a===s?e=2+(r-n)/l:r===s&&(e=4+(n-a)/l),(e=Math.min(60*e,360))<0&&(e+=360),i=(o+s)/2,[e,100*(s===o?0:i<=.5?l/(s+o):l/(2-s-o)),100*i]},a.rgb.hsv=function(t){var e,i,n,a,r,o=t[0]/255,s=t[1]/255,l=t[2]/255,h=Math.max(o,s,l),u=h-Math.min(o,s,l),d=function(t){return(
1h-t)/6/u+.5};return 0===u?a=r=0:(r=u/h,e=d(o),i=d(s),n=d(l),o===h?a=n-i:s===h?a=1/3+e-n:l===h&&(a=2/3+i-e),a<0?a+=1:a>1&&(a-=1)),[360*a,100*r,100*h]},a.rgb.hwb=function(t){var e=t[0],i=t[1],n=t[2],r=a.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(i,n));return n=1-1/255*Math.max(e,Math.max(i,n)),[r,100*o,100*n]},a.rgb.cmyk=function(t){var e,i=t[0]/255,n=t[1]/255,a=t[2]/255;return e=Math.min(1-i,1-n,1-a),[100*((1-i-e)/(1-e)||0),100*((1-n-e)/(1-e)||0),100*((1-a-e)/(1-e)||0),100*e]},a.rgb.keyword=function(t){var i,a=e[t];if(a)return a;var r=1/0;for(var o in n)if(n.hasOwnProperty(o)){var s=l(t,n[o]);s<r&&(r=s,i=o)}return i},a.keyword.rgb=function(t){return n[t]},a.rgb.xyz=function(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92;var a,r=.4124*e+.3576*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92);return[100*r,100*(.2126*e+.7152*i+.0722*n),100*(.0193*e+.1192*i+.9505*n)]},a.rgb.lab=function(t){var e,i,n=a.rgb.xyz(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,[e,i=500*(r-o),200*(o-s)]},a.hsl.rgb=function(t){var e,i,n,a,r,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[r=255*l,r,r];i=l<.5?l*(1+s):l+s-l*s,e=2*l-i,a=[0,0,0];for(var h=0;h<3;h++)(n=o+-(1/3*(h-1)))<0&&n++,n>1&&n--,r=6*n<1?e+(i-e)*6*n:2*n<1?i:3*n<2?e+(i-e)*(2/3-n)*6:e,a[h]=255*r;return a},a.hsl.hsv=function(t){var e=t[0],i=t[1]/100,n=t[2]/100,a=i,r=Math.max(n,.01);return n*=2,i*=n<=1?n:2-n,a*=r<=1?r:2-r,[e,100*(0===n?2*a/(r+a):2*i/(n+i)),100*((n+i)/2)]},a.hsv.rgb=function(t){var e=t[0]/60,i=t[1]/100,n=t[2]/100,a=e-Math.floor(e),r=255*n*(1-i),o=255*n*(1-i*a),s=255*n*(1-i*(1-a));switch(n*=255,Math.floor(e)%6){case 0:return[n,s,r];case 1:return[o,n,r];case 2:return[r,n,s];case 3:return[r,o,n];case 4:return[s,r,n];case 5:return[n,r,o]}},a.hsv.hsl=function(t){var e,i,n,a=t[0],r=t[1]/100,o=t[2]/100,s=Math.max(o,.01);return n=(2-r)*o,e=(2-r)*s,i=r*s,i/=e<=1?e:2-e,[a,100*(i=i||0),100*(n/=2)]},a.hwb.rgb=function(t){var e,i,n,a,r,o,s,l=t[0]/360,h=t[1]/100,u=t[2]/100,d=h+u;switch(d>1&&(h/=d,u/=d),e=Math.floor(6*l),i=1-u,n=6*l-e,(1&e)!=0&&(n=1-n),a=h+n*(i-h),e){default:case 6:case 0:r=i,o=a,s=h;break;case 1:r=a,o=i,s=h;break;case 2:r=h,o=i,s=a;break;case 3:r=h,o=a,s=i;break;case 4:r=a,o=h,s=i;break;case 5:r=i,o=h,s=a}return[255*r,255*o,255*s]},a.cmyk.rgb=function(t){var e=t[0]/100,i=t[1]/100,n=t[2]/100,a=t[3]/100;return[255*(1-Math.min(1,e*(1-a)+a)),255*(1-Math.min(1,i*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},a.xyz.rgb=function(t){var e,i,n,a=t[0]/100,r=t[1]/100,o=t[2]/100;return e=3.2406*a+-1.5372*r+-.4986*o,i=-.9689*a+1.8758*r+.0415*o,n=.0557*a+-.204*r+1.057*o,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,e=Math.min(Math.max(0,e),1),[255*e,255*(i=Math.min(Math.max(0,i),1)),255*(n=Math.min(Math.max(0,n),1))]},a.xyz.lab=function(t){var e,i,n=t[0],a=t[1],r=t[2];return n/=95.047,a/=100,r/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,e=116*a-16,[e,i=500*(n-a),200*(a-r)]},a.lab.xyz=function(t){var e,i,n,a=t[0],r=t[1],o=t[2];e=r/500+(i=(a+16)/116);var s=Math.pow(i,3),l=Math.pow(e,3),h=Math.pow(n=i-o/200,3);return i=s>.008856?s:(i-16/116)/7.787,e=l>.008856?l:(e-16/116)/7.787,n=h>.008856?h:(n-16/116)/7.787,[e*=95.047,i*=100,n*=108.883]},a.lab.lch=function(t){var e,i=t[0],n=t[1],a=t[2];return(e=360*Math.atan2(a,n)/2/Math.PI)<0&&(e+=360),[i,Math.sqrt(n*n+a*a),e]},a.lch.lab=function(t){var e,i=t[0],n=t[1];return[i,n*Math.cos(e=t[2]/360*2*Math.PI),n*Math.sin(e)]},a.rgb.ansi16=function(t){var e=t[0],i=t[1],n=t[2],r=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(r=Math.round(r/50)))return 30;var o=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(e/255));return 2===r&&(o+=60),o},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],i=t[1],n=t[2];return e===i&&i===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var i,n=(~~(t>50)+1)*.5,a=(1&e)*n*255;return[a,(e>>1&1)*n*255,(e>>2&1)*n*255]},a.ansi256.rgb=function(t){if(t>=232){var e,i,n=(t-232)*10+8;return[n,n,n]}return t-=16,[Math.floor(t/36)/5*255,Math.floor((i=t%36)/6)/5*255,i%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var i=e[0];3===e[0].length&&(i=i.split("").map(function(t){return t+t}).join(""));var n=parseInt(i,16);return[n>>16&255,n>>8&255,255&n]},a.rgb.hcg=function(t){var e,i,n=t[0]/255,a=t[1]/255,r=t[2]/255,o=Math.max(Math.max(n,a),r),s=Math.min(Math.min(n,a),r),l=o-s;return e=l<1?s/(1-l):0,i=l<=0?0:o===n?(a-r)/l%6:o===a?2+(r-n)/l:4+(n-a)/l+4,i/=6,[360*(i%=1),100*l,100*e]},a.hsl.hcg=function(t){var e=t[1]/100,i=t[2]/100,n=1,a=0;return(n=i<.5?2*e*i:2*e*(1-i))<1&&(a=(i-.5*n)/(1-n)),[t[0],100*n,100*a]},a.hsv.hcg=function(t){var e=t[1]/100,i=t[2]/100,n=e*i,a=0;return n<1&&(a=(i-n)/(1-n)),[t[0],100*n,100*a]},a.hcg.rgb=function(t){var e=t[0]/360,i=t[1]/100,n=t[2]/100;if(0===i)return[255*n,255*n,255*n];var a=[0,0,0],r=e%1*6,o=r%1,s=1-o,l=0;switch(Math.floor(r)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=s,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=s,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=s}return l=(1-i)*n,[(i*a[0]+l)*255,(i*a[1]+l)*255,(i*a[2]+l)*255]},a.hcg.hsv=function(t){var e=t[1]/100,i=e+t[2]/100*(1-e),n=0;return i>0&&(n=e/i),[t[0],100*n,100*i]},a.hcg.hsl=function(t){var e=t[1]/100,i=t[2]/100*(1-e)+.5*e,n=0;return i>0&&i<.5?n=e/(2*i):i>=.5&&i<1&&(n=e/(2*(1-i))),[t[0],100*n,100*i]},a.hcg.hwb=function(t){var e=t[1]/100,i=e+t[2]/100*(1-e);return[t[0],(i-e)*100,(1-i)*100]},a.hwb.hcg=function(t){var e=t[1]/100,i=1-t[2]/100,n=i-e,a=0;return n<1&&(a=(i-n)/(1-n)),[t[0],100*n,100*a]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),i=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(i.length)+i},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}})(i={exports:{}}
1,i.exports),i.exports);function r(t,e){return function(i){return e(t(i))}}function o(t,e){for(var i=[e[t].parent,t],n=a[e[t].parent][t],o=e[t].parent;e[o].parent;)i.unshift(e[o].parent),n=r(a[e[o].parent][o],n),o=e[o].parent;return n.conversion=i,n}a.rgb,a.hsl,a.hsv,a.hwb,a.cmyk,a.xyz,a.lab,a.lch,a.hex,a.keyword,a.ansi16,a.ansi256,a.hcg,a.apple,a.gray;var s,l=function(t){for(var e=function(t){var e=function(){for(var t={},e=Object.keys(a),i=e.length,n=0;n<i;n++)t[e[n]]={distance:-1,parent:null};return t}(),i=[t];for(e[t].distance=0;i.length;)for(var n=i.pop(),r=Object.keys(a[n]),o=r.length,s=0;s<o;s++){var l=r[s],h=e[l];-1===h.distance&&(h.distance=e[n].distance+1,h.parent=n,i.unshift(l))}return e}(t),i={},n=Object.keys(e),r=n.length,s=0;s<r;s++){var l=n[s];null!==e[l].parent&&(i[l]=o(l,e))}return i},h={};Object.keys(a).forEach(function(t){h[t]={},Object.defineProperty(h[t],"channels",{value:a[t].channels}),Object.defineProperty(h[t],"labels",{value:a[t].labels});var e=l(t);Object.keys(e).forEach(function(i){var n,a,r,o,s=e[i];h[t][i]=(a=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var e=s(t);if("object"==typeof e)for(var i=e.length,n=0;n<i;n++)e[n]=Math.round(e[n]);return e},"conversion"in s&&(a.conversion=s.conversion),a),h[t][i].raw=(o=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),s(t))},"conversion"in s&&(o.conversion=s.conversion),o)})});var u={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
1],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]},d={getRgba:c,getHsla:f,getRgb:function(t){var e=c(t);return e&&e.slice(0,3)},getHsl:function(t){var e=f(t);return e&&e.slice(0,3)},getHwb:g,getAlpha:function(t){var e=c(t);if(e||(e=f(t))||(e=g(t)))return e[3]},hexString:function(t,e){var e=void 0!==e&&3===t.length?e:t[3];return"#"+x(t[0])+x(t[1])+x(t[2])+(e>=0&&e<1?x(Math.round(255*e)):"")},rgbString:function(t,e){return e<1||t[3]&&t[3]<1?p(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:p,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return m(t,e);var i,n=Math.round(t[0]/255*100);return"rgb("+n+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%)"},percentaString:m,hslString:function(t,e){return e<1||t[3]&&t[3]<1?v(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:v,hwbString:function(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:"")+")"},keyword:function(t){return y[t.slice(0,3)]}};function c(t){if(t){var e=[0,0,0],i=1,n=t.match(/^#([a-fA-F0-9]{3,4})$/i),a="";if(n){a=(n=n[1])[3];for(var r=0;r<e.length;r++)e[r]=parseInt(n[r]+n[r],16);a&&(i=Math.round(parseInt(a+a,16)/255*100)/100)}else if(n=t.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){a=n[2],n=n[1];for(var r=0;r<e.length;r++)e[r]=parseInt(n.slice(2*r,2*r+2),16);a&&(i=Math.round(parseInt(a,16)/255*100)/100)}else if(n=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(var r=0;r<e.length;r++)e[r]=parseInt(n[r+1]);i=parseFloat(n[4])}else if(n=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(var r=0;r<e.length;r++)e[r]=Math.round(2.55*parseFloat(n[r+1]));i=parseFloat(n[4])}else if(n=t.match(/(\w+)/)){if("transparent"==n[1])return[0,0,0,0];if(!(e=u[n[1]]))return}for(var r=0;r<e.length;r++)e[r]=b(e[r],0,255);return i=i||0==i?b(i,0,1):1,e[3]=i,e}}function f(t){if(t){var e=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var i=parseFloat(e[4]),n=b(parseInt(e[1]),0,360),a=b(parseFloat(e[2]),0,100),r=b(parseFloat(e[3]),0,100),o=b(isNaN(i)?1:i,0,1);return[n,a,r,o]}}}function g(t){if(t){var e=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var i=parseFloat(e[4]),n=b(parseInt(e[1]),0,360),a=b(parseFloat(e[2]),0,100),r=b(parseFloat(e[3]),0,100),o=b(isNaN(i)?1:i,0,1);return[n,a,r,o]}}}function p(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function m(t,e){var i,n=Math.round(t[0]/255*100);return"rgba("+n+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function v(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function b(t,e,i){return Math.min(Math.max(e,t),i)}function x(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var y={};for(var _ in u)y[u[_]]=_;var k=function(t){var e;return t instanceof k?t:this instanceof k?void(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},"string"==typeof t?(e=d.getRgba(t))?this.setValues("rgb",e):(e=d.getHsla(t))?this.setValues("hsl",e):(e=d.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):(void 0!==e.c||void 0!==e.cyan)&&this.setValues("cmyk",e))):new k(t)};function w(t){return -1===["__proto__","prototype","constructor"].indexOf(t)}k.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])}
vendor: 4,587 bytes, line 1
1,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 d.hexString(this.values.rgb)},rgbString:function(){return d.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return d.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return d.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return d.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return d.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return d.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return d.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],i=0;i<t.length;i++){var n=t[i]/255;e[i]=n<=.03928?n/12.92:Math.pow((n+.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;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,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=void 0===e?.5:e,n=2*i-1,a=this.alpha()-t.alpha(),r=((n*a==-1?n:(n+a)/(1+n*a))+1)/2,o=1-r;return this.rgb(r*this.red()+o*t.red(),r*this.green()+o*t.green(),r*this.blue()+o*t.blue()).alpha(this.alpha()*i+t.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var t,e,i=new k,n=this.values,a=i.values;for(var r in n)n.hasOwnProperty(r)&&(t=n[r],"[object Array]"===(e=({}).toString.call(t))?a[r]=t.slice(0):"[object Number]"===e?a[r]=t:console.error("unexpected color value:",t));return i}},k.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},k.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},k.prototype.getValues=function(t){for(var e=this.values,i={},n=0;n<t.length;n++)i[t.charAt(n)]=e[t][n];return 1!==e.alpha&&(i.a=e.alpha),i},k.prototype.setValues=function(t,e){var i,n,a=this.values,r=this.spaces,o=this.maxes,s=1;if(this.valid=!0,"alpha"===t)s=e;else if(e.length)a[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++)a[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++)a[t][i]=e[l[i]];s=e.alpha}if(a.alpha=Math.max(0,Math.min(1,void 0===s?a.alpha:s)),"alpha"===t)return!1;for(i=0;i<t.length;i++)n=Math.max(0,Math.min(o[t][i],a[t][i])),a[t][i]=Math.round(n);
1for(var u in r)u!==t&&(a[u]=h[t][u](a[t]));return!0},k.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)},k.prototype.setChannel=function(t,e,i){var n=this.values[t];return void 0===i?n[e]:(i===n[e]||(n[e]=i,this.setValues(t,n)),this)},"undefined"!=typeof window&&(window.Color=k);var M,S={noop:function(){},uid:(M=0,function(){return M++}),isNullOrUndef:function(t){return null==t},isArray:function(t){if(Array.isArray&&Array.isArray(t))return!0;var e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},isFinite:function(t){return("number"==typeof t||t instanceof Number)&&isFinite(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,i){return S.valueOrDefault(S.isArray(t)?t[e]:t,i)},callback:function(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)},each:function(t,e,i,n){var a,r,o;if(S.isArray(t)){if(r=t.length,n)for(a=r-1;a>=0;a--)e.call(i,t[a],a);else for(a=0;a<r;a++)e.call(i,t[a],a)}else if(S.isObject(t))for(a=0,r=(o=Object.keys(t)).length;a<r;a++)e.call(i,t[o[a]],o[a])},arrayEquals:function(t,e){var i,n,a,r;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(a=t[i],r=e[i],a instanceof Array&&r instanceof Array){if(!S.arrayEquals(a,r))return!1}else if(a!==r)return!1;return!0},clone:function(t){if(S.isArray(t))return t.map(S.clone);if(S.isObject(t)){for(var e=Object.create(t),i=Object.keys(t),n=i.length,a=0;a<n;++a)e[i[a]]=S.clone(t[i[a]]);return e}return t},_merger:function(t,e,i,n){if(w(t)){var a=e[t],r=i[t];S.isObject(a)&&S.isObject(r)?S.merge(a,r,n):e[t]=S.clone(r)}},_mergerIf:function(t,e,i){if(w(t)){var n=e[t],a=i[t];S.isObject(n)&&S.isObject(a)?S.mergeIf(n,a):e.hasOwnProperty(t)||(e[t]=S.clone(a))}},merge:function(t,e,i){var n,a,r,o,s,l=S.isArray(e)?e:[e],h=l.length;if(!S.isObject(t))return t;for(a=0,n=(i=i||{}).merger||S._merger;a<h;++a)if(e=l[a],S.isObject(e))for(s=0,o=(r=Object.keys(e)).length;s<o;++s)n(r[s],t,e,i);return t},mergeIf:function(t,e){return S.merge(t,e,{merger:S._mergerIf})},extend:Object.assign||function(t){return S.merge(t,[].slice.call(arguments,1),{merger:function(t,e,i){e[t]=i[t]}})},inherits:function(t){var e=this,i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},n=function(){this.constructor=i};return n.prototype=e.prototype,i.prototype=new n,i.extend=S.inherits,t&&S.extend(i.prototype,t),i.__super__=e.prototype,i},_deprecated:function(t,e,i,n){void 0!==e&&console.warn(t+': "'+i+'" is deprecated. Please use "'+n+'" instead')}},C=S;S.callCallback=S.callback,S.indexOf=function(t,e,i){return Array.prototype.indexOf.call(t,e,i)},S.getValueOrDefault=S.valueOrDefault,S.getValueAtIndexOrDefault=S.valueAtIndexOrDefault;var P={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-Math.cos(t*(Math.PI/2))+1},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return -.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:-Math.pow(2,-10*t)+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:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1===t?1:(i||(i=.3),n<1?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)))},easeOutElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1===t?1:(i||(i=.3),n<1?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},easeInOutElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:2==(t/=.5)?1:(i||(i=.45),n<1?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),t<1)?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1},easeInBack:function(t){return t*t*(2.70158*t-1.70158)},easeOutBack:function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?.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-P.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*P.easeInBounce(2*t):.5*P.easeOutBounce(2*t-1)+.5}};
1C.easingEffects=P;var A=Math.PI,D=A/180,T=2*A,I=A/2,F=A/4,O=2*A/3,L={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,i,n,a,r){if(r){var o=Math.min(r,a/2,n/2),s=e+o,l=i+o,h=e+n-o,u=i+a-o;t.moveTo(e,l),s<h&&l<u?(t.arc(s,l,o,-A,-I),t.arc(h,l,o,-I,0),t.arc(h,u,o,0,I),t.arc(s,u,o,I,A)):s<h?(t.moveTo(s,i),t.arc(h,l,o,-I,I),t.arc(s,l,o,I,A+I)):l<u?(t.arc(s,l,o,-A,0),t.arc(s,u,o,0,A)):t.arc(s,l,o,-A,A),t.closePath(),t.moveTo(e,i)}else t.rect(e,i,n,a)},drawPoint:function(t,e,i,n,a,r){var o,s,l,h,u,d=(r||0)*D;if(e&&"object"==typeof e&&("[object HTMLImageElement]"===(o=e.toString())||"[object HTMLCanvasElement]"===o)){t.save(),t.translate(n,a),t.rotate(d),t.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),t.restore();return}if(!isNaN(i)&&!(i<=0)){switch(t.beginPath(),e){default:t.arc(n,a,i,0,T),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(d)*i,a-Math.cos(d)*i),d+=O,t.lineTo(n+Math.sin(d)*i,a-Math.cos(d)*i),d+=O,t.lineTo(n+Math.sin(d)*i,a-Math.cos(d)*i),t.closePath();break;case"rectRounded":u=.516*i,s=Math.cos(d+F)*(h=i-u),l=Math.sin(d+F)*h,t.arc(n-s,a-l,u,d-A,d-I),t.arc(n+l,a-s,u,d-I,d),t.arc(n+s,a+l,u,d,d+I),t.arc(n-l,a+s,u,d+I,d+A),t.closePath();break;case"rect":if(!r){h=Math.SQRT1_2*i,t.rect(n-h,a-h,2*h,2*h);break}d+=F;case"rectRot":s=Math.cos(d)*i,l=Math.sin(d)*i,t.moveTo(n-s,a-l),t.lineTo(n+l,a-s),t.lineTo(n+s,a+l),t.lineTo(n-l,a+s),t.closePath();break;case"crossRot":d+=F;case"cross":s=Math.cos(d)*i,l=Math.sin(d)*i,t.moveTo(n-s,a-l),t.lineTo(n+s,a+l),t.moveTo(n+l,a-s),t.lineTo(n-l,a+s);break;case"star":s=Math.cos(d)*i,l=Math.sin(d)*i,t.moveTo(n-s,a-l),t.lineTo(n+s,a+l),t.moveTo(n+l,a-s),t.lineTo(n-l,a+s),d+=F,s=Math.cos(d)*i,l=Math.sin(d)*i,t.moveTo(n-s,a-l),t.lineTo(n+s,a+l),t.moveTo(n+l,a-s),t.lineTo(n-l,a+s);break;case"line":s=Math.cos(d)*i,l=Math.sin(d)*i,t.moveTo(n-s,a-l),t.lineTo(n+s,a+l);break;case"dash":t.moveTo(n,a),t.lineTo(n+Math.cos(d)*i,a+Math.sin(d)*i)}t.fill(),t.stroke()}},_isPointInArea:function(t,e){return t.x>e.left-1e-6&&t.x<e.right+1e-6&&t.y>e.top-1e-6&&t.y<e.bottom+1e-6},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,i,n){var a=i.steppedLine;if(a){if("middle"===a){var r=(e.x+i.x)/2;t.lineTo(r,n?i.y:e.y),t.lineTo(r,n?e.y:i.y)}else"after"===a&&!n||"after"!==a&&n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y);return}if(!i.tension){t.lineTo(i.x,i.y);return}t.bezierCurveTo(n?e.controlPointPreviousX:e.controlPointNextX,n?e.controlPointPreviousY:e.controlPointNextY,n?i.controlPointNextX:i.controlPointPreviousX,n?i.controlPointNextY:i.controlPointPreviousY,i.x,i.y)}};C.clear=L.clear,C.drawRoundedRectangle=function(t){t.beginPath(),L.roundedRect.apply(L,arguments)};var R={_set:function(t,e){return C.merge(this[t]||(this[t]={}),e)}};R._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var z=C.valueOrDefault,N={_factorize:function(t){var e,i=[],n=Math.sqrt(t);for(e=1;e<n;e++)t%e==0&&(i.push(e),i.push(t/e));return n===(0|n)&&i.push(n),i.sort(function(t,e){return t-e}).pop(),i},log10:Math.log10||function(t){var e=Math.log(t)*Math.LOG10E,i=Math.round(e);return t===Math.pow(10,i)?i:e}};C.log10=N.log10;var B=function(t,e,i){var n,a;return t?(a=i,{x:function(t){return e+e+a-t},setWidth:function(t){a=t},textAlign:function(t){return"center"===t?t:"right"===t?"left":"right"},xPlus:function(t,e){return t-e},leftForLtr:function(t,e){return t-e}}):{x:function(t){return t},setWidth:function(t){},textAlign:function(t){return t},xPlus:function(t,e){return t+e},leftForLtr:function(t,e){return t}}},E=function(t,e){var i,n;("ltr"===e||"rtl"===e)&&(n=[(i=t.canvas.style).getPropertyValue("direction"),i.getPropertyPriority("direction"),],i.setProperty("direction",e,"important"),t.prevTextDirection=n)},W=function(t){var e=t.prevTextDirection;void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))},V=C;V.easing={effects:P}
vendor: 4,799 bytes, line 1
1,V.canvas=L,V.options={toLineHeight:function(t,e){var i=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,i,n,a;return C.isObject(t)?(e=+t.top||0,i=+t.right||0,n=+t.bottom||0,a=+t.left||0):e=i=n=a=+t||0,{top:e,right:i,bottom:n,left:a,height:e+n,width:a+i}},_parseFont:function(t){var e,i=R.global,n=z(t.fontSize,i.defaultFontSize),a={family:z(t.fontFamily,i.defaultFontFamily),lineHeight:C.options.toLineHeight(z(t.lineHeight,i.defaultLineHeight),n),size:n,style:z(t.fontStyle,i.defaultFontStyle),weight:null,string:""};return a.string=!a||C.isNullOrUndef(a.size)||C.isNullOrUndef(a.family)?null:(a.style?a.style+" ":"")+(a.weight?a.weight+" ":"")+a.size+"px "+a.family,a},resolve:function(t,e,i,n){var a,r,o,s=!0;for(a=0,r=t.length;a<r;++a)if(void 0!==(o=t[a])&&(void 0!==e&&"function"==typeof o&&(o=o(e),s=!1),void 0!==i&&C.isArray(o)&&(o=o[i],s=!1),void 0!==o))return n&&!s&&(n.cacheable=!1),o}},V.math=N,V.rtl={getRtlAdapter:B,overrideTextDirection:E,restoreTextDirection:W};var H=function(t){V.extend(this,t),this.initialize.apply(this,arguments)};V.extend(H.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=V.extend({},t._model)),t._start={},t},transition:function(t){var e=this,i=e._model,n=e._start,a=e._view;return i&&1!==t?(a||(a=e._view={}),n||(n=e._start={}),function(t,e,i,n){var a,r,o,s,l,h,u,d,c,f=Object.keys(i);for(a=0,r=f.length;a<r;++a)if(h=i[o=f[a]],e.hasOwnProperty(o)||(e[o]=h),(s=e[o])!==h&&"_"!==o[0]){if(t.hasOwnProperty(o)||(t[o]=s),l=t[o],(u=typeof h)==typeof l){if("string"===u){if((d=k(l)).valid&&(c=k(h)).valid){e[o]=c.mix(d,n).rgbString();continue}}else if(V.isFinite(l)&&V.isFinite(h)){e[o]=l+(h-l)*n;continue}}e[o]=h}}(n,a,i,t),e):(e._view=V.extend({},i),e._start=null,e)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return V.isNumber(this._model.x)&&V.isNumber(this._model.y)}}),H.extend=V.inherits;var j=H.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null});Object.defineProperty(j.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(j.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}}),R._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:V.noop,onComplete:V.noop}});var q={animations:[],request:null,addAnimation:function(t,e,i,n){var a,r,o=this.animations;for(e.chart=t,e.startTime=Date.now(),e.duration=i,n||(t.animating=!0),a=0,r=o.length;a<r;++a)if(o[a].chart===t){o[a]=e;return}o.push(e),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var e=V.findIndex(this.animations,function(e){return e.chart===t});-1!==e&&(this.animations.splice(e,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=V.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){this.advance(),this.animations.length>0&&this.requestAnimationFrame()},advance:function(){for(var t,e,i,n,a=this.animations,r=0;r<a.length;)e=(t=a[r]).chart,i=t.numSteps,n=Math.floor((Date.now()-t.startTime)/t.duration*i)+1,t.currentStep=Math.min(n,i),V.callback(t.render,[e,t],e),V.callback(t.onAnimationProgress,[t],e),t.currentStep>=i?(V.callback(t.onAnimationComplete,[t],e),e.animating=!1,a.splice(r,1)):++r}},U=V.options.resolve,Y=["push","pop","shift","splice","unshift"];function G(t,e){var i=t._chartjs;if(i){var n=i.listeners,a=n.indexOf(e);-1!==a&&n.splice(a,1),!(n.length>0)&&(Y.forEach(function(e){delete t[e]}),delete t._chartjs)}}var X=function(t,e){this.initialize(t,e)};V.extend(X.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(t,e){var i=this;i.chart=t,i.index=e,i.linkScales(),i.addElements(),i._type=i.getMeta().type},updateIndex:function(t){this.index=t},linkScales:function(){var t=this.getMeta(),e=this.chart,i=e.scales,n=this.getDataset(),a=e.options.scales;null!==t.xAxisID&&t.xAxisID in i&&!n.xAxisID||(t.xAxisID=n.xAxisID||a.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in i&&!n.yAxisID||(t.yAxisID=n.yAxisID||a.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]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID}
1,_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&G(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){var t,e,i=this.getMeta(),n=this.getDataset().data||[],a=i.data;for(t=0,e=n.length;t<e;++t)a[t]=a[t]||this.createMetaData(t);i.dataset=i.dataset||this.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var t=this,e=t.getDataset(),i=e.data||(e.data=[]);t._data!==i&&(t._data&&G(t._data,t),i&&Object.isExtensible(i)&&function(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Y.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),a=n.apply(this,e);return V.each(t._chartjs.listeners,function(t){"function"==typeof t[i]&&t[i].apply(t,e)}),a}})})}(i,t),t._data=i),t.resyncElements()},_configure:function(){var t=this;t._config=V.merge(Object.create(null),[t.chart.options.datasets[t._type],t.getDataset(),],{merger:function(t,e,i){"_meta"!==t&&"data"!==t&&V._merger(t,e,i)}})},_update:function(t){var e=this;e._configure(),e._cachedDataOpts=null,e.update(t)}
1,update:V.noop,transition:function(t){for(var e=this.getMeta(),i=e.data||[],n=i.length,a=0;a<n;++a)i[a].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],i=e.length,n=0;for(t.dataset&&t.dataset.draw();n<i;++n)e[n].draw()},getStyle:function(t){var e,i=this.getMeta(),n=i.dataset;return this._configure(),n&&void 0===t?e=this._resolveDatasetElementOptions(n||{}):(t=t||0,e=this._resolveDataElementOptions(i.data[t]||{},t)),(!1===e.fill||null===e.fill)&&(e.backgroundColor=e.borderColor),e},_resolveDatasetElementOptions:function(t,e){var i,n,a,r,o=this.chart,s=this._config,l=t.custom||{},h=o.options.elements[this.datasetElementType.prototype._type]||{},u=this._datasetElementOptions,d={},c={chart:o,dataset:this.getDataset(),datasetIndex:this.index,hover:e};for(i=0,n=u.length;i<n;++i)a=u[i],r=e?"hover"+a.charAt(0).toUpperCase()+a.slice(1):a,d[a]=U([l[r],s[r],h[r]],c);return d},_resolveDataElementOptions:function(t,e){var i,n,a,r,o=this,s=t&&t.custom,l=o._cachedDataOpts;if(l&&!s)return l;var h=o.chart,u=o._config,d=h.options.elements[o.dataElementType.prototype._type]||{},c=o._dataElementOptions,f={},g={chart:h,dataIndex:e,dataset:o.getDataset(),datasetIndex:o.index},p={cacheable:!s};if(s=s||{},V.isArray(c))for(n=0,a=c.length;n<a;++n)f[r=c[n]]=U([s[r],u[r],d[r]],g,e,p);else for(n=0,a=(i=Object.keys(c)).length;n<a;++n)f[r=i[n]]=U([s[r],u[c[r]],u[r],d[r]],g,e,p);return p.cacheable&&(o._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(t){V.merge(t._model,t.$previousStyle||{}),delete t.$previousStyle},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},a=t._model,r=V.getHoverColor;t.$previousStyle={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderWidth:a.borderWidth},a.backgroundColor=U([n.hoverBackgroundColor,e.hoverBackgroundColor,r(a.backgroundColor)],void 0,i),a.borderColor=U([n.hoverBorderColor,e.hoverBorderColor,r(a.borderColor)],void 0,i),a.borderWidth=U([n.hoverBorderWidth,e.hoverBorderWidth,a.borderWidth],void 0,i)},_removeDatasetHoverStyle:function(){var t=this.getMeta().dataset;t&&this.removeHoverStyle(t)},_setDatasetHoverStyle:function(){var t,e,i,n,a,r,o=this.getMeta().dataset,s={};if(o){for(t=0,r=o._model,e=(n=Object.keys(a=this._resolveDatasetElementOptions(o,!0))).length;t<e;++t)s[i=n[t]]=r[i],r[i]=a[i];o.$previousStyle=s}},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,i=t.data.length,n=e.length;n<i?t.data.splice(n,i-n):n>i&&this.insertElements(i,n-i)},insertElements:function(t,e){for(var i=0;i<e;++i)this.addElementAndReset(t+i)},onDataPush:function(){var t=arguments.length;this.insertElements(this.getDataset().data.length-t,t)},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)}}),X.extend=V.inherits;var K=2*Math.PI;function Z(t,e){var i=e.startAngle,n=e.endAngle,a=e.pixelMargin,r=a/e.outerRadius,o=e.x,s=e.y;t.beginPath(),t.arc(o,s,e.outerRadius,i-r,n+r),e.innerRadius>a?(r=a/e.innerRadius,t.arc(o,s,e.innerRadius-a,n+r,i-r,!0)):t.arc(o,s,a,n+Math.PI/2,i-Math.PI/2),t.closePath(),t.clip()}R._set("global",{elements:{arc:{backgroundColor:R.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var $=H.extend({_type:"arc",inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var i=this._view;if(i){for(var n=V.getAngleFromPoint(i,{x:t,y:e}),a=n.angle,r=n.distance,o=i.startAngle,s=i.endAngle;s<o;)s+=K;for(;a>s;)a-=K;for(;a<o;)a+=K;var l=r>=i.innerRadius&&r<=i.outerRadius;return a>=o&&a<=s&&l}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,e,i,n,a,r=this._chart.ctx,o=this._view,s="inner"===o.borderAlign?.33:0,l={x:o.x,y:o.y,innerRadius:o.innerRadius,outerRadius:Math.max(o.outerRadius-s,0),pixelMargin:s,startAngle:o.startAngle,endAngle:o.endAngle,fullCircles:Math.floor(o.circumference/K)};if(r.save(),r.fillStyle=o.backgroundColor,r.strokeStyle=o.borderColor,l.fullCircles){for(l.endAngle=l.startAngle+K,r.beginPath(),r.arc(l.x,l.y,l.outerRadius,l.startAngle,l.endAngle),r.arc(l.x,l.y,l.innerRadius,l.endAngle,l.startAngle,!0),r.closePath(),a=0;a<l.fullCircles;++a)r.fill();l.endAngle=l.startAngle+o.circumference%K}r.beginPath(),r.arc(l.x,l.y,l.outerRadius,l.startAngle,l.endAngle),r.arc(l.x,l.y,l.innerRadius,l.endAngle,l.startAngle,!0),r.closePath(),r.fill(),o.borderWidth&&(t=r,e=o,i=l,(n="inner"===e.borderAlign)?(t.lineWidth=2*e.borderWidth,t.lineJoin="round"):(t.lineWidth=e.borderWidth,t.lineJoin="bevel"),i.fullCircles&&function(t,e,
1i,n){var a,r=i.endAngle;for(n&&(i.endAngle=i.startAngle+K,Z(t,i),i.endAngle=r,i.endAngle===i.startAngle&&i.fullCircles&&(i.endAngle+=K,i.fullCircles--)),t.beginPath(),t.arc(i.x,i.y,i.innerRadius,i.startAngle+K,i.startAngle,!0),a=0;a<i.fullCircles;++a)t.stroke();for(t.beginPath(),t.arc(i.x,i.y,e.outerRadius,i.startAngle,i.startAngle+K),a=0;a<i.fullCircles;++a)t.stroke()}(t,e,i,n),n&&Z(t,i),t.beginPath(),t.arc(i.x,i.y,e.outerRadius,i.startAngle,i.endAngle),t.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),t.closePath(),t.stroke()),r.restore()}}),J=V.valueOrDefault,Q=R.global.defaultColor;R._set("global",{elements:{line:{tension:.4,backgroundColor:Q,borderWidth:3,borderColor:Q,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var tt=H.extend({_type:"line",draw:function(){var t,e,i,n=this._view,a=this._chart.ctx,r=n.spanGaps,o=this._children.slice(),s=R.global,l=s.elements.line,h=-1,u=this._loop;if(o.length){if(this._loop){for(t=0;t<o.length;++t)if(e=V.previousItem(o,t),!o[t]._view.skip&&e._view.skip){o=o.slice(t).concat(o.slice(0,t)),u=r;break}u&&o.push(o[0])}for(a.save(),a.lineCap=n.borderCapStyle||l.borderCapStyle,a.setLineDash&&a.setLineDash(n.borderDash||l.borderDash),a.lineDashOffset=J(n.borderDashOffset,l.borderDashOffset),a.lineJoin=n.borderJoinStyle||l.borderJoinStyle,a.lineWidth=J(n.borderWidth,l.borderWidth),a.strokeStyle=n.borderColor||s.defaultColor,a.beginPath(),(i=o[0]._view).skip||(a.moveTo(i.x,i.y),h=0),t=1;t<o.length;++t)i=o[t]._view,e=-1===h?V.previousItem(o,t):o[h],i.skip||((h===t-1||r)&&-1!==h?V.canvas.lineTo(a,e._view,i):a.moveTo(i.x,i.y),h=t);u&&a.closePath(),a.stroke(),a.restore()}}}),te=V.valueOrDefault,ti=R.global.defaultColor;function tn(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}R._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:ti,borderColor:ti,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var ta=H.extend({_type:"point",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:tn,inXRange:tn,inYRange:function(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,i=this._chart.ctx,n=e.pointStyle,a=e.rotation,r=e.radius,o=e.x,s=e.y,l=R.global,h=l.defaultColor;!e.skip&&(void 0===t||V.canvas._isPointInArea(e,t))&&(i.strokeStyle=e.borderColor||h,i.lineWidth=te(e.borderWidth,l.elements.point.borderWidth),i.fillStyle=e.backgroundColor||h,V.canvas.drawPoint(i,n,r,o,s,a))}}),tr=R.global.defaultColor;function to(t){return t&&void 0!==t.width}function ts(t){var e,i,n,a,r;return to(t)?(r=t.width/2,e=t.x-r,i=t.x+r,n=Math.min(t.y,t.base),a=Math.max(t.y,t.base)):(r=t.height/2,e=Math.min(t.x,t.base),i=Math.max(t.x,t.base),n=t.y-r,a=t.y+r),{left:e,top:n,right:i,bottom:a}}function tl(t,e,i){return t===e?i:t===i?e:t}function th(t,e,i){var n=null===e,a=null===i,r=!!t&&(!n||!a)&&ts(t);return r&&(n||e>=r.left&&e<=r.right)&&(a||i>=r.top&&i<=r.bottom)}R._set("global",{elements:{rectangle:{backgroundColor:tr,borderColor:tr,borderSkipped:"bottom",borderWidth:0}}});var tu=H.extend({_type:"rectangle",draw:function(){var t,e,i,n,a,r,o,s,l,h,u,d,c,f,g,p,m,v=this._chart.ctx,b=this._view,x=(i=(e=ts(b)).right-e.left,n=e.bottom-e.top,r=i/2,o=n/2,d=b.borderWidth,f=b.borderSkipped,g={},f&&(b.horizontal?b.base>b.x&&(f=tl(f,"left","right")):b.base<b.y&&(f=tl(f,"bottom","top")),g[f]=!0),V.isObject(d)?(s=+d.top||0,l=+d.right||0,h=+d.bottom||0,u=+d.left||0):s=l=h=u=+d||0,m={t:g.top||s<0?0:s>o?o:s,r:g.right||l<0?0:l>r?r:l,b:g.bottom||h<0?0:h>o?o:h,l:g.left||u<0?0:u>r?r:u},{outer:{x:e.left,y:e.top,w:i,h:n},inner:{x:e.left+m.l,y:e.top+m.t,w:i-m.l-m.r,h:n-m.t-m.b}}),y=x.outer,_=x.inner;v.fillStyle=b.backgroundColor,v.fillRect(y.x,y.y,y.w,y.h),(y.w!==_.w||y.h!==_.h)&&(v.save(),v.beginPath(),v.rect(y.x,y.y,y.w,y.h),v.clip(),v.fillStyle=b.borderColor,v.rect(_.x,_.y,_.w,_.h),v.fill("evenodd"),v.restore(
1))},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){return th(this._view,t,e)},inLabelRange:function(t,e){var i=this._view;return to(i)?th(i,t,null):th(i,null,e)},inXRange:function(t){return th(this._view,t,null)},inYRange:function(t){return th(this._view,null,t)},getCenterPoint:function(){var t,e,i=this._view;return to(i)?(t=i.x,e=(i.y+i.base)/2):(t=(i.x+i.base)/2,e=i.y),{x:t,y:e}},getArea:function(){var t=this._view;return to(t)?t.width*Math.abs(t.y-t.base):t.height*Math.abs(t.x-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}}),td={};td.Arc=$,td.Line=tt,td.Point=ta,td.Rectangle=tu;var tc=V._deprecated,tf=V.valueOrDefault;R._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),R._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var tg=X.extend({dataElementType:td.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var t,e;X.prototype.initialize.apply(this,arguments),(t=this.getMeta()).stack=this.getDataset().stack,t.bar=!0,tc("bar chart",(e=this._getIndexScale().options).barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),tc("bar chart",e.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),tc("bar chart",e.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),tc("bar chart",this._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),tc("bar chart",e.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(t){var e,i,n=this,a=n.getMeta().data;for(e=0,n._ruler=n.getRuler(),i=a.length;e<i;++e)n.updateElement(a[e],e,t)},updateElement:function(t,e,i){var n=this.getMeta(),a=this.getDataset(),r=this._resolveDataElementOptions(t,e);t._xScale=this.getScaleForId(n.xAxisID),t._yScale=this.getScaleForId(n.yAxisID),t._datasetIndex=this.index,t._index=e,t._model={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderSkipped:r.borderSkipped,borderWidth:r.borderWidth,datasetLabel:a.label,label:this.chart.data.labels[e]},V.isArray(a.data[e])&&(t._model.borderSkipped=null),this._updateElementGeometry(t,e,i,r),t.pivot()},_updateElementGeometry:function(t,e,i,n){var a=t._model,r=this._getValueScale(),o=r.getBasePixel(),s=r.isHorizontal(),l=this._ruler||this.getRuler(),h=this.calculateBarValuePixels(this.index,e,n),u=this.calculateBarIndexPixels(this.index,e,l,n);a.horizontal=s,a.base=i?o:h.base,a.x=s?i?o:h.head:u.center,a.y=s?u.center:i?o:h.head,a.height=s?u.size:void 0,a.width=s?void 0:u.size},_getStacks:function(t){var e,i,n=this._getIndexScale(),a=n._getMatchingVisibleMetas(this._type),r=n.options.stacked,o=a.length,s=[];for(e=0;e<o&&(i=a[e],(!1===r||-1===s.indexOf(i.stack)||void 0===r&&void 0===i.stack)&&s.push(i.stack),i.index!==t);++e);return s},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){var i=this._getStacks(t),n=void 0!==e?i.indexOf(e):-1;return -1===n?i.length-1:n},getRuler:function(){var t,e,i=this._getIndexScale(),n=[];for(t=0,e=this.getMeta().data.length;t<e;++t)n.push(i.getPixelForValue(null,t,this.index));return{pixels:n,start:i._startPixel,end:i._endPixel,stackCount:this.getStackCount(),scale:i}},calculateBarValuePixels:function(t,e,i){var n,a,r,o,s,l,h,u=this.chart,d=this._getValueScale(),c=d.isHorizontal(),f=u.data.datasets,g=d._getMatchingVisibleMetas(this._type),p=d._parseValue(f[t].data[e]),m=i.minBarLength,v=d.options.stacked,b=this.getMeta().stack,x=void 0===p.start?0:p.max>=0&&p.min>=0?p.min:p.max,y=void 0===p.start?p.end:p.max>=0&&p.min>=0?p.max-p.min:p.min-p.max,_=g.length;if(v||void 0===v&&void 0!==b)for(n=0;n<_&&(a=g[n]).index!==t;++n)a.stack===b&&(r=void 0===(h=d._parseValue(f[a.index].data[e])).start?h.end:h.min>=0&&h.max>=0?h.max:h.min,(p.min<0&&r<0||p.max>=0&&r>0)&&(x+=r));return o=d.getPixelForValue(x),l=(s=d.getPixelForValue(x+y))-o,void 0!==m&&Math.abs(l)<m&&(l=m,s=y>=0&&!c||y<0&&c?o-m:o+m),{size:l,base:o,head:s,center:s+l/2}}
1,calculateBarIndexPixels:function(t,e,i,n){var a,r,o,s,l,h,u,d,c,f,g,p,m,v,b,x,y,_,k="flex"===n.barThickness?(h=(l=i.pixels)[e],u=e>0?l[e-1]:null,d=e<l.length-1?l[e+1]:null,c=n.categoryPercentage,null===u&&(u=h-(null===d?i.end-i.start:d-h)),null===d&&(d=h+h-u),s=h-(h-Math.min(u,d))/2*c,{chunk:Math.abs(d-u)/2*c/i.stackCount,ratio:n.barPercentage,start:s}):(b=n.barThickness,x=i.stackCount,y=i.pixels[e],_=V.isNullOrUndef(b)?function(t,e){var i,n,a,r,o=t._length;for(a=1,r=e.length;a<r;++a)o=Math.min(o,Math.abs(e[a]-e[a-1]));for(a=0,r=t.getTicks().length;a<r;++a)n=t.getPixelForTick(a),o=a>0?Math.min(o,Math.abs(n-i)):o,i=n;return o}(i.scale,i.pixels):-1,V.isNullOrUndef(b)?(m=_*n.categoryPercentage,v=n.barPercentage):(m=b*x,v=1),{chunk:m/x,ratio:v,start:y-m/2}),w=this.getStackIndex(t,this.getMeta().stack),M=k.start+k.chunk*w+k.chunk/2,S=Math.min(tf(n.maxBarThickness,1/0),k.chunk*k.ratio);return{base:M-S/2,head:M+S/2,center:M,size:S}},draw:function(){var t=this.chart,e=this._getValueScale(),i=this.getMeta().data,n=this.getDataset(),a=i.length,r=0;for(V.canvas.clipArea(t.ctx,t.chartArea);r<a;++r){var o=e._parseValue(n.data[r]);isNaN(o.min)||isNaN(o.max)||i[r].draw()}V.canvas.unclipArea(t.ctx)},_resolveDataElementOptions:function(){var t=V.extend({},X.prototype._resolveDataElementOptions.apply(this,arguments)),e=this._getIndexScale().options,i=this._getValueScale().options;return t.barPercentage=tf(e.barPercentage,t.barPercentage),t.barThickness=tf(e.barThickness,t.barThickness),t.categoryPercentage=tf(e.categoryPercentage,t.categoryPercentage),t.maxBarThickness=tf(e.maxBarThickness,t.maxBarThickness),t.minBarLength=tf(i.minBarLength,t.minBarLength),t}}),tp=V.valueOrDefault,tm=V.options.resolve;R._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var i=e.datasets[t.datasetIndex].label||"",n=e.datasets[t.datasetIndex].data[t.index];return i+": ("+t.xLabel+", "+t.yLabel+", "+n.r+")"}}}});var tv=X.extend({dataElementType:td.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(t){var e=this,i=e.getMeta().data;V.each(i,function(i,n){e.updateElement(i,n,t)})},updateElement:function(t,e,i){var n=this.getMeta(),a=t.custom||{},r=this.getScaleForId(n.xAxisID),o=this.getScaleForId(n.yAxisID),s=this._resolveDataElementOptions(t,e),l=this.getDataset().data[e],h=this.index,u=i?r.getPixelForDecimal(.5):r.getPixelForValue("object"==typeof l?l:NaN,e,h),d=i?o.getBasePixel():o.getPixelForValue(l,e,h);t._xScale=r,t._yScale=o,t._options=s,t._datasetIndex=h,t._index=e,t._model={backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth,hitRadius:s.hitRadius,pointStyle:s.pointStyle,rotation:s.rotation,radius:i?0:s.radius,skip:a.skip||isNaN(u)||isNaN(d),x:u,y:d},t.pivot()},setHoverStyle:function(t){var e=t._model,i=t._options,n=V.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=tp(i.hoverBackgroundColor,n(i.backgroundColor)),e.borderColor=tp(i.hoverBorderColor,n(i.borderColor)),e.borderWidth=tp(i.hoverBorderWidth,i.borderWidth),e.radius=i.radius+i.hoverRadius},_resolveDataElementOptions:function(t,e){var i=this.chart,n=this.getDataset(),a=t.custom||{},r=n.data[e]||{},o=X.prototype._resolveDataElementOptions.apply(this,arguments),s={chart:i,dataIndex:e,dataset:n,datasetIndex:this.index};return this._cachedDataOpts===o&&(o=V.extend({},o)),o.radius=tm([a.radius,r.r,this._config.radius,i.options.elements.point.radius],s,e),o}}),tb=V.valueOrDefault,tx=Math.PI,ty=2*tx,t_=tx/2;R._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e,i,n,a,r=document.createElement("ul"),o=t.data,s=o.datasets,l=o.labels;if(r.setAttribute("class",t.id+"-legend"),s.length)for(e=0,i=s[0].data.length;e<i;++e)(n=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=s[0].backgroundColor[e],l[e]&&n.appendChild(document.createTextNode(l[e]));return r.outerHTML},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(i,n){var a=t.getDatasetMeta(0),r=a.controller.getStyle(n);return{text:i,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,hidden:isNaN(e.datasets[0].data[n])||a.data[n].hidden,index:n}}):[]}},onClick:function(t,e){var i,n,a,r=e.index,o=this.chart;for(i=0,n=(o.data.datasets||[]).length;i<n;++i)(a=o.getDatasetMeta(i)).data[r]&&(a.data[r].hidden=!a.data[r].hidden);o.update()}},cutoutPercentage:50,rotation:-t_,circumference:ty,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var i=e.labels[t.index],n=": "+e.datasets[t.datasetIndex].data[t.index];return V.isArray(i)?(i=i.slice(),i[0]+=n):i+=n,i}}}});var tk=X.extend({dataElementType:td.Arc,linkScales:V.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroun
1dColor","hoverBorderColor","hoverBorderWidth",],getRingIndex:function(t){for(var e=0,i=0;i<t;++i)this.chart.isDatasetVisible(i)&&++e;return e},update:function(t){var e,i,n,a,r=this,o=r.chart,s=o.chartArea,l=o.options,h=1,u=1,d=0,c=0,f=r.getMeta(),g=f.data,p=l.cutoutPercentage/100||0,m=l.circumference,v=r._getRingWeight(r.index);if(m<ty){var b=l.rotation%ty;b+=b>=tx?-ty:b<-tx?ty:0;var x=b+m,y=Math.cos(b),_=Math.sin(b),k=Math.cos(x),w=Math.sin(x),M=b===-tx||x>=tx?-1:Math.min(y,y*p,k,k*p),S=b<=-t_&&x>=-t_||x>=tx+t_?-1:Math.min(_,_*p,w,w*p),C=b<=0&&x>=0||x>=ty?1:Math.max(y,y*p,k,k*p),P=b<=t_&&x>=t_||x>=ty+t_?1:Math.max(_,_*p,w,w*p);h=(C-M)/2,u=(P-S)/2,d=-(C+M)/2,c=-(P+S)/2}for(n=0,a=g.length;n<a;++n)g[n]._options=r._resolveDataElementOptions(g[n],n);for(n=0,o.borderWidth=r.getMaxBorderWidth(),e=(s.right-s.left-o.borderWidth)/h,i=(s.bottom-s.top-o.borderWidth)/u,o.outerRadius=Math.max(Math.min(e,i)/2,0),o.innerRadius=Math.max(o.outerRadius*p,0),o.radiusLength=(o.outerRadius-o.innerRadius)/(r._getVisibleDatasetWeightTotal()||1),o.offsetX=d*o.outerRadius,o.offsetY=c*o.outerRadius,f.total=r.calculateTotal(),r.outerRadius=o.outerRadius-o.radiusLength*r._getRingWeightOffset(r.index),r.innerRadius=Math.max(r.outerRadius-o.radiusLength*v,0),a=g.length;n<a;++n)r.updateElement(g[n],n,t)},updateElement:function(t,e,i){var n=this.chart,a=n.chartArea,r=n.options,o=r.animation,s=(a.left+a.right)/2,l=(a.top+a.bottom)/2,h=r.rotation,u=r.rotation,d=this.getDataset(),c=i&&o.animateRotate?0:t.hidden?0:this.calculateCircumference(d.data[e])*(r.circumference/ty),f=i&&o.animateScale?0:this.innerRadius,g=i&&o.animateScale?0:this.outerRadius,p=t._options||{};V.extend(t,{_datasetIndex:this.index,_index:e,_model:{backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,borderAlign:p.borderAlign,x:s+n.offsetX,y:l+n.offsetY,startAngle:h,endAngle:u,circumference:c,outerRadius:g,innerRadius:f,label:V.valueAtIndexOrDefault(d.label,e,n.data.labels[e])}});var m=t._model;i&&o.animateRotate||(0===e?m.startAngle=r.rotation:m.startAngle=this.getMeta().data[e-1]._model.endAngle,m.endAngle=m.startAngle+m.circumference),t.pivot()},calculateTotal:function(){var t,e=this.getDataset(),i=this.getMeta(),n=0;return V.each(i.data,function(i,a){isNaN(t=e.data[a])||i.hidden||(n+=Math.abs(t))}),n},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?ty*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,i,n,a,r,o,s,l,h=0,u=this.chart;if(!t){for(e=0,i=u.data.datasets.length;e<i;++e)if(u.isDatasetVisible(e)){t=(n=u.getDatasetMeta(e)).data,e!==this.index&&(r=n.controller);break}}if(!t)return 0;for(e=0,i=t.length;e<i;++e)a=t[e],r?(r._configure(),o=r._resolveDataElementOptions(a,e)):o=a._options,"inner"!==o.borderAlign&&(s=o.borderWidth,h=(l=o.hoverBorderWidth)>(h=s>h?s:h)?l:h);return h},setHoverStyle:function(t){var e=t._model,i=t._options,n=V.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=tb(i.hoverBackgroundColor,n(i.backgroundColor)),e.borderColor=tb(i.hoverBorderColor,n(i.borderColor)),e.borderWidth=tb(i.hoverBorderWidth,i.borderWidth)},_getRingWeightOffset:function(t){for(var e=0,i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e},_getRingWeight:function(t){return Math.max(tb(this.chart.data.datasets[t].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});R._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),R._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var tw=tg.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),tM=V.valueOrDefault,tS=V.options.resolve,tC=V.canvas._isPointInArea;function tP(t,e){var i=t&&t.options.ticks||{},n=i.reverse,a=void 0===i.min?e:0,r=void 0===i.max?e:0;return{start:n?r:a,end:n?a:r}}R._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var tA=X.extend({datasetElementType:td.Line,dataElementType:td.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
1dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(t){var e,i,n=this,a=n.getMeta(),r=a.dataset,o=a.data||[],s=n.chart.options,l=n._config,h=n._showLine=tM(l.showLine,s.showLines);for(n._xScale=n.getScaleForId(a.xAxisID),n._yScale=n.getScaleForId(a.yAxisID),h&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),r._scale=n._yScale,r._datasetIndex=n.index,r._children=o,r._model=n._resolveDatasetElementOptions(r),r.pivot()),e=0,i=o.length;e<i;++e)n.updateElement(o[e],e,t);for(h&&0!==r._model.tension&&n.updateBezierControlPoints(),e=0,i=o.length;e<i;++e)o[e].pivot()},updateElement:function(t,e,i){var n,a,r=this.getMeta(),o=t.custom||{},s=this.getDataset(),l=this.index,h=s.data[e],u=this._xScale,d=this._yScale,c=r.dataset._model,f=this._resolveDataElementOptions(t,e);n=u.getPixelForValue("object"==typeof h?h:NaN,e,l),a=i?d.getBasePixel():this.calculatePointY(h,e,l),t._xScale=u,t._yScale=d,t._options=f,t._datasetIndex=l,t._index=e,t._model={x:n,y:a,skip:o.skip||isNaN(n)||isNaN(a),radius:f.radius,pointStyle:f.pointStyle,rotation:f.rotation,backgroundColor:f.backgroundColor,borderColor:f.borderColor,borderWidth:f.borderWidth,tension:tM(o.tension,c?c.tension:0),steppedLine:!!c&&c.steppedLine,hitRadius:f.hitRadius}},_resolveDatasetElementOptions:function(t){var e,i,n,a,r,o,s,l,h,u,d,c=this._config,f=t.custom||{},g=this.chart.options,p=g.elements.line,m=X.prototype._resolveDatasetElementOptions.apply(this,arguments);return m.spanGaps=tM(c.spanGaps,g.spanGaps),m.tension=tM(c.lineTension,p.tension),m.steppedLine=tS([f.steppedLine,c.steppedLine,p.stepped]),m.clip=(s=tM(c.clip,(e=this._xScale,i=this._yScale,r=tP(e,a=(n=m.borderWidth)/2),{top:(o=tP(i,a)).end,right:r.end,bottom:o.start,left:r.start})),V.isObject(s)?(l=s.top,h=s.right,u=s.bottom,d=s.left):l=h=u=d=s,{top:l,right:h,bottom:u,left:d}),m},calculatePointY:function(t,e,i){var n,a,r,o,s,l,h,u=this.chart,d=this._yScale,c=0,f=0;if(d.options.stacked){for(n=0,s=+d.getRightValue(t),h=(l=u._getSortedVisibleDatasetMetas()).length;n<h&&(r=l[n]).index!==i;++n)a=u.data.datasets[r.index],"line"===r.type&&r.yAxisID===d.id&&((o=+d.getRightValue(a.data[e]))<0?f+=o||0:c+=o||0);return s<0?d.getPixelForValue(f+s):d.getPixelForValue(c+s)}return d.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,i,n,a=this.chart,r=this.getMeta(),o=r.dataset._model,s=a.chartArea,l=r.data||[];function h(t,e,i){return Math.max(Math.min(t,i),e)}if(o.spanGaps&&(l=l.filter(function(t){return!t._model.skip})),"monotone"===o.cubicInterpolationMode)V.splineCurveMonotone(l);else for(t=0,e=l.length;t<e;++t)i=l[t]._model,n=V.splineCurve(V.previousItem(l,t)._model,i,V.nextItem(l,t)._model,o.tension),i.controlPointPreviousX=n.previous.x,i.controlPointPreviousY=n.previous.y,i.controlPointNextX=n.next.x,i.controlPointNextY=n.next.y;if(a.options.elements.line.capBezierPoints)for(t=0,e=l.length;t<e;++t)tC(i=l[t]._model,s)&&(t>0&&tC(l[t-1]._model,s)&&(i.controlPointPreviousX=h(i.controlPointPreviousX,s.left,s.right),i.controlPointPreviousY=h(i.controlPointPreviousY,s.top,s.bottom)),t<l.length-1&&tC(l[t+1]._model,s)&&(i.controlPointNextX=h(i.controlPointNextX,s.left,s.right),i.controlPointNextY=h(i.controlPointNextY,s.top,s.bottom)))},draw:function(){var t,e=this.chart,i=this.getMeta(),n=i.data||[],a=e.chartArea,r=e.canvas,o=0,s=n.length;for(this._showLine&&(t=i.dataset._model.clip,V.canvas.clipArea(e.ctx,{left:!1===t.left?0:a.left-t.left,right:!1===t.right?r.width:a.right+t.right,top:!1===t.top?0:a.top-t.top,bottom:!1===t.bottom?r.height:a.bottom+t.bottom}),i.dataset.draw(),V.canvas.unclipArea(e.ctx));o<s;++o)n[o].draw(a)},setHoverStyle:function(t){var e=t._model,i=t._options,n=V.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius}
1,e.backgroundColor=tM(i.hoverBackgroundColor,n(i.backgroundColor)),e.borderColor=tM(i.hoverBorderColor,n(i.borderColor)),e.borderWidth=tM(i.hoverBorderWidth,i.borderWidth),e.radius=tM(i.hoverRadius,i.radius)}}),tD=V.options.resolve;R._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e,i,n,a,r=document.createElement("ul"),o=t.data,s=o.datasets,l=o.labels;if(r.setAttribute("class",t.id+"-legend"),s.length)for(e=0,i=s[0].data.length;e<i;++e)(n=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=s[0].backgroundColor[e],l[e]&&n.appendChild(document.createTextNode(l[e]));return r.outerHTML},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(i,n){var a=t.getDatasetMeta(0),r=a.controller.getStyle(n);return{text:i,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,hidden:isNaN(e.datasets[0].data[n])||a.data[n].hidden,index:n}}):[]}},onClick:function(t,e){var i,n,a,r=e.index,o=this.chart;for(i=0,n=(o.data.datasets||[]).length;i<n;++i)(a=o.getDatasetMeta(i)).data[r].hidden=!a.data[r].hidden;o.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}});var tT=X.extend({dataElementType:td.Arc,linkScales:V.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth",],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(t){var e,i,n,a=this,r=a.getDataset(),o=a.getMeta(),s=a.chart.options.startAngle||0,l=a._starts=[],h=a._angles=[],u=o.data;for(a._updateRadius(),o.count=a.countVisibleElements(),e=0,i=r.data.length;e<i;e++)l[e]=s,n=a._computeAngle(e),h[e]=n,s+=n;for(e=0,i=u.length;e<i;++e)u[e]._options=a._resolveDataElementOptions(u[e],e),a.updateElement(u[e],e,t)},_updateRadius:function(){var t=this,e=t.chart,i=e.chartArea,n=e.options,a=Math.min(i.right-i.left,i.bottom-i.top);e.outerRadius=Math.max(a/2,0),e.innerRadius=Math.max(n.cutoutPercentage?e.outerRadius/100*n.cutoutPercentage:1,0),e.radiusLength=(e.outerRadius-e.innerRadius)/e.getVisibleDatasetCount(),t.outerRadius=e.outerRadius-e.radiusLength*t.index,t.innerRadius=t.outerRadius-e.radiusLength},updateElement:function(t,e,i){var n=this.chart,a=this.getDataset(),r=n.options,o=r.animation,s=n.scale,l=n.data.labels,h=s.xCenter,u=s.yCenter,d=r.startAngle,c=t.hidden?0:s.getDistanceFromCenterForValue(a.data[e]),f=this._starts[e],g=f+(t.hidden?0:this._angles[e]),p=o.animateScale?0:s.getDistanceFromCenterForValue(a.data[e]),m=t._options||{};V.extend(t,{_datasetIndex:this.index,_index:e,_scale:s,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:h,y:u,innerRadius:0,outerRadius:i?p:c,startAngle:i&&o.animateRotate?d:f,endAngle:i&&o.animateRotate?d:g,label:V.valueAtIndexOrDefault(l,e,l[e])}}),t.pivot()},countVisibleElements:function(){var t=this.getDataset(),e=this.getMeta(),i=0;return V.each(e.data,function(e,n){!isNaN(t.data[n])&&!e.hidden&&i++}),i},setHoverStyle:function(t){var e=t._model,i=t._options,n=V.getHoverColor,a=V.valueOrDefault;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=a(i.hoverBackgroundColor,n(i.backgroundColor)),e.borderColor=a(i.hoverBorderColor,n(i.borderColor)),e.borderWidth=a(i.hoverBorderWidth,i.borderWidth)},_computeAngle:function(t){var e=this.getMeta().count,i=this.getDataset(),n=this.getMeta();if(isNaN(i.data[t])||n.data[t].hidden)return 0;var a={chart:this.chart,dataIndex:t,dataset:i,datasetIndex:this.index};return tD([this.chart.options.elements.arc.angle,2*Math.PI/e],a,t)}});R._set("pie",V.clone(R.doughnut)),R._set("pie",{cutoutPercentage:0});var tI=V.valueOrDefault;R._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var tF=X.extend({datasetElementType:td.Line,dataElementType:td.Point,linkScales:V.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
1dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(t){var e,i,n=this.getMeta(),a=n.dataset,r=n.data||[],o=this.chart.scale,s=this._config;for(void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),a._scale=o,a._datasetIndex=this.index,a._children=r,a._loop=!0,a._model=this._resolveDatasetElementOptions(a),a.pivot(),e=0,i=r.length;e<i;++e)this.updateElement(r[e],e,t);for(this.updateBezierControlPoints(),e=0,i=r.length;e<i;++e)r[e].pivot()},updateElement:function(t,e,i){var n=t.custom||{},a=this.getDataset(),r=this.chart.scale,o=r.getPointPositionForValue(e,a.data[e]),s=this._resolveDataElementOptions(t,e),l=this.getMeta().dataset._model,h=i?r.xCenter:o.x,u=i?r.yCenter:o.y;t._scale=r,t._options=s,t._datasetIndex=this.index,t._index=e,t._model={x:h,y:u,skip:n.skip||isNaN(h)||isNaN(u),radius:s.radius,pointStyle:s.pointStyle,rotation:s.rotation,backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth,tension:tI(n.tension,l?l.tension:0),hitRadius:s.hitRadius}},_resolveDatasetElementOptions:function(){var t=this._config,e=this.chart.options,i=X.prototype._resolveDatasetElementOptions.apply(this,arguments);return i.spanGaps=tI(t.spanGaps,e.spanGaps),i.tension=tI(t.lineTension,e.elements.line.tension),i},updateBezierControlPoints:function(){var t,e,i,n,a=this.getMeta(),r=this.chart.chartArea,o=a.data||[];function s(t,e,i){return Math.max(Math.min(t,i),e)}for(a.dataset._model.spanGaps&&(o=o.filter(function(t){return!t._model.skip})),t=0,e=o.length;t<e;++t)i=o[t]._model,n=V.splineCurve(V.previousItem(o,t,!0)._model,i,V.nextItem(o,t,!0)._model,i.tension),i.controlPointPreviousX=s(n.previous.x,r.left,r.right),i.controlPointPreviousY=s(n.previous.y,r.top,r.bottom),i.controlPointNextX=s(n.next.x,r.left,r.right),i.controlPointNextY=s(n.next.y,r.top,r.bottom)},setHoverStyle:function(t){var e=t._model,i=t._options,n=V.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=tI(i.hoverBackgroundColor,n(i.backgroundColor)),e.borderColor=tI(i.hoverBorderColor,n(i.borderColor)),e.borderWidth=tI(i.hoverBorderWidth,i.borderWidth),e.radius=tI(i.hoverRadius,i.radius)}});R._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),R._set("global",{datasets:{scatter:{showLine:!1}}});var tO={bar:tg,bubble:tv,doughnut:tk,horizontalBar:tw,line:tA,polarArea:tT,pie:tk,radar:tF,scatter:tA};function tL(t,e){return t.native?{x:t.x,y:t.y}:V.getRelativePosition(t,e)}function tR(t,e){var i,n,a,r,o,s,l=t._getSortedVisibleDatasetMetas();for(n=0,r=l.length;n<r;++n)for(a=0,o=(i=l[n].data).length;a<o;++a)(s=i[a])._view.skip||e(s)}function tz(t,e){var i=[];return tR(t,function(t){t.inRange(e.x,e.y)&&i.push(t)}),i}function tN(t,e,i,n){var a=Number.POSITIVE_INFINITY,r=[];return tR(t,function(t){if(!i||t.inRange(e.x,e.y)){var o=n(e,t.getCenterPoint());o<a?(r=[t],a=o):o===a&&r.push(t)}}),r}function tB(t){var e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,n){var a;return Math.sqrt(Math.pow(e?Math.abs(t.x-n.x):0,2)+Math.pow(i?Math.abs(t.y-n.y):0,2))}}function tE(t,e,i){var n=tL(e,t);i.axis=i.axis||"x";var a=tB(i.axis),r=i.intersect?tz(t,n):tN(t,n,!1,a),o=[];return r.length?(t._getSortedVisibleDatasetMetas().forEach(function(t){var e=t.data[r[0]._index];e&&!e._view.skip&&o.push(e)}),o):[]}var tW={modes:{single:function(t,e){var i=tL(e,t),n=[];return tR(t,function(t){if(t.inRange(i.x,i.y))return n.push(t),n}),n.slice(0,1)}
vendor: 1,591 bytes, line 1
1,label:tE,index:tE,dataset:function(t,e,i){var n=tL(e,t);i.axis=i.axis||"xy";var a=tB(i.axis),r=i.intersect?tz(t,n):tN(t,n,!1,a);return r.length>0&&(r=t.getDatasetMeta(r[0]._datasetIndex).data),r},"x-axis":function(t,e){return tE(t,e,{intersect:!1})},point:function(t,e){var i=tL(e,t);return tz(t,i)},nearest:function(t,e,i){var n=tL(e,t);i.axis=i.axis||"xy";var a=tB(i.axis);return tN(t,n,i.intersect,a)},x:function(t,e,i){var n=tL(e,t),a=[],r=!1;return tR(t,function(t){t.inXRange(n.x)&&a.push(t),t.inRange(n.x,n.y)&&(r=!0)}),i.intersect&&!r&&(a=[]),a},y:function(t,e,i){var n=tL(e,t),a=[],r=!1;return tR(t,function(t){t.inYRange(n.y)&&a.push(t),t.inRange(n.x,n.y)&&(r=!0)}),i.intersect&&!r&&(a=[]),a}}},tV=V.extend;function tH(t,e){return V.where(t,function(t){return t.pos===e})}function tj(t,e){return t.sort(function(t,i){var n=e?i:t,a=e?t:i;return n.weight===a.weight?n.index-a.index:n.weight-a.weight})}function tq(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function tU(t,e,i){var n,a,r=i.box,o=t.maxPadding;if(i.size&&(t[i.pos]-=i.size),i.size=i.horizontal?r.height:r.width,t[i.pos]+=i.size,r.getPadding){var s=r.getPadding();o.top=Math.max(o.top,s.top),o.left=Math.max(o.left,s.left),o.bottom=Math.max(o.bottom,s.bottom),o.right=Math.max(o.right,s.right)}if(n=e.outerWidth-tq(o,t,"left","right"),a=e.outerHeight-tq(o,t,"top","bottom"),n!==t.w||a!==t.h){t.w=n,t.h=a;var l=i.horizontal?[n,t.w]:[a,t.h];return l[0]!==l[1]&&(!isNaN(l[0])||!isNaN(l[1]))}}function tY(t,e){var i,n,a=e.maxPadding;return i=t?["left","right"]:["top","bottom"],n={left:0,top:0,right:0,bottom:0}
1,i.forEach(function(t){n[t]=Math.max(e[t],a[t])}),n}function tG(t,e,i){var n,a,r,o,s,l,h=[];for(n=0,a=t.length;n<a;++n)(o=(r=t[n]).box).update(r.width||e.w,r.height||e.h,tY(r.horizontal,e)),tU(e,i,r)&&(l=!0,h.length&&(s=!0)),o.fullWidth||h.push(r);return s&&tG(h,e,i)||l}function tX(t,e,i){var n,a,r,o,s=i.padding,l=e.x,h=e.y;for(n=0,a=t.length;n<a;++n)o=(r=t[n]).box,r.horizontal?(o.left=o.fullWidth?s.left:e.left,o.right=o.fullWidth?i.outerWidth-s.right:e.left+e.w,o.top=h,o.bottom=h+o.height,o.width=o.right-o.left,h=o.bottom):(o.left=l,o.right=l+o.width,o.top=e.top,o.bottom=e.top+e.h,o.height=o.bottom-o.top,l=o.right);e.x=l,e.y=h}R._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var tK,tZ={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw:function(){e.draw.apply(e,arguments)}}]},t.boxes.push(e)},removeBox:function(t,e){var i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure:function(t,e,i){for(var n,a=["fullWidth","position","weight"],r=a.length,o=0;o<r;++o)n=a[o],i.hasOwnProperty(n)&&(e[n]=i[n])},update:function(t,e,i){if(t){var n,a,r,o,s,l,h=t.options.layout||{},u=V.options.toPadding(h.padding),d=e-u.width,c=i-u.height,f=(a=function(t){var e,i,n,a=[];for(e=0,i=(t||[]).length;e<i;++e)n=t[e],a.push({index:e,box:n,pos:n.position,horizontal:n.isHorizontal(),weight:n.weight});return a}(n=t.boxes),r=tj(tH(a,"left"),!0),o=tj(tH(a,"right")),s=tj(tH(a,"top"),!0),l=tj(tH(a,"bottom")),{leftAndTop:r.concat(s),rightAndBottom:o.concat(l),chartArea:tH(a,"chartArea"),vertical:r.concat(o),horizontal:s.concat(l)}),g=f.vertical,p=f.horizontal,m=Object.freeze({outerWidth:e,outerHeight:i,padding:u,availableWidth:d,vBoxMaxWidth:d/2/g.length,hBoxMaxHeight:c/2}),v=tV({maxPadding:tV({},u),w:d,h:c,x:u.left,y:u.top},u);(function(t,e){var i,n,a;for(i=0,n=t.length;i<n;++i)(a=t[i]).width=a.horizontal?a.box.fullWidth&&e.availableWidth:e.vBoxMaxWidth,a.height=a.horizontal&&e.hBoxMaxHeight})(g.concat(p),m),tG(g,v,m),tG(p,v,m)&&tG(g,v,m),function(t){var e=t.maxPadding;function i(i){var n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(v),tX(f.leftAndTop,v,m),v.x+=v.w,v.y+=v.h,tX(f.rightAndBottom,v,m),t.chartArea={left:v.left,top:v.top,right:v.left+v.w,bottom:v.top+v.h},V.each(f.chartArea,function(e){var i=e.box;tV(i,t.chartArea),i.update(v.w,v.h)})}}},t$=(tK=Object.freeze({__proto__:null,default:"/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n from { opacity: 0.99; }\r\n to { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n animation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n position: absolute;\r\n direction: ltr;\r\n left: 0;\r\n top: 0;\r\n right: 0;\r\n bottom: 0;\r\n overflow: hidden;\r\n pointer-events: none;\r\n visibility: hidden;\r\n z-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n position: absolute;\r\n width: 1000000px;\r\n height: 1000000px;\r\n left: 0;\r\n top: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n position: absolute;\r\n width: 200%;\r\n height: 200%;\r\n left: 0;\r\n top: 0;\r\n}\r\n"}))&&tK.default||tK,tJ="$chartjs",tQ="chartjs-",t0=tQ+"size-monitor",t1=tQ+"render-monitor",t2=tQ+"render-animation",t5=["animationstart","webkitAnimationStart"],t3={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function t6(t,e){var i=V.getStyle(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?Number(n[1]):void 0}var t4=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(i){}return t}()&&{passive:!0};function t8(t,e,i){t.addEventListener(e,i,t4)}
1function t7(t,e,i){t.removeEventListener(e,i,t4)}function t9(t,e,i,n,a){return{type:t,chart:e,native:a||null,x:void 0!==i?i:null,y:void 0!==n?n:null}}function et(t){var e=document.createElement("div");return e.className=t||"",e}var ee={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(t){if(!this.disableCSSInjection){var e=t.getRootNode?t.getRootNode():document;!function(t,e){var i=t[tJ]||(t[tJ]={});if(!i.containsStyles){i.containsStyles=!0,e="/* Chart.js */\n"+e;var n=document.createElement("style");n.setAttribute("type","text/css"),n.appendChild(document.createTextNode(e)),t.appendChild(n)}}(e.host?e:document.head,t$)}},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(this._ensureLoaded(t),function(t,e){var i=t.style,n=t.getAttribute("height"),a=t.getAttribute("width");if(t[tJ]={initial:{height:n,width:a,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",null===a||""===a){var r=t6(t,"width");void 0!==r&&(t.width=r)}if(null===n||""===n){if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var o=t6(t,"height");void 0!==r&&(t.height=o)}}}(t,e),i):null},releaseContext:function(t){var e=t.canvas;if(e[tJ]){var i=e[tJ].initial;["height","width"].forEach(function(t){var n=i[t];V.isNullOrUndef(n)?e.removeAttribute(t):e.setAttribute(t,n)}),V.each(i.style||{},function(t,i){e.style[i]=t}),e.width=e.width,delete e[tJ]}},addEventListener:function(t,e,i){var n=t.canvas;if("resize"===e){a=n,r=i,o=t,v=(s=a[tJ]||(a[tJ]={})).resizer=(l=function(){if(s.resizer){var t=o.options.maintainAspectRatio&&a.parentNode,e=t?t.clientWidth:0;r(t9("resize",o)),t&&t.clientWidth<e&&o.canvas&&r(t9("resize",o))}},u=!1,d=[],c=function(){d=Array.prototype.slice.call(arguments),h=h||this,u||(u=!0,V.requestAnimFrame.call(window,function(){u=!1,l.apply(h,d)}))},f=et(t0),g=et(t0+"-expand"),p=et(t0+"-shrink"),g.appendChild(et()),p.appendChild(et()),f.appendChild(g),f.appendChild(p),f._reset=function(){g.scrollLeft=1e6,g.scrollTop=1e6,p.scrollLeft=1e6,p.scrollTop=1e6},t8(g,"scroll",(m=function(){f._reset(),c()}).bind(g,"expand")),t8(p,"scroll",m.bind(p,"shrink")),f),b=a,x=function(){if(s.resizer){var t=a.parentNode;t&&t!==v.parentNode&&t.insertBefore(v,t.firstChild),v._reset()}},_=(y=b[tJ]||(b[tJ]={})).renderProxy=function(t){t.animationName===t2&&x()},V.each(t5,function(t){t8(b,t,_)}),y.reflow=!!b.offsetParent,b.classList.add(t1);return}var a,r,o,s,l,h,u,d,c,f,g,p,m,v,b,x,y,_,k=i[tJ]||(i[tJ]={}),w=(k.proxies||(k.proxies={}))[t.id+"_"+e]=function(e){var n,a,r,o;i((r=t3[e.type]||e.type,o=V.getRelativePosition(e,t),t9(r,t,o.x,o.y,e)))};t8(n,e,w)},removeEventListener:function(t,e,i){var n=t.canvas;if("resize"===e){o=(r=(a=n)[tJ]||{}).resizer,delete r.resizer,(h=(l=(s=a)[tJ]||{}).renderProxy)&&(V.each(t5,function(t){t7(s,t,h)}),delete l.renderProxy),s.classList.remove(t1),o&&o.parentNode&&o.parentNode.removeChild(o);return}var a,r,o,s,l,h,u=((i[tJ]||{}).proxies||{})[t.id+"_"+e];u&&t7(n,e,u)}};V.addEvent=t8,V.removeEvent=t7;var ei=ee._enabled?ee:{acquireContext:function(t){return t&&t.canvas&&(t=t.canvas),t&&t.getContext("2d")||null}},en=V.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},ei);R._set("global",{plugins:{}});var ea={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var i=e.indexOf(t);-1!==i&&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 n,a,r,o,s,l=this.descriptors(t),h=l.length;for(n=0;n<h;++n)if("function"==typeof(s=(r=(a=l[n]).plugin)[e])&&((o=[t].concat(i||[])).push(a.options),!1===s.apply(r,o)))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var i=[],n=[],a=t&&t.config||{},r=a.options&&a.options.plugins||{};
vendor: 4,276 bytes, line 1
1return this._plugins.concat(a.plugins||[]).forEach(function(t){if(-1===i.indexOf(t)){var e=t.id,a=r[e];!1!==a&&(!0===a&&(a=V.clone(R.global.plugins[e])),i.push(t),n.push({plugin:t,options:a||{}}))}}),e.descriptors=n,e.id=this._cacheId,n},_invalidate:function(t){delete t.$plugins}},er={constructors:{},defaults:{},registerScaleType:function(t,e,i){this.constructors[t]=e,this.defaults[t]=V.clone(i)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?V.merge(Object.create(null),[R.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){var i=this;i.defaults.hasOwnProperty(t)&&(i.defaults[t]=V.extend(i.defaults[t],e))},addScalesToLayout:function(t){V.each(t.scales,function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,tZ.addBox(t,e)})}},eo=V.valueOrDefault,es=V.rtl.getRtlAdapter;R._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:V.noop,title:function(t,e){var i="",n=e.labels,a=n?n.length:0;if(t.length>0){var r=t[0];r.label?i=r.label:r.xLabel?i=r.xLabel:a>0&&r.index<a&&(i=n[r.index])}return i},afterTitle:V.noop,beforeBody:V.noop,beforeLabel:V.noop,label:function(t,e){var i=e.datasets[t.datasetIndex].label||"";return i&&(i+=": "),V.isNullOrUndef(t.value)?i+=t.yLabel:i+=t.value,i},labelColor:function(t,e){var i=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:V.noop,afterBody:V.noop,beforeFooter:V.noop,footer:V.noop,afterFooter:V.noop}}});var el={average:function(t){if(!t.length)return!1;var e,i,n=0,a=0,r=0;for(e=0,i=t.length;e<i;++e){var o=t[e];if(o&&o.hasValue()){var s=o.tooltipPosition();n+=s.x,a+=s.y,++r}}return{x:n/r,y:a/r}},nearest:function(t,e){var i,n,a,r=e.x,o=e.y,s=Number.POSITIVE_INFINITY;for(i=0,n=t.length;i<n;++i){var l=t[i];if(l&&l.hasValue()){var h=l.getCenterPoint(),u=V.distanceBetweenPoints(e,h);u<s&&(s=u,a=l)}}if(a){var d=a.tooltipPosition();r=d.x,o=d.y}return{x:r,y:o}}};function eh(t,e){return e&&(V.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function eu(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function ed(t){var e=t._xScale,i=t._yScale||t._scale,n=t._index,a=t._datasetIndex,r=t._chart.getDatasetMeta(a).controller,o=r._getIndexScale(),s=r._getValueScale();return{xLabel:e?e.getLabelForIndex(n,a):"",yLabel:i?i.getLabelForIndex(n,a):"",label:o?""+o.getLabelForIndex(n,a):"",value:s?""+s.getLabelForIndex(n,a):"",index:n,datasetIndex:a,x:t._model.x,y:t._model.y}}function ec(t){var e=R.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,rtl:t.rtl,textDirection:t.textDirection,bodyFontColor:t.bodyFontColor,_bodyFontFamily:eo(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:eo(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:eo(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:eo(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:eo(t.titleFontStyle,e.defaultFontStyle),titleFontSize:eo(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:eo(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:eo(t.footerFontStyle,e.defaultFontStyle),footerFontSize:eo(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackgroun
1d:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function ef(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function eg(t){return eh([],eu(t))}var ep,em=H.extend({initialize:function(){this._model=ec(this._options),this._lastActive=[]},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),i=t.title.apply(this,arguments),n=t.afterTitle.apply(this,arguments),a=[];return a=eh(a,eu(e)),a=eh(a,eu(i)),a=eh(a,eu(n))},getBeforeBody:function(){return eg(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var i=this,n=i._options.callbacks,a=[];return V.each(t,function(t){var r={before:[],lines:[],after:[]};eh(r.before,eu(n.beforeLabel.call(i,t,e))),eh(r.lines,n.label.call(i,t,e)),eh(r.after,eu(n.afterLabel.call(i,t,e))),a.push(r)}),a},getAfterBody:function(){return eg(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),i=t.footer.apply(this,arguments),n=t.afterFooter.apply(this,arguments),a=[];return a=eh(a,eu(e)),a=eh(a,eu(i)),a=eh(a,eu(n))},update:function(t){var e,i,n=this,a=n._options,r=n._model,o=n._model=ec(a),s=n._active,l=n._data,h={xAlign:r.xAlign,yAlign:r.yAlign},u={x:r.x,y:r.y},d={width:r.width,height:r.height},c={x:r.caretX,y:r.caretY};
1if(s.length){o.opacity=1;var f,g,p,m,v,b,x,y,_,k,w,M,S,C,P,A,D,T,I,F,O,L,R,z,N,B,E,W,H,j,q,U,Y,G,X,K,Z,$,J,Q,tt,te,ti=[],tn=[];c=el[a.position].call(n,s,n._eventPosition);var ta=[];for(e=0,i=s.length;e<i;++e)ta.push(ed(s[e]));a.filter&&(ta=ta.filter(function(t){return a.filter(t,l)})),a.itemSort&&(ta=ta.sort(function(t,e){return a.itemSort(t,e,l)})),V.each(ta,function(t){ti.push(a.callbacks.labelColor.call(n,t,n._chart)),tn.push(a.callbacks.labelTextColor.call(n,t,n._chart))}),o.title=n.getTitle(ta,l),o.beforeBody=n.getBeforeBody(ta,l),o.body=n.getBody(ta,l),o.afterBody=n.getAfterBody(ta,l),o.footer=n.getFooter(ta,l),o.x=c.x,o.y=c.y,o.caretPadding=a.caretPadding,o.labelColors=ti,o.labelTextColors=tn,o.dataPoints=ta,T=this._chart.ctx,I=2*o.yPadding,F=0,L=(O=o.body).reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0),L+=o.beforeBody.length+o.afterBody.length,R=o.title.length,z=o.footer.length,N=o.titleFontSize,B=o.bodyFontSize,E=o.footerFontSize,I+=R*N,I+=R?(R-1)*o.titleSpacing:0,I+=R?o.titleMarginBottom:0,I+=L*B,I+=L?(L-1)*o.bodySpacing:0,I+=z?o.footerMarginTop:0,I+=z*E,I+=z?(z-1)*o.footerSpacing:0,W=0,H=function(t){F=Math.max(F,T.measureText(t).width+W)},f=this,g=(T.font=V.fontString(N,o._titleFontStyle,o._titleFontFamily),V.each(o.title,H),T.font=V.fontString(B,o._bodyFontStyle,o._bodyFontFamily),V.each(o.beforeBody.concat(o.afterBody),H),W=o.displayColors?B+2:0,V.each(O,function(t){V.each(t.before,H),V.each(t.lines,H),V.each(t.after,H)}),W=0,T.font=V.fontString(E,o._footerFontStyle,o._footerFontFamily),V.each(o.footer,H),d={width:F+=2*o.xPadding,height:I}),y=f._model,_=f._chart,k=f._chart.chartArea,w="center",M="center",y.y<g.height?M="top":y.y>_.height-g.height&&(M="bottom"),S=(k.left+k.right)/2,C=(k.top+k.bottom)/2,"center"===M?(v=function(t){return t<=S},b=function(t){return t>S}):(v=function(t){return t<=g.width/2},b=function(t){return t>=_.width-g.width/2}),(x=function(t){return t<=C?"top":"bottom"},v(y.x))?(w="left",(p=y.x)+g.width+y.caretSize+y.caretPadding>_.width&&(w="center",M=x(y.y))):b(y.x)&&(w="right",(m=y.x)-g.width-y.caretSize-y.caretPadding<0&&(w="center",M=x(y.y))),h={xAlign:(P=f._options).xAlign?P.xAlign:w,yAlign:P.yAlign?P.yAlign:M},q=d,U=h,Y=n._chart,G=o.x,X=o.y,K=o.caretSize,Z=o.caretPadding,$=o.cornerRadius,J=U.xAlign,Q=U.yAlign,tt=K+Z,te=$+Z,"right"===J?G-=q.width:"center"===J&&((G-=q.width/2)+q.width>Y.width&&(G=Y.width-q.width),G<0&&(G=0)),"top"===Q?X+=tt:"bottom"===Q?X-=q.height+tt:X-=q.height/2,"center"===Q?"left"===J?G+=tt:"right"===J&&(G-=tt):"left"===J?G-=te:"right"===J&&(G+=te),u={x:G,y:X}}else o.opacity=0;return o.xAlign=h.xAlign,o.yAlign=h.yAlign,o.x=u.x,o.y=u.y,o.width=d.width,o.height=d.height,o.caretX=c.x,o.caretY=c.y,n._model=o,t&&a.custom&&a.custom.call(n,o),n},drawCaret:function(t,e){var i=this._chart.ctx,n=this._view,a=this.getCaretPosition(t,e,n);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)},getCaretPosition:function(t,e,i){var n,a,r,o,s,l,h=i.caretSize,u=i.cornerRadius,d=i.xAlign,c=i.yAlign,f=t.x,g=t.y,p=e.width,m=e.height;if("center"===c)s=g+m/2,"left"===d?(a=(n=f)-h,r=n,o=s+h,l=s-h):(a=(n=f+p)+h,r=n,o=s-h,l=s+h);else if("left"===d?(n=(a=f+u+h)-h,r=a+h):"right"===d?(n=(a=f+p-u-h)-h,r=a+h):(n=(a=i.caretX)-h,r=a+h),"top"===c)s=(o=g)-h,l=o;else{s=(o=g+m)+h,l=o;var v=r;r=n,n=v}return{x1:n,x2:a,x3:r,y1:o,y2:s,y3:l}},drawTitle:function(t,e,i){var n,a,r,o=e.title,s=o.length;if(s){var l=es(e.rtl,e.x,e.width);for(r=0,t.x=ef(e,e._titleAlign),i.textAlign=l.textAlign(e._titleAlign),i.textBaseline="middle",n=e.titleFontSize,a=e.titleSpacing,i.fillStyle=e.titleFontColor,i.font=V.fontString(n,e._titleFontStyle,e._titleFontFamily);r<s;++r)i.fillText(o[r],l.x(t.x),t.y+n/2),t.y+=n+a,r+1===s&&(t.y+=e.titleMarginBottom-a)}},drawBody:function(t,e,i){var n,a,r,o,s,l,h,u,d=e.bodyFontSize,c=e.bodySpacing,f=e._bodyAlign,g=e.body,p=e.displayColors,m=0,v=p?ef(e,"left"):0,b=es(e.rtl,e.x,e.width),x=function(e){i.fillText(e,b.x(t.x+m),t.y+d/2),t.y+=d+c},y=b.textAlign(f);for(i.textAlign=f,i.textBaseline="middle",i.font=V.fontString(d,e._bodyFontStyle,e._bodyFontFamily),t.x=ef(e,y),i.fillStyle=e.bodyFontColor,V.each(e.beforeBody,x),m=p&&"right"!==y?"center"===f?d/2+1:d+2:0,s=0,h=g.length;s<h;++s){for(n=g[s],a=e.labelTextColors[s],r=e.labelColors[s],i.fillStyle=a,V.each(n.before,x),o=n.lines,l=0,u=o.length;l<u;++l){if(p){var _=b.x(v);
vendor: 5,713 bytes, line 1
1i.fillStyle=e.legendColorBackground,i.fillRect(b.leftForLtr(_,d),t.y,d,d),i.lineWidth=1,i.strokeStyle=r.borderColor,i.strokeRect(b.leftForLtr(_,d),t.y,d,d),i.fillStyle=r.backgroundColor,i.fillRect(b.leftForLtr(b.xPlus(_,1),d-2),t.y+1,d-2,d-2),i.fillStyle=a}x(o[l])}V.each(n.after,x)}m=0,V.each(e.afterBody,x),t.y-=c},drawFooter:function(t,e,i){var n,a,r=e.footer,o=r.length;if(o){var s=es(e.rtl,e.x,e.width);for(t.x=ef(e,e._footerAlign),t.y+=e.footerMarginTop,i.textAlign=s.textAlign(e._footerAlign),i.textBaseline="middle",n=e.footerFontSize,i.fillStyle=e.footerFontColor,i.font=V.fontString(n,e._footerFontStyle,e._footerFontFamily),a=0;a<o;++a)i.fillText(r[a],s.x(t.x),t.y+n/2),t.y+=n+e.footerSpacing}},drawBackground:function(t,e,i,n){i.fillStyle=e.backgroundColor,i.strokeStyle=e.borderColor,i.lineWidth=e.borderWidth;var a=e.xAlign,r=e.yAlign,o=t.x,s=t.y,l=n.width,h=n.height,u=e.cornerRadius;i.beginPath(),i.moveTo(o+u,s),"top"===r&&this.drawCaret(t,n),i.lineTo(o+l-u,s),i.quadraticCurveTo(o+l,s,o+l,s+u),"center"===r&&"right"===a&&this.drawCaret(t,n),i.lineTo(o+l,s+h-u),i.quadraticCurveTo(o+l,s+h,o+l-u,s+h),"bottom"===r&&this.drawCaret(t,n),i.lineTo(o+u,s+h),i.quadraticCurveTo(o,s+h,o,s+h-u),"center"===r&&"left"===a&&this.drawCaret(t,n),i.lineTo(o,s+u),i.quadraticCurveTo(o,s,o+u,s),i.closePath(),i.fill(),e.borderWidth>0&&i.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i={width:e.width,height:e.height},n={x:e.x,y:e.y},a=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&&(t.save(),t.globalAlpha=a,this.drawBackground(n,e,t,i),n.y+=e.yPadding,V.rtl.overrideTextDirection(t,e.textDirection),this.drawTitle(n,e,t),this.drawBody(n,e,t),this.drawFooter(n,e,t),V.rtl.restoreTextDirection(t,e.textDirection),t.restore())}},handleEvent:function(t){var e=this,i=e._options,n=!1;return e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:(e._active=e._chart.getElementsAtEventForMode(t,i.mode,i),i.reverse&&e._active.reverse()),(n=!V.arrayEquals(e._active,e._lastActive))&&(e._lastActive=e._active,(i.enabled||i.custom)&&(e._eventPosition={x:t.x,y:t.y},e.update(!0),e.pivot())),n}});em.positioners=el;var ev=V.valueOrDefault;function eb(){return V.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,i,n){if("xAxes"===t||"yAxes"===t){var a,r,o,s=i[t].length;for(e[t]||(e[t]=[]),a=0;a<s;++a)r=ev((o=i[t][a]).type,"xAxes"===t?"category":"linear"),a>=e[t].length&&e[t].push({}),!e[t][a].type||o.type&&o.type!==e[t][a].type?V.merge(e[t][a],[er.getScaleDefaults(r),o]):V.merge(e[t][a],o)}else V._merger(t,e,i,n)}})}function ex(){return V.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,i,n){var a=e[t]||Object.create(null),r=i[t];"scales"===t?e[t]=eb(a,r):"scale"===t?e[t]=V.merge(a,[er.getScaleDefaults(r.type),r]):V._merger(t,e,i,n)}})}function ey(t,e,i){var n,a=function(t){return t.id===n};do n=e+i++;while(V.findIndex(t,a)>=0);return n}function e_(t){return"top"===t||"bottom"===t}function ek(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}R._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var ew=function(t,e){return this.construct(t,e),this};V.extend(ew.prototype,{construct:function(t,e){var i,n,a=this;(n=(i=(i=e)||Object.create(null)).data=i.data||{}).datasets=n.datasets||[],n.labels=n.labels||[],i.options=ex(R.global,R[i.type],i.options||{}),e=i;var r=en.acquireContext(t,e),o=r&&r.canvas,s=o&&o.height,l=o&&o.width;if(a.id=V.uid(),a.ctx=r,a.canvas=o,a.config=e,a.width=l,a.height=s,a.aspectRatio=s?l/s:null,a.options=e.options,a._bufferedRender=!1,a._layers=[],a.chart=a,a.controller=a,ew.instances[a.id]=a,Object.defineProperty(a,"data",{get:function(){return a.config.data},set:function(t){a.config.data=t}}),!r||!o){console.error("Failed to create chart: can't acquire context from the given item");return}a.initialize(),a.update()},initialize:function(){return ea.notify(this,"beforeInit"),V.retinaScale(this,this.options.devicePixelRatio),this.bindEvents(),this.options.responsive&&this.resize(!0),this.initToolTip(),ea.notify(this,"afterInit"),this},clear:function(){return V.canvas.clear(this),this},stop:function(){return q.cancelAnimation(this),this},resize:function(t){var e=this,i=e.options,n=e.canvas,a=i.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(V.getMaximumWidth(n))),o=Math.max(0,Math.floor(a?r/a:V.getMaximumHeight(n)));if((e.width!==r||e.height!==o)&&(n.width=e.width=r,n.height=e.height=o,n.style.width=r+"px",n.style.height=o+"px",V.retinaScale(e,i.devicePixelRatio),!t)){var s={width:r,height:o};ea.notify(e,"resize",[s]),i.onResize&&i.onResize(e,s),e.stop(),e.update({duration:i.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},i=t.scale;V.each(e.xAxes,function(t,i){t.id||(t.id=ey(e.xAxes,"x-axis-",i))}),V.each(e.yAxes,function(t,i){t.id||(t.id=ey(e.yAxes,"y-axis-",i))}),i&&(i.id=i.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,i=t.scales||{},n=[],a=Object.keys(i).reduce(function(t,e){return t[e]=!1,t},{});e.scales&&(n=n.concat((e.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(e.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),e.scale&&n.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),V.each(n,function(e){var n=e.options,r=n.id,o=ev(n.type,e.dtype);
1e_(n.position)!==e_(e.dposition)&&(n.position=e.dposition),a[r]=!0;var s=null;if(r in i&&i[r].type===o)(s=i[r]).options=n,s.ctx=t.ctx,s.chart=t;else{var l=er.getScaleConstructor(o);if(!l)return;i[(s=new l({id:r,type:o,options:n,ctx:t.ctx,chart:t})).id]=s}s.mergeTicksOptions(),e.isDefault&&(t.scale=s)}),V.each(a,function(t,e){t||delete i[e]}),t.scales=i,er.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t,e,i=[],n=this.data.datasets;for(t=0,e=n.length;t<e;t++){var a=n[t],r=this.getDatasetMeta(t),o=a.type||this.config.type;if(r.type&&r.type!==o&&(this.destroyDatasetMeta(t),r=this.getDatasetMeta(t)),r.type=o,r.order=a.order||0,r.index=t,r.controller)r.controller.updateIndex(t),r.controller.linkScales();else{var s=tO[r.type];if(void 0===s)throw Error('"'+r.type+'" is not a chart type.');r.controller=new s(this,t),i.push(r.controller)}}return i},resetElements:function(){var t=this;V.each(t.data.datasets,function(e,i){t.getDatasetMeta(i).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,i,n,a,r=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),a=(n=r).options,V.each(n.scales,function(t){tZ.removeBox(n,t)}),a=ex(R.global,R[n.config.type],a),n.options=n.config.options=a,n.ensureScalesHaveIDs(),n.buildOrUpdateScales(),n.tooltip._options=a.tooltips,n.tooltip.initialize(),ea._invalidate(r),!1!==ea.notify(r,"beforeUpdate")){r.tooltip._data=r.data;var o=r.buildOrUpdateControllers();for(e=0,i=r.data.datasets.length;e<i;e++)r.getDatasetMeta(e).controller.buildOrUpdateElements();r.updateLayout(),r.options.animation&&r.options.animation.duration&&V.each(o,function(t){t.reset()}),r.updateDatasets(),r.tooltip.initialize(),r.lastActive=[],ea.notify(r,"afterUpdate"),r._layers.sort(ek("z","_idx")),r._bufferedRender?r._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:r.render(t)}},updateLayout:function(){var t=this;!1!==ea.notify(t,"beforeLayout")&&(tZ.update(this,this.width,this.height),t._layers=[],V.each(t.boxes,function(e){e._configure&&e._configure(),t._layers.push.apply(t._layers,e._layers())},t),t._layers.forEach(function(t,e){t._idx=e}),ea.notify(t,"afterScaleUpdate"),ea.notify(t,"afterLayout"))},updateDatasets:function(){if(!1!==ea.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.updateDataset(t);ea.notify(this,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this.getDatasetMeta(t),i={meta:e,index:t};!1!==ea.notify(this,"beforeDatasetUpdate",[i])&&(e.controller._update(),ea.notify(this,"afterDatasetUpdate",[i]))},render:function(t){var e=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]});var i=e.options.animation,n=ev(t.duration,i&&i.duration),a=t.lazy;if(!1!==ea.notify(e,"beforeRender")){var r=function(t){ea.notify(e,"afterRender"),V.callback(i&&i.onComplete,[t],e)};if(i&&n){var o=new j({numSteps:n/16.66,easing:t.easing||i.easing,render:function(t,e){var i=V.easing.effects[e.easing],n=e.currentStep,a=n/e.numSteps;t.draw(i(a),a,n)},onAnimationProgress:i.onProgress,onAnimationComplete:r});q.addAnimation(e,o,n,a)}else e.draw(),r(new j({numSteps:0,chart:e}));return e}},draw:function(t){var e,i;if(this.clear(),V.isNullOrUndef(t)&&(t=1),this.transition(t),!(this.width<=0)&&!(this.height<=0)&&!1!==ea.notify(this,"beforeDraw",[t])){for(e=0,i=this._layers;e<i.length&&i[e].z<=0;++e)i[e].draw(this.chartArea);for(this.drawDatasets(t);e<i.length;++e)i[e].draw(this.chartArea);this._drawTooltip(t),ea.notify(this,"afterDraw",[t])}},transition:function(t){for(var e=0,i=(this.data.datasets||[]).length;e<i;++e)this.isDatasetVisible(e)&&this.getDatasetMeta(e).controller.transition(t);this.tooltip.transition(t)},_getSortedDatasetMetas:function(t){var e,i,n=this.data.datasets||[],a=[];for(e=0,i=n.length;e<i;++e)(!t||this.isDatasetVisible(e))&&a.push(this.getDatasetMeta(e));return a.sort(ek("order","index")),a},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(t){var e,i;if(!1!==ea.notify(this,"beforeDatasetsDraw",[t])){for(i=(e=this._getSortedVisibleDatasetMetas()).length-1;i>=0;--i)this.drawDataset(e[i],t);ea.notify(this,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var i={meta:t,index:t.index,easingValue:e};!1!==ea.notify(this,"beforeDatasetDraw",[i])&&(t.controller.draw(e),ea.notify(this,"afterDatasetDraw",[i]))},_drawTooltip:function(t){var e=this.tooltip,i={tooltip:e,easingValue:t};!1!==ea.notify(this,"beforeTooltipDraw",[i])&&(e.draw(),ea.notify(this,"afterTooltipDraw",[i]))},getElementAtEvent:function(t){return tW.modes.single(this,t)},getElementsAtEvent:function(t){return tW.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return tW.modes["x-axis"](this,t,{intersect:!0})}
vendor: 5,489 bytes, line 1
1,getElementsAtEventForMode:function(t,e,i){var n=tW.modes[e];return"function"==typeof n?n(this,t,i):[]},getDatasetAtEvent:function(t){return tW.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,i=e.data.datasets[t];i._meta||(i._meta={});var n=i._meta[e.id];return n||(n=i._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i.order||0,index:t}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,i=this.data.datasets.length;e<i;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,i=this.data.datasets[t],n=i._meta&&i._meta[e];n&&(n.controller.destroy(),delete i._meta[e])},destroy:function(){var t,e,i=this,n=i.canvas;for(i.stop(),t=0,e=i.data.datasets.length;t<e;++t)i.destroyDatasetMeta(t);n&&(i.unbindEvents(),V.canvas.clear(i),en.releaseContext(i.ctx),i.canvas=null,i.ctx=null),ea.notify(i,"destroy"),delete ew.instances[i.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new em({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var t=this,e=t._listeners={},i=function(){t.eventHandler.apply(t,arguments)};V.each(t.options.events,function(n){en.addEventListener(t,n,i),e[n]=i}),t.options.responsive&&(i=function(){t.resize()},en.addEventListener(t,"resize",i),e.resize=i)},unbindEvents:function(){var t=this,e=t._listeners;e&&(delete t._listeners,V.each(e,function(e,i){en.removeEventListener(t,i,e)}))},updateHoverStyle:function(t,e,i){var n,a,r,o=i?"set":"remove";for(a=0,r=t.length;a<r;++a)(n=t[a])&&this.getDatasetMeta(n._datasetIndex).controller[o+"HoverStyle"](n);"dataset"===e&&this.getDatasetMeta(t[0]._datasetIndex).controller["_"+o+"DatasetHoverStyle"]()},eventHandler:function(t){var e=this,i=e.tooltip;if(!1!==ea.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var n=e.handleEvent(t);i&&(n=i._start?i.handleEvent(t):n|i.handleEvent(t)),ea.notify(e,"afterEvent",[t]);var a=e._bufferedRequest;return a?e.render(a):n&&!e.animating&&(e.stop(),e.render({duration:e.options.hover.animationDuration,lazy:!0})),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e=this,i=e.options||{},n=i.hover,a=!1;return e.lastActive=e.lastActive||[],"mouseout"===t.type?e.active=[]:e.active=e.getElementsAtEventForMode(t,n.mode,n),V.callback(i.onHover||i.hover.onHover,[t.native,e.active],e),("mouseup"===t.type||"click"===t.type)&&i.onClick&&i.onClick.call(e,t.native,e.active),e.lastActive.length&&e.updateHoverStyle(e.lastActive,n.mode,!1),e.active.length&&n.mode&&e.updateHoverStyle(e.active,n.mode,!0),a=!V.arrayEquals(e.active,e.lastActive),e.lastActive=e.active,a}}),ew.instances={};var eM=ew;function eS(){throw Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function eC(t){this.options=t||{}}ew.Controller=ew,ew.types={},V.configMerge=ex,V.scaleMerge=eb,V.extend(eC.prototype,{formats:eS,parse:eS,format:eS,add:eS,diff:eS,startOf:eS,endOf:eS,_create:function(t){return t}}),eC.override=function(t){V.extend(eC.prototype,t)};var eP={_date:eC},eA={formatters:{values:function(t){return V.isArray(t)?t:""+t},linear:function(t,e,i){var n=i.length>3?i[2]-i[1]:i[1]-i[0];Math.abs(n)>1&&t!==Math.floor(t)&&(n=t-Math.floor(t));var a=V.log10(Math.abs(n)),r="";if(0!==t){if(1e-4>Math.max(Math.abs(i[0]),Math.abs(i[i.length-1]))){var o=Math.floor(V.log10(Math.abs(t)))-Math.floor(a);o=Math.max(Math.min(o,20),0),r=t.toExponential(o)}else{var s=-1*Math.floor(a);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}}else r="0";return r},logarithmic:function(t,e,i){var n=t/Math.pow(10,Math.floor(V.log10(t)));return 0===t?"0":1===n||2===n||5===n||0===e||e===i.length-1?t.toExponential():""}}},eD=V.isArray,eT=V.isNullOrUndef,eI=V.valueOrDefault,eF=V.valueAtIndexOrDefault;function eO(t,e,i){var n,a=t.getTicks().length,r=Math.min(e,a-1),o=t.getPixelForTick(r),s=t._startPixel,l=t._endPixel;if(!i||(n=1===a?Math.max(o-s,l-o):0===e?(t.getPixelForTick(1)-o)/2:(o-t.getPixelForTick(r-1))/2,!((o+=r<e?n:-n)<s-1e-6)&&!(o>l+1e-6)))return o}function eL(t){return t.drawTicks?t.tickMarkLength:0}function eR(t){var e,i;return t.display?(e=V.options._parseFont(t),i=V.options.toPadding(t.padding),e.lineHeight+i.height):0}function ez(t,e){return V.extend(V.options._parseFont({fontFamily:eI(e.fontFamily,t.fontFamily),fontSize:eI(e.fontSize,t.fontSize),fontStyle:eI(e.fontStyle,t.fontStyle),lineHeight:eI(e.lineHeight,t.lineHeight)}),{color:V.options.resolve([e.fontColor,t.fontColor,R.global.defaultFontColor])})}function eN(t){var e=ez(t,t.minor),i=t.major.enabled?ez(t,t.major):e;return{minor:e,major:i}}function eB(t){var e,i,n,a=[];for(i=0,n=t.length;i<n;++i)void 0!==(e=t[i])._index&&a.push(e);return a}function eE(t,e,i,n){var a,r,o,s,l=eI(i,0),h=Math.min(eI(n,t.length),t.length),u=0;for(e=Math.ceil(e),n&&(e=(a=n-i)/Math.floor(a/e)),s=l;s<0;)s=Math.round(l+ ++u*e);for(r=Math.max(l,0);r<h;r++)o=t[r],r===s?(o._index=r,s=Math.round(l+ ++u*e)):delete o.label}R._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWi
1dth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:eA.formatters.values,minor:{},major:{}}});var eW=H.extend({zeroLineIndex:0,getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){V.callback(this.options.beforeUpdate,[this])},update:function(t,e,i){var n,a,r,o,s,l=this,h=l.options.ticks,u=h.sampleSize;if(l.beforeUpdate(),l.maxWidth=t,l.maxHeight=e,l.margins=V.extend({left:0,right:0,top:0,bottom:0},i),l._ticks=null,l.ticks=null,l._labelSizes=null,l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l._gridLineItems=null,l._labelItems=null,l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),o=l.buildTicks()||[],(!(o=l.afterBuildTicks(o)||o)||!o.length)&&l.ticks)for(n=0,o=[],a=l.ticks.length;n<a;++n)o.push({value:l.ticks[n],major:!1});return l._ticks=o,s=u<o.length,r=l._convertTicksToLabels(s?function(t,e){for(var i=[],n=t.length/e,a=0,r=t.length;a<r;a+=n)i.push(t[Math.floor(a)]);return i}(o,u):o),l._configure(),l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l._ticksToDraw=h.display&&(h.autoSkip||"auto"===h.source)?l._autoSkip(o):o,s&&(r=l._convertTicksToLabels(l._ticksToDraw)),l.ticks=r,l.afterUpdate(),l.minSize},_configure:function(){var t,e,i=this,n=i.options.ticks.reverse;i.isHorizontal()?(t=i.left,e=i.right):(t=i.top,e=i.bottom,n=!n),i._startPixel=t,i._endPixel=e,i._reversePixels=n,i._length=e-t},afterUpdate:function(){V.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){V.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(){V.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){V.callback(this.options.beforeDataLimits,[this])},determineDataLimits:V.noop,afterDataLimits:function(){V.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){V.callback(this.options.beforeBuildTicks,[this])},buildTicks:V.noop,afterBuildTicks:function(t){var e=this;return eD(t)&&t.length?V.callback(e.options.afterBuildTicks,[e,t]):(e.ticks=V.callback(e.options.afterBuildTicks,[e,e.ticks])||e.ticks,t)},beforeTickToLabelConversion:function(){V.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this,e=t.options.ticks;t.ticks=t.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){V.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){V.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t,e,i,n,a,r,o,s=this,l=s.options,h=l.ticks,u=s.getTicks().length,d=h.minRotation||0,c=h.maxRotation,f=d;if(!s._isVisible()||!h.display||d>=c||u<=1||!s.isHorizontal()){s.labelRotation=d;return}e=(t=s._getLabelSizes()).widest.width,i=t.highest.height-t.highest.offset,n=Math.min(s.maxWidth,s.chart.width-e),e+6>(a=l.offset?s.maxWidth/u:n/(u-1))&&(a=n/(u-(l.offset?.5:1)),r=s.maxHeight-eL(l.gridLines)-h.padding-eR(l.scaleLabel),o=Math.sqrt(e*e+i*i),f=Math.max(d,Math.min(c,f=V.toDegrees(Math.min(Math.asin(Math.min((t.highest.height+6)/a,1)),Math.asin(Math.min(r/o,1))-Math.asin(i/o)))))),s.labelRotation=f},afterCalculateTickRotation:function(){V.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){V.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},i=t.chart,n=t.options,a=n.ticks,r=n.scaleLabel,o=n.gridLines,s=t._isVisible(),l="bottom"===n.position,h=t.isHorizontal();if(h?e.width=t.maxWidth:s&&(e.width=eL(o)+eR(r)),h?s&&(e.height=eL(o)+eR(r)):e.he
1ight=t.maxHeight,a.display&&s){var u=eN(a),d=t._getLabelSizes(),c=d.first,f=d.last,g=d.widest,p=d.highest,m=.4*u.minor.lineHeight,v=a.padding;if(h){var b,x,y=0!==t.labelRotation,_=V.toRadians(t.labelRotation),k=Math.cos(_),w=Math.sin(_),M=w*g.width+k*(p.height-(y?p.offset:0))+(y?0:m);e.height=Math.min(t.maxHeight,e.height+M+v);var S=t.getPixelForTick(0)-t.left,C=t.right-t.getPixelForTick(t.getTicks().length-1);y?(b=l?k*c.width+w*c.offset:w*(c.height-c.offset),x=l?w*(f.height-f.offset):k*f.width+w*f.offset):(b=c.width/2,x=f.width/2),t.paddingLeft=Math.max((b-S)*t.width/(t.width-S),0)+3,t.paddingRight=Math.max((x-C)*t.width/(t.width-C),0)+3}else{var P=a.mirror?0:g.width+v+m;e.width=Math.min(t.maxWidth,e.width+P),t.paddingTop=c.height/2,t.paddingBottom=f.height/2}}t.handleMargins(),h?(t.width=t._length=i.width-t.margins.left-t.margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=i.height-t.margins.top-t.margins.bottom)},handleMargins:function(){var t=this;t.margins&&(t.margins.left=Math.max(t.paddingLeft,t.margins.left),t.margins.top=Math.max(t.paddingTop,t.margins.top),t.margins.right=Math.max(t.paddingRight,t.margins.right),t.margins.bottom=Math.max(t.paddingBottom,t.margins.bottom))},afterFit:function(){V.callback(this.options.afterFit,[this])},isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(eT(t)||("number"==typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t){if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y)}return t},_convertTicksToLabels:function(t){var e,i,n,a=this;for(a.ticks=t.map(function(t){return t.value}),a.beforeTickToLabelConversion(),e=a.convertTicksToLabels(t)||a.ticks,a.afterTickToLabelConversion(),i=0,n=t.length;i<n;++i)t[i].label=e[i];return e},_getLabelSizes:function(){var t=this,e=t._labelSizes;return e||(t._labelSizes=e=function(t,e,i,n){var a,r,o,s,l,h,u,d,c,f,g,p,m,v,b,x=i.length,y=[],_=[],k=[],w=0,M=0;for(o=0;o<x;++o){if(h=i[o].label,u=i[o].major?e.major:e.minor,t.font=d=u.string,c=n[d]=n[d]||{data:{},gc:[]},f=u.lineHeight,g=p=0,eT(h)||eD(h)){if(eD(h))for(s=0,l=h.length;s<l;++s)eT(m=h[s])||eD(m)||(g=V.measureText(t,c.data,c.gc,g,m),p+=f)}else g=V.measureText(t,c.data,c.gc,g,h),p=f;y.push(g),_.push(p),k.push(f/2),w=Math.max(g,w),M=Math.max(p,M)}function S(t){return{width:y[t]||0,height:_[t]||0,offset:k[t]||0}}return V.each(n,function(t){var e,i=t.gc,n=i.length/2;if(n>x){for(e=0;e<n;++e)delete t.data[i[e]];i.splice(0,n)}}),v=y.indexOf(w),b=_.indexOf(M),{first:S(0),last:S(x-1),widest:S(v),highest:S(b)}}(t.ctx,eN(t.options.ticks),t.getTicks(),t.longestTextCache),t.longestLabelWidth=e.widest.width),e},_parseValue:function(t){var e,i,n,a;return eD(t)?(n=Math.min(e=+this.getRightValue(t[0]),i=+this.getRightValue(t[1])),a=Math.max(e,i)):(t=+this.getRightValue(t),e=void 0,i=t,n=t,a=t),{min:n,max:a,start:e,end:i}},_getScaleLabel:function(t){var e=this._parseValue(t);return void 0!==e.start?"["+e.start+", "+e.end+"]":+this.getRightValue(t)},getLabelForIndex:V.noop,getPixelForValue:V.noop,getValueForPixel:V.noop,getPixelForTick:function(t){var e=this.options.offset,i=this._ticks.length,n=1/Math.max(i-(e?0:1),1);return t<0||t>i-1?null:this.getPixelForDecimal(t*n+(e?n/2:0))},getPixelForDecimal:function(t){return this._reversePixels&&(t=1-t),this._startPixel+t*this._length},getDecimalForPixel:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0},_autoSkip:function(t){var e,i,n,a,r=this.options.ticks,o=this._length,s=r.maxTicksLimit||o/this._tickSize()+1,l=r.major.enabled?function(t){var e,i,n=[];for(e=0,i=t.length;e<i;e++)t[e].major&&n.push(e);return n}(t):[],h=l.length,u=l[0],d=l[h-1];if(h>s)return function(t,e,i){var n,a,r=0,o=e[0];for(n=0,i=Math.ceil(i);n<t.length;n++)a=t[n],n===o?(a._index=n,o=e[++r*i]):delete a.label}(t,l,h/s),eB(t);
1if(n=function(t,e,i,n){var a,r,o,s,l=function(t){var e,i,n=t.length;if(n<2)return!1;for(i=t[0],e=1;e<n;++e)if(t[e]-t[e-1]!==i)return!1;return i}(t),h=(e.length-1)/n;if(!l)return Math.max(h,1);for(o=0,s=(a=V.math._factorize(l)).length-1;o<s;o++)if((r=a[o])>h)return r;return Math.max(h,1)}(l,t,o,s),h>0){for(e=0,i=h-1;e<i;e++)eE(t,n,l[e],l[e+1]);return a=h>1?(d-u)/(h-1):null,eE(t,n,V.isNullOrUndef(a)?0:u-a,u),eE(t,n,d,V.isNullOrUndef(a)?t.length:d+a),eB(t)}return eE(t,n),eB(t)},_tickSize:function(){var t=this.options.ticks,e=V.toRadians(this.labelRotation),i=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),a=this._getLabelSizes(),r=t.autoSkipPadding||0,o=a?a.widest.width+r:0,s=a?a.highest.height+r:0;return this.isHorizontal()?s*i>o*n?o/i:s/n:s*n<o*i?s/i:o/n},_isVisible:function(){var t,e,i,n=this.chart,a=this.options.display;if("auto"!==a)return!!a;for(t=0,e=n.data.datasets.length;t<e;++t)if(n.isDatasetVisible(t)&&((i=n.getDatasetMeta(t)).xAxisID===this.id||i.yAxisID===this.id))return!0;return!1},_computeGridLineItems:function(t){var e,i,n,a,r,o,s,l,h,u,d,c,f,g,p,m,v,b=this.chart,x=this.options,y=x.gridLines,_=x.position,k=y.offsetGridLines,w=this.isHorizontal(),M=this._ticksToDraw,S=M.length+(k?1:0),C=eL(y),P=[],A=y.drawBorder?eF(y.lineWidth,0,0):0,D=A/2,T=V._alignPixel,I=function(t){return T(b,t,A)};for("top"===_?(e=I(this.bottom),s=this.bottom-C,h=e-D,d=I(t.top)+D,f=t.bottom):"bottom"===_?(e=I(this.top),d=t.top,f=I(t.bottom)-D,s=e+D,h=this.top+C):"left"===_?(e=I(this.right),o=this.right-C,l=e-D,u=I(t.left)+D,c=t.right):(e=I(this.left),u=t.left,c=I(t.right)-D,o=e+D,l=this.left+C),i=0;i<S;++i){if(!eT((n=M[i]||{}).label)||!(i<M.length))i===this.zeroLineIndex&&x.offset===k?(g=y.zeroLineWidth,p=y.zeroLineColor,m=y.zeroLineBorderDash||[],v=y.zeroLineBorderDashOffset||0):(g=eF(y.lineWidth,i,1),p=eF(y.color,i,"rgba(0,0,0,0.1)"),m=y.borderDash||[],v=y.borderDashOffset||0),void 0!==(a=eO(this,n._index||i,k))&&(r=T(b,a,g),w?o=l=u=c=r:s=h=d=f=r,P.push({tx1:o,ty1:s,tx2:l,ty2:h,x1:u,y1:d,x2:c,y2:f,width:g,color:p,borderDash:m,borderDashOffset:v}))}return P.ticksLength=S,P.borderValue=e,P},_computeLabelItems:function(){var t,e,i,n,a,r,o,s,l,h,u,d,c=this.options,f=c.ticks,g=c.position,p=f.mirror,m=this.isHorizontal(),v=this._ticksToDraw,b=eN(f),x=f.padding,y=eL(c.gridLines),_=-V.toRadians(this.labelRotation),k=[];for("top"===g?(r=this.bottom-y-x,o=_?"left":"center"):"bottom"===g?(r=this.top+y+x,o=_?"right":"center"):"left"===g?(a=this.right-(p?0:y)-x,o=p?"left":"right"):(a=this.left+(p?0:y)+x,o=p?"right":"left"),t=0,e=v.length;t<e;++t)!eT(n=(i=v[t]).label)&&(s=this.getPixelForTick(i._index||t)+f.labelOffset,h=(l=i.major?b.major:b.minor).lineHeight,u=eD(n)?n.length:1,m?(a=s,d="top"===g?((_?1:.5)-u)*h:(_?0:.5)*h):(r=s,d=(1-u)*h/2),k.push({x:a,y:r,rotation:_,label:n,font:l,textOffset:d,textAlign:o}));return k},_drawGrid:function(t){var e=this,i=e.options.gridLines;if(i.display){var n=e.ctx,a=e.chart,r=V._alignPixel,o=i.drawBorder?eF(i.lineWidth,0,0):0,s=e._gridLineItems||(e._gridLineItems=e._computeGridLineItems(t));for(u=0,d=s.length;u<d;++u)l=(c=s[u]).width,h=c.color,l&&h&&(n.save(),n.lineWidth=l,n.strokeStyle=h,n.setLineDash&&(n.setLineDash(c.borderDash),n.lineDashOffset=c.borderDashOffset),n.beginPath(),i.drawTicks&&(n.moveTo(c.tx1,c.ty1),n.lineTo(c.tx2,c.ty2)),i.drawOnChartArea&&(n.moveTo(c.x1,c.y1),n.lineTo(c.x2,c.y2)),n.stroke(),n.restore());
1if(o){var l,h,u,d,c,f,g,p,m,v=eF(i.lineWidth,s.ticksLength-1,1),b=s.borderValue;e.isHorizontal()?(f=r(a,e.left,o)-o/2,g=r(a,e.right,v)+v/2,p=m=b):(p=r(a,e.top,o)-o/2,m=r(a,e.bottom,v)+v/2,f=g=b),n.lineWidth=o,n.strokeStyle=eF(i.color,0),n.beginPath(),n.moveTo(f,p),n.lineTo(g,m),n.stroke()}}},_drawLabels:function(){var t,e,i,n,a,r,o,s,l=this;if(l.options.ticks.display){var h=l.ctx,u=l._labelItems||(l._labelItems=l._computeLabelItems());for(t=0,i=u.length;t<i;++t){if(r=(a=u[t]).font,h.save(),h.translate(a.x,a.y),h.rotate(a.rotation),h.font=r.string,h.fillStyle=r.color,h.textBaseline="middle",h.textAlign=a.textAlign,o=a.label,s=a.textOffset,eD(o))for(e=0,n=o.length;e<n;++e)h.fillText(""+o[e],0,s),s+=r.lineHeight;else h.fillText(o,0,s);h.restore()}}},_drawTitle:function(){var t,e,i=this.ctx,n=this.options,a=n.scaleLabel;if(a.display){var r=eI(a.fontColor,R.global.defaultFontColor),o=V.options._parseFont(a),s=V.options.toPadding(a.padding),l=o.lineHeight/2,h=n.position,u=0;if(this.isHorizontal())t=this.left+this.width/2,e="bottom"===h?this.bottom-l-s.bottom:this.top+l+s.top;else{var d="left"===h;t=d?this.left+l+s.top:this.right-l-s.top,e=this.top+this.height/2,u=d?-.5*Math.PI:.5*Math.PI}i.save(),i.translate(t,e),i.rotate(u),i.textAlign="center",i.textBaseline="middle",i.fillStyle=r,i.font=o.string,i.fillText(a.labelString,0,0),i.restore()}},draw:function(t){this._isVisible()&&(this._drawGrid(t),this._drawTitle(),this._drawLabels())},_layers:function(){var t=this,e=t.options,i=e.ticks&&e.ticks.z||0,n=e.gridLines&&e.gridLines.z||0;return t._isVisible()&&i!==n&&t.draw===t._draw?[{z:n,draw:function(){t._drawGrid.apply(t,arguments),t._drawTitle.apply(t,arguments)}},{z:i,draw:function(){t._drawLabels.apply(t,arguments)}}]:[{z:i,draw:function(){t.draw.apply(t,arguments)}}]},_getMatchingVisibleMetas:function(t){var e=this,i=e.isHorizontal();return e.chart._getSortedVisibleDatasetMetas().filter(function(n){return(!t||n.type===t)&&(i?n.xAxisID===e.id:n.yAxisID===e.id)})}});eW.prototype._draw=eW.prototype.draw;var eV=V.isNullOrUndef,eH=eW.extend({determineDataLimits:function(){var t,e=this,i=e._getLabels(),n=e.options.ticks,a=n.min,r=n.max,o=0,s=i.length-1;void 0!==a&&(t=i.indexOf(a))>=0&&(o=t),void 0!==r&&(t=i.indexOf(r))>=0&&(s=t),e.minIndex=o,e.maxIndex=s,e.min=i[o],e.max=i[s]},buildTicks:function(){var t=this,e=t._getLabels(),i=t.minIndex,n=t.maxIndex;t.ticks=0===i&&n===e.length-1?e:e.slice(i,n+1)},getLabelForIndex:function(t,e){var i=this.chart;return i.getDatasetMeta(e).controller._getValueScaleId()===this.id?this.getRightValue(i.data.datasets[e].data[t]):this._getLabels()[t]},_configure:function(){var t=this,e=t.options.offset,i=t.ticks;eW.prototype._configure.call(t),t.isHorizontal()||(t._reversePixels=!t._reversePixels),i&&(t._startValue=t.minIndex-(e?.5:0),t._valueRange=Math.max(i.length-(e?0:1),1))},getPixelForValue:function(t,e,i){var n,a,r;return eV(e)||eV(i)||(t=this.chart.data.datasets[i].data[e]),eV(t)||(n=this.isHorizontal()?t.x:t.y),(void 0!==n||void 0!==t&&isNaN(e))&&(a=this._getLabels(),t=V.valueOrDefault(n,t),isNaN(e=-1!==(r=a.indexOf(t))?r:e)&&(e=t)),this.getPixelForDecimal((e-this._startValue)/this._valueRange)},getPixelForTick:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t],t+this.minIndex)},getValueForPixel:function(t){return Math.min(Math.max(Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange),0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}});eH._defaults={position:"bottom"};var ej=V.noop,eq=V.isNullOrUndef,eU=eW.extend({getRightValue:function(t){return"string"==typeof t?+t:eW.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var i=V.sign(t.min),n=V.sign(t.max);i<0&&n<0?t.max=0:i>0&&n>0&&(t.min=0)}var a=void 0!==e.min||void 0!==e.suggestedMin,r=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),a!==r&&t.min>=t.max&&(a?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,!e.beginAtZero&&t.min--)},getTickLimit:function(){var t,e=this.options.ticks,i=e.stepSize,n=e.maxTicksLimit;return i?t=Math.ceil(this.max/i)-Math.floor(this.min/i)+1:(t=this._computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:ej,buildTicks:function(){var t=this,e=t.options.ticks,i=t.getTickLimit(),n={maxTicks:i=Math.max(2,i),min:e.min,max:e.max,precision:e.precision,stepSize:V.valueOrDefault(e.fixedStepSize,e.stepSize)},a=t.ticks=function(t,e){var i,n,a,r,o=[],s=t.stepSize,l=s||1,h=t.maxTicks-1,u=t.min,d=t.max,c=t.precision,f=e.min,g=e.max,p=V.niceNum((g-f)/h/l)*l;if(p<1e-14&&eq(u)&&eq(d))return[f,g];(r=Math.ceil(g/p)-Math.floor(f/p))>h&&(p=V.niceNum(r*p/h/l)*l),s||eq(c)?i=Math.pow(10,V._decimalPlaces(p)):p=Math.ceil(p*(i=Math.pow(10,c)))/i,n=Math.floor(f/p)*p,a=Math.ceil(g/p)*p,s&&(!eq(u)&&V.almostWhole(u/p,p/1e3)&&(n=u),!eq(d)&&V.almostWhole(d
1/p,p/1e3)&&(a=d)),r=(a-n)/p,r=V.almostEquals(r,Math.round(r),p/1e3)?Math.round(r):Math.ceil(r),n=Math.round(n*i)/i,a=Math.round(a*i)/i,o.push(eq(u)?n:u);for(var m=1;m<r;++m)o.push(Math.round((n+m*p)*i)/i);return o.push(eq(d)?a:d),o}(n,t);t.handleDirectionalChanges(),t.max=V.max(a),t.min=V.min(a),e.reverse?(a.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),eW.prototype.convertTicksToLabels.call(t)},_configure:function(){var t,e=this,i=e.getTicks(),n=e.min,a=e.max;eW.prototype._configure.call(e),e.options.offset&&i.length&&(t=(a-n)/Math.max(i.length-1,1)/2,n-=t,a+=t),e._startValue=n,e._endValue=a,e._valueRange=a-n}}),eY={position:"left",ticks:{callback:eA.formatters.linear}};function eG(t,e,i,n){var a,r,o,s,l,h,u=t.options,d=u.stacked,c=(o=e,void 0===o[h=[i.type,void 0===d&&void 0===i.stack?i.index:"",i.stack].join(".")]&&(o[h]={pos:[],neg:[]}),o[h]),f=c.pos,g=c.neg,p=n.length;for(a=0;a<p;++a)!(isNaN((r=t._parseValue(n[a])).min)||isNaN(r.max))&&!i.data[a].hidden&&(f[a]=f[a]||0,g[a]=g[a]||0,u.relativePoints?f[a]=100:r.min<0||r.max<0?g[a]+=r.min:f[a]+=r.max)}function eX(t,e,i){var n,a,r=i.length;for(n=0;n<r;++n)!(isNaN((a=t._parseValue(i[n])).min)||isNaN(a.max))&&!e.data[n].hidden&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}var eK=eU.extend({determineDataLimits:function(){var t,e,i,n,a=this,r=a.options,o=a.chart.data.datasets,s=a._getMatchingVisibleMetas(),l=r.stacked,h={},u=s.length;if(a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,void 0===l)for(t=0;!l&&t<u;++t)l=void 0!==(e=s[t]).stack;for(t=0;t<u;++t)i=o[(e=s[t]).index].data,l?eG(a,h,e,i):eX(a,e,i);V.each(h,function(t){n=t.pos.concat(t.neg),a.min=Math.min(a.min,V.min(n)),a.max=Math.max(a.max,V.max(n))}),a.min=V.isFinite(a.min)&&!isNaN(a.min)?a.min:0,a.max=V.isFinite(a.max)&&!isNaN(a.max)?a.max:1,a.handleTickRangeOptions()},_computeTickLimit:function(){var t;return this.isHorizontal()?Math.ceil(this.width/40):(t=V.options._parseFont(this.options.ticks),Math.ceil(this.height/t.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){return this.getPixelForDecimal((+this.getRightValue(t)-this._startValue)/this._valueRange)},getValueForPixel:function(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange},getPixelForTick:function(t){var e=this.ticksAsNumbers;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])}});eK._defaults=eY;var eZ=V.valueOrDefault,e$=V.math.log10,eJ={position:"left",ticks:{callback:eA.formatters.logarithmic}};function eQ(t,e){return V.isFinite(t)&&t>=0?t:e}var e0=eW.extend({determineDataLimits:function(){var t,e,i,n,a,r,o=this,s=o.options,l=o.chart,h=l.data.datasets,u=o.isHorizontal();function d(t){return u?t.xAxisID===o.id:t.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var c=s.stacked;if(void 0===c){for(t=0;t<h.length;t++)if(e=l.getDatasetMeta(t),l.isDatasetVisible(t)&&d(e)&&void 0!==e.stack){c=!0;break}}if(s.stacked||c){var f={};for(t=0;t<h.length;t++){var g=[(e=l.getDatasetMeta(t)).type,void 0===s.stacked&&void 0===e.stack?t:"",e.stack].join(".");if(l.isDatasetVisible(t)&&d(e))for(void 0===f[g]&&(f[g]=[]),n=h[t].data,a=0,r=n.length;a<r;a++){var p=f[g];!(isNaN((i=o._parseValue(n[a])).min)||isNaN(i.max))&&!e.data[a].hidden&&!(i.min<0)&&!(i.max<0)&&(p[a]=p[a]||0,p[a]+=i.max)}}V.each(f,function(t){if(t.length>0){var e=V.min(t),i=V.max(t);o.min=Math.min(o.min,e),o.max=Math.max(o.max,i)}})}else for(t=0;t<h.length;t++)if(e=l.getDatasetMeta(t),l.isDatasetVisible(t)&&d(e))for(a=0,r=(n=h[t].data).length;a<r;a++)!(isNaN((i=o._parseValue(n[a])).min)||isNaN(i.max))&&!e.data[a].hidden&&!(i.min<0)&&!(i.max<0)&&(o.min=Math.min(i.min,o.min),o.max=Math.max(i.max,o.max),0!==i.min&&(o.minNotZero=Math.min(i.min,o.minNotZero)));o.min=V.isFinite(o.min)?o.min:null,o.max=V.isFinite(o.max)?o.max:null,o.minNotZero=V.isFinite(o.minNotZero)?o.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;t.min=eQ(e.min,t.min),t.max=eQ(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(e$(t.min))-1),t.max=Math.pow(10,Math.floor(e$(t.max))+1)):(t.min=1,t.max=10)),null===t.min&&(t.min=Math.pow(10,Math.floor(e$(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(e$(t.min))+1):10),null===t.minNotZero&&(t.min>0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(e$(t.max))):t.minNotZero=1)}
1,buildTicks:function(){var t=this,e=t.options.ticks,i=!t.isHorizontal(),n={min:eQ(e.min),max:eQ(e.max)},a=t.ticks=function(t,e){var i,n,a,r=[],o=eZ(t.min,Math.pow(10,Math.floor(e$(e.min)))),s=Math.floor(e$(e.max)),l=Math.ceil(e.max/Math.pow(10,s));0===o?(n=Math.floor(e$(e.minNotZero)),a=Math.floor(e.minNotZero/Math.pow(10,n)),r.push(o),o=a*Math.pow(10,n)):(n=Math.floor(e$(o)),a=Math.floor(o/Math.pow(10,n)));var h=n<0?Math.pow(10,Math.abs(n)):1;do r.push(o),10==++a&&(a=1,h=++n>=0?1:h),o=Math.round(a*Math.pow(10,n)*h)/h;while(n<s||n===s&&a<l);return r.push(eZ(t.max,o)),r}(n,t);t.max=V.max(a),t.min=V.min(a),e.reverse?(i=!i,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),i&&a.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),eW.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){var e=this.tickValues;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])},_getFirstTickValue:function(t){var e=Math.floor(e$(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},_configure:function(){var t=this,e=t.min,i=0;eW.prototype._configure.call(t),0===e&&(e=t._getFirstTickValue(t.minNotZero),i=eZ(t.options.ticks.fontSize,R.global.defaultFontSize)/t._length),t._startValue=e$(e),t._valueOffset=i,t._valueRange=(e$(t.max)-e$(e))/(1-i)},getPixelForValue:function(t){var e=0;return(t=+this.getRightValue(t))>this.min&&t>0&&(e=(e$(t)-this._startValue)/this._valueRange+this._valueOffset),this.getPixelForDecimal(e)},getValueForPixel:function(t){var e=this.getDecimalForPixel(t);return 0===e&&0===this.min?0:Math.pow(10,this._startValue+(e-this._valueOffset)*this._valueRange)}});e0._defaults=eJ;var e1=V.valueOrDefault,e2=V.valueAtIndexOrDefault,e5=V.options.resolve,e3={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:eA.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function e6(t){var e=t.ticks;return e.display&&t.display?e1(e.fontSize,R.global.defaultFontSize)+2*e.backdropPaddingY:0}function e4(t,e,i){return V.isArray(i)?{w:V.longestText(t,t.font,i),h:i.length*e}:{w:t.measureText(i).width,h:e}}function e8(t,e,i,n,a){return t===n||t===a?{start:e-i/2,end:e+i/2}:t<n||t>a?{start:e-i,end:e}:{start:e,end:e+i}}function e7(t){return 0===t||180===t?"center":t<180?"left":"right"}function e9(t,e,i,n){var a,r,o=i.y+n/2;if(V.isArray(e))for(a=0,r=e.length;a<r;++a)t.fillText(e[a],i.x,o),o+=n;else t.fillText(e,i.x,o)}function it(t,e,i){90===t||270===t?i.y-=e.h/2:(t>270||t<90)&&(i.y-=e.h)}function ie(t){return V.isNumber(t)?t:0}var ii=eU.extend({setDimensions:function(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=e6(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2},determineDataLimits:function(){var t=this,e=t.chart,i=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;V.each(e.data.datasets,function(a,r){if(e.isDatasetVisible(r)){var o=e.getDatasetMeta(r);V.each(a.data,function(e,a){var r=+t.getRightValue(e);!isNaN(r)&&!o.data[a].hidden&&(i=Math.min(r,i),n=Math.max(r,n))})}}),t.min=i===Number.POSITIVE_INFINITY?0:i,t.max=n===Number.NEGATIVE_INFINITY?0:n,t.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/e6(this.options))},convertTicksToLabels:function(){var t=this;eU.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(function(){var e=V.callback(t.options.pointLabels.callback,arguments,t);return e||0===e?e:""})},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t=this.options;t.display&&t.pointLabels.display?function(t){var e,i,n,a=V.options._parseFont(t.options.pointLabels),r={l:0,r:t.width,t:0,b:t.height-t.paddingTop},o={};t.ctx.font=a.string,t._pointLabelSizes=[];var s=t.chart.data.labels.length;for(e=0;e<s;e++){n=t.getPointPosition(e,t.drawingArea+5),i=e4(t.ctx,a.lineHeight,t.pointLabels[e]),t._pointLabelSizes[e]=i;var l=t.getIndexAngle(e),h=V.toDegrees(l)%360,u=e8(h,n.x,i.w,0,180),d=e8(h,n.y,i.h,90,270);u.start<r.l&&(r.l=u.start,o.l=l),u.end>r.r&&(r.r=u.end,o.r=l),d.start<r.t&&(r.t=d.start,o.t=l),d.end>r.b&&(r.b=d.end,o.b=l)}t.setReductions(t.drawingArea,r,o)}(this):this.setCenterPoint(0,0,0,0)}
1,setReductions:function(t,e,i){var n=this,a=e.l/Math.sin(i.l),r=Math.max(e.r-n.width,0)/Math.sin(i.r),o=-e.t/Math.cos(i.t),s=-Math.max(e.b-(n.height-n.paddingTop),0)/Math.cos(i.b);a=ie(a),r=ie(r),o=ie(o),s=ie(s),n.drawingArea=Math.min(Math.floor(t-(a+r)/2),Math.floor(t-(o+s)/2)),n.setCenterPoint(a,r,o,s)},setCenterPoint:function(t,e,i,n){var a=this,r=a.width-e-a.drawingArea,o=t+a.drawingArea,s=i+a.drawingArea,l=a.height-a.paddingTop-n-a.drawingArea;a.xCenter=Math.floor((o+r)/2+a.left),a.yCenter=Math.floor((s+l)/2+a.top+a.paddingTop)},getIndexAngle:function(t){var e,i=this.chart,n=(t*(360/i.data.labels.length)+((i.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){if(V.isNullOrUndef(t))return NaN;var e=this.drawingArea/(this.max-this.min);return this.options.ticks.reverse?(this.max-t)*e:(t-this.min)*e},getPointPosition:function(t,e){var i=this.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(t){var e=this.min,i=this.max;return this.getPointPositionForValue(t||0,this.beginAtZero?0:e<0&&i<0?i:e>0&&i>0?e:0)},_drawGrid:function(){var t,e,i,n=this,a=n.ctx,r=n.options,o=r.gridLines,s=r.angleLines,l=e1(s.lineWidth,o.lineWidth),h=e1(s.color,o.color);if(r.pointLabels.display&&function(t){var e=t.ctx,i=t.options,n=i.pointLabels,a=e6(i),r=t.getDistanceFromCenterForValue(i.ticks.reverse?t.min:t.max),o=V.options._parseFont(n);e.save(),e.font=o.string,e.textBaseline="middle";for(var s=t.chart.data.labels.length-1;s>=0;s--){var l=0===s?a/2:0,h=t.getPointPosition(s,r+l+5),u=e2(n.fontColor,s,R.global.defaultFontColor);e.fillStyle=u;var d=t.getIndexAngle(s),c=V.toDegrees(d);e.textAlign=e7(c),it(c,t._pointLabelSizes[s],h),e9(e,t.pointLabels[s],h,o.lineHeight)}e.restore()}(n),o.display&&V.each(n.ticks,function(t,i){0!==i&&(e=n.getDistanceFromCenterForValue(n.ticksAsNumbers[i]),function(t,e,i,n){var a,r=t.ctx,o=e.circular,s=t.chart.data.labels.length,l=e2(e.color,n-1),h=e2(e.lineWidth,n-1);if((o||s)&&l&&h){if(r.save(),r.strokeStyle=l,r.lineWidth=h,r.setLineDash&&(r.setLineDash(e.borderDash||[]),r.lineDashOffset=e.borderDashOffset||0),r.beginPath(),o)r.arc(t.xCenter,t.yCenter,i,0,2*Math.PI);else{a=t.getPointPosition(0,i),r.moveTo(a.x,a.y);for(var u=1;u<s;u++)a=t.getPointPosition(u,i),r.lineTo(a.x,a.y)}r.closePath(),r.stroke(),r.restore()}}(n,o,e,i))}),s.display&&l&&h){for(a.save(),a.lineWidth=l,a.strokeStyle=h,a.setLineDash&&(a.setLineDash(e5([s.borderDash,o.borderDash,[]])),a.lineDashOffset=e5([s.borderDashOffset,o.borderDashOffset,0])),t=n.chart.data.labels.length-1;t>=0;t--)e=n.getDistanceFromCenterForValue(r.ticks.reverse?n.min:n.max),i=n.getPointPosition(t,e),a.beginPath(),a.moveTo(n.xCenter,n.yCenter),a.lineTo(i.x,i.y),a.stroke();
vendor: 4,296 bytes, line 1
1a.restore()}},_drawLabels:function(){var t,e,i=this,n=i.ctx,a=i.options.ticks;if(a.display){var r=i.getIndexAngle(0),o=V.options._parseFont(a),s=e1(a.fontColor,R.global.defaultFontColor);n.save(),n.font=o.string,n.translate(i.xCenter,i.yCenter),n.rotate(r),n.textAlign="center",n.textBaseline="middle",V.each(i.ticks,function(r,l){(0!==l||a.reverse)&&(t=i.getDistanceFromCenterForValue(i.ticksAsNumbers[l]),a.showLabelBackdrop&&(e=n.measureText(r).width,n.fillStyle=a.backdropColor,n.fillRect(-e/2-a.backdropPaddingX,-t-o.size/2-a.backdropPaddingY,e+2*a.backdropPaddingX,o.size+2*a.backdropPaddingY)),n.fillStyle=s,n.fillText(r,0,-t))}),n.restore()}},_drawTitle:V.noop});ii._defaults=e3;var ia=V._deprecated,ir=V.options.resolve,io=V.valueOrDefault,is=Number.MIN_SAFE_INTEGER||-9007199254740991,il=Number.MAX_SAFE_INTEGER||9007199254740991,ih={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},iu=Object.keys(ih);function id(t,e){return t-e}function ic(t){return V.valueOrDefault(t.time.min,t.ticks.min)}function ig(t){return V.valueOrDefault(t.time.max,t.ticks.max)}function ip(t,e,i,n){var a=function(t,e,i){for(var n,a,r,o=0,s=t.length-1;o>=0&&o<=s;){if(a=t[(n=o+s>>1)-1]||null,r=t[n],!a)return{lo:null,hi:r};if(r[e]<i)o=n+1;else{if(!(a[e]>i))return{lo:a,hi:r};s=n-1}}return{lo:r,hi:null}}(t,e,i),r=a.lo?a.hi?a.lo:t[t.length-2]:t[0],o=a.lo?a.hi?a.hi:t[t.length-1]:t[1],s=o[e]-r[e],l=s?(i-r[e])/s:0,h=(o[n]-r[n])*l;return r[n]+h}function im(t,e){var i=t._adapter,n=t.options.time,a=n.parser,r=a||n.format,o=e;return("function"==typeof a&&(o=a(o)),V.isFinite(o)||(o="string"==typeof r?i.parse(o,r):i.parse(o)),null!==o)?+o:(a||"function"!=typeof r||(o=r(e),V.isFinite(o)||(o=i.parse(o))),o)}function iv(t,e){if(V.isNullOrUndef(e))return null;var i=t.options.time,n=im(t,t.getRightValue(e));return null===n||i.round&&(n=+t._adapter.startOf(n,i.round)),n}function ib(t,e,i,n){var a,r,o,s=iu.length;for(a=iu.indexOf(t);a<s-1;++a)if(o=(r=ih[iu[a]]).steps?r.steps:il,r.common&&Math.ceil((i-e)/(o*r.size))<=n)return iu[a];return iu[s-1]}function ix(t,e,i){var n,a,r=[],o={},s=e.length;for(n=0;n<s;++n)o[a=e[n]]=n,r.push({value:a,major:!1});return 0!==s&&i?function(t,e,i,n){var a,r,o=t._adapter,s=+o.startOf(e[0].value,n),l=e[e.length-1].value;for(a=s;a<=l;a=+o.add(a,1,n))(r=i[a])>=0&&(e[r].major=!0);return e}(t,r,o,i):r}var iy=eW.extend({initialize:function(){this.mergeTicksOptions(),eW.prototype.initialize.call(this)},update:function(){var t=this,e=t.options,i=e.time||(e.time={}),n=t._adapter=new eP._date(e.adapters.date);return ia("time scale",i.format,"time.format","time.parser"),ia("time scale",i.min,"time.min","ticks.min"),ia("time scale",i.max,"time.max","ticks.max"),V.mergeIf(i.displayFormats,n.formats()),eW.prototype.update.apply(t,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),eW.prototype.getRightValue.call(this,t)},determineDataLimits:function(){var t,e,i,n,a,r,o,s=this,l=s.chart,h=s._adapter,u=s.options,d=u.time.unit||"day",c=il,f=is,g=[],p=[],m=[],v=s._getLabels();for(t=0,i=v.length;t<i;++t)m.push(iv(s,v[t]));for(t=0,i=(l.data.datasets||[]).length;t<i;++t)if(l.isDatasetVisible(t)){if(a=l.data.datasets[t].data,V.isObject(a[0]))for(e=0,p[t]=[],n=a.length;e<n;++e)r=iv(s,a[e]),g.push(r),p[t][e]=r;else p[t]=m.slice(0),o||(g=g.concat(m),o=!0)}else p[t]=[];m.length&&(c=Math.min(c,m[0]),f=Math.max(f,m[m.length-1])),g.length&&(g=i>1?(function(t){var e,i,n,a={},r=[];for(e=0,i=t.length;e<i;++e)a[n=t[e]]||(a[n]=!0,r.push(n));return r})(g).sort(id):g.sort(id),c=Math.min(c,g[0]),f=Math.max(f,g[g.length-1])),c=iv(s,ic(u))||c,f=iv(s,ig(u))||f,c=c===il?+h.startOf(Date.now(),d):c,f=f===is?+h.endOf(Date.now(),d)+1:f,s.min=Math.min(c,f),s.max=Math.max(c+1,f),s._table=[],s._timestamps={data:g,datasets:p,labels:m}},buildTicks:function(){var t,e,i,n,a,r,o,s,l,h,u=this,d=u.min,c=u.max,f=u.options,g=f.ticks,p=f.time,m=u._timestamps,v=[],b=u.getLabelCapacity(d),x=g.source,y=f.distribution;for(m="data"===x||"auto"===x&&"series"===y?m.data:"labels"===x?m.labels:function(t,e,
1i,n){var a,r=t._adapter,o=t.options,s=o.time,l=s.unit||ib(s.minUnit,e,i,n),h=ir([s.stepSize,s.unitStepSize,1]),u="week"===l&&s.isoWeekday,d=e,c=[];if(u&&(d=+r.startOf(d,"isoWeek",u)),d=+r.startOf(d,u?"day":l),r.diff(i,e,l)>1e5*h)throw e+" and "+i+" are too far apart with stepSize of "+h+" "+l;for(a=d;a<i;a=+r.add(a,h,l))c.push(a);return(a===i||"ticks"===o.bounds)&&c.push(a),c}(u,d,c,b),"ticks"===f.bounds&&m.length&&(d=m[0],c=m[m.length-1]),d=iv(u,ic(f))||d,c=iv(u,ig(f))||c,s=0,l=m.length;s<l;++s)(h=m[s])>=d&&h<=c&&v.push(h);return u.min=d,u.max=c,u._unit=p.unit||(g.autoSkip?ib(p.minUnit,u.min,u.max,b):function(t,e,i,n,a){var r,o;for(r=iu.length-1;r>=iu.indexOf(i);r--)if(ih[o=iu[r]].common&&t._adapter.diff(a,n,o)>=e-1)return o;return iu[i?iu.indexOf(i):0]}(u,v.length,p.minUnit,u.min,u.max)),u._majorUnit=g.major.enabled&&"year"!==u._unit?function(t){for(var e=iu.indexOf(t)+1,i=iu.length;e<i;++e)if(ih[iu[e]].common)return iu[e]}(u._unit):void 0,u._table=function(t,e,i,n){if("linear"===n||!t.length)return[{time:e,pos:0},{time:i,pos:1}];var a,r,o,s,l,h=[],u=[e];for(a=0,r=t.length;a<r;++a)(s=t[a])>e&&s<i&&u.push(s);for(u.push(i),a=0,r=u.length;a<r;++a)l=u[a+1],o=u[a-1],s=u[a],(void 0===o||void 0===l||Math.round((l+o)/2)!==s)&&h.push({time:s,pos:a/(r-1)});return h}(u._timestamps.data,d,c,y),u._offsets=(t=u._table,r=0,o=0,f.offset&&v.length&&(n=ip(t,"time",v[0],"pos"),r=1===v.length?1-n:(ip(t,"time",v[1],"pos")-n)/2,a=ip(t,"time",v[v.length-1],"pos"),o=1===v.length?a:(a-ip(t,"time",v[v.length-2],"pos"))/2),{start:r,end:o,factor:1/(r+1+o)}),g.reverse&&v.reverse(),ix(u,v,u._majorUnit)},getLabelForIndex:function(t,e){var i=this._adapter,n=this.chart.data,a=this.options.time,r=n.labels&&t<n.labels.length?n.labels[t]:"",o=n.datasets[e].data[t];return(V.isObject(o)&&(r=this.getRightValue(o)),a.tooltipFormat)?i.format(im(this,r),a.tooltipFormat):"string"==typeof r?r:i.format(im(this,r),a.displayFormats.datetime)},tickFormatFunction:function(t,e,i,n){var a=this._adapter,r=this.options,o=r.time.displayFormats,s=o[this._unit],l=this._majorUnit,h=o[l],u=i[e],d=r.ticks,c=l&&h&&u&&u.major,f=a.format(t,n||(c?h:s)),g=c?d.major:d.minor,p=ir([g.callback,g.userCallback,d.callback,d.userCallback]);return p?p(f,e,i):f},convertTicksToLabels:function(t){var e,i,n=[];for(e=0,i=t.length;e<i;++e)n.push(this.tickFormatFunction(t[e].value,e,t));return n},getPixelForOffset:function(t){var e=this._offsets,i=ip(this._table,"time",t,"pos");return this.getPixelForDecimal((e.start+i)*e.factor)},getPixelForValue:function(t,e,i){var n=null;if(void 0!==e&&void 0!==i&&(n=this._timestamps.datasets[i][e]),null===n&&(n=iv(this,t)),null!==n)return this.getPixelForOffset(n)},getPixelForTick:function(t){var e=this.getTicks();return t>=0&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end,n=ip(this._table,"pos",i,"time");return this._adapter._create(n)},_getLabelSize:function(t){var e=this.options.ticks,i=this.ctx.measureText(t).width,n=V.toRadians(this.isHorizontal()?e.maxRotation:e.minRotation),a=Math.cos(n),r=Math.sin(n),o=io(e.fontSize,R.global.defaultFontSize);return{w:i*a+o*r,h:i*r+o*a}},getLabelWidth:function(t){return this._getLabelSize(t).w},getLabelCapacity:function(t){var e=this.options.time,i=e.displayFormats,n=i[e.unit]||i.millisecond,a=this.tickFormatFunction(t,0,ix(this,[t],this._majorUnit),n),r=this._getLabelSize(a),o=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h);return this.options.offset&&o--,o>0?o:1}});iy._defaults={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};var i_={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};eP._date.override("function"==typeof t?{_id:"moment",formats:function(){return i_},parse:function(e,i){return"string"==typeof e&&"string"==typeof i?e=t(e,i):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,i){return t(e).format(i)},add:function(e,i,n){return t(e).add(i,n).valueOf()},diff:function(e,i,n){return t(e).diff(t(i),n)},startOf:function(e,i,n){return(e=t(e),"isoWeek"===i)?e.isoWeekday(n).valueOf():e.startOf(i).valueOf()},endOf:function(e,i){return t(e).endOf(i).valueOf()},_create:function(e){return t(e)}}:{}),R._set("global",{plugins:{filler:{propagate:!0}}});var ik={dataset:function(t){var e=t.fill,i=t.chart,n=i.getDatasetMeta(e),a=n&&i.isDatasetVisible(e)&&n.dataset._children||[],r=a.length||0;return r?function(t,e){return e<r&&a[e]._view||null}:null},boundary:function(t){var e=t.boundary,i=e?e.x:null,n=e?e.y:null;return V.isArray(e)?function(t,i){return e[i]}:function(t){return{x:null===i?t.x:i,y:null===n?t.y:n}}}};
1function iw(t,e,i){var n,a=t._model||{},r=a.fill;if(void 0===r&&(r=!!a.backgroundColor),!1===r||null===r)return!1;if(!0===r)return"origin";if(n=parseFloat(r,10),isFinite(n)&&Math.floor(n)===n)return("-"===r[0]||"+"===r[0])&&(n=e+n),n!==e&&!(n<0)&&!(n>=i)&&n;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 iM(t){return(t.el._scale||{}).getPointPositionForValue?function(t){var e,i,n,a,r,o=t.el._scale,s=o.options,l=o.chart.data.labels.length,h=t.fill,u=[];if(!l)return null;for(a=0,e=s.ticks.reverse?o.max:o.min,i=s.ticks.reverse?o.min:o.max,n=o.getPointPositionForValue(0,e);a<l;++a)r="start"===h||"end"===h?o.getPointPositionForValue(a,"start"===h?e:i):o.getBasePosition(a),s.gridLines.circular&&(r.cx=n.x,r.cy=n.y,r.angle=o.getIndexAngle(a)-Math.PI/2),u.push(r);return u}(t):function(t){var e,i=t.el._model||{},n=t.el._scale||{},a=t.fill,r=null;if(isFinite(a))return null;if("start"===a?r=void 0===i.scaleBottom?n.bottom:i.scaleBottom:"end"===a?r=void 0===i.scaleTop?n.top:i.scaleTop:void 0!==i.scaleZero?r=i.scaleZero:n.getBasePixel&&(r=n.getBasePixel()),null!=r){if(void 0!==r.x&&void 0!==r.y)return r;if(V.isFinite(r))return{x:(e=n.isHorizontal())?r:null,y:e?null:r}}return null}(t)}function iS(t,e,i){var n,a=t[e].fill,r=[e];if(!i)return a;for(;!1!==a&&-1===r.indexOf(a);){if(!isFinite(a))return a;if(!(n=t[a]))break;if(n.visible)return a;r.push(a),a=n.fill}return!1}function iC(t){var e=t.fill,i="dataset";return!1===e?null:(isFinite(e)||(i="boundary"),ik[i](t))}function iP(t){return t&&!t.skip}function iA(t,e,i,n,a){var r,o,s,l;if(n&&a){for(t.moveTo(e[0].x,e[0].y),r=1;r<n;++r)V.canvas.lineTo(t,e[r-1],e[r]);if(void 0!==i[0].angle){for(o=i[0].cx,s=i[0].cy,l=Math.sqrt(Math.pow(i[0].x-o,2)+Math.pow(i[0].y-s,2)),r=a-1;r>0;--r)t.arc(o,s,l,i[r].angle,i[r-1].angle,!0);return}for(t.lineTo(i[a-1].x,i[a-1].y),r=a-1;r>0;--r)V.canvas.lineTo(t,i[r],i[r-1],!0)}}function iD(t,e,i,n,a,r){var o,s,l,h,u,d,c,f,g=e.length,p=n.spanGaps,m=[],v=[],b=0,x=0;for(t.beginPath(),o=0,s=g;o<s;++o)u=i(h=e[l=o%g]._view,l,n),d=iP(h),c=iP(u),r&&void 0===f&&d&&(s=g+(f=o+1)),d&&c?(b=m.push(h),x=v.push(u)):b&&x&&(p?(d&&m.push(h),c&&v.push(u)):(iA(t,m,v,b,x),b=x=0,m=[],v=[]));iA(t,m,v,b,x),t.closePath(),t.fillStyle=a,t.fill()}var iT=V.rtl.getRtlAdapter,iI=V.noop,iF=V.valueOrDefault;function iO(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}R._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var i=e.datasetIndex,n=this.chart,a=n.getDatasetMeta(i);a.hidden=null===a.hidden?!n.data.datasets[i].hidden:null,n.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data.datasets,i=t.options.legend||{},n=i.labels&&i.labels.usePointStyle;return t._getSortedDatasetMetas().map(function(i){var a=i.controller.getStyle(n?0:void 0);return{text:e[i.index].label,fillStyle:a.backgroundColor,hidden:!t.isDatasetVisible(i.index),lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:a.borderWidth,strokeStyle:a.borderColor,pointStyle:a.pointStyle,rotation:a.rotation,datasetIndex:i.index}},this)}}},legendCallback:function(t){var e,i,n,a,r=document.createElement("ul"),o=t.data.datasets;for(r.setAttribute("class",t.id+"-legend"),e=0,i=o.length;e<i;e++)(n=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[e].backgroundColor,o[e].label&&n.appendChild(document.createTextNode(o[e].label));return r.outerHTML}});var iL=H.extend({initialize:function(t){var e=this;V.extend(e,t),e.legendHitBoxes=[],e._hoveredItem=null,e.doughnutMode=!1},beforeUpdate:iI,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:iI,beforeSetDimensions:iI,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:iI,beforeBuildLabels:iI,buildLabels:function(){var t=this,e=t.options.labels||{},i=V.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(i=i.filter(function(i){return e.filter(i,t.chart.data)})),t.options.reverse&&i.reverse(),t.legendItems=i},afterBuildLabels:iI,beforeFit:iI,fit:function(){var t=this,e=t.options,i=e.labels,n=e.display,a=t.ctx,r=V.options._parseFont(i),o=r.size,s=t.legendHitBoxes=[],l=t.minSize,h=t.isHorizontal();if(h?(l.width=t.maxWidth,l.height=n?10:0):(l.width=n?10:0,l.height=t.maxHeight),!n){t.width=l.width=t.height=l.height=0;return}if(a.font=r.string,h){var u=t.lineWidths=[0],d=0;a.textAlign="left",a.textBaseline="middle",V.each(t.legendItems,function(t,e){var n=iO(i,o)+o/2+a.measureText(t.text).width;(0===e||u[u.length-1]+n+2*i.padding>l.width)&&(d+=o+i.padding,u[u.length-(e>0?0:1)]=0),s[e]={left:0,top:0,width:n,height:o},u[u.length-1]+=n+i.padding}),l.height+=d}
1else{var c=i.padding,f=t.columnWidths=[],g=t.columnHeights=[],p=i.padding,m=0,v=0;V.each(t.legendItems,function(t,e){var n=iO(i,o)+o/2+a.measureText(t.text).width;e>0&&v+o+2*c>l.height&&(p+=m+i.padding,f.push(m),g.push(v),m=0,v=0),m=Math.max(m,n),v+=o+c,s[e]={left:0,top:0,width:n,height:o}}),p+=m,f.push(m),g.push(v),l.width+=p}t.width=l.width,t.height=l.height},afterFit:iI,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t,e=this,i=e.options,n=i.labels,a=R.global,r=a.defaultColor,o=a.elements.line,s=e.height,l=e.columnHeights,h=e.width,u=e.lineWidths;if(i.display){var d=iT(i.rtl,e.left,e.minSize.width),c=e.ctx,f=iF(n.fontColor,a.defaultFontColor),g=V.options._parseFont(n),p=g.size;c.textAlign=d.textAlign("left"),c.textBaseline="middle",c.lineWidth=.5,c.strokeStyle=f,c.fillStyle=f,c.font=g.string;var m=iO(n,p),v=e.legendHitBoxes,b=function(t,e,i){if(!isNaN(m)&&!(m<=0)){c.save();var a=iF(i.lineWidth,o.borderWidth);if(c.fillStyle=iF(i.fillStyle,r),c.lineCap=iF(i.lineCap,o.borderCapStyle),c.lineDashOffset=iF(i.lineDashOffset,o.borderDashOffset),c.lineJoin=iF(i.lineJoin,o.borderJoinStyle),c.lineWidth=a,c.strokeStyle=iF(i.strokeStyle,r),c.setLineDash&&c.setLineDash(iF(i.lineDash,o.borderDash)),n&&n.usePointStyle){var s=d.xPlus(t,m/2);V.canvas.drawPoint(c,i.pointStyle,m*Math.SQRT2/2,s,e+p/2,i.rotation)}else c.fillRect(d.leftForLtr(t,m),e,m,p),0!==a&&c.strokeRect(d.leftForLtr(t,m),e,m,p);c.restore()}},x=function(t,e,i,n){var a=p/2,r=d.xPlus(t,m+a),o=e+a;c.fillText(i.text,r,o),i.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(r,o),c.lineTo(d.xPlus(r,n),o),c.stroke())},y=function(t,e){switch(i.align){case"start":return n.padding;case"end":return t-e;default:return(t-e+n.padding)/2}},_=e.isHorizontal();t=_?{x:e.left+y(h,u[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+y(s,l[0]),line:0},V.rtl.overrideTextDirection(e.ctx,i.textDirection);var k=p+n.padding;V.each(e.legendItems,function(i,a){var r=c.measureText(i.text).width,o=m+p/2+r,f=t.x,g=t.y;d.setWidth(e.minSize.width),_?a>0&&f+o+n.padding>e.left+e.minSize.width&&(g=t.y+=k,t.line++,f=t.x=e.left+y(h,u[t.line])):a>0&&g+k>e.top+e.minSize.height&&(f=t.x=f+e.columnWidths[t.line]+n.padding,t.line++,g=t.y=e.top+y(s,l[t.line]));var w=d.x(f);b(w,g,i),v[a].left=d.leftForLtr(w,v[a].width),v[a].top=g,x(w,g,i,r),_?t.x+=o+n.padding:t.y+=k}),V.rtl.restoreTextDirection(e.ctx,i.textDirection)}},_getLegendItemAt:function(t,e){var i,n,a;if(t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom){for(i=0,a=this.legendHitBoxes;i<a.length;++i)if(t>=(n=a[i]).left&&t<=n.left+n.width&&e>=n.top&&e<=n.top+n.height)return this.legendItems[i]}return null},handleEvent:function(t){var e,i=this,n=i.options,a="mouseup"===t.type?"click":t.type;if("mousemove"===a){if(!n.onHover&&!n.onLeave)return}else if("click"!==a)return;else if(!n.onClick)return;e=i._getLegendItemAt(t.x,t.y),"click"===a?e&&n.onClick&&n.onClick.call(i,t.native,e):(n.onLeave&&e!==i._hoveredItem&&(i._hoveredItem&&n.onLeave.call(i,t.native,i._hoveredItem),i._hoveredItem=e),n.onHover&&e&&n.onHover.call(i,t.native,e))}});function iR(t,e){var i=new iL({ctx:t.ctx,options:e,chart:t});tZ.configure(t,i,e),tZ.addBox(t,i),t.legend=i}var iz=V.noop;R._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var iN=H.extend({initialize:function(t){var e=this;V.extend(e,t),e.legendHitBoxes=[]},beforeUpdate:iz,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:iz,beforeSetDimensions:iz,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:iz,beforeBuildLabels:iz,buildLabels:iz,afterBuildLabels:iz,beforeFit:iz,fit:function(){var t,e,i=this,n=i.options,a=i.minSize={},r=i.isHorizontal();if(!n.display){i.width=a.width=i.height=a.height=0;return}e=(V.isArray(n.text)?n.text.length:1)*V.options._parseFont(n).lineHeight+2*n.padding,i.width=a.width=r?i.maxWidth:e,i.height=a.height=r?e:i.maxHeight},afterFit:iz,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t,e,i,n=this.ctx,a=this.options;if(a.display){var r=V.options._parseFont(a),o=r.lineHeight,s=o/2+a.padding,l=0,h=this.top,u=this.left,d=this.bottom,c=this.right;n.fillStyle=V.valueOrDefault(a.fontColor,R.global.defaultFontColor),n.font=r.string,this.isHorizontal()?(e=u+(c-u)/2,i=h+s,t=c-u):(e="left"===a.position?u+s:c-s,i=h+(d-h)/2,t=d-h,l=Math.PI*("left"===a.position?-.5:.5)),n.save(),n.translate(e,i),n.rotate(l),n.textAlign="center",n.textBaseline="middle";var f=a.text;if(V.isArray(f))for(var g=0,p=0;p<f.length;++p)n.fillText(f[p],0,g,t),g+=o;else n.fillText(f,0,0,t);
1n.restore()}}});function iB(t,e){var i=new iN({ctx:t.ctx,options:e,chart:t});tZ.configure(t,i,e),tZ.addBox(t,i),t.titleBlock=i}var iE={};for(var iW in iE.filler={id:"filler",afterDatasetsUpdate:function(t,e){var i,n,a,r,o=(t.data.datasets||[]).length,s=e.propagate,l=[];for(n=0;n<o;++n)a=(i=t.getDatasetMeta(n)).dataset,r=null,a&&a._model&&a instanceof td.Line&&(r={visible:t.isDatasetVisible(n),fill:iw(a,n,o),chart:t,el:a}),i.$filler=r,l.push(r);for(n=0;n<o;++n)(r=l[n])&&(r.fill=iS(l,n,s),r.boundary=iM(r),r.mapper=iC(r))},beforeDatasetsDraw:function(t){var e,i,n,a,r,o,s,l=t._getSortedVisibleDatasetMetas(),h=t.ctx;for(i=l.length-1;i>=0;--i)(e=l[i].$filler)&&e.visible&&(a=(n=e.el)._view,r=n._children||[],o=e.mapper,s=a.backgroundColor||R.global.defaultColor,o&&s&&r.length&&(V.canvas.clipArea(h,t.chartArea),iD(h,r,o,a,s,n._loop),V.canvas.unclipArea(h)))}},iE.legend={id:"legend",_element:iL,beforeInit:function(t){var e=t.options.legend;e&&iR(t,e)},beforeUpdate:function(t){var e=t.options.legend,i=t.legend;e?(V.mergeIf(e,R.global.legend),i?(tZ.configure(t,i,e),i.options=e):iR(t,e)):i&&(tZ.removeBox(t,i),delete t.legend)},afterEvent:function(t,e){var i=t.legend;i&&i.handleEvent(e)}},iE.title={id:"title",_element:iN,beforeInit:function(t){var e=t.options.title;e&&iB(t,e)},beforeUpdate:function(t){var e=t.options.title,i=t.titleBlock;e?(V.mergeIf(e,R.global.title),i?(tZ.configure(t,i,e),i.options=e):iB(t,e)):i&&(tZ.removeBox(t,i),delete t.titleBlock)}},eM.helpers=V,function(){function t(t,e,i){var n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}function e(t){return null!=t&&"none"!==t}function i(i,n,a){var r=document.defaultView,o=V._getParentNode(i),s=r.getComputedStyle(i)[n],l=r.getComputedStyle(o)[n],h=e(s),u=e(l),d=Number.POSITIVE_INFINITY;return h||u?Math.min(h?t(s,i,a):d,u?t(l,o,a):d):"none"}V.where=function(t,e){if(V.isArray(t)&&Array.prototype.filter)return t.filter(e);var i=[];return V.each(t,function(t){e(t)&&i.push(t)}),i},V.findIndex=Array.prototype.findIndex?function(t,e,i){return t.findIndex(e,i)}:function(t,e,i){i=void 0===i?t:i;for(var n=0,a=t.length;n<a;++n)if(e.call(i,t[n],n,t))return n;return -1},V.findNextWhere=function(t,e,i){V.isNullOrUndef(i)&&(i=-1);for(var n=i+1;n<t.length;n++){var a=t[n];if(e(a))return a}},V.findPreviousWhere=function(t,e,i){V.isNullOrUndef(i)&&(i=t.length);for(var n=i-1;n>=0;n--){var a=t[n];if(e(a))return a}},V.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},V.almostEquals=function(t,e,i){return Math.abs(t-e)<i},V.almostWhole=function(t,e){var i=Math.round(t);return i-e<=t&&i+e>=t},V.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},V.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},V.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},V.toRadians=function(t){return t*(Math.PI/180)},V.toDegrees=function(t){return t*(180/Math.PI)},V._decimalPlaces=function(t){if(V.isFinite(t)){for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i}},V.getAngleFromPoint=function(t,e){var i=e.x-t.x,n=e.y-t.y,a=Math.atan2(n,i);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:Math.sqrt(i*i+n*n)}},V.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},V.aliasPixel=function(t){return t%2==0?0:.5},V._alignPixel=function(t,e,i){var n=t.currentDevicePixelRatio,a=i/2;return Math.round((e-a)*n)/n+a},V.splineCurve=function(t,e,i,n){var a=t.skip?e:t,r=i.skip?e:i,o=Math.sqrt(Math.pow(e.x-a.x,2)+Math.pow(e.y-a.y,2)),s=Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2)),l=o/(o+s),h=s/(o+s);l=isNaN(l)?0:l,h=isNaN(h)?0:h;var u=n*l,d=n*h;return{previous:{x:e.x-u*(r.x-a.x),y:e.y-u*(r.y-a.y)},next:{x:e.x+d*(r.x-a.x),y:e.y+d*(r.y-a.y)}}},V.EPSILON=Number.EPSILON||1e-14,V.splineCurveMonotone=function(t){var e,i,n,a,r,o,s,l,h,u=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),d=u.length;for(e=0;e<d;++e)if(!(n=u[e]).model.skip){if(i=e>0?u[e-1]:null,(a=e<d-1?u[e+1]:null)&&!a.model.skip){var c=a.model.x-n.model.x;n.deltaK=0!==c?(a.model.y-n.model.y)/c:0}!i||i.model.skip?n.mK=n.deltaK:!a||a.model.skip?n.mK=i.deltaK:this.sign(i.deltaK)!==this.sign(n.deltaK)?n.mK=0:n.mK=(i.deltaK+n.deltaK)/2}for(e=0;e<d-1;++e){if(n=u[e],a=u[e+1],!n.model.skip&&!a.model.skip){if(V.almostEquals(n.deltaK,0,this.EPSILON)){n.mK=a.mK=0;continue}!((l=Math.pow(r=n.mK/n.deltaK,2)+Math.pow(o=a.mK/n.deltaK,2))<=9)&&(s=3/Math.sqrt(l),n.mK=r*s*n.deltaK,a.mK=o*s*n.deltaK)}}for(e=0;e<d;++e)!(n=u[e]).model.skip&&(i=e>0?u[e-1]:null,a=e<d-1?u[e+1]:null,i&&!i.model.skip&&(h=(n.model.x-i.model.x)/3,n.model.controlPointPreviousX=n.model.x-h,n.model.controlPointPreviousY=n.model.y-h*n.mK),a&&!a.model.skip&&(h=(a.model.x-n.model.x)/3,n.model.controlPointNextX=n.model.x+h,n.model.controlPointNextY=n.model.y+h*n.mK))}
vendor: 4,280 bytes, line 1
1,V.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]},V.previousItem=function(t,e,i){return i?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},V.niceNum=function(t,e){var i=Math.floor(V.log10(t)),n=t/Math.pow(10,i);return(e?n<1.5?1:n<3?2:n<7?5:10:n<=1?1:n<=2?2:n<=5?5:10)*Math.pow(10,i)},V.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},V.getRelativePosition=function(t,e){var i,n,a=t.originalEvent||t,r=t.target||t.srcElement,o=r.getBoundingClientRect(),s=a.touches;s&&s.length>0?(i=s[0].clientX,n=s[0].clientY):(i=a.clientX,n=a.clientY);var l=parseFloat(V.getStyle(r,"padding-left")),h=parseFloat(V.getStyle(r,"padding-top")),u=parseFloat(V.getStyle(r,"padding-right")),d=parseFloat(V.getStyle(r,"padding-bottom")),c=o.right-o.left-l-u,f=o.bottom-o.top-h-d;return{x:i=Math.round((i-o.left-l)/c*r.width/e.currentDevicePixelRatio),y:n=Math.round((n-o.top-h)/f*r.height/e.currentDevicePixelRatio)}},V.getConstraintWidth=function(t){return i(t,"max-width","clientWidth")},V.getConstraintHeight=function(t){return i(t,"max-height","clientHeight")},V._calculatePadding=function(t,e,i){return(e=V.getStyle(t,e)).indexOf("%")>-1?i*parseInt(e,10)/100:parseInt(e,10)},V._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},V.getMaximumWidth=function(t){var e=V._getParentNode(t);if(!e)return t.clientWidth;var i=e.clientWidth,n=V._calculatePadding(e,"padding-left",i),a=V._calculatePadding(e,"padding-right",i),r=i-n-a,o=V.getConstraintWidth(t);return isNaN(o)?r:Math.min(r,o)},V.getMaximumHeight=function(t){var e=V._getParentNode(t);if(!e)return t.clientHeight;var i=e.clientHeight,n=V._calculatePadding(e,"padding-top",i),a=V._calculatePadding(e,"padding-bottom",i),r=i-n-a,o=V.getConstraintHeight(t);return isNaN(o)?r:Math.min(r,o)},V.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},V.retinaScale=function(t,e){var i=t.currentDevicePixelRatio=e||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==i){var n=t.canvas,a=t.height,r=t.width;n.height=a*i,n.width=r*i,t.ctx.scale(i,i),n.style.height||n.style.width||(n.style.height=a+"px",n.style.width=r+"px")}},V.fontString=function(t,e,i){return e+" "+t+"px "+i},V.longestText=function(t,e,i,n){var a,r,o,s,l,h=(n=n||{}).data=n.data||{},u=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(h=n.data={},u=n.garbageCollect=[],n.font=e),t.font=e;var d=0,c=i.length;for(a=0;a<c;a++)if(void 0!==(s=i[a])&&null!==s&&!0!==V.isArray(s))d=V.measureText(t,h,u,d,s);else if(V.isArray(s))for(r=0,o=s.length;r<o;r++)void 0===(l=s[r])||null===l||V.isArray(l)||(d=V.measureText(t,h,u,d,l));var f=u.length/2;if(f>i.length){for(a=0;a<f;a++)delete h[u[a]];u.splice(0,f)}return d},V.measureText=function(t,e,i,n,a){var r=e[a];return r||(r=e[a]=t.measureText(a).width,i.push(a)),r>n&&(n=r),n},V.numberOfLabelLines=function(t){var e=1;return V.each(t,function(t){V.isArray(t)&&t.length>e&&(e=t.length)}),e},V.color=k?function(t){return t instanceof CanvasGradient&&(t=R.global.defaultColor),k(t)}:function(t){return console.error("Color.js not found!"),t},V.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:V.color(t).saturate(.5).darken(.1).rgbString()}}(),eM._adapters=eP,eM.Animation=j,eM.animationService=q,eM.controllers=tO,eM.DatasetController=X,eM.defaults=R,eM.Element=H,eM.elements=td,eM.Interaction=tW,eM.layouts=tZ,eM.platform=en,eM.plugins=ea,eM.Scale=eW,eM.scaleService=er,eM.Ticks=eA,eM.Tooltip=em,eM.helpers.each({category:eH,linear:eK,logarithmic:e0,radialLinear:ii,time:iy},function(t,e){eM.scaleService.registerScaleType(e,t,t._defaults)}),iE)iE.hasOwnProperty(iW)&&eM.plugins.register(iE[iW]);return eM.platform.initialize(),"undefined"!=typeof window&&(window.Chart=eM),eM.Chart=eM,eM.Legend=iE.legend._element,eM.Title=iE.title._element,eM.pluginService=eM.plugins,eM.PluginBase=eM.Element.extend({}),eM.canvasHelpers=eM.helpers.canvas,eM.layoutService=eM.layouts,eM.LinearScaleBase=e
1U,eM.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(t){eM[t]=function(e,i){return new eM(e,eM.helpers.merge(i||{},{type:t.charAt(0).toLowerCase()+t.slice(1)}))}}),eM},t.exports=n(function(){try{return i(30381)}catch(t){}}())}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.