-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path6517.cc2f54f7d782cb02a517.js
1 lines (1 loc) · 191 KB
/
6517.cc2f54f7d782cb02a517.js
1
(self.webpackChunkchekt_web_wcs=self.webpackChunkchekt_web_wcs||[]).push([[6517],{25119:function(Yo,Go,qt){Yo.exports=function(V){"use strict";V=V&&V.hasOwnProperty("default")?V.default:V;var $e={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]},G=function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e){var t={};for(var r in $e)$e.hasOwnProperty(r)&&(t[$e[r]]=r);var a=e.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 n in a)if(a.hasOwnProperty(n)){if(!("channels"in a[n]))throw new Error("missing channels property: "+n);if(!("labels"in a[n]))throw new Error("missing channel labels property: "+n);if(a[n].labels.length!==a[n].channels)throw new Error("channel and label counts mismatch: "+n);var i=a[n].channels,o=a[n].labels;delete a[n].channels,delete a[n].labels,Object.defineProperty(a[n],"channels",{value:i}),Object.defineProperty(a[n],"labels",{value:o})}function l(s,u){return Math.pow(s[0]-u[0],2)+Math.pow(s[1]-u[1],2)+Math.pow(s[2]-u[2],2)}a.rgb.hsl=function(s){var y,w,u=s[0]/255,d=s[1]/255,f=s[2]/255,v=Math.min(u,d,f),p=Math.max(u,d,f),m=p-v;return p===v?y=0:u===p?y=(d-f)/m:d===p?y=2+(f-u)/m:f===p&&(y=4+(u-d)/m),(y=Math.min(60*y,360))<0&&(y+=360),w=(v+p)/2,[y,100*(p===v?0:w<=.5?m/(p+v):m/(2-p-v)),100*w]},a.rgb.hsv=function(s){var u,d,f,v,p,m=s[0]/255,y=s[1]/255,_=s[2]/255,w=Math.max(m,y,_),M=w-Math.min(m,y,_),k=function(F){return(w-F)/6/M+.5};return 0===M?v=p=0:(p=M/w,u=k(m),d=k(y),f=k(_),m===w?v=f-d:y===w?v=1/3+u-f:_===w&&(v=2/3+d-u),v<0?v+=1:v>1&&(v-=1)),[360*v,100*p,100*w]},a.rgb.hwb=function(s){var u=s[0],d=s[1],f=s[2];return[a.rgb.hsl(s)[0],1/255*Math.min(u,Math.min(d,f))*100,100*(f=1-1/255*Math.max(u,Math.max(d,f)))]},a.rgb.cmyk=function(s){var y,u=s[0]/255,d=s[1]/255,f=s[2]/255;return[100*((1-u-(y=Math.min(1-u,1-d,1-f)))/(1-y)||0),100*((1-d-y)/(1-y)||0),100*((1-f-y)/(1-y)||0),100*y]},a.rgb.keyword=function(s){var u=t[s];if(u)return u;var f,d=1/0;for(var v in $e)if($e.hasOwnProperty(v)){var m=l(s,$e[v]);m<d&&(d=m,f=v)}return f},a.keyword.rgb=function(s){return $e[s]},a.rgb.xyz=function(s){var u=s[0]/255,d=s[1]/255,f=s[2]/255;return[100*(.4124*(u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92)+.3576*(d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92)+.1805*(f=f>.04045?Math.pow((f+.055)/1.055,2.4):f/12.92)),100*(.2126*u+.7152*d+.0722*f),100*(.0193*u+.1192*d+.9505*f)]},a.rgb.lab=function(s){var u=a.rgb.xyz(s),d=u[0],f=u[1],v=u[2];return f/=100,v/=108.883,d=(d/=95.047)>.008856?Math.pow(d,1/3):7.787*d+16/116,[116*(f=f>.008856?Math.pow(f,1/3):7.787*f+16/116)-16,500*(d-f),200*(f-(v=v>.008856?Math.pow(v,1/3):7.787*v+16/116))]},a.hsl.rgb=function(s){var v,p,m,y,_,u=s[0]/360,d=s[1]/100,f=s[2]/100;if(0===d)return[_=255*f,_,_];v=2*f-(p=f<.5?f*(1+d):f+d-f*d),y=[0,0,0];for(var w=0;w<3;w++)(m=u+1/3*-(w-1))<0&&m++,m>1&&m--,y[w]=255*(_=6*m<1?v+6*(p-v)*m:2*m<1?p:3*m<2?v+(p-v)*(2/3-m)*6:v);return y},a.hsl.hsv=function(s){var u=s[0],d=s[1]/100,f=s[2]/100,v=d,p=Math.max(f,.01);return d*=(f*=2)<=1?f:2-f,v*=p<=1?p:2-p,[u,100*(0===f?2*v/(p+v):2*d/(f+d)),(f+d)/2*100]},a.hsv.rgb=function(s){var u=s[0]/60,d=s[1]/100,f=s[2]/100,v=Math.floor(u)%6,p=u-Math.floor(u),m=255*f*(1-d),y=255*f*(1-d*p),_=255*f*(1-d*(1-p));switch(f*=255,v){case 0:return[f,_,m];case 1:return[y,f,m];case 2:return[m,f,_];case 3:return[m,y,f];case 4:return[_,m,f];case 5:return[f,m,y]}},a.hsv.hsl=function(s){var p,m,y,u=s[0],d=s[1]/100,f=s[2]/100,v=Math.max(f,.01);return y=(2-d)*f,m=d*v,[u,100*(m=(m/=(p=(2-d)*v)<=1?p:2-p)||0),100*(y/=2)]},a.hwb.rgb=function(s){var p,m,y,_,w,M,k,u=s[0]/360,d=s[1]/100,f=s[2]/100,v=d+f;switch(v>1&&(d/=v,f/=v),y=6*u-(p=Math.floor(6*u)),0!=(1&p)&&(y=1-y),_=d+y*((m=1-f)-d),p){default:case 6:case 0:w=m,M=_,k=d;break;case 1:w=_,M=m,k=d;break;case 2:w=d,M=m,k=_;break;case 3:w=d,M=_,k=m;break;case 4:w=_,M=d,k=m;break;case 5:w=m,M=d,k=_}return[255*w,255*M,255*k]},a.cmyk.rgb=function(s){var d=s[1]/100,f=s[2]/100,v=s[3]/100;return[255*(1-Math.min(1,s[0]/100*(1-v)+v)),255*(1-Math.min(1,d*(1-v)+v)),255*(1-Math.min(1,f*(1-v)+v))]},a.xyz.rgb=function(s){var v,p,m,u=s[0]/100,d=s[1]/100,f=s[2]/100;return p=-.9689*u+1.8758*d+.0415*f,m=.0557*u+-.204*d+1.057*f,v=(v=3.2406*u+-1.5372*d+-.4986*f)>.0031308?1.055*Math.pow(v,1/2.4)-.055:12.92*v,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:12.92*p,m=m>.0031308?1.055*Math.pow(m,1/2.4)-.055:12.92*m,[255*(v=Math.min(Math.max(0,v),1)),255*(p=Math.min(Math.max(0,p),1)),255*(m=Math.min(Math.max(0,m),1))]},a.xyz.lab=function(s){var u=s[0],d=s[1],f=s[2];return d/=100,f/=108.883,u=(u/=95.047)>.008856?Math.pow(u,1/3):7.787*u+16/116,[116*(d=d>.008856?Math.pow(d,1/3):7.787*d+16/116)-16,500*(u-d),200*(d-(f=f>.008856?Math.pow(f,1/3):7.787*f+16/116))]},a.lab.xyz=function(s){var v,p,m;v=s[1]/500+(p=(s[0]+16)/116),m=p-s[2]/200;var y=Math.pow(p,3),_=Math.pow(v,3),w=Math.pow(m,3);return p=y>.008856?y:(p-16/116)/7.787,v=_>.008856?_:(v-16/116)/7.787,m=w>.008856?w:(m-16/116)/7.787,[v*=95.047,p*=100,m*=108.883]},a.lab.lch=function(s){var p,u=s[0],d=s[1],f=s[2];return(p=360*Math.atan2(f,d)/2/Math.PI)<0&&(p+=360),[u,Math.sqrt(d*d+f*f),p]},a.lch.lab=function(s){var m,d=s[1];return m=s[2]/360*2*Math.PI,[s[0],d*Math.cos(m),d*Math.sin(m)]},a.rgb.ansi16=function(s){var u=s[0],d=s[1],f=s[2],v=1 in arguments?arguments[1]:a.rgb.hsv(s)[2];if(0===(v=Math.round(v/50)))return 30;var p=30+(Math.round(f/255)<<2|Math.round(d/255)<<1|Math.round(u/255));return 2===v&&(p+=60),p},a.hsv.ansi16=function(s){return a.rgb.ansi16(a.hsv.rgb(s),s[2])},a.rgb.ansi256=function(s){var u=s[0],d=s[1],f=s[2];return u===d&&d===f?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(d/255*5)+Math.round(f/255*5)},a.ansi16.rgb=function(s){var u=s%10;if(0===u||7===u)return s>50&&(u+=3.5),[u=u/10.5*255,u,u];var d=.5*(1+~~(s>50));return[(1&u)*d*255,(u>>1&1)*d*255,(u>>2&1)*d*255]},a.ansi256.rgb=function(s){if(s>=232){var u=10*(s-232)+8;return[u,u,u]}var d;return s-=16,[Math.floor(s/36)/5*255,Math.floor((d=s%36)/6)/5*255,d%6/5*255]},a.rgb.hex=function(s){var d=(((255&Math.round(s[0]))<<16)+((255&Math.round(s[1]))<<8)+(255&Math.round(s[2]))).toString(16).toUpperCase();return"000000".substring(d.length)+d},a.hex.rgb=function(s){var u=s.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!u)return[0,0,0];var d=u[0];3===u[0].length&&(d=d.split("").map(function(y){return y+y}).join(""));var f=parseInt(d,16);return[f>>16&255,f>>8&255,255&f]},a.rgb.hcg=function(s){var _,u=s[0]/255,d=s[1]/255,f=s[2]/255,v=Math.max(Math.max(u,d),f),p=Math.min(Math.min(u,d),f),m=v-p;return _=m<=0?0:v===u?(d-f)/m%6:v===d?2+(f-u)/m:4+(u-d)/m+4,_/=6,[360*(_%=1),100*m,100*(m<1?p/(1-m):0)]},a.hsl.hcg=function(s){var f,u=s[1]/100,d=s[2]/100,v=0;return(f=d<.5?2*u*d:2*u*(1-d))<1&&(v=(d-.5*f)/(1-f)),[s[0],100*f,100*v]},a.hsv.hcg=function(s){var d=s[2]/100,f=s[1]/100*d,v=0;return f<1&&(v=(d-f)/(1-f)),[s[0],100*f,100*v]},a.hcg.rgb=function(s){var d=s[1]/100,f=s[2]/100;if(0===d)return[255*f,255*f,255*f];var _,v=[0,0,0],p=s[0]/360%1*6,m=p%1,y=1-m;switch(Math.floor(p)){case 0:v[0]=1,v[1]=m,v[2]=0;break;case 1:v[0]=y,v[1]=1,v[2]=0;break;case 2:v[0]=0,v[1]=1,v[2]=m;break;case 3:v[0]=0,v[1]=y,v[2]=1;break;case 4:v[0]=m,v[1]=0,v[2]=1;break;default:v[0]=1,v[1]=0,v[2]=y}return[255*(d*v[0]+(_=(1-d)*f)),255*(d*v[1]+_),255*(d*v[2]+_)]},a.hcg.hsv=function(s){var u=s[1]/100,f=u+s[2]/100*(1-u),v=0;return f>0&&(v=u/f),[s[0],100*v,100*f]},a.hcg.hsl=function(s){var u=s[1]/100,f=s[2]/100*(1-u)+.5*u,v=0;return f>0&&f<.5?v=u/(2*f):f>=.5&&f<1&&(v=u/(2*(1-f))),[s[0],100*v,100*f]},a.hcg.hwb=function(s){var u=s[1]/100,f=u+s[2]/100*(1-u);return[s[0],100*(f-u),100*(1-f)]},a.hwb.hcg=function(s){var f=1-s[2]/100,v=f-s[1]/100,p=0;return v<1&&(p=(f-v)/(1-v)),[s[0],100*v,100*p]},a.apple.rgb=function(s){return[s[0]/65535*255,s[1]/65535*255,s[2]/65535*255]},a.rgb.apple=function(s){return[s[0]/255*65535,s[1]/255*65535,s[2]/255*65535]},a.gray.rgb=function(s){return[s[0]/100*255,s[0]/100*255,s[0]/100*255]},a.gray.hsl=a.gray.hsv=function(s){return[0,0,s[0]]},a.gray.hwb=function(s){return[0,100,s[0]]},a.gray.cmyk=function(s){return[0,0,0,s[0]]},a.gray.lab=function(s){return[s[0],0,0]},a.gray.hex=function(s){var u=255&Math.round(s[0]/100*255),f=((u<<16)+(u<<8)+u).toString(16).toUpperCase();return"000000".substring(f.length)+f},a.rgb.gray=function(s){return[(s[0]+s[1]+s[2])/3/255*100]}});function Dn(e){var t=function(){for(var e={},t=Object.keys(G),r=t.length,a=0;a<r;a++)e[t[a]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var a=r.pop(),n=Object.keys(G[a]),i=n.length,o=0;o<i;o++){var l=n[o],s=t[l];-1===s.distance&&(s.distance=t[a].distance+1,s.parent=a,r.unshift(l))}return t}function Pn(e,t){return function(r){return t(e(r))}}function On(e,t){for(var r=[t[e].parent,e],a=G[t[e].parent][e],n=t[e].parent;t[n].parent;)r.unshift(t[n].parent),a=Pn(G[t[n].parent][n],a),n=t[n].parent;return a.conversion=r,a}var nt={};Object.keys(G).forEach(function(e){nt[e]={},Object.defineProperty(nt[e],"channels",{value:G[e].channels}),Object.defineProperty(nt[e],"labels",{value:G[e].labels});var t=function(e){for(var t=Dn(e),r={},a=Object.keys(t),n=a.length,i=0;i<n;i++){var o=a[i];null!==t[o].parent&&(r[o]=On(o,t))}return r}(e);Object.keys(t).forEach(function(a){var n=t[a];nt[e][a]=function(e){var t=function(r){if(null==r)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var a=e(r);if("object"==typeof a)for(var n=a.length,i=0;i<n;i++)a[i]=Math.round(a[i]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}(n),nt[e][a].raw=function(e){var t=function(r){return null==r?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)})});var ha=nt,yr={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]},ke={getRgba:be,getHsla:_r,getRgb:function(e){var t=be(e);return t&&t.slice(0,3)},getHsl:function(e){var t=_r(e);return t&&t.slice(0,3)},getHwb:Ye,getAlpha:function(e){var t=be(e);return t||(t=_r(e))||(t=Ye(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+$t(e[0])+$t(e[1])+$t(e[2])+(t>=0&&t<1?$t(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?va(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:va,percentString:function(e,t){return t<1||e[3]&&e[3]<1?ga(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"},percentaString:ga,hslString:function(e,t){return t<1||e[3]&&e[3]<1?pa(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:pa,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return it[e.slice(0,3)]}};function be(e){if(e){var o=[0,0,0],l=1,s=e.match(/^#([a-fA-F0-9]{3,4})$/i),u="";if(s){u=(s=s[1])[3];for(var d=0;d<o.length;d++)o[d]=parseInt(s[d]+s[d],16);u&&(l=Math.round(parseInt(u+u,16)/255*100)/100)}else if(s=e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(u=s[2],s=s[1],d=0;d<o.length;d++)o[d]=parseInt(s.slice(2*d,2*d+2),16);u&&(l=Math.round(parseInt(u,16)/255*100)/100)}else if(s=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(d=0;d<o.length;d++)o[d]=parseInt(s[d+1]);l=parseFloat(s[4])}else if(s=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(d=0;d<o.length;d++)o[d]=Math.round(2.55*parseFloat(s[d+1]));l=parseFloat(s[4])}else if(s=e.match(/(\w+)/)){if("transparent"==s[1])return[0,0,0,0];if(!(o=yr[s[1]]))return}for(d=0;d<o.length;d++)o[d]=Se(o[d],0,255);return l=l||0==l?Se(l,0,1):1,o[3]=l,o}}function _r(e){if(e){var r=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(r){var a=parseFloat(r[4]);return[Se(parseInt(r[1]),0,360),Se(parseFloat(r[2]),0,100),Se(parseFloat(r[3]),0,100),Se(isNaN(a)?1:a,0,1)]}}}function Ye(e){if(e){var r=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(r){var a=parseFloat(r[4]);return[Se(parseInt(r[1]),0,360),Se(parseFloat(r[2]),0,100),Se(parseFloat(r[3]),0,100),Se(isNaN(a)?1:a,0,1)]}}}function va(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function ga(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function pa(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function Se(e,t,r){return Math.min(Math.max(t,e),r)}function $t(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var it={};for(var ma in yr)it[yr[ma]]=ma;var re=function(e){return e instanceof re?e:this instanceof re?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=ke.getRgba(e))?this.setValues("rgb",t):(t=ke.getHsla(e))?this.setValues("hsl",t):(t=ke.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):(void 0!==t.c||void 0!==t.cyan)&&this.setValues("cmyk",t)))):new re(e);var t};re.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 e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return ke.hexString(this.values.rgb)},rgbString:function(){return ke.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return ke.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return ke.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return ke.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return ke.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return ke.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return ke.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],r=0;r<e.length;r++){var a=e[r]/255;t[r]=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,r=(t[0]+e)%360;return t[0]=r<0?360+r:r,this.setValues("hsl",t),this},mix:function(e,t){var r=this,a=e,n=void 0===t?.5:t,i=2*n-1,o=r.alpha()-a.alpha(),l=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,s=1-l;return this.rgb(l*r.red()+s*a.red(),l*r.green()+s*a.green(),l*r.blue()+s*a.blue()).alpha(r.alpha()*n+a.alpha()*(1-n))},toJSON:function(){return this.rgb()},clone:function(){var a,n,e=new re,t=this.values,r=e.values;for(var i in t)t.hasOwnProperty(i)&&("[object Array]"===(n={}.toString.call(a=t[i]))?r[i]=a.slice(0):"[object Number]"===n?r[i]=a:console.error("unexpected color value:",a));return e}},re.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},re.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},re.prototype.getValues=function(e){for(var t=this.values,r={},a=0;a<e.length;a++)r[e.charAt(a)]=t[e][a];return 1!==t.alpha&&(r.a=t.alpha),r},re.prototype.setValues=function(e,t){var o,s,r=this.values,a=this.spaces,n=this.maxes,i=1;if(this.valid=!0,"alpha"===e)i=t;else if(t.length)r[e]=t.slice(0,e.length),i=t[e.length];else if(void 0!==t[e.charAt(0)]){for(o=0;o<e.length;o++)r[e][o]=t[e.charAt(o)];i=t.a}else if(void 0!==t[a[e][0]]){var l=a[e];for(o=0;o<e.length;o++)r[e][o]=t[l[o]];i=t.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===i?r.alpha:i)),"alpha"===e)return!1;for(o=0;o<e.length;o++)s=Math.max(0,Math.min(n[e][o],r[e][o])),r[e][o]=Math.round(s);for(var u in a)u!==e&&(r[u]=ha[e][u](r[e]));return!0},re.prototype.setSpace=function(e,t){var r=t[0];return void 0===r?this.getValues(e):("number"==typeof r&&(r=Array.prototype.slice.call(t)),this.setValues(e,r),this)},re.prototype.setChannel=function(e,t,r){var a=this.values[e];return void 0===r?a[t]:(r===a[t]||(a[t]=r,this.setValues(e,a)),this)},"undefined"!=typeof window&&(window.Color=re);var Yt=re;function ba(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var e,R={noop:function(){},uid:(e=0,function(){return e++}),isNullOrUndef:function(e){return null==e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){return("number"==typeof e||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,r){return R.valueOrDefault(R.isArray(e)?e[t]:e,r)},callback:function(e,t,r){if(e&&"function"==typeof e.call)return e.apply(r,t)},each:function(e,t,r,a){var n,i,o;if(R.isArray(e))if(i=e.length,a)for(n=i-1;n>=0;n--)t.call(r,e[n],n);else for(n=0;n<i;n++)t.call(r,e[n],n);else if(R.isObject(e))for(i=(o=Object.keys(e)).length,n=0;n<i;n++)t.call(r,e[o[n]],o[n])},arrayEquals:function(e,t){var r,a,n,i;if(!e||!t||e.length!==t.length)return!1;for(r=0,a=e.length;r<a;++r)if(i=t[r],(n=e[r])instanceof Array&&i instanceof Array){if(!R.arrayEquals(n,i))return!1}else if(n!==i)return!1;return!0},clone:function(e){if(R.isArray(e))return e.map(R.clone);if(R.isObject(e)){for(var t=Object.create(e),r=Object.keys(e),a=r.length,n=0;n<a;++n)t[r[n]]=R.clone(e[r[n]]);return t}return e},_merger:function(e,t,r,a){if(ba(e)){var n=t[e],i=r[e];R.isObject(n)&&R.isObject(i)?R.merge(n,i,a):t[e]=R.clone(i)}},_mergerIf:function(e,t,r){if(ba(e)){var a=t[e],n=r[e];R.isObject(a)&&R.isObject(n)?R.mergeIf(a,n):t.hasOwnProperty(e)||(t[e]=R.clone(n))}},merge:function(e,t,r){var i,o,l,s,u,a=R.isArray(t)?t:[t],n=a.length;if(!R.isObject(e))return e;for(i=(r=r||{}).merger||R._merger,o=0;o<n;++o)if(R.isObject(t=a[o]))for(u=0,s=(l=Object.keys(t)).length;u<s;++u)i(l[u],e,t,r);return e},mergeIf:function(e,t){return R.merge(e,t,{merger:R._mergerIf})},extend:Object.assign||function(e){return R.merge(e,[].slice.call(arguments,1),{merger:function(t,r,a){r[t]=a[t]}})},inherits:function(e){var t=this,r=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},a=function(){this.constructor=r};return a.prototype=t.prototype,r.prototype=new a,r.extend=R.inherits,e&&R.extend(r.prototype,e),r.__super__=t.prototype,r},_deprecated:function(e,t,r,a){void 0!==t&&console.warn(e+': "'+r+'" is deprecated. Please use "'+a+'" instead')}},ye=R;R.callCallback=R.callback,R.indexOf=function(e,t,r){return Array.prototype.indexOf.call(e,t,r)},R.getValueOrDefault=R.valueOrDefault,R.getValueAtIndexOrDefault=R.valueAtIndexOrDefault;var Tt={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,r=0,a=1;return 0===e?0:1===e?1:(r||(r=.3),a<1?(a=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/a),-a*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r))},easeOutElastic:function(e){var t=1.70158,r=0,a=1;return 0===e?0:1===e?1:(r||(r=.3),a<1?(a=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/a),a*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},easeInOutElastic:function(e){var t=1.70158,r=0,a=1;return 0===e?0:2==(e/=.5)?1:(r||(r=.45),a<1?(a=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/a),e<1?a*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:a*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-Tt.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*Tt.easeInBounce(2*e):.5*Tt.easeOutBounce(2*e-1)+.5}},ya={effects:Tt};ye.easingEffects=Tt;var de=Math.PI,xr=de/180,_a=2*de,_e=de/2,At=de/4,xa=2*de/3,Gt={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,r,a,n,i){if(i){var o=Math.min(i,n/2,a/2),l=t+o,s=r+o,u=t+a-o,d=r+n-o;e.moveTo(t,s),l<u&&s<d?(e.arc(l,s,o,-de,-_e),e.arc(u,s,o,-_e,0),e.arc(u,d,o,0,_e),e.arc(l,d,o,_e,de)):l<u?(e.moveTo(l,r),e.arc(u,s,o,-_e,_e),e.arc(l,s,o,_e,de+_e)):s<d?(e.arc(l,s,o,-de,0),e.arc(l,d,o,0,de)):e.arc(l,s,o,-de,de),e.closePath(),e.moveTo(t,r)}else e.rect(t,r,a,n)},drawPoint:function(e,t,r,a,n,i){var o,l,s,u,d,f=(i||0)*xr;if(t&&"object"==typeof t&&("[object HTMLImageElement]"===(o=t.toString())||"[object HTMLCanvasElement]"===o))return e.save(),e.translate(a,n),e.rotate(f),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(r)||r<=0)){switch(e.beginPath(),t){default:e.arc(a,n,r,0,_a),e.closePath();break;case"triangle":e.moveTo(a+Math.sin(f)*r,n-Math.cos(f)*r),f+=xa,e.lineTo(a+Math.sin(f)*r,n-Math.cos(f)*r),f+=xa,e.lineTo(a+Math.sin(f)*r,n-Math.cos(f)*r),e.closePath();break;case"rectRounded":u=r-(d=.516*r),l=Math.cos(f+At)*u,s=Math.sin(f+At)*u,e.arc(a-l,n-s,d,f-de,f-_e),e.arc(a+s,n-l,d,f-_e,f),e.arc(a+l,n+s,d,f,f+_e),e.arc(a-s,n+l,d,f+_e,f+de),e.closePath();break;case"rect":if(!i){u=Math.SQRT1_2*r,e.rect(a-u,n-u,2*u,2*u);break}f+=At;case"rectRot":l=Math.cos(f)*r,s=Math.sin(f)*r,e.moveTo(a-l,n-s),e.lineTo(a+s,n-l),e.lineTo(a+l,n+s),e.lineTo(a-s,n+l),e.closePath();break;case"crossRot":f+=At;case"cross":l=Math.cos(f)*r,s=Math.sin(f)*r,e.moveTo(a-l,n-s),e.lineTo(a+l,n+s),e.moveTo(a+s,n-l),e.lineTo(a-s,n+l);break;case"star":l=Math.cos(f)*r,s=Math.sin(f)*r,e.moveTo(a-l,n-s),e.lineTo(a+l,n+s),e.moveTo(a+s,n-l),e.lineTo(a-s,n+l),f+=At,l=Math.cos(f)*r,s=Math.sin(f)*r,e.moveTo(a-l,n-s),e.lineTo(a+l,n+s),e.moveTo(a+s,n-l),e.lineTo(a-s,n+l);break;case"line":l=Math.cos(f)*r,s=Math.sin(f)*r,e.moveTo(a-l,n-s),e.lineTo(a+l,n+s);break;case"dash":e.moveTo(a,n),e.lineTo(a+Math.cos(f)*r,n+Math.sin(f)*r)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){var r=1e-6;return e.x>t.left-r&&e.x<t.right+r&&e.y>t.top-r&&e.y<t.bottom+r},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,r,a){var n=r.steppedLine;if(n){if("middle"===n){var i=(t.x+r.x)/2;e.lineTo(i,a?r.y:t.y),e.lineTo(i,a?t.y:r.y)}else"after"===n&&!a||"after"!==n&&a?e.lineTo(t.x,r.y):e.lineTo(r.x,t.y);e.lineTo(r.x,r.y)}else r.tension?e.bezierCurveTo(a?t.controlPointPreviousX:t.controlPointNextX,a?t.controlPointPreviousY:t.controlPointNextY,a?r.controlPointNextX:r.controlPointPreviousX,a?r.controlPointNextY:r.controlPointPreviousY,r.x,r.y):e.lineTo(r.x,r.y)}},Vn=Gt;ye.clear=Gt.clear,ye.drawRoundedRectangle=function(e){e.beginPath(),Gt.roundedRect.apply(Gt,arguments)};var ze={_set:function(e,t){return ye.merge(this[e]||(this[e]={}),t)}};ze._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 T=ze,Kt=ye.valueOrDefault;var qn={toLineHeight:function(e,t){var r=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!r||"normal"===r[1])return 1.2*t;switch(e=+r[2],r[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,r,a,n;return ye.isObject(e)?(t=+e.top||0,r=+e.right||0,a=+e.bottom||0,n=+e.left||0):t=r=a=n=+e||0,{top:t,right:r,bottom:a,left:n,height:t+a,width:n+r}},_parseFont:function(e){var t=T.global,r=Kt(e.fontSize,t.defaultFontSize),a={family:Kt(e.fontFamily,t.defaultFontFamily),lineHeight:ye.options.toLineHeight(Kt(e.lineHeight,t.defaultLineHeight),r),size:r,style:Kt(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return a.string=function(e){return!e||ye.isNullOrUndef(e.size)||ye.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(a),a},resolve:function(e,t,r,a){var i,o,l,n=!0;for(i=0,o=e.length;i<o;++i)if(void 0!==(l=e[i])&&(void 0!==t&&"function"==typeof l&&(l=l(t),n=!1),void 0!==r&&ye.isArray(l)&&(l=l[r],n=!1),void 0!==l))return a&&!n&&(a.cacheable=!1),l}},wa={_factorize:function(e){var a,t=[],r=Math.sqrt(e);for(a=1;a<r;a++)e%a==0&&(t.push(a),t.push(e/a));return r===(0|r)&&t.push(r),t.sort(function(n,i){return n-i}).pop(),t},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,r=Math.round(t);return e===Math.pow(10,r)?r:t}},$n=wa;ye.log10=wa.log10;var c=ye,Dt=Vn,ei=qn,Pt=$n,ti={getRtlAdapter:function(e,t,r){return e?function(e,t){return{x:function(r){return e+e+t-r},setWidth:function(r){t=r},textAlign:function(r){return"center"===r?r:"right"===r?"left":"right"},xPlus:function(r,a){return r-a},leftForLtr:function(r,a){return r-a}}}(t,r):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}},overrideTextDirection:function(e,t){var r,a;("ltr"===t||"rtl"===t)&&(a=[(r=e.canvas.style).getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",t,"important"),e.prevTextDirection=a)},restoreTextDirection:function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};c.easing=ya,c.canvas=Dt,c.options=ei,c.math=Pt,c.rtl=ti;var wr=function(e){c.extend(this,e),this.initialize.apply(this,arguments)};c.extend(wr.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=c.extend({},e._model)),e._start={},e},transition:function(e){var t=this,r=t._model,a=t._start,n=t._view;return r&&1!==e?(n||(n=t._view={}),a||(a=t._start={}),function(e,t,r,a){var i,o,l,s,u,d,f,v,p,n=Object.keys(r);for(i=0,o=n.length;i<o;++i)if(d=r[l=n[i]],t.hasOwnProperty(l)||(t[l]=d),(s=t[l])!==d&&"_"!==l[0]){if(e.hasOwnProperty(l)||(e[l]=s),(f=typeof d)==typeof(u=e[l]))if("string"===f){if((v=Yt(u)).valid&&(p=Yt(d)).valid){t[l]=p.mix(v,a).rgbString();continue}}else if(c.isFinite(u)&&c.isFinite(d)){t[l]=u+(d-u)*a;continue}t[l]=d}}(a,n,r,e),t):(t._view=c.extend({},r),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return c.isNumber(this._model.x)&&c.isNumber(this._model.y)}}),wr.extend=c.inherits;var Ae=wr,Cr=Ae.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),Mr=Cr;Object.defineProperty(Cr.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(Cr.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),T._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:c.noop,onComplete:c.noop}});var kr={animations:[],request:null,addAnimation:function(e,t,r,a){var i,o,n=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=r,a||(e.animating=!0),i=0,o=n.length;i<o;++i)if(n[i].chart===e)return void(n[i]=t);n.push(t),1===n.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=c.findIndex(this.animations,function(r){return r.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=c.requestAnimFrame.call(window,function(){e.request=null,e.startDigest()}))},startDigest:function(){var e=this;e.advance(),e.animations.length>0&&e.requestAnimationFrame()},advance:function(){for(var t,r,a,n,e=this.animations,i=0;i<e.length;)r=(t=e[i]).chart,a=t.numSteps,n=Math.floor((Date.now()-t.startTime)/t.duration*a)+1,t.currentStep=Math.min(n,a),c.callback(t.render,[r,t],r),c.callback(t.onAnimationProgress,[t],r),t.currentStep>=a?(c.callback(t.onAnimationComplete,[t],r),r.animating=!1,e.splice(i,1)):++i}},ot=c.options.resolve,Ca=["push","pop","shift","splice","unshift"];function Ma(e,t){var r=e._chartjs;if(r){var a=r.listeners,n=a.indexOf(t);-1!==n&&a.splice(n,1),!(a.length>0)&&(Ca.forEach(function(i){delete e[i]}),delete e._chartjs)}}var Sr=function(e,t){this.initialize(e,t)};c.extend(Sr.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var r=this;r.chart=e,r.index=t,r.linkScales(),r.addElements(),r._type=r.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),r=e.chart,a=r.scales,n=e.getDataset(),i=r.options.scales;(null===t.xAxisID||!(t.xAxisID in a)||n.xAxisID)&&(t.xAxisID=n.xAxisID||i.xAxes[0].id),(null===t.yAxisID||!(t.yAxisID in a)||n.yAxisID)&&(t.yAxisID=n.yAxisID||i.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&Ma(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,r=t.dataElementType;return r&&new r({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var n,i,e=this,t=e.getMeta(),r=e.getDataset().data||[],a=t.data;for(n=0,i=r.length;n<i;++n)a[n]=a[n]||e.createMetaData(n);t.dataset=t.dataset||e.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e=this,t=e.getDataset(),r=t.data||(t.data=[]);e._data!==r&&(e._data&&Ma(e._data,e),r&&Object.isExtensible(r)&&function(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Ca.forEach(function(r){var a="onData"+r.charAt(0).toUpperCase()+r.slice(1),n=e[r];Object.defineProperty(e,r,{configurable:!0,enumerable:!1,value:function(){var i=Array.prototype.slice.call(arguments),o=n.apply(this,i);return c.each(e._chartjs.listeners,function(l){"function"==typeof l[a]&&l[a].apply(l,i)}),o}})}))}(r,e),e._data=r),e.resyncElements()},_configure:function(){var e=this;e._config=c.merge(Object.create(null),[e.chart.options.datasets[e._type],e.getDataset()],{merger:function(t,r,a){"_meta"!==t&&"data"!==t&&c._merger(t,r,a)}})},_update:function(e){var t=this;t._configure(),t._cachedDataOpts=null,t.update(e)},update:c.noop,transition:function(e){for(var t=this.getMeta(),r=t.data||[],a=r.length,n=0;n<a;++n)r[n].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],r=t.length,a=0;for(e.dataset&&e.dataset.draw();a<r;++a)t[a].draw()},getStyle:function(e){var n,t=this,r=t.getMeta(),a=r.dataset;return t._configure(),(!1===(n=a&&void 0===e?t._resolveDatasetElementOptions(a||{}):t._resolveDataElementOptions(r.data[e=e||0]||{},e)).fill||null===n.fill)&&(n.backgroundColor=n.borderColor),n},_resolveDatasetElementOptions:function(e,t){var u,d,f,v,r=this,a=r.chart,n=r._config,i=e.custom||{},o=a.options.elements[r.datasetElementType.prototype._type]||{},l=r._datasetElementOptions,s={},p={chart:a,dataset:r.getDataset(),datasetIndex:r.index,hover:t};for(u=0,d=l.length;u<d;++u)f=l[u],v=t?"hover"+f.charAt(0).toUpperCase()+f.slice(1):f,s[f]=ot([i[v],n[v],o[v]],p);return s},_resolveDataElementOptions:function(e,t){var r=this,a=e&&e.custom,n=r._cachedDataOpts;if(n&&!a)return n;var v,p,m,y,i=r.chart,o=r._config,l=i.options.elements[r.dataElementType.prototype._type]||{},s=r._dataElementOptions,u={},d={chart:i,dataIndex:t,dataset:r.getDataset(),datasetIndex:r.index},f={cacheable:!a};if(a=a||{},c.isArray(s))for(p=0,m=s.length;p<m;++p)u[y=s[p]]=ot([a[y],o[y],l[y]],d,t,f);else for(p=0,m=(v=Object.keys(s)).length;p<m;++p)u[y=v[p]]=ot([a[y],o[s[y]],o[y],l[y]],d,t,f);return f.cacheable&&(r._cachedDataOpts=Object.freeze(u)),u},removeHoverStyle:function(e){c.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],r=e._index,a=e.custom||{},n=e._model,i=c.getHoverColor;e.$previousStyle={backgroundColor:n.backgroundColor,borderColor:n.borderColor,borderWidth:n.borderWidth},n.backgroundColor=ot([a.hoverBackgroundColor,t.hoverBackgroundColor,i(n.backgroundColor)],void 0,r),n.borderColor=ot([a.hoverBorderColor,t.hoverBorderColor,i(n.borderColor)],void 0,r),n.borderWidth=ot([a.hoverBorderWidth,t.hoverBorderWidth,n.borderWidth],void 0,r)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var r,a,n,i,o,l,e=this.getMeta().dataset,t={};if(e){for(l=e._model,o=this._resolveDatasetElementOptions(e,!0),r=0,a=(i=Object.keys(o)).length;r<a;++r)t[n=i[r]]=l[n],l[n]=o[n];e.$previousStyle=t}},resyncElements:function(){var e=this,t=e.getMeta(),r=e.getDataset().data,a=t.data.length,n=r.length;n<a?t.data.splice(n,a-n):n>a&&e.insertElements(a,n-a)},insertElements:function(e,t){for(var r=0;r<t;++r)this.addElementAndReset(e+r)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),Sr.extend=c.inherits;var xe=Sr,De=2*Math.PI;function ka(e,t){var r=t.startAngle,a=t.endAngle,n=t.pixelMargin,i=n/t.outerRadius,o=t.x,l=t.y;e.beginPath(),e.arc(o,l,t.outerRadius,r-i,a+i),t.innerRadius>n?e.arc(o,l,t.innerRadius-n,a+(i=n/t.innerRadius),r-i,!0):e.arc(o,l,n,a+Math.PI/2,r-Math.PI/2),e.closePath(),e.clip()}function st(e,t,r){var a="inner"===t.borderAlign;a?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),r.fullCircles&&function(e,t,r,a){var i,n=r.endAngle;for(a&&(r.endAngle=r.startAngle+De,ka(e,r),r.endAngle=n,r.endAngle===r.startAngle&&r.fullCircles&&(r.endAngle+=De,r.fullCircles--)),e.beginPath(),e.arc(r.x,r.y,r.innerRadius,r.startAngle+De,r.startAngle,!0),i=0;i<r.fullCircles;++i)e.stroke();for(e.beginPath(),e.arc(r.x,r.y,t.outerRadius,r.startAngle,r.startAngle+De),i=0;i<r.fullCircles;++i)e.stroke()}(e,t,r,a),a&&ka(e,r),e.beginPath(),e.arc(r.x,r.y,t.outerRadius,r.startAngle,r.endAngle),e.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),e.closePath(),e.stroke()}T._set("global",{elements:{arc:{backgroundColor:T.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var Sa=Ae.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var r=this._view;if(r){for(var a=c.getAngleFromPoint(r,{x:e,y:t}),n=a.angle,i=a.distance,o=r.startAngle,l=r.endAngle;l<o;)l+=De;for(;n>l;)n-=De;for(;n<o;)n+=De;return n>=o&&n<=l&&i>=r.innerRadius&&i<=r.outerRadius}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,r=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,r=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}},draw:function(){var n,e=this._chart.ctx,t=this._view,r="inner"===t.borderAlign?.33:0,a={x:t.x,y:t.y,innerRadius:t.innerRadius,outerRadius:Math.max(t.outerRadius-r,0),pixelMargin:r,startAngle:t.startAngle,endAngle:t.endAngle,fullCircles:Math.floor(t.circumference/De)};if(e.save(),e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,a.fullCircles){for(a.endAngle=a.startAngle+De,e.beginPath(),e.arc(a.x,a.y,a.outerRadius,a.startAngle,a.endAngle),e.arc(a.x,a.y,a.innerRadius,a.endAngle,a.startAngle,!0),e.closePath(),n=0;n<a.fullCircles;++n)e.fill();a.endAngle=a.startAngle+t.circumference%De}e.beginPath(),e.arc(a.x,a.y,a.outerRadius,a.startAngle,a.endAngle),e.arc(a.x,a.y,a.innerRadius,a.endAngle,a.startAngle,!0),e.closePath(),e.fill(),t.borderWidth&&st(e,t,a),e.restore()}}),Ta=c.valueOrDefault,Aa=T.global.defaultColor;T._set("global",{elements:{line:{tension:.4,backgroundColor:Aa,borderWidth:3,borderColor:Aa,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var ii=Ae.extend({_type:"line",draw:function(){var u,d,f,e=this,t=e._view,r=e._chart.ctx,a=t.spanGaps,n=e._children.slice(),i=T.global,o=i.elements.line,l=-1,s=e._loop;if(n.length){if(e._loop){for(u=0;u<n.length;++u)if(d=c.previousItem(n,u),!n[u]._view.skip&&d._view.skip){n=n.slice(u).concat(n.slice(0,u)),s=a;break}s&&n.push(n[0])}for(r.save(),r.lineCap=t.borderCapStyle||o.borderCapStyle,r.setLineDash&&r.setLineDash(t.borderDash||o.borderDash),r.lineDashOffset=Ta(t.borderDashOffset,o.borderDashOffset),r.lineJoin=t.borderJoinStyle||o.borderJoinStyle,r.lineWidth=Ta(t.borderWidth,o.borderWidth),r.strokeStyle=t.borderColor||i.defaultColor,r.beginPath(),(f=n[0]._view).skip||(r.moveTo(f.x,f.y),l=0),u=1;u<n.length;++u)f=n[u]._view,d=-1===l?c.previousItem(n,u):n[l],f.skip||(l!==u-1&&!a||-1===l?r.moveTo(f.x,f.y):c.canvas.lineTo(r,d._view,f),l=u);s&&r.closePath(),r.stroke(),r.restore()}}}),oi=c.valueOrDefault,Da=T.global.defaultColor;function Ot(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}T._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:Da,borderColor:Da,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var li=Ae.extend({_type:"point",inRange:function(e,t){var r=this._view;return!!r&&Math.pow(e-r.x,2)+Math.pow(t-r.y,2)<Math.pow(r.hitRadius+r.radius,2)},inLabelRange:Ot,inXRange:Ot,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,r=this._chart.ctx,a=t.pointStyle,n=t.rotation,i=t.radius,o=t.x,l=t.y,s=T.global,u=s.defaultColor;t.skip||(void 0===e||c.canvas._isPointInArea(t,e))&&(r.strokeStyle=t.borderColor||u,r.lineWidth=oi(t.borderWidth,s.elements.point.borderWidth),r.fillStyle=t.backgroundColor||u,c.canvas.drawPoint(r,a,i,o,l,n))}}),Pa=T.global.defaultColor;function Xt(e){return e&&void 0!==e.width}function Oa(e){var t,r,a,n,i;return Xt(e)?(t=e.x-(i=e.width/2),r=e.x+i,a=Math.min(e.y,e.base),n=Math.max(e.y,e.base)):(i=e.height/2,t=Math.min(e.x,e.base),r=Math.max(e.x,e.base),a=e.y-i,n=e.y+i),{left:t,top:a,right:r,bottom:n}}function Fa(e,t,r){return e===t?r:e===r?t:e}function di(e,t,r){var i,o,l,s,a=e.borderWidth,n=function(e){var t=e.borderSkipped,r={};return t&&(e.horizontal?e.base>e.x&&(t=Fa(t,"left","right")):e.base<e.y&&(t=Fa(t,"bottom","top")),r[t]=!0),r}(e);return c.isObject(a)?(i=+a.top||0,o=+a.right||0,l=+a.bottom||0,s=+a.left||0):i=o=l=s=+a||0,{t:n.top||i<0?0:i>r?r:i,r:n.right||o<0?0:o>t?t:o,b:n.bottom||l<0?0:l>r?r:l,l:n.left||s<0?0:s>t?t:s}}function Ft(e,t,r){var a=null===t,n=null===r,i=!(!e||a&&n)&&Oa(e);return i&&(a||t>=i.left&&t<=i.right)&&(n||r>=i.top&&r<=i.bottom)}T._set("global",{elements:{rectangle:{backgroundColor:Pa,borderColor:Pa,borderSkipped:"bottom",borderWidth:0}}});var fi=Ae.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,r=function(e){var t=Oa(e),r=t.right-t.left,a=t.bottom-t.top,n=di(e,r/2,a/2);return{outer:{x:t.left,y:t.top,w:r,h:a},inner:{x:t.left+n.l,y:t.top+n.t,w:r-n.l-n.r,h:a-n.t-n.b}}}(t),a=r.outer,n=r.inner;e.fillStyle=t.backgroundColor,e.fillRect(a.x,a.y,a.w,a.h),(a.w!==n.w||a.h!==n.h)&&(e.save(),e.beginPath(),e.rect(a.x,a.y,a.w,a.h),e.clip(),e.fillStyle=t.borderColor,e.rect(n.x,n.y,n.w,n.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return Ft(this._view,e,t)},inLabelRange:function(e,t){var r=this._view;return Xt(r)?Ft(r,e,null):Ft(r,null,t)},inXRange:function(e){return Ft(this._view,e,null)},inYRange:function(e){return Ft(this._view,null,e)},getCenterPoint:function(){var t,r,e=this._view;return Xt(e)?(t=e.x,r=(e.y+e.base)/2):(t=(e.x+e.base)/2,r=e.y),{x:t,y:r}},getArea:function(){var e=this._view;return Xt(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),fe={},ut=ii,ci=li,vi=fi;fe.Arc=Sa,fe.Line=ut,fe.Point=ci,fe.Rectangle=vi;var It=c._deprecated,dt=c.valueOrDefault;function gi(e,t,r){var l,s,a=r.barThickness,n=t.stackCount,i=t.pixels[e],o=c.isNullOrUndef(a)?function(e,t){var a,n,i,o,r=e._length;for(i=1,o=t.length;i<o;++i)r=Math.min(r,Math.abs(t[i]-t[i-1]));for(i=0,o=e.getTicks().length;i<o;++i)n=e.getPixelForTick(i),r=i>0?Math.min(r,Math.abs(n-a)):r,a=n;return r}(t.scale,t.pixels):-1;return c.isNullOrUndef(a)?(l=o*r.categoryPercentage,s=r.barPercentage):(l=a*n,s=1),{chunk:l/n,ratio:s,start:i-l/2}}T._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),T._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Ba=xe.extend({dataElementType:fe.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var t,r,e=this;xe.prototype.initialize.apply(e,arguments),(t=e.getMeta()).stack=e.getDataset().stack,t.bar=!0,r=e._getIndexScale().options,It("bar chart",r.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),It("bar chart",r.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),It("bar chart",r.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),It("bar chart",e._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),It("bar chart",r.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var a,n,t=this,r=t.getMeta().data;for(t._ruler=t.getRuler(),a=0,n=r.length;a<n;++a)t.updateElement(r[a],a,e)},updateElement:function(e,t,r){var a=this,n=a.getMeta(),i=a.getDataset(),o=a._resolveDataElementOptions(e,t);e._xScale=a.getScaleForId(n.xAxisID),e._yScale=a.getScaleForId(n.yAxisID),e._datasetIndex=a.index,e._index=t,e._model={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderSkipped:o.borderSkipped,borderWidth:o.borderWidth,datasetLabel:i.label,label:a.chart.data.labels[t]},c.isArray(i.data[t])&&(e._model.borderSkipped=null),a._updateElementGeometry(e,t,r,o),e.pivot()},_updateElementGeometry:function(e,t,r,a){var n=this,i=e._model,o=n._getValueScale(),l=o.getBasePixel(),s=o.isHorizontal(),u=n._ruler||n.getRuler(),d=n.calculateBarValuePixels(n.index,t,a),f=n.calculateBarIndexPixels(n.index,t,u,a);i.horizontal=s,i.base=r?l:d.base,i.x=s?r?l:d.head:f.center,i.y=s?f.center:r?l:d.head,i.height=s?f.size:void 0,i.width=s?void 0:f.size},_getStacks:function(e){var l,s,r=this._getIndexScale(),a=r._getMatchingVisibleMetas(this._type),n=r.options.stacked,i=a.length,o=[];for(l=0;l<i&&(s=a[l],(!1===n||-1===o.indexOf(s.stack)||void 0===n&&void 0===s.stack)&&o.push(s.stack),s.index!==e);++l);return o},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var r=this._getStacks(e),a=void 0!==t?r.indexOf(t):-1;return-1===a?r.length-1:a},getRuler:function(){var a,n,e=this,t=e._getIndexScale(),r=[];for(a=0,n=e.getMeta().data.length;a<n;++a)r.push(t.getPixelForValue(null,a,e.index));return{pixels:r,start:t._startPixel,end:t._endPixel,stackCount:e.getStackCount(),scale:t}},calculateBarValuePixels:function(e,t,r){var _,w,M,k,F,O,N,a=this,n=a.chart,i=a._getValueScale(),o=i.isHorizontal(),l=n.data.datasets,s=i._getMatchingVisibleMetas(a._type),u=i._parseValue(l[e].data[t]),d=r.minBarLength,f=i.options.stacked,v=a.getMeta().stack,p=void 0===u.start?0:u.max>=0&&u.min>=0?u.min:u.max,m=void 0===u.start?u.end:u.max>=0&&u.min>=0?u.max-u.min:u.min-u.max,y=s.length;if(f||void 0===f&&void 0!==v)for(_=0;_<y&&(w=s[_]).index!==e;++_)w.stack===v&&(M=void 0===(N=i._parseValue(l[w.index].data[t])).start?N.end:N.min>=0&&N.max>=0?N.max:N.min,(u.min<0&&M<0||u.max>=0&&M>0)&&(p+=M));return k=i.getPixelForValue(p),O=(F=i.getPixelForValue(p+m))-k,void 0!==d&&Math.abs(O)<d&&(O=d,F=m>=0&&!o||m<0&&o?k-d:k+d),{size:O,base:k,head:F,center:F+O/2}},calculateBarIndexPixels:function(e,t,r,a){var i="flex"===a.barThickness?function(e,t,r){var s,a=t.pixels,n=a[e],i=e>0?a[e-1]:null,o=e<a.length-1?a[e+1]:null,l=r.categoryPercentage;return null===i&&(i=n-(null===o?t.end-t.start:o-n)),null===o&&(o=n+n-i),s=n-(n-Math.min(i,o))/2*l,{chunk:Math.abs(o-i)/2*l/t.stackCount,ratio:r.barPercentage,start:s}}(t,r,a):gi(t,r,a),o=this.getStackIndex(e,this.getMeta().stack),l=i.start+i.chunk*o+i.chunk/2,s=Math.min(dt(a.maxBarThickness,1/0),i.chunk*i.ratio);return{base:l-s/2,head:l+s/2,center:l,size:s}},draw:function(){var e=this,t=e.chart,r=e._getValueScale(),a=e.getMeta().data,n=e.getDataset(),i=a.length,o=0;for(c.canvas.clipArea(t.ctx,t.chartArea);o<i;++o){var l=r._parseValue(n.data[o]);!isNaN(l.min)&&!isNaN(l.max)&&a[o].draw()}c.canvas.unclipArea(t.ctx)},_resolveDataElementOptions:function(){var e=this,t=c.extend({},xe.prototype._resolveDataElementOptions.apply(e,arguments)),r=e._getIndexScale().options,a=e._getValueScale().options;return t.barPercentage=dt(r.barPercentage,t.barPercentage),t.barThickness=dt(r.barThickness,t.barThickness),t.categoryPercentage=dt(r.categoryPercentage,t.categoryPercentage),t.maxBarThickness=dt(r.maxBarThickness,t.maxBarThickness),t.minBarLength=dt(a.minBarLength,t.minBarLength),t}}),Tr=c.valueOrDefault,pi=c.options.resolve;T._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(e,t){return(t.datasets[e.datasetIndex].label||"")+": ("+e.xLabel+", "+e.yLabel+", "+t.datasets[e.datasetIndex].data[e.index].r+")"}}}});var Ra=xe.extend({dataElementType:fe.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,r=t.getMeta();c.each(r.data,function(n,i){t.updateElement(n,i,e)})},updateElement:function(e,t,r){var a=this,n=a.getMeta(),i=e.custom||{},o=a.getScaleForId(n.xAxisID),l=a.getScaleForId(n.yAxisID),s=a._resolveDataElementOptions(e,t),u=a.getDataset().data[t],d=a.index,f=r?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof u?u:NaN,t,d),v=r?l.getBasePixel():l.getPixelForValue(u,t,d);e._xScale=o,e._yScale=l,e._options=s,e._datasetIndex=d,e._index=t,e._model={backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth,hitRadius:s.hitRadius,pointStyle:s.pointStyle,rotation:s.rotation,radius:r?0:s.radius,skip:i.skip||isNaN(f)||isNaN(v),x:f,y:v},e.pivot()},setHoverStyle:function(e){var t=e._model,r=e._options,a=c.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Tr(r.hoverBackgroundColor,a(r.backgroundColor)),t.borderColor=Tr(r.hoverBorderColor,a(r.borderColor)),t.borderWidth=Tr(r.hoverBorderWidth,r.borderWidth),t.radius=r.radius+r.hoverRadius},_resolveDataElementOptions:function(e,t){var r=this,a=r.chart,n=r.getDataset(),i=e.custom||{},o=n.data[t]||{},l=xe.prototype._resolveDataElementOptions.apply(r,arguments),s={chart:a,dataIndex:t,dataset:n,datasetIndex:r.index};return r._cachedDataOpts===l&&(l=c.extend({},l)),l.radius=pi([i.radius,o.r,r._config.radius,a.options.elements.point.radius],s,t),l}}),Jt=c.valueOrDefault,Pe=Math.PI,Ie=2*Pe,Ge=Pe/2;T._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var i,o,l,t=document.createElement("ul"),r=e.data,a=r.datasets,n=r.labels;if(t.setAttribute("class",e.id+"-legend"),a.length)for(i=0,o=a[0].data.length;i<o;++i)(l=t.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[i],n[i]&&l.appendChild(document.createTextNode(n[i]));return t.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(r,a){var n=e.getDatasetMeta(0),i=n.controller.getStyle(a);return{text:r,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:isNaN(t.datasets[0].data[a])||n.data[a].hidden,index:a}}):[]}},onClick:function(e,t){var n,i,o,r=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(o=a.getDatasetMeta(n)).data[r]&&(o.data[r].hidden=!o.data[r].hidden);a.update()}},cutoutPercentage:50,rotation:-Ge,circumference:Ie,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var r=t.labels[e.index],a=": "+t.datasets[e.datasetIndex].data[e.index];return c.isArray(r)?(r=r.slice())[0]+=a:r+=a,r}}}});var Ea=xe.extend({dataElementType:fe.Arc,linkScales:c.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,r=0;r<e;++r)this.chart.isDatasetVisible(r)&&++t;return t},update:function(e){var _,w,t=this,r=t.chart,a=r.chartArea,n=r.options,i=1,o=1,l=0,s=0,u=t.getMeta(),d=u.data,f=n.cutoutPercentage/100||0,v=n.circumference,p=t._getRingWeight(t.index);if(v<Ie){var M=n.rotation%Ie,k=(M+=M>=Pe?-Ie:M<-Pe?Ie:0)+v,F=Math.cos(M),O=Math.sin(M),N=Math.cos(k),E=Math.sin(k),j=M<=0&&k>=0||k>=Ie,D=M<=Ge&&k>=Ge||k>=Ie+Ge,Z=M<=-Ge&&k>=-Ge||k>=Pe+Ge,J=M===-Pe||k>=Pe?-1:Math.min(F,F*f,N,N*f),ae=Z?-1:Math.min(O,O*f,E,E*f),_t=j?1:Math.max(F,F*f,N,N*f),xt=D?1:Math.max(O,O*f,E,E*f);i=(_t-J)/2,o=(xt-ae)/2,l=-(_t+J)/2,s=-(xt+ae)/2}for(_=0,w=d.length;_<w;++_)d[_]._options=t._resolveDataElementOptions(d[_],_);for(r.borderWidth=t.getMaxBorderWidth(),r.outerRadius=Math.max(Math.min((a.right-a.left-r.borderWidth)/i,(a.bottom-a.top-r.borderWidth)/o)/2,0),r.innerRadius=Math.max(r.outerRadius*f,0),r.radiusLength=(r.outerRadius-r.innerRadius)/(t._getVisibleDatasetWeightTotal()||1),r.offsetX=l*r.outerRadius,r.offsetY=s*r.outerRadius,u.total=t.calculateTotal(),t.outerRadius=r.outerRadius-r.radiusLength*t._getRingWeightOffset(t.index),t.innerRadius=Math.max(t.outerRadius-r.radiusLength*p,0),_=0,w=d.length;_<w;++_)t.updateElement(d[_],_,e)},updateElement:function(e,t,r){var a=this,n=a.chart,i=n.chartArea,o=n.options,l=o.animation,s=(i.left+i.right)/2,u=(i.top+i.bottom)/2,d=o.rotation,f=o.rotation,v=a.getDataset(),p=r&&l.animateRotate||e.hidden?0:a.calculateCircumference(v.data[t])*(o.circumference/Ie),_=e._options||{};c.extend(e,{_datasetIndex:a.index,_index:t,_model:{backgroundColor:_.backgroundColor,borderColor:_.borderColor,borderWidth:_.borderWidth,borderAlign:_.borderAlign,x:s+n.offsetX,y:u+n.offsetY,startAngle:d,endAngle:f,circumference:p,outerRadius:r&&l.animateScale?0:a.outerRadius,innerRadius:r&&l.animateScale?0:a.innerRadius,label:c.valueAtIndexOrDefault(v.label,t,n.data.labels[t])}});var w=e._model;(!r||!l.animateRotate)&&(w.startAngle=0===t?o.rotation:a.getMeta().data[t-1]._model.endAngle,w.endAngle=w.startAngle+w.circumference),e.pivot()},calculateTotal:function(){var a,e=this.getDataset(),t=this.getMeta(),r=0;return c.each(t.data,function(n,i){a=e.data[i],!isNaN(a)&&!n.hidden&&(r+=Math.abs(a))}),r},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?Ie*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var n,i,o,l,s,u,d,f,r=0,a=this.chart;if(!e)for(n=0,i=a.data.datasets.length;n<i;++n)if(a.isDatasetVisible(n)){e=(o=a.getDatasetMeta(n)).data,n!==this.index&&(s=o.controller);break}if(!e)return 0;for(n=0,i=e.length;n<i;++n)l=e[n],s?(s._configure(),u=s._resolveDataElementOptions(l,n)):u=l._options,"inner"!==u.borderAlign&&(r=(f=u.hoverBorderWidth)>(r=(d=u.borderWidth)>r?d:r)?f:r);return r},setHoverStyle:function(e){var t=e._model,r=e._options,a=c.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=Jt(r.hoverBackgroundColor,a(r.backgroundColor)),t.borderColor=Jt(r.hoverBorderColor,a(r.borderColor)),t.borderWidth=Jt(r.hoverBorderWidth,r.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(t+=this._getRingWeight(r));return t},_getRingWeight:function(e){return Math.max(Jt(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});T._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"}}),T._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var Lt=Ba.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Le=c.valueOrDefault,mi=c.options.resolve,Zt=c.canvas._isPointInArea;function Ar(e,t){var r=e&&e.options.ticks||{},a=r.reverse,n=void 0===r.min?t:0,i=void 0===r.max?t:0;return{start:a?i:n,end:a?n:i}}function bi(e,t,r){var a=r/2,n=Ar(e,a),i=Ar(t,a);return{top:i.end,right:n.end,bottom:i.start,left:n.start}}function yi(e){var t,r,a,n;return c.isObject(e)?(t=e.top,r=e.right,a=e.bottom,n=e.left):t=r=a=n=e,{top:t,right:r,bottom:a,left:n}}T._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 Na=xe.extend({datasetElementType:fe.Line,dataElementType:fe.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var s,u,t=this,r=t.getMeta(),a=r.dataset,n=r.data||[],o=t._config,l=t._showLine=Le(o.showLine,t.chart.options.showLines);for(t._xScale=t.getScaleForId(r.xAxisID),t._yScale=t.getScaleForId(r.yAxisID),l&&(void 0!==o.tension&&void 0===o.lineTension&&(o.lineTension=o.tension),a._scale=t._yScale,a._datasetIndex=t.index,a._children=n,a._model=t._resolveDatasetElementOptions(a),a.pivot()),s=0,u=n.length;s<u;++s)t.updateElement(n[s],s,e);for(l&&0!==a._model.tension&&t.updateBezierControlPoints(),s=0,u=n.length;s<u;++s)n[s].pivot()},updateElement:function(e,t,r){var v,p,a=this,n=a.getMeta(),i=e.custom||{},o=a.getDataset(),l=a.index,s=o.data[t],u=a._xScale,d=a._yScale,f=n.dataset._model,m=a._resolveDataElementOptions(e,t);v=u.getPixelForValue("object"==typeof s?s:NaN,t,l),p=r?d.getBasePixel():a.calculatePointY(s,t,l),e._xScale=u,e._yScale=d,e._options=m,e._datasetIndex=l,e._index=t,e._model={x:v,y:p,skip:i.skip||isNaN(v)||isNaN(p),radius:m.radius,pointStyle:m.pointStyle,rotation:m.rotation,backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,tension:Le(i.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:m.hitRadius}},_resolveDatasetElementOptions:function(e){var t=this,r=t._config,a=e.custom||{},n=t.chart.options,i=n.elements.line,o=xe.prototype._resolveDatasetElementOptions.apply(t,arguments);return o.spanGaps=Le(r.spanGaps,n.spanGaps),o.tension=Le(r.lineTension,i.tension),o.steppedLine=mi([a.steppedLine,r.steppedLine,i.stepped]),o.clip=yi(Le(r.clip,bi(t._xScale,t._yScale,o.borderWidth))),o},calculatePointY:function(e,t,r){var s,d,f,v,p,m,n=this.chart,i=this._yScale,o=0,l=0;if(i.options.stacked){for(v=+i.getRightValue(e),m=(p=n._getSortedVisibleDatasetMetas()).length,s=0;s<m&&(d=p[s]).index!==r;++s)"line"===d.type&&d.yAxisID===i.id&&((f=+i.getRightValue(n.data.datasets[d.index].data[t]))<0?l+=f||0:o+=f||0);return i.getPixelForValue(v<0?l+v:o+v)}return i.getPixelForValue(e)},updateBezierControlPoints:function(){var o,l,s,u,t=this.chart,r=this.getMeta(),a=r.dataset._model,n=t.chartArea,i=r.data||[];function d(f,v,p){return Math.max(Math.min(f,p),v)}if(a.spanGaps&&(i=i.filter(function(f){return!f._model.skip})),"monotone"===a.cubicInterpolationMode)c.splineCurveMonotone(i);else for(o=0,l=i.length;o<l;++o)s=i[o]._model,u=c.splineCurve(c.previousItem(i,o)._model,s,c.nextItem(i,o)._model,a.tension),s.controlPointPreviousX=u.previous.x,s.controlPointPreviousY=u.previous.y,s.controlPointNextX=u.next.x,s.controlPointNextY=u.next.y;if(t.options.elements.line.capBezierPoints)for(o=0,l=i.length;o<l;++o)Zt(s=i[o]._model,n)&&(o>0&&Zt(i[o-1]._model,n)&&(s.controlPointPreviousX=d(s.controlPointPreviousX,n.left,n.right),s.controlPointPreviousY=d(s.controlPointPreviousY,n.top,n.bottom)),o<i.length-1&&Zt(i[o+1]._model,n)&&(s.controlPointNextX=d(s.controlPointNextX,n.left,n.right),s.controlPointNextY=d(s.controlPointNextY,n.top,n.bottom)))},draw:function(){var s,e=this,t=e.chart,r=e.getMeta(),a=r.data||[],n=t.chartArea,i=t.canvas,o=0,l=a.length;for(e._showLine&&(c.canvas.clipArea(t.ctx,{left:!1===(s=r.dataset._model.clip).left?0:n.left-s.left,right:!1===s.right?i.width:n.right+s.right,top:!1===s.top?0:n.top-s.top,bottom:!1===s.bottom?i.height:n.bottom+s.bottom}),r.dataset.draw(),c.canvas.unclipArea(t.ctx));o<l;++o)a[o].draw(n)},setHoverStyle:function(e){var t=e._model,r=e._options,a=c.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Le(r.hoverBackgroundColor,a(r.backgroundColor)),t.borderColor=Le(r.hoverBorderColor,a(r.borderColor)),t.borderWidth=Le(r.hoverBorderWidth,r.borderWidth),t.radius=Le(r.hoverRadius,r.radius)}}),_i=c.options.resolve;T._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(e){var i,o,l,t=document.createElement("ul"),r=e.data,a=r.datasets,n=r.labels;if(t.setAttribute("class",e.id+"-legend"),a.length)for(i=0,o=a[0].data.length;i<o;++i)(l=t.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[i],n[i]&&l.appendChild(document.createTextNode(n[i]));return t.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(r,a){var n=e.getDatasetMeta(0),i=n.controller.getStyle(a);return{text:r,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:isNaN(t.datasets[0].data[a])||n.data[a].hidden,index:a}}):[]}},onClick:function(e,t){var n,i,o,r=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(o=a.getDatasetMeta(n)).data[r].hidden=!o.data[r].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var xi=xe.extend({dataElementType:fe.Arc,linkScales:c.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(e){var s,u,d,t=this,r=t.getDataset(),a=t.getMeta(),n=t.chart.options.startAngle||0,i=t._starts=[],o=t._angles=[],l=a.data;for(t._updateRadius(),a.count=t.countVisibleElements(),s=0,u=r.data.length;s<u;s++)i[s]=n,d=t._computeAngle(s),o[s]=d,n+=d;for(s=0,u=l.length;s<u;++s)l[s]._options=t._resolveDataElementOptions(l[s],s),t.updateElement(l[s],s,e)},_updateRadius:function(){var e=this,t=e.chart,r=t.chartArea,a=t.options,n=Math.min(r.right-r.left,r.bottom-r.top);t.outerRadius=Math.max(n/2,0),t.innerRadius=Math.max(a.cutoutPercentage?t.outerRadius/100*a.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,r){var a=this,n=a.chart,i=a.getDataset(),o=n.options,l=o.animation,s=n.scale,u=n.data.labels,d=s.xCenter,f=s.yCenter,v=o.startAngle,p=e.hidden?0:s.getDistanceFromCenterForValue(i.data[t]),m=a._starts[t],y=m+(e.hidden?0:a._angles[t]),_=l.animateScale?0:s.getDistanceFromCenterForValue(i.data[t]),w=e._options||{};c.extend(e,{_datasetIndex:a.index,_index:t,_scale:s,_model:{backgroundColor:w.backgroundColor,borderColor:w.borderColor,borderWidth:w.borderWidth,borderAlign:w.borderAlign,x:d,y:f,innerRadius:0,outerRadius:r?_:p,startAngle:r&&l.animateRotate?v:m,endAngle:r&&l.animateRotate?v:y,label:c.valueAtIndexOrDefault(u,t,u[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),r=0;return c.each(t.data,function(a,n){!isNaN(e.data[n])&&!a.hidden&&r++}),r},setHoverStyle:function(e){var t=e._model,r=e._options,a=c.getHoverColor,n=c.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=n(r.hoverBackgroundColor,a(r.backgroundColor)),t.borderColor=n(r.hoverBorderColor,a(r.borderColor)),t.borderWidth=n(r.hoverBorderWidth,r.borderWidth)},_computeAngle:function(e){var t=this,r=this.getMeta().count,a=t.getDataset(),n=t.getMeta();return isNaN(a.data[e])||n.data[e].hidden?0:_i([t.chart.options.elements.arc.angle,2*Math.PI/r],{chart:t.chart,dataIndex:e,dataset:a,datasetIndex:t.index},e)}});T._set("pie",c.clone(T.doughnut)),T._set("pie",{cutoutPercentage:0});var Dr=Ea,Ke=c.valueOrDefault;T._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var wi=xe.extend({datasetElementType:fe.Line,dataElementType:fe.Point,linkScales:c.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",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(e){var l,s,t=this,r=t.getMeta(),a=r.dataset,n=r.data||[],i=t.chart.scale,o=t._config;for(void 0!==o.tension&&void 0===o.lineTension&&(o.lineTension=o.tension),a._scale=i,a._datasetIndex=t.index,a._children=n,a._loop=!0,a._model=t._resolveDatasetElementOptions(a),a.pivot(),l=0,s=n.length;l<s;++l)t.updateElement(n[l],l,e);for(t.updateBezierControlPoints(),l=0,s=n.length;l<s;++l)n[l].pivot()},updateElement:function(e,t,r){var a=this,n=e.custom||{},i=a.getDataset(),o=a.chart.scale,l=o.getPointPositionForValue(t,i.data[t]),s=a._resolveDataElementOptions(e,t),u=a.getMeta().dataset._model,d=r?o.xCenter:l.x,f=r?o.yCenter:l.y;e._scale=o,e._options=s,e._datasetIndex=a.index,e._index=t,e._model={x:d,y:f,skip:n.skip||isNaN(d)||isNaN(f),radius:s.radius,pointStyle:s.pointStyle,rotation:s.rotation,backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth,tension:Ke(n.tension,u?u.tension:0),hitRadius:s.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,r=e.chart.options,a=xe.prototype._resolveDatasetElementOptions.apply(e,arguments);return a.spanGaps=Ke(t.spanGaps,r.spanGaps),a.tension=Ke(t.lineTension,r.elements.line.tension),a},updateBezierControlPoints:function(){var n,i,o,l,t=this.getMeta(),r=this.chart.chartArea,a=t.data||[];function s(u,d,f){return Math.max(Math.min(u,f),d)}for(t.dataset._model.spanGaps&&(a=a.filter(function(u){return!u._model.skip})),n=0,i=a.length;n<i;++n)o=a[n]._model,l=c.splineCurve(c.previousItem(a,n,!0)._model,o,c.nextItem(a,n,!0)._model,o.tension),o.controlPointPreviousX=s(l.previous.x,r.left,r.right),o.controlPointPreviousY=s(l.previous.y,r.top,r.bottom),o.controlPointNextX=s(l.next.x,r.left,r.right),o.controlPointNextY=s(l.next.y,r.top,r.bottom)},setHoverStyle:function(e){var t=e._model,r=e._options,a=c.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Ke(r.hoverBackgroundColor,a(r.backgroundColor)),t.borderColor=Ke(r.hoverBorderColor,a(r.borderColor)),t.borderWidth=Ke(r.hoverBorderWidth,r.borderWidth),t.radius=Ke(r.hoverRadius,r.radius)}});T._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(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),T._set("global",{datasets:{scatter:{showLine:!1}}});var Pr={bar:Ba,bubble:Ra,doughnut:Ea,horizontalBar:Lt,line:Na,polarArea:xi,pie:Dr,radar:wi,scatter:Na};function Xe(e,t){return e.native?{x:e.x,y:e.y}:c.getRelativePosition(e,t)}function ft(e,t){var a,n,i,o,l,s,r=e._getSortedVisibleDatasetMetas();for(n=0,o=r.length;n<o;++n)for(i=0,l=(a=r[n].data).length;i<l;++i)(s=a[i])._view.skip||t(s)}function Or(e,t){var r=[];return ft(e,function(a){a.inRange(t.x,t.y)&&r.push(a)}),r}function Fr(e,t,r,a){var n=Number.POSITIVE_INFINITY,i=[];return ft(e,function(o){if(!r||o.inRange(t.x,t.y)){var l=o.getCenterPoint(),s=a(t,l);s<n?(i=[o],n=s):s===n&&i.push(o)}}),i}function Qt(e){var t=-1!==e.indexOf("x"),r=-1!==e.indexOf("y");return function(a,n){var i=t?Math.abs(a.x-n.x):0,o=r?Math.abs(a.y-n.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}function Ir(e,t,r){var a=Xe(t,e);r.axis=r.axis||"x";var n=Qt(r.axis),i=r.intersect?Or(e,a):Fr(e,a,!1,n),o=[];return i.length?(e._getSortedVisibleDatasetMetas().forEach(function(l){var s=l.data[i[0]._index];s&&!s._view.skip&&o.push(s)}),o):[]}var ht={modes:{single:function(e,t){var r=Xe(t,e),a=[];return ft(e,function(n){if(n.inRange(r.x,r.y))return a.push(n),a}),a.slice(0,1)},label:Ir,index:Ir,dataset:function(e,t,r){var a=Xe(t,e);r.axis=r.axis||"xy";var n=Qt(r.axis),i=r.intersect?Or(e,a):Fr(e,a,!1,n);return i.length>0&&(i=e.getDatasetMeta(i[0]._datasetIndex).data),i},"x-axis":function(e,t){return Ir(e,t,{intersect:!1})},point:function(e,t){return Or(e,Xe(t,e))},nearest:function(e,t,r){var a=Xe(t,e);r.axis=r.axis||"xy";var n=Qt(r.axis);return Fr(e,a,r.intersect,n)},x:function(e,t,r){var a=Xe(t,e),n=[],i=!1;return ft(e,function(o){o.inXRange(a.x)&&n.push(o),o.inRange(a.x,a.y)&&(i=!0)}),r.intersect&&!i&&(n=[]),n},y:function(e,t,r){var a=Xe(t,e),n=[],i=!1;return ft(e,function(o){o.inYRange(a.y)&&n.push(o),o.inRange(a.x,a.y)&&(i=!0)}),r.intersect&&!i&&(n=[]),n}}},Lr=c.extend;function Bt(e,t){return c.where(e,function(r){return r.pos===t})}function er(e,t){return e.sort(function(r,a){var n=t?a:r,i=t?r:a;return n.weight===i.weight?n.index-i.index:n.weight-i.weight})}function Wa(e,t,r,a){return Math.max(e[r],t[r])+Math.max(e[a],t[a])}function ki(e,t,r){var i,o,a=r.box,n=e.maxPadding;if(r.size&&(e[r.pos]-=r.size),r.size=r.horizontal?a.height:a.width,e[r.pos]+=r.size,a.getPadding){var l=a.getPadding();n.top=Math.max(n.top,l.top),n.left=Math.max(n.left,l.left),n.bottom=Math.max(n.bottom,l.bottom),n.right=Math.max(n.right,l.right)}if(i=t.outerWidth-Wa(n,e,"left","right"),o=t.outerHeight-Wa(n,e,"top","bottom"),i!==e.w||o!==e.h){e.w=i,e.h=o;var s=r.horizontal?[i,e.w]:[o,e.h];return!(s[0]===s[1]||isNaN(s[0])&&isNaN(s[1]))}}function Ti(e,t){var i,r=t.maxPadding;return i={left:0,top:0,right:0,bottom:0},(e?["left","right"]:["top","bottom"]).forEach(function(o){i[o]=Math.max(t[o],r[o])}),i}function tr(e,t,r){var n,i,o,l,s,u,a=[];for(n=0,i=e.length;n<i;++n)(l=(o=e[n]).box).update(o.width||t.w,o.height||t.h,Ti(o.horizontal,t)),ki(t,r,o)&&(u=!0,a.length&&(s=!0)),l.fullWidth||a.push(o);return s&&tr(a,t,r)||u}function Ha(e,t,r){var o,l,s,u,a=r.padding,n=t.x,i=t.y;for(o=0,l=e.length;o<l;++o)u=(s=e[o]).box,s.horizontal?(u.left=u.fullWidth?a.left:t.left,u.right=u.fullWidth?r.outerWidth-a.right:t.left+t.w,u.top=i,u.bottom=i+u.height,u.width=u.right-u.left,i=u.bottom):(u.left=n,u.right=n+u.width,u.top=t.top,u.bottom=t.top+t.h,u.height=u.bottom-u.top,n=u.right);t.x=n,t.y=i}T._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var we={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var r=e.boxes?e.boxes.indexOf(t):-1;-1!==r&&e.boxes.splice(r,1)},configure:function(e,t,r){for(var o,a=["fullWidth","position","weight"],n=a.length,i=0;i<n;++i)r.hasOwnProperty(o=a[i])&&(t[o]=r[o])},update:function(e,t,r){if(e){var n=c.options.toPadding((e.options.layout||{}).padding),i=t-n.width,o=r-n.height,l=function(e){var t=function(e){var r,a,n,t=[];for(r=0,a=(e||[]).length;r<a;++r)t.push({index:r,box:n=e[r],pos:n.position,horizontal:n.isHorizontal(),weight:n.weight});return t}(e),r=er(Bt(t,"left"),!0),a=er(Bt(t,"right")),n=er(Bt(t,"top"),!0),i=er(Bt(t,"bottom"));return{leftAndTop:r.concat(n),rightAndBottom:a.concat(i),chartArea:Bt(t,"chartArea"),vertical:r.concat(a),horizontal:n.concat(i)}}(e.boxes),s=l.vertical,u=l.horizontal,d=Object.freeze({outerWidth:t,outerHeight:r,padding:n,availableWidth:i,vBoxMaxWidth:i/2/s.length,hBoxMaxHeight:o/2}),f=Lr({maxPadding:Lr({},n),w:i,h:o,x:n.left,y:n.top},n);(function(e,t){var r,a,n;for(r=0,a=e.length;r<a;++r)(n=e[r]).width=n.horizontal?n.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,n.height=n.horizontal&&t.hBoxMaxHeight})(s.concat(u),d),tr(s,f,d),tr(u,f,d)&&tr(s,f,d),function(e){var t=e.maxPadding;function r(a){var n=Math.max(t[a]-e[a],0);return e[a]+=n,n}e.y+=r("top"),e.x+=r("left"),r("right"),r("bottom")}(f),Ha(l.leftAndTop,f,d),f.x+=f.w,f.y+=f.h,Ha(l.rightAndBottom,f,d),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h},c.each(l.chartArea,function(v){var p=v.box;Lr(p,e.chartArea),p.update(f.w,f.h)})}}},Oi=function(e){return e&&e.default||e}(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\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: 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\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"})),ie="$chartjs",Br="chartjs-",Rr=Br+"size-monitor",Va=Br+"render-monitor",Ua=["animationstart","webkitAnimationStart"],Ii={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function qa(e,t){var r=c.getStyle(e,t),a=r&&r.match(/^(\d+)(\.\d+)?px$/);return a?Number(a[1]):void 0}var $a=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(r){}return e}()&&{passive:!0};function Rt(e,t,r){e.addEventListener(t,r,$a)}function W(e,t,r){e.removeEventListener(t,r,$a)}function Er(e,t,r,a,n){return{type:e,chart:t,native:n||null,x:void 0!==r?r:null,y:void 0!==a?a:null}}function Je(e){var t=document.createElement("div");return t.className=e||"",t}function Nr(e,t,r){var a=e[ie]||(e[ie]={}),n=a.resizer=function(e){var t=1e6,r=Je(Rr),a=Je(Rr+"-expand"),n=Je(Rr+"-shrink");a.appendChild(Je()),n.appendChild(Je()),r.appendChild(a),r.appendChild(n),r._reset=function(){a.scrollLeft=t,a.scrollTop=t,n.scrollLeft=t,n.scrollTop=t};var i=function(){r._reset(),e()};return Rt(a,"scroll",i.bind(a,"expand")),Rt(n,"scroll",i.bind(n,"shrink")),r}(function(e,t){var r=!1,a=[];return function(){a=Array.prototype.slice.call(arguments),t=t||this,r||(r=!0,c.requestAnimFrame.call(window,function(){r=!1,e.apply(t,a)}))}}(function(){if(a.resizer){var i=r.options.maintainAspectRatio&&e.parentNode,o=i?i.clientWidth:0;t(Er("resize",r)),i&&i.clientWidth<o&&r.canvas&&t(Er("resize",r))}}));!function(e,t){var r=e[ie]||(e[ie]={}),a=r.renderProxy=function(n){"chartjs-render-animation"===n.animationName&&t()};c.each(Ua,function(n){Rt(e,n,a)}),r.reflow=!!e.offsetParent,e.classList.add(Va)}(e,function(){if(a.resizer){var i=e.parentNode;i&&i!==n.parentNode&&i.insertBefore(n,i.firstChild),n._reset()}})}function zi(e){var t=e[ie]||{},r=t.resizer;delete t.resizer,function(e){var t=e[ie]||{},r=t.renderProxy;r&&(c.each(Ua,function(a){W(e,a,r)}),delete t.renderProxy),e.classList.remove(Va)}(e),r&&r.parentNode&&r.parentNode.removeChild(r)}var zr={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;!function(e,t){var r=e[ie]||(e[ie]={});if(!r.containsStyles){r.containsStyles=!0,t="/* Chart.js */\n"+t;var a=document.createElement("style");a.setAttribute("type","text/css"),a.appendChild(document.createTextNode(t)),e.appendChild(a)}}(t.host?t:document.head,Oi)}},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(this._ensureLoaded(e),function(e,t){var r=e.style,a=e.getAttribute("height"),n=e.getAttribute("width");if(e[ie]={initial:{height:a,width:n,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",null===n||""===n){var i=qa(e,"width");void 0!==i&&(e.width=i)}if(null===a||""===a)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var o=qa(e,"height");void 0!==i&&(e.height=o)}}(e,t),r):null},releaseContext:function(e){var t=e.canvas;if(t[ie]){var r=t[ie].initial;["height","width"].forEach(function(a){var n=r[a];c.isNullOrUndef(n)?t.removeAttribute(a):t.setAttribute(a,n)}),c.each(r.style||{},function(a,n){t.style[n]=a}),t.width=t.width,delete t[ie]}},addEventListener:function(e,t,r){var a=e.canvas;if("resize"!==t){var n=r[ie]||(r[ie]={});Rt(a,t,(n.proxies||(n.proxies={}))[e.id+"_"+t]=function(l){r(function(e,t){var r=Ii[e.type]||e.type,a=c.getRelativePosition(e,t);return Er(r,t,a.x,a.y,e)}(l,e))})}else Nr(a,r,e)},removeEventListener:function(e,t,r){var a=e.canvas;if("resize"!==t){var o=((r[ie]||{}).proxies||{})[e.id+"_"+t];!o||W(a,t,o)}else zi(a)}};c.addEvent=Rt,c.removeEvent=W;var vt=c.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},zr._enabled?zr:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}});T._set("global",{plugins:{}});var H={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(r){-1===t.indexOf(r)&&t.push(r)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(r){var a=t.indexOf(r);-1!==a&&t.splice(a,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,r){var i,o,l,s,u,a=this.descriptors(e),n=a.length;for(i=0;i<n;++i)if("function"==typeof(u=(l=(o=a[i]).plugin)[t])&&((s=[e].concat(r||[])).push(o.options),!1===u.apply(l,s)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var r=[],a=[],n=e&&e.config||{},i=n.options&&n.options.plugins||{};return this._plugins.concat(n.plugins||[]).forEach(function(o){if(-1===r.indexOf(o)){var s=o.id,u=i[s];!1!==u&&(!0===u&&(u=c.clone(T.global.plugins[s])),r.push(o),a.push({plugin:o,options:u||{}}))}}),t.descriptors=a,t.id=this._cacheId,a},_invalidate:function(e){delete e.$plugins}},Nt={constructors:{},defaults:{},registerScaleType:function(e,t,r){this.constructors[e]=t,this.defaults[e]=c.clone(r)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?c.merge(Object.create(null),[T.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var r=this;r.defaults.hasOwnProperty(e)&&(r.defaults[e]=c.extend(r.defaults[e],t))},addScalesToLayout:function(e){c.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,we.addBox(e,t)})}},Be=c.valueOrDefault,rr=c.rtl.getRtlAdapter;T._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:c.noop,title:function(e,t){var r="",a=t.labels,n=a?a.length:0;if(e.length>0){var i=e[0];i.label?r=i.label:i.xLabel?r=i.xLabel:n>0&&i.index<n&&(r=a[i.index])}return r},afterTitle:c.noop,beforeBody:c.noop,beforeLabel:c.noop,label:function(e,t){var r=t.datasets[e.datasetIndex].label||"";return r&&(r+=": "),c.isNullOrUndef(e.value)?r+=e.yLabel:r+=e.value,r},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:c.noop,afterBody:c.noop,beforeFooter:c.noop,footer:c.noop,afterFooter:c.noop}}});var Ga={average:function(e){if(!e.length)return!1;var t,r,a=0,n=0,i=0;for(t=0,r=e.length;t<r;++t){var o=e[t];if(o&&o.hasValue()){var l=o.tooltipPosition();a+=l.x,n+=l.y,++i}}return{x:a/i,y:n/i}},nearest:function(e,t){var i,o,l,r=t.x,a=t.y,n=Number.POSITIVE_INFINITY;for(i=0,o=e.length;i<o;++i){var s=e[i];if(s&&s.hasValue()){var u=s.getCenterPoint(),d=c.distanceBetweenPoints(t,u);d<n&&(n=d,l=s)}}if(l){var f=l.tooltipPosition();r=f.x,a=f.y}return{x:r,y:a}}};function Oe(e,t){return t&&(c.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Te(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Wi(e){var t=e._xScale,r=e._yScale||e._scale,a=e._index,n=e._datasetIndex,i=e._chart.getDatasetMeta(n).controller,o=i._getIndexScale(),l=i._getValueScale();return{xLabel:t?t.getLabelForIndex(a,n):"",yLabel:r?r.getLabelForIndex(a,n):"",label:o?""+o.getLabelForIndex(a,n):"",value:l?""+l.getLabelForIndex(a,n):"",index:a,datasetIndex:n,x:e._model.x,y:e._model.y}}function jr(e){var t=T.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Be(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Be(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Be(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Be(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Be(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Be(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Be(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Be(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Be(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function ar(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Ka(e){return Oe([],Te(e))}var qi=Ae.extend({initialize:function(){this._model=jr(this._options),this._lastActive=[]},getTitle:function(){var e=this,r=e._options.callbacks,a=r.beforeTitle.apply(e,arguments),n=r.title.apply(e,arguments),i=r.afterTitle.apply(e,arguments),o=[];return o=Oe(o,Te(a)),o=Oe(o,Te(n)),Oe(o,Te(i))},getBeforeBody:function(){return Ka(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var r=this,a=r._options.callbacks,n=[];return c.each(e,function(i){var o={before:[],lines:[],after:[]};Oe(o.before,Te(a.beforeLabel.call(r,i,t))),Oe(o.lines,a.label.call(r,i,t)),Oe(o.after,Te(a.afterLabel.call(r,i,t))),n.push(o)}),n},getAfterBody:function(){return Ka(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,r=t.beforeFooter.apply(e,arguments),a=t.footer.apply(e,arguments),n=t.afterFooter.apply(e,arguments),i=[];return i=Oe(i,Te(r)),i=Oe(i,Te(a)),Oe(i,Te(n))},update:function(e){var f,v,t=this,r=t._options,a=t._model,n=t._model=jr(r),i=t._active,o=t._data,l={xAlign:a.xAlign,yAlign:a.yAlign},s={x:a.x,y:a.y},u={width:a.width,height:a.height},d={x:a.caretX,y:a.caretY};if(i.length){n.opacity=1;var p=[],m=[];d=Ga[r.position].call(t,i,t._eventPosition);var y=[];for(f=0,v=i.length;f<v;++f)y.push(Wi(i[f]));r.filter&&(y=y.filter(function(_){return r.filter(_,o)})),r.itemSort&&(y=y.sort(function(_,w){return r.itemSort(_,w,o)})),c.each(y,function(_){p.push(r.callbacks.labelColor.call(t,_,t._chart)),m.push(r.callbacks.labelTextColor.call(t,_,t._chart))}),n.title=t.getTitle(y,o),n.beforeBody=t.getBeforeBody(y,o),n.body=t.getBody(y,o),n.afterBody=t.getAfterBody(y,o),n.footer=t.getFooter(y,o),n.x=d.x,n.y=d.y,n.caretPadding=r.caretPadding,n.labelColors=p,n.labelTextColors=m,n.dataPoints=y,s=function(e,t,r,a){var n=e.x,i=e.y,l=e.caretPadding,u=r.xAlign,d=r.yAlign,f=e.caretSize+l,v=e.cornerRadius+l;return"right"===u?n-=t.width:"center"===u&&((n-=t.width/2)+t.width>a.width&&(n=a.width-t.width),n<0&&(n=0)),"top"===d?i+=f:i-="bottom"===d?t.height+f:t.height/2,"center"===d?"left"===u?n+=f:"right"===u&&(n-=f):"left"===u?n-=v:"right"===u&&(n+=v),{x:n,y:i}}(n,u=function(e,t){var r=e._chart.ctx,a=2*t.yPadding,n=0,i=t.body,o=i.reduce(function(m,y){return m+y.before.length+y.lines.length+y.after.length},0),l=t.title.length,s=t.footer.length,u=t.titleFontSize,d=t.bodyFontSize,f=t.footerFontSize;a+=l*u,a+=l?(l-1)*t.titleSpacing:0,a+=l?t.titleMarginBottom:0,a+=(o+=t.beforeBody.length+t.afterBody.length)*d,a+=o?(o-1)*t.bodySpacing:0,a+=s?t.footerMarginTop:0,a+=s*f,a+=s?(s-1)*t.footerSpacing:0;var v=0,p=function(m){n=Math.max(n,r.measureText(m).width+v)};return r.font=c.fontString(u,t._titleFontStyle,t._titleFontFamily),c.each(t.title,p),r.font=c.fontString(d,t._bodyFontStyle,t._bodyFontFamily),c.each(t.beforeBody.concat(t.afterBody),p),v=t.displayColors?d+2:0,c.each(i,function(m){c.each(m.before,p),c.each(m.lines,p),c.each(m.after,p)}),v=0,r.font=c.fontString(f,t._footerFontStyle,t._footerFontFamily),c.each(t.footer,p),{width:n+=2*t.xPadding,height:a}}(this,n),l=function(e,t){var r=e._model,a=e._chart,n=e._chart.chartArea,i="center",o="center";r.y<t.height?o="top":r.y>a.height-t.height&&(o="bottom");var l,s,u,d,f,v=(n.left+n.right)/2,p=(n.top+n.bottom)/2;"center"===o?(l=function(y){return y<=v},s=function(y){return y>v}):(l=function(y){return y<=t.width/2},s=function(y){return y>=a.width-t.width/2}),u=function(y){return y+t.width+r.caretSize+r.caretPadding>a.width},d=function(y){return y-t.width-r.caretSize-r.caretPadding<0},f=function(y){return y<=p?"top":"bottom"},l(r.x)?(i="left",u(r.x)&&(i="center",o=f(r.y))):s(r.x)&&(i="right",d(r.x)&&(i="center",o=f(r.y)));var m=e._options;return{xAlign:m.xAlign?m.xAlign:i,yAlign:m.yAlign?m.yAlign:o}}(this,u),t._chart)}else n.opacity=0;return n.xAlign=l.xAlign,n.yAlign=l.yAlign,n.x=s.x,n.y=s.y,n.width=u.width,n.height=u.height,n.caretX=d.x,n.caretY=d.y,t._model=n,e&&r.custom&&r.custom.call(t,n),t},drawCaret:function(e,t){var r=this._chart.ctx,n=this.getCaretPosition(e,t,this._view);r.lineTo(n.x1,n.y1),r.lineTo(n.x2,n.y2),r.lineTo(n.x3,n.y3)},getCaretPosition:function(e,t,r){var a,n,i,o,l,s,u=r.caretSize,d=r.cornerRadius,f=r.xAlign,v=r.yAlign,p=e.x,m=e.y,y=t.width,_=t.height;if("center"===v)l=m+_/2,"left"===f?(n=(a=p)-u,i=a,o=l+u,s=l-u):(n=(a=p+y)+u,i=a,o=l-u,s=l+u);else if("left"===f?(a=(n=p+d+u)-u,i=n+u):"right"===f?(a=(n=p+y-d-u)-u,i=n+u):(a=(n=r.caretX)-u,i=n+u),"top"===v)l=(o=m)-u,s=o;else{l=(o=m+_)+u,s=o;var w=i;i=a,a=w}return{x1:a,x2:n,x3:i,y1:o,y2:l,y3:s}},drawTitle:function(e,t,r){var i,o,l,a=t.title,n=a.length;if(n){var s=rr(t.rtl,t.x,t.width);for(e.x=ar(t,t._titleAlign),r.textAlign=s.textAlign(t._titleAlign),r.textBaseline="middle",i=t.titleFontSize,o=t.titleSpacing,r.fillStyle=t.titleFontColor,r.font=c.fontString(i,t._titleFontStyle,t._titleFontFamily),l=0;l<n;++l)r.fillText(a[l],s.x(e.x),e.y+i/2),e.y+=i+o,l+1===n&&(e.y+=t.titleMarginBottom-o)}},drawBody:function(e,t,r){var v,p,m,y,_,w,M,k,a=t.bodyFontSize,n=t.bodySpacing,i=t._bodyAlign,o=t.body,l=t.displayColors,s=0,u=l?ar(t,"left"):0,d=rr(t.rtl,t.x,t.width),f=function(N){r.fillText(N,d.x(e.x+s),e.y+a/2),e.y+=a+n},F=d.textAlign(i);for(r.textAlign=i,r.textBaseline="middle",r.font=c.fontString(a,t._bodyFontStyle,t._bodyFontFamily),e.x=ar(t,F),r.fillStyle=t.bodyFontColor,c.each(t.beforeBody,f),s=l&&"right"!==F?"center"===i?a/2+1:a+2:0,_=0,M=o.length;_<M;++_){for(v=o[_],m=t.labelColors[_],r.fillStyle=p=t.labelTextColors[_],c.each(v.before,f),w=0,k=(y=v.lines).length;w<k;++w){if(l){var O=d.x(u);r.fillStyle=t.legendColorBackground,r.fillRect(d.leftForLtr(O,a),e.y,a,a),r.lineWidth=1,r.strokeStyle=m.borderColor,r.strokeRect(d.leftForLtr(O,a),e.y,a,a),r.fillStyle=m.backgroundColor,r.fillRect(d.leftForLtr(d.xPlus(O,1),a-2),e.y+1,a-2,a-2),r.fillStyle=p}f(y[w])}c.each(v.after,f)}s=0,c.each(t.afterBody,f),e.y-=n},drawFooter:function(e,t,r){var i,o,a=t.footer,n=a.length;if(n){var l=rr(t.rtl,t.x,t.width);for(e.x=ar(t,t._footerAlign),e.y+=t.footerMarginTop,r.textAlign=l.textAlign(t._footerAlign),r.textBaseline="middle",i=t.footerFontSize,r.fillStyle=t.footerFontColor,r.font=c.fontString(i,t._footerFontStyle,t._footerFontFamily),o=0;o<n;++o)r.fillText(a[o],l.x(e.x),e.y+i/2),e.y+=i+t.footerSpacing}},drawBackground:function(e,t,r,a){r.fillStyle=t.backgroundColor,r.strokeStyle=t.borderColor,r.lineWidth=t.borderWidth;var n=t.xAlign,i=t.yAlign,o=e.x,l=e.y,s=a.width,u=a.height,d=t.cornerRadius;r.beginPath(),r.moveTo(o+d,l),"top"===i&&this.drawCaret(e,a),r.lineTo(o+s-d,l),r.quadraticCurveTo(o+s,l,o+s,l+d),"center"===i&&"right"===n&&this.drawCaret(e,a),r.lineTo(o+s,l+u-d),r.quadraticCurveTo(o+s,l+u,o+s-d,l+u),"bottom"===i&&this.drawCaret(e,a),r.lineTo(o+d,l+u),r.quadraticCurveTo(o,l+u,o,l+u-d),"center"===i&&"left"===n&&this.drawCaret(e,a),r.lineTo(o,l+d),r.quadraticCurveTo(o,l,o+d,l),r.closePath(),r.fill(),t.borderWidth>0&&r.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var r={width:t.width,height:t.height},a={x:t.x,y:t.y},n=Math.abs(t.opacity<.001)?0:t.opacity;this._options.enabled&&(t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length)&&(e.save(),e.globalAlpha=n,this.drawBackground(a,t,e,r),a.y+=t.yPadding,c.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(a,t,e),this.drawBody(a,t,e),this.drawFooter(a,t,e),c.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var a,t=this,r=t._options;return t._lastActive=t._lastActive||[],"mouseout"===e.type?t._active=[]:(t._active=t._chart.getElementsAtEventForMode(e,r.mode,r),r.reverse&&t._active.reverse()),(a=!c.arrayEquals(t._active,t._lastActive))&&(t._lastActive=t._active,(r.enabled||r.custom)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0),t.pivot())),a}}),nr=qi;nr.positioners=Ga;var Wr=c.valueOrDefault;function ir(){return c.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,r,a){if("xAxes"===e||"yAxes"===e){var i,o,l,n=r[e].length;for(t[e]||(t[e]=[]),i=0;i<n;++i)o=Wr((l=r[e][i]).type,"xAxes"===e?"category":"linear"),i>=t[e].length&&t[e].push({}),c.merge(t[e][i],!t[e][i].type||l.type&&l.type!==t[e][i].type?[Nt.getScaleDefaults(o),l]:l)}else c._merger(e,t,r,a)}})}function Hr(){return c.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,r,a){var n=t[e]||Object.create(null),i=r[e];"scales"===e?t[e]=ir(n,i):"scale"===e?t[e]=c.merge(n,[Nt.getScaleDefaults(i.type),i]):c._merger(e,t,r,a)}})}function Gi(e){var t=e.options;c.each(e.scales,function(r){we.removeBox(e,r)}),t=Hr(T.global,T[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function Xa(e,t,r){var a,n=function(i){return i.id===a};do{a=t+r++}while(c.findIndex(e,n)>=0);return a}function Ja(e){return"top"===e||"bottom"===e}function Za(e,t){return function(r,a){return r[e]===a[e]?r[t]-a[t]:r[e]-a[e]}}T._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 je=function(e,t){return this.construct(e,t),this};c.extend(je.prototype,{construct:function(e,t){var r=this;t=function(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Hr(T.global,T[e.type],e.options||{}),e}(t);var a=vt.acquireContext(e,t),n=a&&a.canvas,i=n&&n.height,o=n&&n.width;r.id=c.uid(),r.ctx=a,r.canvas=n,r.config=t,r.width=o,r.height=i,r.aspectRatio=i?o/i:null,r.options=t.options,r._bufferedRender=!1,r._layers=[],r.chart=r,r.controller=r,je.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(l){r.config.data=l}}),a&&n?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return H.notify(e,"beforeInit"),c.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),H.notify(e,"afterInit"),e},clear:function(){return c.canvas.clear(this),this},stop:function(){return kr.cancelAnimation(this),this},resize:function(e){var t=this,r=t.options,a=t.canvas,n=r.maintainAspectRatio&&t.aspectRatio||null,i=Math.max(0,Math.floor(c.getMaximumWidth(a))),o=Math.max(0,Math.floor(n?i/n:c.getMaximumHeight(a)));if((t.width!==i||t.height!==o)&&(a.width=t.width=i,a.height=t.height=o,a.style.width=i+"px",a.style.height=o+"px",c.retinaScale(t,r.devicePixelRatio),!e)){var l={width:i,height:o};H.notify(t,"resize",[l]),r.onResize&&r.onResize(t,l),t.stop(),t.update({duration:r.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},r=e.scale;c.each(t.xAxes,function(a,n){a.id||(a.id=Xa(t.xAxes,"x-axis-",n))}),c.each(t.yAxes,function(a,n){a.id||(a.id=Xa(t.yAxes,"y-axis-",n))}),r&&(r.id=r.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,r=e.scales||{},a=[],n=Object.keys(r).reduce(function(i,o){return i[o]=!1,i},{});t.scales&&(a=a.concat((t.scales.xAxes||[]).map(function(i){return{options:i,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(i){return{options:i,dtype:"linear",dposition:"left"}}))),t.scale&&a.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),c.each(a,function(i){var o=i.options,l=o.id,s=Wr(o.type,i.dtype);Ja(o.position)!==Ja(i.dposition)&&(o.position=i.dposition),n[l]=!0;var u=null;if(l in r&&r[l].type===s)(u=r[l]).options=o,u.ctx=e.ctx,u.chart=e;else{var d=Nt.getScaleConstructor(s);if(!d)return;u=new d({id:l,type:s,options:o,ctx:e.ctx,chart:e}),r[u.id]=u}u.mergeTicksOptions(),i.isDefault&&(e.scale=u)}),c.each(n,function(i,o){i||delete r[o]}),e.scales=r,Nt.addScalesToLayout(this)},buildOrUpdateControllers:function(){var a,n,e=this,t=[],r=e.data.datasets;for(a=0,n=r.length;a<n;a++){var i=r[a],o=e.getDatasetMeta(a),l=i.type||e.config.type;if(o.type&&o.type!==l&&(e.destroyDatasetMeta(a),o=e.getDatasetMeta(a)),o.type=l,o.order=i.order||0,o.index=a,o.controller)o.controller.updateIndex(a),o.controller.linkScales();else{var s=Pr[o.type];if(void 0===s)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new s(e,a),t.push(o.controller)}}return t},resetElements:function(){var e=this;c.each(e.data.datasets,function(t,r){e.getDatasetMeta(r).controller.reset()},e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var r,a,t=this;if((!e||"object"!=typeof e)&&(e={duration:e,lazy:arguments[1]}),Gi(t),H._invalidate(t),!1!==H.notify(t,"beforeUpdate")){t.tooltip._data=t.data;var n=t.buildOrUpdateControllers();for(r=0,a=t.data.datasets.length;r<a;r++)t.getDatasetMeta(r).controller.buildOrUpdateElements();t.updateLayout(),t.options.animation&&t.options.animation.duration&&c.each(n,function(i){i.reset()}),t.updateDatasets(),t.tooltip.initialize(),t.lastActive=[],H.notify(t,"afterUpdate"),t._layers.sort(Za("z","_idx")),t._bufferedRender?t._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:t.render(e)}},updateLayout:function(){var e=this;!1!==H.notify(e,"beforeLayout")&&(we.update(this,this.width,this.height),e._layers=[],c.each(e.boxes,function(t){t._configure&&t._configure(),e._layers.push.apply(e._layers,t._layers())},e),e._layers.forEach(function(t,r){t._idx=r}),H.notify(e,"afterScaleUpdate"),H.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(!1!==H.notify(e,"beforeDatasetsUpdate")){for(var t=0,r=e.data.datasets.length;t<r;++t)e.updateDataset(t);H.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,r=t.getDatasetMeta(e),a={meta:r,index:e};!1!==H.notify(t,"beforeDatasetUpdate",[a])&&(r.controller._update(),H.notify(t,"afterDatasetUpdate",[a]))},render:function(e){var t=this;(!e||"object"!=typeof e)&&(e={duration:e,lazy:arguments[1]});var r=t.options.animation,a=Wr(e.duration,r&&r.duration),n=e.lazy;if(!1!==H.notify(t,"beforeRender")){var i=function(l){H.notify(t,"afterRender"),c.callback(r&&r.onComplete,[l],t)};if(r&&a){var o=new Mr({numSteps:a/16.66,easing:e.easing||r.easing,render:function(l,s){var d=s.currentStep,f=d/s.numSteps;l.draw((0,c.easing.effects[s.easing])(f),f,d)},onAnimationProgress:r.onProgress,onAnimationComplete:i});kr.addAnimation(t,o,a,n)}else t.draw(),i(new Mr({numSteps:0,chart:t}));return t}},draw:function(e){var r,a,t=this;if(t.clear(),c.isNullOrUndef(e)&&(e=1),t.transition(e),!(t.width<=0||t.height<=0)&&!1!==H.notify(t,"beforeDraw",[e])){for(a=t._layers,r=0;r<a.length&&a[r].z<=0;++r)a[r].draw(t.chartArea);for(t.drawDatasets(e);r<a.length;++r)a[r].draw(t.chartArea);t._drawTooltip(e),H.notify(t,"afterDraw",[e])}},transition:function(e){for(var t=this,r=0,a=(t.data.datasets||[]).length;r<a;++r)t.isDatasetVisible(r)&&t.getDatasetMeta(r).controller.transition(e);t.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var n,i,t=this,a=[];for(n=0,i=(t.data.datasets||[]).length;n<i;++n)(!e||t.isDatasetVisible(n))&&a.push(t.getDatasetMeta(n));return a.sort(Za("order","index")),a},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var r,a,t=this;if(!1!==H.notify(t,"beforeDatasetsDraw",[e])){for(a=(r=t._getSortedVisibleDatasetMetas()).length-1;a>=0;--a)t.drawDataset(r[a],e);H.notify(t,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var a={meta:e,index:e.index,easingValue:t};!1!==H.notify(this,"beforeDatasetDraw",[a])&&(e.controller.draw(t),H.notify(this,"afterDatasetDraw",[a]))},_drawTooltip:function(e){var t=this,r=t.tooltip,a={tooltip:r,easingValue:e};!1!==H.notify(t,"beforeTooltipDraw",[a])&&(r.draw(),H.notify(t,"afterTooltipDraw",[a]))},getElementAtEvent:function(e){return ht.modes.single(this,e)},getElementsAtEvent:function(e){return ht.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return ht.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,r){var a=ht.modes[t];return"function"==typeof a?a(this,e,r):[]},getDatasetAtEvent:function(e){return ht.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,r=t.data.datasets[e];r._meta||(r._meta={});var a=r._meta[t.id];return a||(a=r._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:r.order||0,index:e}),a},getVisibleDatasetCount:function(){for(var e=0,t=0,r=this.data.datasets.length;t<r;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,r=this.data.datasets[e],a=r._meta&&r._meta[t];a&&(a.controller.destroy(),delete r._meta[t])},destroy:function(){var r,a,e=this,t=e.canvas;for(e.stop(),r=0,a=e.data.datasets.length;r<a;++r)e.destroyDatasetMeta(r);t&&(e.unbindEvents(),c.canvas.clear(e),vt.releaseContext(e.ctx),e.canvas=null,e.ctx=null),H.notify(e,"destroy"),delete je.instances[e.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new nr({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},r=function(){e.eventHandler.apply(e,arguments)};c.each(e.options.events,function(a){vt.addEventListener(e,a,r),t[a]=r}),e.options.responsive&&(r=function(){e.resize()},vt.addEventListener(e,"resize",r),t.resize=r)},unbindEvents:function(){var e=this,t=e._listeners;!t||(delete e._listeners,c.each(t,function(r,a){vt.removeEventListener(e,a,r)}))},updateHoverStyle:function(e,t,r){var n,i,o,a=r?"set":"remove";for(i=0,o=e.length;i<o;++i)(n=e[i])&&this.getDatasetMeta(n._datasetIndex).controller[a+"HoverStyle"](n);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+a+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,r=t.tooltip;if(!1!==H.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var a=t.handleEvent(e);r&&(a=r._start?r.handleEvent(e):a|r.handleEvent(e)),H.notify(t,"afterEvent",[e]);var n=t._bufferedRequest;return n?t.render(n):a&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var n,t=this,r=t.options||{},a=r.hover;return t.lastActive=t.lastActive||[],t.active="mouseout"===e.type?[]:t.getElementsAtEventForMode(e,a.mode,a),c.callback(r.onHover||r.hover.onHover,[e.native,t.active],t),("mouseup"===e.type||"click"===e.type)&&r.onClick&&r.onClick.call(t,e.native,t.active),t.lastActive.length&&t.updateHoverStyle(t.lastActive,a.mode,!1),t.active.length&&a.mode&&t.updateHoverStyle(t.active,a.mode,!0),n=!c.arrayEquals(t.active,t.lastActive),t.lastActive=t.active,n}}),je.instances={};var I=je;je.Controller=je,je.types={},c.configMerge=Hr,c.scaleMerge=ir;function Re(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function or(e){this.options=e||{}}c.extend(or.prototype,{formats:Re,parse:Re,format:Re,add:Re,diff:Re,startOf:Re,endOf:Re,_create:function(e){return e}}),or.override=function(e){c.extend(or.prototype,e)};var sr={_date:or},gt={formatters:{values:function(e){return c.isArray(e)?e:""+e},linear:function(e,t,r){var a=r.length>3?r[2]-r[1]:r[1]-r[0];Math.abs(a)>1&&e!==Math.floor(e)&&(a=e-Math.floor(e));var n=c.log10(Math.abs(a)),i="";if(0!==e)if(Math.max(Math.abs(r[0]),Math.abs(r[r.length-1]))<1e-4){var l=c.log10(Math.abs(e)),s=Math.floor(l)-Math.floor(n);s=Math.max(Math.min(s,20),0),i=e.toExponential(s)}else{var u=-1*Math.floor(n);u=Math.max(Math.min(u,20),0),i=e.toFixed(u)}else i="0";return i},logarithmic:function(e,t,r){var a=e/Math.pow(10,Math.floor(c.log10(e)));return 0===e?"0":1===a||2===a||5===a||0===t||t===r.length-1?e.toExponential():""}}},Ze=c.isArray,pt=c.isNullOrUndef,We=c.valueOrDefault,mt=c.valueAtIndexOrDefault;function Zi(e,t,r){var u,a=e.getTicks().length,n=Math.min(t,a-1),i=e.getPixelForTick(n),o=e._startPixel,l=e._endPixel,s=1e-6;if(!(r&&(u=1===a?Math.max(i-o,l-i):0===t?(e.getPixelForTick(1)-i)/2:(i-e.getPixelForTick(n-1))/2,i+=n<t?u:-u,i<o-s||i>l+s)))return i}function eo(e,t,r,a){var d,f,v,p,m,y,_,w,M,k,F,O,N,n=r.length,i=[],o=[],l=[],s=0,u=0;for(d=0;d<n;++d){if(p=r[d].label,e.font=y=(m=r[d].major?t.major:t.minor).string,_=a[y]=a[y]||{data:{},gc:[]},w=m.lineHeight,M=k=0,pt(p)||Ze(p)){if(Ze(p))for(f=0,v=p.length;f<v;++f)!pt(F=p[f])&&!Ze(F)&&(M=c.measureText(e,_.data,_.gc,M,F),k+=w)}else M=c.measureText(e,_.data,_.gc,M,p),k=w;i.push(M),o.push(k),l.push(w/2),s=Math.max(M,s),u=Math.max(k,u)}function E(j){return{width:i[j]||0,height:o[j]||0,offset:l[j]||0}}return function(e,t){c.each(e,function(r){var i,a=r.gc,n=a.length/2;if(n>t){for(i=0;i<n;++i)delete r.data[a[i]];a.splice(0,n)}})}(a,n),O=i.indexOf(s),N=o.indexOf(u),{first:E(0),last:E(n-1),widest:E(O),highest:E(N)}}function zt(e){return e.drawTicks?e.tickMarkLength:0}function Vr(e){var t,r;return e.display?(t=c.options._parseFont(e),r=c.options.toPadding(e.padding),t.lineHeight+r.height):0}function Ur(e,t){return c.extend(c.options._parseFont({fontFamily:We(t.fontFamily,e.fontFamily),fontSize:We(t.fontSize,e.fontSize),fontStyle:We(t.fontStyle,e.fontStyle),lineHeight:We(t.lineHeight,e.lineHeight)}),{color:c.options.resolve([t.fontColor,e.fontColor,T.global.defaultFontColor])})}function qr(e){var t=Ur(e,e.minor);return{minor:t,major:e.major.enabled?Ur(e,e.major):t}}function $r(e){var r,a,n,t=[];for(a=0,n=e.length;a<n;++a)void 0!==(r=e[a])._index&&t.push(r);return t}function lr(e,t,r,a){var l,s,u,d,n=We(r,0),i=Math.min(We(a,e.length),e.length),o=0;for(t=Math.ceil(t),a&&(t=(l=a-r)/Math.floor(l/t)),d=n;d<0;)o++,d=Math.round(n+o*t);for(s=Math.max(n,0);s<i;s++)u=e[s],s===d?(u._index=s,o++,d=Math.round(n+o*t)):delete u.label}T._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",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:gt.formatters.values,minor:{},major:{}}});var Gr=Ae.extend({zeroLineIndex:0,getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){c.callback(this.options.beforeUpdate,[this])},update:function(e,t,r){var o,l,s,u,d,a=this,n=a.options.ticks,i=n.sampleSize;if(a.beforeUpdate(),a.maxWidth=e,a.maxHeight=t,a.margins=c.extend({left:0,right:0,top:0,bottom:0},r),a._ticks=null,a.ticks=null,a._labelSizes=null,a._maxLabelLines=0,a.longestLabelWidth=0,a.longestTextCache=a.longestTextCache||{},a._gridLineItems=null,a._labelItems=null,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeDataLimits(),a.determineDataLimits(),a.afterDataLimits(),a.beforeBuildTicks(),u=a.buildTicks()||[],(!(u=a.afterBuildTicks(u)||u)||!u.length)&&a.ticks)for(u=[],o=0,l=a.ticks.length;o<l;++o)u.push({value:a.ticks[o],major:!1});return a._ticks=u,s=a._convertTicksToLabels((d=i<u.length)?function(e,t){for(var r=[],a=e.length/t,n=0,i=e.length;n<i;n+=a)r.push(e[Math.floor(n)]);return r}(u,i):u),a._configure(),a.beforeCalculateTickRotation(),a.calculateTickRotation(),a.afterCalculateTickRotation(),a.beforeFit(),a.fit(),a.afterFit(),a._ticksToDraw=n.display&&(n.autoSkip||"auto"===n.source)?a._autoSkip(u):u,d&&(s=a._convertTicksToLabels(a._ticksToDraw)),a.ticks=s,a.afterUpdate(),a.minSize},_configure:function(){var r,a,e=this,t=e.options.ticks.reverse;e.isHorizontal()?(r=e.left,a=e.right):(r=e.top,a=e.bottom,t=!t),e._startPixel=r,e._endPixel=a,e._reversePixels=t,e._length=a-r},afterUpdate:function(){c.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){c.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){c.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){c.callback(this.options.beforeDataLimits,[this])},determineDataLimits:c.noop,afterDataLimits:function(){c.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){c.callback(this.options.beforeBuildTicks,[this])},buildTicks:c.noop,afterBuildTicks:function(e){var t=this;return Ze(e)&&e.length?c.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=c.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){c.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this,t=e.options.ticks;e.ticks=e.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){c.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){c.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var l,s,u,d,f,v,p,e=this,t=e.options,r=t.ticks,a=e.getTicks().length,n=r.minRotation||0,i=r.maxRotation,o=n;!e._isVisible()||!r.display||n>=i||a<=1||!e.isHorizontal()?e.labelRotation=n:(s=(l=e._getLabelSizes()).widest.width,u=l.highest.height-l.highest.offset,d=Math.min(e.maxWidth,e.chart.width-s),s+6>(f=t.offset?e.maxWidth/a:d/(a-1))&&(f=d/(a-(t.offset?.5:1)),v=e.maxHeight-zt(t.gridLines)-r.padding-Vr(t.scaleLabel),p=Math.sqrt(s*s+u*u),o=c.toDegrees(Math.min(Math.asin(Math.min((l.highest.height+6)/f,1)),Math.asin(Math.min(v/p,1))-Math.asin(u/p))),o=Math.max(n,Math.min(i,o))),e.labelRotation=o)},afterCalculateTickRotation:function(){c.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){c.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},r=e.chart,a=e.options,n=a.ticks,i=a.scaleLabel,o=a.gridLines,l=e._isVisible(),s="bottom"===a.position,u=e.isHorizontal();if(u?t.width=e.maxWidth:l&&(t.width=zt(o)+Vr(i)),u?l&&(t.height=zt(o)+Vr(i)):t.height=e.maxHeight,n.display&&l){var d=qr(n),f=e._getLabelSizes(),v=f.first,p=f.last,m=f.widest,y=f.highest,_=.4*d.minor.lineHeight,w=n.padding;if(u){var M=0!==e.labelRotation,k=c.toRadians(e.labelRotation),F=Math.cos(k),O=Math.sin(k);t.height=Math.min(e.maxHeight,t.height+(O*m.width+F*(y.height-(M?y.offset:0))+(M?0:_))+w);var D,K,E=e.getPixelForTick(0)-e.left,j=e.right-e.getPixelForTick(e.getTicks().length-1);M?(D=s?F*v.width+O*v.offset:O*(v.height-v.offset),K=s?O*(p.height-p.offset):F*p.width+O*p.offset):(D=v.width/2,K=p.width/2),e.paddingLeft=Math.max((D-E)*e.width/(e.width-E),0)+3,e.paddingRight=Math.max((K-j)*e.width/(e.width-j),0)+3}else t.width=Math.min(e.maxWidth,t.width+(n.mirror?0:m.width+w+_)),e.paddingTop=v.height/2,e.paddingBottom=p.height/2}e.handleMargins(),u?(e.width=e._length=r.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=r.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){c.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(pt(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var r,a,n,t=this;for(t.ticks=e.map(function(i){return i.value}),t.beforeTickToLabelConversion(),r=t.convertTicksToLabels(e)||t.ticks,t.afterTickToLabelConversion(),a=0,n=e.length;a<n;++a)e[a].label=r[a];return r},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=eo(e.ctx,qr(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,r,a,n;return Ze(e)?(t=+this.getRightValue(e[0]),r=+this.getRightValue(e[1]),a=Math.min(t,r),n=Math.max(t,r)):(t=void 0,r=e=+this.getRightValue(e),a=e,n=e),{min:a,max:n,start:t,end:r}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:c.noop,getPixelForValue:c.noop,getValueForPixel:c.noop,getPixelForTick:function(e){var t=this,r=t.options.offset,a=t._ticks.length,n=1/Math.max(a-(r?0:1),1);return e<0||e>a-1?null:t.getPixelForDecimal(e*n+(r?n/2:0))},getPixelForDecimal:function(e){var t=this;return t._reversePixels&&(e=1-e),t._startPixel+e*t._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,r=e.max;return e.beginAtZero?0:t<0&&r<0?r:t>0&&r>0?t:0},_autoSkip:function(e){var u,d,f,v,t=this,r=t.options.ticks,a=t._length,n=r.maxTicksLimit||a/t._tickSize()+1,i=r.major.enabled?function(e){var r,a,t=[];for(r=0,a=e.length;r<a;r++)e[r].major&&t.push(r);return t}(e):[],o=i.length,l=i[0],s=i[o-1];if(o>n)return function(e,t,r){var i,o,a=0,n=t[0];for(r=Math.ceil(r),i=0;i<e.length;i++)o=e[i],i===n?(o._index=i,n=t[++a*r]):delete o.label}(e,i,o/n),$r(e);if(f=function(e,t,r,a){var o,l,s,u,n=function(e){var r,a,t=e.length;if(t<2)return!1;for(a=e[0],r=1;r<t;++r)if(e[r]-e[r-1]!==a)return!1;return a}(e),i=(t.length-1)/a;if(!n)return Math.max(i,1);for(s=0,u=(o=c.math._factorize(n)).length-1;s<u;s++)if((l=o[s])>i)return l;return Math.max(i,1)}(i,e,0,n),o>0){for(u=0,d=o-1;u<d;u++)lr(e,f,i[u],i[u+1]);return lr(e,f,c.isNullOrUndef(v=o>1?(s-l)/(o-1):null)?0:l-v,l),lr(e,f,s,c.isNullOrUndef(v)?e.length:s+v),$r(e)}return lr(e,f),$r(e)},_tickSize:function(){var e=this,t=e.options.ticks,r=c.toRadians(e.labelRotation),a=Math.abs(Math.cos(r)),n=Math.abs(Math.sin(r)),i=e._getLabelSizes(),o=t.autoSkipPadding||0,l=i?i.widest.width+o:0,s=i?i.highest.height+o:0;return e.isHorizontal()?s*a>l*n?l/a:s/n:s*n<l*a?s/a:l/n},_isVisible:function(){var a,n,i,e=this,t=e.chart,r=e.options.display;if("auto"!==r)return!!r;for(a=0,n=t.data.datasets.length;a<n;++a)if(t.isDatasetVisible(a)&&((i=t.getDatasetMeta(a)).xAxisID===e.id||i.yAxisID===e.id))return!0;return!1},_computeGridLineItems:function(e){var _,w,M,k,F,O,N,E,j,D,K,Z,J,ae,_t,xt,Ht,t=this,r=t.chart,a=t.options,n=a.gridLines,i=a.position,o=n.offsetGridLines,l=t.isHorizontal(),s=t._ticksToDraw,u=s.length+(o?1:0),d=zt(n),f=[],v=n.drawBorder?mt(n.lineWidth,0,0):0,p=v/2,m=c._alignPixel,y=function(Cn){return m(r,Cn,v)};for("top"===i?(_=y(t.bottom),N=t.bottom-d,j=_-p,K=y(e.top)+p,J=e.bottom):"bottom"===i?(_=y(t.top),K=e.top,J=y(e.bottom)-p,N=_+p,j=t.top+d):"left"===i?(_=y(t.right),O=t.right-d,E=_-p,D=y(e.left)+p,Z=e.right):(_=y(t.left),D=e.left,Z=y(e.right)-p,O=_+p,E=t.left+d),w=0;w<u;++w)!(pt((M=s[w]||{}).label)&&w<s.length)&&(w===t.zeroLineIndex&&a.offset===o?(ae=n.zeroLineWidth,_t=n.zeroLineColor,xt=n.zeroLineBorderDash||[],Ht=n.zeroLineBorderDashOffset||0):(ae=mt(n.lineWidth,w,1),_t=mt(n.color,w,"rgba(0,0,0,0.1)"),xt=n.borderDash||[],Ht=n.borderDashOffset||0),void 0!==(k=Zi(t,M._index||w,o))&&(F=m(r,k,ae),l?O=E=D=Z=F:N=j=K=J=F,f.push({tx1:O,ty1:N,tx2:E,ty2:j,x1:D,y1:K,x2:Z,y2:J,width:ae,color:_t,borderDash:xt,borderDashOffset:Ht})));return f.ticksLength=u,f.borderValue=_,f},_computeLabelItems:function(){var v,p,m,y,_,w,M,k,F,O,N,E,e=this,t=e.options,r=t.ticks,a=t.position,n=r.mirror,i=e.isHorizontal(),o=e._ticksToDraw,l=qr(r),s=r.padding,u=zt(t.gridLines),d=-c.toRadians(e.labelRotation),f=[];for("top"===a?(w=e.bottom-u-s,M=d?"left":"center"):"bottom"===a?(w=e.top+u+s,M=d?"right":"center"):"left"===a?(_=e.right-(n?0:u)-s,M=n?"left":"right"):(_=e.left+(n?0:u)+s,M=n?"right":"left"),v=0,p=o.length;v<p;++v)!pt(y=(m=o[v]).label)&&(k=e.getPixelForTick(m._index||v)+r.labelOffset,O=(F=m.major?l.major:l.minor).lineHeight,N=Ze(y)?y.length:1,i?(_=k,E="top"===a?((d?1:.5)-N)*O:(d?0:.5)*O):(w=k,E=(1-N)*O/2),f.push({x:_,y:w,rotation:d,label:y,font:F,textOffset:E,textAlign:M}));return f},_drawGrid:function(e){var t=this,r=t.options.gridLines;if(r.display){var s,u,d,f,v,a=t.ctx,n=t.chart,i=c._alignPixel,o=r.drawBorder?mt(r.lineWidth,0,0):0,l=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(d=0,f=l.length;d<f;++d)u=(v=l[d]).color,(s=v.width)&&u&&(a.save(),a.lineWidth=s,a.strokeStyle=u,a.setLineDash&&(a.setLineDash(v.borderDash),a.lineDashOffset=v.borderDashOffset),a.beginPath(),r.drawTicks&&(a.moveTo(v.tx1,v.ty1),a.lineTo(v.tx2,v.ty2)),r.drawOnChartArea&&(a.moveTo(v.x1,v.y1),a.lineTo(v.x2,v.y2)),a.stroke(),a.restore());if(o){var _,w,M,k,p=o,m=mt(r.lineWidth,l.ticksLength-1,1),y=l.borderValue;t.isHorizontal()?(_=i(n,t.left,p)-p/2,w=i(n,t.right,m)+m/2,M=k=y):(M=i(n,t.top,p)-p/2,k=i(n,t.bottom,m)+m/2,_=w=y),a.lineWidth=o,a.strokeStyle=mt(r.color,0),a.beginPath(),a.moveTo(_,M),a.lineTo(w,k),a.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var n,i,o,l,s,u,d,f,r=e.ctx,a=e._labelItems||(e._labelItems=e._computeLabelItems());for(n=0,o=a.length;n<o;++n){if(u=(s=a[n]).font,r.save(),r.translate(s.x,s.y),r.rotate(s.rotation),r.font=u.string,r.fillStyle=u.color,r.textBaseline="middle",r.textAlign=s.textAlign,f=s.textOffset,Ze(d=s.label))for(i=0,l=d.length;i<l;++i)r.fillText(""+d[i],0,f),f+=u.lineHeight;else r.fillText(d,0,f);r.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,r=e.options,a=r.scaleLabel;if(a.display){var d,f,n=We(a.fontColor,T.global.defaultFontColor),i=c.options._parseFont(a),o=c.options.toPadding(a.padding),l=i.lineHeight/2,s=r.position,u=0;if(e.isHorizontal())d=e.left+e.width/2,f="bottom"===s?e.bottom-l-o.bottom:e.top+l+o.top;else{var v="left"===s;d=v?e.left+l+o.top:e.right-l-o.top,f=e.top+e.height/2,u=v?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(d,f),t.rotate(u),t.textAlign="center",t.textBaseline="middle",t.fillStyle=n,t.font=i.string,t.fillText(a.labelString,0,0),t.restore()}},draw:function(e){var t=this;!t._isVisible()||(t._drawGrid(e),t._drawTitle(),t._drawLabels())},_layers:function(){var e=this,t=e.options,r=t.ticks&&t.ticks.z||0,a=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&r!==a&&e.draw===e._draw?[{z:a,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:r,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:r,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,r=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter(function(a){return(!e||a.type===e)&&(r?a.xAxisID===t.id:a.yAxisID===t.id)})}});Gr.prototype._draw=Gr.prototype.draw;var oe=Gr,Kr=c.isNullOrUndef,tn=oe.extend({determineDataLimits:function(){var l,e=this,t=e._getLabels(),r=e.options.ticks,a=r.min,n=r.max,i=0,o=t.length-1;void 0!==a&&(l=t.indexOf(a))>=0&&(i=l),void 0!==n&&(l=t.indexOf(n))>=0&&(o=l),e.minIndex=i,e.maxIndex=o,e.min=t[i],e.max=t[o]},buildTicks:function(){var e=this,t=e._getLabels(),r=e.minIndex,a=e.maxIndex;e.ticks=0===r&&a===t.length-1?t:t.slice(r,a+1)},getLabelForIndex:function(e,t){var r=this,a=r.chart;return a.getDatasetMeta(t).controller._getValueScaleId()===r.id?r.getRightValue(a.data.datasets[t].data[e]):r._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,r=e.ticks;oe.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),r&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(r.length-(t?0:1),1))},getPixelForValue:function(e,t,r){var n,i,o,a=this;return!Kr(t)&&!Kr(r)&&(e=a.chart.data.datasets[r].data[t]),Kr(e)||(n=a.isHorizontal()?e.x:e.y),(void 0!==n||void 0!==e&&isNaN(t))&&(i=a._getLabels(),e=c.valueOrDefault(n,e),t=-1!==(o=i.indexOf(e))?o:t,isNaN(t)&&(t=e)),a.getPixelForDecimal((t-a._startValue)/a._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=this,r=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(r,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}});tn._defaults={position:"bottom"};var Qe=c.isNullOrUndef;var ur=oe.extend({getRightValue:function(e){return"string"==typeof e?+e:oe.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,r=e.options.ticks;if(r.beginAtZero){var a=c.sign(e.min),n=c.sign(e.max);a<0&&n<0?e.max=0:a>0&&n>0&&(e.min=0)}var i=void 0!==r.min||void 0!==r.suggestedMin,o=void 0!==r.max||void 0!==r.suggestedMax;void 0!==r.min?e.min=r.min:void 0!==r.suggestedMin&&(e.min=null===e.min?r.suggestedMin:Math.min(e.min,r.suggestedMin)),void 0!==r.max?e.max=r.max:void 0!==r.suggestedMax&&(e.max=null===e.max?r.suggestedMax:Math.max(e.max,r.suggestedMax)),i!==o&&e.min>=e.max&&(i?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,r.beginAtZero||e.min--)},getTickLimit:function(){var n,e=this,t=e.options.ticks,r=t.stepSize,a=t.maxTicksLimit;return r?n=Math.ceil(e.max/r)-Math.floor(e.min/r)+1:(n=e._computeTickLimit(),a=a||11),a&&(n=Math.min(a,n)),n},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:c.noop,buildTicks:function(){var e=this,r=e.options.ticks,a=e.getTickLimit(),n={maxTicks:a=Math.max(2,a),min:r.min,max:r.max,precision:r.precision,stepSize:c.valueOrDefault(r.fixedStepSize,r.stepSize)},i=e.ticks=function(e,t){var p,m,y,_,r=[],n=e.stepSize,i=n||1,o=e.maxTicks-1,l=e.min,s=e.max,u=e.precision,d=t.min,f=t.max,v=c.niceNum((f-d)/o/i)*i;if(v<1e-14&&Qe(l)&&Qe(s))return[d,f];(_=Math.ceil(f/v)-Math.floor(d/v))>o&&(v=c.niceNum(_*v/o/i)*i),n||Qe(u)?p=Math.pow(10,c._decimalPlaces(v)):(p=Math.pow(10,u),v=Math.ceil(v*p)/p),m=Math.floor(d/v)*v,y=Math.ceil(f/v)*v,n&&(!Qe(l)&&c.almostWhole(l/v,v/1e3)&&(m=l),!Qe(s)&&c.almostWhole(s/v,v/1e3)&&(y=s)),_=c.almostEquals(_=(y-m)/v,Math.round(_),v/1e3)?Math.round(_):Math.ceil(_),m=Math.round(m*p)/p,y=Math.round(y*p)/p,r.push(Qe(l)?m:l);for(var w=1;w<_;++w)r.push(Math.round((m+w*v)*p)/p);return r.push(Qe(s)?y:s),r}(n,e);e.handleDirectionalChanges(),e.max=c.max(i),e.min=c.min(i),r.reverse?(i.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),oe.prototype.convertTicksToLabels.call(e)},_configure:function(){var n,e=this,t=e.getTicks(),r=e.min,a=e.max;oe.prototype._configure.call(e),e.options.offset&&t.length&&(r-=n=(a-r)/Math.max(t.length-1,1)/2,a+=n),e._startValue=r,e._endValue=a,e._valueRange=a-r}}),an={position:"left",ticks:{callback:gt.formatters.linear}};function lo(e,t,r,a){var d,f,n=e.options,o=function(e,t,r){var a=[r.type,void 0===t&&void 0===r.stack?r.index:"",r.stack].join(".");return void 0===e[a]&&(e[a]={pos:[],neg:[]}),e[a]}(t,n.stacked,r),l=o.pos,s=o.neg,u=a.length;for(d=0;d<u;++d)f=e._parseValue(a[d]),!(isNaN(f.min)||isNaN(f.max)||r.data[d].hidden)&&(l[d]=l[d]||0,s[d]=s[d]||0,n.relativePoints?l[d]=100:f.min<0||f.max<0?s[d]+=f.min:l[d]+=f.max)}function uo(e,t,r){var n,i,a=r.length;for(n=0;n<a;++n)i=e._parseValue(r[n]),!(isNaN(i.min)||isNaN(i.max)||t.data[n].hidden)&&(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}var dr=ur.extend({determineDataLimits:function(){var s,u,d,f,e=this,t=e.options,a=e.chart.data.datasets,n=e._getMatchingVisibleMetas(),i=t.stacked,o={},l=n.length;if(e.min=Number.POSITIVE_INFINITY,e.max=Number.NEGATIVE_INFINITY,void 0===i)for(s=0;!i&&s<l;++s)i=void 0!==(u=n[s]).stack;for(s=0;s<l;++s)d=a[(u=n[s]).index].data,i?lo(e,o,u,d):uo(e,u,d);c.each(o,function(v){f=v.pos.concat(v.neg),e.min=Math.min(e.min,c.min(f)),e.max=Math.max(e.max,c.max(f))}),e.min=c.isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=c.isFinite(e.max)&&!isNaN(e.max)?e.max:1,e.handleTickRangeOptions()},_computeTickLimit:function(){var t,e=this;return e.isHorizontal()?Math.ceil(e.width/40):(t=c.options._parseFont(e.options.ticks),Math.ceil(e.height/t.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this;return t.getPixelForDecimal((+t.getRightValue(e)-t._startValue)/t._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}});dr._defaults=an;var jt=c.valueOrDefault,he=c.math.log10;var ho={position:"left",ticks:{callback:gt.formatters.logarithmic}};function bt(e,t){return c.isFinite(e)&&e>=0?e:t}var Jr=oe.extend({determineDataLimits:function(){var o,l,s,u,d,f,e=this,t=e.options,r=e.chart,a=r.data.datasets,n=e.isHorizontal();function i(_){return n?_.xAxisID===e.id:_.yAxisID===e.id}e.min=Number.POSITIVE_INFINITY,e.max=Number.NEGATIVE_INFINITY,e.minNotZero=Number.POSITIVE_INFINITY;var v=t.stacked;if(void 0===v)for(o=0;o<a.length;o++)if(l=r.getDatasetMeta(o),r.isDatasetVisible(o)&&i(l)&&void 0!==l.stack){v=!0;break}if(t.stacked||v){var p={};for(o=0;o<a.length;o++){var m=[(l=r.getDatasetMeta(o)).type,void 0===t.stacked&&void 0===l.stack?o:"",l.stack].join(".");if(r.isDatasetVisible(o)&&i(l))for(void 0===p[m]&&(p[m]=[]),d=0,f=(u=a[o].data).length;d<f;d++){var y=p[m];s=e._parseValue(u[d]),!(isNaN(s.min)||isNaN(s.max)||l.data[d].hidden||s.min<0||s.max<0)&&(y[d]=y[d]||0,y[d]+=s.max)}}c.each(p,function(_){if(_.length>0){var w=c.min(_),M=c.max(_);e.min=Math.min(e.min,w),e.max=Math.max(e.max,M)}})}else for(o=0;o<a.length;o++)if(l=r.getDatasetMeta(o),r.isDatasetVisible(o)&&i(l))for(d=0,f=(u=a[o].data).length;d<f;d++)s=e._parseValue(u[d]),!(isNaN(s.min)||isNaN(s.max)||l.data[d].hidden||s.min<0||s.max<0)&&(e.min=Math.min(s.min,e.min),e.max=Math.max(s.max,e.max),0!==s.min&&(e.minNotZero=Math.min(s.min,e.minNotZero)));e.min=c.isFinite(e.min)?e.min:null,e.max=c.isFinite(e.max)?e.max:null,e.minNotZero=c.isFinite(e.minNotZero)?e.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=bt(t.min,e.min),e.max=bt(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(he(e.min))-1),e.max=Math.pow(10,Math.floor(he(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(he(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(he(e.min))+1):10),null===e.minNotZero&&(e.minNotZero=e.min>0?e.min:e.max<1?Math.pow(10,Math.floor(he(e.max))):1)},buildTicks:function(){var e=this,t=e.options.ticks,r=!e.isHorizontal(),a={min:bt(t.min),max:bt(t.max)},n=e.ticks=function(e,t){var o,l,r=[],a=jt(e.min,Math.pow(10,Math.floor(he(t.min)))),n=Math.floor(he(t.max)),i=Math.ceil(t.max/Math.pow(10,n));0===a?(o=Math.floor(he(t.minNotZero)),l=Math.floor(t.minNotZero/Math.pow(10,o)),r.push(a),a=l*Math.pow(10,o)):(o=Math.floor(he(a)),l=Math.floor(a/Math.pow(10,o)));var s=o<0?Math.pow(10,Math.abs(o)):1;do{r.push(a),10==++l&&(l=1,s=++o>=0?1:s),a=Math.round(l*Math.pow(10,o)*s)/s}while(o<n||o===n&&l<i);var u=jt(e.max,a);return r.push(u),r}(a,e);e.max=c.max(n),e.min=c.min(n),t.reverse?(r=!r,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),r&&n.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),oe.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(he(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,r=0;oe.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),r=jt(e.options.ticks.fontSize,T.global.defaultFontSize)/e._length),e._startValue=he(t),e._valueOffset=r,e._valueRange=(he(e.max)-he(t))/(1-r)},getPixelForValue:function(e){var t=this,r=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(r=(he(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(r)},getValueForPixel:function(e){var t=this,r=t.getDecimalForPixel(e);return 0===r&&0===t.min?0:Math.pow(10,t._startValue+(r-t._valueOffset)*t._valueRange)}});Jr._defaults=ho;var Wt=c.valueOrDefault,fr=c.valueAtIndexOrDefault,Zr=c.options.resolve,nn={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:gt.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Qr(e){var t=e.ticks;return t.display&&e.display?Wt(t.fontSize,T.global.defaultFontSize)+2*t.backdropPaddingY:0}function vo(e,t,r){return c.isArray(r)?{w:c.longestText(e,e.font,r),h:r.length*t}:{w:e.measureText(r).width,h:t}}function on(e,t,r,a,n){return e===a||e===n?{start:t-r/2,end:t+r/2}:e<a||e>n?{start:t-r,end:t}:{start:t,end:t+r}}function po(e){return 0===e||180===e?"center":e<180?"left":"right"}function et(e,t,r,a){var i,o,n=r.y+a/2;if(c.isArray(t))for(i=0,o=t.length;i<o;++i)e.fillText(t[i],r.x,n),n+=a;else e.fillText(t,r.x,n)}function ea(e,t,r){90===e||270===e?r.y-=t.h/2:(e>270||e<90)&&(r.y-=t.h)}function hr(e){return c.isNumber(e)?e:0}var sn=ur.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Qr(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,r=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;c.each(t.data.datasets,function(n,i){if(t.isDatasetVisible(i)){var o=t.getDatasetMeta(i);c.each(n.data,function(l,s){var u=+e.getRightValue(l);isNaN(u)||o.data[s].hidden||(r=Math.min(u,r),a=Math.max(u,a))})}}),e.min=r===Number.POSITIVE_INFINITY?0:r,e.max=a===Number.NEGATIVE_INFINITY?0:a,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Qr(this.options))},convertTicksToLabels:function(){var e=this;ur.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(function(){var t=c.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""})},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this,t=e.options;t.display&&t.pointLabels.display?function(e){var n,i,o,t=c.options._parseFont(e.options.pointLabels),r={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={};e.ctx.font=t.string,e._pointLabelSizes=[];var l=e.chart.data.labels.length;for(n=0;n<l;n++){o=e.getPointPosition(n,e.drawingArea+5),i=vo(e.ctx,t.lineHeight,e.pointLabels[n]),e._pointLabelSizes[n]=i;var s=e.getIndexAngle(n),u=c.toDegrees(s)%360,d=on(u,o.x,i.w,0,180),f=on(u,o.y,i.h,90,270);d.start<r.l&&(r.l=d.start,a.l=s),d.end>r.r&&(r.r=d.end,a.r=s),f.start<r.t&&(r.t=f.start,a.t=s),f.end>r.b&&(r.b=f.end,a.b=s)}e.setReductions(e.drawingArea,r,a)}(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,t,r){var a=this,n=t.l/Math.sin(r.l),i=Math.max(t.r-a.width,0)/Math.sin(r.r),o=-t.t/Math.cos(r.t),l=-Math.max(t.b-(a.height-a.paddingTop),0)/Math.cos(r.b);n=hr(n),i=hr(i),o=hr(o),l=hr(l),a.drawingArea=Math.min(Math.floor(e-(n+i)/2),Math.floor(e-(o+l)/2)),a.setCenterPoint(n,i,o,l)},setCenterPoint:function(e,t,r,a){var n=this,l=r+n.drawingArea,s=n.height-n.paddingTop-a-n.drawingArea;n.xCenter=Math.floor((e+n.drawingArea+(n.width-t-n.drawingArea))/2+n.left),n.yCenter=Math.floor((l+s)/2+n.top+n.paddingTop)},getIndexAngle:function(e){var t=this.chart,i=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(i<0?i+360:i)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(c.isNullOrUndef(e))return NaN;var r=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*r:(e-t.min)*r},getPointPosition:function(e,t){var r=this,a=r.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(a)*t+r.xCenter,y:Math.sin(a)*t+r.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this,r=t.min,a=t.max;return t.getPointPositionForValue(e||0,t.beginAtZero?0:r<0&&a<0?a:r>0&&a>0?r:0)},_drawGrid:function(){var l,s,u,e=this,t=e.ctx,r=e.options,a=r.gridLines,n=r.angleLines,i=Wt(n.lineWidth,a.lineWidth),o=Wt(n.color,a.color);if(r.pointLabels.display&&function(e){var t=e.ctx,r=e.options,a=r.pointLabels,n=Qr(r),i=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),o=c.options._parseFont(a);t.save(),t.font=o.string,t.textBaseline="middle";for(var l=e.chart.data.labels.length-1;l>=0;l--){var u=e.getPointPosition(l,i+(0===l?n/2:0)+5),d=fr(a.fontColor,l,T.global.defaultFontColor);t.fillStyle=d;var f=e.getIndexAngle(l),v=c.toDegrees(f);t.textAlign=po(v),ea(v,e._pointLabelSizes[l],u),et(t,e.pointLabels[l],u,o.lineHeight)}t.restore()}(e),a.display&&c.each(e.ticks,function(d,f){0!==f&&(s=e.getDistanceFromCenterForValue(e.ticksAsNumbers[f]),function(e,t,r,a){var u,n=e.ctx,i=t.circular,o=e.chart.data.labels.length,l=fr(t.color,a-1),s=fr(t.lineWidth,a-1);if((i||o)&&l&&s){if(n.save(),n.strokeStyle=l,n.lineWidth=s,n.setLineDash&&(n.setLineDash(t.borderDash||[]),n.lineDashOffset=t.borderDashOffset||0),n.beginPath(),i)n.arc(e.xCenter,e.yCenter,r,0,2*Math.PI);else{u=e.getPointPosition(0,r),n.moveTo(u.x,u.y);for(var d=1;d<o;d++)u=e.getPointPosition(d,r),n.lineTo(u.x,u.y)}n.closePath(),n.stroke(),n.restore()}}(e,a,s,f))}),n.display&&i&&o){for(t.save(),t.lineWidth=i,t.strokeStyle=o,t.setLineDash&&(t.setLineDash(Zr([n.borderDash,a.borderDash,[]])),t.lineDashOffset=Zr([n.borderDashOffset,a.borderDashOffset,0])),l=e.chart.data.labels.length-1;l>=0;l--)s=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),u=e.getPointPosition(l,s),t.beginPath(),t.moveTo(e.xCenter,e.yCenter),t.lineTo(u.x,u.y),t.stroke();t.restore()}},_drawLabels:function(){var e=this,t=e.ctx,a=e.options.ticks;if(a.display){var l,s,n=e.getIndexAngle(0),i=c.options._parseFont(a),o=Wt(a.fontColor,T.global.defaultFontColor);t.save(),t.font=i.string,t.translate(e.xCenter,e.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",c.each(e.ticks,function(u,d){0===d&&!a.reverse||(l=e.getDistanceFromCenterForValue(e.ticksAsNumbers[d]),a.showLabelBackdrop&&(s=t.measureText(u).width,t.fillStyle=a.backdropColor,t.fillRect(-s/2-a.backdropPaddingX,-l-i.size/2-a.backdropPaddingY,s+2*a.backdropPaddingX,i.size+2*a.backdropPaddingY)),t.fillStyle=o,t.fillText(u,0,-l))}),t.restore()}},_drawTitle:c.noop});sn._defaults=nn;var cr=c._deprecated,ln=c.options.resolve,ta=c.valueOrDefault,un=Number.MIN_SAFE_INTEGER||-9007199254740991,ra=Number.MAX_SAFE_INTEGER||9007199254740991,vr={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}},ce=Object.keys(vr);function dn(e,t){return e-t}function aa(e){return c.valueOrDefault(e.time.min,e.ticks.min)}function hn(e){return c.valueOrDefault(e.time.max,e.ticks.max)}function yt(e,t,r,a){var n=function(e,t,r){for(var i,o,l,a=0,n=e.length-1;a>=0&&a<=n;){if(l=e[i=a+n>>1],!(o=e[i-1]||null))return{lo:null,hi:l};if(l[t]<r)a=i+1;else{if(!(o[t]>r))return{lo:o,hi:l};n=i-1}}return{lo:l,hi:null}}(e,t,r),i=n.lo?n.hi?n.lo:e[e.length-2]:e[0],o=n.lo?n.hi?n.hi:e[e.length-1]:e[1],l=o[t]-i[t];return i[a]+(o[a]-i[a])*(l?(r-i[t])/l:0)}function na(e,t){var r=e._adapter,a=e.options.time,n=a.parser,i=n||a.format,o=t;return"function"==typeof n&&(o=n(o)),c.isFinite(o)||(o="string"==typeof i?r.parse(o,i):r.parse(o)),null!==o?+o:(!n&&"function"==typeof i&&(o=i(t),c.isFinite(o)||(o=r.parse(o))),o)}function tt(e,t){if(c.isNullOrUndef(t))return null;var r=e.options.time,a=na(e,e.getRightValue(t));return null===a||r.round&&(a=+e._adapter.startOf(a,r.round)),a}function cn(e,t,r,a){var i,o,n=ce.length;for(i=ce.indexOf(e);i<n-1;++i)if((o=vr[ce[i]]).common&&Math.ceil((r-t)/((o.steps?o.steps:ra)*o.size))<=a)return ce[i];return ce[n-1]}function vn(e,t,r){var o,l,a=[],n={},i=t.length;for(o=0;o<i;++o)n[l=t[o]]=o,a.push({value:l,major:!1});return 0!==i&&r?function(e,t,r,a){var l,s,n=e._adapter,i=+n.startOf(t[0].value,a),o=t[t.length-1].value;for(l=i;l<=o;l=+n.add(l,1,a))(s=r[l])>=0&&(t[s].major=!0);return t}(e,a,n,r):a}var gn=oe.extend({initialize:function(){this.mergeTicksOptions(),oe.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,r=t.time||(t.time={}),a=e._adapter=new sr._date(t.adapters.date);return cr("time scale",r.format,"time.format","time.parser"),cr("time scale",r.min,"time.min","ticks.min"),cr("time scale",r.max,"time.max","ticks.max"),c.mergeIf(r.displayFormats,a.formats()),oe.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),oe.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var d,f,v,p,m,y,_,e=this,t=e.chart,r=e._adapter,a=e.options,n=a.time.unit||"day",i=ra,o=un,l=[],s=[],u=[],w=e._getLabels();for(d=0,v=w.length;d<v;++d)u.push(tt(e,w[d]));for(d=0,v=(t.data.datasets||[]).length;d<v;++d)if(t.isDatasetVisible(d))if(c.isObject((m=t.data.datasets[d].data)[0]))for(s[d]=[],f=0,p=m.length;f<p;++f)y=tt(e,m[f]),l.push(y),s[d][f]=y;else s[d]=u.slice(0),_||(l=l.concat(u),_=!0);else s[d]=[];u.length&&(i=Math.min(i,u[0]),o=Math.max(o,u[u.length-1])),l.length&&(l=v>1?function(e){var a,n,i,t={},r=[];for(a=0,n=e.length;a<n;++a)t[i=e[a]]||(t[i]=!0,r.push(i));return r}(l).sort(dn):l.sort(dn),i=Math.min(i,l[0]),o=Math.max(o,l[l.length-1])),i=tt(e,aa(a))||i,o=tt(e,hn(a))||o,i=i===ra?+r.startOf(Date.now(),n):i,o=o===un?+r.endOf(Date.now(),n)+1:o,e.min=Math.min(i,o),e.max=Math.max(i+1,o),e._table=[],e._timestamps={data:l,datasets:s,labels:u}},buildTicks:function(){var f,v,p,e=this,t=e.min,r=e.max,a=e.options,n=a.ticks,i=a.time,o=e._timestamps,l=[],s=e.getLabelCapacity(t),u=n.source,d=a.distribution;for(o="data"===u||"auto"===u&&"series"===d?o.data:"labels"===u?o.labels:function(e,t,r,a){var v,n=e._adapter,i=e.options,o=i.time,l=o.unit||cn(o.minUnit,t,r,a),s=ln([o.stepSize,o.unitStepSize,1]),u="week"===l&&o.isoWeekday,d=t,f=[];if(u&&(d=+n.startOf(d,"isoWeek",u)),d=+n.startOf(d,u?"day":l),n.diff(r,t,l)>1e5*s)throw t+" and "+r+" are too far apart with stepSize of "+s+" "+l;for(v=d;v<r;v=+n.add(v,s,l))f.push(v);return(v===r||"ticks"===i.bounds)&&f.push(v),f}(e,t,r,s),"ticks"===a.bounds&&o.length&&(t=o[0],r=o[o.length-1]),t=tt(e,aa(a))||t,r=tt(e,hn(a))||r,f=0,v=o.length;f<v;++f)(p=o[f])>=t&&p<=r&&l.push(p);return e.min=t,e.max=r,e._unit=i.unit||(n.autoSkip?cn(i.minUnit,e.min,e.max,s):function(e,t,r,a,n){var i,o;for(i=ce.length-1;i>=ce.indexOf(r);i--)if(vr[o=ce[i]].common&&e._adapter.diff(n,a,o)>=t-1)return o;return ce[r?ce.indexOf(r):0]}(e,l.length,i.minUnit,e.min,e.max)),e._majorUnit=n.major.enabled&&"year"!==e._unit?function(e){for(var t=ce.indexOf(e)+1,r=ce.length;t<r;++t)if(vr[ce[t]].common)return ce[t]}(e._unit):void 0,e._table=function(e,t,r,a){if("linear"===a||!e.length)return[{time:t,pos:0},{time:r,pos:1}];var o,l,s,u,d,n=[],i=[t];for(o=0,l=e.length;o<l;++o)(u=e[o])>t&&u<r&&i.push(u);for(i.push(r),o=0,l=i.length;o<l;++o)d=i[o+1],u=i[o],(void 0===(s=i[o-1])||void 0===d||Math.round((d+s)/2)!==u)&&n.push({time:u,pos:o/(l-1)});return n}(e._timestamps.data,t,r,d),e._offsets=function(e,t,r,a,n){var l,s,i=0,o=0;return n.offset&&t.length&&(l=yt(e,"time",t[0],"pos"),i=1===t.length?1-l:(yt(e,"time",t[1],"pos")-l)/2,s=yt(e,"time",t[t.length-1],"pos"),o=1===t.length?s:(s-yt(e,"time",t[t.length-2],"pos"))/2),{start:i,end:o,factor:1/(i+1+o)}}(e._table,l,0,0,a),n.reverse&&l.reverse(),vn(e,l,e._majorUnit)},getLabelForIndex:function(e,t){var r=this,a=r._adapter,n=r.chart.data,i=r.options.time,o=n.labels&&e<n.labels.length?n.labels[e]:"",l=n.datasets[t].data[e];return c.isObject(l)&&(o=r.getRightValue(l)),i.tooltipFormat?a.format(na(r,o),i.tooltipFormat):"string"==typeof o?o:a.format(na(r,o),i.displayFormats.datetime)},tickFormatFunction:function(e,t,r,a){var n=this,o=n.options,l=o.time.displayFormats,u=n._majorUnit,d=l[u],f=r[t],v=o.ticks,p=u&&d&&f&&f.major,m=n._adapter.format(e,a||(p?d:l[n._unit])),y=p?v.major:v.minor,_=ln([y.callback,y.userCallback,v.callback,v.userCallback]);return _?_(m,t,r):m},convertTicksToLabels:function(e){var r,a,t=[];for(r=0,a=e.length;r<a;++r)t.push(this.tickFormatFunction(e[r].value,r,e));return t},getPixelForOffset:function(e){var t=this,r=t._offsets,a=yt(t._table,"time",e,"pos");return t.getPixelForDecimal((r.start+a)*r.factor)},getPixelForValue:function(e,t,r){var a=this,n=null;if(void 0!==t&&void 0!==r&&(n=a._timestamps.datasets[r][t]),null===n&&(n=tt(a,e)),null!==n)return a.getPixelForOffset(n)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,r=t._offsets,a=t.getDecimalForPixel(e)/r.factor-r.end,n=yt(t._table,"pos",a,"time");return t._adapter._create(n)},_getLabelSize:function(e){var t=this,r=t.options.ticks,a=t.ctx.measureText(e).width,n=c.toRadians(t.isHorizontal()?r.maxRotation:r.minRotation),i=Math.cos(n),o=Math.sin(n),l=ta(r.fontSize,T.global.defaultFontSize);return{w:a*i+l*o,h:a*o+l*i}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,r=t.options.time,a=r.displayFormats,n=a[r.unit]||a.millisecond,i=t.tickFormatFunction(e,0,vn(t,[e],t._majorUnit),n),o=t._getLabelSize(i),l=Math.floor(t.isHorizontal()?t.width/o.w:t.height/o.h);return t.options.offset&&l--,l>0?l:1}});gn._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 Do={category:tn,linear:dr,logarithmic:Jr,radialLinear:sn,time:gn},Po={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"};sr._date.override("function"==typeof V?{_id:"moment",formats:function(){return Po},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=V(e,t):e instanceof V||(e=V(e)),e.isValid()?e.valueOf():null},format:function(e,t){return V(e).format(t)},add:function(e,t,r){return V(e).add(t,r).valueOf()},diff:function(e,t,r){return V(e).diff(V(t),r)},startOf:function(e,t,r){return e=V(e),"isoWeek"===t?e.isoWeekday(r).valueOf():e.startOf(t).valueOf()},endOf:function(e,t){return V(e).endOf(t).valueOf()},_create:function(e){return V(e)}}:{}),T._set("global",{plugins:{filler:{propagate:!0}}});var Oo={dataset:function(e){var t=e.fill,r=e.chart,a=r.getDatasetMeta(t),i=a&&r.isDatasetVisible(t)&&a.dataset._children||[],o=i.length||0;return o?function(l,s){return s<o&&i[s]._view||null}:null},boundary:function(e){var t=e.boundary,r=t?t.x:null,a=t?t.y:null;return c.isArray(t)?function(n,i){return t[i]}:function(n){return{x:null===r?n.x:r,y:null===a?n.y:a}}}};function Fo(e,t,r){var i,a=e._model||{},n=a.fill;if(void 0===n&&(n=!!a.backgroundColor),!1===n||null===n)return!1;if(!0===n)return"origin";if(i=parseFloat(n,10),isFinite(i)&&Math.floor(i)===i)return("-"===n[0]||"+"===n[0])&&(i=t+i),!(i===t||i<0||i>=r)&&i;switch(n){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return n;default:return!1}}function Bo(e){return(e.el._scale||{}).getPointPositionForValue?function(e){var o,l,s,u,d,t=e.el._scale,r=t.options,a=t.chart.data.labels.length,n=e.fill,i=[];if(!a)return null;for(l=r.ticks.reverse?t.min:t.max,s=t.getPointPositionForValue(0,o=r.ticks.reverse?t.max:t.min),u=0;u<a;++u)d="start"===n||"end"===n?t.getPointPositionForValue(u,"start"===n?o:l):t.getBasePosition(u),r.gridLines.circular&&(d.cx=s.x,d.cy=s.y,d.angle=t.getIndexAngle(u)-Math.PI/2),i.push(d);return i}(e):function(e){var i,t=e.el._model||{},r=e.el._scale||{},a=e.fill,n=null;if(isFinite(a))return null;if("start"===a?n=void 0===t.scaleBottom?r.bottom:t.scaleBottom:"end"===a?n=void 0===t.scaleTop?r.top:t.scaleTop:void 0!==t.scaleZero?n=t.scaleZero:r.getBasePixel&&(n=r.getBasePixel()),null!=n){if(void 0!==n.x&&void 0!==n.y)return n;if(c.isFinite(n))return{x:(i=r.isHorizontal())?n:null,y:i?null:n}}return null}(e)}function Ro(e,t,r){var o,n=e[t].fill,i=[t];if(!r)return n;for(;!1!==n&&-1===i.indexOf(n);){if(!isFinite(n))return n;if(!(o=e[n]))return!1;if(o.visible)return n;i.push(n),n=o.fill}return!1}function Eo(e){var t=e.fill,r="dataset";return!1===t?null:(isFinite(t)||(r="boundary"),Oo[r](e))}function ia(e){return e&&!e.skip}function pn(e,t,r,a,n){var i,o,l,s;if(a&&n){for(e.moveTo(t[0].x,t[0].y),i=1;i<a;++i)c.canvas.lineTo(e,t[i-1],t[i]);if(void 0!==r[0].angle){for(o=r[0].cx,l=r[0].cy,s=Math.sqrt(Math.pow(r[0].x-o,2)+Math.pow(r[0].y-l,2)),i=n-1;i>0;--i)e.arc(o,l,s,r[i].angle,r[i-1].angle,!0);return}for(e.lineTo(r[n-1].x,r[n-1].y),i=n-1;i>0;--i)c.canvas.lineTo(e,r[i],r[i-1],!0)}}function No(e,t,r,a,n,i){var v,p,m,y,_,w,M,k,o=t.length,l=a.spanGaps,s=[],u=[],d=0,f=0;for(e.beginPath(),v=0,p=o;v<p;++v)_=r(y=t[m=v%o]._view,m,a),w=ia(y),M=ia(_),i&&void 0===k&&w&&(p=o+(k=v+1)),w&&M?(d=s.push(y),f=u.push(_)):d&&f&&(l?(w&&s.push(y),M&&u.push(_)):(pn(e,s,u,d,f),d=f=0,s=[],u=[]));pn(e,s,u,d,f),e.closePath(),e.fillStyle=n,e.fill()}var zo={id:"filler",afterDatasetsUpdate:function(e,t){var i,o,l,s,r=(e.data.datasets||[]).length,a=t.propagate,n=[];for(o=0;o<r;++o)s=null,(l=(i=e.getDatasetMeta(o)).dataset)&&l._model&&l instanceof fe.Line&&(s={visible:e.isDatasetVisible(o),fill:Fo(l,o,r),chart:e,el:l}),i.$filler=s,n.push(s);for(o=0;o<r;++o)(s=n[o])&&(s.fill=Ro(n,o,a),s.boundary=Bo(s),s.mapper=Eo(s))},beforeDatasetsDraw:function(e){var a,n,i,o,l,s,u,t=e._getSortedVisibleDatasetMetas(),r=e.ctx;for(n=t.length-1;n>=0;--n)(a=t[n].$filler)&&a.visible&&(l=(i=a.el)._children||[],u=(o=i._view).backgroundColor||T.global.defaultColor,(s=a.mapper)&&u&&l.length&&(c.canvas.clipArea(r,e.chartArea),No(r,l,s,o,u,i._loop),c.canvas.unclipArea(r)))}},jo=c.rtl.getRtlAdapter,He=c.noop,Ve=c.valueOrDefault;function oa(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}T._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var r=t.datasetIndex,a=this.chart,n=a.getDatasetMeta(r);n.hidden=null===n.hidden?!a.data.datasets[r].hidden:null,a.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,r=e.options.legend||{},a=r.labels&&r.labels.usePointStyle;return e._getSortedDatasetMetas().map(function(n){var i=n.controller.getStyle(a?0:void 0);return{text:t[n.index].label,fillStyle:i.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,rotation:i.rotation,datasetIndex:n.index}},this)}}},legendCallback:function(e){var a,n,i,t=document.createElement("ul"),r=e.data.datasets;for(t.setAttribute("class",e.id+"-legend"),a=0,n=r.length;a<n;a++)(i=t.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=r[a].backgroundColor,r[a].label&&i.appendChild(document.createTextNode(r[a].label));return t.outerHTML}});var sa=Ae.extend({initialize:function(e){var t=this;c.extend(t,e),t.legendHitBoxes=[],t._hoveredItem=null,t.doughnutMode=!1},beforeUpdate:He,update:function(e,t,r){var a=this;return a.beforeUpdate(),a.maxWidth=e,a.maxHeight=t,a.margins=r,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeBuildLabels(),a.buildLabels(),a.afterBuildLabels(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:He,beforeSetDimensions:He,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:He,beforeBuildLabels:He,buildLabels:function(){var e=this,t=e.options.labels||{},r=c.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(r=r.filter(function(a){return t.filter(a,e.chart.data)})),e.options.reverse&&r.reverse(),e.legendItems=r},afterBuildLabels:He,beforeFit:He,fit:function(){var e=this,t=e.options,r=t.labels,a=t.display,n=e.ctx,i=c.options._parseFont(r),o=i.size,l=e.legendHitBoxes=[],s=e.minSize,u=e.isHorizontal();if(u?(s.width=e.maxWidth,s.height=a?10:0):(s.width=a?10:0,s.height=e.maxHeight),a){if(n.font=i.string,u){var d=e.lineWidths=[0],f=0;n.textAlign="left",n.textBaseline="middle",c.each(e.legendItems,function(M,k){var O=oa(r,o)+o/2+n.measureText(M.text).width;(0===k||d[d.length-1]+O+2*r.padding>s.width)&&(f+=o+r.padding,d[d.length-(k>0?0:1)]=0),l[k]={left:0,top:0,width:O,height:o},d[d.length-1]+=O+r.padding}),s.height+=f}else{var v=r.padding,p=e.columnWidths=[],m=e.columnHeights=[],y=r.padding,_=0,w=0;c.each(e.legendItems,function(M,k){var O=oa(r,o)+o/2+n.measureText(M.text).width;k>0&&w+o+2*v>s.height&&(y+=_+r.padding,p.push(_),m.push(w),_=0,w=0),_=Math.max(_,O),w+=o+v,l[k]={left:0,top:0,width:O,height:o}}),y+=_,p.push(_),m.push(w),s.width+=y}e.width=s.width,e.height=s.height}else e.width=s.width=e.height=s.height=0},afterFit:He,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,r=t.labels,a=T.global,n=a.defaultColor,i=a.elements.line,o=e.height,l=e.columnHeights,s=e.width,u=e.lineWidths;if(t.display){var y,d=jo(t.rtl,e.left,e.minSize.width),f=e.ctx,v=Ve(r.fontColor,a.defaultFontColor),p=c.options._parseFont(r),m=p.size;f.textAlign=d.textAlign("left"),f.textBaseline="middle",f.lineWidth=.5,f.strokeStyle=v,f.fillStyle=v,f.font=p.string;var _=oa(r,m),w=e.legendHitBoxes,F=function(E,j){switch(t.align){case"start":return r.padding;case"end":return E-j;default:return(E-j+r.padding)/2}},O=e.isHorizontal();y=O?{x:e.left+F(s,u[0]),y:e.top+r.padding,line:0}:{x:e.left+r.padding,y:e.top+F(o,l[0]),line:0},c.rtl.overrideTextDirection(e.ctx,t.textDirection);var N=m+r.padding;c.each(e.legendItems,function(E,j){var D=f.measureText(E.text).width,K=_+m/2+D,Z=y.x,J=y.y;d.setWidth(e.minSize.width),O?j>0&&Z+K+r.padding>e.left+e.minSize.width&&(J=y.y+=N,y.line++,Z=y.x=e.left+F(s,u[y.line])):j>0&&J+N>e.top+e.minSize.height&&(Z=y.x=Z+e.columnWidths[y.line]+r.padding,y.line++,J=y.y=e.top+F(o,l[y.line]));var ae=d.x(Z);(function(E,j,D){if(!(isNaN(_)||_<=0)){f.save();var K=Ve(D.lineWidth,i.borderWidth);if(f.fillStyle=Ve(D.fillStyle,n),f.lineCap=Ve(D.lineCap,i.borderCapStyle),f.lineDashOffset=Ve(D.lineDashOffset,i.borderDashOffset),f.lineJoin=Ve(D.lineJoin,i.borderJoinStyle),f.lineWidth=K,f.strokeStyle=Ve(D.strokeStyle,n),f.setLineDash&&f.setLineDash(Ve(D.lineDash,i.borderDash)),r&&r.usePointStyle){var Z=_*Math.SQRT2/2,J=d.xPlus(E,_/2);c.canvas.drawPoint(f,D.pointStyle,Z,J,j+m/2,D.rotation)}else f.fillRect(d.leftForLtr(E,_),j,_,m),0!==K&&f.strokeRect(d.leftForLtr(E,_),j,_,m);f.restore()}})(ae,J,E),w[j].left=d.leftForLtr(ae,w[j].width),w[j].top=J,function(E,j,D,K){var Z=m/2,J=d.xPlus(E,_+Z),ae=j+Z;f.fillText(D.text,J,ae),D.hidden&&(f.beginPath(),f.lineWidth=2,f.moveTo(J,ae),f.lineTo(d.xPlus(J,K),ae),f.stroke())}(ae,J,E,D),O?y.x+=K+r.padding:y.y+=N}),c.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var a,n,i,r=this;if(e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom)for(i=r.legendHitBoxes,a=0;a<i.length;++a)if(e>=(n=i[a]).left&&e<=n.left+n.width&&t>=n.top&&t<=n.top+n.height)return r.legendItems[a];return null},handleEvent:function(e){var n,t=this,r=t.options,a="mouseup"===e.type?"click":e.type;if("mousemove"===a){if(!r.onHover&&!r.onLeave)return}else{if("click"!==a)return;if(!r.onClick)return}n=t._getLegendItemAt(e.x,e.y),"click"===a?n&&r.onClick&&r.onClick.call(t,e.native,n):(r.onLeave&&n!==t._hoveredItem&&(t._hoveredItem&&r.onLeave.call(t,e.native,t._hoveredItem),t._hoveredItem=n),r.onHover&&n&&r.onHover.call(t,e.native,n))}});function mn(e,t){var r=new sa({ctx:e.ctx,options:t,chart:e});we.configure(e,r,t),we.addBox(e,r),e.legend=r}var Wo={id:"legend",_element:sa,beforeInit:function(e){var t=e.options.legend;t&&mn(e,t)},beforeUpdate:function(e){var t=e.options.legend,r=e.legend;t?(c.mergeIf(t,T.global.legend),r?(we.configure(e,r,t),r.options=t):mn(e,t)):r&&(we.removeBox(e,r),delete e.legend)},afterEvent:function(e,t){var r=e.legend;r&&r.handleEvent(t)}},Ee=c.noop;T._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var bn=Ae.extend({initialize:function(e){c.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:Ee,update:function(e,t,r){var a=this;return a.beforeUpdate(),a.maxWidth=e,a.maxHeight=t,a.margins=r,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeBuildLabels(),a.buildLabels(),a.afterBuildLabels(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:Ee,beforeSetDimensions:Ee,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Ee,beforeBuildLabels:Ee,buildLabels:Ee,afterBuildLabels:Ee,beforeFit:Ee,fit:function(){var i,e=this,t=e.options,r=e.minSize={},a=e.isHorizontal();t.display?(i=(c.isArray(t.text)?t.text.length:1)*c.options._parseFont(t).lineHeight+2*t.padding,e.width=r.width=a?e.maxWidth:i,e.height=r.height=a?i:e.maxHeight):e.width=r.width=e.height=r.height=0},afterFit:Ee,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,r=e.options;if(r.display){var f,v,p,a=c.options._parseFont(r),n=a.lineHeight,i=n/2+r.padding,o=0,l=e.top,s=e.left,u=e.bottom,d=e.right;t.fillStyle=c.valueOrDefault(r.fontColor,T.global.defaultFontColor),t.font=a.string,e.isHorizontal()?(v=s+(d-s)/2,p=l+i,f=d-s):(v="left"===r.position?s+i:d-i,p=l+(u-l)/2,f=u-l,o=Math.PI*("left"===r.position?-.5:.5)),t.save(),t.translate(v,p),t.rotate(o),t.textAlign="center",t.textBaseline="middle";var m=r.text;if(c.isArray(m))for(var y=0,_=0;_<m.length;++_)t.fillText(m[_],0,y,f),y+=n;else t.fillText(m,0,0,f);t.restore()}}});function yn(e,t){var r=new bn({ctx:e.ctx,options:t,chart:e});we.configure(e,r,t),we.addBox(e,r),e.titleBlock=r}var Ue={},Ho=zo,Vo=Wo,Uo={id:"title",_element:bn,beforeInit:function(e){var t=e.options.title;t&&yn(e,t)},beforeUpdate:function(e){var t=e.options.title,r=e.titleBlock;t?(c.mergeIf(t,T.global.title),r?(we.configure(e,r,t),r.options=t):yn(e,t)):r&&(we.removeBox(e,r),delete e.titleBlock)}};for(var xn in Ue.filler=Ho,Ue.legend=Vo,Ue.title=Uo,I.helpers=c,function(){function e(a,n,i){var o;return"string"==typeof a?(o=parseInt(a,10),-1!==a.indexOf("%")&&(o=o/100*n.parentNode[i])):o=a,o}function t(a){return null!=a&&"none"!==a}function r(a,n,i){var o=document.defaultView,l=c._getParentNode(a),s=o.getComputedStyle(a)[n],u=o.getComputedStyle(l)[n],d=t(s),f=t(u),v=Number.POSITIVE_INFINITY;return d||f?Math.min(d?e(s,a,i):v,f?e(u,l,i):v):"none"}c.where=function(a,n){if(c.isArray(a)&&Array.prototype.filter)return a.filter(n);var i=[];return c.each(a,function(o){n(o)&&i.push(o)}),i},c.findIndex=Array.prototype.findIndex?function(a,n,i){return a.findIndex(n,i)}:function(a,n,i){i=void 0===i?a:i;for(var o=0,l=a.length;o<l;++o)if(n.call(i,a[o],o,a))return o;return-1},c.findNextWhere=function(a,n,i){c.isNullOrUndef(i)&&(i=-1);for(var o=i+1;o<a.length;o++){var l=a[o];if(n(l))return l}},c.findPreviousWhere=function(a,n,i){c.isNullOrUndef(i)&&(i=a.length);for(var o=i-1;o>=0;o--){var l=a[o];if(n(l))return l}},c.isNumber=function(a){return!isNaN(parseFloat(a))&&isFinite(a)},c.almostEquals=function(a,n,i){return Math.abs(a-n)<i},c.almostWhole=function(a,n){var i=Math.round(a);return i-n<=a&&i+n>=a},c.max=function(a){return a.reduce(function(n,i){return isNaN(i)?n:Math.max(n,i)},Number.NEGATIVE_INFINITY)},c.min=function(a){return a.reduce(function(n,i){return isNaN(i)?n:Math.min(n,i)},Number.POSITIVE_INFINITY)},c.sign=Math.sign?function(a){return Math.sign(a)}:function(a){return 0==(a=+a)||isNaN(a)?a:a>0?1:-1},c.toRadians=function(a){return a*(Math.PI/180)},c.toDegrees=function(a){return a*(180/Math.PI)},c._decimalPlaces=function(a){if(c.isFinite(a)){for(var n=1,i=0;Math.round(a*n)/n!==a;)n*=10,i++;return i}},c.getAngleFromPoint=function(a,n){var i=n.x-a.x,o=n.y-a.y,l=Math.sqrt(i*i+o*o),s=Math.atan2(o,i);return s<-.5*Math.PI&&(s+=2*Math.PI),{angle:s,distance:l}},c.distanceBetweenPoints=function(a,n){return Math.sqrt(Math.pow(n.x-a.x,2)+Math.pow(n.y-a.y,2))},c.aliasPixel=function(a){return a%2==0?0:.5},c._alignPixel=function(a,n,i){var o=a.currentDevicePixelRatio,l=i/2;return Math.round((n-l)*o)/o+l},c.splineCurve=function(a,n,i,o){var l=a.skip?n:a,s=n,u=i.skip?n:i,d=Math.sqrt(Math.pow(s.x-l.x,2)+Math.pow(s.y-l.y,2)),f=Math.sqrt(Math.pow(u.x-s.x,2)+Math.pow(u.y-s.y,2)),v=d/(d+f),p=f/(d+f),m=o*(v=isNaN(v)?0:v),y=o*(p=isNaN(p)?0:p);return{previous:{x:s.x-m*(u.x-l.x),y:s.y-m*(u.y-l.y)},next:{x:s.x+y*(u.x-l.x),y:s.y+y*(u.y-l.y)}}},c.EPSILON=Number.EPSILON||1e-14,c.splineCurveMonotone=function(a){var o,l,s,u,f,v,p,m,y,n=(a||[]).map(function(_){return{model:_._model,deltaK:0,mK:0}}),i=n.length;for(o=0;o<i;++o)if(!(s=n[o]).model.skip){if(l=o>0?n[o-1]:null,(u=o<i-1?n[o+1]:null)&&!u.model.skip){var d=u.model.x-s.model.x;s.deltaK=0!==d?(u.model.y-s.model.y)/d:0}s.mK=!l||l.model.skip?s.deltaK:!u||u.model.skip?l.deltaK:this.sign(l.deltaK)!==this.sign(s.deltaK)?0:(l.deltaK+s.deltaK)/2}for(o=0;o<i-1;++o)if(u=n[o+1],!(s=n[o]).model.skip&&!u.model.skip){if(c.almostEquals(s.deltaK,0,this.EPSILON)){s.mK=u.mK=0;continue}f=s.mK/s.deltaK,v=u.mK/s.deltaK,!((m=Math.pow(f,2)+Math.pow(v,2))<=9)&&(p=3/Math.sqrt(m),s.mK=f*p*s.deltaK,u.mK=v*p*s.deltaK)}for(o=0;o<i;++o)!(s=n[o]).model.skip&&(u=o<i-1?n[o+1]:null,(l=o>0?n[o-1]:null)&&!l.model.skip&&(s.model.controlPointPreviousX=s.model.x-(y=(s.model.x-l.model.x)/3),s.model.controlPointPreviousY=s.model.y-y*s.mK),u&&!u.model.skip&&(s.model.controlPointNextX=s.model.x+(y=(u.model.x-s.model.x)/3),s.model.controlPointNextY=s.model.y+y*s.mK))},c.nextItem=function(a,n,i){return i?n>=a.length-1?a[0]:a[n+1]:n>=a.length-1?a[a.length-1]:a[n+1]},c.previousItem=function(a,n,i){return i?n<=0?a[a.length-1]:a[n-1]:n<=0?a[0]:a[n-1]},c.niceNum=function(a,n){var i=Math.floor(c.log10(a)),o=a/Math.pow(10,i);return(n?o<1.5?1:o<3?2:o<7?5:10:o<=1?1:o<=2?2:o<=5?5:10)*Math.pow(10,i)},c.requestAnimFrame="undefined"==typeof window?function(a){a()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){return window.setTimeout(a,1e3/60)},c.getRelativePosition=function(a,n){var i,o,l=a.originalEvent||a,s=a.target||a.srcElement,u=s.getBoundingClientRect(),d=l.touches;d&&d.length>0?(i=d[0].clientX,o=d[0].clientY):(i=l.clientX,o=l.clientY);var f=parseFloat(c.getStyle(s,"padding-left")),v=parseFloat(c.getStyle(s,"padding-top")),p=parseFloat(c.getStyle(s,"padding-right")),m=parseFloat(c.getStyle(s,"padding-bottom")),_=u.bottom-u.top-v-m;return{x:i=Math.round((i-u.left-f)/(u.right-u.left-f-p)*s.width/n.currentDevicePixelRatio),y:o=Math.round((o-u.top-v)/_*s.height/n.currentDevicePixelRatio)}},c.getConstraintWidth=function(a){return r(a,"max-width","clientWidth")},c.getConstraintHeight=function(a){return r(a,"max-height","clientHeight")},c._calculatePadding=function(a,n,i){return(n=c.getStyle(a,n)).indexOf("%")>-1?i*parseInt(n,10)/100:parseInt(n,10)},c._getParentNode=function(a){var n=a.parentNode;return n&&"[object ShadowRoot]"===n.toString()&&(n=n.host),n},c.getMaximumWidth=function(a){var n=c._getParentNode(a);if(!n)return a.clientWidth;var i=n.clientWidth,s=i-c._calculatePadding(n,"padding-left",i)-c._calculatePadding(n,"padding-right",i),u=c.getConstraintWidth(a);return isNaN(u)?s:Math.min(s,u)},c.getMaximumHeight=function(a){var n=c._getParentNode(a);if(!n)return a.clientHeight;var i=n.clientHeight,s=i-c._calculatePadding(n,"padding-top",i)-c._calculatePadding(n,"padding-bottom",i),u=c.getConstraintHeight(a);return isNaN(u)?s:Math.min(s,u)},c.getStyle=function(a,n){return a.currentStyle?a.currentStyle[n]:document.defaultView.getComputedStyle(a,null).getPropertyValue(n)},c.retinaScale=function(a,n){var i=a.currentDevicePixelRatio=n||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==i){var o=a.canvas,l=a.height,s=a.width;o.height=l*i,o.width=s*i,a.ctx.scale(i,i),!o.style.height&&!o.style.width&&(o.style.height=l+"px",o.style.width=s+"px")}},c.fontString=function(a,n,i){return n+" "+a+"px "+i},c.longestText=function(a,n,i,o){var l=(o=o||{}).data=o.data||{},s=o.garbageCollect=o.garbageCollect||[];o.font!==n&&(l=o.data={},s=o.garbageCollect=[],o.font=n),a.font=n;var f,v,p,m,y,u=0,d=i.length;for(f=0;f<d;f++)if(null!=(m=i[f])&&!0!==c.isArray(m))u=c.measureText(a,l,s,u,m);else if(c.isArray(m))for(v=0,p=m.length;v<p;v++)null!=(y=m[v])&&!c.isArray(y)&&(u=c.measureText(a,l,s,u,y));var _=s.length/2;if(_>i.length){for(f=0;f<_;f++)delete l[s[f]];s.splice(0,_)}return u},c.measureText=function(a,n,i,o,l){var s=n[l];return s||(s=n[l]=a.measureText(l).width,i.push(l)),s>o&&(o=s),o},c.numberOfLabelLines=function(a){var n=1;return c.each(a,function(i){c.isArray(i)&&i.length>n&&(n=i.length)}),n},c.color=Yt?function(a){return a instanceof CanvasGradient&&(a=T.global.defaultColor),Yt(a)}:function(a){return console.error("Color.js not found!"),a},c.getHoverColor=function(a){return a instanceof CanvasPattern||a instanceof CanvasGradient?a:c.color(a).saturate(.5).darken(.1).rgbString()}}(),I._adapters=sr,I.Animation=Mr,I.animationService=kr,I.controllers=Pr,I.DatasetController=xe,I.defaults=T,I.Element=Ae,I.elements=fe,I.Interaction=ht,I.layouts=we,I.platform=vt,I.plugins=H,I.Scale=oe,I.scaleService=Nt,I.Ticks=gt,I.Tooltip=nr,I.helpers.each(Do,function(e,t){I.scaleService.registerScaleType(t,e,e._defaults)}),Ue)Ue.hasOwnProperty(xn)&&I.plugins.register(Ue[xn]);I.platform.initialize();var wn=I;return"undefined"!=typeof window&&(window.Chart=I),I.Chart=I,I.Legend=Ue.legend._element,I.Title=Ue.title._element,I.pluginService=I.plugins,I.PluginBase=I.Element.extend({}),I.canvasHelpers=I.helpers.canvas,I.layoutService=I.layouts,I.LinearScaleBase=ur,I.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(e){I[e]=function(t,r){return new I(t,I.helpers.merge(r||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}}),wn}(function(){try{return qt(58361)}catch(fa){}}())},6517:(Yo,Go,qt)=>{"use strict";qt.d(Go,{jh:()=>vs,m9:()=>gs});var V=qt(42741),pr=qt(29923);const Tn=function(h,b){return h===b||h!=h&&b!=b},mr=function(h,b){for(var g=h.length;g--;)if(Tn(h[g][0],b))return g;return-1};var Jo=Array.prototype.splice;function kt(h){var b=-1,g=null==h?0:h.length;for(this.clear();++b<g;){var x=h[b];this.set(x[0],x[1])}}kt.prototype.clear=function(){this.__data__=[],this.size=0},kt.prototype.delete=function(h){var b=this.__data__,g=mr(b,h);return!(g<0||(g==b.length-1?b.pop():Jo.call(b,g,1),--this.size,0))},kt.prototype.get=function(h){var b=this.__data__,g=mr(b,h);return g<0?void 0:b[g][1]},kt.prototype.has=function(h){return mr(this.__data__,h)>-1},kt.prototype.set=function(h,b){var g=this.__data__,x=mr(g,h);return x<0?(++this.size,g.push([h,b])):g[x][1]=b,this};const br=kt,ha="object"==typeof global&&global&&global.Object===Object&&global;var yr="object"==typeof self&&self&&self.Object===Object&&self;const be=ha||yr||Function("return this")(),Ye=be.Symbol;var ca=Object.prototype,Rn=ca.hasOwnProperty,En=ca.toString,St=Ye?Ye.toStringTag:void 0;var ga=Object.prototype.toString;var Se=Ye?Ye.toStringTag:void 0;const it=function(h){return null==h?void 0===h?"[object Undefined]":"[object Null]":Se&&Se in Object(h)?function(h){var b=Rn.call(h,St),g=h[St];try{h[St]=void 0;var x=!0}catch(A){}var C=En.call(h);return x&&(b?h[St]=g:delete h[St]),C}(h):function(h){return ga.call(h)}(h)},re=function(h){var b=typeof h;return null!=h&&("object"==b||"function"==b)},ya=function(h){if(!re(h))return!1;var b=it(h);return"[object Function]"==b||"[object GeneratorFunction]"==b||"[object AsyncFunction]"==b||"[object Proxy]"==b};var h,de=be["__core-js_shared__"],_a=(h=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||""))?"Symbol(src)_1."+h:"";var Gt=Function.prototype.toString;const ze=function(h){if(null!=h){try{return Gt.call(h)}catch(b){}try{return h+""}catch(b){}}return""};var Kt=/^\[object .+?Constructor\]$/,Yn=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Kn=function(h){return!(!re(h)||function(h){return!!_a&&_a in h}(h))&&(ya(h)?Yn:Kt).test(ze(h))},c=function(h,b){var g=function(h,b){return null==h?void 0:h[b]}(h,b);return Kn(g)?g:void 0},Dt=c(be,"Map"),Pt=c(Object,"create");var kr=Object.prototype.hasOwnProperty;var Ma=Object.prototype.hasOwnProperty;function st(h){var b=-1,g=null==h?0:h.length;for(this.clear();++b<g;){var x=h[b];this.set(x[0],x[1])}}st.prototype.clear=function(){this.__data__=Pt?Pt(null):{},this.size=0},st.prototype.delete=function(h){var b=this.has(h)&&delete this.__data__[h];return this.size-=b?1:0,b},st.prototype.get=function(h){var b=this.__data__;if(Pt){var g=b[h];return"__lodash_hash_undefined__"===g?void 0:g}return kr.call(b,h)?b[h]:void 0},st.prototype.has=function(h){var b=this.__data__;return Pt?void 0!==b[h]:Ma.call(b,h)},st.prototype.set=function(h,b){var g=this.__data__;return this.size+=this.has(h)?0:1,g[h]=Pt&&void 0===b?"__lodash_hash_undefined__":b,this};const Sa=st,Ot=function(h,b){var g=h.__data__;return function(h){var b=typeof h;return"string"==b||"number"==b||"symbol"==b||"boolean"==b?"__proto__"!==h:null===h}(b)?g["string"==typeof b?"string":"hash"]:g.map};function lt(h){var b=-1,g=null==h?0:h.length;for(this.clear();++b<g;){var x=h[b];this.set(x[0],x[1])}}lt.prototype.clear=function(){this.size=0,this.__data__={hash:new Sa,map:new(Dt||br),string:new Sa}},lt.prototype.delete=function(h){var b=Ot(this,h).delete(h);return this.size-=b?1:0,b},lt.prototype.get=function(h){return Ot(this,h).get(h)},lt.prototype.has=function(h){return Ot(this,h).has(h)},lt.prototype.set=function(h,b){var g=Ot(this,h),x=g.size;return g.set(h,b),this.size+=g.size==x?0:1,this};const Ft=lt;function ut(h){var b=this.__data__=new br(h);this.size=b.size}ut.prototype.clear=function(){this.__data__=new br,this.size=0},ut.prototype.delete=function(h){var b=this.__data__,g=b.delete(h);return this.size=b.size,g},ut.prototype.get=function(h){return this.__data__.get(h)},ut.prototype.has=function(h){return this.__data__.has(h)},ut.prototype.set=function(h,b){var g=this.__data__;if(g instanceof br){var x=g.__data__;if(!Dt||x.length<199)return x.push([h,b]),this.size=++g.size,this;g=this.__data__=new Ft(x)}return g.set(h,b),this.size=g.size,this};const ci=ut;var dt=function(){try{var h=c(Object,"defineProperty");return h({},"",{}),h}catch(b){}}();const Ia=dt,La=function(h,b,g){"__proto__"==b&&Ia?Ia(h,b,{configurable:!0,enumerable:!0,value:g,writable:!0}):h[b]=g};var Tr=Object.prototype.hasOwnProperty;const Ra=function(h,b,g){var x=h[b];(!Tr.call(h,b)||!Tn(x,g)||void 0===g&&!(b in h))&&La(h,b,g)},Pe=function(h,b,g,x){var C=!g;g||(g={});for(var A=-1,P=b.length;++A<P;){var X=b[A],S=x?x(g[X],h[X],X,g,h):void 0;void 0===S&&(S=h[X]),C?La(g,X,S):Ra(g,X,S)}return g},Lt=function(h){return null!=h&&"object"==typeof h},Zt=function(h){return Lt(h)&&"[object Arguments]"==it(h)};var Ar=Object.prototype,bi=Ar.hasOwnProperty,yi=Ar.propertyIsEnumerable,Na=Zt(function(){return arguments}())?Zt:function(h){return Lt(h)&&bi.call(h,"callee")&&!yi.call(h,"callee")};const _i=Na,Dr=Array.isArray;var za="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pr=za&&"object"==typeof module&&module&&!module.nodeType&&module,ft=Pr&&Pr.exports===za?be.Buffer:void 0;const Qt=(ft?ft.isBuffer:void 0)||function(){return!1};var ht=/^(?:0|[1-9]\d*)$/;const Bt=function(h,b){var g=typeof h;return!!(b=null==b?9007199254740991:b)&&("number"==g||"symbol"!=g&&ht.test(h))&&h>-1&&h%1==0&&h<b},ja=function(h){return"number"==typeof h&&h>-1&&h%1==0&&h<=9007199254740991};var W={};W["[object Float32Array]"]=W["[object Float64Array]"]=W["[object Int8Array]"]=W["[object Int16Array]"]=W["[object Int32Array]"]=W["[object Uint8Array]"]=W["[object Uint8ClampedArray]"]=W["[object Uint16Array]"]=W["[object Uint32Array]"]=!0,W["[object Arguments]"]=W["[object Array]"]=W["[object ArrayBuffer]"]=W["[object Boolean]"]=W["[object DataView]"]=W["[object Date]"]=W["[object Error]"]=W["[object Function]"]=W["[object Map]"]=W["[object Number]"]=W["[object Object]"]=W["[object RegExp]"]=W["[object Set]"]=W["[object String]"]=W["[object WeakMap]"]=!1;const Je=function(h){return function(b){return h(b)}};var Ya="object"==typeof exports&&exports&&!exports.nodeType&&exports,Et=Ya&&"object"==typeof module&&module&&!module.nodeType&&module,Nr=Et&&Et.exports===Ya&&ha.process;const ct=function(){try{return Et&&Et.require&&Et.require("util").types||Nr&&Nr.binding&&Nr.binding("util")}catch(b){}}();var zr=ct&&ct.isTypedArray;const vt=zr?Je(zr):function(h){return Lt(h)&&ja(h.length)&&!!W[it(h)]};var Nt=Object.prototype.hasOwnProperty;const rr=function(h,b){var g=Dr(h),x=!g&&_i(h),C=!g&&!x&&Qt(h),A=!g&&!x&&!C&&vt(h),P=g||x||C||A,X=P?function(h,b){for(var g=-1,x=Array(h);++g<h;)x[g]=b(g);return x}(h.length,String):[],S=X.length;for(var $ in h)(b||Nt.call(h,$))&&(!P||!("length"==$||C&&("offset"==$||"parent"==$)||A&&("buffer"==$||"byteLength"==$||"byteOffset"==$)||Bt($,S)))&&X.push($);return X};var Ga=Object.prototype;const Te=function(h){var b=h&&h.constructor;return h===("function"==typeof b&&b.prototype||Ga)},jr=function(h,b){return function(g){return h(b(g))}},Vi=jr(Object.keys,Object);var ar=Object.prototype.hasOwnProperty;const nr=function(h){return null!=h&&ja(h.length)&&!ya(h)},ir=function(h){return nr(h)?rr(h):function(h){if(!Te(h))return Vi(h);var b=[];for(var g in Object(h))ar.call(h,g)&&"constructor"!=g&&b.push(g);return b}(h)};var Za=Object.prototype.hasOwnProperty;const I=function(h){if(!re(h))return function(h){var b=[];if(null!=h)for(var g in Object(h))b.push(g);return b}(h);var b=Te(h),g=[];for(var x in h)"constructor"==x&&(b||!Za.call(h,x))||g.push(x);return g},Re=function(h){return nr(h)?rr(h,!0):I(h)};var sr="object"==typeof exports&&exports&&!exports.nodeType&&exports,gt=sr&&"object"==typeof module&&module&&!module.nodeType&&module,pt=gt&>.exports===sr?be.Buffer:void 0,We=pt?pt.allocUnsafe:void 0;const Ur=function(){return[]};var $r=Object.prototype.propertyIsEnumerable,Qa=Object.getOwnPropertySymbols,to=Qa?function(h){return null==h?[]:(h=Object(h),function(h,b){for(var g=-1,x=null==h?0:h.length,C=0,A=[];++g<x;){var P=h[g];b(P,g,h)&&(A[C++]=P)}return A}(Qa(h),function(b){return $r.call(h,b)}))}:Ur;const Yr=to,oe=function(h,b){for(var g=-1,x=b.length,C=h.length;++g<x;)h[C+g]=b[g];return h},en=jr(Object.getPrototypeOf,Object);var ao=Object.getOwnPropertySymbols?function(h){for(var b=[];h;)oe(b,Yr(h)),h=en(h);return b}:Ur;const rn=ao,an=function(h,b,g){var x=b(h);return Dr(h)?x:oe(x,g(h))},oo=function(h){return an(h,ir,Yr)},lo=function(h){return an(h,Re,rn)},dr=c(be,"DataView"),jt=c(be,"Promise"),Xr=c(be,"Set"),bt=c(be,"WeakMap");var Jr="[object Map]",Wt="[object Promise]",fr="[object Set]",Zr="[object WeakMap]",nn="[object DataView]",Qr=ze(dr),vo=ze(Dt),on=ze(jt),go=ze(Xr),po=ze(bt),et=it;(dr&&et(new dr(new ArrayBuffer(1)))!=nn||Dt&&et(new Dt)!=Jr||jt&&et(jt.resolve())!=Wt||Xr&&et(new Xr)!=fr||bt&&et(new bt)!=Zr)&&(et=function(h){var b=it(h),g="[object Object]"==b?h.constructor:void 0,x=g?ze(g):"";if(x)switch(x){case Qr:return nn;case vo:return Jr;case on:return Wt;case go:return fr;case po:return Zr}return b});const ea=et;var bo=Object.prototype.hasOwnProperty;const cr=be.Uint8Array,ta=function(h){var b=new h.constructor(h.byteLength);return new cr(b).set(new cr(h)),b};var vr=/\w*$/;var fn=Ye?Ye.prototype:void 0,aa=fn?fn.valueOf:void 0;const Eo=function(h,b,g){var x=h.constructor;switch(b){case"[object ArrayBuffer]":return ta(h);case"[object Boolean]":case"[object Date]":return new x(+h);case"[object DataView]":return function(h,b){var g=b?ta(h.buffer):h.buffer;return new h.constructor(g,h.byteOffset,h.byteLength)}(h,g);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(h,b){var g=b?ta(h.buffer):h.buffer;return new h.constructor(g,h.byteOffset,h.length)}(h,g);case"[object Map]":case"[object Set]":return new x;case"[object Number]":case"[object String]":return new x(h);case"[object RegExp]":return function(h){var b=new h.constructor(h.source,vr.exec(h));return b.lastIndex=h.lastIndex,b}(h);case"[object Symbol]":return function(h){return aa?Object(aa.call(h)):{}}(h)}};var ia=Object.create,pn=function(){function h(){}return function(b){if(!re(b))return{};if(ia)return ia(b);h.prototype=b;var g=new h;return h.prototype=void 0,g}}();const No=pn;var sa=ct&&ct.isMap;const Wo=sa?Je(sa):function(h){return Lt(h)&&"[object Map]"==ea(h)};var _n=ct&&ct.isSet;const Ho=_n?Je(_n):function(h){return Lt(h)&&"[object Set]"==ea(h)};var wn="[object Arguments]",n="[object Function]",s="[object Object]",D={};D[wn]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object DataView]"]=D["[object Boolean]"]=D["[object Date]"]=D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Map]"]=D["[object Number]"]=D[s]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object Symbol]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D["[object Error]"]=D[n]=D["[object WeakMap]"]=!1;const Z=function K(h,b,g,x,C,A){var P,X=1&b,S=2&b,$=4&b;if(g&&(P=C?g(h,x,C,A):g(h)),void 0!==P)return P;if(!re(h))return h;var U=Dr(h);if(U){if(P=function(h){var b=h.length,g=new h.constructor(b);return b&&"string"==typeof h[0]&&bo.call(h,"index")&&(g.index=h.index,g.input=h.input),g}(h),!X)return function(h,b){var g=-1,x=h.length;for(b||(b=Array(x));++g<x;)b[g]=h[g];return b}(h,P)}else{var se=ea(h),ge=se==n||"[object GeneratorFunction]"==se;if(Qt(h))return function(h,b){if(b)return h.slice();var g=h.length,x=We?We(g):new h.constructor(g);return h.copy(x),x}(h,X);if(se==s||se==wn||ge&&!C){if(P=S||ge?{}:function(h){return"function"!=typeof h.constructor||Te(h)?{}:No(en(h))}(h),!X)return S?function(h,b){return Pe(h,rn(h),b)}(h,function(h,b){return h&&Pe(b,Re(b),h)}(P,h)):function(h,b){return Pe(h,Yr(h),b)}(h,function(h,b){return h&&Pe(b,ir(b),h)}(P,h))}else{if(!D[se])return C?h:{};P=Eo(h,se,X)}}A||(A=new ci);var me=A.get(h);if(me)return me;A.set(h,P),Ho(h)?h.forEach(function(q){P.add(K(q,b,g,q,h,A))}):Wo(h)&&h.forEach(function(q,le){P.set(le,K(q,b,g,le,h,A))});var Ce=U?void 0:($?S?lo:oo:S?Re:ir)(h);return function(h,b){for(var g=-1,x=null==h?0:h.length;++g<x&&!1!==b(h[g],g,h););}(Ce||h,function(q,le){Ce&&(q=h[le=q]),Ra(P,le,K(q,b,g,le,h,A))}),P};var Ht=qt(25119);const Cn=[[255,99,132],[54,162,235],[255,206,86],[231,233,237],[75,192,192],[151,187,205],[220,220,220],[247,70,74],[70,191,189],[253,180,92],[148,159,177],[77,83,96]];function ve(h,b){return"rgba("+h.concat(b).join(",")+")"}function qo(h,b){return Math.floor(Math.random()*(b-h+1))+h}function $o(h){return{backgroundColor:h.map(b=>ve(b,.6)),borderColor:h.map(()=>"#fff"),pointBackgroundColor:h.map(b=>ve(b,1)),pointBorderColor:h.map(()=>"#fff"),pointHoverBackgroundColor:h.map(b=>ve(b,1)),pointHoverBorderColor:h.map(b=>ve(b,1))}}function os(){return[qo(0,255),qo(0,255),qo(0,255)]}function ss(h){return Cn[h]||os()}function Mn(h){const b=new Array(h);for(let g=0;g<h;g++)b[g]=Cn[g]||os();return b}let cs=(()=>{class h{constructor(){this.pColorschemesOptions={},this.colorschemesOptions=new pr.X({})}setColorschemesOptions(g){this.pColorschemesOptions=g,this.colorschemesOptions.next(g)}getColorschemesOptions(){return this.pColorschemesOptions}}return h.\u0275fac=function(g){return new(g||h)},h.\u0275prov=(0,V.Yz7)({factory:function(){return new h},token:h,providedIn:"root"}),h})();const z={Default:0,Update:1,Refresh:2};z[z.Default]="Default",z[z.Update]="Update",z[z.Refresh]="Refresh";let vs=(()=>{class h{constructor(g,x){this.element=g,this.themeService=x,this.options={},this.chartClick=new V.vpe,this.chartHover=new V.vpe,this.old={dataExists:!1,dataLength:0,datasetsExists:!1,datasetsLength:0,datasetsDataObjects:[],datasetsDataLengths:[],colorsExists:!1,colors:[],labelsExist:!1,labels:[],legendExists:!1,legend:{}},this.subs=[]}static registerPlugin(g){Ht.pluginService.register(g)}static unregisterPlugin(g){Ht.pluginService.unregister(g)}ngOnInit(){this.ctx=this.element.nativeElement.getContext("2d"),this.refresh(),this.subs.push(this.themeService.colorschemesOptions.subscribe(g=>this.themeChanged(g)))}themeChanged(g){this.refresh()}ngDoCheck(){if(!this.chart)return;let g=z.Default;const x=C=>{g=C>g?C:g};switch(!!this.data!==this.old.dataExists&&(this.propagateDataToDatasets(this.data),this.old.dataExists=!!this.data,x(z.Update)),this.data&&this.data.length!==this.old.dataLength&&(this.old.dataLength=this.data&&this.data.length||0,x(z.Update)),!!this.datasets!==this.old.datasetsExists&&(this.old.datasetsExists=!!this.datasets,x(z.Update)),this.datasets&&this.datasets.length!==this.old.datasetsLength&&(this.old.datasetsLength=this.datasets&&this.datasets.length||0,x(z.Update)),this.datasets&&this.datasets.filter((C,A)=>C.data!==this.old.datasetsDataObjects[A]).length&&(this.old.datasetsDataObjects=this.datasets.map(C=>C.data),x(z.Update)),this.datasets&&this.datasets.filter((C,A)=>C.data.length!==this.old.datasetsDataLengths[A]).length&&(this.old.datasetsDataLengths=this.datasets.map(C=>C.data.length),x(z.Update)),!!this.colors!==this.old.colorsExists&&(this.old.colorsExists=!!this.colors,this.updateColors(),x(z.Update)),this.colors&&this.colors.filter((C,A)=>!this.colorsEqual(C,this.old.colors[A])).length&&(this.old.colors=this.colors.map(C=>this.copyColor(C)),this.updateColors(),x(z.Update)),!!this.labels!==this.old.labelsExist&&(this.old.labelsExist=!!this.labels,x(z.Update)),this.labels&&this.labels.filter((C,A)=>!this.labelsEqual(C,this.old.labels[A])).length&&(this.old.labels=this.labels.map(C=>this.copyLabel(C)),x(z.Update)),!!this.options.legend!==this.old.legendExists&&(this.old.legendExists=!!this.options.legend,x(z.Refresh)),this.options.legend&&this.options.legend.position!==this.old.legend.position&&(this.old.legend.position=this.options.legend.position,x(z.Refresh)),g){case z.Default:break;case z.Update:this.update();break;case z.Refresh:this.refresh()}}copyLabel(g){return Array.isArray(g)?[...g]:g}labelsEqual(g,x){return Array.isArray(g)===Array.isArray(x)&&(Array.isArray(g)||g===x)&&(!Array.isArray(g)||g.length===x.length)&&(!Array.isArray(g)||0===g.filter((C,A)=>C!==x[A]).length)}copyColor(g){return{backgroundColor:g.backgroundColor,borderWidth:g.borderWidth,borderColor:g.borderColor,borderCapStyle:g.borderCapStyle,borderDash:g.borderDash,borderDashOffset:g.borderDashOffset,borderJoinStyle:g.borderJoinStyle,pointBorderColor:g.pointBorderColor,pointBackgroundColor:g.pointBackgroundColor,pointBorderWidth:g.pointBorderWidth,pointRadius:g.pointRadius,pointHoverRadius:g.pointHoverRadius,pointHitRadius:g.pointHitRadius,pointHoverBackgroundColor:g.pointHoverBackgroundColor,pointHoverBorderColor:g.pointHoverBorderColor,pointHoverBorderWidth:g.pointHoverBorderWidth,pointStyle:g.pointStyle,hoverBackgroundColor:g.hoverBackgroundColor,hoverBorderColor:g.hoverBorderColor,hoverBorderWidth:g.hoverBorderWidth}}colorsEqual(g,x){return!g==!x&&(!g||g.backgroundColor===x.backgroundColor&&g.borderWidth===x.borderWidth&&g.borderColor===x.borderColor&&g.borderCapStyle===x.borderCapStyle&&g.borderDash===x.borderDash&&g.borderDashOffset===x.borderDashOffset&&g.borderJoinStyle===x.borderJoinStyle&&g.pointBorderColor===x.pointBorderColor&&g.pointBackgroundColor===x.pointBackgroundColor&&g.pointBorderWidth===x.pointBorderWidth&&g.pointRadius===x.pointRadius&&g.pointHoverRadius===x.pointHoverRadius&&g.pointHitRadius===x.pointHitRadius&&g.pointHoverBackgroundColor===x.pointHoverBackgroundColor&&g.pointHoverBorderColor===x.pointHoverBorderColor&&g.pointHoverBorderWidth===x.pointHoverBorderWidth&&g.pointStyle===x.pointStyle&&g.hoverBackgroundColor===x.hoverBackgroundColor&&g.hoverBorderColor===x.hoverBorderColor&&g.hoverBorderWidth===x.hoverBorderWidth)}updateColors(){this.datasets.forEach((g,x)=>{this.colors&&this.colors[x]?Object.assign(g,this.colors[x]):Object.assign(g,function(h,b,g){if("pie"===h||"doughnut"===h)return $o(Mn(g));if("polarArea"===h)return function(h){return{backgroundColor:h.map(b=>ve(b,.6)),borderColor:h.map(b=>ve(b,1)),hoverBackgroundColor:h.map(b=>ve(b,.8)),hoverBorderColor:h.map(b=>ve(b,1))}}(Mn(g));if("line"===h||"radar"===h)return function(h){return{backgroundColor:ve(h,.4),borderColor:ve(h,1),pointBackgroundColor:ve(h,1),pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:ve(h,.8)}}(ss(b));if("bar"===h||"horizontalBar"===h)return function(h){return{backgroundColor:ve(h,.6),borderColor:ve(h,1),hoverBackgroundColor:ve(h,.8),hoverBorderColor:ve(h,1)}}(ss(b));if("bubble"===h||"scatter"===h)return $o(Mn(g));throw new Error("getColors - Unsupported chart type: "+h)}(this.chartType,x,g.data.length),Object.assign({},g))})}ngOnChanges(g){let x=z.Default;const C=A=>{x=A>x?A:x};switch(g.hasOwnProperty("data")&&g.data.currentValue&&(this.propagateDataToDatasets(g.data.currentValue),C(z.Update)),g.hasOwnProperty("datasets")&&g.datasets.currentValue&&(this.propagateDatasetsToData(g.datasets.currentValue),C(z.Update)),g.hasOwnProperty("labels")&&(this.chart&&(this.chart.data.labels=g.labels.currentValue),C(z.Update)),g.hasOwnProperty("legend")&&(this.chart&&(this.chart.config.options.legend.display=g.legend.currentValue,this.chart.generateLegend()),C(z.Update)),g.hasOwnProperty("options")&&C(z.Refresh),x){case z.Update:this.update();break;case z.Refresh:case z.Default:this.refresh()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(g=>g.unsubscribe())}update(g){if(this.chart)return this.chart.update(g)}hideDataset(g,x){this.chart.getDatasetMeta(g).hidden=x,this.chart.update()}isDatasetHidden(g){return this.chart.getDatasetMeta(g).hidden}toBase64Image(){return this.chart.toBase64Image()}getChartConfiguration(){const g=this.getDatasets(),x=Object.assign({},this.options);!1===this.legend&&(x.legend={display:!1}),x.hover=x.hover||{},x.hover.onHover||(x.hover.onHover=(A,P)=>{P&&!P.length||this.chartHover.emit({event:A,active:P})}),x.onClick||(x.onClick=(A,P)=>{this.chartClick.emit({event:A,active:P})});const C=this.smartMerge(x,this.themeService.getColorschemesOptions());return{type:this.chartType,data:{labels:this.labels||[],datasets:g},plugins:this.plugins,options:C}}getChartBuilder(g){const x=this.getChartConfiguration();return new Ht.Chart(g,x)}smartMerge(g,x,C=0){if(0===C&&(g=function(h){return Z(h,5)}(g)),Object.keys(x).forEach(P=>{if(Array.isArray(x[P])){const X=g[P];X&&X.forEach(S=>{this.smartMerge(S,x[P][0],C+1)})}else"object"==typeof x[P]?(P in g||(g[P]={}),this.smartMerge(g[P],x[P],C+1)):g[P]=x[P]}),0===C)return g}isMultiLineLabel(g){return Array.isArray(g)}joinLabel(g){return g?this.isMultiLineLabel(g)?g.join(" "):g:null}propagateDatasetsToData(g){this.data=this.datasets.map(x=>x.data),this.chart&&(this.chart.data.datasets=g),this.updateColors()}propagateDataToDatasets(g){this.isMultiDataSet(g)?this.datasets&&g.length===this.datasets.length?this.datasets.forEach((x,C)=>{x.data=g[C]}):(this.datasets=g.map((x,C)=>({data:x,label:this.joinLabel(this.labels[C])||`Label ${C}`})),this.chart&&(this.chart.data.datasets=this.datasets)):this.datasets?(this.datasets[0]||(this.datasets[0]={}),this.datasets[0].data=g,this.datasets.splice(1)):(this.datasets=[{data:g}],this.chart&&(this.chart.data.datasets=this.datasets)),this.updateColors()}isMultiDataSet(g){return Array.isArray(g[0])}getDatasets(){if(!this.datasets&&!this.data)throw new Error(`ng-charts configuration error, data or datasets field are required to render chart ${this.chartType}`);return this.datasets?(this.propagateDatasetsToData(this.datasets),this.datasets):this.data?(this.propagateDataToDatasets(this.data),this.datasets):void 0}refresh(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.ctx&&(this.chart=this.getChartBuilder(this.ctx))}}return h.\u0275fac=function(g){return new(g||h)(V.Y36(V.SBq),V.Y36(cs))},h.\u0275dir=V.lG2({type:h,selectors:[["canvas","baseChart",""]],inputs:{options:"options",data:"data",datasets:"datasets",labels:"labels",chartType:"chartType",colors:"colors",legend:"legend",plugins:"plugins"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[V.TTD]}),h})(),gs=(()=>{class h{}return h.\u0275fac=function(g){return new(g||h)},h.\u0275mod=V.oAB({type:h}),h.\u0275inj=V.cJS({imports:[[]]}),h})()}}]);